mirror of
https://github.com/vastsa/FileCodeBox.git
synced 2026-11-20 21:57:02 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
206c37fea0 | ||
|
|
afa412c868 | ||
|
|
0fd31b41c9 | ||
|
|
2b8ec05c1f | ||
|
|
67f09f9b81 | ||
|
|
16171ad0ed | ||
|
|
c4c9515c3a | ||
|
|
e670f482e4 | ||
|
|
4487d64d34 | ||
|
|
014c42a614 | ||
|
|
2ccf097063 | ||
|
|
5f6b9fd8f5 | ||
|
|
4e0cfcc2d6 | ||
|
|
3235358c37 | ||
|
|
bcde376fae | ||
|
|
4e79991f82 | ||
|
|
0ace9cbff6 | ||
|
|
f0b2e4a8b2 | ||
|
|
d1f603277e | ||
|
|
8c4f9d357f | ||
|
|
255c81bb2f | ||
|
|
7bde39f5c7 | ||
|
|
b64444e824 | ||
|
|
5b14506f8c | ||
|
|
d631ce9bba | ||
|
|
40c2ad70a1 | ||
|
|
a198886d11 | ||
|
|
920ded4aef | ||
|
|
5d48680cdd | ||
|
|
1bb48d30e7 | ||
|
|
46c072503a | ||
|
|
c38ffe3916 | ||
|
|
2753e80b1e | ||
|
|
bc780208c4 | ||
|
|
69b11e6a75 | ||
|
|
2fa075cfdf | ||
|
|
c4e14be86b | ||
|
|
d91d64cad5 | ||
|
|
824d6e7cf2 | ||
|
|
b72227542a | ||
|
|
05cd49c472 | ||
|
|
bd7ba7477e | ||
|
|
7f3b235f6a | ||
|
|
722e2da106 | ||
|
|
6f4ccf78e3 | ||
|
|
5ef61e5ad7 | ||
|
|
d00cef42a1 | ||
|
|
a4d85bce27 | ||
|
|
5e9768c145 | ||
|
|
cae49788ae | ||
|
|
3df49615e3 | ||
|
|
9a053c1839 | ||
|
|
0025946bb7 | ||
|
|
af1388cacb | ||
|
|
15516e3909 | ||
|
|
8089081417 | ||
|
|
0b50fdf07b | ||
|
|
a8b86501a3 | ||
|
|
9192b5213c | ||
|
|
75d66e79e3 | ||
|
|
642b65278d | ||
|
|
0495ea2e87 | ||
|
|
8b7492fec8 | ||
|
|
cad1c9e539 | ||
|
|
badfb28a27 | ||
|
|
3bfa2ee2b7 | ||
|
|
1d9642cf3e | ||
|
|
e70caaced0 | ||
|
|
2baaa0459d | ||
|
|
3f598d6ef8 | ||
|
|
accd384e4b | ||
|
|
490b3605a4 | ||
|
|
a39cdadc96 | ||
|
|
c3664766e9 | ||
|
|
c251148fdc | ||
|
|
6b4647df9b | ||
|
|
373d6b55a7 | ||
|
|
3688852012 | ||
|
|
7746f86646 | ||
|
|
9947a0927a | ||
|
|
a1210d5182 | ||
|
|
5b7a9f919b | ||
|
|
6e52553cd3 | ||
|
|
d5bc3e1a81 | ||
|
|
31b8cb4016 | ||
|
|
2eafca2f0c | ||
|
|
24200a53a2 | ||
|
|
aaaef095c8 | ||
|
|
7fc733d225 | ||
|
|
4a868865f9 | ||
|
|
0ae8b82c77 | ||
|
|
c77fd35c7d | ||
|
|
7e1120eb62 | ||
|
|
4e5f9fa619 | ||
|
|
00b5bace6d | ||
|
|
77e6e7644f | ||
|
|
fb6f71c93b | ||
|
|
87549fae29 | ||
|
|
e8cc4748d1 | ||
|
|
ba71942caa | ||
|
|
7864d0710d | ||
|
|
12c7d5a1dd | ||
|
|
f2b5490f10 | ||
|
|
10dfb67ac0 | ||
|
|
2b04515c00 | ||
|
|
1f303d3340 | ||
|
|
f4f40e245a | ||
|
|
195e08f818 | ||
|
|
45d8abc439 | ||
|
|
9b51d592c2 |
No files matched your search
@@ -1,4 +1 @@
|
||||
# These are supported funding model platforms
|
||||
|
||||
github: [ vastsa ]
|
||||
custom: [ https://share.lanol.cn ]
|
||||
@@ -0,0 +1,51 @@
|
||||
name: Build and push Docker image
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
buildx:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Cache Docker layers
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: /tmp/.buildx-cache
|
||||
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-buildx-
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: ${{ secrets.DOCKER_USERNAME }}/filecodebox:beta
|
||||
cache-from: type=local,src=/tmp/.buildx-cache
|
||||
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
|
||||
|
||||
- name: Move cache
|
||||
run: |
|
||||
rm -rf /tmp/.buildx-cache
|
||||
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
|
||||
+4
-3
@@ -16,7 +16,6 @@ database.db
|
||||
.Python
|
||||
build/
|
||||
develop-eggs/
|
||||
dist/
|
||||
downloads/
|
||||
eggs/
|
||||
.eggs/
|
||||
@@ -31,7 +30,7 @@ share/python-wheels/
|
||||
.installed.cfg
|
||||
*.egg
|
||||
MANIFEST
|
||||
|
||||
.vite/
|
||||
# PyInstaller
|
||||
# Usually these files are written by a python script from a template
|
||||
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
||||
@@ -80,7 +79,9 @@ docs/_build/
|
||||
# PyBuilder
|
||||
.pybuilder/
|
||||
target/
|
||||
|
||||
*.db
|
||||
./filecodebox.db-shm
|
||||
./filecodebox.db-wal
|
||||
# Jupyter Notebook
|
||||
.ipynb_checkpoints
|
||||
|
||||
|
||||
@@ -5,6 +5,8 @@ LABEL version="6"
|
||||
|
||||
|
||||
COPY . /app
|
||||
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||
RUN echo 'Asia/Shanghai' >/etc/timezone
|
||||
WORKDIR /app
|
||||
RUN pip install -r requirements.txt
|
||||
EXPOSE 12345
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
# @Time : 2023/8/13 20:43
|
||||
# @Author : Lan
|
||||
# @File : __init__.py.py
|
||||
# @Software: PyCharm
|
||||
@@ -0,0 +1,4 @@
|
||||
# @Time : 2023/8/14 14:38
|
||||
# @Author : Lan
|
||||
# @File : __init__.py.py
|
||||
# @Software: PyCharm
|
||||
@@ -0,0 +1,19 @@
|
||||
# @Time : 2023/8/15 17:43
|
||||
# @Author : Lan
|
||||
# @File : depends.py
|
||||
# @Software: PyCharm
|
||||
from typing import Union
|
||||
|
||||
from fastapi import Header, HTTPException
|
||||
from fastapi.requests import Request
|
||||
from core.settings import settings
|
||||
|
||||
|
||||
async def admin_required(authorization: Union[str, None] = Header(default=None), request: Request = None):
|
||||
is_admin = authorization == settings.admin_token
|
||||
if request.url.path.startswith('/share/'):
|
||||
if not settings.openUpload and not is_admin:
|
||||
raise HTTPException(status_code=403, detail='本站未开启游客上传,如需上传请先登录后台')
|
||||
else:
|
||||
if not is_admin:
|
||||
raise HTTPException(status_code=401, detail='未授权或授权校验失败')
|
||||
@@ -0,0 +1,5 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class IDData(BaseModel):
|
||||
id: int
|
||||
@@ -0,0 +1,54 @@
|
||||
# @Time : 2023/8/14 14:38
|
||||
# @Author : Lan
|
||||
# @File : views.py
|
||||
# @Software: PyCharm
|
||||
import math
|
||||
|
||||
from fastapi import APIRouter, Depends
|
||||
|
||||
from apps.admin.depends import admin_required
|
||||
from apps.admin.pydantics import IDData
|
||||
from apps.base.models import FileCodes
|
||||
from core.response import APIResponse
|
||||
from core.settings import settings
|
||||
from core.storage import file_storage
|
||||
|
||||
admin_api = APIRouter(
|
||||
prefix='/admin',
|
||||
tags=['管理'],
|
||||
)
|
||||
|
||||
|
||||
@admin_api.post('/login', dependencies=[Depends(admin_required)])
|
||||
async def login():
|
||||
return APIResponse()
|
||||
|
||||
|
||||
@admin_api.delete('/file/delete', dependencies=[Depends(admin_required)])
|
||||
async def file_delete(data: IDData):
|
||||
file_code = await FileCodes.get(id=data.id)
|
||||
await file_storage.delete_file(file_code)
|
||||
await file_code.delete()
|
||||
return APIResponse()
|
||||
|
||||
|
||||
@admin_api.get('/file/list', dependencies=[Depends(admin_required)])
|
||||
async def file_list(page: float = 1, size: int = 10):
|
||||
return APIResponse(detail={
|
||||
'page': page,
|
||||
'size': size,
|
||||
'data': await FileCodes.all().limit(size).offset((math.ceil(page) - 1) * size),
|
||||
'total': await FileCodes.all().count(),
|
||||
})
|
||||
|
||||
|
||||
@admin_api.get('/config/get', dependencies=[Depends(admin_required)])
|
||||
async def get_config():
|
||||
return APIResponse(detail=settings.__dict__)
|
||||
|
||||
|
||||
@admin_api.patch('/config/update', dependencies=[Depends(admin_required)])
|
||||
async def update_config(data: dict):
|
||||
for k, v in data.items():
|
||||
settings.__setattr__(k, v)
|
||||
return APIResponse()
|
||||
@@ -0,0 +1,4 @@
|
||||
# @Time : 2023/8/13 20:43
|
||||
# @Author : Lan
|
||||
# @File : __init__.py.py
|
||||
# @Software: PyCharm
|
||||
@@ -1,20 +1,13 @@
|
||||
# @Time : 2023/8/14 12:20
|
||||
# @Author : Lan
|
||||
# @File : depends.py
|
||||
# @Software: PyCharm
|
||||
from typing import Union
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
from fastapi import Header, HTTPException, Request
|
||||
|
||||
from settings import settings
|
||||
|
||||
|
||||
async def admin_required(pwd: Union[str, None] = Header(default=None), request: Request = None):
|
||||
if 'share' in request.url.path:
|
||||
if pwd != settings.ADMIN_PASSWORD and not settings.ENABLE_UPLOAD:
|
||||
raise HTTPException(status_code=403, detail='本站上传功能已关闭,仅管理员可用')
|
||||
else:
|
||||
if settings.ADMIN_PASSWORD is None:
|
||||
raise HTTPException(status_code=404, detail='您未设置管理员密码,无法使用此功能,请更新配置文件后,重启系统')
|
||||
if not pwd or pwd != settings.ADMIN_PASSWORD:
|
||||
raise HTTPException(status_code=401, detail="密码错误,请重新登录")
|
||||
from core.response import APIResponse
|
||||
|
||||
|
||||
class IPRateLimit:
|
||||
@@ -48,5 +41,5 @@ class IPRateLimit:
|
||||
def __call__(self, request: Request):
|
||||
ip = request.headers.get('X-Real-IP', request.headers.get('X-Forwarded-For', request.client.host))
|
||||
if not self.check_ip(ip):
|
||||
raise HTTPException(status_code=400, detail=f"请求次数过多,请稍后再试")
|
||||
raise HTTPException(status_code=423, detail=f"请求次数过多,请稍后再试")
|
||||
return ip
|
||||
@@ -0,0 +1,40 @@
|
||||
# @Time : 2023/8/13 20:43
|
||||
# @Author : Lan
|
||||
# @File : models.py
|
||||
# @Software: PyCharm
|
||||
from datetime import datetime
|
||||
from typing import Optional
|
||||
|
||||
from tortoise import fields
|
||||
from tortoise.models import Model
|
||||
from tortoise.contrib.pydantic import pydantic_model_creator
|
||||
|
||||
from core.utils import get_now
|
||||
|
||||
|
||||
class FileCodes(Model):
|
||||
id: Optional[int] = fields.IntField(pk=True)
|
||||
code: Optional[int] = fields.CharField(description='分享码', max_length=255, index=True, unique=True)
|
||||
prefix: Optional[str] = fields.CharField(max_length=255, description='前缀', default='')
|
||||
suffix: Optional[str] = fields.CharField(max_length=255, description='后缀', default='')
|
||||
uuid_file_name: Optional[str] = fields.CharField(max_length=255, description='uuid文件名', null=True)
|
||||
file_path: Optional[str] = fields.CharField(max_length=255, description='文件路径', null=True)
|
||||
size: Optional[int] = fields.IntField(description='文件大小', default=0)
|
||||
text: Optional[str] = fields.TextField(description='文本内容', null=True)
|
||||
expired_at: Optional[datetime] = fields.DatetimeField(null=True, description='过期时间')
|
||||
expired_count: Optional[int] = fields.IntField(description='可用次数', default=0)
|
||||
used_count: Optional[int] = fields.IntField(description='已用次数', default=0)
|
||||
|
||||
created_at: Optional[datetime] = fields.DatetimeField(auto_now_add=True, description='创建时间')
|
||||
|
||||
async def is_expired(self):
|
||||
if self.expired_at and (self.expired_count == -1 or self.expired_count > 0):
|
||||
return self.expired_at < await get_now()
|
||||
else:
|
||||
return self.expired_count != -1 and self.expired_count == 0
|
||||
|
||||
async def get_file_path(self):
|
||||
return f"{self.file_path}/{self.uuid_file_name}"
|
||||
|
||||
|
||||
file_codes_pydantic = pydantic_model_creator(FileCodes, name='FileCodes')
|
||||
@@ -0,0 +1,5 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class SelectFileModel(BaseModel):
|
||||
code: str
|
||||
@@ -0,0 +1,79 @@
|
||||
# @Time : 2023/8/14 01:10
|
||||
# @Author : Lan
|
||||
# @File : utils.py
|
||||
# @Software: PyCharm
|
||||
import datetime
|
||||
import uuid
|
||||
import os
|
||||
from fastapi import UploadFile
|
||||
|
||||
from apps.base.depends import IPRateLimit
|
||||
from apps.base.models import FileCodes
|
||||
from core.settings import settings
|
||||
from core.utils import get_random_num, get_random_string
|
||||
|
||||
|
||||
async def get_file_path_name(file: UploadFile):
|
||||
"""
|
||||
获取文件路径和文件名
|
||||
:param file:
|
||||
:return: {
|
||||
'path': 'share/data/2021/08/13',
|
||||
'suffix': '.jpg',
|
||||
'prefix': 'test',
|
||||
'file_uuid': '44a83bbd70e04c8aa7fd93bfd8c88249',
|
||||
'uuid_file_name': '44a83bbd70e04c8aa7fd93bfd8c88249.jpg',
|
||||
'save_path': 'share/data/2021/08/13/44a83bbd70e04c8aa7fd93bfd8c88249.jpg'
|
||||
}
|
||||
"""
|
||||
today = datetime.datetime.now()
|
||||
path = f"share/data/{today.strftime('%Y/%m/%d')}"
|
||||
prefix, suffix = os.path.splitext(file.filename)
|
||||
file_uuid = f"{uuid.uuid4().hex}"
|
||||
uuid_file_name = f"{file_uuid}{suffix}"
|
||||
save_path = f"{path}/{uuid_file_name}"
|
||||
return path, suffix, prefix, uuid_file_name, save_path
|
||||
|
||||
|
||||
async def get_expire_info(expire_value: int, expire_style: str):
|
||||
"""
|
||||
获取过期信息
|
||||
:param expire_value:
|
||||
:param expire_style:
|
||||
:return: expired_at 过期时间, expired_count 可用次数, used_count 已用次数, code 随机码
|
||||
"""
|
||||
expired_count, used_count, now, code = -1, 0, datetime.datetime.now(), None
|
||||
if expire_style == 'day':
|
||||
expired_at = now + datetime.timedelta(days=expire_value)
|
||||
elif expire_style == 'hour':
|
||||
expired_at = now + datetime.timedelta(hours=expire_value)
|
||||
elif expire_style == 'minute':
|
||||
expired_at = now + datetime.timedelta(minutes=expire_value)
|
||||
elif expire_style == 'count':
|
||||
expired_at = now + datetime.timedelta(days=1)
|
||||
expired_count = expire_value
|
||||
elif expire_style == 'forever':
|
||||
expired_at = None
|
||||
code = await get_random_code(style='string')
|
||||
else:
|
||||
expired_at = now + datetime.timedelta(days=1)
|
||||
if not code:
|
||||
code = await get_random_code()
|
||||
return expired_at, expired_count, used_count, code
|
||||
|
||||
|
||||
async def get_random_code(style='num'):
|
||||
"""
|
||||
获取随机字符串
|
||||
:return:
|
||||
"""
|
||||
while True:
|
||||
code = await get_random_num() if style == 'num' else await get_random_string()
|
||||
if not await FileCodes.filter(code=code).exists():
|
||||
return code
|
||||
|
||||
|
||||
# 错误IP限制器
|
||||
error_ip_limit = IPRateLimit(count=settings.errorCount, minutes=settings.errorMinute)
|
||||
# 上传文件限制器
|
||||
upload_ip_limit = IPRateLimit(count=settings.uploadCount, minutes=settings.errorMinute)
|
||||
@@ -0,0 +1,113 @@
|
||||
# @Time : 2023/8/14 03:59
|
||||
# @Author : Lan
|
||||
# @File : views.py
|
||||
# @Software: PyCharm
|
||||
from fastapi import APIRouter, Form, UploadFile, File, Depends, HTTPException
|
||||
from apps.admin.depends import admin_required
|
||||
from apps.base.models import FileCodes
|
||||
from apps.base.pydantics import SelectFileModel
|
||||
from apps.base.utils import get_expire_info, get_file_path_name, error_ip_limit, upload_ip_limit
|
||||
from core.response import APIResponse
|
||||
from core.settings import settings
|
||||
from core.storage import file_storage
|
||||
from core.utils import get_select_token
|
||||
|
||||
share_api = APIRouter(
|
||||
prefix='/share',
|
||||
tags=['分享'],
|
||||
)
|
||||
|
||||
|
||||
@share_api.post('/text/', dependencies=[Depends(admin_required)])
|
||||
async def share_text(text: str = Form(...), expire_value: int = Form(default=1, gt=0), expire_style: str = Form(default='day'), ip: str = Depends(upload_ip_limit)):
|
||||
expired_at, expired_count, used_count, code = await get_expire_info(expire_value, expire_style)
|
||||
await FileCodes.create(
|
||||
code=code,
|
||||
text=text,
|
||||
expired_at=expired_at,
|
||||
expired_count=expired_count,
|
||||
used_count=used_count,
|
||||
size=len(text),
|
||||
prefix='文本分享'
|
||||
)
|
||||
upload_ip_limit.add_ip(ip)
|
||||
return APIResponse(detail={
|
||||
'code': code,
|
||||
})
|
||||
|
||||
|
||||
@share_api.post('/file/', dependencies=[Depends(admin_required)])
|
||||
async def share_file(expire_value: int = Form(default=1, gt=0), expire_style: str = Form(default='day'), file: UploadFile = File(...), ip: str = Depends(upload_ip_limit)):
|
||||
if file.size > settings.uploadSize:
|
||||
raise HTTPException(status_code=403, detail=f'文件大小超过限制,最大为{settings.uploadSize}字节')
|
||||
expired_at, expired_count, used_count, code = await get_expire_info(expire_value, expire_style)
|
||||
path, suffix, prefix, uuid_file_name, save_path = await get_file_path_name(file)
|
||||
await file_storage.save_file(file, save_path)
|
||||
await FileCodes.create(
|
||||
code=code,
|
||||
prefix=prefix,
|
||||
suffix=suffix,
|
||||
uuid_file_name=uuid_file_name,
|
||||
file_path=path,
|
||||
size=file.size,
|
||||
expired_at=expired_at,
|
||||
expired_count=expired_count,
|
||||
used_count=used_count,
|
||||
)
|
||||
upload_ip_limit.add_ip(ip)
|
||||
return APIResponse(detail={
|
||||
'code': code,
|
||||
'name': file.filename,
|
||||
})
|
||||
|
||||
|
||||
async def get_code_file_by_code(code):
|
||||
file_code = await FileCodes.filter(code=code).first()
|
||||
if not file_code:
|
||||
return False, '文件不存在'
|
||||
if await file_code.is_expired():
|
||||
return False, '文件已过期',
|
||||
return True, file_code
|
||||
|
||||
|
||||
@share_api.get('/select/')
|
||||
async def get_code_file(code: str, ip: str = Depends(error_ip_limit)):
|
||||
has, file_code = await get_code_file_by_code(code)
|
||||
if not has:
|
||||
error_ip_limit.add_ip(ip)
|
||||
return APIResponse(code=404, detail=file_code)
|
||||
file_code.used_count += 1
|
||||
file_code.expired_count -= 1
|
||||
await file_code.save()
|
||||
return await file_storage.get_file_response(file_code)
|
||||
|
||||
|
||||
@share_api.post('/select/')
|
||||
async def select_file(data: SelectFileModel, ip: str = Depends(error_ip_limit)):
|
||||
has, file_code = await get_code_file_by_code(data.code)
|
||||
if not has:
|
||||
error_ip_limit.add_ip(ip)
|
||||
return APIResponse(code=404, detail=file_code)
|
||||
file_code.used_count += 1
|
||||
file_code.expired_count -= 1
|
||||
await file_code.save()
|
||||
return APIResponse(detail={
|
||||
'code': file_code.code,
|
||||
'name': file_code.prefix + file_code.suffix,
|
||||
'size': file_code.size,
|
||||
'text': file_code.text if file_code.text is not None else await file_storage.get_file_url(file_code),
|
||||
})
|
||||
|
||||
|
||||
@share_api.get('/download')
|
||||
async def download_file(key: str, code: str, ip: str = Depends(error_ip_limit)):
|
||||
is_valid = await get_select_token(code) == key
|
||||
if not is_valid:
|
||||
error_ip_limit.add_ip(ip)
|
||||
has, file_code = await get_code_file_by_code(code)
|
||||
if not file_code:
|
||||
return APIResponse(code=404, detail='文件不存在')
|
||||
if file_code.text:
|
||||
return APIResponse(detail=file_code.text)
|
||||
else:
|
||||
return await file_storage.get_file_response(file_code)
|
||||
@@ -0,0 +1,4 @@
|
||||
# @Time : 2023/8/11 20:06
|
||||
# @Author : Lan
|
||||
# @File : __init__.py.py
|
||||
# @Software: PyCharm
|
||||
@@ -1,85 +0,0 @@
|
||||
import datetime
|
||||
|
||||
from sqlalchemy import Boolean, Column, Integer, String, DateTime, JSON, Text, select, insert, delete
|
||||
from sqlalchemy.ext.declarative import declarative_base
|
||||
from sqlalchemy.ext.asyncio import create_async_engine
|
||||
from sqlalchemy.ext.asyncio.session import AsyncSession
|
||||
|
||||
from settings import settings
|
||||
|
||||
engine = create_async_engine(settings.DATABASE_URL)
|
||||
Base = declarative_base()
|
||||
|
||||
|
||||
class Options(Base):
|
||||
__tablename__ = 'options'
|
||||
id = Column(Integer, primary_key=True, index=True)
|
||||
key = Column(String, unique=True, index=True)
|
||||
value = Column(JSON)
|
||||
|
||||
|
||||
class Codes(Base):
|
||||
__tablename__ = "codes"
|
||||
id = Column(Integer, primary_key=True, index=True)
|
||||
code = Column(String(10), unique=True, index=True)
|
||||
key = Column(String(30), unique=True)
|
||||
name = Column(String(500))
|
||||
size = Column(Integer)
|
||||
type = Column(String(20))
|
||||
text = Column(Text)
|
||||
used = Column(Boolean, default=False)
|
||||
count = Column(Integer, default=-1)
|
||||
use_time = Column(DateTime, default=datetime.datetime.now, onupdate=datetime.datetime.now)
|
||||
exp_time = Column(DateTime, nullable=True)
|
||||
|
||||
|
||||
async def init_models(s):
|
||||
async with engine.begin() as conn:
|
||||
await conn.run_sync(Base.metadata.create_all)
|
||||
if await conn.scalar(select(Options).filter(Options.key == 'INSTALL')) is None:
|
||||
# 如果没有存在install,则清空表,并插入默认数据
|
||||
await conn.execute(delete(table=Options))
|
||||
await conn.execute(insert(table=Options, values=[
|
||||
{'key': 'INSTALL', 'value': settings.VERSION},
|
||||
{'key': 'DEBUG', 'value': settings.DEBUG},
|
||||
{'key': 'DATABASE_FILE', 'value': settings.DATABASE_FILE},
|
||||
{'key': 'PORT', 'value': settings.PORT},
|
||||
{'key': 'DATA_ROOT', 'value': settings.DATA_ROOT},
|
||||
{'key': 'LOCAL_ROOT', 'value': settings.LOCAL_ROOT},
|
||||
{'key': 'STATIC_URL', 'value': settings.STATIC_URL},
|
||||
{'key': 'BANNERS', 'value': settings.BANNERS},
|
||||
{'key': 'ENABLE_UPLOAD', 'value': settings.ENABLE_UPLOAD},
|
||||
{'key': 'MAX_DAYS', 'value': settings.MAX_DAYS},
|
||||
{'key': 'ERROR_COUNT', 'value': settings.ERROR_COUNT},
|
||||
{'key': 'ERROR_MINUTE', 'value': settings.ERROR_COUNT},
|
||||
{'key': 'UPLOAD_COUNT', 'value': settings.UPLOAD_COUNT},
|
||||
{'key': 'UPLOAD_MINUTE', 'value': settings.UPLOAD_MINUTE},
|
||||
{'key': 'DELETE_EXPIRE_FILES_INTERVAL', 'value': settings.DELETE_EXPIRE_FILES_INTERVAL},
|
||||
{'key': 'ADMIN_ADDRESS', 'value': settings.ADMIN_ADDRESS},
|
||||
{'key': 'ADMIN_PASSWORD', 'value': settings.ADMIN_PASSWORD},
|
||||
{'key': 'FILE_SIZE_LIMIT', 'value': settings.FILE_SIZE_LIMIT},
|
||||
{'key': 'TITLE', 'value': settings.TITLE},
|
||||
{'key': 'DESCRIPTION', 'value': settings.DESCRIPTION},
|
||||
{'key': 'KEYWORDS', 'value': settings.KEYWORDS},
|
||||
{'key': 'STORAGE_ENGINE', 'value': settings.STORAGE_ENGINE},
|
||||
{'key': 'STORAGE_CONFIG', 'value': {}},
|
||||
]))
|
||||
print(
|
||||
f'初始化数据库成功!\n'
|
||||
f'如您未配置.env文件,将为您随机生成信息\n'
|
||||
f'您的后台地址为:/{settings.ADMIN_ADDRESS}\n'
|
||||
f'您的管理员密码为:{settings.ADMIN_PASSWORD}\n'
|
||||
f'请尽快修改后台信息!\n'
|
||||
f'FileCodeBox https://github.com/vastsa/FileCodeBox'
|
||||
)
|
||||
await settings.updates(await conn.execute(select(Options).filter()))
|
||||
|
||||
|
||||
async def get_config(key):
|
||||
async with engine.begin() as conn:
|
||||
return await conn.scalar(select(Options.value).filter(Options.key == key))
|
||||
|
||||
|
||||
async def get_session():
|
||||
async with AsyncSession(engine, expire_on_commit=False) as s:
|
||||
yield s
|
||||
@@ -0,0 +1,15 @@
|
||||
# @Time : 2023/8/14 11:48
|
||||
# @Author : Lan
|
||||
# @File : response.py
|
||||
# @Software: PyCharm
|
||||
from typing import Generic, TypeVar
|
||||
|
||||
from pydantic.v1.generics import GenericModel
|
||||
|
||||
T = TypeVar('T')
|
||||
|
||||
|
||||
class APIResponse(GenericModel, Generic[T]):
|
||||
code: int = 200
|
||||
message: str = 'ok'
|
||||
detail: T
|
||||
@@ -0,0 +1,77 @@
|
||||
# @Time : 2023/8/15 09:51
|
||||
# @Author : Lan
|
||||
# @File : settings.py
|
||||
# @Software: PyCharm
|
||||
from pathlib import Path
|
||||
|
||||
data_root = Path('./data')
|
||||
if not data_root.exists():
|
||||
data_root.mkdir(parents=True, exist_ok=True)
|
||||
env_path = data_root / '.env2'
|
||||
default_value = {
|
||||
'file_storage': 'local',
|
||||
'name': '文件快递柜-FileCodeBox',
|
||||
'description': '开箱即用的文件快传系统',
|
||||
'keywords': 'FileCodeBox,文件快递柜,口令传送箱,匿名口令分享文本,文件',
|
||||
's3_access_key_id': '',
|
||||
's3_secret_access_key': '',
|
||||
's3_bucket_name': '',
|
||||
's3_endpoint_url': '',
|
||||
'aws_session_token': '',
|
||||
'onedrive_domain': '',
|
||||
'onedrive_client_id': '',
|
||||
'onedrive_username': '',
|
||||
'onedrive_password': '',
|
||||
'onedrive_root_path': 'filebox_storage',
|
||||
'admin_token': 'FileCodeBox2023',
|
||||
'openUpload': 1,
|
||||
'uploadSize': 1024 * 1024 * 10,
|
||||
'uploadMinute': 1,
|
||||
'opacity': 0.9,
|
||||
'background': '',
|
||||
'uploadCount': 10,
|
||||
'errorMinute': 1,
|
||||
'errorCount': 1,
|
||||
'port': 12345,
|
||||
}
|
||||
|
||||
|
||||
class Settings:
|
||||
__instance = None
|
||||
|
||||
def __init__(self):
|
||||
# 读取.env
|
||||
if not (env_path).exists():
|
||||
with open(env_path, 'w', encoding='utf-8') as f:
|
||||
for key, value in default_value.items():
|
||||
f.write(f'{key}={value}\n')
|
||||
# 更新default_value
|
||||
with open(env_path, 'r', encoding='utf-8') as f:
|
||||
for line in f.readlines():
|
||||
key, value = line.strip().split('=', maxsplit=1)
|
||||
# 将字符串转换为原本的类型
|
||||
if not key.startswith('opendal_') and isinstance(default_value[key], int):
|
||||
value = int(value)
|
||||
default_value[key] = value
|
||||
# 更新self
|
||||
for key, value in default_value.items():
|
||||
self.__setattr__(key, value)
|
||||
|
||||
def __new__(cls, *args, **kwargs):
|
||||
if not cls.__instance:
|
||||
cls.__instance = super(Settings, cls).__new__(cls, *args, **kwargs)
|
||||
return cls.__instance
|
||||
|
||||
def __setattr__(self, key, value):
|
||||
if not key.startswith('opendal_') and type(value) == str and value.isnumeric():
|
||||
value = int(value)
|
||||
self.__dict__[key] = value
|
||||
with open(env_path, 'w', encoding='utf-8') as f:
|
||||
for key, value in self.__dict__.items():
|
||||
f.write(f'{key}={value}\n')
|
||||
|
||||
def items(self):
|
||||
return self.__dict__.items()
|
||||
|
||||
|
||||
settings = Settings()
|
||||
+217
-112
@@ -1,140 +1,245 @@
|
||||
import os
|
||||
# @Time : 2023/8/11 20:06
|
||||
# @Author : Lan
|
||||
# @File : storage.py
|
||||
# @Software: PyCharm
|
||||
import asyncio
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
from typing import BinaryIO
|
||||
from fastapi import UploadFile
|
||||
|
||||
from core.database import Codes
|
||||
from settings import settings
|
||||
|
||||
if settings.STORAGE_ENGINE == 'aliyunsystem':
|
||||
try:
|
||||
import oss2
|
||||
except ImportError:
|
||||
os.system('pip install oss2')
|
||||
import oss2
|
||||
import datetime
|
||||
import re
|
||||
import sys
|
||||
import aioboto3
|
||||
from fastapi import HTTPException, Response, UploadFile
|
||||
from core.response import APIResponse
|
||||
from core.settings import data_root, settings
|
||||
from apps.base.models import FileCodes
|
||||
from core.utils import get_file_url
|
||||
from fastapi.responses import FileResponse
|
||||
|
||||
|
||||
class AliyunFileStorage:
|
||||
class FileStorageInterface:
|
||||
def __init__(self):
|
||||
auth = oss2.Auth(settings.KeyId, settings.KeySecret)
|
||||
self.bucket = oss2.Bucket(auth, settings.OSS_ENDPOINT, settings.BUCKET_NAME)
|
||||
raise NotImplementedError
|
||||
|
||||
def upload_file(self, upload_filepath, remote_filepath):
|
||||
self.bucket.put_object_from_file(remote_filepath, upload_filepath)
|
||||
async def save_file(self, file: UploadFile, save_path: str):
|
||||
"""
|
||||
保存文件
|
||||
"""
|
||||
raise NotImplementedError
|
||||
|
||||
async def get_text(self, file: UploadFile, key: str):
|
||||
ext = file.filename.split('.')[-1]
|
||||
now = datetime.now()
|
||||
path = f"FileCodeBox/upload/{now.year}/{now.month}/{now.day}"
|
||||
text = f"{path}/{f'{key}.{ext}'}"
|
||||
return f"https://{settings.BUCKET_NAME}.{settings.OSS_ENDPOINT}/{text}"
|
||||
async def delete_file(self, file_code: FileCodes):
|
||||
"""
|
||||
删除文件
|
||||
"""
|
||||
raise NotImplementedError
|
||||
|
||||
async def get_url(self, info: Codes):
|
||||
text = info.text.strip(f"https://{settings.BUCKET_NAME}.{settings.OSS_ENDPOINT}/")
|
||||
url = self.bucket.sign_url('GET', text, settings.ACCESSTIME, slash_safe=True)
|
||||
return url
|
||||
async def get_file_url(self, file_code: FileCodes):
|
||||
"""
|
||||
获取文件分享的url
|
||||
|
||||
@staticmethod
|
||||
async def get_size(file: UploadFile):
|
||||
f = file.file
|
||||
f.seek(0, os.SEEK_END)
|
||||
size = f.tell()
|
||||
f.seek(0, os.SEEK_SET)
|
||||
return size
|
||||
如果服务不支持直接访问文件,可以通过服务器中转下载。
|
||||
此时,此方法可以调用 utils.py 中的 `get_file_url` 方法,获取服务器中转下载的url
|
||||
"""
|
||||
raise NotImplementedError
|
||||
|
||||
@staticmethod
|
||||
def _save(filepath, file: BinaryIO):
|
||||
with open(filepath, 'wb') as f:
|
||||
chunk_size = 256 * 1024
|
||||
chunk = file.read(chunk_size)
|
||||
async def get_file_response(self, file_code: FileCodes):
|
||||
"""
|
||||
获取文件响应
|
||||
|
||||
如果服务不支持直接访问文件,则需要实现该方法,返回文件响应
|
||||
其余情况,可以不实现该方法
|
||||
"""
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
class SystemFileStorage(FileStorageInterface):
|
||||
def __init__(self):
|
||||
self.chunk_size = 256 * 1024
|
||||
self.root_path = data_root
|
||||
|
||||
def _save(self, file, save_path):
|
||||
with open(save_path, 'wb') as f:
|
||||
chunk = file.read(self.chunk_size)
|
||||
while chunk:
|
||||
f.write(chunk)
|
||||
chunk = file.read(chunk_size)
|
||||
chunk = file.read(self.chunk_size)
|
||||
|
||||
async def save_file(self, file: UploadFile, remote_filepath: str):
|
||||
now = int(datetime.now().timestamp())
|
||||
upload_filepath = settings.DATA_ROOT + str(now)
|
||||
await asyncio.to_thread(self._save, upload_filepath, file.file)
|
||||
self.upload_file(upload_filepath, remote_filepath)
|
||||
remote_filepath = remote_filepath.strip(f"https://{settings.BUCKET_NAME}.{settings.OSS_ENDPOINT}/")
|
||||
self.upload_file(upload_filepath, remote_filepath)
|
||||
await asyncio.to_thread(os.remove, upload_filepath)
|
||||
async def save_file(self, file: UploadFile, save_path: str):
|
||||
save_path = self.root_path / save_path
|
||||
if not save_path.parent.exists():
|
||||
save_path.parent.mkdir(parents=True)
|
||||
await asyncio.to_thread(self._save, file.file, save_path)
|
||||
|
||||
async def delete_files(self, texts):
|
||||
tasks = [self.delete_file(text) for text in texts]
|
||||
await asyncio.gather(*tasks)
|
||||
async def delete_file(self, file_code: FileCodes):
|
||||
save_path = self.root_path / await file_code.get_file_path()
|
||||
if save_path.exists():
|
||||
save_path.unlink()
|
||||
|
||||
async def delete_file(self, text: str):
|
||||
text = text.strip(f"https://{settings.BUCKET_NAME}.{settings.OSS_ENDPOINT}/")
|
||||
self.bucket.delete_object(text)
|
||||
async def get_file_url(self, file_code: FileCodes):
|
||||
return await get_file_url(file_code.code)
|
||||
|
||||
async def get_file_response(self, file_code: FileCodes):
|
||||
file_path = file_storage.root_path / await file_code.get_file_path()
|
||||
if not file_path.exists():
|
||||
return APIResponse(code=404, detail='文件已过期删除')
|
||||
return FileResponse(file_path, filename=file_code.prefix + file_code.suffix)
|
||||
|
||||
|
||||
class FileSystemStorage:
|
||||
class S3FileStorage(FileStorageInterface):
|
||||
def __init__(self):
|
||||
self.DATA_ROOT = Path(settings.DATA_ROOT)
|
||||
self.STATIC_URL = settings.STATIC_URL
|
||||
self.NAME = "filesystem"
|
||||
self.DOWN_PATH = '/select'
|
||||
self.access_key_id = settings.s3_access_key_id
|
||||
self.secret_access_key = settings.s3_secret_access_key
|
||||
self.bucket_name = settings.s3_bucket_name
|
||||
self.endpoint_url = settings.s3_endpoint_url
|
||||
self.aws_session_token = settings.aws_session_token
|
||||
self.session = aioboto3.Session(aws_access_key_id=self.access_key_id, aws_secret_access_key=self.secret_access_key)
|
||||
|
||||
async def get_filepath(self, text: str):
|
||||
return self.DATA_ROOT / text.lstrip(self.STATIC_URL + '/')
|
||||
async def save_file(self, file: UploadFile, save_path: str):
|
||||
async with self.session.client("s3", endpoint_url=self.endpoint_url, aws_session_token=self.aws_session_token) as s3:
|
||||
await s3.put_object(Bucket=self.bucket_name, Key=save_path, Body=await file.read(), ContentType=file.content_type)
|
||||
|
||||
async def get_url(self, info: Codes):
|
||||
return f'{self.DOWN_PATH}?code={info.code}'
|
||||
async def delete_file(self, file_code: FileCodes):
|
||||
async with self.session.client("s3", endpoint_url=self.endpoint_url) as s3:
|
||||
await s3.delete_object(Bucket=self.bucket_name, Key=await file_code.get_file_path())
|
||||
|
||||
async def get_text(self, file: UploadFile, key: str):
|
||||
ext = file.filename.split('.')[-1]
|
||||
now = datetime.now()
|
||||
path = self.DATA_ROOT / f"upload/{now.year}/{now.month}/{now.day}/"
|
||||
if not path.exists():
|
||||
path.mkdir(parents=True)
|
||||
text = f"{self.STATIC_URL}/{(path / f'{key}.{ext}').relative_to(self.DATA_ROOT)}"
|
||||
return text
|
||||
async def get_file_url(self, file_code: FileCodes):
|
||||
if file_code.prefix == '文本分享':
|
||||
return file_code.text
|
||||
async with self.session.client("s3", endpoint_url=self.endpoint_url) as s3:
|
||||
result = await s3.generate_presigned_url('get_object', Params={'Bucket': self.bucket_name, 'Key': await file_code.get_file_path()}, ExpiresIn=3600)
|
||||
return result
|
||||
|
||||
@staticmethod
|
||||
async def get_size(file: UploadFile):
|
||||
f = file.file
|
||||
f.seek(0, os.SEEK_END)
|
||||
size = f.tell()
|
||||
f.seek(0, os.SEEK_SET)
|
||||
return size
|
||||
|
||||
@staticmethod
|
||||
def _save(filepath, file: BinaryIO):
|
||||
with open(filepath, 'wb') as f:
|
||||
chunk_size = 256 * 1024
|
||||
chunk = file.read(chunk_size)
|
||||
while chunk:
|
||||
f.write(chunk)
|
||||
chunk = file.read(chunk_size)
|
||||
class OneDriveFileStorage(FileStorageInterface):
|
||||
def __init__(self):
|
||||
try:
|
||||
import msal
|
||||
from office365.graph_client import GraphClient
|
||||
from office365.runtime.client_request_exception import ClientRequestException
|
||||
except ImportError:
|
||||
raise ImportError('请先安装`msal`和`Office365-REST-Python-Client`')
|
||||
self.msal = msal
|
||||
self.domain = settings.onedrive_domain
|
||||
self.client_id = settings.onedrive_client_id
|
||||
self.username = settings.onedrive_username
|
||||
self.password = settings.onedrive_password
|
||||
self._ClientRequestException = ClientRequestException
|
||||
|
||||
async def save_file(self, file: UploadFile, text: str):
|
||||
filepath = await self.get_filepath(text)
|
||||
await asyncio.to_thread(self._save, filepath, file.file)
|
||||
|
||||
async def delete_file(self, text: str):
|
||||
filepath = await self.get_filepath(text)
|
||||
if filepath.exists():
|
||||
await asyncio.to_thread(os.remove, filepath)
|
||||
await asyncio.to_thread(self.judge_delete_folder, filepath)
|
||||
|
||||
async def delete_files(self, texts):
|
||||
tasks = [self.delete_file(text) for text in texts]
|
||||
await asyncio.gather(*tasks)
|
||||
|
||||
def judge_delete_folder(self, filepath):
|
||||
current = filepath.parent
|
||||
while current != self.DATA_ROOT:
|
||||
if not list(current.iterdir()):
|
||||
os.rmdir(current)
|
||||
current = current.parent
|
||||
try:
|
||||
client = GraphClient(self.acquire_token_pwd)
|
||||
self.root_path = client.me.drive.root.get_by_path(settings.onedrive_root_path).get().execute_query()
|
||||
except ClientRequestException as e:
|
||||
if e.code == 'itemNotFound':
|
||||
client.me.drive.root.create_folder(settings.onedrive_root_path)
|
||||
self.root_path = client.me.drive.root.get_by_path(settings.onedrive_root_path).get().execute_query()
|
||||
else:
|
||||
break
|
||||
raise e
|
||||
except Exception as e:
|
||||
raise Exception('OneDrive验证失败,请检查配置是否正确\n' + str(e))
|
||||
|
||||
def acquire_token_pwd(self):
|
||||
authority_url = f'https://login.microsoftonline.com/{self.domain}'
|
||||
app = self.msal.PublicClientApplication(
|
||||
authority=authority_url,
|
||||
client_id=self.client_id
|
||||
)
|
||||
result = app.acquire_token_by_username_password(username=self.username,
|
||||
password=self.password,
|
||||
scopes=['https://graph.microsoft.com/.default'])
|
||||
return result
|
||||
|
||||
def _get_path_str(self, path):
|
||||
if isinstance(path, str):
|
||||
path = path.replace('\\', '/').replace('//', '/').split('/')
|
||||
elif isinstance(path, Path):
|
||||
path = str(path).replace('\\', '/').replace('//', '/').split('/')
|
||||
else:
|
||||
raise TypeError('path must be str or Path')
|
||||
path[-1] = path[-1].split('.')[0]
|
||||
return '/'.join(path)
|
||||
|
||||
def _save(self, file, save_path):
|
||||
content = file.file.read()
|
||||
name = file.filename
|
||||
path = self._get_path_str(save_path)
|
||||
self.root_path.get_by_path(path).upload(name, content).execute_query()
|
||||
|
||||
async def save_file(self, file: UploadFile, save_path: str):
|
||||
await asyncio.to_thread(self._save, file, save_path)
|
||||
|
||||
def _delete(self, save_path):
|
||||
path = self._get_path_str(save_path)
|
||||
try:
|
||||
self.root_path.get_by_path(path).delete_object().execute_query()
|
||||
except self._ClientRequestException as e:
|
||||
if e.code == 'itemNotFound':
|
||||
pass
|
||||
else:
|
||||
raise e
|
||||
|
||||
async def delete_file(self, file_code: FileCodes):
|
||||
await asyncio.to_thread(self._delete, await file_code.get_file_path())
|
||||
|
||||
def _convert_link_to_download_link(self, link):
|
||||
p1 = re.search(r'https:\/\/(.+)\.sharepoint\.com', link).group(1)
|
||||
p2 = re.search(r'personal\/(.+)\/', link).group(1)
|
||||
p3 = re.search(rf'{p2}\/(.+)', link).group(1)
|
||||
return f'https://{p1}.sharepoint.com/personal/{p2}/_layouts/52/download.aspx?share={p3}'
|
||||
|
||||
def _get_file_url(self, save_path, name):
|
||||
path = self._get_path_str(save_path)
|
||||
remote_file = self.root_path.get_by_path(path + '/' + name)
|
||||
expiration_datetime = datetime.datetime.now(tz=datetime.timezone.utc) + datetime.timedelta(hours=1)
|
||||
expiration_datetime = expiration_datetime.strftime("%Y-%m-%dT%H:%M:%SZ")
|
||||
premission = remote_file.create_link("view", "anonymous", expiration_datetime=expiration_datetime).execute_query()
|
||||
return self._convert_link_to_download_link(premission.link.webUrl)
|
||||
|
||||
async def get_file_url(self, file_code: FileCodes):
|
||||
if file_code.prefix == '文本分享':
|
||||
return file_code.text
|
||||
result = await asyncio.to_thread(self._get_file_url, await file_code.get_file_path(), f'{file_code.prefix}{file_code.suffix}')
|
||||
return result
|
||||
|
||||
|
||||
STORAGE_ENGINE = {
|
||||
"filesystem": FileSystemStorage,
|
||||
"aliyunsystem": AliyunFileStorage
|
||||
class OpenDALFileStorage(FileStorageInterface):
|
||||
def __init__(self):
|
||||
try:
|
||||
import opendal
|
||||
except ImportError:
|
||||
raise ImportError('请先安装 `opendal`, 例如: "pip install opendal"')
|
||||
self.service = settings.opendal_scheme
|
||||
service_settings = {}
|
||||
for key, value in settings.items():
|
||||
if key.startswith('opendal_' + self.service):
|
||||
setting_name = key.split('_', 2)[2]
|
||||
service_settings[setting_name] = value
|
||||
self.operator = opendal.AsyncOperator(settings.opendal_scheme, **service_settings)
|
||||
|
||||
async def save_file(self, file: UploadFile, save_path: str):
|
||||
await self.operator.write(save_path, file.file.read())
|
||||
|
||||
async def delete_file(self, file_code: FileCodes):
|
||||
await self.operator.delete(await file_code.get_file_path())
|
||||
|
||||
async def get_file_url(self, file_code: FileCodes):
|
||||
return await get_file_url(file_code.code)
|
||||
|
||||
async def get_file_response(self, file_code: FileCodes):
|
||||
try:
|
||||
filename = file_code.prefix + file_code.suffix
|
||||
content = await self.operator.read(await file_code.get_file_path())
|
||||
headers = {
|
||||
"Content-Disposition": f'attachment; filename="{filename}"'
|
||||
}
|
||||
return Response(content, headers=headers, media_type="application/octet-stream")
|
||||
except Exception as e:
|
||||
print(e, file=sys.stderr)
|
||||
raise HTTPException(status_code=404, detail="文件已过期删除")
|
||||
|
||||
|
||||
storages = {
|
||||
'local': SystemFileStorage,
|
||||
's3': S3FileStorage,
|
||||
'onedrive': OneDriveFileStorage,
|
||||
'opendal': OpenDALFileStorage,
|
||||
}
|
||||
file_storage: FileStorageInterface = storages[settings.file_storage]()
|
||||
@@ -0,0 +1,27 @@
|
||||
# @Time : 2023/8/15 22:00
|
||||
# @Author : Lan
|
||||
# @File : tasks.py
|
||||
# @Software: PyCharm
|
||||
import asyncio
|
||||
|
||||
from tortoise.expressions import Q
|
||||
|
||||
from apps.base.models import FileCodes
|
||||
from apps.base.utils import error_ip_limit, upload_ip_limit
|
||||
from core.storage import file_storage
|
||||
from core.utils import get_now
|
||||
|
||||
|
||||
async def delete_expire_files():
|
||||
while True:
|
||||
try:
|
||||
await error_ip_limit.remove_expired_ip()
|
||||
await upload_ip_limit.remove_expired_ip()
|
||||
expire_data = await FileCodes.filter(Q(expired_at__lt=await get_now()) | Q(expired_count=0)).all()
|
||||
for exp in expire_data:
|
||||
await file_storage.delete_file(exp)
|
||||
await exp.delete()
|
||||
except Exception as e:
|
||||
print(e)
|
||||
finally:
|
||||
await asyncio.sleep(600)
|
||||
+52
-36
@@ -1,43 +1,59 @@
|
||||
# @Time : 2023/8/13 19:54
|
||||
# @Author : Lan
|
||||
# @File : utils.py
|
||||
# @Software: PyCharm
|
||||
import datetime
|
||||
import hashlib
|
||||
import random
|
||||
import asyncio
|
||||
from sqlalchemy import or_, select, delete
|
||||
from sqlalchemy.ext.asyncio.session import AsyncSession
|
||||
from .database import Codes, engine
|
||||
from .depends import IPRateLimit
|
||||
from .storage import STORAGE_ENGINE
|
||||
from settings import settings
|
||||
import string
|
||||
import time
|
||||
|
||||
storage = STORAGE_ENGINE[settings.STORAGE_ENGINE]()
|
||||
|
||||
# 错误IP限制器
|
||||
error_ip_limit = IPRateLimit(settings.ERROR_COUNT, settings.ERROR_MINUTE)
|
||||
# 上传文件限制器
|
||||
upload_ip_limit = IPRateLimit(settings.UPLOAD_COUNT, settings.UPLOAD_MINUTE)
|
||||
from apps.base.depends import IPRateLimit
|
||||
|
||||
|
||||
async def delete_expire_files():
|
||||
while True:
|
||||
async with AsyncSession(engine, expire_on_commit=False) as s:
|
||||
await error_ip_limit.remove_expired_ip()
|
||||
await upload_ip_limit.remove_expired_ip()
|
||||
query = select(Codes).where(or_(Codes.exp_time < datetime.datetime.now(), Codes.count == 0))
|
||||
exps = (await s.execute(query)).scalars().all()
|
||||
files = []
|
||||
exps_ids = []
|
||||
for exp in exps:
|
||||
if exp.type != "text":
|
||||
files.append(exp.text)
|
||||
exps_ids.append(exp.id)
|
||||
await storage.delete_files(files)
|
||||
query = delete(Codes).where(Codes.id.in_(exps_ids))
|
||||
await s.execute(query)
|
||||
await s.commit()
|
||||
await asyncio.sleep(settings.DELETE_EXPIRE_FILES_INTERVAL * 60)
|
||||
async def get_random_num():
|
||||
"""
|
||||
获取随机数
|
||||
:return:
|
||||
"""
|
||||
return random.randint(10000, 99999)
|
||||
|
||||
|
||||
async def get_code(s: AsyncSession):
|
||||
code = random.randint(10000, 99999)
|
||||
while (await s.execute(select(Codes.id).where(Codes.code == code))).scalar():
|
||||
code = random.randint(10000, 99999)
|
||||
return str(code)
|
||||
r_s = string.ascii_uppercase + string.digits
|
||||
|
||||
|
||||
async def get_random_string():
|
||||
"""
|
||||
获取随机字符串
|
||||
:return:
|
||||
"""
|
||||
return ''.join(random.choice(r_s) for _ in range(5))
|
||||
|
||||
|
||||
async def get_now():
|
||||
"""
|
||||
获取当前时间
|
||||
:return:
|
||||
"""
|
||||
return datetime.datetime.now(
|
||||
datetime.timezone(datetime.timedelta(hours=8))
|
||||
)
|
||||
|
||||
|
||||
async def get_select_token(code: str):
|
||||
"""
|
||||
获取下载token
|
||||
:param code:
|
||||
:return:
|
||||
"""
|
||||
token = "123456"
|
||||
return hashlib.sha256(f"{code}{int(time.time() / 1000)}000{token}".encode()).hexdigest()
|
||||
|
||||
|
||||
async def get_file_url(code: str):
|
||||
"""
|
||||
对于需要通过服务器中转下载的服务,获取文件下载地址
|
||||
:param code:
|
||||
:return:
|
||||
"""
|
||||
return f'/share/download?key={await get_select_token(code)}&code={code}'
|
||||
@@ -0,0 +1,15 @@
|
||||
/* eslint-env node */
|
||||
require('@rushstack/eslint-patch/modern-module-resolution')
|
||||
|
||||
module.exports = {
|
||||
root: true,
|
||||
'extends': [
|
||||
'plugin:vue/vue3-essential',
|
||||
'eslint:recommended',
|
||||
'@vue/eslint-config-typescript',
|
||||
'@vue/eslint-config-prettier/skip-formatting'
|
||||
],
|
||||
parserOptions: {
|
||||
ecmaVersion: 'latest'
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
lerna-debug.log*
|
||||
.vite/
|
||||
node_modules
|
||||
.DS_Store
|
||||
dist-ssr
|
||||
coverage
|
||||
*.local
|
||||
.git
|
||||
/cypress/videos/
|
||||
/cypress/screenshots/
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/prettierrc",
|
||||
"semi": false,
|
||||
"tabWidth": 2,
|
||||
"singleQuote": true,
|
||||
"printWidth": 100,
|
||||
"trailingComma": "none"
|
||||
}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
/* eslint-disable */
|
||||
/* prettier-ignore */
|
||||
// @ts-nocheck
|
||||
// noinspection JSUnusedGlobalSymbols
|
||||
// Generated by unplugin-auto-import
|
||||
export {}
|
||||
declare global {
|
||||
|
||||
}
|
||||
Vendored
+45
@@ -0,0 +1,45 @@
|
||||
/* eslint-disable */
|
||||
/* prettier-ignore */
|
||||
// @ts-nocheck
|
||||
// Generated by unplugin-vue-components
|
||||
// Read more: https://github.com/vuejs/core/pull/3399
|
||||
export {}
|
||||
|
||||
declare module 'vue' {
|
||||
export interface GlobalComponents {
|
||||
CardTools: typeof import('./src/components/CardTools.vue')['default']
|
||||
ElButton: typeof import('element-plus/es')['ElButton']
|
||||
ElCard: typeof import('element-plus/es')['ElCard']
|
||||
ElCol: typeof import('element-plus/es')['ElCol']
|
||||
ElContainer: typeof import('element-plus/es')['ElContainer']
|
||||
ElDialog: typeof import('element-plus/es')['ElDialog']
|
||||
ElDrawer: typeof import('element-plus/es')['ElDrawer']
|
||||
ElForm: typeof import('element-plus/es')['ElForm']
|
||||
ElFormItem: typeof import('element-plus/es')['ElFormItem']
|
||||
ElHeader: typeof import('element-plus/es')['ElHeader']
|
||||
ElIcon: typeof import('element-plus/es')['ElIcon']
|
||||
ElInput: typeof import('element-plus/es')['ElInput']
|
||||
ElMain: typeof import('element-plus/es')['ElMain']
|
||||
ElMenu: typeof import('element-plus/es')['ElMenu']
|
||||
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
|
||||
ElOption: typeof import('element-plus/es')['ElOption']
|
||||
ElPagination: typeof import('element-plus/es')['ElPagination']
|
||||
ElProgress: typeof import('element-plus/es')['ElProgress']
|
||||
ElRadio: typeof import('element-plus/es')['ElRadio']
|
||||
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
|
||||
ElRow: typeof import('element-plus/es')['ElRow']
|
||||
ElSelect: typeof import('element-plus/es')['ElSelect']
|
||||
ElTable: typeof import('element-plus/es')['ElTable']
|
||||
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
|
||||
ElTag: typeof import('element-plus/es')['ElTag']
|
||||
ElUpload: typeof import('element-plus/es')['ElUpload']
|
||||
FileBox: typeof import('./src/components/FileBox.vue')['default']
|
||||
RouterLink: typeof import('vue-router')['RouterLink']
|
||||
RouterView: typeof import('vue-router')['RouterView']
|
||||
UploadFile: typeof import('./src/components/UploadFile.vue')['default']
|
||||
UploadText: typeof import('./src/components/UploadText.vue')['default']
|
||||
}
|
||||
export interface ComponentCustomProperties {
|
||||
vLoading: typeof import('element-plus/es')['ElLoadingDirective']
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
import{d as a,Q as n,F as c,D as e,J as r,H as o,u as s,o as u}from"./index-c6e70cde.js";const i={style:{"text-align":"center"}},l={style:{color:"#333"},href:"https://github.com/vastsa/FileCodeBox"},f=a({__name:"AboutView",setup(_){const{t}=n();return(m,d)=>(u(),c("main",i,[e("span",null,[r(o(s(t)("admin.about.source1"))+" ",1),e("em",null,[e("a",l,o(s(t)("admin.about.source2")),1)])])]))}});export{f as default};
|
||||
@@ -0,0 +1 @@
|
||||
.el-container{display:flex;flex-direction:row;flex:1;flex-basis:auto;box-sizing:border-box;min-width:0}.el-container.is-vertical{flex-direction:column}.el-aside{overflow:auto;box-sizing:border-box;flex-shrink:0;width:var(--el-aside-width,300px)}.el-footer{--el-footer-padding:0 20px;--el-footer-height:60px;padding:var(--el-footer-padding);box-sizing:border-box;flex-shrink:0;height:var(--el-footer-height)}.el-header{--el-header-padding:0 20px;--el-header-height:60px;padding:var(--el-header-padding);box-sizing:border-box;flex-shrink:0;height:var(--el-header-height)}.el-main{--el-main-padding:20px;display:block;flex:1;flex-basis:auto;overflow:auto;box-sizing:border-box;padding:var(--el-main-padding)}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center top}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center bottom}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transition:var(--el-transition-md-fade);transform-origin:top left}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-enter-active,.el-collapse-transition-leave-active{transition:var(--el-transition-duration) max-height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-to{opacity:0;transform:translateY(-30px)}.el-list-leave-active{position:absolute!important}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}:root{--el-menu-active-color:var(--el-color-primary);--el-menu-text-color:var(--el-text-color-primary);--el-menu-hover-text-color:var(--el-color-primary);--el-menu-bg-color:var(--el-fill-color-blank);--el-menu-hover-bg-color:var(--el-color-primary-light-9);--el-menu-item-height:56px;--el-menu-sub-item-height:calc(var(--el-menu-item-height) - 6px);--el-menu-horizontal-sub-item-height:36px;--el-menu-item-font-size:var(--el-font-size-base);--el-menu-item-hover-fill:var(--el-color-primary-light-9);--el-menu-border-color:var(--el-border-color);--el-menu-base-level-padding:20px;--el-menu-level-padding:20px;--el-menu-icon-width:24px}.el-menu{border-right:solid 1px var(--el-menu-border-color);list-style:none;position:relative;margin:0;padding-left:0;background-color:var(--el-menu-bg-color);box-sizing:border-box}.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item-group__title,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-sub-menu__title{white-space:nowrap;padding-left:calc(var(--el-menu-base-level-padding) + var(--el-menu-level) * var(--el-menu-level-padding))}.el-menu--horizontal{display:flex;flex-wrap:nowrap;border-right:none}.el-menu--horizontal.el-menu{border-bottom:solid 1px var(--el-menu-border-color)}.el-menu--horizontal>.el-menu-item{display:inline-flex;justify-content:center;align-items:center;height:100%;margin:0;border-bottom:2px solid transparent;color:var(--el-menu-text-color)}.el-menu--horizontal>.el-menu-item a,.el-menu--horizontal>.el-menu-item a:hover{color:inherit}.el-menu--horizontal>.el-sub-menu:focus,.el-menu--horizontal>.el-sub-menu:hover{Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{u as x,_ as W,w as Te,F as U,E as O,e as se,r as fe,W as qe,ab as Ge,b as Me,X as le,a3 as Ue,G as de,ac as Ze,ad as Je,k as Pe,a2 as Ee,d as be,m as Qe,ae as Xe,af as Ke,H as xe,a6 as Ye,a7 as et,s as tt,S as $e,f as nt,j as ot}from"./request-7df3eafb.js";import{E as at,a as st}from"./el-form-item-05e3aa6e.js";import"./el-tooltip-4ed993c7.js";import{E as Be}from"./el-popper-79e2cc61.js";import{d as _,o as I,a as Q,w as S,r as $,a0 as Ne,a9 as lt,u as h,T as Oe,Z as rt,c as p,F as A,b as F,e as Ce,i as me,h as E,j as ke,z as ue,p as _e,A as Ie,B as Ae,l as M,s as X,m as ut,v as it,R as pe,a5 as we,a2 as ct,g as dt,n as mt,_ as pt,C as ze,D as ye,J as oe,H as ae,a7 as vt,Q as ft,P as ht,q as V,S as gt}from"./index-c6e70cde.js";import{t as ie}from"./aria-bc8e8b0f.js";import{f as bt}from"./vnode-1ab6d357.js";import"./_baseClone-245914c0.js";const _t=_({name:"ElCollapseTransition"}),yt=_({..._t,setup(e){const o=x("collapse-transition"),n=t=>{t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom},s={beforeEnter(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0},enter(t){t.dataset.oldOverflow=t.style.overflow,t.scrollHeight!==0?t.style.maxHeight=`${t.scrollHeight}px`:t.style.maxHeight=0,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom,t.style.overflow="hidden"},afterEnter(t){t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow},enterCancelled(t){n(t)},beforeLeave(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.maxHeight=`${t.scrollHeight}px`,t.style.overflow="hidden"},leave(t){t.scrollHeight!==0&&(t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0)},afterLeave(t){n(t)},leaveCancelled(t){n(t)}};return(t,d)=>(I(),Q(Oe,Ne({name:h(o).b()},lt(s)),{default:S(()=>[$(t.$slots,"default")]),_:3},16,["name"]))}});var ce=W(yt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);ce.install=e=>{e.component(ce.name,ce)};const Mt=ce,Ct=_({name:"ElContainer"}),kt=_({...Ct,props:{direction:{type:String}},setup(e){const o=e,n=rt(),s=x("container"),t=p(()=>o.direction==="vertical"?!0:o.direction==="horizontal"?!1:n&&n.default?n.default().some(i=>{const f=i.type.name;return f==="ElHeader"||f==="ElFooter"}):!1);return(d,i)=>(I(),A("section",{class:F([h(s).b(),h(s).is("vertical",h(t))])},[$(d.$slots,"default")],2))}});var It=W(kt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const wt=_({name:"ElAside"}),St=_({...wt,props:{width:{type:String,default:null}},setup(e){const o=e,n=x("aside"),s=p(()=>o.width?n.cssVarBlock({width:o.width}):{});return(t,d)=>(I(),A("aside",{class:F(h(n).b()),style:Ce(h(s))},[$(t.$slots,"default")],6))}});var He=W(St,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const Et=_({name:"ElFooter"}),xt=_({...Et,props:{height:{type:String,default:null}},setup(e){const o=e,n=x("footer"),s=p(()=>o.height?n.cssVarBlock({height:o.height}):{});return(t,d)=>(I(),A("footer",{class:F(h(n).b()),style:Ce(h(s))},[$(t.$slots,"default")],6))}});var De=W(xt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const $t=_({name:"ElHeader"}),Tt=_({...$t,props:{height:{type:String,default:null}},setup(e){const o=e,n=x("header"),s=p(()=>o.height?n.cssVarBlock({height:o.height}):{});return(t,d)=>(I(),A("header",{class:F(h(n).b()),style:Ce(h(s))},[$(t.$slots,"default")],6))}});var Le=W(Tt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const Pt=_({name:"ElMain"}),Bt=_({...Pt,setup(e){const o=x("main");return(n,s)=>(I(),A("main",{class:F(h(o).b())},[$(n.$slots,"default")],2))}});var Ve=W(Bt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const Nt=Te(It,{Aside:He,Footer:De,Header:Le,Main:Ve});U(He);U(De);const Ot=U(Le),At=U(Ve);let zt=class{constructor(o,n){this.parent=o,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(o){o===this.subMenuItems.length?o=0:o<0&&(o=this.subMenuItems.length-1),this.subMenuItems[o].focus(),this.subIndex=o}addListeners(){const o=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",s=>{let t=!1;switch(s.code){case O.down:{this.gotoSubIndex(this.subIndex+1),t=!0;break}case O.up:{this.gotoSubIndex(this.subIndex-1),t=!0;break}case O.tab:{ie(o,"mouseleave");break}case O.enter:case O.space:{t=!0,s.currenLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
.el-card{--el-card-border-color:var(--el-border-color-light);--el-card-border-radius:4px;--el-card-padding:20px;--el-card-bg-color:var(--el-fill-color-blank)}.el-card{border-radius:var(--el-card-border-radius);border:1px solid var(--el-card-border-color);background-color:var(--el-card-bg-color);overflow:hidden;color:var(--el-text-color-primary);transition:var(--el-transition-duration)}.el-card.is-always-shadow{box-shadow:var(--el-box-shadow-light)}.el-card.is-hover-shadow:focus,.el-card.is-hover-shadow:hover{box-shadow:var(--el-box-shadow-light)}.el-card__header{padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding);border-bottom:1px solid var(--el-card-border-color);box-sizing:border-box}.el-card__body{padding:var(--el-card-padding)}.el-icon-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@-webkit-keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.el-icon{--color:inherit;height:1em;width:1em;line-height:1em;display:inline-flex;justify-content:center;align-items:center;position:relative;fill:currentColor;color:var(--color);font-size:inherit}.el-icon.is-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon svg{height:1em;width:1em}.el-drawer{--el-drawer-bg-color:var(--el-dialog-bg-color, var(--el-bg-color));--el-drawer-padding-primary:var(--el-dialog-padding-primary, 20px)}.el-drawer{position:absolute;box-sizing:border-box;background-color:var(--el-drawer-bg-color);display:flex;flex-direction:column;box-shadow:var(--el-box-shadow-dark);overflow:hidden;transition:all var(--el-transition-duration)}.el-drawer .rtl,.el-drawer .ltr,.el-drawer .ttb,.el-drawer .btt{transform:translate(0)}.el-drawer__sr-focus:focus{outline:0!important}.el-drawer__header{align-items:center;color:#72767b;display:flex;margin-bottom:32px;padding:var(--el-drawer-padding-primary);padding-bottom:0}.el-drawer__header>:first-child{flex:1}.el-drawer__title{margin:0;flex:1;line-height:inherit;font-size:1rem}.el-drawer__footer{padding:var(--el-drawer-padding-primary);padding-top:10px;text-align:right}.el-drawer__close-btn{display:inline-flex;border:none;cursor:pointer;font-size:var(--el-font-size-extra-large);color:inherit;background-color:transparent;outline:0}.el-drawer__close-btn:focus i,.el-drawer__close-btn:hover i{color:var(--el-color-primary)}.el-drawer__body{flex:1;padding:var(--el-drawer-padding-primary);overflow:auto}.el-drawer__body>*{box-sizing:border-box}.el-drawer.ltr,.el-drawer.rtl{height:100%;top:0;bottom:0}.el-drawer.btt,.el-drawer.ttb{width:100%;left:0;right:0}.el-drawer.ltr{left:0}.el-drawer.rtl{right:0}.el-drawer.ttb{top:0}.el-drawer.btt{bottom:0}.el-drawer-fade-enter-active,.el-drawer-fade-leave-active{transition:all var(--el-transition-duration)}.el-drawer-fade-enter-active,.el-drawer-fade-enter-from,.el-drawer-fade-enter-to,.el-drawer-fade-leave-active,.el-drawer-fade-leave-from,.el-drawer-fade-leave-to{overflow:hidden!important}.el-drawer-fade-enter-from,.el-drawer-fade-leave-to{opacity:0}.el-drawer-fade-enter-to,.el-drawer-fade-leave-from{opacity:1}.el-drawer-fade-enter-from .rtl,.el-drawer-fade-leave-to .rtl{transform:translate(100%)}.el-drawer-fade-enter-from .ltr,.el-drawer-fade-leave-to .ltr{transform:translate(-100%)}.el-drawer-fade-enter-from .ttb,.el-drawer-fade-leave-to .ttb{transform:translateY(-100%)}.el-drawer-fade-enter-from .btt,.el-drawer-fade-leave-to .btt{transform:translateY(100%)}.el-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;height:100%;background-color:var(--el-overlay-color-lighter);overflow:auto}.el-overlay .el-overlay-root{height:0}.el-progress{position:relative;line-height:1;display:flex;align-items:center}.el-progress__text{font-size:14px;color:var(--el-text-color-regular);margin-left:5px;min-width:50px;line-height:1}.el-progress__text i{vertical-align:middle;display:block}.el-progress--circle,.el-progress--dashboard{display:inline-block}.el-progress--circle .el-progress__text,.el-progress--dashboard .el-progress__text{position:absolute;top:50%;left:0;width:100%;text-align:center;margin:0;transform:translateY(-50%)}.el-progress--circle .el-progress__text i,.el-progress--dashboard .el-progress__text i{vertical-align:middle;display:inline-block}.el-progress--without-text .el-progress__text{display:none}.el-progress--without-text .el-progress-bar{padding-right:0;margin-right:0;display:block}.el-progress--text-inside .el-progress-bar{padding-right:0;margin-right:0}.el-progress.is-success .el-progress-bar__inner{background-color:var(--el-color-success)}.el-progress.is-success .el-progress__text{color:var(--el-color-success)}.el-progress.is-warning .el-progress-bar__inner{background-color:var(--el-color-warning)}.el-progress.is-warning .el-progress__text{color:var(--el-color-warning)}.el-progress.is-exception .el-progress-bLine truncated
|
||||
+297
@@ -0,0 +1,297 @@
|
||||
import{V as pa,G as $E,u as rn,c as I0,W as Ju,g as WE,e as KE,r as QE,b as nn,d as xr,_ as In,w as ba,X as XE,I as D0,Y as ZE,k as Ta,Z as JE,U as x0,x as jE,$ as eS,n as ju,a0 as tS,a1 as rS,a2 as ed,a3 as ga,h as w0,M as M0,a4 as nS,K as aS,a5 as iS,L as oS,S as sS,f as lS,a6 as cS,a7 as uS,a8 as dS,q as _S,a9 as mS,aa as pS,t as gS}from"./request-7df3eafb.js";import{N as L0,A as Cc,a2 as ES,B as SS,x as fS,a3 as hS,z as bc,a4 as bS,V as Ni,d as yt,o as ye,F as at,b as We,u as j,r as ft,G as Gt,D as Xe,e as _r,J as tr,H as _t,q as nt,l as jr,i as td,c as rt,w as Pe,a as St,f as k0,h as At,n as TS,a5 as vS,Z as CS,p as RS,m as P0,a0 as B0,$ as NS,v as F0,T as U0,a6 as G0,C as la,E as AS,s as rd,a7 as q0,j as nd,a8 as Y0,Q as yS,P as z0,R as ad,S as id,O as OS}from"./index-c6e70cde.js";import{g as IS,E as DS}from"./el-tag-3de5cb5d.js";import{g as va,a as xS,c as wS}from"./_commonjsHelpers-de833af9.js";import{P as Ai}from"./vnode-1ab6d357.js";const MS=(...n)=>e=>{n.forEach(r=>{L0(r)?r(e):r.value=e})},LS=(n,e,r)=>{let o={offsetX:0,offsetY:0};const u=l=>{const d=l.clientX,p=l.clientY,{offsetX:S,offsetY:T}=o,v=n.value.getBoundingClientRect(),R=v.left,O=v.top,w=v.width,L=v.height,I=document.documentElement.clientWidth,G=document.documentElement.clientHeight,k=-R+S,F=-O+T,z=I-R-w+S,U=G-O-L+T,Z=ie=>{const ee=Math.min(Math.max(S+ie.clientX-d,k),z),X=Math.min(Math.max(T+ie.clientY-p,F),U);o={offsetX:ee,offsetY:X},n.value.style.transform=`translate(${pa(ee)}, ${pa(X)})`},W=()=>{document.removeEventListener("mousemove",Z),document.removeEventListener("mouseup",W)};document.addEventListener("mousemove",Z),document.addEventListener("mouseup",W)},c=()=>{e.value&&n.value&&e.value.addEventListener("mousedown",u)},_=()=>{e.value&&n.value&&e.value.removeEventListener("mousedown",u)};Cc(()=>{ES(()=>{r.value?c():_()})}),SS(()=>{_()})},kS=(n,e={})=>{fS(n)||$E("[useLockscreen]","You need to pass a ref param to this function");const r=e.ns||rn("popup"),o=hS(()=>r.bm("parent","hidden"));if(!I0||Ju(document.body,o.value))return;let u=0,c=!1,_="0";const l=()=>{setTimeout(()=>{QE(document==null?void 0:document.body,o.value),c&&document&&(document.body.style.width=_)},200)};bc(n,d=>{if(!d){l();return}c=!Ju(document.body,o.value),c&&(_=document.body.style.width),u=IS(r.namespace.value);const p=document.documentElement.clientHeight<document.body.scrollHeight,S=WE(document.body,"overflowY");u>0&&(p||S==="scroll")&&c&&(document.body.style.width=`calc(100% - ${u}px)`),KE(document.body,o.value)}),bS(()=>l())},H0=n=>{if(!n)return{onClick:Ni,onMousedown:Ni,onMouseup:Ni};let e=!1,r=!1;return{onClick:_=>{e&&r&&n(_),e=r=!1},onMousedown:_=>{e=_.target===_.currentTarget},onMouseup:_=>{r=_.target===_.currentTarget}}},PS=nn({header:{type:String,default:""},bodyStyle:{type:xr([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),BS=yt({name:"ElCard"}),FS=yt({...BS,props:PS,setup(n){const e=rn("card");return(r,o)=>(ye(),at("div",{class:We([j(e).b(),j(e).is(`${r.shadow}-shadow`)])},[r.$slots.header||r.header?(ye(),at("div",{key:0,class:We(j(e).e("header"))},[ft(r.$slots,"header",{},()=>[tr(_t(r.header),1)])],2)):Gt("v-if",!0),Xe("div",{class:We(j(e).e("body")),style:_r(r.bodyStyle)},[ft(r.$slots,"default")],6)],2))}});var US=In(FS,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const GS=ba(US),qS=nn({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:xr([String,Array,Object])},zIndex:{type:xr([String,Number])}}),YS={click:n=>n instanceof MouseEvent},zS="overlay";var HS=yt({name:"ElOverlay",props:qS,emits:YS,setup(n,{slots:e,emit:r}){const o=rn(zS),u=d=>{r("click",d)},{onClick:c,onMousedown:_,onMouseup:l}=H0(n.customMaskEvent?void 0:u);return()=>n.mask?nt("div",{class:[o.b(),n.overlayClass],style:{zIndex:n.zIndex},onClick:c,onMousedown:_,onMouseup:l},[ft(e,"default")],Ai.STYLE|Ai.CLASS|Ai.PROPS,["onClick","onMouseup","onMousedown"]):jr("div",{class:n.overlayClass,style:{zIndex:n.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[ft(e,"default")])}});const V0=HS,$0=Symbol("dialogInjectionKey"),W0=nn({center:Boolean,alignCenter:Boolean,closeIcon:{type:XE},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),VS={close:()=>!0},$S=["aria-label"],WS=["id"],KS=yt({name:"ElDialogContent"}),QS=yt({...KS,props:W0,emits:VS,setup(n){const e=n,{t:r}=D0(),{Close:o}=JE,{dialogRef:u,headerRef:c,bodyId:_,ns:l,style:d}=td($0),{focusTrapRef:p}=td(ZE),S=rt(()=>[l.b(),l.is("fullscreen",e.fullscreen),l.is("draggable",e.draggable),l.is("align-center",e.alignCenter),{[l.m("center")]:e.center},e.customClass]),T=MS(p,u),v=rt(()=>e.draggable);return LS(u,c,v),(R,O)=>(ye(),at("div",{ref:j(T),class:We(j(S)),style:_r(j(d)),tabindex:"-1"},[Xe("header",{ref_key:"headerRef",ref:c,class:We(j(l).e("header"))},[ft(R.$slots,"header",{Line truncated
|
||||
M 50 50
|
||||
m 0 ${F?"":"-"}${k}
|
||||
a ${k} ${k} 0 1 1 0 ${F?"-":""}${k*2}
|
||||
a ${k} ${k} 0 1 1 0 ${F?"":"-"}${k*2}
|
||||
`}),d=rt(()=>2*Math.PI*_.value),p=rt(()=>e.type==="dashboard"?.75:1),S=rt(()=>`${-1*d.value*(1-p.value)/2}px`),T=rt(()=>({strokeDasharray:`${d.value*p.value}px, ${d.value}px`,strokeDashoffset:S.value})),v=rt(()=>({strokeDasharray:`${d.value*p.value*(e.percentage/100)}px, ${d.value}px`,strokeDashoffset:S.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),R=rt(()=>{let k;return e.color?k=G(e.percentage):k=r[e.status]||r.default,k}),O=rt(()=>e.status==="warning"?nS:e.type==="line"?e.status==="success"?aS:iS:e.status==="success"?oS:M0),w=rt(()=>e.type==="line"?12+e.strokeWidth*.4:e.width*.111111+2),L=rt(()=>e.format(e.percentage));function I(k){const F=100/k.length;return k.map((U,Z)=>rd(U)?{color:U,percentage:(Z+1)*F}:U).sort((U,Z)=>U.percentage-Z.percentage)}const G=k=>{var F;const{color:z}=e;if(L0(z))return z(k);if(rd(z))return z;{const U=I(z);for(const Z of U)if(Z.percentage>k)return Z.color;return(F=U[U.length-1])==null?void 0:F.color}};return(k,F)=>(ye(),at("div",{class:We([j(o).b(),j(o).m(k.type),j(o).is(k.status),{[j(o).m("without-text")]:!k.showText,[j(o).m("text-inside")]:k.textInside}]),role:"progressbar","aria-valuenow":k.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[k.type==="line"?(ye(),at("div",{key:0,class:We(j(o).b("bar"))},[Xe("div",{class:We(j(o).be("bar","outer")),style:_r({height:`${k.strokeWidth}px`})},[Xe("div",{class:We([j(o).be("bar","inner"),{[j(o).bem("bar","inner","indeterminate")]:k.indeterminate},{[j(o).bem("bar","inner","striped")]:k.striped},{[j(o).bem("bar","inner","striped-flow")]:k.stripedFlow}]),style:_r(j(u))},[(k.showText||k.$slots.default)&&k.textInside?(ye(),at("div",{key:0,class:We(j(o).be("bar","innerText"))},[ft(k.$slots,"default",{percentage:k.percentage},()=>[Xe("span",null,_t(j(L)),1)])],2)):Gt("v-if",!0)],6)],6)],2)):(ye(),at("div",{key:1,class:We(j(o).b("circle")),style:_r({height:`${k.width}px`,width:`${k.width}px`})},[(ye(),at("svg",gf,[Xe("path",{class:We(j(o).be("circle","track")),d:j(l),stroke:`var(${j(o).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":k.strokeLinecap,"stroke-width":j(c),fill:"none",style:_r(j(T))},null,14,Ef),Xe("path",{class:We(j(o).be("circle","path")),d:j(l),stroke:j(R),fill:"none",opacity:k.percentage?1:0,"stroke-linecap":k.strokeLinecap,"stroke-width":j(c),style:_r(j(v))},null,14,Sf)]))],6)),(k.showText||k.$slots.default)&&!k.textInside?(ye(),at("div",{key:2,class:We(j(o).e("text")),style:_r({fontSize:`${j(w)}px`})},[ft(k.$slots,"default",{percentage:k.percentage},()=>[k.status?(ye(),St(j(Ta),{key:1},{default:Pe(()=>[(ye(),St(k0(j(O))))]),_:1})):(ye(),at("span",ff,_t(j(L)),1))])],6)):Gt("v-if",!0)],10,pf))}});var Tf=In(bf,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const vf=ba(Tf);const Cf=q0("fileData",()=>{const n=nd(JSON.parse(localStorage.getItem("receiveData")||"[]")||[]),e=nd(JSON.parse(localStorage.getItem("shareData")||"[]")||[]);function r(){localStorage.setItem("receiveData",JSON.stringify(n)),localStorage.setItem("shareData",JSON.stringify(e))}function o(l){n.push(l),r()}function u(l){e.push(l),r()}function c(l){n.splice(l,1),r()}function _(l){e.splice(l,1),r()}return{receiveData:n,shareData:e,save:r,addShareData:u,addReceiveData:o,deleteReceiveData:c,deleteShareData:_}}),Z0=q0("fileBox",()=>({showFileBox:At(!1)}));function J0(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(e=>{const r=n[e],o=typeof r;(o==="object"||o==="function")&&!Object.isFrozen(r)&&J0(r)}),n}class od{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function j0(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Rr(n,...e){const r=Object.create(null);for(const o in n)r[o]=n[o];return e.forEach(function(o){for(const u in o)r[u]=o[u]}),r}const Rf="</span>",sd=n=>!!n.scope,Nf=(n,{prefix:e})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const r=n.split(".");return[`${e}${r.shift()}`,...r.map((o,u)=>`${o}${"_".repeat(u+1)}`)].join(" ")}return`${e}${n}`};class Af{constructor(e,r){this.buffer="",this.classPrefix=r.classPrefix,e.walk(this)}addText(e){this.buffer+=j0(e)}openNode(e){if(!sd(e))return;const r=Nf(e.scope,{prefix:this.classPrefix});this.span(r)}closeNode(e){sd(e)&&(this.buffer+=Rf)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const ld=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class Rc{constructor(){this.rootNode=ld(),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 r=ld({scope:e});thiLine truncated
|
||||
https://github.com/highlightjs/highlight.js/issues/2277`),ne=Q,Re=se),be===void 0&&(be=!0);const ze={code:Re,language:ne};ue("before:highlight",ze);const je=ze.result?ze.result:T(ze.language,ze.code,be);return je.code=ze.code,ue("after:highlight",je),je}function T(Q,se,be,Re){const ne=Object.create(null);function ze(oe,me){return oe.keywords[me]}function je(){if(!ge.keywords){Ve.addText(Oe);return}let oe=0;ge.keywordPatternRe.lastIndex=0;let me=ge.keywordPatternRe.exec(Oe),Ce="";for(;me;){Ce+=Oe.substring(oe,me.index);const xe=pt.case_insensitive?me[0].toLowerCase():me[0],et=ze(ge,xe);if(et){const[Ct,Ue]=et;if(Ve.addText(Ce),Ce="",ne[xe]=(ne[xe]||0)+1,ne[xe]<=gh&&(Lt+=Ue),Ct.startsWith("_"))Ce+=me[0];else{const Ge=pt.classNameAliases[Ct]||Ct;Ie(me[0],Ge)}}else Ce+=me[0];oe=ge.keywordPatternRe.lastIndex,me=ge.keywordPatternRe.exec(Oe)}Ce+=Oe.substring(oe),Ve.addText(Ce)}function Ke(){if(Oe==="")return;let oe=null;if(typeof ge.subLanguage=="string"){if(!e[ge.subLanguage]){Ve.addText(Oe);return}oe=T(ge.subLanguage,Oe,!0,zt[ge.subLanguage]),zt[ge.subLanguage]=oe._top}else oe=R(Oe,ge.subLanguage.length?ge.subLanguage:null);ge.relevance>0&&(Lt+=oe.relevance),Ve.__addSublanguage(oe._emitter,oe.language)}function De(){ge.subLanguage!=null?Ke():je(),Oe=""}function Ie(oe,me){oe!==""&&(Ve.startScope(me),Ve.addText(oe),Ve.endScope())}function Fe(oe,me){let Ce=1;const xe=me.length-1;for(;Ce<=xe;){if(!oe._emit[Ce]){Ce++;continue}const et=pt.classNameAliases[oe[Ce]]||oe[Ce],Ct=me[Ce];et?Ie(Ct,et):(Oe=Ct,je(),Oe=""),Ce++}}function we(oe,me){return oe.scope&&typeof oe.scope=="string"&&Ve.openNode(pt.classNameAliases[oe.scope]||oe.scope),oe.beginScope&&(oe.beginScope._wrap?(Ie(Oe,pt.classNameAliases[oe.beginScope._wrap]||oe.beginScope._wrap),Oe=""):oe.beginScope._multi&&(Fe(oe.beginScope,me),Oe="")),ge=Object.create(oe,{parent:{value:ge}}),ge}function He(oe,me,Ce){let xe=xf(oe.endRe,Ce);if(xe){if(oe["on:end"]){const et=new od(oe);oe["on:end"](me,et),et.isMatchIgnored&&(xe=!1)}if(xe){for(;oe.endsParent&&oe.parent;)oe=oe.parent;return oe}}if(oe.endsWithParent)return He(oe.parent,me,Ce)}function it(oe){return ge.matcher.regexIndex===0?(Oe+=oe[0],1):(Qt=!0,0)}function ot(oe){const me=oe[0],Ce=oe.rule,xe=new od(Ce),et=[Ce.__beforeBegin,Ce["on:begin"]];for(const Ct of et)if(Ct&&(Ct(oe,xe),xe.isMatchIgnored))return it(me);return Ce.skip?Oe+=me:(Ce.excludeBegin&&(Oe+=me),De(),!Ce.returnBegin&&!Ce.excludeBegin&&(Oe=me)),we(Ce,oe),Ce.returnBegin?0:me.length}function mt(oe){const me=oe[0],Ce=se.substring(oe.index),xe=He(ge,oe,Ce);if(!xe)return _d;const et=ge;ge.endScope&&ge.endScope._wrap?(De(),Ie(me,ge.endScope._wrap)):ge.endScope&&ge.endScope._multi?(De(),Fe(ge.endScope,oe)):et.skip?Oe+=me:(et.returnEnd||et.excludeEnd||(Oe+=me),De(),et.excludeEnd&&(Oe=me));do ge.scope&&Ve.closeNode(),!ge.skip&&!ge.subLanguage&&(Lt+=ge.relevance),ge=ge.parent;while(ge!==xe.parent);return xe.starts&&we(xe.starts,oe),et.returnEnd?0:me.length}function Tt(){const oe=[];for(let me=ge;me!==pt;me=me.parent)me.scope&&oe.unshift(me.scope);oe.forEach(me=>Ve.openNode(me))}let Yt={};function mr(oe,me){const Ce=me&&me[0];if(Oe+=oe,Ce==null)return De(),0;if(Yt.type==="begin"&&me.type==="end"&&Yt.index===me.index&&Ce===""){if(Oe+=se.slice(me.index,me.index+1),!u){const xe=new Error(`0 width match regex (${Q})`);throw xe.languageName=Q,xe.badRule=Yt.rule,xe}return 1}if(Yt=me,me.type==="begin")return ot(me);if(me.type==="illegal"&&!be){const xe=new Error('Illegal lexeme "'+Ce+'" for mode "'+(ge.scope||"<unnamed>")+'"');throw xe.mode=ge,xe}else if(me.type==="end"){const xe=mt(me);if(xe!==_d)return xe}if(me.type==="illegal"&&Ce==="")return 1;if(Kt>1e5&&Kt>me.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Oe+=Ce,Ce.length}const pt=ie(Q);if(!pt)throw wr(c.replace("{}",Q)),new Error('Unknown language: "'+Q+'"');const or=dh(pt);let Dt="",ge=Re||or;const zt={},Ve=new l.__emitter(l);Tt();let Oe="",Lt=0,vt=0,Kt=0,Qt=!1;try{if(pt.__emitTokens)pt.__emitTokens(se,Ve);else{for(ge.matcher.considerAll();;){Kt++,Qt?Qt=!1:ge.matcher.considerAll(),ge.matcher.lastIndex=vt;const oe=ge.matcher.exec(se);if(!oe)break;const me=se.substring(vt,oe.index),Ce=mr(me,oe);vt=oe.index+Ce}mr(se.substring(vt))}return Ve.finalize(),Dt=Ve.toHTML(),{language:Q,value:Dt,relevance:Lt,illegal:!1,_emitter:Ve,_top:ge}}catch(oe){if(oe.message&&oe.message.includes("Illegal"))return{language:Q,value:yi(se),illegal:!0,relevance:0,_illegalBy:{message:oe.message,index:vt,context:se.slice(vt-100,vt+100),mode:oe.mode,resultSoFar:Dt},_emitter:Ve};if(u)return{language:Q,value:yi(se),illegal:!1,relevance:0,errorRaised:oe,_emitter:Ve,_top:ge};throw oe}}function v(Q){const se={value:yi(Q),illegal:!1,relevance:0,_top:_,_emitter:new l.__emitter(l)};return se._emitter.addText(Q),se}function R(Q,se){se=se||l.languages||Object.keys(e);const be=v(Q),Re=se.filter(ie).filter(X).map(De=>T(De,Q,!1));Re.unshift(be);const ne=Re.sort((De,Ie)=>{if(De.relevance!==Ie.relevance)return Ie.relevLine truncated
|
||||
`},O]}}return ms=u,ms}var ps,J_;function rT(){if(J_)return ps;J_=1;function n(e){const r="[a-zA-Z_][\\w.]*",o="<\\?(lasso(script)?|=)",u="\\]|\\?>",c={$pattern:r+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},_=e.COMMENT("<!--","-->",{relevance:0}),l={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[_]}},d={className:"meta",begin:"\\[/noprocess|"+o},p={className:"symbol",begin:"'"+r+"'"},S=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+r},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:r,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+r,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[p]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:r+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:c,contains:[{className:"meta",begin:u,relevance:0,starts:{end:"\\[|"+o,returnEnd:!0,relevance:0,contains:[_]}},l,d,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:c,contains:[{className:"meta",begin:u,relevance:0,starts:{end:"\\[noprocess\\]|"+o,returnEnd:!0,contains:[_]}},l,d].concat(S)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(S)}}return ps=n,ps}var gs,j_;function nT(){if(j_)return gs;j_=1;function n(e){const o=e.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(X=>X+"(?![a-zA-Z@:_])")),u=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(X=>X+"(?![a-zA-Z:_])").join("|")),c=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],_=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],l={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:o},{endsParent:!0,begin:u},{endsParent:!0,variants:_},{endsParent:!0,relevance:0,variants:c}]},d={className:"params",relevance:0,begin:/#+\d?/},p={variants:_},S={className:"built_in",relevance:0,begin:/[$&^_]/},T={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},v=e.COMMENT("%","$",{relevance:0}),R=[l,d,p,S,T,v],O={begin:/\{/,end:/\}/,relevance:0,contains:["self",...R]},w=e.inherit(Line truncated
|
||||
]`,O={scope:"string",variants:[S,p,T,v]},w={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},L=["false","null","true"],I=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],G=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],F={keyword:I,literal:($=>{const ue=[];return $.forEach(pe=>{ue.push(pe),pe.toLowerCase()===pe?ue.push(pe.toUpperCase()):ue.push(pe.toLowerCase())}),ue})(L),built_in:G},z=$=>$.map(ue=>ue.replace(/\|\d+$/,"")),U={variants:[{match:[/new/,r.concat(R,"+"),r.concat("(?!",z(G).join("\\b|"),"\\b)"),c],scope:{1:"keyword",4:"title.class"}}]},Z=r.concat(u,"\\b(?!\\()"),W={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),Z],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[c,r.concat(/::/,r.lookahead(/(?!class\b)/)),Z],scope:{1:"title.class",3:"variable.constant"}},{match:[c,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[c,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},ie={scope:"attr",match:r.concat(u,r.lookahead(":"),r.lookahead(/(?!::)/))},ee={relevance:0,begin:/\(/,end:/\)/,keywords:F,contains:[ie,_,W,e.C_BLOCK_COMMENT_MODE,O,w,U]},X={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",z(I).join("\\b|"),"|",z(G).join("\\b|"),"\\b)"),u,r.concat(R,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[ee]};ee.contains.push(X);const Se=[ie,W,e.C_BLOCK_COMMENT_MODE,O,w,U],Te={begin:r.concat(/#\[\s*/,c),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:L,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:L,keyword:["new","array"]},contains:["self",...Se]},...Se,{scope:"meta",match:c}]};return{case_insensitive:!1,keywords:F,contains:[Te,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},l,{scope:"variable.language",match:/\$this\b/},_,X,W,{match:[/const/,/\s/,u],scope:{1:"keyword",3:"variable.constant"}},U,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:F,contains:["self",_,W,e.C_BLOCK_COMMENT_MODE,O,w]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trLine truncated
|
||||
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return yl=n,yl}var Ol,_p;function Ev(){if(_p)return Ol;_p=1;function n(e){const r="[a-z][a-zA-Z0-9_]*",o={className:"string",begin:"\\$.{1}"},u={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:r+":",relevance:0},e.C_NUMBER_MODE,u,o,{begin:"\\|[ ]*"+r+"([ ]+"+r+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+r}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,o,e.C_NUMBER_MODE,u]}]}}return Ol=n,Ol}var Il,mp;function Sv(){if(mp)return Il;mp=1;function n(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}return Il=n,Il}var Dl,pp;function fv(){if(pp)return Dl;pp=1;function n(e){const r={className:"variable",begin:/\b_+[a-zA-Z]\w*/},o={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},u={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},c=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],_=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],l=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSitesLine truncated
|
||||
]*?"'`},{begin:`"[^\r
|
||||
"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ ]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return Ml=n,Ml}var Ll,fp;function vv(){if(fp)return Ll;fp=1;function n(e){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return Ll=n,Ll}var kl,hp;function Cv(){if(hp)return kl;hp=1;const n=l=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:l.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:l.NUMBER_RE+"(%|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},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),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"],r=["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"],o=["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"],u=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],c=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clLine truncated
|
||||
(multipart)?`,end:`\\]
|
||||
`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return Pl=n,Pl}var Bl,Tp;function Nv(){if(Tp)return Bl;Tp=1;function n(W){return W?typeof W=="string"?W:W.source:null}function e(W){return r("(?=",W,")")}function r(...W){return W.map(ee=>n(ee)).join("")}function o(W){const ie=W[W.length-1];return typeof ie=="object"&&ie.constructor===Object?(W.splice(W.length-1,1),ie):{}}function u(...W){return"("+(o(W).capture?"":"?:")+W.map(X=>n(X)).join("|")+")"}const c=W=>r(/\b/,W,/\w$/.test(W)?/\b/:/\B/),_=["Protocol","Type"].map(c),l=["init","self"].map(c),d=["Any","Self"],p=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","distributed","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],S=["false","nil","true"],T=["assignment","associativity","higherThan","left","lowerThan","none","right"],v=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],R=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],O=u(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),w=u(O,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),L=r(O,w,"*"),I=u(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),G=u(I,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),k=r(I,G,"*"),F=r(/[A-Z]/,G,"*"),z=["autoclosure",r(/convention\(/,u("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,k,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],U=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function Z(W){const ie={match:/\s+/,relevance:0},ee=W.COMMENT("/\\*","\\*/",{contains:["self"]}),X=[W.C_LINE_COMMENT_MODE,ee],Se={match:[/\./,u(..._,...l)],className:{2:"keyword"}},Te={match:r(/\./,u(...p)),relevance:0},$=p.filter(Ue=>typeof Ue=="string").concat(["_|0"]),ue=p.filter(Ue=>typeof Ue!="string").concat(d).map(c),pe={variants:[{className:"keyword",match:u(...ue,...l)}]},Q={$pattern:u(/\b\w+/,/#\w+/),keyword:$.concat(v),literal:S},se=[Se,Te,pe],be={match:r(/\./,u(...R)),relevance:0},Re={className:"built_in",match:r(/\b/,u(...R),/(?=\()/)},ne=[be,Re],ze={match:/->/,relevance:0},je={className:"operator",relevance:0,variants:[{match:L},{match:`\\.(\\.|${w})+`}]},Ke=[ze,je],De="([0-9]_*)+",Ie="([0-9a-fA-F]_*)+",Fe={clLine truncated
|
||||
`,A7="∄",y7="∄",O7="𝔑",I7="𝔫",D7="≧̸",x7="≱",w7="≱",M7="≧̸",L7="⩾̸",k7="⩾̸",P7="⋙̸",B7="≵",F7="≫⃒",U7="≯",G7="≯",q7="≫̸",Y7="↮",z7="⇎",H7="⫲",V7="∋",$7="⋼",W7="⋺",K7="∋",Q7="Њ",X7="њ",Z7="↚",J7="⇍",j7="‥",e8="≦̸",t8="≰",r8="↚",n8="⇍",a8="↮",i8="⇎",o8="≰",s8="≦̸",l8="⩽̸",c8="⩽̸",u8="≮",d8="⋘̸",_8="≴",m8="≪⃒",p8="≮",g8="⋪",E8="⋬",S8="≪̸",f8="∤",h8="",b8=" ",T8="𝕟",v8="ℕ",C8="⫬",R8="¬",N8="≢",A8="≭",y8="∦",O8="∉",I8="≠",D8="≂̸",x8="∄",w8="≯",M8="≱",L8="≧̸",k8="≫̸",P8="≹",B8="⩾̸",F8="≵",U8="≎̸",G8="≏̸",q8="∉",Y8="⋵̸",z8="⋹̸",H8="∉",V8="⋷",$8="⋶",W8="⧏̸",K8="⋪",Q8="⋬",X8="≮",Z8="≰",J8="≸",j8="≪̸",eB="⩽̸",tB="≴",rB="⪢̸",nB="⪡̸",aB="∌",iB="∌",oB="⋾",sB="⋽",lB="⊀",cB="⪯̸",uB="⋠",dB="∌",_B="⧐̸",mB="⋫",pB="⋭",gB="⊏̸",EB="⋢",SB="⊐̸",fB="⋣",hB="⊂⃒",bB="⊈",TB="⊁",vB="⪰̸",CB="⋡",RB="≿̸",NB="⊃⃒",AB="⊉",yB="≁",OB="≄",IB="≇",DB="≉",xB="∤",wB="∦",MB="∦",LB="⫽⃥",kB="∂̸",PB="⨔",BB="⊀",FB="⋠",UB="⊀",GB="⪯̸",qB="⪯̸",YB="⤳̸",zB="↛",HB="⇏",VB="↝̸",$B="↛",WB="⇏",KB="⋫",QB="⋭",XB="⊁",ZB="⋡",JB="⪰̸",jB="𝒩",eF="𝓃",tF="∤",rF="∦",nF="≁",aF="≄",iF="≄",oF="∤",sF="∦",lF="⋢",cF="⋣",uF="⊄",dF="⫅̸",_F="⊈",mF="⊂⃒",pF="⊈",gF="⫅̸",EF="⊁",SF="⪰̸",fF="⊅",hF="⫆̸",bF="⊉",TF="⊃⃒",vF="⊉",CF="⫆̸",RF="≹",NF="Ñ",AF="ñ",yF="≸",OF="⋪",IF="⋬",DF="⋫",xF="⋭",wF="Ν",MF="ν",LF="#",kF="№",PF=" ",BF="≍⃒",FF="⊬",UF="⊭",GF="⊮",qF="⊯",YF="≥⃒",zF=">⃒",HF="⤄",VF="⧞",$F="⤂",WF="≤⃒",KF="<⃒",QF="⊴⃒",XF="⤃",ZF="⊵⃒",JF="∼⃒",jF="⤣",e9="↖",t9="⇖",r9="↖",n9="⤧",a9="Ó",i9="ó",o9="⊛",s9="Ô",l9="ô",c9="⊚",u9="О",d9="о",_9="⊝",m9="Ő",p9="ő",g9="⨸",E9="⊙",S9="⦼",f9="Œ",h9="œ",b9="⦿",T9="𝔒",v9="𝔬",C9="˛",R9="Ò",N9="ò",A9="⧁",y9="⦵",O9="Ω",I9="∮",D9="↺",x9="⦾",w9="⦻",M9="‾",L9="⧀",k9="Ō",P9="ō",B9="Ω",F9="ω",U9="Ο",G9="ο",q9="⦶",Y9="⊖",z9="𝕆",H9="𝕠",V9="⦷",$9="“",W9="‘",K9="⦹",Q9="⊕",X9="↻",Z9="⩔",J9="∨",j9="⩝",eU="ℴ",tU="ℴ",rU="ª",nU="º",aU="⊶",iU="⩖",oU="⩗",sU="⩛",lU="Ⓢ",cU="𝒪",uU="ℴ",dU="Ø",_U="ø",mU="⊘",pU="Õ",gU="õ",EU="⨶",SU="⨷",fU="⊗",hU="Ö",bU="ö",TU="⌽",vU="‾",CU="⏞",RU="⎴",NU="⏜",AU="¶",yU="∥",OU="∥",IU="⫳",DU="⫽",xU="∂",wU="∂",MU="П",LU="п",kU="%",PU=".",BU="‰",FU="⊥",UU="‱",GU="𝔓",qU="𝔭",YU="Φ",zU="φ",HU="ϕ",VU="ℳ",$U="☎",WU="Π",KU="π",QU="⋔",XU="ϖ",ZU="ℏ",JU="ℎ",jU="ℏ",eG="⨣",tG="⊞",rG="⨢",nG="+",aG="∔",iG="⨥",oG="⩲",sG="±",lG="±",cG="⨦",uG="⨧",dG="±",_G="ℌ",mG="⨕",pG="𝕡",gG="ℙ",EG="£",SG="⪷",fG="⪻",hG="≺",bG="≼",TG="⪷",vG="≺",CG="≼",RG="≺",NG="⪯",AG="≼",yG="≾",OG="⪯",IG="⪹",DG="⪵",xG="⋨",wG="⪯",MG="⪳",LG="≾",kG="′",PG="″",BG="ℙ",FG="⪹",UG="⪵",GG="⋨",qG="∏",YG="∏",zG="⌮",HG="⌒",VG="⌓",$G="∝",WG="∝",KG="∷",QG="∝",XG="≾",ZG="⊰",JG="𝒫",jG="𝓅",eq="Ψ",tq="ψ",rq=" ",nq="𝔔",aq="𝔮",iq="⨌",oq="𝕢",sq="ℚ",lq="⁗",cq="𝒬",uq="𝓆",dq="ℍ",_q="⨖",mq="?",pq="≟",gq='"',Eq='"',Sq="⇛",fq="∽̱",hq="Ŕ",bq="ŕ",Tq="√",vq="⦳",Cq="⟩",Rq="⟫",Nq="⦒",Aq="⦥",yq="⟩",Oq="»",Iq="⥵",Dq="⇥",xq="⤠",wq="⤳",Mq="→",Lq="↠",kq="⇒",Pq="⤞",Bq="↪",Fq="↬",Uq="⥅",Gq="⥴",qq="⤖",Yq="↣",zq="↝",Hq="⤚",Vq="⤜",$q="∶",Wq="ℚ",Kq="⤍",Qq="⤏",Xq="⤐",Zq="❳",Jq="}",jq="]",eY="⦌",tY="⦎",rY="⦐",nY="Ř",aY="ř",iY="Ŗ",oY="ŗ",sY="⌉",lY="}",cY="Р",uY="р",dY="⤷",_Y="⥩",mY="”",pY="”",gY="↳",EY="ℜ",SY="ℛ",fY="ℜ",hY="ℝ",bY="ℜ",TY="▭",vY="®",CY="®",RY="∋",NY="⇋",AY="⥯",yY="⥽",OY="⌋",IY="𝔯",DY="ℜ",xY="⥤",wY="⇁",MY="⇀",LY="⥬",kY="Ρ",PY="ρ",BY="ϱ",FY="⟩",UY="⇥",GY="→",qY="→",YY="⇒",zY="⇄",HY="↣",VY="⌉",$Y="⟧",WY="⥝",KY="⥕",QY="⇂",XY="⌋",ZY="⇁",JY="⇀",jY="⇄",ez="⇌",tz="⇉",rz="↝",nz="↦",az="⊢",iz="⥛",oz="⋌",sz="⧐",lz="⊳",cz="⊵",uz="⥏",dz="⥜",_z="⥔",mz="↾",pz="⥓",gz="⇀",Ez="˚",Sz="≓",fz="⇄",hz="⇌",bz="",Tz="⎱",vz="⎱",Cz="⫮",Rz="⟭",Nz="⇾",Az="⟧",yz="⦆",Oz="𝕣",Iz="ℝ",Dz="⨮",xz="⨵",wz="⥰",Mz=")",Lz="⦔",kz="⨒",Pz="⇉",Bz="⇛",Fz="›",Uz="𝓇",Gz="ℛ",qz="↱",Yz="↱",zz="]",Hz="’",Vz="’",$z="⋌",Wz="⋊",Kz="▹",Qz="⊵",Xz="▸",Zz="⧎",Jz="⧴",jz="⥨",eH="℞",tH="Ś",rH="ś",nH="‚",aH="⪸",iH="Š",oH="š",sH="⪼",lH="≻",cH="≽",uH="⪰",dH="⪴",_H="Ş",mH="ş",pH="Ŝ",gH="ŝ",EH="⪺",SH="⪶",fH="⋩",hH="⨓",bH="≿",TH="С",vH="с",CH="⊡",RH="⋅",NH="⩦",AH="⤥",yH="↘",OH="⇘",IH="↘",DH="§",xH=";",wH="⤩",MH="∖",LH="∖",kH="✶",Line truncated
|
||||
`," "],Nj=["{","}","|","\\","^","`"].concat(Rj),Aj=["'"].concat(Nj),$p=["%","/","?",";","#"].concat(Aj),Wp=["/","?","#"],yj=255,Kp=/^[+a-z0-9A-Z_-]{0,63}$/,Oj=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Qp={javascript:!0,"javascript:":!0},Xp={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Ij(n,e){if(n&&n instanceof Sa)return n;var r=new Sa;return r.parse(n,e),r}Sa.prototype.parse=function(n,e){var r,o,u,c,_,l=n;if(l=l.trim(),!e&&n.split("#").length===1){var d=Cj.exec(l);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}var p=Tj.exec(l);if(p&&(p=p[0],u=p.toLowerCase(),this.protocol=p,l=l.substr(p.length)),(e||p||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(_=l.substr(0,2)==="//",_&&!(p&&Qp[p])&&(l=l.substr(2),this.slashes=!0)),!Qp[p]&&(_||p&&!Xp[p])){var S=-1;for(r=0;r<Wp.length;r++)c=l.indexOf(Wp[r]),c!==-1&&(S===-1||c<S)&&(S=c);var T,v;for(S===-1?v=l.lastIndexOf("@"):v=l.lastIndexOf("@",S),v!==-1&&(T=l.slice(0,v),l=l.slice(v+1),this.auth=T),S=-1,r=0;r<$p.length;r++)c=l.indexOf($p[r]),c!==-1&&(S===-1||c<S)&&(S=c);S===-1&&(S=l.length),l[S-1]===":"&&S--;var R=l.slice(0,S);l=l.slice(S),this.parseHost(R),this.hostname=this.hostname||"";var O=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!O){var w=this.hostname.split(/\./);for(r=0,o=w.length;r<o;r++){var L=w[r];if(L&&!L.match(Kp)){for(var I="",G=0,k=L.length;G<k;G++)L.charCodeAt(G)>127?I+="x":I+=L[G];if(!I.match(Kp)){var F=w.slice(0,r),z=w.slice(r+1),U=L.match(Oj);U&&(F.push(U[1]),z.unshift(U[2])),z.length&&(l=z.join(".")+l),this.hostname=F.join(".");break}}}}this.hostname.length>yj&&(this.hostname=""),O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var Z=l.indexOf("#");Z!==-1&&(this.hash=l.substr(Z),l=l.slice(0,Z));var W=l.indexOf("?");return W!==-1&&(this.search=l.substr(W),l=l.slice(0,W)),l&&(this.pathname=l),Xp[u]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Sa.prototype.parseHost=function(n){var e=vj.exec(n);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),n=n.substr(0,n.length-e.length)),n&&(this.hostname=n)};var Dj=Ij;an.encode=Sj;an.decode=hj;an.format=bj;an.parse=Dj;var Ir={},ic,Zp;function _g(){return Zp||(Zp=1,ic=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),ic}var oc,Jp;function mg(){return Jp||(Jp=1,oc=/[\0-\x1F\x7F-\x9F]/),oc}var sc,jp;function xj(){return jp||(jp=1,sc=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),sc}var lc,e0;function pg(){return e0||(e0=1,lc=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),lc}var t0;function wj(){return t0||(t0=1,Ir.Any=_g(),Ir.Cc=mg(),Ir.Cf=xj(),Ir.P=Oc,Ir.Z=pg()),Ir}(function(n){function e($){return Object.prototype.toString.call($)}function r($){return e($)==="[object String]"}var o=Object.prototype.hasOwnProperty;function u($,ue){return o.call($,ue)}function c($){var ue=Array.prototype.slice.call(arguments,1);return ue.forEach(function(pe){if(pe){if(typeof pe!="object")throw new TypeError(pe+"must be object");Object.keys(pe).forEach(function(Q){$[Q]=pe[Q]})}}),$}function _($,ue,pe){return[].concat($.slice(0,ue),pe,$.slice(ue+1))}function l($){return!($>=55296&&$<=57343||$>=64976&&$<=65007||($&65535)===65535||($&65535)===65534||$>=0&&$<=8||$===11||$>=14&&$<=31||$>=127&&$<=159||$>1114111)}function d($){if($>65535){$-=65536;var ue=55296+($>>10),pe=56320+($&1023);return String.fromCharCode(ue,pe)}return String.fromCharCode($)}var p=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,S=/&([a-z#][a-z0-9]{1,31});/gi,T=new RegExp(p.source+"|"+S.source,"gi"),v=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,R=dg;function O($,ue){var pe=0;return u(R,ue)?R[ue]:ue.charCodeAt(0)===35&&v.test(ue)&&(pe=ue[1].toLowerCase()==="x"?parseInt(ue.slice(2),16):parseInt(ue.slice(1),10),l(pe))?d(pe):$}function w($){return $.indexOf("\\")<0?$:$.replace(p,"$1")}function L($){return $.indexOf("\\")<0&&$.indexOf("&")<0?$:$.replace(T,function(ue,pe,Q){return pe||O(ue,Q)})}var I=/[&<>"]/,G=/[&<>"]/g,k={"&":"&","<":"<",">":">",'"':"""};function F($){return k[$]}function z($){return I.test($)?$.replace(G,F):$}var U=/[.?*+^$[\]\\(){}|-]/g;function Z($){return $.replace(U,"\\$&")}function W($){switch($){case 9:case 32:return!0}return!1}function ie($){if($>=8192&&$<=8202)return!0;switch($){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var ee=Oc;function X($){return ee.test($)}function Se($){switch($){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Te($){return $=$.trim().reLine truncated
|
||||
`};ar.fence=function(n,e,r,o,u){var c=n[e],_=c.info?Fj(c.info).trim():"",l="",d="",p,S,T,v,R;return _&&(T=_.split(/(\s+)/g),l=T[0],d=T.slice(2).join("")),r.highlight?p=r.highlight(c.content,l,d)||Mr(c.content):p=Mr(c.content),p.indexOf("<pre")===0?p+`
|
||||
`:_?(S=c.attrIndex("class"),v=c.attrs?c.attrs.slice():[],S<0?v.push(["class",r.langPrefix+l]):(v[S]=v[S].slice(),v[S][1]+=" "+r.langPrefix+l),R={attrs:v},"<pre><code"+u.renderAttrs(R)+">"+p+`</code></pre>
|
||||
`):"<pre><code"+u.renderAttrs(c)+">"+p+`</code></pre>
|
||||
`};ar.image=function(n,e,r,o,u){var c=n[e];return c.attrs[c.attrIndex("alt")][1]=u.renderInlineAsText(c.children,r,o),u.renderToken(n,e,r)};ar.hardbreak=function(n,e,r){return r.xhtmlOut?`<br />
|
||||
`:`<br>
|
||||
`};ar.softbreak=function(n,e,r){return r.breaks?r.xhtmlOut?`<br />
|
||||
`:`<br>
|
||||
`:`
|
||||
`};ar.text=function(n,e){return Mr(n[e].content)};ar.html_block=function(n,e){return n[e].content};ar.html_inline=function(n,e){return n[e].content};function on(){this.rules=Bj({},ar)}on.prototype.renderAttrs=function(e){var r,o,u;if(!e.attrs)return"";for(u="",r=0,o=e.attrs.length;r<o;r++)u+=" "+Mr(e.attrs[r][0])+'="'+Mr(e.attrs[r][1])+'"';return u};on.prototype.renderToken=function(e,r,o){var u,c="",_=!1,l=e[r];return l.hidden?"":(l.block&&l.nesting!==-1&&r&&e[r-1].hidden&&(c+=`
|
||||
`),c+=(l.nesting===-1?"</":"<")+l.tag,c+=this.renderAttrs(l),l.nesting===0&&o.xhtmlOut&&(c+=" /"),l.block&&(_=!0,l.nesting===1&&r+1<e.length&&(u=e[r+1],(u.type==="inline"||u.hidden||u.nesting===-1&&u.tag===l.tag)&&(_=!1))),c+=_?`>
|
||||
`:">",c)};on.prototype.renderInline=function(n,e,r){for(var o,u="",c=this.rules,_=0,l=n.length;_<l;_++)o=n[_].type,typeof c[o]<"u"?u+=c[o](n,_,e,r,this):u+=this.renderToken(n,_,e);return u};on.prototype.renderInlineAsText=function(n,e,r){for(var o="",u=0,c=n.length;u<c;u++)n[u].type==="text"?o+=n[u].content:n[u].type==="image"?o+=this.renderInlineAsText(n[u].children,e,r):n[u].type==="softbreak"&&(o+=`
|
||||
`);return o};on.prototype.render=function(n,e,r){var o,u,c,_="",l=this.rules;for(o=0,u=n.length;o<u;o++)c=n[o].type,c==="inline"?_+=this.renderInline(n[o].children,e,r):typeof l[c]<"u"?_+=l[n[o].type](n,o,e,r,this):_+=this.renderToken(n,o,e,r);return _};var Uj=on;function Wt(){this.__rules__=[],this.__cache__=null}Wt.prototype.__find__=function(n){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===n)return e;return-1};Wt.prototype.__compile__=function(){var n=this,e=[""];n.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(o){e.indexOf(o)<0&&e.push(o)})}),n.__cache__={},e.forEach(function(r){n.__cache__[r]=[],n.__rules__.forEach(function(o){o.enabled&&(r&&o.alt.indexOf(r)<0||n.__cache__[r].push(o.fn))})})};Wt.prototype.at=function(n,e,r){var o=this.__find__(n),u=r||{};if(o===-1)throw new Error("Parser rule not found: "+n);this.__rules__[o].fn=e,this.__rules__[o].alt=u.alt||[],this.__cache__=null};Wt.prototype.before=function(n,e,r,o){var u=this.__find__(n),c=o||{};if(u===-1)throw new Error("Parser rule not found: "+n);this.__rules__.splice(u,0,{name:e,enabled:!0,fn:r,alt:c.alt||[]}),this.__cache__=null};Wt.prototype.after=function(n,e,r,o){var u=this.__find__(n),c=o||{};if(u===-1)throw new Error("Parser rule not found: "+n);this.__rules__.splice(u+1,0,{name:e,enabled:!0,fn:r,alt:c.alt||[]}),this.__cache__=null};Wt.prototype.push=function(n,e,r){var o=r||{};this.__rules__.push({name:n,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null};Wt.prototype.enable=function(n,e){Array.isArray(n)||(n=[n]);var r=[];return n.forEach(function(o){var u=this.__find__(o);if(u<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[u].enabled=!0,r.push(o)},this),this.__cache__=null,r};Wt.prototype.enableOnly=function(n,e){Array.isArray(n)||(n=[n]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(n,e)};Wt.prototype.disable=function(n,e){Array.isArray(n)||(n=[n]);var r=[];return n.forEach(function(o){var u=this.__find__(o);if(u<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[u].enabled=!1,r.push(o)},this),this.__cache__=null,r};Wt.prototype.getRules=function(n){return this.__cache__===null&&this.__compile__(),this.__cache__[n]||[]};var Ic=Wt,Gj=/\r\n?|\n/g,qj=/\0/g,Yj=function(e){var r;r=e.src.replace(Gj,`
|
||||
`),r=r.replace(qj,"�"),e.src=r},zj=function(e){var r;e.inlineMode?(r=new e.Token("inline","",0),r.content=e.src,r.map=[0,1],r.children=[],e.tokens.push(r)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},Hj=function(e){var r=e.tokens,o,u,c;for(u=0,c=r.length;u<c;u++)o=r[u],o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)},Vj=Be.arrayReplaceAt;function $j(n){return/^<a[>\s]/i.test(n)}function Wj(n){return/^<\/a\s*>/i.test(n)}var Kj=function(e){var r,o,u,c,_,l,d,p,S,T,v,R,O,w,L,I,G=e.tokens,k;if(e.md.options.linkify){for(o=0,u=G.length;o<u;o++)if(!(G[o].type!=="inline"||!e.md.linkify.pretest(G[o].content)))for(c=G[o].children,O=0,r=c.length-1;r>=0;r--){if(l=c[r],l.type==="link_close"){for(r--;c[r].level!==l.level&&c[r].type!=="link_open";)r--;continue}if(l.type==="html_inline"&&($j(l.content)&&O>0&&O--,Wj(l.content)&&O++),!(O>0)&&l.type==="text"&&e.md.linkify.test(l.content)){for(S=l.content,k=e.md.linkify.match(S),d=[],R=l.level,v=0,k.length>0&&k[0].index===0&&r>0&&c[r-1].type==="text_special"&&(k=k.slice(1)),p=0;p<k.length;p++)w=k[p].url,L=e.md.normalizeLink(w),e.md.validateLink(L)&&(I=k[p].text,k[p].schema?k[p].schema==="mailto:"&&!/^mailto:/i.test(I)?I=e.md.normalizeLinkText("mailto:"+I).replace(/^mailto:/,""):I=e.md.normalizeLinkText(I):I=e.md.normalizeLinkText("http://"+I).replace(/^http:\/\//,""),T=k[p].index,T>v&&(_=new e.Token("text","",0),_.content=S.slice(v,T),_.level=R,d.push(_)),_=new e.Token("link_open","a",1),_.attrs=[["href",L]],_.level=R++,_.markup="linkify",_.info="auto",d.push(_),_=new e.Token("text","",0),_.content=I,_.level=R,d.push(_),_=new e.Token("link_close","a",-1),_.level=--R,_.markup="linkify",_.info="auto",d.push(_),v=k[p].lastIndex);v<S.length&&(_=new e.Token("text","",0),_.content=S.slice(v),_.level=R,d.push(_)),G[o].children=c=Vj(c,r,d)}}}},gg=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Qj=/\((c|tm|r)\)/i,Xj=/\((c|tm|r)\)/ig,Zj={c:"©",r:"®",tm:"™"};function Jj(n,e){return Zj[e.toLowerCase()]}function jj(n){var e,r,o=0;for(e=n.length-1;e>=0;e--)r=n[e],r.type==="text"&&!o&&(r.content=r.content.replace(Xj,Jj)),r.type==="link_open"&&r.info==="auto"&&o--,r.type==="link_close"&&r.info==="auto"&&o++}function eee(n){var e,r,o=0;for(e=n.length-1;e>=0;e--)r=n[e],r.type==="text"&&!o&&gg.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&o--,r.type==="link_close"&&r.info==="auto"&&o++}var tee=function(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)e.tokens[r].type==="inline"&&(Qj.test(e.tokens[r].content)&&jj(e.tokens[r].children),gg.test(e.tokens[r].content)&&eee(e.tokens[r].children))},n0=Be.isWhiteSpace,a0=Be.isPunctChar,i0=Be.isMdAsciiPunct,ree=/['"]/,o0=/['"]/g,s0="’";function ua(n,e,r){return n.slice(0,e)+r+n.slice(e+1)}function nee(n,e){var r,o,u,c,_,l,d,p,S,T,v,R,O,w,L,I,G,k,F,z,U;for(F=[],r=0;r<n.length;r++){for(o=n[r],d=n[r].level,G=F.length-1;G>=0&&!(F[G].level<=d);G--);if(F.length=G+1,o.type==="text"){u=o.content,_=0,l=u.length;e:for(;_<l&&(o0.lastIndex=_,c=o0.exec(u),!!c);){if(L=I=!0,_=c.index+1,k=c[0]==="'",S=32,c.index-1>=0)S=u.charCodeAt(c.index-1);else for(G=r-1;G>=0&&!(n[G].type==="softbreak"||n[G].type==="hardbreak");G--)if(n[G].content){S=n[G].content.charCodeAt(n[G].content.length-1);break}if(T=32,_<l)T=u.charCodeAt(_);else for(G=r+1;G<n.length&&!(n[G].type==="softbreak"||n[G].type==="hardbreak");G++)if(n[G].content){T=n[G].content.charCodeAt(0);break}if(v=i0(S)||a0(String.fromCharCode(S)),R=i0(T)||a0(String.fromCharCode(T)),O=n0(S),w=n0(T),w?L=!1:R&&(O||v||(L=!1)),O?I=!1:v&&(w||R||(I=!1)),T===34&&c[0]==='"'&&S>=48&&S<=57&&(I=L=!1),L&&I&&(L=v,I=R),!L&&!I){k&&(o.content=ua(o.content,c.index,s0));continue}if(I){for(G=F.length-1;G>=0&&(p=F[G],!(F[G].level<d));G--)if(p.single===k&&F[G].level===d){p=F[G],k?(z=e.md.options.quotes[2],U=e.md.options.quotes[3]):(z=e.md.options.quotes[0],U=e.md.options.quotes[1]),o.content=ua(o.content,c.index,U),n[p.token].content=ua(n[p.token].content,p.pos,z),_+=U.length-1,p.token===r&&(_+=z.length-1),u=o.content,l=u.length,F.length=G;continue e}}L?F.push({token:r,pos:c.index,single:k,level:d}):I&&k&&(o.content=ua(o.content,c.index,s0))}}}}var aee=function(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)e.tokens[r].type!=="inline"||!ree.test(e.tokens[r].content)||nee(e.tokens[r].children,e)},iee=function(e){var r,o,u,c,_,l,d=e.tokens;for(r=0,o=d.length;r<o;r++)if(d[r].type==="inline"){for(u=d[r].children,_=u.length,c=0;c<_;c++)u[c].type==="text_special"&&(u[c].type="text");for(c=l=0;c<_;c++)u[c].type==="text"&&c+1<_&&u[c+1].type==="text"?u[c+1].content=u[c].content+u[c+1].content:(c!==l&&(u[l]=u[c]),l++);c!==l&&(u.length=l)}};function sn(n,e,r){this.type=n,this.tag=e,this.attrs=null,this.map=null,this.nestiLine truncated
|
||||
`,_.map=[r,e.line],!0},_ee=function(e,r,o,u){var c,_,l,d,p,S,T,v=!1,R=e.bMarks[r]+e.tShift[r],O=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||R+3>O||(c=e.src.charCodeAt(R),c!==126&&c!==96)||(p=R,R=e.skipChars(R,c),_=R-p,_<3)||(T=e.src.slice(p,R),l=e.src.slice(R,O),c===96&&l.indexOf(String.fromCharCode(c))>=0))return!1;if(u)return!0;for(d=r;d++,!(d>=o||(R=p=e.bMarks[d]+e.tShift[d],O=e.eMarks[d],R<O&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(R)===c&&!(e.sCount[d]-e.blkIndent>=4)&&(R=e.skipChars(R,c),!(R-p<_)&&(R=e.skipSpaces(R),!(R<O)))){v=!0;break}return _=e.sCount[r],e.line=d+(v?1:0),S=e.push("fence","code",0),S.info=l,S.content=e.getLines(r+1,d,_,!0),S.markup=T,S.map=[r,e.line],!0},c0=Be.isSpace,mee=function(e,r,o,u){var c,_,l,d,p,S,T,v,R,O,w,L,I,G,k,F,z,U,Z,W,ie=e.lineMax,ee=e.bMarks[r]+e.tShift[r],X=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||e.src.charCodeAt(ee++)!==62)return!1;if(u)return!0;for(d=R=e.sCount[r]+1,e.src.charCodeAt(ee)===32?(ee++,d++,R++,c=!1,F=!0):e.src.charCodeAt(ee)===9?(F=!0,(e.bsCount[r]+R)%4===3?(ee++,d++,R++,c=!1):c=!0):F=!1,O=[e.bMarks[r]],e.bMarks[r]=ee;ee<X&&(_=e.src.charCodeAt(ee),c0(_));){_===9?R+=4-(R+e.bsCount[r]+(c?1:0))%4:R++;ee++}for(w=[e.bsCount[r]],e.bsCount[r]=e.sCount[r]+1+(F?1:0),S=ee>=X,G=[e.sCount[r]],e.sCount[r]=R-d,k=[e.tShift[r]],e.tShift[r]=ee-e.bMarks[r],U=e.md.block.ruler.getRules("blockquote"),I=e.parentType,e.parentType="blockquote",v=r+1;v<o&&(W=e.sCount[v]<e.blkIndent,ee=e.bMarks[v]+e.tShift[v],X=e.eMarks[v],!(ee>=X));v++){if(e.src.charCodeAt(ee++)===62&&!W){for(d=R=e.sCount[v]+1,e.src.charCodeAt(ee)===32?(ee++,d++,R++,c=!1,F=!0):e.src.charCodeAt(ee)===9?(F=!0,(e.bsCount[v]+R)%4===3?(ee++,d++,R++,c=!1):c=!0):F=!1,O.push(e.bMarks[v]),e.bMarks[v]=ee;ee<X&&(_=e.src.charCodeAt(ee),c0(_));){_===9?R+=4-(R+e.bsCount[v]+(c?1:0))%4:R++;ee++}S=ee>=X,w.push(e.bsCount[v]),e.bsCount[v]=e.sCount[v]+1+(F?1:0),G.push(e.sCount[v]),e.sCount[v]=R-d,k.push(e.tShift[v]),e.tShift[v]=ee-e.bMarks[v];continue}if(S)break;for(z=!1,l=0,p=U.length;l<p;l++)if(U[l](e,v,o,!0)){z=!0;break}if(z){e.lineMax=v,e.blkIndent!==0&&(O.push(e.bMarks[v]),w.push(e.bsCount[v]),k.push(e.tShift[v]),G.push(e.sCount[v]),e.sCount[v]-=e.blkIndent);break}O.push(e.bMarks[v]),w.push(e.bsCount[v]),k.push(e.tShift[v]),G.push(e.sCount[v]),e.sCount[v]=-1}for(L=e.blkIndent,e.blkIndent=0,Z=e.push("blockquote_open","blockquote",1),Z.markup=">",Z.map=T=[r,0],e.md.block.tokenize(e,r,v),Z=e.push("blockquote_close","blockquote",-1),Z.markup=">",e.lineMax=ie,e.parentType=I,T[1]=e.line,l=0;l<k.length;l++)e.bMarks[l+r]=O[l],e.tShift[l+r]=k[l],e.sCount[l+r]=G[l],e.bsCount[l+r]=w[l];return e.blkIndent=L,!0},pee=Be.isSpace,gee=function(e,r,o,u){var c,_,l,d,p=e.bMarks[r]+e.tShift[r],S=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||(c=e.src.charCodeAt(p++),c!==42&&c!==45&&c!==95))return!1;for(_=1;p<S;){if(l=e.src.charCodeAt(p++),l!==c&&!pee(l))return!1;l===c&&_++}return _<3?!1:(u||(e.line=r+1,d=e.push("hr","hr",0),d.map=[r,e.line],d.markup=Array(_+1).join(String.fromCharCode(c))),!0)},Sg=Be.isSpace;function u0(n,e){var r,o,u,c;return o=n.bMarks[e]+n.tShift[e],u=n.eMarks[e],r=n.src.charCodeAt(o++),r!==42&&r!==45&&r!==43||o<u&&(c=n.src.charCodeAt(o),!Sg(c))?-1:o}function d0(n,e){var r,o=n.bMarks[e]+n.tShift[e],u=o,c=n.eMarks[e];if(u+1>=c||(r=n.src.charCodeAt(u++),r<48||r>57))return-1;for(;;){if(u>=c)return-1;if(r=n.src.charCodeAt(u++),r>=48&&r<=57){if(u-o>=10)return-1;continue}if(r===41||r===46)break;return-1}return u<c&&(r=n.src.charCodeAt(u),!Sg(r))?-1:u}function Eee(n,e){var r,o,u=n.level+2;for(r=e+2,o=n.tokens.length-2;r<o;r++)n.tokens[r].level===u&&n.tokens[r].type==="paragraph_open"&&(n.tokens[r+2].hidden=!0,n.tokens[r].hidden=!0,r+=2)}var See=function(e,r,o,u){var c,_,l,d,p,S,T,v,R,O,w,L,I,G,k,F,z,U,Z,W,ie,ee,X,Se,Te,$,ue,pe,Q=!1,se=!0;if(e.sCount[r]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[r]-e.listIndent>=4&&e.sCount[r]<e.blkIndent)return!1;if(u&&e.parentType==="paragraph"&&e.sCount[r]>=e.blkIndent&&(Q=!0),(X=d0(e,r))>=0){if(T=!0,Te=e.bMarks[r]+e.tShift[r],I=Number(e.src.slice(Te,X-1)),Q&&I!==1)return!1}else if((X=u0(e,r))>=0)T=!1;else return!1;if(Q&&e.skipSpaces(X)>=e.eMarks[r])return!1;if(L=e.src.charCodeAt(X-1),u)return!0;for(w=e.tokens.length,T?(pe=e.push("ordered_list_open","ol",1),I!==1&&(pe.attrs=[["start",I]])):pe=e.push("bullet_list_open","ul",1),pe.map=O=[r,0],pe.markup=String.fromCharCode(L),k=r,Se=!1,ue=e.md.block.ruler.getRules("list"),U=e.parentType,e.parentType="list";k<o;){for(ee=X,G=e.eMarks[k],S=F=e.sCount[k]+X-(e.bMarks[r]+e.tShift[r]);ee<G;){if(c=e.src.charCodeAt(ee),c===9)F+=4-(F+e.bsCount[k])%4;else if(c===32)F++;else break;ee++}if(_=ee,_>=G?p=1:p=F-S,p>4&&(p=1),d=S+p,pe=e.push("list_item_open","li",1),pe.markup=String.fromCharCode(L),pe.map=v=[r,0],T&&(pe.info=e.src.slice(Te,X-1)),ie=e.tight,W=e.tShift[r],Z=e.sCount[r],z=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=d,e.tight=!0,e.tShift[r]=_-e.bMarks[r],e.sCount[r]=F,_>=G&&e.isEmpty(r+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,r,o,!0)Line truncated
|
||||
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
||||
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
||||
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
||||
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
||||
c69,-144,104.5,-217.7,106.5,-221
|
||||
l`+t/2.075+" -"+t+`
|
||||
c5.3,-9.3,12,-14,20,-14
|
||||
H400000v`+(40+t)+`H845.2724
|
||||
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
||||
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
||||
M`+(834+t)+" "+a+"h400000v"+(40+t)+"h-400000z"},we=function(t,a){return"M263,"+(601+t+a)+`c0.7,0,18,39.7,52,119
|
||||
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
||||
c340,-704.7,510.7,-1060.3,512,-1067
|
||||
l`+t/2.084+" -"+t+`
|
||||
c4.7,-7.3,11,-11,19,-11
|
||||
H40000v`+(40+t)+`H1012.3
|
||||
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
||||
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
||||
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
||||
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
||||
M`+(1001+t)+" "+a+"h400000v"+(40+t)+"h-400000z"},He=function(t,a){return"M983 "+(10+t+a)+`
|
||||
l`+t/3.13+" -"+t+`
|
||||
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
|
||||
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
||||
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
||||
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
||||
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
||||
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
||||
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
||||
M`+(1001+t)+" "+a+"h400000v"+(40+t)+"h-400000z"},it=function(t,a){return"M424,"+(2398+t+a)+`
|
||||
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
||||
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
||||
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
||||
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
||||
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
|
||||
v`+(40+t)+`H1014.6
|
||||
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
||||
c-2,6,-10,9,-24,9
|
||||
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+a+`
|
||||
h400000v`+(40+t)+"h-400000z"},ot=function(t,a){return"M473,"+(2713+t+a)+`
|
||||
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
|
||||
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
|
||||
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
||||
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
||||
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
||||
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
||||
606zM`+(1001+t)+" "+a+"h400000v"+(40+t)+"H1017.7z"},mt=function(t){var a=t/2;return"M400000 "+t+" H0 L"+a+" 0 l65 45 L145 "+(t-80)+" H400000z"},Tt=function(t,a,i){var s=i-54-a-t;return"M702 "+(t+a)+"H400000"+(40+t)+`
|
||||
H742v`+s+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
||||
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
||||
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
||||
219 661 l218 661zM702 `+a+"H400000v"+(40+t)+"H742z"},Yt=function(t,a,i){a=1e3*a;var s="";switch(t){case"sqrtMain":s=Fe(a,Ie);break;case"sqrtSize1":s=we(a,Ie);break;case"sqrtSize2":s=He(a,Ie);break;case"sqrtSize3":s=it(a,Ie);break;case"sqrtSize4":s=ot(a,Ie);break;case"sqrtTall":s=Tt(a,Ie,i)}return s},mr=function(t,a){switch(t){case"⎜":return"M291 0 H417 V"+a+" H291z M291 0 H417 V"+a+" H291z";case"∣":return"M145 0 H188 V"+a+" H145z M145 0 H188 V"+a+" H145z";case"∥":return"M145 0 H188 V"+a+" H145z M145 0 H188 V"+a+" H145z"+("M367 0 H410 V"+a+" H367z M367 0 H410 V"+a+" H367z");case"⎟":return"M457 0 H583 V"+a+" H457z M457 0 H583 V"+a+" H457z";case"⎢":return"M319 0 H403 V"+a+" H319z M319 0 H403 V"+a+" H319z";case"⎥":return"M263 0 H347 V"+a+" H263z M263 0 H347 V"+a+" H263z";case"⎪":return"M384 0 H504 V"+a+" H384z M384 0 H504 V"+a+" H384z";case"⏐":return"M312 0 H355 V"+a+" H312z M312 0 H355 V"+a+" H312z";case"‖":return"M257 0 H300 V"+a+" H257z M257 0 H300 V"+a+" H257z"+("M478 0 H521 V"+a+" H478z M478 0 H521 V"+a+" H478z");default:return""}},pt={doubleleftarrow:`M262 157
|
||||
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
||||
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
||||
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
||||
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
||||
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
||||
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
||||
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
||||
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
||||
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
||||
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
||||
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
||||
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
||||
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
||||
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
||||
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
||||
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
||||
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
||||
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
||||
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
||||
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
||||
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
||||
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
||||
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
||||
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
||||
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
||||
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
||||
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
||||
435 0h399565z`,leftgroupunder:`M400000 262
|
||||
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
||||
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
||||
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
||||
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
||||
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
||||
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
||||
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
||||
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
||||
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
||||
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
||||
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
||||
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
||||
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
||||
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
||||
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
||||
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
||||
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
||||
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
||||
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
||||
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
||||
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
||||
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
||||
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
||||
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
||||
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
||||
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
||||
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
||||
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
||||
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
||||
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
||||
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
||||
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
||||
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
||||
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
||||
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
||||
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
||||
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
||||
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
||||
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
||||
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
||||
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
||||
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
||||
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
||||
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
||||
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
||||
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
||||
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
||||
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
||||
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
||||
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
||||
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
||||
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
||||
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
||||
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
||||
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
||||
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
||||
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
||||
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
||||
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
||||
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
||||
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
||||
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
||||
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
||||
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
||||
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
||||
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
||||
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
||||
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
||||
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
||||
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
||||
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
||||
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
||||
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
||||
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
||||
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
||||
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
||||
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
||||
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
||||
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
||||
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
||||
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
||||
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
||||
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
||||
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
||||
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
||||
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
||||
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
||||
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
||||
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
||||
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
||||
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
||||
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
||||
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
||||
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
||||
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
||||
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
||||
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
||||
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
||||
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
||||
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
||||
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
||||
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
||||
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
||||
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
||||
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
||||
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
||||
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
||||
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
||||
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
||||
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
||||
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
||||
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
||||
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
||||
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
||||
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
||||
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
||||
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
||||
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
||||
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
||||
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
||||
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
||||
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
||||
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
||||
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
||||
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
||||
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
||||
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
||||
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
||||
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
||||
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
||||
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
||||
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
||||
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
||||
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
||||
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
||||
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
||||
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
||||
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
||||
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
||||
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
||||
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
||||
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
||||
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
||||
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
||||
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
||||
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
||||
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},or=function(t,a){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+a+` v1759 h347 v-84
|
||||
H403z M403 1759 V0 H319 V1759 v`+a+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+a+` v1759 H0 v84 H347z
|
||||
M347 1759 V0 H263 V1759 v`+a+" v1759 h84z";case"vert":return"M145 15 v585 v"+a+` v585 c2.667,10,9.667,15,21,15
|
||||
c10,0,16.667,-5,20,-15 v-585 v`+-a+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
||||
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+a+" v585 h43z";case"doublevert":return"M145 15 v585 v"+a+` v585 c2.667,10,9.667,15,21,15
|
||||
c10,0,16.667,-5,20,-15 v-585 v`+-a+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
||||
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+a+` v585 h43z
|
||||
M367 15 v585 v`+a+` v585 c2.667,10,9.667,15,21,15
|
||||
c10,0,16.667,-5,20,-15 v-585 v`+-a+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
||||
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+a+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+a+` v1715 h263 v84 H319z
|
||||
MM319 602 V0 H403 V602 v`+a+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+a+` v1799 H0 v-84 H319z
|
||||
MM319 602 V0 H403 V602 v`+a+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+a+` v602 h84z
|
||||
M403 1759 V0 H319 V1759 v`+a+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+a+` v602 h84z
|
||||
M347 1759 V0 h-84 V1759 v`+a+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
||||
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
||||
-36,557 l0,`+(a+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
||||
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
||||
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
||||
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
||||
l0,-`+(a+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
||||
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
||||
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
||||
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(a+9)+`
|
||||
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
||||
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
||||
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
||||
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
||||
l0,-`+(a+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
||||
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}},Dt=function(){function E(a){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=a,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var t=E.prototype;return t.hasClass=function(i){return I.contains(this.classes,i)},t.toNode=function(){for(var i=document.createDocumentFragment(),s=0;s<this.children.length;s++)i.appendChild(this.children[s].toNode());return i},t.toMarkup=function(){for(var i="",s=0;s<this.children.length;s++)i+=this.children[s].toMarkup();return i},t.toText=function(){var i=function(m){return m.toText()};return this.children.map(i).join("")},E}(),ge={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77Line truncated
|
||||
`+Ye+" children.");for(var st=0;st<Ye;st++){var Or=new Xt(ke[st]),Ft=new Ht([Or],{width:"400em",height:re(Le),viewBox:"0 0 "+N+" "+qe,preserveAspectRatio:Et[st]+" slice"}),Nt=q.makeSvgSpan([Je[st]],[Ft],a);if(Ye===1)return{span:Nt,minWidth:Ae,height:Le};Nt.style.height=re(Le),Ee.push(Nt)}return{span:q.makeSpan(["stretchy"],Ee,a),minWidth:Ae,height:Le}}}var s=i(),m=s.span,f=s.minWidth,b=s.height;return m.height=b,m.style.height=re(b),f>0&&(m.style.minWidth=re(f)),m},Zg=function(t,a,i,s,m){var f,b=t.height+t.depth+i+s;if(/fbox|color|angl/.test(a)){if(f=q.makeSpan(["stretchy",a],[],m),a==="fbox"){var N=m.color&&m.getColor();N&&(f.style.borderColor=N)}}else{var y=[];/^[bx]cancel$/.test(a)&&y.push(new cn({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(a)&&y.push(new cn({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var M=new Ht(y,{width:"100%",height:re(b)});f=q.makeSvgSpan([],[M],m)}return f.height=b,f.style.height=re(b),f},ur={encloseSpan:Zg,mathMLnode:Wg,svgSpan:Xg};function Ne(E,t){if(!E||E.type!==t)throw new Error("Expected node of type "+t+", but got "+(E?"node of type "+E.type:String(E)));return E}function Xa(E){var t=Zn(E);if(!t)throw new Error("Expected node of symbol group type, but got "+(E?"node of type "+E.type:String(E)));return t}function Zn(E){return E&&(E.type==="atom"||Ba.hasOwnProperty(E.type))?E:null}var Za=function(t,a){var i,s,m;t&&t.type==="supsub"?(s=Ne(t.base,"accent"),i=s.base,t.base=i,m=ka(Me(t,a)),t.base=s):(s=Ne(t,"accent"),i=s.base);var f=Me(i,a.havingCrampedStyle()),b=s.isShifty&&I.isCharacterBox(i),N=0;if(b){var y=I.getBaseElem(i),M=Me(y,a.havingCrampedStyle());N=kn(M).skew}var Y=s.label==="\\c",V=Y?f.height+f.depth:Math.min(f.height,a.fontMetrics().xHeight),H;if(s.isStretchy)H=ur.svgSpan(s,a),H=q.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f},{type:"elem",elem:H,wrapperClasses:["svg-align"],wrapperStyle:N>0?{width:"calc(100% - "+re(2*N)+")",marginLeft:re(2*N)}:void 0}]},a);else{var K,ae;s.label==="\\vec"?(K=q.staticSvg("vec",a),ae=q.svgData.vec[1]):(K=q.makeOrd({mode:s.mode,text:s.label},a,"textord"),K=kn(K),K.italic=0,ae=K.width,Y&&(V+=K.depth)),H=q.makeSpan(["accent-body"],[K]);var le=s.label==="\\textcircled";le&&(H.classes.push("accent-full"),V=f.height);var _e=N;le||(_e-=ae/2),H.style.left=re(_e),s.label==="\\textcircled"&&(H.style.top=".2em"),H=q.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f},{type:"kern",size:-V},{type:"elem",elem:H}]},a)}var Ee=q.makeSpan(["mord","accent"],[H],a);return m?(m.children[0]=Ee,m.height=Math.max(Ee.height,m.height),m.classes[0]="mord",m):Ee},Wc=function(t,a){var i=t.isStretchy?ur.mathMLnode(t.label):new te.MathNode("mo",[Bt(t.label,t.mode)]),s=new te.MathNode("mover",[$e(t.base,a),i]);return s.setAttribute("accent","true"),s},Jg=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(E){return"\\"+E}).join("|"));ce({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(t,a){var i=Qn(a[0]),s=!Jg.test(t.funcName),m=!s||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:s,isShifty:m,base:i}},htmlBuilder:Za,mathmlBuilder:Wc}),ce({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:function(t,a){var i=a[0],s=t.parser.mode;return s==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),s="text"),{type:"accent",mode:s,label:t.funcName,isStretchy:!1,isShifty:!0,base:i}},htmlBuilder:Za,mathmlBuilder:Wc}),ce({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(t,a){var i=t.parser,s=t.funcName,m=a[0];return{type:"accentUnder",mode:i.mode,label:s,base:m}},htmlBuilder:function(t,a){var i=Me(t.base,a),s=ur.svgSpan(t,a),m=t.label==="\\utilde"?.12:0,f=q.makeVList({positionType:"top",positionData:i.height,children:[{type:"elem",elem:s,wrapperClasses:["svg-align"]},{type:"kern",size:m},{type:"elem",elem:i}]},a);return q.makeSpan(["mord","accentunder"],[f],a)},mathmlBuilder:function(t,a){var i=ur.mathMLnode(t.label),s=new te.MathNode("munder",[$e(t.base,a),i]);return s.setAttribute("accentunder","true"),s}});var Jn=function(t){var a=new te.MathNode("mpadded",t?[t]:[]);return a.setAttribute("width","+0.6em"),a.setAttribute("lspace","0.3em"),a};ce({type:"xArrow",Line truncated
|
||||
]`,yE="\\\\[a-zA-Z@]+",OE="\\\\[^\uD800-\uDFFF]",IE="("+yE+")"+Bu+"*",DE=`\\\\(
|
||||
|[ \r ]+
|
||||
?)[ \r ]*`,gi="[̀-ͯ]",xE=new RegExp(gi+"+$"),wE="("+Bu+"+)|"+(DE+"|")+"([!-\\[\\]-‧-豈-]"+(gi+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(gi+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+IE)+("|"+OE+")"),Fu=function(){function E(a,i){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=a,this.settings=i,this.tokenRegex=new RegExp(wE,"g"),this.catcodes={"%":14,"~":13}}var t=E.prototype;return t.setCatcode=function(i,s){this.catcodes[i]=s},t.lex=function(){var i=this.input,s=this.tokenRegex.lastIndex;if(s===i.length)return new Sr("EOF",new $t(this,s,s));var m=this.tokenRegex.exec(i);if(m===null||m.index!==s)throw new c("Unexpected character: '"+i[s]+"'",new Sr(i[s],new $t(this,s,s+1)));var f=m[6]||m[3]||(m[2]?"\\ ":" ");if(this.catcodes[f]===14){var b=i.indexOf(`
|
||||
`,this.tokenRegex.lastIndex);return b===-1?(this.tokenRegex.lastIndex=i.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=b+1,this.lex()}return new Sr(f,new $t(this,s,this.tokenRegex.lastIndex))},E}(),ME=function(){function E(a,i){a===void 0&&(a={}),i===void 0&&(i={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=i,this.builtins=a,this.undefStack=[]}var t=E.prototype;return t.beginGroup=function(){this.undefStack.push({})},t.endGroup=function(){if(this.undefStack.length===0)throw new c("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var i=this.undefStack.pop();for(var s in i)i.hasOwnProperty(s)&&(i[s]==null?delete this.current[s]:this.current[s]=i[s])},t.endGroups=function(){for(;this.undefStack.length>0;)this.endGroup()},t.has=function(i){return this.current.hasOwnProperty(i)||this.builtins.hasOwnProperty(i)},t.get=function(i){return this.current.hasOwnProperty(i)?this.current[i]:this.builtins[i]},t.set=function(i,s,m){if(m===void 0&&(m=!1),m){for(var f=0;f<this.undefStack.length;f++)delete this.undefStack[f][i];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][i]=s)}else{var b=this.undefStack[this.undefStack.length-1];b&&!b.hasOwnProperty(i)&&(b[i]=this.current[i])}s==null?delete this.current[i]:this.current[i]=s},E}(),LE=mu,kE=LE;A("\\noexpand",function(E){var t=E.popToken();return E.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),A("\\expandafter",function(E){var t=E.popToken();return E.expandOnce(!0),{tokens:[t],numArgs:0}}),A("\\@firstoftwo",function(E){var t=E.consumeArgs(2);return{tokens:t[0],numArgs:0}}),A("\\@secondoftwo",function(E){var t=E.consumeArgs(2);return{tokens:t[1],numArgs:0}}),A("\\@ifnextchar",function(E){var t=E.consumeArgs(3);E.consumeSpaces();var a=E.future();return t[0].length===1&&t[0][0].text===a.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),A("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),A("\\TextOrMath",function(E){var t=E.consumeArgs(2);return E.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Uu={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};A("\\char",function(E){var t=E.popToken(),a,i="";if(t.text==="'")a=8,t=E.popToken();else if(t.text==='"')a=16,t=E.popToken();else if(t.text==="`")if(t=E.popToken(),t.text[0]==="\\")i=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new c("\\char` missing argument");i=t.text.charCodeAt(0)}else a=10;if(a){if(i=Uu[t.text],i==null||i>=a)throw new c("Invalid base-"+a+" digit "+t.text);for(var s;(s=Uu[E.future().text])!=null&&s<a;)i*=a,i+=s,E.popToken()}return"\\@char{"+i+"}"});var Ei=function(t,a,i){var s=t.consumeArg().tokens;if(s.length!==1)throw new c("\\newcommand's first argument must be a macro name");var m=s[0].text,f=t.isDefined(m);if(f&&!a)throw new c("\\newcommand{"+m+"} attempting to redefine "+(m+"; use \\renewcommand"));if(!f&&!i)throw new c("\\renewcommand{"+m+"} when command "+m+" does not yet exist; use \\newcommand");var b=0;if(s=t.consumeArg().tokens,s.length===1&&s[0].text==="["){for(var N="",y=t.expandNextToken();y.text!=="]"&&y.text!=="EOF";)N+=y.text,y=t.expandNextToken();if(!N.match(/^\s*[0-9]+\s*$/))throw new c("Invalid number of arguments: "+N);b=parseInt(N),s=t.consumeArg().tokens}return t.macros.set(m,{tokens:s,numArgs:b}),""};A("\\newcommand",function(E){return Ei(E,!1,!0)}),A("\\renewcommand",function(E){return Ei(E,!0,!1)}),A("\\providecommand",function(E){return Ei(E,!0,!0)}),A("\\message",function(E){var t=E.consumeArgs(1)[0];return console.log(t.reverse().map(function(a){return a.text}).join("")),""}),A("\\errmessage",function(E){var t=E.consumeArgs(1)[0];return console.error(t.reverse().map(function(a){return a.text}).join("")),""}),A("\\show",function(E){var t=E.popToken(),a=t.text;return console.log(t,E.macros.get(a),hr[a],Ze.math[a],Ze.text[a]),""}),A("\\bgroup","{"),A("\\egroup","}"),A("~","\\nobreakspace"),A("\\lq","`"),A("\\rq","'"),A("\\aa","\\r a"),A("\\AA","\\r A"),A("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),A("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),A("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),A("ℬ","\\mathscr{B}"),A("ℰ","\\mathscr{E}"),A("ℱ","\\mathscr{F}"),A("ℋ","\\mathscr{H}"),A("ℐ","\\mathscr{I}"),A("ℒ","\\mathscr{L}"),A("ℳ","\\mathscr{M}"),A("ℛ","\\mathscr{R}"),A("ℭ","\\mathfrak{C}"),A("ℌ","\\mathfrak{H}"),A("ℨ","\\mathfrak{Z}"),A("\\Bbbk","\\Bbb{k}"),A("·","\\cdotp"),A("\\llap","\\mathllap{\\textrm{#1}}"),A("\\rlap","\\mathrlap{\\textrm{#1}}"),A("\\clap","\\mathclap{\\textrm{#1}}"),A("\\mathstrut","\\vphantom{(}"),A("\\underbar","\\underline{\\text{#1}}"),A("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),A("\\neq"Line truncated
|
||||
please report what input caused this bug`);return m=m.slice(1,-1),{type:"verb",mode:"text",body:m,star:f}}Vu.hasOwnProperty(s[0])&&!Ze[this.mode][s[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+s[0]+'" used in math mode',i),s=Vu[s[0]]+s.slice(1));var b=xE.exec(s);b&&(s=s.substring(0,b.index),s==="i"?s="ı":s==="j"&&(s="ȷ"));var N;if(Ze[this.mode][s]){this.settings.strict&&this.mode==="math"&&mn.indexOf(s)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+s[0]+'" used in math mode',i);var y=Ze[this.mode][s].group,M=$t.range(i),Y;if(Pa.hasOwnProperty(y)){var V=y;Y={type:"atom",mode:this.mode,family:V,loc:M,text:s}}else Y={type:y,mode:this.mode,loc:M,text:s};N=Y}else if(s.charCodeAt(0)>=128)this.settings.strict&&(De(s.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+s[0]+'" used in math mode',i):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+s[0]+'"'+(" ("+s.charCodeAt(0)+")"),i)),N={type:"textord",mode:"text",loc:$t.range(i),text:s};else return null;if(this.consume(),b)for(var H=0;H<b[0].length;H++){var K=b[0][H];if(!fi[K])throw new c("Unknown accent ' "+K+"'",i);var ae=fi[K][this.mode]||fi[K].text;if(!ae)throw new c("Accent "+K+" unsupported in "+this.mode+" mode",i);N={type:"accent",mode:this.mode,loc:$t.range(i),label:ae,isStretchy:!1,isShifty:!0,base:N}}return N},E}();$u.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var BE=function(t,a){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var i=new $u(t,a);delete i.gullet.macros.current["\\df@tag"];var s=i.parse();if(delete i.gullet.macros.current["\\current@color"],delete i.gullet.macros.current["\\color"],i.gullet.macros.get("\\df@tag")){if(!a.displayMode)throw new c("\\tag works only in display equations");s=[{type:"tag",mode:"text",body:s,tag:i.subparse([new Sr("\\df@tag")])}]}return s},hi=BE,Wu=function(t,a,i){a.textContent="";var s=bi(t,i).toNode();a.appendChild(s)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Wu=function(){throw new c("KaTeX doesn't work in quirks mode.")});var FE=function(t,a){var i=bi(t,a).toMarkup();return i},UE=function(t,a){var i=new F(a);return hi(t,i)},Ku=function(t,a,i){if(i.throwOnError||!(t instanceof c))throw t;var s=q.makeSpan(["katex-error"],[new Ot(a)]);return s.setAttribute("title",t.toString()),s.setAttribute("style","color:"+i.errorColor),s},bi=function(t,a){var i=new F(a);try{var s=hi(t,i);return Hg(s,t,i)}catch(m){return Ku(m,t,i)}},GE=function(t,a){var i=new F(a);try{var s=hi(t,i);return Vg(s,t,i)}catch(m){return Ku(m,t,i)}},qE={version:"0.16.8",render:Wu,renderToString:FE,ParseError:c,SETTINGS_SCHEMA:G,__parse:UE,__renderToDomTree:bi,__renderToHTMLTree:GE,__setFontMetrics:Oe,__defineSymbol:g,__defineFunction:ce,__defineMacro:A,__domTree:{Span:Nr,Anchor:ln,SymbolNode:Ot,SvgNode:Ht,PathNode:Xt,LineNode:cn}},YE=qE;return o=o.default,o}()})})(wg);var ore=wg.exports,hc=ore;function y0(n,e){var r,o,u=n.posMax,c=!0,_=!0;return r=e>0?n.src.charCodeAt(e-1):-1,o=e+1<=u?n.src.charCodeAt(e+1):-1,(r===32||r===9||o>=48&&o<=57)&&(_=!1),(o===32||o===9)&&(c=!1),{can_open:c,can_close:_}}function sre(n,e){var r,o,u,c,_;if(n.src[n.pos]!=="$")return!1;if(c=y0(n,n.pos),!c.can_open)return e||(n.pending+="$"),n.pos+=1,!0;for(r=n.pos+1,o=r;(o=n.src.indexOf("$",o))!==-1;){for(_=o-1;n.src[_]==="\\";)_-=1;if((o-_)%2==1)break;o+=1}return o===-1?(e||(n.pending+="$"),n.pos=r,!0):o-r===0?(e||(n.pending+="$$"),n.pos=r+1,!0):(c=y0(n,o),c.can_close?(e||(u=n.push("math_inline","math",0),u.markup="$",u.content=n.src.slice(r,o)),n.pos=o+1,!0):(e||(n.pending+="$"),n.pos=r,!0))}function lre(n,e,r,o){var u,c,_,l,d=!1,p,S=n.bMarks[e]+n.tShift[e],T=n.eMarks[e];if(S+2>T||n.src.slice(S,S+2)!=="$$")return!1;if(S+=2,u=n.src.slice(S,T),o)return!0;for(u.trim().slice(-2)==="$$"&&(u=u.trim().slice(0,-2),d=!0),_=e;!d&&(_++,!(_>=r||(S=n.bMarks[_]+n.tShift[_],T=n.eMarks[_],S<T&&n.tShift[_]<n.blkIndent)));)n.src.slice(S,T).trim().slice(-2)==="$$"&&(l=n.src.slice(0,T).lastIndexOf("$$"),c=n.src.slice(S,l),d=!0);return n.line=_+1,p=n.push("math_block","math",0),p.block=!0,p.content=(u&&u.trim()?u+`
|
||||
`:"")+n.getLines(e+1,_,n.tShift[e],!0)+(c&&c.trim()?c:""),p.map=[e,n.line],p.markup="$$",!0}function ma(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}var cre=function(e,r){r=r||{},r.katex&&(hc=r.katex),r.blockClass||(r.blockClass="");var o=function(l){r.displayMode=!1;try{return hc.renderToString(l,r)}catch(d){return r.throwOnError&&console.log(d),`<span class='katex-error' title='${ma(d.toString())}'>${ma(l)}</span>`}},u=function(l,d){return o(l[d].content)},c=function(l){r.displayMode=!0;try{return`<p class="katex-block ${r.blockClass}">`+hc.renderToString(l,r)+"</p>"}catch(d){return r.throwOnError&&console.log(d),`<p class='katex-block katex-error ${r.blockClass}' title='${ma(d.toString())}'>${ma(l)}</p>`}},_=function(l,d){return c(l[d].content)+`
|
||||
`};e.inline.ruler.after("escape","math_inline",sre),e.block.ruler.after("blockquote","math_block",lre,{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.math_inline=u,e.renderer.rules.math_block=_};const ure=va(cre);/*!
|
||||
* qrcode.vue v3.4.1
|
||||
* A Vue.js component to generate QRCode.
|
||||
* © 2017-2023 @scopewu(https://github.com/scopewu)
|
||||
* MIT License.
|
||||
*/var ha=function(){return ha=Object.assign||function(e){for(var r,o=1,u=arguments.length;o<u;o++){r=arguments[o];for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(e[c]=r[c])}return e},ha.apply(this,arguments)};var Lr;(function(n){var e=function(){function _(l,d,p,S){if(this.version=l,this.errorCorrectionLevel=d,this.modules=[],this.isFunction=[],l<_.MIN_VERSION||l>_.MAX_VERSION)throw new RangeError("Version value out of range");if(S<-1||S>7)throw new RangeError("Mask value out of range");this.size=l*4+17;for(var T=[],v=0;v<this.size;v++)T.push(!1);for(var v=0;v<this.size;v++)this.modules.push(T.slice()),this.isFunction.push(T.slice());this.drawFunctionPatterns();var R=this.addEccAndInterleave(p);if(this.drawCodewords(R),S==-1)for(var O=1e9,v=0;v<8;v++){this.applyMask(v),this.drawFormatBits(v);var w=this.getPenaltyScore();w<O&&(S=v,O=w),this.applyMask(v)}u(0<=S&&S<=7),this.mask=S,this.applyMask(S),this.drawFormatBits(S),this.isFunction=[]}return _.encodeText=function(l,d){var p=n.QrSegment.makeSegments(l);return _.encodeSegments(p,d)},_.encodeBinary=function(l,d){var p=n.QrSegment.makeBytes(l);return _.encodeSegments([p],d)},_.encodeSegments=function(l,d,p,S,T,v){if(p===void 0&&(p=1),S===void 0&&(S=40),T===void 0&&(T=-1),v===void 0&&(v=!0),!(_.MIN_VERSION<=p&&p<=S&&S<=_.MAX_VERSION)||T<-1||T>7)throw new RangeError("Invalid value");var R,O;for(R=p;;R++){var w=_.getNumDataCodewords(R,d)*8,L=c.getTotalBits(l,R);if(L<=w){O=L;break}if(R>=S)throw new RangeError("Data too long")}for(var I=0,G=[_.Ecc.MEDIUM,_.Ecc.QUARTILE,_.Ecc.HIGH];I<G.length;I++){var k=G[I];v&&O<=_.getNumDataCodewords(R,k)*8&&(d=k)}for(var F=[],z=0,U=l;z<U.length;z++){var Z=U[z];r(Z.mode.modeBits,4,F),r(Z.numChars,Z.mode.numCharCountBits(R),F);for(var W=0,ie=Z.getData();W<ie.length;W++){var ee=ie[W];F.push(ee)}}u(F.length==O);var X=_.getNumDataCodewords(R,d)*8;u(F.length<=X),r(0,Math.min(4,X-F.length),F),r(0,(8-F.length%8)%8,F),u(F.length%8==0);for(var Se=236;F.length<X;Se^=253)r(Se,8,F);for(var Te=[];Te.length*8<F.length;)Te.push(0);return F.forEach(function($,ue){return Te[ue>>>3]|=$<<7-(ue&7)}),new _(R,d,Te,T)},_.prototype.getModule=function(l,d){return 0<=l&&l<this.size&&0<=d&&d<this.size&&this.modules[d][l]},_.prototype.getModules=function(){return this.modules},_.prototype.drawFunctionPatterns=function(){for(var l=0;l<this.size;l++)this.setFunctionModule(6,l,l%2==0),this.setFunctionModule(l,6,l%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var d=this.getAlignmentPatternPositions(),p=d.length,l=0;l<p;l++)for(var S=0;S<p;S++)l==0&&S==0||l==0&&S==p-1||l==p-1&&S==0||this.drawAlignmentPattern(d[l],d[S]);this.drawFormatBits(0),this.drawVersion()},_.prototype.drawFormatBits=function(l){for(var d=this.errorCorrectionLevel.formatBits<<3|l,p=d,S=0;S<10;S++)p=p<<1^(p>>>9)*1335;var T=(d<<10|p)^21522;u(T>>>15==0);for(var S=0;S<=5;S++)this.setFunctionModule(8,S,o(T,S));this.setFunctionModule(8,7,o(T,6)),this.setFunctionModule(8,8,o(T,7)),this.setFunctionModule(7,8,o(T,8));for(var S=9;S<15;S++)this.setFunctionModule(14-S,8,o(T,S));for(var S=0;S<8;S++)this.setFunctionModule(this.size-1-S,8,o(T,S));for(var S=8;S<15;S++)this.setFunctionModule(8,this.size-15+S,o(T,S));this.setFunctionModule(8,this.size-8,!0)},_.prototype.drawVersion=function(){if(!(this.version<7)){for(var l=this.version,d=0;d<12;d++)l=l<<1^(l>>>11)*7973;var p=this.version<<12|l;u(p>>>18==0);for(var d=0;d<18;d++){var S=o(p,d),T=this.size-11+d%3,v=Math.floor(d/3);this.setFunctionModule(T,v,S),this.setFunctionModule(v,T,S)}}},_.prototype.drawFinderPattern=function(l,d){for(var p=-4;p<=4;p++)for(var S=-4;S<=4;S++){var T=Math.max(Math.abs(S),Math.abs(p)),v=l+S,R=d+p;0<=v&&v<this.size&&0<=R&&R<this.size&&this.setFunctionModule(v,R,T!=2&&T!=4)}},_.prototype.drawAlignmentPattern=function(l,d){for(var p=-2;p<=2;p++)for(var S=-2;S<=2;S++)this.setFunctionModule(l+S,d+p,Math.max(Math.abs(S),Math.abs(p))!=1)},_.prototype.setFunctionModule=function(l,d,p){this.modules[d][l]=p,this.isFunction[d][l]=!0},_.prototype.addEccAndInterleave=function(l){var d=this.version,p=this.errorCorrectionLevel;if(l.length!=_.getNumDataCodewords(d,p))throw new RangeError("Invalid argument");for(var S=_.NUM_ERROR_CORRECTION_BLOCKS[p.ordinal][d],T=_.ECC_CODEWORDS_PER_BLOCK[p.ordinal][d],v=Math.floor(_.getNumRawDataModules(d)/8),R=S-v%S,O=Math.floor(v/S),w=[],L=_.reedSolomonComputeDivisor(T),I=0,G=0;I<S;I++){var k=l.slice(G,G+O-T+(I<R?0:1));G+=k.length;var F=_.reedSolomonComputeRemainder(k,L);I<R&&k.push(0),w.push(k.concat(F))}for(var z=[],U=function(Z){w.forEach(function(W,ie){(Z!=O-T||ie>=R)&&z.push(W[Z])})},I=0;I<w[0].length;I++)U(I);return u(z.length==v),z},_.prototype.drawCodewords=function(l){if(l.length!=Math.floor(_.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var d=0,p=this.size-1;p>=1;p-=2){p==6&&(p=5);for(var S=0;S<this.size;S++)for(var T=0;T<2;T++){var v=p-T,R=(p+1&2)==0,O=R?this.size-1-S:S;!this.isFuLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
.el-pagination{--el-pagination-font-size:14px;--el-pagination-bg-color:var(--el-fill-color-blank);--el-pagination-text-color:var(--el-text-color-primary);--el-pagination-border-radius:2px;--el-pagination-button-color:var(--el-text-color-primary);--el-pagination-button-width:32px;--el-pagination-button-height:32px;--el-pagination-button-disabled-color:var(--el-text-color-placeholder);--el-pagination-button-disabled-bg-color:var(--el-fill-color-blank);--el-pagination-button-bg-color:var(--el-fill-color);--el-pagination-hover-color:var(--el-color-primary);--el-pagination-font-size-small:12px;--el-pagination-button-width-small:24px;--el-pagination-button-height-small:24px;--el-pagination-item-gap:16px;white-space:nowrap;color:var(--el-pagination-text-color);font-size:var(--el-pagination-font-size);font-weight:400;display:flex;align-items:center}.el-pagination .el-input__inner{text-align:center;-moz-appearance:textfield}.el-pagination .el-select .el-input{width:128px}.el-pagination button{display:flex;justify-content:center;align-items:center;font-size:var(--el-pagination-font-size);min-width:var(--el-pagination-button-width);height:var(--el-pagination-button-height);line-height:var(--el-pagination-button-height);color:var(--el-pagination-button-color);background:var(--el-pagination-bg-color);padding:0 4px;border:none;border-radius:var(--el-pagination-border-radius);cursor:pointer;text-align:center;box-sizing:border-box}.el-pagination button *{pointer-events:none}.el-pagination button:focus{outline:0}.el-pagination button:hover{color:var(--el-pagination-hover-color)}.el-pagination button.is-active{color:var(--el-pagination-hover-color);cursor:default;font-weight:700}.el-pagination button.is-active.is-disabled{font-weight:700;color:var(--el-text-color-secondary)}.el-pagination button.is-disabled,.el-pagination button:disabled{color:var(--el-pagination-button-disabled-color);background-color:var(--el-pagination-button-disabled-bg-color);cursor:not-allowed}.el-pagination button:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.el-pagination .btn-next .el-icon,.el-pagination .btn-prev .el-icon{display:block;font-size:12px;font-weight:700;width:inherit}.el-pagination>.is-first{margin-left:0!important}.el-pagination>.is-last{margin-right:0!important}.el-pagination .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination__sizes,.el-pagination__total{margin-left:var(--el-pagination-item-gap);font-weight:400;color:var(--el-text-color-regular)}.el-pagination__total[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__jump{display:flex;align-items:center;margin-left:var(--el-pagination-item-gap);font-weight:400;color:var(--el-text-color-regular)}.el-pagination__jump[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__goto{margin-right:8px}.el-pagination__editor{text-align:center;box-sizing:border-box}.el-pagination__editor.el-input{width:56px}.el-pagination__editor .el-input__inner::-webkit-inner-spin-button,.el-pagination__editor .el-input__inner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-pagination__classifier{margin-left:8px}.el-pagination__rightwrapper{flex:1;display:flex;align-items:center;justify-content:flex-end}.el-pagination.is-background .btn-next,.el-pagination.is-background .btn-prev,.el-pagination.is-background .el-pager li{margin:0 4px;background-color:var(--el-pagination-button-bg-color)}.el-pagination.is-background .btn-next.is-active,.el-pagination.is-background .btn-prev.is-active,.el-pagination.is-background .el-pager li.is-active{background-color:var(--el-color-primary);color:var(--el-color-white)}.el-pagination.is-background .btn-next.is-disabled,.el-pagination.is-background .btn-next:disabled,.el-pagination.is-background .btn-prev.is-disabled,.el-pagination.is-background .btn-prev:disabled,.el-pagination.is-background .el-pager li.is-disabled,.el-pagination.is-background .el-pager li:disabled{color:var(--el-text-color-placeholder);background-color:var(--el-disabled-bg-color)}.el-pagination.is-background .btn-next.is-disabled.is-active,.el-pagination.is-background .btn-next:disabled.is-active,.el-pagination.is-background .btn-prev.is-disabled.is-active,.el-pagination.is-background .btn-prev:disabled.is-active,.el-pagination.is-background .el-pager li.is-disabled.is-active,.el-pagination.is-background .el-pager li:disabled.is-active{color:var(--el-text-color-secondary);background-color:var(--el-fill-color-dark)}.el-pagination.is-background .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination--small .btn-next,.el-pagination--small .btn-prev,.el-pagination--small .el-pager li{height:var(--el-pagination-button-height-small);line-height:var(--el-pagination-button-height-small);font-size:var(--el-pagination-font-size-small);min-width:var(--el-pagination-button-width-small)}.el-pagination--small button,.el-pagination--small span:not([class*=suffix]){font-size:var(--el-pagination-font-size-smallLine truncated
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
import{ag as Jt,ah as dt,ai as mn,aj as bn,ak as Qt,al as We,am as yn,an as Tl,ao as Cn,ap as At,aq as wn,ar as gt,as as Sn,at as Ol,au as zl,av as Wl,aw as Hl,v as Tt,U as ct,i as Se,x as lt,o as at,z as _l,A as Ot,D as zt,y as mt,B as xn,u as X,_ as we,b as Me,d as Wt,w as Ht,F as _t,X as ot,I as Ne,k as Ye,m as En,ax as kn,j as Bl,ay as Il,az as Zt,aA as Kl,aB as Dl,ad as Bt,G as Vl,c as Ge,ac as ql,aC as Gl,e as Pn,p as Ul,W as Qe,r as bt,$ as jl,aD as en,ae as tn,aE as Yl,aF as Xl,s as nn,S as Jl,f as Ql}from"./request-7df3eafb.js";import"./el-tag-3de5cb5d.js";import{b as Nn,i as Rn,E as Zl,a as ea,d as st,c as Ln,C as ta}from"./el-select-3d4ad24c.js";import{i as ft,a as rt,b as na,g as la,S as Mn,k as $n,c as aa,d as oa,e as Fn,f as sa,h as ra,j as ia,l as ua,m as da,n as ca,u as fa,y as ha,E as pa}from"./el-popper-79e2cc61.js";import"./el-tooltip-4ed993c7.js";import{s as yt,i as ce,c as M,z as ie,n as Le,a5 as oe,h as P,X as He,g as Ct,aa as ln,d as q,Z as An,o as A,a as re,w as Z,D as ee,b as W,u as C,m as Re,F as B,x as Ue,ab as it,r as Oe,R as _e,J as Be,H as Y,G as ve,f as ht,e as $e,p as It,t as Tn,q as j,S as ut,a2 as ze,I as va,l as O,M as je,C as ye,ac as On,ad as zn,A as Xe,a8 as ga,a1 as Kt,v as an,ae as ma,B as ba,Q as ya}from"./index-c6e70cde.js";import{g as Ca}from"./_commonjsHelpers-de833af9.js";function Dt(e){return e}function wa(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Sa=800,xa=16,Ea=Date.now;function ka(e){var t=0,n=0;return function(){var l=Ea(),a=xa-(l-n);if(n=l,a>0){if(++t>=Sa)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Pa(e){return function(){return e}}var Na=Jt?function(e,t){return Jt(e,"toString",{configurable:!0,enumerable:!1,value:Pa(t),writable:!0})}:Dt;const Ra=Na;var La=ka(Ra);const Wn=La;var on=Math.max;function Hn(e,t,n){return t=on(t===void 0?e.length-1:t,0),function(){for(var l=arguments,a=-1,s=on(l.length-t,0),i=Array(s);++a<s;)i[a]=l[t+a];a=-1;for(var o=Array(t+1);++a<t;)o[a]=l[a];return o[t]=n(i),wa(e,this,o)}}function Ma(e,t){return Wn(Hn(e,t,Dt),e+"")}function $a(e,t,n){if(!dt(n))return!1;var l=typeof t;return(l=="number"?ft(n)&&mn(t,n.length):l=="string"&&t in n)?bn(n[t],e):!1}function Fa(e){return Ma(function(t,n){var l=-1,a=n.length,s=a>1?n[a-1]:void 0,i=a>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(a--,s):void 0,i&&$a(n[0],n[1],i)&&(s=a<3?void 0:s,a=1),t=Object(t);++l<a;){var o=n[l];o&&e(t,o,l,s)}return t})}var sn=Qt?Qt.isConcatSpreadable:void 0;function Aa(e){return We(e)||rt(e)||!!(sn&&e&&e[sn])}function Vt(e,t,n,l,a){var s=-1,i=e.length;for(n||(n=Aa),a||(a=[]);++s<i;){var o=e[s];t>0&&n(o)?t>1?Vt(o,t-1,n,l,a):na(a,o):l||(a[a.length]=o)}return a}function Ta(e){var t=e==null?0:e.length;return t?Vt(e,1):[]}function Oa(e){return Wn(Hn(e,void 0,Ta),e+"")}var za="[object Object]",Wa=Function.prototype,Ha=Object.prototype,_n=Wa.toString,_a=Ha.hasOwnProperty,Ba=_n.call(Object);function Ia(e){if(!yn(e)||Tl(e)!=za)return!1;var t=la(e);if(t===null)return!0;var n=_a.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&_n.call(n)==Ba}var Ka=1,Da=2;function Va(e,t,n,l){var a=n.length,s=a,i=!l;if(e==null)return!s;for(e=Object(e);a--;){var o=n[a];if(i&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<s;){o=n[a];var r=o[0],u=e[r],c=o[1];if(i&&o[2]){if(u===void 0&&!(r in e))return!1}else{var f=new Mn;if(l)var p=l(u,c,r,e,t,f);if(!(p===void 0?Nn(c,u,Ka|Da,l,f):p))return!1}}return!0}function Bn(e){return e===e&&!dt(e)}function qa(e){for(var t=$n(e),n=t.length;n--;){var l=t[n],a=e[l];t[n]=[l,a,Bn(a)]}return t}function In(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Ga(e){var t=qa(e);return t.length==1&&t[0][2]?In(t[0][0],t[0][1]):function(n){return n===e||Va(n,e,t)}}function Ua(e,t){return e!=null&&t in Object(e)}function ja(e,t,n){t=Cn(t,e);for(var l=-1,a=t.length,s=!1;++l<a;){var i=At(t[l]);if(!(s=e!=null&&n(e,i)))break;e=e[i]}return s||++l!=a?s:(a=e==null?0:e.length,!!a&&aa(a)&&mn(i,a)&&(We(e)||rt(e)))}function Kn(e,t){return e!=null&&ja(e,t,Ua)}var Ya=1,Xa=2;function Ja(e,t){return wn(e)&&Bn(t)?In(At(e),t):function(n){var l=gt(n,e);return l===void 0&&l===t?Kn(n,e):Nn(t,l,Ya|Xa)}}function Qa(e){return function(t){return t==null?void 0:t[e]}}function Za(e){return function(t){return Sn(t,e)}}function eo(e){return wn(e)?Qa(At(e)):Za(e)}function to(e){return typeof e=="function"?e:e==null?Dt:typeof e=="object"?We(e)?Ja(e[0],e[1]):Ga(e):eo(e)}function no(e){return function(t,n,l){for(var a=-1,s=Object(t),i=l(t),o=i.length;o--;){var r=i[e?o:++a];if(n(s[r],r,s)===!1)break}return t}}var lo=no();const Dn=lo;function ao(e,t){return e&&Dn(e,t,$n)}function oo(e,t){return function(n,l){if(n==null)return n;if(!ft(n))return e(n,l);for(var a=n.length,s=t?a:-1,i=Object(n);(t?s--:++s<a)&&l(i[s],s,i)!==!1;);return n}}var so=oo(ao);const ro=so;functioLine truncated
|
||||
* Checks if an event is supported in the current execution environment.
|
||||
*
|
||||
* NOTE: This will not work correctly for non-generic events such as `change`,
|
||||
* `reset`, `load`, `error`, and `select`.
|
||||
*
|
||||
* Borrows from Modernizr.
|
||||
*
|
||||
* @param {string} eventNameSuffix Event name, e.g. "click".
|
||||
* @param {?boolean} capture Check if the capture phase is supported.
|
||||
* @return {boolean} True if the event is supported.
|
||||
* @internal
|
||||
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
||||
*/const ko=function(e,t){if(e&&e.addEventListener){const n=function(l){const a=Eo(l);t&&Reflect.apply(t,this,[l,a])};e.addEventListener("wheel",n,{passive:!0})}},Po={beforeMount(e,t){ko(e,t.value)}},Zn={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Tt,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},el={[ct]:e=>yt(e)||Se(e)||lt(e),change:e=>yt(e)||Se(e)||lt(e)},De=Symbol("checkboxGroupContextKey"),No=({model:e,isChecked:t})=>{const n=ce(De,void 0),l=M(()=>{var s,i;const o=(s=n==null?void 0:n.max)==null?void 0:s.value,r=(i=n==null?void 0:n.min)==null?void 0:i.value;return!at(o)&&e.value.length>=o&&!t.value||!at(r)&&e.value.length<=r&&t.value});return{isDisabled:_l(M(()=>(n==null?void 0:n.disabled.value)||l.value)),isLimitDisabled:l}},Ro=(e,{model:t,isLimitExceeded:n,hasOwnLabel:l,isDisabled:a,isLabeledByFormItem:s})=>{const i=ce(De,void 0),{formItem:o}=Ot(),{emit:r}=oe();function u(h){var m,g;return h===e.trueLabel||h===!0?(m=e.trueLabel)!=null?m:!0:(g=e.falseLabel)!=null?g:!1}function c(h,m){r("change",u(h),m)}function f(h){if(n.value)return;const m=h.target;r("change",u(m.checked),h)}async function p(h){n.value||!l.value&&!a.value&&s.value&&(h.composedPath().some(S=>S.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await Le(),c(t.value,h)))}const v=M(()=>(i==null?void 0:i.validateEvent)||e.validateEvent);return ie(()=>e.modelValue,()=>{v.value&&(o==null||o.validate("change").catch(h=>zt()))}),{handleChange:f,onClickRoot:p}},Lo=e=>{const t=P(!1),{emit:n}=oe(),l=ce(De,void 0),a=M(()=>at(l)===!1),s=P(!1);return{model:M({get(){var o,r;return a.value?(o=l==null?void 0:l.modelValue)==null?void 0:o.value:(r=e.modelValue)!=null?r:t.value},set(o){var r,u;a.value&&He(o)?(s.value=((r=l==null?void 0:l.max)==null?void 0:r.value)!==void 0&&o.length>(l==null?void 0:l.max.value),s.value===!1&&((u=l==null?void 0:l.changeEvent)==null||u.call(l,o))):(n(ct,o),t.value=o)}}),isGroup:a,isLimitExceeded:s}},Mo=(e,t,{model:n})=>{const l=ce(De,void 0),a=P(!1),s=M(()=>{const u=n.value;return lt(u)?u:He(u)?Ct(e.label)?u.map(ln).some(c=>Rn(c,e.label)):u.map(ln).includes(e.label):u!=null?u===e.trueLabel:!!u}),i=mt(M(()=>{var u;return(u=l==null?void 0:l.size)==null?void 0:u.value}),{prop:!0}),o=mt(M(()=>{var u;return(u=l==null?void 0:l.size)==null?void 0:u.value})),r=M(()=>!!(t.default||e.label));return{checkboxButtonSize:i,isChecked:s,isFocused:a,checkboxSize:o,hasOwnLabel:r}},$o=(e,{model:t})=>{function n(){He(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},tl=(e,t)=>{const{formItem:n}=Ot(),{model:l,isGroup:a,isLimitExceeded:s}=Lo(e),{isFocused:i,isChecked:o,checkboxButtonSize:r,checkboxSize:u,hasOwnLabel:c}=Mo(e,t,{model:l}),{isDisabled:f}=No({model:l,isChecked:o}),{inputId:p,isLabeledByFormItem:v}=xn(e,{formItemContext:n,disableIdGeneration:c,disableIdManagement:a}),{handleChange:h,onClickRoot:m}=Ro(e,{model:l,isLimitExceeded:s,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:v});return $o(e,{model:l}),{inputId:p,isLabeledByFormItem:v,isChecked:o,isDisabled:f,isFocused:i,checkboxButtonSize:r,checkboxSize:u,hasOwnLabel:c,model:l,handleChange:h,onClickRoot:m}},Fo=["tabindex","role","aria-checked"],Ao=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],To=["id","aria-hidden","disabled","value","name","tabindex"],Oo=q({name:"ElCheckbox"}),zo=q({...Oo,props:Zn,emits:el,setup(e){const t=e,n=An(),{inputId:l,isLabeledByFormItem:a,isChecked:s,isDisabled:i,isFocused:o,checkboxSize:r,hasOwnLabel:u,model:c,handleChange:f,onClickRoot:p}=tl(t,n),v=X("checkbox"),h=M(()=>[v.b(),v.m(r.value),v.is("disabled",i.value),v.is("bordered",t.border),v.is("checked",s.value)]),m=M(()=>[v.e("input"),v.is("disabled",i.value),v.is("checked",s.value),v.is("indeterminate",t.indeterminate),v.is("focus",o.value)]);return(g,S)=>(A(),re(ht(!C(u)&&C(a)?"span":"label"),{class:W(C(h)),"aria-controls":g.indeterminate?g.controls:null,onClick:C(p)},{default:Z(()=>[ee("span",{class:W(C(m)),tabindex:g.indeterminate?0:void 0,role:g.indeterminate?"checkbox":void 0,"aria-checked":g.indeterminate?"mixed":void 0},[g.trueLabel||g.falseLabel?Re((A(),B("input",{key:0,id:C(l),"onUpdate:modelValue":S[0]||(S[0]=y=>Ue(c)?c.value=y:null),class:W(C(v).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",name:g.name,tabindex:g.tabindex,disabled:C(i),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:S[1]||(S[1]=(...y)=>C(f)&&C(f)(...y)),onFocus:S[2]||(S[2]=y=>o.value=!0),onBlur:S[3]||(S[3]=y=>o.value=!1)},null,42,Ao)),[[it,C(c)]]):Re((A(),B("input",{key:1,id:C(l),"onUpdate:modelValue":S[4]||(S[4]=y=>Ue(c)?c.value=y:null),claLine truncated
|
||||
* escape-html
|
||||
* Copyright(c) 2012-2013 TJ Holowaychuk
|
||||
* Copyright(c) 2015 Andreas Lubbe
|
||||
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
||||
* MIT Licensed
|
||||
*/var As=/["'&<>]/,Ts=Os;function Os(e){var t=""+e,n=As.exec(t);if(!n)return t;var l,a="",s=0,i=0;for(s=n.index;s<t.length;s++){switch(t.charCodeAt(s)){case 34:l=""";break;case 38:l="&";break;case 39:l="'";break;case 60:l="<";break;case 62:l=">";break;default:continue}i!==s&&(a+=t.substring(i,s)),i=s+1,a+=l}return i!==s?a+t.substring(i,s):a}const zs=Ca(Ts),vt=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},Ws=function(e,t,n,l,a){if(!t&&!l&&(!a||Array.isArray(a)&&!a.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const s=l?null:function(o,r){return a?(Array.isArray(a)||(a=[a]),a.map(u=>typeof u=="string"?gt(o,u):u(o,r,e))):(t!=="$key"&&Ct(o)&&"$value"in o&&(o=o.$value),[Ct(o)?gt(o,t):o])},i=function(o,r){if(l)return l(o.value,r.value);for(let u=0,c=o.key.length;u<c;u++){if(o.key[u]<r.key[u])return-1;if(o.key[u]>r.key[u])return 1}return 0};return e.map((o,r)=>({value:o,index:r,key:s?s(o,r):null})).sort((o,r)=>{let u=i(o,r);return u||(u=o.index-r.index),u*+n}).map(o=>o.value)},ol=function(e,t){let n=null;return e.columns.forEach(l=>{l.id===t&&(n=l)}),n},Hs=function(e,t){let n=null;for(let l=0;l<e.columns.length;l++){const a=e.columns[l];if(a.columnKey===t){n=a;break}}return n||Vl("ElTable",`No column matching with column-key: ${t}`),n},hn=function(e,t,n){const l=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return l?ol(e,l[0]):null},ae=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let l=e;for(const a of n)l=l[a];return`${l}`}else if(typeof t=="function")return t.call(null,e)},Ae=function(e,t){const n={};return(e||[]).forEach((l,a)=>{n[ae(l,t)]={row:l,index:a}}),n};function _s(e,t){const n={};let l;for(l in e)n[l]=e[l];for(l in t)if(je(t,l)){const a=t[l];typeof a<"u"&&(n[l]=a)}return n}function Gt(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function sl(e){return e===""||e!==void 0&&(e=Gt(e),Number.isNaN(e)&&(e=80)),e}function Bs(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function Is(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...l)=>t(n(...l)))}function Ve(e,t,n){let l=!1;const a=e.indexOf(t),s=a!==-1,i=o=>{o==="add"?e.push(t):e.splice(a,1),l=!0,He(t.children)&&t.children.forEach(r=>{Ve(e,r,n??!s)})};return lt(n)?n&&!s?i("add"):!n&&s&&i("remove"):i(s?"remove":"add"),l}function Ks(e,t,n="children",l="hasChildren"){const a=i=>!(Array.isArray(i)&&i.length);function s(i,o,r){t(i,o,r),o.forEach(u=>{if(u[l]){t(u,null,r+1);return}const c=u[n];a(c)||s(u,c,r+1)})}e.forEach(i=>{if(i[l]){t(i,null,0);return}const o=i[n];a(o)||s(i,o,0)})}let Pe;function Ds(e,t,n,l,a){a=qn({enterable:!0,showArrow:!0},a);const s=e==null?void 0:e.dataset.prefix,i=e==null?void 0:e.querySelector(`.${s}-scrollbar__wrap`);function o(){const g=a.effect==="light",S=document.createElement("div");return S.className=[`${s}-popper`,g?"is-light":"is-dark",a.popperClass||""].join(" "),n=zs(n),S.innerHTML=n,S.style.zIndex=String(l()),e==null||e.appendChild(S),S}function r(){const g=document.createElement("div");return g.className=`${s}-popper__arrow`,g}function u(){c&&c.update()}Pe==null||Pe(),Pe=()=>{try{c&&c.destroy(),v&&(e==null||e.removeChild(v)),t.removeEventListener("mouseenter",f),t.removeEventListener("mouseleave",p),i==null||i.removeEventListener("scroll",Pe),Pe=void 0}catch{}};let c=null,f=u,p=Pe;a.enterable&&({onOpen:f,onClose:p}=fa({showAfter:a.showAfter,hideAfter:a.hideAfter,open:u,close:Pe}));const v=o();v.onmouseenter=f,v.onmouseleave=p;const h=[];if(a.offset&&h.push({name:"offset",options:{offset:[0,a.offset]}}),a.showArrow){const g=v.appendChild(r());h.push({name:"arrow",options:{element:g,padding:10}})}const m=a.popperOptions||{};return c=ha(t,v,{placement:a.placement||"top",strategy:"fixed",...m,modifiers:m.modifiers?h.concat(m.modifiers):h}),t.addEventListener("mouseenter",f),t.addEventListener("mouseleave",p),i==null||i.addEventListener("scroll",Pe),c}function rl(e){return e.children?po(e.children,rl):[e]}function pn(e,t){return e+t.colSpan}const il=(e,t,n,l)=>{let a=0,s=e;const i=n.states.columns.value;if(l){const r=rl(l[e]);a=i.slice(0,i.indexOf(r[0])).reduce(pn,0),s=a+r.reduce(pn,0)-1}else a=e;let o;switch(t){case"left":s<n.states.fixedLeafColumnsLength.value&&(o="left");break;case"right":a>=i.length-n.states.rightFixedLeafColumnsLength.value&&(o="right");break;default:s<n.states.fixedLeafColumnsLength.value?o="left":a>=i.length-n.states.rightFixedLeafColumnsLength.value&&(o="right")}return o?{direction:o,start:a,after:s}:{}},Ut=(e,t,n,l,a,s=0)=>{const i=[],{direction:o,start:r,after:u}=il(t,n,l,a);if(o){const c=o==="left";i.push(`${e}-fixed-column--${o}`),c&&u+s===l.states.fixedLeafColumnsLength.value-1?i.push("is-last-column"):!c&&r-s===l.states.columns.value.length-l.states.rightFixedLeafColumnsLength.value&&i.push("is-first-colLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{E as qe,b as Te,u as Le,_ as ue,w as Me,d as H,m as K,i as be,a as Re,r as ne,c as Ae,g as U,e as ye,f as Ve,h as Ze,j as Oe,k as Ge,T as Xe,l as Ce,n as he,o as Je,p as Ee,q as We,t as Ye,s as xe}from"./request-7df3eafb.js";import{E as Qe,u as et,a as tt,b as nt,c as st,d as ot,e as lt,_ as at}from"./CardTools.vue_vue_type_script_setup_true_lang-ad9cf0a7.js";import{n as V,d as N,c as k,p as rt,o as h,a as S,w as f,r as de,b as v,u as w,e as se,f as _,i as it,g as oe,h as T,j as ce,k as ut,t as Ne,l as q,m as Z,q as c,v as te,T as Pe,s as le,x as dt,y as ct,z as ae,A as ze,B as ft,C as z,D as E,E as x,F as G,G as j,H as A,I as Q,J as X,K as je,L as _e,M as we,N as ke,O as mt,P as pt,Q as vt,R as gt,S as bt}from"./index-c6e70cde.js";import{o as Be}from"./aria-bc8e8b0f.js";import{i as yt}from"./el-tag-3de5cb5d.js";import"./_commonjsHelpers-de833af9.js";import"./vnode-1ab6d357.js";const re="_trap-focus-children",O=[],$e=e=>{if(O.length===0)return;const t=O[O.length-1][re];if(t.length>0&&e.code===qe.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,o=e.target===t[0],i=e.target===t[t.length-1];o&&n&&(e.preventDefault(),t[t.length-1].focus()),i&&!n&&(e.preventDefault(),t[0].focus())}},Ct={beforeMount(e){e[re]=Be(e),O.push(e),O.length<=1&&document.addEventListener("keydown",$e)},updated(e){V(()=>{e[re]=Be(e)})},unmounted(){O.shift(),O.length===0&&document.removeEventListener("keydown",$e)}},De=Symbol("rowContextKey"),ht=["start","center","end","space-around","space-between","space-evenly"],Et=["top","middle","bottom"],wt=Te({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:ht,default:"start"},align:{type:String,values:Et}}),kt=N({name:"ElRow"}),Bt=N({...kt,props:wt,setup(e){const t=e,n=Le("row"),o=k(()=>t.gutter);rt(De,{gutter:o});const i=k(()=>{const r={};return t.gutter&&(r.marginRight=r.marginLeft=`-${t.gutter/2}px`),r}),l=k(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(r,d)=>(h(),S(_(r.tag),{class:v(w(l)),style:se(w(i))},{default:f(()=>[de(r.$slots,"default")]),_:3},8,["class","style"]))}});var $t=ue(Bt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const St=Me($t),It=Te({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:H([Number,Object]),default:()=>K({})},sm:{type:H([Number,Object]),default:()=>K({})},md:{type:H([Number,Object]),default:()=>K({})},lg:{type:H([Number,Object]),default:()=>K({})},xl:{type:H([Number,Object]),default:()=>K({})}}),Tt=N({name:"ElCol"}),Lt=N({...Tt,props:It,setup(e){const t=e,{gutter:n}=it(De,{gutter:k(()=>0)}),o=Le("col"),i=k(()=>{const r={};return n.value&&(r.paddingLeft=r.paddingRight=`${n.value/2}px`),r}),l=k(()=>{const r=[];return["span","offset","pull","push"].forEach(s=>{const g=t[s];be(g)&&(s==="span"?r.push(o.b(`${t[s]}`)):g>0&&r.push(o.b(`${s}-${t[s]}`)))}),["xs","sm","md","lg","xl"].forEach(s=>{be(t[s])?r.push(o.b(`${s}-${t[s]}`)):oe(t[s])&&Object.entries(t[s]).forEach(([g,b])=>{r.push(g!=="span"?o.b(`${s}-${g}-${b}`):o.b(`${s}-${b}`))})}),n.value&&r.push(o.is("guttered")),[o.b(),r]});return(r,d)=>(h(),S(_(r.tag),{class:v(w(l)),style:se(w(i))},{default:f(()=>[de(r.$slots,"default")]),_:3},8,["class","style"]))}});var Mt=ue(Lt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const Rt=Me(Mt);function At(e){let t;const n=T(!1),o=ce({...e,originalPosition:"",originalOverflow:"",visible:!1});function i(a){o.text=a}function l(){const a=o.parent,u=b.ns;if(!a.vLoadingAddClassList){let y=a.getAttribute("loading-number");y=Number.parseInt(y)-1,y?a.setAttribute("loading-number",y.toString()):(ne(a,u.bm("parent","relative")),a.removeAttribute("loading-number")),ne(a,u.bm("parent","hidden"))}r(),g.unmount()}function r(){var a,u;(u=(a=b.$el)==null?void 0:a.parentNode)==null||u.removeChild(b.$el)}function d(){var a;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(p,400),o.visible=!1,(a=e.closed)==null||a.call(e))}function p(){if(!n.value)return;const a=o.parent;n.value=!1,a.vLoadingAddClassList=void 0,l()}const s=N({name:"ElLoading",setup(a,{expose:u}){const{ns:y,zIndex:C}=Re("loading");return u({ns:y,zIndex:C}),()=>{const B=o.spinner||o.svg,I=q("svg",{class:"circular",viewBox:o.svgViewBox?o.svgViewBox:"0 0 50 50",...B?{innerHTML:B}:{}},[q("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),L=o.text?q("p",{class:y.b("text")},[o.text]):void 0;return q(Pe,{name:y.b("fade"),onAfterLeave:p},{default:f(()=>[Z(c("div",{style:{backgroundColor:o.background||""},class:[y.b("mask"),o.customClass,o.fullscreen?"is-fullscreen":""]},[q("div",{class:y.b("spinner")},[I,L])]),[[te,o.visible]])])})}}}),g=ut(s),b=g.mount(document.createElement("div"));return{...Ne(o),setText:i,removeElLoadingChiLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
:root{--el-loading-spinner-size:42px;--el-loading-fullscreen-spinner-size:50px}.el-loading-parent--relative{position:relative!important}.el-loading-parent--hidden{overflow:hidden!important}.el-loading-mask{position:absolute;z-index:2000;background-color:var(--el-mask-color);margin:0;top:0;right:0;bottom:0;left:0;transition:opacity var(--el-transition-duration)}.el-loading-mask.is-fullscreen{position:fixed}.el-loading-mask.is-fullscreen .el-loading-spinner{margin-top:calc((0px - var(--el-loading-fullscreen-spinner-size))/ 2)}.el-loading-mask.is-fullscreen .el-loading-spinner .circular{height:var(--el-loading-fullscreen-spinner-size);width:var(--el-loading-fullscreen-spinner-size)}.el-loading-spinner{top:50%;margin-top:calc((0px - var(--el-loading-spinner-size))/ 2);width:100%;text-align:center;position:absolute}.el-loading-spinner .el-loading-text{color:var(--el-color-primary);margin:3px 0;font-size:14px}.el-loading-spinner .circular{display:inline;height:var(--el-loading-spinner-size);width:var(--el-loading-spinner-size);-webkit-animation:loading-rotate 2s linear infinite;animation:loading-rotate 2s linear infinite}.el-loading-spinner .path{-webkit-animation:loading-dash 1.5s ease-in-out infinite;animation:loading-dash 1.5s ease-in-out infinite;stroke-dasharray:90,150;stroke-dashoffset:0;stroke-width:2;stroke:var(--el-color-primary);stroke-linecap:round}.el-loading-spinner i{color:var(--el-color-primary)}.el-loading-fade-enter-from,.el-loading-fade-leave-to{opacity:0}@-webkit-keyframes loading-rotate{to{transform:rotate(360deg)}}@keyframes loading-rotate{to{transform:rotate(360deg)}}@-webkit-keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}@keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}.el-row{display:flex;flex-wrap:wrap;position:relative;box-sizing:border-box}.el-row.is-justify-center{justify-content:center}.el-row.is-justify-end{justify-content:flex-end}.el-row.is-justify-space-between{justify-content:space-between}.el-row.is-justify-space-around{justify-content:space-around}.el-row.is-justify-space-evenly{justify-content:space-evenly}.el-row.is-align-top{align-items:flex-start}.el-row.is-align-middle{align-items:center}.el-row.is-align-bottom{align-items:flex-end}[class*=el-col-]{box-sizing:border-box}[class*=el-col-].is-guttered{display:block;min-height:1px}.el-col-0,.el-col-0.is-guttered{display:none}.el-col-0{max-width:0%;flex:0 0 0%}.el-col-offset-0{margin-left:0}.el-col-pull-0{position:relative;right:0}.el-col-push-0{position:relative;left:0}.el-col-1{max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-offset-1{margin-left:4.1666666667%}.el-col-pull-1{position:relative;right:4.1666666667%}.el-col-push-1{position:relative;left:4.1666666667%}.el-col-2{max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-offset-2{margin-left:8.3333333333%}.el-col-pull-2{position:relative;right:8.3333333333%}.el-col-push-2{position:relative;left:8.3333333333%}.el-col-3{max-width:12.5%;flex:0 0 12.5%}.el-col-offset-3{margin-left:12.5%}.el-col-pull-3{position:relative;right:12.5%}.el-col-push-3{position:relative;left:12.5%}.el-col-4{max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-offset-4{margin-left:16.6666666667%}.el-col-pull-4{position:relative;right:16.6666666667%}.el-col-push-4{position:relative;left:16.6666666667%}.el-col-5{max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-offset-5{margin-left:20.8333333333%}.el-col-pull-5{position:relative;right:20.8333333333%}.el-col-push-5{position:relative;left:20.8333333333%}.el-col-6{max-width:25%;flex:0 0 25%}.el-col-offset-6{margin-left:25%}.el-col-pull-6{position:relative;right:25%}.el-col-push-6{position:relative;left:25%}.el-col-7{max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-offset-7{margin-left:29.1666666667%}.el-col-pull-7{position:relative;right:29.1666666667%}.el-col-push-7{position:relative;left:29.1666666667%}.el-col-8{max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-offset-8{margin-left:33.3333333333%}.el-col-pull-8{position:relative;right:33.3333333333%}.el-col-push-8{position:relative;left:33.3333333333%}.el-col-9{max-width:37.5%;flex:0 0 37.5%}.el-col-offset-9{margin-left:37.5%}.el-col-pull-9{position:relative;right:37.5%}.el-col-push-9{position:relative;left:37.5%}.el-col-10{max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-offset-10{margin-left:41.6666666667%}.el-col-pull-10{position:relative;right:41.6666666667%}.el-col-push-10{position:relative;left:41.6666666667%}.el-col-11{max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-offset-11{margin-left:45.8333333333%}.el-col-pull-11{position:relative;right:45.8333333333%}.el-col-push-11{position:relative;left:45.8333333333%}.el-col-12{max-width:50%;flex:0 0 50%}.el-col-offset-12{margin-left:50%}.el-col-pull-12{pLine truncated
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
import{b as V,v as me,U as ee,i as se,x as oe,C as Me,y as Ke,z as q,u as T,_ as z,n as He,A as We,B as Xe,D as ve,w as ye,F as be,G as te,H as ge,d as $,m as J,I as Je,k as N,J as Qe,K as Ye,L as Ze,M as et,N as tt,O as at,P as st,Q as ot,R as lt,s as he,S as nt,j as _e,f as rt}from"./request-7df3eafb.js";import{f as it,c as ke,d as Ee,e as ut,_ as dt}from"./CardTools.vue_vue_type_script_setup_true_lang-ad9cf0a7.js";import"./el-tag-3de5cb5d.js";import{i as pt,E as ct,a as ft}from"./el-select-3d4ad24c.js";import"./el-popper-79e2cc61.js";import{s as le,h as P,i as Se,c as B,d as x,o as g,F as R,D as w,m as $e,U as Re,u as e,x as we,b as h,r as D,E as O,n as xe,J as A,H as F,e as De,A as Ce,p as Fe,j as mt,t as vt,z as Q,V as C,a as U,w as E,R as yt,S as bt,I as Ue,G as S,q as _,W as gt,X as ht,Y,g as ne,Z as _t,B as kt,_ as Et,$ as re,a0 as ie,Q as ae,a1 as St}from"./index-c6e70cde.js";import{b as $t}from"./_baseClone-245914c0.js";import"./_commonjsHelpers-de833af9.js";import"./vnode-1ab6d357.js";var Rt=1,wt=4;function ue(l){return $t(l,Rt|wt)}const Le=V({size:me,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),xt=V({...Le,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),Be={[ee]:l=>le(l)||se(l)||oe(l),[Me]:l=>le(l)||se(l)||oe(l)},Pe=Symbol("radioGroupKey"),Ve=(l,r)=>{const t=P(),o=Se(Pe,void 0),u=B(()=>!!o),c=B({get(){return u.value?o.modelValue:l.modelValue},set(p){u.value?o.changeEvent(p):r&&r(ee,p),t.value.checked=l.modelValue===l.label}}),f=Ke(B(()=>o==null?void 0:o.size)),y=q(B(()=>o==null?void 0:o.disabled)),m=P(!1),d=B(()=>y.value||u.value&&c.value!==l.label?-1:0);return{radioRef:t,isGroup:u,radioGroup:o,focus:m,size:f,disabled:y,tabIndex:d,modelValue:c}},Dt=["value","name","disabled"],Ct=x({name:"ElRadio"}),Ft=x({...Ct,props:xt,emits:Be,setup(l,{emit:r}){const t=l,o=T("radio"),{radioRef:u,radioGroup:c,focus:f,size:y,disabled:m,modelValue:d}=Ve(t,r);function p(){xe(()=>r("change",d.value))}return(n,a)=>{var i;return g(),R("label",{class:h([e(o).b(),e(o).is("disabled",e(m)),e(o).is("focus",e(f)),e(o).is("bordered",n.border),e(o).is("checked",e(d)===n.label),e(o).m(e(y))])},[w("span",{class:h([e(o).e("input"),e(o).is("disabled",e(m)),e(o).is("checked",e(d)===n.label)])},[$e(w("input",{ref_key:"radioRef",ref:u,"onUpdate:modelValue":a[0]||(a[0]=s=>we(d)?d.value=s:null),class:h(e(o).e("original")),value:n.label,name:n.name||((i=e(c))==null?void 0:i.name),disabled:e(m),type:"radio",onFocus:a[1]||(a[1]=s=>f.value=!0),onBlur:a[2]||(a[2]=s=>f.value=!1),onChange:p},null,42,Dt),[[Re,e(d)]]),w("span",{class:h(e(o).e("inner"))},null,2)],2),w("span",{class:h(e(o).e("label")),onKeydown:a[3]||(a[3]=O(()=>{},["stop"]))},[D(n.$slots,"default",{},()=>[A(F(n.label),1)])],34)],2)}}});var Ut=z(Ft,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const Lt=V({...Le,name:{type:String,default:""}}),Bt=["value","name","disabled"],Pt=x({name:"ElRadioButton"}),Vt=x({...Pt,props:Lt,setup(l){const r=l,t=T("radio"),{radioRef:o,focus:u,size:c,disabled:f,modelValue:y,radioGroup:m}=Ve(r),d=B(()=>({backgroundColor:(m==null?void 0:m.fill)||"",borderColor:(m==null?void 0:m.fill)||"",boxShadow:m!=null&&m.fill?`-1px 0 0 0 ${m.fill}`:"",color:(m==null?void 0:m.textColor)||""}));return(p,n)=>{var a;return g(),R("label",{class:h([e(t).b("button"),e(t).is("active",e(y)===p.label),e(t).is("disabled",e(f)),e(t).is("focus",e(u)),e(t).bm("button",e(c))])},[$e(w("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":n[0]||(n[0]=i=>we(y)?y.value=i:null),class:h(e(t).be("button","original-radio")),value:p.label,type:"radio",name:p.name||((a=e(m))==null?void 0:a.name),disabled:e(f),onFocus:n[1]||(n[1]=i=>u.value=!0),onBlur:n[2]||(n[2]=i=>u.value=!1)},null,42,Bt),[[Re,e(y)]]),w("span",{class:h(e(t).be("button","inner")),style:De(e(y)===p.label?e(d):{}),onKeydown:n[3]||(n[3]=O(()=>{},["stop"]))},[D(p.$slots,"default",{},()=>[A(F(p.label),1)])],38)],2)}}});var Te=z(Vt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const Tt=V({id:{type:String,default:void 0},size:me,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),Ot=Be,It=["id","aria-label","aria-labelledby"],Nt=x({name:"ElRadioGroup"}),zt=x({...Nt,props:Tt,emits:Ot,setup(l,{emit:r}){const t=l,o=T("radio"),u=He(),c=P(),{formItem:f}=We(),{inputId:y,isLabeledByFormItem:m}=Xe(t,{formItemContext:f}),d=n=>{r(ee,n),xe(()=>r("change",n))};Ce(()=>{const n=c.value.querySelectorAll("[type=radio]"),a=n[0];!Array.from(n).some(i=>i.checked)&&a&&(a.tabIndex=0)});const p=B(()=>t.name||u.value);return Fe(Pe,mt({...vt(t),changeEvent:d,name:p})),Q(()=>t.modelValue,()=>{t.validateEvent&&(f==null||f.validate("change").catch(n=>ve()))}),(n,a)=>(g(),R("diLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
@charset "UTF-8";.el-radio-group{display:inline-flex;align-items:center;flex-wrap:wrap;font-size:0}.el-radio{--el-radio-font-size:var(--el-font-size-base);--el-radio-text-color:var(--el-text-color-regular);--el-radio-font-weight:var(--el-font-weight-primary);--el-radio-input-height:14px;--el-radio-input-width:14px;--el-radio-input-border-radius:var(--el-border-radius-circle);--el-radio-input-bg-color:var(--el-fill-color-blank);--el-radio-input-border:var(--el-border);--el-radio-input-border-color:var(--el-border-color);--el-radio-input-border-color-hover:var(--el-color-primary)}.el-radio{color:var(--el-radio-text-color);font-weight:var(--el-radio-font-weight);position:relative;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;outline:0;font-size:var(--el-font-size-base);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-right:32px;height:32px}.el-radio.el-radio--large{height:40px}.el-radio.el-radio--small{height:24px}.el-radio.is-bordered{padding:0 15px 0 9px;border-radius:var(--el-border-radius-base);border:var(--el-border);box-sizing:border-box}.el-radio.is-bordered.is-checked{border-color:var(--el-color-primary)}.el-radio.is-bordered.is-disabled{cursor:not-allowed;border-color:var(--el-border-color-lighter)}.el-radio.is-bordered.el-radio--large{padding:0 19px 0 11px;border-radius:var(--el-border-radius-base)}.el-radio.is-bordered.el-radio--large .el-radio__label{font-size:var(--el-font-size-base)}.el-radio.is-bordered.el-radio--large .el-radio__inner{height:14px;width:14px}.el-radio.is-bordered.el-radio--small{padding:0 11px 0 7px;border-radius:var(--el-border-radius-base)}.el-radio.is-bordered.el-radio--small .el-radio__label{font-size:12px}.el-radio.is-bordered.el-radio--small .el-radio__inner{height:12px;width:12px}.el-radio:last-child{margin-right:0}.el-radio__input{white-space:nowrap;cursor:pointer;outline:0;display:inline-flex;position:relative;vertical-align:middle}.el-radio__input.is-disabled .el-radio__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color);cursor:not-allowed}.el-radio__input.is-disabled .el-radio__inner:after{cursor:not-allowed;background-color:var(--el-disabled-bg-color)}.el-radio__input.is-disabled .el-radio__inner+.el-radio__label{cursor:not-allowed}.el-radio__input.is-disabled.is-checked .el-radio__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color)}.el-radio__input.is-disabled.is-checked .el-radio__inner:after{background-color:var(--el-text-color-placeholder)}.el-radio__input.is-disabled+span.el-radio__label{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-radio__input.is-checked .el-radio__inner{border-color:var(--el-color-primary);background:var(--el-color-primary)}.el-radio__input.is-checked .el-radio__inner:after{transform:translate(-50%,-50%) scale(1)}.el-radio__input.is-checked+.el-radio__label{color:var(--el-color-primary)}.el-radio__input.is-focus .el-radio__inner{border-color:var(--el-radio-input-border-color-hover)}.el-radio__inner{border:var(--el-radio-input-border);border-radius:var(--el-radio-input-border-radius);width:var(--el-radio-input-width);height:var(--el-radio-input-height);background-color:var(--el-radio-input-bg-color);position:relative;cursor:pointer;display:inline-block;box-sizing:border-box}.el-radio__inner:hover{border-color:var(--el-radio-input-border-color-hover)}.el-radio__inner:after{width:4px;height:4px;border-radius:var(--el-radio-input-border-radius);background-color:var(--el-color-white);content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(0);transition:transform .15s ease-in}.el-radio__original{opacity:0;outline:0;position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;margin:0}.el-radio__original:focus-visible+.el-radio__inner{outline:2px solid var(--el-radio-input-border-color-hover);outline-offset:1px;border-radius:var(--el-radio-input-border-radius)}.el-radio:focus:not(:focus-visible):not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner{box-shadow:0 0 2px 2px var(--el-radio-input-border-color-hover)}.el-radio__label{font-size:var(--el-radio-font-size);padding-left:8px}.el-radio.el-radio--large .el-radio__label{font-size:14px}.el-radio.el-radio--large .el-radio__inner{width:14px;height:14px}.el-radio.el-radio--small .el-radio__label{font-size:12px}.el-radio.el-radio--small .el-radio__inner{width:12px;height:12px}.el-upload{--el-upload-dragger-padding-horizontal:40px;--el-upload-dragger-padding-vertical:10px}.el-upload{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;outline:0}.el-upload__input{display:none}.el-upload__tip{font-size:12px;color:var(--el-text-color-regular);margin-top:7px}.el-upload iframe{position:absolute;z-index:-1;top:0;left:0;opacity:0}.el-upload--picture-card{--el-upload-picture-card-size:148px;background-color:var(--el-fill-color-lighter);border:1px dashed var(--el-border-color-darker)Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
.left-menu{margin-bottom:1rem;cursor:pointer;text-align:center;font-weight:700;font-size:1rem;letter-spacing:.4rem}
|
||||
@@ -0,0 +1 @@
|
||||
import{s as g,S as f,j as c,f as U}from"./request-7df3eafb.js";import{E as w,a as z}from"./el-form-item-05e3aa6e.js";import"./el-tag-3de5cb5d.js";import{E as S,a as x}from"./el-select-3d4ad24c.js";import"./el-popper-79e2cc61.js";import{d as E,Q as C,h,a as B,w as o,o as V,q as e,u as n,J as b,D as i,H as m,F as M,G as N}from"./index-c6e70cde.js";import"./_baseClone-245914c0.js";const D={style:{"margin-left":"0.4rem"}},I={style:{"margin-left":"0.4rem"}},A={key:0},F={style:{display:"flex",height:"38px"}},q={style:{"margin-right":"0.4rem"}},K={style:{width:"200px","margin-left":"0.4rem"}},T={style:{display:"flex",height:"38px"}},j={style:{width:"3rem","margin-right":"0.4rem"}},G={style:{width:"200px","margin-left":"0.4rem"}},H={style:{display:"flex",height:"38px"}},J={style:{"margin-right":"0.4rem"}},O={style:{width:"200px","margin-left":"0.4rem"}},Q={style:{display:"flex",height:"38px"}},L={style:{width:"3rem","margin-right":"0.4rem"}},P={style:{width:"200px","margin-left":"0.4rem"}},te=E({__name:"SettingView",setup(R){const{t:s}=C(),l=h({name:"",description:"",file_storage:"",admin_token:"",keywords:"",openUpload:1,uploadSize:1,uploadMinute:1,s3_access_key_id:"",background:"",s3_secret_access_key:"",aws_session_token:"",s3_bucket_name:"",s3_endpoint_url:"",uploadCount:1,errorMinute:1,errorCount:1});(()=>{g({url:"/admin/config/get",method:"get"}).then(r=>{l.value=r.detail})})();const v=()=>{g({url:"/admin/config/update",method:"patch",data:l.value}).then(r=>{r.code==200?f.success(s("admin.settings.saveSuccess")):f.error(r.message)})};return(r,a)=>{const u=c,d=z,p=S,_=x,y=U,k=w;return V(),B(k,null,{default:o(()=>[e(d,{size:"large",label:n(s)("admin.settings.name")},{default:o(()=>[e(u,{modelValue:l.value.name,"onUpdate:modelValue":a[0]||(a[0]=t=>l.value.name=t)},null,8,["modelValue"])]),_:1},8,["label"]),e(d,{size:"large",label:n(s)("admin.settings.description")},{default:o(()=>[e(u,{modelValue:l.value.description,"onUpdate:modelValue":a[1]||(a[1]=t=>l.value.description=t)},null,8,["modelValue"])]),_:1},8,["label"]),e(d,{size:"large",label:n(s)("admin.settings.keywords"),style:{"letter-spacing":"0.3rem"}},{default:o(()=>[e(u,{modelValue:l.value.keywords,"onUpdate:modelValue":a[2]||(a[2]=t=>l.value.keywords=t)},null,8,["modelValue"])]),_:1},8,["label"]),e(d,{size:"large",label:n(s)("admin.settings.background")},{default:o(()=>[e(u,{modelValue:l.value.background,"onUpdate:modelValue":a[3]||(a[3]=t=>l.value.background=t)},null,8,["modelValue"])]),_:1},8,["label"]),e(d,{size:"large",label:n(s)("admin.settings.admin_token")},{default:o(()=>[e(u,{type:"password",modelValue:l.value.admin_token,"onUpdate:modelValue":a[4]||(a[4]=t=>l.value.admin_token=t)},null,8,["modelValue"])]),_:1},8,["label"]),e(d,{size:"large",label:n(s)("admin.settings.uploadSize")},{append:o(()=>[b("Bytes")]),default:o(()=>[e(u,{type:"number",modelValue:l.value.uploadSize,"onUpdate:modelValue":a[5]||(a[5]=t=>l.value.uploadSize=t)},null,8,["modelValue"]),i("small",null,m(n(s)("admin.settings.uploadSizeNote")),1)]),_:1},8,["label"]),e(d,{size:"large",label:n(s)("admin.settings.openUpload.title")},{default:o(()=>[e(_,{modelValue:l.value.openUpload,"onUpdate:modelValue":a[6]||(a[6]=t=>l.value.openUpload=t)},{default:o(()=>[e(p,{label:n(s)("admin.settings.openUpload.open"),value:1},null,8,["label"]),e(p,{label:n(s)("admin.settings.openUpload.close"),value:0},null,8,["label"])]),_:1},8,["modelValue"]),i("small",D,m(n(s)("admin.settings.openUpload.note")),1)]),_:1},8,["label"]),e(d,{size:"large",label:n(s)("admin.settings.file_storage.title")},{default:o(()=>[e(_,{modelValue:l.value.file_storage,"onUpdate:modelValue":a[7]||(a[7]=t=>l.value.file_storage=t)},{default:o(()=>[e(p,{label:n(s)("admin.settings.file_storage.local"),value:"local"},null,8,["label"]),e(p,{label:n(s)("admin.settings.file_storage.s3"),value:"s3"},null,8,["label"])]),_:1},8,["modelValue"]),i("small",I,m(n(s)("admin.settings.file_storage.note")),1)]),_:1},8,["label"]),l.value.file_storage==="s3"?(V(),M("div",A,[e(d,{size:"large",label:"S3 AccessKeyId"},{default:o(()=>[e(u,{modelValue:l.value.s3_access_key_id,"onUpdate:modelValue":a[8]||(a[8]=t=>l.value.s3_access_key_id=t)},null,8,["modelValue"])]),_:1}),e(d,{size:"large",label:"S3 SecretAccessKey"},{default:o(()=>[e(u,{modelValue:l.value.s3_secret_access_key,"onUpdate:modelValue":a[9]||(a[9]=t=>l.value.s3_secret_access_key=t)},null,8,["modelValue"])]),_:1}),e(d,{size:"large",label:"S3 BucketName"},{default:o(()=>[e(u,{modelValue:l.value.s3_bucket_name,"onUpdate:modelValue":a[10]||(a[10]=t=>l.value.s3_bucket_name=t)},null,8,["modelValue"])]),_:1}),e(d,{size:"large",label:"S3 EndpointUrl"},{default:o(()=>[e(u,{modelValue:l.value.s3_endpoint_url,"onUpdate:modelValue":a[11]||(a[11]=t=>l.value.s3_endpoint_url=t)},null,8,["modelValue"])]),_:1}),e(d,{size:"large",label:"Aws Session Token"},{default:o(()=>[e(u,{modelValue:l.value.aws_session_token,"onUpdate:modelValue":a[12]||(a[12]=t=>l.value.aws_session_token=t)},null,8,["modelValue"])]),Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{d as T,k as F,e as j,o as C,s as _,b as N,g as v,p as K,q as E,m as R,r as p,t as u,v as B,j as q,f as J,l as W,n as Y,S as H,w as Q}from"./el-popper-79e2cc61.js";import{ak as m,am as M,ah as V,al as X,aJ as Z}from"./request-7df3eafb.js";function k(t,e){for(var n=-1,o=t==null?0:t.length;++n<o&&e(t[n],n,t)!==!1;);return t}function z(t,e){return t&&T(e,F(e),t)}function tt(t,e){return t&&T(e,j(e),t)}function et(t,e){return T(t,C(t),e)}var rt=Object.getOwnPropertySymbols,nt=rt?function(t){for(var e=[];t;)N(e,C(t)),t=v(t);return e}:_;const x=nt;function at(t,e){return T(t,x(t),e)}function ot(t){return K(t,j,x)}var st=Object.prototype,ct=st.hasOwnProperty;function it(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&ct.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function ft(t,e){var n=e?E(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var gt=/\w*$/;function bt(t){var e=new t.constructor(t.source,gt.exec(t));return e.lastIndex=t.lastIndex,e}var w=m?m.prototype:void 0,I=w?w.valueOf:void 0;function yt(t){return I?Object(I.call(t)):{}}var ut="[object Boolean]",Tt="[object Date]",lt="[object Map]",jt="[object Number]",pt="[object RegExp]",At="[object Set]",dt="[object String]",$t="[object Symbol]",St="[object ArrayBuffer]",mt="[object DataView]",wt="[object Float32Array]",It="[object Float64Array]",Ot="[object Int8Array]",ht="[object Int16Array]",Ft="[object Int32Array]",Ct="[object Uint8Array]",Et="[object Uint8ClampedArray]",Bt="[object Uint16Array]",Mt="[object Uint32Array]";function xt(t,e,n){var o=t.constructor;switch(e){case St:return E(t);case ut:case Tt:return new o(+t);case mt:return ft(t,n);case wt:case It:case Ot:case ht:case Ft:case Ct:case Et:case Bt:case Mt:return R(t,n);case lt:return new o;case jt:case dt:return new o(t);case pt:return bt(t);case At:return new o;case $t:return yt(t)}}var Lt="[object Map]";function Ut(t){return M(t)&&p(t)==Lt}var O=u&&u.isMap,Pt=O?B(O):Ut;const Dt=Pt;var Gt="[object Set]";function _t(t){return M(t)&&p(t)==Gt}var h=u&&u.isSet,Nt=h?B(h):_t;const vt=Nt;var Kt=1,Rt=2,qt=4,L="[object Arguments]",Jt="[object Array]",Wt="[object Boolean]",Yt="[object Date]",Ht="[object Error]",U="[object Function]",Qt="[object GeneratorFunction]",Vt="[object Map]",Xt="[object Number]",P="[object Object]",Zt="[object RegExp]",kt="[object Set]",zt="[object String]",te="[object Symbol]",ee="[object WeakMap]",re="[object ArrayBuffer]",ne="[object DataView]",ae="[object Float32Array]",oe="[object Float64Array]",se="[object Int8Array]",ce="[object Int16Array]",ie="[object Int32Array]",fe="[object Uint8Array]",ge="[object Uint8ClampedArray]",be="[object Uint16Array]",ye="[object Uint32Array]",r={};r[L]=r[Jt]=r[re]=r[ne]=r[Wt]=r[Yt]=r[ae]=r[oe]=r[se]=r[ce]=r[ie]=r[Vt]=r[Xt]=r[P]=r[Zt]=r[kt]=r[zt]=r[te]=r[fe]=r[ge]=r[be]=r[ye]=!0;r[Ht]=r[U]=r[ee]=!1;function l(t,e,n,o,g,s){var a,b=e&Kt,y=e&Rt,D=e&qt;if(n&&(a=g?n(t,o,g,s):n(t)),a!==void 0)return a;if(!V(t))return t;var A=X(t);if(A){if(a=it(t),!b)return q(t,a)}else{var f=p(t),d=f==U||f==Qt;if(J(t))return W(t,b);if(f==P||f==L||d&&!g){if(a=y||d?{}:Y(t),!b)return y?at(t,tt(a,t)):et(t,z(a,t))}else{if(!r[f])return g?t:{};a=xt(t,f,b)}}s||(s=new H);var $=s.get(t);if($)return $;s.set(t,a),vt(t)?t.forEach(function(c){a.add(l(c,e,n,c,t,s))}):Dt(t)&&t.forEach(function(c,i){a.set(i,l(c,e,n,i,t,s))});var G=D?y?ot:Q:y?j:F,S=A?void 0:G(t);return k(S||t,function(c,i){S&&(i=c,c=t[i]),Z(a,i,l(c,e,n,i,t,s))}),a}export{l as b};
|
||||
Loaded 100 of 186 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user