diff --git a/.gitignore b/.gitignore
index c6bba59..e0b9729 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,130 +1,39 @@
+# ---> Node
# Logs
logs
*.log
npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-lerna-debug.log*
-.pnpm-debug.log*
-
-# Diagnostic reports (https://nodejs.org/api/report.html)
-report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
-*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
-*.lcov
-# nyc test coverage
-.nyc_output
-
-# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
+# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
-# Bower dependency directory (https://bower.io/)
-bower_components
-
# node-waf configuration
.lock-wscript
-# Compiled binary addons (https://nodejs.org/api/addons.html)
+# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
-# Dependency directories
-node_modules/
-jspm_packages/
+# Dependency directory
+# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
+node_modules
-# Snowpack dependency directory (https://snowpack.dev/)
-web_modules/
+.DS_Store
-# TypeScript cache
-*.tsbuildinfo
+dist/
-# Optional npm cache directory
-.npm
+tmp/
-# Optional eslint cache
-.eslintcache
+.VSCodeCounter/
-# Optional stylelint cache
-.stylelintcache
-
-# Microbundle cache
-.rpt2_cache/
-.rts2_cache_cjs/
-.rts2_cache_es/
-.rts2_cache_umd/
-
-# Optional REPL history
-.node_repl_history
-
-# Output of 'npm pack'
-*.tgz
-
-# Yarn Integrity file
-.yarn-integrity
-
-# dotenv environment variable files
-.env
-.env.development.local
-.env.test.local
-.env.production.local
-.env.local
-
-# parcel-bundler cache (https://parceljs.org/)
-.cache
-.parcel-cache
-
-# Next.js build output
-.next
-out
-
-# Nuxt.js build / generate output
-.nuxt
-dist
-
-# Gatsby files
-.cache/
-# Comment in the public line in if your project uses Gatsby and not Next.js
-# https://nextjs.org/blog/next-9-1#public-directory-support
-# public
-
-# vuepress build output
-.vuepress/dist
-
-# vuepress v2.x temp and cache directory
-.temp
-.cache
-
-# Docusaurus cache and generated files
-.docusaurus
-
-# Serverless directories
-.serverless/
-
-# FuseBox cache
-.fusebox/
-
-# DynamoDB Local files
-.dynamodb/
-
-# TernJS port file
-.tern-port
-
-# Stores VSCode versions used for testing VSCode extensions
-.vscode-test
-
-# yarn v2
-.yarn/cache
-.yarn/unplugged
-.yarn/build-state.yml
-.yarn/install-state.gz
-.pnp.*
+electron-dist/
\ No newline at end of file
diff --git a/README.md b/README.md
index f796528..7fbd697 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,27 @@
-# tl-rtc-app
-tl rtc apps
+
+
+### 安装步骤
+
+1. 克隆仓库:
+ ```bash
+ git clone https://github.com/tl-open-source/tl-rtc-app.git
+ ```
+2. 进入项目目录:
+ ```bash
+ cd tl-rtc-app
+ ```
+3. 安装依赖:
+ ```bash
+ npm install
+ ```
+
+### 使用说明
+1. 启动应用:
+ ```bash
+ npm start
+ ```
+2. 打开浏览器并访问 `http://localhost:9096`。
+
+
+### 许可证
+该项目根据 MIT 许可证授权。有关详细信息,请参阅 [LICENSE](LICENSE) 文件。
diff --git a/conf/env_config.js b/conf/env_config.js
new file mode 100644
index 0000000..7979ef0
--- /dev/null
+++ b/conf/env_config.js
@@ -0,0 +1,66 @@
+const path = require("path");
+const dotEnv = require("dotenv");
+
+/**
+ * 从.env文件中加载环境变量
+ * docker环境下,使用docker-compose.yml中指定的env逻辑,不使用主动加载的.env文件中的环境变量
+ * docker环境下,使用docker run 中指定的 -e 逻辑,不使用主动加载的.env文件中的环境变量
+ * 非docker环境下,使用.env文件中的环境变量
+ */
+const load_env_config = function(){
+ if(process.env.tl_rtc_app_node_load_env === 'false'){
+ return
+ }
+ const pathsEnv = path.resolve(__dirname, "../")
+ dotEnv.config({ path: `${pathsEnv}/tlrtcapp.env` })
+ console.log(`load env config from .env file ${pathsEnv}/tlrtcapp.env`)
+}
+
+/**
+ * 从环境变量中注入配置
+ * 1. 适配容器环境
+ * 2. 数据格式转换
+ * 3. 统一管理
+ */
+const get_env_config = function () {
+ let defaultConfJson = {}
+
+ Object.keys(process.env).filter( key => key.startsWith("tl_rtc_app_") ).map(key => {
+ let value = process.env[key]
+ key = key.replace("tl_rtc_app_","")
+
+ //端口相关的配置转换为数字
+ if (key.endsWith('_port')) {
+ value = parseInt(value)
+ }
+
+ //过期时间相关的配置转换为数字
+ if(key.endsWith("_expire")){
+ value = parseInt(value)
+ }
+
+ //开关相关的配置转换为boolean
+ if (key.endsWith('_open')) {
+ value = value === 'true'
+ }
+
+ //openai keys转换为数组
+ if(key === 'openai_keys'){
+ value = value.split(',')
+ }
+
+ //企业微信通知 keys转换为数组
+ if(key === 'notify_qiwei_normal' || key === 'notify_qiwei_error'){
+ value = value.split(',')
+ }
+
+ defaultConfJson[key] = value
+ })
+
+ return defaultConfJson
+}
+
+module.exports = {
+ get_env_config,
+ load_env_config
+}
diff --git a/conf/keys/server.crt b/conf/keys/server.crt
new file mode 100644
index 0000000..a20e9ad
--- /dev/null
+++ b/conf/keys/server.crt
@@ -0,0 +1,15 @@
+-----BEGIN CERTIFICATE-----
+MIICVTCCAb4CCQCCDZ6FebPIqjANBgkqhkiG9w0BAQsFADBvMQswCQYDVQQGEwJV
+UzENMAsGA1UECAwETWFyczETMBEGA1UEBwwKaVRyYW5zd2FycDETMBEGA1UECgwK
+aVRyYW5zd2FycDETMBEGA1UECwwKaVRyYW5zd2FycDESMBAGA1UEAwwJMTI3LjAu
+MC4xMB4XDTE4MDcxMDAzMTYzN1oXDTI4MDcwNzAzMTYzN1owbzELMAkGA1UEBhMC
+VVMxDTALBgNVBAgMBE1hcnMxEzARBgNVBAcMCmlUcmFuc3dhcnAxEzARBgNVBAoM
+CmlUcmFuc3dhcnAxEzARBgNVBAsMCmlUcmFuc3dhcnAxEjAQBgNVBAMMCTEyNy4w
+LjAuMTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA1I6AQ6eNez85kcKjwy3g
+/vcnXtw+EbP4Ab37fLhIIWG+XzmEBAqnCYjM3nmlDIGEfNylGReo9mD2OHg46a1D
+wjd3pxTMit41pCTCiu8S9A2UJfbhSzQrfs+IZcNye4KR9/FzNEW6KoKQ0uc6X33E
+0xe41hbRMQoKB3WmxvyN8PcCAwEAATANBgkqhkiG9w0BAQsFAAOBgQAd7GNDtKWA
+0OpSCzMu0pbmss9Erh4/RC8D+wK4+TXgPDKyZ6hX4FYPvk+ryMvwxJf0o4jjx5cx
+Yew7UjaKHlGXq+CNVRFYlltsbvO3oQTNkajuyYGWzMSuNxNsT3apOxH7SIu3qao8
+COSwj5FxZ2JU7O+SBVFZoJrFXEa+KJMQzQ==
+-----END CERTIFICATE-----
diff --git a/conf/keys/server.key b/conf/keys/server.key
new file mode 100644
index 0000000..beb5a71
--- /dev/null
+++ b/conf/keys/server.key
@@ -0,0 +1,15 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIICXAIBAAKBgQDUjoBDp417PzmRwqPDLeD+9yde3D4Rs/gBvft8uEghYb5fOYQE
+CqcJiMzeeaUMgYR83KUZF6j2YPY4eDjprUPCN3enFMyK3jWkJMKK7xL0DZQl9uFL
+NCt+z4hlw3J7gpH38XM0RboqgpDS5zpffcTTF7jWFtExCgoHdabG/I3w9wIDAQAB
+AoGAWsy1BjGhQrDzisy24D3NC53Q97jl2vIiU7wwnkqqpXf3tv3+4ysZx/zkZ3VX
+iEwbqKso69srlnQ9OkpBJbGaa6lZe+z7BGzv2eJr+hKjjVjR122eDjAtXw+Tmt6c
+iBUG9+ITC1GdhXLEgTXtYuPq8hbDhoAVI007E+5JuQoO8kECQQD3aR6zGfR7EOmn
+byGkNMMPY/FoH894BpB4l7gIlNXH3pxBqukrEwnmVXSfak2PAkeLFO+bgCc6baIZ
++R4iOLn/AkEA2++dIndbY7nmGs7Q//sM7MkFMiFQ4h1nN38V9AEHaUonxlwo+Nks
+PTAaVd78YIh6yBlfexm0Fxi1mEVQApqZCQJAFUPqyJglhGJqwuJxcMy8K1l6yWla
+isV9q2/W+J3aViiTI63OBs7HHg4gTQd1DSK0BYdSJPp55LLBqRvZdDWN/wJBAMQa
+M46exAL4p55xl9MWwyCB4LshD6B9vSGzlBx7qmMMNsjcNcAkzBhGwsScTYW5S1kN
+nqABfB037/s0mjGoLRkCQF18j4MovyFaj8VAqY8YUmf86Ez9JmL9kHNA8yEoSjuI
+xsRa6y5Nza5y83Mojt4W+PfS386riJ7txqrPdezyag4=
+-----END RSA PRIVATE KEY-----
diff --git a/gulpfile.js b/gulpfile.js
new file mode 100644
index 0000000..ef23051
--- /dev/null
+++ b/gulpfile.js
@@ -0,0 +1,347 @@
+'use strict';
+
+const pkg = require('./package.json');
+const gulp = require('gulp');
+
+const uglifyEs = require('gulp-uglify-es').default;
+const cleanCSS = require('gulp-clean-css');
+const concat = require('gulp-concat');
+const rename = require('gulp-rename');
+const replace = require('gulp-replace');
+const header = require('gulp-header');
+const babel = require('gulp-babel');
+const del = require('del');
+const minimist = require('minimist');
+const gulpHtmlmin = require('gulp-htmlmin');
+const gzip = require('gulp-gzip');
+
+// 文件版本
+const fileVersion = new Date().getTime();
+
+
+// 基础配置
+const config = {
+ //注释
+ comment: [
+`/**
+ File: TL-RTC-APP-SDK-V<%= pkg.version %>
+ Licensed: <%= pkg.license %>
+ Repository: <%= pkg.repository.url %>
+ Author: <%= pkg.author %>
+ Build: <%= new Date().toLocaleString() %>
+*/
+`
+ , { pkg: pkg, js: '' }
+ ]
+};
+
+// 获取参数
+const argv = minimist(process.argv.slice(2), {
+ default: {
+ version: pkg.version
+ }
+});
+
+// 输出目录
+const dest = ({
+ dist: './dist'
+}[argv.dest || 'dist'] || argv.dest) + (argv.vs ? '/' + pkg.version : '');
+
+
+// lib-entry-sdk.min.js
+const entry_js = () => {
+ return gulp.src([
+ './web-v2-res/js/tl_rtc_entry.js',
+ ])
+ .pipe(babel())
+ .pipe(uglifyEs({
+ mangle: true,
+ compress: true,
+ output: {
+ ascii_only: true
+ },
+ }))
+ .pipe(replace(' ', ''))
+ .pipe(replace('\n', ''))
+ .pipe(replace(
+ 'lib-basic-sdk.min.js', 'lib-basic-sdk.min.' + fileVersion + '.js'
+ ))
+ .pipe(replace(
+ 'lib-component-sdk.min.js', 'lib-component-sdk.min.' + fileVersion + '.js'
+ ))
+ .pipe(replace(
+ 'lib-module-sdk.min.js', 'lib-module-sdk.min.' + fileVersion + '.js'
+ ))
+ .pipe(concat('lib-entry-sdk.min.' + fileVersion + '.js', { newLine: ' ' }))
+ .pipe(header.apply(null, config.comment))
+ .pipe(gulp.dest(dest))
+ .pipe(gzip({
+ append: true,
+ gzipOptions: {
+ level: 9,
+ memLevel: 9
+ }
+ }))
+ .pipe(gulp.dest(dest));
+};
+
+
+// lib-basic-sdk.min.js
+const basic_js = () => {
+ return gulp.src([
+ './web-v2-res/js/basic/*.js',
+ ])
+ .pipe(babel())
+ .pipe(uglifyEs({
+ mangle: true,
+ compress: true,
+ output: {
+ ascii_only: true
+ },
+ }))
+ .pipe(replace(' ', ''))
+ .pipe(replace('\n', ''))
+ .pipe(concat('lib-basic-sdk.min.' + fileVersion + '.js', { newLine: ';' }))
+ .pipe(header.apply(null, config.comment))
+ .pipe(gulp.dest(dest))
+ .pipe(gzip({
+ append: true,
+ gzipOptions: {
+ level: 9,
+ memLevel: 9
+ }
+ }))
+ .pipe(gulp.dest(dest));
+};
+
+
+// lib-component-sdk.min.js
+const component_js = () => {
+ return gulp.src([
+ './web-v2-res/js/component/*.js',
+ ])
+ .pipe(babel())
+ .pipe(uglifyEs({
+ mangle: true,
+ compress: true,
+ output: {
+ ascii_only: true
+ },
+ }))
+ .pipe(replace(' ', ''))
+ .pipe(replace('\n', ''))
+ .pipe(concat('lib-component-sdk.min.' + fileVersion + '.js', { newLine: ' ' }))
+ .pipe(header.apply(null, config.comment))
+ .pipe(gulp.dest(dest))
+ .pipe(gzip({
+ append: true,
+ gzipOptions: {
+ level: 9,
+ memLevel: 9
+ }
+ }))
+ .pipe(gulp.dest(dest));
+};
+
+// lib-module-sdk.min.js
+const module_js = () => {
+ return gulp.src([
+ // sidebar模块
+ './web-v2-res/js/module/sidebar/logo.js',
+ './web-v2-res/js/module/sidebar/tool.js',
+ './web-v2-res/js/module/sidebar/bottom.js',
+ './web-v2-res/js/module/sidebar/sidebar.js',
+
+ // channel模块
+ './web-v2-res/js/module/channel/top.js',
+ './web-v2-res/js/module/channel/list.js',
+ './web-v2-res/js/module/channel/channel.js',
+ // channel-content模块
+ './web-v2-res/js/module/channel/content/body.js',
+ './web-v2-res/js/module/channel/content/more.js',
+ './web-v2-res/js/module/channel/content/invite.js',
+ './web-v2-res/js/module/channel/content/tool.js',
+ './web-v2-res/js/module/channel/content/textarea.js',
+ './web-v2-res/js/module/channel/content.js',
+
+ // login模块
+ './web-v2-res/js/module/login/mobile.js',
+ './web-v2-res/js/module/login/list.js',
+ './web-v2-res/js/module/login/login.js',
+ // login-content模块
+ './web-v2-res/js/module/login/content/mobile.js',
+ './web-v2-res/js/module/login/content/account.js',
+ './web-v2-res/js/module/login/content/email.js',
+ './web-v2-res/js/module/login/content.js',
+
+ // contact模块
+ './web-v2-res/js/module/contact/list.js',
+ './web-v2-res/js/module/contact/top.js',
+ './web-v2-res/js/module/contact/contact.js',
+ // contact-content模块
+ './web-v2-res/js/module/contact/content/group.js',
+ './web-v2-res/js/module/contact/content/apply.js',
+ './web-v2-res/js/module/contact/content/friend.js',
+ './web-v2-res/js/module/contact/content/search.js',
+ './web-v2-res/js/module/contact/content.js',
+
+ //setting模块
+ './web-v2-res/js/module/setting/list.js',
+ './web-v2-res/js/module/setting/setting.js',
+ //setting-content模块
+ './web-v2-res/js/module/setting/content/account.js',
+ './web-v2-res/js/module/setting/content/other.js',
+ './web-v2-res/js/module/setting/content.js',
+
+ //blank模块
+ './web-v2-res/js/module/blank/content.js',
+
+ //主模块
+ './web-v2-res/js/tl_rtc_app.js',
+ ])
+ .pipe(babel())
+ .pipe(uglifyEs({
+ mangle: true,
+ compress: true,
+ output: {
+ ascii_only: true
+ },
+ }))
+ .pipe(replace(' ', ''))
+ .pipe(replace('\n', ''))
+ .pipe(concat('lib-module-sdk.min.' + fileVersion + '.js', { newLine: ' ' }))
+ .pipe(header.apply(null, config.comment))
+ .pipe(gulp.dest(dest))
+ .pipe(gzip({
+ append: true,
+ gzipOptions: {
+ level: 9,
+ memLevel: 9
+ }
+ }))
+ .pipe(gulp.dest(dest));
+};
+
+
+// js
+const js = gulp.parallel(
+ basic_js, entry_js, component_js, module_js
+);
+
+// css
+const css = () => {
+ return gulp.src([
+ './web-v2-res/css/comm.css',
+ './web-v2-res/css/pc.css',
+ './web-v2-res/css/ipad.css',
+ './web-v2-res/css/mobile.css',
+ './web-v2-res/css/max.css',
+ './web-v2-res/css/max-mobile.css',
+ ])
+ .pipe(cleanCSS())
+ .pipe(concat('lib-css-sdk.min.' + fileVersion + '.css', { newLine: '\n' }))
+ .pipe(header.apply(null, config.comment))
+ .pipe(gulp.dest(dest))
+ .pipe(gzip({
+ append: true,
+ gzipOptions: {
+ level: 9,
+ memLevel: 9
+ }
+ }))
+ .pipe(gulp.dest(dest));
+};
+
+
+// html
+const html = () => {
+ return gulp.src([
+ './web-v2-res/*.{html,json}',
+ ])
+ .pipe(replace(
+ 'lib-entry-sdk.min.js', 'lib-entry-sdk.min.' + fileVersion + '.js'
+ ))
+ .pipe(replace(
+ 'lib-basic-sdk.min.js', 'lib-basic-sdk.min.' + fileVersion + '.js'
+ ))
+ .pipe(replace(
+ 'lib-component-sdk.min.js', 'lib-component-sdk.min.' + fileVersion + '.js'
+ ))
+ .pipe(replace(
+ 'lib-module-sdk.min.js', 'lib-module-sdk.min.' + fileVersion + '.js'
+ ))
+ .pipe(replace(
+ 'lib-css-sdk.min.css', 'lib-css-sdk.min.' + fileVersion + '.css'
+ ))
+ .pipe(gulpHtmlmin({
+ collapseWhitespace: true,
+ removeComments: true,
+ }))
+ .pipe(gulp.dest(dest))
+ .pipe(gzip({
+ append: true,
+ gzipOptions: {
+ level: 9,
+ memLevel: 9
+ }
+ }))
+ .pipe(gulp.dest(dest));
+};
+
+// image
+const image = () => {
+ return gulp.src([
+ './web-v2-res/image/*.{eot,svg,ttf,woff,woff2,png,jpg,gif,jpeg,mp3}',
+ './web-v2-res/image/example/*.{eot,svg,ttf,woff,woff2,png,jpg,gif,jpeg,mp3}',
+ ])
+ .pipe(gulp.dest(dest + '/image'))
+ .pipe(gzip({
+ append: true,
+ gzipOptions: {
+ level: 9,
+ memLevel: 9
+ }
+ }))
+ .pipe(gulp.dest(dest + '/image'));
+};
+
+// statics
+const statics = () => {
+ return gulp.src([
+ './web-v2-res/static/**/*.*',
+ ])
+ .pipe(gulp.dest(dest + '/static'))
+ .pipe(gzip({
+ append: true,
+ gzipOptions: {
+ level: 9,
+ memLevel: 9
+ }
+ }))
+ .pipe(gulp.dest(dest + '/static'));
+};
+
+// clean
+const clean = cb => {
+ return del([dest], {
+ force: true
+ });
+};
+
+const defaultTask = gulp.series(clean, gulp.parallel(
+ basic_js, entry_js, component_js, module_js, css, html, image, statics
+));
+
+
+// task
+exports.default = gulp.series(clean, gulp.parallel(
+ js, css, html, image, statics
+));
+
+exports.watch = () => {
+ gulp.watch('./web-v2-res/js/**', defaultTask);
+ gulp.watch('./web-v2-res/css/**', defaultTask);
+ gulp.watch('./web-v2-res/image/**', defaultTask);
+ gulp.watch('./web-v2-res/static/**', defaultTask);
+ gulp.watch('./web-v2-res/*.{eot,svg,ttf,woff,woff2,html,json,png,jpg,gif,jpeg,mp3}', defaultTask);
+};
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..9bbd45a
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,12313 @@
+{
+ "name": "tl-rtc-app",
+ "version": "0.0.1",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "tl-rtc-app",
+ "version": "0.0.1",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/preset-env": "^7.26.0",
+ "@grpc/grpc-js": "^1.8.0",
+ "@grpc/proto-loader": "^0.6.0",
+ "ali-oss": "^6.21.0",
+ "body-parser": "^1.20.2",
+ "bull": "^4.16.5",
+ "concurrently": "^8.2.0",
+ "cookie-parser": "^1.4.6",
+ "cos-nodejs-sdk-v5": "^2.14.0",
+ "cross-env": "^5.2.0",
+ "del": "^2.2.2",
+ "dotenv": "^16.3.1",
+ "express": "^4.17.1",
+ "glob": "^10.3.1",
+ "gulp": "^4.0.2",
+ "gulp-babel": "^8.0.0",
+ "gulp-clean-css": "^4.3.0",
+ "gulp-concat": "^2.6.1",
+ "gulp-footer": "^2.1.0",
+ "gulp-gzip": "^1.4.2",
+ "gulp-header": "^2.0.9",
+ "gulp-htmlmin": "^5.0.1",
+ "gulp-javascript-obfuscator": "^1.1.6",
+ "gulp-jshint": "^2.1.0",
+ "gulp-minify-css": "^1.2.4",
+ "gulp-rename": "^2.0.0",
+ "gulp-replace": "^1.1.3",
+ "gulp-rev": "^11.0.0",
+ "gulp-rev-all": "^4.0.0",
+ "gulp-uglify": "^3.0.2",
+ "gulp-uglify-es": "^3.0.0",
+ "lru-cache": "^10.0.1",
+ "minimist": "^1.2.5",
+ "multer": "^1.4.5-lts.1",
+ "mysql2": "^2.1.0",
+ "nodemailer": "^6.9.14",
+ "nodemailer-smtp-transport": "^2.7.4",
+ "redis": "^4.6.13",
+ "request": "^2.88.2",
+ "rollup-plugin-copy": "^3.4.0",
+ "sequelize": "^6.1.0",
+ "sequelize-pool": "^6.0.0",
+ "socket.io": "^2.3.0",
+ "socket.io-msgpack-parser": "^3.0.2",
+ "terser": "^5.18.2",
+ "uuid": "^9.0.1"
+ }
+ },
+ "node_modules/@ampproject/remapping": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmmirror.com/@ampproject/remapping/-/remapping-2.3.0.tgz",
+ "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==",
+ "peer": true,
+ "dependencies": {
+ "@jridgewell/gen-mapping": "^0.3.5",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@babel/code-frame": {
+ "version": "7.26.2",
+ "resolved": "https://registry.npmmirror.com/@babel/code-frame/-/code-frame-7.26.2.tgz",
+ "integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==",
+ "dependencies": {
+ "@babel/helper-validator-identifier": "^7.25.9",
+ "js-tokens": "^4.0.0",
+ "picocolors": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/compat-data": {
+ "version": "7.26.3",
+ "resolved": "https://registry.npmmirror.com/@babel/compat-data/-/compat-data-7.26.3.tgz",
+ "integrity": "sha512-nHIxvKPniQXpmQLb0vhY3VaFb3S0YrTAwpOWJZh1wn3oJPjJk9Asva204PsBdmAE8vpzfHudT8DB0scYvy9q0g==",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/core": {
+ "version": "7.24.4",
+ "resolved": "https://registry.npmmirror.com/@babel/core/-/core-7.24.4.tgz",
+ "integrity": "sha512-MBVlMXP+kkl5394RBLSxxk/iLTeVGuXTV3cIDXavPpMMqnSnt6apKgan/U8O3USWZCWZT/TbgfEpKa4uMgN4Dg==",
+ "peer": true,
+ "dependencies": {
+ "@ampproject/remapping": "^2.2.0",
+ "@babel/code-frame": "^7.24.2",
+ "@babel/generator": "^7.24.4",
+ "@babel/helper-compilation-targets": "^7.23.6",
+ "@babel/helper-module-transforms": "^7.23.3",
+ "@babel/helpers": "^7.24.4",
+ "@babel/parser": "^7.24.4",
+ "@babel/template": "^7.24.0",
+ "@babel/traverse": "^7.24.1",
+ "@babel/types": "^7.24.0",
+ "convert-source-map": "^2.0.0",
+ "debug": "^4.1.0",
+ "gensync": "^1.0.0-beta.2",
+ "json5": "^2.2.3",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/core/node_modules/convert-source-map": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/convert-source-map/-/convert-source-map-2.0.0.tgz",
+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
+ "peer": true
+ },
+ "node_modules/@babel/core/node_modules/debug": {
+ "version": "4.3.4",
+ "resolved": "https://registry.npmmirror.com/debug/-/debug-4.3.4.tgz",
+ "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
+ "peer": true,
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@babel/core/node_modules/ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+ "peer": true
+ },
+ "node_modules/@babel/core/node_modules/semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "peer": true,
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/@babel/generator": {
+ "version": "7.26.3",
+ "resolved": "https://registry.npmmirror.com/@babel/generator/-/generator-7.26.3.tgz",
+ "integrity": "sha512-6FF/urZvD0sTeO7k6/B15pMLC4CHUv1426lzr3N01aHJTl046uCAh9LXW/fzeXXjPNCJ6iABW5XaWOsIZB93aQ==",
+ "dependencies": {
+ "@babel/parser": "^7.26.3",
+ "@babel/types": "^7.26.3",
+ "@jridgewell/gen-mapping": "^0.3.5",
+ "@jridgewell/trace-mapping": "^0.3.25",
+ "jsesc": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-annotate-as-pure": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.25.9.tgz",
+ "integrity": "sha512-gv7320KBUFJz1RnylIg5WWYPRXKZ884AGkYpgpWW02TH66Dl+HaC1t1CKd0z3R4b6hdYEcmrNZHUmfCP+1u3/g==",
+ "dependencies": {
+ "@babel/types": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-compilation-targets": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.9.tgz",
+ "integrity": "sha512-j9Db8Suy6yV/VHa4qzrj9yZfZxhLWQdVnRlXxmKLYlhWUVB1sB2G5sxuWYXk/whHD9iW76PmNzxZ4UCnTQTVEQ==",
+ "dependencies": {
+ "@babel/compat-data": "^7.25.9",
+ "@babel/helper-validator-option": "^7.25.9",
+ "browserslist": "^4.24.0",
+ "lru-cache": "^5.1.1",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-compilation-targets/node_modules/lru-cache": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-5.1.1.tgz",
+ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",
+ "dependencies": {
+ "yallist": "^3.0.2"
+ }
+ },
+ "node_modules/@babel/helper-compilation-targets/node_modules/semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/@babel/helper-compilation-targets/node_modules/yallist": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmmirror.com/yallist/-/yallist-3.1.1.tgz",
+ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g=="
+ },
+ "node_modules/@babel/helper-create-class-features-plugin": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.25.9.tgz",
+ "integrity": "sha512-UTZQMvt0d/rSz6KI+qdu7GQze5TIajwTS++GUozlw8VBJDEOAqSXwm1WvmYEZwqdqSGQshRocPDqrt4HBZB3fQ==",
+ "dependencies": {
+ "@babel/helper-annotate-as-pure": "^7.25.9",
+ "@babel/helper-member-expression-to-functions": "^7.25.9",
+ "@babel/helper-optimise-call-expression": "^7.25.9",
+ "@babel/helper-replace-supers": "^7.25.9",
+ "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9",
+ "@babel/traverse": "^7.25.9",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/helper-create-class-features-plugin/node_modules/semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/@babel/helper-create-regexp-features-plugin": {
+ "version": "7.26.3",
+ "resolved": "https://registry.npmmirror.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.26.3.tgz",
+ "integrity": "sha512-G7ZRb40uUgdKOQqPLjfD12ZmGA54PzqDFUv2BKImnC9QIfGhIHKvVML0oN8IUiDq4iRqpq74ABpvOaerfWdong==",
+ "dependencies": {
+ "@babel/helper-annotate-as-pure": "^7.25.9",
+ "regexpu-core": "^6.2.0",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/helper-create-regexp-features-plugin/node_modules/semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/@babel/helper-define-polyfill-provider": {
+ "version": "0.6.3",
+ "resolved": "https://registry.npmmirror.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.3.tgz",
+ "integrity": "sha512-HK7Bi+Hj6H+VTHA3ZvBis7V/6hu9QuTrnMXNybfUf2iiuU/N97I8VjB+KbhFF8Rld/Lx5MzoCwPCpPjfK+n8Cg==",
+ "dependencies": {
+ "@babel/helper-compilation-targets": "^7.22.6",
+ "@babel/helper-plugin-utils": "^7.22.5",
+ "debug": "^4.1.1",
+ "lodash.debounce": "^4.0.8",
+ "resolve": "^1.14.2"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"
+ }
+ },
+ "node_modules/@babel/helper-define-polyfill-provider/node_modules/debug": {
+ "version": "4.4.0",
+ "resolved": "https://registry.npmmirror.com/debug/-/debug-4.4.0.tgz",
+ "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@babel/helper-define-polyfill-provider/node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
+ },
+ "node_modules/@babel/helper-member-expression-to-functions": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.25.9.tgz",
+ "integrity": "sha512-wbfdZ9w5vk0C0oyHqAJbc62+vet5prjj01jjJ8sKn3j9h3MQQlflEdXYvuqRWjHnM12coDEqiC1IRCi0U/EKwQ==",
+ "dependencies": {
+ "@babel/traverse": "^7.25.9",
+ "@babel/types": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-imports": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/helper-module-imports/-/helper-module-imports-7.25.9.tgz",
+ "integrity": "sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==",
+ "dependencies": {
+ "@babel/traverse": "^7.25.9",
+ "@babel/types": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-transforms": {
+ "version": "7.26.0",
+ "resolved": "https://registry.npmmirror.com/@babel/helper-module-transforms/-/helper-module-transforms-7.26.0.tgz",
+ "integrity": "sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw==",
+ "dependencies": {
+ "@babel/helper-module-imports": "^7.25.9",
+ "@babel/helper-validator-identifier": "^7.25.9",
+ "@babel/traverse": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/helper-optimise-call-expression": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.25.9.tgz",
+ "integrity": "sha512-FIpuNaz5ow8VyrYcnXQTDRGvV6tTjkNtCK/RYNDXGSLlUD6cBuQTSw43CShGxjvfBTfcUA/r6UhUCbtYqkhcuQ==",
+ "dependencies": {
+ "@babel/types": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-plugin-utils": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.25.9.tgz",
+ "integrity": "sha512-kSMlyUVdWe25rEsRGviIgOWnoT/nfABVWlqt9N19/dIPWViAOW2s9wznP5tURbs/IDuNk4gPy3YdYRgH3uxhBw==",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-remap-async-to-generator": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.25.9.tgz",
+ "integrity": "sha512-IZtukuUeBbhgOcaW2s06OXTzVNJR0ybm4W5xC1opWFFJMZbwRj5LCk+ByYH7WdZPZTt8KnFwA8pvjN2yqcPlgw==",
+ "dependencies": {
+ "@babel/helper-annotate-as-pure": "^7.25.9",
+ "@babel/helper-wrap-function": "^7.25.9",
+ "@babel/traverse": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/helper-replace-supers": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/helper-replace-supers/-/helper-replace-supers-7.25.9.tgz",
+ "integrity": "sha512-IiDqTOTBQy0sWyeXyGSC5TBJpGFXBkRynjBeXsvbhQFKj2viwJC76Epz35YLU1fpe/Am6Vppb7W7zM4fPQzLsQ==",
+ "dependencies": {
+ "@babel/helper-member-expression-to-functions": "^7.25.9",
+ "@babel/helper-optimise-call-expression": "^7.25.9",
+ "@babel/traverse": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/helper-skip-transparent-expression-wrappers": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.25.9.tgz",
+ "integrity": "sha512-K4Du3BFa3gvyhzgPcntrkDgZzQaq6uozzcpGbOO1OEJaI+EJdqWIMTLgFgQf6lrfiDFo5FU+BxKepI9RmZqahA==",
+ "dependencies": {
+ "@babel/traverse": "^7.25.9",
+ "@babel/types": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-string-parser": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz",
+ "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-identifier": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz",
+ "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-option": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz",
+ "integrity": "sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-wrap-function": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/helper-wrap-function/-/helper-wrap-function-7.25.9.tgz",
+ "integrity": "sha512-ETzz9UTjQSTmw39GboatdymDq4XIQbR8ySgVrylRhPOFpsd+JrKHIuF0de7GCWmem+T4uC5z7EZguod7Wj4A4g==",
+ "dependencies": {
+ "@babel/template": "^7.25.9",
+ "@babel/traverse": "^7.25.9",
+ "@babel/types": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helpers": {
+ "version": "7.24.4",
+ "resolved": "https://registry.npmmirror.com/@babel/helpers/-/helpers-7.24.4.tgz",
+ "integrity": "sha512-FewdlZbSiwaVGlgT1DPANDuCHaDMiOo+D/IDYRFYjHOuv66xMSJ7fQwwODwRNAPkADIO/z1EoF/l2BCWlWABDw==",
+ "peer": true,
+ "dependencies": {
+ "@babel/template": "^7.24.0",
+ "@babel/traverse": "^7.24.1",
+ "@babel/types": "^7.24.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/parser": {
+ "version": "7.26.3",
+ "resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.26.3.tgz",
+ "integrity": "sha512-WJ/CvmY8Mea8iDXo6a7RK2wbmJITT5fN3BEkRuFlxVyNx8jOKIIhmC4fSkTcPcf8JyavbBwIe6OpiCOBXt/IcA==",
+ "dependencies": {
+ "@babel/types": "^7.26.3"
+ },
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.25.9.tgz",
+ "integrity": "sha512-ZkRyVkThtxQ/J6nv3JFYv1RYY+JT5BvU0y3k5bWrmuG4woXypRa4PXmm9RhOwodRkYFWqC0C0cqcJ4OqR7kW+g==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9",
+ "@babel/traverse": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-bugfix-safari-class-field-initializer-scope/-/plugin-bugfix-safari-class-field-initializer-scope-7.25.9.tgz",
+ "integrity": "sha512-MrGRLZxLD/Zjj0gdU15dfs+HH/OXvnw/U4jJD8vpcP2CJQapPEv1IWwjc/qMg7ItBlPwSv1hRBbb7LeuANdcnw==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.25.9.tgz",
+ "integrity": "sha512-2qUwwfAFpJLZqxd02YW9btUCZHl+RFvdDkNfZwaIJrvB8Tesjsk8pEQkTvGwZXLqXUx/2oyY3ySRhm6HOXuCug==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.25.9.tgz",
+ "integrity": "sha512-6xWgLZTJXwilVjlnV7ospI3xi+sl8lN8rXXbBD6vYn3UYDlGsag8wrZkKcSI8G6KgqKP7vNFaDgeDnfAABq61g==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9",
+ "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9",
+ "@babel/plugin-transform-optional-chaining": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.13.0"
+ }
+ },
+ "node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.25.9.tgz",
+ "integrity": "sha512-aLnMXYPnzwwqhYSCyXfKkIkYgJ8zv9RK+roo9DkTXz38ynIhd9XCbN08s3MGvqL2MYGVUGdRQLL/JqBIeJhJBg==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9",
+ "@babel/traverse": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/plugin-proposal-private-property-in-object": {
+ "version": "7.21.0-placeholder-for-preset-env.2",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz",
+ "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==",
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-import-assertions": {
+ "version": "7.26.0",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.26.0.tgz",
+ "integrity": "sha512-QCWT5Hh830hK5EQa7XzuqIkQU9tT/whqbDz7kuaZMHFl1inRRg7JnuAEOQ0Ur0QUl0NufCk1msK2BeY79Aj/eg==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-import-attributes": {
+ "version": "7.26.0",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.26.0.tgz",
+ "integrity": "sha512-e2dttdsJ1ZTpi3B9UYGLw41hifAubg19AtCu/2I/F1QNVclOBr1dYpTdmdyZ84Xiz43BS/tCUkMAZNLv12Pi+A==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-unicode-sets-regex": {
+ "version": "7.18.6",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz",
+ "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==",
+ "dependencies": {
+ "@babel/helper-create-regexp-features-plugin": "^7.18.6",
+ "@babel/helper-plugin-utils": "^7.18.6"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-arrow-functions": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.25.9.tgz",
+ "integrity": "sha512-6jmooXYIwn9ca5/RylZADJ+EnSxVUS5sjeJ9UPk6RWRzXCmOJCy6dqItPJFpw2cuCangPK4OYr5uhGKcmrm5Qg==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-async-generator-functions": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.25.9.tgz",
+ "integrity": "sha512-RXV6QAzTBbhDMO9fWwOmwwTuYaiPbggWQ9INdZqAYeSHyG7FzQ+nOZaUUjNwKv9pV3aE4WFqFm1Hnbci5tBCAw==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9",
+ "@babel/helper-remap-async-to-generator": "^7.25.9",
+ "@babel/traverse": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-async-to-generator": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.25.9.tgz",
+ "integrity": "sha512-NT7Ejn7Z/LjUH0Gv5KsBCxh7BH3fbLTV0ptHvpeMvrt3cPThHfJfst9Wrb7S8EvJ7vRTFI7z+VAvFVEQn/m5zQ==",
+ "dependencies": {
+ "@babel/helper-module-imports": "^7.25.9",
+ "@babel/helper-plugin-utils": "^7.25.9",
+ "@babel/helper-remap-async-to-generator": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-block-scoped-functions": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.25.9.tgz",
+ "integrity": "sha512-toHc9fzab0ZfenFpsyYinOX0J/5dgJVA2fm64xPewu7CoYHWEivIWKxkK2rMi4r3yQqLnVmheMXRdG+k239CgA==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-block-scoping": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.25.9.tgz",
+ "integrity": "sha512-1F05O7AYjymAtqbsFETboN1NvBdcnzMerO+zlMyJBEz6WkMdejvGWw9p05iTSjC85RLlBseHHQpYaM4gzJkBGg==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-class-properties": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.25.9.tgz",
+ "integrity": "sha512-bbMAII8GRSkcd0h0b4X+36GksxuheLFjP65ul9w6C3KgAamI3JqErNgSrosX6ZPj+Mpim5VvEbawXxJCyEUV3Q==",
+ "dependencies": {
+ "@babel/helper-create-class-features-plugin": "^7.25.9",
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-class-static-block": {
+ "version": "7.26.0",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.26.0.tgz",
+ "integrity": "sha512-6J2APTs7BDDm+UMqP1useWqhcRAXo0WIoVj26N7kPFB6S73Lgvyka4KTZYIxtgYXiN5HTyRObA72N2iu628iTQ==",
+ "dependencies": {
+ "@babel/helper-create-class-features-plugin": "^7.25.9",
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.12.0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-classes": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.25.9.tgz",
+ "integrity": "sha512-mD8APIXmseE7oZvZgGABDyM34GUmK45Um2TXiBUt7PnuAxrgoSVf123qUzPxEr/+/BHrRn5NMZCdE2m/1F8DGg==",
+ "dependencies": {
+ "@babel/helper-annotate-as-pure": "^7.25.9",
+ "@babel/helper-compilation-targets": "^7.25.9",
+ "@babel/helper-plugin-utils": "^7.25.9",
+ "@babel/helper-replace-supers": "^7.25.9",
+ "@babel/traverse": "^7.25.9",
+ "globals": "^11.1.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-computed-properties": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.25.9.tgz",
+ "integrity": "sha512-HnBegGqXZR12xbcTHlJ9HGxw1OniltT26J5YpfruGqtUHlz/xKf/G2ak9e+t0rVqrjXa9WOhvYPz1ERfMj23AA==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9",
+ "@babel/template": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-destructuring": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.25.9.tgz",
+ "integrity": "sha512-WkCGb/3ZxXepmMiX101nnGiU+1CAdut8oHyEOHxkKuS1qKpU2SMXE2uSvfz8PBuLd49V6LEsbtyPhWC7fnkgvQ==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-dotall-regex": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.25.9.tgz",
+ "integrity": "sha512-t7ZQ7g5trIgSRYhI9pIJtRl64KHotutUJsh4Eze5l7olJv+mRSg4/MmbZ0tv1eeqRbdvo/+trvJD/Oc5DmW2cA==",
+ "dependencies": {
+ "@babel/helper-create-regexp-features-plugin": "^7.25.9",
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-duplicate-keys": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.25.9.tgz",
+ "integrity": "sha512-LZxhJ6dvBb/f3x8xwWIuyiAHy56nrRG3PeYTpBkkzkYRRQ6tJLu68lEF5VIqMUZiAV7a8+Tb78nEoMCMcqjXBw==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-duplicate-named-capturing-groups-regex/-/plugin-transform-duplicate-named-capturing-groups-regex-7.25.9.tgz",
+ "integrity": "sha512-0UfuJS0EsXbRvKnwcLjFtJy/Sxc5J5jhLHnFhy7u4zih97Hz6tJkLU+O+FMMrNZrosUPxDi6sYxJ/EA8jDiAog==",
+ "dependencies": {
+ "@babel/helper-create-regexp-features-plugin": "^7.25.9",
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-dynamic-import": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.25.9.tgz",
+ "integrity": "sha512-GCggjexbmSLaFhqsojeugBpeaRIgWNTcgKVq/0qIteFEqY2A+b9QidYadrWlnbWQUrW5fn+mCvf3tr7OeBFTyg==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-exponentiation-operator": {
+ "version": "7.26.3",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.26.3.tgz",
+ "integrity": "sha512-7CAHcQ58z2chuXPWblnn1K6rLDnDWieghSOEmqQsrBenH0P9InCUtOJYD89pvngljmZlJcz3fcmgYsXFNGa1ZQ==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-export-namespace-from": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.25.9.tgz",
+ "integrity": "sha512-2NsEz+CxzJIVOPx2o9UsW1rXLqtChtLoVnwYHHiB04wS5sgn7mrV45fWMBX0Kk+ub9uXytVYfNP2HjbVbCB3Ww==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-for-of": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.25.9.tgz",
+ "integrity": "sha512-LqHxduHoaGELJl2uhImHwRQudhCM50pT46rIBNvtT/Oql3nqiS3wOwP+5ten7NpYSXrrVLgtZU3DZmPtWZo16A==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9",
+ "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-function-name": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.25.9.tgz",
+ "integrity": "sha512-8lP+Yxjv14Vc5MuWBpJsoUCd3hD6V9DgBon2FVYL4jJgbnVQ9fTgYmonchzZJOVNgzEgbxp4OwAf6xz6M/14XA==",
+ "dependencies": {
+ "@babel/helper-compilation-targets": "^7.25.9",
+ "@babel/helper-plugin-utils": "^7.25.9",
+ "@babel/traverse": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-json-strings": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.25.9.tgz",
+ "integrity": "sha512-xoTMk0WXceiiIvsaquQQUaLLXSW1KJ159KP87VilruQm0LNNGxWzahxSS6T6i4Zg3ezp4vA4zuwiNUR53qmQAw==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-literals": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.25.9.tgz",
+ "integrity": "sha512-9N7+2lFziW8W9pBl2TzaNht3+pgMIRP74zizeCSrtnSKVdUl8mAjjOP2OOVQAfZ881P2cNjDj1uAMEdeD50nuQ==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-logical-assignment-operators": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.25.9.tgz",
+ "integrity": "sha512-wI4wRAzGko551Y8eVf6iOY9EouIDTtPb0ByZx+ktDGHwv6bHFimrgJM/2T021txPZ2s4c7bqvHbd+vXG6K948Q==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-member-expression-literals": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.25.9.tgz",
+ "integrity": "sha512-PYazBVfofCQkkMzh2P6IdIUaCEWni3iYEerAsRWuVd8+jlM1S9S9cz1dF9hIzyoZ8IA3+OwVYIp9v9e+GbgZhA==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-modules-amd": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.25.9.tgz",
+ "integrity": "sha512-g5T11tnI36jVClQlMlt4qKDLlWnG5pP9CSM4GhdRciTNMRgkfpo5cR6b4rGIOYPgRRuFAvwjPQ/Yk+ql4dyhbw==",
+ "dependencies": {
+ "@babel/helper-module-transforms": "^7.25.9",
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-modules-commonjs": {
+ "version": "7.26.3",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.26.3.tgz",
+ "integrity": "sha512-MgR55l4q9KddUDITEzEFYn5ZsGDXMSsU9E+kh7fjRXTIC3RHqfCo8RPRbyReYJh44HQ/yomFkqbOFohXvDCiIQ==",
+ "dependencies": {
+ "@babel/helper-module-transforms": "^7.26.0",
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-modules-systemjs": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.25.9.tgz",
+ "integrity": "sha512-hyss7iIlH/zLHaehT+xwiymtPOpsiwIIRlCAOwBB04ta5Tt+lNItADdlXw3jAWZ96VJ2jlhl/c+PNIQPKNfvcA==",
+ "dependencies": {
+ "@babel/helper-module-transforms": "^7.25.9",
+ "@babel/helper-plugin-utils": "^7.25.9",
+ "@babel/helper-validator-identifier": "^7.25.9",
+ "@babel/traverse": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-modules-umd": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.25.9.tgz",
+ "integrity": "sha512-bS9MVObUgE7ww36HEfwe6g9WakQ0KF07mQF74uuXdkoziUPfKyu/nIm663kz//e5O1nPInPFx36z7WJmJ4yNEw==",
+ "dependencies": {
+ "@babel/helper-module-transforms": "^7.25.9",
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-named-capturing-groups-regex": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.25.9.tgz",
+ "integrity": "sha512-oqB6WHdKTGl3q/ItQhpLSnWWOpjUJLsOCLVyeFgeTktkBSCiurvPOsyt93gibI9CmuKvTUEtWmG5VhZD+5T/KA==",
+ "dependencies": {
+ "@babel/helper-create-regexp-features-plugin": "^7.25.9",
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-new-target": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.25.9.tgz",
+ "integrity": "sha512-U/3p8X1yCSoKyUj2eOBIx3FOn6pElFOKvAAGf8HTtItuPyB+ZeOqfn+mvTtg9ZlOAjsPdK3ayQEjqHjU/yLeVQ==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-nullish-coalescing-operator": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.25.9.tgz",
+ "integrity": "sha512-ENfftpLZw5EItALAD4WsY/KUWvhUlZndm5GC7G3evUsVeSJB6p0pBeLQUnRnBCBx7zV0RKQjR9kCuwrsIrjWog==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-numeric-separator": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.25.9.tgz",
+ "integrity": "sha512-TlprrJ1GBZ3r6s96Yq8gEQv82s8/5HnCVHtEJScUj90thHQbwe+E5MLhi2bbNHBEJuzrvltXSru+BUxHDoog7Q==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-object-rest-spread": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.25.9.tgz",
+ "integrity": "sha512-fSaXafEE9CVHPweLYw4J0emp1t8zYTXyzN3UuG+lylqkvYd7RMrsOQ8TYx5RF231be0vqtFC6jnx3UmpJmKBYg==",
+ "dependencies": {
+ "@babel/helper-compilation-targets": "^7.25.9",
+ "@babel/helper-plugin-utils": "^7.25.9",
+ "@babel/plugin-transform-parameters": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-object-super": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.25.9.tgz",
+ "integrity": "sha512-Kj/Gh+Rw2RNLbCK1VAWj2U48yxxqL2x0k10nPtSdRa0O2xnHXalD0s+o1A6a0W43gJ00ANo38jxkQreckOzv5A==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9",
+ "@babel/helper-replace-supers": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-optional-catch-binding": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.25.9.tgz",
+ "integrity": "sha512-qM/6m6hQZzDcZF3onzIhZeDHDO43bkNNlOX0i8n3lR6zLbu0GN2d8qfM/IERJZYauhAHSLHy39NF0Ctdvcid7g==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-optional-chaining": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.25.9.tgz",
+ "integrity": "sha512-6AvV0FsLULbpnXeBjrY4dmWF8F7gf8QnvTEoO/wX/5xm/xE1Xo8oPuD3MPS+KS9f9XBEAWN7X1aWr4z9HdOr7A==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9",
+ "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-parameters": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.25.9.tgz",
+ "integrity": "sha512-wzz6MKwpnshBAiRmn4jR8LYz/g8Ksg0o80XmwZDlordjwEk9SxBzTWC7F5ef1jhbrbOW2DJ5J6ayRukrJmnr0g==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-private-methods": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.25.9.tgz",
+ "integrity": "sha512-D/JUozNpQLAPUVusvqMxyvjzllRaF8/nSrP1s2YGQT/W4LHK4xxsMcHjhOGTS01mp9Hda8nswb+FblLdJornQw==",
+ "dependencies": {
+ "@babel/helper-create-class-features-plugin": "^7.25.9",
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-private-property-in-object": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.25.9.tgz",
+ "integrity": "sha512-Evf3kcMqzXA3xfYJmZ9Pg1OvKdtqsDMSWBDzZOPLvHiTt36E75jLDQo5w1gtRU95Q4E5PDttrTf25Fw8d/uWLw==",
+ "dependencies": {
+ "@babel/helper-annotate-as-pure": "^7.25.9",
+ "@babel/helper-create-class-features-plugin": "^7.25.9",
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-property-literals": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.25.9.tgz",
+ "integrity": "sha512-IvIUeV5KrS/VPavfSM/Iu+RE6llrHrYIKY1yfCzyO/lMXHQ+p7uGhonmGVisv6tSBSVgWzMBohTcvkC9vQcQFA==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-regenerator": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.25.9.tgz",
+ "integrity": "sha512-vwDcDNsgMPDGP0nMqzahDWE5/MLcX8sv96+wfX7as7LoF/kr97Bo/7fI00lXY4wUXYfVmwIIyG80fGZ1uvt2qg==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9",
+ "regenerator-transform": "^0.15.2"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-regexp-modifiers": {
+ "version": "7.26.0",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-regexp-modifiers/-/plugin-transform-regexp-modifiers-7.26.0.tgz",
+ "integrity": "sha512-vN6saax7lrA2yA/Pak3sCxuD6F5InBjn9IcrIKQPjpsLvuHYLVroTxjdlVRHjjBWxKOqIwpTXDkOssYT4BFdRw==",
+ "dependencies": {
+ "@babel/helper-create-regexp-features-plugin": "^7.25.9",
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-reserved-words": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.25.9.tgz",
+ "integrity": "sha512-7DL7DKYjn5Su++4RXu8puKZm2XBPHyjWLUidaPEkCUBbE7IPcsrkRHggAOOKydH1dASWdcUBxrkOGNxUv5P3Jg==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-shorthand-properties": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.25.9.tgz",
+ "integrity": "sha512-MUv6t0FhO5qHnS/W8XCbHmiRWOphNufpE1IVxhK5kuN3Td9FT1x4rx4K42s3RYdMXCXpfWkGSbCSd0Z64xA7Ng==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-spread": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.25.9.tgz",
+ "integrity": "sha512-oNknIB0TbURU5pqJFVbOOFspVlrpVwo2H1+HUIsVDvp5VauGGDP1ZEvO8Nn5xyMEs3dakajOxlmkNW7kNgSm6A==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9",
+ "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-sticky-regex": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.25.9.tgz",
+ "integrity": "sha512-WqBUSgeVwucYDP9U/xNRQam7xV8W5Zf+6Eo7T2SRVUFlhRiMNFdFz58u0KZmCVVqs2i7SHgpRnAhzRNmKfi2uA==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-template-literals": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.25.9.tgz",
+ "integrity": "sha512-o97AE4syN71M/lxrCtQByzphAdlYluKPDBzDVzMmfCobUjjhAryZV0AIpRPrxN0eAkxXO6ZLEScmt+PNhj2OTw==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-typeof-symbol": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.25.9.tgz",
+ "integrity": "sha512-v61XqUMiueJROUv66BVIOi0Fv/CUuZuZMl5NkRoCVxLAnMexZ0A3kMe7vvZ0nulxMuMp0Mk6S5hNh48yki08ZA==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-unicode-escapes": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.25.9.tgz",
+ "integrity": "sha512-s5EDrE6bW97LtxOcGj1Khcx5AaXwiMmi4toFWRDP9/y0Woo6pXC+iyPu/KuhKtfSrNFd7jJB+/fkOtZy6aIC6Q==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-unicode-property-regex": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.25.9.tgz",
+ "integrity": "sha512-Jt2d8Ga+QwRluxRQ307Vlxa6dMrYEMZCgGxoPR8V52rxPyldHu3hdlHspxaqYmE7oID5+kB+UKUB/eWS+DkkWg==",
+ "dependencies": {
+ "@babel/helper-create-regexp-features-plugin": "^7.25.9",
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-unicode-regex": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.25.9.tgz",
+ "integrity": "sha512-yoxstj7Rg9dlNn9UQxzk4fcNivwv4nUYz7fYXBaKxvw/lnmPuOm/ikoELygbYq68Bls3D/D+NBPHiLwZdZZ4HA==",
+ "dependencies": {
+ "@babel/helper-create-regexp-features-plugin": "^7.25.9",
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-unicode-sets-regex": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.25.9.tgz",
+ "integrity": "sha512-8BYqO3GeVNHtx69fdPshN3fnzUNLrWdHhk/icSwigksJGczKSizZ+Z6SBCxTs723Fr5VSNorTIK7a+R2tISvwQ==",
+ "dependencies": {
+ "@babel/helper-create-regexp-features-plugin": "^7.25.9",
+ "@babel/helper-plugin-utils": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/preset-env": {
+ "version": "7.26.0",
+ "resolved": "https://registry.npmmirror.com/@babel/preset-env/-/preset-env-7.26.0.tgz",
+ "integrity": "sha512-H84Fxq0CQJNdPFT2DrfnylZ3cf5K43rGfWK4LJGPpjKHiZlk0/RzwEus3PDDZZg+/Er7lCA03MVacueUuXdzfw==",
+ "dependencies": {
+ "@babel/compat-data": "^7.26.0",
+ "@babel/helper-compilation-targets": "^7.25.9",
+ "@babel/helper-plugin-utils": "^7.25.9",
+ "@babel/helper-validator-option": "^7.25.9",
+ "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.25.9",
+ "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.25.9",
+ "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.25.9",
+ "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.25.9",
+ "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.25.9",
+ "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2",
+ "@babel/plugin-syntax-import-assertions": "^7.26.0",
+ "@babel/plugin-syntax-import-attributes": "^7.26.0",
+ "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6",
+ "@babel/plugin-transform-arrow-functions": "^7.25.9",
+ "@babel/plugin-transform-async-generator-functions": "^7.25.9",
+ "@babel/plugin-transform-async-to-generator": "^7.25.9",
+ "@babel/plugin-transform-block-scoped-functions": "^7.25.9",
+ "@babel/plugin-transform-block-scoping": "^7.25.9",
+ "@babel/plugin-transform-class-properties": "^7.25.9",
+ "@babel/plugin-transform-class-static-block": "^7.26.0",
+ "@babel/plugin-transform-classes": "^7.25.9",
+ "@babel/plugin-transform-computed-properties": "^7.25.9",
+ "@babel/plugin-transform-destructuring": "^7.25.9",
+ "@babel/plugin-transform-dotall-regex": "^7.25.9",
+ "@babel/plugin-transform-duplicate-keys": "^7.25.9",
+ "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.25.9",
+ "@babel/plugin-transform-dynamic-import": "^7.25.9",
+ "@babel/plugin-transform-exponentiation-operator": "^7.25.9",
+ "@babel/plugin-transform-export-namespace-from": "^7.25.9",
+ "@babel/plugin-transform-for-of": "^7.25.9",
+ "@babel/plugin-transform-function-name": "^7.25.9",
+ "@babel/plugin-transform-json-strings": "^7.25.9",
+ "@babel/plugin-transform-literals": "^7.25.9",
+ "@babel/plugin-transform-logical-assignment-operators": "^7.25.9",
+ "@babel/plugin-transform-member-expression-literals": "^7.25.9",
+ "@babel/plugin-transform-modules-amd": "^7.25.9",
+ "@babel/plugin-transform-modules-commonjs": "^7.25.9",
+ "@babel/plugin-transform-modules-systemjs": "^7.25.9",
+ "@babel/plugin-transform-modules-umd": "^7.25.9",
+ "@babel/plugin-transform-named-capturing-groups-regex": "^7.25.9",
+ "@babel/plugin-transform-new-target": "^7.25.9",
+ "@babel/plugin-transform-nullish-coalescing-operator": "^7.25.9",
+ "@babel/plugin-transform-numeric-separator": "^7.25.9",
+ "@babel/plugin-transform-object-rest-spread": "^7.25.9",
+ "@babel/plugin-transform-object-super": "^7.25.9",
+ "@babel/plugin-transform-optional-catch-binding": "^7.25.9",
+ "@babel/plugin-transform-optional-chaining": "^7.25.9",
+ "@babel/plugin-transform-parameters": "^7.25.9",
+ "@babel/plugin-transform-private-methods": "^7.25.9",
+ "@babel/plugin-transform-private-property-in-object": "^7.25.9",
+ "@babel/plugin-transform-property-literals": "^7.25.9",
+ "@babel/plugin-transform-regenerator": "^7.25.9",
+ "@babel/plugin-transform-regexp-modifiers": "^7.26.0",
+ "@babel/plugin-transform-reserved-words": "^7.25.9",
+ "@babel/plugin-transform-shorthand-properties": "^7.25.9",
+ "@babel/plugin-transform-spread": "^7.25.9",
+ "@babel/plugin-transform-sticky-regex": "^7.25.9",
+ "@babel/plugin-transform-template-literals": "^7.25.9",
+ "@babel/plugin-transform-typeof-symbol": "^7.25.9",
+ "@babel/plugin-transform-unicode-escapes": "^7.25.9",
+ "@babel/plugin-transform-unicode-property-regex": "^7.25.9",
+ "@babel/plugin-transform-unicode-regex": "^7.25.9",
+ "@babel/plugin-transform-unicode-sets-regex": "^7.25.9",
+ "@babel/preset-modules": "0.1.6-no-external-plugins",
+ "babel-plugin-polyfill-corejs2": "^0.4.10",
+ "babel-plugin-polyfill-corejs3": "^0.10.6",
+ "babel-plugin-polyfill-regenerator": "^0.6.1",
+ "core-js-compat": "^3.38.1",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/preset-env/node_modules/semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/@babel/preset-modules": {
+ "version": "0.1.6-no-external-plugins",
+ "resolved": "https://registry.npmmirror.com/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz",
+ "integrity": "sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.0.0",
+ "@babel/types": "^7.4.4",
+ "esutils": "^2.0.2"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0"
+ }
+ },
+ "node_modules/@babel/runtime": {
+ "version": "7.23.8",
+ "resolved": "https://registry.npmmirror.com/@babel/runtime/-/runtime-7.23.8.tgz",
+ "integrity": "sha512-Y7KbAP984rn1VGMbGqKmBLio9V7y5Je9GvU4rQPCPinCyNfUcToxIXl06d59URp/F3LwinvODxab5N/G6qggkw==",
+ "dependencies": {
+ "regenerator-runtime": "^0.14.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/template": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmmirror.com/@babel/template/-/template-7.25.9.tgz",
+ "integrity": "sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==",
+ "dependencies": {
+ "@babel/code-frame": "^7.25.9",
+ "@babel/parser": "^7.25.9",
+ "@babel/types": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/traverse": {
+ "version": "7.26.4",
+ "resolved": "https://registry.npmmirror.com/@babel/traverse/-/traverse-7.26.4.tgz",
+ "integrity": "sha512-fH+b7Y4p3yqvApJALCPJcwb0/XaOSgtK4pzV6WVjPR5GLFQBRI7pfoX2V2iM48NXvX07NUxxm1Vw98YjqTcU5w==",
+ "dependencies": {
+ "@babel/code-frame": "^7.26.2",
+ "@babel/generator": "^7.26.3",
+ "@babel/parser": "^7.26.3",
+ "@babel/template": "^7.25.9",
+ "@babel/types": "^7.26.3",
+ "debug": "^4.3.1",
+ "globals": "^11.1.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/traverse/node_modules/debug": {
+ "version": "4.3.4",
+ "resolved": "https://registry.npmmirror.com/debug/-/debug-4.3.4.tgz",
+ "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@babel/traverse/node_modules/ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
+ },
+ "node_modules/@babel/types": {
+ "version": "7.26.3",
+ "resolved": "https://registry.npmmirror.com/@babel/types/-/types-7.26.3.tgz",
+ "integrity": "sha512-vN5p+1kl59GVKMvTHt55NzzmYVxprfJD+ql7U9NFIfKCBkYE55LYtS+WtPlaYOyzydrKI8Nezd+aZextrd+FMA==",
+ "dependencies": {
+ "@babel/helper-string-parser": "^7.25.9",
+ "@babel/helper-validator-identifier": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@grpc/grpc-js": {
+ "version": "1.9.13",
+ "resolved": "https://registry.npmmirror.com/@grpc/grpc-js/-/grpc-js-1.9.13.tgz",
+ "integrity": "sha512-OEZZu9v9AA+7/tghMDE8o5DAMD5THVnwSqDWuh7PPYO5287rTyqy0xEHT6/e4pbqSrhyLPdQFsam4TwFQVVIIw==",
+ "dependencies": {
+ "@grpc/proto-loader": "^0.7.8",
+ "@types/node": ">=12.12.47"
+ },
+ "engines": {
+ "node": "^8.13.0 || >=10.10.0"
+ }
+ },
+ "node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader": {
+ "version": "0.7.10",
+ "resolved": "https://registry.npmmirror.com/@grpc/proto-loader/-/proto-loader-0.7.10.tgz",
+ "integrity": "sha512-CAqDfoaQ8ykFd9zqBDn4k6iWT9loLAlc2ETmDFS9JCD70gDcnA4L3AFEo2iV7KyAtAAHFW9ftq1Fz+Vsgq80RQ==",
+ "dependencies": {
+ "lodash.camelcase": "^4.3.0",
+ "long": "^5.0.0",
+ "protobufjs": "^7.2.4",
+ "yargs": "^17.7.2"
+ },
+ "bin": {
+ "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/@grpc/grpc-js/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@grpc/grpc-js/node_modules/cliui": {
+ "version": "8.0.1",
+ "resolved": "https://registry.npmmirror.com/cliui/-/cliui-8.0.1.tgz",
+ "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
+ "dependencies": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.1",
+ "wrap-ansi": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@grpc/grpc-js/node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
+ },
+ "node_modules/@grpc/grpc-js/node_modules/long": {
+ "version": "5.2.3",
+ "resolved": "https://registry.npmmirror.com/long/-/long-5.2.3.tgz",
+ "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q=="
+ },
+ "node_modules/@grpc/grpc-js/node_modules/protobufjs": {
+ "version": "7.2.5",
+ "resolved": "https://registry.npmmirror.com/protobufjs/-/protobufjs-7.2.5.tgz",
+ "integrity": "sha512-gGXRSXvxQ7UiPgfw8gevrfRWcTlSbOFg+p/N+JVJEK5VhueL2miT6qTymqAmjr1Q5WbOCyJbyrk6JfWKwlFn6A==",
+ "hasInstallScript": true,
+ "dependencies": {
+ "@protobufjs/aspromise": "^1.1.2",
+ "@protobufjs/base64": "^1.1.2",
+ "@protobufjs/codegen": "^2.0.4",
+ "@protobufjs/eventemitter": "^1.1.0",
+ "@protobufjs/fetch": "^1.1.0",
+ "@protobufjs/float": "^1.0.2",
+ "@protobufjs/inquire": "^1.1.0",
+ "@protobufjs/path": "^1.1.2",
+ "@protobufjs/pool": "^1.1.0",
+ "@protobufjs/utf8": "^1.1.0",
+ "@types/node": ">=13.7.0",
+ "long": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ }
+ },
+ "node_modules/@grpc/grpc-js/node_modules/string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@grpc/grpc-js/node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@grpc/grpc-js/node_modules/wrap-ansi": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@grpc/grpc-js/node_modules/yargs": {
+ "version": "17.7.2",
+ "resolved": "https://registry.npmmirror.com/yargs/-/yargs-17.7.2.tgz",
+ "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",
+ "dependencies": {
+ "cliui": "^8.0.1",
+ "escalade": "^3.1.1",
+ "get-caller-file": "^2.0.5",
+ "require-directory": "^2.1.1",
+ "string-width": "^4.2.3",
+ "y18n": "^5.0.5",
+ "yargs-parser": "^21.1.1"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@grpc/grpc-js/node_modules/yargs-parser": {
+ "version": "21.1.1",
+ "resolved": "https://registry.npmmirror.com/yargs-parser/-/yargs-parser-21.1.1.tgz",
+ "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@grpc/proto-loader": {
+ "version": "0.6.13",
+ "resolved": "https://registry.npmmirror.com/@grpc/proto-loader/-/proto-loader-0.6.13.tgz",
+ "integrity": "sha512-FjxPYDRTn6Ec3V0arm1FtSpmP6V50wuph2yILpyvTKzjc76oDdoihXqM1DzOW5ubvCC8GivfCnNtfaRE8myJ7g==",
+ "dependencies": {
+ "@types/long": "^4.0.1",
+ "lodash.camelcase": "^4.3.0",
+ "long": "^4.0.0",
+ "protobufjs": "^6.11.3",
+ "yargs": "^16.2.0"
+ },
+ "bin": {
+ "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/@ioredis/commands": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmmirror.com/@ioredis/commands/-/commands-1.2.0.tgz",
+ "integrity": "sha512-Sx1pU8EM64o2BrqNpEO1CNLtKQwyhuXuqyfH7oGKCk+1a33d2r5saW8zNwm3j6BTExtjrv2BxTgzzkMwts6vGg=="
+ },
+ "node_modules/@isaacs/cliui": {
+ "version": "8.0.2",
+ "resolved": "https://registry.npmmirror.com/@isaacs/cliui/-/cliui-8.0.2.tgz",
+ "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==",
+ "dependencies": {
+ "string-width": "^5.1.2",
+ "string-width-cjs": "npm:string-width@^4.2.0",
+ "strip-ansi": "^7.0.1",
+ "strip-ansi-cjs": "npm:strip-ansi@^6.0.1",
+ "wrap-ansi": "^8.1.0",
+ "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@javascript-obfuscator/escodegen": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmmirror.com/@javascript-obfuscator/escodegen/-/escodegen-2.3.0.tgz",
+ "integrity": "sha512-QVXwMIKqYMl3KwtTirYIA6gOCiJ0ZDtptXqAv/8KWLG9uQU2fZqTVy7a/A5RvcoZhbDoFfveTxuGxJ5ibzQtkw==",
+ "dependencies": {
+ "@javascript-obfuscator/estraverse": "^5.3.0",
+ "esprima": "^4.0.1",
+ "esutils": "^2.0.2",
+ "optionator": "^0.8.1"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "optionalDependencies": {
+ "source-map": "~0.6.1"
+ }
+ },
+ "node_modules/@javascript-obfuscator/estraverse": {
+ "version": "5.4.0",
+ "resolved": "https://registry.npmmirror.com/@javascript-obfuscator/estraverse/-/estraverse-5.4.0.tgz",
+ "integrity": "sha512-CZFX7UZVN9VopGbjTx4UXaXsi9ewoM1buL0kY7j1ftYdSs7p2spv9opxFjHlQ/QGTgh4UqufYqJJ0WKLml7b6w==",
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/@jridgewell/gen-mapping": {
+ "version": "0.3.5",
+ "resolved": "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz",
+ "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==",
+ "dependencies": {
+ "@jridgewell/set-array": "^1.2.1",
+ "@jridgewell/sourcemap-codec": "^1.4.10",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/resolve-uri": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz",
+ "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/set-array": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmmirror.com/@jridgewell/set-array/-/set-array-1.2.1.tgz",
+ "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/source-map": {
+ "version": "0.3.5",
+ "resolved": "https://registry.npmmirror.com/@jridgewell/source-map/-/source-map-0.3.5.tgz",
+ "integrity": "sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==",
+ "dependencies": {
+ "@jridgewell/gen-mapping": "^0.3.0",
+ "@jridgewell/trace-mapping": "^0.3.9"
+ }
+ },
+ "node_modules/@jridgewell/sourcemap-codec": {
+ "version": "1.4.15",
+ "resolved": "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz",
+ "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg=="
+ },
+ "node_modules/@jridgewell/trace-mapping": {
+ "version": "0.3.25",
+ "resolved": "https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz",
+ "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==",
+ "dependencies": {
+ "@jridgewell/resolve-uri": "^3.1.0",
+ "@jridgewell/sourcemap-codec": "^1.4.14"
+ }
+ },
+ "node_modules/@msgpackr-extract/msgpackr-extract-darwin-arm64": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmmirror.com/@msgpackr-extract/msgpackr-extract-darwin-arm64/-/msgpackr-extract-darwin-arm64-3.0.3.tgz",
+ "integrity": "sha512-QZHtlVgbAdy2zAqNA9Gu1UpIuI8Xvsd1v8ic6B2pZmeFnFcMWiPLfWXh7TVw4eGEZ/C9TH281KwhVoeQUKbyjw==",
+ "cpu": [
+ "arm64"
+ ],
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@msgpackr-extract/msgpackr-extract-darwin-x64": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmmirror.com/@msgpackr-extract/msgpackr-extract-darwin-x64/-/msgpackr-extract-darwin-x64-3.0.3.tgz",
+ "integrity": "sha512-mdzd3AVzYKuUmiWOQ8GNhl64/IoFGol569zNRdkLReh6LRLHOXxU4U8eq0JwaD8iFHdVGqSy4IjFL4reoWCDFw==",
+ "cpu": [
+ "x64"
+ ],
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@msgpackr-extract/msgpackr-extract-linux-arm": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmmirror.com/@msgpackr-extract/msgpackr-extract-linux-arm/-/msgpackr-extract-linux-arm-3.0.3.tgz",
+ "integrity": "sha512-fg0uy/dG/nZEXfYilKoRe7yALaNmHoYeIoJuJ7KJ+YyU2bvY8vPv27f7UKhGRpY6euFYqEVhxCFZgAUNQBM3nw==",
+ "cpu": [
+ "arm"
+ ],
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@msgpackr-extract/msgpackr-extract-linux-arm64": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmmirror.com/@msgpackr-extract/msgpackr-extract-linux-arm64/-/msgpackr-extract-linux-arm64-3.0.3.tgz",
+ "integrity": "sha512-YxQL+ax0XqBJDZiKimS2XQaf+2wDGVa1enVRGzEvLLVFeqa5kx2bWbtcSXgsxjQB7nRqqIGFIcLteF/sHeVtQg==",
+ "cpu": [
+ "arm64"
+ ],
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@msgpackr-extract/msgpackr-extract-linux-x64": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmmirror.com/@msgpackr-extract/msgpackr-extract-linux-x64/-/msgpackr-extract-linux-x64-3.0.3.tgz",
+ "integrity": "sha512-cvwNfbP07pKUfq1uH+S6KJ7dT9K8WOE4ZiAcsrSes+UY55E/0jLYc+vq+DO7jlmqRb5zAggExKm0H7O/CBaesg==",
+ "cpu": [
+ "x64"
+ ],
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@msgpackr-extract/msgpackr-extract-win32-x64": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmmirror.com/@msgpackr-extract/msgpackr-extract-win32-x64/-/msgpackr-extract-win32-x64-3.0.3.tgz",
+ "integrity": "sha512-x0fWaQtYp4E6sktbsdAqnehxDgEc/VwM7uLsRCYWaiGu0ykYdZPiS8zCWdnjHwyiumousxfBm4SO31eXqwEZhQ==",
+ "cpu": [
+ "x64"
+ ],
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@nodelib/fs.scandir": {
+ "version": "2.1.5",
+ "resolved": "https://registry.npmmirror.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
+ "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
+ "dependencies": {
+ "@nodelib/fs.stat": "2.0.5",
+ "run-parallel": "^1.1.9"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@nodelib/fs.stat": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmmirror.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
+ "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@nodelib/fs.walk": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmmirror.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
+ "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
+ "dependencies": {
+ "@nodelib/fs.scandir": "2.1.5",
+ "fastq": "^1.6.0"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@pkgjs/parseargs": {
+ "version": "0.11.0",
+ "resolved": "https://registry.npmmirror.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz",
+ "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==",
+ "optional": true,
+ "engines": {
+ "node": ">=14"
+ }
+ },
+ "node_modules/@protobufjs/aspromise": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmmirror.com/@protobufjs/aspromise/-/aspromise-1.1.2.tgz",
+ "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ=="
+ },
+ "node_modules/@protobufjs/base64": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmmirror.com/@protobufjs/base64/-/base64-1.1.2.tgz",
+ "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg=="
+ },
+ "node_modules/@protobufjs/codegen": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmmirror.com/@protobufjs/codegen/-/codegen-2.0.4.tgz",
+ "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg=="
+ },
+ "node_modules/@protobufjs/eventemitter": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz",
+ "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q=="
+ },
+ "node_modules/@protobufjs/fetch": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/@protobufjs/fetch/-/fetch-1.1.0.tgz",
+ "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==",
+ "dependencies": {
+ "@protobufjs/aspromise": "^1.1.1",
+ "@protobufjs/inquire": "^1.1.0"
+ }
+ },
+ "node_modules/@protobufjs/float": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/@protobufjs/float/-/float-1.0.2.tgz",
+ "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ=="
+ },
+ "node_modules/@protobufjs/inquire": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/@protobufjs/inquire/-/inquire-1.1.0.tgz",
+ "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q=="
+ },
+ "node_modules/@protobufjs/path": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmmirror.com/@protobufjs/path/-/path-1.1.2.tgz",
+ "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA=="
+ },
+ "node_modules/@protobufjs/pool": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/@protobufjs/pool/-/pool-1.1.0.tgz",
+ "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw=="
+ },
+ "node_modules/@protobufjs/utf8": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/@protobufjs/utf8/-/utf8-1.1.0.tgz",
+ "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw=="
+ },
+ "node_modules/@redis/bloom": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmmirror.com/@redis/bloom/-/bloom-1.2.0.tgz",
+ "integrity": "sha512-HG2DFjYKbpNmVXsa0keLHp/3leGJz1mjh09f2RLGGLQZzSHpkmZWuwJbAvo3QcRY8p80m5+ZdXZdYOSBLlp7Cg==",
+ "peerDependencies": {
+ "@redis/client": "^1.0.0"
+ }
+ },
+ "node_modules/@redis/client": {
+ "version": "1.5.14",
+ "resolved": "https://registry.npmmirror.com/@redis/client/-/client-1.5.14.tgz",
+ "integrity": "sha512-YGn0GqsRBFUQxklhY7v562VMOP0DcmlrHHs3IV1mFE3cbxe31IITUkqhBcIhVSI/2JqtWAJXg5mjV4aU+zD0HA==",
+ "dependencies": {
+ "cluster-key-slot": "1.1.2",
+ "generic-pool": "3.9.0",
+ "yallist": "4.0.0"
+ },
+ "engines": {
+ "node": ">=14"
+ }
+ },
+ "node_modules/@redis/graph": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmmirror.com/@redis/graph/-/graph-1.1.1.tgz",
+ "integrity": "sha512-FEMTcTHZozZciLRl6GiiIB4zGm5z5F3F6a6FZCyrfxdKOhFlGkiAqlexWMBzCi4DcRoyiOsuLfW+cjlGWyExOw==",
+ "peerDependencies": {
+ "@redis/client": "^1.0.0"
+ }
+ },
+ "node_modules/@redis/json": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmmirror.com/@redis/json/-/json-1.0.6.tgz",
+ "integrity": "sha512-rcZO3bfQbm2zPRpqo82XbW8zg4G/w4W3tI7X8Mqleq9goQjAGLL7q/1n1ZX4dXEAmORVZ4s1+uKLaUOg7LrUhw==",
+ "peerDependencies": {
+ "@redis/client": "^1.0.0"
+ }
+ },
+ "node_modules/@redis/search": {
+ "version": "1.1.6",
+ "resolved": "https://registry.npmmirror.com/@redis/search/-/search-1.1.6.tgz",
+ "integrity": "sha512-mZXCxbTYKBQ3M2lZnEddwEAks0Kc7nauire8q20oA0oA/LoA+E/b5Y5KZn232ztPb1FkIGqo12vh3Lf+Vw5iTw==",
+ "peerDependencies": {
+ "@redis/client": "^1.0.0"
+ }
+ },
+ "node_modules/@redis/time-series": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmmirror.com/@redis/time-series/-/time-series-1.0.5.tgz",
+ "integrity": "sha512-IFjIgTusQym2B5IZJG3XKr5llka7ey84fw/NOYqESP5WUfQs9zz1ww/9+qoz4ka/S6KcGBodzlCeZ5UImKbscg==",
+ "peerDependencies": {
+ "@redis/client": "^1.0.0"
+ }
+ },
+ "node_modules/@types/debug": {
+ "version": "4.1.12",
+ "resolved": "https://registry.npmmirror.com/@types/debug/-/debug-4.1.12.tgz",
+ "integrity": "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==",
+ "dependencies": {
+ "@types/ms": "*"
+ }
+ },
+ "node_modules/@types/expect": {
+ "version": "1.20.4",
+ "resolved": "https://registry.npmmirror.com/@types/expect/-/expect-1.20.4.tgz",
+ "integrity": "sha512-Q5Vn3yjTDyCMV50TB6VRIbQNxSE4OmZR86VSbGaNpfUolm0iePBB4KdEEHmxoY5sT2+2DIvXW0rvMDP2nHZ4Mg=="
+ },
+ "node_modules/@types/fs-extra": {
+ "version": "8.1.5",
+ "resolved": "https://registry.npmmirror.com/@types/fs-extra/-/fs-extra-8.1.5.tgz",
+ "integrity": "sha512-0dzKcwO+S8s2kuF5Z9oUWatQJj5Uq/iqphEtE3GQJVRRYm/tD1LglU2UnXi2A8jLq5umkGouOXOR9y0n613ZwQ==",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@types/glob": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmmirror.com/@types/glob/-/glob-7.2.0.tgz",
+ "integrity": "sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==",
+ "dependencies": {
+ "@types/minimatch": "*",
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@types/long": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmmirror.com/@types/long/-/long-4.0.2.tgz",
+ "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA=="
+ },
+ "node_modules/@types/minimatch": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmmirror.com/@types/minimatch/-/minimatch-5.1.2.tgz",
+ "integrity": "sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA=="
+ },
+ "node_modules/@types/ms": {
+ "version": "0.7.34",
+ "resolved": "https://registry.npmmirror.com/@types/ms/-/ms-0.7.34.tgz",
+ "integrity": "sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g=="
+ },
+ "node_modules/@types/node": {
+ "version": "20.11.0",
+ "resolved": "https://registry.npmmirror.com/@types/node/-/node-20.11.0.tgz",
+ "integrity": "sha512-o9bjXmDNcF7GbM4CNQpmi+TutCgap/K3w1JyKgxAjqx41zp9qlIAVFi0IhCNsJcXolEqLWhbFbEeL0PvYm4pcQ==",
+ "dependencies": {
+ "undici-types": "~5.26.4"
+ }
+ },
+ "node_modules/@types/validator": {
+ "version": "13.11.8",
+ "resolved": "https://registry.npmmirror.com/@types/validator/-/validator-13.11.8.tgz",
+ "integrity": "sha512-c/hzNDBh7eRF+KbCf+OoZxKbnkpaK/cKp9iLQWqB7muXtM+MtL9SUUH8vCFcLn6dH1Qm05jiexK0ofWY7TfOhQ=="
+ },
+ "node_modules/@types/vinyl": {
+ "version": "2.0.11",
+ "resolved": "https://registry.npmmirror.com/@types/vinyl/-/vinyl-2.0.11.tgz",
+ "integrity": "sha512-vPXzCLmRp74e9LsP8oltnWKTH+jBwt86WgRUb4Pc9Lf3pkMVGyvIo2gm9bODeGfCay2DBB/hAWDuvf07JcK4rw==",
+ "dependencies": {
+ "@types/expect": "^1.20.4",
+ "@types/node": "*"
+ }
+ },
+ "node_modules/accepts": {
+ "version": "1.3.8",
+ "resolved": "https://registry.npmmirror.com/accepts/-/accepts-1.3.8.tgz",
+ "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
+ "dependencies": {
+ "mime-types": "~2.1.34",
+ "negotiator": "0.6.3"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/acorn": {
+ "version": "8.11.3",
+ "resolved": "https://registry.npmmirror.com/acorn/-/acorn-8.11.3.tgz",
+ "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==",
+ "bin": {
+ "acorn": "bin/acorn"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/address": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmmirror.com/address/-/address-1.2.2.tgz",
+ "integrity": "sha512-4B/qKCfeE/ODUaAUpSwfzazo5x29WD4r3vXiWsB7I2mSDAihwEqKO+g8GELZUQSSAo5e1XTYh3ZVfLyxBc12nA==",
+ "engines": {
+ "node": ">= 10.0.0"
+ }
+ },
+ "node_modules/after": {
+ "version": "0.8.2",
+ "resolved": "https://registry.npmmirror.com/after/-/after-0.8.2.tgz",
+ "integrity": "sha512-QbJ0NTQ/I9DI3uSJA4cbexiwQeRAfjPScqIbSjUDd9TOrcg6pTkdgziesOqxBMBzit8vFCTwrP27t13vFOORRA=="
+ },
+ "node_modules/agentkeepalive": {
+ "version": "3.5.3",
+ "resolved": "https://registry.npmmirror.com/agentkeepalive/-/agentkeepalive-3.5.3.tgz",
+ "integrity": "sha512-yqXL+k5rr8+ZRpOAntkaaRgWgE5o8ESAj5DyRmVTCSoZxXmqemb9Dd7T4i5UzwuERdLAJUy6XzR9zFVuf0kzkw==",
+ "dependencies": {
+ "humanize-ms": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 4.0.0"
+ }
+ },
+ "node_modules/ajv": {
+ "version": "6.12.6",
+ "resolved": "https://registry.npmmirror.com/ajv/-/ajv-6.12.6.tgz",
+ "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.1",
+ "fast-json-stable-stringify": "^2.0.0",
+ "json-schema-traverse": "^0.4.1",
+ "uri-js": "^4.2.2"
+ }
+ },
+ "node_modules/ajv-formats": {
+ "version": "1.6.1",
+ "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-1.6.1.tgz",
+ "integrity": "sha512-4CjkH20If1lhR5CGtqkrVg3bbOtFEG80X9v6jDOIUhbzzbB+UzPBGy8GQhUNVZ0yvMHdMpawCOcy5ydGMsagGQ==",
+ "dependencies": {
+ "ajv": "^7.0.0"
+ },
+ "peerDependencies": {
+ "ajv": "^7.0.0"
+ },
+ "peerDependenciesMeta": {
+ "ajv": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/ajv-formats/node_modules/ajv": {
+ "version": "7.2.4",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-7.2.4.tgz",
+ "integrity": "sha512-nBeQgg/ZZA3u3SYxyaDvpvDtgZ/EZPF547ARgZBrG9Bhu1vKDwAIjtIf+sDtJUKa2zOcEbmRLBRSyMraS/Oy1A==",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2",
+ "uri-js": "^4.2.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/ajv-formats/node_modules/json-schema-traverse": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="
+ },
+ "node_modules/ali-oss": {
+ "version": "6.21.0",
+ "resolved": "https://registry.npmmirror.com/ali-oss/-/ali-oss-6.21.0.tgz",
+ "integrity": "sha512-dRvKWO/GJEa6dlsCnvmgHIbU5+yE/SmZsE4kZRGNU7Uotr9uIkQWGqv4szLTxRSxWv3YgL+BZgt+swIgitYGjA==",
+ "dependencies": {
+ "address": "^1.2.2",
+ "agentkeepalive": "^3.4.1",
+ "bowser": "^1.6.0",
+ "copy-to": "^2.0.1",
+ "dateformat": "^2.0.0",
+ "debug": "^4.3.4",
+ "destroy": "^1.0.4",
+ "end-or-error": "^1.0.1",
+ "get-ready": "^1.0.0",
+ "humanize-ms": "^1.2.0",
+ "is-type-of": "^1.4.0",
+ "js-base64": "^2.5.2",
+ "jstoxml": "^2.0.0",
+ "lodash": "^4.17.21",
+ "merge-descriptors": "^1.0.1",
+ "mime": "^2.4.5",
+ "platform": "^1.3.1",
+ "pump": "^3.0.0",
+ "qs": "^6.4.0",
+ "sdk-base": "^2.0.1",
+ "stream-http": "2.8.2",
+ "stream-wormhole": "^1.0.4",
+ "urllib": "^2.44.0",
+ "utility": "^1.18.0",
+ "xml2js": "^0.6.2"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ali-oss/node_modules/debug": {
+ "version": "4.3.7",
+ "resolved": "https://registry.npmmirror.com/debug/-/debug-4.3.7.tgz",
+ "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/ali-oss/node_modules/mime": {
+ "version": "2.6.0",
+ "resolved": "https://registry.npmmirror.com/mime/-/mime-2.6.0.tgz",
+ "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==",
+ "bin": {
+ "mime": "cli.js"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/ali-oss/node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
+ },
+ "node_modules/ali-oss/node_modules/pump": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmmirror.com/pump/-/pump-3.0.2.tgz",
+ "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==",
+ "dependencies": {
+ "end-of-stream": "^1.1.0",
+ "once": "^1.3.1"
+ }
+ },
+ "node_modules/amdefine": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz",
+ "integrity": "sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg==",
+ "engines": {
+ "node": ">=0.4.2"
+ }
+ },
+ "node_modules/ansi-cyan": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmmirror.com/ansi-cyan/-/ansi-cyan-0.1.1.tgz",
+ "integrity": "sha512-eCjan3AVo/SxZ0/MyIYRtkpxIu/H3xZN7URr1vXVrISxeyz8fUFz0FJziamK4sS8I+t35y4rHg1b2PklyBe/7A==",
+ "dependencies": {
+ "ansi-wrap": "0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/ansi-gray": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmmirror.com/ansi-gray/-/ansi-gray-0.1.1.tgz",
+ "integrity": "sha512-HrgGIZUl8h2EHuZaU9hTR/cU5nhKxpVE1V6kdGsQ8e4zirElJ5fvtfc8N7Q1oq1aatO275i8pUFUCpNWCAnVWw==",
+ "dependencies": {
+ "ansi-wrap": "0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/ansi-red": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmmirror.com/ansi-red/-/ansi-red-0.1.1.tgz",
+ "integrity": "sha512-ewaIr5y+9CUTGFwZfpECUbFlGcC0GCw1oqR9RI6h1gQCd9Aj2GxSckCnPsVJnmfMZbwFYE+leZGASgkWl06Jow==",
+ "dependencies": {
+ "ansi-wrap": "0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/ansi-regex": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-6.0.1.tgz",
+ "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ansi-wrap": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmmirror.com/ansi-wrap/-/ansi-wrap-0.1.0.tgz",
+ "integrity": "sha512-ZyznvL8k/FZeQHr2T6LzcJ/+vBApDnMNZvfVFy3At0knswWd6rJ3/0Hhmpu8oqa6C92npmozs890sX9Dl6q+Qw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/any-promise": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmmirror.com/any-promise/-/any-promise-1.3.0.tgz",
+ "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A=="
+ },
+ "node_modules/append-buffer": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/append-buffer/-/append-buffer-1.0.2.tgz",
+ "integrity": "sha512-WLbYiXzD3y/ATLZFufV/rZvWdZOs+Z/+5v1rBZ463Jn398pa6kcde27cvozYnBoxXblGZTFfoPpsaEw0orU5BA==",
+ "dependencies": {
+ "buffer-equal": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/append-field": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz",
+ "integrity": "sha512-klpgFSWLW1ZEs8svjfb7g4qWY0YS5imI82dTg+QahUvJ8YqAY0P10Uk8tTyh9ZGuYEZEMaeJYCF5BFuX552hsw=="
+ },
+ "node_modules/archy": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/archy/-/archy-1.0.0.tgz",
+ "integrity": "sha512-Xg+9RwCg/0p32teKdGMPTPnVXKD0w3DfHnFTficozsAgsvq2XenPJq/MYpzzQ/v8zrOyJn6Ds39VA4JIDwFfqw=="
+ },
+ "node_modules/arr-diff": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmmirror.com/arr-diff/-/arr-diff-4.0.0.tgz",
+ "integrity": "sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/arr-filter": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmmirror.com/arr-filter/-/arr-filter-1.1.2.tgz",
+ "integrity": "sha512-A2BETWCqhsecSvCkWAeVBFLH6sXEUGASuzkpjL3GR1SlL/PWL6M3J8EAAld2Uubmh39tvkJTqC9LeLHCUKmFXA==",
+ "dependencies": {
+ "make-iterator": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/arr-flatten": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/arr-flatten/-/arr-flatten-1.1.0.tgz",
+ "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/arr-map": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmmirror.com/arr-map/-/arr-map-2.0.2.tgz",
+ "integrity": "sha512-tVqVTHt+Q5Xb09qRkbu+DidW1yYzz5izWS2Xm2yFm7qJnmUfz4HPzNxbHkdRJbz2lrqI7S+z17xNYdFcBBO8Hw==",
+ "dependencies": {
+ "make-iterator": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/arr-union": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmmirror.com/arr-union/-/arr-union-3.1.0.tgz",
+ "integrity": "sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/array-differ": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/array-differ/-/array-differ-3.0.0.tgz",
+ "integrity": "sha512-THtfYS6KtME/yIAhKjZ2ul7XI96lQGHRputJQHO80LAWQnuGP4iCIN8vdMRboGbIEYBwU33q8Tch1os2+X0kMg==",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/array-each": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/array-each/-/array-each-1.0.1.tgz",
+ "integrity": "sha512-zHjL5SZa68hkKHBFBK6DJCTtr9sfTCPCaph/L7tMSLcTFgy+zX7E+6q5UArbtOtMBCtxdICpfTCspRse+ywyXA==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/array-flatten": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmmirror.com/array-flatten/-/array-flatten-1.1.1.tgz",
+ "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg=="
+ },
+ "node_modules/array-initial": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/array-initial/-/array-initial-1.1.0.tgz",
+ "integrity": "sha512-BC4Yl89vneCYfpLrs5JU2aAu9/a+xWbeKhvISg9PT7eWFB9UlRvI+rKEtk6mgxWr3dSkk9gQ8hCrdqt06NXPdw==",
+ "dependencies": {
+ "array-slice": "^1.0.0",
+ "is-number": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/array-initial/node_modules/is-number": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmmirror.com/is-number/-/is-number-4.0.0.tgz",
+ "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/array-last": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmmirror.com/array-last/-/array-last-1.3.0.tgz",
+ "integrity": "sha512-eOCut5rXlI6aCOS7Z7kCplKRKyiFQ6dHFBem4PwlwKeNFk2/XxTrhRh5T9PyaEWGy/NHTZWbY+nsZlNFJu9rYg==",
+ "dependencies": {
+ "is-number": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/array-last/node_modules/is-number": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmmirror.com/is-number/-/is-number-4.0.0.tgz",
+ "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/array-slice": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/array-slice/-/array-slice-1.1.0.tgz",
+ "integrity": "sha512-B1qMD3RBP7O8o0H2KbrXDyB0IccejMF15+87Lvlor12ONPRHP6gTjXMNkt/d3ZuOGbAe66hFmaCfECI24Ufp6w==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/array-sort": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/array-sort/-/array-sort-1.0.0.tgz",
+ "integrity": "sha512-ihLeJkonmdiAsD7vpgN3CRcx2J2S0TiYW+IS/5zHBI7mKUq3ySvBdzzBfD236ubDBQFiiyG3SWCPc+msQ9KoYg==",
+ "dependencies": {
+ "default-compare": "^1.0.0",
+ "get-value": "^2.0.6",
+ "kind-of": "^5.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/array-union": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmmirror.com/array-union/-/array-union-2.1.0.tgz",
+ "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/array-uniq": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmmirror.com/array-uniq/-/array-uniq-1.0.3.tgz",
+ "integrity": "sha512-MNha4BWQ6JbwhFhj03YK552f7cb3AzoE8SzeljgChvL1dl3IcvggXVz1DilzySZkCja+CXuZbdW7yATchWn8/Q==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/array-unique": {
+ "version": "0.3.2",
+ "resolved": "https://registry.npmmirror.com/array-unique/-/array-unique-0.3.2.tgz",
+ "integrity": "sha512-SleRWjh9JUud2wH1hPs9rZBZ33H6T9HOiL0uwGnGx9FpE6wKGyfWugmbkEOIs6qWrZhg0LWeLziLrEwQJhs5mQ==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/arraybuffer.slice": {
+ "version": "0.0.7",
+ "resolved": "https://registry.npmmirror.com/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz",
+ "integrity": "sha512-wGUIVQXuehL5TCqQun8OW81jGzAWycqzFF8lFp+GOM5BXLYj3bKNsYC4daB7n6XjCqxQA/qgTJ+8ANR3acjrog=="
+ },
+ "node_modules/arrify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/arrify/-/arrify-1.0.1.tgz",
+ "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/asn1": {
+ "version": "0.2.6",
+ "resolved": "https://registry.npmmirror.com/asn1/-/asn1-0.2.6.tgz",
+ "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==",
+ "dependencies": {
+ "safer-buffer": "~2.1.0"
+ }
+ },
+ "node_modules/assert": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/assert/-/assert-2.0.0.tgz",
+ "integrity": "sha512-se5Cd+js9dXJnu6Ag2JFc00t+HmHOen+8Q+L7O9zI0PqQXr20uk2J0XQqMxZEeo5U50o8Nvmmx7dZrl+Ufr35A==",
+ "dependencies": {
+ "es6-object-assign": "^1.1.0",
+ "is-nan": "^1.2.1",
+ "object-is": "^1.0.1",
+ "util": "^0.12.0"
+ }
+ },
+ "node_modules/assert-plus": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/assert-plus/-/assert-plus-1.0.0.tgz",
+ "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==",
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/assign-symbols": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/assign-symbols/-/assign-symbols-1.0.0.tgz",
+ "integrity": "sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/async-done": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmmirror.com/async-done/-/async-done-1.3.2.tgz",
+ "integrity": "sha512-uYkTP8dw2og1tu1nmza1n1CMW0qb8gWWlwqMmLb7MhBVs4BXrFziT6HXUd+/RlRA/i4H9AkofYloUbs1fwMqlw==",
+ "dependencies": {
+ "end-of-stream": "^1.1.0",
+ "once": "^1.3.2",
+ "process-nextick-args": "^2.0.0",
+ "stream-exhaust": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/async-each": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmmirror.com/async-each/-/async-each-1.0.6.tgz",
+ "integrity": "sha512-c646jH1avxr+aVpndVMeAfYw7wAa6idufrlN3LPA4PmKS0QEGp6PIC9nwz0WQkkvBGAMEki3pFdtxaF39J9vvg=="
+ },
+ "node_modules/async-settle": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/async-settle/-/async-settle-1.0.0.tgz",
+ "integrity": "sha512-VPXfB4Vk49z1LHHodrEQ6Xf7W4gg1w0dAPROHngx7qgDjqmIQ+fXmwgGXTW/ITLai0YLSvWepJOP9EVpMnEAcw==",
+ "dependencies": {
+ "async-done": "^1.2.2"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/asynckit": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmmirror.com/asynckit/-/asynckit-0.4.0.tgz",
+ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
+ },
+ "node_modules/atob": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmmirror.com/atob/-/atob-2.1.2.tgz",
+ "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==",
+ "bin": {
+ "atob": "bin/atob.js"
+ },
+ "engines": {
+ "node": ">= 4.5.0"
+ }
+ },
+ "node_modules/atomically": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/atomically/-/atomically-1.7.0.tgz",
+ "integrity": "sha512-Xcz9l0z7y9yQ9rdDaxlmaI4uJHf/T8g9hOEzJcsEqX2SjCj4J20uK7+ldkDHMbpJDK76wF7xEIgxc/vSlsfw5w==",
+ "engines": {
+ "node": ">=10.12.0"
+ }
+ },
+ "node_modules/available-typed-arrays": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmmirror.com/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz",
+ "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==",
+ "dependencies": {
+ "possible-typed-array-names": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/aws-sign2": {
+ "version": "0.7.0",
+ "resolved": "https://registry.npmmirror.com/aws-sign2/-/aws-sign2-0.7.0.tgz",
+ "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/aws4": {
+ "version": "1.12.0",
+ "resolved": "https://registry.npmmirror.com/aws4/-/aws4-1.12.0.tgz",
+ "integrity": "sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg=="
+ },
+ "node_modules/b4a": {
+ "version": "1.6.7",
+ "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.7.tgz",
+ "integrity": "sha512-OnAYlL5b7LEkALw87fUVafQw5rVR9RjwGd4KUwNQ6DrrNmaVaUCgLipfVlzrPQ4tWOR9P0IXGNOx50jYCCdSJg=="
+ },
+ "node_modules/babel-plugin-polyfill-corejs2": {
+ "version": "0.4.12",
+ "resolved": "https://registry.npmmirror.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.12.tgz",
+ "integrity": "sha512-CPWT6BwvhrTO2d8QVorhTCQw9Y43zOu7G9HigcfxvepOU6b8o3tcWad6oVgZIsZCTt42FFv97aA7ZJsbM4+8og==",
+ "dependencies": {
+ "@babel/compat-data": "^7.22.6",
+ "@babel/helper-define-polyfill-provider": "^0.6.3",
+ "semver": "^6.3.1"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"
+ }
+ },
+ "node_modules/babel-plugin-polyfill-corejs2/node_modules/semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/babel-plugin-polyfill-corejs3": {
+ "version": "0.10.6",
+ "resolved": "https://registry.npmmirror.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.10.6.tgz",
+ "integrity": "sha512-b37+KR2i/khY5sKmWNVQAnitvquQbNdWy6lJdsr0kmquCKEEUgMKK4SboVM3HtfnZilfjr4MMQ7vY58FVWDtIA==",
+ "dependencies": {
+ "@babel/helper-define-polyfill-provider": "^0.6.2",
+ "core-js-compat": "^3.38.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"
+ }
+ },
+ "node_modules/babel-plugin-polyfill-regenerator": {
+ "version": "0.6.3",
+ "resolved": "https://registry.npmmirror.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.3.tgz",
+ "integrity": "sha512-LiWSbl4CRSIa5x/JAU6jZiG9eit9w6mz+yVMFwDE83LAWvt0AfGBoZ7HS/mkhrKuh2ZlzfVZYKoLjXdqw6Yt7Q==",
+ "dependencies": {
+ "@babel/helper-define-polyfill-provider": "^0.6.3"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"
+ }
+ },
+ "node_modules/bach": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmmirror.com/bach/-/bach-1.2.0.tgz",
+ "integrity": "sha512-bZOOfCb3gXBXbTFXq3OZtGR88LwGeJvzu6szttaIzymOTS4ZttBNOWSv7aLZja2EMycKtRYV0Oa8SNKH/zkxvg==",
+ "dependencies": {
+ "arr-filter": "^1.1.1",
+ "arr-flatten": "^1.0.1",
+ "arr-map": "^2.0.0",
+ "array-each": "^1.0.0",
+ "array-initial": "^1.0.0",
+ "array-last": "^1.1.1",
+ "async-done": "^1.2.2",
+ "async-settle": "^1.0.0",
+ "now-and-later": "^2.0.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/backo2": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/backo2/-/backo2-1.0.2.tgz",
+ "integrity": "sha512-zj6Z6M7Eq+PBZ7PQxl5NT665MvJdAkzp0f60nAJ+sLaSCBPMwVak5ZegFbgVCzFcCJTKFoMizvM5Ld7+JrRJHA=="
+ },
+ "node_modules/balanced-match": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz",
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
+ },
+ "node_modules/bare-events": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.5.0.tgz",
+ "integrity": "sha512-/E8dDe9dsbLyh2qrZ64PEPadOQ0F4gbl1sUJOrmph7xOiIxfY8vwab/4bFLh4Y88/Hk/ujKcrQKc+ps0mv873A==",
+ "optional": true
+ },
+ "node_modules/base": {
+ "version": "0.11.2",
+ "resolved": "https://registry.npmmirror.com/base/-/base-0.11.2.tgz",
+ "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==",
+ "dependencies": {
+ "cache-base": "^1.0.1",
+ "class-utils": "^0.3.5",
+ "component-emitter": "^1.2.1",
+ "define-property": "^1.0.0",
+ "isobject": "^3.0.1",
+ "mixin-deep": "^1.2.0",
+ "pascalcase": "^0.1.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/base/node_modules/define-property": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/define-property/-/define-property-1.0.0.tgz",
+ "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==",
+ "dependencies": {
+ "is-descriptor": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/base64-arraybuffer": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmmirror.com/base64-arraybuffer/-/base64-arraybuffer-0.1.4.tgz",
+ "integrity": "sha512-a1eIFi4R9ySrbiMuyTGx5e92uRH5tQY6kArNcFaKBUleIoLjdjBg7Zxm3Mqm3Kmkf27HLR/1fnxX9q8GQ7Iavg==",
+ "engines": {
+ "node": ">= 0.6.0"
+ }
+ },
+ "node_modules/base64id": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/base64id/-/base64id-2.0.0.tgz",
+ "integrity": "sha512-lGe34o6EHj9y3Kts9R4ZYs/Gr+6N7MCaMlIFA3F1R2O5/m7K06AxfSeO5530PEERE6/WyEg3lsuyw4GHlPZHog==",
+ "engines": {
+ "node": "^4.5.0 || >= 5.9"
+ }
+ },
+ "node_modules/bcrypt-pbkdf": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
+ "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==",
+ "dependencies": {
+ "tweetnacl": "^0.14.3"
+ }
+ },
+ "node_modules/beeper": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/beeper/-/beeper-1.1.1.tgz",
+ "integrity": "sha512-3vqtKL1N45I5dV0RdssXZG7X6pCqQrWPNOlBPZPrd+QkE2HEhR57Z04m0KtpbsZH73j+a3F8UD1TQnn+ExTvIA==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/binaryextensions": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmmirror.com/binaryextensions/-/binaryextensions-2.3.0.tgz",
+ "integrity": "sha512-nAihlQsYGyc5Bwq6+EsubvANYGExeJKHDO3RjnvwU042fawQTQfM3Kxn7IHUXQOz4bzfwsGYYHGSvXyW4zOGLg==",
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/bindings": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmmirror.com/bindings/-/bindings-1.5.0.tgz",
+ "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==",
+ "optional": true,
+ "dependencies": {
+ "file-uri-to-path": "1.0.0"
+ }
+ },
+ "node_modules/blob": {
+ "version": "0.0.5",
+ "resolved": "https://registry.npmmirror.com/blob/-/blob-0.0.5.tgz",
+ "integrity": "sha512-gaqbzQPqOoamawKg0LGVd7SzLgXS+JH61oWprSLH+P+abTczqJbhTR8CmJ2u9/bUYNmHTGJx/UEmn6doAvvuig=="
+ },
+ "node_modules/body-parser": {
+ "version": "1.20.2",
+ "resolved": "https://registry.npmmirror.com/body-parser/-/body-parser-1.20.2.tgz",
+ "integrity": "sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==",
+ "dependencies": {
+ "bytes": "3.1.2",
+ "content-type": "~1.0.5",
+ "debug": "2.6.9",
+ "depd": "2.0.0",
+ "destroy": "1.2.0",
+ "http-errors": "2.0.0",
+ "iconv-lite": "0.4.24",
+ "on-finished": "2.4.1",
+ "qs": "6.11.0",
+ "raw-body": "2.5.2",
+ "type-is": "~1.6.18",
+ "unpipe": "1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8",
+ "npm": "1.2.8000 || >= 1.4.16"
+ }
+ },
+ "node_modules/bowser": {
+ "version": "1.9.4",
+ "resolved": "https://registry.npmmirror.com/bowser/-/bowser-1.9.4.tgz",
+ "integrity": "sha512-9IdMmj2KjigRq6oWhmwv1W36pDuA4STQZ8q6YO9um+x07xgYNCD3Oou+WP/3L1HNz7iqythGet3/p4wvc8AAwQ=="
+ },
+ "node_modules/brace-expansion": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-2.0.1.tgz",
+ "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
+ "dependencies": {
+ "balanced-match": "^1.0.0"
+ }
+ },
+ "node_modules/braces": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmmirror.com/braces/-/braces-3.0.2.tgz",
+ "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
+ "dependencies": {
+ "fill-range": "^7.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/browserslist": {
+ "version": "4.24.3",
+ "resolved": "https://registry.npmmirror.com/browserslist/-/browserslist-4.24.3.tgz",
+ "integrity": "sha512-1CPmv8iobE2fyRMV97dAcMVegvvWKxmq94hkLiAkUGwKVTyDLw33K+ZxiFrREKmmps4rIw6grcCFCnTMSZ/YiA==",
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "dependencies": {
+ "caniuse-lite": "^1.0.30001688",
+ "electron-to-chromium": "^1.5.73",
+ "node-releases": "^2.0.19",
+ "update-browserslist-db": "^1.1.1"
+ },
+ "bin": {
+ "browserslist": "cli.js"
+ },
+ "engines": {
+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
+ }
+ },
+ "node_modules/buffer-equal": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/buffer-equal/-/buffer-equal-1.0.1.tgz",
+ "integrity": "sha512-QoV3ptgEaQpvVwbXdSO39iqPQTCxSF7A5U99AxbHYqUdCizL/lH2Z0A2y6nbZucxMEOtNyZfG2s6gsVugGpKkg==",
+ "engines": {
+ "node": ">=0.4"
+ }
+ },
+ "node_modules/buffer-from": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmmirror.com/buffer-from/-/buffer-from-1.1.2.tgz",
+ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ=="
+ },
+ "node_modules/bufferstreams": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/bufferstreams/-/bufferstreams-1.0.1.tgz",
+ "integrity": "sha512-LZmiIfQprMLS6/k42w/PTc7awhU8AdNNcUerxTgr01WlP9agR2SgMv0wjlYYFD6eDOi8WvofrTX8RayjR/AeUQ==",
+ "dependencies": {
+ "readable-stream": "^1.0.33"
+ },
+ "engines": {
+ "node": ">= 0.10.0"
+ }
+ },
+ "node_modules/bufferstreams/node_modules/isarray": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
+ "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ=="
+ },
+ "node_modules/bufferstreams/node_modules/readable-stream": {
+ "version": "1.1.14",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz",
+ "integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.1",
+ "isarray": "0.0.1",
+ "string_decoder": "~0.10.x"
+ }
+ },
+ "node_modules/bufferstreams/node_modules/string_decoder": {
+ "version": "0.10.31",
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
+ "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ=="
+ },
+ "node_modules/builtin-status-codes": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz",
+ "integrity": "sha512-HpGFw18DgFWlncDfjTa2rcQ4W88O1mC8e8yZ2AvQY5KDaktSTwo+KRf6nHK6FRI5FyRyb/5T6+TSxfP7QyGsmQ=="
+ },
+ "node_modules/bull": {
+ "version": "4.16.5",
+ "resolved": "https://registry.npmmirror.com/bull/-/bull-4.16.5.tgz",
+ "integrity": "sha512-lDsx2BzkKe7gkCYiT5Acj02DpTwDznl/VNN7Psn7M3USPG7Vs/BaClZJJTAG+ufAR9++N1/NiUTdaFBWDIl5TQ==",
+ "dependencies": {
+ "cron-parser": "^4.9.0",
+ "get-port": "^5.1.1",
+ "ioredis": "^5.3.2",
+ "lodash": "^4.17.21",
+ "msgpackr": "^1.11.2",
+ "semver": "^7.5.2",
+ "uuid": "^8.3.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/bull/node_modules/semver": {
+ "version": "7.6.3",
+ "resolved": "https://registry.npmmirror.com/semver/-/semver-7.6.3.tgz",
+ "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/bull/node_modules/uuid": {
+ "version": "8.3.2",
+ "resolved": "https://registry.npmmirror.com/uuid/-/uuid-8.3.2.tgz",
+ "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
+ "bin": {
+ "uuid": "dist/bin/uuid"
+ }
+ },
+ "node_modules/busboy": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz",
+ "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==",
+ "dependencies": {
+ "streamsearch": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=10.16.0"
+ }
+ },
+ "node_modules/bytes": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmmirror.com/bytes/-/bytes-3.1.2.tgz",
+ "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/cache-base": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/cache-base/-/cache-base-1.0.1.tgz",
+ "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==",
+ "dependencies": {
+ "collection-visit": "^1.0.0",
+ "component-emitter": "^1.2.1",
+ "get-value": "^2.0.6",
+ "has-value": "^1.0.0",
+ "isobject": "^3.0.1",
+ "set-value": "^2.0.0",
+ "to-object-path": "^0.3.0",
+ "union-value": "^1.0.0",
+ "unset-value": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/call-bind": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmmirror.com/call-bind/-/call-bind-1.0.7.tgz",
+ "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==",
+ "dependencies": {
+ "es-define-property": "^1.0.0",
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2",
+ "get-intrinsic": "^1.2.4",
+ "set-function-length": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/camel-case": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/camel-case/-/camel-case-3.0.0.tgz",
+ "integrity": "sha512-+MbKztAYHXPr1jNTSKQF52VpcFjwY5RkR7fxksV8Doo4KAYc5Fl4UJRgthBbTmEx8C54DqahhbLJkDwjI3PI/w==",
+ "dependencies": {
+ "no-case": "^2.2.0",
+ "upper-case": "^1.1.1"
+ }
+ },
+ "node_modules/caniuse-lite": {
+ "version": "1.0.30001690",
+ "resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001690.tgz",
+ "integrity": "sha512-5ExiE3qQN6oF8Clf8ifIDcMRCRE/dMGcETG/XGMD8/XiXm6HXQgQTh1yZYLXXpSOsEUlJm1Xr7kGULZTuGtP/w==",
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ]
+ },
+ "node_modules/caseless": {
+ "version": "0.12.0",
+ "resolved": "https://registry.npmmirror.com/caseless/-/caseless-0.12.0.tgz",
+ "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw=="
+ },
+ "node_modules/chalk": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz",
+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
+ "dependencies": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/chalk/node_modules/supports-color": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz",
+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+ "dependencies": {
+ "has-flag": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/chance": {
+ "version": "1.1.9",
+ "resolved": "https://registry.npmmirror.com/chance/-/chance-1.1.9.tgz",
+ "integrity": "sha512-TfxnA/DcZXRTA4OekA2zL9GH8qscbbl6X0ZqU4tXhGveVY/mXWvEQLt5GwZcYXTEyEFflVtj+pG8nc8EwSm1RQ=="
+ },
+ "node_modules/char-regex": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/char-regex/-/char-regex-1.0.2.tgz",
+ "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/charenc": {
+ "version": "0.0.2",
+ "resolved": "https://registry.npmmirror.com/charenc/-/charenc-0.0.2.tgz",
+ "integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/class-utils": {
+ "version": "0.3.6",
+ "resolved": "https://registry.npmmirror.com/class-utils/-/class-utils-0.3.6.tgz",
+ "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==",
+ "dependencies": {
+ "arr-union": "^3.1.0",
+ "define-property": "^0.2.5",
+ "isobject": "^3.0.0",
+ "static-extend": "^0.1.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/class-utils/node_modules/define-property": {
+ "version": "0.2.5",
+ "resolved": "https://registry.npmmirror.com/define-property/-/define-property-0.2.5.tgz",
+ "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==",
+ "dependencies": {
+ "is-descriptor": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/class-utils/node_modules/is-descriptor": {
+ "version": "0.1.7",
+ "resolved": "https://registry.npmmirror.com/is-descriptor/-/is-descriptor-0.1.7.tgz",
+ "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==",
+ "dependencies": {
+ "is-accessor-descriptor": "^1.0.1",
+ "is-data-descriptor": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/class-validator": {
+ "version": "0.14.0",
+ "resolved": "https://registry.npmmirror.com/class-validator/-/class-validator-0.14.0.tgz",
+ "integrity": "sha512-ct3ltplN8I9fOwUd8GrP8UQixwff129BkEtuWDKL5W45cQuLd19xqmTLu5ge78YDm/fdje6FMt0hGOhl0lii3A==",
+ "dependencies": {
+ "@types/validator": "^13.7.10",
+ "libphonenumber-js": "^1.10.14",
+ "validator": "^13.7.0"
+ }
+ },
+ "node_modules/clean-css": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmmirror.com/clean-css/-/clean-css-4.2.3.tgz",
+ "integrity": "sha512-VcMWDN54ZN/DS+g58HYL5/n4Zrqe8vHJpGA8KdgUXFU4fuP/aHNw8eld9SyEIyabIMJX/0RaY/fplOo5hYLSFA==",
+ "dependencies": {
+ "source-map": "~0.6.0"
+ },
+ "engines": {
+ "node": ">= 4.0"
+ }
+ },
+ "node_modules/cli": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/cli/-/cli-1.0.1.tgz",
+ "integrity": "sha512-41U72MB56TfUMGndAKK8vJ78eooOD4Z5NOL4xEfjc0c23s+6EYKXlXsmACBVclLP1yOfWCgEganVzddVrSNoTg==",
+ "peer": true,
+ "dependencies": {
+ "exit": "0.1.2",
+ "glob": "^7.1.1"
+ },
+ "engines": {
+ "node": ">=0.2.5"
+ }
+ },
+ "node_modules/cli/node_modules/brace-expansion": {
+ "version": "1.1.11",
+ "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz",
+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
+ "peer": true,
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/cli/node_modules/glob": {
+ "version": "7.2.3",
+ "resolved": "https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz",
+ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
+ "peer": true,
+ "dependencies": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.1.1",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/cli/node_modules/minimatch": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz",
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
+ "peer": true,
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/cliui": {
+ "version": "7.0.4",
+ "resolved": "https://registry.npmmirror.com/cliui/-/cliui-7.0.4.tgz",
+ "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==",
+ "dependencies": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.0",
+ "wrap-ansi": "^7.0.0"
+ }
+ },
+ "node_modules/cliui/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/cliui/node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
+ },
+ "node_modules/cliui/node_modules/string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/cliui/node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/cliui/node_modules/wrap-ansi": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/clone": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmmirror.com/clone/-/clone-2.1.2.tgz",
+ "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==",
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/clone-buffer": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/clone-buffer/-/clone-buffer-1.0.0.tgz",
+ "integrity": "sha512-KLLTJWrvwIP+OPfMn0x2PheDEP20RPUcGXj/ERegTgdmPEZylALQldygiqrPPu8P45uNuPs7ckmReLY6v/iA5g==",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/clone-stats": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/clone-stats/-/clone-stats-1.0.0.tgz",
+ "integrity": "sha512-au6ydSpg6nsrigcZ4m8Bc9hxjeW+GJ8xh5G3BJCMt4WXe1H10UNaVOamqQTmrx1kjVuxAHIQSNU6hY4Nsn9/ag=="
+ },
+ "node_modules/cloneable-readable": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmmirror.com/cloneable-readable/-/cloneable-readable-1.1.3.tgz",
+ "integrity": "sha512-2EF8zTQOxYq70Y4XKtorQupqF0m49MBz2/yf5Bj+MHjvpG3Hy7sImifnqD6UA+TKYxeSV+u6qqQPawN5UvnpKQ==",
+ "dependencies": {
+ "inherits": "^2.0.1",
+ "process-nextick-args": "^2.0.0",
+ "readable-stream": "^2.3.5"
+ }
+ },
+ "node_modules/cluster-key-slot": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmmirror.com/cluster-key-slot/-/cluster-key-slot-1.1.2.tgz",
+ "integrity": "sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/code-point-at": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/code-point-at/-/code-point-at-1.1.0.tgz",
+ "integrity": "sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/collection-map": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/collection-map/-/collection-map-1.0.0.tgz",
+ "integrity": "sha512-5D2XXSpkOnleOI21TG7p3T0bGAsZ/XknZpKBmGYyluO8pw4zA3K8ZlrBIbC4FXg3m6z/RNFiUFfT2sQK01+UHA==",
+ "dependencies": {
+ "arr-map": "^2.0.2",
+ "for-own": "^1.0.0",
+ "make-iterator": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/collection-visit": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/collection-visit/-/collection-visit-1.0.0.tgz",
+ "integrity": "sha512-lNkKvzEeMBBjUGHZ+q6z9pSJla0KWAQPvtzhEV9+iGyQYG+pBpl7xKDhxoNSOZH2hhv0v5k0y2yAM4o4SjoSkw==",
+ "dependencies": {
+ "map-visit": "^1.0.0",
+ "object-visit": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dependencies": {
+ "color-name": "~1.1.4"
+ },
+ "engines": {
+ "node": ">=7.0.0"
+ }
+ },
+ "node_modules/color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
+ },
+ "node_modules/color-support": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmmirror.com/color-support/-/color-support-1.1.3.tgz",
+ "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==",
+ "bin": {
+ "color-support": "bin.js"
+ }
+ },
+ "node_modules/colorette": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmmirror.com/colorette/-/colorette-1.4.0.tgz",
+ "integrity": "sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g=="
+ },
+ "node_modules/combined-stream": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmmirror.com/combined-stream/-/combined-stream-1.0.8.tgz",
+ "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
+ "dependencies": {
+ "delayed-stream": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/commander": {
+ "version": "2.20.3",
+ "resolved": "https://registry.npmmirror.com/commander/-/commander-2.20.3.tgz",
+ "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="
+ },
+ "node_modules/component-bind": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/component-bind/-/component-bind-1.0.0.tgz",
+ "integrity": "sha512-WZveuKPeKAG9qY+FkYDeADzdHyTYdIboXS59ixDeRJL5ZhxpqUnxSOwop4FQjMsiYm3/Or8cegVbpAHNA7pHxw=="
+ },
+ "node_modules/component-emitter": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmmirror.com/component-emitter/-/component-emitter-1.3.1.tgz",
+ "integrity": "sha512-T0+barUSQRTUQASh8bx02dl+DhF54GtIDY13Y3m9oWTklKbb3Wv974meRpeZ3lp1JpLVECWWNHC4vaG2XHXouQ=="
+ },
+ "node_modules/component-inherit": {
+ "version": "0.0.3",
+ "resolved": "https://registry.npmmirror.com/component-inherit/-/component-inherit-0.0.3.tgz",
+ "integrity": "sha512-w+LhYREhatpVqTESyGFg3NlP6Iu0kEKUHETY9GoZP/pQyW4mHFZuFWRUCIqVPZ36ueVLtoOEZaAqbCF2RDndaA=="
+ },
+ "node_modules/concat-map": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmmirror.com/concat-map/-/concat-map-0.0.1.tgz",
+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="
+ },
+ "node_modules/concat-stream": {
+ "version": "1.6.2",
+ "resolved": "https://registry.npmmirror.com/concat-stream/-/concat-stream-1.6.2.tgz",
+ "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==",
+ "engines": [
+ "node >= 0.8"
+ ],
+ "dependencies": {
+ "buffer-from": "^1.0.0",
+ "inherits": "^2.0.3",
+ "readable-stream": "^2.2.2",
+ "typedarray": "^0.0.6"
+ }
+ },
+ "node_modules/concat-with-sourcemaps": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz",
+ "integrity": "sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg==",
+ "dependencies": {
+ "source-map": "^0.6.1"
+ }
+ },
+ "node_modules/concurrently": {
+ "version": "8.2.2",
+ "resolved": "https://registry.npmmirror.com/concurrently/-/concurrently-8.2.2.tgz",
+ "integrity": "sha512-1dP4gpXFhei8IOtlXRE/T/4H88ElHgTiUzh71YUmtjTEHMSRS2Z/fgOxHSxxusGHogsRfxNq1vyAwxSC+EVyDg==",
+ "dependencies": {
+ "chalk": "^4.1.2",
+ "date-fns": "^2.30.0",
+ "lodash": "^4.17.21",
+ "rxjs": "^7.8.1",
+ "shell-quote": "^1.8.1",
+ "spawn-command": "0.0.2",
+ "supports-color": "^8.1.1",
+ "tree-kill": "^1.2.2",
+ "yargs": "^17.7.2"
+ },
+ "bin": {
+ "conc": "dist/bin/concurrently.js",
+ "concurrently": "dist/bin/concurrently.js"
+ },
+ "engines": {
+ "node": "^14.13.0 || >=16.0.0"
+ }
+ },
+ "node_modules/concurrently/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/concurrently/node_modules/cliui": {
+ "version": "8.0.1",
+ "resolved": "https://registry.npmmirror.com/cliui/-/cliui-8.0.1.tgz",
+ "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
+ "dependencies": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.1",
+ "wrap-ansi": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/concurrently/node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
+ },
+ "node_modules/concurrently/node_modules/string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/concurrently/node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/concurrently/node_modules/wrap-ansi": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/concurrently/node_modules/yargs": {
+ "version": "17.7.2",
+ "resolved": "https://registry.npmmirror.com/yargs/-/yargs-17.7.2.tgz",
+ "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",
+ "dependencies": {
+ "cliui": "^8.0.1",
+ "escalade": "^3.1.1",
+ "get-caller-file": "^2.0.5",
+ "require-directory": "^2.1.1",
+ "string-width": "^4.2.3",
+ "y18n": "^5.0.5",
+ "yargs-parser": "^21.1.1"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/concurrently/node_modules/yargs-parser": {
+ "version": "21.1.1",
+ "resolved": "https://registry.npmmirror.com/yargs-parser/-/yargs-parser-21.1.1.tgz",
+ "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/conf": {
+ "version": "9.0.2",
+ "resolved": "https://registry.npmjs.org/conf/-/conf-9.0.2.tgz",
+ "integrity": "sha512-rLSiilO85qHgaTBIIHQpsv8z+NnVfZq3cKuYNCXN1AOqPzced0GWZEe/A517VldRLyQYXUMyV+vszavE2jSAqw==",
+ "dependencies": {
+ "ajv": "^7.0.3",
+ "ajv-formats": "^1.5.1",
+ "atomically": "^1.7.0",
+ "debounce-fn": "^4.0.0",
+ "dot-prop": "^6.0.1",
+ "env-paths": "^2.2.0",
+ "json-schema-typed": "^7.0.3",
+ "make-dir": "^3.1.0",
+ "onetime": "^5.1.2",
+ "pkg-up": "^3.1.0",
+ "semver": "^7.3.4"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/conf/node_modules/ajv": {
+ "version": "7.2.4",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-7.2.4.tgz",
+ "integrity": "sha512-nBeQgg/ZZA3u3SYxyaDvpvDtgZ/EZPF547ARgZBrG9Bhu1vKDwAIjtIf+sDtJUKa2zOcEbmRLBRSyMraS/Oy1A==",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2",
+ "uri-js": "^4.2.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/conf/node_modules/json-schema-traverse": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="
+ },
+ "node_modules/conf/node_modules/semver": {
+ "version": "7.6.2",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz",
+ "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/console-browserify": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/console-browserify/-/console-browserify-1.1.0.tgz",
+ "integrity": "sha512-duS7VP5pvfsNLDvL1O4VOEbw37AI3A4ZUQYemvDlnpGrNu9tprR7BYWpDYwC0Xia0Zxz5ZupdiIrUp0GH1aXfg==",
+ "peer": true,
+ "dependencies": {
+ "date-now": "^0.1.4"
+ }
+ },
+ "node_modules/content-disposition": {
+ "version": "0.5.4",
+ "resolved": "https://registry.npmmirror.com/content-disposition/-/content-disposition-0.5.4.tgz",
+ "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
+ "dependencies": {
+ "safe-buffer": "5.2.1"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/content-type": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmmirror.com/content-type/-/content-type-1.0.5.tgz",
+ "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/convert-source-map": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmmirror.com/convert-source-map/-/convert-source-map-1.9.0.tgz",
+ "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A=="
+ },
+ "node_modules/cookie": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmmirror.com/cookie/-/cookie-0.4.1.tgz",
+ "integrity": "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/cookie-parser": {
+ "version": "1.4.6",
+ "resolved": "https://registry.npmmirror.com/cookie-parser/-/cookie-parser-1.4.6.tgz",
+ "integrity": "sha512-z3IzaNjdwUC2olLIB5/ITd0/setiaFMLYiZJle7xg5Fe9KWAceil7xszYfHHBtDFYLSgJduS2Ty0P1uJdPDJeA==",
+ "dependencies": {
+ "cookie": "0.4.1",
+ "cookie-signature": "1.0.6"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/cookie-signature": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmmirror.com/cookie-signature/-/cookie-signature-1.0.6.tgz",
+ "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ=="
+ },
+ "node_modules/copy-descriptor": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmmirror.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz",
+ "integrity": "sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/copy-props": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmmirror.com/copy-props/-/copy-props-2.0.5.tgz",
+ "integrity": "sha512-XBlx8HSqrT0ObQwmSzM7WE5k8FxTV75h1DX1Z3n6NhQ/UYYAvInWYmG06vFt7hQZArE2fuO62aihiWIVQwh1sw==",
+ "dependencies": {
+ "each-props": "^1.3.2",
+ "is-plain-object": "^5.0.0"
+ }
+ },
+ "node_modules/copy-props/node_modules/is-plain-object": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-5.0.0.tgz",
+ "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/copy-to": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/copy-to/-/copy-to-2.0.1.tgz",
+ "integrity": "sha512-3DdaFaU/Zf1AnpLiFDeNCD4TOWe3Zl2RZaTzUvWiIk5ERzcCodOE20Vqq4fzCbNoHURFHT4/us/Lfq+S2zyY4w=="
+ },
+ "node_modules/core-js-compat": {
+ "version": "3.39.0",
+ "resolved": "https://registry.npmmirror.com/core-js-compat/-/core-js-compat-3.39.0.tgz",
+ "integrity": "sha512-VgEUx3VwlExr5no0tXlBt+silBvhTryPwCXRI2Id1PN8WTKu7MreethvddqOubrYxkFdv/RnYrqlv1sFNAUelw==",
+ "dependencies": {
+ "browserslist": "^4.24.2"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/core-js"
+ }
+ },
+ "node_modules/core-util-is": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/core-util-is/-/core-util-is-1.0.2.tgz",
+ "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ=="
+ },
+ "node_modules/cos-nodejs-sdk-v5": {
+ "version": "2.14.0",
+ "resolved": "https://registry.npmjs.org/cos-nodejs-sdk-v5/-/cos-nodejs-sdk-v5-2.14.0.tgz",
+ "integrity": "sha512-1FQyhTB/LaG1CNqxcJRkSrNI/9tzzdVVy8diLotGbp/gdmOKM79Cif+qhp8pYjvnqgJf23i+uSVkAWEGm3sf6g==",
+ "dependencies": {
+ "conf": "^9.0.0",
+ "fast-xml-parser": "4.2.5",
+ "mime-types": "^2.1.24",
+ "request": "^2.88.2"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/cron-parser": {
+ "version": "4.9.0",
+ "resolved": "https://registry.npmmirror.com/cron-parser/-/cron-parser-4.9.0.tgz",
+ "integrity": "sha512-p0SaNjrHOnQeR8/VnfGbmg9te2kfyYSQ7Sc/j/6DtPL3JQvKxmjO9TSjNFpujqV3vEYYBvNNvXSxzyksBWAx1Q==",
+ "dependencies": {
+ "luxon": "^3.2.1"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ }
+ },
+ "node_modules/cross-env": {
+ "version": "5.2.1",
+ "resolved": "https://registry.npmmirror.com/cross-env/-/cross-env-5.2.1.tgz",
+ "integrity": "sha512-1yHhtcfAd1r4nwQgknowuUNfIT9E8dOMMspC36g45dN+iD1blloi7xp8X/xAIDnjHWyt1uQ8PHk2fkNaym7soQ==",
+ "dependencies": {
+ "cross-spawn": "^6.0.5"
+ },
+ "bin": {
+ "cross-env": "dist/bin/cross-env.js",
+ "cross-env-shell": "dist/bin/cross-env-shell.js"
+ },
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/cross-spawn": {
+ "version": "6.0.5",
+ "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-6.0.5.tgz",
+ "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==",
+ "dependencies": {
+ "nice-try": "^1.0.4",
+ "path-key": "^2.0.1",
+ "semver": "^5.5.0",
+ "shebang-command": "^1.2.0",
+ "which": "^1.2.9"
+ },
+ "engines": {
+ "node": ">=4.8"
+ }
+ },
+ "node_modules/crypt": {
+ "version": "0.0.2",
+ "resolved": "https://registry.npmmirror.com/crypt/-/crypt-0.0.2.tgz",
+ "integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/d": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/d/-/d-1.0.2.tgz",
+ "integrity": "sha512-MOqHvMWF9/9MX6nza0KgvFH4HpMU0EF5uUDXqX/BtxtU8NfB0QzRtJ8Oe/6SuS4kbhyzVJwjd97EA4PKrzJ8bw==",
+ "dependencies": {
+ "es5-ext": "^0.10.64",
+ "type": "^2.7.2"
+ },
+ "engines": {
+ "node": ">=0.12"
+ }
+ },
+ "node_modules/dashdash": {
+ "version": "1.14.1",
+ "resolved": "https://registry.npmmirror.com/dashdash/-/dashdash-1.14.1.tgz",
+ "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==",
+ "dependencies": {
+ "assert-plus": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/date-fns": {
+ "version": "2.30.0",
+ "resolved": "https://registry.npmmirror.com/date-fns/-/date-fns-2.30.0.tgz",
+ "integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==",
+ "dependencies": {
+ "@babel/runtime": "^7.21.0"
+ },
+ "engines": {
+ "node": ">=0.11"
+ }
+ },
+ "node_modules/date-now": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmmirror.com/date-now/-/date-now-0.1.4.tgz",
+ "integrity": "sha512-AsElvov3LoNB7tf5k37H2jYSB+ZZPMT5sG2QjJCcdlV5chIv6htBUBUui2IKRjgtKAKtCBN7Zbwa+MtwLjSeNw==",
+ "peer": true
+ },
+ "node_modules/dateformat": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-2.2.0.tgz",
+ "integrity": "sha512-GODcnWq3YGoTnygPfi02ygEiRxqUxpJwuRHjdhJYuxpcZmDq4rjBiXYmbCCzStxo176ixfLT6i4NPwQooRySnw==",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/debounce-fn": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/debounce-fn/-/debounce-fn-4.0.0.tgz",
+ "integrity": "sha512-8pYCQiL9Xdcg0UPSD3d+0KMlOjp+KGU5EPwYddgzQ7DATsg4fuUDjQtsYLmWjnk2obnNHgV3vE2Y4jejSOJVBQ==",
+ "dependencies": {
+ "mimic-fn": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/debug": {
+ "version": "2.6.9",
+ "resolved": "https://registry.npmmirror.com/debug/-/debug-2.6.9.tgz",
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+ "dependencies": {
+ "ms": "2.0.0"
+ }
+ },
+ "node_modules/decode-uri-component": {
+ "version": "0.2.2",
+ "resolved": "https://registry.npmmirror.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz",
+ "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==",
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/deep-is": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmmirror.com/deep-is/-/deep-is-0.1.4.tgz",
+ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ=="
+ },
+ "node_modules/default-compare": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/default-compare/-/default-compare-1.0.0.tgz",
+ "integrity": "sha512-QWfXlM0EkAbqOCbD/6HjdwT19j7WCkMyiRhWilc4H9/5h/RzTF9gv5LYh1+CmDV5d1rki6KAWLtQale0xt20eQ==",
+ "dependencies": {
+ "kind-of": "^5.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/default-resolution": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/default-resolution/-/default-resolution-2.0.0.tgz",
+ "integrity": "sha512-2xaP6GiwVwOEbXCGoJ4ufgC76m8cj805jrghScewJC2ZDsb9U0b4BIrba+xt/Uytyd0HvQ6+WymSRTfnYj59GQ==",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/default-user-agent": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/default-user-agent/-/default-user-agent-1.0.0.tgz",
+ "integrity": "sha512-bDF7bg6OSNcSwFWPu4zYKpVkJZQYVrAANMYB8bc9Szem1D0yKdm4sa/rOCs2aC9+2GMqQ7KnwtZRvDhmLF0dXw==",
+ "dependencies": {
+ "os-name": "~1.0.3"
+ },
+ "engines": {
+ "node": ">= 0.10.0"
+ }
+ },
+ "node_modules/define-data-property": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmmirror.com/define-data-property/-/define-data-property-1.1.4.tgz",
+ "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",
+ "dependencies": {
+ "es-define-property": "^1.0.0",
+ "es-errors": "^1.3.0",
+ "gopd": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/define-properties": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmmirror.com/define-properties/-/define-properties-1.2.1.tgz",
+ "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==",
+ "dependencies": {
+ "define-data-property": "^1.0.1",
+ "has-property-descriptors": "^1.0.0",
+ "object-keys": "^1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/define-property": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmmirror.com/define-property/-/define-property-2.0.2.tgz",
+ "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==",
+ "dependencies": {
+ "is-descriptor": "^1.0.2",
+ "isobject": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/del": {
+ "version": "2.2.2",
+ "resolved": "https://registry.npmmirror.com/del/-/del-2.2.2.tgz",
+ "integrity": "sha512-Z4fzpbIRjOu7lO5jCETSWoqUDVe0IPOlfugBsF6suen2LKDlVb4QZpKEM9P+buNJ4KI1eN7I083w/pbKUpsrWQ==",
+ "dependencies": {
+ "globby": "^5.0.0",
+ "is-path-cwd": "^1.0.0",
+ "is-path-in-cwd": "^1.0.0",
+ "object-assign": "^4.0.1",
+ "pify": "^2.0.0",
+ "pinkie-promise": "^2.0.0",
+ "rimraf": "^2.2.8"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/del/node_modules/array-union": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/array-union/-/array-union-1.0.2.tgz",
+ "integrity": "sha512-Dxr6QJj/RdU/hCaBjOfxW+q6lyuVE6JFWIrAUpuOOhoJJoQ99cUn3igRaHVB5P9WrgFVN0FfArM3x0cueOU8ng==",
+ "dependencies": {
+ "array-uniq": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/del/node_modules/brace-expansion": {
+ "version": "1.1.11",
+ "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz",
+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/del/node_modules/glob": {
+ "version": "7.2.3",
+ "resolved": "https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz",
+ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
+ "dependencies": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.1.1",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/del/node_modules/globby": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmmirror.com/globby/-/globby-5.0.0.tgz",
+ "integrity": "sha512-HJRTIH2EeH44ka+LWig+EqT2ONSYpVlNfx6pyd592/VF1TbfljJ7elwie7oSwcViLGqOdWocSdu2txwBF9bjmQ==",
+ "dependencies": {
+ "array-union": "^1.0.1",
+ "arrify": "^1.0.0",
+ "glob": "^7.0.3",
+ "object-assign": "^4.0.1",
+ "pify": "^2.0.0",
+ "pinkie-promise": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/del/node_modules/minimatch": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz",
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/delayed-stream": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/delayed-stream/-/delayed-stream-1.0.0.tgz",
+ "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/denque": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmmirror.com/denque/-/denque-2.1.0.tgz",
+ "integrity": "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==",
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/depd": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/depd/-/depd-2.0.0.tgz",
+ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/destroy": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmmirror.com/destroy/-/destroy-1.2.0.tgz",
+ "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
+ "engines": {
+ "node": ">= 0.8",
+ "npm": "1.2.8000 || >= 1.4.16"
+ }
+ },
+ "node_modules/detect-file": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/detect-file/-/detect-file-1.0.0.tgz",
+ "integrity": "sha512-DtCOLG98P007x7wiiOmfI0fi3eIKyWiLTGJ2MDnVi/E04lWGbf+JzrRHMm0rgIIZJGtHpKpbVgLWHrv8xXpc3Q==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/detect-libc": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmmirror.com/detect-libc/-/detect-libc-2.0.3.tgz",
+ "integrity": "sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==",
+ "optional": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/digest-header": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/digest-header/-/digest-header-1.1.0.tgz",
+ "integrity": "sha512-glXVh42vz40yZb9Cq2oMOt70FIoWiv+vxNvdKdU8CwjLad25qHM3trLxhl9bVjdr6WaslIXhWpn0NO8T/67Qjg==",
+ "engines": {
+ "node": ">= 8.0.0"
+ }
+ },
+ "node_modules/dir-glob": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmmirror.com/dir-glob/-/dir-glob-3.0.1.tgz",
+ "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==",
+ "dependencies": {
+ "path-type": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/dom-serializer": {
+ "version": "0.2.2",
+ "resolved": "https://registry.npmmirror.com/dom-serializer/-/dom-serializer-0.2.2.tgz",
+ "integrity": "sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g==",
+ "peer": true,
+ "dependencies": {
+ "domelementtype": "^2.0.1",
+ "entities": "^2.0.0"
+ }
+ },
+ "node_modules/dom-serializer/node_modules/domelementtype": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmmirror.com/domelementtype/-/domelementtype-2.3.0.tgz",
+ "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==",
+ "peer": true
+ },
+ "node_modules/dom-serializer/node_modules/entities": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmmirror.com/entities/-/entities-2.2.0.tgz",
+ "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==",
+ "peer": true
+ },
+ "node_modules/domelementtype": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmmirror.com/domelementtype/-/domelementtype-1.3.1.tgz",
+ "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==",
+ "peer": true
+ },
+ "node_modules/domhandler": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmmirror.com/domhandler/-/domhandler-2.3.0.tgz",
+ "integrity": "sha512-q9bUwjfp7Eif8jWxxxPSykdRZAb6GkguBGSgvvCrhI9wB71W2K/Kvv4E61CF/mcCfnVJDeDWx/Vb/uAqbDj6UQ==",
+ "peer": true,
+ "dependencies": {
+ "domelementtype": "1"
+ }
+ },
+ "node_modules/domutils": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmmirror.com/domutils/-/domutils-1.5.1.tgz",
+ "integrity": "sha512-gSu5Oi/I+3wDENBsOWBiRK1eoGxcywYSqg3rR960/+EfY0CF4EX1VPkgHOZ3WiS/Jg2DtliF6BhWcHlfpYUcGw==",
+ "peer": true,
+ "dependencies": {
+ "dom-serializer": "0",
+ "domelementtype": "1"
+ }
+ },
+ "node_modules/dot-prop": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-6.0.1.tgz",
+ "integrity": "sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA==",
+ "dependencies": {
+ "is-obj": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/dotenv": {
+ "version": "16.3.1",
+ "resolved": "https://registry.npmmirror.com/dotenv/-/dotenv-16.3.1.tgz",
+ "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/dottie": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmmirror.com/dottie/-/dottie-2.0.6.tgz",
+ "integrity": "sha512-iGCHkfUc5kFekGiqhe8B/mdaurD+lakO9txNnTvKtA6PISrw86LgqHvRzWYPyoE2Ph5aMIrCw9/uko6XHTKCwA=="
+ },
+ "node_modules/duplexer2": {
+ "version": "0.0.2",
+ "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.0.2.tgz",
+ "integrity": "sha512-+AWBwjGadtksxjOQSFDhPNQbed7icNXApT4+2BNpsXzcCBiInq2H9XW0O8sfHFaPmnQRs7cg/P0fAr2IWQSW0g==",
+ "dependencies": {
+ "readable-stream": "~1.1.9"
+ }
+ },
+ "node_modules/duplexer2/node_modules/isarray": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
+ "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ=="
+ },
+ "node_modules/duplexer2/node_modules/readable-stream": {
+ "version": "1.1.14",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz",
+ "integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.1",
+ "isarray": "0.0.1",
+ "string_decoder": "~0.10.x"
+ }
+ },
+ "node_modules/duplexer2/node_modules/string_decoder": {
+ "version": "0.10.31",
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
+ "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ=="
+ },
+ "node_modules/duplexify": {
+ "version": "3.7.1",
+ "resolved": "https://registry.npmmirror.com/duplexify/-/duplexify-3.7.1.tgz",
+ "integrity": "sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==",
+ "dependencies": {
+ "end-of-stream": "^1.0.0",
+ "inherits": "^2.0.1",
+ "readable-stream": "^2.0.0",
+ "stream-shift": "^1.0.0"
+ }
+ },
+ "node_modules/each-props": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmmirror.com/each-props/-/each-props-1.3.2.tgz",
+ "integrity": "sha512-vV0Hem3zAGkJAyU7JSjixeU66rwdynTAa1vofCrSA5fEln+m67Az9CcnkVD776/fsN/UjIWmBDoNRS6t6G9RfA==",
+ "dependencies": {
+ "is-plain-object": "^2.0.1",
+ "object.defaults": "^1.1.0"
+ }
+ },
+ "node_modules/each-props/node_modules/is-plain-object": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-2.0.4.tgz",
+ "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==",
+ "dependencies": {
+ "isobject": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/eastasianwidth": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmmirror.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz",
+ "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA=="
+ },
+ "node_modules/easy-transform-stream": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/easy-transform-stream/-/easy-transform-stream-1.0.1.tgz",
+ "integrity": "sha512-ktkaa6XR7COAR3oj02CF3IOgz2m1hCaY3SfzvKT4Svt2MhHw9XCt+ncJNWfe2TGz31iqzNGZ8spdKQflj+Rlog==",
+ "engines": {
+ "node": ">=14.16"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/ecc-jsbn": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmmirror.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
+ "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==",
+ "dependencies": {
+ "jsbn": "~0.1.0",
+ "safer-buffer": "^2.1.0"
+ }
+ },
+ "node_modules/ee-first": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmmirror.com/ee-first/-/ee-first-1.1.1.tgz",
+ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
+ },
+ "node_modules/electron-to-chromium": {
+ "version": "1.5.76",
+ "resolved": "https://registry.npmmirror.com/electron-to-chromium/-/electron-to-chromium-1.5.76.tgz",
+ "integrity": "sha512-CjVQyG7n7Sr+eBXE86HIulnL5N8xZY1sgmOPGuq/F0Rr0FJq63lg0kEtOIDfZBk44FnDLf6FUJ+dsJcuiUDdDQ=="
+ },
+ "node_modules/emoji-regex": {
+ "version": "9.2.2",
+ "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-9.2.2.tgz",
+ "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg=="
+ },
+ "node_modules/encodeurl": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/encodeurl/-/encodeurl-1.0.2.tgz",
+ "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/end-of-stream": {
+ "version": "1.4.4",
+ "resolved": "https://registry.npmmirror.com/end-of-stream/-/end-of-stream-1.4.4.tgz",
+ "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",
+ "dependencies": {
+ "once": "^1.4.0"
+ }
+ },
+ "node_modules/end-or-error": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/end-or-error/-/end-or-error-1.0.1.tgz",
+ "integrity": "sha512-OclLMSug+k2A0JKuf494im25ANRBVW8qsjmwbgX7lQ8P82H21PQ1PWkoYwb9y5yMBS69BPlwtzdIFClo3+7kOQ==",
+ "engines": {
+ "node": ">= 0.11.14"
+ }
+ },
+ "node_modules/engine.io": {
+ "version": "3.6.1",
+ "resolved": "https://registry.npmmirror.com/engine.io/-/engine.io-3.6.1.tgz",
+ "integrity": "sha512-dfs8EVg/i7QjFsXxn7cCRQ+Wai1G1TlEvHhdYEi80fxn5R1vZ2K661O6v/rezj1FP234SZ14r9CmJke99iYDGg==",
+ "dependencies": {
+ "accepts": "~1.3.4",
+ "base64id": "2.0.0",
+ "cookie": "~0.4.1",
+ "debug": "~4.1.0",
+ "engine.io-parser": "~2.2.0",
+ "ws": "~7.4.2"
+ },
+ "engines": {
+ "node": ">=8.0.0"
+ }
+ },
+ "node_modules/engine.io-client": {
+ "version": "3.5.3",
+ "resolved": "https://registry.npmmirror.com/engine.io-client/-/engine.io-client-3.5.3.tgz",
+ "integrity": "sha512-qsgyc/CEhJ6cgMUwxRRtOndGVhIu5hpL5tR4umSpmX/MvkFoIxUTM7oFMDQumHNzlNLwSVy6qhstFPoWTf7dOw==",
+ "dependencies": {
+ "component-emitter": "~1.3.0",
+ "component-inherit": "0.0.3",
+ "debug": "~3.1.0",
+ "engine.io-parser": "~2.2.0",
+ "has-cors": "1.1.0",
+ "indexof": "0.0.1",
+ "parseqs": "0.0.6",
+ "parseuri": "0.0.6",
+ "ws": "~7.4.2",
+ "xmlhttprequest-ssl": "~1.6.2",
+ "yeast": "0.1.2"
+ }
+ },
+ "node_modules/engine.io-client/node_modules/debug": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmmirror.com/debug/-/debug-3.1.0.tgz",
+ "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
+ "dependencies": {
+ "ms": "2.0.0"
+ }
+ },
+ "node_modules/engine.io-parser": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmmirror.com/engine.io-parser/-/engine.io-parser-2.2.1.tgz",
+ "integrity": "sha512-x+dN/fBH8Ro8TFwJ+rkB2AmuVw9Yu2mockR/p3W8f8YtExwFgDvBDi0GWyb4ZLkpahtDGZgtr3zLovanJghPqg==",
+ "dependencies": {
+ "after": "0.8.2",
+ "arraybuffer.slice": "~0.0.7",
+ "base64-arraybuffer": "0.1.4",
+ "blob": "0.0.5",
+ "has-binary2": "~1.0.2"
+ }
+ },
+ "node_modules/engine.io/node_modules/debug": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmmirror.com/debug/-/debug-4.1.1.tgz",
+ "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
+ "deprecated": "Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)",
+ "dependencies": {
+ "ms": "^2.1.1"
+ }
+ },
+ "node_modules/engine.io/node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
+ },
+ "node_modules/entities": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/entities/-/entities-1.0.0.tgz",
+ "integrity": "sha512-LbLqfXgJMmy81t+7c14mnulFHJ170cM6E+0vMXR9k/ZiZwgX8i5pNgjTCX3SO4VeUsFLV+8InixoretwU+MjBQ==",
+ "peer": true
+ },
+ "node_modules/env-paths": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",
+ "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/error-ex": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmmirror.com/error-ex/-/error-ex-1.3.2.tgz",
+ "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==",
+ "dependencies": {
+ "is-arrayish": "^0.2.1"
+ }
+ },
+ "node_modules/es-define-property": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/es-define-property/-/es-define-property-1.0.0.tgz",
+ "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==",
+ "dependencies": {
+ "get-intrinsic": "^1.2.4"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-errors": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmmirror.com/es-errors/-/es-errors-1.3.0.tgz",
+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es5-ext": {
+ "version": "0.10.64",
+ "resolved": "https://registry.npmmirror.com/es5-ext/-/es5-ext-0.10.64.tgz",
+ "integrity": "sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg==",
+ "hasInstallScript": true,
+ "dependencies": {
+ "es6-iterator": "^2.0.3",
+ "es6-symbol": "^3.1.3",
+ "esniff": "^2.0.1",
+ "next-tick": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/es6-iterator": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmmirror.com/es6-iterator/-/es6-iterator-2.0.3.tgz",
+ "integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==",
+ "dependencies": {
+ "d": "1",
+ "es5-ext": "^0.10.35",
+ "es6-symbol": "^3.1.1"
+ }
+ },
+ "node_modules/es6-object-assign": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/es6-object-assign/-/es6-object-assign-1.1.0.tgz",
+ "integrity": "sha512-MEl9uirslVwqQU369iHNWZXsI8yaZYGg/D65aOgZkeyFJwHYSxilf7rQzXKI7DdDuBPrBXbfk3sl9hJhmd5AUw=="
+ },
+ "node_modules/es6-symbol": {
+ "version": "3.1.4",
+ "resolved": "https://registry.npmmirror.com/es6-symbol/-/es6-symbol-3.1.4.tgz",
+ "integrity": "sha512-U9bFFjX8tFiATgtkJ1zg25+KviIXpgRvRHS8sau3GfhVzThRQrOeksPeT0BWW2MNZs1OEWJ1DPXOQMn0KKRkvg==",
+ "dependencies": {
+ "d": "^1.0.2",
+ "ext": "^1.7.0"
+ },
+ "engines": {
+ "node": ">=0.12"
+ }
+ },
+ "node_modules/es6-weak-map": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmmirror.com/es6-weak-map/-/es6-weak-map-2.0.3.tgz",
+ "integrity": "sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==",
+ "dependencies": {
+ "d": "1",
+ "es5-ext": "^0.10.46",
+ "es6-iterator": "^2.0.3",
+ "es6-symbol": "^3.1.1"
+ }
+ },
+ "node_modules/escalade": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmmirror.com/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/escape-html": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmmirror.com/escape-html/-/escape-html-1.0.3.tgz",
+ "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow=="
+ },
+ "node_modules/eslint-scope": {
+ "version": "7.1.1",
+ "resolved": "https://registry.npmmirror.com/eslint-scope/-/eslint-scope-7.1.1.tgz",
+ "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==",
+ "dependencies": {
+ "esrecurse": "^4.3.0",
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ }
+ },
+ "node_modules/eslint-visitor-keys": {
+ "version": "3.3.0",
+ "resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz",
+ "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==",
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ }
+ },
+ "node_modules/esniff": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/esniff/-/esniff-2.0.1.tgz",
+ "integrity": "sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==",
+ "dependencies": {
+ "d": "^1.0.1",
+ "es5-ext": "^0.10.62",
+ "event-emitter": "^0.3.5",
+ "type": "^2.7.2"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/esprima": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmmirror.com/esprima/-/esprima-4.0.1.tgz",
+ "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
+ "bin": {
+ "esparse": "bin/esparse.js",
+ "esvalidate": "bin/esvalidate.js"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/esrecurse": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmmirror.com/esrecurse/-/esrecurse-4.3.0.tgz",
+ "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
+ "dependencies": {
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/estraverse": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmmirror.com/estraverse/-/estraverse-5.3.0.tgz",
+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/esutils": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmmirror.com/esutils/-/esutils-2.0.3.tgz",
+ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/etag": {
+ "version": "1.8.1",
+ "resolved": "https://registry.npmmirror.com/etag/-/etag-1.8.1.tgz",
+ "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/event-emitter": {
+ "version": "0.3.5",
+ "resolved": "https://registry.npmmirror.com/event-emitter/-/event-emitter-0.3.5.tgz",
+ "integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==",
+ "dependencies": {
+ "d": "1",
+ "es5-ext": "~0.10.14"
+ }
+ },
+ "node_modules/exit": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmmirror.com/exit/-/exit-0.1.2.tgz",
+ "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==",
+ "peer": true,
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/expand-brackets": {
+ "version": "2.1.4",
+ "resolved": "https://registry.npmmirror.com/expand-brackets/-/expand-brackets-2.1.4.tgz",
+ "integrity": "sha512-w/ozOKR9Obk3qoWeY/WDi6MFta9AoMR+zud60mdnbniMcBxRuFJyDt2LdX/14A1UABeqk+Uk+LDfUpvoGKppZA==",
+ "dependencies": {
+ "debug": "^2.3.3",
+ "define-property": "^0.2.5",
+ "extend-shallow": "^2.0.1",
+ "posix-character-classes": "^0.1.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/expand-brackets/node_modules/define-property": {
+ "version": "0.2.5",
+ "resolved": "https://registry.npmmirror.com/define-property/-/define-property-0.2.5.tgz",
+ "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==",
+ "dependencies": {
+ "is-descriptor": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/expand-brackets/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz",
+ "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/expand-brackets/node_modules/is-descriptor": {
+ "version": "0.1.7",
+ "resolved": "https://registry.npmmirror.com/is-descriptor/-/is-descriptor-0.1.7.tgz",
+ "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==",
+ "dependencies": {
+ "is-accessor-descriptor": "^1.0.1",
+ "is-data-descriptor": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/expand-brackets/node_modules/is-extendable": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz",
+ "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/expand-tilde": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmmirror.com/expand-tilde/-/expand-tilde-2.0.2.tgz",
+ "integrity": "sha512-A5EmesHW6rfnZ9ysHQjPdJRni0SRar0tjtG5MNtm9n5TUvsYU8oozprtRD4AqHxcZWWlVuAmQo2nWKfN9oyjTw==",
+ "dependencies": {
+ "homedir-polyfill": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/express": {
+ "version": "4.18.2",
+ "resolved": "https://registry.npmmirror.com/express/-/express-4.18.2.tgz",
+ "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==",
+ "dependencies": {
+ "accepts": "~1.3.8",
+ "array-flatten": "1.1.1",
+ "body-parser": "1.20.1",
+ "content-disposition": "0.5.4",
+ "content-type": "~1.0.4",
+ "cookie": "0.5.0",
+ "cookie-signature": "1.0.6",
+ "debug": "2.6.9",
+ "depd": "2.0.0",
+ "encodeurl": "~1.0.2",
+ "escape-html": "~1.0.3",
+ "etag": "~1.8.1",
+ "finalhandler": "1.2.0",
+ "fresh": "0.5.2",
+ "http-errors": "2.0.0",
+ "merge-descriptors": "1.0.1",
+ "methods": "~1.1.2",
+ "on-finished": "2.4.1",
+ "parseurl": "~1.3.3",
+ "path-to-regexp": "0.1.7",
+ "proxy-addr": "~2.0.7",
+ "qs": "6.11.0",
+ "range-parser": "~1.2.1",
+ "safe-buffer": "5.2.1",
+ "send": "0.18.0",
+ "serve-static": "1.15.0",
+ "setprototypeof": "1.2.0",
+ "statuses": "2.0.1",
+ "type-is": "~1.6.18",
+ "utils-merge": "1.0.1",
+ "vary": "~1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.10.0"
+ }
+ },
+ "node_modules/express/node_modules/body-parser": {
+ "version": "1.20.1",
+ "resolved": "https://registry.npmmirror.com/body-parser/-/body-parser-1.20.1.tgz",
+ "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==",
+ "dependencies": {
+ "bytes": "3.1.2",
+ "content-type": "~1.0.4",
+ "debug": "2.6.9",
+ "depd": "2.0.0",
+ "destroy": "1.2.0",
+ "http-errors": "2.0.0",
+ "iconv-lite": "0.4.24",
+ "on-finished": "2.4.1",
+ "qs": "6.11.0",
+ "raw-body": "2.5.1",
+ "type-is": "~1.6.18",
+ "unpipe": "1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8",
+ "npm": "1.2.8000 || >= 1.4.16"
+ }
+ },
+ "node_modules/express/node_modules/cookie": {
+ "version": "0.5.0",
+ "resolved": "https://registry.npmmirror.com/cookie/-/cookie-0.5.0.tgz",
+ "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/express/node_modules/raw-body": {
+ "version": "2.5.1",
+ "resolved": "https://registry.npmmirror.com/raw-body/-/raw-body-2.5.1.tgz",
+ "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==",
+ "dependencies": {
+ "bytes": "3.1.2",
+ "http-errors": "2.0.0",
+ "iconv-lite": "0.4.24",
+ "unpipe": "1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/ext": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmmirror.com/ext/-/ext-1.7.0.tgz",
+ "integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==",
+ "dependencies": {
+ "type": "^2.7.2"
+ }
+ },
+ "node_modules/extend": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmmirror.com/extend/-/extend-3.0.2.tgz",
+ "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g=="
+ },
+ "node_modules/extend-shallow": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-3.0.2.tgz",
+ "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==",
+ "dependencies": {
+ "assign-symbols": "^1.0.0",
+ "is-extendable": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/extglob": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmmirror.com/extglob/-/extglob-2.0.4.tgz",
+ "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==",
+ "dependencies": {
+ "array-unique": "^0.3.2",
+ "define-property": "^1.0.0",
+ "expand-brackets": "^2.1.4",
+ "extend-shallow": "^2.0.1",
+ "fragment-cache": "^0.2.1",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/extglob/node_modules/define-property": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/define-property/-/define-property-1.0.0.tgz",
+ "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==",
+ "dependencies": {
+ "is-descriptor": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/extglob/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz",
+ "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/extglob/node_modules/is-extendable": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz",
+ "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/extsprintf": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmmirror.com/extsprintf/-/extsprintf-1.3.0.tgz",
+ "integrity": "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==",
+ "engines": [
+ "node >=0.6.0"
+ ]
+ },
+ "node_modules/fancy-log": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmmirror.com/fancy-log/-/fancy-log-1.3.3.tgz",
+ "integrity": "sha512-k9oEhlyc0FrVh25qYuSELjr8oxsCoc4/LEZfg2iJJrfEk/tZL9bCoJE47gqAvI2m/AUjluCS4+3I0eTx8n3AEw==",
+ "dependencies": {
+ "ansi-gray": "^0.1.1",
+ "color-support": "^1.1.3",
+ "parse-node-version": "^1.0.0",
+ "time-stamp": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmmirror.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="
+ },
+ "node_modules/fast-fifo": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz",
+ "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ=="
+ },
+ "node_modules/fast-glob": {
+ "version": "3.3.2",
+ "resolved": "https://registry.npmmirror.com/fast-glob/-/fast-glob-3.3.2.tgz",
+ "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==",
+ "dependencies": {
+ "@nodelib/fs.stat": "^2.0.2",
+ "@nodelib/fs.walk": "^1.2.3",
+ "glob-parent": "^5.1.2",
+ "merge2": "^1.3.0",
+ "micromatch": "^4.0.4"
+ },
+ "engines": {
+ "node": ">=8.6.0"
+ }
+ },
+ "node_modules/fast-json-stable-stringify": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmmirror.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
+ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw=="
+ },
+ "node_modules/fast-levenshtein": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmmirror.com/fast-levenshtein/-/fast-levenshtein-1.1.4.tgz",
+ "integrity": "sha512-Ia0sQNrMPXXkqVFt6w6M1n1oKo3NfKs+mvaV811Jwir7vAk9a6PVV9VPYf6X3BU97QiLEmuW3uXH9u87zDFfdw=="
+ },
+ "node_modules/fast-xml-parser": {
+ "version": "4.2.5",
+ "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.5.tgz",
+ "integrity": "sha512-B9/wizE4WngqQftFPmdaMYlXoJlJOYxGQOanC77fq9k8+Z0v5dDSVh+3glErdIROP//s/jgb7ZuxKfB8nVyo0g==",
+ "funding": [
+ {
+ "type": "paypal",
+ "url": "https://paypal.me/naturalintelligence"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/NaturalIntelligence"
+ }
+ ],
+ "dependencies": {
+ "strnum": "^1.0.5"
+ },
+ "bin": {
+ "fxparser": "src/cli/cli.js"
+ }
+ },
+ "node_modules/fastq": {
+ "version": "1.16.0",
+ "resolved": "https://registry.npmmirror.com/fastq/-/fastq-1.16.0.tgz",
+ "integrity": "sha512-ifCoaXsDrsdkWTtiNJX5uzHDsrck5TzfKKDcuFFTIrrc/BS076qgEIfoIy1VeZqViznfKiysPYTh/QeHtnIsYA==",
+ "dependencies": {
+ "reusify": "^1.0.4"
+ }
+ },
+ "node_modules/file-uri-to-path": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",
+ "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==",
+ "optional": true
+ },
+ "node_modules/fill-range": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-7.0.1.tgz",
+ "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
+ "dependencies": {
+ "to-regex-range": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/finalhandler": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmmirror.com/finalhandler/-/finalhandler-1.2.0.tgz",
+ "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==",
+ "dependencies": {
+ "debug": "2.6.9",
+ "encodeurl": "~1.0.2",
+ "escape-html": "~1.0.3",
+ "on-finished": "2.4.1",
+ "parseurl": "~1.3.3",
+ "statuses": "2.0.1",
+ "unpipe": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/findup-sync": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/findup-sync/-/findup-sync-3.0.0.tgz",
+ "integrity": "sha512-YbffarhcicEhOrm4CtrwdKBdCuz576RLdhJDsIfvNtxUuhdRet1qZcsMjqbePtAseKdAnDyM/IyXbu7PRPRLYg==",
+ "dependencies": {
+ "detect-file": "^1.0.0",
+ "is-glob": "^4.0.0",
+ "micromatch": "^3.0.4",
+ "resolve-dir": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/findup-sync/node_modules/braces": {
+ "version": "2.3.2",
+ "resolved": "https://registry.npmmirror.com/braces/-/braces-2.3.2.tgz",
+ "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==",
+ "dependencies": {
+ "arr-flatten": "^1.1.0",
+ "array-unique": "^0.3.2",
+ "extend-shallow": "^2.0.1",
+ "fill-range": "^4.0.0",
+ "isobject": "^3.0.1",
+ "repeat-element": "^1.1.2",
+ "snapdragon": "^0.8.1",
+ "snapdragon-node": "^2.0.1",
+ "split-string": "^3.0.2",
+ "to-regex": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/findup-sync/node_modules/braces/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz",
+ "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/findup-sync/node_modules/fill-range": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-4.0.0.tgz",
+ "integrity": "sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==",
+ "dependencies": {
+ "extend-shallow": "^2.0.1",
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1",
+ "to-regex-range": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/findup-sync/node_modules/fill-range/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz",
+ "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/findup-sync/node_modules/is-extendable": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz",
+ "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/findup-sync/node_modules/is-number": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/is-number/-/is-number-3.0.0.tgz",
+ "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==",
+ "dependencies": {
+ "kind-of": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/findup-sync/node_modules/is-number/node_modules/kind-of": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz",
+ "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==",
+ "dependencies": {
+ "is-buffer": "^1.1.5"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/findup-sync/node_modules/kind-of": {
+ "version": "6.0.3",
+ "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-6.0.3.tgz",
+ "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/findup-sync/node_modules/micromatch": {
+ "version": "3.1.10",
+ "resolved": "https://registry.npmmirror.com/micromatch/-/micromatch-3.1.10.tgz",
+ "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==",
+ "dependencies": {
+ "arr-diff": "^4.0.0",
+ "array-unique": "^0.3.2",
+ "braces": "^2.3.1",
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "extglob": "^2.0.4",
+ "fragment-cache": "^0.2.1",
+ "kind-of": "^6.0.2",
+ "nanomatch": "^1.2.9",
+ "object.pick": "^1.3.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/findup-sync/node_modules/to-regex-range": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmmirror.com/to-regex-range/-/to-regex-range-2.1.1.tgz",
+ "integrity": "sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==",
+ "dependencies": {
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/fined": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmmirror.com/fined/-/fined-1.2.0.tgz",
+ "integrity": "sha512-ZYDqPLGxDkDhDZBjZBb+oD1+j0rA4E0pXY50eplAAOPg2N/gUBSSk5IM1/QhPfyVo19lJ+CvXpqfvk+b2p/8Ng==",
+ "dependencies": {
+ "expand-tilde": "^2.0.2",
+ "is-plain-object": "^2.0.3",
+ "object.defaults": "^1.1.0",
+ "object.pick": "^1.2.0",
+ "parse-filepath": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/fined/node_modules/is-plain-object": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-2.0.4.tgz",
+ "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==",
+ "dependencies": {
+ "isobject": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/first-chunk-stream": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/first-chunk-stream/-/first-chunk-stream-5.0.0.tgz",
+ "integrity": "sha512-WdHo4ejd2cG2Dl+sLkW79SctU7mUQDfr4s1i26ffOZRs5mgv+BRttIM9gwcq0rDbemo0KlpVPaa3LBVLqPXzcQ==",
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/flagged-respawn": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/flagged-respawn/-/flagged-respawn-1.0.1.tgz",
+ "integrity": "sha512-lNaHNVymajmk0OJMBn8fVUAU1BtDeKIqKoVhk4xAALB57aALg6b4W0MfJ/cUE0g9YBXy5XhSlPIpYIJ7HaY/3Q==",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/flush-write-stream": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmmirror.com/flush-write-stream/-/flush-write-stream-1.1.1.tgz",
+ "integrity": "sha512-3Z4XhFZ3992uIq0XOqb9AreonueSYphE6oYbpt5+3u06JWklbsPkNv3ZKkP9Bz/r+1MWCaMoSQ28P85+1Yc77w==",
+ "dependencies": {
+ "inherits": "^2.0.3",
+ "readable-stream": "^2.3.6"
+ }
+ },
+ "node_modules/for-each": {
+ "version": "0.3.3",
+ "resolved": "https://registry.npmmirror.com/for-each/-/for-each-0.3.3.tgz",
+ "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==",
+ "dependencies": {
+ "is-callable": "^1.1.3"
+ }
+ },
+ "node_modules/for-in": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/for-in/-/for-in-1.0.2.tgz",
+ "integrity": "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/for-own": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/for-own/-/for-own-1.0.0.tgz",
+ "integrity": "sha512-0OABksIGrxKK8K4kynWkQ7y1zounQxP+CWnyclVwj81KW3vlLlGUx57DKGcP/LH216GzqnstnPocF16Nxs0Ycg==",
+ "dependencies": {
+ "for-in": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/foreground-child": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmmirror.com/foreground-child/-/foreground-child-3.1.1.tgz",
+ "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==",
+ "dependencies": {
+ "cross-spawn": "^7.0.0",
+ "signal-exit": "^4.0.1"
+ },
+ "engines": {
+ "node": ">=14"
+ }
+ },
+ "node_modules/foreground-child/node_modules/cross-spawn": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.3.tgz",
+ "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/foreground-child/node_modules/path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/foreground-child/node_modules/shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/foreground-child/node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/foreground-child/node_modules/which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmmirror.com/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/forever-agent": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmmirror.com/forever-agent/-/forever-agent-0.6.1.tgz",
+ "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/formstream": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmmirror.com/formstream/-/formstream-1.5.1.tgz",
+ "integrity": "sha512-q7ORzFqotpwn3Y/GBK2lK7PjtZZwJHz9QE9Phv8zb5IrL9ftGLyi2zjGURON3voK8TaZ+mqJKERYN4lrHYTkUQ==",
+ "dependencies": {
+ "destroy": "^1.0.4",
+ "mime": "^2.5.2",
+ "node-hex": "^1.0.1",
+ "pause-stream": "~0.0.11"
+ }
+ },
+ "node_modules/formstream/node_modules/mime": {
+ "version": "2.6.0",
+ "resolved": "https://registry.npmmirror.com/mime/-/mime-2.6.0.tgz",
+ "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==",
+ "bin": {
+ "mime": "cli.js"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/forwarded": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmmirror.com/forwarded/-/forwarded-0.2.0.tgz",
+ "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/fragment-cache": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmmirror.com/fragment-cache/-/fragment-cache-0.2.1.tgz",
+ "integrity": "sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBApXdQyfepKly2kA==",
+ "dependencies": {
+ "map-cache": "^0.2.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/fresh": {
+ "version": "0.5.2",
+ "resolved": "https://registry.npmmirror.com/fresh/-/fresh-0.5.2.tgz",
+ "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/fs-extra": {
+ "version": "8.1.0",
+ "resolved": "https://registry.npmmirror.com/fs-extra/-/fs-extra-8.1.0.tgz",
+ "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==",
+ "dependencies": {
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^4.0.0",
+ "universalify": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=6 <7 || >=8"
+ }
+ },
+ "node_modules/fs-mkdirp-stream": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/fs-mkdirp-stream/-/fs-mkdirp-stream-1.0.0.tgz",
+ "integrity": "sha512-+vSd9frUnapVC2RZYfL3FCB2p3g4TBhaUmrsWlSudsGdnxIuUvBB2QM1VZeBtc49QFwrp+wQLrDs3+xxDgI5gQ==",
+ "dependencies": {
+ "graceful-fs": "^4.1.11",
+ "through2": "^2.0.3"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/fs-mkdirp-stream/node_modules/through2": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz",
+ "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==",
+ "dependencies": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "node_modules/fs.realpath": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/fs.realpath/-/fs.realpath-1.0.0.tgz",
+ "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw=="
+ },
+ "node_modules/function-bind": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.2.tgz",
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA=="
+ },
+ "node_modules/generate-function": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmmirror.com/generate-function/-/generate-function-2.3.1.tgz",
+ "integrity": "sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ==",
+ "dependencies": {
+ "is-property": "^1.0.2"
+ }
+ },
+ "node_modules/generic-pool": {
+ "version": "3.9.0",
+ "resolved": "https://registry.npmmirror.com/generic-pool/-/generic-pool-3.9.0.tgz",
+ "integrity": "sha512-hymDOu5B53XvN4QT9dBmZxPX4CWhBPPLguTZ9MMFeFa/Kg0xWVfylOVNlJji/E7yTZWFd/q9GO5TxDLq156D7g==",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/gensync": {
+ "version": "1.0.0-beta.2",
+ "resolved": "https://registry.npmmirror.com/gensync/-/gensync-1.0.0-beta.2.tgz",
+ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",
+ "peer": true,
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/get-caller-file": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmmirror.com/get-caller-file/-/get-caller-file-2.0.5.tgz",
+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
+ "engines": {
+ "node": "6.* || 8.* || >= 10.*"
+ }
+ },
+ "node_modules/get-intrinsic": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.2.4.tgz",
+ "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2",
+ "has-proto": "^1.0.1",
+ "has-symbols": "^1.0.3",
+ "hasown": "^2.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/get-port": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmmirror.com/get-port/-/get-port-5.1.1.tgz",
+ "integrity": "sha512-g/Q1aTSDOxFpchXC4i8ZWvxA1lnPqx/JHqcpIw0/LX9T8x/GBbi6YnlN5nhaKIFkT8oFsscUKgDJYxfwfS6QsQ==",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/get-ready": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/get-ready/-/get-ready-1.0.0.tgz",
+ "integrity": "sha512-mFXCZPJIlcYcth+N8267+mghfYN9h3EhsDa6JSnbA3Wrhh/XFpuowviFcsDeYZtKspQyWyJqfs4O6P8CHeTwzw=="
+ },
+ "node_modules/get-value": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmmirror.com/get-value/-/get-value-2.0.6.tgz",
+ "integrity": "sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/getpass": {
+ "version": "0.1.7",
+ "resolved": "https://registry.npmmirror.com/getpass/-/getpass-0.1.7.tgz",
+ "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==",
+ "dependencies": {
+ "assert-plus": "^1.0.0"
+ }
+ },
+ "node_modules/glob": {
+ "version": "10.3.10",
+ "resolved": "https://registry.npmmirror.com/glob/-/glob-10.3.10.tgz",
+ "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==",
+ "dependencies": {
+ "foreground-child": "^3.1.0",
+ "jackspeak": "^2.3.5",
+ "minimatch": "^9.0.1",
+ "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0",
+ "path-scurry": "^1.10.1"
+ },
+ "bin": {
+ "glob": "dist/esm/bin.mjs"
+ },
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ }
+ },
+ "node_modules/glob-parent": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz",
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "dependencies": {
+ "is-glob": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/glob-stream": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmmirror.com/glob-stream/-/glob-stream-6.1.0.tgz",
+ "integrity": "sha512-uMbLGAP3S2aDOHUDfdoYcdIePUCfysbAd0IAoWVZbeGU/oNQ8asHVSshLDJUPWxfzj8zsCG7/XeHPHTtow0nsw==",
+ "dependencies": {
+ "extend": "^3.0.0",
+ "glob": "^7.1.1",
+ "glob-parent": "^3.1.0",
+ "is-negated-glob": "^1.0.0",
+ "ordered-read-streams": "^1.0.0",
+ "pumpify": "^1.3.5",
+ "readable-stream": "^2.1.5",
+ "remove-trailing-separator": "^1.0.1",
+ "to-absolute-glob": "^2.0.0",
+ "unique-stream": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/glob-stream/node_modules/brace-expansion": {
+ "version": "1.1.11",
+ "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz",
+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/glob-stream/node_modules/glob": {
+ "version": "7.2.3",
+ "resolved": "https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz",
+ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
+ "dependencies": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.1.1",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/glob-stream/node_modules/glob-parent": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-3.1.0.tgz",
+ "integrity": "sha512-E8Ak/2+dZY6fnzlR7+ueWvhsH1SjHr4jjss4YS/h4py44jY9MhK/VFdaZJAWDz6BbL21KeteKxFSFpq8OS5gVA==",
+ "dependencies": {
+ "is-glob": "^3.1.0",
+ "path-dirname": "^1.0.0"
+ }
+ },
+ "node_modules/glob-stream/node_modules/is-glob": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmmirror.com/is-glob/-/is-glob-3.1.0.tgz",
+ "integrity": "sha512-UFpDDrPgM6qpnFNI+rh/p3bUaq9hKLZN8bMUWzxmcnZVS3omf4IPK+BrewlnWjO1WmUsMYuSjKh4UJuV4+Lqmw==",
+ "dependencies": {
+ "is-extglob": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/glob-stream/node_modules/minimatch": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz",
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/glob-watcher": {
+ "version": "5.0.5",
+ "resolved": "https://registry.npmmirror.com/glob-watcher/-/glob-watcher-5.0.5.tgz",
+ "integrity": "sha512-zOZgGGEHPklZNjZQaZ9f41i7F2YwE+tS5ZHrDhbBCk3stwahn5vQxnFmBJZHoYdusR6R1bLSXeGUy/BhctwKzw==",
+ "dependencies": {
+ "anymatch": "^2.0.0",
+ "async-done": "^1.2.0",
+ "chokidar": "^2.0.0",
+ "is-negated-glob": "^1.0.0",
+ "just-debounce": "^1.0.0",
+ "normalize-path": "^3.0.0",
+ "object.defaults": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/anymatch": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/anymatch/-/anymatch-2.0.0.tgz",
+ "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==",
+ "dependencies": {
+ "micromatch": "^3.1.4",
+ "normalize-path": "^2.1.1"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/anymatch/node_modules/normalize-path": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmmirror.com/normalize-path/-/normalize-path-2.1.1.tgz",
+ "integrity": "sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==",
+ "dependencies": {
+ "remove-trailing-separator": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/binary-extensions": {
+ "version": "1.13.1",
+ "resolved": "https://registry.npmmirror.com/binary-extensions/-/binary-extensions-1.13.1.tgz",
+ "integrity": "sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/braces": {
+ "version": "2.3.2",
+ "resolved": "https://registry.npmmirror.com/braces/-/braces-2.3.2.tgz",
+ "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==",
+ "dependencies": {
+ "arr-flatten": "^1.1.0",
+ "array-unique": "^0.3.2",
+ "extend-shallow": "^2.0.1",
+ "fill-range": "^4.0.0",
+ "isobject": "^3.0.1",
+ "repeat-element": "^1.1.2",
+ "snapdragon": "^0.8.1",
+ "snapdragon-node": "^2.0.1",
+ "split-string": "^3.0.2",
+ "to-regex": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/braces/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz",
+ "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/chokidar": {
+ "version": "2.1.8",
+ "resolved": "https://registry.npmmirror.com/chokidar/-/chokidar-2.1.8.tgz",
+ "integrity": "sha512-ZmZUazfOzf0Nve7duiCKD23PFSCs4JPoYyccjUFF3aQkQadqBhfzhjkwBH2mNOG9cTBwhamM37EIsIkZw3nRgg==",
+ "deprecated": "Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies",
+ "dependencies": {
+ "anymatch": "^2.0.0",
+ "async-each": "^1.0.1",
+ "braces": "^2.3.2",
+ "glob-parent": "^3.1.0",
+ "inherits": "^2.0.3",
+ "is-binary-path": "^1.0.0",
+ "is-glob": "^4.0.0",
+ "normalize-path": "^3.0.0",
+ "path-is-absolute": "^1.0.0",
+ "readdirp": "^2.2.1",
+ "upath": "^1.1.1"
+ },
+ "optionalDependencies": {
+ "fsevents": "^1.2.7"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/fill-range": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-4.0.0.tgz",
+ "integrity": "sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==",
+ "dependencies": {
+ "extend-shallow": "^2.0.1",
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1",
+ "to-regex-range": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/fill-range/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz",
+ "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/fsevents": {
+ "version": "1.2.13",
+ "resolved": "https://registry.npmmirror.com/fsevents/-/fsevents-1.2.13.tgz",
+ "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==",
+ "deprecated": "The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2",
+ "hasInstallScript": true,
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "dependencies": {
+ "bindings": "^1.5.0",
+ "nan": "^2.12.1"
+ },
+ "engines": {
+ "node": ">= 4.0"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/glob-parent": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-3.1.0.tgz",
+ "integrity": "sha512-E8Ak/2+dZY6fnzlR7+ueWvhsH1SjHr4jjss4YS/h4py44jY9MhK/VFdaZJAWDz6BbL21KeteKxFSFpq8OS5gVA==",
+ "dependencies": {
+ "is-glob": "^3.1.0",
+ "path-dirname": "^1.0.0"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/glob-parent/node_modules/is-glob": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmmirror.com/is-glob/-/is-glob-3.1.0.tgz",
+ "integrity": "sha512-UFpDDrPgM6qpnFNI+rh/p3bUaq9hKLZN8bMUWzxmcnZVS3omf4IPK+BrewlnWjO1WmUsMYuSjKh4UJuV4+Lqmw==",
+ "dependencies": {
+ "is-extglob": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/is-binary-path": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/is-binary-path/-/is-binary-path-1.0.1.tgz",
+ "integrity": "sha512-9fRVlXc0uCxEDj1nQzaWONSpbTfx0FmJfzHF7pwlI8DkWGoHBBea4Pg5Ky0ojwwxQmnSifgbKkI06Qv0Ljgj+Q==",
+ "dependencies": {
+ "binary-extensions": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/is-extendable": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz",
+ "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/is-number": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/is-number/-/is-number-3.0.0.tgz",
+ "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==",
+ "dependencies": {
+ "kind-of": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/kind-of": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz",
+ "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==",
+ "dependencies": {
+ "is-buffer": "^1.1.5"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/micromatch": {
+ "version": "3.1.10",
+ "resolved": "https://registry.npmmirror.com/micromatch/-/micromatch-3.1.10.tgz",
+ "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==",
+ "dependencies": {
+ "arr-diff": "^4.0.0",
+ "array-unique": "^0.3.2",
+ "braces": "^2.3.1",
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "extglob": "^2.0.4",
+ "fragment-cache": "^0.2.1",
+ "kind-of": "^6.0.2",
+ "nanomatch": "^1.2.9",
+ "object.pick": "^1.3.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/micromatch/node_modules/kind-of": {
+ "version": "6.0.3",
+ "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-6.0.3.tgz",
+ "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/readdirp": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmmirror.com/readdirp/-/readdirp-2.2.1.tgz",
+ "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==",
+ "dependencies": {
+ "graceful-fs": "^4.1.11",
+ "micromatch": "^3.1.10",
+ "readable-stream": "^2.0.2"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/to-regex-range": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmmirror.com/to-regex-range/-/to-regex-range-2.1.1.tgz",
+ "integrity": "sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==",
+ "dependencies": {
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/global-modules": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/global-modules/-/global-modules-1.0.0.tgz",
+ "integrity": "sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg==",
+ "dependencies": {
+ "global-prefix": "^1.0.1",
+ "is-windows": "^1.0.1",
+ "resolve-dir": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/global-prefix": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/global-prefix/-/global-prefix-1.0.2.tgz",
+ "integrity": "sha512-5lsx1NUDHtSjfg0eHlmYvZKv8/nVqX4ckFbM+FrGcQ+04KWcWFo9P5MxPZYSzUvyzmdTbI7Eix8Q4IbELDqzKg==",
+ "dependencies": {
+ "expand-tilde": "^2.0.2",
+ "homedir-polyfill": "^1.0.1",
+ "ini": "^1.3.4",
+ "is-windows": "^1.0.1",
+ "which": "^1.2.14"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/globals": {
+ "version": "11.12.0",
+ "resolved": "https://registry.npmmirror.com/globals/-/globals-11.12.0.tgz",
+ "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/globby": {
+ "version": "10.0.1",
+ "resolved": "https://registry.npmmirror.com/globby/-/globby-10.0.1.tgz",
+ "integrity": "sha512-sSs4inE1FB2YQiymcmTv6NWENryABjUNPeWhOvmn4SjtKybglsyPZxFB3U1/+L1bYi0rNZDqCLlHyLYDl1Pq5A==",
+ "dependencies": {
+ "@types/glob": "^7.1.1",
+ "array-union": "^2.1.0",
+ "dir-glob": "^3.0.1",
+ "fast-glob": "^3.0.3",
+ "glob": "^7.1.3",
+ "ignore": "^5.1.1",
+ "merge2": "^1.2.3",
+ "slash": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/globby/node_modules/brace-expansion": {
+ "version": "1.1.11",
+ "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz",
+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/globby/node_modules/glob": {
+ "version": "7.2.3",
+ "resolved": "https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz",
+ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
+ "dependencies": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.1.1",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/globby/node_modules/minimatch": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz",
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/glogg": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/glogg/-/glogg-1.0.2.tgz",
+ "integrity": "sha512-5mwUoSuBk44Y4EshyiqcH95ZntbDdTQqA3QYSrxmzj28Ai0vXBGMH1ApSANH14j2sIRtqCEyg6PfsuP7ElOEDA==",
+ "dependencies": {
+ "sparkles": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/gopd": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/gopd/-/gopd-1.0.1.tgz",
+ "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==",
+ "dependencies": {
+ "get-intrinsic": "^1.1.3"
+ }
+ },
+ "node_modules/graceful-fs": {
+ "version": "4.2.11",
+ "resolved": "https://registry.npmmirror.com/graceful-fs/-/graceful-fs-4.2.11.tgz",
+ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="
+ },
+ "node_modules/graceful-readlink": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz",
+ "integrity": "sha512-8tLu60LgxF6XpdbK8OW3FA+IfTNBn1ZHGHKF4KQbEeSkajYw5PlYJcKluntgegDPTg8UkHjpet1T82vk6TQ68w=="
+ },
+ "node_modules/gulp": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmmirror.com/gulp/-/gulp-4.0.2.tgz",
+ "integrity": "sha512-dvEs27SCZt2ibF29xYgmnwwCYZxdxhQ/+LFWlbAW8y7jt68L/65402Lz3+CKy0Ov4rOs+NERmDq7YlZaDqUIfA==",
+ "dependencies": {
+ "glob-watcher": "^5.0.3",
+ "gulp-cli": "^2.2.0",
+ "undertaker": "^1.2.1",
+ "vinyl-fs": "^3.0.0"
+ },
+ "bin": {
+ "gulp": "bin/gulp.js"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/gulp-babel": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmmirror.com/gulp-babel/-/gulp-babel-8.0.0.tgz",
+ "integrity": "sha512-oomaIqDXxFkg7lbpBou/gnUkX51/Y/M2ZfSjL2hdqXTAlSWZcgZtd2o0cOH0r/eE8LWD0+Q/PsLsr2DKOoqToQ==",
+ "dependencies": {
+ "plugin-error": "^1.0.1",
+ "replace-ext": "^1.0.0",
+ "through2": "^2.0.0",
+ "vinyl-sourcemaps-apply": "^0.2.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/gulp-babel/node_modules/through2": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz",
+ "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==",
+ "dependencies": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "node_modules/gulp-clean-css": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmmirror.com/gulp-clean-css/-/gulp-clean-css-4.3.0.tgz",
+ "integrity": "sha512-mGyeT3qqFXTy61j0zOIciS4MkYziF2U594t2Vs9rUnpkEHqfu6aDITMp8xOvZcvdX61Uz3y1mVERRYmjzQF5fg==",
+ "dependencies": {
+ "clean-css": "4.2.3",
+ "plugin-error": "1.0.1",
+ "through2": "3.0.1",
+ "vinyl-sourcemaps-apply": "0.2.1"
+ }
+ },
+ "node_modules/gulp-cli": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmmirror.com/gulp-cli/-/gulp-cli-2.3.0.tgz",
+ "integrity": "sha512-zzGBl5fHo0EKSXsHzjspp3y5CONegCm8ErO5Qh0UzFzk2y4tMvzLWhoDokADbarfZRL2pGpRp7yt6gfJX4ph7A==",
+ "dependencies": {
+ "ansi-colors": "^1.0.1",
+ "archy": "^1.0.0",
+ "array-sort": "^1.0.0",
+ "color-support": "^1.1.3",
+ "concat-stream": "^1.6.0",
+ "copy-props": "^2.0.1",
+ "fancy-log": "^1.3.2",
+ "gulplog": "^1.0.0",
+ "interpret": "^1.4.0",
+ "isobject": "^3.0.1",
+ "liftoff": "^3.1.0",
+ "matchdep": "^2.0.0",
+ "mute-stdout": "^1.0.0",
+ "pretty-hrtime": "^1.0.0",
+ "replace-homedir": "^1.0.0",
+ "semver-greatest-satisfied-range": "^1.1.0",
+ "v8flags": "^3.2.0",
+ "yargs": "^7.1.0"
+ },
+ "bin": {
+ "gulp": "bin/gulp.js"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/gulp-cli/node_modules/ansi-colors": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/ansi-colors/-/ansi-colors-1.1.0.tgz",
+ "integrity": "sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==",
+ "dependencies": {
+ "ansi-wrap": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-cli/node_modules/ansi-regex": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-2.1.1.tgz",
+ "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-cli/node_modules/camelcase": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/camelcase/-/camelcase-3.0.0.tgz",
+ "integrity": "sha512-4nhGqUkc4BqbBBB4Q6zLuD7lzzrHYrjKGeYaEji/3tFR5VdJu9v+LilhGIVe8wxEJPPOeWo7eg8dwY13TZ1BNg==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-cli/node_modules/cliui": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmmirror.com/cliui/-/cliui-3.2.0.tgz",
+ "integrity": "sha512-0yayqDxWQbqk3ojkYqUKqaAQ6AfNKeKWRNA8kR0WXzAsdHpP4BIaOmMAG87JGuO6qcobyW4GjxHd9PmhEd+T9w==",
+ "dependencies": {
+ "string-width": "^1.0.1",
+ "strip-ansi": "^3.0.1",
+ "wrap-ansi": "^2.0.0"
+ }
+ },
+ "node_modules/gulp-cli/node_modules/decamelize": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmmirror.com/decamelize/-/decamelize-1.2.0.tgz",
+ "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-cli/node_modules/get-caller-file": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmmirror.com/get-caller-file/-/get-caller-file-1.0.3.tgz",
+ "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w=="
+ },
+ "node_modules/gulp-cli/node_modules/is-fullwidth-code-point": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
+ "integrity": "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==",
+ "dependencies": {
+ "number-is-nan": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-cli/node_modules/string-width": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/string-width/-/string-width-1.0.2.tgz",
+ "integrity": "sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==",
+ "dependencies": {
+ "code-point-at": "^1.0.0",
+ "is-fullwidth-code-point": "^1.0.0",
+ "strip-ansi": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-cli/node_modules/strip-ansi": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-3.0.1.tgz",
+ "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==",
+ "dependencies": {
+ "ansi-regex": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-cli/node_modules/wrap-ansi": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz",
+ "integrity": "sha512-vAaEaDM946gbNpH5pLVNR+vX2ht6n0Bt3GXwVB1AuAqZosOvHNF3P7wDnh8KLkSqgUh0uh77le7Owgoz+Z9XBw==",
+ "dependencies": {
+ "string-width": "^1.0.1",
+ "strip-ansi": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-cli/node_modules/y18n": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmmirror.com/y18n/-/y18n-3.2.2.tgz",
+ "integrity": "sha512-uGZHXkHnhF0XeeAPgnKfPv1bgKAYyVvmNL1xlKsPYZPaIHxGti2hHqvOCQv71XMsLxu1QjergkqogUnms5D3YQ=="
+ },
+ "node_modules/gulp-cli/node_modules/yargs": {
+ "version": "7.1.2",
+ "resolved": "https://registry.npmmirror.com/yargs/-/yargs-7.1.2.tgz",
+ "integrity": "sha512-ZEjj/dQYQy0Zx0lgLMLR8QuaqTihnxirir7EwUHp1Axq4e3+k8jXU5K0VLbNvedv1f4EWtBonDIZm0NUr+jCcA==",
+ "dependencies": {
+ "camelcase": "^3.0.0",
+ "cliui": "^3.2.0",
+ "decamelize": "^1.1.1",
+ "get-caller-file": "^1.0.1",
+ "os-locale": "^1.4.0",
+ "read-pkg-up": "^1.0.1",
+ "require-directory": "^2.1.1",
+ "require-main-filename": "^1.0.1",
+ "set-blocking": "^2.0.0",
+ "string-width": "^1.0.2",
+ "which-module": "^1.0.0",
+ "y18n": "^3.2.1",
+ "yargs-parser": "^5.0.1"
+ }
+ },
+ "node_modules/gulp-cli/node_modules/yargs-parser": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmmirror.com/yargs-parser/-/yargs-parser-5.0.1.tgz",
+ "integrity": "sha512-wpav5XYiddjXxirPoCTUPbqM0PXvJ9hiBMvuJgInvo4/lAOTZzUprArw17q2O1P2+GHhbBr18/iQwjL5Z9BqfA==",
+ "dependencies": {
+ "camelcase": "^3.0.0",
+ "object.assign": "^4.1.0"
+ }
+ },
+ "node_modules/gulp-concat": {
+ "version": "2.6.1",
+ "resolved": "https://registry.npmmirror.com/gulp-concat/-/gulp-concat-2.6.1.tgz",
+ "integrity": "sha512-a2scActrQrDBpBbR3WUZGyGS1JEPLg5PZJdIa7/Bi3GuKAmPYDK6SFhy/NZq5R8KsKKFvtfR0fakbUCcKGCCjg==",
+ "dependencies": {
+ "concat-with-sourcemaps": "^1.0.0",
+ "through2": "^2.0.0",
+ "vinyl": "^2.0.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/gulp-concat/node_modules/through2": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz",
+ "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==",
+ "dependencies": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "node_modules/gulp-footer": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmmirror.com/gulp-footer/-/gulp-footer-2.1.0.tgz",
+ "integrity": "sha512-CK3nRBP3PG59XN2L1rDLkBHA7goYsW+tJuVQccLP9jq3mpBT2kuRq0ImgNjrUkDbF948aCVQH4J7uIEqiZ2MHA==",
+ "dependencies": {
+ "lodash": "^4.17.21",
+ "map-stream": "^0.0.7"
+ }
+ },
+ "node_modules/gulp-gzip": {
+ "version": "1.4.2",
+ "resolved": "https://registry.npmmirror.com/gulp-gzip/-/gulp-gzip-1.4.2.tgz",
+ "integrity": "sha512-ZIxfkUwk2XmZPTT9pPHrHUQlZMyp9nPhg2sfoeN27mBGpi7OaHnOD+WCN41NXjfJQ69lV1nQ9LLm1hYxx4h3UQ==",
+ "dependencies": {
+ "ansi-colors": "^1.0.1",
+ "bytes": "^3.0.0",
+ "fancy-log": "^1.3.2",
+ "plugin-error": "^1.0.0",
+ "stream-to-array": "^2.3.0",
+ "through2": "^2.0.3"
+ },
+ "engines": {
+ "node": ">= 0.10.0"
+ }
+ },
+ "node_modules/gulp-gzip/node_modules/ansi-colors": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/ansi-colors/-/ansi-colors-1.1.0.tgz",
+ "integrity": "sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==",
+ "dependencies": {
+ "ansi-wrap": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-gzip/node_modules/through2": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz",
+ "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==",
+ "dependencies": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "node_modules/gulp-header": {
+ "version": "2.0.9",
+ "resolved": "https://registry.npmmirror.com/gulp-header/-/gulp-header-2.0.9.tgz",
+ "integrity": "sha512-LMGiBx+qH8giwrOuuZXSGvswcIUh0OiioNkUpLhNyvaC6/Ga8X6cfAeme2L5PqsbXMhL8o8b/OmVqIQdxprhcQ==",
+ "dependencies": {
+ "concat-with-sourcemaps": "^1.1.0",
+ "lodash.template": "^4.5.0",
+ "map-stream": "0.0.7",
+ "through2": "^2.0.0"
+ }
+ },
+ "node_modules/gulp-header/node_modules/through2": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz",
+ "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==",
+ "dependencies": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "node_modules/gulp-htmlmin": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmmirror.com/gulp-htmlmin/-/gulp-htmlmin-5.0.1.tgz",
+ "integrity": "sha512-ASlyDPZOSKjHYUifYV0rf9JPDflN9IRIb8lw2vRqtYMC4ljU3zAmnnaVXwFQ3H+CfXxZSUesZ2x7jrnPJu93jA==",
+ "dependencies": {
+ "html-minifier": "^3.5.20",
+ "plugin-error": "^1.0.1",
+ "through2": "^2.0.3"
+ },
+ "engines": {
+ "node": ">= 6.0"
+ }
+ },
+ "node_modules/gulp-htmlmin/node_modules/through2": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz",
+ "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==",
+ "dependencies": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "node_modules/gulp-javascript-obfuscator": {
+ "version": "1.1.6",
+ "resolved": "https://registry.npmmirror.com/gulp-javascript-obfuscator/-/gulp-javascript-obfuscator-1.1.6.tgz",
+ "integrity": "sha512-oiROhi7Zlu/0fM2h20jBFPaDOZicilT6kN+97Si82yieeFqr6l70o2R3gZ2Ah0u8v5IqGa+Pt8c2q3UnkMuk2A==",
+ "dependencies": {
+ "javascript-obfuscator": "latest",
+ "plugin-error": "^1.0.1",
+ "through2": "^2.0.0",
+ "vinyl": "^2.2.0"
+ }
+ },
+ "node_modules/gulp-javascript-obfuscator/node_modules/through2": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz",
+ "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==",
+ "dependencies": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "node_modules/gulp-jshint": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmmirror.com/gulp-jshint/-/gulp-jshint-2.1.0.tgz",
+ "integrity": "sha512-sP3NK8Y/1e58O0PH9t6s7DAr/lKDSUbIY207oWSeufM6/VclB7jJrIBcPCsyhrFTCDUl9DauePbt6VqP2vPM5w==",
+ "dependencies": {
+ "lodash": "^4.12.0",
+ "minimatch": "^3.0.3",
+ "plugin-error": "^0.1.2",
+ "rcloader": "^0.2.2",
+ "through2": "^2.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4.0"
+ },
+ "peerDependencies": {
+ "jshint": "2.x"
+ }
+ },
+ "node_modules/gulp-jshint/node_modules/arr-diff": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/arr-diff/-/arr-diff-1.1.0.tgz",
+ "integrity": "sha512-OQwDZUqYaQwyyhDJHThmzId8daf4/RFNLaeh3AevmSeZ5Y7ug4Ga/yKc6l6kTZOBW781rCj103ZuTh8GAsB3+Q==",
+ "dependencies": {
+ "arr-flatten": "^1.0.1",
+ "array-slice": "^0.2.3"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-jshint/node_modules/arr-union": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmmirror.com/arr-union/-/arr-union-2.1.0.tgz",
+ "integrity": "sha512-t5db90jq+qdgk8aFnxEkjqta0B/GHrM1pxzuuZz2zWsOXc5nKu3t+76s/PQBA8FTcM/ipspIH9jWG4OxCBc2eA==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-jshint/node_modules/array-slice": {
+ "version": "0.2.3",
+ "resolved": "https://registry.npmmirror.com/array-slice/-/array-slice-0.2.3.tgz",
+ "integrity": "sha512-rlVfZW/1Ph2SNySXwR9QYkChp8EkOEiTMO5Vwx60usw04i4nWemkm9RXmQqgkQFaLHsqLuADvjp6IfgL9l2M8Q==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-jshint/node_modules/brace-expansion": {
+ "version": "1.1.11",
+ "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz",
+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/gulp-jshint/node_modules/extend-shallow": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-1.1.4.tgz",
+ "integrity": "sha512-L7AGmkO6jhDkEBBGWlLtftA80Xq8DipnrRPr0pyi7GQLXkaq9JYA4xF4z6qnadIC6euiTDKco0cGSU9muw+WTw==",
+ "dependencies": {
+ "kind-of": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-jshint/node_modules/kind-of": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-1.1.0.tgz",
+ "integrity": "sha512-aUH6ElPnMGon2/YkxRIigV32MOpTVcoXQ1Oo8aYn40s+sJ3j+0gFZsT8HKDcxNy7Fi9zuquWtGaGAahOdv5p/g==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-jshint/node_modules/minimatch": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz",
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/gulp-jshint/node_modules/plugin-error": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmmirror.com/plugin-error/-/plugin-error-0.1.2.tgz",
+ "integrity": "sha512-WzZHcm4+GO34sjFMxQMqZbsz3xiNEgonCskQ9v+IroMmYgk/tas8dG+Hr2D6IbRPybZ12oWpzE/w3cGJ6FJzOw==",
+ "dependencies": {
+ "ansi-cyan": "^0.1.1",
+ "ansi-red": "^0.1.1",
+ "arr-diff": "^1.0.1",
+ "arr-union": "^2.0.1",
+ "extend-shallow": "^1.1.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-jshint/node_modules/through2": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz",
+ "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==",
+ "dependencies": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "node_modules/gulp-minify-css": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/gulp-minify-css/-/gulp-minify-css-1.2.4.tgz",
+ "integrity": "sha512-byBqFQM/HrZoUVYihu/03iYH4m7U5TjSGhr6/7JvpMHh9+woewsCtEp6Noif2VXB+idDoM4ECd9sw+St+KFqsg==",
+ "deprecated": "Please use gulp-clean-css",
+ "dependencies": {
+ "clean-css": "^3.3.3",
+ "gulp-util": "^3.0.5",
+ "object-assign": "^4.0.1",
+ "readable-stream": "^2.0.0",
+ "vinyl-bufferstream": "^1.0.1",
+ "vinyl-sourcemaps-apply": "^0.2.0"
+ }
+ },
+ "node_modules/gulp-minify-css/node_modules/clean-css": {
+ "version": "3.4.28",
+ "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-3.4.28.tgz",
+ "integrity": "sha512-aTWyttSdI2mYi07kWqHi24NUU9YlELFKGOAgFzZjDN1064DMAOy2FBuoyGmkKRlXkbpXd0EVHmiVkbKhKoirTw==",
+ "dependencies": {
+ "commander": "2.8.x",
+ "source-map": "0.4.x"
+ },
+ "bin": {
+ "cleancss": "bin/cleancss"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-minify-css/node_modules/commander": {
+ "version": "2.8.1",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-2.8.1.tgz",
+ "integrity": "sha512-+pJLBFVk+9ZZdlAOB5WuIElVPPth47hILFkmGym57aq8kwxsowvByvB0DHs1vQAhyMZzdcpTtF0VDKGkSDR4ZQ==",
+ "dependencies": {
+ "graceful-readlink": ">= 1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.6.x"
+ }
+ },
+ "node_modules/gulp-minify-css/node_modules/source-map": {
+ "version": "0.4.4",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz",
+ "integrity": "sha512-Y8nIfcb1s/7DcobUz1yOO1GSp7gyL+D9zLHDehT7iRESqGSxjJ448Sg7rvfgsRJCnKLdSl11uGf0s9X80cH0/A==",
+ "dependencies": {
+ "amdefine": ">=0.0.4"
+ },
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/gulp-plugin-extras": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/gulp-plugin-extras/-/gulp-plugin-extras-0.3.0.tgz",
+ "integrity": "sha512-I/kOBSpo61QsGQZcqozZYEnDseKvpudUafVVWDLYgBFAUJ37kW5R8Sjw9cMYzpGyPUfEYOeoY4p+dkfLqgyJUQ==",
+ "dependencies": {
+ "@types/vinyl": "^2.0.9",
+ "chalk": "^5.3.0",
+ "easy-transform-stream": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/gulp-plugin-extras/node_modules/chalk": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz",
+ "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==",
+ "engines": {
+ "node": "^12.17.0 || ^14.13 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/chalk?sponsor=1"
+ }
+ },
+ "node_modules/gulp-rename": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/gulp-rename/-/gulp-rename-2.0.0.tgz",
+ "integrity": "sha512-97Vba4KBzbYmR5VBs9mWmK+HwIf5mj+/zioxfZhOKeXtx5ZjBk57KFlePf5nxq9QsTtFl0ejnHE3zTC9MHXqyQ==",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/gulp-replace": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmmirror.com/gulp-replace/-/gulp-replace-1.1.4.tgz",
+ "integrity": "sha512-SVSF7ikuWKhpAW4l4wapAqPPSToJoiNKsbDoUnRrSgwZHH7lH8pbPeQj1aOVYQrbZKhfSVBxVW+Py7vtulRktw==",
+ "dependencies": {
+ "@types/node": "*",
+ "@types/vinyl": "^2.0.4",
+ "istextorbinary": "^3.0.0",
+ "replacestream": "^4.0.3",
+ "yargs-parser": ">=5.0.0-security.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/gulp-rev": {
+ "version": "11.0.0",
+ "resolved": "https://registry.npmjs.org/gulp-rev/-/gulp-rev-11.0.0.tgz",
+ "integrity": "sha512-KJSyw0qMQBL0xB3YhYrdinelbnWnYHDxj3jqVL2Xvn8bUA1lh7py5/2Z6fUgIWiX+F1XyKYVxI8yy9asIAvZJA==",
+ "dependencies": {
+ "gulp-plugin-extras": "^0.3.0",
+ "modify-filename": "^2.0.0",
+ "rev-hash": "^4.1.0",
+ "rev-path": "^3.0.0",
+ "sort-keys": "^5.0.0",
+ "vinyl": "^3.0.0",
+ "vinyl-file": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ },
+ "peerDependencies": {
+ "gulp": ">=4"
+ },
+ "peerDependenciesMeta": {
+ "gulp": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/gulp-rev-all": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/gulp-rev-all/-/gulp-rev-all-4.0.0.tgz",
+ "integrity": "sha512-qQYY56y6z9jJiZC+KpRtSCzFb/uS7bIGUB3tRiCyyQYr/Si3QkXX+t+UAceZ650d7y6yaqoO8xFKPRGHClXrJA==",
+ "dependencies": {
+ "chalk": "^5.2.0",
+ "easy-transform-stream": "^1.0.0",
+ "fancy-log": "^2.0.0",
+ "isbinaryfile": "^5.0.0",
+ "plugin-error": "^2.0.1",
+ "vinyl": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/gulp-rev-all/node_modules/ansi-colors": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-1.1.0.tgz",
+ "integrity": "sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==",
+ "dependencies": {
+ "ansi-wrap": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-rev-all/node_modules/chalk": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz",
+ "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==",
+ "engines": {
+ "node": "^12.17.0 || ^14.13 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/chalk?sponsor=1"
+ }
+ },
+ "node_modules/gulp-rev-all/node_modules/fancy-log": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-2.0.0.tgz",
+ "integrity": "sha512-9CzxZbACXMUXW13tS0tI8XsGGmxWzO2DmYrGuBJOJ8k8q2K7hwfJA5qHjuPPe8wtsco33YR9wc+Rlr5wYFvhSA==",
+ "dependencies": {
+ "color-support": "^1.1.3"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/gulp-rev-all/node_modules/plugin-error": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-2.0.1.tgz",
+ "integrity": "sha512-zMakqvIDyY40xHOvzXka0kUvf40nYIuwRE8dWhti2WtjQZ31xAgBZBhxsK7vK3QbRXS1Xms/LO7B5cuAsfB2Gg==",
+ "dependencies": {
+ "ansi-colors": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/gulp-rev-all/node_modules/replace-ext": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-2.0.0.tgz",
+ "integrity": "sha512-UszKE5KVK6JvyD92nzMn9cDapSk6w/CaFZ96CnmDMUqH9oowfxF/ZjRITD25H4DnOQClLA4/j7jLGXXLVKxAug==",
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/gulp-rev-all/node_modules/vinyl": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-3.0.0.tgz",
+ "integrity": "sha512-rC2VRfAVVCGEgjnxHUnpIVh3AGuk62rP3tqVrn+yab0YH7UULisC085+NYH+mnqf3Wx4SpSi1RQMwudL89N03g==",
+ "dependencies": {
+ "clone": "^2.1.2",
+ "clone-stats": "^1.0.0",
+ "remove-trailing-separator": "^1.1.0",
+ "replace-ext": "^2.0.0",
+ "teex": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/gulp-rev/node_modules/replace-ext": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-2.0.0.tgz",
+ "integrity": "sha512-UszKE5KVK6JvyD92nzMn9cDapSk6w/CaFZ96CnmDMUqH9oowfxF/ZjRITD25H4DnOQClLA4/j7jLGXXLVKxAug==",
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/gulp-rev/node_modules/vinyl": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-3.0.0.tgz",
+ "integrity": "sha512-rC2VRfAVVCGEgjnxHUnpIVh3AGuk62rP3tqVrn+yab0YH7UULisC085+NYH+mnqf3Wx4SpSi1RQMwudL89N03g==",
+ "dependencies": {
+ "clone": "^2.1.2",
+ "clone-stats": "^1.0.0",
+ "remove-trailing-separator": "^1.1.0",
+ "replace-ext": "^2.0.0",
+ "teex": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/gulp-uglify": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmmirror.com/gulp-uglify/-/gulp-uglify-3.0.2.tgz",
+ "integrity": "sha512-gk1dhB74AkV2kzqPMQBLA3jPoIAPd/nlNzP2XMDSG8XZrqnlCiDGAqC+rZOumzFvB5zOphlFh6yr3lgcAb/OOg==",
+ "dependencies": {
+ "array-each": "^1.0.1",
+ "extend-shallow": "^3.0.2",
+ "gulplog": "^1.0.0",
+ "has-gulplog": "^0.1.0",
+ "isobject": "^3.0.1",
+ "make-error-cause": "^1.1.1",
+ "safe-buffer": "^5.1.2",
+ "through2": "^2.0.0",
+ "uglify-js": "^3.0.5",
+ "vinyl-sourcemaps-apply": "^0.2.0"
+ }
+ },
+ "node_modules/gulp-uglify-es": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/gulp-uglify-es/-/gulp-uglify-es-3.0.0.tgz",
+ "integrity": "sha512-dQ3czMFFojNgCajcrYl0oa98+YayaQ8kXRdaacpZRZ3iw2sdVURfdt8y8Ki1ogZGQqw8BUawnB7V6NkanxqnDg==",
+ "dependencies": {
+ "o-stream": "^0.3.0",
+ "plugin-error": "^1.0.1",
+ "terser": "^5.7.1",
+ "vinyl": "^2.2.1",
+ "vinyl-sourcemaps-apply": "^0.2.1"
+ }
+ },
+ "node_modules/gulp-uglify/node_modules/through2": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz",
+ "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==",
+ "dependencies": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "node_modules/gulp-util": {
+ "version": "3.0.8",
+ "resolved": "https://registry.npmjs.org/gulp-util/-/gulp-util-3.0.8.tgz",
+ "integrity": "sha512-q5oWPc12lwSFS9h/4VIjG+1NuNDlJ48ywV2JKItY4Ycc/n1fXJeYPVQsfu5ZrhQi7FGSDBalwUCLar/GyHXKGw==",
+ "deprecated": "gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5",
+ "dependencies": {
+ "array-differ": "^1.0.0",
+ "array-uniq": "^1.0.2",
+ "beeper": "^1.0.0",
+ "chalk": "^1.0.0",
+ "dateformat": "^2.0.0",
+ "fancy-log": "^1.1.0",
+ "gulplog": "^1.0.0",
+ "has-gulplog": "^0.1.0",
+ "lodash._reescape": "^3.0.0",
+ "lodash._reevaluate": "^3.0.0",
+ "lodash._reinterpolate": "^3.0.0",
+ "lodash.template": "^3.0.0",
+ "minimist": "^1.1.0",
+ "multipipe": "^0.1.2",
+ "object-assign": "^3.0.0",
+ "replace-ext": "0.0.1",
+ "through2": "^2.0.0",
+ "vinyl": "^0.5.0"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/gulp-util/node_modules/ansi-regex": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
+ "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-util/node_modules/ansi-styles": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz",
+ "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-util/node_modules/array-differ": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz",
+ "integrity": "sha512-LeZY+DZDRnvP7eMuQ6LHfCzUGxAAIViUBliK24P3hWXL6y4SortgR6Nim6xrkfSLlmH0+k+9NYNwVC2s53ZrYQ==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-util/node_modules/chalk": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
+ "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==",
+ "dependencies": {
+ "ansi-styles": "^2.2.1",
+ "escape-string-regexp": "^1.0.2",
+ "has-ansi": "^2.0.0",
+ "strip-ansi": "^3.0.0",
+ "supports-color": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-util/node_modules/clone": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz",
+ "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==",
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/gulp-util/node_modules/clone-stats": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-0.0.1.tgz",
+ "integrity": "sha512-dhUqc57gSMCo6TX85FLfe51eC/s+Im2MLkAgJwfaRRexR2tA4dd3eLEW4L6efzHc2iNorrRRXITifnDLlRrhaA=="
+ },
+ "node_modules/gulp-util/node_modules/escape-string-regexp": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
+ "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==",
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/gulp-util/node_modules/lodash.template": {
+ "version": "3.6.2",
+ "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-3.6.2.tgz",
+ "integrity": "sha512-0B4Y53I0OgHUJkt+7RmlDFWKjVAI/YUpWNiL9GQz5ORDr4ttgfQGo+phBWKFLJbBdtOwgMuUkdOHOnPg45jKmQ==",
+ "dependencies": {
+ "lodash._basecopy": "^3.0.0",
+ "lodash._basetostring": "^3.0.0",
+ "lodash._basevalues": "^3.0.0",
+ "lodash._isiterateecall": "^3.0.0",
+ "lodash._reinterpolate": "^3.0.0",
+ "lodash.escape": "^3.0.0",
+ "lodash.keys": "^3.0.0",
+ "lodash.restparam": "^3.0.0",
+ "lodash.templatesettings": "^3.0.0"
+ }
+ },
+ "node_modules/gulp-util/node_modules/lodash.templatesettings": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-3.1.1.tgz",
+ "integrity": "sha512-TcrlEr31tDYnWkHFWDCV3dHYroKEXpJZ2YJYvJdhN+y4AkWMDZ5I4I8XDtUKqSAyG81N7w+I1mFEJtcED+tGqQ==",
+ "dependencies": {
+ "lodash._reinterpolate": "^3.0.0",
+ "lodash.escape": "^3.0.0"
+ }
+ },
+ "node_modules/gulp-util/node_modules/object-assign": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-3.0.0.tgz",
+ "integrity": "sha512-jHP15vXVGeVh1HuaA2wY6lxk+whK/x4KBG88VXeRma7CCun7iGD5qPc4eYykQ9sdQvg8jkwFKsSxHln2ybW3xQ==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-util/node_modules/replace-ext": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-0.0.1.tgz",
+ "integrity": "sha512-AFBWBy9EVRTa/LhEcG8QDP3FvpwZqmvN2QFDuJswFeaVhWnZMp8q3E6Zd90SR04PlIwfGdyVjNyLPyen/ek5CQ==",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/gulp-util/node_modules/strip-ansi": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
+ "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==",
+ "dependencies": {
+ "ansi-regex": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-util/node_modules/supports-color": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz",
+ "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==",
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/gulp-util/node_modules/through2": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz",
+ "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==",
+ "dependencies": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "node_modules/gulp-util/node_modules/vinyl": {
+ "version": "0.5.3",
+ "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.5.3.tgz",
+ "integrity": "sha512-P5zdf3WB9uzr7IFoVQ2wZTmUwHL8cMZWJGzLBNCHNZ3NB6HTMsYABtt7z8tAGIINLXyAob9B9a1yzVGMFOYKEA==",
+ "dependencies": {
+ "clone": "^1.0.0",
+ "clone-stats": "^0.0.1",
+ "replace-ext": "0.0.1"
+ },
+ "engines": {
+ "node": ">= 0.9"
+ }
+ },
+ "node_modules/gulplog": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/gulplog/-/gulplog-1.0.0.tgz",
+ "integrity": "sha512-hm6N8nrm3Y08jXie48jsC55eCZz9mnb4OirAStEk2deqeyhXU3C1otDVh+ccttMuc1sBi6RX6ZJ720hs9RCvgw==",
+ "dependencies": {
+ "glogg": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/har-schema": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/har-schema/-/har-schema-2.0.0.tgz",
+ "integrity": "sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q==",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/har-validator": {
+ "version": "5.1.5",
+ "resolved": "https://registry.npmmirror.com/har-validator/-/har-validator-5.1.5.tgz",
+ "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==",
+ "deprecated": "this library is no longer supported",
+ "dependencies": {
+ "ajv": "^6.12.3",
+ "har-schema": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/has-ansi": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz",
+ "integrity": "sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==",
+ "dependencies": {
+ "ansi-regex": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/has-ansi/node_modules/ansi-regex": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
+ "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/has-binary2": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmmirror.com/has-binary2/-/has-binary2-1.0.3.tgz",
+ "integrity": "sha512-G1LWKhDSvhGeAQ8mPVQlqNcOB2sJdwATtZKl2pDKKHfpf/rYj24lkinxf69blJbnsvtqqNU+L3SL50vzZhXOnw==",
+ "dependencies": {
+ "isarray": "2.0.1"
+ }
+ },
+ "node_modules/has-cors": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/has-cors/-/has-cors-1.1.0.tgz",
+ "integrity": "sha512-g5VNKdkFuUuVCP9gYfDJHjK2nqdQJ7aDLTnycnc2+RvsOQbuLdF5pm7vuE5J76SEBIQjs4kQY/BWq74JUmjbXA=="
+ },
+ "node_modules/has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/has-gulplog": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmmirror.com/has-gulplog/-/has-gulplog-0.1.0.tgz",
+ "integrity": "sha512-+F4GzLjwHNNDEAJW2DC1xXfEoPkRDmUdJ7CBYw4MpqtDwOnqdImJl7GWlpqx+Wko6//J8uKTnIe4wZSv7yCqmw==",
+ "dependencies": {
+ "sparkles": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/has-property-descriptors": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
+ "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",
+ "dependencies": {
+ "es-define-property": "^1.0.0"
+ }
+ },
+ "node_modules/has-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/has-proto/-/has-proto-1.0.1.tgz",
+ "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/has-symbols": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.0.3.tgz",
+ "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/has-tostringtag": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
+ "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
+ "dependencies": {
+ "has-symbols": "^1.0.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/has-value": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/has-value/-/has-value-1.0.0.tgz",
+ "integrity": "sha512-IBXk4GTsLYdQ7Rvt+GRBrFSVEkmuOUy4re0Xjd9kJSUQpnTrWR4/y9RpfexN9vkAPMFuQoeWKwqzPozRTlasGw==",
+ "dependencies": {
+ "get-value": "^2.0.6",
+ "has-values": "^1.0.0",
+ "isobject": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/has-values": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/has-values/-/has-values-1.0.0.tgz",
+ "integrity": "sha512-ODYZC64uqzmtfGMEAX/FvZiRyWLpAC3vYnNunURUnkGVTS+mI0smVsWaPydRBsE3g+ok7h960jChO8mFcWlHaQ==",
+ "dependencies": {
+ "is-number": "^3.0.0",
+ "kind-of": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/has-values/node_modules/is-number": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/is-number/-/is-number-3.0.0.tgz",
+ "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==",
+ "dependencies": {
+ "kind-of": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/has-values/node_modules/is-number/node_modules/kind-of": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz",
+ "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==",
+ "dependencies": {
+ "is-buffer": "^1.1.5"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/has-values/node_modules/kind-of": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-4.0.0.tgz",
+ "integrity": "sha512-24XsCxmEbRwEDbz/qz3stgin8TTzZ1ESR56OMCN0ujYg+vRutNSiOj9bHH9u85DKgXguraugV5sFuvbD4FW/hw==",
+ "dependencies": {
+ "is-buffer": "^1.1.5"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/hasown": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/hasown/-/hasown-2.0.0.tgz",
+ "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==",
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/he": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmmirror.com/he/-/he-1.2.0.tgz",
+ "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==",
+ "bin": {
+ "he": "bin/he"
+ }
+ },
+ "node_modules/homedir-polyfill": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmmirror.com/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz",
+ "integrity": "sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==",
+ "dependencies": {
+ "parse-passwd": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/hosted-git-info": {
+ "version": "2.8.9",
+ "resolved": "https://registry.npmmirror.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz",
+ "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw=="
+ },
+ "node_modules/html-minifier": {
+ "version": "3.5.21",
+ "resolved": "https://registry.npmmirror.com/html-minifier/-/html-minifier-3.5.21.tgz",
+ "integrity": "sha512-LKUKwuJDhxNa3uf/LPR/KVjm/l3rBqtYeCOAekvG8F1vItxMUpueGd94i/asDDr8/1u7InxzFA5EeGjhhG5mMA==",
+ "dependencies": {
+ "camel-case": "3.0.x",
+ "clean-css": "4.2.x",
+ "commander": "2.17.x",
+ "he": "1.2.x",
+ "param-case": "2.1.x",
+ "relateurl": "0.2.x",
+ "uglify-js": "3.4.x"
+ },
+ "bin": {
+ "html-minifier": "cli.js"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/html-minifier/node_modules/commander": {
+ "version": "2.17.1",
+ "resolved": "https://registry.npmmirror.com/commander/-/commander-2.17.1.tgz",
+ "integrity": "sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg=="
+ },
+ "node_modules/html-minifier/node_modules/uglify-js": {
+ "version": "3.4.10",
+ "resolved": "https://registry.npmmirror.com/uglify-js/-/uglify-js-3.4.10.tgz",
+ "integrity": "sha512-Y2VsbPVs0FIshJztycsO2SfPk7/KAF/T72qzv9u5EpQ4kB2hQoHlhNQTsNyy6ul7lQtqJN/AoWeS23OzEiEFxw==",
+ "dependencies": {
+ "commander": "~2.19.0",
+ "source-map": "~0.6.1"
+ },
+ "bin": {
+ "uglifyjs": "bin/uglifyjs"
+ },
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/html-minifier/node_modules/uglify-js/node_modules/commander": {
+ "version": "2.19.0",
+ "resolved": "https://registry.npmmirror.com/commander/-/commander-2.19.0.tgz",
+ "integrity": "sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg=="
+ },
+ "node_modules/htmlparser2": {
+ "version": "3.8.3",
+ "resolved": "https://registry.npmmirror.com/htmlparser2/-/htmlparser2-3.8.3.tgz",
+ "integrity": "sha512-hBxEg3CYXe+rPIua8ETe7tmG3XDn9B0edOE/e9wH2nLczxzgdu0m0aNHY+5wFZiviLWLdANPJTssa92dMcXQ5Q==",
+ "peer": true,
+ "dependencies": {
+ "domelementtype": "1",
+ "domhandler": "2.3",
+ "domutils": "1.5",
+ "entities": "1.0",
+ "readable-stream": "1.1"
+ }
+ },
+ "node_modules/htmlparser2/node_modules/isarray": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmmirror.com/isarray/-/isarray-0.0.1.tgz",
+ "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==",
+ "peer": true
+ },
+ "node_modules/htmlparser2/node_modules/readable-stream": {
+ "version": "1.1.14",
+ "resolved": "https://registry.npmmirror.com/readable-stream/-/readable-stream-1.1.14.tgz",
+ "integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==",
+ "peer": true,
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.1",
+ "isarray": "0.0.1",
+ "string_decoder": "~0.10.x"
+ }
+ },
+ "node_modules/htmlparser2/node_modules/string_decoder": {
+ "version": "0.10.31",
+ "resolved": "https://registry.npmmirror.com/string_decoder/-/string_decoder-0.10.31.tgz",
+ "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==",
+ "peer": true
+ },
+ "node_modules/http-errors": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/http-errors/-/http-errors-2.0.0.tgz",
+ "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
+ "dependencies": {
+ "depd": "2.0.0",
+ "inherits": "2.0.4",
+ "setprototypeof": "1.2.0",
+ "statuses": "2.0.1",
+ "toidentifier": "1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/http-signature": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmmirror.com/http-signature/-/http-signature-1.2.0.tgz",
+ "integrity": "sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ==",
+ "dependencies": {
+ "assert-plus": "^1.0.0",
+ "jsprim": "^1.2.2",
+ "sshpk": "^1.7.0"
+ },
+ "engines": {
+ "node": ">=0.8",
+ "npm": ">=1.3.7"
+ }
+ },
+ "node_modules/httpntlm": {
+ "version": "1.6.1",
+ "resolved": "https://registry.npmjs.org/httpntlm/-/httpntlm-1.6.1.tgz",
+ "integrity": "sha512-Tcz3Ct9efvNqw3QdTl3h6IgRRlIQxwKkJELN/aAIGnzi2xvb3pDHdnMs8BrxWLV6OoT4DlVyhzSVhFt/tk0lIw==",
+ "dependencies": {
+ "httpreq": ">=0.4.22",
+ "underscore": "~1.7.0"
+ },
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/httpreq": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/httpreq/-/httpreq-1.1.1.tgz",
+ "integrity": "sha512-uhSZLPPD2VXXOSN8Cni3kIsoFHaU2pT/nySEU/fHr/ePbqHYr0jeiQRmUKLEirC09SFPsdMoA7LU7UXMd/w0Kw==",
+ "engines": {
+ "node": ">= 6.15.1"
+ }
+ },
+ "node_modules/humanize-ms": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmmirror.com/humanize-ms/-/humanize-ms-1.2.1.tgz",
+ "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==",
+ "dependencies": {
+ "ms": "^2.0.0"
+ }
+ },
+ "node_modules/iconv-lite": {
+ "version": "0.4.24",
+ "resolved": "https://registry.npmmirror.com/iconv-lite/-/iconv-lite-0.4.24.tgz",
+ "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/ignore": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmmirror.com/ignore/-/ignore-5.3.0.tgz",
+ "integrity": "sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/indexof": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmmirror.com/indexof/-/indexof-0.0.1.tgz",
+ "integrity": "sha512-i0G7hLJ1z0DE8dsqJa2rycj9dBmNKgXBvotXtZYXakU9oivfB9Uj2ZBC27qqef2U58/ZLwalxa1X/RDCdkHtVg=="
+ },
+ "node_modules/inflection": {
+ "version": "1.13.4",
+ "resolved": "https://registry.npmmirror.com/inflection/-/inflection-1.13.4.tgz",
+ "integrity": "sha512-6I/HUDeYFfuNCVS3td055BaXBwKYuzw7K3ExVMStBowKo9oOAMJIXIHvdyR3iboTCp1b+1i5DSkIZTcwIktuDw==",
+ "engines": [
+ "node >= 0.4.0"
+ ]
+ },
+ "node_modules/inflight": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmmirror.com/inflight/-/inflight-1.0.6.tgz",
+ "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
+ "dependencies": {
+ "once": "^1.3.0",
+ "wrappy": "1"
+ }
+ },
+ "node_modules/inherits": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmmirror.com/inherits/-/inherits-2.0.4.tgz",
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
+ },
+ "node_modules/ini": {
+ "version": "1.3.8",
+ "resolved": "https://registry.npmmirror.com/ini/-/ini-1.3.8.tgz",
+ "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew=="
+ },
+ "node_modules/interpret": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmmirror.com/interpret/-/interpret-1.4.0.tgz",
+ "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/inversify": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmmirror.com/inversify/-/inversify-6.0.1.tgz",
+ "integrity": "sha512-B3ex30927698TJENHR++8FfEaJGqoWOgI6ZY5Ht/nLUsFCwHn6akbwtnUAPCgUepAnTpe2qHxhDNjoKLyz6rgQ=="
+ },
+ "node_modules/invert-kv": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/invert-kv/-/invert-kv-1.0.0.tgz",
+ "integrity": "sha512-xgs2NH9AE66ucSq4cNG1nhSFghr5l6tdL15Pk+jl46bmmBapgoaY/AacXyaDznAqmGL99TiLSQgO/XazFSKYeQ==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/ioredis": {
+ "version": "5.4.2",
+ "resolved": "https://registry.npmmirror.com/ioredis/-/ioredis-5.4.2.tgz",
+ "integrity": "sha512-0SZXGNGZ+WzISQ67QDyZ2x0+wVxjjUndtD8oSeik/4ajifeiRufed8fCb8QW8VMyi4MXcS+UO1k/0NGhvq1PAg==",
+ "dependencies": {
+ "@ioredis/commands": "^1.1.1",
+ "cluster-key-slot": "^1.1.0",
+ "debug": "^4.3.4",
+ "denque": "^2.1.0",
+ "lodash.defaults": "^4.2.0",
+ "lodash.isarguments": "^3.1.0",
+ "redis-errors": "^1.2.0",
+ "redis-parser": "^3.0.0",
+ "standard-as-callback": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=12.22.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/ioredis"
+ }
+ },
+ "node_modules/ioredis/node_modules/debug": {
+ "version": "4.4.0",
+ "resolved": "https://registry.npmmirror.com/debug/-/debug-4.4.0.tgz",
+ "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/ioredis/node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
+ },
+ "node_modules/ipaddr.js": {
+ "version": "1.9.1",
+ "resolved": "https://registry.npmmirror.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
+ "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/is-absolute": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/is-absolute/-/is-absolute-1.0.0.tgz",
+ "integrity": "sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA==",
+ "dependencies": {
+ "is-relative": "^1.0.0",
+ "is-windows": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-accessor-descriptor": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.1.tgz",
+ "integrity": "sha512-YBUanLI8Yoihw923YeFUS5fs0fF2f5TSFTNiYAAzhhDscDa3lEqYuz1pDOEP5KvX94I9ey3vsqjJcLVFVU+3QA==",
+ "dependencies": {
+ "hasown": "^2.0.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/is-arguments": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmmirror.com/is-arguments/-/is-arguments-1.1.1.tgz",
+ "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==",
+ "dependencies": {
+ "call-bind": "^1.0.2",
+ "has-tostringtag": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/is-arrayish": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmmirror.com/is-arrayish/-/is-arrayish-0.2.1.tgz",
+ "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg=="
+ },
+ "node_modules/is-buffer": {
+ "version": "1.1.6",
+ "resolved": "https://registry.npmmirror.com/is-buffer/-/is-buffer-1.1.6.tgz",
+ "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w=="
+ },
+ "node_modules/is-callable": {
+ "version": "1.2.7",
+ "resolved": "https://registry.npmmirror.com/is-callable/-/is-callable-1.2.7.tgz",
+ "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/is-class-hotfix": {
+ "version": "0.0.6",
+ "resolved": "https://registry.npmmirror.com/is-class-hotfix/-/is-class-hotfix-0.0.6.tgz",
+ "integrity": "sha512-0n+pzCC6ICtVr/WXnN2f03TK/3BfXY7me4cjCAqT8TYXEl0+JBRoqBo94JJHXcyDSLUeWbNX8Fvy5g5RJdAstQ=="
+ },
+ "node_modules/is-core-module": {
+ "version": "2.13.1",
+ "resolved": "https://registry.npmmirror.com/is-core-module/-/is-core-module-2.13.1.tgz",
+ "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==",
+ "dependencies": {
+ "hasown": "^2.0.0"
+ }
+ },
+ "node_modules/is-data-descriptor": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/is-data-descriptor/-/is-data-descriptor-1.0.1.tgz",
+ "integrity": "sha512-bc4NlCDiCr28U4aEsQ3Qs2491gVq4V8G7MQyws968ImqjKuYtTJXrl7Vq7jsN7Ly/C3xj5KWFrY7sHNeDkAzXw==",
+ "dependencies": {
+ "hasown": "^2.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/is-descriptor": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmmirror.com/is-descriptor/-/is-descriptor-1.0.3.tgz",
+ "integrity": "sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw==",
+ "dependencies": {
+ "is-accessor-descriptor": "^1.0.1",
+ "is-data-descriptor": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/is-extendable": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-1.0.1.tgz",
+ "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==",
+ "dependencies": {
+ "is-plain-object": "^2.0.4"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-extendable/node_modules/is-plain-object": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-2.0.4.tgz",
+ "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==",
+ "dependencies": {
+ "isobject": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-extglob": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmmirror.com/is-extglob/-/is-extglob-2.1.1.tgz",
+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-generator-function": {
+ "version": "1.0.10",
+ "resolved": "https://registry.npmmirror.com/is-generator-function/-/is-generator-function-1.0.10.tgz",
+ "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==",
+ "dependencies": {
+ "has-tostringtag": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/is-glob": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmmirror.com/is-glob/-/is-glob-4.0.3.tgz",
+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
+ "dependencies": {
+ "is-extglob": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-nan": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmmirror.com/is-nan/-/is-nan-1.3.2.tgz",
+ "integrity": "sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w==",
+ "dependencies": {
+ "call-bind": "^1.0.0",
+ "define-properties": "^1.1.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/is-negated-glob": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/is-negated-glob/-/is-negated-glob-1.0.0.tgz",
+ "integrity": "sha512-czXVVn/QEmgvej1f50BZ648vUI+em0xqMq2Sn+QncCLN4zj1UAxlT+kw/6ggQTOaZPd1HqKQGEqbpQVtJucWug==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-number": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmmirror.com/is-number/-/is-number-7.0.0.tgz",
+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
+ "engines": {
+ "node": ">=0.12.0"
+ }
+ },
+ "node_modules/is-obj": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz",
+ "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-path-cwd": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/is-path-cwd/-/is-path-cwd-1.0.0.tgz",
+ "integrity": "sha512-cnS56eR9SPAscL77ik76ATVqoPARTqPIVkMDVxRaWH06zT+6+CzIroYRJ0VVvm0Z1zfAvxvz9i/D3Ppjaqt5Nw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-path-in-cwd": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/is-path-in-cwd/-/is-path-in-cwd-1.0.1.tgz",
+ "integrity": "sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ==",
+ "dependencies": {
+ "is-path-inside": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-path-inside": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/is-path-inside/-/is-path-inside-1.0.1.tgz",
+ "integrity": "sha512-qhsCR/Esx4U4hg/9I19OVUAJkGWtjRYHMRgUMZE2TDdj+Ag+kttZanLupfddNyglzz50cUlmWzUaI37GDfNx/g==",
+ "dependencies": {
+ "path-is-inside": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-plain-object": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-3.0.1.tgz",
+ "integrity": "sha512-Xnpx182SBMrr/aBik8y+GuR4U1L9FqMSojwDQwPMmxyC6bvEqly9UBCxhauBF5vNh2gwWJNX6oDV7O+OM4z34g==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-property": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/is-property/-/is-property-1.0.2.tgz",
+ "integrity": "sha512-Ks/IoX00TtClbGQr4TWXemAnktAQvYB7HzcCxDGqEZU6oCmb2INHuOoKxbtR+HFkmYWBKv/dOZtGRiAjDhj92g=="
+ },
+ "node_modules/is-relative": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/is-relative/-/is-relative-1.0.0.tgz",
+ "integrity": "sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA==",
+ "dependencies": {
+ "is-unc-path": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-type-of": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmmirror.com/is-type-of/-/is-type-of-1.4.0.tgz",
+ "integrity": "sha512-EddYllaovi5ysMLMEN7yzHEKh8A850cZ7pykrY1aNRQGn/CDjRDE9qEWbIdt7xGEVJmjBXzU/fNnC4ABTm8tEQ==",
+ "dependencies": {
+ "core-util-is": "^1.0.2",
+ "is-class-hotfix": "~0.0.6",
+ "isstream": "~0.1.2"
+ }
+ },
+ "node_modules/is-typed-array": {
+ "version": "1.1.13",
+ "resolved": "https://registry.npmmirror.com/is-typed-array/-/is-typed-array-1.1.13.tgz",
+ "integrity": "sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==",
+ "dependencies": {
+ "which-typed-array": "^1.1.14"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/is-typedarray": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/is-typedarray/-/is-typedarray-1.0.0.tgz",
+ "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA=="
+ },
+ "node_modules/is-unc-path": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/is-unc-path/-/is-unc-path-1.0.0.tgz",
+ "integrity": "sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ==",
+ "dependencies": {
+ "unc-path-regex": "^0.1.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-utf8": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmmirror.com/is-utf8/-/is-utf8-0.2.1.tgz",
+ "integrity": "sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q=="
+ },
+ "node_modules/is-valid-glob": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/is-valid-glob/-/is-valid-glob-1.0.0.tgz",
+ "integrity": "sha512-AhiROmoEFDSsjx8hW+5sGwgKVIORcXnrlAx/R0ZSeaPw70Vw0CqkGBBhHGL58Uox2eXnU1AnvXJl1XlyedO5bA==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-windows": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/is-windows/-/is-windows-1.0.2.tgz",
+ "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/isarray": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/isarray/-/isarray-2.0.1.tgz",
+ "integrity": "sha512-c2cu3UxbI+b6kR3fy0nRnAhodsvR9dx7U5+znCOzdj6IfP3upFURTr0Xl5BlQZNKZjEtxrmVyfSdeE3O57smoQ=="
+ },
+ "node_modules/isbinaryfile": {
+ "version": "5.0.2",
+ "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-5.0.2.tgz",
+ "integrity": "sha512-GvcjojwonMjWbTkfMpnVHVqXW/wKMYDfEpY94/8zy8HFMOqb/VL6oeONq9v87q4ttVlaTLnGXnJD4B5B1OTGIg==",
+ "engines": {
+ "node": ">= 18.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/gjtorikian/"
+ }
+ },
+ "node_modules/isexe": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/isexe/-/isexe-2.0.0.tgz",
+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="
+ },
+ "node_modules/isobject": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmmirror.com/isobject/-/isobject-3.0.1.tgz",
+ "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/isstream": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmmirror.com/isstream/-/isstream-0.1.2.tgz",
+ "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g=="
+ },
+ "node_modules/istextorbinary": {
+ "version": "3.3.0",
+ "resolved": "https://registry.npmmirror.com/istextorbinary/-/istextorbinary-3.3.0.tgz",
+ "integrity": "sha512-Tvq1W6NAcZeJ8op+Hq7tdZ434rqnMx4CCZ7H0ff83uEloDvVbqAwaMTZcafKGJT0VHkYzuXUiCY4hlXQg6WfoQ==",
+ "dependencies": {
+ "binaryextensions": "^2.2.0",
+ "textextensions": "^3.2.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/jackspeak": {
+ "version": "2.3.6",
+ "resolved": "https://registry.npmmirror.com/jackspeak/-/jackspeak-2.3.6.tgz",
+ "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==",
+ "dependencies": {
+ "@isaacs/cliui": "^8.0.2"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "optionalDependencies": {
+ "@pkgjs/parseargs": "^0.11.0"
+ }
+ },
+ "node_modules/javascript-obfuscator": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmmirror.com/javascript-obfuscator/-/javascript-obfuscator-4.1.0.tgz",
+ "integrity": "sha512-ckC0VFKQ0/sFtLH9apW/ZLfsP8LuZqZhVEM4VTJ5KLzyLaodW6C1lTU8808eboDmddKyvd2uyRx5bzc0Me0GYg==",
+ "hasInstallScript": true,
+ "dependencies": {
+ "@javascript-obfuscator/escodegen": "2.3.0",
+ "@javascript-obfuscator/estraverse": "5.4.0",
+ "acorn": "8.8.2",
+ "assert": "2.0.0",
+ "chalk": "4.1.2",
+ "chance": "1.1.9",
+ "class-validator": "0.14.0",
+ "commander": "10.0.0",
+ "eslint-scope": "7.1.1",
+ "eslint-visitor-keys": "3.3.0",
+ "fast-deep-equal": "3.1.3",
+ "inversify": "6.0.1",
+ "js-string-escape": "1.0.1",
+ "md5": "2.3.0",
+ "mkdirp": "2.1.3",
+ "multimatch": "5.0.0",
+ "opencollective-postinstall": "2.0.3",
+ "process": "0.11.10",
+ "reflect-metadata": "0.1.13",
+ "source-map-support": "0.5.21",
+ "string-template": "1.0.0",
+ "stringz": "2.1.0",
+ "tslib": "2.5.0"
+ },
+ "bin": {
+ "javascript-obfuscator": "bin/javascript-obfuscator"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.0.0 || ^16.0.0 || ^17.0.0 || >=18.0.0"
+ }
+ },
+ "node_modules/javascript-obfuscator/node_modules/acorn": {
+ "version": "8.8.2",
+ "resolved": "https://registry.npmmirror.com/acorn/-/acorn-8.8.2.tgz",
+ "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==",
+ "bin": {
+ "acorn": "bin/acorn"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/javascript-obfuscator/node_modules/commander": {
+ "version": "10.0.0",
+ "resolved": "https://registry.npmmirror.com/commander/-/commander-10.0.0.tgz",
+ "integrity": "sha512-zS5PnTI22FIRM6ylNW8G4Ap0IEOyk62fhLSD0+uHRT9McRCLGpkVNvao4bjimpK/GShynyQkFFxHhwMcETmduA==",
+ "engines": {
+ "node": ">=14"
+ }
+ },
+ "node_modules/javascript-obfuscator/node_modules/mkdirp": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmmirror.com/mkdirp/-/mkdirp-2.1.3.tgz",
+ "integrity": "sha512-sjAkg21peAG9HS+Dkx7hlG9Ztx7HLeKnvB3NQRcu/mltCVmvkF0pisbiTSfDVYTT86XEfZrTUosLdZLStquZUw==",
+ "bin": {
+ "mkdirp": "dist/cjs/src/bin.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/javascript-obfuscator/node_modules/tslib": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.5.0.tgz",
+ "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg=="
+ },
+ "node_modules/js-base64": {
+ "version": "2.6.4",
+ "resolved": "https://registry.npmmirror.com/js-base64/-/js-base64-2.6.4.tgz",
+ "integrity": "sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ=="
+ },
+ "node_modules/js-string-escape": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/js-string-escape/-/js-string-escape-1.0.1.tgz",
+ "integrity": "sha512-Smw4xcfIQ5LVjAOuJCvN/zIodzA/BBSsluuoSykP+lUvScIi4U6RJLfwHet5cxFnCswUjISV8oAXaqaJDY3chg==",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmmirror.com/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="
+ },
+ "node_modules/jsbn": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmmirror.com/jsbn/-/jsbn-0.1.1.tgz",
+ "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg=="
+ },
+ "node_modules/jsesc": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmmirror.com/jsesc/-/jsesc-3.1.0.tgz",
+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
+ "bin": {
+ "jsesc": "bin/jsesc"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/jshint": {
+ "version": "2.13.6",
+ "resolved": "https://registry.npmmirror.com/jshint/-/jshint-2.13.6.tgz",
+ "integrity": "sha512-IVdB4G0NTTeQZrBoM8C5JFVLjV2KtZ9APgybDA1MK73xb09qFs0jCXyQLnCOp1cSZZZbvhq/6mfXHUTaDkffuQ==",
+ "peer": true,
+ "dependencies": {
+ "cli": "~1.0.0",
+ "console-browserify": "1.1.x",
+ "exit": "0.1.x",
+ "htmlparser2": "3.8.x",
+ "lodash": "~4.17.21",
+ "minimatch": "~3.0.2",
+ "strip-json-comments": "1.0.x"
+ },
+ "bin": {
+ "jshint": "bin/jshint"
+ }
+ },
+ "node_modules/jshint/node_modules/brace-expansion": {
+ "version": "1.1.11",
+ "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz",
+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
+ "peer": true,
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/jshint/node_modules/minimatch": {
+ "version": "3.0.8",
+ "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.0.8.tgz",
+ "integrity": "sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==",
+ "peer": true,
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/jshint/node_modules/strip-json-comments": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmmirror.com/strip-json-comments/-/strip-json-comments-1.0.4.tgz",
+ "integrity": "sha512-AOPG8EBc5wAikaG1/7uFCNFJwnKOuQwFTpYBdTW6OvWHeZBQBrAA/amefHGrEiOnCPcLFZK6FUPtWVKpQVIRgg==",
+ "peer": true,
+ "bin": {
+ "strip-json-comments": "cli.js"
+ },
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/json-schema": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmmirror.com/json-schema/-/json-schema-0.4.0.tgz",
+ "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA=="
+ },
+ "node_modules/json-schema-traverse": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="
+ },
+ "node_modules/json-schema-typed": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-7.0.3.tgz",
+ "integrity": "sha512-7DE8mpG+/fVw+dTpjbxnx47TaMnDfOI1jwft9g1VybltZCduyRQPJPvc+zzKY9WPHxhPWczyFuYa6I8Mw4iU5A=="
+ },
+ "node_modules/json-stable-stringify-without-jsonify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
+ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw=="
+ },
+ "node_modules/json-stringify-safe": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmmirror.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
+ "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA=="
+ },
+ "node_modules/json5": {
+ "version": "2.2.3",
+ "resolved": "https://registry.npmmirror.com/json5/-/json5-2.2.3.tgz",
+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
+ "peer": true,
+ "bin": {
+ "json5": "lib/cli.js"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/jsonfile": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmmirror.com/jsonfile/-/jsonfile-4.0.0.tgz",
+ "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==",
+ "optionalDependencies": {
+ "graceful-fs": "^4.1.6"
+ }
+ },
+ "node_modules/jsprim": {
+ "version": "1.4.2",
+ "resolved": "https://registry.npmmirror.com/jsprim/-/jsprim-1.4.2.tgz",
+ "integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==",
+ "dependencies": {
+ "assert-plus": "1.0.0",
+ "extsprintf": "1.3.0",
+ "json-schema": "0.4.0",
+ "verror": "1.10.0"
+ },
+ "engines": {
+ "node": ">=0.6.0"
+ }
+ },
+ "node_modules/jstoxml": {
+ "version": "2.2.9",
+ "resolved": "https://registry.npmmirror.com/jstoxml/-/jstoxml-2.2.9.tgz",
+ "integrity": "sha512-OYWlK0j+roh+eyaMROlNbS5cd5R25Y+IUpdl7cNdB8HNrkgwQzIS7L9MegxOiWNBj9dQhA/yAxiMwCC5mwNoBw=="
+ },
+ "node_modules/just-debounce": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/just-debounce/-/just-debounce-1.1.0.tgz",
+ "integrity": "sha512-qpcRocdkUmf+UTNBYx5w6dexX5J31AKK1OmPwH630a83DdVVUIngk55RSAiIGpQyoH0dlr872VHfPjnQnK1qDQ=="
+ },
+ "node_modules/kind-of": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-5.1.0.tgz",
+ "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/last-run": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmmirror.com/last-run/-/last-run-1.1.1.tgz",
+ "integrity": "sha512-U/VxvpX4N/rFvPzr3qG5EtLKEnNI0emvIQB3/ecEwv+8GHaUKbIB8vxv1Oai5FAF0d0r7LXHhLLe5K/yChm5GQ==",
+ "dependencies": {
+ "default-resolution": "^2.0.0",
+ "es6-weak-map": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/lazystream": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/lazystream/-/lazystream-1.0.1.tgz",
+ "integrity": "sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw==",
+ "dependencies": {
+ "readable-stream": "^2.0.5"
+ },
+ "engines": {
+ "node": ">= 0.6.3"
+ }
+ },
+ "node_modules/lcid": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/lcid/-/lcid-1.0.0.tgz",
+ "integrity": "sha512-YiGkH6EnGrDGqLMITnGjXtGmNtjoXw9SVUzcaos8RBi7Ps0VBylkq+vOcY9QE5poLasPCR849ucFUkl0UzUyOw==",
+ "dependencies": {
+ "invert-kv": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/lead": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/lead/-/lead-1.0.0.tgz",
+ "integrity": "sha512-IpSVCk9AYvLHo5ctcIXxOBpMWUe+4TKN3VPWAKUbJikkmsGp0VrSM8IttVc32D6J4WUsiPE6aEFRNmIoF/gdow==",
+ "dependencies": {
+ "flush-write-stream": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/levn": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmmirror.com/levn/-/levn-0.3.0.tgz",
+ "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==",
+ "dependencies": {
+ "prelude-ls": "~1.1.2",
+ "type-check": "~0.3.2"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/libphonenumber-js": {
+ "version": "1.11.1",
+ "resolved": "https://registry.npmmirror.com/libphonenumber-js/-/libphonenumber-js-1.11.1.tgz",
+ "integrity": "sha512-Wze1LPwcnzvcKGcRHFGFECTaLzxOtujwpf924difr5zniyYv1C2PiW0419qDR7m8lKDxsImu5mwxFuXhXpjmvw=="
+ },
+ "node_modules/liftoff": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmmirror.com/liftoff/-/liftoff-3.1.0.tgz",
+ "integrity": "sha512-DlIPlJUkCV0Ips2zf2pJP0unEoT1kwYhiiPUGF3s/jtxTCjziNLoiVVh+jqWOWeFi6mmwQ5fNxvAUyPad4Dfog==",
+ "dependencies": {
+ "extend": "^3.0.0",
+ "findup-sync": "^3.0.0",
+ "fined": "^1.0.1",
+ "flagged-respawn": "^1.0.0",
+ "is-plain-object": "^2.0.4",
+ "object.map": "^1.0.0",
+ "rechoir": "^0.6.2",
+ "resolve": "^1.1.7"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/liftoff/node_modules/is-plain-object": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-2.0.4.tgz",
+ "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==",
+ "dependencies": {
+ "isobject": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/load-json-file": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/load-json-file/-/load-json-file-1.1.0.tgz",
+ "integrity": "sha512-cy7ZdNRXdablkXYNI049pthVeXFurRyb9+hA/dZzerZ0pGTx42z+y+ssxBaVV2l70t1muq5IdKhn4UtcoGUY9A==",
+ "dependencies": {
+ "graceful-fs": "^4.1.2",
+ "parse-json": "^2.2.0",
+ "pify": "^2.0.0",
+ "pinkie-promise": "^2.0.0",
+ "strip-bom": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/lodash": {
+ "version": "4.17.21",
+ "resolved": "https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz",
+ "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
+ },
+ "node_modules/lodash._basecopy": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz",
+ "integrity": "sha512-rFR6Vpm4HeCK1WPGvjZSJ+7yik8d8PVUdCJx5rT2pogG4Ve/2ZS7kfmO5l5T2o5V2mqlNIfSF5MZlr1+xOoYQQ=="
+ },
+ "node_modules/lodash._basetostring": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/lodash._basetostring/-/lodash._basetostring-3.0.1.tgz",
+ "integrity": "sha512-mTzAr1aNAv/i7W43vOR/uD/aJ4ngbtsRaCubp2BfZhlGU/eORUjg/7F6X0orNMdv33JOrdgGybtvMN/po3EWrA=="
+ },
+ "node_modules/lodash._basevalues": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/lodash._basevalues/-/lodash._basevalues-3.0.0.tgz",
+ "integrity": "sha512-H94wl5P13uEqlCg7OcNNhMQ8KvWSIyqXzOPusRgHC9DK3o54P6P3xtbXlVbRABG4q5gSmp7EDdJ0MSuW9HX6Mg=="
+ },
+ "node_modules/lodash._getnative": {
+ "version": "3.9.1",
+ "resolved": "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz",
+ "integrity": "sha512-RrL9VxMEPyDMHOd9uFbvMe8X55X16/cGM5IgOKgRElQZutpX89iS6vwl64duTV1/16w5JY7tuFNXqoekmh1EmA=="
+ },
+ "node_modules/lodash._isiterateecall": {
+ "version": "3.0.9",
+ "resolved": "https://registry.npmjs.org/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz",
+ "integrity": "sha512-De+ZbrMu6eThFti/CSzhRvTKMgQToLxbij58LMfM8JnYDNSOjkjTCIaa8ixglOeGh2nyPlakbt5bJWJ7gvpYlQ=="
+ },
+ "node_modules/lodash._reescape": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/lodash._reescape/-/lodash._reescape-3.0.0.tgz",
+ "integrity": "sha512-Sjlavm5y+FUVIF3vF3B75GyXrzsfYV8Dlv3L4mEpuB9leg8N6yf/7rU06iLPx9fY0Mv3khVp9p7Dx0mGV6V5OQ=="
+ },
+ "node_modules/lodash._reevaluate": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/lodash._reevaluate/-/lodash._reevaluate-3.0.0.tgz",
+ "integrity": "sha512-OrPwdDc65iJiBeUe5n/LIjd7Viy99bKwDdk7Z5ljfZg0uFRFlfQaCy9tZ4YMAag9WAZmlVpe1iZrkIMMSMHD3w=="
+ },
+ "node_modules/lodash._reinterpolate": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz",
+ "integrity": "sha512-xYHt68QRoYGjeeM/XOE1uJtvXQAgvszfBhjV4yvsQH0u2i9I6cI6c6/eG4Hh3UAOVn0y/xAXwmTzEay49Q//HA=="
+ },
+ "node_modules/lodash._root": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/lodash._root/-/lodash._root-3.0.1.tgz",
+ "integrity": "sha512-O0pWuFSK6x4EXhM1dhZ8gchNtG7JMqBtrHdoUFUWXD7dJnNSUze1GuyQr5sOs0aCvgGeI3o/OJW8f4ca7FDxmQ=="
+ },
+ "node_modules/lodash.assign": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmmirror.com/lodash.assign/-/lodash.assign-4.2.0.tgz",
+ "integrity": "sha512-hFuH8TY+Yji7Eja3mGiuAxBqLagejScbG8GbG0j6o9vzn0YL14My+ktnqtZgFTosKymC9/44wP6s7xyuLfnClw=="
+ },
+ "node_modules/lodash.camelcase": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmmirror.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz",
+ "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA=="
+ },
+ "node_modules/lodash.clonedeep": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmmirror.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz",
+ "integrity": "sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ=="
+ },
+ "node_modules/lodash.debounce": {
+ "version": "4.0.8",
+ "resolved": "https://registry.npmmirror.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz",
+ "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow=="
+ },
+ "node_modules/lodash.defaults": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmmirror.com/lodash.defaults/-/lodash.defaults-4.2.0.tgz",
+ "integrity": "sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ=="
+ },
+ "node_modules/lodash.escape": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/lodash.escape/-/lodash.escape-3.2.0.tgz",
+ "integrity": "sha512-n1PZMXgaaDWZDSvuNZ/8XOcYO2hOKDqZel5adtR30VKQAtoWs/5AOeFA0vPV8moiPzlqe7F4cP2tzpFewQyelQ==",
+ "dependencies": {
+ "lodash._root": "^3.0.0"
+ }
+ },
+ "node_modules/lodash.isarguments": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz",
+ "integrity": "sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg=="
+ },
+ "node_modules/lodash.isarray": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz",
+ "integrity": "sha512-JwObCrNJuT0Nnbuecmqr5DgtuBppuCvGD9lxjFpAzwnVtdGoDQ1zig+5W8k5/6Gcn0gZ3936HDAlGd28i7sOGQ=="
+ },
+ "node_modules/lodash.isobject": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmmirror.com/lodash.isobject/-/lodash.isobject-3.0.2.tgz",
+ "integrity": "sha512-3/Qptq2vr7WeJbB4KHUSKlq8Pl7ASXi3UG6CMbBm8WRtXi8+GHm7mKaU3urfpSEzWe2wCIChs6/sdocUsTKJiA=="
+ },
+ "node_modules/lodash.keys": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz",
+ "integrity": "sha512-CuBsapFjcubOGMn3VD+24HOAPxM79tH+V6ivJL3CHYjtrawauDJHUk//Yew9Hvc6e9rbCrURGk8z6PC+8WJBfQ==",
+ "dependencies": {
+ "lodash._getnative": "^3.0.0",
+ "lodash.isarguments": "^3.0.0",
+ "lodash.isarray": "^3.0.0"
+ }
+ },
+ "node_modules/lodash.merge": {
+ "version": "4.6.2",
+ "resolved": "https://registry.npmmirror.com/lodash.merge/-/lodash.merge-4.6.2.tgz",
+ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ=="
+ },
+ "node_modules/lodash.restparam": {
+ "version": "3.6.1",
+ "resolved": "https://registry.npmjs.org/lodash.restparam/-/lodash.restparam-3.6.1.tgz",
+ "integrity": "sha512-L4/arjjuq4noiUJpt3yS6KIKDtJwNe2fIYgMqyYYKoeIfV1iEqvPwhCx23o+R9dzouGihDAPN1dTIRWa7zk8tw=="
+ },
+ "node_modules/lodash.template": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmmirror.com/lodash.template/-/lodash.template-4.5.0.tgz",
+ "integrity": "sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==",
+ "dependencies": {
+ "lodash._reinterpolate": "^3.0.0",
+ "lodash.templatesettings": "^4.0.0"
+ }
+ },
+ "node_modules/lodash.templatesettings": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmmirror.com/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz",
+ "integrity": "sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ==",
+ "dependencies": {
+ "lodash._reinterpolate": "^3.0.0"
+ }
+ },
+ "node_modules/long": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmmirror.com/long/-/long-4.0.0.tgz",
+ "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA=="
+ },
+ "node_modules/lower-case": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmmirror.com/lower-case/-/lower-case-1.1.4.tgz",
+ "integrity": "sha512-2Fgx1Ycm599x+WGpIYwJOvsjmXFzTSc34IwDWALRA/8AopUKAVPwfJ+h5+f85BCp0PWmmJcWzEpxOpoXycMpdA=="
+ },
+ "node_modules/lru-cache": {
+ "version": "10.1.0",
+ "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-10.1.0.tgz",
+ "integrity": "sha512-/1clY/ui8CzjKFyjdvwPWJUYKiFVXG2I2cY0ssG7h4+hwk+XOIX7ZSG9Q7TW8TW3Kp3BUSqgFWBLgL4PJ+Blag==",
+ "engines": {
+ "node": "14 || >=16.14"
+ }
+ },
+ "node_modules/luxon": {
+ "version": "3.5.0",
+ "resolved": "https://registry.npmmirror.com/luxon/-/luxon-3.5.0.tgz",
+ "integrity": "sha512-rh+Zjr6DNfUYR3bPwJEnuwDdqMbxZW7LOQfUN4B54+Cl+0o5zaU9RJ6bcidfDtC1cWCZXQ+nvX8bf6bAji37QQ==",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/make-dir": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
+ "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",
+ "dependencies": {
+ "semver": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/make-dir/node_modules/semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/make-error": {
+ "version": "1.3.6",
+ "resolved": "https://registry.npmmirror.com/make-error/-/make-error-1.3.6.tgz",
+ "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw=="
+ },
+ "node_modules/make-error-cause": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmmirror.com/make-error-cause/-/make-error-cause-1.2.2.tgz",
+ "integrity": "sha512-4TO2Y3HkBnis4c0dxhAgD/jprySYLACf7nwN6V0HAHDx59g12WlRpUmFy1bRHamjGUEEBrEvCq6SUpsEE2lhUg==",
+ "dependencies": {
+ "make-error": "^1.2.0"
+ }
+ },
+ "node_modules/make-iterator": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/make-iterator/-/make-iterator-1.0.1.tgz",
+ "integrity": "sha512-pxiuXh0iVEq7VM7KMIhs5gxsfxCux2URptUQaXo4iZZJxBAzTPOLE2BumO5dbfVYq/hBJFBR/a1mFDmOx5AGmw==",
+ "dependencies": {
+ "kind-of": "^6.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/make-iterator/node_modules/kind-of": {
+ "version": "6.0.3",
+ "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-6.0.3.tgz",
+ "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/map-cache": {
+ "version": "0.2.2",
+ "resolved": "https://registry.npmmirror.com/map-cache/-/map-cache-0.2.2.tgz",
+ "integrity": "sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/map-stream": {
+ "version": "0.0.7",
+ "resolved": "https://registry.npmmirror.com/map-stream/-/map-stream-0.0.7.tgz",
+ "integrity": "sha512-C0X0KQmGm3N2ftbTGBhSyuydQ+vV1LC3f3zPvT3RXHXNZrvfPZcoXp/N5DOa8vedX/rTMm2CjTtivFg2STJMRQ=="
+ },
+ "node_modules/map-visit": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/map-visit/-/map-visit-1.0.0.tgz",
+ "integrity": "sha512-4y7uGv8bd2WdM9vpQsiQNo41Ln1NvhvDRuVt0k2JZQ+ezN2uaQes7lZeZ+QQUHOLQAtDaBJ+7wCbi+ab/KFs+w==",
+ "dependencies": {
+ "object-visit": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/matchdep": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/matchdep/-/matchdep-2.0.0.tgz",
+ "integrity": "sha512-LFgVbaHIHMqCRuCZyfCtUOq9/Lnzhi7Z0KFUE2fhD54+JN2jLh3hC02RLkqauJ3U4soU6H1J3tfj/Byk7GoEjA==",
+ "dependencies": {
+ "findup-sync": "^2.0.0",
+ "micromatch": "^3.0.4",
+ "resolve": "^1.4.0",
+ "stack-trace": "0.0.10"
+ },
+ "engines": {
+ "node": ">= 0.10.0"
+ }
+ },
+ "node_modules/matchdep/node_modules/braces": {
+ "version": "2.3.2",
+ "resolved": "https://registry.npmmirror.com/braces/-/braces-2.3.2.tgz",
+ "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==",
+ "dependencies": {
+ "arr-flatten": "^1.1.0",
+ "array-unique": "^0.3.2",
+ "extend-shallow": "^2.0.1",
+ "fill-range": "^4.0.0",
+ "isobject": "^3.0.1",
+ "repeat-element": "^1.1.2",
+ "snapdragon": "^0.8.1",
+ "snapdragon-node": "^2.0.1",
+ "split-string": "^3.0.2",
+ "to-regex": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/matchdep/node_modules/braces/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz",
+ "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/matchdep/node_modules/fill-range": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-4.0.0.tgz",
+ "integrity": "sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==",
+ "dependencies": {
+ "extend-shallow": "^2.0.1",
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1",
+ "to-regex-range": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/matchdep/node_modules/fill-range/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz",
+ "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/matchdep/node_modules/findup-sync": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/findup-sync/-/findup-sync-2.0.0.tgz",
+ "integrity": "sha512-vs+3unmJT45eczmcAZ6zMJtxN3l/QXeccaXQx5cu/MeJMhewVfoWZqibRkOxPnmoR59+Zy5hjabfQc6JLSah4g==",
+ "dependencies": {
+ "detect-file": "^1.0.0",
+ "is-glob": "^3.1.0",
+ "micromatch": "^3.0.4",
+ "resolve-dir": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/matchdep/node_modules/is-extendable": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz",
+ "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/matchdep/node_modules/is-glob": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmmirror.com/is-glob/-/is-glob-3.1.0.tgz",
+ "integrity": "sha512-UFpDDrPgM6qpnFNI+rh/p3bUaq9hKLZN8bMUWzxmcnZVS3omf4IPK+BrewlnWjO1WmUsMYuSjKh4UJuV4+Lqmw==",
+ "dependencies": {
+ "is-extglob": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/matchdep/node_modules/is-number": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/is-number/-/is-number-3.0.0.tgz",
+ "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==",
+ "dependencies": {
+ "kind-of": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/matchdep/node_modules/is-number/node_modules/kind-of": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz",
+ "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==",
+ "dependencies": {
+ "is-buffer": "^1.1.5"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/matchdep/node_modules/kind-of": {
+ "version": "6.0.3",
+ "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-6.0.3.tgz",
+ "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/matchdep/node_modules/micromatch": {
+ "version": "3.1.10",
+ "resolved": "https://registry.npmmirror.com/micromatch/-/micromatch-3.1.10.tgz",
+ "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==",
+ "dependencies": {
+ "arr-diff": "^4.0.0",
+ "array-unique": "^0.3.2",
+ "braces": "^2.3.1",
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "extglob": "^2.0.4",
+ "fragment-cache": "^0.2.1",
+ "kind-of": "^6.0.2",
+ "nanomatch": "^1.2.9",
+ "object.pick": "^1.3.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/matchdep/node_modules/to-regex-range": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmmirror.com/to-regex-range/-/to-regex-range-2.1.1.tgz",
+ "integrity": "sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==",
+ "dependencies": {
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/md5": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmmirror.com/md5/-/md5-2.3.0.tgz",
+ "integrity": "sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==",
+ "dependencies": {
+ "charenc": "0.0.2",
+ "crypt": "0.0.2",
+ "is-buffer": "~1.1.6"
+ }
+ },
+ "node_modules/media-typer": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmmirror.com/media-typer/-/media-typer-0.3.0.tgz",
+ "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/merge-descriptors": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
+ "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w=="
+ },
+ "node_modules/merge2": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmmirror.com/merge2/-/merge2-1.4.1.tgz",
+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/methods": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmmirror.com/methods/-/methods-1.1.2.tgz",
+ "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/micromatch": {
+ "version": "4.0.5",
+ "resolved": "https://registry.npmmirror.com/micromatch/-/micromatch-4.0.5.tgz",
+ "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",
+ "dependencies": {
+ "braces": "^3.0.2",
+ "picomatch": "^2.3.1"
+ },
+ "engines": {
+ "node": ">=8.6"
+ }
+ },
+ "node_modules/mime": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmmirror.com/mime/-/mime-1.6.0.tgz",
+ "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
+ "bin": {
+ "mime": "cli.js"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/mime-db": {
+ "version": "1.52.0",
+ "resolved": "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz",
+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mime-types": {
+ "version": "2.1.35",
+ "resolved": "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz",
+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
+ "dependencies": {
+ "mime-db": "1.52.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mimic-fn": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-3.1.0.tgz",
+ "integrity": "sha512-Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ==",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/minimatch": {
+ "version": "9.0.3",
+ "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-9.0.3.tgz",
+ "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==",
+ "dependencies": {
+ "brace-expansion": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ }
+ },
+ "node_modules/minimist": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmmirror.com/minimist/-/minimist-1.2.8.tgz",
+ "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA=="
+ },
+ "node_modules/minipass": {
+ "version": "7.0.4",
+ "resolved": "https://registry.npmmirror.com/minipass/-/minipass-7.0.4.tgz",
+ "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==",
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ }
+ },
+ "node_modules/mixin-deep": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmmirror.com/mixin-deep/-/mixin-deep-1.3.2.tgz",
+ "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==",
+ "dependencies": {
+ "for-in": "^1.0.2",
+ "is-extendable": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/modify-filename": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/modify-filename/-/modify-filename-2.0.0.tgz",
+ "integrity": "sha512-VX9/MdgUN9StpSLImJ0+AyV2dxJJtyojIwRHF/Ja942tW7FTzxXI186jDSTk4k5wj2+59a4bRzFnJUgMSi+ygg==",
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/moment": {
+ "version": "2.30.1",
+ "resolved": "https://registry.npmmirror.com/moment/-/moment-2.30.1.tgz",
+ "integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/moment-timezone": {
+ "version": "0.5.44",
+ "resolved": "https://registry.npmmirror.com/moment-timezone/-/moment-timezone-0.5.44.tgz",
+ "integrity": "sha512-nv3YpzI/8lkQn0U6RkLd+f0W/zy/JnoR5/EyPz/dNkPTBjA2jNLCVxaiQ8QpeLymhSZvX0wCL5s27NQWdOPwAw==",
+ "dependencies": {
+ "moment": "^2.29.4"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/ms": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/ms/-/ms-2.0.0.tgz",
+ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="
+ },
+ "node_modules/msgpackr": {
+ "version": "1.11.2",
+ "resolved": "https://registry.npmmirror.com/msgpackr/-/msgpackr-1.11.2.tgz",
+ "integrity": "sha512-F9UngXRlPyWCDEASDpTf6c9uNhGPTqnTeLVt7bN+bU1eajoR/8V9ys2BRaV5C/e5ihE6sJ9uPIKaYt6bFuO32g==",
+ "optionalDependencies": {
+ "msgpackr-extract": "^3.0.2"
+ }
+ },
+ "node_modules/msgpackr-extract": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmmirror.com/msgpackr-extract/-/msgpackr-extract-3.0.3.tgz",
+ "integrity": "sha512-P0efT1C9jIdVRefqjzOQ9Xml57zpOXnIuS+csaB4MdZbTdmGDLo8XhzBG1N7aO11gKDDkJvBLULeFTo46wwreA==",
+ "hasInstallScript": true,
+ "optional": true,
+ "dependencies": {
+ "node-gyp-build-optional-packages": "5.2.2"
+ },
+ "bin": {
+ "download-msgpackr-prebuilds": "bin/download-prebuilds.js"
+ },
+ "optionalDependencies": {
+ "@msgpackr-extract/msgpackr-extract-darwin-arm64": "3.0.3",
+ "@msgpackr-extract/msgpackr-extract-darwin-x64": "3.0.3",
+ "@msgpackr-extract/msgpackr-extract-linux-arm": "3.0.3",
+ "@msgpackr-extract/msgpackr-extract-linux-arm64": "3.0.3",
+ "@msgpackr-extract/msgpackr-extract-linux-x64": "3.0.3",
+ "@msgpackr-extract/msgpackr-extract-win32-x64": "3.0.3"
+ }
+ },
+ "node_modules/multer": {
+ "version": "1.4.5-lts.1",
+ "resolved": "https://registry.npmjs.org/multer/-/multer-1.4.5-lts.1.tgz",
+ "integrity": "sha512-ywPWvcDMeH+z9gQq5qYHCCy+ethsk4goepZ45GLD63fOu0YcNecQxi64nDs3qluZB+murG3/D4dJ7+dGctcCQQ==",
+ "dependencies": {
+ "append-field": "^1.0.0",
+ "busboy": "^1.0.0",
+ "concat-stream": "^1.5.2",
+ "mkdirp": "^0.5.4",
+ "object-assign": "^4.1.1",
+ "type-is": "^1.6.4",
+ "xtend": "^4.0.0"
+ },
+ "engines": {
+ "node": ">= 6.0.0"
+ }
+ },
+ "node_modules/multer/node_modules/mkdirp": {
+ "version": "0.5.6",
+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz",
+ "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",
+ "dependencies": {
+ "minimist": "^1.2.6"
+ },
+ "bin": {
+ "mkdirp": "bin/cmd.js"
+ }
+ },
+ "node_modules/multimatch": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmmirror.com/multimatch/-/multimatch-5.0.0.tgz",
+ "integrity": "sha512-ypMKuglUrZUD99Tk2bUQ+xNQj43lPEfAeX2o9cTteAmShXy2VHDJpuwu1o0xqoKCt9jLVAvwyFKdLTPXKAfJyA==",
+ "dependencies": {
+ "@types/minimatch": "^3.0.3",
+ "array-differ": "^3.0.0",
+ "array-union": "^2.1.0",
+ "arrify": "^2.0.1",
+ "minimatch": "^3.0.4"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/multimatch/node_modules/@types/minimatch": {
+ "version": "3.0.5",
+ "resolved": "https://registry.npmmirror.com/@types/minimatch/-/minimatch-3.0.5.tgz",
+ "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ=="
+ },
+ "node_modules/multimatch/node_modules/arrify": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/arrify/-/arrify-2.0.1.tgz",
+ "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/multimatch/node_modules/brace-expansion": {
+ "version": "1.1.11",
+ "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz",
+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/multimatch/node_modules/minimatch": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz",
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/multipipe": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/multipipe/-/multipipe-0.1.2.tgz",
+ "integrity": "sha512-7ZxrUybYv9NonoXgwoOqtStIu18D1c3eFZj27hqgf5kBrBF8Q+tE8V0MW8dKM5QLkQPh1JhhbKgHLY9kifov4Q==",
+ "dependencies": {
+ "duplexer2": "0.0.2"
+ }
+ },
+ "node_modules/mute-stdout": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/mute-stdout/-/mute-stdout-1.0.1.tgz",
+ "integrity": "sha512-kDcwXR4PS7caBpuRYYBUz9iVixUk3anO3f5OYFiIPwK/20vCzKCHyKoulbiDY1S53zD2bxUpxN/IJ+TnXjfvxg==",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/mysql2": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmmirror.com/mysql2/-/mysql2-2.3.3.tgz",
+ "integrity": "sha512-wxJUev6LgMSgACDkb/InIFxDprRa6T95+VEoR+xPvtngtccNH2dGjEB/fVZ8yg1gWv1510c9CvXuJHi5zUm0ZA==",
+ "dependencies": {
+ "denque": "^2.0.1",
+ "generate-function": "^2.3.1",
+ "iconv-lite": "^0.6.3",
+ "long": "^4.0.0",
+ "lru-cache": "^6.0.0",
+ "named-placeholders": "^1.1.2",
+ "seq-queue": "^0.0.5",
+ "sqlstring": "^2.3.2"
+ },
+ "engines": {
+ "node": ">= 8.0"
+ }
+ },
+ "node_modules/mysql2/node_modules/iconv-lite": {
+ "version": "0.6.3",
+ "resolved": "https://registry.npmmirror.com/iconv-lite/-/iconv-lite-0.6.3.tgz",
+ "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/mysql2/node_modules/lru-cache": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-6.0.0.tgz",
+ "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/mz": {
+ "version": "2.7.0",
+ "resolved": "https://registry.npmmirror.com/mz/-/mz-2.7.0.tgz",
+ "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==",
+ "dependencies": {
+ "any-promise": "^1.0.0",
+ "object-assign": "^4.0.1",
+ "thenify-all": "^1.0.0"
+ }
+ },
+ "node_modules/named-placeholders": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmmirror.com/named-placeholders/-/named-placeholders-1.1.3.tgz",
+ "integrity": "sha512-eLoBxg6wE/rZkJPhU/xRX1WTpkFEwDJEN96oxFrTsqBdbT5ec295Q+CoHrL9IT0DipqKhmGcaZmwOt8OON5x1w==",
+ "dependencies": {
+ "lru-cache": "^7.14.1"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ }
+ },
+ "node_modules/named-placeholders/node_modules/lru-cache": {
+ "version": "7.18.3",
+ "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-7.18.3.tgz",
+ "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/nan": {
+ "version": "2.19.0",
+ "resolved": "https://registry.npmmirror.com/nan/-/nan-2.19.0.tgz",
+ "integrity": "sha512-nO1xXxfh/RWNxfd/XPfbIfFk5vgLsAxUR9y5O0cHMJu/AW9U95JLXqthYHjEp+8gQ5p96K9jUp8nbVOxCdRbtw==",
+ "optional": true
+ },
+ "node_modules/nanomatch": {
+ "version": "1.2.13",
+ "resolved": "https://registry.npmmirror.com/nanomatch/-/nanomatch-1.2.13.tgz",
+ "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==",
+ "dependencies": {
+ "arr-diff": "^4.0.0",
+ "array-unique": "^0.3.2",
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "fragment-cache": "^0.2.1",
+ "is-windows": "^1.0.2",
+ "kind-of": "^6.0.2",
+ "object.pick": "^1.3.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/nanomatch/node_modules/kind-of": {
+ "version": "6.0.3",
+ "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-6.0.3.tgz",
+ "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/negotiator": {
+ "version": "0.6.3",
+ "resolved": "https://registry.npmmirror.com/negotiator/-/negotiator-0.6.3.tgz",
+ "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/next-tick": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/next-tick/-/next-tick-1.1.0.tgz",
+ "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ=="
+ },
+ "node_modules/nice-try": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmmirror.com/nice-try/-/nice-try-1.0.5.tgz",
+ "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ=="
+ },
+ "node_modules/no-case": {
+ "version": "2.3.2",
+ "resolved": "https://registry.npmmirror.com/no-case/-/no-case-2.3.2.tgz",
+ "integrity": "sha512-rmTZ9kz+f3rCvK2TD1Ue/oZlns7OGoIWP4fc3llxxRXlOkHKoWPPWJOfFYpITabSow43QJbRIoHQXtt10VldyQ==",
+ "dependencies": {
+ "lower-case": "^1.1.1"
+ }
+ },
+ "node_modules/node-gyp-build-optional-packages": {
+ "version": "5.2.2",
+ "resolved": "https://registry.npmmirror.com/node-gyp-build-optional-packages/-/node-gyp-build-optional-packages-5.2.2.tgz",
+ "integrity": "sha512-s+w+rBWnpTMwSFbaE0UXsRlg7hU4FjekKU4eyAih5T8nJuNZT1nNsskXpxmeqSK9UzkBl6UgRlnKc8hz8IEqOw==",
+ "optional": true,
+ "dependencies": {
+ "detect-libc": "^2.0.1"
+ },
+ "bin": {
+ "node-gyp-build-optional-packages": "bin.js",
+ "node-gyp-build-optional-packages-optional": "optional.js",
+ "node-gyp-build-optional-packages-test": "build-test.js"
+ }
+ },
+ "node_modules/node-hex": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/node-hex/-/node-hex-1.0.1.tgz",
+ "integrity": "sha512-iwpZdvW6Umz12ICmu9IYPRxg0tOLGmU3Tq2tKetejCj3oZd7b2nUXwP3a7QA5M9glWy8wlPS1G3RwM/CdsUbdQ==",
+ "engines": {
+ "node": ">=8.0.0"
+ }
+ },
+ "node_modules/node-releases": {
+ "version": "2.0.19",
+ "resolved": "https://registry.npmmirror.com/node-releases/-/node-releases-2.0.19.tgz",
+ "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw=="
+ },
+ "node_modules/nodemailer": {
+ "version": "6.9.14",
+ "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.9.14.tgz",
+ "integrity": "sha512-Dobp/ebDKBvz91sbtRKhcznLThrKxKt97GI2FAlAyy+fk19j73Uz3sBXolVtmcXjaorivqsbbbjDY+Jkt4/bQA==",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/nodemailer-fetch": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/nodemailer-fetch/-/nodemailer-fetch-1.6.0.tgz",
+ "integrity": "sha512-P7S5CEVGAmDrrpn351aXOLYs1R/7fD5NamfMCHyi6WIkbjS2eeZUB/TkuvpOQr0bvRZicVqo59+8wbhR3yrJbQ=="
+ },
+ "node_modules/nodemailer-shared": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/nodemailer-shared/-/nodemailer-shared-1.1.0.tgz",
+ "integrity": "sha512-68xW5LSyPWv8R0GLm6veAvm7E+XFXkVgvE3FW0FGxNMMZqMkPFeGDVALfR1DPdSfcoO36PnW7q5AAOgFImEZGg==",
+ "dependencies": {
+ "nodemailer-fetch": "1.6.0"
+ }
+ },
+ "node_modules/nodemailer-smtp-transport": {
+ "version": "2.7.4",
+ "resolved": "https://registry.npmjs.org/nodemailer-smtp-transport/-/nodemailer-smtp-transport-2.7.4.tgz",
+ "integrity": "sha512-1e86YhJ633OZWk3OHWS5TpuoYXG/LtY2/RzNiB5+EkFifDdqHCNHBnExd5cobx0ZSHJLNGM8EKnDuHRFIjFi6Q==",
+ "dependencies": {
+ "nodemailer-shared": "1.1.0",
+ "nodemailer-wellknown": "0.1.10",
+ "smtp-connection": "2.12.0"
+ }
+ },
+ "node_modules/nodemailer-wellknown": {
+ "version": "0.1.10",
+ "resolved": "https://registry.npmjs.org/nodemailer-wellknown/-/nodemailer-wellknown-0.1.10.tgz",
+ "integrity": "sha512-/VV4mjAEjfm2fn0loUvrpjvugw5rgurNjPO4WU24CuVSoeumsyLOTgaEWG8WoGdPxh1biOAp5JxDoy1hlA2zsw=="
+ },
+ "node_modules/normalize-package-data": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmmirror.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz",
+ "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==",
+ "dependencies": {
+ "hosted-git-info": "^2.1.4",
+ "resolve": "^1.10.0",
+ "semver": "2 || 3 || 4 || 5",
+ "validate-npm-package-license": "^3.0.1"
+ }
+ },
+ "node_modules/normalize-path": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/normalize-path/-/normalize-path-3.0.0.tgz",
+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/notepack.io": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/notepack.io/-/notepack.io-2.2.0.tgz",
+ "integrity": "sha512-9b5w3t5VSH6ZPosoYnyDONnUTF8o0UkBw7JLA6eBlYJWyGT1Q3vQa8Hmuj1/X6RYvHjjygBDgw6fJhe0JEojfw=="
+ },
+ "node_modules/now-and-later": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/now-and-later/-/now-and-later-2.0.1.tgz",
+ "integrity": "sha512-KGvQ0cB70AQfg107Xvs/Fbu+dGmZoTRJp2TaPwcwQm3/7PteUyN2BCgk8KBMPGBUXZdVwyWS8fDCGFygBm19UQ==",
+ "dependencies": {
+ "once": "^1.3.2"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/number-is-nan": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/number-is-nan/-/number-is-nan-1.0.1.tgz",
+ "integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/o-stream": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmmirror.com/o-stream/-/o-stream-0.3.0.tgz",
+ "integrity": "sha512-gbzl6qCJZ609x/M2t25HqCYQagFzWYCtQ84jcuObGr+V8D1Am4EVubkF4J+XFs6ukfiv96vNeiBb8FrbbMZYiQ=="
+ },
+ "node_modules/oauth-sign": {
+ "version": "0.9.0",
+ "resolved": "https://registry.npmmirror.com/oauth-sign/-/oauth-sign-0.9.0.tgz",
+ "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/object-assign": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmmirror.com/object-assign/-/object-assign-4.1.1.tgz",
+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object-copy": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmmirror.com/object-copy/-/object-copy-0.1.0.tgz",
+ "integrity": "sha512-79LYn6VAb63zgtmAteVOWo9Vdj71ZVBy3Pbse+VqxDpEP83XuujMrGqHIwAXJ5I/aM0zU7dIyIAhifVTPrNItQ==",
+ "dependencies": {
+ "copy-descriptor": "^0.1.0",
+ "define-property": "^0.2.5",
+ "kind-of": "^3.0.3"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object-copy/node_modules/define-property": {
+ "version": "0.2.5",
+ "resolved": "https://registry.npmmirror.com/define-property/-/define-property-0.2.5.tgz",
+ "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==",
+ "dependencies": {
+ "is-descriptor": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object-copy/node_modules/is-descriptor": {
+ "version": "0.1.7",
+ "resolved": "https://registry.npmmirror.com/is-descriptor/-/is-descriptor-0.1.7.tgz",
+ "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==",
+ "dependencies": {
+ "is-accessor-descriptor": "^1.0.1",
+ "is-data-descriptor": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/object-copy/node_modules/kind-of": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz",
+ "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==",
+ "dependencies": {
+ "is-buffer": "^1.1.5"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object-inspect": {
+ "version": "1.13.1",
+ "resolved": "https://registry.npmmirror.com/object-inspect/-/object-inspect-1.13.1.tgz",
+ "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ=="
+ },
+ "node_modules/object-is": {
+ "version": "1.1.6",
+ "resolved": "https://registry.npmmirror.com/object-is/-/object-is-1.1.6.tgz",
+ "integrity": "sha512-F8cZ+KfGlSGi09lJT7/Nd6KJZ9ygtvYC0/UYYLI9nmQKLMnydpB9yvbv9K1uSkEu7FU9vYPmVwLg328tX+ot3Q==",
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "define-properties": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/object-keys": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmmirror.com/object-keys/-/object-keys-1.1.1.tgz",
+ "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/object-visit": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/object-visit/-/object-visit-1.0.1.tgz",
+ "integrity": "sha512-GBaMwwAVK9qbQN3Scdo0OyvgPW7l3lnaVMj84uTOZlswkX0KpF6fyDBJhtTthf7pymztoN36/KEr1DyhF96zEA==",
+ "dependencies": {
+ "isobject": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object.assign": {
+ "version": "4.1.5",
+ "resolved": "https://registry.npmmirror.com/object.assign/-/object.assign-4.1.5.tgz",
+ "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==",
+ "dependencies": {
+ "call-bind": "^1.0.5",
+ "define-properties": "^1.2.1",
+ "has-symbols": "^1.0.3",
+ "object-keys": "^1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/object.defaults": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/object.defaults/-/object.defaults-1.1.0.tgz",
+ "integrity": "sha512-c/K0mw/F11k4dEUBMW8naXUuBuhxRCfG7W+yFy8EcijU/rSmazOUd1XAEEe6bC0OuXY4HUKjTJv7xbxIMqdxrA==",
+ "dependencies": {
+ "array-each": "^1.0.1",
+ "array-slice": "^1.0.0",
+ "for-own": "^1.0.0",
+ "isobject": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object.map": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/object.map/-/object.map-1.0.1.tgz",
+ "integrity": "sha512-3+mAJu2PLfnSVGHwIWubpOFLscJANBKuB/6A4CxBstc4aqwQY0FWcsppuy4jU5GSB95yES5JHSI+33AWuS4k6w==",
+ "dependencies": {
+ "for-own": "^1.0.0",
+ "make-iterator": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object.pick": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmmirror.com/object.pick/-/object.pick-1.3.0.tgz",
+ "integrity": "sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ==",
+ "dependencies": {
+ "isobject": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object.reduce": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/object.reduce/-/object.reduce-1.0.1.tgz",
+ "integrity": "sha512-naLhxxpUESbNkRqc35oQ2scZSJueHGQNUfMW/0U37IgN6tE2dgDWg3whf+NEliy3F/QysrO48XKUz/nGPe+AQw==",
+ "dependencies": {
+ "for-own": "^1.0.0",
+ "make-iterator": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/on-finished": {
+ "version": "2.4.1",
+ "resolved": "https://registry.npmmirror.com/on-finished/-/on-finished-2.4.1.tgz",
+ "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
+ "dependencies": {
+ "ee-first": "1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/once": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmmirror.com/once/-/once-1.4.0.tgz",
+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
+ "dependencies": {
+ "wrappy": "1"
+ }
+ },
+ "node_modules/onetime": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
+ "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",
+ "dependencies": {
+ "mimic-fn": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/onetime/node_modules/mimic-fn": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
+ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/opencollective-postinstall": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmmirror.com/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz",
+ "integrity": "sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q==",
+ "bin": {
+ "opencollective-postinstall": "index.js"
+ }
+ },
+ "node_modules/optionator": {
+ "version": "0.8.3",
+ "resolved": "https://registry.npmmirror.com/optionator/-/optionator-0.8.3.tgz",
+ "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==",
+ "dependencies": {
+ "deep-is": "~0.1.3",
+ "fast-levenshtein": "~2.0.6",
+ "levn": "~0.3.0",
+ "prelude-ls": "~1.1.2",
+ "type-check": "~0.3.2",
+ "word-wrap": "~1.2.3"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/optionator/node_modules/fast-levenshtein": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmmirror.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
+ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw=="
+ },
+ "node_modules/ordered-read-streams": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/ordered-read-streams/-/ordered-read-streams-1.0.1.tgz",
+ "integrity": "sha512-Z87aSjx3r5c0ZB7bcJqIgIRX5bxR7A4aSzvIbaxd0oTkWBCOoKfuGHiKj60CHVUgg1Phm5yMZzBdt8XqRs73Mw==",
+ "dependencies": {
+ "readable-stream": "^2.0.1"
+ }
+ },
+ "node_modules/os-locale": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmmirror.com/os-locale/-/os-locale-1.4.0.tgz",
+ "integrity": "sha512-PRT7ZORmwu2MEFt4/fv3Q+mEfN4zetKxufQrkShY2oGvUms9r8otu5HfdyIFHkYXjO7laNsoVGmM2MANfuTA8g==",
+ "dependencies": {
+ "lcid": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/os-name": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmmirror.com/os-name/-/os-name-1.0.3.tgz",
+ "integrity": "sha512-f5estLO2KN8vgtTRaILIgEGBoBrMnZ3JQ7W9TMZCnOIGwHe8TRGSpcagnWDo+Dfhd/z08k9Xe75hvciJJ8Qaew==",
+ "dependencies": {
+ "osx-release": "^1.0.0",
+ "win-release": "^1.0.0"
+ },
+ "bin": {
+ "os-name": "cli.js"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/osx-release": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/osx-release/-/osx-release-1.1.0.tgz",
+ "integrity": "sha512-ixCMMwnVxyHFQLQnINhmIpWqXIfS2YOXchwQrk+OFzmo6nDjQ0E4KXAyyUh0T0MZgV4bUhkRrAbVqlE4yLVq4A==",
+ "dependencies": {
+ "minimist": "^1.1.0"
+ },
+ "bin": {
+ "osx-release": "cli.js"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/p-try": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
+ "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/param-case": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmmirror.com/param-case/-/param-case-2.1.1.tgz",
+ "integrity": "sha512-eQE845L6ot89sk2N8liD8HAuH4ca6Vvr7VWAWwt7+kvvG5aBcPmmphQ68JsEG2qa9n1TykS2DLeMt363AAH8/w==",
+ "dependencies": {
+ "no-case": "^2.2.0"
+ }
+ },
+ "node_modules/parse-filepath": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/parse-filepath/-/parse-filepath-1.0.2.tgz",
+ "integrity": "sha512-FwdRXKCohSVeXqwtYonZTXtbGJKrn+HNyWDYVcp5yuJlesTwNH4rsmRZ+GrKAPJ5bLpRxESMeS+Rl0VCHRvB2Q==",
+ "dependencies": {
+ "is-absolute": "^1.0.0",
+ "map-cache": "^0.2.0",
+ "path-root": "^0.1.1"
+ },
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/parse-json": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmmirror.com/parse-json/-/parse-json-2.2.0.tgz",
+ "integrity": "sha512-QR/GGaKCkhwk1ePQNYDRKYZ3mwU9ypsKhB0XyFnLQdomyEqk3e8wpW3V5Jp88zbxK4n5ST1nqo+g9juTpownhQ==",
+ "dependencies": {
+ "error-ex": "^1.2.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/parse-node-version": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/parse-node-version/-/parse-node-version-1.0.1.tgz",
+ "integrity": "sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA==",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/parse-passwd": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/parse-passwd/-/parse-passwd-1.0.0.tgz",
+ "integrity": "sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/parseqs": {
+ "version": "0.0.6",
+ "resolved": "https://registry.npmmirror.com/parseqs/-/parseqs-0.0.6.tgz",
+ "integrity": "sha512-jeAGzMDbfSHHA091hr0r31eYfTig+29g3GKKE/PPbEQ65X0lmMwlEoqmhzu0iztID5uJpZsFlUPDP8ThPL7M8w=="
+ },
+ "node_modules/parseuri": {
+ "version": "0.0.6",
+ "resolved": "https://registry.npmmirror.com/parseuri/-/parseuri-0.0.6.tgz",
+ "integrity": "sha512-AUjen8sAkGgao7UyCX6Ahv0gIK2fABKmYjvP4xmy5JaKvcbTRueIqIPHLAfq30xJddqSE033IOMUSOMCcK3Sow=="
+ },
+ "node_modules/parseurl": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmmirror.com/parseurl/-/parseurl-1.3.3.tgz",
+ "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/pascalcase": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmmirror.com/pascalcase/-/pascalcase-0.1.1.tgz",
+ "integrity": "sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/path-dirname": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/path-dirname/-/path-dirname-1.0.2.tgz",
+ "integrity": "sha512-ALzNPpyNq9AqXMBjeymIjFDAkAFH06mHJH/cSBHAgU0s4vfpBn6b2nf8tiRLvagKD8RbTpq2FKTBg7cl9l3c7Q=="
+ },
+ "node_modules/path-is-absolute": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
+ "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/path-is-inside": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/path-is-inside/-/path-is-inside-1.0.2.tgz",
+ "integrity": "sha512-DUWJr3+ULp4zXmol/SZkFf3JGsS9/SIv+Y3Rt93/UjPpDpklB5f1er4O3POIbUuUJ3FXgqte2Q7SrU6zAqwk8w=="
+ },
+ "node_modules/path-key": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/path-key/-/path-key-2.0.1.tgz",
+ "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/path-parse": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmmirror.com/path-parse/-/path-parse-1.0.7.tgz",
+ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw=="
+ },
+ "node_modules/path-root": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmmirror.com/path-root/-/path-root-0.1.1.tgz",
+ "integrity": "sha512-QLcPegTHF11axjfojBIoDygmS2E3Lf+8+jI6wOVmNVenrKSo3mFdSGiIgdSHenczw3wPtlVMQaFVwGmM7BJdtg==",
+ "dependencies": {
+ "path-root-regex": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/path-root-regex": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmmirror.com/path-root-regex/-/path-root-regex-0.1.2.tgz",
+ "integrity": "sha512-4GlJ6rZDhQZFE0DPVKh0e9jmZ5egZfxTkp7bcRDuPlJXbAwhxcl2dINPUAsjLdejqaLsCeg8axcLjIbvBjN4pQ==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/path-scurry": {
+ "version": "1.10.1",
+ "resolved": "https://registry.npmmirror.com/path-scurry/-/path-scurry-1.10.1.tgz",
+ "integrity": "sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==",
+ "dependencies": {
+ "lru-cache": "^9.1.1 || ^10.0.0",
+ "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"
+ },
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ }
+ },
+ "node_modules/path-to-regexp": {
+ "version": "0.1.7",
+ "resolved": "https://registry.npmmirror.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
+ "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ=="
+ },
+ "node_modules/path-type": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmmirror.com/path-type/-/path-type-4.0.0.tgz",
+ "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/pause-stream": {
+ "version": "0.0.11",
+ "resolved": "https://registry.npmmirror.com/pause-stream/-/pause-stream-0.0.11.tgz",
+ "integrity": "sha512-e3FBlXLmN/D1S+zHzanP4E/4Z60oFAa3O051qt1pxa7DEJWKAyil6upYVXCWadEnuoqa4Pkc9oUx9zsxYeRv8A==",
+ "dependencies": {
+ "through": "~2.3"
+ }
+ },
+ "node_modules/performance-now": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmmirror.com/performance-now/-/performance-now-2.1.0.tgz",
+ "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow=="
+ },
+ "node_modules/pg-connection-string": {
+ "version": "2.6.2",
+ "resolved": "https://registry.npmmirror.com/pg-connection-string/-/pg-connection-string-2.6.2.tgz",
+ "integrity": "sha512-ch6OwaeaPYcova4kKZ15sbJ2hKb/VP48ZD2gE7i1J+L4MspCtBMAx8nMgz7bksc7IojCIIWuEhHibSMFH8m8oA=="
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmmirror.com/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="
+ },
+ "node_modules/picomatch": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmmirror.com/picomatch/-/picomatch-2.3.1.tgz",
+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
+ "engines": {
+ "node": ">=8.6"
+ }
+ },
+ "node_modules/pify": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmmirror.com/pify/-/pify-2.3.0.tgz",
+ "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/pinkie": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmmirror.com/pinkie/-/pinkie-2.0.4.tgz",
+ "integrity": "sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/pinkie-promise": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz",
+ "integrity": "sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw==",
+ "dependencies": {
+ "pinkie": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/pkg-up": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-3.1.0.tgz",
+ "integrity": "sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==",
+ "dependencies": {
+ "find-up": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/pkg-up/node_modules/find-up": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
+ "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
+ "dependencies": {
+ "locate-path": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/pkg-up/node_modules/locate-path": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz",
+ "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==",
+ "dependencies": {
+ "p-locate": "^3.0.0",
+ "path-exists": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/pkg-up/node_modules/p-limit": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
+ "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
+ "dependencies": {
+ "p-try": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/pkg-up/node_modules/p-locate": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz",
+ "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==",
+ "dependencies": {
+ "p-limit": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/pkg-up/node_modules/path-exists": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
+ "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/platform": {
+ "version": "1.3.6",
+ "resolved": "https://registry.npmmirror.com/platform/-/platform-1.3.6.tgz",
+ "integrity": "sha512-fnWVljUchTro6RiCFvCXBbNhJc2NijN7oIQxbwsyL0buWJPG85v81ehlHI9fXrJsMNgTofEoWIQeClKpgxFLrg=="
+ },
+ "node_modules/plugin-error": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/plugin-error/-/plugin-error-1.0.1.tgz",
+ "integrity": "sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA==",
+ "dependencies": {
+ "ansi-colors": "^1.0.1",
+ "arr-diff": "^4.0.0",
+ "arr-union": "^3.1.0",
+ "extend-shallow": "^3.0.2"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/plugin-error/node_modules/ansi-colors": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/ansi-colors/-/ansi-colors-1.1.0.tgz",
+ "integrity": "sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==",
+ "dependencies": {
+ "ansi-wrap": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/posix-character-classes": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmmirror.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz",
+ "integrity": "sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/possible-typed-array-names": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz",
+ "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/prelude-ls": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmmirror.com/prelude-ls/-/prelude-ls-1.1.2.tgz",
+ "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==",
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/pretty-hrtime": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmmirror.com/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz",
+ "integrity": "sha512-66hKPCr+72mlfiSjlEB1+45IjXSqvVAIy6mocupoww4tBFE9R9IhwwUGoI4G++Tc9Aq+2rxOt0RFU6gPcrte0A==",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/process": {
+ "version": "0.11.10",
+ "resolved": "https://registry.npmmirror.com/process/-/process-0.11.10.tgz",
+ "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==",
+ "engines": {
+ "node": ">= 0.6.0"
+ }
+ },
+ "node_modules/process-nextick-args": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
+ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="
+ },
+ "node_modules/protobufjs": {
+ "version": "6.11.4",
+ "resolved": "https://registry.npmmirror.com/protobufjs/-/protobufjs-6.11.4.tgz",
+ "integrity": "sha512-5kQWPaJHi1WoCpjTGszzQ32PG2F4+wRY6BmAT4Vfw56Q2FZ4YZzK20xUYQH4YkfehY1e6QSICrJquM6xXZNcrw==",
+ "hasInstallScript": true,
+ "dependencies": {
+ "@protobufjs/aspromise": "^1.1.2",
+ "@protobufjs/base64": "^1.1.2",
+ "@protobufjs/codegen": "^2.0.4",
+ "@protobufjs/eventemitter": "^1.1.0",
+ "@protobufjs/fetch": "^1.1.0",
+ "@protobufjs/float": "^1.0.2",
+ "@protobufjs/inquire": "^1.1.0",
+ "@protobufjs/path": "^1.1.2",
+ "@protobufjs/pool": "^1.1.0",
+ "@protobufjs/utf8": "^1.1.0",
+ "@types/long": "^4.0.1",
+ "@types/node": ">=13.7.0",
+ "long": "^4.0.0"
+ },
+ "bin": {
+ "pbjs": "bin/pbjs",
+ "pbts": "bin/pbts"
+ }
+ },
+ "node_modules/proxy-addr": {
+ "version": "2.0.7",
+ "resolved": "https://registry.npmmirror.com/proxy-addr/-/proxy-addr-2.0.7.tgz",
+ "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
+ "dependencies": {
+ "forwarded": "0.2.0",
+ "ipaddr.js": "1.9.1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/psl": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmmirror.com/psl/-/psl-1.9.0.tgz",
+ "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag=="
+ },
+ "node_modules/pump": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/pump/-/pump-2.0.1.tgz",
+ "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==",
+ "dependencies": {
+ "end-of-stream": "^1.1.0",
+ "once": "^1.3.1"
+ }
+ },
+ "node_modules/pumpify": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmmirror.com/pumpify/-/pumpify-1.5.1.tgz",
+ "integrity": "sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==",
+ "dependencies": {
+ "duplexify": "^3.6.0",
+ "inherits": "^2.0.3",
+ "pump": "^2.0.0"
+ }
+ },
+ "node_modules/punycode": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmmirror.com/punycode/-/punycode-2.3.1.tgz",
+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/qs": {
+ "version": "6.11.0",
+ "resolved": "https://registry.npmmirror.com/qs/-/qs-6.11.0.tgz",
+ "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==",
+ "dependencies": {
+ "side-channel": "^1.0.4"
+ },
+ "engines": {
+ "node": ">=0.6"
+ }
+ },
+ "node_modules/queue-microtask": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmmirror.com/queue-microtask/-/queue-microtask-1.2.3.tgz",
+ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A=="
+ },
+ "node_modules/queue-tick": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/queue-tick/-/queue-tick-1.0.1.tgz",
+ "integrity": "sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag=="
+ },
+ "node_modules/range-parser": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmmirror.com/range-parser/-/range-parser-1.2.1.tgz",
+ "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/raw-body": {
+ "version": "2.5.2",
+ "resolved": "https://registry.npmmirror.com/raw-body/-/raw-body-2.5.2.tgz",
+ "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==",
+ "dependencies": {
+ "bytes": "3.1.2",
+ "http-errors": "2.0.0",
+ "iconv-lite": "0.4.24",
+ "unpipe": "1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/rcfinder": {
+ "version": "0.1.9",
+ "resolved": "https://registry.npmmirror.com/rcfinder/-/rcfinder-0.1.9.tgz",
+ "integrity": "sha512-rhSo812VIVaX7cxl33KkllHRwfLvjZL3lQedWEpQ27YlMFKZbFZsiVdCcQn/Z0FauLWxIpKrNREGuHbJFSi0Lw==",
+ "dependencies": {
+ "lodash.clonedeep": "^4.3.2"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/rcloader": {
+ "version": "0.2.2",
+ "resolved": "https://registry.npmmirror.com/rcloader/-/rcloader-0.2.2.tgz",
+ "integrity": "sha512-hSkFcFiLb5buT0X1fNI023M6tn0ywblKzF0hGzVCkTjEggT5tQUZI+fCG71utA7NiEyiBEc3trl/LDFFHzGIrw==",
+ "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.",
+ "dependencies": {
+ "lodash.assign": "^4.2.0",
+ "lodash.isobject": "^3.0.2",
+ "lodash.merge": "^4.6.0",
+ "rcfinder": "^0.1.6"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/read-pkg": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/read-pkg/-/read-pkg-1.1.0.tgz",
+ "integrity": "sha512-7BGwRHqt4s/uVbuyoeejRn4YmFnYZiFl4AuaeXHlgZf3sONF0SOGlxs2Pw8g6hCKupo08RafIO5YXFNOKTfwsQ==",
+ "dependencies": {
+ "load-json-file": "^1.0.0",
+ "normalize-package-data": "^2.3.2",
+ "path-type": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/read-pkg-up": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz",
+ "integrity": "sha512-WD9MTlNtI55IwYUS27iHh9tK3YoIVhxis8yKhLpTqWtml739uXc9NWTpxoHkfZf3+DkCCsXox94/VWZniuZm6A==",
+ "dependencies": {
+ "find-up": "^1.0.0",
+ "read-pkg": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/read-pkg-up/node_modules/find-up": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmmirror.com/find-up/-/find-up-1.1.2.tgz",
+ "integrity": "sha512-jvElSjyuo4EMQGoTwo1uJU5pQMwTW5lS1x05zzfJuTIyLR3zwO27LYrxNg+dlvKpGOuGy/MzBdXh80g0ve5+HA==",
+ "dependencies": {
+ "path-exists": "^2.0.0",
+ "pinkie-promise": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/read-pkg-up/node_modules/path-exists": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmmirror.com/path-exists/-/path-exists-2.1.0.tgz",
+ "integrity": "sha512-yTltuKuhtNeFJKa1PiRzfLAU5182q1y4Eb4XCJ3PBqyzEDkAZRzBrKKBct682ls9reBVHf9udYLN5Nd+K1B9BQ==",
+ "dependencies": {
+ "pinkie-promise": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/read-pkg/node_modules/path-type": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/path-type/-/path-type-1.1.0.tgz",
+ "integrity": "sha512-S4eENJz1pkiQn9Znv33Q+deTOKmbl+jj1Fl+qiP/vYezj+S8x+J3Uo0ISrx/QoEvIlOaDWJhPaRd1flJ9HXZqg==",
+ "dependencies": {
+ "graceful-fs": "^4.1.2",
+ "pify": "^2.0.0",
+ "pinkie-promise": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/readable-stream": {
+ "version": "2.3.8",
+ "resolved": "https://registry.npmmirror.com/readable-stream/-/readable-stream-2.3.8.tgz",
+ "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/readable-stream/node_modules/isarray": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/isarray/-/isarray-1.0.0.tgz",
+ "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ=="
+ },
+ "node_modules/readable-stream/node_modules/safe-buffer": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.1.2.tgz",
+ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
+ },
+ "node_modules/rechoir": {
+ "version": "0.6.2",
+ "resolved": "https://registry.npmmirror.com/rechoir/-/rechoir-0.6.2.tgz",
+ "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==",
+ "dependencies": {
+ "resolve": "^1.1.6"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/redis": {
+ "version": "4.6.13",
+ "resolved": "https://registry.npmmirror.com/redis/-/redis-4.6.13.tgz",
+ "integrity": "sha512-MHgkS4B+sPjCXpf+HfdetBwbRz6vCtsceTmw1pHNYJAsYxrfpOP6dz+piJWGos8wqG7qb3vj/Rrc5qOlmInUuA==",
+ "workspaces": [
+ "./packages/*"
+ ],
+ "dependencies": {
+ "@redis/bloom": "1.2.0",
+ "@redis/client": "1.5.14",
+ "@redis/graph": "1.1.1",
+ "@redis/json": "1.0.6",
+ "@redis/search": "1.1.6",
+ "@redis/time-series": "1.0.5"
+ }
+ },
+ "node_modules/redis-errors": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmmirror.com/redis-errors/-/redis-errors-1.2.0.tgz",
+ "integrity": "sha512-1qny3OExCf0UvUV/5wpYKf2YwPcOqXzkwKKSmKHiE6ZMQs5heeE/c8eXK+PNllPvmjgAbfnsbpkGZWy8cBpn9w==",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/redis-parser": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/redis-parser/-/redis-parser-3.0.0.tgz",
+ "integrity": "sha512-DJnGAeenTdpMEH6uAJRK/uiyEIH9WVsUmoLwzudwGJUwZPp80PDBWPHXSAGNPwNvIXAbe7MSUB1zQFugFml66A==",
+ "dependencies": {
+ "redis-errors": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/reflect-metadata": {
+ "version": "0.1.13",
+ "resolved": "https://registry.npmmirror.com/reflect-metadata/-/reflect-metadata-0.1.13.tgz",
+ "integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg=="
+ },
+ "node_modules/regenerate": {
+ "version": "1.4.2",
+ "resolved": "https://registry.npmmirror.com/regenerate/-/regenerate-1.4.2.tgz",
+ "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A=="
+ },
+ "node_modules/regenerate-unicode-properties": {
+ "version": "10.2.0",
+ "resolved": "https://registry.npmmirror.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.0.tgz",
+ "integrity": "sha512-DqHn3DwbmmPVzeKj9woBadqmXxLvQoQIwu7nopMc72ztvxVmVk2SBhSnx67zuye5TP+lJsb/TBQsjLKhnDf3MA==",
+ "dependencies": {
+ "regenerate": "^1.4.2"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/regenerator-runtime": {
+ "version": "0.14.1",
+ "resolved": "https://registry.npmmirror.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",
+ "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw=="
+ },
+ "node_modules/regenerator-transform": {
+ "version": "0.15.2",
+ "resolved": "https://registry.npmmirror.com/regenerator-transform/-/regenerator-transform-0.15.2.tgz",
+ "integrity": "sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==",
+ "dependencies": {
+ "@babel/runtime": "^7.8.4"
+ }
+ },
+ "node_modules/regex-not": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/regex-not/-/regex-not-1.0.2.tgz",
+ "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==",
+ "dependencies": {
+ "extend-shallow": "^3.0.2",
+ "safe-regex": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/regexpu-core": {
+ "version": "6.2.0",
+ "resolved": "https://registry.npmmirror.com/regexpu-core/-/regexpu-core-6.2.0.tgz",
+ "integrity": "sha512-H66BPQMrv+V16t8xtmq+UC0CBpiTBA60V8ibS1QVReIp8T1z8hwFxqcGzm9K6lgsN7sB5edVH8a+ze6Fqm4weA==",
+ "dependencies": {
+ "regenerate": "^1.4.2",
+ "regenerate-unicode-properties": "^10.2.0",
+ "regjsgen": "^0.8.0",
+ "regjsparser": "^0.12.0",
+ "unicode-match-property-ecmascript": "^2.0.0",
+ "unicode-match-property-value-ecmascript": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/regjsgen": {
+ "version": "0.8.0",
+ "resolved": "https://registry.npmmirror.com/regjsgen/-/regjsgen-0.8.0.tgz",
+ "integrity": "sha512-RvwtGe3d7LvWiDQXeQw8p5asZUmfU1G/l6WbUXeHta7Y2PEIvBTwH6E2EfmYUK8pxcxEdEmaomqyp0vZZ7C+3Q=="
+ },
+ "node_modules/regjsparser": {
+ "version": "0.12.0",
+ "resolved": "https://registry.npmmirror.com/regjsparser/-/regjsparser-0.12.0.tgz",
+ "integrity": "sha512-cnE+y8bz4NhMjISKbgeVJtqNbtf5QpjZP+Bslo+UqkIt9QPnX9q095eiRRASJG1/tz6dlNr6Z5NsBiWYokp6EQ==",
+ "dependencies": {
+ "jsesc": "~3.0.2"
+ },
+ "bin": {
+ "regjsparser": "bin/parser"
+ }
+ },
+ "node_modules/regjsparser/node_modules/jsesc": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmmirror.com/jsesc/-/jsesc-3.0.2.tgz",
+ "integrity": "sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==",
+ "bin": {
+ "jsesc": "bin/jsesc"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/relateurl": {
+ "version": "0.2.7",
+ "resolved": "https://registry.npmmirror.com/relateurl/-/relateurl-0.2.7.tgz",
+ "integrity": "sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/remove-bom-buffer": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/remove-bom-buffer/-/remove-bom-buffer-3.0.0.tgz",
+ "integrity": "sha512-8v2rWhaakv18qcvNeli2mZ/TMTL2nEyAKRvzo1WtnZBl15SHyEhrCu2/xKlJyUFKHiHgfXIyuY6g2dObJJycXQ==",
+ "dependencies": {
+ "is-buffer": "^1.1.5",
+ "is-utf8": "^0.2.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/remove-bom-stream": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmmirror.com/remove-bom-stream/-/remove-bom-stream-1.2.0.tgz",
+ "integrity": "sha512-wigO8/O08XHb8YPzpDDT+QmRANfW6vLqxfaXm1YXhnFf3AkSLyjfG3GEFg4McZkmgL7KvCj5u2KczkvSP6NfHA==",
+ "dependencies": {
+ "remove-bom-buffer": "^3.0.0",
+ "safe-buffer": "^5.1.0",
+ "through2": "^2.0.3"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/remove-bom-stream/node_modules/through2": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz",
+ "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==",
+ "dependencies": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "node_modules/remove-trailing-separator": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz",
+ "integrity": "sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw=="
+ },
+ "node_modules/repeat-element": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmmirror.com/repeat-element/-/repeat-element-1.1.4.tgz",
+ "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/repeat-string": {
+ "version": "1.6.1",
+ "resolved": "https://registry.npmmirror.com/repeat-string/-/repeat-string-1.6.1.tgz",
+ "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==",
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/replace-ext": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/replace-ext/-/replace-ext-1.0.1.tgz",
+ "integrity": "sha512-yD5BHCe7quCgBph4rMQ+0KkIRKwWCrHDOX1p1Gp6HwjPM5kVoCdKGNhN7ydqqsX6lJEnQDKZ/tFMiEdQ1dvPEw==",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/replace-homedir": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/replace-homedir/-/replace-homedir-1.0.0.tgz",
+ "integrity": "sha512-CHPV/GAglbIB1tnQgaiysb8H2yCy8WQ7lcEwQ/eT+kLj0QHV8LnJW0zpqpE7RSkrMSRoa+EBoag86clf7WAgSg==",
+ "dependencies": {
+ "homedir-polyfill": "^1.0.1",
+ "is-absolute": "^1.0.0",
+ "remove-trailing-separator": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/replacestream": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmmirror.com/replacestream/-/replacestream-4.0.3.tgz",
+ "integrity": "sha512-AC0FiLS352pBBiZhd4VXB1Ab/lh0lEgpP+GGvZqbQh8a5cmXVoTe5EX/YeTFArnp4SRGTHh1qCHu9lGs1qG8sA==",
+ "dependencies": {
+ "escape-string-regexp": "^1.0.3",
+ "object-assign": "^4.0.1",
+ "readable-stream": "^2.0.2"
+ }
+ },
+ "node_modules/replacestream/node_modules/escape-string-regexp": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
+ "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==",
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/request": {
+ "version": "2.88.2",
+ "resolved": "https://registry.npmmirror.com/request/-/request-2.88.2.tgz",
+ "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==",
+ "deprecated": "request has been deprecated, see https://github.com/request/request/issues/3142",
+ "dependencies": {
+ "aws-sign2": "~0.7.0",
+ "aws4": "^1.8.0",
+ "caseless": "~0.12.0",
+ "combined-stream": "~1.0.6",
+ "extend": "~3.0.2",
+ "forever-agent": "~0.6.1",
+ "form-data": "~2.3.2",
+ "har-validator": "~5.1.3",
+ "http-signature": "~1.2.0",
+ "is-typedarray": "~1.0.0",
+ "isstream": "~0.1.2",
+ "json-stringify-safe": "~5.0.1",
+ "mime-types": "~2.1.19",
+ "oauth-sign": "~0.9.0",
+ "performance-now": "^2.1.0",
+ "qs": "~6.5.2",
+ "safe-buffer": "^5.1.2",
+ "tough-cookie": "~2.5.0",
+ "tunnel-agent": "^0.6.0",
+ "uuid": "^3.3.2"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/request/node_modules/form-data": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmmirror.com/form-data/-/form-data-2.3.3.tgz",
+ "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==",
+ "dependencies": {
+ "asynckit": "^0.4.0",
+ "combined-stream": "^1.0.6",
+ "mime-types": "^2.1.12"
+ },
+ "engines": {
+ "node": ">= 0.12"
+ }
+ },
+ "node_modules/request/node_modules/qs": {
+ "version": "6.5.3",
+ "resolved": "https://registry.npmmirror.com/qs/-/qs-6.5.3.tgz",
+ "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==",
+ "engines": {
+ "node": ">=0.6"
+ }
+ },
+ "node_modules/request/node_modules/uuid": {
+ "version": "3.4.0",
+ "resolved": "https://registry.npmmirror.com/uuid/-/uuid-3.4.0.tgz",
+ "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==",
+ "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.",
+ "bin": {
+ "uuid": "bin/uuid"
+ }
+ },
+ "node_modules/require-directory": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmmirror.com/require-directory/-/require-directory-2.1.1.tgz",
+ "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/require-from-string": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/require-main-filename": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/require-main-filename/-/require-main-filename-1.0.1.tgz",
+ "integrity": "sha512-IqSUtOVP4ksd1C/ej5zeEh/BIP2ajqpn8c5x+q99gvcIG/Qf0cud5raVnE/Dwd0ua9TXYDoDc0RE5hBSdz22Ug=="
+ },
+ "node_modules/resolve": {
+ "version": "1.22.8",
+ "resolved": "https://registry.npmmirror.com/resolve/-/resolve-1.22.8.tgz",
+ "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==",
+ "dependencies": {
+ "is-core-module": "^2.13.0",
+ "path-parse": "^1.0.7",
+ "supports-preserve-symlinks-flag": "^1.0.0"
+ },
+ "bin": {
+ "resolve": "bin/resolve"
+ }
+ },
+ "node_modules/resolve-dir": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/resolve-dir/-/resolve-dir-1.0.1.tgz",
+ "integrity": "sha512-R7uiTjECzvOsWSfdM0QKFNBVFcK27aHOUwdvK53BcW8zqnGdYp0Fbj82cy54+2A4P2tFM22J5kRfe1R+lM/1yg==",
+ "dependencies": {
+ "expand-tilde": "^2.0.0",
+ "global-modules": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/resolve-options": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/resolve-options/-/resolve-options-1.1.0.tgz",
+ "integrity": "sha512-NYDgziiroVeDC29xq7bp/CacZERYsA9bXYd1ZmcJlF3BcrZv5pTb4NG7SjdyKDnXZ84aC4vo2u6sNKIA1LCu/A==",
+ "dependencies": {
+ "value-or-function": "^3.0.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/resolve-url": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmmirror.com/resolve-url/-/resolve-url-0.2.1.tgz",
+ "integrity": "sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg==",
+ "deprecated": "https://github.com/lydell/resolve-url#deprecated"
+ },
+ "node_modules/ret": {
+ "version": "0.1.15",
+ "resolved": "https://registry.npmmirror.com/ret/-/ret-0.1.15.tgz",
+ "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==",
+ "engines": {
+ "node": ">=0.12"
+ }
+ },
+ "node_modules/retry-as-promised": {
+ "version": "7.0.4",
+ "resolved": "https://registry.npmmirror.com/retry-as-promised/-/retry-as-promised-7.0.4.tgz",
+ "integrity": "sha512-XgmCoxKWkDofwH8WddD0w85ZfqYz+ZHlr5yo+3YUCfycWawU56T5ckWXsScsj5B8tqUcIG67DxXByo3VUgiAdA=="
+ },
+ "node_modules/reusify": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmmirror.com/reusify/-/reusify-1.0.4.tgz",
+ "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==",
+ "engines": {
+ "iojs": ">=1.0.0",
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/rev-hash": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/rev-hash/-/rev-hash-4.1.0.tgz",
+ "integrity": "sha512-e0EGnaveLY2IYpYwHNdh43WZ2M84KgW3Z/T4F6+Z/BlZI/T1ZbxTWj36xgYgUPOieGXYo2q225jTeUXn+LWYjw==",
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/rev-path": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/rev-path/-/rev-path-3.0.0.tgz",
+ "integrity": "sha512-2fUuv6IC7Z+Vj+DXEunJYJDZuwSsaJJHeLar3n2PGvHSH7j5+Xpd/Xh7PenekH4WQhxFuHtsGwd1dCh/HvT6Gw==",
+ "dependencies": {
+ "modify-filename": "^2.0.0"
+ },
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/rimraf": {
+ "version": "2.7.1",
+ "resolved": "https://registry.npmmirror.com/rimraf/-/rimraf-2.7.1.tgz",
+ "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==",
+ "dependencies": {
+ "glob": "^7.1.3"
+ },
+ "bin": {
+ "rimraf": "bin.js"
+ }
+ },
+ "node_modules/rimraf/node_modules/brace-expansion": {
+ "version": "1.1.11",
+ "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz",
+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/rimraf/node_modules/glob": {
+ "version": "7.2.3",
+ "resolved": "https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz",
+ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
+ "dependencies": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.1.1",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/rimraf/node_modules/minimatch": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz",
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/rollup-plugin-copy": {
+ "version": "3.5.0",
+ "resolved": "https://registry.npmmirror.com/rollup-plugin-copy/-/rollup-plugin-copy-3.5.0.tgz",
+ "integrity": "sha512-wI8D5dvYovRMx/YYKtUNt3Yxaw4ORC9xo6Gt9t22kveWz1enG9QrhVlagzwrxSC455xD1dHMKhIJkbsQ7d48BA==",
+ "dependencies": {
+ "@types/fs-extra": "^8.0.1",
+ "colorette": "^1.1.0",
+ "fs-extra": "^8.1.0",
+ "globby": "10.0.1",
+ "is-plain-object": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8.3"
+ }
+ },
+ "node_modules/run-parallel": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmmirror.com/run-parallel/-/run-parallel-1.2.0.tgz",
+ "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
+ "dependencies": {
+ "queue-microtask": "^1.2.2"
+ }
+ },
+ "node_modules/rxjs": {
+ "version": "7.8.1",
+ "resolved": "https://registry.npmmirror.com/rxjs/-/rxjs-7.8.1.tgz",
+ "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==",
+ "dependencies": {
+ "tslib": "^2.1.0"
+ }
+ },
+ "node_modules/safe-buffer": {
+ "version": "5.2.1",
+ "resolved": "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.2.1.tgz",
+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="
+ },
+ "node_modules/safe-regex": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/safe-regex/-/safe-regex-1.1.0.tgz",
+ "integrity": "sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg==",
+ "dependencies": {
+ "ret": "~0.1.10"
+ }
+ },
+ "node_modules/safer-buffer": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmmirror.com/safer-buffer/-/safer-buffer-2.1.2.tgz",
+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
+ },
+ "node_modules/sax": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmmirror.com/sax/-/sax-1.4.1.tgz",
+ "integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg=="
+ },
+ "node_modules/sdk-base": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/sdk-base/-/sdk-base-2.0.1.tgz",
+ "integrity": "sha512-eeG26wRwhtwYuKGCDM3LixCaxY27Pa/5lK4rLKhQa7HBjJ3U3Y+f81MMZQRsDw/8SC2Dao/83yJTXJ8aULuN8Q==",
+ "dependencies": {
+ "get-ready": "~1.0.0"
+ }
+ },
+ "node_modules/semver": {
+ "version": "5.7.2",
+ "resolved": "https://registry.npmmirror.com/semver/-/semver-5.7.2.tgz",
+ "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==",
+ "bin": {
+ "semver": "bin/semver"
+ }
+ },
+ "node_modules/semver-greatest-satisfied-range": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/semver-greatest-satisfied-range/-/semver-greatest-satisfied-range-1.1.0.tgz",
+ "integrity": "sha512-Ny/iyOzSSa8M5ML46IAx3iXc6tfOsYU2R4AXi2UpHk60Zrgyq6eqPj/xiOfS0rRl/iiQ/rdJkVjw/5cdUyCntQ==",
+ "dependencies": {
+ "sver-compat": "^1.5.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/send": {
+ "version": "0.18.0",
+ "resolved": "https://registry.npmmirror.com/send/-/send-0.18.0.tgz",
+ "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==",
+ "dependencies": {
+ "debug": "2.6.9",
+ "depd": "2.0.0",
+ "destroy": "1.2.0",
+ "encodeurl": "~1.0.2",
+ "escape-html": "~1.0.3",
+ "etag": "~1.8.1",
+ "fresh": "0.5.2",
+ "http-errors": "2.0.0",
+ "mime": "1.6.0",
+ "ms": "2.1.3",
+ "on-finished": "2.4.1",
+ "range-parser": "~1.2.1",
+ "statuses": "2.0.1"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/send/node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
+ },
+ "node_modules/seq-queue": {
+ "version": "0.0.5",
+ "resolved": "https://registry.npmmirror.com/seq-queue/-/seq-queue-0.0.5.tgz",
+ "integrity": "sha512-hr3Wtp/GZIc/6DAGPDcV4/9WoZhjrkXsi5B/07QgX8tsdc6ilr7BFM6PM6rbdAX1kFSDYeZGLipIZZKyQP0O5Q=="
+ },
+ "node_modules/sequelize": {
+ "version": "6.35.2",
+ "resolved": "https://registry.npmmirror.com/sequelize/-/sequelize-6.35.2.tgz",
+ "integrity": "sha512-EdzLaw2kK4/aOnWQ7ed/qh3B6/g+1DvmeXr66RwbcqSm/+QRS9X0LDI5INBibsy4eNJHWIRPo3+QK0zL+IPBHg==",
+ "dependencies": {
+ "@types/debug": "^4.1.8",
+ "@types/validator": "^13.7.17",
+ "debug": "^4.3.4",
+ "dottie": "^2.0.6",
+ "inflection": "^1.13.4",
+ "lodash": "^4.17.21",
+ "moment": "^2.29.4",
+ "moment-timezone": "^0.5.43",
+ "pg-connection-string": "^2.6.1",
+ "retry-as-promised": "^7.0.4",
+ "semver": "^7.5.4",
+ "sequelize-pool": "^7.1.0",
+ "toposort-class": "^1.0.1",
+ "uuid": "^8.3.2",
+ "validator": "^13.9.0",
+ "wkx": "^0.5.0"
+ },
+ "engines": {
+ "node": ">=10.0.0"
+ },
+ "peerDependenciesMeta": {
+ "ibm_db": {
+ "optional": true
+ },
+ "mariadb": {
+ "optional": true
+ },
+ "mysql2": {
+ "optional": true
+ },
+ "oracledb": {
+ "optional": true
+ },
+ "pg": {
+ "optional": true
+ },
+ "pg-hstore": {
+ "optional": true
+ },
+ "snowflake-sdk": {
+ "optional": true
+ },
+ "sqlite3": {
+ "optional": true
+ },
+ "tedious": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/sequelize-pool": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmmirror.com/sequelize-pool/-/sequelize-pool-6.1.0.tgz",
+ "integrity": "sha512-4YwEw3ZgK/tY/so+GfnSgXkdwIJJ1I32uZJztIEgZeAO6HMgj64OzySbWLgxj+tXhZCJnzRfkY9gINw8Ft8ZMg==",
+ "engines": {
+ "node": ">= 10.0.0"
+ }
+ },
+ "node_modules/sequelize/node_modules/debug": {
+ "version": "4.3.4",
+ "resolved": "https://registry.npmmirror.com/debug/-/debug-4.3.4.tgz",
+ "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/sequelize/node_modules/lru-cache": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-6.0.0.tgz",
+ "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/sequelize/node_modules/ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
+ },
+ "node_modules/sequelize/node_modules/semver": {
+ "version": "7.5.4",
+ "resolved": "https://registry.npmmirror.com/semver/-/semver-7.5.4.tgz",
+ "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==",
+ "dependencies": {
+ "lru-cache": "^6.0.0"
+ },
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/sequelize/node_modules/sequelize-pool": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmmirror.com/sequelize-pool/-/sequelize-pool-7.1.0.tgz",
+ "integrity": "sha512-G9c0qlIWQSK29pR/5U2JF5dDQeqqHRragoyahj/Nx4KOOQ3CPPfzxnfqFPCSB7x5UgjOgnZ61nSxz+fjDpRlJg==",
+ "engines": {
+ "node": ">= 10.0.0"
+ }
+ },
+ "node_modules/sequelize/node_modules/uuid": {
+ "version": "8.3.2",
+ "resolved": "https://registry.npmmirror.com/uuid/-/uuid-8.3.2.tgz",
+ "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
+ "bin": {
+ "uuid": "dist/bin/uuid"
+ }
+ },
+ "node_modules/serve-static": {
+ "version": "1.15.0",
+ "resolved": "https://registry.npmmirror.com/serve-static/-/serve-static-1.15.0.tgz",
+ "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==",
+ "dependencies": {
+ "encodeurl": "~1.0.2",
+ "escape-html": "~1.0.3",
+ "parseurl": "~1.3.3",
+ "send": "0.18.0"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/set-blocking": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/set-blocking/-/set-blocking-2.0.0.tgz",
+ "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw=="
+ },
+ "node_modules/set-function-length": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmmirror.com/set-function-length/-/set-function-length-1.2.2.tgz",
+ "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==",
+ "dependencies": {
+ "define-data-property": "^1.1.4",
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2",
+ "get-intrinsic": "^1.2.4",
+ "gopd": "^1.0.1",
+ "has-property-descriptors": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/set-value": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/set-value/-/set-value-2.0.1.tgz",
+ "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==",
+ "dependencies": {
+ "extend-shallow": "^2.0.1",
+ "is-extendable": "^0.1.1",
+ "is-plain-object": "^2.0.3",
+ "split-string": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/set-value/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz",
+ "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/set-value/node_modules/is-extendable": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz",
+ "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/set-value/node_modules/is-plain-object": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-2.0.4.tgz",
+ "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==",
+ "dependencies": {
+ "isobject": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/setprototypeof": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmmirror.com/setprototypeof/-/setprototypeof-1.2.0.tgz",
+ "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="
+ },
+ "node_modules/shebang-command": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-1.2.0.tgz",
+ "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==",
+ "dependencies": {
+ "shebang-regex": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/shebang-regex": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-1.0.0.tgz",
+ "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/shell-quote": {
+ "version": "1.8.1",
+ "resolved": "https://registry.npmmirror.com/shell-quote/-/shell-quote-1.8.1.tgz",
+ "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA=="
+ },
+ "node_modules/side-channel": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmmirror.com/side-channel/-/side-channel-1.0.4.tgz",
+ "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==",
+ "dependencies": {
+ "call-bind": "^1.0.0",
+ "get-intrinsic": "^1.0.2",
+ "object-inspect": "^1.9.0"
+ }
+ },
+ "node_modules/signal-exit": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmmirror.com/signal-exit/-/signal-exit-4.1.0.tgz",
+ "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
+ "engines": {
+ "node": ">=14"
+ }
+ },
+ "node_modules/slash": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/slash/-/slash-3.0.0.tgz",
+ "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/smtp-connection": {
+ "version": "2.12.0",
+ "resolved": "https://registry.npmjs.org/smtp-connection/-/smtp-connection-2.12.0.tgz",
+ "integrity": "sha512-UP5jK4s5SGcUcqPN4U9ingqKt9mXYSKa52YhqxPuMecAnUOsVJpOmtgGaOm1urUBJZlzDt1M9WhZZkgbhxQlvg==",
+ "dependencies": {
+ "httpntlm": "1.6.1",
+ "nodemailer-shared": "1.1.0"
+ }
+ },
+ "node_modules/snapdragon": {
+ "version": "0.8.2",
+ "resolved": "https://registry.npmmirror.com/snapdragon/-/snapdragon-0.8.2.tgz",
+ "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==",
+ "dependencies": {
+ "base": "^0.11.1",
+ "debug": "^2.2.0",
+ "define-property": "^0.2.5",
+ "extend-shallow": "^2.0.1",
+ "map-cache": "^0.2.2",
+ "source-map": "^0.5.6",
+ "source-map-resolve": "^0.5.0",
+ "use": "^3.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/snapdragon-node": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmmirror.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz",
+ "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==",
+ "dependencies": {
+ "define-property": "^1.0.0",
+ "isobject": "^3.0.0",
+ "snapdragon-util": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/snapdragon-node/node_modules/define-property": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/define-property/-/define-property-1.0.0.tgz",
+ "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==",
+ "dependencies": {
+ "is-descriptor": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/snapdragon-util": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmmirror.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz",
+ "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==",
+ "dependencies": {
+ "kind-of": "^3.2.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/snapdragon-util/node_modules/kind-of": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz",
+ "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==",
+ "dependencies": {
+ "is-buffer": "^1.1.5"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/snapdragon/node_modules/define-property": {
+ "version": "0.2.5",
+ "resolved": "https://registry.npmmirror.com/define-property/-/define-property-0.2.5.tgz",
+ "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==",
+ "dependencies": {
+ "is-descriptor": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/snapdragon/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz",
+ "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/snapdragon/node_modules/is-descriptor": {
+ "version": "0.1.7",
+ "resolved": "https://registry.npmmirror.com/is-descriptor/-/is-descriptor-0.1.7.tgz",
+ "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==",
+ "dependencies": {
+ "is-accessor-descriptor": "^1.0.1",
+ "is-data-descriptor": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/snapdragon/node_modules/is-extendable": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz",
+ "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/snapdragon/node_modules/source-map": {
+ "version": "0.5.7",
+ "resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.5.7.tgz",
+ "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/socket.io": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmmirror.com/socket.io/-/socket.io-2.5.0.tgz",
+ "integrity": "sha512-gGunfS0od3VpwDBpGwVkzSZx6Aqo9uOcf1afJj2cKnKFAoyl16fvhpsUhmUFd4Ldbvl5JvRQed6eQw6oQp6n8w==",
+ "dependencies": {
+ "debug": "~4.1.0",
+ "engine.io": "~3.6.0",
+ "has-binary2": "~1.0.2",
+ "socket.io-adapter": "~1.1.0",
+ "socket.io-client": "2.5.0",
+ "socket.io-parser": "~3.4.0"
+ }
+ },
+ "node_modules/socket.io-adapter": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmmirror.com/socket.io-adapter/-/socket.io-adapter-1.1.2.tgz",
+ "integrity": "sha512-WzZRUj1kUjrTIrUKpZLEzFZ1OLj5FwLlAFQs9kuZJzJi5DKdU7FsWc36SNmA8iDOtwBQyT8FkrriRM8vXLYz8g=="
+ },
+ "node_modules/socket.io-client": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmmirror.com/socket.io-client/-/socket.io-client-2.5.0.tgz",
+ "integrity": "sha512-lOO9clmdgssDykiOmVQQitwBAF3I6mYcQAo7hQ7AM6Ny5X7fp8hIJ3HcQs3Rjz4SoggoxA1OgrQyY8EgTbcPYw==",
+ "dependencies": {
+ "backo2": "1.0.2",
+ "component-bind": "1.0.0",
+ "component-emitter": "~1.3.0",
+ "debug": "~3.1.0",
+ "engine.io-client": "~3.5.0",
+ "has-binary2": "~1.0.2",
+ "indexof": "0.0.1",
+ "parseqs": "0.0.6",
+ "parseuri": "0.0.6",
+ "socket.io-parser": "~3.3.0",
+ "to-array": "0.1.4"
+ }
+ },
+ "node_modules/socket.io-client/node_modules/debug": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmmirror.com/debug/-/debug-3.1.0.tgz",
+ "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
+ "dependencies": {
+ "ms": "2.0.0"
+ }
+ },
+ "node_modules/socket.io-client/node_modules/socket.io-parser": {
+ "version": "3.3.3",
+ "resolved": "https://registry.npmmirror.com/socket.io-parser/-/socket.io-parser-3.3.3.tgz",
+ "integrity": "sha512-qOg87q1PMWWTeO01768Yh9ogn7chB9zkKtQnya41Y355S0UmpXgpcrFwAgjYJxu9BdKug5r5e9YtVSeWhKBUZg==",
+ "dependencies": {
+ "component-emitter": "~1.3.0",
+ "debug": "~3.1.0",
+ "isarray": "2.0.1"
+ }
+ },
+ "node_modules/socket.io-msgpack-parser": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/socket.io-msgpack-parser/-/socket.io-msgpack-parser-3.0.2.tgz",
+ "integrity": "sha512-1e76bJ1PCKi9H+JiYk+S29PBJvknHjQWM7Mtj0hjF2KxDA6b6rQxv3rTsnwBoz/haZOhlCDIMQvPATbqYeuMxg==",
+ "dependencies": {
+ "component-emitter": "~1.3.0",
+ "notepack.io": "~2.2.0"
+ }
+ },
+ "node_modules/socket.io-parser": {
+ "version": "3.4.3",
+ "resolved": "https://registry.npmmirror.com/socket.io-parser/-/socket.io-parser-3.4.3.tgz",
+ "integrity": "sha512-1rE4dZN3kCI/E5wixd393hmbqa78vVpkKmnEJhLeWoS/C5hbFYAbcSfnWoaVH43u9ToUVtzKjguxEZq+1XZfCQ==",
+ "dependencies": {
+ "component-emitter": "1.2.1",
+ "debug": "~4.1.0",
+ "isarray": "2.0.1"
+ },
+ "engines": {
+ "node": ">=10.0.0"
+ }
+ },
+ "node_modules/socket.io-parser/node_modules/component-emitter": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmmirror.com/component-emitter/-/component-emitter-1.2.1.tgz",
+ "integrity": "sha512-jPatnhd33viNplKjqXKRkGU345p263OIWzDL2wH3LGIGp5Kojo+uXizHmOADRvhGFFTnJqX3jBAKP6vvmSDKcA=="
+ },
+ "node_modules/socket.io-parser/node_modules/debug": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmmirror.com/debug/-/debug-4.1.1.tgz",
+ "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
+ "deprecated": "Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)",
+ "dependencies": {
+ "ms": "^2.1.1"
+ }
+ },
+ "node_modules/socket.io-parser/node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
+ },
+ "node_modules/socket.io/node_modules/debug": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmmirror.com/debug/-/debug-4.1.1.tgz",
+ "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
+ "deprecated": "Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)",
+ "dependencies": {
+ "ms": "^2.1.1"
+ }
+ },
+ "node_modules/socket.io/node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
+ },
+ "node_modules/sort-keys": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-5.1.0.tgz",
+ "integrity": "sha512-aSbHV0DaBcr7u0PVHXzM6NbZNAtrr9sF6+Qfs9UUVG7Ll3jQ6hHi8F/xqIIcn2rvIVbr0v/2zyjSdwSV47AgLQ==",
+ "dependencies": {
+ "is-plain-obj": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/sort-keys/node_modules/is-plain-obj": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz",
+ "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/source-map": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.6.1.tgz",
+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/source-map-resolve": {
+ "version": "0.5.3",
+ "resolved": "https://registry.npmmirror.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz",
+ "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==",
+ "deprecated": "See https://github.com/lydell/source-map-resolve#deprecated",
+ "dependencies": {
+ "atob": "^2.1.2",
+ "decode-uri-component": "^0.2.0",
+ "resolve-url": "^0.2.1",
+ "source-map-url": "^0.4.0",
+ "urix": "^0.1.0"
+ }
+ },
+ "node_modules/source-map-support": {
+ "version": "0.5.21",
+ "resolved": "https://registry.npmmirror.com/source-map-support/-/source-map-support-0.5.21.tgz",
+ "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",
+ "dependencies": {
+ "buffer-from": "^1.0.0",
+ "source-map": "^0.6.0"
+ }
+ },
+ "node_modules/source-map-url": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmmirror.com/source-map-url/-/source-map-url-0.4.1.tgz",
+ "integrity": "sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==",
+ "deprecated": "See https://github.com/lydell/source-map-url#deprecated"
+ },
+ "node_modules/sparkles": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/sparkles/-/sparkles-1.0.1.tgz",
+ "integrity": "sha512-dSO0DDYUahUt/0/pD/Is3VIm5TGJjludZ0HVymmhYF6eNA53PVLhnUk0znSYbH8IYBuJdCE+1luR22jNLMaQdw==",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/spawn-command": {
+ "version": "0.0.2",
+ "resolved": "https://registry.npmmirror.com/spawn-command/-/spawn-command-0.0.2.tgz",
+ "integrity": "sha512-zC8zGoGkmc8J9ndvml8Xksr1Amk9qBujgbF0JAIWO7kXr43w0h/0GJNM/Vustixu+YE8N/MTrQ7N31FvHUACxQ=="
+ },
+ "node_modules/spdx-correct": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmmirror.com/spdx-correct/-/spdx-correct-3.2.0.tgz",
+ "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==",
+ "dependencies": {
+ "spdx-expression-parse": "^3.0.0",
+ "spdx-license-ids": "^3.0.0"
+ }
+ },
+ "node_modules/spdx-exceptions": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmmirror.com/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz",
+ "integrity": "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w=="
+ },
+ "node_modules/spdx-expression-parse": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmmirror.com/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz",
+ "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==",
+ "dependencies": {
+ "spdx-exceptions": "^2.1.0",
+ "spdx-license-ids": "^3.0.0"
+ }
+ },
+ "node_modules/spdx-license-ids": {
+ "version": "3.0.17",
+ "resolved": "https://registry.npmmirror.com/spdx-license-ids/-/spdx-license-ids-3.0.17.tgz",
+ "integrity": "sha512-sh8PWc/ftMqAAdFiBu6Fy6JUOYjqDJBJvIhpfDMyHrr0Rbp5liZqd4TjtQ/RgfLjKFZb+LMx5hpml5qOWy0qvg=="
+ },
+ "node_modules/split-string": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmmirror.com/split-string/-/split-string-3.1.0.tgz",
+ "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==",
+ "dependencies": {
+ "extend-shallow": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/sqlstring": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmmirror.com/sqlstring/-/sqlstring-2.3.3.tgz",
+ "integrity": "sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg==",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/sshpk": {
+ "version": "1.18.0",
+ "resolved": "https://registry.npmmirror.com/sshpk/-/sshpk-1.18.0.tgz",
+ "integrity": "sha512-2p2KJZTSqQ/I3+HX42EpYOa2l3f8Erv8MWKsy2I9uf4wA7yFIkXRffYdsx86y6z4vHtV8u7g+pPlr8/4ouAxsQ==",
+ "dependencies": {
+ "asn1": "~0.2.3",
+ "assert-plus": "^1.0.0",
+ "bcrypt-pbkdf": "^1.0.0",
+ "dashdash": "^1.12.0",
+ "ecc-jsbn": "~0.1.1",
+ "getpass": "^0.1.1",
+ "jsbn": "~0.1.0",
+ "safer-buffer": "^2.0.2",
+ "tweetnacl": "~0.14.0"
+ },
+ "bin": {
+ "sshpk-conv": "bin/sshpk-conv",
+ "sshpk-sign": "bin/sshpk-sign",
+ "sshpk-verify": "bin/sshpk-verify"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/stack-trace": {
+ "version": "0.0.10",
+ "resolved": "https://registry.npmmirror.com/stack-trace/-/stack-trace-0.0.10.tgz",
+ "integrity": "sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg==",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/standard-as-callback": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmmirror.com/standard-as-callback/-/standard-as-callback-2.1.0.tgz",
+ "integrity": "sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A=="
+ },
+ "node_modules/static-extend": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmmirror.com/static-extend/-/static-extend-0.1.2.tgz",
+ "integrity": "sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g==",
+ "dependencies": {
+ "define-property": "^0.2.5",
+ "object-copy": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/static-extend/node_modules/define-property": {
+ "version": "0.2.5",
+ "resolved": "https://registry.npmmirror.com/define-property/-/define-property-0.2.5.tgz",
+ "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==",
+ "dependencies": {
+ "is-descriptor": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/static-extend/node_modules/is-descriptor": {
+ "version": "0.1.7",
+ "resolved": "https://registry.npmmirror.com/is-descriptor/-/is-descriptor-0.1.7.tgz",
+ "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==",
+ "dependencies": {
+ "is-accessor-descriptor": "^1.0.1",
+ "is-data-descriptor": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/statuses": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/statuses/-/statuses-2.0.1.tgz",
+ "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/stream-exhaust": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/stream-exhaust/-/stream-exhaust-1.0.2.tgz",
+ "integrity": "sha512-b/qaq/GlBK5xaq1yrK9/zFcyRSTNxmcZwFLGSTG0mXgZl/4Z6GgiyYOXOvY7N3eEvFRAG1bkDRz5EPGSvPYQlw=="
+ },
+ "node_modules/stream-http": {
+ "version": "2.8.2",
+ "resolved": "https://registry.npmmirror.com/stream-http/-/stream-http-2.8.2.tgz",
+ "integrity": "sha512-QllfrBhqF1DPcz46WxKTs6Mz1Bpc+8Qm6vbqOpVav5odAXwbyzwnEczoWqtxrsmlO+cJqtPrp/8gWKWjaKLLlA==",
+ "dependencies": {
+ "builtin-status-codes": "^3.0.0",
+ "inherits": "^2.0.1",
+ "readable-stream": "^2.3.6",
+ "to-arraybuffer": "^1.0.0",
+ "xtend": "^4.0.0"
+ }
+ },
+ "node_modules/stream-shift": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmmirror.com/stream-shift/-/stream-shift-1.0.3.tgz",
+ "integrity": "sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ=="
+ },
+ "node_modules/stream-to-array": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmmirror.com/stream-to-array/-/stream-to-array-2.3.0.tgz",
+ "integrity": "sha512-UsZtOYEn4tWU2RGLOXr/o/xjRBftZRlG3dEWoaHr8j4GuypJ3isitGbVyjQKAuMu+xbiop8q224TjiZWc4XTZA==",
+ "dependencies": {
+ "any-promise": "^1.1.0"
+ }
+ },
+ "node_modules/stream-wormhole": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/stream-wormhole/-/stream-wormhole-1.1.0.tgz",
+ "integrity": "sha512-gHFfL3px0Kctd6Po0M8TzEvt3De/xu6cnRrjlfYNhwbhLPLwigI2t1nc6jrzNuaYg5C4YF78PPFuQPzRiqn9ew==",
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/streamsearch": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz",
+ "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==",
+ "engines": {
+ "node": ">=10.0.0"
+ }
+ },
+ "node_modules/streamx": {
+ "version": "2.20.1",
+ "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.20.1.tgz",
+ "integrity": "sha512-uTa0mU6WUC65iUvzKH4X9hEdvSW7rbPxPtwfWiLMSj3qTdQbAiUboZTxauKfpFuGIGa1C2BYijZ7wgdUXICJhA==",
+ "dependencies": {
+ "fast-fifo": "^1.3.2",
+ "queue-tick": "^1.0.1",
+ "text-decoder": "^1.1.0"
+ },
+ "optionalDependencies": {
+ "bare-events": "^2.2.0"
+ }
+ },
+ "node_modules/string_decoder": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmmirror.com/string_decoder/-/string_decoder-1.1.1.tgz",
+ "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/string_decoder/node_modules/safe-buffer": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.1.2.tgz",
+ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
+ },
+ "node_modules/string-template": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/string-template/-/string-template-1.0.0.tgz",
+ "integrity": "sha512-SLqR3GBUXuoPP5MmYtD7ompvXiG87QjT6lzOszyXjTM86Uu7At7vNnt2xgyTLq5o9T4IxTYFyGxcULqpsmsfdg=="
+ },
+ "node_modules/string-width": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmmirror.com/string-width/-/string-width-5.1.2.tgz",
+ "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==",
+ "dependencies": {
+ "eastasianwidth": "^0.2.0",
+ "emoji-regex": "^9.2.2",
+ "strip-ansi": "^7.0.1"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/string-width-cjs": {
+ "name": "string-width",
+ "version": "4.2.3",
+ "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/string-width-cjs/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/string-width-cjs/node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
+ },
+ "node_modules/string-width-cjs/node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/stringz": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmmirror.com/stringz/-/stringz-2.1.0.tgz",
+ "integrity": "sha512-KlywLT+MZ+v0IRepfMxRtnSvDCMc3nR1qqCs3m/qIbSOWkNZYT8XHQA31rS3TnKp0c5xjZu3M4GY/2aRKSi/6A==",
+ "dependencies": {
+ "char-regex": "^1.0.2"
+ }
+ },
+ "node_modules/strip-ansi": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-7.1.0.tgz",
+ "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==",
+ "dependencies": {
+ "ansi-regex": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/strip-ansi-cjs": {
+ "name": "strip-ansi",
+ "version": "6.0.1",
+ "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-ansi-cjs/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-bom": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/strip-bom/-/strip-bom-2.0.0.tgz",
+ "integrity": "sha512-kwrX1y7czp1E69n2ajbG65mIo9dqvJ+8aBQXOGVxqwvNbsXdFM6Lq37dLAY3mknUwru8CfcCbfOLL/gMo+fi3g==",
+ "dependencies": {
+ "is-utf8": "^0.2.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/strip-bom-buf": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/strip-bom-buf/-/strip-bom-buf-3.0.1.tgz",
+ "integrity": "sha512-iJaWw2WroigLHzQysdc5WWeUc99p7ea7AEgB6JkY8CMyiO1yTVAA1gIlJJgORElUIR+lcZJkNl1OGChMhvc2Cw==",
+ "dependencies": {
+ "is-utf8": "^0.2.1"
+ },
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/strip-bom-stream": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/strip-bom-stream/-/strip-bom-stream-5.0.0.tgz",
+ "integrity": "sha512-Yo472mU+3smhzqeKlIxClre4s4pwtYZEvDNQvY/sJpnChdaxmKuwU28UVx/v1ORKNMxkmj1GBuvxJQyBk6wYMQ==",
+ "dependencies": {
+ "first-chunk-stream": "^5.0.0",
+ "strip-bom-buf": "^3.0.0"
+ },
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/strnum": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz",
+ "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA=="
+ },
+ "node_modules/supports-color": {
+ "version": "8.1.1",
+ "resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-8.1.1.tgz",
+ "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==",
+ "dependencies": {
+ "has-flag": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/supports-preserve-symlinks-flag": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
+ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/sver-compat": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmmirror.com/sver-compat/-/sver-compat-1.5.0.tgz",
+ "integrity": "sha512-aFTHfmjwizMNlNE6dsGmoAM4lHjL0CyiobWaFiXWSlD7cIxshW422Nb8KbXCmR6z+0ZEPY+daXJrDyh/vuwTyg==",
+ "dependencies": {
+ "es6-iterator": "^2.0.1",
+ "es6-symbol": "^3.1.1"
+ }
+ },
+ "node_modules/teex": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/teex/-/teex-1.0.1.tgz",
+ "integrity": "sha512-eYE6iEI62Ni1H8oIa7KlDU6uQBtqr4Eajni3wX7rpfXD8ysFx8z0+dri+KWEPWpBsxXfxu58x/0jvTVT1ekOSg==",
+ "dependencies": {
+ "streamx": "^2.12.5"
+ }
+ },
+ "node_modules/terser": {
+ "version": "5.26.0",
+ "resolved": "https://registry.npmmirror.com/terser/-/terser-5.26.0.tgz",
+ "integrity": "sha512-dytTGoE2oHgbNV9nTzgBEPaqAWvcJNl66VZ0BkJqlvp71IjO8CxdBx/ykCNb47cLnCmCvRZ6ZR0tLkqvZCdVBQ==",
+ "dependencies": {
+ "@jridgewell/source-map": "^0.3.3",
+ "acorn": "^8.8.2",
+ "commander": "^2.20.0",
+ "source-map-support": "~0.5.20"
+ },
+ "bin": {
+ "terser": "bin/terser"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/text-decoder": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/text-decoder/-/text-decoder-1.2.0.tgz",
+ "integrity": "sha512-n1yg1mOj9DNpk3NeZOx7T6jchTbyJS3i3cucbNN6FcdPriMZx7NsgrGpWWdWZZGxD7ES1XB+3uoqHMgOKaN+fg==",
+ "dependencies": {
+ "b4a": "^1.6.4"
+ }
+ },
+ "node_modules/textextensions": {
+ "version": "3.3.0",
+ "resolved": "https://registry.npmmirror.com/textextensions/-/textextensions-3.3.0.tgz",
+ "integrity": "sha512-mk82dS8eRABNbeVJrEiN5/UMSCliINAuz8mkUwH4SwslkNP//gbEzlWNS5au0z5Dpx40SQxzqZevZkn+WYJ9Dw==",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/thenify": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmmirror.com/thenify/-/thenify-3.3.1.tgz",
+ "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==",
+ "dependencies": {
+ "any-promise": "^1.0.0"
+ }
+ },
+ "node_modules/thenify-all": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmmirror.com/thenify-all/-/thenify-all-1.6.0.tgz",
+ "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==",
+ "dependencies": {
+ "thenify": ">= 3.1.0 < 4"
+ },
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/through": {
+ "version": "2.3.8",
+ "resolved": "https://registry.npmmirror.com/through/-/through-2.3.8.tgz",
+ "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg=="
+ },
+ "node_modules/through2": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmmirror.com/through2/-/through2-3.0.1.tgz",
+ "integrity": "sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww==",
+ "dependencies": {
+ "readable-stream": "2 || 3"
+ }
+ },
+ "node_modules/through2-filter": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/through2-filter/-/through2-filter-3.0.0.tgz",
+ "integrity": "sha512-jaRjI2WxN3W1V8/FMZ9HKIBXixtiqs3SQSX4/YGIiP3gL6djW48VoZq9tDqeCWs3MT8YY5wb/zli8VW8snY1CA==",
+ "dependencies": {
+ "through2": "~2.0.0",
+ "xtend": "~4.0.0"
+ }
+ },
+ "node_modules/through2-filter/node_modules/through2": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz",
+ "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==",
+ "dependencies": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "node_modules/time-stamp": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/time-stamp/-/time-stamp-1.1.0.tgz",
+ "integrity": "sha512-gLCeArryy2yNTRzTGKbZbloctj64jkZ57hj5zdraXue6aFgd6PmvVtEyiUU+hvU0v7q08oVv8r8ev0tRo6bvgw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/to-absolute-glob": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmmirror.com/to-absolute-glob/-/to-absolute-glob-2.0.2.tgz",
+ "integrity": "sha512-rtwLUQEwT8ZeKQbyFJyomBRYXyE16U5VKuy0ftxLMK/PZb2fkOsg5r9kHdauuVDbsNdIBoC/HCthpidamQFXYA==",
+ "dependencies": {
+ "is-absolute": "^1.0.0",
+ "is-negated-glob": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/to-array": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmmirror.com/to-array/-/to-array-0.1.4.tgz",
+ "integrity": "sha512-LhVdShQD/4Mk4zXNroIQZJC+Ap3zgLcDuwEdcmLv9CCO73NWockQDwyUnW/m8VX/EElfL6FcYx7EeutN4HJA6A=="
+ },
+ "node_modules/to-arraybuffer": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz",
+ "integrity": "sha512-okFlQcoGTi4LQBG/PgSYblw9VOyptsz2KJZqc6qtgGdes8VktzUQkj4BI2blit072iS8VODNcMA+tvnS9dnuMA=="
+ },
+ "node_modules/to-object-path": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmmirror.com/to-object-path/-/to-object-path-0.3.0.tgz",
+ "integrity": "sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg==",
+ "dependencies": {
+ "kind-of": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/to-object-path/node_modules/kind-of": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz",
+ "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==",
+ "dependencies": {
+ "is-buffer": "^1.1.5"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/to-regex": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmmirror.com/to-regex/-/to-regex-3.0.2.tgz",
+ "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==",
+ "dependencies": {
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "regex-not": "^1.0.2",
+ "safe-regex": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/to-regex-range": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmmirror.com/to-regex-range/-/to-regex-range-5.0.1.tgz",
+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
+ "dependencies": {
+ "is-number": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=8.0"
+ }
+ },
+ "node_modules/to-through": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/to-through/-/to-through-2.0.0.tgz",
+ "integrity": "sha512-+QIz37Ly7acM4EMdw2PRN389OneM5+d844tirkGp4dPKzI5OE72V9OsbFp+CIYJDahZ41ZV05hNtcPAQUAm9/Q==",
+ "dependencies": {
+ "through2": "^2.0.3"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/to-through/node_modules/through2": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz",
+ "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==",
+ "dependencies": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "node_modules/toidentifier": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/toidentifier/-/toidentifier-1.0.1.tgz",
+ "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
+ "engines": {
+ "node": ">=0.6"
+ }
+ },
+ "node_modules/toposort-class": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/toposort-class/-/toposort-class-1.0.1.tgz",
+ "integrity": "sha512-OsLcGGbYF3rMjPUf8oKktyvCiUxSbqMMS39m33MAjLTC1DVIH6x3WSt63/M77ihI09+Sdfk1AXvfhCEeUmC7mg=="
+ },
+ "node_modules/tough-cookie": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmmirror.com/tough-cookie/-/tough-cookie-2.5.0.tgz",
+ "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==",
+ "dependencies": {
+ "psl": "^1.1.28",
+ "punycode": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/tree-kill": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmmirror.com/tree-kill/-/tree-kill-1.2.2.tgz",
+ "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==",
+ "bin": {
+ "tree-kill": "cli.js"
+ }
+ },
+ "node_modules/tslib": {
+ "version": "2.6.2",
+ "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.6.2.tgz",
+ "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q=="
+ },
+ "node_modules/tunnel-agent": {
+ "version": "0.6.0",
+ "resolved": "https://registry.npmmirror.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
+ "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==",
+ "dependencies": {
+ "safe-buffer": "^5.0.1"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/tweetnacl": {
+ "version": "0.14.5",
+ "resolved": "https://registry.npmmirror.com/tweetnacl/-/tweetnacl-0.14.5.tgz",
+ "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA=="
+ },
+ "node_modules/type": {
+ "version": "2.7.2",
+ "resolved": "https://registry.npmmirror.com/type/-/type-2.7.2.tgz",
+ "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw=="
+ },
+ "node_modules/type-check": {
+ "version": "0.3.2",
+ "resolved": "https://registry.npmmirror.com/type-check/-/type-check-0.3.2.tgz",
+ "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==",
+ "dependencies": {
+ "prelude-ls": "~1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/type-is": {
+ "version": "1.6.18",
+ "resolved": "https://registry.npmmirror.com/type-is/-/type-is-1.6.18.tgz",
+ "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
+ "dependencies": {
+ "media-typer": "0.3.0",
+ "mime-types": "~2.1.24"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/typedarray": {
+ "version": "0.0.6",
+ "resolved": "https://registry.npmmirror.com/typedarray/-/typedarray-0.0.6.tgz",
+ "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA=="
+ },
+ "node_modules/uglify-js": {
+ "version": "3.17.4",
+ "resolved": "https://registry.npmmirror.com/uglify-js/-/uglify-js-3.17.4.tgz",
+ "integrity": "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==",
+ "bin": {
+ "uglifyjs": "bin/uglifyjs"
+ },
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/unc-path-regex": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmmirror.com/unc-path-regex/-/unc-path-regex-0.1.2.tgz",
+ "integrity": "sha512-eXL4nmJT7oCpkZsHZUOJo8hcX3GbsiDOa0Qu9F646fi8dT3XuSVopVqAcEiVzSKKH7UoDti23wNX3qGFxcW5Qg==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/underscore": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.7.0.tgz",
+ "integrity": "sha512-cp0oQQyZhUM1kpJDLdGO1jPZHgS/MpzoWYfe9+CM2h/QGDZlqwT2T3YGukuBdaNJ/CAPoeyAZRRHz8JFo176vA=="
+ },
+ "node_modules/undertaker": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmmirror.com/undertaker/-/undertaker-1.3.0.tgz",
+ "integrity": "sha512-/RXwi5m/Mu3H6IHQGww3GNt1PNXlbeCuclF2QYR14L/2CHPz3DFZkvB5hZ0N/QUkiXWCACML2jXViIQEQc2MLg==",
+ "dependencies": {
+ "arr-flatten": "^1.0.1",
+ "arr-map": "^2.0.0",
+ "bach": "^1.0.0",
+ "collection-map": "^1.0.0",
+ "es6-weak-map": "^2.0.1",
+ "fast-levenshtein": "^1.0.0",
+ "last-run": "^1.1.0",
+ "object.defaults": "^1.0.0",
+ "object.reduce": "^1.0.0",
+ "undertaker-registry": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/undertaker-registry": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/undertaker-registry/-/undertaker-registry-1.0.1.tgz",
+ "integrity": "sha512-UR1khWeAjugW3548EfQmL9Z7pGMlBgXteQpr1IZeZBtnkCJQJIJ1Scj0mb9wQaPvUZ9Q17XqW6TIaPchJkyfqw==",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/undici-types": {
+ "version": "5.26.5",
+ "resolved": "https://registry.npmmirror.com/undici-types/-/undici-types-5.26.5.tgz",
+ "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="
+ },
+ "node_modules/unescape": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/unescape/-/unescape-1.0.1.tgz",
+ "integrity": "sha512-O0+af1Gs50lyH1nUu3ZyYS1cRh01Q/kUKatTOkSs7jukXE6/NebucDVxyiDsA9AQ4JC1V1jUH9EO8JX2nMDgGQ==",
+ "dependencies": {
+ "extend-shallow": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/unescape/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz",
+ "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/unescape/node_modules/is-extendable": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz",
+ "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/unicode-canonical-property-names-ecmascript": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.1.tgz",
+ "integrity": "sha512-dA8WbNeb2a6oQzAQ55YlT5vQAWGV9WXOsi3SskE3bcCdM0P4SDd+24zS/OCacdRq5BkdsRj9q3Pg6YyQoxIGqg==",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/unicode-match-property-ecmascript": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz",
+ "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==",
+ "dependencies": {
+ "unicode-canonical-property-names-ecmascript": "^2.0.0",
+ "unicode-property-aliases-ecmascript": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/unicode-match-property-value-ecmascript": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmmirror.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.2.0.tgz",
+ "integrity": "sha512-4IehN3V/+kkr5YeSSDDQG8QLqO26XpL2XP3GQtqwlT/QYSECAwFztxVHjlbh0+gjJ3XmNLS0zDsbgs9jWKExLg==",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/unicode-property-aliases-ecmascript": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmmirror.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz",
+ "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/union-value": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/union-value/-/union-value-1.0.1.tgz",
+ "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==",
+ "dependencies": {
+ "arr-union": "^3.1.0",
+ "get-value": "^2.0.6",
+ "is-extendable": "^0.1.1",
+ "set-value": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/union-value/node_modules/is-extendable": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz",
+ "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/unique-stream": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmmirror.com/unique-stream/-/unique-stream-2.3.1.tgz",
+ "integrity": "sha512-2nY4TnBE70yoxHkDli7DMazpWiP7xMdCYqU2nBRO0UB+ZpEkGsSija7MvmvnZFUeC+mrgiUfcHSr3LmRFIg4+A==",
+ "dependencies": {
+ "json-stable-stringify-without-jsonify": "^1.0.1",
+ "through2-filter": "^3.0.0"
+ }
+ },
+ "node_modules/universalify": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmmirror.com/universalify/-/universalify-0.1.2.tgz",
+ "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",
+ "engines": {
+ "node": ">= 4.0.0"
+ }
+ },
+ "node_modules/unpipe": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/unpipe/-/unpipe-1.0.0.tgz",
+ "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/unset-value": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/unset-value/-/unset-value-1.0.0.tgz",
+ "integrity": "sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ==",
+ "dependencies": {
+ "has-value": "^0.3.1",
+ "isobject": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/unset-value/node_modules/has-value": {
+ "version": "0.3.1",
+ "resolved": "https://registry.npmmirror.com/has-value/-/has-value-0.3.1.tgz",
+ "integrity": "sha512-gpG936j8/MzaeID5Yif+577c17TxaDmhuyVgSwtnL/q8UUTySg8Mecb+8Cf1otgLoD7DDH75axp86ER7LFsf3Q==",
+ "dependencies": {
+ "get-value": "^2.0.3",
+ "has-values": "^0.1.4",
+ "isobject": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/unset-value/node_modules/has-value/node_modules/isobject": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmmirror.com/isobject/-/isobject-2.1.0.tgz",
+ "integrity": "sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==",
+ "dependencies": {
+ "isarray": "1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/unset-value/node_modules/has-values": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmmirror.com/has-values/-/has-values-0.1.4.tgz",
+ "integrity": "sha512-J8S0cEdWuQbqD9//tlZxiMuMNmxB8PlEwvYwuxsTmR1G5RXUePEX/SJn7aD0GMLieuZYSwNH0cQuJGwnYunXRQ==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/unset-value/node_modules/isarray": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/isarray/-/isarray-1.0.0.tgz",
+ "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ=="
+ },
+ "node_modules/upath": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmmirror.com/upath/-/upath-1.2.0.tgz",
+ "integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==",
+ "engines": {
+ "node": ">=4",
+ "yarn": "*"
+ }
+ },
+ "node_modules/update-browserslist-db": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmmirror.com/update-browserslist-db/-/update-browserslist-db-1.1.1.tgz",
+ "integrity": "sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A==",
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "dependencies": {
+ "escalade": "^3.2.0",
+ "picocolors": "^1.1.0"
+ },
+ "bin": {
+ "update-browserslist-db": "cli.js"
+ },
+ "peerDependencies": {
+ "browserslist": ">= 4.21.0"
+ }
+ },
+ "node_modules/upper-case": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmmirror.com/upper-case/-/upper-case-1.1.3.tgz",
+ "integrity": "sha512-WRbjgmYzgXkCV7zNVpy5YgrHgbBv126rMALQQMrmzOVC4GM2waQ9x7xtm8VU+1yF2kWyPzI9zbZ48n4vSxwfSA=="
+ },
+ "node_modules/uri-js": {
+ "version": "4.4.1",
+ "resolved": "https://registry.npmmirror.com/uri-js/-/uri-js-4.4.1.tgz",
+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
+ "dependencies": {
+ "punycode": "^2.1.0"
+ }
+ },
+ "node_modules/urix": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmmirror.com/urix/-/urix-0.1.0.tgz",
+ "integrity": "sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg==",
+ "deprecated": "Please see https://github.com/lydell/urix#deprecated"
+ },
+ "node_modules/urllib": {
+ "version": "2.44.0",
+ "resolved": "https://registry.npmmirror.com/urllib/-/urllib-2.44.0.tgz",
+ "integrity": "sha512-zRCJqdfYllRDA9bXUtx+vccyRqtJPKsw85f44zH7zPD28PIvjMqIgw9VwoTLV7xTBWZsbebUFVHU5ghQcWku2A==",
+ "dependencies": {
+ "any-promise": "^1.3.0",
+ "content-type": "^1.0.2",
+ "default-user-agent": "^1.0.0",
+ "digest-header": "^1.0.0",
+ "ee-first": "~1.1.1",
+ "formstream": "^1.1.0",
+ "humanize-ms": "^1.2.0",
+ "iconv-lite": "^0.6.3",
+ "pump": "^3.0.0",
+ "qs": "^6.4.0",
+ "statuses": "^1.3.1",
+ "utility": "^1.16.1"
+ },
+ "engines": {
+ "node": ">= 0.10.0"
+ },
+ "peerDependencies": {
+ "proxy-agent": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "proxy-agent": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/urllib/node_modules/iconv-lite": {
+ "version": "0.6.3",
+ "resolved": "https://registry.npmmirror.com/iconv-lite/-/iconv-lite-0.6.3.tgz",
+ "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/urllib/node_modules/pump": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmmirror.com/pump/-/pump-3.0.2.tgz",
+ "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==",
+ "dependencies": {
+ "end-of-stream": "^1.1.0",
+ "once": "^1.3.1"
+ }
+ },
+ "node_modules/urllib/node_modules/statuses": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmmirror.com/statuses/-/statuses-1.5.0.tgz",
+ "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/use": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmmirror.com/use/-/use-3.1.1.tgz",
+ "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/util": {
+ "version": "0.12.5",
+ "resolved": "https://registry.npmmirror.com/util/-/util-0.12.5.tgz",
+ "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==",
+ "dependencies": {
+ "inherits": "^2.0.3",
+ "is-arguments": "^1.0.4",
+ "is-generator-function": "^1.0.7",
+ "is-typed-array": "^1.1.3",
+ "which-typed-array": "^1.1.2"
+ }
+ },
+ "node_modules/util-deprecate": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/util-deprecate/-/util-deprecate-1.0.2.tgz",
+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
+ },
+ "node_modules/utility": {
+ "version": "1.18.0",
+ "resolved": "https://registry.npmmirror.com/utility/-/utility-1.18.0.tgz",
+ "integrity": "sha512-PYxZDA+6QtvRvm//++aGdmKG/cI07jNwbROz0Ql+VzFV1+Z0Dy55NI4zZ7RHc9KKpBePNFwoErqIuqQv/cjiTA==",
+ "dependencies": {
+ "copy-to": "^2.0.1",
+ "escape-html": "^1.0.3",
+ "mkdirp": "^0.5.1",
+ "mz": "^2.7.0",
+ "unescape": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.12.0"
+ }
+ },
+ "node_modules/utility/node_modules/mkdirp": {
+ "version": "0.5.6",
+ "resolved": "https://registry.npmmirror.com/mkdirp/-/mkdirp-0.5.6.tgz",
+ "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",
+ "dependencies": {
+ "minimist": "^1.2.6"
+ },
+ "bin": {
+ "mkdirp": "bin/cmd.js"
+ }
+ },
+ "node_modules/utils-merge": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/utils-merge/-/utils-merge-1.0.1.tgz",
+ "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
+ "engines": {
+ "node": ">= 0.4.0"
+ }
+ },
+ "node_modules/uuid": {
+ "version": "9.0.1",
+ "resolved": "https://registry.npmmirror.com/uuid/-/uuid-9.0.1.tgz",
+ "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",
+ "bin": {
+ "uuid": "dist/bin/uuid"
+ }
+ },
+ "node_modules/v8flags": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmmirror.com/v8flags/-/v8flags-3.2.0.tgz",
+ "integrity": "sha512-mH8etigqMfiGWdeXpaaqGfs6BndypxusHHcv2qSHyZkGEznCd/qAXCWWRzeowtL54147cktFOC4P5y+kl8d8Jg==",
+ "dependencies": {
+ "homedir-polyfill": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/validate-npm-package-license": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmmirror.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz",
+ "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==",
+ "dependencies": {
+ "spdx-correct": "^3.0.0",
+ "spdx-expression-parse": "^3.0.0"
+ }
+ },
+ "node_modules/validator": {
+ "version": "13.11.0",
+ "resolved": "https://registry.npmmirror.com/validator/-/validator-13.11.0.tgz",
+ "integrity": "sha512-Ii+sehpSfZy+At5nPdnyMhx78fEoPDkR2XW/zimHEL3MyGJQOCQ7WeP20jPYRz7ZCpcKLB21NxuXHF3bxjStBQ==",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/value-or-function": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/value-or-function/-/value-or-function-3.0.0.tgz",
+ "integrity": "sha512-jdBB2FrWvQC/pnPtIqcLsMaQgjhdb6B7tk1MMyTKapox+tQZbdRP4uLxu/JY0t7fbfDCUMnuelzEYv5GsxHhdg==",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/vary": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmmirror.com/vary/-/vary-1.1.2.tgz",
+ "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/verror": {
+ "version": "1.10.0",
+ "resolved": "https://registry.npmmirror.com/verror/-/verror-1.10.0.tgz",
+ "integrity": "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==",
+ "engines": [
+ "node >=0.6.0"
+ ],
+ "dependencies": {
+ "assert-plus": "^1.0.0",
+ "core-util-is": "1.0.2",
+ "extsprintf": "^1.2.0"
+ }
+ },
+ "node_modules/vinyl": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmmirror.com/vinyl/-/vinyl-2.2.1.tgz",
+ "integrity": "sha512-LII3bXRFBZLlezoG5FfZVcXflZgWP/4dCwKtxd5ky9+LOtM4CS3bIRQsmR1KMnMW07jpE8fqR2lcxPZ+8sJIcw==",
+ "dependencies": {
+ "clone": "^2.1.1",
+ "clone-buffer": "^1.0.0",
+ "clone-stats": "^1.0.0",
+ "cloneable-readable": "^1.0.0",
+ "remove-trailing-separator": "^1.0.1",
+ "replace-ext": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/vinyl-bufferstream": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/vinyl-bufferstream/-/vinyl-bufferstream-1.0.1.tgz",
+ "integrity": "sha512-yCCIoTf26Q9SQ0L9cDSavSL7Nt6wgQw8TU1B/bb9b9Z4A3XTypXCGdc5BvXl4ObQvVY8JrDkFnWa/UqBqwM2IA==",
+ "dependencies": {
+ "bufferstreams": "1.0.1"
+ }
+ },
+ "node_modules/vinyl-file": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/vinyl-file/-/vinyl-file-5.0.0.tgz",
+ "integrity": "sha512-MvkPF/yA1EX7c6p+juVIvp9+Lxp70YUfNKzEWeHMKpUNVSnTZh2coaOqLxI0pmOe2V9nB+OkgFaMDkodaJUyGw==",
+ "dependencies": {
+ "@types/vinyl": "^2.0.7",
+ "strip-bom-buf": "^3.0.1",
+ "strip-bom-stream": "^5.0.0",
+ "vinyl": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=14.16"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/vinyl-file/node_modules/replace-ext": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-2.0.0.tgz",
+ "integrity": "sha512-UszKE5KVK6JvyD92nzMn9cDapSk6w/CaFZ96CnmDMUqH9oowfxF/ZjRITD25H4DnOQClLA4/j7jLGXXLVKxAug==",
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/vinyl-file/node_modules/vinyl": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-3.0.0.tgz",
+ "integrity": "sha512-rC2VRfAVVCGEgjnxHUnpIVh3AGuk62rP3tqVrn+yab0YH7UULisC085+NYH+mnqf3Wx4SpSi1RQMwudL89N03g==",
+ "dependencies": {
+ "clone": "^2.1.2",
+ "clone-stats": "^1.0.0",
+ "remove-trailing-separator": "^1.1.0",
+ "replace-ext": "^2.0.0",
+ "teex": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/vinyl-fs": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmmirror.com/vinyl-fs/-/vinyl-fs-3.0.3.tgz",
+ "integrity": "sha512-vIu34EkyNyJxmP0jscNzWBSygh7VWhqun6RmqVfXePrOwi9lhvRs//dOaGOTRUQr4tx7/zd26Tk5WeSVZitgng==",
+ "dependencies": {
+ "fs-mkdirp-stream": "^1.0.0",
+ "glob-stream": "^6.1.0",
+ "graceful-fs": "^4.0.0",
+ "is-valid-glob": "^1.0.0",
+ "lazystream": "^1.0.0",
+ "lead": "^1.0.0",
+ "object.assign": "^4.0.4",
+ "pumpify": "^1.3.5",
+ "readable-stream": "^2.3.3",
+ "remove-bom-buffer": "^3.0.0",
+ "remove-bom-stream": "^1.2.0",
+ "resolve-options": "^1.1.0",
+ "through2": "^2.0.0",
+ "to-through": "^2.0.0",
+ "value-or-function": "^3.0.0",
+ "vinyl": "^2.0.0",
+ "vinyl-sourcemap": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/vinyl-fs/node_modules/through2": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz",
+ "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==",
+ "dependencies": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "node_modules/vinyl-sourcemap": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/vinyl-sourcemap/-/vinyl-sourcemap-1.1.0.tgz",
+ "integrity": "sha512-NiibMgt6VJGJmyw7vtzhctDcfKch4e4n9TBeoWlirb7FMg9/1Ov9k+A5ZRAtywBpRPiyECvQRQllYM8dECegVA==",
+ "dependencies": {
+ "append-buffer": "^1.0.2",
+ "convert-source-map": "^1.5.0",
+ "graceful-fs": "^4.1.6",
+ "normalize-path": "^2.1.1",
+ "now-and-later": "^2.0.0",
+ "remove-bom-buffer": "^3.0.0",
+ "vinyl": "^2.0.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/vinyl-sourcemap/node_modules/normalize-path": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmmirror.com/normalize-path/-/normalize-path-2.1.1.tgz",
+ "integrity": "sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==",
+ "dependencies": {
+ "remove-trailing-separator": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/vinyl-sourcemaps-apply": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmmirror.com/vinyl-sourcemaps-apply/-/vinyl-sourcemaps-apply-0.2.1.tgz",
+ "integrity": "sha512-+oDh3KYZBoZC8hfocrbrxbLUeaYtQK7J5WU5Br9VqWqmCll3tFJqKp97GC9GmMsVIL0qnx2DgEDVxdo5EZ5sSw==",
+ "dependencies": {
+ "source-map": "^0.5.1"
+ }
+ },
+ "node_modules/vinyl-sourcemaps-apply/node_modules/source-map": {
+ "version": "0.5.7",
+ "resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.5.7.tgz",
+ "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/which": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmmirror.com/which/-/which-1.3.1.tgz",
+ "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "which": "bin/which"
+ }
+ },
+ "node_modules/which-module": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/which-module/-/which-module-1.0.0.tgz",
+ "integrity": "sha512-F6+WgncZi/mJDrammbTuHe1q0R5hOXv/mBaiNA2TCNT/LTHusX0V+CJnj9XT8ki5ln2UZyyddDgHfCzyrOH7MQ=="
+ },
+ "node_modules/which-typed-array": {
+ "version": "1.1.15",
+ "resolved": "https://registry.npmmirror.com/which-typed-array/-/which-typed-array-1.1.15.tgz",
+ "integrity": "sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==",
+ "dependencies": {
+ "available-typed-arrays": "^1.0.7",
+ "call-bind": "^1.0.7",
+ "for-each": "^0.3.3",
+ "gopd": "^1.0.1",
+ "has-tostringtag": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/win-release": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmmirror.com/win-release/-/win-release-1.1.1.tgz",
+ "integrity": "sha512-iCRnKVvGxOQdsKhcQId2PXV1vV3J/sDPXKA4Oe9+Eti2nb2ESEsYHRYls/UjoUW3bIc5ZDO8dTH50A/5iVN+bw==",
+ "dependencies": {
+ "semver": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/wkx": {
+ "version": "0.5.0",
+ "resolved": "https://registry.npmmirror.com/wkx/-/wkx-0.5.0.tgz",
+ "integrity": "sha512-Xng/d4Ichh8uN4l0FToV/258EjMGU9MGcA0HV2d9B/ZpZB3lqQm7nkOdZdm5GhKtLLhAE7PiVQwN4eN+2YJJUg==",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
+ "node_modules/word-wrap": {
+ "version": "1.2.5",
+ "resolved": "https://registry.npmmirror.com/word-wrap/-/word-wrap-1.2.5.tgz",
+ "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/wrap-ansi": {
+ "version": "8.1.0",
+ "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz",
+ "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==",
+ "dependencies": {
+ "ansi-styles": "^6.1.0",
+ "string-width": "^5.0.1",
+ "strip-ansi": "^7.0.1"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/wrap-ansi-cjs": {
+ "name": "wrap-ansi",
+ "version": "7.0.0",
+ "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
+ },
+ "node_modules/wrap-ansi-cjs/node_modules/string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/wrap-ansi/node_modules/ansi-styles": {
+ "version": "6.2.1",
+ "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-6.2.1.tgz",
+ "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/wrappy": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/wrappy/-/wrappy-1.0.2.tgz",
+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
+ },
+ "node_modules/ws": {
+ "version": "7.4.6",
+ "resolved": "https://registry.npmmirror.com/ws/-/ws-7.4.6.tgz",
+ "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==",
+ "engines": {
+ "node": ">=8.3.0"
+ },
+ "peerDependencies": {
+ "bufferutil": "^4.0.1",
+ "utf-8-validate": "^5.0.2"
+ },
+ "peerDependenciesMeta": {
+ "bufferutil": {
+ "optional": true
+ },
+ "utf-8-validate": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/xml2js": {
+ "version": "0.6.2",
+ "resolved": "https://registry.npmmirror.com/xml2js/-/xml2js-0.6.2.tgz",
+ "integrity": "sha512-T4rieHaC1EXcES0Kxxj4JWgaUQHDk+qwHcYOCFHfiwKz7tOVPLq7Hjq9dM1WCMhylqMEfP7hMcOIChvotiZegA==",
+ "dependencies": {
+ "sax": ">=0.6.0",
+ "xmlbuilder": "~11.0.0"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/xmlbuilder": {
+ "version": "11.0.1",
+ "resolved": "https://registry.npmmirror.com/xmlbuilder/-/xmlbuilder-11.0.1.tgz",
+ "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==",
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/xmlhttprequest-ssl": {
+ "version": "1.6.3",
+ "resolved": "https://registry.npmmirror.com/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.6.3.tgz",
+ "integrity": "sha512-3XfeQE/wNkvrIktn2Kf0869fC0BN6UpydVasGIeSm2B1Llihf7/0UfZM+eCkOw3P7bP4+qPgqhm7ZoxuJtFU0Q==",
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/xtend": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmmirror.com/xtend/-/xtend-4.0.2.tgz",
+ "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",
+ "engines": {
+ "node": ">=0.4"
+ }
+ },
+ "node_modules/y18n": {
+ "version": "5.0.8",
+ "resolved": "https://registry.npmmirror.com/y18n/-/y18n-5.0.8.tgz",
+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/yallist": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmmirror.com/yallist/-/yallist-4.0.0.tgz",
+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
+ },
+ "node_modules/yargs": {
+ "version": "16.2.0",
+ "resolved": "https://registry.npmmirror.com/yargs/-/yargs-16.2.0.tgz",
+ "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==",
+ "dependencies": {
+ "cliui": "^7.0.2",
+ "escalade": "^3.1.1",
+ "get-caller-file": "^2.0.5",
+ "require-directory": "^2.1.1",
+ "string-width": "^4.2.0",
+ "y18n": "^5.0.5",
+ "yargs-parser": "^20.2.2"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/yargs-parser": {
+ "version": "20.2.4",
+ "resolved": "https://registry.npmmirror.com/yargs-parser/-/yargs-parser-20.2.4.tgz",
+ "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/yargs/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/yargs/node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
+ },
+ "node_modules/yargs/node_modules/string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/yargs/node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/yeast": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmmirror.com/yeast/-/yeast-0.1.2.tgz",
+ "integrity": "sha512-8HFIh676uyGYP6wP13R/j6OJ/1HwJ46snpvzE7aHAN3Ryqh2yX6Xox2B4CUmTwwOIzlG3Bs7ocsP5dZH/R1Qbg=="
+ }
+ }
+}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..754111a
--- /dev/null
+++ b/package.json
@@ -0,0 +1,69 @@
+{
+ "name": "tl-rtc-app",
+ "version": "0.0.1",
+ "description": "im chat",
+ "main": "main.js",
+ "scripts": {
+ "http-api": "cross-env tl_rtc_app_env_mode=http node tlapi",
+ "http-socket": "cross-env tl_rtc_app_env_mode=http node tlsocket",
+ "https-api": "cross-env tl_rtc_app_env_mode=https node tlapi",
+ "https-socket": "cross-env tl_rtc_app_env_mode=https node tlsocket"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/tl-open-source/tl-rtc-app"
+ },
+ "keywords": [
+ "none"
+ ],
+ "author": "iamtsm",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/preset-env": "^7.26.0",
+ "@grpc/grpc-js": "^1.8.0",
+ "@grpc/proto-loader": "^0.6.0",
+ "ali-oss": "^6.21.0",
+ "body-parser": "^1.20.2",
+ "bull": "^4.16.5",
+ "concurrently": "^8.2.0",
+ "cookie-parser": "^1.4.6",
+ "cos-nodejs-sdk-v5": "^2.14.0",
+ "cross-env": "^5.2.0",
+ "del": "^2.2.2",
+ "dotenv": "^16.3.1",
+ "express": "^4.17.1",
+ "glob": "^10.3.1",
+ "gulp": "^4.0.2",
+ "gulp-babel": "^8.0.0",
+ "gulp-clean-css": "^4.3.0",
+ "gulp-concat": "^2.6.1",
+ "gulp-footer": "^2.1.0",
+ "gulp-gzip": "^1.4.2",
+ "gulp-header": "^2.0.9",
+ "gulp-htmlmin": "^5.0.1",
+ "gulp-javascript-obfuscator": "^1.1.6",
+ "gulp-jshint": "^2.1.0",
+ "gulp-minify-css": "^1.2.4",
+ "gulp-rename": "^2.0.0",
+ "gulp-replace": "^1.1.3",
+ "gulp-rev": "^11.0.0",
+ "gulp-rev-all": "^4.0.0",
+ "gulp-uglify": "^3.0.2",
+ "gulp-uglify-es": "^3.0.0",
+ "lru-cache": "^10.0.1",
+ "minimist": "^1.2.5",
+ "multer": "^1.4.5-lts.1",
+ "mysql2": "^2.1.0",
+ "nodemailer": "^6.9.14",
+ "nodemailer-smtp-transport": "^2.7.4",
+ "redis": "^4.6.13",
+ "request": "^2.88.2",
+ "rollup-plugin-copy": "^3.4.0",
+ "sequelize": "^6.1.0",
+ "sequelize-pool": "^6.0.0",
+ "socket.io": "^2.3.0",
+ "socket.io-msgpack-parser": "^3.0.2",
+ "terser": "^5.18.2",
+ "uuid": "^9.0.1"
+ }
+}
diff --git a/src/biz/channel/channel_biz.js b/src/biz/channel/channel_biz.js
new file mode 100644
index 0000000..8d94fa7
--- /dev/null
+++ b/src/biz/channel/channel_biz.js
@@ -0,0 +1,1153 @@
+const {
+ tlResponseArgsError, tlResponseForbidden, tlResponseSvrError,
+ tlResponseTimeout, tlResponseNotFound, tlResponseSuccess,
+ tlConsoleError, setBit,
+ checkBit,
+ tlConsole
+} = require('../../utils/utils')
+const { getOssUrl, getAvatarOssUrl } = require('../../utils/oss/oss')
+const channelService = require('../../service/channel/tl_channel_service')
+const channelChatService = require('../../service/channel/tl_channel_chat_service')
+const channelUserService = require('../../service/channel/tl_channel_user_service')
+const userSessionService = require('../../service/user/tl_user_session_service')
+const userReadService = require('../../service/user/tl_user_read_service')
+const userService = require('../../service/user/tl_user_service')
+const userFriendService = require('../../service/user/tl_user_friend_service')
+
+const { fields: channelChatFields } = require('../../tables/tl_channel_chat')
+const { fields: channelUserFields} = require('../../tables/tl_channel_user')
+const { fields: userReadFields } = require('../../tables/tl_user_read')
+const { fields: channelFields } = require('../../tables/tl_channel')
+const { fields: userFields } = require('../../tables/tl_user')
+const { fields: userFriendFields } = require('../../tables/tl_user_friend')
+const { inner: TlRoleInner } = require('../../tables/tl_role')
+
+const {
+ Def: TlChannelDef, Type: TlChannelType,
+ Status: TlChannelStatus
+} = channelFields
+const {
+ Def: TlChannelUserDef, Type: TlChannelUserType,
+ Flag: TlChannelUserFlag
+} = channelUserFields
+const {
+ Def: TlUserDef
+} = userFields
+const {
+ Def: TlRoleInnerDef
+} = TlRoleInner
+const {
+ Def: TlChannelChatDef, Type: TlChannelChatType,
+ Other: TlChannelChatOther, Flag: TlChannelChatFlag
+} = channelChatFields
+const {
+ Def: TlUserReadDef, Type: TlUserReadType
+} = userReadFields
+const {
+ Def: TlUserFriendDef
+} = userFriendFields
+
+
+/**
+ * 根据频道id搜索频道
+ * @param {*} channelId
+ * @param {*} loginInfo
+ * @returns
+ */
+const searchChannelById = async function({channelId, loginInfo}){
+ if(!channelId){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId, loginUserCompanyName
+ } = loginInfo
+
+ const channelInfo = await channelService.getInfoById({
+ companyId: loginUserCompanyId,
+ id: channelId
+ })
+
+ if(Object.keys(channelInfo).length == 0){
+ return tlResponseNotFound("频道不存在")
+ }
+
+ const channelType = channelInfo[TlChannelDef.type]
+ if(channelType === TlChannelType.FRIEND){
+ return tlResponseSuccess("获取失败,频道不存在")
+ }
+
+ const channelAvatar = "/image/group-default-avatar.png"
+
+ // 获取频道用户数量
+ const channelUserCount = await channelUserService.getCountByChannelId({
+ companyId: loginUserCompanyId, channelId: channelId
+ })
+
+ // 获取频道用户信息
+ const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({
+ companyId: loginUserCompanyId, channelId, userId: loginUserId
+ }, [
+ TlChannelUserDef.id
+ ])
+
+ let isChannelUser = false
+ if(Object.keys(channelUserInfo).length > 0){
+ isChannelUser = true
+ }
+
+ return tlResponseSuccess("获取频道信息成功", {
+ channelId: channelId,
+ channelName: channelInfo[TlChannelDef.name],
+ channelAvatar: channelAvatar,
+ channelUserCount: channelUserCount,
+ channelType: 'group',
+ isChannelUser: isChannelUser,
+ companyName: loginUserCompanyName
+ })
+}
+
+
+/**
+ * 添加群聊频道
+ * @param {*} channelName
+ * @param {*} loginInfo
+ */
+const addChannel = async function({channelName, loginInfo}){
+ if(!channelName){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ channelName = channelName.trim()
+ if(!channelName){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId, loginUsername
+ } = loginInfo
+
+ const channelInfo = await channelService.addInfo({
+ companyId: loginUserCompanyId,
+ name: channelName,
+ type: TlChannelType.GROUP,
+ })
+
+ if(Object.keys(channelInfo).length === 0){
+ return tlResponseSvrError("添加频道失败")
+ }
+
+ // 添加频道用户信息
+ const channelUserInfo = await channelUserService.addInfo({
+ companyId: loginUserCompanyId,
+ channelId: channelInfo[TlChannelDef.id],
+ type: TlChannelUserType.GROUP,
+ userId: loginUserId,
+ roleId : TlRoleInner.channel.creator.id,
+ })
+
+ if(!channelUserInfo){
+ return tlResponseSvrError("添加频道失败")
+ }
+
+ // 更新用户频道角色
+ await userSessionService.updateUserChannelRoleMap({
+ userId: loginUserId,
+ channelRoleMap: {
+ [channelInfo[TlChannelDef.id]]: TlRoleInner.channel.creator.id,
+ }
+ })
+
+ // 生成一条系统消息
+ const channelChatSystemInfo = await channelChatService.addSystemChatnfo({
+ companyId: loginUserCompanyId,
+ channelId: channelInfo[TlChannelDef.id],
+ message: '
' + `${loginUsername}创建了群聊${channelName}` + '
',
+ other: JSON.stringify({
+ [TlChannelChatOther.ip]: '',
+ }),
+ messageTimeStamp: Date.now(),
+ messageVersion: 'v1',
+ flag: 0
+ })
+
+ if(Object.keys(channelChatSystemInfo).length == 0){
+ return tlConsoleError("添加新频道, 生成系统消息失败")
+ }
+
+ return tlResponseSuccess("添加频道成功", {
+ channelId: channelInfo[TlChannelDef.id]
+ })
+}
+
+
+/**
+ * 修改频道名称
+ * @param {*} channelId
+ * @param {*} channelName
+ * @param {*} loginInfo
+ */
+const updateChannel = async function({channelId, channelName, loginInfo}){
+ if(!channelId){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if(!channelName){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ const channelInfo = await channelService.updateInfoById({
+ companyId: loginUserCompanyId, channelId
+ }, {
+ name: channelName,
+ })
+
+ if(Object.keys(channelInfo).length == 0){
+ return tlResponseSvrError("修改频道失败")
+ }
+
+ return tlResponseSuccess("修改频道成功")
+}
+
+
+/**
+ * 获取频道列表
+ * @param {*} loginInfo
+ */
+const getChannelList = async function({loginInfo}){
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ // 获取自己相关的频道列表
+ const channelUserList = await channelUserService.getListByUserId({
+ companyId: loginUserCompanyId,
+ userId: loginUserId
+ }, [
+ TlChannelUserDef.channelId
+ ])
+
+ const channelIdList = channelUserList.map(channelUser => channelUser[TlChannelUserDef.channelId])
+
+ resultList = await initChannelListInfo({
+ channelIdList, loginUserCompanyId, loginUserId
+ })
+
+ return tlResponseSuccess("获取频道列表成功", resultList)
+}
+
+
+/**
+ * 获取频道简单列表
+ * @param {*} loginInfo
+ */
+const getChannelSimpleList = async function({loginInfo}){
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ // 获取自己相关的频道列表
+ const channelUserList = await channelUserService.getListByUserId({
+ companyId: loginUserCompanyId,
+ userId: loginUserId
+ }, [
+ TlChannelUserDef.channelId
+ ])
+
+ const channelIdList = channelUserList.map(channelUser => channelUser[TlChannelUserDef.channelId])
+ // 获取频道列表
+ const channelList = await channelService.getListByIdList({
+ companyId: loginUserCompanyId,
+ idList: channelIdList
+ }, [
+ TlChannelDef.id,
+ TlChannelDef.name,
+ TlChannelDef.type,
+ ])
+
+ // 获取好友频道用户列表,用于替换好友频道的频道名称为好友名称
+ const friendChannelList = channelList.filter(channel => channel[TlChannelDef.type] === TlChannelType.FRIEND)
+ const friendChannelIdList = friendChannelList.map(channel => channel[TlChannelDef.id])
+ // 构建好友频道用户映射
+ const channelUserFriendMap = await initFriendChannelListName({
+ channelIdList: friendChannelIdList, loginUserCompanyId, loginUserId
+ })
+
+ let resultList = []
+
+ for (let i = 0; i < channelList.length; i++) {
+ const channel = channelList[i]
+
+ const channelId = channel[TlChannelDef.id]
+
+ const channelType = channel[TlChannelDef.type]
+ let channelTypeStr = ''
+ if(channelType === TlChannelType.GROUP){
+ channelTypeStr = "group"
+ }else if(channelType === TlChannelType.FRIEND){
+ channelTypeStr = "friend"
+ }
+
+ // 如果是好友频道,替换频道名称,头像为好友名称
+ const friendInfo = channelUserFriendMap[channelId] || {}
+ let channelName = channel[TlChannelDef.name]
+ if(channelType === TlChannelType.FRIEND){
+ channelName = friendInfo[TlUserDef.name]
+ }
+
+ // 如果有备注,显示备注
+ const channelReName = friendInfo[TlUserFriendDef.rename]
+
+ let channelAvatar = '/image/friend-default-avatar.png'
+ if(channelType === TlChannelType.GROUP){
+ channelAvatar = "/image/group-default-avatar.png"
+ }else if(channelType === TlChannelType.FRIEND){
+ channelAvatar = await getOssUrl(friendInfo[TlUserDef.avatarUrl])
+ }
+
+ resultList.push({
+ channelId: channelId,
+ channelName: channelName,
+ channelReName: channelReName,
+ channelType: channelType === TlChannelType.GROUP ? "group" : "friend",
+ channelAvatar: channelAvatar,
+ })
+ }
+
+ return tlResponseSuccess("获取频道列表成功", resultList)
+}
+
+
+/**
+ * 获取单个频道信息
+ * @param {*} loginInfo
+ * @param {*} channelId
+ */
+const getChannelInfo = async function({loginInfo, channelId}){
+ if(!channelId){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ const channelIdList = [channelId]
+
+ resultList = await initChannelListInfo({
+ channelIdList, loginUserCompanyId, loginUserId
+ })
+
+ if(resultList.length == 0){
+ return tlResponseNotFound("频道不存在")
+ }
+
+ return tlResponseSuccess("获取频道数据成功", resultList[0])
+}
+
+
+/**
+ * 获取频道列表信息,获取单个频道信息的公共初始化流程
+ * @param {*} channelIdList
+ * @param {*} loginUserCompanyId
+ * @param {*} loginUserId
+ * @returns
+ */
+const initChannelListInfo = async function({
+ channelIdList, loginUserCompanyId, loginUserId
+}){
+ if(!channelIdList){
+ return []
+ }
+
+ if(!loginUserId){
+ return []
+ }
+
+ if(channelIdList.length == 0){
+ return []
+ }
+
+ // 获取频道列表
+ const channelList = await channelService.getListByIdList({
+ companyId: loginUserCompanyId,
+ idList: channelIdList
+ })
+
+ // 获取频道用户数量
+ const channelUserCounts = await channelUserService.getCountByChannelIdList({
+ companyId: loginUserCompanyId, channelIdList
+ })
+ const channelUserCountsMap = {}
+ channelUserCounts.forEach(item => {
+ channelUserCountsMap[item[TlChannelUserDef.channelId]] = item.count
+ })
+
+ // 获取当前用户在频道的数据
+ const channelUserInfoList = await channelUserService.getListByUserId({
+ companyId: loginUserCompanyId,
+ userId: loginUserId
+ }, [
+ TlChannelUserDef.channelId,
+ TlChannelUserDef.flag
+ ])
+
+ const channelUserInfoMap = {}
+ channelUserInfoList.forEach(item => {
+ channelUserInfoMap[item[TlChannelUserDef.channelId]] = item
+ })
+
+ //获取频道消息数量
+ const channelChatCounts = await channelChatService.getCountByChannelIdList({
+ companyId: loginUserCompanyId, channelIdList
+ })
+ const channelChatCountsMap = {}
+ channelChatCounts.forEach(item => {
+ channelChatCountsMap[item[TlChannelChatDef.channelId]] = item.count
+ })
+
+ // 获取好友频道用户列表,用于替换好友频道的频道名称为好友名称
+ const friendChannelList = channelList.filter(channel => channel[TlChannelDef.type] === TlChannelType.FRIEND)
+ const friendChannelIdList = friendChannelList.map(channel => channel[TlChannelDef.id])
+ // 构建好友频道用户映射
+ const channelUserFriendMap = await initFriendChannelListName({
+ channelIdList: friendChannelIdList, loginUserCompanyId, loginUserId
+ })
+
+ let resultList = []
+ for (let i = 0; i < channelList.length; i++) {
+ const channel = channelList[i]
+
+ const channelId = channel[TlChannelDef.id]
+ const flag = channel[TlChannelDef.flag]
+ const channelUserInfo = channelUserInfoMap[channelId] || {}
+ const channelUserFlag = channelUserInfo[TlChannelUserDef.flag] || 0
+ const channelUserRole = channelUserInfo[TlChannelUserDef.roleId] || 0
+
+ const channelType = channel[TlChannelDef.type]
+ let channelTypeStr = ''
+ if(channelType === TlChannelType.GROUP){
+ channelTypeStr = "group"
+ }else if(channelType === TlChannelType.FRIEND){
+ channelTypeStr = "friend"
+ }
+
+ // 如果是好友频道,替换频道名称,头像为好友名称
+ const friendInfo = channelUserFriendMap[channelId] || {}
+
+ let channelName = channel[TlChannelDef.name]
+ if(channelType === TlChannelType.FRIEND){
+ channelName = friendInfo[TlUserDef.name]
+ }
+
+ // 如果有备注,显示备注
+ const channelReName = friendInfo[TlUserFriendDef.rename]
+
+ let channelAvatar = '/image/friend-default-avatar.png'
+ if(channelType === TlChannelType.GROUP){
+ channelAvatar = "/image/group-default-avatar.png"
+ }else if(channelType === TlChannelType.FRIEND){
+ channelAvatar = await getOssUrl(friendInfo[TlUserDef.avatarUrl])
+ }
+
+ resultList.push({
+ channelId: channelId,
+ channelName: channelName,
+ channelReName: channelReName,
+ channelType: channelTypeStr,
+ channelAvatar: channelAvatar,
+ channelUserCount: channelUserCountsMap[channelId] || 0,
+ channelChatCount: channelChatCountsMap[channelId] || 0,
+ channelChatUnReadCount: 0,
+ channelTop: checkBit(channelUserFlag, TlChannelUserFlag.IS_SET_TOP),
+ channelBlack: checkBit(channelUserFlag, TlChannelUserFlag.IS_SET_BLACK),
+ channelMessageAllLoad: false,
+ channelRole: channelUserRole,
+ createTime: channel[TlChannelDef.createdAt],
+ extra: {}
+ })
+ }
+
+ resultList = resultList.reverse()
+
+ return resultList
+}
+
+
+/**
+ * 初始化好友频道列表名称
+ * @param {*} channelIdList
+ * @param {*} loginUserCompanyId
+ * @param {*} loginUserId
+ */
+const initFriendChannelListName = async function({
+ channelIdList, loginUserCompanyId, loginUserId
+}){
+ if(!channelIdList){
+ return {}
+ }
+
+ if(!loginUserId){
+ return {}
+ }
+
+ if(channelIdList.length == 0){
+ return {}
+ }
+
+ // 获取好友频道用户列表,用于替换好友频道的频道名称为好友名称
+ let channelUserFriendList = await channelUserService.getListByChannelIdList({
+ companyId: loginUserCompanyId,
+ channelIdList: channelIdList
+ }, [
+ TlChannelUserDef.channelId,
+ TlChannelUserDef.userId
+ ])
+ channelUserFriendList = channelUserFriendList.filter(item => item[TlChannelUserDef.userId] != loginUserId)
+
+ // 查询用户信息
+ const userFriendMap = {}
+ const userFriendIdList = channelUserFriendList.map(item => {
+ if(item[TlChannelUserDef.userId] == loginUserId){
+ return
+ }
+ return item[TlChannelUserDef.userId]
+ })
+ const userFriendList = await userService.getListByIdList({
+ companyId: loginUserCompanyId,
+ idList: userFriendIdList
+ }, [
+ TlUserDef.id,
+ TlUserDef.name,
+ TlUserDef.avatarUrl
+ ])
+ userFriendList.forEach(user => {
+ userFriendMap[user[TlUserDef.id]] = user
+ })
+
+ // 查询好友备注
+ const userFriendRenameMap = {}
+ const userFriendRenameList = await userFriendService.getListByUserIdAndFriendIdList({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ friendIdList: userFriendIdList
+ }, [
+ TlUserFriendDef.friendId,
+ TlUserFriendDef.rename
+ ])
+ userFriendRenameList.forEach(item => {
+ const friendId = item[TlUserFriendDef.friendId]
+ userFriendRenameMap[friendId] = item[TlUserFriendDef.rename]
+ })
+
+ // 构建好友频道用户映射
+ let channelUserFriendMap = {}
+ channelUserFriendList.forEach(channelUser => {
+ const channelUserId = channelUser[TlChannelUserDef.userId]
+ const channelId = channelUser[TlChannelUserDef.channelId]
+ // 用户信息
+ let userFriendInfo = userFriendMap[channelUserId] || {}
+ // 好友备注
+ const rename = userFriendRenameMap[channelUserId] || ""
+ channelUserFriendMap[channelId] = {
+ [TlUserDef.id]: userFriendInfo[TlUserDef.id],
+ [TlUserDef.name]: userFriendInfo[TlUserDef.name],
+ [TlUserDef.avatarUrl]: userFriendInfo[TlUserDef.avatarUrl],
+ [TlUserFriendDef.rename]: rename
+ }
+ })
+
+ return channelUserFriendMap
+}
+
+
+/**
+ * 修改频道名称
+ * @param {*} channelId
+ * @param {*} channelName
+ * @param {*} loginInfo
+ * @returns
+ */
+const updateChannelName = async function({channelId, channelName, loginInfo}){
+ if(!channelId){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if(!channelName){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ const channelInfo = await channelService.getInfoById({
+ companyId: loginUserCompanyId,
+ id: channelId
+ })
+
+ if(Object.keys(channelInfo).length == 0){
+ return tlResponseNotFound("频道不存在")
+ }
+
+ const updateChannelInfo = await channelService.updateInfoById({
+ companyId: loginUserCompanyId,
+ id: channelId
+ }, {
+ name: channelName,
+ })
+
+ if(Object.keys(updateChannelInfo).length == 0){
+ return tlResponseSvrError("修改频道名称失败")
+ }
+
+ return tlResponseSuccess("修改频道名称成功")
+}
+
+
+/**
+ * 获取频道名称
+ * @param {*} channelId
+ * @param {*} loginInfo
+ * @returns
+ */
+const getChannelNameById = async function({ loginInfo, channelId}){
+ if(!channelId){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ const channelInfo = await channelService.getInfoById({
+ companyId: loginUserCompanyId,
+ id: channelId
+ }, [
+ TlChannelDef.name
+ ])
+
+ if(Object.keys(channelInfo).length == 0){
+ return tlResponseSuccess("获取成功", {
+ channelName: ''
+ })
+ }
+
+ const channelName = channelInfo[TlChannelDef.name] || ""
+
+ return tlResponseSuccess("获取成功", {
+ channelName
+ })
+}
+
+
+/**
+ * 获取频道聊天列表
+ * @param {*} loginInfo
+ * @param {*} channelId
+ * @param {*} chatMinId
+ */
+const getChannelChatList = async function ({
+ loginInfo, channelId, chatMinId,
+}) {
+ if (!channelId) {
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ // 按时间范围获取聊天记录,拿第一页的数据即可
+ // 调整pageSize需要同步调整前端 更新channelMessageAllLoad逻辑
+ const page = 1
+ const pageSize = 20
+
+ chatMinId = parseInt(chatMinId)
+
+ // 已读消息列表
+ const userReadList = await userReadService.getListByChannelUserId({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ channelId
+ }, [
+ TlUserReadDef.type,
+ TlUserReadDef.latestReadId
+ ])
+
+ let userReadMap = {}
+ userReadList.forEach(item => {
+ userReadMap[item[TlUserReadDef.type]] = item[TlUserReadDef.latestReadId]
+ })
+
+ let chatPromise = null
+
+ // 聊天消息
+ if(chatMinId !== -1){
+ chatPromise = channelChatService.getListByChannelIdAndMinIdForPage({
+ companyId: loginUserCompanyId, channelId,
+ minId: chatMinId,
+ }, [
+ TlChannelChatDef.id,
+ TlChannelChatDef.channelId,
+ TlChannelChatDef.type,
+ TlChannelChatDef.flag,
+ TlChannelChatDef.other,
+ TlChannelChatDef.fromUserId,
+ TlChannelChatDef.fromUserName,
+ TlChannelChatDef.toUserId,
+ TlChannelChatDef.toUserName,
+ TlChannelChatDef.createdAt,
+ TlChannelChatDef.message,
+ TlChannelChatDef.messageTimeStamp,
+ TlChannelChatDef.messageVersion,
+ ], page, pageSize)
+ }
+
+ let [
+ chatList
+ ] = await Promise.all([
+ chatPromise
+ ])
+
+ if(!chatList){
+ chatList = []
+ }
+
+ let userIdList = chatList.map(item => item[TlChannelChatDef.fromUserId])
+
+ // 用户头像
+ let userAvatarMap = {}
+ if(userIdList.length > 0){
+ const userList = await userService.getListByIdList({
+ companyId: loginUserCompanyId,
+ idList: userIdList
+ }, [
+ TlUserDef.id,
+ TlUserDef.avatarUrl
+ ])
+
+ userList.forEach(item => {
+ userAvatarMap[item[TlUserDef.id]] = item[TlUserDef.avatarUrl]
+ })
+ }
+
+ // 获取回复消息id列表
+ let replyChatMessageIdList = []
+ chatList.forEach(item => {
+ let other = {}
+ let otherStr = item[TlChannelChatDef.other]
+ if(otherStr){
+ try{
+ other = JSON.parse(otherStr)
+ }catch(e){
+ tlConsoleError('解析other失败', otherStr, item[TlChannelChatDef.id])
+ other = {}
+ }
+ }
+
+ let replyToMessageId = other[TlChannelChatOther.replyToMessageId]
+ let replyToMessageType = other[TlChannelChatOther.replyToMessageType]
+ if(replyToMessageId){
+ replyToMessageId = parseInt(replyToMessageId)
+
+ if([
+ TlChannelChatType.FRIEND,
+ TlChannelChatType.GROUP,
+ ].includes(replyToMessageType)){
+ replyChatMessageIdList.push(replyToMessageId)
+ }
+ }
+ })
+
+ // 回复文本消息, 目前回复只支持回复文本消息
+ let replyChatMessageMap = {}
+ if(replyChatMessageIdList.length > 0){
+ const replyMessageList = await channelChatService.getListByChannelIdAndIdList({
+ companyId: loginUserCompanyId,
+ channelId,
+ idList: replyChatMessageIdList
+ }, [
+ TlChannelChatDef.id,
+ TlChannelChatDef.message,
+ ])
+
+ replyMessageList.forEach(item => {
+ replyChatMessageMap[item[TlChannelChatDef.id]] = item
+ })
+ }
+
+ // 初始化返回数据
+ let resultMap = await initChannelChatList({
+ chatList, userChannelReadMap: {
+ [channelId]: userReadMap
+ }, userAvatarMap, replyChatMessageMap,
+ })
+
+ let resultList = resultMap[channelId] || []
+
+ return tlResponseSuccess("获取频道聊天列表成功", resultList)
+}
+
+
+/**
+ * 获取频道列表聊天记录
+ * @param {*} loginInfo
+ * @param {*} channelIdList
+ */
+const getChannelChatListByChannelIdList = async function ({loginInfo, channelIdList}) {
+ if (!channelIdList) {
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ let userIdList = []
+
+ // 已读消息列表
+ const userReadList = await userReadService.getListByUserIdTypeListAndChannelIdList({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ typeList: [
+ TlUserReadType.CHAT,
+ TlUserReadType.FILE,
+ TlUserReadType.MEDIA
+ ],
+ channelIdList
+ }, [
+ TlUserReadDef.type,
+ TlUserReadDef.channelId,
+ TlUserReadDef.latestReadId
+ ])
+
+ let userChannelReadMap = {}
+ for (let i = 0; i < channelIdList.length; i++) {
+ const channelId = channelIdList[i]
+ userChannelReadMap[channelId] = {
+ [TlUserReadType.CHAT]: 0,
+ [TlUserReadType.FILE]: 0,
+ [TlUserReadType.MEDIA]: 0
+ }
+ }
+
+ userReadList.forEach(item => {
+ const channelId = item[TlUserReadDef.channelId]
+ const type = item[TlUserReadDef.type]
+ userChannelReadMap[channelId][type] = item[TlUserReadDef.latestReadId]
+ })
+
+ // 聊天消息
+ let chatList = []
+ let chatPromiseList = []
+ for (let i = 0; i < channelIdList.length; i++) {
+ const channelId = channelIdList[i]
+
+ chatPromiseList.push(
+ channelChatService.getListByChannelIdAndMaxIdForPage({
+ companyId: loginUserCompanyId, channelId,
+ maxId: userChannelReadMap[channelId][TlUserReadType.CHAT] || 1,
+ }, [
+ TlChannelChatDef.id,
+ TlChannelChatDef.channelId,
+ TlChannelChatDef.type,
+ TlChannelChatDef.flag,
+ TlChannelChatDef.other,
+ TlChannelChatDef.fromUserId,
+ TlChannelChatDef.fromUserName,
+ TlChannelChatDef.toUserId,
+ TlChannelChatDef.toUserName,
+ TlChannelChatDef.createdAt,
+ TlChannelChatDef.message,
+ TlChannelChatDef.messageTimeStamp,
+ TlChannelChatDef.messageVersion,
+ ], 1, 99)
+ )
+ }
+
+ const chatPromiseResult = await Promise.all(chatPromiseList)
+ for (let i = 0; i < chatPromiseResult.length; i++) {
+ if(!chatPromiseResult[i]){
+ chatPromiseResult[i] = []
+ }
+ chatList = chatList.concat(chatPromiseResult[i])
+ userIdList = userIdList.concat(chatPromiseResult[i].map(item => item[TlChannelChatDef.fromUserId]))
+ }
+
+ // 用户头像
+ let userAvatarMap = {}
+ if(userIdList.length > 0){
+ const userList = await userService.getListByIdList({
+ companyId: loginUserCompanyId,
+ idList: userIdList
+ }, [
+ TlUserDef.id,
+ TlUserDef.avatarUrl
+ ])
+
+ userList.forEach(item => {
+ userAvatarMap[item[TlUserDef.id]] = item[TlUserDef.avatarUrl]
+ })
+ }
+
+ // 获取回复消息id列表
+ let replyChatMessageIdList = []
+ chatList.forEach(item => {
+ let other = {}
+ let otherStr = item[TlChannelChatDef.other]
+ if(otherStr){
+ try{
+ other = JSON.parse(otherStr)
+ }catch(e){
+ tlConsoleError('解析other失败', otherStr, item[TlChannelChatDef.id])
+ other = {}
+ }
+ }
+
+ let replyToMessageId = other[TlChannelChatOther.replyToMessageId]
+ let replyToMessageType = other[TlChannelChatOther.replyToMessageType]
+ if(replyToMessageId){
+ replyToMessageId = parseInt(replyToMessageId)
+
+ if([
+ TlChannelChatType.FRIEND,
+ TlChannelChatType.GROUP,
+ ].includes(replyToMessageType)){
+ replyChatMessageIdList.push(replyToMessageId)
+ }
+ }
+ })
+
+ // 回复文本消息
+ let replyChatMessageMap = {}
+ if(replyChatMessageIdList.length > 0){
+ const replyMessageList = await channelChatService.getListByIdList({
+ companyId: loginUserCompanyId,
+ idList: replyChatMessageIdList
+ }, [
+ TlChannelChatDef.id,
+ TlChannelChatDef.message,
+ ])
+
+ replyMessageList.forEach(item => {
+ replyChatMessageMap[item[TlChannelChatDef.id]] = item
+ })
+ }
+
+ // 初始化返回数据
+ let resultMap = await initChannelChatList({
+ chatList, userChannelReadMap, userAvatarMap,
+ replyChatMessageMap,
+ })
+
+ return tlResponseSuccess("获取频道列表聊天记录成功", resultMap)
+}
+
+
+/**
+ * 初始化频道聊天列表结构
+ * @param {*} chatList
+ * @param {*} userAvatarMap
+ * @param {*} userChannelReadMap
+ * @param {*} replyMessageMap
+ */
+const initChannelChatList = async function({
+ chatList, userAvatarMap, userChannelReadMap,
+ replyChatMessageMap
+}){
+ // 处理返回数据
+ let resultMap = {}
+
+ for(let i = 0; i < chatList.length; i++){
+ const item = chatList[i]
+ const channelId = item[TlChannelChatDef.channelId]
+ if (!resultMap[channelId]) {
+ resultMap[channelId] = []
+ }
+
+ let chatLatestReadId = 0
+ if(userChannelReadMap[channelId]){
+ chatLatestReadId = userChannelReadMap[channelId][TlUserReadType.CHAT]
+ }
+
+ let userAvatar = userAvatarMap[item[TlChannelChatDef.fromUserId]]
+ let type = item[TlChannelChatDef.type]
+ if (type == TlChannelChatType.SYSTEM) {
+ item[TlChannelChatDef.fromUserId] = 'system'
+ }
+
+ let messageTimeStamp = item[TlChannelChatDef.messageTimeStamp]
+ let messageVersion = item[TlChannelChatDef.messageVersion]
+
+ let flag = item[TlChannelChatDef.flag]
+ let isAtUser = checkBit(flag, TlChannelChatFlag.IS_AT_USER)
+ let isAtAll = checkBit(flag, TlChannelChatFlag.IS_AT_ALL)
+ let isReplay = checkBit(flag, TlChannelChatFlag.IS_REPLAY)
+
+ let other = {}
+ let otherStr = item[TlChannelChatDef.other]
+ if(otherStr){
+ try{
+ other = JSON.parse(otherStr)
+ }catch(e){
+ tlConsoleError('解析other失败', otherStr, item[TlChannelChatDef.id])
+ other = {}
+ }
+ }
+
+ let replyToMessageId = other[TlChannelChatOther.replyToMessageId]
+ if(replyToMessageId){
+ replyToMessageId = parseInt(replyToMessageId)
+ }
+
+ let replyToMessageType = other[TlChannelChatOther.replyToMessageType]
+
+ let replyToMessageContent = ''
+ if([
+ TlChannelChatType.FRIEND,
+ TlChannelChatType.GROUP,
+ ].includes(replyToMessageType)){
+ let replyToMessage = replyChatMessageMap[replyToMessageId] || {}
+ replyToMessageContent = replyToMessage[TlChannelChatDef.message] || '消息已失效'
+ }else{
+ replyToMessageContent = "未知消息"
+ }
+
+ let atUserId = other[TlChannelChatOther.atUserId]
+ if(atUserId){
+ atUserId = parseInt(atUserId)
+ }
+ let atUserName = other[TlChannelChatOther.atUserName]
+
+ resultMap[channelId].push({
+ id: item[TlChannelChatDef.id],
+ message: item[TlChannelChatDef.message],
+ type: item[TlChannelChatDef.type],
+ fromUserId: item[TlChannelChatDef.fromUserId],
+ fromUserName: item[TlChannelChatDef.fromUserName],
+ fromUserAvatar: await getAvatarOssUrl(userAvatar),
+ createTime: item[TlChannelChatDef.createdAt],
+ hasRead: item[TlChannelChatDef.id] <= chatLatestReadId,
+ isAtAll,
+ replyToMessageId,
+ replyToMessageType,
+ replyToMessageContent,
+ atUserId,
+ atUserName,
+ messageTimeStamp,
+ messageVersion
+ })
+ }
+
+ // 按时间戳排序
+ Object.keys(resultMap).forEach(key => {
+ resultMap[key].sort((a, b) => {
+ return a.messageTimeStamp - b.messageTimeStamp
+ })
+ })
+
+ return resultMap
+}
+
+
+/**
+ * 获取群组频道列表
+ * @param {*} loginInfo
+ */
+const getChannelGroupList = async function({
+ loginInfo
+}){
+ const {
+ loginUserCompanyId, loginUserId, loginUserCompanyName
+ } = loginInfo
+
+ // 获取自己相关的频道列表
+ const channelUserList = await channelUserService.getListByTypeUserId({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ type: TlChannelUserType.GROUP
+ }, [
+ TlChannelUserDef.channelId,
+ TlChannelUserDef.createdAt
+ ])
+
+ const channelUserMap = {}
+ channelUserList.forEach(item => {
+ channelUserMap[item[TlChannelUserDef.channelId]] = item
+ })
+
+ const channelIdList = channelUserList.map(channelUser => channelUser[TlChannelUserDef.channelId])
+ // 获取频道列表
+ const channelList = await channelService.getListByIdList({
+ companyId: loginUserCompanyId,
+ idList: channelIdList
+ }, [
+ TlChannelDef.id,
+ TlChannelDef.name,
+ TlChannelDef.status,
+ TlChannelDef.createdAt
+ ])
+
+ // 获取频道用户数量
+ const channelUserCounts = await channelUserService.getCountByChannelIdList({
+ companyId: loginUserCompanyId, channelIdList
+ })
+ const channelUserCountsMap = {}
+ channelUserCounts.forEach(item => {
+ channelUserCountsMap[item[TlChannelUserDef.channelId]] = item.count
+ })
+
+ // 处理结果
+ let resultList = []
+ for (let i = 0; i < channelList.length; i++) {
+ const channel = channelList[i]
+ const channelId = channel[TlChannelDef.id]
+ const channelName = channel[TlChannelDef.name]
+
+ let statusStr = ''
+ let status = channel[TlChannelDef.status]
+ if(status == TlChannelStatus.NORMAL){
+ statusStr = '正常'
+ }
+
+ const channelUser = channelUserMap[channelId] || {}
+ const joinTime = channelUser[TlChannelUserDef.createdAt]
+
+ const userCount = channelUserCountsMap[channelId] || 0
+
+ resultList.push({
+ channelId: channelId,
+ channelName: channelName,
+ channelAvatar: '/image/group-default-avatar.png',
+ channelCompanyName: loginUserCompanyName,
+ status: statusStr,
+ createTime: channel[TlChannelDef.createdAt],
+ joinTime: joinTime,
+ channelUserCount: userCount
+ })
+ }
+
+ return tlResponseSuccess("获取频道列表成功", resultList)
+}
+
+
+
+module.exports = {
+ addChannel,
+ updateChannel,
+ getChannelList,
+ updateChannelName,
+ getChannelInfo,
+ getChannelNameById,
+ getChannelSimpleList,
+ searchChannelById,
+
+ getChannelChatList,
+ getChannelChatListByChannelIdList,
+ getChannelGroupList
+}
\ No newline at end of file
diff --git a/src/biz/channel/channel_chat_biz.js b/src/biz/channel/channel_chat_biz.js
new file mode 100644
index 0000000..ec279b0
--- /dev/null
+++ b/src/biz/channel/channel_chat_biz.js
@@ -0,0 +1,691 @@
+const {
+ tlResponseArgsError, tlResponseForbidden, tlResponseSvrError,
+ tlResponseTimeout, tlResponseNotFound, tlResponseSuccess,
+ setBit
+} = require('../../utils/utils')
+const { getAvatarOssUrl } = require('../../utils/oss/oss')
+const channelService = require('../../service/channel/tl_channel_service')
+const channelChatService = require('../../service/channel/tl_channel_chat_service')
+const channelUserService = require('../../service/channel/tl_channel_user_service')
+const userSessionService = require('../../service/user/tl_user_session_service')
+const userService = require('../../service/user/tl_user_service')
+
+const userReadBiz = require('../user/user_read_biz')
+
+const { fields: channelChatFields } = require('../../tables/tl_channel_chat')
+const { fields: channelUserFields} = require('../../tables/tl_channel_user')
+const { fields: userFields } = require('../../tables/tl_user')
+const { fields: channelFields } = require('../../tables/tl_channel')
+
+const {
+ Def: TlChannelChatDef,
+ Type: TlChannelChatType,
+ Other: TlChannelChatOther,
+ Flag: TlChannelChatFlag
+} = channelChatFields
+const {
+ Def: TlChannelUserDef
+} = channelUserFields
+const {
+ Def: TlUserDef
+} = userFields
+const {
+ Def: TlChannelDef, Type: TlChannelType
+} = channelFields
+
+
+
+/**
+ * 发送好友频道聊天消息
+ * @param {*} loginInfo
+ * @param {*} message
+ * @param {*} toUserId
+ * @param {*} toUserName
+ * @param {*} channelId
+ * @param {*} atUserId
+ * @param {*} atUserName
+ */
+const addFriendChannelChat = async function ({
+ loginInfo, message, toUserId, toUserName, channelId, atUserId, atUserName
+}) {
+ if (!message) {
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if (!channelId) {
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId, loginUsername, loginUserAvatar
+ } = loginInfo
+
+ // 频道是否存在
+ const channelInfo = await channelService.getInfoById({
+ companyId: loginUserCompanyId,
+ id: channelId
+ })
+
+ if(Object.keys(channelInfo).length == 0){
+ return tlResponseNotFound("发送失败,频道不存在")
+ }
+
+ // 设置@标志
+ let flag = 0
+ if (atUserId && atUserName) {
+ flag = setBit(flag, TlChannelChatFlag.IS_AT_USER, true)
+ }
+
+ let other = {
+ [TlChannelChatOther.ip]: '',
+ }
+
+ if (atUserId && atUserName) {
+ other = {
+ ...other,
+ [TlChannelChatOther.atUserId]: atUserId,
+ [TlChannelChatOther.atUserName]: atUserName,
+ }
+ }
+
+ // 发送好友消息,如果没有toUserName或toUserId,说明可能已被对方删除
+ // 如果没有找到好友,返回错误,如果找到好友,返回参数错误
+ if(!toUserName || !toUserId){
+ const channelUserList = await channelUserService.getListByChannelId({
+ companyId: loginUserCompanyId,
+ channelId
+ }, [
+ TlChannelUserDef.userId,
+ TlChannelUserDef.status
+ ])
+ const friendUser = channelUserList.find(item => item[TlChannelUserDef.userId] !== loginUserId)
+ if(!friendUser){
+ return tlResponseNotFound("发送失败,好友不存在")
+ }
+
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const info = await channelChatService.addFriendChatInfo({
+ companyId: loginUserCompanyId,
+ channelId,
+ message,
+ fromUserId: loginUserId,
+ fromUserName: loginUsername,
+ toUserId,
+ toUserName,
+ other: JSON.stringify(other),
+ messageTimeStamp: Date.now(),
+ messageVersion: 'v1',
+ flag
+ })
+
+ if (Object.keys(info).length == 0) {
+ return tlResponseSvrError("添加好友频道聊天失败")
+ }
+
+ // 更新用户已读消息
+ const updateUserReadRes = await userReadBiz.updateChannelChatRead({
+ loginInfo, channelId,
+ latestReadId: info[TlChannelChatDef.id],
+ })
+
+ if(!updateUserReadRes.success){
+ return tlResponseSvrError("发送失败")
+ }
+
+ return tlResponseSuccess("发送成功", {
+ id: info[TlChannelChatDef.id],
+ message: info[TlChannelChatDef.message],
+ type: info[TlChannelChatDef.type],
+ createTime: info[TlChannelChatDef.createdAt],
+ fromUserId: info[TlChannelChatDef.fromUserId],
+ fromUserName: info[TlChannelChatDef.fromUserName],
+ fromUserAvatar: loginUserAvatar,
+ hasRead: true,
+ atUserId,
+ atUserName,
+ messageTimeStamp: info[TlChannelChatDef.messageTimeStamp],
+ messageVersion: info[TlChannelChatDef.messageVersion],
+ })
+}
+
+/**
+ * 发送多人频道聊天消息
+ * @param {*} loginInfo
+ * @param {*} message
+ * @param {*} channelId
+ * @param {*} atUserId
+ * @param {*} atUserName
+ * @param {*} atAll
+ */
+const addGroupChannelChat = async function ({
+ loginInfo, message, channelId, atUserId, atUserName, atAll
+}) {
+ if (!message) {
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if (!channelId) {
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId, loginUsername,
+ loginUserAvatar
+ } = loginInfo
+
+ // 频道是否存在
+ const channelInfo = await channelService.getInfoById({
+ companyId: loginUserCompanyId,
+ id: channelId
+ })
+ if(Object.keys(channelInfo).length == 0){
+ return tlResponseNotFound("发送失败,频道不存在")
+ }
+
+ // 设置@标志
+ let flag = 0
+ if (atUserId && atUserName) {
+ flag = setBit(flag, TlChannelChatFlag.IS_AT_USER, true)
+ }else if (atAll) {
+ flag = setBit(flag, TlChannelChatFlag.IS_AT_ALL, true)
+ }
+
+ let other = {
+ [TlChannelChatOther.ip]: '',
+ }
+
+ if (atUserId && atUserName) {
+ other = {
+ ...other,
+ [TlChannelChatOther.atUserId]: atUserId,
+ [TlChannelChatOther.atUserName]: atUserName,
+ }
+ }
+
+ const info = await channelChatService.addGroupChatInfo({
+ companyId: loginUserCompanyId,
+ channelId,
+ message,
+ fromUserId: loginUserId,
+ fromUserName: loginUsername,
+ other: JSON.stringify(other),
+ messageTimeStamp: Date.now(),
+ messageVersion: 'v1',
+ flag
+ })
+
+ if (Object.keys(info).length == 0) {
+ return tlResponseSvrError("添加群组聊天失败")
+ }
+
+ // 更新用户已读消息
+ const updateUserReadRes = await userReadBiz.updateChannelChatRead({
+ loginInfo, channelId,
+ latestReadId: info[TlChannelChatDef.id],
+ })
+
+ if(!updateUserReadRes.success){
+ return tlResponseSvrError("发送失败")
+ }
+
+ return tlResponseSuccess("发送成功", {
+ id: info[TlChannelChatDef.id],
+ message: info[TlChannelChatDef.message],
+ type: info[TlChannelChatDef.type],
+ createTime: info[TlChannelChatDef.createdAt],
+ fromUserId: info[TlChannelChatDef.fromUserId],
+ fromUserName: info[TlChannelChatDef.fromUserName],
+ fromUserAvatar: loginUserAvatar,
+ hasRead: true,
+ atUserId,
+ atUserName,
+ isAtAll: atAll,
+ messageTimeStamp: info[TlChannelChatDef.messageTimeStamp],
+ messageVersion: info[TlChannelChatDef.messageVersion],
+ })
+}
+
+/**
+ * 撤回群组/好友消息
+ * @param {*} loginInfo
+ * @param {*} channelId
+ * @param {*} messageId
+ * @param {*} messageType
+ */
+const rollbackChannelChat = async function ({
+ loginInfo, channelId, messageId, messageType
+}) {
+ const {
+ loginUserCompanyId, loginUserId, loginUsername,
+ } = loginInfo
+
+ if (!channelId) {
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if (!messageId) {
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if (!messageType) {
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ // 频道是否存在
+ const channelInfo = await channelService.getInfoById({
+ companyId: loginUserCompanyId,
+ id: channelId
+ })
+
+ if(Object.keys(channelInfo).length == 0){
+ return tlResponseNotFound("撤回失败,频道不存在")
+ }
+
+ // 消息是否存在
+ let messageInfo = {}
+ if([
+ TlChannelChatType.FRIEND,
+ TlChannelChatType.GROUP,
+
+ // 不支持撤回系统消息
+ // TlChannelChatType.SYSTEM,
+ ].includes(messageType)){
+ messageInfo = await channelChatService.getInfoById({
+ companyId: loginUserCompanyId,
+ id: messageId
+ })
+
+ }
+
+ if(Object.keys(messageInfo).length == 0){
+ return tlResponseNotFound("撤回失败,消息不存在")
+ }
+
+ // 不能撤回他人消息
+ if(messageInfo[TlChannelChatDef.fromUserId] !== loginUserId){
+ return tlResponseForbidden("撤回失败")
+ }
+
+ // 时间是否超过2分钟
+ const now = Date.now()
+ const messageTimeStamp = messageInfo[TlChannelChatDef.messageTimeStamp]
+ if(now - messageTimeStamp > 2 * 60 * 1000){
+ return tlResponseForbidden("撤回失败,消息已超过2分钟")
+ }
+
+ // 删除原有消息
+ let deleteRes = 0
+ if([
+ TlChannelChatType.FRIEND,
+ TlChannelChatType.GROUP,
+ ].includes(messageType)){
+ deleteRes = await channelChatService.deleteInfoById({
+ companyId: loginUserCompanyId,
+ id: messageId
+ })
+ }else{
+ return tlResponseSvrError("撤回失败")
+ }
+
+ if(deleteRes == 0){
+ return tlResponseSvrError("撤回失败")
+ }
+
+ let rollbackMessage = ''
+ if([
+ TlChannelChatType.FRIEND,
+ TlChannelChatType.GROUP,
+ ].includes(messageType)){
+ rollbackMessage = `${loginUsername}撤回了一条消息`
+ }
+
+ // 生成撤回系统消息
+ const rollbackInfo = await channelChatService.addSystemChatnfo({
+ companyId: loginUserCompanyId,
+ channelId,
+ message: '' + rollbackMessage + '
',
+ other: JSON.stringify({
+ [TlChannelChatOther.ip]: '',
+ }),
+ messageTimeStamp: Date.now(),
+ messageVersion: 'v1',
+ flag: 0
+ })
+
+ if(Object.keys(rollbackInfo).length == 0){
+ return tlResponseSvrError("撤回失败")
+ }
+
+ // 更新用户已读消息
+ const updateUserReadRes = await userReadBiz.updateChannelChatRead({
+ loginInfo, channelId,
+ latestReadId: rollbackInfo[TlChannelChatDef.id],
+ })
+
+ if(!updateUserReadRes.success){
+ return tlResponseSvrError("撤回失败")
+ }
+
+ return tlResponseSuccess("撤回成功", {
+ id: rollbackInfo[TlChannelChatDef.id],
+ message: rollbackInfo[TlChannelChatDef.message],
+ type: rollbackInfo[TlChannelChatDef.type],
+ createTime: rollbackInfo[TlChannelChatDef.createdAt],
+ fromUserId: rollbackInfo[TlChannelChatDef.fromUserId],
+ fromUserName: rollbackInfo[TlChannelChatDef.fromUserName],
+ hasRead: true,
+ messageTimeStamp: rollbackInfo[TlChannelChatDef.messageTimeStamp],
+ messageVersion: rollbackInfo[TlChannelChatDef.messageVersion],
+ })
+}
+
+/**
+ * 回复好友聊天
+ * @param {*} loginInfo
+ * @param {*} message
+ * @param {*} channelId
+ * @param {*} messageId
+ * @param {*} atUserId
+ * @param {*} atUserName
+ * @param {*} messageType
+ */
+const addReplyFriendChannelChat = async function ({
+ loginInfo, message, channelId, messageId, messageType, atUserId, atUserName
+}) {
+ const {
+ loginUserCompanyId, loginUserId, loginUsername, loginUserAvatar
+ } = loginInfo
+
+ if (!message) {
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if (!channelId) {
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if (!messageId) {
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if (!messageType) {
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ // 频道是否存在
+ const channelInfo = await channelService.getInfoById({
+ companyId: loginUserCompanyId,
+ id: channelId
+ })
+ if(Object.keys(channelInfo).length == 0){
+ return tlResponseNotFound("发送失败,频道不存在")
+ }
+
+ const channelType = channelInfo[TlChannelDef.type]
+ if(channelType !== TlChannelType.FRIEND){
+ return tlResponseArgsError("发送失败,频道类型错误")
+ }
+
+ // 消息是否存在
+ let messageInfo = {}
+ if([
+ TlChannelChatType.FRIEND,
+ TlChannelChatType.GROUP,
+
+ // 不支持回复系统消息
+ // TlChannelChatType.SYSTEM,
+ ].includes(messageType)){
+ messageInfo = await channelChatService.getInfoById({
+ companyId: loginUserCompanyId,
+ id: messageId
+ })
+
+ }
+ if(Object.keys(messageInfo).length == 0){
+ return tlResponseNotFound("发送失败,回复消息不存在")
+ }
+
+ // 设置回复标志
+ let flag = setBit(0, TlChannelChatFlag.IS_REPLAY, true)
+
+ if (atUserId && atUserName) {
+ flag = setBit(flag, TlChannelChatFlag.IS_AT_USER, true)
+ }
+
+ let other = {
+ [TlChannelChatOther.ip]: '',
+ [TlChannelChatOther.replyToMessageId]: messageId,
+ [TlChannelChatOther.replyToMessageType]: messageType,
+ }
+
+ if (atUserId && atUserName) {
+ other = {
+ ...other,
+ [TlChannelChatOther.atUserId]: atUserId,
+ [TlChannelChatOther.atUserName]: atUserName,
+ }
+ }
+
+ const info = await channelChatService.addFriendChatInfo({
+ companyId: loginUserCompanyId,
+ channelId,
+ message,
+ fromUserId: loginUserId,
+ fromUserName: loginUsername,
+ toUserId: messageInfo[TlChannelChatDef.fromUserId],
+ toUserName: messageInfo[TlChannelChatDef.fromUserName],
+ other: JSON.stringify(other),
+ messageTimeStamp: Date.now(),
+ messageVersion: 'v1',
+ flag
+ })
+
+ if(Object.keys(info).length == 0){
+ return tlResponseSvrError("回复失败")
+ }
+
+ // 更新用户已读消息
+ const updateUserReadRes = await userReadBiz.updateChannelChatRead({
+ loginInfo, channelId,
+ latestReadId: info[TlChannelChatDef.id],
+ })
+
+ if(!updateUserReadRes.success){
+ return tlResponseSvrError("回复失败")
+ }
+
+ let replyToMessageContent = ''
+ if([
+ TlChannelChatType.FRIEND,
+ TlChannelChatType.GROUP,
+ ].includes(messageType)){
+ replyToMessageContent = messageInfo[TlChannelChatDef.message]
+ }else{
+ replyToMessageContent = '未知消息'
+ }
+
+ return tlResponseSuccess("回复成功", {
+ id: info[TlChannelChatDef.id],
+ message: info[TlChannelChatDef.message],
+ type: info[TlChannelChatDef.type],
+ createTime: info[TlChannelChatDef.createdAt],
+ fromUserId: info[TlChannelChatDef.fromUserId],
+ fromUserName: info[TlChannelChatDef.fromUserName],
+ fromUserAvatar: loginUserAvatar,
+ toUserId: messageInfo[TlChannelChatDef.fromUserId],
+ toUserName: messageInfo[TlChannelChatDef.fromUserName],
+ hasRead: true,
+ replyToMessageId: messageId,
+ replyToMessageType: messageType,
+ replyToMessageContent,
+ atUserId,
+ atUserName,
+ messageTimeStamp: info[TlChannelChatDef.messageTimeStamp],
+ messageVersion: info[TlChannelChatDef.messageVersion],
+ })
+}
+
+/**
+ * 回复群组聊天
+ * @param {*} loginInfo
+ * @param {*} message
+ * @param {*} channelId
+ * @param {*} messageId
+ * @param {*} atUserId
+ * @param {*} atUserName
+ * @param {*} atAll
+ * @param {*} messageType
+ */
+const addReplyGroupChannelChat = async function ({
+ loginInfo, message, channelId, messageId, messageType, atUserId, atUserName, atAll
+}) {
+ const {
+ loginUserCompanyId, loginUserId, loginUsername, loginUserAvatar
+ } = loginInfo
+
+ if (!message) {
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if (!channelId) {
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if (!messageId) {
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if (!messageType) {
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ // 频道是否存在
+ const channelInfo = await channelService.getInfoById({
+ companyId: loginUserCompanyId,
+ id: channelId
+ })
+
+ if(Object.keys(channelInfo).length == 0){
+ return tlResponseNotFound("发送失败,频道不存在")
+ }
+
+ const channelType = channelInfo[TlChannelDef.type]
+ if(channelType !== TlChannelType.GROUP){
+ return tlResponseArgsError("发送失败,频道类型错误")
+ }
+
+ // 消息是否存在
+ let messageInfo = {}
+ if([
+ TlChannelChatType.FRIEND,
+ TlChannelChatType.GROUP,
+
+ // 不支持回复系统消息
+ // TlChannelChatType.SYSTEM,
+ ].includes(messageType)){
+ messageInfo = await channelChatService.getInfoById({
+ companyId: loginUserCompanyId,
+ id: messageId
+ })
+ }
+
+ if(Object.keys(messageInfo).length == 0){
+ return tlResponseNotFound("发送失败,回复消息不存在")
+ }
+
+ // 设置回复标志
+ let flag = setBit(0, TlChannelChatFlag.IS_REPLAY, true)
+
+ if (atUserId && atUserName) {
+ flag = setBit(flag, TlChannelChatFlag.IS_AT_USER, true)
+ }else if (atAll) {
+ flag = setBit(flag, TlChannelChatFlag.IS_AT_ALL, true)
+ }
+
+ let other = {
+ [TlChannelChatOther.ip]: '',
+ [TlChannelChatOther.replyToMessageId]: messageId,
+ [TlChannelChatOther.replyToMessageType]: messageType,
+ }
+
+ if (atUserId && atUserName) {
+ other = {
+ ...other,
+ [TlChannelChatOther.atUserId]: atUserId,
+ [TlChannelChatOther.atUserName]: atUserName,
+ }
+ }
+
+ const info = await channelChatService.addGroupChatInfo({
+ companyId: loginUserCompanyId,
+ channelId,
+ message,
+ fromUserId: loginUserId,
+ fromUserName: loginUsername,
+ toUserId: messageInfo[TlChannelChatDef.fromUserId],
+ toUserName: messageInfo[TlChannelChatDef.fromUserName],
+ other: JSON.stringify(other),
+ messageTimeStamp: Date.now(),
+ messageVersion: 'v1',
+ flag
+ })
+
+ if(Object.keys(info).length == 0){
+ return tlResponseSvrError("回复失败")
+ }
+
+ // 更新用户已读消息
+ const updateUserReadRes = await userReadBiz.updateChannelChatRead({
+ loginInfo, channelId,
+ latestReadId: info[TlChannelChatDef.id],
+ })
+
+ if(!updateUserReadRes.success){
+ return tlResponseSvrError("回复失败")
+ }
+
+ let replyToMessageContent = ''
+ if([
+ TlChannelChatType.FRIEND,
+ TlChannelChatType.GROUP,
+ ].includes(messageType)){
+ replyToMessageContent = messageInfo[TlChannelChatDef.message]
+ }else{
+ replyToMessageContent = '未知消息'
+ }
+
+ return tlResponseSuccess("回复成功", {
+ id: info[TlChannelChatDef.id],
+ message: info[TlChannelChatDef.message],
+ type: info[TlChannelChatDef.type],
+ createTime: info[TlChannelChatDef.createdAt],
+ fromUserId: info[TlChannelChatDef.fromUserId],
+ fromUserName: info[TlChannelChatDef.fromUserName],
+ fromUserAvatar: loginUserAvatar,
+ toUserId: messageInfo[TlChannelChatDef.fromUserId],
+ toUserName: messageInfo[TlChannelChatDef.fromUserName],
+ hasRead: true,
+ replyToMessageId: messageId,
+ replyToMessageType: messageType,
+ replyToMessageContent,
+ atUserId,
+ atUserName,
+ isAtAll: atAll,
+ messageTimeStamp: info[TlChannelChatDef.messageTimeStamp],
+ messageVersion: info[TlChannelChatDef.messageVersion],
+ })
+}
+
+
+
+module.exports = {
+ addFriendChannelChat,
+ addGroupChannelChat,
+
+ addReplyFriendChannelChat,
+ addReplyGroupChannelChat,
+
+ rollbackChannelChat,
+}
\ No newline at end of file
diff --git a/src/biz/channel/channel_user_biz.js b/src/biz/channel/channel_user_biz.js
new file mode 100644
index 0000000..50f42a3
--- /dev/null
+++ b/src/biz/channel/channel_user_biz.js
@@ -0,0 +1,738 @@
+const {
+ tlResponseArgsError, tlResponseForbidden, tlResponseSvrError,
+ tlResponseTimeout, tlResponseNotFound, tlResponseSuccess, setBit, checkBit
+} = require('../../utils/utils')
+const channelService = require('../../service/channel/tl_channel_service')
+const channelUserService = require('../../service/channel/tl_channel_user_service')
+const channelChatService = require('../../service/channel/tl_channel_chat_service')
+const userService = require('../../service/user/tl_user_service')
+const userFriendService = require('../../service/user/tl_user_friend_service')
+const userSessionService = require('../../service/user/tl_user_session_service')
+const { inner: TlRoleInner } = require('../../tables/tl_role')
+const { fields: channelUserFields } = require('../../tables/tl_channel_user')
+const { fields: channelChatFields } = require('../../tables/tl_channel_chat')
+const { fields: userFields } = require('../../tables/tl_user')
+const { fields: userFriendFields } = require('../../tables/tl_user_friend')
+const { fields: channelFields } = require('../../tables/tl_channel')
+const { getOssUrl, getAvatarOssUrl } = require('../../utils/oss/oss')
+
+const { Def: TlChannelUserDef, Type: TlChannelUserType, Flag: TlChannelUserFlag } = channelUserFields
+const { Def : TlUserDef } = userFields
+const { Def: TlUserFriendDef } = userFriendFields
+const { Def: TlChannelDef, Type: TlChannelType } = channelFields
+const { Def: TlChannelChatDef, Other: TlChannelChatOther } = channelChatFields
+
+/**
+ * 添加频道用户
+ * @param {*} loginInfo
+ * @param {*} channelId
+ * @param {*} userId
+ * @param {*} roleId
+ */
+const addChannelUser = async function({ loginInfo, channelId, userId, roleId }){
+ if(!channelId){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if(!userId){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if(!roleId){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId, loginUsername
+ } = loginInfo
+
+ const channelInfo = await channelService.getInfoById({
+ companyId: loginUserCompanyId,
+ id: channelId
+ }, [
+ TlChannelDef.id,
+ TlChannelDef.type
+ ])
+
+ if(Object.keys(channelInfo).length == 0){
+ return tlResponseArgsError("频道不存在")
+ }
+
+ const channelType = channelInfo[TlChannelDef.type]
+ if (channelType != TlChannelType.GROUP){
+ return tlResponseArgsError("频道非法操作")
+ }
+
+ const channelUser = await channelUserService.getInfoByChannelIdAndUserId({
+ companyId: loginUserCompanyId,
+ channelId,
+ userId,
+ }, [
+ TlChannelUserDef.userId
+ ])
+
+ if(Object.keys(channelUser).length > 0){
+ return tlResponseArgsError("频道用户已存在")
+ }
+
+ const userInfo = await userService.getInfoById({
+ companyId: loginUserCompanyId,
+ id: userId,
+ },[
+ TlUserDef.name
+ ])
+
+ // 生成邀请消息
+ const channelMessage = await channelChatService.addSystemChatnfo({
+ companyId: loginUserCompanyId,
+ channelId,
+ message: '' + loginUsername + "邀请 " + userInfo[TlUserDef.name] + "加入频道" + '
',
+ other: JSON.stringify({
+ [TlChannelChatOther.ip]: '',
+ }),
+ messageTimeStamp: Date.now(),
+ messageVersion: 'v1',
+ flag: 0
+ })
+
+ if(Object.keys(channelMessage).length == 0){
+ return tlResponseSvrError("添加频道用户失败")
+ }
+
+ // 添加频道用户
+ const info = await channelUserService.addInfo({
+ companyId: loginUserCompanyId,
+ channelId,
+ userId,
+ type: TlChannelUserType.GROUP,
+ roleId,
+ })
+
+ if(Object.keys(info).length == 0){
+ return tlResponseSvrError("添加频道用户失败")
+ }
+
+ // 更新用户频道角色
+ await userSessionService.updateUserChannelRoleMap({
+ userId: loginUserId,
+ channelRoleMap: {
+ [channelId]: roleId
+ }
+ })
+
+ return tlResponseSuccess("添加频道用户成功")
+}
+
+/**
+ * 批量添加频道用户
+ * @param {*} loginInfo
+ * @param {*} channelId
+ * @param {*} userIdList
+ * @param {*} roleId
+ */
+const addChannelUserList = async function({ loginInfo, channelId, userIdList, roleId }){
+ if(!channelId){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if(!userIdList){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if(userIdList.length == 0){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if(userIdList.length > 100){
+ return tlResponseArgsError("邀请用户数量超过限制")
+ }
+
+ if(!roleId){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId, loginUsername
+ } = loginInfo
+
+ const channelInfo = await channelService.getInfoById({
+ companyId: loginUserCompanyId,
+ id: channelId
+ }, [
+ TlChannelDef.id,
+ TlChannelDef.type
+ ])
+
+ if(Object.keys(channelInfo).length == 0){
+ return tlResponseArgsError("频道不存在")
+ }
+
+ const channelType = channelInfo[TlChannelDef.type]
+ if (channelType != TlChannelType.GROUP){
+ return tlResponseArgsError("频道非法操作")
+ }
+
+ // userIdList去重
+ userIdList = Array.from(new Set(userIdList))
+
+ const existChannelUserList = await channelUserService.getListByChannelUserIdList({
+ companyId: loginUserCompanyId,
+ channelId,
+ userIdList: userIdList,
+ }, [
+ TlChannelUserDef.userId
+ ])
+
+ if(existChannelUserList.length > 0){
+ return tlResponseArgsError("部分频道用户已存在", {
+ existUserIdList: existChannelUserList.map(item => item[TlChannelUserDef.userId])
+ })
+ }
+
+ // 获取用户信息
+ const userInfoList = await userService.getListByIdList({
+ companyId: loginUserCompanyId,
+ idList: userIdList,
+ }, [
+ TlUserDef.name
+ ])
+
+ // 生成邀请消息
+ const channelMessage = await channelChatService.addSystemChatnfo({
+ companyId: loginUserCompanyId,
+ channelId,
+ message: '' + loginUsername + "邀请 " + userInfoList.map(
+ item => item[TlUserDef.name]
+ ).join(",") + " 共" + userInfoList.length + "人加入频道" + '
',
+ other: JSON.stringify({
+ [TlChannelChatOther.ip]: '',
+ }),
+ messageTimeStamp: Date.now(),
+ messageVersion: 'v1',
+ flag: 0
+ })
+
+ if(Object.keys(channelMessage).length == 0){
+ return tlResponseSvrError("添加频道用户失败")
+ }
+
+ let infoList = []
+ userIdList.forEach(userId => {
+ infoList.push({
+ companyId: loginUserCompanyId,
+ channelId,
+ userId,
+ type: TlChannelUserType.GROUP,
+ roleId,
+ })
+ })
+
+ const list = await channelUserService.addInfoList({
+ companyId: loginUserCompanyId,
+ channelId,
+ userInfoList: infoList,
+ })
+
+ if(list == null){
+ return tlResponseSvrError("添加频道用户失败")
+ }
+
+ // 更新用户频道角色
+ await userSessionService.batchUpdateUserChannelRoleMap({
+ userIdList: userIdList,
+ channelRoleMap: {
+ [channelId]: roleId
+ }
+ })
+
+ return tlResponseSuccess("添加频道用户成功", {
+ id: channelMessage[TlChannelChatDef.id],
+ message: channelMessage[TlChannelChatDef.message],
+ type: channelMessage[TlChannelChatDef.type],
+ createTime: channelMessage[TlChannelChatDef.createdAt],
+ fromUserId: channelMessage[TlChannelChatDef.fromUserId],
+ fromUserName: channelMessage[TlChannelChatDef.fromUserName],
+ fromUserAvatar: await getAvatarOssUrl(),
+ hasRead: false,
+ })
+}
+
+/**
+ * 分享加入群聊
+ * @param {*} loginInfo
+ * @param {*} channelId
+ */
+const shareJoinGroupChannel = async function({ loginInfo, channelId }){
+ if(!channelId){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId, loginUsername
+ } = loginInfo
+
+ const channelInfo = await channelService.getInfoById({
+ companyId: loginUserCompanyId,
+ id: channelId
+ }, [
+ TlChannelDef.id,
+ TlChannelDef.type
+ ])
+
+ if(Object.keys(channelInfo).length == 0){
+ return tlResponseArgsError("频道不存在")
+ }
+
+ return addChannelUser({
+ loginInfo, channelId,
+ userId: loginUserId,
+ roleId: TlRoleInner.channel.member.id
+ })
+}
+
+
+/**
+ * 添加频道普通身份用户
+ * @param {*} loginInfo
+ * @param {*} channelId
+ * @param {*} userId
+ */
+const addChannelUserNormal = async function({ loginInfo, channelId, userId }){
+ return addChannelUser({
+ loginInfo, channelId, userId, roleId: TlRoleInner.channel.member.id
+ })
+}
+
+/**
+ * 批量添加频道普通身份用户
+ * @param {*} loginInfo
+ * @param {*} channelId
+ * @param {*} userIdList
+ */
+const addChannelUserListNormal = async function({ loginInfo, channelId, userIdList }){
+ return addChannelUserList({
+ loginInfo, channelId, userIdList, roleId: TlRoleInner.channel.member.id
+ })
+}
+
+/**
+ * 添加频道管理员身份用户
+ * @param {*} loginInfo
+ * @param {*} channelId
+ * @param {*} userId
+ */
+const addChannelUserAdmin = async function({ loginInfo, channelId, userId }){
+ return addChannelUser({
+ loginInfo, channelId, userId, roleId: TlRoleInner.channel.admin.id
+ })
+}
+
+
+/**
+ * 删除频道用户
+ * @param {*} loginInfo
+ * @param {*} channelUserId
+ */
+const deleteChannelUser = async function({ loginInfo, channelUserId }){
+ if(!channelUserId){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserId, loginUserCompanyId
+ } = loginInfo
+
+ const info = await channelUserService.deleteInfoById({
+ companyId: loginUserCompanyId,
+ id: channelUserId,
+ })
+
+ if(info == 0){
+ return tlResponseSvrError("删除频道用户失败")
+ }
+
+ return tlResponseSuccess("删除频道用户成功")
+}
+
+/**
+ * 修改频道用户身份权限为普通用户
+ * @param {*} loginInfo
+ * @param {*} channelUserId
+ */
+const updateChannelUserRoleNormal = async function({ loginInfo, channelUserId }){
+ if(!channelUserId){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ const info = await channelUserService.updateInfoById({
+ companyId: loginUserCompanyId,
+ id: channelUserId,
+ },{
+ roleId: TlRoleInner.channel.member.id,
+ })
+
+ return tlResponseSuccess("修改频道用户成功")
+}
+
+/**
+ * 修改频道用户身份权限为管理员
+ * @param {*} loginInfo
+ * @param {*} channelUserId
+ */
+const updateChannelUserRoleAdmin = async function({ loginInfo, channelUserId }){
+ if(!channelUserId){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ const info = await channelUserService.updateInfoById({
+ companyId: loginUserCompanyId,
+ id: channelUserId,
+ }, {
+ roleId: TlRoleInner.channel.admin.id,
+ })
+
+ if(Object.keys(info).length == 0){
+ return tlResponseSvrError("修改频道用户失败")
+ }
+
+ return tlResponseSuccess("修改频道用户成功")
+}
+
+/**
+ * 获取频道用户列表
+ * @param {*} loginInfo
+ * @param {*} channelId
+ */
+const getChannelUserList = async function({ loginInfo, channelId }){
+ if(!channelId){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ const channelUserList = await channelUserService.getListByChannelId({
+ companyId: loginUserCompanyId,
+ channelId,
+ }, [
+ TlChannelUserDef.userId,
+ TlChannelUserDef.roleId,
+ TlChannelUserDef.channelId
+ ])
+
+ const userIdList = channelUserList.map(channelUser => channelUser[TlChannelUserDef.userId])
+
+ // 获取用户信息
+ const userList = await userService.getListByIdList({
+ companyId: loginUserCompanyId,
+ idList: userIdList
+ }, [
+ TlUserDef.id,
+ TlUserDef.name,
+ TlUserDef.avatarUrl,
+ ])
+
+ const userMap = {}
+ userList.forEach(user => userMap[user[TlUserDef.id]] = user)
+
+ // 获取好友关系
+ const friendList = await userFriendService.getListByUserIdAndFriendIdList({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ friendIdList: userIdList
+ }, [
+ TlUserFriendDef.id,
+ TlUserFriendDef.friendId,
+ TlUserFriendDef.rename
+ ])
+
+ const firendMap = {}
+ friendList.forEach(friend => firendMap[friend[TlUserFriendDef.friendId]] = friend)
+
+ // 组装结果
+ let resultList = []
+
+ for(let i = 0; i < channelUserList.length; i++){
+ const channelUser = channelUserList[i]
+
+ const userId = channelUser[TlChannelUserDef.userId]
+ const user = userMap[userId]
+ if(!user){
+ return
+ }
+
+ // 获取好友关系名称
+ const friend = firendMap[userId] || {}
+ let friendName = friend[TlUserFriendDef.rename] || ""
+ let userFriendId = friend[TlUserFriendDef.id]
+
+ resultList.push({
+ userId: user[TlUserDef.id],
+ username: user[TlUserDef.name],
+ userAvatar: await getOssUrl(user[TlUserDef.avatarUrl]),
+ friendName: friendName,
+ userFriendId: userFriendId
+ })
+ }
+
+ return tlResponseSuccess("获取单个频道用户列表成功", resultList)
+}
+
+
+/**
+ * 获取频道列表的用户列表
+ * @param {*} loginInfo
+ */
+const getChannelListUserList = async function({loginInfo}){
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ // 获取自己所在的频道列表
+ const selfShannelUserList = await channelUserService.getListByUserId({
+ companyId: loginUserCompanyId,
+ userId: loginUserId
+ }, [
+ TlChannelUserDef.channelId
+ ])
+
+ const channelIdList = selfShannelUserList.map(channelUser => channelUser[TlChannelUserDef.channelId])
+
+ // 获取自己所在频道的所有用户列表
+ const allChannelUserList = await channelUserService.getListByChannelIdList({
+ companyId: loginUserCompanyId,
+ channelIdList
+ }, [
+ TlChannelUserDef.userId,
+ TlChannelUserDef.channelId,
+ ])
+
+ const userIdList = allChannelUserList.map(channelUser => channelUser[TlChannelUserDef.userId])
+
+ // 获取用户信息
+ const userList = await userService.getListByIdList({
+ companyId: loginUserCompanyId,
+ idList: userIdList
+ }, [
+ TlUserDef.id,
+ TlUserDef.name,
+ TlUserDef.avatarUrl,
+ ])
+
+ const userMap = {}
+ userList.forEach(user => userMap[user[TlUserDef.id]] = user)
+
+ // 获取好友关系
+ const friendList = await userFriendService.getListByUserIdAndFriendIdList({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ friendIdList: userIdList
+ }, [
+ TlUserFriendDef.id,
+ TlUserFriendDef.friendId,
+ TlUserFriendDef.rename
+ ])
+
+ const firendMap = {}
+ friendList.forEach(friend => firendMap[friend[TlUserFriendDef.friendId]] = friend)
+
+ // 组装结果
+ let result = {}
+ for(let i = 0; i < allChannelUserList.length; i++){
+ const channelUser = allChannelUserList[i]
+
+ const channelId = channelUser[TlChannelUserDef.channelId]
+ const userId = channelUser[TlChannelUserDef.userId]
+ const user = userMap[userId]
+ if(!user){
+ return
+ }
+
+ // 获取好友关系名称
+ const friend = firendMap[userId] || {}
+ let friendName = friend[TlUserFriendDef.rename]
+ let userFriendId = friend[TlUserFriendDef.id]
+
+ const channelUserList = result[channelId] || []
+ channelUserList.push({
+ userId: user[TlUserDef.id],
+ username: user[TlUserDef.name],
+ userAvatar: await getOssUrl(user[TlUserDef.avatarUrl]),
+ friendName: friendName,
+ userFriendId: userFriendId
+ })
+
+ result[channelId] = channelUserList
+ }
+
+ return tlResponseSuccess("获取全部频道用户列表成功", result)
+}
+
+
+/**
+ * 设置频道置顶
+ * @param {*} channelId
+ * @param {*} loginInfo
+ * @param {*} top
+ * @returns
+ */
+const updateChannelToTop = async function({channelId, top = false, loginInfo}){
+ if(!channelId){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({
+ companyId: loginUserCompanyId,
+ channelId,
+ userId: loginUserId
+ }, [
+ TlChannelUserDef.id,
+ TlChannelUserDef.flag
+ ])
+
+ if(Object.keys(channelUserInfo).length == 0){
+ return tlResponseNotFound("频道不存在")
+ }
+
+ const channelUserInfoId = channelUserInfo[TlChannelUserDef.id]
+
+ let flag = channelUserInfo[TlChannelUserDef.flag]
+ if(top){
+ flag = setBit(flag, TlChannelUserFlag.IS_SET_TOP, true)
+ }else{
+ flag = setBit(flag, TlChannelUserFlag.IS_SET_TOP, false)
+ }
+
+ const updateChannelUserInfo = await channelUserService.updateInfoById({
+ companyId: loginUserCompanyId,
+ id: channelUserInfoId
+ }, {
+ flag: flag
+ })
+
+ if(Object.keys(updateChannelUserInfo).length == 0){
+ return tlResponseSvrError(top ? "置顶失败" : "取消置顶失败")
+ }
+
+ return tlResponseSuccess(top ? "置顶成功" : "取消置顶成功")
+}
+
+
+/**
+ * 设置拉黑频道
+ * @param {*} channelId
+ * @param {*} loginInfo
+ * @param {*} black
+ * @returns
+ */
+const updateChannelToBlack = async function({channelId, black = false, loginInfo}){
+ if(!channelId){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({
+ companyId: loginUserCompanyId,
+ channelId,
+ userId: loginUserId
+ }, [
+ TlChannelUserDef.id,
+ TlChannelUserDef.flag
+ ])
+
+ if(Object.keys(channelUserInfo).length == 0){
+ return tlResponseNotFound("频道不存在")
+ }
+
+ const channelUserInfoId = channelUserInfo[TlChannelUserDef.id]
+
+ let flag = channelUserInfo[TlChannelUserDef.flag]
+ if(black){
+ flag = setBit(flag, TlChannelUserFlag.IS_SET_BLACK, true)
+ }else{
+ flag = setBit(flag, TlChannelUserFlag.IS_SET_BLACK, false)
+ }
+
+ const updateChannelUserInfo = await channelUserService.updateInfoById({
+ companyId: loginUserCompanyId,
+ id: channelUserInfoId
+ }, {
+ flag: flag
+ })
+
+ if(Object.keys(updateChannelUserInfo).length == 0){
+ return tlResponseSvrError(black ? "拉黑失败" : "取消拉黑失败")
+ }
+
+ return tlResponseSuccess(black ? "拉黑成功" : "取消拉黑成功")
+}
+
+
+/**
+ * 退出群聊
+ * @param {*} channelId
+ */
+const exitChannel = async function({channelId, loginInfo}){
+ if(!channelId){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ // 获取频道用户
+ const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({
+ companyId: loginUserCompanyId,
+ channelId,
+ userId: loginUserId
+ }, [
+ TlChannelUserDef.id,
+ ])
+
+ if(Object.keys(channelUserInfo).length == 0){
+ return tlResponseNotFound("退出频道成功")
+ }
+
+ // 删除自己在频道的数据
+ await channelUserService.deleteInfoById({
+ companyId: loginUserCompanyId,
+ id: channelUserInfo[TlChannelUserDef.id]
+ })
+
+ return tlResponseSuccess("退出频道成功")
+}
+
+
+
+module.exports = {
+ addChannelUser,
+ addChannelUserNormal,
+ addChannelUserAdmin,
+ deleteChannelUser,
+ updateChannelUserRoleNormal,
+ updateChannelUserRoleAdmin,
+ getChannelUserList,
+ addChannelUserListNormal,
+ getChannelListUserList,
+ shareJoinGroupChannel,
+ updateChannelToTop,
+ updateChannelToBlack,
+ exitChannel
+}
\ No newline at end of file
diff --git a/src/biz/company/company_biz.js b/src/biz/company/company_biz.js
new file mode 100644
index 0000000..488af56
--- /dev/null
+++ b/src/biz/company/company_biz.js
@@ -0,0 +1,97 @@
+const uuid = require('uuid')
+const {
+ tlResponseArgsError, tlResponseForbidden, tlResponseSvrError,
+ tlResponseTimeout, tlResponseNotFound, tlResponseSuccess
+} = require('../../utils/utils')
+const companyService = require('../../service/company/tl_company_service')
+const userSessionService = require('../../service/user/tl_user_session_service')
+
+
+/**
+ * 添加企业
+ * @param {*} loginInfo
+ * @param {*} name
+ * @param {*} address
+ * @param {*} phone
+ * @param {*} email
+ * @param {*} website
+ * @param {*} logo
+ * @param {*} description
+ */
+const addCompany = async function ({
+ loginInfo, name, address, phone, email, website, logo, description
+}) {
+ if(!name){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if(!address){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if(!phone){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if(!email){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if(!website){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if(!logo){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if(!description){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ const code = uuid.v4().replace(/-/g, '')
+
+ const info = await companyService.addInfo({
+ name,
+ address,
+ phone,
+ email,
+ website,
+ logo,
+ description,
+ code
+ })
+
+ if(Object.keys(info).length == 0){
+ return tlResponseSvrError("添加企业失败")
+ }
+
+ return tlResponseSuccess("添加企业成功", info)
+}
+
+
+/**
+ * 获取企业信息
+ * @param {*} loginInfo
+ */
+const getCompanyInfo = async function ({loginInfo}) {
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ const info = await companyService.getInfoById({
+ id: loginUserCompanyId
+ })
+
+ return tlResponseSuccess("获取企业信息成功", info)
+}
+
+
+module.exports = {
+ addCompany,
+ getCompanyInfo
+}
\ No newline at end of file
diff --git a/src/biz/config/config_biz.js b/src/biz/config/config_biz.js
new file mode 100644
index 0000000..21f299c
--- /dev/null
+++ b/src/biz/config/config_biz.js
@@ -0,0 +1,138 @@
+
+const {
+ tlResponseArgsError, tlResponseForbidden, tlResponseSvrError,
+ tlResponseTimeout, tlResponseNotFound, tlResponseSuccess
+} = require("../../utils/utils");
+const {get_env_config} = require("../../../conf/env_config");
+const conf = get_env_config()
+const crypto = require("crypto")
+const userSessionService = require('../../service/user/tl_user_session_service')
+
+
+/**
+ * 获取ip地址,初始化等相关配置
+ * @param {*} openTurn 是否开启turn
+ * @param {*} useSecret 使用的账号模式
+ * @param {*} ip ip地址
+ * @param {*} loginInfo 登录信息
+ */
+const initData = async function({openTurn, useSecret, ip, token}){
+ if(!token){
+ return tlResponseSuccess("获取成功",{
+ version : conf.version,
+ wsHost: "ws://127.0.0.1",
+ rtcConfig: { iceServers: [] },
+ options: {},
+ logo : genClientLogo(),
+ })
+ }
+
+ const {
+ loginUserCompanyId, loginUserId, loginUsername
+ } = await userSessionService.getUserInfoByToken({token})
+
+ if (!loginUserCompanyId || !loginUserId) {
+ return tlResponseSuccess("获取成功",{
+ version : conf.version,
+ wsHost: "ws://127.0.0.1",
+ rtcConfig: { iceServers: [] },
+ options: {},
+ logo : genClientLogo(),
+ })
+ }
+
+ //ice服务器配置
+ let iceServers = genTurnServerIceServersConfig(openTurn, useSecret, "tlrtcfile");
+
+ if(process.env.tl_rtc_app_env_mode === 'http'){
+ let wsHost = conf.socket_host || ip + conf.socket_port;
+ return tlResponseSuccess("获取成功",{
+ version : conf.version,
+ wsHost: "ws://" + wsHost,
+ rtcConfig: { iceServers },
+ options: {
+ "offerToReceiveAudio": 1,
+ "offerToReceiveVideo": 1
+ },
+ logo : genClientLogo(),
+ })
+ }
+
+ let wsHost = conf.socket_host || ip;
+ return tlResponseSuccess("获取成功",{
+ version : conf.version,
+ wsHost: "wss://" + wsHost,
+ rtcConfig: { iceServers },
+ options: {
+ "offerToReceiveAudio": 1,
+ "offerToReceiveVideo": 1
+ },
+ logo : genClientLogo(),
+ })
+}
+
+
+
+/**
+ * 生成客户端控制台打印logo
+ */
+const genClientLogo = function(){
+ let style = "font-size:20px;color: black; font-style: italic;";
+ style += "font-weight: bold; font-family: system-ui;";
+ style += "padding: 8px;cursor: pointer;"
+ return style;
+}
+
+
+/**
+ * 生成turn服务的iceServers配置
+ * @param {*} withTurn
+ * @param {*} useSecret
+ * @param {*} username
+ * @returns
+ */
+const genTurnServerIceServersConfig = function(withTurn, useSecret, username){
+ let iceServers = [{
+ urls : conf.webrtc_stun_host
+ }];
+
+ //无需turn中继
+ if(!withTurn){
+ return iceServers;
+ }
+
+ //turn固定账号模式
+ if(!useSecret){
+ iceServers.push({
+ urls : conf.webrtc_turn_host,
+ username: conf.webrtc_turn_username,
+ credential: conf.webrtc_turn_credential
+ })
+ return iceServers;
+ }
+
+ // 有效账号模式
+ const secret = conf.webrtc_turn_secret;
+ //生成账号的有效期
+ const expirseTime = conf.webrtc_turn_expire;
+ //当前时间
+ const time = new Date().getTime();
+ //turn服务的用户名规则
+ const turnUsername = `${time + expirseTime}:${username}`;
+
+ //turn服务的密码规则
+ const dig = crypto.createHmac('sha1', secret).update(turnUsername).digest();
+ const turnPassword = Buffer.from(dig, 'utf-8').toString('base64');
+
+ iceServers.push({
+ urls : conf.webrtc_turn_host,
+ username: turnUsername,
+ credential: turnPassword,
+ })
+
+ return iceServers;
+}
+
+module.exports = {
+ initData
+}
\ No newline at end of file
diff --git a/src/biz/user/user_apply_biz.js b/src/biz/user/user_apply_biz.js
new file mode 100644
index 0000000..a59217b
--- /dev/null
+++ b/src/biz/user/user_apply_biz.js
@@ -0,0 +1,495 @@
+const {
+ tlResponseArgsError, tlResponseForbidden, tlResponseSvrError,
+ tlResponseTimeout, tlResponseNotFound, tlResponseSuccess,
+ setBit, checkBit,
+ tlConsole
+} = require('../../utils/utils')
+const userService = require('../../service/user/tl_user_service')
+const userFriendService = require('../../service/user/tl_user_friend_service')
+const userSessionService = require('../../service/user/tl_user_session_service')
+const userApplyService = require('../../service/user/tl_user_apply_service')
+const userReadService = require('../../service/user/tl_user_read_service')
+const userFriendBiz = require('./user_friend_biz')
+
+const { fields: userFields } = require('../../tables/tl_user')
+const { fields: userFriendFields } = require('../../tables/tl_user_friend')
+const { fields: userApplyFields } = require('../../tables/tl_user_apply')
+const { fields: userReadFields } = require('../../tables/tl_user_read')
+
+const { getOssUrl } = require('../../utils/oss/oss')
+
+const TlUserDef = userFields.Def
+const TlUserFriendDef = userFriendFields.Def
+const TlUserFriendType = userFriendFields.FriendType
+const TlUserFriendStatus = userFriendFields.Status
+const TlUserApplyDef = userApplyFields.Def
+const TlUserApplyStatus = userApplyFields.Status
+const TlUserApplyType = userApplyFields.Type
+const TlUserApplyOrigin = userApplyFields.Origin
+const TlUserReadDef = userReadFields.Def
+const TlUserReadType = userReadFields.Type
+
+
+
+/**
+ * 申请添加好友
+ * @param {*} friendId
+ * @param {*} origin
+ * @param {*} remark
+ * @param {*} loginInfo
+ */
+const applyAddFriend = async function({ friendId, origin, remark, loginInfo }){
+ if(!friendId){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if(!origin){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ if (loginUserId == friendId) {
+ return tlResponseForbidden("不能添加自己为好友")
+ }
+
+ const friendInfo = await userService.getInfoById({
+ companyId: loginUserCompanyId,
+ id: friendId
+ })
+
+ if(Object.keys(friendInfo).length == 0){
+ return tlResponseNotFound("用户不存在")
+ }
+
+ const userFriendInfo = await userFriendService.getInfoByUserIdAndFriendId({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ friendId
+ })
+
+ const status = userFriendInfo[TlUserFriendDef.status]
+ if(status == TlUserFriendStatus.NORMAL){
+ return tlResponseForbidden("已经是好友")
+ }
+
+ // 查看自己是否存在待验证的申请记录
+ let applyHistroryList = await userApplyService.getListByUserIdAndTargetIdAndStatuAndType({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ targetId: friendId,
+ status: TlUserApplyStatus.WAIT,
+ type: TlUserApplyType.FRIEND
+ }, [
+ TlUserApplyDef.id
+ ])
+
+ if(applyHistroryList.length > 0){
+ return tlResponseForbidden("你已经向该用户发送过申请,请查看申请记录")
+ }
+
+ // 查看对方是否存在待验证的申请记录
+ applyHistroryList = await userApplyService.getListByUserIdAndTargetIdAndStatuAndType({
+ companyId: loginUserCompanyId,
+ userId: friendId,
+ targetId: loginUserId,
+ status: TlUserApplyStatus.WAIT,
+ type: TlUserApplyType.FRIEND
+ }, [
+ TlUserApplyDef.id
+ ])
+
+ if(applyHistroryList.length > 0){
+ return tlResponseForbidden("对方已经向你发送过申请,请查看申请记录")
+ }
+
+ // 生成申请记录
+ const applyInfo = await userApplyService.addInfo({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ targetId: friendId,
+ origin,
+ remark,
+ type: TlUserApplyType.FRIEND,
+ status: TlUserApplyStatus.WAIT
+ })
+
+ if(Object.keys(applyInfo).length == 0){
+ return tlResponseSvrError("发送申请失败")
+ }
+
+ return tlResponseSuccess("发送申请成功", {
+ applyId: applyInfo[TlUserApplyDef.id]
+ })
+}
+
+/**
+ * 通过用户好友申请
+ * @param {*} id
+ * @param {*} loginInfo
+ * @returns
+ */
+const passUserFriendApply = async function({ id, loginInfo }){
+ if(!id){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId, loginUsername
+ } = loginInfo
+
+ // 查询申请记录
+ const applyInfo = await userApplyService.getInfoById({
+ companyId: loginUserCompanyId,
+ id
+ })
+
+ if(Object.keys(applyInfo).length == 0){
+ return tlResponseNotFound("申请记录不存在")
+ }
+
+ const status = applyInfo[TlUserApplyDef.status]
+ if(status != TlUserApplyStatus.WAIT){
+ return tlResponseForbidden("申请记录状态不正确")
+ }
+
+ const type = applyInfo[TlUserApplyDef.type]
+ if(type != TlUserApplyType.FRIEND){
+ return tlResponseForbidden("申请记录类型不正确")
+ }
+
+ // 查询申请人信息
+ const applyUserId = applyInfo[TlUserApplyDef.userId]
+ const applyUserInfo = await userService.getInfoById({
+ companyId: loginUserCompanyId,
+ id: applyUserId
+ }, [
+ TlUserDef.id,
+ TlUserDef.name
+ ])
+
+ if(Object.keys(applyUserInfo).length == 0){
+ return tlResponseNotFound("用户不存在")
+ }
+
+ // 生成频道,生成一条系统消息,生成对应的频道用户
+ let initChannelRes = await userFriendBiz.initChannelForPassFriend({
+ applyUserId, loginUserCompanyId, loginUserId
+ })
+
+ if (!initChannelRes.success) {
+ return initChannelRes
+ }
+
+ // 生成双向好友记录
+ let initUserFriendRes = await userFriendBiz.initUserFriendForPassFriend({
+ loginUserCompanyId,
+ loginUserId,
+ loginUsername,
+ applyUserId,
+ applyUserName: applyUserInfo[TlUserDef.name],
+ origin: applyInfo[TlUserApplyDef.origin],
+ remark: applyInfo[TlUserApplyDef.remark],
+ channelId: initChannelRes.data.channelId
+ })
+
+ if (!initUserFriendRes.success) {
+ return initUserFriendRes
+ }
+
+ // 更新申请记录状态
+ const updateInfo = await userApplyService.updateInfoById({
+ companyId: loginUserCompanyId,
+ id
+ }, {
+ [TlUserApplyDef.status]: TlUserApplyStatus.PASS
+ })
+
+ if(Object.keys(updateInfo).length == 0){
+ return tlResponseSvrError("更新申请记录状态失败")
+ }
+
+ return tlResponseSuccess("通过申请成功", {
+ applyId : id,
+ applyUserId: applyUserId
+ })
+}
+
+/**
+ * 拒绝用户好友申请
+ * @param {*} id
+ * @param {*} loginInfo
+ * @returns
+ */
+const rejectUserFriendApply = async function({ id, loginInfo }){
+ if(!id){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ const applyInfo = await userApplyService.getInfoById({
+ companyId: loginUserCompanyId,
+ id
+ }, [
+ TlUserApplyDef.id,
+ TlUserApplyDef.status,
+ TlUserApplyDef.type,
+ TlUserApplyDef.userId
+ ])
+
+ if(Object.keys(applyInfo).length == 0){
+ return tlResponseNotFound("申请记录不存在")
+ }
+
+ const status = applyInfo[TlUserApplyDef.status]
+ if(status != TlUserApplyStatus.WAIT){
+ return tlResponseForbidden("申请记录状态不正确")
+ }
+
+ const type = applyInfo[TlUserApplyDef.type]
+ if(type != TlUserApplyType.FRIEND){
+ return tlResponseForbidden("申请记录类型不正确")
+ }
+
+ const applyUserId = applyInfo[TlUserApplyDef.userId]
+ const applyUserInfo = await userService.getInfoById({
+ companyId: loginUserCompanyId,
+ id: applyUserId
+ }, [
+ TlUserDef.id
+ ])
+
+ if(Object.keys(applyUserInfo).length == 0){
+ return tlResponseNotFound("用户不存在")
+ }
+
+ // 更新申请记录状态
+ const updateInfo = await userApplyService.updateInfoById({
+ companyId: loginUserCompanyId,
+ id
+ }, {
+ [TlUserApplyDef.status]: TlUserApplyStatus.REJECT
+ })
+
+ if(Object.keys(updateInfo).length == 0){
+ return tlResponseSvrError("更新申请记录状态失败")
+ }
+
+ return tlResponseSuccess("拒绝申请成功", {
+ applyId : id,
+ applyUserId: applyUserId
+ })
+}
+
+
+/**
+ * 获取我发出的好友申请记录
+ * @param {*} loginInfo
+ * @returns
+ */
+const getUserFriendApplyListFromSelf = async function({ loginInfo }){
+ const {
+ loginUserCompanyId, loginUserId, loginUserCompanyName
+ } = loginInfo
+
+ const applyList = await userApplyService.getListByUserIdAndType({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ type: TlUserApplyType.FRIEND
+ }, [
+ TlUserApplyDef.id,
+ TlUserApplyDef.targetId,
+ TlUserApplyDef.origin,
+ TlUserApplyDef.status,
+ TlUserApplyDef.remark,
+ TlUserApplyDef.createdAt
+ ])
+
+ // 用户信息
+ let userIdList = new Set(
+ applyList.map(item => item[TlUserApplyDef.targetId])
+ )
+ let userInfoList = await userService.getListByIdList({
+ companyId: loginUserCompanyId,
+ idList: [...userIdList]
+ }, [
+ TlUserDef.id,
+ TlUserDef.name,
+ TlUserDef.avatarUrl
+ ])
+ let userInfoMap = new Map()
+ userInfoList.forEach(item => {
+ userInfoMap.set(item[TlUserDef.id], item)
+ })
+
+ // 已读记录
+ let readList = await userReadService.getListByUserIdTypeList({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ typeList: [
+ TlUserReadType.FRIEND_APPLY,
+ TlUserReadType.FRIEND_APPLY_PASS,
+ TlUserReadType.FRIEND_APPLY_REJECT
+ ]
+ }, [
+ TlUserReadDef.recordId
+ ])
+ let userReadMap = new Map()
+ readList.forEach(item => {
+ userReadMap.set(item[TlUserReadDef.recordId], true)
+ })
+
+ let resultList = []
+
+ for(let i = 0; i < applyList.length; i++){
+ const item = applyList[i]
+
+ let originStr = ''
+ const origin = item[TlUserApplyDef.origin]
+ if(origin == TlUserApplyOrigin.SEARCH_NAME){
+ originStr = "搜索用户名添加"
+ }
+
+ const status = item[TlUserApplyDef.status]
+ let statusStr = ''
+ if(status == TlUserApplyStatus.PASS){
+ statusStr = "对方通过申请"
+ }else if(status == TlUserApplyStatus.REJECT){
+ statusStr = "对方拒绝申请"
+ }else if(status == TlUserApplyStatus.WAIT){
+ statusStr = "等待对方验证"
+ }
+
+ let userInfo = userInfoMap.get(item[TlUserApplyDef.targetId])
+ if(!userInfo){
+ userInfo = {}
+ }
+
+ resultList.push({
+ id : item[TlUserApplyDef.id],
+ username: userInfo[TlUserDef.name],
+ userAvatar: await getOssUrl(userInfo[TlUserDef.avatarUrl]),
+ userApplyRemark: item[TlUserApplyDef.remark],
+ origin : originStr,
+ createTime: item[TlUserApplyDef.createdAt],
+ status : statusStr,
+ userCompanyName: loginUserCompanyName,
+ hasRead: userReadMap.has(item[TlUserApplyDef.id])
+ })
+ }
+
+ return tlResponseSuccess("获取我发出的申请记录成功", resultList)
+}
+
+/**
+ * 获取我收到的好友申请记录
+ * @param {*} loginInfo
+ * @returns
+ */
+const getUserFriendListFromOther = async function({ loginInfo }){
+ const {
+ loginUserCompanyId, loginUserId, loginUserCompanyName
+ } = loginInfo
+
+ const applyList = await userApplyService.getListByTargetIdAndType({
+ companyId: loginUserCompanyId,
+ targetId: loginUserId,
+ type: TlUserApplyType.FRIEND
+ }, [
+ TlUserApplyDef.id,
+ TlUserApplyDef.userId,
+ TlUserApplyDef.origin,
+ TlUserApplyDef.status,
+ TlUserApplyDef.remark,
+ TlUserApplyDef.createdAt
+ ])
+
+ // 用户信息
+ let userIdList = new Set(
+ applyList.map(item => item[TlUserApplyDef.userId])
+ )
+ let userInfoList = await userService.getListByIdList({
+ companyId: loginUserCompanyId,
+ idList: [...userIdList]
+ }, [
+ TlUserDef.id,
+ TlUserDef.name,
+ TlUserDef.avatarUrl
+ ])
+ let userInfoMap = new Map()
+ userInfoList.forEach(item => {
+ userInfoMap.set(item[TlUserDef.id], item)
+ })
+
+ // 已读记录
+ let readList = await userReadService.getListByUserIdTypeList({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ typeList: [
+ TlUserReadType.FRIEND_APPLY,
+ TlUserReadType.FRIEND_APPLY_PASS,
+ TlUserReadType.FRIEND_APPLY_REJECT
+ ]
+ }, [
+ TlUserReadDef.recordId
+ ])
+ let userReadMap = new Map()
+ readList.forEach(item => {
+ userReadMap.set(item[TlUserReadDef.recordId], true)
+ })
+
+ let resultList = []
+
+ for(let i = 0; i < applyList.length; i++){
+ const item = applyList[i]
+
+ let originStr = ''
+ const origin = item[TlUserApplyDef.origin]
+ if(origin == TlUserApplyOrigin.SEARCH_NAME){
+ originStr = "搜索用户名添加"
+ }
+
+ const status = item[TlUserApplyDef.status]
+ let statusStr = ''
+ if(status == TlUserApplyStatus.PASS){
+ statusStr = "已通过申请"
+ }else if(status == TlUserApplyStatus.REJECT){
+ statusStr = "已拒绝申请"
+ }else if(status == TlUserApplyStatus.WAIT){
+ statusStr = "等待我验证"
+ }
+
+ let userInfo = userInfoMap.get(item[TlUserApplyDef.userId])
+ if(!userInfo){
+ userInfo = {}
+ }
+
+ resultList.push({
+ id : item[TlUserApplyDef.id],
+ username: userInfo[TlUserDef.name],
+ userAvatar: await getOssUrl(userInfo[TlUserDef.avatarUrl]),
+ userApplyRemark: item[TlUserApplyDef.remark],
+ origin : originStr,
+ createTime: item[TlUserApplyDef.createdAt],
+ status : statusStr,
+ userCompanyName: loginUserCompanyName,
+ hasRead: userReadMap.has(item[TlUserApplyDef.id])
+ })
+ }
+ return tlResponseSuccess("获取我收到的申请记录成功", resultList)
+}
+
+
+
+module.exports = {
+ applyAddFriend,
+ passUserFriendApply,
+ rejectUserFriendApply,
+ getUserFriendApplyListFromSelf,
+ getUserFriendListFromOther
+}
\ No newline at end of file
diff --git a/src/biz/user/user_biz.js b/src/biz/user/user_biz.js
new file mode 100644
index 0000000..c4bd1bb
--- /dev/null
+++ b/src/biz/user/user_biz.js
@@ -0,0 +1,235 @@
+const {
+ tlResponseArgsError, tlResponseForbidden, tlResponseSvrError,
+ tlResponseTimeout, tlResponseNotFound, tlResponseSuccess,
+ setBit, checkBit, checkIsEmail
+} = require('../../utils/utils')
+const userService = require('../../service/user/tl_user_service')
+const userFriendService = require('../../service/user/tl_user_friend_service')
+const userSessionService = require('../../service/user/tl_user_session_service')
+const { getAvatarOssUrl } = require('../../utils/oss/oss')
+
+const { fields: userFields } = require('../../tables/tl_user')
+const { fields: userFriendFields } = require('../../tables/tl_user_friend')
+
+const TlUserDef = userFields.Def
+const TlUserFriendDef = userFriendFields.Def
+const TlUserFriendStatus = userFriendFields.Status
+const TlUserFriendType = userFriendFields.FriendType
+
+
+
+/**
+ * 搜索用户
+ * @param {*} name
+ * @param {*} loginInfo
+ */
+const searchUserByName = async function({ name, loginInfo }){
+ if(!name){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId, loginUserCompanyName
+ } = loginInfo
+
+ const info = await userService.getInfoByName({
+ companyId: loginUserCompanyId,
+ name
+ }, [
+ TlUserDef.id,
+ TlUserDef.name,
+ TlUserDef.avatarUrl,
+ TlUserDef.wchatName,
+ ])
+
+ if(Object.keys(info).length == 0){
+ return tlResponseNotFound("用户不存在")
+ }
+
+ const userFriendInfo = await userFriendService.getInfoByUserIdAndFriendId({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ friendId: info[TlUserDef.id]
+ }, [
+ TlUserFriendDef.channelId,
+ TlUserFriendDef.remark,
+ TlUserFriendDef.friendType
+ ])
+
+ let isFriend = true
+ if(Object.keys(userFriendInfo).length == 0){
+ isFriend = false
+ }
+
+ if(info[TlUserDef.id] == loginUserId){
+ isFriend = true
+ }
+
+ let friendTypeStr = ''
+ if(isFriend){
+ let friendType = userFriendInfo[TlUserFriendDef.friendType]
+ if(friendType === TlUserFriendType.NORMAL){
+ friendTypeStr = '普通好友'
+ }else if(friendType === TlUserFriendType.SPECIAL){
+ friendTypeStr = '特别关注'
+ }
+ }
+
+ const result = {
+ userId: info[TlUserDef.id],
+ username: info[TlUserDef.name],
+ userAvatar: await getAvatarOssUrl(info[TlUserDef.avatarUrl]),
+ userCompanyName: loginUserCompanyName,
+ wechatName: info[TlUserDef.wchatName],
+ channelId: userFriendInfo[TlUserFriendDef.channelId],
+ isFriend: isFriend,
+ remark: userFriendInfo[TlUserFriendDef.remark],
+ friendType: friendTypeStr
+ }
+
+ return tlResponseSuccess("搜索用户成功", result)
+}
+
+/**
+ * 搜索用户通过id
+ * @param {*} id
+ * @param {*} loginInfo
+ */
+const searchUserById = async function({ id, loginInfo }){
+ if(!id){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId, loginUserCompanyName
+ } = loginInfo
+
+ const info = await userService.getInfoById({
+ companyId: loginUserCompanyId,
+ id
+ }, [
+ TlUserDef.id,
+ TlUserDef.name,
+ TlUserDef.avatarUrl,
+ TlUserDef.wchatName
+ ])
+
+ if(Object.keys(info).length == 0){
+ return tlResponseNotFound("用户不存在")
+ }
+
+ const userFriendInfo = await userFriendService.getInfoByUserIdAndFriendId({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ friendId: info[TlUserDef.id]
+ }, [
+ TlUserFriendDef.channelId,
+ ])
+
+ let isFriend = true
+ if(Object.keys(userFriendInfo).length == 0){
+ isFriend = false
+ }
+
+ if(id == loginUserId){
+ isFriend = true
+ }
+
+ const result = {
+ userId: info[TlUserDef.id],
+ username: info[TlUserDef.name],
+ userAvatar: await getAvatarOssUrl(info[TlUserDef.avatarUrl]),
+ userCompanyName: loginUserCompanyName,
+ wechatName: info[TlUserDef.wchatName],
+ channelId: userFriendInfo[TlUserFriendDef.channelId],
+ isFriend: isFriend
+ }
+
+ return tlResponseSuccess("搜索用户成功", result)
+}
+
+
+/**
+ * 用户绑定邮箱
+ * @param {*} token
+ * @param {*} loginInfo
+ * @param {*} email
+ * @param {*} code
+ */
+const bindEmail = async function({ token, loginInfo, email, code }) {
+ const {
+ loginUserCompanyId, loginUserId, loginUserEmail
+ } = loginInfo
+
+ if(!email){
+ return tlResponseArgsError("邮箱不能为空")
+ }
+
+ if(!code){
+ return tlResponseArgsError("验证码不能为空")
+ }
+
+ // base64解码
+ email = Buffer.from(email, 'base64').toString()
+
+ if(!checkIsEmail(email)){
+ return tlResponseArgsError("邮箱格式不正确")
+ }
+
+ if(email == loginUserEmail){
+ return tlResponseForbidden("邮箱未更换")
+ }
+
+ // 检查code
+ const checkCode = await userSessionService.getEmailCode({
+ email
+ })
+
+ if (checkCode !== code) {
+ return tlResponseArgsError("邮箱验证码错误")
+ }
+
+ const emailExist = await userService.getInfoByEmail({
+ companyId: loginUserCompanyId,
+ email
+ }, [
+ TlUserDef.id
+ ])
+
+ if(emailExist[id] == loginUserId){
+ return tlResponseForbidden("邮箱未更换")
+ }
+
+ if(Object.keys(emailExist).length > 0){
+ return tlResponseForbidden("该邮箱已被其他帐号绑定")
+ }
+
+ const result = await userService.updateInfoById({
+ companyId: loginUserCompanyId,
+ id: loginUserId,
+ }, {
+ [TlUserDef.email]: email
+ })
+
+ if(Object.keys(result).length == 0){
+ return tlResponseSvrError("绑定邮箱失败")
+ }
+
+ // 更新登录态信息
+ await userSessionService.setUserInfoByToken({
+ token, info: Object.assign(loginInfo, {
+ loginUserEmail: email
+ })
+ })
+
+ return tlResponseSuccess("绑定邮箱成功")
+}
+
+
+
+
+module.exports = {
+ searchUserByName,
+ searchUserById,
+ bindEmail
+}
\ No newline at end of file
diff --git a/src/biz/user/user_config_biz.js b/src/biz/user/user_config_biz.js
new file mode 100644
index 0000000..fd569c3
--- /dev/null
+++ b/src/biz/user/user_config_biz.js
@@ -0,0 +1,389 @@
+const {
+ tlResponseArgsError, tlResponseForbidden, tlResponseSvrError,
+ tlResponseTimeout, tlResponseNotFound, tlResponseSuccess,
+ setBit, checkBit
+} = require('../../utils/utils')
+const userConfigService = require('../../service/user/tl_user_config_service')
+const userSessionService = require('../../service/user/tl_user_session_service')
+
+const { fields: userConfigFields } = require('../../tables/tl_user_config')
+
+const TlUserConfigDef = userConfigFields.Def
+const TlUserConfigAccountDef = userConfigFields.Account
+const TlUserConfigSkinDef = userConfigFields.Skin
+const TlUserConfigAuthorityDef = userConfigFields.Authority
+const TlUserConfigMessageDef = userConfigFields.Message
+const TlUserConfigOtherDef = userConfigFields.Other
+
+
+/**
+ * 获取用户自定义配置
+ * @param {*} loginInfo
+ * @returns
+ */
+const getUserConfigSetting = async function({ loginInfo }){
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ let userConfig = await userConfigService.getInfoByUserId({
+ companyId: loginUserCompanyId,
+ userId: loginUserId
+ },[
+ TlUserConfigDef.account,
+ TlUserConfigDef.message,
+ TlUserConfigDef.authority,
+ TlUserConfigDef.skin,
+ TlUserConfigDef.other,
+ TlUserConfigDef.normal
+ ])
+
+ // 不存在则创建
+ if(Object.keys(userConfig).length == 0){
+ const result = await userConfigService.addDefaultInfo({
+ companyId: loginUserCompanyId,
+ userId: loginUserId
+ })
+
+ if(Object.keys(result).length == 0){
+ return tlResponseSvrError("获取设置失败")
+ }
+
+ userConfig = result
+ }
+
+ let userConfigAccount = userConfig[TlUserConfigDef.account]
+ let userConfigMessage = userConfig[TlUserConfigDef.message]
+ let userConfigAuthority = userConfig[TlUserConfigDef.authority]
+ let userConfigSkin = userConfig[TlUserConfigDef.skin]
+ let userConfigOther = userConfig[TlUserConfigDef.other]
+ let userConfigNormal = userConfig[TlUserConfigDef.normal]
+
+ let result = {
+ account: JSON.parse(userConfigAccount),
+ message: JSON.parse(userConfigMessage),
+ authority: JSON.parse(userConfigAuthority),
+ skin: JSON.parse(userConfigSkin),
+ other: JSON.parse(userConfigOther),
+ normal: JSON.parse(userConfigNormal)
+ }
+
+ return tlResponseSuccess("获取设置成功", result)
+}
+
+
+/**
+ * 更新用户配置
+ * @param {*} loginInfo
+ * @param {*} normal
+ * @returns
+ */
+const updateUserConfigNormal = async function({ loginInfo, normal }){
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ const userConfig = await userConfigService.getInfoByUserId({
+ companyId: loginUserCompanyId,
+ userId: loginUserId
+ },[
+ TlUserConfigDef.id,
+ TlUserConfigDef.normal
+ ])
+
+ if(Object.keys(userConfig).length == 0){
+ return tlResponseNotFound("用户配置不存在")
+ }
+
+ let preNormal = userConfig[TlUserConfigDef.normal]
+ preNormal = JSON.parse(preNormal)
+
+ let newNormal = Object.assign(preNormal, normal)
+
+ // 更新用户配置
+ let updateNormal = {}
+ for (let key in TlUserConfigNormalDef) {
+ updateNormal[key] = newNormal[key]
+ }
+
+ // 更新用户配置
+ let userConfigId = userConfig[TlUserConfigDef.id]
+ const result = await userConfigService.updateInfoById({
+ companyId: loginUserCompanyId,
+ id: userConfigId
+ }, {
+ [TlUserConfigDef.normal]: JSON.stringify(updateNormal)
+ })
+
+ if(Object.keys(result).length == 0){
+ return tlResponseSvrError("更新设置失败")
+ }
+
+ return tlResponseSuccess("更新设置成功")
+}
+
+
+/**
+ * 更新用户帐号配置
+ * @param {*} loginInfo
+ * @param {*} account
+ * @returns
+ */
+const updateUserConfigAccount = async function({ loginInfo, account }){
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ const userConfig = await userConfigService.getInfoByUserId({
+ companyId: loginUserCompanyId,
+ userId: loginUserId
+ },[
+ TlUserConfigDef.id,
+ TlUserConfigDef.account
+ ])
+
+ if(Object.keys(userConfig).length == 0){
+ return tlResponseNotFound("用户配置不存在")
+ }
+
+ let preAccount = userConfig[TlUserConfigDef.account]
+ preAccount = JSON.parse(preAccount)
+
+ let newAccount = Object.assign(preAccount, account)
+
+ // 更新用户配置
+ let updateAccount = {}
+ for (let key in TlUserConfigAccountDef) {
+ updateAccount[key] = newAccount[key]
+ }
+
+ // 更新用户配置
+ let userConfigId = userConfig[TlUserConfigDef.id]
+ const result = await userConfigService.updateInfoById({
+ companyId: loginUserCompanyId,
+ id: userConfigId
+ }, {
+ [TlUserConfigDef.account]: JSON.stringify(updateAccount)
+ })
+
+ if(Object.keys(result).length == 0){
+ return tlResponseSvrError("更新设置失败")
+ }
+
+ return tlResponseSuccess("更新设置成功")
+}
+
+
+/**
+ * 更新用户消息配置
+ * @param {*} loginInfo
+ * @param {*} message
+ * @returns
+ */
+const updateUserConfigMessage = async function({ loginInfo, message }){
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ const userConfig = await userConfigService.getInfoByUserId({
+ companyId: loginUserCompanyId,
+ userId: loginUserId
+ },[
+ TlUserConfigDef.id,
+ TlUserConfigDef.message
+ ])
+
+ if(Object.keys(userConfig).length == 0){
+ return tlResponseNotFound("用户配置不存在")
+ }
+
+ let preMessage = userConfig[TlUserConfigDef.message]
+ preMessage = JSON.parse(preMessage)
+
+ let newMessage = Object.assign(preMessage, message)
+
+ // 更新用户配置
+ let updateMessage = {}
+ for (let key in TlUserConfigMessageDef) {
+ updateMessage[key] = newMessage[key]
+ }
+
+ // 更新用户配置
+ let userConfigId = userConfig[TlUserConfigDef.id]
+ const result = await userConfigService.updateInfoById({
+ companyId: loginUserCompanyId,
+ id: userConfigId
+ }, {
+ [TlUserConfigDef.message]: JSON.stringify(updateMessage)
+ })
+
+ if(Object.keys(result).length == 0){
+ return tlResponseSvrError("更新设置失败")
+ }
+
+ return tlResponseSuccess("更新设置成功")
+}
+
+/**
+ * 更新用户权限配置
+ * @param {*} loginInfo
+ * @param {*} authority
+ * @returns
+ */
+const updateUserConfigAuthority = async function({ loginInfo, authority }){
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ const userConfig = await userConfigService.getInfoByUserId({
+ companyId: loginUserCompanyId,
+ userId: loginUserId
+ },[
+ TlUserConfigDef.id,
+ TlUserConfigDef.authority
+ ])
+
+ if(Object.keys(userConfig).length == 0){
+ return tlResponseNotFound("用户配置不存在")
+ }
+
+ let preAuthority = userConfig[TlUserConfigDef.authority]
+ preAuthority = JSON.parse(preAuthority)
+
+ let newAuthority = Object.assign(preAuthority, authority)
+
+ // 更新用户配置
+ let updateAuthority = {}
+ for (let key in TlUserConfigAuthorityDef) {
+ updateAuthority[key] = newAuthority[key]
+ }
+
+ // 更新用户配置
+ let userConfigId = userConfig[TlUserConfigDef.id]
+ const result = await userConfigService.updateInfoById({
+ companyId: loginUserCompanyId,
+ id: userConfigId
+ }, {
+ [TlUserConfigDef.authority]: JSON.stringify(updateAuthority)
+ })
+
+ if(Object.keys(result).length == 0){
+ return tlResponseSvrError("更新设置失败")
+ }
+
+ return tlResponseSuccess("更新设置成功")
+}
+
+/**
+ * 更新用户皮肤配置
+ * @param {*} loginInfo
+ * @param {*} skin
+ * @returns
+ */
+const updateUserConfigSkin = async function({ loginInfo, skin }){
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ const userConfig = await userConfigService.getInfoByUserId({
+ companyId: loginUserCompanyId,
+ userId: loginUserId
+ },[
+ TlUserConfigDef.id,
+ TlUserConfigDef.skin
+ ])
+
+ if(Object.keys(userConfig).length == 0){
+ return tlResponseNotFound("用户配置不存在")
+ }
+
+ let preSkin = userConfig[TlUserConfigDef.skin]
+ preSkin = JSON.parse(preSkin)
+
+ let newSkin = Object.assign(preSkin, skin)
+
+ // 更新用户配置
+ let updateSkin = {}
+ for (let key in TlUserConfigSkinDef) {
+ updateSkin[key] = newSkin[key]
+ }
+
+ // 更新用户配置
+ let userConfigId = userConfig[TlUserConfigDef.id]
+ const result = await userConfigService.updateInfoById({
+ companyId: loginUserCompanyId,
+ id: userConfigId
+ }, {
+ [TlUserConfigDef.skin]: JSON.stringify(updateSkin)
+ })
+
+ if(Object.keys(result).length == 0){
+ return tlResponseSvrError("更新设置失败")
+ }
+
+ return tlResponseSuccess("更新设置成功")
+}
+
+
+/**
+ * 更新用户其他配置
+ * @param {*} loginInfo
+ * @param {*} other
+ * @returns
+ */
+const updateUserConfigOther = async function({ loginInfo, other }){
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ const userConfig = await userConfigService.getInfoByUserId({
+ companyId: loginUserCompanyId,
+ userId: loginUserId
+ },[
+ TlUserConfigDef.id,
+ TlUserConfigDef.other
+ ])
+
+ if(Object.keys(userConfig).length == 0){
+ return tlResponseNotFound("用户配置不存在")
+ }
+
+ let preOther = userConfig[TlUserConfigDef.other]
+ preOther = JSON.parse(preOther)
+
+ let newOther = Object.assign(preOther, other)
+
+ // 更新用户配置
+ let updateOther = {}
+ for (let key in TlUserConfigOtherDef) {
+ updateOther[key] = newOther[key]
+ }
+
+ // 更新用户配置
+ let userConfigId = userConfig[TlUserConfigDef.id]
+ const result = await userConfigService.updateInfoById({
+ companyId: loginUserCompanyId,
+ id: userConfigId
+ }, {
+ [TlUserConfigDef.other]: JSON.stringify(updateOther)
+ })
+
+ if(Object.keys(result).length == 0){
+ return tlResponseSvrError("更新设置失败")
+ }
+
+ return tlResponseSuccess("更新设置成功")
+}
+
+
+
+
+module.exports = {
+ getUserConfigSetting,
+ updateUserConfigNormal,
+ updateUserConfigAccount,
+ updateUserConfigMessage,
+ updateUserConfigAuthority,
+ updateUserConfigSkin,
+ updateUserConfigOther
+}
\ No newline at end of file
diff --git a/src/biz/user/user_friend_biz.js b/src/biz/user/user_friend_biz.js
new file mode 100644
index 0000000..d1a93ee
--- /dev/null
+++ b/src/biz/user/user_friend_biz.js
@@ -0,0 +1,559 @@
+const {
+ tlResponseArgsError, tlResponseForbidden, tlResponseSvrError,
+ tlResponseTimeout, tlResponseNotFound, tlResponseSuccess,
+ setBit, checkBit,
+ tlConsole
+} = require('../../utils/utils')
+const userFriendService = require('../../service/user/tl_user_friend_service')
+const userService = require('../../service/user/tl_user_service')
+const userSessionService = require('../../service/user/tl_user_session_service')
+const channelService = require('../../service/channel/tl_channel_service')
+const channelUserService = require('../../service/channel/tl_channel_user_service')
+const channelChatService = require('../../service/channel/tl_channel_chat_service')
+const { getOssUrl } = require('../../utils/oss/oss')
+
+const { fields: userFriendFields } = require('../../tables/tl_user_friend')
+const { fields: userFields } = require('../../tables/tl_user')
+const { fields: channelFields } = require('../../tables/tl_channel')
+const { fields: channelUserFields } = require('../../tables/tl_channel_user')
+const { inner: TlRoleInner } = require('../../tables/tl_role')
+const { fields: channelChatFields } = require('../../tables/tl_channel_chat')
+
+const { Def: TlUserFriendDef, Status: TlUserFriendStatus, FriendType: TlUserFriendType, Origin: TlUserFriendOrigin } = userFriendFields
+
+const { Def: TlUserDef } = userFields
+const { Def: TlChannelDef, Type: TlChannelType } = channelFields
+const { Def: TlChannelChatDef, Other: TlChannelChatOther } = channelChatFields
+const { Def: TlchannelUserDef, Type: TlChannelUserType } = channelUserFields
+
+
+
+
+/**
+ * 获取好友列表
+ * @param {*} loginInfo
+ */
+const getFriendList = async function({ loginInfo }){
+ const {
+ loginUserCompanyId, loginUserId, loginUserCompanyName
+ } = loginInfo
+
+ // 查询所有好友记录
+ let userFriendList = await userFriendService.getListByUserId({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ }, [
+ TlUserFriendDef.id,
+ TlUserFriendDef.friendId,
+ TlUserFriendDef.origin,
+ TlUserFriendDef.createdAt,
+ TlUserFriendDef.friendType,
+ TlUserFriendDef.remark,
+ TlUserFriendDef.channelId,
+ ])
+
+ const friendIdList = new Set(
+ [...userFriendList.map(item => item[TlUserFriendDef.friendId])]
+ )
+
+ let userInfoList = await userService.getListByIdList({
+ companyId: loginUserCompanyId,
+ idList: [...friendIdList]
+ }, [
+ TlUserDef.id,
+ TlUserDef.name,
+ TlUserDef.email,
+ TlUserDef.mobile,
+ TlUserDef.avatarUrl,
+ ])
+
+ let userInfoMap = new Map()
+ userInfoList.forEach(item => {
+ userInfoMap.set(item[TlUserFriendDef.id], item)
+ })
+
+ // 查询好友在线状态
+ const statusMap = await userSessionService.getUserLoginStatusByIdList({
+ userIdList: [...friendIdList]
+ })
+
+ let resultList = []
+ for(let i = 0; i < userFriendList.length; i++){
+ const item = userFriendList[i]
+ let originStr = ''
+ const origin = item[TlUserFriendDef.origin]
+ if(origin == TlUserFriendOrigin.SEARCH_NAME){
+ originStr = "搜索用户名添加"
+ }
+
+ const friendId = item[TlUserFriendDef.friendId]
+ let friendInfo = userInfoMap.get(friendId)
+ if(!friendInfo){
+ friendInfo = {}
+ }
+
+ const loginStatus = statusMap[friendId+''] || 0
+
+ let friendTypeStr = ''
+ let friendType = item[TlUserFriendDef.friendType]
+ if(friendType == TlUserFriendType.NORMAL){
+ friendTypeStr = '普通好友'
+ }else if(friendType == TlUserFriendType.SPECIAL){
+ friendTypeStr = '特别关注'
+ }
+
+ resultList.push({
+ id : item[TlUserFriendDef.id],
+ origin : originStr,
+ friendType: friendTypeStr,
+ remark: item[TlUserFriendDef.remark],
+ createTime: item[TlUserFriendDef.createdAt],
+ channelId: item[TlUserFriendDef.channelId],
+ loginStatus: loginStatus,
+ userId: friendInfo[TlUserDef.id],
+ userCompanyName: loginUserCompanyName,
+ username: friendInfo[TlUserDef.name],
+ userEmail: friendInfo[TlUserDef.email],
+ userMobile: friendInfo[TlUserDef.mobile],
+ userAvatar: await getOssUrl(friendInfo[TlUserDef.avatarUrl]),
+ })
+ }
+
+ return tlResponseSuccess("获取好友列表成功", resultList)
+}
+
+
+/**
+ * 删除好友
+ * @param {*} loginInfo
+ * @param {*} channelId
+ */
+const deleteFriend = async function({ loginInfo, channelId }){
+ if(!channelId){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ // 获取频道用户
+ const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({
+ companyId: loginUserCompanyId,
+ channelId,
+ userId: loginUserId
+ }, [
+ TlchannelUserDef.id,
+ TlchannelUserDef.type
+ ])
+
+ if(Object.keys(channelUserInfo).length == 0){
+ return tlResponseNotFound("删除好友成功")
+ }
+
+ const channelType = channelUserInfo[TlchannelUserDef.type]
+ if(channelType !== TlChannelUserType.FRIEND){
+ return tlResponseNotFound("删除失败,操作非法")
+ }
+
+ // 删除自己在频道的数据
+ await channelUserService.deleteInfoById({
+ companyId: loginUserCompanyId,
+ id: channelUserInfo[TlchannelUserDef.id]
+ })
+
+ // 获取好友关系
+ const userFriendInfo = await userFriendService.getInfoByChannelIdAndUserId({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ channelId: channelId
+ }, [
+ TlUserFriendDef.id,
+ ])
+
+ if(Object.keys(userFriendInfo).length == 0){
+ return tlResponseNotFound("删除好友成功")
+ }
+
+ const userFriendId = userFriendInfo[TlUserFriendDef.id]
+ if(!userFriendId){
+ return tlResponseNotFound("删除好友成功")
+ }
+
+ // 删除好友关系
+ await userFriendService.deleteInfoById({
+ companyId: loginUserCompanyId,
+ id: userFriendId
+ })
+
+ return tlResponseSuccess("删除好友成功")
+}
+
+
+/**
+ * 更新好友信息备注
+ * @param loginInfo
+ * @param channelId
+ * @param remark
+ */
+const updateRemark = async function({ loginInfo, channelId, remark }){
+ if(!channelId){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if(!remark){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ // 获取频道用户列表
+ const userFriendList = await userFriendService.getListByChannelId({
+ companyId: loginUserCompanyId,
+ channelId,
+ }, [
+ TlUserFriendDef.id,
+ TlUserFriendDef.userId,
+ ])
+
+ const friendInfo = userFriendList.find(item => item[TlUserFriendDef.userId] == loginUserId)
+ if(!friendInfo){
+ return tlResponseNotFound("好友不存在")
+ }
+
+ const userFriendId = friendInfo[TlUserFriendDef.id]
+
+ const info = await userFriendService.updateInfoById({
+ companyId: loginUserCompanyId,
+ id: userFriendId,
+ }, {
+ [TlUserFriendDef.remark]: remark
+ })
+
+ if(Object.keys(info).length == 0){
+ return tlResponseSvrError("修改好友备注失败")
+ }
+
+ return tlResponseSuccess("修改好友备注成功")
+}
+
+/**
+ * 更新好友名称备注
+ * @param loginInfo
+ * @param channelId
+ * @param rename
+ */
+const updateRename = async function({ loginInfo, channelId, rename }){
+ if(!channelId){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if(!rename){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ // 获取频道用户列表
+ const userFriendList = await userFriendService.getListByChannelId({
+ companyId: loginUserCompanyId,
+ channelId,
+ }, [
+ TlUserFriendDef.id,
+ TlUserFriendDef.userId,
+ ])
+
+ const friendInfo = userFriendList.find(item => item[TlUserFriendDef.userId] == loginUserId)
+ if(!friendInfo){
+ return tlResponseNotFound("好友不存在")
+ }
+
+ const userFriendId = friendInfo[TlUserFriendDef.id]
+ const info = await userFriendService.updateInfoById({
+ companyId: loginUserCompanyId,
+ id: userFriendId,
+ }, {
+ [TlUserFriendDef.rename]: rename
+ })
+
+ if(Object.keys(info).length == 0){
+ return tlResponseSvrError("修改好友备注失败")
+ }
+
+ return tlResponseSuccess("修改好友备注成功")
+}
+
+
+/**
+ * 通过好友后-初始化好友频道
+ * @param {*} loginUserCompanyId
+ * @param {*} loginUserId
+ * @param {*} applyUserId
+ * @returns
+ */
+const initChannelForPassFriend = async function({
+ loginUserCompanyId, loginUserId, applyUserId
+}){
+ if(!applyUserId){
+ return tlResponseArgsError("初始化好友频道失败,请求参数为空")
+ }
+
+ // 获取这两个人的用户频道信息
+ const channelUserList = await channelUserService.getListByTypeUserIdList({
+ companyId: loginUserCompanyId,
+ type: TlChannelUserType.FRIEND,
+ userIdList: [loginUserId, applyUserId]
+ }, [
+ TlchannelUserDef.id,
+ TlchannelUserDef.userId,
+ TlchannelUserDef.channelId,
+ ])
+
+ const channelMap = {}
+ channelUserList.forEach(item => {
+ const userId = item[TlchannelUserDef.userId]
+ const channelId = item[TlchannelUserDef.channelId]
+ if(!channelMap[userId]){
+ channelMap[userId] = []
+ }
+ channelMap[userId].push(channelId)
+ })
+
+ // 如果两个用户存在相同的channelId,说明已经存在相应的好友频道
+ const loginUserIdChannelIdList = channelMap[loginUserId] || []
+ const applyUserIdChannelIdList = channelMap[applyUserId] || []
+
+ const existChannelId = loginUserIdChannelIdList.find(item => applyUserIdChannelIdList.includes(item))
+ // 如果已经存在频道用户数据,直接返回
+ if(existChannelId){
+ return tlResponseSuccess("初始化好友频道成功1", { channelId: existChannelId })
+ }
+
+ // 创建新频道
+ const channelInfo = await channelService.addInfo({
+ companyId: loginUserCompanyId,
+ name: '好友频道',
+ type: TlChannelType.FRIEND,
+ })
+
+ if(Object.keys(channelInfo).length == 0){
+ return tlResponseSvrError("初始化好友频道失败")
+ }
+
+ const channelId = channelInfo[TlChannelDef.id]
+
+ // 生成一条系统消息
+ const channelChatSystemInfo = await channelChatService.addSystemChatnfo({
+ companyId: loginUserCompanyId,
+ channelId: channelId,
+ message: '' + `已经是好友啦,快来聊天吧` + '
',
+ other: JSON.stringify({
+ [TlChannelChatOther.ip]: '',
+ }),
+ messageTimeStamp: Date.now(),
+ messageVersion: 'v1',
+ flag: 0
+ })
+
+ if(Object.keys(channelChatSystemInfo).length == 0){
+ return tlResponseSvrError("初始化好友频道失败")
+ }
+
+ // 将自己加入单聊频道
+ const addSelfRes = await channelUserService.addInfo({
+ companyId: loginUserCompanyId,
+ channelId: channelId,
+ userId: loginUserId,
+ type: TlChannelUserType.FRIEND,
+ roleId: TlRoleInner.channel.creator.id
+ })
+
+ if(Object.keys(addSelfRes).length == 0) {
+ return tlResponseSvrError("初始化好友频道失败")
+ }
+
+ // 更新用户频道角色
+ await userSessionService.updateUserChannelRoleMap({
+ userId: loginUserId,
+ channelRoleMap: {
+ [channelId]: TlRoleInner.channel.creator.id
+ }
+ })
+
+ // 将好友加入单聊频道
+ const addFriendRes = await channelUserService.addInfo({
+ companyId: loginUserCompanyId,
+ channelId: channelId,
+ userId: applyUserId,
+ type: TlChannelUserType.FRIEND,
+ roleId: TlRoleInner.channel.creator.id
+ })
+
+ if(Object.keys(addFriendRes).length == 0) {
+ return tlResponseSvrError("初始化好友频道失败")
+ }
+
+ // 更新用户频道角色
+ await userSessionService.updateUserChannelRoleMap({
+ userId: applyUserId,
+ channelRoleMap: {
+ [channelId]: TlRoleInner.channel.creator.id
+ }
+ })
+
+ return tlResponseSuccess("初始化好友频道成功2", { channelId })
+}
+
+
+/**
+ * 通过好友后 - 生成双向好友记录
+ * @param {*} loginUserCompanyId
+ * @param {*} loginUserId
+ * @param {*} applyUserId
+ * @param {*} applyUserName
+ * @param {*} origin
+ * @param {*} remark
+ * @param {*} channelId
+ */
+const initUserFriendForPassFriend = async function({
+ loginUserCompanyId, loginUserId, loginUsername, applyUserId, applyUserName, origin, remark, channelId
+}){
+ if(!applyUserId){
+ return tlResponseForbidden("生成好友记录失败,参数错误")
+ }
+
+ // 好友记录是否存在
+ const userFriendInfo = await userFriendService.getInfoByUserIdAndFriendId({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ friendId: applyUserId
+ }, [
+ TlUserFriendDef.id,
+ ])
+
+ // 存在,更新好友记录状态
+ if(Object.keys(userFriendInfo).length > 0){
+ const updateUserFriendInfo = await userFriendService.updateInfoById({
+ companyId: loginUserCompanyId,
+ id: userFriendInfo[TlUserFriendDef.id],
+ }, {
+ [TlUserFriendDef.status]: TlUserFriendStatus.NORMAL
+ })
+
+ if(Object.keys(updateUserFriendInfo).length == 0){
+ return tlResponseSvrError("生成好友记录失败")
+ }
+
+ return tlResponseSuccess("生成好友记录成功")
+ }
+
+ // 不存在,生成双向好友记录
+ const addUserFriendInfo = await userFriendService.addInfo({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ friendId: applyUserId,
+ origin: origin,
+ remark: remark,
+ friendType: TlUserFriendType.NORMAL,
+ status: TlUserFriendStatus.NORMAL,
+ channelId: channelId,
+ rename: applyUserName
+ })
+
+ if(Object.keys(addUserFriendInfo).length == 0){
+ return tlResponseSvrError("生成好友记录失败")
+ }
+
+ const addFriendUserInfo = await userFriendService.addInfo({
+ companyId: loginUserCompanyId,
+ userId: applyUserId,
+ friendId: loginUserId,
+ origin: origin,
+ remark: remark,
+ friendType: TlUserFriendType.NORMAL,
+ status: TlUserFriendStatus.NORMAL,
+ channelId: channelId,
+ rename: loginUsername
+ })
+
+ if(Object.keys(addFriendUserInfo).length == 0){
+ return tlResponseSvrError("生成好友记录失败")
+ }
+
+ return tlResponseSuccess("生成好友记录成功")
+}
+
+/**
+ * 更新好友类型
+ * @param {*} loginInfo
+ * @param {*} channelId
+ * @param {*} special
+ */
+const updateFriendSpecical = async function({ loginInfo, channelId, special }){
+ if(!channelId){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if(special === undefined || special === null){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId
+ } = loginInfo
+
+ // 获取频道用户列表
+ const userFriendList = await userFriendService.getListByChannelId({
+ companyId: loginUserCompanyId,
+ channelId,
+ }, [
+ TlUserFriendDef.id,
+ TlUserFriendDef.userId,
+ ])
+
+ const friendInfo = userFriendList.find(item => item[TlUserFriendDef.userId] == loginUserId)
+ if(!friendInfo){
+ return tlResponseNotFound("好友不存在")
+ }
+
+ const newFriendType = special ? TlUserFriendType.SPECIAL : TlUserFriendType.NORMAL
+
+ const userFriendId = friendInfo[TlUserFriendDef.id]
+ const info = await userFriendService.updateInfoById({
+ companyId: loginUserCompanyId,
+ id: userFriendId,
+ }, {
+ [TlUserFriendDef.friendType]: special ? TlUserFriendType.SPECIAL : TlUserFriendType.NORMAL
+ })
+
+ if(Object.keys(info).length == 0){
+ return tlResponseSvrError("关注失败")
+ }
+
+ let friendTypeStr = ''
+ if(newFriendType == TlUserFriendType.NORMAL){
+ friendTypeStr = '普通好友'
+ }else if(newFriendType == TlUserFriendType.SPECIAL){
+ friendTypeStr = '特别关注'
+ }
+
+ return tlResponseSuccess(special ? '关注成功' : '取消关注成功', {
+ friendType: friendTypeStr
+ })
+}
+
+
+
+module.exports = {
+ getFriendList,
+ deleteFriend,
+ updateRemark,
+ updateRename,
+ initChannelForPassFriend,
+ initUserFriendForPassFriend,
+ updateFriendSpecical
+}
\ No newline at end of file
diff --git a/src/biz/user/user_login_biz.js b/src/biz/user/user_login_biz.js
new file mode 100644
index 0000000..00fcdd8
--- /dev/null
+++ b/src/biz/user/user_login_biz.js
@@ -0,0 +1,562 @@
+const {
+ tlResponseArgsError, tlResponseForbidden, tlResponseSvrError,
+ tlResponseTimeout, tlResponseNotFound, tlResponseSuccess,
+ tlConsole, verifyEncryptStr
+} = require('../../utils/utils')
+const {
+ getAvatarOssUrl
+} = require('../../utils/oss/oss')
+const userService = require('../../service/user/tl_user_service')
+const userSessionService = require('../../service/user/tl_user_session_service')
+const companyService = require('../../service/company/tl_company_service')
+const channelUserService = require('../../service/channel/tl_channel_user_service')
+const userFingerPrintService = require('../../service/user/tl_user_finger_print_service')
+
+const { fields: companyFields } = require('../../tables/tl_company')
+const { Def: TlCompanyDef } = companyFields
+const { fields: userFields } = require('../../tables/tl_user')
+const { Def: TlUserDef } = userFields
+const { fields: userFingerPrintFields } = require('../../tables/tl_user_finger_print')
+const { Def: TlUserFingerPrintDef } = userFingerPrintFields
+const { fields: channelUserFields } = require('../../tables/tl_channel_user')
+const { Def: TlChannelUserDef, Type: TlChannelUserType } = channelUserFields
+const { inner: TlInnerRole } = require('../../tables/tl_role')
+
+
+/**
+ * 通过帐号登录接口
+ * @param {*} account
+ * @param {*} password
+ * @param {*} fps
+ */
+const userLoginByAccount = async function({account, password, fps}){
+ if(!account){
+ return tlResponseArgsError("用户名或密码错误")
+ }
+
+ if(!password){
+ return tlResponseArgsError("用户名或密码错误")
+ }
+
+ // base64解码
+ account = Buffer.from(account, 'base64').toString()
+ password = Buffer.from(password, 'base64').toString()
+
+ const user = await userService.getInfoByNameForLogin({
+ name: account
+ }, [
+ TlUserDef.id,
+ TlUserDef.companyId,
+ TlUserDef.name,
+ TlUserDef.password,
+ TlUserDef.avatarUrl,
+ TlUserDef.salt,
+ TlUserDef.roleId,
+ TlUserDef.email,
+ TlUserDef.mobile
+ ])
+
+ if(!user[TlUserDef.id]){
+ return tlResponseArgsError("用户名或密码错误")
+ }
+
+ if(!verifyEncryptStr({
+ inputStr: password,
+ hashedStr: user[TlUserDef.password],
+ salt: user[TlUserDef.salt]
+ })){
+ return tlResponseArgsError("用户名或密码错误")
+ }
+
+ const company = await companyService.getInfoById({
+ id: user[TlUserDef.companyId]
+ }, [
+ TlCompanyDef.id,
+ TlCompanyDef.name,
+ ])
+
+ const companyId = company[TlCompanyDef.id]
+ const companyName = company[TlCompanyDef.name]
+
+ if(!companyId){
+ return tlResponseForbidden("非法用户")
+ }
+
+ const token = userSessionService.generateLoginToken();
+ const info = {
+ loginUserId: user[TlUserDef.id],
+ loginUsername: user[TlUserDef.name],
+ loginUserEmail: user[TlUserDef.email],
+ loginUserMobile: user[TlUserDef.mobile],
+ loginUserRoleId: user[TlUserDef.roleId],
+ loginUserCompanyName : companyName,
+ loginUserCompanyId: companyId,
+ loginUserAvatar: await getAvatarOssUrl(user[TlUserDef.avatarUrl]),
+ loginTime: new Date().getTime(),
+ token
+ }
+ // 设置登录信息
+ await userSessionService.setUserInfoByToken({token, info})
+
+ // 设置指纹
+ await setFps({ userId: user[TlUserDef.id], fps })
+
+ // 设置用户频道角色
+ await setUserChannelRole({ userId: user[TlUserDef.id], companyId })
+
+ return tlResponseSuccess("登录成功", token)
+}
+
+/**
+ * 通过手机号登录接口
+ * @param {*} mobile
+ * @param {*} code
+ * @param {*} fps
+ */
+const userLoginByMobile = async function({mobile, code, fps}){
+ if(!mobile){
+ return tlResponseArgsError("手机号或验证码错误")
+ }
+ if(!code){
+ return tlResponseArgsError("手机号或验证码错误")
+ }
+
+ // base64解码
+ mobile = Buffer.from(mobile, 'base64').toString()
+ password = Buffer.from(password, 'base64').toString()
+
+ const user = await userService.getInfoByMobileForLogin({
+ mobile
+ }, [
+ TlUserDef.id,
+ TlUserDef.companyId,
+ TlUserDef.mobile,
+ TlUserDef.avatarUrl,
+ TlUserDef.roleId,
+ TlUserDef.email,
+ TlUserDef.name
+ ])
+
+ if(!user[TlUserDef.id]){
+ return tlResponseArgsError("手机号或验证码错误")
+ }
+
+ const company = await companyService.getInfoById({
+ id: user[TlUserDef.companyId]
+ }, [
+ TlCompanyDef.id,
+ TlCompanyDef.name
+ ])
+
+ const companyId = company[TlCompanyDef.id]
+ const companyName = company[TlCompanyDef.name]
+
+ if(!companyId){
+ return tlResponseForbidden("非法用户")
+ }
+
+ const token = userSessionService.generateLoginToken();
+ const info = {
+ loginUserId: user[TlUserDef.id],
+ loginUserMobile: user[TlUserDef.mobile],
+ loginUsername: user[TlUserDef.name],
+ loginUserEmail: user[TlUserDef.email],
+ loginUserRoleId: user[TlUserDef.roleId],
+ loginUserCompanyName : companyName,
+ loginUserCompanyId: companyId,
+ loginUserAvatar: await getAvatarOssUrl(user[TlUserDef.avatarUrl]),
+ loginTime: new Date().getTime(),
+ token
+ }
+ // 设置登录信息
+ await userSessionService.setUserInfoByToken({token, info})
+
+ // 设置指纹
+ await setFps({ userId: user[TlUserDef.id], fps })
+
+ // 设置用户频道角色
+ await setUserChannelRole({ userId: user[TlUserDef.id], companyId })
+
+ return tlResponseSuccess("登录成功", token)
+}
+
+/**
+ * 通过邮箱登录接口
+ * @param {*} email
+ * @param {*} password
+ * @param {*} fps
+ */
+const userLoginByEmail = async function({email, password, fps}){
+ if(!email){
+ return tlResponseArgsError("邮箱或密码错误")
+ }
+ if(!password){
+ return tlResponseArgsError("邮箱或密码错误")
+ }
+
+ // base64解码
+ email = Buffer.from(email, 'base64').toString()
+ password = Buffer.from(password, 'base64').toString()
+
+ const user = await userService.getInfoByEmailForLogin({
+ email
+ }, [
+ TlUserDef.id,
+ TlUserDef.companyId,
+ TlUserDef.email,
+ TlUserDef.avatarUrl,
+ TlUserDef.password,
+ TlUserDef.roleId,
+ TlUserDef.mobile,
+ TlUserDef.salt,
+ TlUserDef.name
+ ])
+
+ if(!user[TlUserDef.id]){
+ return tlResponseArgsError("邮箱或密码错误")
+ }
+
+ const company = await companyService.getInfoById({
+ id: user[TlUserDef.companyId]
+ }, [
+ TlCompanyDef.id,
+ TlCompanyDef.name
+ ])
+
+ const companyId = company[TlCompanyDef.id]
+ const companyName = company[TlCompanyDef.name]
+
+ if(!companyId){
+ return tlResponseForbidden("非法用户")
+ }
+
+ if(!verifyEncryptStr({
+ inputStr: password,
+ hashedStr: user[TlUserDef.password],
+ salt: user[TlUserDef.salt]
+ })){
+ return tlResponseArgsError("邮箱或密码错误")
+ }
+
+ const token = userSessionService.generateLoginToken();
+ const info = {
+ loginUserId: user[TlUserDef.id],
+ loginUserEmail: user[TlUserDef.email],
+ loginUsername: user[TlUserDef.name],
+ loginUserRoleId: user[TlUserDef.roleId],
+ loginUserMobile: user[TlUserDef.mobile],
+ loginUserCompanyName : companyName,
+ loginUserCompanyId: companyId,
+ loginUserAvatar: await getAvatarOssUrl(user[TlUserDef.avatarUrl]),
+ loginTime: new Date().getTime(),
+ token
+ }
+ // 设置登录信息
+ await userSessionService.setUserInfoByToken({token, info})
+
+ // 设置指纹
+ await setFps({ userId: user[TlUserDef.id], fps })
+
+ // 设置用户频道角色
+ await setUserChannelRole({ userId: user[TlUserDef.id], companyId })
+
+ return tlResponseSuccess("登录成功", token)
+}
+
+/**
+ * 通过微信登录接口
+ * @param {*} code
+ * @param {*} openId
+ */
+const userLoginByWechat = async function({openId, code}){
+
+
+ return tlResponseSuccess("登录成功")
+}
+
+/**
+ * 通过qq登录接口
+ * @param {*} code
+ * @param {*} openId
+ */
+const userLoginByQQ = async function({openId, code}){
+
+
+ return tlResponseSuccess("登录成功")
+}
+
+/**
+ * 通过企业微信登录接口
+ * @param {*} code
+ * @param {*} openId
+ */
+const userLoginByQyWechat = async function({openId, code}){
+
+
+ return tlResponseSuccess("登录成功")
+}
+
+
+/**
+ * 游客登录接口
+ * @param {*} code
+ */
+const userLoginByGuest = async function({code}){
+
+
+ return tlResponseSuccess("登录成功")
+}
+
+
+/**
+ * 通过指纹登录接口 - 一键登录
+ * @param {*} fps
+ * @param {*} username
+ */
+const userLoginByFingerPrint = async function({fps, username}){
+ if(!fps){
+ return tlResponseArgsError("一键登录失败, 请使用其他登录方式登录")
+ }
+
+ const user = await userService.getInfoByNameForLogin({
+ name: username
+ }, [
+ TlUserDef.id,
+ TlUserDef.companyId,
+ TlUserDef.name,
+ TlUserDef.avatarUrl,
+ TlUserDef.roleId,
+ TlUserDef.email,
+ TlUserDef.salt,
+ TlUserDef.mobile
+ ])
+
+ if(!user[TlUserDef.id]){
+ return tlResponseArgsError("一键登录失败, 请使用其他登录方式登录")
+ }
+
+ const company = await companyService.getInfoById({
+ id: user[TlUserDef.companyId]
+ }, [
+ TlCompanyDef.id,
+ TlCompanyDef.name
+ ])
+
+ const companyId = company[TlCompanyDef.id]
+ const companyName = company[TlCompanyDef.name]
+
+ if(!companyId){
+ return tlResponseForbidden("一键登录失败, 请使用其他登录方式登录")
+ }
+
+ // 检查指纹
+ const fingerPrintList = await userFingerPrintService.getListByUserId({
+ userId: user[TlUserDef.id]
+ }, [
+ TlUserFingerPrintDef.finger_print,
+ ])
+
+ let isExist = false
+ fps.forEach(fp => {
+ fingerPrintList.forEach(element => {
+ if(element[TlUserFingerPrintDef.finger_print] === fp){
+ isExist = true
+ return
+ }
+ })
+ })
+
+ if(!isExist){
+ return tlResponseForbidden("一键登录失败, 请使用其他登录方式登录")
+ }
+
+ const token = userSessionService.generateLoginToken();
+ const info = {
+ loginUserId: user[TlUserDef.id],
+ loginUsername: user[TlUserDef.name],
+ loginUserRoleId: user[TlUserDef.roleId],
+ loginUserCompanyName : companyName,
+ loginUserEmail: user[TlUserDef.email],
+ loginUserMobile: user[TlUserDef.mobile],
+ loginUserCompanyId: companyId,
+ loginUserAvatar: await getAvatarOssUrl(user[TlUserDef.avatarUrl]),
+ loginTime: new Date().getTime(),
+ token
+ }
+ // 设置登录信息
+ await userSessionService.setUserInfoByToken({token, info})
+
+ // 设置用户频道角色
+ await setUserChannelRole({ userId: user[TlUserDef.id], companyId })
+
+ return tlResponseSuccess("一键登录成功", token)
+}
+
+
+/**
+ * 设置指纹
+ * @param {*} userId
+ * @param {*}
+ * @returns
+ */
+const setFps = async function({userId, fps}){
+ let addFingerPrintList = []
+
+ // 设置指纹
+ if(fps){
+ const fingerPrintList = await userFingerPrintService.getListByUserId({
+ userId: userId
+ }, [
+ TlUserFingerPrintDef.finger_print,
+ ])
+
+ fps.forEach(fp => {
+ let isExist = false
+ fingerPrintList.forEach(element => {
+ if(element[TlUserFingerPrintDef.finger_print] === fp){
+ isExist = true
+ return
+ }
+ });
+ if(!isExist){
+ addFingerPrintList.push(fp)
+ }
+ })
+
+ // 每个用户最多只能有10个指纹
+ if(addFingerPrintList.length > 0 && fingerPrintList.length < 10){
+ await userFingerPrintService.addInfoList({
+ userId: userId,
+ dataList: addFingerPrintList
+ })
+ }
+ }
+
+ return addFingerPrintList
+}
+
+
+/**
+ * 设置频道用户角色
+ * @param {*} userId
+ * @param {*} companyId
+ */
+const setUserChannelRole = async function({userId, companyId}){
+ const channelUserList = await channelUserService.getListByUserId({
+ companyId: companyId,
+ userId: userId
+ }, [
+ TlChannelUserDef.channelId,
+ TlChannelUserDef.roleId
+ ])
+
+ if(channelUserList.length === 0){
+ return
+ }
+
+ const channelRoleMap = {}
+ channelUserList.forEach(channelUser => {
+ channelRoleMap[channelUser[TlChannelUserDef.channelId]] = channelUser[TlChannelUserDef.roleId]
+ })
+
+ await userSessionService.setUserChannelRoleMap({
+ userId, channelRoleMap
+ })
+}
+
+
+/**
+ * 官网登录 - 支持邮箱登录
+ * @param {*} email
+ * @param {*} password
+ */
+const userLoginByWebsite = async function({ email, password }){
+ if(!email){
+ return tlResponseArgsError("邮箱或密码错误")
+ }
+ if(!password){
+ return tlResponseArgsError("邮箱或密码错误")
+ }
+
+ // base64解码
+ email = Buffer.from(email, 'base64').toString()
+ password = Buffer.from(password, 'base64').toString()
+
+ const user = await userService.getInfoByEmailForLogin({
+ email
+ }, [
+ TlUserDef.id,
+ TlUserDef.companyId,
+ TlUserDef.email,
+ TlUserDef.avatarUrl,
+ TlUserDef.password,
+ TlUserDef.roleId,
+ TlUserDef.mobile,
+ TlUserDef.salt,
+ TlUserDef.name
+ ])
+
+ if(!user[TlUserDef.id]){
+ return tlResponseArgsError("邮箱或密码错误")
+ }
+
+ const company = await companyService.getInfoById({
+ id: user[TlUserDef.companyId]
+ }, [
+ TlCompanyDef.id,
+ TlCompanyDef.name
+ ])
+
+ const companyId = company[TlCompanyDef.id]
+ const companyName = company[TlCompanyDef.name]
+
+ if(!companyId){
+ return tlResponseForbidden("非法用户")
+ }
+
+ if(!verifyEncryptStr({
+ inputStr: password,
+ hashedStr: user[TlUserDef.password],
+ salt: user[TlUserDef.salt]
+ })){
+ return tlResponseArgsError("邮箱或密码错误")
+ }
+
+ const roleId = user[TlUserDef.roleId]
+ if([
+ TlInnerRole.website.user.id,
+ TlInnerRole.user.admin.id
+ ].indexOf(roleId) === -1){
+ return tlResponseArgsError("非官网用户")
+ }
+
+ const token = userSessionService.generateLoginToken();
+ const info = {
+ loginUserId: user[TlUserDef.id],
+ loginUserEmail: user[TlUserDef.email],
+ loginUsername: user[TlUserDef.name],
+ loginUserRoleId: user[TlUserDef.roleId],
+ loginUserMobile: user[TlUserDef.mobile],
+ loginUserCompanyName : companyName,
+ loginUserCompanyId: companyId,
+ loginUserAvatar: await getAvatarOssUrl(user[TlUserDef.avatarUrl]),
+ loginTime: new Date().getTime(),
+ token
+ }
+ // 设置登录信息
+ await userSessionService.setUserInfoByToken({token, info, isWebsite: true})
+
+ return tlResponseSuccess("登录成功", token)
+}
+
+module.exports = {
+ userLoginByAccount,
+ userLoginByMobile,
+ userLoginByEmail,
+ userLoginByWechat,
+ userLoginByQQ,
+ userLoginByQyWechat,
+ userLoginByGuest,
+ userLoginByFingerPrint,
+ userLoginByWebsite
+}
\ No newline at end of file
diff --git a/src/biz/user/user_login_state_biz.js b/src/biz/user/user_login_state_biz.js
new file mode 100644
index 0000000..266817f
--- /dev/null
+++ b/src/biz/user/user_login_state_biz.js
@@ -0,0 +1,31 @@
+const {
+ tlResponseArgsError, tlResponseForbidden, tlResponseSvrError,
+ tlResponseTimeout, tlResponseNotFound, tlResponseSuccess
+} = require('../../utils/utils')
+const userSessionService = require('../../service/user/tl_user_session_service')
+
+
+/**
+ * 是否登陆中
+ * @param {*} token
+ */
+const userIsLogin = async function({token}){
+ if(!token){
+ return tlResponseArgsError("不在线")
+ }
+
+ const userInfo = await userSessionService.getUserInfoByToken({token})
+ // 登录用户ID
+ const loginUserId = userInfo.loginUserId
+ if(!loginUserId){
+ return tlResponseArgsError("不在线")
+ }
+
+ return tlResponseSuccess("在线", userInfo)
+}
+
+
+
+module.exports = {
+ userIsLogin
+}
\ No newline at end of file
diff --git a/src/biz/user/user_logout_biz.js b/src/biz/user/user_logout_biz.js
new file mode 100644
index 0000000..70a5878
--- /dev/null
+++ b/src/biz/user/user_logout_biz.js
@@ -0,0 +1,38 @@
+const {
+ tlResponseArgsError, tlResponseForbidden, tlResponseSvrError,
+ tlResponseTimeout, tlResponseNotFound, tlResponseSuccess
+} = require('../../utils/utils')
+const userService = require('../../service/user/tl_user_service')
+const userSessionService = require('../../service/user/tl_user_session_service')
+
+
+/**
+ * 退出登录接口
+ * @param {*} token
+ */
+const userLogout = async function({token}){
+ if(!token){
+ return tlResponseArgsError("退出成功")
+ }
+
+ const {
+ loginUserId
+ } = await userSessionService.getUserInfoByToken({token})
+ if(!loginUserId){
+ return tlResponseSuccess("退出成功")
+ }
+
+ await userSessionService.setUserInfoByToken({
+ token,
+ info: {
+ loginUserId
+ },
+ isLogin: false
+ })
+
+ return tlResponseSuccess("退出成功")
+}
+
+module.exports = {
+ userLogout
+}
\ No newline at end of file
diff --git a/src/biz/user/user_read_biz.js b/src/biz/user/user_read_biz.js
new file mode 100644
index 0000000..b665c91
--- /dev/null
+++ b/src/biz/user/user_read_biz.js
@@ -0,0 +1,361 @@
+const {
+ tlResponseArgsError, tlResponseForbidden, tlResponseSvrError,
+ tlResponseTimeout, tlResponseNotFound, tlResponseSuccess
+} = require('../../utils/utils')
+const userReadService = require('../../service/user/tl_user_read_service')
+const userSessionService = require('../../service/user/tl_user_session_service')
+const { fields: userReadDef } = require('../../tables/tl_user_read')
+const { fields: channelDef } = require('../../tables/tl_channel')
+
+const { Def: TlUserReadDef, Type: TlUserReadType } = userReadDef
+
+
+/**
+ * 更新频道已读记录
+ * @param {*} loginInfo
+ * @param {*} channelId
+ * @param {*} latestReadId
+ * @param {*} type
+ */
+const updateChannelUserRead = async function({
+ loginInfo, channelId, latestReadId, type
+}){
+ if (!latestReadId) {
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if (!channelId) {
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if(!type){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId, loginUsername
+ } = loginInfo
+
+ const userReadList = await userReadService.getListByChannelUserId({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ channelId
+ })
+
+ let chatReadRecord = null
+ let mediaReadRecord = null
+ let fileReadRecord = null
+
+ userReadList.forEach((userRead) => {
+ if (userRead[TlUserReadDef.type] === TlUserReadType.CHAT) {
+ chatReadRecord = userRead
+ }
+ if (userRead[TlUserReadDef.type] === TlUserReadType.MEDIA) {
+ mediaReadRecord = userRead
+ }
+ if (userRead[TlUserReadDef.type] === TlUserReadType.FILE) {
+ fileReadRecord = userRead
+ }
+ })
+
+ // 聊天消息已读记录不存在,新增, 否则更新已读消息最新ID
+ if(type === TlUserReadType.CHAT){
+ if(!chatReadRecord){
+ chatReadRecord = await userReadService.addInfo({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ channelId,
+ latestReadId,
+ type: TlUserReadType.CHAT
+ })
+
+ if(Object.keys(chatReadRecord).length === 0){
+ return tlResponseSvrError("更新失败")
+ }
+ }
+
+ const readId = chatReadRecord[TlUserReadDef.id]
+ if(!readId){
+ return tlResponseSvrError("更新失败")
+ }
+
+ // 更新聊天消息已读记录
+ const updateInfo = await userReadService.updateInfoById({
+ companyId: loginUserCompanyId,
+ id: readId
+ }, {
+ [TlUserReadDef.latestReadId]: latestReadId
+ })
+
+ if(Object.keys(updateInfo).length === 0){
+ return tlResponseSvrError("更新失败")
+ }
+ }
+
+ // 媒体消息已读记录不存在,新增, 否则更新已读消息最新ID
+ if(type === TlUserReadType.MEDIA){
+ if(!mediaReadRecord){
+ mediaReadRecord = await userReadService.addInfo({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ channelId,
+ latestReadId,
+ type: TlUserReadType.MEDIA
+ })
+
+ if(Object.keys(mediaReadRecord).length === 0){
+ return tlResponseSvrError("更新失败")
+ }
+ }
+
+ const readId = mediaReadRecord[TlUserReadDef.id]
+ if(!readId){
+ return tlResponseSvrError("更新失败")
+ }
+
+ // 更新媒体消息已读记录
+ const updateInfo = await userReadService.updateInfoById({
+ companyId: loginUserCompanyId,
+ id: readId
+ }, {
+ [TlUserReadDef.latestReadId]: latestReadId
+ })
+
+ if(Object.keys(updateInfo).length === 0){
+ return tlResponseSvrError("更新失败")
+ }
+ }
+
+ // 文件消息已读记录不存在,新增, 否则更新已读消息最新ID
+ if(type === TlUserReadType.FILE){
+ if(!fileReadRecord){
+ fileReadRecord = await userReadService.addInfo({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ channelId,
+ latestReadId,
+ type: TlUserReadType.FILE
+ })
+
+ if(Object.keys(fileReadRecord).length === 0){
+ return tlResponseSvrError("更新失败")
+ }
+ }
+
+ const readId = fileReadRecord[TlUserReadDef.id]
+ if(!readId){
+ return tlResponseSvrError("更新失败")
+ }
+
+ // 更新文件消息已读记录
+ const updateInfo = await userReadService.updateInfoById({
+ companyId: loginUserCompanyId,
+ id: readId
+ }, {
+ [TlUserReadDef.latestReadId]: latestReadId
+ })
+
+ if(Object.keys(updateInfo).length === 0){
+ return tlResponseSvrError("更新失败")
+ }
+ }
+
+ return tlResponseSuccess("更新成功")
+}
+
+/**
+ * 更新频道聊天已读记录 (文件/媒体/聊天)
+ * @param {*} loginInfo
+ * @param {*} channelId
+ * @param {*} latestReadId
+ * @param {*} latestMediaReadId
+ * @param {*} latestFileReadId
+ * @returns
+ */
+const updateChannelMuiltRead = async function({
+ loginInfo, channelId, latestChatReadId, latestMediaReadId, latestFileReadId
+}){
+ if(latestChatReadId){
+ const chatResult = await updateChannelChatRead({
+ loginInfo, channelId, latestReadId: latestChatReadId
+ });
+
+ if (!chatResult.success) {
+ return chatResult
+ }
+ }
+
+ if(latestMediaReadId){
+ const mediaResult = await updateChannelMediaRead({
+ loginInfo, channelId, latestReadId: latestMediaReadId
+ });
+
+ if (!mediaResult.success) {
+ return mediaResult
+ }
+ }
+
+ if(latestFileReadId){
+ const fileResult = await updateChannelFileRead({
+ loginInfo, channelId, latestReadId: latestFileReadId
+ });
+
+ if (!fileResult.success) {
+ return fileResult
+ }
+ }
+
+ return tlResponseSuccess("更新成功")
+}
+
+/**
+ * 更新频道聊天消息已读记录
+ * @param {*} loginInfo
+ * @param {*} channelId
+ * @param {*} latestReadId
+ * @returns
+ */
+const updateChannelChatRead = async function({
+ loginInfo, channelId, latestReadId
+}){
+ return await updateChannelUserRead({
+ loginInfo, channelId, latestReadId, type: TlUserReadType.CHAT
+ })
+}
+
+/**
+ * 更新频道媒体消息已读记录
+ * @param {*} loginInfo
+ * @param {*} channelId
+ * @param {*} latestReadId
+ * @returns
+ */
+const updateChannelMediaRead = async function({
+ loginInfo, channelId, latestReadId
+}){
+ return await updateChannelUserRead({
+ loginInfo, channelId, latestReadId, type: TlUserReadType.MEDIA
+ })
+}
+
+/**
+ * 更新频道文件消息已读记录
+ * @param {*} loginInfo
+ * @param {*} channelId
+ * @param {*} latestReadId
+ * @returns
+ */
+const updateChannelFileRead = async function({
+ loginInfo, channelId, latestReadId
+}){
+ return await updateChannelUserRead({
+ loginInfo, channelId, latestReadId, type: TlUserReadType.FILE
+ })
+}
+
+/**
+ * 新增好友申请消息已读记录
+ * @param {*} loginInfo
+ * @param {*} recordId
+ * @param {*} type
+ * @returns
+ */
+const addUserFriendApplyRead = async function({
+ loginInfo, recordId
+}){
+ if (!recordId) {
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId, loginUsername
+ } = loginInfo
+
+ const addInfo = await userReadService.addInfo({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ recordId,
+ type: TlUserReadType.FRIEND_APPLY
+ })
+
+ if(Object.keys(addInfo).length === 0){
+ return tlResponseSvrError("更新失败")
+ }
+
+ return tlResponseSuccess("更新成功")
+}
+
+/**
+ * 新增好友同意消息已读记录
+ * @param {*} loginInfo
+ * @param {*} recordId
+ * @param {*} type
+ * @returns
+ */
+const addUserFriendApplyPassRead = async function({
+ loginInfo, recordId
+}){
+ if (!recordId) {
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId, loginUsername
+ } = loginInfo
+
+ const addInfo = await userReadService.addInfo({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ recordId,
+ type: TlUserReadType.FRIEND_APPLY_PASS
+ })
+
+ if(Object.keys(addInfo).length === 0){
+ return tlResponseSvrError("更新失败")
+ }
+
+ return tlResponseSuccess("更新成功")
+}
+
+/**
+ * 新增好友拒绝消息已读记录
+ * @param {*} loginInfo
+ * @param {*} recordId
+ * @param {*} type
+ * @returns
+ */
+const addUserFriendApplyRejectRead = async function({
+ loginInfo, recordId
+}){
+ if (!recordId) {
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId, loginUsername
+ } = loginInfo
+
+ const addInfo = await userReadService.addInfo({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ recordId,
+ type: TlUserReadType.FRIEND_APPLY_REJECT
+ })
+
+ if(Object.keys(addInfo).length === 0){
+ return tlResponseSvrError("更新失败")
+ }
+
+ return tlResponseSuccess("更新成功")
+}
+
+module.exports = {
+ updateChannelChatRead,
+ updateChannelMediaRead,
+ updateChannelFileRead,
+ updateChannelMuiltRead,
+
+ addUserFriendApplyRead,
+ addUserFriendApplyPassRead,
+ addUserFriendApplyRejectRead
+}
\ No newline at end of file
diff --git a/src/biz/user/user_register_biz.js b/src/biz/user/user_register_biz.js
new file mode 100644
index 0000000..47d9f42
--- /dev/null
+++ b/src/biz/user/user_register_biz.js
@@ -0,0 +1,430 @@
+const crypto = require('crypto')
+const {
+ tlResponseArgsError, tlResponseForbidden, tlResponseSvrError,
+ tlResponseTimeout, tlResponseNotFound, tlResponseSuccess,
+ tlConsole,
+ checkIsEmail, checkIsMobile,
+ tlConsoleError,
+ encryptStr
+} = require('../../utils/utils');
+const {
+ sendVerificationCodeEmail
+} = require('../../utils/mail/mail');
+
+const companyService = require('../../service/company/tl_company_service')
+const userService = require('../../service/user/tl_user_service')
+const userSessionService = require('../../service/user/tl_user_session_service')
+const userAuthService = require('../../service/user/tl_user_auth_service')
+
+const { fields: companyFields } = require('../../tables/tl_company')
+const { inner: TlRoleInner } = require('../../tables/tl_role')
+const { fields: userFields } = require('../../tables/tl_user')
+const { fields: userAuthFields } = require('../../tables/tl_user_auth');
+const { Def: TlUserDef } = userFields
+const { Def: TlUserAuthDef, Type: TlUserAuthType } = userAuthFields
+const { Def: TlCompanyFields } = companyFields
+
+
+/**
+ * 通过帐号注册接口
+ * @param {*} account
+ * @param {*} password
+ * @param {*} invite_code
+ */
+const userRegisterByAccount = async function({account, password, invite_code}){
+ if(!account){
+ return tlResponseArgsError("帐号不能为空")
+ }
+
+ if(!password){
+ return tlResponseArgsError("密码不能为空")
+ }
+
+ // base64解码
+ account = Buffer.from(account, 'base64').toString()
+ password = Buffer.from(password, 'base64').toString()
+
+ if(!invite_code){
+ return tlResponseArgsError("邀请码不能为空")
+ }
+
+ const company = await companyService.getInfoByCode({
+ code: invite_code
+ }, [
+ TlCompanyFields.id
+ ])
+
+ if(Object.keys(company).length === 0){
+ return tlResponseArgsError("邀请码无效")
+ }
+
+ const companyId = company.id
+
+ const user = await userService.getInfoByName({
+ companyId: companyId,
+ name: account
+ }, [
+ TlUserDef.id
+ ])
+
+ if(user[TlUserDef.id]){
+ return tlResponseArgsError("帐号已存在")
+ }
+
+ const salt = crypto.randomBytes(16).toString('hex')
+ const saltPassword = encryptStr({
+ str: password,
+ salt: salt
+ })
+
+ tlConsole(account, password, salt, saltPassword)
+
+ const result = await userService.addInfo({
+ companyId : companyId,
+ name : account,
+ password: saltPassword,
+ roleId : TlRoleInner.user.normal.id,
+ salt,
+ avatarUrl: "/image/default-avatar.png"
+ })
+
+ if (Object.keys(result).length === 0) {
+ return tlResponseSvrError("注册失败")
+ }
+
+ return tlResponseSuccess("注册成功")
+}
+
+/**
+ * 通过手机号注册接口
+ * @param {*} mobile
+ * @param {*} code
+ * @param {*} invite_code
+ */
+const userRegisterByMobile = async function({mobile, code, invite_code}){
+ if(!mobile){
+ return tlResponseArgsError("手机号不能为空")
+ }
+ if(!code){
+ return tlResponseArgsError("验证码不能为空")
+ }
+ if(!invite_code){
+ return tlResponseArgsError("邀请码不能为空")
+ }
+ if(!checkIsMobile(mobile)){
+ return tlResponseArgsError("手机号格式不正确")
+ }
+
+ const company = await companyService.getInfoByCode({
+ code: invite_code
+ }, [
+ TlCompanyFields.id
+ ])
+
+ if(Object.keys(company).length === 0){
+ return tlResponseArgsError("邀请码无效")
+ }
+
+ // 检查code
+ const checkCode = await userSessionService.getMobileCode({
+ mobile
+ })
+ if (checkCode !== code) {
+ return tlResponseArgsError("手机验证码错误")
+ }
+
+ const companyId = company.id
+
+ const user = await userService.getInfoByMobile({
+ companyId: companyId,
+ mobile
+ }, [
+ TlUserDef.id
+ ])
+ if(user[TlUserDef.id]){
+ return tlResponseArgsError("手机号已存在")
+ }
+
+ const salt = crypto.randomBytes(16).toString('hex')
+
+ const result = await userService.addInfo({
+ companyId : companyId,
+ name : '手机用户-' + Math.floor(Math.random() * 1000000),
+ mobile,
+ roleId : TlRoleInner.user.normal.id,
+ salt,
+ })
+
+ if (Object.keys(result).length === 0) {
+ return tlResponseSvrError("注册失败")
+ }
+
+ return tlResponseSuccess("注册成功")
+}
+
+/**
+ * 通过邮箱注册接口
+ * @param {*} email
+ * @param {*} code
+ * @param {*} invite_code
+ * @param {*} password
+ */
+const userRegisterByEmail = async function({email, code, invite_code, password}){
+ if(!email){
+ return tlResponseArgsError("邮箱不能为空")
+ }
+ if(!code){
+ return tlResponseArgsError("验证码不能为空")
+ }
+ if(!invite_code){
+ return tlResponseArgsError("邀请码不能为空")
+ }
+ if (!password) {
+ return tlResponseArgsError("密码不能为空")
+ }
+ // base64解码
+ email = Buffer.from(email, 'base64').toString()
+ password = Buffer.from(password, 'base64').toString()
+
+ if(!checkIsEmail(email)){
+ return tlResponseArgsError("邮箱格式不正确")
+ }
+
+ const company = await companyService.getInfoByCode({
+ code: invite_code
+ }, [
+ TlCompanyFields.id
+ ])
+
+ if(Object.keys(company).length === 0){
+ return tlResponseArgsError("邀请码无效")
+ }
+
+ // 检查code
+ const checkCode = await userSessionService.getEmailCode({
+ email
+ })
+ if (checkCode !== code) {
+ return tlResponseArgsError("邮箱验证码错误")
+ }
+
+ const companyId = company.id
+
+ const user = await userService.getInfoByEmail({
+ companyId: companyId,
+ email
+ }, [
+ TlUserDef.id
+ ])
+
+ if(user.id){
+ return tlResponseArgsError("邮箱已存在")
+ }
+
+ const salt = crypto.randomBytes(16).toString('hex')
+ const saltPassword = encryptStr({
+ str: password,
+ salt: salt
+ })
+
+ const result = await userService.addInfo({
+ companyId : companyId,
+ name : '邮箱用户-' + Math.floor(Math.random() * 1000000),
+ email,
+ password: saltPassword,
+ roleId : TlRoleInner.user.normal.id,
+ salt,
+ avatarUrl: "/image/default-avatar.png"
+ })
+
+ if (Object.keys(result).length === 0) {
+ return tlResponseSvrError("注册失败")
+ }
+
+ return tlResponseSuccess("注册成功")
+}
+
+/**
+ * 通过微信注册接口
+ * @param {*} code
+ * @param {*} openId
+ */
+const userRegisterByWechat = async function({openId, code}){
+ const params = {
+ code, openId
+ }
+
+ return tlResponseSuccess("注册成功", params)
+}
+
+/**
+ * 通过qq注册接口
+ * @param {*} code
+ * @param {*} openId
+ */
+const userRegisterByQQ = async function({openId, code}){
+ const params = {
+ code, openId
+ }
+
+ return tlResponseSuccess("注册成功", params)
+}
+
+/**
+ * 通过企业微信注册接口
+ * @param {*} code
+ * @param {*} openId
+ */
+const userRegisterByWechatWork = async function({openId, code}){
+ const params = {
+ code, openId
+ }
+
+ return tlResponseSuccess("注册成功", params)
+}
+
+/**
+ * 获取邮箱验证码
+ * @param {*} email
+ * @returns
+ */
+const getEmailCode = async function({email}){
+ if(!email){
+ return tlResponseArgsError("邮箱不能为空")
+ }
+
+ if(!checkIsEmail(email)){
+ return tlResponseArgsError("邮箱格式不正确")
+ }
+
+ // 检查总次数
+ const totalCount = await userAuthService.getDayCountByType({
+ type: TlUserAuthType.EMAIL_REGISTER_CODE,
+ })
+
+ if(totalCount >= 1000){
+ return tlResponseForbidden("当天系统发送验证码次数已达上限")
+ }
+
+ // 检查次数
+ const count = await userAuthService.getDayCountByTypeAndKey({
+ type: TlUserAuthType.EMAIL_REGISTER_CODE,
+ key: email
+ })
+
+ if(count >= 5){
+ return tlResponseForbidden("当天获取验证码次数已达上限")
+ }
+
+ const code = Math.floor(Math.random() * 1000000)
+
+ await userSessionService.setEmailCode({
+ email, code
+ })
+
+ await sendVerificationCodeEmail({
+ to: email,
+ code: code,
+ expire: 5,
+ companyName: "tl-open-source开源团队",
+ companyUrl: "https://tl-open-source.github.com/"
+ }).then((res) => {
+ tlConsole("邮件验证码发送成功", res)
+ })
+
+ const result = await userAuthService.addInfo({
+ key: email,
+ type: TlUserAuthType.EMAIL_REGISTER_CODE,
+ code: String(code)
+ })
+
+ if (Object.keys(result).length === 0) {
+ tlConsoleError("验证码发送添加记录失败")
+ }
+
+ return tlResponseSuccess("验证码发送成功", {
+ code
+ })
+}
+
+/**
+ * 注册官网用户
+ * @param {*} email
+ * @param {*} code
+ * @param {*} password
+ * @returns
+ */
+const registerWebsiteUser = async function({ email, code, password }){
+ // 默认挂在首个企业下
+ const companyId = 1
+
+ if(!email){
+ return tlResponseArgsError("邮箱不能为空")
+ }
+ if(!code){
+ return tlResponseArgsError("验证码不能为空")
+ }
+ if(!password) {
+ return tlResponseArgsError("密码不能为空")
+ }
+ // base64解码
+ email = Buffer.from(email, 'base64').toString()
+ password = Buffer.from(password, 'base64').toString()
+
+ if(!checkIsEmail(email)){
+ return tlResponseArgsError("邮箱格式不正确")
+ }
+
+ // 检查code
+ const checkCode = await userSessionService.getEmailCode({
+ email
+ })
+ if (checkCode !== code) {
+ return tlResponseArgsError("邮箱验证码错误")
+ }
+
+ const user = await userService.getInfoByEmail({
+ companyId: companyId,
+ email
+ }, [
+ TlUserDef.id
+ ])
+
+ if(user.id){
+ return tlResponseArgsError("邮箱已注册")
+ }
+
+ const salt = crypto.randomBytes(16).toString('hex')
+ const saltPassword = encryptStr({
+ str: password,
+ salt: salt
+ })
+
+ const result = await userService.addInfo({
+ companyId : companyId,
+ name : "官网用户-" + String(Math.floor(Math.random() * 1000000)),
+ email,
+ password: saltPassword,
+ roleId : TlRoleInner.website.user.id,
+ salt,
+ avatarUrl: "/image/default-avatar.png"
+ })
+
+ if (Object.keys(result).length === 0) {
+ return tlResponseSvrError("注册失败")
+ }
+
+ return tlResponseSuccess("注册成功")
+}
+
+
+module.exports = {
+ userRegisterByAccount,
+ userRegisterByMobile,
+ userRegisterByEmail,
+ userRegisterByWechat,
+ userRegisterByQQ,
+ userRegisterByWechatWork,
+ getEmailCode,
+ registerWebsiteUser
+}
\ No newline at end of file
diff --git a/src/biz/user/user_tag_biz.js b/src/biz/user/user_tag_biz.js
new file mode 100644
index 0000000..2ad3d61
--- /dev/null
+++ b/src/biz/user/user_tag_biz.js
@@ -0,0 +1,202 @@
+const {
+ tlResponseArgsError, tlResponseForbidden, tlResponseSvrError,
+ tlResponseTimeout, tlResponseNotFound, tlResponseSuccess
+} = require('../../utils/utils')
+const userTagService = require('../../service/user/tl_user_tag_service')
+const { fields: userTagDef } = require('../../tables/tl_user_tag')
+
+const { Def: TlUserTagDef, Type: TlUserTagType } = userTagDef
+
+
+/**
+ * 添加用户标签
+ * @param {*} loginInfo
+ * @param {*} name
+ * @param {*} type
+ * @returns
+ */
+const addUserTag = async function({
+ loginInfo, name, type
+}){
+ if(!name) {
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ if(!type){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId, loginUsername
+ } = loginInfo
+
+ const result = await userTagService.addInfo({
+ name, type,
+ userId: loginUserId,
+ companyId: loginUserCompanyId
+ })
+
+ if(Object.keys(result).length == 0){
+ return tlResponseSvrError("添加标签失败")
+ }
+
+ return tlResponseSuccess(result)
+}
+
+/**
+ * 获取用户标签列表
+ * @param {*} loginInfo
+ * @param {*} type
+ * @returns
+ */
+const getUserTagList = async function({
+ loginInfo, type
+}){
+ if(!type){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId, loginUsername
+ } = loginInfo
+
+ const result = await userTagService.getListByUserIdAndType({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ type
+ })
+
+ let resultList = []
+ result.forEach((item) => {
+ resultList.push({
+ id: item[TlUserTagDef.id],
+ name: item[TlUserTagDef.name]
+ })
+ })
+
+ return tlResponseSuccess("获取成功", resultList)
+}
+
+/**
+ * 删除用户标签
+ * @param {*} loginInfo
+ * @param {*} id
+ * @returns
+ */
+const delUserTag = async function({
+ loginInfo, id
+}){
+ if(!id){
+ return tlResponseArgsError("请求参数为空")
+ }
+
+ const {
+ loginUserCompanyId, loginUserId, loginUsername
+ } = loginInfo
+
+ const result = await userTagService.deleteInfoById({
+ companyId: loginUserCompanyId,
+ id
+ })
+
+ if(result == 0){
+ return tlResponseSvrError("删除失败")
+ }
+
+ return tlResponseSuccess("删除成功")
+}
+
+
+/**
+ * 添加频道标签
+ * @param {*} loginInfo
+ * @param {*} name
+ * @returns
+ */
+const addChannelTag = async function({
+ loginInfo, name
+}){
+ return await addUserTag({
+ loginInfo, name, type: TlUserTagType.CHANNEL
+ })
+}
+
+/**
+ * 添加好友标签
+ * @param {*} loginInfo
+ * @param {*} name
+ * @returns
+ */
+const addFriendTag = async function({
+ loginInfo, name
+}){
+ return await addUserTag({
+ loginInfo, name, type: TlUserTagType.FRIEND
+ })
+}
+
+/**
+ * 添加资源库标签
+ * @param {*} loginInfo
+ * @param {*} name
+ * @returns
+ */
+const addCloudTag = async function({
+ loginInfo, name
+}){
+ return await addUserTag({
+ loginInfo, name, type: TlUserTagType.CLOUD
+ })
+}
+
+/**
+ * 获取频道标签列表
+ * @param {*} loginInfo
+ * @returns
+ */
+const getChannelTagList = async function({
+ loginInfo
+}){
+ return await getUserTagList({
+ loginInfo, type: TlUserTagType.CHANNEL
+ })
+}
+
+/**
+ * 获取好友标签列表
+ * @param {*} loginInfo
+ * @returns
+ */
+const getFriendTagList = async function({
+ loginInfo
+}){
+ return await getUserTagList({
+ loginInfo, type: TlUserTagType.FRIEND
+ })
+}
+
+/**
+ * 获取资源库标签列表
+ * @param {*} loginInfo
+ * @returns
+ */
+const getCloudTagList = async function({
+ loginInfo
+}){
+ return await getUserTagList({
+ loginInfo, type: TlUserTagType.CLOUD
+ })
+}
+
+
+module.exports = {
+ addUserTag,
+ getUserTagList,
+ delUserTag,
+ addChannelTag,
+ addFriendTag,
+ addCloudTag,
+ getChannelTagList,
+ getFriendTagList,
+ getCloudTagList
+}
\ No newline at end of file
diff --git a/src/controller/app/app.js b/src/controller/app/app.js
new file mode 100644
index 0000000..7c6d6c7
--- /dev/null
+++ b/src/controller/app/app.js
@@ -0,0 +1 @@
+module.exports = {}
\ No newline at end of file
diff --git a/src/controller/desktop/desktop.js b/src/controller/desktop/desktop.js
new file mode 100644
index 0000000..7c6d6c7
--- /dev/null
+++ b/src/controller/desktop/desktop.js
@@ -0,0 +1 @@
+module.exports = {}
\ No newline at end of file
diff --git a/src/controller/router.js b/src/controller/router.js
new file mode 100644
index 0000000..505bea2
--- /dev/null
+++ b/src/controller/router.js
@@ -0,0 +1,31 @@
+const fs = require('fs');
+const path = require('path');
+const {
+ tlConsoleError
+} = require("../../src/utils/utils");
+
+module.exports = () => {
+ let allRouterMap = {};
+
+ whiteDir = []
+ whiteFile = ['router.js']
+ let allApps = fs.readdirSync(__dirname);
+ for (let client of allApps) {
+ //过滤文件夹和文件
+ if (whiteDir.includes(client) || whiteFile.includes(client)) continue;
+ try {
+ //添加router
+ let stat = fs.statSync(path.join(__dirname, client, client + '.js'));
+ if (stat && stat.isFile()) {
+ const subModuleRouterMap = require("./" + client + '/' + client);
+ for(let subModule in subModuleRouterMap){
+ const subModuleRouter = subModuleRouterMap[subModule];
+ allRouterMap["/api/" + client + "/" + subModule] = subModuleRouter
+ }
+ }
+ } catch (e) {
+ tlConsoleError(e)
+ }
+ }
+ return allRouterMap;
+}
\ No newline at end of file
diff --git a/src/controller/web/channel/channel_chat_controller.js b/src/controller/web/channel/channel_chat_controller.js
new file mode 100644
index 0000000..9db6cb6
--- /dev/null
+++ b/src/controller/web/channel/channel_chat_controller.js
@@ -0,0 +1,156 @@
+const {
+ tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError,
+ checkRequestParams
+} = require("../../../utils/utils");
+const express = require('express');
+const router = express.Router();
+const channelChatBiz = require('../../../biz/channel/channel_chat_biz');
+
+
+/**
+ * #controller post /api/web/channel-chat/add-friend-channel-chat
+ * #desc 发送好友频道聊天
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/add-friend-channel-chat', async function(request, response) {
+ try {
+ const { message, toUserId, toUserName, channelId, atUserId, atUserName } = request.body;
+
+ // 消息内容不过滤
+ if (!checkRequestParams({
+ toUserId, toUserName, channelId, atUserId, atUserName
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await channelChatBiz.addFriendChannelChat({
+ loginInfo, message, toUserId, toUserName, channelId, atUserId, atUserName
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+});
+
+/**
+ * #controller post /api/web/channel-chat/add-group-channel-chat
+ * #desc 发送多人频道聊天
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/add-group-channel-chat', async function(request, response) {
+ try {
+ const { message, channelId, atUserId, atUserName, isAtAll } = request.body;
+
+ // 消息内容不过滤
+ if (!checkRequestParams({
+ channelId, atUserId, atUserName, isAtAll
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await channelChatBiz.addGroupChannelChat({
+ loginInfo, message, channelId, atUserId, atUserName, isAtAll
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+});
+
+/**
+ * #controller post /api/web/channel-chat/add-reply-friend-channel-chat
+ * #desc 回复好友聊天
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/add-reply-friend-channel-chat', async function(request, response) {
+ try {
+ const { message, channelId, messageId, messageType, atUserId, atUserName } = request.body;
+
+ // 消息内容不过滤
+ if (!checkRequestParams({
+ channelId, messageId, messageType, atUserId, atUserName
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await channelChatBiz.addReplyFriendChannelChat({
+ loginInfo, message, channelId, messageId, messageType, atUserId, atUserName
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+});
+
+/**
+ * #controller post /api/web/channel-chat/add-reply-group-channel-chat
+ * #desc 回复群组聊天
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/add-reply-group-channel-chat', async function(request, response) {
+ try {
+ const { message, channelId, messageId, messageType, atUserId, atUserName, atAll } = request.body;
+
+ // 消息内容不过滤
+ if (!checkRequestParams({
+ channelId, messageId, messageType, atUserId, atUserName, atAll
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await channelChatBiz.addReplyGroupChannelChat({
+ loginInfo, message, channelId, messageId, messageType, atUserId, atUserName, atAll
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+});
+
+/**
+ * #controller post /api/web/channel-chat/rollback-channel-chat
+ * #desc 撤回消息
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/rollback-channel-chat', async function(request, response) {
+ try {
+ const { channelId, messageId, messageType } = request.body;
+
+ if (!checkRequestParams({
+ channelId, messageId, messageType
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await channelChatBiz.rollbackChannelChat({
+ loginInfo, channelId, messageId, messageType
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+});
+
+
+
+module.exports = router;
diff --git a/src/controller/web/channel/channel_controller.js b/src/controller/web/channel/channel_controller.js
new file mode 100644
index 0000000..2577be1
--- /dev/null
+++ b/src/controller/web/channel/channel_controller.js
@@ -0,0 +1,254 @@
+const {
+ tlConsole, tlResponseSvrError, tlConsoleError, checkRequestParams, tlResponseArgsError
+} = require("../../../utils/utils");
+const express = require('express');
+const router = express.Router();
+const channelBiz = require('../../../biz/channel/channel_biz');
+
+
+/**
+ * #controller post /api/web/channel/search-channel-by-id
+ * #desc 根据频道id搜索频道
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/search-channel-by-id', async function(request, response) {
+ try{
+ const { channelId } = request.body;
+
+ if (!checkRequestParams({
+ channelId,
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await channelBiz.searchChannelById({
+ channelId, loginInfo
+ });
+
+ response.json(result);
+ }catch(error){
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+/**
+ * #controller post /api/web/channel/add-channel
+ * #desc 添加频道
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/add-channel', async function(request, response) {
+ try{
+ const { channelName } = request.body;
+
+ if (!checkRequestParams({
+ channelName,
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await channelBiz.addChannel({
+ channelName, loginInfo
+ });
+
+ response.json(result);
+ }catch(error){
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+/**
+ * #controller get /api/web/channel/get-channel-list
+ * #desc 获取频道列表
+ * @param {*} request
+ * @param {*} response
+ */
+router.get('/get-channel-list', async function(request, response) {
+ try {
+ const loginInfo = request.ctx || {}
+ const result = await channelBiz.getChannelList({ loginInfo });
+
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+/**
+ * #controller get /api/web/channel/get-channel-info
+ * #desc 获取频道信息
+ * @param {*} request
+ * @param {*} response
+ */
+router.get('/get-channel-info', async function(request, response) {
+ try {
+ const { channelId } = request.query;
+
+ if (!checkRequestParams({
+ channelId,
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await channelBiz.getChannelInfo({ loginInfo, channelId });
+
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+/**
+ * #controller get /api/web/channel/get-channel-name
+ * #desc 获取频道名称
+ * @param {*} request
+ * @param {*} response
+ */
+router.get('/get-channel-name', async function(request, response) {
+ try {
+ const { channelId } = request.query;
+
+ if (!checkRequestParams({
+ channelId,
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await channelBiz.getChannelNameById({ loginInfo, channelId });
+
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+/**
+ * #controller post /api/web/channel/update-channel-name
+ * #desc 修改频道名称
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/update-channel-name', async function(request, response) {
+ try {
+ const { channelId, channelName } = request.body;
+
+ if (!checkRequestParams({
+ channelId, channelName
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await channelBiz.updateChannelName({
+ channelId, channelName, loginInfo
+ });
+
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+/**
+ * #controller get /api/web/channel/get-group-channel-list
+ * #desc 获取群组频道列表
+ * @param {*} request
+ * @param {*} response
+ */
+router.get('/get-group-channel-list', async function(request, response) {
+ try {
+ const loginInfo = request.ctx || {}
+ const result = await channelBiz.getChannelGroupList({ loginInfo });
+
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+/**
+ * #controller post /api/web/channel/get-channel-message
+ * #desc 获取频道聊天记录
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/get-channel-message', async function(request, response) {
+ try {
+ const {
+ channelId, chatMinId, fileMinId, mediaMinId
+ } = request.body;
+
+ if (!checkRequestParams({
+ channelId, chatMinId, fileMinId, mediaMinId
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await channelBiz.getChannelChatList({
+ loginInfo, channelId, chatMinId, fileMinId, mediaMinId
+ });
+
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+})
+
+/**
+ * #controller post /api/web/channel/get-channel-message-list
+ * #desc 获取频道列表聊天记录
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/get-channel-message-list', async function(request, response) {
+ try {
+ const { channelIdList } = request.body;
+
+ if (!checkRequestParams({
+ channelIdList
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await channelBiz.getChannelChatListByChannelIdList({
+ loginInfo, channelIdList
+ });
+
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+});
+
+
+module.exports = router;
+
diff --git a/src/controller/web/channel/channel_user_controller.js b/src/controller/web/channel/channel_user_controller.js
new file mode 100644
index 0000000..8b2c96e
--- /dev/null
+++ b/src/controller/web/channel/channel_user_controller.js
@@ -0,0 +1,354 @@
+const {
+ tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams
+} = require("../../../utils/utils");
+const express = require('express');
+const router = express.Router();
+const channelUserBiz = require('../../../biz/channel/channel_user_biz');
+
+
+
+/**
+ * #controller post /api/web/channel-user/add-channel-user
+ * #desc 添加频道用户
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/add-channel-user', async function(request, response){
+ try{
+ const { channelId, userId, roleId } = request.body;
+ if (!checkRequestParams({
+ channelId, userId, roleId
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await channelUserBiz.addChannelUser({ loginInfo, channelId, userId, roleId });
+
+ response.json(result);
+ }catch(error){
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+/**
+ * #controller post /api/web/channel-user/share-join-channel
+ * #desc 分享加入群聊
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/share-join-channel', async function(request, response){
+ try {
+ const { channelId } = request.body;
+ if (!checkRequestParams({
+ channelId
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await channelUserBiz.shareJoinGroupChannel({ loginInfo, channelId });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+/**
+ * #controller post /api/web/channel-user/add-channel-user-normal
+ * #desc 添加频道普通身份用户
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/add-channel-user-normal', async function(request, response){
+ try {
+ const { channelId, userId } = request.body;
+ if (!checkRequestParams({
+ channelId, userId
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await channelUserBiz.addChannelUserNormal({ loginInfo, channelId, userId });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+/**
+ * #controller post /api/web/channel-user/add-channel-user-list-normal
+ * #desc 批量添加频道普通身份用户
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/add-channel-user-list-normal', async function(request, response){
+ try {
+ const { channelId, userIdList } = request.body;
+ if (!checkRequestParams({
+ channelId, userIdList
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await channelUserBiz.addChannelUserListNormal({ loginInfo, channelId, userIdList });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+/**
+ * #controller post /api/web/channel-user/add-channel-user-admin
+ * #desc 添加频道管理员身份用户
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/add-channel-user-admin', async function(request, response){
+ try {
+ const { channelId, userId } = request.body;
+ if (!checkRequestParams({
+ channelId, userId
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await channelUserBiz.addChannelUserAdmin({ loginInfo, channelId, userId });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+/**
+ * #controller post /api/web/channel-user/delete-channel-user
+ * #desc 删除频道用户
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/delete-channel-user', async function(request, response){
+ try {
+ const { channelId, userId } = request.body;
+ if (!checkRequestParams({
+ channelId, userId
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await channelUserBiz.removeChannelUser({ loginInfo, channelId, userId });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+/**
+ * #controller post /api/web/channel-user/update-channel-user-role-admin
+ * #desc 更新频道用户角色为管理员
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/update-channel-user-role-admin', async function(request, response){
+ try {
+ const { channelId, userId } = request.body;
+ if (!checkRequestParams({
+ channelId, userId
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await channelUserBiz.updateChannelUserRoleAdmin({ loginInfo, channelId, userId });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+/**
+ * #controller post /api/web/channel-user/update-channel-user-role-normal
+ * #desc 更新频道用户角色为普通用户
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/update-channel-user-role-normal', async function(request, response){
+ try {
+ const { channelId, userId } = request.body;
+ if (!checkRequestParams({
+ channelId, userId
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await channelUserBiz.updateChannelUserRoleNormal({ loginInfo, channelId, userId });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+/**
+ * #controller get /api/web/channel-user/get-channel-list-user-list
+ * #desc 获取所有频道列表的用户
+ * @param {*} request
+ * @param {*} response
+ */
+router.get('/get-channel-list-user-list', async function(request, response) {
+ try {
+
+ const loginInfo = request.ctx || {}
+ const result = await channelUserBiz.getChannelListUserList({ loginInfo });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+/**
+ * #controller get /api/web/channel-user/get-channel-user-list
+ * #desc 获取某个频道的用户列表
+ * @param {*} request
+ * @param {*} response
+ */
+router.get('/get-channel-user-list', async function(request, response) {
+ try {
+ const { channelId } = request.query;
+
+ if (!checkRequestParams({
+ channelId
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await channelUserBiz.getChannelUserList({ loginInfo, channelId });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+/**
+ * #controller get /api/web/channel-user/update-channel-top
+ * #desc 修改频道是否置顶
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/update-channel-top', async function(request, response) {
+ try {
+ const { channelId, top } = request.body;
+
+ if (!checkRequestParams({
+ channelId, top
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await channelUserBiz.updateChannelToTop({
+ channelId, top, loginInfo
+ });
+
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+/**
+ * #controller get /api/web/channel-user/update-channel-black
+ * #desc 修改频道是否拉黑
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/update-channel-black', async function(request, response) {
+ try {
+ const { channelId, black } = request.body;
+
+ if (!checkRequestParams({
+ channelId, black
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await channelUserBiz.updateChannelToBlack({
+ channelId, black, loginInfo
+ });
+
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+/**
+ * #controller get /api/web/channel-user/exit-channel
+ * #desc 退出频道
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/exit-channel', async function(request, response) {
+ try {
+ const { channelId } = request.body;
+
+ if (!checkRequestParams({
+ channelId,
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await channelUserBiz.exitChannel({
+ channelId, loginInfo
+ });
+
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+
+module.exports = router;
\ No newline at end of file
diff --git a/src/controller/web/company/company_controller.js b/src/controller/web/company/company_controller.js
new file mode 100644
index 0000000..d8cb7a2
--- /dev/null
+++ b/src/controller/web/company/company_controller.js
@@ -0,0 +1,57 @@
+const {
+ tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams
+} = require("../../../utils/utils");
+const express = require('express');
+const router = express.Router();
+const companyBiz = require('../../../biz/company/company_biz');
+
+
+/**
+ * #controller post /api/web/company/add-company
+ * #desc 添加企业
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/add-company', async function(request, response) {
+ try {
+ const { name, address, phone, email, website, logo, description } = request.body;
+
+ if (!checkRequestParams({
+ name, address, phone, email, website, logo, description
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await companyBiz.addCompany({
+ name, address, phone, email, website, logo, description, loginInfo
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+/**
+ * #controller post /api/web/company/get-company
+ * #desc 获取企业
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/get-company', async function(request, response) {
+ try {
+ const loginInfo = request.ctx || {}
+ const result = await companyBiz.getCompanyInfo({
+ loginInfo
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+module.exports = router;
\ No newline at end of file
diff --git a/src/controller/web/config/init_controller.js b/src/controller/web/config/init_controller.js
new file mode 100644
index 0000000..1247d38
--- /dev/null
+++ b/src/controller/web/config/init_controller.js
@@ -0,0 +1,49 @@
+const {
+ getClientIP, getLocalIP, tlConsole, tlResponseSvrError, tlConsoleError
+} = require("../../../utils/utils");
+const express = require('express');
+const router = express.Router();
+const configBiz = require('../../../biz/config/config_biz')
+const {
+ LOGIN : {
+ LOGIN_TOKEN_KEY
+ }
+} = require('../../../utils/constant');
+
+
+/**
+ * #controller get /api/web/config/init
+ * #desc 获取ip地址,初始化等相关配置
+ * @param {*} request
+ * @param {*} response
+ */
+router.get("/init", async function(request, response){
+ try {
+ const { [LOGIN_TOKEN_KEY]: token } = request.cookies;
+
+ //是否开启turn
+ const openTurn = (request.query.turn || "") === 'true';
+ //使用的账号模式, true : 有效账号模式, false : 固定账号
+ const useSecret = (request.query.secret || "") === 'true' || true;
+ //获取ip相关信息
+ let regexIP = /^((?:(?:25[0-5]|2[0-4]\d|[01]?\d?\d)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d?\d))$/;
+ let ip = getLocalIP();
+ if (!regexIP.test(ip)) {
+ ip = getClientIP(request)
+ }
+ if (!regexIP.test(ip)) {
+ ip = "127.0.0.1"
+ }
+
+ const result = await configBiz.initData({
+ openTurn, useSecret, ip, token
+ })
+ response.json(result)
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+})
+
+
+module.exports = router
\ No newline at end of file
diff --git a/src/controller/web/user/user_apply_controller.js b/src/controller/web/user/user_apply_controller.js
new file mode 100644
index 0000000..230c38c
--- /dev/null
+++ b/src/controller/web/user/user_apply_controller.js
@@ -0,0 +1,137 @@
+const {
+ tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams
+} = require("../../../utils/utils");
+const express = require('express');
+const router = express.Router();
+const userApplyBiz = require('../../../biz/user/user_apply_biz');
+
+
+/**
+ * #controller post /api/web/user-apply/add-user-friend-apply
+ * #desc 添加好友申请
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/add-user-friend-apply', async function(request, response) {
+ try {
+ const { friendId, remark, origin } = request.body;
+
+ if (!checkRequestParams({
+ friendId, remark, origin
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await userApplyBiz.applyAddFriend({
+ loginInfo, friendId, remark, origin
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+/**
+ * #controller post /api/web/user-apply/pass-user-friend
+ * #desc 通过好友申请
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/pass-user-friend', async function(request, response) {
+ try {
+ const { id, remark } = request.body;
+
+ if (!checkRequestParams({
+ id, remark
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await userApplyBiz.passUserFriendApply({
+ loginInfo, id, remark
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+/**
+ * #controller post /api/web/user-apply/reject-user-friend
+ * #desc 拒绝好友申请
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/reject-user-friend', async function(request, response) {
+ try {
+ const { id, remark } = request.body;
+
+ if (!checkRequestParams({
+ id, remark
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await userApplyBiz.rejectUserFriendApply({
+ loginInfo, id, remark
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+/**
+ * #controller get /api/web/user-apply/get-user-friend-other-apply-list
+ * #desc 获取自己收到的用户好友申请列表
+ * @param {*} request
+ * @param {*} response
+ */
+router.get('/get-user-friend-other-apply-list', async function(request, response) {
+ try {
+ const loginInfo = request.ctx || {}
+ const result = await userApplyBiz.getUserFriendListFromOther({
+ loginInfo
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+/**
+ * #controller get /api/web/user-apply/get-user-friend-self-apply-list
+ * #desc 获取自己发出的用户好友申请列表
+ * @param {*} request
+ * @param {*} response
+ */
+router.get('/get-user-friend-self-apply-list', async function(request, response) {
+ try {
+ const loginInfo = request.ctx || {}
+ const result = await userApplyBiz.getUserFriendApplyListFromSelf({
+ loginInfo
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+
+
+module.exports = router;
\ No newline at end of file
diff --git a/src/controller/web/user/user_config_controller.js b/src/controller/web/user/user_config_controller.js
new file mode 100644
index 0000000..f6c3eca
--- /dev/null
+++ b/src/controller/web/user/user_config_controller.js
@@ -0,0 +1,144 @@
+const {
+ tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams
+} = require("../../../utils/utils");
+const express = require('express');
+const router = express.Router();
+const userConfigBiz = require('../../../biz/user/user_config_biz');
+
+
+/**
+ * #controller post /api/web/user-config/get-user-config
+ * #desc 获取用户配置
+ * @param {*} request
+ * @param {*} response
+ */
+router.get('/get-user-config', async function(request, response) {
+ try {
+ const loginInfo = request.ctx || {}
+ const result = await userConfigBiz.getUserConfigSetting({
+ loginInfo
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+/**
+ * #controller post /api/web/user-config/update-user-config-normal
+ * #desc 更新用户通用设置
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/update-user-config-normal', async function(request, response) {
+ try {
+ const { normal } = request.body;
+
+ if (!checkRequestParams({
+ normal
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await userConfigBiz.updateUserConfigNormal({
+ loginInfo, normal
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+/**
+ * #controller post /api/web/user-config/update-user-config-account
+ * #desc 更新用户账号设置
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/update-user-config-account', async function(request, response) {
+ try {
+ const { account } = request.body;
+
+ if (!checkRequestParams({
+ account
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await userConfigBiz.updateUserConfigAccount({
+ loginInfo, account
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+/**
+ * #controller post /api/web/user-config/update-user-config-message
+ * #desc 更新用户消息设置
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/update-user-config-message', async function(request, response) {
+ try {
+ const { message } = request.body;
+
+ if (!checkRequestParams({
+ message
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await userConfigBiz.updateUserConfigMessage({
+ loginInfo, message
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+/**
+ * #controller post /api/web/user-config/update-user-config-other
+ * #desc 更新用户其他设置
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/update-user-config-other', async function(request, response) {
+ try {
+ const { other } = request.body;
+
+ if (!checkRequestParams({
+ other
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await userConfigBiz.updateUserConfigOther({
+ loginInfo, other
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+module.exports = router;
\ No newline at end of file
diff --git a/src/controller/web/user/user_controller.js b/src/controller/web/user/user_controller.js
new file mode 100644
index 0000000..6da2efd
--- /dev/null
+++ b/src/controller/web/user/user_controller.js
@@ -0,0 +1,103 @@
+const {
+ tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams
+} = require("../../../utils/utils");
+const express = require('express');
+const router = express.Router();
+const userBiz = require('../../../biz/user/user_biz');
+const {
+ LOGIN : {
+ LOGIN_TOKEN_KEY
+ }
+} = require('../../../utils/constant');
+
+
+/**
+ * #controller get /api/web/user/search-user-by-name
+ * #desc 搜索用户
+ * @param {*} request
+ * @param {*} response
+ * @return {*}
+ */
+router.get('/search-user-by-name', async function(request, response) {
+ try {
+ const { name } = request.query;
+
+ if (!checkRequestParams({
+ name,
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await userBiz.searchUserByName({
+ loginInfo, name,
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+/**
+ * #controller post /api/web/user/search-user-by-id
+ * #desc 搜索用户通过id
+ * @param {*} request
+ * @param {*} response
+ * @return {*}
+ */
+router.post('/search-user-by-id', async function(request, response) {
+ try {
+ const { id } = request.body;
+
+ if (!checkRequestParams({
+ id,
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await userBiz.searchUserById({
+ loginInfo, id,
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+/**
+ * #controller post /api/web/user/bind-email
+ * #desc 绑定邮箱
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/bind-email', async function(request, response) {
+ try {
+ const { email, code } = request.body;
+ const { [LOGIN_TOKEN_KEY]: token } = request.cookies;
+
+ if (!checkRequestParams({
+ email, code,
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await userBiz.bindEmail({
+ loginInfo, email, code, token
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+module.exports = router;
\ No newline at end of file
diff --git a/src/controller/web/user/user_friend_controller.js b/src/controller/web/user/user_friend_controller.js
new file mode 100644
index 0000000..54de044
--- /dev/null
+++ b/src/controller/web/user/user_friend_controller.js
@@ -0,0 +1,141 @@
+const {
+ tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams
+} = require("../../../utils/utils");
+const express = require('express');
+const router = express.Router();
+const userFriendBiz = require('../../../biz/user/user_friend_biz');
+
+
+/**
+ * #controller post /api/web/user-friend/delete-user-friend
+ * #desc 删除好友
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/delete-user-friend', async function(request, response) {
+ try {
+ const { channelId } = request.body;
+
+ if (!checkRequestParams({
+ channelId
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await userFriendBiz.deleteFriend({
+ loginInfo, channelId
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError(error));
+ }
+});
+
+/**
+ * #controller post /api/web/user-friend/update-user-friend-remark
+ * #desc 更新好友信息备注
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/update-user-friend-remark', async function(request, response) {
+ try {
+ const { channelId, remark } = request.body;
+
+ if (!checkRequestParams({
+ channelId, remark
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await userFriendBiz.updateRemark({
+ loginInfo, channelId, remark
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError(error));
+ }
+});
+
+/**
+ * #controller post /api/web/user-friend/update-user-friend-rename
+ * #desc 更新好友名称备注
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/update-user-friend-rename', async function(request, response) {
+ try {
+ const { channelId, rename } = request.body;
+
+ if (!checkRequestParams({
+ channelId, rename
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await userFriendBiz.updateRename({
+ loginInfo, channelId, rename
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError(error));
+ }
+});
+
+/**
+ * #controller post /api/web/user-friend/update-user-special
+ * #desc 关注好友
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/update-user-friend-special', async function(request, response) {
+ try {
+ const { channelId, special } = request.body;
+
+ if (!checkRequestParams({
+ channelId, special
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await userFriendBiz.updateFriendSpecical({
+ loginInfo, channelId, special
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError(error));
+ }
+});
+
+/**
+ * #controller post /api/web/user-friend/get-user-friend-list
+ * #desc 获取用户好友列表
+ * @param {*} request
+ * @param {*} response
+ */
+router.get('/get-user-friend-list', async function(request, response) {
+ try {
+ const loginInfo = request.ctx || {}
+ const result = await userFriendBiz.getFriendList({
+ loginInfo
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError(error));
+ }
+});
+
+
+module.exports = router;
\ No newline at end of file
diff --git a/src/controller/web/user/user_login_controller.js b/src/controller/web/user/user_login_controller.js
new file mode 100644
index 0000000..86df2b2
--- /dev/null
+++ b/src/controller/web/user/user_login_controller.js
@@ -0,0 +1,435 @@
+const {
+ tlConsole,
+ tlResponseSvrError, tlConsoleError,
+ tlResponseArgsError, checkRequestParams,
+ tlResponseSuccess
+} = require("../../../utils/utils");
+const express = require('express');
+const router = express.Router();
+const userLoginBiz = require('../../../biz/user/user_login_biz');
+const userLoginStateBiz = require('../../../biz/user/user_login_state_biz');
+const {
+ LOGIN : {
+ LOGIN_TOKEN_KEY,
+ LOGIN_TOKEN_EXPIRE,
+
+ WEBSITE_LOGIN_TOKEN_KEY,
+ WEBSITE_LOGIN_TOKEN_EXPIRE
+ }
+} = require('../../../utils/constant');
+
+
+/**
+ * #controller get /api/web/user-login/login-state
+ * #desc 获取登录状态
+ * @param {*} request
+ * @param {*} response
+ */
+router.get('/login-state', async function(request, response) {
+ try {
+ const { [LOGIN_TOKEN_KEY]: token } = request.cookies;
+ const result = await userLoginStateBiz.userIsLogin({
+ token
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+});
+
+/**
+ * #controller post /api/web/user-login/login-by-account
+ * #desc 通过账号登录
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/login-by-account', async function(request, response) {
+ try {
+ const { account, password, fps } = request.body;
+ const { [LOGIN_TOKEN_KEY]: token } = request.cookies;
+
+ if(token){
+ const loginResult = await userLoginStateBiz.userIsLogin({
+ token
+ });
+ if(loginResult.success){
+ return response.json(loginResult)
+ }
+ }
+
+ if (!checkRequestParams({
+ account, password, fps
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const result = await userLoginBiz.userLoginByAccount({
+ account, password, fps
+ });
+
+ response.cookie(LOGIN_TOKEN_KEY, result.data, {
+ maxAge: LOGIN_TOKEN_EXPIRE, httpOnly: true
+ });
+
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+});
+
+/**
+ * #controller post /api/web/user-login/login-by-mobile
+ * #desc 通过手机号登录
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/login-by-mobile', async function(request, response) {
+ try {
+ const { mobile, code, fps } = request.body;
+ const { [LOGIN_TOKEN_KEY]: token } = request.cookies;
+
+ if(token){
+ const loginResult = await userLoginStateBiz.userIsLogin({
+ token
+ });
+ if(loginResult.success){
+ return response.json(loginResult)
+ }
+ }
+
+ if (!checkRequestParams({
+ mobile, code, fps
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const result = await userLoginBiz.userLoginByMobile({
+ mobile, code, fps
+ });
+
+ response.cookie(LOGIN_TOKEN_KEY, result.data, {
+ maxAge: LOGIN_TOKEN_EXPIRE, httpOnly: true
+ });
+
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+})
+
+/**
+ * #controller post /api/web/user-login/login-by-email
+ * #desc 通过邮箱登录
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/login-by-email', async function(request, response) {
+ try {
+ const { email, password, fps } = request.body;
+ const { [LOGIN_TOKEN_KEY]: token } = request.cookies;
+
+ if(token){
+ const loginResult = await userLoginStateBiz.userIsLogin({
+ token
+ });
+ if(loginResult.success){
+ return response.json(loginResult)
+ }
+ }
+
+ if (!checkRequestParams({
+ email, password, fps
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const result = await userLoginBiz.userLoginByEmail({
+ email, password, fps
+ });
+
+ response.cookie(LOGIN_TOKEN_KEY, result.data, {
+ maxAge: LOGIN_TOKEN_EXPIRE, httpOnly: true
+ });
+
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+});
+
+/**
+ * #controller post /api/web/user-login/login-by-code
+ * #desc 游客登录
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/login-by-guest', async function(request, response) {
+ try {
+ const { code } = request.body;
+ const { [LOGIN_TOKEN_KEY]: token } = request.cookies;
+
+ if(token){
+ const loginResult = await userLoginStateBiz.userIsLogin({
+ token
+ });
+ if(loginResult.success){
+ return response.json(loginResult)
+ }
+ }
+
+ if (!checkRequestParams({
+ code
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const result = await userLoginBiz.userLoginByGuest({
+ code
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+});
+
+/**
+ * #controller post /api/web/user-login/login-by-wechat
+ * #desc 微信登录
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/login-by-wechat', async function(request, response) {
+ try {
+ const { openId, code } = request.body;
+ const { [LOGIN_TOKEN_KEY]: token } = request.cookies;
+
+ if(token){
+ const loginResult = await userLoginStateBiz.userIsLogin({
+ token
+ });
+ if(loginResult.success){
+ return response.json(loginResult)
+ }
+ }
+
+ if (!checkRequestParams({
+ openId, code
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const result = await userLoginBiz.userLoginByWechat({
+ openId, code
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+});
+
+/**
+ * #controller post /api/web/user-login/login-by-qq
+ * #desc QQ登录
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/login-by-qq', async function(request, response) {
+ try {
+ const { openId, code } = request.body;
+ const { [LOGIN_TOKEN_KEY]: token } = request.cookies;
+
+ if(token){
+ const loginResult = await userLoginStateBiz.userIsLogin({
+ token
+ });
+ if(loginResult.success){
+ return response.json(loginResult)
+ }
+ }
+
+ if (!checkRequestParams({
+ openId, code
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const result = await userLoginBiz.userLoginByQQ({
+ openId, code
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+});
+
+/**
+ * #controller post /api/web/user-login/login-by-qy-wechat
+ * #desc 企业微信登录
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/login-by-qy-wechat', async function(request, response) {
+ try {
+ const { openId, code } = request.body;
+ const { [LOGIN_TOKEN_KEY]: token } = request.cookies;
+
+ if(token){
+ const loginResult = await userLoginStateBiz.userIsLogin({
+ token
+ });
+ if(loginResult.success){
+ return response.json(loginResult)
+ }
+ }
+
+ if (!checkRequestParams({
+ openId, code
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const result = await userLoginBiz.userLoginByQyWechat({
+ openId, code
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+});
+
+
+/**
+ * #controller post /api/web/user-login/login-by-fp
+ * #desc 通过指纹一键登录
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/login-by-fp', async function(request, response) {
+ try {
+ const { username, fps} = request.body;
+ const { [LOGIN_TOKEN_KEY]: token } = request.cookies;
+
+ if(token){
+ const loginResult = await userLoginStateBiz.userIsLogin({
+ token
+ });
+ if(loginResult.success){
+ return response.json(loginResult)
+ }
+ }
+
+ if (!checkRequestParams({
+ username, fps
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const result = await userLoginBiz.userLoginByFingerPrint({
+ username, fps
+ });
+
+ response.cookie(LOGIN_TOKEN_KEY, result.data, {
+ maxAge: LOGIN_TOKEN_EXPIRE, httpOnly: true
+ });
+
+ response.json(result);
+
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+});
+
+
+/**
+ * #controller get /api/web/user-login/website-login-state
+ * #desc 获取官网登录状态
+ * @param {*} request
+ * @param {*} response
+ */
+router.get('/website-login-state', async function(request, response) {
+ try {
+ const { [WEBSITE_LOGIN_TOKEN_KEY]: token } = request.cookies;
+ const result = await userLoginStateBiz.userIsLogin({
+ token
+ });
+
+ if(!result.success){
+ return response.json(result)
+ }
+
+ const data = {
+ loginUserId: result.data.loginUserId,
+ loginUserEmail: result.data.loginUserEmail,
+ loginUsername: result.data.loginUsername,
+ loginUserAvatar: result.data.loginUserAvatar,
+ loginTime: result.data.loginTime,
+ token: result.data.token,
+ }
+ response.json(tlResponseSuccess("在线", data));
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+});
+
+
+/**
+ * #controller post /api/web/user-login/login-by-website
+ * #desc 官网登录
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/login-by-website', async function(request, response) {
+ try {
+ const { name, email, password } = request.body;
+ const { [WEBSITE_LOGIN_TOKEN_KEY]: token } = request.cookies;
+
+ if(token){
+ const loginResult = await userLoginStateBiz.userIsLogin({
+ token
+ });
+ if(loginResult.success){
+ return response.json(loginResult)
+ }
+ }
+
+ if (!checkRequestParams({
+ name, email, password
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const result = await userLoginBiz.userLoginByWebsite({
+ name, email, password
+ });
+
+ response.cookie(WEBSITE_LOGIN_TOKEN_KEY, result.data, {
+ maxAge: WEBSITE_LOGIN_TOKEN_EXPIRE, httpOnly: true
+ });
+
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+});
+
+module.exports = router
\ No newline at end of file
diff --git a/src/controller/web/user/user_logout_controller.js b/src/controller/web/user/user_logout_controller.js
new file mode 100644
index 0000000..d119030
--- /dev/null
+++ b/src/controller/web/user/user_logout_controller.js
@@ -0,0 +1,65 @@
+const {
+ tlConsole, tlResponseSvrError, tlConsoleError
+} = require("../../../utils/utils");
+const express = require('express');
+const router = express.Router();
+const userLogoutBiz = require('../../../biz/user/user_logout_biz');
+const {
+ LOGIN : {
+ LOGIN_TOKEN_KEY,
+
+ WEBSITE_LOGIN_TOKEN_KEY
+ }
+} = require('../../../utils/constant');
+
+
+
+
+/**
+ * #controller get /api/web/user-logout/logout
+ * #desc 退出登录
+ * @param {*} request
+ * @param {*} response
+ */
+router.get('/logout', async function(request, response) {
+ try {
+ const { [LOGIN_TOKEN_KEY]: token } = request.cookies;
+ const result = await userLogoutBiz.userLogout({
+ token
+ });
+
+ response.clearCookie(LOGIN_TOKEN_KEY);
+
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+});
+
+
+/**
+ * #controller get /api/web/user-logout/website-logout
+ * #desc 退出登录
+ * @param {*} request
+ * @param {*} response
+ */
+router.get('/website-logout', async function(request, response) {
+ try {
+ const { [WEBSITE_LOGIN_TOKEN_KEY]: token } = request.cookies;
+ const result = await userLogoutBiz.userLogout({
+ token
+ });
+
+ response.clearCookie(WEBSITE_LOGIN_TOKEN_KEY);
+
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+});
+
+
+
+module.exports = router
\ No newline at end of file
diff --git a/src/controller/web/user/user_read_controller.js b/src/controller/web/user/user_read_controller.js
new file mode 100644
index 0000000..a8bad87
--- /dev/null
+++ b/src/controller/web/user/user_read_controller.js
@@ -0,0 +1,209 @@
+const {
+ tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams
+} = require("../../../utils/utils");
+const express = require('express');
+const router = express.Router();
+const userReadBiz = require('../../../biz/user/user_read_biz');
+
+
+/**
+ * #controller post /api/web/user-read/update-channel-mutil-read
+ * #desc 更新频道文件/媒体/聊天消息已读记录
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/update-channel-mutil-read', async function(request, response) {
+ try {
+ const {
+ channelId, latestChatReadId, latestMediaReadId, latestFileReadId
+ } = request.body;
+
+ if (!checkRequestParams({
+ channelId, latestChatReadId, latestMediaReadId, latestFileReadId
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await userReadBiz.updateChannelMuiltRead({
+ loginInfo, channelId, latestChatReadId, latestMediaReadId, latestFileReadId
+ })
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+})
+
+/**
+ * #controller post /api/web/user-read/update-channel-chat-read
+ * #desc 更新频道聊天消息已读记录
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/update-channel-chat-read', async function(request, response) {
+ try {
+ const { channelId, latestReadId } = request.body;
+
+ if (!checkRequestParams({
+ channelId, latestReadId
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await userReadBiz.updateChannelChatRead({
+ loginInfo, channelId, latestReadId
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+});
+
+/**
+ * #controller post /api/web/user-read/update-channel-media-read
+ * #desc 更新频道媒体消息已读记录
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/update-channel-media-read', async function(request, response) {
+ try {
+ const { channelId, latestReadId } = request.body;
+
+ if (!checkRequestParams({
+ channelId, latestReadId
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await userReadBiz.updateChannelMediaRead({
+ loginInfo, channelId, latestReadId
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+})
+
+/**
+ * #controller post /api/web/user-read/update-channel-file-read
+ * #desc 更新频道文件消息已读记录
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/update-channel-file-read', async function(request, response) {
+ try {
+ const { channelId, latestReadId } = request.body;
+
+ if (!checkRequestParams({
+ channelId, latestReadId
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await userReadBiz.updateChannelFileRead({
+ loginInfo, channelId, latestReadId
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+})
+
+/**
+ * #controller post /api/web/user-read/update-user-friend-apply-read
+ * #desc 新增申请消息已读记录
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/update-user-friend-apply-read', async function(request, response) {
+ try {
+ const { recordId } = request.body;
+
+ if (!checkRequestParams({
+ recordId
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await userReadBiz.addUserFriendApplyRead({
+ loginInfo, recordId
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+})
+
+
+/**
+ * #controller post /api/web/user-read/update-user-friend-apply-pass-read
+ * #desc 新增通过申请消息已读记录
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/update-user-friend-apply-pass-read', async function(request, response) {
+ try {
+ const { recordId } = request.body;
+
+ if (!checkRequestParams({
+ recordId
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await userReadBiz.addUserFriendApplyPassRead({
+ loginInfo, recordId
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+})
+
+/**
+ * #controller post /api/web/user-read/update-user-friend-apply-reject-read
+ * #desc 新增拒绝申请消息已读记录
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/update-user-friend-apply-reject-read', async function(request, response) {
+ try {
+ const { applyId } = request.body;
+
+ if (!checkRequestParams({
+ applyId
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await userReadBiz.addUserFriendApplyRejectRead({
+ loginInfo, applyId
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError())
+ }
+})
+
+
+module.exports = router;
\ No newline at end of file
diff --git a/src/controller/web/user/user_register_controller.js b/src/controller/web/user/user_register_controller.js
new file mode 100644
index 0000000..c487222
--- /dev/null
+++ b/src/controller/web/user/user_register_controller.js
@@ -0,0 +1,192 @@
+const {
+ tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams
+} = require("../../../utils/utils");
+const express = require('express');
+const router = express.Router();
+const bizUserRegister = require('../../../biz/user/user_register_biz');
+const bizUserLoginState = require('../../../biz/user/user_login_state_biz');
+const {
+ LOGIN : {
+ LOGIN_TOKEN_KEY
+ }
+} = require('../../../utils/constant');
+
+
+/**
+ * #controller post /api/web/user-register/register-by-account
+ * #desc 通过账号注册
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/register-by-account', async function(request, response) {
+ try {
+ const { account, password, invite_code } = request.body;
+ const { [LOGIN_TOKEN_KEY]: token } = request.cookies;
+
+ if(token){
+ const loginResult = await bizUserLoginState.userIsLogin({
+ token
+ });
+ if(loginResult.success){
+ return response.json(loginResult)
+ }
+ }
+
+ if (!checkRequestParams({
+ account, password, invite_code
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const result = await bizUserRegister.userRegisterByAccount({
+ account, password, invite_code
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+/**
+ * #controller post /api/web/user-register/register-by-mobile
+ * #desc 通过手机号注册
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/register-by-mobile', async function(request, response) {
+ try {
+ const { mobile, code, invite_code } = request.body;
+ const { [LOGIN_TOKEN_KEY]: token } = request.cookies;
+
+ if(token){
+ const loginResult = await bizUserLoginState.userIsLogin({
+ token
+ });
+ if(loginResult.success){
+ return response.json(loginResult)
+ }
+ }
+
+ if (!checkRequestParams({
+ mobile, code, invite_code
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const result = await bizUserRegister.userRegisterByMobile({
+ mobile, code, invite_code
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+/**
+ * #controller post /api/web/user-register/register-by-email
+ * #desc 通过邮箱注册
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/register-by-email', async function(request, response) {
+ try {
+ const { email, code, invite_code, password } = request.body;
+ const { [LOGIN_TOKEN_KEY]: token } = request.cookies;
+
+ if(token){
+ const loginResult = await bizUserLoginState.userIsLogin({
+ token
+ });
+ if(loginResult.success){
+ return response.json(loginResult)
+ }
+ }
+
+ if (!checkRequestParams({
+ email, code, invite_code, password
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const result = await bizUserRegister.userRegisterByEmail({
+ email, code, invite_code, password
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+/**
+ * #controller post /api/web/user-register/get-email-code
+ * #desc 获取邮箱验证码
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/get-email-code', async function(request, response) {
+ try {
+ const { email } = request.body;
+
+ if (!checkRequestParams({
+ email
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const result = await bizUserRegister.getEmailCode({
+ email
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+/**
+ * #controller post /api/web/user-register/register-website-user
+ * #desc 注册官网用户
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/register-website-user', async function(request, response) {
+ try {
+ const { code, email, password } = request.body;
+ const { [LOGIN_TOKEN_KEY]: token } = request.cookies;
+
+ if(token){
+ const loginResult = await bizUserLoginState.userIsLogin({
+ token
+ });
+
+ if(loginResult.success){
+ return response.json(loginResult)
+ }
+ }
+
+ if (!checkRequestParams({
+ code, email, password
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const result = await bizUserRegister.registerWebsiteUser({
+ code, email, password
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+module.exports = router
\ No newline at end of file
diff --git a/src/controller/web/user/user_tag_controller.js b/src/controller/web/user/user_tag_controller.js
new file mode 100644
index 0000000..e17b284
--- /dev/null
+++ b/src/controller/web/user/user_tag_controller.js
@@ -0,0 +1,180 @@
+const {
+ tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams
+} = require("../../../utils/utils");
+const express = require('express');
+const router = express.Router();
+const userTagBiz = require('../../../biz/user/user_tag_biz');
+
+
+/**
+ * #controller post /api/web/user-tag/add-channel-tag
+ * #desc 添加频道标签
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/add-channel-tag', async function(request, response) {
+ try {
+ const { name } = request.body;
+
+ if (!checkRequestParams({
+ name
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await userTagBiz.addChannelTag({
+ loginInfo, name
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+/**
+ * #controller post /api/web/user-tag/add-friend-tag
+ * #desc 添加好友标签
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/add-friend-tag', async function(request, response) {
+ try {
+ const { name } = request.body;
+
+ if (!checkRequestParams({
+ name
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await userTagBiz.addFriendTag({
+ loginInfo, name
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+/**
+ * #controller post /api/web/user-tag/add-cloud-tag
+ * #desc 添加云资源库标签
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/add-cloud-tag', async function(request, response) {
+ try {
+ const { name } = request.body;
+
+ if (!checkRequestParams({
+ name
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await userTagBiz.addCloudTag({
+ loginInfo, name
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+/**
+ * #controller post /api/web/user-tag/get-channel-tag-list
+ * #desc 获取频道标签列表
+ * @param {*} request
+ * @param {*} response
+ */
+router.get('/get-channel-tag-list', async function(request, response) {
+ try {
+ const loginInfo = request.ctx || {}
+ const result = await userTagBiz.getChannelTagList({
+ loginInfo
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+/**
+ * #controller post /api/web/user-tag/get-friend-tag-list
+ * #desc 获取好友标签列表
+ * @param {*} request
+ * @param {*} response
+ */
+router.get('/get-friend-tag-list', async function(request, response) {
+ try {
+ const loginInfo = request.ctx || {}
+ const result = await userTagBiz.getFriendTagList({
+ loginInfo
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+/**
+ * #controller post /api/web/user-tag/get-cloud-tag-list
+ * #desc 获取云资源库标签列表
+ * @param {*} request
+ * @param {*} response
+ */
+router.get('/get-cloud-tag-list', async function(request, response) {
+ try {
+ const loginInfo = request.ctx || {}
+ const result = await userTagBiz.getCloudTagList({
+ loginInfo
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+/**
+ * #controller post /api/web/user-tag/delete-tag
+ * #desc 删除标签
+ * @param {*} request
+ * @param {*} response
+ */
+router.post('/delete-tag', async function(request, response) {
+ try {
+ const { id } = request.body;
+
+ if (!checkRequestParams({
+ id
+ })) {
+ response.json(tlResponseArgsError("请求参数非法"));
+ return;
+ }
+
+ const loginInfo = request.ctx || {}
+ const result = await userTagBiz.delUserTag({
+ loginInfo, id
+ });
+ response.json(result);
+ } catch (error) {
+ tlConsoleError(error)
+ response.json(tlResponseSvrError());
+ }
+});
+
+
+
+module.exports = router;
\ No newline at end of file
diff --git a/src/controller/web/web.js b/src/controller/web/web.js
new file mode 100644
index 0000000..c23f7e3
--- /dev/null
+++ b/src/controller/web/web.js
@@ -0,0 +1,44 @@
+// Autor: iamtsm
+// web包含的controller定义
+// Date: 2024-01-13
+
+// 配置
+const configInit = require('./config/init_controller')
+
+// 企业
+const company = require('./company/company_controller')
+
+// 用户
+const userLogin = require('./user/user_login_controller')
+const userRegister = require('./user/user_register_controller')
+const userLogout = require('./user/user_logout_controller')
+const userFriend = require('./user/user_friend_controller')
+const user = require('./user/user_controller')
+const userApply = require('./user/user_apply_controller')
+const userRead = require('./user/user_read_controller')
+const userConfig = require('./user/user_config_controller')
+const userTag = require('./user/user_tag_controller')
+
+// 频道
+const channel = require('./channel/channel_controller')
+const channelChat = require('./channel/channel_chat_controller')
+const channelUser = require('./channel/channel_user_controller')
+
+
+module.exports = {
+ "config" : configInit,
+ "company" : company,
+
+ "user" : user,
+ "user-login" : userLogin,
+ "user-logout" : userLogout,
+ "user-register" : userRegister,
+ "user-friend" : userFriend,
+ "user-apply" : userApply,
+ "user-read" : userRead,
+ "user-config" : userConfig,
+ "user-tag" : userTag,
+ "channel" : channel,
+ "channel-chat" : channelChat,
+ "channel-user" : channelUser,
+}
diff --git a/src/dao/tl_channel_chat_dao.js b/src/dao/tl_channel_chat_dao.js
new file mode 100644
index 0000000..a0ada9a
--- /dev/null
+++ b/src/dao/tl_channel_chat_dao.js
@@ -0,0 +1,232 @@
+const { DataTypes, where } = require('sequelize');
+const { dbClient } = require('../tables/db')
+const { model, fields } = require('../tables/tl_channel_chat')
+const Table = model(dbClient, DataTypes).TlChannelChat
+const TableName = fields.Name
+const TableFields = Object.keys(fields.Def).map(key => fields.Def[key])
+const { tlConsoleError, tlConsole, checkRawFieldType } = require("../../src/utils/utils");
+
+/**
+ * addInfo 接口
+ * @param {*} data
+ */
+const addInfo = async function(data){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+
+ const info = await Table.create(data)
+
+ tlConsole(TableName, data, info)
+
+ return info
+}
+
+/**
+ * addList 接口
+ * @param {*} dataList
+ */
+const addList = async function(dataList){
+ if(dataList.length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ for(let data of dataList){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+ }
+
+ const list = await Table.bulkCreate(dataList)
+
+ tlConsole(TableName, dataList, list)
+
+ return list
+}
+
+
+/**
+ * getInfo 接口
+ * @param {*} params
+ * @param {*} fields
+ */
+const getInfo = async function(params, fields = TableFields){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ const info = await Table.findOne({
+ where: params,
+ attributes: fields
+ })
+
+ return info
+}
+
+/**
+ * getList 接口
+ * @param {*} params
+ * @param {*} fields
+ * @param {*} order
+ */
+const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const list = await Table.findAll({
+ where : params,
+ attributes: fields,
+ order: order
+ })
+
+ return list
+}
+
+/**
+ * getListForPage 接口
+ * @param {*} params
+ * @param {*} fields
+ * @param {*} order
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const list = await Table.findAll({
+ where : params,
+ attributes: fields,
+ order: order,
+ limit: pageSize,
+ offset: (page - 1) * pageSize
+ })
+
+ return list
+}
+
+/**
+ * updateInfo 接口
+ * @param {*} params
+ * @param {*} data
+ */
+const updateInfo = async function(params, data){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+
+ const info = await Table.update(data, {
+ where: params
+ })
+
+ tlConsole(TableName, params, data, info)
+
+ return info
+}
+
+
+/**
+ * deleteInfo 接口
+ * @param {*} params
+ */
+const deleteInfo = async function(params){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ const info = await Table.destroy({
+ where: params
+ })
+
+ tlConsole(TableName, params, info)
+
+ return info
+}
+
+/**
+ * getCount 接口
+ * @param {*} params
+ */
+const getCount = async function(params){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const count = await Table.count({
+ where : params
+ })
+
+ return count
+}
+
+/**
+ * getGroupCount 接口
+ * @param {*} params
+ * @param {*} group
+ */
+const getGroupCount = async function(params, group){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ if(Object.keys(group).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const count = await Table.count({
+ where : params,
+ attributes: [group],
+ group: group,
+ })
+
+ return count
+}
+
+
+
+module.exports = {
+ addInfo, addList,
+ getInfo, getList, getListForPage,
+ updateInfo,
+ deleteInfo,
+ getCount,
+ getGroupCount
+}
\ No newline at end of file
diff --git a/src/dao/tl_channel_dao.js b/src/dao/tl_channel_dao.js
new file mode 100644
index 0000000..d81e179
--- /dev/null
+++ b/src/dao/tl_channel_dao.js
@@ -0,0 +1,205 @@
+const { DataTypes, where, or } = require('sequelize');
+const { dbClient } = require('../tables/db')
+const { model, fields } = require('../tables/tl_channel')
+const Table = model(dbClient, DataTypes).TlChannel
+const TableName = fields.Name
+const TableFields = Object.keys(fields.Def).map(key => fields.Def[key])
+const { tlConsoleError, tlConsole, checkRawFieldType} = require("../../src/utils/utils");
+
+/**
+ * addInfo 接口
+ * @param {*} data
+ */
+const addInfo = async function(data){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+
+ const info = await Table.create(data)
+
+ tlConsole(TableName, data, info)
+
+ return info
+}
+
+/**
+ * addList 接口
+ * @param {*} dataList
+ */
+const addList = async function(dataList){
+ if(dataList.length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ for(let data of dataList){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+ }
+
+ const list = await Table.bulkCreate(dataList)
+
+ tlConsole(TableName, dataList, list)
+
+ return list
+}
+
+
+/**
+ * getInfo 接口
+ * @param {*} params
+ * @param {*} fields
+ */
+const getInfo = async function(params, fields = TableFields){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ const info = await Table.findOne({
+ where: params,
+ attributes: fields
+ })
+
+ return info
+}
+
+/**
+ * getList 接口
+ * @param {*} params
+ * @param {*} fields
+ * @param {*} order
+ */
+const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const list = await Table.findAll({
+ where : params,
+ attributes: fields,
+ order: order
+ })
+
+ return list
+}
+
+/**
+ * getListForPage 接口
+ * @param {*} params
+ * @param {*} fields
+ * @param {*} order
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const list = await Table.findAll({
+ where : params,
+ attributes: fields,
+ order: order,
+ limit: pageSize,
+ offset: (page - 1) * pageSize
+ })
+
+ return list
+}
+
+/**
+ * updateInfo 接口
+ * @param {*} params
+ * @param {*} data
+ */
+const updateInfo = async function(params, data){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+
+ const info = await Table.update(data, {
+ where: params
+ })
+
+ tlConsole(TableName, params, data, info)
+
+ return info
+}
+
+
+/**
+ * deleteInfo 接口
+ * @param {*} params
+ */
+const deleteInfo = async function(params){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ const info = await Table.destroy({
+ where: params
+ })
+
+ tlConsole(TableName, params, info)
+
+ return info
+}
+
+/**
+ * getCount 接口
+ * @param {*} params
+ */
+const getCount = async function(params){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const count = await Table.count({
+ where : params
+ })
+
+ return count
+}
+
+
+module.exports = {
+ addInfo, addList,
+ getInfo, getList, getListForPage,
+ updateInfo,
+ deleteInfo,
+ getCount,
+}
\ No newline at end of file
diff --git a/src/dao/tl_channel_user_dao.js b/src/dao/tl_channel_user_dao.js
new file mode 100644
index 0000000..f6fa134
--- /dev/null
+++ b/src/dao/tl_channel_user_dao.js
@@ -0,0 +1,234 @@
+const { DataTypes, Sequelize } = require('sequelize');
+const { dbClient } = require('../tables/db')
+const { model, fields } = require('../tables/tl_channel_user')
+const Table = model(dbClient, DataTypes).TlChannelUser
+const TableName = fields.Name
+const TableFields = Object.keys(fields.Def).map(key => fields.Def[key])
+const { tlConsoleError, tlConsole, checkRawFieldType } = require("../../src/utils/utils");
+
+
+/**
+ * addInfo 接口
+ * @param {*} data
+ */
+const addInfo = async function(data){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+
+ const info = await Table.create(data)
+
+ tlConsole(TableName, data, info)
+
+ return info
+}
+
+/**
+ * addList 接口
+ * @param {*} dataList
+ */
+const addList = async function(dataList){
+ if(dataList.length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ for(let data of dataList){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+ }
+
+ const list = await Table.bulkCreate(dataList)
+
+ tlConsole(TableName, JSON.stringify(dataList), list)
+
+ return list
+}
+
+
+/**
+ * getInfo 接口
+ * @param {*} params
+ * @param {*} fields
+ */
+const getInfo = async function(params, fields = TableFields){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ const info = await Table.findOne({
+ where: params,
+ attributes: fields
+ })
+
+ return info
+}
+
+/**
+ * getList 接口
+ * @param {*} params
+ * @param {*} fields
+ * @param {*} order
+ */
+const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){
+
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const list = await Table.findAll({
+ where : params,
+ attributes: fields,
+ order: order
+ })
+
+ return list
+}
+
+/**
+ * getListForPage 接口
+ * @param {*} params
+ * @param {*} fields
+ * @param {*} order
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){
+
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const list = await Table.findAll({
+ where : params,
+ attributes: fields,
+ order: order,
+ limit: pageSize,
+ offset: (page - 1) * pageSize
+ })
+
+ return list
+}
+
+/**
+ * getCount 接口
+ * @param {*} params
+ */
+const getCount = async function(params){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const count = await Table.count({
+ where : params
+ })
+
+ return count
+}
+
+/**
+ * getGroupCount 接口
+ * @param {*} params
+ * @param {*} group
+ */
+const getGroupCount = async function(params, group){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ if(Object.keys(group).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const count = await Table.count({
+ where : params,
+ attributes: [group],
+ group: group,
+ })
+
+ return count
+}
+
+/**
+ * updateInfo 接口
+ * @param {*} params
+ * @param {*} data
+ */
+const updateInfo = async function(params, data){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+
+ const info = await Table.update(data, {
+ where: params
+ })
+
+ tlConsole(TableName, params, data, info)
+
+ return info
+}
+
+
+/**
+ * deleteInfo 接口
+ * @param {*} params
+ */
+const deleteInfo = async function(params){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ const info = await Table.destroy({
+ where: params
+ })
+
+ tlConsole(TableName, params, info)
+
+ return info
+}
+
+
+module.exports = {
+ addInfo, addList,
+ getInfo, getList, getListForPage,
+ updateInfo,
+ deleteInfo,
+ getCount, getGroupCount,
+}
\ No newline at end of file
diff --git a/src/dao/tl_company_dao.js b/src/dao/tl_company_dao.js
new file mode 100644
index 0000000..0ee6c6b
--- /dev/null
+++ b/src/dao/tl_company_dao.js
@@ -0,0 +1,205 @@
+const { DataTypes, where } = require('sequelize');
+const { dbClient } = require('../tables/db')
+const { model, fields } = require('../tables/tl_company')
+const Table = model(dbClient, DataTypes).TlCompany
+const TableName = fields.Name
+const TableFields = Object.keys(fields.Def).map(key => fields.Def[key])
+const { tlConsoleError, tlConsole, checkRawFieldType } = require("../../src/utils/utils");
+
+/**
+ * addInfo 接口
+ * @param {*} data
+ */
+const addInfo = async function(data){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+
+ const info = await Table.create(data)
+
+ tlConsole(TableName, data, info)
+
+ return info
+}
+
+/**
+ * addList 接口
+ * @param {*} dataList
+ */
+const addList = async function(dataList){
+ if(dataList.length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ for(let data of dataList){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+ }
+
+ const list = await Table.bulkCreate(dataList)
+
+ tlConsole(TableName, dataList, list)
+
+ return list
+}
+
+
+/**
+ * getInfo 接口
+ * @param {*} params
+ * @param {*} fields
+ */
+const getInfo = async function(params, fields = TableFields){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ const info = await Table.findOne({
+ where: params,
+ attributes: fields
+ })
+
+ return info
+}
+
+/**
+ * getList 接口
+ * @param {*} params
+ * @param {*} fields
+ * @param {*} order
+ */
+const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const list = await Table.findAll({
+ where : params,
+ attributes: fields,
+ order: order
+ })
+
+ return list
+}
+
+/**
+ * getListForPage 接口
+ * @param {*} params
+ * @param {*} fields
+ * @param {*} order
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const list = await Table.findAll({
+ where : params,
+ attributes: fields,
+ order: order,
+ offset: (page - 1) * pageSize,
+ limit: pageSize
+ })
+
+ return list
+}
+
+/**
+ * updateInfo 接口
+ * @param {*} params
+ * @param {*} data
+ */
+const updateInfo = async function(params, data){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+
+ const info = await Table.update(data, {
+ where: params
+ })
+
+ tlConsole(TableName, params, data, info)
+
+ return info
+}
+
+
+/**
+ * deleteInfo 接口
+ * @param {*} params
+ */
+const deleteInfo = async function(params){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ const info = await Table.destroy({
+ where: params
+ })
+
+ tlConsole(TableName, params, info)
+
+ return info
+}
+
+/**
+ * getCount 接口
+ * @param {*} params
+ */
+const getCount = async function(params){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const count = await Table.count({
+ where : params
+ })
+
+ return count
+}
+
+module.exports = {
+ addInfo, addList,
+ getInfo, getList, getListForPage,
+ updateInfo,
+ deleteInfo,
+ getCount,
+}
\ No newline at end of file
diff --git a/src/dao/tl_role_dao.js b/src/dao/tl_role_dao.js
new file mode 100644
index 0000000..87bf115
--- /dev/null
+++ b/src/dao/tl_role_dao.js
@@ -0,0 +1,206 @@
+const { DataTypes, where } = require('sequelize');
+const { dbClient } = require('../tables/db')
+const { model, fields } = require('../tables/tl_role')
+const Table = model(dbClient, DataTypes).TlRole
+const TableName = fields.Name
+const TableFields = Object.keys(fields.Def).map(key => fields.Def[key])
+const { tlConsoleError, tlConsole, checkRawFieldType } = require("../../src/utils/utils");
+
+/**
+ * addInfo 接口
+ * @param {*} data
+ */
+const addInfo = async function(data){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+
+ const info = await Table.create(data)
+
+ tlConsole(TableName, data, info)
+
+ return info
+}
+
+/**
+ * addList 接口
+ * @param {*} dataList
+ */
+const addList = async function(dataList){
+ if(dataList.length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ for(let data of dataList){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+ }
+
+ const list = await Table.bulkCreate(dataList)
+
+ tlConsole(TableName, dataList, list)
+
+ return list
+}
+
+
+/**
+ * getInfo 接口
+ * @param {*} params
+ * @param {*} fields
+ */
+const getInfo = async function(params, fields = TableFields){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ const info = await Table.findOne({
+ where: params,
+ attributes: fields
+ })
+
+ return info
+}
+
+/**
+ * getList 接口
+ * @param {*} params
+ * @param {*} fields
+ * @param {*} order
+ */
+const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const list = await Table.findAll({
+ where : params,
+ attributes: fields,
+ order: order
+ })
+
+ return list
+}
+
+/**
+ * getListForPage 接口
+ * @param {*} params
+ * @param {*} fields
+ * @param {*} order
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const list = await Table.findAll({
+ where : params,
+ attributes: fields,
+ order: order,
+ limit: pageSize,
+ offset: (page - 1) * pageSize
+ })
+
+ return list
+}
+
+/**
+ * updateInfo 接口
+ * @param {*} params
+ * @param {*} data
+ */
+const updateInfo = async function(params, data){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+
+ const info = await Table.update(data, {
+ where: params
+ })
+
+ tlConsole(TableName, params, data, info)
+
+ return info
+}
+
+
+/**
+ * deleteInfo 接口
+ * @param {*} params
+ */
+const deleteInfo = async function(params){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ const info = await Table.destroy({
+ where: params
+ })
+
+ tlConsole(TableName, params, info)
+
+ return info
+}
+
+/**
+ * getCount 接口
+ * @param {*} params
+ */
+const getCount = async function(params){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const count = await Table.count({
+ where : params
+ })
+
+ return count
+}
+
+
+module.exports = {
+ addInfo, addList,
+ getInfo, getList, getListForPage,
+ updateInfo,
+ deleteInfo,
+ getCount,
+}
\ No newline at end of file
diff --git a/src/dao/tl_user_apply_dao.js b/src/dao/tl_user_apply_dao.js
new file mode 100644
index 0000000..ad693c4
--- /dev/null
+++ b/src/dao/tl_user_apply_dao.js
@@ -0,0 +1,206 @@
+const { DataTypes, where } = require('sequelize');
+const { dbClient } = require('../tables/db')
+const { model, fields } = require('../tables/tl_user_apply')
+const Table = model(dbClient, DataTypes).TlUserApply
+const TableName = fields.Name
+const TableFields = Object.keys(fields.Def).map(key => fields.Def[key])
+const { tlConsoleError, tlConsole, checkRawFieldType } = require("../../src/utils/utils");
+
+/**
+ * addInfo 接口
+ * @param {*} data
+ */
+const addInfo = async function(data){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+
+ const info = await Table.create(data)
+
+ tlConsole(TableName, data, info)
+
+ return info
+}
+
+/**
+ * addList 接口
+ * @param {*} dataList
+ */
+const addList = async function(dataList){
+ if(dataList.length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ for(let data of dataList){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+ }
+
+ const list = await Table.bulkCreate(dataList)
+
+ tlConsole(TableName, dataList, list)
+
+ return list
+}
+
+
+/**
+ * getInfo 接口
+ * @param {*} params
+ * @param {*} fields
+ */
+const getInfo = async function(params, fields = TableFields){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ const info = await Table.findOne({
+ where: params,
+ attributes: fields
+ })
+
+ return info
+}
+
+/**
+ * getList 接口
+ * @param {*} params
+ * @param {*} fields
+ * @param {*} order
+ */
+const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const list = await Table.findAll({
+ where : params,
+ attributes: fields,
+ order: order,
+ })
+
+ return list
+}
+
+/**
+ * getListForPage 接口
+ * @param {*} params
+ * @param {*} fields
+ * @param {*} order
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const list = await Table.findAll({
+ where : params,
+ attributes: fields,
+ order: order,
+ limit: pageSize,
+ offset: (page - 1) * pageSize
+ })
+
+ return list
+}
+
+/**
+ * updateInfo 接口
+ * @param {*} params
+ * @param {*} data
+ */
+const updateInfo = async function(params, data){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+
+ const info = await Table.update(data, {
+ where: params
+ })
+
+ tlConsole(TableName, params, data, info)
+
+ return info
+}
+
+
+/**
+ * deleteInfo 接口
+ * @param {*} params
+ */
+const deleteInfo = async function(params){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ const info = await Table.destroy({
+ where: params
+ })
+
+ tlConsole(TableName, params, info)
+
+ return info
+}
+
+/**
+ * getCount 接口
+ * @param {*} params
+ */
+const getCount = async function(params){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const count = await Table.count({
+ where : params
+ })
+
+ return count
+}
+
+
+module.exports = {
+ addInfo, addList,
+ getInfo, getList, getListForPage,
+ updateInfo,
+ deleteInfo,
+ getCount,
+}
\ No newline at end of file
diff --git a/src/dao/tl_user_auth_dao.js b/src/dao/tl_user_auth_dao.js
new file mode 100644
index 0000000..551f237
--- /dev/null
+++ b/src/dao/tl_user_auth_dao.js
@@ -0,0 +1,206 @@
+const { DataTypes, where } = require('sequelize');
+const { dbClient } = require('../tables/db')
+const { model, fields } = require('../tables/tl_user_auth')
+const Table = model(dbClient, DataTypes).TlUserAuth
+const TableName = fields.Name
+const TableFields = Object.keys(fields.Def).map(key => fields.Def[key])
+const { tlConsoleError, tlConsole, checkRawFieldType } = require("../utils/utils");
+
+/**
+ * addInfo 接口
+ * @param {*} data
+ */
+const addInfo = async function(data){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+
+ const info = await Table.create(data)
+
+ tlConsole(TableName, data, info)
+
+ return info
+}
+
+/**
+ * addList 接口
+ * @param {*} dataList
+ */
+const addList = async function(dataList){
+ if(dataList.length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ for(let data of dataList){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+ }
+
+ const list = await Table.bulkCreate(dataList)
+
+ tlConsole(TableName, dataList, list)
+
+ return list
+}
+
+
+/**
+ * getInfo 接口
+ * @param {*} params
+ * @param {*} fields
+ */
+const getInfo = async function(params, fields = TableFields){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ const info = await Table.findOne({
+ where: params,
+ attributes: fields
+ })
+
+ return info
+}
+
+/**
+ * getList 接口
+ * @param {*} params
+ * @param {*} fields
+ * @param {*} order
+ */
+const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const list = await Table.findAll({
+ where : params,
+ attributes: fields,
+ order: order,
+ })
+
+ return list
+}
+
+/**
+ * getListForPage 接口
+ * @param {*} params
+ * @param {*} fields
+ * @param {*} order
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const list = await Table.findAll({
+ where : params,
+ attributes: fields,
+ order: order,
+ offset: (page - 1) * pageSize,
+ limit: pageSize
+ })
+
+ return list
+}
+
+/**
+ * updateInfo 接口
+ * @param {*} params
+ * @param {*} data
+ */
+const updateInfo = async function(params, data){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+
+ const info = await Table.update(data, {
+ where: params
+ })
+
+ tlConsole(TableName, params, data, info)
+
+ return info
+}
+
+
+/**
+ * deleteInfo 接口
+ * @param {*} params
+ */
+const deleteInfo = async function(params){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ const info = await Table.destroy({
+ where: params
+ })
+
+ tlConsole(TableName, params, info)
+
+ return info
+}
+
+/**
+ * getCount 接口
+ * @param {*} params
+ */
+const getCount = async function(params){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const count = await Table.count({
+ where : params
+ })
+
+ return count
+}
+
+
+module.exports = {
+ addInfo, addList,
+ getInfo, getList, getListForPage,
+ updateInfo,
+ deleteInfo,
+ getCount,
+}
\ No newline at end of file
diff --git a/src/dao/tl_user_config_dao.js b/src/dao/tl_user_config_dao.js
new file mode 100644
index 0000000..a7f433e
--- /dev/null
+++ b/src/dao/tl_user_config_dao.js
@@ -0,0 +1,206 @@
+const { DataTypes, where } = require('sequelize');
+const { dbClient } = require('../tables/db')
+const { model, fields } = require('../tables/tl_user_config')
+const Table = model(dbClient, DataTypes).TlUserConfig
+const TableName = fields.Name
+const TableFields = Object.keys(fields.Def).map(key => fields.Def[key])
+const { tlConsoleError, tlConsole, checkRawFieldType } = require("../../src/utils/utils");
+
+/**
+ * addInfo 接口
+ * @param {*} data
+ */
+const addInfo = async function(data){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+
+ const info = await Table.create(data)
+
+ tlConsole(TableName, data, info)
+
+ return info
+}
+
+/**
+ * addList 接口
+ * @param {*} dataList
+ */
+const addList = async function(dataList){
+ if(dataList.length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ for(let data of dataList){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+ }
+
+ const list = await Table.bulkCreate(dataList)
+
+ tlConsole(TableName, dataList, list)
+
+ return list
+}
+
+
+/**
+ * getInfo 接口
+ * @param {*} params
+ * @param {*} fields
+ */
+const getInfo = async function(params, fields = TableFields){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ const info = await Table.findOne({
+ where: params,
+ attributes: fields
+ })
+
+ return info
+}
+
+/**
+ * getList 接口
+ * @param {*} params
+ * @param {*} fields
+ * @param {*} order
+ */
+const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const list = await Table.findAll({
+ where : params,
+ attributes: fields,
+ order: order,
+ })
+
+ return list
+}
+
+/**
+ * getListForPage 接口
+ * @param {*} params
+ * @param {*} fields
+ * @param {*} order
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const list = await Table.findAll({
+ where : params,
+ attributes: fields,
+ order: order,
+ limit: pageSize,
+ offset: (page - 1) * pageSize
+ })
+
+ return list
+}
+
+/**
+ * updateInfo 接口
+ * @param {*} params
+ * @param {*} data
+ */
+const updateInfo = async function(params, data){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+
+ const info = await Table.update(data, {
+ where: params
+ })
+
+ tlConsole(TableName, params, data, info)
+
+ return info
+}
+
+
+/**
+ * deleteInfo 接口
+ * @param {*} params
+ */
+const deleteInfo = async function(params){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ const info = await Table.destroy({
+ where: params
+ })
+
+ tlConsole(TableName, params, info)
+
+ return info
+}
+
+/**
+ * getCount 接口
+ * @param {*} params
+ */
+const getCount = async function(params){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const count = await Table.count({
+ where : params
+ })
+
+ return count
+}
+
+
+module.exports = {
+ addInfo, addList,
+ getInfo, getList, getListForPage,
+ updateInfo,
+ deleteInfo,
+ getCount,
+}
\ No newline at end of file
diff --git a/src/dao/tl_user_dao.js b/src/dao/tl_user_dao.js
new file mode 100644
index 0000000..f6df9a6
--- /dev/null
+++ b/src/dao/tl_user_dao.js
@@ -0,0 +1,207 @@
+const { DataTypes, where } = require('sequelize');
+const { dbClient } = require('../tables/db')
+const { model, fields } = require('../tables/tl_user')
+const Table = model(dbClient, DataTypes).TlUser
+const TableName = fields.Name
+const TableFields = Object.keys(fields.Def).map(key => fields.Def[key])
+const { tlConsoleError, tlConsole, checkRawFieldType } = require("../../src/utils/utils");
+
+
+/**
+ * addInfo 接口
+ * @param {*} data
+ */
+const addInfo = async function(data){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+
+ const info = await Table.create(data)
+
+ tlConsole(TableName, data, info)
+
+ return info
+}
+
+/**
+ * addList 接口
+ * @param {*} dataList
+ */
+const addList = async function(dataList){
+ if(dataList.length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ for(let data of dataList){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+ }
+
+ const list = await Table.bulkCreate(dataList)
+
+ tlConsole(TableName, dataList, list)
+
+ return list
+}
+
+
+/**
+ * getInfo 接口
+ * @param {*} params
+ * @param {*} fields
+ */
+const getInfo = async function(params, fields = TableFields){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ const info = await Table.findOne({
+ where: params,
+ attributes: fields
+ })
+
+ return info
+}
+
+/**
+ * getList 接口
+ * @param {*} params
+ * @param {*} fields
+ * @param {*} order
+ */
+const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const list = await Table.findAll({
+ where : params,
+ attributes: fields,
+ order: order,
+ })
+
+ return list
+}
+
+/**
+ * getListForPage 接口
+ * @param {*} params
+ * @param {*} fields
+ * @param {*} order
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const list = await Table.findAll({
+ where : params,
+ attributes: fields,
+ order: order,
+ limit: pageSize,
+ offset: (page - 1) * pageSize
+ })
+
+ return list
+}
+
+/**
+ * updateInfo 接口
+ * @param {*} params
+ * @param {*} data
+ */
+const updateInfo = async function(params, data){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+
+ const info = await Table.update(data, {
+ where: params
+ })
+
+ tlConsole(TableName, params, data, info)
+
+ return info
+}
+
+
+/**
+ * deleteInfo 接口
+ * @param {*} params
+ */
+const deleteInfo = async function(params){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ const info = await Table.destroy({
+ where: params
+ })
+
+ tlConsole(TableName, params, info)
+
+ return info
+}
+
+/**
+ * getCount 接口
+ * @param {*} params
+ */
+const getCount = async function(params){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const count = await Table.count({
+ where : params
+ })
+
+ return count
+}
+
+
+module.exports = {
+ addInfo, addList,
+ getInfo, getList, getListForPage,
+ updateInfo,
+ deleteInfo,
+ getCount,
+}
\ No newline at end of file
diff --git a/src/dao/tl_user_finger_print_dao.js b/src/dao/tl_user_finger_print_dao.js
new file mode 100644
index 0000000..5dedd3b
--- /dev/null
+++ b/src/dao/tl_user_finger_print_dao.js
@@ -0,0 +1,206 @@
+const { DataTypes, where } = require('sequelize');
+const { dbClient } = require('../tables/db')
+const { model, fields } = require('../tables/tl_user_finger_print')
+const Table = model(dbClient, DataTypes).TlUserFingerPrint
+const TableName = fields.Name
+const TableFields = Object.keys(fields.Def).map(key => fields.Def[key])
+const { tlConsoleError, tlConsole, checkRawFieldType } = require("../utils/utils");
+
+/**
+ * addInfo 接口
+ * @param {*} data
+ */
+const addInfo = async function(data){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+
+ const info = await Table.create(data)
+
+ tlConsole(TableName, data, info)
+
+ return info
+}
+
+/**
+ * addList 接口
+ * @param {*} dataList
+ */
+const addList = async function(dataList){
+ if(dataList.length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ for(let data of dataList){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+ }
+
+ const list = await Table.bulkCreate(dataList)
+
+ tlConsole(TableName, dataList, list)
+
+ return list
+}
+
+
+/**
+ * getInfo 接口
+ * @param {*} params
+ * @param {*} fields
+ */
+const getInfo = async function(params, fields = TableFields){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ const info = await Table.findOne({
+ where: params,
+ attributes: fields
+ })
+
+ return info
+}
+
+/**
+ * getList 接口
+ * @param {*} params
+ * @param {*} fields
+ * @param {*} order
+ */
+const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const list = await Table.findAll({
+ where : params,
+ attributes: fields,
+ order: order,
+ })
+
+ return list
+}
+
+/**
+ * getListForPage 接口
+ * @param {*} params
+ * @param {*} fields
+ * @param {*} order
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const list = await Table.findAll({
+ where : params,
+ attributes: fields,
+ order: order,
+ offset: (page - 1) * pageSize,
+ limit: pageSize
+ })
+
+ return list
+}
+
+/**
+ * updateInfo 接口
+ * @param {*} params
+ * @param {*} data
+ */
+const updateInfo = async function(params, data){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+
+ const info = await Table.update(data, {
+ where: params
+ })
+
+ tlConsole(TableName, params, data, info)
+
+ return info
+}
+
+
+/**
+ * deleteInfo 接口
+ * @param {*} params
+ */
+const deleteInfo = async function(params){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ const info = await Table.destroy({
+ where: params
+ })
+
+ tlConsole(TableName, params, info)
+
+ return info
+}
+
+/**
+ * getCount 接口
+ * @param {*} params
+ */
+const getCount = async function(params){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const count = await Table.count({
+ where : params
+ })
+
+ return count
+}
+
+
+module.exports = {
+ addInfo, addList,
+ getInfo, getList, getListForPage,
+ updateInfo,
+ deleteInfo,
+ getCount,
+}
\ No newline at end of file
diff --git a/src/dao/tl_user_friend_dao.js b/src/dao/tl_user_friend_dao.js
new file mode 100644
index 0000000..b615cf0
--- /dev/null
+++ b/src/dao/tl_user_friend_dao.js
@@ -0,0 +1,206 @@
+const { DataTypes } = require('sequelize');
+const { dbClient } = require('../tables/db')
+const { model, fields } = require('../tables/tl_user_friend')
+const Table = model(dbClient, DataTypes).TlUserFriend
+const TableName = fields.Name
+const TableFields = Object.keys(fields.Def).map(key => fields.Def[key])
+const { tlConsoleError, tlConsole, checkRawFieldType } = require("../../src/utils/utils");
+
+/**
+ * addInfo 接口
+ * @param {*} data
+ */
+const addInfo = async function(data){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+
+ const info = await Table.create(data)
+
+ tlConsole(TableName, data, info)
+
+ return info
+}
+
+/**
+ * addList 接口
+ * @param {*} dataList
+ */
+const addList = async function(dataList){
+ if(dataList.length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ for(let data of dataList){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+ }
+
+ const list = await Table.bulkCreate(dataList)
+
+ tlConsole(TableName, dataList, list)
+
+ return list
+}
+
+
+/**
+ * getInfo 接口
+ * @param {*} params
+ * @param {*} fields
+ */
+const getInfo = async function(params, fields = TableFields){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ const info = await Table.findOne({
+ where: params,
+ attributes: fields
+ })
+
+ return info
+}
+
+/**
+ * getList 接口
+ * @param {*} params
+ * @param {*} fields
+ * @param {*} order
+ */
+const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const list = await Table.findAll({
+ where : params,
+ attributes: fields,
+ order: order,
+ })
+
+ return list
+}
+
+/**
+ * getListForPage 接口
+ * @param {*} params
+ * @param {*} fields
+ * @param {*} order
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const list = await Table.findAll({
+ where : params,
+ attributes: fields,
+ order: order,
+ offset: (page - 1) * pageSize,
+ limit: pageSize
+ })
+
+ return list
+}
+
+/**
+ * updateInfo 接口
+ * @param {*} params
+ * @param {*} data
+ */
+const updateInfo = async function(params, data){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+
+ const info = await Table.update(data, {
+ where: params
+ })
+
+ tlConsole(TableName, params, data, info)
+
+ return info
+}
+
+
+/**
+ * deleteInfo 接口
+ * @param {*} params
+ */
+const deleteInfo = async function(params){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ const info = await Table.destroy({
+ where: params
+ })
+
+ tlConsole(TableName, params, info)
+
+ return info
+}
+
+/**
+ * getCount 接口
+ * @param {*} params
+ */
+const getCount = async function(params){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const count = await Table.count({
+ where : params
+ })
+
+ return count
+}
+
+
+module.exports = {
+ addInfo, addList,
+ getInfo, getList, getListForPage,
+ updateInfo,
+ deleteInfo,
+ getCount,
+}
\ No newline at end of file
diff --git a/src/dao/tl_user_read_dao.js b/src/dao/tl_user_read_dao.js
new file mode 100644
index 0000000..3209ec8
--- /dev/null
+++ b/src/dao/tl_user_read_dao.js
@@ -0,0 +1,205 @@
+const { DataTypes, where } = require('sequelize');
+const { dbClient } = require('../tables/db')
+const { model, fields } = require('../tables/tl_user_read')
+const Table = model(dbClient, DataTypes).TlUserRead
+const TableName = fields.Name
+const TableFields = Object.keys(fields.Def).map(key => fields.Def[key])
+const { tlConsoleError, tlConsole, checkRawFieldType } = require("../../src/utils/utils");
+
+/**
+ * addInfo 接口
+ * @param {*} data
+ */
+const addInfo = async function(data){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+
+ const info = await Table.create(data)
+
+ tlConsole(TableName, data, info)
+
+ return info
+}
+
+/**
+ * addList 接口
+ * @param {*} dataList
+ */
+const addList = async function(dataList){
+ if(dataList.length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ for(let data of dataList){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+ }
+
+ const list = await Table.bulkCreate(dataList)
+
+ tlConsole(TableName, dataList, list)
+
+ return list
+}
+
+
+/**
+ * getInfo 接口
+ * @param {*} params
+ * @param {*} fields
+ */
+const getInfo = async function(params, fields = TableFields){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ const info = await Table.findOne({
+ where: params,
+ attributes: fields
+ })
+
+ return info
+}
+
+/**
+ * getList 接口
+ * @param {*} params
+ * @param {*} fields
+ * @param {*} order
+ */
+const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const list = await Table.findAll({
+ where : params,
+ attributes: fields,
+ order: order,
+ })
+
+ return list
+}
+
+/**
+ * getListForPage 接口
+ * @param {*} params
+ * @param {*} fields
+ * @param {*} order
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const list = await Table.findAll({
+ where : params,
+ attributes: fields,
+ order: order,
+ offset: (page - 1) * pageSize,
+ limit: pageSize
+ })
+
+ return list
+}
+
+/**
+ * updateInfo 接口
+ * @param {*} params
+ * @param {*} data
+ */
+const updateInfo = async function(params, data){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+
+ const info = await Table.update(data, {
+ where: params
+ })
+
+ tlConsole(TableName, params, data, info)
+
+ return info
+}
+
+
+/**
+ * deleteInfo 接口
+ * @param {*} params
+ */
+const deleteInfo = async function(params){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ const info = await Table.destroy({
+ where: params
+ })
+
+ tlConsole(TableName, params, info)
+
+ return info
+}
+
+/**
+ * getCount 接口
+ * @param {*} params
+ */
+const getCount = async function(params){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const count = await Table.count({
+ where : params
+ })
+
+ return count
+}
+
+module.exports = {
+ addInfo, addList,
+ getInfo, getList, getListForPage,
+ updateInfo,
+ deleteInfo,
+ getCount,
+}
\ No newline at end of file
diff --git a/src/dao/tl_user_tag_dao.js b/src/dao/tl_user_tag_dao.js
new file mode 100644
index 0000000..ec1f560
--- /dev/null
+++ b/src/dao/tl_user_tag_dao.js
@@ -0,0 +1,206 @@
+const { DataTypes, where } = require('sequelize');
+const { dbClient } = require('../tables/db')
+const { model, fields } = require('../tables/tl_user_tag')
+const Table = model(dbClient, DataTypes).TlUserTag
+const TableName = fields.Name
+const TableFields = Object.keys(fields.Def).map(key => fields.Def[key])
+const { tlConsoleError, tlConsole, checkRawFieldType } = require("../utils/utils");
+
+/**
+ * addInfo 接口
+ * @param {*} data
+ */
+const addInfo = async function(data){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+
+ const info = await Table.create(data)
+
+ tlConsole(TableName, data, info)
+
+ return info
+}
+
+/**
+ * addList 接口
+ * @param {*} dataList
+ */
+const addList = async function(dataList){
+ if(dataList.length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ for(let data of dataList){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+ }
+
+ const list = await Table.bulkCreate(dataList)
+
+ tlConsole(TableName, dataList, list)
+
+ return list
+}
+
+
+/**
+ * getInfo 接口
+ * @param {*} params
+ * @param {*} fields
+ */
+const getInfo = async function(params, fields = TableFields){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ const info = await Table.findOne({
+ where: params,
+ attributes: fields
+ })
+
+ return info
+}
+
+/**
+ * getList 接口
+ * @param {*} params
+ * @param {*} fields
+ * @param {*} order
+ */
+const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const list = await Table.findAll({
+ where : params,
+ attributes: fields,
+ order: order,
+ })
+
+ return list
+}
+
+/**
+ * getListForPage 接口
+ * @param {*} params
+ * @param {*} fields
+ * @param {*} order
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const list = await Table.findAll({
+ where : params,
+ attributes: fields,
+ order: order,
+ offset: (page - 1) * pageSize,
+ limit: pageSize
+ })
+
+ return list
+}
+
+/**
+ * updateInfo 接口
+ * @param {*} params
+ * @param {*} data
+ */
+const updateInfo = async function(params, data){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ // 参数校验
+ const checkStatus = checkRawFieldType(Table.rawAttributes, data)
+ if (!checkStatus) {
+ tlConsoleError(TableName, "请求dao参数类型错误")
+ return null
+ }
+
+ const info = await Table.update(data, {
+ where: params
+ })
+
+ tlConsole(TableName, params, data, info)
+
+ return info
+}
+
+
+/**
+ * deleteInfo 接口
+ * @param {*} params
+ */
+const deleteInfo = async function(params){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数为空")
+ return null
+ }
+
+ const info = await Table.destroy({
+ where: params
+ })
+
+ tlConsole(TableName, params, info)
+
+ return info
+}
+
+/**
+ * getCount 接口
+ * @param {*} params
+ */
+const getCount = async function(params){
+ if(Object.keys(params).length === 0){
+ tlConsoleError(TableName, "请求dao参数有为空项")
+ return null
+ }
+
+ const count = await Table.count({
+ where : params
+ })
+
+ return count
+}
+
+
+module.exports = {
+ addInfo, addList,
+ getInfo, getList, getListForPage,
+ updateInfo,
+ deleteInfo,
+ getCount,
+}
\ No newline at end of file
diff --git a/src/middleware/loginAuth.js b/src/middleware/loginAuth.js
new file mode 100644
index 0000000..aca09a2
--- /dev/null
+++ b/src/middleware/loginAuth.js
@@ -0,0 +1,112 @@
+const {
+ tlConsoleApiIcon, tlConsole, tlConsoleError,
+ tlResponseArgsError, tlResponseForbidden, tlResponseSvrError,
+ tlResponseTimeout, tlResponseNotFound, tlResponseSuccess
+} = require("../utils/utils");
+const {
+ LOGIN : {
+ LOGIN_TOKEN_KEY,
+ WEBSITE_LOGIN_TOKEN_KEY
+ }
+} = require('../utils/constant');
+const userSessionService = require('../service/user/tl_user_session_service')
+
+
+const loginAuthIngoreApi = [
+ // 初始化
+ '/api/web/config/init',
+
+ // 登录
+ '/api/web/user-login/login-state',
+ '/api/web/user-login/website-login-state',
+ '/api/web/user-login/login-by-account',
+ '/api/web/user-login/login-by-mobile',
+ '/api/web/user-login/login-by-email',
+ '/api/web/user-login/login-by-code',
+ '/api/web/user-login/login-by-wechat',
+ '/api/web/user-login/login-by-qq',
+ '/api/web/user-login/login-by-qy-wechat',
+ '/api/web/user-login/login-by-fp',
+ '/api/web/user-login/login-by-website',
+
+ // 注册
+ '/api/web/user-register/register-by-account',
+ '/api/web/user-register/register-by-mobile',
+ '/api/web/user-register/register-by-email',
+ '/api/web/user-register/get-email-code',
+ '/api/web/user-register/register-website-user',
+
+ // 退出
+ '/api/web/user-logout/logout',
+ '/api/web/user-logout/website-logout',
+]
+
+
+/**
+ * 登录验证中间件
+ * @param {*} request
+ * @param {*} response
+ * @param {*} next
+ * @returns
+ */
+const loginAuthHandler = async function(request, response, next) {
+ // 非api请求不需要登录验证
+ if(!request.url.startsWith("/api/")) {
+ return next()
+ }
+
+ // 跳过忽略登录态校验的api
+ for (const ignoreApi of loginAuthIngoreApi) {
+ if (request.url.startsWith(ignoreApi)) {
+ return next()
+ }
+ }
+
+ const isWebsite = request.url.includes("/website-")
+
+ let tokenKey = LOGIN_TOKEN_KEY
+ if(isWebsite){
+ tokenKey = WEBSITE_LOGIN_TOKEN_KEY
+ }
+
+ const { [tokenKey]: token } = request.cookies;
+ if (!token) {
+ return response.json(tlResponseForbidden("不在线, 请先登录"))
+ }
+
+ const {
+ loginUserCompanyId,
+ loginUserCompanyName,
+ loginUserId,
+ loginUsername,
+ loginUserRoleId,
+ loginUserAvatar,
+ loginTime,
+ loginUserEmail,
+ loginUserMobile
+ } = await userSessionService.getUserInfoByToken({token})
+
+ if(isWebsite){
+ tlConsole("website login check:", request.url, token, loginUserCompanyId, loginUserId)
+ }else{
+ tlConsole("login check:", request.url, token, loginUserCompanyId, loginUserId)
+ }
+
+ if (!loginUserCompanyId) {
+ return response.json(tlResponseForbidden("不在线, 请先登录"))
+ }
+
+ if (!loginUserId) {
+ return response.json(tlResponseForbidden("不在线, 请先登录"))
+ }
+
+ request.ctx = {
+ token, loginUserCompanyId, loginUserId,
+ loginUsername, loginUserRoleId, loginUserCompanyName,
+ loginUserAvatar, loginTime, loginUserEmail, loginUserMobile
+ }
+
+ next()
+}
+
+module.exports = loginAuthHandler
\ No newline at end of file
diff --git a/src/middleware/loginRole.js b/src/middleware/loginRole.js
new file mode 100644
index 0000000..f7ebb78
--- /dev/null
+++ b/src/middleware/loginRole.js
@@ -0,0 +1,288 @@
+const {
+ tlConsoleApiIcon, tlConsole, tlConsoleError,
+ tlResponseArgsError, tlResponseForbidden, tlResponseSvrError,
+ tlResponseTimeout, tlResponseNotFound, tlResponseSuccess
+} = require("../utils/utils");
+const {
+ LOGIN : {
+ LOGIN_TOKEN_KEY
+ }
+} = require('../utils/constant');
+const userSessionService = require('../service/user/tl_user_session_service')
+const { inner: TlRoleInner } = require('../tables/tl_role')
+const {
+ getAllPermissionsMap
+ } = require('../role/role')
+
+
+const loginRoleIngoreApi = [
+ // 初始化
+ '/api/web/config/init',
+
+ // 登录
+ '/api/web/user-login/login-state',
+ '/api/web/user-login/website-login-state',
+ '/api/web/user-login/login-by-account',
+ '/api/web/user-login/login-by-mobile',
+ '/api/web/user-login/login-by-email',
+ '/api/web/user-login/login-by-code',
+ '/api/web/user-login/login-by-wechat',
+ '/api/web/user-login/login-by-qq',
+ '/api/web/user-login/login-by-qy-wechat',
+ '/api/web/user-login/login-by-fp',
+ '/api/web/user-login/login-by-website',
+
+ // 注册
+ '/api/web/user-register/register-by-account',
+ '/api/web/user-register/register-by-mobile',
+ '/api/web/user-register/register-by-email',
+ '/api/web/user-register/get-email-code',
+ '/api/web/user-register/register-website-user',
+
+ // 退出
+ '/api/web/user-logout/logout',
+ '/api/web/user-logout/website-logout',
+]
+
+
+/**
+ * 根据角色id获取角色信息
+ * 目前角色是固定的,后续可以从数据库中获取
+ * @param {*} roleId
+ * @returns
+ */
+const getRoleInfoById = function({roleId}){
+ const roleList = [
+ TlRoleInner.user.normal,
+ TlRoleInner.user.admin,
+
+ TlRoleInner.channel.creator,
+ TlRoleInner.channel.admin,
+ TlRoleInner.channel.member,
+ ]
+
+ return roleList.find(role => role.id === roleId)
+}
+
+/**
+ * 判断角色是否有权限
+ * @param {*} roleId
+ * @param {*} permissionId
+ * @returns
+ */
+const roleHasPermission = function({ roleId, permissionId }){
+ const roleInfo = getRoleInfoById({ roleId })
+ if(!roleInfo){
+ return false
+ }
+
+ let permissionIdList = []
+ try{
+ let permissionIdListJson = roleInfo.permissionIdList
+ permissionIdList = JSON.parse(permissionIdListJson)
+ }catch(e){
+ tlConsoleError(e)
+ return false
+ }
+
+ return permissionIdList.includes(permissionId)
+}
+
+/**
+ * 判断用户在频道中是否有权限
+ * @param {*} userId
+ * @param {*} permissionId
+ * @param {*} channelId
+ * @returns
+ */
+const channelRoleHasPermission = async function({ userId, permissionId, channelId }){
+ let channelRole = await userSessionService.getUserChannelRole({
+ userId, channelId
+ })
+ channelRole = parseInt(channelRole)
+
+ const roleInfo = getRoleInfoById({ roleId: channelRole })
+ if(!roleInfo){
+ return false
+ }
+
+ let permissionIdList = []
+ try{
+ let permissionIdListJson = roleInfo.permissionIdList
+ permissionIdList = JSON.parse(permissionIdListJson)
+ }catch(e){
+ tlConsoleError(e)
+ return false
+ }
+
+ return permissionIdList.includes(permissionId)
+}
+
+
+/**
+ * 根据请求api获取对应的权限id
+ * @param {*} url
+ */
+const getRequestApiPermissionId = function(url){
+ let apiSplit = url.split("/")
+ if(apiSplit.length !== 5){
+ return ""
+ }
+
+ let [_a, _b, apiPlatform, apiModule, apiAction] = apiSplit
+
+ apiAction = apiAction.split("?")[0]
+
+ apiModule = apiModule.replace(/-/g, "_").toUpperCase()
+ apiAction = apiAction.replace(/-/g, "_").toUpperCase()
+
+ // 获取权限key
+ let permissionKey = apiModule + ":" + apiAction
+
+ // 获取权限map
+ let permissionMap = getAllPermissionsMap()
+
+ // 获取权限id
+ return permissionMap[permissionKey]
+}
+
+
+/**
+ * 权限验证中间件
+ * @param {*} request
+ * @param {*} response
+ * @param {*} next
+ * @returns
+ */
+const loginRoleHandler = async function(request, response, next) {
+ // 非api请求不需要权限验证
+ if(!request.url.startsWith("/api/")) {
+ return next()
+ }
+
+ // 跳过忽略权限校验的api
+ for (const ignoreApi of loginRoleIngoreApi) {
+ if (request.url.startsWith(ignoreApi)) {
+ return next()
+ }
+ }
+
+ // 频道相关不处理
+ if(request.url.startsWith("/api/web/channel")){
+ return next()
+ }
+
+ const isWebsite = request.url.includes("/website-")
+
+ const {
+ loginUserCompanyId,
+ loginUserCompanyName,
+ loginUserId,
+ loginUsername,
+ loginUserRoleId,
+ loginUserAvatar,
+ loginTime,
+ loginUserEmail,
+ loginUserMobile
+ } = request.ctx
+
+ if(!loginUserRoleId){
+ return response.json(tlResponseForbidden("身份无权限"))
+ }
+
+ let permissionId = getRequestApiPermissionId(request.url)
+
+ if(isWebsite){
+ tlConsole("website role check:", request.url, loginUserCompanyId, loginUserId, loginUserRoleId, permissionId)
+ }else{
+ tlConsole("role check:", request.url, loginUserCompanyId, loginUserId, loginUserRoleId, permissionId)
+ }
+
+ if(!permissionId){
+ return response.json(tlResponseForbidden("请求无权限"))
+ }
+
+ const hasPermission = roleHasPermission({
+ roleId: loginUserRoleId,
+ permissionId: permissionId
+ })
+ if(!hasPermission){
+ return response.json(tlResponseForbidden("操作无权限"))
+ }
+
+ next()
+}
+
+/**
+ * 频道权限验证中间件
+ * @param {*} request
+ * @param {*} response
+ * @param {*} next
+ * @returns
+ */
+const loginChannelRoleHandler = async function(request, response, next) {
+ // 非api请求不需要权限验证
+ if(!request.url.startsWith("/api/")) {
+ return next()
+ }
+
+ // 跳过忽略权限校验的api
+ for (const ignoreApi of loginRoleIngoreApi) {
+ if (request.url.startsWith(ignoreApi)) {
+ return next()
+ }
+ }
+
+ // 只处理频道相关的api
+ if(!request.url.startsWith("/api/web/channel")){
+ return next()
+ }
+
+ let channelId = request.query.channelId || request.body.channelId
+ if(!channelId){
+ return next()
+ }
+
+ channelId = String(channelId)
+
+ const {
+ loginUserCompanyId,
+ loginUserCompanyName,
+ loginUserId,
+ loginUsername,
+ loginUserRoleId,
+ loginUserAvatar,
+ loginTime,
+ loginUserEmail,
+ loginUserMobile
+ } = request.ctx
+
+ if(!loginUserRoleId){
+ return response.json(tlResponseForbidden("身份无权限"))
+ }
+
+ let permissionId = getRequestApiPermissionId(request.url)
+
+ tlConsole("channel role check:", request.url, loginUserCompanyId, loginUserId, loginUserRoleId, permissionId)
+
+ if(!permissionId){
+ return response.json(tlResponseForbidden("请求无权限"))
+ }
+
+ const hasPermission = await channelRoleHasPermission({
+ userId: loginUserId,
+ permissionId: permissionId,
+ channelId: channelId
+ })
+ if(!hasPermission){
+ return response.json(tlResponseForbidden("操作无权限"))
+ }
+
+ next()
+}
+
+
+module.exports = {
+ loginRoleHandler,
+ loginChannelRoleHandler
+}
\ No newline at end of file
diff --git a/src/role/accountRole.js b/src/role/accountRole.js
new file mode 100644
index 0000000..a43331c
--- /dev/null
+++ b/src/role/accountRole.js
@@ -0,0 +1,86 @@
+const {
+ channelPermission,
+ userPermission,
+ companyPermission,
+ configPermission,
+
+ channelPerfix,
+ channelUserPerfix,
+} = require('./permission');
+
+
+/**
+ * 普通用户权限
+ * @returns
+ */
+const userNormalPermissions = function(){
+ let returnPermission = [];
+
+ // 频道权限
+ const channelKeys = Object.keys(channelPermission.channel).filter((key) => {
+ return ![
+ channelPerfix + "UPDATE_CHANNEL_NAME"
+ ].includes(key)
+ })
+ channelKeys.forEach((key) => {
+ returnPermission.push(channelPermission.channel[key]);
+ })
+
+ const channelUserKeys = Object.keys(channelPermission.channelUser).filter((key) => {
+ return ![
+ channelUserPerfix + "ADD_CHANNEL_USER_ADMIN",
+ channelUserPerfix + "ADD_CHANNEL_USER",
+ channelUserPerfix + "DELETE_CHANNEL_USER",
+ channelUserPerfix + "UPDATE_CHANNEL_USER_ROLE_ADMIN",
+ channelUserPerfix + "UPDATE_CHANNEL_USER_ROLE_NORMAL",
+ ].includes(key)
+ })
+ channelUserKeys.forEach((key) => {
+ returnPermission.push(channelPermission.channelUser[key]);
+ })
+ returnPermission.push(...Object.values(channelPermission.channelChat))
+
+ // 用户权限
+ Object.keys(userPermission).forEach((key) => {
+ returnPermission.push(...Object.values(userPermission[key]));
+ })
+ // 配置权限
+ Object.keys(configPermission).forEach((key) => {
+ returnPermission.push(...Object.values(configPermission[key]));
+ })
+
+ return returnPermission;
+}
+
+/**
+ * 系统管理员权限 - 所有权限
+ * @returns
+ */
+const userAdminPermissions = function(){
+ let returnPermission = [];
+
+ // 频道权限
+ Object.keys(channelPermission).forEach((key) => {
+ returnPermission.push(...Object.values(channelPermission[key]));
+ })
+ // 用户权限
+ Object.keys(companyPermission).forEach((key) => {
+ returnPermission.push(...Object.values(companyPermission[key]));
+ })
+ // 用户权限
+ Object.keys(userPermission).forEach((key) => {
+ returnPermission.push(...Object.values(userPermission[key]));
+ })
+ // 配置权限
+ Object.keys(configPermission).forEach((key) => {
+ returnPermission.push(...Object.values(configPermission[key]));
+ })
+
+ return returnPermission;
+}
+
+
+module.exports = {
+ userNormalPermissions,
+ userAdminPermissions,
+}
\ No newline at end of file
diff --git a/src/role/channelRole.js b/src/role/channelRole.js
new file mode 100644
index 0000000..d1c1516
--- /dev/null
+++ b/src/role/channelRole.js
@@ -0,0 +1,99 @@
+const {
+ channelPermission,
+
+ channelPerfix,
+ channelNoticePerfix,
+ channelUserPerfix
+} = require('./permission');
+
+
+/**
+ * 频道创建人权限
+ * @returns
+ */
+const userChannelCreatorPermissions = function(){
+ let returnPermission = [];
+
+ // 频道权限
+ returnPermission.push(...Object.values(channelPermission.channel))
+ returnPermission.push(...Object.values(channelPermission.channelChat))
+ returnPermission.push(...Object.values(channelPermission.channelUser))
+
+ return returnPermission;
+}
+
+/**
+ * 频道管理员权限
+ * @returns
+ */
+const userChannelAdminPermissions = function(){
+ let returnPermission = [];
+
+ // 频道权限
+ const channelKeys = Object.keys(channelPermission.channel).filter((key) => {
+ return ![
+ channelPerfix + "UPDATE_CHANNEL_NAME"
+ ].includes(key)
+ })
+ channelKeys.forEach((key) => {
+ returnPermission.push(channelPermission.channel[key]);
+ })
+
+ const channelUserKeys = Object.keys(channelPermission.channelUser).filter((key) => {
+ return ![
+ channelUserPerfix + "ADD_CHANNEL_USER_ADMIN",
+ channelUserPerfix + "ADD_CHANNEL_USER",
+ channelUserPerfix + "DELETE_CHANNEL_USER",
+ channelUserPerfix + "UPDATE_CHANNEL_USER_ROLE_ADMIN",
+ ].includes(key)
+ })
+ channelUserKeys.forEach((key) => {
+ returnPermission.push(channelPermission.channelUser[key]);
+ })
+
+ returnPermission.push(...Object.values(channelPermission.channelChat))
+
+ return returnPermission;
+}
+
+/**
+ * 频道普通用户权限
+ * @returns
+ */
+const userChannelNormalPermissions = function(){
+ let returnPermission = [];
+
+ // 频道权限
+ const channelKeys = Object.keys(channelPermission.channel).filter((key) => {
+ return ![
+ channelPerfix + "UPDATE_CHANNEL_NAME"
+ ].includes(key)
+ })
+ channelKeys.forEach((key) => {
+ returnPermission.push(channelPermission.channel[key]);
+ })
+
+ const channelUserKeys = Object.keys(channelPermission.channelUser).filter((key) => {
+ return ![
+ channelUserPerfix + "ADD_CHANNEL_USER_ADMIN",
+ channelUserPerfix + "ADD_CHANNEL_USER",
+ channelUserPerfix + "DELETE_CHANNEL_USER",
+ channelUserPerfix + "UPDATE_CHANNEL_USER_ROLE_ADMIN",
+ channelUserPerfix + "UPDATE_CHANNEL_USER_ROLE_NORMAL",
+ ].includes(key)
+ })
+ channelUserKeys.forEach((key) => {
+ returnPermission.push(channelPermission.channelUser[key]);
+ })
+
+ returnPermission.push(...Object.values(channelPermission.channelChat))
+
+ return returnPermission;
+}
+
+
+module.exports = {
+ userChannelCreatorPermissions,
+ userChannelAdminPermissions,
+ userChannelNormalPermissions,
+}
\ No newline at end of file
diff --git a/src/role/permission.js b/src/role/permission.js
new file mode 100644
index 0000000..6395a03
--- /dev/null
+++ b/src/role/permission.js
@@ -0,0 +1,256 @@
+/**
+ * @description 权限配置
+ * @module permission
+ * @auther iamtsm
+ */
+
+// 权限id基数
+const systemPermissionIdBase = 1
+const channelPermissionIdBase = 100000
+const companyPermissionIdBase = 300000
+const userPermissionIdBase = 600000
+const configPermissionIdBase = 700000
+
+// key前缀
+const systemPerfix = 'SYSTEM:'
+const channelPerfix = 'CHANNEL:'
+const channelChatPerfix = 'CHANNEL_CHAT:'
+const channelUserPerfix = 'CHANNEL_USER:'
+const companyPerfix = 'COMPANY:'
+const userPerfix = 'USER:'
+const userApplyPerfix = 'USER_APPLY:'
+const userFriendPerfix = 'USER_FRIEND:'
+const userConfigPerfix = 'USER_CONFIG:'
+const userReadPerfix = 'USER_READ:'
+const userTagPerfix = 'USER_TAG:'
+const userRegisterPerfix = 'USER_REGISTER:'
+const userLoginPerfix = 'USER_LOGIN:'
+const userLogoutPerfix = 'USER_LOGOUT:'
+
+
+// 补充前缀
+const addPerfix = function(permission, perfix){
+ for (let key in permission){
+ permission[perfix + key] = permission[key]
+ delete permission[key]
+ }
+}
+
+// 系统默认预设权限 1-999999
+let systemPermission = {
+
+}
+
+// 频道权限 100000 - 199999
+let channelPermission = {
+ channel: { // 100000 ~ 100999
+ // 添加频道
+ ADD_CHANNEL: channelPermissionIdBase + 1,
+ // 获取频道列表
+ GET_CHANNEL_LIST: channelPermissionIdBase + 2,
+ // 获取频道信息
+ GET_CHANNEL_INFO: channelPermissionIdBase + 4,
+ // 获取频道名称
+ GET_CHANNEL_NAME: channelPermissionIdBase + 5,
+ // 修改频道名称
+ UPDATE_CHANNEL_NAME: channelPermissionIdBase + 6,
+ // 获取频道聊天记录
+ GET_CHANNEL_MESSAGE: channelPermissionIdBase + 7,
+ // 获取频道列表聊天记录
+ GET_CHANNEL_MESSAGE_LIST: channelPermissionIdBase + 8,
+ // 通过频道id获取频道信息
+ SEARCH_CHANNEL_BY_ID: channelPermissionIdBase + 10,
+ // 获取群组频道列表
+ GET_GROUP_CHANNEL_LIST: channelPermissionIdBase + 11,
+ },
+ channelChat: { // 101000 ~ 101999
+ // 发送好友频道聊天
+ ADD_FRIEND_CHANNEL_CHAT: channelPermissionIdBase + 1000,
+ // 发送多人频道聊天
+ ADD_GROUP_CHANNEL_CHAT: channelPermissionIdBase + 1001,
+ // 回复好友频道聊天
+ ADD_REPLY_FRIEND_CHANNEL_CHAT: channelPermissionIdBase + 1002,
+ // 回复多人频道聊天
+ ADD_REPLY_GROUP_CHANNEL_CHAT: channelPermissionIdBase + 1003,
+ // 撤回聊天消息
+ ROLLBACK_CHANNEL_CHAT: channelPermissionIdBase + 1004,
+ },
+ channelUser: { // 105000 ~ 105999
+ // 系统管理员添加频道用户
+ ADD_CHANNEL_USER: channelPermissionIdBase + 5001,
+ // 分享加入群聊
+ SHARE_JOIN_CHANNEL: channelPermissionIdBase + 5002,
+ // 添加频道普通身份用户
+ ADD_CHANNEL_USER_NORMAL: channelPermissionIdBase + 5003,
+ // 批量添加频道普通身份用户
+ ADD_CHANNEL_USER_LIST_NORMAL: channelPermissionIdBase + 5004,
+ // 添加频道管理员身份用户
+ ADD_CHANNEL_USER_ADMIN: channelPermissionIdBase + 5005,
+ // 删除频道用户
+ DELETE_CHANNEL_USER: channelPermissionIdBase + 5006,
+ // 更新频道用户角色为管理员
+ UPDATE_CHANNEL_USER_ROLE_ADMIN: channelPermissionIdBase + 5007,
+ // 更新频道用户角色为普通用户
+ UPDATE_CHANNEL_USER_ROLE_NORMAL: channelPermissionIdBase + 5008,
+ // 获取所有频道列表的用户
+ GET_CHANNEL_LIST_USER_LIST: channelPermissionIdBase + 5009,
+ // 获取某个频道的用户列表
+ GET_CHANNEL_USER_LIST: channelPermissionIdBase + 5010,
+ // 修改频道是否置顶
+ UPDATE_CHANNEL_TOP: channelPermissionIdBase + 5011,
+ // 修改频道是否拉黑
+ UPDATE_CHANNEL_BLACK: channelPermissionIdBase + 5012,
+ // 退出频道
+ EXIT_CHANNEL: channelPermissionIdBase + 5013,
+ }
+}
+
+// 企业权限 300000 - 399999
+let companyPermission = {
+ company: { // 300000 ~ 300999
+ // 添加企业
+ ADD_COMPANY: companyPermissionIdBase + 1,
+ // 获取企业
+ GET_COMPANY: companyPermissionIdBase + 2,
+ }
+}
+
+// 用户权限 600000 - 699999
+let userPermission = {
+ user: { // 600000 ~ 600999
+ // 搜索用户
+ SEARCH_USER_BY_NAME: userPermissionIdBase + 1,
+ // 搜索用户通过id
+ SEARCH_USER_BY_ID: userPermissionIdBase + 2,
+ // 更新用户头像
+ UPDATE_USER_AVATAR: userPermissionIdBase + 3,
+ // 绑定邮箱
+ BIND_EMAIL: userPermissionIdBase + 4
+ },
+ userApply: { // 601000 ~ 601999
+ // 添加好友申请
+ ADD_USER_FRIEND_APPLY: userPermissionIdBase + 1000,
+ // 通过好友申请
+ PASS_USER_FRIEND: userPermissionIdBase + 1001,
+ // 拒绝好友申请
+ REJECT_USER_FRIEND: userPermissionIdBase + 1002,
+ // 获取自己收到的用户好友申请列表
+ GET_USER_FRIEND_OTHER_APPLY_LIST: userPermissionIdBase + 1003,
+ // 获取自己发出的用户好友申请列表
+ GET_USER_FRIEND_SELF_APPLY_LIST: userPermissionIdBase + 1004,
+ },
+ userFriend: { // 602000 ~ 602999
+ // 删除好友
+ DELETE_USER_FRIEND: userPermissionIdBase + 2000,
+ // 更新好友信息备注
+ UPDATE_USER_FRIEND_REMARK: userPermissionIdBase + 2001,
+ // 更新好友名称备注
+ UPDATE_USER_FRIEND_RENAME: userPermissionIdBase + 2002,
+ // 获取用户好友列表
+ GET_USER_FRIEND_LIST: userPermissionIdBase + 2003,
+ // 关注好友
+ UPDATE_USER_FRIEND_SPECIAL: userPermissionIdBase + 2004,
+ },
+ userConfig: { // 603000 ~ 603999
+ // 获取用户配置
+ GET_USER_CONFIG: userPermissionIdBase + 3000,
+ // 更新用户通用设置
+ UPDATE_USER_CONFIG_NORMAL: userPermissionIdBase + 3001,
+ // 更新用户皮肤设置
+ UPDATE_USER_CONFIG_SKIN: userPermissionIdBase + 3002,
+ // 更新用户账号设置
+ UPDATE_USER_CONFIG_ACCOUNT: userPermissionIdBase + 3003,
+ // 更新用户消息设置
+ UPDATE_USER_CONFIG_MESSAGE: userPermissionIdBase + 3004,
+ // 更新用户权限设置
+ UPDATE_USER_CONFIG_AUTHORITY: userPermissionIdBase + 3005,
+ // 更新用户其他设置
+ UPDATE_USER_CONFIG_OTHER: userPermissionIdBase + 3006,
+ },
+ userRead: { // 604000 ~ 604999
+ // 更新频道文件/媒体/聊天消息已读记录
+ UPDATE_CHANNEL_MUTIL_READ: userPermissionIdBase + 4000,
+ // 更新频道聊天消息已读记录
+ UPDATE_CHANNEL_CHAT_READ: userPermissionIdBase + 4001,
+ // 更新频道媒体消息已读记录
+ UPDATE_CHANNEL_MEDIA_READ: userPermissionIdBase + 4002,
+ // 更新频道文件消息已读记录
+ UPDATE_CHANNEL_FILE_READ: userPermissionIdBase + 4003,
+ // 新增申请消息已读记录
+ UPDATE_USER_FRIEND_APPLY_READ: userPermissionIdBase + 4004,
+ // 新增通过申请消息已读记录
+ UPDATE_USER_FRIEND_APPLY_PASS_READ: userPermissionIdBase + 4005,
+ // 新增拒绝申请消息已读记录
+ UPDATE_USER_FRIEND_APPLY_REJECT_READ: userPermissionIdBase + 4006,
+ },
+ userTag: { // 605000 ~ 605999
+ // 添加频道分组标签
+ ADD_CHANNEL_TAG: userPermissionIdBase + 5000,
+ // 添加好友分组标签
+ ADD_FRIEND_TAG: userPermissionIdBase + 5001,
+ // 添加资源库分组标签
+ ADD_CLOUD_TAG: userPermissionIdBase + 5002,
+ // 获取频道分组标签列表
+ GET_CHANNEL_TAG_LIST: userPermissionIdBase + 5003,
+ // 获取好友分组标签列表
+ GET_FRIEND_TAG_LIST: userPermissionIdBase + 5004,
+ // 获取资源库分组标签列表
+ GET_CLOUD_TAG_LIST: userPermissionIdBase + 5005,
+ // 删除标签
+ DELETE_TAG: userPermissionIdBase + 5006,
+ },
+ userRegister: { // 606000 ~ 606999
+
+ },
+ userLogin: { // 607000 ~ 607999
+
+ },
+ userLogout: { // 608000 ~ 608999
+
+ },
+}
+
+// 配置权限 700000 - 799999
+const configPermission = {
+
+}
+
+addPerfix(channelPermission.channel, channelPerfix)
+addPerfix(channelPermission.channelChat, channelChatPerfix)
+addPerfix(channelPermission.channelUser, channelUserPerfix)
+
+addPerfix(companyPermission.company, companyPerfix)
+
+
+addPerfix(userPermission.user, userPerfix)
+addPerfix(userPermission.userApply, userApplyPerfix)
+addPerfix(userPermission.userFriend, userFriendPerfix)
+addPerfix(userPermission.userConfig, userConfigPerfix)
+addPerfix(userPermission.userRead, userReadPerfix)
+addPerfix(userPermission.userRegister, userRegisterPerfix)
+addPerfix(userPermission.userLogin, userLoginPerfix)
+addPerfix(userPermission.userLogout, userLogoutPerfix)
+addPerfix(userPermission.userTag, userTagPerfix)
+
+
+module.exports = {
+ systemPermission,
+ channelPermission,
+ companyPermission,
+ userPermission,
+ configPermission,
+
+ systemPerfix,
+ channelPerfix,
+ channelChatPerfix,
+ companyPerfix,
+ userPerfix,
+ userApplyPerfix,
+ userFriendPerfix,
+ userConfigPerfix,
+ userReadPerfix,
+ userRegisterPerfix,
+ userLoginPerfix,
+ userLogoutPerfix,
+ userTagPerfix,
+}
\ No newline at end of file
diff --git a/src/role/role.js b/src/role/role.js
new file mode 100644
index 0000000..1a944cc
--- /dev/null
+++ b/src/role/role.js
@@ -0,0 +1,58 @@
+const {
+ channelPermission,
+ userPermission,
+ companyPermission,
+ configPermission,
+} = require('./permission');
+
+const {
+ userNormalPermissions,
+ userAdminPermissions,
+} = require('./accountRole')
+
+const {
+ userChannelCreatorPermissions,
+ userChannelAdminPermissions,
+ userChannelNormalPermissions,
+} = require('./channelRole')
+
+
+
+/**
+ * 获取所有权限
+ * @returns
+ */
+const getAllPermissionsMap = function(){
+ let returnPermissionMap = {};
+
+ // 频道权限
+ returnPermissionMap = Object.assign(returnPermissionMap, channelPermission.channel)
+ returnPermissionMap = Object.assign(returnPermissionMap, channelPermission.channelChat)
+ returnPermissionMap = Object.assign(returnPermissionMap, channelPermission.channelUser)
+ // 企业权限
+ returnPermissionMap = Object.assign(returnPermissionMap, companyPermission.company)
+ // 用户权限
+ returnPermissionMap = Object.assign(returnPermissionMap, userPermission.user)
+ returnPermissionMap = Object.assign(returnPermissionMap, userPermission.userFriend)
+ returnPermissionMap = Object.assign(returnPermissionMap, userPermission.userApply)
+ returnPermissionMap = Object.assign(returnPermissionMap, userPermission.userConfig)
+ returnPermissionMap = Object.assign(returnPermissionMap, userPermission.userRead)
+ returnPermissionMap = Object.assign(returnPermissionMap, userPermission.userLogin)
+ returnPermissionMap = Object.assign(returnPermissionMap, userPermission.userLogout)
+ returnPermissionMap = Object.assign(returnPermissionMap, userPermission.userRegister)
+ returnPermissionMap = Object.assign(returnPermissionMap, userPermission.userTag)
+ // 配置权限
+
+ return returnPermissionMap;
+}
+
+
+module.exports = {
+ userNormalPermissions,
+ userAdminPermissions,
+ userChannelCreatorPermissions,
+ userChannelAdminPermissions,
+ userChannelNormalPermissions,
+
+ getAllPermissionsMap
+}
\ No newline at end of file
diff --git a/src/service/channel/tl_channel_chat_service.js b/src/service/channel/tl_channel_chat_service.js
new file mode 100644
index 0000000..3e1200a
--- /dev/null
+++ b/src/service/channel/tl_channel_chat_service.js
@@ -0,0 +1,1293 @@
+const { Op } = require('sequelize')
+const { fields } = require('../../tables/tl_channel_chat')
+const TlChannelChatDao = require('../../dao/tl_channel_chat_dao')
+const TlChannelChatDef = fields.Def
+const TlChannelChatType = fields.Type
+const TableName = fields.Name
+const TableFields = Object.keys(fields.Def).map(key => fields.Def[key])
+const { tlConsoleError, tlConsole } = require("../../../src/utils/utils");
+
+
+/**
+ * addInfo 接口
+ * @param {*} data
+ */
+const addInfo = async function({
+ companyId, channelId, type, message, flag,
+ fromUserId, fromUserName, toUserId, toUserName, other,
+ messageTimeStamp, messageVersion
+}){
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return {}
+ }
+
+ if(!messageTimeStamp){
+ tlConsoleError(TableName, "请求service参数messageTimeStamp为空")
+ return {}
+ }
+
+ if(!messageVersion){
+ tlConsoleError(TableName, "请求service参数messageVersion为空")
+ return {}
+ }
+
+ if(flag === undefined || flag === null){
+ tlConsoleError(TableName, "请求service参数flag为空")
+ return {}
+ }
+
+ if(!type){
+ tlConsoleError(TableName, "请求service参数type为空")
+ return {}
+ }
+
+ if(![
+ TlChannelChatType.SYSTEM,
+ TlChannelChatType.FRIEND,
+ TlChannelChatType.GROUP
+ ].includes(type)){
+ tlConsoleError(TableName, "请求service参数type不合法")
+ return {}
+ }
+
+ if(!message){
+ tlConsoleError(TableName, "请求service参数message为空")
+ return {}
+ }
+
+ // 系统消息
+ if (type === TlChannelChatType.SYSTEM) {
+ if(!fromUserName){
+ tlConsoleError(TableName, "请求service参数fromUserName为空")
+ return {}
+ }
+ }
+
+ // 好友聊天
+ if (type === TlChannelChatType.FRIEND) {
+ if(!fromUserId){
+ tlConsoleError(TableName, "请求service参数fromUserId为空")
+ return {}
+ }
+
+ if(!fromUserName){
+ tlConsoleError(TableName, "请求service参数fromUserName为空")
+ return {}
+ }
+
+ if(!toUserId){
+ tlConsoleError(TableName, "请求service参数toUserId为空")
+ return {}
+ }
+
+ if(!toUserName){
+ tlConsoleError(TableName, "请求service参数toUserName为空")
+ return {}
+ }
+ }
+
+ // 群聊
+ if (type === TlChannelChatType.GROUP) {
+ if(!fromUserId){
+ tlConsoleError(TableName, "请求service参数fromUserId为空")
+ return {}
+ }
+
+ if(!fromUserName){
+ tlConsoleError(TableName, "请求service参数fromUserName为空")
+ return {}
+ }
+ }
+
+ const info = await TlChannelChatDao.addInfo({
+ [TlChannelChatDef.companyId]: companyId,
+ [TlChannelChatDef.channelId]: channelId,
+ [TlChannelChatDef.type]: type,
+ [TlChannelChatDef.message]: message,
+ [TlChannelChatDef.fromUserId]: fromUserId,
+ [TlChannelChatDef.fromUserName]: fromUserName,
+ [TlChannelChatDef.toUserId]: toUserId,
+ [TlChannelChatDef.toUserName]: toUserName,
+ [TlChannelChatDef.other]: other,
+ [TlChannelChatDef.flag]: flag,
+ [TlChannelChatDef.messageTimeStamp]: messageTimeStamp,
+ [TlChannelChatDef.messageVersion]: messageVersion
+ })
+
+ if(info == null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * addGroupChatInfo 接口
+ * @param {*} companyId
+ * @param {*} channelId
+ * @param {*} message
+ * @param {*} fromUserId
+ * @param {*} fromUserName
+ * @param {*} other
+ * @param {*} flag
+ * @param {*} messageTimeStamp
+ * @param {*} messageVersion
+ */
+const addGroupChatInfo = async function({
+ companyId, channelId, message, fromUserId, fromUserName,
+ other, flag, messageTimeStamp, messageVersion
+}){
+ return await addInfo({
+ companyId: companyId,
+ channelId : channelId,
+ type: TlChannelChatType.GROUP,
+ message: message,
+ fromUserId: fromUserId,
+ fromUserName: fromUserName,
+ toUserId: 0,
+ toUserName: '',
+ other: other,
+ flag: flag,
+ messageTimeStamp: messageTimeStamp,
+ messageVersion: messageVersion
+ })
+}
+
+/**
+ * addFriendChatInfo 接口
+ * @param {*} companyId
+ * @param {*} channelId
+ * @param {*} message
+ * @param {*} fromUserId
+ * @param {*} fromUserName
+ * @param {*} toUserId
+ * @param {*} toUserName
+ * @param {*} other
+ * @param {*} flag
+ * @param {*} messageTimeStamp
+ * @param {*} messageVersion
+ */
+const addFriendChatInfo = async function({
+ companyId, channelId, message, fromUserId, fromUserName,
+ toUserId, toUserName, other, flag, messageTimeStamp, messageVersion
+}){
+ return await addInfo({
+ companyId: companyId,
+ channelId : channelId,
+ type: TlChannelChatType.FRIEND,
+ message: message,
+ fromUserId: fromUserId,
+ fromUserName: fromUserName,
+ toUserId: toUserId,
+ toUserName: toUserName,
+ other: other,
+ flag: flag,
+ messageTimeStamp: messageTimeStamp,
+ messageVersion: messageVersion
+ })
+}
+
+/**
+ * addSystemChatnfo 接口
+ * @param {*} companyId
+ * @param {*} channelId
+ * @param {*} message
+ * @param {*} other
+ * @param {*} flag
+ * @param {*} messageTimeStamp
+ * @param {*} messageVersion
+ */
+const addSystemChatnfo = async function({
+ companyId, channelId, message, other, flag, messageTimeStamp, messageVersion
+}){
+ return await addInfo({
+ companyId: companyId,
+ channelId : channelId,
+ type: TlChannelChatType.SYSTEM,
+ message: message,
+ fromUserName: '系统消息',
+ flag: flag,
+ fromUserId: 0,
+ toUserId: 0,
+ toUserName: '',
+ other: other,
+ messageTimeStamp: messageTimeStamp,
+ messageVersion: messageVersion
+ })
+}
+
+/**
+ * getInfoById 接口
+ * @param {*} companyId
+ * @param {*} id
+ * @param {*} fields
+ */
+const getInfoById = async function({companyId, id}, fields){
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlChannelChatDao.getInfo({
+ [TlChannelChatDef.companyId]: companyId,
+ [TlChannelChatDef.id]: id,
+ }, fields)
+
+ if(info == null){
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getListByChannelId 接口
+ * @param {*} companyId
+ * @param {*} channelId
+ * @param {*} fields
+ */
+const getListByChannelId = async function({companyId, channelId}, fields){
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ const list = await TlChannelChatDao.getList({
+ [TlChannelChatDef.companyId]: companyId,
+ [TlChannelChatDef.channelId]: channelId,
+ }, fields, [
+ [TlChannelChatDef.messageTimeStamp, 'DESC']
+ ])
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByChannelIdForPage 接口
+ * @param {*} companyId
+ * @param {*} channelId
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByChannelIdForPage = async function({companyId, channelId}, fields, page, pageSize){
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlChannelChatDao.getListForPage({
+ [TlChannelChatDef.companyId]: companyId,
+ [TlChannelChatDef.channelId]: channelId,
+ }, fields, [
+ [TlChannelChatDef.messageTimeStamp, 'DESC']
+ ], page, pageSize)
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+
+/**
+ * getListByChannelIdAndMinIdForPage 接口
+ * @desc 查看频道历史聊天记录
+ * @param {*} companyId
+ * @param {*} channelId
+ * @param {*} fields
+ * @param {*} minId
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByChannelIdAndMinIdForPage = async function({
+ companyId, channelId, minId
+}, fields, page, pageSize){
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!minId){
+ tlConsoleError(TableName, "请求service参数minId为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlChannelChatDao.getListForPage({
+ [TlChannelChatDef.companyId]: companyId,
+ [TlChannelChatDef.channelId]: channelId,
+ [TlChannelChatDef.id]: {
+ [Op.lt]: minId
+ }
+ }, fields, [
+ [TlChannelChatDef.messageTimeStamp, 'DESC']
+ ], page, pageSize)
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+
+/**
+ * getListByChannelIdAndMinIdTimeRangeForPage 接口
+ * @desc 搜索频道聊天记录
+ * @param {*} companyId
+ * @param {*} channelId
+ * @param {*} fields
+ * @param {*} minId
+ * @param {*} startTimeStamp
+ * @param {*} endTimeStamp
+ * @param {*} keyword
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByChannelIdAndMinIdTimeRangeForPage = async function({
+ companyId, channelId, minId, startTimeStamp, endTimeStamp, keyword
+}, fields, page, pageSize){
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!minId){
+ tlConsoleError(TableName, "请求service参数minId为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ let query = {
+ [TlChannelChatDef.companyId]: companyId,
+ [TlChannelChatDef.channelId]: channelId,
+ [TlChannelChatDef.id]: {
+ [Op.lte]: minId,
+ }
+ }
+
+ if(startTimeStamp && endTimeStamp){
+ query[TlChannelChatDef.messageTimeStamp] = {
+ [Op.between]: [startTimeStamp, endTimeStamp]
+ }
+ }
+
+ if(keyword !== '' && keyword !== undefined && keyword !== null){
+ query[TlChannelChatDef.message] = {
+ [Op.like]: `%${keyword}%`
+ }
+ }
+
+ const list = await TlChannelChatDao.getListForPage(query, fields, [
+ [TlChannelChatDef.messageTimeStamp, 'DESC']
+ ], page, pageSize)
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByChannelIdAndMaxIdForPage 接口
+ * @desc 查看频道最新聊天记录
+ * @param {*} companyId
+ * @param {*} channelId
+ * @param {*} fields
+ * @param {*} maxId
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByChannelIdAndMaxIdForPage = async function({
+ companyId, channelId, maxId
+}, fields, page, pageSize){
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!maxId){
+ tlConsoleError(TableName, "请求service参数maxId为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlChannelChatDao.getListForPage({
+ [TlChannelChatDef.companyId]: companyId,
+ [TlChannelChatDef.channelId]: channelId,
+ [TlChannelChatDef.id]: {
+ [Op.gte]: maxId
+ }
+ }, fields, [
+ [TlChannelChatDef.messageTimeStamp, 'DESC']
+ ], page, pageSize)
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+
+/**
+ * getListByChannelIdList 接口
+ * @param {*} companyId
+ * @param {*} channelIdList
+ * @param {*} fields
+ */
+const getListByChannelIdList = async function({companyId, channelIdList}, fields){
+ if(!channelIdList){
+ tlConsoleError(TableName, "请求service参数channelIdList为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ const list = await TlChannelChatDao.getList({
+ [TlChannelChatDef.companyId]: companyId,
+ [TlChannelChatDef.channelId]: channelIdList,
+ }, fields, [
+ [TlChannelChatDef.messageTimeStamp, 'DESC']
+ ])
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByChannelIdListForPage 接口
+ * @param {*} companyId
+ * @param {*} channelIdList
+ * @param {*} page
+ * @param {*} pageSize
+ * @param {*} fields
+ */
+const getListByChannelIdListForPage = async function({companyId, channelIdList}, fields, page, pageSize){
+ if(!channelIdList){
+ tlConsoleError(TableName, "请求service参数channelIdList为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlChannelChatDao.getListForPage({
+ [TlChannelChatDef.companyId]: companyId,
+ [TlChannelChatDef.channelId]: channelIdList,
+ }, fields, [
+ [TlChannelChatDef.messageTimeStamp, 'DESC']
+ ], page, pageSize)
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByChannelFromUserId 接口
+ * @param {*} companyId
+ * @param {*} channelId
+ * @param {*} fromUserId
+ * @param {*} fields
+ */
+const getListByChannelFromUserId = async function({companyId, channelId, fromUserId}, fields){
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!fromUserId){
+ tlConsoleError(TableName, "请求service参数fromUserId为空")
+ return []
+ }
+
+ const list = await TlChannelChatDao.getList({
+ [TlChannelChatDef.companyId]: companyId,
+ [TlChannelChatDef.channelId]: channelId,
+ [TlChannelChatDef.fromUserId]: fromUserId,
+ }, fields, [
+ [TlChannelChatDef.messageTimeStamp, 'DESC']
+ ])
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByChannelFromUserIdForPage 接口
+ * @param {*} companyId
+ * @param {*} channelId
+ * @param {*} fromUserId
+ * @param {*} page
+ * @param {*} pageSize
+ * @param {*} fields
+ */
+const getListByChannelFromUserIdForPage = async function({companyId, channelId, fromUserId}, fields, page, pageSize){
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!fromUserId){
+ tlConsoleError(TableName, "请求service参数fromUserId为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlChannelChatDao.getListForPage({
+ [TlChannelChatDef.companyId]: companyId,
+ [TlChannelChatDef.channelId]: channelId,
+ [TlChannelChatDef.fromUserId]: fromUserId,
+ }, fields, [
+ [TlChannelChatDef.messageTimeStamp, 'DESC']
+ ], page, pageSize)
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByChannelToUserId 接口
+ * @param {*} companyId
+ * @param {*} channelId
+ * @param {*} toUserId
+ * @param {*} fields
+ */
+const getListByChannelToUserId = async function({companyId, channelId, toUserId}, fields){
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!toUserId){
+ tlConsoleError(TableName, "请求service参数toUserId为空")
+ return []
+ }
+
+ const list = await TlChannelChatDao.getList({
+ [TlChannelChatDef.companyId]: companyId,
+ [TlChannelChatDef.channelId]: channelId,
+ [TlChannelChatDef.toUserId]: toUserId,
+ }, fields, [
+ [TlChannelChatDef.messageTimeStamp, 'DESC']
+ ])
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByChannelToUserIdForPage 接口
+ * @param {*} companyId
+ * @param {*} channelId
+ * @param {*} toUserId
+ * @param {*} page
+ * @param {*} pageSize
+ * @param {*} fields
+ */
+const getListByChannelToUserIdForPage = async function({companyId, channelId, toUserId}, fields, page, pageSize){
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!toUserId){
+ tlConsoleError(TableName, "请求service参数toUserId为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlChannelChatDao.getListForPage({
+ [TlChannelChatDef.companyId]: companyId,
+ [TlChannelChatDef.channelId]: channelId,
+ [TlChannelChatDef.toUserId]: toUserId,
+ }, fields, [
+ [TlChannelChatDef.messageTimeStamp, 'DESC']
+ ], page, pageSize)
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByCompanyId 接口
+ * @param {*} companyId
+ * @param {*} fields
+ */
+const getListByCompanyId = async function({companyId}, fields){
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ const list = await TlChannelChatDao.getList({
+ [TlChannelChatDef.companyId]: companyId,
+ }, fields, [
+ [TlChannelChatDef.messageTimeStamp, 'DESC']
+ ])
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByCompanyIdForPage 接口
+ * @param {*} companyId
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByCompanyIdForPage = async function({companyId}, fields, page, pageSize){
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlChannelChatDao.getListForPage({
+ [TlChannelChatDef.companyId]: companyId,
+ }, fields, [
+ [TlChannelChatDef.messageTimeStamp, 'DESC']
+ ], page, pageSize)
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByChannelIdAndIdList 接口
+ * @param {*} companyId
+ * @param {*} channelId
+ * @param {*} idList
+ * @param {*} fields
+ */
+const getListByChannelIdAndIdList = async function({companyId, channelId, idList}, fields){
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return []
+ }
+
+ if(!idList){
+ tlConsoleError(TableName, "请求service参数idList为空")
+ return []
+ }
+
+ const list = await TlChannelChatDao.getList ({
+ [TlChannelChatDef.companyId]: companyId,
+ [TlChannelChatDef.channelId]: channelId,
+ [TlChannelChatDef.id]: idList
+ }, fields)
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByChannelIdAndIdListForPage 接口
+ * @param {*} companyId
+ * @param {*} channelId
+ * @param {*} idList
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByChannelIdAndIdListForPage = async function({companyId, channelId, idList}, fields, page, pageSize){
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return []
+ }
+
+ if(!idList){
+ tlConsoleError(TableName, "请求service参数idList为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ const list = await TlChannelChatDao.getListForPage({
+ [TlChannelChatDef.companyId]: companyId,
+ [TlChannelChatDef.channelId]: channelId,
+ [TlChannelChatDef.id]: idList
+ }, fields, [
+ [TlChannelChatDef.messageTimeStamp, 'DESC']
+ ], page, pageSize)
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByIdList 接口
+ * @param {*} companyId
+ * @param {*} idList
+ * @param {*} fields
+ */
+const getListByIdList = async function({companyId, idList}, fields){
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!idList){
+ tlConsoleError(TableName, "请求service参数idList为空")
+ return []
+ }
+
+ const list = await TlChannelChatDao.getList({
+ [TlChannelChatDef.companyId]: companyId,
+ [TlChannelChatDef.id]: idList,
+ }, fields)
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByIdListForPage 接口
+ * @param {*} companyId
+ * @param {*} idList
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByIdListForPage = async function({companyId, idList}, fields, page, pageSize){
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!idList){
+ tlConsoleError(TableName, "请求service参数idList为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ const list = await TlChannelChatDao.getListForPage({
+ [TlChannelChatDef.companyId]: companyId,
+ [TlChannelChatDef.id]: idList,
+ }, fields, [
+ [TlChannelChatDef.messageTimeStamp, 'DESC']
+ ], page, pageSize)
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * updateInfoById 接口
+ * @param {*} id
+ * @param {*} companyId
+ * @param {*} data
+ */
+const updateInfoById = async function({id, companyId}, data){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求service参数为空")
+ return {}
+ }
+
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlChannelChatDao.updateInfo({
+ [TlChannelChatDef.companyId]: companyId,
+ [TlChannelChatDef.id]: id,
+ }, data)
+
+ if(info == null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * deleteInfoById 接口
+ * @param {*} id
+ * @param {*} companyId
+ */
+const deleteInfoById = async function({id, companyId}){
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlChannelChatDao.deleteInfo({
+ [TlChannelChatDef.companyId]: companyId,
+ [TlChannelChatDef.id]: id,
+ })
+
+ if(info == null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getCountByChannelId 接口
+ * @param {*} companyId
+ * @param {*} channelId
+ */
+const getCountByChannelId = async function({companyId, channelId}){
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return 0
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return 0
+ }
+
+ const count = await TlChannelChatDao.getCount({
+ [TlChannelChatDef.companyId]: companyId,
+ [TlChannelChatDef.channelId]: channelId,
+ })
+
+ if(count == null){
+ return 0
+ }
+
+ return count
+}
+
+/**
+ * getCountByChannelIdList 接口
+ * @param {*} companyId
+ * @param {*} channelIdList
+ */
+const getCountByChannelIdList = async function({companyId, channelIdList}){
+ if(!channelIdList){
+ tlConsoleError(TableName, "请求service参数channelIdList为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const counts = await TlChannelChatDao.getGroupCount({
+ [TlChannelChatDef.companyId]: companyId,
+ [TlChannelChatDef.channelId]: channelIdList,
+ }, TlChannelChatDef.channelId)
+
+ if(counts == null){
+ return {}
+ }
+
+ return counts
+}
+
+/**
+ * 获取频道聊天最新id
+ * @param {*} companyId
+ * @param {*} channelId
+ * @param {*} fields
+ */
+const getChannelChatLatestId = async function({companyId, channelId}, fields){
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return 0
+ }
+
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return 0
+ }
+
+ const list = await TlChannelChatDao.getListForPage({
+ [TlChannelChatDef.companyId]: companyId,
+ [TlChannelChatDef.channelId]: channelId,
+ }, fields, [
+ [TlChannelChatDef.id, 'DESC']
+ ], 1, 1)
+
+ if(list == null || list.length === 0){
+ return 0
+ }
+
+ const latestId = list[0][TlChannelChatDef.id]
+
+ return latestId
+}
+
+module.exports = {
+ addInfo,
+ getInfoById,
+ getChannelChatLatestId,
+ updateInfoById,
+ deleteInfoById,
+ addSystemChatnfo,
+ addFriendChatInfo,
+ addGroupChatInfo,
+ getCountByChannelId,
+ getCountByChannelIdList,
+
+ getListByChannelId,
+ getListByChannelIdForPage,
+ getListByChannelFromUserId,
+ getListByChannelFromUserIdForPage,
+ getListByChannelToUserId,
+ getListByChannelToUserIdForPage,
+ getListByCompanyId,
+ getListByCompanyIdForPage,
+ getListByChannelIdList,
+ getListByChannelIdListForPage,
+
+ getListByChannelIdAndMinIdForPage,
+ getListByChannelIdAndMinIdTimeRangeForPage,
+
+ getListByChannelIdAndMaxIdForPage,
+
+ getListByChannelIdAndIdList,
+ getListByChannelIdAndIdListForPage,
+
+ getListByIdList,
+ getListByIdListForPage,
+}
\ No newline at end of file
diff --git a/src/service/channel/tl_channel_service.js b/src/service/channel/tl_channel_service.js
new file mode 100644
index 0000000..c427fc4
--- /dev/null
+++ b/src/service/channel/tl_channel_service.js
@@ -0,0 +1,254 @@
+const { fields } = require('../../tables/tl_channel')
+const TlChannelDao = require('../../dao/tl_channel_dao')
+const TlChannelDef = fields.Def
+const TlChannelType = fields.Type
+const TlChannelStatus = fields.Status
+const TableName = fields.Name
+const TableFields = Object.keys(fields.Def).map(key => fields.Def[key])
+const { tlConsoleError, tlConsole } = require("../../../src/utils/utils");
+
+
+/**
+ * addInfo 接口
+ * @param {*} data
+ */
+const addInfo = async function({
+ companyId, name, type, flag = 0,
+}){
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ if(!name){
+ tlConsoleError(TableName, "请求service参数name为空")
+ return {}
+ }
+
+ if(flag == null || flag == undefined){
+ tlConsoleError(TableName, "请求service参数flag为空")
+ return {}
+ }
+
+ if(!type){
+ tlConsoleError(TableName, "请求service参数type为空")
+ return {}
+ }
+
+ if(![
+ TlChannelType.GROUP,
+ TlChannelType.FRIEND,
+ ].includes(type)){
+ tlConsoleError(TableName, "请求service参数type不合法")
+ return {}
+ }
+
+ const info = await TlChannelDao.addInfo({
+ [TlChannelDef.companyId]: companyId,
+ [TlChannelDef.name]: name,
+ [TlChannelDef.type]: type,
+ [TlChannelDef.flag]: flag,
+ [TlChannelDef.status]: TlChannelStatus.NORMAL,
+ })
+
+ if(info == null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getInfoById 接口
+ * @param {*} companyId
+ * @param {*} id
+ */
+const getInfoById = async function({companyId, id}){
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlChannelDao.getInfo({
+ [TlChannelDef.companyId]: companyId,
+ [TlChannelDef.id]: id,
+ })
+
+ if(info == null){
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getListByIdList 接口
+ * @param {*} companyId
+ * @param {*} idList
+ * @param {*} fields
+ */
+const getListByIdList = async function({companyId, idList}, fields){
+ if(!idList){
+ tlConsoleError(TableName, "请求service参数idList为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ const list = await TlChannelDao.getList({
+ [TlChannelDef.companyId]: companyId,
+ [TlChannelDef.id]: idList
+ }, fields, [
+ [TlChannelDef.createdAt, "DESC"]
+ ])
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByIdListForPage 接口
+ * @param {*} companyId
+ * @param {*} idList
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByIdListForPage = async function({companyId, idList}, fields, page, pageSize){
+ if(!idList){
+ tlConsoleError(TableName, "请求service参数idList为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlChannelDao.getListForPage({
+ [TlChannelDef.companyId]: companyId,
+ [TlChannelDef.id]: idList
+ }, fields, [
+ [TlChannelDef.createdAt, "DESC"]
+ ], page, pageSize)
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * updateInfoById 接口
+ * @param {*} companyId
+ * @param {*} id
+ * @param {*} data
+ */
+const updateInfoById = async function({companyId, id}, data){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求service参数为空")
+ return {}
+ }
+
+ // 参数校验
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlChannelDao.updateInfo({
+ [TlChannelDef.companyId]: companyId,
+ [TlChannelDef.id]: id
+ }, data)
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * deleteInfoById 接口
+ * @param {*} companyId
+ * @param {*} id
+ */
+const deleteInfoById = async function({companyId, id}){
+ // 参数校验
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlChannelDao.deleteInfo({
+ [TlChannelDef.companyId]: companyId,
+ [TlChannelDef.id]: id
+ })
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+
+module.exports = {
+ addInfo,
+ updateInfoById,
+ deleteInfoById,
+ getInfoById,
+
+ getListByIdList,
+ getListByIdListForPage
+}
\ No newline at end of file
diff --git a/src/service/channel/tl_channel_user_service.js b/src/service/channel/tl_channel_user_service.js
new file mode 100644
index 0000000..742506a
--- /dev/null
+++ b/src/service/channel/tl_channel_user_service.js
@@ -0,0 +1,1035 @@
+const { fields } = require('../../tables/tl_channel_user')
+const TlChannelUserDao = require('../../dao/tl_channel_user_dao')
+const TlChannelUserDef = fields.Def
+const TlChannelUserType = fields.Type
+const TlChannelUserStatus = fields.Status
+const TableName = fields.Name
+const TableFields = Object.keys(fields.Def).map(key => fields.Def[key])
+const { tlConsoleError, tlConsole } = require("../../../src/utils/utils");
+
+
+/**
+ * addInfo 接口
+ * @param {*} data
+ */
+const addInfo = async function({
+ companyId, channelId, userId, type, roleId,
+}){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return {}
+ }
+
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return {}
+ }
+
+ if(!type){
+ tlConsoleError(TableName, "请求service参数type为空")
+ return {}
+ }
+
+ if(![
+ TlChannelUserType.FRIEND,
+ TlChannelUserType.GROUP,
+ ].includes(type)){
+ tlConsoleError(TableName, "请求service参数type不合法")
+ return {}
+ }
+
+ if(!roleId){
+ tlConsoleError(TableName, "请求service参数roleId为空")
+ return {}
+ }
+
+ const info = await TlChannelUserDao.addInfo({
+ [TlChannelUserDef.companyId]: companyId,
+ [TlChannelUserDef.channelId]: channelId,
+ [TlChannelUserDef.type]: type,
+ [TlChannelUserDef.flag]: 0,
+ [TlChannelUserDef.userId]: userId,
+ [TlChannelUserDef.roleId]: roleId,
+ [TlChannelUserDef.status]: TlChannelUserStatus.NORMAL,
+ })
+
+ if(info == null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * addInfoList 接口
+ * @param {*} data
+ */
+const addInfoList = async function({
+ companyId, channelId, userInfoList,
+}){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return {}
+ }
+
+ if(!userInfoList){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return {}
+ }
+
+ for(let i = 0; i < userInfoList.length; i++){
+ const userInfo = userInfoList[i]
+ const { userId, type, roleId } = userInfo;
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return {}
+ }
+
+ if(!type){
+ tlConsoleError(TableName, "请求service参数type为空")
+ return {}
+ }
+
+ if(![
+ TlChannelUserType.FRIEND,
+ TlChannelUserType.GROUP,
+ ].includes(type)){
+ tlConsoleError(TableName, "请求service参数type不合法")
+ return {}
+ }
+
+ if(!roleId){
+ tlConsoleError(TableName, "请求service参数roleId为空")
+ return {}
+ }
+ }
+
+ let dataList = []
+ for(let i = 0; i < userInfoList.length; i++){
+ const userInfo = userInfoList[i]
+ const { userId, type, roleId } = userInfo;
+ dataList.push({
+ [TlChannelUserDef.companyId]: companyId,
+ [TlChannelUserDef.channelId]: channelId,
+ [TlChannelUserDef.type]: type,
+ [TlChannelUserDef.flag]: 0,
+ [TlChannelUserDef.userId]: userId,
+ [TlChannelUserDef.roleId]: roleId,
+ [TlChannelUserDef.status]: TlChannelUserStatus.NORMAL,
+ })
+ }
+
+ const list = await TlChannelUserDao.addList(dataList)
+
+ if(list == null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return list
+}
+
+
+/**
+ * getInfoById 接口
+ * @param {*} companyId
+ * @param {*} id
+ * @param {*} fields
+ */
+const getInfoById = async function({companyId, id}, fields){
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlChannelUserDao.getInfo({
+ [TlChannelUserDef.companyId]: companyId,
+ [TlChannelUserDef.id]: id
+ }, fields)
+
+ if(info == null) {
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getListByChannelId 接口
+ * @param {*} companyId
+ * @param {*} channelId
+ * @param {*} fields
+ */
+const getListByChannelId = async function({companyId, channelId}, fields){
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ const infoList = await TlChannelUserDao.getList({
+ [TlChannelUserDef.companyId]: companyId,
+ [TlChannelUserDef.channelId]: channelId
+ }, fields, [
+ [TlChannelUserDef.createdAt, "DESC"]
+ ])
+
+ if(infoList == null) {
+ return []
+ }
+
+ return infoList
+}
+
+/**
+ * getListByChannelIdForPage 接口
+ * @param {*} companyId
+ * @param {*} channelId
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByChannelIdForPage = async function({companyId, channelId}, fields, page, pageSize){
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const infoList = await TlChannelUserDao.getListForPage({
+ [TlChannelUserDef.companyId]: companyId,
+ [TlChannelUserDef.channelId]: channelId
+ }, fields, [
+ [TlChannelUserDef.createdAt, "DESC"]
+ ], page, pageSize)
+
+ if(infoList == null) {
+ return []
+ }
+
+ return infoList
+}
+
+/**
+ * getListByUserId 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} fields
+ */
+const getListByUserId = async function({companyId, userId}, fields){
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ const infoList = await TlChannelUserDao.getList({
+ [TlChannelUserDef.companyId]: companyId,
+ [TlChannelUserDef.userId]: userId
+ }, fields, [
+ [TlChannelUserDef.createdAt, "DESC"]
+ ])
+
+ if(infoList == null) {
+ return []
+ }
+
+ return infoList
+}
+
+/**
+ * getListByUserIdForPage 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByUserIdForPage = async function({companyId, userId}, fields, page, pageSize){
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const infoList = await TlChannelUserDao.getListForPage({
+ [TlChannelUserDef.companyId]: companyId,
+ [TlChannelUserDef.userId]: userId
+ }, fields, [
+ [TlChannelUserDef.createdAt, "DESC"]
+ ], page, pageSize)
+
+ if(infoList == null) {
+ return []
+ }
+
+ return infoList
+}
+
+/**
+ * getListByTypeUserIdList 接口
+ * @param {*} companyId
+ * @param {*} type
+ * @param {*} userIdList
+ * @param {*} fields
+ */
+const getListByTypeUserIdList = async function({companyId, type, userIdList}, fields){
+ if(!userIdList){
+ tlConsoleError(TableName, "请求service参数userIdList为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!type){
+ tlConsoleError(TableName, "请求service参数type为空")
+ return []
+ }
+
+ const infoList = await TlChannelUserDao.getList({
+ [TlChannelUserDef.companyId]: companyId,
+ [TlChannelUserDef.type]: type,
+ [TlChannelUserDef.userId]: userIdList
+ }, fields, [
+ [TlChannelUserDef.createdAt, "DESC"]
+ ])
+
+ if(infoList == null) {
+ return []
+ }
+
+ return infoList
+}
+
+/**
+ * getListByTypeUserIdListForPage 接口
+ * @param {*} companyId
+ * @param {*} type
+ * @param {*} userIdList
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByTypeUserIdListForPage = async function({companyId, type, userIdList}, fields, page, pageSize){
+ if(!userIdList){
+ tlConsoleError(TableName, "请求service参数userIdList为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!type){
+ tlConsoleError(TableName, "请求service参数type为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const infoList = await TlChannelUserDao.getListForPage({
+ [TlChannelUserDef.companyId]: companyId,
+ [TlChannelUserDef.type]: type,
+ [TlChannelUserDef.userId]: userIdList
+ }, fields, [
+ [TlChannelUserDef.createdAt, "DESC"]
+ ], page, pageSize)
+
+ if(infoList == null) {
+ return []
+ }
+
+ return infoList
+}
+
+/**
+ * getListByTypeUserId 接口
+ * @param {*} companyId
+ * @param {*} type
+ * @param {*} userId
+ * @param {*} fields
+ */
+const getListByTypeUserId = async function({companyId, type, userId}, fields){
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!type){
+ tlConsoleError(TableName, "请求service参数type为空")
+ return []
+ }
+
+ const infoList = await TlChannelUserDao.getList({
+ [TlChannelUserDef.companyId]: companyId,
+ [TlChannelUserDef.type]: type,
+ [TlChannelUserDef.userId]: userId
+ }, fields, [
+ [TlChannelUserDef.createdAt, "DESC"]
+ ])
+
+ if(infoList == null) {
+ return []
+ }
+
+ return infoList
+}
+
+/**
+ * getListByTypeUserIdForPage 接口
+ * @param {*} companyId
+ * @param {*} type
+ * @param {*} userId
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByTypeUserIdForPage = async function({companyId, type, userId}, fields, page, pageSize){
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!type){
+ tlConsoleError(TableName, "请求service参数type为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const infoList = await TlChannelUserDao.getListForPage({
+ [TlChannelUserDef.companyId]: companyId,
+ [TlChannelUserDef.type]: type,
+ [TlChannelUserDef.userId]: userId
+ }, fields, [
+ [TlChannelUserDef.createdAt, "DESC"]
+ ], page, pageSize)
+
+ if(infoList == null) {
+ return []
+ }
+
+ return infoList
+}
+
+/**
+ * getListByChannelUserIdList 接口
+ * @param {*} companyId
+ * @param {*} channelId
+ * @param {*} userIdList
+ * @param {*} fields
+ */
+const getListByChannelUserIdList = async function({companyId, channelId, userIdList}, fields){
+ if(!userIdList){
+ tlConsoleError(TableName, "请求service参数userIdList为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return []
+ }
+
+ const infoList = await TlChannelUserDao.getList({
+ [TlChannelUserDef.companyId]: companyId,
+ [TlChannelUserDef.channelId]: channelId,
+ [TlChannelUserDef.userId]: userIdList
+ }, fields, [
+ [TlChannelUserDef.createdAt, "DESC"]
+ ])
+
+ if(infoList == null) {
+ return []
+ }
+
+ return infoList
+}
+
+/**
+ * getListByChannelUserIdListForPage 接口
+ * @param {*} companyId
+ * @param {*} channelId
+ * @param {*} userIdList
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByChannelUserIdListForPage = async function({companyId, channelId, userIdList}, fields, page, pageSize){
+ if(!userIdList){
+ tlConsoleError(TableName, "请求service参数userIdList为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const infoList = await TlChannelUserDao.getListForPage({
+ [TlChannelUserDef.companyId]: companyId,
+ [TlChannelUserDef.channelId]: channelId,
+ [TlChannelUserDef.userId]: userIdList
+ }, fields, [
+ [TlChannelUserDef.createdAt, "DESC"]
+ ], page, pageSize)
+
+ if(infoList == null) {
+ return []
+ }
+
+ return infoList
+}
+
+/**
+ * getListByTypeChannelIdList 接口
+ * @param {*} companyId
+ * @param {*} type
+ * @param {*} channelIdList
+ * @param {*} fields
+ */
+const getListByTypeChannelIdList = async function({companyId, type, channelIdList}, fields){
+ if(!channelIdList){
+ tlConsoleError(TableName, "请求service参数channelIdList为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!type){
+ tlConsoleError(TableName, "请求service参数type为空")
+ return []
+ }
+
+ const infoList = await TlChannelUserDao.getList({
+ [TlChannelUserDef.companyId]: companyId,
+ [TlChannelUserDef.type]: type,
+ [TlChannelUserDef.channelId]: channelIdList
+ }, fields, [
+ [TlChannelUserDef.createdAt, "DESC"]
+ ])
+
+ if(infoList == null) {
+ return []
+ }
+
+ return infoList
+}
+
+/**
+ * getListByTypeChannelIdListForPage 接口
+ * @param {*} companyId
+ * @param {*} type
+ * @param {*} channelIdList
+ * @param {*} fields
+ */
+const getListByTypeChannelIdListForPage = async function({companyId, type, channelIdList}, fields, page, pageSize){
+ if(!channelIdList){
+ tlConsoleError(TableName, "请求service参数channelIdList为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!type){
+ tlConsoleError(TableName, "请求service参数type为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const infoList = await TlChannelUserDao.getListForPage({
+ [TlChannelUserDef.companyId]: companyId,
+ [TlChannelUserDef.type]: type,
+ [TlChannelUserDef.channelId]: channelIdList
+ }, fields, [
+ [TlChannelUserDef.createdAt, "DESC"]
+ ], page, pageSize)
+
+ if(infoList == null) {
+ return []
+ }
+
+ return infoList
+}
+
+/**
+ * updateInfoById 接口
+ * @param {*} companyId
+ * @param {*} id
+ * @param {*} data
+ */
+const updateInfoById = async function({companyId, id}, data){
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求service参数data为空")
+ return {}
+ }
+
+ const info = await TlChannelUserDao.updateInfo({
+ [TlChannelUserDef.companyId]: companyId,
+ [TlChannelUserDef.id]: id
+ }, data)
+
+ if(info == null) {
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * deleteInfoById 接口
+ * @param {*} companyId
+ * @param {*} id
+ */
+const deleteInfoById = async function({companyId, id}){
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlChannelUserDao.deleteInfo({
+ [TlChannelUserDef.companyId]: companyId,
+ [TlChannelUserDef.id]: id
+ })
+
+ if(info == null) {
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getCountByChannelId 接口
+ * @param {*} companyId
+ * @param {*} channelId
+ */
+const getCountByChannelId = async function({companyId, channelId}){
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return 0
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return 0
+ }
+
+ const count = await TlChannelUserDao.getCount({
+ [TlChannelUserDef.companyId]: companyId,
+ [TlChannelUserDef.channelId]: channelId
+ })
+
+ if(count == null) {
+ return 0
+ }
+
+ return count
+}
+
+/**
+ * getCountByChannelIdList 接口
+ * @param {*} companyId
+ * @param {*} channelIdList
+ */
+const getCountByChannelIdList = async function({companyId, channelIdList}){
+ if(!channelIdList){
+ tlConsoleError(TableName, "请求service参数channelIdList为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const counts = await TlChannelUserDao.getGroupCount({
+ [TlChannelUserDef.companyId]: companyId,
+ [TlChannelUserDef.channelId]: channelIdList
+ }, TlChannelUserDef.channelId)
+
+ if(counts == null) {
+ return {}
+ }
+
+ return counts
+}
+
+/**
+ * getListByChannelIdList 接口
+ * @param {*} companyId
+ * @param {*} channelIdList
+ * @param {*} fields
+ */
+const getListByChannelIdList = async function({companyId, channelIdList}, fields){
+ if(!channelIdList){
+ tlConsoleError(TableName, "请求service参数channelIdList为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ const infoList = await TlChannelUserDao.getList({
+ [TlChannelUserDef.companyId]: companyId,
+ [TlChannelUserDef.channelId]: channelIdList
+ }, fields, [
+ [TlChannelUserDef.createdAt, "DESC"]
+ ])
+
+ if(infoList == null) {
+ return []
+ }
+
+ return infoList
+}
+
+/**
+ * getListByChannelIdListForPage 接口
+ * @param {*} companyId
+ * @param {*} channelIdList
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByChannelIdListForPage = async function({companyId, channelIdList}, fields, page, pageSize){
+ if(!channelIdList){
+ tlConsoleError(TableName, "请求service参数channelIdList为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const infoList = await TlChannelUserDao.getListForPage({
+ [TlChannelUserDef.companyId]: companyId,
+ [TlChannelUserDef.channelId]: channelIdList
+ }, fields, [
+ [TlChannelUserDef.createdAt, "DESC"]
+ ], page, pageSize)
+
+ if(infoList == null) {
+ return []
+ }
+
+ return infoList
+}
+
+/**
+ * getInfoByChannelIdAndUserId 接口
+ * @param {*} companyId
+ * @param {*} channelId
+ * @param {*} userId
+ * @returns
+ */
+const getInfoByChannelIdAndUserId = async function({companyId, channelId, userId}){
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return {}
+ }
+
+ const info = await TlChannelUserDao.getInfo({
+ [TlChannelUserDef.companyId]: companyId,
+ [TlChannelUserDef.channelId]: channelId,
+ [TlChannelUserDef.userId]: userId
+ })
+
+ if(info == null) {
+ return {}
+ }
+
+ return info
+}
+
+
+
+
+module.exports = {
+ addInfo,
+ addInfoList,
+ updateInfoById,
+ deleteInfoById,
+ getInfoById,
+ getInfoByChannelIdAndUserId,
+ getCountByChannelId,
+ getCountByChannelIdList,
+
+ getListByChannelId,
+ getListByChannelIdForPage,
+ getListByUserId,
+ getListByUserIdForPage,
+ getListByChannelUserIdList,
+ getListByChannelUserIdListForPage,
+ getListByChannelIdList,
+ getListByChannelIdListForPage,
+ getListByTypeUserIdList,
+ getListByTypeUserIdListForPage,
+ getListByTypeUserId,
+ getListByTypeUserIdForPage,
+ getListByTypeChannelIdList,
+ getListByTypeChannelIdListForPage,
+}
\ No newline at end of file
diff --git a/src/service/company/tl_company_service.js b/src/service/company/tl_company_service.js
new file mode 100644
index 0000000..e2e53b0
--- /dev/null
+++ b/src/service/company/tl_company_service.js
@@ -0,0 +1,267 @@
+const { fields } = require('../../tables/tl_company')
+const TlCompanyDao = require('../../dao/tl_company_dao')
+const TlCompanyDef = fields.Def
+const TableName = fields.Name
+const TableFields = Object.keys(fields.Def).map(key => fields.Def[key])
+const { tlConsoleError, tlConsole } = require("../../../src/utils/utils");
+
+
+/**
+ * 添加角色
+ * @param {*} data
+ */
+const addInfo = async function ({
+ name, address, phone, email, website, logo, description, code
+}) {
+ // 参数校验
+ if (!name) {
+ tlConsoleError(TableName, "请求service参数name为空")
+ return {}
+ }
+
+ if (!address) {
+ tlConsoleError(TableName, "请求service参数address为空")
+ return {}
+ }
+
+ if (!phone) {
+ tlConsoleError(TableName, "请求service参数phone为空")
+ return {}
+ }
+
+ if (!email) {
+ tlConsoleError(TableName, "请求service参数email为空")
+ return {}
+ }
+
+ if (!website) {
+ tlConsoleError(TableName, "请求service参数website为空")
+ return {}
+ }
+
+ if (!logo) {
+ tlConsoleError(TableName, "请求service参数logo为空")
+ return {}
+ }
+
+ if (!description) {
+ tlConsoleError(TableName, "请求service参数description为空")
+ return {}
+ }
+
+ const info = await TlCompanyDao.addInfo({
+ [TlCompanyDef.name]: name,
+ [TlCompanyDef.address]: address,
+ [TlCompanyDef.phone]: phone,
+ [TlCompanyDef.email]: email,
+ [TlCompanyDef.website]: website,
+ [TlCompanyDef.logo]: logo,
+ [TlCompanyDef.code]: code,
+ [TlCompanyDef.description]: description
+ });
+
+ if (info === null) {
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * 删除企业
+ * @param {*} id
+ */
+const deleteInfoById = async function ({ id }) {
+ // 参数校验
+ if (!id) {
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ const info = await TlCompanyDao.deleteInfo({
+ [TlCompanyDef.id]: id
+ });
+
+ if (info === null) {
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * 更新企业
+ * @param {*} data
+ * @param {*} id
+ */
+const updateInfoById = async function ({ id }, data) {
+ // 参数校验
+ if (Object.keys(data).length === 0) {
+ tlConsoleError(TableName, "请求service参数为空")
+ return {}
+ }
+
+ if (!id) {
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ const info = await TlCompanyDao.updateInfo({
+ [TlCompanyDef.id]: id
+ }, data);
+
+ if (info === null) {
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * 获取企业列表
+ * @param {*} fields
+ */
+const getList = async function ({ }, fields) {
+ const infoList = await TlCompanyDao.getList({
+
+ }, fields, [
+ [TlCompanyDef.createdAt, "DESC"]
+ ]);
+
+ if (infoList === null) {
+ return []
+ }
+
+ return infoList
+}
+
+/**
+ * 获取企业列表
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListForPage = async function ({ }, fields, page, pageSize) {
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const infoList = await TlCompanyDao.getListForPage({
+
+ }, fields, [
+ [TlCompanyDef.createdAt, "DESC"]
+ ], page, pageSize);
+
+ if (infoList === null) {
+ return []
+ }
+
+ return infoList
+}
+
+/**
+ * 获取企业信息
+ * @param {*} id
+ * @param {*} fields
+ */
+const getInfoById = async function ({ id }, fields) {
+ // 参数校验
+ if (!id) {
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ const info = await TlCompanyDao.getInfo({
+ [TlCompanyDef.id]: id
+ }, fields)
+
+ if (info === null) {
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * 获取企业信息
+ * @param {*} name
+ * @param {*} fields
+ */
+const getInfoByName = async function ({ name }, fields) {
+ // 参数校验
+ if (!name) {
+ tlConsoleError(TableName, "请求service参数name为空")
+ return {}
+ }
+
+ const info = await TlCompanyDao.getInfo({
+ [TlCompanyDef.name]: name
+ }, fields)
+
+ if (info === null) {
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * 通过企业编码获取企业信息
+ * @param {*} code
+ * @param {*} fields
+ * @returns
+ */
+const getInfoByCode = async function ({ code }, fields) {
+ // 参数校验
+ if (!code) {
+ tlConsoleError(TableName, "请求service参数code为空")
+ return {}
+ }
+
+ const info = await TlCompanyDao.getInfo({
+ [TlCompanyDef.code]: code
+ }, fields)
+
+ if (info === null) {
+ return {}
+ }
+
+ return info
+}
+
+
+module.exports = {
+ addInfo,
+ deleteInfoById,
+ updateInfoById,
+ getInfoById,
+ getInfoByName,
+ getInfoByCode,
+
+ getList,
+ getListForPage
+}
\ No newline at end of file
diff --git a/src/service/role/tl_role_service.js b/src/service/role/tl_role_service.js
new file mode 100644
index 0000000..97d29ce
--- /dev/null
+++ b/src/service/role/tl_role_service.js
@@ -0,0 +1,344 @@
+const { fields } = require('../../tables/tl_role')
+const TlRoleDao = require('../../dao/tl_role_dao')
+const TlRoleDef = fields.Def
+const TlRoleType = fields.Type
+const TableName = fields.Name
+const TableFields = Object.keys(fields.Def).map(key => fields.Def[key])
+const { tlConsoleError, tlConsole } = require("../../../src/utils/utils");
+
+
+/**
+ * 添加角色
+ * @param {*} data
+ */
+const addInfo = async function({
+ companyId, name, key, permissionIdList, description, flag, type
+}){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ if(!key){
+ tlConsoleError(TableName, "请求service参数key为空")
+ return {}
+ }
+
+ if(!name){
+ tlConsoleError(TableName, "请求service参数name为空")
+ return {}
+ }
+
+ if(!permissionIdList){
+ tlConsoleError(TableName, "请求service参数permissionIdList为空")
+ return {}
+ }
+
+ if(!description){
+ tlConsoleError(TableName, "请求service参数description为空")
+ return {}
+ }
+
+ if(flag === undefined || flag === null){
+ tlConsoleError(TableName, "请求service参数flag为空")
+ return {}
+ }
+
+ if(!type){
+ tlConsoleError(TableName, "请求service参数type为空")
+ return {}
+ }
+
+ if(![
+ TlRoleType.ADMIN_USER,
+ TlRoleType.NORMAL_USER,
+ TlRoleType.TEST_USER,
+ TlRoleType.CHANNEL_NORMAL_USER,
+ TlRoleType.CHANNEL_ADMIN_USER,
+ TlRoleType.CHANNEL_CREATOR_USER,
+ ].includes(type)){
+ tlConsoleError(TableName, "请求service参数type不合法")
+ return {}
+ }
+
+ const exist = await TlRoleDao.getInfo({
+ [TlRoleDef.companyId]: companyId,
+ [TlRoleDef.type]: type,
+ [TlRoleDef.name]: name
+ })
+
+ if(exist !== null){
+ tlConsoleError(TableName, type + ' 类型下' + "角色名称已存在")
+ return {}
+ }
+
+ const info = await TlRoleDao.addInfo({
+ [TlRoleDef.companyId]: companyId,
+ [TlRoleDef.name]: name,
+ [TlRoleDef.type]: type,
+ [TlRoleDef.permissionIdList]: permissionIdList,
+ [TlRoleDef.key]: key,
+ [TlRoleDef.description]: description,
+ [TlRoleDef.flag]: flag
+ })
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * 删除角色
+ * @param {*} id
+ * @param {*} companyId
+ */
+const deleteInfoById = async function({companyId, id}){
+ // 参数校验
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlRoleDao.deleteInfo({
+ [TlRoleDef.companyId]: companyId,
+ [TlRoleDef.id]: id
+ })
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * 更新角色
+ * @param {*} data
+ * @param {*} companyId
+ * @param {*} id
+ */
+const updateInfoById = async function({companyId, id}, data){
+ // 参数校验
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求service参数为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ const info = await TlRoleDao.updateInfo({
+ [TlRoleDef.companyId]: companyId,
+ [TlRoleDef.id]: id
+ }, data)
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * 获取角色列表
+ * @param {*} companyId
+ * @param {*} fields
+ */
+const getList = async function({companyId}, fields){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ const infoList = await TlRoleDao.getList({
+ [TlRoleDef.companyId]: companyId
+ }, fields, [
+ [TlRoleDef.createdAt, "DESC"]
+ ])
+
+ if(infoList === null){
+ return []
+ }
+
+ return infoList
+}
+
+/**
+ * 获取角色列表
+ * @param {*} companyId
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListForPage = async function({companyId}, fields, page, pageSize){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const infoList = await TlRoleDao.getListForPage({
+ [TlRoleDef.companyId]: companyId
+ }, fields, [
+ [TlRoleDef.createdAt, "DESC"]
+ ], page, pageSize)
+
+ if(infoList === null){
+ return []
+ }
+
+ return infoList
+}
+
+/**
+ * 获取角色信息
+ * @param {*} companyId
+ * @param {*} id
+ * @param {*} fields
+ */
+const getInfoById = async function({companyId, id}, fields){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ const info = await TlRoleDao.getInfo({
+ [TlRoleDef.companyId]: companyId,
+ [TlRoleDef.id]: id
+ }, fields)
+
+ if(info === null){
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * 通过名称获取角色信息
+ * @param {*} companyId
+ * @param {*} name
+ * @param {*} fields
+ */
+const getListByName = async function({companyId, name}, fields){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!name){
+ tlConsoleError(TableName, "请求service参数name为空")
+ return []
+ }
+
+ const list = await TlRoleDao.getList({
+ [TlRoleDef.companyId]: companyId,
+ [TlRoleDef.name]: name
+ }, fields)
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+
+/**
+ * 获取角色信息
+ * @param {*} companyId
+ * @param {*} name
+ * @param {*} fields
+ */
+const getInfoByTypeAndName = async function({companyId, type, name}, fields){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ if(!name){
+ tlConsoleError(TableName, "请求service参数name为空")
+ return {}
+ }
+
+ if(!type){
+ tlConsoleError(TableName, "请求service参数type为空")
+ return {}
+ }
+
+ const info = await TlRoleDao.getInfo({
+ [TlRoleDef.companyId]: companyId,
+ [TlRoleDef.name]: name,
+ [TlRoleDef.type]: type
+ }, fields)
+
+ if(info === null){
+ return {}
+ }
+
+ return info
+}
+
+module.exports = {
+ addInfo,
+ deleteInfoById,
+ updateInfoById,
+ getInfoById,
+ getInfoByTypeAndName,
+
+ getList,
+ getListForPage,
+ getListByName,
+}
\ No newline at end of file
diff --git a/src/service/user/tl_user_apply_service.js b/src/service/user/tl_user_apply_service.js
new file mode 100644
index 0000000..c801984
--- /dev/null
+++ b/src/service/user/tl_user_apply_service.js
@@ -0,0 +1,695 @@
+const { fields } = require('../../tables/tl_user_apply')
+const TlUserApplyDao = require('../../dao/tl_user_apply_dao')
+const TlUserApplyDef = fields.Def
+const TlUserApplyStatus = fields.Status
+const TlUserApplyType = fields.Type
+const TableName = fields.Name
+const TableFields = Object.keys(fields.Def).map(key => fields.Def[key])
+const { tlConsoleError, tlConsole } = require("../../../src/utils/utils");
+
+/**
+ * addInfo 接口
+ * @param {*} data
+ */
+const addInfo = async function({
+ companyId, userId, targetId, type, origin, remark, status, flag = 0
+}){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return {}
+ }
+
+ if(!targetId){
+ tlConsoleError(TableName, "请求service参数targetId为空")
+ return {}
+ }
+
+ if(!type){
+ tlConsoleError(TableName, "请求service参数type为空")
+ return {}
+ }
+
+ if(![
+ TlUserApplyType.FRIEND,
+ TlUserApplyType.GROUP,
+ ].includes(type)){
+ tlConsoleError(TableName, "请求service参数type不合法")
+ return {}
+ }
+
+ if(!status){
+ tlConsoleError(TableName, "请求service参数status为空")
+ return {}
+ }
+
+ if(![
+ TlUserApplyStatus.BLACK,
+ TlUserApplyStatus.PASS,
+ TlUserApplyStatus.REJECT,
+ TlUserApplyStatus.WAIT,
+ ].includes(status)){
+ tlConsoleError(TableName, "请求service参数status不合法")
+ return {}
+ }
+
+ if(!origin){
+ tlConsoleError(TableName, "请求service参数origin为空")
+ return {}
+ }
+
+ if(flag === null || flag === undefined){
+ tlConsoleError(TableName, "请求service参数flag为空")
+ return {}
+ }
+
+ const info = await TlUserApplyDao.addInfo({
+ [TlUserApplyDef.companyId]: companyId,
+ [TlUserApplyDef.userId]: userId,
+ [TlUserApplyDef.targetId]: targetId,
+ [TlUserApplyDef.type]: type,
+ [TlUserApplyDef.status]: status,
+ [TlUserApplyDef.origin]: origin,
+ [TlUserApplyDef.remark]: remark,
+ [TlUserApplyDef.flag]: flag
+ })
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getInfoById 接口
+ * @param {*} companyId
+ * @param {*} id
+ * @param {*} fields
+ */
+const getInfoById = async function({companyId, id}, fields){
+ // 参数校验
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlUserApplyDao.getInfo({
+ [TlUserApplyDef.companyId]: companyId,
+ [TlUserApplyDef.id]: id
+ }, fields)
+
+ if(info === null){
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getInfoByUserId 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} fields
+ * @returns
+ */
+const getListByUserId = async function({companyId, userId}, fields){
+ // 参数校验
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ const list = await TlUserApplyDao.getList({
+ [TlUserApplyDef.companyId]: companyId,
+ [TlUserApplyDef.userId]: userId
+ }, fields, [
+ [TlUserApplyDef.createdAt, 'DESC']
+ ])
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getInfoByUserId 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ * @returns
+ */
+const getListByUserIdForPage = async function({companyId, userId}, fields, page, pageSize){
+ // 参数校验
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlUserApplyDao.getListForPage({
+ [TlUserApplyDef.companyId]: companyId,
+ [TlUserApplyDef.userId]: userId
+ }, fields, [
+ [TlUserApplyDef.createdAt, 'DESC']
+ ], page, pageSize)
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByUserIdAndType 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} type
+ * @param {*} fields
+ * @returns
+ */
+const getListByUserIdAndType = async function({companyId, userId, type}, fields){
+ // 参数校验
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!type){
+ tlConsoleError(TableName, "请求service参数type为空")
+ return []
+ }
+
+ const list = await TlUserApplyDao.getList({
+ [TlUserApplyDef.companyId]: companyId,
+ [TlUserApplyDef.userId]: userId,
+ [TlUserApplyDef.type]: type
+ }, fields, [
+ [TlUserApplyDef.createdAt, 'DESC']
+ ])
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByUserIdAndType 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} type
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ * @returns
+ */
+const getListByUserIdAndTypeForPage = async function({companyId, userId, type}, fields, page, pageSize){
+ // 参数校验
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!type){
+ tlConsoleError(TableName, "请求service参数type为空")
+ return []
+ }
+
+ const list = await TlUserApplyDao.getList({
+ [TlUserApplyDef.companyId]: companyId,
+ [TlUserApplyDef.userId]: userId,
+ [TlUserApplyDef.type]: type
+ }, fields, [
+ [TlUserApplyDef.createdAt, 'DESC']
+ ], page, pageSize)
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByUserIdAndTargetIdAndStatuAndType 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} type
+ * @param {*} status
+ * @param {*} targetId
+ * @param {*} fields
+ * @returns
+ */
+const getListByUserIdAndTargetIdAndStatuAndType = async function({companyId, userId, targetId, status, type}, fields){
+ // 参数校验
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!type){
+ tlConsoleError(TableName, "请求service参数type为空")
+ return []
+ }
+
+ if(!status){
+ tlConsoleError(TableName, "请求service参数status为空")
+ return []
+ }
+
+ if(!targetId){
+ tlConsoleError(TableName, "请求service参数targetId为空")
+ return []
+ }
+
+ const list = await TlUserApplyDao.getList({
+ [TlUserApplyDef.companyId]: companyId,
+ [TlUserApplyDef.userId]: userId,
+ [TlUserApplyDef.targetId]: targetId,
+ [TlUserApplyDef.status]: status,
+ [TlUserApplyDef.type]: type
+ }, fields, [
+ [TlUserApplyDef.createdAt, 'DESC']
+ ])
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByUserIdAndTargetIdAndStatuAndTypeForPage 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} type
+ * @param {*} status
+ * @param {*} targetId
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ * @returns
+ */
+const getListByUserIdAndTargetIdAndStatuAndTypeForPage = async function({
+ companyId, userId, targetId, status, type
+}, fields, page, pageSize){
+ // 参数校验
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!type){
+ tlConsoleError(TableName, "请求service参数type为空")
+ return []
+ }
+
+ if(!status){
+ tlConsoleError(TableName, "请求service参数status为空")
+ return []
+ }
+
+ if(!targetId){
+ tlConsoleError(TableName, "请求service参数targetId为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlUserApplyDao.getListForPage({
+ [TlUserApplyDef.companyId]: companyId,
+ [TlUserApplyDef.userId]: userId,
+ [TlUserApplyDef.targetId]: targetId,
+ [TlUserApplyDef.status]: status,
+ [TlUserApplyDef.type]: type
+ }, fields, [
+ [TlUserApplyDef.createdAt, 'DESC']
+ ], page, pageSize)
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+
+/**
+ * getListByTargetIdAndType 接口
+ * @param {*} companyId
+ * @param {*} targetId
+ * @param {*} type
+ * @param {*} fields
+ * @returns
+ */
+const getListByTargetIdAndType = async function({companyId, targetId, type}, fields){
+ // 参数校验
+ if(!targetId){
+ tlConsoleError(TableName, "请求service参数targetId为空")
+ return []
+ }
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ const list = await TlUserApplyDao.getList({
+ [TlUserApplyDef.companyId]: companyId,
+ [TlUserApplyDef.targetId]: targetId,
+ [TlUserApplyDef.type]: type
+ }, fields, [
+ [TlUserApplyDef.createdAt, 'DESC']
+ ])
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByTargetIdAndTypeForPage 接口
+ * @param {*} companyId
+ * @param {*} targetId
+ * @param {*} type
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ * @returns
+ */
+const getListByTargetIdAndTypeForPage = async function({companyId, targetId, type}, fields, page, pageSize){
+ // 参数校验
+ if(!targetId){
+ tlConsoleError(TableName, "请求service参数targetId为空")
+ return []
+ }
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlUserApplyDao.getListForPage({
+ [TlUserApplyDef.companyId]: companyId,
+ [TlUserApplyDef.targetId]: targetId,
+ [TlUserApplyDef.type]: type
+ }, fields, [
+ [TlUserApplyDef.createdAt, 'DESC']
+ ], page, pageSize)
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * updateInfoById 接口
+ * @param {*} companyId
+ * @param {*} id
+ * @param {*} data
+ */
+const updateInfoById = async function({companyId, id}, data){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求service参数为空")
+ return {}
+ }
+
+ // 参数校验
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlUserApplyDao.updateInfo({
+ [TlUserApplyDef.companyId]: companyId,
+ [TlUserApplyDef.id]: id
+ }, data)
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * deleteInfoById 接口
+ * @param {*} companyId
+ * @param {*} id
+ */
+const deleteInfoById = async function({companyId, id}){
+ // 参数校验
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlUserApplyDao.deleteInfo({
+ [TlUserApplyDef.companyId]: companyId,
+ [TlUserApplyDef.id]: id
+ })
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getListByIdList 接口
+ * @param {*} companyId
+ * @param {*} idList
+ * @param {*} fields
+ */
+const getListByIdList = async function({companyId, idList}, fields){
+ // 参数校验
+ if(!idList){
+ tlConsoleError(TableName, "请求service参数idList为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ const list = await TlUserApplyDao.getList({
+ [TlUserApplyDef.companyId]: companyId,
+ [TlUserApplyDef.id]: idList
+ }, fields, [
+ [TlUserApplyDef.createdAt, 'DESC']
+ ])
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByIdListForPage 接口
+ * @param {*} companyId
+ * @param {*} idList
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByIdListForPage = async function({companyId, idList}, fields, page, pageSize){
+ // 参数校验
+ if(!idList){
+ tlConsoleError(TableName, "请求service参数idList为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlUserApplyDao.getListForPage({
+ [TlUserApplyDef.companyId]: companyId,
+ [TlUserApplyDef.id]: idList
+ }, fields, [
+ [TlUserApplyDef.createdAt, 'DESC']
+ ], page, pageSize)
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+
+module.exports = {
+ addInfo,
+ updateInfoById,
+ deleteInfoById,
+ getInfoById,
+
+ getListByIdList,
+ getListByIdListForPage,
+ getListByUserId,
+ getListByUserIdForPage,
+ getListByTargetIdAndType,
+ getListByTargetIdAndTypeForPage,
+ getListByUserIdAndType,
+ getListByUserIdAndTypeForPage,
+ getListByUserIdAndTargetIdAndStatuAndType,
+ getListByUserIdAndTargetIdAndStatuAndTypeForPage
+}
\ No newline at end of file
diff --git a/src/service/user/tl_user_auth_service.js b/src/service/user/tl_user_auth_service.js
new file mode 100644
index 0000000..0dae510
--- /dev/null
+++ b/src/service/user/tl_user_auth_service.js
@@ -0,0 +1,332 @@
+const { Op } = require('sequelize')
+const moment = require('moment')
+const { fields } = require('../../tables/tl_user_auth')
+const TlUserAuthDao = require('../../dao/tl_user_auth_dao')
+const TlUserAuthDef = fields.Def
+const TlUserAuthType = fields.Type
+const TableName = fields.Name
+const TableFields = Object.keys(fields.Def).map(key => fields.Def[key])
+const { tlConsoleError, tlConsole } = require("../../utils/utils");
+
+/**
+ * addInfo 接口
+ * @param {*} data
+ */
+const addInfo = async function({
+ key, type, code
+}){
+ // 参数校验
+ if(!key){
+ tlConsoleError(TableName, "请求service参数key为空")
+ return {}
+ }
+
+ if(!type){
+ tlConsoleError(TableName, "请求service参数type为空")
+ return {}
+ }
+
+ if(![
+ TlUserAuthType.EMAIL_REGISTER_CODE,
+ TlUserAuthType.PHONE_LOGIN_CODE,
+ TlUserAuthType.PHONE_REGISTER_CODE,
+ ].includes(type)){
+ tlConsoleError(TableName, "请求service参数type不合法")
+ return {}
+ }
+
+ if(!code){
+ tlConsoleError(TableName, "请求service参数code为空")
+ return {}
+ }
+
+ const info = await TlUserAuthDao.addInfo({
+ [TlUserAuthDef.key]: key,
+ [TlUserAuthDef.type]: type,
+ [TlUserAuthDef.code]: code
+ })
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getInfoById 接口
+ * @param {*} id
+ * @param {*} fields
+ */
+const getInfoById = async function({id}, fields){
+ // 参数校验
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ const info = await TlUserAuthDao.getInfo({
+ [TlUserAuthDef.id]: id
+ }, fields)
+
+ if(info === null){
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * updateInfoById 接口
+ * @param {*} id
+ * @param {*} data
+ */
+const updateInfoById = async function({id}, data){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求service参数为空")
+ return {}
+ }
+
+ // 参数校验
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ const info = await TlUserAuthDao.updateInfo({
+ [TlUserAuthDef.id]: id
+ }, data)
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * deleteInfoById 接口
+ * @param {*} id
+ */
+const deleteInfoById = async function({id}){
+ // 参数校验
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ const info = await TlUserAuthDao.deleteInfo({
+ [TlUserAuthDef.id]: id
+ })
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getListByIdList 接口
+ * @param {*} idList
+ * @param {*} fields
+ */
+const getListByIdList = async function({idList}, fields){
+ // 参数校验
+ if(!idList){
+ tlConsoleError(TableName, "请求service参数idList为空")
+ return []
+ }
+
+ const list = await TlUserAuthDao.getList({
+ [TlUserAuthDef.id]: idList
+ }, fields, [
+ [TlUserAuthDef.createdAt, 'DESC']
+ ])
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByIdListForPage 接口
+ * @param {*} idList
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByIdListForPage = async function({idList}, fields, page, pageSize){
+ // 参数校验
+ if(!idList){
+ tlConsoleError(TableName, "请求service参数idList为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlUserAuthDao.getListForPage({
+ [TlUserAuthDef.id]: idList
+ }, fields, [
+ [TlUserAuthDef.createdAt, 'DESC']
+ ], page, pageSize)
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getCountByKey 接口
+ * @param {*} key
+ */
+const getCountByKey = async function({key}){
+ // 参数校验
+ if(!key){
+ tlConsoleError(TableName, "请求service参数key为空")
+ return 0
+ }
+
+ const count = await TlUserAuthDao.getCount({
+ [TlUserAuthDef.key]: key
+ })
+
+ if(count === null){
+ return 0
+ }
+
+ return count
+}
+
+/**
+ * getDayCountByType 接口
+ * @param {*} type
+ */
+const getDayCountByType = async function({type}){
+ // 参数校验
+ if(!type){
+ tlConsoleError(TableName, "请求service参数type为空")
+ return 0
+ }
+
+ const count = await TlUserAuthDao.getCount({
+ [TlUserAuthDef.type]: type,
+ [TlUserAuthDef.createdAt]: {
+ [Op.gte]: moment().startOf('day').format('YYYY-MM-DD HH:mm:ss'),
+ [Op.lte]: moment().endOf('day').format('YYYY-MM-DD HH:mm:ss')
+ }
+ })
+
+ if(count === null){
+ return 0
+ }
+
+ return count
+}
+
+/**
+ * getCountByTypeAndKey 接口
+ * @param {*} type
+ * @param {*} key
+ */
+const getCountByTypeAndKey = async function({type, key}){
+ // 参数校验
+ if(!type){
+ tlConsoleError(TableName, "请求service参数type为空")
+ return 0
+ }
+
+ if(!key){
+ tlConsoleError(TableName, "请求service参数key为空")
+ return 0
+ }
+
+ const count = await TlUserAuthDao.getCount({
+ [TlUserAuthDef.type]: type,
+ [TlUserAuthDef.key]: key
+ })
+
+ if(count === null){
+ return 0
+ }
+
+ return count
+}
+
+/**
+ * getDayCountByTypeAndKey 接口
+ * @param {*} type
+ * @param {*} key
+ */
+const getDayCountByTypeAndKey = async function({type, key}){
+ // 参数校验
+ if(!type){
+ tlConsoleError(TableName, "请求service参数type为空")
+ return 0
+ }
+
+ if(!key){
+ tlConsoleError(TableName, "请求service参数key为空")
+ return 0
+ }
+
+ const count = await TlUserAuthDao.getCount({
+ [TlUserAuthDef.type]: type,
+ [TlUserAuthDef.key]: key,
+ [TlUserAuthDef.createdAt]: {
+ [Op.gte]: moment().startOf('day').format('YYYY-MM-DD HH:mm:ss'),
+ [Op.lte]: moment().endOf('day').format('YYYY-MM-DD HH:mm:ss')
+ }
+ })
+
+ if(count === null){
+ return 0
+ }
+
+ return count
+}
+
+
+module.exports = {
+ addInfo,
+ updateInfoById,
+ deleteInfoById,
+ getInfoById,
+ getCountByKey,
+ getCountByTypeAndKey,
+ getDayCountByTypeAndKey,
+ getDayCountByType,
+
+ getListByIdList,
+ getListByIdListForPage
+}
\ No newline at end of file
diff --git a/src/service/user/tl_user_config_service.js b/src/service/user/tl_user_config_service.js
new file mode 100644
index 0000000..5107982
--- /dev/null
+++ b/src/service/user/tl_user_config_service.js
@@ -0,0 +1,373 @@
+const { fields } = require('../../tables/tl_user_config')
+const TlUserConfigDao = require('../../dao/tl_user_config_dao')
+const TlUserConfigDef = fields.Def
+const TableName = fields.Name
+const TableFields = Object.keys(fields.Def).map(key => fields.Def[key])
+const { tlConsoleError, tlConsole } = require("../../../src/utils/utils");
+
+
+/**
+ * 添加用户配置
+ * @param {*} data
+ */
+const addInfo = async function({
+ companyId, userId, normal, account, message, skin, authority, other,
+}){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return {}
+ }
+
+ if(!normal){
+ tlConsoleError(TableName, "请求service参数normal为空")
+ return {}
+ }
+
+ if(!account){
+ tlConsoleError(TableName, "请求service参数account为空")
+ return {}
+ }
+
+ if(!message){
+ tlConsoleError(TableName, "请求service参数message为空")
+ return {}
+ }
+
+ if(!skin){
+ tlConsoleError(TableName, "请求service参数skin为空")
+ return {}
+ }
+
+ if(!authority){
+ tlConsoleError(TableName, "请求service参数authority为空")
+ return {}
+ }
+
+ if(!other){
+ tlConsoleError(TableName, "请求service参数other为空")
+ return {}
+ }
+
+ const exist = await TlUserConfigDao.getInfo({
+ [TlUserConfigDef.companyId]: companyId,
+ [TlUserConfigDef.userId]: userId
+ })
+
+ if(exist !== null){
+ tlConsoleError(TableName, "用户配置已存在")
+ return {}
+ }
+
+ const info = await TlUserConfigDao.addInfo({
+ [TlUserConfigDef.companyId]: companyId,
+ [TlUserConfigDef.userId]: userId,
+ [TlUserConfigDef.normal]: normal,
+ [TlUserConfigDef.account]: account,
+ [TlUserConfigDef.message]: message,
+ [TlUserConfigDef.skin]: skin,
+ [TlUserConfigDef.authority]: authority,
+ [TlUserConfigDef.other]: other
+ })
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * 添加默认用户配置
+ * @param {*} companyId
+ * @param {*} userId
+ */
+const addDefaultInfo = async function({companyId, userId}){
+ return await addInfo({
+ companyId: companyId,
+ userId: userId,
+ normal: JSON.stringify({
+ windowSizeDefault: false,
+ windowSizeFull: false,
+ fontSize: '小',
+ sidebarChannelOpen: true,
+ sidebarContactOpen: true,
+ sidebarCloudOpen: true,
+ sidebarSettingOpen: true,
+ sidebarMeetingOpen: true,
+ sidebarP2pChannelOpen: true,
+ sidebarCutPasteOpen: true,
+ sidebarDatesOpen: true,
+ sidebarDocumentOpen: true,
+ homePage: 'channel',
+ }),
+ account: JSON.stringify({
+ allowLoginMore: false,
+ loginRemoteNotify: false,
+ notAcceptFriendApply: false,
+ autoPassFriendApply: false,
+ fileSaveToServer: true,
+ fileSaveToAlyOss: false,
+ fileSaveToTxOss: true,
+ }),
+ message: JSON.stringify({
+ webNotify: false,
+ messageDot: true,
+ friendMessageSound: false,
+ friendMessageVibrate: false,
+ friendMessagePreview: false,
+ friendCallSound: false,
+ friendCallVibrate: false,
+ groupMessageSound: false,
+ groupMessageVibrate: false,
+ groupMessagePreview: false,
+ groupCallSound: false,
+ groupCallVibrate: false,
+ }),
+ skin: JSON.stringify({
+ global: 'light',
+ }),
+ authority: JSON.stringify({
+ acceptFriendAudioInvite: false,
+ acceptFriendVideoInvite: false,
+ acceptFriendScreenInvite: false,
+ acceptFriendInviteGroup: false
+ }),
+ other: JSON.stringify({
+ // 我的文件视图模式
+ cloudSelfViewMode: 'list',
+ // 我的收藏视图模式
+ cloudCollectionViewMode: 'list',
+ // 我的回收小站视图模式
+ cloudRecycleViewMode: 'list',
+ // 群聊文件视图模式
+ cloudGroupViewMode: 'list',
+ // 中继服务器
+ turnServer: true,
+ // 自定义wss
+ customWss: '',
+ })
+ })
+}
+
+/**
+ * 删除用户配置
+ * @param {*} id
+ * @param {*} companyId
+ */
+const deleteInfoById = async function({companyId, id}){
+ // 参数校验
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlUserConfigDao.deleteInfo({
+ [TlUserConfigDef.companyId]: companyId,
+ [TlUserConfigDef.id]: id
+ })
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * 更新用户配置
+ * @param {*} data
+ * @param {*} companyId
+ * @param {*} id
+ */
+const updateInfoById = async function({companyId, id}, data){
+ // 参数校验
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求service参数为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ const info = await TlUserConfigDao.updateInfo({
+ [TlUserConfigDef.companyId]: companyId,
+ [TlUserConfigDef.id]: id
+ }, data)
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * 获取用户配置列表
+ * @param {*} companyId
+ * @param {*} fields
+ */
+const getList = async function({companyId}, fields){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ const infoList = await TlUserConfigDao.getList({
+ [TlUserConfigDef.companyId]: companyId
+ }, fields, [
+ [TlUserConfigDef.createdAt, 'DESC']
+ ])
+
+ if(infoList === null){
+ return []
+ }
+
+ return infoList
+}
+
+/**
+ * 获取用户配置列表
+ * @param {*} companyId
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListForPage = async function({companyId}, fields, page, pageSize){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const infoList = await TlUserConfigDao.getListForPage({
+ [TlUserConfigDef.companyId]: companyId
+ }, fields, [
+ [TlUserConfigDef.createdAt, 'DESC']
+ ], page, pageSize)
+
+ if(infoList === null){
+ return []
+ }
+
+ return infoList
+}
+
+/**
+ * 获取用户配置信息
+ * @param {*} companyId
+ * @param {*} id
+ * @param {*} fields
+ */
+const getInfoById = async function({companyId, id}, fields){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ const info = await TlUserConfigDao.getInfo({
+ [TlUserConfigDef.companyId]: companyId,
+ [TlUserConfigDef.id]: id
+ }, fields)
+
+ if(info === null){
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * 获取用户配置信息
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} fields
+ */
+const getInfoByUserId = async function({companyId, userId}, fields){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return {}
+ }
+
+ const info = await TlUserConfigDao.getInfo({
+ [TlUserConfigDef.companyId]: companyId,
+ [TlUserConfigDef.userId]: userId
+ }, fields)
+
+ if(info === null){
+ return {}
+ }
+
+ return info
+}
+
+
+module.exports = {
+ addInfo,
+ deleteInfoById,
+ updateInfoById,
+ getInfoById,
+ getInfoByUserId,
+ addDefaultInfo,
+
+ getList,
+ getListForPage
+}
\ No newline at end of file
diff --git a/src/service/user/tl_user_finger_print_service.js b/src/service/user/tl_user_finger_print_service.js
new file mode 100644
index 0000000..0c6f23a
--- /dev/null
+++ b/src/service/user/tl_user_finger_print_service.js
@@ -0,0 +1,381 @@
+const { Op } = require('sequelize')
+const moment = require('moment')
+const { fields } = require('../../tables/tl_user_finger_print')
+const TlUserFingerPrintDao = require('../../dao/tl_user_finger_print_dao')
+const TlUserFingerPrintDef = fields.Def
+const TableName = fields.Name
+const TableFields = Object.keys(fields.Def).map(key => fields.Def[key])
+const { tlConsoleError, tlConsole } = require("../../utils/utils");
+
+/**
+ * addInfo 接口
+ * @param {*} data
+ */
+const addInfo = async function({
+ userId, fingerPrint
+}){
+ // 参数校验
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return {}
+ }
+
+ if(!fingerPrint){
+ tlConsoleError(TableName, "请求service参数fingerPrint为空")
+ return {}
+ }
+
+ const info = await TlUserFingerPrintDao.addInfo({
+ [TlUserFingerPrintDef.user_id]: userId,
+ [TlUserFingerPrintDef.finger_print]: fingerPrint,
+ })
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * addInfoList 接口
+ * @param {*} userId
+ * @param {*} dataList
+ */
+const addInfoList = async function({
+ userId, dataList
+}){
+ // 参数校验
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return {}
+ }
+
+ if(!dataList){
+ tlConsoleError(TableName, "请求service参数dataList为空")
+ return {}
+ }
+
+ let addDataList = []
+
+ for(let i = 0; i < dataList.length; i++){
+ const fingerPrint = dataList[i]
+ if(!fingerPrint){
+ tlConsoleError(TableName, "请求service参数fingerPrint为空")
+ return {}
+ }
+ addDataList.push({
+ [TlUserFingerPrintDef.user_id]: userId,
+ [TlUserFingerPrintDef.finger_print]: fingerPrint,
+ })
+ }
+
+ const list = await TlUserFingerPrintDao.addList(addDataList)
+
+ if(list === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return list
+}
+
+/**
+ * getInfoById 接口
+ * @param {*} id
+ * @param {*} fields
+ */
+const getInfoById = async function({id}, fields){
+ // 参数校验
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ const info = await TlUserFingerPrintDao.getInfo({
+ [TlUserFingerPrintDef.id]: id
+ }, fields)
+
+ if(info === null){
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * updateInfoById 接口
+ * @param {*} id
+ * @param {*} data
+ */
+const updateInfoById = async function({id}, data){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求service参数为空")
+ return {}
+ }
+
+ // 参数校验
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ const info = await TlUserFingerPrintDao.updateInfo({
+ [TlUserFingerPrintDef.id]: id
+ }, data)
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * deleteInfoById 接口
+ * @param {*} id
+ */
+const deleteInfoById = async function({id}){
+ // 参数校验
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ const info = await TlUserFingerPrintDao.deleteInfo({
+ [TlUserFingerPrintDef.id]: id
+ })
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getInfoByUserIdAndFingerPrint 接口
+ * @param {*} userId
+ * @param {*} fingerPrint
+ * @param {*} fields
+ */
+const getInfoByUserIdAndFingerPrint = async function({fingerPrint, userId}, fields){
+ // 参数校验
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return {}
+ }
+
+ if(!fingerPrint){
+ tlConsoleError(TableName, "请求service参数fingerPrint为空")
+ return {}
+ }
+
+ const info = await TlUserFingerPrintDao.getInfo({
+ [TlUserFingerPrintDef.finger_print]: fingerPrint,
+ [TlUserFingerPrintDef.user_id]: userId
+ }, fields, [
+ [TlUserFingerPrintDef.createdAt, 'DESC']
+ ])
+
+ if(info === null){
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getListByUserId 接口
+ * @param {*} userId
+ * @param {*} fields
+ */
+const getListByUserId = async function({userId}, fields){
+ // 参数校验
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+
+ const list = await TlUserFingerPrintDao.getList({
+ [TlUserFingerPrintDef.user_id]: userId
+ }, fields, [
+ [TlUserFingerPrintDef.createdAt, 'DESC']
+ ])
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByUserIdForPage 接口
+ * @param {*} userId
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByUserIdForPage = async function({userId}, fields, page, pageSize){
+ // 参数校验
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlUserFingerPrintDao.getListForPage({
+ [TlUserFingerPrintDef.user_id]: userId
+ }, fields, [
+ [TlUserFingerPrintDef.createdAt, 'DESC']
+ ], page, pageSize)
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByIdList 接口
+ * @param {*} idList
+ * @param {*} fields
+ */
+const getListByIdList = async function({idList}, fields){
+ // 参数校验
+ if(!idList){
+ tlConsoleError(TableName, "请求service参数idList为空")
+ return []
+ }
+
+ const list = await TlUserFingerPrintDao.getList({
+ [TlUserFingerPrintDef.id]: idList
+ }, fields, [
+ [TlUserFingerPrintDef.createdAt, 'DESC']
+ ])
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByIdListForPage 接口
+ * @param {*} idList
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByIdListForPage = async function({idList}, fields, page, pageSize){
+ // 参数校验
+ if(!idList){
+ tlConsoleError(TableName, "请求service参数idList为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlUserFingerPrintDao.getListForPage({
+ [TlUserFingerPrintDef.id]: idList
+ }, fields, [
+ [TlUserFingerPrintDef.createdAt, 'DESC']
+ ], page, pageSize)
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+
+/**
+ * getCountByFingerPrint 接口
+ * @param {*} fingerPrint
+ */
+const getCountByFingerPrint = async function({fingerPrint}){
+ // 参数校验
+ if(!fingerPrint){
+ tlConsoleError(TableName, "请求service参数fingerPrint为空")
+ return 0
+ }
+
+ const count = await TlUserFingerPrintDao.getCount({
+ [TlUserFingerPrintDef.finger_print]: fingerPrint
+ })
+
+ if(count === null){
+ return 0
+ }
+
+ return count
+}
+
+module.exports = {
+ addInfo,
+ addInfoList,
+ updateInfoById,
+ deleteInfoById,
+ getInfoById,
+ getInfoByUserIdAndFingerPrint,
+ getCountByFingerPrint,
+
+ getListByIdList,
+ getListByIdListForPage,
+ getListByUserId,
+ getListByUserIdForPage
+}
\ No newline at end of file
diff --git a/src/service/user/tl_user_friend_service.js b/src/service/user/tl_user_friend_service.js
new file mode 100644
index 0000000..616b1e6
--- /dev/null
+++ b/src/service/user/tl_user_friend_service.js
@@ -0,0 +1,1018 @@
+const { fields } = require('../../tables/tl_user_friend')
+const TlUserFirendDao = require('../../dao/tl_user_friend_dao')
+const TlUserFriendDef = fields.Def
+const TlUserFriendType = fields.FriendType
+const TlUserFriendStatus = fields.Status
+const TableName = fields.Name
+const TableFields = Object.keys(fields.Def).map(key => fields.Def[key])
+const { tlConsoleError, tlConsole } = require("../../../src/utils/utils");
+
+
+/**
+ * addInfo 接口
+ * @param {*} data
+ */
+const addInfo = async function({
+ companyId, userId, friendId, friendType, origin, remark, status, channelId, rename
+}){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return {}
+ }
+
+ if(!friendId){
+ tlConsoleError(TableName, "请求service参数friendId为空")
+ return {}
+ }
+
+ if(!friendType){
+ tlConsoleError(TableName, "请求service参数friendType为空")
+ return {}
+ }
+
+ if(![
+ TlUserFriendType.NORMAL,
+ TlUserFriendType.SPECIAL
+ ].includes(friendType)){
+ tlConsoleError(TableName, "请求service参数friendType不合法")
+ return {}
+ }
+
+ if(!origin){
+ tlConsoleError(TableName, "请求service参数origin为空")
+ return {}
+ }
+
+ if(!status){
+ tlConsoleError(TableName, "请求service参数status为空")
+ return {}
+ }
+
+ if(![
+ TlUserFriendStatus.NORMAL,
+ ].includes(status)){
+ tlConsoleError(TableName, "请求service参数status不合法")
+ return {}
+ }
+
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return {}
+ }
+
+ if(!rename){
+ tlConsoleError(TableName, "请求service参数rename为空")
+ return {}
+ }
+
+ const info = await TlUserFirendDao.addInfo({
+ [TlUserFriendDef.companyId]: companyId,
+ [TlUserFriendDef.userId]: userId,
+ [TlUserFriendDef.friendId]: friendId,
+ [TlUserFriendDef.friendType]: friendType,
+ [TlUserFriendDef.origin]: origin,
+ [TlUserFriendDef.remark]: remark,
+ [TlUserFriendDef.status]: status,
+ [TlUserFriendDef.flag]: 0,
+ [TlUserFriendDef.channelId]: channelId,
+ [TlUserFriendDef.rename]: rename
+ });
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getInfoById 接口
+ * @param {*} companyId
+ * @param {*} id
+ * @param {*} fields
+ */
+const getInfoById = async function({companyId, id}, fields){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ const info = await TlUserFirendDao.getInfo({
+ [TlUserFriendDef.companyId]: companyId,
+ [TlUserFriendDef.id]: id
+ }, fields);
+
+ if(info === null){
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getListByUserId 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} fields
+ */
+const getListByUserId = async function({companyId, userId}, fields){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+
+ const list = await TlUserFirendDao.getList({
+ [TlUserFriendDef.companyId]: companyId,
+ [TlUserFriendDef.userId]: userId
+ }, fields, [
+ [TlUserFriendDef.createdAt, 'DESc']
+ ]);
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByUserIdForPage 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByUserIdForPage = async function({companyId, userId}, fields, page, pageSize){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlUserFirendDao.getListForPage({
+ [TlUserFriendDef.companyId]: companyId,
+ [TlUserFriendDef.userId]: userId
+ }, fields, [
+ [TlUserFriendDef.createdAt, 'DESc']
+ ], page, pageSize);
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByFriendId 接口
+ * @param {*} companyId
+ * @param {*} friendId
+ * @param {*} fields
+ */
+const getListByFriendId = async function({companyId, friendId}, fields){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!friendId){
+ tlConsoleError(TableName, "请求service参数friendId为空")
+ return []
+ }
+
+ const list = await TlUserFirendDao.getList({
+ [TlUserFriendDef.companyId]: companyId,
+ [TlUserFriendDef.friendId]: friendId
+ }, fields, [
+ [TlUserFriendDef.createdAt, 'DESC']
+ ]);
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByFriendId 接口
+ * @param {*} companyId
+ * @param {*} friendId
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByFriendIdForPage = async function({companyId, friendId}, fields, page, pageSize){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!friendId){
+ tlConsoleError(TableName, "请求service参数friendId为空")
+ return []
+ }
+
+ const list = await TlUserFirendDao.getList({
+ [TlUserFriendDef.companyId]: companyId,
+ [TlUserFriendDef.friendId]: friendId
+ }, fields, [
+ [TlUserFriendDef.createdAt, 'DESC']
+ ], page, pageSize);
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getInfoByUserIdAndFriendId 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} friendId
+ * @param {*} fields
+ */
+const getInfoByUserIdAndFriendId = async function({companyId, userId, friendId}, fields){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return {}
+ }
+
+ if(!friendId){
+ tlConsoleError(TableName, "请求service参数friendId为空")
+ return {}
+ }
+
+ const info = await TlUserFirendDao.getInfo({
+ [TlUserFriendDef.companyId]: companyId,
+ [TlUserFriendDef.userId]: userId,
+ [TlUserFriendDef.friendId]: friendId
+ }, fields);
+
+ if(info === null){
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getInfoByChannelIdAndUserId 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} channelId
+ * @param {*} fields
+ */
+const getInfoByChannelIdAndUserId = async function({companyId, userId, channelId}, fields){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return {}
+ }
+
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return {}
+ }
+
+ const info = await TlUserFirendDao.getInfo({
+ [TlUserFriendDef.companyId]: companyId,
+ [TlUserFriendDef.userId]: userId,
+ [TlUserFriendDef.channelId]: channelId
+ }, fields);
+
+ if(info === null){
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getListByUserIdAndFriendIdList 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} friendIdList
+ * @param {*} fields
+ */
+const getListByUserIdAndFriendIdList = async function({companyId, userId, friendIdList}, fields){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+
+ if(!friendIdList){
+ tlConsoleError(TableName, "请求service参数friendIdList为空")
+ return []
+ }
+
+ const list = await TlUserFirendDao.getList({
+ [TlUserFriendDef.companyId]: companyId,
+ [TlUserFriendDef.userId]: userId,
+ [TlUserFriendDef.friendId]: friendIdList
+ }, fields, [
+ [TlUserFriendDef.createdAt, 'DESC']
+ ]);
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByUserIdAndFriendIdListForPage 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} friendIdList
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByUserIdAndFriendIdListForPage = async function({companyId, userId, friendIdList}, fields, page, pageSize){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+
+ if(!friendIdList){
+ tlConsoleError(TableName, "请求service参数friendIdList为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlUserFirendDao.getListForPage({
+ [TlUserFriendDef.companyId]: companyId,
+ [TlUserFriendDef.userId]: userId,
+ [TlUserFriendDef.friendId]: friendIdList
+ }, fields, [
+ [TlUserFriendDef.createdAt, 'DESC']
+ ], page, pageSize);
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByUserIdAndStatus 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} status
+ * @param {*} fields
+ */
+const getListByUserIdAndStatus = async function({companyId, userId, status}, fields){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+
+ if(!status){
+ tlConsoleError(TableName, "请求service参数status为空")
+ return []
+ }
+
+ const list = await TlUserFirendDao.getList({
+ [TlUserFriendDef.companyId]: companyId,
+ [TlUserFriendDef.userId]: userId,
+ [TlUserFriendDef.status]: status
+ }, fields, [
+ [TlUserFriendDef.createdAt, 'DESC']
+ ]);
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByUserIdAndStatusForPage 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} status
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByUserIdAndStatusForPage = async function({companyId, userId, status}, fields, page, pageSize){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+
+ if(!status){
+ tlConsoleError(TableName, "请求service参数status为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlUserFirendDao.getListForPage({
+ [TlUserFriendDef.companyId]: companyId,
+ [TlUserFriendDef.userId]: userId,
+ [TlUserFriendDef.status]: status
+ }, fields, [
+ [TlUserFriendDef.createdAt, 'DESC']
+ ], page, pageSize);
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByChannelId 接口
+ * @param {*} companyId
+ * @param {*} channelId
+ * @param {*} fields
+ */
+const getListByChannelId = async function({companyId, channelId}, fields){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+
+ const list = await TlUserFirendDao.getList({
+ [TlUserFriendDef.companyId]: companyId,
+ [TlUserFriendDef.channelId]: channelId,
+ }, fields, [
+ [TlUserFriendDef.createdAt, 'DESC']
+ ]);
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByChannelIdForPage 接口
+ * @param {*} companyId
+ * @param {*} channelId
+ * @param {*} fields
+ */
+const getListByChannelIdForPage = async function({companyId, channelId}, fields, page, pageSize){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlUserFirendDao.getListForPage({
+ [TlUserFriendDef.companyId]: companyId,
+ [TlUserFriendDef.channelId]: channelId,
+ }, fields, [
+ [TlUserFriendDef.createdAt, 'DESC']
+ ], page, pageSize);
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByFriendIdAndStatus 接口
+ * @param {*} companyId
+ * @param {*} status
+ * @param {*} friendId
+ * @param {*} fields
+ */
+const getListByFriendIdAndStatus = async function({companyId, friendId, status}, fields){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!friendId){
+ tlConsoleError(TableName, "请求service参数friendId为空")
+ return []
+ }
+
+ if(!status){
+ tlConsoleError(TableName, "请求service参数status为空")
+ return []
+ }
+
+ const list = await TlUserFirendDao.getList({
+ [TlUserFriendDef.companyId]: companyId,
+ [TlUserFriendDef.friendId]: friendId,
+ [TlUserFriendDef.status]: status
+ }, fields, [
+ [TlUserFriendDef.createdAt, 'DESC']
+ ]);
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByFriendIdAndStatusForpage 接口
+ * @param {*} companyId
+ * @param {*} status
+ * @param {*} friendId
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByFriendIdAndStatusForpage = async function({companyId, friendId, status}, fields, page, pageSize){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!friendId){
+ tlConsoleError(TableName, "请求service参数friendId为空")
+ return []
+ }
+
+ if(!status){
+ tlConsoleError(TableName, "请求service参数status为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlUserFirendDao.getListForPage({
+ [TlUserFriendDef.companyId]: companyId,
+ [TlUserFriendDef.friendId]: friendId,
+ [TlUserFriendDef.status]: status
+ }, fields, [
+ [TlUserFriendDef.createdAt, 'DESC']
+ ], page, pageSize);
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByUserIdAndFriendType 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} friendType
+ * @param {*} fields
+ */
+const getListByUserIdAndFriendType = async function({companyId, userId, friendType}, fields){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+
+ if(!friendType){
+ tlConsoleError(TableName, "请求service参数friendType为空")
+ return []
+ }
+
+ const list = await TlUserFirendDao.getList({
+ [TlUserFriendDef.companyId]: companyId,
+ [TlUserFriendDef.userId]: userId,
+ [TlUserFriendDef.friendType]: friendType
+ }, fields, [
+ [TlUserFriendDef.createdAt, 'DESC']
+ ]);
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByUserIdAndFriendTypeForPage 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} friendType
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByUserIdAndFriendTypeForPage = async function({companyId, userId, friendType}, fields, page, pageSize){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+
+ if(!friendType){
+ tlConsoleError(TableName, "请求service参数friendType为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlUserFirendDao.getListForPage({
+ [TlUserFriendDef.companyId]: companyId,
+ [TlUserFriendDef.userId]: userId,
+ [TlUserFriendDef.friendType]: friendType
+ }, fields, [
+ [TlUserFriendDef.createdAt, 'DESC']
+ ], page, pageSize);
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * deleteInfoById 接口
+ * @param {*} companyId
+ * @param {*} id
+ */
+const deleteInfoById = async function({companyId, id}){
+ // 参数校验
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlUserFirendDao.deleteInfo({
+ [TlUserFriendDef.companyId]: companyId,
+ [TlUserFriendDef.id]: id
+ });
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * deleteInfoByUserId 接口
+ * @param {*} companyId
+ * @param {*} userId
+ */
+const deleteInfoByUserId = async function({companyId, userId}){
+ // 参数校验
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlUserFirendDao.deleteInfo({
+ [TlUserFriendDef.companyId]: companyId,
+ [TlUserFriendDef.userId]: userId
+ });
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * deleteInfoByUserIdAndFriendId 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} friendId
+ */
+const deleteInfoByUserIdAndFriendId = async function({companyId, userId, friendId}){
+ // 参数校验
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return {}
+ }
+
+ if(!friendId){
+ tlConsoleError(TableName, "请求service参数friendId为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlUserFirendDao.deleteInfo({
+ [TlUserFriendDef.companyId]: companyId,
+ [TlUserFriendDef.userId]: userId,
+ [TlUserFriendDef.friendId]: friendId
+ });
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * updateInfoById 接口
+ * @param {*} companyId
+ * @param {*} id
+ * @param {*} data
+ */
+const updateInfoById = async function({companyId, id}, data){
+ // 参数校验
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlUserFirendDao.updateInfo({
+ [TlUserFriendDef.companyId]: companyId,
+ [TlUserFriendDef.id]: id,
+ }, data);
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+
+module.exports = {
+ addInfo,
+ getInfoById,
+ getInfoByUserIdAndFriendId,
+ deleteInfoById,
+ deleteInfoByUserId,
+ deleteInfoByUserIdAndFriendId,
+ updateInfoById,
+ getInfoByChannelIdAndUserId,
+
+ getListByUserIdAndFriendIdList,
+ getListByUserIdAndFriendIdListForPage,
+ getListByUserIdAndFriendType,
+ getListByUserIdAndFriendTypeForPage,
+ getListByUserId,
+ getListByUserIdForPage,
+ getListByFriendId,
+ getListByFriendIdForPage,
+ getListByUserIdAndStatus,
+ getListByUserIdAndStatusForPage,
+ getListByFriendIdAndStatus,
+ getListByFriendIdAndStatusForpage,
+ getListByChannelId,
+ getListByChannelIdForPage
+}
\ No newline at end of file
diff --git a/src/service/user/tl_user_read_service.js b/src/service/user/tl_user_read_service.js
new file mode 100644
index 0000000..f527418
--- /dev/null
+++ b/src/service/user/tl_user_read_service.js
@@ -0,0 +1,677 @@
+const { fields } = require('../../tables/tl_user_read')
+const TlUserReadDao = require('../../dao/tl_user_read_dao')
+const TlUserReadDef = fields.Def
+const TlUserReadType = fields.Type
+const TableName = fields.Name
+const TableFields = Object.keys(fields.Def).map(key => fields.Def[key])
+const { tlConsoleError, tlConsole } = require("../../../src/utils/utils");
+
+/**
+ * addInfo 接口
+ * @param {*} data
+ */
+const addInfo = async function({
+ companyId, channelId, userId, type, latestReadId, recordId
+}){
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return {}
+ }
+
+ if(!type){
+ tlConsoleError(TableName, "请求service参数type为空")
+ return {}
+ }
+
+ if(![
+ TlUserReadType.CHAT,
+ TlUserReadType.MEDIA,
+ TlUserReadType.FILE,
+ TlUserReadType.FRIEND_APPLY,
+ TlUserReadType.FRIEND_APPLY_PASS,
+ TlUserReadType.FRIEND_APPLY_REJECT,
+ ].includes(type)){
+ tlConsoleError(TableName, "请求service参数type不合法")
+ return {}
+ }
+
+ if([
+ TlUserReadType.CHAT,
+ TlUserReadType.MEDIA,
+ TlUserReadType.FILE,
+ ].includes[type]){
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return {}
+ }
+
+ if(!latestReadId){
+ tlConsoleError(TableName, "请求service参数latestChatId为空")
+ return {}
+ }
+ }
+
+ if([
+ TlUserReadType.FRIEND_APPLY,
+ TlUserReadType.FRIEND_APPLY_PASS,
+ TlUserReadType.FRIEND_APPLY_REJECT,
+ ].includes[type]){
+ if(!recordId){
+ tlConsoleError(TableName, "请求service参数recordId为空")
+ return {}
+ }
+ }
+
+ if(!recordId){
+ recordId = 0
+ }
+
+ if(!latestReadId) {
+ latestReadId = 0
+ }
+
+ if(!channelId){
+ channelId = 0
+ }
+
+ const info = await TlUserReadDao.addInfo({
+ [TlUserReadDef.companyId] : companyId,
+ [TlUserReadDef.channelId] : channelId,
+ [TlUserReadDef.userId] : userId,
+ [TlUserReadDef.type] : type,
+ [TlUserReadDef.latestReadId] : latestReadId,
+ [TlUserReadDef.recordId] : recordId,
+ })
+
+ if(info == null){
+ tlConsoleError(TableName, "请求service参数为空")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getInfoById 接口
+ * @param {*} companyId
+ * @param {*} id
+ * @param {*} fields
+ */
+const getInfoById = async function({companyId, id}, fields){
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ const info = await TlUserReadDao.getInfo({
+ [TlUserReadDef.companyId] : companyId,
+ [TlUserReadDef.id] : id,
+ }, fields)
+
+ if(info == null){
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getListByUserId 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} fields
+ */
+const getListByUserId = async function({companyId, userId}, fields){
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ const list = await TlUserReadDao.getList({
+ [TlUserReadDef.companyId]: companyId,
+ [TlUserReadDef.userId]: userId,
+ }, fields, [
+ [TlUserReadDef.createdAt, "DESC"]
+ ])
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByUserIdForPage 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByUserIdForPage = async function({companyId, userId}, fields, page, pageSize){
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlUserReadDao.getListForPage({
+ [TlUserReadDef.companyId]: companyId,
+ [TlUserReadDef.userId]: userId,
+ }, fields, [
+ [TlUserReadDef.createdAt, "DESC"]
+ ], page, pageSize)
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByUserIdTypeList 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} typeList
+ * @param {*} fields
+ */
+const getListByUserIdTypeList = async function({companyId, userId, typeList}, fields){
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!typeList){
+ tlConsoleError(TableName, "请求service参数typeList为空")
+ return []
+ }
+
+ const list = await TlUserReadDao.getList({
+ [TlUserReadDef.companyId]: companyId,
+ [TlUserReadDef.userId]: userId,
+ [TlUserReadDef.type]: typeList,
+ }, fields, [
+ [TlUserReadDef.createdAt, "DESC"]
+ ])
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByUserIdTypeListForPage 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} typeList
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByUserIdTypeListForPage = async function({companyId, userId, typeList}, fields, page, pageSize){
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!typeList){
+ tlConsoleError(TableName, "请求service参数typeList为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlUserReadDao.getListForPage({
+ [TlUserReadDef.companyId]: companyId,
+ [TlUserReadDef.userId]: userId,
+ [TlUserReadDef.type]: typeList,
+ }, fields, [
+ [TlUserReadDef.createdAt, "DESC"]
+ ], page, pageSize)
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByChannelId 接口
+ * @param {*} companyId
+ * @param {*} channelId
+ * @param {*} fields
+ */
+const getListByChannelId = async function({companyId, channelId}, fields){
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ const list = await TlUserReadDao.getList({
+ [TlUserReadDef.companyId]: companyId,
+ [TlUserReadDef.channelId]: channelId,
+ }, fields, [
+ [TlUserReadDef.createdAt, "DESC"]
+ ])
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByChannelIdForPage 接口
+ * @param {*} companyId
+ * @param {*} channelId
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByChannelIdForPage = async function({companyId, channelId}, fields, page, pageSize){
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlUserReadDao.getListForPage({
+ [TlUserReadDef.companyId]: companyId,
+ [TlUserReadDef.channelId]: channelId,
+ }, fields, [
+ [TlUserReadDef.createdAt, "DESC"]
+ ], page, pageSize)
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByChannelUserId 接口
+ * @param {*} companyId
+ * @param {*} channelId
+ * @param {*} userId
+ * @param {*} fields
+ */
+const getListByChannelUserId = async function({companyId, channelId, userId}, fields){
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return []
+ }
+
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ const list = await TlUserReadDao.getList({
+ [TlUserReadDef.companyId]: companyId,
+ [TlUserReadDef.channelId]: channelId,
+ [TlUserReadDef.userId]: userId,
+ }, fields, [
+ [TlUserReadDef.createdAt, "DESC"]
+ ])
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByChannelUserIdForPage 接口
+ * @param {*} companyId
+ * @param {*} channelId
+ * @param {*} userId
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByChannelUserIdForPage = async function({companyId, channelId, userId}, fields, page, pageSize){
+ if(!channelId){
+ tlConsoleError(TableName, "请求service参数channelId为空")
+ return []
+ }
+
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlUserReadDao.getListForPage({
+ [TlUserReadDef.companyId]: companyId,
+ [TlUserReadDef.channelId]: channelId,
+ [TlUserReadDef.userId]: userId,
+ }, fields, [
+ [TlUserReadDef.createdAt, "DESC"]
+ ], page, pageSize)
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * updateInfoById 接口
+ * @param {*} companyId
+ * @param {*} id
+ * @param {*} data
+ */
+const updateInfoById = async function({companyId, id}, data){
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求service参数data为空")
+ return {}
+ }
+
+ const info = await TlUserReadDao.updateInfo({
+ [TlUserReadDef.companyId]: companyId,
+ [TlUserReadDef.id]: id,
+ }, data)
+
+ if(info == null){
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * updateInfoByUserId 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} data
+ */
+const updateInfoByUserId = async function({companyId, userId}, data){
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求service参数data为空")
+ return {}
+ }
+
+ const info = await TlUserReadDao.updateInfo({
+ [TlUserReadDef.companyId]: companyId,
+ [TlUserReadDef.userId]: userId,
+ }, data)
+
+ if(info == null){
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * deleteInfoById 接口
+ * @param {*} companyId
+ * @param {*} id
+ */
+const deleteInfoById = async function({companyId, id}){
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlUserReadDao.deleteInfo({
+ [TlUserReadDef.companyId]: companyId,
+ [TlUserReadDef.id]: id,
+ })
+
+ if(info == null){
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getListByUserIdTypeListAndChannelIdList 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} typeList
+ * @param {*} channelIdList
+ * @param {*} fields
+ */
+const getListByUserIdTypeListAndChannelIdList = async function({companyId, userId, typeList, channelIdList}, fields){
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!typeList){
+ tlConsoleError(TableName, "请求service参数typeList为空")
+ return []
+ }
+
+ if(!channelIdList){
+ tlConsoleError(TableName, "请求service参数channelIdList为空")
+ return []
+ }
+
+ if(channelIdList.length === 0){
+ tlConsoleError(TableName, "请求service参数channelIdList为空")
+ return []
+ }
+
+ const list = await TlUserReadDao.getList({
+ [TlUserReadDef.companyId]: companyId,
+ [TlUserReadDef.userId]: userId,
+ [TlUserReadDef.type]: typeList,
+ [TlUserReadDef.channelId]: channelIdList,
+ }, fields, [
+ [TlUserReadDef.createdAt, "DESC"]
+ ])
+
+ if(list == null){
+ return []
+ }
+
+ return list
+}
+
+
+
+module.exports = {
+ addInfo,
+ getInfoById,
+ updateInfoById,
+ updateInfoByUserId,
+ deleteInfoById,
+
+ getListByUserId,
+ getListByUserIdForPage,
+ getListByChannelId,
+ getListByChannelIdForPage,
+ getListByChannelUserId,
+ getListByChannelUserIdForPage,
+ getListByUserIdTypeList,
+ getListByUserIdTypeListForPage,
+
+ getListByUserIdTypeListAndChannelIdList,
+}
\ No newline at end of file
diff --git a/src/service/user/tl_user_service.js b/src/service/user/tl_user_service.js
new file mode 100644
index 0000000..d5fb48e
--- /dev/null
+++ b/src/service/user/tl_user_service.js
@@ -0,0 +1,466 @@
+const { fields } = require('../../tables/tl_user')
+const TlUserDao = require('../../dao/tl_user_dao')
+const TlUserDef = fields.Def
+const TableName = fields.Name
+const TableFields = Object.keys(fields.Def).map(key => fields.Def[key])
+const { tlConsoleError, tlConsole } = require("../../../src/utils/utils");
+const { get } = require('request')
+
+/**
+ * addInfo 接口
+ * @param {*} data
+ */
+const addInfo = async function({
+ companyId, name, password, roleId, salt, mobile, email, avatarUrl,
+ wchatName, wchatOpenId, wchatUnionId, wchatAvatarUrl, flag,
+}){
+ // 参数校验
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ if(!name){
+ tlConsoleError(TableName, "请求service参数name为空")
+ return {}
+ }
+
+ if(!password){
+ tlConsoleError(TableName, "请求service参数password为空")
+ return {}
+ }
+
+ if(!roleId){
+ tlConsoleError(TableName, "请求service参数roleId为空")
+ return {}
+ }
+
+ if(!salt){
+ tlConsoleError(TableName, "请求service参数salt为空")
+ return {}
+ }
+
+ if(!mobile){
+ mobile = ""
+ }
+
+ if(!email){
+ email = ""
+ }
+
+ if(!avatarUrl){
+ avatarUrl = ""
+ }
+
+ if(!wchatName){
+ wchatName = ""
+ }
+
+ if(!wchatOpenId){
+ wchatOpenId = ""
+ }
+
+ if(!wchatUnionId){
+ wchatUnionId = ""
+ }
+
+ if(!wchatAvatarUrl){
+ wchatAvatarUrl = ""
+ }
+
+ if(!flag){
+ flag = 0
+ }
+
+ const info = await TlUserDao.addInfo({
+ [TlUserDef.companyId]: companyId,
+ [TlUserDef.name]: name,
+ [TlUserDef.password]: password,
+ [TlUserDef.roleId]: roleId,
+ [TlUserDef.salt]: salt,
+ [TlUserDef.mobile]: mobile,
+ [TlUserDef.email]: email,
+ [TlUserDef.avatarUrl]: avatarUrl,
+ [TlUserDef.wchatName]: wchatName,
+ [TlUserDef.wchatOpenId]: wchatOpenId,
+ [TlUserDef.wchatUnionId]: wchatUnionId,
+ [TlUserDef.wchatAvatarUrl]: wchatAvatarUrl,
+ [TlUserDef.flag]: flag,
+ })
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getInfoById 接口
+ * @param {*} companyId
+ * @param {*} id
+ * @param {*} fields
+ * @returns
+ */
+const getInfoById = async function({companyId, id}, fields){
+ // 参数校验
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlUserDao.getInfo({
+ [TlUserDef.companyId]: companyId,
+ [TlUserDef.id]: id
+ }, fields)
+
+ if(info === null){
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getInfoByName 接口
+ * @param {*} name
+ * @param {*} companyId
+ * @param {*} fields
+ * @returns
+ */
+const getInfoByName = async function({companyId, name}, fields){
+ // 参数校验
+ if(!name){
+ tlConsoleError(TableName, "请求service参数name为空")
+ return {}
+ }
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlUserDao.getInfo({
+ [TlUserDef.companyId]: companyId,
+ [TlUserDef.name]: name
+ }, fields)
+
+ if(info === null){
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getInfoByNameForLogin 接口
+ * @param {*} name
+ * @param {*} fields
+ * @returns
+ */
+const getInfoByNameForLogin = async function({name}, fields){
+ // 参数校验
+ if(!name){
+ tlConsoleError(TableName, "请求service参数name为空")
+ return {}
+ }
+
+ const info = await TlUserDao.getInfo({
+ [TlUserDef.name]: name
+ }, fields)
+
+ if(info === null){
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getInfoByMobile 接口
+ * @param {*} mobile
+ * @param {*} companyId
+ * @param {*} fields
+ * @returns
+ */
+const getInfoByMobile = async function({companyId, mobile}, fields){
+ // 参数校验
+ if(!mobile){
+ tlConsoleError(TableName, "请求service参数mobile为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlUserDao.getInfo({
+ [TlUserDef.companyId]: companyId,
+ [TlUserDef.mobile]: mobile
+ }, fields)
+
+ if(info === null){
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getInfoByMobileForLogin 接口
+ * @param {*} mobile
+ * @param {*} fields
+ * @returns
+ */
+const getInfoByMobileForLogin = async function({mobile}, fields){
+ // 参数校验
+ if(!mobile){
+ tlConsoleError(TableName, "请求service参数mobile为空")
+ return {}
+ }
+
+ const info = await TlUserDao.getInfo({
+ [TlUserDef.mobile]: mobile
+ }, fields)
+
+ if(info === null){
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getInfoByEmail 接口
+ * @param {*} email
+ * @param {*} companyId
+ * @param {*} fields
+ * @returns
+ */
+const getInfoByEmail = async function({companyId, email}, fields){
+ // 参数校验
+ if(!email){
+ tlConsoleError(TableName, "请求service参数email为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlUserDao.getInfo({
+ [TlUserDef.companyId]: companyId,
+ [TlUserDef.email]: email
+ }, fields)
+
+ if(info === null){
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getInfoByEmailForLogin 接口
+ * @param {*} email
+ * @param {*} fields
+ * @returns
+ */
+const getInfoByEmailForLogin = async function({email}, fields){
+ // 参数校验
+ if(!email){
+ tlConsoleError(TableName, "请求service参数email为空")
+ return {}
+ }
+
+ const info = await TlUserDao.getInfo({
+ [TlUserDef.email]: email
+ }, fields)
+
+ if(info === null){
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * updateInfoById 接口
+ * @param {*} companyId
+ * @param {*} id
+ * @param {*} data
+ */
+const updateInfoById = async function({companyId, id}, data){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求service参数为空")
+ return {}
+ }
+
+ // 参数校验
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlUserDao.updateInfo({
+ [TlUserDef.companyId]: companyId,
+ [TlUserDef.id]: id
+ }, data)
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * deleteInfoById 接口
+ * @param {*} companyId
+ * @param {*} id
+ */
+const deleteInfoById = async function({companyId, id}){
+ // 参数校验
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlUserDao.deleteInfo({
+ [TlUserDef.companyId]: companyId,
+ [TlUserDef.id]: id
+ })
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getListByIdList 接口
+ * @param {*} companyId
+ * @param {*} idList
+ * @param {*} fields
+ */
+const getListByIdList = async function({companyId, idList}, fields){
+ // 参数校验
+ if(!idList){
+ tlConsoleError(TableName, "请求service参数idList为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ const list = await TlUserDao.getList({
+ [TlUserDef.companyId]: companyId,
+ [TlUserDef.id]: idList
+ }, fields, [
+ [TlUserDef.createdAt, "DESC"]
+ ])
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByIdListForPage 接口
+ * @param {*} companyId
+ * @param {*} idList
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByIdListForPage = async function({companyId, idList}, fields, page, pageSize){
+ // 参数校验
+ if(!idList){
+ tlConsoleError(TableName, "请求service参数idList为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlUserDao.getListForPage({
+ [TlUserDef.companyId]: companyId,
+ [TlUserDef.id]: idList
+ }, fields, [
+ [TlUserDef.createdAt, "DESC"]
+ ], page, pageSize)
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+
+
+module.exports = {
+ addInfo,
+ updateInfoById,
+ deleteInfoById,
+ getInfoByName,
+ getInfoById,
+ getInfoByMobile,
+ getInfoByEmail,
+ getInfoByNameForLogin,
+ getInfoByMobileForLogin,
+ getInfoByEmailForLogin,
+
+ getListByIdList,
+ getListByIdListForPage
+}
\ No newline at end of file
diff --git a/src/service/user/tl_user_session_service.js b/src/service/user/tl_user_session_service.js
new file mode 100644
index 0000000..3e05714
--- /dev/null
+++ b/src/service/user/tl_user_session_service.js
@@ -0,0 +1,223 @@
+const {
+ tlResponseArgsError, tlResponseForbidden, tlResponseSvrError,
+ tlResponseTimeout, tlResponseNotFound, tlResponseSuccess,
+ tlConsole, tlConsoleError
+} = require('../../utils/utils')
+const uuid = require('uuid')
+const cache = require('../../utils/cache/cache')
+const {
+ USER_KEYS
+} = require('../../utils/cache/cache_key')
+
+
+/**
+ * 通过token获取用户信息
+ * @param {*} token
+ */
+const getUserInfoByToken = async function({token}){
+ if(!token){
+ return {}
+ }
+
+ let info = await cache.getLoginInfo({token})
+
+ if(!info){
+ return {}
+ }
+
+ try{
+ info = JSON.parse(info)
+ }catch(e){
+ tlConsoleError(e)
+ info = null
+ }
+
+ return info
+}
+
+/**
+ * 通过token设置用户信息
+ * @param {*} token
+ * @param {*} info
+ * @param {*} isLogin
+ * @param {*} isWebsite
+ */
+const setUserInfoByToken = async function({
+ token, info, isLogin = true, isWebsite = false
+}){
+ if(!token){
+ return {}
+ }
+
+ let jsonInfo = null;
+
+ try{
+ jsonInfo = JSON.stringify(info)
+ }catch(e){
+ tlConsoleError(e)
+ }
+
+ if(!jsonInfo){
+ return false
+ }
+
+ let loginUserId = info.loginUserId
+
+ if(isLogin){
+ // 设置userId在线状态
+ await cache.setLoginStatus({
+ userId: loginUserId,
+ status: 1,
+ isWebsite
+ })
+ // 设置token登录态
+ return await cache.setLoginInfo({
+ token, loginInfo: jsonInfo, isWebsite
+ })
+ }else{
+ // 设置userId在线状态
+ await cache.setLoginStatus({
+ userId: loginUserId,
+ status: 0,
+ isWebsite
+ })
+ // 设置token登录态
+ return await cache.setLoginInfo({
+ token, loginInfo: '', isWebsite
+ })
+ }
+}
+
+
+/**
+ * 通过userIdList获取登录状态
+ * @param {*} userIdList
+ */
+const getUserLoginStatusByIdList = async function({userIdList}){
+ if(!userIdList || userIdList.length === 0){
+ return {}
+ }
+
+ let statusMap = {}
+
+ let resultList = await cache.getLoginStatusList({userIdList})
+
+ resultList.forEach((status, index) => {
+ if(parseInt(status) === 1){
+ status = 1
+ }else{
+ status = 0
+ }
+ statusMap[parseInt(userIdList[index])] = status
+ })
+
+ return statusMap
+}
+
+
+/**
+ * 设置登录用户频道权限
+ * @param {*} userId
+ * @param {*} channelRoleMap
+ * @returns
+ */
+const setUserChannelRoleMap = async function({userId, channelRoleMap}){
+ return await cache.setUserChannelRoleMap({userId, channelRoleMap})
+}
+
+/**
+ * 更新登录用户频道权限
+ * @param {*} userId
+ * @param {*} channelRoleMap
+ */
+const updateUserChannelRoleMap = async function({userId, channelRoleMap}){
+ return await cache.updateUserChannelRoleMap({userId, channelRoleMap})
+}
+
+/**
+ * 批量更新登录用户频道权限
+ * @param {*} userIdList
+ * @param {*} channelRoleMap
+ */
+const batchUpdateUserChannelRoleMap = async function({userIdList, channelRoleMap}){
+ return await cache.batchUpdateUserChannelRoleMap({userIdList, channelRoleMap})
+}
+
+/**
+ * 获取登录用户所有频道权限
+ * @param {*} userId
+ * @param {*} channelId
+ * @returns
+ */
+const getUserChannelRoleMap = async function({userId}){
+ return await cache.getUserChannelRoleMap({userId})
+}
+
+/**
+ * 获取登录用户频道权限
+ * @param {*} userId
+ * @param {*} channelId
+ * @returns
+ */
+const getUserChannelRole = async function({userId, channelId}){
+ return await cache.getUserChannelRole({userId, channelId})
+}
+
+
+/**
+ * 设置邮箱验证码
+ * @param {*} email
+ * @param {*} code
+ */
+const setEmailCode = async function({email, code}){
+ return await cache.setEmailCode({email, code})
+}
+
+/**
+ * 获取邮箱验证码
+ * @param {*} email
+ */
+const getEmailCode = async function({email}){
+ return await cache.getEmailCode({email})
+}
+
+/**
+ * 设置手机号验证码
+ * @param {*} mobile
+ * @param {*} code
+ */
+const setMobileCode = async function({mobile, code}){
+ return await cache.setPhoneCode({mobile, code})
+}
+
+/**
+ * 获取手机号验证码
+ * @param {*} mobile
+ */
+const getMobileCode = async function({mobile}){
+ return await cache.getPhoneCode({mobile})
+}
+
+/**
+ * 生成token
+ */
+const generateLoginToken = function(){
+ return uuid.v4()
+}
+
+
+module.exports = {
+ getUserInfoByToken,
+ setUserInfoByToken,
+ generateLoginToken,
+ getUserLoginStatusByIdList,
+ setEmailCode,
+ getEmailCode,
+ setMobileCode,
+ getMobileCode,
+ setUserChannelRoleMap,
+ getUserChannelRoleMap,
+ getUserChannelRole,
+ updateUserChannelRoleMap,
+ batchUpdateUserChannelRoleMap
+}
\ No newline at end of file
diff --git a/src/service/user/tl_user_tag_service.js b/src/service/user/tl_user_tag_service.js
new file mode 100644
index 0000000..2d78d40
--- /dev/null
+++ b/src/service/user/tl_user_tag_service.js
@@ -0,0 +1,365 @@
+const { Op } = require('sequelize')
+const moment = require('moment')
+const { fields } = require('../../tables/tl_user_tag')
+const TlUserTagDao = require('../../dao/tl_user_tag_dao')
+const TlUserTagDef = fields.Def
+const TlUserTagType = fields.Type
+const TableName = fields.Name
+const TableFields = Object.keys(fields.Def).map(key => fields.Def[key])
+const { tlConsoleError, tlConsole } = require("../../utils/utils");
+
+/**
+ * addInfo 接口
+ * @param {*} data
+ */
+const addInfo = async function({
+ name, type, userId, companyId
+}){
+ // 参数校验
+ if(!name){
+ tlConsoleError(TableName, "请求service参数name为空")
+ return {}
+ }
+
+ if(!type){
+ tlConsoleError(TableName, "请求service参数type为空")
+ return {}
+ }
+
+ if(![
+ TlUserTagType.CHANNEL,
+ TlUserTagType.CLOUD,
+ TlUserTagType.FRIEND,
+ ].includes(type)){
+ tlConsoleError(TableName, "请求service参数type不合法")
+ return {}
+ }
+
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlUserTagDao.addInfo({
+ [TlUserTagDef.name]: name,
+ [TlUserTagDef.type]: type,
+ [TlUserTagDef.userId]: userId,
+ [TlUserTagDef.companyId]: companyId
+ })
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getInfoById 接口
+ * @param {*} id
+ * @param {*} fields
+ * @param {*} companyId
+ */
+const getInfoById = async function({id, companyId}, fields){
+ // 参数校验
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlUserTagDao.getInfo({
+ [TlUserTagDef.id]: id
+ }, fields)
+
+ if(info === null){
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * updateInfoById 接口
+ * @param {*} id
+ * @param {*} data
+ * @param {*} companyId
+ */
+const updateInfoById = async function({id, companyId}, data){
+ if(Object.keys(data).length === 0){
+ tlConsoleError(TableName, "请求service参数为空")
+ return {}
+ }
+
+ // 参数校验
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlUserTagDao.updateInfo({
+ [TlUserTagDef.id]: id
+ }, data)
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * deleteInfoById 接口
+ * @param {*} id
+ * @param {*} companyId
+ */
+const deleteInfoById = async function({id, companyId}){
+ // 参数校验
+ if(!id){
+ tlConsoleError(TableName, "请求service参数id为空")
+ return {}
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return {}
+ }
+
+ const info = await TlUserTagDao.deleteInfo({
+ [TlUserTagDef.id]: id,
+ [TlUserTagDef.companyId]: companyId
+ })
+
+ if(info === null){
+ tlConsoleError(TableName, "请求dao异常")
+ return {}
+ }
+
+ return info
+}
+
+/**
+ * getListByIdList 接口
+ * @param {*} idList
+ * @param {*} companyId
+ * @param {*} fields
+ */
+const getListByIdList = async function({idList, companyId}, fields){
+ // 参数校验
+ if(!idList){
+ tlConsoleError(TableName, "请求service参数idList为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ const list = await TlUserTagDao.getList({
+ [TlUserTagDef.id]: idList,
+ [TlUserTagDef.companyId]: companyId
+ }, fields, [
+ [TlUserTagDef.createdAt, 'DESC']
+ ])
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByIdListForPage 接口
+ * @param {*} idList
+ * @param {*} companyId
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByIdListForPage = async function({idList, companyId}, fields, page, pageSize){
+ // 参数校验
+ if(!idList){
+ tlConsoleError(TableName, "请求service参数idList为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlUserTagDao.getListForPage({
+ [TlUserTagDef.id]: idList
+ }, fields, [
+ [TlUserTagDef.createdAt, 'DESC']
+ ], page, pageSize)
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByUserIdAndType 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} type
+ * @param {*} fields
+ */
+const getListByUserIdAndType = async function({ companyId, userId, type }, fields){
+ // 参数校验
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+
+ if(!type){
+ tlConsoleError(TableName, "请求service参数type为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ const list = await TlUserTagDao.getList({
+ [TlUserTagDef.companyId]: companyId,
+ [TlUserTagDef.userId]: userId,
+ [TlUserTagDef.type]: type
+ }, fields, [
+ [TlUserTagDef.createdAt, 'DESC']
+ ])
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+/**
+ * getListByUserIdAndTypeForPage 接口
+ * @param {*} companyId
+ * @param {*} userId
+ * @param {*} type
+ * @param {*} fields
+ * @param {*} page
+ * @param {*} pageSize
+ */
+const getListByUserIdAndTypeForPage = async function({ companyId, userId, type }, fields, page, pageSize){
+ // 参数校验
+ if(!userId){
+ tlConsoleError(TableName, "请求service参数userId为空")
+ return []
+ }
+
+ if(!companyId){
+ tlConsoleError(TableName, "请求service参数companyId为空")
+ return []
+ }
+
+ if(!type){
+ tlConsoleError(TableName, "请求service参数type为空")
+ return []
+ }
+
+ if(!page){
+ tlConsoleError(TableName, "请求service参数page为空")
+ return []
+ }
+
+ if(!pageSize){
+ tlConsoleError(TableName, "请求service参数pageSize为空")
+ return []
+ }
+
+ if(page <= 0){
+ tlConsoleError(TableName, "请求service参数page不合法")
+ return []
+ }
+
+ if(pageSize <= 0){
+ tlConsoleError(TableName, "请求service参数pageSize不合法")
+ return []
+ }
+
+ if(pageSize > 1000){
+ tlConsoleError(TableName, "请求service参数pageSize过大")
+ return []
+ }
+
+ const list = await TlUserTagDao.getListForPage({
+ [TlUserTagDef.companyId]: companyId,
+ [TlUserTagDef.userId]: userId,
+ [TlUserTagDef.type]: type
+ }, fields, [
+ [TlUserTagDef.createdAt, 'DESC']
+ ], page, pageSize)
+
+ if(list === null){
+ return []
+ }
+
+ return list
+}
+
+
+
+module.exports = {
+ addInfo,
+ updateInfoById,
+ deleteInfoById,
+ getInfoById,
+
+ getListByIdList,
+ getListByIdListForPage,
+
+ getListByUserIdAndType,
+ getListByUserIdAndTypeForPage
+}
\ No newline at end of file
diff --git a/src/socket/connect.js b/src/socket/connect.js
new file mode 100644
index 0000000..d22efbb
--- /dev/null
+++ b/src/socket/connect.js
@@ -0,0 +1,65 @@
+const socketCount = require("./handler/count");
+const socketExit = require("./handler/exit");
+const socketHeartbeat = require("./handler/heartbeat");
+const socketDisConnect = require("./handler/disconnect");
+const socketChannelChat = require("./handler/channel_chat");
+const socketChannelChatRollback = require("./handler/channel_chat_rollback");
+const socketContactApply = require('./handler/contact_apply')
+const socketContactApplyPass = require('./handler/contact_apply_pass')
+const socketContactApplyReject = require('./handler/contact_apply_reject')
+const socketAuth = require("./handler/auth");
+const {socketServerEvent} = require("./event");
+
+
+module.exports = (io, socket) => {
+ // 登陆态校验
+ socketAuth.auth(io, socket)
+
+ // 断开连接
+ socket.on(socketServerEvent.disconnect, (data)=>{
+ socketDisConnect.disconnect(io, socket, data)
+ });
+
+ // 在线人数统计
+ socket.on(socketServerEvent.count, (data) => {
+ socketCount.count(io, socket, data)
+ });
+
+ // 退出房间
+ socket.on(socketServerEvent.exit, (data) => {
+ socketExit.exit(io, socket, data)
+ });
+
+ // 心跳
+ socket.on(socketServerEvent.heartbeat, (data) => {
+ socketHeartbeat.heartbeat(io, socket, data)
+ });
+
+ // 广播聊天消息
+ socket.on(socketServerEvent.channelChat, (data) => {
+ socketChannelChat.channelChat(io, socket, data)
+ })
+
+ // 广播聊天消息撤回
+ socket.on(socketServerEvent.channelChatRollback, (data) => {
+ socketChannelChatRollback.channelChatRollback(io, socket, data)
+ })
+
+ // 广播好友申请消息
+ socket.on(socketServerEvent.contactApply, (data) => {
+ socketContactApply.contactApply(io, socket, data)
+ })
+
+ // 通过好友申请
+ socket.on(socketServerEvent.contactApplyPass, (data) => {
+ socketContactApplyPass.contactApplyPass(io, socket, data)
+ })
+
+ // 拒绝好友申请
+ socket.on(socketServerEvent.contactApplyReject, (data) => {
+ socketContactApplyReject.contactApplyReject(io, socket, data)
+ })
+
+ // 触发一次count
+ socketCount.count(io, socket, {})
+}
\ No newline at end of file
diff --git a/src/socket/event.js b/src/socket/event.js
new file mode 100644
index 0000000..a2aef22
--- /dev/null
+++ b/src/socket/event.js
@@ -0,0 +1,6 @@
+const socketServerEvent = require('./event/server_event');
+const socketClientEvent = require('./event/client_event');
+
+module.exports = {
+ socketClientEvent, socketServerEvent
+}
\ No newline at end of file
diff --git a/src/socket/event/client_event.js b/src/socket/event/client_event.js
new file mode 100644
index 0000000..e3a26f4
--- /dev/null
+++ b/src/socket/event/client_event.js
@@ -0,0 +1,27 @@
+/**
+ * 客户端监听事件
+ * event事件名称
+ */
+
+module.exports = {
+ // 创建房间
+ created : "created",
+ // 加入房间
+ joined : "joined",
+ // 退出
+ exit : "exit",
+ // 人数
+ count : "count",
+ // 心跳
+ heartbeat : "heartbeat",
+ // 广播聊天消息
+ channelChat: "channelChat",
+ // 广播聊天消息撤回
+ channelChatRollback: "channelChatRollback",
+ // 广播好友申请
+ contactApply: "contactApply",
+ // 通过好友申请
+ contactApplyPass: "contactApplyPass",
+ // 拒绝好友申请
+ contactApplyReject: "contactApplyReject",
+}
diff --git a/src/socket/event/server_event.js b/src/socket/event/server_event.js
new file mode 100644
index 0000000..19410d1
--- /dev/null
+++ b/src/socket/event/server_event.js
@@ -0,0 +1,30 @@
+/**
+ * 服务端监听事件
+ * event事件名称
+ */
+
+
+module.exports = {
+ // socket连接
+ connection : "connection",
+ // socket断开连接
+ disconnect : "disconnect",
+ // 在线人数
+ count : "count",
+ // 退出
+ exit : "exit",
+ // 加入/创建房间
+ createAndJoin : "createAndJoin",
+ // 心跳
+ heartbeat : "heartbeat",
+ // 广播聊天消息
+ channelChat: "channelChat",
+ // 广播聊天消息撤回
+ channelChatRollback: "channelChatRollback",
+ // 广播好友申请
+ contactApply: "contactApply",
+ // 通过好友申请
+ contactApplyPass: "contactApplyPass",
+ // 拒绝好友申请
+ contactApplyReject: "contactApplyReject",
+}
\ No newline at end of file
diff --git a/src/socket/handler/auth.js b/src/socket/handler/auth.js
new file mode 100644
index 0000000..b2ac2ea
--- /dev/null
+++ b/src/socket/handler/auth.js
@@ -0,0 +1,45 @@
+const {socketClientEvent} = require("../event");
+const userSessionService = require('../../service/user/tl_user_session_service')
+const cache = require('../../utils/cache/cache')
+
+
+/**
+ * 登陆态校验
+ * @param {*} io socketio对象
+ * @param {*} socket 单个socket连接
+ * @returns
+ */
+async function auth(io, socket){
+ const { token } = socket.handshake.query;
+
+ if(!token){
+ return
+ }
+
+ const {
+ loginUserId, loginUserCompanyId, logniTime
+ } = await userSessionService.getUserInfoByToken({token})
+
+ if(!loginUserId){
+ return
+ }
+
+ // 更新socketId和userId的映射关系
+ await cache.setUserIdSocketIdMap({
+ companyId: loginUserCompanyId,
+ userId: loginUserId,
+ socketId: socket.id
+ })
+
+ // 加入个人房间
+ socket.join(loginUserId)
+
+ // 设置token
+ socket.token = token
+
+ return
+}
+
+module.exports = {
+ auth
+}
\ No newline at end of file
diff --git a/src/socket/handler/channel_chat.js b/src/socket/handler/channel_chat.js
new file mode 100644
index 0000000..dde59ef
--- /dev/null
+++ b/src/socket/handler/channel_chat.js
@@ -0,0 +1,72 @@
+const {socketClientEvent} = require("../event");
+const userSessionService = require('../../service/user/tl_user_session_service')
+const channelUserService = require('../../service/channel/tl_channel_user_service')
+const { fields: channelUserFields } = require('../../tables/tl_channel_user')
+const { Def: TlChannelUserDef } = channelUserFields
+
+
+/**
+ * 广播聊天消息
+ * @param {*} io socketio对象
+ * @param {*} socket 单个socket连接
+ * @param {*} data event参数
+ * @returns
+ */
+async function channelChat(io, socket, data){
+ let channel = data.channel
+ let messageInfo = data.messageInfo
+ let to = data.to
+
+ const token = socket.token;
+
+ if(!channel){
+ return
+ }
+
+ const {
+ loginUserId, loginUserCompanyId
+ } = await userSessionService.getUserInfoByToken({token})
+
+ if(!loginUserId){
+ return
+ }
+
+ // 指定人,无须频道广播
+ if (to){
+ const toClient = io.sockets.connected[to]
+ if (toClient){
+ toClient.emit(socketClientEvent.channelChat, {
+ channel: data.channel,
+ messageInfo: messageInfo,
+ from: socket.id,
+ })
+ }
+ return
+ }
+
+ // 拿到当前频道下的所有用户socketid,进行广播
+ const channelUserList = await channelUserService.getListByChannelId({
+ channelId: channel,
+ companyId: loginUserCompanyId
+ }, [
+ TlChannelUserDef.userId
+ ])
+
+ const userIds = channelUserList.map(item => item[TlChannelUserDef.userId])
+
+ // 广播给频道内的所有用户
+ for(let userId of userIds){
+ if(userId === loginUserId){
+ continue
+ }
+ io.sockets.in(userId).emit(socketClientEvent.channelChat, {
+ channel: data.channel,
+ messageInfo: messageInfo,
+ from: socket.id,
+ })
+ }
+}
+
+module.exports = {
+ channelChat
+}
\ No newline at end of file
diff --git a/src/socket/handler/channel_chat_rollback.js b/src/socket/handler/channel_chat_rollback.js
new file mode 100644
index 0000000..3dfa883
--- /dev/null
+++ b/src/socket/handler/channel_chat_rollback.js
@@ -0,0 +1,75 @@
+const {socketClientEvent} = require("../event");
+const userSessionService = require('../../service/user/tl_user_session_service')
+const channelUserService = require('../../service/channel/tl_channel_user_service')
+const { fields: channelUserFields } = require('../../tables/tl_channel_user')
+const { Def: TlChannelUserDef } = channelUserFields
+
+
+/**
+ * 广播聊天消息撤回
+ * @param {*} io socketio对象
+ * @param {*} socket 单个socket连接
+ * @param {*} data event参数
+ * @returns
+ */
+async function channelChatRollback(io, socket, data){
+ let channel = data.channel
+ let messageId = data.messageId
+ let rollbackMessage = data.rollbackMessage
+ let to = data.to
+
+ const token = socket.token;
+
+ if(!channel){
+ return
+ }
+
+ const {
+ loginUserId, loginUserCompanyId
+ } = await userSessionService.getUserInfoByToken({token})
+
+ if(!loginUserId){
+ return
+ }
+
+ // 指定人,无须频道广播
+ if (to){
+ const toClient = io.sockets.connected[to]
+ if (toClient){
+ toClient.emit(socketClientEvent.channelChatRollback, {
+ channel: data.channel,
+ messageId: messageId,
+ from: socket.id,
+ rollbackMessage: rollbackMessage,
+ })
+ }
+ return
+ }
+
+ // 拿到当前频道下的所有用户socketid,进行广播
+ const channelUserList = await channelUserService.getListByChannelId({
+ channelId: channel,
+ companyId: loginUserCompanyId
+ }, [
+ TlChannelUserDef.userId
+ ])
+
+ const userIds = channelUserList.map(item => item[TlChannelUserDef.userId])
+
+ // 广播给频道内的所有用户
+ for(let userId of userIds){
+ if(userId === loginUserId){
+ continue
+ }
+ io.sockets.in(userId).emit(socketClientEvent.channelChatRollback, {
+ channel: data.channel,
+ messageId: messageId,
+ from: socket.id,
+ rollbackMessage: rollbackMessage,
+ })
+ }
+}
+
+module.exports = {
+ channelChatRollback
+}
\ No newline at end of file
diff --git a/src/socket/handler/contact_apply.js b/src/socket/handler/contact_apply.js
new file mode 100644
index 0000000..e200ce5
--- /dev/null
+++ b/src/socket/handler/contact_apply.js
@@ -0,0 +1,56 @@
+const {socketClientEvent} = require("../event");
+const userSessionService = require('../../service/user/tl_user_session_service')
+const channelUserService = require('../../service/channel/tl_channel_user_service')
+const { fields: channelUserFields } = require('../../tables/tl_channel_user')
+const { Def: TlChannelUserDef } = channelUserFields
+
+
+/**
+ * 广播好友申请消息
+ * @param {*} io socketio对象
+ * @param {*} socket 单个socket连接
+ * @param {*} data event参数
+ * @returns
+ */
+async function contactApply(io, socket, data){
+ let userId = data.userId
+ let applyInfo = data.applyInfo
+ let to = data.to
+
+ const token = socket.token;
+
+ if(!userId){
+ return
+ }
+
+ const {
+ loginUserId, loginUsername
+ } = await userSessionService.getUserInfoByToken({token})
+
+ if(!loginUserId){
+ return
+ }
+
+ // 指定人,无须频道广播
+ if (to){
+ const toClient = io.sockets.connected[to]
+ if (toClient){
+ toClient.emit(socketClientEvent.contactApply, {
+ fromUsername: loginUsername,
+ applyInfo: applyInfo,
+ from: socket.id,
+ })
+ }
+ return
+ }
+
+ io.sockets.in(userId).emit(socketClientEvent.contactApply, {
+ fromUsername: loginUsername,
+ applyInfo: applyInfo,
+ from: socket.id,
+ })
+}
+
+module.exports = {
+ contactApply
+}
\ No newline at end of file
diff --git a/src/socket/handler/contact_apply_pass.js b/src/socket/handler/contact_apply_pass.js
new file mode 100644
index 0000000..08753f7
--- /dev/null
+++ b/src/socket/handler/contact_apply_pass.js
@@ -0,0 +1,56 @@
+const {socketClientEvent} = require("../event");
+const userSessionService = require('../../service/user/tl_user_session_service')
+const channelUserService = require('../../service/channel/tl_channel_user_service')
+const { fields: channelUserFields } = require('../../tables/tl_channel_user')
+const { Def: TlChannelUserDef } = channelUserFields
+
+
+/**
+ * 广播好友通过申请消息
+ * @param {*} io socketio对象
+ * @param {*} socket 单个socket连接
+ * @param {*} data event参数
+ * @returns
+ */
+async function contactApplyPass(io, socket, data){
+ let userId = data.userId
+ let passInfo = data.passInfo
+ let to = data.to
+
+ const token = socket.token;
+
+ if(!userId){
+ return
+ }
+
+ const {
+ loginUserId, loginUsername
+ } = await userSessionService.getUserInfoByToken({token})
+
+ if(!loginUserId){
+ return
+ }
+
+ // 指定人,无须频道广播
+ if (to){
+ const toClient = io.sockets.connected[to]
+ if (toClient){
+ toClient.emit(socketClientEvent.contactApplyPass, {
+ fromUsername: loginUsername,
+ passInfo: passInfo,
+ from: socket.id,
+ })
+ }
+ return
+ }
+
+ io.sockets.in(userId).emit(socketClientEvent.contactApplyPass, {
+ fromUsername: loginUsername,
+ passInfo: passInfo,
+ from: socket.id,
+ })
+}
+
+module.exports = {
+ contactApplyPass
+}
\ No newline at end of file
diff --git a/src/socket/handler/contact_apply_reject.js b/src/socket/handler/contact_apply_reject.js
new file mode 100644
index 0000000..024b295
--- /dev/null
+++ b/src/socket/handler/contact_apply_reject.js
@@ -0,0 +1,56 @@
+const {socketClientEvent} = require("../event");
+const userSessionService = require('../../service/user/tl_user_session_service')
+const channelUserService = require('../../service/channel/tl_channel_user_service')
+const { fields: channelUserFields } = require('../../tables/tl_channel_user')
+const { Def: TlChannelUserDef } = channelUserFields
+
+
+/**
+ * 广播好友申请拒绝消息
+ * @param {*} io socketio对象
+ * @param {*} socket 单个socket连接
+ * @param {*} data event参数
+ * @returns
+ */
+async function contactApplyReject(io, socket, data){
+ let userId = data.userId
+ let rejectInfo = data.rejectInfo
+ let to = data.to
+
+ const token = socket.token;
+
+ if(!userId){
+ return
+ }
+
+ const {
+ loginUserId, loginUsername
+ } = await userSessionService.getUserInfoByToken({token})
+
+ if(!loginUserId){
+ return
+ }
+
+ // 指定人,无须频道广播
+ if (to){
+ const toClient = io.sockets.connected[to]
+ if (toClient){
+ toClient.emit(socketClientEvent.contactApplyReject, {
+ fromUsername: loginUsername,
+ rejectInfo: rejectInfo,
+ from: socket.id,
+ })
+ }
+ return
+ }
+
+ io.sockets.in(userId).emit(socketClientEvent.contactApplyReject, {
+ fromUsername: loginUsername,
+ rejectInfo: rejectInfo,
+ from: socket.id,
+ })
+}
+
+module.exports = {
+ contactApplyReject
+}
\ No newline at end of file
diff --git a/src/socket/handler/count.js b/src/socket/handler/count.js
new file mode 100644
index 0000000..0d1675a
--- /dev/null
+++ b/src/socket/handler/count.js
@@ -0,0 +1,21 @@
+const {socketClientEvent} = require("../event");
+
+
+/**
+ * 在线人数统计广播
+ * @param {*} io socketio对象
+ * @param {*} socket 单个socket连接
+ * @param {*} data event参数
+ * @returns
+ */
+async function count(io, socket, data){
+ let allManCount = Object.keys(io.sockets.connected).length || 0;
+
+ io.sockets.emit(socketClientEvent.count, {
+ mc : allManCount
+ })
+}
+
+module.exports = {
+ count
+}
\ No newline at end of file
diff --git a/src/socket/handler/disconnect.js b/src/socket/handler/disconnect.js
new file mode 100644
index 0000000..75f5f4b
--- /dev/null
+++ b/src/socket/handler/disconnect.js
@@ -0,0 +1,21 @@
+const socketCount = require("./count");
+const {socketClientEvent} = require("../event");
+
+
+/**
+ * 断开连接的操作
+ * @param {*} io socketio对象
+ * @param {*} socket 单个socket连接
+ * @param {*} data event参数
+ */
+async function disconnect(io, socket, data){
+ socket.broadcast.emit(socketClientEvent.exit, {
+ from : socket.id,
+ });
+
+ socketCount.count(io, socket, data);
+}
+
+module.exports = {
+ disconnect
+}
\ No newline at end of file
diff --git a/src/socket/handler/exit.js b/src/socket/handler/exit.js
new file mode 100644
index 0000000..c25a26d
--- /dev/null
+++ b/src/socket/handler/exit.js
@@ -0,0 +1,30 @@
+const socketCount = require("./count");
+const {socketClientEvent} = require("../event");
+
+
+/**
+ * 退出房间
+ * @param {*} io socketio对象
+ * @param {*} socket 单个socket连接
+ * @param {*} data event参数
+ * @returns
+ */
+async function exit(io, socket, data){
+
+ socket.leave(room);
+
+ const clientsInRoom = io.sockets.adapter.rooms[room];
+ if (clientsInRoom) {
+ let otherSocketIds = Object.keys(clientsInRoom.sockets);
+ for (let i = 0; i < otherSocketIds.length; i++) {
+ let otherSocket = io.sockets.connected[otherSocketIds[i]];
+ otherSocket.emit(socketClientEvent.exit, data);
+ }
+ }
+
+ socketCount.count(io, socket, data);
+}
+
+module.exports = {
+ exit
+}
\ No newline at end of file
diff --git a/src/socket/handler/heartbeat.js b/src/socket/handler/heartbeat.js
new file mode 100644
index 0000000..414dd34
--- /dev/null
+++ b/src/socket/handler/heartbeat.js
@@ -0,0 +1,19 @@
+const {socketClientEvent} = require("../event");
+
+
+/**
+ * 心跳
+ * @param {*} io socketio对象
+ * @param {*} socket 单个socket连接
+ * @param {*} data event参数
+ * @returns
+ */
+async function heartbeat(io, socket, data){
+ socket.emit(socketClientEvent.heartbeat, {
+ status : "ok"
+ })
+}
+
+module.exports = {
+ heartbeat
+}
\ No newline at end of file
diff --git a/src/socket/index.js b/src/socket/index.js
new file mode 100644
index 0000000..f9fbfbf
--- /dev/null
+++ b/src/socket/index.js
@@ -0,0 +1,33 @@
+const connect = require("./connect");
+const {socketServerEvent} = require("./event");
+const {
+ tlConsole
+} = require("./../utils/utils");
+
+
+/**
+ * socket事件初始化入口
+ * @param {*} io
+ * @returns
+ */
+async function execute(io) {
+ if (io === undefined || io === null) {
+ tlConsole("io is null")
+ return;
+ }
+
+ io.sockets.on(socketServerEvent.connection, function (socket) {
+ if(socket.id === undefined || socket.id === null || socket.id === 0 || socket.id === "0"){
+ socket.emit("tips", {
+ to: socket.id,
+ msg: "非法连接"
+ });
+ return
+ }
+ connect(io, socket)
+ });
+}
+
+module.exports = {
+ execute
+}
\ No newline at end of file
diff --git a/src/tables/db.js b/src/tables/db.js
new file mode 100644
index 0000000..7ce6126
--- /dev/null
+++ b/src/tables/db.js
@@ -0,0 +1,102 @@
+const sequelizeObj = require('sequelize');
+const fs = require('fs');
+const { tlConsole } = require("../../src/utils/utils");
+const { get_env_config } = require("../../conf/env_config");
+const { resolve } = require('path');
+const conf = get_env_config();
+
+//db connect retry times
+let connectRetryTimes = 0;
+// 连接对象缓存
+let dbClientInstance = null
+
+
+/**
+ * 获取数据库连接对象
+ * @returns
+ */
+const getDbClient = function() {
+ if(dbClientInstance != null){
+ return dbClientInstance
+ }
+
+ const options = {
+ "dialect": "mysql",
+ "host": conf.db_mysql_host,
+ "port": conf.db_mysql_port,
+ "logging": false,
+ "pool": {
+ "max": 20,
+ "min": 5,
+ "acquire": 30000,
+ "idle": 10000
+ },
+ "timezone": "+08:00",
+ "define": {
+ "freezeTableName": true,
+ "underscored": true,
+ "charset": "utf8",
+ "collate": "utf8_general_ci",
+ "timestamps": false,
+ "paranoid": true
+ }
+ }
+
+ dbClientInstance = new sequelizeObj(
+ conf.db_mysql_dbName, conf.db_mysql_user, conf.db_mysql_password, options
+ );
+
+ tlConsole("db init done ...")
+
+ return dbClientInstance
+}
+
+
+/**
+ * 初始化数据库
+ * @returns
+ */
+const dbInit = async function(){
+
+ let dbclient = getDbClient()
+
+ try {
+ await dbclient.authenticate();
+ tlConsole('db connect ok ... ');
+
+ let files = fs.readdirSync(__dirname);
+ for (let f of files) {
+ if (f[0] == '.' || f == 'db.js') continue;
+ try {
+ let fn = require('./' + f).model;
+ if (typeof fn == 'function') {
+ fn(dbclient, sequelizeObj);
+ }
+ } catch (e) {
+ tlConsole(e);
+ }
+ }
+
+ try {
+ await dbclient.sync({ force: false });
+
+ tlConsole("db sync ok ...");
+ } catch (e) {
+ tlConsole("db sync err : ",e);
+ }
+ } catch (e) {
+ if(connectRetryTimes++ < 8){
+ tlConsole('db connect err, retrying ... ',e.message);
+ await new Promise(resolve => setTimeout(resolve, connectRetryTimes * 3000));
+ await dbInit();
+ return;
+ }
+ tlConsole('db connect err ',e);
+ }
+}
+
+
+module.exports = {
+ dbClient: getDbClient(),
+ dbInit
+}
diff --git a/src/tables/tl_channel.js b/src/tables/tl_channel.js
new file mode 100644
index 0000000..4efbf09
--- /dev/null
+++ b/src/tables/tl_channel.js
@@ -0,0 +1,79 @@
+const tl_channel_fields = {
+ Name: 'tl_channel',
+ Description: '频道表,主要定义单聊,群聊等创建的各种频道记录',
+ Def: {
+ id : 'id',
+ companyId : 'company_id',
+ flag : 'flag',
+ name : 'name',
+ status: 'status',
+ type: 'type',
+ createdAt : 'createdAt',
+ updatedAt : 'updatedAt',
+ deletedAt : 'deletedAt',
+ },
+ Type: {
+ GROUP : 1, // 群聊
+ FRIEND : 2, // 好友
+ },
+ Status: {
+ NORMAL: 1, //正常
+ }
+}
+
+const tl_channel_model = function(DataTypes){
+ return {
+ model : {
+ id: {
+ type: DataTypes.INTEGER,
+ comment: '频道id',
+ primaryKey: true,
+ autoIncrement: true
+ },
+ company_id: {
+ type: DataTypes.INTEGER,
+ comment: '企业id'
+ },
+ flag: {
+ type: DataTypes.INTEGER,
+ comment: '标志位',
+ defaultValue: 0,
+ },
+ name : {
+ type: DataTypes.STRING(64),
+ comment: '频道名称'
+ },
+ type: {
+ type: DataTypes.INTEGER,
+ comment: '频道类型',
+ },
+ status: {
+ type: DataTypes.INTEGER,
+ comment: '频道状态',
+ defaultValue: tl_channel_fields.Status.NORMAL
+ },
+ },
+ options : {
+ timestamps: true,
+ comment: '频道记录表',
+ indexes: [{
+ name: 'created_at_index',
+ method: 'BTREE',
+ fields: ['created_at']
+ }]
+ }
+ }
+}
+
+module.exports = {
+ model: function(sequelize, DataTypes){
+ return {
+ TlChannel: sequelize.define(
+ 'tl_channel',
+ tl_channel_model(DataTypes).model,
+ tl_channel_model(DataTypes).options
+ )
+ }
+ },
+ fields: tl_channel_fields
+}
\ No newline at end of file
diff --git a/src/tables/tl_channel_chat.js b/src/tables/tl_channel_chat.js
new file mode 100644
index 0000000..b9109c8
--- /dev/null
+++ b/src/tables/tl_channel_chat.js
@@ -0,0 +1,129 @@
+const tl_channel_chat_fields = {
+ Name: 'tl_channel_chat',
+ Description: '频道聊天记录表,所有企业,用户的单聊,群聊聊天记录表',
+ Def: {
+ id : 'id',
+ companyId : 'company_id',
+ channelId : 'channel_id',
+ type : 'type',
+ flag : 'flag',
+ message : 'message',
+ other : 'other',
+ fromUserId : 'from_user_id',
+ fromUserName : 'from_user_name',
+ toUserId : 'to_user_id',
+ toUserName : 'to_user_name',
+ messageTimeStamp : 'message_ts',
+ messageVersion : 'message_version',
+ createdAt : 'createdAt',
+ updatedAt : 'updatedAt',
+ deletedAt : 'deletedAt',
+ },
+ Flag: {
+ IS_ROLL_BACK: 0x1, //是否撤回
+ IS_REAL_TEXT: 0x2, // 是否是富文本
+ IS_REPLAY: 0x4, // 是否是回复
+ IS_AT_USER: 0x8, // 是否是@用户
+ IS_AT_ALL: 0x10, // 是否是@所有人
+ },
+ Other: {
+ ip: 'ip', // ip地址
+ replyToMessageId: 'reply_to_message_id', // 回复消息id
+ replyToMessageType: 'reply_to_message_type', // 回复消息类型
+ atUserId: 'at_user_id', // at用户id
+ atUserName: 'at_user_name', // at用户昵称
+ },
+ Type : {
+ FRIEND : 'friend', // 好友消息
+ GROUP : 'group', // 群消息
+ SYSTEM : 'system', // 系统消息
+ },
+}
+
+const tl_channel_chat_model = function(DataTypes){
+ return {
+ model : {
+ id: {
+ type: DataTypes.INTEGER,
+ comment: '聊天记录id',
+ primaryKey: true,
+ autoIncrement: true
+ },
+ company_id: {
+ type: DataTypes.INTEGER,
+ comment: '企业id'
+ },
+ channel_id : {
+ type: DataTypes.INTEGER,
+ comment: '频道id'
+ },
+ type : {
+ type: DataTypes.STRING(8),
+ comment: '消息类型'
+ },
+ flag: {
+ type: DataTypes.INTEGER,
+ comment: '标志位',
+ defaultValue: 0,
+ },
+ message: {
+ type: DataTypes.STRING(8192),
+ comment: '消息内容'
+ },
+ other: {
+ type: DataTypes.TEXT,
+ comment: '其他信息, json格式'
+ },
+ from_user_id: {
+ type: DataTypes.INTEGER,
+ comment: '发送用户id'
+ },
+ from_user_name:{
+ type: DataTypes.STRING(64),
+ comment: '发送用户昵称'
+ },
+ to_user_id: {
+ type: DataTypes.INTEGER,
+ comment: '接收用户id'
+ },
+ to_user_name: {
+ type: DataTypes.STRING(64),
+ comment: '接收用户昵称'
+ },
+ message_ts: {
+ type: DataTypes.BIGINT,
+ comment: '消息时间戳'
+ },
+ message_version: {
+ type: DataTypes.STRING(8),
+ comment: '消息版本'
+ },
+ },
+ options : {
+ timestamps: true,
+ comment: '聊天记录表',
+ indexes: [{
+ name: 'created_at_index',
+ method: 'BTREE',
+ fields: ['created_at']
+ }, {
+ name: 'message_ts_index',
+ method: 'BTREE',
+ fields: ['message_ts']
+ }]
+ }
+ }
+}
+
+module.exports = {
+ model: function(sequelize, DataTypes){
+ return {
+ TlChannelChat: sequelize.define(
+ 'tl_channel_chat',
+ tl_channel_chat_model(DataTypes).model,
+ tl_channel_chat_model(DataTypes).options
+ )
+ }
+ },
+ fields: tl_channel_chat_fields
+}
\ No newline at end of file
diff --git a/src/tables/tl_channel_user.js b/src/tables/tl_channel_user.js
new file mode 100644
index 0000000..863a3e3
--- /dev/null
+++ b/src/tables/tl_channel_user.js
@@ -0,0 +1,96 @@
+const tl_channel_user_fields = {
+ Name: 'tl_channel_user',
+ Description: '频道用户表,主要定义单聊,群聊等创建的各种频道中的用户信息',
+ Def: {
+ id : 'id',
+ companyId : 'company_id',
+ channelId : 'channel_id',
+ userId : 'user_id',
+ flag : 'flag',
+ roleId : 'role_id',
+ type: 'type',
+ status : 'status',
+ createdAt : 'createdAt',
+ updatedAt : 'updatedAt',
+ deletedAt : 'deletedAt',
+ },
+ Type: {
+ GROUP : 1, // 群聊
+ FRIEND : 2, // 好友
+ },
+ Status: {
+ NORMAL: 1, //正常
+ BLACK: 2, // 黑名单
+ },
+ Flag: {
+ IS_SET_TOP: 1, // 置顶
+ IS_SET_BLACK: 2, // 拉黑
+ IS_SET_HIDDEN: 3, // 不显示
+ IS_SET_MUTE: 4, // 静音/免打扰
+ }
+}
+
+const tl_channel_user_model = function(DataTypes){
+ return {
+ model : {
+ id: {
+ type: DataTypes.INTEGER,
+ comment: '频道用户记录id',
+ primaryKey: true,
+ autoIncrement: true
+ },
+ company_id: {
+ type: DataTypes.INTEGER,
+ comment: '企业id'
+ },
+ channel_id : {
+ type: DataTypes.INTEGER,
+ comment: '频道id'
+ },
+ type: {
+ type: DataTypes.INTEGER,
+ comment: '频道类型',
+ },
+ user_id: {
+ type: DataTypes.INTEGER,
+ comment: '用户id'
+ },
+ flag: {
+ type: DataTypes.INTEGER,
+ comment: '标志位',
+ defaultValue: 0,
+ },
+ role_id: {
+ type: DataTypes.INTEGER,
+ comment: '角色id'
+ },
+ status: {
+ type: DataTypes.INTEGER,
+ comment: '群聊用户状态',
+ defaultValue: tl_channel_user_fields.Status.NORMAL
+ }
+ },
+ options : {
+ timestamps: true,
+ comment: '频道用户记录表',
+ indexes: [{
+ name: 'created_at_index',
+ method: 'BTREE',
+ fields: ['created_at']
+ }]
+ }
+ }
+}
+
+module.exports = {
+ model: function(sequelize, DataTypes){
+ return {
+ TlChannelUser: sequelize.define(
+ 'tl_channel_user',
+ tl_channel_user_model(DataTypes).model,
+ tl_channel_user_model(DataTypes).options
+ )
+ }
+ },
+ fields: tl_channel_user_fields
+}
\ No newline at end of file
diff --git a/src/tables/tl_company.js b/src/tables/tl_company.js
new file mode 100644
index 0000000..a013fcb
--- /dev/null
+++ b/src/tables/tl_company.js
@@ -0,0 +1,100 @@
+const tl_company_fields = {
+ Name: 'tl_company',
+ Description: '企业信息表',
+ Def: {
+ id : 'id',
+ code: 'code',
+ name : 'name',
+ address : 'address',
+ phone : 'phone',
+ email : 'email',
+ website : 'website',
+ logo : 'logo',
+ description : 'description',
+ flag : 'flag',
+ content : 'content',
+ createdAt : 'createdAt',
+ updatedAt : 'updatedAt',
+ deletedAt : 'deletedAt',
+ },
+ Flag: {
+ IS_PASS_AUTH: 0x1, //是否通过认证
+ IS_EXPIRED: 0x2, //是否过期
+ },
+}
+
+const tl_company_model = function(DataTypes){
+ return {
+ model : {
+ id: {
+ type: DataTypes.INTEGER,
+ comment: '企业id',
+ primaryKey: true,
+ autoIncrement: true
+ },
+ code: {
+ type: DataTypes.STRING(60),
+ comment: '企业唯一编码'
+ },
+ name: {
+ type: DataTypes.STRING(20),
+ comment: '企业名称'
+ },
+ address: {
+ type: DataTypes.STRING(256),
+ comment: '企业地址'
+ },
+ phone: {
+ type: DataTypes.STRING(20),
+ comment: '企业电话'
+ },
+ email: {
+ type: DataTypes.STRING(48),
+ comment: '企业邮箱'
+ },
+ website: {
+ type: DataTypes.STRING(48),
+ comment: '企业网址'
+ },
+ logo: {
+ type: DataTypes.STRING(256),
+ comment: '企业logo'
+ },
+ description: {
+ type: DataTypes.STRING(256),
+ comment: '企业描述'
+ },
+ flag: {
+ type: DataTypes.INTEGER,
+ comment: '标志位',
+ defaultValue: 0,
+ },
+ content: {
+ type: DataTypes.TEXT,
+ comment: '详细信息'
+ },
+ },
+ options : {
+ timestamps: true,
+ comment: '企业信息表',
+ indexes: [{
+ name: 'created_at_index',
+ method: 'BTREE',
+ fields: ['created_at']
+ }]
+ }
+ }
+}
+
+module.exports = {
+ model: function(sequelize, DataTypes){
+ return {
+ TlCompany: sequelize.define(
+ 'tl_company',
+ tl_company_model(DataTypes).model,
+ tl_company_model(DataTypes).options
+ )
+ }
+ },
+ fields: tl_company_fields
+}
\ No newline at end of file
diff --git a/src/tables/tl_role.js b/src/tables/tl_role.js
new file mode 100644
index 0000000..6b9b021
--- /dev/null
+++ b/src/tables/tl_role.js
@@ -0,0 +1,157 @@
+const role = require('../role/role');
+
+const tl_role_fields = {
+ Name: 'tl_role',
+ Description: '角色表,定义各种角色,包括企业角色,系统角色,管理员角色等',
+ Def : {
+ id : 'id',
+ companyId : 'company_id',
+ name : 'name',
+ key: 'key',
+ flag : 'flag',
+ type: 'type',
+ description : 'description',
+ permissionIdList: 'permission_id_list',
+ createdAt : 'createdAt',
+ updatedAt : 'updatedAt',
+ deletedAt : 'deletedAt',
+ },
+ Type: {
+ NORMAL_USER: 1, // 普通用户角色
+ ADMIN_USER: 2, // 管理员角色
+ TEST_USER: 3, // 测试演示用户角色
+
+ CHANNEL_CREATOR_USER: 4, // 频道群主角色
+ CHANNEL_ADMIN_USER: 5, // 频道管理员角色
+ CHANNEL_NORMAL_USER: 6, // 频道普通用户角色
+
+ WEBSITE_USER: 7, // 官网用户角色
+ }
+}
+
+const tl_role_model = function(DataTypes){
+ return {
+ model : {
+ id: {
+ type: DataTypes.INTEGER,
+ comment: '角色记录id',
+ primaryKey: true,
+ autoIncrement: true
+ },
+ company_id: {
+ type: DataTypes.INTEGER,
+ comment: '企业id'
+ },
+ key: {
+ type: DataTypes.STRING(20),
+ comment: '角色key'
+ },
+ type: {
+ type: DataTypes.INTEGER,
+ comment: '角色类型',
+ },
+ name: {
+ type: DataTypes.STRING(20),
+ comment: '角色名称'
+ },
+ description: {
+ type: DataTypes.STRING(256),
+ comment: '角色描述'
+ },
+ permission_id_list: {
+ type: DataTypes.TEXT,
+ comment: '权限id列表',
+ },
+ flag: {
+ type: DataTypes.INTEGER,
+ comment: '标志位',
+ defaultValue: 0,
+ },
+ },
+ options : {
+ timestamps: true,
+ comment: '用户角色表',
+ indexes: [{
+ name: 'created_at_index',
+ method: 'BTREE',
+ fields: ['created_at']
+ }]
+ }
+ }
+}
+
+const tl_inner_role = {
+ user: {
+ normal : {
+ id : 1,
+ key: 'normal',
+ name : '普通角色',
+ type: tl_role_fields.Type.NORMAL_USER,
+ permissionIdList : JSON.stringify(
+ role.userNormalPermissions()
+ ),
+ description : '普通角色用户',
+ flag : 0,
+ },
+ admin : {
+ id : 2,
+ key: 'admin',
+ name : '管理员',
+ type: tl_role_fields.Type.ADMIN_USER,
+ permissionIdList : JSON.stringify(
+ role.userAdminPermissions()
+ ),
+ description : '管理员角色用户',
+ flag : 0,
+ },
+ },
+ channel : {
+ creator : {
+ id : 10000,
+ key: 'creator',
+ name : '群主',
+ type: tl_role_fields.Type.CHANNEL_CREATOR_USER,
+ permissionIdList : JSON.stringify(
+ role.userChannelCreatorPermissions()
+ ),
+ description : '频道创建者',
+ flag : 0,
+ },
+ admin : {
+ id : 10001,
+ key: 'admin',
+ name : '管理员',
+ type: tl_role_fields.Type.CHANNEL_ADMIN_USER,
+ permissionIdList : JSON.stringify(
+ role.userChannelAdminPermissions()
+ ),
+ description : '频道管理员',
+ flag : 0,
+ },
+ member : {
+ id : 10002,
+ key: 'member',
+ name : '成员',
+ type: tl_role_fields.Type.CHANNEL_NORMAL_USER,
+ permissionIdList : JSON.stringify(
+ role.userChannelNormalPermissions()
+ ),
+ description : '频道成员',
+ flag : 0,
+ },
+ },
+}
+
+module.exports = {
+ model: function(sequelize, DataTypes){
+ return {
+ TlRole: sequelize.define(
+ 'tl_role',
+ tl_role_model(DataTypes).model,
+ tl_role_model(DataTypes).options
+ )
+ }
+ },
+ fields: tl_role_fields,
+ inner: tl_inner_role
+}
\ No newline at end of file
diff --git a/src/tables/tl_user.js b/src/tables/tl_user.js
new file mode 100644
index 0000000..0038c03
--- /dev/null
+++ b/src/tables/tl_user.js
@@ -0,0 +1,115 @@
+const tl_user_fields = {
+ Name: 'tl_user',
+ Description : '用户表,系统平台所有用户都在这个表',
+ Def : {
+ id : 'id',
+ companyId : 'company_id',
+ name : 'name',
+ password : 'password',
+ salt : 'salt',
+ email : 'email',
+ mobile : 'mobile',
+ avatarUrl : 'avatar_url',
+ roleId : 'role_id',
+ wchatName : 'wchat_name',
+ wchatOpenId : 'wchat_open_id',
+ wchatUnionId : 'wchat_union_id',
+ wchatAvatarUrl : 'wchat_avatar_url',
+ flag : 'flag',
+ createdAt : 'createdAt',
+ updatedAt : 'updatedAt',
+ deletedAt : 'deletedAt',
+ },
+ Flag: {
+ IS_PASS_AUTH: 0x1, //是否通过认证
+ IS_EXPIRED: 0x2, //是否过期
+ },
+}
+
+const tl_user_model = function(DataTypes){
+ return {
+ model : {
+ id: {
+ type: DataTypes.INTEGER,
+ comment: '用户id',
+ primaryKey: true,
+ autoIncrement: true
+ },
+ company_id: {
+ type: DataTypes.INTEGER,
+ comment: '企业id'
+ },
+ name: {
+ type: DataTypes.STRING(20),
+ comment: '用户名称'
+ },
+ password: {
+ type: DataTypes.STRING(64),
+ comment: '用户密码'
+ },
+ salt: {
+ type: DataTypes.STRING(32),
+ comment: '用户密码盐'
+ },
+ email: {
+ type: DataTypes.STRING(64),
+ comment: '用户邮箱'
+ },
+ mobile: {
+ type: DataTypes.STRING(11),
+ comment: '用户手机号'
+ },
+ avatar_url: {
+ type: DataTypes.STRING(255),
+ comment: '头像地址-对应oss-key'
+ },
+ role_id : {
+ type: DataTypes.INTEGER,
+ comment: '角色id'
+ },
+ wchat_name: {
+ type: DataTypes.STRING(64),
+ comment: '微信昵称'
+ },
+ wchat_open_id: {
+ type: DataTypes.STRING(64),
+ comment: '微信open_id'
+ },
+ wchat_union_id: {
+ type: DataTypes.STRING(64),
+ comment: '微信union_id'
+ },
+ wchat_avatar_url: {
+ type: DataTypes.STRING(255),
+ comment: '微信头像地址'
+ },
+ flag: {
+ type: DataTypes.INTEGER,
+ comment: '标志位',
+ defaultValue: 0,
+ }
+ },
+ options : {
+ timestamps: true,
+ comment: '用户表',
+ indexes: [{
+ name: 'created_at_index',
+ method: 'BTREE',
+ fields: ['created_at']
+ }]
+ }
+ }
+}
+
+module.exports = {
+ model: function(sequelize, DataTypes){
+ return {
+ TlUser: sequelize.define(
+ 'tl_user',
+ tl_user_model(DataTypes).model,
+ tl_user_model(DataTypes).options
+ )
+ }
+ },
+ fields: tl_user_fields
+}
\ No newline at end of file
diff --git a/src/tables/tl_user_apply.js b/src/tables/tl_user_apply.js
new file mode 100644
index 0000000..4f9656e
--- /dev/null
+++ b/src/tables/tl_user_apply.js
@@ -0,0 +1,107 @@
+const tl_user_apply_fields = {
+ Name: 'tl_user_apply',
+ Description: '用户申请表, 主要定义用户各种申请记录,如好友申请,加群申请等',
+ Def: {
+ id : 'id',
+ companyId : 'company_id',
+ userId : 'user_id',
+ targetId: 'target_id',
+ type : 'type',
+ status : 'status',
+ origin: 'origin',
+ remark: 'remark',
+ flag: 'flag',
+ createdAt : 'createdAt',
+ updatedAt : 'updatedAt',
+ deletedAt : 'deletedAt',
+ },
+ Flag: {
+
+ },
+ Type: {
+ FRIEND: 1, //好友申请
+ GROUP: 2, //群申请
+ },
+ Status: {
+ WAIT: 1, //等待验证
+ PASS: 2, //通过
+ REJECT: 3, //拒绝
+ BLACK: 4, //黑名单
+ },
+ Origin: {
+ SEARCH_NAME: '1', //搜索用户名添加
+ SEARCH_PHONE: '2', //搜索手机号添加
+ SEARCH_EMAIL: '3', //搜索邮箱添加
+ INVITE_QR: '4', //二维码邀请添加
+ INVITE_LINK: '5', //链接邀请添加
+ }
+}
+
+const tl_user_apply_model = function(DataTypes){
+ return {
+ model : {
+ id: {
+ type: DataTypes.INTEGER,
+ comment: '申请id',
+ primaryKey: true,
+ autoIncrement: true
+ },
+ company_id: {
+ type: DataTypes.INTEGER,
+ comment: '企业id'
+ },
+ flag: {
+ type: DataTypes.INTEGER,
+ comment: '标志位',
+ defaultValue: 0,
+ },
+ origin:{
+ type: DataTypes.STRING,
+ comment: '申请来源'
+ },
+ user_id: {
+ type: DataTypes.INTEGER,
+ comment: '申请记录所属用户id'
+ },
+ target_id: {
+ type: DataTypes.INTEGER,
+ comment: '申请目标id'
+ },
+ remark:{
+ type: DataTypes.STRING,
+ comment: '申请备注'
+ },
+ type: {
+ type: DataTypes.INTEGER,
+ comment: '申请类型'
+ },
+ status: {
+ type: DataTypes.INTEGER,
+ comment: '申请状态',
+ defaultValue: tl_user_apply_fields.Status.WAIT
+ }
+ },
+ options : {
+ timestamps: true,
+ comment: '用户申请记录表',
+ indexes: [{
+ name: 'created_at_index',
+ method: 'BTREE',
+ fields: ['created_at']
+ }]
+ }
+ }
+}
+
+module.exports = {
+ model: function(sequelize, DataTypes){
+ return {
+ TlUserApply: sequelize.define(
+ 'tl_user_apply',
+ tl_user_apply_model(DataTypes).model,
+ tl_user_apply_model(DataTypes).options
+ )
+ }
+ },
+ fields: tl_user_apply_fields
+}
\ No newline at end of file
diff --git a/src/tables/tl_user_auth.js b/src/tables/tl_user_auth.js
new file mode 100644
index 0000000..b73fb1f
--- /dev/null
+++ b/src/tables/tl_user_auth.js
@@ -0,0 +1,65 @@
+const tl_user_auth_fields = {
+ Name: 'tl_user_auth',
+ Description: '用户认证表, 主要定义用户各种认证记录,如邮箱认证,手机号认证等',
+ Def: {
+ id : 'id',
+ key: 'key',
+ type : 'type',
+ code : 'code',
+ createdAt : 'createdAt',
+ updatedAt : 'updatedAt',
+ deletedAt : 'deletedAt',
+ },
+ Type: {
+ EMAIL_REGISTER_CODE: 1,
+ PHONE_REGISTER_CODE: 2,
+ PHONE_LOGIN_CODE: 3,
+ },
+}
+
+const tl_user_auth_model = function(DataTypes){
+ return {
+ model : {
+ id: {
+ type: DataTypes.INTEGER,
+ comment: '认证id',
+ primaryKey: true,
+ autoIncrement: true
+ },
+ key: {
+ type: DataTypes.STRING,
+ comment: '认证key'
+ },
+ code: {
+ type: DataTypes.STRING(16),
+ comment: '认证code'
+ },
+ type: {
+ type: DataTypes.INTEGER,
+ comment: '认证类型'
+ },
+ },
+ options : {
+ timestamps: true,
+ comment: '用户认证记录表',
+ indexes: [{
+ name: 'created_at_index',
+ method: 'BTREE',
+ fields: ['created_at']
+ }]
+ }
+ }
+}
+
+module.exports = {
+ model: function(sequelize, DataTypes){
+ return {
+ TlUserAuth: sequelize.define(
+ 'tl_user_auth',
+ tl_user_auth_model(DataTypes).model,
+ tl_user_auth_model(DataTypes).options
+ )
+ }
+ },
+ fields: tl_user_auth_fields
+}
\ No newline at end of file
diff --git a/src/tables/tl_user_config.js b/src/tables/tl_user_config.js
new file mode 100644
index 0000000..a15a683
--- /dev/null
+++ b/src/tables/tl_user_config.js
@@ -0,0 +1,116 @@
+const tl_user_config_fields = {
+ Name: 'tl_user_config',
+ Description: '用户配置表',
+ Def: {
+ id : 'id',
+ companyId : 'company_id',
+ userId : 'user_id',
+ normal: 'normal',
+ account: 'account',
+ message: 'message',
+ skin: 'skin',
+ authority: 'authority',
+ other: 'other',
+ createdAt : 'createdAt',
+ updatedAt : 'updatedAt',
+ deletedAt : 'deletedAt',
+ },
+ Account: {
+
+ },
+ Normal: {
+
+ },
+ Message: { // 消息设置
+ // 网页通知
+ webNotify: 'webNotify',
+ // 消息红点
+ messageDot: 'messageDot',
+ },
+ Authority: { // 权限设置
+
+ },
+ Skin: {
+
+ },
+ Other: {
+ // 中继服务
+ turnServer: 'turnServer',
+ // 自定义wss服务地址
+ customWss: 'customWss',
+ }
+}
+
+const tl_user_config_model = function(DataTypes){
+ return {
+ model : {
+ id: {
+ type: DataTypes.INTEGER,
+ comment: '用户配置id',
+ primaryKey: true,
+ autoIncrement: true
+ },
+ company_id: {
+ type: DataTypes.INTEGER,
+ comment: '企业id'
+ },
+ user_id:{
+ type: DataTypes.INTEGER,
+ comment: '用户id',
+ defaultValue: 0
+ },
+ account: {
+ type: DataTypes.TEXT,
+ comment: '账户设置',
+ defaultValue: ''
+ },
+ message: {
+ type: DataTypes.TEXT,
+ comment: '消息设置',
+ defaultValue: ''
+ },
+ skin: {
+ type: DataTypes.TEXT,
+ comment: '皮肤设置',
+ defaultValue: ''
+ },
+ authority: {
+ type: DataTypes.TEXT,
+ comment: '权限设置',
+ defaultValue: ''
+ },
+ normal: {
+ type: DataTypes.TEXT,
+ comment: '通用设置',
+ defaultValue: ''
+ },
+ other: {
+ type: DataTypes.TEXT,
+ comment: '其他设置',
+ defaultValue: ''
+ },
+ },
+ options : {
+ timestamps: true,
+ comment: '用户配置表',
+ indexes: [{
+ name: 'created_at_index',
+ method: 'BTREE',
+ fields: ['created_at']
+ }]
+ }
+ }
+}
+
+module.exports = {
+ model: function(sequelize, DataTypes){
+ return {
+ TlUserConfig: sequelize.define(
+ 'tl_user_config',
+ tl_user_config_model(DataTypes).model,
+ tl_user_config_model(DataTypes).options
+ )
+ }
+ },
+ fields: tl_user_config_fields
+}
\ No newline at end of file
diff --git a/src/tables/tl_user_finger_print.js b/src/tables/tl_user_finger_print.js
new file mode 100644
index 0000000..c337c08
--- /dev/null
+++ b/src/tables/tl_user_finger_print.js
@@ -0,0 +1,55 @@
+const tl_user_finger_print_fields = {
+ Name: 'tl_user_finger_print',
+ Description: '用户登录指纹表, 主要存储用户相关指纹,用于登录身份认证等',
+ Def: {
+ id : 'id',
+ user_id: 'user_id',
+ finger_print: 'finger_print',
+ createdAt : 'createdAt',
+ updatedAt : 'updatedAt',
+ deletedAt : 'deletedAt',
+ },
+}
+
+const tl_user_finger_print_model = function(DataTypes){
+ return {
+ model : {
+ id: {
+ type: DataTypes.INTEGER,
+ comment: '主键',
+ primaryKey: true,
+ autoIncrement: true
+ },
+ user_id: {
+ type: DataTypes.INTEGER,
+ comment: '用户id'
+ },
+ finger_print: {
+ type: DataTypes.STRING,
+ comment: '指纹'
+ },
+ },
+ options : {
+ timestamps: true,
+ comment: '用户登录指纹表',
+ indexes: [{
+ name: 'created_at_index',
+ method: 'BTREE',
+ fields: ['created_at']
+ }]
+ }
+ }
+}
+
+module.exports = {
+ model: function(sequelize, DataTypes){
+ return {
+ TlUserFingerPrint: sequelize.define(
+ 'tl_user_finger_print',
+ tl_user_finger_print_model(DataTypes).model,
+ tl_user_finger_print_model(DataTypes).options
+ )
+ }
+ },
+ fields: tl_user_finger_print_fields
+}
\ No newline at end of file
diff --git a/src/tables/tl_user_friend.js b/src/tables/tl_user_friend.js
new file mode 100644
index 0000000..1b5f581
--- /dev/null
+++ b/src/tables/tl_user_friend.js
@@ -0,0 +1,114 @@
+const tl_user_friend_fields = {
+ Name: 'tl_user_friend',
+ Description: '用户好友关系记录',
+ Def : {
+ id : 'id',
+ companyId : 'company_id',
+ flag : 'flag',
+ userId : 'user_id',
+ origin: 'origin',
+ remark: 'remark',
+ friendId : 'friend_id',
+ status: 'status',
+ friendType : 'friend_type',
+ rename: 'rename',
+ channelId: 'channel_id',
+ createdAt : 'createdAt',
+ updatedAt : 'updatedAt',
+ deletedAt : 'deletedAt',
+ },
+ Status:{
+ NORMAL : 1, //正常
+ },
+ Flag: {
+
+ },
+ FriendType: {
+ NORMAL: 1, //普通好友
+ SPECIAL: 2, //特别关注
+ },
+ Origin: {
+ SEARCH_NAME: '1', //搜索用户名添加
+ SEARCH_PHONE: '2', //搜索手机号添加
+ SEARCH_EMAIL: '3', //搜索邮箱添加
+ INVITE_QR: '4', //二维码邀请添加
+ INVITE_LINK: '5', //链接邀请添加
+ }
+}
+
+const tl_user_friend_model = function(DataTypes){
+ return {
+ model : {
+ id: {
+ type: DataTypes.INTEGER,
+ comment: '关系id',
+ primaryKey: true,
+ autoIncrement: true
+ },
+ company_id: {
+ type: DataTypes.INTEGER,
+ comment: '企业id'
+ },
+ flag: {
+ type: DataTypes.INTEGER,
+ comment: '标志位',
+ defaultValue: 0,
+ },
+ origin: {
+ type: DataTypes.STRING,
+ comment: '来源',
+ defaultValue: 0,
+ },
+ user_id: {
+ type: DataTypes.INTEGER,
+ comment: '用户id'
+ },
+ friend_id: {
+ type: DataTypes.INTEGER,
+ comment: '好友userid'
+ },
+ friend_type: {
+ type: DataTypes.INTEGER,
+ comment: '好友类型'
+ },
+ channel_id: {
+ type: DataTypes.INTEGER,
+ comment: '关联好友频道id'
+ },
+ status:{
+ type: DataTypes.INTEGER,
+ comment: '好友关系记录状态'
+ },
+ remark: {
+ type: DataTypes.STRING(64),
+ comment: '备注'
+ },
+ rename: {
+ type: DataTypes.STRING(64),
+ comment: '好友备注'
+ }
+ },
+ options : {
+ timestamps: true,
+ comment: '好友记录表',
+ indexes: [{
+ name: 'created_at_index',
+ method: 'BTREE',
+ fields: ['created_at']
+ }]
+ }
+ }
+}
+
+module.exports = {
+ model: function(sequelize, DataTypes){
+ return {
+ TlUserFriend: sequelize.define(
+ 'tl_user_friend',
+ tl_user_friend_model(DataTypes).model,
+ tl_user_friend_model(DataTypes).options
+ )
+ }
+ },
+ fields: tl_user_friend_fields
+}
\ No newline at end of file
diff --git a/src/tables/tl_user_notify.js b/src/tables/tl_user_notify.js
new file mode 100644
index 0000000..63b101d
--- /dev/null
+++ b/src/tables/tl_user_notify.js
@@ -0,0 +1,74 @@
+const tl_user_notify_fields = {
+ Name: 'tl_user_notify',
+ Description: '用户通知表',
+ Def: {
+ id : 'id',
+ companyId : 'company_id',
+ userId : 'user_id',
+ type : 'type',
+ title: 'title',
+ content: 'content',
+ createdAt : 'createdAt',
+ updatedAt : 'updatedAt',
+ deletedAt : 'deletedAt',
+ },
+ Type: {
+ WORK_CARD: 1, // 工作卡片通知
+ SYSTEM_CARD_NOTICE: 2, // 系统卡片通知
+ },
+}
+
+const tl_user_notify_model = function(DataTypes){
+ return {
+ model : {
+ id: {
+ type: DataTypes.INTEGER,
+ comment: '标签id',
+ primaryKey: true,
+ autoIncrement: true
+ },
+ userId: {
+ type: DataTypes.INTEGER,
+ comment: '用户id',
+ },
+ companyId: {
+ type: DataTypes.INTEGER,
+ comment: '公司id',
+ },
+ type: {
+ type: DataTypes.INTEGER,
+ comment: '通知类型',
+ },
+ title: {
+ type: DataTypes.STRING(255),
+ comment: '通知标题',
+ },
+ content: {
+ type: DataTypes.TEXT,
+ comment: '通知内容',
+ }
+ },
+ options : {
+ timestamps: true,
+ comment: '用户通知记录表',
+ indexes: [{
+ name: 'created_at_index',
+ method: 'BTREE',
+ fields: ['created_at']
+ }]
+ }
+ }
+}
+
+module.exports = {
+ model: function(sequelize, DataTypes){
+ return {
+ TlUserNotify: sequelize.define(
+ 'tl_user_notify',
+ tl_user_notify_model(DataTypes).model,
+ tl_user_notify_model(DataTypes).options
+ )
+ }
+ },
+ fields: tl_user_notify_fields
+}
\ No newline at end of file
diff --git a/src/tables/tl_user_read.js b/src/tables/tl_user_read.js
new file mode 100644
index 0000000..53b005b
--- /dev/null
+++ b/src/tables/tl_user_read.js
@@ -0,0 +1,86 @@
+const tl_user_read_fields = {
+ Name: 'tl_user_read',
+ Description: '频道已读消息,其他已读消息表,聊天消息只存最新消息id,其他消息已读一条就是一条记录',
+ Def: {
+ id: 'id',
+ companyId: 'company_id',
+ userId: 'user_id',
+ type: 'type',
+ channelId : 'channel_id',
+ latestReadId: 'latest_read_id',
+ recordId: 'record_id',
+ createdAt: 'createdAt',
+ updatedAt: 'updatedAt',
+ deletedAt: 'deletedAt'
+ },
+ Type: {
+ CHAT : 1, // 聊天消息
+ MEDIA : 2, // 媒体流消息
+ FILE: 3, // 文件消息
+ FRIEND_APPLY: 4, // 好友申请消息
+ FRIEND_APPLY_PASS: 5, // 好友同意消息
+ FRIEND_APPLY_REJECT: 6, // 好友拒绝消息
+ },
+}
+
+const tl_user_read_model = function(DataTypes){
+ return {
+ model : {
+ id: {
+ type: DataTypes.INTEGER,
+ comment: '频道已读记录id',
+ primaryKey: true,
+ autoIncrement: true
+ },
+ company_id: {
+ type: DataTypes.INTEGER,
+ comment: '企业id'
+ },
+ user_id: {
+ type: DataTypes.INTEGER,
+ comment: '频道所属用户id'
+ },
+ type: {
+ type: DataTypes.INTEGER,
+ comment: '消息类型',
+ },
+ channel_id: {
+ type: DataTypes.INTEGER,
+ defaultValue: 0,
+ comment: '频道id'
+ },
+ latest_read_id: {
+ type: DataTypes.INTEGER,
+ defaultValue: 0,
+ comment: '频道用户已读最新消息id'
+ },
+ record_id: {
+ type: DataTypes.INTEGER,
+ defaultValue: 0,
+ comment: '用户已读消息记录id'
+ },
+ },
+ options : {
+ timestamps: true,
+ comment: '频道已读记录表',
+ indexes: [{
+ name: 'created_at_index',
+ method: 'BTREE',
+ fields: ['created_at']
+ }]
+ }
+ }
+}
+
+module.exports = {
+ model: function(sequelize, DataTypes){
+ return {
+ TlUserRead: sequelize.define(
+ 'tl_user_read',
+ tl_user_read_model(DataTypes).model,
+ tl_user_read_model(DataTypes).options
+ )
+ }
+ },
+ fields: tl_user_read_fields
+}
\ No newline at end of file
diff --git a/src/tables/tl_user_tag.js b/src/tables/tl_user_tag.js
new file mode 100644
index 0000000..eea2976
--- /dev/null
+++ b/src/tables/tl_user_tag.js
@@ -0,0 +1,70 @@
+const tl_user_tag_fields = {
+ Name: 'tl_user_tag',
+ Description: '用户标签表, 主要定义用户频道分组标签,用户好友标签等',
+ Def: {
+ id : 'id',
+ companyId : 'company_id',
+ userId : 'user_id',
+ name : 'name',
+ type : 'type',
+ createdAt : 'createdAt',
+ updatedAt : 'updatedAt',
+ deletedAt : 'deletedAt',
+ },
+ Type: {
+ CHANNEL: 1, // 频道分组标签
+ FRIEND: 2, // 好友分组标签
+ CLOUD: 3, // 资源库文件标签
+ },
+}
+
+const tl_user_tag_model = function(DataTypes){
+ return {
+ model : {
+ id: {
+ type: DataTypes.INTEGER,
+ comment: '标签id',
+ primaryKey: true,
+ autoIncrement: true
+ },
+ userId: {
+ type: DataTypes.INTEGER,
+ comment: '用户id',
+ },
+ companyId: {
+ type: DataTypes.INTEGER,
+ comment: '公司id',
+ },
+ name: {
+ type: DataTypes.STRING(255),
+ comment: '标签名称',
+ },
+ type: {
+ type: DataTypes.INTEGER,
+ comment: '标签类型',
+ },
+ },
+ options : {
+ timestamps: true,
+ comment: '用户标签记录表',
+ indexes: [{
+ name: 'created_at_index',
+ method: 'BTREE',
+ fields: ['created_at']
+ }]
+ }
+ }
+}
+
+module.exports = {
+ model: function(sequelize, DataTypes){
+ return {
+ TlUserTag: sequelize.define(
+ 'tl_user_tag',
+ tl_user_tag_model(DataTypes).model,
+ tl_user_tag_model(DataTypes).options
+ )
+ }
+ },
+ fields: tl_user_tag_fields
+}
\ No newline at end of file
diff --git a/src/utils/cache/cache.js b/src/utils/cache/cache.js
new file mode 100644
index 0000000..5808dee
--- /dev/null
+++ b/src/utils/cache/cache.js
@@ -0,0 +1,331 @@
+const {
+ getRedisClient
+} = require('./redis');
+
+const {
+ USER_KEYS,
+ SOCKET_KEYS
+} = require('./cache_key');
+const { tlConsole } = require('../../utils/utils');
+const {
+ LOGIN : {
+ LOGIN_TOKEN_EXPIRE,
+
+ WEBSITE_LOGIN_TOKEN_EXPIRE
+ }
+} = require('../../utils/constant');
+
+
+/**
+ * 设置登录信息
+ * 1小时过期
+ * @param {*} token
+ * @param {*} loginInfo
+ * @param {*} isWebsite
+ */
+const setLoginInfo = async function({
+ token, loginInfo, isWebsite = false
+}){
+ const key = USER_KEYS.USER_LOGIN_INFO + token;
+
+ const redisClient = getRedisClient();
+
+ await redisClient.set(key, loginInfo);
+
+ if(isWebsite){
+ await redisClient.expire(key, WEBSITE_LOGIN_TOKEN_EXPIRE);
+ }else{
+ await redisClient.expire(key, LOGIN_TOKEN_EXPIRE);
+ }
+}
+
+
+/**
+ * 获取登录信息
+ * @param {*} token
+ * @returns
+ */
+const getLoginInfo = async function({token}){
+ const key = USER_KEYS.USER_LOGIN_INFO + token;
+
+ const redisClient = getRedisClient();
+
+ return await redisClient.get(key);
+}
+
+/**
+ * 设置用户登录状态
+ * 1小时过期
+ * @param {*} userId
+ * @param {*} status
+ * @param {*} isWebsite
+ */
+const setLoginStatus = async function({
+ userId, status, isWebsite
+}){
+ const key = USER_KEYS.USER_LOGIN_STATUS + userId;
+
+ const redisClient = getRedisClient();
+
+ await redisClient.set(key, status);
+
+ if(isWebsite){
+ await redisClient.expire(key, WEBSITE_LOGIN_TOKEN_EXPIRE);
+ }else{
+ await redisClient.expire(key, LOGIN_TOKEN_EXPIRE);
+ }
+}
+
+/**
+ * 获取用户登录状态
+ * @param {*} userId
+ */
+const getLoginStatus = async function({userId}){
+ const key = USER_KEYS.USER_LOGIN_STATUS + userId;
+
+ const redisClient = getRedisClient();
+
+ return await redisClient.get(key);
+}
+
+/**
+ * 获取用户登录状态列表
+ * @param {*} userIdList
+ * @returns
+ */
+const getLoginStatusList = async function({userIdList}){
+ const keyList = userIdList.map(userId => USER_KEYS.USER_LOGIN_STATUS + userId);
+
+ const redisClient = getRedisClient();
+
+ return await redisClient.mGet(keyList);
+}
+
+/**
+ * 设置用户信息
+ * 1小时过期
+ * @param {*} userId
+ * @param {*} userInfo
+ * @param {*} isWebsite
+ * @returns
+ */
+const setUserInfo = async function({
+ userId, userInfo, isWebsite = false
+}){
+ const cacheKey = USER_KEYS.USER_INFO + userId;
+
+ const redisClient = getRedisClient();
+
+ await redisClient.set(cacheKey, userInfo);
+
+ if(isWebsite){
+ await redisClient.expire(cacheKey, WEBSITE_LOGIN_TOKEN_EXPIRE);
+ }else{
+ await redisClient.expire(cacheKey, LOGIN_TOKEN_EXPIRE);
+ }
+}
+
+
+/**
+ * 获取用户信息
+ * @param {*} userId
+ * @returns
+ */
+const getUserInfo = async function({userId}){
+ const cacheKey = USER_KEYS.USER_INFO + userId;
+
+ const redisClient = getRedisClient();
+
+ return await redisClient.get(cacheKey);
+}
+
+
+/**
+ * 设置socketId和userId的映射关系
+ * 1小时过期
+ * @param {*} socketId
+ * @param {*} userId
+ * @param {*} companyId
+ * @param {*} isWebsite
+ */
+const setUserIdSocketIdMap = async function({
+ companyId, userId, socketId, isWebsite = false
+}){
+ const cacheKey = USER_KEYS.USER_ID_SOCKET_ID_MAP + companyId;
+
+ const redisClient = getRedisClient();
+
+ await redisClient.hSet(cacheKey, {
+ [userId]: socketId
+ });
+
+ if(isWebsite){
+ await redisClient.expire(cacheKey, WEBSITE_LOGIN_TOKEN_EXPIRE);
+ }else{
+ await redisClient.expire(cacheKey, LOGIN_TOKEN_EXPIRE);
+ }
+}
+
+
+/**
+ * 获取socketId和userId的映射关系
+ * @param {*} userId
+ * @returns
+ */
+const getUserIdSocketIdMap = async function({userId}){
+ const cacheKey = USER_KEYS.USER_ID_SOCKET_ID_MAP;
+
+ const redisClient = getRedisClient();
+
+ return await redisClient.hget(cacheKey, userId);
+}
+
+/**
+ * 设置邮箱验证码
+ * 5分钟过期
+ * @param {*} email
+ * @param {*} code
+ */
+const setEmailCode = async function({
+ email, code
+}){
+ const cacheKey = USER_KEYS.USER_EMAIL_CODE + email;
+
+ const redisClient = getRedisClient();
+
+ await redisClient.set(cacheKey, code);
+ await redisClient.expire(cacheKey, 5 * 60);
+}
+
+/**
+ * 获取邮箱验证码
+ * @param {*} email
+ * @returns
+ */
+const getEmailCode = async function({email}){
+ const cacheKey = USER_KEYS.USER_EMAIL_CODE + email;
+
+ const redisClient = getRedisClient();
+
+ return await redisClient.get(cacheKey);
+}
+
+/**
+ * 设置手机号验证码
+ * 5分钟过期
+ * @param {*} phone
+ * @param {*} code
+ * @returns
+ */
+const setPhoneCode = async function({phone, code}){
+ const cacheKey = USER_KEYS.USER_PHONE_CODE + phone;
+
+ const redisClient = getRedisClient();
+
+ await redisClient.set(cacheKey, code);
+ await redisClient.expire(cacheKey, 5 * 60);
+}
+
+/**
+ * 获取手机号验证码
+ * @param {*} phone
+ * @returns
+ */
+const getPhoneCode = async function({phone}){
+ const cacheKey = USER_KEYS.USER_PHONE_CODE + phone;
+
+ const redisClient = getRedisClient();
+
+ return await redisClient.get(cacheKey);
+}
+
+/**
+ * 批量设置用户频道角色
+ * @param {*} userId
+ * @param {*} channelRoleMap
+ */
+const setUserChannelRoleMap = async function({userId, channelRoleMap}){
+
+ const cacheKey = USER_KEYS.USER_CHANNEL_PERMISSION + userId;
+
+ const redisClient = getRedisClient();
+
+ await redisClient.hSet(cacheKey, channelRoleMap);
+ await redisClient.expire(cacheKey, LOGIN_TOKEN_EXPIRE);
+}
+
+/**
+ * 更新用户频道角色
+ * @param {*} userId
+ * @param {*} channelRoleMap
+ */
+const updateUserChannelRoleMap = async function({userId, channelRoleMap}){
+ const cacheKey = USER_KEYS.USER_CHANNEL_PERMISSION + userId;
+
+ const redisClient = getRedisClient();
+
+ await redisClient.hSet(cacheKey, channelRoleMap);
+}
+
+/**
+ * 批量更新用户频道角色
+ * @param {*} userId
+ * @param {*} channelRoleMap
+ */
+const batchUpdateUserChannelRoleMap = async function({userIdList, channelRoleMap}){
+ const redisClient = getRedisClient();
+
+ let multi = redisClient.multi()
+
+ userIdList.forEach(userId => {
+ const cacheKey = USER_KEYS.USER_CHANNEL_PERMISSION + userId;
+ multi.hSet(cacheKey, channelRoleMap);
+ })
+
+ await multi.exec();
+}
+
+/**
+ * 获取用户所有频道角色
+ * @param {*} userId
+ * @returns
+ */
+const getUserChannelRoleMap = async function({userId}){
+ const cacheKey = USER_KEYS.USER_CHANNEL_PERMISSION + userId;
+
+ const redisClient = getRedisClient();
+
+ return await redisClient.hGetAll(cacheKey);
+}
+
+/**
+ * 获取用户频道角色
+ * @param {*} userId
+ * @param {*} channelId
+ * @returns
+ */
+const getUserChannelRole = async function({userId, channelId}){
+ const cacheKey = USER_KEYS.USER_CHANNEL_PERMISSION + userId;
+
+ const redisClient = getRedisClient();
+
+ return await redisClient.hGet(cacheKey, channelId);
+}
+
+
+module.exports = {
+ setLoginInfo, getLoginInfo,
+ setUserInfo, getUserInfo,
+
+ setUserIdSocketIdMap, getUserIdSocketIdMap,
+
+ getLoginStatus, setLoginStatus,
+ getLoginStatusList,
+
+ setEmailCode, getEmailCode,
+ setPhoneCode, getPhoneCode,
+
+ setUserChannelRoleMap, updateUserChannelRoleMap,
+ getUserChannelRoleMap, getUserChannelRole,
+ batchUpdateUserChannelRoleMap
+}
\ No newline at end of file
diff --git a/src/utils/cache/cache_key.js b/src/utils/cache/cache_key.js
new file mode 100644
index 0000000..363fde3
--- /dev/null
+++ b/src/utils/cache/cache_key.js
@@ -0,0 +1,19 @@
+const {
+ CHANNEL_KEYS
+} = require('./key/channel_key');
+
+const {
+ USER_KEYS
+} = require('./key/user_key')
+
+const {
+ SOCKET_KEYS
+} = require('./key/socket_key')
+
+
+
+module.exports = {
+ CHANNEL_KEYS,
+ USER_KEYS,
+ SOCKET_KEYS
+}
\ No newline at end of file
diff --git a/src/utils/cache/key/channel_key.js b/src/utils/cache/key/channel_key.js
new file mode 100644
index 0000000..3df57bc
--- /dev/null
+++ b/src/utils/cache/key/channel_key.js
@@ -0,0 +1,10 @@
+const PREFIX = 'TL:CHANNEL:';
+
+const KEYS = {
+ // 某个频道下用户列表
+ CHANNEL_USER_LIST: PREFIX + 'CHANNEL_USER_LIST:',
+}
+
+module.exports = {
+ CAHNNEL_KEYS : KEYS
+}
\ No newline at end of file
diff --git a/src/utils/cache/key/socket_key.js b/src/utils/cache/key/socket_key.js
new file mode 100644
index 0000000..9d80b24
--- /dev/null
+++ b/src/utils/cache/key/socket_key.js
@@ -0,0 +1,9 @@
+const PREFIX = 'TL:SOCKET:';
+
+const KEYS = {
+
+}
+
+module.exports = {
+ SOCKET_KEYS : KEYS
+}
\ No newline at end of file
diff --git a/src/utils/cache/key/user_key.js b/src/utils/cache/key/user_key.js
new file mode 100644
index 0000000..52fcef7
--- /dev/null
+++ b/src/utils/cache/key/user_key.js
@@ -0,0 +1,32 @@
+
+const PREFIX = 'TL:USER:';
+
+const KEYS = {
+ // 用户登陆态信息
+ USER_LOGIN_INFO: PREFIX + 'USER_LOGIN_INFO:',
+
+ // 用户在线状态
+ USER_LOGIN_STATUS: PREFIX + 'USER_LOGIN_STATUS:',
+
+ // 用户信息
+ USER_INFO: PREFIX + 'USER_INFO:',
+
+ // 用户的所有频道列表
+ USER_CHANNEL_LIST: PREFIX + 'USER_CHANNEL_LIST:',
+
+ // 用户频道权限
+ USER_CHANNEL_PERMISSION: PREFIX + 'USER_CHANNEL_PERMISSION:',
+
+ // userId和socketId的映射
+ USER_ID_SOCKET_ID_MAP: PREFIX + 'USER_ID_SOCKET_ID_MAP:',
+
+ // 用户邮箱验证码
+ USER_EMAIL_CODE: PREFIX + 'USER_EMAIL_CODE:',
+
+ // 用户手机验证码
+ USER_PHONE_CODE: PREFIX + 'USER_PHONE_CODE:',
+}
+
+module.exports = {
+ USER_KEYS : KEYS
+}
\ No newline at end of file
diff --git a/src/utils/cache/redis.js b/src/utils/cache/redis.js
new file mode 100644
index 0000000..b38f39a
--- /dev/null
+++ b/src/utils/cache/redis.js
@@ -0,0 +1,57 @@
+const { createClient } = require('redis');
+const {
+ tlConsole,
+} = require('../../utils/utils');
+const { get_env_config } = require("../../../conf/env_config");
+const conf = get_env_config();
+
+// 连接对象缓存
+let redisClientInstance = null
+
+/**
+ * 获取redis客户端
+ * @returns
+ */
+const redisInit = async function() {
+ if(redisClientInstance != null){
+ return redisClientInstance;
+ }
+
+ const RDS_USER = "default"
+ const RDS_HOST = conf.redis_host;
+ const RDS_PORT = conf.redis_port;
+ const RDS_PWD = conf.redis_password;
+ const RDS_OPTS = {
+ auth_pass: RDS_PWD,
+ };
+
+ if(RDS_PWD){
+ redisClientInstance = createClient({
+ url: `redis://:${RDS_PWD}@${RDS_HOST}:${RDS_PORT}/0`,
+ });
+ }else{
+ redisClientInstance = createClient({});
+ }
+
+ redisClientInstance.on('error', err => {
+ tlConsole('Redis Client Error : ', err)
+ });
+
+ await redisClientInstance.connect();
+
+ tlConsole('redis connect ok ...');
+};
+
+
+/**
+ * 获取redis客户端连接
+ * @returns
+ */
+const getRedisClient = function(){
+ return redisClientInstance;
+}
+
+
+module.exports = {
+ redisInit, getRedisClient
+}
\ No newline at end of file
diff --git a/src/utils/constant.js b/src/utils/constant.js
new file mode 100644
index 0000000..d42a950
--- /dev/null
+++ b/src/utils/constant.js
@@ -0,0 +1,11 @@
+const LOGIN = {
+ // 登录token
+ LOGIN_TOKEN_KEY : '_tl_lg_tk',
+ // 登录token过期时间
+ LOGIN_TOKEN_EXPIRE : 1000 * 60 * 60,
+}
+
+
+module.exports = {
+ LOGIN,
+}
\ No newline at end of file
diff --git a/src/utils/mail/mail.js b/src/utils/mail/mail.js
new file mode 100644
index 0000000..e7f52dd
--- /dev/null
+++ b/src/utils/mail/mail.js
@@ -0,0 +1,136 @@
+// mail.js
+const { get_env_config, load_env_config } = require("../../../conf/env_config");
+//加载环境变量
+load_env_config();
+//加载环境变量完毕后,加载配置
+const conf = get_env_config()
+const nodemailer = require('nodemailer');
+const nodemailerSmtpTransport = require('nodemailer-smtp-transport');
+const {
+ tlConsole
+} = require("../utils");
+
+
+/**
+ * 发送邮件
+ * @param {string} to - 收件人的邮箱地址
+ * @param {string} subject - 邮件主题
+ * @param {string} text - 邮件文本内容
+ * @param {string} html - 邮件HTML内容(可选)
+ * @returns {Promise} - 返回一个Promise对象,表示发送邮件的结果
+ */
+async function sendEmail({ to, subject, text, html }) {
+ try {
+ // 创建一个SMTP传输器对象
+ let transporter = nodemailer.createTransport({
+ host: conf.mail_host, // SMTP服务器地址
+ port: conf.mail_port, // SMTP服务端口
+ secure: true, // true表示使用SSL,false表示使用TLS
+ auth: {
+ user: conf.mail_user, // 发件人邮箱
+ pass: conf.mail_password // 授权码
+ },
+ });
+
+ // 发送邮件
+ let info = await transporter.sendMail({
+ from: conf.mail_user, // 发件人邮箱
+ to: to,
+ subject: subject,
+ text: text,
+ html: html
+ });
+
+ tlConsole('发送邮件结果: %s', info.messageId);
+
+ return info;
+ } catch (error) {
+ tlConsole('发送邮件异常:', error);
+ return null;
+ }
+}
+
+/**
+ * 验证码邮件模版
+ * @param {string} code - 验证码
+ * @param {number} expire - 验证码的有效时间(单位:分钟)
+ * @param {string} company - 团队名称
+ * @param {string} companyUrl - 团队网址
+ * @returns {string} - 返回邮件的HTML内容
+ */
+const emailTemplate = function({
+ code, expire, companyName, companyUrl
+}) {
+ return `
+
+
+
+
+
+ 验证码
+
+
+
+
+
+
+
+
+ 尊敬的用户,您好!
+ 感谢您使用我们的服务。为了验证您的邮箱地址,请在页面中输入以下验证码:
+ ${code}
+ 请注意:该验证码将在 ${expire}分钟 内有效。
+
+ 请勿将此验证码透露给他人。
+ 如果您未请求此验证码,请忽略此邮件。
+ 如有任何问题,请随时联系我们的客服团队。
+
+ 祝您愉快!
+ 此致
+ ${companyName}
+ 此邮件由系统自动发出,请勿直接回复。
+
+ |
+
+
+ |
+
+
+
+
+ `;
+}
+
+/**
+ * 发送验证码邮件
+ * @param {string} to - 收件人的邮箱地址
+ * @param {string} code - 验证码
+ * @param {number} expire - 验证码的有效时间(单位:分钟)
+ * @param {string} companyName - 团队名称
+ * @param {string} companyUrl - 团队网址
+ * @returns {Promise} - 返回一个Promise对象,表示发送邮件的结果
+ */
+async function sendVerificationCodeEmail({ to, code, expire, companyName, companyUrl }) {
+ let html = emailTemplate({
+ code,
+ expire,
+ companyName,
+ companyUrl
+ });
+
+ return await sendEmail({
+ to,
+ subject: '邮箱验证',
+ text: `您的验证码是:${code},有效时间为 ${expire} 分钟。`,
+ html
+ });
+}
+
+
+module.exports = {
+ sendEmail,
+ sendVerificationCodeEmail
+};
\ No newline at end of file
diff --git a/src/utils/oss/ali_oss.js b/src/utils/oss/ali_oss.js
new file mode 100644
index 0000000..e035408
--- /dev/null
+++ b/src/utils/oss/ali_oss.js
@@ -0,0 +1,55 @@
+const { get_env_config, load_env_config } = require("../../../conf/env_config");
+//加载环境变量
+load_env_config();
+//加载环境变量完毕后,加载配置
+const conf = get_env_config()
+const OSS = require('ali-oss');
+
+
+const ossInstant = new OSS({
+ accessKeyId: conf.oss_ali_secretId,
+ accessKeySecret: conf.oss_ali_secretKey,
+ region: 'cn-beijing',
+ authorizationV4: true,
+ bucket: 'tl-rtc-app-test',
+});
+
+/**
+ * 上传文件
+ */
+const uploadFileToOss = function ({ key, file }) {
+ return new Promise((resolve, reject) => {
+ ossInstant.put(key, file).then((res) => {
+ resolve(res)
+ }).catch((err) => {
+ reject(err)
+ })
+ })
+}
+
+/**
+ * 获取oss的url
+ * @param {*} key
+ * @param {*} expires
+ * @returns
+ */
+const getOssUrl = async function (key, expires = 3600) {
+ return "/image/404.png";
+}
+
+/**
+ * 获取头像的oss-url
+ * @param {*} key
+ * @param {*} expires
+ * @returns
+ */
+const getAvatarOssUrl = async function (key, expires = 3600) {
+ return '/image/default-avatar.png'
+}
+
+
+module.exports = {
+ uploadFileToOss,
+ getOssUrl,
+ getAvatarOssUrl
+}
\ No newline at end of file
diff --git a/src/utils/oss/oss.js b/src/utils/oss/oss.js
new file mode 100644
index 0000000..60097de
--- /dev/null
+++ b/src/utils/oss/oss.js
@@ -0,0 +1,113 @@
+const { get_env_config, load_env_config } = require("../../../conf/env_config");
+const { tlConsoleError } = require("../../utils/utils");
+//加载环境变量
+load_env_config();
+//加载环境变量完毕后,加载配置
+const conf = get_env_config()
+
+const txInstant = require('./tx_oss')
+const aliInstant = require('./ali_oss')
+
+
+/**
+ * 获取oss的url
+ * @param {*} key
+ * @param {*} expires
+ * @returns
+ */
+const getOssUrl = async function (key, expires = 3600) {
+ try{
+ return txInstant.getOssUrl(key, expires)
+ }catch(error){
+ tlConsoleError("获取oss的url失败 : ", error)
+ return null
+ }
+}
+
+/**
+ * 获取头像的oss-url
+ * @param {*} key
+ * @param {*} expires
+ * @returns
+ */
+const getAvatarOssUrl = async function (key, expires = 3600) {
+ try{
+ return txInstant.getAvatarOssUrl(key, expires)
+ }catch(error){
+ tlConsoleError("获取头像的oss-url失败 : ", error)
+ return null
+ }
+}
+
+/**
+ * 获取阿里云oss的url
+ * @param {*} key
+ * @param {*} expires
+ * @returns
+ */
+const getOssUrlAli = async function (key, expires = 3600) {
+ try{
+ return aliInstant.getOssUrl(key, expires)
+ }catch(error){
+ tlConsoleError("获取阿里云oss的url失败 : ", error)
+ return null
+ }
+}
+
+/**
+ * 获取阿里云oss的头像url
+ * @param {*} key
+ * @param {*} expires
+ * @returns
+ */
+const getAvatarOssUrlAli = async function (key, expires = 3600) {
+ try{
+ return aliInstant.getAvatarOssUrl(key, expires)
+ }catch(error){
+ tlConsoleError("获取阿里云oss的头像url失败 : ", error)
+ return null
+ }
+}
+
+
+/**
+ * 获取腾讯云oss的url
+ * @param {*} key
+ * @param {*} expires
+ * @returns
+ */
+const getOssUrlTx = async function (key, expires = 3600) {
+ try{
+ return txInstant.getOssUrl(key, expires)
+ }catch(error){
+ tlConsoleError("获取腾讯云oss的url失败 : ", error)
+ return null
+ }
+}
+
+/**
+ * 获取腾讯云oss的头像url
+ * @param {*} key
+ * @param {*} expires
+ * @returns
+ */
+const getAvatarOssUrlTx = async function (key, expires = 3600) {
+ try{
+ return txInstant.getAvatarOssUrl(key, expires)
+ }catch(error){
+ tlConsoleError("获取腾讯云oss的头像url失败 : ", error)
+ return null
+ }
+}
+
+
+module.exports = {
+ getOssUrl,
+ getAvatarOssUrl,
+
+ getOssUrlAli,
+ getAvatarOssUrlAli,
+
+ getOssUrlTx,
+ getAvatarOssUrlTx,
+}
\ No newline at end of file
diff --git a/src/utils/oss/tx_oss.js b/src/utils/oss/tx_oss.js
new file mode 100644
index 0000000..3ed7c74
--- /dev/null
+++ b/src/utils/oss/tx_oss.js
@@ -0,0 +1,58 @@
+const { get_env_config, load_env_config } = require("../../../conf/env_config");
+//加载环境变量
+load_env_config();
+//加载环境变量完毕后,加载配置
+const conf = get_env_config()
+const OSS = require('cos-nodejs-sdk-v5');
+
+
+const ossInstant = new OSS({
+ SecretId: conf.oss_tx_secretId,
+ SecretKey: conf.oss_tx_secretKey
+})
+
+/**
+ * 上传文件
+ */
+const uploadFileToOss = function ({ key, file }) {
+ return new Promise((resolve, reject) => {
+ ossInstant.putObject({
+ Bucket: conf.oss_tx_bucket,
+ Region: conf.oss_tx_region,
+ Key: key,
+ Body: file
+ }, function (err, data) {
+ if (err) {
+ reject(err)
+ } else {
+ resolve(data)
+ }
+ });
+ })
+}
+
+/**
+ * 获取oss的url
+ * @param {*} key
+ * @param {*} expires
+ * @returns
+ */
+const getOssUrl = async function (key, expires = 3600) {
+ return "/image/404.png";
+}
+
+/**
+ * 获取头像的oss-url
+ * @param {*} key
+ * @param {*} expires
+ * @returns
+ */
+const getAvatarOssUrl = async function (key, expires = 3600) {
+ return '/image/default-avatar.png'
+}
+
+module.exports = {
+ uploadFileToOss,
+ getOssUrl,
+ getAvatarOssUrl
+}
\ No newline at end of file
diff --git a/src/utils/utils.js b/src/utils/utils.js
new file mode 100644
index 0000000..fa5c62f
--- /dev/null
+++ b/src/utils/utils.js
@@ -0,0 +1,597 @@
+const os = require('os');
+const { get_env_config } = require('./../../conf/env_config');
+const conf = get_env_config()
+const crypto = require('crypto');
+
+/**
+ * 获取本机ip
+ * @returns
+ */
+function getLocalIP() {
+ const osType = os.type(); //系统类型
+ const netInfo = os.networkInterfaces(); //网络信息
+ let ip = '';
+ if (osType === 'Windows_NT') {
+ for (let dev in netInfo) {
+ //win7的网络信息中显示为本地连接,win10显示为以太网
+ if (dev === '本地连接' || dev === '以太网') {
+ for (let j = 0; j < netInfo[dev].length; j++) {
+ if (netInfo[dev][j].family === 'IPv4') {
+ ip = netInfo[dev][j].address;
+ break;
+ }
+ }
+ }
+ }
+
+ } else if (osType === 'Linux') {
+ for (let dev in netInfo) {
+ let iface = netInfo[dev];
+ for (let i = 0; i < iface.length; i++) {
+ let alias = iface[i];
+ if (alias.family === 'IPv4' && alias.address !== '127.0.0.1' && !alias.internal) {
+ return alias.address;
+ }
+ }
+ }
+ }
+
+ return ip;
+}
+
+/**
+ * 检查两个IP地址是否在同一个子网内
+ * @param {*} ip1
+ * @param {*} ip2
+ * @param {*} subnetMask
+ * @returns
+ */
+function isSameSubnet(ip1, ip2, subnetMask) {
+ // 将IPv4或IPv6地址和子网掩码转换为数字形式
+ function ipToNumber(ip) {
+ if (ip.indexOf(':') > -1) { // IPv6
+ const parts = ip.split(':');
+ return parts.map(part => parseInt(part, 16)).join('');
+ } else { // IPv4
+ const parts = ip.split('.');
+ return (parseInt(parts[0]) << 24) |
+ (parseInt(parts[1]) << 16) |
+ (parseInt(parts[2]) << 8) |
+ parseInt(parts[3]);
+ }
+ }
+
+ // 检查第一个IP和第二个IP是否在同一个子网内
+ const ip1Number = ipToNumber(ip1);
+ const ip2Number = ipToNumber(ip2);
+ const subnetMaskNumber = ipToNumber(subnetMask);
+
+ return (ip1Number & subnetMaskNumber) === (ip2Number & subnetMaskNumber);
+}
+
+/**
+ * 获取请求的ip
+ * @param {*} request
+ * @returns
+ */
+function getClientIP(request) {
+ let ip = request.headers['x-forwarded-for'] ||
+ request.ip ||
+ request.connection.remoteAddress ||
+ request.socket.remoteAddress ||
+ request.connection.socket.remoteAddress;
+
+ if (ip.split(',').length > 0) {
+ ip = ip.split(',')[0]
+ }
+
+ ip = ip.substr(ip.lastIndexOf(':') + 1, ip.length);
+ return ip;
+}
+
+/**
+ * 生成随机数
+ * @param {*} req
+ * @returns
+ */
+function genFlow(req) {
+ return num = Math.floor(Math.random(100000000) * 100000000 + 1);
+}
+
+/**
+ * 生成随机数
+ * @param {*} req
+ * @returns
+ */
+function genRoom(req) {
+ return num = Math.floor(Math.random(100000000) * 100000000 + 1);
+}
+
+/**
+ * 格式化时间
+ * @param {*} time
+ * @param {*} format
+ * @returns
+ */
+function formateDateTime(time, format) {
+ let o = {
+ 'M+': time.getMonth() + 1, // 月份
+ 'd+': time.getDate(), // 日
+ 'h+': time.getHours(), // 小时
+ 'm+': time.getMinutes(), // 分
+ 's+': time.getSeconds(), // 秒
+ 'q+': Math.floor((time.getMonth() + 3) / 3), // 季度
+ S: time.getMilliseconds(), // 毫秒
+ };
+ if (/(y+)/.test(format)) {
+ format = format.replace(RegExp.$1, (time.getFullYear() + '').substring(4 - RegExp.$1.length));
+ }
+ for (let k in o) {
+ if (new RegExp('(' + k + ')').test(format)) {
+ format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ('00' + o[k]).substring(('' + o[k]).length));
+ }
+ }
+ return format;
+}
+
+/**
+ * 获取当前时间下一天
+ * @param {*} time
+ * @returns
+ */
+function getNextDay(time) {
+ let date = new Date(time);
+ date.setDate(date.getDate() + 1);
+ let y = date.getFullYear();
+ let m = date.getMonth() < 9 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1;
+ let d = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
+ return y + "-" + m + "-" + d;
+}
+
+/**
+ * 获取socket中的请求客户端信息
+ * @param {*} socket
+ * @returns
+ */
+function getSocketClientInfo(socket){
+ let handshake = socket.handshake
+
+ let userAgent = handshake.headers['user-agent'].toString().substr(0, 255);
+
+ let ip = handshake.headers['x-real-ip'] || handshake.headers['x-forwarded-for'] || handshake.headers['host'];
+ ip = ip.indexOf(":") > -1 ? ip.split(":")[0] : ip;
+
+ let address = socket.handshake.address;
+ address = address.length > 7 ? address.substr(7, address.length) : address;
+
+ return {
+ handshake, userAgent, ip, address
+ }
+}
+
+/**
+ * 转换文件大小
+ * @param {*} size
+ * @returns
+ */
+function getFileSizeStr(size) {
+ let sizeStr = (size / 1048576).toString();
+ let head = sizeStr.split(".")[0];
+ let tail = "";
+ if (sizeStr.split(".")[1]) {
+ tail = sizeStr.split(".")[1].substring(0, 3);
+ }
+ return head + '.' + tail + "M";
+}
+
+function tlConsole(...msg){
+ let msgArgs = new Array(msg.length).fill("%s").join(" | ")
+ console.log(`\x1B[1m${new Date().toLocaleString()}\x1B[0m \x1B[40m\x1B[36m tl-rtc-app-${conf.version} \x1B[0m : \x1B[36m${msgArgs}\x1B[0m`,...msg)
+}
+
+function tlConsoleError(...msg){
+ let msgArgs = new Array(msg.length).fill("%s").join(" | ")
+ console.log(`\x1B[1m${new Date().toLocaleString()}\x1B[0m \x1B[40m\x1B[31m tl-rtc-app-${conf.version} \x1B[0m : \x1B[31m${msgArgs}\x1B[0m`,...msg)
+}
+
+function tlConsoleWarn(...msg){
+ let msgArgs = new Array(msg.length).fill("%s").join(" | ")
+ console.log(`\x1B[1m${new Date().toLocaleString()}\x1B[0m \x1B[40m\x1B[33m tl-rtc-app-${conf.version} \x1B[0m : \x1B[33m${msgArgs}\x1B[0m`,...msg)
+}
+
+function tlConsoleSocketIcon(){
+ const icon = `
+${".".repeat(process.stdout.columns - 2)}
+${".".repeat(process.stdout.columns - 2)}
+${".".repeat(process.stdout.columns - 2)}
+ . . .
+_/_ | .___ _/_ ___ ___ ,___,, ,___,,
+ | | .---' / | | .' ' .---' / | | | | |
+ | | | ' | | | | | | | |
+ |__/ |__ | |__ [.._.' '.__/| |'---' |'---'
+ | |
+tl-rtc-app-socket-${conf.version}
+Copyright (c) 2024 iamtsm
+MIT License
+${".".repeat(process.stdout.columns - 2)}
+${".".repeat(process.stdout.columns - 2)}
+${".".repeat(process.stdout.columns - 2)}
+`;
+ console.log(icon);
+}
+
+function tlConsoleApiIcon(){
+ const icon = `
+${".".repeat(process.stdout.columns - 2)}
+${".".repeat(process.stdout.columns - 2)}
+${".".repeat(process.stdout.columns - 2)}
+ . . .
+_/_ | .___ _/_ ___ ___ ,___,, ,___,,
+ | | .---' / | | .' ' .---' / | | | | |
+ | | | ' | | | | | | | |
+ |__/ |__ | |__ [.._.' '.__/| |'---' |'---'
+ | |
+tl-rtc-app-socket-${conf.version} ${process.stdout.columns}
+Copyright (c) 2024 iamtsm
+MIT License
+${".".repeat(process.stdout.columns - 2)}
+${".".repeat(process.stdout.columns - 2)}
+${".".repeat(process.stdout.columns - 2)}
+`;
+ console.log(icon);
+}
+
+function tlConsoleTaskIcon(){
+ const icon = `
+${".".repeat(process.stdout.columns - 2)}
+${".".repeat(process.stdout.columns - 2)}
+${".".repeat(process.stdout.columns - 2)}
+ . . .
+_/_ | .___ _/_ ___ ___ ,___,, ,___,,
+ | | .---' / | | .' ' .---' / | | | | |
+ | | | ' | | | | | | | |
+ |__/ |__ | |__ [.._.' '.__/| |'---' |'---'
+ | |
+tl-rtc-app-task-${conf.version} ${process.stdout.columns}
+Copyright (c) 2024 iamtsm
+MIT License
+${".".repeat(process.stdout.columns - 2)}
+${".".repeat(process.stdout.columns - 2)}
+${".".repeat(process.stdout.columns - 2)}
+`;
+ console.log(icon);
+}
+
+/**
+ * 转义字符串
+ * @param {*} str
+ * @returns
+ */
+function escapeStr(str) {
+ const entityMap = {
+ '&': '&',
+ '<': '<',
+ '>': '>',
+ '"': '"',
+ "'": ''',
+ '/': '/',
+ '`': '`',
+ '=': '='
+ };
+
+ const encodedMap = {
+ '%': '%25',
+ '!': '%21',
+ "'": '%27',
+ '(': '%28',
+ ')': '%29',
+ '*': '%2A',
+ '-': '%2D',
+ '.': '%2E',
+ '_': '%5F',
+ '~': '%7E'
+ };
+
+ return String(str).replace(/[&<>"'`=\/%!'()*\-._~]/g, function (s) {
+ return entityMap[s] || encodedMap[s] || '';
+ });
+}
+
+/**
+ * 解析转义字符串
+ * @param {*} str
+ * @returns
+ */
+function unescapeStr(str) {
+ const entityMap = {
+ '&': '&',
+ '<': '<',
+ '>': '>',
+ '"': '"',
+ ''': "'",
+ '/': '/',
+ '`': '`',
+ '=': '='
+ };
+
+ const encodedMap = {
+ '%25': '%',
+ '%21': '!',
+ '%27': "'",
+ '%28': '(',
+ '%29': ')',
+ '%2A': '*',
+ '%2D': '-',
+ '%2E': '.',
+ '%5F': '_',
+ '%7E': '~'
+ };
+
+ return String(str).replace(/&(amp|lt|gt|quot|#39|#x2F|#x60|#x3D);|%(25|21|27|28|29|2A|2D|2E|5F|7E)/g, function (s) {
+ return entityMap[s] || encodedMap[s] || '';
+ });
+}
+
+/**
+ * 根据socketid加密websocket数据
+ * @param {*} socketId
+ * @param {*} data
+ * @returns
+ */
+function encryptSocketData(socketId, data){
+ const key = "tl-rtc-app";
+ const iv = socketId.substring(0, 16);
+ const cipher = crypto.createCipheriv('aes-256-cbc', key, iv);
+ let encrypted = cipher.update(data, 'utf8', 'hex');
+ encrypted += cipher.final('hex');
+ return encrypted;
+}
+
+/**
+ * 根据socketid解密websocket数据
+ * @param {*} socketId
+ * @param {*} data
+ * @returns
+ */
+function decryptSocketData(socketId, data){
+ const key = "tl-rtc-app";
+ const iv = socketId.substring(0, 16);
+ const decipher = crypto.createDecipheriv('aes-256-cbc', key, iv);
+ let decrypted = decipher.update(data, 'hex', 'utf8');
+ decrypted += decipher.final('utf8');
+ return decrypted;
+}
+
+/**
+ * 根据flag和bit获取对应的值
+ * @param {*} flag
+ * @param {*} bit
+ */
+function checkBit(flag, bit){
+ return (flag & bit) === bit;
+}
+
+/**
+ * 根据flag和bit设置对应的值
+ * @param {*} flag
+ * @param {*} bit
+ * @param {*} value
+ */
+function setBit(flag, bit, value){
+ if(value){
+ return flag | bit;
+ }
+ return flag & (~bit);
+}
+
+const tlResponse = function(success=true, code = 200, msg = '', data = {}){
+ return { success, code, msg, data }
+}
+
+const tlResponseSuccess = function(msg = '', data = {}){
+ return tlResponse(true, 200, msg, data)
+}
+
+const tlResponseArgsError = function(msg = '', data = {}){
+ return tlResponse(false, 400, msg, data)
+}
+
+const tlResponseSvrError = function(msg = '', data = {}){
+ return tlResponse(false, 500, msg, data)
+}
+
+const tlResponseNotFound = function(msg = '', data = {}){
+ return tlResponse(false, 404, msg, data)
+}
+
+const tlResponseForbidden = function(msg = '', data = {}){
+ return tlResponse(false, 403, msg, data)
+}
+
+const tlResponseTimeout = function(msg = '', data = {}){
+ return tlResponse(false, 504, msg, data)
+}
+
+/**
+ * 检查入库参数
+ * @param {*} rawAttributes
+ * @param {*} data
+ * @returns
+ */
+const checkRawFieldType = function(rawAttributes, data){
+ for (let key in data) {
+ const value = data[key]
+ const {result, msg} = checkField(rawAttributes, key, value)
+ if(!result){
+ tlConsoleError("参数校验失败", msg)
+ return false
+ }
+ }
+ return true
+}
+
+/**
+ * 检查字段
+ * @param {*} rawAttributes
+ * @param {*} key
+ * @param {*} value
+ * @returns
+ */
+const checkField = function(rawAttributes, key, value){
+ const fieldDef = rawAttributes[key]
+ if(!fieldDef){
+ return {result: false, msg: `字段${key}非法`}
+ }
+
+ if(fieldDef.type.key === 'STRING'){
+ if(typeof value !== 'string'){
+ return {result: false, msg: `字段${key}类型错误 - except: STRING, result: ${value}`}
+ }
+ if(value.length > fieldDef.type._length){
+ return {result: false, msg: `字段${key}长度超出`}
+ }
+ }
+ if(fieldDef.type.key === 'INTEGER'){
+ if(typeof value !== 'number'){
+ return {result: false, msg: `字段${key}类型错误 - except: INTEGER, result: ${value}`}
+ }
+ }
+ if(fieldDef.type.key === 'BOOLEAN'){
+ if(typeof value !== 'boolean'){
+ return {result: false, msg: `字段${key}类型错误 - except: BOOLEAN, result: ${value}`}
+ }
+ }
+ if(fieldDef.type.key === 'DATE'){
+ if(!(value instanceof Date)){
+ return {result: false, msg: `字段${key}类型错误 - except: DATE, result: ${value}`}
+ }
+ }
+ if(fieldDef.type.key === 'JSON'){
+ if(typeof value !== 'object'){
+ return {result: false, msg: `字段${key}类型错误 - Jexcept: JSON, result: ${value}`}
+ }
+ }
+ return {result: true, msg: '通过'}
+}
+
+
+/**
+ * 检测是否是合法的手机号/电话号码
+ * @param {*} mobile
+ * @returns
+ */
+const checkIsMobile = function(mobile){
+ return /^1[3456789]\d{9}$/.test(mobile)
+}
+
+/**
+ * 检测是否是合法的邮箱
+ * @param {*} email
+ * @returns
+ */
+const checkIsEmail = function(email){
+ return /^(\w-*\.*)+@(\w-?)+(\.\w{2,})+$/.test(email)
+}
+
+/**
+ * 检查请求参数内容是否包含攻击或非法字符
+ * @param {*} params
+ * @returns
+ */
+const checkRequestParams = function(params){
+ const reg = /<|>|&|;|'|"/g;
+ for (const key in params) {
+ if(reg.test(key)){
+ return false;
+ }
+ const value = params[key];
+ if(value && value instanceof Object){
+ return checkRequestParams(value);
+ }
+ if (reg.test(params[key])) {
+ return false;
+ }
+ }
+ return true;
+}
+
+/**
+ * 加密函数
+ * @param {*} password
+ * @param {*} salt
+ * @returns
+ */
+const encryptStr = function({
+ str, salt
+}) {
+ const iterations = 10000;
+ const keyLength = 32;
+ const digest = 'sha512';
+ // 使用PBKDF2算法生成加密后的密码
+ return crypto.pbkdf2Sync(str, salt, iterations, keyLength, digest).toString('hex');;
+}
+
+/**
+ * 验证函数
+ * @param {*} inputStr
+ * @param {*} hashedStr
+ * @param {*} salt
+ * @returns
+ */
+const verifyEncryptStr = function({
+ inputStr, hashedStr, salt
+}) {
+ return encryptStr({
+ str: inputStr,
+ salt
+ }) === hashedStr;
+}
+
+
+const generateSaltPassword = function({
+ password
+}) {
+ const salt = crypto.randomBytes(16).toString('hex');
+ const saltPassword = encryptStr({
+ str: password,
+ salt
+ });
+ return {
+ salt,
+ saltPassword
+ }
+}
+
+module.exports = {
+ getLocalIP,
+ getClientIP,
+ genFlow,
+ genRoom,
+ formateDateTime,
+ getNextDay,
+ getSocketClientInfo,
+ getFileSizeStr,
+ tlConsole,
+ tlConsoleError,
+ tlConsoleWarn,
+ tlConsoleApiIcon,
+ tlConsoleSocketIcon,
+ unescapeStr,
+ escapeStr,
+ isSameSubnet,
+ checkBit,
+ setBit,
+ tlResponseSuccess,
+ tlResponseArgsError,
+ tlResponseSvrError,
+ tlResponseNotFound,
+ tlResponseForbidden,
+ tlResponseTimeout,
+ checkRawFieldType,
+ checkIsMobile,
+ checkIsEmail,
+ checkRequestParams,
+ encryptStr,
+ verifyEncryptStr,
+ tlConsoleTaskIcon
+}
\ No newline at end of file
diff --git a/tlapi.js b/tlapi.js
new file mode 100644
index 0000000..eb81f4b
--- /dev/null
+++ b/tlapi.js
@@ -0,0 +1,94 @@
+const { get_env_config, load_env_config } = require("./conf/env_config");
+//加载环境变量
+load_env_config();
+//获取环境变量
+const conf = get_env_config();
+const {
+ tlConsoleApiIcon, tlConsole, tlConsoleError
+} = require("./src/utils/utils");
+//打印logo
+tlConsoleApiIcon()
+
+const express = require("express");
+const bodyParser = require('body-parser');
+const multer = require('multer');
+const cookieParser = require('cookie-parser');
+const apiRouters = require("./src/controller/router")();
+const { dbInit } = require("./src/tables/db"); //db
+const { redisInit } = require("./src/utils/cache/redis"); //redis
+const fs = require('fs');
+const https = require('https');
+const loginAuthHandler = require("./src/middleware/loginAuth");
+const { loginRoleHandler, loginChannelRoleHandler } = require("./src/middleware/loginRole");
+
+const resRouter = {
+ "/": "dist/",
+ "/website/": "website-res/"
+}
+
+
+process.on('unhandledRejection', (reason, promise) => {
+ tlConsoleError('Unhandled Rejection reason:', reason);
+})
+
+async function start() {
+ let app = express();
+
+ // parse json
+ app.use(bodyParser.json());
+ // parse cookie
+ app.use(cookieParser());
+ // login auth
+ app.use(loginAuthHandler)
+ // role auth
+ app.use(loginRoleHandler)
+ // channel role auth
+ app.use(loginChannelRoleHandler)
+
+
+ tlConsole("db init start ...")
+ if (!conf.db_open) {// 没开db
+ tlConsole("db not open ...")
+ }else{
+ await dbInit();
+ }
+ tlConsole("db init done ...")
+
+ tlConsole("redis init start ...")
+ await redisInit();
+ tlConsole("redis init done ...")
+
+ tlConsole("api init start ...")
+ for (let key in apiRouters) {
+ let keyRouterCount = 0
+ apiRouters[key].stack.forEach(function (r) {
+ if (r.route && r.route.path) keyRouterCount++;
+ })
+ tlConsole(key, "router count", keyRouterCount)
+ }
+ // api
+ for (let key in apiRouters) app.use(key, apiRouters[key])
+ // res api
+ for (let key in resRouter) app.use(key, express.static(resRouter[key]));
+ tlConsole("api init done ...")
+
+ //start server
+ if(process.env.tl_rtc_app_env_mode === 'http'){
+ app.listen(conf.api_port);
+ }else {
+ let options = {
+ key: fs.readFileSync('./conf/keys/server.key'),
+ cert: fs.readFileSync('./conf/keys/server.crt')
+ }
+ https.createServer(options,app).listen(conf.api_port);
+ }
+
+ tlConsole(process.env.tl_rtc_app_env_mode, "api", " server running on", conf.api_port, "successful")
+}
+
+
+try{
+ start();
+}catch(e){
+ tlConsoleError(e)
+}
\ No newline at end of file
diff --git a/tlrtcapp.env b/tlrtcapp.env
new file mode 100644
index 0000000..d9c2366
--- /dev/null
+++ b/tlrtcapp.env
@@ -0,0 +1,102 @@
+#-----------------以下为基础配置-----------------#
+tl_rtc_app_version=0.0.1
+## api服务端口
+tl_rtc_app_api_port=9096
+## websocket服务端口
+tl_rtc_app_socket_port=9097
+## websocket服务地址
+tl_rtc_app_socket_host=localhost:9097
+
+
+#-----------------以下为集群配置-----------------#
+## 是否开启集群
+tl_rtc_app_cluster_open=true
+## 集群注册中心
+tl_rtc_app_cluster_registry=redis
+## 集群key前缀
+tl_rtc_app_cluster_prefix=tlrtcappcluster
+
+#-----------------以下为webrtc相关配置-----------------#
+## webrtc-stun中继服务地址
+tl_rtc_app_webrtc_stun_host=stun:127.0.0.1:3478
+## webrtc-turn中继服务地址
+tl_rtc_app_webrtc_turn_host=turn:127.0.0.1:3478?transport=udp
+## webrtc中继服务用户名
+tl_rtc_app_webrtc_turn_username=tlrtcapp
+## webrtc中继服务密码
+tl_rtc_app_webrtc_turn_credential=tlrtcapp
+## webrtc中继服务Secret
+tl_rtc_app_webrtc_turn_secret=tlrtcapp
+## webrtc中继服务帐号过期时间 (毫秒)
+tl_rtc_app_webrtc_turn_expire=86400000
+
+
+#-----------------以下为redis缓存相关配置-----------------#
+## 是否开启redis
+tl_rtc_app_redis_open=true
+## redis地址
+tl_rtc_app_redis_host=localhost
+## redis端口
+tl_rtc_app_redis_port=6379
+## redis auth密码
+tl_rtc_app_redis_password=
+
+
+#-----------------以下为mysql数据库相关配置-----------------#
+## 是否开启数据库
+tl_rtc_app_db_open=true
+## 数据库地址
+tl_rtc_app_db_mysql_host=localhost
+## 数据库端口
+tl_rtc_app_db_mysql_port=3306
+## 数据库名称
+tl_rtc_app_db_mysql_dbName=tlrtcapp
+## 数据库用户名
+tl_rtc_app_db_mysql_user=root
+## 数据库密码
+tl_rtc_app_db_mysql_password=123456
+
+
+#-----------------以下为oss相关配置-----------------#
+# 服务器本地文件存储路径
+tl_rtc_app_file_folder='./tmp'
+# 腾讯云对象存储secretId
+tl_rtc_app_oss_tx_secretId=
+# 腾讯云对象存储secretKey
+tl_rtc_app_oss_tx_secretKey=
+# 腾讯云对象存储bucket
+tl_rtc_app_oss_tx_bucket=
+# 腾讯云对象存储region
+tl_rtc_app_oss_tx_region=
+# 腾讯云对象存储域名
+tl_rtc_app_oss_tx_domain=
+
+# 阿里云对象存储secretId
+tl_rtc_app_oss_ali_secretId=
+# 阿里云对象存储secretKey
+tl_rtc_app_oss_ali_secretKey=
+# 阿里云对象存储bucket
+tl_rtc_app_oss_ali_bucket=
+# 阿里云对象存储region
+tl_rtc_app_oss_ali_region=
+# 阿里云对象存储域名
+tl_rtc_app_oss_ali_domain=
+
+
+#-----------------以下为邮箱相关配置-----------------#
+## 邮箱地址
+tl_rtc_app_mail_host=smtp.163.com
+## 邮箱端口
+tl_rtc_app_mail_port=465
+## 邮箱用户名
+tl_rtc_app_mail_user=
+## 邮箱密码
+tl_rtc_app_mail_password=
+
+#-----------------以下为任务队列相关配置-----------------#
+## 任务队列Redis地址
+tl_rtc_app_task_queue_redis_host=localhost
+## 任务队列Redis端口
+tl_rtc_app_task_queue_redis_port=6379
+## 任务队列Redis密码
+tl_rtc_app_task_queue_redis_password=
\ No newline at end of file
diff --git a/tlsocket.js b/tlsocket.js
new file mode 100644
index 0000000..1e3ceb8
--- /dev/null
+++ b/tlsocket.js
@@ -0,0 +1,61 @@
+const { get_env_config, load_env_config } = require("./conf/env_config");
+//加载环境变量
+load_env_config();
+//加载环境变量完毕后,加载配置
+const conf = get_env_config()
+//打印logo
+const { tlConsole, tlConsoleSocketIcon, tlConsoleError } = require("./src/utils/utils");
+tlConsoleSocketIcon()
+const http = require('http'); // http
+const https = require('https');
+const socketIO = require('socket.io');
+const fs = require('fs');
+const { dbInit } = require("./src/tables/db"); //db
+const { redisInit } = require("./src/utils/cache/redis"); //redis
+
+const socket = require("./src/socket/index");
+
+
+process.on('unhandledRejection', (reason, promise) => {
+ tlConsoleError('Unhandled Rejection reason:', reason);
+})
+
+async function start(){
+ // Socket连接监听
+ let io = null;
+
+ if(process.env.tl_rtc_app_env_mode == 'http'){
+ io = socketIO.listen(http.createServer().listen(conf.socket_port));
+ }else{
+ let options = {
+ key: fs.readFileSync('./conf/keys/server.key'),
+ cert: fs.readFileSync('./conf/keys/server.crt')
+ }
+ io = socketIO.listen(
+ https.createServer(options).listen(conf.socket_port)
+ );
+ }
+
+ tlConsole("db init start ...")
+ if (!conf.db_open) {// 没开db
+ tlConsole("db not open ...")
+ }else{
+ await dbInit();
+ }
+
+ tlConsole("redis init start ...")
+ await redisInit();
+ tlConsole("redis init done ...")
+
+ socket.execute(io)
+
+ tlConsole("socket init done ...")
+ tlConsole(process.env.tl_rtc_app_env_mode, "socket ", " server listen on", conf.socket_port, "successful");
+}
+
+
+try{
+ start();
+}catch(e){
+ tlConsoleError(e)
+}
\ No newline at end of file
diff --git a/web-v2-res/css/comm.css b/web-v2-res/css/comm.css
new file mode 100644
index 0000000..8789876
--- /dev/null
+++ b/web-v2-res/css/comm.css
@@ -0,0 +1,642 @@
+
+[v-cloak] {
+ visibility: hidden !important;
+}
+
+
+/** vconsole样式修改 **/
+.vc-switch{
+ right: 10px !important;
+ bottom: 100px !important;
+}
+
+.layui-laydate{
+ border-radius: 8px !important;
+}
+
+.layui-form-select dl dd.layui-this{
+ background-color: var(--skin-body-background);
+ color: var(--skin-body-color);
+}
+
+.layui-form-select dl{
+ background-color: var(--skin-body-background);
+}
+
+.layui-layedit i{
+ color: var(--skin-body-color) !important;
+}
+
+.tl-rtc-app-close-i{
+ color: var(--skin-body-color) !important;
+}
+
+.tl-rtc-app-max-i{
+ color: var(--skin-body-color) !important;
+ font-weight: bold;
+ background: unset;
+}
+
+.layui-layer-prompt{
+ border-radius: 8px !important;
+}
+
+.layui-layer-dialog{
+ border-radius: 8px !important;
+}
+
+.layui-layer-page .layui-layer-content{
+ overflow: unset !important;
+}
+
+.layui-layer-loading{
+ background: unset !important;
+}
+
+.layedit-tool-history{
+ scale: 1.3;
+}
+
+.layedit-tool-voice{
+ scale: 1.3;
+}
+
+.layui-layer-prompt, .layui-layer-dialog, .layui-layer-page{
+ background: var(--skin-body-background) !important;
+ color: var(--skin-body-color) !important;
+}
+
+.layui-layer-prompt .layui-layer-title,
+.layui-layer-dialog .layui-layer-title,
+.layui-layer-page .layui-layer-title{
+ color: var(--skin-body-color) !important;
+}
+
+.layui-layer-prompt .layui-layer-title,
+.layui-layer-dialog .layui-layer-title,
+.layui-layer-page .layui-layer-title{
+ border-bottom: 1px solid var(--skin-body-border-color);
+}
+
+.layui-layer-prompt .layui-layer-input{
+ background: var(--skin-body-background) !important;
+ border: 1px solid var(--skin-body-border-color) !important;
+ color: var(--skin-body-color) !important;
+}
+
+/***********************************************************************************
+************************************************************************************
+ 侧边栏 start
+************************************************************************************
+************************************************************************************/
+::-webkit-scrollbar{
+ width: 0.1px;
+ height: 4px;
+ background-color: var(--skin-body-background)
+}
+::-webkit-scrollbar-track{
+ border-radius: 10px;
+ background-color: var(--skin-body-background)
+}
+::-webkit-scrollbar-thumb{
+ border-radius: 10px;
+ -webkit-box-shadow: inset 0 0 3px rgba(0,0,0,.2);
+ background-color: var(--skin-body-background)
+}
+/***********************************************************************************
+************************************************************************************
+ 侧边栏 end
+************************************************************************************
+************************************************************************************/
+
+
+/***********************************************************************************
+************************************************************************************
+ 聊天表情包 start
+************************************************************************************
+************************************************************************************/
+.layui-util-face ul li img{
+ width: 100%;
+ margin-top: -2px;
+}
+
+.layui-tl-img{
+ width: 100px;
+}
+
+.layui-util-face .layui-layer-content{
+ border-radius: 8px !important;
+ box-shadow: 0 0 20px rgba(0, 0, 0, .2) !important;
+ overflow: hidden;
+}
+
+.layui-util-face ul{
+ width: 248px;
+ border-radius: 8px;
+ padding: 5px 10px 5px;
+ border: unset;
+ box-shadow: unset;
+ transition: transform 0.3s;
+}
+
+.tl-rtc-app-face-search{
+ margin: 0px;
+ padding: 10px;
+}
+
+.tl-rtc-app-face-search input{
+ width: 100%;
+ height: 28px;
+ font-size: 11px;
+ border-radius: 4px;
+ border: 1px solid var(--skin-body-border-color);
+ background: var(--skin-face-search-input-background);
+ color: var(--skin-face-search-input-color);
+ border-color: var(--skin-face-search-input-background);
+ letter-spacing: 1px;
+ border-width: 0.5px;
+}
+
+.tl-rtc-app-face-tab{
+ padding: 5px;
+ line-height: 25px;
+ display: flex;
+ flex-direction: row;
+ flex-wrap: nowrap;
+ justify-content: space-around;
+ align-items: center;
+ text-align: center;
+}
+
+.tl-rtc-app-face-tab span{
+ padding: 2px 5px;
+ cursor: pointer;
+ width: calc(25% - 10px);
+ background: var(--skin-face-tab-background);
+ color: var(--skin-face-tab-color);
+}
+
+.tl-rtc-app-face-tab span:hover{
+ background: var(--skin-face-tab-hover-background);
+ color: var(--skin-face-tab-hover-color);
+ border-radius: 4px;
+}
+
+.tl-rtc-app-face-search-content{
+ height: 105px;
+ overflow-y: auto;
+}
+
+#text-face-ul{
+ font-size: 11px;
+}
+
+.tl-rtc-app-face-search-content-title{
+ padding: 5px 10px 0;
+ font-size: 10px;
+ color: #999;
+ color: var(--skin-face-content-title-color);
+}
+
+.tl-rtc-app-face-layer{
+ background: var(--skin-body-background) !important;
+ color: var(--skin-body-color) !important;
+}
+
+.tl-rtc-app-face-layer .layui-layer-title{
+ color: var(--skin-body-color) !important;
+ border-bottom: 1px solid var(--skin-body-border-color) !important;
+ border-radius: 6px;
+}
+
+.tl-rtc-app-face-layer .layui-layer-content{
+ background: unset !important;
+ border: 1px solid var(--skin-body-border-color) !important;
+}
+
+.tl-rtc-app-face-layer ul{
+ background: unset !important;
+}
+
+.tl-rtc-app-face-layer ul li{
+ border: 1px solid var(--skin-body-border-color) !important;
+ color: var(--skin-body-color) !important;
+}
+
+.tl-rtc-app-face-layer ul li:hover{
+ background-color: var(--skin-face-item-hover-background);
+ color: var(--skin-face-item-hover-color);
+}
+
+
+/***********************************************************************************
+************************************************************************************
+ 聊天表情包 end
+************************************************************************************
+************************************************************************************/
+
+
+
+
+/***********************************************************************************
+************************************************************************************
+ 输入内容编辑器 start
+************************************************************************************
+************************************************************************************/
+.layui-layedit{
+ border: none;
+ border-top-width: 0px;
+ border-top-style: outset;
+ border-top-color: #c4eee0;
+}
+
+.layui-layedit-tool{
+ border-bottom-style: none;
+}
+
+.layui-layedit-iframe iframe{
+ user-select: none;
+}
+
+.layedit-tool-history, .layedit-tool-voice{
+ font-size: 15px !important;
+}
+
+.layedit-tool-face{
+ font-size: 20px !important;
+}
+
+.layedit-tool-print-cut svg{
+ width: 21px !important;
+ height: 30px !important;
+ margin-right: 7px !important;
+ fill: var(--skin-body-color) !important;
+}
+
+.layedit-tool-record svg{
+ width: 18px !important;
+ height: 30px !important;
+ margin-right: 7px !important;
+ fill: var(--skin-body-color) !important;
+}
+
+.layedit-tool-draw svg{
+ width: 19px !important;
+ height: 30px !important;
+ margin-right: 7px !important;
+ fill: var(--skin-body-color) !important;
+}
+
+.layedit-tool-code svg{
+ width: 19px !important;
+ height: 30px !important;
+ margin-right: 7px !important;
+ fill: var(--skin-body-color) !important;
+}
+
+.layedit-tool-face svg{
+ width: 19px !important;
+ height: 30px !important;
+ fill: var(--skin-body-color) !important;
+}
+/***********************************************************************************
+************************************************************************************
+ 输入内容编辑器 end
+************************************************************************************
+************************************************************************************/
+
+
+
+/***********************************************************************************
+************************************************************************************
+ 折叠面板 start
+************************************************************************************
+************************************************************************************/
+.layui-collapse{
+ border: none;
+}
+
+.layui-colla-title{
+ background-color: unset;
+ padding: 0 0px 0 35px;
+ transition: color 0.3s;
+ color: unset;
+}
+
+.layui-colla-content, .layui-colla-item{
+ border: none;
+}
+
+.layui-colla-content{
+ color: unset;
+}
+
+.layui-colla-content {
+ padding: 0px !important;
+}
+/***********************************************************************************
+************************************************************************************
+ 折叠面板 end
+************************************************************************************
+************************************************************************************/
+
+
+/***********************************************************************************
+************************************************************************************
+ form表单 start
+************************************************************************************
+************************************************************************************/
+.layui-form-switch{
+ margin-top: unset !important;
+ height: 18px !important;
+ line-height: 18px !important;
+ min-width: 28px !important;
+}
+
+.layui-form-switch i{
+ width: 12px !important;
+ height: 12px !important;
+}
+
+.layui-form-onswitch i{
+ margin-left: -16px !important;
+ /* background: var(--skin-body-color); */
+}
+
+.layui-form-onswitch{
+ /* border-color: var(--skin-body-background) !important;
+ background-color: var(--skin-body-background) !important; */
+}
+
+.layui-form-checkbox[lay-skin=primary] i{
+ border-radius: 50%;
+}
+
+.layui-form-checked[lay-skin=primary] i{
+ border-color: var(--skin-body-color) !important;
+ /* background-color: var(--skin-body-background) !important; */
+}
+/***********************************************************************************
+************************************************************************************
+ form表单 end
+************************************************************************************
+************************************************************************************/
+
+
+/***********************************************************************************
+************************************************************************************
+ 颜色选择器 start
+************************************************************************************
+************************************************************************************/
+.layui-colorpicker.layui-colorpicker-xs{
+ width: 18px;
+ height: 18px;
+ line-height: 16px;
+}
+
+.layui-colorpicker{
+ padding: 3px 15px;
+ transition: padding 0.3s;
+}
+
+.layui-colorpicker .layui-icon-edit{
+ transition: all 0.3s;
+}
+
+.layui-colorpicker-main{
+ border: unset;
+ border-radius: 8px;
+}
+
+.layui-colorpicker-basis{
+ width: auto;
+}
+
+.layui-colorpicker-trigger-span{
+ border: unset;
+ background: unset;
+}
+/***********************************************************************************
+************************************************************************************
+ 颜色选择器 end
+************************************************************************************
+************************************************************************************/
+
+
+
+/***********************************************************************************
+************************************************************************************
+ 自定义右键菜单 start
+************************************************************************************
+************************************************************************************/
+.custom-context-menu {
+ position: absolute;
+ background-color: var(--skin-body-background) !important;
+ border: 1px solid var(--skin-body-border-color) !important;
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
+ color: var(--skin-body-color) !important;
+ width: 140px;
+ padding: 4px 0;
+ z-index: 1000;
+ user-select: none;
+ border-radius: 4px;
+}
+
+.custom-context-menu ul {
+ list-style-type: none;
+ margin: 0;
+ padding: 0;
+}
+
+.custom-context-menu ul li {
+ padding: 5px 10px;
+ cursor: pointer;
+ text-align: left;
+ font-size: 13px;
+ transition: background-color 0s;
+}
+
+.custom-context-menu ul li:hover {
+ background-color: var(--skin-body-color) !important;
+ color: var(--skin-body-background) !important;
+}
+
+.custom-context-menu ul li:not(:last-child) {
+ border-bottom: 1px solid var(--skin-body-border-color);
+}
+
+.custom-context-menu ul li.disabled {
+ color: #d8d5d58a;
+ cursor: not-allowed;
+}
+
+.layui-menu-body-title svg{
+ margin-right: 5px;
+}
+
+.layui-menu-body-title>.layui-icon{
+ font-size: 12px;
+}
+
+.layui-menu-body-panel{
+ position: absolute;
+ background-color: var(--skin-body-background);
+ border: 1px solid var(--skin-body-border-color);
+ width: 140px;
+ padding: 0;
+ z-index: 1000;
+ user-select: none;
+ margin-left: 0px;
+ top: -1px;
+}
+
+.layui-menu-body-panel-left{
+ margin-right: 0px;
+}
+
+.layui-menu-body-panel ul {
+ list-style-type: none;
+ margin: 0;
+ padding: 0;
+}
+
+.layui-menu-body-panel ul li {
+ padding: 5px 10px;
+ cursor: pointer;
+ text-align: left;
+ font-size: 13px;
+ transition: background-color 0.2s;
+}
+
+.layui-menu-body-panel ul li:hover {
+ background-color: var(--skin-body-background) !important;
+}
+
+.layui-menu-body-panel ul li:not(:last-child) {
+ border-bottom: 1px solid var(--skin-body-border-color);
+}
+
+.layui-menu-body-panel ul li.disabled {
+ color: #d8d5d58a;
+ cursor: not-allowed;
+}
+
+.layui-menu{
+ background: var(--skin-body-background) !important;
+}
+
+.layui-menu li{
+ line-height: 20px;
+ margin: 0;
+ width: 100%;
+ color: var(--skin-body-color) !important;
+}
+/***********************************************************************************
+************************************************************************************
+ 自定义右键菜单 end
+************************************************************************************
+************************************************************************************/
+
+
+
+/***********************************************************************************
+************************************************************************************
+ layer消息提示 start
+************************************************************************************
+************************************************************************************/
+.tl-rtc-app-layer-msg{
+ background: var(--skin-layer-msg-background) !important;
+ color: var(--skin-layer-msg-color) !important;
+ font-size: 14px !important;
+ scale: 0.9 !important;
+ font-weight: bold !important;
+ border-radius: 10px !important;
+ box-shadow: 0 4px 40px #00000026 !important;
+ min-width: unset !important;
+}
+
+.tl-rtc-app-layer-msg .layui-layer-content{
+ line-height: 18px !important;
+ letter-spacing: 1px !important;
+ display: flex !important;
+ padding: 12px 15px !important;
+ flex-direction: row !important;
+
+ display: flex !important;
+ align-content: center !important;
+ justify-content: center !important;
+ align-items: center !important;
+}
+
+.tl-rtc-app-layer-msg .layui-layer-content .tl-toast-msg-success{
+ color: var(--skin-layer-msg-success-color) !important;
+ font-size: 20px !important;
+ font-weight: bold !important;
+ margin-right: 5px !important;
+}
+
+.tl-rtc-app-layer-msg .layui-layer-content .tl-toast-msg-warning{
+ color: var(--skin-layer-msg-warning-color) !important;
+ font-weight: bold !important;
+ font-size: 20px !important;
+ margin-right: 5px !important;
+}
+
+.tl-rtc-app-layer-msg .layui-layer-content .tl-toast-msg-error{
+ color: var(--skin-layer-msg-error-color) !important;
+ font-weight: bold !important;
+ font-size: 20px !important;
+ margin-right: 5px !important;
+}
+/***********************************************************************************
+************************************************************************************
+ layer消息提示 end
+************************************************************************************
+************************************************************************************/
+
+
+
+/***********************************************************************************
+************************************************************************************
+ layer-tips start
+************************************************************************************
+************************************************************************************/
+.tl-rtc-app-layer-tips .layui-layer-content{
+ background: var(--skin-layer-tips-background) !important;
+ color: var(--skin-layer-tips-color) !important;
+}
+
+.tl-rtc-app-layer-tips .layui-layer-content{
+ border-radius: 4px !important;
+}
+
+.tl-rtc-app-layer-tips .layui-layer-TipsG.layui-layer-TipsR{
+ border-right-color: var(--skin-layer-tips-background) !important;
+ border-bottom-color: var(--skin-layer-tips-background) !important;
+}
+
+.tl-rtc-app-layer-tips .layui-layer-TipsG.layui-layer-TipsB{
+ border-right-color: var(--skin-layer-tips-background) !important;
+}
+
+.tl-rtc-app-layer-tips .layui-layer-TipsG.layui-layer-TipsT{
+ border-right-color: var(--skin-layer-tips-background) !important;
+}
+
+/***********************************************************************************
+************************************************************************************
+ layer-tips end
+************************************************************************************
+************************************************************************************/
+
+
+.layui-form-radio {
+ display: unset !important;
+ vertical-align: unset !important;
+ line-height: unset !important;
+ margin: unset !important;
+ padding-right: unset !important;
+ cursor: pointer;
+ font-size: unset !important;
+}
+
diff --git a/web-v2-res/css/ipad.css b/web-v2-res/css/ipad.css
new file mode 100644
index 0000000..a71bf0b
--- /dev/null
+++ b/web-v2-res/css/ipad.css
@@ -0,0 +1,75 @@
+/*
+ * 701px ~ 850px [100%]
+ * 841px ~ 990px [80%]
+ * 平板端/pc样式
+ */
+ @media screen and (min-width: 841px) and (max-width: 990px){
+ html{
+ --body-width: 100%;
+ --body-height: 100%;
+
+ --sidebar-width: 50px;
+ --left-width: 270px;
+ }
+
+ .tl-rtc-body{
+ border-radius: unset;
+ }
+
+ #tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content{
+ width: 50%;
+ }
+
+ #tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-other{
+ width: 30%;
+ }
+
+ #tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-form{
+ padding: 20px 45px 20px;
+ }
+
+ #tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-img{
+ width: 20%;
+ }
+
+ #tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-content{
+ width: 45%;
+ }
+
+ #tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-other{
+ width: 35%;
+ }
+
+ .tl-rtc-app-left-sidebar-item-dog{
+ position: absolute;
+ margin-top: -28px;
+ transition: right .3s;
+ right: 1px;
+ line-height: 14px;
+ height: 14px;
+ border-radius: 4px;
+ font-size: 11px;
+ scale: .9;
+ }
+}
+
+/*
+ * 851px ~ 999px [100%]
+ * 991px ~ 1150px [80%]
+ * 平板端/pc样式
+ */
+@media screen and (min-width: 991px) and (max-width: 1150px){
+ html{
+ --body-width: 100%;
+ --body-height: 100%;
+ }
+
+ .tl-rtc-body{
+ border-radius: unset;
+ }
+
+ #tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-form{
+ padding: 20px 70px 20px;
+ }
+}
+
diff --git a/web-v2-res/css/max-mobile.css b/web-v2-res/css/max-mobile.css
new file mode 100644
index 0000000..9a6b7dc
--- /dev/null
+++ b/web-v2-res/css/max-mobile.css
@@ -0,0 +1,10 @@
+/*
+ * 560px以上
+ * 840px以下
+ * 移动端样式
+*/
+@media screen and (min-width: 560px) and (max-width: 840px) {
+ .tl-rtc-app-right-p2p-channel-content-list-user-item{
+ width: 20%;
+ }
+}
\ No newline at end of file
diff --git a/web-v2-res/css/max.css b/web-v2-res/css/max.css
new file mode 100644
index 0000000..9aee27b
--- /dev/null
+++ b/web-v2-res/css/max.css
@@ -0,0 +1,9 @@
+/*
+ * 1500px以上
+ * 超宽屏幕
+ */
+ @media screen and (min-width: 1500px){
+ .tl-rtc-body{
+ left: calc((100% - var(--body-max-width)) / 2);
+ }
+}
diff --git a/web-v2-res/css/mobile.css b/web-v2-res/css/mobile.css
new file mode 100644
index 0000000..2d85916
--- /dev/null
+++ b/web-v2-res/css/mobile.css
@@ -0,0 +1,319 @@
+/*
+ * 700px以下 [100%]
+ * 840px以下 [80%]
+ * 移动端样式
+*/
+@media screen and (max-width: 840px){
+ html {
+ box-sizing: border-box;
+ background-color: #f6f6f6;
+
+ --body-width: 100%;
+ --body-height: 100%;
+
+ --sidebar-width: 50px;
+ --left-width: 270px;
+
+ --mobile-sidebar-height: 60px;
+ --right-channel-content-top: 6%;
+ --right-channel-content-body: 74%;
+ --right-channel-editor-height: 20%;
+ }
+
+ /***********************************************************************************
+ ************************************************************************************
+ 主界面布局 start
+ ************************************************************************************
+ ************************************************************************************/
+ #tl-rtc-app{
+ display: unset;
+ }
+
+ .tl-rtc-body{
+ border-radius: unset;
+ }
+
+ #tl-rtc-app .tl-rtc-app-left{
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ }
+
+ #tl-rtc-app .tl-rtc-app-left.login-page{
+ height: 100%;
+ }
+
+ #tl-rtc-app .tl-rtc-app-right{
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ z-index: 3;
+ }
+
+ #tl-rtc-app .tl-rtc-app-left-sidebar{
+ width: calc(var(--body-width) - 40px);
+ margin-left: 20px;
+ height: var(--mobile-sidebar-height);
+ position: absolute;
+ bottom: 30px;
+ z-index: 2;
+ border-radius: 30px;
+ backdrop-filter: blur( 13.5px );
+ -webkit-backdrop-filter: blur( 13.5px );
+ }
+
+ #tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item:first-child{
+ margin-top: 0px;
+ }
+
+ #tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-tool{
+ display: flex;
+ flex-direction: row;
+ flex-wrap: nowrap;
+ justify-content: center;
+ align-items: center;
+ height: var(--mobile-sidebar-height);
+ border-radius: 30px;
+ }
+
+ #tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item{
+ margin-top: unset;
+ width: 100%;
+ height: var(--mobile-sidebar-height);
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ cursor: pointer;
+ transition: all 0.3s;
+ position: relative;
+ flex-direction: column;
+ }
+
+ #tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-bottom{
+ display: none;
+ }
+
+ #tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-logo{
+ display: none;
+ }
+
+ #tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-img{
+ width: 60px;
+ }
+
+ #tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content{
+ width: calc(75% - 60px);
+ }
+
+ #tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-other{
+ width: 25%;
+ }
+
+ #tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact{
+ height: calc(100% - var(--left-contact-top) - var(--mobile-sidebar-height));
+ }
+
+ #tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-img{
+ width: 60px;
+ }
+
+ #tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-content{
+ width: calc(75% - 60px);
+ }
+
+ #tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-other{
+ width: 25%;
+ }
+
+ #tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-top-more{
+ max-width: 220px;
+ }
+
+ #tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-top-nickname{
+ max-width: calc(100% - 220px);
+ min-width: 100px;
+ }
+
+ #tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-top-nickname svg{
+ cursor: pointer;
+ margin-right: 10px;
+ }
+
+ #tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body{
+ padding: 10px;
+ }
+
+ #tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-form{
+ padding: 20px 10px 20px;
+ }
+
+ .tl-rtc-app-right-channel-file-shade-content-body{
+ width: 100%;
+ }
+
+ .tl-rtc-app-right-setting-content-normal,
+ .tl-rtc-app-right-setting-content-message,
+ .tl-rtc-app-right-setting-content-account,
+ .tl-rtc-app-right-setting-content-skin,
+ .tl-rtc-app-right-setting-content-authority,
+ .tl-rtc-app-right-setting-content-collect,
+ .tl-rtc-app-right-setting-content-recycle,
+ .tl-rtc-app-right-setting-content-other
+ {
+ padding: 5px 0px;
+ }
+
+ .tl-rtc-app-right-setting-content .goBack{
+ top: 17px;
+ left: 15px;
+ }
+
+ .tl-rtc-app-right-setting-content{
+ font-size: 13px;
+ }
+
+ .tl-rtc-app-right-cloud-content{
+ padding: 5px 10px;
+ }
+
+ .tl-rtc-app-right-cloud-content .goBack{
+ top: 18px;
+ left: 15px;
+ }
+
+ .tl-rtc-app-right-meeting-content .goBack{
+ top: 18px;
+ left: 15px;
+ }
+
+ .tl-rtc-app-right-dates-content .goBack{
+ top: 18px;
+ left: 15px;
+ }
+
+ .tl-rtc-app-right-cloud-content-recent-top-title,
+ .tl-rtc-app-right-cloud-content-history-top-title,
+ .tl-rtc-app-right-cloud-content-self-top-title,
+ .tl-rtc-app-right-cloud-content-group-top-title,
+ .tl-rtc-app-right-cloud-content-collect-top-title,
+ .tl-rtc-app-right-cloud-content-recycle-top-title,
+ .tl-rtc-app-right-p2p-channel-content-top-title,
+ .tl-rtc-app-right-cut-paste-content-top-title,
+ .tl-rtc-app-right-document-content-code-top-title,
+ .tl-rtc-app-right-document-content-pdf-top-title,
+ .tl-rtc-app-right-document-content-word-top-title,
+ .tl-rtc-app-right-document-content-excel-top-title,
+ .tl-rtc-app-right-document-content-ppt-top-title
+ {
+ margin-left: 30px;
+ }
+
+ .tl-rtc-app-right-cloud-content-recent-top-tool-item:first-child,
+ .tl-rtc-app-right-cloud-content-history-top-tool-item:first-child,
+ .tl-rtc-app-right-cloud-content-group-top-tool-item:first-child,
+ .tl-rtc-app-right-cloud-content-self-top-tool-item:first-child,
+ .tl-rtc-app-right-cloud-content-collect-top-tool-item:first-child,
+ .tl-rtc-app-right-cloud-content-recycle-top-tool-item:first-child
+ {
+ display: none;
+ }
+
+ .tl-rtc-app-right-cloud-content-upload{
+ width: calc(100% - 20px);
+ }
+
+ #tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-info-self{
+ width: calc(100% - 28px);
+ margin-left: 28px;
+ }
+
+ #tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-info{
+ width: calc(100% - 28px);
+ margin-right: 28px;
+ }
+
+ .tl-rtc-app-right-p2p-channel-content-list-user-item{
+ width: 25%;
+ }
+
+ .tl-rtc-app-setting-list .tl-rtc-app-setting-list-item{
+ padding: 0px 20px 0 25px;
+ }
+
+ #tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-setting-content-top{
+ margin-left: 30px;
+ }
+
+ #tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-top{
+ margin-left: 30px;
+ }
+
+ #tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-meeting-content-top{
+ margin-left: 30px;
+ }
+
+ #tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-dates-content-top{
+ margin-left: 30px;
+ }
+
+ .layui-colorpicker{
+ padding: 3px 5px;
+ }
+
+ .tl-rtc-app-right-channel-content-search-message-panel-header-tools-item-content .layui-badge{
+ padding: 2px 6px;
+ }
+
+ .tl-rtc-app-left-sidebar-item-dog{
+ position: absolute;
+ margin-top: -30px;
+ transition: right .3s;
+ right: 3px;
+ line-height: 14px;
+ height: 14px;
+ border-radius: 4px;
+ font-size: 11px;
+ scale: .9;
+ }
+
+ .tl-rtc-app-meeting-list .tl-rtc-app-meeting-list-item{
+ padding: 0px 20px 0 25px;
+ }
+
+ .tl-rtc-app-right-document-content #word-editor{
+ height: calc(100% - 110px) !important;
+ }
+
+ .tl-rtc-app-right-document-content #pdf-editor{
+ height: calc(100% - 110px) !important;
+ }
+
+ .tl-rtc-app-right-document-content #code-editor{
+ height: calc(100% - 110px) !important;
+ }
+
+ .tl-rtc-app-right-document-content #ppt-editor{
+ height: calc(100% - 110px) !important;
+ }
+
+ .tl-rtc-app-right-document-content #excel-editor{
+ height: calc(100% - 110px) !important;
+ }
+
+ .tl-rtc-app-right-document-content .tl-rtc-app-editor-footer{
+ width: calc(100% - 30px) !important;
+ }
+
+ .tl-rtc-app-right-document-content .tl-rtc-app-editor-footer .tl-rtc-app-editor-footer-btn{
+ padding: 2px 6px !important;
+ }
+
+ .tl-rtc-app-right-document-content .tl-rtc-app-editor-footer .tl-rtc-app-editor-footer-left{
+ font-size: 11px !important;
+ }
+ /***********************************************************************************
+ ************************************************************************************
+ 主界面布局 end
+ ************************************************************************************
+ ************************************************************************************/
+}
\ No newline at end of file
diff --git a/web-v2-res/css/pc.css b/web-v2-res/css/pc.css
new file mode 100644
index 0000000..50c5bd0
--- /dev/null
+++ b/web-v2-res/css/pc.css
@@ -0,0 +1,3311 @@
+html {
+ box-sizing: border-box;
+
+ --body-width: 80%;
+ --body-max-width: 1200px;
+ --body-height: 90%;
+
+ --sidebar-width: 65px;
+ --left-width: 315px;
+ --left-channel-top: 130px;
+ --left-p2p-channel-top: 90px;
+ --left-contact-top: 100px;
+ --left-cut-paste-top: 90px;
+ --left-login-top: 30px;
+
+ --right-channel-content-more-width: 260px;
+ --right-channel-content-top: 49px;
+ --right-channel-editor-height: 30%;
+ --right-channel-content-body: calc(100% - var(--right-channel-content-top) - var(--right-channel-editor-height));
+
+ /* 主界面配色 */
+ --skin-top-header-title-color: #333333;
+ --skin-top-header-tool-background: #ffffff;
+ --skin-top-header-tool-fill-color: #959595;
+ --skin-top-header-tool-hover-fill-color: #333333;
+ --skin-top-header-tool-hover-shadow: 0 4px 40px #00000026;
+ --skin-body-color: #000000;
+ --skin-body-background: #f6f6f6;
+ --skin-body-shadow: 0 4px 40px #00000026;
+ --skin-body-border-color: #eae2e28f;
+
+ /* layer消息提示配色 */
+ --skin-layer-msg-background: #f6f6f6;
+ --skin-layer-msg-color: #000000;
+ --skin-layer-msg-success-color: #04dd04;
+ --skin-layer-msg-warning-color: #bfbf5d;
+ --skin-layer-msg-error-color: #ff0000;
+
+ /* layer-tips提示配色 */
+ --skin-layer-tips-background: #4f4f4f;
+ --skin-layer-tips-color: #ffffff;
+
+ /* 侧边栏相关配色 */
+ --skin-sidebar-tool-background: #f4f4f435;
+ --skin-sidebar-tool-hover-background: #a7a4a435;
+ --skin-sidebar-tool-fill-color: #000000;
+ --skin-sidebar-tool-hover-fill-color: #000000;
+ --skin-sidebar-tool-color: #7c7b7b;
+ --skin-sidebar-tool-hover-color: #000000;
+
+ /* 快捷面板相关配色 */
+ --skin-quick-oper-panel-background: #f6f6f6;
+ --skin-quick-oper-panel-item-color: #797e7e;
+ --skin-quick-oper-panel-item-hover-background: #eae6e1;
+ --skin-quick-oper-panel-item-hover-color: #000000;
+
+ /* 频道相关配色 */
+ --skin-channel-list-no-channel-color: #00000047;
+ --skin-channel-list-item-hover-background: #d2deff96;
+ --skin-channel-list-item-top-background: #e5ebfc96;
+ --skin-channel-list-item-message-color: #777777;
+ --skin-channel-list-item-message-at-user-text-color: #ff0000;
+ --skin-channel-list-item-message-at-me-text-color: #ff0000;
+ --skin-channel-list-item-time-color: #b8b8b8;
+ --skin-channel-list-item-quick-mark-unread-background: #6b95be;
+ --skin-channel-list-item-quick-mark-unread-color: #ffffff;
+ --skin-channel-list-item-quick-top-background: #75b963;
+ --skin-channel-list-item-quick-top-color: #ffffff;
+ --skin-channel-list-item-quick-delete-background: #da5d5d;;
+ --skin-channel-list-item-quick-delete-color: #ffffff;
+ --skin-channel-list-item-quick-hidden-background: #88adac;;
+ --skin-channel-list-item-quick-hidden-color: #ffffff;
+ --skin-channel-list-item-quick-un-notify-background: #c2b862;
+ --skin-channel-list-item-quick-un-notify-color: #ffffff;
+
+ --skin-channel-top-search-i-color: #c8c8c8;
+ --skin-channel-top-search-input-background: #F8F9FB;
+ --skin-channel-top-search-input-color: #3333339e;
+
+ --skin-channel-content-top-more-fill-color: #4A4BDB;
+ --skin-channel-content-body-message-background: #d9deff;
+ --skin-channel-content-body-message-color: #000000;
+ --skin-channel-content-body-item-message-at-user-text-color: #4A4BDB;
+ --skin-channel-content-body-message-system-color: #b7bbc7;
+ --skin-channel-content-body-message-time-color: #b7bbc7;
+ --skin-channel-content-body-message-load-more-color: #b7bbc7;
+ --skin-channel-content-body-message-load-more-hover-color: #4A4BDB;
+ --skin-channel-content-body-message-name-color: #7a7777;
+ --skin-channel-content-body-message-name-hover-color: #4A4BDB;
+ --skin-channel-content-body-message-name-at-color: #4A4BDB;
+ --skin-channel-content-body-message-menu-icon-background: #ffffff;
+ --skin-channel-content-body-message-menu-icon-color: #000000;
+ --skin-channel-content-body-message-menu-icon-hover-background: #ffffff;
+ --skin-channel-content-body-message-menu-icon-hover-color: #000000;
+ --skin-channel-content-body-reply-content-block-color: #939392;
+ --skin-channel-content-body-reply-content-block-background: #dbe6e378;
+
+ /* 频道更多侧边栏相关配色 */
+ --skin-channel-content-more-background: #ffffff;
+ --skin-channel-content-more-shadow: -2px 3px 6px rgba(0,0,0,.15);
+ --skin-channel-content-more-list-item-hover-color: #7575bd;
+ --skin-channel-content-more-list-item-oper-channel-name-color: #0000008a;
+ --skin-channel-content-more-share-tool-item-hover-background: #00c3ff1e;
+ --skin-channel-content-more-list-item-border-color: #f9f9f9;
+ --skin-channel-content-more-list-user-item-oper-hover-background: #eeeeee;
+ --skin-channel-content-more-list-user-item-oper-hover-fill-color: #557189;
+
+ /* 频道邀请好友相关配色 */
+ --skin-channel-content-invite-search-i-color: #c8c8c8;
+ --skin-channel-content-invite-search-input-background: #F8F9FB;
+ --skin-channel-content-invite-search-input-color: #3333339e;
+ --skin-channel-content-invite-choose-list-item-hover-background: #d2deff96;
+ --skin-channel-content-invite-choose-list-empty-color: #b3aaaa;
+
+ /* 联系人相关配色 */
+ --skin-contact-header-tool-hover-shadow: 0 4px 40px #00000026;
+ --skin-contact-header-tool-svg-fill-color: #959595;
+ --skin-contact-header-tool-svg-hover-fill-color: #333333;
+ --skin-contact-top-search-i-color: #c8c8c8;
+ --skin-contact-top-search-input-background: #F8F9FB;
+ --skin-contact-top-search-input-color: #3333339e;
+ --skin-contact-list-item-hover-background: #d2deff96;
+ --skin-contact-content-tool-item-hover-background: #6263FB;
+ --skin-contact-content-other-item-badge-background: #1e9fff;
+ --skin-contact-content-item-message-color: #777777;
+ --skin-contact-content-item-other-status-color: #b8b8b8;
+ --skin-contact-content-apply-button-background: #6263FB;
+ --skin-contact-content-apply-button-color: #ffffff;
+
+ /* 登陆相关配色 */
+ --skin-login-button-background: #6263FB;
+ --skin-login-list-item-hover-background: #d2deff96;
+ --skin-login-list-item-hover-color: #1e71ee;
+ --skin-login-content-form-input-color: #3333339e;
+ --skin-login-content-body-bottom-color: #5c8dd7;
+ --skin-login-content-body-bottom-hover-color: #1e71ee;
+ --skin-login-content-body-scan-title-color: #939ea6;
+ --skin-login-content-body-scan-title-background: azure;
+ --skin-login-content-body-scan-code-item-disabled-background: #e6e8ea7a;
+
+ --skin-login-content-body-scan-code-item-focus-background: #007bff;
+ --skin-login-content-body-scan-code-item-focus-border-color: #007bff;
+ --skin-login-email-code-btn-color: #ffffff;
+ --skin-login-email-code-btn-disabled-background: #ccc;
+
+ --skin-login-help-mobile-color: #8b8b9e;
+ --skin-login-help-mobile-hover-color: #1e71ee;
+ --skin-login-body-clean-color: #1e71ee;
+ --skin-login-body-clean-hover-color: #1e71ee;
+ --skin-login-item-mobile-icon-background: #bddcff47;
+
+ /* 设置相关配色 */
+ --skin-setting-list-item-hover-background: #d2deff96;
+ --skin-setting-list-item-active-background: #d2deff96;
+ --skin-setting-top-search-i-color: #c8c8c8;
+ --skin-setting-top-search-input-background: #F8F9FB;
+ --skin-setting-top-search-input-color: #3333339e;
+ --skin-setting-content-top-export-background: #ffffff;
+ --skin-setting-content-top-export-fill-color: #000000;
+ --skin-setting-content-block-background: #ffffff69;
+ --skin-setting-content-block-badge-background: white;
+ --skin-setting-content-block-badge-color: black;
+ --skin-setting-content-block-badge-hover-background: #6263FB;
+ --skin-setting-content-block-badge-hover-color: #ffffff;
+ --skin-setting-content-block-item-hover-background: #e6f4ff;
+ --skin-setting-content-bind-icon-hover-color: #1e71ee;
+ --skin-setting-content-bind-icon-tip-fill-color: #c4c4f4;
+ --skin-setting-content-preview-item-svg-background: #ffffff;
+ --skin-setting-content-preview-item-svg-hover-background: #e1f3ff;
+ --skin-setting-content-account-bind-email-btn-background: #7878c5;
+ --skin-setting-content-account-bind-email-btn-color: #ffffff;
+ --skin-setting-content-account-bind-email-input-background: #F8F9FB;
+ --skin-setting-content-account-bind-email-input-color: #3333339e;
+ --skin-setting-content-account-bind-email-btn-disabled-background: #ccc;
+ --skin-setting-content-account-bind-email-btn-disabled-color: #ffffff;
+
+ /* 表情弹窗相关配色 */
+ --skin-face-item-hover-background: #d2deff96;
+ --skin-face-item-hover-color: #000000;
+ --skin-face-tab-background: #f6f6f6;
+ --skin-face-tab-color: #736d6d;
+ --skin-face-tab-hover-background: #d2deff96;
+ --skin-face-tab-hover-color: #000000;
+ --skin-face-search-input-background: #F8F9FB;
+ --skin-face-search-input-color: #3333339e;
+ --skin-face-content-title-color: #999;
+}
+
+.tl-rtc-app-left-show{
+ opacity: 1;
+}
+.tl-rtc-app-left-hidden{
+ opacity: 0;
+}
+
+.tl-rtc-app-right-show{
+ right: 0;
+}
+.tl-rtc-app-right-hidden{
+ right: -100%;
+}
+
+.tl-rtc-app-sidebar-show{
+ opacity: 1;
+}
+.tl-rtc-app-sidebar-hidden{
+ opacity: 0;
+}
+
+.goBack{
+ position: absolute;
+ top: 20px;
+ left: 20px;
+ cursor: pointer;
+ width: 16px !important;
+ height: 16px !important;
+}
+
+/***********************************************************************************
+************************************************************************************
+ 主界面布局 start
+************************************************************************************
+************************************************************************************/
+.tl-rtc-body{
+ overflow: hidden;
+ width: var(--body-width);
+ max-width: var(--body-max-width);
+ height: var(--body-height);
+ position: absolute;
+
+ top: calc((100% - var(--body-height)) / 2);
+ left: calc((100% - var(--body-width)) / 2);
+
+ box-shadow: var(--skin-body-shadow);
+ z-index: 1000;
+ background-color: var(--skin-body-background);
+ color: var(--skin-body-color);
+ border-radius: 12px;
+ min-height: 500px;
+ transition: all 0.3s;
+}
+
+#tl-rtc-app{
+ width: 100%;
+ height: 100%;
+ display: flex;
+}
+
+#tl-rtc-app .tl-rtc-app-left{
+ width: var(--left-width);
+ display: flex;
+ user-select: none;
+ transition: width 0.3s, opacity 0.5s;
+ background-color: var(--skin-body-background);
+ border-right: 1px solid var(--skin-body-border-color);
+}
+
+#tl-rtc-app .tl-rtc-app-right{
+ width: calc(100% - var(--left-width) - var(--sidebar-width));
+ transition: width 0.3s, right 0.5s;
+ height: 100%;
+ background-color: var(--skin-body-background);
+}
+
+#tl-rtc-app .tl-rtc-app-left-sidebar{
+ width: var(--sidebar-width);
+ background-color: var(--skin-sidebar-tool-background);
+ box-shadow: var(--skin-body-shadow);
+ transition: width 0.3s, opacity 0.5s;
+}
+
+#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-tool{
+ height: calc(var(--body-height) - 65px);
+}
+
+#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item{
+ width: 100%;
+ height: 50px;
+ margin-top: 5px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ cursor: pointer;
+ transition: all 0.3s;
+ position: relative;
+ color: var(--skin-sidebar-tool-color);
+ font-size: 11px;
+}
+
+#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item:first-child{
+ margin-top: 1px;
+}
+
+#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item svg{
+ width: 20px;
+ height: 20px;
+ fill: var(--skin-sidebar-tool-fill-color);
+ transition: all 0.3s;
+}
+
+#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item:hover,
+#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item-hover {
+ background-color: var(--skin-sidebar-tool-hover-background);
+ color: var(--skin-sidebar-tool-hover-color);
+}
+
+#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item:hover svg,
+#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item-hover svg{
+ scale: 1.1;
+ fill: var(--skin-sidebar-tool-hover-fill-color);
+}
+
+.tl-rtc-app-left-sidebar-item-dog{
+ position: absolute;
+ margin-top: -25px;
+ transition: right .3s;
+ right: 3px;
+ line-height: 14px;
+ height: 14px;
+ border-radius: 4px;
+ font-size: 11px;
+ padding: 0px 4px;
+ scale: .9;
+ display: inline;
+}
+
+#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-bottom{
+ position: absolute;
+ bottom: 10px;
+ width: calc(var(--sidebar-width) - 1px);
+ transition: width 0.3s;
+}
+
+#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-logo{
+ color: var(--skin-sidebar-tool-color);
+ font-weight: bold;
+ width: 100%;
+ height: 50px;
+ margin-top: 5px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ cursor: pointer;
+ transition: all 0.3s;
+ font-size: 12px;
+}
+
+#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-logo p{
+ width: 80%;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ word-break: break-all;
+ white-space: nowrap;
+ text-align: center;
+ font-size: 10px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel{
+ width: 100%;
+ height: 100%;
+}
+/***********************************************************************************
+************************************************************************************
+ 主界面布局 end
+************************************************************************************
+************************************************************************************/
+
+
+
+/***********************************************************************************
+************************************************************************************
+ 快捷操作面板 start
+************************************************************************************
+************************************************************************************/
+.tl-rtc-app-layer-quick-oper-panel{
+ background: var(--skin-quick-oper-panel-background) !important;
+ color: var(--skin-quick-oper-panel-item-color) !important;
+}
+
+.tl-rtc-app-layer-quick-oper-panel .layui-layer-title{
+ color: var(--skin-body-color) !important;
+ border-bottom: 1px solid var(--skin-body-border-color) !important;
+ border-radius: 6px;
+}
+
+.tl-rtc-app-quick-oper-panel{
+ user-select: none;
+ width: 100%;
+ height: 250px;
+ padding: 5px 0;
+}
+
+.tl-rtc-app-quick-oper-panel-list{
+ display: flex;
+ flex-wrap: wrap;
+ flex-direction: row;
+ align-content: center;
+ justify-content: flex-start;
+ align-items: center;
+}
+
+.tl-rtc-app-quick-oper-panel-list-item{
+ display: flex;
+ flex-direction: column;
+ flex-wrap: nowrap;
+ justify-content: center;
+ align-items: center;
+ cursor: pointer;
+ font-size: 12px;
+ color: var(--skin-quick-oper-panel-item-color);
+ font-weight: 700;
+ transition: all .2s;
+ border-radius: 4px;
+ width: calc((100% - 80px) / 4);
+ line-height: 25px;
+ padding: 5px;
+ margin: 5px;
+}
+
+.tl-rtc-app-quick-oper-panel-list-item:hover{
+ background: var(--skin-quick-oper-panel-item-hover-background);
+}
+
+.tl-rtc-app-quick-oper-panel-list-item:hover{
+ color: var(--skin-quick-oper-panel-item-hover-color);
+}
+
+.tl-rtc-app-quick-oper-panel-list-item svg{
+ width: 28px;
+ height: 28px;
+}
+
+#quick-oper-panel-scrollbar{
+ min-width: 20px !important;
+ max-width: 40px !important;
+ width: 5% !important;
+ margin-left: 48% !important;
+ height: 3px !important;
+}
+/***********************************************************************************
+************************************************************************************
+ 快捷操作面板 start
+************************************************************************************
+************************************************************************************/
+
+
+
+/***********************************************************************************
+************************************************************************************
+ 消息频道列表 start
+************************************************************************************
+************************************************************************************/
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel
+.tl-rtc-app-left-panel-no-channel{
+ text-align: center;
+ line-height: 100px;
+ font-size: 14px;
+ font-weight: bold;
+ color: var(--skin-channel-list-no-channel-color);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top{
+ height: var(--left-channel-top);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-header{
+ display: flex;
+ padding: 15px 10px 15px 0px;
+ flex-direction: row;
+ justify-content: space-between;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-header-title{
+ font-size: 16px;
+ font-weight: bold;
+ color: var(--skin-top-header-title-color);
+ margin-right: 10px;
+ margin-left: 10px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ word-break: break-all;
+ white-space: nowrap;
+ width: 80%;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-header-tool{
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ cursor: pointer;
+ transition: all 0.3s;
+ background: var(--skin-top-header-tool-background);
+ padding: 2px 5px;
+ border-radius: 4px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-header-tool svg{
+ width: 14px;
+ height: 14px;
+ fill: var(--skin-top-header-tool-fill-color);
+ transition: all 0.3s;
+ scale: 1.5;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-header-tool:hover{
+ box-shadow: var(--skin-top-header-tool-hover-shadow);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-header-tool:hover svg{
+ fill: var(--skin-top-header-tool-hover-fill-color);
+ scale: 1.7;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-search{
+ padding: 5px 0;
+ line-height: 0px;
+ width: 96%;
+ margin-left: 2%;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-search i{
+ position: relative;
+ margin-left: 8px;
+ top: 16px;
+ color: var(--skin-channel-top-search-i-color);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-search svg{
+ color: var(--skin-channel-top-search-i-color);
+ position: relative;
+ float: right;
+ right: 8px;
+ margin-top: -22px;
+ cursor: pointer;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-search input{
+ width: 100%;
+ height: 30px;
+ padding-left: 30px !important;
+ border-radius: 4px;
+ background: var(--skin-channel-top-search-input-background);
+ color: var(--skin-channel-top-search-input-color);
+ font-size: 13px;
+ letter-spacing: 1px;
+ border-width: 0.5px;
+ border-color: var(--skin-channel-top-search-input-background);
+}
+
+.tl-rtc-app-left-panel-channel-top-tag{
+ padding: 7px 10px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-tag-list{
+ display: flex;
+ flex-direction: row;
+ flex-wrap: nowrap;
+ justify-content: flex-start;
+ align-items: center;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-tag-list span{
+ background: var(--skin-body-background);
+ font-size: 12px;
+ border-radius: 4px;
+ color: var(--skin-channel-list-item-message-color);
+ cursor: pointer;
+ word-break: keep-all;
+ white-space: nowrap;
+ text-align: center;
+ letter-spacing: 1px;
+ line-height: 20px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-tag-list span:hover{
+ background: var(--skin-channel-list-item-hover-background);
+ color: var(--skin-body-color);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-tag-list .tag-active{
+ background: var(--skin-channel-list-item-hover-background);
+ color: var(--skin-body-color);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel{
+ height: calc(100% - var(--left-channel-top));
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel #channelListSwiper{
+ height: calc(100% - 3px);
+}
+
+.tl-rtc-app-left-panel-channel-sub{
+ height: 100%;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item{
+ display: flex;
+ align-items: center;
+ cursor: pointer;
+ border-radius: 2px;
+ transition: all 0.3s;
+}
+
+.tl-rtc-app-left-panel-channel-item-actions{
+ display: flex;
+ position: absolute;
+ right: 10px;
+ top: 50%;
+ transform: translateY(-50%);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item:hover{
+ background: var(--skin-channel-list-item-hover-background);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-active{
+ background: var(--skin-channel-list-item-hover-background);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-top{
+ background: var(--skin-channel-list-item-top-background);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-img{
+ width: 20%;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-img img{
+ height: 32px;
+ width: 32px;
+ margin: 25% 20%;
+ -webkit-user-drag: none;
+ border-radius: 3px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content{
+ width: 55%;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content div{
+ overflow: hidden;
+ text-overflow: ellipsis;
+ word-break: break-all;
+ white-space: nowrap;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-nickname{
+ font-weight: bold;
+ font-size: 13px;
+ margin-top: 5px;
+ letter-spacing: 0.5px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-nickname-black{
+ font-size: 11px;
+ color: red;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-nickname-black svg{
+ fill: red;
+ scale: 1.2;
+ padding: 0 1px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-message{
+ font-size: 12px;
+ margin-top: 10px;
+ color: var(--skin-channel-list-item-message-color);
+ letter-spacing: 0.5px;
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-message p{
+ overflow: hidden;
+ text-overflow: ellipsis;
+ word-break: break-all;
+ white-space: nowrap;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-message
+.tl-rtc-app-right-channel-content-textarea-at-user-text{
+ color: var(--skin-channel-list-item-message-at-user-text-color);
+ cursor: pointer;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-message
+.tl-rtc-app-left-panel-channel-item-content-message-at-me{
+ color: var(--skin-channel-list-item-message-at-me-text-color);
+ cursor: pointer;
+ margin-right: 5px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-message svg{
+ height: 15px;
+ width: 14px;
+ margin-right: 3px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-message
+.tl-rtc-app-left-panel-channel-item-content-message-file{
+ display: flex;
+ align-items: center;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-message
+.tl-rtc-app-left-panel-channel-item-content-message-file-info{
+ margin-left: 5px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-message img{
+ width: 24px !important;
+ height: 24px !important;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-other{
+ width: 25%;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-other div{
+ text-align: right;
+ font-size: 12px;
+ scale: 0.9;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-other-time{
+ margin-top: 10px;
+ color: var(--skin-channel-list-item-time-color);
+ padding-right: 8px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-other-unread{
+ margin-top: 10px;
+ padding-right: 8px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-other-unread div{
+ line-height: 16px !important;
+ padding: 0 4px;
+ border-radius: 4px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-other-unread .layui-badge{
+ display: inline;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-quick{
+ display: flex;
+ height: 100%;
+ flex-wrap: nowrap;
+ flex-direction: row;
+ justify-content: flex-start;
+ text-align: center;
+ align-items: center;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-quick div{
+ font-size: 12px;
+ width: calc(100% / 5);
+ height: 100%;
+ display: flex;
+ flex-direction: row;
+ flex-wrap: nowrap;
+ justify-content: center;
+ align-items: center;
+ word-break: keep-all;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-quick
+.tl-rtc-app-left-panel-channel-item-quick-mark-unread{
+ background-color: var(--skin-channel-list-item-quick-mark-unread-background);
+ color: var(--skin-channel-list-item-quick-mark-unread-color);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-quick
+.tl-rtc-app-left-panel-channel-item-quick-top{
+ background-color: var(--skin-channel-list-item-quick-top-background);
+ color: var(--skin-channel-list-item-quick-top-color);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-quick
+.tl-rtc-app-left-panel-channel-item-quick-delete{
+ background-color: var(--skin-channel-list-item-quick-delete-background);
+ color: var(--skin-channel-list-item-quick-delete-color);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-quick
+.tl-rtc-app-left-panel-channel-item-quick-un-notify{
+ background-color: var(--skin-channel-list-item-quick-un-notify-background);
+ color: var(--skin-channel-list-item-quick-un-notify-color);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-quick
+.tl-rtc-app-left-panel-channel-item-quick-hidden{
+ background-color: var(--skin-channel-list-item-quick-hidden-background);
+ color: var(--skin-channel-list-item-quick-hidden-color);
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content{
+ height: 100%;
+ border-radius: 10px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-top{
+ height: var(--right-channel-content-top);
+ display: flex;
+ align-items: center;
+ flex-direction: row;
+ justify-content: space-between;
+ border-bottom: 1px solid var(--skin-body-border-color);
+}
+
+.tl-rtc-app-rc .tl-rtc-app-right .tl-rtc-app-right-channel-content-top{
+ margin: 0 !important;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-top-nickname{
+ font-weight: bold;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ word-break: break-all;
+ white-space: nowrap;
+ margin-left: 10px;
+ letter-spacing: 0.5px;
+ max-width: calc(100% - 260px);
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-edit-channel-name{
+ cursor: pointer;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-top-more{
+ text-align: right;
+ margin-right: 10px;
+ max-width: 260px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-top-more svg{
+ padding-left: 15px;
+ cursor: pointer;
+ width: 20px;
+ height: 20px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-top-more svg:hover{
+ fill: var(--skin-channel-content-top-more-fill-color);
+ /* 左右摇摆, 有渲染性能问题 */
+ /* animation: tl-rtc-app-right-channel-content-top-more-svg-hover 0.6s; */
+}
+/*
+@keyframes tl-rtc-app-right-channel-content-top-more-svg-hover {
+ 0% { transform: rotate(-10deg); }
+ 50% { transform: rotate(10deg); }
+ 100% { transform: rotate(-10deg); }
+} */
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body{
+ height: var(--right-channel-content-body);
+ overflow-y: auto;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item{
+ padding: 0 10px;
+ display: block;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item:hover
+.tl-rtc-app-right-channel-content-body-item-message-menu{
+ opacity: 1;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-system{
+ text-align: center;
+ font-size: 12px;
+ color: var(--skin-channel-content-body-message-system-color);
+ user-select: none;
+ padding: 5px 0;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-time{
+ text-align: center;
+ font-size: 12px;
+ color: var(--skin-channel-content-body-message-time-color);
+ user-select: none;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-load-more{
+ text-align: center;
+ font-size: 12px;
+ color: var(--skin-channel-content-body-message-load-more-color);
+ user-select: none;
+ padding: 5px 0;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-load-more:hover{
+ color: var(--skin-channel-content-body-message-load-more-hover-color);
+ cursor: pointer;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-avatar{
+ cursor: pointer;
+ user-select: none;
+ --webkit-user-select: none;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-avatar img{
+ -webkit-user-drag: none;
+ width: 28px;
+ height: 28px;
+ border-radius: 3px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-avatar img:hover{
+ /* 上下跳动动画 */
+ animation: tl-rtc-app-right-channel-content-body-item-avatar-img-hover 0.6s;
+}
+
+@keyframes tl-rtc-app-right-channel-content-body-item-avatar-img-hover {
+ 0% { transform: rotate(-10deg); }
+ 50% { transform: rotate(10deg); }
+ 100% { transform: rotate(-10deg); }
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-info{
+ display: flex;
+ flex-direction: row;
+ flex-wrap: nowrap;
+ align-items: flex-start;
+ justify-content: flex-start;
+ width: 50%;
+ word-break: break-all;
+ margin-top: 10px;
+ letter-spacing: 0.5px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message-menu{
+ padding: 10px 10px 0 0;
+ border-radius: 4px;
+ opacity: 0;
+ transition: opacity 0.2s;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message-menu svg{
+ padding: 2px 4px;
+ background: var(--skin-channel-content-body-message-menu-icon-background);
+ fill: var(--skin-channel-content-body-message-menu-icon-color);
+ cursor: pointer;
+ border-radius: 4px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message-menu svg:hover{
+ background: var(--skin-channel-content-body-message-menu-icon-hover-background);
+ fill: var(--skin-channel-content-body-message-menu-icon-hover-color);
+ animation: tl-rtc-app-right-channel-content-body-item-message-menu-icon-hover 0.3s;
+}
+
+@keyframes tl-rtc-app-right-channel-content-body-item-message-menu-icon-hover {
+ 0% { transform: scale(1); }
+ 50% { transform: scale(1.2); }
+ 100% { transform: scale(1); }
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-name{
+ padding: 0 0 5px 0;
+ text-align: left;
+ font-size: 11px;
+ overflow: hidden;
+ font-weight: bold;
+ text-overflow: ellipsis;
+ word-break: break-all;
+ white-space: nowrap;
+ max-width: 60px;
+ color: var(--skin-channel-content-body-message-name-color);
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-name:hover{
+ color: var(--skin-channel-content-body-message-name-hover-color);
+ cursor: pointer;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-name b{
+ font-size: 12px;
+ color: var(--skin-channel-content-body-message-name-at-color);
+ opacity: 0;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-name:hover b{
+ opacity: 1;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message{
+ margin: 0px 10px 0 0px;
+ font-size: 13px;
+ background: var(--skin-channel-content-body-message-background);
+ padding: 7px;
+ border-radius: 4px;
+ color: var(--skin-channel-content-body-message-color);
+ cursor: text;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message
+.tl-rtc-app-right-channel-content-textarea-at-user-text{
+ color: var(--skin-channel-content-body-item-message-at-user-text-color);
+ cursor: pointer;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message-reply{
+ padding: 10px;
+ color: var(--skin-channel-content-body-reply-content-block-color);
+ font-size: 12px;
+ margin: 5px 10px 0 0;
+ user-select: none;
+ display: flex;
+ border-top: .5px solid var(--skin-body-border-color);
+ flex-direction: row;
+ flex-wrap: nowrap;
+ justify-content: flex-start;
+ align-items: center;
+ background: var(--skin-channel-content-body-reply-content-block-background);
+ border-radius: 4px;
+ cursor: pointer;
+ position: relative;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-info
+.tl-rtc-app-right-channel-content-body-item-message-reply-triangle{
+ width: 0;
+ height: 0;
+ border-top: 5px solid transparent;
+ border-bottom: 5px solid transparent;
+ border-right: 5px solid var(--skin-channel-content-body-reply-content-block-background);
+ top: -8px;
+ transform: rotate(90deg);
+ left: 10px;
+ position: absolute;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-info-self
+.tl-rtc-app-right-channel-content-body-item-message-reply-triangle{
+ width: 0;
+ height: 0;
+ border-top: 5px solid transparent;
+ border-bottom: 5px solid transparent;
+ border-right: 5px solid var(--skin-channel-content-body-reply-content-block-background);
+ top: -8px;
+ transform: rotate(90deg);
+ right: 10px;
+ position: absolute;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-reply-content-block{
+ padding: 10px;
+ color: var(--skin-channel-content-body-reply-content-block-color);
+ font-size: 12px;
+ user-select: none;
+ display: flex;
+ border-top: .5px solid var(--skin-body-border-color);
+ flex-direction: row;
+ flex-wrap: nowrap;
+ justify-content: flex-start;
+ align-items: center;
+ position: absolute;
+ bottom: calc(var(--right-channel-editor-height) - 1px);
+ background: var(--skin-body-background);
+ width: calc(100% - 20px);
+ box-shadow: 0px -10px 20px 0px rgba(0, 0, 0, .1);
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-reply-content-block i{
+ padding-right: 5px;
+ cursor: pointer;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-reply-content-block-content{
+ border-radius: 3px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ word-break: break-all;
+ white-space: nowrap;
+ margin-left: 5px;
+ width: calc(var(--right-channel-content-body) - 80px);
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-reply-content-block-content p {
+ display: inline;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ word-break: break-all;
+ white-space: nowrap;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message img{
+ width: 150px;
+ height: 150px;
+ border-radius: 3px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message
+.tl-rtc-app-right-channel-content-body-item-message-file{
+ display: flex;
+ align-items: center;
+ cursor: pointer;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message
+.tl-rtc-app-right-channel-content-body-item-message-file-left{
+ width: 20%;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message
+.tl-rtc-app-right-channel-content-body-item-message-file-left svg{
+ width: 100%;
+ height: 55px;
+ min-width: 32px;
+ min-height: 32px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message
+.tl-rtc-app-right-channel-content-body-item-message-file-info{
+ width: calc(80% - 10px);
+ margin-left: 5px;
+ display: flex;
+ flex-direction: column;
+ flex-wrap: nowrap;
+ justify-content: center;
+ align-items: flex-start;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message
+.tl-rtc-app-right-channel-content-body-item-message-file-download{
+ position: relative;
+ width: 10%;
+ height: 16px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-info-self{
+ display: flex;
+ flex-direction: row-reverse;
+ flex-wrap: nowrap;
+ align-items: flex-start;
+ width: 50%;
+ word-break: break-all;
+ margin-top: 10px;
+ margin-left: 50%;
+ justify-content: flex-start;
+ letter-spacing: 0.5px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-bottom{
+ height: var(--right-channel-editor-height);
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-bottom img{
+ width: 30px;
+ border-radius: 3px;
+}
+
+.tl-rtc-app-right-channel-content-bottom-btn{
+ position: absolute;
+ right: 10px;
+ bottom: 10px;
+ display: flex;
+ flex-direction: row;
+ flex-wrap: nowrap;
+ align-items: flex-end;
+ user-select: none;
+}
+
+.tl-rtc-app-right-channel-content-bottom-tips{
+ font-size: 12px;
+ margin-right: 10px;
+ color: #c3b4b4;
+}
+
+.tl-rtc-app-right-channel-content-bottom-resize-handle{
+ width: 100%;
+ height: 1px;
+ cursor: row-resize;
+ position: absolute;
+ background-color: var(--skin-body-border-color);
+}
+/***********************************************************************************
+************************************************************************************
+ 消息频道列表 end
+************************************************************************************
+************************************************************************************/
+
+
+
+/***********************************************************************************
+************************************************************************************
+ 频道更多列表 start
+************************************************************************************
+************************************************************************************/
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more{
+ position: absolute;
+ right: -300px;
+ height: calc(100% - var(--right-channel-content-top));
+ width: 260px;
+ top: var(--right-channel-content-top);
+ background: var(--skin-channel-content-more-background);
+ border-top: 1px solid var(--skin-body-border-color);
+ border-bottom-left-radius: 6px;
+ border-top-left-radius: 6px;
+ transition: right 0.3s;
+ box-shadow: var(--skin-channel-content-more-shadow);
+ user-select: none;
+ --webkit-user-select: none;
+ z-index: 1001;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list{
+ text-align: center;
+ margin-top: 10px;
+ padding: 0 20px 0px 20px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-item{
+ line-height: 45px;
+ margin-bottom: 5px;
+ border-radius: 4px;
+ cursor: pointer;
+ text-align: left;
+ display: flex;
+ flex-wrap: nowrap;
+ align-items: center;
+ justify-content: space-between;
+ border-bottom: 1px solid var(--skin-channel-content-more-list-item-border-color);
+ border-bottom-right-radius: 0px;
+ border-bottom-left-radius: 0px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-item:hover{
+ color: var(--skin-channel-content-more-list-item-hover-color);
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-item-title{
+ font-size: 13px;
+ font-weight: bold;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-item-title svg{
+ width: 14px;
+ height: 14px;
+ margin-left: 3px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-item-oper{
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ flex-wrap: nowrap;
+ align-items: center;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-item-oper svg{
+ margin-left: 5px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-item-oper-channel-name{
+ color: var(--skin-channel-content-more-list-item-oper-channel-name-color);
+ font-size: 12px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ word-break: break-all;
+ white-space: nowrap;
+ max-width: 100px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-user-list{
+ line-height: 30px;
+ border-radius: 4px;
+ cursor: pointer;
+ padding-bottom: 5px;
+ text-align: center;
+ border-bottom: 1px solid var(--skin-channel-content-more-list-item-border-color);
+ border-bottom-right-radius: 0px;
+ border-bottom-left-radius: 0px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-user-item-oper{
+ padding: 10px 0 0;
+ border-radius: 4px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-user-item-oper:hover{
+ background: var(--skin-channel-content-more-list-user-item-oper-hover-background);
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-user-item-oper svg{
+ scale: 1.9;
+ margin-top: 11px;
+ fill: var(--skin-channel-content-more-list-user-item-oper-hover-fill-color);
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-user-item-oper svg:hover{
+ animation: rotate 0.3s;
+}
+
+@keyframes rotate {
+ 0% {
+ transform: rotate(0deg);
+ }
+ 100% {
+ transform: rotate(360deg);
+ }
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-user-title{
+ font-size: 13px;
+ font-weight: bold;
+ margin-bottom: 10px;
+ padding-bottom: 5px;
+ width: 100%;
+ text-align: left;
+ border-bottom: 1px solid var(--skin-channel-content-more-list-item-border-color);
+ border-bottom-right-radius: 0px;
+ border-bottom-left-radius: 0px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-user-item-username{
+ font-size: 12px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ word-break: break-all;
+ white-space: nowrap;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-user-item-avatar{
+ width: 32px;
+ height: 32px;
+ border-radius: 3px;
+}
+
+#group-more-swiper-scrollbar{
+ min-width: 20px !important;
+ max-width: 40px !important;
+ width: 5% !important;
+ margin-left: 50% !important;
+ height: 3px !important;
+}
+
+.tl-rtc-app-layer-channel-share{
+ background: var(--skin-body-background) !important;
+ color: var(--skin-body-color) !important;
+}
+
+
+.tl-rtc-app-layer-channel-share .layui-layer-title{
+ color: var(--skin-body-color) !important;
+ border-color: var(--skin-body-border-color) !important;
+ border-radius: 6px;
+}
+
+.tl-rtc-app-layer-channel-share #tl-rtc-app-channel-share-image{
+ text-align: center;
+ user-select: none;
+}
+
+.tl-rtc-app-layer-channel-share #tl-rtc-app-channel-share-image img{
+ width: 70%;
+ height: 70%;
+ margin-left: 15%;
+ margin-top: 7%;
+ -webkit-user-drag: none;
+}
+
+.tl-rtc-app-layer-channel-share .tl-rtc-app-channel-share-tools{
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+ align-items: center;
+ margin-top: 8%;
+}
+
+.tl-rtc-app-layer-channel-share .tl-rtc-app-channel-share-tools-item{
+ padding: 5px 10px;
+ border-radius: 4px;
+ cursor: pointer;
+ transition: all 0.2s;
+ margin: 0 10px;
+ border: 1px solid var(--skin-body-border-color);
+}
+
+/***********************************************************************************
+************************************************************************************
+ 频道更多列表 end
+************************************************************************************
+************************************************************************************/
+
+
+
+/***********************************************************************************
+************************************************************************************
+ 频道邀请好友列表 start
+************************************************************************************
+************************************************************************************/
+.tl-rtc-app-layer-channel-invite{
+ background: var(--skin-body-background) !important;
+ color: var(--skin-body-color) !important;
+}
+
+.tl-rtc-app-layer-channel-invite .layui-layer-title {
+ color: var(--skin-body-color) !important;
+ border-bottom: 1px solid var(--skin-body-border-color) !important;
+ border-radius: 6px;
+}
+
+.tl-rtc-app-right-channel-content-invite .tl-rtc-app-right-channel-content-invite-header{
+ display: flex;
+ width: 100%;
+ flex-direction: row;
+ flex-wrap: nowrap;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.tl-rtc-app-right-channel-content-invite .tl-rtc-app-right-channel-content-invite-header-search{
+ padding: 0px 15px 5px 15px;
+ width: calc(50% - 30px);
+}
+
+.tl-rtc-app-right-channel-content-invite .tl-rtc-app-right-channel-content-invite-header-search i{
+ position: relative;
+ margin-left: 8px;
+ top: 25px;
+ color: var(--skin-channel-content-invite-search-i-color);
+}
+
+.tl-rtc-app-right-channel-content-invite .tl-rtc-app-right-channel-content-invite-header-search input{
+ width: 100%;
+ height: 30px;
+ padding-left: 30px !important;
+ border-radius: 4px;
+ background: var(--skin-channel-content-invite-search-input-background);
+ color: var(--skin-channel-content-invite-search-input-color);
+ font-size: 13px;
+ letter-spacing: 1px;
+ border-width: 0.5px;
+ border-color: var(--skin-channel-content-invite-search-input-background);
+}
+
+.tl-rtc-app-right-channel-content-invite-body{
+ display: flex;
+ flex-direction: row;
+ height: 100%;
+}
+
+.tl-rtc-app-right-channel-content-invite .tl-rtc-app-right-channel-content-invite-header-title{
+ padding: 15px 15px 5px 15px;
+ width: calc(50% - 30px);
+ font-size: 13px;
+}
+
+.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-source-list{
+ width: 50%;
+ border-right: 1px solid var(--skin-body-border-color);
+ user-select: none;
+}
+
+.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-source-list-item{
+ display: flex;
+ width: auto;
+ flex-direction: row;
+ justify-content: flex-start;
+ align-items: center;
+ flex-wrap: nowrap;
+ line-height: 40px;
+ padding:0 25px 0 25px;
+ cursor: pointer;
+}
+
+.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-source-list-item img{
+ width: 28px;
+ height: 28px;
+ margin-right: 10px;
+ border-radius: 3px;
+ margin-left: 5px;
+}
+
+.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-source-list-item:hover{
+ background: var(--skin-channel-list-item-hover-background);
+}
+
+.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-list-item-username{
+ font-size: 13px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ word-break: break-all;
+ white-space: nowrap;
+ max-width: 150px;
+}
+
+.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-choose-list{
+ width: 50%;
+ user-select: none;
+}
+
+.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-choose-list-empty{
+ text-align: center;
+ line-height: 80px;
+ color: var(--skin-body-color);
+ font-size: 12px;
+}
+
+.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-choose-list-item{
+ display: flex;
+ width: auto;
+ flex-direction: row;
+ justify-content: flex-start;
+ align-items: center;
+ flex-wrap: nowrap;
+ padding:0 25px 0 25px;
+ cursor: pointer;
+}
+
+.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-choose-list-item img{
+ width: 28px;
+ height: 28px;
+ margin-right: 10px;
+ margin-left: 5px;
+ border-radius: 3px;
+}
+
+.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-choose-list-item svg{
+ position: absolute;
+ right: 20px;
+ color: grey;
+}
+
+.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-choose-list-item:hover{
+ background: var(--skin-channel-content-invite-choose-list-item-hover-background);
+}
+
+.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-choose-item-username{
+ font-size: 13px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ word-break: break-all;
+ white-space: nowrap;
+}
+
+
+/********** 移动端样式 ***********/
+.tl-rtc-app-right-channel-content-invite-mobile .tl-rtc-app-right-channel-content-invite-header{
+ display: flex;
+ width: 100%;
+ flex-direction: row;
+ flex-wrap: nowrap;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.tl-rtc-app-right-channel-content-invite-mobile .tl-rtc-app-right-channel-content-invite-header-search{
+ padding: 0px 15px 5px 15px;
+ width: calc(100% - 30px);
+}
+
+.tl-rtc-app-right-channel-content-invite-mobile .tl-rtc-app-right-channel-content-invite-header-search i{
+ position: relative;
+ margin-left: 8px;
+ top: 25px;
+ color: var(--skin-channel-content-invite-search-i-color);
+}
+
+.tl-rtc-app-right-channel-content-invite-mobile .tl-rtc-app-right-channel-content-invite-header-search input{
+ width: 100%;
+ height: 30px;
+ padding-left: 30px !important;
+ border-radius: 4px;
+ background: var(--skin-channel-content-invite-search-input-background);
+ color: var(--skin-channel-content-invite-search-input-color);
+ border-color: var(--skin-channel-content-invite-search-input-background);
+ font-size: 13px;
+ letter-spacing: 1px;
+}
+
+.tl-rtc-app-right-channel-content-invite-body-mobile{
+ display: flex;
+ flex-direction: column-reverse;
+ height: 100%;
+ flex-wrap: wrap;
+ justify-content: center;
+ align-items: center;
+ align-content: center;
+}
+
+.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-source-list{
+ width: 100%;
+ border-right: 1px solid var(--skin-body-border-color);
+ border-top: 1px solid var(--skin-body-border-color) !important;
+ user-select: none;
+}
+
+.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-source-list-item{
+ display: flex;
+ width: auto;
+ flex-direction: row;
+ justify-content: flex-start;
+ align-items: center;
+ flex-wrap: nowrap;
+ line-height: 40px;
+ padding:0 25px 0 25px;
+ cursor: pointer;
+}
+
+.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-source-list-item img{
+ width: 28px;
+ height: 28px;
+ margin-right: 10px;
+ border-radius: 3px;
+ margin-left: 5px;
+}
+
+.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-source-list-item:hover{
+ background: var(--skin-channel-content-invite-choose-list-item-hover-background);
+}
+
+.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-list-item-username{
+ font-size: 13px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ word-break: break-all;
+ white-space: nowrap;
+ max-width: 150px;
+}
+
+.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-choose-list{
+ user-select: none;
+}
+
+.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-choose-list-empty{
+ text-align: center;
+ line-height: 80px;
+ color: var(--skin-channel-content-invite-choose-list-empty-color);
+ font-weight: bold;
+}
+
+.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-choose-list-item{
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ cursor: pointer;
+ flex-wrap: wrap;
+ align-content: center;
+}
+
+.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-choose-list-item img{
+ width: 28px;
+ height: 28px;
+ margin-right: 10px;
+ margin-left: 5px;
+ border-radius: 3px;
+ margin-bottom: 5px;
+}
+
+.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-choose-list-item svg{
+ position: absolute;
+ right: 14px;
+ color: grey;
+ top: 10px;
+}
+
+.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-choose-list-item:hover{
+ background: var(--skin-channel-content-invite-choose-list-item-hover-background);
+}
+
+.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-choose-item-username{
+ font-size: 13px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ word-break: break-all;
+ white-space: nowrap;
+}
+/***********************************************************************************
+************************************************************************************
+ 频道邀请好友列表 end
+************************************************************************************
+************************************************************************************/
+
+
+
+
+/***********************************************************************************
+************************************************************************************
+ 联系人列表 start
+************************************************************************************
+************************************************************************************/
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top{
+ height: var(--left-contact-top);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-header{
+ display: flex;
+ padding: 15px 10px 15px 0px;
+ flex-direction: row;
+ justify-content: space-between;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-header-block{
+ display: flex;
+ align-items: flex-end;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-header-title{
+ font-size: 16px;
+ font-weight: bold;
+ color: var(--skin-top-header-title-color);
+ margin-right: 10px;
+ margin-left: 20px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ word-break: break-all;
+ white-space: nowrap;
+ width: 70%;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-header-tool{
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ cursor: pointer;
+ transition: all 0.3s;
+ background: var(--skin-top-header-tool-background);
+ padding: 2px 5px;
+ border-radius: 4px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-header-tool:hover{
+ box-shadow: var(--skin-contact-header-tool-hover-shadow);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-header-tool svg{
+ width: 14px;
+ height: 14px;
+ fill: var(--skin-contact-header-tool-svg-fill-color);
+ transition: all 0.3s;
+ scale: 1.5;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-header-tool:hover svg{
+ fill: var(--skin-contact-header-tool-svg-hover-fill-color);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-search{
+ padding: 5px 0;
+ line-height: 0px;
+ width: 96%;
+ margin-left: 2%;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-search i{
+ position: relative;
+ margin-left: 8px;
+ top: 16px;
+ color: var(--skin-contact-top-search-i-color);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-search svg{
+ color: var(--skin-contact-top-search-i-color);
+ position: relative;
+ float: right;
+ right: 8px;
+ margin-top: -22px;
+ cursor: pointer;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-search input{
+ width: 100%;
+ height: 30px;
+ padding-left: 30px !important;
+ border-radius: 4px;
+ background: var(--skin-contact-top-search-input-background);
+ color: var(--skin-contact-top-search-input-color);
+ font-size: 13px;
+ letter-spacing: 1px;
+ border-width: 0.5px;
+ border-color: var(--skin-contact-top-search-input-background);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact{
+ height: calc(100% - var(--left-contact-top) - 5px);
+ overflow-y: auto;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item{
+ border-bottom: 1px solid var(--skin-body-border-color);
+ display: flex;
+ justify-content: flex-start;
+ align-items: center;
+ padding: 4px 0;
+ cursor: pointer;
+ border-radius: 2px;
+ transition: all 0.1s;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item:hover{
+ background: var(--skin-contact-list-item-hover-background);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-img{
+ width: 20%;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-img img{
+ height: 32px;
+ width: 32px;
+ margin: 20%;
+ -webkit-user-drag: none;
+ border-radius: 3px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-content{
+ width: 50%;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-content div{
+ overflow: hidden;
+ text-overflow: ellipsis;
+ word-break: break-all;
+ white-space: nowrap;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-content-nickname{
+ font-weight: bold;
+ font-size: 13px;
+ letter-spacing: 0.5px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-content-state{
+ font-size: 11px;
+ color: var(--skin-contact-content-item-message-color);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-content-message{
+ font-size: 12px;
+ margin-top: 10px;
+ color: var(--skin-contact-content-item-message-color);
+ letter-spacing: 0.5px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-other{
+ width: 30%;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-other div{
+ text-align: right;
+ font-size: 12px;
+ scale: 0.9;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-other-status{
+ margin-top: 10px;
+ color: var(--skin-contact-content-item-other-status-color);
+ padding-right: 8px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-other-unread{
+ padding-right: 8px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-other-unread div{
+ border-radius: 50%;
+ width: 10px;
+ height: 10px;
+ padding: 0;
+ font-size: 7px;
+ transition: right 0.3s;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content{
+ padding: 5px 10px;
+ transition: padding 0.3s;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content .goBack{
+ top: 17px;
+ left: 15px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-info{
+ display: flex;
+ flex-direction: row;
+ padding: 30px 20px;
+ border-bottom: solid 1px var(--skin-body-border-color);
+ flex-wrap: nowrap;
+ justify-content: flex-start;
+ align-items: center;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-other{
+ padding: 0px 20px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-other-item{
+ padding: 20px 0px;
+ border-bottom: solid 1px var(--skin-body-border-color);
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-other-item-value{
+ margin-left: 5px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-info-type{
+ position: absolute;
+ right: 40px;
+ font-size: 12px;
+ cursor: pointer;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-info-type svg{
+ width: 18px;
+ height: 18px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-info-type svg:hover{
+ fill: var(--skin-contact-content-other-item-badge-background);
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-other-item-value-badge{
+ background-color: var(--skin-contact-content-other-item-badge-background) !important;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-info-avatar{
+ margin-right: 20px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-info-avatar img{
+ width: 60px;
+ height: 60px;
+ user-select: none;
+ -webkit-user-drag: none;
+ border-radius: 3px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-info-more-item{
+ margin-bottom: 10px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-info-more-item b{
+ font-size: 18px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-tool-btn{
+ text-align: center;
+ padding: 25px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-tool-btn button{
+ font-size: 12px;
+ border-radius: 4px;
+ width: 100px;
+ letter-spacing: 1px;
+ background-color: var(--skin-contact-content-apply-button-background);
+ color: var(--skin-contact-content-apply-button-color);
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-tool{
+ display: flex;
+ justify-content: space-around;
+ align-items: center;
+ flex-direction: row;
+ text-align: center;
+ padding: 30px 20px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-tool
+.tl-rtc-app-right-contact-content-tool-item{
+ padding: 5px 10px;
+ cursor: pointer;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-tool
+.tl-rtc-app-right-contact-content-tool-item svg{
+ width: 18px;
+ height: 18px;
+ padding: 5px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-tool-item:hover{
+ color: var(--skin-contact-content-tool-item-hover-background);
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-top{
+ display: flex;
+ flex-direction: row;
+ flex-wrap: nowrap;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 1px solid var(--skin-body-border-color);
+ padding-bottom: 10px;
+ height: 30px;
+ margin-left: 15px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-top-title{
+ font-size: 15px;
+ font-weight: bold;
+ user-select: none;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ word-break: break-all;
+ white-space: nowrap;
+}
+
+.tl-rtc-app-right-contact-content-friend{
+ height: 100%;
+ padding: 5px 0;
+ width: 100%;
+}
+
+.tl-rtc-app-right-contact-content-apply{
+ height: 100%;
+ padding: 5px 0;
+ width: 100%;
+}
+
+.tl-rtc-app-right-contact-content-search{
+ height: 100%;
+ padding: 5px 0;
+ width: 100%;
+}
+
+.tl-rtc-app-right-contact-content-group{
+ height: 100%;
+ padding: 5px 0;
+ width: 100%;
+}
+/***********************************************************************************
+************************************************************************************
+ 联系人列表 end
+************************************************************************************
+************************************************************************************/
+
+
+
+/***********************************************************************************
+************************************************************************************
+ 登陆界面 start
+************************************************************************************
+************************************************************************************/
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login{
+ height: 100%;
+ text-align: center;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-top-header{
+ line-height: var(--left-login-top);
+ padding: 10px;
+ border-bottom: 1px solid var(--skin-body-border-color);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-top-header-title{
+ font-size: 16px;
+ font-weight: bold;
+ color: var(--skin-top-header-title-color);
+ margin-left: 10px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ word-break: break-all;
+ white-space: nowrap;
+ text-align: center;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item{
+ height: 50px;
+ border-bottom: 1px solid var(--skin-body-border-color);
+ display: flex;
+ padding: 4px 0;
+ cursor: pointer;
+ flex-direction: row;
+ justify-content: center;
+ flex-wrap: wrap;
+ align-content: center;
+ align-items: center;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item:hover{
+ color: var(--skin-login-list-item-hover-color);
+ background-color: var(--skin-login-list-item-hover-background);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item-name{
+ margin-left: 10px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item-icon svg{
+ width: 20px;
+ height: 20px;
+ transition: all 0.2s;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content{
+ height: 100%;
+ border-radius: 10px;
+ text-align: center;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body{
+ padding: 30px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-header{
+ height: 50px;
+ font-size: 22px;
+ font-weight: bold;
+ font-family: serif;
+ margin-top: 100px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-form{
+ padding: 20px 100px 20px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-form img{
+ width: 60%;
+ border-radius: 50%;
+ -webkit-user-drag: none;
+ border-radius: 3px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-form-item{
+ padding: 10px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-form-item input{
+ border-radius: 4px;
+ padding: 0 15px;
+ color: var(--skin-login-content-form-input-color);
+ letter-spacing: 1px;
+ font-weight: bold;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-form-item button{
+ width: 100%;
+ font-size: 11px;
+ background-color: var(--skin-login-button-background);
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-form-item button b{
+ letter-spacing: 3px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-bottom{
+ display: flex;
+ flex-direction: row;
+ justify-content: space-around;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-bottom div{
+ color: var(--skin-login-content-body-bottom-color);
+ cursor: pointer;
+ transition: all 0.2s;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-bottom div:hover{
+ color: var(--skin-login-content-body-bottom-hover-color);
+ font-weight: bold;
+}
+
+.tl-rtc-app-get-email-code-btn{
+ border: unset !important;
+ width: 30% !important;
+ border-top-left-radius: 0 !important;
+ border-bottom-left-radius: 0 !important;
+ color: var(--skin-login-email-code-btn-color) !important;
+}
+
+.tl-rtc-app-get-email-code-btn-disabled{
+ background-color: var(--skin-login-email-code-btn-disabled-background) !important;
+ color: var(--skin-login-email-code-btn-color) !important;
+}
+
+#tl-rtc-app .tl-rtc-app-right #tl-rtc-app-right-login-content-body-scan-qrcode{
+ text-align: center;
+ display: flex;
+ flex-direction: row;
+ align-content: center;
+ flex-wrap: wrap;
+ justify-content: center;
+ align-items: center;
+ margin-top: 45px;
+}
+
+#tl-rtc-app .tl-rtc-app-right #tl-rtc-app-right-login-content-body-scan-qrcode img{
+ width: 150px;
+ height: 150px;
+ user-select: none;
+ --webkit-user-drag: none;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-scan-title {
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+ align-content: center;
+ justify-content: center;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-scan-title div{
+ margin-top: 30px;
+ color: var(--skin-login-content-body-scan-title-color);
+ font-size: 11px;
+ font-weight: bold;
+ border: 1px solid var(--skin-body-border-color);
+ width: 100px;
+ padding: 6px;
+ background: var(--skin-login-content-body-scan-title-background);
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-scan-code-container {
+ display: flex;
+ justify-content: center;
+ gap: 10px;
+ padding: 30px 0;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-scan-code-container-item {
+ width: 35px;
+ height: 40px;
+ font-size: 24px;
+ text-align: center;
+ border: aliceblue;
+ border-radius: 5px;
+ outline: none;
+ transition: border-color 0.3s;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-scan-code-container-item:disabled {
+ background-color: var(--skin-login-content-body-scan-code-item-disabled-background);
+ cursor: not-allowed;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-scan-code-container-item:focus {
+ border-color: var(--skin-login-content-body-scan-code-item-focus-background);
+}
+
+/***********************************************************************************
+************************************************************************************
+ 登录界面 end
+************************************************************************************
+************************************************************************************/
+
+
+
+/***********************************************************************************
+************************************************************************************
+ 登录界面-移动端 start
+************************************************************************************
+************************************************************************************/
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-top-header-mobile{
+ line-height: var(--left-login-top);
+ padding: 30px 0 30px;
+ border-bottom: 1px solid var(--skin-body-border-color);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-top-header-title-mobile{
+ font-size: 20px;
+ font-weight: bold;
+ color: var(--skin-top-header-title-color);
+ margin-left: 10px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ word-break: break-all;
+ white-space: nowrap;
+ text-align: center;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-footer-mobile{
+ position: absolute;
+ bottom: 0px;
+ width: 100%;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-help-mobile{
+ text-align: center;
+ font-size: 12px;
+ color: var(--skin-login-help-mobile-color);
+ padding: 15px 0;
+ cursor: pointer;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-help-mobile:hover{
+ color: var(--skin-login-help-mobile-hover-color);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item-mobile{
+ border-bottom: 1px solid var(--skin-body-border-color);
+ display: flex;
+ padding: 10px 30px;
+ cursor: pointer;
+ border-radius: 4px;
+ flex-direction: row;
+ justify-content: space-evenly;
+ flex-wrap: wrap;
+ align-content: center;
+ align-items: center;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-mobile{
+ padding: 30px 0;
+ text-align: center;
+ transition: all 0.3s;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-avatar-mobile{
+ padding: 20px;
+ cursor: pointer;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-avatar-list-mobile{
+ display: flex;
+ justify-content: center;
+ transition: all 1s;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-avatar-mobile .layui-badge-dot{
+ width: 50px;
+ height: 23px;
+ line-height: 23px;
+ font-size: 10px;
+ border-radius: 4px;
+ margin-top: 10px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-avatar-mobile img{
+ width: 45px;
+ height: 45px;
+ border-radius: 50%;
+}
+
+.tl-rtc-app-left-panel-login-body-username{
+ padding: 10px 0 0;
+ font-size: 14px;
+ font-weight: bold;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-btns{
+ padding: 45px 0;
+ width: 70%;
+ margin-left: 15%;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-btns button{
+ width: 100%;
+ font-size: 11px;
+ background-color: var(--skin-login-button-background);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-btns button b{
+ letter-spacing: 3px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-clean{
+ margin: 35px 0;
+ font-size: 12px;
+ cursor: pointer;
+ transition: all 0.2s;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-clean:hover{
+ color: var(--skin-login-body-clean-color);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item-name-mobile{
+ margin-left: 10px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item-icon-mobile{
+ border-radius: 50%;
+ padding: 10px;
+ border: 0.5px solid var(--skin-body-border-color);
+ transition: all 0.2s;
+ margin: 6px 8px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item-icon-mobile:hover{
+ background: var(--skin-login-item-mobile-icon-background);
+ color: var(--skin-login-body-clean-hover-color);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item-icon-mobile svg{
+ width: 20px;
+ height: 20px;
+ transition: all 0.2s;
+}
+
+#tl-rtc-app .tl-rtc-app-left #tl-rtc-app-left-panel-login-body-scan-mobile{
+ text-align: center;
+ display: flex;
+ flex-direction: row;
+ align-content: center;
+ flex-wrap: wrap;
+ justify-content: center;
+ align-items: center;
+ margin-top: 10px;
+}
+
+#tl-rtc-app .tl-rtc-app-left #tl-rtc-app-left-panel-login-body-scan-mobile img{
+ width: 150px;
+ height: 150px;
+ user-select: none;
+ -webkit-user-drag: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-code-mobile{
+ display: flex;
+ flex-direction: row;
+ flex-wrap: nowrap;
+ justify-content: center;
+ padding: 30px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-code-mobile input{
+ width: 140px;
+ font-size: 18px;
+ letter-spacing: 10px;
+ font-weight: bold;
+ padding-left: 15px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-scan-code-title-mobile{
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+ align-content: center;
+ justify-content: center;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-scan-code-title-mobile div{
+ margin-top: 20px;
+ color: var(--skin-login-content-body-scan-title-color);
+ font-size: 11px;
+ font-weight: bold;
+ border: 1px solid var(--skin-body-border-color);
+ width: 100px;
+ padding: 6px;
+ background: var(--skin-login-content-body-scan-title-background);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-scan-code-container {
+ display: flex;
+ justify-content: center;
+ gap: 10px;
+ padding: 20px 0;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-scan-code-container-item {
+ width: 35px;
+ height: 40px;
+ font-size: 24px;
+ text-align: center;
+ border: aliceblue;
+ border-radius: 5px;
+ outline: none;
+ transition: border-color 0.3s;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-scan-code-container-item:disabled {
+ background-color: var(--skin-login-content-body-scan-code-item-disabled-background);
+ cursor: not-allowed;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-scan-code-container-item:focus {
+ border-color: var(--skin-login-content-body-scan-code-item-focus-border-color);
+}
+/***********************************************************************************
+************************************************************************************
+ 登录界面-移动端 end
+************************************************************************************
+************************************************************************************/
+
+
+/***********************************************************************************
+************************************************************************************
+ 遮罩层 start
+************************************************************************************
+************************************************************************************/
+.tl-rtc-app-right-shade-content-body{
+ background: #2e2e2e91;
+ opacity: 0;
+}
+
+.tl-rtc-app-right-channel-file-shade-content-body{
+ height: 100%;
+ width: 100%;
+ position: absolute;
+ top: 0;
+ z-index: 10001;
+ opacity: 1;
+ text-align: center;
+ font-size: 20px;
+ font-weight: bold;
+ color: white;
+}
+
+.tl-rtc-app-right-channel-more-shade-content-body{
+ height: 100%;
+ width: 100%;
+ position: absolute;
+ top:0;
+ z-index: 4;
+ opacity: 1;
+ transition: opacity 0.3s;
+}
+
+.tl-rtc-app-right-dropdow-shade-content-body{
+ height: 100%;
+ width: 100%;
+ position: absolute;
+ top: 0;
+ z-index: 4;
+ opacity: 0;
+ transition: opacity 0.3s;
+}
+
+.tl-rtc-app-right-blank-content-body{
+ display: flex;
+ flex-wrap: nowrap;
+ flex-direction: row;
+ height: 100%;
+ justify-content: center;
+ align-items: center;
+}
+
+.tl-rtc-app-right-blank-content-body-tips{
+ font-size: 28px;
+ font-weight: bold;
+ color: #0000000d;
+ user-select: none;
+ margin-top: -50px;
+}
+/***********************************************************************************
+************************************************************************************
+ 遮罩层 end
+************************************************************************************
+************************************************************************************/
+
+
+/***********************************************************************************
+************************************************************************************
+ macos样式弹窗 start
+************************************************************************************
+************************************************************************************/
+.tl-rtc-app-notification-container{
+ position: fixed;
+ top: 10px;
+ z-index: 9999;
+ display: flex;
+ flex-direction: column;
+ transition: right .45s;
+}
+
+.tl-rtc-app-notification {
+ background-color: #fff;
+ box-shadow: 0 20px 32px -8px rgba(9,30,66,0.25), 0 0 1px rgba(9,30,66,0.31);
+ transition: opacity .45s;
+ border-radius: 10px;
+ padding: 16px;
+ margin: 10px;
+ height: 32px;
+ width: 240px;
+ display: inline-flex;
+ flex-direction: initial;
+ align-items: center;
+ opacity: 0;
+}
+
+.tl-rtc-app-notification-content{
+ color: #000000b0;
+ margin-left: 10px;
+ word-break: break-all;
+}
+
+.tl-rtc-app-notification-icon{
+ margin-left: -20px;
+}
+
+.tl-rtc-app-notification-icon i{
+ font-size: 22px;
+ color: #77b7e8;
+}
+
+.tl-rtc-app-notification-title{
+ font-weight: bold;
+}
+
+.tl-rtc-app-notification-close{
+ position: relative;
+ top: -34px;
+ left: -23px;
+ line-height: 12px;
+ background: white;
+ border-radius: 50%;
+ padding: 3px;
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
+}
+
+.tl-rtc-app-notification-close i{
+ font-size: 12px;
+}
+
+.tl-rtc-app-notification-content-msg{
+ font-size: 12px;
+ height: 18px;
+ margin-top: 5px;
+ width: 230px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ word-break: break-all;
+ white-space: nowrap;
+}
+/***********************************************************************************
+************************************************************************************
+ macos样式弹窗 end
+************************************************************************************
+************************************************************************************/
+
+
+
+/***********************************************************************************
+************************************************************************************
+ 设置中心 - 设置列表 start
+************************************************************************************
+************************************************************************************/
+.tl-rtc-app-setting-list{
+ height: auto;
+ overflow-y: auto;
+}
+
+.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-top-header{
+ display: flex;
+ padding: 15px 10px 15px 0px;
+ flex-direction: row;
+ justify-content: space-between;
+}
+
+.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-top-header-block{
+ display: flex;
+ align-items: flex-end;
+}
+
+.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-top-header-title{
+ font-size: 16px;
+ font-weight: bold;
+ color: var(--skin-top-header-title-color);
+ margin-right: 10px;
+ margin-left: 20px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ word-break: break-all;
+ white-space: nowrap;
+ width: 70%;
+}
+
+.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-top-header-tool{
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ cursor: pointer;
+ transition: all 0.3s;
+ background: var(--skin-top-header-tool-background);
+ padding: 2px 5px;
+ border-radius: 4px;
+}
+
+.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-top-header-tool svg{
+ width: 14px;
+ height: 14px;
+ fill: var(--skin-top-header-tool-fill-color);
+ transition: all 0.3s;
+ scale: 1.5;
+}
+
+.tl-rtc-app-setting-list.tl-rtc-app-left-panel-setting-top-header-tool:hover{
+ box-shadow: var(--skin-top-header-tool-hover-shadow);
+}
+
+.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-top-header-tool:hover svg{
+ fill: var(--skin-top-header-tool-hover-fill-color);
+}
+
+.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-top-search{
+ padding: 5px 0;
+ line-height: 0px;
+ width: 96%;
+ margin-left: 2%;
+}
+
+.tl-rtc-app-setting-list .tl-rtc-app-setting-list-item{
+ line-height: 50px;
+ text-align: center;
+ cursor: pointer;
+ transition: all 0.2s;
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ flex-wrap: nowrap;
+ padding: 0px 20px 0 30px;
+ justify-content: space-between;
+}
+.tl-rtc-app-setting-list .tl-rtc-app-setting-list-item:hover{
+ background-color: var(--skin-setting-list-item-hover-background);
+}
+
+.tl-rtc-app-setting-list .tl-rtc-app-setting-list-item-active{
+ background-color: var(--skin-setting-list-item-active-background);
+}
+
+.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-item-icon{
+ margin-right: 20px;
+ line-height: 40px;
+ margin-top: 4px;
+}
+
+.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-item-icon svg{
+ width: 18px;
+ height: 18px;
+ transition: all 0.3s;
+}
+
+.tl-rtc-app-setting-list .tl-rtc-app-setting-list-item:hover
+.tl-rtc-app-left-panel-setting-item-icon svg{
+ scale: 1.5;
+}
+
+.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-item-name{
+ font-size: 14px;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-setting-top-search{
+ padding: 5px 0 10px 0;
+ line-height: 0px;
+ width: 96%;
+ margin-left: 2%;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-setting-top-search i{
+ position: relative;
+ margin-left: 8px;
+ top: 16px;
+ z-index: 1;
+ color: var(--skin-setting-top-search-i-color);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-setting-top-search svg{
+ color: var(--skin-setting-top-search-i-color);
+ position: relative;
+ float: right;
+ right: 8px;
+ margin-top: -22px;
+ cursor: pointer;
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-setting-top-search input{
+ width: 100%;
+ height: 30px;
+ padding-left: 30px !important;
+ border-radius: 4px;
+ background: var(--skin-setting-top-search-input-background);
+ color: var(--skin-setting-top-search-input-color);
+ font-size: 13px;
+ letter-spacing: 1px;
+ border-width: 0.5px;
+ border-color: var(--skin-setting-top-search-input-background);
+}
+
+#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-setting-item-body{
+ display: flex;
+ flex-direction: row;
+ flex-wrap: nowrap;
+ justify-content: center;
+ align-items: center;
+}
+
+/***********************************************************************************
+************************************************************************************
+ 设置中心 - 设置列表 end
+************************************************************************************
+************************************************************************************/
+
+
+/***********************************************************************************
+************************************************************************************
+ 设置中心 - 帐号设置 start
+************************************************************************************
+************************************************************************************/
+.tl-rtc-app-right-setting-content-account{
+ overflow-y: auto;
+ height: calc(100% - 55px);
+
+}
+
+.tl-rtc-app-right-setting-content-account .tl-rtc-app-right-setting-content-account-block{
+ padding: 10px;
+
+}
+
+.tl-rtc-app-right-setting-content-account .tl-rtc-app-right-setting-content-account-block-title{
+ font-size: 13px;
+ font-weight: bold;
+ user-select: none;
+ padding-left: 10px;
+}
+
+.tl-rtc-app-right-setting-content-account .tl-rtc-app-right-setting-content-account-block-content{
+ padding: 10px;
+ background: var(--skin-setting-content-block-background);
+ border-radius: 4px;
+ margin-top: 10px;
+}
+
+.tl-rtc-app-right-setting-content-account .tl-rtc-app-right-setting-content-account-block-content
+.tl-rtc-app-right-setting-content-account-block-item{
+
+
+
+ display: flex;
+ flex-wrap: nowrap;
+ flex-direction: row;
+ justify-content: space-between;
+ align-items: center;
+ padding: 10px 5px;
+ border-bottom: 1px solid var(--skin-body-border-color);
+ line-height: 25px;
+}
+
+.tl-rtc-app-right-setting-content-account .tl-rtc-app-right-setting-content-account-block-content
+.tl-rtc-app-right-setting-content-account-block-item:last-child{
+ border-bottom: 0px;
+
+
+
+
+}
+
+.tl-rtc-app-right-setting-content-account .tl-rtc-app-right-setting-content-account-block-content
+.tl-rtc-app-right-setting-content-account-block-item-title{
+ user-select: none;
+}
+
+.tl-rtc-app-right-setting-content-account .tl-rtc-app-right-setting-content-account-block-item-oper{
+ text-align: right;
+}
+
+.tl-rtc-app-right-setting-content-account .tl-rtc-app-right-setting-content-account-block-item-oper input{
+ height: 33px;
+ border-radius: 4px;
+ font-size: 12px;
+}
+
+.tl-rtc-app-right-setting-content-account-block-item-go-bind-mobile{
+ cursor: pointer;
+ color: var(--skin-body-color);
+}
+
+.tl-rtc-app-right-setting-content-account-block-item-go-bind-mobile:hover{
+ color: var(--skin-setting-content-bind-icon-hover-color);
+}
+
+.tl-rtc-app-right-setting-content-account-block-item-go-bind-email{
+ cursor: pointer;
+ color: var(--skin-body-color);
+}
+
+.tl-rtc-app-right-setting-content-account-block-item-go-bind-email:hover{
+ color: var(--skin-setting-content-bind-icon-hover-color);
+}
+
+.tl-rtc-app-right-setting-content-account-block-item-go-bind-wx{
+ cursor: pointer;
+ color: var(--skin-body-color);
+}
+
+.tl-rtc-app-right-setting-content-account-block-item-go-bind-wx:hover{
+ color: var(--skin-setting-content-bind-icon-hover-color);
+}
+
+.tl-rtc-app-right-setting-content-account-block-item-go-bind-tips{
+ fill: var(--skin-setting-content-bind-icon-tip-fill-color) !important;
+}
+
+.tl-rtc-app-right-setting-content-account-block-item-avatar{
+ width: 50px;
+ height: 50px;
+ border-radius: 50%;
+ -webkit-user-drag: none;
+}
+
+.tl-rtc-app-right-setting-content-account-block-item-avatar img{
+ width: 100%;
+ height: 100%;
+ border-radius: 8px;
+ -webkit-user-drag: none;
+ cursor: pointer;
+ transition: all 0.2s;
+}
+
+.tl-rtc-app-right-setting-content-account-block-item-avatar img:hover{
+ opacity: 0.5;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-setting-content-top{
+ display: flex;
+ flex-direction: row;
+ flex-wrap: nowrap;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 1px solid var(--skin-body-border-color);
+ padding-bottom: 10px;
+ height: 30px;
+ margin-left: 15px;
+}
+
+#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-setting-content-top-title{
+ font-size: 15px;
+ font-weight: bold;
+ user-select: none;
+ width: 40%;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ word-break: break-all;
+ white-space: nowrap;
+}
+
+.tl-rtc-app-right-contact-setting-account{
+ height: 100%;
+ padding: 5px 0;
+ width: 100%;
+}
+
+.tl-rtc-app-right-setting-content-account-bind-email{
+ padding: 20px;
+}
+
+.tl-rtc-app-right-setting-content-account-bind-email-item{
+ padding: 10px;
+}
+
+.tl-rtc-app-right-setting-content-account-bind-email-item-oper{
+ display: flex;
+ flex-direction: row;
+ flex-wrap: nowrap;
+ justify-content: flex-start;
+ align-items: center;
+}
+
+.tl-rtc-app-right-setting-content-account-bind-email-item-oper button{
+ height: 38px;
+ line-height: 38px;
+ border-top-left-radius: unset;
+ border-bottom-left-radius: unset;
+ border: unset !important;
+ background-color: var(--skin-setting-content-account-bind-email-btn-background);
+ color: var(--skin-setting-content-account-bind-email-btn-color);
+}
+
+.tl-rtc-app-right-setting-content-account-bind-email-item-oper #bindEmail,
+.tl-rtc-app-right-setting-content-account-bind-email-item-oper #bindEmailCode{
+ border-radius: 4px;
+ padding: 0 15px;
+ color: var(--skin-setting-content-account-bind-email-input-color);
+ background-color: var(--skin-setting-content-account-bind-email-input-background);
+ letter-spacing: 1px;
+ font-size: 13px;
+ border-color: var(--skin-setting-content-account-bind-email-input-background);
+}
+
+.tl-rtc-app-right-setting-content-account-bind-email-item-oper #bindEmailCode{
+ border-top-right-radius: 0px;
+ border-bottom-right-radius: 0px;
+ border-right: unset;
+}
+
+.tl-rtc-app-right-setting-content-account-bind-email-item-oper-disabled{
+ background-color: var(--skin-setting-content-account-bind-email-btn-disabled-background) !important;
+ color: var(--skin-setting-content-account-bind-email-btn-disabled-color) !important;
+}
+/***********************************************************************************
+************************************************************************************
+ 设置中心 - 帐号设置 end
+************************************************************************************
+************************************************************************************/
+
+
+
+/***********************************************************************************
+************************************************************************************
+ 设置中心 - 通用设置 start
+************************************************************************************
+************************************************************************************/
+.tl-rtc-app-right-setting-content{
+ height: 100%;
+ padding: 5px 10px;
+}
+
+.tl-rtc-app-right-setting-content-normal{
+ overflow-y: auto;
+ height: calc(100% - 55px);
+}
+
+.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block{
+ padding: 10px;
+}
+
+.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-title{
+ font-size: 13px;
+ font-weight: bold;
+ user-select: none;
+ padding-left: 10px;
+}
+
+.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-content{
+ padding: 10px;
+ background: var(--skin-setting-content-block-background);
+ border-radius: 4px;
+ margin-top: 10px;
+}
+
+.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-content
+.tl-rtc-app-right-setting-content-normal-block-item{
+ display: flex;
+ flex-wrap: nowrap;
+ flex-direction: row;
+ justify-content: space-between;
+ align-items: center;
+ padding: 10px 5px;
+ border-bottom: 1px solid var(--skin-body-border-color);
+ line-height: 25px;
+}
+
+.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-content
+.tl-rtc-app-right-setting-content-normal-block-item-title{
+ width: 40%;
+ user-select: none;
+}
+
+.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-item-oper{
+ width: 60%;
+ text-align: right;
+}
+
+.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-item-oper input{
+ height: 33px;
+ border-top-left-radius: 4px;
+ border-bottom-left-radius: 4px;
+ font-size: 12px;
+}
+
+.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-item-oper
+.layui-badge{
+ height: 20px;
+ line-height: 20px;
+ cursor: pointer;
+ padding: 0 15px;
+ transition: all 0.2s;
+ background-color: var(--skin-setting-content-block-badge-background);
+ color: var(--skin-setting-content-block-badge-color);
+}
+
+.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-item-oper
+.layui-badge-active{
+ background-color: var(--skin-setting-content-block-badge-hover-background) !important;
+ color: var(--skin-setting-content-block-badge-hover-color);
+}
+
+.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-item-oper
+.layui-badge:hover{
+ background-color: var(--skin-setting-content-block-badge-hover-background) !important;
+ color: var(--skin-setting-content-block-badge-hover-color);
+}
+
+.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-item-oper
+button{
+ height: 33px;
+}
+/***********************************************************************************
+************************************************************************************
+ 设置中心 - 通用设置 end
+************************************************************************************
+************************************************************************************/
+
+
+
+/***********************************************************************************
+************************************************************************************
+ 设置中心 - 其他设置 start
+************************************************************************************
+************************************************************************************/
+.tl-rtc-app-right-setting-content-other{
+ overflow-y: auto;
+ height: calc(100% - 55px);
+}
+
+.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block{
+ padding: 10px;
+}
+
+.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-title{
+ font-size: 13px;
+ font-weight: bold;
+ user-select: none;
+ padding-left: 10px;
+}
+
+.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-content{
+ padding: 10px;
+ background: var(--skin-setting-content-block-background);
+ border-radius: 4px;
+ margin-top: 10px;
+}
+
+.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-content
+.tl-rtc-app-right-setting-content-other-block-item{
+ display: flex;
+ flex-wrap: nowrap;
+ flex-direction: row;
+ justify-content: space-between;
+ align-items: center;
+ padding: 10px 5px;
+ border-bottom: 1px solid var(--skin-body-border-color);
+ line-height: 25px;
+}
+
+.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-content
+.tl-rtc-app-right-setting-content-other-block-item-title{
+ width: 40%;
+ user-select: none;
+}
+
+.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-item-oper{
+ width: 60%;
+ text-align: right;
+}
+
+.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-content
+.tl-rtc-app-right-setting-content-other-block-item:last-child{
+ border-bottom: 0px;
+}
+
+.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-item-oper
+.layui-badge{
+ height: 20px;
+ line-height: 20px;
+ cursor: pointer;
+ padding: 0 15px;
+ transition: all 0.2s;
+ background-color: var(--skin-setting-content-block-badge-background);
+ color: var(--skin-setting-content-block-badge-color);
+}
+
+.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-item-oper
+.layui-badge-active{
+ background-color: var(--skin-setting-content-block-badge-hover-background) !important;
+ color: var(--skin-setting-content-block-badge-hover-color);
+}
+
+.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-item-oper
+.layui-badge:hover{
+ background-color: var(--skin-setting-content-block-badge-hover-background) !important;
+ color: var(--skin-setting-content-block-badge-hover-color);
+}
+
+.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-item-oper
+button{
+ height: 33px;
+}
+
+.tl-rtc-app-right-setting-content-other #customWss{
+ height: 33px;
+ border-radius: 2px;
+ background: var(--skin-setting-top-search-input-background);
+ color: var(--skin-setting-top-search-input-color);
+ font-size: 13px;
+ letter-spacing: 1px;
+ border-width: 1px;
+ border-color: var(--skin-body-border-color);
+}
+
+/***********************************************************************************
+************************************************************************************
+ 设置中心 - 其他设置 end
+************************************************************************************
+************************************************************************************/
+
+
+
+
+/***********************************************************************************
+************************************************************************************
+ 弹窗 - 用户信息 start
+************************************************************************************
+************************************************************************************/
+.tl-rtc-app-user-info-popup{
+ padding: 3px;
+ width: calc(100% - 6px);
+ height: calc(100% - 6px);
+}
+
+.tl-rtc-app-layer-user-info-popup{
+ background: var(--skin-body-background) !important;
+ color: var(--skin-body-color) !important;
+}
+
+.tl-rtc-app-layer-user-info-popup .layui-layer-title{
+ color: var(--skin-body-color) !important;
+ border-bottom: 1px solid var(--skin-body-border-color) !important;
+ border-radius: 6px;
+}
+
+.tl-rtc-app-user-info-popup-footer button{
+ color: var(--skin-body-color);
+}
+
+.tl-rtc-app-user-info-popup-footer button:hover{
+ color: var(--skin-body-color);
+}
+
+.tl-rtc-app-user-info-popup-header{
+ display: flex;
+ flex-direction: row;
+ justify-content: flex-start;
+ align-items: center;
+ padding: 10px;
+ border-bottom: 1px solid var(--skin-body-border-color);
+}
+
+.tl-rtc-app-user-info-popup-header-mobile{
+ display: flex;
+ flex-direction: row;
+ justify-content: flex-start;
+ align-items: center;
+ padding: 10px;
+ border-bottom: 1px solid var(--skin-body-border-color);
+}
+
+.tl-rtc-app-user-info-popup-header-avatar{
+ padding-right: 10px;
+}
+
+.tl-rtc-app-user-info-popup-header-avatar img{
+ width: 50px;
+ height: 50px;
+}
+
+.tl-rtc-app-user-info-popup-content{
+ padding: 10px;
+ height: 90px;
+ overflow-y: scroll;
+}
+
+.tl-rtc-app-user-info-popup-content-mobile{
+ padding: 20px;
+ overflow-y: scroll;
+}
+
+.tl-rtc-app-user-info-popup-content-item{
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ justify-content: flex-start;
+ padding: 5px;
+}
+
+.tl-rtc-app-user-info-popup-content-item-mobile{
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ justify-content: flex-start;
+ padding: 10px 5px;
+}
+
+.tl-rtc-app-user-info-popup-content-item-title{
+ padding-right: 10px;
+}
+
+.tl-rtc-app-user-info-popup-footer{
+ position: absolute;
+ display: flex;
+ flex-direction: row;
+ justify-content: space-evenly;
+ align-items: center;
+ padding: 10px;
+ bottom: 0;
+ width: calc(100% - 26px);
+}
+
+.tl-rtc-app-user-info-popup-footer-mobile{
+ position: absolute;
+ display: flex;
+ flex-direction: row;
+ justify-content: space-evenly;
+ align-items: center;
+ padding: 10px;
+ bottom: 15px;
+ width: calc(100% - 26px);
+}
+
+.tl-rtc-app-user-info-popup-footer button {
+ border-radius: 4px;
+}
+/***********************************************************************************
+************************************************************************************
+ 弹窗 - 用户信息 end
+************************************************************************************
+************************************************************************************/
\ No newline at end of file
diff --git a/web-v2-res/image/404.png b/web-v2-res/image/404.png
new file mode 100644
index 0000000..3be04d5
Binary files /dev/null and b/web-v2-res/image/404.png differ
diff --git a/web-v2-res/image/default-avatar.png b/web-v2-res/image/default-avatar.png
new file mode 100644
index 0000000..837274c
Binary files /dev/null and b/web-v2-res/image/default-avatar.png differ
diff --git a/web-v2-res/image/friend-default-avatar.png b/web-v2-res/image/friend-default-avatar.png
new file mode 100644
index 0000000..d5e270a
Binary files /dev/null and b/web-v2-res/image/friend-default-avatar.png differ
diff --git a/web-v2-res/image/group-default-avatar.png b/web-v2-res/image/group-default-avatar.png
new file mode 100644
index 0000000..596ea68
Binary files /dev/null and b/web-v2-res/image/group-default-avatar.png differ
diff --git a/web-v2-res/image/qq-group-qrcode.png b/web-v2-res/image/qq-group-qrcode.png
new file mode 100644
index 0000000..f71ea6c
Binary files /dev/null and b/web-v2-res/image/qq-group-qrcode.png differ
diff --git a/web-v2-res/image/qrcode.jpeg b/web-v2-res/image/qrcode.jpeg
new file mode 100644
index 0000000..2b792ee
Binary files /dev/null and b/web-v2-res/image/qrcode.jpeg differ
diff --git a/web-v2-res/image/tl-open-source-icon.png b/web-v2-res/image/tl-open-source-icon.png
new file mode 100644
index 0000000..36760ae
Binary files /dev/null and b/web-v2-res/image/tl-open-source-icon.png differ
diff --git a/web-v2-res/image/tl-open-source-logo.png b/web-v2-res/image/tl-open-source-logo.png
new file mode 100644
index 0000000..a0bd86b
Binary files /dev/null and b/web-v2-res/image/tl-open-source-logo.png differ
diff --git a/web-v2-res/image/tlrtcapp-logo.svg b/web-v2-res/image/tlrtcapp-logo.svg
new file mode 100644
index 0000000..bb2e772
--- /dev/null
+++ b/web-v2-res/image/tlrtcapp-logo.svg
@@ -0,0 +1,146 @@
+
+
diff --git a/web-v2-res/index.html b/web-v2-res/index.html
new file mode 100644
index 0000000..12eca5a
--- /dev/null
+++ b/web-v2-res/index.html
@@ -0,0 +1,187 @@
+
+
+
+
+
+
+
+ tl-rtc-app
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/web-v2-res/js/basic/comm.js b/web-v2-res/js/basic/comm.js
new file mode 100644
index 0000000..61e58fa
--- /dev/null
+++ b/web-v2-res/js/basic/comm.js
@@ -0,0 +1,1087 @@
+(function () {
+ const tl_rtc_app_comm = {
+ randomId: function () {
+ let s = [];
+ let hexDigits = "0123456789abcdef";
+ for (let i = 0; i < 36; i++) {
+ s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
+ }
+ s[14] = "4";
+ s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
+ s[8] = s[13] = s[18] = s[23] = "-";
+ return s.join("")
+ },
+ addUrlHashParams: function (obj) {
+ let redirect = window.location.protocol + "//" + window.location.host + "#"
+ let oldObj = this.getRequestHashArgsObj();
+ obj = Object.assign(oldObj, obj);
+ for (let key in obj) {
+ redirect += key + "=" + encodeURIComponent(obj[key]) + "&";
+ }
+ return redirect;
+ },
+ getRequestHashArgsObj: function () {
+ let query = decodeURIComponent(window.location.hash.substring(1));
+ let args = query.split("&");
+ let obj = {};
+ for (let i = 0; i < args.length; i++) {
+ let pair = args[i].split("=");
+ const key = pair[0];
+ const val = pair[1];
+ if (key) {
+ obj[key] = decodeURIComponent(val)
+ }
+ }
+ return obj;
+ },
+ getRequestHashArgs: function (key) {
+ let query = decodeURIComponent(window.location.hash.substring(1));
+ let args = query.split("&");
+ for (let i = 0; i < args.length; i++) {
+ let pair = args[i].split("=");
+ if (pair[0] === key) {
+ return pair[1];
+ }
+ }
+ return "";
+ },
+ /**
+ * 是否包含中文
+ * @param {*} str
+ * @returns
+ */
+ containChinese: function (str) {
+ return /[\u4E00-\u9FA5\uF900-\uFA2D]/.test(str);
+ },
+ /**
+ * 是否包含数字
+ * @param {*} str
+ * @returns
+ */
+ containNumber: function (str) {
+ return /^[0-9]+.?[0-9]*$/.test(str);
+ },
+ /**
+ * 是否包含字母
+ * @param {*} str
+ * @returns
+ */
+ containSymbol: function (str) {
+ return new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>《》/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]").test(str)
+ },
+ /**
+ * 是否是邮箱
+ * @param {*} str
+ * @returns
+ */
+ isEmail: function (str) {
+ return /^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$/.test(str);
+ },
+ /**
+ * 屏幕是否是横向
+ * @returns
+ */
+ isLandscape: function () {
+ return window.innerWidth > window.innerHeight;
+ },
+ /**
+ * 屏幕是否是竖项
+ * @returns
+ */
+ isPortrait: function () {
+ return !this.isLandscape()
+ },
+ /**
+ * 转义
+ * @param {*} str
+ * @returns
+ */
+ escapeStr: function (str) {
+ const entityMap = {
+ '&': '&',
+ '<': '<',
+ '>': '>',
+ '"': '"',
+ "'": ''',
+ '/': '/',
+ '`': '`',
+ '=': '='
+ };
+ const encodedMap = {
+ '%': '%25',
+ '!': '%21',
+ "'": '%27',
+ '(': '%28',
+ ')': '%29',
+ '*': '%2A',
+ '-': '%2D',
+ '.': '%2E',
+ '_': '%5F',
+ '~': '%7E'
+ };
+ return String(str).replace(/[&<>"'`=\/%!'()*\-._~]/g, function (s) {
+ return entityMap[s] || encodedMap[s] || '';
+ });
+ },
+ /**
+ * 反转义
+ * @param {*} str
+ * @returns
+ */
+ unescapeStr: function (str) {
+ const entityMap = {
+ '&': '&',
+ '<': '<',
+ '>': '>',
+ '"': '"',
+ ''': "'",
+ '/': '/',
+ '`': '`',
+ '=': '='
+ };
+ const encodedMap = {
+ '%25': '%',
+ '%21': '!',
+ '%27': "'",
+ '%28': '(',
+ '%29': ')',
+ '%2A': '*',
+ '%2D': '-',
+ '%2E': '.',
+ '%5F': '_',
+ '%7E': '~'
+ };
+ return String(str).replace(/&(amp|lt|gt|quot|#39|#x2F|#x60|#x3D);|%(25|21|27|28|29|2A|2D|2E|5F|7E)/g, function (s) {
+ return entityMap[s] || encodedMap[s] || '';
+ });
+ },
+ /**
+ * 获取网络状态
+ * @returns
+ */
+ getNetWorkState: function () {
+ let ua = navigator.userAgent;
+ let networkStr = ua.match(/NetType\/\w+/) ? ua.match(/NetType\/\w+/)[0] : 'NetType/other';
+ networkStr = networkStr.toLowerCase().replace('nettype/', '');
+ if (!['wifi', '5g', '3g', '4g', '2g', '3gnet', 'slow-2g'].includes(networkStr)) {
+ if (navigator.connection) {
+ networkStr = navigator.connection.effectiveType
+ }
+ }
+ switch (networkStr) {
+ case 'wifi':
+ return 'wifi';
+ case '5g':
+ return '5g';
+ case '4g':
+ return '4g';
+ case '3g' || '3gnet':
+ return '3g';
+ case '2g' || 'slow-2g':
+ return '2g';
+ default:
+ return 'unknow';
+ }
+ },
+ /**
+ * 震动效果
+ * @param {*} id
+ * @param {*} top
+ * @param {*} left
+ */
+ shaking: function (id, top, left) {
+ let a = ['maringTop', 'marginLeft'], b = 0;
+ window.shakingId = setInterval(function () {
+ document.getElementById(id).style[a[b % 2]] = (b++) % 4 < 2 ? (top + "px") : (left + "px");
+ if (b > 15) { clearInterval(window.shakingId); b = 0 }
+ }, 32)
+ },
+ /**
+ * 加载js
+ * @param {*} url
+ * @param {*} callback
+ */
+ loadJS: function (url, callback) {
+ let script = document.createElement('script'),
+ fn = callback || function () { };
+ script.type = 'text/javascript';
+ //IE
+ if (script.readyState) {
+ script.onreadystatechange = function () {
+ if (script.readyState == 'loaded' || script.readyState == 'complete') {
+ script.onreadystatechange = null;
+ fn();
+ }
+ };
+ } else {
+ //其他浏览器
+ script.onload = function () {
+ fn();
+ };
+ }
+ script.src = url;
+ document.getElementsByTagName('head')[0].appendChild(script);
+ },
+ /**
+ * 是否是移动端
+ * @returns
+ */
+ isMobile: function () {
+ return window.innerWidth < 840;
+ },
+ /**
+ * 键盘事件
+ * @param {*} dom
+ * @param {*} callback
+ */
+ keydownCallback: function (dom, callback) {
+ if (dom) {
+ dom.onkeydown = function (e) {
+ if (e.defaultPrevented) {
+ return;
+ }
+
+ if (e.shiftKey) {
+ // shift+enter 换行
+ return;
+ } else if (e.key !== undefined) {
+ if (e.key === "Enter") {
+ // enter键执行
+ callback && callback()
+ e.preventDefault();
+ }
+ } else if (e.keyCode !== undefined) {
+ if (e.keyCode === 13) {
+ // enter键执行
+ callback && callback()
+ e.preventDefault();
+ }
+ }
+ }
+ }
+ },
+ /**
+ * 获取媒体流
+ * @param {*} defaultConstraints
+ * @returns
+ */
+ getMediaPlay: function (defaultConstraints) {
+ let media = null;
+ if (window.navigator.mediaDevices && window.navigator.mediaDevices.getUserMedia) {
+ media = window.navigator.mediaDevices.getUserMedia(defaultConstraints);
+ } else if (window.navigator.mozGetUserMedia) {
+ media = navigator.mozGetUserMedia(defaultConstraints);
+ } else if (window.navigator.getUserMedia) {
+ media = window.navigator.getUserMedia(defaultConstraints)
+ } else if (window.navigator.webkitGetUserMedia) {
+ media = new Promise((resolve, reject) => {
+ window.navigator.webkitGetUserMedia(defaultConstraints, (res) => {
+ resolve(res)
+ }, (err) => {
+ reject(err)
+ });
+ })
+ }
+ return media
+ },
+ /**
+ * 获取设备列表
+ * @returns
+ */
+ getDeviceList: async function () {
+ const list = await new Promise((resolve, reject) => {
+ navigator.mediaDevices && navigator.mediaDevices.enumerateDevices().then((devices) => {
+ const videoDeviceList = devices.filter((device) => device.kind === "videoinput" && device.deviceId !== "default");
+ const audioDeviceList = devices.filter((device) => device.kind === "audioinput" && device.deviceId !== "default");
+ const loudspeakerDeviceList = devices.filter((device) => device.kind === "audiooutput" && device.deviceId !== "default");
+ resolve({
+ videoDeviceList, audioDeviceList, loudspeakerDeviceList
+ })
+ }, (err) => {
+ console.error("getDeviceList error !")
+ reject({
+ videoDeviceList: [], audioDeviceList: [], loudspeakerDeviceList: []
+ })
+ });
+ })
+
+ return list
+ },
+ /**
+ * 是否支持webrtc
+ * @param {*} rtcConfig
+ * @returns
+ */
+ supposeWebrtc: function (rtcConfig) {
+ try {
+ let testRTCPeerConnection = window.RTCPeerConnection || window.webkitRTCPeerConnection ||
+ window.mozRTCPeerConnection || window.RTCIceGatherer;
+ if (testRTCPeerConnection) {
+ new RTCPeerConnection(rtcConfig);
+ return true;
+ } else {
+ return false;
+ }
+ } catch (error) {
+ console.error("浏览器不支持webrtc")
+ return false;
+ }
+ },
+ /**
+ * 复制文本
+ * @param {*} id
+ * @param {*} content
+ * @param {*} callback
+ * @param {*} closeDomIds
+ * @returns
+ */
+ copyTxt: function (id, content, callback, closeDomIds) {
+ const dom = document.querySelector("#" + id)
+ if(!dom){
+ return;
+ }
+ dom.setAttribute("data-clipboard-text", content);
+ let clipboard = new ClipboardJS('#' + id);
+ clipboard.on('success', function (e) {
+ e.clearSelection();
+ callback && callback();
+ });
+
+ dom.addEventListener('click', function () {
+ setTimeout(() => {
+ clipboard.destroy();
+ }, 1000);
+ })
+
+ if(closeDomIds && closeDomIds.length > 0){
+ closeDomIds.forEach((closeId) => {
+ const closeDom = document.querySelector("#" + closeId)
+ if(closeDom){
+ closeDom.addEventListener('click', function () {
+ clipboard.destroy();
+ })
+ }
+ })
+ }
+
+ return clipboard;
+ },
+ /**
+ * 是否是wss
+ * @param {*} wss
+ * @returns
+ */
+ isWssHost: function(wss){
+ const websocketRegex = /^(wss?:\/\/)((\d{1,3}(\.\d{1,3}){3})|(([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}))(:(\d+))?(\/[^\s]*)?$/;
+
+ if (typeof wss !== 'string') return false;
+
+ if (!websocketRegex.test(wss)) return false;
+
+ const ipMatch = wss.match(/^(wss?:\/\/)(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/);
+ if (ipMatch) {
+ const ipSegments = ipMatch[2].split('.').map(Number);
+ return ipSegments.every(segment => segment >= 0 && segment <= 255);
+ }
+
+ return true;
+ },
+ /**
+ * 生成二维码
+ * @param {*} id
+ * @param {*} content
+ * @param {*} colorDark
+ * @param {*} colorLight
+ */
+ getQrCode: function (id, content, colorDark = '#000000', colorLight = '#ffffff') {
+ const qrcode = new QRCode(id, {
+ text: content, // 二维码内容
+ width: 300,
+ height: 300,
+ colorDark: colorDark, // 码的颜色
+ colorLight: colorLight, // 码的背景色
+ correctLevel: QRCode.CorrectLevel.H // 高度容错
+ });
+ },
+ /**
+ * 保存二维码
+ * @param {*} id
+ */
+ saveQrCode: function (id) {
+ const canvas = document.querySelector('#' + id + ' canvas');
+ const image = canvas.toDataURL("image/png").replace("image/png", "image/octet-stream");
+ const a = document.createElement('a');
+ a.href = image;
+ a.download = 'qrcode.png';
+ a.click();
+ },
+ /**
+ * 颜色转换
+ * @param {*} hex
+ * @returns
+ */
+ hexToRgb: function (hex) {
+ let shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
+ hex = hex.replace(shorthandRegex, function (m, r, g, b) {
+ return r + r + g + g + b + b;
+ });
+
+ let result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
+ return result ? {
+ r: parseInt(result[1], 16),
+ g: parseInt(result[2], 16),
+ b: parseInt(result[3], 16)
+ } : null;
+ },
+ /**
+ * 颜色转换
+ * @param {*} r
+ * @param {*} g
+ * @param {*} b
+ * @returns
+ */
+ rgbToHex: function (r, g, b) {
+ return "#" + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1).toUpperCase();
+ },
+ /**
+ * 颜色转换
+ * @param {*} hex
+ * @param {*} amount
+ * @returns
+ */
+ lightenColor: function (hex, amount) {
+ var rgb = this.hexToRgb(hex);
+ if (!rgb) {
+ return hex
+ }
+ var lightenedRgb = {
+ r: Math.min(255, rgb.r + amount),
+ g: Math.min(255, rgb.g + amount),
+ b: Math.min(255, rgb.b + amount)
+ };
+ return this.rgbToHex(lightenedRgb.r, lightenedRgb.g, lightenedRgb.b);
+ },
+ /**
+ * 颜色转换
+ * @param {*} hex
+ * @returns
+ */
+ invertColor: function(hex) {
+ // 去掉前面的 #
+ hex = hex.replace(/^#/, '');
+
+ // 如果是3位数,则转为6位数
+ if (hex.length === 3) {
+ hex = hex.split('').map(function (hex) {
+ return hex + hex;
+ }).join('');
+ }
+
+ // 将16进制颜色转换为RGB
+ let r = parseInt(hex.substring(0, 2), 16);
+ let g = parseInt(hex.substring(2, 4), 16);
+ let b = parseInt(hex.substring(4, 6), 16);
+
+ // 计算对等的颜色 (255 - 当前颜色值)
+ let invertedR = (255 - r).toString(16).padStart(2, '0');
+ let invertedG = (255 - g).toString(16).padStart(2, '0');
+ let invertedB = (255 - b).toString(16).padStart(2, '0');
+
+ // 返回对等颜色的十六进制值
+ return `#${invertedR}${invertedG}${invertedB}`;
+ },
+ /**
+ * 是否是浅色
+ * @param {*} hex
+ * @returns
+ */
+ isLightColor(hex) {
+ // 去掉前面的 #
+ hex = hex.replace(/^#/, '');
+
+ // 如果是3位数,则转为6位数
+ if (hex.length === 3) {
+ hex = hex.split('').map(function (hex) {
+ return hex + hex;
+ }).join('');
+ }
+
+ // 将16进制颜色转换为RGB
+ let r = parseInt(hex.substring(0, 2), 16);
+ let g = parseInt(hex.substring(2, 4), 16);
+ let b = parseInt(hex.substring(4, 6), 16);
+
+ // 计算相对亮度 (Luminance),使用加权公式:0.299 * R + 0.587 * G + 0.114 * B
+ let luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255;
+
+ // 根据亮度判断是深色还是浅色
+ // 一般来说,亮度 > 0.5 被视为浅色
+ return luminance > 0.5;
+ },
+ /**
+ * 鼠标移入提示
+ * @param {*} param0
+ */
+ mouseEnterTips: function ({
+ id, text, time=1000, color='#50393d', position='top'
+ }) {
+ if(position === 'top'){
+ position = 1;
+ }else if(position === 'right'){
+ position = 2;
+ }else if(position === 'bottom'){
+ position = 3;
+ }else if(position === 'left'){
+ position = 4;
+ }else{
+ position = 1;
+ }
+ layer.tips(text, '#'+id, {
+ skin: 'tl-rtc-app-layer-tips',
+ tips: [ position, color ],
+ time: time
+ });
+ },
+ /**
+ * 鼠标移出提示
+ * @param {*} id
+ * @param {*} text
+ */
+ mouseLeaveTips: function (id, text) {
+ layer.closeAll('tips');
+ },
+ /**
+ * 滚动到底部
+ * @param {*} dom
+ * @param {*} duration
+ * @param {*} timeout
+ */
+ scrollToBottom: function (dom, duration, timeout) {
+ let start = dom.scrollTop;
+ let end = dom.scrollHeight - dom.clientHeight;
+ let change = end - start;
+ let currentTime = 0;
+ let increment = 20;
+
+ function easeOutCubic(t) {
+ return (t = t / 1 - 1) * t * t + 1;
+ }
+
+ function animateScroll() {
+ currentTime += increment;
+ let val = easeOutCubic(currentTime / duration) * change + start;
+ dom.scrollTop = val;
+ if (currentTime < duration) {
+ requestAnimationFrame(animateScroll);
+ }
+ }
+
+ setTimeout(() => {
+ animateScroll()
+ }, timeout);
+ },
+ /**
+ * margin移动到隐藏
+ * @param {*} dom
+ * @param {*} duration
+ * @param {*} timeout
+ * @param {*} callback
+ */
+ marginToHidden: function (dom, duration, timeout, callback) {
+ let change = 100;
+ let currentTime = 0;
+ let increment = 20;
+
+ function easeOutCubic(t) {
+ return (t = t / 1 - 1) * t * t + 1;
+ }
+
+ function animateMargin() {
+ currentTime += increment;
+ let val = easeOutCubic(currentTime / duration) * change;
+ dom.style.marginLeft = val + "%";
+ if (val === 100) {
+ callback()
+ }
+ if (currentTime < duration) {
+ requestAnimationFrame(animateMargin);
+ }
+ }
+
+ setTimeout(() => {
+ animateMargin()
+ }, timeout);
+ },
+ /**
+ * 向左移动
+ * @param {*} dom
+ * @param {*} change
+ * @param {*} duration
+ * @param {*} timeout
+ */
+ translateXToLeft: function (dom, change, duration, timeout) {
+ let currentTime = 0;
+ let increment = 20;
+
+ function easeOutCubic(t) {
+ return (t = t / 1 - 1) * t * t + 1;
+ }
+
+ function animateMargin() {
+ currentTime += increment;
+ let val = easeOutCubic(currentTime / duration) * change;
+ dom.style.transform = `translateX(-${val}px)`;
+ if (currentTime < duration) {
+ requestAnimationFrame(animateMargin);
+ }
+ }
+
+ setTimeout(() => {
+ animateMargin()
+ }, timeout);
+ },
+ /**
+ * 向右移动
+ * @param {*} dom
+ * @param {*} duration
+ * @param {*} timeout
+ */
+ translateXToRight: function (dom, duration, timeout) {
+ let change = 100;
+ let currentTime = 0;
+ let increment = 20;
+
+ function easeOutCubic(t) {
+ return (t = t / 1 - 1) * t * t + 1;
+ }
+
+ function animateMargin() {
+ currentTime += increment;
+ let val = easeOutCubic(currentTime / duration) * change;
+ dom.style.transform = `translateX(${val}px)`;
+ if (currentTime < duration) {
+ requestAnimationFrame(animateMargin);
+ }
+ }
+
+ setTimeout(() => {
+ animateMargin()
+ }, timeout);
+ },
+ /**
+ * 生成随机昵称
+ * @param {*} language
+ * @returns
+ */
+ genNickName: function (language) {
+ let { adjectives, nouns } = language === 'zh' ? this.nameDatabase() : this.nameDatabaseEn()
+ let adjectiveIndex = Math.floor(Math.random() * adjectives.length);
+ let nounIndex = Math.floor(Math.random() * nouns.length);
+ let adjective = adjectives[adjectiveIndex];
+ let noun = nouns[nounIndex];
+ let randomNum = Math.floor(Math.random() * 1000);
+ return adjective + noun + randomNum;
+ },
+ nameDatabase: function () {
+ const adjectives = [
+
+ ];
+ const nouns = [
+
+ ]
+ return { adjectives, nouns }
+ },
+ nameDatabaseEn: function () {
+ const adjectives = [
+
+ ];
+
+ const nouns = [
+
+ ];
+
+ return { adjectives, nouns }
+ },
+ /**
+ * 获取元素的属性值
+ * @param {*} propertys
+ * @returns
+ */
+ getPropertyValues: function (propertys) {
+ result = {}
+ propertys.forEach(item => {
+ result[item.key] = window.getComputedStyle(document.documentElement).getPropertyValue('--' + item.value);
+ })
+
+ return result;
+ },
+ /**
+ * 设置元素的属性值
+ * @param {*} fileExt
+ * @returns
+ */
+ getFileIcon: function (fileExt) {
+ let icon = ''
+ if ([
+ 'jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp', 'svg', 'ico',
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-tupian'
+ } else if ([
+ 'mp3', 'wav', 'wma', 'ogg', 'ape', 'flac', 'aac', 'amr',
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-music'
+ } else if ([
+ 'mp4', 'avi', 'mov', 'wmv', 'rmvb', 'flv', '3gp', 'mkv',
+ ].includes(fileExt)) {
+ icon = "#tl-rtc-app-icon-shipin1"
+ } else if ([
+ 'doc', 'docx'
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-Word'
+ } else if ([
+ 'xls', 'xlsx',
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-Excel'
+ } else if ([
+ 'ppt', 'pptx'
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-PPT'
+ } else if ([
+ 'pdf'
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-Pdf'
+ } else if ([
+ 'txt',
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-txt1'
+ } else if ([
+ 'zip', 'rar', '7z', 'tgz', 'gz', 'bz2', 'xz', 'lz',
+ 'lzma', 'jar', 'war', 'ear', 'tar'
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-yasuobao'
+ } else if ([
+ 'sql', 'db', 'dbf', 'mdb', 'accdb', 'sqlit', 'db3', 'db2', 'db1',
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-shujuku'
+ } else if ([
+ 'exe',
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-exe'
+ } else if ([
+ 'dll'
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-dll'
+ } else if ([
+ 'py',
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-python'
+ } else if ([
+ 'conf', 'ini', 'properties', 'cfg', 'config', 'env', 'envrc',
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-CONF'
+ } else if ([
+ 'js'
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-javascript'
+ } else if ([
+ 'csv'
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-csv'
+ } else if ([
+ 'xml'
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-xmlwenjian'
+ } else if ([
+ 'sh'
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-shell'
+ } else if ([
+ 'php'
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-PHP'
+ } else if ([
+ 'cpp', 'c'
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-cpp'
+ } else if ([
+ 'iso'
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-iso'
+ } else if ([
+ 'html', 'htm', 'html5'
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-HTML'
+ } else if ([
+ 'css', 'scss', 'less', 'styl'
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-css-copy'
+ } else if ([
+ 'c#'
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-Cyuyan'
+ } else if ([
+ 'json'
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-json'
+ } else if ([
+ 'java'
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-java'
+ } else if ([
+ 'apk'
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-APK'
+ } else if ([
+ 'dir'
+ ].includes(fileExt)) {
+ icon = '#tl-rtc-app-icon-a-wenjianjiawenjian'
+ } else {
+ icon = '#tl-rtc-app-icon-weizhiwenjian'
+ }
+
+ return icon
+ },
+ /**
+ * 获取文件大小
+ * @param {*} fileSize
+ * @returns
+ */
+ getFileSize: function (fileSize) {
+ let size = 0
+ let unit = 'B'
+ if (fileSize > 1024 * 1024 * 1024) {
+ size = (fileSize / 1024 / 1024 / 1024).toFixed(2)
+ unit = 'GB'
+ } else if (fileSize > 1024 * 1024) {
+ size = (fileSize / 1024 / 1024).toFixed(2)
+ unit = 'MB'
+ } else if (fileSize > 1024) {
+ size = (fileSize / 1024).toFixed(2)
+ unit = 'KB'
+ } else {
+ size = fileSize
+ }
+ return size + unit
+ },
+ /**
+ * 创建一个防抖函数
+ * @param {Function} func - 需要防抖处理的函数
+ * @param {number} wait - 等待的毫秒数
+ * @param {boolean} immediate - 是否立即执行
+ * @returns {Function} - 防抖处理后的函数
+ */
+ debounce: function (func, wait, immediate) {
+ let timeout;
+
+ return function () {
+ const context = this;
+ const args = arguments;
+
+ const later = function () {
+ timeout = null;
+ if (!immediate) func.apply(context, args);
+ };
+
+ const callNow = immediate && !timeout;
+
+ clearTimeout(timeout);
+ timeout = setTimeout(later, wait);
+
+ if (callNow) func.apply(context, args);
+ };
+ },
+ /**
+ * 创建一个节流函数
+ * @param {Function} func - 需要节流处理的函数
+ * @param {number} limit - 限制的时间,单位为毫秒
+ * @returns {Function} - 节流处理后的函数
+ */
+ throttle: function (func, limit) {
+ let lastFunc;
+ let lastRan;
+ return function () {
+ const context = this;
+ const args = arguments;
+ if (!lastRan) {
+ func.apply(context, args);
+ lastRan = Date.now();
+ } else {
+ clearTimeout(lastFunc);
+ lastFunc = setTimeout(function () {
+ if ((Date.now() - lastRan) >= limit) {
+ func.apply(context, args);
+ lastRan = Date.now();
+ }
+ }, limit - (Date.now() - lastRan));
+ }
+ };
+ },
+ /**
+ * 使用CSS动画实现曲线移动
+ * @param {string} sourceId 源元素ID
+ * @param {string} targetId 目标元素ID
+ */
+ animateCurveMove: function({
+ sourceId, targetId
+ }) {
+ // 获取元素
+ const source = document.getElementById(sourceId);
+ const target = document.getElementById(targetId);
+
+ if (!source || !target) {
+ console.error('源或目标元素不存在');
+ return;
+ }
+
+ // 获取起始元素和目标元素的位置信息
+ const sourceRect = source.getBoundingClientRect();
+ const targetRect = target.getBoundingClientRect();
+
+ console.log(sourceRect, targetRect);
+
+ // 创建动画元素
+ const animationElem = document.createElement('div');
+ animationElem.classList.add('tl-rtc-app-p2p-channel-animation');
+ animationElem.style.left = sourceRect.left + 'px';
+ animationElem.style.top = sourceRect.top + 'px';
+ document.body.appendChild(animationElem);
+
+ // 计算X和Y方向的位移
+ const deltaX = targetRect.left - sourceRect.left;
+ const deltaY = targetRect.top - sourceRect.top;
+
+ // 使用CSS变量来传递位移
+ animationElem.style.setProperty('--deltaX', `${deltaX}px`);
+ animationElem.style.setProperty('--deltaY', `${deltaY}px`);
+
+ // 应用动画
+ animationElem.style.animation = 'curveMove 0.6s ease forwards';
+
+ // 动画结束后移除动画元素
+ animationElem.addEventListener('animationend', () => {
+ animationElem.remove();
+ });
+ },
+ /**
+ * 下载文件并重命名
+ * @param {*} url
+ * @param {*} fileName
+ */
+ downloadUrlFileAndRename: async function (url, fileName) {
+ return new Promise((resolve, reject) => {
+ const xhr = new XMLHttpRequest();
+ xhr.open('GET', url, true);
+ xhr.responseType = 'blob';
+
+ xhr.onload = function () {
+ if (xhr.status === 200) {
+ const blob = xhr.response;
+ const link = document.createElement('a');
+ const objectUrl = window.URL.createObjectURL(blob);
+
+ link.href = objectUrl;
+ link.download = fileName;
+ document.body.appendChild(link);
+ link.click();
+
+ window.URL.revokeObjectURL(objectUrl);
+ document.body.removeChild(link);
+
+ resolve('下载成功');
+ } else {
+ reject(xhr.statusText);
+ console.error('Download failed:', xhr.statusText);
+ }
+ };
+
+ xhr.onerror = function (e) {
+ reject(e);
+ };
+
+ xhr.send();
+ })
+ },
+ /**
+ * 检测是否是合法的手机号/电话号码
+ * @param {*} mobile
+ * @returns
+ */
+ checkIsMobile: function(mobile){
+ return /^1[3456789]\d{9}$/.test(mobile)
+ },
+ /**
+ * 检测是否是合法的邮箱
+ * @param {*} email
+ * @returns
+ */
+ checkIsEmail: function(email){
+ return /^(\w-*\.*)+@(\w-?)+(\.\w{2,})+$/.test(email)
+ },
+ /**
+ * 获取时间范围
+ * @returns
+ */
+ getTimeRanges: function () {
+ const now = new Date();
+
+ const formatTime = (date, isStart = true) => {
+ const y = date.getFullYear();
+ const m = String(date.getMonth() + 1).padStart(2, '0');
+ const d = String(date.getDate()).padStart(2, '0');
+ return isStart ? `${y}-${m}-${d} 00:00:00` : `${y}-${m}-${d} 23:59:59`;
+ };
+
+ // Today
+ const todayStart = formatTime(now, true);
+ const todayEnd = formatTime(now, false);
+
+ // Yesterday
+ const yesterday = new Date(now);
+ yesterday.setDate(now.getDate() - 1);
+ const yesterdayStart = formatTime(yesterday, true);
+ const yesterdayEnd = formatTime(yesterday, false);
+
+ // Last 7 days
+ const lastWeek = new Date(now);
+ lastWeek.setDate(now.getDate() - 7);
+ const lastWeekStart = formatTime(lastWeek, true);
+ const lastWeekEnd = formatTime(now, false);
+
+ // Last 30 days
+ const lastMonth = new Date(now);
+ lastMonth.setDate(now.getDate() - 30);
+ const lastMonthStart = formatTime(lastMonth, true);
+ const lastMonthEnd = formatTime(now, false);
+
+ return {
+ today: { startTime: todayStart, endTime: todayEnd },
+ yesterday: { startTime: yesterdayStart, endTime: yesterdayEnd },
+ lastWeek: { startTime: lastWeekStart, endTime: lastWeekEnd },
+ lastMonth: { startTime: lastMonthStart, endTime: lastMonthEnd }
+ };
+ },
+ /**
+ * 检查请求参数内容是否包含攻击或非法字符
+ * @param {*} params
+ * @returns
+ */
+ checkRequestParams: function(params){
+ const reg = /<|>|&|;|'|"/g;
+ for (const key in params) {
+ if(reg.test(key)){
+ return false;
+ }
+ const value = params[key];
+ if(value && value instanceof Object){
+ return this.checkRequestParams(value);
+ }
+ if (reg.test(params[key])) {
+ return false;
+ }
+ }
+ return true;
+ },
+ }
+ window.tl_rtc_app_comm = tl_rtc_app_comm;
+})()
+
diff --git a/web-v2-res/js/basic/lang.js b/web-v2-res/js/basic/lang.js
new file mode 100644
index 0000000..bfa535a
--- /dev/null
+++ b/web-v2-res/js/basic/lang.js
@@ -0,0 +1,20 @@
+// --------------------------- //
+// -- lang.js -- //
+// -- version : 1.0.0 -- //
+// -- date : 2023-06-22 -- //
+// --------------------------- //
+
+//以内容val输出 key:value形式输出数据,并且注意key不能和之前存在重复, 并且key的长度控制在四个单词以内, val=请输入密码房间密码, key=英文翻译简称, value=英文翻译详情
+
+(function(){
+ const tl_rtc_app_lang = {
+ "en": {
+
+ },
+ "zh": {
+
+ }
+ }
+
+ window.tl_rtc_app_lang = tl_rtc_app_lang;
+})()
\ No newline at end of file
diff --git a/web-v2-res/js/component/api.js b/web-v2-res/js/component/api.js
new file mode 100644
index 0000000..7b28b78
--- /dev/null
+++ b/web-v2-res/js/component/api.js
@@ -0,0 +1,150 @@
+const tl_rtc_app_api = new Vue({
+ el: '#tl-rtc-app-api',
+ data : function(){
+ return {
+ defaultOpenCache : true,
+ detaultCacheTime : 2 * 1000
+ }
+ },
+ methods: {
+ /**
+ * 设置缓存数据
+ * @param {*} key
+ * @param {*} value
+ */
+ setData: async function({
+ key, value
+ }){
+ await this.emitSubModuleEvent({
+ event: 'component-cache-set',
+ data: {
+ key,
+ value,
+ }
+ })
+ },
+ /**
+ * 获取缓存数据
+ * @param {*} key
+ */
+ getData: async function({
+ key
+ }){
+ return await this.emitSubModuleEvent({
+ event: 'component-cache-get',
+ data: {
+ key,
+ }
+ })
+ },
+ /**
+ * 批量删除缓存数据
+ * @param {*} subKey
+ * @returns
+ */
+ delData: async function({
+ subKeys
+ }){
+ return await this.emitSubModuleEvent({
+ event: 'component-cache-del',
+ data: {
+ subKeys,
+ }
+ })
+ },
+ /**
+ * 发送请求
+ * @param {String} url 请求地址
+ * @param {String} method 请求方法
+ * @param {Object} params get请求参数
+ * @param {Boolean} useCache 是否使用缓存
+ * @param {int} cacheTime 缓存时间
+ * @param {Function} callback 回调函数
+ * @param {Object} data post/put请求数据
+ * @param {Object} headers 请求头
+ * @param {Array} delCaches 需要删除的缓存
+ * @param {String} responseType 响应类型
+ * @returns
+ */
+ tlRequest: async function({
+ url,
+ method,
+ params = {},
+ data = {},
+ headers = {},
+ useCache = false,
+ cacheTime = this.detaultCacheTime,
+ callback,
+ delCaches = [],
+ responseType
+ }){
+ const token = window.localStorage.getItem('token');
+
+ let cacheKey = token + ":" + window.location.origin + ":" + url;
+ if(params){
+ cacheKey = cacheKey + ":" + JSON.stringify(params);
+ }
+
+ if(data){
+ cacheKey = cacheKey + ":" + JSON.stringify(data);
+ }
+
+ if(delCaches.length > 0){
+ await this.delData({
+ subKeys : delCaches
+ });
+ }
+
+ if(useCache && this.defaultOpenCache){
+ const cacheData = await this.getData({
+ key : cacheKey
+ });
+
+ if(cacheData && Date.now() < cacheData.expireTime){
+ console.info(url + ':cached')
+ callback && callback(cacheData)
+ return cacheData
+ }
+
+ }
+
+ let options = {
+ url,
+ method,
+ params,
+ data,
+ headers
+ }
+
+ if(responseType){
+ options.responseType = responseType;
+ }
+
+ let response = await axios(options)
+
+ if(useCache && this.defaultOpenCache){
+ await this.setData({
+ key : cacheKey,
+ value : {
+ data: response.data,
+ expireTime: Date.now() + cacheTime,
+ timestamp : Date.now()
+ }
+ });
+ }
+
+ callback && callback(response)
+
+ return response;
+ }
+ },
+ mounted: async function() {
+
+ },
+ created(){
+ // 请求封装
+ window.subModule.$on('component-api-request', this.tlRequest)
+ }
+})
+
+window.tl_rtc_app_api = tl_rtc_app_api;
\ No newline at end of file
diff --git a/web-v2-res/js/component/bfp.js b/web-v2-res/js/component/bfp.js
new file mode 100644
index 0000000..79e12c5
--- /dev/null
+++ b/web-v2-res/js/component/bfp.js
@@ -0,0 +1,320 @@
+const tl_rtc_app_bfp = new Vue({
+ el: '#tl-rtc-app-bfp',
+ data: function () {
+ return {
+ data: {},
+ userFingerprintGenerateCount: 2,
+ bfpKey: 'tl_bfp',
+ }
+ },
+ methods: {
+ /**
+ * 生成用户确定唯一指纹
+ * @param {Function} callback
+ * @returns {Promise}
+ */
+ generateUserFingerprint: async function (callback) {
+ let that = this;
+ let resultList = [];
+ for (let i = 0; i < this.userFingerprintGenerateCount; i++) {
+ await that.generateFingerprint(function (fingerprint) {
+ resultList.push(fingerprint);
+ });
+ }
+ // 获取出现次数最多的指纹
+ let maxCount = 0;
+ let maxCountFingerprint = '';
+ let countMap = {};
+ resultList.forEach((fingerprint) => {
+ if (countMap[fingerprint]) {
+ countMap[fingerprint]++;
+ } else {
+ countMap[fingerprint] = 1;
+ }
+ if (countMap[fingerprint] > maxCount) {
+ maxCount = countMap[fingerprint];
+ maxCountFingerprint = fingerprint;
+ }
+ });
+
+ return callback && callback({
+ // 出现次数最多的指纹
+ maxCountFingerprint,
+ //所有指纹
+ resultList,
+ // 所有指纹去重
+ fingerprintSetList: Array.from(new Set(resultList))
+ });
+ },
+ /**
+ * 生成指纹
+ * @param {Function} callback
+ * @returns {Promise}
+ */
+ generateFingerprint: async function (callback) {
+ await this.addCanvasFingerprint();
+ this.addWebGLFingerprint();
+ await this.addAudioFingerprint();
+ this.addFontsFingerprint();
+ this.addPluginsFingerprint();
+ // await this.addWebRTCFingerprint(); // 添加WebRTC指纹
+ this.addBrowserInfo(); // 添加浏览器信息
+ this.addDeviceInfo(); // 添加设备信息
+ this.addScreenInfo(); // 添加屏幕信息
+ const fingerprint = this.hashData(JSON.stringify(this.data));
+ this.data = {}
+ return callback && callback(fingerprint);
+ },
+ /**
+ * 添加Canvas指纹
+ */
+ addCanvasFingerprint: async function () {
+ const canvas = document.createElement('canvas');
+ const ctx = canvas.getContext('2d');
+ ctx.textBaseline = 'top';
+ ctx.font = '16px Arial';
+ ctx.textBaseline = 'alphabetic';
+ ctx.fillStyle = '#f60';
+ ctx.fillRect(125, 1, 62, 20);
+ ctx.fillStyle = '#069';
+ ctx.fillText('BrowserFingerprint', 2, 15);
+ ctx.fillStyle = 'rgba(102, 204, 0, 0.7)';
+ ctx.fillText('BrowserFingerprint', 4, 17);
+ this.data.canvas = canvas.toDataURL();
+ },
+ /**
+ * 添加WebGL指纹
+ */
+ addWebGLFingerprint: function () {
+ try {
+ const canvas = document.createElement('canvas');
+ const gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl');
+ const ext = gl.getExtension('WEBGL_debug_renderer_info');
+ const vendor = gl.getParameter(ext.UNMASKED_VENDOR_WEBGL);
+ const renderer = gl.getParameter(ext.UNMASKED_RENDERER_WEBGL);
+ this.data.webgl = { vendor, renderer };
+ } catch (e) {
+ this.data.webgl = 'Not Supported';
+ }
+ },
+ /**
+ * 添加音频指纹
+ */
+ addAudioFingerprint: async function () {
+ try {
+ const audioCtx = new (window.AudioContext || window.webkitAudioContext)();
+ const oscillator = audioCtx.createOscillator();
+ const analyser = audioCtx.createAnalyser();
+ const gain = audioCtx.createGain();
+ const scriptProcessor = audioCtx.createScriptProcessor(4096, 1, 1);
+
+ oscillator.type = 'triangle';
+ oscillator.frequency.setValueAtTime(10000, audioCtx.currentTime);
+ gain.gain.setValueAtTime(0, audioCtx.currentTime);
+
+ oscillator.connect(analyser);
+ analyser.connect(scriptProcessor);
+ scriptProcessor.connect(gain);
+ gain.connect(audioCtx.destination);
+
+ oscillator.start(0);
+ scriptProcessor.onaudioprocess = (event) => {
+ const output = event.outputBuffer.getChannelData(0);
+ const hash = output.reduce((acc, val) => acc + Math.abs(val), 0);
+ this.data.audio = hash.toString();
+ oscillator.stop();
+ };
+ } catch (e) {
+ this.data.audio = 'Not Supported';
+ }
+ },
+ /**
+ * 添加字体指纹
+ */
+ addFontsFingerprint: function () {
+ const fonts = ['Arial', 'Verdana', 'Times New Roman', 'Courier New', 'Georgia'];
+ const detectedFonts = [];
+ const canvas = document.createElement('canvas');
+ const ctx = canvas.getContext('2d');
+ ctx.font = '72px monospace';
+ const baselineSize = ctx.measureText('abcdefghijklmnopqrstuvwxyz0123456789').width;
+
+ fonts.forEach((font) => {
+ ctx.font = `72px ${font}, monospace`;
+ const width = ctx.measureText('abcdefghijklmnopqrstuvwxyz0123456789').width;
+ if (width !== baselineSize) detectedFonts.push(font);
+ });
+
+ this.data.fonts = detectedFonts;
+ },
+ /**
+ * 添加插件指纹
+ */
+ addPluginsFingerprint: function () {
+ const plugins = [];
+ for (let i = 0; i < navigator.plugins.length; i++) {
+ plugins.push(navigator.plugins[i].name);
+ }
+ this.data.plugins = plugins;
+ },
+ /**
+ * 添加WebRTC指纹
+ */
+ addWebRTCFingerprint: async function () {
+ return new Promise((resolve) => {
+ const peerConnection = new RTCPeerConnection({
+ iceServers: [{ urls: 'stun:stun.l.google.com:19302' }],
+ });
+ peerConnection.createDataChannel('');
+ peerConnection.createOffer().then((offer) => peerConnection.setLocalDescription(offer));
+
+ peerConnection.onicecandidate = (event) => {
+ if (event && event.candidate && event.candidate.candidate) {
+ const candidate = event.candidate.candidate;
+ const ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3})/;
+ const ipMatch = candidate.match(ipRegex);
+ if (ipMatch) {
+ this.data.webrtc = ipMatch[1];
+ peerConnection.close();
+ resolve();
+ }
+ }
+ };
+ });
+ },
+ /**
+ * 添加浏览器信息
+ */
+ addBrowserInfo: function () {
+ const userAgent = navigator.userAgent;
+ const platform = navigator.platform;
+ const languages = navigator.languages.join(',');
+ this.data.browserInfo = { userAgent, platform, languages };
+ },
+ /**
+ * 添加设备信息
+ */
+ addDeviceInfo: function () {
+ const deviceMemory = navigator.deviceMemory || 'Unknown';
+ const hardwareConcurrency = navigator.hardwareConcurrency || 'Unknown';
+ this.data.deviceInfo = { deviceMemory, hardwareConcurrency };
+ },
+ /**
+ * 添加屏幕信息
+ */
+ addScreenInfo: function () {
+ const screenWidth = window.screen.width;
+ const screenHeight = window.screen.height;
+ const colorDepth = window.screen.colorDepth;
+ this.data.screenInfo = { screenWidth, screenHeight, colorDepth };
+ },
+ /**
+ * 哈希数据
+ * @param {string} data
+ * @returns {string}
+ */
+ hashData: function (data) {
+ let hash = 0;
+ for (let i = 0; i < data.length; i++) {
+ const char = data.charCodeAt(i);
+ hash = (hash << 5) - hash + char;
+ hash |= 0;
+ }
+ return hash.toString();
+ },
+ DAS: function (arr) {
+ let dArr = [3,5,10,13,16,17,21]
+ let aArr = [2,4,7,9,15,19,20]
+ let sArr = [1,6,8,11,12,14,18]
+
+ let dScore = 0
+ let aScore = 0
+ let sScore = 0
+ dArr.forEach(index => {
+ dScore += parseInt(arr[index-1])
+ })
+ aArr.forEach(index => {
+ aScore += parseInt(arr[index-1])
+ })
+ sArr.forEach(index => {
+ sScore += parseInt(arr[index-1])
+ })
+
+ let dRes = [[0, 9], [10, 13], [14, 20], [21, 27, [28, 100]]]
+ let aRes = [[0, 7], [8, 9], [10, 14], [15, 19], [20, 100]]
+ let sRes = [[0, 14], [15, 18], [19, 25], [26, 33], [34, 100]]
+
+ dScore *= 2
+ aScore *= 2
+ sScore *= 2
+
+ let dLevel = 0
+ let aLevel = 0
+ let sLevel = 0
+
+ for(let i = 0; i < dRes.length; i++){
+ let item = dRes[i]
+ if(dScore <= item[1]){
+ dLevel = i;
+ break
+ }
+ }
+
+ for(let i = 0; i < aRes.length; i++){
+ let item = aRes[i]
+ if(aScore <= item[1]){
+ aLevel = i;
+ break
+ }
+ }
+
+ for(let i = 0; i < sRes.length; i++){
+ let item = sRes[i]
+ if(sScore <= item[1]){
+ sLevel = i;
+ break
+ }
+ }
+
+ let levelRes = {0: '正常', 1: '轻度', 2: '中度', 3: '重度', 4: '特重度'}
+
+ console.log("抑郁评估分数: ", dScore, ", 抑郁等级: ", levelRes[dLevel])
+ console.log("焦虑评估分数: ", aScore, ", 焦虑等级: ", levelRes[aLevel])
+ console.log("压力评估分数: ", sScore, ", 压力等级: ", levelRes[sLevel])
+ },
+ init: async function () {
+ let that = this;
+ // 生成用户bfp
+ await this.generateUserFingerprint(
+ (
+ {maxCountFingerprint, resultList, fingerprintSetList}
+ ) => {
+ window.localStorage.setItem(that.bfpKey, JSON.stringify({
+ mc: maxCountFingerprint,
+ arl: resultList,
+ fps: fingerprintSetList
+ }));
+ }
+ )
+ },
+ /**
+ * 获取用户bfp
+ * @param {Function} callback
+ */
+ getUserFingerprint: function ({
+ callback
+ }) {
+ const bfpData = window.localStorage.getItem(this.bfpKey) || '{}';
+ callback && callback(JSON.parse(bfpData));
+ }
+ },
+ mounted: async function() {
+ await this.init()
+ },
+ created(){
+ // 获取用户bfp
+ window.subModule.$on('component-bfp-info', this.getUserFingerprint)
+ }
+})
+
+window.tl_rtc_app_bfp = tl_rtc_app_bfp
\ No newline at end of file
diff --git a/web-v2-res/js/component/cache.js b/web-v2-res/js/component/cache.js
new file mode 100644
index 0000000..6ace2a2
--- /dev/null
+++ b/web-v2-res/js/component/cache.js
@@ -0,0 +1,150 @@
+const tl_rtc_app_cache = new Vue({
+ el: '#tl-rtc-app-cache',
+ data : function(){
+ return {
+ defaultOpenCache : true,
+ detaultCacheTime : 2 * 1000
+ }
+ },
+ methods: {
+ /**
+ * 是否支持localStorage/IndexedDB/WebSQL
+ */
+ isSupported: function(){
+ const localforage = window.localforage;
+
+ return localforage.supports(localforage.INDEXEDDB) ||
+ localforage.supports(localforage.LOCALSTORAGE) ||
+ localforage.supports(localforage.WEBSQL);
+ },
+ /**
+ * 设置缓存数据
+ * @param {*} key
+ * @param {*} value
+ * @param {*} callback
+ */
+ setData: async function({
+ key, value, callback
+ }){
+ if(!this.isSupported()){
+ callback && callback(false);
+ return null;
+ }
+ return await new Promise((resolve, reject) => {
+ window.localforage.setItem(key, value).then(function(){
+ callback && callback(true);
+ }).catch(function(err){
+ callback && callback(false);
+ reject(err);
+ });
+ })
+ },
+ /**
+ * 获取缓存数据
+ * @param {*} key
+ * @param {*} callback
+ */
+ getData: async function({
+ key, callback
+ }){
+ if(!this.isSupported()){
+ callback && callback();
+ return null;
+ }
+ return await new Promise((resolve, reject) => {
+ window.localforage.getItem(key).then(function(value){
+ callback && callback(value);
+ }).catch(function(err){
+ callback && callback(err);
+ reject(err);
+ });
+ })
+ },
+ /**
+ * 检查删除过期缓存数据
+ */
+ expireData: async function(){
+ let that = this;
+
+ if(this.defaultOpenCache == false){
+ return null;
+ }
+
+ if(!this.isSupported()){
+ return null;
+ }
+
+ let isLogin = await this.emitSubModuleEvent({
+ event: 'sub-module-core-is-login'
+ })
+
+ if(!isLogin){
+ return null;
+ }
+
+ // console.log('exec expireData...')
+
+ return await new Promise((resolve, reject) => {
+ window.localforage.iterate(function(value, key, iterationNumber) {
+ if(value && !value.expireTime){
+ return
+ }
+ if(Date.now() > value.expireTime){
+ window.localforage.removeItem(key)
+ }
+ })
+ })
+ },
+ /**
+ * 批量删除缓存数据
+ * @param {*} subKey
+ * @param {*} callback
+ * @returns
+ */
+ delData: async function({
+ subKeys, callback
+ }){
+ if(!this.isSupported()){
+ callback && callback(false);
+ return null;
+ }
+
+ await new Promise((resolve, reject) => {
+ window.localforage.iterate(function(value, key, iterationNumber) {
+ for (let i = 0; i < subKeys.length; i++) {
+ if(!key.toString().includes(subKeys[i])){
+ return
+ }
+ window.localforage.removeItem(key)
+ }
+ })
+ })
+
+ callback && callback(true);
+
+ return true;
+ },
+ },
+ mounted: async function() {
+ let that = this
+ // 清理缓存
+ setInterval(async () => {
+ if(window.location.href.includes('.html')){
+ return
+ }
+ await that.expireData()
+ }, 1000 * 5);
+ },
+ created(){
+ // 设置缓存
+ window.subModule.$on('component-cache-set', this.setData);
+
+ // 获取缓存
+ window.subModule.$on('component-cache-get', this.getData);
+
+ // 删除缓存
+ window.subModule.$on('component-cache-del', this.delData);
+ }
+})
+
+window.tl_rtc_app_api = tl_rtc_app_api;
\ No newline at end of file
diff --git a/web-v2-res/js/component/menu.js b/web-v2-res/js/component/menu.js
new file mode 100644
index 0000000..a5ffb71
--- /dev/null
+++ b/web-v2-res/js/component/menu.js
@@ -0,0 +1,887 @@
+const tl_rtc_app_menu = new Vue({
+ el: '#tl-rtc-app-menu',
+ data: function () {
+ return {
+ menuList: [],
+ registerList: [],
+ isMobile: window.tl_rtc_app_comm.isMobile()
+ }
+ },
+ methods: {
+ /**
+ * 刷新页面
+ */
+ addRefreshMenu: function () {
+ let that = this
+ this.menuList.push({
+ id: "refresh",
+ title: `
+
+ 刷新页面
+ `,
+ handler: function(data){
+ window.location.reload();
+ }
+ })
+ },
+ /**
+ * 添加快捷面板菜单
+ */
+ addQuickPanelMenu: function () {
+ let that = this
+ this.menuList.push({
+ id: 'quickPanel',
+ title: `
+
+ 快捷面板
+ `,
+ handler: function(data){
+ that.emitSubModuleEvent({
+ event: 'component-popup-add-quick-oper-panel',
+ })
+ }
+ })
+ },
+ /**
+ * 添加个人中心菜单
+ */
+ addPersonalMenu: function () {
+ let that = this
+ // this.menuList.push({
+ // id: 'personal',
+ // title: `
+ //
+ // 个人中心
+ // `,
+ // handler: function(data){
+ // that.popWarningMsg('暂未开放')
+ // }
+ // })
+ },
+ /**
+ * 添加主题菜单
+ */
+ addThemeMenu: function () {
+ let that = this
+ this.menuList.push({
+ id: 'theme',
+ title: `
+
+ 切换主题
+ `,
+ handler: function(data){
+ that.emitSubModuleEvent({
+ event: 'sub-module-setting-skin-change-global',
+ })
+ }
+ })
+ },
+ /**
+ * 添加设置菜单
+ */
+ addSettingMenu: function () {
+ let that = this
+ // this.menuList.push({
+ // id: 'setting',
+ // title: `
+ //
+ // 更多设置
+ // `,
+ // handler: function(data){
+ // that.popWarningMsg('暂未开放')
+ // }
+ // })
+ },
+ /**
+ * 添加退出频道菜单
+ */
+ addExitChannelMenu: function () {
+ let that = this
+ this.menuList.push({
+ id: 'exitChannel',
+ title: `
+
+ 退出聊天
+ `,
+ handler: function(data){
+ let channelId = data.extra.channelId
+ console.log('退出 : ', channelId)
+ that.emitSubModuleEvent({
+ event: 'sub-module-channel-content-exit-group-channel-quick',
+ data: {
+ channelId: channelId
+ }
+ })
+ }
+ })
+ },
+ /**
+ * 添加删除好友菜单
+ */
+ addDeleteFriendMenu: function () {
+ let that = this
+ this.menuList.push({
+ id: 'deleteFriend',
+ title: `
+
+ 删除好友
+ `,
+ handler: function(data){
+ let channelId = data.extra.channelId
+ console.log('删除好友 : ', channelId)
+ that.emitSubModuleEvent({
+ event: 'sub-module-channel-content-delete-friend-quick',
+ data: {
+ channelId: channelId
+ }
+ })
+ }
+ })
+ },
+ /**
+ * 添加置顶频道菜单
+ */
+ addTopChannelMenu: function () {
+ let that = this
+ this.menuList.push({
+ id: 'topChannel',
+ title: `
+
+ 置顶聊天
+ `,
+ handler: function(data){
+ let channelId = data.extra.channelId
+ console.log('置顶 : ', channelId)
+ that.emitSubModuleEvent({
+ event: 'sub-module-channel-content-update-channel-top-quick',
+ data: {
+ channelId: channelId,
+ channelTop: true
+ }
+ })
+ }
+ })
+ },
+ /**
+ * 添加取消置顶频道菜单
+ */
+ addUnTopChannelMenu: function () {
+ let that = this
+ this.menuList.push({
+ id: 'unTopChannel',
+ title: `
+
+ 取消置顶聊天
+ `,
+ handler: function(data){
+ let channelId = data.extra.channelId
+ console.log('取消置顶 : ', channelId)
+ that.emitSubModuleEvent({
+ event: 'sub-module-channel-content-update-channel-top-quick',
+ data: {
+ channelId: channelId,
+ channelTop: false
+ }
+ })
+ }
+ })
+ },
+ /**
+ * 添加消息免打扰菜单
+ */
+ addHiddenNotifyMenu: function () {
+ let that = this
+ // this.menuList.push({
+ // id: 'hiddenNotify',
+ // title: `
+ //
+ // 消息免打扰
+ // `,
+ // handler: function(data){
+ // let channelId = data.extra.channelId
+ // console.log('消息免打扰 : ', channelId)
+ // that.popWarningMsg('暂未开放')
+ // }
+ // })
+ },
+ /**
+ * 添加邀请好友菜单
+ */
+ addInviteFriendMenu: function () {
+ let that = this
+ this.menuList.push({
+ id: 'inviteFriend',
+ title: `
+
+ 邀请好友
+ `,
+ handler: function(data){
+ let channelId = data.extra.channelId
+ console.log('邀请好友 : ', channelId)
+ that.emitSubModuleEvent({
+ event: 'sub-module-channel-content-invite-user-quick',
+ data: {
+ channelId: channelId,
+ }
+ })
+ }
+ })
+ },
+ /**
+ * 添加复制频道号菜单
+ */
+ addCopyChannelIdMenu: function () {
+ let that = this
+ this.menuList.push({
+ id: 'copyChannelId',
+ title: `
+
+ 复制聊天号
+ `,
+ ready: function(data){
+ let channelId = data.extra.channelId
+ let clipboard = window.tl_rtc_app_comm.copyTxt('copyChannelId', channelId, function(){
+ that.popSuccessMsg('复制成功')
+ }, [
+ 'dropdownShade'
+ ])
+
+ return clipboard
+ },
+ })
+ },
+ /**
+ * 添加标记未读菜单
+ */
+ addMarkUnreadMenu: function () {
+ let that = this
+ // this.menuList.push({
+ // id: 'markUnread',
+ // title: `
+ //
+ // 标记未读
+ // `,
+ // handler: function(data){
+ // let channelId = data.extra.channelId
+ // console.log('标记未读 : ', channelId)
+ // that.popWarningMsg('暂未开放')
+ // }
+ // })
+ },
+ /**
+ * 添加不显示频道菜单
+ */
+ addHiddenChannel: function () {
+ let that = this
+ // this.menuList.push({
+ // id: 'hiddenChannel',
+ // title: `
+ //
+ // 不显示聊天
+ // `,
+ // handler: function(data){
+ // that.popWarningMsg('暂未开放')
+ // }
+ // })
+ },
+ /**
+ * 添加清除历史记录菜单
+ */
+ addClearHistoryMenu: function () {
+ let that = this
+ this.menuList.push({
+ id: 'clearHistory',
+ title: `
+
+ 清除聊天记录
+ `,
+ handler: function(data){
+ let channelId = data.extra.channelId
+ that.emitSubModuleEvent({
+ event: 'sub-module-channel-list-clear-channel-message',
+ data: {
+ channelId: channelId
+ }
+ })
+ }
+ })
+ },
+ /**
+ * 添加回复消息菜单
+ */
+ addReplyMessageMenu: function () {
+ let that = this
+ this.menuList.push({
+ id: 'replyMessage',
+ title: `
+
+ 回复消息
+ `,
+ handler: function(data){
+ let messageId = data.extra.id
+ that.emitSubModuleEvent({
+ event: 'sub-module-channel-content-quick-reply-message',
+ data: {
+ messageId: messageId,
+ messageType: data.extra.type,
+ messageContent: data.extra.message,
+ }
+ })
+ }
+ })
+ },
+ /**
+ * 添加删除消息菜单
+ */
+ addDeleteMessageMenu: function () {
+ let that = this
+ this.menuList.push({
+ id: 'deleteMessage',
+ title: `
+
+ 删除消息
+ `,
+ handler: function(data){
+ let messageId = data.extra.id
+ console.log('删除 : ', messageId)
+ that.popWarningMsg('暂未开放')
+ }
+ })
+ },
+ /**
+ * 添加撤回消息菜单
+ */
+ addRollbackMessageMenu: function () {
+ let that = this
+ this.menuList.push({
+ id: 'rollbackMessage',
+ title: `
+
+ 撤回消息
+ `,
+ handler: function(data){
+ let messageId = data.extra.id
+ let messageType = data.extra.type
+ that.emitSubModuleEvent({
+ event: 'sub-module-channel-content-quick-rollback-message',
+ data: {
+ messageId: messageId,
+ messageType: messageType,
+ }
+ })
+ }
+ })
+ },
+ /**
+ * 添加复制消息菜单
+ */
+ addCopyMessageMenu: function () {
+ let that = this
+ this.menuList.push({
+ id: 'copyMessage',
+ title: `
+
+ 复制消息
+ `,
+ ready: function(data){
+ let message = data.extra.message
+ let clipboard = window.tl_rtc_app_comm.copyTxt('copyMessage', message, function(){
+ that.popSuccessMsg('复制成功')
+ }, [
+ 'dropdownShade'
+ ])
+
+ return clipboard
+ },
+ handler: function(data){
+
+ }
+ })
+ },
+ /**
+ * 添加切换帐号菜单
+ */
+ addSwitchAccountMenu: function () {
+ let that = this
+ // this.menuList.push({
+ // id: 'switchAccount',
+ // title: `
+ //
+ // 切换帐号
+ // `,
+ // handler: function(data){
+ // that.popWarningMsg('暂未开放')
+ // },
+ // child: [{
+ // id: '帐号1',
+ // title: `
+ //
+ // 帐号1
+ // `,
+ // handler: function(){
+ // that.popWarningMsg('暂未开放')
+ // }
+ // }]
+ // })
+ },
+ /**
+ * 添加退出帐号菜单
+ */
+ addLogoutMenu: function () {
+ let that = this
+ this.menuList.push({
+ id: "logout",
+ title: `
+
+ 退出帐号
+ `,
+ handler: async function(data){
+ let isLogin = await that.emitSubModuleEvent({
+ event: 'sub-module-core-is-login'
+ })
+
+ if(!isLogin){
+ that.popWarningMsg('请先登录')
+ return
+ }
+
+ that.emitSubModuleEvent({
+ event: 'sub-module-sidebar-logout',
+ })
+ }
+ })
+ },
+ /**
+ * 初始化菜单
+ * @param {*} elemId
+ * @param {*} className
+ * @param {*} show
+ * @param {*} align
+ * @param {*} menuDataInfo
+ * @param {*} trigger
+ * @returns
+ */
+ initMenu: function ({elemId, className, show, align, trigger, menuDataInfo}) {
+ let that = this
+
+ window.dropdown.render({
+ elem: elemId,
+ trigger: trigger,
+ align: align,
+ className: className,
+ show: show,
+ data: JSON.parse(JSON.stringify(menuDataInfo)),
+ click: function (data, othis) {
+ that.emitSubModuleEvent({
+ event: 'component-shade-destroy',
+ data: {
+ id: 'dropdownShade'
+ }
+ })
+
+ const clickItem = that.menuList.find(item => item.id === data.id)
+ if(!clickItem){
+ return
+ }
+ clickItem.handler && clickItem.handler(data);
+ },
+ ready: function (elemPanel, elem) {
+ that.emitSubModuleEvent({
+ event: 'component-shade-show',
+ data: {
+ id: 'dropdownShade',
+ className: 'tl-rtc-app-right-dropdow-shade-content-body',
+ shadeListener: {
+ click: function(){
+ that.emitSubModuleEvent({
+ event: 'component-shade-destroy',
+ data: {
+ id: 'dropdownShade'
+ }
+ })
+ }
+ }
+ }
+ })
+
+ let data = $(this)[0].data
+ data.forEach(item => {
+ const clickItem = that.menuList.find(menuItem => menuItem.id === item.id)
+ if(!clickItem){
+ return
+ }
+ clickItem.ready && clickItem.ready(item)
+ })
+ },
+ close: function(elemPanel){
+ let data = $(this)[0].data
+ }
+ });
+ },
+ /**
+ * 获取菜单数据
+ * @param {*} menuIdList
+ * @param {*} extra
+ * @returns
+ */
+ getMenuData: function({
+ menuIdList, extra
+ }){
+ let resultMenuList = []
+
+ // 按照传入的idList索引排序
+ for (let i = 0; i < this.menuList.length; i++) {
+ let item = this.menuList[i];
+ if(menuIdList.indexOf(item.id) === -1){
+ continue
+ }
+ resultMenuList.push(item)
+ }
+
+ resultMenuList = resultMenuList.sort((a, b) => {
+ return menuIdList.indexOf(a.id) - menuIdList.indexOf(b.id)
+ })
+
+ // 传入额外数据
+ for (let i = 0; i < resultMenuList.length; i++) {
+ let item = resultMenuList[i];
+ item.extra = extra
+ }
+
+ return resultMenuList
+ },
+ /**
+ * 注册自定义菜单
+ * @param {*} elemId
+ * @param {*} eventList
+ * @param {*} menuIdList
+ * @param {*} extra
+ * @param {*} tapCallback
+ * @param {*} pressCallback
+ * @param {*} pressUpCallback
+ * @param {*} doubleTapCallback
+ * @param {*} panCallback
+ * @param {*} panedCallback
+ * @returns
+ */
+ registerCustomMenu: function({
+ eventList = [],
+ menuIdList,
+ elemId,
+ extra,
+ tapCallback,
+ pressCallback,
+ pressUpCallback,
+ doubleTapCallback,
+ panCallback,
+ panedCallback,
+ callback
+ }){
+ let that = this
+ const dom = document.querySelector(elemId)
+ if(!dom){
+ console.error('未找到节点', elemId)
+ callback && callback(false)
+ return
+ }
+
+ let hammer = new Hammer.Manager(dom)
+
+ if(eventList.includes('contextmenu')){
+ // 注册右键菜单
+ this.registerRightMenu({
+ menuIdList, elemId, extra, hammer
+ })
+ }
+ if (eventList.includes('tap')) {
+ // 注册点击事件
+ this.registerTapMenu({
+ menuIdList, elemId, extra, tapCallback, hammer
+ })
+ }
+ if (eventList.includes('doubletap')) {
+ // 注册双击菜单
+ this.registerDoubleTapMenu({
+ menuIdList, elemId, extra, doubleTapCallback, hammer
+ })
+ }
+ if (eventList.includes('press')) {
+ // 注册长按菜单
+ this.registerPressMenu({
+ menuIdList, elemId, extra, pressCallback, pressUpCallback, hammer
+ })
+ }
+ if (eventList.includes('pan')) {
+ // 注册滑动菜单
+ this.registerPanMenu({
+ menuIdList, elemId, extra, panCallback, panedCallback, panedCallback, hammer
+ })
+ }
+
+ callback && callback(true)
+ },
+ /**
+ * 注册右键菜单
+ * @param {*} elemId
+ * @param {*} menuIdList
+ * @param {*} extra
+ * @param {*} hammer
+ * @returns
+ */
+ registerRightMenu: function({
+ menuIdList, elemId, extra, hammer
+ }){
+ const eventType = 'contextmenu'
+ const exist = this.registerList.find(item => item.elemId === elemId && item.eventType === eventType)
+ if(exist && !this.isMobile){
+ // console.warn(elemId + '节点菜单'+eventType+'事件已注册', exist)
+ return
+ }
+
+ if(!exist){
+ this.registerList.push({
+ elemId: elemId,
+ eventType: eventType,
+ })
+ }
+
+ this.initMenu({
+ elemId: elemId,
+ className: 'custom-context-menu',
+ show: false,
+ align: 'left',
+ trigger: 'contextmenu',
+ menuDataInfo: this.getMenuData({menuIdList, extra})
+ })
+ },
+ /**
+ * 注册长按菜单
+ * @param {*} elemId
+ * @param {*} menuIdList
+ * @param {*} extra
+ * @param {*} pressCallback
+ * @param {*} pressUpCallback
+ * @param {*} hammer
+ * @returns
+ */
+ registerPressMenu: function({
+ menuIdList, elemId, extra, pressCallback, pressUpCallback, hammer
+ }){
+ let that = this
+ const eventType = 'press'
+ const exist = this.registerList.find(item => item.elemId === elemId && item.eventType === eventType)
+ if(exist && !this.isMobile){
+ // console.warn(elemId + '节点菜单'+eventType+'事件已注册', exist, document.querySelector(elemId))
+ return
+ }
+
+ if(!exist){
+ this.registerList.push({
+ elemId: elemId,
+ eventType: eventType
+ })
+ }
+
+ const press = new Hammer.Press({ time: 500 });
+ // 注册长按菜单
+ hammer.add( press );
+ // 长按
+ hammer.on('press', function(event) {
+ console.log('长按', event);
+ event.preventDefault();
+
+ that.initMenu({
+ elemId: elemId,
+ className: 'custom-context-menu',
+ show: true,
+ trigger: 'contextmenu',
+ menuDataInfo: that.getMenuData({menuIdList, extra})
+ })
+
+ // 修改定位为当前点击位置,计算大小不要超过屏幕
+ const pressDom = document.querySelector('.custom-context-menu')
+ if (pressDom) {
+ const x = event.center.x
+ const y = event.center.y
+ const width = pressDom.offsetWidth
+ const height = pressDom.offsetHeight
+ const windowWidth = window.innerWidth
+ const windowHeight = window.innerHeight
+
+ let left = x
+ let top = y
+ if (x + width > windowWidth) {
+ left = windowWidth - width
+ }
+ if (y + height > windowHeight) {
+ top = windowHeight - height
+ }
+
+ pressDom.style.left = left + 'px'
+ pressDom.style.top = top + 'px'
+ }
+
+ pressCallback && pressCallback()
+ });
+ // 长按松开
+ hammer.on('pressup', function() {
+ console.log('长按松开');
+ pressUpCallback && pressUpCallback()
+ });
+ },
+ /**
+ * 注册单击菜单
+ * @param {*} elemId
+ * @param {*} menuIdList
+ * @param {*} extra
+ * @param {*} tapCallback
+ * @param {*} hammer
+ * @returns
+ */
+ registerTapMenu: function({
+ menuIdList, elemId, extra, tapCallback, hammer
+ }){
+ // 单击
+ const singletap = new Hammer.Tap({ event: 'singletap' });
+ hammer.add( singletap );
+
+ hammer.on('singletap', function(event) {
+ console.log('单击', event);
+ tapCallback && tapCallback()
+ });
+ },
+ /**
+ * 注册双击菜单
+ * @param {*} elemId
+ * @param {*} menuIdList
+ * @param {*} extra
+ * @param {*} doubleTapCallback
+ * @param {*} hammer
+ * @returns
+ */
+ registerDoubleTapMenu: function({
+ menuIdList, elemId, extra, doubleTapCallback, hammer
+ }){
+ const doubletap = new Hammer.Tap({ event: 'doubletap', taps: 2 });
+ hammer.add( doubletap );
+
+ // 双击
+ hammer.on('doubletap', function(event) {
+ console.log('双击', event);
+ doubleTapCallback && doubleTapCallback()
+ });
+ },
+ /**
+ * 注册滑动菜单
+ * @param {*} elemId
+ * @param {*} menuIdList
+ * @param {*} extra
+ * @param {*} panCallback
+ * @param {*} panedCallback
+ * @param {*} dom
+ * @returns
+ */
+ registerPanMenu: function({
+ menuIdList, elemId, extra, panCallback, panedCallback, hammer
+ }){
+ const pan = new Hammer.Pan({ direction: Hammer.DIRECTION_HORIZONTAL });
+ hammer.add( pan );
+
+ // 滑动过程
+ hammer.on('pan', function(event) {
+ // 方向
+ const direction = event.offsetDirection;
+ // 距离
+ const distance = event.distance;
+ // console.log('滑动过程', direction);
+
+ panCallback && panCallback(direction, distance)
+ });
+
+ // 滑动结束
+ hammer.on('panend', function(event) {
+ // 方向
+ const direction = event.offsetDirection;
+ // 距离
+ const distance = event.distance;
+ // console.log('滑动结束', event);
+
+ panedCallback && panedCallback(direction, distance)
+ });
+ },
+ },
+ mounted() {
+ // 添加菜单项目
+ this.addRefreshMenu();
+ this.addQuickPanelMenu();
+ this.addPersonalMenu();
+ this.addThemeMenu();
+ this.addSettingMenu();
+ this.addExitChannelMenu();
+ this.addTopChannelMenu();
+ this.addHiddenNotifyMenu();
+ this.addInviteFriendMenu();
+ this.addCopyChannelIdMenu();
+ this.addMarkUnreadMenu();
+ this.addHiddenChannel();
+ this.addClearHistoryMenu();
+ this.addReplyMessageMenu();
+ this.addDeleteMessageMenu();
+ this.addRollbackMessageMenu();
+ this.addCopyMessageMenu();
+ this.addSwitchAccountMenu();
+ this.addLogoutMenu();
+ this.addUnTopChannelMenu();
+ this.addDeleteFriendMenu();
+ },
+ created(){
+ // 注册自定义菜单
+ window.subModule.$on('component-menu-register-custom', this.registerCustomMenu);
+ }
+})
+
+window.tl_rtc_app_menu = tl_rtc_app_menu;
\ No newline at end of file
diff --git a/web-v2-res/js/component/popup.js b/web-v2-res/js/component/popup.js
new file mode 100644
index 0000000..c328f55
--- /dev/null
+++ b/web-v2-res/js/component/popup.js
@@ -0,0 +1,855 @@
+const tl_rtc_app_popup = new Vue({
+ el: '#tl-rtc-app-popup',
+ data : function(){
+ let that = this
+ return {
+ popUpList: [], // 弹窗队列
+ inviteLayerIndex: -1, // 邀请弹窗index
+ isMobile: tl_rtc_app_comm.isMobile(),
+ quickOperList: [{
+ id: 'quickCreateChannel',
+ icon: 'tl-rtc-app-icon-chuangjianqunliao',
+ text: '快速创建群聊',
+ handler: function(){
+ that.emitSubModuleEvent({
+ event: 'sub-module-channel-top-quick-create-channel',
+ data: {
+ channelName: '快速创建频道'
+ }
+ })
+ }
+ },{
+ id: 'createCustomChannel',
+ icon: 'tl-rtc-app-icon-xiaoxi',
+ text: '创建群聊',
+ handler: function(){
+ that.emitSubModuleEvent({
+ event: 'sub-module-channel-top-create-custom-channel',
+ })
+ }
+ },{
+ id: 'searchAddUser',
+ icon: 'tl-rtc-app-icon-_detail_chest',
+ text: '搜索添加好友',
+ handler: function(){
+ that.emitSubModuleEvent({
+ event: 'sub-module-contact-top-search-user',
+ })
+ }
+ },{
+ id: 'openStandaloneWindow',
+ icon: 'tl-rtc-app-icon-daochu',
+ text: '独立窗口打开',
+ handler: async function(){
+ const top = (screen.availHeight - 500) / 2;
+ const left = (screen.availWidth - 700) / 2;
+
+ const {leftModule, rightModule} = await that.emitSubModuleEvent({
+ event: 'sub-module-core-get-module',
+ })
+
+ window.open(`/index.html#mode=standalone&lm=${leftModule}&rm=${rightModule}`, '_blank', 'resizable=no,location=no,width=500,height=700,top=' + top + ',left=' + left);
+ }
+ }]
+ }
+ },
+ methods: {
+ /**
+ * 添加弹窗
+ * @param {*} title
+ * @param {*} message
+ */
+ addPopUpMsg : function({
+ title, message, callback
+ }) {
+ this.popUpList.push({
+ title, message
+ });
+
+ callback && callback();
+ },
+ /**
+ * 处理弹窗信息
+ * @returns
+ */
+ startPopUpMsg : async function() {
+ let that = this;
+ let data = this.popUpList.shift();
+ let lengthLevel = {//渐进式弹悬浮时间
+ 2 : 1000, // 队列只有两个弹窗排队时, 弹窗悬停时间1800ms
+ 5 : 900,
+ 8 : 600,
+ 10 : 300,
+ 20 : 100
+ };
+ //轮训是否有弹窗排队中
+ if(!data){
+ await new Promise(resolve=>{
+ setTimeout(async ()=>{
+ await this.startPopUpMsg()
+ resolve()
+ }, 100);
+ })
+ return
+ }
+
+ //如果开启了系统弹窗 && 当前页面没有焦点
+ if(this.webMsgNotify && !document.hasFocus()){
+ //修改标签页title
+ let title = document.title;
+ let msg = data.title + " " + data.message;
+ let time = 0;
+ let timer = null;
+ timer = setInterval(() => {
+ time++;
+ if(time % 2 === 0){
+ document.title = msg;
+ }else{
+ document.title = title;
+ }
+ if(time > 10){
+ clearInterval(timer);
+ document.title = title;
+ }
+ }, 500);
+
+ //浏览器系统桌面消息通知
+ if(window.Notification && Notification.permission === 'granted'){
+ new Notification("tl-rtc-app通知" + data.title, {
+ body: data.message,
+ dir: 'auto',
+ icon: '/image/default-avatar.png'
+ })
+ }
+ }
+
+ let levelTime = 1800;
+ for(let len in lengthLevel){
+ if(len > this.popUpList.length){
+ levelTime = lengthLevel[len]
+ break;
+ }
+ }
+
+ let msgDom = document.createElement('div');
+ msgDom.setAttribute("class","tl-rtc-app-notification")
+ msgDom.style.opacity = 0;
+ msgDom.innerHTML =
+ '
' +
+ '
' +
+ '' +
+ '
' +
+ data.title +
+ '' +
+ this.popUpList.length > 0 ? '(' + this.popUpList.length + ')' : '' +
+ '' +
+ '
' +
+ '
'+ data.message +'
' +
+ '
'
+ ;
+ let msgDomContainer = document.getElementById('notificationContainer');
+ msgDomContainer.style.right = "-320px";
+ msgDomContainer.prepend(msgDom);
+
+ setTimeout(() => {
+ msgDomContainer.style.right = "10px";
+ msgDom.style.opacity = 1;
+ setTimeout(() => {
+ msgDomContainer.style.right = "-320px";
+ msgDom.style.opacity = 0;
+ setTimeout(() => {
+ msgDomContainer.removeChild(msgDom);
+ that.startPopUpMsg();
+ }, 450);
+ }, levelTime);
+ }, 0);
+ },
+ /**
+ * 添加提示, layer改造
+ * @param {*} type
+ * @param {*} time
+ * @param {*} message
+ * @returns
+ */
+ addToastMsg : function({
+ type, time = 1000, message, callback
+ }) {
+ if(!layer){
+ return this.addPopUpMsg({
+ title: '',
+ message,
+ callback
+ })
+ }
+ const icons = {
+ success :
+ ''
+ ,
+ warning :
+ ''
+ ,
+ error :
+ ''
+
+ }
+ let icon = icons.success
+ if(type){
+ icon = icons[type]
+ }
+
+ layer.msg(icon + ''+ message +'
',{
+ offset: '10px', anim: 0, time: time, skin: 'tl-rtc-app-layer-msg'
+ });
+
+ callback && callback();
+ },
+ /**
+ * 添加快捷操作面板
+ */
+ addQuickOperPanel: function({
+ callback
+ }){
+ let that = this
+
+ let gridCount = 4
+ let operListDom = ''
+ this.quickOperList.forEach((item) => {
+ operListDom += `
+
+ `
+ })
+
+ layer.open({
+ type: 1,
+ title: '快捷操作中心',
+ closeBtn: 1,
+ skin: 'tl-rtc-app-layer-quick-oper-panel',
+ content: `
+
+ `,
+ area: this.isMobile ? [Math.min(document.clientWidth, 350)+'px', '320px'] : ['400px', '320px'],
+ offset: this.isMobile ? 'auto' : '200px',
+ shadeClose: true,
+ resize: false,
+ yes: function (index) {
+ layer.close(index)
+ },
+ success: function (layero, index) {
+ layero.css({
+ "border-radius": "6px",
+ })
+
+ that.quickOperList.forEach(item => {
+ document.querySelector("#" + item.id).addEventListener('click', function(){
+ item.handler()
+ layer.close(index)
+ })
+ })
+ }
+ })
+
+ callback && callback()
+ },
+ /**
+ * 用户信息弹窗 - pc
+ * @param {*} clientX
+ * @param {*} clientY
+ * @param {*} userInfo
+ * @param {*} callback
+ */
+ userInfoPopupPc: async function({
+ clientX, clientY, userInfo, callback
+ }){
+ // 创建弹窗,位置坐标为clientX, clientY,信息为userInfo,点击回调为callback
+ const width = 320
+ const height = 280
+ if(clientY + height > window.innerHeight){
+ clientY = clientY - height
+ }
+ if(clientX + width > window.innerWidth){
+ clientX = clientX - width
+ }
+
+ let footerBtns = ''
+ if(userInfo.channelId){
+ footerBtns += `
+
+
+
+ `
+ if(!userInfo.isFriend){
+ footerBtns += `
+
+ `
+ }
+ }
+
+ let that = this
+ layer.open({
+ type: 1,
+ title: false,
+ closeBtn: 0,
+ move: '.tl-rtc-app-user-info-popup-header',
+ skin: 'tl-rtc-app-layer-user-info-popup',
+ content: `
+
+ `,
+ shade: 0.001,
+ area: [width + 'px', height + 'px'],
+ offset: [clientY + 'px', clientX + 'px'],
+ shadeClose: true,
+ resize: false,
+ yes: function (index) {
+ layer.close(index)
+ },
+ success: function (layero, index) {
+ layero.css({
+ "border-radius": "6px",
+ })
+ layero.find(".tl-rtc-app-user-info-popup-content").css({
+ 'height': height - 140 + 'px',
+ })
+
+ const chatUserInfoPopup = document.querySelector("#chatUserInfoPopup")
+ chatUserInfoPopup && chatUserInfoPopup.addEventListener('click', function(e){
+ callback && callback({
+ type: 'chat',
+ userInfo: userInfo
+ })
+ layer.close(index)
+ })
+ const callUserInfoPopup = document.querySelector("#callUserInfoPopup")
+ callUserInfoPopup && callUserInfoPopup.addEventListener('click', function(){
+ callback && callback({
+ type: 'audio',
+ userInfo: userInfo
+ })
+ layer.close(index)
+ })
+ const videoUserInfoPopup = document.querySelector("#videoUserInfoPopup")
+ videoUserInfoPopup && videoUserInfoPopup.addEventListener('click', function(){
+ callback && callback({
+ type: 'video',
+ userInfo: userInfo
+ })
+ layer.close(index)
+ })
+ const addFriendUserInfoPopup = document.querySelector("#addFriendUserInfoPopup")
+ addFriendUserInfoPopup && addFriendUserInfoPopup.addEventListener('click', function(){
+ callback && callback({
+ type: 'addFriend',
+ userInfo: userInfo
+ })
+ layer.close(index)
+ })
+ }
+ })
+ },
+ /**
+ * 用户信息弹窗 - 移动端
+ * @param {*} clientX
+ * @param {*} clientY
+ * @param {*} userInfo
+ * @param {*} callback
+ */
+ userInfoPopupMobile: async function({
+ clientX, clientY, userInfo, callback
+ }){
+ // 创建弹窗,信息为userInfo,点击回调为callback
+ let footerBtns = ''
+ if(userInfo.channelId){
+ footerBtns += `
+
+
+
+ `
+ if(!userInfo.isFriend){
+ footerBtns += `
+
+ `
+ }
+ }
+
+ let that = this
+ layer.open({
+ type: 1,
+ title: "用户信息",
+ skin: 'tl-rtc-app-layer-user-info-popup',
+ content: `
+
+ `,
+ area: ['100%', '100%'],
+ shadeClose: true,
+ resize: false,
+ yes: function (index) {
+ layer.close(index)
+ console.log('yes')
+ },
+ success: function (layero, index) {
+ layero.find(".layui-layer-content").css({
+ "border-radius": "0px",
+ })
+
+ const chatUserInfoPopup = document.querySelector("#chatUserInfoPopup")
+ chatUserInfoPopup && chatUserInfoPopup.addEventListener('click', function(e){
+ callback && callback({
+ type: 'chat',
+ userInfo: userInfo
+ })
+ layer.close(index)
+ })
+ const callUserInfoPopup = document.querySelector("#callUserInfoPopup")
+ callUserInfoPopup && callUserInfoPopup.addEventListener('click', function(){
+ callback && callback({
+ type: 'audio',
+ userInfo: userInfo
+ })
+ layer.close(index)
+ })
+ const videoUserInfoPopup = document.querySelector("#videoUserInfoPopup")
+ videoUserInfoPopup && videoUserInfoPopup.addEventListener('click', function(){
+ callback && callback({
+ type: 'video',
+ userInfo: userInfo
+ })
+ layer.close(index)
+ })
+ const addFriendUserInfoPopup = document.querySelector("#addFriendUserInfoPopup")
+ addFriendUserInfoPopup && addFriendUserInfoPopup.addEventListener('click', function(){
+ callback && callback({
+ type: 'addFriend',
+ userInfo: userInfo
+ })
+ layer.close(index)
+ })
+ }
+ })
+ },
+ /**
+ * 用户信息弹窗
+ * @param {*} clientX
+ * @param {*} clientY
+ * @param {*} userInfo
+ * @param {*} callback
+ */
+ userInfoPopup: async function({
+ clientX, clientY, userInfo, callback
+ }){
+ const userId = userInfo.id
+ if (userId == 'system'){
+ return
+ }
+
+ if(!userId){
+ this.addToastMsg({
+ type: 'error',
+ message: '获取用户信息失败'
+ })
+ return
+ }
+
+ const params = {
+ id: userId
+ }
+
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ return
+ }
+
+ const { data: userRes } = await this.tlRequest({
+ url: '/api/web/user/search-user-by-id',
+ method: 'post',
+ useCache: false,
+ data: params,
+ })
+
+ if(!userRes.success){
+ this.addToastMsg({
+ type: 'error',
+ message: '获取用户信息失败: ' + userRes.msg
+ })
+ return
+ }
+ userInfo = userRes.data
+
+ if(this.isMobile){
+ return await this.userInfoPopupMobile({
+ clientX, clientY, userInfo, callback
+ })
+ }else{
+ return await this.userInfoPopupPc({
+ clientX, clientY, userInfo, callback
+ })
+ }
+ },
+ /**
+ * 群聊信息弹窗 - pc
+ * @param {*} clientX
+ * @param {*} clientY
+ * @param {*} channelInfo
+ * @param {*} callback
+ */
+ channelInfoPopupPc: async function({
+ clientX, clientY, channelInfo, callback
+ }){
+ // 创建弹窗,位置坐标为clientX, clientY,信息为channelInfo,点击回调为callback
+ const width = 320
+ const height = 280
+ if(clientY + height > window.innerHeight){
+ clientY = clientY - height
+ }
+ if(clientX + width > window.innerWidth){
+ clientX = clientX - width
+ }
+
+ let footerBtns = ''
+ if(channelInfo.channelId){
+ footerBtns += `
+
+ `
+ if(!channelInfo.isChannelUser){
+ footerBtns += `
+
+ `
+ }
+ }
+
+ let that = this
+ layer.open({
+ type: 1,
+ title: false,
+ closeBtn: 0,
+ move: '.tl-rtc-app-user-info-popup-header',
+ skin: 'tl-rtc-app-layer-user-info-popup',
+ content: `
+
+ `,
+ shade: 0.001,
+ area: [width + 'px', height + 'px'],
+ offset: [clientY + 'px', clientX + 'px'],
+ shadeClose: true,
+ resize: false,
+ yes: function (index) {
+ layer.close(index)
+ console.log('yes')
+ },
+ success: function (layero, index) {
+ layero.css({
+ "border-radius": "6px",
+ })
+ layero.find(".tl-rtc-app-user-info-popup-content").css({
+ 'height': height - 140 + 'px',
+ })
+
+ const chatChannelnfoPopup = document.querySelector("#chatChannelInfoPopup")
+ chatChannelnfoPopup && chatChannelnfoPopup.addEventListener('click', function(e){
+ callback && callback({
+ type: 'chat',
+ channelInfo: channelInfo
+ })
+ layer.close(index)
+ })
+ const addChannelInfoPopup = document.querySelector("#addChannelInfoPopup")
+ addChannelInfoPopup && addChannelInfoPopup.addEventListener('click', function(){
+ callback && callback({
+ type: 'addFriend',
+ channelInfo: channelInfo
+ })
+ layer.close(index)
+ })
+
+ const popupCopyChannelId = document.querySelector("#popupCopyChannelId")
+ popupCopyChannelId && popupCopyChannelId.addEventListener('click', function(){
+ window.tl_rtc_app_comm.copyTxt('popupCopyChannelId', channelInfo.channelId, function(){
+ that.addToastMsg({
+ type: 'success',
+ message: '复制成功'
+ })
+ })
+ })
+ }
+ })
+ },
+ /**
+ * 群聊信息弹窗 - 移动端
+ * @param {*} clientX
+ * @param {*} clientY
+ * @param {*} channelInfo
+ * @param {*} callback
+ */
+ channelInfoPopupMobile: async function({
+ clientX, clientY, channelInfo, callback
+ }){
+ // 创建弹窗,信息为channelInfo,点击回调为callback
+ let footerBtns = ''
+ if(channelInfo.channelId){
+ footerBtns += `
+
+ `
+ if(!channelInfo.isChannelUser){
+ footerBtns += `
+
+ `
+ }
+ }
+
+ let that = this
+ layer.open({
+ type: 1,
+ title: "群聊信息",
+ skin: 'tl-rtc-app-layer-user-info-popup',
+ content: `
+
+ `,
+ area: ['100%', '100%'],
+ shadeClose: true,
+ resize: false,
+ yes: function (index) {
+ layer.close(index)
+ console.log('yes')
+ },
+ success: function (layero, index) {
+ layero.find(".layui-layer-content").css({
+ "border-radius": "0px",
+ })
+
+ const chatChannelnfoPopup = document.querySelector("#chatChannelInfoPopup")
+ chatChannelnfoPopup && chatChannelnfoPopup.addEventListener('click', function(e){
+ callback && callback({
+ type: 'chat',
+ channelInfo: channelInfo
+ })
+ layer.close(index)
+ })
+ const addChannelInfoPopup = document.querySelector("#addChannelInfoPopup")
+ addChannelInfoPopup && addChannelInfoPopup.addEventListener('click', function(){
+ callback && callback({
+ type: 'addFriend',
+ channelInfo: channelInfo
+ })
+ layer.close(index)
+ })
+ const popupCopyChannelId = document.querySelector("#popupCopyChannelId")
+ popupCopyChannelId && popupCopyChannelId.addEventListener('click', function(){
+ window.tl_rtc_app_comm.copyTxt('popupCopyChannelId', channelInfo.channelId, function(){
+ that.addToastMsg({
+ type: 'success',
+ message: '复制成功'
+ })
+ })
+ })
+ }
+ })
+ },
+ /**
+ * 群聊信息弹窗
+ * @param {*} clientX
+ * @param {*} clientY
+ * @param {*} channelInfo
+ * @param {*} callback
+ */
+ channelInfoPopup: async function({
+ clientX, clientY, channelInfo, callback
+ }){
+ const channelId = channelInfo.id
+
+ if(!channelId){
+ this.addToastMsg({
+ type: 'error',
+ message: '获取群聊信息失败'
+ })
+ return
+ }
+
+ const params = {
+ channelId: channelId
+ }
+
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ return
+ }
+
+ const { data: channelRes } = await this.tlRequest({
+ url: '/api/web/channel/search-channel-by-id',
+ method: 'post',
+ useCache: false,
+ data: params,
+ })
+
+ if(!channelRes.success){
+ this.addToastMsg({
+ type: 'error',
+ message: '获取群聊信息失败: ' + channelRes.msg
+ })
+ return
+ }
+ channelInfo = channelRes.data
+
+ if(this.isMobile){
+ return await this.channelInfoPopupMobile({
+ clientX, clientY, channelInfo, callback
+ })
+ }else{
+ return await this.channelInfoPopupPc({
+ clientX, clientY, channelInfo, callback
+ })
+ }
+ }
+ },
+ mounted() {
+ this.startPopUpMsg()
+ },
+ created(){
+ // 添加系统消息弹窗
+ window.subModule.$on('component-popup-add-pop-up-msg', this.addPopUpMsg);
+
+ // 提示消息toast
+ window.subModule.$on('component-popup-add-toast-msg', this.addToastMsg);
+
+ // 快捷操作面板
+ window.subModule.$on('component-popup-add-quick-oper-panel', this.addQuickOperPanel)
+
+ // 用户信息弹窗
+ window.subModule.$on('component-popup-user-info-popup', this.userInfoPopup)
+
+ // 群聊信息弹窗
+ window.subModule.$on('component-popup-channel-info-popup', this.channelInfoPopup)
+ }
+})
+
+window.tl_rtc_app_popup = tl_rtc_app_popup;
\ No newline at end of file
diff --git a/web-v2-res/js/component/shade.js b/web-v2-res/js/component/shade.js
new file mode 100644
index 0000000..2a7c3ef
--- /dev/null
+++ b/web-v2-res/js/component/shade.js
@@ -0,0 +1,89 @@
+const tl_rtc_app_shade = new Vue({
+ el: '#tl-rtc-app-shade',
+ data : function(){
+ return {
+
+ }
+ },
+ methods: {
+ /**
+ * 显示遮罩层
+ * @param {*} data
+ */
+ showShadeContent: function({
+ id, style, className, text, shadeListener, callback
+ }){
+ if(!id){
+ callback && callback(false)
+ return
+ }
+
+ const preDom = document.querySelector('#' + id)
+
+ if(preDom){
+ preDom.remove()
+ }
+
+ const createDom = document.createElement('div')
+ createDom.className = 'tl-rtc-app-right-shade-content-body '
+ createDom.id = id
+
+ if(style){
+ for(let key in style){
+ createDom.style[key] = style[key]
+ }
+ }
+
+ if(className){
+ createDom.className += className
+ }
+
+ if(text){
+ createDom.innerText = text
+ }
+
+ if(shadeListener){
+ for (let key in shadeListener) {
+ const func = shadeListener[key]
+ if(typeof func !== 'function'){
+ continue
+ }
+ createDom.addEventListener(key, shadeListener[key])
+ }
+ }
+
+ document.querySelector('#tl-rtc-app').appendChild(createDom)
+
+ callback && callback(true)
+ },
+ /**
+ * 销毁遮罩层
+ * @param {*} id
+ */
+ destroyShadeContent: function({
+ id, callback
+ }){
+ const createDom = document.querySelector('#' + id)
+ if(createDom){
+ createDom.style.opacity = 0
+ setTimeout(() => {
+ createDom.remove()
+ }, 300);
+ }
+
+ callback && callback(true)
+ }
+ },
+ mounted() {
+
+ },
+ created(){
+ // 监听遮罩层显示
+ window.subModule.$on('component-shade-show', this.showShadeContent)
+
+ // 监听遮罩层销毁
+ window.subModule.$on('component-shade-destroy', this.destroyShadeContent)
+ }
+})
+
+window.tl_rtc_app_shade = tl_rtc_app_shade
\ No newline at end of file
diff --git a/web-v2-res/js/component/socket.js b/web-v2-res/js/component/socket.js
new file mode 100644
index 0000000..1715143
--- /dev/null
+++ b/web-v2-res/js/component/socket.js
@@ -0,0 +1,132 @@
+const tl_rtc_app_socket = new Vue({
+ el: '#tl-rtc-app-socket',
+ data : function(){
+ return {
+ socket: null,
+ CHANNEL_CHAT: 'channelChat', // 频道聊天
+ CHANNEL_CHAT_ROLLBACK: 'channelChatRollback', // 频道聊天消息撤回
+ CONTACT_APPLY: 'contactApply', // 好友申请
+ CONTACT_APPLY_PASS: 'contactApplyPass', // 通过好友申请
+ CONTACT_APPLY_REJECT: 'contactApplyReject', // 拒绝好友申请
+ COUNT: 'count', // 在线人数
+ EXIT: 'exit' // 退出
+ }
+ },
+ methods: {
+ /**
+ * 初始化socket对象
+ * @param {*} socket
+ * @returns
+ */
+ initSocket: function({
+ socket, callback
+ }){
+ this.socket = socket
+
+ // 监听事件
+ this.socket.on(this.CHANNEL_CHAT, this.channelChatSocketHandler)
+ this.socket.on(this.CHANNEL_CHAT_ROLLBACK, this.channelChatRollbackSocketHandler)
+ this.socket.on(this.COUNT, this.countSocketHandler)
+ this.socket.on(this.CONTACT_APPLY, this.contactApplySocketHandler)
+ this.socket.on(this.CONTACT_APPLY_PASS, this.contactApplyPassSocketHandler)
+ this.socket.on(this.CONTACT_APPLY_REJECT, this.contactApplyRejectSocketHandler)
+ this.socket.on(this.EXIT, this.exitSocketHandler)
+
+ callback && callback(true)
+ },
+ /**
+ * 聊天socket消息处理
+ * @param {*} data
+ * @returns
+ */
+ channelChatSocketHandler: function(data){
+ // 通知channel模块
+ this.emitSubModuleEvent({
+ event: 'sub-module-channel-list-chat-socket',
+ data: data
+ })
+ },
+ /**
+ * 频道聊天消息撤回socket消息处理
+ * @param {*} data
+ */
+ channelChatRollbackSocketHandler: function(data){
+ // 通知channel模块
+ this.emitSubModuleEvent({
+ event: 'sub-module-channel-list-rollback-channel-message-socket',
+ data: data
+ })
+ },
+ /**
+ * 在线人数socket消息处理
+ * @param {*} data
+ */
+ countSocketHandler: function(data){
+ console.log("count: ", data)
+ },
+ /**
+ * 退出socket消息处理
+ * @param {*} data
+ */
+ exitSocketHandler: function(data){
+ console.log("exit: ", data)
+
+ this.emitSubModuleEvent({
+ event: 'component-video-call-socket-exit',
+ data: data
+ })
+
+ this.emitSubModuleEvent({
+ event: 'component-screen-call-socket-exit',
+ data: data
+ })
+
+ this.emitSubModuleEvent({
+ event: 'component-live-call-socket-exit',
+ data: data
+ })
+ },
+ /**
+ * 好友申请消息处理
+ * @param {*} data
+ */
+ contactApplySocketHandler: function(data){
+ // 通知好友模块
+ this.emitSubModuleEvent({
+ event: 'sub-module-contact-apply-socket',
+ data: data
+ })
+ },
+ /**
+ * 通过好友申请消息处理
+ * @param {*} data
+ */
+ contactApplyPassSocketHandler: function(data){
+ // 通知好友模块
+ this.emitSubModuleEvent({
+ event: 'sub-module-contact-apply-pass-socket',
+ data: data
+ })
+ },
+ /**
+ * 拒绝好友申请消息处理
+ * @param {*} data
+ */
+ contactApplyRejectSocketHandler: function(data){
+ // 通知好友模块
+ this.emitSubModuleEvent({
+ event: 'sub-module-contact-apply-reject-socket',
+ data: data
+ })
+ }
+ },
+ mounted() {
+
+ },
+ created(){
+ // 监听初始化socket
+ window.subModule.$on("component-socket-init-socket", this.initSocket)
+ },
+})
+
+window.tl_rtc_app_socket = tl_rtc_app_socket;
\ No newline at end of file
diff --git a/web-v2-res/js/module/blank/content.js b/web-v2-res/js/module/blank/content.js
new file mode 100644
index 0000000..f368f23
--- /dev/null
+++ b/web-v2-res/js/module/blank/content.js
@@ -0,0 +1,57 @@
+const tl_rtc_app_module_blank_content = {
+ props : {
+ socketId : {
+ type : String,
+ default : ''
+ },
+ isMobile:{
+ type: Boolean,
+ default: false
+ },
+ company: {
+ type: Object,
+ default: function(){
+ return {
+ name: ''
+ }
+ }
+ },
+ user: {
+ type: Object,
+ default: function(){
+ return {
+ username: '',
+ userAvatar: ''
+ }
+ }
+ }
+ },
+ computed: {
+ propsSocketId(){
+ return this.socketId;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsCompany(){
+ return this.company;
+ },
+ propsUser(){
+ return this.user;
+ }
+ },
+ data : function(){
+ return {
+
+ }
+ },
+ template: `
+
+ `,
+}
+
+window.tl_rtc_app_module_blank_content = tl_rtc_app_module_blank_content
\ No newline at end of file
diff --git a/web-v2-res/js/module/channel/channel.js b/web-v2-res/js/module/channel/channel.js
new file mode 100644
index 0000000..a3d4085
--- /dev/null
+++ b/web-v2-res/js/module/channel/channel.js
@@ -0,0 +1,124 @@
+const tl_rtc_app_module_channel = {
+ props: {
+ socket: {
+ type: Object,
+ default: null
+ },
+ company:{
+ type: Object,
+ default: function(){
+ return {
+ name : ''
+ }
+ }
+ },
+ user: {
+ type: Object,
+ default: function(){
+ return {
+ userId: '', // 用户id
+ username: '', // 用户名称
+ }
+ }
+ },
+ isMobile: {
+ type: Boolean,
+ default: false
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ computed:{
+ propsSocket(){
+ return this.socket;
+ },
+ propsUser(){
+ return this.user;
+ },
+ propsCompany(){
+ return this.company;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ data : function(){
+ return {
+
+ }
+ },
+ watch:{
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ },
+ mounted() {
+
+ },
+ created() {
+
+ },
+ components:{
+ 'tl_rtc_app_module_channel_top': window.tl_rtc_app_module_channel_top,
+ 'tl_rtc_app_module_channel_list': window.tl_rtc_app_module_channel_list,
+ },
+ template: `
+
+
+
+
+
+
+
+ `
+}
+
+window.tl_rtc_app_module_channel = tl_rtc_app_module_channel
\ No newline at end of file
diff --git a/web-v2-res/js/module/channel/content.js b/web-v2-res/js/module/channel/content.js
new file mode 100644
index 0000000..ebf16c7
--- /dev/null
+++ b/web-v2-res/js/module/channel/content.js
@@ -0,0 +1,1251 @@
+const tl_rtc_app_module_channel_content = {
+ props: {
+ socket: {
+ type: Object,
+ default: null
+ },
+ company: {
+ type: Object,
+ default: function () {
+ return {
+ name: ''
+ }
+ }
+ },
+ user: {
+ type: Object,
+ default: function () {
+ return {
+ userId: '', // 用户id
+ username: '', // 用户名称
+ userAvatar: '', // 用户头像
+ }
+ }
+ },
+ isMobile:{
+ type: Boolean,
+ default: false
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ computed: {
+ propsSocket() {
+ return this.socket;
+ },
+ propsUser() {
+ return this.user;
+ },
+ propsCompany() {
+ return this.company;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ }
+ },
+ data: function () {
+ return {
+ channelShareHashKey: 'channel-share',
+ isInviter: false, // 是否是邀请方
+ socketId: this.socket.id, // socketId
+ channelId: '', // 当前会话id
+ channelName: '', //当前会话名称 - 单聊【对方名称】- 群聊【群聊名称】
+ channelReName: '', // 当前会话备注名称
+ channelUserCount: 0, // 当前会话用户数量
+ channelMessages: [], // 当前会话消息数据 - 单聊/群聊
+ channelUsers: [], // 当前会话用户数据 - 单聊/群聊
+ channelType: '', // 当前会话类型 - 单聊/群聊
+ channelTop: false, // 当前会话是否置顶
+ channelBlack: false, // 当前会话是否拉黑
+ channelNoticeList: [], // 当前会话公告列表
+ channelMessageAllLoad: false, // 当前会话消息是否全部加载
+ tools: [
+ {
+ svg: '#tl-rtc-app-icon-faqiliaotian',
+ title: '邀请进群',
+ active: false,
+ callback: this.inviteChannelUser
+ },
+ {
+ svg: '#tl-rtc-app-icon-gengduo',
+ title: '更多',
+ active: false,
+ callback: this.openChannelMore
+ },
+ ]
+ }
+ },
+ watch: {
+ channelMessages: {
+ deep: true,
+ immediate: true,
+ handler: function (pre, cur) { }
+ },
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 邀请用户进群
+ */
+ inviteChannelUser: async function () {
+ await this.emitSubModuleEvent({
+ event: 'sub-module-channel-invite-open',
+ data: {
+ existUserIdList : this.channelUsers.map(item => item.userId)
+ }
+ })
+ },
+ /**
+ * 快捷邀请用户进群
+ * @param {*} channelId
+ */
+ inviteChannelUserQuick: async function({
+ channelId, callback
+ }){
+ await this.emitSubModuleEvent({
+ event: 'sub-module-channel-list-item-open',
+ data: {
+ channelId
+ }
+ })
+
+ await this.emitSubModuleEvent({
+ event: 'sub-module-channel-invite-open',
+ data: {
+ existUserIdList : this.channelUsers.map(item => item.userId)
+ }
+ })
+
+ callback && callback(true)
+ },
+ /**
+ * 打开更多面板
+ */
+ openChannelMore: function () {
+ this.emitSubModuleEvent({
+ event: 'sub-module-channel-more-open',
+ data: {
+ channelId: this.channelId
+ }
+ })
+ },
+ /**
+ * 打开频道内容
+ * @param {*} data
+ */
+ openChannelContent: async function (data) {
+ console.log("频道内容数据变更", data)
+
+ if('channelId' in data){
+ this.channelId = data.channelId
+ }
+ if('channelName' in data){
+ this.channelName = data.channelName
+ }
+ if('channelReName' in data){
+ this.channelReName = data.channelReName
+ }
+ if('channelUserCount' in data){
+ this.channelUserCount = data.channelUserCount
+ }
+ if('channelMessages' in data){
+ this.channelMessages = [...data.channelMessages]
+ }
+ if('channelType' in data){
+ this.channelType = data.channelType
+ }
+ if('channelUsers' in data){
+ this.channelUsers = [...data.channelUsers]
+ }
+ if('channelTop' in data){
+ this.channelTop = data.channelTop
+ }
+ if('channelBlack' in data){
+ this.channelBlack = data.channelBlack
+ }
+ if('channelMessageAllLoad' in data){
+ this.channelMessageAllLoad = data.channelMessageAllLoad
+ }
+
+ data.callback && data.callback(true)
+ },
+ /**
+ * 发送消息
+ * @param {*} data
+ * @returns
+ */
+ pushChannelMessage: async function (data) {
+ let url = ''
+ if (this.channelType === 'group') {
+ url = '/api/web/channel-chat/add-group-channel-chat'
+
+ // 回复消息
+ if(data.replyToMessageId){
+ url = '/api/web/channel-chat/add-reply-group-channel-chat'
+ }
+ }else if (this.channelType === 'friend') {
+ url = '/api/web/channel-chat/add-friend-channel-chat'
+
+ // 回复消息
+ if(data.replyToMessageId){
+ url = '/api/web/channel-chat/add-reply-friend-channel-chat'
+ }
+ }
+
+ if (!url) {
+ this.popErrorMsg('发送消息失败,频道类型错误')
+ return
+ }
+
+ // 发送给谁
+ let toUserId = '', toUserName = ''
+
+ if (this.channelType === 'friend') {
+ firend = this.channelUsers.find(item => item.userId !== this.propsUser.userId)
+ if (firend) {
+ toUserId = firend.userId
+ toUserName = firend.username
+ }else{
+ this.popErrorMsg('发送消息失败,好友不存在')
+ return
+ }
+ }
+
+ const params = {
+ channelId: this.channelId,
+ message: data.message,
+ toUserId, toUserName,
+
+ // 群聊/好友@用户
+ atUserId: data.atUserId,
+ atUserName: data.atUserName,
+ }
+
+ // 回复消息
+ if(data.replyToMessageId && data.replyToMessageType){
+ params.messageId = data.replyToMessageId
+ params.messageType = data.replyToMessageType
+ }
+
+ // 群聊@用户
+ if(this.channelType === 'group'){
+ params.atAll = data.isAtAll
+ }
+
+ const { data: addChatRes } = await this.tlRequest({
+ url: url,
+ method: 'post',
+ useCache: false,
+ data: params,
+ })
+ if (!addChatRes.success) {
+ this.popErrorMsg(addChatRes.msg)
+ return
+ }
+
+ let addMessage = addChatRes.data
+ if (addMessage) {
+ if(addMessage.messageTimeStamp){
+ addMessage.messageTimeStampFormat = window.util.timeAgo(addMessage.messageTimeStamp)
+ }
+ }
+
+ this.propsSocket.emit('channelChat', {
+ channel: this.channelId,
+ messageInfo: addMessage
+ })
+
+ this.channelMessages.push(addMessage)
+
+ // 更新最新消息
+ await this.emitSubModuleEvent({
+ event: 'sub-module-channel-list-update-latest-message',
+ data: {
+ channelId: this.channelId,
+ extra: addMessage
+ }
+ })
+
+ // 清除回复消息
+ this.emitSubModuleEvent({
+ event: 'sub-module-channel-content-clear-body-reply-message',
+ })
+
+ this.moduleScrollToBottom({})
+ },
+ /**
+ * 添加邀请消息, 邀请消息记录在服务端生成,此处只做广播
+ * @param {*} addMessage
+ * @param {*} callback
+ */
+ pushChannelInviteMessage: async function({
+ addMessage, callback
+ }) {
+ this.propsSocket.emit('channelChat', {
+ channel: this.channelId,
+ messageInfo: addMessage
+ })
+
+ this.channelMessages.push(addMessage)
+
+ await this.emitSubModuleEvent({
+ event: 'sub-module-channel-list-update-latest-message',
+ data: {
+ channelId: this.channelId,
+ extra: addMessage
+ }
+ })
+
+ this.moduleScrollToBottom({})
+
+ callback && callback(true)
+ },
+ /**
+ * 撤回消息
+ * @param {*} messageId
+ * @param {*} channelId
+ * @param {*} callback
+ */
+ rollbackChannelMessage: async function({
+ messageId, channelId, messageType, callback
+ }){
+ let acceptOrReject = await new Promise(resolve => {
+ layer.confirm('确定撤回该消息吗?', {
+ shadeClose: 1
+ }, function (index) {
+ resolve(true)
+ layer.close(index)
+ }, function (index) {
+ resolve(false)
+ });
+ })
+
+ if(!acceptOrReject){
+ callback && callback(false)
+ return
+ }
+
+ const params = {
+ channelId: channelId,
+ messageId: messageId,
+ messageType: messageType
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ callback && callback(false)
+ return
+ }
+ const { data: channelChatRes } = await this.tlRequest({
+ url: '/api/web/channel-chat/rollback-channel-chat',
+ method: 'post',
+ useCache: false,
+ data: params,
+ })
+ if(!channelChatRes.success){
+ this.popErrorMsg(channelChatRes.msg)
+ callback && callback(false)
+ return
+ }
+
+ this.popSuccessMsg(channelChatRes.msg)
+
+ // 更新当前频道消息
+ this.emitSubModuleEvent({
+ event: 'sub-module-channel-list-rollback-channel-message',
+ data: {
+ messageId: messageId,
+ channelId: channelId,
+ rollbackMessage: channelChatRes.data,
+ }
+ })
+
+ // 广播一条撤回事件
+ this.propsSocket.emit('channelChatRollback', {
+ channel: channelId,
+ messageId: messageId,
+ rollbackMessage: channelChatRes.data,
+ })
+
+ callback && callback(true)
+ },
+ /**
+ * 删除消息
+ * @param {*} messageId
+ * @param {*} callback
+ */
+ deleteChannelMessage: async function({
+ messageId, callback
+ }){
+
+ },
+ /**
+ * 滚动到底部
+ */
+ moduleScrollToBottom: function ({
+ callback
+ }) {
+ setTimeout(() => {
+ if (window.tl_rtc_app_comm.scrollToBottom) {
+ let contentBodyDom = document.getElementsByClassName("tl-rtc-app-right-channel-content-body")
+ if (contentBodyDom && contentBodyDom[0]) {
+ window.tl_rtc_app_comm.scrollToBottom(contentBodyDom[0], 1000, 50)
+ }
+ }
+ }, 100);
+
+ callback && callback(true)
+ },
+ /**
+ * 更新群聊名称
+ */
+ updateGroupChannelName: async function({
+ callback
+ }){
+ if(this.channelType !== 'group'){
+ callback && callback(false)
+ return
+ }
+ let that = this;
+
+ layer.prompt({
+ formType: 0,
+ title: "修改群聊名称",
+ btn : ['确定', '取消'],
+ value: "",
+ shadeClose : true,
+ skin: 'layui-layer-prompt tl-rtc-app-layer-channel-change-name',
+ maxlength : 15,
+ }, async function (value, index, elem) {
+ value = value.trim()
+ if(value.length === 0){
+ layer.msg("请输入新的群聊名称",{offset: 't'});
+ return false;
+ }
+
+ const params = {
+ channelId: that.channelId,
+ channelName: value
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ that.popErrorMsg("请求参数非法")
+ return
+ }
+ const { data: channelRes } = await that.tlRequest({
+ url: '/api/web/channel/update-channel-name',
+ method: 'post',
+ useCache: false,
+ data: params,
+
+ })
+ if(!channelRes.success){
+ that.popErrorMsg(channelRes.msg)
+ layer.close(index)
+ return
+ }
+
+ that.popSuccessMsg(channelRes.msg)
+
+ layer.close(index)
+
+ await that.emitSubModuleEvent({
+ event: 'sub-module-channel-list-update-channel',
+ data: {
+ channelId: that.channelId,
+ update_types: ['channelInfo'],
+ }
+ })
+
+ that.channelName = value
+
+ return false
+ });
+
+ callback && callback(true)
+ },
+ /**
+ * 设置频道置顶
+ */
+ updateChannelToTop: async function(){
+ let that = this
+
+ const params = {
+ channelId: this.channelId,
+ top: !this.channelTop
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ return
+ }
+ const { data: channelRes } = await this.tlRequest({
+ url: '/api/web/channel-user/update-channel-top',
+ method: 'post',
+ useCache: false,
+ data: params,
+
+ })
+ if(!channelRes.success){
+ this.popErrorMsg(channelRes.msg)
+ return
+ }
+
+ this.popSuccessMsg(channelRes.msg)
+
+ await this.emitSubModuleEvent({
+ event: 'sub-module-channel-list-update-channel',
+ data: {
+ channelId: this.channelId,
+ update_types: ['channelInfo'],
+ }
+ })
+
+ this.channelTop = !this.channelTop
+ },
+ /**
+ * 快捷设置频道置顶
+ * @returns
+ */
+ updateChannelToTopQuick: async function({
+ channelId, channelTop, callback
+ }){
+ let that = this
+ const params = {
+ channelId: channelId,
+ top: channelTop
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ callback && callback(false)
+ return
+ }
+ const { data: channelRes } = await this.tlRequest({
+ url: '/api/web/channel-user/update-channel-top',
+ method: 'post',
+ useCache: false,
+ data: params,
+
+ })
+ if(!channelRes.success){
+ this.popErrorMsg(channelRes.msg)
+ callback && callback(false)
+ return
+ }
+
+ this.popSuccessMsg(channelRes.msg)
+
+ await this.emitSubModuleEvent({
+ event: 'sub-module-channel-list-update-channel',
+ data: {
+ channelId: channelId,
+ update_types: ['channelInfo'],
+ }
+ })
+
+ this.channelTop = channelTop
+
+ callback && callback(true)
+ },
+ /**
+ * 退出群聊
+ */
+ exitGroupChannel: async function(){
+ let acceptOrReject = await new Promise(resolve => {
+ layer.confirm('确定退出当前群聊吗?', {
+ shadeClose: 1
+ }, function (index) {
+ resolve(true)
+ layer.close(index)
+ }, function (index) {
+ resolve(false)
+ });
+ })
+
+ if(!acceptOrReject){
+ return
+ }
+
+ let that = this
+ const params = {
+ channelId: this.channelId
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ return
+ }
+ const { data: channelRes } = await this.tlRequest({
+ url: '/api/web/channel-user/exit-channel',
+ method: 'post',
+ useCache: false,
+ data: params,
+
+ })
+ if(!channelRes.success){
+ this.popSuccessMsg(channelRes.msg)
+ }else{
+ this.popSuccessMsg(channelRes.msg)
+ }
+
+ await this.emitSubModuleEvent({
+ event: 'sub-module-channel-list-init'
+ })
+
+ this.$emit('right-module-change', 'blank')
+ },
+ /**
+ * 快捷退出群聊
+ * @param {*} channelId
+ * @param {*} callback
+ * @returns
+ */
+ exitGroupChannelQuick: async function({
+ channelId, callback
+ }){
+ let acceptOrReject = await new Promise(resolve => {
+ layer.confirm('确定退出当前群聊吗?', {
+ shadeClose: 1
+ }, function (index) {
+ resolve(true)
+ layer.close(index)
+ }, function (index) {
+ resolve(false)
+ });
+ })
+
+ if(!acceptOrReject){
+ callback && callback(false)
+ return
+ }
+
+ let that = this
+ const params = {
+ channelId: channelId
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ callback && callback(false)
+ return
+ }
+ const { data: channelRes } = await this.tlRequest({
+ url: '/api/web/channel-user/exit-channel',
+ method: 'post',
+ useCache: false,
+ data: params,
+
+ })
+ if(!channelRes.success){
+ this.popSuccessMsg(channelRes.msg)
+ }else{
+ this.popSuccessMsg(channelRes.msg)
+ }
+
+ await this.emitSubModuleEvent({
+ event: 'sub-module-channel-list-init'
+ })
+
+ this.$emit('right-module-change', 'blank')
+
+ callback && callback(true)
+ },
+ /**
+ * 删除好友
+ */
+ deleteFriend: async function(){
+ let acceptOrReject = await new Promise(resolve => {
+ layer.confirm('确定删除该好友吗?', {
+ shadeClose: 1
+ }, function (index) {
+ resolve(true)
+ layer.close(index)
+ }, function (index) {
+ resolve(false)
+ });
+ })
+
+ if(!acceptOrReject){
+ return
+ }
+
+ let that = this
+ const params = {
+ channelId: this.channelId
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ return
+ }
+ const { data: userFriendRes } = await this.tlRequest({
+ url: '/api/web/user-friend/delete-user-friend',
+ method: 'post',
+ useCache: false,
+ data: params,
+
+ })
+ if(!userFriendRes.success){
+ this.popSuccessMsg(userFriendRes.msg)
+ }else{
+ this.popSuccessMsg(userFriendRes.msg)
+ }
+
+ await this.emitSubModuleEvent({
+ event: 'sub-module-channel-list-init'
+ })
+
+ this.$emit('right-module-change', 'blank')
+ },
+ /**
+ * 快捷删除好友
+ * @param {*} channelId
+ * @param {*} callback
+ * @returns
+ */
+ deleteFriendQuick: async function({
+ channelId, callback
+ }){
+ let acceptOrReject = await new Promise(resolve => {
+ layer.confirm('确定删除该好友吗?', {
+ shadeClose: 1
+ }, function (index) {
+ resolve(true)
+ layer.close(index)
+ }, function (index) {
+ resolve(false)
+ });
+ })
+
+ if(!acceptOrReject){
+ callback && callback(false)
+ return
+ }
+
+ let that = this
+ const params = {
+ channelId: channelId
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ callback && callback(false)
+ return
+ }
+ const { data: userFriendRes } = await this.tlRequest({
+ url: '/api/web/user-friend/delete-user-friend',
+ method: 'post',
+ useCache: false,
+ data: params,
+
+ })
+ if(!userFriendRes.success){
+ this.popSuccessMsg(userFriendRes.msg)
+ }else{
+ this.popSuccessMsg(userFriendRes.msg)
+ }
+
+ await this.emitSubModuleEvent({
+ event: 'sub-module-channel-list-init'
+ })
+
+ this.$emit('right-module-change', 'blank')
+
+ callback && callback(true)
+ },
+ /**
+ * 拉黑好友
+ */
+ blackFriend: async function(){
+ let that = this
+ const params = {
+ channelId: this.channelId,
+ black: !this.channelBlack
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ return
+ }
+ const { data: userFriendRes } = await this.tlRequest({
+ url: '/api/web/channel-user/update-channel-black',
+ method: 'post',
+ useCache: false,
+ data: params,
+
+ })
+ if(!userFriendRes.success){
+ this.popErrorMsg(userFriendRes.msg)
+ return
+ }
+
+ this.popSuccessMsg(userFriendRes.msg)
+
+ await this.emitSubModuleEvent({
+ event: 'sub-module-channel-list-update-channel',
+ data: {
+ channelId: this.channelId,
+ update_types: ['channelInfo'],
+ }
+ })
+
+ this.channelBlack = !this.channelBlack
+ },
+ /**
+ * 更新好友备注名称
+ */
+ updateFriendName: async function({
+ callback
+ }){
+ if(this.channelType !== 'friend'){
+ callback && callback(false)
+ return
+ }
+ let that = this;
+
+ layer.prompt({
+ formType: 0,
+ title: "修改好友备注",
+ btn : ['确定', '取消'],
+ value: "",
+ shadeClose : true,
+ maxlength : 15,
+ }, async function (value, index, elem) {
+ value = value.trim()
+ if(value.length === 0){
+ layer.msg("请输入好友备注",{offset: 't'});
+ return false;
+ }
+
+ const params = {
+ channelId: that.channelId,
+ rename: value
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ that.popErrorMsg("请求参数非法")
+ return
+ }
+ const { data: userFriendRes } = await that.tlRequest({
+ url: '/api/web/user-friend/update-user-friend-rename',
+ method: 'post',
+ useCache: false,
+ data: params,
+
+ })
+ if(!userFriendRes.success){
+ that.popErrorMsg(userFriendRes.msg)
+ }else{
+ that.popSuccessMsg(userFriendRes.msg)
+ }
+
+ await that.emitSubModuleEvent({
+ event: 'sub-module-channel-list-update-channel',
+ data: {
+ channelId: that.channelId,
+ update_types: ['channelInfo'],
+ }
+ })
+
+ that.channelReName = value
+
+ layer.close(index)
+
+ return false
+ });
+
+ callback && callback(true)
+ },
+ /**
+ * 发布群公告
+ * @returns
+ */
+ addGroupNotice: async function(){
+ if(this.channelType !== 'group'){
+ return
+ }
+ let that = this;
+
+ layer.prompt({
+ formType: 2,
+ title: "发布新的群公告",
+ btn : ['确定', '取消'],
+ value: "",
+ skin: 'layui-layer-prompt tl-rtc-app-layer-channel-notice-send',
+ shadeClose : true,
+ }, async function (value, index, elem) {
+ value = value.trim()
+ if(value.length === 0){
+ that.popWarningMsg("请输入群公告内容")
+ return false;
+ }
+
+ if(value.length > 3000){
+ that.popWarningMsg("群公告内容过长,最多3000个字符")
+ return false;
+ }
+
+ const params = {
+ channelId: that.channelId,
+ content: value
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ that.popErrorMsg("请求参数非法")
+ return
+ }
+ const { data: userFriendRes } = await that.tlRequest({
+ url: '/api/web/channel-notice/add-channel-notice',
+ method: 'post',
+ useCache: false,
+ data: params,
+ })
+ if(!userFriendRes.success){
+ that.popErrorMsg(userFriendRes.msg)
+ }else{
+ that.popSuccessMsg(userFriendRes.msg)
+ }
+
+ await that.emitSubModuleEvent({
+ event: 'sub-module-channel-list-update-channel',
+ data: {
+ channelId: that.channelId,
+ update_types: ['channelInfo', 'channelUserList', 'channelMessageList'],
+ }
+ })
+
+ layer.close(index)
+
+ return false
+ });
+ },
+ /**
+ * 获取群公告列表
+ */
+ getChannelNoticeList: async function({
+ callback
+ }){
+ if(this.channelType !== 'group'){
+ callback && callback(false)
+ return
+ }
+ let that = this;
+
+ const params = {
+ channelId: this.channelId
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ callback && callback(false)
+ return
+ }
+ const { data: channelNoticeRes } = await this.tlRequest({
+ url: '/api/web/channel-notice/get-channel-notice-list',
+ method: 'get',
+ useCache: true,
+ params: params,
+ cacheTime: 10 * 1000
+ })
+
+ if(!channelNoticeRes.success){
+ this.popErrorMsg(channelNoticeRes.msg)
+ callback && callback(false)
+ return
+ }
+
+ this.channelNoticeList = channelNoticeRes.data
+
+ this.channelNoticeList.forEach(item => {
+ item.createTimeFormat = window.util.timeAgo(item.createTime)
+ })
+
+ callback && callback(true)
+ },
+ /**
+ * 分享群聊
+ */
+ groupChannelShare: async function(){
+ let that = this
+ layer.open({
+ type: 1,
+ title: '分享群聊',
+ closeBtn: 0,
+ skin: 'tl-rtc-app-layer-channel-share',
+ content: `
+
+ `,
+ area: ['300px', '350px'],
+ shadeClose: true,
+ resize: false,
+ yes: function (index) {
+ layer.close(index)
+ },
+ success: function (layero, index) {
+ layero.css({
+ 'border-radius': '6px',
+ })
+ let _that = that
+ const { skinBodyBackground, skinBodyColor } = window.tl_rtc_app_comm.getPropertyValues([
+ { key: "skinBodyBackground", value: "skin-body-background" },
+ { key: "skinBodyColor", value: "skin-body-color" },
+ ])
+
+ const content = window.tl_rtc_app_comm.addUrlHashParams({
+ [that.channelShareHashKey]: that.channelId
+ })
+
+ window.tl_rtc_app_comm.getQrCode(
+ "tl-rtc-app-channel-share-image", content, skinBodyColor, skinBodyBackground
+ )
+
+ document.getElementById('copyChannelShareLink').addEventListener('click', function(){
+ window.tl_rtc_app_comm.copyTxt('copyChannelShareLink', content)
+
+ that.popSuccessMsg('复制成功')
+ })
+
+ document.getElementById('saveChannelShareImage').addEventListener('click', function(){
+ window.tl_rtc_app_comm.saveQrCode('tl-rtc-app-channel-share-image')
+ })
+ }
+ })
+ },
+ /**
+ * 处理分享加入群聊
+ * @returns
+ */
+ handlerShareJoinGroupChannel: async function(){
+ let that = this
+ let hash = window.location.hash || "";
+ if (!hash || !hash.includes("#") || !hash.includes(this.channelShareHashKey + "=")) {
+ return
+ }
+
+ let shareChannelId = window.tl_rtc_app_comm.getRequestHashArgs(this.channelShareHashKey);
+
+ if(!shareChannelId){
+ return
+ }
+
+ window.location.hash = window.location.hash.replace(this.channelShareHashKey + "=" + shareChannelId, "")
+
+ const params = {
+ channelId: shareChannelId
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ return
+ }
+ const { data: channelRes } = await this.tlRequest({
+ url: '/api/web/channel/get-channel-name',
+ method: 'get',
+ useCache: false,
+ params: params,
+
+ })
+ if(!channelRes.success){
+ this.popErrorMsg(channelRes.msg)
+ return
+ }
+
+ const shareChannelName = channelRes.data.channelName
+
+ layer.confirm("是否加入群聊 - " + shareChannelName, async (index) => {
+ const params = {
+ channelId: shareChannelId
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ that.popErrorMsg("请求参数非法")
+ return
+ }
+ const { data: joinChannelRes } = await that.tlRequest({
+ url: '/api/web/channel-user/share-join-channel',
+ method: 'post',
+ useCache: false,
+ data: params,
+ })
+
+ layer.close(index)
+
+ if(!joinChannelRes.success){
+ that.popErrorMsg(joinChannelRes.msg)
+ return
+ }
+
+ await that.emitSubModuleEvent({
+ event: 'sub-module-channel-list-init'
+ })
+ })
+ },
+ },
+ mounted() {
+ // 处理分享加入群聊
+ this.handlerShareJoinGroupChannel()
+ },
+ created() {
+ // 监听频道数据变更
+ window.subModule.$on('sub-module-channel-content-open', this.openChannelContent)
+
+ // 监听频道消息滚动到底部
+ window.subModule.$on('sub-module-channel-content-scroll-to-bottom', this.moduleScrollToBottom)
+
+ // 快捷设置频道置顶
+ window.subModule.$on('sub-module-channel-content-update-channel-top-quick', this.updateChannelToTopQuick)
+
+ // 快捷邀请用户进群
+ window.subModule.$on('sub-module-channel-content-invite-user-quick', this.inviteChannelUserQuick)
+
+ // 快捷删除好友
+ window.subModule.$on('sub-module-channel-content-delete-friend-quick', this.deleteFriendQuick)
+
+ // 快捷退出群聊
+ window.subModule.$on('sub-module-channel-content-exit-group-channel-quick', this.exitGroupChannelQuick)
+
+ // 添加邀请消息
+ window.subModule.$on('sub-module-channel-content-add-invite-message', this.pushChannelInviteMessage)
+
+ // 修改好友备注
+ window.subModule.$on('sub-module-channel-content-update-friend-name', this.updateFriendName)
+
+ // 修改群聊名称
+ window.subModule.$on('sub-module-channel-content-update-group-channel-name', this.updateGroupChannelName)
+
+ // 删除消息
+ window.subModule.$on('sub-module-channel-content-delete-channel-message', this.deleteChannelMessage)
+
+ // 撤回消息
+ window.subModule.$on('sub-module-channel-content-rollback-channel-message', this.rollbackChannelMessage)
+ },
+ components: {
+ 'tl_rtc_app_module_channel_content_tool': window.tl_rtc_app_module_channel_content_tool,
+ 'tl_rtc_app_module_channel_content_body': window.tl_rtc_app_module_channel_content_body,
+ 'tl_rtc_app_module_channel_content_textarea': window.tl_rtc_app_module_channel_content_textarea,
+ 'tl_rtc_app_module_channel_content_more': window.tl_rtc_app_module_channel_content_more,
+ 'tl_rtc_app_module_channel_content_invite': window.tl_rtc_app_module_channel_content_invite,
+ },
+ template: `
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ `
+}
+
+window.tl_rtc_app_module_channel_content = tl_rtc_app_module_channel_content
\ No newline at end of file
diff --git a/web-v2-res/js/module/channel/content/body.js b/web-v2-res/js/module/channel/content/body.js
new file mode 100644
index 0000000..5220853
--- /dev/null
+++ b/web-v2-res/js/module/channel/content/body.js
@@ -0,0 +1,482 @@
+const tl_rtc_app_module_channel_content_body = {
+ props : {
+ channelId : {
+ type : String,
+ default : ''
+ },
+ channelMessages : {
+ type : Array,
+ default : []
+ },
+ socketId : {
+ type : String,
+ default : ''
+ },
+ user: {
+ type: Object,
+ default: function(){
+ return {
+ userId: '', // 用户id
+ username: '', // 用户名称
+ userAvatar: '', // 用户头像
+ }
+ }
+ },
+ isMobile: {
+ type: Boolean,
+ default: false
+ },
+ company: {
+ type: Object,
+ default: function(){
+ return {
+ name: ''
+ }
+ }
+ },
+ channelMessageAllLoad: {
+ type: Boolean,
+ default: false
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ watch: {
+ channelMessages: {
+ deep: true,
+ immediate: true,
+ handler: function(val){
+ let that = this
+ this.$nextTick(function(){
+ that.registerMessageMenu()
+ })
+ },
+ },
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ },
+ replyToMessageId: function (val) {
+ const bottomBlock = document.querySelector('.tl-rtc-app-right-channel-content-bottom')
+ const replyContentBlock = document.querySelector('.tl-rtc-app-right-channel-content-body-reply-content-block')
+ if(bottomBlock && replyContentBlock){
+ replyContentBlock.style.bottom = bottomBlock.offsetHeight + 42 + 'px'
+ }
+ }
+ },
+ computed: {
+ propsChannelId(){
+ return this.channelId;
+ },
+ propsChannelMessages(){
+ return this.channelMessages;
+ },
+ propsSocketId(){
+ return this.socketId;
+ },
+ propsUserId(){
+ return this.user.userId;
+ },
+ propsUser(){
+ return this.user;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsCompanyName(){
+ return this.company.name;
+ },
+ propsChannelMessageAllLoad(){
+ return this.channelMessageAllLoad;
+ },
+ canRollbackMessage(){
+ return function(item){
+ return item.messageTimeStamp > Date.now() - 2 * 60 * 1000
+ }
+ },
+ },
+ data : function(){
+ return {
+ isLoadingMore : false, // 加载更多
+ isPressEvent: false, // 单击事件
+ isDoubleTapEvent: false, // 双击事件
+
+ replyToMessageId: '', // 回复消息id
+ replyToMessageType: '', // 回复消息类型
+ replyToMessageContent: '', // 回复消息内容
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 注册消息菜单
+ */
+ registerMessageMenu: function(){
+ let that = this;
+ for(let i = 0; i < this.channelMessages.length; i++){
+ const message = this.channelMessages[i]
+ const type = message.type
+ if(type === 'system'){
+ continue
+ }
+ // 注册自定义菜单
+ this.emitSubModuleEvent({
+ event: 'component-menu-register-custom',
+ data: {
+ elemId: '#' + type + '-message-content-' + message.id,
+ eventList: ['press', 'doubleTap'],
+ menuIdList: [
+ 'copyMessage',
+ 'replyMessage',
+ 'rollbackMessage',
+ 'deleteMessage'
+ ],
+ extra: message,
+ pressCallback: function(){
+ that.isPressEvent = true
+ },
+ pressUpCallback: function(){
+ setTimeout(() => {
+ that.isPressEvent = false
+ }, 300);
+ },
+ doubleTapCallback: function(){
+ that.isDoubleTapEvent = true
+
+ setTimeout(() => {
+ that.isDoubleTapEvent = false
+ }, 300)
+ }
+ }
+ })
+ }
+ },
+ /**
+ * 用户信息弹窗
+ * @param {*} event
+ */
+ userInfoPopup: async function(event, user){
+ if (!user || !user.fromUserId) {
+ return
+ }
+ // 根据userId获取用户基础信息
+ let { type, userInfo } = await this.emitSubModuleEvent({
+ event: 'component-popup-user-info-popup',
+ data: {
+ clientX: event.clientX,
+ clientY: event.clientY,
+ userInfo: {
+ id: user.fromUserId
+ },
+ }
+ })
+
+ if(type === 'chat'){
+ await this.emitSubModuleEvent({
+ event: 'sub-module-contact-content-send-message',
+ data: {
+ channelId: userInfo.channelId,
+ }
+ })
+ }else if(type === 'video'){
+ await this.emitSubModuleEvent({
+ event: 'sub-module-contact-content-send-video',
+ data: {
+ channelId: userInfo.channelId,
+ }
+ })
+ }else if(type === 'audio'){
+ await this.emitSubModuleEvent({
+ event: 'sub-module-contact-content-send-audio',
+ data: {
+ channelId: userInfo.channelId,
+ }
+ })
+ }
+ },
+ /**
+ * 加载更多消息
+ */
+ loadMoreMessage: async function(){
+ let that = this
+
+ this.isLoadingMore = true
+
+ await this.emitSubModuleEvent({
+ event: 'sub-module-channel-list-load-channel-message',
+ data: {
+ channelId: this.propsChannelId,
+ }
+ })
+
+ this.isLoadingMore = false
+ },
+ mouseEnter: function(event, item){
+ if(this.propsIsMobile){
+ return
+ }
+ tl_rtc_app_comm.mouseEnterTips({
+ id: event.target.id,
+ text: item.fromUserName,
+ position: 'top'
+ });
+ },
+ mouseLeave: function(){
+ if(this.propsIsMobile){
+ return
+ }
+ tl_rtc_app_comm.mouseLeaveTips();
+ },
+ /**
+ * 生成@用户文本
+ * @param {*} item
+ */
+ generateAtUserText: function(item){
+ this.emitSubModuleEvent({
+ event: 'sub-module-channel-content-generate-at-user-text',
+ data: {
+ atUserId: item.fromUserId,
+ atUserName: item.fromUserName,
+ }
+ })
+ },
+ /**
+ * 回复消息
+ * @param {*} item
+ */
+ replyMessage: function(item){
+ this.replyToMessageId = item.id
+ this.replyToMessageType = item.type
+ this.replyToMessageContent = item.message
+
+ this.emitSubModuleEvent({
+ event: 'sub-module-channel-content-set-textarea-reply-message',
+ data: {
+ replyToMessageId: item.id,
+ replyToMessageType: item.type,
+ replyToMessageContent: item.message,
+ }
+ })
+ },
+ /**
+ * 清除回复消息
+ */
+ clearReplyMessage: function(){
+ this.replyToMessageId = ''
+ this.replyToMessageType = ''
+ this.replyToMessageContent = ''
+
+ this.emitSubModuleEvent({
+ event: 'sub-module-channel-content-clear-textarea-reply-message',
+ })
+ },
+ /**
+ * 删除消息
+ * @param {*} item
+ */
+ deleteMessage: function(item){
+ console.log('删除 : ', item)
+ this.popWarningMsg('暂未开放')
+ },
+ /**
+ * 撤回消息
+ * @param {*} item
+ */
+ rollbackMessage: function(item){
+ if(item.messageTimeStamp < Date.now() - 2 * 60 * 1000){
+ this.popWarningMsg('时间超过2分钟不支持撤回')
+ return
+ }
+
+ this.emitSubModuleEvent({
+ event: 'sub-module-channel-content-rollback-channel-message',
+ data: {
+ messageId: item.id,
+ channelId: this.propsChannelId,
+ messageType: item.type,
+ }
+ })
+ },
+ /**
+ * 打开回复表情弹窗
+ * @param {*} item
+ */
+ openEmojiPopup: function(event, item){
+ // 回复消息
+ this.replyMessage(item)
+
+ this.emitSubModuleEvent({
+ event: 'sub-module-channel-content-open-face',
+ data: {
+ elem: event.target,
+ }
+ })
+ },
+ /**
+ * 快速回复消息
+ * @param {*} messageId
+ * @param {*} messageType
+ * @param {*} messageContent
+ * @param {*} callback
+ */
+ quickReplyMessage: function({
+ messageId, messageType, messageContent, callback
+ }){
+ this.replyMessage({
+ id: messageId,
+ type: messageType,
+ message: messageContent,
+ })
+
+ callback && callback()
+ },
+ /**
+ * 快速撤回消息
+ * @param {*} messageId
+ * @param {*} callback
+ */
+ quickRollbackMessage: function({
+ messageId, messageType, callback
+ }){
+ this.rollbackMessage({
+ id: messageId,
+ type: messageType,
+ })
+
+ callback && callback()
+ },
+ },
+ mounted() {
+
+ },
+ created(){
+ // 清除回复消息
+ window.subModule.$on('sub-module-channel-content-clear-body-reply-message', this.clearReplyMessage)
+
+ // 快速回复消息
+ window.subModule.$on('sub-module-channel-content-quick-reply-message', this.quickReplyMessage)
+
+ // 快速撤回消息
+ window.subModule.$on('sub-module-channel-content-quick-rollback-message', this.quickRollbackMessage)
+ },
+ template: `
+
+
+
+
+
{{item.messageTimeStampFormat}}
+
{{item.message}}
+
+
+
{{item.messageTimeStampFormat}}
+
+
+
![]()
+
+
+
+
+ {{item.fromUserName}} @
+
+
+
+
+
+
+
+
+
+
+
+
+
{{item.messageTimeStampFormat}}
+
+
+
![]()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ `,
+}
+
+window.tl_rtc_app_module_channel_content_body = tl_rtc_app_module_channel_content_body
\ No newline at end of file
diff --git a/web-v2-res/js/module/channel/content/invite.js b/web-v2-res/js/module/channel/content/invite.js
new file mode 100644
index 0000000..8a03c31
--- /dev/null
+++ b/web-v2-res/js/module/channel/content/invite.js
@@ -0,0 +1,613 @@
+const tl_rtc_app_module_channel_content_invite = {
+ props : {
+ channelId : {
+ type : String,
+ default : ''
+ },
+ channelName : {
+ type : String,
+ default : ''
+ },
+ channelType : {
+ type : String,
+ default : ''
+ },
+ channelMessages : {
+ type : Array,
+ default : function(){
+ return []
+ }
+ },
+ channelUsers : {
+ type : Array,
+ default : function(){
+ return []
+ }
+ },
+ socketId : {
+ type : String,
+ default : ''
+ },
+ socket: {
+ type: Object,
+ default: function(){
+ return {}
+ }
+ },
+ user: {
+ type: Object,
+ default: function(){
+ return {
+ userId: '', // 用户id
+ username: '', // 用户名称
+ userAvatar: '', // 用户头像
+ }
+ }
+ },
+ isMobile: {
+ type: Boolean,
+ default: false
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ computed: {
+ propsChannelId(){
+ return this.channelId;
+ },
+ propsChannelName(){
+ return this.channelName;
+ },
+ propsSocketId(){
+ return this.socketId;
+ },
+ propsSocket(){
+ return this.socket;
+ },
+ propsUserId(){
+ return this.user.userId;
+ },
+ propsChannelUsers(){
+ return this.channelUsers;
+ },
+ propsChannelMessages(){
+ return this.channelMessages;
+ },
+ propsChannelType(){
+ return this.channelType;
+ },
+ propsUser(){
+ return this.user;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ watch:{
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ data : function(){
+ return {
+ // 选择的好友列表
+ chooseUserFriendList : [],
+ // 好友列表
+ userFriendList: [],
+ chooseFriendSwiper: null
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * laytpl渲染
+ * @param {*} tpl_html
+ * @param {*} data
+ * @param {*} tpl_view_html
+ * @param {*} callback
+ */
+ tplRender: function ({tpl_html, data, tpl_view_html, callback}) {
+ if (window.laytpl) {
+ laytpl(tpl_html.innerHTML).render(data, (html) => {
+ tpl_view_html.innerHTML = html;
+ if (callback) {
+ callback()
+ }
+ });
+ }
+ },
+ /**
+ * 好友列表渲染
+ * @param {*} existUserIdList
+ */
+ userFriendListTplRender: async function(existUserIdList){
+ let that = this
+ let userFriendList = await this.emitSubModuleEvent({
+ event: 'sub-module-contact-list-get',
+ })
+
+ userFriendList = userFriendList.map(user => {
+ if(existUserIdList.includes(user.userId)){
+ user.disabled = true
+ }else{
+ user.disabled = false
+ }
+ return user
+ })
+
+ this.userFriendList = userFriendList
+
+ const userFriendListTpl = document.getElementById("user_friend_list_tpl")
+ const userFriendListTplView = document.getElementById("user_friend_list_tpl_view")
+
+ this.tplRender({
+ tpl_html: userFriendListTpl,
+ tpl_view_html: userFriendListTplView,
+ data: userFriendList,
+ callback: function(){
+ window.form.render()
+
+ const checkboxDoms = document.getElementsByClassName("layui-form-checkbox")
+ if(checkboxDoms){
+ for(let i = 0; i < checkboxDoms.length; i++){
+ const checkboxDom = checkboxDoms[i]
+ checkboxDom.parentElement.onclick = function(){
+ checkboxDom.click()
+ }
+ }
+ }
+
+ // 初始化频道列表swiper
+ new Swiper('#user_friend_list_tpl_view', {
+ slidesPerView: userFriendListTplView.clientHeight / 65,
+ direction: 'vertical',
+ loop: false,
+ observer: true,
+ mousewheel: true, // 鼠标滚轮控制
+ forceToAxis: true, // 滚动条只能在一个方向上拖动
+ freeMode: {
+ momentumRatio: 1, // 惯性动量比
+ momentumBounceRatio: 0, // 滑动反弹
+ minimumVelocity: 0, // 最小滑动速度
+ },
+ scrollbar: {
+ el: '#user-invite-swiper-scrollbar',
+ hide: true,
+ }
+ });
+ }
+ })
+ },
+ /**
+ * 选择的好友列表渲染
+ */
+ chooseUserFriendListTplRender: function(){
+ let that = this
+ const chooseUserFriendListTpl = document.getElementById("choose_user_friend_list_tpl")
+ const chooseUserFriendListTplView = document.getElementById("choose_user_friend_list_tpl_view")
+
+ let slidesPerView = 0
+ let direction = ''
+ if(this.isMobile){
+ slidesPerView = chooseUserFriendListTplView.clientWidth / 80
+ direction = 'horizontal'
+ }else{
+ slidesPerView = chooseUserFriendListTplView.clientHeight / 65
+ direction = 'vertical'
+ }
+
+ this.tplRender({
+ tpl_html: chooseUserFriendListTpl,
+ tpl_view_html: chooseUserFriendListTplView,
+ data: this.chooseUserFriendList,
+ callback: function(){
+ new Swiper('#choose_user_friend_list_tpl_view', {
+ slidesPerView: slidesPerView,
+ direction: direction,
+ loop: false,
+ observer: true,
+ mousewheel: true, // 鼠标滚轮控制
+ forceToAxis: true, // 滚动条只能在一个方向上拖动
+ spaceBetween: 10,
+ freeMode: {
+ momentumRatio: 1, // 惯性动量比
+ momentumBounceRatio: 0, // 滑动反弹
+ minimumVelocity: 0, // 最小滑动速度
+ }
+ });
+ const titleDom = document.getElementsByClassName("tl-rtc-app-right-channel-content-invite-header-title")
+ if (titleDom && titleDom[0]){
+ titleDom[0].innerText = '已选择('+that.chooseUserFriendList.length+')人'
+ }
+ }
+ })
+ },
+ /**
+ * 将checkbox事件绑定到删除按钮
+ * @param {*} userId
+ */
+ bindDeleteChooseUserFriend: function(userId){
+ let deleteSvgDoms = document.getElementsByClassName("invite_remove_svg")
+ let checkboxDoms = document.getElementsByClassName("layui-form-checkbox")
+
+ for (let i = 0; i < deleteSvgDoms.length; i++) {
+ const svgDom = deleteSvgDoms[i];
+ const svgUid = svgDom.dataset["uId"]
+ if(parseInt(svgUid) !== parseInt(userId)){
+ continue
+ }
+
+ // 找到对应的checkbox
+ let hitCheckboxDom = null
+ for(let j = 0; j < checkboxDoms.length; j++){
+ const checkboxDom = checkboxDoms[j]
+ const parentElement = checkboxDom.parentElement
+ if(!parentElement){
+ continue
+ }
+ const allChildNodes = parentElement.childNodes
+ if(!allChildNodes){
+ continue
+ }
+ for(let k = 0; k < allChildNodes.length; k++){
+ const childNode = allChildNodes[k]
+ if(childNode.tagName !== "INPUT"){
+ continue
+ }
+ if(childNode.name !== `user_${userId}`){
+ continue
+ }
+ hitCheckboxDom = childNode
+ break
+ }
+ if(hitCheckboxDom){
+ svgDom.onclick = checkboxDom.click()
+ break
+ }
+ }
+ }
+ },
+ /**
+ * 打开pc选择面板
+ */
+ operPcInviteChannelUser: async function({
+ existUserIdList = []
+ }){
+ let that = this;
+
+ await new Promise(resolve => {
+ layer.open({
+ type: 1,
+ closeBtn: that.isMobile ? 1 : 0,
+ fixed: true,
+ maxmin: false,
+ shadeClose: true,
+ shade: 0.4,
+ title: false,
+ area: ['550px', '450px'],
+ btn: ['确定', '取消'],
+ skin: 'tl-rtc-app-layer-channel-invite',
+ success: async function (layero, index) {
+ layero.find(".layui-layer-content").css({
+ "overflow": "hidden",
+ })
+
+ layero.css({
+ "border-radius": "6px",
+ })
+
+ document.getElementById('user_friend_list_tpl_view').style.height = '340px'
+ document.getElementById('choose_user_friend_list_tpl_view').style.height = '340px'
+
+ // 渲染用户列表
+ await that.userFriendListTplRender(existUserIdList)
+
+ resolve()
+ },
+ end: function(){
+ that.chooseUserFriendList = []
+ },
+ yes: async function(index){
+ await that.confirmInvite(index)
+ },
+ content: `
+
+ `
+ })
+ })
+ },
+ /**
+ * 打开mobile选择面板
+ */
+ operMobileInviteChannelUser: async function({
+ existUserIdList = []
+ }){
+ let that = this;
+
+ await new Promise(resolve => {
+ layer.open({
+ type: 1,
+ closeBtn: that.isMobile ? 1 : 0,
+ fixed: true,
+ maxmin: false,
+ shadeClose: true,
+ shade: 0.4,
+ title: '邀请好友',
+ area: ['100%', '100%'],
+ btn: ['确定', '取消'],
+ skin: 'tl-rtc-app-layer-channel-invite',
+ success: async function (layero, index) {
+ layero.find(".layui-layer-content").css({
+ "overflow": "hidden",
+ })
+
+ document.getElementById('choose_user_friend_list_tpl_view').style.height = '80px'
+ document.getElementById('choose_user_friend_list_tpl_view').style.width = layero[0].clientWidth + 'px'
+
+ document.getElementById('user_friend_list_tpl_view').style.height = layero[0].clientHeight - 241 + 'px'
+
+ // 渲染用户列表
+ await that.userFriendListTplRender(existUserIdList)
+
+ resolve()
+ },
+ end: function(){
+ that.chooseUserFriendList = []
+ },
+ yes: async function(index){
+ await that.confirmInvite(index)
+ },
+ content: `
+
+ `
+ })
+ })
+ },
+ /**
+ * 打开面板
+ * @param {*} existUserIdList
+ */
+ operInviteChannelUser: async function({
+ existUserIdList = [], callback
+ }){
+ if(this.isMobile){
+ await this.operMobileInviteChannelUser({
+ existUserIdList
+ })
+ }else{
+ await this.operPcInviteChannelUser({
+ existUserIdList
+ })
+ }
+
+ callback && callback()
+ },
+ /**
+ * 确定邀请列表
+ * @returns
+ */
+ confirmInvite: async function(index){
+ let that = this;
+
+ const userIdList = this.chooseUserFriendList.map(user => user.userId)
+
+ if(userIdList.length === 0){
+ this.popWarningMsg('请选择好友')
+ return
+ }
+
+ const params = {
+ channelId: this.channelId,
+ userIdList: userIdList
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ return
+ }
+ const { data: addUserRes } = await this.tlRequest({
+ url: '/api/web/channel-user/add-channel-user-list-normal',
+ method: 'post',
+ useCache: false,
+ data: params,
+ })
+ if (!addUserRes.success) {
+ this.popErrorMsg(addUserRes.msg)
+ layer.close(index)
+ return
+ }
+
+ layer.close(index)
+
+ await this.emitSubModuleEvent({
+ event: 'sub-module-channel-content-add-invite-message',
+ data: {
+ addMessage: addUserRes.data
+ }
+ })
+
+ await this.emitSubModuleEvent({
+ event: 'sub-module-channel-list-update-channel',
+ data: {
+ channelId: this.channelId,
+ update_types: ['channelInfo', 'channelUserList', 'channelMessageList'],
+ }
+ })
+
+ // this.emitSubModuleEvent({
+ // event: 'sub-module-channel-list-item-open',
+ // data: {
+ // channelId: this.channelId
+ // }
+ // })
+
+ this.popSuccessMsg(addUserRes.msg)
+ },
+ /**
+ * 更新选择的好友列表
+ */
+ listenUpdateChooseUserFriendList: function(){
+ let that = this
+ window.form.on('checkbox', function(data){
+ const userId = data.elem.name.split("_")[1]
+ const user = that.userFriendList.find(user => user.userId === parseInt(userId))
+ if (!user) {
+ return
+ }
+ if(data.elem.checked){
+ const exist = that.chooseUserFriendList.find(user => user.userId === parseInt(userId))
+ if(!exist){
+ that.chooseUserFriendList.push({
+ channelId : user.channelId,
+ userId: user.userId,
+ userAvatar: user.userAvatar,
+ username: user.username
+ })
+ that.chooseUserFriendListTplRender()
+ }
+ }else{
+ that.chooseUserFriendList = that.chooseUserFriendList.filter(user => {
+ return user.userId !== parseInt(userId)
+ })
+ that.chooseUserFriendListTplRender()
+ }
+ })
+
+ }
+ },
+ mounted() {
+ // 监听更新选择的好友列表
+ this.listenUpdateChooseUserFriendList()
+ },
+ created(){
+ // 监听频道邀请事件
+ window.subModule.$on('sub-module-channel-invite-open', this.operInviteChannelUser);
+
+ // 移除选择的好友
+ window.removeInviteChooseUserFriend = this.bindDeleteChooseUserFriend
+ },
+ updated() {
+
+ },
+}
+
+window.tl_rtc_app_module_channel_content_invite = tl_rtc_app_module_channel_content_invite
\ No newline at end of file
diff --git a/web-v2-res/js/module/channel/content/more.js b/web-v2-res/js/module/channel/content/more.js
new file mode 100644
index 0000000..7084d39
--- /dev/null
+++ b/web-v2-res/js/module/channel/content/more.js
@@ -0,0 +1,529 @@
+const tl_rtc_app_module_channel_content_more = {
+ props : {
+ channelId : {
+ type : String,
+ default : ''
+ },
+ channelName : {
+ type : String,
+ default : ''
+ },
+ channelType : {
+ type : String,
+ default : ''
+ },
+ channelMessages : {
+ type : Array,
+ default : function(){
+ return []
+ }
+ },
+ channelUsers : {
+ type : Array,
+ default : function(){
+ return []
+ }
+ },
+ socketId : {
+ type : String,
+ default : ''
+ },
+ user: {
+ type: Object,
+ default: function(){
+ return {
+ userId: '', // 用户id
+ username: '', // 用户名称
+ userAvatar: '', // 用户头像
+ }
+ }
+ },
+ channelTop:{
+ type: Boolean,
+ default: false
+ },
+ channelBlack: {
+ type: Boolean,
+ default: false
+ },
+ isMobile: {
+ type: Boolean,
+ default: false
+ },
+ company:{
+ type: Object,
+ default: function(){
+ return {
+ name: ''
+ }
+ }
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ },
+ channelReName: {
+ type: String,
+ default: ''
+ }
+ },
+ computed: {
+ propsChannelId(){
+ return this.channelId;
+ },
+ propsChannelName(){
+ return this.channelName;
+ },
+ propsSocketId(){
+ return this.socketId;
+ },
+ propsUserId(){
+ return this.user.userId;
+ },
+ propsChannelUsers(){
+ return this.channelUsers;
+ },
+ propsChannelMessages(){
+ return this.channelMessages;
+ },
+ propsChannelType(){
+ return this.channelType;
+ },
+ propsChannelTop(){
+ return this.channelTop;
+ },
+ propsChannelBlack(){
+ return this.channelBlack;
+ },
+ propsUser(){
+ return this.user;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsCompanyName(){
+ return this.company.name;
+ },
+ propsCompany(){
+ return this.company;
+ },
+ gridGroupChannelUsers(){
+ if(this.propsChannelUsers.length < this.groupSlidesPerView * this.groupGridSize){
+ return this.chunkArray(this.propsChannelUsers, 1)
+ }
+ return this.chunkArray(this.propsChannelUsers, this.groupGridSize)
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ propsChannelReName(){
+ return this.channelReName;
+ }
+ },
+ watch:{
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ data : function(){
+ return {
+ openPanel: false,
+ friendSlidesPerView: 3, // 好友swiper每页显示数量
+ friendSwiperInstant: null, // 好友网格swiper实例
+
+ groupGridSize: 2, // 群聊网格大小
+ groupSlidesPerView: 4, // 群聊swiper每页显示数量
+ groupSwiperInstant: null, // 群聊网格swiper实例
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ chunkArray: function(array, size){
+ return array.reduce((acc, _, i) =>
+ (i % size ? acc : [...acc, array.slice(i, i + size)]), [])
+ },
+ /**
+ * 操作更多面板
+ */
+ operChannelMore: function({
+ callback
+ }){
+ let that = this
+ this.openPanel = !this.openPanel
+
+ if(this.openPanel){
+ document.querySelector('.tl-rtc-app-right-channel-content-more').style.right = "0"
+ if(this.propsIsMobile){
+ document.querySelector('.tl-rtc-app-right').style.zIndex = 'unset';
+ }
+
+ this.emitSubModuleEvent({
+ event: 'component-shade-show',
+ data: {
+ id: 'channelMoreShade',
+ className: 'tl-rtc-app-right-channel-more-shade-content-body',
+ shadeListener: {
+ click: function(){
+ that.operChannelMore({
+ callback
+ })
+ }
+ }
+ }
+ })
+ }else{
+ if(this.propsIsMobile){
+ document.querySelector('.tl-rtc-app-right').style.zIndex = 3;
+ }
+ document.querySelector('.tl-rtc-app-right-channel-content-more').style.right = "-300px"
+
+ this.emitSubModuleEvent({
+ event: 'component-shade-destroy',
+ data: {
+ id: 'channelMoreShade'
+ }
+ })
+ }
+
+ callback && callback()
+ },
+ /**
+ * 用户信息弹窗
+ * @param {*} event
+ */
+ userInfoPopup: async function(event, user){
+ let that = this
+ // 根据userId获取用户基础信息
+ if (!user || !user.userId) {
+ return
+ }
+
+ // 根据userId获取用户基础信息
+ let { type, userInfo } = await this.emitSubModuleEvent({
+ event: 'component-popup-user-info-popup',
+ data: {
+ clientX: event.clientX,
+ clientY: event.clientY,
+ userInfo: {
+ id: user.userId
+ },
+ }
+ })
+
+ // 先关闭右侧侧边栏
+ this.operChannelMore({})
+
+ if(type === 'chat'){
+ await this.emitSubModuleEvent({
+ event: 'sub-module-contact-content-send-message',
+ data: {
+ channelId: userInfo.channelId,
+ }
+ })
+ }else if(type === 'video'){
+ await this.emitSubModuleEvent({
+ event: 'sub-module-contact-content-send-video',
+ data: {
+ channelId: userInfo.channelId,
+ }
+ })
+ this.operChannelMore({})
+ }else if(type === 'audio'){
+ await this.emitSubModuleEvent({
+ event: 'sub-module-contact-content-send-audio',
+ data: {
+ channelId: userInfo.channelId,
+ }
+ })
+ this.operChannelMore({})
+ }
+ },
+ /**
+ * 更新群聊名称
+ */
+ updateGroupChannelName: async function(){
+ this.$emit('update-group-channel-name', {})
+ },
+ /**
+ * 设置频道置顶
+ */
+ updateChannelToTop: async function(){
+ this.$emit('update-channel-to-top')
+ },
+ /**
+ * 退出群聊
+ */
+ exitGroupChannel: async function(){
+ this.$emit('exit-group-channel')
+ this.operChannelMore({})
+ },
+ /**
+ * 删除好友
+ */
+ deleteFriend: async function(){
+ this.$emit('delete-friend')
+ },
+ /**
+ * 拉黑好友
+ */
+ blackFriend: async function(){
+ this.$emit('black-friend')
+ },
+ /**
+ * 更新好友备注名称
+ */
+ updateFriendName: async function(){
+ this.$emit('update-friend-name', {})
+ },
+ /**
+ * 设置群公告
+ */
+ addGroupNotice: async function(){
+ this.$emit('add-group-notice')
+ },
+ /**
+ * 分享群聊
+ */
+ groupChannelShare: async function(){
+ this.$emit('group-channel-share')
+ },
+ /**
+ * 添加群成员
+ */
+ addGroupMember: async function(){
+ this.$emit('invite-channel-user')
+ },
+ /**
+ * 移除群成员
+ */
+ removeGroupMember: async function(){
+ this.popWarningMsg('暂未开放')
+ },
+ /**
+ * 初始化swiper
+ */
+ initSwiper: function(){
+ this.friendSwiperInstant = new Swiper('#friendSwiper', {
+ slidesPerView: this.friendSlidesPerView,
+ direction: 'horizontal',
+ loop: false,
+ observer: true,
+ mousewheel: true, // 鼠标滚轮控制
+ forceToAxis: true, // 滚动条只能在一个方向上拖动
+ spaceBetween: 3,
+ freeMode: {
+ momentumRatio: 1, // 惯性动量比
+ momentumBounceRatio: 0, // 滑动反弹
+ minimumVelocity: 0, // 最小滑动速度
+ }
+ });
+
+ this.groupSwiperInstant = new Swiper('#groupSwiper', {
+ slidesPerView: this.groupSlidesPerView,
+ direction: 'horizontal',
+ observer: true,
+ mousewheel: true, // 鼠标滚轮控制
+ forceToAxis: true, // 滚动条只能在一个方向上拖动
+ freeMode: {
+ momentumRatio: 1, // 惯性动量比
+ momentumBounceRatio: 0, // 滑动反弹
+ minimumVelocity: 0, // 最小滑动速度
+ },
+ scrollbar: {
+ el : '#group-more-swiper-scrollbar',
+ hide: false, // 自动隐藏滚动条
+ }
+ });
+ }
+ },
+ mounted() {
+
+ },
+ created(){
+ // 频道打开更多面板
+ window.subModule.$on('sub-module-channel-more-open', this.operChannelMore);
+ },
+ updated() {
+ window.form.render();
+
+ window.form.val('channelMore', {
+ setTopFriend: this.propsChannelTop,
+ setTopGroup: this.propsChannelTop,
+ setBlackFriend: this.propsChannelBlack,
+ });
+
+ this.initSwiper()
+ },
+ template: `
+
+
+
+
+
+
成员列表
+
+
+ {{propsChannelUsers.length}}个成员
+
+
+
+
+
+
+
+
![]()
+
{{user.username}}
+
+
+
+
+
好友昵称
+
+
+ {{propsChannelName}}
+
+
+
+
+
好友备注
+
+
{{propsChannelReName}}
+
+
+
+
+
+
+
+
+
+
+
+
+
成员列表
+
+
+ {{propsChannelUsers.length}}个成员
+
+
+
+
+
+
+
+
+
+
![]()
+
{{item.username}}
+
+
+
+
+
+
+
群聊名称
+
+
{{propsChannelName}}
+
+
+
+
+
+
+
+ `,
+}
+
+window.tl_rtc_app_module_channel_content_more = tl_rtc_app_module_channel_content_more
\ No newline at end of file
diff --git a/web-v2-res/js/module/channel/content/textarea.js b/web-v2-res/js/module/channel/content/textarea.js
new file mode 100644
index 0000000..a6e14db
--- /dev/null
+++ b/web-v2-res/js/module/channel/content/textarea.js
@@ -0,0 +1,554 @@
+const tl_rtc_app_module_channel_content_textarea = {
+ props: {
+ channelId: {
+ type: String,
+ default: ''
+ },
+ socketId: {
+ type: String,
+ default: ''
+ },
+ user: {
+ type: Object,
+ default: function () {
+ return {
+ userId: '', // 用户id
+ username: '', // 用户名称
+ userAvatar: '', // 用户头像
+ }
+ }
+ },
+ isMobile: {
+ type: Boolean,
+ default: false
+ },
+ channelType: {
+ type: String,
+ default: ''
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ computed: {
+ propsChannelId() {
+ return this.channelId;
+ },
+ propsSocketId() {
+ return this.socketId;
+ },
+ propsUser() {
+ return this.user;
+ },
+ propsIsMobile() {
+ return this.isMobile;
+ },
+ propsChannelType() {
+ return this.channelType;
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ watch: {
+ leftModule: function (val) {
+ if(this.propsLeftModule === 'channel' && this.propsRightModule === 'content'){
+ this.$nextTick(() => {
+ this.loadLayedit(this.getLayeditHeight())
+ })
+ }
+ },
+ rightModule: function (val) {
+ if(this.propsLeftModule === 'channel' && this.propsRightModule === 'content'){
+ this.$nextTick(() => {
+ this.loadLayedit(this.getLayeditHeight())
+ })
+ }
+ }
+ },
+ data: function () {
+ return {
+ historyMessages: [], // 历史消息
+ layeditId: '', // 编辑器id
+ isResizing: false, // 是否正在调整大小
+ startY: 0, // 鼠标起始位置
+ preContent: '', // 编辑器内容
+
+ atUserId: '', // @用户id
+ atUserName: '', // @用户名称
+ isAtAll: false, // @所有人
+
+ replyToMessageId: '', // 回复消息id
+ replyToMessageType: '', // 回复消息类型
+ replyToMessageContent: '', // 回复消息内容
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 获取layedit的高度
+ * @returns
+ */
+ getLayeditHeight: function () {
+ const textareaBody = document.getElementById('channel_chat_textarea');
+ if(textareaBody.style.height){
+ let height = textareaBody.style.height.replace("px", "")
+ return height - 40 + "px";
+ }
+ const { channelEditHeight, bodyHeight } = window.tl_rtc_app_comm.getPropertyValues([
+ { key: "channelEditHeight", value: "right-channel-editor-height" },
+ { key: "bodyHeight", value: "body-height" }
+ ])
+
+ // 计算编辑器的高度
+ let editorHeight = ""
+ const isBodyHeightPersent = bodyHeight.indexOf("%") !== -1
+ if(isBodyHeightPersent){
+ editorHeight = (
+ Number(channelEditHeight.replace("%", "")) * (
+ window.innerHeight * Number(bodyHeight.replace("%", "")) / 100
+ ) / 100 - 85
+ ) + "px"
+ }else{
+ editorHeight = (
+ Number(channelEditHeight.replace("px", "")) * (
+ window.innerHeight
+ ) / 100 - 85
+ ) + "px"
+ }
+
+ return editorHeight
+ },
+ /**
+ * 保存最近使用表情
+ * @param {*} face
+ */
+ saveRecentFace: function(face){
+ let recentFaceList = localStorage.getItem('recentFaceList')
+ if(recentFaceList){
+ recentFaceList = JSON.parse(recentFaceList)
+ }else{
+ recentFaceList = []
+ }
+ if(recentFaceList.length >= 30){
+ recentFaceList.pop()
+ }
+ // 去重
+ recentFaceList = recentFaceList.filter(item => item.alt !== face.alt)
+ recentFaceList.unshift(face)
+ localStorage.setItem('recentFaceList', JSON.stringify(recentFaceList))
+ },
+ /**
+ * 获取最近使用表情
+ * @returns
+ */
+ getRecentFaceList: function(){
+ let recentFaceList = localStorage.getItem('recentFaceList')
+ if(recentFaceList){
+ return JSON.parse(recentFaceList)
+ }
+ return []
+ },
+ /**
+ * 加载富文本编辑器
+ * @param {*} layeditHeight
+ */
+ loadLayedit: function (layeditHeight) {
+ let that = this;
+
+ const options = {
+ elem: null,
+ tool: ['face'],
+ height: layeditHeight,
+ face: {
+ recentFaceList: that.getRecentFaceList(),
+ defaultFaceList: [
+ "[小丑]", "[冷漠]", "[可爱]", "[偷笑]", "[调皮]", "[哭笑]",
+ ],
+ textFaceList: [
+ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z",
+ "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "-", "_", "+", "=", "[", "]", "{", "}", "|", ":", ";", "'", "<", ">", "?", "/", ".", ",",
+ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",
+ ],
+ customFaceList: [],
+ clickFaceCallback: function(face){
+ // 保存为最近使用
+ that.saveRecentFace(face)
+
+ try{
+ // 移除选中
+ let textareaIframeDom = null
+ let textareaIframe = document.getElementsByTagName("iframe");
+ if (textareaIframe && textareaIframe.length >= 1) {
+ for (let i = 0; i < textareaIframe.length; i++) {
+ if (textareaIframe[i].id.includes("LAY_layedit")) {
+ textareaIframeDom = textareaIframe[i].contentDocument.body
+ }
+ }
+ }
+
+ // 移除选中
+ if(textareaIframeDom){
+ textareaIframeDom.ownerDocument.getSelection().removeAllRanges()
+ }
+ }catch(e){
+ console.log(e)
+ }
+ }
+ },
+ cusFace: {
+ cusFaceCallback: function () {
+
+ }
+ }
+ }
+
+ this.layeditId = layedit.build('tl-rtc-app-chat-textarea', options);
+
+ let textareaIframeDom = null
+ let textareaIframe = document.getElementsByTagName("iframe");
+ if (textareaIframe && textareaIframe.length >= 1) {
+ for (let i = 0; i < textareaIframe.length; i++) {
+ if (textareaIframe[i].id.includes("LAY_layedit")) {
+ textareaIframeDom = textareaIframe[i].contentDocument.body
+ }
+ }
+ }
+
+ if(textareaIframeDom){
+ window.tl_rtc_app_comm.keydownCallback(textareaIframeDom, this.sendTextareaMessage)
+ }
+
+ // 设置编辑器字体颜色
+ setTimeout(() => {
+ const { skinBodyColor } = window.tl_rtc_app_comm.getPropertyValues([
+ { key: "skinBodyColor", value: "skin-body-color" }
+ ])
+ if(textareaIframeDom){
+ textareaIframeDom.style.color = skinBodyColor
+ }
+ }, 500)
+ },
+ /**
+ * 发送消息
+ * @returns
+ */
+ sendTextareaMessage: function () {
+ let realContent = layedit.getContent(this.layeditId)
+ let text = layedit.getText(this.layeditId)
+
+ if (realContent.length > 20000 || text.length > 10000) {
+ this.popWarningMsg("消息内容过长")
+ return;
+ }
+
+ if(realContent.length === 0 || realContent.trim().length === 0){
+ this.popWarningMsg("请输入消息内容")
+ return;
+ }
+
+ if((
+ realContent.length > 0 && !window.tl_rtc_app_comm.containChinese(realContent)
+ ) && text.length === 0){
+ this.popWarningMsg("请输入消息内容")
+ return;
+ }
+
+ const messageData = {
+ message: realContent,
+ atUserId: this.atUserId,
+ atUserName: this.atUserName,
+ isAtAll: this.isAtAll,
+ replyToMessageId: this.replyToMessageId,
+ replyToMessageType: this.replyToMessageType,
+ }
+
+ // 发送消息
+ this.sendChannelMessage({
+ messageData
+ })
+
+ // 清空输入
+ layedit.setContent(this.layeditId, "", false)
+ },
+ /**
+ * 发送频道消息
+ */
+ sendChannelMessage: function({
+ messageData, callback
+ }){
+ // 添加到历史记录
+ if (this.historyMessages.length > 10) {
+ this.historyMessages.unshift()
+ }
+ this.historyMessages.push(messageData)
+
+ // 通知父模块,数据变更
+ this.$emit('push-channel-message', messageData)
+
+ callback && callback()
+ },
+ /**
+ * 调整textarea的大小
+ */
+ resizeTextarea: function () {
+ let that = this
+ const resizeHandle = document.querySelector('.tl-rtc-app-right-channel-content-bottom-resize-handle');
+ const textareaBody = document.getElementById('channel_chat_textarea');
+ const contentBody = document.querySelector('.tl-rtc-app-right-channel-content-body');
+ let replyMessageBlock = document.querySelector('.tl-rtc-app-right-channel-content-body-reply-content-block');
+
+ const downHandler = (e) => {
+ that.isResizing = true;
+ that.startY = e.clientY; // 记录初始鼠标Y位置
+ document.body.style.cursor = 'row-resize';
+
+ that.preContent = layedit.getContent(that.layeditId)
+
+ replyMessageBlock = document.querySelector('.tl-rtc-app-right-channel-content-body-reply-content-block');
+
+ document.addEventListener('mouseup', upHandler);
+ document.addEventListener('mousemove', moveHandler);
+
+ resizeHandle.addEventListener('touchend', upHandler);
+ resizeHandle.addEventListener('touchmove', moveHandler);
+ }
+
+ const moveHandler = (e) => {
+ if (!that.isResizing) return;
+ let moveHeight = that.startY - e.clientY
+
+ const textareaRect = textareaBody.getBoundingClientRect();
+ let newHeight = textareaRect.height + moveHeight
+ if (newHeight < 100){
+ newHeight = 100
+ moveHeight = newHeight - textareaRect.height
+ }else if(newHeight > 300){
+ newHeight = 300
+ moveHeight = newHeight - textareaRect.height
+ }
+ textareaBody.style.height = newHeight + 'px';
+
+ const bodyRect = contentBody.getBoundingClientRect();
+ const newBodyHeight = bodyRect.height - moveHeight
+ contentBody.style.height = newBodyHeight + 'px';
+
+ if(replyMessageBlock && that.replyToMessageId){
+ replyMessageBlock.style.bottom = newHeight + 42 + 'px'
+ }
+
+ that.startY = e.clientY;
+
+ // 禁用body的选中
+ document.body.style.userSelect = 'none';
+ }
+
+ const upHandler = () => {
+ that.isResizing = false;
+ document.body.style.cursor = 'default';
+
+ // 启用body的滚动和选中
+ document.body.style.userSelect = 'auto';
+
+ that.emitSubModuleEvent({
+ event: 'sub-module-channel-content-scroll-to-bottom'
+ })
+
+ // 保存编辑器高度
+ that.loadLayedit(that.getLayeditHeight())
+
+ // 重新渲染编辑器内容
+ layedit.setContent(that.layeditId, that.preContent, false)
+
+ // 卸载down和move事件
+ document.removeEventListener('mouseup', upHandler);
+ document.removeEventListener('mousemove', moveHandler);
+
+ resizeHandle.removeEventListener('touchend', upHandler);
+ resizeHandle.removeEventListener('touchmove', moveHandler);
+ }
+
+ // pc端
+ resizeHandle.addEventListener('mousedown', downHandler);
+ // 移动端
+ resizeHandle.addEventListener('touchstart', downHandler);
+ },
+ /**
+ * 艾特用户模版
+ * @param {*} atUserName
+ * @returns
+ */
+ atUserText: function(atUserName){
+ return '@'+atUserName+' '
+ },
+ /**
+ * 生成@用户文本
+ * @param {*} item
+ */
+ generateAtUserText: function({
+ atUserId, atUserName, isAtAll, callback
+ }){
+ let textareaIframeDom = null
+ let textareaIframe = document.getElementsByTagName("iframe");
+ if (textareaIframe && textareaIframe.length >= 1) {
+ for (let i = 0; i < textareaIframe.length; i++) {
+ if (textareaIframe[i].id.includes("LAY_layedit")) {
+ textareaIframeDom = textareaIframe[i].contentDocument.body
+ }
+ }
+ }
+
+ // 生成@用户文本
+ if(atUserId && atUserName){
+ textareaIframeDom.innerHTML += this.atUserText(atUserName)
+ }
+
+ // 生成@所有人文本
+ if(isAtAll){
+ textareaIframeDom.innerHTML += this.atUserText('所有人')
+ }
+
+ this.atUserId = atUserId
+ this.atUserName = atUserName
+ this.isAtAll = isAtAll
+
+ callback && callback()
+ },
+ /**
+ * 设置回复消息
+ * @param {*} replyToMessageId
+ * @param {*} replyToMessageContent
+ * @param {*} callback
+ */
+ setReplyMessage: function({
+ replyToMessageId, replyToMessageType, replyToMessageContent, callback
+ }){
+ this.replyToMessageId = replyToMessageId
+ this.replyToMessageType = replyToMessageType
+ this.replyToMessageContent = replyToMessageContent
+
+ callback && callback()
+ },
+ /**
+ * 清除回复消息
+ */
+ clearReplyMessage: function({
+ callback
+ }){
+ this.replyToMessageId = ''
+ this.replyToMessageType = ''
+ this.replyToMessageContent = ''
+
+ callback && callback()
+ },
+ /**
+ * 打开表情选择
+ */
+ openFace: function({
+ elem,
+ callback
+ }){
+ let that = this
+
+ layedit.face({
+ elem: elem,
+ recentFaceList: this.getRecentFaceList(),
+ defaultFaceList: [
+ "[小丑]", "[冷漠]", "[可爱]", "[偷笑]", "[调皮]", "[哭笑]",
+ ],
+ textFaceList: [
+ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z",
+ "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "-", "_", "+", "=", "[", "]", "{", "}", "|", ":", ";", "'", "<", ">", "?", "/", ".", ",",
+ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",
+ ],
+ customFaceList: [],
+ clickFaceCallback: function(face){
+ // 保存为最近使用
+ that.saveRecentFace(face)
+
+ let textareaIframeDom = null
+ let textareaIframe = document.getElementsByTagName("iframe");
+ if (textareaIframe && textareaIframe.length >= 1) {
+ for (let i = 0; i < textareaIframe.length; i++) {
+ if (textareaIframe[i].id.includes("LAY_layedit")) {
+ textareaIframeDom = textareaIframe[i].contentDocument.body
+ }
+ }
+ }
+
+ if(!textareaIframeDom){
+ return
+ }
+
+ if(face.type === 'img'){
+ let elem = document.createElement('img')
+ for(var key in face){
+ elem.setAttribute(key, face[key]);
+ }
+ textareaIframeDom.appendChild(elem)
+ }else if(face.type === 'text'){
+ textareaIframeDom.innerHTML += face.alt
+ }
+ }
+ });
+
+ callback && callback()
+ }
+ },
+ mounted: async function() {
+ let that = this
+
+ this.resizeTextarea()
+ },
+ created(){
+ // 发送频道消息
+ window.subModule.$on('sub-module-channel-texarea-send-message', this.sendChannelMessage)
+
+ // 生成@用户文本
+ window.subModule.$on('sub-module-channel-content-generate-at-user-text', this.generateAtUserText)
+
+ // 设置回复消息
+ window.subModule.$on('sub-module-channel-content-set-textarea-reply-message', this.setReplyMessage)
+
+ // 清除回复消息
+ window.subModule.$on('sub-module-channel-content-clear-textarea-reply-message', this.clearReplyMessage)
+
+ // 打开表情选择
+ window.subModule.$on('sub-module-channel-content-open-face', this.openFace)
+ },
+ template: `
+
+
+
+
+
+
enter 发送 | shift+enter 换行
+
+
+
+
+ `,
+}
+
+window.tl_rtc_app_module_channel_content_textarea = tl_rtc_app_module_channel_content_textarea
\ No newline at end of file
diff --git a/web-v2-res/js/module/channel/content/tool.js b/web-v2-res/js/module/channel/content/tool.js
new file mode 100644
index 0000000..74dce6f
--- /dev/null
+++ b/web-v2-res/js/module/channel/content/tool.js
@@ -0,0 +1,260 @@
+const tl_rtc_app_module_channel_content_tool = {
+ props : {
+ socketId : {
+ type: String,
+ default: ''
+ },
+ channelId: {
+ type: String,
+ default: ''
+ },
+ channelName: {
+ type: String,
+ default: ''
+ },
+ channelUserCount: {
+ type: Number,
+ default: 0
+ },
+ channelType: {
+ type: String,
+ default: ''
+ },
+ tools : {
+ type: Array,
+ default: []
+ },
+ channelUsers: {
+ type: Array,
+ default: []
+ },
+ user: {
+ type: Object,
+ default: function(){
+ return {
+ userId: '', // 用户id
+ username: '', // 用户名称
+ userAvatar: '', // 用户头像
+ }
+ }
+ },
+ isMobile: {
+ type: Boolean,
+ default: false
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ },
+ channelReName: {
+ type: String,
+ default: ''
+ }
+ },
+ computed: {
+ propsSocketId(){
+ return this.socketId;
+ },
+ propsChannelId(){
+ return this.channelId;
+ },
+ propsChannelType(){
+ return this.channelType;
+ },
+ propsChannelName(){
+ return this.channelName;
+ },
+ propsChannelUserCount(){
+ return this.channelUserCount;
+ },
+ propsTools(){
+ if(this.propsChannelType === 'friend'){
+ this.tools = this.tools.filter(tool => {
+ return tool.title !== '邀请进群';
+ })
+ }
+ if(this.isMobile){
+ this.tools = this.tools.filter(tool => {
+ return tool.title !== '邀请进群';
+ })
+ }
+ return this.tools;
+ },
+ propsChannelUsers(){
+ return this.channelUsers;
+ },
+ propsUser(){
+ return this.user;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ propsChannelReName(){
+ return this.channelReName;
+ }
+ },
+ data : function(){
+ return {
+
+ }
+ },
+ watch: {
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 回退
+ */
+ goBack: function(event){
+ if(event){
+ event.stopPropagation();
+ }
+ this.emitSubModuleEvent({
+ event: 'sub-module-core-change-module-show',
+ data: {
+ showRightModule: false,
+ }
+ })
+
+ this.emitSubModuleEvent({
+ event: 'sub-module-channel-list-go-back'
+ })
+ },
+ mouseEnter: function(event, item){
+ if(this.propsIsMobile){
+ return
+ }
+ tl_rtc_app_comm.mouseEnterTips({
+ id: event.target.id,
+ text: item.title,
+ position: 'top'
+ });
+ },
+ mouseLeave: function(){
+ if(this.propsIsMobile){
+ return
+ }
+ tl_rtc_app_comm.mouseLeaveTips();
+ },
+ /**
+ * 更新频道名称
+ */
+ updateChannelName: function(event){
+ if(event){
+ event.stopPropagation();
+ }
+ if(this.propsChannelType === 'group'){
+ this.emitSubModuleEvent({
+ event: 'sub-module-channel-content-update-group-channel-name',
+ data: {
+ channelId: this.propsChannelId,
+ }
+ })
+ }else if(this.propsChannelType === 'friend'){
+ this.emitSubModuleEvent({
+ event: 'sub-module-channel-content-update-friend-name',
+ data: {
+ channelId: this.propsChannelId,
+ }
+ })
+ }
+ },
+ /**
+ * 展示群聊信息
+ * @param {*} channel
+ */
+ channelInfoPopup: async function(event, channel){
+ if (!channel || !channel.channelId) {
+ return
+ }
+
+ // 根据channelId获取群聊基础信息
+ let { type, channelInfo } = await this.emitSubModuleEvent({
+ event: 'component-popup-channel-info-popup',
+ data: {
+ clientX: event.clientX,
+ clientY: event.clientY,
+ channelInfo: {
+ id: channel.channelId
+ },
+ }
+ })
+
+ if(type === 'chat'){
+ await this.emitSubModuleEvent({
+ event: 'sub-module-contact-content-send-message',
+ data: {
+ channelId: channelInfo.channelId,
+ }
+ })
+ }
+ },
+ },
+ template: `
+
+
+
+ {{propsChannelName}} ({{propsChannelUserCount}})
+
+
+
+
+ {{propsChannelReName}} ({{propsChannelName}})
+
+
+
+
+
+
+ `,
+}
+
+window.tl_rtc_app_module_channel_content_tool = tl_rtc_app_module_channel_content_tool
\ No newline at end of file
diff --git a/web-v2-res/js/module/channel/list.js b/web-v2-res/js/module/channel/list.js
new file mode 100644
index 0000000..4b08703
--- /dev/null
+++ b/web-v2-res/js/module/channel/list.js
@@ -0,0 +1,1351 @@
+const tl_rtc_app_module_channel_list = {
+ props : {
+ user: {
+ type: Object,
+ default: null
+ },
+ socket: {
+ type: Object,
+ default: null
+ },
+ isMobile:{
+ type: Boolean,
+ default: false
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ data : function(){
+ return {
+ // 搜索关键字
+ searchKey : '',
+ // 搜索标签
+ searchTag : {},
+ // 频道列表
+ channels : [],
+ // 频道会话消息列表
+ channelsMessageMap: {},
+ // 频道用户map
+ channelsUserMap: {},
+ // 当前显示的频道id
+ showChannelId: -1,
+ // 请求是否完成
+ requestOk: false,
+ // 滑动开始坐标
+ startPointX: 0,
+ // swiper
+ swiper: null,
+ // 是否是长按事件
+ isPressEvent: false,
+ // 是否是滑动事件
+ isPanEvent: false,
+ // 当前滑动的频道id
+ currentSwiperChannelId: -1,
+ // swiperMap
+ swiperMap: {},
+ // 是否是第一次加载
+ isFirstLoad: true,
+ // 频道消息第一页加载是否完成
+ channelMessageFirstPageLoadMap: {}
+ }
+ },
+ computed: {
+ propsUser(){
+ return this.user;
+ },
+ propsSocket(){
+ return this.socket;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ filterChannels(){
+ let resultList = this.channels
+
+ // 先搜索关键字
+ if(this.searchKey !== '' || this.searchKey.trim() !== ''){
+ // 搜索关键字,匹配对象的所有属性值
+ resultList = this.channels.filter(item => {
+ let values = item.channelName
+ if(!values){
+ return false
+ }
+ return values.indexOf(this.searchKey) > -1
+ })
+ }
+
+ // 再搜索标签
+ if(this.searchTag.system){
+ const tagName = this.searchTag.name
+ if(tagName === '全部'){
+ return resultList
+ }else if(tagName === '置顶'){
+ return resultList.filter(item => item.channelTop)
+ }else if(tagName === '未读'){
+ return resultList.filter(item => item.channelChatUnReadCount > 0)
+ }else if(tagName === '群聊'){
+ return resultList.filter(item => item.channelType === 'group')
+ }else if(tagName === '单聊'){
+ return resultList.filter(item => item.channelType === 'friend')
+ }else if(tagName === '拉黑'){
+ return resultList.filter(item => item.channelBlack)
+ }
+ }
+
+ return resultList
+ },
+ openMessageDot(){
+ return this.user.messageSetting.messageDot
+ },
+ webNotify(){
+ return this.user.messageSetting.webNotify
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ watch:{
+ channels : {
+ deep: true,
+ immediate: true,
+ handler: function(pre, cur){}
+ },
+ channelsMessageMap : {
+ deep: true,
+ immediate: true,
+ handler: function(pre, cur){}
+ },
+ channelsUserMap : {
+ deep: true,
+ immediate: true,
+ handler: function(pre, cur){}
+ },
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 收到socket聊天消息
+ * @param {*} data
+ * @returns
+ */
+ channelChatSocketHandler: function(data){
+ const { channel, messageInfo } = data
+ if(!channel || !messageInfo){
+ data.callback && data.callback()
+ return
+ }
+
+ console.log('channelChatSocketHandler', data)
+
+ this.addChannelMessageHandler({
+ channelId: channel, messageInfo
+ })
+
+ data.callback && data.callback()
+ },
+ /**
+ * 频道聊天消息撤回socket消息处理
+ * @param {*} data
+ */
+ channelChatRollbackSocketHandler: function(data){
+ const { channel, messageId, rollbackMessage } = data
+ if(!channel || !messageId || !rollbackMessage){
+ data.callback && data.callback()
+ return
+ }
+ console.log('channelChatRollbackSocketHandler', data)
+
+ // 移除频道消息
+ this.channelsMessageMap[channel] = this.channelsMessageMap[channel].filter(item => item.id !== messageId)
+
+ this.addChannelMessageHandler({
+ channelId: channel, messageInfo: rollbackMessage
+ })
+ },
+ /**
+ * 添加频道消息 - 公共处理逻辑
+ * @param {*} channelId
+ * @param {*} messageInfo
+ */
+ addChannelMessageHandler: function({
+ channelId, messageInfo
+ }){
+ if(!this.channelsMessageMap[channelId]){
+ this.channelsMessageMap[channelId] = []
+ }
+
+ this.updateChannelLatestMessage({
+ channelId: channelId, extra: messageInfo
+ })
+
+ // 更新侧边栏未读消息数量
+ this.emitSubModuleEvent({
+ event: 'sub-module-sidebar-unread-update',
+ data: {
+ name: 'channel',
+ type: 'add',
+ count: 1
+ }
+ })
+
+ // 更新频道未读消息数量
+ messageInfo.hasRead = false
+ this.channels.forEach(item => {
+ if(item.channelId === channelId){
+ item.channelChatUnReadCount += 1
+ }
+ })
+
+ // 先按频道列表按时间倒序排序
+ this.channels.sort((a, b) => {
+ return new Date(b.createTime).getTime() - new Date(a.createTime).getTime()
+ })
+
+ // 按照频道未读消息数量排序
+ this.channels.sort((a, b) => {
+ return b.channelChatUnReadCount - a.channelChatUnReadCount
+ })
+
+ // 再将置顶的频道放在最前面
+ this.channels.sort((a, b) => {
+ return b.channelTop - a.channelTop
+ })
+
+ this.$forceUpdate()
+
+ if(this.showChannelId === channelId){
+ // 刷新频道内容缓存
+ this.refreshChannelContent(channelId)
+ }
+
+ // 有浏览器系统桌面消息通知
+ if(webNotify && window.Notification && Notification.permission === 'granted'){
+ const channelInfo = this.channels.find(item => item.channelId === channelId)
+ new Notification(channelInfo.channelName, {
+ body: '收到新消息啦,快去看看吧',
+ dir: 'auto',
+ icon: channelInfo.channelAvatar
+ })
+ }
+ },
+ /**
+ * 打开频道消息
+ * @param {*} channelId
+ */
+ openChannelMessageHandler: async function({
+ channelId, callback
+ }){
+ let that = this
+ if(this.isPressEvent || this.isPanEvent){
+ callback && callback()
+ return
+ }
+
+ let index = layer.load(2, {
+ shade: [0.3, '#0000001f']
+ })
+
+ // 点击切换频道
+ if(channelId !== this.showChannelId){
+ if(this.isFirstLoad){
+ // 首次加载右侧频道内容,先更新频道已有缓存数据,再刷新频道内容, 为了处理首次加载时,频道内容布局错乱问题
+ await this.refreshChannelContent(channelId)
+ this.isFirstLoad = false
+ }
+
+ // 如果加载频道首页消息列表完成,后续切换频道使用已有的即可,无需再次请求消息列表(后续消息交由历史记录流程)
+ let update_types = ['channelInfo', 'channelUserList', 'channelMessageList']
+ if(this.channelMessageFirstPageLoadMap[channelId]){
+ update_types = ['channelInfo', 'channelUserList']
+ }
+ // 更新频道信息
+ await this.updateChannelInfo({
+ channelId: channelId, update_types
+ })
+ // 加载首页频道消息列表完成
+ this.channelMessageFirstPageLoadMap[channelId] = true
+
+ this.showChannelId = channelId
+
+ // 切换频道的时候,如果有回复消息,需要清除回复消息面板
+ this.emitSubModuleEvent({
+ event: 'sub-module-channel-content-clear-body-reply-message',
+ })
+ }
+
+ this.$emit('left-module-change', 'channel')
+ this.$emit('right-module-change', 'content')
+
+ // 打开右侧模块 - 处理移动端情况
+ await this.emitSubModuleEvent({
+ event: 'sub-module-core-change-module-show',
+ data: {
+ showRightModule: true,
+ }
+ })
+
+ // 刷新频道内容缓存
+ await this.refreshChannelContent(channelId)
+
+ layer.close(index)
+ callback && callback()
+ },
+ /**
+ * 刷新频道内容缓存
+ * @returns
+ */
+ refreshChannelContent: async function(channelId){
+ const data = this.channels.find(item => item.channelId === channelId)
+ if (!data) {
+ return
+ }
+
+ // 通知兄弟子模块,数据变更
+ await this.emitSubModuleEvent({
+ event: 'sub-module-channel-content-open',
+ data: {
+ channelId: data.channelId,
+ channelName: data.channelName,
+ channelReName: data.channelReName,
+ channelUserCount: data.channelUserCount,
+ channelType: data.channelType,
+ channelMessages: this.channelsMessageMap[data.channelId] || [],
+ channelUsers: this.channelsUserMap[data.channelId] || [],
+ channelTop: data.channelTop,
+ channelBlack: data.channelBlack,
+ channelMessageAllLoad: (this.channelsMessageMap[data.channelId] || []).length === 0,
+ }
+ })
+
+ // 滚动消息列表到底部
+ await this.emitSubModuleEvent({
+ event: 'sub-module-channel-content-scroll-to-bottom',
+ })
+
+ // 更新频道已读记录,需要更新全部类型的已读记录
+ await this.updateChannelUnReadMessage(channelId, null)
+
+ const preSwiper = this.swiperMap[channelId]
+ preSwiper && preSwiper.slideTo(0)
+ this.currentSwiperChannelId = ''
+ },
+ /**
+ * 更新频道未读消息为已读
+ * @param {*} channelId
+ */
+ updateChannelUnReadMessage: async function(channelId, event){
+ if(event){
+ event.stopPropagation()
+ this.popWarningMsg('暂未开放')
+ return
+ }
+ let data = this.channels.find(item => item.channelId === channelId)
+ if (!data) {
+ return
+ }
+ if(data.channelChatUnReadCount <= 0){
+ return
+ }
+
+ let messageList = this.channelsMessageMap[channelId] || []
+ if(messageList.length === 0){
+ return
+ }
+
+ // 找到时间最晚一条chat类型的消息
+ let latestChatMessage = messageList.filter(item => [
+ 'system', 'friend', 'group',
+ ].includes(item.type)).sort((a, b) => {
+ return new Date(a.messageTimeStamp).getTime() - new Date(b.messageTimeStamp).getTime()
+ }).pop()
+
+ let latestChatReadId = latestChatMessage ? latestChatMessage.id : 0
+ let latestMediaReadId = 0
+ let latestFileReadId = 0
+
+ const params = {
+ channelId, latestChatReadId, latestMediaReadId, latestFileReadId
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ return
+ }
+ const { data: readRes } = await this.tlRequest({
+ url: '/api/web/user-read/update-channel-mutil-read',
+ method: 'post',
+ useCache: false,
+ data: params,
+
+ })
+
+ if(!readRes.success){
+ this.popErrorMsg(readRes.message)
+ return
+ }
+
+ // 更新侧边栏未读消息数量
+ await this.emitSubModuleEvent({
+ event: 'sub-module-sidebar-unread-update',
+ data: {
+ name: 'channel',
+ type: 'reduce',
+ count: data.channelChatUnReadCount
+ }
+ })
+
+ // 更新频道未读消息数量
+ this.channels.forEach(item => {
+ if(item.channelId === channelId){
+ item.channelChatUnReadCount = 0
+ }
+ })
+
+ // 更新channelChatUnReadCount
+ messageList.forEach(message => {
+ const messageType = message.type
+ let latestReadId = 0
+ if(['system', 'friend', 'group'].includes(messageType)){
+ latestReadId = latestChatReadId
+ }
+
+ if(message.id <= latestReadId){
+ message.hasRead = true
+ }
+ })
+ },
+ /**
+ * 更新频道最新消息
+ * @param {*} channelId
+ * @param {*} extra
+ */
+ updateChannelLatestMessage: function({
+ channelId, extra, callback
+ }){
+ const channel = this.channels.find(item => item.channelId === channelId)
+ if(!channel){
+ callback && callback()
+ return
+ }
+
+ channel.extra = JSON.parse(JSON.stringify(extra))
+
+ // 遍历消息列表,如果未读消息有人@你,则显示@你
+ let messageList = this.channelsMessageMap[channelId] || []
+ messageList.forEach(item => {
+ if(item.atUserId === this.propsUser.userId && !item.hasRead){
+ channel.extra.message = `
+
+ [有人@你]
+ ${channel.extra.message}
+ `
+ }
+ })
+
+ messageList.push(extra)
+
+ this.channelsMessageMap[channelId] = messageList
+
+ this.$forceUpdate()
+
+ callback && callback()
+ },
+ /**
+ * 获取频道列表
+ */
+ getChannelList: async function(){
+ const { data: channelRes } = await this.tlRequest({
+ url: '/api/web/channel/get-channel-list',
+ method: 'get',
+ useCache: true,
+ cacheTime: 5 * 1000
+ })
+
+ if(!channelRes.success){
+ this.popErrorMsg(channelRes.msg)
+ return []
+ }
+
+ return channelRes.data
+ },
+ /**
+ * 获取频道列表的用户列表
+ */
+ getChannelListUserList : async function(){
+ const { data: channelsUserMapRes } = await this.tlRequest({
+ url: '/api/web/channel-user/get-channel-list-user-list',
+ method: 'get',
+ useCache: true,
+ cacheTime: 10 * 1000
+ })
+
+ if(!channelsUserMapRes.success){
+ this.popErrorMsg(channelsUserMapRes.msg)
+ return
+ }
+
+ this.channelsUserMap = channelsUserMapRes.data
+ },
+ /**
+ * 获取所有频道消息列表
+ */
+ getChannelListMessageList : async function(channelIdList){
+ if(!channelIdList || channelIdList.length === 0){
+ return {}
+ }
+
+ const params = {
+ channelIdList : channelIdList
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ return {}
+ }
+ const { data: channelsMessageRes } = await this.tlRequest({
+ url: '/api/web/channel/get-channel-message-list',
+ method: 'post',
+ useCache: false,
+ data: params,
+
+ })
+
+ if(!channelsMessageRes.success){
+ this.popErrorMsg(channelsMessageRes.msg)
+ return {}
+ }
+
+ let channelsMessageMap = channelsMessageRes.data
+
+ // 处理消息
+ for (let channelId in channelsMessageMap) {
+ const messageList = channelsMessageMap[channelId] || []
+ if(!channelsMessageMap[channelId]){
+ channelsMessageMap[channelId] = []
+ }
+
+ // 按时间排序
+ messageList.sort((a, b) => {
+ return new Date(a.messageTimeStamp).getTime() - new Date(b.messageTimeStamp).getTime()
+ })
+
+ channelsMessageMap[channelId] = messageList
+ }
+
+ return channelsMessageMap
+ },
+ /**
+ * 获取指定频道信息
+ */
+ getChannelInfo: async function(channelId){
+ const params = {
+ channelId: channelId
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ return
+ }
+ const { data: channelRes } = await this.tlRequest({
+ url: '/api/web/channel/get-channel-info',
+ method: 'get',
+ params: params,
+ useCache: true,
+ cacheTime: 5 * 1000
+ })
+
+ if(!channelRes.success){
+ this.popErrorMsg(channelRes.msg)
+ return
+ }
+ if(channelRes.data.length === 0){
+ return
+ }
+
+ // 更新频道列表
+ const updateChannelData = channelRes.data
+ const channelIndex = this.channels.findIndex(item => item.channelId === channelId)
+ if(channelIndex > -1){
+ this.channels[channelIndex] = updateChannelData
+ }else{
+ this.channels.push(updateChannelData)
+ }
+ },
+ /**
+ * 获取指定频道的用户列表
+ */
+ getChannelUserList: async function(channelId){
+ const params = {
+ channelId: channelId
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ return
+ }
+ const { data: channelsUserMapRes } = await this.tlRequest({
+ url: '/api/web/channel-user/get-channel-user-list',
+ method: 'get',
+ params: params,
+ useCache: true,
+ cacheTime: 10 * 1000
+ })
+
+ if(!channelsUserMapRes.success){
+ this.popErrorMsg(channelsUserMapRes.msg)
+ return
+ }
+ // 更新频道用户列表
+ this.channelsUserMap[channelId] = channelsUserMapRes.data
+ },
+ /**
+ * 获取指定频道的消息列表
+ */
+ getChannelMessageList: async function({
+ channelId
+ }){
+ if(!this.channelsMessageMap[channelId]){
+ // 更新频道,通知兄弟子模块,数据变更
+ for(let i = 0; i < this.channels.length; i++){
+ let item = this.channels[i]
+ if(item.channelId !== channelId){
+ continue
+ }
+ // 更新channelMessageAllLoad
+ item.channelMessageAllLoad = true
+
+ // 通知兄弟子模块,数据变更
+ await this.emitSubModuleEvent({
+ event: 'sub-module-channel-content-open',
+ data: {
+ channelMessageAllLoad: item.channelMessageAllLoad,
+ }
+ })
+ }
+ return
+ }
+
+ // 拿到时间最早的一条消息
+ let chatMinId = -1
+ let mediaMinId = -1
+ let fileMinId = -1
+
+ this.channelsMessageMap[channelId].forEach(item => {
+ const messageType = item.type
+ const messageId = item.id
+ if(['system', 'friend', 'group'].includes(messageType)){
+ if(chatMinId === -1){
+ chatMinId = messageId
+ }
+ if (messageId < chatMinId){
+ chatMinId = messageId
+ }
+ }
+ })
+
+ const params = {
+ channelId: channelId,
+ chatMinId: chatMinId,
+ mediaMinId: mediaMinId,
+ fileMinId: fileMinId,
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ return
+ }
+
+ // 获取频道消息列表
+ const { data: channelsMessageRes } = await this.tlRequest({
+ url: '/api/web/channel/get-channel-message',
+ method: 'post',
+ useCache: false,
+ data: params,
+ })
+ if(!channelsMessageRes.success){
+ this.popErrorMsg(channelsMessageRes.msg)
+ return
+ }
+
+ // 更新频道消息列表
+ let messageList = channelsMessageRes.data || []
+ if(!this.channelsMessageMap[channelId]){
+ this.channelsMessageMap[channelId] = []
+ }
+ this.channelsMessageMap[channelId].unshift(...messageList)
+
+ // 按时间排序
+ this.channelsMessageMap[channelId].sort((a, b) => {
+ return new Date(a.messageTimeStamp).getTime() - new Date(b.messageTimeStamp).getTime()
+ })
+
+ // 更新频道,通知兄弟子模块,数据变更
+ for(let i = 0; i < this.channels.length; i++){
+ let item = this.channels[i]
+ if(item.channelId !== channelId){
+ continue
+ }
+ // 更新channelMessageAllLoad
+ item.channelMessageAllLoad = messageList.length < 20
+
+ // 通知兄弟子模块,数据变更
+ await this.emitSubModuleEvent({
+ event: 'sub-module-channel-content-open',
+ data: {
+ channelMessageAllLoad: item.channelMessageAllLoad,
+ channelMessages: this.channelsMessageMap[channelId] || [],
+ }
+ })
+ }
+ },
+ /**
+ * 更新指定频道信息,指定频道用户列表,指定频道消息列表
+ * @param {*} callback
+ * @param {*} channelId
+ * @param {*} update_types
+ */
+ updateChannelInfo: async function({
+ channelId, update_types, callback
+ }){
+
+ if(update_types && update_types.length >= 0){
+ if(update_types.includes('channelInfo')){
+ // 获取指定频道信息
+ await this.getChannelInfo(channelId)
+ }
+ if(update_types.includes('channelUserList')){
+ // 获取指定频道用户列表
+ await this.getChannelUserList(channelId)
+ }
+ if(update_types.includes('channelMessageList')){
+ // 获取指定频道消息列表
+ await this.getChannelMessageList({
+ channelId
+ })
+ }
+
+ // 处理频道列表数据
+ this.handlerChannelListData({
+ channels: this.channels, channelsMessageMap: this.channelsMessageMap
+ })
+
+ this.$forceUpdate()
+ }
+
+ // 回调结果
+ callback && callback()
+ },
+ /**
+ * 初始化频道数据
+ * @param {*} next
+ */
+ initChannelList: async function({
+ callback
+ }){
+ let index = layer.load(2, {
+ shade: [0.3, '#0000001f']
+ })
+
+ // 获取频道列表
+ const channels = await this.getChannelList()
+
+ // 分批获取频道消息列表, 10个频道一次
+ let batchCount = 10
+ let channelsMessageMap = {}
+ let channelIdList = channels.map(channel => channel.channelId)
+ let count = Math.ceil(channelIdList.length / batchCount)
+ for(let i = 0; i < count; i++){
+ let start = i * batchCount
+ let end = (i + 1) * batchCount
+ let tempChannelIdList = channelIdList.slice(start, end)
+ let tempChannelsMessageMap = await this.getChannelListMessageList(tempChannelIdList)
+ channelsMessageMap = Object.assign(channelsMessageMap, tempChannelsMessageMap)
+ }
+
+ // 处理频道列表数据
+ this.handlerChannelListData({
+ channels, channelsMessageMap
+ })
+
+ // 获取频道用户列表
+ await this.getChannelListUserList()
+
+ this.$forceUpdate()
+
+ layer.close(index)
+
+ callback && callback()
+ },
+ /**
+ * 处理频道列表数据
+ */
+ handlerChannelListData: function({
+ channels, channelsMessageMap
+ }){
+ // 更新channelChatUnReadCount
+ let allUnreadCount = 0
+
+ // 处理频道相关消息数据
+ for(let i = 0; i < channels.length; i++){
+ let channelInfo = channels[i]
+
+ const messageList = channelsMessageMap[channelInfo.channelId] || []
+
+ let hasAtMe = false;
+ let channelChatUnReadCount = 0
+ messageList.forEach(message => {
+ // 统计未读消息数量
+ if(!message.hasRead){
+ channelChatUnReadCount += 1
+ }
+ // 时间格式化
+ if(message.messageTimeStamp){
+ message.messageTimeStampFormat = window.util.timeAgo(message.messageTimeStamp)
+ }
+
+ // 如果未读消息有人@你,则显示@你
+ if(message.atUserId === this.propsUser.userId && !message.hasRead){
+ hasAtMe = true
+ }
+ })
+
+ // 处理频道列表展示的最新消息
+ const latestMessage = messageList[messageList.length - 1] || {}
+ let messageTimeStampFormat = latestMessage.messageTimeStamp
+ if(messageTimeStampFormat){
+ messageTimeStampFormat = window.util.timeAgo(latestMessage.messageTimeStamp, true)
+ }
+
+ channelInfo.extra = {
+ fromUserName: latestMessage.fromUserName || '',
+ message : latestMessage.message || '',
+ createTime : latestMessage.createTime || '',
+ messageTimeStamp: latestMessage.messageTimeStamp || '',
+ messageTimeStampFormat: messageTimeStampFormat,
+ messageVersion: latestMessage.messageVersion || '',
+ replyToMessageId: latestMessage.replyToMessageId || '',
+ replyToMessageType: latestMessage.replyToMessageType || '',
+ replyToMessageContent: latestMessage.replyToMessageContent || '',
+ type : latestMessage.type,
+ atUserId: latestMessage.atUserId || '',
+ atUserName: latestMessage.atUserName || '',
+ isAtAll: latestMessage.isAtAll || false,
+ }
+
+ // 如果未读消息有人@你,则显示@你
+ if(hasAtMe){
+ channelInfo.extra.message = `
+
+ [有人@你]
+ ${channelInfo.extra.message}
+ `
+ }
+
+ // 统计频道未读消息数量
+ if(channelChatUnReadCount > 0){
+ channelInfo.channelChatUnReadCount = channelChatUnReadCount
+ allUnreadCount += channelChatUnReadCount
+ }
+ }
+
+ // 更新侧边栏未读消息数量
+ this.emitSubModuleEvent({
+ event: 'sub-module-sidebar-unread-update',
+ data: {
+ name: 'channel', type: 'all', count: allUnreadCount
+ }
+ })
+
+ // 按照频道未读消息数量排序
+ channels.sort((a, b) => {
+ return b.channelChatUnReadCount - a.channelChatUnReadCount
+ })
+
+ // 先按频道列表按时间倒序排序
+ channels.sort((a, b) => {
+ return new Date(b.createTime).getTime() - new Date(a.createTime).getTime()
+ })
+
+ // 再将置顶的频道放在最前面
+ channels.sort((a, b) => {
+ return b.channelTop - a.channelTop
+ })
+
+ this.channels = [...channels]
+
+ this.channelsMessageMap = channelsMessageMap
+
+ this.$nextTick(() => {
+ this.registerCustomMenu()
+ })
+ },
+ /**
+ * 快速创建频道
+ */
+ quickCreateChannel: function(){
+ this.emitSubModuleEvent({
+ event: 'sub-module-channel-top-quick-create-channel',
+ data: {
+ channelName: '我的聊天频道'
+ }
+ })
+ },
+ /**
+ * 不显示频道
+ * @param {*} channelId
+ */
+ hiddenChannel: async function(channelId, event){
+ event.stopPropagation()
+
+ this.popWarningMsg('暂未开放')
+ },
+ /**
+ * 更新频道置顶
+ * @param {*} channelId
+ */
+ updateChannelTop: async function(channelId, event){
+ event.stopPropagation()
+
+ const channel = this.channels.find(item => item.channelId === channelId)
+ if(!channel){
+ return
+ }
+
+ this.emitSubModuleEvent({
+ event: 'sub-module-channel-content-update-channel-top-quick',
+ data: {
+ channelId: channelId, channelTop: !channel.channelTop
+ }
+ })
+
+ const preSwiper = this.swiperMap[channelId]
+ preSwiper && preSwiper.slideTo(0)
+ this.currentSwiperChannelId = ''
+ },
+ /**
+ * 消息免打扰
+ * @param {*} channelId
+ * @param {*} event
+ */
+ unNotifyChannel: async function(channelId, event){
+ if(event){
+ event.stopPropagation()
+ }
+
+ this.popWarningMsg('暂未开放')
+ },
+ /**
+ * 删除频道
+ * @param {*} channelId
+ * @param {*} event
+ */
+ deleteChannel: async function(channelId, event){
+ if(event){
+ event.stopPropagation()
+ }
+
+ this.popWarningMsg('暂未开放')
+ },
+ /**
+ * 加载更多频道消息
+ * @param {*} channelId
+ * @param {*} callback
+ */
+ loadMoreChannelMessage: async function({
+ channelId, callback
+ }){
+ // 获取指定频道消息列表
+ await this.getChannelMessageList({
+ channelId
+ })
+
+ // 处理频道列表数据
+ this.handlerChannelListData({
+ channels: this.channels, channelsMessageMap: this.channelsMessageMap
+ })
+
+ callback && callback()
+ },
+ /**
+ * 注册自定义菜单
+ */
+ registerCustomMenu: function(){
+ let that = this
+ for(let i = 0; i < this.filterChannels.length; i++){
+ let item = this.filterChannels[i]
+ let menuIdList = [
+ 'hiddenNotify', 'copyChannelId', 'markUnread',
+ 'hiddenChannel'
+ ]
+
+ if(item.channelType === 'group'){
+ // 群聊支持邀请好友
+ menuIdList.unshift('inviteFriend')
+ // 群聊支持退出群聊
+ menuIdList.push('exitChannel')
+ }else{
+ // 私聊支持删除好友
+ menuIdList.push('deleteFriend')
+ }
+
+ // 置顶/取消置顶
+ if(item.channelTop){
+ menuIdList.unshift('unTopChannel')
+ }else{
+ menuIdList.unshift('topChannel')
+ }
+
+ // 注册自定义菜单
+ this.emitSubModuleEvent({
+ event: 'component-menu-register-custom',
+ data: {
+ eventList: ['contextmenu', 'press', 'pan'],
+ elemId: '#channel-item-' + item.channelId,
+ menuIdList: menuIdList,
+ extra: item,
+ pressCallback: function(){
+ that.isPressEvent = true
+ },
+ pressUpCallback: function(){
+ setTimeout(() => {
+ that.isPressEvent = false
+ }, 300);
+ },
+ }
+ })
+ }
+ },
+ /**
+ * 过滤频道标签
+ * @param {*} tag
+ */
+ filterTag: function({
+ tag, callback
+ }){
+ this.searchTag = tag
+ callback && callback()
+ },
+ /**
+ * 搜索关键字变更
+ * @param {*} key
+ */
+ searchKeyChange: function({
+ key, callback
+ }){
+ this.searchKey = key
+ callback && callback()
+ },
+ /**
+ * 初始化swiper
+ */
+ initSwiper: function(){
+ let that = this
+
+ const { bodyHeight } = window.tl_rtc_app_comm.getPropertyValues([
+ { key: "bodyHeight", value: "body-height" }
+ ])
+
+ // 计算编辑器的高度
+ let height = (
+ Number(bodyHeight.replace("%", "")) * (
+ window.innerHeight * Number(bodyHeight.replace("%", "")) / 100
+ ) / 100
+ )
+
+ let slidesPerView = parseInt(height / 84)
+ if(height < 650){
+ slidesPerView = parseInt(height / 70)
+ }
+
+ // 初始化频道列表swiper
+ new Swiper('#channelListSwiper', {
+ slidesPerView: slidesPerView,
+ direction: 'vertical',
+ loop: false,
+ observer: true,
+ mousewheel: true, // 鼠标滚轮控制
+ forceToAxis: true, // 滚动条只能在一个方向上拖动
+ spaceBetween: 0.5,
+ freeMode: {
+ momentumRatio: 1, // 惯性动量比
+ momentumBounceRatio: 0, // 滑动反弹
+ minimumVelocity: 0, // 最小滑动速度
+ }
+ });
+
+ // 初始化频道列表swiper子项
+ for(let i = 0; i < this.channels.length; i++){
+ let channelId = this.channels[i].channelId
+
+ let swiper = new Swiper('#channel-item-swiper-' + channelId, {
+ slidesPerView: 1,
+ direction: 'horizontal',
+ threshold: 10,
+ longSwipesMs: 100,
+ on:{
+ slideChange: function(){
+ if(this.activeIndex === 0){ // 右滑
+ that.currentSwiperChannelId = ''
+ return
+ }else if(this.activeIndex === 1){ // 左滑
+ const preSwiper = that.swiperMap[that.currentSwiperChannelId]
+ preSwiper && preSwiper.slideTo(0)
+ }
+
+ that.currentSwiperChannelId = channelId
+ },
+ }
+ });
+
+ this.swiperMap[channelId] = swiper
+ }
+ },
+ channelListGoBack: function({
+ callback
+ }){
+ this.showChannelId = ''
+
+ callback && callback()
+ },
+ /**
+ * 撤回消息
+ * @param {*} messageId
+ * @param {*} channelId
+ * @param {*} rollbackMessage
+ * @param {*} callback
+ */
+ rollbackChannelMessageHandler: async function({
+ messageId, channelId, rollbackMessage, callback
+ }){
+ let messageList = this.channelsMessageMap[channelId]
+
+ if(messageList && messageList.length > 0){
+ messageList = messageList.filter(item => item.id !== messageId)
+ this.channelsMessageMap[channelId] = messageList
+ }
+
+ // 新增一条撤回消息
+ messageList.push(rollbackMessage)
+ this.channelsMessageMap[channelId] = messageList
+
+ // 更新频道列表
+ this.handlerChannelListData({
+ channels: this.channels, channelsMessageMap: this.channelsMessageMap
+ })
+
+ // 通知兄弟子模块,数据变更
+ await this.emitSubModuleEvent({
+ event: 'sub-module-channel-content-open',
+ data: {
+ channelMessages: this.channelsMessageMap[channelId] || [],
+ }
+ })
+
+ await this.emitSubModuleEvent({
+ event: 'sub-module-channel-content-scroll-to-bottom',
+ })
+
+ callback && callback()
+ },
+ },
+ mounted: async function() {
+ let that = this
+
+ // 初始化swiper TODO 目前有问题
+ this.initSwiper()
+ },
+ created: async function(){
+ // 获取频道列表
+ await this.initChannelList({})
+
+ this.requestOk = true
+
+ // 监听搜索关键字更新
+ window.subModule.$on('sub-module-channel-list-search-key-update', this.searchKeyChange)
+
+ // 监听点击频道标签
+ window.subModule.$on('sub-module-channel-list-filter-tag', this.filterTag)
+
+ // 初始化频道列表
+ window.subModule.$on('sub-module-channel-list-init', this.initChannelList)
+
+ // 更新指定频道数据
+ window.subModule.$on('sub-module-channel-list-update-channel', this.updateChannelInfo)
+
+ // 加载指定频道消息
+ window.subModule.$on('sub-module-channel-list-load-channel-message', this.loadMoreChannelMessage)
+
+ // 打开频道面板
+ window.subModule.$on('sub-module-channel-list-item-open', this.openChannelMessageHandler)
+
+ // 更新频道最新消息
+ window.subModule.$on('sub-module-channel-list-update-latest-message', this.updateChannelLatestMessage)
+
+ // 监听收到socket聊天消息
+ window.subModule.$on('sub-module-channel-list-chat-socket', this.channelChatSocketHandler)
+
+ // 监听收到socket聊天消息撤回
+ window.subModule.$on('sub-module-channel-list-rollback-channel-message-socket', this.channelChatRollbackSocketHandler)
+
+ // 移动端返回到频道列表
+ window.subModule.$on('sub-module-channel-list-go-back', this.channelListGoBack)
+
+ // 撤回消息
+ window.subModule.$on('sub-module-channel-list-rollback-channel-message', this.rollbackChannelMessageHandler)
+ },
+ template: `
+
+
+
+
+ 暂无聊天,快创建一个吧
+
+
+
+
+
+
+
+
+
+
+
+
+
+
![]()
+
+
+
+ {{item.channelReName}}
+
+ ( 已拉黑)
+
+
+
+ {{item.channelName}}
+
+
+
+
+
+ {{item.extra.fileName}}
+
+
+
+
+
+ {{item.extra.message}}
+
+
+
+
+
+ {{item.extra.messageTimeStampFormat}}
+
+
+
+
+ {{Math.min(item.channelChatUnReadCount, 99)}}
+
+
+ {{Math.min(item.channelChatUnReadCount, 99)}}
+
+
+
+
+ {{Math.min(item.channelChatUnReadCount, 99)}}
+
+
+ {{Math.min(item.channelChatUnReadCount, 99)}}
+
+
+
+
+
+
+
+ {{item.channelChatUnReadCount > 0 ? '标记已读' : '标记未读'}}
+
+
+ {{item.channelTop ? '取消置顶' : '置顶'}}
+
+
+ 免打扰
+
+
+ 不显示
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+ `,
+}
+
+window.tl_rtc_app_module_channel_list = tl_rtc_app_module_channel_list
\ No newline at end of file
diff --git a/web-v2-res/js/module/channel/top.js b/web-v2-res/js/module/channel/top.js
new file mode 100644
index 0000000..fbb1c1e
--- /dev/null
+++ b/web-v2-res/js/module/channel/top.js
@@ -0,0 +1,313 @@
+const tl_rtc_app_module_channel_top = {
+ props: {
+ company: {
+ type: Object,
+ default: function () {
+ return {
+ name: ""
+ }
+ }
+ },
+ isMobile: {
+ type: Boolean,
+ default: false
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ computed: {
+ propsCompany() {
+ return this.company;
+ },
+ propsIsMobile() {
+ return this.isMobile;
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ watch: {
+ searchKey: {
+ deep: true,
+ immediate: true,
+ handler: function (cur, pre) {
+ this.emitSubModuleEvent({
+ event: 'sub-module-channel-list-search-key-update',
+ data: {
+ key: cur
+ }
+ })
+ }
+ },
+ tagList: {
+ deep: true,
+ immediate: true,
+ handler: function (cur, pre) {
+ if (cur.length === 0) {
+ const { leftChannelTop } = window.tl_rtc_app_comm.getPropertyValues([
+ { key: "leftChannelTop", value: "left-channel-top" }
+ ])
+ // 30px为标签列表高度
+ let newLeftChannelTop = parseInt(leftChannelTop.replace("px", "")) - 30
+ document.documentElement.style.setProperty('--left-channel-top', newLeftChannelTop + "px")
+ }
+ }
+ },
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ data: function () {
+ return {
+ searchKey: '', // 搜索关键字
+ chooseTag: 1, // 默认选择 '全部' 标签
+ tagList: [{
+ id: 1,
+ system: true,
+ name: '全部',
+ }, {
+ id: 2,
+ system: true,
+ name: '未读'
+ }, {
+ id: 3,
+ system: true,
+ name: '置顶'
+ }, {
+ id: 4,
+ system: true,
+ name: '拉黑'
+ }, {
+ id: 5,
+ system: true,
+ name: '群聊'
+ }, {
+ id: 6,
+ system: true,
+ name: '单聊'
+ }]
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function (event) {
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function (event) {
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 创建频道
+ */
+ createChannel: function ({
+ callback
+ }) {
+ let that = this
+ layer.prompt({
+ formType: 0,
+ title: "发起新的群聊",
+ btn: ['确定', '取消'],
+ value: "",
+ shadeClose: true,
+ maxlength: 15,
+ }, async function (value, index, elem) {
+ value = value.trim()
+ if (value.length === 0) {
+ layer.msg("请输入频道名称", { offset: 't' });
+ return false;
+ }
+
+ const params = {
+ channelName: value
+ }
+ if (!window.tl_rtc_app_comm.checkRequestParams(params)) {
+ that.popErrorMsg("请求参数非法")
+ return
+ }
+ const { data: channelRes } = await that.tlRequest({
+ url: '/api/web/channel/add-channel',
+ method: 'post',
+ useCache: false,
+ data: params,
+ })
+ if (channelRes.success) {
+ that.popSuccessMsg(channelRes.msg)
+ } else {
+ that.popErrorMsg(channelRes.msg)
+ }
+
+ layer.close(index)
+
+ await that.emitSubModuleEvent({
+ event: 'sub-module-channel-list-init'
+ })
+
+ return false
+ });
+
+ callback && callback(true)
+ },
+ /**
+ * 首次快速创建频道
+ */
+ quickCreateChannel: async function ({
+ channelName, callback
+ }) {
+ const params = {
+ channelName: channelName
+ }
+ if (!window.tl_rtc_app_comm.checkRequestParams(params)) {
+ this.popErrorMsg("请求参数非法")
+ callback && callback(false)
+ return
+ }
+ const { data: channelRes } = await this.tlRequest({
+ url: '/api/web/channel/add-channel',
+ method: 'post',
+ useCache: false,
+ data: params,
+ })
+ if (channelRes.success) {
+ this.popSuccessMsg(channelRes.msg)
+ } else {
+ this.popErrorMsg(channelRes.msg)
+ }
+
+ await this.emitSubModuleEvent({
+ event: 'sub-module-channel-list-init'
+ })
+
+ callback && callback(true)
+ },
+ /**
+ * 打开快速操作面板
+ */
+ openQuickOperPanel: function () {
+ this.emitSubModuleEvent({
+ event: 'component-popup-add-quick-oper-panel',
+ })
+ },
+ /**
+ * 选择标签
+ * @param {*} tag
+ */
+ selectTag: async function (tag) {
+ this.chooseTag = tag.id
+ await this.emitSubModuleEvent({
+ event: 'sub-module-channel-list-filter-tag',
+ data: {
+ tag
+ }
+ })
+ },
+ /**
+ * 获取频道标签列表
+ */
+ getChannelTagList: async function () {
+ const { data: tagRes } = await this.tlRequest({
+ url: '/api/web/user-tag/get-channel-tag-list',
+ method: 'get',
+ useCache: true,
+ cacheTime: 10 * 1000
+ })
+ if (!tagRes.success) {
+ this.popErrorMsg(tagRes.msg)
+ return
+ }
+
+ if (tagRes.data.length > 0) {
+ this.tagList = this.tagList.concat(tagRes.data)
+ }
+ },
+ /**
+ * 初始化swiper
+ */
+ initSwiper: function () {
+ new Swiper('#channelTagSwiper', {
+ slidesPerView: 5,
+ direction: 'horizontal',
+ loop: false,
+ observer: true,
+ mousewheel: true, // 鼠标滚轮控制
+ forceToAxis: true, // 滚动条只能在一个方向上拖动
+ spaceBetween: 5,
+ freeMode: {
+ momentumRatio: 1, // 惯性动量比
+ momentumBounceRatio: 0, // 滑动反弹
+ minimumVelocity: 0, // 最小滑动速度
+ }
+ });
+ }
+ },
+ mounted: async function () {
+ let that = this
+
+ await this.getChannelTagList()
+
+ this.initSwiper()
+
+ window.addEventListener('resize', window.tl_rtc_app_comm.throttle(function () {
+ that.initSwiper()
+ }, 100), true)
+ },
+ created() {
+ // 监听快速频道创建事件
+ window.subModule.$on('sub-module-channel-top-quick-create-channel', this.quickCreateChannel)
+
+ // 监听自定义频道创建事件
+ window.subModule.$on('sub-module-channel-top-create-custom-channel', this.createChannel)
+ },
+ template: `
+
+ `,
+}
+
+window.tl_rtc_app_module_channel_top = tl_rtc_app_module_channel_top
\ No newline at end of file
diff --git a/web-v2-res/js/module/contact/contact.js b/web-v2-res/js/module/contact/contact.js
new file mode 100644
index 0000000..1b33fb3
--- /dev/null
+++ b/web-v2-res/js/module/contact/contact.js
@@ -0,0 +1,95 @@
+const tl_rtc_app_module_contact = {
+ props: {
+ socket: {
+ type: Object,
+ default: null
+ },
+ isMobile: {
+ type: Boolean,
+ default: false
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ computed: {
+ propsSocket(){
+ return this.socket;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ watch: {
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ data : function(){
+ return {
+
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ },
+ mounted() {
+
+ },
+ components:{
+ 'tl_rtc_app_module_contact_top': window.tl_rtc_app_module_contact_top,
+ 'tl_rtc_app_module_contact_list': window.tl_rtc_app_module_contact_list,
+ },
+ template: `
+
+
+
+
+
+
+
+ `
+}
+
+window.tl_rtc_app_module_contact = tl_rtc_app_module_contact
\ No newline at end of file
diff --git a/web-v2-res/js/module/contact/content.js b/web-v2-res/js/module/contact/content.js
new file mode 100644
index 0000000..5f99e90
--- /dev/null
+++ b/web-v2-res/js/module/contact/content.js
@@ -0,0 +1,551 @@
+const tl_rtc_app_module_contact_content = {
+ props: {
+ socket: {
+ type: Object,
+ default: null
+ },
+ isMobile:{
+ type: Boolean,
+ default: false
+ },
+ user: {
+ type: Object,
+ default: {}
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ computed: {
+ propsSocket(){
+ return this.socket;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsUser(){
+ return this.user;
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ watch: {
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ data : function(){
+ return {
+ socketId: this.socket.id, // socketId
+ contentType : 'friend', // 当前面板类型, friend, apply, search
+
+ friendUserData: { // 搜索用户数据
+ id: '', // 好友记录id
+ userId: '', // 用户id
+ username: '', // 用户账号
+ userAvatar: '', // 用户头像
+ userMobile: '', // 用户手机号
+ userEmail: '', // 用户邮箱
+ userCompanyName: '', // 用户所属企业名称
+ origin: '', // 申请来源
+ createTime: '', // 申请时间
+ channelId: '', // 好友频道id
+ remark: '', // 申请好友信息
+ friendType: '', // 好友类型
+ },
+ searchUserData: { // 搜索用户数据
+ userId: '', // 用户id
+ username: '', // 用户账号
+ userAvatar: '', // 用户头像
+ userMobile: '', // 用户手机号
+ userEmail: '', // 用户邮箱
+ userCompanyName: '', // 用户所属企业名称
+ isFriend: '', // 是否是好友
+ remark: '', // 申请好友信息
+ friendType: '', // 好友类型
+ },
+ applyUserData: { // 申请用户数据
+ id: '', // 好友申请记录id
+ userId: '', // 用户id
+ origin: '', // 申请来源
+ username: '', // 用户账号
+ userAvatar: '', // 用户头像
+ userMobile: '', // 用户手机号
+ userEmail: '', // 用户邮箱
+ userCompanyName: '', // 用户所属企业名称
+ status: '', // 申请状态
+ userApplyRemark: '', // 申请备注
+ createTime: '', // 申请时间
+ hasRead: '', // 是否已读
+ },
+ groupData: { // 群组数据
+ channelId: '', // 频道id
+ channelName: '', // 频道名称
+ channelAvatar: '', // 频道头像
+ channelCompanyName: '', // 频道公司名称
+ createTime: '', // 创建时间
+ createTimeFormat: '', // 创建时间格式化
+ status: '', // 群组状态,
+ joinTime: '', // 加入时间
+ joinTimeFormat: '', // 加入时间格式化
+ channelUserCount: 0, // 频道用户数
+ }
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 搜索用户面板数据变更
+ * @param {*} data
+ */
+ moduleUserSearchDataChange: function({
+ id, userId, username, userAvatar, userMobile, userEmail,
+ userCompanyName, isFriend, remark, createTimeFormat, friendType, channelId,
+ callback
+ }){
+ this.contentType = 'search'
+
+ this.searchUserData = {
+ id: id,
+ userId: userId,
+ username: username,
+ userAvatar: userAvatar,
+ userMobile: userMobile,
+ userEmail: userEmail,
+ userCompanyName: userCompanyName,
+ isFriend: isFriend,
+ remark: remark,
+ createTimeFormat: createTimeFormat,
+ friendType: friendType,
+ channelId: channelId
+ }
+
+ this.$emit('right-module-change', 'content')
+
+ callback && callback()
+ },
+ /**
+ * 用户好友面板数据变更
+ * @param {*} data
+ */
+ moduleUserFriendDataChange: function({
+ id, userId, username, userAvatar, userMobile, userEmail,
+ userCompanyName, origin, channelId, createTime, createTimeFormat, remark, friendType,
+ callback
+ }){
+ this.contentType = 'friend'
+
+ this.friendUserData = {
+ id: id,
+ userId: userId,
+ username: username,
+ userAvatar: userAvatar,
+ userMobile: userMobile,
+ userEmail: userEmail,
+ userCompanyName: userCompanyName,
+ origin: origin,
+ channelId: channelId,
+ createTime: createTime,
+ createTimeFormat: createTimeFormat,
+ remark: remark,
+ friendType: friendType
+ }
+
+ this.$emit('right-module-change', 'content')
+
+ callback && callback()
+ },
+ /**
+ * 群组数据变更
+ * @param {*} data
+ */
+ moduleGroupDataChange: function({
+ channelId, channelName, channelAvatar, channelCompanyName,
+ createTime, createTimeFormat, status, joinTime, joinTimeFormat,
+ channelUserCount, callback
+ }){
+ this.contentType = 'group'
+
+ this.groupData = {
+ channelId: channelId,
+ channelName: channelName,
+ channelAvatar: channelAvatar,
+ channelCompanyName: channelCompanyName,
+ createTime: createTime,
+ createTimeFormat: createTimeFormat,
+ status: status,
+ joinTime: joinTime,
+ joinTimeFormat: joinTimeFormat,
+ channelUserCount: channelUserCount
+ }
+
+ this.$emit('right-module-change', 'content')
+
+ callback && callback()
+ },
+ /**
+ * 用户申请数据变更
+ * @param {*} data
+ */
+ moduleUserApplyDataChange: function({
+ id, userId, username, userAvatar, userMobile, userEmail,
+ userCompanyName, status, origin, userApplyRemark,
+ createTime, createTimeFormat, hasRead,
+ callback
+ }){
+ this.contentType = 'apply'
+
+ this.applyUserData = {
+ id: id,
+ userId: userId,
+ username: username,
+ userAvatar: userAvatar,
+ userMobile: userMobile,
+ userEmail: userEmail,
+ userCompanyName: userCompanyName,
+ status: status,
+ origin: origin,
+ userApplyRemark: userApplyRemark,
+ createTime: createTime,
+ createTimeFormat: createTimeFormat,
+ hasRead: hasRead
+ }
+
+ this.$emit('right-module-change', 'content')
+
+ callback && callback()
+ },
+ /**
+ * 添加好友
+ * @returns
+ */
+ addUserFriend: async function(){
+ let userInfo = {}
+ if(this.contentType == 'friend'){
+ userInfo = this.friendUserData
+ }else if(this.contentType == 'apply'){
+ userInfo = this.applyUserData
+ }else if(this.contentType == 'search'){
+ userInfo = this.searchUserData
+ }else{
+ this.popWarningMsg("用户不存在")
+ return
+ }
+ let {userId, isFriend} = userInfo
+
+ if(this.contentType == 'search' && isFriend){
+ this.popWarningMsg("已经是好友了")
+ return
+ }
+
+ if(!userId){
+ this.popWarningMsg("用户不存在")
+ return
+ }
+
+ let that = this;
+
+ layer.prompt({
+ formType: 0,
+ title: "发送好友申请",
+ btn : ['确定', '取消'],
+ value: "",
+ shadeClose : true,
+ maxlength : 15,
+ }, async function (value, index, elem) {
+ value = value.trim()
+ if(value.length === 0){
+ that.popWarningMsg("请先填写好友申请内容")
+ return false;
+ }
+
+ const params = {
+ friendId : userId,
+ origin : '1',
+ remark : value
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ that.popErrorMsg("请求参数非法")
+ return
+ }
+ const { data: userRes } = await that.tlRequest({
+ url: '/api/web/user-apply/add-user-friend-apply',
+ method: 'post',
+ useCache: false,
+ data: params,
+
+ })
+ if(userRes.success){
+ that.popSuccessMsg(userRes.msg)
+
+ that.emitSubModuleEvent({
+ event: 'sub-module-apply-contact-list-update',
+ data: {
+ applyId : userRes.data.applyId
+ }
+ })
+
+ // 通知被申请人
+ that.propsSocket.emit('contactApply', {
+ userId: userId,
+ applyInfo: {
+ remark: value
+ }
+ })
+ }else{
+ that.popErrorMsg(userRes.msg)
+ }
+
+ layer.close(index)
+
+ return false
+ });
+ },
+ /**
+ * 通过好友申请
+ */
+ passUserFriend: async function(){
+ if(!this.applyUserData.id){
+ this.popWarningMsg("申请记录不存在")
+ return
+ }
+
+ const params = {
+ id : this.applyUserData.id,
+ remark : ""
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ return
+ }
+ const { data: userRes } = await this.tlRequest({
+ url: '/api/web/user-apply/pass-user-friend',
+ method: 'post',
+ useCache: false,
+ data: params,
+
+ })
+
+ if(userRes.success){
+ this.popSuccessMsg(userRes.msg)
+
+ this.emitSubModuleEvent({
+ event: 'sub-module-apply-contact-list-update',
+ data: {
+ applyId : userRes.data.applyId
+ }
+ })
+
+ await this.emitSubModuleEvent({
+ event: 'sub-module-contact-list-update'
+ })
+
+ await this.emitSubModuleEvent({
+ event: 'sub-module-channel-list-init'
+ })
+
+ // 通知申请人
+ this.propsSocket.emit('contactApplyPass', {
+ userId: userRes.data.applyUserId,
+ passInfo: {
+ remark: ""
+ }
+ })
+ }else{
+ this.popErrorMsg(userRes.msg)
+ }
+ },
+ /**
+ * 拒绝好友申请
+ */
+ rejectUserFriend: async function(){
+ if(!this.applyUserData.id){
+ this.popWarningMsg("申请记录不存在")
+ return
+ }
+
+ const params = {
+ id : this.applyUserData.id,
+ remark : ""
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ return
+ }
+ const { data: userRes } = await this.tlRequest({
+ url: '/api/web/user-apply/reject-user-friend',
+ method: 'post',
+ useCache: false,
+ data: params,
+
+ })
+ if(userRes.success){
+ this.popSuccessMsg(userRes.msg)
+
+ this.emitSubModuleEvent({
+ event: 'sub-module-apply-contact-list-update',
+ data: {
+ applyId : userRes.data.applyId
+ }
+ })
+
+ // 通知申请人
+ this.propsSocket.emit('contactApplyReject', {
+ userId: userRes.data.applyUserId,
+ rejectInfo: {
+ remark: ""
+ }
+ })
+ }else{
+ this.popErrorMsg(userRes.msg)
+ }
+ },
+ /**
+ * 发送信息
+ */
+ sendMessage: async function({
+ channelId, callback
+ }){
+ this.$emit('left-module-change', 'channel')
+
+ await this.emitSubModuleEvent({
+ event: 'sub-module-channel-list-item-open',
+ data: {
+ channelId: channelId
+ }
+ })
+
+ console.log("sendMessage", channelId)
+
+ callback && callback()
+ },
+ /**
+ * 回退
+ */
+ goBack: function(){
+ this.emitSubModuleEvent({
+ event: 'sub-module-core-change-module-show',
+ data: {
+ showRightModule: false,
+ }
+ })
+ },
+ },
+ mounted() {
+
+ },
+ created(){
+ // 搜索用户数据变更
+ window.subModule.$on('sub-module-contact-content-user-search-data-change', this.moduleUserSearchDataChange)
+
+ // 用户好友数据变更
+ window.subModule.$on('sub-module-contact-content-user-friend-data-change', this.moduleUserFriendDataChange)
+
+ // 用户申请数据变更
+ window.subModule.$on('sub-module-contact-content-user-apply-data-change', this.moduleUserApplyDataChange)
+
+ // 群组数据变更
+ window.subModule.$on('sub-module-contact-content-group-data-change', this.moduleGroupDataChange)
+
+ // 发送消息
+ window.subModule.$on('sub-module-contact-content-send-message', this.sendMessage)
+ },
+ components: {
+ 'tl-rtc-app-module-contact-content-friend' : window.tl_rtc_app_module_contact_content_friend,
+ 'tl-rtc-app-module-contact-content-apply' : window.tl_rtc_app_module_contact_content_apply,
+ 'tl-rtc-app-module-contact-content-search' : window.tl_rtc_app_module_contact_content_search,
+ 'tl-rtc-app-module-contact-content-group' : window.tl_rtc_app_module_contact_content_group,
+ },
+ template: `
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ `
+}
+
+window.tl_rtc_app_module_contact_content = tl_rtc_app_module_contact_content
\ No newline at end of file
diff --git a/web-v2-res/js/module/contact/content/apply.js b/web-v2-res/js/module/contact/content/apply.js
new file mode 100644
index 0000000..d1b08ea
--- /dev/null
+++ b/web-v2-res/js/module/contact/content/apply.js
@@ -0,0 +1,164 @@
+const tl_rtc_app_module_contact_content_apply = {
+ props: {
+ applyUserData: {
+ type: Object,
+ default: {
+ id: '', // 好友申请记录id
+ userId: '', // 用户id
+ origin: '', // 申请来源
+ username: '', // 用户账号
+ userAvatar: '', // 用户头像
+ userMobile: '', // 用户手机号
+ userEmail: '', // 用户邮箱
+ userCompanyName: '', // 用户所属企业名称
+ status: '', // 申请状态
+ userApplyRemark: '', // 申请备注
+ createTime: '', // 申请时间
+ createTimeFormat: '', // 申请时间格式化
+ }
+ },
+ isMobile: {
+ type: Boolean,
+ default: false
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ computed: {
+ propsApplyUserData(){
+ return this.applyUserData;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ data : function(){
+ return {
+ STATUS : {
+ WAITING_ME_PASS: '等待我验证',
+ },
+ }
+ },
+ watch: {
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 同意添加好友
+ */
+ passUserFriend: function(){
+ this.$emit('pass-user-friend')
+ },
+ /**
+ * 拒绝添加好友
+ */
+ rejectUserFriend: function(){
+ this.$emit('reject-user-friend')
+ },
+ /**
+ * 回退
+ */
+ goBack: function(){
+ this.emitSubModuleEvent({
+ event: 'sub-module-core-change-module-show',
+ data: {
+ showRightModule: false,
+ }
+ })
+ }
+ },
+ mounted() {
+
+ },
+ template: `
+
+
+
+
+
![]()
+
+
+
+ {{ propsApplyUserData.username }}
+
+
+ {{ propsApplyUserData.userCompanyName }}
+
+
+
+
+
+ 验证消息:
+
+ {{ propsApplyUserData.userApplyRemark }}
+
+
+
+ 当前状态:
+
+ {{ propsApplyUserData.status }}
+
+
+
+ 申请来源:
+
+ {{ propsApplyUserData.origin }}
+
+
+
+ 申请时间:
+
+ {{ propsApplyUserData.createTimeFormat }}
+
+
+
+
+
+ `
+}
+
+window.tl_rtc_app_module_contact_content_apply = tl_rtc_app_module_contact_content_apply
\ No newline at end of file
diff --git a/web-v2-res/js/module/contact/content/friend.js b/web-v2-res/js/module/contact/content/friend.js
new file mode 100644
index 0000000..08df035
--- /dev/null
+++ b/web-v2-res/js/module/contact/content/friend.js
@@ -0,0 +1,182 @@
+const tl_rtc_app_module_contact_content_friend = {
+ props: {
+ friendUserData: {
+ type: Object,
+ default: {
+ id: '', // 好友记录id
+ userId: '', // 用户id
+ username: '', // 用户账号
+ userAvatar: '', // 用户头像
+ userMobile: '', // 用户手机号
+ userEmail: '', // 用户邮箱
+ userCompanyName: '', // 用户所属企业名称
+ origin: '', // 来源
+ createTime: '', // 创建时间
+ createTimeFormat: '', // 创建时间格式化
+ channelId: '', // 好友频道id
+ remark: '', // 申请消息
+ friendType: '', // 好友类型
+ }
+ },
+ isMobile: {
+ type: Boolean,
+ default: false
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ computed: {
+ propsFriendUserData(){
+ return this.friendUserData;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ data : function(){
+ return {
+
+ }
+ },
+ watch: {
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 发送信息
+ */
+ sendMessage: function(){
+ this.$emit('send-message', this.propsFriendUserData)
+ },
+ /**
+ * 回退
+ */
+ goBack: function(){
+ this.emitSubModuleEvent({
+ event: 'sub-module-core-change-module-show',
+ data: {
+ showRightModule: false,
+ }
+ })
+ },
+ /**
+ * 鼠标移入
+ * @param {*} event
+ * @returns
+ */
+ mouseEnter: function(event, title){
+ if(this.propsIsMobile){
+ return
+ }
+ tl_rtc_app_comm.mouseEnterTips({
+ id: event.target.id,
+ text: title,
+ position: 'top'
+ });
+ },
+ mouseLeave: function(){
+ if(this.propsIsMobile){
+ return
+ }
+ tl_rtc_app_comm.mouseLeaveTips();
+ }
+ },
+ mounted() {
+
+ },
+ template: `
+
+
+
+
+
![]()
+
+
+
+ {{ propsFriendUserData.username }}
+
+
+ {{ propsFriendUserData.userCompanyName }}
+
+
+
+
+
+ 手机:
+
+ {{ propsFriendUserData.userMobile || '-' }}
+
+
+
+ 邮箱:
+
+ {{ propsFriendUserData.userEmail || '-' }}
+
+
+
+ 来源:
+
+ {{ propsFriendUserData.origin || '-' }}
+
+
+
+ 验证消息:
+
+ {{ propsFriendUserData.remark || '-' }}
+
+
+
+ 添加时间:
+
+ {{ propsFriendUserData.createTimeFormat || '-' }}
+
+
+
+
+
+ `
+}
+
+window.tl_rtc_app_module_contact_content_friend = tl_rtc_app_module_contact_content_friend
\ No newline at end of file
diff --git a/web-v2-res/js/module/contact/content/group.js b/web-v2-res/js/module/contact/content/group.js
new file mode 100644
index 0000000..a5c5516
--- /dev/null
+++ b/web-v2-res/js/module/contact/content/group.js
@@ -0,0 +1,158 @@
+const tl_rtc_app_module_contact_content_group = {
+ props: {
+ groupData: {
+ type: Object,
+ default: {
+ channelId: '', // 频道id
+ channelName: '', // 频道名称
+ channelAvatar: '', // 频道头像
+ channelCompanyName: '', // 频道公司名称
+ createTime: '', // 创建时间
+ createTimeFormat: '', // 创建时间格式化
+ joinTime: '', // 加入时间
+ joinTimeFormat: '', // 加入时间格式化
+ status: '', // 状态,
+ channelUserCount: 0, // 频道用户数
+ }
+ },
+ isMobile: {
+ type: Boolean,
+ default: false
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ computed: {
+ propsGroupData(){
+ return this.groupData;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ data : function(){
+ return {
+
+ }
+ },
+ watch: {
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 回退
+ */
+ goBack: function(){
+ this.emitSubModuleEvent({
+ event: 'sub-module-core-change-module-show',
+ data: {
+ showRightModule: false,
+ }
+ })
+ },
+ /**
+ * 发送信息
+ */
+ sendMessage: function(){
+ this.$emit('send-message', this.propsGroupData)
+ },
+ },
+ mounted() {
+
+ },
+ template: `
+
+
+
+
+
![]()
+
+
+
+ {{ propsGroupData.channelName }}
+
+
+ {{ propsGroupData.channelCompanyName }}
+
+
+
+
+
+ 群号:
+
+ {{ propsGroupData.channelId }}
+
+
+
+ 群成员:
+
+ {{ propsGroupData.channelUserCount }}(人)
+
+
+
+ 当前状态:
+
+ {{ propsGroupData.status }}
+
+
+
+ 创建时间:
+
+ {{ propsGroupData.createTimeFormat }}
+
+
+
+ 加入时间:
+
+ {{ propsGroupData.joinTimeFormat }}
+
+
+
+
+
+ `
+}
+
+window.tl_rtc_app_module_contact_content_group = tl_rtc_app_module_contact_content_group
\ No newline at end of file
diff --git a/web-v2-res/js/module/contact/content/search.js b/web-v2-res/js/module/contact/content/search.js
new file mode 100644
index 0000000..d1fe375
--- /dev/null
+++ b/web-v2-res/js/module/contact/content/search.js
@@ -0,0 +1,158 @@
+const tl_rtc_app_module_contact_content_search = {
+ props: {
+ searchUserData: {
+ type: Object,
+ default: {
+ channelId: '', // 频道id
+ userId: '', // 用户id
+ username: '', // 用户账号
+ userAvatar: '', // 用户头像
+ userMobile: '', // 用户手机号
+ userEmail: '', // 用户邮箱
+ userCompanyName: '', // 用户所属企业名称
+ createTime: '', // 创建时间
+ createTimeFormat: '', // 创建时间格式化
+ isFriend: '', // 是否是好友
+ isSelf: '', // 是否是自己
+ remark: '', // 申请消息
+ friendType: '', // 好友类型
+ }
+ },
+ isMobile: {
+ type: Boolean,
+ default: false
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ computed: {
+ propsSearchUserData(){
+ return this.searchUserData;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ data : function(){
+ return {
+
+ }
+ },
+ watch: {
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 添加好友
+ */
+ addUserFriend: function(){
+ this.$emit('add-user-friend')
+ },
+ /**
+ * 发送信息
+ */
+ sendMessage: function(){
+ this.$emit('send-message', this.propsSearchUserData)
+ },
+ /**
+ * 鼠标移入
+ * @param {*} event
+ * @returns
+ */
+ mouseEnter: function(event, title){
+ if(this.propsIsMobile){
+ return
+ }
+ tl_rtc_app_comm.mouseEnterTips({
+ id: event.target.id,
+ text: title,
+ position: 'top'
+ });
+ },
+ mouseLeave: function(){
+ if(this.propsIsMobile){
+ return
+ }
+ tl_rtc_app_comm.mouseLeaveTips();
+ }
+ },
+ mounted() {
+
+ },
+ template: `
+
+
+
+
+
![]()
+
+
+
+ {{ propsSearchUserData.username }} (我)
+
+
+ {{ propsSearchUserData.userCompanyName }}
+
+
+
+
+
+ 手机: {{ propsSearchUserData.userMobile || '-' }}
+
+
+ 邮箱: {{ propsSearchUserData.userEmail || '-'}}
+
+
+
+
+
+
+
+ `
+}
+
+window.tl_rtc_app_module_contact_content_search = tl_rtc_app_module_contact_content_search
\ No newline at end of file
diff --git a/web-v2-res/js/module/contact/list.js b/web-v2-res/js/module/contact/list.js
new file mode 100644
index 0000000..45a0058
--- /dev/null
+++ b/web-v2-res/js/module/contact/list.js
@@ -0,0 +1,603 @@
+const tl_rtc_app_module_contact_list = {
+ props : {
+ isMobile:{
+ type: Boolean,
+ default: false
+ },
+ user: {
+ type: Object,
+ default: function(){
+ return {}
+ }
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ data : function(){
+ return {
+ // 特别关注列表
+ specialContactList: [],
+ // 好友列表
+ contactList: [],
+ // 好友申请列表
+ applyContactList: [],
+ // 群组列表
+ groupList: [],
+ // 搜索关键字
+ searchKey: '',
+ // 默认选择 '全部' 标签
+ chooseTag: 1,
+ // 标签列表
+ tagList: [{
+ id: 1,
+ system: true,
+ name: '特别关注',
+ }]
+ }
+ },
+ computed: {
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ filterGroupList: function(){
+ if(this.searchKey === '' || this.searchKey.trim() === ''){
+ return this.groupList
+ }
+ return this.groupList.filter(item => {
+ let values = item.channelName
+ if(!values){
+ return false
+ }
+ return values.indexOf(this.searchKey) > -1
+ })
+ },
+ filterContactList: function(){
+ if(this.searchKey === '' || this.searchKey.trim() === ''){
+ return this.contactList
+ }
+ return this.contactList.filter(item => {
+ let values = item.username
+ if(!values){
+ return false
+ }
+ return values.indexOf(this.searchKey) > -1
+ })
+ },
+ filterApplyContactList: function(){
+ if(this.searchKey === '' || this.searchKey.trim() === ''){
+ return this.applyContactList
+ }
+ return this.applyContactList.filter(item => {
+ let values = item.username
+ if(!values){
+ return false
+ }
+ return values.indexOf(this.searchKey) > -1
+ })
+ },
+ webNotify(){
+ return this.user.messageSetting.webNotify
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ watch: {
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 更新好友申请信息
+ * @param {*} id
+ * @param {*} data
+ */
+ updateApplyInfo: function(id, data){
+ this.applyContactList.forEach(item => {
+ if(item.id === id){
+ item = Object.assign(item, data)
+ }
+ })
+
+ this.$forceUpdate()
+
+ // 更新联系人未读数量
+ const unreadCount = this.applyContactList.filter(
+ item => !item.hasRead
+ ).length
+
+ this.emitSubModuleEvent({
+ event: 'sub-module-sidebar-unread-update',
+ data: {
+ name: 'contact',
+ type: 'all',
+ count: unreadCount
+ }
+ })
+ },
+ /**
+ * 更新好友列表, 打开指定好友信息
+ * @param {*} userFriendId
+ */
+ updateContactList: async function({
+ contactId, callback
+ }){
+ await this.getContactList()
+ // 打开指定好友信息
+ if(contactId){
+ const openItem = this.contactList.find(item => item.id === contactId)
+ if(openItem){
+ this.openContactInfo(openItem)
+ }
+ }
+
+ callback && callback()
+ },
+ /**
+ * 更新好友申请列表, 打开指定申请信息
+ * @param {*} applyId
+ */
+ updateApplyContactList: async function({
+ applyId, callback
+ }) {
+ await this.getApplyContactList()
+ // 打开指定申请记录信息
+ if(applyId){
+ const openItem = this.applyContactList.find(item => item.id === applyId)
+ if(openItem){
+ await this.openApplyContactInfo(openItem)
+ }
+ }
+
+ callback && callback()
+ },
+ /**
+ * 打开好友申请信息
+ * @param {*} data
+ */
+ openApplyContactInfo: async function(data){
+ this.$emit('right-module-change', 'content')
+
+ // 通知兄弟子模块,数据变更
+ this.emitSubModuleEvent({
+ event: 'sub-module-contact-content-user-apply-data-change',
+ data
+ })
+
+ // 打开右侧模块 - 处理移动端情况
+ this.emitSubModuleEvent({
+ event: 'sub-module-core-change-module-show',
+ data: {
+ showRightModule: true,
+ }
+ })
+
+ if(!data.hasRead){
+ const params = {
+ recordId: data.id
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ return
+ }
+ const { data: readRes } = await this.tlRequest({
+ url: '/api/web/user-read/update-user-friend-apply-read',
+ method: 'post',
+ useCache: false,
+ data: params,
+
+ })
+ if(readRes.success){
+ this.updateApplyInfo(data.id, {
+ hasRead: true
+ })
+ }else{
+ this.popErrorMsg(readRes.msg)
+ }
+ }
+ },
+ /**
+ * 打开好友信息
+ * @param {*} data
+ */
+ openContactInfo: function(data){
+ this.$emit('right-module-change', 'content')
+
+ // 通知兄弟子模块,数据变更
+ this.emitSubModuleEvent({
+ event: 'sub-module-contact-content-user-friend-data-change',
+ data
+ })
+
+ // 打开右侧模块 - 处理移动端情况
+ this.emitSubModuleEvent({
+ event: 'sub-module-core-change-module-show',
+ data: {
+ showRightModule: true,
+ }
+ })
+ },
+ /**
+ * 获取群组列表
+ * @returns
+ */
+ getGroupList: async function(){
+ const { data: groupRes } = await this.tlRequest({
+ url: '/api/web/channel/get-group-channel-list',
+ method: 'get',
+ useCache: true,
+ cacheTime: 10 * 1000
+ })
+ if(!groupRes.success){
+ this.popErrorMsg(groupRes.msg)
+ return
+ }
+ this.groupList = groupRes.data
+
+ // 处理时间
+ this.groupList.forEach(item => {
+ if(item.createTime){
+ item.createTimeFormat = window.util.timeAgo(item.createTime)
+ }
+ if(item.joinTime){
+ item.joinTimeFormat = window.util.timeAgo(item.joinTime)
+ }
+ })
+
+ this.$forceUpdate()
+ },
+ /**
+ * 获取用户好友列表
+ */
+ getContactList: async function(){
+ const { data: contactRes } = await this.tlRequest({
+ url: '/api/web/user-friend/get-user-friend-list',
+ method: 'get',
+ useCache: true,
+ cacheTime: 10 * 1000
+ })
+ if(!contactRes.success){
+ this.popErrorMsg(contactRes.msg)
+ return
+ }
+ this.contactList = contactRes.data
+
+ // 处理时间
+ this.contactList.forEach(item => {
+ if(item.createTime){
+ item.createTimeFormat = window.util.timeAgo(item.createTime)
+ }
+ })
+
+ this.specialContactList = this.contactList.filter(item => item.friendType === '特别关注')
+
+ this.$forceUpdate()
+ },
+ /**
+ * 获取好友申请列表
+ */
+ getApplyContactList: async function(){
+ const { data: selfContactRes } = await this.tlRequest({
+ url: '/api/web/user-apply/get-user-friend-self-apply-list',
+ method: 'get',
+ useCache: true,
+ cacheTime: 10 * 1000
+ })
+ if(!selfContactRes.success){
+ this.popErrorMsg(selfContactRes.msg)
+ return
+ }
+ const selfContactList = selfContactRes.data
+
+ const { data: otherContactRes } = await this.tlRequest({
+ url: '/api/web/user-apply/get-user-friend-other-apply-list',
+ method: 'get',
+ useCache: true,
+ cacheTime: 10 * 1000
+ })
+ if(!otherContactRes.success){
+ this.popErrorMsg(otherContactRes.msg)
+ return
+ }
+ const otherContactList = otherContactRes.data
+
+ this.applyContactList = selfContactList.concat(otherContactList)
+
+ // 按时间倒序排序
+ this.applyContactList.sort((a, b) => {
+ return new Date(b.createTime).getTime() - new Date(a.createTime).getTime()
+ })
+
+ // 处理时间
+ this.applyContactList.forEach(item => {
+ if(item.createTime){
+ item.createTimeFormat = window.util.timeAgo(item.createTime)
+ }
+ })
+
+ this.$forceUpdate()
+
+ // 更新联系人未读数量
+ const unreadCount = this.applyContactList.filter(
+ item => !item.hasRead
+ ).length
+
+ this.emitSubModuleEvent({
+ event: 'sub-module-sidebar-unread-update',
+ data: {
+ name: 'contact', type: 'all', count: unreadCount
+ }
+ })
+ },
+ /**
+ * 收到好友申请socket消息
+ * @param {*} data
+ */
+ contactApplySocketHandler: async function({
+ callback
+ }){
+ await this.getApplyContactList()
+
+ // 有浏览器系统桌面消息通知
+ if(webNotify && window.Notification && Notification.permission === 'granted'){
+ new Notification("好友申请提醒", {
+ body: '收到新的好友申请,快去看看吧',
+ dir: 'auto',
+ icon: '/image/default-avatar.png',
+ })
+ }
+
+ callback && callback()
+ },
+ /**
+ * 收到通过好友申请socket消息
+ * @param {*} data
+ */
+ contactApplyPassSocketHandler: async function({
+ callback
+ }){
+ await this.getApplyContactList()
+
+ // 有浏览器系统桌面消息通知
+ if(webNotify && window.Notification && Notification.permission === 'granted'){
+ new Notification("好友申请提醒", {
+ body: 'ta通过了你的好友申请',
+ dir: 'auto',
+ icon: '/image/default-avatar.png',
+ })
+ }
+
+ callback && callback()
+ },
+ /**
+ * 收到拒绝好友申请socket消息
+ * @param {*} data
+ */
+ contactApplyRejectSocketHandler: async function({
+ callback
+ }){
+ await this.getApplyContactList()
+
+ // 有浏览器系统桌面消息通知
+ if(webNotify && window.Notification && Notification.permission === 'granted'){
+ new Notification("好友申请提醒", {
+ body: 'ta拒绝了你的好友申请',
+ dir: 'auto',
+ icon: '/image/default-avatar.png',
+ })
+ }
+
+ callback && callback()
+ },
+ /**
+ * 获取好友标签列表
+ */
+ getFriendTagList: async function(){
+ const { data: tagRes } = await this.tlRequest({
+ url: '/api/web/user-tag/get-friend-tag-list',
+ method: 'get',
+ useCache: true,
+ cacheTime: 10 * 1000
+ })
+ if(!tagRes.success){
+ this.popErrorMsg(tagRes.msg)
+ return
+ }
+
+ if (tagRes.data.length > 0){
+ this.tagList = this.tagList.concat(tagRes.data)
+ }
+ },
+ /**
+ * 用户搜索名称变更
+ * @param {*} key
+ */
+ searchKeyChange: function({
+ key, callback
+ }){
+ this.searchKey = key
+ callback && callback()
+ },
+ /**
+ * 获取所有好友列表
+ * @param {*} callback
+ */
+ getAllContactList: function({
+ callback
+ }){
+ return callback && callback(this.contactList)
+ },
+ /**
+ * 打开群组信息
+ * @param {*} data
+ * @returns
+ * */
+ openGroupInfo: function(data){
+ this.$emit('right-module-change', 'content')
+
+ // 通知兄弟子模块,数据变更
+ this.emitSubModuleEvent({
+ event: 'sub-module-contact-content-group-data-change',
+ data
+ })
+
+ // 打开右侧模块 - 处理移动端情况
+ this.emitSubModuleEvent({
+ event: 'sub-module-core-change-module-show',
+ data: {
+ showRightModule: true,
+ }
+ })
+ }
+ },
+ mounted: async function(){
+ let that = this
+
+ window.element.init();
+
+ // 获取好友列表
+ await this.getContactList()
+
+ // 获取好友申请列表
+ await this.getApplyContactList()
+
+ // 获取群组列表
+ await this.getGroupList()
+
+ // 获取好友标签列表
+ await this.getFriendTagList()
+
+ window.element.on('collapse()', function(data){});
+ },
+ created(){
+ // 监听搜索用户名称
+ window.subModule.$on('sub-module-contact-search-key-update', this.searchKeyChange)
+
+ // 获取好友列表
+ window.subModule.$on('sub-module-contact-list-get', this.getAllContactList)
+
+ // 更新好友列表
+ window.subModule.$on('sub-module-contact-list-update', this.updateContactList)
+
+ // 更新申请记录列表
+ window.subModule.$on('sub-module-apply-contact-list-update', this.updateApplyContactList)
+
+ // 好友申请socket通知
+ window.subModule.$on('sub-module-contact-apply-socket', this.contactApplySocketHandler)
+
+ // 通过好友申请socket通知
+ window.subModule.$on('sub-module-contact-apply-pass-socket', this.contactApplyPassSocketHandler)
+
+ // 拒绝好友申请socket通知
+ window.subModule.$on('sub-module-contact-apply-reject-socket', this.contactApplyRejectSocketHandler)
+ },
+ template: `
+
+ `,
+}
+
+window.tl_rtc_app_module_contact_list = tl_rtc_app_module_contact_list
\ No newline at end of file
diff --git a/web-v2-res/js/module/contact/top.js b/web-v2-res/js/module/contact/top.js
new file mode 100644
index 0000000..3d395de
--- /dev/null
+++ b/web-v2-res/js/module/contact/top.js
@@ -0,0 +1,173 @@
+const tl_rtc_app_module_contact_top = {
+ props : {
+ isMobile: {
+ type: Boolean,
+ default: false
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ computed: {
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ watch: {
+ searchKey : {
+ deep: true,
+ immediate: true,
+ handler: function(cur, pre){
+ this.emitSubModuleEvent({
+ event: 'sub-module-contact-search-key-update',
+ data: {
+ key: cur
+ }
+ })
+ }
+ },
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ data : function(){
+ return {
+ searchKey : ''
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 搜索用户
+ * @param {*} callback
+ * */
+ searchUser: async function({
+ callback
+ }){
+ let that = this
+
+ layer.prompt({
+ formType: 0,
+ title: "搜索用户",
+ btn : ['确定', '取消'],
+ value: "",
+ shadeClose : true,
+ maxlength : 15,
+ }, async function (value, index, elem) {
+ value = value.trim()
+ if(value.length === 0){
+ that.popErrorMsg("请输入用户名称")
+ return false;
+ }
+
+ const params = {
+ name: value
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ that.popErrorMsg("请求参数非法")
+ return
+ }
+ const { data: userRes } = await that.tlRequest({
+ url: '/api/web/user/search-user-by-name',
+ method: 'get',
+ useCache: false,
+ params: params,
+
+ })
+ if(!userRes.success){
+ that.popErrorMsg(userRes.msg)
+ return false;
+ }
+
+ that.popSuccessMsg(userRes.msg)
+
+ that.emitSubModuleEvent({
+ event: 'sub-module-contact-content-user-search-data-change',
+ data: userRes.data
+ })
+
+ layer.close(index)
+
+ // 打开右侧模块 - 处理移动端情况
+ that.emitSubModuleEvent({
+ event: 'sub-module-core-change-module-show',
+ data: {
+ showRightModule: true,
+ }
+ })
+
+ that.$emit('left-module-change', 'contact')
+ that.$emit('right-module-change', 'content')
+
+ return false
+ });
+
+ callback && callback()
+ },
+ /**
+ * 打开快速操作面板
+ */
+ openQuickOperPanel: function(){
+ this.emitSubModuleEvent({
+ event: 'component-popup-add-quick-oper-panel',
+ })
+ }
+ },
+ mounted: function(){
+
+ },
+ created(){
+ // 监听搜索用户事件
+ window.subModule.$on('sub-module-contact-top-search-user', this.searchUser)
+ },
+ template: `
+
+ `,
+}
+
+window.tl_rtc_app_module_contact_top = tl_rtc_app_module_contact_top
\ No newline at end of file
diff --git a/web-v2-res/js/module/login/content.js b/web-v2-res/js/module/login/content.js
new file mode 100644
index 0000000..962329c
--- /dev/null
+++ b/web-v2-res/js/module/login/content.js
@@ -0,0 +1,139 @@
+const tl_rtc_app_module_login_content = {
+ props: {
+ socket: {
+ type: Object,
+ default: null
+ },
+ isMobile:{
+ type: Boolean,
+ default: false
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ computed: {
+ propsSocket(){
+ return this.socket;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ watch: {
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ data : function(){
+ return {
+ loginType : 'scan',
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 登陆方式
+ * @param {*} loginType
+ */
+ moduleDataChange: function({
+ loginType, callback
+ }){
+ this.loginType = loginType
+
+ callback && callback()
+ },
+ /**
+ * 回退
+ */
+ goBack: function(){
+ this.emitSubModuleEvent({
+ event: 'sub-module-core-change-module-show',
+ data: {
+ showRightModule: false,
+ }
+ })
+ }
+ },
+ mounted() {
+
+ },
+ created(){
+ // 登录方式改变
+ window.subModule.$on('sub-module-login-content-data-change', this.moduleDataChange)
+ },
+ components : {
+ 'tl_rtc_app_module_login_content_email' : window.tl_rtc_app_module_login_content_email,
+ 'tl_rtc_app_module_login_content_mobile' : window.tl_rtc_app_module_login_content_mobile,
+ 'tl_rtc_app_module_login_content_account' : window.tl_rtc_app_module_login_content_account,
+ },
+ template: `
+
+
+
+
+
+
+
+
+
+
+
+
+ `,
+}
+
+window.tl_rtc_app_module_login_content = tl_rtc_app_module_login_content
\ No newline at end of file
diff --git a/web-v2-res/js/module/login/content/account.js b/web-v2-res/js/module/login/content/account.js
new file mode 100644
index 0000000..b4bc339
--- /dev/null
+++ b/web-v2-res/js/module/login/content/account.js
@@ -0,0 +1,228 @@
+const tl_rtc_app_module_login_content_account = {
+ props : {
+ isMobile: {
+ type: Boolean,
+ default: false
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ computed: {
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ watch: {
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ data : function(){
+ return {
+ account: '',
+ password: '',
+ inviteCode: 'tlrtcappyszz',
+ btnType : 'login',
+ requesting : false
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 切换到注册帐号
+ * @returns
+ * */
+ showRegisterAccount: function(){
+ this.btnType = 'register'
+ },
+ /**
+ * 切换到登录帐号
+ * @returns
+ * */
+ showLoginAccount: function(){
+ this.btnType = 'login'
+ },
+ /**
+ * 登陆帐号
+ * @returns
+ * */
+ loginAccount: async function(){
+ if(this.account == ''){
+ this.popWarningMsg("请输入帐号")
+ return;
+ }
+ if(this.password == ''){
+ this.popWarningMsg("请输入密码")
+ return;
+ }
+
+ const bfpData = await this.emitSubModuleEvent({
+ event: 'component-bfp-info',
+ })
+ const {fps} = bfpData
+
+ let params = {
+ account: Base64.encode(this.account),
+ password: Base64.encode(this.password),
+ fps: fps,
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ return
+ }
+
+ this.requesting = true
+ const { data: loginRes } = await this.tlRequest({
+ url: '/api/web/user-login/login-by-account',
+ method: 'post',
+ useCache: false,
+ data: params,
+
+ })
+ if(loginRes.success){
+ this.popSuccessMsg(loginRes.msg)
+ window.location.reload()
+ }else{
+ this.popErrorMsg(loginRes.msg)
+ this.password = ''
+ }
+ this.requesting = false
+ },
+ /**
+ * 注册帐号
+ * @returns
+ * */
+ registerAccount: async function(){
+ if(this.account == ''){
+ this.popWarningMsg("请输入帐号")
+ return;
+ }
+ if(this.password == ''){
+ this.popWarningMsg("请输入密码")
+ return;
+ }
+ if(this.inviteCode == ''){
+ this.popWarningMsg("请输入邀请码")
+ return;
+ }
+
+ let params = {
+ account: Base64.encode(this.account),
+ password: Base64.encode(this.password),
+ invite_code: this.inviteCode
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ return
+ }
+
+ this.requesting = true
+ const { data: loginRes } = await this.tlRequest({
+ url: '/api/web/user-register/register-by-account',
+ method: 'post',
+ useCache: false,
+ data: params,
+
+ })
+ if(loginRes.success){
+ this.popSuccessMsg(loginRes.msg)
+ }else{
+ this.popErrorMsg(loginRes.msg)
+ this.password = ''
+ }
+ this.requesting = false
+ },
+ forgotAccount: function(){
+ this.popWarningMsg("暂不支持修改密码,请联系管理员")
+ }
+ },
+ mounted() {
+ const textareaDom = document.querySelector('#loginAccountPasswordInput')
+ window.tl_rtc_app_comm.keydownCallback(textareaDom, this.loginAccount)
+
+ const textareaDom2 = document.querySelector('#loginAccountInput')
+ window.tl_rtc_app_comm.keydownCallback(textareaDom2, function(){
+ textareaDom.focus()
+ })
+ },
+ template: `
+
+
+ 欢迎回来,使用帐号登录
+
+
+ 开始注册帐号
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 没有帐号?,立即注册 >
+
+
+ 已有帐号?,立即登录 >
+
+
+
+ 忘记密码?
+
+
+
+
+ `,
+}
+
+window.tl_rtc_app_module_login_content_account = tl_rtc_app_module_login_content_account
\ No newline at end of file
diff --git a/web-v2-res/js/module/login/content/email.js b/web-v2-res/js/module/login/content/email.js
new file mode 100644
index 0000000..b129e23
--- /dev/null
+++ b/web-v2-res/js/module/login/content/email.js
@@ -0,0 +1,314 @@
+const tl_rtc_app_module_login_content_email = {
+ props : {
+ isMobile: {
+ type: Boolean,
+ default: false
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ computed: {
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ waitGetCode(){
+ return this.getCodeTime > 0
+ },
+ noEmail(){
+ return this.email.trim() === ''
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ watch: {
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ data : function(){
+ return {
+ code: '',
+ email: '',
+ password: '',
+ inviteCode: 'tlrtcappyszz',
+ btnType : 'login',
+ requesting : false,
+ getCodeTime: 0,
+ timer: null
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 显示注册邮箱
+ * @returns
+ * */
+ showRegisterEmail: function(){
+ this.btnType = 'register'
+ },
+ /**
+ * 显示登录邮箱
+ */
+ showLoginEmail: function(){
+ this.btnType = 'login'
+ },
+ /**
+ * 登录邮箱
+ * @returns
+ */
+ loginEmail: async function(){
+ if(this.email == ''){
+ this.popWarningMsg("请输入邮箱")
+ return;
+ }
+ if(this.password == ''){
+ this.popWarningMsg("请输入密码")
+ return;
+ }
+
+ if(window.tl_rtc_app_comm.isEmail(this.email) === false){
+ this.popWarningMsg("邮箱格式不正确")
+ return
+ }
+
+ let params = {
+ email: Base64.encode(this.email),
+ password: Base64.encode(this.password)
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ return
+ }
+
+ this.requesting = true
+ const { data: loginRes } = await this.tlRequest({
+ url: '/api/web/user-login/login-by-email',
+ method: 'post',
+ useCache: false,
+ data: params,
+
+ })
+ if(loginRes.success){
+ this.popSuccessMsg(loginRes.msg)
+ window.location.reload()
+ }else{
+ this.popErrorMsg(loginRes.msg)
+ this.password = ''
+ }
+ this.requesting = false
+ },
+ /**
+ * 注册邮箱
+ * @returns
+ */
+ registerEmail: async function(){
+ if(this.email == ''){
+ this.popWarningMsg("请输入邮箱")
+ return;
+ }
+ if(this.password == ''){
+ this.popWarningMsg("请输入密码")
+ return;
+ }
+ if(this.inviteCode == ''){
+ this.popWarningMsg("请输入邀请码")
+ return;
+ }
+ if(this.password.length > 30){
+ this.popWarningMsg("密码长度不能超过30位")
+ return;
+ }
+
+ if(window.tl_rtc_app_comm.isEmail(this.email) === false){
+ this.popWarningMsg("邮箱格式不正确")
+ return
+ }
+
+ let params = {
+ email: Base64.encode(this.email),
+ password: Base64.encode(this.password),
+ invite_code: this.inviteCode,
+ code: this.code
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ return
+ }
+
+ this.requesting = true
+ const { data: loginRes } = await this.tlRequest({
+ url: '/api/web/user-register/register-by-email',
+ method: 'post',
+ useCache: false,
+ data: params,
+
+ })
+ if(loginRes.success){
+ this.popSuccessMsg(loginRes.msg)
+ }else{
+ this.popErrorMsg(loginRes.msg)
+ this.password = ''
+ }
+ this.requesting = false
+ },
+ /**
+ * 忘记密码
+ */
+ forgotEmail: function(){
+ this.popWarningMsg("暂不支持修改密码,请联系管理员")
+ },
+ /**
+ * 获取邮箱验证码
+ */
+ getEmailCode: async function(){
+ let that = this;
+ if(this.email == ''){
+ this.popWarningMsg("请输入邮箱")
+ return;
+ }
+
+ if(window.tl_rtc_app_comm.isEmail(this.email) === false){
+ this.popWarningMsg("邮箱格式不正确")
+ return
+ }
+
+ if (this.getCodeTime > 0) {
+ return
+ }
+
+ this.getCodeTime = 60
+
+ let params = {
+ email: this.email
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ return
+ }
+ const { data: codeRes } = await this.tlRequest({
+ url: '/api/web/user-register/get-email-code',
+ method: 'post',
+ useCache: false,
+ data: params,
+
+ })
+ if(!codeRes.success){
+ this.popErrorMsg(codeRes.msg)
+ return
+ }
+
+ this.popSuccessMsg(codeRes.msg)
+
+ this.timer = setInterval(() => {
+ that.getCodeTime--
+ if(that.getCodeTime <= 0){
+ clearInterval(that.timer)
+ that.getCodeTime = 0
+ return
+ }
+ }, 1000)
+ }
+ },
+ mounted() {
+ const textareaDom = document.querySelector('#loginEmailPasswordInput')
+ window.tl_rtc_app_comm.keydownCallback(textareaDom, this.loginEmail)
+
+ const textareaDom2 = document.querySelector('#loginEmailInput')
+ window.tl_rtc_app_comm.keydownCallback(textareaDom2, function(){
+ textareaDom.focus()
+ })
+ },
+ template: `
+
+
+ 欢迎回来,使用邮箱登录
+
+
+ 开始注册邮箱号
+
+
+
+
+ 没有邮箱号?,立即注册 >
+
+
+ 已有邮箱号?,立即登录 >
+
+
+
+ 忘记密码?
+
+
+
+
+ `,
+}
+
+window.tl_rtc_app_module_login_content_email = tl_rtc_app_module_login_content_email
\ No newline at end of file
diff --git a/web-v2-res/js/module/login/content/mobile.js b/web-v2-res/js/module/login/content/mobile.js
new file mode 100644
index 0000000..4d6e47c
--- /dev/null
+++ b/web-v2-res/js/module/login/content/mobile.js
@@ -0,0 +1,85 @@
+const tl_rtc_app_module_login_content_mobile = {
+ props : {
+ isMobile: {
+ type: Boolean,
+ default: false
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ computed: {
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ watch: {
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ data : function(){
+ return {
+
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ loginMobile: function(){
+
+ },
+ registerMobile: function(){
+
+ },
+ forgotMobile: function(){
+
+ }
+ },
+ template: `
+
+ `,
+}
+
+window.tl_rtc_app_module_login_content_mobile= tl_rtc_app_module_login_content_mobile
\ No newline at end of file
diff --git a/web-v2-res/js/module/login/list.js b/web-v2-res/js/module/login/list.js
new file mode 100644
index 0000000..c737c58
--- /dev/null
+++ b/web-v2-res/js/module/login/list.js
@@ -0,0 +1,125 @@
+const tl_rtc_app_module_login_list = {
+ props : {
+ loginList : {
+ type: Array,
+ default: function(){
+ return [];
+ }
+ },
+ isMobile: {
+ type: Boolean,
+ default: false
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ computed: {
+ propsLoginList(){
+ return this.loginList;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ watch: {
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ mounted() {
+
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 登陆方式
+ * @param {*} item
+ * @returns
+ */
+ openLoginItem: function(item){
+ if (![
+ 'account', 'email',
+ ].includes(item.type)){
+ item.handler && item.handler.call(this)
+ return
+ }
+
+ item.handler && item.handler.call(this)
+
+ // 通知兄弟子模块,数据变更
+ this.emitSubModuleEvent({
+ event: 'sub-module-login-content-data-change',
+ data: {
+ loginType : item.type
+ }
+ })
+
+ // 打开右侧模块 - 处理移动端情况
+ this.emitSubModuleEvent({
+ event: 'sub-module-core-change-module-show',
+ data: {
+ showRightModule: true,
+ }
+ })
+ }
+ },
+ data : function(){
+ return {
+
+ }
+ },
+ template: `
+
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+ `,
+}
+
+window.tl_rtc_app_module_login_list = tl_rtc_app_module_login_list
\ No newline at end of file
diff --git a/web-v2-res/js/module/login/login.js b/web-v2-res/js/module/login/login.js
new file mode 100644
index 0000000..7babd4e
--- /dev/null
+++ b/web-v2-res/js/module/login/login.js
@@ -0,0 +1,243 @@
+const tl_rtc_app_module_login = {
+ props: {
+ socket: {
+ type: Object,
+ default: null
+ },
+ isMobile: {
+ type: Boolean,
+ default: false
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ computed:{
+ propsSocket(){
+ return this.socket;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ watch: {
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ data : function(){
+ return {
+ loginedCacheList: [],
+ loginedListCacheKey: 'tl_logined_list',
+ loginList: [
+ {
+ name : '帐号登录',
+ svg: '#tl-rtc-app-icon-gerenzhongxin',
+ type : 'account',
+ default : true,
+ handler: this.handlerAccountLogin
+ },
+ {
+ name : '邮箱登录',
+ svg: '#tl-rtc-app-icon-youjian1',
+ type : 'email',
+ default : false,
+ handler: this.handlerEmailLogin
+ },
+ ]
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 扫码登录
+ */
+ handlerScanLogin: function(){
+ this.$emit('right-module-change', 'content')
+ },
+ /**
+ * 帐号登录
+ */
+ handlerAccountLogin: function(){
+ this.$emit('right-module-change', 'content')
+ },
+ /**
+ * 手机登录
+ */
+ handlerMobileLogin: function(){
+ // this.$emit('right-module-change', 'content')
+ this.popWarningMsg('暂未开放')
+ },
+ /**
+ * 邮箱登录
+ */
+ handlerEmailLogin: function(){
+ this.$emit('right-module-change', 'content')
+ },
+ /**
+ * 微信登录
+ */
+ handlerWChatLogin: function(){
+ // this.$emit('right-module-change', 'content')
+ this.popWarningMsg('暂未开放')
+ },
+ /**
+ * QQ登录
+ */
+ handlerQQLogin: function(){
+ //this.$emit('right-module-change', 'content')
+ this.popWarningMsg('暂未开放')
+ },
+ /**
+ * 企微登录
+ */
+ handlerQYChatLogin: function(){
+ //this.$emit('right-module-change', 'content')
+ this.popWarningMsg('暂未开放')
+ },
+ /**
+ * 游客登录
+ */
+ handlerTouristLogin: function(){
+ //this.$emit('right-module-change', 'content')
+ this.popWarningMsg('暂未开放')
+ },
+ /**
+ * 设置登录过的帐号缓存到localStorage
+ * @param {*} userId
+ * @param {*} username
+ * @param {*} avatarUrl
+ * @param {*} token
+ * @param {*} time
+ * @returns
+ */
+ setCacheLoginAccount: function({
+ userId, username, avatarUrl, token, time, callback
+ }){
+ let loginedList = localStorage.getItem(this.loginedListCacheKey)
+ if(loginedList){
+ loginedList = JSON.parse(loginedList)
+
+ // 如果已经存在,不再添加
+ if(loginedList.some(item => item.userId == userId)){
+ callback && callback()
+ return
+ }
+
+ loginedList.push({
+ userId,
+ username,
+ avatarUrl,
+ token,
+ time
+ })
+ }else{
+ loginedList = [{
+ userId,
+ username,
+ avatarUrl,
+ token,
+ time
+ }]
+ }
+
+ if(loginedList.length > 3){
+ loginedList = loginedList.slice(0, 3)
+ }
+
+ localStorage.setItem(this.loginedListCacheKey, JSON.stringify(loginedList))
+
+ callback && callback()
+ },
+ /**
+ * 获取登录过的帐号缓存, 按time倒序
+ * @returns
+ */
+ getCacheLoginAccount: function(){
+ let loginedList = localStorage.getItem(this.loginedListCacheKey)
+ if(loginedList){
+ loginedList = JSON.parse(loginedList)
+ loginedList.sort((a, b) => b.time - a.time)
+ this.loginedCacheList = loginedList
+ }
+ },
+ /**
+ * 清除登录过的帐号缓存
+ */
+ cleanCacheAccount: function(){
+ localStorage.removeItem(this.loginedListCacheKey)
+ this.loginedCacheList = []
+ }
+ },
+ created() {
+ // 设置登录过的帐号
+ window.subModule.$on('sub-module-login-set-cache-account', this.setCacheLoginAccount)
+ },
+ mounted() {
+ let that = this
+
+ this.getCacheLoginAccount()
+ },
+ components:{
+ 'tl_rtc_app_module_login_list': window.tl_rtc_app_module_login_list,
+ 'tl_rtc_app_module_login_mobile': window.tl_rtc_app_module_login_mobile,
+ },
+ template: `
+
+
+
+
+
+
+
+
+
+ `
+}
+
+window.tl_rtc_app_module_login = tl_rtc_app_module_login
\ No newline at end of file
diff --git a/web-v2-res/js/module/login/mobile.js b/web-v2-res/js/module/login/mobile.js
new file mode 100644
index 0000000..d50231f
--- /dev/null
+++ b/web-v2-res/js/module/login/mobile.js
@@ -0,0 +1,347 @@
+const tl_rtc_app_module_login_mobile = {
+ props : {
+ loginList : {
+ type: Array,
+ default: function(){
+ return [];
+ }
+ },
+ isMobile: {
+ type: Boolean,
+ default: false
+ },
+ loginedCacheList: {
+ type: Array,
+ default: function(){
+ return [];
+ }
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ data : function(){
+ return {
+ selectedLoginedCache: {},
+ scanCode: ''
+ }
+ },
+ watch: {
+ scanCode:{
+ handler: async function(val){
+ // 限制只能输入数字
+ if(!/^\d+$/.test(val)){
+ this.scanCode = val.replace(/[^\d]/g, '')
+ }
+
+ // 限制只能输入6位数字
+ if(val.length > 6){
+ this.scanCode = val.slice(0, 6)
+ }
+
+ // 输入6位数字后,自动登录
+ if(val.length === 6){
+ await this.quickLogin()
+ }
+ }
+ },
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ computed: {
+ propsLoginList(){
+ return this.loginList;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsLoginedCacheList(){
+ if (this.loginedCacheList.length > 0){
+ this.chooseLoginedCache(this.loginedCacheList[0])
+ }
+ return this.loginedCacheList;
+ },
+ scanCodeDone(){
+ return this.scanCode.length === 6
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 打开登录项
+ * @param {*} item
+ * @returns
+ */
+ openLoginItem: function(item){
+ if (![
+ 'account', 'email', 'scan'
+ ].includes(item.type)){
+ item.handler && item.handler.call(this)
+ return
+ }
+
+ item.handler && item.handler.call(this)
+
+ // 通知兄弟子模块,数据变更
+ this.emitSubModuleEvent({
+ event: 'sub-module-login-content-data-change',
+ data: {
+ loginType : item.type
+ }
+ })
+
+ // 打开右侧模块 - 处理移动端情况
+ this.emitSubModuleEvent({
+ event: 'sub-module-core-change-module-show',
+ data: {
+ showRightModule: true,
+ }
+ })
+ },
+ /**
+ * 一键登录
+ */
+ quickLogin: async function(){
+ const bfpData = await this.emitSubModuleEvent({
+ event: 'component-bfp-info',
+ })
+ console.log("bfpData: ", bfpData)
+ const {fps} = bfpData
+
+ let params = {
+ username: this.selectedLoginedCache.username,
+ fps: fps,
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ return
+ }
+ const { data: loginRes } = await this.tlRequest({
+ url: '/api/web/user-login/login-by-fp',
+ method: 'post',
+ useCache: false,
+ data: params,
+
+ })
+ if(loginRes.success){
+ this.popSuccessMsg(loginRes.msg)
+ window.location.reload()
+ }else{
+ this.popErrorMsg(loginRes.msg)
+ }
+ },
+ /**
+ * 选择登录过的帐号
+ */
+ chooseLoginedCache: function(item){
+ this.selectedLoginedCache = item
+ },
+ /**
+ * 清理常用帐号
+ */
+ cleanCacheAccount: function(){
+ let that = this
+ layer.confirm('确定清理常用帐号?', {
+ title: '提示',
+ btn: ['确定', '取消'],
+ shadeClose: 1
+ }, (index) => {
+ layer.close(index)
+
+ that.$emit('clean-cache-account')
+
+ window.location.reload()
+ })
+ },
+ /**
+ * 初始化扫码输入框
+ */
+ initScanCodeInput: function(){
+ let that = this
+
+ const inputs = document.querySelectorAll('.tl-rtc-app-left-panel-login-body-scan-code-container-item');
+ inputs.forEach((input, index) => {
+ input.addEventListener('input', (e) => {
+ // 清除空格或非数字输入
+ input.value = input.value.replace(/\D/g, '');
+
+ if (input.value.length === 1 && index < inputs.length - 1) {
+ input.disabled = true;
+ inputs[index + 1].disabled = false;
+ inputs[index + 1].focus();
+ }
+
+ that.scanCode = Array.from(inputs).map(input => input.value).join('');
+ });
+
+ input.addEventListener('keydown', (e) => {
+ // 禁止空格键
+ if (e.key === ' ' || e.key === 'Spacebar') {
+ e.preventDefault();
+ }
+
+ if (e.key === 'Backspace' && index > 0) {
+ input.value = ''; // 清空当前输入框
+ input.disabled = true;
+ inputs[index - 1].disabled = false;
+ inputs[index - 1].focus();
+ }
+ });
+
+ input.addEventListener('focus', (e) => {
+ if (input.disabled) {
+ inputs[index].blur();
+ }
+ });
+
+ input.addEventListener('paste', (e) => {
+ const pasteData = e.clipboardData.getData('text').replace(/\D/g, ''); // 只保留数字
+ const pasteArray = pasteData.split('').slice(0, inputs.length - index);
+
+ pasteArray.forEach((char, idx) => {
+ if (inputs[index + idx]) {
+ inputs[index + idx].value = char;
+ if (index + idx < inputs.length - 1) {
+ inputs[index + idx].disabled = true;
+ inputs[index + idx + 1].disabled = false;
+ }
+ }
+ });
+
+ const lastFilledIndex = index + pasteArray.length - 1;
+ if (inputs[lastFilledIndex]) {
+ inputs[lastFilledIndex].focus();
+ }
+
+ e.preventDefault();
+ });
+ });
+ },
+ /**
+ * 初始化二维码
+ */
+ initQrCode: function(){
+ const { skinBodyBackground, skinBodyColor } = window.tl_rtc_app_comm.getPropertyValues([
+ { key: "skinBodyBackground", value: "skin-body-background" },
+ { key: "skinBodyColor", value: "skin-body-color" },
+ ])
+
+ const dom = document.getElementById('tl-rtc-app-left-panel-login-body-scan-mobile')
+ if(dom){
+ window.tl_rtc_app_comm.getQrCode(
+ "tl-rtc-app-left-panel-login-body-scan-mobile", "扫码登录", skinBodyColor, skinBodyBackground
+ )
+ }
+ }
+ },
+ mounted() {
+ this.initQrCode();
+
+ this.initScanCodeInput();
+ },
+ template: `
+
+
+
+
+
+
+
![]()
+
+
{{item.username}}
+
上次登录
+
+
+
+
+
+
+
+
+
+
+
+
+
+ `,
+}
+
+window.tl_rtc_app_module_login_mobile = tl_rtc_app_module_login_mobile
\ No newline at end of file
diff --git a/web-v2-res/js/module/setting/content.js b/web-v2-res/js/module/setting/content.js
new file mode 100644
index 0000000..149517a
--- /dev/null
+++ b/web-v2-res/js/module/setting/content.js
@@ -0,0 +1,238 @@
+const tl_rtc_app_module_setting_content = {
+ props: {
+ socket: {
+ type: Object,
+ default: null
+ },
+ isMobile:{
+ type: Boolean,
+ default: false
+ },
+ user: {
+ type: Object,
+ default: null
+ },
+ company: {
+ type: Object,
+ default: null
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ computed: {
+ propsSocket(){
+ return this.socket;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsUser(){
+ return this.user
+ },
+ propsCompany(){
+ return this.company
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ watch: {
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ data : function(){
+ return {
+ settingType : 'normal', // 设置类型
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 设置模块数据变更
+ * @param {*} data
+ */
+ moduleDataChange: function({
+ settingType, callback
+ }){
+ this.settingType = settingType
+
+ callback && callback()
+ },
+ /**
+ * 回退
+ */
+ goBack: function(){
+ this.emitSubModuleEvent({
+ event: 'sub-module-core-change-module-show',
+ data: {
+ showRightModule: false,
+ }
+ })
+ },
+ /**
+ * 更新用户帐号设置
+ */
+ updateUserConfigAccount: async function(updateAccountSetting){
+ let params = {
+ account: updateAccountSetting
+ }
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ return
+ }
+ const { data: userConfigRes } = await this.tlRequest({
+ url: '/api/web/user-config/update-user-config-account',
+ method: 'post',
+ useCache: false,
+ data: params,
+
+ })
+ if(!userConfigRes.success){
+ this.popErrorMsg(userConfigRes.msg)
+ return
+ }
+
+ this.emitSubModuleEvent({
+ event: 'sub-module-core-user-setting-change',
+ data: {
+ accountSetting: updateAccountSetting
+ }
+ })
+
+ this.popSuccessMsg(userConfigRes.msg)
+ },
+ /**
+ * 更新用户其他设置
+ */
+ updateUserConfigOther: async function(updateOtherSetting){
+ let params = {
+ other: updateOtherSetting
+ }
+
+ if(updateOtherSetting.customWss){
+ const isWssHost = window.tl_rtc_app_comm.isWssHost(updateOtherSetting.customWss)
+ if(!isWssHost){
+ this.popWarningMsg('自定义socket服务器地址格式不正确')
+ return
+ }
+ }
+
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ return
+ }
+ const { data: userConfigRes } = await this.tlRequest({
+ url: '/api/web/user-config/update-user-config-other',
+ method: 'post',
+ useCache: false,
+ data: params,
+
+ })
+ if(!userConfigRes.success){
+ this.popErrorMsg(userConfigRes.msg)
+ return
+ }
+
+ this.emitSubModuleEvent({
+ event: 'sub-module-core-user-setting-change',
+ data: {
+ otherSetting: updateOtherSetting
+ }
+ })
+
+ this.popSuccessMsg(userConfigRes.msg)
+ }
+ },
+ mounted: function() {
+
+ },
+ created(){
+ // 监听子模块数据变更
+ window.subModule.$on('sub-module-setting-content-data-change', this.moduleDataChange)
+ },
+ components : {
+ 'tl_rtc_app_module_setting_content_account': window.tl_rtc_app_module_setting_content_account,
+ 'tl_rtc_app_module_setting_content_message': window.tl_rtc_app_module_setting_content_message,
+ 'tl_rtc_app_module_setting_content_other': window.tl_rtc_app_module_setting_content_other,
+ },
+ template: `
+
+
+
+
+
+
+
+
+
+
+
+
+ `,
+}
+
+window.tl_rtc_app_module_setting_content = tl_rtc_app_module_setting_content
\ No newline at end of file
diff --git a/web-v2-res/js/module/setting/content/account.js b/web-v2-res/js/module/setting/content/account.js
new file mode 100644
index 0000000..8592ae8
--- /dev/null
+++ b/web-v2-res/js/module/setting/content/account.js
@@ -0,0 +1,364 @@
+const tl_rtc_app_module_setting_content_account = {
+ props: {
+ socket: {
+ type: Object,
+ default: null
+ },
+ isMobile: {
+ type: Boolean,
+ default: false
+ },
+ accountSetting: {
+ type: Object,
+ default: {
+
+ }
+ },
+ user: {
+ type: Object,
+ default: null
+ },
+ company: {
+ type: Object,
+ default: null
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ computed: {
+ propsSocket(){
+ return this.socket;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsAccountSetting(){
+ return this.accountSetting;
+ },
+ propsUser(){
+ return this.user
+ },
+ propsCompany(){
+ return this.company
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ data : function(){
+ return {
+ settingFields: [
+
+ ],
+ }
+ },
+ watch: {
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 获取设置字段数据
+ * @returns
+ */
+ getSettingFieldsData: function(){
+ let that = this
+ let returnData = {}
+ this.settingFields.forEach((item) => {
+ returnData[item] = that.propsAccountSetting[item]
+ })
+ return returnData
+ },
+ /**
+ * 更新帐号设置
+ */
+ updateAccountSetting(){
+ this.$emit('update-user-config-account', this.getSettingFieldsData());
+ },
+ /**
+ * 绑定手机号
+ */
+ bindMobile: function(){
+ this.popWarningMsg("暂未开放")
+ },
+ /**
+ * 绑定邮箱
+ * @param {*} isChange
+ */
+ bindEmail: function(isChange){
+ let that = this
+ layer.open({
+ type: 1,
+ title: isChange ? '换绑邮箱': '绑定邮箱',
+ area: this.propsIsMobile ? ['90%']: ['400px', '280px'],
+ btn: ['确定', '取消'],
+ shadeClose: true,
+ content: `
+
+
+
+
+
+
+
+
+
+
+
+ `,
+ success: (layero, index) => {
+ layero.css({
+ 'border-radius': '6px'
+ })
+
+ new Vue({
+ el: '#tl-rtc-app-setting-bind-email-layer',
+ data: function(){
+ return {
+ email: '',
+ code: '',
+ timer: null,
+ getCodeTime: 0
+ }
+ },
+ computed: {
+ noEmail(){
+ return this.email.trim() === ''
+ },
+ waitGetCode(){
+ return this.getCodeTime > 0
+ },
+ },
+ methods: {
+ getEmailCode: async function(){
+ let _that = this
+ if(!this.email){
+ this.popWarningMsg("请输入邮箱")
+ return
+ }
+
+ if(window.tl_rtc_app_comm.isEmail(this.email) === false){
+ this.popWarningMsg("邮箱格式不正确")
+ return
+ }
+
+ let params = {
+ email: this.email
+ }
+
+ if (this.getCodeTime > 0) {
+ return
+ }
+
+ this.getCodeTime = 60
+
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ this.popErrorMsg("请求参数非法")
+ return
+ }
+ const { data: codeRes } = await this.tlRequest({
+ url: '/api/web/user-register/get-email-code',
+ method: 'post',
+ useCache: false,
+ data: params,
+ })
+
+ if(!codeRes.success){
+ this.popErrorMsg(codeRes.msg)
+ return
+ }
+
+ this.popSuccessMsg(codeRes.msg)
+
+ this.timer = setInterval(() => {
+ _that.getCodeTime--
+ if(_that.getCodeTime <= 0){
+ clearInterval(_that.timer)
+ _that.getCodeTime = 0
+ return
+ }
+ }, 1000)
+ }
+ },
+ mounted(){
+
+ }
+ })
+ },
+ yes: async (index, layero) => {
+ const email = $('#bindEmail').val()
+ const code = $('#bindEmailCode').val()
+ if(!email || !code){
+ that.popWarningMsg("请输入邮箱和验证码")
+ return
+ }
+
+ if(window.tl_rtc_app_comm.isEmail(email) === false){
+ that.popWarningMsg("邮箱格式不正确")
+ return
+ }
+
+ if(code.length > 6){
+ that.popWarningMsg("验证码格式不正确")
+ return
+ }
+
+ let params = {
+ email: Base64.encode(email),
+ code: code
+ }
+
+ if(!window.tl_rtc_app_comm.checkRequestParams(params)){
+ that.popErrorMsg("请求参数非法")
+ return
+ }
+ const { data: bindRes } = await that.tlRequest({
+ url: '/api/web/user/bind-email',
+ method: 'post',
+ useCache: false,
+ data: params,
+ })
+
+ if(!bindRes.success){
+ that.popErrorMsg(bindRes.msg)
+ return
+ }
+
+ that.popSuccessMsg(bindRes.msg)
+ layer.close(index)
+
+ setTimeout(() => {
+ window.location.reload()
+ }, 100);
+ },
+ })
+ },
+ /**
+ * 绑定微信
+ */
+ bindWx: function(){
+ this.popWarningMsg("暂未开放")
+ }
+ },
+ mounted() {
+ let that = this
+ window.form.render();
+
+ window.form.val('accountSettingContent', this.getSettingFieldsData())
+
+ window.form.on('switch', function(data){
+ if(that.settingFields.includes(data.elem.name)){
+ that.propsAccountSetting[data.elem.name] = data.elem.checked
+ that.updateAccountSetting()
+ }
+ });
+
+ },
+ updated() {
+ window.form.render();
+
+ window.form.val('accountSettingContent', this.getSettingFieldsData())
+ },
+ template: `
+
+
+
+
+
个人信息设置
+
+
+
+
企业/组织
+
+ {{propsCompany.name}}
+
+
+
+
+
帐号
+
+ {{propsUser.username}}
+
+
+
+
+
头像
+
+
+
![]()
+
+
+
+
+
+
绑定邮箱
+
+
+ {{propsUser.userEmail}}
+
+
+ 点击换绑
+
+
+
+
+ 去绑定
+
+
+
+
+
+
+
+
+ `
+}
+
+window.tl_rtc_app_module_setting_content_account = tl_rtc_app_module_setting_content_account
\ No newline at end of file
diff --git a/web-v2-res/js/module/setting/content/other.js b/web-v2-res/js/module/setting/content/other.js
new file mode 100644
index 0000000..ea7468d
--- /dev/null
+++ b/web-v2-res/js/module/setting/content/other.js
@@ -0,0 +1,157 @@
+const tl_rtc_app_module_setting_content_other = {
+ props: {
+ socket: {
+ type: Object,
+ default: null
+ },
+ isMobile: {
+ type: Boolean,
+ default: false
+ },
+ otherSetting: {
+ type: Object,
+ default: {
+ turnServer: false,
+ customWss: '',
+ }
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ computed: {
+ propsSocket(){
+ return this.socket;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsOtherSetting(){
+ return this.otherSetting;
+ },
+ disableCustomWss(){
+ return this.propsOtherSetting.customWss === this.customWss
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ data : function(){
+ return {
+ settingFields: [
+ 'turnServer',
+ 'customWss',
+ ]
+ }
+ },
+ watch: {
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 获取设置字段数据
+ * @returns
+ */
+ getSettingFieldsData: function(){
+ let that = this
+ let returnData = {}
+ this.settingFields.forEach((item) => {
+ returnData[item] = that.propsOtherSetting[item]
+ })
+
+ if(returnData.turnServer){
+ window.localStorage.setItem("tl-rtc-app-use-turn", "true")
+ }else{
+ window.localStorage.setItem("tl-rtc-app-use-turn", "false")
+ }
+
+ return returnData
+ },
+ /**
+ * 更新设置
+ */
+ updateOtherSetting(){
+ this.$emit('update-user-config-other', this.getSettingFieldsData());
+ },
+ },
+ mounted() {
+ let that = this
+ window.form.render();
+ window.form.val('otherSettingContent', this.getSettingFieldsData())
+
+ window.form.on('switch', function(data){
+ if(that.settingFields.includes(data.elem.name)){
+ that.propsOtherSetting[data.elem.name] = data.elem.checked
+ that.updateOtherSetting()
+ }
+ })
+ },
+ updated() {
+ window.form.render();
+ window.form.val('otherSettingContent', this.getSettingFieldsData())
+ },
+ template: `
+
+
+
+
+
开发设置
+
+
+
+
+
+
自定义socket服务器地址
+
+
+
+
+
+
+
+
+
+
+ `
+}
+
+window.tl_rtc_app_module_setting_content_other = tl_rtc_app_module_setting_content_other
\ No newline at end of file
diff --git a/web-v2-res/js/module/setting/list.js b/web-v2-res/js/module/setting/list.js
new file mode 100644
index 0000000..9bbddc9
--- /dev/null
+++ b/web-v2-res/js/module/setting/list.js
@@ -0,0 +1,173 @@
+const tl_rtc_app_module_setting_list = {
+ props: {
+ socket: {
+ type: Object,
+ default: null
+ },
+ isMobile: {
+ type: Boolean,
+ default: false
+ },
+ settingList: {
+ type: Array,
+ default: []
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ computed: {
+ propsSocket(){
+ return this.socket;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsSettingList(){
+ return this.settingList;
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ data : function(){
+ return {
+ searchKey: '',
+ activeSettingType: ''
+ }
+ },
+ watch: {
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 打开设置项
+ * @param {*} item
+ * @returns
+ */
+ openSettingItem: function(item){
+ if(item.type == 'logout'){
+ item.handler && item.handler.call(this)
+ return
+ }
+ item.handler && item.handler.call(this)
+
+ // 通知兄弟子模块,数据变更
+ this.emitSubModuleEvent({
+ event: 'sub-module-setting-content-data-change',
+ data: {
+ settingType : item.type
+ }
+ })
+
+ // 打开右侧模块 - 处理移动端情况
+ this.emitSubModuleEvent({
+ event: 'sub-module-core-change-module-show',
+ data: {
+ showRightModule: true,
+ }
+ })
+
+ this.activeSettingType = item.type
+ },
+ /**
+ * 打开快速操作面板
+ */
+ openQuickOperPanel: function(){
+ this.emitSubModuleEvent({
+ event: 'component-popup-add-quick-oper-panel',
+ })
+ },
+ /**
+ * 搜索设置
+ */
+ searchSetting: function({
+ callback
+ }){
+ this.popWarningMsg('暂未开放')
+
+ callback && callback()
+ }
+ },
+ mounted() {
+
+ },
+ created(){
+ // 监听搜索快捷设置项目
+ window.subModule.$on('sub-module-setting-search', this.searchSetting)
+ },
+ template: `
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+ `
+}
+
+window.tl_rtc_app_module_setting_list = tl_rtc_app_module_setting_list
\ No newline at end of file
diff --git a/web-v2-res/js/module/setting/setting.js b/web-v2-res/js/module/setting/setting.js
new file mode 100644
index 0000000..fb81b1c
--- /dev/null
+++ b/web-v2-res/js/module/setting/setting.js
@@ -0,0 +1,154 @@
+const tl_rtc_app_module_setting = {
+ props: {
+ socket: {
+ type: Object,
+ default: null
+ },
+ isMobile: {
+ type: Boolean,
+ default: false
+ },
+ user: {
+ type: Object,
+ default: null
+ },
+ company: {
+ type: Object,
+ default: null
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ computed: {
+ propsSocket(){
+ return this.socket;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsUser(){
+ return this.user
+ },
+ propsCompany(){
+ return this.company
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ watch: {
+ isMobile: {
+ handler: function(val){
+ this.handlerSettingList()
+ this.$forceUpdate()
+ },
+ immediate: true
+ },
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ data : function(){
+ return {
+ settingList: [
+ {
+ name : '帐号设置',
+ svg: '#tl-rtc-app-icon-zhanghao',
+ type : 'account',
+ show : true,
+ handler: function(){
+ this.$emit('right-module-change', 'content')
+ }
+ },
+ {
+ name : '其他设置',
+ svg: '#tl-rtc-app-icon-qita',
+ type : 'other',
+ show : true,
+ handler: function(){
+ this.$emit('right-module-change', 'content')
+ }
+ },
+ {
+ name : '退出登录',
+ svg: '#tl-rtc-app-icon-tuichu',
+ type : 'logout',
+ show : false,
+ handler: function(){
+ this.emitSubModuleEvent({
+ event: 'sub-module-sidebar-logout',
+ })
+ }
+ }
+ ]
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 处理设置列表
+ */
+ handlerSettingList: function(){
+ if (this.propsIsMobile){
+ this.settingList.forEach(item => {
+ if (item.type == 'logout'){
+ item.show = true
+ }
+ });
+ }else{
+ this.settingList.forEach(item => {
+ if (item.type == 'logout'){
+ item.show = false
+ }
+ });
+ }
+ }
+ },
+ mounted() {
+ this.handlerSettingList()
+ },
+ components:{
+ 'tl_rtc_app_module_setting_list': window.tl_rtc_app_module_setting_list,
+ },
+ template: `
+
+
+
+
+ `
+}
+
+window.tl_rtc_app_module_setting = tl_rtc_app_module_setting
\ No newline at end of file
diff --git a/web-v2-res/js/module/sidebar/bottom.js b/web-v2-res/js/module/sidebar/bottom.js
new file mode 100644
index 0000000..1affdeb
--- /dev/null
+++ b/web-v2-res/js/module/sidebar/bottom.js
@@ -0,0 +1,92 @@
+const tl_rtc_app_module_sidebar_bottom = {
+ props : {
+ tools : {
+ type : Array,
+ default : []
+ },
+ isMobile:{
+ type: Boolean,
+ default: false
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ computed: {
+ propsTools(){
+ return this.tools;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ watch: {
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 点击工具栏
+ * @param {*} tool
+ */
+ activeTool : function(tool){
+ this.tools.map(item => {
+ item.active = false;
+ })
+
+ tool.active = true;
+
+ tool.handler && tool.handler.call(this)
+ }
+ },
+ data : function(){
+ return {
+
+ }
+ },
+ template: `
+
+ `,
+}
+
+window.tl_rtc_app_module_sidebar_bottom = tl_rtc_app_module_sidebar_bottom
\ No newline at end of file
diff --git a/web-v2-res/js/module/sidebar/logo.js b/web-v2-res/js/module/sidebar/logo.js
new file mode 100644
index 0000000..fa8b4eb
--- /dev/null
+++ b/web-v2-res/js/module/sidebar/logo.js
@@ -0,0 +1,119 @@
+const tl_rtc_app_module_sidebar_logo = {
+ props : {
+ isLogin: {
+ type: Boolean,
+ default: false
+ },
+ user: {
+ type: Object,
+ default: function(){
+ return {
+ userId: '', // 用户id
+ username: '', // 用户名称
+ userAvatar: '', // 用户头像
+ }
+ }
+ },
+ isMobile: {
+ type: Boolean,
+ default: false
+ },
+ company:{
+ type: Object,
+ default: function(){
+ return {
+ name: ''
+ }
+ }
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ computed: {
+ propsIsLogin(){
+ return this.isLogin;
+ },
+ propsUser(){
+ return this.user;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsCompanyName(){
+ return this.company.name;
+ },
+ propsUserId(){
+ return this.user.userId;
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ watch: {
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ data : function(){
+ return {
+ logo : 'TL'
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 用户信息弹窗
+ * @param {*} event
+ */
+ userInfoPopup: async function(event){
+ if(!this.propsIsLogin){
+ return
+ }
+
+ // 根据userId获取用户基础信息
+ await this.emitSubModuleEvent({
+ event: 'component-popup-user-info-popup',
+ data: {
+ clientX: event.clientX,
+ clientY: event.clientY,
+ userInfo: {
+ id: this.propsUserId
+ },
+ }
+ })
+ },
+ },
+ template: `
+
+ `,
+}
+
+window.tl_rtc_app_module_sidebar_logo = tl_rtc_app_module_sidebar_logo
\ No newline at end of file
diff --git a/web-v2-res/js/module/sidebar/sidebar.js b/web-v2-res/js/module/sidebar/sidebar.js
new file mode 100644
index 0000000..add7c01
--- /dev/null
+++ b/web-v2-res/js/module/sidebar/sidebar.js
@@ -0,0 +1,330 @@
+const tl_rtc_app_module_sidebar = {
+ props: {
+ socket: {
+ type: Object,
+ default: null
+ },
+ isLogin: {
+ type: Boolean,
+ default: false
+ },
+ user: {
+ type: Object,
+ default: function(){
+ return {
+ userId: '', // 用户id
+ username: '', // 用户名称
+ userAvatar: '', // 用户头像
+ }
+ }
+ },
+ isMobile: {
+ type: Boolean,
+ default: false
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ },
+ company:{
+ type: Object,
+ default: function(){
+ return {
+ name: ''
+ }
+ }
+ }
+ },
+ computed:{
+ propsSocket(){
+ return this.socket;
+ },
+ propsIsLogin(){
+ return this.isLogin;
+ },
+ propsUser(){
+ return this.user;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsLeftModule(){
+ return this.leftModule;
+ },
+ propsRightModule(){
+ return this.rightModule;
+ },
+ propsCompany(){
+ return this.company;
+ }
+ },
+ watch: {
+ user: {
+ handler: function(val){
+ this.handlerSidebarMenu({})
+ this.$forceUpdate()
+ },
+ deep: true,
+ immediate: true
+ },
+ isMobile: {
+ handler: function(val){
+ this.handlerSidebarMenu({})
+ this.$forceUpdate()
+ },
+ immediate: true
+ }
+ },
+ data : function(){
+ return {
+ mainTools: [
+ {
+ svg : '#tl-rtc-app-icon-xiaoxi',
+ title : '消息',
+ active: this.leftModule === 'channel',
+ name: 'channel',
+ unread: 0,
+ show: true,
+ handler: this.handlerChannel
+ },
+ {
+ svg : '#tl-rtc-app-icon-tongxunlu',
+ title : '通讯录',
+ active: this.leftModule === 'contact',
+ name: 'contact',
+ unread: 0,
+ show: true,
+ handler: this.handlerContact
+ },
+ {
+ svg : '#tl-rtc-app-icon-shezhi',
+ title : '设置',
+ active: this.leftModule === 'setting',
+ name: 'setting',
+ unread: 0,
+ show: true,
+ handler: this.handlerSetting
+ }
+ ],
+ subTools : [
+ {
+ svg : '#tl-rtc-app-icon-wode-guanyuwomen',
+ title : '关于我们',
+ name: 'about',
+ show: true,
+ handler: this.aboutHandler
+ },
+ {
+ svg : '#tl-rtc-app-icon-tuichu',
+ title : '退出登录',
+ name: 'logout',
+ show: false,
+ handler: this.logoutHandler
+ }
+ ]
+ }
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 点击消息面板
+ */
+ handlerChannel: function(){
+ this.$emit('left-module-change', 'channel')
+ },
+ /**
+ * 点击通讯录
+ */
+ handlerContact: function(){
+ this.$emit('left-module-change', 'contact')
+ },
+ /**
+ * 点击设置
+ */
+ handlerSetting: function(){
+ this.$emit('left-module-change', 'setting')
+ },
+ /**
+ * 更新未读数量
+ * @param {*} name
+ * @param {*} unread
+ */
+ updateUnReadCount: function({
+ name, type, count, callback
+ }){
+ this.mainTools.forEach((tool) => {
+ if(tool.name === name){
+ if(type === 'all'){
+ tool.unread = count
+ }
+ if(type === 'add'){
+ tool.unread += count
+ }
+ if(type === 'reduce'){
+ tool.unread -= count
+ }
+ }
+ })
+
+ callback && callback()
+ },
+ /**
+ * 关于我们
+ * @returns
+ */
+ aboutHandler: function(){
+ window.open('https://app.iamtsm.cn/website.html', '_blank')
+ },
+ /**
+ * 退出登录
+ * @returns
+ */
+ logoutHandler: async function(){
+ let acceptOrReject = await new Promise(resolve => {
+ layer.confirm('确定退出登录', {
+ shadeClose: 1
+ }, function (index) {
+ resolve(true)
+ layer.close(index)
+ }, function (index) {
+ resolve(false)
+ });
+ })
+
+ if(!acceptOrReject){
+ return
+ }
+
+ const { data: logoutRes } = await this.tlRequest({
+ url: '/api/web/user-logout/logout',
+ method: 'get',
+ useCache: false,
+ })
+ if(!logoutRes.success){
+ return
+ }
+ window.location.reload()
+ },
+ /**
+ * 处理底部/侧边导航栏
+ */
+ handlerSidebarMenu: function({
+ callback
+ }){
+ let that = this
+
+ if(!this.propsIsLogin){
+ this.mainTools = []
+ }else{
+ // 登录状态下展示退出登录
+ this.subTools.forEach(item => {
+ if(item.name === 'logout'){
+ item.show = true
+ }
+ })
+ }
+
+ this.mainTools = [...this.mainTools]
+
+ callback && callback()
+ }
+ },
+ mounted(){
+ let that = this;
+
+ this.handlerSidebarMenu({})
+
+ // 注册自定义菜单
+ this.emitSubModuleEvent({
+ event: 'component-menu-register-custom',
+ data: {
+ elemId: '.tl-rtc-app-left-sidebar',
+ eventList: ['contextmenu', 'press'],
+ menuIdList: this.propsIsLogin? [
+ 'refresh', 'switchAccount', 'theme', 'personal',
+ 'quickPanel', 'switchAccount', 'setting', 'logout',
+ ] : [
+ 'refresh',
+ ],
+ extra: {}
+ }
+ })
+ },
+ created(){
+ // 监听未读消息
+ window.subModule.$on('sub-module-sidebar-unread-update', this.updateUnReadCount)
+
+ // 退出登录
+ window.subModule.$on('sub-module-sidebar-logout', this.logoutHandler)
+
+ // 处理底部/侧边导航栏
+ window.subModule.$on('sub-module-sidebar-menu-update', this.handlerSidebarMenu)
+ },
+ components:{
+ 'tl_rtc_app_module_sidebar_logo' : window.tl_rtc_app_module_sidebar_logo,
+ 'tl_rtc_app_module_sidebar_tool' : window.tl_rtc_app_module_sidebar_tool,
+ 'tl_rtc_app_module_sidebar_bottom': window.tl_rtc_app_module_sidebar_bottom,
+ },
+ template: `
+
+ `
+}
+
+window.tl_rtc_app_module_sidebar = tl_rtc_app_module_sidebar
\ No newline at end of file
diff --git a/web-v2-res/js/module/sidebar/tool.js b/web-v2-res/js/module/sidebar/tool.js
new file mode 100644
index 0000000..3ba4077
--- /dev/null
+++ b/web-v2-res/js/module/sidebar/tool.js
@@ -0,0 +1,237 @@
+const tl_rtc_app_module_sidebar_tool = {
+ props : {
+ tools : {
+ type : Array,
+ default : []
+ },
+ isLogin: {
+ type: Boolean,
+ default: false
+ },
+ isMobile: {
+ type: Boolean,
+ default: false
+ },
+ user: {
+ type: Object,
+ default: function(){
+ return {
+ id: '',
+ name: '',
+ avatar: ''
+ }
+ }
+ },
+ leftModule: {
+ type: String,
+ default: ''
+ },
+ rightModule: {
+ type: String,
+ default: ''
+ }
+ },
+ watch: {
+ isMobile: {
+ handler: function(){
+ this.initSwiper()
+ },
+ immediate: true
+ },
+ tools: {
+ handler: function(val){
+ this.initSwiper()
+ },
+ deep: true,
+ immediate: true
+ },
+ leftModule: function (val) {
+
+ },
+ rightModule: function (val) {
+
+ }
+ },
+ computed: {
+ propsTools(){
+ return this.tools;
+ },
+ propsIsLogin(){
+ return this.isLogin;
+ },
+ propsIsMobile(){
+ return this.isMobile;
+ },
+ propsUser(){
+ return this.user;
+ },
+ openMessageDot(){
+ return this.user.messageSetting.messageDot
+ },
+ showToolCount(){
+ return this.propsTools.filter(item => item.show).length
+ },
+ propsLeftModule() {
+ return this.leftModule;
+ },
+ propsRightModule() {
+ return this.rightModule;
+ },
+ },
+ methods: {
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ leftModuleChange: function(event){
+ this.$emit('left-module-change', event)
+ },
+ /**
+ * 事件触发,向上传递
+ * @param {*} event
+ */
+ rightModuleChange: function(event){
+ this.$emit('right-module-change', event)
+ },
+ /**
+ * 点击工具栏
+ * @param {*} tool
+ */
+ activeTool : function(tool){
+ this.tools.map(item => {
+ item.active = false;
+ })
+
+ tool.active = true;
+
+ tool.handler && tool.handler.call(this)
+ },
+ mouseEnter: function(event, item){
+ if(this.propsIsMobile){
+ return
+ }
+ tl_rtc_app_comm.mouseEnterTips({
+ id: event.target.id,
+ text: item.title,
+ position: 'right'
+ });
+ },
+ mouseLeave: function(){
+ if(this.propsIsMobile){
+ return
+ }
+ tl_rtc_app_comm.mouseLeaveTips();
+ },
+ /**
+ * 渲染swiper
+ * @returns
+ */
+ initSwiper: function(){
+ let that = this
+ if(!this.propsIsMobile){
+ return
+ }
+
+ new Swiper('#sidebarToolListMobileSwiper', {
+ slidesPerView: that.showToolCount > 4 ? 4 : that.showToolCount,
+ direction: 'horizontal',
+ loop: false,
+ observer: true,
+ mousewheel: false, // 鼠标滚轮控制
+ forceToAxis: true, // 滚动条只能在一个方向上拖动
+ spaceBetween: 0,
+ freeMode: {
+ momentumRatio: 1, // 惯性动量比
+ momentumBounceRatio: 0, // 滑动反弹
+ minimumVelocity: 0, // 最小滑动速度
+ }
+ });
+ }
+ },
+ data : function(){
+ return {
+ swiper: null
+ }
+ },
+ mounted() {
+ this.initSwiper()
+ },
+ template: `
+
+
+
+
+
+ `,
+}
+
+window.tl_rtc_app_module_sidebar_tool = tl_rtc_app_module_sidebar_tool
\ No newline at end of file
diff --git a/web-v2-res/js/tl_rtc_app.js b/web-v2-res/js/tl_rtc_app.js
new file mode 100644
index 0000000..52086fc
--- /dev/null
+++ b/web-v2-res/js/tl_rtc_app.js
@@ -0,0 +1,382 @@
+// 是否启用中继
+let useTurn = (window.localStorage.getItem("tl-rtc-app-use-turn") || "false") === 'true';
+
+let load_tl_rtc_app_js = async function(){
+ let { data : configInitRes } = await axios.get("/api/web/config/init", {
+ params: {
+ turn: useTurn
+ }
+ })
+ if(!configInitRes.success){
+ layer.msg("系统错误")
+ return
+ }
+
+ let {
+ wsHost, logo, version, rtcConfig, options,
+ } = configInitRes.data
+
+ let {
+ tl_rtc_app_comm,
+ tl_rtc_app_lang
+ } = window
+
+ let { data : loginStateRes } = await axios.get("/api/web/user-login/login-state");
+ let isLogin = loginStateRes.success
+ let username = loginStateRes.data.loginUsername
+ let userId = loginStateRes.data.loginUserId
+ let userAvatar = loginStateRes.data.loginUserAvatar
+ let userCompanyId = loginStateRes.data.loginUserCompanyId
+ let userEmail = loginStateRes.data.loginUserEmail
+ let userMobile = loginStateRes.data.loginUserMobile
+ let userRoleId = loginStateRes.data.loginUserRoleId
+ let loginTime = loginStateRes.data.loginTime
+ let companyName = loginStateRes.data.loginUserCompanyName
+ let token = loginStateRes.data.token
+ let normalSetting = ''
+ let accountSetting = ''
+ let messageSetting = ''
+ let authoritySetting = ''
+ let skinSetting = ''
+ let otherSetting = ''
+ let components = {}
+
+ if(isLogin){
+ window.localStorage.setItem('token', token)
+
+ let { data : userConfigRes } = await axios.get('/api/web/user-config/get-user-config')
+ accountSetting = userConfigRes.data.account
+ messageSetting = userConfigRes.data.message
+ otherSetting = userConfigRes.data.other
+ // 是否使用自定义wss地址
+ customWss = otherSetting.customWss || ""
+ if(customWss && window.tl_rtc_app_comm.isWssHost(customWss)){
+ wsHost = customWss;
+ }
+ // 浏览器通知
+ webNotify = messageSetting.webNotify
+ // 消息红点数量提示
+ messageDot = messageSetting.messageDot
+
+ components = {
+ // 侧边/底部
+ 'tl_rtc_app_module_sidebar': window.tl_rtc_app_module_sidebar,
+ // 登录
+ 'tl_rtc_app_module_login': window.tl_rtc_app_module_login,
+ 'tl_rtc_app_module_login_content': window.tl_rtc_app_module_login_content,
+ // 空白
+ 'tl_rtc_app_module_blank_content': window.tl_rtc_app_module_blank_content,
+ // 联系人
+ 'tl_rtc_app_module_contact': window.tl_rtc_app_module_contact,
+ 'tl_rtc_app_module_contact_content': window.tl_rtc_app_module_contact_content,
+ // 频道
+ 'tl_rtc_app_module_channel': window.tl_rtc_app_module_channel,
+ 'tl_rtc_app_module_channel_content': window.tl_rtc_app_module_channel_content,
+ // 设置
+ 'tl_rtc_app_module_setting': window.tl_rtc_app_module_setting,
+ 'tl_rtc_app_module_setting_content': window.tl_rtc_app_module_setting_content,
+ }
+ }else{
+ components = {
+ // 侧边/底部
+ 'tl_rtc_app_module_sidebar': window.tl_rtc_app_module_sidebar,
+ // 登录
+ 'tl_rtc_app_module_login': window.tl_rtc_app_module_login,
+ 'tl_rtc_app_module_login_content': window.tl_rtc_app_module_login_content,
+ // 空白
+ 'tl_rtc_app_module_blank_content': window.tl_rtc_app_module_blank_content,
+ }
+ }
+
+
+ // 注册全局方法
+ Vue.prototype.emitSubModuleEvent = async function ({
+ event = "",
+ data = {},
+ }){
+ return new Promise((resolve, reject) => {
+ window.subModule.$emit(event, Object.assign(data, {
+ callback: function(res){
+ resolve(res)
+ }
+ }))
+ })
+ }
+
+ Vue.prototype.popSuccessMsg = async function (
+ msg
+ ){
+ return await this.emitSubModuleEvent({
+ event: 'component-popup-add-toast-msg',
+ data: {
+ type: 'success',
+ message: msg
+ }
+ })
+ }
+
+ Vue.prototype.popWarningMsg = async function (
+ msg
+ ){
+ return await this.emitSubModuleEvent({
+ event: 'component-popup-add-toast-msg',
+ data: {
+ type: 'warning',
+ message: msg
+ }
+ })
+ }
+
+ Vue.prototype.popErrorMsg = async function (
+ msg
+ ){
+ return await this.emitSubModuleEvent({
+ event: 'component-popup-add-toast-msg',
+ data: {
+ type: 'error',
+ message: msg
+ }
+ })
+ }
+
+ Vue.prototype.tlRequest = async function ({
+ url, method, params, data, headers,
+ useCache, cacheTime, delCaches, responseType
+ }){
+ return await this.emitSubModuleEvent({
+ event: 'component-api-request',
+ data: {
+ url, method, params, data, headers,
+ useCache, cacheTime, delCaches, responseType
+ }
+ })
+ }
+
+ window.tl_rtc_app = new Vue({
+ el: '#tl-rtc-app',
+ data: function(){
+ let socket = null;
+
+ if (io && isLogin) {
+ socket = io(wsHost,{
+ transports : [ 'websocket'],
+ query: { token : token || "" }
+ });
+
+
+ // 初始化rtc
+ this.emitSubModuleEvent({
+ event: "component-socket-init-socket",
+ data: {
+ socket
+ }
+ })
+ }
+
+ let langMode = 'zh'
+ let langArgs = tl_rtc_app_comm.getRequestHashArgs("lang")
+ if (langArgs && ['zh','en'].includes(langArgs)) {
+ langMode = langArgs;
+ }
+
+ return {
+ langMode : langMode, // 默认中文
+ lang : tl_rtc_app_lang, // 语言包
+ logo : logo, // 打印logo
+ version : version,// 项目当前版本
+ socket: socket, // socket
+ wsHost : wsHost, // ws地址
+ isLogin : isLogin, // 是否登录
+ user: {
+ userId : userId, // 用户id
+ username: username, // 用户名称
+ userAvatar: userAvatar, // 用户头像
+ userCompanyId: userCompanyId, // 用户公司id
+ userEmail: userEmail, // 用户邮箱
+ userMobile: userMobile, // 用户手机号
+ userRoleId: userRoleId, // 用户角色id
+ loginTime: loginTime, // 登录时间
+
+ accountSetting: accountSetting, // 用户账号设置
+ messageSetting: messageSetting, // 用户消息设置
+ otherSetting: otherSetting, // 用户其他设置
+ token: token, // 用户token
+ },
+ company: {
+ name : companyName || 'TL-RTC-APP' // 组织名称
+ },
+ leftModule : isLogin ? 'channel' : 'login', // 左侧默认模块
+ rightModule : isLogin ? 'blank' : 'blank', // 右侧默认模块,
+ showRightModule: false, // 是否显示右侧模块
+ isMobile: tl_rtc_app_comm.isMobile(), // 是否移动端
+ isStandaloneMode: false, // 是否是独立窗口模式
+ }
+ },
+ methods: {
+ /**
+ * 左侧模块切换
+ * @param {*} module
+ * @returns
+ */
+ leftModuleChange: function(module){
+ if(module === 'login' && this.isLogin){
+ return
+ }
+ if(!this.isLogin){
+ this.leftModule = 'login';
+ return
+ }
+
+ this.leftModule = module;
+ this.rightModule = 'blank';
+
+ console.log("leftModuleChange", module)
+ },
+ /**
+ * 右侧模块切换
+ * @param {*} module
+ */
+ rightModuleChange: function(module){
+ this.rightModule = module;
+
+ console.log("rightModuleChange", module)
+ },
+ /**
+ * 控制展示左右模块是否可见 - 移动端
+ * @param {*} showRightModule
+ * @param {*} callback
+ */
+ moduleShowChange: function({
+ showRightModule, callback
+ }){
+ if(!this.isMobile){
+ callback && callback(false)
+ return
+ }
+
+ if(showRightModule !== undefined){
+ this.showRightModule = showRightModule
+ }
+
+ console.log("moduleShowChange", showRightModule)
+
+ callback && callback(true)
+ },
+ /**
+ * 加载js调试器
+ */
+ loadVConsoleJs: function () {
+ if (window.location.hash && window.location.hash.includes("debug")) {
+ window.tl_rtc_app_comm.loadJS('/static/js/vconsole.min.js', function () {
+ window.tl_rtc_app_comm.loadJS('/static/js/vconsole.js', function () {
+ console.log('load vconsole success')
+ });
+ });
+ }
+ },
+ /**
+ * 当前是否登录
+ * @param {*} callback
+ */
+ getIsLogin: function({
+ callback
+ }){
+ return callback && callback(this.isLogin)
+ },
+ /**
+ * 获取模块
+ * @param {*} callback
+ */
+ getModule: function({
+ callback
+ }){
+ return callback && callback({
+ leftModule: this.leftModule,
+ rightModule: this.rightModule
+ })
+ },
+ /**
+ * 用户设置变更
+ * @param {*} accountSetting
+ * @param {*} messageSetting
+ * @param {*} otherSetting
+ * @returns
+ */
+ userSettingChange: function({
+ accountSetting, messageSetting, otherSetting
+ }){
+ if(accountSetting){
+ this.user.accountSetting = accountSetting
+ }
+ if(messageSetting){
+ this.user.messageSetting = messageSetting
+ }
+ if(otherSetting){
+ this.user.otherSetting = otherSetting
+ }
+ }
+ },
+ mounted() {
+ let that = this;
+
+ window.addEventListener('resize', function(){
+ that.isMobile = tl_rtc_app_comm.isMobile()
+ }, true)
+
+ this.loadVConsoleJs()
+
+ if(this.isLogin){
+ this.emitSubModuleEvent({
+ event: "sub-module-login-set-cache-account",
+ data: {
+ userId: this.user.userId,
+ username: this.user.username,
+ avatarUrl: this.user.userAvatar,
+ token: this.user.token,
+ time: new Date().getTime()
+ }
+ })
+ }
+
+ // 从URL参数判断是否是独立窗口模式
+ const params = new URLSearchParams(location.hash.slice(1));
+ this.isStandaloneMode = params.get('mode') === 'standalone';
+
+ if(this.isStandaloneMode){
+ this.leftModule = params.get('lm') || 'blank';
+ this.rightModule = params.get('rm') || 'blank';
+
+ // 设置侧边栏宽度
+ document.documentElement.style.setProperty('--sidebar-width', "0px")
+ // 设置页面宽度
+ document.documentElement.style.setProperty('--body-width', "100%")
+ // 设置页面高度
+ document.documentElement.style.setProperty('--body-height', "100%")
+ // 设置页面最大宽度
+ document.documentElement.style.setProperty('--body-max-width', "100%")
+ }
+ },
+ created(){
+ // 修改右侧模块
+ window.subModule.$on('sub-module-core-change-module-show', this.moduleShowChange)
+
+ // 获取当前是否登录
+ window.subModule.$on('sub-module-core-is-login', this.getIsLogin)
+
+ // 获取当前模块
+ window.subModule.$on('sub-module-core-get-module', this.getModule)
+
+ // 用户设置变更
+ window.subModule.$on('sub-module-core-user-setting-change', this.userSettingChange)
+ },
+ watch:{
+ isMobile: {
+ handler: function(val){},
+ immediate: true
+ }
+ },
+ components: components,
+ })
+}
+
+load_tl_rtc_app_js()
\ No newline at end of file
diff --git a/web-v2-res/js/tl_rtc_entry.js b/web-v2-res/js/tl_rtc_entry.js
new file mode 100644
index 0000000..1c7ee9d
--- /dev/null
+++ b/web-v2-res/js/tl_rtc_entry.js
@@ -0,0 +1,49 @@
+window.subModule = new Vue();
+
+layui.use([
+ 'layedit', 'form', 'layer', 'laytpl', 'upload',
+ 'dropdown', 'carousel', 'util', 'colorpicker',
+ 'slider', 'carousel', 'element', 'laydate',
+], function () {
+ window.layer = layui.layer;
+ window.form = layui.form;
+ window.laydate = layui.laydate;
+ window.$ = layui.$;
+ window.layedit = layui.layedit;
+ window.laytpl = layui.laytpl;
+ window.upload = layui.upload;
+ window.dropdown = layui.dropdown;
+ window.carousel = layui.carousel;
+ window.util = layui.util;
+ window.colorpicker = layui.colorpicker;
+ window.slider = layui.slider;
+ window.element = layui.element;
+
+ const loadJs = function (url, callback) {
+ let script = document.createElement('script'),
+ fn = callback || function () { };
+ script.type = 'text/javascript';
+ //IE
+ if (script.readyState) {
+ script.onreadystatechange = function () {
+ if (script.readyState == 'loaded' || script.readyState == 'complete') {
+ script.onreadystatechange = null;
+ fn();
+ }
+ };
+ } else {
+ //其他浏览器
+ script.onload = function () {
+ fn();
+ };
+ }
+ script.src = url;
+ document.getElementsByTagName('head')[0].appendChild(script);
+ }
+
+ loadJs('lib-basic-sdk.min.js', function () {
+ loadJs('lib-component-sdk.min.js', function () {
+ loadJs('lib-module-sdk.min.js', function () { });
+ });
+ });
+});
\ No newline at end of file
diff --git a/web-v2-res/js/website/website.js b/web-v2-res/js/website/website.js
new file mode 100644
index 0000000..6385873
--- /dev/null
+++ b/web-v2-res/js/website/website.js
@@ -0,0 +1,1369 @@
+const TlRtcAppWebsite = {
+ globals: {
+ $: null,
+ form: null,
+ layer: null,
+ captchaGenerator: null // 添加验证码生成器到全局
+ },
+
+ init() {
+ layui.use(['jquery', 'form', 'layer'], () => {
+ this.globals.$ = layui.jquery;
+ this.globals.form = layui.form;
+ this.globals.layer = layui.layer;
+ this.globals.captchaGenerator = new this.CaptchaGenerator();
+
+ const $ = this.globals.$;
+
+ $(document).ready(() => {
+ this.checkLoginStatus();
+ this.initCaptcha();
+ this.initLoginPopup();
+ this.initCarousel();
+ this.initTheme();
+ this.initPricing();
+ this.initMobileNav();
+ this.initHelp();
+
+ // 绑定退出登录事件
+ $(document).on('click', '.logout-btn', () => {
+ this.logout();
+ });
+
+ // 绑定个人中心点击事件
+ $(document).on('click', 'a[href="/user/center"]', (e) => {
+ e.preventDefault();
+ this.showUserCenter();
+ });
+
+ // 绑定订单管理点击事件
+ $(document).on('click', 'a[href="/user/orders"]', (e) => {
+ e.preventDefault();
+ this.showOrderManagement();
+ });
+ });
+ });
+ },
+
+ /**
+ * 验证码生成器类
+ */
+ CaptchaGenerator: class {
+ constructor(options = {}) {
+ this.options = {
+ width: 120,
+ height: 40,
+ length: 4,
+ chars: '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ',
+ colors: ['#4A90E2', '#27AE60', '#8E44AD', '#F39C12', '#C0392B'],
+ fontSize: 28,
+ ...options
+ };
+
+ this.canvas = document.createElement('canvas');
+ this.canvas.width = this.options.width;
+ this.canvas.height = this.options.height;
+ this.ctx = this.canvas.getContext('2d');
+ this.captchaText = '';
+ }
+
+ generateText() {
+ let text = '';
+ for (let i = 0; i < this.options.length; i++) {
+ text += this.options.chars[Math.floor(Math.random() * this.options.chars.length)];
+ }
+ this.captchaText = text;
+ return text;
+ }
+
+ drawInterferenceLines() {
+ for (let i = 0; i < 3; i++) {
+ this.ctx.strokeStyle = this.options.colors[Math.floor(Math.random() * this.options.colors.length)];
+ this.ctx.beginPath();
+ this.ctx.moveTo(Math.random() * this.options.width, Math.random() * this.options.height);
+ this.ctx.lineTo(Math.random() * this.options.width, Math.random() * this.options.height);
+ this.ctx.stroke();
+ }
+ }
+
+ drawInterferenceDots() {
+ for (let i = 0; i < 30; i++) {
+ this.ctx.fillStyle = this.options.colors[Math.floor(Math.random() * this.options.colors.length)];
+ this.ctx.beginPath();
+ this.ctx.arc(Math.random() * this.options.width, Math.random() * this.options.height, 1, 0, 2 * Math.PI);
+ this.ctx.fill();
+ }
+ }
+
+ draw() {
+ this.ctx.fillStyle = '#fff';
+ this.ctx.fillRect(0, 0, this.options.width, this.options.height);
+ const text = this.generateText();
+ this.drawInterferenceLines();
+ this.drawInterferenceDots();
+ this.ctx.font = `bold ${this.options.fontSize}px Arial`;
+ this.ctx.textBaseline = 'middle';
+ const totalWidth = this.ctx.measureText(text).width;
+ const startX = (this.options.width - totalWidth) / 2;
+
+ for (let i = 0; i < text.length; i++) {
+ const char = text[i];
+ const charWidth = this.ctx.measureText(char).width;
+ const x = startX + i * (totalWidth / text.length);
+ const y = this.options.height / 2;
+ const rotation = (Math.random() - 0.5) * 0.4;
+
+ this.ctx.save();
+ this.ctx.translate(x, y);
+ this.ctx.rotate(rotation);
+ this.ctx.fillStyle = this.options.colors[Math.floor(Math.random() * this.options.colors.length)];
+ this.ctx.fillText(char, 0, 0);
+ this.ctx.restore();
+ }
+
+ return {
+ text: this.captchaText,
+ canvas: this.canvas
+ };
+ }
+
+ validate(userInput, caseSensitive = false) {
+ if (!userInput || !this.captchaText) return false;
+ return caseSensitive ?
+ userInput === this.captchaText :
+ userInput.toLowerCase() === this.captchaText.toLowerCase();
+ }
+
+ refresh() {
+ return this.draw();
+ }
+ },
+
+ /**
+ * 轮播图
+ */
+ Carousel: class {
+ constructor(element, $) {
+ this.$ = $;
+ this.wrapper = element;
+ this.items = this.wrapper.find('.tl-rtc-app-website-carousel-items');
+ this.itemsArray = this.items.find('.tl-rtc-app-website-carousel-item');
+ this.currentIndex = 0;
+ this.totalItems = this.itemsArray.length;
+ this.autoPlayInterval = null;
+ this.isAnimating = false;
+ this.animationDuration = 500;
+
+ if (this.totalItems > 0) {
+ this.init();
+ }
+ }
+
+ init() {
+ this.cloneItems();
+ this.createIndicators();
+ this.bindEvents();
+ this.updateIndicators();
+ this.startAutoPlay();
+ this.goToSlide(0);
+ }
+
+ cloneItems() {
+ const $ = this.$;
+ // 克隆第一个和最后一个项目
+ const $firstItem = this.itemsArray.first().clone();
+ const $lastItem = this.itemsArray.last().clone();
+
+ // 添加到轮播的首尾
+ this.items.append($firstItem);
+ this.items.prepend($lastItem);
+
+ // 设置初始位置
+ this.items.css('transform', 'translateX(-100%)');
+ }
+
+ createIndicators() {
+ const $ = this.$;
+ const indicators = $('');
+
+ for (let i = 0; i < this.totalItems; i++) {
+ indicators.append($(''));
+ }
+
+ this.wrapper.append(indicators);
+ this.indicators = indicators.find('.indicator');
+ }
+
+ bindEvents() {
+ const self = this;
+ const $ = this.$;
+
+ // 指示器点击事件
+ this.wrapper.find('.indicator').off('click').on('click', function () {
+ if (!self.isAnimating) {
+ const index = $(this).index();
+ self.goToSlide(index);
+ }
+ });
+
+ // 上一张按钮
+ this.wrapper.find('.tl-rtc-app-website-carousel-btn.prev').off('click').on('click', function () {
+ if (!self.isAnimating) {
+ self.prevSlide();
+ }
+ });
+
+ // 下一张按钮
+ this.wrapper.find('.tl-rtc-app-website-carousel-btn.next').off('click').on('click', function () {
+ if (!self.isAnimating) {
+ self.nextSlide();
+ }
+ });
+
+ // 鼠标悬停暂停自动播放
+ this.wrapper.off('mouseenter mouseleave').on({
+ mouseenter: () => this.stopAutoPlay(),
+ mouseleave: () => this.startAutoPlay()
+ });
+ }
+
+ updateIndicators() {
+ this.indicators.removeClass('active');
+ this.indicators.eq(this.currentIndex).addClass('active');
+ }
+
+ goToSlide(index, isAuto = false) {
+ if (this.isAnimating) return;
+
+ this.isAnimating = true;
+ this.currentIndex = index;
+
+ const translateX = -(index + 1) * 100;
+ this.items.css({
+ 'transition': `transform ${this.animationDuration}ms ease`,
+ 'transform': `translateX(${translateX}%)`
+ });
+
+ this.updateIndicators();
+
+ setTimeout(() => {
+ this.isAnimating = false;
+
+ // 处理边界情况
+ if (index === -1) {
+ this.items.css({
+ 'transition': 'none',
+ 'transform': `translateX(${-this.totalItems * 100}%)`
+ });
+ this.currentIndex = this.totalItems - 1;
+ this.updateIndicators();
+ } else if (index === this.totalItems) {
+ this.items.css({
+ 'transition': 'none',
+ 'transform': 'translateX(-100%)'
+ });
+ this.currentIndex = 0;
+ this.updateIndicators();
+ }
+ }, this.animationDuration);
+ }
+
+ prevSlide() {
+ this.goToSlide(this.currentIndex - 1);
+ }
+
+ nextSlide() {
+ this.goToSlide(this.currentIndex + 1);
+ }
+
+ startAutoPlay() {
+ this.stopAutoPlay();
+ this.autoPlayInterval = setInterval(() => {
+ this.nextSlide();
+ }, 5000);
+ }
+
+ stopAutoPlay() {
+ if (this.autoPlayInterval) {
+ clearInterval(this.autoPlayInterval);
+ this.autoPlayInterval = null;
+ }
+ }
+ },
+
+ /**
+ * 初始化验证码
+ */
+ initCaptcha() {
+ const $ = this.globals.$;
+ const self = this;
+
+ // 使用事件委托绑定点事件
+ $(document).on('click', '.tl-rtc-app-website-captcha-canvas', function () {
+ self.refreshCaptcha(this);
+ });
+ },
+
+ // 添加刷新验证码的方法
+ refreshCaptcha(canvas) {
+ if (!canvas || !this.globals.captchaGenerator) return;
+
+ try {
+ const { canvas: newCanvas, text } = this.globals.captchaGenerator.draw();
+ const ctx = canvas.getContext('2d');
+ canvas.width = newCanvas.width;
+ canvas.height = newCanvas.height;
+ ctx.drawImage(newCanvas, 0, 0);
+ console.log('新验证码:', text); // 用于测试
+ } catch (error) {
+ console.error('刷新验证码失败:', error);
+ }
+ },
+
+ /**
+ * 初始化登录弹窗
+ */
+ initLoginPopup() {
+ const $ = this.globals.$;
+ const self = this;
+
+ // 登录按钮点击事件
+ $(document).off('click', '.tl-rtc-app-website-login-btn').on('click', '.tl-rtc-app-website-login-btn', function () {
+ $('.tl-rtc-app-website-login-popup, .tl-rtc-app-website-popup-overlay').fadeIn(300);
+
+ // 重置表单状态
+ $('#registerForm').hide();
+ $('#loginForm').show();
+ $('.tl-rtc-app-website-third-party-login').show();
+ $('.tl-rtc-app-website-login-header h2').text('欢迎回来');
+
+ // 初始化验证码
+ const captchaCanvas = $('#loginForm .tl-rtc-app-website-captcha-canvas')[0];
+ if (captchaCanvas) {
+ self.refreshCaptcha(captchaCanvas);
+ }
+ });
+
+ // 切换到注册表单
+ $(document).off('click', '.tl-rtc-app-website-to-register').on('click', '.tl-rtc-app-website-to-register', function (e) {
+ e.preventDefault();
+ e.stopPropagation();
+
+ $('.tl-rtc-app-website-login-header h2').text('创建账号');
+ $('#loginForm').hide();
+ $('.tl-rtc-app-website-third-party-login').hide();
+ $('#registerForm').show();
+
+ // 初始化注册表单的验证码
+ const captchaCanvas = $('#registerForm .tl-rtc-app-website-captcha-canvas')[0];
+ if (captchaCanvas) {
+ self.refreshCaptcha(captchaCanvas);
+ }
+ });
+
+ // 切换到登录表单
+ $(document).off('click', '.tl-rtc-app-website-to-login').on('click', '.tl-rtc-app-website-to-login', function (e) {
+ e.preventDefault();
+ e.stopPropagation();
+
+ $('.tl-rtc-app-website-login-header h2').text('欢迎回来');
+ $('#registerForm').hide();
+ $('#loginForm').show();
+ $('.tl-rtc-app-website-third-party-login').show();
+
+ // 初始化登录表单的验证码
+ const captchaCanvas = $('#loginForm .tl-rtc-app-website-captcha-canvas')[0];
+ if (captchaCanvas) {
+ self.refreshCaptcha(captchaCanvas);
+ }
+ });
+
+ // 验证码点击刷新
+ $(document).off('click', '.tl-rtc-app-website-captcha-canvas, .tl-rtc-app-website-captcha-refresh')
+ .on('click', '.tl-rtc-app-website-captcha-canvas, .tl-rtc-app-website-captcha-refresh', function (e) {
+ e.preventDefault();
+ e.stopPropagation();
+ const canvas = $(this).closest('.tl-rtc-app-website-form-group').find('.tl-rtc-app-website-captcha-canvas')[0];
+ if (canvas) {
+ self.refreshCaptcha(canvas);
+ }
+ });
+
+ // 关闭按钮和遮罩层点击事件
+ $(document).off('click', '.tl-rtc-app-website-popup-close, .tl-rtc-app-website-popup-overlay')
+ .on('click', '.tl-rtc-app-website-popup-close, .tl-rtc-app-website-popup-overlay', function (e) {
+ if ($(e.target).is('.tl-rtc-app-website-popup-overlay') || $(e.target).closest('.tl-rtc-app-website-popup-close').length) {
+ $('.tl-rtc-app-website-login-popup, .tl-rtc-app-website-forgot-popup, .tl-rtc-app-website-popup-overlay').fadeOut(300);
+ }
+ });
+
+ // ESC键关闭弹窗
+ $(document).off('keyup').on('keyup', function (e) {
+ if (e.key === 'Escape') {
+ $('.tl-rtc-app-website-login-popup, .tl-rtc-app-website-popup-overlay').fadeOut(300);
+ }
+ });
+
+ // 表单提交事件
+ $('#loginForm').off('submit').on('submit', async function (e) {
+ e.preventDefault();
+ const captcha = $(this).find('input[name="captcha"]').val()
+ if(!captcha){
+ layer.msg('验证码不能为空')
+ return
+ }
+
+ if(!$(this).find('input[name="username"]').val() && !$(this).find('input[name="email"]').val()){
+ layer.msg('用户名和邮箱不能为空')
+ return
+ }
+
+ if(!$(this).find('input[name="password"]').val()){
+ layer.msg('密码不能为空')
+ return
+ }
+
+ // 判断验证码
+ if(!self.globals.captchaGenerator.validate(captcha)){
+ layer.msg('验证码错误')
+ return
+ }
+
+ let formData = {
+ email: $(this).find('input[name="username"]').val(),
+ password: $(this).find('input[name="password"]').val(),
+ };
+
+ formData.password = Base64.encode(formData.password)
+ formData.email = Base64.encode(formData.email)
+
+ const { data: result } = await axios.post('/api/web/user-login/login-by-website', formData)
+ console.log('登录结果:', result);
+ if(result.success){
+ // 保存用户信息到 localStorage
+ localStorage.setItem('tl_rtc_app_website_user_info', JSON.stringify({
+ userId: result.data.loginUserId,
+ email: result.data.loginUserEmail,
+ username: result.data.loginUsername,
+ avatar: result.data.loginUserAvatar,
+ lastLoginTime: result.data.loginTime
+ }));
+
+ layer.msg('登录成功')
+ setTimeout(() => {
+ window.location.reload()
+ }, 1000)
+ }else{
+ layer.msg(result.msg)
+ }
+ });
+
+ $('#registerForm').off('submit').on('submit', async function (e) {
+ e.preventDefault();
+ if(!$(this).find('input[name="email"]').val()){
+ layer.msg('邮箱不能为空')
+ return
+ }
+
+ if(!$(this).find('input[name="password"]').val()){
+ layer.msg('密码不能为空')
+ return
+ }
+
+ if(!$(this).find('input[name="confirmPassword"]').val()){
+ layer.msg('确认密码不能为空')
+ return
+ }
+
+ if($(this).find('input[name="password"]').val() !== $(this).find('input[name="confirmPassword"]').val()){
+ layer.msg('密码和确认密码不一致')
+ return
+ }
+
+ const emailCode = $(this).find('input[name="emailCode"]').val();
+ if (!emailCode) {
+ layer.msg('请输入邮箱验证码');
+ return;
+ }
+
+ const formData = {
+ email: $(this).find('input[name="email"]').val(),
+ password: $(this).find('input[name="password"]').val(),
+ code: emailCode
+ };
+
+ formData.email = Base64.encode(formData.email);
+ formData.password = Base64.encode(formData.password);
+
+ const { data: result } = await axios.post('/api/web/user-register/register-website-user', formData);
+
+ if(result.success){
+ layer.msg('注册成功,请登录')
+ setTimeout(() => {
+ window.location.reload()
+ }, 1000)
+ }else{
+ layer.msg(result.msg)
+ }
+ });
+
+ // 发送验证码按钮点击事件
+ $(document).off('click', '.tl-rtc-app-website-send-code-btn')
+ .on('click', '.tl-rtc-app-website-send-code-btn', async function(e) {
+ e.preventDefault();
+ const $btn = $(this);
+ const email = $btn.closest('form').find('input[name="email"]').val();
+
+ if (!email) {
+ layer.msg('请输入邮箱');
+ return;
+ }
+
+ // 禁用按钮并开始倒计时
+ let countdown = 60;
+ $btn.prop('disabled', true);
+ const timer = setInterval(() => {
+ if (countdown > 0) {
+ $btn.text(`${countdown}秒后重试`);
+ countdown--;
+ } else {
+ clearInterval(timer);
+ $btn.prop('disabled', false).text('发送验证码');
+ }
+ }, 1000);
+
+ try {
+ // 发送验证码请求
+ const { data: result } = await axios.post('/api/web/user-register/get-email-code', {
+ email: email
+ });
+ console.log('发送验证码结果:', result);
+ if(result.success){
+ layer.msg('验证码已发送,请查收邮件');
+ }else{
+ layer.msg(result.msg);
+ }
+ } catch (error) {
+ clearInterval(timer);
+ $btn.prop('disabled', false).text('发送验证码');
+ layer.msg('验证码发送失败,请重试');
+ }
+ });
+
+ // 修改登录表单中的忘记密码链接事件绑定
+ $(document).off('click', '.tl-rtc-app-website-form-footer a:contains("忘记密码")')
+ .on('click', '.tl-rtc-app-website-form-footer a:contains("忘记密码")', function (e) {
+ e.preventDefault();
+ e.stopPropagation();
+
+ // 先隐藏登录弹窗
+ $('.tl-rtc-app-website-login-popup').hide();
+
+ // 确保遮罩层保持显示
+ $('.tl-rtc-app-website-popup-overlay').show();
+
+ // 显示忘记密码弹窗
+ $('.tl-rtc-app-website-forgot-popup').fadeIn(300);
+ });
+
+ // 从忘记密码返回登录
+ $(document).off('click', '.tl-rtc-app-website-forgot-popup .tl-rtc-app-website-to-login')
+ .on('click', '.tl-rtc-app-website-forgot-popup .tl-rtc-app-website-to-login', function (e) {
+ e.preventDefault();
+ e.stopPropagation();
+
+ $('.tl-rtc-app-website-forgot-popup').hide();
+ $('.tl-rtc-app-website-login-popup').fadeIn(300);
+ });
+
+ // 关闭按钮事件
+ $(document).off('click', '.tl-rtc-app-website-forgot-popup .tl-rtc-app-website-popup-close')
+ .on('click', '.tl-rtc-app-website-forgot-popup .tl-rtc-app-website-popup-close', function() {
+ $('.tl-rtc-app-website-popup-overlay').hide();
+ $('.tl-rtc-app-website-forgot-popup').hide();
+ });
+
+ // 忘记密码表单提交
+ $('#forgotForm').off('submit').on('submit', async function (e) {
+ e.preventDefault();
+
+ const emailCode = $(this).find('input[name="emailCode"]').val();
+ if (!emailCode) {
+ layer.msg('请输入邮箱验证码');
+ return;
+ }
+
+ const newPassword = $(this).find('input[name="newPassword"]').val();
+ const confirmPassword = $(this).find('input[name="confirmPassword"]').val();
+
+ if (!newPassword) {
+ layer.msg('请输入新密码');
+ return;
+ }
+
+ if (!confirmPassword) {
+ layer.msg('请确认新密码');
+ return;
+ }
+
+ if (newPassword !== confirmPassword) {
+ layer.msg('两次输入的密码不一致');
+ return;
+ }
+
+ const formData = {
+ email: $(this).find('input[name="email"]').val(),
+ code: emailCode,
+ password: Base64.encode(newPassword)
+ };
+
+ try {
+ const { data: result } = await axios.post('/api/web/user-password/reset', formData);
+ if (result.success) {
+ layer.msg('密码重置成功,请登录');
+ setTimeout(() => {
+ $('.tl-rtc-app-website-forgot-popup').hide();
+ $('.tl-rtc-app-website-login-popup').fadeIn(300);
+ }, 1000);
+ } else {
+ layer.msg(result.msg);
+ }
+ } catch (error) {
+ layer.msg('密码重置失败,请重试');
+ }
+ });
+
+ // 忘记密码弹窗的发送验证码按钮
+ $('.tl-rtc-app-website-forgot-popup .tl-rtc-app-website-send-code-btn').off('click')
+ .on('click', async function(e) {
+ e.preventDefault();
+ const $btn = $(this);
+ const email = $btn.closest('form').find('input[name="email"]').val();
+
+ if (!email) {
+ layer.msg('请输入邮箱');
+ return;
+ }
+
+ // 禁用按钮并开始倒计时
+ let countdown = 60;
+ $btn.prop('disabled', true);
+ const timer = setInterval(() => {
+ if (countdown > 0) {
+ $btn.text(`${countdown}秒后重试`);
+ countdown--;
+ } else {
+ clearInterval(timer);
+ $btn.prop('disabled', false).text('发送验证码');
+ }
+ }, 1000);
+
+ try {
+ const { data: result } = await axios.post('/api/web/user-password/get-reset-code', {
+ email: email
+ });
+ if (result.success) {
+ layer.msg('验证码已发送,请查收邮件');
+ } else {
+ layer.msg(result.msg);
+ clearInterval(timer);
+ $btn.prop('disabled', false).text('发送验证码');
+ }
+ } catch (error) {
+ clearInterval(timer);
+ $btn.prop('disabled', false).text('发送验证码');
+ layer.msg('验证码发送失败,请重试');
+ }
+ });
+ },
+
+ /**
+ * 初始化轮播图
+ */
+ initCarousel() {
+ const $ = this.globals.$;
+ const $carouselWrapper = $('.tl-rtc-app-website-carousel-wrapper');
+
+ if ($carouselWrapper.length) {
+ new this.Carousel($carouselWrapper, $);
+ } else {
+ console.error('Carousel wrapper not found');
+ }
+ },
+
+ /**
+ * 初始化主题
+ */
+ initTheme() {
+ const $ = this.globals.$;
+
+ // 主题切换按钮点击事件
+ $(document).on('click', '.tl-rtc-app-website-theme-toggle', function () {
+ const $icon = $(this).find('i');
+ const currentTheme = document.documentElement.getAttribute('data-theme') || 'light';
+ const newTheme = currentTheme === 'dark' ? 'light' : 'dark';
+
+ // 设置主题
+ document.documentElement.setAttribute('data-theme', newTheme);
+ localStorage.setItem('theme', newTheme);
+
+ // 更新图标
+ if (newTheme === 'dark') {
+ $icon.removeClass('layui-icon-moon').addClass('layui-icon-sun');
+ $icon.css('color', '#fff'); // 暗色主题下图标使用白色
+ } else {
+ $icon.removeClass('layui-icon-sun').addClass('layui-icon-moon');
+ $icon.css('color', '#333'); // 亮色主题下图标使用色
+ }
+ });
+
+ // 初始化主题
+ const savedTheme = localStorage.getItem('theme') || 'light';
+ document.documentElement.setAttribute('data-theme', savedTheme);
+ const $icon = $('.tl-rtc-app-website-theme-toggle i');
+
+ // 初始化图标状态
+ if (savedTheme === 'dark') {
+ $icon.removeClass('layui-icon-moon').addClass('layui-icon-sun');
+ $icon.css('color', '#fff');
+ } else {
+ $icon.removeClass('layui-icon-sun').addClass('layui-icon-moon');
+ $icon.css('color', '#333');
+ }
+ },
+
+ /**
+ * 初始化价格模块
+ */
+ initPricing() {
+ const $ = this.globals.$;
+ const layer = this.globals.layer;
+ const self = this;
+
+ // 获取产品列表
+ const fetchProducts = async () => {
+ try {
+ const { data: result } = await axios.post('/api/web/website-product/get-product-list');
+ if (result.success) {
+ return result.data || [];
+ }
+ return [];
+ } catch (error) {
+ console.error('Fetch products error:', error);
+ return [];
+ }
+ };
+
+ // 格式化时间,转为剩余时间
+ const formatRemainingTime = (endTime) => {
+ const now = new Date();
+ const end = new Date(endTime);
+ const diff = end - now;
+
+ if (diff <= 0) {
+ return '已结束';
+ }
+
+ const days = Math.floor(diff / (1000 * 60 * 60 * 24));
+ const hours = Math.floor(diff / (1000 * 60 * 60) % 24);
+ const minutes = Math.floor(diff / (1000 * 60) % 60);
+ const seconds = Math.floor(diff / 1000 % 60);
+
+ return `${days}天 ${hours}小时 ${minutes}分 ${seconds}秒`;
+ };
+
+ // 渲染产品列表
+ const renderProducts = (products) => {
+ // 按type排序
+ products.sort((a, b) => a.type - b.type);
+
+ return products.map(product => `
+
+ `).join('');
+ };
+
+ // 初始化产品列表
+ const initProducts = async () => {
+ const $container = $('.tl-rtc-app-website-pricing-container');
+
+ // 显示加载状态
+ $container.html(`
+
+ `);
+
+ // 获取产品列表
+ const products = await fetchProducts();
+
+ if (products.length === 0) {
+ $container.html(`
+
+ `);
+ return;
+ }
+
+ // 渲染产品列表
+ $container.html(renderProducts(products));
+
+ // 更新每一个产品的优惠倒计时
+ const discountInterval = document.getElementsByClassName('discountInterval');
+ if (discountInterval) {
+ for (let i = 0; i < discountInterval.length; i++) {
+ // 定时器更新倒计时
+ setInterval(() => {
+ discountInterval[i].innerHTML = `优惠即将在 ${formatRemainingTime(products[i].discountEndTime)} `;
+ }, 1000);
+ }
+ }
+ };
+
+ // 初始化产品列表
+ initProducts();
+
+ // 添加购买按钮点击事件
+ $(document).off('click', '.tl-rtc-app-website-pricing-btn').on('click', '.tl-rtc-app-website-pricing-btn', async function(e) {
+ e.preventDefault();
+
+ const productId = $(this).data('product-id');
+ const card = $(this).closest('.tl-rtc-app-website-pricing-card');
+ const version = card.find('.tl-rtc-app-website-pricing-title').text();
+
+ // 跳过基础版和团队版
+ if (version === '基础版' || version === '团队版') {
+ return;
+ }
+
+ // 检查登录状态
+ const userInfo = localStorage.getItem('tl_rtc_app_website_user_info');
+ if (!userInfo) {
+ layer.msg('请先登录');
+ // 显示登录弹窗
+ $('.tl-rtc-app-website-login-btn').click();
+ return;
+ }
+
+ // 显示确认弹窗
+ layer.confirm(`创建${version}订单`, {
+ btn: ['确认', '取消'],
+ title: '订单创建',
+ shadeClose: 1,
+ skin: 'tl-rtc-app-website-layer',
+ }, async function(index) {
+ try {
+ // 创建订单
+ const { data: result } = await axios.post('/api/web/website-product-order/create-order', {
+ productId: productId
+ });
+
+ if (result.success) {
+ // 打开订单管理页面并定位到新创建的订单
+ self.showOrderManagement(result.data.id);
+ } else {
+ layer.msg(result.msg || '创建订单失败');
+ }
+ } catch (error) {
+ layer.msg('创建订单失败,请重试');
+ console.error('Create order error:', error);
+ }
+
+ layer.close(index);
+ });
+
+
+ });
+ },
+
+ initMobileNav() {
+ const $ = this.globals.$;
+ let isOpen = false;
+
+ // 移动端菜单切换
+ $('.tl-rtc-app-website-mobile-nav-toggle').on('click', function () {
+ const $nav = $('.tl-rtc-app-website-nav-mobile');
+ const $icon = $(this).find('i');
+
+ if (isOpen) {
+ $nav.removeClass('active');
+ $icon.removeClass('layui-icon-close').addClass('layui-icon-shrink-right');
+ } else {
+ $nav.addClass('active');
+ $icon.removeClass('layui-icon-shrink-right').addClass('layui-icon-close');
+ }
+
+ isOpen = !isOpen;
+ });
+
+ // 导航点击处理函数
+ const handleNavClick = (e) => {
+ e.preventDefault();
+ const target = $(e.currentTarget).attr('href');
+
+ // 如果是锚点链接
+ if (target && target.startsWith('#')) {
+ const $targetSection = $(target);
+ if ($targetSection.length) {
+ const headerHeight = $('.tl-rtc-app-website-header').outerHeight();
+ const targetOffset = $targetSection.offset().top - headerHeight;
+
+ // 关闭移动端菜单
+ if ($(window).width() <= 768) {
+ $('.tl-rtc-app-website-nav-mobile').removeClass('active');
+ $('.tl-rtc-app-website-mobile-nav-toggle i')
+ .removeClass('layui-icon-close')
+ .addClass('layui-icon-shrink-right');
+ isOpen = false;
+ }
+
+ // 平滑滚动到目标位置
+ $('html, body').animate({
+ scrollTop: targetOffset
+ }, 800);
+ }
+ }
+ };
+
+ // 为桌面端和移动端导航添加点击事件
+ $(document).off('click', '.tl-rtc-app-website-nav a:not(.tl-rtc-app-website-login-btn), .tl-rtc-app-website-nav-mobile a:not(.tl-rtc-app-website-login-btn)')
+ .on('click', '.tl-rtc-app-website-nav a:not(.tl-rtc-app-website-login-btn), .tl-rtc-app-website-nav-mobile a:not(.tl-rtc-app-website-login-btn)', handleNavClick);
+ },
+
+ // 在 TlRtcAppWebsite 对象中添加初始化帮助文档的方法
+ initHelp() {
+ const $ = this.globals.$;
+
+ // 文档导航切换
+ $('.tl-rtc-app-website-help-nav button').on('click', function () {
+ const target = $(this).data('target');
+
+ // 更新按钮状态
+ $('.tl-rtc-app-website-help-nav button').removeClass('active');
+ $(this).addClass('active');
+
+ // 更新内容显示
+ $('.tl-rtc-app-website-help-section').removeClass('active');
+ $(`#${target}`).addClass('active');
+ });
+
+ // FAQ折叠面板
+ $('.faq-question').on('click', function () {
+ const $item = $(this).parent();
+ const $answer = $item.find('.faq-answer');
+
+ if ($item.hasClass('active')) {
+ $item.removeClass('active');
+ $answer.slideUp(300);
+ } else {
+ $('.faq-item').removeClass('active');
+ $('.faq-answer').slideUp(300);
+ $item.addClass('active');
+ $answer.slideDown(300);
+ }
+ });
+
+ // 代码复制功能
+ $('.copy-btn').on('click', function () {
+ const code = $(this).prev('pre').text();
+ navigator.clipboard.writeText(code).then(() => {
+ const $btn = $(this);
+ const originalText = $btn.text();
+
+ $btn.text('已复制!');
+ setTimeout(() => {
+ $btn.html('复制');
+ }, 2000);
+ });
+ });
+ },
+
+ /**
+ * 检查登录状态
+ */
+ checkLoginStatus() {
+ const $ = this.globals.$;
+
+ axios.get('/api/web/user-login/website-login-state').then(({data: result}) => {
+ if (result.success && result.data) {
+ // 使用新的前缀存储用户信息
+ localStorage.setItem('tl_rtc_app_website_user_info', JSON.stringify({
+ userId: result.data.loginUserId,
+ email: result.data.loginUserEmail,
+ username: result.data.loginUsername,
+ avatar: result.data.loginUserAvatar,
+ lastLoginTime: result.data.loginTime
+ }));
+
+ // 隐藏登录按钮,显示头像
+ $('.tl-rtc-app-website-login-btn').hide();
+ $('.tl-rtc-app-website-user-avatar').show();
+
+ // 设置用户头像
+ if(result.data.loginUserAvatar) {
+ $('.tl-rtc-app-website-user-avatar img').attr('src', result.data.loginUserAvatar);
+ }
+ } else {
+ // 清除本地存储时也使用新的 key
+ localStorage.removeItem('tl_rtc_app_website_user_info');
+ // 显示登录按钮,隐藏头像
+ $('.tl-rtc-app-website-login-btn').show();
+ $('.tl-rtc-app-website-user-avatar').hide();
+ }
+ });
+ },
+
+ logout() {
+ const $ = this.globals.$;
+ const layer = this.globals.layer;
+
+ axios.get('/api/web/user-logout/website-logout').then(({data: result}) => {
+ if(result.success) {
+ // 清除本地存储的用户信息
+ localStorage.removeItem('tl_rtc_app_website_user_info');
+
+ layer.msg('退出成功');
+ setTimeout(() => {
+ window.location.reload();
+ }, 1000);
+ } else {
+ layer.msg(result.msg);
+ }
+ });
+ },
+
+ /**
+ * 显示个人中心弹窗
+ */
+ showUserCenter() {
+ const $ = this.globals.$;
+ const layer = this.globals.layer;
+
+ // 使用新的 key 获取用户信息
+ const userInfo = JSON.parse(localStorage.getItem('tl_rtc_app_website_user_info') || '{}');
+
+ // 格式化时间
+ const formatTime = (timestamp) => {
+ if (!timestamp) return '暂无记录';
+ return new Date(Number(timestamp)).toLocaleString();
+ };
+
+ layer.open({
+ type: 1,
+ title: '个人信息',
+ shadeClose: 1,
+ area: ['400px', '430px'],
+ skin: 'tl-rtc-app-website-layer', // 添加自定义皮肤类
+ content: `
+
+
+
+
+
+ ${userInfo.userId || ''}
+
+
+
+ ${formatTime(userInfo.lastLoginTime)}
+
+
+
+ `,
+ success: (layero) => {
+ // 设置弹窗的宽度
+ layero.css({
+ 'border-radius': '6px',
+ })
+ }
+ });
+ },
+
+ /**
+ * 显示订单管理弹窗
+ */
+ showOrderManagement(targetOrderId = null) {
+ const $ = this.globals.$;
+ const layer = this.globals.layer;
+ const self = this;
+
+ // 分页配置
+ const pageSize = 5;
+ let currentPage = 1;
+ let currentStatus = 'all';
+
+ // 格式化时间
+ const formatTime = (timestamp) => {
+ return date = new Date(timestamp).toLocaleString();
+ };
+
+ // 获取订单列表
+ const fetchOrders = async () => {
+ try {
+ const { data: result } = await axios.post('/api/web/website-product-order/get-order-list', {
+ page: currentPage,
+ pageSize: pageSize,
+ status: currentStatus,
+ });
+ if (result.success) {
+ return result.data || [];
+ }
+ return [];
+ } catch (error) {
+ console.error('Fetch orders error:', error);
+ return [];
+ }
+ };
+
+ // 支付订单
+ const payOrder = async (orderId) => {
+ try {
+ const { data: result } = await axios.post('/api/web/website-product-order/offline-pay-order', {
+ orderId: orderId
+ });
+ if (result.success) {
+ layer.msg(result.msg);
+ await refreshOrders(); // 刷新订单列表
+ } else {
+ layer.msg(result.msg || '支付失败');
+ }
+ } catch (error) {
+ layer.msg('支付失败,请重试');
+ console.error('Pay order error:', error);
+ }
+ };
+
+ // 取消订单
+ const cancelOrder = async (orderId) => {
+ try {
+ const { data: result } = await axios.post('/api/web/website-product-order/cancel-order', {
+ orderId: orderId
+ });
+ if (result.success) {
+ layer.msg('订单已取消');
+ await refreshOrders(); // 刷新订单列表
+ } else {
+ layer.msg(result.msg || '取消订单失败');
+ }
+ } catch (error) {
+ layer.msg('取消订单失败,请重试');
+ console.error('Cancel order error:', error);
+ }
+ };
+
+ // 刷新订单列表
+ const refreshOrders = async () => {
+ const orders = await fetchOrders();
+ const filteredOrders = currentStatus === 'all'
+ ? orders
+ : orders.filter(order => order.status === currentStatus);
+ const totalPages = Math.ceil(filteredOrders.length / pageSize);
+ const startIndex = (currentPage - 1) * pageSize;
+ const endIndex = startIndex + pageSize;
+ const pageOrders = filteredOrders.slice(startIndex, endIndex);
+
+ // 渲染订单列表
+ $('.order-container').html(renderOrders(pageOrders, currentPage, totalPages));
+
+ // 如果有目标订单号,高亮显示
+ if (targetOrderId) {
+ const targetElement = $(`.order-item[data-order-id="${targetOrderId}"]`);
+ if (targetElement.length > 0) {
+ targetElement.addClass('highlight-order');
+ targetElement[0].scrollIntoView({ behavior: 'smooth', block: 'center' });
+ }
+ }
+ };
+
+ // 渲染订单列表
+ const renderOrders = (orders, page, totalPages) => {
+ let classMap = {
+ "1": "unpaid",
+ "2": "paid",
+ "3": "cancel",
+ "4": "finish",
+ }
+ if (orders.length === 0) {
+ return `
+
+ `;
+ }
+
+ return `
+
+ ${orders.map(order => `
+
+
+
+
+
${order.productName}
+
${order.productDesc}
+
+
+
¥${(order.productPrice / 100).toFixed(2)}
+ ${order.status === 1 ? `
+
+
+ ` : ''}
+
+
+
+ `).join('')}
+
+ ${totalPages > 0 ? `
+
+ ` : ''}
+ `;
+ };
+
+ // 打开订单管理弹窗
+ layer.open({
+ type: 1,
+ title: '订单管理',
+ area: ['800px', '635px'],
+ scrollbar: false,
+ shadeClose: 1,
+ skin: 'tl-rtc-app-website-layer',
+ content: `
+
+ `,
+ success: async function(layero) {
+ layero.css({
+ 'border-radius': '6px'
+ })
+ // 初始化订单列表
+ await refreshOrders();
+
+ // 绑定标签切换
+ $(layero).find('.order-tabs a').on('click', async function() {
+ currentStatus = $(this).data('status');
+ currentPage = 1;
+ $(this).addClass('active').siblings().removeClass('active');
+ await refreshOrders();
+ });
+
+ // 绑定分页事件
+ $(layero).on('click', '.prev-page:not(:disabled)', async function() {
+ currentPage--;
+ await refreshOrders();
+ });
+
+ $(layero).on('click', '.next-page:not(:disabled)', async function() {
+ currentPage++;
+ await refreshOrders();
+ });
+
+ // 绑定支付和取消按钮事件
+ $(layero).on('click', '.pay-btn', function() {
+ const orderId = $(this).data('order-id');
+ layer.confirm('确定要支付该订单吗?', {
+ btn: ['确定', '取消'],
+ shadeClose: 1,
+ skin: 'tl-rtc-app-website-layer',
+ }, function(index) {
+ payOrder(orderId);
+ layer.close(index);
+ });
+ });
+
+ $(layero).on('click', '.cancel-btn', function() {
+ const orderId = $(this).data('order-id');
+ layer.confirm('确定要取消该订单吗?', {
+ btn: ['确定', '取消'],
+ shadeClose: 1,
+ skin: 'tl-rtc-app-website-layer',
+ }, function(index) {
+ cancelOrder(orderId);
+ layer.close(index);
+ });
+ });
+
+ // 初始化复制功能
+ const clipboard = new ClipboardJS('.copy-icon');
+
+ clipboard.on('success', function(e) {
+ layer.msg('复制成功');
+ e.clearSelection();
+ });
+
+ clipboard.on('error', function(e) {
+ layer.msg('复制失败,请手动复制');
+ });
+ }
+ });
+ }
+};
+
+// 初始化网站
+TlRtcAppWebsite.init();
\ No newline at end of file
diff --git a/web-v2-res/static/css/default.min.css b/web-v2-res/static/css/default.min.css
new file mode 100644
index 0000000..96e1842
--- /dev/null
+++ b/web-v2-res/static/css/default.min.css
@@ -0,0 +1,9 @@
+/*!
+ Theme: Default
+ Description: Original highlight.js style
+ Author: (c) Ivan Sagalaev
+ Maintainer: @highlightjs/core-team
+ Website: https://highlightjs.org/
+ License: see project LICENSE
+ Touched: 2021
+*/pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#f0f0f0;color:#444}.hljs-comment{color:#888}.hljs-punctuation,.hljs-tag{color:#444a}.hljs-tag .hljs-attr,.hljs-tag .hljs-name{color:#444}.hljs-attribute,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-name,.hljs-selector-tag{font-weight:700}.hljs-deletion,.hljs-number,.hljs-quote,.hljs-selector-class,.hljs-selector-id,.hljs-string,.hljs-template-tag,.hljs-type{color:#800}.hljs-section,.hljs-title{color:#800;font-weight:700}.hljs-link,.hljs-operator,.hljs-regexp,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#bc6060}.hljs-literal{color:#78a960}.hljs-addition,.hljs-built_in,.hljs-bullet,.hljs-code{color:#397300}.hljs-meta{color:#1f7199}.hljs-meta .hljs-string{color:#4d99bf}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}
\ No newline at end of file
diff --git a/web-v2-res/static/css/editor.main.min.css b/web-v2-res/static/css/editor.main.min.css
new file mode 100644
index 0000000..b1b473d
--- /dev/null
+++ b/web-v2-res/static/css/editor.main.min.css
@@ -0,0 +1,6 @@
+/*!-----------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Version: 0.30.1(829382514cb1065f5ebb90f436e1c6103e153953)
+ * Released under the MIT license
+ * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
+ *-----------------------------------------------------------*/.monaco-action-bar{white-space:nowrap;height:100%}.monaco-action-bar .actions-container{display:flex;margin:0 auto;padding:0;height:100%;width:100%;align-items:center}.monaco-action-bar.vertical .actions-container{display:inline-block}.monaco-action-bar .action-item{display:block;align-items:center;justify-content:center;cursor:pointer;position:relative}.monaco-action-bar .action-item.disabled{cursor:default}.monaco-action-bar .action-item .codicon,.monaco-action-bar .action-item .icon{display:block}.monaco-action-bar .action-item .codicon{display:flex;align-items:center;width:16px;height:16px}.monaco-action-bar .action-label{font-size:11px;padding:3px;border-radius:5px}.monaco-action-bar .action-item.disabled .action-label,.monaco-action-bar .action-item.disabled .action-label:before,.monaco-action-bar .action-item.disabled .action-label:hover{opacity:.4}.monaco-action-bar.vertical{text-align:left}.monaco-action-bar.vertical .action-item{display:block}.monaco-action-bar.vertical .action-label.separator{display:block;border-bottom:1px solid #bbb;padding-top:1px;margin-left:.8em;margin-right:.8em}.monaco-action-bar .action-item .action-label.separator{width:1px;height:16px;margin:5px 4px!important;cursor:default;min-width:1px;padding:0;background-color:#bbb}.secondary-actions .monaco-action-bar .action-label{margin-left:6px}.monaco-action-bar .action-item.select-container{overflow:hidden;flex:1;max-width:170px;min-width:60px;display:flex;align-items:center;justify-content:center;margin-right:10px}.monaco-action-bar .action-item.action-dropdown-item{display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-label{margin-right:1px}.monaco-aria-container{position:absolute;left:-999em}.monaco-text-button{box-sizing:border-box;display:flex;width:100%;padding:4px;text-align:center;cursor:pointer;justify-content:center;align-items:center}.monaco-text-button:focus{outline-offset:2px!important}.monaco-text-button:hover{text-decoration:none!important}.monaco-button.disabled,.monaco-button.disabled:focus{opacity:.4!important;cursor:default}.monaco-text-button>.codicon{margin:0 .2em;color:inherit!important}.monaco-button-dropdown{display:flex;cursor:pointer}.monaco-button-dropdown>.monaco-dropdown-button{margin-left:1px}.monaco-description-button{flex-direction:column}.monaco-description-button .monaco-button-label{font-weight:500}.monaco-description-button .monaco-button-description{font-style:italic}.monaco-custom-checkbox{margin-left:2px;float:left;cursor:pointer;overflow:hidden;opacity:.7;width:20px;height:20px;border:1px solid transparent;padding:1px;box-sizing:border-box;user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-custom-checkbox.checked,.monaco-custom-checkbox:hover{opacity:1}.hc-black .monaco-custom-checkbox,.hc-black .monaco-custom-checkbox:hover{background:0 0}.monaco-custom-checkbox.monaco-simple-checkbox{height:18px;width:18px;border:1px solid transparent;border-radius:3px;margin-right:9px;margin-left:0;padding:0;opacity:1;background-size:16px!important}.monaco-custom-checkbox.monaco-simple-checkbox:not(.checked):before{visibility:hidden}@font-face{font-family:codicon;font-display:block;src:url(../base/browser/ui/codicons/codicon/codicon.ttf) format("truetype")}.codicon[class*=codicon-]{font:normal normal normal 16px/1 codicon;display:inline-block;text-decoration:none;text-rendering:auto;text-align:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;user-select:none;-webkit-user-select:none;-ms-user-select:none}.codicon-wrench-subaction{opacity:.5}@keyframes codicon-spin{to{transform:rotate(1turn)}}.codicon-gear.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-notebook-state-executing.codicon-modifier-spin,.codicon-sync.codicon-modifier-spin{animation:codicon-spin 1.5s steps(30) infinite}.codicon-modifier-disabled{opacity:.4}.codicon-loading,.codicon-tree-item-loading:before{animation-duration:1s!important;animation-timing-function:cubic-bezier(.53,.21,.29,.67)!important}.context-view{position:absolute;z-index:2500}.context-view.fixed{all:initial;font-family:inherit;font-size:13px;position:fixed;z-index:2500;color:inherit}.monaco-count-badge{padding:3px 6px;border-radius:11px;font-size:11px;min-width:18px;min-height:18px;line-height:11px;font-weight:400;text-align:center;display:inline-block;box-sizing:border-box}.monaco-count-badge.long{padding:2px 3px;border-radius:2px;min-height:auto;line-height:normal}.monaco-dropdown{height:100%;padding:0}.monaco-dropdown>.dropdown-label{cursor:pointer;height:100%;display:flex;align-items:center;justify-content:center}.monaco-dropdown>.dropdown-label>.action-label.disabled{cursor:default}.monaco-dropdown-with-primary{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-primary>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:50%;background-repeat:no-repeat}.monaco-findInput{position:relative}.monaco-findInput .monaco-inputbox{font-size:13px;width:100%}.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.vs .monaco-findInput.disabled{background-color:#e1e1e1}.vs-dark .monaco-findInput.disabled{background-color:#333}.monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-0 .1s linear 0s}.monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-1 .1s linear 0s}.hc-black .monaco-findInput.highlight-0 .controls,.vs-dark .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-dark-0 .1s linear 0s}.hc-black .monaco-findInput.highlight-1 .controls,.vs-dark .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-dark-1 .1s linear 0s}@keyframes monaco-findInput-highlight-0{0%{background:rgba(253,255,0,.8)}to{background:0 0}}@keyframes monaco-findInput-highlight-1{0%{background:rgba(253,255,0,.8)}99%{background:0 0}}@keyframes monaco-findInput-highlight-dark-0{0%{background:hsla(0,0%,100%,.44)}to{background:0 0}}@keyframes monaco-findInput-highlight-dark-1{0%{background:hsla(0,0%,100%,.44)}99%{background:0 0}}.monaco-hover{cursor:default;position:absolute;overflow:hidden;z-index:50;user-select:text;-webkit-user-select:text;-ms-user-select:text;box-sizing:initial;animation:fadein .1s linear;line-height:1.5em}.monaco-hover.hidden{display:none}.monaco-hover .hover-contents:not(.html-hover-contents){padding:4px 8px}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents){max-width:500px;word-wrap:break-word}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents) hr{min-width:100%}.monaco-hover .code,.monaco-hover p,.monaco-hover ul{margin:8px 0}.monaco-hover code{font-family:var(--monaco-monospace-font)}.monaco-hover hr{box-sizing:border-box;border-left:0;border-right:0;margin:4px -8px -4px;height:1px}.monaco-hover .code:first-child,.monaco-hover p:first-child,.monaco-hover ul:first-child{margin-top:0}.monaco-hover .code:last-child,.monaco-hover p:last-child,.monaco-hover ul:last-child{margin-bottom:0}.monaco-hover ol,.monaco-hover ul{padding-left:20px}.monaco-hover li>p{margin-bottom:0}.monaco-hover li>ul{margin-top:0}.monaco-hover code{border-radius:3px;padding:0 .4em}.monaco-hover .monaco-tokenized-source{white-space:pre-wrap}.monaco-hover .hover-row.status-bar{font-size:12px;line-height:22px}.monaco-hover .hover-row.status-bar .actions{display:flex;padding:0 8px}.monaco-hover .hover-row.status-bar .actions .action-container{margin-right:16px;cursor:pointer}.monaco-hover .hover-row.status-bar .actions .action-container .action .icon{padding-right:4px}.monaco-hover .markdown-hover .hover-contents .codicon{color:inherit;font-size:inherit;vertical-align:middle}.monaco-hover .hover-contents a.code-link,.monaco-hover .hover-contents a.code-link:hover{color:inherit}.monaco-hover .hover-contents a.code-link:before{content:"("}.monaco-hover .hover-contents a.code-link:after{content:")"}.monaco-hover .hover-contents a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span{margin-bottom:4px;display:inline-block}.monaco-hover-content .action-container a{-webkit-user-select:none;user-select:none}.monaco-hover-content .action-container.disabled{pointer-events:none;opacity:.4;cursor:default}.monaco-icon-label{display:flex;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label:before{background-size:16px;background-position:0;background-repeat:no-repeat;padding-right:6px;width:16px;height:22px;line-height:inherit!important;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top;flex-shrink:0}.monaco-icon-label>.monaco-icon-label-container{min-width:0;overflow:hidden;text-overflow:ellipsis;flex:1}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{color:inherit;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name>.label-separator{margin:0 2px;opacity:.5}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.7;margin-left:.5em;font-size:.9em;white-space:pre}.monaco-icon-label.nowrap>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{white-space:nowrap}.vs .monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.95}.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-description-container>.label-description,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{font-style:italic}.monaco-icon-label.deprecated{text-decoration:line-through;opacity:.66}.monaco-icon-label.italic:after{font-style:italic}.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-description-container>.label-description,.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{text-decoration:line-through}.monaco-icon-label:after{opacity:.75;font-size:90%;font-weight:600;margin:auto 16px 0 5px;text-align:center}.monaco-list:focus .selected .monaco-icon-label,.monaco-list:focus .selected .monaco-icon-label:after{color:inherit!important}.monaco-list-row.focused.selected .label-description,.monaco-list-row.selected .label-description{opacity:.8}.monaco-inputbox{position:relative;display:block;padding:0;box-sizing:border-box;font-size:inherit}.monaco-inputbox.idle{border:1px solid transparent}.monaco-inputbox>.ibwrapper>.input,.monaco-inputbox>.ibwrapper>.mirror{padding:4px}.monaco-inputbox>.ibwrapper{position:relative;width:100%;height:100%}.monaco-inputbox>.ibwrapper>.input{display:inline-block;box-sizing:border-box;width:100%;height:100%;line-height:inherit;border:none;font-family:inherit;font-size:inherit;resize:none;color:inherit}.monaco-inputbox>.ibwrapper>input{text-overflow:ellipsis}.monaco-inputbox>.ibwrapper>textarea.input{display:block;-ms-overflow-style:none;scrollbar-width:none;outline:0}.monaco-inputbox>.ibwrapper>textarea.input::-webkit-scrollbar{display:none}.monaco-inputbox>.ibwrapper>textarea.input.empty{white-space:nowrap}.monaco-inputbox>.ibwrapper>.mirror{position:absolute;display:inline-block;width:100%;top:0;left:0;box-sizing:border-box;white-space:pre-wrap;visibility:hidden;word-wrap:break-word}.monaco-inputbox-container{text-align:right}.monaco-inputbox-container .monaco-inputbox-message{display:inline-block;overflow:hidden;text-align:left;width:100%;box-sizing:border-box;padding:.4em;font-size:12px;line-height:17px;margin-top:-1px;word-wrap:break-word}.monaco-inputbox .monaco-action-bar{position:absolute;right:2px;top:4px}.monaco-inputbox .monaco-action-bar .action-item{margin-left:2px}.monaco-inputbox .monaco-action-bar .action-item .codicon{background-repeat:no-repeat;width:16px;height:16px}.monaco-keybinding{display:flex;align-items:center;line-height:10px}.monaco-keybinding>.monaco-keybinding-key{display:inline-block;border-style:solid;border-width:1px;border-radius:3px;vertical-align:middle;font-size:11px;padding:3px 5px;margin:0 2px}.monaco-keybinding>.monaco-keybinding-key:first-child{margin-left:0}.monaco-keybinding>.monaco-keybinding-key:last-child{margin-right:0}.monaco-keybinding>.monaco-keybinding-key-separator{display:inline-block}.monaco-keybinding>.monaco-keybinding-key-chord-separator{width:6px}.monaco-list{position:relative;height:100%;width:100%;white-space:nowrap}.monaco-list.mouse-support{user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-list>.monaco-scrollable-element{height:100%}.monaco-list-rows{position:relative;width:100%;height:100%}.monaco-list.horizontal-scrolling .monaco-list-rows{width:auto;min-width:100%}.monaco-list-row{position:absolute;box-sizing:border-box;overflow:hidden;width:100%}.monaco-list.mouse-support .monaco-list-row{cursor:pointer;touch-action:none}.monaco-list-row.scrolling{display:none!important}.monaco-list.element-focused,.monaco-list.selection-multiple,.monaco-list.selection-single{outline:0!important}.monaco-drag-image{display:inline-block;padding:1px 7px;border-radius:10px;font-size:12px;position:absolute;z-index:1000}.monaco-list-type-filter{display:flex;align-items:center;position:absolute;border-radius:2px;padding:0 3px;max-width:calc(100% - 10px);text-overflow:ellipsis;overflow:hidden;text-align:right;box-sizing:border-box;cursor:all-scroll;font-size:13px;line-height:18px;height:20px;z-index:1;top:4px}.monaco-list-type-filter.dragging{transition:top .2s,left .2s}.monaco-list-type-filter.ne{right:4px}.monaco-list-type-filter.nw{left:4px}.monaco-list-type-filter>.controls{display:flex;align-items:center;box-sizing:border-box;transition:width .2s;width:0}.monaco-list-type-filter.dragging>.controls,.monaco-list-type-filter:hover>.controls{width:36px}.monaco-list-type-filter>.controls>*{border:none;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;background:0 0;width:16px;height:16px;flex-shrink:0;margin:0;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer}.monaco-list-type-filter>.controls>.filter{margin-left:4px}.monaco-list-type-filter-message{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;padding:40px 1em 1em;text-align:center;white-space:normal;opacity:.7;pointer-events:none}.monaco-list-type-filter-message:empty{display:none}.monaco-list-type-filter{cursor:grab}.monaco-list-type-filter.dragging{cursor:grabbing}.monaco-mouse-cursor-text{cursor:text}.hc-black .mac .monaco-mouse-cursor-text,.hc-black.mac .monaco-mouse-cursor-text,.vs-dark .mac .monaco-mouse-cursor-text,.vs-dark.mac .monaco-mouse-cursor-text{cursor:-webkit-image-set(url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=) 1x,url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAAz0lEQVRIx2NgYGBY/R8I/vx5eelX3n82IJ9FxGf6tksvf/8FiTMQAcAGQMDvSwu09abffY8QYSAScNk45G198eX//yev73/4///701eh//kZSARckrNBRvz//+8+6ZohwCzjGNjdgQxkAg7B9WADeBjIBqtJCbhRA0YNoIkBSNmaPEMoNmA0FkYNoFKhapJ6FGyAH3nauaSmPfwI0v/3OukVi0CIZ+F25KrtYcx/CTIy0e+rC7R1Z4KMICVTQQ14feVXIbR695u14+Ir4gwAAD49E54wc1kWAAAAAElFTkSuQmCC) 2x) 5 8,text}.monaco-progress-container{width:100%;height:5px;overflow:hidden}.monaco-progress-container .progress-bit{width:2%;height:5px;position:absolute;left:0;display:none}.monaco-progress-container.active .progress-bit{display:inherit}.monaco-progress-container.discrete .progress-bit{left:0;transition:width .1s linear}.monaco-progress-container.discrete.done .progress-bit{width:100%}.monaco-progress-container.infinite .progress-bit{animation-name:progress;animation-duration:4s;animation-iteration-count:infinite;animation-timing-function:linear;transform:translateZ(0)}@keyframes progress{0%{transform:translateX(0) scaleX(1)}50%{transform:translateX(2500%) scaleX(3)}to{transform:translateX(4900%) scaleX(1)}}:root{--sash-size:4px}.monaco-sash{position:absolute;z-index:35;touch-action:none}.monaco-sash.disabled{pointer-events:none}.monaco-sash.mac.vertical{cursor:col-resize}.monaco-sash.vertical.minimum{cursor:e-resize}.monaco-sash.vertical.maximum{cursor:w-resize}.monaco-sash.mac.horizontal{cursor:row-resize}.monaco-sash.horizontal.minimum{cursor:s-resize}.monaco-sash.horizontal.maximum{cursor:n-resize}.monaco-sash.disabled{cursor:default!important;pointer-events:none!important}.monaco-sash.vertical{cursor:ew-resize;top:0;width:var(--sash-size);height:100%}.monaco-sash.horizontal{cursor:ns-resize;left:0;width:100%;height:var(--sash-size)}.monaco-sash:not(.disabled)>.orthogonal-drag-handle{content:" ";height:calc(var(--sash-size)*2);width:calc(var(--sash-size)*2);z-index:100;display:block;cursor:all-scroll;position:absolute}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.start,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.end{cursor:nwse-resize}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.end,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.start{cursor:nesw-resize}.monaco-sash.vertical>.orthogonal-drag-handle.start{left:calc(var(--sash-size)*-.5);top:calc(var(--sash-size)*-1)}.monaco-sash.vertical>.orthogonal-drag-handle.end{left:calc(var(--sash-size)*-.5);bottom:calc(var(--sash-size)*-1)}.monaco-sash.horizontal>.orthogonal-drag-handle.start{top:calc(var(--sash-size)*-.5);left:calc(var(--sash-size)*-1)}.monaco-sash.horizontal>.orthogonal-drag-handle.end{top:calc(var(--sash-size)*-.5);right:calc(var(--sash-size)*-1)}.monaco-sash:before{content:"";pointer-events:none;position:absolute;width:100%;height:100%;transition:background-color .1s ease-out;background:0 0}.monaco-sash.vertical:before{width:var(--sash-hover-size);left:calc(50% - var(--sash-hover-size)/ 2)}.monaco-sash.horizontal:before{height:var(--sash-hover-size);top:calc(50% - var(--sash-hover-size)/ 2)}.monaco-sash.debug{background:#0ff}.monaco-sash.debug.disabled{background:rgba(0,255,255,.2)}.monaco-sash.debug:not(.disabled)>.orthogonal-drag-handle{background:red}.monaco-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.monaco-scrollable-element>.visible{opacity:1;background:0 0;transition:opacity .1s linear}.monaco-scrollable-element>.invisible{opacity:0;pointer-events:none}.monaco-scrollable-element>.invisible.fade{transition:opacity .8s linear}.monaco-scrollable-element>.shadow{position:absolute;display:none}.monaco-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%}.monaco-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px}.monaco-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.monaco-split-view2{position:relative;width:100%;height:100%}.monaco-split-view2>.sash-container{position:absolute;width:100%;height:100%;pointer-events:none}.monaco-split-view2>.sash-container>.monaco-sash{pointer-events:auto}.monaco-split-view2>.monaco-scrollable-element{width:100%;height:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container{width:100%;height:100%;white-space:nowrap;position:relative}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view{white-space:normal;position:absolute}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view:not(.visible){display:none}.monaco-split-view2.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view{width:100%}.monaco-split-view2.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view{height:100%}.monaco-split-view2.separator-border>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{content:" ";position:absolute;top:0;left:0;z-index:5;pointer-events:none;background-color:var(--separator-border)}.monaco-split-view2.separator-border.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:100%;width:1px}.monaco-split-view2.separator-border.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:1px;width:100%}.monaco-table{display:flex;flex-direction:column;position:relative;height:100%;width:100%;white-space:nowrap}.monaco-table>.monaco-split-view2{border-bottom:1px solid transparent}.monaco-table>.monaco-list{flex:1}.monaco-table-tr{display:flex;height:100%}.monaco-table-th{width:100%;height:100%;font-weight:700;overflow:hidden;text-overflow:ellipsis}.monaco-table-td,.monaco-table-th{box-sizing:border-box;flex-shrink:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{content:"";position:absolute;left:calc(var(--sash-size)/2);width:0;border-left:1px solid transparent}.monaco-table>.monaco-split-view2,.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{transition:border-color .2s ease-out}.monaco-tl-row{display:flex;height:100%;align-items:center;position:relative}.monaco-tl-indent{height:100%;position:absolute;top:0;left:16px;pointer-events:none}.hide-arrows .monaco-tl-indent{left:12px}.monaco-tl-indent>.indent-guide{display:inline-block;box-sizing:border-box;height:100%;border-left:1px solid transparent;transition:border-color .1s linear}.monaco-tl-contents,.monaco-tl-twistie{height:100%}.monaco-tl-twistie{font-size:10px;text-align:right;padding-right:6px;flex-shrink:0;width:16px;display:flex!important;align-items:center;justify-content:center;transform:translateX(3px)}.monaco-tl-contents{flex:1;overflow:hidden}.monaco-tl-twistie:before{border-radius:20px}.monaco-tl-twistie.collapsed:before{transform:rotate(-90deg)}.monaco-tl-twistie.codicon-tree-item-loading:before{animation:codicon-spin 1.25s steps(30) infinite}.quick-input-widget{position:absolute;width:600px;z-index:2000;padding:0 1px 1px;left:50%;margin-left:-300px}.quick-input-titlebar{display:flex;align-items:center}.quick-input-left-action-bar{display:flex;margin-left:4px;flex:1}.quick-input-title{padding:3px 0;text-align:center;text-overflow:ellipsis;overflow:hidden}.quick-input-right-action-bar{display:flex;margin-right:4px;flex:1}.quick-input-right-action-bar>.actions-container{justify-content:flex-end}.quick-input-titlebar .monaco-action-bar .action-label.codicon{background-position:50%;background-repeat:no-repeat;padding:2px}.quick-input-description{margin:6px}.quick-input-header .quick-input-description{margin:4px 2px}.quick-input-header{display:flex;padding:6px 6px 0;margin-bottom:-2px}.quick-input-widget.hidden-input .quick-input-header{padding:0;margin-bottom:0}.quick-input-and-message{display:flex;flex-direction:column;flex-grow:1;min-width:0;position:relative}.quick-input-check-all{align-self:center;margin:0}.quick-input-filter{flex-grow:1;display:flex;position:relative}.quick-input-box{flex-grow:1}.quick-input-widget.show-checkboxes .quick-input-box,.quick-input-widget.show-checkboxes .quick-input-message{margin-left:5px}.quick-input-visible-count{position:absolute;left:-10000px}.quick-input-count{align-self:center;position:absolute;right:4px;display:flex;align-items:center}.quick-input-count .monaco-count-badge{vertical-align:middle;padding:2px 4px;border-radius:2px;min-height:auto;line-height:normal}.quick-input-action{margin-left:6px}.quick-input-action .monaco-text-button{font-size:11px;padding:0 6px;display:flex;height:27.5px;align-items:center}.quick-input-message{margin-top:-1px;padding:5px 5px 2px;overflow-wrap:break-word}.quick-input-message>.codicon{margin:0 .2em;vertical-align:text-bottom}.quick-input-progress.monaco-progress-container{position:relative}.quick-input-progress.monaco-progress-container,.quick-input-progress.monaco-progress-container .progress-bit{height:2px}.quick-input-list{line-height:22px;margin-top:6px}.quick-input-widget.hidden-input .quick-input-list{margin-top:0}.quick-input-list .monaco-list{overflow:hidden;max-height:440px}.quick-input-list .quick-input-list-entry{box-sizing:border-box;overflow:hidden;display:flex;height:100%;padding:0 6px}.quick-input-list .quick-input-list-entry.quick-input-list-separator-border{border-top-width:1px;border-top-style:solid}.quick-input-list .monaco-list-row[data-index="0"] .quick-input-list-entry.quick-input-list-separator-border{border-top-style:none}.quick-input-list .quick-input-list-label{overflow:hidden;display:flex;height:100%;flex:1}.quick-input-list .quick-input-list-checkbox{align-self:center;margin:0}.quick-input-list .quick-input-list-rows{overflow:hidden;text-overflow:ellipsis;display:flex;flex-direction:column;height:100%;flex:1;margin-left:5px}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows{margin-left:10px}.quick-input-widget .quick-input-list .quick-input-list-checkbox{display:none}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox{display:inline}.quick-input-list .quick-input-list-rows>.quick-input-list-row{display:flex;align-items:center}.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label,.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label .monaco-icon-label-container>.monaco-icon-name-container{flex:1}.quick-input-list .quick-input-list-rows>.quick-input-list-row .codicon[class*=codicon-]{vertical-align:text-bottom}.quick-input-list .quick-input-list-rows .monaco-highlighted-label span{opacity:1}.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding{margin-right:8px}.quick-input-list .quick-input-list-label-meta{opacity:.7;line-height:normal;text-overflow:ellipsis;overflow:hidden}.quick-input-list .monaco-highlighted-label .highlight{font-weight:700}.quick-input-list .quick-input-list-entry .quick-input-list-separator{margin-right:8px}.quick-input-list .quick-input-list-entry-action-bar{display:flex;flex:0;overflow:visible}.quick-input-list .quick-input-list-entry-action-bar .action-label{display:none}.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon{margin-right:4px;padding:0 2px 2px}.quick-input-list .quick-input-list-entry-action-bar{margin-top:1px;margin-right:4px}.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label,.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label{display:flex}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key,.quick-input-list .monaco-list-row.focused .quick-input-list-entry .quick-input-list-separator{color:inherit}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key{background:0 0}.monaco-editor .inputarea{min-width:0;min-height:0;margin:0;padding:0;position:absolute;outline:0!important;resize:none;border:none;overflow:hidden;color:transparent;background-color:transparent}.monaco-editor .inputarea.ime-input{z-index:10}.monaco-editor .margin-view-overlays .current-line,.monaco-editor .view-overlays .current-line{display:block;position:absolute;left:0;top:0;box-sizing:border-box}.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both{border-right:0}.monaco-editor .lines-content .cdr{position:absolute}.monaco-editor .glyph-margin{position:absolute;top:0}.monaco-editor .margin-view-overlays .cgmr{position:absolute;display:flex;align-items:center;justify-content:center}.monaco-editor .lines-content .core-guide{position:absolute;box-sizing:border-box}.monaco-editor .margin-view-overlays .line-numbers{font-variant-numeric:tabular-nums;position:absolute;text-align:right;display:inline-block;vertical-align:middle;box-sizing:border-box;cursor:default;height:100%}.monaco-editor .relative-current-line-number{text-align:left;display:inline-block;width:100%}.monaco-editor .margin-view-overlays .line-numbers.lh-odd{margin-top:1px}.mtkcontrol{color:#fff!important;background:#960000!important}.monaco-editor.no-user-select .lines-content,.monaco-editor.no-user-select .view-line,.monaco-editor.no-user-select .view-lines{user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-editor .view-lines{white-space:nowrap}.monaco-editor .view-line{position:absolute;width:100%}.monaco-editor .mtkz{display:inline-block}.monaco-editor .lines-decorations{position:absolute;top:0;background:#fff}.monaco-editor .margin-view-overlays .cldr{position:absolute;height:100%}.monaco-editor .margin-view-overlays .cmdr{position:absolute;left:0;width:100%;height:100%}.monaco-editor .minimap.slider-mouseover .minimap-slider{opacity:0;transition:opacity .1s linear}.monaco-editor .minimap.slider-mouseover .minimap-slider.active,.monaco-editor .minimap.slider-mouseover:hover .minimap-slider{opacity:1}.monaco-editor .minimap-shadow-hidden{position:absolute;width:0}.monaco-editor .minimap-shadow-visible{position:absolute;left:-6px;width:6px}.monaco-editor.no-minimap-shadow .minimap-shadow-visible{position:absolute;left:-1px;width:1px}.monaco-editor .overlayWidgets{position:absolute;top:0;left:0}.monaco-editor .view-ruler{position:absolute;top:0}.monaco-editor .scroll-decoration{position:absolute;top:0;left:0;height:6px}.monaco-editor .lines-content .cslr{position:absolute}.monaco-editor .top-left-radius{border-top-left-radius:3px}.monaco-editor .bottom-left-radius{border-bottom-left-radius:3px}.monaco-editor .top-right-radius{border-top-right-radius:3px}.monaco-editor .bottom-right-radius{border-bottom-right-radius:3px}.monaco-editor.hc-black .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-black .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-black .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-black .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor .cursors-layer{position:absolute;top:0}.monaco-editor .cursors-layer>.cursor{position:absolute;overflow:hidden}.monaco-editor .cursors-layer.cursor-smooth-caret-animation>.cursor{transition:all 80ms}.monaco-editor .cursors-layer.cursor-block-outline-style>.cursor{box-sizing:border-box;background:0 0!important;border-style:solid;border-width:1px}.monaco-editor .cursors-layer.cursor-underline-style>.cursor{border-bottom-width:2px;border-bottom-style:solid;background:0 0!important;box-sizing:border-box}.monaco-editor .cursors-layer.cursor-underline-thin-style>.cursor{border-bottom-width:1px;border-bottom-style:solid;background:0 0!important;box-sizing:border-box}@keyframes monaco-cursor-smooth{0%,20%{opacity:1}60%,to{opacity:0}}@keyframes monaco-cursor-phase{0%,20%{opacity:1}90%,to{opacity:0}}@keyframes monaco-cursor-expand{0%,20%{transform:scaleY(1)}80%,to{transform:scaleY(0)}}.cursor-smooth{animation:monaco-cursor-smooth .5s ease-in-out 0s 20 alternate}.cursor-phase{animation:monaco-cursor-phase .5s ease-in-out 0s 20 alternate}.cursor-expand>.cursor{animation:monaco-cursor-expand .5s ease-in-out 0s 20 alternate}.monaco-diff-editor .diffOverview{z-index:9}.monaco-diff-editor .diffOverview .diffViewport{z-index:10}.monaco-diff-editor.vs .diffOverview{background:rgba(0,0,0,.03)}.monaco-diff-editor.vs-dark .diffOverview{background:hsla(0,0%,100%,.01)}.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar{background:0 0}.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar{background:0 0}.monaco-scrollable-element.modified-in-monaco-diff-editor .slider{z-index:10}.modified-in-monaco-diff-editor .slider.active{background:hsla(0,0%,67.1%,.4)}.modified-in-monaco-diff-editor.hc-black .slider.active{background:0 0}.monaco-diff-editor .delete-sign,.monaco-diff-editor .insert-sign,.monaco-editor .delete-sign,.monaco-editor .insert-sign{font-size:11px!important;opacity:.7!important;display:flex!important;align-items:center}.monaco-diff-editor.hc-black .delete-sign,.monaco-diff-editor.hc-black .insert-sign,.monaco-editor.hc-black .delete-sign,.monaco-editor.hc-black .insert-sign{opacity:1}.monaco-editor .inline-added-margin-view-zone,.monaco-editor .inline-deleted-margin-view-zone{text-align:right}.monaco-editor .view-zones .view-lines .view-line span{display:inline-block}.monaco-editor .margin-view-zones .lightbulb-glyph:hover{cursor:pointer}.monaco-diff-editor .diff-review-line-number{text-align:right;display:inline-block}.monaco-diff-editor .diff-review{position:absolute;user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-diff-editor .diff-review-summary{padding-left:10px}.monaco-diff-editor .diff-review-shadow{position:absolute}.monaco-diff-editor .diff-review-row{white-space:pre}.monaco-diff-editor .diff-review-table{display:table;min-width:100%}.monaco-diff-editor .diff-review-row{display:table-row;width:100%}.monaco-diff-editor .diff-review-spacer{display:inline-block;width:10px;vertical-align:middle}.monaco-diff-editor .diff-review-spacer>.codicon{font-size:9px!important}.monaco-diff-editor .diff-review-actions{display:inline-block;position:absolute;right:10px;top:2px}.monaco-diff-editor .diff-review-actions .action-label{width:16px;height:16px;margin:2px 0}::-ms-clear{display:none}.monaco-editor .editor-widget input{color:inherit}.monaco-editor{position:relative;overflow:visible;-webkit-text-size-adjust:100%}.monaco-editor .overflow-guard{position:relative;overflow:hidden}.monaco-editor .view-overlays{position:absolute;top:0}.monaco-editor .selection-anchor{background-color:#007acc;width:2px!important}.monaco-editor .bracket-match{box-sizing:border-box}.monaco-editor .contentWidgets .codicon-light-bulb,.monaco-editor .contentWidgets .codicon-lightbulb-autofix{display:flex;align-items:center;justify-content:center}.monaco-editor .contentWidgets .codicon-light-bulb:hover,.monaco-editor .contentWidgets .codicon-lightbulb-autofix:hover{cursor:pointer}.monaco-editor .codelens-decoration{overflow:hidden;display:inline-block;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .codelens-decoration>a,.monaco-editor .codelens-decoration>span{user-select:none;-webkit-user-select:none;-ms-user-select:none;white-space:nowrap;vertical-align:sub}.monaco-editor .codelens-decoration>a{text-decoration:none}.monaco-editor .codelens-decoration>a:hover{cursor:pointer}.monaco-editor .codelens-decoration .codicon{vertical-align:middle;color:currentColor!important}.monaco-editor .codelens-decoration>a:hover .codicon:before{cursor:pointer}@keyframes fadein{0%{opacity:0;visibility:visible}to{opacity:1}}.monaco-editor .codelens-decoration.fadein{animation:fadein .1s linear}.colorpicker-widget{height:190px;user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-editor .colorpicker-hover:focus{outline:0}.colorpicker-header{display:flex;height:24px;position:relative;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-header .picked-color{width:216px;display:flex;align-items:center;justify-content:center;line-height:24px;cursor:pointer;color:#fff;flex:1}.colorpicker-header .picked-color .codicon{color:inherit;font-size:14px;position:absolute;left:8px}.colorpicker-header .picked-color.light{color:#000}.colorpicker-header .original-color{width:74px;z-index:inherit;cursor:pointer}.colorpicker-body{display:flex;padding:8px;position:relative}.colorpicker-body .saturation-wrap{overflow:hidden;height:150px;position:relative;min-width:220px;flex:1}.colorpicker-body .saturation-box{height:150px;position:absolute}.colorpicker-body .saturation-selection{width:9px;height:9px;margin:-5px 0 0 -5px;border:1px solid #fff;border-radius:100%;box-shadow:0 0 2px rgba(0,0,0,.8);position:absolute}.colorpicker-body .strip{width:25px;height:150px}.colorpicker-body .hue-strip{position:relative;margin-left:8px;cursor:grab;background:linear-gradient(180deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.colorpicker-body .opacity-strip{position:relative;margin-left:8px;cursor:grab;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-body .strip.grabbing{cursor:grabbing}.colorpicker-body .slider{position:absolute;top:0;left:-2px;width:calc(100% + 4px);height:4px;box-sizing:border-box;border:1px solid hsla(0,0%,100%,.71);box-shadow:0 0 1px rgba(0,0,0,.85)}.colorpicker-body .strip .overlay{height:150px;pointer-events:none}.monaco-editor.vs .dnd-target{border-right:2px dotted #000;color:#fff}.monaco-editor.vs-dark .dnd-target{border-right:2px dotted #aeafad;color:#51504f}.monaco-editor.hc-black .dnd-target{border-right:2px dotted #fff;color:#000}.monaco-editor.hc-black.mac.mouse-default .view-lines,.monaco-editor.mouse-default .view-lines,.monaco-editor.vs-dark.mac.mouse-default .view-lines{cursor:default}.monaco-editor.hc-black.mac.mouse-copy .view-lines,.monaco-editor.mouse-copy .view-lines,.monaco-editor.vs-dark.mac.mouse-copy .view-lines{cursor:copy}.monaco-editor .find-widget{position:absolute;z-index:35;height:33px;overflow:hidden;line-height:19px;transition:transform .2s linear;padding:0 4px;box-sizing:border-box;transform:translateY(calc(-100% - 10px))}.monaco-editor .find-widget textarea{margin:0}.monaco-editor .find-widget.hiddenEditor{display:none}.monaco-editor .find-widget.replaceToggled>.replace-part{display:flex}.monaco-editor .find-widget.visible{transform:translateY(0)}.monaco-editor .find-widget .monaco-inputbox.synthetic-focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-editor .find-widget .monaco-inputbox .input{background-color:transparent;min-height:0}.monaco-editor .find-widget .monaco-findInput .input{font-size:13px}.monaco-editor .find-widget>.find-part,.monaco-editor .find-widget>.replace-part{margin:4px 0 0 17px;font-size:12px;display:flex}.monaco-editor .find-widget>.find-part .monaco-inputbox,.monaco-editor .find-widget>.replace-part .monaco-inputbox{min-height:25px}.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-right:22px}.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.mirror,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-top:2px;padding-bottom:2px}.monaco-editor .find-widget>.find-part .find-actions,.monaco-editor .find-widget>.replace-part .replace-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget .monaco-findInput{vertical-align:middle;display:flex;flex:1}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element{width:100%}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical{opacity:0}.monaco-editor .find-widget .matchesCount{display:flex;flex:initial;margin:0 0 0 3px;padding:2px 0 0 2px;height:25px;vertical-align:middle;box-sizing:border-box;text-align:center;line-height:23px}.monaco-editor .find-widget .button{width:16px;height:16px;padding:3px;border-radius:5px;flex:initial;margin-left:3px;background-position:50%;background-repeat:no-repeat;cursor:pointer;display:flex;align-items:center;justify-content:center}.monaco-editor .find-widget .codicon-find-selection{width:22px;height:22px;padding:3px;border-radius:5px}.monaco-editor .find-widget .button.left{margin-left:0;margin-right:3px}.monaco-editor .find-widget .button.wide{width:auto;padding:1px 6px;top:-1px}.monaco-editor .find-widget .button.toggle{position:absolute;top:0;left:3px;width:18px;height:100%;border-radius:0;box-sizing:border-box}.monaco-editor .find-widget .button.toggle.disabled{display:none}.monaco-editor .find-widget .disabled{opacity:.3;cursor:default}.monaco-editor .find-widget>.replace-part{display:none}.monaco-editor .find-widget>.replace-part>.monaco-findInput{position:relative;display:flex;vertical-align:middle;flex:auto;flex-grow:0;flex-shrink:0}.monaco-editor .find-widget>.replace-part>.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.monaco-editor .find-widget.reduced-find-widget .matchesCount{display:none}.monaco-editor .find-widget.narrow-find-widget{max-width:257px!important}.monaco-editor .find-widget.collapsed-find-widget{max-width:170px!important}.monaco-editor .find-widget.collapsed-find-widget .button.next,.monaco-editor .find-widget.collapsed-find-widget .button.previous,.monaco-editor .find-widget.collapsed-find-widget .button.replace,.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,.monaco-editor .find-widget.collapsed-find-widget>.find-part .monaco-findInput .controls{display:none}.monaco-editor .findMatch{animation-duration:0;animation-name:inherit!important}.monaco-editor .find-widget .monaco-sash{left:0!important}.monaco-editor.hc-black .find-widget .button:before{position:relative;top:1px;left:2px}.monaco-editor .margin-view-overlays .codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-expanded{cursor:pointer;opacity:0;transition:opacity .5s;display:flex;align-items:center;justify-content:center;font-size:140%;margin-left:2px}.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons,.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,.monaco-editor .margin-view-overlays:hover .codicon{opacity:1}.monaco-editor .inline-folded:after{color:grey;margin:.1em .2em 0;content:"⋯";display:inline;line-height:1em;cursor:pointer}.monaco-editor .peekview-widget .head .peekview-title .severity-icon{display:inline-block;vertical-align:text-top;margin-right:4px}.monaco-editor .marker-widget{text-overflow:ellipsis;white-space:nowrap}.monaco-editor .marker-widget>.stale{opacity:.6;font-style:italic}.monaco-editor .marker-widget .title{display:inline-block;padding-right:5px}.monaco-editor .marker-widget .descriptioncontainer{position:absolute;white-space:pre;user-select:text;-webkit-user-select:text;-ms-user-select:text;padding:8px 12px 0 20px}.monaco-editor .marker-widget .descriptioncontainer .message{display:flex;flex-direction:column}.monaco-editor .marker-widget .descriptioncontainer .message .details{padding-left:6px}.monaco-editor .marker-widget .descriptioncontainer .message .source,.monaco-editor .marker-widget .descriptioncontainer .message span.code{opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link{opacity:.6;color:inherit}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before{content:"("}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after{content:")"}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under}.monaco-editor .marker-widget .descriptioncontainer .filename{cursor:pointer}.monaco-editor .goto-definition-link{text-decoration:underline;cursor:pointer}.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget{border-top-width:1px;border-bottom-width:1px}.monaco-editor .reference-zone-widget .inline{display:inline-block;vertical-align:top}.monaco-editor .reference-zone-widget .messages{height:100%;width:100%;text-align:center;padding:3em 0}.monaco-editor .reference-zone-widget .ref-tree{line-height:23px}.monaco-editor .reference-zone-widget .ref-tree .reference{text-overflow:ellipsis;overflow:hidden}.monaco-editor .reference-zone-widget .ref-tree .reference-file{display:inline-flex;width:100%;height:100%}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file{color:inherit!important}.monaco-editor .reference-zone-widget .ref-tree .reference-file .count{margin-right:12px;margin-left:auto}.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file{font-weight:700}.monaco-editor .suggest-preview-additional-widget{white-space:nowrap}.monaco-editor .suggest-preview-additional-widget .content-spacer{color:transparent;white-space:pre}.monaco-editor .suggest-preview-additional-widget .button{display:inline-block;cursor:pointer;text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-hidden{opacity:0;font-size:0}.monaco-editor .ghost-text-decoration,.monaco-editor .suggest-preview-text{font-style:italic}.monaco-editor .detected-link,.monaco-editor .detected-link-active{text-decoration:underline;text-underline-position:under}.monaco-editor .detected-link-active{cursor:pointer}.monaco-editor .monaco-editor-overlaymessage{padding-bottom:8px;z-index:10000}.monaco-editor .monaco-editor-overlaymessage.below{padding-bottom:0;padding-top:8px;z-index:10000}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.monaco-editor .monaco-editor-overlaymessage.fadeIn{animation:fadeIn .15s ease-out}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.monaco-editor .monaco-editor-overlaymessage.fadeOut{animation:fadeOut .1s ease-out}.monaco-editor .monaco-editor-overlaymessage .message{padding:1px 4px}.monaco-editor .monaco-editor-overlaymessage .anchor{width:0!important;height:0!important;z-index:1000;border:8px solid transparent;position:absolute}.monaco-editor .monaco-editor-overlaymessage.below .anchor.below,.monaco-editor .monaco-editor-overlaymessage:not(.below) .anchor.top{display:none}.monaco-editor .monaco-editor-overlaymessage.below .anchor.top{display:inherit;top:-8px}.monaco-editor .parameter-hints-widget{z-index:10;display:flex;flex-direction:column;line-height:1.5em}.monaco-editor .parameter-hints-widget>.phwrapper{max-width:440px;display:flex;flex-direction:row}.monaco-editor .parameter-hints-widget.multiple{min-height:3.3em;padding:0}.monaco-editor .parameter-hints-widget.visible{transition:left .05s ease-in-out}.monaco-editor .parameter-hints-widget p,.monaco-editor .parameter-hints-widget ul{margin:8px 0}.monaco-editor .parameter-hints-widget .body,.monaco-editor .parameter-hints-widget .monaco-scrollable-element{display:flex;flex:1;flex-direction:column;min-height:100%}.monaco-editor .parameter-hints-widget .signature{padding:4px 5px}.monaco-editor .parameter-hints-widget .docs{padding:0 10px 0 5px;white-space:pre-wrap}.monaco-editor .parameter-hints-widget .docs.empty{display:none}.monaco-editor .parameter-hints-widget .docs .markdown-docs{white-space:normal}.monaco-editor .parameter-hints-widget .docs .markdown-docs code{font-family:var(--monaco-monospace-font)}.monaco-editor .parameter-hints-widget .docs .code{white-space:pre-wrap}.monaco-editor .parameter-hints-widget .docs code{border-radius:3px;padding:0 .4em}.monaco-editor .parameter-hints-widget .controls{display:none;flex-direction:column;align-items:center;min-width:22px;justify-content:flex-end}.monaco-editor .parameter-hints-widget.multiple .controls{display:flex;padding:0 2px}.monaco-editor .parameter-hints-widget.multiple .button{width:16px;height:16px;background-repeat:no-repeat;cursor:pointer}.monaco-editor .parameter-hints-widget .button.previous{bottom:24px}.monaco-editor .parameter-hints-widget .overloads{text-align:center;height:12px;line-height:12px;opacity:.5;font-family:var(--monaco-monospace-font)}.monaco-editor .parameter-hints-widget .signature .parameter.active{font-weight:700}.monaco-editor .parameter-hints-widget .documentation-parameter>.parameter{font-weight:700;margin-right:.5em}.monaco-editor .peekview-widget .head{box-sizing:border-box;display:flex}.monaco-editor .peekview-widget .head .peekview-title{display:flex;align-items:center;font-size:13px;margin-left:20px;min-width:0}.monaco-editor .peekview-widget .head .peekview-title.clickable{cursor:pointer}.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty){font-size:.9em;margin-left:.5em}.monaco-editor .peekview-widget .head .peekview-title .dirname,.monaco-editor .peekview-widget .head .peekview-title .meta{white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .filename{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty):before{content:"-";padding:0 .3em}.monaco-editor .peekview-widget .head .peekview-actions{flex:1;text-align:right;padding-right:2px}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar{display:inline-block}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar,.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar>.actions-container{height:100%}.monaco-editor .peekview-widget>.body{border-top:1px solid;position:relative}.monaco-editor .peekview-widget .head .peekview-title .codicon{margin-right:4px}.monaco-editor .peekview-widget .monaco-list .monaco-list-row.focused .codicon{color:inherit!important}.monaco-editor .rename-box{z-index:100;color:inherit}.monaco-editor .rename-box.preview{padding:3px 3px 0}.monaco-editor .rename-box .rename-input{padding:3px;width:calc(100% - 6px)}.monaco-editor .rename-box .rename-label{display:none;opacity:.8}.monaco-editor .rename-box.preview .rename-label{display:inherit}.monaco-editor .snippet-placeholder{min-width:2px}.monaco-editor .finish-snippet-placeholder,.monaco-editor .snippet-placeholder{outline-style:solid;outline-width:1px}.monaco-editor .suggest-widget{width:430px;z-index:40;display:flex;flex-direction:column}.monaco-editor .suggest-widget.message{flex-direction:row;align-items:center}.monaco-editor .suggest-details,.monaco-editor .suggest-widget{flex:0 1 auto;width:100%;border-style:solid;border-width:1px}.monaco-editor.hc-black .suggest-details,.monaco-editor.hc-black .suggest-widget{border-width:2px}.monaco-editor .suggest-widget .suggest-status-bar{box-sizing:border-box;display:none;flex-flow:row nowrap;justify-content:space-between;width:100%;font-size:80%;padding:0 4px;border-top:1px solid transparent;overflow:hidden}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar{display:flex}.monaco-editor .suggest-widget .suggest-status-bar .left{padding-right:8px}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label{opacity:.5;color:inherit}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label{margin-right:0}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label:after{content:", ";margin-right:.3em}.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:100%}.monaco-editor .suggest-widget>.message{padding-left:22px}.monaco-editor .suggest-widget>.tree{height:100%;width:100%}.monaco-editor .suggest-widget .monaco-list{user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row{display:flex;-mox-box-sizing:border-box;box-sizing:border-box;padding-right:10px;background-repeat:no-repeat;background-position:2px 2px;white-space:nowrap;cursor:pointer;touch-action:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents{flex:1;height:100%;overflow:hidden;padding-left:2px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main{display:flex;overflow:hidden;text-overflow:ellipsis;white-space:pre;justify-content:space-between}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{display:flex}.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight{font-weight:700}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:before{color:inherit;opacity:1;font-size:14px;cursor:pointer}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close{position:absolute;top:6px;right:2px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close:hover,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:hover{opacity:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{opacity:.7}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.signature-label{overflow:hidden;text-overflow:ellipsis;opacity:.6}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.qualifier-label{margin-left:12px;opacity:.4;font-size:85%;line-height:normal;text-overflow:ellipsis;overflow:hidden;align-self:center}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{font-size:85%;margin-left:1.1em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label>.monaco-tokenized-source{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget:not(.shows-details) .monaco-list .monaco-list-row.focused>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:calc(100% - 26px)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left{flex-shrink:1;flex-grow:1;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.monaco-icon-label{flex-shrink:0}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.left>.monaco-icon-label{max-width:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.left>.monaco-icon-label{flex-shrink:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{overflow:hidden;flex-shrink:4;max-width:70%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:inline-block;position:absolute;right:10px;width:18px;height:18px;visibility:hidden}.monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none!important}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:inline-block}.monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:hover>.contents>.main>.right>.readMore{visibility:visible}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated{opacity:.66;text-decoration:unset}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated>.monaco-icon-label-container>.monaco-icon-name-container{text-decoration:line-through}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label:before{height:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon{display:block;height:16px;width:16px;margin-left:2px;background-repeat:no-repeat;background-size:80%;background-position:50%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon{display:flex;align-items:center;margin-right:4px}.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon,.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon:before{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan{margin:0 0 0 .3em;border:.1em solid #000;width:.7em;height:.7em;display:inline-block}.monaco-editor .suggest-details-container{z-index:41}.monaco-editor .suggest-details{display:flex;flex-direction:column;cursor:default}.monaco-editor .suggest-details.no-docs{display:none}.monaco-editor .suggest-details>.monaco-scrollable-element{flex:1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body{box-sizing:border-box;height:100%;width:100%}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type{flex:2;overflow:hidden;text-overflow:ellipsis;opacity:.7;white-space:pre;margin:0 24px 0 0;padding:4px 0 12px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type.auto-wrap{white-space:normal;word-break:break-all}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs{margin:0;padding:4px 5px;white-space:pre-wrap}.monaco-editor .suggest-details.no-type>.monaco-scrollable-element>.body>.docs{margin-right:24px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs{padding:0;white-space:normal;min-height:calc(1rem + 8px)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div,.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>span:not(:empty){padding:4px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:first-child{margin-top:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:last-child{margin-bottom:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .monaco-tokenized-source{white-space:pre}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs .code{white-space:pre-wrap;word-wrap:break-word}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .codicon{vertical-align:sub}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>p:empty{display:none}.monaco-editor .suggest-details code{border-radius:3px;padding:0 .4em}.monaco-editor .suggest-details ol,.monaco-editor .suggest-details ul{padding-left:20px}.monaco-editor .suggest-details p code{font-family:var(--monaco-monospace-font)}.monaco-editor .zone-widget{position:absolute;z-index:10}.monaco-editor .zone-widget .zone-widget-container{border-top-style:solid;border-bottom-style:solid;border-top-width:0;border-bottom-width:0;position:relative}.monaco-editor .accessibilityHelpWidget{padding:10px;vertical-align:middle;overflow:scroll}.monaco-editor .iPadShowKeyboard{width:58px;min-width:0;height:36px;min-height:0;margin:0;padding:0;position:absolute;resize:none;overflow:hidden;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00OC4wMzYgNC4wMUg0LjAwOFYzMi4wM2g0NC4wMjhWNC4wMXpNNC4wMDguMDA4QTQuMDAzIDQuMDAzIDAgMDAuMDA1IDQuMDFWMzIuMDNhNC4wMDMgNC4wMDMgMCAwMDQuMDAzIDQuMDAyaDQ0LjAyOGE0LjAwMyA0LjAwMyAwIDAwNC4wMDMtNC4wMDJWNC4wMUE0LjAwMyA0LjAwMyAwIDAwNDguMDM2LjAwOEg0LjAwOHpNOC4wMSA4LjAxM2g0LjAwM3Y0LjAwM0g4LjAxVjguMDEzem0xMi4wMDggMGgtNC4wMDJ2NC4wMDNoNC4wMDJWOC4wMTN6bTQuMDAzIDBoNC4wMDJ2NC4wMDNoLTQuMDAyVjguMDEzem0xMi4wMDggMGgtNC4wMDN2NC4wMDNoNC4wMDNWOC4wMTN6bTQuMDAyIDBoNC4wMDN2NC4wMDNINDAuMDNWOC4wMTN6bS0yNC4wMTUgOC4wMDVIOC4wMXY0LjAwM2g4LjAwNnYtNC4wMDN6bTQuMDAyIDBoNC4wMDN2NC4wMDNoLTQuMDAzdi00LjAwM3ptMTIuMDA4IDBoLTQuMDAzdjQuMDAzaDQuMDAzdi00LjAwM3ptMTIuMDA4IDB2NC4wMDNoLTguMDA1di00LjAwM2g4LjAwNXptLTMyLjAyMSA4LjAwNUg4LjAxdjQuMDAzaDQuMDAzdi00LjAwM3ptNC4wMDMgMGgyMC4wMTN2NC4wMDNIMTYuMDE2di00LjAwM3ptMjguMDE4IDBINDAuMDN2NC4wMDNoNC4wMDN2LTQuMDAzeiIgZmlsbD0iIzQyNDI0MiIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImNsaXAwIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDUzdjM2SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+) 50% no-repeat;border:4px solid #f6f6f6;border-radius:4px}.monaco-editor.vs-dark .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00OC4wMzYgNC4wMUg0LjAwOFYzMi4wM2g0NC4wMjhWNC4wMXpNNC4wMDguMDA4QTQuMDAzIDQuMDAzIDAgMDAuMDA1IDQuMDFWMzIuMDNhNC4wMDMgNC4wMDMgMCAwMDQuMDAzIDQuMDAyaDQ0LjAyOGE0LjAwMyA0LjAwMyAwIDAwNC4wMDMtNC4wMDJWNC4wMUE0LjAwMyA0LjAwMyAwIDAwNDguMDM2LjAwOEg0LjAwOHpNOC4wMSA4LjAxM2g0LjAwM3Y0LjAwM0g4LjAxVjguMDEzem0xMi4wMDggMGgtNC4wMDJ2NC4wMDNoNC4wMDJWOC4wMTN6bTQuMDAzIDBoNC4wMDJ2NC4wMDNoLTQuMDAyVjguMDEzem0xMi4wMDggMGgtNC4wMDN2NC4wMDNoNC4wMDNWOC4wMTN6bTQuMDAyIDBoNC4wMDN2NC4wMDNINDAuMDNWOC4wMTN6bS0yNC4wMTUgOC4wMDVIOC4wMXY0LjAwM2g4LjAwNnYtNC4wMDN6bTQuMDAyIDBoNC4wMDN2NC4wMDNoLTQuMDAzdi00LjAwM3ptMTIuMDA4IDBoLTQuMDAzdjQuMDAzaDQuMDAzdi00LjAwM3ptMTIuMDA4IDB2NC4wMDNoLTguMDA1di00LjAwM2g4LjAwNXptLTMyLjAyMSA4LjAwNUg4LjAxdjQuMDAzaDQuMDAzdi00LjAwM3ptNC4wMDMgMGgyMC4wMTN2NC4wMDNIMTYuMDE2di00LjAwM3ptMjguMDE4IDBINDAuMDN2NC4wMDNoNC4wMDN2LTQuMDAzeiIgZmlsbD0iI0M1QzVDNSIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImNsaXAwIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDUzdjM2SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+) 50% no-repeat;border:4px solid #252526}.monaco-editor .tokens-inspect-widget{z-index:50;user-select:text;-webkit-user-select:text;-ms-user-select:text;padding:10px}.tokens-inspect-separator{height:1px;border:0}.monaco-editor .tokens-inspect-widget .tm-token{font-family:var(--monaco-monospace-font)}.monaco-editor .tokens-inspect-widget .tm-token-length{font-weight:400;font-size:60%;float:right}.monaco-editor .tokens-inspect-widget .tm-metadata-table{width:100%}.monaco-editor .tokens-inspect-widget .tm-metadata-value{font-family:var(--monaco-monospace-font);text-align:right}.monaco-editor .tokens-inspect-widget .tm-token-type{font-family:var(--monaco-monospace-font)}.quick-input-widget{font-size:13px}.quick-input-widget .monaco-highlighted-label .highlight{color:#0066bf}.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight{color:#9dddff}.vs-dark .quick-input-widget .monaco-highlighted-label .highlight{color:#0097fb}.hc-black .quick-input-widget .monaco-highlighted-label .highlight{color:#f38518}.monaco-keybinding>.monaco-keybinding-key{background-color:hsla(0,0%,86.7%,.4);border:1px solid hsla(0,0%,80%,.4);border-bottom-color:hsla(0,0%,73.3%,.4);box-shadow:inset 0 -1px 0 hsla(0,0%,73.3%,.4);color:#555}.hc-black .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:1px solid #6fc3df;box-shadow:none;color:#fff}.vs-dark .monaco-keybinding>.monaco-keybinding-key{background-color:hsla(0,0%,50.2%,.17);border:1px solid rgba(51,51,51,.6);border-bottom-color:rgba(68,68,68,.6);box-shadow:inset 0 -1px 0 rgba(68,68,68,.6);color:#ccc}.monaco-editor{font-family:-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,system-ui,Ubuntu,Droid Sans,sans-serif;--monaco-monospace-font:"SF Mono",Monaco,Menlo,Consolas,"Ubuntu Mono","Liberation Mono","DejaVu Sans Mono","Courier New",monospace}.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-hover p{margin:0}.monaco-aria-container{position:absolute!important;top:0;height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%)}.monaco-editor.hc-black{-ms-high-contrast-adjust:none}@media screen and (-ms-high-contrast:active){.monaco-editor.vs .view-overlays .current-line,.monaco-editor.vs-dark .view-overlays .current-line{border-color:windowtext!important;border-left:0;border-right:0}.monaco-editor.vs .cursor,.monaco-editor.vs-dark .cursor{background-color:windowtext!important}.monaco-editor.vs .dnd-target,.monaco-editor.vs-dark .dnd-target{border-color:windowtext!important}.monaco-editor.vs .selected-text,.monaco-editor.vs-dark .selected-text{background-color:highlight!important}.monaco-editor.vs .view-line,.monaco-editor.vs-dark .view-line{-ms-high-contrast-adjust:none}.monaco-editor.vs .view-line span,.monaco-editor.vs-dark .view-line span{color:windowtext!important}.monaco-editor.vs .view-line span.inline-selected-text,.monaco-editor.vs-dark .view-line span.inline-selected-text{color:highlighttext!important}.monaco-editor.vs .view-overlays,.monaco-editor.vs-dark .view-overlays{-ms-high-contrast-adjust:none}.monaco-editor.vs .reference-decoration,.monaco-editor.vs .selectionHighlight,.monaco-editor.vs .wordHighlight,.monaco-editor.vs .wordHighlightStrong,.monaco-editor.vs-dark .reference-decoration,.monaco-editor.vs-dark .selectionHighlight,.monaco-editor.vs-dark .wordHighlight,.monaco-editor.vs-dark .wordHighlightStrong{border:2px dotted highlight!important;background:0 0!important;box-sizing:border-box}.monaco-editor.vs .rangeHighlight,.monaco-editor.vs-dark .rangeHighlight{background:0 0!important;border:1px dotted activeborder!important;box-sizing:border-box}.monaco-editor.vs .bracket-match,.monaco-editor.vs-dark .bracket-match{border-color:windowtext!important;background:0 0!important}.monaco-editor.vs .currentFindMatch,.monaco-editor.vs .findMatch,.monaco-editor.vs-dark .currentFindMatch,.monaco-editor.vs-dark .findMatch{border:2px dotted activeborder!important;background:0 0!important;box-sizing:border-box}.monaco-editor.vs .find-widget,.monaco-editor.vs-dark .find-widget{border:1px solid windowtext}.monaco-editor.vs .monaco-list .monaco-list-row,.monaco-editor.vs-dark .monaco-list .monaco-list-row{-ms-high-contrast-adjust:none;color:windowtext!important}.monaco-editor.vs .monaco-list .monaco-list-row.focused,.monaco-editor.vs-dark .monaco-list .monaco-list-row.focused{color:highlighttext!important;background-color:highlight!important}.monaco-editor.vs .monaco-list .monaco-list-row:hover,.monaco-editor.vs-dark .monaco-list .monaco-list-row:hover{background:0 0!important;border:1px solid highlight;box-sizing:border-box}.monaco-editor.vs .monaco-scrollable-element>.scrollbar,.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar{-ms-high-contrast-adjust:none;background:background!important;border:1px solid windowtext;box-sizing:border-box}.monaco-editor.vs .monaco-scrollable-element>.scrollbar>.slider,.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar>.slider{background:windowtext!important}.monaco-editor.vs .monaco-scrollable-element>.scrollbar>.slider.active,.monaco-editor.vs .monaco-scrollable-element>.scrollbar>.slider:hover,.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar>.slider.active,.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar>.slider:hover{background:highlight!important}.monaco-editor.vs .decorationsOverviewRuler,.monaco-editor.vs-dark .decorationsOverviewRuler{opacity:0}.monaco-editor.vs .minimap,.monaco-editor.vs-dark .minimap{display:none}.monaco-editor.vs .squiggly-d-error,.monaco-editor.vs-dark .squiggly-d-error{background:0 0!important;border-bottom:4px double #e47777}.monaco-editor.vs .squiggly-b-info,.monaco-editor.vs .squiggly-c-warning,.monaco-editor.vs-dark .squiggly-b-info,.monaco-editor.vs-dark .squiggly-c-warning{border-bottom:4px double #71b771}.monaco-editor.vs .squiggly-a-hint,.monaco-editor.vs-dark .squiggly-a-hint{border-bottom:4px double #6c6c6c}.monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label{-ms-high-contrast-adjust:none;color:highlighttext!important;background-color:highlight!important}.monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label,.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label{-ms-high-contrast-adjust:none;background:0 0!important;border:1px solid highlight;box-sizing:border-box}.monaco-diff-editor.vs .diffOverviewRuler,.monaco-diff-editor.vs-dark .diffOverviewRuler{display:none}.monaco-editor.vs .line-delete,.monaco-editor.vs .line-insert,.monaco-editor.vs-dark .line-delete,.monaco-editor.vs-dark .line-insert{background:0 0!important;border:1px solid highlight!important;box-sizing:border-box}.monaco-editor.vs .char-delete,.monaco-editor.vs .char-insert,.monaco-editor.vs-dark .char-delete,.monaco-editor.vs-dark .char-insert{background:0 0!important}}.monaco-action-bar .action-item.menu-entry .action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-action-bar .action-item.menu-entry .action-label{background-image:var(--menu-entry-icon-light)}.hc-black .monaco-action-bar .action-item.menu-entry .action-label,.vs-dark .monaco-action-bar .action-item.menu-entry .action-label{background-image:var(--menu-entry-icon-dark)}.monaco-dropdown-with-default{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-default>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label{background-image:var(--menu-entry-icon-light)}.hc-black .monaco-dropdown-with-default>.action-container.menu-entry>.action-label,.vs-dark .monaco-dropdown-with-default>.action-container.menu-entry>.action-label{background-image:var(--menu-entry-icon-dark)}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:50%;background-repeat:no-repeat}.context-view .monaco-menu{min-width:130px}
\ No newline at end of file
diff --git a/web-v2-res/static/css/layui.css b/web-v2-res/static/css/layui.css
new file mode 100644
index 0000000..c784a25
--- /dev/null
+++ b/web-v2-res/static/css/layui.css
@@ -0,0 +1 @@
+.layui-inline,img{display:inline-block;vertical-align:middle}h1,h2,h3,h4,h5,h6{font-weight:400}a,body{color:#333}.layui-edge,.layui-header,.layui-inline,.layui-main{position:relative}.layui-edge,hr{height:0;overflow:hidden}.layui-layout-body,.layui-side,.layui-side-scroll{overflow-x:hidden}.layui-edge,.layui-elip,hr{overflow:hidden}.layui-btn,.layui-edge,.layui-inline,img{vertical-align:middle}.layui-btn,.layui-disabled,.layui-icon,.layui-unselect{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}blockquote,body,button,dd,div,dl,dt,form,h1,h2,h3,h4,h5,h6,input,li,ol,p,pre,td,textarea,th,ul{margin:0;padding:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}a:active,a:hover{outline:0}img{border:none}li{list-style:none}table{border-collapse:collapse;border-spacing:0}h4,h5,h6{font-size:100%}button,input,optgroup,option,select,textarea{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;outline:0}pre{white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word}body{line-height:1.6;color:rgba(0,0,0,.85);font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif}hr{line-height:0;margin:10px 0;padding:0;border:none!important;border-bottom:1px solid #eee!important;clear:both;background:0 0}a{text-decoration:none}a:hover{color:#777}a cite{font-style:normal;*cursor:pointer}.layui-border-box,.layui-border-box *{box-sizing:border-box}.layui-box,.layui-box *{box-sizing:content-box}.layui-clear{clear:both;*zoom:1}.layui-clear:after{content:'\20';clear:both;*zoom:1;display:block;height:0}.layui-inline{*display:inline;*zoom:1}.layui-btn,.layui-btn-group,.layui-edge{display:inline-block}.layui-edge{width:0;border-width:6px;border-style:dashed;border-color:transparent}.layui-edge-top{top:-4px;border-bottom-color:#999;border-bottom-style:solid}.layui-edge-right{border-left-color:#999;border-left-style:solid}.layui-edge-bottom{top:2px;border-top-color:#999;border-top-style:solid}.layui-edge-left{border-right-color:#999;border-right-style:solid}.layui-elip{text-overflow:ellipsis;white-space:nowrap}.layui-disabled,.layui-disabled:hover{color:#d2d2d2!important;cursor:not-allowed!important}.layui-circle{border-radius:100%}.layui-show{display:block!important}.layui-hide{display:none!important}.layui-show-v{visibility:visible!important}.layui-hide-v{visibility:hidden!important}@font-face{font-family:layui-icon;src:url(../font/iconfont.eot?v=256);src:url(../font/iconfont.eot?v=256#iefix) format('embedded-opentype'),url(../font/iconfont.woff2?v=256) format('woff2'),url(../font/iconfont.woff?v=256) format('woff'),url(../font/iconfont.ttf?v=256) format('truetype'),url(../font/iconfont.svg?v=256#layui-icon) format('svg')}.layui-icon{font-family:layui-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.layui-icon-reply-fill:before{content:"\e611"}.layui-icon-set-fill:before{content:"\e614"}.layui-icon-menu-fill:before{content:"\e60f"}.layui-icon-search:before{content:"\e615"}.layui-icon-share:before{content:"\e641"}.layui-icon-set-sm:before{content:"\e620"}.layui-icon-engine:before{content:"\e628"}.layui-icon-close:before{content:"\1006"}.layui-icon-close-fill:before{content:"\1007"}.layui-icon-chart-screen:before{content:"\e629"}.layui-icon-star:before{content:"\e600"}.layui-icon-circle-dot:before{content:"\e617"}.layui-icon-chat:before{content:"\e606"}.layui-icon-release:before{content:"\e609"}.layui-icon-list:before{content:"\e60a"}.layui-icon-chart:before{content:"\e62c"}.layui-icon-ok-circle:before{content:"\1005"}.layui-icon-layim-theme:before{content:"\e61b"}.layui-icon-table:before{content:"\e62d"}.layui-icon-right:before{content:"\e602"}.layui-icon-left:before{content:"\e603"}.layui-icon-cart-simple:before{content:"\e698"}.layui-icon-face-cry:before{content:"\e69c"}.layui-icon-face-smile:before{content:"\e6af"}.layui-icon-survey:before{content:"\e6b2"}.layui-icon-tree:before{content:"\e62e"}.layui-icon-ie:before{content:"\e7bb"}.layui-icon-upload-circle:before{content:"\e62f"}.layui-icon-add-circle:before{content:"\e61f"}.layui-icon-download-circle:before{content:"\e601"}.layui-icon-templeate-1:before{content:"\e630"}.layui-icon-util:before{content:"\e631"}.layui-icon-face-surprised:before{content:"\e664"}.layui-icon-edit:before{content:"\e642"}.layui-icon-speaker:before{content:"\e645"}.layui-icon-down:before{content:"\e61a"}.layui-icon-file:before{content:"\e621"}.layui-icon-layouts:before{content:"\e632"}.layui-icon-rate-half:before{content:"\e6c9"}.layui-icon-add-circle-fine:before{content:"\e608"}.layui-icon-prev-circle:before{content:"\e633"}.layui-icon-read:before{content:"\e705"}.layui-icon-404:before{content:"\e61c"}.layui-icon-carousel:before{content:"\e634"}.layui-icon-help:before{content:"\e607"}.layui-icon-code-circle:before{content:"\e635"}.layui-icon-windows:before{content:"\e67f"}.layui-icon-water:before{content:"\e636"}.layui-icon-username:before{content:"\e66f"}.layui-icon-find-fill:before{content:"\e670"}.layui-icon-about:before{content:"\e60b"}.layui-icon-location:before{content:"\e715"}.layui-icon-up:before{content:"\e619"}.layui-icon-pause:before{content:"\e651"}.layui-icon-date:before{content:"\e637"}.layui-icon-layim-uploadfile:before{content:"\e61d"}.layui-icon-delete:before{content:"\e640"}.layui-icon-play:before{content:"\e652"}.layui-icon-top:before{content:"\e604"}.layui-icon-firefox:before{content:"\e686"}.layui-icon-friends:before{content:"\e612"}.layui-icon-refresh-3:before{content:"\e9aa"}.layui-icon-ok:before{content:"\e605"}.layui-icon-layer:before{content:"\e638"}.layui-icon-face-smile-fine:before{content:"\e60c"}.layui-icon-dollar:before{content:"\e659"}.layui-icon-group:before{content:"\e613"}.layui-icon-layim-download:before{content:"\e61e"}.layui-icon-picture-fine:before{content:"\e60d"}.layui-icon-link:before{content:"\e64c"}.layui-icon-diamond:before{content:"\e735"}.layui-icon-log:before{content:"\e60e"}.layui-icon-key:before{content:"\e683"}.layui-icon-rate-solid:before{content:"\e67a"}.layui-icon-fonts-del:before{content:"\e64f"}.layui-icon-unlink:before{content:"\e64d"}.layui-icon-fonts-clear:before{content:"\e639"}.layui-icon-triangle-r:before{content:"\e623"}.layui-icon-circle:before{content:"\e63f"}.layui-icon-radio:before{content:"\e643"}.layui-icon-align-center:before{content:"\e647"}.layui-icon-align-right:before{content:"\e648"}.layui-icon-align-left:before{content:"\e649"}.layui-icon-loading-1:before{content:"\e63e"}.layui-icon-return:before{content:"\e65c"}.layui-icon-fonts-strong:before{content:"\e62b"}.layui-icon-upload:before{content:"\e67c"}.layui-icon-dialogue:before{content:"\e63a"}.layui-icon-video:before{content:"\e6ed"}.layui-icon-headset:before{content:"\e6fc"}.layui-icon-cellphone-fine:before{content:"\e63b"}.layui-icon-add-1:before{content:"\e654"}.layui-icon-face-smile-b:before{content:"\e650"}.layui-icon-fonts-html:before{content:"\e64b"}.layui-icon-screen-full:before{content:"\e622"}.layui-icon-form:before{content:"\e63c"}.layui-icon-cart:before{content:"\e657"}.layui-icon-camera-fill:before{content:"\e65d"}.layui-icon-tabs:before{content:"\e62a"}.layui-icon-heart-fill:before{content:"\e68f"}.layui-icon-fonts-code:before{content:"\e64e"}.layui-icon-ios:before{content:"\e680"}.layui-icon-at:before{content:"\e687"}.layui-icon-fire:before{content:"\e756"}.layui-icon-set:before{content:"\e716"}.layui-icon-fonts-u:before{content:"\e646"}.layui-icon-triangle-d:before{content:"\e625"}.layui-icon-tips:before{content:"\e702"}.layui-icon-picture:before{content:"\e64a"}.layui-icon-more-vertical:before{content:"\e671"}.layui-icon-bluetooth:before{content:"\e689"}.layui-icon-flag:before{content:"\e66c"}.layui-icon-loading:before{content:"\e63d"}.layui-icon-fonts-i:before{content:"\e644"}.layui-icon-refresh-1:before{content:"\e666"}.layui-icon-rmb:before{content:"\e65e"}.layui-icon-addition:before{content:"\e624"}.layui-icon-home:before{content:"\e68e"}.layui-icon-time:before{content:"\e68d"}.layui-icon-user:before{content:"\e770"}.layui-icon-notice:before{content:"\e667"}.layui-icon-chrome:before{content:"\e68a"}.layui-icon-edge:before{content:"\e68b"}.layui-icon-login-weibo:before{content:"\e675"}.layui-icon-voice:before{content:"\e688"}.layui-icon-upload-drag:before{content:"\e681"}.layui-icon-login-qq:before{content:"\e676"}.layui-icon-snowflake:before{content:"\e6b1"}.layui-icon-heart:before{content:"\e68c"}.layui-icon-logout:before{content:"\e682"}.layui-icon-file-b:before{content:"\e655"}.layui-icon-template:before{content:"\e663"}.layui-icon-transfer:before{content:"\e691"}.layui-icon-auz:before{content:"\e672"}.layui-icon-console:before{content:"\e665"}.layui-icon-app:before{content:"\e653"}.layui-icon-prev:before{content:"\e65a"}.layui-icon-website:before{content:"\e7ae"}.layui-icon-next:before{content:"\e65b"}.layui-icon-component:before{content:"\e857"}.layui-icon-android:before{content:"\e684"}.layui-icon-more:before{content:"\e65f"}.layui-icon-login-wechat:before{content:"\e677"}.layui-icon-shrink-right:before{content:"\e668"}.layui-icon-spread-left:before{content:"\e66b"}.layui-icon-camera:before{content:"\e660"}.layui-icon-note:before{content:"\e66e"}.layui-icon-refresh:before{content:"\e669"}.layui-icon-female:before{content:"\e661"}.layui-icon-male:before{content:"\e662"}.layui-icon-screen-restore:before{content:"\e758"}.layui-icon-password:before{content:"\e673"}.layui-icon-senior:before{content:"\e674"}.layui-icon-theme:before{content:"\e66a"}.layui-icon-tread:before{content:"\e6c5"}.layui-icon-praise:before{content:"\e6c6"}.layui-icon-star-fill:before{content:"\e658"}.layui-icon-rate:before{content:"\e67b"}.layui-icon-template-1:before{content:"\e656"}.layui-icon-vercode:before{content:"\e679"}.layui-icon-service:before{content:"\e626"}.layui-icon-cellphone:before{content:"\e678"}.layui-icon-print:before{content:"\e66d"}.layui-icon-cols:before{content:"\e610"}.layui-icon-wifi:before{content:"\e7e0"}.layui-icon-export:before{content:"\e67d"}.layui-icon-rss:before{content:"\e808"}.layui-icon-slider:before{content:"\e714"}.layui-icon-email:before{content:"\e618"}.layui-icon-subtraction:before{content:"\e67e"}.layui-icon-mike:before{content:"\e6dc"}.layui-icon-light:before{content:"\e748"}.layui-icon-gift:before{content:"\e627"}.layui-icon-mute:before{content:"\e685"}.layui-icon-reduce-circle:before{content:"\e616"}.layui-icon-music:before{content:"\e690"}.layui-main{width:1140px;margin:0 auto}.layui-header{z-index:1000;height:60px}.layui-header a:hover{transition:all .5s;-webkit-transition:all .5s}.layui-side{position:fixed;left:0;top:0;bottom:0;z-index:999;width:200px}.layui-side-scroll{position:relative;width:220px;height:100%}.layui-body{position:relative;left:200px;right:0;top:0;bottom:0;z-index:900;width:auto;box-sizing:border-box}.layui-layout-admin .layui-header{position:fixed;top:0;left:0;right:0;background-color:#23262E}.layui-layout-admin .layui-side{top:60px;width:200px;overflow-x:hidden}.layui-layout-admin .layui-body{position:absolute;top:60px;padding-bottom:44px}.layui-layout-admin .layui-main{width:auto;margin:0 15px}.layui-layout-admin .layui-footer{position:fixed;left:200px;right:0;bottom:0;z-index:990;height:44px;line-height:44px;padding:0 15px;box-shadow:-1px 0 4px rgb(0 0 0 / 12%);background-color:#FAFAFA}.layui-layout-admin .layui-logo{position:absolute;left:0;top:0;width:200px;height:100%;line-height:60px;text-align:center;color:#009688;font-size:16px;box-shadow:0 1px 2px 0 rgb(0 0 0 / 15%)}.layui-layout-admin .layui-header .layui-nav{background:0 0}.layui-layout-left{position:absolute!important;left:200px;top:0}.layui-layout-right{position:absolute!important;right:0;top:0}.layui-container{position:relative;margin:0 auto;padding:0 15px;box-sizing:border-box}.layui-fluid{position:relative;margin:0 auto;padding:0 15px}.layui-row:after,.layui-row:before{content:"";display:block;clear:both}.layui-col-lg1,.layui-col-lg10,.layui-col-lg11,.layui-col-lg12,.layui-col-lg2,.layui-col-lg3,.layui-col-lg4,.layui-col-lg5,.layui-col-lg6,.layui-col-lg7,.layui-col-lg8,.layui-col-lg9,.layui-col-md1,.layui-col-md10,.layui-col-md11,.layui-col-md12,.layui-col-md2,.layui-col-md3,.layui-col-md4,.layui-col-md5,.layui-col-md6,.layui-col-md7,.layui-col-md8,.layui-col-md9,.layui-col-sm1,.layui-col-sm10,.layui-col-sm11,.layui-col-sm12,.layui-col-sm2,.layui-col-sm3,.layui-col-sm4,.layui-col-sm5,.layui-col-sm6,.layui-col-sm7,.layui-col-sm8,.layui-col-sm9,.layui-col-xs1,.layui-col-xs10,.layui-col-xs11,.layui-col-xs12,.layui-col-xs2,.layui-col-xs3,.layui-col-xs4,.layui-col-xs5,.layui-col-xs6,.layui-col-xs7,.layui-col-xs8,.layui-col-xs9{position:relative;display:block;box-sizing:border-box}.layui-col-xs1,.layui-col-xs10,.layui-col-xs11,.layui-col-xs12,.layui-col-xs2,.layui-col-xs3,.layui-col-xs4,.layui-col-xs5,.layui-col-xs6,.layui-col-xs7,.layui-col-xs8,.layui-col-xs9{float:left}.layui-col-xs1{width:8.33333333%}.layui-col-xs2{width:16.66666667%}.layui-col-xs3{width:25%}.layui-col-xs4{width:33.33333333%}.layui-col-xs5{width:41.66666667%}.layui-col-xs6{width:50%}.layui-col-xs7{width:58.33333333%}.layui-col-xs8{width:66.66666667%}.layui-col-xs9{width:75%}.layui-col-xs10{width:83.33333333%}.layui-col-xs11{width:91.66666667%}.layui-col-xs12{width:100%}.layui-col-xs-offset1{margin-left:8.33333333%}.layui-col-xs-offset2{margin-left:16.66666667%}.layui-col-xs-offset3{margin-left:25%}.layui-col-xs-offset4{margin-left:33.33333333%}.layui-col-xs-offset5{margin-left:41.66666667%}.layui-col-xs-offset6{margin-left:50%}.layui-col-xs-offset7{margin-left:58.33333333%}.layui-col-xs-offset8{margin-left:66.66666667%}.layui-col-xs-offset9{margin-left:75%}.layui-col-xs-offset10{margin-left:83.33333333%}.layui-col-xs-offset11{margin-left:91.66666667%}.layui-col-xs-offset12{margin-left:100%}@media screen and (max-width:768px){.layui-hide-xs{display:none!important}.layui-show-xs-block{display:block!important}.layui-show-xs-inline{display:inline!important}.layui-show-xs-inline-block{display:inline-block!important}}@media screen and (min-width:768px){.layui-container{width:750px}.layui-hide-sm{display:none!important}.layui-show-sm-block{display:block!important}.layui-show-sm-inline{display:inline!important}.layui-show-sm-inline-block{display:inline-block!important}.layui-col-sm1,.layui-col-sm10,.layui-col-sm11,.layui-col-sm12,.layui-col-sm2,.layui-col-sm3,.layui-col-sm4,.layui-col-sm5,.layui-col-sm6,.layui-col-sm7,.layui-col-sm8,.layui-col-sm9{float:left}.layui-col-sm1{width:8.33333333%}.layui-col-sm2{width:16.66666667%}.layui-col-sm3{width:25%}.layui-col-sm4{width:33.33333333%}.layui-col-sm5{width:41.66666667%}.layui-col-sm6{width:50%}.layui-col-sm7{width:58.33333333%}.layui-col-sm8{width:66.66666667%}.layui-col-sm9{width:75%}.layui-col-sm10{width:83.33333333%}.layui-col-sm11{width:91.66666667%}.layui-col-sm12{width:100%}.layui-col-sm-offset1{margin-left:8.33333333%}.layui-col-sm-offset2{margin-left:16.66666667%}.layui-col-sm-offset3{margin-left:25%}.layui-col-sm-offset4{margin-left:33.33333333%}.layui-col-sm-offset5{margin-left:41.66666667%}.layui-col-sm-offset6{margin-left:50%}.layui-col-sm-offset7{margin-left:58.33333333%}.layui-col-sm-offset8{margin-left:66.66666667%}.layui-col-sm-offset9{margin-left:75%}.layui-col-sm-offset10{margin-left:83.33333333%}.layui-col-sm-offset11{margin-left:91.66666667%}.layui-col-sm-offset12{margin-left:100%}}@media screen and (min-width:992px){.layui-container{width:970px}.layui-hide-md{display:none!important}.layui-show-md-block{display:block!important}.layui-show-md-inline{display:inline!important}.layui-show-md-inline-block{display:inline-block!important}.layui-col-md1,.layui-col-md10,.layui-col-md11,.layui-col-md12,.layui-col-md2,.layui-col-md3,.layui-col-md4,.layui-col-md5,.layui-col-md6,.layui-col-md7,.layui-col-md8,.layui-col-md9{float:left}.layui-col-md1{width:8.33333333%}.layui-col-md2{width:16.66666667%}.layui-col-md3{width:25%}.layui-col-md4{width:33.33333333%}.layui-col-md5{width:41.66666667%}.layui-col-md6{width:50%}.layui-col-md7{width:58.33333333%}.layui-col-md8{width:66.66666667%}.layui-col-md9{width:75%}.layui-col-md10{width:83.33333333%}.layui-col-md11{width:91.66666667%}.layui-col-md12{width:100%}.layui-col-md-offset1{margin-left:8.33333333%}.layui-col-md-offset2{margin-left:16.66666667%}.layui-col-md-offset3{margin-left:25%}.layui-col-md-offset4{margin-left:33.33333333%}.layui-col-md-offset5{margin-left:41.66666667%}.layui-col-md-offset6{margin-left:50%}.layui-col-md-offset7{margin-left:58.33333333%}.layui-col-md-offset8{margin-left:66.66666667%}.layui-col-md-offset9{margin-left:75%}.layui-col-md-offset10{margin-left:83.33333333%}.layui-col-md-offset11{margin-left:91.66666667%}.layui-col-md-offset12{margin-left:100%}}@media screen and (min-width:1200px){.layui-container{width:1170px}.layui-hide-lg{display:none!important}.layui-show-lg-block{display:block!important}.layui-show-lg-inline{display:inline!important}.layui-show-lg-inline-block{display:inline-block!important}.layui-col-lg1,.layui-col-lg10,.layui-col-lg11,.layui-col-lg12,.layui-col-lg2,.layui-col-lg3,.layui-col-lg4,.layui-col-lg5,.layui-col-lg6,.layui-col-lg7,.layui-col-lg8,.layui-col-lg9{float:left}.layui-col-lg1{width:8.33333333%}.layui-col-lg2{width:16.66666667%}.layui-col-lg3{width:25%}.layui-col-lg4{width:33.33333333%}.layui-col-lg5{width:41.66666667%}.layui-col-lg6{width:50%}.layui-col-lg7{width:58.33333333%}.layui-col-lg8{width:66.66666667%}.layui-col-lg9{width:75%}.layui-col-lg10{width:83.33333333%}.layui-col-lg11{width:91.66666667%}.layui-col-lg12{width:100%}.layui-col-lg-offset1{margin-left:8.33333333%}.layui-col-lg-offset2{margin-left:16.66666667%}.layui-col-lg-offset3{margin-left:25%}.layui-col-lg-offset4{margin-left:33.33333333%}.layui-col-lg-offset5{margin-left:41.66666667%}.layui-col-lg-offset6{margin-left:50%}.layui-col-lg-offset7{margin-left:58.33333333%}.layui-col-lg-offset8{margin-left:66.66666667%}.layui-col-lg-offset9{margin-left:75%}.layui-col-lg-offset10{margin-left:83.33333333%}.layui-col-lg-offset11{margin-left:91.66666667%}.layui-col-lg-offset12{margin-left:100%}}.layui-col-space1{margin:-.5px}.layui-col-space1>*{padding:.5px}.layui-col-space2{margin:-1px}.layui-col-space2>*{padding:1px}.layui-col-space4{margin:-2px}.layui-col-space4>*{padding:2px}.layui-col-space5{margin:-2.5px}.layui-col-space5>*{padding:2.5px}.layui-col-space6{margin:-3px}.layui-col-space6>*{padding:3px}.layui-col-space8{margin:-4px}.layui-col-space8>*{padding:4px}.layui-col-space10{margin:-5px}.layui-col-space10>*{padding:5px}.layui-col-space12{margin:-6px}.layui-col-space12>*{padding:6px}.layui-col-space14{margin:-7px}.layui-col-space14>*{padding:7px}.layui-col-space15{margin:-7.5px}.layui-col-space15>*{padding:7.5px}.layui-col-space16{margin:-8px}.layui-col-space16>*{padding:8px}.layui-col-space18{margin:-9px}.layui-col-space18>*{padding:9px}.layui-col-space20{margin:-10px}.layui-col-space20>*{padding:10px}.layui-col-space22{margin:-11px}.layui-col-space22>*{padding:11px}.layui-col-space24{margin:-12px}.layui-col-space24>*{padding:12px}.layui-col-space25{margin:-12.5px}.layui-col-space25>*{padding:12.5px}.layui-col-space26{margin:-13px}.layui-col-space26>*{padding:13px}.layui-col-space28{margin:-14px}.layui-col-space28>*{padding:14px}.layui-col-space30{margin:-15px}.layui-col-space30>*{padding:15px}.layui-btn,.layui-input,.layui-select,.layui-textarea,.layui-upload-button{outline:0;-webkit-appearance:none;transition:all .3s;-webkit-transition:all .3s;box-sizing:border-box}.layui-elem-quote{margin-bottom:10px;padding:15px;line-height:1.6;border-left:5px solid #5FB878;border-radius:0 2px 2px 0;background-color:#FAFAFA}.layui-quote-nm{border-style:solid;border-width:1px 1px 1px 5px;background:0 0}.layui-elem-field{margin-bottom:10px;padding:0;border-width:1px;border-style:solid}.layui-elem-field legend{margin-left:20px;padding:0 10px;font-size:20px;font-weight:300}.layui-field-title{margin:10px 0 20px;border-width:1px 0 0}.layui-field-box{padding:15px}.layui-field-title .layui-field-box{padding:10px 0}.layui-progress{position:relative;height:6px;border-radius:20px;background-color:#eee}.layui-progress-bar{position:absolute;left:0;top:0;width:0;max-width:100%;height:6px;border-radius:20px;text-align:right;background-color:#5FB878;transition:all .3s;-webkit-transition:all .3s}.layui-progress-big,.layui-progress-big .layui-progress-bar{height:18px;line-height:18px}.layui-progress-text{position:relative;top:-20px;line-height:18px;font-size:12px;color:#666}.layui-progress-big .layui-progress-text{position:static;padding:0 10px;color:#fff}.layui-collapse{border-width:1px;border-style:solid;border-radius:2px}.layui-colla-content,.layui-colla-item{border-top-width:1px;border-top-style:solid}.layui-colla-item:first-child{border-top:none}.layui-colla-title{position:relative;height:42px;line-height:42px;padding:0 15px 0 35px;color:#333;background-color:#FAFAFA;cursor:pointer;font-size:14px;overflow:hidden}.layui-colla-content{display:none;padding:10px 15px;line-height:1.6;color:#666}.layui-colla-icon{position:absolute;left:15px;top:0;font-size:14px}.layui-card-body,.layui-card-header,.layui-form-label,.layui-form-mid,.layui-form-select,.layui-input-block,.layui-input-inline,.layui-panel,.layui-textarea{position:relative}.layui-card{margin-bottom:15px;border-radius:2px;background-color:#fff;box-shadow:0 1px 2px 0 rgba(0,0,0,.05)}.layui-form-select dl,.layui-panel{box-shadow:1px 1px 4px rgb(0 0 0 / 8%)}.layui-card:last-child{margin-bottom:0}.layui-card-header{height:42px;line-height:42px;padding:0 15px;border-bottom:1px solid #f6f6f6;color:#333;border-radius:2px 2px 0 0;font-size:14px}.layui-card-body{padding:10px 15px;line-height:24px}.layui-card-body[pad15]{padding:15px}.layui-card-body[pad20]{padding:20px}.layui-card-body .layui-table{margin:5px 0}.layui-card .layui-tab{margin:0}.layui-panel{border-width:1px;border-style:solid;border-radius:2px;background-color:#fff;color:#666}.layui-bg-black,.layui-bg-blue,.layui-bg-cyan,.layui-bg-green,.layui-bg-orange,.layui-bg-red{color:#fff!important}.layui-panel-window{position:relative;padding:15px;border-radius:0;border-top:5px solid #eee;background-color:#fff}.layui-border,.layui-border-black,.layui-border-blue,.layui-border-cyan,.layui-border-green,.layui-border-orange,.layui-border-red{border-width:1px;border-style:solid}.layui-auxiliar-moving{position:fixed;left:0;right:0;top:0;bottom:0;width:100%;height:100%;background:0 0;z-index:9999999999}.layui-bg-red{background-color:#FF5722!important}.layui-bg-orange{background-color:#FFB800!important}.layui-bg-green{background-color:#009688!important}.layui-bg-cyan{background-color:#2F4056!important}.layui-bg-blue{background-color:#1E9FFF!important}.layui-bg-black{background-color:#393D49!important}.layui-bg-gray{background-color:#FAFAFA!important;color:#666!important}.layui-badge-rim,.layui-border,.layui-colla-content,.layui-colla-item,.layui-collapse,.layui-elem-field,.layui-form-pane .layui-form-item[pane],.layui-form-pane .layui-form-label,.layui-input,.layui-layedit,.layui-layedit-tool,.layui-panel,.layui-quote-nm,.layui-select,.layui-tab-bar,.layui-tab-card,.layui-tab-title,.layui-tab-title .layui-this:after,.layui-textarea{border-color:#eee}.layui-border{color:#666!important}.layui-border-red{border-color:#FF5722!important;color:#FF5722!important}.layui-border-orange{border-color:#FFB800!important;color:#FFB800!important}.layui-border-green{border-color:#009688!important;color:#009688!important}.layui-border-cyan{border-color:#2F4056!important;color:#2F4056!important}.layui-border-blue{border-color:#1E9FFF!important;color:#1E9FFF!important}.layui-border-black{border-color:#393D49!important;color:#393D49!important}.layui-timeline-item:before{background-color:#eee}.layui-text{line-height:1.6;font-size:14px;color:#666}.layui-text h1,.layui-text h2,.layui-text h3{font-weight:500;color:#333}.layui-text h1{font-size:30px}.layui-text h2{font-size:24px}.layui-text h3{font-size:18px}.layui-text a:not(.layui-btn){color:#01AAED}.layui-text a:not(.layui-btn):hover{text-decoration:underline}.layui-text ul{padding:5px 0 5px 15px}.layui-text ul li{margin-top:5px;list-style-type:disc}.layui-text em,.layui-word-aux{color:#999!important;padding-left:5px!important;padding-right:5px!important}.layui-text p{margin:10px 0}.layui-text p:first-child{margin-top:0}.layui-font-12{font-size:12px!important}.layui-font-14{font-size:14px!important}.layui-font-16{font-size:16px!important}.layui-font-18{font-size:18px!important}.layui-font-20{font-size:20px!important}.layui-font-red{color:#FF5722!important}.layui-font-orange{color:#FFB800!important}.layui-font-green{color:#009688!important}.layui-font-cyan{color:#2F4056!important}.layui-font-blue{color:#01AAED!important}.layui-font-black{color:#000!important}.layui-font-gray{color:#c2c2c2!important}.layui-btn{height:38px;line-height:38px;border:1px solid transparent;padding:0 18px;background-color:#009688;color:#fff;white-space:nowrap;text-align:center;font-size:14px;border-radius:2px;cursor:pointer}.layui-btn:hover{opacity:.8;filter:alpha(opacity=80);color:#fff}.layui-btn:active{opacity:1;filter:alpha(opacity=100)}.layui-btn+.layui-btn{margin-left:10px}.layui-btn-container{font-size:0}.layui-btn-container .layui-btn{margin-right:10px;margin-bottom:10px}.layui-btn-container .layui-btn+.layui-btn{margin-left:0}.layui-table .layui-btn-container .layui-btn{margin-bottom:9px}.layui-btn-radius{border-radius:100px}.layui-btn .layui-icon{padding:0 2px;vertical-align:middle\9;vertical-align:bottom}.layui-btn-primary{border-color:#d2d2d2;background:0 0;color:#666}.layui-btn-primary:hover{border-color:#009688;color:#333}.layui-btn-normal{background-color:#1E9FFF}.layui-btn-warm{background-color:#FFB800}.layui-btn-danger{background-color:#FF5722}.layui-btn-checked{background-color:#5FB878}.layui-btn-disabled,.layui-btn-disabled:active,.layui-btn-disabled:hover{border-color:#eee!important;background-color:#FBFBFB!important;color:#d2d2d2!important;cursor:not-allowed!important;opacity:1}.layui-btn-lg{height:44px;line-height:44px;padding:0 25px;font-size:16px}.layui-btn-sm{height:30px;line-height:30px;padding:0 10px;font-size:12px}.layui-btn-xs{height:22px;line-height:22px;padding:0 5px;font-size:12px}.layui-btn-xs i{font-size:12px!important}.layui-btn-group{vertical-align:middle;font-size:0}.layui-btn-group .layui-btn{margin-left:0!important;margin-right:0!important;border-left:1px solid rgba(255,255,255,.5);border-radius:0}.layui-btn-group .layui-btn-primary{border-left:none}.layui-btn-group .layui-btn-primary:hover{border-color:#d2d2d2;color:#009688}.layui-btn-group .layui-btn:first-child{border-left:none;border-radius:2px 0 0 2px}.layui-btn-group .layui-btn-primary:first-child{border-left:1px solid #d2d2d2}.layui-btn-group .layui-btn:last-child{border-radius:0 2px 2px 0}.layui-btn-group .layui-btn+.layui-btn{margin-left:0}.layui-btn-group+.layui-btn-group{margin-left:10px}.layui-btn-fluid{width:100%}.layui-input,.layui-select,.layui-textarea{height:38px;line-height:1.3;line-height:38px\9;border-width:1px;border-style:solid;background-color:#fff;color:rgba(0,0,0,.85);border-radius:2px}.layui-input::-webkit-input-placeholder,.layui-select::-webkit-input-placeholder,.layui-textarea::-webkit-input-placeholder{line-height:1.3}.layui-input,.layui-textarea{display:block;width:100%;padding-left:10px}.layui-input:hover,.layui-textarea:hover{border-color:#eee!important}.layui-input:focus,.layui-textarea:focus{border-color:#d2d2d2!important}.layui-textarea{min-height:100px;height:auto;line-height:20px;padding:6px 10px;resize:vertical}.layui-select{padding:0 10px}.layui-form input[type=checkbox],.layui-form input[type=radio],.layui-form select{display:none}.layui-form [lay-ignore]{display:initial}.layui-form-item{margin-bottom:15px;clear:both;*zoom:1}.layui-form-item:after{content:'\20';clear:both;*zoom:1;display:block;height:0}.layui-form-label{float:left;display:block;padding:9px 15px;width:80px;font-weight:400;line-height:20px;text-align:right}.layui-form-label-col{display:block;float:none;padding:9px 0;line-height:20px;text-align:left}.layui-form-item .layui-inline{margin-bottom:5px;margin-right:10px}.layui-input-block{margin-left:110px;min-height:36px}.layui-input-inline{display:inline-block;vertical-align:middle}.layui-form-item .layui-input-inline{float:left;width:190px;margin-right:10px}.layui-form-text .layui-input-inline{width:auto}.layui-form-mid{float:left;display:block;padding:9px 0!important;line-height:20px;margin-right:10px}.layui-form-danger+.layui-form-select .layui-input,.layui-form-danger:focus{border-color:#FF5722!important}.layui-form-select .layui-input{padding-right:30px;cursor:pointer}.layui-form-select .layui-edge{position:absolute;right:10px;top:50%;margin-top:-3px;cursor:pointer;border-width:6px;border-top-color:#c2c2c2;border-top-style:solid;transition:all .3s;-webkit-transition:all .3s}.layui-form-select dl{display:none;position:absolute;left:0;top:42px;padding:5px 0;z-index:899;min-width:100%;border:1px solid #eee;max-height:300px;overflow-y:auto;background-color:#fff;border-radius:2px;box-sizing:border-box}.layui-form-select dl dd,.layui-form-select dl dt{padding:0 10px;line-height:36px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.layui-form-select dl dt{font-size:12px;color:#999}.layui-form-select dl dd{cursor:pointer}.layui-form-select dl dd:hover{background-color:#F6F6F6;-webkit-transition:.5s all;transition:.5s all}.layui-form-select .layui-select-group dd{padding-left:20px}.layui-form-select dl dd.layui-select-tips{padding-left:10px!important;color:#999}.layui-form-select dl dd.layui-this{background-color:#5FB878;color:#fff}.layui-form-checkbox,.layui-form-select dl dd.layui-disabled{background-color:#fff}.layui-form-selected dl{display:block}.layui-form-checkbox,.layui-form-checkbox *,.layui-form-switch{display:inline-block;vertical-align:middle}.layui-form-selected .layui-edge{margin-top:-9px;-webkit-transform:rotate(180deg);transform:rotate(180deg);margin-top:-3px\9}:root .layui-form-selected .layui-edge{margin-top:-9px\0/IE9}.layui-form-selectup dl{top:auto;bottom:42px}.layui-select-none{margin:5px 0;text-align:center;color:#999}.layui-select-disabled .layui-disabled{border-color:#eee!important}.layui-select-disabled .layui-edge{border-top-color:#d2d2d2}.layui-form-checkbox{position:relative;height:30px;line-height:30px;margin-right:10px;padding-right:30px;cursor:pointer;font-size:0;-webkit-transition:.1s linear;transition:.1s linear;box-sizing:border-box}.layui-form-checkbox span{padding:0 10px;height:100%;font-size:14px;border-radius:2px 0 0 2px;background-color:#d2d2d2;color:#fff;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.layui-form-checkbox:hover span{background-color:#c2c2c2}.layui-form-checkbox i{position:absolute;right:0;top:0;width:30px;height:28px;border:1px solid #d2d2d2;border-left:none;border-radius:0 2px 2px 0;color:#fff;font-size:20px;text-align:center}.layui-form-checkbox:hover i{border-color:#c2c2c2;color:#c2c2c2}.layui-form-checked,.layui-form-checked:hover{border-color:#5FB878}.layui-form-checked span,.layui-form-checked:hover span{background-color:#5FB878}.layui-form-checked i,.layui-form-checked:hover i{color:#5FB878}.layui-form-item .layui-form-checkbox{margin-top:4px}.layui-form-checkbox[lay-skin=primary]{height:auto!important;line-height:normal!important;min-width:18px;min-height:18px;border:none!important;margin-right:0;padding-left:28px;padding-right:0;background:0 0}.layui-form-checkbox[lay-skin=primary] span{padding-left:0;padding-right:15px;line-height:18px;background:0 0;color:#666}.layui-form-checkbox[lay-skin=primary] i{right:auto;left:0;width:16px;height:16px;line-height:16px;border:1px solid #d2d2d2;font-size:12px;border-radius:2px;background-color:#fff;-webkit-transition:.1s linear;transition:.1s linear}.layui-form-checkbox[lay-skin=primary]:hover i{border-color:#5FB878;color:#fff}.layui-form-checked[lay-skin=primary] i{border-color:#5FB878!important;background-color:#5FB878;color:#fff}.layui-checkbox-disabled[lay-skin=primary] span{background:0 0!important;color:#c2c2c2!important}.layui-checkbox-disabled[lay-skin=primary]:hover i{border-color:#d2d2d2}.layui-form-item .layui-form-checkbox[lay-skin=primary]{margin-top:10px}.layui-form-switch{position:relative;height:22px;line-height:22px;min-width:35px;padding:0 5px;margin-top:8px;border:1px solid #d2d2d2;border-radius:20px;cursor:pointer;background-color:#fff;-webkit-transition:.1s linear;transition:.1s linear}.layui-form-switch i{position:absolute;left:5px;top:3px;width:16px;height:16px;border-radius:20px;background-color:#d2d2d2;-webkit-transition:.1s linear;transition:.1s linear}.layui-form-switch em{position:relative;top:0;width:25px;margin-left:21px;padding:0!important;text-align:center!important;color:#999!important;font-style:normal!important;font-size:12px}.layui-form-onswitch{border-color:#5FB878;background-color:#5FB878}.layui-checkbox-disabled,.layui-checkbox-disabled i{border-color:#eee!important}.layui-form-onswitch i{left:100%;margin-left:-21px;background-color:#fff}.layui-form-onswitch em{margin-left:5px;margin-right:21px;color:#fff!important}.layui-checkbox-disabled span{background-color:#eee!important}.layui-checkbox-disabled em{color:#d2d2d2!important}.layui-checkbox-disabled:hover i{color:#fff!important}[lay-radio]{display:none}.layui-form-radio,.layui-form-radio *{display:inline-block;vertical-align:middle}.layui-form-radio{line-height:28px;margin:6px 10px 0 0;padding-right:10px;cursor:pointer;font-size:0}.layui-form-radio *{font-size:14px}.layui-form-radio>i{margin-right:8px;font-size:22px;color:#c2c2c2}.layui-form-radio:hover *,.layui-form-radioed,.layui-form-radioed>i{color:#5FB878}.layui-radio-disabled>i{color:#eee!important}.layui-radio-disabled *{color:#c2c2c2!important}.layui-form-pane .layui-form-label{width:110px;padding:8px 15px;height:38px;line-height:20px;border-width:1px;border-style:solid;border-radius:2px 0 0 2px;text-align:center;background-color:#FAFAFA;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box}.layui-form-pane .layui-input-inline{margin-left:-1px}.layui-form-pane .layui-input-block{margin-left:110px;left:-1px}.layui-form-pane .layui-input{border-radius:0 2px 2px 0}.layui-form-pane .layui-form-text .layui-form-label{float:none;width:100%;border-radius:2px;box-sizing:border-box;text-align:left}.layui-form-pane .layui-form-text .layui-input-inline{display:block;margin:0;top:-1px;clear:both}.layui-form-pane .layui-form-text .layui-input-block{margin:0;left:0;top:-1px}.layui-form-pane .layui-form-text .layui-textarea{min-height:100px;border-radius:0 0 2px 2px}.layui-form-pane .layui-form-checkbox{margin:4px 0 4px 10px}.layui-form-pane .layui-form-radio,.layui-form-pane .layui-form-switch{margin-top:6px;margin-left:10px}.layui-form-pane .layui-form-item[pane]{position:relative;border-width:1px;border-style:solid}.layui-form-pane .layui-form-item[pane] .layui-form-label{position:absolute;left:0;top:0;height:100%;border-width:0 1px 0 0}.layui-form-pane .layui-form-item[pane] .layui-input-inline{margin-left:110px}@media screen and (max-width:450px){.layui-form-item .layui-form-label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-form-item .layui-inline{display:block;margin-right:0;margin-bottom:20px;clear:both}.layui-form-item .layui-inline:after{content:'\20';clear:both;display:block;height:0}.layui-form-item .layui-input-inline{display:block;float:none;left:-3px;width:auto!important;margin:0 0 10px 112px}.layui-form-item .layui-input-inline+.layui-form-mid{margin-left:110px;top:-5px;padding:0}.layui-form-item .layui-form-checkbox{margin-right:5px;margin-bottom:5px}}.layui-layedit{border-width:1px;border-style:solid;border-radius:2px}.layui-layedit-tool{padding:3px 5px;border-bottom-width:1px;border-bottom-style:solid;font-size:0}.layedit-tool-fixed{position:fixed;top:0;border-top:1px solid #eee}.layui-layedit-tool .layedit-tool-mid,.layui-layedit-tool .layui-icon{display:inline-block;vertical-align:middle;text-align:center;font-size:14px}.layui-layedit-tool .layui-icon{position:relative;width:32px;height:30px;line-height:30px;margin:3px 5px;color:#777;cursor:pointer;border-radius:2px}.layui-layedit-tool .layui-icon:hover{color:#393D49}.layui-layedit-tool .layui-icon:active{color:#000}.layui-layedit-tool .layedit-tool-active{background-color:#eee;color:#000}.layui-layedit-tool .layui-disabled,.layui-layedit-tool .layui-disabled:hover{color:#d2d2d2;cursor:not-allowed}.layui-layedit-tool .layedit-tool-mid{width:1px;height:18px;margin:0 10px;background-color:#d2d2d2}.layedit-tool-html{width:50px!important;font-size:30px!important}.layedit-tool-b,.layedit-tool-code,.layedit-tool-help{font-size:16px!important}.layedit-tool-d,.layedit-tool-face,.layedit-tool-image,.layedit-tool-unlink{font-size:18px!important}.layedit-tool-image input{position:absolute;font-size:0;left:0;top:0;width:100%;height:100%;opacity:.01;filter:Alpha(opacity=1);cursor:pointer}.layui-layedit-iframe iframe{display:block;width:100%}#LAY_layedit_code{overflow:hidden}.layui-laypage{display:inline-block;*display:inline;*zoom:1;vertical-align:middle;margin:10px 0;font-size:0}.layui-laypage>a:first-child,.layui-laypage>a:first-child em{border-radius:2px 0 0 2px}.layui-laypage>a:last-child,.layui-laypage>a:last-child em{border-radius:0 2px 2px 0}.layui-laypage>:first-child{margin-left:0!important}.layui-laypage>:last-child{margin-right:0!important}.layui-laypage a,.layui-laypage button,.layui-laypage input,.layui-laypage select,.layui-laypage span{border:1px solid #eee}.layui-laypage a,.layui-laypage span{display:inline-block;*display:inline;*zoom:1;vertical-align:middle;padding:0 15px;height:28px;line-height:28px;margin:0 -1px 5px 0;background-color:#fff;color:#333;font-size:12px}.layui-flow-more a *,.layui-laypage input,.layui-table-view select[lay-ignore]{display:inline-block}.layui-laypage a:hover{color:#009688}.layui-laypage em{font-style:normal}.layui-laypage .layui-laypage-spr{color:#999;font-weight:700}.layui-laypage a{text-decoration:none}.layui-laypage .layui-laypage-curr{position:relative}.layui-laypage .layui-laypage-curr em{position:relative;color:#fff}.layui-laypage .layui-laypage-curr .layui-laypage-em{position:absolute;left:-1px;top:-1px;padding:1px;width:100%;height:100%;background-color:#009688}.layui-laypage-em{border-radius:2px}.layui-laypage-next em,.layui-laypage-prev em{font-family:Sim sun;font-size:16px}.layui-laypage .layui-laypage-count,.layui-laypage .layui-laypage-limits,.layui-laypage .layui-laypage-refresh,.layui-laypage .layui-laypage-skip{margin-left:10px;margin-right:10px;padding:0;border:none}.layui-laypage .layui-laypage-limits,.layui-laypage .layui-laypage-refresh{vertical-align:top}.layui-laypage .layui-laypage-refresh i{font-size:18px;cursor:pointer}.layui-laypage select{height:22px;padding:3px;border-radius:2px;cursor:pointer}.layui-laypage .layui-laypage-skip{height:30px;line-height:30px;color:#999}.layui-laypage button,.layui-laypage input{height:30px;line-height:30px;border-radius:2px;vertical-align:top;background-color:#fff;box-sizing:border-box}.layui-laypage input{width:40px;margin:0 10px;padding:0 3px;text-align:center}.layui-laypage input:focus,.layui-laypage select:focus{border-color:#009688!important}.layui-laypage button{margin-left:10px;padding:0 10px;cursor:pointer}.layui-table,.layui-table-view{margin:10px 0}.layui-flow-more{margin:10px 0;text-align:center;color:#999;font-size:14px}.layui-flow-more a{height:32px;line-height:32px}.layui-flow-more a *{vertical-align:top}.layui-flow-more a cite{padding:0 20px;border-radius:3px;background-color:#eee;color:#333;font-style:normal}.layui-flow-more a cite:hover{opacity:.8}.layui-flow-more a i{font-size:30px;color:#737383}.layui-table{width:100%;background-color:#fff;color:#666}.layui-table tr{transition:all .3s;-webkit-transition:all .3s}.layui-table th{text-align:left;font-weight:400}.layui-table tbody tr:hover,.layui-table thead tr,.layui-table-click,.layui-table-header,.layui-table-hover,.layui-table-mend,.layui-table-patch,.layui-table-tool,.layui-table-total,.layui-table-total tr,.layui-table[lay-even] tr:nth-child(even){background-color:#FAFAFA}.layui-table td,.layui-table th,.layui-table-col-set,.layui-table-fixed-r,.layui-table-grid-down,.layui-table-header,.layui-table-page,.layui-table-tips-main,.layui-table-tool,.layui-table-total,.layui-table-view,.layui-table[lay-skin=line],.layui-table[lay-skin=row]{border-width:1px;border-style:solid;border-color:#eee}.layui-table td,.layui-table th{position:relative;padding:9px 15px;min-height:20px;line-height:20px;font-size:14px}.layui-table[lay-skin=line] td,.layui-table[lay-skin=line] th{border-width:0 0 1px}.layui-table[lay-skin=row] td,.layui-table[lay-skin=row] th{border-width:0 1px 0 0}.layui-table[lay-skin=nob] td,.layui-table[lay-skin=nob] th{border:none}.layui-table img{max-width:100px}.layui-table[lay-size=lg] td,.layui-table[lay-size=lg] th{padding:15px 30px}.layui-table-view .layui-table[lay-size=lg] .layui-table-cell{height:40px;line-height:40px}.layui-table[lay-size=sm] td,.layui-table[lay-size=sm] th{font-size:12px;padding:5px 10px}.layui-table-view .layui-table[lay-size=sm] .layui-table-cell{height:20px;line-height:20px}.layui-table[lay-data]{display:none}.layui-table-box{position:relative;overflow:hidden}.layui-table-view .layui-table{position:relative;width:auto;margin:0}.layui-table-view .layui-table[lay-skin=line]{border-width:0 1px 0 0}.layui-table-view .layui-table[lay-skin=row]{border-width:0 0 1px}.layui-table-view .layui-table td,.layui-table-view .layui-table th{padding:5px 0;border-top:none;border-left:none}.layui-table-view .layui-table th.layui-unselect .layui-table-cell span{cursor:pointer}.layui-table-view .layui-table td{cursor:default}.layui-table-view .layui-table td[data-edit=text]{cursor:text}.layui-table-view .layui-form-checkbox[lay-skin=primary] i{width:18px;height:18px}.layui-table-view .layui-form-radio{line-height:0;padding:0}.layui-table-view .layui-form-radio>i{margin:0;font-size:20px}.layui-table-init{position:absolute;left:0;top:0;width:100%;height:100%;text-align:center;z-index:110}.layui-table-init .layui-icon{position:absolute;left:50%;top:50%;margin:-15px 0 0 -15px;font-size:30px;color:#c2c2c2}.layui-table-header{border-width:0 0 1px;overflow:hidden}.layui-table-header .layui-table{margin-bottom:-1px}.layui-table-tool .layui-inline[lay-event]{position:relative;width:26px;height:26px;padding:5px;line-height:16px;margin-right:10px;text-align:center;color:#333;border:1px solid #ccc;cursor:pointer;-webkit-transition:.5s all;transition:.5s all}.layui-table-tool .layui-inline[lay-event]:hover{border:1px solid #999}.layui-table-tool-temp{padding-right:120px}.layui-table-tool-self{position:absolute;right:17px;top:10px}.layui-table-tool .layui-table-tool-self .layui-inline[lay-event]{margin:0 0 0 10px}.layui-table-tool-panel{position:absolute;top:29px;left:-1px;padding:5px 0;min-width:150px;min-height:40px;border:1px solid #d2d2d2;text-align:left;overflow-y:auto;background-color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.12)}.layui-table-cell,.layui-table-tool-panel li{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layui-table-tool-panel li{padding:0 10px;line-height:30px;-webkit-transition:.5s all;transition:.5s all}.layui-menu li,.layui-menu-body-title a:hover,.layui-menu-body-title>.layui-icon:hover{transition:all .3s}.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary]{width:100%;padding-left:28px}.layui-table-tool-panel li:hover{background-color:#F6F6F6}.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary] i{position:absolute;left:0;top:0}.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary] span{padding:0}.layui-table-tool .layui-table-tool-self .layui-table-tool-panel{left:auto;right:-1px}.layui-table-col-set{position:absolute;right:0;top:0;width:20px;height:100%;border-width:0 0 0 1px;background-color:#fff}.layui-table-sort{width:10px;height:20px;margin-left:5px;cursor:pointer!important}.layui-table-sort .layui-edge{position:absolute;left:5px;border-width:5px}.layui-table-sort .layui-table-sort-asc{top:3px;border-top:none;border-bottom-style:solid;border-bottom-color:#b2b2b2}.layui-table-sort .layui-table-sort-asc:hover{border-bottom-color:#666}.layui-table-sort .layui-table-sort-desc{bottom:5px;border-bottom:none;border-top-style:solid;border-top-color:#b2b2b2}.layui-table-sort .layui-table-sort-desc:hover{border-top-color:#666}.layui-table-sort[lay-sort=asc] .layui-table-sort-asc{border-bottom-color:#000}.layui-table-sort[lay-sort=desc] .layui-table-sort-desc{border-top-color:#000}.layui-table-cell{height:28px;line-height:28px;padding:0 15px;position:relative;box-sizing:border-box}.layui-table-cell .layui-form-checkbox[lay-skin=primary]{top:-1px;padding:0}.layui-table-cell .layui-table-link{color:#01AAED}.laytable-cell-checkbox,.laytable-cell-numbers,.laytable-cell-radio,.laytable-cell-space{padding:0;text-align:center}.layui-table-body{position:relative;overflow:auto;margin-right:-1px;margin-bottom:-1px}.layui-table-body .layui-none{line-height:26px;padding:30px 15px;text-align:center;color:#999}.layui-table-fixed{position:absolute;left:0;top:0;z-index:101}.layui-table-fixed .layui-table-body{overflow:hidden}.layui-table-fixed-l{box-shadow:1px 0 8px rgba(0,0,0,.08)}.layui-table-fixed-r{left:auto;right:-1px;border-width:0 0 0 1px;box-shadow:-1px 0 8px rgba(0,0,0,.08)}.layui-table-fixed-r .layui-table-header{position:relative;overflow:visible}.layui-table-mend{position:absolute;right:-49px;top:0;height:100%;width:50px}.layui-table-tool{position:relative;z-index:890;width:100%;min-height:50px;line-height:30px;padding:10px 15px;border-width:0 0 1px}.layui-table-tool .layui-btn-container{margin-bottom:-10px}.layui-table-page,.layui-table-total{border-width:1px 0 0;margin-bottom:-1px;overflow:hidden}.layui-table-page{position:relative;width:100%;padding:7px 7px 0;height:41px;font-size:12px;white-space:nowrap}.layui-table-page>div{height:26px}.layui-table-page .layui-laypage{margin:0}.layui-table-page .layui-laypage a,.layui-table-page .layui-laypage span{height:26px;line-height:26px;margin-bottom:10px;border:none;background:0 0}.layui-table-page .layui-laypage a,.layui-table-page .layui-laypage span.layui-laypage-curr{padding:0 12px}.layui-table-page .layui-laypage span{margin-left:0;padding:0}.layui-table-page .layui-laypage .layui-laypage-prev{margin-left:-7px!important}.layui-table-page .layui-laypage .layui-laypage-curr .layui-laypage-em{left:0;top:0;padding:0}.layui-table-page .layui-laypage button,.layui-table-page .layui-laypage input{height:26px;line-height:26px}.layui-table-page .layui-laypage input{width:40px}.layui-table-page .layui-laypage button{padding:0 10px}.layui-table-page select{height:18px}.layui-table-patch .layui-table-cell{padding:0;width:30px}.layui-table-edit{position:absolute;left:0;top:0;width:100%;height:100%;padding:0 14px 1px;border-radius:0;box-shadow:1px 1px 20px rgba(0,0,0,.15)}.layui-table-edit:focus{border-color:#5FB878!important}select.layui-table-edit{padding:0 0 0 10px;border-color:#d2d2d2}.layui-table-view .layui-form-checkbox,.layui-table-view .layui-form-radio,.layui-table-view .layui-form-switch{top:0;margin:0;box-sizing:content-box}.layui-colorpicker-alpha-slider,.layui-colorpicker-side-slider,.layui-menu,.layui-menu *,.layui-nav{box-sizing:border-box}.layui-table-view .layui-form-checkbox{top:-1px;height:26px;line-height:26px}.layui-table-view .layui-form-checkbox i{height:26px}.layui-table-grid .layui-table-cell{overflow:visible}.layui-table-grid-down{position:absolute;top:0;right:0;width:26px;height:100%;padding:5px 0;border-width:0 0 0 1px;text-align:center;background-color:#fff;color:#999;cursor:pointer}.layui-table-grid-down .layui-icon{position:absolute;top:50%;left:50%;margin:-8px 0 0 -8px}.layui-table-grid-down:hover{background-color:#fbfbfb}body .layui-table-tips .layui-layer-content{background:0 0;padding:0;box-shadow:0 1px 6px rgba(0,0,0,.12)}.layui-table-tips-main{margin:-44px 0 0 -1px;max-height:150px;padding:8px 15px;font-size:14px;overflow-y:scroll;background-color:#fff;color:#666}.layui-table-tips-c{position:absolute;right:-3px;top:-13px;width:20px;height:20px;padding:3px;cursor:pointer;background-color:#666;border-radius:50%;color:#fff}.layui-table-tips-c:hover{background-color:#777}.layui-table-tips-c:before{position:relative;right:-2px}.layui-upload-file{display:none!important;opacity:.01;filter:Alpha(opacity=1)}.layui-upload-drag,.layui-upload-form,.layui-upload-wrap{display:inline-block}.layui-upload-list{margin:10px 0}.layui-upload-choose{max-width:200px;padding:0 10px;color:#999;font-size:14px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-upload-drag{position:relative;padding:30px;border:1px dashed #e2e2e2;background-color:#fff;text-align:center;cursor:pointer;color:#999}.layui-upload-drag .layui-icon{font-size:50px;color:#009688}.layui-upload-drag[lay-over]{border-color:#009688}.layui-upload-iframe{position:absolute;width:0;height:0;border:0;visibility:hidden}.layui-upload-wrap{position:relative;vertical-align:middle}.layui-upload-wrap .layui-upload-file{display:block!important;position:absolute;left:0;top:0;z-index:10;font-size:100px;width:100%;height:100%;opacity:.01;filter:Alpha(opacity=1);cursor:pointer}.layui-btn-container .layui-upload-choose{padding-left:0}.layui-menu{position:relative;margin:5px 0;background-color:#fff}.layui-menu li,.layui-menu-body-title a{padding:5px 15px}.layui-menu li{position:relative;margin:1px 0;width:calc(100% + 1px);line-height:26px;color:rgba(0,0,0,.8);font-size:14px;white-space:nowrap;cursor:pointer}.layui-menu li:hover{background-color:#F6F6F6}.layui-menu-item-parent:hover>.layui-menu-body-panel{display:block;animation-name:layui-fadein;animation-duration:.3s;animation-fill-mode:both;animation-delay:.2s}.layui-menu-item-group .layui-menu-body-title,.layui-menu-item-parent .layui-menu-body-title{padding-right:25px}.layui-menu .layui-menu-item-divider:hover,.layui-menu .layui-menu-item-group:hover,.layui-menu .layui-menu-item-none:hover{background:0 0;cursor:default}.layui-menu .layui-menu-item-group>ul{margin:5px 0 -5px}.layui-menu .layui-menu-item-group>.layui-menu-body-title{color:rgba(0,0,0,.35);user-select:none}.layui-menu .layui-menu-item-none{color:rgba(0,0,0,.35);cursor:default;text-align:center}.layui-menu .layui-menu-item-divider{margin:5px 0;padding:0;height:0;line-height:0;border-bottom:1px solid #eee;overflow:hidden}.layui-menu .layui-menu-item-down:hover,.layui-menu .layui-menu-item-up:hover{cursor:pointer}.layui-menu .layui-menu-item-up>.layui-menu-body-title{color:rgba(0,0,0,.8)}.layui-menu .layui-menu-item-up>ul{visibility:hidden;height:0;overflow:hidden}.layui-menu .layui-menu-item-down:hover>.layui-menu-body-title>.layui-icon,.layui-menu .layui-menu-item-up>.layui-menu-body-title:hover>.layui-icon{color:rgba(0,0,0,1)}.layui-menu .layui-menu-item-down>ul{visibility:visible;height:auto}.layui-breadcrumb,.layui-tree-btnGroup{visibility:hidden}.layui-menu .layui-menu-item-checked,.layui-menu .layui-menu-item-checked2{background-color:#F6F6F6!important;color:#5FB878}.layui-menu .layui-menu-item-checked a,.layui-menu .layui-menu-item-checked2 a{color:#5FB878}.layui-menu .layui-menu-item-checked:after{position:absolute;right:0;top:0;bottom:0;border-right:3px solid #5FB878;content:""}.layui-menu-body-title{position:relative;overflow:hidden;text-overflow:ellipsis}.layui-menu-body-title a{display:block;margin:-5px -15px;color:rgba(0,0,0,.8)}.layui-menu-body-title>.layui-icon{position:absolute;right:0;top:0;font-size:14px}.layui-menu-body-title>.layui-icon-right{right:-1px}.layui-menu-body-panel{display:none;position:absolute;top:-7px;left:100%;z-index:1000;margin-left:13px;padding:5px 0}.layui-menu-body-panel:before{content:"";position:absolute;width:20px;left:-16px;top:0;bottom:0}.layui-menu-body-panel-left{left:auto;right:100%;margin:0 13px}.layui-menu-body-panel-left:before{left:auto;right:-16px}.layui-menu-lg li{line-height:32px}.layui-menu-lg .layui-menu-body-title a:hover,.layui-menu-lg li:hover{background:0 0;color:#5FB878}.layui-menu-lg li .layui-menu-body-panel{margin-left:14px}.layui-menu-lg li .layui-menu-body-panel-left{margin:0 15px}.layui-dropdown{position:absolute;left:-999999px;top:-999999px;z-index:66666666;margin:5px 0;min-width:100px}.layui-dropdown:before{content:"";position:absolute;width:100%;height:6px;left:0;top:-6px}.layui-nav{position:relative;padding:0 20px;background-color:#393D49;color:#fff;border-radius:2px;font-size:0}.layui-nav *{font-size:14px}.layui-nav .layui-nav-item{position:relative;display:inline-block;*display:inline;*zoom:1;vertical-align:middle;line-height:60px}.layui-nav .layui-nav-item a{display:block;padding:0 20px;color:#fff;color:rgba(255,255,255,.7);transition:all .3s;-webkit-transition:all .3s}.layui-nav .layui-this:after,.layui-nav-bar{content:"";position:absolute;left:0;top:0;width:0;height:5px;background-color:#5FB878;transition:all .2s;-webkit-transition:all .2s;pointer-events:none}.layui-nav-bar{z-index:1000}.layui-nav[lay-bar=disabled] .layui-nav-bar{display:none}.layui-nav .layui-nav-item a:hover,.layui-nav .layui-this a{color:#fff}.layui-nav .layui-this:after{top:auto;bottom:0;width:100%}.layui-nav-img{width:30px;height:30px;margin-right:10px;border-radius:50%}.layui-nav .layui-nav-more{position:absolute;top:0;right:3px;left:auto!important;margin-top:0;font-size:12px;cursor:pointer;transition:all .2s;-webkit-transition:all .2s}.layui-nav .layui-nav-mored,.layui-nav-itemed>a .layui-nav-more{transform:rotate(180deg)}.layui-nav-child{display:none;position:absolute;left:0;top:65px;min-width:100%;line-height:36px;padding:5px 0;box-shadow:0 2px 4px rgba(0,0,0,.12);border:1px solid #eee;background-color:#fff;z-index:100;border-radius:2px;white-space:nowrap}.layui-nav .layui-nav-child a{color:#666;color:rgba(0,0,0,.8)}.layui-nav .layui-nav-child a:hover{background-color:#F6F6F6;color:rgba(0,0,0,.8)}.layui-nav-child dd{margin:1px 0;position:relative}.layui-nav-child dd.layui-this{background-color:#F6F6F6;color:#000}.layui-nav-child dd.layui-this:after{display:none}.layui-nav-child-r{left:auto;right:0}.layui-nav-child-c{text-align:center}.layui-nav-tree{width:200px;padding:0}.layui-nav-tree .layui-nav-item{display:block;width:100%;line-height:40px}.layui-nav-tree .layui-nav-item a{position:relative;height:40px;line-height:40px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-nav-tree .layui-nav-item>a{padding-top:5px;padding-bottom:5px}.layui-nav-tree .layui-nav-more{right:15px}.layui-nav-tree .layui-nav-item>a .layui-nav-more{padding:5px 0}.layui-nav-tree .layui-nav-bar{width:5px;height:0;background-color:#009688}.layui-side .layui-nav-tree .layui-nav-bar{width:2px}.layui-nav-tree .layui-nav-child dd.layui-this,.layui-nav-tree .layui-nav-child dd.layui-this a,.layui-nav-tree .layui-this,.layui-nav-tree .layui-this>a,.layui-nav-tree .layui-this>a:hover{background-color:#009688;color:#fff}.layui-nav-tree .layui-this:after{display:none}.layui-nav-itemed>a,.layui-nav-tree .layui-nav-title a,.layui-nav-tree .layui-nav-title a:hover{color:#fff!important}.layui-nav-tree .layui-nav-child{position:relative;z-index:0;top:0;border:none;box-shadow:none}.layui-nav-tree .layui-nav-child dd{margin:0}.layui-nav-tree .layui-nav-child a{color:#fff;color:rgba(255,255,255,.7)}.layui-nav-tree .layui-nav-child,.layui-nav-tree .layui-nav-child a:hover{background:0 0;color:#fff}.layui-nav-itemed>.layui-nav-child{display:block;background-color:rgba(0,0,0,.3)!important}.layui-nav-itemed>.layui-nav-child>.layui-this>.layui-nav-child{display:block}.layui-nav-side{position:fixed;top:0;bottom:0;left:0;overflow-x:hidden;z-index:999}.layui-breadcrumb{font-size:0}.layui-breadcrumb>*{font-size:14px}.layui-breadcrumb a{color:#999!important}.layui-breadcrumb a:hover{color:#5FB878!important}.layui-breadcrumb a cite{color:#666;font-style:normal}.layui-breadcrumb span[lay-separator]{margin:0 10px;color:#999}.layui-tab{margin:10px 0;text-align:left!important}.layui-tab[overflow]>.layui-tab-title{overflow:hidden}.layui-tab-title{position:relative;left:0;height:40px;white-space:nowrap;font-size:0;border-bottom-width:1px;border-bottom-style:solid;transition:all .2s;-webkit-transition:all .2s}.layui-tab-title li{display:inline-block;*display:inline;*zoom:1;vertical-align:middle;font-size:14px;transition:all .2s;-webkit-transition:all .2s;position:relative;line-height:40px;min-width:65px;padding:0 15px;text-align:center;cursor:pointer}.layui-tab-title li a{display:block;padding:0 15px;margin:0 -15px}.layui-tab-title .layui-this{color:#000}.layui-tab-title .layui-this:after{position:absolute;left:0;top:0;content:"";width:100%;height:41px;border-width:1px;border-style:solid;border-bottom-color:#fff;border-radius:2px 2px 0 0;box-sizing:border-box;pointer-events:none}.layui-tab-bar{position:absolute;right:0;top:0;z-index:10;width:30px;height:39px;line-height:39px;border-width:1px;border-style:solid;border-radius:2px;text-align:center;background-color:#fff;cursor:pointer}.layui-tab-bar .layui-icon{position:relative;display:inline-block;top:3px;transition:all .3s;-webkit-transition:all .3s}.layui-tab-item{display:none}.layui-tab-more{padding-right:30px;height:auto!important;white-space:normal!important}.layui-tab-more li.layui-this:after{border-bottom-color:#eee;border-radius:2px}.layui-tab-more .layui-tab-bar .layui-icon{top:-2px;top:3px\9;-webkit-transform:rotate(180deg);transform:rotate(180deg)}:root .layui-tab-more .layui-tab-bar .layui-icon{top:-2px\0/IE9}.layui-tab-content{padding:15px 0}.layui-tab-title li .layui-tab-close{position:relative;display:inline-block;width:18px;height:18px;line-height:20px;margin-left:8px;top:1px;text-align:center;font-size:14px;color:#c2c2c2;transition:all .2s;-webkit-transition:all .2s}.layui-tab-title li .layui-tab-close:hover{border-radius:2px;background-color:#FF5722;color:#fff}.layui-tab-brief>.layui-tab-title .layui-this{color:#009688}.layui-tab-brief>.layui-tab-more li.layui-this:after,.layui-tab-brief>.layui-tab-title .layui-this:after{border:none;border-radius:0;border-bottom:2px solid #5FB878}.layui-tab-brief[overflow]>.layui-tab-title .layui-this:after{top:-1px}.layui-tab-card{border-width:1px;border-style:solid;border-radius:2px;box-shadow:0 2px 5px 0 rgba(0,0,0,.1)}.layui-tab-card>.layui-tab-title{background-color:#FAFAFA}.layui-tab-card>.layui-tab-title li{margin-right:-1px;margin-left:-1px}.layui-tab-card>.layui-tab-title .layui-this{background-color:#fff}.layui-tab-card>.layui-tab-title .layui-this:after{border-top:none;border-width:1px;border-bottom-color:#fff}.layui-tab-card>.layui-tab-title .layui-tab-bar{height:40px;line-height:40px;border-radius:0;border-top:none;border-right:none}.layui-tab-card>.layui-tab-more .layui-this{background:0 0;color:#5FB878}.layui-tab-card>.layui-tab-more .layui-this:after{border:none}.layui-timeline{padding-left:5px}.layui-timeline-item{position:relative;padding-bottom:20px}.layui-timeline-axis{position:absolute;left:-5px;top:0;z-index:10;width:20px;height:20px;line-height:20px;background-color:#fff;color:#5FB878;border-radius:50%;text-align:center;cursor:pointer}.layui-timeline-axis:hover{color:#FF5722}.layui-timeline-item:before{content:"";position:absolute;left:5px;top:0;z-index:0;width:1px;height:100%}.layui-timeline-item:first-child:before{display:block}.layui-timeline-item:last-child:before{display:none}.layui-timeline-content{padding-left:25px}.layui-timeline-title{position:relative;margin-bottom:10px;line-height:22px}.layui-badge,.layui-badge-dot,.layui-badge-rim{position:relative;display:inline-block;padding:0 6px;font-size:12px;text-align:center;background-color:#FF5722;color:#fff;border-radius:2px}.layui-badge{height:18px;line-height:18px}.layui-badge-dot{width:8px;height:8px;padding:0;border-radius:50%}.layui-badge-rim{height:18px;line-height:18px;border-width:1px;border-style:solid;background-color:#fff;color:#666}.layui-btn .layui-badge,.layui-btn .layui-badge-dot{margin-left:5px}.layui-nav .layui-badge,.layui-nav .layui-badge-dot{position:absolute;top:50%;margin:-5px 6px 0}.layui-nav .layui-badge{margin-top:-10px}.layui-tab-title .layui-badge,.layui-tab-title .layui-badge-dot{left:5px;top:-2px}.layui-carousel{position:relative;left:0;top:0;background-color:#f8f8f8}.layui-carousel>[carousel-item]{position:relative;width:100%;height:100%;overflow:hidden}.layui-carousel>[carousel-item]:before{position:absolute;content:'\e63d';left:50%;top:50%;width:100px;line-height:20px;margin:-10px 0 0 -50px;text-align:center;color:#c2c2c2;font-family:layui-icon!important;font-size:30px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.layui-carousel>[carousel-item]>*{display:none;position:absolute;left:0;top:0;width:100%;height:100%;background-color:#f8f8f8;transition-duration:.3s;-webkit-transition-duration:.3s}.layui-carousel-updown>*{-webkit-transition:.3s ease-in-out up;transition:.3s ease-in-out up}.layui-carousel-arrow{display:none\9;opacity:0;position:absolute;left:10px;top:50%;margin-top:-18px;width:36px;height:36px;line-height:36px;text-align:center;font-size:20px;border:0;border-radius:50%;background-color:rgba(0,0,0,.2);color:#fff;-webkit-transition-duration:.3s;transition-duration:.3s;cursor:pointer}.layui-carousel-arrow[lay-type=add]{left:auto!important;right:10px}.layui-carousel:hover .layui-carousel-arrow[lay-type=add],.layui-carousel[lay-arrow=always] .layui-carousel-arrow[lay-type=add]{right:20px}.layui-carousel[lay-arrow=always] .layui-carousel-arrow{opacity:1;left:20px}.layui-carousel[lay-arrow=none] .layui-carousel-arrow{display:none}.layui-carousel-arrow:hover,.layui-carousel-ind ul:hover{background-color:rgba(0,0,0,.35)}.layui-carousel:hover .layui-carousel-arrow{display:block\9;opacity:1;left:20px}.layui-carousel-ind{position:relative;top:-35px;width:100%;line-height:0!important;text-align:center;font-size:0}.layui-carousel[lay-indicator=outside]{margin-bottom:30px}.layui-carousel[lay-indicator=outside] .layui-carousel-ind{top:10px}.layui-carousel[lay-indicator=outside] .layui-carousel-ind ul{background-color:rgba(0,0,0,.5)}.layui-carousel[lay-indicator=none] .layui-carousel-ind{display:none}.layui-carousel-ind ul{display:inline-block;padding:5px;background-color:rgba(0,0,0,.2);border-radius:10px;-webkit-transition-duration:.3s;transition-duration:.3s}.layui-carousel-ind li{display:inline-block;width:10px;height:10px;margin:0 3px;font-size:14px;background-color:#eee;background-color:rgba(255,255,255,.5);border-radius:50%;cursor:pointer;-webkit-transition-duration:.3s;transition-duration:.3s}.layui-carousel-ind li:hover{background-color:rgba(255,255,255,.7)}.layui-carousel-ind li.layui-this{background-color:#fff}.layui-carousel>[carousel-item]>.layui-carousel-next,.layui-carousel>[carousel-item]>.layui-carousel-prev,.layui-carousel>[carousel-item]>.layui-this{display:block}.layui-carousel>[carousel-item]>.layui-this{left:0}.layui-carousel>[carousel-item]>.layui-carousel-prev{left:-100%}.layui-carousel>[carousel-item]>.layui-carousel-next{left:100%}.layui-carousel>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel>[carousel-item]>.layui-carousel-prev.layui-carousel-right{left:0}.layui-carousel>[carousel-item]>.layui-this.layui-carousel-left{left:-100%}.layui-carousel>[carousel-item]>.layui-this.layui-carousel-right{left:100%}.layui-carousel[lay-anim=updown] .layui-carousel-arrow{left:50%!important;top:20px;margin:0 0 0 -18px}.layui-carousel[lay-anim=updown]>[carousel-item]>*,.layui-carousel[lay-anim=fade]>[carousel-item]>*{left:0!important}.layui-carousel[lay-anim=updown] .layui-carousel-arrow[lay-type=add]{top:auto!important;bottom:20px}.layui-carousel[lay-anim=updown] .layui-carousel-ind{position:absolute;top:50%;right:20px;width:auto;height:auto}.layui-carousel[lay-anim=updown] .layui-carousel-ind ul{padding:3px 5px}.layui-carousel[lay-anim=updown] .layui-carousel-ind li{display:block;margin:6px 0}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this{top:0}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-prev{top:-100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-next{top:100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-prev.layui-carousel-right{top:0}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this.layui-carousel-left{top:-100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this.layui-carousel-right{top:100%}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-next,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-prev{opacity:0}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-prev.layui-carousel-right{opacity:1}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-this.layui-carousel-left,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-this.layui-carousel-right{opacity:0}.layui-fixbar{position:fixed;right:15px;bottom:15px;z-index:999999}.layui-fixbar li{width:50px;height:50px;line-height:50px;margin-bottom:1px;text-align:center;cursor:pointer;font-size:30px;background-color:#9F9F9F;color:#fff;border-radius:2px;opacity:.95}.layui-fixbar li:hover{opacity:.85}.layui-fixbar li:active{opacity:1}.layui-fixbar .layui-fixbar-top{display:none;font-size:40px}body .layui-util-face{border:none;background:0 0}body .layui-util-face .layui-layer-content{padding:0;background-color:#fff;color:#666;box-shadow:none}.layui-util-face .layui-layer-TipsG{display:none}.layui-transfer-active,.layui-transfer-box{display:inline-block;vertical-align:middle}.layui-util-face ul{position:relative;width:372px;padding:10px;border:1px solid #D9D9D9;background-color:#fff;box-shadow:0 0 20px rgba(0,0,0,.2)}.layui-util-face ul li{cursor:pointer;float:left;border:1px solid #e8e8e8;height:22px;width:26px;overflow:hidden;margin:-1px 0 0 -1px;padding:4px 2px;text-align:center}.layui-util-face ul li:hover{position:relative;z-index:2;border:1px solid #eb7350;background:#fff9ec}.layui-code{position:relative;margin:10px 0;padding:15px;line-height:20px;border:1px solid #eee;border-left-width:6px;background-color:#FAFAFA;color:#333;font-family:Courier New;font-size:12px}.layui-transfer-box,.layui-transfer-header,.layui-transfer-search{border-width:0;border-style:solid;border-color:#eee}.layui-transfer-box{position:relative;border-width:1px;width:200px;height:360px;border-radius:2px;background-color:#fff}.layui-transfer-box .layui-form-checkbox{width:100%;margin:0!important}.layui-transfer-header{height:38px;line-height:38px;padding:0 10px;border-bottom-width:1px}.layui-transfer-search{position:relative;padding:10px;border-bottom-width:1px}.layui-transfer-search .layui-input{height:32px;padding-left:30px;font-size:12px}.layui-transfer-search .layui-icon-search{position:absolute;left:20px;top:50%;margin-top:-8px;color:#666}.layui-transfer-active{margin:0 15px}.layui-transfer-active .layui-btn{display:block;margin:0;padding:0 15px;background-color:#5FB878;border-color:#5FB878;color:#fff}.layui-transfer-active .layui-btn-disabled{background-color:#FBFBFB;border-color:#eee;color:#d2d2d2}.layui-transfer-active .layui-btn:first-child{margin-bottom:15px}.layui-transfer-active .layui-btn .layui-icon{margin:0;font-size:14px!important}.layui-transfer-data{padding:5px 0;overflow:auto}.layui-transfer-data li{height:32px;line-height:32px;padding:0 10px}.layui-transfer-data li:hover{background-color:#F6F6F6;transition:.5s all}.layui-transfer-data .layui-none{padding:15px 10px;text-align:center;color:#999}.layui-rate,.layui-rate *{display:inline-block;vertical-align:middle}.layui-rate{padding:10px 5px 10px 0;font-size:0}.layui-rate li i.layui-icon{font-size:20px;color:#FFB800;margin-right:5px;transition:all .3s;-webkit-transition:all .3s}.layui-rate li i:hover{cursor:pointer;transform:scale(1.12);-webkit-transform:scale(1.12)}.layui-rate[readonly] li i:hover{cursor:default;transform:scale(1)}.layui-colorpicker{width:26px;height:26px;border:1px solid #eee;padding:5px;border-radius:2px;line-height:24px;display:inline-block;cursor:pointer;transition:all .3s;-webkit-transition:all .3s}.layui-colorpicker:hover{border-color:#d2d2d2}.layui-colorpicker.layui-colorpicker-lg{width:34px;height:34px;line-height:32px}.layui-colorpicker.layui-colorpicker-sm{width:24px;height:24px;line-height:22px}.layui-colorpicker.layui-colorpicker-xs{width:22px;height:22px;line-height:20px}.layui-colorpicker-trigger-bgcolor{display:block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);border-radius:2px}.layui-colorpicker-trigger-span{display:block;height:100%;box-sizing:border-box;border:1px solid rgba(0,0,0,.15);border-radius:2px;text-align:center}.layui-colorpicker-trigger-i{display:inline-block;color:#FFF;font-size:12px}.layui-colorpicker-trigger-i.layui-icon-close{color:#999}.layui-colorpicker-main{position:absolute;left:-999999px;top:-999999px;z-index:66666666;width:280px;margin:5px 0;padding:7px;background:#FFF;border:1px solid #d2d2d2;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.12)}.layui-colorpicker-main-wrapper{height:180px;position:relative}.layui-colorpicker-basis{width:260px;height:100%;position:relative}.layui-colorpicker-basis-white{width:100%;height:100%;position:absolute;top:0;left:0;background:linear-gradient(90deg,#FFF,hsla(0,0%,100%,0))}.layui-colorpicker-basis-black{width:100%;height:100%;position:absolute;top:0;left:0;background:linear-gradient(0deg,#000,transparent)}.layui-colorpicker-basis-cursor{width:10px;height:10px;border:1px solid #FFF;border-radius:50%;position:absolute;top:-3px;right:-3px;cursor:pointer}.layui-colorpicker-side{position:absolute;top:0;right:0;width:12px;height:100%;background:linear-gradient(red,#FF0,#0F0,#0FF,#00F,#F0F,red)}.layui-colorpicker-side-slider{width:100%;height:5px;box-shadow:0 0 1px #888;background:#FFF;border-radius:1px;border:1px solid #f0f0f0;cursor:pointer;position:absolute;left:0}.layui-colorpicker-main-alpha{display:none;height:12px;margin-top:7px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.layui-colorpicker-alpha-bgcolor{height:100%;position:relative}.layui-colorpicker-alpha-slider{width:5px;height:100%;box-shadow:0 0 1px #888;background:#FFF;border-radius:1px;border:1px solid #f0f0f0;cursor:pointer;position:absolute;top:0}.layui-colorpicker-main-pre{padding-top:7px;font-size:0}.layui-colorpicker-pre{width:20px;height:20px;border-radius:2px;display:inline-block;margin-left:6px;margin-bottom:7px;cursor:pointer}.layui-colorpicker-pre:nth-child(11n+1){margin-left:0}.layui-colorpicker-pre-isalpha{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.layui-colorpicker-pre.layui-this{box-shadow:0 0 3px 2px rgba(0,0,0,.15)}.layui-colorpicker-pre>div{height:100%;border-radius:2px}.layui-colorpicker-main-input{text-align:right;padding-top:7px}.layui-colorpicker-main-input .layui-btn-container .layui-btn{margin:0 0 0 10px}.layui-colorpicker-main-input div.layui-inline{float:left;margin-right:10px;font-size:14px}.layui-colorpicker-main-input input.layui-input{width:150px;height:30px;color:#666}.layui-slider{height:4px;background:#eee;border-radius:3px;position:relative;cursor:pointer}.layui-slider-bar{border-radius:3px;position:absolute;height:100%}.layui-slider-step{position:absolute;top:0;width:4px;height:4px;border-radius:50%;background:#FFF;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.layui-slider-wrap{width:36px;height:36px;position:absolute;top:-16px;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:10;text-align:center}.layui-slider-wrap-btn{width:12px;height:12px;border-radius:50%;background:#FFF;display:inline-block;vertical-align:middle;cursor:pointer;transition:.3s}.layui-slider-wrap:after{content:"";height:100%;display:inline-block;vertical-align:middle}.layui-slider-wrap-btn.layui-slider-hover,.layui-slider-wrap-btn:hover{transform:scale(1.2)}.layui-slider-wrap-btn.layui-disabled:hover{transform:scale(1)!important}.layui-slider-tips{position:absolute;top:-42px;z-index:66666666;white-space:nowrap;display:none;-webkit-transform:translateX(-50%);transform:translateX(-50%);color:#FFF;background:#000;border-radius:3px;height:25px;line-height:25px;padding:0 10px}.layui-slider-tips:after{content:"";position:absolute;bottom:-12px;left:50%;margin-left:-6px;width:0;height:0;border-width:6px;border-style:solid;border-color:#000 transparent transparent}.layui-slider-input{width:70px;height:32px;border:1px solid #eee;border-radius:3px;font-size:16px;line-height:32px;position:absolute;right:0;top:-14px}.layui-slider-input-btn{position:absolute;top:0;right:0;width:20px;height:100%;border-left:1px solid #eee}.layui-slider-input-btn i{cursor:pointer;position:absolute;right:0;bottom:0;width:20px;height:50%;font-size:12px;line-height:16px;text-align:center;color:#999}.layui-slider-input-btn i:first-child{top:0;border-bottom:1px solid #eee}.layui-slider-input-txt{height:100%;font-size:14px}.layui-slider-input-txt input{height:100%;border:none}.layui-slider-input-btn i:hover{color:#009688}.layui-slider-vertical{width:4px;margin-left:33px}.layui-slider-vertical .layui-slider-bar{width:4px}.layui-slider-vertical .layui-slider-step{top:auto;left:0;-webkit-transform:translateY(50%);transform:translateY(50%)}.layui-slider-vertical .layui-slider-wrap{top:auto;left:-16px;-webkit-transform:translateY(50%);transform:translateY(50%)}.layui-slider-vertical .layui-slider-tips{top:auto;left:2px}@media \0screen{.layui-slider-wrap-btn{margin-left:-20px}.layui-slider-vertical .layui-slider-wrap-btn{margin-left:0;margin-bottom:-20px}.layui-slider-vertical .layui-slider-tips{margin-left:-8px}.layui-slider>span{margin-left:8px}}.layui-tree{line-height:22px}.layui-tree .layui-form-checkbox{margin:0!important}.layui-tree-set{width:100%;position:relative}.layui-tree-pack{display:none;padding-left:20px;position:relative}.layui-tree-iconClick,.layui-tree-main{display:inline-block;vertical-align:middle}.layui-tree-line .layui-tree-pack{padding-left:27px}.layui-tree-line .layui-tree-set .layui-tree-set:after{content:"";position:absolute;top:14px;left:-9px;width:17px;height:0;border-top:1px dotted #c0c4cc}.layui-tree-entry{position:relative;padding:3px 0;height:20px;white-space:nowrap}.layui-tree-entry:hover{background-color:#eee}.layui-tree-line .layui-tree-entry:hover{background-color:rgba(0,0,0,0)}.layui-tree-line .layui-tree-entry:hover .layui-tree-txt{color:#999;text-decoration:underline;transition:.3s}.layui-tree-main{cursor:pointer;padding-right:10px}.layui-tree-line .layui-tree-set:before{content:"";position:absolute;top:0;left:-9px;width:0;height:100%;border-left:1px dotted #c0c4cc}.layui-tree-line .layui-tree-set.layui-tree-setLineShort:before{height:13px}.layui-tree-line .layui-tree-set.layui-tree-setHide:before{height:0}.layui-tree-iconClick{position:relative;height:20px;line-height:20px;margin:0 10px;color:#c0c4cc}.layui-tree-icon{height:12px;line-height:12px;width:12px;text-align:center;border:1px solid #c0c4cc}.layui-tree-iconClick .layui-icon{font-size:18px}.layui-tree-icon .layui-icon{font-size:12px;color:#666}.layui-tree-iconArrow{padding:0 5px}.layui-tree-iconArrow:after{content:"";position:absolute;left:4px;top:3px;z-index:100;width:0;height:0;border-width:5px;border-style:solid;border-color:transparent transparent transparent #c0c4cc;transition:.5s}.layui-tree-btnGroup,.layui-tree-editInput{position:relative;vertical-align:middle;display:inline-block}.layui-tree-spread>.layui-tree-entry>.layui-tree-iconClick>.layui-tree-iconArrow:after{transform:rotate(90deg) translate(3px,4px)}.layui-tree-txt{display:inline-block;vertical-align:middle;color:#555}.layui-tree-search{margin-bottom:15px;color:#666}.layui-tree-btnGroup .layui-icon{display:inline-block;vertical-align:middle;padding:0 2px;cursor:pointer}.layui-tree-btnGroup .layui-icon:hover{color:#999;transition:.3s}.layui-tree-entry:hover .layui-tree-btnGroup{visibility:visible}.layui-tree-editInput{height:20px;line-height:20px;padding:0 3px;border:none;background-color:rgba(0,0,0,.05)}.layui-tree-emptyText{text-align:center;color:#999}.layui-anim{-webkit-animation-duration:.3s;-webkit-animation-fill-mode:both;animation-duration:.3s;animation-fill-mode:both}.layui-anim.layui-icon{display:inline-block}.layui-anim-loop{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.layui-trans,.layui-trans a{transition:all .2s;-webkit-transition:all .2s}@-webkit-keyframes layui-rotate{from{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(360deg)}}@keyframes layui-rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}.layui-anim-rotate{-webkit-animation-name:layui-rotate;animation-name:layui-rotate;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes layui-up{from{-webkit-transform:translate3d(0,100%,0);opacity:.3}to{-webkit-transform:translate3d(0,0,0);opacity:1}}@keyframes layui-up{from{transform:translate3d(0,100%,0);opacity:.3}to{transform:translate3d(0,0,0);opacity:1}}.layui-anim-up{-webkit-animation-name:layui-up;animation-name:layui-up}@-webkit-keyframes layui-upbit{from{-webkit-transform:translate3d(0,15px,0);opacity:.3}to{-webkit-transform:translate3d(0,0,0);opacity:1}}@keyframes layui-upbit{from{transform:translate3d(0,15px,0);opacity:.3}to{transform:translate3d(0,0,0);opacity:1}}.layui-anim-upbit{-webkit-animation-name:layui-upbit;animation-name:layui-upbit}@keyframes layui-down{0%{opacity:.3;transform:translate3d(0,-100%,0)}100%{opacity:1;transform:translate3d(0,0,0)}}.layui-anim-down{animation-name:layui-down}@keyframes layui-downbit{0%{opacity:.3;transform:translate3d(0,-5px,0)}100%{opacity:1;transform:translate3d(0,0,0)}}.layui-anim-downbit{animation-name:layui-downbit}@-webkit-keyframes layui-scale{0%{opacity:.3;-webkit-transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1)}}@keyframes layui-scale{0%{opacity:.3;-ms-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-ms-transform:scale(1);transform:scale(1)}}.layui-anim-scale{-webkit-animation-name:layui-scale;animation-name:layui-scale}@-webkit-keyframes layui-scale-spring{0%{opacity:.5;-webkit-transform:scale(.5)}80%{opacity:.8;-webkit-transform:scale(1.1)}100%{opacity:1;-webkit-transform:scale(1)}}@keyframes layui-scale-spring{0%{opacity:.5;transform:scale(.5)}80%{opacity:.8;transform:scale(1.1)}100%{opacity:1;transform:scale(1)}}.layui-anim-scaleSpring{-webkit-animation-name:layui-scale-spring;animation-name:layui-scale-spring}@keyframes layui-scalesmall{0%{opacity:.3;transform:scale(1.5)}100%{opacity:1;transform:scale(1)}}.layui-anim-scalesmall{animation-name:layui-scalesmall}@keyframes layui-scalesmall-spring{0%{opacity:.3;transform:scale(1.5)}80%{opacity:.8;transform:scale(.9)}100%{opacity:1;transform:scale(1)}}.layui-anim-scalesmall-spring{animation-name:layui-scalesmall-spring}@-webkit-keyframes layui-fadein{0%{opacity:0}100%{opacity:1}}@keyframes layui-fadein{0%{opacity:0}100%{opacity:1}}.layui-anim-fadein{-webkit-animation-name:layui-fadein;animation-name:layui-fadein}@-webkit-keyframes layui-fadeout{0%{opacity:1}100%{opacity:0}}@keyframes layui-fadeout{0%{opacity:1}100%{opacity:0}}.layui-anim-fadeout{-webkit-animation-name:layui-fadeout;animation-name:layui-fadeout}
\ No newline at end of file
diff --git a/web-v2-res/static/css/pdf_viewer.min.css b/web-v2-res/static/css/pdf_viewer.min.css
new file mode 100644
index 0000000..19db9ff
--- /dev/null
+++ b/web-v2-res/static/css/pdf_viewer.min.css
@@ -0,0 +1 @@
+:root{--highlight-bg-color:rgba(180, 0, 170, 1);--highlight-selected-bg-color:rgba(0, 100, 0, 1)}@media screen and (forced-colors:active){:root{--highlight-bg-color:Highlight;--highlight-selected-bg-color:ButtonText}}.textLayer{position:absolute;text-align:initial;inset:0;overflow:hidden;opacity:.25;line-height:1;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;z-index:2}.textLayer br,.textLayer span{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0 0}.textLayer span.markedContent{top:0;height:0}.textLayer .highlight{margin:-1px;padding:1px;background-color:var(--highlight-bg-color);border-radius:4px}.textLayer .highlight.appended{position:initial}.textLayer .highlight.begin{border-radius:4px 0 0 4px}.textLayer .highlight.end{border-radius:0 4px 4px 0}.textLayer .highlight.middle{border-radius:0}.textLayer .highlight.selected{background-color:var(--highlight-selected-bg-color)}.textLayer ::-moz-selection{background:#00f;background:AccentColor}.textLayer ::selection{background:#00f;background:AccentColor}.textLayer br::-moz-selection{background:0 0}.textLayer br::selection{background:0 0}.textLayer .endOfContent{display:block;position:absolute;inset:100% 0 0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none}.textLayer .endOfContent.active{top:0}:root{--annotation-unfocused-field-background:url("data:image/svg+xml;charset=UTF-8,");--input-focus-border-color:Highlight;--input-focus-outline:1px solid Canvas;--input-unfocused-border-color:transparent;--input-disabled-border-color:transparent;--input-hover-border-color:black;--link-outline:none}@media screen and (forced-colors:active){:root{--input-focus-border-color:CanvasText;--input-unfocused-border-color:ActiveText;--input-disabled-border-color:GrayText;--input-hover-border-color:Highlight;--link-outline:1.5px solid LinkText}.annotationLayer .buttonWidgetAnnotation.checkBox input:required,.annotationLayer .buttonWidgetAnnotation.radioButton input:required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .textWidgetAnnotation input:required,.annotationLayer .textWidgetAnnotation textarea:required{outline:1.5px solid selectedItem}.annotationLayer .linkAnnotation:hover{-webkit-backdrop-filter:invert(100%);backdrop-filter:invert(100%)}}.annotationLayer{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0;z-index:3}.annotationLayer[data-main-rotation="90"] .norotate{transform:rotate(270deg) translateX(-100%)}.annotationLayer[data-main-rotation="180"] .norotate{transform:rotate(180deg) translate(-100%,-100%)}.annotationLayer[data-main-rotation="270"] .norotate{transform:rotate(90deg) translateY(-100%)}.annotationLayer canvas{position:absolute;width:100%;height:100%}.annotationLayer section{position:absolute;text-align:initial;pointer-events:auto;box-sizing:border-box;transform-origin:0 0}.annotationLayer .linkAnnotation{outline:var(--link-outline)}.annotationLayer .buttonWidgetAnnotation.pushButton>a,.annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}.annotationLayer .buttonWidgetAnnotation.pushButton>a:hover,.annotationLayer .linkAnnotation>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}.annotationLayer .textAnnotation img{position:absolute;cursor:pointer;width:100%;height:100%;top:0;left:0}.annotationLayer .buttonWidgetAnnotation.checkBox input,.annotationLayer .buttonWidgetAnnotation.radioButton input,.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .textWidgetAnnotation input,.annotationLayer .textWidgetAnnotation textarea{background-image:var(--annotation-unfocused-field-background);border:2px solid var(--input-unfocused-border-color);box-sizing:border-box;font:calc(9px * var(--scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%}.annotationLayer .buttonWidgetAnnotation.checkBox input:required,.annotationLayer .buttonWidgetAnnotation.radioButton input:required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .textWidgetAnnotation input:required,.annotationLayer .textWidgetAnnotation textarea:required{outline:1.5px solid red}.annotationLayer .choiceWidgetAnnotation select option{padding:0}.annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.annotationLayer .textWidgetAnnotation textarea{resize:none}.annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],.annotationLayer .buttonWidgetAnnotation.radioButton input[disabled],.annotationLayer .choiceWidgetAnnotation select[disabled],.annotationLayer .textWidgetAnnotation input[disabled],.annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:2px solid var(--input-disabled-border-color);cursor:not-allowed}.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,.annotationLayer .buttonWidgetAnnotation.radioButton input:hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .textWidgetAnnotation input:hover,.annotationLayer .textWidgetAnnotation textarea:hover{border:2px solid var(--input-hover-border-color)}.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .textWidgetAnnotation input:hover,.annotationLayer .textWidgetAnnotation textarea:hover{border-radius:2px}.annotationLayer .choiceWidgetAnnotation select:focus,.annotationLayer .textWidgetAnnotation input:focus,.annotationLayer .textWidgetAnnotation textarea:focus{background:0 0;border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.checkBox :focus,.annotationLayer .buttonWidgetAnnotation.radioButton :focus{background-image:none;background-color:transparent}.annotationLayer .buttonWidgetAnnotation.checkBox :focus{border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.radioButton :focus{border:2px solid var(--input-focus-border-color);outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:CanvasText;content:"";display:block;position:absolute}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}.annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}.annotationLayer .buttonWidgetAnnotation.checkBox input,.annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none}.annotationLayer .popupTriggerArea{height:100%;width:100%}.annotationLayer .fileAttachmentAnnotation .popupTriggerArea{position:absolute}.annotationLayer .popupWrapper{position:absolute;font-size:calc(9px * var(--scale-factor));width:100%;min-width:calc(180px * var(--scale-factor));pointer-events:none}.annotationLayer .popup{position:absolute;max-width:calc(180px * var(--scale-factor));background-color:#ff9;box-shadow:0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor)) #888;border-radius:calc(2px * var(--scale-factor));padding:calc(6px * var(--scale-factor));margin-left:calc(5px * var(--scale-factor));cursor:pointer;font:message-box;white-space:normal;word-wrap:break-word;pointer-events:auto}.annotationLayer .popup>*{font-size:calc(9px * var(--scale-factor))}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popupDate{display:inline-block;margin-left:calc(5px * var(--scale-factor))}.annotationLayer .popupContent{border-top:1px solid #333;margin-top:calc(2px * var(--scale-factor));padding-top:calc(2px * var(--scale-factor))}.annotationLayer .richText>*{white-space:pre-wrap;font-size:calc(9px * var(--scale-factor))}.annotationLayer .caretAnnotation,.annotationLayer .circleAnnotation svg ellipse,.annotationLayer .fileAttachmentAnnotation,.annotationLayer .freeTextAnnotation,.annotationLayer .highlightAnnotation,.annotationLayer .inkAnnotation svg polyline,.annotationLayer .lineAnnotation svg line,.annotationLayer .polygonAnnotation svg polygon,.annotationLayer .polylineAnnotation svg polyline,.annotationLayer .squareAnnotation svg rect,.annotationLayer .squigglyAnnotation,.annotationLayer .stampAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .underlineAnnotation{cursor:pointer}.annotationLayer section svg{position:absolute;width:100%;height:100%;top:0;left:0}.annotationLayer .annotationTextContent{position:absolute;width:100%;height:100%;opacity:0;color:transparent;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}.annotationLayer .annotationTextContent span{width:100%;display:inline-block}:root{--xfa-unfocused-field-background:url("data:image/svg+xml;charset=UTF-8,");--xfa-focus-outline:auto}@media screen and (forced-colors:active){:root{--xfa-focus-outline:2px solid CanvasText}.xfaLayer :required{outline:1.5px solid selectedItem}}.xfaLayer{background-color:transparent}.xfaLayer .highlight{margin:-1px;padding:1px;background-color:#efcbed;border-radius:4px}.xfaLayer .highlight.appended{position:initial}.xfaLayer .highlight.begin{border-radius:4px 0 0 4px}.xfaLayer .highlight.end{border-radius:0 4px 4px 0}.xfaLayer .highlight.middle{border-radius:0}.xfaLayer .highlight.selected{background-color:#cbdfcb}.xfaPage{overflow:hidden;position:relative}.xfaContentarea{position:absolute}.xfaPrintOnly{display:none}.xfaLayer{position:absolute;text-align:initial;top:0;left:0;transform-origin:0 0;line-height:1.2}.xfaLayer *{color:inherit;font:inherit;font-style:inherit;font-weight:inherit;font-kerning:inherit;letter-spacing:-.01px;text-align:inherit;text-decoration:inherit;box-sizing:border-box;background-color:transparent;padding:0;margin:0;pointer-events:auto;line-height:inherit}.xfaLayer :required{outline:1.5px solid red}.xfaLayer div{pointer-events:none}.xfaLayer svg{pointer-events:none}.xfaLayer svg *{pointer-events:none}.xfaLayer a{color:#00f}.xfaRich li{margin-left:3em}.xfaFont{color:#000;font-weight:400;font-kerning:none;font-size:10px;font-style:normal;letter-spacing:0;text-decoration:none;vertical-align:0}.xfaCaption{overflow:hidden;flex:0 0 auto}.xfaCaptionForCheckButton{overflow:hidden;flex:1 1 auto}.xfaLabel{height:100%;width:100%}.xfaLeft{display:flex;flex-direction:row;align-items:center}.xfaRight{display:flex;flex-direction:row-reverse;align-items:center}.xfaLeft>.xfaCaption,.xfaLeft>.xfaCaptionForCheckButton,.xfaRight>.xfaCaption,.xfaRight>.xfaCaptionForCheckButton{max-height:100%}.xfaTop{display:flex;flex-direction:column;align-items:flex-start}.xfaBottom{display:flex;flex-direction:column-reverse;align-items:flex-start}.xfaBottom>.xfaCaption,.xfaBottom>.xfaCaptionForCheckButton,.xfaTop>.xfaCaption,.xfaTop>.xfaCaptionForCheckButton{width:100%}.xfaBorder{background-color:transparent;position:absolute;pointer-events:none}.xfaWrapped{width:100%;height:100%}.xfaSelect:focus,.xfaTextfield:focus{background-image:none;background-color:transparent;outline:var(--xfa-focus-outline);outline-offset:-1px}.xfaCheckbox:focus,.xfaRadio:focus{outline:var(--xfa-focus-outline)}.xfaSelect,.xfaTextfield{height:100%;width:100%;flex:1 1 auto;border:none;resize:none;background-image:var(--xfa-unfocused-field-background)}.xfaSelect{padding-inline:2px}.xfaBottom>.xfaSelect,.xfaBottom>.xfaTextfield,.xfaTop>.xfaSelect,.xfaTop>.xfaTextfield{flex:0 1 auto}.xfaButton{cursor:pointer;width:100%;height:100%;border:none;text-align:center}.xfaLink{width:100%;height:100%;position:absolute;top:0;left:0}.xfaCheckbox,.xfaRadio{width:100%;height:100%;flex:0 0 auto;border:none}.xfaRich{white-space:pre-wrap;width:100%;height:100%}.xfaImage{-o-object-position:left top;object-position:left top;-o-object-fit:contain;object-fit:contain;width:100%;height:100%}.xfaLrTb,.xfaRlTb,.xfaTb{display:flex;flex-direction:column;align-items:stretch}.xfaLr{display:flex;flex-direction:row;align-items:stretch}.xfaRl{display:flex;flex-direction:row-reverse;align-items:stretch}.xfaTb>div{justify-content:left}.xfaPosition{position:relative}.xfaArea{position:relative}.xfaValignMiddle{display:flex;align-items:center}.xfaTable{display:flex;flex-direction:column;align-items:stretch}.xfaTable .xfaRow{display:flex;flex-direction:row;align-items:stretch}.xfaTable .xfaRlRow{display:flex;flex-direction:row-reverse;align-items:stretch;flex:1}.xfaTable .xfaRlRow>div{flex:1}.xfaDisabled input,.xfaDisabled textarea,.xfaNonInteractive input,.xfaNonInteractive textarea,.xfaReadOnly input,.xfaReadOnly textarea{background:initial}@media print{.xfaSelect,.xfaTextfield{background:0 0}.xfaSelect{-webkit-appearance:none;-moz-appearance:none;appearance:none;text-indent:1px;text-overflow:""}}:root{--focus-outline:solid 2px blue;--hover-outline:dashed 2px blue;--freetext-line-height:1.35;--freetext-padding:2px;--editorFreeText-editing-cursor:text;--editorInk-editing-cursor:pointer}@media screen and (forced-colors:active){:root{--focus-outline:solid 3px ButtonText;--hover-outline:dashed 3px ButtonText}}[data-editor-rotation="90"]{transform:rotate(90deg)}[data-editor-rotation="180"]{transform:rotate(180deg)}[data-editor-rotation="270"]{transform:rotate(270deg)}.annotationEditorLayer{background:0 0;position:absolute;top:0;left:0;font-size:calc(100px * var(--scale-factor));transform-origin:0 0;cursor:auto;z-index:4}.annotationEditorLayer.freeTextEditing{cursor:var(--editorFreeText-editing-cursor)}.annotationEditorLayer.inkEditing{cursor:var(--editorInk-editing-cursor)}.annotationEditorLayer :is(.freeTextEditor,.inkEditor)[draggable=true]{cursor:move}.annotationEditorLayer .selectedEditor{outline:var(--focus-outline);resize:none}.annotationEditorLayer .freeTextEditor{position:absolute;background:0 0;border-radius:3px;padding:calc(var(--freetext-padding) * var(--scale-factor));resize:none;width:auto;height:auto;z-index:1;transform-origin:0 0;touch-action:none;cursor:auto}.annotationEditorLayer .freeTextEditor .internal{background:0 0;border:none;top:0;left:0;overflow:visible;white-space:nowrap;resize:none;font:10px sans-serif;line-height:var(--freetext-line-height)}.annotationEditorLayer .freeTextEditor .overlay{position:absolute;display:none;background:0 0;top:0;left:0;width:100%;height:100%}.annotationEditorLayer .freeTextEditor .overlay.enabled{display:block}.annotationEditorLayer .freeTextEditor .internal:empty::before{content:attr(default-content);color:gray}.annotationEditorLayer .freeTextEditor .internal:focus{outline:0}.annotationEditorLayer .inkEditor.disabled{resize:none}.annotationEditorLayer .inkEditor.disabled.selectedEditor{resize:horizontal}.annotationEditorLayer .freeTextEditor:hover:not(.selectedEditor),.annotationEditorLayer .inkEditor:hover:not(.selectedEditor){outline:var(--hover-outline)}.annotationEditorLayer .inkEditor{position:absolute;background:0 0;border-radius:3px;overflow:auto;width:100%;height:100%;z-index:1;transform-origin:0 0;cursor:auto}.annotationEditorLayer .inkEditor.editing{resize:none;cursor:inherit}.annotationEditorLayer .inkEditor .inkEditorCanvas{position:absolute;top:0;left:0;width:100%;height:100%;touch-action:none}:root{--viewer-container-height:0;--pdfViewer-padding-bottom:0;--page-margin:1px auto -8px;--page-border:9px solid transparent;--spreadHorizontalWrapped-margin-LR:-3.5px;--loading-icon-delay:400ms}@media screen and (forced-colors:active){:root{--pdfViewer-padding-bottom:9px;--page-margin:8px auto -1px;--page-border:1px solid CanvasText;--spreadHorizontalWrapped-margin-LR:3.5px}}[data-main-rotation="90"]{transform:rotate(90deg) translateY(-100%)}[data-main-rotation="180"]{transform:rotate(180deg) translate(-100%,-100%)}[data-main-rotation="270"]{transform:rotate(270deg) translateX(-100%)}.pdfViewer{--scale-factor:1;padding-bottom:var(--pdfViewer-padding-bottom)}.pdfViewer .canvasWrapper{overflow:hidden;width:100%;height:100%;z-index:1}.pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:var(--page-margin);position:relative;overflow:visible;border:var(--page-border);background-clip:content-box;background-color:#fff}.pdfViewer .dummyPage{position:relative;width:0;height:var(--viewer-container-height)}.pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}.pdfViewer.singlePageView{display:inline-block}.pdfViewer.singlePageView .page{margin:0;border:none}.pdfViewer.scrollHorizontal,.pdfViewer.scrollWrapped,.spread{margin-inline:3.5px;text-align:center}.pdfViewer.scrollHorizontal,.spread{white-space:nowrap}.pdfViewer.removePageBorders,.pdfViewer.scrollHorizontal .spread,.pdfViewer.scrollWrapped .spread{margin-inline:0}.pdfViewer.scrollHorizontal .page,.pdfViewer.scrollHorizontal .spread,.pdfViewer.scrollWrapped .page,.pdfViewer.scrollWrapped .spread,.spread .dummyPage,.spread .page{display:inline-block;vertical-align:middle}.pdfViewer.scrollHorizontal .page,.pdfViewer.scrollWrapped .page,.spread .page{margin-inline:var(--spreadHorizontalWrapped-margin-LR)}.pdfViewer.removePageBorders .spread .page,.pdfViewer.removePageBorders.scrollHorizontal .page,.pdfViewer.removePageBorders.scrollWrapped .page{margin-inline:5px}.pdfViewer .page canvas{margin:0;display:block}.pdfViewer .page canvas .structTree{contain:strict}.pdfViewer .page canvas[hidden]{display:none}.pdfViewer .page canvas[zooming]{width:100%;height:100%}.pdfViewer .page.loadingIcon:after{position:absolute;top:0;left:0;content:"";width:100%;height:100%;background:url(images/loading-icon.gif) center no-repeat;display:none;transition-property:display;transition-delay:var(--loading-icon-delay);z-index:5;contain:strict}.pdfViewer .page.loading:after{display:block}.pdfViewer .page:not(.loading):after{transition-property:none;display:none}.pdfViewer.enablePermissions .textLayer span{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important;cursor:not-allowed}.pdfPresentationMode .pdfViewer{padding-bottom:0}.pdfPresentationMode .spread{margin:0}.pdfPresentationMode .pdfViewer .page{margin:0 auto;border:2px solid transparent}
\ No newline at end of file
diff --git a/web-v2-res/static/css/swiper-bundle.min.css b/web-v2-res/static/css/swiper-bundle.min.css
new file mode 100644
index 0000000..fde322a
--- /dev/null
+++ b/web-v2-res/static/css/swiper-bundle.min.css
@@ -0,0 +1,13 @@
+/**
+ * Swiper 11.0.3
+ * Most modern mobile touch slider and framework with hardware accelerated transitions
+ * https://swiperjs.com
+ *
+ * Copyright 2014-2023 Vladimir Kharlampidi
+ *
+ * Released under the MIT License
+ *
+ * Released on: October 26, 2023
+ */
+
+@font-face{font-family:swiper-icons;src:url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{width:100%;height:100%;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-next svg,.swiper-rtl .swiper-button-prev svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-lock{display:none}.swiper-button-next:after,.swiper-button-prev:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:'prev'}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:'next'}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;touch-action:none;background:var(--swiper-scrollbar-bg-color,rgba(0,0,0,.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset,1%);bottom:var(--swiper-scrollbar-bottom,4px);top:var(--swiper-scrollbar-top,auto);z-index:50;height:var(--swiper-scrollbar-size,4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);z-index:50;width:var(--swiper-scrollbar-size,4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color,rgba(0,0,0,.5));border-radius:var(--swiper-scrollbar-border-radius,10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;object-fit:contain}.swiper-slide-zoomed{cursor:move;touch-action:none}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode .swiper-slide{transition-timing-function:ease-out}.swiper-fade .swiper-slide{pointer-events:none;transition-property:opacity}.swiper-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active{pointer-events:auto}.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl .swiper-slide{transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-cube .swiper-slide-next+.swiper-slide{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-right,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-flip{overflow:visible}.swiper-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-flip .swiper-slide-active,.swiper-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-bottom,.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-left,.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-right,.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-creative .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards .swiper-slide{transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}
\ No newline at end of file
diff --git a/web-v2-res/static/js/adapter.js b/web-v2-res/static/js/adapter.js
new file mode 100644
index 0000000..ce2d6a8
--- /dev/null
+++ b/web-v2-res/static/js/adapter.js
@@ -0,0 +1,3364 @@
+(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.adapter = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i 0 && arguments[0] !== undefined ? arguments[0] : {},
+ window = _ref.window;
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
+ shimChrome: true,
+ shimFirefox: true,
+ shimSafari: true
+ };
+ // Utils.
+ var logging = utils.log;
+ var browserDetails = utils.detectBrowser(window);
+ var adapter = {
+ browserDetails: browserDetails,
+ commonShim: commonShim,
+ extractVersion: utils.extractVersion,
+ disableLog: utils.disableLog,
+ disableWarnings: utils.disableWarnings,
+ // Expose sdp as a convenience. For production apps include directly.
+ sdp: sdp
+ };
+
+ // Shim browser if found.
+ switch (browserDetails.browser) {
+ case 'chrome':
+ if (!chromeShim || !chromeShim.shimPeerConnection || !options.shimChrome) {
+ logging('Chrome shim is not included in this adapter release.');
+ return adapter;
+ }
+ if (browserDetails.version === null) {
+ logging('Chrome shim can not determine version, not shimming.');
+ return adapter;
+ }
+ logging('adapter.js shimming chrome.');
+ // Export to the adapter global object visible in the browser.
+ adapter.browserShim = chromeShim;
+
+ // Must be called before shimPeerConnection.
+ commonShim.shimAddIceCandidateNullOrEmpty(window, browserDetails);
+ commonShim.shimParameterlessSetLocalDescription(window, browserDetails);
+ chromeShim.shimGetUserMedia(window, browserDetails);
+ chromeShim.shimMediaStream(window, browserDetails);
+ chromeShim.shimPeerConnection(window, browserDetails);
+ chromeShim.shimOnTrack(window, browserDetails);
+ chromeShim.shimAddTrackRemoveTrack(window, browserDetails);
+ chromeShim.shimGetSendersWithDtmf(window, browserDetails);
+ chromeShim.shimGetStats(window, browserDetails);
+ chromeShim.shimSenderReceiverGetStats(window, browserDetails);
+ chromeShim.fixNegotiationNeeded(window, browserDetails);
+ commonShim.shimRTCIceCandidate(window, browserDetails);
+ commonShim.shimRTCIceCandidateRelayProtocol(window, browserDetails);
+ commonShim.shimConnectionState(window, browserDetails);
+ commonShim.shimMaxMessageSize(window, browserDetails);
+ commonShim.shimSendThrowTypeError(window, browserDetails);
+ commonShim.removeExtmapAllowMixed(window, browserDetails);
+ break;
+ case 'firefox':
+ if (!firefoxShim || !firefoxShim.shimPeerConnection || !options.shimFirefox) {
+ logging('Firefox shim is not included in this adapter release.');
+ return adapter;
+ }
+ logging('adapter.js shimming firefox.');
+ // Export to the adapter global object visible in the browser.
+ adapter.browserShim = firefoxShim;
+
+ // Must be called before shimPeerConnection.
+ commonShim.shimAddIceCandidateNullOrEmpty(window, browserDetails);
+ commonShim.shimParameterlessSetLocalDescription(window, browserDetails);
+ firefoxShim.shimGetUserMedia(window, browserDetails);
+ firefoxShim.shimPeerConnection(window, browserDetails);
+ firefoxShim.shimOnTrack(window, browserDetails);
+ firefoxShim.shimRemoveStream(window, browserDetails);
+ firefoxShim.shimSenderGetStats(window, browserDetails);
+ firefoxShim.shimReceiverGetStats(window, browserDetails);
+ firefoxShim.shimRTCDataChannel(window, browserDetails);
+ firefoxShim.shimAddTransceiver(window, browserDetails);
+ firefoxShim.shimGetParameters(window, browserDetails);
+ firefoxShim.shimCreateOffer(window, browserDetails);
+ firefoxShim.shimCreateAnswer(window, browserDetails);
+ commonShim.shimRTCIceCandidate(window, browserDetails);
+ commonShim.shimConnectionState(window, browserDetails);
+ commonShim.shimMaxMessageSize(window, browserDetails);
+ commonShim.shimSendThrowTypeError(window, browserDetails);
+ break;
+ case 'safari':
+ if (!safariShim || !options.shimSafari) {
+ logging('Safari shim is not included in this adapter release.');
+ return adapter;
+ }
+ logging('adapter.js shimming safari.');
+ // Export to the adapter global object visible in the browser.
+ adapter.browserShim = safariShim;
+
+ // Must be called before shimCallbackAPI.
+ commonShim.shimAddIceCandidateNullOrEmpty(window, browserDetails);
+ commonShim.shimParameterlessSetLocalDescription(window, browserDetails);
+ safariShim.shimRTCIceServerUrls(window, browserDetails);
+ safariShim.shimCreateOfferLegacy(window, browserDetails);
+ safariShim.shimCallbacksAPI(window, browserDetails);
+ safariShim.shimLocalStreamsAPI(window, browserDetails);
+ safariShim.shimRemoteStreamsAPI(window, browserDetails);
+ safariShim.shimTrackEventTransceiver(window, browserDetails);
+ safariShim.shimGetUserMedia(window, browserDetails);
+ safariShim.shimAudioContext(window, browserDetails);
+ commonShim.shimRTCIceCandidate(window, browserDetails);
+ commonShim.shimRTCIceCandidateRelayProtocol(window, browserDetails);
+ commonShim.shimMaxMessageSize(window, browserDetails);
+ commonShim.shimSendThrowTypeError(window, browserDetails);
+ commonShim.removeExtmapAllowMixed(window, browserDetails);
+ break;
+ default:
+ logging('Unsupported browser!');
+ break;
+ }
+ return adapter;
+}
+
+},{"./chrome/chrome_shim":3,"./common_shim":6,"./firefox/firefox_shim":7,"./safari/safari_shim":10,"./utils":11,"sdp":12}],3:[function(require,module,exports){
+/*
+ * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree.
+ */
+/* eslint-env node */
+'use strict';
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.fixNegotiationNeeded = fixNegotiationNeeded;
+exports.shimAddTrackRemoveTrack = shimAddTrackRemoveTrack;
+exports.shimAddTrackRemoveTrackWithNative = shimAddTrackRemoveTrackWithNative;
+Object.defineProperty(exports, "shimGetDisplayMedia", {
+ enumerable: true,
+ get: function get() {
+ return _getdisplaymedia.shimGetDisplayMedia;
+ }
+});
+exports.shimGetSendersWithDtmf = shimGetSendersWithDtmf;
+exports.shimGetStats = shimGetStats;
+Object.defineProperty(exports, "shimGetUserMedia", {
+ enumerable: true,
+ get: function get() {
+ return _getusermedia.shimGetUserMedia;
+ }
+});
+exports.shimMediaStream = shimMediaStream;
+exports.shimOnTrack = shimOnTrack;
+exports.shimPeerConnection = shimPeerConnection;
+exports.shimSenderReceiverGetStats = shimSenderReceiverGetStats;
+var utils = _interopRequireWildcard(require("../utils.js"));
+var _getusermedia = require("./getusermedia");
+var _getdisplaymedia = require("./getdisplaymedia");
+function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
+function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
+function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
+function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
+function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
+function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
+function shimMediaStream(window) {
+ window.MediaStream = window.MediaStream || window.webkitMediaStream;
+}
+function shimOnTrack(window) {
+ if (_typeof(window) === 'object' && window.RTCPeerConnection && !('ontrack' in window.RTCPeerConnection.prototype)) {
+ Object.defineProperty(window.RTCPeerConnection.prototype, 'ontrack', {
+ get: function get() {
+ return this._ontrack;
+ },
+ set: function set(f) {
+ if (this._ontrack) {
+ this.removeEventListener('track', this._ontrack);
+ }
+ this.addEventListener('track', this._ontrack = f);
+ },
+ enumerable: true,
+ configurable: true
+ });
+ var origSetRemoteDescription = window.RTCPeerConnection.prototype.setRemoteDescription;
+ window.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription() {
+ var _this = this;
+ if (!this._ontrackpoly) {
+ this._ontrackpoly = function (e) {
+ // onaddstream does not fire when a track is added to an existing
+ // stream. But stream.onaddtrack is implemented so we use that.
+ e.stream.addEventListener('addtrack', function (te) {
+ var receiver;
+ if (window.RTCPeerConnection.prototype.getReceivers) {
+ receiver = _this.getReceivers().find(function (r) {
+ return r.track && r.track.id === te.track.id;
+ });
+ } else {
+ receiver = {
+ track: te.track
+ };
+ }
+ var event = new Event('track');
+ event.track = te.track;
+ event.receiver = receiver;
+ event.transceiver = {
+ receiver: receiver
+ };
+ event.streams = [e.stream];
+ _this.dispatchEvent(event);
+ });
+ e.stream.getTracks().forEach(function (track) {
+ var receiver;
+ if (window.RTCPeerConnection.prototype.getReceivers) {
+ receiver = _this.getReceivers().find(function (r) {
+ return r.track && r.track.id === track.id;
+ });
+ } else {
+ receiver = {
+ track: track
+ };
+ }
+ var event = new Event('track');
+ event.track = track;
+ event.receiver = receiver;
+ event.transceiver = {
+ receiver: receiver
+ };
+ event.streams = [e.stream];
+ _this.dispatchEvent(event);
+ });
+ };
+ this.addEventListener('addstream', this._ontrackpoly);
+ }
+ return origSetRemoteDescription.apply(this, arguments);
+ };
+ } else {
+ // even if RTCRtpTransceiver is in window, it is only used and
+ // emitted in unified-plan. Unfortunately this means we need
+ // to unconditionally wrap the event.
+ utils.wrapPeerConnectionEvent(window, 'track', function (e) {
+ if (!e.transceiver) {
+ Object.defineProperty(e, 'transceiver', {
+ value: {
+ receiver: e.receiver
+ }
+ });
+ }
+ return e;
+ });
+ }
+}
+function shimGetSendersWithDtmf(window) {
+ // Overrides addTrack/removeTrack, depends on shimAddTrackRemoveTrack.
+ if (_typeof(window) === 'object' && window.RTCPeerConnection && !('getSenders' in window.RTCPeerConnection.prototype) && 'createDTMFSender' in window.RTCPeerConnection.prototype) {
+ var shimSenderWithDtmf = function shimSenderWithDtmf(pc, track) {
+ return {
+ track: track,
+ get dtmf() {
+ if (this._dtmf === undefined) {
+ if (track.kind === 'audio') {
+ this._dtmf = pc.createDTMFSender(track);
+ } else {
+ this._dtmf = null;
+ }
+ }
+ return this._dtmf;
+ },
+ _pc: pc
+ };
+ };
+
+ // augment addTrack when getSenders is not available.
+ if (!window.RTCPeerConnection.prototype.getSenders) {
+ window.RTCPeerConnection.prototype.getSenders = function getSenders() {
+ this._senders = this._senders || [];
+ return this._senders.slice(); // return a copy of the internal state.
+ };
+
+ var origAddTrack = window.RTCPeerConnection.prototype.addTrack;
+ window.RTCPeerConnection.prototype.addTrack = function addTrack(track, stream) {
+ var sender = origAddTrack.apply(this, arguments);
+ if (!sender) {
+ sender = shimSenderWithDtmf(this, track);
+ this._senders.push(sender);
+ }
+ return sender;
+ };
+ var origRemoveTrack = window.RTCPeerConnection.prototype.removeTrack;
+ window.RTCPeerConnection.prototype.removeTrack = function removeTrack(sender) {
+ origRemoveTrack.apply(this, arguments);
+ var idx = this._senders.indexOf(sender);
+ if (idx !== -1) {
+ this._senders.splice(idx, 1);
+ }
+ };
+ }
+ var origAddStream = window.RTCPeerConnection.prototype.addStream;
+ window.RTCPeerConnection.prototype.addStream = function addStream(stream) {
+ var _this2 = this;
+ this._senders = this._senders || [];
+ origAddStream.apply(this, [stream]);
+ stream.getTracks().forEach(function (track) {
+ _this2._senders.push(shimSenderWithDtmf(_this2, track));
+ });
+ };
+ var origRemoveStream = window.RTCPeerConnection.prototype.removeStream;
+ window.RTCPeerConnection.prototype.removeStream = function removeStream(stream) {
+ var _this3 = this;
+ this._senders = this._senders || [];
+ origRemoveStream.apply(this, [stream]);
+ stream.getTracks().forEach(function (track) {
+ var sender = _this3._senders.find(function (s) {
+ return s.track === track;
+ });
+ if (sender) {
+ // remove sender
+ _this3._senders.splice(_this3._senders.indexOf(sender), 1);
+ }
+ });
+ };
+ } else if (_typeof(window) === 'object' && window.RTCPeerConnection && 'getSenders' in window.RTCPeerConnection.prototype && 'createDTMFSender' in window.RTCPeerConnection.prototype && window.RTCRtpSender && !('dtmf' in window.RTCRtpSender.prototype)) {
+ var origGetSenders = window.RTCPeerConnection.prototype.getSenders;
+ window.RTCPeerConnection.prototype.getSenders = function getSenders() {
+ var _this4 = this;
+ var senders = origGetSenders.apply(this, []);
+ senders.forEach(function (sender) {
+ return sender._pc = _this4;
+ });
+ return senders;
+ };
+ Object.defineProperty(window.RTCRtpSender.prototype, 'dtmf', {
+ get: function get() {
+ if (this._dtmf === undefined) {
+ if (this.track.kind === 'audio') {
+ this._dtmf = this._pc.createDTMFSender(this.track);
+ } else {
+ this._dtmf = null;
+ }
+ }
+ return this._dtmf;
+ }
+ });
+ }
+}
+function shimGetStats(window) {
+ if (!window.RTCPeerConnection) {
+ return;
+ }
+ var origGetStats = window.RTCPeerConnection.prototype.getStats;
+ window.RTCPeerConnection.prototype.getStats = function getStats() {
+ var _this5 = this;
+ var _arguments = Array.prototype.slice.call(arguments),
+ selector = _arguments[0],
+ onSucc = _arguments[1],
+ onErr = _arguments[2];
+
+ // If selector is a function then we are in the old style stats so just
+ // pass back the original getStats format to avoid breaking old users.
+ if (arguments.length > 0 && typeof selector === 'function') {
+ return origGetStats.apply(this, arguments);
+ }
+
+ // When spec-style getStats is supported, return those when called with
+ // either no arguments or the selector argument is null.
+ if (origGetStats.length === 0 && (arguments.length === 0 || typeof selector !== 'function')) {
+ return origGetStats.apply(this, []);
+ }
+ var fixChromeStats_ = function fixChromeStats_(response) {
+ var standardReport = {};
+ var reports = response.result();
+ reports.forEach(function (report) {
+ var standardStats = {
+ id: report.id,
+ timestamp: report.timestamp,
+ type: {
+ localcandidate: 'local-candidate',
+ remotecandidate: 'remote-candidate'
+ }[report.type] || report.type
+ };
+ report.names().forEach(function (name) {
+ standardStats[name] = report.stat(name);
+ });
+ standardReport[standardStats.id] = standardStats;
+ });
+ return standardReport;
+ };
+
+ // shim getStats with maplike support
+ var makeMapStats = function makeMapStats(stats) {
+ return new Map(Object.keys(stats).map(function (key) {
+ return [key, stats[key]];
+ }));
+ };
+ if (arguments.length >= 2) {
+ var successCallbackWrapper_ = function successCallbackWrapper_(response) {
+ onSucc(makeMapStats(fixChromeStats_(response)));
+ };
+ return origGetStats.apply(this, [successCallbackWrapper_, selector]);
+ }
+
+ // promise-support
+ return new Promise(function (resolve, reject) {
+ origGetStats.apply(_this5, [function (response) {
+ resolve(makeMapStats(fixChromeStats_(response)));
+ }, reject]);
+ }).then(onSucc, onErr);
+ };
+}
+function shimSenderReceiverGetStats(window) {
+ if (!(_typeof(window) === 'object' && window.RTCPeerConnection && window.RTCRtpSender && window.RTCRtpReceiver)) {
+ return;
+ }
+
+ // shim sender stats.
+ if (!('getStats' in window.RTCRtpSender.prototype)) {
+ var origGetSenders = window.RTCPeerConnection.prototype.getSenders;
+ if (origGetSenders) {
+ window.RTCPeerConnection.prototype.getSenders = function getSenders() {
+ var _this6 = this;
+ var senders = origGetSenders.apply(this, []);
+ senders.forEach(function (sender) {
+ return sender._pc = _this6;
+ });
+ return senders;
+ };
+ }
+ var origAddTrack = window.RTCPeerConnection.prototype.addTrack;
+ if (origAddTrack) {
+ window.RTCPeerConnection.prototype.addTrack = function addTrack() {
+ var sender = origAddTrack.apply(this, arguments);
+ sender._pc = this;
+ return sender;
+ };
+ }
+ window.RTCRtpSender.prototype.getStats = function getStats() {
+ var sender = this;
+ return this._pc.getStats().then(function (result) {
+ return (
+ /* Note: this will include stats of all senders that
+ * send a track with the same id as sender.track as
+ * it is not possible to identify the RTCRtpSender.
+ */
+ utils.filterStats(result, sender.track, true)
+ );
+ });
+ };
+ }
+
+ // shim receiver stats.
+ if (!('getStats' in window.RTCRtpReceiver.prototype)) {
+ var origGetReceivers = window.RTCPeerConnection.prototype.getReceivers;
+ if (origGetReceivers) {
+ window.RTCPeerConnection.prototype.getReceivers = function getReceivers() {
+ var _this7 = this;
+ var receivers = origGetReceivers.apply(this, []);
+ receivers.forEach(function (receiver) {
+ return receiver._pc = _this7;
+ });
+ return receivers;
+ };
+ }
+ utils.wrapPeerConnectionEvent(window, 'track', function (e) {
+ e.receiver._pc = e.srcElement;
+ return e;
+ });
+ window.RTCRtpReceiver.prototype.getStats = function getStats() {
+ var receiver = this;
+ return this._pc.getStats().then(function (result) {
+ return utils.filterStats(result, receiver.track, false);
+ });
+ };
+ }
+ if (!('getStats' in window.RTCRtpSender.prototype && 'getStats' in window.RTCRtpReceiver.prototype)) {
+ return;
+ }
+
+ // shim RTCPeerConnection.getStats(track).
+ var origGetStats = window.RTCPeerConnection.prototype.getStats;
+ window.RTCPeerConnection.prototype.getStats = function getStats() {
+ if (arguments.length > 0 && arguments[0] instanceof window.MediaStreamTrack) {
+ var track = arguments[0];
+ var sender;
+ var receiver;
+ var err;
+ this.getSenders().forEach(function (s) {
+ if (s.track === track) {
+ if (sender) {
+ err = true;
+ } else {
+ sender = s;
+ }
+ }
+ });
+ this.getReceivers().forEach(function (r) {
+ if (r.track === track) {
+ if (receiver) {
+ err = true;
+ } else {
+ receiver = r;
+ }
+ }
+ return r.track === track;
+ });
+ if (err || sender && receiver) {
+ return Promise.reject(new DOMException('There are more than one sender or receiver for the track.', 'InvalidAccessError'));
+ } else if (sender) {
+ return sender.getStats();
+ } else if (receiver) {
+ return receiver.getStats();
+ }
+ return Promise.reject(new DOMException('There is no sender or receiver for the track.', 'InvalidAccessError'));
+ }
+ return origGetStats.apply(this, arguments);
+ };
+}
+function shimAddTrackRemoveTrackWithNative(window) {
+ // shim addTrack/removeTrack with native variants in order to make
+ // the interactions with legacy getLocalStreams behave as in other browsers.
+ // Keeps a mapping stream.id => [stream, rtpsenders...]
+ window.RTCPeerConnection.prototype.getLocalStreams = function getLocalStreams() {
+ var _this8 = this;
+ this._shimmedLocalStreams = this._shimmedLocalStreams || {};
+ return Object.keys(this._shimmedLocalStreams).map(function (streamId) {
+ return _this8._shimmedLocalStreams[streamId][0];
+ });
+ };
+ var origAddTrack = window.RTCPeerConnection.prototype.addTrack;
+ window.RTCPeerConnection.prototype.addTrack = function addTrack(track, stream) {
+ if (!stream) {
+ return origAddTrack.apply(this, arguments);
+ }
+ this._shimmedLocalStreams = this._shimmedLocalStreams || {};
+ var sender = origAddTrack.apply(this, arguments);
+ if (!this._shimmedLocalStreams[stream.id]) {
+ this._shimmedLocalStreams[stream.id] = [stream, sender];
+ } else if (this._shimmedLocalStreams[stream.id].indexOf(sender) === -1) {
+ this._shimmedLocalStreams[stream.id].push(sender);
+ }
+ return sender;
+ };
+ var origAddStream = window.RTCPeerConnection.prototype.addStream;
+ window.RTCPeerConnection.prototype.addStream = function addStream(stream) {
+ var _this9 = this;
+ this._shimmedLocalStreams = this._shimmedLocalStreams || {};
+ stream.getTracks().forEach(function (track) {
+ var alreadyExists = _this9.getSenders().find(function (s) {
+ return s.track === track;
+ });
+ if (alreadyExists) {
+ throw new DOMException('Track already exists.', 'InvalidAccessError');
+ }
+ });
+ var existingSenders = this.getSenders();
+ origAddStream.apply(this, arguments);
+ var newSenders = this.getSenders().filter(function (newSender) {
+ return existingSenders.indexOf(newSender) === -1;
+ });
+ this._shimmedLocalStreams[stream.id] = [stream].concat(newSenders);
+ };
+ var origRemoveStream = window.RTCPeerConnection.prototype.removeStream;
+ window.RTCPeerConnection.prototype.removeStream = function removeStream(stream) {
+ this._shimmedLocalStreams = this._shimmedLocalStreams || {};
+ delete this._shimmedLocalStreams[stream.id];
+ return origRemoveStream.apply(this, arguments);
+ };
+ var origRemoveTrack = window.RTCPeerConnection.prototype.removeTrack;
+ window.RTCPeerConnection.prototype.removeTrack = function removeTrack(sender) {
+ var _this10 = this;
+ this._shimmedLocalStreams = this._shimmedLocalStreams || {};
+ if (sender) {
+ Object.keys(this._shimmedLocalStreams).forEach(function (streamId) {
+ var idx = _this10._shimmedLocalStreams[streamId].indexOf(sender);
+ if (idx !== -1) {
+ _this10._shimmedLocalStreams[streamId].splice(idx, 1);
+ }
+ if (_this10._shimmedLocalStreams[streamId].length === 1) {
+ delete _this10._shimmedLocalStreams[streamId];
+ }
+ });
+ }
+ return origRemoveTrack.apply(this, arguments);
+ };
+}
+function shimAddTrackRemoveTrack(window, browserDetails) {
+ if (!window.RTCPeerConnection) {
+ return;
+ }
+ // shim addTrack and removeTrack.
+ if (window.RTCPeerConnection.prototype.addTrack && browserDetails.version >= 65) {
+ return shimAddTrackRemoveTrackWithNative(window);
+ }
+
+ // also shim pc.getLocalStreams when addTrack is shimmed
+ // to return the original streams.
+ var origGetLocalStreams = window.RTCPeerConnection.prototype.getLocalStreams;
+ window.RTCPeerConnection.prototype.getLocalStreams = function getLocalStreams() {
+ var _this11 = this;
+ var nativeStreams = origGetLocalStreams.apply(this);
+ this._reverseStreams = this._reverseStreams || {};
+ return nativeStreams.map(function (stream) {
+ return _this11._reverseStreams[stream.id];
+ });
+ };
+ var origAddStream = window.RTCPeerConnection.prototype.addStream;
+ window.RTCPeerConnection.prototype.addStream = function addStream(stream) {
+ var _this12 = this;
+ this._streams = this._streams || {};
+ this._reverseStreams = this._reverseStreams || {};
+ stream.getTracks().forEach(function (track) {
+ var alreadyExists = _this12.getSenders().find(function (s) {
+ return s.track === track;
+ });
+ if (alreadyExists) {
+ throw new DOMException('Track already exists.', 'InvalidAccessError');
+ }
+ });
+ // Add identity mapping for consistency with addTrack.
+ // Unless this is being used with a stream from addTrack.
+ if (!this._reverseStreams[stream.id]) {
+ var newStream = new window.MediaStream(stream.getTracks());
+ this._streams[stream.id] = newStream;
+ this._reverseStreams[newStream.id] = stream;
+ stream = newStream;
+ }
+ origAddStream.apply(this, [stream]);
+ };
+ var origRemoveStream = window.RTCPeerConnection.prototype.removeStream;
+ window.RTCPeerConnection.prototype.removeStream = function removeStream(stream) {
+ this._streams = this._streams || {};
+ this._reverseStreams = this._reverseStreams || {};
+ origRemoveStream.apply(this, [this._streams[stream.id] || stream]);
+ delete this._reverseStreams[this._streams[stream.id] ? this._streams[stream.id].id : stream.id];
+ delete this._streams[stream.id];
+ };
+ window.RTCPeerConnection.prototype.addTrack = function addTrack(track, stream) {
+ var _this13 = this;
+ if (this.signalingState === 'closed') {
+ throw new DOMException('The RTCPeerConnection\'s signalingState is \'closed\'.', 'InvalidStateError');
+ }
+ var streams = [].slice.call(arguments, 1);
+ if (streams.length !== 1 || !streams[0].getTracks().find(function (t) {
+ return t === track;
+ })) {
+ // this is not fully correct but all we can manage without
+ // [[associated MediaStreams]] internal slot.
+ throw new DOMException('The adapter.js addTrack polyfill only supports a single ' + ' stream which is associated with the specified track.', 'NotSupportedError');
+ }
+ var alreadyExists = this.getSenders().find(function (s) {
+ return s.track === track;
+ });
+ if (alreadyExists) {
+ throw new DOMException('Track already exists.', 'InvalidAccessError');
+ }
+ this._streams = this._streams || {};
+ this._reverseStreams = this._reverseStreams || {};
+ var oldStream = this._streams[stream.id];
+ if (oldStream) {
+ // this is using odd Chrome behaviour, use with caution:
+ // https://bugs.chromium.org/p/webrtc/issues/detail?id=7815
+ // Note: we rely on the high-level addTrack/dtmf shim to
+ // create the sender with a dtmf sender.
+ oldStream.addTrack(track);
+
+ // Trigger ONN async.
+ Promise.resolve().then(function () {
+ _this13.dispatchEvent(new Event('negotiationneeded'));
+ });
+ } else {
+ var newStream = new window.MediaStream([track]);
+ this._streams[stream.id] = newStream;
+ this._reverseStreams[newStream.id] = stream;
+ this.addStream(newStream);
+ }
+ return this.getSenders().find(function (s) {
+ return s.track === track;
+ });
+ };
+
+ // replace the internal stream id with the external one and
+ // vice versa.
+ function replaceInternalStreamId(pc, description) {
+ var sdp = description.sdp;
+ Object.keys(pc._reverseStreams || []).forEach(function (internalId) {
+ var externalStream = pc._reverseStreams[internalId];
+ var internalStream = pc._streams[externalStream.id];
+ sdp = sdp.replace(new RegExp(internalStream.id, 'g'), externalStream.id);
+ });
+ return new RTCSessionDescription({
+ type: description.type,
+ sdp: sdp
+ });
+ }
+ function replaceExternalStreamId(pc, description) {
+ var sdp = description.sdp;
+ Object.keys(pc._reverseStreams || []).forEach(function (internalId) {
+ var externalStream = pc._reverseStreams[internalId];
+ var internalStream = pc._streams[externalStream.id];
+ sdp = sdp.replace(new RegExp(externalStream.id, 'g'), internalStream.id);
+ });
+ return new RTCSessionDescription({
+ type: description.type,
+ sdp: sdp
+ });
+ }
+ ['createOffer', 'createAnswer'].forEach(function (method) {
+ var nativeMethod = window.RTCPeerConnection.prototype[method];
+ var methodObj = _defineProperty({}, method, function () {
+ var _this14 = this;
+ var args = arguments;
+ var isLegacyCall = arguments.length && typeof arguments[0] === 'function';
+ if (isLegacyCall) {
+ return nativeMethod.apply(this, [function (description) {
+ var desc = replaceInternalStreamId(_this14, description);
+ args[0].apply(null, [desc]);
+ }, function (err) {
+ if (args[1]) {
+ args[1].apply(null, err);
+ }
+ }, arguments[2]]);
+ }
+ return nativeMethod.apply(this, arguments).then(function (description) {
+ return replaceInternalStreamId(_this14, description);
+ });
+ });
+ window.RTCPeerConnection.prototype[method] = methodObj[method];
+ });
+ var origSetLocalDescription = window.RTCPeerConnection.prototype.setLocalDescription;
+ window.RTCPeerConnection.prototype.setLocalDescription = function setLocalDescription() {
+ if (!arguments.length || !arguments[0].type) {
+ return origSetLocalDescription.apply(this, arguments);
+ }
+ arguments[0] = replaceExternalStreamId(this, arguments[0]);
+ return origSetLocalDescription.apply(this, arguments);
+ };
+
+ // TODO: mangle getStats: https://w3c.github.io/webrtc-stats/#dom-rtcmediastreamstats-streamidentifier
+
+ var origLocalDescription = Object.getOwnPropertyDescriptor(window.RTCPeerConnection.prototype, 'localDescription');
+ Object.defineProperty(window.RTCPeerConnection.prototype, 'localDescription', {
+ get: function get() {
+ var description = origLocalDescription.get.apply(this);
+ if (description.type === '') {
+ return description;
+ }
+ return replaceInternalStreamId(this, description);
+ }
+ });
+ window.RTCPeerConnection.prototype.removeTrack = function removeTrack(sender) {
+ var _this15 = this;
+ if (this.signalingState === 'closed') {
+ throw new DOMException('The RTCPeerConnection\'s signalingState is \'closed\'.', 'InvalidStateError');
+ }
+ // We can not yet check for sender instanceof RTCRtpSender
+ // since we shim RTPSender. So we check if sender._pc is set.
+ if (!sender._pc) {
+ throw new DOMException('Argument 1 of RTCPeerConnection.removeTrack ' + 'does not implement interface RTCRtpSender.', 'TypeError');
+ }
+ var isLocal = sender._pc === this;
+ if (!isLocal) {
+ throw new DOMException('Sender was not created by this connection.', 'InvalidAccessError');
+ }
+
+ // Search for the native stream the senders track belongs to.
+ this._streams = this._streams || {};
+ var stream;
+ Object.keys(this._streams).forEach(function (streamid) {
+ var hasTrack = _this15._streams[streamid].getTracks().find(function (track) {
+ return sender.track === track;
+ });
+ if (hasTrack) {
+ stream = _this15._streams[streamid];
+ }
+ });
+ if (stream) {
+ if (stream.getTracks().length === 1) {
+ // if this is the last track of the stream, remove the stream. This
+ // takes care of any shimmed _senders.
+ this.removeStream(this._reverseStreams[stream.id]);
+ } else {
+ // relying on the same odd chrome behaviour as above.
+ stream.removeTrack(sender.track);
+ }
+ this.dispatchEvent(new Event('negotiationneeded'));
+ }
+ };
+}
+function shimPeerConnection(window, browserDetails) {
+ if (!window.RTCPeerConnection && window.webkitRTCPeerConnection) {
+ // very basic support for old versions.
+ window.RTCPeerConnection = window.webkitRTCPeerConnection;
+ }
+ if (!window.RTCPeerConnection) {
+ return;
+ }
+
+ // shim implicit creation of RTCSessionDescription/RTCIceCandidate
+ if (browserDetails.version < 53) {
+ ['setLocalDescription', 'setRemoteDescription', 'addIceCandidate'].forEach(function (method) {
+ var nativeMethod = window.RTCPeerConnection.prototype[method];
+ var methodObj = _defineProperty({}, method, function () {
+ arguments[0] = new (method === 'addIceCandidate' ? window.RTCIceCandidate : window.RTCSessionDescription)(arguments[0]);
+ return nativeMethod.apply(this, arguments);
+ });
+ window.RTCPeerConnection.prototype[method] = methodObj[method];
+ });
+ }
+}
+
+// Attempt to fix ONN in plan-b mode.
+function fixNegotiationNeeded(window, browserDetails) {
+ utils.wrapPeerConnectionEvent(window, 'negotiationneeded', function (e) {
+ var pc = e.target;
+ if (browserDetails.version < 72 || pc.getConfiguration && pc.getConfiguration().sdpSemantics === 'plan-b') {
+ if (pc.signalingState !== 'stable') {
+ return;
+ }
+ }
+ return e;
+ });
+}
+
+},{"../utils.js":11,"./getdisplaymedia":4,"./getusermedia":5}],4:[function(require,module,exports){
+/*
+ * Copyright (c) 2018 The adapter.js project authors. All Rights Reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree.
+ */
+/* eslint-env node */
+'use strict';
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.shimGetDisplayMedia = shimGetDisplayMedia;
+function shimGetDisplayMedia(window, getSourceId) {
+ if (window.navigator.mediaDevices && 'getDisplayMedia' in window.navigator.mediaDevices) {
+ return;
+ }
+ if (!window.navigator.mediaDevices) {
+ return;
+ }
+ // getSourceId is a function that returns a promise resolving with
+ // the sourceId of the screen/window/tab to be shared.
+ if (typeof getSourceId !== 'function') {
+ console.error('shimGetDisplayMedia: getSourceId argument is not ' + 'a function');
+ return;
+ }
+ window.navigator.mediaDevices.getDisplayMedia = function getDisplayMedia(constraints) {
+ return getSourceId(constraints).then(function (sourceId) {
+ var widthSpecified = constraints.video && constraints.video.width;
+ var heightSpecified = constraints.video && constraints.video.height;
+ var frameRateSpecified = constraints.video && constraints.video.frameRate;
+ constraints.video = {
+ mandatory: {
+ chromeMediaSource: 'desktop',
+ chromeMediaSourceId: sourceId,
+ maxFrameRate: frameRateSpecified || 3
+ }
+ };
+ if (widthSpecified) {
+ constraints.video.mandatory.maxWidth = widthSpecified;
+ }
+ if (heightSpecified) {
+ constraints.video.mandatory.maxHeight = heightSpecified;
+ }
+ return window.navigator.mediaDevices.getUserMedia(constraints);
+ });
+ };
+}
+
+},{}],5:[function(require,module,exports){
+/*
+ * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree.
+ */
+/* eslint-env node */
+'use strict';
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.shimGetUserMedia = shimGetUserMedia;
+var utils = _interopRequireWildcard(require("../utils.js"));
+function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
+function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
+function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
+var logging = utils.log;
+function shimGetUserMedia(window, browserDetails) {
+ var navigator = window && window.navigator;
+ if (!navigator.mediaDevices) {
+ return;
+ }
+ var constraintsToChrome_ = function constraintsToChrome_(c) {
+ if (_typeof(c) !== 'object' || c.mandatory || c.optional) {
+ return c;
+ }
+ var cc = {};
+ Object.keys(c).forEach(function (key) {
+ if (key === 'require' || key === 'advanced' || key === 'mediaSource') {
+ return;
+ }
+ var r = _typeof(c[key]) === 'object' ? c[key] : {
+ ideal: c[key]
+ };
+ if (r.exact !== undefined && typeof r.exact === 'number') {
+ r.min = r.max = r.exact;
+ }
+ var oldname_ = function oldname_(prefix, name) {
+ if (prefix) {
+ return prefix + name.charAt(0).toUpperCase() + name.slice(1);
+ }
+ return name === 'deviceId' ? 'sourceId' : name;
+ };
+ if (r.ideal !== undefined) {
+ cc.optional = cc.optional || [];
+ var oc = {};
+ if (typeof r.ideal === 'number') {
+ oc[oldname_('min', key)] = r.ideal;
+ cc.optional.push(oc);
+ oc = {};
+ oc[oldname_('max', key)] = r.ideal;
+ cc.optional.push(oc);
+ } else {
+ oc[oldname_('', key)] = r.ideal;
+ cc.optional.push(oc);
+ }
+ }
+ if (r.exact !== undefined && typeof r.exact !== 'number') {
+ cc.mandatory = cc.mandatory || {};
+ cc.mandatory[oldname_('', key)] = r.exact;
+ } else {
+ ['min', 'max'].forEach(function (mix) {
+ if (r[mix] !== undefined) {
+ cc.mandatory = cc.mandatory || {};
+ cc.mandatory[oldname_(mix, key)] = r[mix];
+ }
+ });
+ }
+ });
+ if (c.advanced) {
+ cc.optional = (cc.optional || []).concat(c.advanced);
+ }
+ return cc;
+ };
+ var shimConstraints_ = function shimConstraints_(constraints, func) {
+ if (browserDetails.version >= 61) {
+ return func(constraints);
+ }
+ constraints = JSON.parse(JSON.stringify(constraints));
+ if (constraints && _typeof(constraints.audio) === 'object') {
+ var remap = function remap(obj, a, b) {
+ if (a in obj && !(b in obj)) {
+ obj[b] = obj[a];
+ delete obj[a];
+ }
+ };
+ constraints = JSON.parse(JSON.stringify(constraints));
+ remap(constraints.audio, 'autoGainControl', 'googAutoGainControl');
+ remap(constraints.audio, 'noiseSuppression', 'googNoiseSuppression');
+ constraints.audio = constraintsToChrome_(constraints.audio);
+ }
+ if (constraints && _typeof(constraints.video) === 'object') {
+ // Shim facingMode for mobile & surface pro.
+ var face = constraints.video.facingMode;
+ face = face && (_typeof(face) === 'object' ? face : {
+ ideal: face
+ });
+ var getSupportedFacingModeLies = browserDetails.version < 66;
+ if (face && (face.exact === 'user' || face.exact === 'environment' || face.ideal === 'user' || face.ideal === 'environment') && !(navigator.mediaDevices.getSupportedConstraints && navigator.mediaDevices.getSupportedConstraints().facingMode && !getSupportedFacingModeLies)) {
+ delete constraints.video.facingMode;
+ var matches;
+ if (face.exact === 'environment' || face.ideal === 'environment') {
+ matches = ['back', 'rear'];
+ } else if (face.exact === 'user' || face.ideal === 'user') {
+ matches = ['front'];
+ }
+ if (matches) {
+ // Look for matches in label, or use last cam for back (typical).
+ return navigator.mediaDevices.enumerateDevices().then(function (devices) {
+ devices = devices.filter(function (d) {
+ return d.kind === 'videoinput';
+ });
+ var dev = devices.find(function (d) {
+ return matches.some(function (match) {
+ return d.label.toLowerCase().includes(match);
+ });
+ });
+ if (!dev && devices.length && matches.includes('back')) {
+ dev = devices[devices.length - 1]; // more likely the back cam
+ }
+
+ if (dev) {
+ constraints.video.deviceId = face.exact ? {
+ exact: dev.deviceId
+ } : {
+ ideal: dev.deviceId
+ };
+ }
+ constraints.video = constraintsToChrome_(constraints.video);
+ logging('chrome: ' + JSON.stringify(constraints));
+ return func(constraints);
+ });
+ }
+ }
+ constraints.video = constraintsToChrome_(constraints.video);
+ }
+ logging('chrome: ' + JSON.stringify(constraints));
+ return func(constraints);
+ };
+ var shimError_ = function shimError_(e) {
+ if (browserDetails.version >= 64) {
+ return e;
+ }
+ return {
+ name: {
+ PermissionDeniedError: 'NotAllowedError',
+ PermissionDismissedError: 'NotAllowedError',
+ InvalidStateError: 'NotAllowedError',
+ DevicesNotFoundError: 'NotFoundError',
+ ConstraintNotSatisfiedError: 'OverconstrainedError',
+ TrackStartError: 'NotReadableError',
+ MediaDeviceFailedDueToShutdown: 'NotAllowedError',
+ MediaDeviceKillSwitchOn: 'NotAllowedError',
+ TabCaptureError: 'AbortError',
+ ScreenCaptureError: 'AbortError',
+ DeviceCaptureError: 'AbortError'
+ }[e.name] || e.name,
+ message: e.message,
+ constraint: e.constraint || e.constraintName,
+ toString: function toString() {
+ return this.name + (this.message && ': ') + this.message;
+ }
+ };
+ };
+ var getUserMedia_ = function getUserMedia_(constraints, onSuccess, onError) {
+ shimConstraints_(constraints, function (c) {
+ navigator.webkitGetUserMedia(c, onSuccess, function (e) {
+ if (onError) {
+ onError(shimError_(e));
+ }
+ });
+ });
+ };
+ navigator.getUserMedia = getUserMedia_.bind(navigator);
+
+ // Even though Chrome 45 has navigator.mediaDevices and a getUserMedia
+ // function which returns a Promise, it does not accept spec-style
+ // constraints.
+ if (navigator.mediaDevices.getUserMedia) {
+ var origGetUserMedia = navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices);
+ navigator.mediaDevices.getUserMedia = function (cs) {
+ return shimConstraints_(cs, function (c) {
+ return origGetUserMedia(c).then(function (stream) {
+ if (c.audio && !stream.getAudioTracks().length || c.video && !stream.getVideoTracks().length) {
+ stream.getTracks().forEach(function (track) {
+ track.stop();
+ });
+ throw new DOMException('', 'NotFoundError');
+ }
+ return stream;
+ }, function (e) {
+ return Promise.reject(shimError_(e));
+ });
+ });
+ };
+ }
+}
+
+},{"../utils.js":11}],6:[function(require,module,exports){
+/*
+ * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree.
+ */
+/* eslint-env node */
+'use strict';
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.removeExtmapAllowMixed = removeExtmapAllowMixed;
+exports.shimAddIceCandidateNullOrEmpty = shimAddIceCandidateNullOrEmpty;
+exports.shimConnectionState = shimConnectionState;
+exports.shimMaxMessageSize = shimMaxMessageSize;
+exports.shimParameterlessSetLocalDescription = shimParameterlessSetLocalDescription;
+exports.shimRTCIceCandidate = shimRTCIceCandidate;
+exports.shimRTCIceCandidateRelayProtocol = shimRTCIceCandidateRelayProtocol;
+exports.shimSendThrowTypeError = shimSendThrowTypeError;
+var _sdp = _interopRequireDefault(require("sdp"));
+var utils = _interopRequireWildcard(require("./utils"));
+function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
+function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
+function shimRTCIceCandidate(window) {
+ // foundation is arbitrarily chosen as an indicator for full support for
+ // https://w3c.github.io/webrtc-pc/#rtcicecandidate-interface
+ if (!window.RTCIceCandidate || window.RTCIceCandidate && 'foundation' in window.RTCIceCandidate.prototype) {
+ return;
+ }
+ var NativeRTCIceCandidate = window.RTCIceCandidate;
+ window.RTCIceCandidate = function RTCIceCandidate(args) {
+ // Remove the a= which shouldn't be part of the candidate string.
+ if (_typeof(args) === 'object' && args.candidate && args.candidate.indexOf('a=') === 0) {
+ args = JSON.parse(JSON.stringify(args));
+ args.candidate = args.candidate.substring(2);
+ }
+ if (args.candidate && args.candidate.length) {
+ // Augment the native candidate with the parsed fields.
+ var nativeCandidate = new NativeRTCIceCandidate(args);
+ var parsedCandidate = _sdp["default"].parseCandidate(args.candidate);
+ for (var key in parsedCandidate) {
+ if (!(key in nativeCandidate)) {
+ Object.defineProperty(nativeCandidate, key, {
+ value: parsedCandidate[key]
+ });
+ }
+ }
+
+ // Override serializer to not serialize the extra attributes.
+ nativeCandidate.toJSON = function toJSON() {
+ return {
+ candidate: nativeCandidate.candidate,
+ sdpMid: nativeCandidate.sdpMid,
+ sdpMLineIndex: nativeCandidate.sdpMLineIndex,
+ usernameFragment: nativeCandidate.usernameFragment
+ };
+ };
+ return nativeCandidate;
+ }
+ return new NativeRTCIceCandidate(args);
+ };
+ window.RTCIceCandidate.prototype = NativeRTCIceCandidate.prototype;
+
+ // Hook up the augmented candidate in onicecandidate and
+ // addEventListener('icecandidate', ...)
+ utils.wrapPeerConnectionEvent(window, 'icecandidate', function (e) {
+ if (e.candidate) {
+ Object.defineProperty(e, 'candidate', {
+ value: new window.RTCIceCandidate(e.candidate),
+ writable: 'false'
+ });
+ }
+ return e;
+ });
+}
+function shimRTCIceCandidateRelayProtocol(window) {
+ if (!window.RTCIceCandidate || window.RTCIceCandidate && 'relayProtocol' in window.RTCIceCandidate.prototype) {
+ return;
+ }
+
+ // Hook up the augmented candidate in onicecandidate and
+ // addEventListener('icecandidate', ...)
+ utils.wrapPeerConnectionEvent(window, 'icecandidate', function (e) {
+ if (e.candidate) {
+ var parsedCandidate = _sdp["default"].parseCandidate(e.candidate.candidate);
+ if (parsedCandidate.type === 'relay') {
+ // This is a libwebrtc-specific mapping of local type preference
+ // to relayProtocol.
+ e.candidate.relayProtocol = {
+ 0: 'tls',
+ 1: 'tcp',
+ 2: 'udp'
+ }[parsedCandidate.priority >> 24];
+ }
+ }
+ return e;
+ });
+}
+function shimMaxMessageSize(window, browserDetails) {
+ if (!window.RTCPeerConnection) {
+ return;
+ }
+ if (!('sctp' in window.RTCPeerConnection.prototype)) {
+ Object.defineProperty(window.RTCPeerConnection.prototype, 'sctp', {
+ get: function get() {
+ return typeof this._sctp === 'undefined' ? null : this._sctp;
+ }
+ });
+ }
+ var sctpInDescription = function sctpInDescription(description) {
+ if (!description || !description.sdp) {
+ return false;
+ }
+ var sections = _sdp["default"].splitSections(description.sdp);
+ sections.shift();
+ return sections.some(function (mediaSection) {
+ var mLine = _sdp["default"].parseMLine(mediaSection);
+ return mLine && mLine.kind === 'application' && mLine.protocol.indexOf('SCTP') !== -1;
+ });
+ };
+ var getRemoteFirefoxVersion = function getRemoteFirefoxVersion(description) {
+ // TODO: Is there a better solution for detecting Firefox?
+ var match = description.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);
+ if (match === null || match.length < 2) {
+ return -1;
+ }
+ var version = parseInt(match[1], 10);
+ // Test for NaN (yes, this is ugly)
+ return version !== version ? -1 : version;
+ };
+ var getCanSendMaxMessageSize = function getCanSendMaxMessageSize(remoteIsFirefox) {
+ // Every implementation we know can send at least 64 KiB.
+ // Note: Although Chrome is technically able to send up to 256 KiB, the
+ // data does not reach the other peer reliably.
+ // See: https://bugs.chromium.org/p/webrtc/issues/detail?id=8419
+ var canSendMaxMessageSize = 65536;
+ if (browserDetails.browser === 'firefox') {
+ if (browserDetails.version < 57) {
+ if (remoteIsFirefox === -1) {
+ // FF < 57 will send in 16 KiB chunks using the deprecated PPID
+ // fragmentation.
+ canSendMaxMessageSize = 16384;
+ } else {
+ // However, other FF (and RAWRTC) can reassemble PPID-fragmented
+ // messages. Thus, supporting ~2 GiB when sending.
+ canSendMaxMessageSize = 2147483637;
+ }
+ } else if (browserDetails.version < 60) {
+ // Currently, all FF >= 57 will reset the remote maximum message size
+ // to the default value when a data channel is created at a later
+ // stage. :(
+ // See: https://bugzilla.mozilla.org/show_bug.cgi?id=1426831
+ canSendMaxMessageSize = browserDetails.version === 57 ? 65535 : 65536;
+ } else {
+ // FF >= 60 supports sending ~2 GiB
+ canSendMaxMessageSize = 2147483637;
+ }
+ }
+ return canSendMaxMessageSize;
+ };
+ var getMaxMessageSize = function getMaxMessageSize(description, remoteIsFirefox) {
+ // Note: 65536 bytes is the default value from the SDP spec. Also,
+ // every implementation we know supports receiving 65536 bytes.
+ var maxMessageSize = 65536;
+
+ // FF 57 has a slightly incorrect default remote max message size, so
+ // we need to adjust it here to avoid a failure when sending.
+ // See: https://bugzilla.mozilla.org/show_bug.cgi?id=1425697
+ if (browserDetails.browser === 'firefox' && browserDetails.version === 57) {
+ maxMessageSize = 65535;
+ }
+ var match = _sdp["default"].matchPrefix(description.sdp, 'a=max-message-size:');
+ if (match.length > 0) {
+ maxMessageSize = parseInt(match[0].substring(19), 10);
+ } else if (browserDetails.browser === 'firefox' && remoteIsFirefox !== -1) {
+ // If the maximum message size is not present in the remote SDP and
+ // both local and remote are Firefox, the remote peer can receive
+ // ~2 GiB.
+ maxMessageSize = 2147483637;
+ }
+ return maxMessageSize;
+ };
+ var origSetRemoteDescription = window.RTCPeerConnection.prototype.setRemoteDescription;
+ window.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription() {
+ this._sctp = null;
+ // Chrome decided to not expose .sctp in plan-b mode.
+ // As usual, adapter.js has to do an 'ugly worakaround'
+ // to cover up the mess.
+ if (browserDetails.browser === 'chrome' && browserDetails.version >= 76) {
+ var _this$getConfiguratio = this.getConfiguration(),
+ sdpSemantics = _this$getConfiguratio.sdpSemantics;
+ if (sdpSemantics === 'plan-b') {
+ Object.defineProperty(this, 'sctp', {
+ get: function get() {
+ return typeof this._sctp === 'undefined' ? null : this._sctp;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ }
+ }
+ if (sctpInDescription(arguments[0])) {
+ // Check if the remote is FF.
+ var isFirefox = getRemoteFirefoxVersion(arguments[0]);
+
+ // Get the maximum message size the local peer is capable of sending
+ var canSendMMS = getCanSendMaxMessageSize(isFirefox);
+
+ // Get the maximum message size of the remote peer.
+ var remoteMMS = getMaxMessageSize(arguments[0], isFirefox);
+
+ // Determine final maximum message size
+ var maxMessageSize;
+ if (canSendMMS === 0 && remoteMMS === 0) {
+ maxMessageSize = Number.POSITIVE_INFINITY;
+ } else if (canSendMMS === 0 || remoteMMS === 0) {
+ maxMessageSize = Math.max(canSendMMS, remoteMMS);
+ } else {
+ maxMessageSize = Math.min(canSendMMS, remoteMMS);
+ }
+
+ // Create a dummy RTCSctpTransport object and the 'maxMessageSize'
+ // attribute.
+ var sctp = {};
+ Object.defineProperty(sctp, 'maxMessageSize', {
+ get: function get() {
+ return maxMessageSize;
+ }
+ });
+ this._sctp = sctp;
+ }
+ return origSetRemoteDescription.apply(this, arguments);
+ };
+}
+function shimSendThrowTypeError(window) {
+ if (!(window.RTCPeerConnection && 'createDataChannel' in window.RTCPeerConnection.prototype)) {
+ return;
+ }
+
+ // Note: Although Firefox >= 57 has a native implementation, the maximum
+ // message size can be reset for all data channels at a later stage.
+ // See: https://bugzilla.mozilla.org/show_bug.cgi?id=1426831
+
+ function wrapDcSend(dc, pc) {
+ var origDataChannelSend = dc.send;
+ dc.send = function send() {
+ var data = arguments[0];
+ var length = data.length || data.size || data.byteLength;
+ if (dc.readyState === 'open' && pc.sctp && length > pc.sctp.maxMessageSize) {
+ throw new TypeError('Message too large (can send a maximum of ' + pc.sctp.maxMessageSize + ' bytes)');
+ }
+ return origDataChannelSend.apply(dc, arguments);
+ };
+ }
+ var origCreateDataChannel = window.RTCPeerConnection.prototype.createDataChannel;
+ window.RTCPeerConnection.prototype.createDataChannel = function createDataChannel() {
+ var dataChannel = origCreateDataChannel.apply(this, arguments);
+ wrapDcSend(dataChannel, this);
+ return dataChannel;
+ };
+ utils.wrapPeerConnectionEvent(window, 'datachannel', function (e) {
+ wrapDcSend(e.channel, e.target);
+ return e;
+ });
+}
+
+/* shims RTCConnectionState by pretending it is the same as iceConnectionState.
+ * See https://bugs.chromium.org/p/webrtc/issues/detail?id=6145#c12
+ * for why this is a valid hack in Chrome. In Firefox it is slightly incorrect
+ * since DTLS failures would be hidden. See
+ * https://bugzilla.mozilla.org/show_bug.cgi?id=1265827
+ * for the Firefox tracking bug.
+ */
+function shimConnectionState(window) {
+ if (!window.RTCPeerConnection || 'connectionState' in window.RTCPeerConnection.prototype) {
+ return;
+ }
+ var proto = window.RTCPeerConnection.prototype;
+ Object.defineProperty(proto, 'connectionState', {
+ get: function get() {
+ return {
+ completed: 'connected',
+ checking: 'connecting'
+ }[this.iceConnectionState] || this.iceConnectionState;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ Object.defineProperty(proto, 'onconnectionstatechange', {
+ get: function get() {
+ return this._onconnectionstatechange || null;
+ },
+ set: function set(cb) {
+ if (this._onconnectionstatechange) {
+ this.removeEventListener('connectionstatechange', this._onconnectionstatechange);
+ delete this._onconnectionstatechange;
+ }
+ if (cb) {
+ this.addEventListener('connectionstatechange', this._onconnectionstatechange = cb);
+ }
+ },
+ enumerable: true,
+ configurable: true
+ });
+ ['setLocalDescription', 'setRemoteDescription'].forEach(function (method) {
+ var origMethod = proto[method];
+ proto[method] = function () {
+ if (!this._connectionstatechangepoly) {
+ this._connectionstatechangepoly = function (e) {
+ var pc = e.target;
+ if (pc._lastConnectionState !== pc.connectionState) {
+ pc._lastConnectionState = pc.connectionState;
+ var newEvent = new Event('connectionstatechange', e);
+ pc.dispatchEvent(newEvent);
+ }
+ return e;
+ };
+ this.addEventListener('iceconnectionstatechange', this._connectionstatechangepoly);
+ }
+ return origMethod.apply(this, arguments);
+ };
+ });
+}
+function removeExtmapAllowMixed(window, browserDetails) {
+ /* remove a=extmap-allow-mixed for webrtc.org < M71 */
+ if (!window.RTCPeerConnection) {
+ return;
+ }
+ if (browserDetails.browser === 'chrome' && browserDetails.version >= 71) {
+ return;
+ }
+ if (browserDetails.browser === 'safari' && browserDetails.version >= 605) {
+ return;
+ }
+ var nativeSRD = window.RTCPeerConnection.prototype.setRemoteDescription;
+ window.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription(desc) {
+ if (desc && desc.sdp && desc.sdp.indexOf('\na=extmap-allow-mixed') !== -1) {
+ var sdp = desc.sdp.split('\n').filter(function (line) {
+ return line.trim() !== 'a=extmap-allow-mixed';
+ }).join('\n');
+ // Safari enforces read-only-ness of RTCSessionDescription fields.
+ if (window.RTCSessionDescription && desc instanceof window.RTCSessionDescription) {
+ arguments[0] = new window.RTCSessionDescription({
+ type: desc.type,
+ sdp: sdp
+ });
+ } else {
+ desc.sdp = sdp;
+ }
+ }
+ return nativeSRD.apply(this, arguments);
+ };
+}
+function shimAddIceCandidateNullOrEmpty(window, browserDetails) {
+ // Support for addIceCandidate(null or undefined)
+ // as well as addIceCandidate({candidate: "", ...})
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=978582
+ // Note: must be called before other polyfills which change the signature.
+ if (!(window.RTCPeerConnection && window.RTCPeerConnection.prototype)) {
+ return;
+ }
+ var nativeAddIceCandidate = window.RTCPeerConnection.prototype.addIceCandidate;
+ if (!nativeAddIceCandidate || nativeAddIceCandidate.length === 0) {
+ return;
+ }
+ window.RTCPeerConnection.prototype.addIceCandidate = function addIceCandidate() {
+ if (!arguments[0]) {
+ if (arguments[1]) {
+ arguments[1].apply(null);
+ }
+ return Promise.resolve();
+ }
+ // Firefox 68+ emits and processes {candidate: "", ...}, ignore
+ // in older versions.
+ // Native support for ignoring exists for Chrome M77+.
+ // Safari ignores as well, exact version unknown but works in the same
+ // version that also ignores addIceCandidate(null).
+ if ((browserDetails.browser === 'chrome' && browserDetails.version < 78 || browserDetails.browser === 'firefox' && browserDetails.version < 68 || browserDetails.browser === 'safari') && arguments[0] && arguments[0].candidate === '') {
+ return Promise.resolve();
+ }
+ return nativeAddIceCandidate.apply(this, arguments);
+ };
+}
+
+// Note: Make sure to call this ahead of APIs that modify
+// setLocalDescription.length
+function shimParameterlessSetLocalDescription(window, browserDetails) {
+ if (!(window.RTCPeerConnection && window.RTCPeerConnection.prototype)) {
+ return;
+ }
+ var nativeSetLocalDescription = window.RTCPeerConnection.prototype.setLocalDescription;
+ if (!nativeSetLocalDescription || nativeSetLocalDescription.length === 0) {
+ return;
+ }
+ window.RTCPeerConnection.prototype.setLocalDescription = function setLocalDescription() {
+ var _this = this;
+ var desc = arguments[0] || {};
+ if (_typeof(desc) !== 'object' || desc.type && desc.sdp) {
+ return nativeSetLocalDescription.apply(this, arguments);
+ }
+ // The remaining steps should technically happen when SLD comes off the
+ // RTCPeerConnection's operations chain (not ahead of going on it), but
+ // this is too difficult to shim. Instead, this shim only covers the
+ // common case where the operations chain is empty. This is imperfect, but
+ // should cover many cases. Rationale: Even if we can't reduce the glare
+ // window to zero on imperfect implementations, there's value in tapping
+ // into the perfect negotiation pattern that several browsers support.
+ desc = {
+ type: desc.type,
+ sdp: desc.sdp
+ };
+ if (!desc.type) {
+ switch (this.signalingState) {
+ case 'stable':
+ case 'have-local-offer':
+ case 'have-remote-pranswer':
+ desc.type = 'offer';
+ break;
+ default:
+ desc.type = 'answer';
+ break;
+ }
+ }
+ if (desc.sdp || desc.type !== 'offer' && desc.type !== 'answer') {
+ return nativeSetLocalDescription.apply(this, [desc]);
+ }
+ var func = desc.type === 'offer' ? this.createOffer : this.createAnswer;
+ return func.apply(this).then(function (d) {
+ return nativeSetLocalDescription.apply(_this, [d]);
+ });
+ };
+}
+
+},{"./utils":11,"sdp":12}],7:[function(require,module,exports){
+/*
+ * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree.
+ */
+/* eslint-env node */
+'use strict';
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.shimAddTransceiver = shimAddTransceiver;
+exports.shimCreateAnswer = shimCreateAnswer;
+exports.shimCreateOffer = shimCreateOffer;
+Object.defineProperty(exports, "shimGetDisplayMedia", {
+ enumerable: true,
+ get: function get() {
+ return _getdisplaymedia.shimGetDisplayMedia;
+ }
+});
+exports.shimGetParameters = shimGetParameters;
+Object.defineProperty(exports, "shimGetUserMedia", {
+ enumerable: true,
+ get: function get() {
+ return _getusermedia.shimGetUserMedia;
+ }
+});
+exports.shimOnTrack = shimOnTrack;
+exports.shimPeerConnection = shimPeerConnection;
+exports.shimRTCDataChannel = shimRTCDataChannel;
+exports.shimReceiverGetStats = shimReceiverGetStats;
+exports.shimRemoveStream = shimRemoveStream;
+exports.shimSenderGetStats = shimSenderGetStats;
+var utils = _interopRequireWildcard(require("../utils"));
+var _getusermedia = require("./getusermedia");
+var _getdisplaymedia = require("./getdisplaymedia");
+function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
+function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
+function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
+function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
+function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
+function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
+function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
+function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
+function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
+function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
+function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
+function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
+function shimOnTrack(window) {
+ if (_typeof(window) === 'object' && window.RTCTrackEvent && 'receiver' in window.RTCTrackEvent.prototype && !('transceiver' in window.RTCTrackEvent.prototype)) {
+ Object.defineProperty(window.RTCTrackEvent.prototype, 'transceiver', {
+ get: function get() {
+ return {
+ receiver: this.receiver
+ };
+ }
+ });
+ }
+}
+function shimPeerConnection(window, browserDetails) {
+ if (_typeof(window) !== 'object' || !(window.RTCPeerConnection || window.mozRTCPeerConnection)) {
+ return; // probably media.peerconnection.enabled=false in about:config
+ }
+
+ if (!window.RTCPeerConnection && window.mozRTCPeerConnection) {
+ // very basic support for old versions.
+ window.RTCPeerConnection = window.mozRTCPeerConnection;
+ }
+ if (browserDetails.version < 53) {
+ // shim away need for obsolete RTCIceCandidate/RTCSessionDescription.
+ ['setLocalDescription', 'setRemoteDescription', 'addIceCandidate'].forEach(function (method) {
+ var nativeMethod = window.RTCPeerConnection.prototype[method];
+ var methodObj = _defineProperty({}, method, function () {
+ arguments[0] = new (method === 'addIceCandidate' ? window.RTCIceCandidate : window.RTCSessionDescription)(arguments[0]);
+ return nativeMethod.apply(this, arguments);
+ });
+ window.RTCPeerConnection.prototype[method] = methodObj[method];
+ });
+ }
+ var modernStatsTypes = {
+ inboundrtp: 'inbound-rtp',
+ outboundrtp: 'outbound-rtp',
+ candidatepair: 'candidate-pair',
+ localcandidate: 'local-candidate',
+ remotecandidate: 'remote-candidate'
+ };
+ var nativeGetStats = window.RTCPeerConnection.prototype.getStats;
+ window.RTCPeerConnection.prototype.getStats = function getStats() {
+ var _arguments = Array.prototype.slice.call(arguments),
+ selector = _arguments[0],
+ onSucc = _arguments[1],
+ onErr = _arguments[2];
+ return nativeGetStats.apply(this, [selector || null]).then(function (stats) {
+ if (browserDetails.version < 53 && !onSucc) {
+ // Shim only promise getStats with spec-hyphens in type names
+ // Leave callback version alone; misc old uses of forEach before Map
+ try {
+ stats.forEach(function (stat) {
+ stat.type = modernStatsTypes[stat.type] || stat.type;
+ });
+ } catch (e) {
+ if (e.name !== 'TypeError') {
+ throw e;
+ }
+ // Avoid TypeError: "type" is read-only, in old versions. 34-43ish
+ stats.forEach(function (stat, i) {
+ stats.set(i, Object.assign({}, stat, {
+ type: modernStatsTypes[stat.type] || stat.type
+ }));
+ });
+ }
+ }
+ return stats;
+ }).then(onSucc, onErr);
+ };
+}
+function shimSenderGetStats(window) {
+ if (!(_typeof(window) === 'object' && window.RTCPeerConnection && window.RTCRtpSender)) {
+ return;
+ }
+ if (window.RTCRtpSender && 'getStats' in window.RTCRtpSender.prototype) {
+ return;
+ }
+ var origGetSenders = window.RTCPeerConnection.prototype.getSenders;
+ if (origGetSenders) {
+ window.RTCPeerConnection.prototype.getSenders = function getSenders() {
+ var _this = this;
+ var senders = origGetSenders.apply(this, []);
+ senders.forEach(function (sender) {
+ return sender._pc = _this;
+ });
+ return senders;
+ };
+ }
+ var origAddTrack = window.RTCPeerConnection.prototype.addTrack;
+ if (origAddTrack) {
+ window.RTCPeerConnection.prototype.addTrack = function addTrack() {
+ var sender = origAddTrack.apply(this, arguments);
+ sender._pc = this;
+ return sender;
+ };
+ }
+ window.RTCRtpSender.prototype.getStats = function getStats() {
+ return this.track ? this._pc.getStats(this.track) : Promise.resolve(new Map());
+ };
+}
+function shimReceiverGetStats(window) {
+ if (!(_typeof(window) === 'object' && window.RTCPeerConnection && window.RTCRtpSender)) {
+ return;
+ }
+ if (window.RTCRtpSender && 'getStats' in window.RTCRtpReceiver.prototype) {
+ return;
+ }
+ var origGetReceivers = window.RTCPeerConnection.prototype.getReceivers;
+ if (origGetReceivers) {
+ window.RTCPeerConnection.prototype.getReceivers = function getReceivers() {
+ var _this2 = this;
+ var receivers = origGetReceivers.apply(this, []);
+ receivers.forEach(function (receiver) {
+ return receiver._pc = _this2;
+ });
+ return receivers;
+ };
+ }
+ utils.wrapPeerConnectionEvent(window, 'track', function (e) {
+ e.receiver._pc = e.srcElement;
+ return e;
+ });
+ window.RTCRtpReceiver.prototype.getStats = function getStats() {
+ return this._pc.getStats(this.track);
+ };
+}
+function shimRemoveStream(window) {
+ if (!window.RTCPeerConnection || 'removeStream' in window.RTCPeerConnection.prototype) {
+ return;
+ }
+ window.RTCPeerConnection.prototype.removeStream = function removeStream(stream) {
+ var _this3 = this;
+ utils.deprecated('removeStream', 'removeTrack');
+ this.getSenders().forEach(function (sender) {
+ if (sender.track && stream.getTracks().includes(sender.track)) {
+ _this3.removeTrack(sender);
+ }
+ });
+ };
+}
+function shimRTCDataChannel(window) {
+ // rename DataChannel to RTCDataChannel (native fix in FF60):
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=1173851
+ if (window.DataChannel && !window.RTCDataChannel) {
+ window.RTCDataChannel = window.DataChannel;
+ }
+}
+function shimAddTransceiver(window) {
+ // https://github.com/webrtcHacks/adapter/issues/998#issuecomment-516921647
+ // Firefox ignores the init sendEncodings options passed to addTransceiver
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=1396918
+ if (!(_typeof(window) === 'object' && window.RTCPeerConnection)) {
+ return;
+ }
+ var origAddTransceiver = window.RTCPeerConnection.prototype.addTransceiver;
+ if (origAddTransceiver) {
+ window.RTCPeerConnection.prototype.addTransceiver = function addTransceiver() {
+ this.setParametersPromises = [];
+ // WebIDL input coercion and validation
+ var sendEncodings = arguments[1] && arguments[1].sendEncodings;
+ if (sendEncodings === undefined) {
+ sendEncodings = [];
+ }
+ sendEncodings = _toConsumableArray(sendEncodings);
+ var shouldPerformCheck = sendEncodings.length > 0;
+ if (shouldPerformCheck) {
+ // If sendEncodings params are provided, validate grammar
+ sendEncodings.forEach(function (encodingParam) {
+ if ('rid' in encodingParam) {
+ var ridRegex = /^[a-z0-9]{0,16}$/i;
+ if (!ridRegex.test(encodingParam.rid)) {
+ throw new TypeError('Invalid RID value provided.');
+ }
+ }
+ if ('scaleResolutionDownBy' in encodingParam) {
+ if (!(parseFloat(encodingParam.scaleResolutionDownBy) >= 1.0)) {
+ throw new RangeError('scale_resolution_down_by must be >= 1.0');
+ }
+ }
+ if ('maxFramerate' in encodingParam) {
+ if (!(parseFloat(encodingParam.maxFramerate) >= 0)) {
+ throw new RangeError('max_framerate must be >= 0.0');
+ }
+ }
+ });
+ }
+ var transceiver = origAddTransceiver.apply(this, arguments);
+ if (shouldPerformCheck) {
+ // Check if the init options were applied. If not we do this in an
+ // asynchronous way and save the promise reference in a global object.
+ // This is an ugly hack, but at the same time is way more robust than
+ // checking the sender parameters before and after the createOffer
+ // Also note that after the createoffer we are not 100% sure that
+ // the params were asynchronously applied so we might miss the
+ // opportunity to recreate offer.
+ var sender = transceiver.sender;
+ var params = sender.getParameters();
+ if (!('encodings' in params) ||
+ // Avoid being fooled by patched getParameters() below.
+ params.encodings.length === 1 && Object.keys(params.encodings[0]).length === 0) {
+ params.encodings = sendEncodings;
+ sender.sendEncodings = sendEncodings;
+ this.setParametersPromises.push(sender.setParameters(params).then(function () {
+ delete sender.sendEncodings;
+ })["catch"](function () {
+ delete sender.sendEncodings;
+ }));
+ }
+ }
+ return transceiver;
+ };
+ }
+}
+function shimGetParameters(window) {
+ if (!(_typeof(window) === 'object' && window.RTCRtpSender)) {
+ return;
+ }
+ var origGetParameters = window.RTCRtpSender.prototype.getParameters;
+ if (origGetParameters) {
+ window.RTCRtpSender.prototype.getParameters = function getParameters() {
+ var params = origGetParameters.apply(this, arguments);
+ if (!('encodings' in params)) {
+ params.encodings = [].concat(this.sendEncodings || [{}]);
+ }
+ return params;
+ };
+ }
+}
+function shimCreateOffer(window) {
+ // https://github.com/webrtcHacks/adapter/issues/998#issuecomment-516921647
+ // Firefox ignores the init sendEncodings options passed to addTransceiver
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=1396918
+ if (!(_typeof(window) === 'object' && window.RTCPeerConnection)) {
+ return;
+ }
+ var origCreateOffer = window.RTCPeerConnection.prototype.createOffer;
+ window.RTCPeerConnection.prototype.createOffer = function createOffer() {
+ var _arguments2 = arguments,
+ _this4 = this;
+ if (this.setParametersPromises && this.setParametersPromises.length) {
+ return Promise.all(this.setParametersPromises).then(function () {
+ return origCreateOffer.apply(_this4, _arguments2);
+ })["finally"](function () {
+ _this4.setParametersPromises = [];
+ });
+ }
+ return origCreateOffer.apply(this, arguments);
+ };
+}
+function shimCreateAnswer(window) {
+ // https://github.com/webrtcHacks/adapter/issues/998#issuecomment-516921647
+ // Firefox ignores the init sendEncodings options passed to addTransceiver
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=1396918
+ if (!(_typeof(window) === 'object' && window.RTCPeerConnection)) {
+ return;
+ }
+ var origCreateAnswer = window.RTCPeerConnection.prototype.createAnswer;
+ window.RTCPeerConnection.prototype.createAnswer = function createAnswer() {
+ var _arguments3 = arguments,
+ _this5 = this;
+ if (this.setParametersPromises && this.setParametersPromises.length) {
+ return Promise.all(this.setParametersPromises).then(function () {
+ return origCreateAnswer.apply(_this5, _arguments3);
+ })["finally"](function () {
+ _this5.setParametersPromises = [];
+ });
+ }
+ return origCreateAnswer.apply(this, arguments);
+ };
+}
+
+},{"../utils":11,"./getdisplaymedia":8,"./getusermedia":9}],8:[function(require,module,exports){
+/*
+ * Copyright (c) 2018 The adapter.js project authors. All Rights Reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree.
+ */
+/* eslint-env node */
+'use strict';
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.shimGetDisplayMedia = shimGetDisplayMedia;
+function shimGetDisplayMedia(window, preferredMediaSource) {
+ if (window.navigator.mediaDevices && 'getDisplayMedia' in window.navigator.mediaDevices) {
+ return;
+ }
+ if (!window.navigator.mediaDevices) {
+ return;
+ }
+ window.navigator.mediaDevices.getDisplayMedia = function getDisplayMedia(constraints) {
+ if (!(constraints && constraints.video)) {
+ var err = new DOMException('getDisplayMedia without video ' + 'constraints is undefined');
+ err.name = 'NotFoundError';
+ // from https://heycam.github.io/webidl/#idl-DOMException-error-names
+ err.code = 8;
+ return Promise.reject(err);
+ }
+ if (constraints.video === true) {
+ constraints.video = {
+ mediaSource: preferredMediaSource
+ };
+ } else {
+ constraints.video.mediaSource = preferredMediaSource;
+ }
+ return window.navigator.mediaDevices.getUserMedia(constraints);
+ };
+}
+
+},{}],9:[function(require,module,exports){
+/*
+ * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree.
+ */
+/* eslint-env node */
+'use strict';
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.shimGetUserMedia = shimGetUserMedia;
+var utils = _interopRequireWildcard(require("../utils"));
+function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
+function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
+function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
+function shimGetUserMedia(window, browserDetails) {
+ var navigator = window && window.navigator;
+ var MediaStreamTrack = window && window.MediaStreamTrack;
+ navigator.getUserMedia = function (constraints, onSuccess, onError) {
+ // Replace Firefox 44+'s deprecation warning with unprefixed version.
+ utils.deprecated('navigator.getUserMedia', 'navigator.mediaDevices.getUserMedia');
+ navigator.mediaDevices.getUserMedia(constraints).then(onSuccess, onError);
+ };
+ if (!(browserDetails.version > 55 && 'autoGainControl' in navigator.mediaDevices.getSupportedConstraints())) {
+ var remap = function remap(obj, a, b) {
+ if (a in obj && !(b in obj)) {
+ obj[b] = obj[a];
+ delete obj[a];
+ }
+ };
+ var nativeGetUserMedia = navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices);
+ navigator.mediaDevices.getUserMedia = function (c) {
+ if (_typeof(c) === 'object' && _typeof(c.audio) === 'object') {
+ c = JSON.parse(JSON.stringify(c));
+ remap(c.audio, 'autoGainControl', 'mozAutoGainControl');
+ remap(c.audio, 'noiseSuppression', 'mozNoiseSuppression');
+ }
+ return nativeGetUserMedia(c);
+ };
+ if (MediaStreamTrack && MediaStreamTrack.prototype.getSettings) {
+ var nativeGetSettings = MediaStreamTrack.prototype.getSettings;
+ MediaStreamTrack.prototype.getSettings = function () {
+ var obj = nativeGetSettings.apply(this, arguments);
+ remap(obj, 'mozAutoGainControl', 'autoGainControl');
+ remap(obj, 'mozNoiseSuppression', 'noiseSuppression');
+ return obj;
+ };
+ }
+ if (MediaStreamTrack && MediaStreamTrack.prototype.applyConstraints) {
+ var nativeApplyConstraints = MediaStreamTrack.prototype.applyConstraints;
+ MediaStreamTrack.prototype.applyConstraints = function (c) {
+ if (this.kind === 'audio' && _typeof(c) === 'object') {
+ c = JSON.parse(JSON.stringify(c));
+ remap(c, 'autoGainControl', 'mozAutoGainControl');
+ remap(c, 'noiseSuppression', 'mozNoiseSuppression');
+ }
+ return nativeApplyConstraints.apply(this, [c]);
+ };
+ }
+ }
+}
+
+},{"../utils":11}],10:[function(require,module,exports){
+/*
+ * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree.
+ */
+'use strict';
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.shimAudioContext = shimAudioContext;
+exports.shimCallbacksAPI = shimCallbacksAPI;
+exports.shimConstraints = shimConstraints;
+exports.shimCreateOfferLegacy = shimCreateOfferLegacy;
+exports.shimGetUserMedia = shimGetUserMedia;
+exports.shimLocalStreamsAPI = shimLocalStreamsAPI;
+exports.shimRTCIceServerUrls = shimRTCIceServerUrls;
+exports.shimRemoteStreamsAPI = shimRemoteStreamsAPI;
+exports.shimTrackEventTransceiver = shimTrackEventTransceiver;
+var utils = _interopRequireWildcard(require("../utils"));
+function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
+function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
+function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
+function shimLocalStreamsAPI(window) {
+ if (_typeof(window) !== 'object' || !window.RTCPeerConnection) {
+ return;
+ }
+ if (!('getLocalStreams' in window.RTCPeerConnection.prototype)) {
+ window.RTCPeerConnection.prototype.getLocalStreams = function getLocalStreams() {
+ if (!this._localStreams) {
+ this._localStreams = [];
+ }
+ return this._localStreams;
+ };
+ }
+ if (!('addStream' in window.RTCPeerConnection.prototype)) {
+ var _addTrack = window.RTCPeerConnection.prototype.addTrack;
+ window.RTCPeerConnection.prototype.addStream = function addStream(stream) {
+ var _this = this;
+ if (!this._localStreams) {
+ this._localStreams = [];
+ }
+ if (!this._localStreams.includes(stream)) {
+ this._localStreams.push(stream);
+ }
+ // Try to emulate Chrome's behaviour of adding in audio-video order.
+ // Safari orders by track id.
+ stream.getAudioTracks().forEach(function (track) {
+ return _addTrack.call(_this, track, stream);
+ });
+ stream.getVideoTracks().forEach(function (track) {
+ return _addTrack.call(_this, track, stream);
+ });
+ };
+ window.RTCPeerConnection.prototype.addTrack = function addTrack(track) {
+ var _this2 = this;
+ for (var _len = arguments.length, streams = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
+ streams[_key - 1] = arguments[_key];
+ }
+ if (streams) {
+ streams.forEach(function (stream) {
+ if (!_this2._localStreams) {
+ _this2._localStreams = [stream];
+ } else if (!_this2._localStreams.includes(stream)) {
+ _this2._localStreams.push(stream);
+ }
+ });
+ }
+ return _addTrack.apply(this, arguments);
+ };
+ }
+ if (!('removeStream' in window.RTCPeerConnection.prototype)) {
+ window.RTCPeerConnection.prototype.removeStream = function removeStream(stream) {
+ var _this3 = this;
+ if (!this._localStreams) {
+ this._localStreams = [];
+ }
+ var index = this._localStreams.indexOf(stream);
+ if (index === -1) {
+ return;
+ }
+ this._localStreams.splice(index, 1);
+ var tracks = stream.getTracks();
+ this.getSenders().forEach(function (sender) {
+ if (tracks.includes(sender.track)) {
+ _this3.removeTrack(sender);
+ }
+ });
+ };
+ }
+}
+function shimRemoteStreamsAPI(window) {
+ if (_typeof(window) !== 'object' || !window.RTCPeerConnection) {
+ return;
+ }
+ if (!('getRemoteStreams' in window.RTCPeerConnection.prototype)) {
+ window.RTCPeerConnection.prototype.getRemoteStreams = function getRemoteStreams() {
+ return this._remoteStreams ? this._remoteStreams : [];
+ };
+ }
+ if (!('onaddstream' in window.RTCPeerConnection.prototype)) {
+ Object.defineProperty(window.RTCPeerConnection.prototype, 'onaddstream', {
+ get: function get() {
+ return this._onaddstream;
+ },
+ set: function set(f) {
+ var _this4 = this;
+ if (this._onaddstream) {
+ this.removeEventListener('addstream', this._onaddstream);
+ this.removeEventListener('track', this._onaddstreampoly);
+ }
+ this.addEventListener('addstream', this._onaddstream = f);
+ this.addEventListener('track', this._onaddstreampoly = function (e) {
+ e.streams.forEach(function (stream) {
+ if (!_this4._remoteStreams) {
+ _this4._remoteStreams = [];
+ }
+ if (_this4._remoteStreams.includes(stream)) {
+ return;
+ }
+ _this4._remoteStreams.push(stream);
+ var event = new Event('addstream');
+ event.stream = stream;
+ _this4.dispatchEvent(event);
+ });
+ });
+ }
+ });
+ var origSetRemoteDescription = window.RTCPeerConnection.prototype.setRemoteDescription;
+ window.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription() {
+ var pc = this;
+ if (!this._onaddstreampoly) {
+ this.addEventListener('track', this._onaddstreampoly = function (e) {
+ e.streams.forEach(function (stream) {
+ if (!pc._remoteStreams) {
+ pc._remoteStreams = [];
+ }
+ if (pc._remoteStreams.indexOf(stream) >= 0) {
+ return;
+ }
+ pc._remoteStreams.push(stream);
+ var event = new Event('addstream');
+ event.stream = stream;
+ pc.dispatchEvent(event);
+ });
+ });
+ }
+ return origSetRemoteDescription.apply(pc, arguments);
+ };
+ }
+}
+function shimCallbacksAPI(window) {
+ if (_typeof(window) !== 'object' || !window.RTCPeerConnection) {
+ return;
+ }
+ var prototype = window.RTCPeerConnection.prototype;
+ var origCreateOffer = prototype.createOffer;
+ var origCreateAnswer = prototype.createAnswer;
+ var setLocalDescription = prototype.setLocalDescription;
+ var setRemoteDescription = prototype.setRemoteDescription;
+ var addIceCandidate = prototype.addIceCandidate;
+ prototype.createOffer = function createOffer(successCallback, failureCallback) {
+ var options = arguments.length >= 2 ? arguments[2] : arguments[0];
+ var promise = origCreateOffer.apply(this, [options]);
+ if (!failureCallback) {
+ return promise;
+ }
+ promise.then(successCallback, failureCallback);
+ return Promise.resolve();
+ };
+ prototype.createAnswer = function createAnswer(successCallback, failureCallback) {
+ var options = arguments.length >= 2 ? arguments[2] : arguments[0];
+ var promise = origCreateAnswer.apply(this, [options]);
+ if (!failureCallback) {
+ return promise;
+ }
+ promise.then(successCallback, failureCallback);
+ return Promise.resolve();
+ };
+ var withCallback = function withCallback(description, successCallback, failureCallback) {
+ var promise = setLocalDescription.apply(this, [description]);
+ if (!failureCallback) {
+ return promise;
+ }
+ promise.then(successCallback, failureCallback);
+ return Promise.resolve();
+ };
+ prototype.setLocalDescription = withCallback;
+ withCallback = function withCallback(description, successCallback, failureCallback) {
+ var promise = setRemoteDescription.apply(this, [description]);
+ if (!failureCallback) {
+ return promise;
+ }
+ promise.then(successCallback, failureCallback);
+ return Promise.resolve();
+ };
+ prototype.setRemoteDescription = withCallback;
+ withCallback = function withCallback(candidate, successCallback, failureCallback) {
+ var promise = addIceCandidate.apply(this, [candidate]);
+ if (!failureCallback) {
+ return promise;
+ }
+ promise.then(successCallback, failureCallback);
+ return Promise.resolve();
+ };
+ prototype.addIceCandidate = withCallback;
+}
+function shimGetUserMedia(window) {
+ var navigator = window && window.navigator;
+ if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {
+ // shim not needed in Safari 12.1
+ var mediaDevices = navigator.mediaDevices;
+ var _getUserMedia = mediaDevices.getUserMedia.bind(mediaDevices);
+ navigator.mediaDevices.getUserMedia = function (constraints) {
+ return _getUserMedia(shimConstraints(constraints));
+ };
+ }
+ if (!navigator.getUserMedia && navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {
+ navigator.getUserMedia = function getUserMedia(constraints, cb, errcb) {
+ navigator.mediaDevices.getUserMedia(constraints).then(cb, errcb);
+ }.bind(navigator);
+ }
+}
+function shimConstraints(constraints) {
+ if (constraints && constraints.video !== undefined) {
+ return Object.assign({}, constraints, {
+ video: utils.compactObject(constraints.video)
+ });
+ }
+ return constraints;
+}
+function shimRTCIceServerUrls(window) {
+ if (!window.RTCPeerConnection) {
+ return;
+ }
+ // migrate from non-spec RTCIceServer.url to RTCIceServer.urls
+ var OrigPeerConnection = window.RTCPeerConnection;
+ window.RTCPeerConnection = function RTCPeerConnection(pcConfig, pcConstraints) {
+ if (pcConfig && pcConfig.iceServers) {
+ var newIceServers = [];
+ for (var i = 0; i < pcConfig.iceServers.length; i++) {
+ var server = pcConfig.iceServers[i];
+ if (server.urls === undefined && server.url) {
+ utils.deprecated('RTCIceServer.url', 'RTCIceServer.urls');
+ server = JSON.parse(JSON.stringify(server));
+ server.urls = server.url;
+ delete server.url;
+ newIceServers.push(server);
+ } else {
+ newIceServers.push(pcConfig.iceServers[i]);
+ }
+ }
+ pcConfig.iceServers = newIceServers;
+ }
+ return new OrigPeerConnection(pcConfig, pcConstraints);
+ };
+ window.RTCPeerConnection.prototype = OrigPeerConnection.prototype;
+ // wrap static methods. Currently just generateCertificate.
+ if ('generateCertificate' in OrigPeerConnection) {
+ Object.defineProperty(window.RTCPeerConnection, 'generateCertificate', {
+ get: function get() {
+ return OrigPeerConnection.generateCertificate;
+ }
+ });
+ }
+}
+function shimTrackEventTransceiver(window) {
+ // Add event.transceiver member over deprecated event.receiver
+ if (_typeof(window) === 'object' && window.RTCTrackEvent && 'receiver' in window.RTCTrackEvent.prototype && !('transceiver' in window.RTCTrackEvent.prototype)) {
+ Object.defineProperty(window.RTCTrackEvent.prototype, 'transceiver', {
+ get: function get() {
+ return {
+ receiver: this.receiver
+ };
+ }
+ });
+ }
+}
+function shimCreateOfferLegacy(window) {
+ var origCreateOffer = window.RTCPeerConnection.prototype.createOffer;
+ window.RTCPeerConnection.prototype.createOffer = function createOffer(offerOptions) {
+ if (offerOptions) {
+ if (typeof offerOptions.offerToReceiveAudio !== 'undefined') {
+ // support bit values
+ offerOptions.offerToReceiveAudio = !!offerOptions.offerToReceiveAudio;
+ }
+ var audioTransceiver = this.getTransceivers().find(function (transceiver) {
+ return transceiver.receiver.track.kind === 'audio';
+ });
+ if (offerOptions.offerToReceiveAudio === false && audioTransceiver) {
+ if (audioTransceiver.direction === 'sendrecv') {
+ if (audioTransceiver.setDirection) {
+ audioTransceiver.setDirection('sendonly');
+ } else {
+ audioTransceiver.direction = 'sendonly';
+ }
+ } else if (audioTransceiver.direction === 'recvonly') {
+ if (audioTransceiver.setDirection) {
+ audioTransceiver.setDirection('inactive');
+ } else {
+ audioTransceiver.direction = 'inactive';
+ }
+ }
+ } else if (offerOptions.offerToReceiveAudio === true && !audioTransceiver) {
+ this.addTransceiver('audio', {
+ direction: 'recvonly'
+ });
+ }
+ if (typeof offerOptions.offerToReceiveVideo !== 'undefined') {
+ // support bit values
+ offerOptions.offerToReceiveVideo = !!offerOptions.offerToReceiveVideo;
+ }
+ var videoTransceiver = this.getTransceivers().find(function (transceiver) {
+ return transceiver.receiver.track.kind === 'video';
+ });
+ if (offerOptions.offerToReceiveVideo === false && videoTransceiver) {
+ if (videoTransceiver.direction === 'sendrecv') {
+ if (videoTransceiver.setDirection) {
+ videoTransceiver.setDirection('sendonly');
+ } else {
+ videoTransceiver.direction = 'sendonly';
+ }
+ } else if (videoTransceiver.direction === 'recvonly') {
+ if (videoTransceiver.setDirection) {
+ videoTransceiver.setDirection('inactive');
+ } else {
+ videoTransceiver.direction = 'inactive';
+ }
+ }
+ } else if (offerOptions.offerToReceiveVideo === true && !videoTransceiver) {
+ this.addTransceiver('video', {
+ direction: 'recvonly'
+ });
+ }
+ }
+ return origCreateOffer.apply(this, arguments);
+ };
+}
+function shimAudioContext(window) {
+ if (_typeof(window) !== 'object' || window.AudioContext) {
+ return;
+ }
+ window.AudioContext = window.webkitAudioContext;
+}
+
+},{"../utils":11}],11:[function(require,module,exports){
+/*
+ * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree.
+ */
+/* eslint-env node */
+'use strict';
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.compactObject = compactObject;
+exports.deprecated = deprecated;
+exports.detectBrowser = detectBrowser;
+exports.disableLog = disableLog;
+exports.disableWarnings = disableWarnings;
+exports.extractVersion = extractVersion;
+exports.filterStats = filterStats;
+exports.log = log;
+exports.walkStats = walkStats;
+exports.wrapPeerConnectionEvent = wrapPeerConnectionEvent;
+function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
+function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
+function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
+function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
+var logDisabled_ = true;
+var deprecationWarnings_ = true;
+
+/**
+ * Extract browser version out of the provided user agent string.
+ *
+ * @param {!string} uastring userAgent string.
+ * @param {!string} expr Regular expression used as match criteria.
+ * @param {!number} pos position in the version string to be returned.
+ * @return {!number} browser version.
+ */
+function extractVersion(uastring, expr, pos) {
+ var match = uastring.match(expr);
+ return match && match.length >= pos && parseInt(match[pos], 10);
+}
+
+// Wraps the peerconnection event eventNameToWrap in a function
+// which returns the modified event object (or false to prevent
+// the event).
+function wrapPeerConnectionEvent(window, eventNameToWrap, wrapper) {
+ if (!window.RTCPeerConnection) {
+ return;
+ }
+ var proto = window.RTCPeerConnection.prototype;
+ var nativeAddEventListener = proto.addEventListener;
+ proto.addEventListener = function (nativeEventName, cb) {
+ if (nativeEventName !== eventNameToWrap) {
+ return nativeAddEventListener.apply(this, arguments);
+ }
+ var wrappedCallback = function wrappedCallback(e) {
+ var modifiedEvent = wrapper(e);
+ if (modifiedEvent) {
+ if (cb.handleEvent) {
+ cb.handleEvent(modifiedEvent);
+ } else {
+ cb(modifiedEvent);
+ }
+ }
+ };
+ this._eventMap = this._eventMap || {};
+ if (!this._eventMap[eventNameToWrap]) {
+ this._eventMap[eventNameToWrap] = new Map();
+ }
+ this._eventMap[eventNameToWrap].set(cb, wrappedCallback);
+ return nativeAddEventListener.apply(this, [nativeEventName, wrappedCallback]);
+ };
+ var nativeRemoveEventListener = proto.removeEventListener;
+ proto.removeEventListener = function (nativeEventName, cb) {
+ if (nativeEventName !== eventNameToWrap || !this._eventMap || !this._eventMap[eventNameToWrap]) {
+ return nativeRemoveEventListener.apply(this, arguments);
+ }
+ if (!this._eventMap[eventNameToWrap].has(cb)) {
+ return nativeRemoveEventListener.apply(this, arguments);
+ }
+ var unwrappedCb = this._eventMap[eventNameToWrap].get(cb);
+ this._eventMap[eventNameToWrap]["delete"](cb);
+ if (this._eventMap[eventNameToWrap].size === 0) {
+ delete this._eventMap[eventNameToWrap];
+ }
+ if (Object.keys(this._eventMap).length === 0) {
+ delete this._eventMap;
+ }
+ return nativeRemoveEventListener.apply(this, [nativeEventName, unwrappedCb]);
+ };
+ Object.defineProperty(proto, 'on' + eventNameToWrap, {
+ get: function get() {
+ return this['_on' + eventNameToWrap];
+ },
+ set: function set(cb) {
+ if (this['_on' + eventNameToWrap]) {
+ this.removeEventListener(eventNameToWrap, this['_on' + eventNameToWrap]);
+ delete this['_on' + eventNameToWrap];
+ }
+ if (cb) {
+ this.addEventListener(eventNameToWrap, this['_on' + eventNameToWrap] = cb);
+ }
+ },
+ enumerable: true,
+ configurable: true
+ });
+}
+function disableLog(bool) {
+ if (typeof bool !== 'boolean') {
+ return new Error('Argument type: ' + _typeof(bool) + '. Please use a boolean.');
+ }
+ logDisabled_ = bool;
+ return bool ? 'adapter.js logging disabled' : 'adapter.js logging enabled';
+}
+
+/**
+ * Disable or enable deprecation warnings
+ * @param {!boolean} bool set to true to disable warnings.
+ */
+function disableWarnings(bool) {
+ if (typeof bool !== 'boolean') {
+ return new Error('Argument type: ' + _typeof(bool) + '. Please use a boolean.');
+ }
+ deprecationWarnings_ = !bool;
+ return 'adapter.js deprecation warnings ' + (bool ? 'disabled' : 'enabled');
+}
+function log() {
+ if ((typeof window === "undefined" ? "undefined" : _typeof(window)) === 'object') {
+ if (logDisabled_) {
+ return;
+ }
+ if (typeof console !== 'undefined' && typeof console.log === 'function') {
+ console.log.apply(console, arguments);
+ }
+ }
+}
+
+/**
+ * Shows a deprecation warning suggesting the modern and spec-compatible API.
+ */
+function deprecated(oldMethod, newMethod) {
+ if (!deprecationWarnings_) {
+ return;
+ }
+ console.warn(oldMethod + ' is deprecated, please use ' + newMethod + ' instead.');
+}
+
+/**
+ * Browser detector.
+ *
+ * @return {object} result containing browser and version
+ * properties.
+ */
+function detectBrowser(window) {
+ // Returned result object.
+ var result = {
+ browser: null,
+ version: null
+ };
+
+ // Fail early if it's not a browser
+ if (typeof window === 'undefined' || !window.navigator || !window.navigator.userAgent) {
+ result.browser = 'Not a browser.';
+ return result;
+ }
+ var navigator = window.navigator;
+ if (navigator.mozGetUserMedia) {
+ // Firefox.
+ result.browser = 'firefox';
+ result.version = extractVersion(navigator.userAgent, /Firefox\/(\d+)\./, 1);
+ } else if (navigator.webkitGetUserMedia || window.isSecureContext === false && window.webkitRTCPeerConnection) {
+ // Chrome, Chromium, Webview, Opera.
+ // Version matches Chrome/WebRTC version.
+ // Chrome 74 removed webkitGetUserMedia on http as well so we need the
+ // more complicated fallback to webkitRTCPeerConnection.
+ result.browser = 'chrome';
+ result.version = extractVersion(navigator.userAgent, /Chrom(e|ium)\/(\d+)\./, 2);
+ } else if (window.RTCPeerConnection && navigator.userAgent.match(/AppleWebKit\/(\d+)\./)) {
+ // Safari.
+ result.browser = 'safari';
+ result.version = extractVersion(navigator.userAgent, /AppleWebKit\/(\d+)\./, 1);
+ result.supportsUnifiedPlan = window.RTCRtpTransceiver && 'currentDirection' in window.RTCRtpTransceiver.prototype;
+ } else {
+ // Default fallthrough: not supported.
+ result.browser = 'Not a supported browser.';
+ return result;
+ }
+ return result;
+}
+
+/**
+ * Checks if something is an object.
+ *
+ * @param {*} val The something you want to check.
+ * @return true if val is an object, false otherwise.
+ */
+function isObject(val) {
+ return Object.prototype.toString.call(val) === '[object Object]';
+}
+
+/**
+ * Remove all empty objects and undefined values
+ * from a nested object -- an enhanced and vanilla version
+ * of Lodash's `compact`.
+ */
+function compactObject(data) {
+ if (!isObject(data)) {
+ return data;
+ }
+ return Object.keys(data).reduce(function (accumulator, key) {
+ var isObj = isObject(data[key]);
+ var value = isObj ? compactObject(data[key]) : data[key];
+ var isEmptyObject = isObj && !Object.keys(value).length;
+ if (value === undefined || isEmptyObject) {
+ return accumulator;
+ }
+ return Object.assign(accumulator, _defineProperty({}, key, value));
+ }, {});
+}
+
+/* iterates the stats graph recursively. */
+function walkStats(stats, base, resultSet) {
+ if (!base || resultSet.has(base.id)) {
+ return;
+ }
+ resultSet.set(base.id, base);
+ Object.keys(base).forEach(function (name) {
+ if (name.endsWith('Id')) {
+ walkStats(stats, stats.get(base[name]), resultSet);
+ } else if (name.endsWith('Ids')) {
+ base[name].forEach(function (id) {
+ walkStats(stats, stats.get(id), resultSet);
+ });
+ }
+ });
+}
+
+/* filter getStats for a sender/receiver track. */
+function filterStats(result, track, outbound) {
+ var streamStatsType = outbound ? 'outbound-rtp' : 'inbound-rtp';
+ var filteredResult = new Map();
+ if (track === null) {
+ return filteredResult;
+ }
+ var trackStats = [];
+ result.forEach(function (value) {
+ if (value.type === 'track' && value.trackIdentifier === track.id) {
+ trackStats.push(value);
+ }
+ });
+ trackStats.forEach(function (trackStat) {
+ result.forEach(function (stats) {
+ if (stats.type === streamStatsType && stats.trackId === trackStat.id) {
+ walkStats(result, stats, filteredResult);
+ }
+ });
+ });
+ return filteredResult;
+}
+
+},{}],12:[function(require,module,exports){
+/* eslint-env node */
+'use strict';
+
+// SDP helpers.
+
+var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
+
+var SDPUtils = {};
+
+// Generate an alphanumeric identifier for cname or mids.
+// TODO: use UUIDs instead? https://gist.github.com/jed/982883
+SDPUtils.generateIdentifier = function () {
+ return Math.random().toString(36).substring(2, 12);
+};
+
+// The RTCP CNAME used by all peerconnections from the same JS.
+SDPUtils.localCName = SDPUtils.generateIdentifier();
+
+// Splits SDP into lines, dealing with both CRLF and LF.
+SDPUtils.splitLines = function (blob) {
+ return blob.trim().split('\n').map(function (line) {
+ return line.trim();
+ });
+};
+// Splits SDP into sessionpart and mediasections. Ensures CRLF.
+SDPUtils.splitSections = function (blob) {
+ var parts = blob.split('\nm=');
+ return parts.map(function (part, index) {
+ return (index > 0 ? 'm=' + part : part).trim() + '\r\n';
+ });
+};
+
+// Returns the session description.
+SDPUtils.getDescription = function (blob) {
+ var sections = SDPUtils.splitSections(blob);
+ return sections && sections[0];
+};
+
+// Returns the individual media sections.
+SDPUtils.getMediaSections = function (blob) {
+ var sections = SDPUtils.splitSections(blob);
+ sections.shift();
+ return sections;
+};
+
+// Returns lines that start with a certain prefix.
+SDPUtils.matchPrefix = function (blob, prefix) {
+ return SDPUtils.splitLines(blob).filter(function (line) {
+ return line.indexOf(prefix) === 0;
+ });
+};
+
+// Parses an ICE candidate line. Sample input:
+// candidate:702786350 2 udp 41819902 8.8.8.8 60769 typ relay raddr 8.8.8.8
+// rport 55996"
+// Input can be prefixed with a=.
+SDPUtils.parseCandidate = function (line) {
+ var parts = void 0;
+ // Parse both variants.
+ if (line.indexOf('a=candidate:') === 0) {
+ parts = line.substring(12).split(' ');
+ } else {
+ parts = line.substring(10).split(' ');
+ }
+
+ var candidate = {
+ foundation: parts[0],
+ component: { 1: 'rtp', 2: 'rtcp' }[parts[1]] || parts[1],
+ protocol: parts[2].toLowerCase(),
+ priority: parseInt(parts[3], 10),
+ ip: parts[4],
+ address: parts[4], // address is an alias for ip.
+ port: parseInt(parts[5], 10),
+ // skip parts[6] == 'typ'
+ type: parts[7]
+ };
+
+ for (var i = 8; i < parts.length; i += 2) {
+ switch (parts[i]) {
+ case 'raddr':
+ candidate.relatedAddress = parts[i + 1];
+ break;
+ case 'rport':
+ candidate.relatedPort = parseInt(parts[i + 1], 10);
+ break;
+ case 'tcptype':
+ candidate.tcpType = parts[i + 1];
+ break;
+ case 'ufrag':
+ candidate.ufrag = parts[i + 1]; // for backward compatibility.
+ candidate.usernameFragment = parts[i + 1];
+ break;
+ default:
+ // extension handling, in particular ufrag. Don't overwrite.
+ if (candidate[parts[i]] === undefined) {
+ candidate[parts[i]] = parts[i + 1];
+ }
+ break;
+ }
+ }
+ return candidate;
+};
+
+// Translates a candidate object into SDP candidate attribute.
+// This does not include the a= prefix!
+SDPUtils.writeCandidate = function (candidate) {
+ var sdp = [];
+ sdp.push(candidate.foundation);
+
+ var component = candidate.component;
+ if (component === 'rtp') {
+ sdp.push(1);
+ } else if (component === 'rtcp') {
+ sdp.push(2);
+ } else {
+ sdp.push(component);
+ }
+ sdp.push(candidate.protocol.toUpperCase());
+ sdp.push(candidate.priority);
+ sdp.push(candidate.address || candidate.ip);
+ sdp.push(candidate.port);
+
+ var type = candidate.type;
+ sdp.push('typ');
+ sdp.push(type);
+ if (type !== 'host' && candidate.relatedAddress && candidate.relatedPort) {
+ sdp.push('raddr');
+ sdp.push(candidate.relatedAddress);
+ sdp.push('rport');
+ sdp.push(candidate.relatedPort);
+ }
+ if (candidate.tcpType && candidate.protocol.toLowerCase() === 'tcp') {
+ sdp.push('tcptype');
+ sdp.push(candidate.tcpType);
+ }
+ if (candidate.usernameFragment || candidate.ufrag) {
+ sdp.push('ufrag');
+ sdp.push(candidate.usernameFragment || candidate.ufrag);
+ }
+ return 'candidate:' + sdp.join(' ');
+};
+
+// Parses an ice-options line, returns an array of option tags.
+// Sample input:
+// a=ice-options:foo bar
+SDPUtils.parseIceOptions = function (line) {
+ return line.substring(14).split(' ');
+};
+
+// Parses a rtpmap line, returns RTCRtpCoddecParameters. Sample input:
+// a=rtpmap:111 opus/48000/2
+SDPUtils.parseRtpMap = function (line) {
+ var parts = line.substring(9).split(' ');
+ var parsed = {
+ payloadType: parseInt(parts.shift(), 10) // was: id
+ };
+
+ parts = parts[0].split('/');
+
+ parsed.name = parts[0];
+ parsed.clockRate = parseInt(parts[1], 10); // was: clockrate
+ parsed.channels = parts.length === 3 ? parseInt(parts[2], 10) : 1;
+ // legacy alias, got renamed back to channels in ORTC.
+ parsed.numChannels = parsed.channels;
+ return parsed;
+};
+
+// Generates a rtpmap line from RTCRtpCodecCapability or
+// RTCRtpCodecParameters.
+SDPUtils.writeRtpMap = function (codec) {
+ var pt = codec.payloadType;
+ if (codec.preferredPayloadType !== undefined) {
+ pt = codec.preferredPayloadType;
+ }
+ var channels = codec.channels || codec.numChannels || 1;
+ return 'a=rtpmap:' + pt + ' ' + codec.name + '/' + codec.clockRate + (channels !== 1 ? '/' + channels : '') + '\r\n';
+};
+
+// Parses a extmap line (headerextension from RFC 5285). Sample input:
+// a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
+// a=extmap:2/sendonly urn:ietf:params:rtp-hdrext:toffset
+SDPUtils.parseExtmap = function (line) {
+ var parts = line.substring(9).split(' ');
+ return {
+ id: parseInt(parts[0], 10),
+ direction: parts[0].indexOf('/') > 0 ? parts[0].split('/')[1] : 'sendrecv',
+ uri: parts[1],
+ attributes: parts.slice(2).join(' ')
+ };
+};
+
+// Generates an extmap line from RTCRtpHeaderExtensionParameters or
+// RTCRtpHeaderExtension.
+SDPUtils.writeExtmap = function (headerExtension) {
+ return 'a=extmap:' + (headerExtension.id || headerExtension.preferredId) + (headerExtension.direction && headerExtension.direction !== 'sendrecv' ? '/' + headerExtension.direction : '') + ' ' + headerExtension.uri + (headerExtension.attributes ? ' ' + headerExtension.attributes : '') + '\r\n';
+};
+
+// Parses a fmtp line, returns dictionary. Sample input:
+// a=fmtp:96 vbr=on;cng=on
+// Also deals with vbr=on; cng=on
+SDPUtils.parseFmtp = function (line) {
+ var parsed = {};
+ var kv = void 0;
+ var parts = line.substring(line.indexOf(' ') + 1).split(';');
+ for (var j = 0; j < parts.length; j++) {
+ kv = parts[j].trim().split('=');
+ parsed[kv[0].trim()] = kv[1];
+ }
+ return parsed;
+};
+
+// Generates a fmtp line from RTCRtpCodecCapability or RTCRtpCodecParameters.
+SDPUtils.writeFmtp = function (codec) {
+ var line = '';
+ var pt = codec.payloadType;
+ if (codec.preferredPayloadType !== undefined) {
+ pt = codec.preferredPayloadType;
+ }
+ if (codec.parameters && Object.keys(codec.parameters).length) {
+ var params = [];
+ Object.keys(codec.parameters).forEach(function (param) {
+ if (codec.parameters[param] !== undefined) {
+ params.push(param + '=' + codec.parameters[param]);
+ } else {
+ params.push(param);
+ }
+ });
+ line += 'a=fmtp:' + pt + ' ' + params.join(';') + '\r\n';
+ }
+ return line;
+};
+
+// Parses a rtcp-fb line, returns RTCPRtcpFeedback object. Sample input:
+// a=rtcp-fb:98 nack rpsi
+SDPUtils.parseRtcpFb = function (line) {
+ var parts = line.substring(line.indexOf(' ') + 1).split(' ');
+ return {
+ type: parts.shift(),
+ parameter: parts.join(' ')
+ };
+};
+
+// Generate a=rtcp-fb lines from RTCRtpCodecCapability or RTCRtpCodecParameters.
+SDPUtils.writeRtcpFb = function (codec) {
+ var lines = '';
+ var pt = codec.payloadType;
+ if (codec.preferredPayloadType !== undefined) {
+ pt = codec.preferredPayloadType;
+ }
+ if (codec.rtcpFeedback && codec.rtcpFeedback.length) {
+ // FIXME: special handling for trr-int?
+ codec.rtcpFeedback.forEach(function (fb) {
+ lines += 'a=rtcp-fb:' + pt + ' ' + fb.type + (fb.parameter && fb.parameter.length ? ' ' + fb.parameter : '') + '\r\n';
+ });
+ }
+ return lines;
+};
+
+// Parses a RFC 5576 ssrc media attribute. Sample input:
+// a=ssrc:3735928559 cname:something
+SDPUtils.parseSsrcMedia = function (line) {
+ var sp = line.indexOf(' ');
+ var parts = {
+ ssrc: parseInt(line.substring(7, sp), 10)
+ };
+ var colon = line.indexOf(':', sp);
+ if (colon > -1) {
+ parts.attribute = line.substring(sp + 1, colon);
+ parts.value = line.substring(colon + 1);
+ } else {
+ parts.attribute = line.substring(sp + 1);
+ }
+ return parts;
+};
+
+// Parse a ssrc-group line (see RFC 5576). Sample input:
+// a=ssrc-group:semantics 12 34
+SDPUtils.parseSsrcGroup = function (line) {
+ var parts = line.substring(13).split(' ');
+ return {
+ semantics: parts.shift(),
+ ssrcs: parts.map(function (ssrc) {
+ return parseInt(ssrc, 10);
+ })
+ };
+};
+
+// Extracts the MID (RFC 5888) from a media section.
+// Returns the MID or undefined if no mid line was found.
+SDPUtils.getMid = function (mediaSection) {
+ var mid = SDPUtils.matchPrefix(mediaSection, 'a=mid:')[0];
+ if (mid) {
+ return mid.substring(6);
+ }
+};
+
+// Parses a fingerprint line for DTLS-SRTP.
+SDPUtils.parseFingerprint = function (line) {
+ var parts = line.substring(14).split(' ');
+ return {
+ algorithm: parts[0].toLowerCase(), // algorithm is case-sensitive in Edge.
+ value: parts[1].toUpperCase() // the definition is upper-case in RFC 4572.
+ };
+};
+
+// Extracts DTLS parameters from SDP media section or sessionpart.
+// FIXME: for consistency with other functions this should only
+// get the fingerprint line as input. See also getIceParameters.
+SDPUtils.getDtlsParameters = function (mediaSection, sessionpart) {
+ var lines = SDPUtils.matchPrefix(mediaSection + sessionpart, 'a=fingerprint:');
+ // Note: a=setup line is ignored since we use the 'auto' role in Edge.
+ return {
+ role: 'auto',
+ fingerprints: lines.map(SDPUtils.parseFingerprint)
+ };
+};
+
+// Serializes DTLS parameters to SDP.
+SDPUtils.writeDtlsParameters = function (params, setupType) {
+ var sdp = 'a=setup:' + setupType + '\r\n';
+ params.fingerprints.forEach(function (fp) {
+ sdp += 'a=fingerprint:' + fp.algorithm + ' ' + fp.value + '\r\n';
+ });
+ return sdp;
+};
+
+// Parses a=crypto lines into
+// https://rawgit.com/aboba/edgertc/master/msortc-rs4.html#dictionary-rtcsrtpsdesparameters-members
+SDPUtils.parseCryptoLine = function (line) {
+ var parts = line.substring(9).split(' ');
+ return {
+ tag: parseInt(parts[0], 10),
+ cryptoSuite: parts[1],
+ keyParams: parts[2],
+ sessionParams: parts.slice(3)
+ };
+};
+
+SDPUtils.writeCryptoLine = function (parameters) {
+ return 'a=crypto:' + parameters.tag + ' ' + parameters.cryptoSuite + ' ' + (_typeof(parameters.keyParams) === 'object' ? SDPUtils.writeCryptoKeyParams(parameters.keyParams) : parameters.keyParams) + (parameters.sessionParams ? ' ' + parameters.sessionParams.join(' ') : '') + '\r\n';
+};
+
+// Parses the crypto key parameters into
+// https://rawgit.com/aboba/edgertc/master/msortc-rs4.html#rtcsrtpkeyparam*
+SDPUtils.parseCryptoKeyParams = function (keyParams) {
+ if (keyParams.indexOf('inline:') !== 0) {
+ return null;
+ }
+ var parts = keyParams.substring(7).split('|');
+ return {
+ keyMethod: 'inline',
+ keySalt: parts[0],
+ lifeTime: parts[1],
+ mkiValue: parts[2] ? parts[2].split(':')[0] : undefined,
+ mkiLength: parts[2] ? parts[2].split(':')[1] : undefined
+ };
+};
+
+SDPUtils.writeCryptoKeyParams = function (keyParams) {
+ return keyParams.keyMethod + ':' + keyParams.keySalt + (keyParams.lifeTime ? '|' + keyParams.lifeTime : '') + (keyParams.mkiValue && keyParams.mkiLength ? '|' + keyParams.mkiValue + ':' + keyParams.mkiLength : '');
+};
+
+// Extracts all SDES parameters.
+SDPUtils.getCryptoParameters = function (mediaSection, sessionpart) {
+ var lines = SDPUtils.matchPrefix(mediaSection + sessionpart, 'a=crypto:');
+ return lines.map(SDPUtils.parseCryptoLine);
+};
+
+// Parses ICE information from SDP media section or sessionpart.
+// FIXME: for consistency with other functions this should only
+// get the ice-ufrag and ice-pwd lines as input.
+SDPUtils.getIceParameters = function (mediaSection, sessionpart) {
+ var ufrag = SDPUtils.matchPrefix(mediaSection + sessionpart, 'a=ice-ufrag:')[0];
+ var pwd = SDPUtils.matchPrefix(mediaSection + sessionpart, 'a=ice-pwd:')[0];
+ if (!(ufrag && pwd)) {
+ return null;
+ }
+ return {
+ usernameFragment: ufrag.substring(12),
+ password: pwd.substring(10)
+ };
+};
+
+// Serializes ICE parameters to SDP.
+SDPUtils.writeIceParameters = function (params) {
+ var sdp = 'a=ice-ufrag:' + params.usernameFragment + '\r\n' + 'a=ice-pwd:' + params.password + '\r\n';
+ if (params.iceLite) {
+ sdp += 'a=ice-lite\r\n';
+ }
+ return sdp;
+};
+
+// Parses the SDP media section and returns RTCRtpParameters.
+SDPUtils.parseRtpParameters = function (mediaSection) {
+ var description = {
+ codecs: [],
+ headerExtensions: [],
+ fecMechanisms: [],
+ rtcp: []
+ };
+ var lines = SDPUtils.splitLines(mediaSection);
+ var mline = lines[0].split(' ');
+ description.profile = mline[2];
+ for (var i = 3; i < mline.length; i++) {
+ // find all codecs from mline[3..]
+ var pt = mline[i];
+ var rtpmapline = SDPUtils.matchPrefix(mediaSection, 'a=rtpmap:' + pt + ' ')[0];
+ if (rtpmapline) {
+ var codec = SDPUtils.parseRtpMap(rtpmapline);
+ var fmtps = SDPUtils.matchPrefix(mediaSection, 'a=fmtp:' + pt + ' ');
+ // Only the first a=fmtp: is considered.
+ codec.parameters = fmtps.length ? SDPUtils.parseFmtp(fmtps[0]) : {};
+ codec.rtcpFeedback = SDPUtils.matchPrefix(mediaSection, 'a=rtcp-fb:' + pt + ' ').map(SDPUtils.parseRtcpFb);
+ description.codecs.push(codec);
+ // parse FEC mechanisms from rtpmap lines.
+ switch (codec.name.toUpperCase()) {
+ case 'RED':
+ case 'ULPFEC':
+ description.fecMechanisms.push(codec.name.toUpperCase());
+ break;
+ default:
+ // only RED and ULPFEC are recognized as FEC mechanisms.
+ break;
+ }
+ }
+ }
+ SDPUtils.matchPrefix(mediaSection, 'a=extmap:').forEach(function (line) {
+ description.headerExtensions.push(SDPUtils.parseExtmap(line));
+ });
+ var wildcardRtcpFb = SDPUtils.matchPrefix(mediaSection, 'a=rtcp-fb:* ').map(SDPUtils.parseRtcpFb);
+ description.codecs.forEach(function (codec) {
+ wildcardRtcpFb.forEach(function (fb) {
+ var duplicate = codec.rtcpFeedback.find(function (existingFeedback) {
+ return existingFeedback.type === fb.type && existingFeedback.parameter === fb.parameter;
+ });
+ if (!duplicate) {
+ codec.rtcpFeedback.push(fb);
+ }
+ });
+ });
+ // FIXME: parse rtcp.
+ return description;
+};
+
+// Generates parts of the SDP media section describing the capabilities /
+// parameters.
+SDPUtils.writeRtpDescription = function (kind, caps) {
+ var sdp = '';
+
+ // Build the mline.
+ sdp += 'm=' + kind + ' ';
+ sdp += caps.codecs.length > 0 ? '9' : '0'; // reject if no codecs.
+ sdp += ' ' + (caps.profile || 'UDP/TLS/RTP/SAVPF') + ' ';
+ sdp += caps.codecs.map(function (codec) {
+ if (codec.preferredPayloadType !== undefined) {
+ return codec.preferredPayloadType;
+ }
+ return codec.payloadType;
+ }).join(' ') + '\r\n';
+
+ sdp += 'c=IN IP4 0.0.0.0\r\n';
+ sdp += 'a=rtcp:9 IN IP4 0.0.0.0\r\n';
+
+ // Add a=rtpmap lines for each codec. Also fmtp and rtcp-fb.
+ caps.codecs.forEach(function (codec) {
+ sdp += SDPUtils.writeRtpMap(codec);
+ sdp += SDPUtils.writeFmtp(codec);
+ sdp += SDPUtils.writeRtcpFb(codec);
+ });
+ var maxptime = 0;
+ caps.codecs.forEach(function (codec) {
+ if (codec.maxptime > maxptime) {
+ maxptime = codec.maxptime;
+ }
+ });
+ if (maxptime > 0) {
+ sdp += 'a=maxptime:' + maxptime + '\r\n';
+ }
+
+ if (caps.headerExtensions) {
+ caps.headerExtensions.forEach(function (extension) {
+ sdp += SDPUtils.writeExtmap(extension);
+ });
+ }
+ // FIXME: write fecMechanisms.
+ return sdp;
+};
+
+// Parses the SDP media section and returns an array of
+// RTCRtpEncodingParameters.
+SDPUtils.parseRtpEncodingParameters = function (mediaSection) {
+ var encodingParameters = [];
+ var description = SDPUtils.parseRtpParameters(mediaSection);
+ var hasRed = description.fecMechanisms.indexOf('RED') !== -1;
+ var hasUlpfec = description.fecMechanisms.indexOf('ULPFEC') !== -1;
+
+ // filter a=ssrc:... cname:, ignore PlanB-msid
+ var ssrcs = SDPUtils.matchPrefix(mediaSection, 'a=ssrc:').map(function (line) {
+ return SDPUtils.parseSsrcMedia(line);
+ }).filter(function (parts) {
+ return parts.attribute === 'cname';
+ });
+ var primarySsrc = ssrcs.length > 0 && ssrcs[0].ssrc;
+ var secondarySsrc = void 0;
+
+ var flows = SDPUtils.matchPrefix(mediaSection, 'a=ssrc-group:FID').map(function (line) {
+ var parts = line.substring(17).split(' ');
+ return parts.map(function (part) {
+ return parseInt(part, 10);
+ });
+ });
+ if (flows.length > 0 && flows[0].length > 1 && flows[0][0] === primarySsrc) {
+ secondarySsrc = flows[0][1];
+ }
+
+ description.codecs.forEach(function (codec) {
+ if (codec.name.toUpperCase() === 'RTX' && codec.parameters.apt) {
+ var encParam = {
+ ssrc: primarySsrc,
+ codecPayloadType: parseInt(codec.parameters.apt, 10)
+ };
+ if (primarySsrc && secondarySsrc) {
+ encParam.rtx = { ssrc: secondarySsrc };
+ }
+ encodingParameters.push(encParam);
+ if (hasRed) {
+ encParam = JSON.parse(JSON.stringify(encParam));
+ encParam.fec = {
+ ssrc: primarySsrc,
+ mechanism: hasUlpfec ? 'red+ulpfec' : 'red'
+ };
+ encodingParameters.push(encParam);
+ }
+ }
+ });
+ if (encodingParameters.length === 0 && primarySsrc) {
+ encodingParameters.push({
+ ssrc: primarySsrc
+ });
+ }
+
+ // we support both b=AS and b=TIAS but interpret AS as TIAS.
+ var bandwidth = SDPUtils.matchPrefix(mediaSection, 'b=');
+ if (bandwidth.length) {
+ if (bandwidth[0].indexOf('b=TIAS:') === 0) {
+ bandwidth = parseInt(bandwidth[0].substring(7), 10);
+ } else if (bandwidth[0].indexOf('b=AS:') === 0) {
+ // use formula from JSEP to convert b=AS to TIAS value.
+ bandwidth = parseInt(bandwidth[0].substring(5), 10) * 1000 * 0.95 - 50 * 40 * 8;
+ } else {
+ bandwidth = undefined;
+ }
+ encodingParameters.forEach(function (params) {
+ params.maxBitrate = bandwidth;
+ });
+ }
+ return encodingParameters;
+};
+
+// parses http://draft.ortc.org/#rtcrtcpparameters*
+SDPUtils.parseRtcpParameters = function (mediaSection) {
+ var rtcpParameters = {};
+
+ // Gets the first SSRC. Note that with RTX there might be multiple
+ // SSRCs.
+ var remoteSsrc = SDPUtils.matchPrefix(mediaSection, 'a=ssrc:').map(function (line) {
+ return SDPUtils.parseSsrcMedia(line);
+ }).filter(function (obj) {
+ return obj.attribute === 'cname';
+ })[0];
+ if (remoteSsrc) {
+ rtcpParameters.cname = remoteSsrc.value;
+ rtcpParameters.ssrc = remoteSsrc.ssrc;
+ }
+
+ // Edge uses the compound attribute instead of reducedSize
+ // compound is !reducedSize
+ var rsize = SDPUtils.matchPrefix(mediaSection, 'a=rtcp-rsize');
+ rtcpParameters.reducedSize = rsize.length > 0;
+ rtcpParameters.compound = rsize.length === 0;
+
+ // parses the rtcp-mux attrіbute.
+ // Note that Edge does not support unmuxed RTCP.
+ var mux = SDPUtils.matchPrefix(mediaSection, 'a=rtcp-mux');
+ rtcpParameters.mux = mux.length > 0;
+
+ return rtcpParameters;
+};
+
+SDPUtils.writeRtcpParameters = function (rtcpParameters) {
+ var sdp = '';
+ if (rtcpParameters.reducedSize) {
+ sdp += 'a=rtcp-rsize\r\n';
+ }
+ if (rtcpParameters.mux) {
+ sdp += 'a=rtcp-mux\r\n';
+ }
+ if (rtcpParameters.ssrc !== undefined && rtcpParameters.cname) {
+ sdp += 'a=ssrc:' + rtcpParameters.ssrc + ' cname:' + rtcpParameters.cname + '\r\n';
+ }
+ return sdp;
+};
+
+// parses either a=msid: or a=ssrc:... msid lines and returns
+// the id of the MediaStream and MediaStreamTrack.
+SDPUtils.parseMsid = function (mediaSection) {
+ var parts = void 0;
+ var spec = SDPUtils.matchPrefix(mediaSection, 'a=msid:');
+ if (spec.length === 1) {
+ parts = spec[0].substring(7).split(' ');
+ return { stream: parts[0], track: parts[1] };
+ }
+ var planB = SDPUtils.matchPrefix(mediaSection, 'a=ssrc:').map(function (line) {
+ return SDPUtils.parseSsrcMedia(line);
+ }).filter(function (msidParts) {
+ return msidParts.attribute === 'msid';
+ });
+ if (planB.length > 0) {
+ parts = planB[0].value.split(' ');
+ return { stream: parts[0], track: parts[1] };
+ }
+};
+
+// SCTP
+// parses draft-ietf-mmusic-sctp-sdp-26 first and falls back
+// to draft-ietf-mmusic-sctp-sdp-05
+SDPUtils.parseSctpDescription = function (mediaSection) {
+ var mline = SDPUtils.parseMLine(mediaSection);
+ var maxSizeLine = SDPUtils.matchPrefix(mediaSection, 'a=max-message-size:');
+ var maxMessageSize = void 0;
+ if (maxSizeLine.length > 0) {
+ maxMessageSize = parseInt(maxSizeLine[0].substring(19), 10);
+ }
+ if (isNaN(maxMessageSize)) {
+ maxMessageSize = 65536;
+ }
+ var sctpPort = SDPUtils.matchPrefix(mediaSection, 'a=sctp-port:');
+ if (sctpPort.length > 0) {
+ return {
+ port: parseInt(sctpPort[0].substring(12), 10),
+ protocol: mline.fmt,
+ maxMessageSize: maxMessageSize
+ };
+ }
+ var sctpMapLines = SDPUtils.matchPrefix(mediaSection, 'a=sctpmap:');
+ if (sctpMapLines.length > 0) {
+ var parts = sctpMapLines[0].substring(10).split(' ');
+ return {
+ port: parseInt(parts[0], 10),
+ protocol: parts[1],
+ maxMessageSize: maxMessageSize
+ };
+ }
+};
+
+// SCTP
+// outputs the draft-ietf-mmusic-sctp-sdp-26 version that all browsers
+// support by now receiving in this format, unless we originally parsed
+// as the draft-ietf-mmusic-sctp-sdp-05 format (indicated by the m-line
+// protocol of DTLS/SCTP -- without UDP/ or TCP/)
+SDPUtils.writeSctpDescription = function (media, sctp) {
+ var output = [];
+ if (media.protocol !== 'DTLS/SCTP') {
+ output = ['m=' + media.kind + ' 9 ' + media.protocol + ' ' + sctp.protocol + '\r\n', 'c=IN IP4 0.0.0.0\r\n', 'a=sctp-port:' + sctp.port + '\r\n'];
+ } else {
+ output = ['m=' + media.kind + ' 9 ' + media.protocol + ' ' + sctp.port + '\r\n', 'c=IN IP4 0.0.0.0\r\n', 'a=sctpmap:' + sctp.port + ' ' + sctp.protocol + ' 65535\r\n'];
+ }
+ if (sctp.maxMessageSize !== undefined) {
+ output.push('a=max-message-size:' + sctp.maxMessageSize + '\r\n');
+ }
+ return output.join('');
+};
+
+// Generate a session ID for SDP.
+// https://tools.ietf.org/html/draft-ietf-rtcweb-jsep-20#section-5.2.1
+// recommends using a cryptographically random +ve 64-bit value
+// but right now this should be acceptable and within the right range
+SDPUtils.generateSessionId = function () {
+ return Math.random().toString().substr(2, 22);
+};
+
+// Write boiler plate for start of SDP
+// sessId argument is optional - if not supplied it will
+// be generated randomly
+// sessVersion is optional and defaults to 2
+// sessUser is optional and defaults to 'thisisadapterortc'
+SDPUtils.writeSessionBoilerplate = function (sessId, sessVer, sessUser) {
+ var sessionId = void 0;
+ var version = sessVer !== undefined ? sessVer : 2;
+ if (sessId) {
+ sessionId = sessId;
+ } else {
+ sessionId = SDPUtils.generateSessionId();
+ }
+ var user = sessUser || 'thisisadapterortc';
+ // FIXME: sess-id should be an NTP timestamp.
+ return 'v=0\r\n' + 'o=' + user + ' ' + sessionId + ' ' + version + ' IN IP4 127.0.0.1\r\n' + 's=-\r\n' + 't=0 0\r\n';
+};
+
+// Gets the direction from the mediaSection or the sessionpart.
+SDPUtils.getDirection = function (mediaSection, sessionpart) {
+ // Look for sendrecv, sendonly, recvonly, inactive, default to sendrecv.
+ var lines = SDPUtils.splitLines(mediaSection);
+ for (var i = 0; i < lines.length; i++) {
+ switch (lines[i]) {
+ case 'a=sendrecv':
+ case 'a=sendonly':
+ case 'a=recvonly':
+ case 'a=inactive':
+ return lines[i].substring(2);
+ default:
+ // FIXME: What should happen here?
+ }
+ }
+ if (sessionpart) {
+ return SDPUtils.getDirection(sessionpart);
+ }
+ return 'sendrecv';
+};
+
+SDPUtils.getKind = function (mediaSection) {
+ var lines = SDPUtils.splitLines(mediaSection);
+ var mline = lines[0].split(' ');
+ return mline[0].substring(2);
+};
+
+SDPUtils.isRejected = function (mediaSection) {
+ return mediaSection.split(' ', 2)[1] === '0';
+};
+
+SDPUtils.parseMLine = function (mediaSection) {
+ var lines = SDPUtils.splitLines(mediaSection);
+ var parts = lines[0].substring(2).split(' ');
+ return {
+ kind: parts[0],
+ port: parseInt(parts[1], 10),
+ protocol: parts[2],
+ fmt: parts.slice(3).join(' ')
+ };
+};
+
+SDPUtils.parseOLine = function (mediaSection) {
+ var line = SDPUtils.matchPrefix(mediaSection, 'o=')[0];
+ var parts = line.substring(2).split(' ');
+ return {
+ username: parts[0],
+ sessionId: parts[1],
+ sessionVersion: parseInt(parts[2], 10),
+ netType: parts[3],
+ addressType: parts[4],
+ address: parts[5]
+ };
+};
+
+// a very naive interpretation of a valid SDP.
+SDPUtils.isValidSDP = function (blob) {
+ if (typeof blob !== 'string' || blob.length === 0) {
+ return false;
+ }
+ var lines = SDPUtils.splitLines(blob);
+ for (var i = 0; i < lines.length; i++) {
+ if (lines[i].length < 2 || lines[i].charAt(1) !== '=') {
+ return false;
+ }
+ // TODO: check the modifier a bit more.
+ }
+ return true;
+};
+
+// Expose public methods.
+if ((typeof module === 'undefined' ? 'undefined' : _typeof(module)) === 'object') {
+ module.exports = SDPUtils;
+}
+},{}]},{},[1])(1)
+});
diff --git a/web-v2-res/static/js/axios.js b/web-v2-res/static/js/axios.js
new file mode 100644
index 0000000..8d6b7d6
--- /dev/null
+++ b/web-v2-res/static/js/axios.js
@@ -0,0 +1,637 @@
+/* axios v0.18.0 | (c) 2018 by Matt Zabriskie */ ! function(e, t) {
+ "object" == typeof exports && "object" == typeof module ? module.exports = t() :
+ "function" == typeof define && define.amd ? define([], t) : "object" ==
+ typeof exports ? exports.axios = t() : e.axios = t()
+}(this, function() {
+ return function(e) {
+ function t(r) {
+ if (n[r]) return n[r].exports;
+ var o = n[r] = {
+ exports: {},
+ id: r,
+ loaded: !1
+ };
+ return e[r].call(o.exports, o, o.exports, t), o.loaded = !0, o.exports
+ }
+ var n = {};
+ return t.m = e, t.c = n, t.p = "", t(0)
+ }([function(e, t, n) {
+ e.exports = n(1)
+ }, function(e, t, n) {
+ "use strict";
+
+ function r(e) {
+ var t = new s(e),
+ n = i(s.prototype.request, t);
+ return o.extend(n, s.prototype, t), o.extend(n, t), n
+ }
+ var o = n(2),
+ i = n(3),
+ s = n(5),
+ u = n(6),
+ a = r(u);
+ a.Axios = s, a.create = function(e) {
+ return r(o.merge(u, e))
+ }, a.Cancel = n(23), a.CancelToken = n(24), a.isCancel = n(20), a
+ .all = function(e) {
+ return Promise.all(e)
+ }, a.spread = n(25), e.exports = a, e.exports.default = a
+ }, function(e, t, n) {
+ "use strict";
+
+ function r(e) {
+ return "[object Array]" === R.call(e)
+ }
+
+ function o(e) {
+ return "[object ArrayBuffer]" === R.call(e)
+ }
+
+ function i(e) {
+ return "undefined" != typeof FormData && e instanceof FormData
+ }
+
+ function s(e) {
+ var t;
+ return t = "undefined" != typeof ArrayBuffer && ArrayBuffer.isView ?
+ ArrayBuffer.isView(e) : e && e.buffer && e.buffer instanceof ArrayBuffer
+ }
+
+ function u(e) {
+ return "string" == typeof e
+ }
+
+ function a(e) {
+ return "number" == typeof e
+ }
+
+ function c(e) {
+ return "undefined" == typeof e
+ }
+
+ function f(e) {
+ return null !== e && "object" == typeof e
+ }
+
+ function p(e) {
+ return "[object Date]" === R.call(e)
+ }
+
+ function d(e) {
+ return "[object File]" === R.call(e)
+ }
+
+ function l(e) {
+ return "[object Blob]" === R.call(e)
+ }
+
+ function h(e) {
+ return "[object Function]" === R.call(e)
+ }
+
+ function m(e) {
+ return f(e) && h(e.pipe)
+ }
+
+ function y(e) {
+ return "undefined" != typeof URLSearchParams && e instanceof URLSearchParams
+ }
+
+ function w(e) {
+ return e.replace(/^\s*/, "").replace(/\s*$/, "")
+ }
+
+ function g() {
+ return ("undefined" == typeof navigator || "ReactNative" !==
+ navigator.product) && ("undefined" != typeof window &&
+ "undefined" != typeof document)
+ }
+
+ function v(e, t) {
+ if (null !== e && "undefined" != typeof e)
+ if ("object" != typeof e && (e = [e]), r(e))
+ for (var n = 0, o = e.length; n < o; n++) t.call(null, e[n],
+ n, e);
+ else
+ for (var i in e) Object.prototype.hasOwnProperty.call(e, i) &&
+ t.call(null, e[i], i, e)
+ }
+
+ function x() {
+ function e(e, n) {
+ "object" == typeof t[n] && "object" == typeof e ? t[n] = x(t[n],
+ e) : t[n] = e
+ }
+ for (var t = {}, n = 0, r = arguments.length; n < r; n++) v(
+ arguments[n], e);
+ return t
+ }
+
+ function b(e, t, n) {
+ return v(t, function(t, r) {
+ n && "function" == typeof t ? e[r] = E(t, n) : e[r] = t
+ }), e
+ }
+ var E = n(3),
+ C = n(4),
+ R = Object.prototype.toString;
+ e.exports = {
+ isArray: r,
+ isArrayBuffer: o,
+ isBuffer: C,
+ isFormData: i,
+ isArrayBufferView: s,
+ isString: u,
+ isNumber: a,
+ isObject: f,
+ isUndefined: c,
+ isDate: p,
+ isFile: d,
+ isBlob: l,
+ isFunction: h,
+ isStream: m,
+ isURLSearchParams: y,
+ isStandardBrowserEnv: g,
+ forEach: v,
+ merge: x,
+ extend: b,
+ trim: w
+ }
+ }, function(e, t) {
+ "use strict";
+ e.exports = function(e, t) {
+ return function() {
+ for (var n = new Array(arguments.length), r = 0; r < n.length; r++)
+ n[r] = arguments[r];
+ return e.apply(t, n)
+ }
+ }
+ }, function(e, t) {
+ function n(e) {
+ return !!e.constructor && "function" == typeof e.constructor.isBuffer &&
+ e.constructor.isBuffer(e)
+ }
+
+ function r(e) {
+ return "function" == typeof e.readFloatLE && "function" == typeof e
+ .slice && n(e.slice(0, 0))
+ }
+ /*!
+ * Determine if an object is a Buffer
+ *
+ * @author Feross Aboukhadijeh
+ * @license MIT
+ */
+ e.exports = function(e) {
+ return null != e && (n(e) || r(e) || !!e._isBuffer)
+ }
+ }, function(e, t, n) {
+ "use strict";
+
+ function r(e) {
+ this.defaults = e, this.interceptors = {
+ request: new s,
+ response: new s
+ }
+ }
+ var o = n(6),
+ i = n(2),
+ s = n(17),
+ u = n(18);
+ r.prototype.request = function(e) {
+ "string" == typeof e && (e = i.merge({
+ url: arguments[0]
+ }, arguments[1])), e = i.merge(o, {
+ method: "get"
+ }, this.defaults, e), e.method = e.method.toLowerCase();
+ var t = [u, void 0],
+ n = Promise.resolve(e);
+ for (this.interceptors.request.forEach(function(e) {
+ t.unshift(e.fulfilled, e.rejected)
+ }), this.interceptors.response.forEach(function(e) {
+ t.push(e.fulfilled, e.rejected)
+ }); t.length;) n = n.then(t.shift(), t.shift());
+ return n
+ }, i.forEach(["delete", "get", "head", "options"], function(e) {
+ r.prototype[e] = function(t, n) {
+ return this.request(i.merge(n || {}, {
+ method: e,
+ url: t
+ }))
+ }
+ }), i.forEach(["post", "put", "patch"], function(e) {
+ r.prototype[e] = function(t, n, r) {
+ return this.request(i.merge(r || {}, {
+ method: e,
+ url: t,
+ data: n
+ }))
+ }
+ }), e.exports = r
+ }, function(e, t, n) {
+ "use strict";
+
+ function r(e, t) {
+ !i.isUndefined(e) && i.isUndefined(e["Content-Type"]) && (e[
+ "Content-Type"] = t)
+ }
+
+ function o() {
+ var e;
+ return "undefined" != typeof XMLHttpRequest ? e = n(8) :
+ "undefined" != typeof process && (e = n(8)), e
+ }
+ var i = n(2),
+ s = n(7),
+ u = {
+ "Content-Type": "application/x-www-form-urlencoded"
+ },
+ a = {
+ adapter: o(),
+ transformRequest: [function(e, t) {
+ return s(t, "Content-Type"), i.isFormData(e) || i.isArrayBuffer(
+ e) || i.isBuffer(e) || i.isStream(e) || i.isFile(e) ||
+ i.isBlob(e) ? e : i.isArrayBufferView(e) ? e.buffer : i
+ .isURLSearchParams(e) ? (r(t,
+ "application/x-www-form-urlencoded;charset=utf-8"),
+ e.toString()) : i.isObject(e) ? (r(t,
+ "application/json;charset=utf-8"), JSON.stringify(e)) :
+ e
+ }],
+ transformResponse: [function(e) {
+ if ("string" == typeof e) try {
+ e = JSON.parse(e)
+ } catch (e) {}
+ return e
+ }],
+ timeout: 0,
+ xsrfCookieName: "XSRF-TOKEN",
+ xsrfHeaderName: "X-XSRF-TOKEN",
+ maxContentLength: -1,
+ validateStatus: function(e) {
+ return e >= 200 && e < 300
+ }
+ };
+ a.headers = {
+ common: {
+ Accept: "application/json, text/plain, */*"
+ }
+ }, i.forEach(["delete", "get", "head"], function(e) {
+ a.headers[e] = {}
+ }), i.forEach(["post", "put", "patch"], function(e) {
+ a.headers[e] = i.merge(u)
+ }), e.exports = a
+ }, function(e, t, n) {
+ "use strict";
+ var r = n(2);
+ e.exports = function(e, t) {
+ r.forEach(e, function(n, r) {
+ r !== t && r.toUpperCase() === t.toUpperCase() && (e[t] =
+ n, delete e[r])
+ })
+ }
+ }, function(e, t, n) {
+ "use strict";
+ var r = n(2),
+ o = n(9),
+ i = n(12),
+ s = n(13),
+ u = n(14),
+ a = n(10),
+ c = "undefined" != typeof window && window.btoa && window.btoa.bind(
+ window) || n(15);
+ e.exports = function(e) {
+ return new Promise(function(t, f) {
+ var p = e.data,
+ d = e.headers;
+ r.isFormData(p) && delete d["Content-Type"];
+ var l = new XMLHttpRequest,
+ h = "onreadystatechange",
+ m = !1;
+ if ("undefined" == typeof window || !window.XDomainRequest ||
+ "withCredentials" in l || u(e.url) || (l = new window.XDomainRequest,
+ h = "onload", m = !0, l.onprogress = function() {}, l
+ .ontimeout = function() {}), e.auth) {
+ var y = e.auth.username || "",
+ w = e.auth.password || "";
+ d.Authorization = "Basic " + c(y + ":" + w)
+ }
+ if (l.open(e.method.toUpperCase(), i(e.url, e.params, e.paramsSerializer), !
+ 0), l.timeout = e.timeout, l[h] = function() {
+ if (l && (4 === l.readyState || m) && (0 !== l.status ||
+ l.responseURL && 0 === l.responseURL.indexOf(
+ "file:"))) {
+ var n = "getAllResponseHeaders" in l ? s(l.getAllResponseHeaders()) :
+ null,
+ r = e.responseType && "text" !== e.responseType ?
+ l.response : l.responseText,
+ i = {
+ data: r,
+ status: 1223 === l.status ? 204 : l.status,
+ statusText: 1223 === l.status ? "No Content" : l
+ .statusText,
+ headers: n,
+ config: e,
+ request: l
+ };
+ o(t, f, i), l = null
+ }
+ }, l.onerror = function() {
+ f(a("Network Error", e, null, l)), l = null
+ }, l.ontimeout = function() {
+ f(a("timeout of " + e.timeout + "ms exceeded", e,
+ "ECONNABORTED", l)), l = null
+ }, r.isStandardBrowserEnv()) {
+ var g = n(16),
+ v = (e.withCredentials || u(e.url)) && e.xsrfCookieName ?
+ g.read(e.xsrfCookieName) : void 0;
+ v && (d[e.xsrfHeaderName] = v)
+ }
+ if ("setRequestHeader" in l && r.forEach(d, function(e, t) {
+ "undefined" == typeof p && "content-type" === t.toLowerCase() ?
+ delete d[t] : l.setRequestHeader(t, e)
+ }), e.withCredentials && (l.withCredentials = !0), e.responseType)
+ try {
+ l.responseType = e.responseType
+ } catch (t) {
+ if ("json" !== e.responseType) throw t
+ }
+ "function" == typeof e.onDownloadProgress && l.addEventListener(
+ "progress", e.onDownloadProgress), "function" ==
+ typeof e.onUploadProgress && l.upload && l.upload.addEventListener(
+ "progress", e.onUploadProgress), e.cancelToken && e.cancelToken
+ .promise.then(function(e) {
+ l && (l.abort(), f(e), l = null)
+ }), void 0 === p && (p = null), l.send(p)
+ })
+ }
+ }, function(e, t, n) {
+ "use strict";
+ var r = n(10);
+ e.exports = function(e, t, n) {
+ var o = n.config.validateStatus;
+ n.status && o && !o(n.status) ? t(r(
+ "Request failed with status code " + n.status, n.config,
+ null, n.request, n)) : e(n)
+ }
+ }, function(e, t, n) {
+ "use strict";
+ var r = n(11);
+ e.exports = function(e, t, n, o, i) {
+ var s = new Error(e);
+ return r(s, t, n, o, i)
+ }
+ }, function(e, t) {
+ "use strict";
+ e.exports = function(e, t, n, r, o) {
+ return e.config = t, n && (e.code = n), e.request = r, e.response =
+ o, e
+ }
+ }, function(e, t, n) {
+ "use strict";
+
+ function r(e) {
+ return encodeURIComponent(e).replace(/%40/gi, "@").replace(
+ /%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(
+ /%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]")
+ }
+ var o = n(2);
+ e.exports = function(e, t, n) {
+ if (!t) return e;
+ var i;
+ if (n) i = n(t);
+ else if (o.isURLSearchParams(t)) i = t.toString();
+ else {
+ var s = [];
+ o.forEach(t, function(e, t) {
+ null !== e && "undefined" != typeof e && (o.isArray(e) ?
+ t += "[]" : e = [e], o.forEach(e, function(e) {
+ o.isDate(e) ? e = e.toISOString() : o.isObject(
+ e) && (e = JSON.stringify(e)), s.push(r(t) +
+ "=" + r(e))
+ }))
+ }), i = s.join("&")
+ }
+ return i && (e += (e.indexOf("?") === -1 ? "?" : "&") + i), e
+ }
+ }, function(e, t, n) {
+ "use strict";
+ var r = n(2),
+ o = ["age", "authorization", "content-length", "content-type",
+ "etag", "expires", "from", "host", "if-modified-since",
+ "if-unmodified-since", "last-modified", "location",
+ "max-forwards", "proxy-authorization", "referer", "retry-after",
+ "user-agent"
+ ];
+ e.exports = function(e) {
+ var t, n, i, s = {};
+ return e ? (r.forEach(e.split("\n"), function(e) {
+ if (i = e.indexOf(":"), t = r.trim(e.substr(0, i)).toLowerCase(),
+ n = r.trim(e.substr(i + 1)), t) {
+ if (s[t] && o.indexOf(t) >= 0) return;
+ "set-cookie" === t ? s[t] = (s[t] ? s[t] : []).concat(
+ [n]) : s[t] = s[t] ? s[t] + ", " + n : n
+ }
+ }), s) : s
+ }
+ }, function(e, t, n) {
+ "use strict";
+ var r = n(2);
+ e.exports = r.isStandardBrowserEnv() ? function() {
+ function e(e) {
+ var t = e;
+ return n && (o.setAttribute("href", t), t = o.href), o.setAttribute(
+ "href", t), {
+ href: o.href,
+ protocol: o.protocol ? o.protocol.replace(/:$/, "") : "",
+ host: o.host,
+ search: o.search ? o.search.replace(/^\?/, "") : "",
+ hash: o.hash ? o.hash.replace(/^#/, "") : "",
+ hostname: o.hostname,
+ port: o.port,
+ pathname: "/" === o.pathname.charAt(0) ? o.pathname : "/" +
+ o.pathname
+ }
+ }
+ var t, n = /(msie|trident)/i.test(navigator.userAgent),
+ o = document.createElement("a");
+ return t = e(window.location.href),
+ function(n) {
+ var o = r.isString(n) ? e(n) : n;
+ return o.protocol === t.protocol && o.host === t.host
+ }
+ }() : function() {
+ return function() {
+ return !0
+ }
+ }()
+ }, function(e, t) {
+ "use strict";
+
+ function n() {
+ this.message = "String contains an invalid character"
+ }
+
+ function r(e) {
+ for (var t, r, i = String(e), s = "", u = 0, a = o; i.charAt(0 |
+ u) || (a = "=", u % 1); s += a.charAt(63 & t >> 8 - u % 1 * 8)) {
+ if (r = i.charCodeAt(u += .75), r > 255) throw new n;
+ t = t << 8 | r
+ }
+ return s
+ }
+ var o =
+ "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
+ n.prototype = new Error, n.prototype.code = 5, n.prototype.name =
+ "InvalidCharacterError", e.exports = r
+ }, function(e, t, n) {
+ "use strict";
+ var r = n(2);
+ e.exports = r.isStandardBrowserEnv() ? function() {
+ return {
+ write: function(e, t, n, o, i, s) {
+ var u = [];
+ u.push(e + "=" + encodeURIComponent(t)), r.isNumber(n) &&
+ u.push("expires=" + new Date(n).toGMTString()), r.isString(
+ o) && u.push("path=" + o), r.isString(i) && u.push(
+ "domain=" + i), s === !0 && u.push("secure"),
+ document.cookie = u.join("; ")
+ },
+ read: function(e) {
+ var t = document.cookie.match(new RegExp("(^|;\\s*)(" + e +
+ ")=([^;]*)"));
+ return t ? decodeURIComponent(t[3]) : null
+ },
+ remove: function(e) {
+ this.write(e, "", Date.now() - 864e5)
+ }
+ }
+ }() : function() {
+ return {
+ write: function() {},
+ read: function() {
+ return null
+ },
+ remove: function() {}
+ }
+ }()
+ }, function(e, t, n) {
+ "use strict";
+
+ function r() {
+ this.handlers = []
+ }
+ var o = n(2);
+ r.prototype.use = function(e, t) {
+ return this.handlers.push({
+ fulfilled: e,
+ rejected: t
+ }), this.handlers.length - 1
+ }, r.prototype.eject = function(e) {
+ this.handlers[e] && (this.handlers[e] = null)
+ }, r.prototype.forEach = function(e) {
+ o.forEach(this.handlers, function(t) {
+ null !== t && e(t)
+ })
+ }, e.exports = r
+ }, function(e, t, n) {
+ "use strict";
+
+ function r(e) {
+ e.cancelToken && e.cancelToken.throwIfRequested()
+ }
+ var o = n(2),
+ i = n(19),
+ s = n(20),
+ u = n(6),
+ a = n(21),
+ c = n(22);
+ e.exports = function(e) {
+ r(e), e.baseURL && !a(e.url) && (e.url = c(e.baseURL, e.url)),
+ e.headers = e.headers || {}, e.data = i(e.data, e.headers, e.transformRequest),
+ e.headers = o.merge(e.headers.common || {}, e.headers[e.method] || {},
+ e.headers || {}), o.forEach(["delete", "get", "head",
+ "post", "put", "patch", "common"
+ ], function(t) {
+ delete e.headers[t]
+ });
+ var t = e.adapter || u.adapter;
+ return t(e).then(function(t) {
+ return r(e), t.data = i(t.data, t.headers, e.transformResponse),
+ t
+ }, function(t) {
+ return s(t) || (r(e), t && t.response && (t.response.data =
+ i(t.response.data, t.response.headers, e.transformResponse)
+ )), Promise.reject(t)
+ })
+ }
+ }, function(e, t, n) {
+ "use strict";
+ var r = n(2);
+ e.exports = function(e, t, n) {
+ return r.forEach(n, function(n) {
+ e = n(e, t)
+ }), e
+ }
+ }, function(e, t) {
+ "use strict";
+ e.exports = function(e) {
+ return !(!e || !e.__CANCEL__)
+ }
+ }, function(e, t) {
+ "use strict";
+ e.exports = function(e) {
+ return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)
+ }
+ }, function(e, t) {
+ "use strict";
+ e.exports = function(e, t) {
+ return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") :
+ e
+ }
+ }, function(e, t) {
+ "use strict";
+
+ function n(e) {
+ this.message = e
+ }
+ n.prototype.toString = function() {
+ return "Cancel" + (this.message ? ": " + this.message : "")
+ }, n.prototype.__CANCEL__ = !0, e.exports = n
+ }, function(e, t, n) {
+ "use strict";
+
+ function r(e) {
+ if ("function" != typeof e) throw new TypeError(
+ "executor must be a function.");
+ var t;
+ this.promise = new Promise(function(e) {
+ t = e
+ });
+ var n = this;
+ e(function(e) {
+ n.reason || (n.reason = new o(e), t(n.reason))
+ })
+ }
+ var o = n(23);
+ r.prototype.throwIfRequested = function() {
+ if (this.reason) throw this.reason
+ }, r.source = function() {
+ var e, t = new r(function(t) {
+ e = t
+ });
+ return {
+ token: t,
+ cancel: e
+ }
+ }, e.exports = r
+ }, function(e, t) {
+ "use strict";
+ e.exports = function(e) {
+ return function(t) {
+ return e.apply(null, t)
+ }
+ }
+ }])
+});
+//# sourceMappingURL=axios.min.map
diff --git a/web-v2-res/static/js/base64.min.js b/web-v2-res/static/js/base64.min.js
new file mode 100644
index 0000000..b7a54a2
--- /dev/null
+++ b/web-v2-res/static/js/base64.min.js
@@ -0,0 +1,8 @@
+/**
+ * Minified by jsDelivr using Terser v5.19.2.
+ * Original file: /npm/js-base64@3.7.7/base64.js
+ *
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
+ */
+!function(t,n){var r,e;"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(r=t.Base64,(e=n()).noConflict=function(){return t.Base64=r,e},t.Meteor&&(Base64=e),t.Base64=e)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:this,(function(){"use strict";var t,n="3.7.7",r=n,e="function"==typeof Buffer,o="function"==typeof TextDecoder?new TextDecoder:void 0,u="function"==typeof TextEncoder?new TextEncoder:void 0,i=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),f=(t={},i.forEach((function(n,r){return t[n]=r})),t),c=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,a=String.fromCharCode.bind(String),d="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(t){return new Uint8Array(Array.prototype.slice.call(t,0))},s=function(t){return t.replace(/=/g,"").replace(/[+\/]/g,(function(t){return"+"==t?"-":"_"}))},l=function(t){return t.replace(/[^A-Za-z0-9\+\/]/g,"")},h=function(t){for(var n,r,e,o,u="",f=t.length%3,c=0;c255||(e=t.charCodeAt(c++))>255||(o=t.charCodeAt(c++))>255)throw new TypeError("invalid character found");u+=i[(n=r<<16|e<<8|o)>>18&63]+i[n>>12&63]+i[n>>6&63]+i[63&n]}return f?u.slice(0,f-3)+"===".substring(f):u},p="function"==typeof btoa?function(t){return btoa(t)}:e?function(t){return Buffer.from(t,"binary").toString("base64")}:h,y=e?function(t){return Buffer.from(t).toString("base64")}:function(t){for(var n=[],r=0,e=t.length;r>>6)+a(128|63&n):a(224|n>>>12&15)+a(128|n>>>6&63)+a(128|63&n);var n=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return a(240|n>>>18&7)+a(128|n>>>12&63)+a(128|n>>>6&63)+a(128|63&n)},g=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,B=function(t){return t.replace(g,b)},x=e?function(t){return Buffer.from(t,"utf8").toString("base64")}:u?function(t){return y(u.encode(t))}:function(t){return p(B(t))},C=function(t,n){return void 0===n&&(n=!1),n?s(x(t)):x(t)},m=function(t){return C(t,!0)},v=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,U=function(t){switch(t.length){case 4:var n=((7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3))-65536;return a(55296+(n>>>10))+a(56320+(1023&n));case 3:return a((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return a((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},F=function(t){return t.replace(v,U)},w=function(t){if(t=t.replace(/\s+/g,""),!c.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(3&t.length));for(var n,r,e,o="",u=0;u>16&255):64===e?a(n>>16&255,n>>8&255):a(n>>16&255,n>>8&255,255&n);return o},S="function"==typeof atob?function(t){return atob(l(t))}:e?function(t){return Buffer.from(t,"base64").toString("binary")}:w,E=e?function(t){return d(Buffer.from(t,"base64"))}:function(t){return d(S(t).split("").map((function(t){return t.charCodeAt(0)})))},D=function(t){return E(z(t))},R=e?function(t){return Buffer.from(t,"base64").toString("utf8")}:o?function(t){return o.decode(E(t))}:function(t){return F(S(t))},z=function(t){return l(t.replace(/[-_]/g,(function(t){return"-"==t?"+":"/"})))},T=function(t){return R(z(t))},Z=function(t){return{value:t,enumerable:!1,writable:!0,configurable:!0}},j=function(){var t=function(t,n){return Object.defineProperty(String.prototype,t,Z(n))};t("fromBase64",(function(){return T(this)})),t("toBase64",(function(t){return C(this,t)})),t("toBase64URI",(function(){return C(this,!0)})),t("toBase64URL",(function(){return C(this,!0)})),t("toUint8Array",(function(){return D(this)}))},I=function(){var t=function(t,n){return Object.defineProperty(Uint8Array.prototype,t,Z(n))};t("toBase64",(function(t){return A(this,t)})),t("toBase64URI",(function(){return A(this,!0)})),t("toBase64URL",(function(){return A(this,!0)}))},O={version:n,VERSION:r,atob:S,atobPolyfill:w,btoa:p,btoaPolyfill:h,fromBase64:T,toBase64:C,encode:C,encodeURI:m,encodeURL:m,utob:B,btou:F,decode:T,isValid:function(t){if("string"!=typeof t)return!1;var n=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(n)||!/[^\s0-9a-zA-Z\-_]/.test(n)},fromUint8Array:A,toUint8Array:D,extendString:j,extendUint8Array:I,extendBuiltins:function(){j(),I()},Base64:{}};return Object.keys(O).forEach((function(t){return O.Base64[t]=O[t]})),O}));
+//# sourceMappingURL=/sm/b3f991b414b0fa1b0799af2a7f930299e529ee04d4e0dc56fb33a5bfd532f984.map
\ No newline at end of file
diff --git a/web-v2-res/static/js/clipboard.min.js b/web-v2-res/static/js/clipboard.min.js
new file mode 100644
index 0000000..02c549e
--- /dev/null
+++ b/web-v2-res/static/js/clipboard.min.js
@@ -0,0 +1,7 @@
+/*!
+ * clipboard.js v2.0.4
+ * https://zenorocha.github.io/clipboard.js
+ *
+ * Licensed MIT © Zeno Rocha
+ */
+!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return function(n){var o={};function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}return r.m=n,r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,n){"use strict";var r="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},i=function(){function o(t,e){for(var n=0;n{"use strict";var t={522:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OpenXmlPackage=void 0;var n=r(290),a=r(472),o=r(593),s=r(461),l=function(){function e(e,t){this._zip=e,this.options=t,this.xmlParser=new a.XmlParser}return e.prototype.get=function(e){return this._zip.files[function(e){return e.startsWith("/")?e.substr(1):e}(e)]},e.prototype.update=function(e,t){this._zip.file(e,t)},e.load=function(t,r){return n.loadAsync(t).then((function(t){return new e(t,r)}))},e.prototype.save=function(e){return void 0===e&&(e="blob"),this._zip.generateAsync({type:e})},e.prototype.load=function(e,t){var r,n;return void 0===t&&(t="string"),null!==(n=null===(r=this.get(e))||void 0===r?void 0:r.async(t))&&void 0!==n?n:Promise.resolve(null)},e.prototype.loadRelationships=function(e){var t=this;void 0===e&&(e=null);var r="_rels/.rels";if(null!=e){var n=(0,o.splitPath)(e);r=n[0]+"_rels/"+n[1]+".rels"}return this.load(r).then((function(e){return e?(0,s.parseRelationships)(t.parseXmlDocument(e).firstElementChild,t.xmlParser):null}))},e.prototype.parseXmlDocument=function(e){return(0,a.parseXmlString)(e,this.options.trimXmlDeclaration)},e}();t.OpenXmlPackage=l},530:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Part=void 0;var n=r(472),a=function(){function e(e,t){this._package=e,this.path=t}return e.prototype.load=function(){var e=this;return Promise.all([this._package.loadRelationships(this.path).then((function(t){e.rels=t})),this._package.load(this.path).then((function(t){var r=e._package.parseXmlDocument(t);e._package.options.keepOrigin&&(e._xmlDocument=r),e.parseXml(r.firstElementChild)}))])},e.prototype.save=function(){this._package.update(this.path,(0,n.serializeXmlString)(this._xmlDocument))},e.prototype.parseXml=function(e){},e}();t.Part=a},461:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.parseRelationships=t.RelationshipTypes=void 0,(r=t.RelationshipTypes||(t.RelationshipTypes={})).OfficeDocument="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",r.FontTable="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",r.Image="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",r.Numbering="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",r.Styles="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",r.StylesWithEffects="http://schemas.microsoft.com/office/2007/relationships/stylesWithEffects",r.Theme="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",r.Settings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings",r.WebSettings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings",r.Hyperlink="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",r.Footer="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",r.Header="http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",r.ExtendedProperties="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",r.CoreProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",t.parseRelationships=function(e,t){return t.elements(e).map((function(e){return{id:t.attr(e,"Id"),type:t.attr(e,"Type"),target:t.attr(e,"Target"),targetMode:t.attr(e,"TargetMode")}}))}},168:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentParser=t.autos=void 0;var n=r(593),a=r(907),o=r(109),s=r(472),l=r(488),i=r(45),c=r(245),u=r(631),p=r(192),d=r(765),f=r(825),h=r(979),m=r(662);t.autos={shd:"white",color:"black",highlight:"transparent"};var v,b=function(){function e(){this.skipDeclaration=!0,this.ignoreWidth=!1,this.debug=!1,this.keepOrigin=!1}return e.prototype.deserialize=function(e,t){return(0,f.deserializeElement)(e,t,{keepOrigin:this.keepOrigin})},e.prototype.parseDocumentFile=function(e){var t=s.default.element(e,"body"),r=new a.WmlDocument;return r.body=this.deserialize(t,new a.WmlBody),this.parseBodyElements(t,r.body),r},e.prototype.parseFooter=function(e){return this.parseBodyElements(e,new h.WmlFooter)},e.prototype.parseHeader=function(e){return this.parseBodyElements(e,new m.WmlHeader)},e.prototype.parseBodyElements=function(e,t){for(var r=0,n=s.default.elements(e);r{Object.defineProperty(t,"__esModule",{value:!0}),t.CorePropsPart=void 0;var n=r(655),a=r(530),o=r(614),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),t.prototype.parseXml=function(e){this.props=(0,o.parseCoreProps)(e,this._package.xmlParser)},t}(a.Part);t.CorePropsPart=s},614:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseCoreProps=void 0,t.parseCoreProps=function(e,t){for(var r={},n=0,a=t.elements(e);n{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedPropsPart=void 0;var n=r(655),a=r(530),o=r(668),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),t.prototype.parseXml=function(e){this.props=(0,o.parseExtendedProps)(e,this._package.xmlParser)},t}(a.Part);t.ExtendedPropsPart=s},668:(e,t)=>{function r(e){if(void 0!==e)return parseInt(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.parseExtendedProps=void 0,t.parseExtendedProps=function(e,t){for(var n={},a=0,o=t.elements(e);a{Object.defineProperty(t,"__esModule",{value:!0}),t.WmlBookmarkEnd=t.WmlBookmarkStart=void 0;var n=r(655),a=r(825),o=r(120),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.fromAttribute)("id")],t.prototype,"id",void 0),(0,n.__decorate)([(0,a.fromAttribute)("name")],t.prototype,"name",void 0),(0,n.__decorate)([(0,a.fromAttribute)("colFirst")],t.prototype,"colFirst",void 0),(0,n.__decorate)([(0,a.fromAttribute)("colLast")],t.prototype,"colLast",void 0),(0,n.__decorate)([(0,a.element)("bookmarkStart")],t)}(o.DocxElement);t.WmlBookmarkStart=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.fromAttribute)("id")],t.prototype,"id",void 0),(0,n.__decorate)([(0,a.element)("bookmarkEnd")],t)}(o.DocxElement);t.WmlBookmarkEnd=l},191:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseBorders=t.parseBorder=void 0;var n=r(149);function a(e,t){return{type:t.attr(e,"val"),color:t.attr(e,"color"),size:t.lengthAttr(e,"sz",n.LengthUsage.Border),offset:t.lengthAttr(e,"space",n.LengthUsage.Point),frame:t.boolAttr(e,"frame"),shadow:t.boolAttr(e,"shadow")}}t.parseBorder=a,t.parseBorders=function(e,t){for(var r={},n=0,o=t.elements(e);n{Object.defineProperty(t,"__esModule",{value:!0}),t.WmlLastRenderedPageBreak=t.WmlBreak=void 0;var n=r(655),a=r(825),o=r(120),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="textWrapping",t}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.fromAttribute)("type")],t.prototype,"type",void 0),(0,n.__decorate)([(0,a.fromAttribute)("clear")],t.prototype,"clear",void 0),(0,n.__decorate)([(0,a.element)("br")],t)}(o.DocxElement);t.WmlBreak=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.element)("lastRenderedPageBreak")],t)}(o.DocxElement);t.WmlLastRenderedPageBreak=l},149:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseElementValue=t.convertPercentage=t.convertBoolean=t.convertLength=t.LengthUsage=t.ns=void 0;var n=r(472);t.ns={wordml:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",drawingml:"http://schemas.openxmlformats.org/drawingml/2006/main",picture:"http://schemas.openxmlformats.org/drawingml/2006/picture"},t.LengthUsage={Dxa:{mul:.05,unit:"pt"},Emu:{mul:1/12700,unit:"pt"},FontSize:{mul:.5,unit:"pt"},Border:{mul:.125,unit:"pt"},Point:{mul:1,unit:"pt"},Percent:{mul:.02,unit:"%"},LineHeight:{mul:1/240,unit:null}},t.convertLength=function(e,r){return void 0===r&&(r=t.LengthUsage.Dxa),e?e.endsWith("pt")?{value:parseFloat(e),type:"pt"}:e.endsWith("%")?{value:parseFloat(e),type:"%"}:{value:parseInt(e)*r.mul,type:r.unit}:null},t.convertBoolean=function(e,t){switch(void 0===t&&(t=!1),e){case"1":return!0;case"0":return!1;default:return t}},t.convertPercentage=function(e){return e?parseInt(e)/100:null},t.parseElementValue=function(e){return(0,n.attr)(e,"val")}},448:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentPart=void 0;var n=r(655),a=function(e){function t(t,r,n){var a=e.call(this,t,r)||this;return a._documentParser=n,a}return(0,n.__extends)(t,e),t.prototype.parseXml=function(e){this.documentElement=this._documentParser.parseDocumentFile(e)},t}(r(530).Part);t.DocumentPart=a},907:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WmlBody=t.WmlDocument=void 0;var n=r(655),a=r(825),o=r(120),s=r(59),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.element)("document")],t)}(o.DocxElement);t.WmlDocument=l;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.fromElement)("sectPr",s.parseSectionProperties)],t.prototype,"sectionProps",void 0),(0,n.__decorate)([(0,a.element)("body")],t)}(o.DocxContainer);t.WmlBody=i},120:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DocxContainer=t.DocxElement=void 0;var n=r(655),a=function(e){this.parent=e,this.className=null,this.cssStyle={}};t.DocxElement=a;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.children=[],t}return(0,n.__extends)(t,e),t}(a);t.DocxContainer=o},192:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseDmlPicture=t.DmlPicture=t.WmlDrawing=void 0;var n=r(655),a=r(472),o=r(825),s=r(120),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,o.element)("drawing")],t)}(s.DocxContainer);t.WmlDrawing=l;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),t}(s.DocxContainer);t.DmlPicture=i,t.parseDmlPicture=function(e,t,r){void 0===r&&(r=a.default);var n=r.element(e,"blipFill"),o=r.element(n,"blip");t.resourceId=r.attr(o,"embed")}},750:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WmlFieldSimple=t.WmlFieldChar=void 0;var n=r(655),a=r(825),o=r(149),s=r(120),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.fromAttribute)("fldCharType")],t.prototype,"type",void 0),(0,n.__decorate)([(0,a.element)("fldChar")],t)}(s.DocxElement);t.WmlFieldChar=l;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.fromAttribute)("dirty",o.convertBoolean)],t.prototype,"dirty",void 0),(0,n.__decorate)([(0,a.fromAttribute)("fldLock",o.convertBoolean)],t.prototype,"lock",void 0),(0,n.__decorate)([(0,a.fromAttribute)("instr")],t.prototype,"instruction",void 0),(0,n.__decorate)([(0,a.element)("fldSimple")],t)}(s.DocxContainer);t.WmlFieldSimple=i},45:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WmlHyperlink=void 0;var n=r(655),a=r(472),o=r(825),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),t.prototype.parse=function(e){this.anchor=a.default.attr(e,"anchor")},(0,n.__decorate)([(0,o.fromAttribute)("anchor")],t.prototype,"anchor",void 0),(0,n.__decorate)([(0,o.element)("hyperlink")],t)}(r(120).DocxContainer);t.WmlHyperlink=s},305:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseIndentation=void 0,t.parseIndentation=function(e,t){return{start:t.lengthAttr(e,"start"),end:t.lengthAttr(e,"end"),hanging:t.lengthAttr(e,"hanging"),firstLine:t.lengthAttr(e,"firstLine")}}},931:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseLineSpacing=void 0;var n=r(149);t.parseLineSpacing=function(e,t){var r=t.attr(e,"lineRule");return{before:t.lengthAttr(e,"before"),after:t.lengthAttr(e,"after"),line:t.lengthAttr(e,"line","auto"===r?n.LengthUsage.LineHeight:n.LengthUsage.Dxa),lineRule:r}}},109:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseNumbering=t.parseTabs=t.parseParagraphProperty=t.parseParagraphProperties=t.WmlParagraph=void 0;var n=r(655),a=r(120),o=r(149),s=r(59),l=r(931),i=r(488),c=r(825),u=r(172),p=r(750),d=r(305),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.props={},t}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,c.element)("p"),(0,c.children)(u.WmlBookmarkStart,u.WmlBookmarkEnd,p.WmlFieldSimple)],t)}(a.DocxContainer);function h(e,t,r){if(e.namespaceURI!=o.ns.wordml)return!1;switch(e.localName){case"tabs":t.tabs=m(e,r);break;case"sectPr":t.sectionProps=(0,s.parseSectionProperties)(e,r);break;case"numPr":t.numbering=v(e,r);break;case"spacing":t.lineSpacing=(0,l.parseLineSpacing)(e,r);break;case"ind":return t.indentation=(0,d.parseIndentation)(e,r),!1;case"textAlignment":t.textAlignment=r.attr(e,"val");break;case"keepNext":t.keepLines=r.boolAttr(e,"val",!0);break;case"keepNext":t.keepNext=r.boolAttr(e,"val",!0);break;case"pageBreakBefore":t.pageBreakBefore=r.boolAttr(e,"val",!0);break;case"outlineLvl":t.outlineLevel=r.intAttr(e,"val");break;case"pStyle":t.styleId=r.attr(e,"val");break;case"rPr":t.runProps=(0,i.parseRunProperties)(e,r);break;default:return!1}return!0}function m(e,t){return t.elements(e,"tab").map((function(e){return{position:t.lengthAttr(e,"pos"),leader:t.attr(e,"leader"),style:t.attr(e,"val")}}))}function v(e,t){for(var r={},n=0,a=t.elements(e);n{Object.defineProperty(t,"__esModule",{value:!0}),t.parseShading=t.parseRunFonts=t.parseRunProperty=t.parseRunProperties=t.WmlRun=void 0;var n=r(655),a=r(825),o=r(191),s=r(503),l=r(149),i=r(120),c=r(192),u=r(750),p=r(385),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.props={},t}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.element)("r"),(0,a.children)(p.WmlText,p.WmlSymbol,p.WmlTab,s.WmlBreak,p.WmlInstructionText,u.WmlFieldChar,s.WmlLastRenderedPageBreak,c.WmlDrawing)],t)}(i.DocxContainer);function f(e,t,r){switch(e.localName){case"rStyle":t.styleName=r.attr(e,"val");break;case"bdr":t.border=(0,o.parseBorder)(e,r);break;case"rFonts":t.fonts=h(e,r);break;case"shd":t.shading=m(e,r);break;case"highlight":t.highlight=r.attr(e,"val");break;case"spacing":t.spacing=r.lengthAttr(e,"val");break;case"w":t.stretch=r.percentageAttr(e,"val");break;case"color":t.color=r.attr(e,"val");break;case"sz":t.fontSize=r.lengthAttr(e,"val",l.LengthUsage.FontSize);break;case"b":t.bold=r.boolAttr(e,"val",!0);break;case"strike":t.strike=r.boolAttr(e,"val",!0);break;case"dstrike":t.doubleStrike=r.boolAttr(e,"val",!0);break;case"i":t.italics=r.boolAttr(e,"val",!0);break;case"u":t.underline={color:r.attr(e,"color"),type:r.attr(e,"val")};break;case"caps":t.caps=r.boolAttr(e,"val",!0);break;case"smallCaps":t.smallCaps=r.boolAttr(e,"val",!0);break;case"imprint":t.imprint=r.boolAttr(e,"val",!0);break;case"outline":t.outline=r.boolAttr(e,"val",!0);break;case"vertAlign":t.verticalAlignment=r.attr(e,"val");break;default:return!1}return!0}function h(e,t){return{ascii:t.attr(e,"ascii"),hAscii:t.attr(e,"hAscii"),cs:t.attr(e,"cs"),eastAsia:t.attr(e,"eastAsia")}}function m(e,t){return{type:t.attr(e,"val"),foreground:t.attr(e,"color"),background:t.attr(e,"fill")}}t.WmlRun=d,t.parseRunProperties=function(e,t){for(var r={},n=0,a=t.elements(e);n{Object.defineProperty(t,"__esModule",{value:!0}),t.parseSectionProperties=t.SectionType=void 0;var n,a=r(472);function o(e,t){return{numberOfColumns:t.intAttr(e,"num"),space:t.lengthAttr(e,"space"),separator:t.boolAttr(e,"sep"),equalWidth:t.boolAttr(e,"equalWidth",!0),columns:t.elements(e,"col").map((function(e){return{width:t.lengthAttr(e,"w"),space:t.lengthAttr(e,"space")}}))}}function s(e,t){return{id:t.attr(e,"id"),type:t.attr(e,"type")}}(n=t.SectionType||(t.SectionType={})).Continuous="continuous",n.NextPage="nextPage",n.NextColumn="nextColumn",n.EvenPage="evenPage",n.OddPage="oddPage",t.parseSectionProperties=function(e,t){var r,n;void 0===t&&(t=a.default);for(var l={},i=0,c=t.elements(e);i{Object.defineProperty(t,"__esModule",{value:!0}),t.WmlTableCell=void 0;var n=r(655),a=r(825),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.element)("tc")],t)}(r(120).DocxContainer);t.WmlTableCell=o},765:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WmlTableRow=void 0;var n=r(655),a=r(825),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.element)("tr")],t)}(r(120).DocxContainer);t.WmlTableRow=o},631:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseTableColumns=t.parseTableLook=t.parseTableProperties=t.WmlTable=void 0;var n=r(655),a=r(472),o=r(825),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,o.fromElement)("tblGrid",c)],t.prototype,"columns",void 0),(0,n.__decorate)([(0,o.fromElement)("tblPr",l)],t.prototype,"props",void 0),(0,n.__decorate)([(0,o.element)("tbl")],t)}(r(120).DocxContainer);function l(e){for(var t={},r=0,n=(0,a.elements)(e);r{Object.defineProperty(t,"__esModule",{value:!0}),t.WmlInstructionText=t.WmlTab=t.WmlSymbol=t.WmlText=void 0;var n=r(655),a=r(825),o=r(120),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.fromText)()],t.prototype,"text",void 0),(0,n.__decorate)([(0,a.element)("t")],t)}(o.DocxElement);t.WmlText=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.fromAttribute)("font")],t.prototype,"font",void 0),(0,n.__decorate)([(0,a.fromAttribute)("char")],t.prototype,"char",void 0),(0,n.__decorate)([(0,a.element)("sym")],t)}(o.DocxElement);t.WmlSymbol=l;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.element)("tab")],t)}(o.DocxElement);t.WmlTab=i;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.fromText)()],t.prototype,"text",void 0),(0,n.__decorate)([(0,a.element)("instrText")],t)}(o.DocxElement);t.WmlInstructionText=c},667:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.renderAsync=t.defaults=void 0;var n=r(655),a=r(213),o=r(168),s=r(932);t.defaults={trimXmlDeclaration:!1,keepOrigin:!1,ignoreHeight:!1,ignoreWidth:!1,ignoreFonts:!1,breakPages:!0,ignoreLastRenderedPageBreak:!0,debug:!1,experimental:!1,className:"docx",inWrapper:!0},t.renderAsync=function(e,r,l,i){void 0===l&&(l=null),void 0===i&&(i=null);var c=new o.DocumentParser,u=new s.HtmlRenderer(window.document),p=(0,n.__assign)((0,n.__assign)({},t.defaults),i);return Object.assign(c,p),Object.assign(u,p),a.WordDocument.load(e,c,p).then((function(e){return u.render(e,r,l,p),e}))}},380:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontTablePart=void 0;var n=r(655),a=r(530),o=r(512),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),t.prototype.parseXml=function(e){this.fonts=(0,o.parseFonts)(e,this._package.xmlParser)},t}(a.Part);t.FontTablePart=s},512:(e,t)=>{function r(e,t){for(var r={name:t.attr(e,"name")},n=0,a=t.elements(e);n{Object.defineProperty(t,"__esModule",{value:!0}),t.FooterPart=void 0;var n=r(655),a=function(e){function t(t,r,n){var a=e.call(this,t,r)||this;return a._documentParser=n,a}return(0,n.__extends)(t,e),t.prototype.parseXml=function(e){this.footerElement=this._documentParser.parseFooter(e)},t}(r(530).Part);t.FooterPart=a},979:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WmlFooter=void 0;var n=r(655),a=r(120),o=r(825),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,o.element)("ftr")],t)}(a.DocxContainer);t.WmlFooter=s},602:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HeaderPart=void 0;var n=r(655),a=function(e){function t(t,r,n){var a=e.call(this,t,r)||this;return a._documentParser=n,a}return(0,n.__extends)(t,e),t.prototype.parseXml=function(e){this.headerElement=this._documentParser.parseHeader(e)},t}(r(530).Part);t.HeaderPart=a},662:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WmlHeader=void 0;var n=r(655),a=r(120),o=r(825),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,o.element)("hdr")],t)}(a.DocxContainer);t.WmlHeader=s},932:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HtmlRenderer=t.autos=void 0;var n=r(655),a=r(109),o=r(593),s=r(630),l=r(488),i=r(172),c=r(631),u=r(765),p=r(245),d=r(45),f=r(192),h=r(503),m=r(385),v=r(662),b=r(979);t.autos={shd:"white",color:"black",highlight:"transparent"};var y=function(){function e(e){this.htmlDocument=e,this.inWrapper=!0,this.className="docx",this.keepOrigin=!1,this.renderHeaders=!0,this.renderFooters=!0}return e.prototype.render=function(e,t,r,n){void 0===r&&(r=null),this.document=e,this.options=n,this.domStyleMap=null,P(r=r||t),P(t),_(r,"docxjs library predefined styles"),r.appendChild(this.renderDefaultStyle()),null!=e.stylesPart&&(this.domStyleMap=this.processDomStyles(e.stylesPart.domStyles),this.styleMap=this.processStyles(e.stylesPart.styles),_(r,"docx document styles"),r.appendChild(this.renderStyles(e.stylesPart.domStyles))),e.numberingPart&&(_(r,"docx document numbering styles"),r.appendChild(this.renderNumbering(e.numberingPart.domNumberings,r))),!n.ignoreFonts&&e.fontTablePart&&this.renderFontTable(e.fontTablePart,r);var a=this.renderSections(e.documentPart.documentElement.body);if(this.inWrapper){var o=this.renderWrapper();g(o,a),t.appendChild(o)}else g(t,a)},e.prototype.renderFontTable=function(e,t){for(var r=function(e){n.document.loadFont(e.refId,e.fontKey).then((function(r){var n='@font-face {\n font-family: "'+e.name+'";\n src: url('+r+");\n }";_(t,"Font "+e.name),t.appendChild(k(n))}))},n=this,a=0,o=e.fonts.filter((function(e){return e.refId}));a0&&i.copyStyleProperties(s[0].values,e.values)},i=this,c=0,u=f.styles;c0&&(h=d.children.findIndex((function(e){var t,n;return-1!=(m=null!==(n=null===(t=e.children)||void 0===t?void 0:t.findIndex(r.isPageBreakElement.bind(r)))&&void 0!==n?n:-1)}))),(f||-1!=h)&&(n.sectProps=f,n={sectProps:null,elements:[]},o.push(n)),-1!=h){var v=d.children[h],b=m=0;x--)null==o[x].sectProps?o[x].sectProps=_:_=o[x].sectProps;return o},e.prototype.renderLength=function(e){var t;return e?""+e.value.toFixed(2)+(null!==(t=e.type)&&void 0!==t?t:""):null},e.prototype.renderColor=function(e,t){return void 0===t&&(t="black"),/[a-f0-9]{6}/i.test(e)?"#"+e:"auto"===e?t:e},e.prototype.renderWrapper=function(){var e=document.createElement("div");return e.className=this.className+"-wrapper",e},e.prototype.renderDefaultStyle=function(){var e=this.className;return k("\n."+e+"-wrapper { background: gray; padding: 30px; padding-bottom: 0px; display: flex; flex-flow: column; align-items: center; } \n."+e+"-wrapper section."+e+" { background: white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); margin-bottom: 30px; }\n."+e+" { color: black; }\nsection."+e+" { box-sizing: border-box; }\n."+e+" table { border-collapse: collapse; }\n."+e+" table td, ."+e+" table th { vertical-align: top; }\n."+e+" p { margin: 0pt; min-height: 1em; }\n")},e.prototype.renderNumbering=function(e,t){for(var r,a,o=this,s="",l=[],i=function(){if(r="p."+c.numberingClass(d.id,d.level),a="none",d.bullet){var e=("--"+c.className+"-"+d.bullet.src).toLowerCase();s+=c.styleToString(r+":before",{content:"' '",display:"inline-block",background:"var("+e+")"},d.bullet.style),c.document.loadNumberingImage(d.bullet.src).then((function(r){var n="."+o.className+"-wrapper { "+e+": url("+r+") }";t.appendChild(k(n))}))}else if(d.levelText){var i=c.numberingCounter(d.id,d.level);d.level>0?s+=c.styleToString("p."+c.numberingClass(d.id,d.level-1),{"counter-reset":i}):l.push(i),s+=c.styleToString(r+":before",(0,n.__assign)({content:c.levelTextToContent(d.levelText,d.suff,d.id,c.numFormatToCssValue(d.format)),"counter-increment":i},d.rStyle))}else a=c.numFormatToCssValue(d.format);s+=c.styleToString(r,(0,n.__assign)({display:"list-item","list-style-position":"inside","list-style-type":a},d.pStyle))},c=this,u=0,p=e;u0&&(s+=this.styleToString("."+this.className+"-wrapper",{"counter-reset":l.join(" ")})),k(s)},e.prototype.renderStyles=function(e){for(var t="",r=this.domStyleMap,n=0,a=e;n{Object.defineProperty(t,"__esModule",{value:!0}),t.updateTabStop=void 0,t.updateTabStop=function(e,t,r){void 0===r&&(r=.75);var n=e.closest("p"),a=e.getBoundingClientRect(),o=n.getBoundingClientRect(),s=(a.left-o.left)*r,l=t.find((function(e){return"clear"!=e.style&&e.position.value>s}));if(null!=l)switch(e.style.display="inline-block",e.style.width=l.position.value-s+"pt",l.leader){case"dot":case"middleDot":e.style.borderBottom="1px black dotted";break;case"hyphen":case"heavy":case"underscore":e.style.borderBottom="1px black solid"}}},527:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NumberingPart=void 0;var n=r(655),a=r(530),o=r(682),s=function(e){function t(t,r,n){var a=e.call(this,t,r)||this;return a._documentParser=n,a}return(0,n.__extends)(t,e),t.prototype.parseXml=function(e){Object.assign(this,(0,o.parseNumberingPart)(e,this._package.xmlParser)),this.domNumberings=this._documentParser.parseNumberingFile(e)},t}(a.Part);t.NumberingPart=s},682:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseNumberingBulletPicture=t.parseNumberingLevelOverrride=t.parseNumberingLevel=t.parseAbstractNumbering=t.parseNumbering=t.parseNumberingPart=void 0;var n=r(109),a=r(488);function o(e,t){for(var r={id:t.attr(e,"numId"),overrides:[]},n=0,a=t.elements(e);n{Object.defineProperty(t,"__esModule",{value:!0}),t.XmlParser=t.attr=t.elements=t.serializeXmlString=t.parseXmlString=void 0;var n=r(149);function a(e,t){void 0===t&&(t=null);for(var r=[],n=0,a=e.childNodes.length;n/,""));var r,n=(new DOMParser).parseFromString(e,"application/xml"),a=null===(r=n.getElementsByTagName("parsererror")[0])||void 0===r?void 0:r.textContent;if(a)throw new Error(a);return n},t.serializeXmlString=function(e){return(new XMLSerializer).serializeToString(e)},t.elements=a,t.attr=o;var s=function(){function e(){this.elements=a,this.attr=o}return e.prototype.element=function(e,t){for(var r=0,n=e.childNodes.length;r{Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeSchema=t.deserializeElement=t.buildXmlSchema=t.fromElement=t.fromAttribute=t.fromText=t.children=t.element=void 0;var r=Symbol("open-xml-schema");function n(e,t,r){r.text&&(t[(s=r.text).prop]=s.convert?s.convert(e.textContent):e.textContent);for(var n=0,a=e.attributes.length;n{Object.defineProperty(t,"__esModule",{value:!0}),t.parseDocumentDefaults=void 0;var n=r(109),a=r(488);t.parseDocumentDefaults=function(e,t){for(var r={},o=0,s=t.elements(e);o{Object.defineProperty(t,"__esModule",{value:!0}),t.parseStyle=t.WmlStyle=void 0;var n=r(655),a=r(149),o=r(109),s=r(488),l=r(825),i=function(){function e(){}return(0,n.__decorate)([(0,l.fromAttribute)("styleId")],e.prototype,"id",void 0),(0,n.__decorate)([(0,l.fromAttribute)("type")],e.prototype,"type",void 0),(0,n.__decorate)([(0,l.fromAttribute)("customStyle",a.convertBoolean)],e.prototype,"customStyle",void 0),(0,n.__decorate)([(0,l.fromAttribute)("default",a.convertBoolean)],e.prototype,"default",void 0),(0,n.__decorate)([(0,l.element)("style")],e)}();t.WmlStyle=i,t.parseStyle=function(e,t){for(var r=(0,l.deserializeElement)(e,new i,null),n=0,a=t.elements(e);n{Object.defineProperty(t,"__esModule",{value:!0}),t.parseStylesPart=t.StylesPart=void 0;var n=r(655),a=r(530),o=r(805),s=r(720),l=function(e){function t(t,r,n){var a=e.call(this,t,r)||this;return a._documentParser=n,a}return(0,n.__extends)(t,e),t.prototype.parseXml=function(e){Object.assign(this,i(e,this._package.xmlParser)),this.domStyles=this._documentParser.parseStylesFile(e)},t}(a.Part);function i(e,t){for(var r={styles:[]},n=0,a=t.elements(e);n{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemePart=void 0;var n=r(655),a=r(530),o=r(55),s=function(e){function t(t,r){return e.call(this,t,r)||this}return(0,n.__extends)(t,e),t.prototype.parseXml=function(e){this.theme=(0,o.parseTheme)(e,this._package.xmlParser)},t}(a.Part);t.ThemePart=s},55:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseFontInfo=t.parseFontScheme=t.parseColorScheme=t.parseTheme=t.DmlTheme=void 0;var r=function(){};function n(e,t){for(var r={name:t.attr(e,"name"),colors:{}},n=0,a=t.elements(e);n{Object.defineProperty(t,"__esModule",{value:!0}),t.mergeDeep=t.isObject=t.keyBy=t.resolvePath=t.splitPath=t.appendClass=t.addElementClass=void 0;var n=r(655);function a(e,t){return e?e+" "+t:t}function o(e){return e&&"object"==typeof e&&!Array.isArray(e)}t.addElementClass=function(e,t){return e.className=a(e.className,t)},t.appendClass=a,t.splitPath=function(e){var t=e.lastIndexOf("/")+1;return[0==t?"":e.substring(0,t),0==t?e:e.substring(t)]},t.resolvePath=function(e,t){try{var r="file://docx/";return new URL(e,r+t).toString().substr(r.length)}catch(r){return""+t+e}},t.keyBy=function(e,t){return e.reduce((function(e,r){return e[t(r)]=r,e}),{})},t.isObject=o,t.mergeDeep=function e(t){for(var r,a=[],s=1;s{Object.defineProperty(t,"__esModule",{value:!0}),t.deobfuscate=t.WordDocument=void 0;var n=r(461),a=r(380),o=r(522),s=r(448),l=r(593),i=r(527),c=r(240),u=r(279),p=r(602),d=r(665),f=r(162),h=r(893),m=[{type:n.RelationshipTypes.OfficeDocument,target:"word/document.xml"},{type:n.RelationshipTypes.ExtendedProperties,target:"docProps/app.xml"},{type:n.RelationshipTypes.CoreProperties,target:"docProps/core.xml"}],v=function(){function e(){this.parts=[],this.partsMap={}}return e.load=function(t,r,n){var a=new e;return a._parser=r,o.OpenXmlPackage.load(t,n).then((function(e){return a._package=e,a._package.loadRelationships()})).then((function(e){a.rels=e;var t=m.map((function(t){var r,n=null!==(r=e.find((function(e){return e.type===t.type})))&&void 0!==r?r:t;return a.loadRelationshipPart(n.target,n.type)}));return Promise.all(t)})).then((function(){return a}))},e.prototype.save=function(e){return void 0===e&&(e="blob"),this._package.save(e)},e.prototype.loadRelationshipPart=function(e,t){var r=this;if(this.partsMap[e])return Promise.resolve(this.partsMap[e]);if(!this._package.get(e))return Promise.resolve(null);var o=null;switch(t){case n.RelationshipTypes.OfficeDocument:this.documentPart=o=new s.DocumentPart(this._package,e,this._parser);break;case n.RelationshipTypes.FontTable:this.fontTablePart=o=new a.FontTablePart(this._package,e);break;case n.RelationshipTypes.Numbering:this.numberingPart=o=new i.NumberingPart(this._package,e,this._parser);break;case n.RelationshipTypes.Styles:this.stylesPart=o=new c.StylesPart(this._package,e,this._parser);break;case n.RelationshipTypes.Theme:o=new h.ThemePart(this._package,e);break;case n.RelationshipTypes.Footer:o=new u.FooterPart(this._package,e,this._parser);break;case n.RelationshipTypes.Header:o=new p.HeaderPart(this._package,e,this._parser);break;case n.RelationshipTypes.CoreProperties:this.corePropsPart=o=new f.CorePropsPart(this._package,e);break;case n.RelationshipTypes.ExtendedProperties:this.extendedPropsPart=o=new d.ExtendedPropsPart(this._package,e)}return null==o?Promise.resolve(null):(this.partsMap[e]=o,this.parts.push(o),o.load().then((function(){if(null==o.rels||0==o.rels.length)return o;var e=(0,l.splitPath)(o.path)[0],t=o.rels.map((function(t){return r.loadRelationshipPart((0,l.resolvePath)(t.target,e),t.type)}));return Promise.all(t).then((function(){return o}))})))},e.prototype.loadDocumentImage=function(e){return this.loadResource(this.documentPart,e,"blob").then((function(e){return e?URL.createObjectURL(e):null}))},e.prototype.loadNumberingImage=function(e){return this.loadResource(this.numberingPart,e,"blob").then((function(e){return e?URL.createObjectURL(e):null}))},e.prototype.loadFont=function(e,t){return this.loadResource(this.fontTablePart,e,"uint8array").then((function(e){return e?URL.createObjectURL(new Blob([b(e,t)])):e}))},e.prototype.getPathById=function(e,t){var r=e.rels.find((function(e){return e.id==t})),n=(0,l.splitPath)(e.path)[0];return r?(0,l.resolvePath)(r.target,n):null},e.prototype.loadResource=function(e,t,r){var n=this.getPathById(e,t);return n?this._package.load(n,r):Promise.resolve(null)},e}();function b(e,t){for(var r=t.replace(/{|}|-/g,""),n=new Array(16),a=0;a<16;a++)n[16-a-1]=parseInt(r.substr(2*a,2),16);for(a=0;a<32;a++)e[a]=e[a]^n[a%16];return e}t.WordDocument=v,t.deobfuscate=b},655:(e,t,r)=>{r.r(t),r.d(t,{__extends:()=>a,__assign:()=>o,__rest:()=>s,__decorate:()=>l,__param:()=>i,__metadata:()=>c,__awaiter:()=>u,__generator:()=>p,__createBinding:()=>d,__exportStar:()=>f,__values:()=>h,__read:()=>m,__spread:()=>v,__spreadArrays:()=>b,__spreadArray:()=>y,__await:()=>g,__asyncGenerator:()=>P,__asyncDelegator:()=>k,__asyncValues:()=>_,__makeTemplateObject:()=>x,__importStar:()=>S,__importDefault:()=>A,__classPrivateFieldGet:()=>N,__classPrivateFieldSet:()=>T});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;l--)(a=e[l])&&(s=(o<3?a(s):o>3?a(t,r,s):a(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}function i(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,r,n){return new(r||(r=Promise))((function(a,o){function s(e){try{i(n.next(e))}catch(e){o(e)}}function l(e){try{i(n.throw(e))}catch(e){o(e)}}function i(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,l)}i((n=n.apply(e,t||[])).next())}))}function p(e,t){var r,n,a,o,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(a=2&o[0]?n.return:o[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;switch(n=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((a=(a=s.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s}function v(){for(var e=[],t=0;t1||l(e,t)}))})}function l(e,t){try{(r=a[e](t)).value instanceof g?Promise.resolve(r.value.v).then(i,c):u(o[0][2],r)}catch(e){u(o[0][3],e)}var r}function i(e){l("next",e)}function c(e){l("throw",e)}function u(e,t){e(t),o.shift(),o.length&&l(o[0][0],o[0][1])}}function k(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,a){t[n]=e[n]?function(t){return(r=!r)?{value:g(e[n](t)),done:"return"===n}:a?a(t):t}:a}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,a){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,a,(t=e[r](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var w=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&d(t,e,r);return w(t,e),t}function A(e){return e&&e.__esModule?e:{default:e}}function N(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function T(e,t,r,n,a){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,r):a?a.value=r:t.set(e,r),r}},290:t=>{t.exports=e}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var o=r[e]={exports:{}};return t[e](o,o.exports,n),o.exports}return n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(667)})()}));
+//# sourceMappingURL=docx-preview.min.js.map
\ No newline at end of file
diff --git a/web-v2-res/static/js/hammer.min.js b/web-v2-res/static/js/hammer.min.js
new file mode 100644
index 0000000..34a8c86
--- /dev/null
+++ b/web-v2-res/static/js/hammer.min.js
@@ -0,0 +1,7 @@
+/*! Hammer.JS - v2.0.7 - 2016-04-22
+ * http://hammerjs.github.io/
+ *
+ * Copyright (c) 2016 Jorik Tangelder;
+ * Licensed under the MIT license */
+!function(a,b,c,d){"use strict";function e(a,b,c){return setTimeout(j(a,c),b)}function f(a,b,c){return Array.isArray(a)?(g(a,c[b],c),!0):!1}function g(a,b,c){var e;if(a)if(a.forEach)a.forEach(b,c);else if(a.length!==d)for(e=0;e\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",f=a.console&&(a.console.warn||a.console.log);return f&&f.call(a.console,e,d),b.apply(this,arguments)}}function i(a,b,c){var d,e=b.prototype;d=a.prototype=Object.create(e),d.constructor=a,d._super=e,c&&la(d,c)}function j(a,b){return function(){return a.apply(b,arguments)}}function k(a,b){return typeof a==oa?a.apply(b?b[0]||d:d,b):a}function l(a,b){return a===d?b:a}function m(a,b,c){g(q(b),function(b){a.addEventListener(b,c,!1)})}function n(a,b,c){g(q(b),function(b){a.removeEventListener(b,c,!1)})}function o(a,b){for(;a;){if(a==b)return!0;a=a.parentNode}return!1}function p(a,b){return a.indexOf(b)>-1}function q(a){return a.trim().split(/\s+/g)}function r(a,b,c){if(a.indexOf&&!c)return a.indexOf(b);for(var d=0;dc[b]}):d.sort()),d}function u(a,b){for(var c,e,f=b[0].toUpperCase()+b.slice(1),g=0;g1&&!c.firstMultiple?c.firstMultiple=D(b):1===e&&(c.firstMultiple=!1);var f=c.firstInput,g=c.firstMultiple,h=g?g.center:f.center,i=b.center=E(d);b.timeStamp=ra(),b.deltaTime=b.timeStamp-f.timeStamp,b.angle=I(h,i),b.distance=H(h,i),B(c,b),b.offsetDirection=G(b.deltaX,b.deltaY);var j=F(b.deltaTime,b.deltaX,b.deltaY);b.overallVelocityX=j.x,b.overallVelocityY=j.y,b.overallVelocity=qa(j.x)>qa(j.y)?j.x:j.y,b.scale=g?K(g.pointers,d):1,b.rotation=g?J(g.pointers,d):0,b.maxPointers=c.prevInput?b.pointers.length>c.prevInput.maxPointers?b.pointers.length:c.prevInput.maxPointers:b.pointers.length,C(c,b);var k=a.element;o(b.srcEvent.target,k)&&(k=b.srcEvent.target),b.target=k}function B(a,b){var c=b.center,d=a.offsetDelta||{},e=a.prevDelta||{},f=a.prevInput||{};b.eventType!==Ea&&f.eventType!==Ga||(e=a.prevDelta={x:f.deltaX||0,y:f.deltaY||0},d=a.offsetDelta={x:c.x,y:c.y}),b.deltaX=e.x+(c.x-d.x),b.deltaY=e.y+(c.y-d.y)}function C(a,b){var c,e,f,g,h=a.lastInterval||b,i=b.timeStamp-h.timeStamp;if(b.eventType!=Ha&&(i>Da||h.velocity===d)){var j=b.deltaX-h.deltaX,k=b.deltaY-h.deltaY,l=F(i,j,k);e=l.x,f=l.y,c=qa(l.x)>qa(l.y)?l.x:l.y,g=G(j,k),a.lastInterval=b}else c=h.velocity,e=h.velocityX,f=h.velocityY,g=h.direction;b.velocity=c,b.velocityX=e,b.velocityY=f,b.direction=g}function D(a){for(var b=[],c=0;ce;)c+=a[e].clientX,d+=a[e].clientY,e++;return{x:pa(c/b),y:pa(d/b)}}function F(a,b,c){return{x:b/a||0,y:c/a||0}}function G(a,b){return a===b?Ia:qa(a)>=qa(b)?0>a?Ja:Ka:0>b?La:Ma}function H(a,b,c){c||(c=Qa);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return Math.sqrt(d*d+e*e)}function I(a,b,c){c||(c=Qa);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return 180*Math.atan2(e,d)/Math.PI}function J(a,b){return I(b[1],b[0],Ra)+I(a[1],a[0],Ra)}function K(a,b){return H(b[0],b[1],Ra)/H(a[0],a[1],Ra)}function L(){this.evEl=Ta,this.evWin=Ua,this.pressed=!1,x.apply(this,arguments)}function M(){this.evEl=Xa,this.evWin=Ya,x.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function N(){this.evTarget=$a,this.evWin=_a,this.started=!1,x.apply(this,arguments)}function O(a,b){var c=s(a.touches),d=s(a.changedTouches);return b&(Ga|Ha)&&(c=t(c.concat(d),"identifier",!0)),[c,d]}function P(){this.evTarget=bb,this.targetIds={},x.apply(this,arguments)}function Q(a,b){var c=s(a.touches),d=this.targetIds;if(b&(Ea|Fa)&&1===c.length)return d[c[0].identifier]=!0,[c,c];var e,f,g=s(a.changedTouches),h=[],i=this.target;if(f=c.filter(function(a){return o(a.target,i)}),b===Ea)for(e=0;e-1&&d.splice(a,1)};setTimeout(e,cb)}}function U(a){for(var b=a.srcEvent.clientX,c=a.srcEvent.clientY,d=0;d=f&&db>=g)return!0}return!1}function V(a,b){this.manager=a,this.set(b)}function W(a){if(p(a,jb))return jb;var b=p(a,kb),c=p(a,lb);return b&&c?jb:b||c?b?kb:lb:p(a,ib)?ib:hb}function X(){if(!fb)return!1;var b={},c=a.CSS&&a.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(d){b[d]=c?a.CSS.supports("touch-action",d):!0}),b}function Y(a){this.options=la({},this.defaults,a||{}),this.id=v(),this.manager=null,this.options.enable=l(this.options.enable,!0),this.state=nb,this.simultaneous={},this.requireFail=[]}function Z(a){return a&sb?"cancel":a&qb?"end":a&pb?"move":a&ob?"start":""}function $(a){return a==Ma?"down":a==La?"up":a==Ja?"left":a==Ka?"right":""}function _(a,b){var c=b.manager;return c?c.get(a):a}function aa(){Y.apply(this,arguments)}function ba(){aa.apply(this,arguments),this.pX=null,this.pY=null}function ca(){aa.apply(this,arguments)}function da(){Y.apply(this,arguments),this._timer=null,this._input=null}function ea(){aa.apply(this,arguments)}function fa(){aa.apply(this,arguments)}function ga(){Y.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ha(a,b){return b=b||{},b.recognizers=l(b.recognizers,ha.defaults.preset),new ia(a,b)}function ia(a,b){this.options=la({},ha.defaults,b||{}),this.options.inputTarget=this.options.inputTarget||a,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=a,this.input=y(this),this.touchAction=new V(this,this.options.touchAction),ja(this,!0),g(this.options.recognizers,function(a){var b=this.add(new a[0](a[1]));a[2]&&b.recognizeWith(a[2]),a[3]&&b.requireFailure(a[3])},this)}function ja(a,b){var c=a.element;if(c.style){var d;g(a.options.cssProps,function(e,f){d=u(c.style,f),b?(a.oldCssProps[d]=c.style[d],c.style[d]=e):c.style[d]=a.oldCssProps[d]||""}),b||(a.oldCssProps={})}}function ka(a,c){var d=b.createEvent("Event");d.initEvent(a,!0,!0),d.gesture=c,c.target.dispatchEvent(d)}var la,ma=["","webkit","Moz","MS","ms","o"],na=b.createElement("div"),oa="function",pa=Math.round,qa=Math.abs,ra=Date.now;la="function"!=typeof Object.assign?function(a){if(a===d||null===a)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(a),c=1;ch&&(b.push(a),h=b.length-1):e&(Ga|Ha)&&(c=!0),0>h||(b[h]=a,this.callback(this.manager,e,{pointers:b,changedPointers:[a],pointerType:f,srcEvent:a}),c&&b.splice(h,1))}});var Za={touchstart:Ea,touchmove:Fa,touchend:Ga,touchcancel:Ha},$a="touchstart",_a="touchstart touchmove touchend touchcancel";i(N,x,{handler:function(a){var b=Za[a.type];if(b===Ea&&(this.started=!0),this.started){var c=O.call(this,a,b);b&(Ga|Ha)&&c[0].length-c[1].length===0&&(this.started=!1),this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:za,srcEvent:a})}}});var ab={touchstart:Ea,touchmove:Fa,touchend:Ga,touchcancel:Ha},bb="touchstart touchmove touchend touchcancel";i(P,x,{handler:function(a){var b=ab[a.type],c=Q.call(this,a,b);c&&this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:za,srcEvent:a})}});var cb=2500,db=25;i(R,x,{handler:function(a,b,c){var d=c.pointerType==za,e=c.pointerType==Ba;if(!(e&&c.sourceCapabilities&&c.sourceCapabilities.firesTouchEvents)){if(d)S.call(this,b,c);else if(e&&U.call(this,c))return;this.callback(a,b,c)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var eb=u(na.style,"touchAction"),fb=eb!==d,gb="compute",hb="auto",ib="manipulation",jb="none",kb="pan-x",lb="pan-y",mb=X();V.prototype={set:function(a){a==gb&&(a=this.compute()),fb&&this.manager.element.style&&mb[a]&&(this.manager.element.style[eb]=a),this.actions=a.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var a=[];return g(this.manager.recognizers,function(b){k(b.options.enable,[b])&&(a=a.concat(b.getTouchAction()))}),W(a.join(" "))},preventDefaults:function(a){var b=a.srcEvent,c=a.offsetDirection;if(this.manager.session.prevented)return void b.preventDefault();var d=this.actions,e=p(d,jb)&&!mb[jb],f=p(d,lb)&&!mb[lb],g=p(d,kb)&&!mb[kb];if(e){var h=1===a.pointers.length,i=a.distance<2,j=a.deltaTime<250;if(h&&i&&j)return}return g&&f?void 0:e||f&&c&Na||g&&c&Oa?this.preventSrc(b):void 0},preventSrc:function(a){this.manager.session.prevented=!0,a.preventDefault()}};var nb=1,ob=2,pb=4,qb=8,rb=qb,sb=16,tb=32;Y.prototype={defaults:{},set:function(a){return la(this.options,a),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(a){if(f(a,"recognizeWith",this))return this;var b=this.simultaneous;return a=_(a,this),b[a.id]||(b[a.id]=a,a.recognizeWith(this)),this},dropRecognizeWith:function(a){return f(a,"dropRecognizeWith",this)?this:(a=_(a,this),delete this.simultaneous[a.id],this)},requireFailure:function(a){if(f(a,"requireFailure",this))return this;var b=this.requireFail;return a=_(a,this),-1===r(b,a)&&(b.push(a),a.requireFailure(this)),this},dropRequireFailure:function(a){if(f(a,"dropRequireFailure",this))return this;a=_(a,this);var b=r(this.requireFail,a);return b>-1&&this.requireFail.splice(b,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(a){return!!this.simultaneous[a.id]},emit:function(a){function b(b){c.manager.emit(b,a)}var c=this,d=this.state;qb>d&&b(c.options.event+Z(d)),b(c.options.event),a.additionalEvent&&b(a.additionalEvent),d>=qb&&b(c.options.event+Z(d))},tryEmit:function(a){return this.canEmit()?this.emit(a):void(this.state=tb)},canEmit:function(){for(var a=0;af?Ja:Ka,c=f!=this.pX,d=Math.abs(a.deltaX)):(e=0===g?Ia:0>g?La:Ma,c=g!=this.pY,d=Math.abs(a.deltaY))),a.direction=e,c&&d>b.threshold&&e&b.direction},attrTest:function(a){return aa.prototype.attrTest.call(this,a)&&(this.state&ob||!(this.state&ob)&&this.directionTest(a))},emit:function(a){this.pX=a.deltaX,this.pY=a.deltaY;var b=$(a.direction);b&&(a.additionalEvent=this.options.event+b),this._super.emit.call(this,a)}}),i(ca,aa,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[jb]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.scale-1)>this.options.threshold||this.state&ob)},emit:function(a){if(1!==a.scale){var b=a.scale<1?"in":"out";a.additionalEvent=this.options.event+b}this._super.emit.call(this,a)}}),i(da,Y,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[hb]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distanceb.time;if(this._input=a,!d||!c||a.eventType&(Ga|Ha)&&!f)this.reset();else if(a.eventType&Ea)this.reset(),this._timer=e(function(){this.state=rb,this.tryEmit()},b.time,this);else if(a.eventType&Ga)return rb;return tb},reset:function(){clearTimeout(this._timer)},emit:function(a){this.state===rb&&(a&&a.eventType&Ga?this.manager.emit(this.options.event+"up",a):(this._input.timeStamp=ra(),this.manager.emit(this.options.event,this._input)))}}),i(ea,aa,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[jb]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.rotation)>this.options.threshold||this.state&ob)}}),i(fa,aa,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Na|Oa,pointers:1},getTouchAction:function(){return ba.prototype.getTouchAction.call(this)},attrTest:function(a){var b,c=this.options.direction;return c&(Na|Oa)?b=a.overallVelocity:c&Na?b=a.overallVelocityX:c&Oa&&(b=a.overallVelocityY),this._super.attrTest.call(this,a)&&c&a.offsetDirection&&a.distance>this.options.threshold&&a.maxPointers==this.options.pointers&&qa(b)>this.options.velocity&&a.eventType&Ga},emit:function(a){var b=$(a.offsetDirection);b&&this.manager.emit(this.options.event+b,a),this.manager.emit(this.options.event,a)}}),i(ga,Y,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ib]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance{
+throw Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=()=>{
+throw Error("set is read-only")
+}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach((n=>{var i=t[n]
+;"object"!=typeof i||Object.isFrozen(i)||e(i)})),t}var t=e,n=e;t.default=n
+;class i{constructor(e){
+void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}
+ignoreMatch(){this.isMatchIgnored=!0}}function s(e){
+return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")
+}function a(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t]
+;return t.forEach((e=>{for(const t in e)n[t]=e[t]})),n}const r=e=>!!e.kind
+;class l{constructor(e,t){
+this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){
+this.buffer+=s(e)}openNode(e){if(!r(e))return;let t=e.kind
+;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){
+r(e)&&(this.buffer+="")}value(){return this.buffer}span(e){
+this.buffer+=``}}class o{constructor(){this.rootNode={
+children:[]},this.stack=[this.rootNode]}get top(){
+return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){
+this.top.children.push(e)}openNode(e){const t={kind:e,children:[]}
+;this.add(t),this.stack.push(t)}closeNode(){
+if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){
+for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}
+walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){
+return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),
+t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){
+"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{
+o._collapse(e)})))}}class c extends o{constructor(e){super(),this.options=e}
+addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}
+addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root
+;n.kind=t,n.sublanguage=!0,this.add(n)}toHTML(){
+return new l(this,this.options).value()}finalize(){return!0}}function g(e){
+return e?"string"==typeof e?e:e.source:null}
+const u=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,h="[a-zA-Z]\\w*",d="[a-zA-Z_]\\w*",f="\\b\\d+(\\.\\d+)?",p="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",m="\\b(0b[01]+)",b={
+begin:"\\\\[\\s\\S]",relevance:0},E={className:"string",begin:"'",end:"'",
+illegal:"\\n",contains:[b]},x={className:"string",begin:'"',end:'"',
+illegal:"\\n",contains:[b]},v={
+begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
+},w=(e,t,n={})=>{const i=a({className:"comment",begin:e,end:t,contains:[]},n)
+;return i.contains.push(v),i.contains.push({className:"doctag",
+begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),i
+},y=w("//","$"),N=w("/\\*","\\*/"),R=w("#","$");var _=Object.freeze({
+__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:h,UNDERSCORE_IDENT_RE:d,
+NUMBER_RE:f,C_NUMBER_RE:p,BINARY_NUMBER_RE:m,
+RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",
+SHEBANG:(e={})=>{const t=/^#![ ]*\//
+;return e.binary&&(e.begin=((...e)=>e.map((e=>g(e))).join(""))(t,/.*\b/,e.binary,/\b.*/)),
+a({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{
+0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:b,APOS_STRING_MODE:E,
+QUOTE_STRING_MODE:x,PHRASAL_WORDS_MODE:v,COMMENT:w,C_LINE_COMMENT_MODE:y,
+C_BLOCK_COMMENT_MODE:N,HASH_COMMENT_MODE:R,NUMBER_MODE:{className:"number",
+begin:f,relevance:0},C_NUMBER_MODE:{className:"number",begin:p,relevance:0},
+BINARY_NUMBER_MODE:{className:"number",begin:m,relevance:0},CSS_NUMBER_MODE:{
+className:"number",
+begin:f+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",
+relevance:0},REGEXP_MODE:{begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",
+begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[b,{begin:/\[/,end:/\]/,
+relevance:0,contains:[b]}]}]},TITLE_MODE:{className:"title",begin:h,relevance:0
+},UNDERSCORE_TITLE_MODE:{className:"title",begin:d,relevance:0},METHOD_GUARD:{
+begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0},END_SAME_AS_BEGIN:e=>Object.assign(e,{
+"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{
+t.data._beginMatch!==e[1]&&t.ignoreMatch()}})});function k(e,t){
+"."===e.input[e.index-1]&&t.ignoreMatch()}function M(e,t){
+t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",
+e.__beforeBegin=k,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,
+void 0===e.relevance&&(e.relevance=0))}function O(e,t){
+Array.isArray(e.illegal)&&(e.illegal=((...e)=>"("+e.map((e=>g(e))).join("|")+")")(...e.illegal))
+}function A(e,t){if(e.match){
+if(e.begin||e.end)throw Error("begin & end are not supported with match")
+;e.begin=e.match,delete e.match}}function L(e,t){
+void 0===e.relevance&&(e.relevance=1)}
+const I=["of","and","for","in","not","or","if","then","parent","list","value"]
+;function j(e,t,n="keyword"){const i={}
+;return"string"==typeof e?s(n,e.split(" ")):Array.isArray(e)?s(n,e):Object.keys(e).forEach((n=>{
+Object.assign(i,j(e[n],t,n))})),i;function s(e,n){
+t&&(n=n.map((e=>e.toLowerCase()))),n.forEach((t=>{const n=t.split("|")
+;i[n[0]]=[e,B(n[0],n[1])]}))}}function B(e,t){
+return t?Number(t):(e=>I.includes(e.toLowerCase()))(e)?0:1}
+function T(e,{plugins:t}){function n(t,n){
+return RegExp(g(t),"m"+(e.case_insensitive?"i":"")+(n?"g":""))}class i{
+constructor(){
+this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}
+addRule(e,t){
+t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),
+this.matchAt+=(e=>RegExp(e.toString()+"|").exec("").length-1)(e)+1}compile(){
+0===this.regexes.length&&(this.exec=()=>null)
+;const e=this.regexes.map((e=>e[1]));this.matcherRe=n(((e,t="|")=>{let n=0
+;return e.map((e=>{n+=1;const t=n;let i=g(e),s="";for(;i.length>0;){
+const e=u.exec(i);if(!e){s+=i;break}
+s+=i.substring(0,e.index),i=i.substring(e.index+e[0].length),
+"\\"===e[0][0]&&e[1]?s+="\\"+(Number(e[1])+t):(s+=e[0],"("===e[0]&&n++)}return s
+})).map((e=>`(${e})`)).join(t)})(e),!0),this.lastIndex=0}exec(e){
+this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e)
+;if(!t)return null
+;const n=t.findIndex(((e,t)=>t>0&&void 0!==e)),i=this.matchIndexes[n]
+;return t.splice(0,n),Object.assign(t,i)}}class s{constructor(){
+this.rules=[],this.multiRegexes=[],
+this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){
+if(this.multiRegexes[e])return this.multiRegexes[e];const t=new i
+;return this.rules.slice(e).forEach((([e,n])=>t.addRule(e,n))),
+t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){
+return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){
+this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){
+const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex
+;let n=t.exec(e)
+;if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{
+const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}
+return n&&(this.regexIndex+=n.position+1,
+this.regexIndex===this.count&&this.considerAll()),n}}
+if(e.compilerExtensions||(e.compilerExtensions=[]),
+e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.")
+;return e.classNameAliases=a(e.classNameAliases||{}),function t(i,r){const l=i
+;if(i.isCompiled)return l
+;[A].forEach((e=>e(i,r))),e.compilerExtensions.forEach((e=>e(i,r))),
+i.__beforeBegin=null,[M,O,L].forEach((e=>e(i,r))),i.isCompiled=!0;let o=null
+;if("object"==typeof i.keywords&&(o=i.keywords.$pattern,
+delete i.keywords.$pattern),
+i.keywords&&(i.keywords=j(i.keywords,e.case_insensitive)),
+i.lexemes&&o)throw Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ")
+;return o=o||i.lexemes||/\w+/,
+l.keywordPatternRe=n(o,!0),r&&(i.begin||(i.begin=/\B|\b/),
+l.beginRe=n(i.begin),i.endSameAsBegin&&(i.end=i.begin),
+i.end||i.endsWithParent||(i.end=/\B|\b/),
+i.end&&(l.endRe=n(i.end)),l.terminatorEnd=g(i.end)||"",
+i.endsWithParent&&r.terminatorEnd&&(l.terminatorEnd+=(i.end?"|":"")+r.terminatorEnd)),
+i.illegal&&(l.illegalRe=n(i.illegal)),
+i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map((e=>(e=>(e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((t=>a(e,{
+variants:null},t)))),e.cachedVariants?e.cachedVariants:S(e)?a(e,{
+starts:e.starts?a(e.starts):null
+}):Object.isFrozen(e)?a(e):e))("self"===e?i:e)))),i.contains.forEach((e=>{t(e,l)
+})),i.starts&&t(i.starts,r),l.matcher=(e=>{const t=new s
+;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin"
+}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"
+}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t})(l),l}(e)}function S(e){
+return!!e&&(e.endsWithParent||S(e.starts))}function P(e){const t={
+props:["language","code","autodetect"],data:()=>({detectedLanguage:"",
+unknownLanguage:!1}),computed:{className(){
+return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){
+if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),
+this.unknownLanguage=!0,s(this.code);let t={}
+;return this.autoDetect?(t=e.highlightAuto(this.code),
+this.detectedLanguage=t.language):(t=e.highlight(this.language,this.code,this.ignoreIllegals),
+this.detectedLanguage=this.language),t.value},autoDetect(){
+return!(this.language&&(e=this.autodetect,!e&&""!==e));var e},
+ignoreIllegals:()=>!0},render(e){return e("pre",{},[e("code",{
+class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{
+Component:t,VuePlugin:{install(e){e.component("highlightjs",t)}}}}const D={
+"after:highlightElement":({el:e,result:t,text:n})=>{const i=H(e)
+;if(!i.length)return;const a=document.createElement("div")
+;a.innerHTML=t.value,t.value=((e,t,n)=>{let i=0,a="";const r=[];function l(){
+return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset"}function c(e){
+a+=""+C(e)+">"}function g(e){("start"===e.event?o:c)(e.node)}
+for(;e.length||t.length;){let t=l()
+;if(a+=s(n.substring(i,t[0].offset)),i=t[0].offset,t===e){r.reverse().forEach(c)
+;do{g(t.splice(0,1)[0]),t=l()}while(t===e&&t.length&&t[0].offset===i)
+;r.reverse().forEach(o)
+}else"start"===t[0].event?r.push(t[0].node):r.pop(),g(t.splice(0,1)[0])}
+return a+s(n.substr(i))})(i,H(a),n)}};function C(e){
+return e.nodeName.toLowerCase()}function H(e){const t=[];return function e(n,i){
+for(let s=n.firstChild;s;s=s.nextSibling)3===s.nodeType?i+=s.nodeValue.length:1===s.nodeType&&(t.push({
+event:"start",offset:i,node:s}),i=e(s,i),C(s).match(/br|hr|img|input/)||t.push({
+event:"stop",offset:i,node:s}));return i}(e,0),t}const $={},U=e=>{
+console.error(e)},z=(e,...t)=>{console.log("WARN: "+e,...t)},K=(e,t)=>{
+$[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),$[`${e}/${t}`]=!0)
+},G=s,V=a,W=Symbol("nomatch");return(e=>{
+const n=Object.create(null),s=Object.create(null),a=[];let r=!0
+;const l=/(^(<[^>]+>|\t|)+|\n)/gm,o="Could not find the language '{}', did you forget to load/include a language module?",g={
+disableAutodetect:!0,name:"Plain text",contains:[]};let u={
+noHighlightRe:/^(no-?highlight)$/i,
+languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",
+tabReplace:null,useBR:!1,languages:null,__emitter:c};function h(e){
+return u.noHighlightRe.test(e)}function d(e,t,n,i){let s="",a=""
+;"object"==typeof t?(s=e,
+n=t.ignoreIllegals,a=t.language,i=void 0):(K("10.7.0","highlight(lang, code, ...args) has been deprecated."),
+K("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),
+a=e,s=t);const r={code:s,language:a};M("before:highlight",r)
+;const l=r.result?r.result:f(r.language,r.code,n,i)
+;return l.code=r.code,M("after:highlight",l),l}function f(e,t,s,l){
+function c(e,t){const n=v.case_insensitive?t[0].toLowerCase():t[0]
+;return Object.prototype.hasOwnProperty.call(e.keywords,n)&&e.keywords[n]}
+function g(){null!=R.subLanguage?(()=>{if(""===M)return;let e=null
+;if("string"==typeof R.subLanguage){
+if(!n[R.subLanguage])return void k.addText(M)
+;e=f(R.subLanguage,M,!0,_[R.subLanguage]),_[R.subLanguage]=e.top
+}else e=p(M,R.subLanguage.length?R.subLanguage:null)
+;R.relevance>0&&(O+=e.relevance),k.addSublanguage(e.emitter,e.language)
+})():(()=>{if(!R.keywords)return void k.addText(M);let e=0
+;R.keywordPatternRe.lastIndex=0;let t=R.keywordPatternRe.exec(M),n="";for(;t;){
+n+=M.substring(e,t.index);const i=c(R,t);if(i){const[e,s]=i
+;if(k.addText(n),n="",O+=s,e.startsWith("_"))n+=t[0];else{
+const n=v.classNameAliases[e]||e;k.addKeyword(t[0],n)}}else n+=t[0]
+;e=R.keywordPatternRe.lastIndex,t=R.keywordPatternRe.exec(M)}
+n+=M.substr(e),k.addText(n)})(),M=""}function h(e){
+return e.className&&k.openNode(v.classNameAliases[e.className]||e.className),
+R=Object.create(e,{parent:{value:R}}),R}function d(e,t,n){let s=((e,t)=>{
+const n=e&&e.exec(t);return n&&0===n.index})(e.endRe,n);if(s){if(e["on:end"]){
+const n=new i(e);e["on:end"](t,n),n.isMatchIgnored&&(s=!1)}if(s){
+for(;e.endsParent&&e.parent;)e=e.parent;return e}}
+if(e.endsWithParent)return d(e.parent,t,n)}function m(e){
+return 0===R.matcher.regexIndex?(M+=e[0],1):(I=!0,0)}function b(e){
+const n=e[0],i=t.substr(e.index),s=d(R,e,i);if(!s)return W;const a=R
+;a.skip?M+=n:(a.returnEnd||a.excludeEnd||(M+=n),g(),a.excludeEnd&&(M=n));do{
+R.className&&k.closeNode(),R.skip||R.subLanguage||(O+=R.relevance),R=R.parent
+}while(R!==s.parent)
+;return s.starts&&(s.endSameAsBegin&&(s.starts.endRe=s.endRe),
+h(s.starts)),a.returnEnd?0:n.length}let E={};function x(n,a){const l=a&&a[0]
+;if(M+=n,null==l)return g(),0
+;if("begin"===E.type&&"end"===a.type&&E.index===a.index&&""===l){
+if(M+=t.slice(a.index,a.index+1),!r){const t=Error("0 width match regex")
+;throw t.languageName=e,t.badRule=E.rule,t}return 1}
+if(E=a,"begin"===a.type)return function(e){
+const t=e[0],n=e.rule,s=new i(n),a=[n.__beforeBegin,n["on:begin"]]
+;for(const n of a)if(n&&(n(e,s),s.isMatchIgnored))return m(t)
+;return n&&n.endSameAsBegin&&(n.endRe=RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),
+n.skip?M+=t:(n.excludeBegin&&(M+=t),
+g(),n.returnBegin||n.excludeBegin||(M=t)),h(n),n.returnBegin?0:t.length}(a)
+;if("illegal"===a.type&&!s){
+const e=Error('Illegal lexeme "'+l+'" for mode "'+(R.className||"")+'"')
+;throw e.mode=R,e}if("end"===a.type){const e=b(a);if(e!==W)return e}
+if("illegal"===a.type&&""===l)return 1
+;if(L>1e5&&L>3*a.index)throw Error("potential infinite loop, way more iterations than matches")
+;return M+=l,l.length}const v=N(e)
+;if(!v)throw U(o.replace("{}",e)),Error('Unknown language: "'+e+'"')
+;const w=T(v,{plugins:a});let y="",R=l||w;const _={},k=new u.__emitter(u);(()=>{
+const e=[];for(let t=R;t!==v;t=t.parent)t.className&&e.unshift(t.className)
+;e.forEach((e=>k.openNode(e)))})();let M="",O=0,A=0,L=0,I=!1;try{
+for(R.matcher.considerAll();;){
+L++,I?I=!1:R.matcher.considerAll(),R.matcher.lastIndex=A
+;const e=R.matcher.exec(t);if(!e)break;const n=x(t.substring(A,e.index),e)
+;A=e.index+n}return x(t.substr(A)),k.closeAllNodes(),k.finalize(),y=k.toHTML(),{
+relevance:Math.floor(O),value:y,language:e,illegal:!1,emitter:k,top:R}}catch(n){
+if(n.message&&n.message.includes("Illegal"))return{illegal:!0,illegalBy:{
+msg:n.message,context:t.slice(A-100,A+100),mode:n.mode},sofar:y,relevance:0,
+value:G(t),emitter:k};if(r)return{illegal:!1,relevance:0,value:G(t),emitter:k,
+language:e,top:R,errorRaised:n};throw n}}function p(e,t){
+t=t||u.languages||Object.keys(n);const i=(e=>{const t={relevance:0,
+emitter:new u.__emitter(u),value:G(e),illegal:!1,top:g}
+;return t.emitter.addText(e),t})(e),s=t.filter(N).filter(k).map((t=>f(t,e,!1)))
+;s.unshift(i);const a=s.sort(((e,t)=>{
+if(e.relevance!==t.relevance)return t.relevance-e.relevance
+;if(e.language&&t.language){if(N(e.language).supersetOf===t.language)return 1
+;if(N(t.language).supersetOf===e.language)return-1}return 0})),[r,l]=a,o=r
+;return o.second_best=l,o}const m={"before:highlightElement":({el:e})=>{
+u.useBR&&(e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/
/g,"\n"))
+},"after:highlightElement":({result:e})=>{
+u.useBR&&(e.value=e.value.replace(/\n/g,"
"))}},b=/^(<[^>]+>|\t)+/gm,E={
+"after:highlightElement":({result:e})=>{
+u.tabReplace&&(e.value=e.value.replace(b,(e=>e.replace(/\t/g,u.tabReplace))))}}
+;function x(e){let t=null;const n=(e=>{let t=e.className+" "
+;t+=e.parentNode?e.parentNode.className:"";const n=u.languageDetectRe.exec(t)
+;if(n){const t=N(n[1])
+;return t||(z(o.replace("{}",n[1])),z("Falling back to no-highlight mode for this block.",e)),
+t?n[1]:"no-highlight"}return t.split(/\s+/).find((e=>h(e)||N(e)))})(e)
+;if(h(n))return;M("before:highlightElement",{el:e,language:n}),t=e
+;const i=t.textContent,a=n?d(i,{language:n,ignoreIllegals:!0}):p(i)
+;M("after:highlightElement",{el:e,result:a,text:i
+}),e.innerHTML=a.value,((e,t,n)=>{const i=t?s[t]:n
+;e.classList.add("hljs"),i&&e.classList.add(i)})(e,n,a.language),e.result={
+language:a.language,re:a.relevance,relavance:a.relevance
+},a.second_best&&(e.second_best={language:a.second_best.language,
+re:a.second_best.relevance,relavance:a.second_best.relevance})}const v=()=>{
+v.called||(v.called=!0,
+K("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),
+document.querySelectorAll("pre code").forEach(x))};let w=!1;function y(){
+"loading"!==document.readyState?document.querySelectorAll("pre code").forEach(x):w=!0
+}function N(e){return e=(e||"").toLowerCase(),n[e]||n[s[e]]}
+function R(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach((e=>{
+s[e.toLowerCase()]=t}))}function k(e){const t=N(e)
+;return t&&!t.disableAutodetect}function M(e,t){const n=e;a.forEach((e=>{
+e[n]&&e[n](t)}))}
+"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(()=>{
+w&&y()}),!1),Object.assign(e,{highlight:d,highlightAuto:p,highlightAll:y,
+fixMarkup:e=>{
+return K("10.2.0","fixMarkup will be removed entirely in v11.0"),K("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),
+t=e,
+u.tabReplace||u.useBR?t.replace(l,(e=>"\n"===e?u.useBR?"
":e:u.tabReplace?e.replace(/\t/g,u.tabReplace):e)):t
+;var t},highlightElement:x,
+highlightBlock:e=>(K("10.7.0","highlightBlock will be removed entirely in v12.0"),
+K("10.7.0","Please use highlightElement now."),x(e)),configure:e=>{
+e.useBR&&(K("10.3.0","'useBR' will be removed entirely in v11.0"),
+K("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),
+u=V(u,e)},initHighlighting:v,initHighlightingOnLoad:()=>{
+K("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),
+w=!0},registerLanguage:(t,i)=>{let s=null;try{s=i(e)}catch(e){
+if(U("Language definition for '{}' could not be registered.".replace("{}",t)),
+!r)throw e;U(e),s=g}
+s.name||(s.name=t),n[t]=s,s.rawDefinition=i.bind(null,e),s.aliases&&R(s.aliases,{
+languageName:t})},unregisterLanguage:e=>{delete n[e]
+;for(const t of Object.keys(s))s[t]===e&&delete s[t]},
+listLanguages:()=>Object.keys(n),getLanguage:N,registerAliases:R,
+requireLanguage:e=>{
+K("10.4.0","requireLanguage will be removed entirely in v11."),
+K("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844")
+;const t=N(e);if(t)return t
+;throw Error("The '{}' language is required, but not loaded.".replace("{}",e))},
+autoDetection:k,inherit:V,addPlugin:e=>{(e=>{
+e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{
+e["before:highlightBlock"](Object.assign({block:t.el},t))
+}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{
+e["after:highlightBlock"](Object.assign({block:t.el},t))})})(e),a.push(e)},
+vuePlugin:P(e).VuePlugin}),e.debugMode=()=>{r=!1},e.safeMode=()=>{r=!0
+},e.versionString="10.7.2";for(const e in _)"object"==typeof _[e]&&t(_[e])
+;return Object.assign(e,_),e.addPlugin(m),e.addPlugin(D),e.addPlugin(E),e})({})
+}();"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=hljs);
+hljs.registerLanguage("apache",(()=>{"use strict";return e=>{const n={
+className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/}
+;return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,
+contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,
+contains:[n,{className:"number",begin:/:\d{1,5}/
+},e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",
+begin:/\w+/,relevance:0,keywords:{
+nomarkup:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"
+},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},
+contains:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",
+begin:/[\$%]\{/,end:/\}/,contains:["self",{className:"number",begin:/[$%]\d+/}]
+},n,{className:"number",begin:/\d+/},e.QUOTE_STRING_MODE]}}],illegal:/\S/}}
+})());
+hljs.registerLanguage("bash",(()=>{"use strict";function e(...e){
+return e.map((e=>{return(s=e)?"string"==typeof s?s:s.source:null;var s
+})).join("")}return s=>{const n={},t={begin:/\$\{/,end:/\}/,contains:["self",{
+begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{
+begin:e(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},t]});const a={
+className:"subst",begin:/\$\(/,end:/\)/,contains:[s.BACKSLASH_ESCAPE]},i={
+begin:/<<-?\s*(?=\w+)/,starts:{contains:[s.END_SAME_AS_BEGIN({begin:/(\w+)/,
+end:/(\w+)/,className:"string"})]}},c={className:"string",begin:/"/,end:/"/,
+contains:[s.BACKSLASH_ESCAPE,n,a]};a.contains.push(c);const o={begin:/\$\(\(/,
+end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},s.NUMBER_MODE,n]
+},r=s.SHEBANG({binary:"(fish|bash|zsh|sh|csh|ksh|tcsh|dash|scsh)",relevance:10
+}),l={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,
+contains:[s.inherit(s.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{
+name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z._-]+\b/,
+keyword:"if then else elif fi for while in do done case esac function",
+literal:"true false",
+built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp"
+},contains:[r,s.SHEBANG(),l,o,s.HASH_COMMENT_MODE,i,c,{className:"",begin:/\\"/
+},{className:"string",begin:/'/,end:/'/},n]}}})());
+hljs.registerLanguage("c",(()=>{"use strict";function e(e){
+return((...e)=>e.map((e=>(e=>e?"string"==typeof e?e:e.source:null)(e))).join(""))("(",e,")?")
+}return t=>{const n=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]
+}),r="[a-zA-Z_]\\w*::",a="(decltype\\(auto\\)|"+e(r)+"[a-zA-Z_]\\w*"+e("<[^<>]+>")+")",i={
+className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},s={className:"string",
+variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",
+contains:[t.BACKSLASH_ESCAPE]},{
+begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",
+end:"'",illegal:"."},t.END_SAME_AS_BEGIN({
+begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},o={
+className:"number",variants:[{begin:"\\b(0b[01']+)"},{
+begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"
+},{
+begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"
+}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{
+"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"
+},contains:[{begin:/\\\n/,relevance:0},t.inherit(s,{className:"meta-string"}),{
+className:"meta-string",begin:/<.*?>/},n,t.C_BLOCK_COMMENT_MODE]},l={
+className:"title",begin:e(r)+t.IDENT_RE,relevance:0
+},d=e(r)+t.IDENT_RE+"\\s*\\(",u={
+keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",
+built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr _Bool complex _Complex imaginary _Imaginary",
+literal:"true false nullptr NULL"},m=[c,i,n,t.C_BLOCK_COMMENT_MODE,o,s],p={
+variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{
+beginKeywords:"new throw return else",end:/;/}],keywords:u,contains:m.concat([{
+begin:/\(/,end:/\)/,keywords:u,contains:m.concat(["self"]),relevance:0}]),
+relevance:0},_={className:"function",begin:"("+a+"[\\*&\\s]+)+"+d,
+returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:u,illegal:/[^\w\s\*&:<>.]/,
+contains:[{begin:"decltype\\(auto\\)",keywords:u,relevance:0},{begin:d,
+returnBegin:!0,contains:[l],relevance:0},{className:"params",begin:/\(/,
+end:/\)/,keywords:u,relevance:0,contains:[n,t.C_BLOCK_COMMENT_MODE,s,o,i,{
+begin:/\(/,end:/\)/,keywords:u,relevance:0,
+contains:["self",n,t.C_BLOCK_COMMENT_MODE,s,o,i]}]
+},i,n,t.C_BLOCK_COMMENT_MODE,c]};return{name:"C",aliases:["h"],keywords:u,
+disableAutodetect:!0,illegal:"",contains:[].concat(p,_,m,[c,{
+begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",
+end:">",keywords:u,contains:["self",i]},{begin:t.IDENT_RE+"::",keywords:u},{
+className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,
+contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{
+preprocessor:c,strings:s,keywords:u}}}})());
+hljs.registerLanguage("coffeescript",(()=>{"use strict"
+;const e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],a=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"])
+;return r=>{const t={
+keyword:e.concat(["then","unless","until","loop","by","when","and","or","is","isnt","not"]).filter((i=["var","const","let","function","static"],
+e=>!i.includes(e))),literal:n.concat(["yes","no","on","off"]),
+built_in:a.concat(["npm","print"])};var i;const s="[A-Za-z$_][0-9A-Za-z$_]*",o={
+className:"subst",begin:/#\{/,end:/\}/,keywords:t
+},c=[r.BINARY_NUMBER_MODE,r.inherit(r.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",
+relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,
+contains:[r.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[r.BACKSLASH_ESCAPE]
+},{begin:/"""/,end:/"""/,contains:[r.BACKSLASH_ESCAPE,o]},{begin:/"/,end:/"/,
+contains:[r.BACKSLASH_ESCAPE,o]}]},{className:"regexp",variants:[{begin:"///",
+end:"///",contains:[o,r.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",
+relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+s
+},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{
+begin:"```",end:"```"},{begin:"`",end:"`"}]}];o.contains=c
+;const l=r.inherit(r.TITLE_MODE,{begin:s}),d="(\\(.*\\)\\s*)?\\B[-=]>",g={
+className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,
+end:/\)/,keywords:t,contains:["self"].concat(c)}]};return{name:"CoffeeScript",
+aliases:["coffee","cson","iced"],keywords:t,illegal:/\/\*/,
+contains:c.concat([r.COMMENT("###","###"),r.HASH_COMMENT_MODE,{
+className:"function",begin:"^\\s*"+s+"\\s*=\\s*"+d,end:"[-=]>",returnBegin:!0,
+contains:[l,g]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",
+begin:d,end:"[-=]>",returnBegin:!0,contains:[g]}]},{className:"class",
+beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{
+beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[l]},l]
+},{begin:s+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}})());
+hljs.registerLanguage("cpp",(()=>{"use strict";function e(e){
+return t("(",e,")?")}function t(...e){return e.map((e=>{
+return(t=e)?"string"==typeof t?t:t.source:null;var t})).join("")}return n=>{
+const r=n.COMMENT("//","$",{contains:[{begin:/\\\n/}]
+}),a="[a-zA-Z_]\\w*::",i="(decltype\\(auto\\)|"+e(a)+"[a-zA-Z_]\\w*"+e("<[^<>]+>")+")",s={
+className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",
+variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",
+contains:[n.BACKSLASH_ESCAPE]},{
+begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",
+end:"'",illegal:"."},n.END_SAME_AS_BEGIN({
+begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},o={
+className:"number",variants:[{begin:"\\b(0b[01']+)"},{
+begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"
+},{
+begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"
+}],relevance:0},l={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{
+"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"
+},contains:[{begin:/\\\n/,relevance:0},n.inherit(c,{className:"meta-string"}),{
+className:"meta-string",begin:/<.*?>/},r,n.C_BLOCK_COMMENT_MODE]},d={
+className:"title",begin:e(a)+n.IDENT_RE,relevance:0
+},u=e(a)+n.IDENT_RE+"\\s*\\(",m={
+keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",
+built_in:"_Bool _Complex _Imaginary",
+_relevance_hints:["asin","atan2","atan","calloc","ceil","cosh","cos","exit","exp","fabs","floor","fmod","fprintf","fputs","free","frexp","auto_ptr","deque","list","queue","stack","vector","map","set","pair","bitset","multiset","multimap","unordered_set","fscanf","future","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","tolower","toupper","labs","ldexp","log10","log","malloc","realloc","memchr","memcmp","memcpy","memset","modf","pow","printf","putchar","puts","scanf","sinh","sin","snprintf","sprintf","sqrt","sscanf","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","tanh","tan","unordered_map","unordered_multiset","unordered_multimap","priority_queue","make_pair","array","shared_ptr","abort","terminate","abs","acos","vfprintf","vprintf","vsprintf","endl","initializer_list","unique_ptr","complex","imaginary","std","string","wstring","cin","cout","cerr","clog","stdin","stdout","stderr","stringstream","istringstream","ostringstream"],
+literal:"true false nullptr NULL"},p={className:"function.dispatch",relevance:0,
+keywords:m,
+begin:t(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!while)/,n.IDENT_RE,(_=/\s*\(/,
+t("(?=",_,")")))};var _;const g=[p,l,s,r,n.C_BLOCK_COMMENT_MODE,o,c],b={
+variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{
+beginKeywords:"new throw return else",end:/;/}],keywords:m,contains:g.concat([{
+begin:/\(/,end:/\)/,keywords:m,contains:g.concat(["self"]),relevance:0}]),
+relevance:0},f={className:"function",begin:"("+i+"[\\*&\\s]+)+"+u,
+returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:m,illegal:/[^\w\s\*&:<>.]/,
+contains:[{begin:"decltype\\(auto\\)",keywords:m,relevance:0},{begin:u,
+returnBegin:!0,contains:[d],relevance:0},{begin:/::/,relevance:0},{begin:/:/,
+endsWithParent:!0,contains:[c,o]},{className:"params",begin:/\(/,end:/\)/,
+keywords:m,relevance:0,contains:[r,n.C_BLOCK_COMMENT_MODE,c,o,s,{begin:/\(/,
+end:/\)/,keywords:m,relevance:0,contains:["self",r,n.C_BLOCK_COMMENT_MODE,c,o,s]
+}]},s,r,n.C_BLOCK_COMMENT_MODE,l]};return{name:"C++",
+aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:m,illegal:"",
+classNameAliases:{"function.dispatch":"built_in"},
+contains:[].concat(b,f,p,g,[l,{
+begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",
+end:">",keywords:m,contains:["self",s]},{begin:n.IDENT_RE+"::",keywords:m},{
+className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,
+contains:[{beginKeywords:"final class struct"},n.TITLE_MODE]}]),exports:{
+preprocessor:l,strings:c,keywords:m}}}})());
+hljs.registerLanguage("csharp",(()=>{"use strict";return e=>{const n={
+keyword:["abstract","as","base","break","case","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"].concat(["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"]),
+built_in:["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],
+literal:["default","false","null","true"]},a=e.inherit(e.TITLE_MODE,{
+begin:"[a-zA-Z](\\.?\\w)*"}),i={className:"number",variants:[{
+begin:"\\b(0b[01']+)"},{
+begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{
+begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"
+}],relevance:0},s={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]
+},t=e.inherit(s,{illegal:/\n/}),r={className:"subst",begin:/\{/,end:/\}/,
+keywords:n},l=e.inherit(r,{illegal:/\n/}),c={className:"string",begin:/\$"/,
+end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/
+},e.BACKSLASH_ESCAPE,l]},o={className:"string",begin:/\$@"/,end:'"',contains:[{
+begin:/\{\{/},{begin:/\}\}/},{begin:'""'},r]},d=e.inherit(o,{illegal:/\n/,
+contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},l]})
+;r.contains=[o,c,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.C_BLOCK_COMMENT_MODE],
+l.contains=[d,c,t,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.inherit(e.C_BLOCK_COMMENT_MODE,{
+illegal:/\n/})];const g={variants:[o,c,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]
+},E={begin:"<",end:">",contains:[{beginKeywords:"in out"},a]
+},_=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",b={
+begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],
+keywords:n,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,
+contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{
+begin:"\x3c!--|--\x3e"},{begin:"?",end:">"}]}]
+}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",
+end:"$",keywords:{
+"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum"
+}},g,i,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,
+illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"
+},a,E,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",
+relevance:0,end:/[{;=]/,illegal:/[^\s:]/,
+contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{
+beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,
+contains:[a,E,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",
+begin:"^\\s*\\[",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{
+className:"meta-string",begin:/"/,end:/"/}]},{
+beginKeywords:"new return throw await else",relevance:0},{className:"function",
+begin:"("+_+"\\s+)+"+e.IDENT_RE+"\\s*(<.+>\\s*)?\\(",returnBegin:!0,
+end:/\s*[{;=]/,excludeEnd:!0,keywords:n,contains:[{
+beginKeywords:"public private protected static internal protected abstract async extern override unsafe virtual new sealed partial",
+relevance:0},{begin:e.IDENT_RE+"\\s*(<.+>\\s*)?\\(",returnBegin:!0,
+contains:[e.TITLE_MODE,E],relevance:0},{className:"params",begin:/\(/,end:/\)/,
+excludeBegin:!0,excludeEnd:!0,keywords:n,relevance:0,
+contains:[g,i,e.C_BLOCK_COMMENT_MODE]
+},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},b]}}})());
+hljs.registerLanguage("css",(()=>{"use strict"
+;const e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],r=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse()
+;return n=>{const a=(e=>({IMPORTANT:{className:"meta",begin:"!important"},
+HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},
+ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,
+illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}
+}))(n),l=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE];return{name:"CSS",
+case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},
+classNameAliases:{keyframePosition:"selector-tag"},
+contains:[n.C_BLOCK_COMMENT_MODE,{begin:/-(webkit|moz|ms|o)-(?=[a-z])/
+},n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0
+},{className:"selector-class",begin:"\\.[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0
+},a.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{
+begin:":("+i.join("|")+")"},{begin:"::("+o.join("|")+")"}]},{
+className:"attribute",begin:"\\b("+r.join("|")+")\\b"},{begin:":",end:"[;}]",
+contains:[a.HEXCOLOR,a.IMPORTANT,n.CSS_NUMBER_MODE,...l,{
+begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"
+},contains:[{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]
+},{className:"built_in",begin:/[\w-]+(?=\()/}]},{
+begin:(s=/@/,((...e)=>e.map((e=>(e=>e?"string"==typeof e?e:e.source:null)(e))).join(""))("(?=",s,")")),
+end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",
+begin:/@-?\w[\w]*(-\w+)*/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,
+relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",
+attribute:t.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"
+},...l,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",
+begin:"\\b("+e.join("|")+")\\b"}]};var s}})());
+hljs.registerLanguage("diff",(()=>{"use strict";return e=>({name:"Diff",
+aliases:["patch"],contains:[{className:"meta",relevance:10,variants:[{
+begin:/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/},{begin:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{
+begin:/^--- +\d+,\d+ +----$/}]},{className:"comment",variants:[{begin:/Index: /,
+end:/$/},{begin:/^index/,end:/$/},{begin:/={3,}/,end:/$/},{begin:/^-{3}/,end:/$/
+},{begin:/^\*{3} /,end:/$/},{begin:/^\+{3}/,end:/$/},{begin:/^\*{15}$/},{
+begin:/^diff --git/,end:/$/}]},{className:"addition",begin:/^\+/,end:/$/},{
+className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,
+end:/$/}]})})());
+hljs.registerLanguage("go",(()=>{"use strict";return e=>{const n={
+keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",
+literal:"true false iota nil",
+built_in:"append cap close complex copy imag len make new panic print println real recover delete"
+};return{name:"Go",aliases:["golang"],keywords:n,illegal:"",
+contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",
+variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{
+className:"number",variants:[{begin:e.C_NUMBER_RE+"[i]",relevance:1
+},e.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",
+end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",
+begin:/\(/,end:/\)/,keywords:n,illegal:/["']/}]}]}}})());
+hljs.registerLanguage("http",(()=>{"use strict";function e(...e){
+return e.map((e=>{return(n=e)?"string"==typeof n?n:n.source:null;var n
+})).join("")}return n=>{const a="HTTP/(2|1\\.[01])",s={className:"attribute",
+begin:e("^",/[A-Za-z][A-Za-z0-9-]*/,"(?=\\:\\s)"),starts:{contains:[{
+className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}
+},t=[s,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{
+name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+a+" \\d{3})",
+end:/$/,contains:[{className:"meta",begin:a},{className:"number",
+begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:t}},{
+begin:"(?=^[A-Z]+ (.*?) "+a+"$)",end:/$/,contains:[{className:"string",
+begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:a},{
+className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:t}
+},n.inherit(s,{relevance:0})]}}})());
+hljs.registerLanguage("ini",(()=>{"use strict";function e(e){
+return e?"string"==typeof e?e:e.source:null}function n(...n){
+return n.map((n=>e(n))).join("")}return s=>{const a={className:"number",
+relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:s.NUMBER_RE}]
+},i=s.COMMENT();i.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const t={
+className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/
+}]},r={className:"literal",begin:/\bon|off|true|false|yes|no\b/},l={
+className:"string",contains:[s.BACKSLASH_ESCAPE],variants:[{begin:"'''",
+end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'
+},{begin:"'",end:"'"}]},c={begin:/\[/,end:/\]/,contains:[i,r,t,l,a,"self"],
+relevance:0
+},g="("+[/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/].map((n=>e(n))).join("|")+")"
+;return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,
+contains:[i,{className:"section",begin:/\[+/,end:/\]+/},{
+begin:n(g,"(\\s*\\.\\s*",g,")*",n("(?=",/\s*=\s*[^#\s]/,")")),className:"attr",
+starts:{end:/$/,contains:[i,c,r,t,l,a]}}]}}})());
+hljs.registerLanguage("java",(()=>{"use strict"
+;var e="\\.([0-9](_*[0-9])*)",n="[0-9a-fA-F](_*[0-9a-fA-F])*",a={
+className:"number",variants:[{
+begin:`(\\b([0-9](_*[0-9])*)((${e})|\\.)?|(${e}))[eE][+-]?([0-9](_*[0-9])*)[fFdD]?\\b`
+},{begin:`\\b([0-9](_*[0-9])*)((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{
+begin:`(${e})[fFdD]?\\b`},{begin:"\\b([0-9](_*[0-9])*)[fFdD]\\b"},{
+begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?([0-9](_*[0-9])*)[fFdD]?\\b`
+},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{
+begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],
+relevance:0};return e=>{
+var n="false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",s={
+className:"meta",begin:"@[\xc0-\u02b8a-zA-Z_$][\xc0-\u02b8a-zA-Z_$0-9]*",
+contains:[{begin:/\(/,end:/\)/,contains:["self"]}]};const r=a;return{
+name:"Java",aliases:["jsp"],keywords:n,illegal:/<\/|#/,
+contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,
+relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{
+begin:/import java\.[a-z]+\./,keywords:"import",relevance:2
+},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{
+className:"class",beginKeywords:"class interface enum",end:/[{;=]/,
+excludeEnd:!0,relevance:1,keywords:"class interface enum",illegal:/[:"\[\]]/,
+contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{
+beginKeywords:"new throw return else",relevance:0},{className:"class",
+begin:"record\\s+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,excludeEnd:!0,
+end:/[{;=]/,keywords:n,contains:[{beginKeywords:"record"},{
+begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,
+contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,
+keywords:n,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE]
+},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"function",
+begin:"([\xc0-\u02b8a-zA-Z_$][\xc0-\u02b8a-zA-Z_$0-9]*(<[\xc0-\u02b8a-zA-Z_$][\xc0-\u02b8a-zA-Z_$0-9]*(\\s*,\\s*[\xc0-\u02b8a-zA-Z_$][\xc0-\u02b8a-zA-Z_$0-9]*)*>)?\\s+)+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",
+returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:n,contains:[{
+begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,
+contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,
+keywords:n,relevance:0,
+contains:[s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,r,e.C_BLOCK_COMMENT_MODE]
+},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},r,s]}}})());
+hljs.registerLanguage("javascript",(()=>{"use strict"
+;const e="[A-Za-z$_][0-9A-Za-z$_]*",n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],a=["true","false","null","undefined","NaN","Infinity"],s=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"])
+;function r(e){return t("(?=",e,")")}function t(...e){return e.map((e=>{
+return(n=e)?"string"==typeof n?n:n.source:null;var n})).join("")}return i=>{
+const c=e,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,
+isTrulyOpeningTag:(e,n)=>{const a=e[0].length+e.index,s=e.input[a]
+;"<"!==s?">"===s&&(((e,{after:n})=>{const a=""+e[0].slice(1)
+;return-1!==e.input.indexOf(a,n)})(e,{after:a
+})||n.ignoreMatch()):n.ignoreMatch()}},l={$pattern:e,keyword:n,literal:a,
+built_in:s},g="\\.([0-9](_?[0-9])*)",b="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={
+className:"number",variants:[{
+begin:`(\\b(${b})((${g})|\\.)?|(${g}))[eE][+-]?([0-9](_?[0-9])*)\\b`},{
+begin:`\\b(${b})\\b((${g})\\b|\\.)?|(${g})\\b`},{
+begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{
+begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{
+begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{
+begin:"\\b0[0-7]+n?\\b"}],relevance:0},E={className:"subst",begin:"\\$\\{",
+end:"\\}",keywords:l,contains:[]},u={begin:"html`",end:"",starts:{end:"`",
+returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,E],subLanguage:"xml"}},_={
+begin:"css`",end:"",starts:{end:"`",returnEnd:!1,
+contains:[i.BACKSLASH_ESCAPE,E],subLanguage:"css"}},m={className:"string",
+begin:"`",end:"`",contains:[i.BACKSLASH_ESCAPE,E]},y={className:"comment",
+variants:[i.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{
+className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",
+end:"\\}",relevance:0},{className:"variable",begin:c+"(?=\\s*(-)|$)",
+endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]
+}),i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE]
+},N=[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,u,_,m,d,i.REGEXP_MODE]
+;E.contains=N.concat({begin:/\{/,end:/\}/,keywords:l,contains:["self"].concat(N)
+});const A=[].concat(y,E.contains),f=A.concat([{begin:/\(/,end:/\)/,keywords:l,
+contains:["self"].concat(A)}]),p={className:"params",begin:/\(/,end:/\)/,
+excludeBegin:!0,excludeEnd:!0,keywords:l,contains:f};return{name:"Javascript",
+aliases:["js","jsx","mjs","cjs"],keywords:l,exports:{PARAMS_CONTAINS:f},
+illegal:/#(?![$_A-z])/,contains:[i.SHEBANG({label:"shebang",binary:"node",
+relevance:5}),{label:"use_strict",className:"meta",relevance:10,
+begin:/^\s*['"]use (strict|asm)['"]/
+},i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,u,_,m,y,d,{
+begin:t(/[{,\n]\s*/,r(t(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,c+"\\s*:"))),
+relevance:0,contains:[{className:"attr",begin:c+r("\\s*:"),relevance:0}]},{
+begin:"("+i.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",
+keywords:"return throw case",contains:[y,i.REGEXP_MODE,{className:"function",
+begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+i.UNDERSCORE_IDENT_RE+")\\s*=>",
+returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{
+begin:i.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0
+},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:f}]}]
+},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{
+variants:[{begin:"<>",end:">"},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,
+end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,
+contains:["self"]}]}],relevance:0},{className:"function",
+beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:l,
+contains:["self",i.inherit(i.TITLE_MODE,{begin:c}),p],illegal:/%/},{
+beginKeywords:"while if switch catch for"},{className:"function",
+begin:i.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",
+returnBegin:!0,contains:[p,i.inherit(i.TITLE_MODE,{begin:c})]},{variants:[{
+begin:"\\."+c},{begin:"\\$"+c}],relevance:0},{className:"class",
+beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{
+beginKeywords:"extends"},i.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,
+end:/[{;]/,excludeEnd:!0,contains:[i.inherit(i.TITLE_MODE,{begin:c}),"self",p]
+},{begin:"(get|set)\\s+(?="+c+"\\()",end:/\{/,keywords:"get set",
+contains:[i.inherit(i.TITLE_MODE,{begin:c}),{begin:/\(\)/},p]},{begin:/\$[(.]/}]
+}}})());
+hljs.registerLanguage("json",(()=>{"use strict";return n=>{const e={
+literal:"true false null"
+},i=[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE],a=[n.QUOTE_STRING_MODE,n.C_NUMBER_MODE],l={
+end:",",endsWithParent:!0,excludeEnd:!0,contains:a,keywords:e},t={begin:/\{/,
+end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,
+contains:[n.BACKSLASH_ESCAPE],illegal:"\\n"},n.inherit(l,{begin:/:/
+})].concat(i),illegal:"\\S"},s={begin:"\\[",end:"\\]",contains:[n.inherit(l)],
+illegal:"\\S"};return a.push(t,s),i.forEach((n=>{a.push(n)})),{name:"JSON",
+contains:a,keywords:e,illegal:"\\S"}}})());
+hljs.registerLanguage("kotlin",(()=>{"use strict"
+;var e="\\.([0-9](_*[0-9])*)",n="[0-9a-fA-F](_*[0-9a-fA-F])*",a={
+className:"number",variants:[{
+begin:`(\\b([0-9](_*[0-9])*)((${e})|\\.)?|(${e}))[eE][+-]?([0-9](_*[0-9])*)[fFdD]?\\b`
+},{begin:`\\b([0-9](_*[0-9])*)((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{
+begin:`(${e})[fFdD]?\\b`},{begin:"\\b([0-9](_*[0-9])*)[fFdD]\\b"},{
+begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?([0-9](_*[0-9])*)[fFdD]?\\b`
+},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{
+begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],
+relevance:0};return e=>{const n={
+keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",
+built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",
+literal:"true false null"},i={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"
+},s={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},t={
+className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},r={className:"string",
+variants:[{begin:'"""',end:'"""(?=[^"])',contains:[t,s]},{begin:"'",end:"'",
+illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,
+contains:[e.BACKSLASH_ESCAPE,t,s]}]};s.contains.push(r);const l={
+className:"meta",
+begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"
+},c={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,
+end:/\)/,contains:[e.inherit(r,{className:"meta-string"})]}]
+},o=a,b=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),E={
+variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,
+contains:[]}]},d=E;return d.variants[1].contains=[E],E.variants[1].contains=[d],
+{name:"Kotlin",aliases:["kt","kts"],keywords:n,
+contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",
+begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,b,{className:"keyword",
+begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",
+begin:/@\w+/}]}},i,l,c,{className:"function",beginKeywords:"fun",end:"[(]|$",
+returnBegin:!0,excludeEnd:!0,keywords:n,relevance:5,contains:[{
+begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,
+contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/,end:/>/,
+keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,
+endsParent:!0,keywords:n,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,
+endsWithParent:!0,contains:[E,e.C_LINE_COMMENT_MODE,b],relevance:0
+},e.C_LINE_COMMENT_MODE,b,l,c,r,e.C_NUMBER_MODE]},b]},{className:"class",
+beginKeywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,
+illegal:"extends implements",contains:[{
+beginKeywords:"public protected internal private constructor"
+},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/,end:/>/,excludeBegin:!0,
+excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,]|$/,
+excludeBegin:!0,returnEnd:!0},l,c]},r,{className:"meta",begin:"^#!/usr/bin/env",
+end:"$",illegal:"\n"},o]}}})());
+hljs.registerLanguage("less",(()=>{"use strict"
+;const e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],n=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse(),r=i.concat(o)
+;return a=>{const s=(e=>({IMPORTANT:{className:"meta",begin:"!important"},
+HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},
+ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,
+illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}
+}))(a),l=r,d="([\\w-]+|@\\{[\\w-]+\\})",c=[],g=[],b=e=>({className:"string",
+begin:"~?"+e+".*?"+e}),m=(e,t,i)=>({className:e,begin:t,relevance:i}),u={
+$pattern:/[a-z-]+/,keyword:"and or not only",attribute:t.join(" ")},p={
+begin:"\\(",end:"\\)",contains:g,keywords:u,relevance:0}
+;g.push(a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,b("'"),b('"'),a.CSS_NUMBER_MODE,{
+begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",
+excludeEnd:!0}
+},s.HEXCOLOR,p,m("variable","@@?[\\w-]+",10),m("variable","@\\{[\\w-]+\\}"),m("built_in","~?`[^`]*?`"),{
+className:"attribute",begin:"[\\w-]+\\s*:",end:":",returnBegin:!0,excludeEnd:!0
+},s.IMPORTANT);const f=g.concat({begin:/\{/,end:/\}/,contains:c}),h={
+beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"
+}].concat(g)},w={begin:d+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,
+contains:[{begin:/-(webkit|moz|ms|o)-/},{className:"attribute",
+begin:"\\b("+n.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,
+illegal:"[<=$]",relevance:0,contains:g}}]},v={className:"keyword",
+begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",
+starts:{end:"[;{}]",keywords:u,returnEnd:!0,contains:g,relevance:0}},y={
+className:"variable",variants:[{begin:"@[\\w-]+\\s*:",relevance:15},{
+begin:"@[\\w-]+"}],starts:{end:"[;}]",returnEnd:!0,contains:f}},k={variants:[{
+begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:d,end:/\{/}],returnBegin:!0,
+returnEnd:!0,illegal:"[<='$\"]",relevance:0,
+contains:[a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,h,m("keyword","all\\b"),m("variable","@\\{[\\w-]+\\}"),{
+begin:"\\b("+e.join("|")+")\\b",className:"selector-tag"
+},m("selector-tag",d+"%?",0),m("selector-id","#"+d),m("selector-class","\\."+d,0),m("selector-tag","&",0),s.ATTRIBUTE_SELECTOR_MODE,{
+className:"selector-pseudo",begin:":("+i.join("|")+")"},{
+className:"selector-pseudo",begin:"::("+o.join("|")+")"},{begin:"\\(",end:"\\)",
+contains:f},{begin:"!important"}]},E={begin:`[\\w-]+:(:)?(${l.join("|")})`,
+returnBegin:!0,contains:[k]}
+;return c.push(a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,v,y,E,w,k),{
+name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:c}}})());
+hljs.registerLanguage("lua",(()=>{"use strict";return e=>{
+const t="\\[=*\\[",a="\\]=*\\]",n={begin:t,end:a,contains:["self"]
+},o=[e.COMMENT("--(?!\\[=*\\[)","$"),e.COMMENT("--\\[=*\\[",a,{contains:[n],
+relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,
+literal:"true false nil",
+keyword:"and break do else elseif end for goto if in local not or repeat return then until while",
+built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"
+},contains:o.concat([{className:"function",beginKeywords:"function",end:"\\)",
+contains:[e.inherit(e.TITLE_MODE,{
+begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",
+begin:"\\(",endsWithParent:!0,contains:o}].concat(o)
+},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",
+begin:t,end:a,contains:[n],relevance:5}])}}})());
+hljs.registerLanguage("makefile",(()=>{"use strict";return e=>{const i={
+className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",
+contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%\^\+\*]/}]},a={className:"string",
+begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i]},n={className:"variable",
+begin:/\$\([\w-]+\s/,end:/\)/,keywords:{
+built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"
+},contains:[i]},s={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},r={
+className:"section",begin:/^[^\s]+:/,end:/$/,contains:[i]};return{
+name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,
+keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"
+},contains:[e.HASH_COMMENT_MODE,i,a,n,s,{className:"meta",begin:/^\.PHONY:/,
+end:/$/,keywords:{$pattern:/[\.\w]+/,"meta-keyword":".PHONY"}},r]}}})());
+hljs.registerLanguage("xml",(()=>{"use strict";function e(e){
+return e?"string"==typeof e?e:e.source:null}function n(e){return a("(?=",e,")")}
+function a(...n){return n.map((n=>e(n))).join("")}function s(...n){
+return"("+n.map((n=>e(n))).join("|")+")"}return e=>{
+const t=a(/[A-Z_]/,a("(",/[A-Z0-9_.-]*:/,")?"),/[A-Z0-9_.-]*/),i={
+className:"symbol",begin:/&[a-z]+;|[0-9]+;|[a-f0-9]+;/},r={begin:/\s/,
+contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]
+},c=e.inherit(r,{begin:/\(/,end:/\)/}),l=e.inherit(e.APOS_STRING_MODE,{
+className:"meta-string"}),g=e.inherit(e.QUOTE_STRING_MODE,{
+className:"meta-string"}),m={endsWithParent:!0,illegal:/,relevance:0,
+contains:[{className:"attr",begin:/[A-Za-z0-9._:-]+/,relevance:0},{begin:/=\s*/,
+relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,
+end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]
+}]};return{name:"HTML, XML",
+aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],
+case_insensitive:!0,contains:[{className:"meta",begin://,
+relevance:10,contains:[r,g,l,c,{begin:/\[/,end:/\]/,contains:[{className:"meta",
+begin://,contains:[r,c,g,l]}]}]},e.COMMENT(//,{
+relevance:10}),{begin://,relevance:10},i,{
+className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",
+begin:/'];r.cellXfs.forEach(function(e,r){var a=[];a.push(Bt("NumberFormat",null,{"ss:Format":bt(q[e.numFmtId])}));var n={"ss:ID":"s"+(21+r)};t.push(Bt("Style",a.join(""),n))});return Bt("Styles",t.join(""))}function Og(e){return Bt("NamedRange",null,{"ss:Name":e.Name.slice(0,6)=="_xlnm."?e.Name.slice(6):e.Name,"ss:RefersTo":"="+nu(e.Ref,{r:0,c:0})})}function Ig(e){if(!((e||{}).Workbook||{}).Names)return"";var r=e.Workbook.Names;var t=[];for(var a=0;a");if(e["!margins"].header)n.push(Bt("Header",null,{"x:Margin":e["!margins"].header}));if(e["!margins"].footer)n.push(Bt("Footer",null,{"x:Margin":e["!margins"].footer}));n.push(Bt("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"}));n.push("")}if(a&&a.Workbook&&a.Workbook.Sheets&&a.Workbook.Sheets[t]){if(a.Workbook.Sheets[t].Hidden)n.push(Bt("Visible",a.Workbook.Sheets[t].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i")}}if(((((a||{}).Workbook||{}).Views||[])[0]||{}).RTL)n.push("");if(e["!protect"]){n.push(Mt("ProtectContents","True"));if(e["!protect"].objects)n.push(Mt("ProtectObjects","True"));if(e["!protect"].scenarios)n.push(Mt("ProtectScenarios","True"));if(e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells)n.push(Mt("EnableSelection","NoSelection"));else if(e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells)n.push(Mt("EnableSelection","UnlockedCells"));[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(r){if(e["!protect"][r[0]])n.push("<"+r[1]+"/>")})}if(n.length==0)return"";return Bt("WorksheetOptions",n.join(""),{xmlns:Gt.x})}function Fg(e){return e.map(function(r){var t=Et(r.t||"");var a=Bt("ss:Data",t,{xmlns:"http://www.w3.org/TR/REC-html40"});var n={};if(r.a)n["ss:Author"]=r.a;if(!e.hidden)n["ss:ShowAlways"]="1";return Bt("Comment",a,n)}).join("")}function Dg(e,r,t,a,n,i,s){if(!e||e.v==undefined&&e.f==undefined)return"";var f={};if(e.f)f["ss:Formula"]="="+bt(nu(e.f,s));if(e.F&&e.F.slice(0,r.length)==r){var l=Ka(e.F.slice(r.length+1));f["ss:ArrayRange"]="RC:R"+(l.r==s.r?"":"["+(l.r-s.r)+"]")+"C"+(l.c==s.c?"":"["+(l.c-s.c)+"]")}if(e.l&&e.l.Target){f["ss:HRef"]=bt(e.l.Target);if(e.l.Tooltip)f["x:HRefScreenTip"]=bt(e.l.Tooltip)}if(t["!merges"]){var o=t["!merges"];for(var c=0;c!=o.length;++c){if(o[c].s.c!=s.c||o[c].s.r!=s.r)continue;if(o[c].e.c>o[c].s.c)f["ss:MergeAcross"]=o[c].e.c-o[c].s.c;if(o[c].e.r>o[c].s.r)f["ss:MergeDown"]=o[c].e.r-o[c].s.r}}var h="",u="";switch(e.t){case"z":if(!a.sheetStubs)return"";break;case"n":{if(!isFinite(e.v)){h="Error";u=ci[isNaN(e.v)?36:7]}else{h="Number";u=String(e.v)}}break;case"b":h="Boolean";u=e.v?"1":"0";break;case"e":h="Error";u=ci[e.v];break;case"d":h="DateTime";u=new Date(e.v).toISOString();if(e.z==null)e.z=e.z||q[14];break;case"s":h="String";u=Tt(e.v||"");break;}var d=Tv(a.cellXfs,e,a);f["ss:StyleID"]="s"+(21+d);f["ss:Index"]=s.c+1;var v=e.v!=null?u:"";var p=e.t=="z"?"":''+v+"";if((e.c||[]).length>0)p+=Fg(e.c);return Bt("Cell",p,f)}function Pg(e,r){var t='"}function Lg(e,r,t,a){if(!e["!ref"])return"";var n=en(e["!ref"]);var i=e["!merges"]||[],s=0;var f=[];if(e["!cols"])e["!cols"].forEach(function(e,r){oc(e);var t=!!e.width;var a=kv(r,e);var n={"ss:Index":r+1};if(t)n["ss:Width"]=nc(a.width);if(e.hidden)n["ss:Hidden"]="1";f.push(Bt("Column",null,n))});var l=e["!data"]!=null;var o={r:0,c:0};for(var c=n.s.r;c<=n.e.r;++c){var h=[Pg(c,(e["!rows"]||[])[c])];o.r=c;for(var u=n.s.c;u<=n.e.c;++u){o.c=u;var d=false;for(s=0;s!=i.length;++s){if(i[s].s.c>u)continue;if(i[s].s.r>c)continue;if(i[s].e.c");if(h.length>2)f.push(h.join(""))}return f.join("")}function Mg(e,r,t){var a=[];var n=t.SheetNames[e];var i=t.Sheets[n];var s=i?Rg(i,r,e,t):"";if(s.length>0)a.push(""+s+"");s=i?Lg(i,r,e,t):"";if(s.length>0)a.push("");a.push(Ng(i,r,e,t));if(i&&i["!autofilter"])a.push('');return a.join("")}function Ug(e,r){if(!r)r={};if(!e.SSF)e.SSF=Ar(q);if(e.SSF){$e();Ve(e.SSF);r.revssf=lr(e.SSF);r.revssf[e.SSF[65535]]=0;r.ssf=e.SSF;r.cellXfs=[];Tv(r.cellXfs,{},{revssf:{General:0}})}var t=[];t.push(_g(e,r));t.push(Sg(e,r));t.push("");t.push(Ig(e,r));for(var a=0;a40)return r;t.l-=4;r.Reserved1=t._R(0,"lpstr-ansi");if(t.length-t.l<=4)return r;a=t._R(4);if(a!==1907505652)return r;r.UnicodeClipboardFormat=Vn(t);a=t._R(4);if(a==0||a>40)return r;t.l-=4;r.Reserved2=t._R(0,"lpwstr")}var Wg=[60,1084,2066,2165,2175];function zg(e,r,t,a,n){var i=a;var s=[];var f=t.slice(t.l,t.l+i);if(n&&n.enc&&n.enc.insitu&&f.length>0)switch(e){case 9:;case 521:;case 1033:;case 2057:;case 47:;case 405:;case 225:;case 406:;case 312:;case 404:;case 10:break;case 133:break;default:n.enc.insitu(f);}s.push(f);t.l+=i;var l=ba(t,t.l),o=Jg[l];var c=0;while(o!=null&&Wg.indexOf(l)>-1){i=ba(t,t.l+2);c=t.l+4;if(l==2066)c+=4;else if(l==2165||l==2175){c+=12}f=t.slice(c,t.l+4+i);s.push(f);t.l+=4+i;o=Jg[l=ba(t,t.l)]}var h=P(s);Oa(h,0);var u=0;h.lens=[];for(var d=0;d1)return;if(t.sheetRows&&e.r>=t.sheetRows)return;if(t.cellStyles&&r.XF&&r.XF.data)O(r,t);delete r.ixfe;delete r.XF;u=e;d=Ya(e);if(!s||!s.s||!s.e)s={s:{r:0,c:0},e:{r:0,c:0}};if(e.rs.e.r)s.e.r=e.r+1;if(e.c+1>s.e.c)s.e.c=e.c+1;if(t.cellFormula&&r.f){for(var a=0;ae.c||k[a][0].s.r>e.r)continue;if(k[a][0].e.c>8)!==j)throw new Error("rt mismatch: "+Z+"!="+j);if(Y.r==12){e.l+=10;K-=10}}var J={};if(j===10)J=Y.f(e,K,R);else J=zg(j,Y,e,K,R);if(W==0&&[9,521,1033,2057].indexOf(B)===-1)continue;switch(j){case 34:t.opts.Date1904=C.WBProps.date1904=J;break;case 134:t.opts.WriteProtect=true;break;case 47:if(!R.enc)e.l=0;R.enc=J;if(!r.password)throw new Error("File is password-protected");if(J.valid==null)throw new Error("Encryption scheme unsupported");if(!J.valid)throw new Error("Password is incorrect");break;case 92:R.lastuser=J;break;case 66:var Q=Number(J);switch(Q){case 21010:Q=1200;break;case 32768:Q=1e4;break;case 32769:Q=1252;break;}l(R.codepage=Q);X=true;break;case 317:R.rrtabid=J;break;case 25:R.winlocked=J;break;case 439:t.opts["RefreshAll"]=J;break;case 12:t.opts["CalcCount"]=J;break;case 16:t.opts["CalcDelta"]=J;break;case 17:t.opts["CalcIter"]=J;break;case 13:t.opts["CalcMode"]=J;break;case 14:t.opts["CalcPrecision"]=J;break;case 95:t.opts["CalcSaveRecalc"]=J;break;case 15:R.CalcRefMode=J;break;case 2211:t.opts.FullCalc=J;break;case 129:if(J.fDialog)n["!type"]="dialog";if(!J.fBelow)(n["!outline"]||(n["!outline"]={})).above=true;if(!J.fRight)(n["!outline"]||(n["!outline"]={})).left=true;break;case 67:;case 579:;case 1091:;case 224:y.push(J);break;case 430:U.push([J]);U[U.length-1].XTI=[];break;case 35:;case 547:U[U.length-1].push(J);break;case 24:;case 536:$={Name:J.Name,Ref:Md(J.rgce,s,null,U,R)};if(J.itab>0)$.Sheet=J.itab-1;U.names.push($);if(!U[0]){U[0]=[];U[0].XTI=[]}U[U.length-1].push(J);if(J.Name=="_xlnm._FilterDatabase"&&J.itab>0)if(J.rgce&&J.rgce[0]&&J.rgce[0][0]&&J.rgce[0][0][0]=="PtgArea3d")V[J.itab-1]={ref:Ja(J.rgce[0][0][1][2])};break;case 22:R.ExternCount=J;break;case 23:if(U.length==0){U[0]=[];U[0].XTI=[]}U[U.length-1].XTI=U[U.length-1].XTI.concat(J);U.XTI=U.XTI.concat(J);break;case 2196:if(R.biff<8)break;if($!=null)$.Comment=J[1];break;case 18:n["!protect"]=J;break;case 19:if(J!==0&&R.WTF)console.error("Password verifier: "+J);break;case 133:{i[R.biff==4?R.snames.length:J.pos]=J;R.snames.push(J.name)}break;case 10:{if(--W?!S:S)break;if(s.e){if(s.e.r>0&&s.e.c>0){s.e.r--;s.e.c--;n["!ref"]=Ja(s);if(r.sheetRows&&r.sheetRows<=s.e.r){var ee=s.e.r;s.e.r=r.sheetRows-1;n["!fullref"]=n["!ref"];n["!ref"]=Ja(s);s.e.r=ee}s.e.r++;s.e.c++}if(F.length>0)n["!merges"]=F;if(D.length>0)n["!objects"]=D;if(P.length>0)n["!cols"]=P;if(L.length>0)n["!rows"]=L;C.Sheets.push(_)}if(c==="")h=n;else a[c]=n;n={};if(r.dense)n["!data"]=[]}break;case 9:;case 521:;case 1033:;case 2057:{if(R.biff===8)R.biff={9:2,521:3,1033:4}[j]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[J.BIFFVer]||8;R.biffguess=J.BIFFVer==0;if(J.BIFFVer==0&&J.dt==4096){R.biff=5;X=true;l(R.codepage=28591)}if(R.biff==4&&J.dt&256)S=true;if(R.biff==8&&J.BIFFVer==0&&J.dt==16)R.biff=2;if(W++&&!S)break;n={};if(r.dense)n["!data"]=[];if(R.biff<8&&!X){X=true;l(R.codepage=r.codepage||1252)}if(R.biff==4&&S){c=(i[R.snames.indexOf(c)+1]||{name:""}).name}else if(R.biff<5||J.BIFFVer==0&&J.dt==4096){if(c==="")c="Sheet1";s={s:{r:0,c:0},e:{r:0,c:0}};var re={pos:e.l-K,name:c};i[re.pos]=re;R.snames.push(c)}else c=(i[G]||{name:""}).name;if(J.dt==32)n["!type"]="chart";if(J.dt==64)n["!type"]="macro";F=[];D=[];R.arrayf=k=[];P=[];L=[];M=false;_={Hidden:(i[G]||{hs:0}).hs,name:c}}break;case 515:;case 3:;case 2:{if(n["!type"]=="chart")if(r.dense?(n["!data"][J.r]||[])[J.c]:n[$a(J.c)+Wa(J.r)])++J.c;A={ixfe:J.ixfe,XF:y[J.ixfe]||{},v:J.val,t:"n"};if(z>0)A.z=A.XF&&A.XF.numFmtId&&H[A.XF.numFmtId]||H[A.ixfe>>8&63];Hg(A,r,t.opts.Date1904);I({c:J.c,r:J.r},A,r)}break;case 5:;case 517:{A={ixfe:J.ixfe,XF:y[J.ixfe],v:J.val,t:J.t};if(z>0)A.z=A.XF&&A.XF.numFmtId&&H[A.XF.numFmtId]||H[A.ixfe>>8&63];Hg(A,r,t.opts.Date1904);
+I({c:J.c,r:J.r},A,r)}break;case 638:{A={ixfe:J.ixfe,XF:y[J.ixfe],v:J.rknum,t:"n"};if(z>0)A.z=A.XF&&A.XF.numFmtId&&H[A.XF.numFmtId]||H[A.ixfe>>8&63];Hg(A,r,t.opts.Date1904);I({c:J.c,r:J.r},A,r)}break;case 189:{for(var te=J.c;te<=J.C;++te){var ae=J.rkrec[te-J.c][0];A={ixfe:ae,XF:y[ae],v:J.rkrec[te-J.c][1],t:"n"};if(z>0)A.z=A.XF&&A.XF.numFmtId&&H[A.XF.numFmtId]||H[A.ixfe>>8&63];Hg(A,r,t.opts.Date1904);I({c:te,r:J.r},A,r)}}break;case 6:;case 518:;case 1030:{if(J.val=="String"){f=J;break}A=Vg(J.val,J.cell.ixfe,J.tt);A.XF=y[A.ixfe];if(r.cellFormula){var ne=J.formula;if(ne&&ne[0]&&ne[0][0]&&ne[0][0][0]=="PtgExp"){var ie=ne[0][0][1][0],se=ne[0][0][1][1];var fe=Ya({r:ie,c:se});if(w[fe])A.f=""+Md(J.formula,s,J.cell,U,R);else A.F=((r.dense?(n["!data"][ie]||[])[se]:n[fe])||{}).F}else A.f=""+Md(J.formula,s,J.cell,U,R)}if(z>0)A.z=A.XF&&A.XF.numFmtId&&H[A.XF.numFmtId]||H[A.ixfe>>8&63];Hg(A,r,t.opts.Date1904);I(J.cell,A,r);f=J}break;case 7:;case 519:{if(f){f.val=J;A=Vg(J,f.cell.ixfe,"s");A.XF=y[A.ixfe];if(r.cellFormula){A.f=""+Md(f.formula,s,f.cell,U,R)}if(z>0)A.z=A.XF&&A.XF.numFmtId&&H[A.XF.numFmtId]||H[A.ixfe>>8&63];Hg(A,r,t.opts.Date1904);I(f.cell,A,r);f=null}else throw new Error("String record expects Formula")}break;case 33:;case 545:{k.push(J);var le=Ya(J[0].s);v=r.dense?(n["!data"][J[0].s.r]||[])[J[0].s.c]:n[le];if(r.cellFormula&&v){if(!f)break;if(!le||!v)break;v.f=""+Md(J[1],s,J[0],U,R);v.F=Ja(J[0])}}break;case 1212:{if(!r.cellFormula)break;if(d){if(!f)break;w[Ya(f.cell)]=J[0];v=r.dense?(n["!data"][f.cell.r]||[])[f.cell.c]:n[Ya(f.cell)];(v||{}).f=""+Md(J[0],s,u,U,R)}}break;case 253:A=Vg(o[J.isst].t,J.ixfe,"s");if(o[J.isst].h)A.h=o[J.isst].h;A.XF=y[A.ixfe];if(z>0)A.z=A.XF&&A.XF.numFmtId&&H[A.XF.numFmtId]||H[A.ixfe>>8&63];Hg(A,r,t.opts.Date1904);I({c:J.c,r:J.r},A,r);break;case 513:if(r.sheetStubs){A={ixfe:J.ixfe,XF:y[J.ixfe],t:"z"};if(z>0)A.z=A.XF&&A.XF.numFmtId&&H[A.XF.numFmtId]||H[A.ixfe>>8&63];Hg(A,r,t.opts.Date1904);I({c:J.c,r:J.r},A,r)}break;case 190:if(r.sheetStubs){for(var oe=J.c;oe<=J.C;++oe){var ce=J.ixfe[oe-J.c];A={ixfe:ce,XF:y[ce],t:"z"};if(z>0)A.z=A.XF&&A.XF.numFmtId&&H[A.XF.numFmtId]||H[A.ixfe>>8&63];Hg(A,r,t.opts.Date1904);I({c:oe,r:J.r},A,r)}}break;case 214:;case 516:;case 4:A=Vg(J.val,J.ixfe,"s");A.XF=y[A.ixfe];if(z>0)A.z=A.XF&&A.XF.numFmtId&&H[A.XF.numFmtId]||H[A.ixfe>>8&63];Hg(A,r,t.opts.Date1904);I({c:J.c,r:J.r},A,r);break;case 0:;case 512:{if(W===1)s=J}break;case 252:{o=J}break;case 1054:{if(R.biff>=3&&R.biff<=4){H[z++]=J[1];for(var he=0;he=163)Je(J[1],z+163)}else Je(J[1],J[0])}break;case 30:{H[z++]=J;for(var ue=0;ue=163)Je(J,z+163)}break;case 229:F=F.concat(J);break;case 93:D[J.cmo[0]]=R.lastobj=J;break;case 438:R.lastobj.TxO=J;break;case 127:R.lastobj.ImData=J;break;case 440:{for(g=J[0].s.r;g<=J[0].e.r;++g)for(m=J[0].s.c;m<=J[0].e.c;++m){v=r.dense?(n["!data"][g]||[])[m]:n[Ya({c:m,r:g})];if(v)v.l=J[1]}}break;case 2048:{for(g=J[0].s.r;g<=J[0].e.r;++g)for(m=J[0].s.c;m<=J[0].e.c;++m){v=r.dense?(n["!data"][g]||[])[m]:n[Ya({c:m,r:g})];if(v&&v.l)v.l.Tooltip=J[1]}}break;case 28:{v=r.dense?(n["!data"][J[0].r]||[])[J[0].c]:n[Ya(J[0])];if(!v){if(r.dense){if(!n["!data"][J[0].r])n["!data"][J[0].r]=[];v=n["!data"][J[0].r][J[0].c]={t:"z"}}else{v=n[Ya(J[0])]={t:"z"}}s.e.r=Math.max(s.e.r,J[0].r);s.s.r=Math.min(s.s.r,J[0].r);s.e.c=Math.max(s.e.c,J[0].c);s.s.c=Math.min(s.s.c,J[0].c)}if(!v.c)v.c=[];if(R.biff<=5&&R.biff>=2)p={a:"SheetJ5",t:J[1]};else{var de=D[J[2]];p={a:J[1],t:de.TxO.t};if(J[3]!=null&&!(J[3]&2))v.c.hidden=true}v.c.push(p)}break;case 2173:dh(y[J.ixfe],J.ext);break;case 125:{if(!R.cellStyles)break;while(J.e>=J.s){P[J.e--]={width:J.w/256,level:J.level||0,hidden:!!(J.flags&1)};if(!M){M=true;lc(J.w/256)}oc(P[J.e+1])}}break;case 520:{var ve={};if(J.level!=null){L[J.r]=ve;ve.level=J.level}if(J.hidden){L[J.r]=ve;ve.hidden=true}if(J.hpt){L[J.r]=ve;ve.hpt=J.hpt;ve.hpx=dc(J.hpt)}}break;case 38:;case 39:;case 40:;case 41:if(!n["!margins"])Av(n["!margins"]={});n["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[j]]=J;break;case 161:if(!n["!margins"])Av(n["!margins"]={});n["!margins"].header=J.header;n["!margins"].footer=J.footer;break;case 574:if(J.RTL)C.Views[0].RTL=true;break;case 146:E=J;break;case 2198:N=J;break;case 140:T=J;break;case 442:{if(!c)C.WBProps.CodeName=J||"ThisWorkbook";else _.CodeName=J||_.name}break;}}else{if(!Y)console.error("Missing Info for XLS Record 0x"+j.toString(16));e.l+=K}}t.SheetNames=ir(i).sort(function(e,r){return Number(e)-Number(r)}).map(function(e){return i[e].name});if(!r.bookSheets)t.Sheets=a;if(!t.SheetNames.length&&h["!ref"]){t.SheetNames.push("Sheet1");if(t.Sheets)t.Sheets["Sheet1"]=h}else t.Preamble=h;if(t.Sheets)V.forEach(function(e,r){t.Sheets[t.SheetNames[r]]["!autofilter"]=e});t.Strings=o;t.SSF=Ar(q);if(R.enc)t.Encryption=R.enc;if(N)t.Themes=N;t.Metadata={};if(T!==undefined)t.Metadata.Country=T;if(U.names.length>0)C.Names=U.names;t.Workbook=C;return t}var Xg={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function Gg(e,r,t){var a=Qe.find(e,"/!DocumentSummaryInformation");if(a&&a.size>0)try{var n=ds(a,ai,Xg.DSI);for(var i in n)r[i]=n[i]}catch(s){if(t.WTF)throw s}var f=Qe.find(e,"/!SummaryInformation");if(f&&f.size>0)try{var l=ds(f,ni,Xg.SI);for(var o in l)if(r[o]==null)r[o]=l[o]}catch(s){if(t.WTF)throw s}if(r.HeadingPairs&&r.TitlesOfParts){Li(r.HeadingPairs,r.TitlesOfParts,r,t);delete r.HeadingPairs;delete r.TitlesOfParts}}function jg(e,r){var t=[],a=[],n=[];var i=0,s;var f=sr(ai,"n");var l=sr(ni,"n");if(e.Props){s=ir(e.Props);for(i=0;i-1||Pi.indexOf(n[i][0])>-1)continue;if(n[i][1]==null)continue;o.push(n[i])}if(a.length)Qe.utils.cfb_add(r,"/SummaryInformation",vs(a,Xg.SI,l,ni));if(t.length||o.length)Qe.utils.cfb_add(r,"/DocumentSummaryInformation",vs(t,Xg.DSI,f,ai,o.length?o:null,Xg.UDI))}function Kg(e,r){if(!r)r={};Jw(r);o();if(r.codepage)s(r.codepage);var t,a;if(e.FullPaths){if(Qe.find(e,"/encryption"))throw new Error("File is password-protected");t=Qe.find(e,"!CompObj");a=Qe.find(e,"/Workbook")||Qe.find(e,"/Book")}else{switch(r.type){case"base64":e=I(E(e));break;case"binary":e=I(e);break;case"buffer":break;case"array":if(!Array.isArray(e))e=Array.prototype.slice.call(e);break;}Oa(e,0);a={content:e}}var n;var i;if(t)Bg(t);if(r.bookProps&&!r.bookSheets)n={};else{var f=C?"buffer":"array";if(a&&a.content)n=$g(a.content,r);else if((i=Qe.find(e,"PerfectOffice_MAIN"))&&i.content)n=no.to_workbook(i.content,(r.type=f,r));else if((i=Qe.find(e,"NativeContent_MAIN"))&&i.content)n=no.to_workbook(i.content,(r.type=f,r));else if((i=Qe.find(e,"MN0"))&&i.content)throw new Error("Unsupported Works 4 for Mac file");else throw new Error("Cannot find Workbook stream");if(r.bookVBA&&e.FullPaths&&Qe.find(e,"/_VBA_PROJECT_CUR/VBA/dir"))n.vbaraw=Kh(e)}var l={};if(e.FullPaths)Gg(e,l,r);n.Props=n.Custprops=l;if(r.bookFiles)n.cfb=e;return n}function Yg(e,r){var t=r||{};var a=Qe.utils.cfb_new({root:"R"});var n="/Workbook";switch(t.bookType||"xls"){case"xls":t.bookType="biff8";case"xla":if(!t.bookType)t.bookType="xla";case"biff8":n="/Workbook";t.biff=8;break;case"biff5":n="/Book";t.biff=5;break;default:throw new Error("invalid type "+t.bookType+" for XLS CFB");}Qe.utils.cfb_add(a,n,kb(e,t));if(t.biff==8&&(e.Props||e.Custprops))jg(e,a);if(t.biff==8&&e.vbaraw)Yh(a,Qe.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"}));return a}var Zg={0:{f:rp},1:{f:op},2:{f:Op},3:{f:gp},4:{f:dp},5:{f:Cp},6:{f:Dp},7:{f:Ap},8:{f:zp},9:{f:Wp},10:{f:Up},11:{f:Bp},12:{f:hp},13:{f:Rp},14:{f:wp},15:{f:pp},16:{f:Sp},17:{f:Lp},18:{f:yp},19:{f:vn},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:$m},40:{},42:{},43:{f:xc},44:{f:_c},45:{f:Nc},46:{f:Mc},47:{f:Dc},48:{},49:{f:ln},50:{},51:{f:mh},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Rl},62:{f:Fp},63:{f:_h},64:{f:nm},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Ia,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:em},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:fp},148:{f:np,p:16},151:{f:jp},152:{},153:{f:zm},154:{},155:{},156:{f:Bm},157:{},158:{},159:{T:1,f:go},160:{T:-1},161:{T:1,f:Fn},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Hp},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:vh},336:{T:-1},337:{f:wh,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Sn},357:{},358:{},359:{},360:{T:1},361:{},362:{f:fl},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:Kp},427:{f:Yp},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:qp},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:sp},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:Xp},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Sn},551:{f:En},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:Vh},633:{T:1},634:{T:-1},635:{T:1,f:zh},636:{T:-1},637:{f:mn},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:Tm},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:im},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};var Jg={6:{f:$d},10:{f:ps},12:{f:ks},13:{f:ks},14:{f:bs},15:{f:bs},16:{f:Pn},17:{f:bs},18:{f:bs},19:{f:ks},20:{f:al},21:{f:al},23:{f:fl},24:{f:sl},25:{f:bs},26:{},27:{},28:{f:vl},29:{},34:{f:bs},35:{f:il},38:{f:Pn},39:{f:Pn},40:{f:Pn},41:{f:Pn},42:{f:bs},43:{f:bs},47:{f:$o},49:{f:_f},51:{f:ks},60:{},61:{f:Af},64:{f:bs},65:{f:Cf},66:{f:ks},77:{},80:{},81:{},82:{},85:{f:ks},89:{},90:{},91:{},92:{f:of},93:{f:bl},94:{},95:{f:bs},96:{},97:{},99:{f:bs},125:{f:Rl},128:{f:Jf},129:{f:hf},130:{f:ks},131:{f:bs},132:{f:bs},133:{f:uf},134:{},140:{f:_l},141:{f:ks},144:{},146:{f:Ol},151:{},152:{},153:{},154:{},155:{},156:{f:ks},157:{},158:{},160:{f:Ml},161:{f:Fl},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:Wf},190:{f:zf},193:{f:ps},197:{},198:{},199:{},200:{},201:{},202:{f:bs},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:ks},220:{},221:{f:bs},222:{},224:{f:Vf},225:{f:lf},226:{f:ps},227:{},229:{f:ml},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:vf},253:{f:xf},255:{f:mf},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:Ts},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:bs},353:{f:ps},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:nl},431:{f:bs},432:{},433:{},434:{},437:{},438:{f:Al},439:{f:bs},440:{f:Tl},441:{},442:{f:Os},443:{},444:{f:ks},445:{},446:{},448:{f:ps},449:{f:wf,r:2},450:{f:ps},512:{f:Mf},513:{f:Ll},515:{f:rl},516:{f:If},517:{f:Qf},519:{f:Ul},520:{f:gf},523:{},545:{f:hl},549:{f:kf},566:{},574:{f:yf},638:{f:Bf},659:{},1048:{},1054:{f:Nf},1084:{},1212:{f:cl},2048:{f:El},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:sf},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:ps},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:Il,r:12},2173:{f:uh,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:bs,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:ol,r:12},2197:{},2198:{f:sh,r:12},2199:{},2200:{},2201:{},2202:{f:ul,r:12},2203:{f:ps},2204:{},2205:{},2206:{},2207:{},2211:{f:bf},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:ks},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:Dl},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:xl},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:Mf},1:{},2:{f:$l},3:{f:Hl},4:{f:zl},5:{f:jl},7:{f:Gl},8:{},9:{f:sf},11:{},22:{f:ks},30:{f:Df},31:{},32:{},33:{f:hl},36:{},37:{f:kf},50:{f:Kl},62:{},52:{},67:{f:Xf},68:{f:ks},69:{},86:{},126:{},127:{f:Bl},135:{},136:{},137:{},143:{f:Zl},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:Yl},223:{},234:{},354:{},421:{},518:{f:$d},521:{f:sf},536:{f:sl},547:{f:il},561:{},579:{f:Yf},1030:{f:$d},1033:{f:sf},1091:{f:Zf},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},101:{},102:{},105:{},106:{},107:{},109:{},112:{},114:{},29282:{}};function qg(e,r,t,a){var n=r;if(isNaN(n))return;var i=a||(t||[]).length||0;var s=e.next(4);s._W(2,n);s._W(2,i);if(i>0&&pa(t))e.push(t)}function Qg(e,r,t,a){var n=a||(t||[]).length||0;if(n<=8224)return qg(e,r,t,n);var i=r;if(isNaN(i))return;var s=t.parts||[],f=0;var l=0,o=0;while(o+(s[f]||8224)<=8224){o+=s[f]||8224;f++}var c=e.next(4);c._W(2,i);c._W(2,o);e.push(t.slice(l,l+o));l+=o;while(l=0&&l<65536)qg(e,2,Xl(t,a,l,f,s));else if(isNaN(l))qg(e,5,eb(t,a,36,"e"));else if(!isFinite(l))qg(e,5,eb(t,a,7,"e"));else qg(e,3,Vl(t,a,l,f,s));return;case"b":;case"e":qg(e,5,eb(t,a,r.v,r.t));return;case"s":;case"str":qg(e,4,rb(t,a,r.v==null?"":String(r.v).slice(0,255)));return;}qg(e,1,Wl(null,t,a))}function nb(e,r,t,a,n){var i=r["!data"]!=null;var s=en(r["!ref"]||"A1"),f="",l=[];if(s.e.c>255||s.e.r>16383){if(a.WTF)throw new Error("Range "+(r["!ref"]||"A1")+" exceeds format limit A1:IV16384");s.e.c=Math.min(s.e.c,255);s.e.r=Math.min(s.e.r,16383)}var o=(((n||{}).Workbook||{}).WBProps||{}).date1904;var c=[],h=[];for(var u=s.s.c;u<=s.e.c;++u)l[u]=$a(u);for(var d=s.s.r;d<=s.e.r;++d){if(i)c=r["!data"][d]||[];f=Wa(d);for(u=s.s.c;u<=s.e.c;++u){var v=i?c[u]:r[l[u]+f];if(!v)continue;ab(e,v,d,u,a,o);if(v.c)h.push([v.c,d,u])}}tb(e,h)}function ib(e,r){var t=r||{};var a=Fa();var n=0;for(var i=0;i255||d.e.r>=v){if(r.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV"+v);d.e.c=Math.min(d.e.c,255);d.e.r=Math.min(d.e.r,v-1)}qg(a,2057,ff(t,16,r));qg(a,13,As(1));qg(a,12,As(100));qg(a,15,ws(true));qg(a,17,ws(false));qg(a,16,Ln(.001));qg(a,95,ws(true));qg(a,42,ws(false));qg(a,43,ws(false));qg(a,130,As(1));qg(a,128,qf([0,0]));qg(a,131,ws(false));qg(a,132,ws(false));if(o)pb(a,i["!cols"]);qg(a,512,Uf(d,r));var p=(((t||{}).Workbook||{}).WBProps||{}).date1904;if(o)i["!links"]=[];for(var m=d.s.c;m<=d.e.c;++m)u[m]=$a(m);var g=[];var b=[];for(var w=d.s.r;w<=d.e.r;++w){if(l)b=i["!data"][w]||[];h=Wa(w);for(m=d.s.c;m<=d.e.c;++m){var k=l?b[m]:i[u[m]+h];if(!k)continue;mb(a,k,w,m,r,p);if(o&&k.l)i["!links"].push([u[m]+h,k.l]);if(k.c)g.push([k.c,w,m])}}var A=f.CodeName||f.name||n;if(o)ob(a,g);else tb(a,g);if(o)qg(a,574,Ef((s.Views||[])[0]));if(o&&(i["!merges"]||[]).length)qg(a,229,gl(i["!merges"]));if(o)vb(a,i);qg(a,442,Rs(A,r));if(o)ub(a,i);qg(a,10);return a.end()}function bb(e,r,t){var a=Fa();var n=(e||{}).Workbook||{};var i=n.Sheets||[];var s=n.WBProps||{};var f=t.biff==8,l=t.biff==5;qg(a,2057,ff(e,5,t));if(t.bookType=="xla")qg(a,135);qg(a,225,f?As(1200):null);qg(a,193,ms(2));if(l)qg(a,191);if(l)qg(a,192);qg(a,226);qg(a,92,cf("SheetJS",t));qg(a,66,As(f?1200:1252));if(f)qg(a,353,As(0));if(f)qg(a,448);qg(a,317,Pl(e.SheetNames.length));if(f&&e.vbaraw)qg(a,211);if(f&&e.vbaraw){var o=s.CodeName||"ThisWorkbook";qg(a,442,Rs(o,t))}qg(a,156,As(17));qg(a,25,ws(false));qg(a,18,ws(false));qg(a,19,As(0));if(f)qg(a,431,ws(false));if(f)qg(a,444,As(0));qg(a,61,Tf(t));qg(a,64,ws(false));qg(a,141,As(0));qg(a,34,ws(Rm(e)=="true"));qg(a,14,ws(true));if(f)qg(a,439,ws(false));qg(a,218,As(0));cb(a,e,t);hb(a,e.SSF,t);db(a,t);if(f)qg(a,352,ws(false));var c=a.end();var h=Fa();if(f)qg(h,140,Sl());if(f&&fb.length)qg(h,235,lb());if(f&&t.Strings)Qg(h,252,pf(t.Strings,t));qg(h,10);var u=h.end();var d=Fa();var v=0,p=0;for(p=0;p255){if(typeof console!="undefined"&&console.error)console.error("Worksheet '"+e.SheetNames[t]+"' extends beyond column IV (255). Data may be lost.")}if(n.e.r>65535){if(typeof console!="undefined"&&console.error)console.error("Worksheet '"+e.SheetNames[t]+"' extends beyond row 65536. Data may be lost.")}}var i=r||{};switch(i.biff||2){case 8:;case 5:return wb(e,r);case 4:;case 3:;case 2:return ib(e,r);}throw new Error("invalid type "+i.bookType+" for BIFF")}function Ab(e,r){var t=r||{};var a=t.dense!=null?t.dense:b;var n={};
+if(a)n["!data"]=[];e=Mr(e,"");var i=e.match(/");var s=e.match(/<\/table/i);var f=i.index,l=s&&s.index||e.length;var o=Nr(e.slice(f,l),/(:?]*>)/i,"
");var c=-1,h=0,u=0,d=0;var v={s:{r:1e7,c:1e7},e:{r:0,c:0}};var p=[];for(f=0;f/i);for(l=0;l"))>-1)A=A.slice(T+1);for(var y=0;y")));d=C.colspan?+C.colspan:1;if((u=+C.rowspan)>1||d>1)p.push({s:{r:c,c:h},e:{r:c+(u||1)-1,c:h+d-1}});var _=C.t||C["data-t"]||"";if(!A.length){h+=d;continue}A=Nt(A);if(v.s.r>c)v.s.r=c;if(v.e.rh)v.s.c=h;if(v.e.ct||n[h].s.c>l)continue;if(n[h].e.r1)s.rowspan=o;if(c>1)s.colspan=c;if(a.editable)v=''+v+"";else if(d){s["data-t"]=d&&d.t||"z";if(d.v!=null)s["data-v"]=At(d.v instanceof Date?d.v.toISOString():d.v);if(d.z!=null)s["data-z"]=d.z;if(d.l&&(d.l.Target||"#").charAt(0)!="#")v=''+v+""}s.id=(a.id||"sjs")+"-"+u;i.push(Bt("td",v,s))}var p="";return p+i.join("")+"
"}var yb='SheetJS Table Export';var Eb="";function Cb(e,r){var t=Vr(e,"table");if(!t||t.length==0)throw new Error("Invalid HTML: could not find ");if(t.length==1){var a=an(Ab(t[0],r),r);a.bookType="html";return a}var n=$k();t.forEach(function(e,t){Xk(n,Ab(e,r),"Sheet"+(t+1))});n.bookType="html";return n}function _b(e,r,t){var a=[];return a.join("")+""}function Sb(e,r){var t=r||{};var a=t.header!=null?t.header:yb;var n=t.footer!=null?t.footer:Eb;var i=[a];var s=Za(e["!ref"]||"A1");i.push(_b(e,s,t));if(e["!ref"])for(var f=s.s.r;f<=s.e.r;++f)i.push(Tb(e,s,f,t));i.push("
"+n);return i.join("")}function xb(e,r,t){var a=r.rows;if(!a){throw"Unsupported origin when "+r.tagName+" is not a TABLE"}var n=t||{};var i=e["!data"]!=null;var s=0,f=0;if(n.origin!=null){if(typeof n.origin=="number")s=n.origin;else{var l=typeof n.origin=="string"?Ka(n.origin):n.origin;s=l.r;f=l.c}}var o=Math.min(n.sheetRows||1e7,a.length);var c={s:{r:0,c:0},e:{r:s,c:f}};if(e["!ref"]){var h=Za(e["!ref"]);c.s.r=Math.min(c.s.r,h.s.r);c.s.c=Math.min(c.s.c,h.s.c);c.e.r=Math.max(c.e.r,h.e.r);c.e.c=Math.max(c.e.c,h.e.c);if(s==-1)c.e.r=s=h.e.r+1}var u=[],d=0;var v=e["!rows"]||(e["!rows"]=[]);var p=0,m=0,g=0,b=0,w=0,k=0;if(!e["!cols"])e["!cols"]=[];for(;p1||k>1)u.push({s:{r:m+s,c:b+f},e:{r:m+s+(w||1)-1,c:b+f+(k||1)-1}});var S={t:"s",v:E};var x=y.getAttribute("data-t")||y.getAttribute("t")||"";if(E!=null){if(E.length==0)S.t=x||"z";else if(n.raw||E.trim().length==0||x=="s"){}else if(x=="e"&&ci[+E])S={t:"e",v:+E,w:ci[+E]};else if(E==="TRUE")S={t:"b",v:true};else if(E==="FALSE")S={t:"b",v:false};else if(!isNaN(yr(E)))S={t:"n",v:yr(E)};else if(!isNaN(Rr(E).getDate())){S={t:"d",v:wr(E)};if(n.UTC)S.v=Dr(S.v);if(!n.cellDates)S={t:"n",v:dr(S.v)};S.z=n.dateNF||q[14]}else if(E.charCodeAt(0)==35&&hi[E]!=null)S={t:"e",v:hi[E],w:E}}if(S.z===undefined&&C!=null)S.z=C;var O="",I=y.getElementsByTagName("A");if(I&&I.length)for(var R=0;R=o)e["!fullref"]=Ja((c.e.r=a.length-p+m-1+s,c));return e}function Ob(e,r){var t=r||{};var a={};if(t.dense)a["!data"]=[];return xb(a,e,r)}function Ib(e,r){var t=an(Ob(e,r),r);return t}function Rb(e){var r="";var t=Nb(e);if(t)r=t(e).getPropertyValue("display");if(!r)r=e.style&&e.style.display;return r==="none"}function Nb(e){if(e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle==="function")return e.ownerDocument.defaultView.getComputedStyle;if(typeof getComputedStyle==="function")return getComputedStyle;return null}function Fb(e){var r=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(//g," ").replace(//g,function(e,r){return Array(parseInt(r,10)+1).join(" ")}).replace(/]*\/>/g,"\t").replace(//g,"\n");var t=pt(r.replace(/<[^<>]*>/g,""));return[t]}function Db(e,r,t){var a=t||{};var n=Ht(e);Vt.lastIndex=0;n=Pr(Mr(n,""));var i,s,f="",l="",o,c=0,h=-1,u=false,d="";while(i=Vt.exec(n)){switch(i[3]=i[3].replace(/_[\s\S]*$/,"")){case"number-style":;case"currency-style":;case"percentage-style":;case"date-style":;case"time-style":;case"text-style":if(i[1]==="/"){u=false;if(s["truncate-on-overflow"]=="false"){if(f.match(/h/))f=f.replace(/h+/,"[$&]");else if(f.match(/m/))f=f.replace(/m+/,"[$&]");else if(f.match(/s/))f=f.replace(/s+/,"[$&]")}a[s.name]=f;f=""}else if(i[0].charAt(i[0].length-2)!=="/"){u=true;f="";s=ct(i[0],false)}break;case"boolean-style":if(i[1]==="/"){u=false;a[s.name]="General";f=""}else if(i[0].charAt(i[0].length-2)!=="/"){u=true;f="";s=ct(i[0],false)}break;case"boolean":f+="General";break;case"text":if(i[1]==="/"){d=n.slice(h,Vt.lastIndex-i[0].length);if(d=="%"&&s[0]=="=0")f=a[o["apply-style-name"]]+";"+f;else console.error("ODS number format may be incorrect: "+o["condition"]);break;case"number":if(i[1]==="/")break;o=ct(i[0],false);l="";l+=Tr("0",+o["min-integer-digits"]||1);if(Ct(o["grouping"]))l=ue(Tr("#",Math.max(0,4-l.length))+l);if(+o["min-decimal-places"]||+o["decimal-places"])l+=".";if(+o["min-decimal-places"])l+=Tr("0",+o["min-decimal-places"]||1);if(+o["decimal-places"]-(+o["min-decimal-places"]||0))l+=Tr("0",+o["decimal-places"]-(+o["min-decimal-places"]||0));f+=l;break;case"embedded-text":if(i[1]==="/"){if(c==0)f+='"'+n.slice(h,Vt.lastIndex-i[0].length).replace(/"/g,'""')+'"';else f=f.slice(0,c)+'"'+n.slice(h,Vt.lastIndex-i[0].length).replace(/"/g,'""')+'"'+f.slice(c)}else if(i[0].charAt(i[0].length-2)!=="/"){h=Vt.lastIndex;c=-+ct(i[0],false)["position"]||0}break;}}return a}function Pb(e,r,t){var a=r||{};if(b!=null&&a.dense==null)a.dense=b;var n=Ht(e);var i=[],s;var f;var l,o="",c=0;var h;var u;var d={},v=[];var p={};if(a.dense)p["!data"]=[];var m,g;var w={value:""},k={};var A="",T=0,y,E="",C=0;var _=[],S=[];var x=-1,O=-1,I={s:{r:1e6,c:1e7},e:{r:0,c:0}};var R=0;var N=t||{},F={};var D=[],P={},L=0,M=0;var U=[],B=1,W=1;var z=[];var H={Names:[],WBProps:{}};var V={};var $=["",""];var X=[],G={};var j="",K=0;var Y=false,Z=false;var J=0;Vt.lastIndex=0;n=Pr(Mr(n,""));while(m=Vt.exec(n))switch(m[3]=m[3].replace(/_[\s\S]*$/,"")){case"table":;case"工作表":if(m[1]==="/"){if(I.e.c>=I.s.c&&I.e.r>=I.s.r)p["!ref"]=Ja(I);else p["!ref"]="A1:A1";if(a.sheetRows>0&&a.sheetRows<=I.e.r){p["!fullref"]=p["!ref"];I.e.r=a.sheetRows-1;p["!ref"]=Ja(I)}if(D.length)p["!merges"]=D;if(U.length)p["!rows"]=U;h.name=h["名称"]||h.name;if(typeof JSON!=="undefined")JSON.stringify(h);v.push(h.name);d[h.name]=p;Z=false}else if(m[0].charAt(m[0].length-2)!=="/"){h=ct(m[0],false);x=O=-1;I.s.r=I.s.c=1e7;I.e.r=I.e.c=0;p={};if(a.dense)p["!data"]=[];D=[];U=[];Z=true}break;case"table-row-group":if(m[1]==="/")--R;else++R;break;case"table-row":;case"行":if(m[1]==="/"){x+=B;B=1;break}u=ct(m[0],false);if(u["行号"])x=u["行号"]-1;else if(x==-1)x=0;B=+u["number-rows-repeated"]||1;if(B<10)for(J=0;J0)U[x+J]={level:R};O=-1;break;case"covered-table-cell":if(m[1]!=="/"){++O;w=ct(m[0],false);W=parseInt(w["number-columns-repeated"]||"1",10)||1;if(a.sheetStubs){while(W-- >0){if(a.dense){if(!p["!data"][x])p["!data"][x]=[];p["!data"][x][O]={t:"z"}}else p[Ya({r:x,c:O})]={t:"z"};++O}--O}else O+=W-1}A="";_=[];break;case"table-cell":;case"数据":if(m[0].charAt(m[0].length-2)==="/"){++O;w=ct(m[0],false);W=parseInt(w["number-columns-repeated"]||"1",10)||1;g={t:"z",v:null};if(w.formula&&a.cellFormula!=false)g.f=uv(pt(w.formula));if(w["style-name"]&&F[w["style-name"]])g.z=F[w["style-name"]];if((w["数据类型"]||w["value-type"])=="string"){g.t="s";g.v=pt(w["string-value"]||"");if(a.dense){if(!p["!data"][x])p["!data"][x]=[];p["!data"][x][O]=g}else{p[$a(O)+Wa(x)]=g}}O+=W-1}else if(m[1]!=="/"){++O;A=E="";T=C=0;_=[];S=[];W=1;var q=B?x+B-1:x;if(O>I.e.c)I.e.c=O;if(OI.e.r)I.e.r=q;w=ct(m[0],false);k=ht(m[0],true);X=[];G={};g={t:w["数据类型"]||w["value-type"],v:null};if(w["style-name"]&&F[w["style-name"]])g.z=F[w["style-name"]];if(a.cellFormula){if(w.formula)w.formula=pt(w.formula);if(w["number-matrix-columns-spanned"]&&w["number-matrix-rows-spanned"]){L=parseInt(w["number-matrix-rows-spanned"],10)||0;M=parseInt(w["number-matrix-columns-spanned"],10)||0;P={s:{r:x,c:O},e:{r:x+L-1,c:O+M-1}};g.F=Ja(P);z.push([P,g.F])}if(w.formula)g.f=uv(w.formula);else for(J=0;J=z[J][0].s.r&&x<=z[J][0].e.r)if(O>=z[J][0].s.c&&O<=z[J][0].e.c)g.F=z[J][1]}if(w["number-columns-spanned"]||w["number-rows-spanned"]){L=parseInt(w["number-rows-spanned"]||"1",10)||1;M=parseInt(w["number-columns-spanned"]||"1",10)||1;if(L*M>1){P={s:{r:x,c:O},e:{r:x+L-1,c:O+M-1}};D.push(P)}}if(w["number-columns-repeated"])W=parseInt(w["number-columns-repeated"],10);switch(g.t){case"boolean":g.t="b";g.v=Ct(w["boolean-value"])||+w["boolean-value"]>=1;break;case"float":g.t="n";g.v=parseFloat(w.value);if(a.cellDates&&g.z&&Le(g.z)){g.v=vr(g.v+(H.WBProps.date1904?1462:0));g.t=typeof g.v=="number"?"n":"d"}break;case"percentage":g.t="n";g.v=parseFloat(w.value);break;case"currency":g.t="n";g.v=parseFloat(w.value);break;case"date":g.t="d";g.v=wr(w["date-value"],H.WBProps.date1904);if(!a.cellDates){g.t="n";g.v=dr(g.v,H.WBProps.date1904)}if(!g.z)g.z="m/d/yy";break;case"time":g.t="n";g.v=pr(w["time-value"])/86400;if(a.cellDates){g.v=vr(g.v);g.t=typeof g.v=="number"?"n":"d"}if(!g.z)g.z="HH:MM:SS";break;case"number":g.t="n";g.v=parseFloat(w["数据数值"]);break;default:if(g.t==="string"||g.t==="text"||!g.t){g.t="s";if(w["string-value"]!=null){A=pt(w["string-value"]);_=[]}}else throw new Error("Unsupported value type "+g.t);}}else{Y=false;if(k["calcext:value-type"]=="error"&&hi[A]!=null){g.t="e";g.w=A;g.v=hi[A]}if(g.t==="s"){g.v=A||"";if(_.length)g.R=_;Y=T==0}if(V.Target)g.l=V;if(X.length>0){g.c=X;X=[]}if(A&&a.cellText!==false)g.w=A;if(Y){g.t="z";delete g.v}if(!Y||a.sheetStubs){if(!(a.sheetRows&&a.sheetRows<=x)){for(var Q=0;Q0)p["!data"][x+Q][O+W]=Ar(g)}else{p[Ya({r:x+Q,c:O})]=g;while(--W>0)p[Ya({r:x+Q,c:O+W})]=Ar(g)}if(I.e.c<=O)I.e.c=O}}}W=parseInt(w["number-columns-repeated"]||"1",10);O+=W-1;W=0;g={};A="";_=[]}V={};break;case"document":;case"document-content":;case"电子表格文档":;case"spreadsheet":;case"主体":;case"scripts":;case"styles":;case"font-face-decls":;case"master-styles":if(m[1]==="/"){if((s=i.pop())[0]!==m[3])throw"Bad state: "+s}else if(m[0].charAt(m[0].length-2)!=="/")i.push([m[3],true]);break;case"annotation":if(m[1]==="/"){if((s=i.pop())[0]!==m[3])throw"Bad state: "+s;G.t=A;if(_.length)G.R=_;G.a=j;X.push(G);A=E;T=C;_=S}else if(m[0].charAt(m[0].length-2)!=="/"){i.push([m[3],false]);var ee=ct(m[0],true);if(!(ee["display"]&&Ct(ee["display"])))X.hidden=true;E=A;C=T;S=_;A="";T=0;_=[]}j="";K=0;break;case"creator":if(m[1]==="/"){j=n.slice(K,m.index)}else K=m.index+m[0].length;break;case"meta":;case"元数据":;case"settings":;case"config-item-set":;case"config-item-map-indexed":;case"config-item-map-entry":;case"config-item-map-named":;case"shapes":;case"frame":;case"text-box":;case"image":;case"data-pilot-tables":;case"list-style":;case"form":;case"dde-links":;case"event-listeners":;case"chart":if(m[1]==="/"){if((s=i.pop())[0]!==m[3])throw"Bad state: "+s}else if(m[0].charAt(m[0].length-2)!=="/")i.push([m[3],false]);A="";T=0;_=[];break;case"scientific-number":;case"currency-symbol":;case"fill-character":break;case"text-style":;case"boolean-style":;case"number-style":;case"currency-style":;case"percentage-style":;case"date-style":;case"time-style":if(m[1]==="/"){var re=Vt.lastIndex;Db(n.slice(l,Vt.lastIndex),r,N);Vt.lastIndex=re}else if(m[0].charAt(m[0].length-2)!=="/"){l=Vt.lastIndex-m[0].length}break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":;case"page-layout":break;case"style":{var te=ct(m[0],false);if(te["family"]=="table-cell"&&N[te["data-style-name"]])F[te["name"]]=N[te["data-style-name"]]}break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":break;case"fraction":break;case"day":;case"month":;case"year":;case"era":;case"day-of-week":;case"week-of-year":;case"quarter":;case"hours":;case"minutes":;case"seconds":;case"am-pm":break;case"boolean":break;case"text":if(m[0].slice(-2)==="/>")break;else if(m[1]==="/")switch(i[i.length-1][0]){case"number-style":;case"date-style":;case"time-style":o+=n.slice(c,m.index);break;}else c=m.index+m[0].length;break;case"named-range":f=ct(m[0],false);$=vv(f["cell-range-address"]);var ae={Name:f.name,Ref:$[0]+"!"+$[1]};if(Z)ae.Sheet=v.length;H.Names.push(ae);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":;case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":f=ct(m[0],false);switch(f["date-value"]){case"1904-01-01":H.WBProps.date1904=true;break;}break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":;case"文本串":if(["master-styles"].indexOf(i[i.length-1][0])>-1)break;if(m[1]==="/"&&(!w||!w["string-value"])){var ne=Fb(n.slice(T,m.index),y);A=(A.length>0?A+"\n":"")+ne[0]}else if(m[0].slice(-2)=="/>"){A+="\n"}else{y=ct(m[0],false);T=m.index+m[0].length}break;case"s":break;case"database-range":if(m[1]==="/")break;try{$=vv(ct(m[0])["target-range-address"]);d[$[0]]["!autofilter"]={ref:$[1]}}catch(ie){}break;case"date":break;case"object":break;case"title":;case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"filter-set-item":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":;case"sender-lastname":;case"sender-initials":;case"sender-title":;case"sender-position":;case"sender-email":;case"sender-phone-private":;case"sender-fax":;case"sender-company":;case"sender-phone-work":;case"sender-street":;case"sender-city":;case"sender-postal-code":;case"sender-country":;case"sender-state-or-province":;case"author-name":;case"author-initials":;case"chapter":;case"file-name":;case"template-name":;case"sheet-name":break;case"event-listener":break;case"initial-creator":;case"creation-date":;case"print-date":;case"generator":;case"document-statistic":;case"user-defined":;case"editing-duration":;case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":;case"source-cell-range":;case"source-service":;case"data-pilot-field":;case"data-pilot-level":;case"data-pilot-subtotals":;case"data-pilot-subtotal":;case"data-pilot-members":;case"data-pilot-member":;case"data-pilot-display-info":;case"data-pilot-sort-info":;case"data-pilot-layout-info":;case"data-pilot-field-reference":;case"data-pilot-groups":;case"data-pilot-group":;case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":;case"dde-connection-decl":;case"dde-link":;case"dde-source":break;case"properties":break;case"property":break;case"a":if(m[1]!=="/"){V=ct(m[0],false);if(!V.href)break;V.Target=pt(V.href);delete V.href;if(V.Target.charAt(0)=="#"&&V.Target.indexOf(".")>-1){$=vv(V.Target.slice(1));V.Target="#"+$[0]+"!"+$[1]}else if(V.Target.match(/^\.\.[\\\/]/))V.Target=V.Target.slice(3)}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(m[2]){case"dc:":;case"calcext:":;case"loext:":;case"ooo:":;case"chartooo:":;case"draw:":;case"style:":;case"chart:":;case"form:":;case"uof:":;case"表:":;case"字:":break;default:if(a.WTF)throw new Error(m);};}var se={Sheets:d,SheetNames:v,Workbook:H};if(a.bookSheets)delete se.Sheets;return se}function Lb(e,r){r=r||{};if(jr(e,"META-INF/manifest.xml"))Ei(Yr(e,"META-INF/manifest.xml"),r);var t=Zr(e,"styles.xml");var a=t&&Db(It(t),r);var n=Zr(e,"content.xml");if(!n)throw new Error("Missing content.xml in ODS / UOF file");var i=Pb(It(n),r,a);if(jr(e,"meta.xml"))i.Props=Ri(Yr(e,"meta.xml"));i.bookType="ods";return i}function Mb(e,r){var t=Pb(e,r);t.bookType="fods";return t}var Ub=function(){var e=["",'',"",'',"",'',"",""].join("");var r=""+e+"";return function t(){return at+r}}();function Bb(e,r){var t="number",a="",n={"style:name":r},i="",s=0;e=e.replace(/"[$]"/g,"$");e:{if(e.indexOf(";")>-1){console.error("Unsupported ODS Style Map exported. Using first branch of "+e);e=e.slice(0,e.indexOf(";"))}if(e=="@"){t="text";a="";break e}if(e.indexOf(/\$/)>-1){t="currency"}if(e[s]=='"'){i="";while(e[++s]!='"'||e[++s]=='"')i+=e[s];--s;if(e[s+1]=="*"){s++;a+=""+bt(i.replace(/""/g,'"'))+""}else{a+=""+bt(i.replace(/""/g,'"'))+""}e=e.slice(s+1);s=0}var f=e.match(/# (\?+)\/(\?+)/);if(f){a+=Bt("number:fraction",null,{"number:min-integer-digits":0,"number:min-numerator-digits":f[1].length,"number:max-denominator-value":Math.max(+f[1].replace(/./g,"9"),+f[2].replace(/./g,"9"))});break e}if(f=e.match(/# (\?+)\/(\d+)/)){a+=Bt("number:fraction",null,{"number:min-integer-digits":0,"number:min-numerator-digits":f[1].length,"number:denominator-value":+f[2]});break e}if(f=e.match(/\b(\d+)(|\.\d+)%/)){t="percentage";a+=Bt("number:number",null,{"number:decimal-places":f[2]&&f.length-1||0,"number:min-decimal-places":f[2]&&f.length-1||0,"number:min-integer-digits":f[1].length})+"%";break e}var l=false;if(["y","m","d"].indexOf(e[0])>-1){t="date";r:for(;s";break;case"yyy":;case"yyyy":a+='';break;case"mmmmm":console.error("ODS has no equivalent of format |mmmmm|");case"m":;case"mm":;case"mmm":;case"mmmm":a+='';break;case"d":;case"dd":a+='';break;case"ddd":;case"dddd":a+='';break;}break;case'"':while(e[++s]!='"'||e[++s]=='"')i+=e[s];--s;a+=""+bt(i.slice(1).replace(/""/g,'"'))+"";break;case"\\":i=e[++s];a+=""+bt(i)+"";break;case"/":;case":":a+=""+bt(i)+"";break;default:console.error("unrecognized character "+i+" in ODF format "+e);}if(!l)break e;e=e.slice(s+1);s=0}if(e.match(/^\[?[hms]/)){if(t=="number")t="time";if(e.match(/\[/)){e=e.replace(/[\[\]]/g,"");n["number:truncate-on-overflow"]="false"}for(;s';break;case"m":;case"mm":a+='';break;case"s":;case"ss":if(e[s+1]==".")do{i+=e[s+1];++s}while(e[s+1]=="0");a+='";break;}break;case'"':while(e[++s]!='"'||e[++s]=='"')i+=e[s];--s;a+=""+bt(i.slice(1).replace(/""/g,'"'))+"";break;case"/":;case":":a+=""+bt(i)+"";break;case"a":if(e.slice(s,s+3).toLowerCase()=="a/p"){a+="";s+=2;break}if(e.slice(s,s+5).toLowerCase()=="am/pm"){a+="";s+=4;break};default:console.error("unrecognized character "+i+" in ODF format "+e);}break e}if(e.indexOf(/\$/)>-1){t="currency"}if(e[0]=="$"){a+='$';e=e.slice(1);s=0}s=0;if(e[s]=='"'){while(e[++s]!='"'||e[++s]=='"')i+=e[s];--s;if(e[s+1]=="*"){s++;a+=""+bt(i.replace(/""/g,'"'))+""}else{a+=""+bt(i.replace(/""/g,'"'))+""}e=e.slice(s+1);s=0}var c=e.match(/([#0][0#,]*)(\.[0#]*|)(E[+]?0*|)/i);if(!c||!c[0])console.error("Could not find numeric part of "+e);else{var h=c[1].replace(/,/g,"");a+="-1?' number:grouping="true"':"")+(c[2]&&' number:decimal-places="'+(c[2].length-1)+'"'||' number:decimal-places="0"')+(c[3]&&c[3].indexOf("+")>-1?' number:forced-exponent-sign="true"':"")+(c[3]?' number:min-exponent-digits="'+c[3].match(/0+/)[0].length+'"':"")+">"+"";s=c.index+c[0].length}if(e[s]=='"'){i="";while(e[++s]!='"'||e[++s]=='"')i+=e[s];--s;a+=""+bt(i.replace(/""/g,'"'))+""}}if(!a){console.error("Could not generate ODS number format for |"+e+"|");return""}return Bt("number:"+t+"-style",a,n)}function Wb(e,r,t){var a=[];for(var n=0;n\n"+a.map(function(e){var r=(t==-1?"$":"")+pv(e.Ref);return" "+Bt("table:named-range",null,{"table:name":e.Name,"table:cell-range-address":r,"table:base-cell-address":r.replace(/[\.][^\.]*$/,".$A$1")})}).join("\n")+"\n \n"}var zb=function(){var e=function(e,r){return bt(e).replace(/ +/g,function(e){return''}).replace(/\t/g,"").replace(/\n/g,r?"":"").replace(/^ /,"").replace(/ $/,"")};var r=" \n";var t=function(t,a,n,i,s,f){var l=[];l.push(' \n');var o=0,c=0,h=Za(t["!ref"]||"A1");var u=t["!merges"]||[],d=0;var v=t["!data"]!=null;if(t["!cols"]){for(c=0;c<=h.e.c;++c)l.push(" \n")}var p="",m=t["!rows"]||[];for(o=0;o\n")}for(;o<=h.e.r;++o){p=m[o]?' table:style-name="ro'+m[o].ods+'"':"";l.push(" \n");for(c=0;cc)continue;if(u[d].s.r>o)continue;if(u[d].e.c\n");continue}var k=Ya({r:o,c:c}),A=v?(t["!data"][o]||[])[c]:t[k];if(A&&A.f){b["table:formula"]=bt(dv(A.f));if(A.F){if(A.F.slice(0,k.length)==k){var T=Za(A.F);b["table:number-matrix-columns-spanned"]=T.e.c-T.s.c+1;b["table:number-matrix-rows-spanned"]=T.e.r-T.s.r+1}}}if(!A){l.push(r);continue}switch(A.t){case"b":w=A.v?"TRUE":"FALSE";b["office:value-type"]="boolean";b["office:boolean-value"]=A.v?"true":"false";break;case"n":if(!isFinite(A.v)){if(isNaN(A.v)){w="#NUM!";b["table:formula"]="of:=#NUM!"}else{w="#DIV/0!";b["table:formula"]="of:="+(A.v<0?"-":"")+"1/0"}b["office:string-value"]="";b["office:value-type"]="string";b["calcext:value-type"]="error"}else{w=A.w||String(A.v||0);b["office:value-type"]="float";b["office:value"]=A.v||0}break;case"s":;case"str":w=A.v==null?"":A.v;b["office:value-type"]="string";break;case"d":w=A.w||wr(A.v,f).toISOString();b["office:value-type"]="date";b["office:date-value"]=wr(A.v,f).toISOString();b["table:style-name"]="ce1";break;default:l.push(r);continue;}var y=e(w);if(A.l&&A.l.Target){var E=A.l.Target;E=E.charAt(0)=="#"?"#"+pv(E.slice(1)):E;if(E.charAt(0)!="#"&&!E.match(/^\w+:/))E="../"+E;y=Bt("text:a",y,{"xlink:href":E.replace(/&/g,"&")})}if(s[A.z])b["table:style-name"]="ce"+s[A.z].slice(1);var C=Bt("text:p",y,{});if(A.c){var _="",S="",x={};for(var O=0;O"+e(A.c[O].t)+""}if(!A.c.hidden)x["office:display"]=true;C=Bt("office:annotation",S,x)+C}l.push(" "+Bt("table:table-cell",C,b)+"\n")}l.push(" \n")}if((a.Workbook||{}).Names)l.push(Wb(a.Workbook.Names,a.SheetNames,n));l.push(" \n");return l.join("")};var a=function(e,r){e.push(" \n");var t=0;r.SheetNames.map(function(e){return r.Sheets[e]}).forEach(function(r){if(!r)return;if(r["!cols"]){for(var a=0;a\n');e.push(' \n');e.push(" \n");++t}}});var a=0;r.SheetNames.map(function(e){return r.Sheets[e]}).forEach(function(r){if(!r)return;if(r["!rows"]){for(var t=0;t\n');e.push(' \n');e.push(" \n");++a}}});e.push(' \n');e.push(' \n');e.push(" \n");e.push(' \n');e.push(' \n');e.push(" /\n");e.push(' \n');e.push(" /\n");e.push(" \n");e.push(" \n");var n={};var i=69;r.SheetNames.map(function(e){return r.Sheets[e]}).forEach(function(r){if(!r)return;var t=r["!data"]!=null;if(!r["!ref"])return;var a=Za(r["!ref"]);for(var s=0;s<=a.e.r;++s)for(var f=0;f<=a.e.c;++f){var l=t?(r["!data"][s]||[])[f]:r[Ya({r:s,c:f})];if(!l||!l.z||l.z.toLowerCase()=="general")continue;if(!n[l.z]){var o=Bb(l.z,"N"+i);if(o){n[l.z]="N"+i;++i;e.push(o+"\n")}}}});e.push(' \n');ir(n).forEach(function(r){e.push('\n')});e.push(" \n");return n};return function n(e,r){var n=[at];var i=Ut({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"});var s=Ut({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});if(r.bookType=="fods"){n.push("\n");n.push(Oi().replace(/]*?>/,"").replace(/<\/office:document-meta>/,"")+"\n")}else n.push("\n");var f=a(n,e);n.push(" \n");n.push(" \n");if(((e.Workbook||{}).WBProps||{}).date1904)n.push(' \n \n \n');for(var l=0;l!=e.SheetNames.length;++l)n.push(t(e.Sheets[e.SheetNames[l]],e,l,r,f,((e.Workbook||{}).WBProps||{}).date1904));if((e.Workbook||{}).Names)n.push(Wb(e.Workbook.Names,e.SheetNames,-1));n.push(" \n");n.push(" \n");if(r.bookType=="fods")n.push("");else n.push("");return n.join("")}}();function Hb(e,r){if(r.bookType=="fods")return zb(e,r);var t=et();var a="";var n=[];var i=[];a="mimetype";Qr(t,a,"application/vnd.oasis.opendocument.spreadsheet");a="content.xml";Qr(t,a,zb(e,r));n.push([a,"text/xml"]);i.push([a,"ContentFile"]);a="styles.xml";Qr(t,a,Ub(e,r));n.push([a,"text/xml"]);i.push([a,"StylesFile"]);a="meta.xml";Qr(t,a,at+Oi());n.push([a,"text/xml"]);i.push([a,"MetadataFile"]);a="manifest.rdf";Qr(t,a,xi(i));n.push([a,"application/rdf+xml"]);a="META-INF/manifest.xml";Qr(t,a,Ci(n));return t}var Vb=function(){try{if(typeof Uint8Array=="undefined")return"slice";if(typeof Uint8Array.prototype.subarray=="undefined")return"slice";if(typeof Buffer!=="undefined"){if(typeof Buffer.prototype.subarray=="undefined")return"slice";if((typeof Buffer.from=="function"?Buffer.from([72,62]):new Buffer([72,62]))instanceof Uint8Array)return"subarray";return"slice"}return"subarray"}catch(e){return"slice"}}();function $b(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Xb(e){return typeof TextDecoder!="undefined"?(new TextDecoder).decode(e):It(N(e))}function Gb(e){return typeof TextEncoder!="undefined"?(new TextEncoder).encode(e):I(Rt(e))}function jb(e){var r=0;for(var t=0;t>1&1431655765;e=(e&858993459)+(e>>2&858993459);return(e+(e>>4)&252645135)*16843009>>>24}function Yb(e,r){var t=(e[r+15]&127)<<7|e[r+14]>>1;var a=e[r+14]&1;for(var n=r+13;n>=r;--n)a=a*256+e[n];return(e[r+15]&128?-a:a)*Math.pow(10,t-6176)}function Zb(e,r,t){var a=Math.floor(t==0?0:Math.LOG10E*Math.log(Math.abs(t)))+6176-16;var n=t/Math.pow(10,a-6176);e[r+15]|=a>>7;e[r+14]|=(a&127)<<1;for(var i=0;n>=1;++i,n/=256)e[r+i]=n&255;e[r+15]|=t>=0?0:128}function Jb(e,r){var t=r.l;var a=e[t]&127;e:if(e[t++]>=128){a|=(e[t]&127)<<7;if(e[t++]<128)break e;a|=(e[t]&127)<<14;if(e[t++]<128)break e;a|=(e[t]&127)<<21;if(e[t++]<128)break e;a+=(e[t]&127)*Math.pow(2,28);++t;if(e[t++]<128)break e;a+=(e[t]&127)*Math.pow(2,35);++t;if(e[t++]<128)break e;a+=(e[t]&127)*Math.pow(2,42);++t;if(e[t++]<128)break e}r.l=t;return a}function qb(e){var r=new Uint8Array(7);r[0]=e&127;var t=1;e:if(e>127){r[t-1]|=128;r[t]=e>>7&127;++t;if(e<=16383)break e;r[t-1]|=128;r[t]=e>>14&127;++t;if(e<=2097151)break e;r[t-1]|=128;r[t]=e>>21&127;++t;if(e<=268435455)break e;r[t-1]|=128;r[t]=e/256>>>21&127;++t;if(e<=34359738367)break e;r[t-1]|=128;r[t]=e/65536>>>21&127;++t;if(e<=4398046511103)break e;r[t-1]|=128;r[t]=e/16777216>>>21&127;++t}return r[Vb](0,t)}function Qb(e){var r={l:0};var t=[];while(r.l=128){t|=(e[r]&127)<<7;if(e[r++]<128)break e;t|=(e[r]&127)<<14;if(e[r++]<128)break e;t|=(e[r]&127)<<21;if(e[r++]<128)break e;t|=(e[r]&127)<<28;a=e[r]>>4&7;if(e[r++]<128)break e;a|=(e[r]&127)<<3;if(e[r++]<128)break e;a|=(e[r]&127)<<10;if(e[r++]<128)break e;a|=(e[r]&127)<<17;if(e[r++]<128)break e;a|=(e[r]&127)<<24;if(e[r++]<128)break e;a|=(e[r]&127)<<31}return[t>>>0,a>>>0]}function aw(e){var r=[],t={l:0};while(t.l=128);s=e[Vb](t.l,f);t.l=f}break;case 1:{s=e[Vb](f,f+8);t.l=f+8}break;case 2:{var l=Jb(e,t);s=e[Vb](t.l,t.l+l);t.l+=l}break;case 5:{s=e[Vb](f,f+4);t.l=f+4}break;default:throw new Error("PB Type ".concat(i," for Field ").concat(n," at offset ").concat(a));}var o={data:s,type:i};if(r[n]==null)r[n]=[];r[n].push(o)}return r}function nw(e){var r=[];e.forEach(function(e,t){if(t==0)return;e.forEach(function(e){if(!e.data)return;r.push(qb(t*8+e.type));if(e.type==2)r.push(qb(e.data.length));r.push(e.data)})});return jb(r)}function iw(e,r){return(e==null?void 0:e.map(function(e){return r(e.data)}))||[]}function sw(e){var r;var t=[],a={l:0};while(a.l>>0>0;t.push(s)}return t}function fw(e){var r=[];e.forEach(function(e){var t=[[],[{data:qb(e.id),type:0}],[]];if(e.merge!=null)t[3]=[{data:qb(+!!e.merge),type:0}];var a=[];e.messages.forEach(function(e){a.push(e.data);e.meta[3]=[{type:0,data:qb(e.data.length)}];t[2].push({data:nw(e.meta),type:2})});var n=nw(t);r.push(qb(n.length));r.push(n);a.forEach(function(e){return r.push(e)})});return jb(r)}function lw(e,r){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));var t={l:0};var a=Jb(r,t);var n=[];var i=t.l;while(i>2;if(f<60)++f;else{var l=f-59;f=r[i];if(l>1)f|=r[i+1]<<8;if(l>2)f|=r[i+2]<<16;if(l>3)f|=r[i+3]<<24;f>>>=0;f++;i+=l}n.push(r[Vb](i,i+f));i+=f;continue}else{var o=0,c=0;if(s==1){c=(r[i]>>2&7)+4;o=(r[i++]&224)<<3;o|=r[i++]}else{c=(r[i++]>>2)+1;if(s==2){o=r[i]|r[i+1]<<8;i+=2}else{o=(r[i]|r[i+1]<<8|r[i+2]<<16|r[i+3]<<24)>>>0;i+=4}}if(o==0)throw new Error("Invalid offset 0");var h=n.length-1,u=o;while(h>=0&&u>=n[h].length){u-=n[h].length;--h}if(h<0){if(u==0)u=n[h=0].length;else throw new Error("Invalid offset beyond length")}if(c0){n.push(n[h][Vb](n[h].length-u));c-=u}++h;while(c>=n[h].length){n.push(n[h]);c-=n[h].length;++h}if(c)n.push(n[h][Vb](0,c))}if(n.length>25)n=[jb(n)]}}var d=0;for(var v=0;v>8&255]))}else if(a<=16777216){s+=4;r.push(new Uint8Array([248,a-1&255,a-1>>8&255,a-1>>16&255]))}else if(a<=4294967296){s+=5;r.push(new Uint8Array([252,a-1&255,a-1>>8&255,a-1>>16&255,a-1>>>24&255]))}r.push(e[Vb](t,t+a));s+=a;n[0]=0;n[1]=s&255;n[2]=s>>8&255;n[3]=s>>16&255;t+=a}return jb(r)}var hw=function(){return{sst:[],rsst:[],ofmt:[],nfmt:[],fmla:[],ferr:[],cmnt:[]}};function uw(e,r,t,a,n){var i,s,f,l;var o=r&255,c=r>>8;var h=c>=5?n:a;e:if(t&(c>4?8:4)&&e.t=="n"&&o==7){var u=((i=h[7])==null?void 0:i[0])?rw(h[7][0].data):-1;if(u==-1)break e;var d=((s=h[15])==null?void 0:s[0])?rw(h[15][0].data):-1;var v=((f=h[16])==null?void 0:f[0])?rw(h[16][0].data):-1;var p=((l=h[40])==null?void 0:l[0])?rw(h[40][0].data):-1;var m=e.v,g=m;r:if(p){if(m==0){d=v=2;break r}if(m>=604800)d=1;else if(m>=86400)d=2;else if(m>=3600)d=4;else if(m>=60)d=8;else if(m>=1)d=16;else d=32;if(Math.floor(m)!=m)v=32;else if(m%60)v=16;else if(m%3600)v=8;else if(m%86400)v=4;else if(m%604800)v=2;if(v=2){g=m/86400;if(v>2){g|=0;m-=86400*g}w.push('d"d"');b.push(g+(u==2?" day"+(g==1?"":"s"):u==1?"d":""))}if(d<=4&&v>=4){g=m/3600;if(v>4){g|=0;m-=3600*g}w.push((d>=4?"[h]":"h")+'"h"');b.push(g+(u==2?" hour"+(g==1?"":"s"):u==1?"h":""))}if(d<=8&&v>=8){g=m/60;if(v>8){g|=0;m-=60*g}w.push((d>=8?"[m]":"m")+'"m"');if(u==0)b.push((d==8&&v==8||g>=10?"":"0")+g);else b.push(g+(u==2?" minute"+(g==1?"":"s"):u==1?"m":""))}if(d<=16&&v>=16){g=m;if(v>16){g|=0;m-=g}w.push((d>=16?"[s]":"s")+'"s"');if(u==0)b.push((v==16&&d==16||g>=10?"":"0")+g);else b.push(g+(u==2?" second"+(g==1?"":"s"):u==1?"s":""))}if(v>=32){g=Math.round(1e3*m);if(d<32)w.push('.000"ms"');if(u==0)b.push((g>=100?"":g>=10?"0":"00")+g);else b.push(g+(u==2?" millisecond"+(g==1?"":"s"):u==1?"ms":""))}e.w=b.join(u==0?":":" ");e.z=w.join(u==0?'":"':" ");if(u==0)e.w=e.w.replace(/:(\d\d\d)$/,".$1")}}function dw(e,r,t,a){var n=$b(e);var i=n.getUint32(4,true);var s=-1,f=-1,l=-1,o=NaN,c=0,h=new Date(Date.UTC(2001,0,1));var u=t>1?12:8;if(i&2){l=n.getUint32(u,true);u+=4}u+=Kb(i&(t>1?3468:396))*4;if(i&512){s=n.getUint32(u,true);u+=4}u+=Kb(i&(t>1?12288:4096))*4;if(i&16){f=n.getUint32(u,true);u+=4}if(i&32){o=n.getFloat64(u,true);u+=8}if(i&64){h.setTime(h.getTime()+(c=n.getFloat64(u,true))*1e3);u+=8}if(t>1){i=n.getUint32(8,true)>>>16;if(i&255){if(l==-1)l=n.getUint32(u,true);u+=4}}var d;var v=e[t>=4?1:2];switch(v){case 0:return void 0;case 2:d={t:"n",v:o};break;case 3:d={t:"s",v:r.sst[f]};break;case 5:{if(a==null?void 0:a.cellDates)d={t:"d",v:h};else d={t:"n",v:c/86400+35430,z:q[14]}}break;case 6:d={t:"b",v:o>0};break;case 7:d={t:"n",v:o};break;case 8:d={t:"e",v:0};break;case 9:{if(s>-1){var p=r.rsst[s];d={t:"s",v:p.v};if(p.l)d.l={Target:p.l}}else throw new Error("Unsupported cell type ".concat(e[Vb](0,4)))}break;default:throw new Error("Unsupported cell type ".concat(e[Vb](0,4)));}if(l>-1)uw(d,v|t<<8,i,r.ofmt[l],r.nfmt[l]);if(v==7)d.v/=86400;return d}function vw(e,r,t){var a=$b(e);var n=a.getUint32(4,true);var i=a.getUint32(8,true);var s=12;var f=-1,l=-1,o=-1,c=NaN,h=NaN,u=0,d=new Date(Date.UTC(2001,0,1)),v=-1,p=-1;if(i&1){c=Yb(e,s);s+=16}if(i&2){h=a.getFloat64(s,true);s+=8}if(i&4){d.setTime(d.getTime()+(u=a.getFloat64(s,true))*1e3);s+=8}if(i&8){l=a.getUint32(s,true);s+=4}if(i&16){f=a.getUint32(s,true);s+=4}s+=Kb(i&480)*4;if(i&512){p=a.getUint32(s,true);s+=4}s+=Kb(i&1024)*4;if(i&2048){v=a.getUint32(s,true);s+=4}var m;var g=e[1];switch(g){case 0:m={t:"z"};break;case 2:m={t:"n",v:c};break;case 3:m={t:"s",v:r.sst[l]};break;case 5:{if(t==null?void 0:t.cellDates)m={t:"d",v:d};else m={t:"n",v:u/86400+35430,z:q[14]}}break;case 6:m={t:"b",v:h>0};break;case 7:m={t:"n",v:h};break;case 8:m={t:"e",v:0};break;case 9:{if(f>-1){var b=r.rsst[f];m={t:"s",v:b.v};if(b.l)m.l={Target:b.l}}else throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(i&31," : ").concat(e[Vb](0,4)))}break;case 10:m={t:"n",v:c};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(i&31," : ").concat(e[Vb](0,4)));}s+=Kb(i&4096)*4;if(i&516096){if(o==-1)o=a.getUint32(s,true);s+=4}if(i&524288){var w=a.getUint32(s,true);s+=4;if(r.cmnt[w])m.c=_w(r.cmnt[w])}if(o>-1)uw(m,g|5<<8,i>>13,r.ofmt[o],r.nfmt[o]);if(g==7)m.v/=86400;return m}function pw(e,r){var t=new Uint8Array(32),a=$b(t),n=12,i=0;t[0]=5;switch(e.t){case"n":if(e.z&&Le(e.z)){t[1]=5;a.setFloat64(n,(vr(e.v+1462).getTime()-Date.UTC(2001,0,1))/1e3,true);i|=4;n+=8;break}else{t[1]=2;Zb(t,n,e.v);i|=1;n+=16}break;case"b":t[1]=6;a.setFloat64(n,e.v?1:0,true);i|=2;n+=8;break;case"s":{var s=e.v==null?"":String(e.v);if(e.l){var f=r.rsst.findIndex(function(r){var t;return r.v==s&&r.l==((t=e.l)==null?void 0:t.Target)});if(f==-1)r.rsst[f=r.rsst.length]={v:s,l:e.l.Target};t[1]=9;a.setUint32(n,f,true);i|=16;n+=4}else{var l=r.sst.indexOf(s);if(l==-1)r.sst[l=r.sst.length]=s;t[1]=3;a.setUint32(n,l,true);i|=8;n+=4}}break;case"d":t[1]=5;a.setFloat64(n,(e.v.getTime()-Date.UTC(2001,0,1))/1e3,true);i|=4;n+=8;break;case"z":t[1]=0;break;default:throw"unsupported cell type "+e.t;}if(e.c){r.cmnt.push(Sw(e.c));a.setUint32(n,r.cmnt.length-1,true);i|=524288;n+=4}a.setUint32(8,i,true);return t[Vb](0,n)}function mw(e,r){var t=new Uint8Array(32),a=$b(t),n=12,i=0,s="";t[0]=4;switch(e.t){case"n":break;case"b":break;case"s":{s=e.v==null?"":String(e.v);if(e.l){var f=r.rsst.findIndex(function(r){var t;return r.v==s&&r.l==((t=e.l)==null?void 0:t.Target)});if(f==-1)r.rsst[f=r.rsst.length]={v:s,l:e.l.Target};t[1]=9;a.setUint32(n,f,true);i|=512;n+=4}else{}}break;case"d":break;case"e":break;case"z":break;default:throw"unsupported cell type "+e.t;}if(e.c){a.setUint32(n,r.cmnt.length-1,true);i|=4096;n+=4}switch(e.t){case"n":t[1]=2;a.setFloat64(n,e.v,true);i|=32;n+=8;break;case"b":t[1]=6;a.setFloat64(n,e.v?1:0,true);i|=32;n+=8;break;case"s":{s=e.v==null?"":String(e.v);if(e.l){}else{var l=r.sst.indexOf(s);if(l==-1)r.sst[l=r.sst.length]=s;t[1]=3;a.setUint32(n,l,true);i|=16;n+=4}}break;case"d":t[1]=5;a.setFloat64(n,(e.v.getTime()-Date.UTC(2001,0,1))/1e3,true);i|=64;n+=8;break;case"z":t[1]=0;break;default:throw"unsupported cell type "+e.t;}a.setUint32(8,i,true);return t[Vb](0,n)}function gw(e,r,t){switch(e[0]){case 0:;case 1:;case 2:;case 3:;case 4:return dw(e,r,e[0],t);case 5:return vw(e,r,t);default:throw new Error("Unsupported payload version ".concat(e[0]));}}function bw(e){var r=aw(e);return rw(r[1][0].data)}function ww(e){return nw([[],[{type:0,data:qb(e)}]])}function kw(e,r){var t;var a=((t=e.messages[0].meta[5])==null?void 0:t[0])?Qb(e.messages[0].meta[5][0].data):[];var n=a.indexOf(r);if(n==-1){a.push(r);e.messages[0].meta[5]=[{type:2,data:ew(a)}]}}function Aw(e,r){var t;var a=((t=e.messages[0].meta[5])==null?void 0:t[0])?Qb(e.messages[0].meta[5][0].data):[];e.messages[0].meta[5]=[{type:2,data:ew(a.filter(function(e){return e!=r}))}]}function Tw(e,r){var t=aw(r.data);var a=rw(t[1][0].data);var n=t[3];var i=[];(n||[]).forEach(function(r){var t,n;var s=aw(r.data);if(!s[1])return;var f=rw(s[1][0].data)>>>0;switch(a){case 1:i[f]=Xb(s[3][0].data);break;case 8:{var l=e[bw(s[9][0].data)][0];var o=aw(l.data);var c=e[bw(o[1][0].data)][0];var h=rw(c.meta[1][0].data);if(h!=2001)throw new Error("2000 unexpected reference to ".concat(h));var u=aw(c.data);var d={v:u[3].map(function(e){return Xb(e.data)}).join("")};i[f]=d;e:if((t=u==null?void 0:u[11])==null?void 0:t[0]){var v=(n=aw(u[11][0].data))==null?void 0:n[1];if(!v)break e;v.forEach(function(r){var t,a,n;var i=aw(r.data);if((t=i[2])==null?void 0:t[0]){var s=e[bw((a=i[2])==null?void 0:a[0].data)][0];var f=rw(s.meta[1][0].data);switch(f){case 2032:var l=aw(s.data);if(((n=l==null?void 0:l[2])==null?void 0:n[0])&&!d.l)d.l=Xb(l[2][0].data);break;case 2039:break;default:console.log("unrecognized ObjectAttribute type ".concat(f));}}})}}break;case 2:i[f]=aw(s[6][0].data);break;case 3:i[f]=aw(s[5][0].data);break;case 10:{var p=e[bw(s[10][0].data)][0];i[f]=Cw(e,p.data)}break;default:throw a;}});return i}function yw(e,r){var t,a,n,i,s,f,l,o,c,h,u,d,v,p;var m=aw(e);var g=rw(m[1][0].data)>>>0;var b=rw(m[2][0].data)>>>0;var w=((a=(t=m[8])==null?void 0:t[0])==null?void 0:a.data)&&rw(m[8][0].data)>0||false;var k,A;if(((i=(n=m[7])==null?void 0:n[0])==null?void 0:i.data)&&r!=0){k=(f=(s=m[7])==null?void 0:s[0])==null?void 0:f.data;A=(o=(l=m[6])==null?void 0:l[0])==null?void 0:o.data}else if(((h=(c=m[4])==null?void 0:c[0])==null?void 0:h.data)&&r!=1){k=(d=(u=m[4])==null?void 0:u[0])==null?void 0:d.data;A=(p=(v=m[3])==null?void 0:v[0])==null?void 0:p.data}else throw"NUMBERS Tile missing ".concat(r," cell storage");var T=w?4:1;var y=$b(k);var E=[];for(var C=0;C=1)S[E[E.length-1][0]]=A[Vb](E[E.length-1][1]*T);return{R:g,cells:S}}function Ew(e,r){var t;var a=aw(r.data);var n=-1;if((t=a==null?void 0:a[7])==null?void 0:t[0]){if(rw(a[7][0].data)>>>0)n=1;else n=0}var i=iw(a[5],function(e){return yw(e,n)});return{nrows:rw(a[4][0].data)>>>0,data:i.reduce(function(e,r){if(!e[r.R])e[r.R]=[];r.cells.forEach(function(t,a){if(e[r.R][a])throw new Error("Duplicate cell r=".concat(r.R," c=").concat(a));e[r.R][a]=t});return e},[])}}function Cw(e,r){var t,a,n,i,s,f,l,o,c,h;var u={t:"",a:""};var d=aw(r);if((a=(t=d==null?void 0:d[1])==null?void 0:t[0])==null?void 0:a.data)u.t=Xb((i=(n=d==null?void 0:d[1])==null?void 0:n[0])==null?void 0:i.data)||"";if((f=(s=d==null?void 0:d[3])==null?void 0:s[0])==null?void 0:f.data){var v=e[bw((o=(l=d==null?void 0:d[3])==null?void 0:l[0])==null?void 0:o.data)][0];var p=aw(v.data);if((h=(c=p[1])==null?void 0:c[0])==null?void 0:h.data)u.a=Xb(p[1][0].data)}if(d==null?void 0:d[4]){u.replies=[];d[4].forEach(function(r){var t=e[bw(r.data)][0];u.replies.push(Cw(e,t.data))})}return u}function _w(e){var r=[];r.push({t:e.t||"",a:e.a,T:e.replies&&e.replies.length>0});if(e.replies)e.replies.forEach(function(e){r.push({t:e.t||"",a:e.a,T:true})});return r}function Sw(e){var r={a:"",t:"",replies:[]};for(var t=0;t>>0)-1;if(w.e.r<0)throw new Error("Invalid row varint ".concat(b[6][0].data));w.e.c=(rw(b[7][0].data)>>>0)-1;if(w.e.c<0)throw new Error("Invalid col varint ".concat(b[7][0].data));t["!ref"]=Ja(w);var k=t["!data"]!=null,A=t;var T=aw(b[4][0].data);var y=hw();if((n=T[4])==null?void 0:n[0])y.sst=Tw(e,e[bw(T[4][0].data)][0]);if((i=T[6])==null?void 0:i[0])y.fmla=Tw(e,e[bw(T[6][0].data)][0]);if((s=T[11])==null?void 0:s[0])y.ofmt=Tw(e,e[bw(T[11][0].data)][0]);if((f=T[12])==null?void 0:f[0])y.ferr=Tw(e,e[bw(T[12][0].data)][0]);if((l=T[17])==null?void 0:l[0])y.rsst=Tw(e,e[bw(T[17][0].data)][0]);if((o=T[19])==null?void 0:o[0])y.cmnt=Tw(e,e[bw(T[19][0].data)][0]);if((c=T[22])==null?void 0:c[0])y.nfmt=Tw(e,e[bw(T[22][0].data)][0]);var E=aw(T[3][0].data);var C=0;if(!((h=T[9])==null?void 0:h[0]))throw"NUMBERS file missing row tree";var _=aw(T[9][0].data)[1].map(function(e){return aw(e.data)});_.forEach(function(r){C=rw(r[1][0].data);var n=rw(r[2][0].data);var i=E[1][n];if(!i)throw"NUMBERS missing tile "+n;var s=aw(i.data);var f=e[bw(s[2][0].data)][0];var l=rw(f.meta[1][0].data);if(l!=6002)throw new Error("6001 unexpected reference to ".concat(l));var o=Ew(e,f);o.data.forEach(function(e,r){e.forEach(function(e,n){var i=gw(e,y,a);if(i){if(k){if(!A["!data"][C+r])A["!data"][C+r]=[];A["!data"][C+r][n]=i}else{t[$a(n)+Wa(C+r)]=i}}})});C+=o.nrows});if((u=T[13])==null?void 0:u[0]){var S=e[bw(T[13][0].data)][0];var x=rw(S.meta[1][0].data);if(x!=6144)throw new Error("Expected merge type 6144, found ".concat(x));t["!merges"]=(d=aw(S.data))==null?void 0:d[1].map(function(e){var r=aw(e.data);var t=$b(aw(r[1][0].data)[1][0].data),a=$b(aw(r[2][0].data)[1][0].data);return{s:{r:t.getUint16(0,true),c:t.getUint16(2,true)},e:{r:t.getUint16(0,true)+a.getUint16(0,true)-1,c:t.getUint16(2,true)+a.getUint16(2,true)-1}}})}if(!((v=t["!merges"])==null?void 0:v.length)&&((p=b[47])==null?void 0:p[0])){var O=aw(b[47][0].data);if((m=O[2])==null?void 0:m[0]){var I=aw(O[2][0].data);if((g=I[3])==null?void 0:g[0]){t["!merges"]=iw(I[3],function(e){var r,t,a,n,i;var s=aw(e);var f=aw(s[2][0].data);var l=aw(f[1][0].data);if(!((r=l[1])==null?void 0:r[0]))return;var o=aw(l[1][0].data);var c=rw(o[1][0].data);if(c!=67)return;var h=aw(o[40][0].data);if(!((t=h[3])==null?void 0:t[0])||!((a=h[4])==null?void 0:a[0]))return;var u=aw(h[3][0].data);var d=aw(h[4][0].data);var v=rw(u[1][0].data);var p=((n=u[2])==null?void 0:n[0])?rw(u[2][0].data):v;var m=rw(d[1][0].data);var g=((i=d[2])==null?void 0:i[0])?rw(d[2][0].data):m;return{s:{r:m,c:v},e:{r:g,c:p}}}).filter(function(e){return e!=null})}}}}function Ow(e,r,t){var a=aw(r.data);var n={"!ref":"A1"};if(t==null?void 0:t.dense)n["!data"]=[];var i=e[bw(a[2][0].data)];var s=rw(i[0].meta[1][0].data);if(s!=6001)throw new Error("6000 unexpected reference to ".concat(s));xw(e,i[0],n,t);return n}function Iw(e,r,t){var a;var n=aw(r.data);var i={name:((a=n[1])==null?void 0:a[0])?Xb(n[1][0].data):"",sheets:[]};var s=iw(n[2],bw);s.forEach(function(r){e[r].forEach(function(r){var a=rw(r.meta[1][0].data);if(a==6e3)i.sheets.push(Ow(e,r,t))})});return i}function Rw(e,r,t){var a;var n=$k();n.Workbook={WBProps:{date1904:true}};var i=aw(r.data);if((a=i[2])==null?void 0:a[0])throw new Error("Keynote presentations are not supported");var s=iw(i[1],bw);s.forEach(function(r){e[r].forEach(function(r){var a=rw(r.meta[1][0].data);if(a==2){var i=Iw(e,r,t);i.sheets.forEach(function(e,r){Xk(n,e,r==0?i.name:i.name+"_"+r,true)})}})});if(n.SheetNames.length==0)throw new Error("Empty NUMBERS file");n.bookType="numbers";return n}function Nw(e,r){var t,a,n,i,s,f,l;var o={},c=[];e.FullPaths.forEach(function(e){if(e.match(/\.iwpv2/))throw new Error("Unsupported password protection")});e.FileIndex.forEach(function(e){if(!e.name.match(/\.iwa$/))return;if(e.content[0]!=0)return;var r;try{r=ow(e.content)}catch(t){return console.log("?? "+e.content.length+" "+(t.message||t))}var a;try{a=sw(r)}catch(t){return console.log("## "+(t.message||t))}a.forEach(function(e){o[e.id]=e.messages;c.push(e.id)})});if(!c.length)throw new Error("File has no messages");if(((n=(a=(t=o==null?void 0:o[1])==null?void 0:t[0].meta)==null?void 0:a[1])==null?void 0:n[0].data)&&rw(o[1][0].meta[1][0].data)==1e4)throw new Error("Pages documents are not supported");var h=((l=(f=(s=(i=o==null?void 0:o[1])==null?void 0:i[0])==null?void 0:s.meta)==null?void 0:f[1])==null?void 0:l[0].data)&&rw(o[1][0].meta[1][0].data)==1&&o[1][0];if(!h)c.forEach(function(e){o[e].forEach(function(e){var r=rw(e.meta[1][0].data)>>>0;if(r==1){if(!h)h=e;else throw new Error("Document has multiple roots")}})});if(!h)throw new Error("Cannot find Document root");return Rw(o,h,r)}function Fw(e,r,t){var a,n,i;var s=[[],[{type:0,data:qb(0)}],[{type:0,data:qb(0)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},function(){return 255}))}],[{type:0,data:qb(5)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},function(){return 255}))}],[{type:0,data:qb(1)}]];if(!((a=s[6])==null?void 0:a[0])||!((n=s[7])==null?void 0:n[0]))throw"Mutation only works on post-BNC storages!";var f=0;if(s[7][0].data.length<2*e.length){var l=new Uint8Array(2*e.length);l.set(s[7][0].data);s[7][0].data=l}if(s[4][0].data.length<2*e.length){var o=new Uint8Array(2*e.length);o.set(s[4][0].data);s[4][0].data=o}var c=$b(s[7][0].data),h=0,u=[];var d=$b(s[4][0].data),v=0,p=[];var m=t?4:1;for(var g=0;g1)throw new Error("Template NUMBERS file must have exactly one sheet");e.SheetNames.forEach(function(r,s){if(s>=1){Gw(t,a,s+1);n=zw(t,a,1);i=iw(aw(n.messages[0].data)[1],bw)}jw(t,a,e.Sheets[r],r,s,i[s])});return t}function Ww(e,r,t,a){var n=Qe.find(e,r[t].location);if(!n)throw"Could not find ".concat(r[t].location," in Numbers template");var i=sw(ow(n.content));var s=i.find(function(e){return e.id==t});a(s,i);n.content=cw(fw(i));n.size=n.content.length}function zw(e,r,t){var a=Qe.find(e,r[t].location);if(!a)throw"Could not find ".concat(r[t].location," in Numbers template");var n=sw(ow(a.content));var i=n.find(function(e){return e.id==t});return i}function Hw(e,r,t){e[3].push({type:2,data:nw([[],[{type:0,data:qb(r)}],[{type:2,data:Gb(t.replace(/-[\s\S]*$/,""))}],[{type:2,data:Gb(t)}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:qb(0)}],[],[{type:0,data:qb(0)}]])});e[1]=[{type:0,data:qb(Math.max(r+1,rw(e[1][0].data)))}]}function Vw(e,r,t,a,n,i){if(!i)i=Pw({deps:[],location:"",type:r},n);var s="".concat(a,"-").concat(i,".iwa");n[i].location="Root Entry"+s;Qe.utils.cfb_add(e,s,cw(fw([{id:i,messages:[Dw(r,nw(t))]}])));var f=s.replace(/^[\/]/,"").replace(/^Index\//,"").replace(/\.iwa$/,"");Ww(e,n,2,function(e){var r=aw(e.messages[0].data);Hw(r,i||0,f);e.messages[0].data=nw(r)});return i}function $w(e,r,t,a){var n=r[t].location.replace(/^Root Entry\//,"").replace(/^Index\//,"").replace(/\.iwa$/,"");var i=e[3].findIndex(function(e){var r,t;var a=aw(e.data);if((r=a[3])==null?void 0:r[0])return Xb(a[3][0].data)==n;if(((t=a[2])==null?void 0:t[0])&&Xb(a[2][0].data)==n)return true;return false});var s=aw(e[3][i].data);if(!s[6])s[6]=[];(Array.isArray(a)?a:[a]).forEach(function(e){s[6].push({type:2,data:nw([[],[{type:0,data:qb(e)}]])})});e[3][i].data=nw(s)}function Xw(e,r,t,a){var n=r[t].location.replace(/^Root Entry\//,"").replace(/^Index\//,"").replace(/\.iwa$/,"");var i=e[3].findIndex(function(e){var r,t;var a=aw(e.data);if((r=a[3])==null?void 0:r[0])return Xb(a[3][0].data)==n;if(((t=a[2])==null?void 0:t[0])&&Xb(a[2][0].data)==n)return true;return false});var s=aw(e[3][i].data);if(!s[6])s[6]=[];s[6]=s[6].filter(function(e){return rw(aw(e.data)[1][0].data)!=a});e[3][i].data=nw(s)}function Gw(e,r,t){var a=-1,n=-1;var i={};Ww(e,r,1,function(t,s){var f=aw(t.messages[0].data);
+a=bw(aw(t.messages[0].data)[1][0].data);n=Pw({deps:[1],location:r[a].location,type:2},r);i[a]=n;kw(t,n);f[1].push({type:2,data:ww(n)});var l=zw(e,r,a);l.id=n;if(r[1].location==r[n].location)s.push(l);else Ww(e,r,n,function(e,r){return r.push(l)});t.messages[0].data=nw(f)});var s=-1;Ww(e,r,n,function(t,a){var f=aw(t.messages[0].data);for(var l=3;l<=69;++l)delete f[l];var o=iw(f[2],bw);o.forEach(function(e){return Aw(t,e)});s=Pw({deps:[n],location:r[o[0]].location,type:r[o[0]].type},r);kw(t,s);i[o[0]]=s;f[2]=[{type:2,data:ww(s)}];var c=zw(e,r,o[0]);c.id=s;if(r[o[0]].location==r[n].location)a.push(c);else{Ww(e,r,2,function(e){var t=aw(e.messages[0].data);$w(t,r,n,s);e.messages[0].data=nw(t)});Ww(e,r,s,function(e,r){return r.push(c)})}t.messages[0].data=nw(f)});var f=-1;Ww(e,r,s,function(t,a){var n=aw(t.messages[0].data);var l=aw(n[1][0].data);for(var o=3;o<=69;++o)delete l[o];var c=bw(l[2][0].data);l[2][0].data=ww(i[c]);n[1][0].data=nw(l);var h=bw(n[2][0].data);Aw(t,h);f=Pw({deps:[s],location:r[h].location,type:r[h].type},r);kw(t,f);i[h]=f;n[2][0].data=ww(f);var u=zw(e,r,h);u.id=f;if(r[s].location==r[f].location)a.push(u);else Ww(e,r,f,function(e,r){return r.push(u)});t.messages[0].data=nw(n)});Ww(e,r,f,function(a,n){var s,l;var o=aw(a.messages[0].data);var c=Xb(o[1][0].data),h=c.replace(/-[A-Z0-9]*/,"-".concat(("0000"+t.toString(16)).slice(-4)));o[1][0].data=Gb(h);[12,13,29,31,32,33,39,44,47,81,82,84].forEach(function(e){return delete o[e]});if(o[45]){var u=aw(o[45][0].data);var d=bw(u[1][0].data);Aw(a,d);delete o[45]}if(o[70]){var v=aw(o[70][0].data);(s=v[2])==null?void 0:s.forEach(function(e){var r=aw(e.data);[2,3].map(function(e){return r[e][0]}).forEach(function(e){var r=aw(e.data);if(!r[8])return;var t=bw(r[8][0].data);Aw(a,t)})});delete o[70]}[46,30,34,35,36,38,48,49,60,61,62,63,64,71,72,73,74,75,85,86,87,88,89].forEach(function(e){if(!o[e])return;var r=bw(o[e][0].data);delete o[e];Aw(a,r)});var p=aw(o[4][0].data);{[2,4,5,6,11,12,13,15,16,17,18,19,20,21,22].forEach(function(t){var s;if(!((s=p[t])==null?void 0:s[0]))return;var l=bw(p[t][0].data);var o=Pw({deps:[f],location:r[l].location,type:r[l].type},r);Aw(a,l);kw(a,o);i[l]=o;var c=zw(e,r,l);c.id=o;if(r[l].location==r[f].location)n.push(c);else{r[o].location=r[l].location.replace(l.toString(),o.toString());if(r[o].location==r[l].location)r[o].location=r[o].location.replace(/\.iwa/,"-".concat(o,".iwa"));Qe.utils.cfb_add(e,r[o].location,cw(fw([c])));var h=r[o].location.replace(/^Root Entry\//,"").replace(/^Index\//,"").replace(/\.iwa$/,"");Ww(e,r,2,function(e){var t=aw(e.messages[0].data);Hw(t,o,h);$w(t,r,f,o);e.messages[0].data=nw(t)})}p[t][0].data=ww(o)});var m=aw(p[1][0].data);{(l=m[2])==null?void 0:l.forEach(function(t){var s=bw(t.data);var l=Pw({deps:[f],location:r[s].location,type:r[s].type},r);Aw(a,s);kw(a,l);i[s]=l;var o=zw(e,r,s);o.id=l;if(r[s].location==r[f].location){n.push(o)}else{r[l].location=r[s].location.replace(s.toString(),l.toString());if(r[l].location==r[s].location)r[l].location=r[l].location.replace(/\.iwa/,"-".concat(l,".iwa"));Qe.utils.cfb_add(e,r[l].location,cw(fw([o])));var c=r[l].location.replace(/^Root Entry\//,"").replace(/^Index\//,"").replace(/\.iwa$/,"");Ww(e,r,2,function(e){var t=aw(e.messages[0].data);Hw(t,l,c);$w(t,r,f,l);e.messages[0].data=nw(t)})}t.data=ww(l)})}p[1][0].data=nw(m);var g=aw(p[3][0].data);{g[1].forEach(function(t){var n=aw(t.data);var s=bw(n[2][0].data);var l=i[s];if(!i[s]){l=Pw({deps:[f],location:"",type:r[s].type},r);r[l].location="Root Entry/Index/Tables/Tile-".concat(l,".iwa");i[s]=l;var o=zw(e,r,s);o.id=l;Aw(a,s);kw(a,l);Qe.utils.cfb_add(e,"/Index/Tables/Tile-".concat(l,".iwa"),cw(fw([o])));Ww(e,r,2,function(e){var t=aw(e.messages[0].data);t[3].push({type:2,data:nw([[],[{type:0,data:qb(l)}],[{type:2,data:Gb("Tables/Tile")}],[{type:2,data:Gb("Tables/Tile-".concat(l))}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:qb(0)}],[],[{type:0,data:qb(0)}]])});t[1]=[{type:0,data:qb(Math.max(l+1,rw(t[1][0].data)))}];$w(t,r,f,l);e.messages[0].data=nw(t)})}n[2][0].data=ww(l);t.data=nw(n)})}p[3][0].data=nw(g)}o[4][0].data=nw(p);a.messages[0].data=nw(o)})}function jw(e,r,t,a,n,i){var s=[];Ww(e,r,i,function(e){var r=aw(e.messages[0].data);{r[1]=[{type:2,data:Gb(a)}];s=iw(r[2],bw)}e.messages[0].data=nw(r)});var f=zw(e,r,s[0]);var l=bw(aw(f.messages[0].data)[2][0].data);Ww(e,r,l,function(a,n){return Yw(e,r,t,a,n,l)})}var Kw=true;function Yw(e,r,t,a,n,i){if(!t["!ref"])throw new Error("Cannot export empty sheet to NUMBERS");var s=Za(t["!ref"]);s.s.r=s.s.c=0;var f=false;if(s.e.c>999){f=true;s.e.c=999}if(s.e.r>999999){f=true;s.e.r=999999}if(f)console.error("Truncating to ".concat(Ja(s)));var l=[];if(t["!data"])l=t["!data"];else{var o=[];for(var c=0;c<=s.e.c;++c)o[c]=$a(c);for(var h=0;h<=s.e.r;++h){l[h]=[];var u=""+(h+1);for(c=0;c<=s.e.c;++c){var d=t[o[c]+u];if(!d)continue;l[h][c]=d}}}var v={cmnt:[{a:"~54ee77S~",t:"... the people who are crazy enough to think they can change the world, are the ones who do."}],ferr:[],fmla:[],nfmt:[],ofmt:[],rsst:[{v:"~54ee77S~",l:"https://sheetjs.com/"}],sst:["~Sh33tJ5~"]};var p=aw(a.messages[0].data);{p[6][0].data=qb(s.e.r+1);p[7][0].data=qb(s.e.c+1);delete p[46];var m=aw(p[4][0].data);{var g=bw(aw(m[1][0].data)[2][0].data);Ww(e,r,g,function(e,r){var t;var a=aw(e.messages[0].data);if((t=a==null?void 0:a[2])==null?void 0:t[0])for(var n=0;n1){var P=bw(m[19][0].data);var L={},M=0;Ww(e,r,P,function(t){var a=aw(t.messages[0].data);{a[3]=[];v.cmnt.forEach(function(n,i){if(i==0)return;var s=[];if(n.replies)n.replies.forEach(function(t){if(!L[t.a||""])L[t.a||""]=Vw(e,212,[[],[{type:2,data:Gb(t.a||"")}],[{type:2,data:Uw(++M)}],[],[{type:0,data:qb(0)}]],"/Index/Tables/DataList",r);var a=L[t.a||""];var n=Vw(e,3056,[[],[{type:2,data:Gb(t.t||"")}],[{type:2,data:nw([[],[{type:1,data:new Uint8Array([0,0,0,128,116,109,182,65])}]])}],[{type:2,data:ww(a)}]],"/Index/Tables/DataList",r);Ww(e,r,n,function(e){return kw(e,a)});s.push(n);Ww(e,r,2,function(e){var t=aw(e.messages[0].data);$w(t,r,n,a);e.messages[0].data=nw(t)})});if(!L[n.a||""])L[n.a||""]=Vw(e,212,[[],[{type:2,data:Gb(n.a||"")}],[{type:2,data:Uw(++M)}],[],[{type:0,data:qb(0)}]],"/Index/Tables/DataList",r);var f=L[n.a||""];var l=Vw(e,3056,[[],[{type:2,data:Gb(n.t||"")}],[{type:2,data:nw([[],[{type:1,data:new Uint8Array([0,0,0,128,116,109,182,65])}]])}],[{type:2,data:ww(f)}],s.map(function(e){return{type:2,data:ww(e)}}),[{type:2,data:nw([[],[{type:0,data:qb(i)}],[{type:0,data:qb(0)}]])}]],"/Index/Tables/DataList",r);Ww(e,r,l,function(e){kw(e,f);s.forEach(function(r){return kw(e,r)})});a[3].push({type:2,data:nw([[],[{type:0,data:qb(i)}],[{type:0,data:qb(1)}],[],[],[],[],[],[],[],[{type:2,data:ww(l)}]])});kw(t,l);Ww(e,r,2,function(e){var t=aw(e.messages[0].data);$w(t,r,P,l);$w(t,r,l,f);if(s.length)$w(t,r,l,s);e.messages[0].data=nw(t)})})}a[2][0].data=qb(v.cmnt.length+1);t.messages[0].data=nw(a)})}}p[4][0].data=nw(m)}a.messages[0].data=nw(p)}function Zw(e){return function r(t){for(var a=0;a!=e.length;++a){var n=e[a];if(t[n[0]]===undefined)t[n[0]]=n[1];if(n[2]==="n")t[n[0]]=Number(t[n[0]])}}}function Jw(e){Zw([["cellNF",false],["cellHTML",true],["cellFormula",true],["cellStyles",false],["cellText",true],["cellDates",false],["sheetStubs",false],["sheetRows",0,"n"],["bookDeps",false],["bookSheets",false],["bookProps",false],["bookFiles",false],["bookVBA",false],["password",""],["WTF",false]])(e)}function qw(e){Zw([["cellDates",false],["bookSST",false],["bookType","xlsx"],["compression",false],["WTF",false]])(e)}function Qw(e){if(bi.WS.indexOf(e)>-1)return"sheet";if(bi.CS&&e==bi.CS)return"chart";if(bi.DS&&e==bi.DS)return"dialog";if(bi.MS&&e==bi.MS)return"macro";return e&&e.length?e:"sheet"}function ek(e,r){if(!e)return 0;try{e=r.map(function a(r){if(!r.id)r.id=r.strRelID;return[r.name,e["!id"][r.id].Target,Qw(e["!id"][r.id].Type)]})}catch(t){return null}return!e||e.length===0?null:e}function rk(e,r,t,a,n,i,s,f){if(!e||!e["!legdrawel"])return;var l=tt(e["!legdrawel"].Target,a);var o=Zr(t,l,true);if(o)Rh(It(o),e,f||[])}function tk(e,r,t,a,n,i,s,f,l,o,c,h){try{i[a]=ki(Zr(e,t,true),r);var u=Yr(e,r);var d;switch(f){case"sheet":d=tg(u,r,n,l,i[a],o,c,h);break;case"chart":d=ag(u,r,n,l,i[a],o,c,h);if(!d||!d["!drawel"])break;var v=tt(d["!drawel"].Target,r);var p=wi(v);var m=Ih(Zr(e,v,true),ki(Zr(e,p,true),v));var g=tt(m,v);var b=wi(g);d=km(Zr(e,g,true),g,l,ki(Zr(e,b,true),g),o,d);break;case"macro":d=ng(u,r,n,l,i[a],o,c,h);break;case"dialog":d=ig(u,r,n,l,i[a],o,c,h);break;default:throw new Error("Unrecognized sheet type "+f);}s[a]=d;var w=[],k=[];if(i&&i[a])ir(i[a]).forEach(function(t){var n="";if(i[a][t].Type==bi.CMNT){n=tt(i[a][t].Target,r);w=lg(Yr(e,n,true),n,l);if(!w||!w.length)return;Dh(d,w,false)}if(i[a][t].Type==bi.TCMNT){n=tt(i[a][t].Target,r);k=k.concat(Mh(Yr(e,n,true),l))}});if(k&&k.length)Dh(d,k,true,l.people||[]);rk(d,f,e,r,n,l,o,w)}catch(A){if(l.WTF)throw A}}function ak(e){return e.charAt(0)=="/"?e.slice(1):e}function nk(e,r){$e();r=r||{};Jw(r);if(jr(e,"META-INF/manifest.xml"))return Lb(e,r);if(jr(e,"objectdata.xml"))return Lb(e,r);if(jr(e,"Index/Document.iwa")){if(typeof Uint8Array=="undefined")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof Nw!="undefined"){if(e.FileIndex)return Nw(e,r);var t=Qe.utils.cfb_new();qr(e).forEach(function(r){Qr(t,r,Jr(e,r))});return Nw(t,r)}throw new Error("Unsupported NUMBERS file")}if(!jr(e,"[Content_Types].xml")){if(jr(e,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(jr(e,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");var a=Qe.find(e,"Index.zip");if(a){r=Ar(r);delete r.type;if(typeof a.content=="string")r.type="binary";if(typeof Bun!=="undefined"&&Buffer.isBuffer(a.content))return mk(new Uint8Array(a.content),r);return mk(a.content,r)}throw new Error("Unsupported ZIP file")}var n=qr(e);var i=mi(Zr(e,"[Content_Types].xml"));var s=false;var f,l;if(i.workbooks.length===0){l="xl/workbook.xml";if(Yr(e,l,true))i.workbooks.push(l)}if(i.workbooks.length===0){l="xl/workbook.bin";if(!Yr(e,l,true))throw new Error("Could not find workbook");i.workbooks.push(l);s=true}if(i.workbooks[0].slice(-3)=="bin")s=true;var o={};var c={};if(!r.bookSheets&&!r.bookProps){mv=[];if(i.sst)try{mv=fg(Yr(e,ak(i.sst)),i.sst,r)}catch(h){if(r.WTF)throw h}if(r.cellStyles&&i.themes.length)o=nh(Zr(e,i.themes[0].replace(/^\//,""),true)||"",r);if(i.style)c=sg(Yr(e,ak(i.style)),i.style,o,r)}i.links.map(function(t){try{var a=ki(Zr(e,wi(ak(t))),t);return cg(Yr(e,ak(t)),a,t,r)}catch(n){}});var u=rg(Yr(e,ak(i.workbooks[0])),i.workbooks[0],r);var d={},v="";if(i.coreprops.length){v=Yr(e,ak(i.coreprops[0]),true);if(v)d=Ri(v);if(i.extprops.length!==0){v=Yr(e,ak(i.extprops[0]),true);if(v)Mi(v,d,r)}}var p={};if(!r.bookSheets||r.bookProps){if(i.custprops.length!==0){v=Zr(e,ak(i.custprops[0]),true);if(v)p=Wi(v,r)}}var m={};if(r.bookSheets||r.bookProps){if(u.Sheets)f=u.Sheets.map(function N(e){return e.name});else if(d.Worksheets&&d.SheetNames.length>0)f=d.SheetNames;if(r.bookProps){m.Props=d;m.Custprops=p}if(r.bookSheets&&typeof f!=="undefined")m.SheetNames=f;if(r.bookSheets?m.SheetNames:r.bookProps)return m}f={};var g={};if(r.bookDeps&&i.calcchain)g=og(Yr(e,ak(i.calcchain)),i.calcchain,r);var b=0;var w={};var k,A;{var T=u.Sheets;d.Worksheets=T.length;d.SheetNames=[];for(var y=0;y!=T.length;++y){d.SheetNames[y]=T[y].name}}var E=s?"bin":"xml";var C=i.workbooks[0].lastIndexOf("/");var _=(i.workbooks[0].slice(0,C+1)+"_rels/"+i.workbooks[0].slice(C+1)+".rels").replace(/^\//,"");if(!jr(e,_))_="xl/_rels/workbook."+E+".rels";var S=ki(Zr(e,_,true),_.replace(/_rels.*/,"s5s"));if((i.metadata||[]).length>=1){r.xlmeta=hg(Yr(e,ak(i.metadata[0])),i.metadata[0],r)}if((i.people||[]).length>=1){r.people=Bh(Yr(e,ak(i.people[0])),r)}if(S)S=ek(S,u.Sheets);var x=Yr(e,"xl/worksheets/sheet.xml",true)?1:0;e:for(b=0;b!=d.Worksheets;++b){var O="sheet";if(S&&S[b]){k="xl/"+S[b][1].replace(/[\/]?xl\//,"");if(!jr(e,k))k=S[b][1];if(!jr(e,k))k=_.replace(/_rels\/[\S\s]*$/,"")+S[b][1];O=S[b][2]}else{k="xl/worksheets/sheet"+(b+1-x)+"."+E;k=k.replace(/sheet0\./,"sheet.")}A=k.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels");if(r&&r.sheets!=null)switch(typeof r.sheets){case"number":if(b!=r.sheets)continue e;break;case"string":if(d.SheetNames[b].toLowerCase()!=r.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(r.sheets)){var I=false;for(var R=0;R!=r.sheets.length;++R){if(typeof r.sheets[R]=="number"&&r.sheets[R]==b)I=1;if(typeof r.sheets[R]=="string"&&r.sheets[R].toLowerCase()==d.SheetNames[b].toLowerCase())I=1}if(!I)continue e};}tk(e,k,A,d.SheetNames[b],b,w,f,O,r,u,o,c)}m={Directory:i,Workbook:u,Props:d,Custprops:p,Deps:g,Sheets:f,SheetNames:d.SheetNames,Strings:mv,Styles:c,Themes:o,SSF:Ar(q)};if(r&&r.bookFiles){if(e.files){m.keys=n;m.files=e.files}else{m.keys=[];m.files={};e.FullPaths.forEach(function(r,t){r=r.replace(/^Root Entry[\/]/,"");m.keys.push(r);m.files[r]=e.FileIndex[t]})}}if(r&&r.bookVBA){if(i.vba.length>0)m.vbaraw=Yr(e,ak(i.vba[0]),true);else if(i.defaults&&i.defaults.bin===jh)m.vbaraw=Yr(e,"xl/vbaProject.bin",true)}m.bookType=s?"xlsb":"xlsx";return m}function ik(e,r){var t=r||{};var a="Workbook",n=Qe.find(e,a);try{a="/!DataSpaces/Version";n=Qe.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);Eo(n.content);a="/!DataSpaces/DataSpaceMap";n=Qe.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var i=_o(n.content);if(i.length!==1||i[0].comps.length!==1||i[0].comps[0].t!==0||i[0].name!=="StrongEncryptionDataSpace"||i[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+a);a="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace";n=Qe.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var s=So(n.content);if(s.length!=1||s[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+a);a="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary";n=Qe.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);Oo(n.content)}catch(f){}a="/EncryptionInfo";n=Qe.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var l=No(n.content);a="/EncryptedPackage";n=Qe.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(l[0]==4&&typeof decrypt_agile!=="undefined")return decrypt_agile(l[1],n.content,t.password||"",t);if(l[0]==2&&typeof decrypt_std76!=="undefined")return decrypt_std76(l[1],n.content,t.password||"",t);throw new Error("File is password-protected")}function sk(e,r){if(e&&!e.SSF){e.SSF=Ar(q)}if(e&&e.SSF){$e();Ve(e.SSF);r.revssf=lr(e.SSF);r.revssf[e.SSF[65535]]=0;r.ssf=e.SSF}r.rels={};r.wbrels={};r.Strings=[];r.Strings.Count=0;r.Strings.Unique=0;if(bv)r.revStrings=new Map;else{r.revStrings={};r.revStrings.foo=[];delete r.revStrings.foo}var t="bin";var a=true;var n=pi();qw(r=r||{});var i=et();var s="",f=0;r.cellXfs=[];Tv(r.cellXfs,{},{revssf:{General:0}});if(!e.Props)e.Props={};s="docProps/core.xml";Qr(i,s,Fi(e.Props,r));n.coreprops.push(s);Ti(r.rels,2,s,bi.CORE_PROPS);s="docProps/app.xml";if(e.Props&&e.Props.SheetNames){}else if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{var l=[];for(var o=0;o0){s="docProps/custom.xml";Qr(i,s,zi(e.Custprops,r));n.custprops.push(s);Ti(r.rels,4,s,bi.CUST_PROPS)}var c=["SheetJ5"];r.tcid=0;for(f=1;f<=e.SheetNames.length;++f){var h={"!id":{}};var u=e.Sheets[e.SheetNames[f-1]];var d=(u||{})["!type"]||"sheet";switch(d){case"chart":;default:s="xl/worksheets/sheet"+f+"."+t;Qr(i,s,bm(f-1,r,e,h));n.sheets.push(s);Ti(r.wbrels,-1,"worksheets/sheet"+f+"."+t,bi.WS[0]);}if(u){var v=u["!comments"];var p=false;var m="";if(v&&v.length>0){var g=false;v.forEach(function(e){e[1].forEach(function(e){if(e.T==true)g=true})});if(g){m="xl/threadedComments/threadedComment"+f+".xml";Qr(i,m,Uh(v,c,r));n.threadedcomments.push(m);Ti(h,-1,"../threadedComments/threadedComment"+f+".xml",bi.TCMNT)}m="xl/comments"+f+"."+t;Qr(i,m,Gh(v,r));n.comments.push(m);Ti(h,-1,"../comments"+f+"."+t,bi.CMNT);p=true}if(u["!legacy"]){if(p)Qr(i,"xl/drawings/vmlDrawing"+f+".vml",Nh(f,u["!comments"]))}delete u["!comments"];delete u["!legacy"]}if(h["!id"].rId1)Qr(i,wi(s),Ai(h))}if(r.Strings!=null&&r.Strings.length>0){s="xl/sharedStrings."+t;Qr(i,s,Ao(r.Strings,r));n.strs.push(s);Ti(r.wbrels,-1,"sharedStrings."+t,bi.SST)}s="xl/workbook."+t;Qr(i,s,eg(e,r));n.workbooks.push(s);Ti(r.rels,1,s,bi.WB);s="xl/theme/theme1.xml";var b=ih(e.Themes,r);Qr(i,s,b);n.themes.push(s);Ti(r.wbrels,-1,"theme/theme1.xml",bi.THEME);s="xl/styles."+t;Qr(i,s,qc(e,r));n.styles.push(s);Ti(r.wbrels,-1,"styles."+t,bi.STY);if(e.vbaraw&&a){s="xl/vbaProject.bin";Qr(i,s,e.vbaraw);n.vba.push(s);Ti(r.wbrels,-1,"vbaProject.bin",bi.VBA)}s="xl/metadata."+t;Qr(i,s,Th());n.metadata.push(s);Ti(r.wbrels,-1,"metadata."+t,bi.XLMETA);if(c.length>1){s="xl/persons/person.xml";Qr(i,s,Wh(c,r));n.people.push(s);Ti(r.wbrels,-1,"persons/person.xml",bi.PEOPLE)}Qr(i,"[Content_Types].xml",gi(n,r));Qr(i,"_rels/.rels",Ai(r.rels));Qr(i,"xl/_rels/workbook."+t+".rels",Ai(r.wbrels));delete r.revssf;delete r.ssf;return i}function fk(e,r){if(e&&!e.SSF){e.SSF=Ar(q)}if(e&&e.SSF){$e();Ve(e.SSF);r.revssf=lr(e.SSF);r.revssf[e.SSF[65535]]=0;r.ssf=e.SSF}r.rels={};r.wbrels={};r.Strings=[];r.Strings.Count=0;r.Strings.Unique=0;if(bv)r.revStrings=new Map;else{r.revStrings={};r.revStrings.foo=[];delete r.revStrings.foo}var t="xml";var a=Zh.indexOf(r.bookType)>-1;var n=pi();qw(r=r||{});var i=et();var s="",f=0;r.cellXfs=[];Tv(r.cellXfs,{},{revssf:{General:0}});if(!e.Props)e.Props={};s="docProps/core.xml";Qr(i,s,Fi(e.Props,r));n.coreprops.push(s);Ti(r.rels,2,s,bi.CORE_PROPS);s="docProps/app.xml";if(e.Props&&e.Props.SheetNames){}else if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{var l=[];for(var o=0;o0){s="docProps/custom.xml";Qr(i,s,zi(e.Custprops,r));n.custprops.push(s);Ti(r.rels,4,s,bi.CUST_PROPS)}var c=["SheetJ5"];r.tcid=0;for(f=1;f<=e.SheetNames.length;++f){var h={"!id":{}};var u=e.Sheets[e.SheetNames[f-1]];var d=(u||{})["!type"]||"sheet";switch(d){case"chart":;default:s="xl/worksheets/sheet"+f+"."+t;Qr(i,s,ep(f-1,r,e,h));n.sheets.push(s);Ti(r.wbrels,-1,"worksheets/sheet"+f+"."+t,bi.WS[0]);}if(u){var v=u["!comments"];var p=false;var m="";if(v&&v.length>0){var g=false;v.forEach(function(e){e[1].forEach(function(e){if(e.T==true)g=true})});if(g){m="xl/threadedComments/threadedComment"+f+".xml";Qr(i,m,Uh(v,c,r));n.threadedcomments.push(m);Ti(h,-1,"../threadedComments/threadedComment"+f+".xml",bi.TCMNT)}m="xl/comments"+f+"."+t;Qr(i,m,Lh(v,r));n.comments.push(m);Ti(h,-1,"../comments"+f+"."+t,bi.CMNT);p=true}if(u["!legacy"]){if(p)Qr(i,"xl/drawings/vmlDrawing"+f+".vml",Nh(f,u["!comments"]))}delete u["!comments"];delete u["!legacy"]}if(h["!id"].rId1)Qr(i,wi(s),Ai(h))}if(r.Strings!=null&&r.Strings.length>0){s="xl/sharedStrings."+t;Qr(i,s,mo(r.Strings,r));n.strs.push(s);Ti(r.wbrels,-1,"sharedStrings."+t,bi.SST)}s="xl/workbook."+t;Qr(i,s,Um(e,r));n.workbooks.push(s);Ti(r.rels,1,s,bi.WB);s="xl/theme/theme1.xml";Qr(i,s,ih(e.Themes,r));n.themes.push(s);Ti(r.wbrels,-1,"theme/theme1.xml",bi.THEME);s="xl/styles."+t;Qr(i,s,Cc(e,r));n.styles.push(s);Ti(r.wbrels,-1,"styles."+t,bi.STY);if(e.vbaraw&&a){s="xl/vbaProject.bin";Qr(i,s,e.vbaraw);n.vba.push(s);Ti(r.wbrels,-1,"vbaProject.bin",bi.VBA)}s="xl/metadata."+t;Qr(i,s,Eh());n.metadata.push(s);Ti(r.wbrels,-1,"metadata."+t,bi.XLMETA);if(c.length>1){s="xl/persons/person.xml";Qr(i,s,Wh(c,r));n.people.push(s);Ti(r.wbrels,-1,"persons/person.xml",bi.PEOPLE)}Qr(i,"[Content_Types].xml",gi(n,r));Qr(i,"_rels/.rels",Ai(r.rels));Qr(i,"xl/_rels/workbook."+t+".rels",Ai(r.wbrels));delete r.revssf;delete r.ssf;return i}function lk(e,r){var t="";switch((r||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":t=E(e.slice(0,12));break;case"binary":t=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(r&&r.type||"undefined"));}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3),t.charCodeAt(4),t.charCodeAt(5),t.charCodeAt(6),t.charCodeAt(7)]}function ok(e,r){if(Qe.find(e,"EncryptedPackage"))return ik(e,r);return Kg(e,r)}function ck(e,r){var t,a=e;var n=r||{};if(!n.type)n.type=C&&Buffer.isBuffer(e)?"buffer":"base64";t=rt(a,n);return nk(t,n)}function hk(e,r){var t=0;e:while(t=2&&i[3]===0)return no.to_workbook(n,t);if(i[2]===0&&(i[3]===8||i[3]===9))return no.to_workbook(n,t)}break;case 3:;case 131:;case 139:;case 140:return ql.to_workbook(n,t);case 123:if(i[1]===92&&i[2]===114&&i[3]===116)return jo(n,t);break;case 10:;case 13:;case 32:return uk(n,t);case 137:if(i[1]===80&&i[2]===78&&i[3]===71)throw new Error("PNG Image File is not a spreadsheet");break;case 8:if(i[1]===231)throw new Error("Unsupported Multiplan 1.x file!");break;case 12:if(i[1]===236)throw new Error("Unsupported Multiplan 2.x file!");if(i[1]===237)throw new Error("Unsupported Multiplan 3.x file!");break;}if(Jl.indexOf(i[0])>-1&&i[2]<=12&&i[3]<=31)return ql.to_workbook(n,t);return pk(e,n,t,s)}function gk(e,r){var t=r||{};t.type="file";return mk(e,t)}function bk(e,r){switch(r.type){case"base64":;case"binary":break;case"buffer":;case"array":r.type="";break;case"file":return ar(r.file,Qe.write(e,{type:C?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");default:throw new Error("Unrecognized type "+r.type);}return Qe.write(e,r)}function wk(e,r){switch(r.bookType){case"ods":return Hb(e,r);case"numbers":return Bw(e,r);case"xlsb":return sk(e,r);default:return fk(e,r);}}function kk(e,r){var t=Ar(r||{});var a=wk(e,t);return Tk(a,t)}function Ak(e,r){var t=Ar(r||{});var a=fk(e,t);return Tk(a,t)}function Tk(e,r){var t={};var a=C?"nodebuffer":typeof Uint8Array!=="undefined"?"array":"string";if(r.compression)t.compression="DEFLATE";if(r.password)t.type=a;else switch(r.type){case"base64":t.type="base64";break;case"binary":t.type="string";break;case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");case"buffer":;case"file":t.type=a;break;default:throw new Error("Unrecognized type "+r.type);}var n=e.FullPaths?Qe.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[t.type]||t.type,compression:!!r.compression}):e.generate(t);if(typeof Deno!=="undefined"){if(typeof n=="string"){if(r.type=="binary"||r.type=="base64")return n;n=new Uint8Array(R(n))}}if(r.password&&typeof encrypt_agile!=="undefined")return bk(encrypt_agile(n,r.password),r);if(r.type==="file")return ar(r.file,n);return r.type=="string"?It(n):n}function yk(e,r){var t=r||{};var a=Yg(e,t);return bk(a,t)}function Ek(e,r,t){if(!t)t="";var a=t+e;switch(r.type){case"base64":return A(Rt(a));case"binary":return Rt(a);case"string":return e;case"file":return ar(r.file,a,"utf8");case"buffer":{if(C)return _(a,"utf8");else if(typeof TextEncoder!=="undefined")return(new TextEncoder).encode(a);else return Ek(a,{type:"binary"}).split("").map(function(e){return e.charCodeAt(0)})};}throw new Error("Unrecognized type "+r.type)}function Ck(e,r){switch(r.type){case"base64":return T(e);case"binary":return e;case"string":return e;case"file":return ar(r.file,e,"binary");case"buffer":{if(C)return _(e,"binary");else return e.split("").map(function(e){return e.charCodeAt(0)})};}throw new Error("Unrecognized type "+r.type)}function _k(e,r){switch(r.type){case"string":;case"base64":;case"binary":var t="";for(var a=0;a0)n=0;var h=Wa(l.s.r);var u=[];var d=[];var v=0,p=0;var m=e["!data"]!=null;var g=l.s.r,b=0;var w={};if(m&&!e["!data"][g])e["!data"][g]=[];var k=o.skipHidden&&e["!cols"]||[];var A=o.skipHidden&&e["!rows"]||[];for(b=l.s.c;b<=l.e.c;++b){if((k[b]||{}).hidden)continue;u[b]=$a(b);t=m?e["!data"][g][b]:e[u[b]+h];switch(a){case 1:i[b]=b-l.s.c;break;case 2:i[b]=u[b];break;case 3:i[b]=o.header[b-l.s.c];break;default:if(t==null)t={w:"__EMPTY",t:"s"};f=s=tn(t,null,o);p=w[s]||0;if(!p)w[s]=1;else{do{f=s+"_"+p++}while(w[f]);w[s]=p;w[f]=1}i[b]=f;}}for(g=l.s.r+n;g<=l.e.r;++g){if((A[g]||{}).hidden)continue;var T=Fk(e,l,g,u,a,i,o);if(T.isempty===false||(a===1?o.blankrows!==false:!!o.blankrows))d[v++]=T.row}d.length=v;return d}var Pk=/"/g;function Lk(e,r,t,a,n,i,s,f,l){var o=true;var c=[],h="",u=Wa(t);var d=e["!data"]!=null;var v=d&&e["!data"][t]||[];for(var p=r.s.c;p<=r.e.c;++p){if(!a[p])continue;var m=d?v[p]:e[a[p]+u];if(m==null)h="";else if(m.v!=null){o=false;h=""+(l.rawNumbers&&m.t=="n"?m.v:tn(m,null,l));for(var g=0,b=0;g!==h.length;++g)if((b=h.charCodeAt(g))===n||b===i||b===34||l.forceQuotes){h='"'+h.replace(Pk,'""')+'"';break}if(h=="ID"&&f==0&&c.length==0)h='"ID"'}else if(m.f!=null&&!m.F){o=false;h="="+m.f;if(h.indexOf(",")>=0)h='"'+h.replace(Pk,'""')+'"'}else h="";c.push(h)}if(l.strip)while(c[c.length-1]==="")--c.length;if(l.blankrows===false&&o)return null;return c.join(s)}function Mk(e,r){var t=[];var a=r==null?{}:r;if(e==null||e["!ref"]==null)return"";var n=en(e["!ref"]);var i=a.FS!==undefined?a.FS:",",s=i.charCodeAt(0);var f=a.RS!==undefined?a.RS:"\n",l=f.charCodeAt(0);var o="",c=[];var h=a.skipHidden&&e["!cols"]||[];var u=a.skipHidden&&e["!rows"]||[];for(var d=n.s.c;d<=n.e.c;++d)if(!(h[d]||{}).hidden)c[d]=$a(d);var v=0;for(var p=n.s.r;p<=n.e.r;++p){if((u[p]||{}).hidden)continue;o=Lk(e,n,p,c,s,l,i,v,a);if(o==null){continue}if(o||a.blankrows!==false)t.push((v++?f:"")+o)}return t.join("")}function Uk(e,r){if(!r)r={};r.FS="\t";r.RS="\n";var t=Mk(e,r);if(typeof a=="undefined"||r.type=="string")return t;var n=a.utils.encode(1200,t,"str");return String.fromCharCode(255)+String.fromCharCode(254)+n}function Bk(e,r){var t="",a,n="";if(e==null||e["!ref"]==null)return[];var i=en(e["!ref"]),s="",f=[],l;var o=[];var c=e["!data"]!=null;for(l=i.s.c;l<=i.e.c;++l)f[l]=$a(l);for(var h=i.s.r;h<=i.e.r;++h){s=Wa(h);for(l=i.s.c;l<=i.e.c;++l){t=f[l]+s;a=c?(e["!data"][h]||[])[l]:e[t];n="";if(a===undefined)continue;else if(a.F!=null){t=a.F;if(!a.f)continue;n=a.f;if(t.indexOf(":")==-1)t=t+":"+t}if(a.f!=null)n=a.f;else if(r&&r.values===false)continue;else if(a.t=="z")continue;else if(a.t=="n"&&a.v!=null)n=""+a.v;else if(a.t=="b")n=a.v?"TRUE":"FALSE";else if(a.w!==undefined)n="'"+a.w;else if(a.v===undefined)continue;else if(a.t=="s")n="'"+a.v;else n=""+a.v;o[o.length]=t+"="+n}}return o}function Wk(e,r,t){var a=t||{};var n=e?e["!data"]!=null:a.dense;if(b!=null&&n==null)n=b;var i=+!a.skipHeader;var s=e||{};if(!e&&n)s["!data"]=[];var f=0,l=0;if(s&&a.origin!=null){if(typeof a.origin=="number")f=a.origin;else{var o=typeof a.origin=="string"?Ka(a.origin):a.origin;f=o.r;l=o.c}}var c={s:{c:0,r:0},e:{c:l,r:f+r.length-1+i}};if(s["!ref"]){var h=en(s["!ref"]);c.e.c=Math.max(c.e.c,h.e.c);c.e.r=Math.max(c.e.r,h.e.r);if(f==-1){f=h.e.r+1;c.e.r=f+r.length-1+i}}else{if(f==-1){f=0;c.e.r=r.length-1+i}}var u=a.header||[],d=0;var v=[];r.forEach(function(e,r){if(n&&!s["!data"][f+r+i])s["!data"][f+r+i]=[];if(n)v=s["!data"][f+r+i];ir(e).forEach(function(t){if((d=u.indexOf(t))==-1)u[d=u.length]=t;var o=e[t];var c="z";var h="";var p=n?"":$a(l+d)+Wa(f+r+i);var m=n?v[l+d]:s[p];if(o&&typeof o==="object"&&!(o instanceof Date)){if(n)v[l+d]=o;else s[p]=o}else{if(typeof o=="number")c="n";else if(typeof o=="boolean")c="b";else if(typeof o=="string")c="s";else if(o instanceof Date){c="d";if(!a.UTC)o=Dr(o);if(!a.cellDates){c="n";o=dr(o)}h=m!=null&&m.z&&Le(m.z)?m.z:a.dateNF||q[14]}else if(o===null&&a.nullError){c="e";o=0}if(!m){if(!n)s[p]=m={t:c,v:o};else v[l+d]=m={t:c,v:o}}else{m.t=c;m.v=o;delete m.w;delete m.R;if(h)m.z=h}if(h)m.z=h}})});c.e.c=Math.max(c.e.c,l+u.length-1);var p=Wa(f);if(n&&!s["!data"][f])s["!data"][f]=[];if(i)for(d=0;d=0&&e.SheetNames.length>r)return r;throw new Error("Cannot find sheet # "+r)}else if(typeof r=="string"){var t=e.SheetNames.indexOf(r);if(t>-1)return t;throw new Error("Cannot find sheet name |"+r+"|")}else throw new Error("Cannot find sheet |"+r+"|")}function $k(e,r){var t={SheetNames:[],Sheets:{}};if(e)Xk(t,e,r||"Sheet1");return t}function Xk(e,r,t,a){var n=1;if(!t)for(;n<=65535;++n,t=undefined)if(e.SheetNames.indexOf(t="Sheet"+n)==-1)break;if(!t||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(a&&e.SheetNames.indexOf(t)>=0&&t.length<32){var i=t.match(/\d+$/);n=i&&+i[0]||0;var s=i&&t.slice(0,i.index)||t;for(++n;n<=65535;++n)if(e.SheetNames.indexOf(t=s+n)==-1)break}Fm(t);if(e.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");e.SheetNames.push(t);e.Sheets[t]=r;return t}function Gk(e,r,t){if(!e.Workbook)e.Workbook={};if(!e.Workbook.Sheets)e.Workbook.Sheets=[];var a=Vk(e,r);if(!e.Workbook.Sheets[a])e.Workbook.Sheets[a]={};switch(t){case 0:;case 1:;case 2:break;default:throw new Error("Bad sheet visibility setting "+t);}e.Workbook.Sheets[a].Hidden=t}function jk(e,r){e.z=r;return e}function Kk(e,r,t){if(!r){delete e.l}else{e.l={Target:r};if(t)e.l.Tooltip=t}return e}function Yk(e,r,t){return Kk(e,"#"+r,t)}function Zk(e,r,t){if(!e.c)e.c=[];e.c.push({t:r,a:t||"SheetJS"})}function Jk(e,r,t,a){var n=typeof r!="string"?r:en(r);var i=typeof r=="string"?r:Ja(r);for(var s=n.s.r;s<=n.e.r;++s)for(var f=n.s.c;f<=n.e.c;++f){var l=Hk(e,s,f);l.t="n";l.F=i;delete l.v;if(s==n.s.r&&f==n.s.c){l.f=t;if(a)l.D=true}}var o=Za(e["!ref"]);if(o.s.r>n.s.r)o.s.r=n.s.r;if(o.s.c>n.s.c)o.s.c=n.s.c;if(o.e.rs.e.r){if(!l){l=true;t.push("
"+i)}return t.push(null)}while(f<=s.e.r){t.push(Tb(e,s,f,a));++f;break}};return t}function aA(e,r){var t=Qk({objectMode:true});if(e==null||e["!ref"]==null){t.push(null);return t}var a={t:"n",v:0},n=0,i=1,s=[],f=0,l="";var o={s:{r:0,c:0},e:{r:0,c:0}};var c=r||{};var h=c.range!=null?c.range:e["!ref"];if(c.header===1)n=1;else if(c.header==="A")n=2;else if(Array.isArray(c.header))n=3;switch(typeof h){case"string":o=en(h);break;case"number":o=en(e["!ref"]);o.s.r=h;break;default:o=h;}if(n>0)i=0;var u=Wa(o.s.r);var d=[];var v=0;var p=e["!data"]!=null;var m=o.s.r,g=0;var b={};if(p&&!e["!data"][m])e["!data"][m]=[];var w=c.skipHidden&&e["!cols"]||[];var k=c.skipHidden&&e["!rows"]||[];for(g=o.s.c;g<=o.e.c;++g){if((w[g]||{}).hidden)continue;d[g]=$a(g);a=p?e["!data"][m][g]:e[d[g]+u];switch(n){case 1:s[g]=g-o.s.c;break;case 2:s[g]=d[g];break;case 3:s[g]=c.header[g-o.s.c];break;default:if(a==null)a={w:"__EMPTY",t:"s"};l=f=tn(a,null,c);v=b[f]||0;if(!v)b[f]=1;else{do{l=f+"_"+v++}while(b[l]);b[f]=v;b[l]=1}s[g]=l;}}m=o.s.r+i;t._read=function(){while(m<=o.e.r){if((k[m-1]||{}).hidden)continue;var r=Fk(e,o,m,d,n,s,c);++m;if(r.isempty===false||(n===1?c.blankrows!==false:!!c.blankrows)){t.push(r.row);return}}return t.push(null)};return t}function nA(e,r){var t=Qk();var a=r==null?{}:r;var n=+a.stride||10;if(!e.SSF)e.SSF=Ar(q);if(e.SSF){$e();Ve(e.SSF);a.revssf=lr(e.SSF);a.revssf[e.SSF[65535]]=0;a.ssf=e.SSF;a.cellXfs=[];Tv(a.cellXfs,{},{revssf:{General:0}})}e.SheetNames.forEach(function(r){var t=e.Sheets[r];if(!t||!t["!ref"])return;var n=Za(t["!ref"]);var i=t["!data"]!=null;var s=i?t["!data"]:[];var f={r:0,c:0};for(var l=n.s.r;l<=n.e.r;++l){f.r=l;if(i&&!s[l])continue;for(var o=n.s.c;o<=n.e.c;++o){f.c=o;var c=i?s[l][o]:t[$a(o)+Wa(l)];if(!c)continue;if(c.t=="d"&&c.z==null){c=Ar(c);c.z=q[14]}void Tv(a.cellXfs,c,a)}}});var i=xg(e,a);var s=0,f=0,l=e.Sheets[e.SheetNames[f]],o=en(l),c=-1,h=false;var u=[],d=0,v=false,p=[],m={r:0,c:0};t._read=function(){switch(s){case 0:{s=1;t.push(at);t.push("")}break;case 1:{s=2;t.push(_g(e,a));t.push(Sg(e,a))}break;case 2:{s=3;t.push(i);t.push(Ig(e,a))}break;case 3:{h=false;if(f>=e.SheetNames.length){s=-1;t.push("");break}t.push("");l=e.Sheets[e.SheetNames[f]];if(!l){t.push("");return void++f}var r=Rg(l,a,f,e);if(r.length)t.push(""+r+"");if(!l["!ref"])return s=5;o=en(l["!ref"]);c=o.s.r;s=4}break;case 4:{if(c<0||c>o.e.r){if(h)t.push("
");return void(s=5)}if(c<=o.s.r){if(l["!cols"])l["!cols"].forEach(function(e,r){oc(e);var a=!!e.width;var n=kv(r,e);var i={"ss:Index":r+1};if(a)i["ss:Width"]=nc(n.width);if(e.hidden)i["ss:Hidden"]="1";if(!h){h=true;t.push("")}t.push(Bt("Column",null,i))});v=l["!data"]!=null;if(v)p=l["!data"];m.r=m.c=0}for(var g=0;c<=o.e.r&&gw)continue;if(u[d].s.r>c)continue;if(u[d].e.c");if(!h){h=true;t.push("")}t.push(b.join(""))}}break;case 5:{t.push(Ng(l,a,f,e));if(l&&l["!autofilter"])t.push('');t.push("");f++;c=-1;return void(s=3)};case-1:{s=-2;t.push("")}break;case-2:t.push(null);break;}};return t}var iA={to_json:aA,to_html:tA,to_csv:rA,to_xlml:nA,set_readable:eA};if(typeof Kg!=="undefined")e.parse_xlscfb=Kg;e.parse_zip=nk;e.read=mk;e.readFile=gk;e.readFileSync=gk;e.write=xk;e.writeFile=Ik;e.writeFileSync=Ik;e.writeFileAsync=Nk;e.utils=qk;e.writeXLSX=Sk;e.writeFileXLSX=Rk;e.set_fs=rr;e.set_cptable=g;e.SSF=Xe;if(typeof iA!=="undefined")e.stream=iA;if(typeof Qe!=="undefined")e.CFB=Qe;if(typeof require!=="undefined"){var sA=undefined;if((sA||{}).Readable)eA(sA.Readable);try{er=undefined}catch(au){}}}if(typeof exports!=="undefined")make_xlsx_lib(exports);else if(typeof module!=="undefined"&&module.exports)make_xlsx_lib(module.exports);else if(typeof define==="function"&&define.amd)define("xlsx",function(){if(!XLSX.version)make_xlsx_lib(XLSX);return XLSX});else make_xlsx_lib(XLSX);if(typeof window!=="undefined"&&!window.XLSX)try{window.XLSX=XLSX}catch(e){}
diff --git a/web-v2-res/static/layui/css/layui.css b/web-v2-res/static/layui/css/layui.css
new file mode 100644
index 0000000..25a6956
--- /dev/null
+++ b/web-v2-res/static/layui/css/layui.css
@@ -0,0 +1 @@
+blockquote,body,button,dd,div,dl,dt,form,h1,h2,h3,h4,h5,h6,input,li,ol,p,pre,td,textarea,th,ul{margin:0;padding:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}a:active,a:hover{outline:0}img{display:inline-block;border:none;vertical-align:middle}li{list-style:none}table{border-collapse:collapse;border-spacing:0}h1,h2,h3{font-weight:400}h4,h5,h6{font-size:100%;font-weight:400}button,input,select,textarea{font-size:100%}button,input,optgroup,option,select,textarea{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;outline:0}pre{white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word}body{line-height:1.6;color:#333;color:rgba(0,0,0,.85);font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif}hr{height:0;line-height:0;margin:10px 0;padding:0;border:none!important;border-bottom:1px solid #eee!important;clear:both;overflow:hidden;background:0 0}a{color:#333;text-decoration:none}a:hover{color:#777}a cite{font-style:normal;*cursor:pointer}.layui-border-box,.layui-border-box *{box-sizing:border-box}.layui-box,.layui-box *{box-sizing:content-box}.layui-clear{clear:both;*zoom:1}.layui-clear:after{content:'\20';clear:both;*zoom:1;display:block;height:0}.layui-inline{position:relative;display:inline-block;*display:inline;*zoom:1;vertical-align:middle}.layui-edge{position:relative;display:inline-block;vertical-align:middle;width:0;height:0;border-width:6px;border-style:dashed;border-color:transparent;overflow:hidden}.layui-edge-top{top:-4px;border-bottom-color:#999;border-bottom-style:solid}.layui-edge-right{border-left-color:#999;border-left-style:solid}.layui-edge-bottom{top:2px;border-top-color:#999;border-top-style:solid}.layui-edge-left{border-right-color:#999;border-right-style:solid}.layui-elip{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-disabled,.layui-icon,.layui-unselect{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-disabled,.layui-disabled:hover{color:#d2d2d2!important;cursor:not-allowed!important}.layui-circle{border-radius:100%}.layui-show{display:block!important}.layui-hide{display:none!important}.layui-show-v{visibility:visible!important}.layui-hide-v{visibility:hidden!important}@font-face{font-family:layui-icon;src:url(../font/iconfont.eot?v=256);src:url(../font/iconfont.eot?v=256#iefix) format('embedded-opentype'),url(../font/iconfont.woff2?v=256) format('woff2'),url(../font/iconfont.woff?v=256) format('woff'),url(../font/iconfont.ttf?v=256) format('truetype'),url(../font/iconfont.svg?v=256#layui-icon) format('svg')}.layui-icon{font-family:layui-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.layui-icon-reply-fill:before{content:"\e611"}.layui-icon-set-fill:before{content:"\e614"}.layui-icon-menu-fill:before{content:"\e60f"}.layui-icon-search:before{content:"\e615"}.layui-icon-share:before{content:"\e641"}.layui-icon-set-sm:before{content:"\e620"}.layui-icon-engine:before{content:"\e628"}.layui-icon-close:before{content:"\1006"}.layui-icon-close-fill:before{content:"\1007"}.layui-icon-chart-screen:before{content:"\e629"}.layui-icon-star:before{content:"\e600"}.layui-icon-circle-dot:before{content:"\e617"}.layui-icon-chat:before{content:"\e606"}.layui-icon-release:before{content:"\e609"}.layui-icon-list:before{content:"\e60a"}.layui-icon-chart:before{content:"\e62c"}.layui-icon-ok-circle:before{content:"\1005"}.layui-icon-layim-theme:before{content:"\e61b"}.layui-icon-table:before{content:"\e62d"}.layui-icon-right:before{content:"\e602"}.layui-icon-left:before{content:"\e603"}.layui-icon-cart-simple:before{content:"\e698"}.layui-icon-face-cry:before{content:"\e69c"}.layui-icon-face-smile:before{content:"\e6af"}.layui-icon-survey:before{content:"\e6b2"}.layui-icon-tree:before{content:"\e62e"}.layui-icon-ie:before{content:"\e7bb"}.layui-icon-upload-circle:before{content:"\e62f"}.layui-icon-add-circle:before{content:"\e61f"}.layui-icon-download-circle:before{content:"\e601"}.layui-icon-templeate-1:before{content:"\e630"}.layui-icon-util:before{content:"\e631"}.layui-icon-face-surprised:before{content:"\e664"}.layui-icon-edit:before{content:"\e642"}.layui-icon-speaker:before{content:"\e645"}.layui-icon-down:before{content:"\e61a"}.layui-icon-file:before{content:"\e621"}.layui-icon-layouts:before{content:"\e632"}.layui-icon-rate-half:before{content:"\e6c9"}.layui-icon-add-circle-fine:before{content:"\e608"}.layui-icon-prev-circle:before{content:"\e633"}.layui-icon-read:before{content:"\e705"}.layui-icon-404:before{content:"\e61c"}.layui-icon-carousel:before{content:"\e634"}.layui-icon-help:before{content:"\e607"}.layui-icon-code-circle:before{content:"\e635"}.layui-icon-windows:before{content:"\e67f"}.layui-icon-water:before{content:"\e636"}.layui-icon-username:before{content:"\e66f"}.layui-icon-find-fill:before{content:"\e670"}.layui-icon-about:before{content:"\e60b"}.layui-icon-location:before{content:"\e715"}.layui-icon-up:before{content:"\e619"}.layui-icon-pause:before{content:"\e651"}.layui-icon-date:before{content:"\e637"}.layui-icon-layim-uploadfile:before{content:"\e61d"}.layui-icon-delete:before{content:"\e640"}.layui-icon-play:before{content:"\e652"}.layui-icon-top:before{content:"\e604"}.layui-icon-firefox:before{content:"\e686"}.layui-icon-friends:before{content:"\e612"}.layui-icon-refresh-3:before{content:"\e9aa"}.layui-icon-ok:before{content:"\e605"}.layui-icon-layer:before{content:"\e638"}.layui-icon-face-smile-fine:before{content:"\e60c"}.layui-icon-dollar:before{content:"\e659"}.layui-icon-group:before{content:"\e613"}.layui-icon-layim-download:before{content:"\e61e"}.layui-icon-picture-fine:before{content:"\e60d"}.layui-icon-link:before{content:"\e64c"}.layui-icon-diamond:before{content:"\e735"}.layui-icon-log:before{content:"\e60e"}.layui-icon-key:before{content:"\e683"}.layui-icon-rate-solid:before{content:"\e67a"}.layui-icon-fonts-del:before{content:"\e64f"}.layui-icon-unlink:before{content:"\e64d"}.layui-icon-fonts-clear:before{content:"\e639"}.layui-icon-triangle-r:before{content:"\e623"}.layui-icon-circle:before{content:"\e63f"}.layui-icon-radio:before{content:"\e643"}.layui-icon-align-center:before{content:"\e647"}.layui-icon-align-right:before{content:"\e648"}.layui-icon-align-left:before{content:"\e649"}.layui-icon-loading-1:before{content:"\e63e"}.layui-icon-return:before{content:"\e65c"}.layui-icon-fonts-strong:before{content:"\e62b"}.layui-icon-upload:before{content:"\e67c"}.layui-icon-dialogue:before{content:"\e63a"}.layui-icon-video:before{content:"\e6ed"}.layui-icon-headset:before{content:"\e6fc"}.layui-icon-cellphone-fine:before{content:"\e63b"}.layui-icon-add-1:before{content:"\e654"}.layui-icon-face-smile-b:before{content:"\e650"}.layui-icon-fonts-html:before{content:"\e64b"}.layui-icon-screen-full:before{content:"\e622"}.layui-icon-form:before{content:"\e63c"}.layui-icon-cart:before{content:"\e657"}.layui-icon-camera-fill:before{content:"\e65d"}.layui-icon-tabs:before{content:"\e62a"}.layui-icon-heart-fill:before{content:"\e68f"}.layui-icon-fonts-code:before{content:"\e64e"}.layui-icon-ios:before{content:"\e680"}.layui-icon-at:before{content:"\e687"}.layui-icon-fire:before{content:"\e756"}.layui-icon-set:before{content:"\e716"}.layui-icon-fonts-u:before{content:"\e646"}.layui-icon-triangle-d:before{content:"\e625"}.layui-icon-tips:before{content:"\e702"}.layui-icon-picture:before{content:"\e64a"}.layui-icon-more-vertical:before{content:"\e671"}.layui-icon-bluetooth:before{content:"\e689"}.layui-icon-flag:before{content:"\e66c"}.layui-icon-loading:before{content:"\e63d"}.layui-icon-fonts-i:before{content:"\e644"}.layui-icon-refresh-1:before{content:"\e666"}.layui-icon-rmb:before{content:"\e65e"}.layui-icon-addition:before{content:"\e624"}.layui-icon-home:before{content:"\e68e"}.layui-icon-time:before{content:"\e68d"}.layui-icon-user:before{content:"\e770"}.layui-icon-notice:before{content:"\e667"}.layui-icon-chrome:before{content:"\e68a"}.layui-icon-edge:before{content:"\e68b"}.layui-icon-login-weibo:before{content:"\e675"}.layui-icon-voice:before{content:"\e688"}.layui-icon-upload-drag:before{content:"\e681"}.layui-icon-login-qq:before{content:"\e676"}.layui-icon-snowflake:before{content:"\e6b1"}.layui-icon-heart:before{content:"\e68c"}.layui-icon-logout:before{content:"\e682"}.layui-icon-file-b:before{content:"\e655"}.layui-icon-template:before{content:"\e663"}.layui-icon-transfer:before{content:"\e691"}.layui-icon-auz:before{content:"\e672"}.layui-icon-console:before{content:"\e665"}.layui-icon-app:before{content:"\e653"}.layui-icon-prev:before{content:"\e65a"}.layui-icon-website:before{content:"\e7ae"}.layui-icon-next:before{content:"\e65b"}.layui-icon-component:before{content:"\e857"}.layui-icon-android:before{content:"\e684"}.layui-icon-more:before{content:"\e65f"}.layui-icon-login-wechat:before{content:"\e677"}.layui-icon-shrink-right:before{content:"\e668"}.layui-icon-spread-left:before{content:"\e66b"}.layui-icon-camera:before{content:"\e660"}.layui-icon-note:before{content:"\e66e"}.layui-icon-refresh:before{content:"\e669"}.layui-icon-female:before{content:"\e661"}.layui-icon-male:before{content:"\e662"}.layui-icon-screen-restore:before{content:"\e758"}.layui-icon-password:before{content:"\e673"}.layui-icon-senior:before{content:"\e674"}.layui-icon-theme:before{content:"\e66a"}.layui-icon-tread:before{content:"\e6c5"}.layui-icon-praise:before{content:"\e6c6"}.layui-icon-star-fill:before{content:"\e658"}.layui-icon-rate:before{content:"\e67b"}.layui-icon-template-1:before{content:"\e656"}.layui-icon-vercode:before{content:"\e679"}.layui-icon-service:before{content:"\e626"}.layui-icon-cellphone:before{content:"\e678"}.layui-icon-print:before{content:"\e66d"}.layui-icon-cols:before{content:"\e610"}.layui-icon-wifi:before{content:"\e7e0"}.layui-icon-export:before{content:"\e67d"}.layui-icon-rss:before{content:"\e808"}.layui-icon-slider:before{content:"\e714"}.layui-icon-email:before{content:"\e618"}.layui-icon-subtraction:before{content:"\e67e"}.layui-icon-mike:before{content:"\e6dc"}.layui-icon-light:before{content:"\e748"}.layui-icon-gift:before{content:"\e627"}.layui-icon-mute:before{content:"\e685"}.layui-icon-reduce-circle:before{content:"\e616"}.layui-icon-music:before{content:"\e690"}.layui-main{position:relative;width:1160px;margin:0 auto}.layui-header{position:relative;z-index:1000;height:60px}.layui-header a:hover{transition:all .5s;-webkit-transition:all .5s}.layui-side{position:fixed;left:0;top:0;bottom:0;z-index:999;width:200px;overflow-x:hidden}.layui-side-scroll{position:relative;width:220px;height:100%;overflow-x:hidden}.layui-body{position:relative;left:200px;right:0;top:0;bottom:0;z-index:900;width:auto;box-sizing:border-box}.layui-layout-body{overflow-x:hidden}.layui-layout-admin .layui-header{position:fixed;top:0;left:0;right:0;background-color:#23262e}.layui-layout-admin .layui-side{top:60px;width:200px;overflow-x:hidden}.layui-layout-admin .layui-body{position:absolute;top:60px;padding-bottom:44px}.layui-layout-admin .layui-main{width:auto;margin:0 15px}.layui-layout-admin .layui-footer{position:fixed;left:200px;right:0;bottom:0;z-index:990;height:44px;line-height:44px;padding:0 15px;box-shadow:-1px 0 4px rgb(0 0 0 / 12%);background-color:#fafafa}.layui-layout-admin .layui-logo{position:absolute;left:0;top:0;width:200px;height:100%;line-height:60px;text-align:center;color:#009688;font-size:16px;box-shadow:0 1px 2px 0 rgb(0 0 0 / 15%)}.layui-layout-admin .layui-header .layui-nav{background:0 0}.layui-layout-left{position:absolute!important;left:200px;top:0}.layui-layout-right{position:absolute!important;right:0;top:0}.layui-container{position:relative;margin:0 auto;box-sizing:border-box}.layui-fluid{position:relative;margin:0 auto;padding:0 15px}.layui-row:after,.layui-row:before{content:"";display:block;clear:both}.layui-col-lg1,.layui-col-lg10,.layui-col-lg11,.layui-col-lg12,.layui-col-lg2,.layui-col-lg3,.layui-col-lg4,.layui-col-lg5,.layui-col-lg6,.layui-col-lg7,.layui-col-lg8,.layui-col-lg9,.layui-col-md1,.layui-col-md10,.layui-col-md11,.layui-col-md12,.layui-col-md2,.layui-col-md3,.layui-col-md4,.layui-col-md5,.layui-col-md6,.layui-col-md7,.layui-col-md8,.layui-col-md9,.layui-col-sm1,.layui-col-sm10,.layui-col-sm11,.layui-col-sm12,.layui-col-sm2,.layui-col-sm3,.layui-col-sm4,.layui-col-sm5,.layui-col-sm6,.layui-col-sm7,.layui-col-sm8,.layui-col-sm9,.layui-col-xs1,.layui-col-xs10,.layui-col-xs11,.layui-col-xs12,.layui-col-xs2,.layui-col-xs3,.layui-col-xs4,.layui-col-xs5,.layui-col-xs6,.layui-col-xs7,.layui-col-xs8,.layui-col-xs9{position:relative;display:block;box-sizing:border-box}.layui-col-xs1,.layui-col-xs10,.layui-col-xs11,.layui-col-xs12,.layui-col-xs2,.layui-col-xs3,.layui-col-xs4,.layui-col-xs5,.layui-col-xs6,.layui-col-xs7,.layui-col-xs8,.layui-col-xs9{float:left}.layui-col-xs1{width:8.33333333%}.layui-col-xs2{width:16.66666667%}.layui-col-xs3{width:25%}.layui-col-xs4{width:33.33333333%}.layui-col-xs5{width:41.66666667%}.layui-col-xs6{width:50%}.layui-col-xs7{width:58.33333333%}.layui-col-xs8{width:66.66666667%}.layui-col-xs9{width:75%}.layui-col-xs10{width:83.33333333%}.layui-col-xs11{width:91.66666667%}.layui-col-xs12{width:100%}.layui-col-xs-offset1{margin-left:8.33333333%}.layui-col-xs-offset2{margin-left:16.66666667%}.layui-col-xs-offset3{margin-left:25%}.layui-col-xs-offset4{margin-left:33.33333333%}.layui-col-xs-offset5{margin-left:41.66666667%}.layui-col-xs-offset6{margin-left:50%}.layui-col-xs-offset7{margin-left:58.33333333%}.layui-col-xs-offset8{margin-left:66.66666667%}.layui-col-xs-offset9{margin-left:75%}.layui-col-xs-offset10{margin-left:83.33333333%}.layui-col-xs-offset11{margin-left:91.66666667%}.layui-col-xs-offset12{margin-left:100%}@media screen and (max-width:767.98px){.layui-container{padding:0 15px}.layui-hide-xs{display:none!important}.layui-show-xs-block{display:block!important}.layui-show-xs-inline{display:inline!important}.layui-show-xs-inline-block{display:inline-block!important}}@media screen and (min-width:768px){.layui-container{width:720px}.layui-hide-sm{display:none!important}.layui-show-sm-block{display:block!important}.layui-show-sm-inline{display:inline!important}.layui-show-sm-inline-block{display:inline-block!important}.layui-col-sm1,.layui-col-sm10,.layui-col-sm11,.layui-col-sm12,.layui-col-sm2,.layui-col-sm3,.layui-col-sm4,.layui-col-sm5,.layui-col-sm6,.layui-col-sm7,.layui-col-sm8,.layui-col-sm9{float:left}.layui-col-sm1{width:8.33333333%}.layui-col-sm2{width:16.66666667%}.layui-col-sm3{width:25%}.layui-col-sm4{width:33.33333333%}.layui-col-sm5{width:41.66666667%}.layui-col-sm6{width:50%}.layui-col-sm7{width:58.33333333%}.layui-col-sm8{width:66.66666667%}.layui-col-sm9{width:75%}.layui-col-sm10{width:83.33333333%}.layui-col-sm11{width:91.66666667%}.layui-col-sm12{width:100%}.layui-col-sm-offset1{margin-left:8.33333333%}.layui-col-sm-offset2{margin-left:16.66666667%}.layui-col-sm-offset3{margin-left:25%}.layui-col-sm-offset4{margin-left:33.33333333%}.layui-col-sm-offset5{margin-left:41.66666667%}.layui-col-sm-offset6{margin-left:50%}.layui-col-sm-offset7{margin-left:58.33333333%}.layui-col-sm-offset8{margin-left:66.66666667%}.layui-col-sm-offset9{margin-left:75%}.layui-col-sm-offset10{margin-left:83.33333333%}.layui-col-sm-offset11{margin-left:91.66666667%}.layui-col-sm-offset12{margin-left:100%}}@media screen and (min-width:992px){.layui-container{width:960px}.layui-hide-md{display:none!important}.layui-show-md-block{display:block!important}.layui-show-md-inline{display:inline!important}.layui-show-md-inline-block{display:inline-block!important}.layui-col-md1,.layui-col-md10,.layui-col-md11,.layui-col-md12,.layui-col-md2,.layui-col-md3,.layui-col-md4,.layui-col-md5,.layui-col-md6,.layui-col-md7,.layui-col-md8,.layui-col-md9{float:left}.layui-col-md1{width:8.33333333%}.layui-col-md2{width:16.66666667%}.layui-col-md3{width:25%}.layui-col-md4{width:33.33333333%}.layui-col-md5{width:41.66666667%}.layui-col-md6{width:50%}.layui-col-md7{width:58.33333333%}.layui-col-md8{width:66.66666667%}.layui-col-md9{width:75%}.layui-col-md10{width:83.33333333%}.layui-col-md11{width:91.66666667%}.layui-col-md12{width:100%}.layui-col-md-offset1{margin-left:8.33333333%}.layui-col-md-offset2{margin-left:16.66666667%}.layui-col-md-offset3{margin-left:25%}.layui-col-md-offset4{margin-left:33.33333333%}.layui-col-md-offset5{margin-left:41.66666667%}.layui-col-md-offset6{margin-left:50%}.layui-col-md-offset7{margin-left:58.33333333%}.layui-col-md-offset8{margin-left:66.66666667%}.layui-col-md-offset9{margin-left:75%}.layui-col-md-offset10{margin-left:83.33333333%}.layui-col-md-offset11{margin-left:91.66666667%}.layui-col-md-offset12{margin-left:100%}}@media screen and (min-width:1200px){.layui-container{width:1150px}.layui-hide-lg{display:none!important}.layui-show-lg-block{display:block!important}.layui-show-lg-inline{display:inline!important}.layui-show-lg-inline-block{display:inline-block!important}.layui-col-lg1,.layui-col-lg10,.layui-col-lg11,.layui-col-lg12,.layui-col-lg2,.layui-col-lg3,.layui-col-lg4,.layui-col-lg5,.layui-col-lg6,.layui-col-lg7,.layui-col-lg8,.layui-col-lg9{float:left}.layui-col-lg1{width:8.33333333%}.layui-col-lg2{width:16.66666667%}.layui-col-lg3{width:25%}.layui-col-lg4{width:33.33333333%}.layui-col-lg5{width:41.66666667%}.layui-col-lg6{width:50%}.layui-col-lg7{width:58.33333333%}.layui-col-lg8{width:66.66666667%}.layui-col-lg9{width:75%}.layui-col-lg10{width:83.33333333%}.layui-col-lg11{width:91.66666667%}.layui-col-lg12{width:100%}.layui-col-lg-offset1{margin-left:8.33333333%}.layui-col-lg-offset2{margin-left:16.66666667%}.layui-col-lg-offset3{margin-left:25%}.layui-col-lg-offset4{margin-left:33.33333333%}.layui-col-lg-offset5{margin-left:41.66666667%}.layui-col-lg-offset6{margin-left:50%}.layui-col-lg-offset7{margin-left:58.33333333%}.layui-col-lg-offset8{margin-left:66.66666667%}.layui-col-lg-offset9{margin-left:75%}.layui-col-lg-offset10{margin-left:83.33333333%}.layui-col-lg-offset11{margin-left:91.66666667%}.layui-col-lg-offset12{margin-left:100%}}.layui-col-space1{margin:-.5px}.layui-col-space1>*{padding:.5px}.layui-col-space2{margin:-1px}.layui-col-space2>*{padding:1px}.layui-col-space4{margin:-2px}.layui-col-space4>*{padding:2px}.layui-col-space5{margin:-2.5px}.layui-col-space5>*{padding:2.5px}.layui-col-space6{margin:-3px}.layui-col-space6>*{padding:3px}.layui-col-space8{margin:-4px}.layui-col-space8>*{padding:4px}.layui-col-space10{margin:-5px}.layui-col-space10>*{padding:5px}.layui-col-space12{margin:-6px}.layui-col-space12>*{padding:6px}.layui-col-space14{margin:-7px}.layui-col-space14>*{padding:7px}.layui-col-space15{margin:-7.5px}.layui-col-space15>*{padding:7.5px}.layui-col-space16{margin:-8px}.layui-col-space16>*{padding:8px}.layui-col-space18{margin:-9px}.layui-col-space18>*{padding:9px}.layui-col-space20{margin:-10px}.layui-col-space20>*{padding:10px}.layui-col-space22{margin:-11px}.layui-col-space22>*{padding:11px}.layui-col-space24{margin:-12px}.layui-col-space24>*{padding:12px}.layui-col-space25{margin:-12.5px}.layui-col-space25>*{padding:12.5px}.layui-col-space26{margin:-13px}.layui-col-space26>*{padding:13px}.layui-col-space28{margin:-14px}.layui-col-space28>*{padding:14px}.layui-col-space30{margin:-15px}.layui-col-space30>*{padding:15px}.layui-btn,.layui-input,.layui-select,.layui-textarea,.layui-upload-button{outline:0;-webkit-appearance:none;transition:all .3s;-webkit-transition:all .3s;box-sizing:border-box}.layui-elem-quote{margin-bottom:10px;padding:15px;line-height:1.6;border-left:5px solid #5fb878;border-radius:0 2px 2px 0;background-color:#fafafa}.layui-quote-nm{border-style:solid;border-width:1px;border-left-width:5px;background:0 0}.layui-elem-field{margin-bottom:10px;padding:0;border-width:1px;border-style:solid}.layui-elem-field legend{margin-left:20px;padding:0 10px;font-size:20px;font-weight:300}.layui-field-title{margin:10px 0 20px;border-width:0;border-top-width:1px}.layui-field-box{padding:15px}.layui-field-title .layui-field-box{padding:10px 0}.layui-progress{position:relative;height:6px;border-radius:20px;background-color:#eee}.layui-progress-bar{position:absolute;left:0;top:0;width:0;max-width:100%;height:6px;border-radius:20px;text-align:right;background-color:#5fb878;transition:all .3s;-webkit-transition:all .3s}.layui-progress-big,.layui-progress-big .layui-progress-bar{height:18px;line-height:18px}.layui-progress-text{position:relative;top:-20px;line-height:18px;font-size:12px;color:#5f5f5f}.layui-progress-big .layui-progress-text{position:static;padding:0 10px;color:#fff}.layui-collapse{border-width:1px;border-style:solid;border-radius:2px}.layui-colla-content,.layui-colla-item{border-top-width:1px;border-top-style:solid}.layui-colla-item:first-child{border-top:none}.layui-colla-title{position:relative;height:42px;line-height:42px;padding:0 15px 0 35px;color:#333;background-color:#fafafa;cursor:pointer;font-size:14px;overflow:hidden}.layui-colla-content{display:none;padding:10px 15px;line-height:1.6;color:#5f5f5f}.layui-colla-icon{position:absolute;left:15px;top:0;font-size:14px}.layui-card{margin-bottom:15px;border-radius:2px;background-color:#fff;box-shadow:0 1px 2px 0 rgba(0,0,0,.05)}.layui-card:last-child{margin-bottom:0}.layui-card-header{position:relative;height:42px;line-height:42px;padding:0 15px;border-bottom:1px solid #f6f6f6;color:#333;border-radius:2px 2px 0 0;font-size:14px}.layui-card-body{position:relative;padding:10px 15px;line-height:24px}.layui-card-body[pad15]{padding:15px}.layui-card-body[pad20]{padding:20px}.layui-card-body .layui-table{margin:5px 0}.layui-card .layui-tab{margin:0}.layui-panel{position:relative;border-width:1px;border-style:solid;border-radius:2px;box-shadow:1px 1px 4px rgb(0 0 0 / 8%);background-color:#fff;color:#5f5f5f}.layui-panel-window{position:relative;padding:15px;border-radius:0;border-top:5px solid #eee;background-color:#fff}.layui-auxiliar-moving{position:fixed;left:0;right:0;top:0;bottom:0;width:100%;height:100%;background:0 0;z-index:9999999999}.layui-bg-red{background-color:#ff5722!important;color:#fff!important}.layui-bg-orange{background-color:#ffb800!important;color:#fff!important}.layui-bg-green{background-color:#009688!important;color:#fff!important}.layui-bg-cyan{background-color:#2f4056!important;color:#fff!important}.layui-bg-blue{background-color:#1e9fff!important;color:#fff!important}.layui-bg-black{background-color:#393d49!important;color:#fff!important}.layui-bg-gray{background-color:#fafafa!important;color:#5f5f5f!important}.layui-badge-rim,.layui-border,.layui-colla-content,.layui-colla-item,.layui-collapse,.layui-elem-field,.layui-form-pane .layui-form-item[pane],.layui-form-pane .layui-form-label,.layui-input,.layui-layedit,.layui-layedit-tool,.layui-panel,.layui-quote-nm,.layui-select,.layui-tab-bar,.layui-tab-card,.layui-tab-title,.layui-tab-title .layui-this:after,.layui-textarea{border-color:#eee}.layui-border{border-width:1px;border-style:solid;color:#5f5f5f!important}.layui-border-red{border-width:1px;border-style:solid;border-color:#ff5722!important;color:#ff5722!important}.layui-border-orange{border-width:1px;border-style:solid;border-color:#ffb800!important;color:#ffb800!important}.layui-border-green{border-width:1px;border-style:solid;border-color:#009688!important;color:#009688!important}.layui-border-cyan{border-width:1px;border-style:solid;border-color:#2f4056!important;color:#2f4056!important}.layui-border-blue{border-width:1px;border-style:solid;border-color:#1e9fff!important;color:#1e9fff!important}.layui-border-black{border-width:1px;border-style:solid;border-color:#393d49!important;color:#393d49!important}.layui-timeline-item:before{background-color:#eee}.layui-text{line-height:1.6;font-size:14px;color:#5f5f5f}.layui-text h1,.layui-text h2,.layui-text h3,.layui-text h4,.layui-text h5,.layui-text h6{font-weight:500;color:#333}.layui-text h1{font-size:32px}.layui-text h2{font-size:24px}.layui-text h3{font-size:18px}.layui-text h4{font-size:16px}.layui-text h5{font-size:14px}.layui-text h6{font-size:13px}.layui-text a:not(.layui-btn){color:#01aaed}.layui-text a:not(.layui-btn):hover{text-decoration:underline}.layui-text ol,.layui-text ul{padding:5px 0 5px 15px}.layui-text ul li{margin-top:5px;list-style-type:disc}.layui-text ol li{margin-top:5px;list-style-type:decimal}.layui-text em,.layui-word-aux{color:#999!important;padding-left:5px!important;padding-right:5px!important}.layui-text p{margin:15px 0}.layui-text p:first-child{margin-top:0}.layui-text p:last-child{margin-bottom:0}.layui-text blockquote:not(.layui-elem-quote){padding:5px 15px;border-left:5px solid #eee}.layui-text pre:not(.layui-code){padding:15px;font-family:Lucida Console,Consolas,Courier New;background-color:#fafafa}.layui-font-12{font-size:12px!important}.layui-font-14{font-size:14px!important}.layui-font-16{font-size:16px!important}.layui-font-18{font-size:18px!important}.layui-font-20{font-size:20px!important}.layui-font-red{color:#ff5722!important}.layui-font-orange{color:#ffb800!important}.layui-font-green{color:#009688!important}.layui-font-cyan{color:#2f4056!important}.layui-font-blue{color:#01aaed!important}.layui-font-black{color:#000!important}.layui-font-gray{color:#c2c2c2!important}.layui-btn{display:inline-block;vertical-align:middle;height:38px;line-height:38px;border:1px solid transparent;padding:0 18px;background-color:#009688;color:#fff;white-space:nowrap;text-align:center;font-size:14px;border-radius:2px;cursor:pointer;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-btn:hover{opacity:.8;filter:alpha(opacity=80);color:#fff}.layui-btn:active{opacity:1;filter:alpha(opacity=100)}.layui-btn+.layui-btn{margin-left:10px}.layui-btn-container{font-size:0}.layui-btn-container .layui-btn{margin-right:10px;margin-bottom:10px}.layui-btn-container .layui-btn+.layui-btn{margin-left:0}.layui-table .layui-btn-container .layui-btn{margin-bottom:9px}.layui-btn-radius{border-radius:100px}.layui-btn .layui-icon{padding:0 2px;vertical-align:middle\0;vertical-align:bottom}.layui-btn-primary{border-color:#d2d2d2;background:0 0;color:#5f5f5f}.layui-btn-primary:hover{border-color:#009688;color:#333}.layui-btn-normal{background-color:#1e9fff}.layui-btn-warm{background-color:#ffb800}.layui-btn-danger{background-color:#ff5722}.layui-btn-checked{background-color:#5fb878}.layui-btn-disabled,.layui-btn-disabled:active,.layui-btn-disabled:hover{border-color:#eee!important;background-color:#fbfbfb!important;color:#d2d2d2!important;cursor:not-allowed!important;opacity:1}.layui-btn-lg{height:44px;line-height:44px;padding:0 25px;font-size:16px}.layui-btn-sm{height:30px;line-height:30px;padding:0 10px;font-size:12px}.layui-btn-xs{height:22px;line-height:22px;padding:0 5px;font-size:12px}.layui-btn-xs i{font-size:12px!important}.layui-btn-group{display:inline-block;vertical-align:middle;font-size:0}.layui-btn-group .layui-btn{margin-left:0!important;margin-right:0!important;border-left:1px solid rgba(255,255,255,.5);border-radius:0}.layui-btn-group .layui-btn-primary{border-left:none}.layui-btn-group .layui-btn-primary:hover{border-color:#d2d2d2;color:#009688}.layui-btn-group .layui-btn:first-child{border-left:none;border-radius:2px 0 0 2px}.layui-btn-group .layui-btn-primary:first-child{border-left:1px solid #d2d2d2}.layui-btn-group .layui-btn:last-child{border-radius:0 2px 2px 0}.layui-btn-group .layui-btn+.layui-btn{margin-left:0}.layui-btn-group+.layui-btn-group{margin-left:10px}.layui-btn-fluid{width:100%}.layui-input,.layui-select,.layui-textarea{height:38px;line-height:1.3;line-height:38px\9;border-width:1px;border-style:solid;background-color:#fff;color:rgba(0,0,0,.85);border-radius:2px}.layui-input::-webkit-input-placeholder,.layui-select::-webkit-input-placeholder,.layui-textarea::-webkit-input-placeholder{line-height:1.3}.layui-input,.layui-textarea{display:block;width:100%;padding-left:10px}.layui-input:hover,.layui-textarea:hover{border-color:#eee!important}.layui-input:focus,.layui-textarea:focus{border-color:#d2d2d2!important}.layui-textarea{position:relative;min-height:100px;height:auto;line-height:20px;padding:6px 10px;resize:vertical}.layui-select{padding:0 10px}.layui-form input[type=checkbox],.layui-form input[type=radio],.layui-form select{display:none}.layui-form [lay-ignore]{display:initial}.layui-form-item{margin-bottom:15px;clear:both;*zoom:1}.layui-form-item:after{content:'\20';clear:both;*zoom:1;display:block;height:0}.layui-form-label{position:relative;float:left;display:block;padding:9px 15px;width:80px;font-weight:400;line-height:20px;text-align:right}.layui-form-label-col{display:block;float:none;padding:9px 0;line-height:20px;text-align:left}.layui-form-item .layui-inline{margin-bottom:5px;margin-right:10px}.layui-input-block,.layui-input-inline{position:relative}.layui-input-block{margin-left:110px;min-height:36px}.layui-input-inline{display:inline-block;vertical-align:middle}.layui-form-item .layui-input-inline{float:left;width:190px;margin-right:10px}.layui-form-text .layui-input-inline{width:auto}.layui-form-mid{position:relative;float:left;display:block;padding:9px 0!important;line-height:20px;margin-right:10px}.layui-form-danger+.layui-form-select .layui-input,.layui-form-danger:focus{border-color:#ff5722!important}.layui-form-select{position:relative}.layui-form-select .layui-input{padding-right:30px;cursor:pointer}.layui-form-select .layui-edge{position:absolute;right:10px;top:50%;margin-top:-3px;cursor:pointer;border-width:6px;border-top-color:#c2c2c2;border-top-style:solid;transition:all .3s;-webkit-transition:all .3s}.layui-form-select dl{display:none;position:absolute;left:0;top:42px;padding:5px 0;z-index:899;min-width:100%;border:1px solid #eee;max-height:300px;overflow-y:auto;background-color:#fff;border-radius:2px;box-shadow:1px 1px 4px rgb(0 0 0 / 8%);box-sizing:border-box}.layui-form-select dl dd,.layui-form-select dl dt{padding:0 10px;line-height:36px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.layui-form-select dl dt{font-size:12px;color:#999}.layui-form-select dl dd{cursor:pointer}.layui-form-select dl dd:hover{background-color:#f6f6f6;-webkit-transition:.5s all;transition:.5s all}.layui-form-select .layui-select-group dd{padding-left:20px}.layui-form-select dl dd.layui-select-tips{padding-left:10px!important;color:#999}.layui-form-select dl dd.layui-this{background-color:#5fb878;color:#fff}.layui-form-select dl dd.layui-disabled{background-color:#fff}.layui-form-selected dl{display:block}.layui-form-selected .layui-edge{margin-top:-9px;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.layui-form-selected .layui-edge{margin-top:-3px\0}:root .layui-form-selected .layui-edge{margin-top:-9px\0/IE9}.layui-form-selectup dl{top:auto;bottom:42px}.layui-select-none{margin:5px 0;text-align:center;color:#999}.layui-select-disabled .layui-disabled{border-color:#eee!important}.layui-select-disabled .layui-edge{border-top-color:#d2d2d2}.layui-form-checkbox{position:relative;display:inline-block;vertical-align:middle;height:30px;line-height:30px;margin-right:10px;padding-right:30px;background-color:#fff;cursor:pointer;font-size:0;-webkit-transition:.1s linear;transition:.1s linear;box-sizing:border-box}.layui-form-checkbox *{display:inline-block;vertical-align:middle}.layui-form-checkbox span{padding:0 10px;height:100%;font-size:14px;border-radius:2px 0 0 2px;background-color:#d2d2d2;color:#fff;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.layui-form-checkbox:hover span{background-color:#c2c2c2}.layui-form-checkbox i{position:absolute;right:0;top:0;width:30px;height:28px;border:1px solid #d2d2d2;border-left:none;border-radius:0 2px 2px 0;color:#fff;font-size:20px;text-align:center}.layui-form-checkbox:hover i{border-color:#c2c2c2;color:#c2c2c2}.layui-form-checked,.layui-form-checked:hover{border-color:#5fb878}.layui-form-checked span,.layui-form-checked:hover span{background-color:#5fb878}.layui-form-checked i,.layui-form-checked:hover i{color:#5fb878}.layui-form-item .layui-form-checkbox{margin-top:4px}.layui-form-checkbox[lay-skin=primary]{height:auto!important;line-height:normal!important;min-width:18px;min-height:18px;border:none!important;margin-right:0;padding-left:28px;padding-right:0;background:0 0}.layui-form-checkbox[lay-skin=primary] span{padding-left:0;padding-right:15px;line-height:18px;background:0 0;color:#5f5f5f}.layui-form-checkbox[lay-skin=primary] i{right:auto;left:0;width:16px;height:16px;line-height:16px;border:1px solid #d2d2d2;font-size:12px;border-radius:2px;background-color:#fff;-webkit-transition:.1s linear;transition:.1s linear}.layui-form-checkbox[lay-skin=primary]:hover i{border-color:#5fb878;color:#fff}.layui-form-checked[lay-skin=primary] i{border-color:#5fb878!important;background-color:#5fb878;color:#fff}.layui-checkbox-disabled[lay-skin=primary] span{background:0 0!important;color:#c2c2c2!important}.layui-form-checked.layui-checkbox-disabled[lay-skin=primary] i{background:#eee!important;border-color:#eee!important}.layui-checkbox-disabled[lay-skin=primary]:hover i{border-color:#d2d2d2}.layui-form-item .layui-form-checkbox[lay-skin=primary]{margin-top:10px}.layui-form-switch{position:relative;display:inline-block;vertical-align:middle;height:22px;line-height:22px;min-width:35px;padding:0 5px;margin-top:8px;border:1px solid #d2d2d2;border-radius:20px;cursor:pointer;background-color:#fff;-webkit-transition:.1s linear;transition:.1s linear}.layui-form-switch i{position:absolute;left:5px;top:3px;width:16px;height:16px;border-radius:20px;background-color:#d2d2d2;-webkit-transition:.1s linear;transition:.1s linear}.layui-form-switch em{position:relative;top:0;width:25px;margin-left:21px;padding:0!important;text-align:center!important;color:#999!important;font-style:normal!important;font-size:12px}.layui-form-onswitch{border-color:#5fb878;background-color:#5fb878}.layui-form-onswitch i{left:100%;margin-left:-21px;background-color:#fff}.layui-form-onswitch em{margin-left:5px;margin-right:21px;color:#fff!important}.layui-checkbox-disabled{border-color:#eee!important}.layui-checkbox-disabled span{background-color:#eee!important}.layui-checkbox-disabled i{border-color:#eee!important}.layui-checkbox-disabled em{color:#d2d2d2!important}.layui-checkbox-disabled:hover i{color:#fff!important}[lay-radio]{display:none}.layui-form-radio{display:inline-block;vertical-align:middle;line-height:28px;margin:6px 10px 0 0;padding-right:10px;cursor:pointer;font-size:0}.layui-form-radio *{display:inline-block;vertical-align:middle;font-size:14px}.layui-form-radio>i{margin-right:8px;font-size:22px;color:#c2c2c2}.layui-form-radio:hover *,.layui-form-radioed,.layui-form-radioed>i{color:#5fb878}.layui-radio-disabled>i{color:#eee!important}.layui-radio-disabled *{color:#c2c2c2!important}.layui-form-pane .layui-form-label{width:110px;padding:8px 15px;height:38px;line-height:20px;border-width:1px;border-style:solid;border-radius:2px 0 0 2px;text-align:center;background-color:#fafafa;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box}.layui-form-pane .layui-input-inline{margin-left:-1px}.layui-form-pane .layui-input-block{margin-left:110px;left:-1px}.layui-form-pane .layui-input{border-radius:0 2px 2px 0}.layui-form-pane .layui-form-text .layui-form-label{float:none;width:100%;border-radius:2px;box-sizing:border-box;text-align:left}.layui-form-pane .layui-form-text .layui-input-inline{display:block;margin:0;top:-1px;clear:both}.layui-form-pane .layui-form-text .layui-input-block{margin:0;left:0;top:-1px}.layui-form-pane .layui-form-text .layui-textarea{min-height:100px;border-radius:0 0 2px 2px}.layui-form-pane .layui-form-checkbox{margin:4px 0 4px 10px}.layui-form-pane .layui-form-radio,.layui-form-pane .layui-form-switch{margin-top:6px;margin-left:10px}.layui-form-pane .layui-form-item[pane]{position:relative;border-width:1px;border-style:solid}.layui-form-pane .layui-form-item[pane] .layui-form-label{position:absolute;left:0;top:0;height:100%;border-width:0;border-right-width:1px}.layui-form-pane .layui-form-item[pane] .layui-input-inline{margin-left:110px}@media screen and (max-width:450px){.layui-form-item .layui-form-label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-form-item .layui-inline{display:block;margin-right:0;margin-bottom:20px;clear:both}.layui-form-item .layui-inline:after{content:'\20';clear:both;display:block;height:0}.layui-form-item .layui-input-inline{display:block;float:none;left:-3px;width:auto!important;margin:0 0 10px 112px}.layui-form-item .layui-input-inline+.layui-form-mid{margin-left:110px;top:-5px;padding:0}.layui-form-item .layui-form-checkbox{margin-right:5px;margin-bottom:5px}}.layui-layedit{border-width:1px;border-style:solid;border-radius:2px}.layui-layedit-tool{padding:3px 5px;border-bottom-width:1px;border-bottom-style:solid;font-size:0}.layedit-tool-fixed{position:fixed;top:0;border-top:1px solid #eee}.layui-layedit-tool .layedit-tool-mid,.layui-layedit-tool .layui-icon{display:inline-block;vertical-align:middle;text-align:center;font-size:14px}.layui-layedit-tool .layui-icon{position:relative;width:32px;height:30px;line-height:30px;margin:3px 5px;border-radius:2px;color:#777;cursor:pointer;border-radius:2px}.layui-layedit-tool .layui-icon:hover{color:#393d49}.layui-layedit-tool .layui-icon:active{color:#000}.layui-layedit-tool .layedit-tool-active{background-color:#eee;color:#000}.layui-layedit-tool .layui-disabled,.layui-layedit-tool .layui-disabled:hover{color:#d2d2d2;cursor:not-allowed}.layui-layedit-tool .layedit-tool-mid{width:1px;height:18px;margin:0 10px;background-color:#d2d2d2}.layedit-tool-html{width:50px!important;font-size:30px!important}.layedit-tool-b,.layedit-tool-code,.layedit-tool-help{font-size:16px!important}.layedit-tool-d,.layedit-tool-face,.layedit-tool-image,.layedit-tool-unlink{font-size:18px!important}.layedit-tool-image input{position:absolute;font-size:0;left:0;top:0;width:100%;height:100%;opacity:.01;filter:Alpha(opacity=1);cursor:pointer}.layedit-tool-file{font-size:20px!important}.layedit-tool-file input{position:absolute;font-size:0;left:0;top:0;width:100%;height:100%;opacity:.01;filter:Alpha(opacity=1);cursor:pointer}.layui-layedit-iframe iframe{display:block;width:100%}#LAY_layedit_code{overflow:hidden}.layui-laypage{display:inline-block;*display:inline;*zoom:1;vertical-align:middle;margin:10px 0;font-size:0}.layui-laypage>a:first-child,.layui-laypage>a:first-child em{border-radius:2px 0 0 2px}.layui-laypage>a:last-child,.layui-laypage>a:last-child em{border-radius:0 2px 2px 0}.layui-laypage>:first-child{margin-left:0!important}.layui-laypage>:last-child{margin-right:0!important}.layui-laypage a,.layui-laypage button,.layui-laypage input,.layui-laypage select,.layui-laypage span{border:1px solid #eee}.layui-laypage a,.layui-laypage span{display:inline-block;*display:inline;*zoom:1;vertical-align:middle;padding:0 15px;height:28px;line-height:28px;margin:0 -1px 5px 0;background-color:#fff;color:#333;font-size:12px}.layui-laypage a:hover{color:#009688}.layui-laypage em{font-style:normal}.layui-laypage .layui-laypage-spr{color:#999;font-weight:700}.layui-laypage a{text-decoration:none}.layui-laypage .layui-laypage-curr{position:relative}.layui-laypage .layui-laypage-curr em{position:relative;color:#fff}.layui-laypage .layui-laypage-curr .layui-laypage-em{position:absolute;left:-1px;top:-1px;padding:1px;width:100%;height:100%;background-color:#009688}.layui-laypage-em{border-radius:2px}.layui-laypage-next em,.layui-laypage-prev em{font-family:Sim sun;font-size:16px}.layui-laypage .layui-laypage-count,.layui-laypage .layui-laypage-limits,.layui-laypage .layui-laypage-refresh,.layui-laypage .layui-laypage-skip{margin-left:10px;margin-right:10px;padding:0;border:none}.layui-laypage .layui-laypage-limits,.layui-laypage .layui-laypage-refresh{vertical-align:top}.layui-laypage .layui-laypage-refresh i{font-size:18px;cursor:pointer}.layui-laypage select{height:22px;padding:3px;border-radius:2px;cursor:pointer}.layui-laypage .layui-laypage-skip{height:30px;line-height:30px;color:#999}.layui-laypage button,.layui-laypage input{height:30px;line-height:30px;border-radius:2px;vertical-align:top;background-color:#fff;box-sizing:border-box}.layui-laypage input{display:inline-block;width:40px;margin:0 10px;padding:0 3px;text-align:center}.layui-laypage input:focus,.layui-laypage select:focus{border-color:#009688!important}.layui-laypage button{margin-left:10px;padding:0 10px;cursor:pointer}.layui-flow-more{margin:10px 0;text-align:center;color:#999;font-size:14px}.layui-flow-more a{height:32px;line-height:32px}.layui-flow-more a *{display:inline-block;vertical-align:top}.layui-flow-more a cite{padding:0 20px;border-radius:3px;background-color:#eee;color:#333;font-style:normal}.layui-flow-more a cite:hover{opacity:.8}.layui-flow-more a i{font-size:30px;color:#737383}.layui-table{width:100%;margin:10px 0;background-color:#fff;color:#5f5f5f}.layui-table tr{transition:all .3s;-webkit-transition:all .3s}.layui-table th{text-align:left;font-weight:400}.layui-table tbody tr:hover,.layui-table thead tr,.layui-table-click,.layui-table-header,.layui-table-hover,.layui-table-mend,.layui-table-patch,.layui-table-tool,.layui-table-total,.layui-table-total tr{background-color:#fafafa}.layui-table[lay-even] tr:nth-child(even){background-color:#f2f2f2}.layui-table td,.layui-table th,.layui-table-col-set,.layui-table-fixed-r,.layui-table-grid-down,.layui-table-header,.layui-table-page,.layui-table-tips-main,.layui-table-tool,.layui-table-total,.layui-table-view,.layui-table[lay-skin=line],.layui-table[lay-skin=row]{border-width:1px;border-style:solid;border-color:#eee}.layui-table td,.layui-table th{position:relative;padding:9px 15px;min-height:20px;line-height:20px;font-size:14px}.layui-table[lay-skin=line] td,.layui-table[lay-skin=line] th{border-width:0;border-bottom-width:1px}.layui-table[lay-skin=row] td,.layui-table[lay-skin=row] th{border-width:0;border-right-width:1px}.layui-table[lay-skin=nob] td,.layui-table[lay-skin=nob] th{border:none}.layui-table img{max-width:100px}.layui-table[lay-size=lg] td,.layui-table[lay-size=lg] th{padding-top:15px;padding-right:30px;padding-bottom:15px;padding-left:30px}.layui-table-view .layui-table[lay-size=lg] .layui-table-cell{height:50px;line-height:40px}.layui-table[lay-size=sm] td,.layui-table[lay-size=sm] th{padding-top:5px;padding-right:10px;padding-bottom:5px;padding-left:10px;font-size:12px}.layui-table-view .layui-table[lay-size=sm] .layui-table-cell{height:30px;line-height:20px;padding-top:5px;padding-right:5px}.layui-table[lay-data]{display:none}.layui-table-box{position:relative;overflow:hidden}.layui-table-view{margin:10px 0}.layui-table-view .layui-table{position:relative;width:auto;margin:0;border:0;border-collapse:separate}.layui-table-view .layui-table[lay-skin=line]{border-width:0;border-right-width:1px}.layui-table-view .layui-table[lay-skin=row]{border-width:0;border-bottom-width:1px}.layui-table-view .layui-table td,.layui-table-view .layui-table th{padding:0;border-top:none;border-left:none}.layui-table-view .layui-table th.layui-unselect .layui-table-cell span{cursor:pointer}.layui-table-view .layui-table td{cursor:default}.layui-table-view .layui-table td[data-edit=text]{cursor:text}.layui-table-view .layui-form-checkbox[lay-skin=primary] i{width:18px;height:18px}.layui-table-view .layui-form-radio{line-height:0;padding:0}.layui-table-view .layui-form-radio>i{margin:0;font-size:20px}.layui-table-init{position:absolute;left:0;top:0;width:100%;height:100%;text-align:center;z-index:110}.layui-table-init .layui-icon{position:absolute;left:50%;top:50%;margin:-15px 0 0 -15px;font-size:30px;color:#c2c2c2}.layui-table-header{border-width:0;border-bottom-width:1px;overflow:hidden}.layui-table-header .layui-table{margin-bottom:-1px}.layui-table-column{position:relative;width:100%;min-height:41px;padding:8px 16px;border-width:0;border-bottom-width:1px}.layui-table-column .layui-btn-container{margin-bottom:-8px}.layui-table-column .layui-btn-container .layui-btn{margin-right:8px;margin-bottom:8px}.layui-table-tool .layui-inline[lay-event]{position:relative;width:26px;height:26px;padding:5px;line-height:16px;margin-right:10px;text-align:center;color:#333;border:1px solid #ccc;cursor:pointer;-webkit-transition:.5s all;transition:.5s all}.layui-table-tool .layui-inline[lay-event]:hover{border:1px solid #999}.layui-table-tool-temp{padding-right:120px}.layui-table-tool-self{position:absolute;right:17px;top:10px}.layui-table-tool .layui-table-tool-self .layui-inline[lay-event]{margin:0 0 0 10px}.layui-table-tool-panel{position:absolute;top:29px;left:-1px;padding:5px 0;min-width:150px;min-height:40px;border:1px solid #d2d2d2;text-align:left;overflow-y:auto;background-color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.12)}.layui-table-tool-panel li{padding:0 10px;line-height:30px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-transition:.5s all;transition:.5s all}.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary]{width:100%}.layui-table-tool-panel li:hover{background-color:#f6f6f6}.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary]{padding-left:28px}.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary] i{position:absolute;left:0;top:0}.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary] span{padding:0}.layui-table-tool .layui-table-tool-self .layui-table-tool-panel{left:auto;right:-1px}.layui-table-col-set{position:absolute;right:0;top:0;width:20px;height:100%;border-width:0;border-left-width:1px;background-color:#fff}.layui-table-sort{width:10px;height:20px;margin-left:5px;cursor:pointer!important}.layui-table-sort .layui-edge{position:absolute;left:5px;border-width:5px}.layui-table-sort .layui-table-sort-asc{top:3px;border-top:none;border-bottom-style:solid;border-bottom-color:#b2b2b2}.layui-table-sort .layui-table-sort-asc:hover{border-bottom-color:#5f5f5f}.layui-table-sort .layui-table-sort-desc{bottom:5px;border-bottom:none;border-top-style:solid;border-top-color:#b2b2b2}.layui-table-sort .layui-table-sort-desc:hover{border-top-color:#5f5f5f}.layui-table-sort[lay-sort=asc] .layui-table-sort-asc{border-bottom-color:#000}.layui-table-sort[lay-sort=desc] .layui-table-sort-desc{border-top-color:#000}.layui-table-cell{height:38px;line-height:28px;padding:6px 15px;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}.layui-table-cell .layui-form-checkbox[lay-skin=primary]{top:-1px;padding:0}.layui-table-cell .layui-table-link{color:#01aaed}.layui-table-cell .layui-btn{vertical-align:inherit}.layui-table-cell[align=center]{-webkit-box-pack:center}.layui-table-cell[align=right]{-webkit-box-pack:end}.laytable-cell-checkbox,.laytable-cell-numbers,.laytable-cell-radio,.laytable-cell-space{text-align:center;-webkit-box-pack:center}.layui-table-body{position:relative;overflow:auto;margin-right:-1px;margin-bottom:-1px}.layui-table-body .layui-none{line-height:26px;padding:30px 15px;text-align:center;color:#999}.layui-table-fixed{position:absolute;left:0;top:0;z-index:101}.layui-table-fixed .layui-table-body{overflow:hidden}.layui-table-fixed-l{box-shadow:1px 0 8px rgba(0,0,0,.08)}.layui-table-fixed-r{left:auto;right:-1px;border-width:0;border-left-width:1px;box-shadow:-1px 0 8px rgba(0,0,0,.08)}.layui-table-fixed-r .layui-table-header{position:relative;overflow:visible}.layui-table-mend{position:absolute;right:-49px;top:0;height:100%;width:50px}.layui-table-tool{position:relative;z-index:890;width:100%;min-height:50px;line-height:30px;padding:10px 15px;border-width:0;border-bottom-width:1px}.layui-table-tool .layui-btn-container{margin-bottom:-10px}.layui-table-total{margin-bottom:-1px;border-width:0;border-top-width:1px;overflow:hidden}.layui-table-page{z-index:880;border-width:0;border-top-width:1px;margin-bottom:-1px;white-space:nowrap;overflow:hidden}.layui-table-page>div{height:26px}.layui-table-page .layui-laypage{margin:0}.layui-table-page .layui-laypage a,.layui-table-page .layui-laypage span{height:26px;line-height:26px;margin-bottom:10px;border:none;background:0 0}.layui-table-page .layui-laypage a,.layui-table-page .layui-laypage span.layui-laypage-curr{padding:0 12px}.layui-table-page .layui-laypage span{margin-left:0;padding:0}.layui-table-page .layui-laypage .layui-laypage-prev{margin-left:-11px!important}.layui-table-page .layui-laypage .layui-laypage-curr .layui-laypage-em{left:0;top:0;padding:0}.layui-table-page .layui-laypage button,.layui-table-page .layui-laypage input{height:26px;line-height:26px}.layui-table-page .layui-laypage input{width:40px}.layui-table-page .layui-laypage button{padding:0 10px}.layui-table-page select{height:18px}.layui-table-pagebar{float:right;line-height:23px}.layui-table-pagebar .layui-btn-sm{margin-top:-1px}.layui-table-pagebar .layui-btn-xs{margin-top:2px}.layui-table-view select[lay-ignore]{display:inline-block}.layui-table-patch .layui-table-cell{padding:0;width:30px}.layui-table-edit{position:absolute;left:0;top:0;z-index:900;min-width:100%;min-height:100%;padding:5px 14px;border-radius:0;box-shadow:1px 1px 20px rgba(0,0,0,.15);background-color:#fff}.layui-table-edit:focus{border-color:#5fb878!important}input.layui-input.layui-table-edit{height:100%}select.layui-table-edit{padding:0 0 0 10px;border-color:#d2d2d2}.layui-table-view .layui-form-checkbox,.layui-table-view .layui-form-radio,.layui-table-view .layui-form-switch{top:0;margin:0;box-sizing:content-box}.layui-table-view .layui-form-checkbox{top:-1px;height:26px;line-height:26px}.layui-table-view .layui-form-checkbox i{height:26px}.layui-table-grid .layui-table-cell{overflow:visible}.layui-table-grid-down{position:absolute;top:0;right:0;width:26px;height:100%;padding:5px 0;border-width:0;border-left-width:1px;text-align:center;background-color:#fff;color:#999;cursor:pointer}.layui-table-grid-down .layui-icon{position:absolute;top:50%;left:50%;margin:-8px 0 0 -8px}.layui-table-grid-down:hover{background-color:#fbfbfb}body .layui-table-tips .layui-layer-content{background:0 0;padding:0;box-shadow:0 1px 6px rgba(0,0,0,.12)}.layui-table-tips-main{margin:-49px 0 0 -1px;max-height:150px;padding:8px 15px;font-size:14px;overflow-y:scroll;background-color:#fff;color:#5f5f5f}.layui-table-tips-c{position:absolute;right:-3px;top:-13px;width:20px;height:20px;padding:3px;cursor:pointer;background-color:#5f5f5f;border-radius:50%;color:#fff}.layui-table-tips-c:hover{background-color:#777}.layui-table-tips-c:before{position:relative;right:-2px}.layui-upload-file{display:none!important;opacity:.01;filter:Alpha(opacity=1)}.layui-upload-list{margin:10px 0}.layui-upload-choose{max-width:200px;padding:0 10px;color:#999;font-size:14px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-upload-drag{position:relative;display:inline-block;padding:30px;border:1px dashed #e2e2e2;background-color:#fff;text-align:center;cursor:pointer;color:#999}.layui-upload-drag .layui-icon{font-size:50px;color:#009688}.layui-upload-drag[lay-over]{border-color:#009688}.layui-upload-form{display:inline-block}.layui-upload-iframe{position:absolute;width:0;height:0;border:0;visibility:hidden}.layui-upload-wrap{position:relative;display:inline-block;vertical-align:middle}.layui-upload-wrap .layui-upload-file{display:block!important;position:absolute;left:0;top:0;z-index:10;font-size:100px;width:100%;height:100%;opacity:.01;filter:Alpha(opacity=1);cursor:pointer}.layui-btn-container .layui-upload-choose{padding-left:0}.layui-menu{position:relative;margin:5px 0;background-color:#fff;box-sizing:border-box}.layui-menu *{box-sizing:border-box}.layui-menu li,.layui-menu-body-title a{padding:5px 15px}.layui-menu li{position:relative;margin:1px 0;width:calc(100% + 1px);line-height:26px;color:rgba(0,0,0,.8);font-size:14px;white-space:nowrap;cursor:pointer;transition:all .3s}.layui-menu li:hover{background-color:#f6f6f6}.layui-menu-item-parent:hover>.layui-menu-body-panel{display:block;animation-name:layui-fadein;animation-duration:.3s;animation-fill-mode:both;animation-delay:.2s}.layui-menu-item-group .layui-menu-body-title,.layui-menu-item-parent .layui-menu-body-title{padding-right:25px}.layui-menu .layui-menu-item-divider:hover,.layui-menu .layui-menu-item-group:hover,.layui-menu .layui-menu-item-none:hover{background:0 0;cursor:default}.layui-menu .layui-menu-item-group>ul{margin:5px 0 -5px}.layui-menu .layui-menu-item-group>.layui-menu-body-title{color:rgba(0,0,0,.35);user-select:none}.layui-menu .layui-menu-item-none{color:rgba(0,0,0,.35);cursor:default}.layui-menu .layui-menu-item-none{text-align:center}.layui-menu .layui-menu-item-divider{margin:5px 0;padding:0;height:0;line-height:0;border-bottom:1px solid #eee;overflow:hidden}.layui-menu .layui-menu-item-down:hover,.layui-menu .layui-menu-item-up:hover{cursor:pointer}.layui-menu .layui-menu-item-up>.layui-menu-body-title{color:rgba(0,0,0,.8)}.layui-menu .layui-menu-item-up>ul{visibility:hidden;height:0;overflow:hidden}.layui-menu .layui-menu-item-down:hover>.layui-menu-body-title>.layui-icon,.layui-menu .layui-menu-item-up>.layui-menu-body-title:hover>.layui-icon{color:#000}.layui-menu .layui-menu-item-down>ul{visibility:visible;height:auto}.layui-menu .layui-menu-item-checked,.layui-menu .layui-menu-item-checked2{background-color:#f6f6f6!important;color:#5fb878}.layui-menu .layui-menu-item-checked a,.layui-menu .layui-menu-item-checked2 a{color:#5fb878}.layui-menu .layui-menu-item-checked:after{position:absolute;right:0;top:0;bottom:0;border-right:3px solid #5fb878;content:""}.layui-menu-body-title{position:relative;overflow:hidden;text-overflow:ellipsis}.layui-menu-body-title a{display:block;margin:-5px -15px;color:rgba(0,0,0,.8)}.layui-menu-body-title a:hover{transition:all .3s}.layui-menu-body-title>.layui-icon{position:absolute;right:0;top:0;font-size:14px}.layui-menu-body-title>.layui-icon:hover{transition:all .3s}.layui-menu-body-title>.layui-icon-right{right:-1px}.layui-menu-body-panel{display:none;position:absolute;top:-7px;left:100%;z-index:1000;margin-left:13px;padding:5px 0}.layui-menu-body-panel:before{content:"";position:absolute;width:20px;left:-16px;top:0;bottom:0}.layui-menu-body-panel-left{left:auto;right:100%;margin:0 13px 0}.layui-menu-body-panel-left:before{left:auto;right:-16px}.layui-menu-lg li{line-height:32px}.layui-menu-lg .layui-menu-body-title a:hover,.layui-menu-lg li:hover{background:0 0;color:#5fb878}.layui-menu-lg li .layui-menu-body-panel{margin-left:14px}.layui-menu-lg li .layui-menu-body-panel-left{margin:0 15px 0}.layui-dropdown{position:absolute;left:-999999px;top:-999999px;z-index:77777777;margin:5px 0;min-width:100px}.layui-dropdown:before{content:"";position:absolute;width:100%;height:6px;left:0;top:-6px}.layui-nav{position:relative;padding:0 20px;background-color:#393d49;color:#fff;border-radius:2px;font-size:0;box-sizing:border-box}.layui-nav *{font-size:14px}.layui-nav .layui-nav-item{position:relative;display:inline-block;*display:inline;*zoom:1;vertical-align:middle;line-height:60px}.layui-nav .layui-nav-item a{display:block;padding:0 20px;color:#fff;color:rgba(255,255,255,.7);transition:all .3s;-webkit-transition:all .3s}.layui-nav .layui-this:after,.layui-nav-bar{content:"";position:absolute;left:0;top:0;width:0;height:5px;background-color:#5fb878;transition:all .2s;-webkit-transition:all .2s;pointer-events:none}.layui-nav-bar{z-index:1000}.layui-nav[lay-bar=disabled] .layui-nav-bar{display:none}.layui-nav .layui-nav-item a:hover,.layui-nav .layui-this a{color:#fff}.layui-nav .layui-this:after{top:auto;bottom:0;width:100%}.layui-nav-img{width:30px;height:30px;margin-right:10px;border-radius:50%}.layui-nav .layui-nav-more{position:absolute;top:0;right:3px;left:auto!important;margin-top:0;font-size:12px;cursor:pointer;transition:all .2s;-webkit-transition:all .2s}.layui-nav .layui-nav-mored,.layui-nav-itemed>a .layui-nav-more{transform:rotate(180deg)}.layui-nav-child{display:none;position:absolute;left:0;top:65px;min-width:100%;line-height:36px;padding:5px 0;box-shadow:0 2px 4px rgba(0,0,0,.12);border:1px solid #eee;background-color:#fff;z-index:100;border-radius:2px;white-space:nowrap}.layui-nav .layui-nav-child a{color:#5f5f5f;color:rgba(0,0,0,.8)}.layui-nav .layui-nav-child a:hover{background-color:#f6f6f6;color:rgba(0,0,0,.8)}.layui-nav-child dd{margin:1px 0;position:relative}.layui-nav-child dd.layui-this{background-color:#f6f6f6;color:#000}.layui-nav-child dd.layui-this:after{display:none}.layui-nav-child-r{left:auto;right:0}.layui-nav-child-c{text-align:center}.layui-nav-tree{width:200px;padding:0}.layui-nav-tree .layui-nav-item{display:block;width:100%;line-height:40px}.layui-nav-tree .layui-nav-item a{position:relative;height:40px;line-height:40px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-nav-tree .layui-nav-item>a{padding-top:5px;padding-bottom:5px}.layui-nav-tree .layui-nav-more{right:15px}.layui-nav-tree .layui-nav-item>a .layui-nav-more{padding:5px 0}.layui-nav-tree .layui-nav-bar{width:5px;height:0}.layui-side .layui-nav-tree .layui-nav-bar{width:2px}.layui-nav-tree .layui-nav-child dd.layui-this,.layui-nav-tree .layui-nav-child dd.layui-this a,.layui-nav-tree .layui-this,.layui-nav-tree .layui-this>a,.layui-nav-tree .layui-this>a:hover{background-color:#009688;color:#fff}.layui-nav-tree .layui-this:after{display:none}.layui-nav-itemed>a,.layui-nav-tree .layui-nav-title a,.layui-nav-tree .layui-nav-title a:hover{color:#fff!important}.layui-nav-tree .layui-nav-bar{background-color:#009688}.layui-nav-tree .layui-nav-child{position:relative;z-index:0;top:0;border:none;box-shadow:none}.layui-nav-tree .layui-nav-child dd{margin:0}.layui-nav-tree .layui-nav-child a{color:#fff;color:rgba(255,255,255,.7)}.layui-nav-tree .layui-nav-child,.layui-nav-tree .layui-nav-child a:hover{background:0 0;color:#fff}.layui-nav-itemed>.layui-nav-child{display:block;background-color:rgba(0,0,0,.3)!important}.layui-nav-itemed>.layui-nav-child>.layui-this>.layui-nav-child{display:block}.layui-nav-side{position:fixed;top:0;bottom:0;left:0;overflow-x:hidden;z-index:999}.layui-breadcrumb{visibility:hidden;font-size:0}.layui-breadcrumb>*{font-size:14px}.layui-breadcrumb a{color:#999!important}.layui-breadcrumb a:hover{color:#5fb878!important}.layui-breadcrumb a cite{color:#5f5f5f;font-style:normal}.layui-breadcrumb span[lay-separator]{margin:0 10px;color:#999}.layui-tab{margin:10px 0;text-align:left!important}.layui-tab[overflow]>.layui-tab-title{overflow:hidden}.layui-tab-title{position:relative;left:0;height:40px;white-space:nowrap;font-size:0;border-bottom-width:1px;border-bottom-style:solid;transition:all .2s;-webkit-transition:all .2s}.layui-tab-title li{display:inline-block;*display:inline;*zoom:1;vertical-align:middle;font-size:14px;transition:all .2s;-webkit-transition:all .2s}.layui-tab-title li{position:relative;line-height:40px;min-width:65px;padding:0 15px;text-align:center;cursor:pointer}.layui-tab-title li a{display:block;padding:0 15px;margin:0 -15px}.layui-tab-title .layui-this{color:#000}.layui-tab-title .layui-this:after{position:absolute;left:0;top:0;content:"";width:100%;height:41px;border-width:1px;border-style:solid;border-bottom-color:#fff;border-radius:2px 2px 0 0;box-sizing:border-box;pointer-events:none}.layui-tab-bar{position:absolute;right:0;top:0;z-index:10;width:30px;height:39px;line-height:39px;border-width:1px;border-style:solid;border-radius:2px;text-align:center;background-color:#fff;cursor:pointer}.layui-tab-bar .layui-icon{position:relative;display:inline-block;top:3px;transition:all .3s;-webkit-transition:all .3s}.layui-tab-item{display:none}.layui-tab-more{padding-right:30px;height:auto!important;white-space:normal!important}.layui-tab-more li.layui-this:after{border-bottom-color:#eee;border-radius:2px}.layui-tab-more .layui-tab-bar .layui-icon{top:-2px;top:3px\0;-webkit-transform:rotate(180deg);transform:rotate(180deg)}:root .layui-tab-more .layui-tab-bar .layui-icon{top:-2px\0/IE9}.layui-tab-content{padding:15px 0}.layui-tab-title li .layui-tab-close{position:relative;display:inline-block;width:18px;height:18px;line-height:20px;margin-left:8px;top:1px;text-align:center;font-size:14px;color:#c2c2c2;transition:all .2s;-webkit-transition:all .2s}.layui-tab-title li .layui-tab-close:hover{border-radius:2px;background-color:#ff5722;color:#fff}.layui-tab-brief>.layui-tab-title .layui-this{color:#009688}.layui-tab-brief>.layui-tab-more li.layui-this:after,.layui-tab-brief>.layui-tab-title .layui-this:after{border:none;border-radius:0;border-bottom:2px solid #5fb878}.layui-tab-brief[overflow]>.layui-tab-title .layui-this:after{top:-1px}.layui-tab-card{border-width:1px;border-style:solid;border-radius:2px;box-shadow:0 2px 5px 0 rgba(0,0,0,.1)}.layui-tab-card>.layui-tab-title{background-color:#fafafa}.layui-tab-card>.layui-tab-title li{margin-right:-1px;margin-left:-1px}.layui-tab-card>.layui-tab-title .layui-this{background-color:#fff}.layui-tab-card>.layui-tab-title .layui-this:after{border-top:none;border-width:1px;border-bottom-color:#fff}.layui-tab-card>.layui-tab-title .layui-tab-bar{height:40px;line-height:40px;border-radius:0;border-top:none;border-right:none}.layui-tab-card>.layui-tab-more .layui-this{background:0 0;color:#5fb878}.layui-tab-card>.layui-tab-more .layui-this:after{border:none}.layui-timeline{padding-left:5px}.layui-timeline-item{position:relative;padding-bottom:20px}.layui-timeline-axis{position:absolute;left:-5px;top:0;z-index:10;width:20px;height:20px;line-height:20px;background-color:#fff;color:#5fb878;border-radius:50%;text-align:center;cursor:pointer}.layui-timeline-axis:hover{color:#ff5722}.layui-timeline-item:before{content:"";position:absolute;left:5px;top:0;z-index:0;width:1px;height:100%}.layui-timeline-item:first-child:before{display:block}.layui-timeline-item:last-child:before{display:none}.layui-timeline-content{padding-left:25px}.layui-timeline-title{position:relative;margin-bottom:10px;line-height:22px}.layui-badge,.layui-badge-dot,.layui-badge-rim{position:relative;display:inline-block;padding:0 6px;font-size:12px;text-align:center;background-color:#ff5722;color:#fff;border-radius:2px}.layui-badge{height:18px;line-height:18px}.layui-badge-dot{width:8px;height:8px;padding:0;border-radius:50%}.layui-badge-rim{height:18px;line-height:18px;border-width:1px;border-style:solid;background-color:#fff;color:#5f5f5f}.layui-btn .layui-badge,.layui-btn .layui-badge-dot{margin-left:5px}.layui-nav .layui-badge,.layui-nav .layui-badge-dot{position:absolute;top:50%;margin:-5px 6px 0}.layui-nav .layui-badge{margin-top:-10px}.layui-tab-title .layui-badge,.layui-tab-title .layui-badge-dot{left:5px;top:-2px}.layui-carousel{position:relative;left:0;top:0;background-color:#f8f8f8}.layui-carousel>[carousel-item]{position:relative;width:100%;height:100%;overflow:hidden}.layui-carousel>[carousel-item]:before{position:absolute;content:'\e63d';left:50%;top:50%;width:100px;line-height:20px;margin:-10px 0 0 -50px;text-align:center;color:#c2c2c2;font-family:layui-icon!important;font-size:30px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.layui-carousel>[carousel-item]>*{display:none;position:absolute;left:0;top:0;width:100%;height:100%;background-color:#f8f8f8;transition-duration:.3s;-webkit-transition-duration:.3s}.layui-carousel-updown>*{-webkit-transition:.3s ease-in-out up;transition:.3s ease-in-out up}.layui-carousel-arrow{display:none\0;opacity:0;position:absolute;left:10px;top:50%;margin-top:-18px;width:36px;height:36px;line-height:36px;text-align:center;font-size:20px;border:none 0;border-radius:50%;background-color:rgba(0,0,0,.2);color:#fff;-webkit-transition-duration:.3s;transition-duration:.3s;cursor:pointer}.layui-carousel-arrow[lay-type=add]{left:auto!important;right:10px}.layui-carousel[lay-arrow=always] .layui-carousel-arrow{opacity:1;left:20px}.layui-carousel[lay-arrow=always] .layui-carousel-arrow[lay-type=add]{right:20px}.layui-carousel[lay-arrow=none] .layui-carousel-arrow{display:none}.layui-carousel-arrow:hover,.layui-carousel-ind ul:hover{background-color:rgba(0,0,0,.35)}.layui-carousel:hover .layui-carousel-arrow{display:block\0;opacity:1;left:20px}.layui-carousel:hover .layui-carousel-arrow[lay-type=add]{right:20px}.layui-carousel-ind{position:relative;top:-35px;width:100%;line-height:0!important;text-align:center;font-size:0}.layui-carousel[lay-indicator=outside]{margin-bottom:30px}.layui-carousel[lay-indicator=outside] .layui-carousel-ind{top:10px}.layui-carousel[lay-indicator=outside] .layui-carousel-ind ul{background-color:rgba(0,0,0,.5)}.layui-carousel[lay-indicator=none] .layui-carousel-ind{display:none}.layui-carousel-ind ul{display:inline-block;padding:5px;background-color:rgba(0,0,0,.2);border-radius:10px;-webkit-transition-duration:.3s;transition-duration:.3s}.layui-carousel-ind li{display:inline-block;width:10px;height:10px;margin:0 3px;font-size:14px;background-color:#eee;background-color:rgba(255,255,255,.5);border-radius:50%;cursor:pointer;-webkit-transition-duration:.3s;transition-duration:.3s}.layui-carousel-ind li:hover{background-color:rgba(255,255,255,.7)}.layui-carousel-ind li.layui-this{background-color:#fff}.layui-carousel>[carousel-item]>.layui-carousel-next,.layui-carousel>[carousel-item]>.layui-carousel-prev,.layui-carousel>[carousel-item]>.layui-this{display:block}.layui-carousel>[carousel-item]>.layui-this{left:0}.layui-carousel>[carousel-item]>.layui-carousel-prev{left:-100%}.layui-carousel>[carousel-item]>.layui-carousel-next{left:100%}.layui-carousel>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel>[carousel-item]>.layui-carousel-prev.layui-carousel-right{left:0}.layui-carousel>[carousel-item]>.layui-this.layui-carousel-left{left:-100%}.layui-carousel>[carousel-item]>.layui-this.layui-carousel-right{left:100%}.layui-carousel[lay-anim=updown] .layui-carousel-arrow{left:50%!important;top:20px;margin:0 0 0 -18px}.layui-carousel[lay-anim=updown] .layui-carousel-arrow[lay-type=add]{top:auto!important;bottom:20px}.layui-carousel[lay-anim=updown] .layui-carousel-ind{position:absolute;top:50%;right:20px;width:auto;height:auto}.layui-carousel[lay-anim=updown] .layui-carousel-ind ul{padding:3px 5px}.layui-carousel[lay-anim=updown] .layui-carousel-ind li{display:block;margin:6px 0}.layui-carousel[lay-anim=updown]>[carousel-item]>*{left:0!important}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this{top:0}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-prev{top:-100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-next{top:100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-prev.layui-carousel-right{top:0}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this.layui-carousel-left{top:-100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this.layui-carousel-right{top:100%}.layui-carousel[lay-anim=fade]>[carousel-item]>*{left:0!important}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-next,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-prev{opacity:0}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-prev.layui-carousel-right{opacity:1}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-this.layui-carousel-left,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-this.layui-carousel-right{opacity:0}.layui-fixbar{position:fixed;right:15px;bottom:15px;z-index:999999}.layui-fixbar li{width:50px;height:50px;line-height:50px;margin-bottom:1px;text-align:center;cursor:pointer;font-size:30px;background-color:#9f9f9f;color:#fff;border-radius:2px;opacity:.95}.layui-fixbar li:hover{opacity:.85}.layui-fixbar li:active{opacity:1}.layui-fixbar .layui-fixbar-top{display:none;font-size:40px}body .layui-util-face{border:none;background:0 0}body .layui-util-face .layui-layer-content{padding:0;background-color:#fff;color:#5f5f5f;box-shadow:none}.layui-util-face .layui-layer-TipsG{display:none}.layui-util-face ul{position:relative;width:372px;padding:10px;border:1px solid #d9d9d9;background-color:#fff;box-shadow:0 0 20px rgba(0,0,0,.2)}.layui-util-face ul li{cursor:pointer;float:left;border:1px solid #e8e8e8;height:22px;width:26px;overflow:hidden;margin:-1px 0 0 -1px;padding:4px 2px;text-align:center}.layui-util-face ul li:hover{position:relative;z-index:2;border:1px solid #eb7350;background:#fff9ec}.layui-code{position:relative;margin:10px 0;padding:15px;line-height:20px;border:1px solid #eee;border-left-width:6px;background-color:#fafafa;color:#333;font-family:Courier New;font-size:12px}.layui-transfer-box,.layui-transfer-header,.layui-transfer-search{border-width:0;border-style:solid;border-color:#eee}.layui-transfer-box{position:relative;display:inline-block;vertical-align:middle;border-width:1px;width:200px;height:360px;border-radius:2px;background-color:#fff}.layui-transfer-box .layui-form-checkbox{width:100%;margin:0!important}.layui-transfer-header{height:38px;line-height:38px;padding:0 10px;border-bottom-width:1px}.layui-transfer-search{position:relative;padding:10px;border-bottom-width:1px}.layui-transfer-search .layui-input{height:32px;padding-left:30px;font-size:12px}.layui-transfer-search .layui-icon-search{position:absolute;left:20px;top:50%;margin-top:-8px;color:#5f5f5f}.layui-transfer-active{margin:0 15px;display:inline-block;vertical-align:middle}.layui-transfer-active .layui-btn{display:block;margin:0;padding:0 15px;background-color:#5fb878;border-color:#5fb878;color:#fff}.layui-transfer-active .layui-btn-disabled{background-color:#fbfbfb;border-color:#eee;color:#d2d2d2}.layui-transfer-active .layui-btn:first-child{margin-bottom:15px}.layui-transfer-active .layui-btn .layui-icon{margin:0;font-size:14px!important}.layui-transfer-data{padding:5px 0;overflow:auto}.layui-transfer-data li{height:32px;line-height:32px;padding:0 10px}.layui-transfer-data li:hover{background-color:#f6f6f6;transition:.5s all}.layui-transfer-data .layui-none{padding:15px 10px;text-align:center;color:#999}.layui-rate,.layui-rate *{display:inline-block;vertical-align:middle}.layui-rate{padding:10px 5px 10px 0;font-size:0}.layui-rate li i.layui-icon{font-size:20px;color:#ffb800}.layui-rate li i.layui-icon{margin-right:5px;transition:all .3s;-webkit-transition:all .3s}.layui-rate li i:hover{cursor:pointer;transform:scale(1.12);-webkit-transform:scale(1.12)}.layui-rate[readonly] li i:hover{cursor:default;transform:scale(1)}.layui-colorpicker{width:26px;height:26px;border:1px solid #eee;padding:5px;border-radius:2px;line-height:24px;display:inline-block;cursor:pointer;transition:all .3s;-webkit-transition:all .3s}.layui-colorpicker:hover{border-color:#d2d2d2}.layui-colorpicker.layui-colorpicker-lg{width:34px;height:34px;line-height:32px}.layui-colorpicker.layui-colorpicker-sm{width:24px;height:24px;line-height:22px}.layui-colorpicker.layui-colorpicker-xs{width:22px;height:22px;line-height:20px}.layui-colorpicker-trigger-bgcolor{display:block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);border-radius:2px}.layui-colorpicker-trigger-span{display:block;height:100%;box-sizing:border-box;border:1px solid rgba(0,0,0,.15);border-radius:2px;text-align:center}.layui-colorpicker-trigger-i{display:inline-block;color:#fff;font-size:12px}.layui-colorpicker-trigger-i.layui-icon-close{color:#999}.layui-colorpicker-main{position:absolute;left:-999999px;top:-999999px;z-index:77777777;width:280px;margin:5px 0;padding:7px;background:#fff;border:1px solid #d2d2d2;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.12)}.layui-colorpicker-main-wrapper{height:180px;position:relative}.layui-colorpicker-basis{width:260px;height:100%;position:relative}.layui-colorpicker-basis-white{width:100%;height:100%;position:absolute;top:0;left:0;background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.layui-colorpicker-basis-black{width:100%;height:100%;position:absolute;top:0;left:0;background:linear-gradient(0deg,#000,transparent)}.layui-colorpicker-basis-cursor{width:10px;height:10px;border:1px solid #fff;border-radius:50%;position:absolute;top:-3px;right:-3px;cursor:pointer}.layui-colorpicker-side{position:absolute;top:0;right:0;width:12px;height:100%;background:linear-gradient(red,#ff0,#0f0,#0ff,#00f,#f0f,red)}.layui-colorpicker-side-slider{width:100%;height:5px;box-shadow:0 0 1px #888;box-sizing:border-box;background:#fff;border-radius:1px;border:1px solid #f0f0f0;cursor:pointer;position:absolute;left:0}.layui-colorpicker-main-alpha{display:none;height:12px;margin-top:7px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.layui-colorpicker-alpha-bgcolor{height:100%;position:relative}.layui-colorpicker-alpha-slider{width:5px;height:100%;box-shadow:0 0 1px #888;box-sizing:border-box;background:#fff;border-radius:1px;border:1px solid #f0f0f0;cursor:pointer;position:absolute;top:0}.layui-colorpicker-main-pre{padding-top:7px;font-size:0}.layui-colorpicker-pre{width:20px;height:20px;border-radius:2px;display:inline-block;margin-left:6px;margin-bottom:7px;cursor:pointer}.layui-colorpicker-pre:nth-child(11n+1){margin-left:0}.layui-colorpicker-pre-isalpha{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.layui-colorpicker-pre.layui-this{box-shadow:0 0 3px 2px rgba(0,0,0,.15)}.layui-colorpicker-pre>div{height:100%;border-radius:2px}.layui-colorpicker-main-input{text-align:right;padding-top:7px}.layui-colorpicker-main-input .layui-btn-container .layui-btn{margin:0 0 0 10px}.layui-colorpicker-main-input div.layui-inline{float:left;margin-right:10px;font-size:14px}.layui-colorpicker-main-input input.layui-input{width:150px;height:30px;color:#5f5f5f}.layui-slider{height:4px;background:#eee;border-radius:3px;position:relative;cursor:pointer}.layui-slider-bar{border-radius:3px;position:absolute;height:100%}.layui-slider-step{position:absolute;top:0;width:4px;height:4px;border-radius:50%;background:#fff;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.layui-slider-wrap{width:36px;height:36px;position:absolute;top:-16px;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:10;text-align:center}.layui-slider-wrap-btn{width:12px;height:12px;border-radius:50%;background:#fff;display:inline-block;vertical-align:middle;cursor:pointer;transition:.3s}.layui-slider-wrap:after{content:"";height:100%;display:inline-block;vertical-align:middle}.layui-slider-wrap-btn.layui-slider-hover,.layui-slider-wrap-btn:hover{transform:scale(1.2)}.layui-slider-wrap-btn.layui-disabled:hover{transform:scale(1)!important}.layui-slider-tips{position:absolute;top:-42px;z-index:77777777;white-space:nowrap;display:none;-webkit-transform:translateX(-50%);transform:translateX(-50%);color:#fff;background:#000;border-radius:3px;height:25px;line-height:25px;padding:0 10px}.layui-slider-tips:after{content:"";position:absolute;bottom:-12px;left:50%;margin-left:-6px;width:0;height:0;border-width:6px;border-style:solid;border-color:#000 transparent transparent transparent}.layui-slider-input{width:70px;height:32px;border:1px solid #eee;border-radius:3px;font-size:16px;line-height:32px;position:absolute;right:0;top:-14px}.layui-slider-input-btn{position:absolute;top:0;right:0;width:20px;height:100%;border-left:1px solid #eee}.layui-slider-input-btn i{cursor:pointer;position:absolute;right:0;bottom:0;width:20px;height:50%;font-size:12px;line-height:16px;text-align:center;color:#999}.layui-slider-input-btn i:first-child{top:0;border-bottom:1px solid #eee}.layui-slider-input-txt{height:100%;font-size:14px}.layui-slider-input-txt input{height:100%;border:none}.layui-slider-input-btn i:hover{color:#009688}.layui-slider-vertical{width:4px;margin-left:33px}.layui-slider-vertical .layui-slider-bar{width:4px}.layui-slider-vertical .layui-slider-step{top:auto;left:0;-webkit-transform:translateY(50%);transform:translateY(50%)}.layui-slider-vertical .layui-slider-wrap{top:auto;left:-16px;-webkit-transform:translateY(50%);transform:translateY(50%)}.layui-slider-vertical .layui-slider-tips{top:auto;left:2px}@media \0screen{.layui-slider-wrap-btn{margin-left:-20px}.layui-slider-vertical .layui-slider-wrap-btn{margin-left:0;margin-bottom:-20px}.layui-slider-vertical .layui-slider-tips{margin-left:-8px}.layui-slider>span{margin-left:8px}}.layui-tree{line-height:22px}.layui-tree .layui-form-checkbox{margin:0!important}.layui-tree-set{width:100%;position:relative}.layui-tree-pack{display:none;padding-left:20px;position:relative}.layui-tree-line .layui-tree-pack{padding-left:27px}.layui-tree-line .layui-tree-set .layui-tree-set:after{content:"";position:absolute;top:14px;left:-9px;width:17px;height:0;border-top:1px dotted #c0c4cc}.layui-tree-entry{position:relative;padding:3px 0;height:20px;white-space:nowrap}.layui-tree-entry:hover{background-color:#eee}.layui-tree-line .layui-tree-entry:hover{background-color:rgba(0,0,0,0)}.layui-tree-line .layui-tree-entry:hover .layui-tree-txt{color:#999;text-decoration:underline;transition:.3s}.layui-tree-main{display:inline-block;vertical-align:middle;cursor:pointer;padding-right:10px}.layui-tree-line .layui-tree-set:before{content:"";position:absolute;top:0;left:-9px;width:0;height:100%;border-left:1px dotted #c0c4cc}.layui-tree-line .layui-tree-set.layui-tree-setLineShort:before{height:13px}.layui-tree-line .layui-tree-set.layui-tree-setHide:before{height:0}.layui-tree-iconClick{display:inline-block;vertical-align:middle;position:relative;height:20px;line-height:20px;margin:0 10px;color:#c0c4cc}.layui-tree-icon{height:12px;line-height:12px;width:12px;text-align:center;border:1px solid #c0c4cc}.layui-tree-iconClick .layui-icon{font-size:18px}.layui-tree-icon .layui-icon{font-size:12px;color:#5f5f5f}.layui-tree-iconArrow{padding:0 5px}.layui-tree-iconArrow:after{content:"";position:absolute;left:4px;top:3px;z-index:100;width:0;height:0;border-width:5px;border-style:solid;border-color:transparent transparent transparent #c0c4cc;transition:.5s}.layui-tree-spread>.layui-tree-entry .layui-tree-iconClick>.layui-tree-iconArrow:after{transform:rotate(90deg) translate(3px,4px)}.layui-tree-txt{display:inline-block;vertical-align:middle;color:#555}.layui-tree-search{margin-bottom:15px;color:#5f5f5f}.layui-tree-btnGroup{visibility:hidden;display:inline-block;vertical-align:middle;position:relative}.layui-tree-btnGroup .layui-icon{display:inline-block;vertical-align:middle;padding:0 2px;cursor:pointer}.layui-tree-btnGroup .layui-icon:hover{color:#999;transition:.3s}.layui-tree-entry:hover .layui-tree-btnGroup{visibility:visible}.layui-tree-editInput{position:relative;display:inline-block;vertical-align:middle;height:20px;line-height:20px;padding:0 3px;border:none;background-color:rgba(0,0,0,.05)}.layui-tree-emptyText{text-align:center;color:#999}.layui-anim{-webkit-animation-duration:.3s;-webkit-animation-fill-mode:both;animation-duration:.3s;animation-fill-mode:both}.layui-anim.layui-icon{display:inline-block}.layui-anim-loop{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.layui-trans,.layui-trans a{transition:all .2s;-webkit-transition:all .2s}@-webkit-keyframes layui-rotate{from{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(360deg)}}@keyframes layui-rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}.layui-anim-rotate{-webkit-animation-name:layui-rotate;animation-name:layui-rotate;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes layui-up{from{-webkit-transform:translate3d(0,100%,0);opacity:.3}to{-webkit-transform:translate3d(0,0,0);opacity:1}}@keyframes layui-up{from{transform:translate3d(0,100%,0);opacity:.3}to{transform:translate3d(0,0,0);opacity:1}}.layui-anim-up{-webkit-animation-name:layui-up;animation-name:layui-up}@-webkit-keyframes layui-upbit{from{-webkit-transform:translate3d(0,15px,0);opacity:.3}to{-webkit-transform:translate3d(0,0,0);opacity:1}}@keyframes layui-upbit{from{transform:translate3d(0,15px,0);opacity:.3}to{transform:translate3d(0,0,0);opacity:1}}.layui-anim-upbit{-webkit-animation-name:layui-upbit;animation-name:layui-upbit}@keyframes layui-down{0%{opacity:.3;transform:translate3d(0,-100%,0)}100%{opacity:1;transform:translate3d(0,0,0)}}.layui-anim-down{animation-name:layui-down}@keyframes layui-downbit{0%{opacity:.3;transform:translate3d(0,-5px,0)}100%{opacity:1;transform:translate3d(0,0,0)}}.layui-anim-downbit{animation-name:layui-downbit}@-webkit-keyframes layui-scale{0%{opacity:.3;-webkit-transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1)}}@keyframes layui-scale{0%{opacity:.3;-ms-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-ms-transform:scale(1);transform:scale(1)}}.layui-anim-scale{-webkit-animation-name:layui-scale;animation-name:layui-scale}@-webkit-keyframes layui-scale-spring{0%{opacity:.5;-webkit-transform:scale(.5)}80%{opacity:.8;-webkit-transform:scale(1.1)}100%{opacity:1;-webkit-transform:scale(1)}}@keyframes layui-scale-spring{0%{opacity:.5;transform:scale(.5)}80%{opacity:.8;transform:scale(1.1)}100%{opacity:1;transform:scale(1)}}.layui-anim-scaleSpring{-webkit-animation-name:layui-scale-spring;animation-name:layui-scale-spring}@keyframes layui-scalesmall{0%{opacity:.3;transform:scale(1.5)}100%{opacity:1;transform:scale(1)}}.layui-anim-scalesmall{animation-name:layui-scalesmall}@keyframes layui-scalesmall-spring{0%{opacity:.3;transform:scale(1.5)}80%{opacity:.8;transform:scale(.9)}100%{opacity:1;transform:scale(1)}}.layui-anim-scalesmall-spring{animation-name:layui-scalesmall-spring}@-webkit-keyframes layui-fadein{0%{opacity:0}100%{opacity:1}}@keyframes layui-fadein{0%{opacity:0}100%{opacity:1}}.layui-anim-fadein{-webkit-animation-name:layui-fadein;animation-name:layui-fadein}@-webkit-keyframes layui-fadeout{0%{opacity:1}100%{opacity:0}}@keyframes layui-fadeout{0%{opacity:1}100%{opacity:0}}.layui-anim-fadeout{-webkit-animation-name:layui-fadeout;animation-name:layui-fadeout}
\ No newline at end of file
diff --git a/web-v2-res/static/layui/css/modules/code.css b/web-v2-res/static/layui/css/modules/code.css
new file mode 100644
index 0000000..a2ff92a
--- /dev/null
+++ b/web-v2-res/static/layui/css/modules/code.css
@@ -0,0 +1 @@
+html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-view{display:block;position:relative;margin:10px 0;padding:0;border:1px solid #eee;border-left-width:6px;background-color:#fafafa;color:#333;font-family:Courier New;font-size:13px}.layui-code-title{position:relative;padding:0 10px;height:40px;line-height:40px;border-bottom:1px solid #eee;font-size:12px}.layui-code-title>.layui-code-about{position:absolute;right:10px;top:0;color:#b7b7b7}.layui-code-about>a{padding-left:10px}.layui-code-view>.layui-code-ol,.layui-code-view>.layui-code-ul{position:relative;overflow:auto}.layui-code-view>.layui-code-ol>li{position:relative;margin-left:45px;line-height:20px;padding:0 10px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view>.layui-code-ol>li:first-child,.layui-code-view>.layui-code-ul>li:first-child{padding-top:10px}.layui-code-view>.layui-code-ol>li:last-child,.layui-code-view>.layui-code-ul>li:last-child{padding-bottom:10px}.layui-code-view>.layui-code-ul>li{position:relative;line-height:20px;padding:0 10px;list-style-type:none;*list-style-type:none;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-dark{border:1px solid #0c0c0c;border-left-color:#3f3f3f;background-color:#0c0c0c;color:#c2be9e}.layui-code-dark>.layui-code-title{border-bottom:none}.layui-code-dark>.layui-code-ol>li,.layui-code-dark>.layui-code-ul>li{background-color:#3f3f3f;border-left:none}.layui-code-dark>.layui-code-ul>li{margin-left:6px}.layui-code-demo .layui-code{visibility:visible!important;margin:-15px;border-top:none;border-right:none;border-bottom:none}.layui-code-demo .layui-tab-content{padding:15px;border-top:none}
\ No newline at end of file
diff --git a/web-v2-res/static/layui/css/modules/laydate/default/laydate.css b/web-v2-res/static/layui/css/modules/laydate/default/laydate.css
new file mode 100644
index 0000000..549ccb8
--- /dev/null
+++ b/web-v2-res/static/layui/css/modules/laydate/default/laydate.css
@@ -0,0 +1 @@
+html #layuicss-laydate{display:none;position:absolute;width:1989px}.layui-laydate *{margin:0;padding:0}.layui-laydate,.layui-laydate *{box-sizing:border-box}.layui-laydate{position:absolute;z-index:66666666;margin:5px 0;border-radius:2px;font-size:14px;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.layui-laydate-main{width:272px}.layui-laydate-content td,.layui-laydate-header *,.layui-laydate-list li{transition-duration:.3s;-webkit-transition-duration:.3s}@keyframes laydate-downbit{0%{opacity:.3;transform:translate3d(0,-5px,0)}100%{opacity:1;transform:translate3d(0,0,0)}}.layui-laydate{animation-name:laydate-downbit}.layui-laydate-static{position:relative;z-index:0;display:inline-block;margin:0;-webkit-animation:none;animation:none}.laydate-ym-show .laydate-next-m,.laydate-ym-show .laydate-prev-m{display:none!important}.laydate-ym-show .laydate-next-y,.laydate-ym-show .laydate-prev-y{display:inline-block!important}.laydate-ym-show .laydate-set-ym span[lay-type=month]{display:none!important}.laydate-time-show .laydate-set-ym span[lay-type=month],.laydate-time-show .laydate-set-ym span[lay-type=year],.laydate-time-show .layui-laydate-header .layui-icon{display:none!important}.layui-laydate-header{position:relative;line-height:30px;padding:10px 70px 5px}.layui-laydate-header *{display:inline-block;vertical-align:bottom}.layui-laydate-header i{position:absolute;top:10px;padding:0 5px;color:#999;font-size:18px;cursor:pointer}.layui-laydate-header i.laydate-prev-y{left:15px}.layui-laydate-header i.laydate-prev-m{left:45px}.layui-laydate-header i.laydate-next-y{right:15px}.layui-laydate-header i.laydate-next-m{right:45px}.laydate-set-ym{width:100%;text-align:center;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.laydate-set-ym span{padding:0 10px;cursor:pointer}.laydate-time-text{cursor:default!important}.layui-laydate-content{position:relative;padding:10px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-laydate-content table{border-collapse:collapse;border-spacing:0}.layui-laydate-content td,.layui-laydate-content th{width:36px;height:30px;padding:5px;text-align:center}.layui-laydate-content th{font-weight:400}.layui-laydate-content td{position:relative;cursor:pointer}.laydate-day-mark{position:absolute;left:0;top:0;width:100%;line-height:30px;font-size:12px;overflow:hidden}.laydate-day-mark::after{position:absolute;content:'';right:2px;top:2px;width:5px;height:5px;border-radius:50%}.laydate-day-holidays:before{position:absolute;left:0;top:0;font-size:12px;transform:scale(.7)}.laydate-day-holidays:before{content:'\4F11';color:#ff5722}.laydate-day-holidays[type=work]:before{content:'\73ED';color:inherit}.layui-laydate .layui-this .laydate-day-holidays:before{color:#fff}.layui-laydate-footer{position:relative;height:46px;line-height:26px;padding:10px}.layui-laydate-footer span{display:inline-block;vertical-align:top;height:26px;line-height:24px;padding:0 10px;border:1px solid #c9c9c9;border-radius:2px;background-color:#fff;font-size:12px;cursor:pointer;white-space:nowrap;transition:all .3s}.layui-laydate-footer span:hover{color:#5fb878}.layui-laydate-footer span.layui-laydate-preview{cursor:default;border-color:transparent!important}.layui-laydate-footer span.layui-laydate-preview:hover{color:#666}.layui-laydate-footer span:first-child.layui-laydate-preview{padding-left:0}.laydate-footer-btns{position:absolute;right:10px;top:10px}.laydate-footer-btns span{margin:0 0 0 -1px}.layui-laydate-list{position:absolute;left:0;top:0;width:100%;height:100%;padding:10px;box-sizing:border-box;background-color:#fff}.layui-laydate-list>li{position:relative;display:inline-block;width:33.3%;height:36px;line-height:36px;margin:3px 0;vertical-align:middle;text-align:center;cursor:pointer}.laydate-month-list>li{width:25%;margin:17px 0}.laydate-time-list>li{height:100%;margin:0;line-height:normal;cursor:default}.laydate-time-list p{position:relative;top:-4px;line-height:29px}.laydate-time-list ol{height:181px;overflow:hidden}.laydate-time-list>li:hover ol{overflow-y:auto}.laydate-time-list ol li{width:130%;padding-left:33px;height:30px;line-height:30px;text-align:left;cursor:pointer}.layui-laydate-hint{position:absolute;top:115px;left:50%;width:250px;margin-left:-125px;line-height:20px;padding:15px;text-align:center;font-size:12px;color:#ff5722}.layui-laydate-range{width:546px}.layui-laydate-range .layui-laydate-main{display:inline-block;vertical-align:middle}.layui-laydate-range .laydate-main-list-1 .layui-laydate-content,.layui-laydate-range .laydate-main-list-1 .layui-laydate-header{border-left:1px solid #e2e2e2}.layui-laydate,.layui-laydate-hint{border:1px solid #d2d2d2;box-shadow:0 2px 4px rgba(0,0,0,.12);background-color:#fff;color:#666}.layui-laydate-header{border-bottom:1px solid #e2e2e2}.layui-laydate-header i:hover,.layui-laydate-header span:hover{color:#5fb878}.layui-laydate-content{border-top:none 0;border-bottom:none 0}.layui-laydate-content th{color:#333}.layui-laydate-content td{color:#666}.layui-laydate-content td.laydate-selected{background-color:#b5fff8}.laydate-selected:hover{background-color:#00f7de!important}.layui-laydate-content td:hover,.layui-laydate-list li:hover{background-color:#eee;color:#333}.laydate-time-list li ol{margin:0;padding:0;border:1px solid #e2e2e2;border-left-width:0}.laydate-time-list li:first-child ol{border-left-width:1px}.laydate-time-list>li:hover{background:0 0}.layui-laydate-content .laydate-day-next,.layui-laydate-content .laydate-day-prev{color:#d2d2d2}.laydate-selected.laydate-day-next,.laydate-selected.laydate-day-prev{background-color:#f8f8f8!important}.layui-laydate-footer{border-top:1px solid #e2e2e2}.layui-laydate-hint{color:#ff5722}.laydate-day-mark::after{background-color:#5fb878}.layui-laydate-content td.layui-this .laydate-day-mark::after{display:none}.layui-laydate-footer span[lay-type=date]{color:#5fb878}.layui-laydate .layui-this{background-color:#009688!important;color:#fff!important}.layui-laydate .laydate-disabled,.layui-laydate .laydate-disabled:hover{background:0 0!important;color:#d2d2d2!important;cursor:not-allowed!important;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.laydate-theme-molv{border:none}.laydate-theme-molv.layui-laydate-range{width:548px}.laydate-theme-molv .layui-laydate-main{width:274px}.laydate-theme-molv .layui-laydate-header{border:none;background-color:#009688}.laydate-theme-molv .layui-laydate-header i,.laydate-theme-molv .layui-laydate-header span{color:#f6f6f6}.laydate-theme-molv .layui-laydate-header i:hover,.laydate-theme-molv .layui-laydate-header span:hover{color:#fff}.laydate-theme-molv .layui-laydate-content{border:1px solid #e2e2e2;border-top:none;border-bottom:none}.laydate-theme-molv .laydate-main-list-1 .layui-laydate-content{border-left:none}.laydate-theme-molv .layui-laydate-footer{border:1px solid #e2e2e2}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li,.laydate-theme-grid .layui-laydate-content td,.laydate-theme-grid .layui-laydate-content thead{border:1px solid #e2e2e2}.laydate-theme-grid .laydate-selected,.laydate-theme-grid .laydate-selected:hover{background-color:#f2f2f2!important;color:#009688!important}.laydate-theme-grid .laydate-selected.laydate-day-next,.laydate-theme-grid .laydate-selected.laydate-day-prev{color:#d2d2d2!important}.laydate-theme-grid .laydate-month-list,.laydate-theme-grid .laydate-year-list{margin:1px 0 0 1px}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li{margin:0 -1px -1px 0}.laydate-theme-grid .laydate-year-list>li{height:43px;line-height:43px}.laydate-theme-grid .laydate-month-list>li{height:71px;line-height:71px}
\ No newline at end of file
diff --git a/web-v2-res/static/layui/css/modules/layer/default/icon-ext.png b/web-v2-res/static/layui/css/modules/layer/default/icon-ext.png
new file mode 100644
index 0000000..bbbb669
Binary files /dev/null and b/web-v2-res/static/layui/css/modules/layer/default/icon-ext.png differ
diff --git a/web-v2-res/static/layui/css/modules/layer/default/icon.png b/web-v2-res/static/layui/css/modules/layer/default/icon.png
new file mode 100644
index 0000000..3e17da8
Binary files /dev/null and b/web-v2-res/static/layui/css/modules/layer/default/icon.png differ
diff --git a/web-v2-res/static/layui/css/modules/layer/default/layer.css b/web-v2-res/static/layui/css/modules/layer/default/layer.css
new file mode 100644
index 0000000..d5122e3
--- /dev/null
+++ b/web-v2-res/static/layui/css/modules/layer/default/layer.css
@@ -0,0 +1 @@
+html #layuicss-layer{display:none;position:absolute;width:1989px}.layui-layer,.layui-layer-shade{position:fixed;_position:absolute;pointer-events:auto}.layui-layer-shade{top:0;left:0;width:100%;height:100%;_height:expression(document.body.offsetHeight+"px")}.layui-layer{-webkit-overflow-scrolling:touch}.layui-layer{top:150px;left:0;margin:0;padding:0;background-color:#fff;-webkit-background-clip:content;border-radius:2px;box-shadow:1px 1px 50px rgba(0,0,0,.3)}.layui-layer-close{position:absolute}.layui-layer-content{position:relative}.layui-layer-border{border:1px solid #b2b2b2;border:1px solid rgba(0,0,0,.1);box-shadow:1px 1px 5px rgba(0,0,0,.2)}.layui-layer-load{background:url(loading-1.gif) #eee center center no-repeat}.layui-layer-ico{background:url(icon.png) no-repeat}.layui-layer-btn a,.layui-layer-dialog .layui-layer-ico,.layui-layer-setwin a{display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-move{display:none;position:fixed;*position:absolute;left:0;top:0;width:100%;height:100%;cursor:move;opacity:0;filter:alpha(opacity=0);background-color:#fff;z-index:2147483647}.layui-layer-resize{position:absolute;width:15px;height:15px;right:0;bottom:0;cursor:se-resize}.layer-anim{-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.3s;animation-duration:.3s}@-webkit-keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-00{-webkit-animation-name:layer-bounceIn;animation-name:layer-bounceIn}@-webkit-keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);-ms-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);-ms-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-01{-webkit-animation-name:layer-zoomInDown;animation-name:layer-zoomInDown}@-webkit-keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);-ms-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}}.layer-anim-02{-webkit-animation-name:layer-fadeInUpBig;animation-name:layer-fadeInUpBig}@-webkit-keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);-ms-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);-ms-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-03{-webkit-animation-name:layer-zoomInLeft;animation-name:layer-zoomInLeft}@-webkit-keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}@keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);-ms-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);-ms-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}.layer-anim-04{-webkit-animation-name:layer-rollIn;animation-name:layer-rollIn}@keyframes layer-fadeIn{0%{opacity:0}100%{opacity:1}}.layer-anim-05{-webkit-animation-name:layer-fadeIn;animation-name:layer-fadeIn}@-webkit-keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);transform:translateX(10px)}}@keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);-ms-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);-ms-transform:translateX(10px);transform:translateX(10px)}}.layer-anim-06{-webkit-animation-name:layer-shake;animation-name:layer-shake}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}.layui-layer-title{padding:0 80px 0 20px;height:50px;line-height:50px;border-bottom:1px solid #f0f0f0;font-size:14px;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:2px 2px 0 0}.layui-layer-setwin{position:absolute;right:15px;*right:0;top:17px;font-size:0;line-height:initial}.layui-layer-setwin a{position:relative;width:16px;height:16px;margin-left:10px;font-size:12px;_overflow:hidden}.layui-layer-setwin .layui-layer-min cite{position:absolute;width:14px;height:2px;left:0;top:50%;margin-top:-1px;background-color:#2e2d3c;cursor:pointer;_overflow:hidden}.layui-layer-setwin .layui-layer-min:hover cite{background-color:#2d93ca}.layui-layer-setwin .layui-layer-max{background-position:-32px -40px}.layui-layer-setwin .layui-layer-max:hover{background-position:-16px -40px}.layui-layer-setwin .layui-layer-maxmin{background-position:-65px -40px}.layui-layer-setwin .layui-layer-maxmin:hover{background-position:-49px -40px}.layui-layer-setwin .layui-layer-close1{background-position:1px -40px;cursor:pointer}.layui-layer-setwin .layui-layer-close1:hover{opacity:.7}.layui-layer-setwin .layui-layer-close2{position:absolute;right:-28px;top:-28px;width:30px;height:30px;margin-left:0;background-position:-149px -31px;*right:-18px;_display:none}.layui-layer-setwin .layui-layer-close2:hover{background-position:-180px -31px}.layui-layer-btn{text-align:right;padding:0 15px 12px;pointer-events:auto;user-select:none;-webkit-user-select:none}.layui-layer-btn a{height:28px;line-height:28px;margin:5px 5px 0;padding:0 15px;border:1px solid #dedede;background-color:#fff;color:#333;border-radius:2px;font-weight:400;cursor:pointer;text-decoration:none}.layui-layer-btn a:hover{opacity:.9;text-decoration:none}.layui-layer-btn a:active{opacity:.8}.layui-layer-btn .layui-layer-btn0{border-color:#1e9fff;background-color:#1e9fff;color:#fff}.layui-layer-btn-l{text-align:left}.layui-layer-btn-c{text-align:center}.layui-layer-dialog{min-width:300px}.layui-layer-dialog .layui-layer-content{position:relative;padding:20px;line-height:24px;word-break:break-all;overflow:hidden;font-size:14px;overflow-x:hidden;overflow-y:auto}.layui-layer-dialog .layui-layer-content .layui-layer-ico{position:absolute;top:16px;left:15px;_left:-40px;width:30px;height:30px}.layui-layer-ico1{background-position:-30px 0}.layui-layer-ico2{background-position:-60px 0}.layui-layer-ico3{background-position:-90px 0}.layui-layer-ico4{background-position:-120px 0}.layui-layer-ico5{background-position:-150px 0}.layui-layer-ico6{background-position:-180px 0}.layui-layer-rim{border:6px solid #8d8d8d;border:6px solid rgba(0,0,0,.3);border-radius:5px;box-shadow:none}.layui-layer-msg{min-width:180px;border:1px solid #d3d4d3;box-shadow:none}.layui-layer-hui{min-width:100px;background-color:#000;filter:alpha(opacity=60);background-color:rgba(0,0,0,.6);color:#fff;border:none}.layui-layer-hui .layui-layer-content{padding:12px 25px;text-align:center}.layui-layer-dialog .layui-layer-padding{padding:20px 20px 20px 55px;text-align:left}.layui-layer-page .layui-layer-content{position:relative;overflow:auto}.layui-layer-iframe .layui-layer-btn,.layui-layer-page .layui-layer-btn{padding-top:10px}.layui-layer-nobg{background:0 0}.layui-layer-iframe iframe{display:block;width:100%}.layui-layer-loading{border-radius:100%;background:0 0;box-shadow:none;border:none}.layui-layer-loading .layui-layer-content{width:60px;height:24px;background:url(loading-0.gif) no-repeat}.layui-layer-loading .layui-layer-loading1{width:37px;height:37px;background:url(loading-1.gif) no-repeat}.layui-layer-ico16,.layui-layer-loading .layui-layer-loading2{width:32px;height:32px;background:url(loading-2.gif) no-repeat}.layui-layer-tips{background:0 0;box-shadow:none;border:none}.layui-layer-tips .layui-layer-content{position:relative;line-height:22px;min-width:12px;padding:8px 15px;font-size:12px;_float:left;border-radius:2px;box-shadow:1px 1px 3px rgba(0,0,0,.2);background-color:#000;color:#fff}.layui-layer-tips .layui-layer-close{right:-2px;top:-1px}.layui-layer-tips i.layui-layer-TipsG{position:absolute;width:0;height:0;border-width:8px;border-color:transparent;border-style:dashed;*overflow:hidden}.layui-layer-tips i.layui-layer-TipsB,.layui-layer-tips i.layui-layer-TipsT{left:5px;border-right-style:solid;border-right-color:#000}.layui-layer-tips i.layui-layer-TipsT{bottom:-8px}.layui-layer-tips i.layui-layer-TipsB{top:-8px}.layui-layer-tips i.layui-layer-TipsL,.layui-layer-tips i.layui-layer-TipsR{top:5px;border-bottom-style:solid;border-bottom-color:#000}.layui-layer-tips i.layui-layer-TipsR{left:-8px}.layui-layer-tips i.layui-layer-TipsL{right:-8px}.layui-layer-lan[type=dialog]{min-width:280px}.layui-layer-lan .layui-layer-title{background:#4476a7;color:#fff;border:none}.layui-layer-lan .layui-layer-btn{padding:5px 10px 10px;text-align:right;border-top:1px solid #e9e7e7}.layui-layer-lan .layui-layer-btn a{background:#fff;border-color:#e9e7e7;color:#333}.layui-layer-lan .layui-layer-btn .layui-layer-btn1{background:#c9c5c5}.layui-layer-molv .layui-layer-title{background:#009f95;color:#fff;border:none}.layui-layer-molv .layui-layer-btn a{background:#009f95;border-color:#009f95}.layui-layer-molv .layui-layer-btn .layui-layer-btn1{background:#92b8b1}.layui-layer-iconext{background:url(icon-ext.png) no-repeat}.layui-layer-prompt .layui-layer-input{display:block;width:260px;height:36px;margin:0 auto;line-height:30px;padding-left:10px;border:1px solid #e6e6e6;color:#333}.layui-layer-prompt textarea.layui-layer-input{width:300px;height:100px;line-height:20px;padding:6px 10px}.layui-layer-prompt .layui-layer-content{padding:20px}.layui-layer-prompt .layui-layer-btn{padding-top:0}.layui-layer-tab{box-shadow:1px 1px 50px rgba(0,0,0,.4)}.layui-layer-tab .layui-layer-title{padding-left:0;overflow:visible}.layui-layer-tab .layui-layer-title span{position:relative;float:left;min-width:80px;max-width:300px;padding:0 20px;text-align:center;cursor:default;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;cursor:pointer}.layui-layer-tab .layui-layer-title span.layui-this{height:51px;border-left:1px solid #eee;border-right:1px solid #eee;background-color:#fff;z-index:10}.layui-layer-tab .layui-layer-title span:first-child{border-left:none}.layui-layer-tabmain{line-height:24px;clear:both}.layui-layer-tabmain .layui-layer-tabli{display:none}.layui-layer-tabmain .layui-layer-tabli.layui-this{display:block}.layui-layer-photos{background:0 0;box-shadow:none}.layui-layer-photos .layui-layer-content{overflow:hidden;text-align:center}.layui-layer-photos .layui-layer-phimg img{position:relative;width:100%;display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-imgnext,.layui-layer-imgprev{position:fixed;top:50%;width:27px;_width:44px;height:44px;margin-top:-22px;outline:0;blr:expression(this.onFocus=this.blur())}.layui-layer-imgprev{left:30px;background-position:-5px -5px;_background-position:-70px -5px}.layui-layer-imgprev:hover{background-position:-33px -5px;_background-position:-120px -5px}.layui-layer-imgnext{right:30px;_right:8px;background-position:-5px -50px;_background-position:-70px -50px}.layui-layer-imgnext:hover{background-position:-33px -50px;_background-position:-120px -50px}.layui-layer-imgbar{position:fixed;left:0;right:0;bottom:0;width:100%;height:40px;line-height:40px;background-color:#000\9;filter:Alpha(opacity=60);background-color:rgba(2,0,0,.35);color:#fff;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:0}.layui-layer-imgtit *{display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:12px}.layui-layer-imgtit a{max-width:65%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;color:#fff}.layui-layer-imgtit a:hover{color:#fff;text-decoration:underline}.layui-layer-imgtit em{padding-left:10px;font-style:normal}@-webkit-keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);-ms-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);-ms-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-close{-webkit-animation-name:layer-bounceOut;animation-name:layer-bounceOut;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.2s;animation-duration:.2s}@media screen and (max-width:1100px){.layui-layer-iframe{overflow-y:auto;-webkit-overflow-scrolling:touch}}
\ No newline at end of file
diff --git a/web-v2-res/static/layui/css/modules/layer/default/loading-0.gif b/web-v2-res/static/layui/css/modules/layer/default/loading-0.gif
new file mode 100644
index 0000000..6f3c953
Binary files /dev/null and b/web-v2-res/static/layui/css/modules/layer/default/loading-0.gif differ
diff --git a/web-v2-res/static/layui/css/modules/layer/default/loading-1.gif b/web-v2-res/static/layui/css/modules/layer/default/loading-1.gif
new file mode 100644
index 0000000..db3a483
Binary files /dev/null and b/web-v2-res/static/layui/css/modules/layer/default/loading-1.gif differ
diff --git a/web-v2-res/static/layui/css/modules/layer/default/loading-2.gif b/web-v2-res/static/layui/css/modules/layer/default/loading-2.gif
new file mode 100644
index 0000000..5bb90fd
Binary files /dev/null and b/web-v2-res/static/layui/css/modules/layer/default/loading-2.gif differ
diff --git a/web-v2-res/static/layui/font-ext/demo.css b/web-v2-res/static/layui/font-ext/demo.css
new file mode 100644
index 0000000..a67054a
--- /dev/null
+++ b/web-v2-res/static/layui/font-ext/demo.css
@@ -0,0 +1,539 @@
+/* Logo 字体 */
+@font-face {
+ font-family: "iconfont logo";
+ src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834');
+ src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834#iefix') format('embedded-opentype'),
+ url('https://at.alicdn.com/t/font_985780_km7mi63cihi.woff?t=1545807318834') format('woff'),
+ url('https://at.alicdn.com/t/font_985780_km7mi63cihi.ttf?t=1545807318834') format('truetype'),
+ url('https://at.alicdn.com/t/font_985780_km7mi63cihi.svg?t=1545807318834#iconfont') format('svg');
+}
+
+.logo {
+ font-family: "iconfont logo";
+ font-size: 160px;
+ font-style: normal;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+/* tabs */
+.nav-tabs {
+ position: relative;
+}
+
+.nav-tabs .nav-more {
+ position: absolute;
+ right: 0;
+ bottom: 0;
+ height: 42px;
+ line-height: 42px;
+ color: #666;
+}
+
+#tabs {
+ border-bottom: 1px solid #eee;
+}
+
+#tabs li {
+ cursor: pointer;
+ width: 100px;
+ height: 40px;
+ line-height: 40px;
+ text-align: center;
+ font-size: 16px;
+ border-bottom: 2px solid transparent;
+ position: relative;
+ z-index: 1;
+ margin-bottom: -1px;
+ color: #666;
+}
+
+
+#tabs .active {
+ border-bottom-color: #f00;
+ color: #222;
+}
+
+.tab-container .content {
+ display: none;
+}
+
+/* 页面布局 */
+.main {
+ padding: 30px 100px;
+ width: 960px;
+ margin: 0 auto;
+}
+
+.main .logo {
+ color: #333;
+ text-align: left;
+ margin-bottom: 30px;
+ line-height: 1;
+ height: 110px;
+ margin-top: -50px;
+ overflow: hidden;
+ *zoom: 1;
+}
+
+.main .logo a {
+ font-size: 160px;
+ color: #333;
+}
+
+.helps {
+ margin-top: 40px;
+}
+
+.helps pre {
+ padding: 20px;
+ margin: 10px 0;
+ border: solid 1px #e7e1cd;
+ background-color: #fffdef;
+ overflow: auto;
+}
+
+.icon_lists {
+ width: 100% !important;
+ overflow: hidden;
+ *zoom: 1;
+}
+
+.icon_lists li {
+ width: 100px;
+ margin-bottom: 10px;
+ margin-right: 20px;
+ text-align: center;
+ list-style: none !important;
+ cursor: default;
+}
+
+.icon_lists li .code-name {
+ line-height: 1.2;
+}
+
+.icon_lists .icon {
+ display: block;
+ height: 100px;
+ line-height: 100px;
+ font-size: 42px;
+ margin: 10px auto;
+ color: #333;
+ -webkit-transition: font-size 0.25s linear, width 0.25s linear;
+ -moz-transition: font-size 0.25s linear, width 0.25s linear;
+ transition: font-size 0.25s linear, width 0.25s linear;
+}
+
+.icon_lists .icon:hover {
+ font-size: 100px;
+}
+
+.icon_lists .svg-icon {
+ /* 通过设置 font-size 来改变图标大小 */
+ width: 1em;
+ /* 图标和文字相邻时,垂直对齐 */
+ vertical-align: -0.15em;
+ /* 通过设置 color 来改变 SVG 的颜色/fill */
+ fill: currentColor;
+ /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
+ normalize.css 中也包含这行 */
+ overflow: hidden;
+}
+
+.icon_lists li .name,
+.icon_lists li .code-name {
+ color: #666;
+}
+
+/* markdown 样式 */
+.markdown {
+ color: #666;
+ font-size: 14px;
+ line-height: 1.8;
+}
+
+.highlight {
+ line-height: 1.5;
+}
+
+.markdown img {
+ vertical-align: middle;
+ max-width: 100%;
+}
+
+.markdown h1 {
+ color: #404040;
+ font-weight: 500;
+ line-height: 40px;
+ margin-bottom: 24px;
+}
+
+.markdown h2,
+.markdown h3,
+.markdown h4,
+.markdown h5,
+.markdown h6 {
+ color: #404040;
+ margin: 1.6em 0 0.6em 0;
+ font-weight: 500;
+ clear: both;
+}
+
+.markdown h1 {
+ font-size: 28px;
+}
+
+.markdown h2 {
+ font-size: 22px;
+}
+
+.markdown h3 {
+ font-size: 16px;
+}
+
+.markdown h4 {
+ font-size: 14px;
+}
+
+.markdown h5 {
+ font-size: 12px;
+}
+
+.markdown h6 {
+ font-size: 12px;
+}
+
+.markdown hr {
+ height: 1px;
+ border: 0;
+ background: #e9e9e9;
+ margin: 16px 0;
+ clear: both;
+}
+
+.markdown p {
+ margin: 1em 0;
+}
+
+.markdown>p,
+.markdown>blockquote,
+.markdown>.highlight,
+.markdown>ol,
+.markdown>ul {
+ width: 80%;
+}
+
+.markdown ul>li {
+ list-style: circle;
+}
+
+.markdown>ul li,
+.markdown blockquote ul>li {
+ margin-left: 20px;
+ padding-left: 4px;
+}
+
+.markdown>ul li p,
+.markdown>ol li p {
+ margin: 0.6em 0;
+}
+
+.markdown ol>li {
+ list-style: decimal;
+}
+
+.markdown>ol li,
+.markdown blockquote ol>li {
+ margin-left: 20px;
+ padding-left: 4px;
+}
+
+.markdown code {
+ margin: 0 3px;
+ padding: 0 5px;
+ background: #eee;
+ border-radius: 3px;
+}
+
+.markdown strong,
+.markdown b {
+ font-weight: 600;
+}
+
+.markdown>table {
+ border-collapse: collapse;
+ border-spacing: 0px;
+ empty-cells: show;
+ border: 1px solid #e9e9e9;
+ width: 95%;
+ margin-bottom: 24px;
+}
+
+.markdown>table th {
+ white-space: nowrap;
+ color: #333;
+ font-weight: 600;
+}
+
+.markdown>table th,
+.markdown>table td {
+ border: 1px solid #e9e9e9;
+ padding: 8px 16px;
+ text-align: left;
+}
+
+.markdown>table th {
+ background: #F7F7F7;
+}
+
+.markdown blockquote {
+ font-size: 90%;
+ color: #999;
+ border-left: 4px solid #e9e9e9;
+ padding-left: 0.8em;
+ margin: 1em 0;
+}
+
+.markdown blockquote p {
+ margin: 0;
+}
+
+.markdown .anchor {
+ opacity: 0;
+ transition: opacity 0.3s ease;
+ margin-left: 8px;
+}
+
+.markdown .waiting {
+ color: #ccc;
+}
+
+.markdown h1:hover .anchor,
+.markdown h2:hover .anchor,
+.markdown h3:hover .anchor,
+.markdown h4:hover .anchor,
+.markdown h5:hover .anchor,
+.markdown h6:hover .anchor {
+ opacity: 1;
+ display: inline-block;
+}
+
+.markdown>br,
+.markdown>p>br {
+ clear: both;
+}
+
+
+.hljs {
+ display: block;
+ background: white;
+ padding: 0.5em;
+ color: #333333;
+ overflow-x: auto;
+}
+
+.hljs-comment,
+.hljs-meta {
+ color: #969896;
+}
+
+.hljs-string,
+.hljs-variable,
+.hljs-template-variable,
+.hljs-strong,
+.hljs-emphasis,
+.hljs-quote {
+ color: #df5000;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-type {
+ color: #a71d5d;
+}
+
+.hljs-literal,
+.hljs-symbol,
+.hljs-bullet,
+.hljs-attribute {
+ color: #0086b3;
+}
+
+.hljs-section,
+.hljs-name {
+ color: #63a35c;
+}
+
+.hljs-tag {
+ color: #333333;
+}
+
+.hljs-title,
+.hljs-attr,
+.hljs-selector-id,
+.hljs-selector-class,
+.hljs-selector-attr,
+.hljs-selector-pseudo {
+ color: #795da3;
+}
+
+.hljs-addition {
+ color: #55a532;
+ background-color: #eaffea;
+}
+
+.hljs-deletion {
+ color: #bd2c00;
+ background-color: #ffecec;
+}
+
+.hljs-link {
+ text-decoration: underline;
+}
+
+/* 代码高亮 */
+/* PrismJS 1.15.0
+https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript */
+/**
+ * prism.js default theme for JavaScript, CSS and HTML
+ * Based on dabblet (http://dabblet.com)
+ * @author Lea Verou
+ */
+code[class*="language-"],
+pre[class*="language-"] {
+ color: black;
+ background: none;
+ text-shadow: 0 1px white;
+ font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
+ text-align: left;
+ white-space: pre;
+ word-spacing: normal;
+ word-break: normal;
+ word-wrap: normal;
+ line-height: 1.5;
+
+ -moz-tab-size: 4;
+ -o-tab-size: 4;
+ tab-size: 4;
+
+ -webkit-hyphens: none;
+ -moz-hyphens: none;
+ -ms-hyphens: none;
+ hyphens: none;
+}
+
+pre[class*="language-"]::-moz-selection,
+pre[class*="language-"] ::-moz-selection,
+code[class*="language-"]::-moz-selection,
+code[class*="language-"] ::-moz-selection {
+ text-shadow: none;
+ background: #b3d4fc;
+}
+
+pre[class*="language-"]::selection,
+pre[class*="language-"] ::selection,
+code[class*="language-"]::selection,
+code[class*="language-"] ::selection {
+ text-shadow: none;
+ background: #b3d4fc;
+}
+
+@media print {
+
+ code[class*="language-"],
+ pre[class*="language-"] {
+ text-shadow: none;
+ }
+}
+
+/* Code blocks */
+pre[class*="language-"] {
+ padding: 1em;
+ margin: .5em 0;
+ overflow: auto;
+}
+
+:not(pre)>code[class*="language-"],
+pre[class*="language-"] {
+ background: #f5f2f0;
+}
+
+/* Inline code */
+:not(pre)>code[class*="language-"] {
+ padding: .1em;
+ border-radius: .3em;
+ white-space: normal;
+}
+
+.token.comment,
+.token.prolog,
+.token.doctype,
+.token.cdata {
+ color: slategray;
+}
+
+.token.punctuation {
+ color: #999;
+}
+
+.namespace {
+ opacity: .7;
+}
+
+.token.property,
+.token.tag,
+.token.boolean,
+.token.number,
+.token.constant,
+.token.symbol,
+.token.deleted {
+ color: #905;
+}
+
+.token.selector,
+.token.attr-name,
+.token.string,
+.token.char,
+.token.builtin,
+.token.inserted {
+ color: #690;
+}
+
+.token.operator,
+.token.entity,
+.token.url,
+.language-css .token.string,
+.style .token.string {
+ color: #9a6e3a;
+ background: hsla(0, 0%, 100%, .5);
+}
+
+.token.atrule,
+.token.attr-value,
+.token.keyword {
+ color: #07a;
+}
+
+.token.function,
+.token.class-name {
+ color: #DD4A68;
+}
+
+.token.regex,
+.token.important,
+.token.variable {
+ color: #e90;
+}
+
+.token.important,
+.token.bold {
+ font-weight: bold;
+}
+
+.token.italic {
+ font-style: italic;
+}
+
+.token.entity {
+ cursor: help;
+}
diff --git a/web-v2-res/static/layui/font-ext/demo_index.html b/web-v2-res/static/layui/font-ext/demo_index.html
new file mode 100644
index 0000000..2e0ffe6
--- /dev/null
+++ b/web-v2-res/static/layui/font-ext/demo_index.html
@@ -0,0 +1,5593 @@
+
+
+
+
+ iconfont Demo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Unicode
+ - Font class
+ - Symbol
+
+
+
查看项目
+
+
+
+
+
+
+ -
+
+
回滚
+ 
+
+
+ -
+
+
减少
+ 
+
+
+ -
+
+
增加
+ 
+
+
+ -
+
+
回滚
+ 
+
+
+ -
+
+
保存_o
+ 
+
+
+ -
+
+
number-axis
+ 
+
+
+ -
+
+
cancel-full-screen
+ 
+
+
+ -
+
+
right-align
+ 
+
+
+ -
+
+
left-align
+ 
+
+
+ -
+
+
middle-align
+ 
+
+
+ -
+
+
full-screen
+ 
+
+
+ -
+
+
字体标题
+ 
+
+
+ -
+
+
字体缩小
+ 
+
+
+ -
+
+
字体放大
+ 
+
+
+ -
+
+
字体颜色
+ 
+
+
+ -
+
+
符号列表
+ 
+
+
+ -
+
+
编号列表
+ 
+
+
+ -
+
+
加粗@3x
+ 
+
+
+ -
+
+
下划线@3x
+ 
+
+
+ -
+
+
倾斜
+ 
+
+
+ -
+
+
放大展示
+ 
+
+
+ -
+
+
我的-关于我们
+ 
+
+
+ -
+
+
腾讯云
+ 
+
+
+ -
+
+
阿里云
+ 
+
+
+ -
+
+
云服务器
+ 
+
+
+ -
+
+
添加
+ 
+
+
+ -
+
+
撤回
+ 
+
+
+ -
+
+
回复
+ 
+
+
+ -
+
+
表情
+ 
+
+
+ -
+
+
抓手抓起
+ 
+
+
+ -
+
+
代办
+ 
+
+
+ -
+
+
提示
+ 
+
+
+ -
+
+
开始
+ 
+
+
+ -
+
+
防护开启
+ 
+
+
+ -
+
+
输入
+ 
+
+
+ -
+
+
文字
+ 
+
+
+ -
+
+
类型
+ 
+
+
+ -
+
+
字符
+ 
+
+
+ -
+
+
导航栏-设置
+ 
+
+
+ -
+
+
拉黑
+ 
+
+
+ -
+
+
拉黑-1
+ 
+
+
+ -
+
+
截屏
+ 
+
+
+ -
+
+
放大
+ 
+
+
+ -
+
+
解锁
+ 
+
+
+ -
+
+
开始
+ 
+
+
+ -
+
+
上一步
+ 
+
+
+ -
+
+
下一步
+ 
+
+
+ -
+
+
设备检测
+ 
+
+
+ -
+
+
简介
+ 
+
+
+ -
+
+
会议名称
+ 
+
+
+ -
+
+
文档
+ 
+
+
+ -
+
+
文档
+ 
+
+
+ -
+
+
会议记录
+ 
+
+
+ -
+
+
会议列表
+ 
+
+
+ -
+
+
加入池子
+ 
+
+
+ -
+
+
取消收藏
+ 
+
+
+ -
+
+
收藏
+ 
+
+
+ -
+
+
clear
+ 
+
+
+ -
+
+
上传
+ 
+
+
+ -
+
+
预览
+ 
+
+
+ -
+
+
下载
+ 
+
+
+ -
+
+
收藏
+ 
+
+
+ -
+
+
chongmingm
+ 
+
+
+ -
+
+
移动
+ 
+
+
+ -
+
+
移动
+ 
+
+
+ -
+
+
文件夹,文件
+ 
+
+
+ -
+
+
新建文件夹
+ 
+
+
+ -
+
+
语音
+ 
+
+
+ -
+
+
直播
+ 
+
+
+ -
+
+
语音消息
+ 
+
+
+ -
+
+
导出
+ 
+
+
+ -
+
+
删除
+ 
+
+
+ -
+
+
导入
+ 
+
+
+ -
+
+
取消置顶
+ 
+
+
+ -
+
+
移除
+ 
+
+
+ -
+
+
标记-01
+ 
+
+
+ -
+
+
邀请
+ 
+
+
+ -
+
+
免打扰
+ 
+
+
+ -
+
+
置顶
+ 
+
+
+ -
+
+
扫码
+ 
+
+
+ -
+
+
上下线-上线
+ 
+
+
+ -
+
+
关闭
+ 
+
+
+ -
+
+
上下线-下线
+ 
+
+
+ -
+
+
群主
+ 
+
+
+ -
+
+
点
+ 
+
+
+ -
+
+
离线
+ 
+
+
+ -
+
+
加入
+ 
+
+
+ -
+
+
上传下载
+ 
+
+
+ -
+
+
上传下载
+ 
+
+
+ -
+
+
IDP-文件传输
+ 
+
+
+ -
+
+
创建群聊
+ 
+
+
+ -
+
+
视频会议创建
+ 
+
+
+ -
+
+
fdcjjrcx
+ 
+
+
+ -
+
+
跟随系统-followsystem-line
+ 
+
+
+ -
+
+
明亮模式
+ 
+
+
+ -
+
+
暗黑
+ 
+
+
+ -
+
+
分享
+ 
+
+
+ -
+
+
恢复
+ 
+
+
+ -
+
+
已收藏
+ 
+
+
+ -
+
+
收藏
+ 
+
+
+ -
+
+
C#语言
+ 
+
+
+ -
+
+
APK
+ 
+
+
+ -
+
+
java
+ 
+
+
+ -
+
+
exe
+ 
+
+
+ -
+
+
python
+ 
+
+
+ -
+
+
CONF
+ 
+
+
+ -
+
+
json
+ 
+
+
+ -
+
+
javascript
+ 
+
+
+ -
+
+
csv
+ 
+
+
+ -
+
+
dll
+ 
+
+
+ -
+
+
xml文件
+ 
+
+
+ -
+
+
shell
+ 
+
+
+ -
+
+
PHP
+ 
+
+
+ -
+
+
cpp-copy
+ 
+
+
+ -
+
+
iso
+ 
+
+
+ -
+
+
HTML
+ 
+
+
+ -
+
+
css
+ 
+
+
+ -
+
+
完成
+ 
+
+
+ -
+
+
处理中
+ 
+
+
+ -
+
+
上传
+ 
+
+
+ -
+
+
会议列表
+ 
+
+
+ -
+
+
预定
+ 
+
+
+ -
+
+
远程控制
+ 
+
+
+ -
+
+
通知公告
+ 
+
+
+ -
+
+
列表模式
+ 
+
+
+ -
+
+
会议
+ 
+
+
+ -
+
+
收藏
+ 
+
+
+ -
+
+
微信
+ 
+
+
+ -
+
+
line up_8px
+ 
+
+
+ -
+
+
qq
+ 
+
+
+ -
+
+
回收站
+ 
+
+
+ -
+
+
最近浏览
+ 
+
+
+ -
+
+
群聊
+ 
+
+
+ -
+
+
我的文件夹
+ 
+
+
+ -
+
+
权限
+ 
+
+
+ -
+
+
皮肤
+ 
+
+
+ -
+
+
其他
+ 
+
+
+ -
+
+
消息
+ 
+
+
+ -
+
+
菜单
+ 
+
+
+ -
+
+
帐号
+ 
+
+
+ -
+
+
挂断
+ 
+
+
+ -
+
+
视频
+ 
+
+
+ -
+
+
x
+ 
+
+
+ -
+
+
分享
+ 
+
+
+ -
+
+
向上2
+ 
+
+
+ -
+
+
向下2
+ 
+
+
+ -
+
+
向右1
+ 
+
+
+ -
+
+
向左1
+ 
+
+
+ -
+
+
成功
+ 
+
+
+ -
+
+
失败
+ 
+
+
+ -
+
+
警告
+ 
+
+
+ -
+
+
企业微信
+ 
+
+
+ -
+
+
手机
+ 
+
+
+ -
+
+
3.1电话
+ 
+
+
+ -
+
+
白板
+ 
+
+
+ -
+
+
m-富文本
+ 
+
+
+ -
+
+
发起聊天
+ 
+
+
+ -
+
+
更多
+ 
+
+
+ -
+
+
消息
+ 
+
+
+ -
+
+
通讯录
+ 
+
+
+ -
+
+
设置
+ 
+
+
+ -
+
+
会议日程
+ 
+
+
+ -
+
+
文件夹
+ 
+
+
+ -
+
+
退出
+ 
+
+
+ -
+
+
邮件
+ 
+
+
+ -
+
+
添加
+ 
+
+
+ -
+
+
消息提示
+ 
+
+
+ -
+
+
发现
+ 
+
+
+ -
+
+
复制
+ 
+
+
+ -
+
+
gitee
+ 
+
+
+ -
+
+
剪切
+ 
+
+
+ -
+
+
错误
+ 
+
+
+ -
+
+
个人中心
+ 
+
+
+ -
+
+
相机反转
+ 
+
+
+ -
+
+
老师
+ 
+
+
+ -
+
+
11navbar_观众
+ 
+
+
+ -
+
+
214声波、语音消息
+ 
+
+
+ -
+
+
语音
+ 
+
+
+ -
+
+
翻转镜头
+ 
+
+
+ -
+
+
网盘
+ 
+
+
+ -
+
+
密码
+ 
+
+
+ -
+
+
录制
+ 
+
+
+ -
+
+
实物-画笔
+ 
+
+
+ -
+
+
ai
+ 
+
+
+ -
+
+
直播
+ 
+
+
+ -
+
+
挂断电话
+ 
+
+
+ -
+
+
关闭扬声器
+ 
+
+
+ -
+
+
麦克风
+ 
+
+
+ -
+
+
屏幕共享
+ 
+
+
+ -
+
+
摄像头
+ 
+
+
+ -
+
+
喇叭
+ 
+
+
+ -
+
+
关闭麦克风
+ 
+
+
+ -
+
+
浏览器
+ 
+
+
+ -
+
+
三角形
+ 
+
+
+ -
+
+
向上三角形
+ 
+
+
+ -
+
+
星星
+ 
+
+
+ -
+
+
星星
+ 
+
+
+ -
+
+
tx-fill-平行四边形
+ 
+
+
+ -
+
+
tx-fill-六边形
+ 
+
+
+ -
+
+
平行四边形
+ 
+
+
+ -
+
+
六边形
+ 
+
+
+ -
+
+
github
+ 
+
+
+ -
+
+
文件类型-Excel
+ 
+
+
+ -
+
+
文件类型-文件夹
+ 
+
+
+ -
+
+
文件类型-Word
+ 
+
+
+ -
+
+
文件类型-PPT
+ 
+
+
+ -
+
+
文件类型-音频
+ 
+
+
+ -
+
+
文件类型-程序
+ 
+
+
+ -
+
+
文件类型-视频
+ 
+
+
+ -
+
+
文件类型-链接
+ 
+
+
+ -
+
+
文件类型-图片
+ 
+
+
+ -
+
+
文件类型-压缩包
+ 
+
+
+ -
+
+
文件类型-未知文件
+ 
+
+
+ -
+
+
文件类型-Pdf
+ 
+
+
+ -
+
+
文件类型-Txt
+ 
+
+
+ -
+
+
文件类型-WPS
+ 
+
+
+ -
+
+
文件类型-数据库
+ 
+
+
+ -
+
+
文件类型-3D
+ 
+
+
+ -
+
+
文件类型-邮件
+ 
+
+
+ -
+
+
文件类型-配置文件
+ 
+
+
+ -
+
+
WIFI
+ 
+
+
+ -
+
+
红包
+ 
+
+
+ -
+
+
圆角矩形
+ 
+
+
+ -
+
+
圆形
+ 
+
+
+ -
+
+
橡皮擦
+ 
+
+
+ -
+
+
文字
+ 
+
+
+ -
+
+
矩形
+ 
+
+
+ -
+
+
圆形
+ 
+
+
+ -
+
+
下载
+ 
+
+
+ -
+
+
图片
+ 
+
+
+ -
+
+
工具
+ 
+
+
+ -
+
+
5g
+ 
+
+
+ -
+
+
3g
+ 
+
+
+ -
+
+
4g
+ 
+
+
+ -
+
+
2g
+ 
+
+
+
+
+
Unicode 引用
+
+
+
Unicode 是字体在网页端最原始的应用方式,特点是:
+
+ - 支持按字体的方式去动态调整图标大小,颜色等等。
+ - 默认情况下不支持多色,直接添加多色图标会自动去色。
+
+
+ 注意:新版 iconfont 支持两种方式引用多色图标:SVG symbol 引用方式和彩色字体图标模式。(使用彩色字体图标需要在「编辑项目」中开启「彩色」选项后并重新生成。)
+
+
Unicode 使用步骤如下:
+
第一步:拷贝项目下面生成的 @font-face
+
@font-face {
+ font-family: 'iconfont';
+ src: url('iconfont.woff2?t=1736500670093') format('woff2'),
+ url('iconfont.woff?t=1736500670093') format('woff'),
+ url('iconfont.ttf?t=1736500670093') format('truetype');
+}
+
+
第二步:定义使用 iconfont 的样式
+
.iconfont {
+ font-family: "iconfont" !important;
+ font-size: 16px;
+ font-style: normal;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+
第三步:挑选相应图标并获取字体编码,应用于页面
+
+<span class="iconfont">3</span>
+
+
+ "iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。
+
+
+
+
+
+
+ -
+
+
+ 回滚
+
+ .tl-rtc-app-icon-huigun
+
+
+
+ -
+
+
+ 减少
+
+ .tl-rtc-app-icon-jianshao
+
+
+
+ -
+
+
+ 增加
+
+ .tl-rtc-app-icon-zengjia
+
+
+
+ -
+
+
+ 回滚
+
+ .tl-rtc-app-icon-huigun-copy
+
+
+
+ -
+
+
+ 保存_o
+
+ .tl-rtc-app-icon-baocun_o
+
+
+
+ -
+
+
+ number-axis
+
+ .tl-rtc-app-icon-shuzhou
+
+
+
+ -
+
+
+ cancel-full-screen
+
+ .tl-rtc-app-icon-shouqiquanping
+
+
+
+ -
+
+
+ right-align
+
+ .tl-rtc-app-icon-youduiqi
+
+
+
+ -
+
+
+ left-align
+
+ .tl-rtc-app-icon-zuoduiqi
+
+
+
+ -
+
+
+ middle-align
+
+ .tl-rtc-app-icon-juzhongduiqi
+
+
+
+ -
+
+
+ full-screen
+
+ .tl-rtc-app-icon-quanping
+
+
+
+ -
+
+
+ 字体标题
+
+ .tl-rtc-app-icon-zitibiaoti
+
+
+
+ -
+
+
+ 字体缩小
+
+ .tl-rtc-app-icon-zitisuoxiao
+
+
+
+ -
+
+
+ 字体放大
+
+ .tl-rtc-app-icon-zitifangda
+
+
+
+ -
+
+
+ 字体颜色
+
+ .tl-rtc-app-icon-zitiyanse
+
+
+
+ -
+
+
+ 符号列表
+
+ .tl-rtc-app-icon-format_list_bulleted_black_24dp
+
+
+
+ -
+
+
+ 编号列表
+
+ .tl-rtc-app-icon-format_list_numbered_black_24dp
+
+
+
+ -
+
+
+ 加粗@3x
+
+ .tl-rtc-app-icon-a-jiacu3x
+
+
+
+ -
+
+
+ 下划线@3x
+
+ .tl-rtc-app-icon-a-xiahuaxian3x
+
+
+
+ -
+
+
+ 倾斜
+
+ .tl-rtc-app-icon-qingxie
+
+
+
+ -
+
+
+ 放大展示
+
+ .tl-rtc-app-icon-fangdazhanshi
+
+
+
+ -
+
+
+ 我的-关于我们
+
+ .tl-rtc-app-icon-wode-guanyuwomen
+
+
+
+ -
+
+
+ 腾讯云
+
+ .tl-rtc-app-icon-tengxunyun
+
+
+
+ -
+
+
+ 阿里云
+
+ .tl-rtc-app-icon-aliyun
+
+
+
+ -
+
+
+ 云服务器
+
+ .tl-rtc-app-icon-yunfuwuqi
+
+
+
+ -
+
+
+ 添加
+
+ .tl-rtc-app-icon-tianjia1
+
+
+
+ -
+
+
+ 撤回
+
+ .tl-rtc-app-icon-chehui
+
+
+
+ -
+
+
+ 回复
+
+ .tl-rtc-app-icon-huifu1
+
+
+
+ -
+
+
+ 表情
+
+ .tl-rtc-app-icon-biaoqing
+
+
+
+ -
+
+
+ 抓手抓起
+
+ .tl-rtc-app-icon-zhuashouzhuaqi
+
+
+
+ -
+
+
+ 代办
+
+ .tl-rtc-app-icon-daiban
+
+
+
+ -
+
+
+ 提示
+
+ .tl-rtc-app-icon-tishi
+
+
+
+ -
+
+
+ 开始
+
+ .tl-rtc-app-icon-kaishi1
+
+
+
+ -
+
+
+ 防护开启
+
+ .tl-rtc-app-icon-fanghukaiqi
+
+
+
+ -
+
+
+ 输入
+
+ .tl-rtc-app-icon-shuru
+
+
+
+ -
+
+
+ 文字
+
+ .tl-rtc-app-icon-wenzi1
+
+
+
+ -
+
+
+ 类型
+
+ .tl-rtc-app-icon-leixing
+
+
+
+ -
+
+
+ 字符
+
+ .tl-rtc-app-icon-zifu
+
+
+
+ -
+
+
+ 导航栏-设置
+
+ .tl-rtc-app-icon-a-fenzu32
+
+
+
+ -
+
+
+ 拉黑
+
+ .tl-rtc-app-icon-lahei
+
+
+
+ -
+
+
+ 拉黑-1
+
+ .tl-rtc-app-icon-lahei-1
+
+
+
+ -
+
+
+ 截屏
+
+ .tl-rtc-app-icon-jieping
+
+
+
+ -
+
+
+ 放大
+
+ .tl-rtc-app-icon-fangda
+
+
+
+ -
+
+
+ 解锁
+
+ .tl-rtc-app-icon-jiesuo
+
+
+
+ -
+
+
+ 开始
+
+ .tl-rtc-app-icon-kaishi
+
+
+
+ -
+
+
+ 上一步
+
+ .tl-rtc-app-icon-shangyibu-01
+
+
+
+ -
+
+
+ 下一步
+
+ .tl-rtc-app-icon-xiayibu-01
+
+
+
+ -
+
+
+ 设备检测
+
+ .tl-rtc-app-icon-shebeijiance
+
+
+
+ -
+
+
+ 简介
+
+ .tl-rtc-app-icon-jianjie
+
+
+
+ -
+
+
+ 会议名称
+
+ .tl-rtc-app-icon-huiyimingcheng
+
+
+
+ -
+
+
+ 文档
+
+ .tl-rtc-app-icon-wendang
+
+
+
+ -
+
+
+ 文档
+
+ .tl-rtc-app-icon-wendang1
+
+
+
+ -
+
+
+ 会议记录
+
+ .tl-rtc-app-icon-huiyijilu
+
+
+
+ -
+
+
+ 会议列表
+
+ .tl-rtc-app-icon-huiyiliebiao
+
+
+
+ -
+
+
+ 加入池子
+
+ .tl-rtc-app-icon-jiaruchizi
+
+
+
+ -
+
+
+ 取消收藏
+
+ .tl-rtc-app-icon-ziyuan
+
+
+
+ -
+
+
+ 收藏
+
+ .tl-rtc-app-icon-shoucang3
+
+
+
+ -
+
+
+ clear
+
+ .tl-rtc-app-icon-clear
+
+
+
+ -
+
+
+ 上传
+
+ .tl-rtc-app-icon-shangchuan11
+
+
+
+ -
+
+
+ 预览
+
+ .tl-rtc-app-icon-yulan
+
+
+
+ -
+
+
+ 下载
+
+ .tl-rtc-app-icon-xiazai-
+
+
+
+ -
+
+
+ 收藏
+
+ .tl-rtc-app-icon-shoucang2
+
+
+
+ -
+
+
+ chongmingm
+
+ .tl-rtc-app-icon-chongmingm
+
+
+
+ -
+
+
+ 移动
+
+ .tl-rtc-app-icon-yidong
+
+
+
+ -
+
+
+ 移动
+
+ .tl-rtc-app-icon-yidong1
+
+
+
+ -
+
+
+ 文件夹,文件
+
+ .tl-rtc-app-icon-a-wenjianjiawenjian
+
+
+
+ -
+
+
+ 新建文件夹
+
+ .tl-rtc-app-icon-xinjianwenjianjia
+
+
+
+ -
+
+
+ 语音
+
+ .tl-rtc-app-icon-yuyin1
+
+
+
+ -
+
+
+ 直播
+
+ .tl-rtc-app-icon-zhibo1
+
+
+
+ -
+
+
+ 语音消息
+
+ .tl-rtc-app-icon-yuyinxiaoxi
+
+
+
+ -
+
+
+ 导出
+
+ .tl-rtc-app-icon-daochu
+
+
+
+ -
+
+
+ 删除
+
+ .tl-rtc-app-icon-shanchu
+
+
+
+ -
+
+
+ 导入
+
+ .tl-rtc-app-icon-daoru
+
+
+
+ -
+
+
+ 取消置顶
+
+ .tl-rtc-app-icon-quxiaozhiding
+
+
+
+ -
+
+
+ 移除
+
+ .tl-rtc-app-icon-yichu
+
+
+
+ -
+
+
+ 标记-01
+
+ .tl-rtc-app-icon-biaoji-
+
+
+
+ -
+
+
+ 邀请
+
+ .tl-rtc-app-icon-yaoqing
+
+
+
+ -
+
+
+ 免打扰
+
+ .tl-rtc-app-icon-miandarao
+
+
+
+ -
+
+
+ 置顶
+
+ .tl-rtc-app-icon-zhiding1
+
+
+
+ -
+
+
+ 扫码
+
+ .tl-rtc-app-icon-saoma
+
+
+
+ -
+
+
+ 上下线-上线
+
+ .tl-rtc-app-icon-shangxiaxian-shangxian-copy
+
+
+
+ -
+
+
+ 关闭
+
+ .tl-rtc-app-icon-guanbi
+
+
+
+ -
+
+
+ 上下线-下线
+
+ .tl-rtc-app-icon-shangxiaxian-xiaxian
+
+
+
+ -
+
+
+ 群主
+
+ .tl-rtc-app-icon-qunzhu
+
+
+
+ -
+
+
+ 点
+
+ .tl-rtc-app-icon-dian
+
+
+
+ -
+
+
+ 离线
+
+ .tl-rtc-app-icon-lixian
+
+
+
+ -
+
+
+ 加入
+
+ .tl-rtc-app-icon-jiaru
+
+
+
+ -
+
+
+ 上传下载
+
+ .tl-rtc-app-icon-shangchuanxiazai
+
+
+
+ -
+
+
+ 上传下载
+
+ .tl-rtc-app-icon-shangchuanxiazai1
+
+
+
+ -
+
+
+ IDP-文件传输
+
+ .tl-rtc-app-icon-wenjianchuanshu
+
+
+
+ -
+
+
+ 创建群聊
+
+ .tl-rtc-app-icon-chuangjianqunliao
+
+
+
+ -
+
+
+ 视频会议创建
+
+ .tl-rtc-app-icon-shipinhuiyichuangjian
+
+
+
+ -
+
+
+ fdcjjrcx
+
+ .tl-rtc-app-icon-_detail_chest
+
+
+
+ -
+
+
+ 跟随系统-followsystem-line
+
+ .tl-rtc-app-icon-gensuixitong-followsystem-line
+
+
+
+ -
+
+
+ 明亮模式
+
+ .tl-rtc-app-icon-mingliangmoshi
+
+
+
+ -
+
+
+ 暗黑
+
+ .tl-rtc-app-icon-anhei
+
+
+
+ -
+
+
+ 分享
+
+ .tl-rtc-app-icon-fenxiang1
+
+
+
+ -
+
+
+ 恢复
+
+ .tl-rtc-app-icon-huifu
+
+
+
+ -
+
+
+ 已收藏
+
+ .tl-rtc-app-icon-yishoucang
+
+
+
+ -
+
+
+ 收藏
+
+ .tl-rtc-app-icon-shoucang1
+
+
+
+ -
+
+
+ C#语言
+
+ .tl-rtc-app-icon-Cyuyan
+
+
+
+ -
+
+
+ APK
+
+ .tl-rtc-app-icon-APK
+
+
+
+ -
+
+
+ java
+
+ .tl-rtc-app-icon-java-copy
+
+
+
+ -
+
+
+ exe
+
+ .tl-rtc-app-icon-exe
+
+
+
+ -
+
+
+ python
+
+ .tl-rtc-app-icon-python
+
+
+
+ -
+
+
+ CONF
+
+ .tl-rtc-app-icon-CONF
+
+
+
+ -
+
+
+ json
+
+ .tl-rtc-app-icon-json
+
+
+
+ -
+
+
+ javascript
+
+ .tl-rtc-app-icon-javascript
+
+
+
+ -
+
+
+ csv
+
+ .tl-rtc-app-icon-csv
+
+
+
+ -
+
+
+ dll
+
+ .tl-rtc-app-icon-dll
+
+
+
+ -
+
+
+ xml文件
+
+ .tl-rtc-app-icon-xmlwenjian
+
+
+
+ -
+
+
+ shell
+
+ .tl-rtc-app-icon-shell
+
+
+
+ -
+
+
+ PHP
+
+ .tl-rtc-app-icon-PHP
+
+
+
+ -
+
+
+ cpp-copy
+
+ .tl-rtc-app-icon-cpp-copy
+
+
+
+ -
+
+
+ iso
+
+ .tl-rtc-app-icon-iso
+
+
+
+ -
+
+
+ HTML
+
+ .tl-rtc-app-icon-HTML
+
+
+
+ -
+
+
+ css
+
+ .tl-rtc-app-icon-css-copy
+
+
+
+ -
+
+
+ 完成
+
+ .tl-rtc-app-icon-wancheng
+
+
+
+ -
+
+
+ 处理中
+
+ .tl-rtc-app-icon-chulizhong
+
+
+
+ -
+
+
+ 上传
+
+ .tl-rtc-app-icon-shangchuan
+
+
+
+ -
+
+
+ 会议列表
+
+ .tl-rtc-app-icon-huiyiliebiao1
+
+
+
+ -
+
+
+ 预定
+
+ .tl-rtc-app-icon-yuding
+
+
+
+ -
+
+
+ 远程控制
+
+ .tl-rtc-app-icon-yuanchengkongzhi
+
+
+
+ -
+
+
+ 通知公告
+
+ .tl-rtc-app-icon-a-tongzhigonggao3x
+
+
+
+ -
+
+
+ 列表模式
+
+ .tl-rtc-app-icon-liebiaomoshi
+
+
+
+ -
+
+
+ 会议
+
+ .tl-rtc-app-icon-huiyi
+
+
+
+ -
+
+
+ 收藏
+
+ .tl-rtc-app-icon-shoucang
+
+
+
+ -
+
+
+ 微信
+
+ .tl-rtc-app-icon-weixin
+
+
+
+ -
+
+
+ line up_8px
+
+ .tl-rtc-app-icon-lineup
+
+
+
+ -
+
+
+ qq
+
+ .tl-rtc-app-icon-qq
+
+
+
+ -
+
+
+ 回收站
+
+ .tl-rtc-app-icon-huishouzhan
+
+
+
+ -
+
+
+ 最近浏览
+
+ .tl-rtc-app-icon-zuijinliulan
+
+
+
+ -
+
+
+ 群聊
+
+ .tl-rtc-app-icon-qunliao
+
+
+
+ -
+
+
+ 我的文件夹
+
+ .tl-rtc-app-icon-wodewenjianjia
+
+
+
+ -
+
+
+ 权限
+
+ .tl-rtc-app-icon-quanxian
+
+
+
+ -
+
+
+ 皮肤
+
+ .tl-rtc-app-icon-pifu
+
+
+
+ -
+
+
+ 其他
+
+ .tl-rtc-app-icon-qita
+
+
+
+ -
+
+
+ 消息
+
+ .tl-rtc-app-icon-xiaoxi1
+
+
+
+ -
+
+
+ 菜单
+
+ .tl-rtc-app-icon-caidan
+
+
+
+ -
+
+
+ 帐号
+
+ .tl-rtc-app-icon-zhanghao
+
+
+
+ -
+
+
+ 挂断
+
+ .tl-rtc-app-icon-guaduan
+
+
+
+ -
+
+
+ 视频
+
+ .tl-rtc-app-icon-shipin
+
+
+
+ -
+
+
+ x
+
+ .tl-rtc-app-icon-x
+
+
+
+ -
+
+
+ 分享
+
+ .tl-rtc-app-icon-fenxiang
+
+
+
+ -
+
+
+ 向上2
+
+ .tl-rtc-app-icon-xiangshang2
+
+
+
+ -
+
+
+ 向下2
+
+ .tl-rtc-app-icon-xiangxia2
+
+
+
+ -
+
+
+ 向右1
+
+ .tl-rtc-app-icon-xiangyou1
+
+
+
+ -
+
+
+ 向左1
+
+ .tl-rtc-app-icon-xiangzuo1
+
+
+
+ -
+
+
+ 成功
+
+ .tl-rtc-app-icon-70chenggong
+
+
+
+ -
+
+
+ 失败
+
+ .tl-rtc-app-icon-71shibai
+
+
+
+ -
+
+
+ 警告
+
+ .tl-rtc-app-icon-jinggao
+
+
+
+ -
+
+
+ 企业微信
+
+ .tl-rtc-app-icon-qiyeweixin
+
+
+
+ -
+
+
+ 手机
+
+ .tl-rtc-app-icon-shouji
+
+
+
+ -
+
+
+ 3.1电话
+
+ .tl-rtc-app-icon-31dianhua
+
+
+
+ -
+
+
+ 白板
+
+ .tl-rtc-app-icon-baiban
+
+
+
+ -
+
+
+ m-富文本
+
+ .tl-rtc-app-icon-m-fuwenben
+
+
+
+ -
+
+
+ 发起聊天
+
+ .tl-rtc-app-icon-faqiliaotian
+
+
+
+ -
+
+
+ 更多
+
+ .tl-rtc-app-icon-gengduo
+
+
+
+ -
+
+
+ 消息
+
+ .tl-rtc-app-icon-xiaoxi
+
+
+
+ -
+
+
+ 通讯录
+
+ .tl-rtc-app-icon-tongxunlu
+
+
+
+ -
+
+
+ 设置
+
+ .tl-rtc-app-icon-shezhi
+
+
+
+ -
+
+
+ 会议日程
+
+ .tl-rtc-app-icon-huiyiricheng
+
+
+
+ -
+
+
+ 文件夹
+
+ .tl-rtc-app-icon-wenjianjia
+
+
+
+ -
+
+
+ 退出
+
+ .tl-rtc-app-icon-tuichu
+
+
+
+ -
+
+
+ 邮件
+
+ .tl-rtc-app-icon-youjian1
+
+
+
+ -
+
+
+ 添加
+
+ .tl-rtc-app-icon-tianjia
+
+
+
+ -
+
+
+ 消息提示
+
+ .tl-rtc-app-icon-icon
+
+
+
+ -
+
+
+ 发现
+
+ .tl-rtc-app-icon-faxian
+
+
+
+ -
+
+
+ 复制
+
+ .tl-rtc-app-icon-fuzhi
+
+
+
+ -
+
+
+ gitee
+
+ .tl-rtc-app-icon-gitee
+
+
+
+ -
+
+
+ 剪切
+
+ .tl-rtc-app-icon-jianqie
+
+
+
+ -
+
+
+ 错误
+
+ .tl-rtc-app-icon-cuowu
+
+
+
+ -
+
+
+ 个人中心
+
+ .tl-rtc-app-icon-gerenzhongxin
+
+
+
+ -
+
+
+ 相机反转
+
+ .tl-rtc-app-icon-xiangjifanzhuan
+
+
+
+ -
+
+
+ 老师
+
+ .tl-rtc-app-icon-laoshi
+
+
+
+ -
+
+
+ 11navbar_观众
+
+ .tl-rtc-app-icon-navbar_guanzhong
+
+
+
+ -
+
+
+ 214声波、语音消息
+
+ .tl-rtc-app-icon-shengboyuyinxiaoxi
+
+
+
+ -
+
+
+ 语音
+
+ .tl-rtc-app-icon-yuyin
+
+
+
+ -
+
+
+ 翻转镜头
+
+ .tl-rtc-app-icon-fanzhuanjingtou
+
+
+
+ -
+
+
+ 网盘
+
+ .tl-rtc-app-icon-wangpan
+
+
+
+ -
+
+
+ 密码
+
+ .tl-rtc-app-icon-mima
+
+
+
+ -
+
+
+ 录制
+
+ .tl-rtc-app-icon-luzhi
+
+
+
+ -
+
+
+ 实物-画笔
+
+ .tl-rtc-app-icon-shiwu-huabi
+
+
+
+ -
+
+
+ ai
+
+ .tl-rtc-app-icon-24px2x
+
+
+
+ -
+
+
+ 直播
+
+ .tl-rtc-app-icon-zhibo
+
+
+
+ -
+
+
+ 挂断电话
+
+ .tl-rtc-app-icon-guaduandianhua
+
+
+
+ -
+
+
+ 关闭扬声器
+
+ .tl-rtc-app-icon-guanbiyangshengqi
+
+
+
+ -
+
+
+ 麦克风
+
+ .tl-rtc-app-icon-maikefeng-XDY
+
+
+
+ -
+
+
+ 屏幕共享
+
+ .tl-rtc-app-icon-pingmugongxiang
+
+
+
+ -
+
+
+ 摄像头
+
+ .tl-rtc-app-icon-shexiangtou
+
+
+
+ -
+
+
+ 喇叭
+
+ .tl-rtc-app-icon-laba
+
+
+
+ -
+
+
+ 关闭麦克风
+
+ .tl-rtc-app-icon-guanbimaikefeng
+
+
+
+ -
+
+
+ 浏览器
+
+ .tl-rtc-app-icon-liulanqi
+
+
+
+ -
+
+
+ 三角形
+
+ .tl-rtc-app-icon-sanjiaoxing
+
+
+
+ -
+
+
+ 向上三角形
+
+ .tl-rtc-app-icon-xiangshangsanjiaoxing
+
+
+
+ -
+
+
+ 星星
+
+ .tl-rtc-app-icon-xingxing
+
+
+
+ -
+
+
+ 星星
+
+ .tl-rtc-app-icon-xingxing1
+
+
+
+ -
+
+
+ tx-fill-平行四边形
+
+ .tl-rtc-app-icon-tx-fill-pinghangsibianxing
+
+
+
+ -
+
+
+ tx-fill-六边形
+
+ .tl-rtc-app-icon-tx-fill-liubianxing
+
+
+
+ -
+
+
+ 平行四边形
+
+ .tl-rtc-app-icon-pinghangsibianxing
+
+
+
+ -
+
+
+ 六边形
+
+ .tl-rtc-app-icon-hexagon
+
+
+
+ -
+
+
+ github
+
+ .tl-rtc-app-icon-github
+
+
+
+ -
+
+
+ 文件类型-Excel
+
+ .tl-rtc-app-icon-Excel
+
+
+
+ -
+
+
+ 文件类型-文件夹
+
+ .tl-rtc-app-icon-File
+
+
+
+ -
+
+
+ 文件类型-Word
+
+ .tl-rtc-app-icon-Word
+
+
+
+ -
+
+
+ 文件类型-PPT
+
+ .tl-rtc-app-icon-PPT
+
+
+
+ -
+
+
+ 文件类型-音频
+
+ .tl-rtc-app-icon-music
+
+
+
+ -
+
+
+ 文件类型-程序
+
+ .tl-rtc-app-icon-chengxu
+
+
+
+ -
+
+
+ 文件类型-视频
+
+ .tl-rtc-app-icon-shipin1
+
+
+
+ -
+
+
+ 文件类型-链接
+
+ .tl-rtc-app-icon-lianjiewenjian
+
+
+
+ -
+
+
+ 文件类型-图片
+
+ .tl-rtc-app-icon-tupian
+
+
+
+ -
+
+
+ 文件类型-压缩包
+
+ .tl-rtc-app-icon-yasuobao
+
+
+
+ -
+
+
+ 文件类型-未知文件
+
+ .tl-rtc-app-icon-weizhiwenjian
+
+
+
+ -
+
+
+ 文件类型-Pdf
+
+ .tl-rtc-app-icon-Pdf
+
+
+
+ -
+
+
+ 文件类型-Txt
+
+ .tl-rtc-app-icon-txt1
+
+
+
+ -
+
+
+ 文件类型-WPS
+
+ .tl-rtc-app-icon-WPS
+
+
+
+ -
+
+
+ 文件类型-数据库
+
+ .tl-rtc-app-icon-shujuku
+
+
+
+ -
+
+
+ 文件类型-3D
+
+ .tl-rtc-app-icon-a-3D
+
+
+
+ -
+
+
+ 文件类型-邮件
+
+ .tl-rtc-app-icon-youjian
+
+
+
+ -
+
+
+ 文件类型-配置文件
+
+ .tl-rtc-app-icon-peizhiwenjian
+
+
+
+ -
+
+
+ WIFI
+
+ .tl-rtc-app-icon-WIFI
+
+
+
+ -
+
+
+ 红包
+
+ .tl-rtc-app-icon-hongbao
+
+
+
+ -
+
+
+ 圆角矩形
+
+ .tl-rtc-app-icon-yuanjiao-rect
+
+
+
+ -
+
+
+ 圆形
+
+ .tl-rtc-app-icon-circle
+
+
+
+ -
+
+
+ 橡皮擦
+
+ .tl-rtc-app-icon-xiangpica
+
+
+
+ -
+
+
+ 文字
+
+ .tl-rtc-app-icon-wenzi
+
+
+
+ -
+
+
+ 矩形
+
+ .tl-rtc-app-icon-juxing
+
+
+
+ -
+
+
+ 圆形
+
+ .tl-rtc-app-icon-yuanxing
+
+
+
+ -
+
+
+ 下载
+
+ .tl-rtc-app-icon-xiazai
+
+
+
+ -
+
+
+ 图片
+
+ .tl-rtc-app-icon-tupian_huaban
+
+
+
+ -
+
+
+ 工具
+
+ .tl-rtc-app-icon-gongju
+
+
+
+ -
+
+
+ 5g
+
+ .tl-rtc-app-icon-five-g
+
+
+
+ -
+
+
+ 3g
+
+ .tl-rtc-app-icon-three-g
+
+
+
+ -
+
+
+ 4g
+
+ .tl-rtc-app-icon-four-g
+
+
+
+ -
+
+
+ 2g
+
+ .tl-rtc-app-icon-two-g
+
+
+
+
+
+
font-class 引用
+
+
+
font-class 是 Unicode 使用方式的一种变种,主要是解决 Unicode 书写不直观,语意不明确的问题。
+
与 Unicode 使用方式相比,具有如下特点:
+
+ - 相比于 Unicode 语意明确,书写更直观。可以很容易分辨这个 icon 是什么。
+ - 因为使用 class 来定义图标,所以当要替换图标时,只需要修改 class 里面的 Unicode 引用。
+
+
使用步骤如下:
+
第一步:引入项目下面生成的 fontclass 代码:
+
<link rel="stylesheet" href="./iconfont.css">
+
+
第二步:挑选相应图标并获取类名,应用于页面:
+
<span class="iconfont tl-rtc-app-icon-xxx"></span>
+
+
+ "
+ iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。
+
+
+
+
+
+
+ -
+
+
回滚
+ #tl-rtc-app-icon-huigun
+
+
+ -
+
+
减少
+ #tl-rtc-app-icon-jianshao
+
+
+ -
+
+
增加
+ #tl-rtc-app-icon-zengjia
+
+
+ -
+
+
回滚
+ #tl-rtc-app-icon-huigun-copy
+
+
+ -
+
+
保存_o
+ #tl-rtc-app-icon-baocun_o
+
+
+ -
+
+
number-axis
+ #tl-rtc-app-icon-shuzhou
+
+
+ -
+
+
cancel-full-screen
+ #tl-rtc-app-icon-shouqiquanping
+
+
+ -
+
+
right-align
+ #tl-rtc-app-icon-youduiqi
+
+
+ -
+
+
left-align
+ #tl-rtc-app-icon-zuoduiqi
+
+
+ -
+
+
middle-align
+ #tl-rtc-app-icon-juzhongduiqi
+
+
+ -
+
+
full-screen
+ #tl-rtc-app-icon-quanping
+
+
+ -
+
+
字体标题
+ #tl-rtc-app-icon-zitibiaoti
+
+
+ -
+
+
字体缩小
+ #tl-rtc-app-icon-zitisuoxiao
+
+
+ -
+
+
字体放大
+ #tl-rtc-app-icon-zitifangda
+
+
+ -
+
+
字体颜色
+ #tl-rtc-app-icon-zitiyanse
+
+
+ -
+
+
符号列表
+ #tl-rtc-app-icon-format_list_bulleted_black_24dp
+
+
+ -
+
+
编号列表
+ #tl-rtc-app-icon-format_list_numbered_black_24dp
+
+
+ -
+
+
加粗@3x
+ #tl-rtc-app-icon-a-jiacu3x
+
+
+ -
+
+
下划线@3x
+ #tl-rtc-app-icon-a-xiahuaxian3x
+
+
+ -
+
+
倾斜
+ #tl-rtc-app-icon-qingxie
+
+
+ -
+
+
放大展示
+ #tl-rtc-app-icon-fangdazhanshi
+
+
+ -
+
+
我的-关于我们
+ #tl-rtc-app-icon-wode-guanyuwomen
+
+
+ -
+
+
腾讯云
+ #tl-rtc-app-icon-tengxunyun
+
+
+ -
+
+
阿里云
+ #tl-rtc-app-icon-aliyun
+
+
+ -
+
+
云服务器
+ #tl-rtc-app-icon-yunfuwuqi
+
+
+ -
+
+
添加
+ #tl-rtc-app-icon-tianjia1
+
+
+ -
+
+
撤回
+ #tl-rtc-app-icon-chehui
+
+
+ -
+
+
回复
+ #tl-rtc-app-icon-huifu1
+
+
+ -
+
+
表情
+ #tl-rtc-app-icon-biaoqing
+
+
+ -
+
+
抓手抓起
+ #tl-rtc-app-icon-zhuashouzhuaqi
+
+
+ -
+
+
代办
+ #tl-rtc-app-icon-daiban
+
+
+ -
+
+
提示
+ #tl-rtc-app-icon-tishi
+
+
+ -
+
+
开始
+ #tl-rtc-app-icon-kaishi1
+
+
+ -
+
+
防护开启
+ #tl-rtc-app-icon-fanghukaiqi
+
+
+ -
+
+
输入
+ #tl-rtc-app-icon-shuru
+
+
+ -
+
+
文字
+ #tl-rtc-app-icon-wenzi1
+
+
+ -
+
+
类型
+ #tl-rtc-app-icon-leixing
+
+
+ -
+
+
字符
+ #tl-rtc-app-icon-zifu
+
+
+ -
+
+
导航栏-设置
+ #tl-rtc-app-icon-a-fenzu32
+
+
+ -
+
+
拉黑
+ #tl-rtc-app-icon-lahei
+
+
+ -
+
+
拉黑-1
+ #tl-rtc-app-icon-lahei-1
+
+
+ -
+
+
截屏
+ #tl-rtc-app-icon-jieping
+
+
+ -
+
+
放大
+ #tl-rtc-app-icon-fangda
+
+
+ -
+
+
解锁
+ #tl-rtc-app-icon-jiesuo
+
+
+ -
+
+
开始
+ #tl-rtc-app-icon-kaishi
+
+
+ -
+
+
上一步
+ #tl-rtc-app-icon-shangyibu-01
+
+
+ -
+
+
下一步
+ #tl-rtc-app-icon-xiayibu-01
+
+
+ -
+
+
设备检测
+ #tl-rtc-app-icon-shebeijiance
+
+
+ -
+
+
简介
+ #tl-rtc-app-icon-jianjie
+
+
+ -
+
+
会议名称
+ #tl-rtc-app-icon-huiyimingcheng
+
+
+ -
+
+
文档
+ #tl-rtc-app-icon-wendang
+
+
+ -
+
+
文档
+ #tl-rtc-app-icon-wendang1
+
+
+ -
+
+
会议记录
+ #tl-rtc-app-icon-huiyijilu
+
+
+ -
+
+
会议列表
+ #tl-rtc-app-icon-huiyiliebiao
+
+
+ -
+
+
加入池子
+ #tl-rtc-app-icon-jiaruchizi
+
+
+ -
+
+
取消收藏
+ #tl-rtc-app-icon-ziyuan
+
+
+ -
+
+
收藏
+ #tl-rtc-app-icon-shoucang3
+
+
+ -
+
+
clear
+ #tl-rtc-app-icon-clear
+
+
+ -
+
+
上传
+ #tl-rtc-app-icon-shangchuan11
+
+
+ -
+
+
预览
+ #tl-rtc-app-icon-yulan
+
+
+ -
+
+
下载
+ #tl-rtc-app-icon-xiazai-
+
+
+ -
+
+
收藏
+ #tl-rtc-app-icon-shoucang2
+
+
+ -
+
+
chongmingm
+ #tl-rtc-app-icon-chongmingm
+
+
+ -
+
+
移动
+ #tl-rtc-app-icon-yidong
+
+
+ -
+
+
移动
+ #tl-rtc-app-icon-yidong1
+
+
+ -
+
+
文件夹,文件
+ #tl-rtc-app-icon-a-wenjianjiawenjian
+
+
+ -
+
+
新建文件夹
+ #tl-rtc-app-icon-xinjianwenjianjia
+
+
+ -
+
+
语音
+ #tl-rtc-app-icon-yuyin1
+
+
+ -
+
+
直播
+ #tl-rtc-app-icon-zhibo1
+
+
+ -
+
+
语音消息
+ #tl-rtc-app-icon-yuyinxiaoxi
+
+
+ -
+
+
导出
+ #tl-rtc-app-icon-daochu
+
+
+ -
+
+
删除
+ #tl-rtc-app-icon-shanchu
+
+
+ -
+
+
导入
+ #tl-rtc-app-icon-daoru
+
+
+ -
+
+
取消置顶
+ #tl-rtc-app-icon-quxiaozhiding
+
+
+ -
+
+
移除
+ #tl-rtc-app-icon-yichu
+
+
+ -
+
+
标记-01
+ #tl-rtc-app-icon-biaoji-
+
+
+ -
+
+
邀请
+ #tl-rtc-app-icon-yaoqing
+
+
+ -
+
+
免打扰
+ #tl-rtc-app-icon-miandarao
+
+
+ -
+
+
置顶
+ #tl-rtc-app-icon-zhiding1
+
+
+ -
+
+
扫码
+ #tl-rtc-app-icon-saoma
+
+
+ -
+
+
上下线-上线
+ #tl-rtc-app-icon-shangxiaxian-shangxian-copy
+
+
+ -
+
+
关闭
+ #tl-rtc-app-icon-guanbi
+
+
+ -
+
+
上下线-下线
+ #tl-rtc-app-icon-shangxiaxian-xiaxian
+
+
+ -
+
+
群主
+ #tl-rtc-app-icon-qunzhu
+
+
+ -
+
+
点
+ #tl-rtc-app-icon-dian
+
+
+ -
+
+
离线
+ #tl-rtc-app-icon-lixian
+
+
+ -
+
+
加入
+ #tl-rtc-app-icon-jiaru
+
+
+ -
+
+
上传下载
+ #tl-rtc-app-icon-shangchuanxiazai
+
+
+ -
+
+
上传下载
+ #tl-rtc-app-icon-shangchuanxiazai1
+
+
+ -
+
+
IDP-文件传输
+ #tl-rtc-app-icon-wenjianchuanshu
+
+
+ -
+
+
创建群聊
+ #tl-rtc-app-icon-chuangjianqunliao
+
+
+ -
+
+
视频会议创建
+ #tl-rtc-app-icon-shipinhuiyichuangjian
+
+
+ -
+
+
fdcjjrcx
+ #tl-rtc-app-icon-_detail_chest
+
+
+ -
+
+
跟随系统-followsystem-line
+ #tl-rtc-app-icon-gensuixitong-followsystem-line
+
+
+ -
+
+
明亮模式
+ #tl-rtc-app-icon-mingliangmoshi
+
+
+ -
+
+
暗黑
+ #tl-rtc-app-icon-anhei
+
+
+ -
+
+
分享
+ #tl-rtc-app-icon-fenxiang1
+
+
+ -
+
+
恢复
+ #tl-rtc-app-icon-huifu
+
+
+ -
+
+
已收藏
+ #tl-rtc-app-icon-yishoucang
+
+
+ -
+
+
收藏
+ #tl-rtc-app-icon-shoucang1
+
+
+ -
+
+
C#语言
+ #tl-rtc-app-icon-Cyuyan
+
+
+ -
+
+
APK
+ #tl-rtc-app-icon-APK
+
+
+ -
+
+
java
+ #tl-rtc-app-icon-java-copy
+
+
+ -
+
+
exe
+ #tl-rtc-app-icon-exe
+
+
+ -
+
+
python
+ #tl-rtc-app-icon-python
+
+
+ -
+
+
CONF
+ #tl-rtc-app-icon-CONF
+
+
+ -
+
+
json
+ #tl-rtc-app-icon-json
+
+
+ -
+
+
javascript
+ #tl-rtc-app-icon-javascript
+
+
+ -
+
+
csv
+ #tl-rtc-app-icon-csv
+
+
+ -
+
+
dll
+ #tl-rtc-app-icon-dll
+
+
+ -
+
+
xml文件
+ #tl-rtc-app-icon-xmlwenjian
+
+
+ -
+
+
shell
+ #tl-rtc-app-icon-shell
+
+
+ -
+
+
PHP
+ #tl-rtc-app-icon-PHP
+
+
+ -
+
+
cpp-copy
+ #tl-rtc-app-icon-cpp-copy
+
+
+ -
+
+
iso
+ #tl-rtc-app-icon-iso
+
+
+ -
+
+
HTML
+ #tl-rtc-app-icon-HTML
+
+
+ -
+
+
css
+ #tl-rtc-app-icon-css-copy
+
+
+ -
+
+
完成
+ #tl-rtc-app-icon-wancheng
+
+
+ -
+
+
处理中
+ #tl-rtc-app-icon-chulizhong
+
+
+ -
+
+
上传
+ #tl-rtc-app-icon-shangchuan
+
+
+ -
+
+
会议列表
+ #tl-rtc-app-icon-huiyiliebiao1
+
+
+ -
+
+
预定
+ #tl-rtc-app-icon-yuding
+
+
+ -
+
+
远程控制
+ #tl-rtc-app-icon-yuanchengkongzhi
+
+
+ -
+
+
通知公告
+ #tl-rtc-app-icon-a-tongzhigonggao3x
+
+
+ -
+
+
列表模式
+ #tl-rtc-app-icon-liebiaomoshi
+
+
+ -
+
+
会议
+ #tl-rtc-app-icon-huiyi
+
+
+ -
+
+
收藏
+ #tl-rtc-app-icon-shoucang
+
+
+ -
+
+
微信
+ #tl-rtc-app-icon-weixin
+
+
+ -
+
+
line up_8px
+ #tl-rtc-app-icon-lineup
+
+
+ -
+
+
qq
+ #tl-rtc-app-icon-qq
+
+
+ -
+
+
回收站
+ #tl-rtc-app-icon-huishouzhan
+
+
+ -
+
+
最近浏览
+ #tl-rtc-app-icon-zuijinliulan
+
+
+ -
+
+
群聊
+ #tl-rtc-app-icon-qunliao
+
+
+ -
+
+
我的文件夹
+ #tl-rtc-app-icon-wodewenjianjia
+
+
+ -
+
+
权限
+ #tl-rtc-app-icon-quanxian
+
+
+ -
+
+
皮肤
+ #tl-rtc-app-icon-pifu
+
+
+ -
+
+
其他
+ #tl-rtc-app-icon-qita
+
+
+ -
+
+
消息
+ #tl-rtc-app-icon-xiaoxi1
+
+
+ -
+
+
菜单
+ #tl-rtc-app-icon-caidan
+
+
+ -
+
+
帐号
+ #tl-rtc-app-icon-zhanghao
+
+
+ -
+
+
挂断
+ #tl-rtc-app-icon-guaduan
+
+
+ -
+
+
视频
+ #tl-rtc-app-icon-shipin
+
+
+ -
+
+
x
+ #tl-rtc-app-icon-x
+
+
+ -
+
+
分享
+ #tl-rtc-app-icon-fenxiang
+
+
+ -
+
+
向上2
+ #tl-rtc-app-icon-xiangshang2
+
+
+ -
+
+
向下2
+ #tl-rtc-app-icon-xiangxia2
+
+
+ -
+
+
向右1
+ #tl-rtc-app-icon-xiangyou1
+
+
+ -
+
+
向左1
+ #tl-rtc-app-icon-xiangzuo1
+
+
+ -
+
+
成功
+ #tl-rtc-app-icon-70chenggong
+
+
+ -
+
+
失败
+ #tl-rtc-app-icon-71shibai
+
+
+ -
+
+
警告
+ #tl-rtc-app-icon-jinggao
+
+
+ -
+
+
企业微信
+ #tl-rtc-app-icon-qiyeweixin
+
+
+ -
+
+
手机
+ #tl-rtc-app-icon-shouji
+
+
+ -
+
+
3.1电话
+ #tl-rtc-app-icon-31dianhua
+
+
+ -
+
+
白板
+ #tl-rtc-app-icon-baiban
+
+
+ -
+
+
m-富文本
+ #tl-rtc-app-icon-m-fuwenben
+
+
+ -
+
+
发起聊天
+ #tl-rtc-app-icon-faqiliaotian
+
+
+ -
+
+
更多
+ #tl-rtc-app-icon-gengduo
+
+
+ -
+
+
消息
+ #tl-rtc-app-icon-xiaoxi
+
+
+ -
+
+
通讯录
+ #tl-rtc-app-icon-tongxunlu
+
+
+ -
+
+
设置
+ #tl-rtc-app-icon-shezhi
+
+
+ -
+
+
会议日程
+ #tl-rtc-app-icon-huiyiricheng
+
+
+ -
+
+
文件夹
+ #tl-rtc-app-icon-wenjianjia
+
+
+ -
+
+
退出
+ #tl-rtc-app-icon-tuichu
+
+
+ -
+
+
邮件
+ #tl-rtc-app-icon-youjian1
+
+
+ -
+
+
添加
+ #tl-rtc-app-icon-tianjia
+
+
+ -
+
+
消息提示
+ #tl-rtc-app-icon-icon
+
+
+ -
+
+
发现
+ #tl-rtc-app-icon-faxian
+
+
+ -
+
+
复制
+ #tl-rtc-app-icon-fuzhi
+
+
+ -
+
+
gitee
+ #tl-rtc-app-icon-gitee
+
+
+ -
+
+
剪切
+ #tl-rtc-app-icon-jianqie
+
+
+ -
+
+
错误
+ #tl-rtc-app-icon-cuowu
+
+
+ -
+
+
个人中心
+ #tl-rtc-app-icon-gerenzhongxin
+
+
+ -
+
+
相机反转
+ #tl-rtc-app-icon-xiangjifanzhuan
+
+
+ -
+
+
老师
+ #tl-rtc-app-icon-laoshi
+
+
+ -
+
+
11navbar_观众
+ #tl-rtc-app-icon-navbar_guanzhong
+
+
+ -
+
+
214声波、语音消息
+ #tl-rtc-app-icon-shengboyuyinxiaoxi
+
+
+ -
+
+
语音
+ #tl-rtc-app-icon-yuyin
+
+
+ -
+
+
翻转镜头
+ #tl-rtc-app-icon-fanzhuanjingtou
+
+
+ -
+
+
网盘
+ #tl-rtc-app-icon-wangpan
+
+
+ -
+
+
密码
+ #tl-rtc-app-icon-mima
+
+
+ -
+
+
录制
+ #tl-rtc-app-icon-luzhi
+
+
+ -
+
+
实物-画笔
+ #tl-rtc-app-icon-shiwu-huabi
+
+
+ -
+
+
ai
+ #tl-rtc-app-icon-24px2x
+
+
+ -
+
+
直播
+ #tl-rtc-app-icon-zhibo
+
+
+ -
+
+
挂断电话
+ #tl-rtc-app-icon-guaduandianhua
+
+
+ -
+
+
关闭扬声器
+ #tl-rtc-app-icon-guanbiyangshengqi
+
+
+ -
+
+
麦克风
+ #tl-rtc-app-icon-maikefeng-XDY
+
+
+ -
+
+
屏幕共享
+ #tl-rtc-app-icon-pingmugongxiang
+
+
+ -
+
+
摄像头
+ #tl-rtc-app-icon-shexiangtou
+
+
+ -
+
+
喇叭
+ #tl-rtc-app-icon-laba
+
+
+ -
+
+
关闭麦克风
+ #tl-rtc-app-icon-guanbimaikefeng
+
+
+ -
+
+
浏览器
+ #tl-rtc-app-icon-liulanqi
+
+
+ -
+
+
三角形
+ #tl-rtc-app-icon-sanjiaoxing
+
+
+ -
+
+
向上三角形
+ #tl-rtc-app-icon-xiangshangsanjiaoxing
+
+
+ -
+
+
星星
+ #tl-rtc-app-icon-xingxing
+
+
+ -
+
+
星星
+ #tl-rtc-app-icon-xingxing1
+
+
+ -
+
+
tx-fill-平行四边形
+ #tl-rtc-app-icon-tx-fill-pinghangsibianxing
+
+
+ -
+
+
tx-fill-六边形
+ #tl-rtc-app-icon-tx-fill-liubianxing
+
+
+ -
+
+
平行四边形
+ #tl-rtc-app-icon-pinghangsibianxing
+
+
+ -
+
+
六边形
+ #tl-rtc-app-icon-hexagon
+
+
+ -
+
+
github
+ #tl-rtc-app-icon-github
+
+
+ -
+
+
文件类型-Excel
+ #tl-rtc-app-icon-Excel
+
+
+ -
+
+
文件类型-文件夹
+ #tl-rtc-app-icon-File
+
+
+ -
+
+
文件类型-Word
+ #tl-rtc-app-icon-Word
+
+
+ -
+
+
文件类型-PPT
+ #tl-rtc-app-icon-PPT
+
+
+ -
+
+
文件类型-音频
+ #tl-rtc-app-icon-music
+
+
+ -
+
+
文件类型-程序
+ #tl-rtc-app-icon-chengxu
+
+
+ -
+
+
文件类型-视频
+ #tl-rtc-app-icon-shipin1
+
+
+ -
+
+
文件类型-链接
+ #tl-rtc-app-icon-lianjiewenjian
+
+
+ -
+
+
文件类型-图片
+ #tl-rtc-app-icon-tupian
+
+
+ -
+
+
文件类型-压缩包
+ #tl-rtc-app-icon-yasuobao
+
+
+ -
+
+
文件类型-未知文件
+ #tl-rtc-app-icon-weizhiwenjian
+
+
+ -
+
+
文件类型-Pdf
+ #tl-rtc-app-icon-Pdf
+
+
+ -
+
+
文件类型-Txt
+ #tl-rtc-app-icon-txt1
+
+
+ -
+
+
文件类型-WPS
+ #tl-rtc-app-icon-WPS
+
+
+ -
+
+
文件类型-数据库
+ #tl-rtc-app-icon-shujuku
+
+
+ -
+
+
文件类型-3D
+ #tl-rtc-app-icon-a-3D
+
+
+ -
+
+
文件类型-邮件
+ #tl-rtc-app-icon-youjian
+
+
+ -
+
+
文件类型-配置文件
+ #tl-rtc-app-icon-peizhiwenjian
+
+
+ -
+
+
WIFI
+ #tl-rtc-app-icon-WIFI
+
+
+ -
+
+
红包
+ #tl-rtc-app-icon-hongbao
+
+
+ -
+
+
圆角矩形
+ #tl-rtc-app-icon-yuanjiao-rect
+
+
+ -
+
+
圆形
+ #tl-rtc-app-icon-circle
+
+
+ -
+
+
橡皮擦
+ #tl-rtc-app-icon-xiangpica
+
+
+ -
+
+
文字
+ #tl-rtc-app-icon-wenzi
+
+
+ -
+
+
矩形
+ #tl-rtc-app-icon-juxing
+
+
+ -
+
+
圆形
+ #tl-rtc-app-icon-yuanxing
+
+
+ -
+
+
下载
+ #tl-rtc-app-icon-xiazai
+
+
+ -
+
+
图片
+ #tl-rtc-app-icon-tupian_huaban
+
+
+ -
+
+
工具
+ #tl-rtc-app-icon-gongju
+
+
+ -
+
+
5g
+ #tl-rtc-app-icon-five-g
+
+
+ -
+
+
3g
+ #tl-rtc-app-icon-three-g
+
+
+ -
+
+
4g
+ #tl-rtc-app-icon-four-g
+
+
+ -
+
+
2g
+ #tl-rtc-app-icon-two-g
+
+
+
+
+
Symbol 引用
+
+
+
这是一种全新的使用方式,应该说这才是未来的主流,也是平台目前推荐的用法。相关介绍可以参考这篇文章
+ 这种用法其实是做了一个 SVG 的集合,与另外两种相比具有如下特点:
+
+ - 支持多色图标了,不再受单色限制。
+ - 通过一些技巧,支持像字体那样,通过
font-size, color 来调整样式。
+ - 兼容性较差,支持 IE9+,及现代浏览器。
+ - 浏览器渲染 SVG 的性能一般,还不如 png。
+
+
使用步骤如下:
+
第一步:引入项目下面生成的 symbol 代码:
+
<script src="./iconfont.js"></script>
+
+
第二步:加入通用 CSS 代码(引入一次就行):
+
<style>
+.icon {
+ width: 1em;
+ height: 1em;
+ vertical-align: -0.15em;
+ fill: currentColor;
+ overflow: hidden;
+}
+</style>
+
+
第三步:挑选相应图标并获取类名,应用于页面:
+
<svg class="icon" aria-hidden="true">
+ <use xlink:href="#icon-xxx"></use>
+</svg>
+
+
+
+
+
+
+
+
+
diff --git a/web-v2-res/static/layui/font-ext/iconfont.css b/web-v2-res/static/layui/font-ext/iconfont.css
new file mode 100644
index 0000000..f3de5e4
--- /dev/null
+++ b/web-v2-res/static/layui/font-ext/iconfont.css
@@ -0,0 +1,955 @@
+@font-face {
+ font-family: "iconfont"; /* Project id 4147343 */
+ src: url('iconfont.woff2?t=1736500670093') format('woff2'),
+ url('iconfont.woff?t=1736500670093') format('woff'),
+ url('iconfont.ttf?t=1736500670093') format('truetype');
+}
+
+.iconfont {
+ font-family: "iconfont" !important;
+ font-size: 16px;
+ font-style: normal;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+.tl-rtc-app-icon-huigun:before {
+ content: "\e688";
+}
+
+.tl-rtc-app-icon-jianshao:before {
+ content: "\e689";
+}
+
+.tl-rtc-app-icon-zengjia:before {
+ content: "\e68a";
+}
+
+.tl-rtc-app-icon-huigun-copy:before {
+ content: "\ee0f";
+}
+
+.tl-rtc-app-icon-baocun_o:before {
+ content: "\eb47";
+}
+
+.tl-rtc-app-icon-shuzhou:before {
+ content: "\e675";
+}
+
+.tl-rtc-app-icon-shouqiquanping:before {
+ content: "\e677";
+}
+
+.tl-rtc-app-icon-youduiqi:before {
+ content: "\e678";
+}
+
+.tl-rtc-app-icon-zuoduiqi:before {
+ content: "\e679";
+}
+
+.tl-rtc-app-icon-juzhongduiqi:before {
+ content: "\e67b";
+}
+
+.tl-rtc-app-icon-quanping:before {
+ content: "\e67f";
+}
+
+.tl-rtc-app-icon-zitibiaoti:before {
+ content: "\ec84";
+}
+
+.tl-rtc-app-icon-zitisuoxiao:before {
+ content: "\e680";
+}
+
+.tl-rtc-app-icon-zitifangda:before {
+ content: "\e681";
+}
+
+.tl-rtc-app-icon-zitiyanse:before {
+ content: "\e682";
+}
+
+.tl-rtc-app-icon-format_list_bulleted_black_24dp:before {
+ content: "\e73d";
+}
+
+.tl-rtc-app-icon-format_list_numbered_black_24dp:before {
+ content: "\e73c";
+}
+
+.tl-rtc-app-icon-a-jiacu3x:before {
+ content: "\e683";
+}
+
+.tl-rtc-app-icon-a-xiahuaxian3x:before {
+ content: "\e684";
+}
+
+.tl-rtc-app-icon-qingxie:before {
+ content: "\e686";
+}
+
+.tl-rtc-app-icon-fangdazhanshi:before {
+ content: "\e671";
+}
+
+.tl-rtc-app-icon-wode-guanyuwomen:before {
+ content: "\e672";
+}
+
+.tl-rtc-app-icon-tengxunyun:before {
+ content: "\e6f3";
+}
+
+.tl-rtc-app-icon-aliyun:before {
+ content: "\ecfe";
+}
+
+.tl-rtc-app-icon-yunfuwuqi:before {
+ content: "\e673";
+}
+
+.tl-rtc-app-icon-tianjia1:before {
+ content: "\e6df";
+}
+
+.tl-rtc-app-icon-chehui:before {
+ content: "\e670";
+}
+
+.tl-rtc-app-icon-huifu1:before {
+ content: "\e66e";
+}
+
+.tl-rtc-app-icon-biaoqing:before {
+ content: "\ee0e";
+}
+
+.tl-rtc-app-icon-zhuashouzhuaqi:before {
+ content: "\e6f0";
+}
+
+.tl-rtc-app-icon-daiban:before {
+ content: "\e674";
+}
+
+.tl-rtc-app-icon-tishi:before {
+ content: "\e66d";
+}
+
+.tl-rtc-app-icon-kaishi1:before {
+ content: "\e66c";
+}
+
+.tl-rtc-app-icon-fanghukaiqi:before {
+ content: "\e66b";
+}
+
+.tl-rtc-app-icon-shuru:before {
+ content: "\e73a";
+}
+
+.tl-rtc-app-icon-wenzi1:before {
+ content: "\e66a";
+}
+
+.tl-rtc-app-icon-leixing:before {
+ content: "\e665";
+}
+
+.tl-rtc-app-icon-zifu:before {
+ content: "\e668";
+}
+
+.tl-rtc-app-icon-a-fenzu32:before {
+ content: "\e6f6";
+}
+
+.tl-rtc-app-icon-lahei:before {
+ content: "\e662";
+}
+
+.tl-rtc-app-icon-lahei-1:before {
+ content: "\e664";
+}
+
+.tl-rtc-app-icon-jieping:before {
+ content: "\e661";
+}
+
+.tl-rtc-app-icon-fangda:before {
+ content: "\e660";
+}
+
+.tl-rtc-app-icon-jiesuo:before {
+ content: "\e65f";
+}
+
+.tl-rtc-app-icon-kaishi:before {
+ content: "\e788";
+}
+
+.tl-rtc-app-icon-shangyibu-01:before {
+ content: "\ee0d";
+}
+
+.tl-rtc-app-icon-xiayibu-01:before {
+ content: "\e65b";
+}
+
+.tl-rtc-app-icon-shebeijiance:before {
+ content: "\e67c";
+}
+
+.tl-rtc-app-icon-jianjie:before {
+ content: "\e764";
+}
+
+.tl-rtc-app-icon-huiyimingcheng:before {
+ content: "\e65a";
+}
+
+.tl-rtc-app-icon-wendang:before {
+ content: "\e69c";
+}
+
+.tl-rtc-app-icon-wendang1:before {
+ content: "\e67e";
+}
+
+.tl-rtc-app-icon-huiyijilu:before {
+ content: "\e8a0";
+}
+
+.tl-rtc-app-icon-huiyiliebiao:before {
+ content: "\e687";
+}
+
+.tl-rtc-app-icon-jiaruchizi:before {
+ content: "\e73b";
+}
+
+.tl-rtc-app-icon-ziyuan:before {
+ content: "\e659";
+}
+
+.tl-rtc-app-icon-shoucang3:before {
+ content: "\e604";
+}
+
+.tl-rtc-app-icon-clear:before {
+ content: "\e6d1";
+}
+
+.tl-rtc-app-icon-shangchuan11:before {
+ content: "\ee0c";
+}
+
+.tl-rtc-app-icon-yulan:before {
+ content: "\e65c";
+}
+
+.tl-rtc-app-icon-xiazai-:before {
+ content: "\e65d";
+}
+
+.tl-rtc-app-icon-shoucang2:before {
+ content: "\e65e";
+}
+
+.tl-rtc-app-icon-chongmingm:before {
+ content: "\e667";
+}
+
+.tl-rtc-app-icon-yidong:before {
+ content: "\e698";
+}
+
+.tl-rtc-app-icon-yidong1:before {
+ content: "\e63e";
+}
+
+.tl-rtc-app-icon-a-wenjianjiawenjian:before {
+ content: "\e69e";
+}
+
+.tl-rtc-app-icon-xinjianwenjianjia:before {
+ content: "\e630";
+}
+
+.tl-rtc-app-icon-yuyin1:before {
+ content: "\e8f7";
+}
+
+.tl-rtc-app-icon-zhibo1:before {
+ content: "\e7d5";
+}
+
+.tl-rtc-app-icon-yuyinxiaoxi:before {
+ content: "\e676";
+}
+
+.tl-rtc-app-icon-daochu:before {
+ content: "\e658";
+}
+
+.tl-rtc-app-icon-shanchu:before {
+ content: "\e654";
+}
+
+.tl-rtc-app-icon-daoru:before {
+ content: "\e655";
+}
+
+.tl-rtc-app-icon-quxiaozhiding:before {
+ content: "\e6eb";
+}
+
+.tl-rtc-app-icon-yichu:before {
+ content: "\e6d6";
+}
+
+.tl-rtc-app-icon-biaoji-:before {
+ content: "\e652";
+}
+
+.tl-rtc-app-icon-yaoqing:before {
+ content: "\e666";
+}
+
+.tl-rtc-app-icon-miandarao:before {
+ content: "\e651";
+}
+
+.tl-rtc-app-icon-zhiding1:before {
+ content: "\e704";
+}
+
+.tl-rtc-app-icon-saoma:before {
+ content: "\e749";
+}
+
+.tl-rtc-app-icon-shangxiaxian-shangxian-copy:before {
+ content: "\ee0b";
+}
+
+.tl-rtc-app-icon-guanbi:before {
+ content: "\e650";
+}
+
+.tl-rtc-app-icon-shangxiaxian-xiaxian:before {
+ content: "\e738";
+}
+
+.tl-rtc-app-icon-qunzhu:before {
+ content: "\e6ad";
+}
+
+.tl-rtc-app-icon-dian:before {
+ content: "\e648";
+}
+
+.tl-rtc-app-icon-lixian:before {
+ content: "\e64d";
+}
+
+.tl-rtc-app-icon-jiaru:before {
+ content: "\e645";
+}
+
+.tl-rtc-app-icon-shangchuanxiazai:before {
+ content: "\e63b";
+}
+
+.tl-rtc-app-icon-shangchuanxiazai1:before {
+ content: "\e63c";
+}
+
+.tl-rtc-app-icon-wenjianchuanshu:before {
+ content: "\e6c6";
+}
+
+.tl-rtc-app-icon-chuangjianqunliao:before {
+ content: "\e62c";
+}
+
+.tl-rtc-app-icon-shipinhuiyichuangjian:before {
+ content: "\ea47";
+}
+
+.tl-rtc-app-icon-_detail_chest:before {
+ content: "\e62d";
+}
+
+.tl-rtc-app-icon-gensuixitong-followsystem-line:before {
+ content: "\e629";
+}
+
+.tl-rtc-app-icon-mingliangmoshi:before {
+ content: "\e628";
+}
+
+.tl-rtc-app-icon-anhei:before {
+ content: "\e62b";
+}
+
+.tl-rtc-app-icon-fenxiang1:before {
+ content: "\e6a7";
+}
+
+.tl-rtc-app-icon-huifu:before {
+ content: "\e6c1";
+}
+
+.tl-rtc-app-icon-yishoucang:before {
+ content: "\e615";
+}
+
+.tl-rtc-app-icon-shoucang1:before {
+ content: "\e60e";
+}
+
+.tl-rtc-app-icon-Cyuyan:before {
+ content: "\ee07";
+}
+
+.tl-rtc-app-icon-APK:before {
+ content: "\ee09";
+}
+
+.tl-rtc-app-icon-java-copy:before {
+ content: "\ee0a";
+}
+
+.tl-rtc-app-icon-exe:before {
+ content: "\edfa";
+}
+
+.tl-rtc-app-icon-python:before {
+ content: "\edfb";
+}
+
+.tl-rtc-app-icon-CONF:before {
+ content: "\edfc";
+}
+
+.tl-rtc-app-icon-json:before {
+ content: "\e801";
+}
+
+.tl-rtc-app-icon-javascript:before {
+ content: "\edfd";
+}
+
+.tl-rtc-app-icon-csv:before {
+ content: "\edfe";
+}
+
+.tl-rtc-app-icon-dll:before {
+ content: "\edff";
+}
+
+.tl-rtc-app-icon-xmlwenjian:before {
+ content: "\ee00";
+}
+
+.tl-rtc-app-icon-shell:before {
+ content: "\ee01";
+}
+
+.tl-rtc-app-icon-PHP:before {
+ content: "\ee02";
+}
+
+.tl-rtc-app-icon-cpp-copy:before {
+ content: "\ee03";
+}
+
+.tl-rtc-app-icon-iso:before {
+ content: "\ee04";
+}
+
+.tl-rtc-app-icon-HTML:before {
+ content: "\ee05";
+}
+
+.tl-rtc-app-icon-css-copy:before {
+ content: "\ee06";
+}
+
+.tl-rtc-app-icon-wancheng:before {
+ content: "\e627";
+}
+
+.tl-rtc-app-icon-chulizhong:before {
+ content: "\e6b9";
+}
+
+.tl-rtc-app-icon-shangchuan:before {
+ content: "\e635";
+}
+
+.tl-rtc-app-icon-huiyiliebiao1:before {
+ content: "\e86b";
+}
+
+.tl-rtc-app-icon-yuding:before {
+ content: "\e6c5";
+}
+
+.tl-rtc-app-icon-yuanchengkongzhi:before {
+ content: "\e644";
+}
+
+.tl-rtc-app-icon-a-tongzhigonggao3x:before {
+ content: "\e624";
+}
+
+.tl-rtc-app-icon-liebiaomoshi:before {
+ content: "\e603";
+}
+
+.tl-rtc-app-icon-huiyi:before {
+ content: "\e747";
+}
+
+.tl-rtc-app-icon-shoucang:before {
+ content: "\e605";
+}
+
+.tl-rtc-app-icon-weixin:before {
+ content: "\e634";
+}
+
+.tl-rtc-app-icon-lineup:before {
+ content: "\e692";
+}
+
+.tl-rtc-app-icon-qq:before {
+ content: "\e614";
+}
+
+.tl-rtc-app-icon-huishouzhan:before {
+ content: "\e602";
+}
+
+.tl-rtc-app-icon-zuijinliulan:before {
+ content: "\e633";
+}
+
+.tl-rtc-app-icon-qunliao:before {
+ content: "\e622";
+}
+
+.tl-rtc-app-icon-wodewenjianjia:before {
+ content: "\e685";
+}
+
+.tl-rtc-app-icon-quanxian:before {
+ content: "\e612";
+}
+
+.tl-rtc-app-icon-pifu:before {
+ content: "\e647";
+}
+
+.tl-rtc-app-icon-qita:before {
+ content: "\e6d5";
+}
+
+.tl-rtc-app-icon-xiaoxi1:before {
+ content: "\e60f";
+}
+
+.tl-rtc-app-icon-caidan:before {
+ content: "\e607";
+}
+
+.tl-rtc-app-icon-zhanghao:before {
+ content: "\e68c";
+}
+
+.tl-rtc-app-icon-guaduan:before {
+ content: "\e646";
+}
+
+.tl-rtc-app-icon-shipin:before {
+ content: "\e85f";
+}
+
+.tl-rtc-app-icon-x:before {
+ content: "\e67d";
+}
+
+.tl-rtc-app-icon-fenxiang:before {
+ content: "\e739";
+}
+
+.tl-rtc-app-icon-xiangshang2:before {
+ content: "\e76e";
+}
+
+.tl-rtc-app-icon-xiangxia2:before {
+ content: "\e772";
+}
+
+.tl-rtc-app-icon-xiangyou1:before {
+ content: "\e775";
+}
+
+.tl-rtc-app-icon-xiangzuo1:before {
+ content: "\e779";
+}
+
+.tl-rtc-app-icon-70chenggong:before {
+ content: "\e649";
+}
+
+.tl-rtc-app-icon-71shibai:before {
+ content: "\e64a";
+}
+
+.tl-rtc-app-icon-jinggao:before {
+ content: "\e6b6";
+}
+
+.tl-rtc-app-icon-qiyeweixin:before {
+ content: "\e621";
+}
+
+.tl-rtc-app-icon-shouji:before {
+ content: "\e63a";
+}
+
+.tl-rtc-app-icon-31dianhua:before {
+ content: "\e600";
+}
+
+.tl-rtc-app-icon-baiban:before {
+ content: "\e61d";
+}
+
+.tl-rtc-app-icon-m-fuwenben:before {
+ content: "\e7d3";
+}
+
+.tl-rtc-app-icon-faqiliaotian:before {
+ content: "\e7da";
+}
+
+.tl-rtc-app-icon-gengduo:before {
+ content: "\e719";
+}
+
+.tl-rtc-app-icon-xiaoxi:before {
+ content: "\e618";
+}
+
+.tl-rtc-app-icon-tongxunlu:before {
+ content: "\e6af";
+}
+
+.tl-rtc-app-icon-shezhi:before {
+ content: "\e68f";
+}
+
+.tl-rtc-app-icon-huiyiricheng:before {
+ content: "\e636";
+}
+
+.tl-rtc-app-icon-wenjianjia:before {
+ content: "\e601";
+}
+
+.tl-rtc-app-icon-tuichu:before {
+ content: "\e637";
+}
+
+.tl-rtc-app-icon-youjian1:before {
+ content: "\e653";
+}
+
+.tl-rtc-app-icon-tianjia:before {
+ content: "\e657";
+}
+
+.tl-rtc-app-icon-icon:before {
+ content: "\e632";
+}
+
+.tl-rtc-app-icon-faxian:before {
+ content: "\e669";
+}
+
+.tl-rtc-app-icon-fuzhi:before {
+ content: "\e8b0";
+}
+
+.tl-rtc-app-icon-gitee:before {
+ content: "\e631";
+}
+
+.tl-rtc-app-icon-jianqie:before {
+ content: "\e62f";
+}
+
+.tl-rtc-app-icon-cuowu:before {
+ content: "\e62e";
+}
+
+.tl-rtc-app-icon-gerenzhongxin:before {
+ content: "\e62a";
+}
+
+.tl-rtc-app-icon-xiangjifanzhuan:before {
+ content: "\e6de";
+}
+
+.tl-rtc-app-icon-laoshi:before {
+ content: "\e81f";
+}
+
+.tl-rtc-app-icon-navbar_guanzhong:before {
+ content: "\e625";
+}
+
+.tl-rtc-app-icon-shengboyuyinxiaoxi:before {
+ content: "\e8c4";
+}
+
+.tl-rtc-app-icon-yuyin:before {
+ content: "\e813";
+}
+
+.tl-rtc-app-icon-fanzhuanjingtou:before {
+ content: "\e872";
+}
+
+.tl-rtc-app-icon-wangpan:before {
+ content: "\e63d";
+}
+
+.tl-rtc-app-icon-mima:before {
+ content: "\e67a";
+}
+
+.tl-rtc-app-icon-luzhi:before {
+ content: "\e741";
+}
+
+.tl-rtc-app-icon-shiwu-huabi:before {
+ content: "\e753";
+}
+
+.tl-rtc-app-icon-24px2x:before {
+ content: "\e623";
+}
+
+.tl-rtc-app-icon-zhibo:before {
+ content: "\e74f";
+}
+
+.tl-rtc-app-icon-guaduandianhua:before {
+ content: "\e61c";
+}
+
+.tl-rtc-app-icon-guanbiyangshengqi:before {
+ content: "\e61e";
+}
+
+.tl-rtc-app-icon-maikefeng-XDY:before {
+ content: "\e663";
+}
+
+.tl-rtc-app-icon-pingmugongxiang:before {
+ content: "\e746";
+}
+
+.tl-rtc-app-icon-shexiangtou:before {
+ content: "\eca6";
+}
+
+.tl-rtc-app-icon-laba:before {
+ content: "\e61f";
+}
+
+.tl-rtc-app-icon-guanbimaikefeng:before {
+ content: "\e643";
+}
+
+.tl-rtc-app-icon-liulanqi:before {
+ content: "\e6e8";
+}
+
+.tl-rtc-app-icon-sanjiaoxing:before {
+ content: "\e619";
+}
+
+.tl-rtc-app-icon-xiangshangsanjiaoxing:before {
+ content: "\e70f";
+}
+
+.tl-rtc-app-icon-xingxing:before {
+ content: "\e61a";
+}
+
+.tl-rtc-app-icon-xingxing1:before {
+ content: "\e639";
+}
+
+.tl-rtc-app-icon-tx-fill-pinghangsibianxing:before {
+ content: "\e64c";
+}
+
+.tl-rtc-app-icon-tx-fill-liubianxing:before {
+ content: "\e64b";
+}
+
+.tl-rtc-app-icon-pinghangsibianxing:before {
+ content: "\edf9";
+}
+
+.tl-rtc-app-icon-hexagon:before {
+ content: "\e61b";
+}
+
+.tl-rtc-app-icon-github:before {
+ content: "\e66f";
+}
+
+.tl-rtc-app-icon-Excel:before {
+ content: "\e602";
+}
+
+.tl-rtc-app-icon-File:before {
+ content: "\e603";
+}
+
+.tl-rtc-app-icon-Word:before {
+ content: "\e605";
+}
+
+.tl-rtc-app-icon-PPT:before {
+ content: "\e606";
+}
+
+.tl-rtc-app-icon-music:before {
+ content: "\e607";
+}
+
+.tl-rtc-app-icon-chengxu:before {
+ content: "\e608";
+}
+
+.tl-rtc-app-icon-shipin1:before {
+ content: "\e609";
+}
+
+.tl-rtc-app-icon-lianjiewenjian:before {
+ content: "\e60a";
+}
+
+.tl-rtc-app-icon-tupian:before {
+ content: "\e60b";
+}
+
+.tl-rtc-app-icon-yasuobao:before {
+ content: "\e60c";
+}
+
+.tl-rtc-app-icon-weizhiwenjian:before {
+ content: "\e60d";
+}
+
+.tl-rtc-app-icon-Pdf:before {
+ content: "\e610";
+}
+
+.tl-rtc-app-icon-txt1:before {
+ content: "\e611";
+}
+
+.tl-rtc-app-icon-WPS:before {
+ content: "\e612";
+}
+
+.tl-rtc-app-icon-shujuku:before {
+ content: "\e613";
+}
+
+.tl-rtc-app-icon-a-3D:before {
+ content: "\e614";
+}
+
+.tl-rtc-app-icon-youjian:before {
+ content: "\e616";
+}
+
+.tl-rtc-app-icon-peizhiwenjian:before {
+ content: "\e617";
+}
+
+.tl-rtc-app-icon-WIFI:before {
+ content: "\e700";
+}
+
+.tl-rtc-app-icon-hongbao:before {
+ content: "\e656";
+}
+
+.tl-rtc-app-icon-yuanjiao-rect:before {
+ content: "\e64e";
+}
+
+.tl-rtc-app-icon-circle:before {
+ content: "\e64f";
+}
+
+.tl-rtc-app-icon-xiangpica:before {
+ content: "\e6b8";
+}
+
+.tl-rtc-app-icon-wenzi:before {
+ content: "\e6ec";
+}
+
+.tl-rtc-app-icon-juxing:before {
+ content: "\e620";
+}
+
+.tl-rtc-app-icon-yuanxing:before {
+ content: "\e626";
+}
+
+.tl-rtc-app-icon-xiazai:before {
+ content: "\e638";
+}
+
+.tl-rtc-app-icon-tupian_huaban:before {
+ content: "\e691";
+}
+
+.tl-rtc-app-icon-gongju:before {
+ content: "\e6cf";
+}
+
+.tl-rtc-app-icon-five-g:before {
+ content: "\e63f";
+}
+
+.tl-rtc-app-icon-three-g:before {
+ content: "\e640";
+}
+
+.tl-rtc-app-icon-four-g:before {
+ content: "\e641";
+}
+
+.tl-rtc-app-icon-two-g:before {
+ content: "\e642";
+}
+
diff --git a/web-v2-res/static/layui/font-ext/iconfont.js b/web-v2-res/static/layui/font-ext/iconfont.js
new file mode 100644
index 0000000..ad220b8
--- /dev/null
+++ b/web-v2-res/static/layui/font-ext/iconfont.js
@@ -0,0 +1 @@
+window._iconfont_svg_string_4147343='',(l=>{var c=(a=(a=document.getElementsByTagName("script"))[a.length-1]).getAttribute("data-injectcss"),a=a.getAttribute("data-disable-injectsvg");if(!a){var h,t,p,i,o,v=function(c,a){a.parentNode.insertBefore(c,a)};if(c&&!l.__iconfont__svg__cssinject__){l.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(c){console&&console.log(c)}}h=function(){var c,a=document.createElement("div");a.innerHTML=l._iconfont_svg_string_4147343,(a=a.getElementsByTagName("svg")[0])&&(a.setAttribute("aria-hidden","true"),a.style.position="absolute",a.style.width=0,a.style.height=0,a.style.overflow="hidden",a=a,(c=document.body).firstChild?v(a,c.firstChild):c.appendChild(a))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(h,0):(t=function(){document.removeEventListener("DOMContentLoaded",t,!1),h()},document.addEventListener("DOMContentLoaded",t,!1)):document.attachEvent&&(p=h,i=l.document,o=!1,s(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,z())})}function z(){o||(o=!0,p())}function s(){try{i.documentElement.doScroll("left")}catch(c){return void setTimeout(s,50)}z()}})(window);
\ No newline at end of file
diff --git a/web-v2-res/static/layui/font-ext/iconfont.json b/web-v2-res/static/layui/font-ext/iconfont.json
new file mode 100644
index 0000000..fee34a5
--- /dev/null
+++ b/web-v2-res/static/layui/font-ext/iconfont.json
@@ -0,0 +1,1654 @@
+{
+ "id": "4147343",
+ "name": "无色图标",
+ "font_family": "iconfont",
+ "css_prefix_text": "tl-rtc-app-icon-",
+ "description": "",
+ "glyphs": [
+ {
+ "icon_id": "3304637",
+ "name": "回滚",
+ "font_class": "huigun",
+ "unicode": "e688",
+ "unicode_decimal": 59016
+ },
+ {
+ "icon_id": "5392436",
+ "name": "减少",
+ "font_class": "jianshao",
+ "unicode": "e689",
+ "unicode_decimal": 59017
+ },
+ {
+ "icon_id": "5392465",
+ "name": "增加",
+ "font_class": "zengjia",
+ "unicode": "e68a",
+ "unicode_decimal": 59018
+ },
+ {
+ "icon_id": "43112722",
+ "name": "回滚",
+ "font_class": "huigun-copy",
+ "unicode": "ee0f",
+ "unicode_decimal": 60943
+ },
+ {
+ "icon_id": "5387745",
+ "name": "保存_o",
+ "font_class": "baocun_o",
+ "unicode": "eb47",
+ "unicode_decimal": 60231
+ },
+ {
+ "icon_id": "5978786",
+ "name": "number-axis",
+ "font_class": "shuzhou",
+ "unicode": "e675",
+ "unicode_decimal": 58997
+ },
+ {
+ "icon_id": "5978810",
+ "name": "cancel-full-screen",
+ "font_class": "shouqiquanping",
+ "unicode": "e677",
+ "unicode_decimal": 58999
+ },
+ {
+ "icon_id": "5978811",
+ "name": "right-align",
+ "font_class": "youduiqi",
+ "unicode": "e678",
+ "unicode_decimal": 59000
+ },
+ {
+ "icon_id": "5978816",
+ "name": "left-align",
+ "font_class": "zuoduiqi",
+ "unicode": "e679",
+ "unicode_decimal": 59001
+ },
+ {
+ "icon_id": "5978831",
+ "name": "middle-align",
+ "font_class": "juzhongduiqi",
+ "unicode": "e67b",
+ "unicode_decimal": 59003
+ },
+ {
+ "icon_id": "5978835",
+ "name": "full-screen",
+ "font_class": "quanping",
+ "unicode": "e67f",
+ "unicode_decimal": 59007
+ },
+ {
+ "icon_id": "6337469",
+ "name": "字体标题",
+ "font_class": "zitibiaoti",
+ "unicode": "ec84",
+ "unicode_decimal": 60548
+ },
+ {
+ "icon_id": "8137611",
+ "name": "字体缩小",
+ "font_class": "zitisuoxiao",
+ "unicode": "e680",
+ "unicode_decimal": 59008
+ },
+ {
+ "icon_id": "8137645",
+ "name": "字体放大",
+ "font_class": "zitifangda",
+ "unicode": "e681",
+ "unicode_decimal": 59009
+ },
+ {
+ "icon_id": "12891384",
+ "name": "字体颜色",
+ "font_class": "zitiyanse",
+ "unicode": "e682",
+ "unicode_decimal": 59010
+ },
+ {
+ "icon_id": "24206643",
+ "name": "符号列表",
+ "font_class": "format_list_bulleted_black_24dp",
+ "unicode": "e73d",
+ "unicode_decimal": 59197
+ },
+ {
+ "icon_id": "24206645",
+ "name": "编号列表",
+ "font_class": "format_list_numbered_black_24dp",
+ "unicode": "e73c",
+ "unicode_decimal": 59196
+ },
+ {
+ "icon_id": "27556853",
+ "name": "加粗@3x",
+ "font_class": "a-jiacu3x",
+ "unicode": "e683",
+ "unicode_decimal": 59011
+ },
+ {
+ "icon_id": "27556868",
+ "name": "下划线@3x",
+ "font_class": "a-xiahuaxian3x",
+ "unicode": "e684",
+ "unicode_decimal": 59012
+ },
+ {
+ "icon_id": "40268564",
+ "name": "倾斜",
+ "font_class": "qingxie",
+ "unicode": "e686",
+ "unicode_decimal": 59014
+ },
+ {
+ "icon_id": "19652324",
+ "name": "放大展示",
+ "font_class": "fangdazhanshi",
+ "unicode": "e671",
+ "unicode_decimal": 58993
+ },
+ {
+ "icon_id": "17542187",
+ "name": "我的-关于我们",
+ "font_class": "wode-guanyuwomen",
+ "unicode": "e672",
+ "unicode_decimal": 58994
+ },
+ {
+ "icon_id": "12839545",
+ "name": "腾讯云",
+ "font_class": "tengxunyun",
+ "unicode": "e6f3",
+ "unicode_decimal": 59123
+ },
+ {
+ "icon_id": "36086904",
+ "name": "阿里云",
+ "font_class": "aliyun",
+ "unicode": "ecfe",
+ "unicode_decimal": 60670
+ },
+ {
+ "icon_id": "10569671",
+ "name": "云服务器",
+ "font_class": "yunfuwuqi",
+ "unicode": "e673",
+ "unicode_decimal": 58995
+ },
+ {
+ "icon_id": "6852284",
+ "name": "添加",
+ "font_class": "tianjia1",
+ "unicode": "e6df",
+ "unicode_decimal": 59103
+ },
+ {
+ "icon_id": "12097377",
+ "name": "撤回",
+ "font_class": "chehui",
+ "unicode": "e670",
+ "unicode_decimal": 58992
+ },
+ {
+ "icon_id": "11729725",
+ "name": "回复",
+ "font_class": "huifu1",
+ "unicode": "e66e",
+ "unicode_decimal": 58990
+ },
+ {
+ "icon_id": "42957347",
+ "name": "表情",
+ "font_class": "biaoqing",
+ "unicode": "ee0e",
+ "unicode_decimal": 60942
+ },
+ {
+ "icon_id": "39084111",
+ "name": "抓手抓起",
+ "font_class": "zhuashouzhuaqi",
+ "unicode": "e6f0",
+ "unicode_decimal": 59120
+ },
+ {
+ "icon_id": "2212387",
+ "name": "代办",
+ "font_class": "daiban",
+ "unicode": "e674",
+ "unicode_decimal": 58996
+ },
+ {
+ "icon_id": "5392449",
+ "name": "提示",
+ "font_class": "tishi",
+ "unicode": "e66d",
+ "unicode_decimal": 58989
+ },
+ {
+ "icon_id": "4954913",
+ "name": "开始",
+ "font_class": "kaishi1",
+ "unicode": "e66c",
+ "unicode_decimal": 58988
+ },
+ {
+ "icon_id": "1761429",
+ "name": "防护开启",
+ "font_class": "fanghukaiqi",
+ "unicode": "e66b",
+ "unicode_decimal": 58987
+ },
+ {
+ "icon_id": "10274326",
+ "name": "输入",
+ "font_class": "shuru",
+ "unicode": "e73a",
+ "unicode_decimal": 59194
+ },
+ {
+ "icon_id": "10064728",
+ "name": "文字",
+ "font_class": "wenzi1",
+ "unicode": "e66a",
+ "unicode_decimal": 58986
+ },
+ {
+ "icon_id": "14692444",
+ "name": "类型",
+ "font_class": "leixing",
+ "unicode": "e665",
+ "unicode_decimal": 58981
+ },
+ {
+ "icon_id": "38316753",
+ "name": "字符",
+ "font_class": "zifu",
+ "unicode": "e668",
+ "unicode_decimal": 58984
+ },
+ {
+ "icon_id": "37171464",
+ "name": "导航栏-设置",
+ "font_class": "a-fenzu32",
+ "unicode": "e6f6",
+ "unicode_decimal": 59126
+ },
+ {
+ "icon_id": "40355486",
+ "name": "拉黑",
+ "font_class": "lahei",
+ "unicode": "e662",
+ "unicode_decimal": 58978
+ },
+ {
+ "icon_id": "42033682",
+ "name": "拉黑-1",
+ "font_class": "lahei-1",
+ "unicode": "e664",
+ "unicode_decimal": 58980
+ },
+ {
+ "icon_id": "13333840",
+ "name": "截屏",
+ "font_class": "jieping",
+ "unicode": "e661",
+ "unicode_decimal": 58977
+ },
+ {
+ "icon_id": "2312417",
+ "name": "放大",
+ "font_class": "fangda",
+ "unicode": "e660",
+ "unicode_decimal": 58976
+ },
+ {
+ "icon_id": "12796975",
+ "name": "解锁",
+ "font_class": "jiesuo",
+ "unicode": "e65f",
+ "unicode_decimal": 58975
+ },
+ {
+ "icon_id": "20447299",
+ "name": "开始",
+ "font_class": "kaishi",
+ "unicode": "e788",
+ "unicode_decimal": 59272
+ },
+ {
+ "icon_id": "42270894",
+ "name": "上一步",
+ "font_class": "shangyibu-01",
+ "unicode": "ee0d",
+ "unicode_decimal": 60941
+ },
+ {
+ "icon_id": "29548280",
+ "name": "下一步",
+ "font_class": "xiayibu-01",
+ "unicode": "e65b",
+ "unicode_decimal": 58971
+ },
+ {
+ "icon_id": "37851679",
+ "name": "设备检测",
+ "font_class": "shebeijiance",
+ "unicode": "e67c",
+ "unicode_decimal": 59004
+ },
+ {
+ "icon_id": "4580319",
+ "name": "简介",
+ "font_class": "jianjie",
+ "unicode": "e764",
+ "unicode_decimal": 59236
+ },
+ {
+ "icon_id": "20187557",
+ "name": "会议名称",
+ "font_class": "huiyimingcheng",
+ "unicode": "e65a",
+ "unicode_decimal": 58970
+ },
+ {
+ "icon_id": "16365901",
+ "name": "文档",
+ "font_class": "wendang",
+ "unicode": "e69c",
+ "unicode_decimal": 59036
+ },
+ {
+ "icon_id": "31947088",
+ "name": "文档",
+ "font_class": "wendang1",
+ "unicode": "e67e",
+ "unicode_decimal": 59006
+ },
+ {
+ "icon_id": "41005014",
+ "name": "会议记录",
+ "font_class": "huiyijilu",
+ "unicode": "e8a0",
+ "unicode_decimal": 59552
+ },
+ {
+ "icon_id": "42228444",
+ "name": "会议列表",
+ "font_class": "huiyiliebiao",
+ "unicode": "e687",
+ "unicode_decimal": 59015
+ },
+ {
+ "icon_id": "15993153",
+ "name": "加入池子",
+ "font_class": "jiaruchizi",
+ "unicode": "e73b",
+ "unicode_decimal": 59195
+ },
+ {
+ "icon_id": "8966255",
+ "name": "取消收藏",
+ "font_class": "ziyuan",
+ "unicode": "e659",
+ "unicode_decimal": 58969
+ },
+ {
+ "icon_id": "28016614",
+ "name": "收藏",
+ "font_class": "shoucang3",
+ "unicode": "e604",
+ "unicode_decimal": 58884
+ },
+ {
+ "icon_id": "586799",
+ "name": "clear",
+ "font_class": "clear",
+ "unicode": "e6d1",
+ "unicode_decimal": 59089
+ },
+ {
+ "icon_id": "42193812",
+ "name": "上传",
+ "font_class": "shangchuan11",
+ "unicode": "ee0c",
+ "unicode_decimal": 60940
+ },
+ {
+ "icon_id": "6180901",
+ "name": "预览",
+ "font_class": "yulan",
+ "unicode": "e65c",
+ "unicode_decimal": 58972
+ },
+ {
+ "icon_id": "6941977",
+ "name": "下载",
+ "font_class": "xiazai-",
+ "unicode": "e65d",
+ "unicode_decimal": 58973
+ },
+ {
+ "icon_id": "22357086",
+ "name": "收藏",
+ "font_class": "shoucang2",
+ "unicode": "e65e",
+ "unicode_decimal": 58974
+ },
+ {
+ "icon_id": "8449963",
+ "name": "chongmingm",
+ "font_class": "chongmingm",
+ "unicode": "e667",
+ "unicode_decimal": 58983
+ },
+ {
+ "icon_id": "7429924",
+ "name": "移动",
+ "font_class": "yidong",
+ "unicode": "e698",
+ "unicode_decimal": 59032
+ },
+ {
+ "icon_id": "19131374",
+ "name": "移动",
+ "font_class": "yidong1",
+ "unicode": "e63e",
+ "unicode_decimal": 58942
+ },
+ {
+ "icon_id": "27229314",
+ "name": "文件夹,文件",
+ "font_class": "a-wenjianjiawenjian",
+ "unicode": "e69e",
+ "unicode_decimal": 59038
+ },
+ {
+ "icon_id": "31160256",
+ "name": "新建文件夹",
+ "font_class": "xinjianwenjianjia",
+ "unicode": "e630",
+ "unicode_decimal": 58928
+ },
+ {
+ "icon_id": "3640135",
+ "name": "语音",
+ "font_class": "yuyin1",
+ "unicode": "e8f7",
+ "unicode_decimal": 59639
+ },
+ {
+ "icon_id": "8798014",
+ "name": "直播",
+ "font_class": "zhibo1",
+ "unicode": "e7d5",
+ "unicode_decimal": 59349
+ },
+ {
+ "icon_id": "27953835",
+ "name": "语音消息",
+ "font_class": "yuyinxiaoxi",
+ "unicode": "e676",
+ "unicode_decimal": 58998
+ },
+ {
+ "icon_id": "3101152",
+ "name": "导出",
+ "font_class": "daochu",
+ "unicode": "e658",
+ "unicode_decimal": 58968
+ },
+ {
+ "icon_id": "1459151",
+ "name": "删除",
+ "font_class": "shanchu",
+ "unicode": "e654",
+ "unicode_decimal": 58964
+ },
+ {
+ "icon_id": "3278355",
+ "name": "导入",
+ "font_class": "daoru",
+ "unicode": "e655",
+ "unicode_decimal": 58965
+ },
+ {
+ "icon_id": "8606080",
+ "name": "取消置顶",
+ "font_class": "quxiaozhiding",
+ "unicode": "e6eb",
+ "unicode_decimal": 59115
+ },
+ {
+ "icon_id": "6851369",
+ "name": "移除",
+ "font_class": "yichu",
+ "unicode": "e6d6",
+ "unicode_decimal": 59094
+ },
+ {
+ "icon_id": "13251669",
+ "name": "标记-01",
+ "font_class": "biaoji-",
+ "unicode": "e652",
+ "unicode_decimal": 58962
+ },
+ {
+ "icon_id": "1301389",
+ "name": "邀请",
+ "font_class": "yaoqing",
+ "unicode": "e666",
+ "unicode_decimal": 58982
+ },
+ {
+ "icon_id": "4096184",
+ "name": "免打扰",
+ "font_class": "miandarao",
+ "unicode": "e651",
+ "unicode_decimal": 58961
+ },
+ {
+ "icon_id": "4933249",
+ "name": "置顶",
+ "font_class": "zhiding1",
+ "unicode": "e704",
+ "unicode_decimal": 59140
+ },
+ {
+ "icon_id": "577354",
+ "name": "扫码",
+ "font_class": "saoma",
+ "unicode": "e749",
+ "unicode_decimal": 59209
+ },
+ {
+ "icon_id": "41519948",
+ "name": "上下线-上线",
+ "font_class": "shangxiaxian-shangxian-copy",
+ "unicode": "ee0b",
+ "unicode_decimal": 60939
+ },
+ {
+ "icon_id": "16364317",
+ "name": "关闭",
+ "font_class": "guanbi",
+ "unicode": "e650",
+ "unicode_decimal": 58960
+ },
+ {
+ "icon_id": "30705982",
+ "name": "上下线-下线",
+ "font_class": "shangxiaxian-xiaxian",
+ "unicode": "e738",
+ "unicode_decimal": 59192
+ },
+ {
+ "icon_id": "3461828",
+ "name": "群主",
+ "font_class": "qunzhu",
+ "unicode": "e6ad",
+ "unicode_decimal": 59053
+ },
+ {
+ "icon_id": "1920286",
+ "name": "点",
+ "font_class": "dian",
+ "unicode": "e648",
+ "unicode_decimal": 58952
+ },
+ {
+ "icon_id": "6903296",
+ "name": "离线",
+ "font_class": "lixian",
+ "unicode": "e64d",
+ "unicode_decimal": 58957
+ },
+ {
+ "icon_id": "34813635",
+ "name": "加入",
+ "font_class": "jiaru",
+ "unicode": "e645",
+ "unicode_decimal": 58949
+ },
+ {
+ "icon_id": "7925744",
+ "name": "上传下载",
+ "font_class": "shangchuanxiazai",
+ "unicode": "e63b",
+ "unicode_decimal": 58939
+ },
+ {
+ "icon_id": "7927162",
+ "name": "上传下载",
+ "font_class": "shangchuanxiazai1",
+ "unicode": "e63c",
+ "unicode_decimal": 58940
+ },
+ {
+ "icon_id": "10906396",
+ "name": "IDP-文件传输",
+ "font_class": "wenjianchuanshu",
+ "unicode": "e6c6",
+ "unicode_decimal": 59078
+ },
+ {
+ "icon_id": "2593625",
+ "name": "创建群聊",
+ "font_class": "chuangjianqunliao",
+ "unicode": "e62c",
+ "unicode_decimal": 58924
+ },
+ {
+ "icon_id": "26876074",
+ "name": "视频会议创建",
+ "font_class": "shipinhuiyichuangjian",
+ "unicode": "ea47",
+ "unicode_decimal": 59975
+ },
+ {
+ "icon_id": "5078451",
+ "name": "fdcjjrcx",
+ "font_class": "_detail_chest",
+ "unicode": "e62d",
+ "unicode_decimal": 58925
+ },
+ {
+ "icon_id": "30243501",
+ "name": "跟随系统-followsystem-line",
+ "font_class": "gensuixitong-followsystem-line",
+ "unicode": "e629",
+ "unicode_decimal": 58921
+ },
+ {
+ "icon_id": "381723",
+ "name": "明亮模式",
+ "font_class": "mingliangmoshi",
+ "unicode": "e628",
+ "unicode_decimal": 58920
+ },
+ {
+ "icon_id": "33468421",
+ "name": "暗黑",
+ "font_class": "anhei",
+ "unicode": "e62b",
+ "unicode_decimal": 58923
+ },
+ {
+ "icon_id": "15346600",
+ "name": "分享",
+ "font_class": "fenxiang1",
+ "unicode": "e6a7",
+ "unicode_decimal": 59047
+ },
+ {
+ "icon_id": "423642",
+ "name": "恢复",
+ "font_class": "huifu",
+ "unicode": "e6c1",
+ "unicode_decimal": 59073
+ },
+ {
+ "icon_id": "9526824",
+ "name": "已收藏",
+ "font_class": "yishoucang",
+ "unicode": "e615",
+ "unicode_decimal": 58901
+ },
+ {
+ "icon_id": "5057246",
+ "name": "收藏",
+ "font_class": "shoucang1",
+ "unicode": "e60e",
+ "unicode_decimal": 58894
+ },
+ {
+ "icon_id": "40577212",
+ "name": "C#语言",
+ "font_class": "Cyuyan",
+ "unicode": "ee07",
+ "unicode_decimal": 60935
+ },
+ {
+ "icon_id": "40577214",
+ "name": "APK",
+ "font_class": "APK",
+ "unicode": "ee09",
+ "unicode_decimal": 60937
+ },
+ {
+ "icon_id": "40577218",
+ "name": "java",
+ "font_class": "java-copy",
+ "unicode": "ee0a",
+ "unicode_decimal": 60938
+ },
+ {
+ "icon_id": "40577188",
+ "name": "exe",
+ "font_class": "exe",
+ "unicode": "edfa",
+ "unicode_decimal": 60922
+ },
+ {
+ "icon_id": "40577192",
+ "name": "python",
+ "font_class": "python",
+ "unicode": "edfb",
+ "unicode_decimal": 60923
+ },
+ {
+ "icon_id": "40577195",
+ "name": "CONF",
+ "font_class": "CONF",
+ "unicode": "edfc",
+ "unicode_decimal": 60924
+ },
+ {
+ "icon_id": "22910183",
+ "name": "json",
+ "font_class": "json",
+ "unicode": "e801",
+ "unicode_decimal": 59393
+ },
+ {
+ "icon_id": "40577196",
+ "name": "javascript",
+ "font_class": "javascript",
+ "unicode": "edfd",
+ "unicode_decimal": 60925
+ },
+ {
+ "icon_id": "40577197",
+ "name": "csv",
+ "font_class": "csv",
+ "unicode": "edfe",
+ "unicode_decimal": 60926
+ },
+ {
+ "icon_id": "40577200",
+ "name": "dll",
+ "font_class": "dll",
+ "unicode": "edff",
+ "unicode_decimal": 60927
+ },
+ {
+ "icon_id": "40577202",
+ "name": "xml文件",
+ "font_class": "xmlwenjian",
+ "unicode": "ee00",
+ "unicode_decimal": 60928
+ },
+ {
+ "icon_id": "40577203",
+ "name": "shell",
+ "font_class": "shell",
+ "unicode": "ee01",
+ "unicode_decimal": 60929
+ },
+ {
+ "icon_id": "40577204",
+ "name": "PHP",
+ "font_class": "PHP",
+ "unicode": "ee02",
+ "unicode_decimal": 60930
+ },
+ {
+ "icon_id": "40577205",
+ "name": "cpp-copy",
+ "font_class": "cpp-copy",
+ "unicode": "ee03",
+ "unicode_decimal": 60931
+ },
+ {
+ "icon_id": "40577206",
+ "name": "iso",
+ "font_class": "iso",
+ "unicode": "ee04",
+ "unicode_decimal": 60932
+ },
+ {
+ "icon_id": "40577208",
+ "name": "HTML",
+ "font_class": "HTML",
+ "unicode": "ee05",
+ "unicode_decimal": 60933
+ },
+ {
+ "icon_id": "40577210",
+ "name": "css",
+ "font_class": "css-copy",
+ "unicode": "ee06",
+ "unicode_decimal": 60934
+ },
+ {
+ "icon_id": "1163342",
+ "name": "完成",
+ "font_class": "wancheng",
+ "unicode": "e627",
+ "unicode_decimal": 58919
+ },
+ {
+ "icon_id": "20587071",
+ "name": "处理中",
+ "font_class": "chulizhong",
+ "unicode": "e6b9",
+ "unicode_decimal": 59065
+ },
+ {
+ "icon_id": "16364331",
+ "name": "上传",
+ "font_class": "shangchuan",
+ "unicode": "e635",
+ "unicode_decimal": 58933
+ },
+ {
+ "icon_id": "30617884",
+ "name": "会议列表",
+ "font_class": "huiyiliebiao1",
+ "unicode": "e86b",
+ "unicode_decimal": 59499
+ },
+ {
+ "icon_id": "3529032",
+ "name": "预定",
+ "font_class": "yuding",
+ "unicode": "e6c5",
+ "unicode_decimal": 59077
+ },
+ {
+ "icon_id": "20955715",
+ "name": "远程控制",
+ "font_class": "yuanchengkongzhi",
+ "unicode": "e644",
+ "unicode_decimal": 58948
+ },
+ {
+ "icon_id": "29635299",
+ "name": "通知公告",
+ "font_class": "a-tongzhigonggao3x",
+ "unicode": "e624",
+ "unicode_decimal": 58916
+ },
+ {
+ "icon_id": "201552",
+ "name": "列表模式",
+ "font_class": "liebiaomoshi",
+ "unicode": "e603",
+ "unicode_decimal": 58883
+ },
+ {
+ "icon_id": "2792489",
+ "name": "会议",
+ "font_class": "huiyi",
+ "unicode": "e747",
+ "unicode_decimal": 59207
+ },
+ {
+ "icon_id": "172696",
+ "name": "收藏",
+ "font_class": "shoucang",
+ "unicode": "e605",
+ "unicode_decimal": 58885
+ },
+ {
+ "icon_id": "933713",
+ "name": "微信",
+ "font_class": "weixin",
+ "unicode": "e634",
+ "unicode_decimal": 58932
+ },
+ {
+ "icon_id": "2072844",
+ "name": "line up_8px",
+ "font_class": "lineup",
+ "unicode": "e692",
+ "unicode_decimal": 59026
+ },
+ {
+ "icon_id": "8989633",
+ "name": "qq",
+ "font_class": "qq",
+ "unicode": "e614",
+ "unicode_decimal": 58900
+ },
+ {
+ "icon_id": "6013853",
+ "name": "回收站",
+ "font_class": "huishouzhan",
+ "unicode": "e602",
+ "unicode_decimal": 58882
+ },
+ {
+ "icon_id": "6234420",
+ "name": "最近浏览",
+ "font_class": "zuijinliulan",
+ "unicode": "e633",
+ "unicode_decimal": 58931
+ },
+ {
+ "icon_id": "6683278",
+ "name": "群聊",
+ "font_class": "qunliao",
+ "unicode": "e622",
+ "unicode_decimal": 58914
+ },
+ {
+ "icon_id": "11367465",
+ "name": "我的文件夹",
+ "font_class": "wodewenjianjia",
+ "unicode": "e685",
+ "unicode_decimal": 59013
+ },
+ {
+ "icon_id": "736503",
+ "name": "权限",
+ "font_class": "quanxian",
+ "unicode": "e612",
+ "unicode_decimal": 58898
+ },
+ {
+ "icon_id": "4251744",
+ "name": "皮肤",
+ "font_class": "pifu",
+ "unicode": "e647",
+ "unicode_decimal": 58951
+ },
+ {
+ "icon_id": "8430121",
+ "name": "其他",
+ "font_class": "qita",
+ "unicode": "e6d5",
+ "unicode_decimal": 59093
+ },
+ {
+ "icon_id": "9148582",
+ "name": "消息",
+ "font_class": "xiaoxi1",
+ "unicode": "e60f",
+ "unicode_decimal": 58895
+ },
+ {
+ "icon_id": "9384062",
+ "name": "菜单",
+ "font_class": "caidan",
+ "unicode": "e607",
+ "unicode_decimal": 58887
+ },
+ {
+ "icon_id": "10570303",
+ "name": "帐号",
+ "font_class": "zhanghao",
+ "unicode": "e68c",
+ "unicode_decimal": 59020
+ },
+ {
+ "icon_id": "6291978",
+ "name": "挂断",
+ "font_class": "guaduan",
+ "unicode": "e646",
+ "unicode_decimal": 58950
+ },
+ {
+ "icon_id": "16399024",
+ "name": "视频",
+ "font_class": "shipin",
+ "unicode": "e85f",
+ "unicode_decimal": 59487
+ },
+ {
+ "icon_id": "18957389",
+ "name": "x",
+ "font_class": "x",
+ "unicode": "e67d",
+ "unicode_decimal": 59005
+ },
+ {
+ "icon_id": "577337",
+ "name": "分享",
+ "font_class": "fenxiang",
+ "unicode": "e739",
+ "unicode_decimal": 59193
+ },
+ {
+ "icon_id": "577395",
+ "name": "向上2",
+ "font_class": "xiangshang2",
+ "unicode": "e76e",
+ "unicode_decimal": 59246
+ },
+ {
+ "icon_id": "577399",
+ "name": "向下2",
+ "font_class": "xiangxia2",
+ "unicode": "e772",
+ "unicode_decimal": 59250
+ },
+ {
+ "icon_id": "577402",
+ "name": "向右1",
+ "font_class": "xiangyou1",
+ "unicode": "e775",
+ "unicode_decimal": 59253
+ },
+ {
+ "icon_id": "577406",
+ "name": "向左1",
+ "font_class": "xiangzuo1",
+ "unicode": "e779",
+ "unicode_decimal": 59257
+ },
+ {
+ "icon_id": "582602",
+ "name": "成功",
+ "font_class": "70chenggong",
+ "unicode": "e649",
+ "unicode_decimal": 58953
+ },
+ {
+ "icon_id": "582603",
+ "name": "失败",
+ "font_class": "71shibai",
+ "unicode": "e64a",
+ "unicode_decimal": 58954
+ },
+ {
+ "icon_id": "1684788",
+ "name": "警告",
+ "font_class": "jinggao",
+ "unicode": "e6b6",
+ "unicode_decimal": 59062
+ },
+ {
+ "icon_id": "22032561",
+ "name": "企业微信",
+ "font_class": "qiyeweixin",
+ "unicode": "e621",
+ "unicode_decimal": 58913
+ },
+ {
+ "icon_id": "5386020",
+ "name": "手机",
+ "font_class": "shouji",
+ "unicode": "e63a",
+ "unicode_decimal": 58938
+ },
+ {
+ "icon_id": "201577",
+ "name": "3.1电话",
+ "font_class": "31dianhua",
+ "unicode": "e600",
+ "unicode_decimal": 58880
+ },
+ {
+ "icon_id": "12290471",
+ "name": "白板",
+ "font_class": "baiban",
+ "unicode": "e61d",
+ "unicode_decimal": 58909
+ },
+ {
+ "icon_id": "21027300",
+ "name": "m-富文本",
+ "font_class": "m-fuwenben",
+ "unicode": "e7d3",
+ "unicode_decimal": 59347
+ },
+ {
+ "icon_id": "4553723",
+ "name": "发起聊天",
+ "font_class": "faqiliaotian",
+ "unicode": "e7da",
+ "unicode_decimal": 59354
+ },
+ {
+ "icon_id": "3538385",
+ "name": "更多",
+ "font_class": "gengduo",
+ "unicode": "e719",
+ "unicode_decimal": 59161
+ },
+ {
+ "icon_id": "2681719",
+ "name": "消息",
+ "font_class": "xiaoxi",
+ "unicode": "e618",
+ "unicode_decimal": 58904
+ },
+ {
+ "icon_id": "18664716",
+ "name": "通讯录",
+ "font_class": "tongxunlu",
+ "unicode": "e6af",
+ "unicode_decimal": 59055
+ },
+ {
+ "icon_id": "666885",
+ "name": "设置",
+ "font_class": "shezhi",
+ "unicode": "e68f",
+ "unicode_decimal": 59023
+ },
+ {
+ "icon_id": "6429413",
+ "name": "会议日程",
+ "font_class": "huiyiricheng",
+ "unicode": "e636",
+ "unicode_decimal": 58934
+ },
+ {
+ "icon_id": "1126",
+ "name": "文件夹",
+ "font_class": "wenjianjia",
+ "unicode": "e601",
+ "unicode_decimal": 58881
+ },
+ {
+ "icon_id": "826162",
+ "name": "退出",
+ "font_class": "tuichu",
+ "unicode": "e637",
+ "unicode_decimal": 58935
+ },
+ {
+ "icon_id": "4251773",
+ "name": "邮件",
+ "font_class": "youjian1",
+ "unicode": "e653",
+ "unicode_decimal": 58963
+ },
+ {
+ "icon_id": "16165587",
+ "name": "添加",
+ "font_class": "tianjia",
+ "unicode": "e657",
+ "unicode_decimal": 58967
+ },
+ {
+ "icon_id": "340501",
+ "name": "消息提示",
+ "font_class": "icon",
+ "unicode": "e632",
+ "unicode_decimal": 58930
+ },
+ {
+ "icon_id": "6548530",
+ "name": "发现",
+ "font_class": "faxian",
+ "unicode": "e669",
+ "unicode_decimal": 58985
+ },
+ {
+ "icon_id": "11372665",
+ "name": "复制",
+ "font_class": "fuzhi",
+ "unicode": "e8b0",
+ "unicode_decimal": 59568
+ },
+ {
+ "icon_id": "26267572",
+ "name": "gitee",
+ "font_class": "gitee",
+ "unicode": "e631",
+ "unicode_decimal": 58929
+ },
+ {
+ "icon_id": "1117",
+ "name": "剪切",
+ "font_class": "jianqie",
+ "unicode": "e62f",
+ "unicode_decimal": 58927
+ },
+ {
+ "icon_id": "9826657",
+ "name": "错误",
+ "font_class": "cuowu",
+ "unicode": "e62e",
+ "unicode_decimal": 58926
+ },
+ {
+ "icon_id": "10199157",
+ "name": "个人中心",
+ "font_class": "gerenzhongxin",
+ "unicode": "e62a",
+ "unicode_decimal": 58922
+ },
+ {
+ "icon_id": "3405264",
+ "name": "相机反转",
+ "font_class": "xiangjifanzhuan",
+ "unicode": "e6de",
+ "unicode_decimal": 59102
+ },
+ {
+ "icon_id": "22960451",
+ "name": "老师",
+ "font_class": "laoshi",
+ "unicode": "e81f",
+ "unicode_decimal": 59423
+ },
+ {
+ "icon_id": "11341738",
+ "name": "11navbar_观众",
+ "font_class": "navbar_guanzhong",
+ "unicode": "e625",
+ "unicode_decimal": 58917
+ },
+ {
+ "icon_id": "1727449",
+ "name": "214声波、语音消息",
+ "font_class": "shengboyuyinxiaoxi",
+ "unicode": "e8c4",
+ "unicode_decimal": 59588
+ },
+ {
+ "icon_id": "17605450",
+ "name": "语音",
+ "font_class": "yuyin",
+ "unicode": "e813",
+ "unicode_decimal": 59411
+ },
+ {
+ "icon_id": "2076200",
+ "name": "翻转镜头",
+ "font_class": "fanzhuanjingtou",
+ "unicode": "e872",
+ "unicode_decimal": 59506
+ },
+ {
+ "icon_id": "564213",
+ "name": "网盘",
+ "font_class": "wangpan",
+ "unicode": "e63d",
+ "unicode_decimal": 58941
+ },
+ {
+ "icon_id": "1134325",
+ "name": "密码",
+ "font_class": "mima",
+ "unicode": "e67a",
+ "unicode_decimal": 59002
+ },
+ {
+ "icon_id": "4933362",
+ "name": "录制",
+ "font_class": "luzhi",
+ "unicode": "e741",
+ "unicode_decimal": 59201
+ },
+ {
+ "icon_id": "4933398",
+ "name": "实物-画笔",
+ "font_class": "shiwu-huabi",
+ "unicode": "e753",
+ "unicode_decimal": 59219
+ },
+ {
+ "icon_id": "15053872",
+ "name": "ai",
+ "font_class": "24px2x",
+ "unicode": "e623",
+ "unicode_decimal": 58915
+ },
+ {
+ "icon_id": "11520120",
+ "name": "直播",
+ "font_class": "zhibo",
+ "unicode": "e74f",
+ "unicode_decimal": 59215
+ },
+ {
+ "icon_id": "1231602",
+ "name": "挂断电话",
+ "font_class": "guaduandianhua",
+ "unicode": "e61c",
+ "unicode_decimal": 58908
+ },
+ {
+ "icon_id": "1374721",
+ "name": "关闭扬声器",
+ "font_class": "guanbiyangshengqi",
+ "unicode": "e61e",
+ "unicode_decimal": 58910
+ },
+ {
+ "icon_id": "1780714",
+ "name": "麦克风",
+ "font_class": "maikefeng-XDY",
+ "unicode": "e663",
+ "unicode_decimal": 58979
+ },
+ {
+ "icon_id": "4933368",
+ "name": "屏幕共享",
+ "font_class": "pingmugongxiang",
+ "unicode": "e746",
+ "unicode_decimal": 59206
+ },
+ {
+ "icon_id": "6776384",
+ "name": "摄像头",
+ "font_class": "shexiangtou",
+ "unicode": "eca6",
+ "unicode_decimal": 60582
+ },
+ {
+ "icon_id": "14191058",
+ "name": "喇叭",
+ "font_class": "laba",
+ "unicode": "e61f",
+ "unicode_decimal": 58911
+ },
+ {
+ "icon_id": "26661601",
+ "name": "关闭麦克风",
+ "font_class": "guanbimaikefeng",
+ "unicode": "e643",
+ "unicode_decimal": 58947
+ },
+ {
+ "icon_id": "25853325",
+ "name": "浏览器",
+ "font_class": "liulanqi",
+ "unicode": "e6e8",
+ "unicode_decimal": 59112
+ },
+ {
+ "icon_id": "3101162",
+ "name": "三角形",
+ "font_class": "sanjiaoxing",
+ "unicode": "e619",
+ "unicode_decimal": 58905
+ },
+ {
+ "icon_id": "6874514",
+ "name": "向上三角形",
+ "font_class": "xiangshangsanjiaoxing",
+ "unicode": "e70f",
+ "unicode_decimal": 59151
+ },
+ {
+ "icon_id": "8727201",
+ "name": "星星",
+ "font_class": "xingxing",
+ "unicode": "e61a",
+ "unicode_decimal": 58906
+ },
+ {
+ "icon_id": "10715456",
+ "name": "星星",
+ "font_class": "xingxing1",
+ "unicode": "e639",
+ "unicode_decimal": 58937
+ },
+ {
+ "icon_id": "14718685",
+ "name": "tx-fill-平行四边形",
+ "font_class": "tx-fill-pinghangsibianxing",
+ "unicode": "e64c",
+ "unicode_decimal": 58956
+ },
+ {
+ "icon_id": "14718689",
+ "name": "tx-fill-六边形",
+ "font_class": "tx-fill-liubianxing",
+ "unicode": "e64b",
+ "unicode_decimal": 58955
+ },
+ {
+ "icon_id": "22383635",
+ "name": "平行四边形",
+ "font_class": "pinghangsibianxing",
+ "unicode": "edf9",
+ "unicode_decimal": 60921
+ },
+ {
+ "icon_id": "27938688",
+ "name": "六边形",
+ "font_class": "hexagon",
+ "unicode": "e61b",
+ "unicode_decimal": 58907
+ },
+ {
+ "icon_id": "14401714",
+ "name": "github",
+ "font_class": "github",
+ "unicode": "e66f",
+ "unicode_decimal": 58991
+ },
+ {
+ "icon_id": "22725966",
+ "name": "文件类型-Excel",
+ "font_class": "Excel",
+ "unicode": "e602",
+ "unicode_decimal": 58882
+ },
+ {
+ "icon_id": "22735864",
+ "name": "文件类型-文件夹",
+ "font_class": "File",
+ "unicode": "e603",
+ "unicode_decimal": 58883
+ },
+ {
+ "icon_id": "22735865",
+ "name": "文件类型-Word",
+ "font_class": "Word",
+ "unicode": "e605",
+ "unicode_decimal": 58885
+ },
+ {
+ "icon_id": "22735866",
+ "name": "文件类型-PPT",
+ "font_class": "PPT",
+ "unicode": "e606",
+ "unicode_decimal": 58886
+ },
+ {
+ "icon_id": "22735867",
+ "name": "文件类型-音频",
+ "font_class": "music",
+ "unicode": "e607",
+ "unicode_decimal": 58887
+ },
+ {
+ "icon_id": "22761828",
+ "name": "文件类型-程序",
+ "font_class": "chengxu",
+ "unicode": "e608",
+ "unicode_decimal": 58888
+ },
+ {
+ "icon_id": "22761829",
+ "name": "文件类型-视频",
+ "font_class": "shipin1",
+ "unicode": "e609",
+ "unicode_decimal": 58889
+ },
+ {
+ "icon_id": "22761830",
+ "name": "文件类型-链接",
+ "font_class": "lianjiewenjian",
+ "unicode": "e60a",
+ "unicode_decimal": 58890
+ },
+ {
+ "icon_id": "22761831",
+ "name": "文件类型-图片",
+ "font_class": "tupian",
+ "unicode": "e60b",
+ "unicode_decimal": 58891
+ },
+ {
+ "icon_id": "22761832",
+ "name": "文件类型-压缩包",
+ "font_class": "yasuobao",
+ "unicode": "e60c",
+ "unicode_decimal": 58892
+ },
+ {
+ "icon_id": "22761833",
+ "name": "文件类型-未知文件",
+ "font_class": "weizhiwenjian",
+ "unicode": "e60d",
+ "unicode_decimal": 58893
+ },
+ {
+ "icon_id": "22761836",
+ "name": "文件类型-Pdf",
+ "font_class": "Pdf",
+ "unicode": "e610",
+ "unicode_decimal": 58896
+ },
+ {
+ "icon_id": "22761837",
+ "name": "文件类型-Txt",
+ "font_class": "txt1",
+ "unicode": "e611",
+ "unicode_decimal": 58897
+ },
+ {
+ "icon_id": "22767524",
+ "name": "文件类型-WPS",
+ "font_class": "WPS",
+ "unicode": "e612",
+ "unicode_decimal": 58898
+ },
+ {
+ "icon_id": "22767526",
+ "name": "文件类型-数据库",
+ "font_class": "shujuku",
+ "unicode": "e613",
+ "unicode_decimal": 58899
+ },
+ {
+ "icon_id": "22767545",
+ "name": "文件类型-3D",
+ "font_class": "a-3D",
+ "unicode": "e614",
+ "unicode_decimal": 58900
+ },
+ {
+ "icon_id": "22770102",
+ "name": "文件类型-邮件",
+ "font_class": "youjian",
+ "unicode": "e616",
+ "unicode_decimal": 58902
+ },
+ {
+ "icon_id": "22770103",
+ "name": "文件类型-配置文件",
+ "font_class": "peizhiwenjian",
+ "unicode": "e617",
+ "unicode_decimal": 58903
+ },
+ {
+ "icon_id": "1906325",
+ "name": "WIFI",
+ "font_class": "WIFI",
+ "unicode": "e700",
+ "unicode_decimal": 59136
+ },
+ {
+ "icon_id": "683275",
+ "name": "红包",
+ "font_class": "hongbao",
+ "unicode": "e656",
+ "unicode_decimal": 58966
+ },
+ {
+ "icon_id": "755610",
+ "name": "圆角矩形",
+ "font_class": "yuanjiao-rect",
+ "unicode": "e64e",
+ "unicode_decimal": 58958
+ },
+ {
+ "icon_id": "755612",
+ "name": "圆形",
+ "font_class": "circle",
+ "unicode": "e64f",
+ "unicode_decimal": 58959
+ },
+ {
+ "icon_id": "1057040",
+ "name": "橡皮擦",
+ "font_class": "xiangpica",
+ "unicode": "e6b8",
+ "unicode_decimal": 59064
+ },
+ {
+ "icon_id": "4890393",
+ "name": "文字",
+ "font_class": "wenzi",
+ "unicode": "e6ec",
+ "unicode_decimal": 59116
+ },
+ {
+ "icon_id": "10048835",
+ "name": "矩形",
+ "font_class": "juxing",
+ "unicode": "e620",
+ "unicode_decimal": 58912
+ },
+ {
+ "icon_id": "10048847",
+ "name": "圆形",
+ "font_class": "yuanxing",
+ "unicode": "e626",
+ "unicode_decimal": 58918
+ },
+ {
+ "icon_id": "10715450",
+ "name": "下载",
+ "font_class": "xiazai",
+ "unicode": "e638",
+ "unicode_decimal": 58936
+ },
+ {
+ "icon_id": "12706985",
+ "name": "图片",
+ "font_class": "tupian_huaban",
+ "unicode": "e691",
+ "unicode_decimal": 59025
+ },
+ {
+ "icon_id": "15718632",
+ "name": "工具",
+ "font_class": "gongju",
+ "unicode": "e6cf",
+ "unicode_decimal": 59087
+ },
+ {
+ "icon_id": "22272771",
+ "name": "5g",
+ "font_class": "five-g",
+ "unicode": "e63f",
+ "unicode_decimal": 58943
+ },
+ {
+ "icon_id": "22272772",
+ "name": "3g",
+ "font_class": "three-g",
+ "unicode": "e640",
+ "unicode_decimal": 58944
+ },
+ {
+ "icon_id": "22272775",
+ "name": "4g",
+ "font_class": "four-g",
+ "unicode": "e641",
+ "unicode_decimal": 58945
+ },
+ {
+ "icon_id": "22272787",
+ "name": "2g",
+ "font_class": "two-g",
+ "unicode": "e642",
+ "unicode_decimal": 58946
+ }
+ ]
+}
diff --git a/web-v2-res/static/layui/font-ext/iconfont.ttf b/web-v2-res/static/layui/font-ext/iconfont.ttf
new file mode 100644
index 0000000..aa3c982
Binary files /dev/null and b/web-v2-res/static/layui/font-ext/iconfont.ttf differ
diff --git a/web-v2-res/static/layui/font-ext/iconfont.woff b/web-v2-res/static/layui/font-ext/iconfont.woff
new file mode 100644
index 0000000..206824b
Binary files /dev/null and b/web-v2-res/static/layui/font-ext/iconfont.woff differ
diff --git a/web-v2-res/static/layui/font-ext/iconfont.woff2 b/web-v2-res/static/layui/font-ext/iconfont.woff2
new file mode 100644
index 0000000..81f3e9f
Binary files /dev/null and b/web-v2-res/static/layui/font-ext/iconfont.woff2 differ
diff --git a/web-v2-res/static/layui/font/iconfont.eot b/web-v2-res/static/layui/font/iconfont.eot
new file mode 100644
index 0000000..622d7ec
Binary files /dev/null and b/web-v2-res/static/layui/font/iconfont.eot differ
diff --git a/web-v2-res/static/layui/font/iconfont.svg b/web-v2-res/static/layui/font/iconfont.svg
new file mode 100644
index 0000000..999ca1f
--- /dev/null
+++ b/web-v2-res/static/layui/font/iconfont.svg
@@ -0,0 +1,554 @@
+
+
+
+
diff --git a/web-v2-res/static/layui/font/iconfont.ttf b/web-v2-res/static/layui/font/iconfont.ttf
new file mode 100644
index 0000000..06e30f9
Binary files /dev/null and b/web-v2-res/static/layui/font/iconfont.ttf differ
diff --git a/web-v2-res/static/layui/font/iconfont.woff b/web-v2-res/static/layui/font/iconfont.woff
new file mode 100644
index 0000000..66a1783
Binary files /dev/null and b/web-v2-res/static/layui/font/iconfont.woff differ
diff --git a/web-v2-res/static/layui/font/iconfont.woff2 b/web-v2-res/static/layui/font/iconfont.woff2
new file mode 100644
index 0000000..47e9980
Binary files /dev/null and b/web-v2-res/static/layui/font/iconfont.woff2 differ
diff --git a/web-v2-res/static/layui/images/face/0.gif b/web-v2-res/static/layui/images/face/0.gif
new file mode 100644
index 0000000..af3a91b
Binary files /dev/null and b/web-v2-res/static/layui/images/face/0.gif differ
diff --git a/web-v2-res/static/layui/images/face/1.gif b/web-v2-res/static/layui/images/face/1.gif
new file mode 100644
index 0000000..0f07096
Binary files /dev/null and b/web-v2-res/static/layui/images/face/1.gif differ
diff --git a/web-v2-res/static/layui/images/face/2.gif b/web-v2-res/static/layui/images/face/2.gif
new file mode 100644
index 0000000..0043571
Binary files /dev/null and b/web-v2-res/static/layui/images/face/2.gif differ
diff --git a/web-v2-res/static/layui/images/face/3.gif b/web-v2-res/static/layui/images/face/3.gif
new file mode 100644
index 0000000..b1888be
Binary files /dev/null and b/web-v2-res/static/layui/images/face/3.gif differ
diff --git a/web-v2-res/static/layui/images/face/4.gif b/web-v2-res/static/layui/images/face/4.gif
new file mode 100644
index 0000000..3329740
Binary files /dev/null and b/web-v2-res/static/layui/images/face/4.gif differ
diff --git a/web-v2-res/static/layui/images/face/5.gif b/web-v2-res/static/layui/images/face/5.gif
new file mode 100644
index 0000000..c56f895
Binary files /dev/null and b/web-v2-res/static/layui/images/face/5.gif differ
diff --git a/web-v2-res/static/layui/images/face/6.gif b/web-v2-res/static/layui/images/face/6.gif
new file mode 100644
index 0000000..9ea0d78
Binary files /dev/null and b/web-v2-res/static/layui/images/face/6.gif differ
diff --git a/web-v2-res/static/layui/layui.js b/web-v2-res/static/layui/layui.js
new file mode 100644
index 0000000..e01383b
--- /dev/null
+++ b/web-v2-res/static/layui/layui.js
@@ -0,0 +1,23 @@
+/** 2.7.4 | MIT Licensed */;!function(d){"use strict";var t,h=d.document,m={modules:{},status:{},timeout:10,event:{}},r=function(){this.v="2.7.4"},e=d.LAYUI_GLOBAL||{},v=(t=h.currentScript?h.currentScript.src:function(){for(var t,e=h.scripts,o=e.length-1,r=o;01e3*m.timeout/4?g(s+" is not a valid module","error"):void(m.status[s]?y():setTimeout(r,4))}())}function y(){e.push(layui[s]),11e3*m.timeout/4?g(s+" is not a valid module","error"):void("string"==typeof m.modules[s]&&m.status[s]?y():setTimeout(f,4))}():((n=h.createElement("script"))["async"]=!0,n.charset="utf-8",n.src=i+((u=!0===m.version?m.v||(new Date).getTime():m.version||"")?"?v="+u:""),l.appendChild(n),!n.attachEvent||n.attachEvent.toString&&n.attachEvent.toString().indexOf("[native code")<0||b?n.addEventListener("load",function(t){p(t,i)},!1):n.attachEvent("onreadystatechange",function(t){p(t,i)}),m.modules[s]=i)),a},r.prototype.disuse=function(t){var o=this;return t=o.isArray(t)?t:[t],o.each(t,function(t,e){m.status[e],delete o[e],delete N[e],delete o.modules[e],delete m.status[e],delete m.modules[e]}),o},r.prototype.getStyle=function(t,e){t=t.currentStyle||d.getComputedStyle(t,null);return t[t.getPropertyValue?"getPropertyValue":"getAttribute"](e)},r.prototype.link=function(o,r,t){var n=this,e=h.getElementsByTagName("head")[0],i=h.createElement("link"),t=((t="string"==typeof r?r:t)||o).replace(/\.|\//g,""),a=i.id="layuicss-"+t,u="creating",l=0;return i.rel="stylesheet",i.href=o+(m.debug?"?v="+(new Date).getTime():""),i.media="all",h.getElementById(a)||e.appendChild(i),"function"==typeof r&&function s(t){var e=h.getElementById(a);return++l>1e3*m.timeout/100?g(o+" timeout"):void(1989===parseInt(n.getStyle(e,"width"))?(t===u&&e.removeAttribute("lay-status"),e.getAttribute("lay-status")===u?setTimeout(s,100):r()):(e.setAttribute("lay-status",u),setTimeout(function(){s(u)},100)))}(),n},r.prototype.addcss=function(t,e,o){return layui.link(m.dir+"css/"+t,e,o)},m.callback={},r.prototype.factory=function(t){if(layui[t])return"function"==typeof m.callback[t]?m.callback[t]:null},r.prototype.img=function(t,e,o){var r=new Image;if(r.src=t,r.complete)return e(r);r.onload=function(){r.onload=null,"function"==typeof e&&e(r)},r.onerror=function(t){r.onerror=null,"function"==typeof o&&o(t)}},r.prototype.config=function(t){for(var e in t=t||{})m[e]=t[e];return this},r.prototype.modules=function(){var t,e={};for(t in N)e[t]=N[t];return e}(),r.prototype.extend=function(t){for(var e in t=t||{})this[e]||this.modules[e]?g(e+" Module already exists","error"):this.modules[e]=t[e];return this},r.prototype.router=r.prototype.hash=function(t){var o={path:[],search:{},hash:((t=t||location.hash).match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(t)&&(t=t.replace(/^#\//,""),o.href="/"+t,t=t.replace(/([^#])(#.*$)/,"$1").split("/")||[],this.each(t,function(t,e){/^\w+=/.test(e)?(e=e.split("="),o.search[e[0]]=e[1]):o.path.push(e)})),o},r.prototype.url=function(t){var n,e,o=this;return{pathname:(t?((t.match(/\.[^.]+?\/.+/)||[])[0]||"").replace(/^[^\/]+/,"").replace(/\?.+/,""):location.pathname).replace(/^\//,"").split("/"),search:(n={},e=(t?((t.match(/\?.+/)||[])[0]||"").replace(/\#.+/,""):location.search).replace(/^\?+/,"").split("&"),o.each(e,function(t,e){var o=e.indexOf("="),r=o<0?e.substr(0,e.length):0!==o&&e.substr(0,o);r&&(n[r]=0(l.innerHeight||f.documentElement.clientHeight)},h.position=function(t,e,n){var o,i,r,c,u,a,s;e&&(n=n||{},t!==f&&t!==h("body")[0]||(n.clickType="right"),u="right"!==n.clickType&&t?t.getBoundingClientRect():{left:(u=n.e||l.event||{}).clientX,top:u.clientY,right:u.clientX,bottom:u.clientY},a=e.offsetWidth,s=e.offsetHeight,o=function(t){return f.body[t=t?"scrollLeft":"scrollTop"]|f.documentElement[t]},r=u.left,c=u.bottom,"center"===n.align?r-=(a-t.offsetWidth)/2:"right"===n.align&&(r=r-a+t.offsetWidth),(r=r+a+5>(i=function(t){return f.documentElement[t?"clientWidth":"clientHeight"]})("width")?i("width")-a-5:r)<5&&(r=5),c+s+5>i()&&(u.top>s+5?c=u.top-s-10:"right"===n.clickType?(c=i()-s-10)<0&&(c=0):c=5),(a=n.position)&&(e.style.position=a),e.style.left=r+("fixed"===a?0:o(1))+"px",e.style.top=c+("fixed"===a?0:o())+"px",h.hasScrollbar()||(s=e.getBoundingClientRect(),!n.SYSTEM_RELOAD&&s.bottom+5>i()&&(n.SYSTEM_RELOAD=!0,setTimeout(function(){h.position(t,e,n)},50))))},h.options=function(t,e){t=h(t),e=e||"lay-options";try{return new Function("return "+(t.attr(e)||"{}"))()}catch(n){return hint.error("parseerror\uff1a"+n,"error"),{}}},h.isTopElem=function(n){var t=[f,h("body")[0]],o=!1;return h.each(t,function(t,e){if(e===n)return o=!0}),o},i.addStr=function(n,t){return n=n.replace(/\s+/," "),t=t.replace(/\s+/," ").split(" "),h.each(t,function(t,e){new RegExp("\\b"+e+"\\b").test(n)||(n=n+" "+e)}),n.replace(/^\s|\s$/,"")},i.removeStr=function(n,t){return n=n.replace(/\s+/," "),t=t.replace(/\s+/," ").split(" "),h.each(t,function(t,e){e=new RegExp("\\b"+e+"\\b");e.test(n)&&(n=n.replace(e,""))}),n.replace(/\s+/," ").replace(/^\s|\s$/,"")},i.prototype.find=function(o){var i=this,r=0,c=[],u="object"==typeof o;return this.each(function(t,e){for(var n=u?e.contains(o):e.querySelectorAll(o||null);r]|&(?=#[a-zA-Z0-9]+)/g.test(e+="")?e.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,"""):e},error:function(e,r){var n="Laytpl Error: ";return"object"==typeof console&&console.error(n+e+"\n"+(r||"")),n+e}},l=a.exp,r=function(e){this.tpl=e},n=(r.pt=r.prototype,window.errors=0,r.pt.parse=function(e,r){var n=e,c=l("^"+p.open+"#",""),t=l(p.close+"$","");e='"use strict";var view = "'+(e=e.replace(/\s+|\r|\t|\n/g," ").replace(l(p.open+"#"),p.open+"# ").replace(l(p.close+"}"),"} "+p.close).replace(/\\/g,"\\\\").replace(l(p.open+"!(.+?)!"+p.close),function(e){return e=e.replace(l("^"+p.open+"!"),"").replace(l("!"+p.close),"").replace(l(p.open+"|"+p.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(a.query(),function(e){return'";'+(e=e.replace(c,"").replace(t,"")).replace(/\\(.)/g,"$1")+';view+="'}).replace(a.query(1),function(e){var r='"+laytpl.escape(';return e.replace(/\s/g,"")===p.open+p.close?"":(e=e.replace(l(p.open+"|"+p.close),""),/^=/.test(e)?e=e.replace(/^=/,""):/^-/.test(e)&&(e=e.replace(/^-/,""),r='"+('),r+e.replace(/\\(.)/g,"$1")+')+"')}))+'";return view;';try{return this.cache=e=new Function("d, laytpl",e),e(r,a)}catch(o){return delete this.cache,a.error(o,n)}},r.pt.render=function(e,r){var n=this;return e?(e=n.cache?n.cache(e,a):n.parse(n.tpl,e),r?void r(e):e):a.error("no data")},function(e){return"string"!=typeof e?a.error("Template not found"):new r(e)});n.config=function(e){for(var r in e=e||{})p[r]=e[r]},n.v="1.2.0",e("laytpl",n)});layui.define(function(e){"use strict";var n=document,u="getElementById",c="getElementsByTagName",a="layui-disabled",t=function(e){var a=this;a.config=e||{},a.config.index=++o.index,a.render(!0)},o=(t.prototype.type=function(){var e=this.config;if("object"==typeof e.elem)return e.elem.length===undefined?2:3},t.prototype.view=function(){var t,i,r=this.config,n=r.groups="groups"in r?Number(r.groups)||0:5,u=(r.layout="object"==typeof r.layout?r.layout:["prev","page","next"],r.count=Number(r.count)||0,r.curr=Number(r.curr)||1,r.limits="object"==typeof r.limits?r.limits:[10,20,30,40,50],r.limit=Number(r.limit)||10,r.pages=Math.ceil(r.count/r.limit)||1,r.curr>r.pages?r.curr=r.pages:r.curr<1&&(r.curr=1),n<0?n=1:n>r.pages&&(n=r.pages),r.prev="prev"in r?r.prev:"上一页",r.next="next"in r?r.next:"下一页",r.pages>n?Math.ceil((r.curr+(1'+r.prev+"":"",page:function(){var e=[];if(r.count<1)return"";1'+(r.first||1)+"");var a=Math.floor((n-1)/2),t=1r.pages?r.pages:a:n;for(i-t…');t<=i;t++)t===r.curr?e.push('"+t+""):e.push(''+t+"");return r.pages>n&&r.pages>i&&!1!==r.last&&(i+1…'),0!==n)&&e.push(''+(r.last||r.pages)+""),e.join("")}(),next:r.next?''+r.next+"":"",count:'\u5171 '+r.count+" \u6761",limit:(t=['"),refresh:['','',""].join(""),skip:['到第','','页',""].join("")};return['',(i=[],layui.each(r.layout,function(e,a){s[a]&&i.push(s[a])}),i.join("")),"
"].join("")},t.prototype.jump=function(e,a){if(e){var t=this,i=t.config,r=e.children,n=e[c]("button")[0],u=e[c]("input")[0],e=e[c]("select")[0],s=function(){var e=Number(u.value.replace(/\s|\D/g,""));e&&(i.curr=e,t.render())};if(a)return s();for(var l=0,p=r.length;li.pages||(i.curr=e,t.render())});e&&o.on(e,"change",function(){var e=this.value;i.curr*e>i.count&&(i.curr=Math.ceil(i.count/e)),i.limit=e,t.render()}),n&&o.on(n,"click",function(){s()})}},t.prototype.skip=function(t){var i,e;t&&(i=this,e=t[c]("input")[0])&&o.on(e,"keyup",function(e){var a=this.value,e=e.keyCode;/^(37|38|39|40)$/.test(e)||(/\D/.test(a)&&(this.value=a.replace(/\D/,"")),13===e&&i.jump(t,!0))})},t.prototype.render=function(e){var a=this,t=a.config,i=a.type(),r=a.view(),i=(2===i?t.elem&&(t.elem.innerHTML=r):3===i?t.elem.html(r):n[u](t.elem)&&(n[u](t.elem).innerHTML=r),t.jump&&t.jump(t,e),n[u]("layui-laypage-"+t.index));a.jump(i),t.hash&&!e&&(location.hash="!"+t.hash+"="+t.curr),a.skip(i)},{render:function(e){return new t(e).index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(a,e,t){return a.attachEvent?a.attachEvent("on"+e,function(e){e.target=e.srcElement,t.call(a,e)}):a.addEventListener(e,t,!1),this}});e("laypage",o)});!function(i,r){"use strict";var n=i.layui&&layui.define,l={getPath:i.lay&&lay.getPath?lay.getPath:"",link:function(e,t,a){u.path&&i.lay&&lay.layui&&lay.layui.link(u.path+e,t,a)}},e=i.LAYUI_GLOBAL||{},u={v:"5.3.1",config:{weekStart:0},index:i.laydate&&i.laydate.v?1e5:0,path:e.laydate_dir||l.getPath,set:function(e){var t=this;return t.config=lay.extend({},t.config,e),t},ready:function(e){var t="laydate",a=(n?"modules/laydate/":"theme/")+"default/laydate.css?v="+u.v;return n?layui.addcss(a,e,t):l.link(a,e,t),this}},s=function(){var t=this,e=t.config.id;return{hint:function(e){t.hint.call(t,e)},refresh:function(e){t.refresh.call(t,e)},prevYear:function(e){lay.each(t.elemHeader,function(e,t){t[0].click()})},prevMonth:function(e){lay.each(t.elemHeader,function(e,t){t[1].click()})},nextMonth:function(e){lay.each(t.elemHeader,function(e,t){t[3].click()})},nextYear:function(e){u.each(t.elemHeader,function(e,t){t[4].click()})},config:(s.that[e]=t).config}},a="laydate",w="layui-this",x="laydate-disabled",h=[100,2e5],p="layui-laydate-static",M="layui-laydate-list",o="layui-laydate-hint",E=".laydate-btns-confirm",k="laydate-time-text",C="laydate-btns-time",f="layui-laydate-preview",g=function(e){var t=this;t.index=++u.index,t.config=lay.extend({},t.config,u.config,e),(e=t.config).id="id"in e?e.id:t.index,u.ready(function(){t.init()})},y="yyyy|y|MM|M|dd|d|HH|H|mm|m|ss|s";s.formatArr=function(e){return(e||"").match(new RegExp(y+"|.","g"))||[]},g.isLeapYear=function(e){return e%4==0&&e%100!=0||e%400==0},g.prototype.config={type:"date",range:!1,format:"yyyy-MM-dd",value:null,isInitValue:!0,min:"1900-1-1",max:"2099-12-31",trigger:"click",show:!1,showBottom:!0,isPreview:!0,btns:["clear","now","confirm"],lang:"cn",theme:"default",position:null,calendar:!1,mark:{},holidays:null,zIndex:null,done:null,change:null},g.prototype.lang=function(){var e={cn:{weeks:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],time:["\u65f6","\u5206","\u79d2"],timeTips:"\u9009\u62e9\u65f6\u95f4",startTime:"\u5f00\u59cb\u65f6\u95f4",endTime:"\u7ed3\u675f\u65f6\u95f4",dateTips:"\u8fd4\u56de\u65e5\u671f",month:["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u5341\u4e00","\u5341\u4e8c"],tools:{confirm:"\u786e\u5b9a",clear:"\u6e05\u7a7a",now:"\u73b0\u5728"},timeout:"\u7ed3\u675f\u65f6\u95f4\u4e0d\u80fd\u65e9\u4e8e\u5f00\u59cb\u65f6\u95f4
\u8bf7\u91cd\u65b0\u9009\u62e9",invalidDate:"\u4e0d\u5728\u6709\u6548\u65e5\u671f\u6216\u65f6\u95f4\u8303\u56f4\u5185",formatError:["\u65e5\u671f\u683c\u5f0f\u4e0d\u5408\u6cd5
\u5fc5\u987b\u9075\u5faa\u4e0b\u8ff0\u683c\u5f0f\uff1a
","
\u5df2\u4e3a\u4f60\u91cd\u7f6e"],preview:"\u5f53\u524d\u9009\u4e2d\u7684\u7ed3\u679c"},en:{weeks:["Su","Mo","Tu","We","Th","Fr","Sa"],time:["Hours","Minutes","Seconds"],timeTips:"Select Time",startTime:"Start Time",endTime:"End Time",dateTips:"Select Date",month:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tools:{confirm:"Confirm",clear:"Clear",now:"Now"},timeout:"End time cannot be less than start Time
Please re-select",invalidDate:"Invalid date",formatError:["The date format error
Must be followed\uff1a
","
It has been reset"],preview:"The selected result"}};return e[this.config.lang]||e.cn},g.prototype.refresh=function(){var e=this,t=e.config,a=t.dateTime,t="static"===t.position,n=new Date;e.config.value&&(n=new Date(e.config.value.replace(/-/g,"/"))),lay.extend(a,e.systemDate(n),{hours:n.getHours(),minutes:n.getMinutes(),seconds:n.getSeconds()}),e.setValue(e.parse()).remove(),t&&e.calendar(),e.done(null,"change")},g.prototype.init=function(){var r=this,o=r.config,e="static"===o.position,t={year:"yyyy",month:"yyyy-MM",date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss"};o.elem=lay(o.elem),o.eventElem=lay(o.eventElem),o.elem[0]&&(r.rangeStr=o.range?"string"==typeof o.range?o.range:"-":"","array"===layui.type(o.range)&&(r.rangeElem=[lay(o.range[0]),lay(o.range[1])]),t[o.type]||(i.console&&console.error&&console.error("laydate type error:'"+o.type+"' is not supported"),o.type="date"),o.format===t.date&&(o.format=t[o.type]||t.date),r.format=s.formatArr(o.format),o.weekStart&&!/^[0-6]$/.test(o.weekStart)&&(t=r.lang(),o.weekStart=t.weeks.indexOf(o.weekStart),-1===o.weekStart)&&(o.weekStart=0),r.EXP_IF="",r.EXP_SPLIT="",lay.each(r.format,function(e,t){e=new RegExp(y).test(t)?"\\d{"+(new RegExp(y).test(r.format[0===e?e+1:e-1]||"")?/^yyyy|y$/.test(t)?4:t.length:/^yyyy$/.test(t)?"1,4":/^y$/.test(t)?"1,308":"1,2")+"}":"\\"+t;r.EXP_IF=r.EXP_IF+e,r.EXP_SPLIT=r.EXP_SPLIT+"("+e+")"}),r.EXP_IF_ONE=new RegExp("^"+r.EXP_IF+"$"),r.EXP_IF=new RegExp("^"+(o.range?r.EXP_IF+"\\s\\"+r.rangeStr+"\\s"+r.EXP_IF:r.EXP_IF)+"$"),r.EXP_SPLIT=new RegExp("^"+r.EXP_SPLIT+"$",""),r.isInput(o.elem[0])||"focus"===o.trigger&&(o.trigger="click"),o.elem.attr("lay-key")||(o.elem.attr("lay-key",r.index),o.eventElem.attr("lay-key",r.index)),o.mark=lay.extend({},o.calendar&&"cn"===o.lang?{"0-1-1":"\u5143\u65e6","0-2-14":"\u60c5\u4eba","0-3-8":"\u5987\u5973","0-3-12":"\u690d\u6811","0-4-1":"\u611a\u4eba","0-5-1":"\u52b3\u52a8","0-5-4":"\u9752\u5e74","0-6-1":"\u513f\u7ae5","0-9-10":"\u6559\u5e08","0-10-1":"\u56fd\u5e86","0-12-25":"\u5723\u8bde"}:{},o.mark),lay.each(["min","max"],function(e,t){var a=[],n=[];if("number"==typeof o[t])var i=o[t],l=new Date,l=r.newDate({year:l.getFullYear(),month:l.getMonth(),date:l.getDate(),hours:"23",minutes:"59",seconds:"59"}).getTime(),i=new Date(i?i<864e5?l+864e5*i:i:l),a=[i.getFullYear(),i.getMonth()+1,i.getDate()],n=[i.getHours(),i.getMinutes(),i.getSeconds()];else if("string"==typeof o[t])a=(o[t].match(/\d+-\d+-\d+/)||[""])[0].split("-"),n=(o[t].match(/\d+:\d+:\d+/)||[""])[0].split(":");else if("object"==typeof o[t])return o[t];o[t]={year:0|a[0]||(new Date).getFullYear(),month:a[1]?(0|a[1])-1:(new Date).getMonth(),date:0|a[2]||(new Date).getDate(),hours:0|n[0],minutes:0|n[1],seconds:0|n[2]}}),r.elemID="layui-laydate"+o.elem.attr("lay-key"),(o.show||e)&&r.render(),e||r.events(),o.value)&&o.isInitValue&&("date"===layui.type(o.value)?r.setValue(r.parse(0,r.systemDate(o.value))):r.setValue(o.value))},g.prototype.render=function(){var n,e,t=this,o=t.config,s=t.lang(),i="static"===o.position,a=t.elem=lay.elem("div",{id:t.elemID,"class":["layui-laydate",o.range?" layui-laydate-range":"",i?" "+p:"",o.theme&&"default"!==o.theme&&!/^#/.test(o.theme)?" laydate-theme-"+o.theme:""].join("")}),y=t.elemMain=[],d=t.elemHeader=[],m=t.elemCont=[],c=t.table=[],l=t.footer=lay.elem("div",{"class":"layui-laydate-footer"});o.zIndex&&(a.style.zIndex=o.zIndex),lay.each(new Array(2),function(e){if(!o.range&&0'+s.timeTips+""),!o.range&&"datetime"===o.type||e.push(''),lay.each(o.btns,function(e,t){var a=s.tools[t]||"btn";o.range&&"now"===t||(i&&"clear"===t&&(a="cn"===o.lang?"\u91cd\u7f6e":"Reset"),n.push(''+a+""))}),e.push('"),e.join(""))),lay.each(y,function(e,t){a.appendChild(t)}),o.showBottom&&a.appendChild(l),/^#/.test(o.theme)&&(e=lay.elem("style"),l=["#{{id}} .layui-laydate-header{background-color:{{theme}};}","#{{id}} .layui-this{background-color:{{theme}} !important;}"].join("").replace(/{{id}}/g,t.elemID).replace(/{{theme}}/g,o.theme),"styleSheet"in e?(e.setAttribute("type","text/css"),e.styleSheet.cssText=l):e.innerHTML=l,lay(a).addClass("laydate-theme-molv"),a.appendChild(e)),t.remove(g.thisElemDate),u.thisId=o.id,i?o.elem.append(a):(r.body.appendChild(a),t.position()),t.checkDate().calendar(null,0,"init"),t.changeEvent(),g.thisElemDate=t.elemID,"function"==typeof o.ready&&o.ready(lay.extend({},o.dateTime,{month:o.dateTime.month+1})),t.preview()},g.prototype.remove=function(e){var t=this,a=t.config,n=lay("#"+(e||t.elemID));return n[0]&&!n.hasClass(p)&&t.checkDate(function(){n.remove(),delete u.thisId,"function"==typeof a.close&&a.close(t)}),t},g.prototype.position=function(){var e=this.config;return lay.position(this.bindElem||e.elem[0],this.elem,{position:e.position}),this},g.prototype.hint=function(e){var t=this,a=(t.config,lay.elem("div",{"class":o}));t.elem&&(a.innerHTML=e||"",lay(t.elem).find("."+o).remove(),t.elem.appendChild(a),clearTimeout(t.hinTimer),t.hinTimer=setTimeout(function(){lay(t.elem).find("."+o).remove()},3e3))},g.prototype.getAsYM=function(e,t,a){return a?t--:t++,t<0&&(t=11,e--),11h[1]&&(e.year=h[1],o=!0),11t&&(e.date=t,o=!0)},c=function(n,i,l){var r=["startTime","endTime"];i=(i.match(s.EXP_SPLIT)||[]).slice(1),l=l||0,y.range&&(s[r[l]]=s[r[l]]||{}),lay.each(s.format,function(e,t){var a=parseFloat(i[e]);i[e].lengthn(y.max)?l=y.dateTime=lay.extend({},y.max):n(l)n(y.max))&&(s.endDate=lay.extend({},y.max)),e&&e()),s},g.prototype.mark=function(e,a){var n,t=this.config;return lay.each(t.mark,function(e,t){e=e.split("-");e[0]!=a[0]&&0!=e[0]||e[1]!=a[1]&&0!=e[1]||e[2]!=a[2]||(n=t||a[2])}),n&&e.html(''+n+""),this},g.prototype.holidays=function(n,i){var e=this.config,l=["","work"];return"array"===layui.type(e.holidays)&&lay.each(e.holidays,function(a,e){lay.each(e,function(e,t){t===n.attr("lay-ymd")&&n.html('"+i[2]+"")})}),this},g.prototype.limit=function(e,t,a,i){var l=this,n=l.config,r={},a=n[41h[1]&&(s.year=h[1],o.hint(d.invalidDate)),o.firstDate||(o.firstDate=lay.extend({},s)),y.setFullYear(s.year,s.month,1),i=(y.getDay()+(7-n.weekStart))%7,l=u.getEndDate(s.month||12,s.year),r=u.getEndDate(s.month+1,s.year),lay.each(c,function(e,t){var a=[s.year,s.month],n=0;(t=lay(t)).removeAttr("class"),e"+d.time[t]+"
"];lay.each(new Array(e),function(e){n.push("- "+lay.digit(e,2)+"
")}),a.innerHTML=n.join("")+"
",m.appendChild(a)}),l()),p&&h.removeChild(p),h.prepend(m),"year"===t||"month"===t?(lay(o.elemMain[n]).addClass("laydate-ym-show"),lay(m).find("li").on("click",function(){var e=0|lay(this).attr("lay-ym");lay(this).hasClass(x)||(0===n?(y[t]=e,o.limit(lay(o.footer).find(E),null,0)):o.endDate[t]=e,"year"===s.type||"month"===s.type?(lay(m).find("."+w).removeClass(w),lay(this).addClass(w),"month"===s.type&&"year"===t&&(o.listYM[n][0]=e,a&&((n?o.endDate:y).year=e),o.list("month",n))):(o.checkDate("limit").calendar(null,n),o.closeList()),o.setBtnStatus(),s.range||("month"===s.type&&"month"===t||"year"===s.type&&"year"===t)&&o.setValue(o.parse()).remove().done(),o.done(null,"change"),lay(o.footer).find("."+C).removeClass(x))})):(e=lay.elem("span",{"class":k}),r=function(){lay(m).find("ol").each(function(e){var a=this,t=lay(a).find("li");a.scrollTop=30*(o[D][T[e]]-2),a.scrollTop<=0&&t.each(function(e,t){if(!lay(this).hasClass(x))return a.scrollTop=30*(e-2),!0})})},u=lay(c[2]).find("."+k),r(),e.innerHTML=s.range?[d.startTime,d.endTime][n]:d.timeTips,lay(o.elemMain[n]).addClass("laydate-time-show"),u[0]&&u.remove(),c[2].appendChild(e),lay(m).find("ol").each(function(t){var a=this;lay(a).find("li").on("click",function(){var e=0|this.innerHTML;lay(this).hasClass(x)||(s.range?o[D][T[t]]=e:y[T[t]]=e,lay(a).find("."+w).removeClass(w),lay(this).addClass(w),l(),r(),!o.endDate&&"time"!==s.type||o.done(null,"change"),o.setBtnStatus())})})),o},g.prototype.listYM=[],g.prototype.closeList=function(){var a=this;a.config;lay.each(a.elemCont,function(e,t){lay(this).find("."+M).remove(),lay(a.elemMain[e]).removeClass("laydate-ym-show laydate-time-show")}),lay(a.elem).find("."+k).remove()},g.prototype.setBtnStatus=function(e,t,a){var n=this,i=n.config,l=n.lang(),r=lay(n.footer).find(E);i.range&&"time"!==i.type&&(t=t||i.dateTime,a=a||n.endDate,i=n.newDate(t).getTime()>n.newDate(a).getTime(),n.limit(null,t)||n.limit(null,a)?r.addClass(x):r[i?"addClass":"removeClass"](x),e)&&i&&n.hint("string"==typeof e?l.timeout.replace(/\u65e5\u671f/g,e):l.timeout)},g.prototype.parse=function(e,t){var a=this,n=a.config,t=t||("end"==e?lay.extend({},a.endDate,a.endTime):n.range?lay.extend({},n.dateTime,a.startTime):n.dateTime),t=u.parse(t,a.format,1);return n.range&&e===undefined?t+" "+a.rangeStr+" "+a.parse("end"):t},g.prototype.newDate=function(e){return e=e||{},new Date(e.year||1,e.month||0,e.date||1,e.hours||0,e.minutes||0,e.seconds||0)},g.prototype.setValue=function(e){var t=this,a=t.config,n=t.bindElem||a.elem[0];return"static"!==a.position&&(e=e||"",t.isInput(n)?lay(n).val(e):(a=t.rangeElem)?("array"!==layui.type(e)&&(e=e.split(" "+t.rangeStr+" ")),a[0].val(e[0]||""),a[1].val(e[1]||"")):(0===lay(n).find("*").length&&lay(n).html(e),lay(n).attr("lay-date",e))),t},g.prototype.preview=function(){var e,t=this,a=t.config;a.isPreview&&(e=lay(t.elem).find("."+f),a=!a.range||t.endDate?t.parse():"",e.html(a).css({color:"#5FB878"}),setTimeout(function(){e.css({color:"#666"})},300))},g.prototype.done=function(e,t){var a=this,n=a.config,i=lay.extend({},lay.extend(n.dateTime,a.startTime)),l=lay.extend({},lay.extend(a.endDate,a.endTime));return lay.each([i,l],function(e,t){"month"in t&&lay.extend(t,{month:t.month+1})}),a.preview(),e=e||[a.parse(),i,l],"function"==typeof n[t||"done"]&&n[t||"done"].apply(n,e),a},g.prototype.choose=function(e,t){var a=this,n=a.config,i=a.thisDateTime(t),l=(lay(a.elem).find("td"),{year:0|(l=e.attr("lay-ymd").split("-"))[0],month:(0|l[1])-1,date:0|l[2]});e.hasClass(x)||(lay.extend(i,l),n.range?(lay.each(["startTime","endTime"],function(e,t){a[t]=a[t]||{hours:e?23:0,minutes:e?59:0,seconds:e?59:0}}),a.calendar(null,t).done(null,"change")):"static"===n.position?a.calendar().done().done(null,"change"):"date"===n.type?a.setValue(a.parse()).remove().done():"datetime"===n.type&&a.calendar().done(null,"change"))},g.prototype.tool=function(e,t){var a=this,n=a.config,i=a.lang(),l=n.dateTime,r="static"===n.position,o={datetime:function(){lay(e).hasClass(x)||(a.list("time",0),n.range&&a.list("time",1),lay(e).attr("lay-type","date").html(a.lang().dateTips))},date:function(){a.closeList(),lay(e).attr("lay-type","datetime").html(a.lang().timeTips)},clear:function(){r&&(lay.extend(l,a.firstDate),a.calendar()),n.range&&(delete n.dateTime,delete a.endDate,delete a.startTime,delete a.endTime),a.setValue("").remove(),a.done(["",{},{}])},now:function(){var e=new Date;lay.extend(l,a.systemDate(),{hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()}),a.setValue(a.parse()).remove(),r&&a.calendar(),a.done()},confirm:function(){if(n.range){if(lay(e).hasClass(x))return a.hint("time"===n.type?i.timeout.replace(/\u65e5\u671f/g,"\u65f6\u95f4"):i.timeout)}else if(lay(e).hasClass(x))return a.hint(i.invalidDate);a.setValue(a.parse()).remove(),a.done()}};o[t]&&o[t]()},g.prototype.change=function(n){var i=this,l=i.config,r=i.thisDateTime(n),o=l.range&&("year"===l.type||"month"===l.type),s=i.elemCont[n||0],y=i.listYM[n],e=function(e){var t=lay(s).find(".laydate-year-list")[0],a=lay(s).find(".laydate-month-list")[0];return t&&(y[0]=e?y[0]-15:y[0]+15,i.list("year",n)),a&&(e?y[0]--:y[0]++,i.list("month",n)),(t||a)&&(lay.extend(r,{year:y[0]}),o&&(r.year=y[0]),l.range||i.done(null,"change"),l.range||i.limit(lay(i.footer).find(E),{year:y[0]})),i.setBtnStatus(),t||a};return{prevYear:function(){e("sub")||(r.year--,i.checkDate("limit").calendar(null,n),i.done(null,"change"))},prevMonth:function(){var e=i.getAsYM(r.year,r.month,"sub");lay.extend(r,{year:e[0],month:e[1]}),i.checkDate("limit").calendar(null,n),i.done(null,"change")},nextMonth:function(){var e=i.getAsYM(r.year,r.month);lay.extend(r,{year:e[0],month:e[1]}),i.checkDate("limit").calendar(null,n),i.done(null,"change")},nextYear:function(){e()||(r.year++,i.checkDate("limit").calendar(null,n),i.done(null,"change"))}}},g.prototype.changeEvent=function(){var i=this;i.config;lay(i.elem).on("click",function(e){lay.stope(e)}).on("mousedown",function(e){lay.stope(e)}),lay.each(i.elemHeader,function(n,e){lay(e[0]).on("click",function(e){i.change(n).prevYear()}),lay(e[1]).on("click",function(e){i.change(n).prevMonth()}),lay(e[2]).find("span").on("click",function(e){var t=lay(this),a=t.attr("lay-ym"),t=t.attr("lay-type");a&&(a=a.split("-"),i.listYM[n]=[0|a[0],0|a[1]],i.list(t,n),lay(i.footer).find("."+C).addClass(x))}),lay(e[3]).on("click",function(e){i.change(n).nextMonth()}),lay(e[4]).on("click",function(e){i.change(n).nextYear()})}),lay.each(i.table,function(e,t){lay(t).find("td").on("click",function(){i.choose(lay(this),e)})}),lay(i.footer).find("span").on("click",function(){var e=lay(this).attr("lay-type");i.tool(this,e)})},g.prototype.isInput=function(e){return/input|textarea/.test(e.tagName.toLocaleLowerCase())||/INPUT|TEXTAREA/.test(e.tagName)},g.prototype.events=function(){var a=this,n=a.config,e=function(e,t){e.on(n.trigger,function(){u.thisId!==n.id&&(t&&(a.bindElem=this),a.render())})};n.elem[0]&&!n.elem[0].eventHandler&&(e(n.elem,"bind"),e(n.eventElem),n.elem[0].eventHandler=!0)},s.that={},s.getThis=function(e){var t=s.that[e];return!t&&n&&layui.hint().error(e?a+" instance with ID '"+e+"' not found":"ID argument required"),t},l.run=function(n){n(r).on("mousedown",function(e){var t,a;u.thisId&&(t=s.getThis(u.thisId))&&(a=t.config,e.target!==a.elem[0])&&e.target!==a.eventElem[0]&&e.target!==n(a.closeStop)[0]&&t.remove()}).on("keydown",function(e){var t;u.thisId&&(t=s.getThis(u.thisId))&&"static"!==t.config.position&&13===e.keyCode&&n("#"+t.elemID)[0]&&t.elemID===g.thisElemDate&&(e.preventDefault(),n(t.footer).find(E)[0].click())}),n(i).on("resize",function(){if(u.thisId){var e=s.getThis(u.thisId);if(e)return!(!e.elem||!n(".layui-laydate")[0])&&void e.position()}})},u.render=function(e){e=new g(e);return s.call(e)},u.parse=function(a,n,i){return a=a||{},n=((n="string"==typeof n?s.formatArr(n):n)||[]).concat(),lay.each(n,function(e,t){/yyyy|y/.test(t)?n[e]=lay.digit(a.year,t.length):/MM|M/.test(t)?n[e]=lay.digit(a.month+(i||0),t.length):/dd|d/.test(t)?n[e]=lay.digit(a.date,t.length):/HH|H/.test(t)?n[e]=lay.digit(a.hours,t.length):/mm|m/.test(t)?n[e]=lay.digit(a.minutes,t.length):/ss|s/.test(t)&&(n[e]=lay.digit(a.seconds,t.length))}),n.join("")},u.getEndDate=function(e,t){var a=new Date;return a.setFullYear(t||a.getFullYear(),e||a.getMonth()+1,1),new Date(a.getTime()-864e5).getDate()},u.close=function(e){lay("#"+(e?"layui-laydate"+e:g.thisElemDate)).remove()},n?(u.ready(),layui.define("lay",function(e){u.path=layui.cache.dir,l.run(lay),e(a,u)})):"function"==typeof define&&define.amd?define(function(){return l.run(lay),u}):(u.ready(),l.run(i.lay),i.laydate=u)}(window,window.document);!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)}("undefined"!=typeof window?window:this,function(T,M){var f=[],g=T.document,c=f.slice,O=f.concat,R=f.push,P=f.indexOf,B={},W=B.toString,m=B.hasOwnProperty,y={},e="1.12.4",C=function(e,t){return new C.fn.init(e,t)},I=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,$=/^-ms-/,z=/-([\da-z])/gi,X=function(e,t){return t.toUpperCase()};function U(e){var t=!!e&&"length"in e&&e.length,n=C.type(e);return"function"!==n&&!C.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+a+")"+a+"*"),ee=new RegExp("="+a+"*([^\\]'\"]*?)"+a+"*\\]","g"),te=new RegExp(G),ne=new RegExp("^"+s+"$"),f={ID:new RegExp("^#("+s+")"),CLASS:new RegExp("^\\.("+s+")"),TAG:new RegExp("^("+s+"|[*])"),ATTR:new RegExp("^"+J),PSEUDO:new RegExp("^"+G),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+Y+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},re=/^(?:input|select|textarea|button)$/i,ie=/^h\d$/i,c=/^[^{]+\{\s*\[native \w/,oe=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ae=/[+~]/,se=/'|\\/g,d=new RegExp("\\\\([\\da-f]{1,6}"+a+"?|("+a+")|.)","ig"),p=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(65536+r):String.fromCharCode(r>>10|55296,1023&r|56320)},ue=function(){C()};try{D.apply(n=V.call(v.childNodes),v.childNodes),n[v.childNodes.length].nodeType}catch(F){D={apply:n.length?function(e,t){U.apply(e,V.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function H(e,t,n,r){var i,o,a,s,u,l,c,f,d=t&&t.ownerDocument,p=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==p&&9!==p&&11!==p)return n;if(!r&&((t?t.ownerDocument||t:v)!==E&&C(t),t=t||E,N)){if(11!==p&&(l=oe.exec(e)))if(i=l[1]){if(9===p){if(!(a=t.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(d&&(a=d.getElementById(i))&&y(t,a)&&a.id===i)return n.push(a),n}else{if(l[2])return D.apply(n,t.getElementsByTagName(e)),n;if((i=l[3])&&g.getElementsByClassName&&t.getElementsByClassName)return D.apply(n,t.getElementsByClassName(i)),n}if(g.qsa&&!A[e+" "]&&(!m||!m.test(e))){if(1!==p)d=t,f=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(se,"\\$&"):t.setAttribute("id",s=k),o=(c=w(e)).length,u=ne.test(s)?"#"+s:"[id='"+s+"']";o--;)c[o]=u+" "+_(c[o]);f=c.join(","),d=ae.test(e)&&de(t.parentNode)||t}if(f)try{return D.apply(n,d.querySelectorAll(f)),n}catch(h){}finally{s===k&&t.removeAttribute("id")}}}return P(e.replace(L,"$1"),t,n,r)}function le(){var n=[];function r(e,t){return n.push(e+" ")>b.cacheLength&&delete r[n.shift()],r[e+" "]=t}return r}function q(e){return e[k]=!0,e}function h(e){var t=E.createElement("div");try{return!!e(t)}catch(F){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function ce(e,t){for(var n=e.split("|"),r=n.length;r--;)b.attrHandle[n[r]]=t}function fe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function x(a){return q(function(o){return o=+o,q(function(e,t){for(var n,r=a([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function de(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in g=H.support={},O=H.isXML=function(e){e=e&&(e.ownerDocument||e).documentElement;return!!e&&"HTML"!==e.nodeName},C=H.setDocument=function(e){var e=e?e.ownerDocument||e:v;return e!==E&&9===e.nodeType&&e.documentElement&&(t=(E=e).documentElement,N=!O(E),(e=E.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",ue,!1):e.attachEvent&&e.attachEvent("onunload",ue)),g.attributes=h(function(e){return e.className="i",!e.getAttribute("className")}),g.getElementsByTagName=h(function(e){return e.appendChild(E.createComment("")),!e.getElementsByTagName("*").length}),g.getElementsByClassName=c.test(E.getElementsByClassName),g.getById=h(function(e){return t.appendChild(e).id=k,!E.getElementsByName||!E.getElementsByName(k).length}),g.getById?(b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&N)return(e=t.getElementById(e))?[e]:[]},b.filter.ID=function(e){var t=e.replace(d,p);return function(e){return e.getAttribute("id")===t}}):(delete b.find.ID,b.filter.ID=function(e){var t=e.replace(d,p);return function(e){e="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}}),b.find.TAG=g.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):g.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},b.find.CLASS=g.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&N)return t.getElementsByClassName(e)},r=[],m=[],(g.qsa=c.test(E.querySelectorAll))&&(h(function(e){t.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+a+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+a+"*(?:value|"+Y+")"),e.querySelectorAll("[id~="+k+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||m.push(".#.+[+~]")}),h(function(e){var t=E.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+a+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(g.matchesSelector=c.test(i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.msMatchesSelector))&&h(function(e){g.disconnectedMatch=i.call(e,"div"),i.call(e,"[s!='']:x"),r.push("!=",G)}),m=m.length&&new RegExp(m.join("|")),r=r.length&&new RegExp(r.join("|")),e=c.test(t.compareDocumentPosition),y=e||c.test(t.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},$=e?function(e,t){var n;return e===t?(l=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!g.sortDetached&&t.compareDocumentPosition(e)===n?e===E||e.ownerDocument===v&&y(v,e)?-1:t===E||t.ownerDocument===v&&y(v,t)?1:u?j(u,e)-j(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===E?-1:t===E?1:i?-1:o?1:u?j(u,e)-j(u,t):0;if(i===o)return fe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?fe(a[r],s[r]):a[r]===v?-1:s[r]===v?1:0}),E},H.matches=function(e,t){return H(e,null,null,t)},H.matchesSelector=function(e,t){if((e.ownerDocument||e)!==E&&C(e),t=t.replace(ee,"='$1']"),g.matchesSelector&&N&&!A[t+" "]&&(!r||!r.test(t))&&(!m||!m.test(t)))try{var n=i.call(e,t);if(n||g.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(F){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(d,p),e[3]=(e[3]||e[4]||e[5]||"").replace(d,p),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||H.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&H.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return f.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&te.test(n)&&(t=(t=w(n,!0))&&n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(d,p).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=W[e+" "];return t||(t=new RegExp("(^|"+a+")"+e+"("+a+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(e){e=H.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===r:"!="===n?e!==r:"^="===n?r&&0===e.indexOf(r):"*="===n?r&&-1(?:<\/\1>|)$/,G=/^.[^:#\[\.,]*$/;function K(e,n,r){if(C.isFunction(n))return C.grep(e,function(e,t){return!!n.call(e,t,e)!==r});if(n.nodeType)return C.grep(e,function(e){return e===n!==r});if("string"==typeof n){if(G.test(n))return C.filter(n,e,r);n=C.filter(n,e)}return C.grep(e,function(e){return-1)[^>]*|#([\w-]*))$/,ee=((C.fn.init=function(e,t,n){if(e){if(n=n||Q,"string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):C.isFunction(e)?"undefined"!=typeof n.ready?n.ready(e):e(C):(e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),C.makeArray(e,this));if(!(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:Z.exec(e))||!r[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(r[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:g,!0)),J.test(r[1])&&C.isPlainObject(t))for(var r in t)C.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r])}else{if((n=g.getElementById(r[2]))&&n.parentNode){if(n.id!==r[2])return Q.find(e);this.length=1,this[0]=n}this.context=g,this.selector=e}}return this}).prototype=C.fn,Q=C(g),/^(?:parents|prev(?:Until|All))/),te={children:!0,contents:!0,next:!0,prev:!0};function ne(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t,n=C(e,this),r=n.length;return this.filter(function(){for(t=0;ta",y.leadingWhitespace=3===S.firstChild.nodeType,y.tbody=!S.getElementsByTagName("tbody").length,y.htmlSerialize=!!S.getElementsByTagName("link").length,y.html5Clone="<:nav>"!==g.createElement("nav").cloneNode(!0).outerHTML,q.type="checkbox",q.checked=!0,k.appendChild(q),y.appendChecked=q.checked,S.innerHTML="",y.noCloneChecked=!!S.cloneNode(!0).lastChild.defaultValue,k.appendChild(S),(q=g.createElement("input")).setAttribute("type","radio"),q.setAttribute("checked","checked"),q.setAttribute("name","t"),S.appendChild(q),y.checkClone=S.cloneNode(!0).cloneNode(!0).lastChild.checked,y.noCloneEvent=!!S.addEventListener,S[C.expando]=1,y.attributes=!S.getAttribute(C.expando);var x={option:[1,""],legend:[1,""],area:[1,""],param:[1,""],thead:[1,""],tr:[2,""],col:[2,""],td:[3,""],_default:y.htmlSerialize?[0,"",""]:[1,"X","
"]};function b(e,t){var n,r,i=0,o="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):undefined;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||C.nodeName(r,t)?o.push(r):C.merge(o,b(r,t));return t===undefined||t&&C.nodeName(e,t)?C.merge([e],o):o}function we(e,t){for(var n,r=0;null!=(n=e[r]);r++)C._data(n,"globalEval",!t||C._data(t[r],"globalEval"))}x.optgroup=x.option,x.tbody=x.tfoot=x.colgroup=x.caption=x.thead,x.th=x.td;var Te=/<|?\w+;/,Ce=/"!==f[1]||Ce.test(a)?0:u:u.firstChild)&&a.childNodes.length;o--;)C.nodeName(c=a.childNodes[o],"tbody")&&!c.childNodes.length&&a.removeChild(c);for(C.merge(h,u.childNodes),u.textContent="";u.firstChild;)u.removeChild(u.firstChild);u=p.lastChild}else h.push(t.createTextNode(a));for(u&&p.removeChild(u),y.appendChecked||C.grep(b(h,"input"),Ee),g=0;a=h[g++];)if(r&&-1]","i"),Pe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Be=/