glide-the commited on
Commit
1f3bd14
1 Parent(s): 60dd9ec

Add application file

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. rvc/infer_pack/__pycache__/__init__.cpython-310.pyc +0 -0
  2. rvc/infer_pack/__pycache__/attentions.cpython-310.pyc +0 -0
  3. rvc/infer_pack/__pycache__/commons.cpython-310.pyc +0 -0
  4. rvc/infer_pack/__pycache__/models.cpython-310.pyc +0 -0
  5. rvc/infer_pack/__pycache__/transforms.cpython-310.pyc +0 -0
  6. rvc/infer_pack/modules/__pycache__/__init__.cpython-310.pyc +0 -0
  7. rvc/model/lulu/config.json +0 -11
  8. rvc/model/lulu/cover.png +0 -0
  9. rvc/model/lulu/lulu-epoch.pth +0 -3
  10. rvc/rvc.yaml +0 -3
  11. speakers/common/__pycache__/__init__.cpython-310.pyc +0 -0
  12. speakers/common/__pycache__/general.cpython-310.pyc +0 -0
  13. speakers/common/__pycache__/log.cpython-310.pyc +0 -0
  14. speakers/common/__pycache__/registry.cpython-310.pyc +0 -0
  15. speakers/common/__pycache__/utils.cpython-310.pyc +0 -0
  16. speakers/load/__pycache__/__init__.cpython-310.pyc +0 -0
  17. speakers/load/__pycache__/serializable.cpython-310.pyc +0 -0
  18. speakers/processors/__init__.py +2 -0
  19. speakers/processors/__pycache__/__init__.cpython-310.pyc +0 -0
  20. speakers/processors/__pycache__/bark_to_voice.cpython-310.pyc +0 -0
  21. speakers/processors/__pycache__/base_processor.cpython-310.pyc +0 -0
  22. speakers/processors/__pycache__/edge_to_voice.cpython-310.pyc +0 -0
  23. speakers/processors/__pycache__/rvc_speakers_processor.cpython-310.pyc +0 -0
  24. speakers/processors/__pycache__/vits_to_voice.cpython-310.pyc +0 -0
  25. speakers/processors/edge_to_voice.py +107 -0
  26. speakers/server/__pycache__/__init__.cpython-310.pyc +0 -0
  27. speakers/server/__pycache__/utils.cpython-310.pyc +0 -0
  28. speakers/server/bootstrap/__pycache__/__init__.cpython-310.pyc +0 -0
  29. speakers/server/bootstrap/__pycache__/base.cpython-310.pyc +0 -0
  30. speakers/server/bootstrap/__pycache__/bootstrap_register.cpython-310.pyc +0 -0
  31. speakers/server/bootstrap/__pycache__/runner_bootstrap.cpython-310.pyc +0 -0
  32. speakers/server/model/__pycache__/flow_data.cpython-310.pyc +0 -0
  33. speakers/server/model/__pycache__/result.cpython-310.pyc +0 -0
  34. speakers/server/model/flow_data.py +25 -3
  35. speakers/server/servlet/__pycache__/document.cpython-310.pyc +0 -0
  36. speakers/server/servlet/__pycache__/runner.cpython-310.pyc +0 -0
  37. speakers/server/servlet/runner.py +16 -11
  38. speakers/server/static/favicon.png +0 -0
  39. speakers/server/static/index.html +1 -1
  40. speakers/server/static/static/css/{chunk-0d381050.0c63b661.css → chunk-3be99966.b6bad205.css} +0 -0
  41. speakers/server/static/static/js/{app.7b0ed3f7.js → app.22b7d820.js} +1 -1
  42. speakers/server/static/static/js/chunk-0d381050.86edc397.js +0 -2
  43. speakers/server/static/static/js/chunk-3be99966.e6e6dca2.js +2 -0
  44. speakers/speakers.py +19 -10
  45. speakers/speakers.yaml +12 -1
  46. speakers/tasks/__init__.py +2 -0
  47. speakers/tasks/__pycache__/__init__.cpython-310.pyc +0 -0
  48. speakers/tasks/__pycache__/bark_voice_task.cpython-310.pyc +0 -0
  49. speakers/tasks/__pycache__/base_task.cpython-310.pyc +0 -0
  50. speakers/tasks/__pycache__/edge_voice_task.cpython-310.pyc +0 -0
rvc/infer_pack/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/rvc/infer_pack/__pycache__/__init__.cpython-310.pyc and b/rvc/infer_pack/__pycache__/__init__.cpython-310.pyc differ
 
rvc/infer_pack/__pycache__/attentions.cpython-310.pyc CHANGED
Binary files a/rvc/infer_pack/__pycache__/attentions.cpython-310.pyc and b/rvc/infer_pack/__pycache__/attentions.cpython-310.pyc differ
 
rvc/infer_pack/__pycache__/commons.cpython-310.pyc CHANGED
Binary files a/rvc/infer_pack/__pycache__/commons.cpython-310.pyc and b/rvc/infer_pack/__pycache__/commons.cpython-310.pyc differ
 
rvc/infer_pack/__pycache__/models.cpython-310.pyc CHANGED
Binary files a/rvc/infer_pack/__pycache__/models.cpython-310.pyc and b/rvc/infer_pack/__pycache__/models.cpython-310.pyc differ
 
rvc/infer_pack/__pycache__/transforms.cpython-310.pyc CHANGED
Binary files a/rvc/infer_pack/__pycache__/transforms.cpython-310.pyc and b/rvc/infer_pack/__pycache__/transforms.cpython-310.pyc differ
 
rvc/infer_pack/modules/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/rvc/infer_pack/modules/__pycache__/__init__.cpython-310.pyc and b/rvc/infer_pack/modules/__pycache__/__init__.cpython-310.pyc differ
 
rvc/model/lulu/config.json DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "model": "lulu-epoch.pth",
3
- "feat_index": "added_IVF256_Flat_nprobe_1_lulu-epoch_v2.index",
4
- "speaker_id": 0,
5
-
6
- "name": "露露",
7
- "author": "露露",
8
- "source": "露露",
9
- "note": "我是你的甜心陪玩,选我,选我~",
10
- "icon": "cover.jpg"
11
- }
 
 
 
 
 
 
 
 
 
 
 
 
rvc/model/lulu/cover.png DELETED
Binary file (169 kB)
 
rvc/model/lulu/lulu-epoch.pth DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:cb020d92223738e3e0500e43fa55fb9788d1ae19ac21b0375d52d4bf035a790b
3
- size 55224656
 
 
 
 
rvc/rvc.yaml CHANGED
@@ -13,6 +13,3 @@ models:
13
  - bob:
14
  model_name: "bob"
15
  path: "model/bob"
16
- - lulu:
17
- model_name: "lulu"
18
- path: "model/lulu"
 
13
  - bob:
14
  model_name: "bob"
15
  path: "model/bob"
 
 
 
speakers/common/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/speakers/common/__pycache__/__init__.cpython-310.pyc and b/speakers/common/__pycache__/__init__.cpython-310.pyc differ
 
speakers/common/__pycache__/general.cpython-310.pyc CHANGED
Binary files a/speakers/common/__pycache__/general.cpython-310.pyc and b/speakers/common/__pycache__/general.cpython-310.pyc differ
 
speakers/common/__pycache__/log.cpython-310.pyc CHANGED
Binary files a/speakers/common/__pycache__/log.cpython-310.pyc and b/speakers/common/__pycache__/log.cpython-310.pyc differ
 
speakers/common/__pycache__/registry.cpython-310.pyc CHANGED
Binary files a/speakers/common/__pycache__/registry.cpython-310.pyc and b/speakers/common/__pycache__/registry.cpython-310.pyc differ
 
speakers/common/__pycache__/utils.cpython-310.pyc CHANGED
Binary files a/speakers/common/__pycache__/utils.cpython-310.pyc and b/speakers/common/__pycache__/utils.cpython-310.pyc differ
 
speakers/load/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/speakers/load/__pycache__/__init__.cpython-310.pyc and b/speakers/load/__pycache__/__init__.cpython-310.pyc differ
 
speakers/load/__pycache__/serializable.cpython-310.pyc CHANGED
Binary files a/speakers/load/__pycache__/serializable.cpython-310.pyc and b/speakers/load/__pycache__/serializable.cpython-310.pyc differ
 
speakers/processors/__init__.py CHANGED
@@ -12,6 +12,7 @@ from speakers.processors.base_processor import ProcessorData
12
  from speakers.processors.rvc_speakers_processor import RvcProcessorData
13
  from speakers.processors.vits_to_voice import VitsProcessorData
14
  from speakers.processors.bark_to_voice import BarkProcessorData
 
15
 
16
  __all__ = [
17
  "BaseProcessor",
@@ -19,6 +20,7 @@ __all__ = [
19
  "RvcProcessorData",
20
  "VitsProcessorData",
21
  "BarkProcessorData",
 
22
  "get_processors",
23
  "load_preprocess",
24
  ]
 
12
  from speakers.processors.rvc_speakers_processor import RvcProcessorData
13
  from speakers.processors.vits_to_voice import VitsProcessorData
14
  from speakers.processors.bark_to_voice import BarkProcessorData
15
+ from speakers.processors.edge_to_voice import EdgeProcessorData
16
 
17
  __all__ = [
18
  "BaseProcessor",
 
20
  "RvcProcessorData",
21
  "VitsProcessorData",
22
  "BarkProcessorData",
23
+ "EdgeProcessorData",
24
  "get_processors",
25
  "load_preprocess",
26
  ]
speakers/processors/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/speakers/processors/__pycache__/__init__.cpython-310.pyc and b/speakers/processors/__pycache__/__init__.cpython-310.pyc differ
 
speakers/processors/__pycache__/bark_to_voice.cpython-310.pyc CHANGED
Binary files a/speakers/processors/__pycache__/bark_to_voice.cpython-310.pyc and b/speakers/processors/__pycache__/bark_to_voice.cpython-310.pyc differ
 
speakers/processors/__pycache__/base_processor.cpython-310.pyc CHANGED
Binary files a/speakers/processors/__pycache__/base_processor.cpython-310.pyc and b/speakers/processors/__pycache__/base_processor.cpython-310.pyc differ
 
speakers/processors/__pycache__/edge_to_voice.cpython-310.pyc ADDED
Binary file (3.33 kB). View file
 
speakers/processors/__pycache__/rvc_speakers_processor.cpython-310.pyc CHANGED
Binary files a/speakers/processors/__pycache__/rvc_speakers_processor.cpython-310.pyc and b/speakers/processors/__pycache__/rvc_speakers_processor.cpython-310.pyc differ
 
speakers/processors/__pycache__/vits_to_voice.cpython-310.pyc CHANGED
Binary files a/speakers/processors/__pycache__/vits_to_voice.cpython-310.pyc and b/speakers/processors/__pycache__/vits_to_voice.cpython-310.pyc differ
 
speakers/processors/edge_to_voice.py ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Optional, Union, Dict
2
+
3
+ from speakers.common.registry import registry
4
+ from speakers.processors import BaseProcessor, ProcessorData
5
+ from io import BytesIO
6
+ import logging
7
+ import numpy as np
8
+ import edge_tts
9
+ import asyncio
10
+ import nest_asyncio
11
+ import util
12
+ import librosa
13
+
14
+ logger = logging.getLogger('edge_to_voice')
15
+
16
+
17
+ def set_edge_to_voice_logger(l):
18
+ global logger
19
+ logger = l
20
+
21
+
22
+ class EdgeProcessorData(ProcessorData):
23
+ """
24
+ :param text: 生成文本
25
+ :param tts_speaker: 讲话人id
26
+ :param rate: 语速
27
+ :param volume: 语气轻重
28
+
29
+ """
30
+ """生成文本"""
31
+ text: str
32
+ """讲话人id"""
33
+ tts_speaker: int
34
+ """语速"""
35
+ rate: str
36
+ """语气轻重"""
37
+ volume: str
38
+
39
+
40
+ @property
41
+ def type(self) -> str:
42
+ """Type of the Message, used for serialization."""
43
+ return "EDGE"
44
+
45
+
46
+ @registry.register_processor("edge_to_voice")
47
+ class EdgeToVoice(BaseProcessor):
48
+
49
+ def __init__(self):
50
+ super().__init__()
51
+ nest_asyncio.apply()
52
+ self._tts_speakers_list = asyncio.get_event_loop().run_until_complete(edge_tts.list_voices()) # noqa
53
+
54
+ def __call__(
55
+ self,
56
+ data: EdgeProcessorData
57
+ ):
58
+
59
+ if data.text is None:
60
+ raise RuntimeError('Please provide TTS text.')
61
+
62
+ if data.tts_speaker is None:
63
+ raise RuntimeError('Please provide TTS text.')
64
+ # 同步调用协程代码
65
+ tts_np, tts_sr = asyncio.get_event_loop().run_until_complete( self._call_edge_tts(data=data))
66
+
67
+ return tts_np, tts_sr
68
+
69
+ @property
70
+ def tts_speakers_list(self):
71
+ return self._tts_speakers_list
72
+
73
+ @classmethod
74
+ def from_config(cls, cfg=None):
75
+ if cfg is None:
76
+ raise RuntimeError("from_config cfg is None.")
77
+
78
+ return cls()
79
+
80
+ def match(self, data: ProcessorData):
81
+ return "EDGE" in data.type
82
+
83
+ async def _call_edge_tts(self, data: EdgeProcessorData):
84
+
85
+ speaker = self._tts_speakers_list[data.tts_speaker]['ShortName']
86
+ tts_com = edge_tts.Communicate(text=data.text, voice=speaker, rate=data.rate, volume=data.volume)
87
+ tts_raw = b''
88
+
89
+ # Stream TTS audio to bytes
90
+ async for chunk in tts_com.stream():
91
+ if chunk['type'] == 'audio':
92
+ tts_raw += chunk['data']
93
+
94
+ # Convert mp3 stream to wav
95
+ ffmpeg_proc = await asyncio.create_subprocess_exec(
96
+ 'ffmpeg',
97
+ '-f', 'mp3',
98
+ '-i', '-',
99
+ '-f', 'wav',
100
+ '-loglevel', 'error',
101
+ '-',
102
+ stdin=asyncio.subprocess.PIPE,
103
+ stdout=asyncio.subprocess.PIPE
104
+ )
105
+ (tts_wav, _) = await ffmpeg_proc.communicate(tts_raw)
106
+
107
+ return librosa.load(BytesIO(tts_wav))
speakers/server/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/speakers/server/__pycache__/__init__.cpython-310.pyc and b/speakers/server/__pycache__/__init__.cpython-310.pyc differ
 
speakers/server/__pycache__/utils.cpython-310.pyc CHANGED
Binary files a/speakers/server/__pycache__/utils.cpython-310.pyc and b/speakers/server/__pycache__/utils.cpython-310.pyc differ
 
speakers/server/bootstrap/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/speakers/server/bootstrap/__pycache__/__init__.cpython-310.pyc and b/speakers/server/bootstrap/__pycache__/__init__.cpython-310.pyc differ
 
speakers/server/bootstrap/__pycache__/base.cpython-310.pyc CHANGED
Binary files a/speakers/server/bootstrap/__pycache__/base.cpython-310.pyc and b/speakers/server/bootstrap/__pycache__/base.cpython-310.pyc differ
 
speakers/server/bootstrap/__pycache__/bootstrap_register.cpython-310.pyc CHANGED
Binary files a/speakers/server/bootstrap/__pycache__/bootstrap_register.cpython-310.pyc and b/speakers/server/bootstrap/__pycache__/bootstrap_register.cpython-310.pyc differ
 
speakers/server/bootstrap/__pycache__/runner_bootstrap.cpython-310.pyc CHANGED
Binary files a/speakers/server/bootstrap/__pycache__/runner_bootstrap.cpython-310.pyc and b/speakers/server/bootstrap/__pycache__/runner_bootstrap.cpython-310.pyc differ
 
speakers/server/model/__pycache__/flow_data.cpython-310.pyc CHANGED
Binary files a/speakers/server/model/__pycache__/flow_data.cpython-310.pyc and b/speakers/server/model/__pycache__/flow_data.cpython-310.pyc differ
 
speakers/server/model/__pycache__/result.cpython-310.pyc CHANGED
Binary files a/speakers/server/model/__pycache__/result.cpython-310.pyc and b/speakers/server/model/__pycache__/result.cpython-310.pyc differ
 
speakers/server/model/flow_data.py CHANGED
@@ -2,6 +2,24 @@ from pydantic import BaseModel, Field
2
  from typing import Any, Dict, List, Optional, Union
3
 
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  class BarkProcessorData(BaseModel):
6
  """
7
  :param text: 生成文本
@@ -63,9 +81,9 @@ class RvcProcessorData(BaseModel):
63
 
64
  class BaseFlowData(BaseModel):
65
  """任务创建时间"""
66
- created_at: float
67
  """任务请求时间"""
68
- requested_at: float
69
 
70
 
71
  class VitsVoiceFlowData(BaseModel):
@@ -82,7 +100,11 @@ class BarkVoiceFlowData(BaseModel):
82
  rvc: RvcProcessorData
83
 
84
 
 
 
 
 
85
 
86
  class PayLoad(BaseFlowData):
87
  parameter: RunnerParameter
88
- payload: Union[Dict, BarkVoiceFlowData, VitsVoiceFlowData]
 
2
  from typing import Any, Dict, List, Optional, Union
3
 
4
 
5
+ class EdgeProcessorData(BaseModel):
6
+ """
7
+ :param text: 生成文本
8
+ :param tts_speaker: 讲话人id
9
+ :param rate: 语速
10
+ :param volume: 语气轻重
11
+
12
+ """
13
+ """生成文本"""
14
+ text: str
15
+ """讲话人id"""
16
+ tts_speaker: int
17
+ """语速"""
18
+ rate: str
19
+ """语气轻重"""
20
+ volume: str
21
+
22
+
23
  class BarkProcessorData(BaseModel):
24
  """
25
  :param text: 生成文本
 
81
 
82
  class BaseFlowData(BaseModel):
83
  """任务创建时间"""
84
+ created_at: float = Field(default=0)
85
  """任务请求时间"""
86
+ requested_at: float = Field(default=0)
87
 
88
 
89
  class VitsVoiceFlowData(BaseModel):
 
100
  rvc: RvcProcessorData
101
 
102
 
103
+ class EdgeVoiceFlowData(BaseModel):
104
+ edge: EdgeProcessorData
105
+ rvc: RvcProcessorData
106
+
107
 
108
  class PayLoad(BaseFlowData):
109
  parameter: RunnerParameter
110
+ payload: Union[Dict, EdgeVoiceFlowData, BarkVoiceFlowData, VitsVoiceFlowData]
speakers/server/servlet/__pycache__/document.cpython-310.pyc CHANGED
Binary files a/speakers/server/servlet/__pycache__/document.cpython-310.pyc and b/speakers/server/servlet/__pycache__/document.cpython-310.pyc differ
 
speakers/server/servlet/__pycache__/runner.cpython-310.pyc CHANGED
Binary files a/speakers/server/servlet/__pycache__/runner.cpython-310.pyc and b/speakers/server/servlet/__pycache__/runner.cpython-310.pyc differ
 
speakers/server/servlet/runner.py CHANGED
@@ -40,9 +40,7 @@ def constant_compare(a, b):
40
  async def submit_async(payload: PayLoad):
41
  """
42
  Adds new task to the queue
43
- task_id = f'{calculate_md5(flowData.vits.text)}-{flowData.vits.speaker_id}-{flowData.vits.language}' \
44
- f'-{flowData.vits.noise_scale}-{flowData.vits.speed}-{flowData.vits.noise_scale_w}' \
45
- f'-{flowData.rvc.model_index}-{flowData.rvc.f0_up_key}'
46
  """
47
 
48
  runner_bootstrap_web = get_bootstrap("runner_bootstrap_web")
@@ -138,12 +136,19 @@ async def post_task_update_async(runner_state: RunnerState):
138
 
139
 
140
  async def result_async(task_id: str = Query(..., examples=["task_id"])):
141
- filepath = get_tmp_path(f'result/{task_id}.wav')
142
- logger.info(f'Task {task_id} result_async {filepath}')
143
- if os.path.exists(filepath):
144
- return FileResponse(
145
- path=filepath,
146
- filename=f"{task_id}.wav",
147
- media_type="multipart/form-data")
148
- else:
 
 
 
 
 
 
 
149
  return BaseResponse(code=500, msg=f"{task_id}.wav 读取文件失败")
 
40
  async def submit_async(payload: PayLoad):
41
  """
42
  Adds new task to the queue
43
+ @see task function prepare gen taskid
 
 
44
  """
45
 
46
  runner_bootstrap_web = get_bootstrap("runner_bootstrap_web")
 
136
 
137
 
138
  async def result_async(task_id: str = Query(..., examples=["task_id"])):
139
+ try:
140
+
141
+ filepath = get_tmp_path(f'result/{task_id}.wav')
142
+ logger.info(f'Task {task_id} result_async {filepath}')
143
+ if os.path.exists(filepath):
144
+ return FileResponse(
145
+ path=filepath,
146
+ filename=f"{task_id}.wav",
147
+ media_type="multipart/form-data")
148
+ else:
149
+ return BaseResponse(code=500, msg=f"{task_id}.wav 读取文件失败")
150
+
151
+ except Exception as e:
152
+ logger.error(f'{e.__class__.__name__}: {e}',
153
+ exc_info=e)
154
  return BaseResponse(code=500, msg=f"{task_id}.wav 读取文件失败")
speakers/server/static/favicon.png DELETED
Binary file (7.3 kB)
 
speakers/server/static/index.html CHANGED
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=renderer content=webkit><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=/favicon.ico><title>RVC-Speakers</title><link href=/static/css/chunk-libs.0d535e07.css rel=stylesheet><link href=/static/css/app.bbfea95c.css rel=stylesheet></head><body><div id=app></div><script>(function(e){function t(t){for(var n,o,i=t[0],c=t[1],l=t[2],s=0,f=[];s<i.length;s++)o=i[s],Object.prototype.hasOwnProperty.call(u,o)&&u[o]&&f.push(u[o][0]),u[o]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);d&&d(t);while(f.length)f.shift()();return a.push.apply(a,l||[]),r()}function r(){for(var e,t=0;t<a.length;t++){for(var r=a[t],n=!0,o=1;o<r.length;o++){var i=r[o];0!==u[i]&&(n=!1)}n&&(a.splice(t--,1),e=c(c.s=r[0]))}return e}var n={},o={runtime:0},u={runtime:0},a=[];function i(e){return c.p+"static/js/"+({}[e]||e)+"."+{"chunk-0d381050":"86edc397","chunk-30643776":"f2df0827"}[e]+".js"}function c(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,c),r.l=!0,r.exports}c.e=function(e){var t=[],r={"chunk-0d381050":1,"chunk-30643776":1};o[e]?t.push(o[e]):0!==o[e]&&r[e]&&t.push(o[e]=new Promise((function(t,r){for(var n="static/css/"+({}[e]||e)+"."+{"chunk-0d381050":"0c63b661","chunk-30643776":"265d9d9a"}[e]+".css",u=c.p+n,a=document.getElementsByTagName("link"),i=0;i<a.length;i++){var l=a[i],s=l.getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(s===n||s===u))return t()}var f=document.getElementsByTagName("style");for(i=0;i<f.length;i++){l=f[i],s=l.getAttribute("data-href");if(s===n||s===u)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.onerror=function(t){var n=t&&t.target&&t.target.src||u,a=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");a.code="CSS_CHUNK_LOAD_FAILED",a.request=n,delete o[e],d.parentNode.removeChild(d),r(a)},d.href=u;var p=document.getElementsByTagName("head")[0];p.appendChild(d)})).then((function(){o[e]=0})));var n=u[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,r){n=u[e]=[t,r]}));t.push(n[2]=a);var l,s=document.createElement("script");s.charset="utf-8",s.timeout=120,c.nc&&s.setAttribute("nonce",c.nc),s.src=i(e);var f=new Error;l=function(t){s.onerror=s.onload=null,clearTimeout(d);var r=u[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;f.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",f.name="ChunkLoadError",f.type=n,f.request=o,r[1](f)}u[e]=void 0}};var d=setTimeout((function(){l({type:"timeout",target:s})}),12e4);s.onerror=s.onload=l,document.head.appendChild(s)}return Promise.all(t)},c.m=e,c.c=n,c.d=function(e,t,r){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(c.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)c.d(r,n,function(t){return e[t]}.bind(null,n));return r},c.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="/",c.oe=function(e){throw console.error(e),e};var l=window["webpackJsonp"]=window["webpackJsonp"]||[],s=l.push.bind(l);l.push=t,l=l.slice();for(var f=0;f<l.length;f++)t(l[f]);var d=s;r()})([]);</script><script src=/static/js/chunk-elementUI.46557921.js></script><script src=/static/js/chunk-libs.abaf6167.js></script><script src=/static/js/app.7b0ed3f7.js></script></body></html>
 
1
+ <!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=renderer content=webkit><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=/favicon.ico><title>RVC-Speakers</title><link href=/static/css/chunk-libs.0d535e07.css rel=stylesheet><link href=/static/css/app.bbfea95c.css rel=stylesheet></head><body><div id=app></div><script>(function(e){function t(t){for(var n,o,i=t[0],c=t[1],l=t[2],s=0,f=[];s<i.length;s++)o=i[s],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&f.push(a[o][0]),a[o]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);d&&d(t);while(f.length)f.shift()();return u.push.apply(u,l||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,o=1;o<r.length;o++){var i=r[o];0!==a[i]&&(n=!1)}n&&(u.splice(t--,1),e=c(c.s=r[0]))}return e}var n={},o={runtime:0},a={runtime:0},u=[];function i(e){return c.p+"static/js/"+({}[e]||e)+"."+{"chunk-30643776":"f2df0827","chunk-3be99966":"e6e6dca2"}[e]+".js"}function c(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,c),r.l=!0,r.exports}c.e=function(e){var t=[],r={"chunk-30643776":1,"chunk-3be99966":1};o[e]?t.push(o[e]):0!==o[e]&&r[e]&&t.push(o[e]=new Promise((function(t,r){for(var n="static/css/"+({}[e]||e)+"."+{"chunk-30643776":"265d9d9a","chunk-3be99966":"b6bad205"}[e]+".css",a=c.p+n,u=document.getElementsByTagName("link"),i=0;i<u.length;i++){var l=u[i],s=l.getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(s===n||s===a))return t()}var f=document.getElementsByTagName("style");for(i=0;i<f.length;i++){l=f[i],s=l.getAttribute("data-href");if(s===n||s===a)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.onerror=function(t){var n=t&&t.target&&t.target.src||a,u=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");u.code="CSS_CHUNK_LOAD_FAILED",u.request=n,delete o[e],d.parentNode.removeChild(d),r(u)},d.href=a;var p=document.getElementsByTagName("head")[0];p.appendChild(d)})).then((function(){o[e]=0})));var n=a[e];if(0!==n)if(n)t.push(n[2]);else{var u=new Promise((function(t,r){n=a[e]=[t,r]}));t.push(n[2]=u);var l,s=document.createElement("script");s.charset="utf-8",s.timeout=120,c.nc&&s.setAttribute("nonce",c.nc),s.src=i(e);var f=new Error;l=function(t){s.onerror=s.onload=null,clearTimeout(d);var r=a[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;f.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",f.name="ChunkLoadError",f.type=n,f.request=o,r[1](f)}a[e]=void 0}};var d=setTimeout((function(){l({type:"timeout",target:s})}),12e4);s.onerror=s.onload=l,document.head.appendChild(s)}return Promise.all(t)},c.m=e,c.c=n,c.d=function(e,t,r){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(c.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)c.d(r,n,function(t){return e[t]}.bind(null,n));return r},c.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="/",c.oe=function(e){throw console.error(e),e};var l=window["webpackJsonp"]=window["webpackJsonp"]||[],s=l.push.bind(l);l.push=t,l=l.slice();for(var f=0;f<l.length;f++)t(l[f]);var d=s;r()})([]);</script><script src=/static/js/chunk-elementUI.46557921.js></script><script src=/static/js/chunk-libs.abaf6167.js></script><script src=/static/js/app.22b7d820.js></script></body></html>
speakers/server/static/static/css/{chunk-0d381050.0c63b661.css → chunk-3be99966.b6bad205.css} RENAMED
File without changes
speakers/server/static/static/js/{app.7b0ed3f7.js → app.22b7d820.js} RENAMED
@@ -1 +1 @@
1
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,a){e.exports=a("56d7")},"0781":function(e,t,a){"use strict";var n=a("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(a("83d6")),r=i.default.sideTheme,o=i.default.showSettings,s=i.default.topNav,u=i.default.tagsView,c=i.default.fixedHeader,d=i.default.sidebarLogo,l=i.default.dynamicTitle,_=JSON.parse(localStorage.getItem("layout-setting"))||"",f={title:"",theme:_.theme||"#409EFF",sideTheme:_.sideTheme||r,showSettings:o,topNav:void 0===_.topNav?s:_.topNav,tagsView:void 0===_.tagsView?u:_.tagsView,fixedHeader:void 0===_.fixedHeader?c:_.fixedHeader,sidebarLogo:void 0===_.sidebarLogo?d:_.sidebarLogo,dynamicTitle:void 0===_.dynamicTitle?l:_.dynamicTitle},p={CHANGE_SETTING:function(e,t){var a=t.key,n=t.value;e.hasOwnProperty(a)&&(e[a]=n)}},E={changeSetting:function(e,t){var a=e.commit;a("CHANGE_SETTING",t)},setTitle:function(e,t){e.commit;f.title=t}},m={namespaced:!0,state:f,mutations:p,actions:E};t.default=m},"199c":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={name:"App"};t.default=n},"223d":function(e,t,a){"use strict";var n=a("4ea4").default,i=n(a("a18c")),r=(n(a("4360")),a("5c96"),n(a("323e")));a("a5d8"),r.default.configure({showSpinner:!1}),i.default.beforeEach((function(e,t,a){r.default.start(),a()})),i.default.afterEach((function(){r.default.done()}))},"23be":function(e,t,a){"use strict";a.r(t);var n=a("199c"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(r);t["default"]=i.a},"2f9b":function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return i}));var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"app"}},[a("router-view")],1)},i=[]},"3dfd":function(e,t,a){"use strict";a.r(t);var n=a("2f9b"),i=a("23be");for(var r in i)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(r);var o=a("2877"),s=Object(o["a"])(i["default"],n["a"],n["b"],!1,null,null,null);t["default"]=s.exports},4360:function(e,t,a){"use strict";var n=a("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("13d5"),a("d3b7"),a("ddb0"),a("ac1f"),a("5319");var i=n(a("2b0e")),r=n(a("2f62")),o=n(a("94d5"));i.default.use(r.default);var s=a("c653"),u=s.keys().reduce((function(e,t){var a=t.replace(/^\.\/(.*)\.\w+$/,"$1"),n=s(t);return e[a]=n.default,e}),{}),c=new r.default.Store({modules:u,getters:o.default}),d=c;t.default=d},"49f4":function(e,t,a){e.exports={theme:"#1890ff"}},"56d7":function(e,t,a){"use strict";var n=a("4ea4").default;a("e260"),a("e6cf"),a("cca6"),a("a79d");var i=n(a("2b0e"));n(a("a78e"));a("f5df1");var r=n(a("5c96"));a("64e1"),a("49f4"),a("6861");var o=n(a("998c"));a("9f21");var s=n(a("3dfd")),u=n(a("4360")),c=n(a("a18c"));a("223d"),a("7cb2");var d=n(a("8f9b")),l=a("c38a"),_=a("b48e"),f=n(a("4eb5")),p=n(a("bc3a"));i.default.use(o.default),i.default.use(r.default,{size:localStorage.getItem("size")||"medium"}),i.default.use(d.default),d.default.initAMapApiLoader({key:"8c13deb2c2075f14ae44df78af1405ec",plugin:["AMap.Autocomplete","AMap.PlaceSearch","AMap.Scale","AMap.OverView","AMap.ToolBar","AMap.MapType","AMap.PolyEditor","AMap.CircleEditor","AMap.Geocoder"],v:"1.4.4"}),i.default.use(f.default),i.default.config.productionTip=!1,i.default.prototype.parseTime=l.parseTime,i.default.prototype.resetForm=l.resetForm,i.default.prototype.handleTree=l.handleTree,i.default.prototype.toTree=l.toTree,i.default.prototype.getDictDatas=_.getDictDatas,i.default.prototype.getDictDataLabel=_.getDictDataLabel,i.default.prototype.getDictDatas2=_.getDictDatas2,i.default.prototype.DICT_TYPE=_.DICT_TYPE,i.default.prototype.$axios=p.default,new i.default({el:"#app",router:c.default,store:u.default,render:function(e){return e(s.default)}})},"5b81":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n="http://gateway.ngrok.suoxya.com",i=Object({VUE_APP_BASE_API:"http://gateway.ngrok.suoxya.com",VUE_APP_WS_API:"wss://api.auauz.net",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_FTP_SHOW_API,r={state:{deployUploadApi:n+"/api/deploy/upload",databaseUploadApi:n+"/api/database/upload",socketApi:n+"/websocket?token=kl",imagesUploadApi:n+"/zuul/common/ftp/upload",updateAvatarApi:n+"/api/users/updateAvatar",qiNiuUploadApi:n+"/api/qiNiuContent",sqlApi:n+"/druid",swaggerApi:n+"/swagger-ui.html",fileUploadApi:n+"/api/localStorage",baseApi:n,fileFtpShowApi:i}},o=r;t.default=o},6861:function(e,t,a){e.exports={menuColor:"#bfcbd9",menuLightColor:"rgba(0,0,0,.7)",menuColorActive:"#f4f4f5",menuBackground:"#304156",menuLightBackground:"#fff",subMenuBackground:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"200px",logoTitleColor:"#fff",logoLightTitleColor:"#001529"}},7509:function(e,t,a){"use strict";var n=a("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(a("448a")),r=n(a("278c")),o=n(a("63748"));a("d3b7"),a("caad"),a("2532"),a("b0c0"),a("ddb0"),a("a434"),a("4de4"),a("fb6a");var s={visitedViews:[],cachedViews:[]},u={ADD_VISITED_VIEW:function(e,t){e.visitedViews.some((function(e){return e.path===t.path}))||e.visitedViews.push(Object.assign({},t,{title:t.meta.title||"no-name"}))},ADD_CACHED_VIEW:function(e,t){e.cachedViews.includes(t.name)||t.meta.noCache||e.cachedViews.push(t.name)},DEL_VISITED_VIEW:function(e,t){var a,n=(0,o.default)(e.visitedViews.entries());try{for(n.s();!(a=n.n()).done;){var i=(0,r.default)(a.value,2),s=i[0],u=i[1];if(u.path===t.path){e.visitedViews.splice(s,1);break}}}catch(c){n.e(c)}finally{n.f()}},DEL_CACHED_VIEW:function(e,t){var a,n=(0,o.default)(e.cachedViews);try{for(n.s();!(a=n.n()).done;){var i=a.value;if(i===t.name){var r=e.cachedViews.indexOf(i);e.cachedViews.splice(r,1);break}}}catch(s){n.e(s)}finally{n.f()}},DEL_OTHERS_VISITED_VIEWS:function(e,t){e.visitedViews=e.visitedViews.filter((function(e){return e.meta.affix||e.path===t.path}))},DEL_OTHERS_CACHED_VIEWS:function(e,t){var a,n=(0,o.default)(e.cachedViews);try{for(n.s();!(a=n.n()).done;){var i=a.value;if(i===t.name){var r=e.cachedViews.indexOf(i);e.cachedViews=e.cachedViews.slice(r,r+1);break}}}catch(s){n.e(s)}finally{n.f()}},DEL_ALL_VISITED_VIEWS:function(e){var t=e.visitedViews.filter((function(e){return e.meta.affix}));e.visitedViews=t},DEL_ALL_CACHED_VIEWS:function(e){e.cachedViews=[]},UPDATE_VISITED_VIEW:function(e,t){var a,n=(0,o.default)(e.visitedViews);try{for(n.s();!(a=n.n()).done;){var i=a.value;if(i.path===t.path){i=Object.assign(i,t);break}}}catch(r){n.e(r)}finally{n.f()}}},c={addView:function(e,t){var a=e.dispatch;a("addVisitedView",t),a("addCachedView",t)},addVisitedView:function(e,t){var a=e.commit;a("ADD_VISITED_VIEW",t)},addCachedView:function(e,t){var a=e.commit;a("ADD_CACHED_VIEW",t)},delView:function(e,t){var a=e.dispatch,n=e.state;return new Promise((function(e){a("delVisitedView",t),a("delCachedView",t),e({visitedViews:(0,i.default)(n.visitedViews),cachedViews:(0,i.default)(n.cachedViews)})}))},delVisitedView:function(e,t){var a=e.commit,n=e.state;return new Promise((function(e){a("DEL_VISITED_VIEW",t),e((0,i.default)(n.visitedViews))}))},delCachedView:function(e,t){var a=e.commit,n=e.state;return new Promise((function(e){a("DEL_CACHED_VIEW",t),e((0,i.default)(n.cachedViews))}))},delOthersViews:function(e,t){var a=e.dispatch,n=e.state;return new Promise((function(e){a("delOthersVisitedViews",t),a("delOthersCachedViews",t),e({visitedViews:(0,i.default)(n.visitedViews),cachedViews:(0,i.default)(n.cachedViews)})}))},delOthersVisitedViews:function(e,t){var a=e.commit,n=e.state;return new Promise((function(e){a("DEL_OTHERS_VISITED_VIEWS",t),e((0,i.default)(n.visitedViews))}))},delOthersCachedViews:function(e,t){var a=e.commit,n=e.state;return new Promise((function(e){a("DEL_OTHERS_CACHED_VIEWS",t),e((0,i.default)(n.cachedViews))}))},delAllViews:function(e,t){var a=e.dispatch,n=e.state;return new Promise((function(e){a("delAllVisitedViews",t),a("delAllCachedViews",t),e({visitedViews:(0,i.default)(n.visitedViews),cachedViews:(0,i.default)(n.cachedViews)})}))},delAllVisitedViews:function(e){var t=e.commit,a=e.state;return new Promise((function(e){t("DEL_ALL_VISITED_VIEWS"),e((0,i.default)(a.visitedViews))}))},delAllCachedViews:function(e){var t=e.commit,a=e.state;return new Promise((function(e){t("DEL_ALL_CACHED_VIEWS"),e((0,i.default)(a.cachedViews))}))},updateVisitedView:function(e,t){var a=e.commit;a("UPDATE_VISITED_VIEW",t)}},d={namespaced:!0,state:s,mutations:u,actions:c};t.default=d},"83d6":function(e,t){e.exports={title:"RVC-Speakers",sideTheme:"theme-dark",showSettings:!1,topNav:!1,tagsView:!0,fixedHeader:!1,sidebarLogo:!0,dynamicTitle:!1,errorLog:"production",tokenCookieExpires:1,passCookieExpires:1,AccessTokenKey:"ACCESS_TOKEN",RefreshTokenKey:"REFRESH_TOKEN",pageStatusKey:"pageStatus",timeout:12e5,showFooter:!0,footerTxt:'© <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License 2.0</a>',caseNumber:""}},"94d5":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={deployUploadApi:function(e){return e.api.deployUploadApi},databaseUploadApi:function(e){return e.api.databaseUploadApi},sidebar:function(e){return e.app.sidebar},size:function(e){return e.app.size},device:function(e){return e.app.device},token:function(e){return e.user.token},visitedViews:function(e){return e.tagsView.visitedViews},cachedViews:function(e){return e.tagsView.cachedViews},socketApi:function(e){return e.api.socketApi},imagesUploadApi:function(e){return e.api.imagesUploadApi}},i=n;t.default=i},a18c:function(e,t,a){"use strict";var n=a("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.constantRoutes=void 0;var i=n(a("2b0e")),r=n(a("8c4f"));i.default.use(r.default);var o=[{path:"/401",component:function(e){return a.e("chunk-30643776").then(function(){var t=[a("ec55")];e.apply(null,t)}.bind(this)).catch(a.oe)},hidden:!0},{path:"/",component:function(e){return a.e("chunk-0d381050").then(function(){var t=[a("1e4b")];e.apply(null,t)}.bind(this)).catch(a.oe)}}];t.constantRoutes=o;var s=r.default.prototype.push;r.default.prototype.push=function(e){return s.call(this,e).catch((function(e){return e}))};var u=new r.default({base:Object({VUE_APP_BASE_API:"http://gateway.ngrok.suoxya.com",VUE_APP_WS_API:"wss://api.auauz.net",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_APP_NAME?Object({VUE_APP_BASE_API:"http://gateway.ngrok.suoxya.com",VUE_APP_WS_API:"wss://api.auauz.net",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_APP_NAME:"/",mode:"history",scrollBehavior:function(){return{y:0}},routes:o});t.default=u},b48e:function(e,t,a){"use strict";var n=a("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.DICT_TYPE=void 0,t.getDictData=l,t.getDictDataL=void 0,t.getDictDataLabel=_,t.getDictDatas=c,t.getDictDatas2=d,a("b0c0");var i=n(a("5bc3")),r=n(a("970b")),o=n(a("63748")),s=n(a("4360")),u={USER_TYPE:"user_type",COMMON_STATUS:"common_status",SYSTEM_USER_SEX:"system_user_sex",SYSTEM_MENU_TYPE:"system_menu_type",SYSTEM_ROLE_TYPE:"system_role_type",SYSTEM_DATA_SCOPE:"system_data_scope",SYSTEM_VIEW_SCOPE:"system_view_scope",SYSTEM_NOTICE_TYPE:"system_notice_type",SYSTEM_OPERATE_TYPE:"system_operate_type",SYSTEM_LOGIN_TYPE:"system_login_type",SYSTEM_LOGIN_RESULT:"system_login_result",SYSTEM_SMS_CHANNEL_CODE:"system_sms_channel_code",SYSTEM_SMS_TEMPLATE_TYPE:"system_sms_template_type",SYSTEM_SMS_SEND_STATUS:"system_sms_send_status",SYSTEM_SMS_RECEIVE_STATUS:"system_sms_receive_status",SYSTEM_ERROR_CODE_TYPE:"system_error_code_type",SYSTEM_OAUTH2_GRANT_TYPE:"system_oauth2_grant_type",INFRA_BOOLEAN_STRING:"infra_boolean_string",INFRA_REDIS_TIMEOUT_TYPE:"infra_redis_timeout_type",INFRA_JOB_STATUS:"infra_job_status",INFRA_JOB_LOG_STATUS:"infra_job_log_status",INFRA_API_ERROR_LOG_PROCESS_STATUS:"infra_api_error_log_process_status",INFRA_CONFIG_TYPE:"infra_config_type",INFRA_CODEGEN_TEMPLATE_TYPE:"infra_codegen_template_type",INFRA_CODEGEN_SCENE:"infra_codegen_scene",INFRA_FILE_STORAGE:"infra_file_storage",BPM_MODEL_CATEGORY:"bpm_model_category",BPM_MODEL_FORM_TYPE:"bpm_model_form_type",BPM_TASK_ASSIGN_RULE_TYPE:"bpm_task_assign_rule_type",BPM_PROCESS_INSTANCE_STATUS:"bpm_process_instance_status",BPM_PROCESS_INSTANCE_RESULT:"bpm_process_instance_result",BPM_TASK_ASSIGN_SCRIPT:"bpm_task_assign_script",BPM_OA_LEAVE_TYPE:"bpm_oa_leave_type",PAY_CHANNEL_WECHAT_VERSION:"pay_channel_wechat_version",PAY_CHANNEL_ALIPAY_SIGN_TYPE:"pay_channel_alipay_sign_type",PAY_CHANNEL_ALIPAY_MODE:"pay_channel_alipay_mode",PAY_CHANNEL_ALIPAY_SERVER_TYPE:"pay_channel_alipay_server_type",PAY_CHANNEL_CODE_TYPE:"pay_channel_code_type",PAY_ORDER_NOTIFY_STATUS:"pay_order_notify_status",PAY_ORDER_STATUS:"pay_order_status",PAY_ORDER_REFUND_STATUS:"pay_order_refund_status",PAY_REFUND_ORDER_STATUS:"pay_refund_order_status",PAY_REFUND_ORDER_TYPE:"pay_refund_order_type",KM_BIZ_TYPE:"km_biz_type",SjkTenderField:"SjkTenderField"};function c(e){return s.default.getters.dict_datas[e]||[]}function d(e,t){if(void 0===t)return[];Array.isArray(t)||(t=[this.value]);var a,n=[],i=(0,o.default)(t);try{for(i.s();!(a=i.n()).done;){var r=a.value,s=l(e,r);s&&n.push(s)}}catch(u){i.e(u)}finally{i.f()}return n}function l(e,t){var a=c(e);if(!a||0===a.length)return"";t+="";var n,i=(0,o.default)(a);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.value===t)return r}}catch(s){i.e(s)}finally{i.f()}}function _(e,t){var a=l(e,t);return a?a.name:""}t.DICT_TYPE=u;var f=(0,i.default)((function e(){(0,r.default)(this,e)}));t.getDictDataL=f},c38a:function(e,t,a){"use strict";var n=a("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.addBeginAndEndTime=d,t.addDateRange=c,t.findTreeDeptChild=E,t.getBasePath=v,t.getDocEnable=h,t.getNowDateTime=m,t.getPath=g,t.getTenantEnable=A,t.handleTree=f,t.parseTime=s,t.praseStrEmpty=_,t.resetForm=u,t.sprintf=l,t.toTree=p,a("ac1f"),a("00b4"),a("5319"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("d3b7"),a("fb6a"),a("d81d"),a("e9c4"),a("4de4"),a("a9e3"),a("4d90"),a("99af"),a("8a79"),a("2ca0");var i=n(a("63748")),r=n(a("7037")),o=a("ed08");function s(e,t){if(0===arguments.length||!e)return null;var a,n=t||"{y}-{m}-{d} {h}:{i}:{s}";"object"===(0,r.default)(e)?a=e:("string"===typeof e&&/^[0-9]+$/.test(e)?e=parseInt(e):"string"===typeof e&&(e=e.replace(new RegExp(/-/gm),"/").replace("T"," ").replace(new RegExp(/\.[\d]{3}/gm),"")),"number"===typeof e&&10===e.toString().length&&(e*=1e3),a=new Date(e));var i={y:a.getFullYear(),m:a.getMonth()+1,d:a.getDate(),h:a.getHours(),i:a.getMinutes(),s:a.getSeconds(),a:a.getDay()},o=n.replace(/{(y|m|d|h|i|s|a)+}/g,(function(e,t){var a=i[t];return"a"===t?["日","一","二","三","四","五","六"][a]:(e.length>0&&a<10&&(a="0"+a),a||0)}));return o}function u(e){this.$refs[e]&&this.$refs[e].resetFields()}function c(e,t,a){var n=e;return n.params={},null!=t&&""!==t&&("undefined"===typeof a?(n["beginTime"]=t[0],n["endTime"]=t[1]):(n["begin"+a]=t[0],n["end"+a]=t[1])),n}function d(e,t,a){return t?(a=a?a.charAt(0).toUpperCase()+a.slice(1):"Time",t[0]&&(e["begin"+a]=t[0]+" 00:00:00"),t[1]&&(e["end"+a]=t[1]+" 23:59:59"),e):e}function l(e){var t=arguments,a=!0,n=1;return e=e.replace(/%s/g,(function(){var e=t[n++];return"undefined"===typeof e?(a=!1,""):e})),a?e:""}function _(e){return e&&"undefined"!=e&&"null"!=e?e:""}function f(e,t,a,n,i){t=t||"id",a=a||"parentId",n=n||"children",i=i||Math.min.apply(Math,e.map((function(e){return e[a]})))||0;var r=JSON.parse(JSON.stringify(e)),s=r.filter((function(e){var n,s=r.filter((function(n){return e[t]===n[a]}));return s.length>0&&(e.children=s),n=(0,o.isNumberStr)(e[a])?Number(e[a]):e[a],n===i}));return""!==s?s:e}function p(e,t,a){for(var n=[],i={},r=0;r<e.length;r++)i[e[r][t]]=e[r];for(var o=0;o<e.length;o++){var s=e[o],u=i[e[o][a]];u?(u.children||(u.children=[])).push(e[o]):n.push(s)}return n}function E(e,t){var a,n=null,r=(0,i.default)(e);try{for(r.s();!(a=r.n()).done;){var o=a.value;if(Number(o.id)===Number(t)){n=o;break}}}catch(d){r.e(d)}finally{r.f()}if(null==n){var s,u=(0,i.default)(e);try{for(u.s();!(s=u.n()).done;){var c=s.value;c.children&&(n=E(c.children,t))}}catch(d){u.e(d)}finally{u.f()}}return n}function m(e){var t=new Date,a=t.getFullYear(),n=(t.getMonth()+1).toString().padStart(2,"0"),i=t.getDate().toString().padStart(2,"0");if(null!=e)return"".concat(a,"-").concat(n,"-").concat(i," ").concat(e);var r=t.getHours().toString().padStart(2,"0"),o=t.getMinutes().toString().padStart(2,"0"),s=t.getSeconds().toString().padStart(2,"0");return"".concat(a,"-").concat(n,"-").concat(i," ").concat(r,":").concat(o,":").concat(s)}function A(){return"true"===Object({VUE_APP_BASE_API:"http://gateway.ngrok.suoxya.com",VUE_APP_WS_API:"wss://api.auauz.net",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_TENANT_ENABLE||"false"!==Object({VUE_APP_BASE_API:"http://gateway.ngrok.suoxya.com",VUE_APP_WS_API:"wss://api.auauz.net",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_TENANT_ENABLE&&(Object({VUE_APP_BASE_API:"http://gateway.ngrok.suoxya.com",VUE_APP_WS_API:"wss://api.auauz.net",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_TENANT_ENABLE||!0)}function h(){return"true"===Object({VUE_APP_BASE_API:"http://gateway.ngrok.suoxya.com",VUE_APP_WS_API:"wss://api.auauz.net",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DOC_ENABLE||"false"!==Object({VUE_APP_BASE_API:"http://gateway.ngrok.suoxya.com",VUE_APP_WS_API:"wss://api.auauz.net",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DOC_ENABLE&&(Object({VUE_APP_BASE_API:"http://gateway.ngrok.suoxya.com",VUE_APP_WS_API:"wss://api.auauz.net",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DOC_ENABLE||!1)}function v(){return Object({VUE_APP_BASE_API:"http://gateway.ngrok.suoxya.com",VUE_APP_WS_API:"wss://api.auauz.net",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_APP_NAME||"/"}function g(e){var t=v();return t.endsWith("/")?(e.startsWith("/")&&(e=e.substring(1)),t+e):t+"/"}},c653:function(e,t,a){var n={"./api.js":"5b81","./app.js":"d9cd","./settings.js":"0781","./tagsView.js":"7509"};function i(e){var t=r(e);return a(t)}function r(e){if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=r,e.exports=i,i.id="c653"},d9cd:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={sidebar:{opened:!localStorage.getItem("sidebarStatus")||!!+localStorage.getItem("sidebarStatus"),withoutAnimation:!1,hide:!1},device:"desktop",size:localStorage.getItem("size")||"medium"},i={TOGGLE_SIDEBAR:function(e){if(e.sidebar.hide)return!1;e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?localStorage.setItem("sidebarStatus",1):localStorage.setItem("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){localStorage.setItem("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t},SET_SIZE:function(e,t){e.size=t,localStorage.setItem("size",t)},SET_SIDEBAR_HIDE:function(e,t){e.sidebar.hide=t}},r={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var a=e.commit,n=t.withoutAnimation;a("CLOSE_SIDEBAR",n)},toggleDevice:function(e,t){var a=e.commit;a("TOGGLE_DEVICE",t)},setSize:function(e,t){var a=e.commit;a("SET_SIZE",t)},toggleSideBarHide:function(e,t){var a=e.commit;a("SET_SIDEBAR_HIDE",t)}},o={namespaced:!0,state:n,mutations:i,actions:r};t.default=o},ed08:function(e,t,a){"use strict";var n=a("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.addClass=S,t.beautifierConf=void 0,t.byteLength=u,t.camelCase=O,t.cleanArray=c,t.createUniqueString=v,t.debounce=m,t.deepClone=A,t.deptTransListToTreeData=L,t.downloadFile=b,t.downloadUrl=P,t.exportDefault=void 0,t.formatTime=o,t.getQueryObject=s,t.getTime=E,t.hasClass=g,t.html2Text=_,t.isNumberStr=N,t.objectMerge=f,t.param=d,t.param2Obj=l,t.parseTime=r,t.regEmail=w,t.regMobile=T,t.removeClass=y,t.titleCase=I,t.toCamelCase=C,t.toggleClass=p,t.transListToTreeData=U,t.uniqueArr=h,a("ac1f"),a("00b4"),a("d3b7"),a("25f0"),a("5319"),a("a15b"),a("d81d"),a("b64b"),a("1276"),a("fb6a"),a("159b"),a("4d63"),a("c607"),a("2c3e"),a("a630"),a("3ca3"),a("6062"),a("ddb0"),a("466d"),a("2b3d"),a("9861");var i=n(a("7037"));function r(e,t){if(0===arguments.length)return null;var a,n=t||"{y}-{m}-{d} {h}:{i}:{s}";if("undefined"===typeof e||null===e||"null"===e)return"";"object"===(0,i.default)(e)?a=e:("string"===typeof e&&/^[0-9]+$/.test(e)&&(e=parseInt(e)),"number"===typeof e&&10===e.toString().length&&(e*=1e3),a=new Date(e));var r={y:a.getFullYear(),m:a.getMonth()+1,d:a.getDate(),h:a.getHours(),i:a.getMinutes(),s:a.getSeconds(),a:a.getDay()},o=n.replace(/{(y|m|d|h|i|s|a)+}/g,(function(e,t){var a=r[t];return"a"===t?["日","一","二","三","四","五","六"][a]:(e.length>0&&a<10&&(a="0"+a),a||0)}));return o}function o(e,t){e=10===(""+e).length?1e3*parseInt(e):+e;var a=new Date(e),n=Date.now(),i=(n-a)/1e3;return i<30?"刚刚":i<3600?Math.ceil(i/60)+"分钟前":i<86400?Math.ceil(i/3600)+"小时前":i<172800?"1天前":t?r(e,t):a.getMonth()+1+"月"+a.getDate()+"日"+a.getHours()+"时"+a.getMinutes()+"分"}function s(e){e=null==e?window.location.href:e;var t=e.substring(e.lastIndexOf("?")+1),a={},n=/([^?&=]+)=([^?&=]*)/g;return t.replace(n,(function(e,t,n){var i=decodeURIComponent(t),r=decodeURIComponent(n);return r=String(r),a[i]=r,e})),a}function u(e){for(var t=e.length,a=e.length-1;a>=0;a--){var n=e.charCodeAt(a);n>127&&n<=2047?t++:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&a--}return t}function c(e){for(var t=[],a=0;a<e.length;a++)e[a]&&t.push(e[a]);return t}function d(e){return e?c(Object.keys(e).map((function(t){return void 0===e[t]?"":encodeURIComponent(t)+"="+encodeURIComponent(e[t])}))).join("&"):""}function l(e){var t=e.split("?")[1];return t?JSON.parse('{"'+decodeURIComponent(t).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"').replace(/\+/g," ")+'"}'):{}}function _(e){var t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText}function f(e,t){return"object"!==(0,i.default)(e)&&(e={}),Array.isArray(t)?t.slice():(Object.keys(t).forEach((function(a){var n=t[a];"object"===(0,i.default)(n)?e[a]=f(e[a],n):e[a]=n})),e)}function p(e,t){if(e&&t){var a=e.className,n=a.indexOf(t);-1===n?a+=""+t:a=a.substr(0,n)+a.substr(n+t.length),e.className=a}}function E(e){return"start"===e?(new Date).getTime()-7776e6:new Date((new Date).toDateString())}function m(e,t,a){var n,i,r,o,s,u=function u(){var c=+new Date-o;c<t&&c>0?n=setTimeout(u,t-c):(n=null,a||(s=e.apply(r,i),n||(r=i=null)))};return function(){for(var i=arguments.length,c=new Array(i),d=0;d<i;d++)c[d]=arguments[d];r=this,o=+new Date;var l=a&&!n;return n||(n=setTimeout(u,t)),l&&(s=e.apply(r,c),r=c=null),s}}function A(e){var t=Object.prototype.toString;if(!e||"object"!==(0,i.default)(e))return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if("[object Date]"===t.call(e))return new Date(e.getTime());if("[object RegExp]"===t.call(e)){var a=[];return e.global&&a.push("g"),e.multiline&&a.push("m"),e.ignoreCase&&a.push("i"),new RegExp(e.source,a.join(""))}var n=Array.isArray(e)?[]:e.constructor?new e.constructor:{};for(var r in e)n[r]=A(e[r]);return n}function h(e){return Array.from(new Set(e))}function v(){var e=+new Date+"",t=parseInt(65536*(1+Math.random()))+"";return(+(t+e)).toString(32)}function g(e,t){return!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function S(e,t){g(e,t)||(e.className+=" "+t)}function y(e,t){if(g(e,t)){var a=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(a," ")}}function w(e){if(String(e).indexOf("@")>0){var t=e.split("@"),a="";if(t[0].length>3)for(var n=0;n<t[0].length-3;n++)a+="*";var i=t[0].substr(0,3)+a+"@"+t[1]}return i}function T(e){if(e.length>7)var t=e.substr(0,3)+"****"+e.substr(7);return t}function b(e,t,a){var n=window.URL.createObjectURL(new Blob([e])),i=document.createElement("a");i.style.display="none",i.href=n;var o=r(new Date)+"-"+t+"."+a;i.setAttribute("download",o),document.body.appendChild(i),i.click(),document.body.removeChild(i)}function P(e,t,a){var n=document.createElement("a");n.style.display="none",n.href=e;var i=r(new Date)+"-"+t+"."+a;n.setAttribute("download",i),document.body.appendChild(n),n.click(),document.body.removeChild(n)}var V="export default ";t.exportDefault=V;var D={html:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"separate",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0},js:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"normal",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!0,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0}};function I(e){return e.replace(/( |^)[a-z]/g,(function(e){return e.toUpperCase()}))}function O(e){return e.replace(/_[a-z]/g,(function(e){return e.substr(-1).toUpperCase()}))}function N(e){return/^[+-]?(0|([1-9]\d*))(\.\d+)?$/g.test(e)}function C(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}function U(e,t){var a=[];return e.forEach((function(n){if(n.viewPid===t){var i=U(e,n.viewId);i.length&&(n.children=i),a.push(n)}})),a}function L(e,t){var a=[];return e.forEach((function(n){if(n.sysPid===t){var i=L(e,n.sysId);i.length&&(n["children"]=i),a.push(n)}})),a}t.beautifierConf=D}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]);
 
1
+ (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,a){e.exports=a("56d7")},"0781":function(e,t,a){"use strict";var n=a("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(a("83d6")),r=i.default.sideTheme,o=i.default.showSettings,s=i.default.topNav,u=i.default.tagsView,c=i.default.fixedHeader,d=i.default.sidebarLogo,l=i.default.dynamicTitle,_=JSON.parse(localStorage.getItem("layout-setting"))||"",f={title:"",theme:_.theme||"#409EFF",sideTheme:_.sideTheme||r,showSettings:o,topNav:void 0===_.topNav?s:_.topNav,tagsView:void 0===_.tagsView?u:_.tagsView,fixedHeader:void 0===_.fixedHeader?c:_.fixedHeader,sidebarLogo:void 0===_.sidebarLogo?d:_.sidebarLogo,dynamicTitle:void 0===_.dynamicTitle?l:_.dynamicTitle},p={CHANGE_SETTING:function(e,t){var a=t.key,n=t.value;e.hasOwnProperty(a)&&(e[a]=n)}},E={changeSetting:function(e,t){var a=e.commit;a("CHANGE_SETTING",t)},setTitle:function(e,t){e.commit;f.title=t}},m={namespaced:!0,state:f,mutations:p,actions:E};t.default=m},"199c":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={name:"App"};t.default=n},"223d":function(e,t,a){"use strict";var n=a("4ea4").default,i=n(a("a18c")),r=(n(a("4360")),a("5c96"),n(a("323e")));a("a5d8"),r.default.configure({showSpinner:!1}),i.default.beforeEach((function(e,t,a){r.default.start(),a()})),i.default.afterEach((function(){r.default.done()}))},"23be":function(e,t,a){"use strict";a.r(t);var n=a("199c"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(r);t["default"]=i.a},"2f9b":function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return i}));var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"app"}},[a("router-view")],1)},i=[]},"3dfd":function(e,t,a){"use strict";a.r(t);var n=a("2f9b"),i=a("23be");for(var r in i)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(r);var o=a("2877"),s=Object(o["a"])(i["default"],n["a"],n["b"],!1,null,null,null);t["default"]=s.exports},4360:function(e,t,a){"use strict";var n=a("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("13d5"),a("d3b7"),a("ddb0"),a("ac1f"),a("5319");var i=n(a("2b0e")),r=n(a("2f62")),o=n(a("94d5"));i.default.use(r.default);var s=a("c653"),u=s.keys().reduce((function(e,t){var a=t.replace(/^\.\/(.*)\.\w+$/,"$1"),n=s(t);return e[a]=n.default,e}),{}),c=new r.default.Store({modules:u,getters:o.default}),d=c;t.default=d},"49f4":function(e,t,a){e.exports={theme:"#1890ff"}},"56d7":function(e,t,a){"use strict";var n=a("4ea4").default;a("e260"),a("e6cf"),a("cca6"),a("a79d");var i=n(a("2b0e"));n(a("a78e"));a("f5df1");var r=n(a("5c96"));a("64e1"),a("49f4"),a("6861");var o=n(a("998c"));a("9f21");var s=n(a("3dfd")),u=n(a("4360")),c=n(a("a18c"));a("223d"),a("7cb2");var d=n(a("8f9b")),l=a("c38a"),_=a("b48e"),f=n(a("4eb5")),p=n(a("bc3a"));i.default.use(o.default),i.default.use(r.default,{size:localStorage.getItem("size")||"medium"}),i.default.use(d.default),d.default.initAMapApiLoader({key:"8c13deb2c2075f14ae44df78af1405ec",plugin:["AMap.Autocomplete","AMap.PlaceSearch","AMap.Scale","AMap.OverView","AMap.ToolBar","AMap.MapType","AMap.PolyEditor","AMap.CircleEditor","AMap.Geocoder"],v:"1.4.4"}),i.default.use(f.default),i.default.config.productionTip=!1,i.default.prototype.parseTime=l.parseTime,i.default.prototype.resetForm=l.resetForm,i.default.prototype.handleTree=l.handleTree,i.default.prototype.toTree=l.toTree,i.default.prototype.getDictDatas=_.getDictDatas,i.default.prototype.getDictDataLabel=_.getDictDataLabel,i.default.prototype.getDictDatas2=_.getDictDatas2,i.default.prototype.DICT_TYPE=_.DICT_TYPE,i.default.prototype.$axios=p.default,new i.default({el:"#app",router:c.default,store:u.default,render:function(e){return e(s.default)}})},"5b81":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n="http://gateway.ngrok.suoxya.com",i=Object({VUE_APP_BASE_API:"http://gateway.ngrok.suoxya.com",VUE_APP_WS_API:"wss://api.auauz.net",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_FTP_SHOW_API,r={state:{deployUploadApi:n+"/api/deploy/upload",databaseUploadApi:n+"/api/database/upload",socketApi:n+"/websocket?token=kl",imagesUploadApi:n+"/zuul/common/ftp/upload",updateAvatarApi:n+"/api/users/updateAvatar",qiNiuUploadApi:n+"/api/qiNiuContent",sqlApi:n+"/druid",swaggerApi:n+"/swagger-ui.html",fileUploadApi:n+"/api/localStorage",baseApi:n,fileFtpShowApi:i}},o=r;t.default=o},6861:function(e,t,a){e.exports={menuColor:"#bfcbd9",menuLightColor:"rgba(0,0,0,.7)",menuColorActive:"#f4f4f5",menuBackground:"#304156",menuLightBackground:"#fff",subMenuBackground:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"200px",logoTitleColor:"#fff",logoLightTitleColor:"#001529"}},7509:function(e,t,a){"use strict";var n=a("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(a("448a")),r=n(a("278c")),o=n(a("63748"));a("d3b7"),a("caad"),a("2532"),a("b0c0"),a("ddb0"),a("a434"),a("4de4"),a("fb6a");var s={visitedViews:[],cachedViews:[]},u={ADD_VISITED_VIEW:function(e,t){e.visitedViews.some((function(e){return e.path===t.path}))||e.visitedViews.push(Object.assign({},t,{title:t.meta.title||"no-name"}))},ADD_CACHED_VIEW:function(e,t){e.cachedViews.includes(t.name)||t.meta.noCache||e.cachedViews.push(t.name)},DEL_VISITED_VIEW:function(e,t){var a,n=(0,o.default)(e.visitedViews.entries());try{for(n.s();!(a=n.n()).done;){var i=(0,r.default)(a.value,2),s=i[0],u=i[1];if(u.path===t.path){e.visitedViews.splice(s,1);break}}}catch(c){n.e(c)}finally{n.f()}},DEL_CACHED_VIEW:function(e,t){var a,n=(0,o.default)(e.cachedViews);try{for(n.s();!(a=n.n()).done;){var i=a.value;if(i===t.name){var r=e.cachedViews.indexOf(i);e.cachedViews.splice(r,1);break}}}catch(s){n.e(s)}finally{n.f()}},DEL_OTHERS_VISITED_VIEWS:function(e,t){e.visitedViews=e.visitedViews.filter((function(e){return e.meta.affix||e.path===t.path}))},DEL_OTHERS_CACHED_VIEWS:function(e,t){var a,n=(0,o.default)(e.cachedViews);try{for(n.s();!(a=n.n()).done;){var i=a.value;if(i===t.name){var r=e.cachedViews.indexOf(i);e.cachedViews=e.cachedViews.slice(r,r+1);break}}}catch(s){n.e(s)}finally{n.f()}},DEL_ALL_VISITED_VIEWS:function(e){var t=e.visitedViews.filter((function(e){return e.meta.affix}));e.visitedViews=t},DEL_ALL_CACHED_VIEWS:function(e){e.cachedViews=[]},UPDATE_VISITED_VIEW:function(e,t){var a,n=(0,o.default)(e.visitedViews);try{for(n.s();!(a=n.n()).done;){var i=a.value;if(i.path===t.path){i=Object.assign(i,t);break}}}catch(r){n.e(r)}finally{n.f()}}},c={addView:function(e,t){var a=e.dispatch;a("addVisitedView",t),a("addCachedView",t)},addVisitedView:function(e,t){var a=e.commit;a("ADD_VISITED_VIEW",t)},addCachedView:function(e,t){var a=e.commit;a("ADD_CACHED_VIEW",t)},delView:function(e,t){var a=e.dispatch,n=e.state;return new Promise((function(e){a("delVisitedView",t),a("delCachedView",t),e({visitedViews:(0,i.default)(n.visitedViews),cachedViews:(0,i.default)(n.cachedViews)})}))},delVisitedView:function(e,t){var a=e.commit,n=e.state;return new Promise((function(e){a("DEL_VISITED_VIEW",t),e((0,i.default)(n.visitedViews))}))},delCachedView:function(e,t){var a=e.commit,n=e.state;return new Promise((function(e){a("DEL_CACHED_VIEW",t),e((0,i.default)(n.cachedViews))}))},delOthersViews:function(e,t){var a=e.dispatch,n=e.state;return new Promise((function(e){a("delOthersVisitedViews",t),a("delOthersCachedViews",t),e({visitedViews:(0,i.default)(n.visitedViews),cachedViews:(0,i.default)(n.cachedViews)})}))},delOthersVisitedViews:function(e,t){var a=e.commit,n=e.state;return new Promise((function(e){a("DEL_OTHERS_VISITED_VIEWS",t),e((0,i.default)(n.visitedViews))}))},delOthersCachedViews:function(e,t){var a=e.commit,n=e.state;return new Promise((function(e){a("DEL_OTHERS_CACHED_VIEWS",t),e((0,i.default)(n.cachedViews))}))},delAllViews:function(e,t){var a=e.dispatch,n=e.state;return new Promise((function(e){a("delAllVisitedViews",t),a("delAllCachedViews",t),e({visitedViews:(0,i.default)(n.visitedViews),cachedViews:(0,i.default)(n.cachedViews)})}))},delAllVisitedViews:function(e){var t=e.commit,a=e.state;return new Promise((function(e){t("DEL_ALL_VISITED_VIEWS"),e((0,i.default)(a.visitedViews))}))},delAllCachedViews:function(e){var t=e.commit,a=e.state;return new Promise((function(e){t("DEL_ALL_CACHED_VIEWS"),e((0,i.default)(a.cachedViews))}))},updateVisitedView:function(e,t){var a=e.commit;a("UPDATE_VISITED_VIEW",t)}},d={namespaced:!0,state:s,mutations:u,actions:c};t.default=d},"83d6":function(e,t){e.exports={title:"RVC-Speakers",sideTheme:"theme-dark",showSettings:!1,topNav:!1,tagsView:!0,fixedHeader:!1,sidebarLogo:!0,dynamicTitle:!1,errorLog:"production",tokenCookieExpires:1,passCookieExpires:1,AccessTokenKey:"ACCESS_TOKEN",RefreshTokenKey:"REFRESH_TOKEN",pageStatusKey:"pageStatus",timeout:12e5,showFooter:!0,footerTxt:'© <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License 2.0</a>',caseNumber:""}},"94d5":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={deployUploadApi:function(e){return e.api.deployUploadApi},databaseUploadApi:function(e){return e.api.databaseUploadApi},sidebar:function(e){return e.app.sidebar},size:function(e){return e.app.size},device:function(e){return e.app.device},token:function(e){return e.user.token},visitedViews:function(e){return e.tagsView.visitedViews},cachedViews:function(e){return e.tagsView.cachedViews},socketApi:function(e){return e.api.socketApi},imagesUploadApi:function(e){return e.api.imagesUploadApi}},i=n;t.default=i},a18c:function(e,t,a){"use strict";var n=a("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.constantRoutes=void 0;var i=n(a("2b0e")),r=n(a("8c4f"));i.default.use(r.default);var o=[{path:"/401",component:function(e){return a.e("chunk-30643776").then(function(){var t=[a("ec55")];e.apply(null,t)}.bind(this)).catch(a.oe)},hidden:!0},{path:"/",component:function(e){return a.e("chunk-3be99966").then(function(){var t=[a("1e4b")];e.apply(null,t)}.bind(this)).catch(a.oe)}}];t.constantRoutes=o;var s=r.default.prototype.push;r.default.prototype.push=function(e){return s.call(this,e).catch((function(e){return e}))};var u=new r.default({base:Object({VUE_APP_BASE_API:"http://gateway.ngrok.suoxya.com",VUE_APP_WS_API:"wss://api.auauz.net",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_APP_NAME?Object({VUE_APP_BASE_API:"http://gateway.ngrok.suoxya.com",VUE_APP_WS_API:"wss://api.auauz.net",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_APP_NAME:"/",mode:"history",scrollBehavior:function(){return{y:0}},routes:o});t.default=u},b48e:function(e,t,a){"use strict";var n=a("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.DICT_TYPE=void 0,t.getDictData=l,t.getDictDataL=void 0,t.getDictDataLabel=_,t.getDictDatas=c,t.getDictDatas2=d,a("b0c0");var i=n(a("5bc3")),r=n(a("970b")),o=n(a("63748")),s=n(a("4360")),u={USER_TYPE:"user_type",COMMON_STATUS:"common_status",SYSTEM_USER_SEX:"system_user_sex",SYSTEM_MENU_TYPE:"system_menu_type",SYSTEM_ROLE_TYPE:"system_role_type",SYSTEM_DATA_SCOPE:"system_data_scope",SYSTEM_VIEW_SCOPE:"system_view_scope",SYSTEM_NOTICE_TYPE:"system_notice_type",SYSTEM_OPERATE_TYPE:"system_operate_type",SYSTEM_LOGIN_TYPE:"system_login_type",SYSTEM_LOGIN_RESULT:"system_login_result",SYSTEM_SMS_CHANNEL_CODE:"system_sms_channel_code",SYSTEM_SMS_TEMPLATE_TYPE:"system_sms_template_type",SYSTEM_SMS_SEND_STATUS:"system_sms_send_status",SYSTEM_SMS_RECEIVE_STATUS:"system_sms_receive_status",SYSTEM_ERROR_CODE_TYPE:"system_error_code_type",SYSTEM_OAUTH2_GRANT_TYPE:"system_oauth2_grant_type",INFRA_BOOLEAN_STRING:"infra_boolean_string",INFRA_REDIS_TIMEOUT_TYPE:"infra_redis_timeout_type",INFRA_JOB_STATUS:"infra_job_status",INFRA_JOB_LOG_STATUS:"infra_job_log_status",INFRA_API_ERROR_LOG_PROCESS_STATUS:"infra_api_error_log_process_status",INFRA_CONFIG_TYPE:"infra_config_type",INFRA_CODEGEN_TEMPLATE_TYPE:"infra_codegen_template_type",INFRA_CODEGEN_SCENE:"infra_codegen_scene",INFRA_FILE_STORAGE:"infra_file_storage",BPM_MODEL_CATEGORY:"bpm_model_category",BPM_MODEL_FORM_TYPE:"bpm_model_form_type",BPM_TASK_ASSIGN_RULE_TYPE:"bpm_task_assign_rule_type",BPM_PROCESS_INSTANCE_STATUS:"bpm_process_instance_status",BPM_PROCESS_INSTANCE_RESULT:"bpm_process_instance_result",BPM_TASK_ASSIGN_SCRIPT:"bpm_task_assign_script",BPM_OA_LEAVE_TYPE:"bpm_oa_leave_type",PAY_CHANNEL_WECHAT_VERSION:"pay_channel_wechat_version",PAY_CHANNEL_ALIPAY_SIGN_TYPE:"pay_channel_alipay_sign_type",PAY_CHANNEL_ALIPAY_MODE:"pay_channel_alipay_mode",PAY_CHANNEL_ALIPAY_SERVER_TYPE:"pay_channel_alipay_server_type",PAY_CHANNEL_CODE_TYPE:"pay_channel_code_type",PAY_ORDER_NOTIFY_STATUS:"pay_order_notify_status",PAY_ORDER_STATUS:"pay_order_status",PAY_ORDER_REFUND_STATUS:"pay_order_refund_status",PAY_REFUND_ORDER_STATUS:"pay_refund_order_status",PAY_REFUND_ORDER_TYPE:"pay_refund_order_type",KM_BIZ_TYPE:"km_biz_type",SjkTenderField:"SjkTenderField"};function c(e){return s.default.getters.dict_datas[e]||[]}function d(e,t){if(void 0===t)return[];Array.isArray(t)||(t=[this.value]);var a,n=[],i=(0,o.default)(t);try{for(i.s();!(a=i.n()).done;){var r=a.value,s=l(e,r);s&&n.push(s)}}catch(u){i.e(u)}finally{i.f()}return n}function l(e,t){var a=c(e);if(!a||0===a.length)return"";t+="";var n,i=(0,o.default)(a);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.value===t)return r}}catch(s){i.e(s)}finally{i.f()}}function _(e,t){var a=l(e,t);return a?a.name:""}t.DICT_TYPE=u;var f=(0,i.default)((function e(){(0,r.default)(this,e)}));t.getDictDataL=f},c38a:function(e,t,a){"use strict";var n=a("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.addBeginAndEndTime=d,t.addDateRange=c,t.findTreeDeptChild=E,t.getBasePath=v,t.getDocEnable=h,t.getNowDateTime=m,t.getPath=g,t.getTenantEnable=A,t.handleTree=f,t.parseTime=s,t.praseStrEmpty=_,t.resetForm=u,t.sprintf=l,t.toTree=p,a("ac1f"),a("00b4"),a("5319"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("d3b7"),a("fb6a"),a("d81d"),a("e9c4"),a("4de4"),a("a9e3"),a("4d90"),a("99af"),a("8a79"),a("2ca0");var i=n(a("63748")),r=n(a("7037")),o=a("ed08");function s(e,t){if(0===arguments.length||!e)return null;var a,n=t||"{y}-{m}-{d} {h}:{i}:{s}";"object"===(0,r.default)(e)?a=e:("string"===typeof e&&/^[0-9]+$/.test(e)?e=parseInt(e):"string"===typeof e&&(e=e.replace(new RegExp(/-/gm),"/").replace("T"," ").replace(new RegExp(/\.[\d]{3}/gm),"")),"number"===typeof e&&10===e.toString().length&&(e*=1e3),a=new Date(e));var i={y:a.getFullYear(),m:a.getMonth()+1,d:a.getDate(),h:a.getHours(),i:a.getMinutes(),s:a.getSeconds(),a:a.getDay()},o=n.replace(/{(y|m|d|h|i|s|a)+}/g,(function(e,t){var a=i[t];return"a"===t?["日","一","二","三","四","五","六"][a]:(e.length>0&&a<10&&(a="0"+a),a||0)}));return o}function u(e){this.$refs[e]&&this.$refs[e].resetFields()}function c(e,t,a){var n=e;return n.params={},null!=t&&""!==t&&("undefined"===typeof a?(n["beginTime"]=t[0],n["endTime"]=t[1]):(n["begin"+a]=t[0],n["end"+a]=t[1])),n}function d(e,t,a){return t?(a=a?a.charAt(0).toUpperCase()+a.slice(1):"Time",t[0]&&(e["begin"+a]=t[0]+" 00:00:00"),t[1]&&(e["end"+a]=t[1]+" 23:59:59"),e):e}function l(e){var t=arguments,a=!0,n=1;return e=e.replace(/%s/g,(function(){var e=t[n++];return"undefined"===typeof e?(a=!1,""):e})),a?e:""}function _(e){return e&&"undefined"!=e&&"null"!=e?e:""}function f(e,t,a,n,i){t=t||"id",a=a||"parentId",n=n||"children",i=i||Math.min.apply(Math,e.map((function(e){return e[a]})))||0;var r=JSON.parse(JSON.stringify(e)),s=r.filter((function(e){var n,s=r.filter((function(n){return e[t]===n[a]}));return s.length>0&&(e.children=s),n=(0,o.isNumberStr)(e[a])?Number(e[a]):e[a],n===i}));return""!==s?s:e}function p(e,t,a){for(var n=[],i={},r=0;r<e.length;r++)i[e[r][t]]=e[r];for(var o=0;o<e.length;o++){var s=e[o],u=i[e[o][a]];u?(u.children||(u.children=[])).push(e[o]):n.push(s)}return n}function E(e,t){var a,n=null,r=(0,i.default)(e);try{for(r.s();!(a=r.n()).done;){var o=a.value;if(Number(o.id)===Number(t)){n=o;break}}}catch(d){r.e(d)}finally{r.f()}if(null==n){var s,u=(0,i.default)(e);try{for(u.s();!(s=u.n()).done;){var c=s.value;c.children&&(n=E(c.children,t))}}catch(d){u.e(d)}finally{u.f()}}return n}function m(e){var t=new Date,a=t.getFullYear(),n=(t.getMonth()+1).toString().padStart(2,"0"),i=t.getDate().toString().padStart(2,"0");if(null!=e)return"".concat(a,"-").concat(n,"-").concat(i," ").concat(e);var r=t.getHours().toString().padStart(2,"0"),o=t.getMinutes().toString().padStart(2,"0"),s=t.getSeconds().toString().padStart(2,"0");return"".concat(a,"-").concat(n,"-").concat(i," ").concat(r,":").concat(o,":").concat(s)}function A(){return"true"===Object({VUE_APP_BASE_API:"http://gateway.ngrok.suoxya.com",VUE_APP_WS_API:"wss://api.auauz.net",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_TENANT_ENABLE||"false"!==Object({VUE_APP_BASE_API:"http://gateway.ngrok.suoxya.com",VUE_APP_WS_API:"wss://api.auauz.net",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_TENANT_ENABLE&&(Object({VUE_APP_BASE_API:"http://gateway.ngrok.suoxya.com",VUE_APP_WS_API:"wss://api.auauz.net",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_TENANT_ENABLE||!0)}function h(){return"true"===Object({VUE_APP_BASE_API:"http://gateway.ngrok.suoxya.com",VUE_APP_WS_API:"wss://api.auauz.net",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DOC_ENABLE||"false"!==Object({VUE_APP_BASE_API:"http://gateway.ngrok.suoxya.com",VUE_APP_WS_API:"wss://api.auauz.net",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DOC_ENABLE&&(Object({VUE_APP_BASE_API:"http://gateway.ngrok.suoxya.com",VUE_APP_WS_API:"wss://api.auauz.net",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DOC_ENABLE||!1)}function v(){return Object({VUE_APP_BASE_API:"http://gateway.ngrok.suoxya.com",VUE_APP_WS_API:"wss://api.auauz.net",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_APP_NAME||"/"}function g(e){var t=v();return t.endsWith("/")?(e.startsWith("/")&&(e=e.substring(1)),t+e):t+"/"}},c653:function(e,t,a){var n={"./api.js":"5b81","./app.js":"d9cd","./settings.js":"0781","./tagsView.js":"7509"};function i(e){var t=r(e);return a(t)}function r(e){if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=r,e.exports=i,i.id="c653"},d9cd:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={sidebar:{opened:!localStorage.getItem("sidebarStatus")||!!+localStorage.getItem("sidebarStatus"),withoutAnimation:!1,hide:!1},device:"desktop",size:localStorage.getItem("size")||"medium"},i={TOGGLE_SIDEBAR:function(e){if(e.sidebar.hide)return!1;e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?localStorage.setItem("sidebarStatus",1):localStorage.setItem("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){localStorage.setItem("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t},SET_SIZE:function(e,t){e.size=t,localStorage.setItem("size",t)},SET_SIDEBAR_HIDE:function(e,t){e.sidebar.hide=t}},r={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var a=e.commit,n=t.withoutAnimation;a("CLOSE_SIDEBAR",n)},toggleDevice:function(e,t){var a=e.commit;a("TOGGLE_DEVICE",t)},setSize:function(e,t){var a=e.commit;a("SET_SIZE",t)},toggleSideBarHide:function(e,t){var a=e.commit;a("SET_SIDEBAR_HIDE",t)}},o={namespaced:!0,state:n,mutations:i,actions:r};t.default=o},ed08:function(e,t,a){"use strict";var n=a("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.addClass=S,t.beautifierConf=void 0,t.byteLength=u,t.camelCase=O,t.cleanArray=c,t.createUniqueString=v,t.debounce=m,t.deepClone=A,t.deptTransListToTreeData=L,t.downloadFile=T,t.downloadUrl=P,t.exportDefault=void 0,t.formatTime=o,t.getQueryObject=s,t.getTime=E,t.hasClass=g,t.html2Text=_,t.isNumberStr=N,t.objectMerge=f,t.param=d,t.param2Obj=l,t.parseTime=r,t.regEmail=w,t.regMobile=b,t.removeClass=y,t.titleCase=I,t.toCamelCase=C,t.toggleClass=p,t.transListToTreeData=U,t.uniqueArr=h,a("ac1f"),a("00b4"),a("d3b7"),a("25f0"),a("5319"),a("a15b"),a("d81d"),a("b64b"),a("1276"),a("fb6a"),a("159b"),a("4d63"),a("c607"),a("2c3e"),a("a630"),a("3ca3"),a("6062"),a("ddb0"),a("466d"),a("2b3d"),a("9861");var i=n(a("7037"));function r(e,t){if(0===arguments.length)return null;var a,n=t||"{y}-{m}-{d} {h}:{i}:{s}";if("undefined"===typeof e||null===e||"null"===e)return"";"object"===(0,i.default)(e)?a=e:("string"===typeof e&&/^[0-9]+$/.test(e)&&(e=parseInt(e)),"number"===typeof e&&10===e.toString().length&&(e*=1e3),a=new Date(e));var r={y:a.getFullYear(),m:a.getMonth()+1,d:a.getDate(),h:a.getHours(),i:a.getMinutes(),s:a.getSeconds(),a:a.getDay()},o=n.replace(/{(y|m|d|h|i|s|a)+}/g,(function(e,t){var a=r[t];return"a"===t?["日","一","二","三","四","五","六"][a]:(e.length>0&&a<10&&(a="0"+a),a||0)}));return o}function o(e,t){e=10===(""+e).length?1e3*parseInt(e):+e;var a=new Date(e),n=Date.now(),i=(n-a)/1e3;return i<30?"刚刚":i<3600?Math.ceil(i/60)+"分钟前":i<86400?Math.ceil(i/3600)+"小时前":i<172800?"1天前":t?r(e,t):a.getMonth()+1+"月"+a.getDate()+"日"+a.getHours()+"时"+a.getMinutes()+"分"}function s(e){e=null==e?window.location.href:e;var t=e.substring(e.lastIndexOf("?")+1),a={},n=/([^?&=]+)=([^?&=]*)/g;return t.replace(n,(function(e,t,n){var i=decodeURIComponent(t),r=decodeURIComponent(n);return r=String(r),a[i]=r,e})),a}function u(e){for(var t=e.length,a=e.length-1;a>=0;a--){var n=e.charCodeAt(a);n>127&&n<=2047?t++:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&a--}return t}function c(e){for(var t=[],a=0;a<e.length;a++)e[a]&&t.push(e[a]);return t}function d(e){return e?c(Object.keys(e).map((function(t){return void 0===e[t]?"":encodeURIComponent(t)+"="+encodeURIComponent(e[t])}))).join("&"):""}function l(e){var t=e.split("?")[1];return t?JSON.parse('{"'+decodeURIComponent(t).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"').replace(/\+/g," ")+'"}'):{}}function _(e){var t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText}function f(e,t){return"object"!==(0,i.default)(e)&&(e={}),Array.isArray(t)?t.slice():(Object.keys(t).forEach((function(a){var n=t[a];"object"===(0,i.default)(n)?e[a]=f(e[a],n):e[a]=n})),e)}function p(e,t){if(e&&t){var a=e.className,n=a.indexOf(t);-1===n?a+=""+t:a=a.substr(0,n)+a.substr(n+t.length),e.className=a}}function E(e){return"start"===e?(new Date).getTime()-7776e6:new Date((new Date).toDateString())}function m(e,t,a){var n,i,r,o,s,u=function u(){var c=+new Date-o;c<t&&c>0?n=setTimeout(u,t-c):(n=null,a||(s=e.apply(r,i),n||(r=i=null)))};return function(){for(var i=arguments.length,c=new Array(i),d=0;d<i;d++)c[d]=arguments[d];r=this,o=+new Date;var l=a&&!n;return n||(n=setTimeout(u,t)),l&&(s=e.apply(r,c),r=c=null),s}}function A(e){var t=Object.prototype.toString;if(!e||"object"!==(0,i.default)(e))return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if("[object Date]"===t.call(e))return new Date(e.getTime());if("[object RegExp]"===t.call(e)){var a=[];return e.global&&a.push("g"),e.multiline&&a.push("m"),e.ignoreCase&&a.push("i"),new RegExp(e.source,a.join(""))}var n=Array.isArray(e)?[]:e.constructor?new e.constructor:{};for(var r in e)n[r]=A(e[r]);return n}function h(e){return Array.from(new Set(e))}function v(){var e=+new Date+"",t=parseInt(65536*(1+Math.random()))+"";return(+(t+e)).toString(32)}function g(e,t){return!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function S(e,t){g(e,t)||(e.className+=" "+t)}function y(e,t){if(g(e,t)){var a=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(a," ")}}function w(e){if(String(e).indexOf("@")>0){var t=e.split("@"),a="";if(t[0].length>3)for(var n=0;n<t[0].length-3;n++)a+="*";var i=t[0].substr(0,3)+a+"@"+t[1]}return i}function b(e){if(e.length>7)var t=e.substr(0,3)+"****"+e.substr(7);return t}function T(e,t,a){var n=window.URL.createObjectURL(new Blob([e])),i=document.createElement("a");i.style.display="none",i.href=n;var o=r(new Date)+"-"+t+"."+a;i.setAttribute("download",o),document.body.appendChild(i),i.click(),document.body.removeChild(i)}function P(e,t,a){var n=document.createElement("a");n.style.display="none",n.href=e;var i=r(new Date)+"-"+t+"."+a;n.setAttribute("download",i),document.body.appendChild(n),n.click(),document.body.removeChild(n)}var V="export default ";t.exportDefault=V;var D={html:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"separate",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0},js:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"normal",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!0,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0}};function I(e){return e.replace(/( |^)[a-z]/g,(function(e){return e.toUpperCase()}))}function O(e){return e.replace(/_[a-z]/g,(function(e){return e.substr(-1).toUpperCase()}))}function N(e){return/^[+-]?(0|([1-9]\d*))(\.\d+)?$/g.test(e)}function C(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}function U(e,t){var a=[];return e.forEach((function(n){if(n.viewPid===t){var i=U(e,n.viewId);i.length&&(n.children=i),a.push(n)}})),a}function L(e,t){var a=[];return e.forEach((function(n){if(n.sysPid===t){var i=L(e,n.sysId);i.length&&(n["children"]=i),a.push(n)}})),a}t.beautifierConf=D}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]);
speakers/server/static/static/js/chunk-0d381050.86edc397.js DELETED
@@ -1,2 +0,0 @@
1
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0d381050"],{"0c47":function(t,e,r){var a=r("da84"),o=r("d44e");o(a.JSON,"JSON",!0)},"131a":function(t,e,r){var a=r("23e7"),o=r("d2bb");a({target:"Object",stat:!0},{setPrototypeOf:o})},"1e4b":function(t,e,r){"use strict";r.r(e);var a=r("c94b"),o=r("75e5");for(var n in o)["default"].indexOf(n)<0&&function(t){r.d(e,t,(function(){return o[t]}))}(n);r("60f4");var i=r("2877"),l=Object(i["a"])(o["default"],a["a"],a["b"],!1,null,"62fc0152",null);e["default"]=l.exports},"23dc":function(t,e,r){var a=r("d44e");a(Math,"Math",!0)},3410:function(t,e,r){var a=r("23e7"),o=r("d039"),n=r("7b0b"),i=r("e163"),l=r("e177"),c=o((function(){i(1)}));a({target:"Object",stat:!0,forced:c,sham:!l},{getPrototypeOf:function(t){return i(n(t))}})},"365c":function(t,e,r){"use strict";var a=r("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.runnerSubmit=e.runnerResult=void 0;var o=a(r("e5a8")),n=function(t){return(0,o.default)({url:"/runner/submit",method:"post",data:t})};e.runnerSubmit=n;var i=function(t){return(0,o.default)({url:"/runner/result",method:"get",responseType:"blob",params:t})};e.runnerResult=i},"4dc3":function(t,e,r){"use strict";var a=r("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,r("d3b7"),r("3ca3"),r("ddb0"),r("2b3d"),r("9861");var o=a(r("7ec2")),n=a(r("c973")),i=(a(r("bc3a")),r("365c"));function l(t,e,r){var a=t<e?1:-1,o=t+a*r;return 1===a&&o>e||-1===a&&o<e?e:o}var c={data:function(){return{formData:{created_at:0,requested_at:0,parameter:{task_name:"bark_voice_task"},payload:{bark:{text:"青春的时间转瞬即逝,秋水于海又岂有一只浮游",speaker_history_prompt:"zh_speaker_2",text_temp:1,waveform_temp:.9},rvc:{model_index:0,f0_up_key:5,f0_method:"rmvpe",index_rate:.9,filter_radius:1,rms_mix_rate:1,resample_sr:0,protect:.33,f0_file:""}}},showProgressBar:!1,progress:0,showAudioPlayer:!1,src:null,foldBarkParams:!0,foldRvcParams:!0}},methods:{submitForm:function(){var t=this;return(0,n.default)((0,o.default)().mark((function e(){var r;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.showProgressBar=!0,t.progress=0,e.next=4,(0,i.runnerSubmit)(t.formData);case 4:if(r=e.sent,200!==r.data.code||!0!==r.data.data.finished){e.next=11;break}return t.progress=100,e.next=9,t.getResultAndDisplayAudio(r.data.data.task_id);case 9:e.next=13;break;case 11:return e.next=13,t.pollTaskStatus(r.data.data.task_id);case 13:case"end":return e.stop()}}),e)})))()},pollTaskStatus:function(t){var e=this;return(0,n.default)((0,o.default)().mark((function r(){var a;return(0,o.default)().wrap((function(r){while(1)switch(r.prev=r.next){case 0:a=setInterval((0,n.default)((0,o.default)().mark((function r(){var n;return(0,o.default)().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return e.progress=l(e.progress,100,20),r.next=3,(0,i.runnerSubmit)(e.formData);case 3:if(n=r.sent,200!==n.data.code||!0!==n.data.data.finished){r.next=9;break}return clearInterval(a),e.progress=100,r.next=9,e.getResultAndDisplayAudio(t);case 9:case"end":return r.stop()}}),r)}))),5e3);case 1:case"end":return r.stop()}}),r)})))()},getResultAndDisplayAudio:function(t){var e=this;return(0,n.default)((0,o.default)().mark((function r(){var a;return(0,o.default)().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,(0,i.runnerResult)({task_id:t});case 3:return a=r.sent,e.showAudioPlayer=!0,e.src=window.URL.createObjectURL(a.data),r.next=8,e.$refs.audio.play();case 8:r.next=12;break;case 10:r.prev=10,r.t0=r["catch"](0);case 12:case"end":return r.stop()}}),r,null,[[0,10]])})))()}}};e.default=c},"60f4":function(t,e,r){"use strict";r("b42f")},"75e5":function(t,e,r){"use strict";r.r(e);var a=r("4dc3"),o=r.n(a);for(var n in a)["default"].indexOf(n)<0&&function(t){r.d(e,t,(function(){return a[t]}))}(n);e["default"]=o.a},"7ec2":function(t,e,r){r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("d9e2"),r("3410"),r("159b"),r("b0c0"),r("131a"),r("fb6a");var a=r("7037")["default"];function o(){"use strict";
2
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=o=function(){return e},t.exports.__esModule=!0,t.exports["default"]=t.exports;var e={},r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(E){u=function(t,e,r){return t[e]=r}}function f(t,e,r,a){var o=e&&e.prototype instanceof m?e:m,n=Object.create(o.prototype),i=new L(a||[]);return n._invoke=function(t,e,r){var a="suspendedStart";return function(o,n){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===o)throw n;return j()}for(r.method=o,r.arg=n;;){var i=r.delegate;if(i){var l=k(i,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===a)throw a="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a="executing";var c=p(t,e,r);if("normal"===c.type){if(a=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(a="completed",r.method="throw",r.arg=c.arg)}}}(t,r,i),n}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}e.wrap=f;var d={};function m(){}function v(){}function h(){}var y={};u(y,l,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(O([])));_&&_!==r&&n.call(_,l)&&(y=_);var x=h.prototype=m.prototype=Object.create(y);function g(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(o,i,l,c){var s=p(t[o],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==a(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,l,c)}),(function(t){r("throw",t,l,c)})):e.resolve(f).then((function(t){u.value=t,l(u)}),(function(t){return r("throw",t,l,c)}))}c(s.arg)}var o;this._invoke=function(t,a){function n(){return new e((function(e,o){r(t,a,e,o)}))}return o=o?o.then(n,n):n()}}function k(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var a=p(r,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,d;var o=a.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function D(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function O(t){if(t){var e=t[l];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:j}}function j(){return{value:void 0,done:!0}}return v.prototype=h,u(x,"constructor",h),u(h,"constructor",v),v.displayName=u(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,u(t,s,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},g(w.prototype),u(w.prototype,c,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,a,o,n){void 0===n&&(n=Promise);var i=new w(f(t,r,a,o),n);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},g(x),u(x,s,"Generator"),u(x,l,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var a=e.pop();if(a in t)return r.value=a,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,a){return i.type="throw",i.arg=t,e.next=r,a&&(e.method="next",e.arg=void 0),!!a}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var a=r.completion;if("throw"===a.type){var o=a.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}t.exports=o,t.exports.__esModule=!0,t.exports["default"]=t.exports},"944a":function(t,e,r){var a=r("d066"),o=r("e065"),n=r("d44e");o("toStringTag"),n(a("Symbol"),"Symbol")},b42f:function(t,e,r){},b636:function(t,e,r){var a=r("e065");a("asyncIterator")},c94b:function(t,e,r){"use strict";r.d(e,"a",(function(){return a})),r.d(e,"b",(function(){return o}));var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("el-container",[r("el-header",[r("h1",[t._v("演示页面")])]),r("el-footer",[r("a",{attrs:{href:"/docs"}},[t._v("查看文档")]),r("a",{attrs:{target:"_blank",href:"https://github.com/glide-the/RVC-Speakers"}},[t._v("项目地址")])]),r("el-footer",{attrs:{title:"录音播放",visible:t.showAudioPlayer},on:{"update:visible":function(e){t.showAudioPlayer=e}}},[r("audio",{ref:"audio",attrs:{src:t.src,autoplay:"autoplay",controls:"controls"}},[t._v(" Your browser does not support the audio element. ")])]),r("el-main",[r("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("提交")]),t.showProgressBar?r("el-progress",{attrs:{percentage:t.progress}}):t._e(),r("el-form",{ref:"form",attrs:{model:t.formData,"label-width":"150px"}},[r("el-row",[r("el-col",{attrs:{span:12}},[r("el-card",[r("div",{attrs:{slot:"header"},slot:"header"},[t._v(" BarkProcessorData Parameters "),r("div",{staticStyle:{"text-align":"right","margin-top":"10px"}},[r("el-button",{attrs:{type:"text"},on:{click:function(e){t.foldBarkParams=!t.foldBarkParams}}},[t._v(" "+t._s(t.foldBarkParams?"展开":"折叠")+" ")])],1)]),t.foldBarkParams?t._e():r("div",[r("el-form-item",{attrs:{label:"text"}},[r("el-tooltip",{attrs:{content:"生成文本",placement:"top"}},[r("el-input",{model:{value:t.formData.payload.bark.text,callback:function(e){t.$set(t.formData.payload.bark,"text",e)},expression:"formData.payload.bark.text"}})],1)],1),r("el-form-item",{attrs:{label:"speaker_history_prompt"}},[r("el-tooltip",{attrs:{content:"音频预设npz文件",placement:"top"}},[r("el-input",{model:{value:t.formData.payload.bark.speaker_history_prompt,callback:function(e){t.$set(t.formData.payload.bark,"speaker_history_prompt",e)},expression:"formData.payload.bark.speaker_history_prompt"}})],1)],1),r("el-form-item",{attrs:{label:"text_temp"}},[r("el-tooltip",{attrs:{content:"提示特殊标记程序,趋近于1,提示词特殊标记越明显",placement:"top"}},[r("el-input",{model:{value:t.formData.payload.bark.text_temp,callback:function(e){t.$set(t.formData.payload.bark,"text_temp",e)},expression:"formData.payload.bark.text_temp"}})],1)],1),r("el-form-item",{attrs:{label:"waveform_temp"}},[r("el-tooltip",{attrs:{content:"提示隐藏空间转音频参数比例",placement:"top"}},[r("el-input",{model:{value:t.formData.payload.bark.waveform_temp,callback:function(e){t.$set(t.formData.payload.bark,"waveform_temp",e)},expression:"formData.payload.bark.waveform_temp"}})],1)],1)],1)])],1),r("el-col",{attrs:{span:12}},[r("el-card",[r("div",{attrs:{slot:"header"},slot:"header"},[t._v(" RvcProcessorData Parameters "),r("div",{staticStyle:{"text-align":"right","margin-top":"10px"}},[r("el-button",{attrs:{type:"text"},on:{click:function(e){t.foldRvcParams=!t.foldRvcParams}}},[t._v(" "+t._s(t.foldRvcParams?"展开":"折叠")+" ")])],1)]),t.foldRvcParams?t._e():r("div",[r("el-form-item",{attrs:{label:" (f0_up_key)"}},[r("el-tooltip",{attrs:{content:"变调",placement:"top"}},[r("el-input",{model:{value:t.formData.payload.rvc.f0_up_key,callback:function(e){t.$set(t.formData.payload.rvc,"f0_up_key",e)},expression:"formData.payload.rvc.f0_up_key"}})],1)],1),r("el-form-item",{attrs:{label:" (f0_file, 可选)"}},[r("el-tooltip",{attrs:{content:"F0曲线文件",placement:"top"}},[r("el-input",{model:{value:t.formData.payload.rvc.f0_file,callback:function(e){t.$set(t.formData.payload.rvc,"f0_file",e)},expression:"formData.payload.rvc.f0_file"}})],1)],1),r("el-form-item",{attrs:{label:" (protect)"}},[r("el-tooltip",{attrs:{content:"保护清辅音和呼吸声,防止电音撕裂等artifact,拉满0.5不开启,调低加大保护力度但可能降低索引效果",placement:"top"}},[r("el-input",{model:{value:t.formData.payload.rvc.protect,callback:function(e){t.$set(t.formData.payload.rvc,"protect",e)},expression:"formData.payload.rvc.protect"}})],1)],1),r("el-form-item",{attrs:{label:"model_index"}},[r("el-tooltip",{attrs:{content:"模型索引",placement:"top"}},[r("el-input",{model:{value:t.formData.payload.rvc.model_index,callback:function(e){t.$set(t.formData.payload.rvc,"model_index",e)},expression:"formData.payload.rvc.model_index"}})],1)],1),r("el-form-item",{attrs:{label:" (f0_method)"}},[r("el-tooltip",{attrs:{content:"F0方法",placement:"top"}},[r("el-input",{model:{value:t.formData.payload.rvc.f0_method,callback:function(e){t.$set(t.formData.payload.rvc,"f0_method",e)},expression:"formData.payload.rvc.f0_method"}})],1)],1),r("el-form-item",{attrs:{label:" (index_rate)"}},[r("el-tooltip",{attrs:{content:"检索特征占比",placement:"top"}},[r("el-input",{model:{value:t.formData.payload.rvc.index_rate,callback:function(e){t.$set(t.formData.payload.rvc,"index_rate",e)},expression:"formData.payload.rvc.index_rate"}})],1)],1),r("el-form-item",{attrs:{label:" (filter_radius)"}},[r("el-tooltip",{attrs:{content:"滤波半径",placement:"top"}},[r("el-input",{model:{value:t.formData.payload.rvc.filter_radius,callback:function(e){t.$set(t.formData.payload.rvc,"filter_radius",e)},expression:"formData.payload.rvc.filter_radius"}})],1)],1),r("el-form-item",{attrs:{label:" (rms_mix_rate)"}},[r("el-tooltip",{attrs:{content:"输入源音量包络替换输出音量包络融合比例,越靠近1越使用输出包络",placement:"top"}},[r("el-input",{model:{value:t.formData.payload.rvc.rms_mix_rate,callback:function(e){t.$set(t.formData.payload.rvc,"rms_mix_rate",e)},expression:"formData.payload.rvc.rms_mix_rate"}})],1)],1),r("el-form-item",{attrs:{label:"(resample_sr)"}},[r("el-tooltip",{attrs:{content:"后处理重采样至最终采样率,0为不进行重采样 ",placement:"top"}},[r("el-input",{model:{value:t.formData.payload.rvc.resample_sr,callback:function(e){t.$set(t.formData.payload.rvc,"resample_sr",e)},expression:"formData.payload.rvc.resample_sr"}})],1)],1)],1)])],1)],1)],1)],1)],1)],1)},o=[]},c973:function(t,e,r){function a(t,e,r,a,o,n,i){try{var l=t[n](i),c=l.value}catch(s){return void r(s)}l.done?e(c):Promise.resolve(c).then(a,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,n){var i=t.apply(e,r);function l(t){a(i,o,n,l,c,"next",t)}function c(t){a(i,o,n,l,c,"throw",t)}l(void 0)}))}}r("d3b7"),t.exports=o,t.exports.__esModule=!0,t.exports["default"]=t.exports},e5a8:function(t,e,r){"use strict";var a=r("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(r("7037"));r("b64b"),r("fb6a"),r("d3b7");var n=a(r("bc3a"));n.default.defaults.headers["Content-Type"]="application/json;charset=utf-8";var i=n.default.create({baseURL:"/",timeout:3e4,withCredentials:!1});i.interceptors.request.use((function(t){if("get"===t.method&&t.params){for(var e=t.url+"?",r=0,a=Object.keys(t.params);r<a.length;r++){var n=a[r],i=t.params[n],l=encodeURIComponent(n)+"=";if(null!==i&&"undefined"!==typeof i)if("object"===(0,o.default)(i))for(var c=0,s=Object.keys(i);c<s.length;c++){var u=s[c],f=n+"["+u+"]",p=encodeURIComponent(f)+"=";e+=p+encodeURIComponent(i[u])+"&"}else e+=l+encodeURIComponent(i)+"&"}e=e.slice(0,-1),t.params={},t.url=e}return t}),(function(t){Promise.reject(t)}));var l=i;e.default=l}}]);
 
 
 
speakers/server/static/static/js/chunk-3be99966.e6e6dca2.js ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3be99966"],{"0c47":function(t,e,a){var r=a("da84"),o=a("d44e");o(r.JSON,"JSON",!0)},"131a":function(t,e,a){var r=a("23e7"),o=a("d2bb");r({target:"Object",stat:!0},{setPrototypeOf:o})},"1e4b":function(t,e,a){"use strict";a.r(e);var r=a("bd08"),o=a("75e5");for(var n in o)["default"].indexOf(n)<0&&function(t){a.d(e,t,(function(){return o[t]}))}(n);a("285b");var l=a("2877"),i=Object(l["a"])(o["default"],r["a"],r["b"],!1,null,"71d21aad",null);e["default"]=i.exports},"23dc":function(t,e,a){var r=a("d44e");r(Math,"Math",!0)},"285b":function(t,e,a){"use strict";a("ef71")},3410:function(t,e,a){var r=a("23e7"),o=a("d039"),n=a("7b0b"),l=a("e163"),i=a("e177"),s=o((function(){l(1)}));r({target:"Object",stat:!0,forced:s,sham:!i},{getPrototypeOf:function(t){return l(n(t))}})},"365c":function(t,e,a){"use strict";var r=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.runnerSubmit=e.runnerResult=void 0;var o=r(a("e5a8")),n=function(t){return(0,o.default)({url:"/runner/submit",method:"post",data:t})};e.runnerSubmit=n;var l=function(t){return(0,o.default)({url:"/runner/result",method:"get",responseType:"blob",params:t})};e.runnerResult=l},"4dc3":function(t,e,a){"use strict";var r=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("d3b7"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861");var o=r(a("7ec2")),n=r(a("c973")),l=(r(a("bc3a")),a("365c"));function i(t,e,a){var r=t<e?1:-1,o=t+r*a;return 1===r&&o>e||-1===r&&o<e?e:o}var s={data:function(){return{options:[{value:0,label:"日本語"},{value:1,label:"简体中文"},{value:2,label:"English"}],formData:{created_at:0,requested_at:0,parameter:{task_name:"vits_voice_task"},payload:{bark:{text:"青春的时间转瞬即逝,秋水于海又岂有一只浮游",speaker_history_prompt:"zh_speaker_2",text_temp:1,waveform_temp:.9},edge:{text:"青春的时间转瞬即逝,秋水于海又岂有一只浮游",tts_speaker:55,rate:"-20%",volume:"+50%"},vits:{text:"青春的时间转瞬即逝,秋水于海又岂有一只浮游",language:1,speaker_id:486,noise_scale:.5,speed:1,noise_scale_w:1},rvc:{model_index:0,f0_up_key:5,f0_method:"rmvpe",index_rate:.9,filter_radius:1,rms_mix_rate:1,resample_sr:0,protect:.33,f0_file:""}}},showProgressBar:!1,progress:0,showAudioPlayer:!1,src:null}},methods:{submitForm:function(){var t=this;return(0,n.default)((0,o.default)().mark((function e(){var a;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.showProgressBar=!0,t.progress=0,e.next=4,(0,l.runnerSubmit)(t.formData);case 4:if(a=e.sent,200!==a.data.code||!0!==a.data.data.finished){e.next=11;break}return t.progress=100,e.next=9,t.getResultAndDisplayAudio(a.data.data.task_id);case 9:e.next=13;break;case 11:return e.next=13,t.pollTaskStatus(a.data.data.task_id);case 13:case"end":return e.stop()}}),e)})))()},pollTaskStatus:function(t){var e=this;return(0,n.default)((0,o.default)().mark((function a(){var r;return(0,o.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:r=setInterval((0,n.default)((0,o.default)().mark((function a(){var n;return(0,o.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.progress=i(e.progress,100,20),a.next=3,(0,l.runnerSubmit)(e.formData);case 3:if(n=a.sent,200!==n.data.code||!0!==n.data.data.finished){a.next=9;break}return clearInterval(r),e.progress=100,a.next=9,e.getResultAndDisplayAudio(t);case 9:case"end":return a.stop()}}),a)}))),5e3);case 1:case"end":return a.stop()}}),a)})))()},getResultAndDisplayAudio:function(t){var e=this;return(0,n.default)((0,o.default)().mark((function a(){var r;return(0,o.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,(0,l.runnerResult)({task_id:t});case 3:return r=a.sent,e.showAudioPlayer=!0,e.src=window.URL.createObjectURL(r.data),a.next=8,e.$refs.audio.play();case 8:a.next=12;break;case 10:a.prev=10,a.t0=a["catch"](0);case 12:case"end":return a.stop()}}),a,null,[[0,10]])})))()}}};e.default=s},"75e5":function(t,e,a){"use strict";a.r(e);var r=a("4dc3"),o=a.n(r);for(var n in r)["default"].indexOf(n)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(n);e["default"]=o.a},"7ec2":function(t,e,a){a("a4d3"),a("e01a"),a("d3b7"),a("d28b"),a("3ca3"),a("ddb0"),a("b636"),a("944a"),a("0c47"),a("23dc"),a("d9e2"),a("3410"),a("159b"),a("b0c0"),a("131a"),a("fb6a");var r=a("7037")["default"];function o(){"use strict";
2
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=o=function(){return e},t.exports.__esModule=!0,t.exports["default"]=t.exports;var e={},a=Object.prototype,n=a.hasOwnProperty,l="function"==typeof Symbol?Symbol:{},i=l.iterator||"@@iterator",s=l.asyncIterator||"@@asyncIterator",c=l.toStringTag||"@@toStringTag";function u(t,e,a){return Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(E){u=function(t,e,a){return t[e]=a}}function p(t,e,a,r){var o=e&&e.prototype instanceof m?e:m,n=Object.create(o.prototype),l=new P(r||[]);return n._invoke=function(t,e,a){var r="suspendedStart";return function(o,n){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw n;return $()}for(a.method=o,a.arg=n;;){var l=a.delegate;if(l){var i=w(l,a);if(i){if(i===d)continue;return i}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===r)throw r="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r="executing";var s=f(t,e,a);if("normal"===s.type){if(r=a.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r="completed",a.method="throw",a.arg=s.arg)}}}(t,a,l),n}function f(t,e,a){try{return{type:"normal",arg:t.call(e,a)}}catch(E){return{type:"throw",arg:E}}}e.wrap=p;var d={};function m(){}function v(){}function h(){}var y={};u(y,i,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(O([])));_&&_!==a&&n.call(_,i)&&(y=_);var x=h.prototype=m.prototype=Object.create(y);function g(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function a(o,l,i,s){var c=f(t[o],t,l);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==r(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){a("next",t,i,s)}),(function(t){a("throw",t,i,s)})):e.resolve(p).then((function(t){u.value=t,i(u)}),(function(t){return a("throw",t,i,s)}))}s(c.arg)}var o;this._invoke=function(t,r){function n(){return new e((function(e,o){a(t,r,e,o)}))}return o=o?o.then(n,n):n()}}function w(t,e){var a=t.iterator[e.method];if(void 0===a){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=f(a,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function D(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,r=function e(){for(;++a<t.length;)if(n.call(t,a))return e.value=t[a],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:$}}function $(){return{value:void 0,done:!0}}return v.prototype=h,u(x,"constructor",h),u(h,"constructor",v),v.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},g(k.prototype),u(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,a,r,o,n){void 0===n&&(n=Promise);var l=new k(p(t,a,r,o),n);return e.isGeneratorFunction(a)?l:l.next().then((function(t){return t.done?t.value:l.next()}))},g(x),u(x,c,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var a in t)e.push(a);return e.reverse(),function a(){for(;e.length;){var r=e.pop();if(r in t)return a.value=r,a.done=!1,a}return a.done=!0,a}},e.values=O,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function a(a,r){return l.type="throw",l.arg=t,e.next=a,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var i=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(i&&s){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(i){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var l=o?o.completion:{};return l.type=t,l.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(l)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var a=this.tryEntries[e];if(a.finallyLoc===t)return this.complete(a.completion,a.afterLoc),L(a),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var a=this.tryEntries[e];if(a.tryLoc===t){var r=a.completion;if("throw"===r.type){var o=r.arg;L(a)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,a){return this.delegate={iterator:O(t),resultName:e,nextLoc:a},"next"===this.method&&(this.arg=void 0),d}},e}t.exports=o,t.exports.__esModule=!0,t.exports["default"]=t.exports},"944a":function(t,e,a){var r=a("d066"),o=a("e065"),n=a("d44e");o("toStringTag"),n(r("Symbol"),"Symbol")},b636:function(t,e,a){var r=a("e065");r("asyncIterator")},bd08:function(t,e,a){"use strict";a.d(e,"a",(function(){return r})),a.d(e,"b",(function(){return o}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-container",[a("el-header",[a("h1",[t._v("演示页面")])]),a("el-footer",[a("a",{attrs:{href:"/docs"}},[t._v("查看文档")]),a("a",{attrs:{target:"_blank",href:"https://github.com/glide-the/RVC-Speakers"}},[t._v("项目地址")])]),a("el-footer",{attrs:{title:"录音播放",visible:t.showAudioPlayer},on:{"update:visible":function(e){t.showAudioPlayer=e}}},[a("audio",{ref:"audio",attrs:{src:t.src,autoplay:"autoplay",controls:"controls"}},[t._v(" Your browser does not support the audio element. ")])]),a("el-main",[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:3}},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.submitForm}},[t._v("提交")])],1),a("el-col",{attrs:{span:12}},[a("el-radio-group",{attrs:{size:"small"},model:{value:t.formData.parameter.task_name,callback:function(e){t.$set(t.formData.parameter,"task_name",e)},expression:"formData.parameter.task_name"}},[a("el-radio-button",{attrs:{label:"vits_voice_task"}}),a("el-radio-button",{attrs:{label:"edge_voice_task"}}),a("el-radio-button",{attrs:{label:"bark_voice_task"}})],1)],1)],1),t.showProgressBar?a("el-progress",{attrs:{percentage:t.progress}}):t._e(),a("el-form",{ref:"form",attrs:{model:t.formData,"label-width":"150px"}},[a("el-tabs",{attrs:{"tab-position":"left"}},["vits_voice_task"===t.formData.parameter.task_name?a("el-tab-pane",{attrs:{label:"VitsProcessorData Parameters"}},[a("el-form-item",{attrs:{label:"text"}},[a("el-tooltip",{attrs:{content:"生成文本",placement:"top"}},[a("el-input",{model:{value:t.formData.payload.vits.text,callback:function(e){t.$set(t.formData.payload.vits,"text",e)},expression:"formData.payload.vits.text"}})],1)],1),a("el-form-item",{attrs:{label:"语言"}},[a("el-select",{model:{value:t.formData.payload.vits.language,callback:function(e){t.$set(t.formData.payload.vits,"language",e)},expression:"formData.payload.vits.language"}},t._l(t.options,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),a("el-form-item",{attrs:{label:"speaker_id"}},[a("el-tooltip",{attrs:{content:"讲话人ID",placement:"top"}},[a("el-input",{model:{value:t.formData.payload.vits.speaker_id,callback:function(e){t.$set(t.formData.payload.vits,"speaker_id",e)},expression:"formData.payload.vits.speaker_id"}})],1)],1),a("el-form-item",{attrs:{label:"noise_scale"}},[a("el-tooltip",{attrs:{content:"控制感情变化程度",placement:"top"}},[a("el-slider",{attrs:{min:.5,max:2,step:.1},model:{value:t.formData.payload.vits.noise_scale,callback:function(e){t.$set(t.formData.payload.vits,"noise_scale",e)},expression:"formData.payload.vits.noise_scale"}})],1)],1),a("el-form-item",{attrs:{label:"speed"}},[a("el-tooltip",{attrs:{content:"语速",placement:"top"}},[a("el-slider",{attrs:{min:.5,max:2,step:.5},model:{value:t.formData.payload.vits.speed,callback:function(e){t.$set(t.formData.payload.vits,"speed",e)},expression:"formData.payload.vits.speed"}})],1)],1),a("el-form-item",{attrs:{label:"noise_scale_w"}},[a("el-tooltip",{attrs:{content:"控制音素发音长度",placement:"top"}},[a("el-slider",{attrs:{min:0,max:2,step:.01},model:{value:t.formData.payload.vits.noise_scale_w,callback:function(e){t.$set(t.formData.payload.vits,"noise_scale_w",e)},expression:"formData.payload.vits.noise_scale_w"}})],1)],1)],1):t._e(),"edge_voice_task"===t.formData.parameter.task_name?a("el-tab-pane",{attrs:{label:"EdgeProcessorData Parameters"}},[a("el-form-item",{attrs:{label:"text"}},[a("el-tooltip",{attrs:{content:"生成文本",placement:"top"}},[a("el-input",{model:{value:t.formData.payload.edge.text,callback:function(e){t.$set(t.formData.payload.edge,"text",e)},expression:"formData.payload.edge.text"}})],1)],1),a("el-form-item",{attrs:{label:"tts_speaker"}},[a("el-tooltip",{attrs:{content:"讲话人id",placement:"top"}},[a("el-input",{model:{value:t.formData.payload.edge.tts_speaker,callback:function(e){t.$set(t.formData.payload.edge,"tts_speaker",e)},expression:"formData.payload.edge.tts_speaker"}})],1)],1),a("el-form-item",{attrs:{label:"rate"}},[a("el-tooltip",{attrs:{content:"语速",placement:"top"}},[a("el-input",{model:{value:t.formData.payload.edge.rate,callback:function(e){t.$set(t.formData.payload.edge,"rate",e)},expression:"formData.payload.edge.rate"}})],1)],1),a("el-form-item",{attrs:{label:"volume"}},[a("el-tooltip",{attrs:{content:"语气轻重",placement:"top"}},[a("el-input",{model:{value:t.formData.payload.edge.volume,callback:function(e){t.$set(t.formData.payload.edge,"volume",e)},expression:"formData.payload.edge.volume"}})],1)],1)],1):t._e(),"bark_voice_task"===t.formData.parameter.task_name?a("el-tab-pane",{attrs:{label:"BarkProcessorData Parameters"}},[a("el-form-item",{attrs:{label:"text"}},[a("el-tooltip",{attrs:{content:"生成文本",placement:"top"}},[a("el-input",{model:{value:t.formData.payload.bark.text,callback:function(e){t.$set(t.formData.payload.bark,"text",e)},expression:"formData.payload.bark.text"}})],1)],1),a("el-form-item",{attrs:{label:"speaker_history_prompt"}},[a("el-tooltip",{attrs:{content:"音频预设npz文件",placement:"top"}},[a("el-input",{model:{value:t.formData.payload.bark.speaker_history_prompt,callback:function(e){t.$set(t.formData.payload.bark,"speaker_history_prompt",e)},expression:"formData.payload.bark.speaker_history_prompt"}})],1)],1),a("el-form-item",{attrs:{label:"text_temp"}},[a("el-tooltip",{attrs:{content:"提示特殊标记程序,趋近于1,提示词特殊标记越明显",placement:"top"}},[a("el-input",{model:{value:t.formData.payload.bark.text_temp,callback:function(e){t.$set(t.formData.payload.bark,"text_temp",e)},expression:"formData.payload.bark.text_temp"}})],1)],1),a("el-form-item",{attrs:{label:"waveform_temp"}},[a("el-tooltip",{attrs:{content:"提示隐藏空间转音频参数比例",placement:"top"}},[a("el-input",{model:{value:t.formData.payload.bark.waveform_temp,callback:function(e){t.$set(t.formData.payload.bark,"waveform_temp",e)},expression:"formData.payload.bark.waveform_temp"}})],1)],1)],1):t._e(),a("el-tab-pane",{attrs:{label:"RvcProcessorData Parameters"}},[a("el-form-item",{attrs:{label:" (f0_up_key)"}},[a("el-tooltip",{attrs:{content:"变调",placement:"top"}},[a("el-input",{model:{value:t.formData.payload.rvc.f0_up_key,callback:function(e){t.$set(t.formData.payload.rvc,"f0_up_key",e)},expression:"formData.payload.rvc.f0_up_key"}})],1)],1),a("el-form-item",{attrs:{label:" (f0_file, 可选)"}},[a("el-tooltip",{attrs:{content:"F0曲线文件",placement:"top"}},[a("el-input",{model:{value:t.formData.payload.rvc.f0_file,callback:function(e){t.$set(t.formData.payload.rvc,"f0_file",e)},expression:"formData.payload.rvc.f0_file"}})],1)],1),a("el-form-item",{attrs:{label:" (protect)"}},[a("el-tooltip",{attrs:{content:"保护清辅音和呼吸声,防止电音撕裂等artifact,拉满0.5不开启,调低加大保护力度但可能降低索引效果",placement:"top"}},[a("el-input",{model:{value:t.formData.payload.rvc.protect,callback:function(e){t.$set(t.formData.payload.rvc,"protect",e)},expression:"formData.payload.rvc.protect"}})],1)],1),a("el-form-item",{attrs:{label:"model_index"}},[a("el-tooltip",{attrs:{content:"模型索引",placement:"top"}},[a("el-input",{model:{value:t.formData.payload.rvc.model_index,callback:function(e){t.$set(t.formData.payload.rvc,"model_index",e)},expression:"formData.payload.rvc.model_index"}})],1)],1),a("el-form-item",{attrs:{label:" (f0_method)"}},[a("el-tooltip",{attrs:{content:"F0方法",placement:"top"}},[a("el-input",{model:{value:t.formData.payload.rvc.f0_method,callback:function(e){t.$set(t.formData.payload.rvc,"f0_method",e)},expression:"formData.payload.rvc.f0_method"}})],1)],1),a("el-form-item",{attrs:{label:" (index_rate)"}},[a("el-tooltip",{attrs:{content:"检索特征占比",placement:"top"}},[a("el-input",{model:{value:t.formData.payload.rvc.index_rate,callback:function(e){t.$set(t.formData.payload.rvc,"index_rate",e)},expression:"formData.payload.rvc.index_rate"}})],1)],1),a("el-form-item",{attrs:{label:" (filter_radius)"}},[a("el-tooltip",{attrs:{content:"滤波半径",placement:"top"}},[a("el-input",{model:{value:t.formData.payload.rvc.filter_radius,callback:function(e){t.$set(t.formData.payload.rvc,"filter_radius",e)},expression:"formData.payload.rvc.filter_radius"}})],1)],1),a("el-form-item",{attrs:{label:" (rms_mix_rate)"}},[a("el-tooltip",{attrs:{content:"输入源音量包络替换输出音量包络融合比例,越靠近1越使用输出包络",placement:"top"}},[a("el-input",{model:{value:t.formData.payload.rvc.rms_mix_rate,callback:function(e){t.$set(t.formData.payload.rvc,"rms_mix_rate",e)},expression:"formData.payload.rvc.rms_mix_rate"}})],1)],1),a("el-form-item",{attrs:{label:"(resample_sr)"}},[a("el-tooltip",{attrs:{content:"后处理重采样至最终采样率,0为不进行重采样 ",placement:"top"}},[a("el-input",{model:{value:t.formData.payload.rvc.resample_sr,callback:function(e){t.$set(t.formData.payload.rvc,"resample_sr",e)},expression:"formData.payload.rvc.resample_sr"}})],1)],1)],1)],1)],1)],1)],1)],1)},o=[]},c973:function(t,e,a){function r(t,e,a,r,o,n,l){try{var i=t[n](l),s=i.value}catch(c){return void a(c)}i.done?e(s):Promise.resolve(s).then(r,o)}function o(t){return function(){var e=this,a=arguments;return new Promise((function(o,n){var l=t.apply(e,a);function i(t){r(l,o,n,i,s,"next",t)}function s(t){r(l,o,n,i,s,"throw",t)}i(void 0)}))}}a("d3b7"),t.exports=o,t.exports.__esModule=!0,t.exports["default"]=t.exports},e5a8:function(t,e,a){"use strict";var r=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(a("7037"));a("b64b"),a("fb6a"),a("d3b7");var n=r(a("bc3a"));n.default.defaults.headers["Content-Type"]="application/json;charset=utf-8";var l=n.default.create({baseURL:"/",timeout:3e4,withCredentials:!1});l.interceptors.request.use((function(t){if("get"===t.method&&t.params){for(var e=t.url+"?",a=0,r=Object.keys(t.params);a<r.length;a++){var n=r[a],l=t.params[n],i=encodeURIComponent(n)+"=";if(null!==l&&"undefined"!==typeof l)if("object"===(0,o.default)(l))for(var s=0,c=Object.keys(l);s<c.length;s++){var u=c[s],p=n+"["+u+"]",f=encodeURIComponent(p)+"=";e+=f+encodeURIComponent(l[u])+"&"}else e+=i+encodeURIComponent(l)+"&"}e=e.slice(0,-1),t.params={},t.url=e}return t}),(function(t){Promise.reject(t)}));var i=l;e.default=i},ef71:function(t,e,a){}}]);
speakers/speakers.py CHANGED
@@ -59,16 +59,25 @@ class Speaker:
59
 
60
  async def preparation_runner(self, task_id: str, payload: PayLoad = None):
61
  voice_task = get_task(payload.parameter.task_name)
62
- runner = voice_task.prepare(payload=payload)
63
-
64
- out_sr, output = await voice_task.dispatch(runner=runner)
65
- if output is not None:
66
- # 当前生命周期 saved
67
- # save audio to disk
68
- write_wav(self._result_path(f"{task_id}.wav"), out_sr, output)
69
- del output
70
- await voice_task.report_progress(task_id=runner.task_id, runner_stat='voice_task', state='saved',
71
- finished=True)
 
 
 
 
 
 
 
 
 
72
 
73
  def _result_path(self, path: str) -> str:
74
  return get_tmp_path(f'result/{path}')
 
59
 
60
  async def preparation_runner(self, task_id: str, payload: PayLoad = None):
61
  voice_task = get_task(payload.parameter.task_name)
62
+ try:
63
+
64
+ runner = voice_task.prepare(payload=payload)
65
+
66
+ out_sr, output = await voice_task.dispatch(runner=runner)
67
+ if output is not None:
68
+ # 当前生命周期 saved
69
+ # save audio to disk
70
+ write_wav(self._result_path(f"{task_id}.wav"), out_sr, output)
71
+ del output
72
+ await voice_task.report_progress(task_id=runner.task_id, runner_stat='preparation_runner',
73
+ state='saved',
74
+ finished=True)
75
+ except Exception as e:
76
+
77
+ logger.error(f'{e.__class__.__name__}: {e}',
78
+ exc_info=e)
79
+ await voice_task.report_progress(task_id=task_id, runner_stat='preparation_runner',
80
+ state='error', finished=True)
81
 
82
  def _result_path(self, path: str) -> str:
83
  return get_tmp_path(f'result/{path}')
speakers/speakers.yaml CHANGED
@@ -20,6 +20,8 @@ preprocess:
20
  coarse_model_path: "model/suno/bark_v0/coarse_2.pt"
21
  fine_model_path: "model/suno/bark_v0/fine_2.pt"
22
 
 
 
23
 
24
  tasks:
25
  - vits_voice_task:
@@ -40,7 +42,16 @@ tasks:
40
  - rvc:
41
  processor: "rvc_processor"
42
  processor_name: "RVC"
43
-
 
 
 
 
 
 
 
 
 
44
  bootstrap:
45
  - runner_bootstrap_web:
46
  name: "runner_bootstrap_web"
 
20
  coarse_model_path: "model/suno/bark_v0/coarse_2.pt"
21
  fine_model_path: "model/suno/bark_v0/fine_2.pt"
22
 
23
+ - edge_processor:
24
+ name: "edge_to_voice"
25
 
26
  tasks:
27
  - vits_voice_task:
 
42
  - rvc:
43
  processor: "rvc_processor"
44
  processor_name: "RVC"
45
+ - edge_voice_task:
46
+ name: "edge_voice_task"
47
+ preprocess:
48
+ - edge:
49
+ processor: "edge_processor"
50
+ processor_name: "EDGE"
51
+ - rvc:
52
+ processor: "rvc_processor"
53
+ processor_name: "RVC"
54
+
55
  bootstrap:
56
  - runner_bootstrap_web:
57
  name: "runner_bootstrap_web"
speakers/tasks/__init__.py CHANGED
@@ -5,6 +5,7 @@ from speakers.common.registry import registry
5
  from speakers.tasks.base_task import BaseTask, Runner, FlowData
6
  from speakers.tasks.vits_voice_task import VitsVoiceTask, VitsVoiceFlowData
7
  from speakers.tasks.bark_voice_task import BarkVoiceTask, BarkVoiceFlowData
 
8
 
9
  __all__ = [
10
  "BaseTask",
@@ -14,6 +15,7 @@ __all__ = [
14
  "get_task",
15
  "VitsVoiceFlowData",
16
  "BarkVoiceFlowData",
 
17
  "tasks_cache"
18
  ]
19
 
 
5
  from speakers.tasks.base_task import BaseTask, Runner, FlowData
6
  from speakers.tasks.vits_voice_task import VitsVoiceTask, VitsVoiceFlowData
7
  from speakers.tasks.bark_voice_task import BarkVoiceTask, BarkVoiceFlowData
8
+ from speakers.tasks.edge_voice_task import EdgeVoiceTask, EdgeVoiceFlowData
9
 
10
  __all__ = [
11
  "BaseTask",
 
15
  "get_task",
16
  "VitsVoiceFlowData",
17
  "BarkVoiceFlowData",
18
+ "EdgeVoiceFlowData",
19
  "tasks_cache"
20
  ]
21
 
speakers/tasks/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/speakers/tasks/__pycache__/__init__.cpython-310.pyc and b/speakers/tasks/__pycache__/__init__.cpython-310.pyc differ
 
speakers/tasks/__pycache__/bark_voice_task.cpython-310.pyc CHANGED
Binary files a/speakers/tasks/__pycache__/bark_voice_task.cpython-310.pyc and b/speakers/tasks/__pycache__/bark_voice_task.cpython-310.pyc differ
 
speakers/tasks/__pycache__/base_task.cpython-310.pyc CHANGED
Binary files a/speakers/tasks/__pycache__/base_task.cpython-310.pyc and b/speakers/tasks/__pycache__/base_task.cpython-310.pyc differ
 
speakers/tasks/__pycache__/edge_voice_task.cpython-310.pyc ADDED
Binary file (4.42 kB). View file