yc-vep-ui 0.5.13 → 0.5.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entry-BqAJ6nqo.js +3348 -0
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/useTable.d.ts +1 -1
- package/dist/index.css +0 -1
- package/dist/utils/index.js +1 -1
- package/dist/vep-ui.js +1 -1
- package/package.json +1 -1
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp-Df_I4zne-Dd1XzJ5C-D2hp-9Wv-DfD05Tio-JFBD-L-F-DyfF_beq-DQsQyNwa-CC9X_JR9-DPluomX5-Cti7-8MV-BEA1XUga-BNWQWI9F-C1ybhbmZ.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp-Df_I4zne-Dd1XzJ5C-D2hp-9Wv-DfD05Tio-JFBD-L-F-DyfF_beq-DQsQyNwa-CC9X_JR9-DPluomX5-Cti7-8MV-BEA1XUga-BNWQWI9F.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp-Df_I4zne-Dd1XzJ5C-D2hp-9Wv-DfD05Tio-JFBD-L-F-DyfF_beq-DQsQyNwa-CC9X_JR9-DPluomX5-Cti7-8MV-BEA1XUga.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp-Df_I4zne-Dd1XzJ5C-D2hp-9Wv-DfD05Tio-JFBD-L-F-DyfF_beq-DQsQyNwa-CC9X_JR9-DPluomX5-Cti7-8MV.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp-Df_I4zne-Dd1XzJ5C-D2hp-9Wv-DfD05Tio-JFBD-L-F-DyfF_beq-DQsQyNwa-CC9X_JR9-DPluomX5.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp-Df_I4zne-Dd1XzJ5C-D2hp-9Wv-DfD05Tio-JFBD-L-F-DyfF_beq-DQsQyNwa-CC9X_JR9.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp-Df_I4zne-Dd1XzJ5C-D2hp-9Wv-DfD05Tio-JFBD-L-F-DyfF_beq-DQsQyNwa.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp-Df_I4zne-Dd1XzJ5C-D2hp-9Wv-DfD05Tio-JFBD-L-F-DyfF_beq.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp-Df_I4zne-Dd1XzJ5C-D2hp-9Wv-DfD05Tio-JFBD-L-F.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp-Df_I4zne-Dd1XzJ5C-D2hp-9Wv-DfD05Tio.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp-Df_I4zne-Dd1XzJ5C-D2hp-9Wv.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp-Df_I4zne-Dd1XzJ5C.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp-Df_I4zne.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw.js +0 -467
- package/dist/SimulatorMask-BbciSmUv-Dn2dclmH.js +0 -467
- package/dist/entry-DbonE6sD.js +0 -281051
package/dist/hooks/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as e, d as t, f as n, l as r, p as i, u as a } from "../entry-
|
|
1
|
+
import { c as e, d as t, f as n, l as r, p as i, u as a } from "../entry-BqAJ6nqo.js";
|
|
2
2
|
export { r as useDictionary, i as useFetch, a as useRoute, t as useRouter, n as useTable, e as useUser };
|
package/dist/hooks/useTable.d.ts
CHANGED
package/dist/index.css
CHANGED
|
@@ -83,7 +83,6 @@
|
|
|
83
83
|
box-shadow: 0px 1px 0px var(--el-input-border-color, var(--el-border-color));
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
:root,:root .aie-theme-light{--aie-bg-color: #fff;--aie-border-color: #eee;--aie-text-color: #333;--aie-text-placeholder-color: #adb5bd;--aie-button-bg-color: #fafafa;--aie-button-border-color: #eee;--aie-button-hover-bg-color: #eee;--aie-button-hover-border-color: #ccc;--aie-input-bg-color: #fff;--aie-input-border-color: #e9e9e9;--aie-input-focus-bg-color: #fff;--aie-input-focus-border-color: #e9e9e9;--aie-popover-bg-color: #fff;--aie-popover-border-color: #e9e9e9;--aie-popover-title-color: #666;--aie-popover-selected-color: #eee;--aie-menus-text-color: var(--aie-text-color);--aie-menus-bg-color: #ffffff;--aie-menus-svg-color: #333;--aie-menus-item-hover-color: #eee;--aie-menus-divider-color: #eaeaea;--aie-menus-ai-bg-color: var(--aie-menus-svg-color);--aie-menus-ai-color: #ffffff;--aie-menus-tip-bg-color: #333;--aie-menus-tip-text-color: #eee;--aie-menus-table-cell-border-color: #ccc;--aie-menus-table-cell-border-active-color: #000;--aie-content-pre-bg-color: #f6f6f7;--aie-content-blockquote-bg-color: #f6f6f7;--aie-content-blockquote-border-color: #e3e3e3;--aie-content-blockquote-text-color: #888888;--aie-content-container-info-color: #eff1f3;--aie-content-container-warning-color: #fcf5e4;--aie-content-container-danger-color: #ffe7ea;--aie-content-table-th-bg-color: #efefef;--aie-content-table-selected-bg-color: rgba(200, 200, 255, .3);--aie-content-table-border-color: #ced4da;--aie-content-table-handler-color: #adf;--aie-content-scrollbar-track-piece: #f1f1f1;--aie-content-scrollbar-thumb: #c1c1c1;--aie-content-scrollbar-thumb-hover: #a9a9a9;--aie-content-scrollbar-thumb-active: #787878;--aie-content-link-a-color: blue;--aie-content-link-a-hover-color: red;--aie-content-link-a-visited-color: purple;--aie-content-link-a-active-color: green}:root .aie-theme-dark{--aie-text-color: #ccc;--aie-border-color: #333;--aie-text-placeholder-color: #777;--aie-bg-color: #1e2022;--aie-button-bg-color: #333;--aie-button-border-color: #606060;--aie-button-hover-bg-color: #606060;--aie-button-hover-border-color: #606060;--aie-input-bg-color: #505050;--aie-input-border-color: #666;--aie-input-focus-bg-color: #505050;--aie-input-focus-border-color: #999;--aie-popover-bg-color: #2A2A2B;--aie-popover-border-color: #505050;--aie-popover-title-color: #ccc;--aie-popover-selected-color: #505050;--aie-menus-text-color: var(--aie-text-color);--aie-menus-bg-color: #1a1b1e;--aie-menus-svg-color: #cccccc;--aie-menus-item-hover-color: #505050;--aie-menus-divider-color: #2c2c2c;--aie-menus-ai-bg-color: var(--aie-menus-svg-color);--aie-menus-ai-color: #000;--aie-menus-tip-bg-color: #eee;--aie-menus-tip-text-color: #333;--aie-menus-table-cell-border-color: #888;--aie-menus-table-cell-border-active-color: #ccc;--aie-content-pre-bg-color: #282c34;--aie-content-blockquote-bg-color: #282c34;--aie-content-blockquote-border-color: #505050;--aie-content-blockquote-text-color: #888888;--aie-content-container-info-color: #2a2c30;--aie-content-container-warning-color: #40361d;--aie-content-container-danger-color: #46222a;--aie-content-table-th-bg-color: #2c2c2c;--aie-content-table-selected-bg-color: rgba(200, 200, 255, .2);--aie-content-table-border-color: #353535;--aie-content-table-handler-color: #566a77;--aie-content-scrollbar-track-piece: #404040;--aie-content-scrollbar-thumb: #dddddd50;--aie-content-scrollbar-thumb-hover: #dddddd70;--aie-content-scrollbar-thumb-active: #dddddda0;--aie-content-link-a-color: #4ca3f5;--aie-content-link-a-hover-color: #ff4f4f;--aie-content-link-a-visited-color: #ff00ff;--aie-content-link-a-active-color: #00ff00}.table-bubble-menu.colors-menu{display:flex;padding-right:0}.table-bubble-menu.colors-menu .currentColor{width:16px;height:16px}.table-bubble-menu.colors-menu .currentColor .colors-menu-icon{height:calc(100% - 3px);width:100%;display:flex}.table-bubble-menu.colors-menu .currentColor .colors-menu-icon svg{width:100%;height:100%}.table-bubble-menu.colors-menu .currentColor .colors-menu-status{width:100%;height:3px;background:#333}.table-bubble-menu.colors-menu .colors-menu #dropdown{display:flex}.table-bubble-menu.colors-menu .colors-menu-status{width:100%;height:3px;background:#333}.aie-container{display:flex;flex-direction:column;height:100%;border:1px solid;border-color:var(--aie-border-color);background:var(--aie-bg-color)}.aie-container *,.aie-container :before,.aie-container :after{box-sizing:content-box}.aie-container .aie-translate-panel{margin-top:-5px}.aie-container .aie-translate-panel-body{width:fit-content;border:solid 1px;border-color:var(--aie-popover-border-color);background:var(--aie-popover-bg-color);border-radius:5px;box-shadow:0 0 7px #00000026;display:flex;flex-direction:column;overflow:hidden}.aie-container .aie-translate-panel-body p{width:100%;margin:0;cursor:pointer;display:flex;align-items:center;box-sizing:border-box;height:40px;line-height:40px;font-weight:600;font-size:14px;padding:0 20px;color:var(--aie-text-color);text-decoration:none;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif}.aie-container .aie-translate-panel-body p:hover{background:var(--aie-menus-item-hover-color)}.aie-container .aie-translate-result-panel{width:fit-content;height:fit-content;border:solid 1px;border-color:var(--aie-popover-border-color);background:var(--aie-popover-bg-color);border-radius:5px;box-shadow:0 0 7px #00000040;overflow:hidden}.aie-container .aie-translate-result-panel textarea{width:calc(100vw - 120px);max-width:500px;padding:5px;box-sizing:border-box;font-size:14px;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;border:none;margin:10px 10px 0;background:var(--aie-popover-bg-color);color:var(--aie-text-color);resize:none;max-height:300px}.aie-container .aie-translate-result-panel textarea:focus-visible{outline:0}.aie-container .aie-translate-result-panel div{display:flex;justify-content:end;border-top:solid 1px var(--aie-popover-border-color);padding:10px;background-color:var(--aie-popover-bg-color)}.aie-container .aie-translate-result-panel div button{margin-left:10px;background:var(--aie-button-bg-color);color:var(--aie-text-color);border:solid 1px;padding:5px 15px;font-size:14px;border-radius:3px;border-color:var(--aie-button-border-color);display:flex;align-items:center}.aie-container .aie-translate-result-panel div button svg{width:16px;height:16px;margin-right:3px}.aie-container .aie-translate-result-panel div button:hover{background-color:var(--aie-button-hover-bg-color);cursor:pointer}.aie-container .aie-ai-panel-body{width:500px;border:solid 1px;border-color:var(--aie-popover-border-color);background:var(--aie-popover-bg-color);border-radius:5px;box-shadow:0 0 7px #00000026;display:flex;flex-direction:column;overflow:hidden}.aie-container .aie-ai-panel-body-tips{width:100%;padding:10px;color:var(--aie-text-color);background-color:var(--aie-popover-bg-color);box-sizing:border-box;display:flex;align-items:center}.aie-container .aie-ai-panel-body-tips svg{width:16px;height:16px;margin-right:5px}.aie-container .aie-ai-panel-body-content{width:100%;position:relative}.aie-container .aie-ai-panel-body-content .loader{position:absolute;top:10px;right:10px;display:none}.aie-container .aie-ai-panel-body-content .loader svg{width:16px;color:#999;animation:rotate 2s linear infinite}.aie-container .aie-ai-panel-body-content textarea{width:100%;height:100%;max-height:300px;padding:15px;box-sizing:border-box;font-size:14px;line-height:1.6em;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;border:none;resize:none;color:var(--aie-text-color);background-color:var(--aie-popover-bg-color)}.aie-container .aie-ai-panel-body-content textarea:focus-visible{outline:none}.aie-container .aie-ai-panel-body-input{display:flex;justify-content:space-between;box-sizing:border-box;border-bottom:1px solid;border-bottom-color:var(--aie-input-border-color);align-items:center;padding:10px 20px 10px 10px}.aie-container .aie-ai-panel-body-input input{width:92%;height:100%;border:none;margin:0;background:var(--aie-input-bg-color);font-size:14px;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;padding:10px;box-sizing:border-box;border-radius:4px;color:var(--aie-text-color)}.aie-container .aie-ai-panel-body-input input::-webkit-input-placeholder{color:var(--aie-text-placeholder-color);font-size:14px}.aie-container .aie-ai-panel-body-input input:focus-visible{outline:none}.aie-container .aie-ai-panel-body-input button{border:none;border-radius:50%;padding:0;background:#609eec}.aie-container .aie-ai-panel-body-input button svg{fill:#fff;width:18px;margin-left:2px;margin-top:2px}.aie-container .aie-ai-panel-body-input button:hover{background:var(--aie-menus-item-hover-color);cursor:pointer}.aie-container .aie-ai-panel-footer{width:fit-content;border:solid 1px;border-color:var(--aie-popover-border-color);background:var(--aie-popover-bg-color);border-radius:5px;box-shadow:0 0 7px #00000026;display:flex;padding:10px 0;flex-direction:column;margin-top:5px}.aie-container .aie-ai-panel-footer-tips{padding:5px 10px;color:var(--aie-text-color);margin-bottom:5px}.aie-container .aie-ai-panel-footer hr{height:1px;width:100%;margin:5px 0;background-color:var(--aie-popover-border-color);border:none}.aie-container .aie-ai-panel-footer p{width:100%;margin:0}.aie-container .aie-ai-panel-footer p{cursor:pointer;display:flex;align-items:center;width:100%;box-sizing:border-box;height:40px;line-height:40px;font-weight:600;font-size:14px;padding:0 20px;color:var(--aie-text-color);text-decoration:none;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif}.aie-container .aie-ai-panel-footer p:hover{background:var(--aie-popover-selected-color)}.aie-container .aie-ai-panel-footer svg{width:20px;height:20px;margin-right:10px}.aie-container aie-header{color:var(--aie-menus-text-color);background:var(--aie-menus-bg-color);z-index:1}.aie-container aie-header>div{border-bottom:1px solid var(--aie-border-color)}.aie-container aie-header .aie-menu-divider{background:var(--aie-menus-divider-color);width:1px;height:16px;margin:auto}.aie-container aie-header .aie-menu-item{height:fit-content;padding:5px 1px;display:flex;align-items:center}.aie-container aie-header .aie-menu-item #text{font-size:14px}.aie-container aie-header .aie-menu-item svg{fill:var(--aie-menus-svg-color);width:16px;height:16px}.aie-container aie-header .aie-menu-item .menu-ai{display:flex;align-items:center;font-size:14px;text-align:center;background:var(--aie-menus-ai-bg-color);color:var(--aie-menus-ai-color);border-radius:3px;width:30px;padding:0 1px 0 5px;white-space:nowrap}.aie-container aie-header .aie-menu-item .menu-ai svg{fill:var(--aie-menus-ai-color)}.aie-container aie-header .aie-menu-item .colors-menu{display:flex;padding-right:0}.aie-container aie-header .aie-menu-item .colors-menu .currentColor{width:16px;height:16px}.aie-container aie-header .aie-menu-item .colors-menu .currentColor .colors-menu-icon{height:calc(100% - 3px);width:100%;display:flex}.aie-container aie-header .aie-menu-item .colors-menu .currentColor .colors-menu-icon svg{width:100%;height:100%}.aie-container aie-header .aie-menu-item .colors-menu .currentColor .colors-menu-status{width:100%;height:3px;background:#333}.aie-container aie-header .aie-menu-item .colors-menu #dropdown{display:flex}.aie-container aie-header .aie-menu-item .active{background:var(--aie-menus-item-hover-color)}.aie-container aie-header .aie-menu-item[data-size=medium] #text{font-size:16px}.aie-container aie-header .aie-menu-item[data-size=medium] svg{width:20px;height:20px}.aie-container aie-header .aie-menu-item[data-size=medium] .menu-ai svg{width:16px;height:16px}.aie-container aie-header .aie-menu-item[data-size=medium] .colors-menu .currentColor{width:18px;height:18px}.aie-container aie-header .aie-menu-item[data-size=large] #text{font-size:17px}.aie-container aie-header .aie-menu-item[data-size=large] #text svg{width:20px;height:20px}.aie-container aie-header .aie-menu-item[data-size=large] svg{width:24px;height:24px}.aie-container aie-header .aie-menu-item[data-size=large] .menu-ai svg{width:18px;height:18px}.aie-container aie-header .aie-menu-item[data-size=large] .colors-menu .currentColor{width:20px;height:20px}.aie-container aie-header .aie-menu-item>div{height:18px;padding:5px;display:flex;justify-content:center;align-items:center;cursor:pointer;border-radius:3px}.aie-container aie-header .aie-menu-item>div:hover:not([no-hover]){background:var(--aie-menus-item-hover-color)}.aie-container .aie-content:focus-visible{outline:none}.aie-container .aie-content ::selection{background:#88c6ff66}.aie-container .aie-content [contenteditable=true]::selection{background:#88c6ff66}.aie-container .aie-content [contenteditable=true]:focus-visible{outline:none}.aie-container .aie-content .selection-marker{background:#88c6ff66;padding:0}.aie-container .suggestion{background:var(--aie-menus-bg-color);border-radius:5px}.aie-container .suggestion .items{box-shadow:0 0 7px #0000001a;overflow:hidden;border-radius:5px;border:solid 1px;border-color:var(--aie-popover-border-color);background:var(--aie-popover-bg-color)}.aie-container .suggestion .items .item{display:flex;height:20px;width:150px;margin:0;color:var(--aie-text-color);background:var(--aie-menus-bg-color);border:none;text-align:left;padding:10px 20px;cursor:pointer;align-items:center;gap:5px}.aie-container .suggestion .items .item img{border-radius:50%;width:20px;height:20px}.aie-container .suggestion .items .item-selected{background:var(--aie-popover-selected-color)}.aie-container .aie-bubble-menu{height:30px;background:var(--aie-popover-bg-color);border:solid 1px var(--aie-popover-border-color);border-radius:3px;box-shadow:0 2px 5px 2px #0000001a;display:flex;align-items:center;padding:5px;color:var(--aie-text-color)}.aie-container .aie-bubble-menu .active{background:var(--aie-menus-item-hover-color)}.aie-container .aie-bubble-menu-item{height:20px;margin:3px;padding:5px;cursor:pointer;border-radius:3px}.aie-container .aie-bubble-menu-item svg{width:20px;height:20px;fill:var(--aie-text-color)}.aie-container .aie-bubble-menu-item:hover{background:var(--aie-menus-item-hover-color)}.aie-container .aie-dropdown-container{background:var(--aie-popover-bg-color);border:solid 1px var(--aie-popover-border-color);overflow:auto;box-shadow:0 2px 5px 2px #0000001a;padding:5px 0;border-radius:3px;color:var(--aie-menus-text-color)}.aie-container .aie-dropdown-container svg{fill:var(--aie-menus-text-color);width:16px;height:16px}.aie-container .aie-dropdown-container .aie-dropdown-item{display:flex;padding:3px 0}.aie-container .aie-dropdown-container .aie-dropdown-item .text{padding:2px 15px 0 0;overflow:hidden;font-size:14px;display:flex}.aie-container .aie-dropdown-container .aie-dropdown-item .text svg{width:18px;height:18px}.aie-container .aie-dropdown-container .aie-dropdown-item .text h1,.aie-container .aie-dropdown-container .aie-dropdown-item .text h2,.aie-container .aie-dropdown-container .aie-dropdown-item .text h3,.aie-container .aie-dropdown-container .aie-dropdown-item .text h4,.aie-container .aie-dropdown-container .aie-dropdown-item .text h5,.aie-container .aie-dropdown-container .aie-dropdown-item .text h6{padding:0;margin:0;border:none}.aie-container .aie-dropdown-container .aie-dropdown-item .text h1{font-size:1.7em}.aie-container .aie-dropdown-container .aie-dropdown-item .text h2{font-size:1.6em}.aie-container .aie-dropdown-container .aie-dropdown-item .text h3{font-size:1.5em}.aie-container .aie-dropdown-container .aie-dropdown-item .text h4{font-size:1.4em}.aie-container .aie-dropdown-container .aie-dropdown-item .text h5{font-size:1.3em}.aie-container .aie-dropdown-container .aie-dropdown-item .text h6{font-size:1.2em}.aie-container .aie-dropdown-container .aie-dropdown-item .red-dot-container{display:flex;width:30px;overflow:hidden;padding-bottom:5px}.aie-container .aie-dropdown-container .aie-dropdown-item .red-dot-container .red-dot{width:10px;height:6px;border-left:2px solid var(--aie-text-color);border-bottom:2px solid var(--aie-text-color);rotate:-45deg;margin:auto}.aie-container .aie-dropdown-container .aie-dropdown-item:hover{background:var(--aie-popover-selected-color);cursor:pointer}.aie-container .aie-dropdown-container .emoji-cells{display:flex;flex-wrap:wrap;align-items:center;margin:0 3px}.aie-container .aie-dropdown-container .emoji-cells .emoji-cell{margin:2px;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:2px 1px;border-radius:3px}.aie-container .aie-dropdown-container .emoji-cells .emoji-cell span{margin-top:2px}.aie-container .aie-dropdown-container .emoji-cells .emoji-cell:hover{background:var(--aie-popover-selected-color)}.aie-container .aie-dropdown-container #table-cells .table-cell{border:solid 1px var(--aie-menus-table-cell-border-color)}.aie-container .aie-dropdown-container #table-cells .active{background:var(--aie-popover-selected-color)}.aie-container .aie-dropdown-container .color-panel{margin:0 5px}.aie-container .aie-dropdown-container .color-panel-title{padding-top:5px;font-size:14px;color:var(--aie-popover-title-color)}.aie-container .aie-dropdown-container .color-panel-default-button{text-align:center;border:1px solid var(--aie-button-border-color);color:var(--aie-popover-title-color);line-height:24px;font-size:14px;border-radius:3px}.aie-container .aie-dropdown-container .color-panel-default-button,.aie-container .aie-dropdown-container .color-item,.aie-container .aie-dropdown-container .history-color-item{cursor:pointer}.aie-container .aie-resize-wrapper{position:relative;display:inline-flex}.aie-container .aie-resize-wrapper img{position:relative}.aie-container .aie-resize-wrapper:hover .aie-resize{display:inline-block}.aie-container .aie-resize-wrapper .aie-resize{display:none;position:absolute;top:-2px;left:-2px;border:2px solid #609eec;width:100%;height:100%}.aie-container .aie-resize-wrapper .aie-resize div{position:absolute;display:flex;width:20px;height:20px;z-index:1}.aie-container .aie-resize-wrapper .aie-resize div:after{content:"";display:block;margin:auto;width:8px;height:8px;background:#609eec;border-radius:50%}.aie-container .aie-resize-wrapper .aie-resize .aie-resize-btn-top-left{left:-10px;top:-10px;cursor:nwse-resize}.aie-container .aie-resize-wrapper .aie-resize .aie-resize-btn-top-right{right:-10px;top:-10px;cursor:nesw-resize}.aie-container .aie-resize-wrapper .aie-resize .aie-resize-btn-bottom-left{left:-10px;bottom:-10px;cursor:nesw-resize}.aie-container .aie-resize-wrapper .aie-resize .aie-resize-btn-bottom-right{right:-10px;bottom:-10px;cursor:nwse-resize}.aie-container .aie-loader-placeholder{width:200px;height:200px;background:#efefef;display:flex}.aie-container .aie-loader-placeholder svg{margin:auto;width:80px;fill:#ccc;animation:rotate 2s linear infinite}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.aie-container .aie-codeblock-wrapper{background:var(--aie-content-pre-bg-color);word-wrap:normal;white-space:normal;padding-top:5px;border-radius:5px}.aie-container .aie-codeblock-wrapper:hover .aie-codeblock-tools{display:flex}.aie-container .aie-codeblock-wrapper .aie-codeblock-tools{display:flex;justify-content:flex-end}.aie-container .aie-codeblock-wrapper .aie-codeblock-tools div{color:var(--aie-text-color);display:flex;cursor:pointer;align-items:center;font-size:14px;margin:0 3px}.aie-container .aie-codeblock-wrapper .aie-codeblock-tools-lang svg{fill:var(--aie-text-color);margin:2px;height:16px;width:16px}.aie-container .aie-codeblock-wrapper .aie-codeblock-tools-autowrap{margin:0 10px}.aie-container .aie-codeblock-wrapper .aie-codeblock-tools-autowrap svg{fill:var(--aie-text-color);margin:2px;height:14px;width:14px}.aie-container .aie-codeblock-langs{background:var(--aie-popover-bg-color);width:150px;max-height:300px;overflow:auto;border:solid 1px var(--aie-popover-border-color);color:var(--aie-menus-text-color)}.aie-container .aie-codeblock-langs-item{padding:5px;font-size:14px;height:20px;line-height:20px;cursor:pointer}.aie-container .aie-codeblock-langs-item:hover{background:var(--aie-popover-selected-color)}.aie-container .container-wrapper:hover .aie-container-tools{display:flex}.aie-container div.info{background:var(--aie-content-container-info-color)}.aie-container div.warning{background:var(--aie-content-container-warning-color)}.aie-container div.danger{background:var(--aie-content-container-danger-color)}.aie-container .aie-container-tools{width:40px;height:20px;position:absolute;top:5px;right:5px;display:none;justify-content:center;align-items:center;background:var(--aie-button-bg-color);border:solid 1px var(--aie-button-border-color);padding:3px 5px;border-radius:3px;cursor:pointer}.aie-container .aie-container-tools:hover{background:var(--aie-button-hover-bg-color);border-color:var(--aie-button-hover-border-color)}.aie-container .aie-container-tools-body{width:fit-content;height:fit-content;background:var(--aie-popover-bg-color);border:solid 1px var(--aie-button-border-color);display:flex;flex-direction:column;gap:5px;padding:10px;border-radius:3px;color:var(--aie-text-color)}.aie-container .aie-container-tools-body-color-items{display:flex;gap:5px}.aie-container .aie-container-tools-body-color-box{width:20px;height:20px;border:1px solid var(--aie-popover-border-color);cursor:pointer}.aie-container aie-footer>div{border-top:solid 1px var(--aie-border-color);height:20px;line-height:20px;font-size:14px;text-align:right;color:#666}.aie-container aie-footer>div span{margin-left:auto}.aie-container aie-footer>div svg{fill:#666;rotate:-45deg;transform:translateY(5px);cursor:nwse-resize}.aie-container .tippy-box{max-width:1000px!important}.aie-container .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}.aie-container [data-tippy-root]{max-width:calc(100vw - 10px)}.aie-container .tippy-box{position:relative;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.aie-container .tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.aie-container .tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.aie-container .tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.aie-container .tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.aie-container .tippy-box[data-placement^=left]>.tippy-arrow{right:0}.aie-container .tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.aie-container .tippy-box[data-placement^=right]>.tippy-arrow{left:0}.aie-container .tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.aie-container .tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.aie-container .tippy-arrow{width:16px;height:16px}.aie-container .tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.aie-container .tippy-content{position:relative;padding:5px 9px;z-index:1}.aie-container .tippy-box[data-theme~=aietip]{background-color:var(--aie-menus-tip-bg-color);color:var(--aie-menus-tip-text-color)}.aie-container .tippy-box[data-theme~=aietip][data-placement^=top]>.tippy-arrow:before{border-top-color:var(--aie-menus-tip-bg-color)}.aie-container .tippy-box[data-theme~=aietip][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:var(--aie-menus-tip-bg-color)}.aie-container .tippy-box[data-theme~=aietip][data-placement^=left]>.tippy-arrow:before{border-left-color:var(--aie-menus-tip-bg-color)}.aie-container .tippy-box[data-theme~=aietip][data-placement^=right]>.tippy-arrow:before{border-right-color:var(--aie-menus-tip-bg-color)}.aie-theme-light pre code.hljs{display:block;overflow-x:auto;padding:1em}.aie-theme-light code.hljs{padding:3px 5px}.aie-theme-light .hljs{color:#383a42;background:#fafafa}.aie-theme-light .hljs-comment,.aie-theme-light .hljs-quote{color:#a0a1a7;font-style:italic}.aie-theme-light .hljs-doctag,.aie-theme-light .hljs-keyword,.aie-theme-light .hljs-formula{color:#a626a4}.aie-theme-light .hljs-section,.aie-theme-light .hljs-name,.aie-theme-light .hljs-selector-tag,.aie-theme-light .hljs-deletion,.aie-theme-light .hljs-subst{color:#e45649}.aie-theme-light .hljs-literal{color:#0184bb}.aie-theme-light .hljs-string,.aie-theme-light .hljs-regexp,.aie-theme-light .hljs-addition,.aie-theme-light .hljs-attribute,.aie-theme-light .hljs-meta .hljs-string{color:#50a14f}.aie-theme-light .hljs-attr,.aie-theme-light .hljs-variable,.aie-theme-light .hljs-template-variable,.aie-theme-light .hljs-type,.aie-theme-light .hljs-selector-class,.aie-theme-light .hljs-selector-attr,.aie-theme-light .hljs-selector-pseudo,.aie-theme-light .hljs-number{color:#986801}.aie-theme-light .hljs-symbol,.aie-theme-light .hljs-bullet,.aie-theme-light .hljs-link,.aie-theme-light .hljs-meta,.aie-theme-light .hljs-selector-id,.aie-theme-light .hljs-title{color:#4078f2}.aie-theme-light .hljs-built_in,.aie-theme-light .hljs-title.class_,.aie-theme-light .hljs-class .hljs-title{color:#c18401}.aie-theme-light .hljs-emphasis{font-style:italic}.aie-theme-light .hljs-strong{font-weight:700}.aie-theme-light .hljs-link{text-decoration:underline}.aie-theme-dark pre code.hljs{display:block;overflow-x:auto;padding:1em}.aie-theme-dark code.hljs{padding:3px 5px}.aie-theme-dark .hljs{color:#abb2bf;background:#282c34}.aie-theme-dark .hljs-comment,.aie-theme-dark .hljs-quote{color:#5c6370;font-style:italic}.aie-theme-dark .hljs-doctag,.aie-theme-dark .hljs-keyword,.aie-theme-dark .hljs-formula{color:#c678dd}.aie-theme-dark .hljs-section,.aie-theme-dark .hljs-name,.aie-theme-dark .hljs-selector-tag,.aie-theme-dark .hljs-deletion,.aie-theme-dark .hljs-subst{color:#e06c75}.aie-theme-dark .hljs-literal{color:#56b6c2}.aie-theme-dark .hljs-string,.aie-theme-dark .hljs-regexp,.aie-theme-dark .hljs-addition,.aie-theme-dark .hljs-attribute,.aie-theme-dark .hljs-meta .hljs-string{color:#98c379}.aie-theme-dark .hljs-attr,.aie-theme-dark .hljs-variable,.aie-theme-dark .hljs-template-variable,.aie-theme-dark .hljs-type,.aie-theme-dark .hljs-selector-class,.aie-theme-dark .hljs-selector-attr,.aie-theme-dark .hljs-selector-pseudo,.aie-theme-dark .hljs-number{color:#d19a66}.aie-theme-dark .hljs-symbol,.aie-theme-dark .hljs-bullet,.aie-theme-dark .hljs-link,.aie-theme-dark .hljs-meta,.aie-theme-dark .hljs-selector-id,.aie-theme-dark .hljs-title{color:#61aeee}.aie-theme-dark .hljs-built_in,.aie-theme-dark .hljs-title.class_,.aie-theme-dark .hljs-class .hljs-title{color:#e6c07b}.aie-theme-dark .hljs-emphasis{font-style:italic}.aie-theme-dark .hljs-strong{font-weight:700}.aie-theme-dark .hljs-link{text-decoration:underline}.aie-popover{min-width:100px;min-height:100px;background:#fff;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 2px 5px 2px #0000001a;background:var(--aie-popover-bg-color);border:1px solid var(--aie-popover-border-color);border-radius:3px}.aie-popover-header{height:20px;display:flex;padding:5px 5px 0}.aie-popover-header-close{height:20px;width:20px;margin-left:auto;cursor:pointer}.aie-popover-header svg{fill:var(--aie-text-color)}.aie-popover-content{flex-grow:1;padding:0 10px}.aie-popover-content>div{color:var(--aie-text-color);font-size:14px}.aie-popover-content input,.aie-popover-content select,.aie-popover-content textarea{border:solid 1px var(--aie-input-border-color);height:25px;padding-inline:5px;border-radius:3px;background:var(--aie-input-bg-color);color:var(--aie-text-color)}.aie-popover-content input:focus-visible,.aie-popover-content select:focus-visible,.aie-popover-content textarea:focus-visible{outline:0;border:solid 1px var(--aie-input-focus-border-color);background-color:var(--aie-input-focus-bg-color)}.aie-popover-content select{height:30px}.aie-popover-footer{display:flex;padding:10px;justify-content:flex-end;align-items:center;gap:10px}.aie-popover-footer button{color:var(--aie-text-color);padding:5px 10px;font-size:14px;border-radius:3px;cursor:pointer;display:flex;align-items:center;justify-content:center;width:fit-content;gap:2px}.aie-popover-footer button svg{width:14px;height:14px;fill:var(--aie-text-color)}.aie-popover-footer-confirm{background:var(--aie-button-bg-color);border:solid 1px var(--aie-button-border-color)}.aie-popover-footer-confirm:hover{background:var(--aie-button-hover-bg-color);border-color:var(--aie-button-hover-border-color)}.aie-popover-footer-cancel{border:none;background:none}.aie-popover-footer-cancel:hover{background:var(--aie-button-hover-bg-color);border-color:var(--aie-button-hover-border-color)}.ai-command-container{width:200px;border:solid 1px;border-color:var(--aie-popover-border-color);background:var(--aie-popover-bg-color);color:var(--aie-text-color);border-radius:5px;box-shadow:0 0 7px #0000001a;display:flex;padding:10px 0;flex-direction:column}.ai-command-container .active{background:var(--aie-popover-selected-color)}.ai-command-container-title{width:100%;height:1px;background-color:#eaeaea;border:none;margin:5px 0}.ai-command-container hr{width:100%;height:1px;background-color:var(--aie-popover-border-color);border:none;margin:5px 0}.ai-command-container-header{display:flex;flex-wrap:wrap;align-items:center;padding:0 10px}.ai-command-container-header-item{width:30px;height:30px;display:flex;align-items:center;justify-content:center;cursor:pointer}.ai-command-container-header-item:hover{background-color:var(--aie-popover-selected-color)}.ai-command-container-header svg{fill:var(--aie-text-color);width:18px;height:18px}.ai-command-container-item{padding:10px 20px;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;font-size:14px;color:var(--aie-text-color);display:flex;align-items:center;cursor:pointer}.ai-command-container-item svg{width:16px;height:16px;margin-right:10px}.ai-command-container-item:hover{background-color:var(--aie-popover-selected-color)}.aie-content{overflow:auto;padding:10px;margin:0;color:var(--aie-text-color)}.aie-content>:first-child{margin-top:0}.aie-content::-webkit-scrollbar{width:4px}.aie-content::-webkit-scrollbar-track-piece{background-color:var(--aie-content-scrollbar-track-piece)}.aie-content::-webkit-scrollbar-thumb{background-color:var(--aie-content-scrollbar-thumb)}.aie-content::-webkit-scrollbar-thumb:hover{background-color:var(--aie-content-scrollbar-thumb-hover)}.aie-content::-webkit-scrollbar-thumb:active{background-color:var(--aie-content-scrollbar-thumb-active)}.aie-content a{color:var(--aie-content-link-a-color)}.aie-content a :visited{color:var(--aie-content-link-a-visited-color)}.aie-content a :active{color:var(--aie-content-link-a-active-color)}.aie-content p{margin:16px 0;line-height:26px;min-height:26px}.aie-content ul,.aie-content ol{display:block;margin-block-start:1em;margin-block-end:1em;margin-inline-start:0px;margin-inline-end:0px;padding-inline-start:20px}.aie-content li p{padding:0;margin:5px 0}.aie-content ul[data-type=taskList]{display:block;margin-block-start:1em;margin-block-end:1em;margin-inline-start:0px;margin-inline-end:0px;padding-inline-start:0px}.aie-content ul[data-type=taskList] li{display:flex;align-items:baseline}.aie-content ul[data-type=taskList] li p{padding-left:2px}.aie-content blockquote{margin:16px 0;padding:5px 10px;border-left:2px solid var(--aie-content-blockquote-border-color);background:var(--aie-content-blockquote-bg-color)}.aie-content blockquote p{margin:5px 0;color:var(--aie-content-blockquote-text-color)}.aie-content img{border:1px solid #efefef}.aie-content code{border-radius:3px;padding:3px 6px;background:var(--aie-content-pre-bg-color)}.aie-content pre{margin:0;padding:0 10px 10px;border-radius:5px;background:var(--aie-content-pre-bg-color);overflow:auto}.aie-content pre code{padding:0;background:var(--aie-content-pre-bg-color)}.aie-content h1{padding-top:24px;letter-spacing:-.02em;line-height:40px;font-size:32px}.aie-content h2{padding-top:24px;letter-spacing:-.02em;line-height:32px;font-size:24px}.aie-content h3{margin:32px 0 0;letter-spacing:-.01em;line-height:28px;font-size:20px}.aie-content strong{font-weight:600}.aie-content table{border-collapse:collapse;margin:0;overflow:hidden;table-layout:fixed;width:100%}.aie-content table img{z-index:1}.aie-content table td,.aie-content table th{border:2px solid var(--aie-content-table-border-color);box-sizing:border-box;min-width:1em;padding:3px 5px;position:relative;vertical-align:top}.aie-content table td>*,.aie-content table th>*{margin-bottom:0}.aie-content table th{background-color:var(--aie-content-table-th-bg-color);font-weight:700;text-align:left}.aie-content table .selectedCell:after{background:var(--aie-content-table-selected-bg-color);content:"";left:0;right:0;top:0;bottom:0;pointer-events:none;position:absolute;z-index:2}.aie-content table .column-resize-handle{background-color:var(--aie-content-table-handler-color);bottom:-2px;position:absolute;right:-2px;pointer-events:none;top:0;width:3px}.aie-content table p{margin:0}.aie-content .align-left{text-align:left}.aie-content .align-right{text-align:right}.aie-content .align-center{text-align:center}.aie-content span[data-type=mention]{border:1px solid #cccccc;border-radius:5px;padding:0 3px}.aie-content p.is-editor-empty:first-child:before{color:var(--aie-text-placeholder-color);content:attr(data-placeholder);float:left;height:0;pointer-events:none}.aie-content div.container-wrapper{margin:1rem 0;padding:0 1rem;border:1px solid var(--aie-border-color);border-radius:3px}.aie-content div.info{background:var(--aie-content-container-info-color)}.aie-content div.warning{background:var(--aie-content-container-warning-color)}.aie-content div.danger{background:var(--aie-content-container-danger-color)}.tableWrapper{padding:1rem 0}.resize-cursor{cursor:ew-resize;cursor:col-resize}
|
|
87
86
|
|
|
88
87
|
[data-v-25c3a8ba] .node-handle {
|
|
89
88
|
opacity: 0;
|
package/dist/utils/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as e, S as t, _ as n, b as r, v as i, x as a, y as o } from "../entry-
|
|
1
|
+
import { A as e, S as t, _ as n, b as r, v as i, x as a, y as o } from "../entry-BqAJ6nqo.js";
|
|
2
2
|
export { n as baseUrl, i as formatDate, o as omit, t as request, e as tempToRender, r as uniq, a as uniqBy };
|
package/dist/vep-ui.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as e, D as t, E as n, M as r, O as i, T as a, a as o, g as s, h as c, i as l, j as u, k as d, m as f, n as p, o as m, r as h, s as g, t as _, w as v } from "./entry-
|
|
1
|
+
import { C as e, D as t, E as n, M as r, O as i, T as a, a as o, g as s, h as c, i as l, j as u, k as d, m as f, n as p, o as m, r as h, s as g, t as _, w as v } from "./entry-BqAJ6nqo.js";
|
|
2
2
|
export { r as UiCard, v as UiDescriptions, e as UiDialog, t as UiEditor, d as UiFilter, i as UiForm, a as UiInfiniteScroll, f as UiStaffSelect, u as UiTable, n as UiTree, m as UiUpload, s as WcUtils, o as YcApproval, c as YcMessage, l as YcPageAgent, h as default, h as ycPlugin, _ as getHostVue, g as hooks, p as setHostVue };
|
package/package.json
CHANGED
|
@@ -1,467 +0,0 @@
|
|
|
1
|
-
//#region dist/SimulatorMask-BbciSmUv-Dn2dclmH-DDLwVkTw-CSTOuUAB-DoIyr19q-Ci0HlpJS-CAUrvraj-COVM1bq7-Dco1YmaA-CAr5_7tz-Do-RAm4O-BvITr5Ns-DxkoegYp-Df_I4zne-Dd1XzJ5C-D2hp-9Wv-DfD05Tio-JFBD-L-F-DyfF_beq-DQsQyNwa-CC9X_JR9-DPluomX5-Cti7-8MV-BEA1XUga-BNWQWI9F.js
|
|
2
|
-
function e(e, t, n, r) {
|
|
3
|
-
let i = Math.max(1, Math.min(e, t)), a = Math.min(Math.min(n, 20) + r, i), o = Math.min(a, Math.floor(e / 2)), s = Math.min(a, Math.floor(t / 2)), c = (t) => t / e * 2 - 1, l = (e) => e / t * 2 - 1, u = e, d = t, f = o, p = e - o, m = s, h = t - s, g = c(0), _ = c(u), v = l(0), y = l(d), b = c(f), x = c(p), S = l(m), C = l(h), w = o / e, T = 1 - o / e, E = s / t, D = 1 - s / t;
|
|
4
|
-
return {
|
|
5
|
-
positions: new Float32Array([
|
|
6
|
-
g,
|
|
7
|
-
v,
|
|
8
|
-
_,
|
|
9
|
-
v,
|
|
10
|
-
g,
|
|
11
|
-
S,
|
|
12
|
-
g,
|
|
13
|
-
S,
|
|
14
|
-
_,
|
|
15
|
-
v,
|
|
16
|
-
_,
|
|
17
|
-
S,
|
|
18
|
-
g,
|
|
19
|
-
C,
|
|
20
|
-
_,
|
|
21
|
-
C,
|
|
22
|
-
g,
|
|
23
|
-
y,
|
|
24
|
-
g,
|
|
25
|
-
y,
|
|
26
|
-
_,
|
|
27
|
-
C,
|
|
28
|
-
_,
|
|
29
|
-
y,
|
|
30
|
-
g,
|
|
31
|
-
S,
|
|
32
|
-
b,
|
|
33
|
-
S,
|
|
34
|
-
g,
|
|
35
|
-
C,
|
|
36
|
-
g,
|
|
37
|
-
C,
|
|
38
|
-
b,
|
|
39
|
-
S,
|
|
40
|
-
b,
|
|
41
|
-
C,
|
|
42
|
-
x,
|
|
43
|
-
S,
|
|
44
|
-
_,
|
|
45
|
-
S,
|
|
46
|
-
x,
|
|
47
|
-
C,
|
|
48
|
-
x,
|
|
49
|
-
C,
|
|
50
|
-
_,
|
|
51
|
-
S,
|
|
52
|
-
_,
|
|
53
|
-
C
|
|
54
|
-
]),
|
|
55
|
-
uvs: new Float32Array([
|
|
56
|
-
0,
|
|
57
|
-
0,
|
|
58
|
-
1,
|
|
59
|
-
0,
|
|
60
|
-
0,
|
|
61
|
-
E,
|
|
62
|
-
0,
|
|
63
|
-
E,
|
|
64
|
-
1,
|
|
65
|
-
0,
|
|
66
|
-
1,
|
|
67
|
-
E,
|
|
68
|
-
0,
|
|
69
|
-
D,
|
|
70
|
-
1,
|
|
71
|
-
D,
|
|
72
|
-
0,
|
|
73
|
-
1,
|
|
74
|
-
0,
|
|
75
|
-
1,
|
|
76
|
-
1,
|
|
77
|
-
D,
|
|
78
|
-
1,
|
|
79
|
-
1,
|
|
80
|
-
0,
|
|
81
|
-
E,
|
|
82
|
-
w,
|
|
83
|
-
E,
|
|
84
|
-
0,
|
|
85
|
-
D,
|
|
86
|
-
0,
|
|
87
|
-
D,
|
|
88
|
-
w,
|
|
89
|
-
E,
|
|
90
|
-
w,
|
|
91
|
-
D,
|
|
92
|
-
T,
|
|
93
|
-
E,
|
|
94
|
-
1,
|
|
95
|
-
E,
|
|
96
|
-
T,
|
|
97
|
-
D,
|
|
98
|
-
T,
|
|
99
|
-
D,
|
|
100
|
-
1,
|
|
101
|
-
E,
|
|
102
|
-
1,
|
|
103
|
-
D
|
|
104
|
-
])
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
function t(e, t, n) {
|
|
108
|
-
let r = e.createShader(t);
|
|
109
|
-
if (!r) throw Error("Failed to create shader");
|
|
110
|
-
if (e.shaderSource(r, n), e.compileShader(r), !e.getShaderParameter(r, e.COMPILE_STATUS)) {
|
|
111
|
-
let t = e.getShaderInfoLog(r) || "Unknown shader error";
|
|
112
|
-
throw e.deleteShader(r), Error(t);
|
|
113
|
-
}
|
|
114
|
-
return r;
|
|
115
|
-
}
|
|
116
|
-
function n(e, n, r) {
|
|
117
|
-
let i = t(e, e.VERTEX_SHADER, n), a = t(e, e.FRAGMENT_SHADER, r), o = e.createProgram();
|
|
118
|
-
if (!o) throw Error("Failed to create program");
|
|
119
|
-
if (e.attachShader(o, i), e.attachShader(o, a), e.linkProgram(o), !e.getProgramParameter(o, e.LINK_STATUS)) {
|
|
120
|
-
let t = e.getProgramInfoLog(o) || "Unknown link error";
|
|
121
|
-
throw e.deleteProgram(o), e.deleteShader(i), e.deleteShader(a), Error(t);
|
|
122
|
-
}
|
|
123
|
-
return e.deleteShader(i), e.deleteShader(a), o;
|
|
124
|
-
}
|
|
125
|
-
var r = "#version 300 es\nprecision lowp float;\nin vec2 vUV;\nout vec4 outColor;\nuniform vec2 uResolution;\nuniform float uTime;\nuniform float uBorderWidth;\nuniform float uGlowWidth;\nuniform float uBorderRadius;\nuniform vec3 uColors[4];\nuniform float uGlowExponent;\nuniform float uGlowFactor;\nconst float PI = 3.14159265359;\nconst float TWO_PI = 2.0 * PI;\nconst float HALF_PI = 0.5 * PI;\nconst vec4 startPositions = vec4(0.0, PI, HALF_PI, 1.5 * PI);\nconst vec4 speeds = vec4(-1.9, -1.9, -1.5, 2.1);\nconst vec4 innerRadius = vec4(PI * 0.8, PI * 0.7, PI * 0.3, PI * 0.1);\nconst vec4 outerRadius = vec4(PI * 1.2, PI * 0.9, PI * 0.6, PI * 0.4);\nfloat random(vec2 st) {\nreturn fract(sin(dot(st.xy, vec2(12.9898, 78.233))) * 43758.5453123);\n}\nvec2 random2(vec2 st) {\nreturn vec2(random(st), random(st + 1.0));\n}\nfloat aaStep(float edge, float d) {\nfloat width = fwidth(d);\nreturn smoothstep(edge - width * 0.5, edge + width * 0.5, d);\n}\nfloat aaFract(float x) {\nfloat f = fract(x);\nfloat w = fwidth(x);\nfloat smooth_f = f * (1.0 - smoothstep(1.0 - w, 1.0, f));\nreturn smooth_f;\n}\nfloat sdRoundedBox(in vec2 p, in vec2 b, in float r) {\nvec2 q = abs(p) - b + r;\nreturn min(max(q.x, q.y), 0.0) + length(max(q, 0.0)) - r;\n}\nfloat getInnerGlow(vec2 p, vec2 b, float radius) {\nfloat dist_x = b.x - abs(p.x);\nfloat dist_y = b.y - abs(p.y);\nfloat glow_x = smoothstep(radius, 0.0, dist_x);\nfloat glow_y = smoothstep(radius, 0.0, dist_y);\nreturn 1.0 - (1.0 - glow_x) * (1.0 - glow_y);\n}\nfloat getVignette(vec2 uv) {\nvec2 vignetteUv = uv;\nvignetteUv = vignetteUv * (1.0 - vignetteUv);\nfloat vignette = vignetteUv.x * vignetteUv.y * 25.0;\nvignette = pow(vignette, 0.16);\nvignette = 1.0 - vignette;\nreturn vignette;\n}\nfloat uvToAngle(vec2 uv) {\nvec2 center = vec2(0.5);\nvec2 dir = uv - center;\nreturn atan(dir.y, dir.x) + PI;\n}\nvoid main() {\nvec2 uv = vUV;\nvec2 pos = uv * uResolution;\nvec2 centeredPos = pos - uResolution * 0.5;\nvec2 size = uResolution - uBorderWidth;\nvec2 halfSize = size * 0.5;\nfloat dBorderBox = sdRoundedBox(centeredPos, halfSize, uBorderRadius);\nfloat border = aaStep(0.0, dBorderBox);\nfloat glow = getInnerGlow(centeredPos, halfSize, uGlowWidth);\nfloat vignette = getVignette(uv);\nglow *= vignette;\nfloat posAngle = uvToAngle(uv);\nvec4 lightCenter = mod(startPositions + speeds * uTime, TWO_PI);\nvec4 angleDist = abs(posAngle - lightCenter);\nvec4 disToLight = min(angleDist, TWO_PI - angleDist) / TWO_PI;\nfloat intensityBorder[4];\nintensityBorder[0] = 1.0;\nintensityBorder[1] = smoothstep(0.4, 0.0, disToLight.y);\nintensityBorder[2] = smoothstep(0.4, 0.0, disToLight.z);\nintensityBorder[3] = smoothstep(0.2, 0.0, disToLight.w) * 0.5;\nvec3 borderColor = vec3(0.0);\nfor(int i = 0; i < 4; i++) {\nborderColor = mix(borderColor, uColors[i], intensityBorder[i]);\n}\nborderColor *= 1.1;\nborderColor = clamp(borderColor, 0.0, 1.0);\nfloat intensityGlow[4];\nintensityGlow[0] = smoothstep(0.9, 0.0, disToLight.x);\nintensityGlow[1] = smoothstep(0.7, 0.0, disToLight.y);\nintensityGlow[2] = smoothstep(0.4, 0.0, disToLight.z);\nintensityGlow[3] = smoothstep(0.1, 0.0, disToLight.w) * 0.7;\nvec4 breath = smoothstep(0.0, 1.0, sin(uTime * 1.0 + startPositions * PI) * 0.2 + 0.8);\nvec3 glowColor = vec3(0.0);\nglowColor += uColors[0] * intensityGlow[0] * breath.x;\nglowColor += uColors[1] * intensityGlow[1] * breath.y;\nglowColor += uColors[2] * intensityGlow[2] * breath.z;\nglowColor += uColors[3] * intensityGlow[3] * breath.w * glow;\nglow = pow(glow, uGlowExponent);\nglow *= random(pos + uTime) * 0.1 + 1.0;\nglowColor *= glow * uGlowFactor;\nglowColor = clamp(glowColor, 0.0, 1.0);\nvec3 color = mix(glowColor, borderColor + glowColor * 0.2, border);\nfloat alpha = mix(glow, 1.0, border);\noutColor = vec4(color, alpha);\n}", i = "#version 300 es\nin vec2 aPosition;\nin vec2 aUV;\nout vec2 vUV;\nvoid main() {\nvUV = aUV;\ngl_Position = vec4(aPosition, 0.0, 1.0);\n}", a = [
|
|
126
|
-
"rgb(57, 182, 255)",
|
|
127
|
-
"rgb(189, 69, 251)",
|
|
128
|
-
"rgb(255, 87, 51)",
|
|
129
|
-
"rgb(255, 214, 0)"
|
|
130
|
-
];
|
|
131
|
-
function o(e) {
|
|
132
|
-
let t = e.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);
|
|
133
|
-
if (!t) throw Error(`Invalid color format: ${e}`);
|
|
134
|
-
let [, n, r, i] = t;
|
|
135
|
-
return [
|
|
136
|
-
parseInt(n) / 255,
|
|
137
|
-
parseInt(r) / 255,
|
|
138
|
-
parseInt(i) / 255
|
|
139
|
-
];
|
|
140
|
-
}
|
|
141
|
-
var s = class {
|
|
142
|
-
element;
|
|
143
|
-
canvas;
|
|
144
|
-
options;
|
|
145
|
-
running = !1;
|
|
146
|
-
disposed = !1;
|
|
147
|
-
startTime = 0;
|
|
148
|
-
lastTime = 0;
|
|
149
|
-
rafId = null;
|
|
150
|
-
glr;
|
|
151
|
-
observer;
|
|
152
|
-
constructor(e = {}) {
|
|
153
|
-
this.options = {
|
|
154
|
-
width: e.width ?? 600,
|
|
155
|
-
height: e.height ?? 600,
|
|
156
|
-
ratio: e.ratio ?? window.devicePixelRatio ?? 1,
|
|
157
|
-
borderWidth: e.borderWidth ?? 8,
|
|
158
|
-
glowWidth: e.glowWidth ?? 200,
|
|
159
|
-
borderRadius: e.borderRadius ?? 8,
|
|
160
|
-
mode: e.mode ?? "light",
|
|
161
|
-
...e
|
|
162
|
-
}, this.canvas = document.createElement("canvas"), this.options.classNames && (this.canvas.className = this.options.classNames), this.options.styles && Object.assign(this.canvas.style, this.options.styles), this.canvas.style.display = "block", this.canvas.style.transformOrigin = "center", this.canvas.style.pointerEvents = "none", this.element = this.canvas, this.setupGL(), this.options.skipGreeting || this.greet();
|
|
163
|
-
}
|
|
164
|
-
start() {
|
|
165
|
-
if (this.disposed) throw Error("Motion instance has been disposed.");
|
|
166
|
-
if (this.running) return;
|
|
167
|
-
if (!this.glr) {
|
|
168
|
-
console.error("WebGL resources are not initialized.");
|
|
169
|
-
return;
|
|
170
|
-
}
|
|
171
|
-
this.running = !0, this.startTime = performance.now(), this.resize(this.options.width ?? 600, this.options.height ?? 600, this.options.ratio), this.glr.gl.viewport(0, 0, this.canvas.width, this.canvas.height), this.glr.gl.useProgram(this.glr.program), this.glr.gl.uniform2f(this.glr.uResolution, this.canvas.width, this.canvas.height), this.checkGLError(this.glr.gl, "start: after initial setup");
|
|
172
|
-
let e = () => {
|
|
173
|
-
if (!this.running || !this.glr) return;
|
|
174
|
-
this.rafId = requestAnimationFrame(e);
|
|
175
|
-
let t = performance.now();
|
|
176
|
-
if (t - this.lastTime < 1e3 / 32) return;
|
|
177
|
-
this.lastTime = t;
|
|
178
|
-
let n = (t - this.startTime) * .001;
|
|
179
|
-
this.render(n);
|
|
180
|
-
};
|
|
181
|
-
this.rafId = requestAnimationFrame(e);
|
|
182
|
-
}
|
|
183
|
-
pause() {
|
|
184
|
-
if (this.disposed) throw Error("Motion instance has been disposed.");
|
|
185
|
-
this.running = !1, this.rafId !== null && cancelAnimationFrame(this.rafId);
|
|
186
|
-
}
|
|
187
|
-
dispose() {
|
|
188
|
-
if (this.disposed) return;
|
|
189
|
-
this.disposed = !0, this.running = !1, this.rafId !== null && cancelAnimationFrame(this.rafId);
|
|
190
|
-
let { gl: e, vao: t, positionBuffer: n, uvBuffer: r, program: i } = this.glr;
|
|
191
|
-
t && e.deleteVertexArray(t), n && e.deleteBuffer(n), r && e.deleteBuffer(r), e.deleteProgram(i), this.observer && this.observer.disconnect(), this.canvas.remove();
|
|
192
|
-
}
|
|
193
|
-
resize(t, n, r) {
|
|
194
|
-
if (this.disposed) throw Error("Motion instance has been disposed.");
|
|
195
|
-
if (this.options.width = t, this.options.height = n, r && (this.options.ratio = r), !this.running) return;
|
|
196
|
-
let { gl: i, program: a, vao: o, positionBuffer: s, uvBuffer: c, uResolution: l } = this.glr, u = r ?? this.options.ratio ?? window.devicePixelRatio ?? 1, d = Math.max(1, Math.floor(t * u)), f = Math.max(1, Math.floor(n * u));
|
|
197
|
-
this.canvas.style.width = `${t}px`, this.canvas.style.height = `${n}px`, (this.canvas.width !== d || this.canvas.height !== f) && (this.canvas.width = d, this.canvas.height = f), i.viewport(0, 0, this.canvas.width, this.canvas.height), this.checkGLError(i, "resize: after viewport setup");
|
|
198
|
-
let { positions: p, uvs: m } = e(this.canvas.width, this.canvas.height, this.options.borderWidth * u, this.options.glowWidth * u);
|
|
199
|
-
i.bindVertexArray(o), i.bindBuffer(i.ARRAY_BUFFER, s), i.bufferData(i.ARRAY_BUFFER, p, i.STATIC_DRAW);
|
|
200
|
-
let h = i.getAttribLocation(a, "aPosition");
|
|
201
|
-
i.enableVertexAttribArray(h), i.vertexAttribPointer(h, 2, i.FLOAT, !1, 0, 0), this.checkGLError(i, "resize: after position buffer update"), i.bindBuffer(i.ARRAY_BUFFER, c), i.bufferData(i.ARRAY_BUFFER, m, i.STATIC_DRAW);
|
|
202
|
-
let g = i.getAttribLocation(a, "aUV");
|
|
203
|
-
i.enableVertexAttribArray(g), i.vertexAttribPointer(g, 2, i.FLOAT, !1, 0, 0), this.checkGLError(i, "resize: after UV buffer update"), i.useProgram(a), i.uniform2f(l, this.canvas.width, this.canvas.height), i.uniform1f(this.glr.uBorderWidth, this.options.borderWidth * u), i.uniform1f(this.glr.uGlowWidth, this.options.glowWidth * u), i.uniform1f(this.glr.uBorderRadius, this.options.borderRadius * u), this.checkGLError(i, "resize: after uniform updates");
|
|
204
|
-
let _ = performance.now();
|
|
205
|
-
this.lastTime = _;
|
|
206
|
-
let v = (_ - this.startTime) * .001;
|
|
207
|
-
this.render(v);
|
|
208
|
-
}
|
|
209
|
-
autoResize(e) {
|
|
210
|
-
this.observer && this.observer.disconnect(), this.observer = new ResizeObserver(() => {
|
|
211
|
-
let t = e.getBoundingClientRect();
|
|
212
|
-
this.resize(t.width, t.height);
|
|
213
|
-
}), this.observer.observe(e);
|
|
214
|
-
}
|
|
215
|
-
fadeIn() {
|
|
216
|
-
if (this.disposed) throw Error("Motion instance has been disposed.");
|
|
217
|
-
return new Promise((e, t) => {
|
|
218
|
-
let n = this.canvas.animate([{
|
|
219
|
-
opacity: 0,
|
|
220
|
-
transform: "scale(1.2)"
|
|
221
|
-
}, {
|
|
222
|
-
opacity: 1,
|
|
223
|
-
transform: "scale(1)"
|
|
224
|
-
}], {
|
|
225
|
-
duration: 300,
|
|
226
|
-
easing: "ease-out",
|
|
227
|
-
fill: "forwards"
|
|
228
|
-
});
|
|
229
|
-
n.onfinish = () => e(), n.oncancel = () => t("canceled");
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
fadeOut() {
|
|
233
|
-
if (this.disposed) throw Error("Motion instance has been disposed.");
|
|
234
|
-
return new Promise((e, t) => {
|
|
235
|
-
let n = this.canvas.animate([{
|
|
236
|
-
opacity: 1,
|
|
237
|
-
transform: "scale(1)"
|
|
238
|
-
}, {
|
|
239
|
-
opacity: 0,
|
|
240
|
-
transform: "scale(1.2)"
|
|
241
|
-
}], {
|
|
242
|
-
duration: 300,
|
|
243
|
-
easing: "ease-in",
|
|
244
|
-
fill: "forwards"
|
|
245
|
-
});
|
|
246
|
-
n.onfinish = () => e(), n.oncancel = () => t("canceled");
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
checkGLError(e, t) {
|
|
250
|
-
let n = e.getError();
|
|
251
|
-
if (n !== e.NO_ERROR) {
|
|
252
|
-
for (console.group(`🔴 WebGL Error in ${t}`); n !== e.NO_ERROR;) {
|
|
253
|
-
let t = this.getGLErrorName(e, n);
|
|
254
|
-
console.error(`${t} (0x${n.toString(16)})`), n = e.getError();
|
|
255
|
-
}
|
|
256
|
-
console.groupEnd();
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
getGLErrorName(e, t) {
|
|
260
|
-
switch (t) {
|
|
261
|
-
case e.INVALID_ENUM: return "INVALID_ENUM";
|
|
262
|
-
case e.INVALID_VALUE: return "INVALID_VALUE";
|
|
263
|
-
case e.INVALID_OPERATION: return "INVALID_OPERATION";
|
|
264
|
-
case e.INVALID_FRAMEBUFFER_OPERATION: return "INVALID_FRAMEBUFFER_OPERATION";
|
|
265
|
-
case e.OUT_OF_MEMORY: return "OUT_OF_MEMORY";
|
|
266
|
-
case e.CONTEXT_LOST_WEBGL: return "CONTEXT_LOST_WEBGL";
|
|
267
|
-
default: return "UNKNOWN_ERROR";
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
setupGL() {
|
|
271
|
-
let t = this.canvas.getContext("webgl2", {
|
|
272
|
-
antialias: !1,
|
|
273
|
-
alpha: !0
|
|
274
|
-
});
|
|
275
|
-
if (!t) throw Error("WebGL2 is required but not available.");
|
|
276
|
-
let s = n(t, i, r);
|
|
277
|
-
this.checkGLError(t, "setupGL: after createProgram");
|
|
278
|
-
let c = t.createVertexArray();
|
|
279
|
-
t.bindVertexArray(c), this.checkGLError(t, "setupGL: after VAO creation");
|
|
280
|
-
let { positions: l, uvs: u } = e(this.canvas.width || 2, this.canvas.height || 2, this.options.borderWidth, this.options.glowWidth), d = t.createBuffer();
|
|
281
|
-
t.bindBuffer(t.ARRAY_BUFFER, d), t.bufferData(t.ARRAY_BUFFER, l, t.STATIC_DRAW);
|
|
282
|
-
let f = t.getAttribLocation(s, "aPosition");
|
|
283
|
-
t.enableVertexAttribArray(f), t.vertexAttribPointer(f, 2, t.FLOAT, !1, 0, 0), this.checkGLError(t, "setupGL: after position buffer setup");
|
|
284
|
-
let p = t.createBuffer();
|
|
285
|
-
t.bindBuffer(t.ARRAY_BUFFER, p), t.bufferData(t.ARRAY_BUFFER, u, t.STATIC_DRAW);
|
|
286
|
-
let m = t.getAttribLocation(s, "aUV");
|
|
287
|
-
t.enableVertexAttribArray(m), t.vertexAttribPointer(m, 2, t.FLOAT, !1, 0, 0), this.checkGLError(t, "setupGL: after UV buffer setup");
|
|
288
|
-
let h = t.getUniformLocation(s, "uResolution"), g = t.getUniformLocation(s, "uTime"), _ = t.getUniformLocation(s, "uBorderWidth"), v = t.getUniformLocation(s, "uGlowWidth"), y = t.getUniformLocation(s, "uBorderRadius"), b = t.getUniformLocation(s, "uColors"), x = t.getUniformLocation(s, "uGlowExponent"), S = t.getUniformLocation(s, "uGlowFactor");
|
|
289
|
-
t.useProgram(s), t.uniform1f(_, this.options.borderWidth), t.uniform1f(v, this.options.glowWidth), t.uniform1f(y, this.options.borderRadius), this.options.mode === "dark" ? (t.uniform1f(x, 2), t.uniform1f(S, 1.8)) : (t.uniform1f(x, 1), t.uniform1f(S, 1));
|
|
290
|
-
let C = (this.options.colors || a).map(o);
|
|
291
|
-
for (let e = 0; e < C.length; e++) t.uniform3f(t.getUniformLocation(s, `uColors[${e}]`), ...C[e]);
|
|
292
|
-
this.checkGLError(t, "setupGL: after uniform setup"), t.bindVertexArray(null), t.bindBuffer(t.ARRAY_BUFFER, null), this.glr = {
|
|
293
|
-
gl: t,
|
|
294
|
-
program: s,
|
|
295
|
-
vao: c,
|
|
296
|
-
positionBuffer: d,
|
|
297
|
-
uvBuffer: p,
|
|
298
|
-
uResolution: h,
|
|
299
|
-
uTime: g,
|
|
300
|
-
uBorderWidth: _,
|
|
301
|
-
uGlowWidth: v,
|
|
302
|
-
uBorderRadius: y,
|
|
303
|
-
uColors: b
|
|
304
|
-
};
|
|
305
|
-
}
|
|
306
|
-
render(e) {
|
|
307
|
-
if (!this.glr) return;
|
|
308
|
-
let { gl: t, program: n, vao: r, uTime: i } = this.glr;
|
|
309
|
-
t.useProgram(n), t.bindVertexArray(r), t.uniform1f(i, e), t.disable(t.DEPTH_TEST), t.disable(t.CULL_FACE), t.disable(t.BLEND), t.clearColor(0, 0, 0, 0), t.clear(t.COLOR_BUFFER_BIT), t.drawArrays(t.TRIANGLES, 0, 24), this.checkGLError(t, "render: after draw call"), t.bindVertexArray(null);
|
|
310
|
-
}
|
|
311
|
-
greet() {
|
|
312
|
-
console.log("%c🌈 ai-motion 0.4.8 🌈", "background: linear-gradient(90deg, #39b6ff, #bd45fb, #ff5733, #ffd600); color: white; text-shadow: 0 0 2px rgba(0, 0, 0, 0.2); font-weight: bold; font-size: 1em; padding: 2px 12px; border-radius: 6px;");
|
|
313
|
-
}
|
|
314
|
-
};
|
|
315
|
-
(function() {
|
|
316
|
-
try {
|
|
317
|
-
if (typeof document < "u") {
|
|
318
|
-
var e = document.createElement("style");
|
|
319
|
-
e.appendChild(document.createTextNode("._wrapper_1ooyb_1 {\n position: fixed;\n inset: 0;\n z-index: 2147483641; /* 确保在所有元素之上,除了 panel */\n cursor: wait;\n overflow: hidden;\n\n display: none;\n}\n\n._wrapper_1ooyb_1._visible_1ooyb_11 {\n display: block;\n}\n/* AI 光标样式 */\n._cursor_1dgwb_2 {\n position: absolute;\n width: var(--cursor-size, 75px);\n height: var(--cursor-size, 75px);\n pointer-events: none;\n z-index: 10000;\n}\n\n._cursorBorder_1dgwb_10 {\n position: absolute;\n width: 100%;\n height: 100%;\n background: linear-gradient(45deg, rgb(57, 182, 255), rgb(189, 69, 251));\n mask-image: url(\"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%20fill='none'%3e%3cg%3e%3cpath%20d='M%2015%2042%20L%2015%2036.99%20Q%2015%2031.99%2023.7%2031.99%20L%2028.05%2031.99%20Q%2032.41%2031.99%2032.41%2021.99%20L%2032.41%2017%20Q%2032.41%2012%2041.09%2016.95%20L%2076.31%2037.05%20Q%2085%2042%2076.31%2046.95%20L%2041.09%2067.05%20Q%2032.41%2072%2032.41%2062.01%20L%2032.41%2057.01%20Q%2032.41%2052.01%2023.7%2052.01%20L%2019.35%2052.01%20Q%2015%2052.01%2015%2047.01%20Z'%20fill='none'%20stroke='%23000000'%20stroke-width='6'%20stroke-miterlimit='10'%20style='stroke:%20light-dark(rgb(0,%200,%200),%20rgb(255,%20255,%20255));'/%3e%3c/g%3e%3c/svg%3e\");\n mask-size: 100% 100%;\n mask-repeat: no-repeat;\n\n transform-origin: center;\n transform: rotate(-135deg) scale(1.2);\n margin-left: -10px;\n margin-top: -18px;\n}\n\n._cursorFilling_1dgwb_25 {\n position: absolute;\n width: 100%;\n height: 100%;\n background: url(\"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%3e%3cdefs%3e%3c/defs%3e%3cg%20xmlns='http://www.w3.org/2000/svg'%20style='filter:%20drop-shadow(light-dark(rgba(0,%200,%200,%200.4),%20rgba(237,%20237,%20237,%200.4))%203px%204px%204px);'%3e%3cpath%20d='M%2015%2042%20L%2015%2036.99%20Q%2015%2031.99%2023.7%2031.99%20L%2028.05%2031.99%20Q%2032.41%2031.99%2032.41%2021.99%20L%2032.41%2017%20Q%2032.41%2012%2041.09%2016.95%20L%2076.31%2037.05%20Q%2085%2042%2076.31%2046.95%20L%2041.09%2067.05%20Q%2032.41%2072%2032.41%2062.01%20L%2032.41%2057.01%20Q%2032.41%2052.01%2023.7%2052.01%20L%2019.35%2052.01%20Q%2015%2052.01%2015%2047.01%20Z'%20fill='%23ffffff'%20stroke='none'%20style='fill:%20%23ffffff;'/%3e%3c/g%3e%3c/svg%3e\");\n background-size: 100% 100%;\n background-repeat: no-repeat;\n\n transform-origin: center;\n transform: rotate(-135deg) scale(1.2);\n margin-left: -10px;\n margin-top: -18px;\n}\n\n._cursorRipple_1dgwb_39 {\n position: absolute;\n width: 100%;\n height: 100%;\n pointer-events: none;\n margin-left: -50%;\n margin-top: -50%;\n\n &::after {\n content: '';\n opacity: 0;\n position: absolute;\n inset: 0;\n border: 4px solid rgba(57, 182, 255, 1);\n border-radius: 50%;\n }\n}\n\n._cursor_1dgwb_2._clicking_1dgwb_57 ._cursorRipple_1dgwb_39::after {\n animation: _cursor-ripple_1dgwb_1 300ms ease-out forwards;\n}\n\n@keyframes _cursor-ripple_1dgwb_1 {\n 0% {\n transform: scale(0);\n opacity: 1;\n }\n 100% {\n transform: scale(2);\n opacity: 0;\n }\n}")), document.head.appendChild(e);
|
|
320
|
-
}
|
|
321
|
-
} catch (e) {
|
|
322
|
-
console.error("vite-plugin-css-injected-by-js", e);
|
|
323
|
-
}
|
|
324
|
-
})(), (function() {
|
|
325
|
-
try {
|
|
326
|
-
if (typeof document < "u") {
|
|
327
|
-
var e = document.createElement("style");
|
|
328
|
-
e.appendChild(document.createTextNode("._wrapper_1ooyb_1 {\n position: fixed;\n inset: 0;\n z-index: 2147483641; /* 确保在所有元素之上,除了 panel */\n cursor: wait;\n overflow: hidden;\n\n display: none;\n}\n\n._wrapper_1ooyb_1._visible_1ooyb_11 {\n display: block;\n}\n/* AI 光标样式 */\n._cursor_1dgwb_2 {\n position: absolute;\n width: var(--cursor-size, 75px);\n height: var(--cursor-size, 75px);\n pointer-events: none;\n z-index: 10000;\n}\n\n._cursorBorder_1dgwb_10 {\n position: absolute;\n width: 100%;\n height: 100%;\n background: linear-gradient(45deg, rgb(57, 182, 255), rgb(189, 69, 251));\n mask-image: url(\"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%20fill='none'%3e%3cg%3e%3cpath%20d='M%2015%2042%20L%2015%2036.99%20Q%2015%2031.99%2023.7%2031.99%20L%2028.05%2031.99%20Q%2032.41%2031.99%2032.41%2021.99%20L%2032.41%2017%20Q%2032.41%2012%2041.09%2016.95%20L%2076.31%2037.05%20Q%2085%2042%2076.31%2046.95%20L%2041.09%2067.05%20Q%2032.41%2072%2032.41%2062.01%20L%2032.41%2057.01%20Q%2032.41%2052.01%2023.7%2052.01%20L%2019.35%2052.01%20Q%2015%2052.01%2015%2047.01%20Z'%20fill='none'%20stroke='%23000000'%20stroke-width='6'%20stroke-miterlimit='10'%20style='stroke:%20light-dark(rgb(0,%200,%200),%20rgb(255,%20255,%20255));'/%3e%3c/g%3e%3c/svg%3e\");\n mask-size: 100% 100%;\n mask-repeat: no-repeat;\n\n transform-origin: center;\n transform: rotate(-135deg) scale(1.2);\n margin-left: -10px;\n margin-top: -18px;\n}\n\n._cursorFilling_1dgwb_25 {\n position: absolute;\n width: 100%;\n height: 100%;\n background: url(\"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%3e%3cdefs%3e%3c/defs%3e%3cg%20xmlns='http://www.w3.org/2000/svg'%20style='filter:%20drop-shadow(light-dark(rgba(0,%200,%200,%200.4),%20rgba(237,%20237,%20237,%200.4))%203px%204px%204px);'%3e%3cpath%20d='M%2015%2042%20L%2015%2036.99%20Q%2015%2031.99%2023.7%2031.99%20L%2028.05%2031.99%20Q%2032.41%2031.99%2032.41%2021.99%20L%2032.41%2017%20Q%2032.41%2012%2041.09%2016.95%20L%2076.31%2037.05%20Q%2085%2042%2076.31%2046.95%20L%2041.09%2067.05%20Q%2032.41%2072%2032.41%2062.01%20L%2032.41%2057.01%20Q%2032.41%2052.01%2023.7%2052.01%20L%2019.35%2052.01%20Q%2015%2052.01%2015%2047.01%20Z'%20fill='%23ffffff'%20stroke='none'%20style='fill:%20%23ffffff;'/%3e%3c/g%3e%3c/svg%3e\");\n background-size: 100% 100%;\n background-repeat: no-repeat;\n\n transform-origin: center;\n transform: rotate(-135deg) scale(1.2);\n margin-left: -10px;\n margin-top: -18px;\n}\n\n._cursorRipple_1dgwb_39 {\n position: absolute;\n width: 100%;\n height: 100%;\n pointer-events: none;\n margin-left: -50%;\n margin-top: -50%;\n\n &::after {\n content: '';\n opacity: 0;\n position: absolute;\n inset: 0;\n border: 4px solid rgba(57, 182, 255, 1);\n border-radius: 50%;\n }\n}\n\n._cursor_1dgwb_2._clicking_1dgwb_57 ._cursorRipple_1dgwb_39::after {\n animation: _cursor-ripple_1dgwb_1 300ms ease-out forwards;\n}\n\n@keyframes _cursor-ripple_1dgwb_1 {\n 0% {\n transform: scale(0);\n opacity: 1;\n }\n 100% {\n transform: scale(2);\n opacity: 0;\n }\n}")), document.head.appendChild(e);
|
|
329
|
-
}
|
|
330
|
-
} catch (e) {
|
|
331
|
-
console.error("vite-plugin-css-injected-by-js", e);
|
|
332
|
-
}
|
|
333
|
-
})();
|
|
334
|
-
function c() {
|
|
335
|
-
let e = [
|
|
336
|
-
"dark",
|
|
337
|
-
"dark-mode",
|
|
338
|
-
"theme-dark",
|
|
339
|
-
"night",
|
|
340
|
-
"night-mode"
|
|
341
|
-
], t = document.documentElement, n = document.body || document.documentElement;
|
|
342
|
-
for (let r of e) if (t.classList.contains(r) || n?.classList.contains(r)) return !0;
|
|
343
|
-
return !!t.getAttribute("data-theme")?.toLowerCase().includes("dark");
|
|
344
|
-
}
|
|
345
|
-
function l(e) {
|
|
346
|
-
let t = /rgba?\((\d+),\s*(\d+),\s*(\d+)/.exec(e);
|
|
347
|
-
return t ? {
|
|
348
|
-
r: parseInt(t[1]),
|
|
349
|
-
g: parseInt(t[2]),
|
|
350
|
-
b: parseInt(t[3])
|
|
351
|
-
} : null;
|
|
352
|
-
}
|
|
353
|
-
function u(e, t = 128) {
|
|
354
|
-
if (!e || e === "transparent" || e.startsWith("rgba(0, 0, 0, 0)")) return !1;
|
|
355
|
-
let n = l(e);
|
|
356
|
-
return n ? .299 * n.r + .587 * n.g + .114 * n.b < t : !1;
|
|
357
|
-
}
|
|
358
|
-
function d() {
|
|
359
|
-
let e = window.getComputedStyle(document.documentElement), t = window.getComputedStyle(document.body || document.documentElement), n = e.backgroundColor, r = t.backgroundColor;
|
|
360
|
-
return u(r) ? !0 : r === "transparent" || r.startsWith("rgba(0, 0, 0, 0)") ? u(n) : !1;
|
|
361
|
-
}
|
|
362
|
-
function f() {
|
|
363
|
-
try {
|
|
364
|
-
return !!(c() || d());
|
|
365
|
-
} catch (e) {
|
|
366
|
-
return console.warn("Error determining if page is dark:", e), !1;
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
var p = {
|
|
370
|
-
wrapper: "_wrapper_1ooyb_1",
|
|
371
|
-
visible: "_visible_1ooyb_11"
|
|
372
|
-
}, m = {
|
|
373
|
-
cursor: "_cursor_1dgwb_2",
|
|
374
|
-
cursorBorder: "_cursorBorder_1dgwb_10",
|
|
375
|
-
cursorFilling: "_cursorFilling_1dgwb_25",
|
|
376
|
-
cursorRipple: "_cursorRipple_1dgwb_39",
|
|
377
|
-
clicking: "_clicking_1dgwb_57",
|
|
378
|
-
"cursor-ripple": "_cursor-ripple_1dgwb_1"
|
|
379
|
-
}, h = class extends EventTarget {
|
|
380
|
-
shown = !1;
|
|
381
|
-
wrapper = document.createElement("div");
|
|
382
|
-
motion = null;
|
|
383
|
-
#e = !1;
|
|
384
|
-
#t = document.createElement("div");
|
|
385
|
-
#n = 0;
|
|
386
|
-
#r = 0;
|
|
387
|
-
#i = 0;
|
|
388
|
-
#a = 0;
|
|
389
|
-
constructor() {
|
|
390
|
-
super(), this.wrapper.id = "page-agent-runtime_simulator-mask", this.wrapper.className = p.wrapper, this.wrapper.setAttribute("data-browser-use-ignore", "true"), this.wrapper.setAttribute("data-page-agent-ignore", "true");
|
|
391
|
-
try {
|
|
392
|
-
let e = new s({
|
|
393
|
-
mode: f() ? "dark" : "light",
|
|
394
|
-
styles: {
|
|
395
|
-
position: "absolute",
|
|
396
|
-
inset: "0"
|
|
397
|
-
}
|
|
398
|
-
});
|
|
399
|
-
this.motion = e, this.wrapper.appendChild(e.element), e.autoResize(this.wrapper);
|
|
400
|
-
} catch (e) {
|
|
401
|
-
console.warn("[SimulatorMask] Motion overlay unavailable:", e);
|
|
402
|
-
}
|
|
403
|
-
this.wrapper.addEventListener("click", (e) => {
|
|
404
|
-
e.stopPropagation(), e.preventDefault();
|
|
405
|
-
}), this.wrapper.addEventListener("mousedown", (e) => {
|
|
406
|
-
e.stopPropagation(), e.preventDefault();
|
|
407
|
-
}), this.wrapper.addEventListener("mouseup", (e) => {
|
|
408
|
-
e.stopPropagation(), e.preventDefault();
|
|
409
|
-
}), this.wrapper.addEventListener("mousemove", (e) => {
|
|
410
|
-
e.stopPropagation(), e.preventDefault();
|
|
411
|
-
}), this.wrapper.addEventListener("wheel", (e) => {
|
|
412
|
-
e.stopPropagation(), e.preventDefault();
|
|
413
|
-
}), this.wrapper.addEventListener("keydown", (e) => {
|
|
414
|
-
e.stopPropagation(), e.preventDefault();
|
|
415
|
-
}), this.wrapper.addEventListener("keyup", (e) => {
|
|
416
|
-
e.stopPropagation(), e.preventDefault();
|
|
417
|
-
}), this.#o(), document.body.appendChild(this.wrapper), this.#s();
|
|
418
|
-
let e = (e) => {
|
|
419
|
-
let { x: t, y: n } = e.detail;
|
|
420
|
-
this.setCursorPosition(t, n);
|
|
421
|
-
}, t = () => {
|
|
422
|
-
this.triggerClickAnimation();
|
|
423
|
-
}, n = () => {
|
|
424
|
-
this.wrapper.style.pointerEvents = "none";
|
|
425
|
-
}, r = () => {
|
|
426
|
-
this.wrapper.style.pointerEvents = "auto";
|
|
427
|
-
};
|
|
428
|
-
window.addEventListener("PageAgent::MovePointerTo", e), window.addEventListener("PageAgent::ClickPointer", t), window.addEventListener("PageAgent::EnablePassThrough", n), window.addEventListener("PageAgent::DisablePassThrough", r), this.addEventListener("dispose", () => {
|
|
429
|
-
window.removeEventListener("PageAgent::MovePointerTo", e), window.removeEventListener("PageAgent::ClickPointer", t), window.removeEventListener("PageAgent::EnablePassThrough", n), window.removeEventListener("PageAgent::DisablePassThrough", r);
|
|
430
|
-
});
|
|
431
|
-
}
|
|
432
|
-
#o() {
|
|
433
|
-
this.#t.className = m.cursor;
|
|
434
|
-
let e = document.createElement("div");
|
|
435
|
-
e.className = m.cursorRipple, this.#t.appendChild(e);
|
|
436
|
-
let t = document.createElement("div");
|
|
437
|
-
t.className = m.cursorFilling, this.#t.appendChild(t);
|
|
438
|
-
let n = document.createElement("div");
|
|
439
|
-
n.className = m.cursorBorder, this.#t.appendChild(n), this.wrapper.appendChild(this.#t);
|
|
440
|
-
}
|
|
441
|
-
#s() {
|
|
442
|
-
if (this.#e) return;
|
|
443
|
-
let e = this.#n + (this.#i - this.#n) * .2, t = this.#r + (this.#a - this.#r) * .2, n = Math.abs(e - this.#i);
|
|
444
|
-
n > 0 && (n < 2 ? this.#n = this.#i : this.#n = e, this.#t.style.left = `${this.#n}px`);
|
|
445
|
-
let r = Math.abs(t - this.#a);
|
|
446
|
-
r > 0 && (r < 2 ? this.#r = this.#a : this.#r = t, this.#t.style.top = `${this.#r}px`), requestAnimationFrame(() => this.#s());
|
|
447
|
-
}
|
|
448
|
-
setCursorPosition(e, t) {
|
|
449
|
-
this.#e || (this.#i = e, this.#a = t);
|
|
450
|
-
}
|
|
451
|
-
triggerClickAnimation() {
|
|
452
|
-
this.#e || (this.#t.classList.remove(m.clicking), this.#t.offsetHeight, this.#t.classList.add(m.clicking));
|
|
453
|
-
}
|
|
454
|
-
show() {
|
|
455
|
-
this.shown || this.#e || (this.shown = !0, this.motion?.start(), this.motion?.fadeIn(), this.wrapper.classList.add(p.visible), this.#n = window.innerWidth / 2, this.#r = window.innerHeight / 2, this.#i = this.#n, this.#a = this.#r, this.#t.style.left = `${this.#n}px`, this.#t.style.top = `${this.#r}px`);
|
|
456
|
-
}
|
|
457
|
-
hide() {
|
|
458
|
-
!this.shown || this.#e || (this.shown = !1, this.motion?.fadeOut(), this.motion?.pause(), this.#t.classList.remove(m.clicking), setTimeout(() => {
|
|
459
|
-
this.wrapper.classList.remove(p.visible);
|
|
460
|
-
}, 800));
|
|
461
|
-
}
|
|
462
|
-
dispose() {
|
|
463
|
-
this.#e = !0, console.log("dispose SimulatorMask"), this.motion?.dispose(), this.wrapper.remove(), this.dispatchEvent(new Event("dispose"));
|
|
464
|
-
}
|
|
465
|
-
};
|
|
466
|
-
//#endregion
|
|
467
|
-
export { h as SimulatorMask };
|