@codernote/record-tree 2.4.0-beta.0 → 2.4.0-beta.1
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/index.js +440 -458
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.color-panel[data-v-d2cde42f]{background:#fff;border:1px solid #f2f2f2;width:164px;padding:5px 5px 0}.color-panel ul[data-v-d2cde42f]{list-style-type:none;margin:0}.color-panel ul li[data-v-d2cde42f]{display:inline-block;margin:0 5px;width:20px;height:20px;border-radius:100%;border:1px solid #f2f2f2;display:inline-flex;align-items:center;justify-content:center}.node-complex[data-v-b1f6b6b5]{display:flex;flex-direction:row;align-self:center;justify-self:center;outline:none}.holder[data-v-b1f6b6b5]{width:0px;overflow:hidden;border-width:1px;border-style:solid;border-color:transparent;outline:none}.node-element[data-v-b1f6b6b5]{display:inline-block;position:relative;margin:5px 1px}.node-element:hover .node-del[data-v-b1f6b6b5]{display:block}.node-image img[data-v-b1f6b6b5]{outline:none}.node-audio[data-v-b1f6b6b5]{width:300px}.node-audio audio[data-v-b1f6b6b5]{width:300px;outline:none}.node-video video[data-v-b1f6b6b5]{outline:none}.node-del[data-v-b1f6b6b5]{cursor:pointer;display:none;width:15px;height:15px;position:absolute;top:-3px;right:-3px;background-color:#e6f7ff;background-size:100% 100%;border-radius:50%}.node-del[data-v-b1f6b6b5]:before,.node-del[data-v-b1f6b6b5]:after{content:"";position:absolute;top:50%;left:50%;width:2px;height:10px;background-color:#595959}.node-del[data-v-b1f6b6b5]:before{transform:translate(-50%,-50%) rotate(45deg)}.node-del[data-v-b1f6b6b5]:after{transform:translate(-50%,-50%) rotate(-45deg)}.node-file-wrap[data-v-b1f6b6b5]{width:260px;padding:10px 16px;display:flex;background:#f2f2f2;border-radius:5px;justify-content:center;align-items:center}.node-file-left[data-v-b1f6b6b5]{flex:1}.node-file-left h6[data-v-b1f6b6b5]{font-size:14px;font-weight:700;margin:0 0 5px;padding:0;white-space:nowrap}.node-file-left p[data-v-b1f6b6b5]{margin:0;padding:0;font-size:12px;color:#999}.node-file-right a[data-v-b1f6b6b5]{color:#52a770;font-size:14px}@keyframes blinkBorder-b1f6b6b5{0%,to{border-color:transparent}50%{border-color:#333}}.node-complex .holder[data-v-b1f6b6b5]:focus{animation:blinkBorder-b1f6b6b5 1s infinite}.fullscreen-handle[data-v-b1f6b6b5]{width:15px;height:15px;position:absolute;bottom:0;right:16px;cursor:pointer;background:#fff9}.resize-handle[data-v-b1f6b6b5]{width:15px;height:15px;position:absolute;bottom:0;right:0;cursor:se-resize;transform:rotate(90deg);background:#fff9}.resize-handle svg[data-v-b1f6b6b5]{cursor:se-resize}.ProseMirror{outline:none}.node-div[data-v-4cd00a01]{display:flex;align-items:center;position:relative}.node-div>div[data-v-4cd00a01]{flex:1}.node-icon[data-v-4cd00a01]{position:relative;width:17px;height:17px;border-radius:10px;background-color:#fff;cursor:pointer;margin-left:5px;align-self:flex-start;top:3px}.node-icon .node-circle[data-v-4cd00a01]{display:block;position:absolute;top:5px;left:5px;width:7px;height:7px;border-radius:10px;background-color:#eee}.node-icon[data-v-4cd00a01]:hover{background-color:#ccc}.node-finished[data-v-4cd00a01]{text-decoration:line-through;color:#999}.node-ul[data-v-1d25af83]{background-color:#fff;margin:0;padding:0;list-style:none}.node-li[data-v-1d25af83]{padding:0;list-style:none;margin:0;line-height:1.5;position:relative;overflow:hidden}[data-v-1d25af83] .sublevel .node-li{margin-left:15px}[data-v-1d25af83] .drag-over-top:before{content:"";width:100%;height:1px;top:0;background-color:#eee;position:absolute}[data-v-1d25af83] .drag-over-center{background-color:#eee}[data-v-1d25af83] .drag-over-bottom:after{content:"";width:100%;height:1px;background-color:#eee;position:absolute;bottom:0}.collapsed>ul[data-v-1d25af83]{display:none}[data-v-1d25af83] .collapsed .node-icon:before{display:none}.tree-title[data-v-1d25af83]{padding-left:25px;font-weight:700;outline:none;font-size:1.125rem;line-height:1.5;width:100%}[data-v-1d25af83] .node-li.has-child.collapsed .node-icon:after{background-color:#aaa}[data-v-1d25af83] .node-li.dragging .node-icon:before{display:none}[data-v-1d25af83] .has-child>.node-div>.node-icon:before{content:"";position:absolute;top:20px;left:50%;height:9999px;width:1px;background-color:#f2f2f2}[data-v-1d25af83] .has-child>.node-div>.node-icon:hover:before{background-color:#52a770}.record-tree-popper-content{display:flex;flex-wrap:wrap;padding:10px;box-shadow:0 2px 12px #1d1c1c1f;border:1px solid rgba(29,28,28,.12);border-radius:5px;overflow:hidden;background:#fff;z-index:9999}.record-tree-popper-content-item{padding:8px 10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.record-tree-title-bar{position:relative;display:flex;margin-bottom:3px}.record-tree-title{padding-left:25px;font-weight:700;outline:none;font-size:18px;line-height:1.5;width:100%}.record-tree-popper-reference{display:flex;position:absolute;top:0;left:0;text-align:center;border-radius:9999px;color:#fff}.record-tree-empty-icon{display:inline-block;border-radius:9999px}.record-tree-title .node-text{margin-left:0!important}.record-tree-title-bar .popper{transform:translate3d(0,22px,0)!important}.record-tree-title-finished{text-decoration:line-through;color:#999}.record-audio[data-v-e8535564]{position:absolute;background:#fff;padding:20px;width:400px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.record-audio .recwave[data-v-e8535564]{width:300px;height:40px}.record-audio .audio-item[data-v-e8535564]{margin-top:10px;display:flex;align-items:center}.record-audio .audio-item a[data-v-e8535564]{color:#52a770;margin-left:10px;font-size:12px;cursor:pointer}.record-audio .audio-text[data-v-e8535564]{background:#f5f5f5;margin-top:10px;padding:8px 12px;border-radius:5px}.record-audio .buttons[data-v-e8535564]{margin-top:10px;display:flex;align-items:center}.record-audio .buttons .btn[data-v-e8535564]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.record-audio .buttons .finish[data-v-e8535564]{color:#fff;background:#1677ff;border:1px solid #1677ff}.record-audio .buttons .disabled[data-v-e8535564]{background:#eee;cursor:default;border-color:#eee}.record-audio .buttons .cancel[data-v-e8535564]{border:1px solid #eee}.record-audio .buttons .oper[data-v-e8535564]{margin-right:10px}.record-audio .main[data-v-e8535564]{display:flex;align-items:center}.record-audio .duration[data-v-e8535564]{width:60px;margin-left:10px;color:#999;font-size:12px}.wrap[data-v-e8535564]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-e8535564]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-audio-mobile[data-v-e8535564]{display:flex;width:100vw;position:absolute;background:#fff;padding:20px;left:50%;top:50%;transform:translate(-50%,-50%);z-index:999;align-items:center}.record-audio-mobile .recwave[data-v-e8535564]{flex:1;height:30px}.record-audio-mobile .oper[data-v-e8535564]{margin-right:10px}.record-video[data-v-be255be7]{position:absolute;background:#fff;padding:20px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.video-item[data-v-be255be7]{width:300px}.buttons[data-v-be255be7]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-be255be7]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-be255be7]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-be255be7]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-be255be7]{border:1px solid #eee}.buttons .oper[data-v-be255be7]{margin-right:10px}.wrap[data-v-be255be7]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-be255be7]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-video[data-v-d1a4de11]{position:absolute;background:#fff;padding:20px;left:50%;top:50%;width:452px;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.video-item[data-v-d1a4de11]{width:200px}.img-item[data-v-d1a4de11]{width:200px;height:150px;border:1px dashed #eee;margin-left:10px}.img-item img[data-v-d1a4de11]{width:200px}.record-content[data-v-d1a4de11]{display:flex}.buttons[data-v-d1a4de11]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-d1a4de11]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-d1a4de11]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-d1a4de11]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-d1a4de11]{border:1px solid #eee}.buttons .oper[data-v-d1a4de11]{margin-right:10px}.wrap[data-v-d1a4de11]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-d1a4de11]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-tree-mobile .record-tree{height:calc(100vh - 45px);overflow-y:scroll}.record-tree-mobile .record-tree-main{padding-left:0;padding-right:0}.record-tree-mobile .record-tree-options{padding:12px 0;display:flex;position:fixed}.record-tree-mobile .record-tree-option-item{flex:1;max-width:32px}.record-tree-mobile .node-file-wrap{width:200px}.record-tree-mobile .node-file-right{display:none}.record-tree-mobile .node-image img{width:auto;max-height:80px}.record-tree-mobile .node-audio,.record-tree-mobile .node-video{width:200px}.record-tree-mobile .node-audio audio{width:200px;outline:none}.record-tree-mobile .node-video video{width:200px;outline:none}.record-tree-container{position:relative;height:100%}.record-tree-main{padding-left:15px;padding-right:15px;overflow:scroll;flex:1}.record-tree{position:relative;padding-bottom:40px;display:flex;flex-direction:column;overflow:hidden;height:100%}.record-tree.record-tree-nobar{padding-bottom:0}.record-tree-options{position:absolute;bottom:0;left:0;width:100%;display:flex;justify-content:space-between;padding:5px 0;background:#fff;border-top:1px dotted #ddd}.record-tree-option-left{display:flex;flex:1;padding-left:10px}.record-tree-option-right{padding-right:10px;font-size:14px}.record-tree-option-item{margin:0 5px;cursor:pointer;display:flex;justify-content:center;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}img:-webkit-full-screen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain}img:fullscreen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;-o-object-fit:contain;object-fit:contain}.record-tree .node-text{margin-left:5px;flex:1;border:none;outline:none;word-break:break-all;overflow:hidden}.record-tree .node-text a{color:#0076ff;cursor:pointer}.date-popover{display:block;padding:5px 10px;background:#333;border-radius:4px;position:fixed;z-index:9999;transform:translate(-50%,-120%);font-size:12px;color:#666;text-align:center;transition:opacity .3s;color:#fff}.date-popover:after{content:"";position:absolute;top:95%;left:50%;transform:translate(-50%);border-width:6px;border-style:solid;border-color:#333 transparent transparent transparent}.tiptap p.is-editor-empty:first-child:before{color:#adb5bd;content:attr(data-placeholder);float:left;height:0;pointer-events:none}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.color-panel[data-v-d2cde42f]{background:#fff;border:1px solid #f2f2f2;width:164px;padding:5px 5px 0}.color-panel ul[data-v-d2cde42f]{list-style-type:none;margin:0}.color-panel ul li[data-v-d2cde42f]{display:inline-block;margin:0 5px;width:20px;height:20px;border-radius:100%;border:1px solid #f2f2f2;display:inline-flex;align-items:center;justify-content:center}.node-complex[data-v-b1f6b6b5]{display:flex;flex-direction:row;align-self:center;justify-self:center;outline:none}.holder[data-v-b1f6b6b5]{width:0px;overflow:hidden;border-width:1px;border-style:solid;border-color:transparent;outline:none}.node-element[data-v-b1f6b6b5]{display:inline-block;position:relative;margin:5px 1px}.node-element:hover .node-del[data-v-b1f6b6b5]{display:block}.node-image img[data-v-b1f6b6b5]{outline:none}.node-audio[data-v-b1f6b6b5]{width:300px}.node-audio audio[data-v-b1f6b6b5]{width:300px;outline:none}.node-video video[data-v-b1f6b6b5]{outline:none}.node-del[data-v-b1f6b6b5]{cursor:pointer;display:none;width:15px;height:15px;position:absolute;top:-3px;right:-3px;background-color:#e6f7ff;background-size:100% 100%;border-radius:50%}.node-del[data-v-b1f6b6b5]:before,.node-del[data-v-b1f6b6b5]:after{content:"";position:absolute;top:50%;left:50%;width:2px;height:10px;background-color:#595959}.node-del[data-v-b1f6b6b5]:before{transform:translate(-50%,-50%) rotate(45deg)}.node-del[data-v-b1f6b6b5]:after{transform:translate(-50%,-50%) rotate(-45deg)}.node-file-wrap[data-v-b1f6b6b5]{width:260px;padding:10px 16px;display:flex;background:#f2f2f2;border-radius:5px;justify-content:center;align-items:center}.node-file-left[data-v-b1f6b6b5]{flex:1}.node-file-left h6[data-v-b1f6b6b5]{font-size:14px;font-weight:700;margin:0 0 5px;padding:0;white-space:nowrap}.node-file-left p[data-v-b1f6b6b5]{margin:0;padding:0;font-size:12px;color:#999}.node-file-right a[data-v-b1f6b6b5]{color:#52a770;font-size:14px}@keyframes blinkBorder-b1f6b6b5{0%,to{border-color:transparent}50%{border-color:#333}}.node-complex .holder[data-v-b1f6b6b5]:focus{animation:blinkBorder-b1f6b6b5 1s infinite}.fullscreen-handle[data-v-b1f6b6b5]{width:15px;height:15px;position:absolute;bottom:0;right:16px;cursor:pointer;background:#fff9}.resize-handle[data-v-b1f6b6b5]{width:15px;height:15px;position:absolute;bottom:0;right:0;cursor:se-resize;transform:rotate(90deg);background:#fff9}.resize-handle svg[data-v-b1f6b6b5]{cursor:se-resize}.ProseMirror{outline:none}.node-div[data-v-4cd00a01]{display:flex;align-items:center;position:relative}.node-div>div[data-v-4cd00a01]{flex:1}.node-icon[data-v-4cd00a01]{position:relative;width:17px;height:17px;border-radius:10px;background-color:#fff;cursor:pointer;margin-left:5px;align-self:flex-start;top:3px}.node-icon .node-circle[data-v-4cd00a01]{display:block;position:absolute;top:5px;left:5px;width:7px;height:7px;border-radius:10px;background-color:#eee}.node-icon[data-v-4cd00a01]:hover{background-color:#ccc}.node-finished[data-v-4cd00a01]{text-decoration:line-through;color:#999}.node-ul[data-v-1d25af83]{background-color:#fff;margin:0;padding:0;list-style:none}.node-li[data-v-1d25af83]{padding:0;list-style:none;margin:0;line-height:1.5;position:relative;overflow:hidden}[data-v-1d25af83] .sublevel .node-li{margin-left:15px}[data-v-1d25af83] .drag-over-top:before{content:"";width:100%;height:1px;top:0;background-color:#eee;position:absolute}[data-v-1d25af83] .drag-over-center{background-color:#eee}[data-v-1d25af83] .drag-over-bottom:after{content:"";width:100%;height:1px;background-color:#eee;position:absolute;bottom:0}.collapsed>ul[data-v-1d25af83]{display:none}[data-v-1d25af83] .collapsed .node-icon:before{display:none}.tree-title[data-v-1d25af83]{padding-left:25px;font-weight:700;outline:none;font-size:1.125rem;line-height:1.5;width:100%}[data-v-1d25af83] .node-li.has-child.collapsed .node-icon:after{background-color:#aaa}[data-v-1d25af83] .node-li.dragging .node-icon:before{display:none}[data-v-1d25af83] .has-child>.node-div>.node-icon:before{content:"";position:absolute;top:20px;left:50%;height:9999px;width:1px;background-color:#f2f2f2}[data-v-1d25af83] .has-child>.node-div>.node-icon:hover:before{background-color:#52a770}.record-tree-popper-content{display:flex;flex-wrap:wrap;padding:10px;box-shadow:0 2px 12px #1d1c1c1f;border:1px solid rgba(29,28,28,.12);border-radius:5px;overflow:hidden;background:#fff;z-index:9999}.record-tree-popper-content-item{padding:8px 10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.record-tree-popper-content-item.active{background:#f2f2f2}.record-tree-title-bar{position:relative;display:flex;margin-bottom:3px}.record-tree-title{padding-left:25px;font-weight:700;outline:none;font-size:18px;line-height:1.5;width:100%}.record-tree-popper-reference{display:flex;position:absolute;top:0;left:0;text-align:center;border-radius:9999px;color:#fff}.record-tree-empty-icon{display:inline-block;border-radius:9999px}.record-tree-title .node-text{margin-left:0!important}.record-tree-title-bar .popper{transform:translate3d(0,22px,0)!important}.record-tree-title-finished{text-decoration:line-through;color:#999}.record-audio[data-v-e8535564]{position:absolute;background:#fff;padding:20px;width:400px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.record-audio .recwave[data-v-e8535564]{width:300px;height:40px}.record-audio .audio-item[data-v-e8535564]{margin-top:10px;display:flex;align-items:center}.record-audio .audio-item a[data-v-e8535564]{color:#52a770;margin-left:10px;font-size:12px;cursor:pointer}.record-audio .audio-text[data-v-e8535564]{background:#f5f5f5;margin-top:10px;padding:8px 12px;border-radius:5px}.record-audio .buttons[data-v-e8535564]{margin-top:10px;display:flex;align-items:center}.record-audio .buttons .btn[data-v-e8535564]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.record-audio .buttons .finish[data-v-e8535564]{color:#fff;background:#1677ff;border:1px solid #1677ff}.record-audio .buttons .disabled[data-v-e8535564]{background:#eee;cursor:default;border-color:#eee}.record-audio .buttons .cancel[data-v-e8535564]{border:1px solid #eee}.record-audio .buttons .oper[data-v-e8535564]{margin-right:10px}.record-audio .main[data-v-e8535564]{display:flex;align-items:center}.record-audio .duration[data-v-e8535564]{width:60px;margin-left:10px;color:#999;font-size:12px}.wrap[data-v-e8535564]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-e8535564]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-audio-mobile[data-v-e8535564]{display:flex;width:100vw;position:absolute;background:#fff;padding:20px;left:50%;top:50%;transform:translate(-50%,-50%);z-index:999;align-items:center}.record-audio-mobile .recwave[data-v-e8535564]{flex:1;height:30px}.record-audio-mobile .oper[data-v-e8535564]{margin-right:10px}.record-video[data-v-be255be7]{position:absolute;background:#fff;padding:20px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.video-item[data-v-be255be7]{width:300px}.buttons[data-v-be255be7]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-be255be7]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-be255be7]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-be255be7]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-be255be7]{border:1px solid #eee}.buttons .oper[data-v-be255be7]{margin-right:10px}.wrap[data-v-be255be7]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-be255be7]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-video[data-v-d1a4de11]{position:absolute;background:#fff;padding:20px;left:50%;top:50%;width:452px;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.video-item[data-v-d1a4de11]{width:200px}.img-item[data-v-d1a4de11]{width:200px;height:150px;border:1px dashed #eee;margin-left:10px}.img-item img[data-v-d1a4de11]{width:200px}.record-content[data-v-d1a4de11]{display:flex}.buttons[data-v-d1a4de11]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-d1a4de11]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-d1a4de11]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-d1a4de11]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-d1a4de11]{border:1px solid #eee}.buttons .oper[data-v-d1a4de11]{margin-right:10px}.wrap[data-v-d1a4de11]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-d1a4de11]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-tree-mobile .record-tree{height:calc(100vh - 45px);overflow-y:scroll}.record-tree-mobile .record-tree-main{padding-left:0;padding-right:0}.record-tree-mobile .record-tree-options{padding:12px 0;display:flex;position:fixed}.record-tree-mobile .record-tree-option-item{flex:1;max-width:32px}.record-tree-mobile .node-file-wrap{width:200px}.record-tree-mobile .node-file-right{display:none}.record-tree-mobile .node-image img{width:auto;max-height:80px}.record-tree-mobile .node-audio,.record-tree-mobile .node-video{width:200px}.record-tree-mobile .node-audio audio{width:200px;outline:none}.record-tree-mobile .node-video video{width:200px;outline:none}.record-tree-container{position:relative;height:100%}.record-tree-main{padding-left:15px;padding-right:15px;overflow:scroll;flex:1}.record-tree{position:relative;padding-bottom:40px;display:flex;flex-direction:column;overflow:hidden;height:100%}.record-tree.record-tree-nobar{padding-bottom:0}.record-tree-options{position:absolute;bottom:0;left:0;width:100%;display:flex;justify-content:space-between;padding:5px 0;background:#fff;border-top:1px dotted #ddd}.record-tree-option-left{display:flex;flex:1;padding-left:10px}.record-tree-option-right{padding-right:10px;font-size:14px}.record-tree-option-item{margin:0 5px;cursor:pointer;display:flex;justify-content:center;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}img:-webkit-full-screen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain}img:fullscreen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;-o-object-fit:contain;object-fit:contain}.record-tree .node-text{margin-left:5px;flex:1;border:none;outline:none;word-break:break-all;overflow:hidden}.record-tree .node-text a{color:#0076ff;cursor:pointer}.date-popover{display:block;padding:5px 10px;background:#333;border-radius:4px;position:fixed;z-index:9999;transform:translate(-50%,-120%);font-size:12px;color:#666;text-align:center;transition:opacity .3s;color:#fff}.date-popover:after{content:"";position:absolute;top:95%;left:50%;transform:translate(-50%);border-width:6px;border-style:solid;border-color:#333 transparent transparent transparent}.tiptap p.is-editor-empty:first-child:before{color:#adb5bd;content:attr(data-placeholder);float:left;height:0;pointer-events:none}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
2
|
import rr from "vue3-popper";
|
|
3
|
-
import { openBlock as et, createElementBlock as nt, createElementVNode as Xe, createVNode as yt, unref as Et, Fragment as v0, renderList as m0, normalizeStyle as Xt, reactive as
|
|
3
|
+
import { openBlock as et, createElementBlock as nt, createElementVNode as Xe, createVNode as yt, unref as Et, Fragment as v0, renderList as m0, normalizeStyle as Xt, reactive as yr, ref as zt, withModifiers as kt, normalizeClass as Ot, createCommentVNode as Mt, toDisplayString as o0, nextTick as W0, watch as X0, onMounted as xr, onBeforeUnmount as Sr, createBlock as Vt, resolveComponent as Bt, createSlots as Tr, withCtx as _0, pushScopeId as Mr, popScopeId as Rr } from "vue";
|
|
4
4
|
import Jt from "vue-inline-svg";
|
|
5
|
-
import { detectDeviceType as I0, truncateString as
|
|
6
|
-
import
|
|
7
|
-
import { useEditor as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { Mark as
|
|
12
|
-
import
|
|
5
|
+
import { detectDeviceType as I0, truncateString as Cr, formatBytes as Ar, getTag as k0, isTodoTag as ar, getExt as B0, getTagStyleById as ir, uuid as Yt, getTagStyle as kr, icons as Br, parseMimeType as nr, getSize as sr, oss as or } from "@codernote/utils";
|
|
6
|
+
import Er from "mitt";
|
|
7
|
+
import { useEditor as Dr, EditorContent as Lr } from "@tiptap/vue-3";
|
|
8
|
+
import Ir from "@tiptap/extension-link";
|
|
9
|
+
import Or from "@tiptap/extension-highlight";
|
|
10
|
+
import Fr from "@tiptap/extension-placeholder";
|
|
11
|
+
import { Mark as Nr, mergeAttributes as Hr, getMarkAttributes as Yr, Extension as Pr } from "@tiptap/core";
|
|
12
|
+
import Vr from "@tiptap/starter-kit";
|
|
13
13
|
import at from "dayjs";
|
|
14
|
-
const zr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709866109224'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4677'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M742.832175%20461.155909h125.076465a50.844091%2050.844091%200%200%201%200%20101.688182h-137.787488l27.455809%2027.45581A50.844091%2050.844091%200%201%201%20685.378352%20660.973188l-107.789474-106.772592a50.844091%2050.844091%200%200%201%200-71.690169l107.789474-107.789474a50.844091%2050.844091%200%201%201%2072.198609%2071.690169z%20m-586.740815-305.064549h711.81728a50.844091%2050.844091%200%200%201%200%20101.688183h-711.81728a50.844091%2050.844091%200%200%201%200-101.688183z%20m0%20305.064549h305.064549a50.844091%2050.844091%200%201%201%200%20101.688182h-305.064549a50.844091%2050.844091%200%200%201%200-101.688182z%20m0%20305.064548h711.81728a50.844091%2050.844091%200%200%201%200%20101.688183h-711.81728a50.844091%2050.844091%200%200%201%200-101.688183z'%20fill='%232c2c2c'%20p-id='4678'%3e%3c/path%3e%3c/svg%3e", qr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709866100174'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4504'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M281.676266%20461.155909l-14.744786-14.744787a50.844091%2050.844091%200%200%201%2071.690168-72.19861l107.789474%20107.789474a50.844091%2050.844091%200%200%201%200%2071.690169L338.621648%20660.973188a50.844091%2050.844091%200%201%201-71.690168-71.690169l27.455809-27.455809H156.09136a50.844091%2050.844091%200%200%201%200-101.688183z%20m586.740814-305.064549a50.844091%2050.844091%200%200%201%200%20101.688183h-711.817279a50.844091%2050.844091%200%200%201%200-101.688183z%20m0%20610.129097a50.844091%2050.844091%200%200%201%200%20101.688183h-711.817279a50.844091%2050.844091%200%200%201%200-101.688183z%20m0-305.064548a50.844091%2050.844091%200%200%201%200%20101.688182h-305.064548a50.844091%2050.844091%200%200%201%200-101.688182z'%20fill='%232c2c2c'%20p-id='4505'%3e%3c/path%3e%3c/svg%3e", Gr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709779202767'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4512'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M470.016%20976.896q-44.032%200-59.392-20.48t-15.36-65.536q0-20.48-0.512-64.512t-1.024-93.696-1.536-96.768-1.024-74.752q0-39.936-7.68-62.464t-35.328-21.504q-20.48%200-48.64-1.024t-49.664%200q-35.84%200-45.568-19.456t13.824-50.176q24.576-30.72%2057.344-72.704t67.584-86.016%2068.096-87.04%2058.88-75.776q23.552-29.696%2045.568-30.72t46.592%2026.624q24.576%2029.696%2056.832%2069.632t67.072%2082.432%2068.608%2083.968%2060.416%2073.216q29.696%2035.84%2023.04%2058.88t-43.52%2023.04q-11.264%200-25.088%200.512t-29.184%201.024-30.208%201.024-27.136%200.512q-25.6%201.024-32.256%2016.384t-5.632%2041.984q0%2029.696%200.512%2077.824t1.024%20100.352%201.536%20101.376%201.024%2079.872q0%2013.312-2.048%2027.648t-9.728%2026.112-21.504%2019.968-36.352%208.192q-27.648%200-52.736%200.512t-56.832%201.536z'%20p-id='4513'%3e%3c/path%3e%3c/svg%3e", jr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709779221999'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4657'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M564.224%2044.032q43.008%200%2058.368%2020.48t15.36%2065.536q0%2020.48%200.512%2064.512t0.512%2093.696%200.512%2096.768%200.512%2074.752q0%2038.912%207.68%2061.952t35.328%2022.016q19.456%200%2048.128%201.024t49.152%201.024q35.84%200%2045.568%2018.944t-13.824%2049.664q-24.576%2030.72-57.344%2072.704t-68.096%2086.016-69.12%2086.528-59.392%2075.264q-23.552%2029.696-45.568%2030.72t-45.568-27.648q-24.576-29.696-57.344-69.632t-67.072-82.432-67.584-83.968-59.904-74.24q-29.696-35.84-22.528-58.88t44.032-23.04l24.576%200q14.336%200%2029.696-0.512t30.208-1.536%2026.112-1.024q26.624%200%2032.768-15.36t6.144-41.984q0-29.696-0.512-77.824t-0.512-100.352-0.512-101.376-0.512-79.872q0-13.312%202.048-27.648t9.728-26.112%2020.992-19.456%2036.864-7.68q27.648%200%2053.248-0.512t57.344-0.512z'%20p-id='4658'%3e%3c/path%3e%3c/svg%3e", Wr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709780159129'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8535'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M901.12%2068.224a202.88%20202.88%200%200%200-286.976%200l-0.64%200.832%200.512%200.512c-0.768%200.704-1.728%200.896-2.368%201.6L144.896%20537.792l-0.128%200.128-0.128%200.256-11.712%2011.712a47.296%2047.296%200%200%200-9.856%2014.656c-85.76%20109.76-79.36%20268.288%2021.76%20369.344%20100.864%20100.992%20259.008%20107.52%20368.832%2022.272a51.072%2051.072%200%200%200%2015.232-10.24l324.608-324.672a48.512%2048.512%200%200%200%201.024-68.8%2048.704%2048.704%200%200%200-68.864%200.896L475.776%20863.36l-0.256-0.256c-0.896%200.96-1.472%202.112-2.496%203.008a184%20184%200%200%201-260.352-259.968l0.256-0.384c0.896-0.96%201.92-1.536%202.944-2.432l-0.256-0.192%20464-464c0.64-0.704%200.896-1.664%201.536-2.432l0.256%200.256c0.256-0.256%200.384-0.576%200.64-0.768a106.88%20106.88%200%201%201%20151.232%20151.296l-0.768%200.64%200.512%200.512c-0.768%200.64-1.728%200.896-2.368%201.6l-478.592%20478.656c-11.392%2011.456-29.888%2010.112-41.152-1.344a28.224%2028.224%200%200%201-0.64-40.384l415.232-415.104a48.64%2048.64%200%200%200%200.896-68.8%2048.576%2048.576%200%200%200-68.736%200.896l-415.168%20415.296c-0.384%200.32-0.512%200.768-0.768%201.088-47.36%2048.96-46.976%20126.72%201.344%20174.976%2045.888%2046.08%20118.4%2048.128%20167.488%207.616%203.136-1.92%206.656-3.584%209.344-6.464l478.592-478.656c0.768-0.704%200.896-1.664%201.536-2.432l0.256%200.256%200.832-0.64a202.944%20202.944%200%200%200%200-286.976z'%20fill='%23030000'%20p-id='8536'%3e%3c/path%3e%3c/svg%3e", Xr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709780533791'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='25342'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M355.555556%20967.111111a28.444444%2028.444444%200%201%201%200-56.888889h312.888888a28.444444%2028.444444%200%201%201%200%2056.888889H355.555556z%20m128-56.888889v-100.878222a296.433778%20296.433778%200%200%201-182.727112-86.158222A296.718222%20296.718222%200%200%201%20213.333333%20512v-99.555556a28.444444%2028.444444%200%200%201%2056.888889%200v99.555556c0.142222%20133.475556%20108.316444%20241.635556%20241.777778%20241.777778%20133.475556-0.142222%20241.635556-108.302222%20241.777778-241.777778v-99.555556a28.444444%2028.444444%200%201%201%2056.888889%200v99.555556a296.718222%20296.718222%200%200%201-87.466667%20211.2A296.433778%20296.433778%200%200%201%20540.444444%20809.358222V910.222222h-56.888888z%20m-113.777778-391.111111v-312.888889C369.777778%20123.747556%20436.636444%2056.888889%20519.111111%2056.888889%20601.6%2056.888889%20668.444444%20123.747556%20668.444444%20206.222222v312.888889C668.444444%20601.585778%20601.6%20668.444444%20519.111111%20668.444444%20436.636444%20668.444444%20369.777778%20601.585778%20369.777778%20519.111111z'%20fill='%23323233'%20p-id='25343'%3e%3c/path%3e%3c/svg%3e", Kr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709780437481'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='16390'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M746.656%20310.528l110.688-49.184a42.656%2042.656%200%200%201%2060%2038.976v423.36a42.656%2042.656%200%200%201-60%2038.976l-110.688-49.184V768a85.344%2085.344%200%200%201-85.312%2085.344H192A85.344%2085.344%200%200%201%20106.656%20768V256A85.344%2085.344%200%200%201%20192%20170.656h469.344A85.344%2085.344%200%200%201%20746.656%20256v54.528zM320%20381.184v261.632a21.344%2021.344%200%200%200%2033.152%2017.728l196.224-130.784a21.344%2021.344%200%200%200%200-35.52l-196.224-130.784a21.344%2021.344%200%200%200-33.152%2017.728z'%20fill='%23000000'%20p-id='16391'%3e%3c/path%3e%3c/svg%3e", Zr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709780461968'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='20299'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M813.812907%20828.826855l-31.770588%200%200%200L241.960751%20828.826855l-0.004093%200-31.766494%200c-35.092239%200-63.541175-28.369118-63.541175-63.365166L146.648988%20337.743234c0-34.996049%2028.448936-63.365166%2063.541175-63.365166l31.766494%200%200.004093%200%200%200%20103.249549%200%2039.709397-63.365166c0-8.749268%2022.99983-15.84078%2031.774681-15.84078l190.614315%200c8.769734%200%2031.770588%207.091512%2031.770588%2015.84078l39.712467%2063.365166%20103.250572%200%2031.770588%200c35.092239%200%2063.537082%2028.369118%2063.537082%2063.365166l0%20427.718455C877.349989%20800.457738%20848.905146%20828.826855%20813.812907%20828.826855L813.812907%20828.826855zM512.001023%20337.743234c-114.046453%200-206.504214%2092.201935-206.504214%20205.940372%200%20113.739461%2092.457762%20205.936279%20206.504214%20205.936279%20114.043383%200%20206.496028-92.196819%20206.500121-205.928093l0-0.016373C718.497051%20429.941076%20626.044406%20337.743234%20512.001023%20337.743234L512.001023%20337.743234zM512.001023%20686.254719c-78.958306%200-142.963039-63.828724-142.963039-142.571113%200-78.738295%2064.004733-142.571113%20142.963039-142.571113%2078.955236%200%20142.963039%2063.832817%20142.963039%20142.571113C654.964062%20622.425995%20590.95626%20686.254719%20512.001023%20686.254719L512.001023%20686.254719zM512.001023%20686.254719'%20fill='%23272636'%20p-id='20300'%3e%3c/path%3e%3c/svg%3e", Qr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709785409899'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='37829'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%200C230.4%200%200%20230.4%200%20512s230.4%20512%20512%20512%20512-230.4%20512-512-230.4-512-512-512z%20m0%20960c-249.6%200-448-198.4-448-448s198.4-448%20448-448%20448%20198.4%20448%20448-198.4%20448-448%20448z'%20fill='%23333333'%20p-id='37830'%3e%3c/path%3e%3cpath%20d='M352%20352h320v320h-320z'%20fill='%23333333'%20p-id='37831'%3e%3c/path%3e%3c/svg%3e", $r = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709785373002'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='30220'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M392.256%20515.008a119.744%20119.744%200%201%200%20239.488%200%20119.744%20119.744%200%201%200-239.488%200z'%20fill='%23333333'%20p-id='30221'%3e%3c/path%3e%3cpath%20d='M512%2068.032A447.488%20447.488%200%200%200%2065.024%20515.008%20447.424%20447.424%200%200%200%20512%20961.984a447.424%20447.424%200%200%200%20446.976-446.976A447.424%20447.424%200%200%200%20512%2068.032z%20m0%20829.952c-211.2%200-382.976-171.84-382.976-382.976S300.8%20132.032%20512%20132.032s382.976%20171.84%20382.976%20382.976S723.2%20897.984%20512%20897.984z'%20fill='%23333333'%20p-id='30222'%3e%3c/path%3e%3c/svg%3e", Jr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1712145583790'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5884'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M734.165333%20350.165333l-384%20384L469.333333%20853.333333H170.666667v-298.666666l119.168%20119.168%20384-384L554.666667%20170.666667h298.666666v298.666666l-119.168-119.168zM256%20256v192H170.666667V170.666667h256v85.333333H256z%20m512%20512v-170.666667h85.333333v256h-256v-85.333333h170.666667z'%20fill='%234B4F54'%20p-id='5885'%3e%3c/path%3e%3c/svg%3e", ea = "data:image/svg+xml,%3csvg%20t='1714370428406'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4557'%20width='200'%20height='200'%3e%3cpath%20d='M213.333333%20213.333333h213.333334V128H170.666667a42.666667%2042.666667%200%200%200-42.666667%2042.666667v256h85.333333V213.333333zM170.666667%20896h256v-85.333333H213.333333v-213.333334H128v256a42.666667%2042.666667%200%200%200%2042.666667%2042.666667z%20m725.333333-42.666667v-256h-85.333333v213.333334h-213.333334v85.333333h256a42.666667%2042.666667%200%200%200%2042.666667-42.666667zM597.333333%20213.333333h213.333334v213.333334h85.333333V170.666667a42.666667%2042.666667%200%200%200-42.666667-42.666667h-256v85.333333z'%20fill='%23515151'%20p-id='4558'%3e%3c/path%3e%3c/svg%3e", ta = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1718256873576'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8028'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M707.872%20484.64C745.376%20440.096%20768%20382.656%20768%20320c0-141.152-114.848-256-256-256l-128%200-128%200L192%2064l0%20896%2064%200%20128%200%20192%200c141.152%200%20256-114.848%20256-256C832%20611.04%20782.208%20529.504%20707.872%20484.64zM384%20192l101.504%200c55.968%200%20101.504%2057.408%20101.504%20128s-45.536%20128-101.504%20128L384%20448%20384%20192zM543.008%20832%20384%20832%20384%20576l159.008%200c58.464%200%20106.016%2057.408%20106.016%20128S601.44%20832%20543.008%20832z'%20fill='%23000000'%20p-id='8029'%3e%3c/path%3e%3c/svg%3e", ra = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1718256954702'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9002'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M904%20816H120c-4.4%200-8%203.6-8%208v80c0%204.4%203.6%208%208%208h784c4.4%200%208-3.6%208-8v-80c0-4.4-3.6-8-8-8z%20m-650.3-80h85c4.2%200%208-2.7%209.3-6.8l53.7-166h219.2l53.2%20166c1.3%204%205%206.8%209.3%206.8h89.1c1.1%200%202.2-0.2%203.2-0.5%205.1-1.8%207.8-7.3%206-12.4L573.6%20118.6c-1.4-3.9-5.1-6.6-9.2-6.6H462.1c-4.2%200-7.9%202.6-9.2%206.6L244.5%20723.1c-0.4%201-0.5%202.1-0.5%203.2-0.1%205.3%204.3%209.7%209.7%209.7z%20m255.9-516.1h4.1l83.8%20263.8H424.9l84.7-263.8z'%20fill='%23333333'%20p-id='9003'%3e%3c/path%3e%3c/svg%3e", aa = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1718341836843'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5749'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M79.25419%201010.518503l930.261375-930.261375a46.513269%2046.513269%200%201%200-65.772693-65.772693L13.481497%20944.74581c-17.739973%2018.233418-17.539385%2047.335679%200.448313%2065.32438%2017.988701%2017.987698%2047.090962%2018.188286%2065.32438%200.448313z'%20fill='%23E02020'%20p-id='5750'%3e%3c/path%3e%3c/svg%3e", qt = {
|
|
15
|
-
left:
|
|
16
|
-
right:
|
|
17
|
-
up:
|
|
18
|
-
down:
|
|
19
|
-
attach:
|
|
20
|
-
audio:
|
|
21
|
-
video:
|
|
22
|
-
photo:
|
|
23
|
-
stop:
|
|
24
|
-
record:
|
|
25
|
-
resize:
|
|
26
|
-
fullscreen:
|
|
27
|
-
bold:
|
|
28
|
-
color:
|
|
29
|
-
clear:
|
|
14
|
+
const Ur = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709866109224'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4677'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M742.832175%20461.155909h125.076465a50.844091%2050.844091%200%200%201%200%20101.688182h-137.787488l27.455809%2027.45581A50.844091%2050.844091%200%201%201%20685.378352%20660.973188l-107.789474-106.772592a50.844091%2050.844091%200%200%201%200-71.690169l107.789474-107.789474a50.844091%2050.844091%200%201%201%2072.198609%2071.690169z%20m-586.740815-305.064549h711.81728a50.844091%2050.844091%200%200%201%200%20101.688183h-711.81728a50.844091%2050.844091%200%200%201%200-101.688183z%20m0%20305.064549h305.064549a50.844091%2050.844091%200%201%201%200%20101.688182h-305.064549a50.844091%2050.844091%200%200%201%200-101.688182z%20m0%20305.064548h711.81728a50.844091%2050.844091%200%200%201%200%20101.688183h-711.81728a50.844091%2050.844091%200%200%201%200-101.688183z'%20fill='%232c2c2c'%20p-id='4678'%3e%3c/path%3e%3c/svg%3e", zr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709866100174'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4504'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M281.676266%20461.155909l-14.744786-14.744787a50.844091%2050.844091%200%200%201%2071.690168-72.19861l107.789474%20107.789474a50.844091%2050.844091%200%200%201%200%2071.690169L338.621648%20660.973188a50.844091%2050.844091%200%201%201-71.690168-71.690169l27.455809-27.455809H156.09136a50.844091%2050.844091%200%200%201%200-101.688183z%20m586.740814-305.064549a50.844091%2050.844091%200%200%201%200%20101.688183h-711.817279a50.844091%2050.844091%200%200%201%200-101.688183z%20m0%20610.129097a50.844091%2050.844091%200%200%201%200%20101.688183h-711.817279a50.844091%2050.844091%200%200%201%200-101.688183z%20m0-305.064548a50.844091%2050.844091%200%200%201%200%20101.688182h-305.064548a50.844091%2050.844091%200%200%201%200-101.688182z'%20fill='%232c2c2c'%20p-id='4505'%3e%3c/path%3e%3c/svg%3e", qr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709779202767'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4512'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M470.016%20976.896q-44.032%200-59.392-20.48t-15.36-65.536q0-20.48-0.512-64.512t-1.024-93.696-1.536-96.768-1.024-74.752q0-39.936-7.68-62.464t-35.328-21.504q-20.48%200-48.64-1.024t-49.664%200q-35.84%200-45.568-19.456t13.824-50.176q24.576-30.72%2057.344-72.704t67.584-86.016%2068.096-87.04%2058.88-75.776q23.552-29.696%2045.568-30.72t46.592%2026.624q24.576%2029.696%2056.832%2069.632t67.072%2082.432%2068.608%2083.968%2060.416%2073.216q29.696%2035.84%2023.04%2058.88t-43.52%2023.04q-11.264%200-25.088%200.512t-29.184%201.024-30.208%201.024-27.136%200.512q-25.6%201.024-32.256%2016.384t-5.632%2041.984q0%2029.696%200.512%2077.824t1.024%20100.352%201.536%20101.376%201.024%2079.872q0%2013.312-2.048%2027.648t-9.728%2026.112-21.504%2019.968-36.352%208.192q-27.648%200-52.736%200.512t-56.832%201.536z'%20p-id='4513'%3e%3c/path%3e%3c/svg%3e", Gr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709779221999'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4657'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M564.224%2044.032q43.008%200%2058.368%2020.48t15.36%2065.536q0%2020.48%200.512%2064.512t0.512%2093.696%200.512%2096.768%200.512%2074.752q0%2038.912%207.68%2061.952t35.328%2022.016q19.456%200%2048.128%201.024t49.152%201.024q35.84%200%2045.568%2018.944t-13.824%2049.664q-24.576%2030.72-57.344%2072.704t-68.096%2086.016-69.12%2086.528-59.392%2075.264q-23.552%2029.696-45.568%2030.72t-45.568-27.648q-24.576-29.696-57.344-69.632t-67.072-82.432-67.584-83.968-59.904-74.24q-29.696-35.84-22.528-58.88t44.032-23.04l24.576%200q14.336%200%2029.696-0.512t30.208-1.536%2026.112-1.024q26.624%200%2032.768-15.36t6.144-41.984q0-29.696-0.512-77.824t-0.512-100.352-0.512-101.376-0.512-79.872q0-13.312%202.048-27.648t9.728-26.112%2020.992-19.456%2036.864-7.68q27.648%200%2053.248-0.512t57.344-0.512z'%20p-id='4658'%3e%3c/path%3e%3c/svg%3e", jr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709780159129'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8535'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M901.12%2068.224a202.88%20202.88%200%200%200-286.976%200l-0.64%200.832%200.512%200.512c-0.768%200.704-1.728%200.896-2.368%201.6L144.896%20537.792l-0.128%200.128-0.128%200.256-11.712%2011.712a47.296%2047.296%200%200%200-9.856%2014.656c-85.76%20109.76-79.36%20268.288%2021.76%20369.344%20100.864%20100.992%20259.008%20107.52%20368.832%2022.272a51.072%2051.072%200%200%200%2015.232-10.24l324.608-324.672a48.512%2048.512%200%200%200%201.024-68.8%2048.704%2048.704%200%200%200-68.864%200.896L475.776%20863.36l-0.256-0.256c-0.896%200.96-1.472%202.112-2.496%203.008a184%20184%200%200%201-260.352-259.968l0.256-0.384c0.896-0.96%201.92-1.536%202.944-2.432l-0.256-0.192%20464-464c0.64-0.704%200.896-1.664%201.536-2.432l0.256%200.256c0.256-0.256%200.384-0.576%200.64-0.768a106.88%20106.88%200%201%201%20151.232%20151.296l-0.768%200.64%200.512%200.512c-0.768%200.64-1.728%200.896-2.368%201.6l-478.592%20478.656c-11.392%2011.456-29.888%2010.112-41.152-1.344a28.224%2028.224%200%200%201-0.64-40.384l415.232-415.104a48.64%2048.64%200%200%200%200.896-68.8%2048.576%2048.576%200%200%200-68.736%200.896l-415.168%20415.296c-0.384%200.32-0.512%200.768-0.768%201.088-47.36%2048.96-46.976%20126.72%201.344%20174.976%2045.888%2046.08%20118.4%2048.128%20167.488%207.616%203.136-1.92%206.656-3.584%209.344-6.464l478.592-478.656c0.768-0.704%200.896-1.664%201.536-2.432l0.256%200.256%200.832-0.64a202.944%20202.944%200%200%200%200-286.976z'%20fill='%23030000'%20p-id='8536'%3e%3c/path%3e%3c/svg%3e", Wr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709780533791'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='25342'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M355.555556%20967.111111a28.444444%2028.444444%200%201%201%200-56.888889h312.888888a28.444444%2028.444444%200%201%201%200%2056.888889H355.555556z%20m128-56.888889v-100.878222a296.433778%20296.433778%200%200%201-182.727112-86.158222A296.718222%20296.718222%200%200%201%20213.333333%20512v-99.555556a28.444444%2028.444444%200%200%201%2056.888889%200v99.555556c0.142222%20133.475556%20108.316444%20241.635556%20241.777778%20241.777778%20133.475556-0.142222%20241.635556-108.302222%20241.777778-241.777778v-99.555556a28.444444%2028.444444%200%201%201%2056.888889%200v99.555556a296.718222%20296.718222%200%200%201-87.466667%20211.2A296.433778%20296.433778%200%200%201%20540.444444%20809.358222V910.222222h-56.888888z%20m-113.777778-391.111111v-312.888889C369.777778%20123.747556%20436.636444%2056.888889%20519.111111%2056.888889%20601.6%2056.888889%20668.444444%20123.747556%20668.444444%20206.222222v312.888889C668.444444%20601.585778%20601.6%20668.444444%20519.111111%20668.444444%20436.636444%20668.444444%20369.777778%20601.585778%20369.777778%20519.111111z'%20fill='%23323233'%20p-id='25343'%3e%3c/path%3e%3c/svg%3e", Xr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709780437481'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='16390'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M746.656%20310.528l110.688-49.184a42.656%2042.656%200%200%201%2060%2038.976v423.36a42.656%2042.656%200%200%201-60%2038.976l-110.688-49.184V768a85.344%2085.344%200%200%201-85.312%2085.344H192A85.344%2085.344%200%200%201%20106.656%20768V256A85.344%2085.344%200%200%201%20192%20170.656h469.344A85.344%2085.344%200%200%201%20746.656%20256v54.528zM320%20381.184v261.632a21.344%2021.344%200%200%200%2033.152%2017.728l196.224-130.784a21.344%2021.344%200%200%200%200-35.52l-196.224-130.784a21.344%2021.344%200%200%200-33.152%2017.728z'%20fill='%23000000'%20p-id='16391'%3e%3c/path%3e%3c/svg%3e", Kr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709780461968'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='20299'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M813.812907%20828.826855l-31.770588%200%200%200L241.960751%20828.826855l-0.004093%200-31.766494%200c-35.092239%200-63.541175-28.369118-63.541175-63.365166L146.648988%20337.743234c0-34.996049%2028.448936-63.365166%2063.541175-63.365166l31.766494%200%200.004093%200%200%200%20103.249549%200%2039.709397-63.365166c0-8.749268%2022.99983-15.84078%2031.774681-15.84078l190.614315%200c8.769734%200%2031.770588%207.091512%2031.770588%2015.84078l39.712467%2063.365166%20103.250572%200%2031.770588%200c35.092239%200%2063.537082%2028.369118%2063.537082%2063.365166l0%20427.718455C877.349989%20800.457738%20848.905146%20828.826855%20813.812907%20828.826855L813.812907%20828.826855zM512.001023%20337.743234c-114.046453%200-206.504214%2092.201935-206.504214%20205.940372%200%20113.739461%2092.457762%20205.936279%20206.504214%20205.936279%20114.043383%200%20206.496028-92.196819%20206.500121-205.928093l0-0.016373C718.497051%20429.941076%20626.044406%20337.743234%20512.001023%20337.743234L512.001023%20337.743234zM512.001023%20686.254719c-78.958306%200-142.963039-63.828724-142.963039-142.571113%200-78.738295%2064.004733-142.571113%20142.963039-142.571113%2078.955236%200%20142.963039%2063.832817%20142.963039%20142.571113C654.964062%20622.425995%20590.95626%20686.254719%20512.001023%20686.254719L512.001023%20686.254719zM512.001023%20686.254719'%20fill='%23272636'%20p-id='20300'%3e%3c/path%3e%3c/svg%3e", Zr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709785409899'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='37829'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%200C230.4%200%200%20230.4%200%20512s230.4%20512%20512%20512%20512-230.4%20512-512-230.4-512-512-512z%20m0%20960c-249.6%200-448-198.4-448-448s198.4-448%20448-448%20448%20198.4%20448%20448-198.4%20448-448%20448z'%20fill='%23333333'%20p-id='37830'%3e%3c/path%3e%3cpath%20d='M352%20352h320v320h-320z'%20fill='%23333333'%20p-id='37831'%3e%3c/path%3e%3c/svg%3e", Qr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709785373002'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='30220'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M392.256%20515.008a119.744%20119.744%200%201%200%20239.488%200%20119.744%20119.744%200%201%200-239.488%200z'%20fill='%23333333'%20p-id='30221'%3e%3c/path%3e%3cpath%20d='M512%2068.032A447.488%20447.488%200%200%200%2065.024%20515.008%20447.424%20447.424%200%200%200%20512%20961.984a447.424%20447.424%200%200%200%20446.976-446.976A447.424%20447.424%200%200%200%20512%2068.032z%20m0%20829.952c-211.2%200-382.976-171.84-382.976-382.976S300.8%20132.032%20512%20132.032s382.976%20171.84%20382.976%20382.976S723.2%20897.984%20512%20897.984z'%20fill='%23333333'%20p-id='30222'%3e%3c/path%3e%3c/svg%3e", $r = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1712145583790'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5884'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M734.165333%20350.165333l-384%20384L469.333333%20853.333333H170.666667v-298.666666l119.168%20119.168%20384-384L554.666667%20170.666667h298.666666v298.666666l-119.168-119.168zM256%20256v192H170.666667V170.666667h256v85.333333H256z%20m512%20512v-170.666667h85.333333v256h-256v-85.333333h170.666667z'%20fill='%234B4F54'%20p-id='5885'%3e%3c/path%3e%3c/svg%3e", Jr = "data:image/svg+xml,%3csvg%20t='1714370428406'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4557'%20width='200'%20height='200'%3e%3cpath%20d='M213.333333%20213.333333h213.333334V128H170.666667a42.666667%2042.666667%200%200%200-42.666667%2042.666667v256h85.333333V213.333333zM170.666667%20896h256v-85.333333H213.333333v-213.333334H128v256a42.666667%2042.666667%200%200%200%2042.666667%2042.666667z%20m725.333333-42.666667v-256h-85.333333v213.333334h-213.333334v85.333333h256a42.666667%2042.666667%200%200%200%2042.666667-42.666667zM597.333333%20213.333333h213.333334v213.333334h85.333333V170.666667a42.666667%2042.666667%200%200%200-42.666667-42.666667h-256v85.333333z'%20fill='%23515151'%20p-id='4558'%3e%3c/path%3e%3c/svg%3e", ea = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1718256873576'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8028'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M707.872%20484.64C745.376%20440.096%20768%20382.656%20768%20320c0-141.152-114.848-256-256-256l-128%200-128%200L192%2064l0%20896%2064%200%20128%200%20192%200c141.152%200%20256-114.848%20256-256C832%20611.04%20782.208%20529.504%20707.872%20484.64zM384%20192l101.504%200c55.968%200%20101.504%2057.408%20101.504%20128s-45.536%20128-101.504%20128L384%20448%20384%20192zM543.008%20832%20384%20832%20384%20576l159.008%200c58.464%200%20106.016%2057.408%20106.016%20128S601.44%20832%20543.008%20832z'%20fill='%23000000'%20p-id='8029'%3e%3c/path%3e%3c/svg%3e", ta = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1718256954702'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9002'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M904%20816H120c-4.4%200-8%203.6-8%208v80c0%204.4%203.6%208%208%208h784c4.4%200%208-3.6%208-8v-80c0-4.4-3.6-8-8-8z%20m-650.3-80h85c4.2%200%208-2.7%209.3-6.8l53.7-166h219.2l53.2%20166c1.3%204%205%206.8%209.3%206.8h89.1c1.1%200%202.2-0.2%203.2-0.5%205.1-1.8%207.8-7.3%206-12.4L573.6%20118.6c-1.4-3.9-5.1-6.6-9.2-6.6H462.1c-4.2%200-7.9%202.6-9.2%206.6L244.5%20723.1c-0.4%201-0.5%202.1-0.5%203.2-0.1%205.3%204.3%209.7%209.7%209.7z%20m255.9-516.1h4.1l83.8%20263.8H424.9l84.7-263.8z'%20fill='%23333333'%20p-id='9003'%3e%3c/path%3e%3c/svg%3e", ra = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1718341836843'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5749'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M79.25419%201010.518503l930.261375-930.261375a46.513269%2046.513269%200%201%200-65.772693-65.772693L13.481497%20944.74581c-17.739973%2018.233418-17.539385%2047.335679%200.448313%2065.32438%2017.988701%2017.987698%2047.090962%2018.188286%2065.32438%200.448313z'%20fill='%23E02020'%20p-id='5750'%3e%3c/path%3e%3c/svg%3e", qt = {
|
|
15
|
+
left: Ur,
|
|
16
|
+
right: zr,
|
|
17
|
+
up: qr,
|
|
18
|
+
down: Gr,
|
|
19
|
+
attach: jr,
|
|
20
|
+
audio: Wr,
|
|
21
|
+
video: Xr,
|
|
22
|
+
photo: Kr,
|
|
23
|
+
stop: Zr,
|
|
24
|
+
record: Qr,
|
|
25
|
+
resize: $r,
|
|
26
|
+
fullscreen: Jr,
|
|
27
|
+
bold: ea,
|
|
28
|
+
color: ta,
|
|
29
|
+
clear: ra
|
|
30
30
|
}, Gt = (a, i) => {
|
|
31
31
|
const y = a.__vccOpts || a;
|
|
32
32
|
for (const [x, N] of i)
|
|
33
33
|
y[x] = N;
|
|
34
34
|
return y;
|
|
35
|
-
},
|
|
35
|
+
}, aa = { class: "color-panel" }, ia = ["onClick"], na = {
|
|
36
36
|
__name: "index",
|
|
37
37
|
emits: ["change"],
|
|
38
38
|
setup(a, { emit: i }) {
|
|
@@ -69,7 +69,7 @@ const zr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
69
69
|
], N = (m) => {
|
|
70
70
|
y("change", m);
|
|
71
71
|
};
|
|
72
|
-
return (m, V) => (et(), nt("div",
|
|
72
|
+
return (m, V) => (et(), nt("div", aa, [
|
|
73
73
|
Xe("ul", null, [
|
|
74
74
|
Xe("li", null, [
|
|
75
75
|
yt(Et(Jt), {
|
|
@@ -83,21 +83,21 @@ const zr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
83
83
|
key: A,
|
|
84
84
|
style: Xt({ backgroundColor: A }),
|
|
85
85
|
onClick: (ee) => N(A)
|
|
86
|
-
}, null, 12,
|
|
86
|
+
}, null, 12, ia)), 64))
|
|
87
87
|
])
|
|
88
88
|
]));
|
|
89
89
|
}
|
|
90
|
-
},
|
|
90
|
+
}, sa = /* @__PURE__ */ Gt(na, [["__scopeId", "data-v-d2cde42f"]]), Dt = yr({
|
|
91
91
|
currentId: null,
|
|
92
92
|
dragId: null,
|
|
93
93
|
pos: null,
|
|
94
94
|
isMobile: I0() === "mobile"
|
|
95
|
-
}), l0 = {}, K0 =
|
|
96
|
-
function
|
|
95
|
+
}), l0 = {}, K0 = Er();
|
|
96
|
+
function oa(a) {
|
|
97
97
|
return a && a.uuid ? document.getElementById(a.uuid) : null;
|
|
98
98
|
}
|
|
99
99
|
function Ht(a, i = !1) {
|
|
100
|
-
const y =
|
|
100
|
+
const y = oa(a), x = ".node-text";
|
|
101
101
|
if (!y)
|
|
102
102
|
return null;
|
|
103
103
|
if (i) {
|
|
@@ -139,11 +139,11 @@ function $t(a, i = 0, y = !1) {
|
|
|
139
139
|
console.error("Error setting focus position:", V);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function la(a) {
|
|
143
143
|
const i = a.getBoundingClientRect();
|
|
144
144
|
return i.top >= 0 && i.left >= 0 && i.bottom <= (window.innerHeight || document.documentElement.clientHeight) && i.right <= (window.innerWidth || document.documentElement.clientWidth);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function lr(a = !0) {
|
|
147
147
|
const i = document.querySelector(".record-tree-options");
|
|
148
148
|
if (!i)
|
|
149
149
|
return;
|
|
@@ -151,7 +151,7 @@ function or(a = !0) {
|
|
|
151
151
|
window.visualViewport.height < y && (i.style.display = "none", setTimeout(() => {
|
|
152
152
|
if (i.style.display = "", a) {
|
|
153
153
|
const m = Dt.currentId, V = Ht({ uuid: m });
|
|
154
|
-
|
|
154
|
+
la(V) || V.scrollIntoView({
|
|
155
155
|
behavior: "smooth",
|
|
156
156
|
block: "center"
|
|
157
157
|
});
|
|
@@ -162,19 +162,19 @@ function or(a = !0) {
|
|
|
162
162
|
window.removeEventListener("resize", x);
|
|
163
163
|
}, 500);
|
|
164
164
|
}
|
|
165
|
-
const
|
|
165
|
+
const ua = ["contenteditable"], da = {
|
|
166
166
|
key: 0,
|
|
167
167
|
class: "holder holder-left",
|
|
168
168
|
contenteditable: "true",
|
|
169
169
|
tabindex: "-1"
|
|
170
|
-
},
|
|
170
|
+
}, ca = {
|
|
171
171
|
class: "node-element",
|
|
172
172
|
contenteditable: "false"
|
|
173
|
-
},
|
|
173
|
+
}, fa = ["src", "width", "height"], ha = ["src"], va = ["src", "width", "height", "poster"], ma = {
|
|
174
174
|
key: 3,
|
|
175
175
|
contenteditable: !1,
|
|
176
176
|
class: "node-file-wrap"
|
|
177
|
-
},
|
|
177
|
+
}, _a = { class: "node-file-left" }, pa = { class: "node-file-right" }, ba = ["href", "download"], wa = {
|
|
178
178
|
__name: "media",
|
|
179
179
|
props: {
|
|
180
180
|
readOnly: {
|
|
@@ -192,7 +192,7 @@ const da = ["contenteditable"], ca = {
|
|
|
192
192
|
},
|
|
193
193
|
emits: ["remove", "change", "keydown", "focus"],
|
|
194
194
|
setup(a, { expose: i, emit: y }) {
|
|
195
|
-
const x = Dt.isMobile, N = y, m = a, V = zt(), A = zt(), ee = zt(),
|
|
195
|
+
const x = Dt.isMobile, N = y, m = a, V = zt(), A = zt(), ee = zt(), ue = zt(), pe = zt();
|
|
196
196
|
i({
|
|
197
197
|
focus: () => {
|
|
198
198
|
V.value.focus();
|
|
@@ -219,8 +219,8 @@ const da = ["contenteditable"], ca = {
|
|
|
219
219
|
function j() {
|
|
220
220
|
N("remove");
|
|
221
221
|
}
|
|
222
|
-
function
|
|
223
|
-
if (ie.currentTarget !==
|
|
222
|
+
function le(ie) {
|
|
223
|
+
if (ie.currentTarget !== ue.value)
|
|
224
224
|
return;
|
|
225
225
|
const _e = ee.value;
|
|
226
226
|
_e.requestFullscreen ? _e.requestFullscreen() : _e.webkitRequestFullscreen ? _e.webkitRequestFullscreen() : _e.msRequestFullscreen && _e.msRequestFullscreen();
|
|
@@ -266,10 +266,10 @@ const da = ["contenteditable"], ca = {
|
|
|
266
266
|
}, [
|
|
267
267
|
Xe("div", {
|
|
268
268
|
contenteditable: !1,
|
|
269
|
-
class:
|
|
269
|
+
class: Ot(`node-complex node-${a.data.type}`)
|
|
270
270
|
}, [
|
|
271
|
-
a.readOnly ? Mt("", !0) : (et(), nt("span",
|
|
272
|
-
Xe("div",
|
|
271
|
+
a.readOnly ? Mt("", !0) : (et(), nt("span", da)),
|
|
272
|
+
Xe("div", ca, [
|
|
273
273
|
a.data.type === "image" ? (et(), nt("img", {
|
|
274
274
|
key: 0,
|
|
275
275
|
ref_key: "resource",
|
|
@@ -277,7 +277,7 @@ const da = ["contenteditable"], ca = {
|
|
|
277
277
|
src: B(a.data.content),
|
|
278
278
|
width: a.data.size ? a.data.size.width : 80,
|
|
279
279
|
height: a.data.size ? a.data.size.height : 80
|
|
280
|
-
}, null, 8,
|
|
280
|
+
}, null, 8, fa)) : Mt("", !0),
|
|
281
281
|
a.data.type === "audio" ? (et(), nt("audio", {
|
|
282
282
|
key: 1,
|
|
283
283
|
ref_key: "resource",
|
|
@@ -285,7 +285,7 @@ const da = ["contenteditable"], ca = {
|
|
|
285
285
|
src: B(a.data.content),
|
|
286
286
|
controls: "",
|
|
287
287
|
width: "300"
|
|
288
|
-
}, null, 8,
|
|
288
|
+
}, null, 8, ha)) : Mt("", !0),
|
|
289
289
|
a.data.type === "video" ? (et(), nt("video", {
|
|
290
290
|
key: 2,
|
|
291
291
|
ref_key: "resource",
|
|
@@ -295,18 +295,18 @@ const da = ["contenteditable"], ca = {
|
|
|
295
295
|
width: a.data.size ? a.data.size.width : 300,
|
|
296
296
|
height: a.data.size ? a.data.size.width : 300,
|
|
297
297
|
poster: Et(x) ? "data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=" : null
|
|
298
|
-
}, null, 8,
|
|
299
|
-
a.data.type === "file" ? (et(), nt("div",
|
|
300
|
-
Xe("div",
|
|
301
|
-
Xe("h6", null, o0(Et(
|
|
302
|
-
Xe("p", null, o0(Et(
|
|
298
|
+
}, null, 8, va)) : Mt("", !0),
|
|
299
|
+
a.data.type === "file" ? (et(), nt("div", ma, [
|
|
300
|
+
Xe("div", _a, [
|
|
301
|
+
Xe("h6", null, o0(Et(Cr)(a.data.name, 20)), 1),
|
|
302
|
+
Xe("p", null, o0(Et(Ar)(a.data.size)), 1)
|
|
303
303
|
]),
|
|
304
|
-
Xe("div",
|
|
304
|
+
Xe("div", pa, [
|
|
305
305
|
Xe("a", {
|
|
306
306
|
href: B(a.data.content),
|
|
307
307
|
download: a.data.name,
|
|
308
308
|
tabindex: "-1"
|
|
309
|
-
}, "下载", 8,
|
|
309
|
+
}, "下载", 8, ba)
|
|
310
310
|
])
|
|
311
311
|
])) : Mt("", !0),
|
|
312
312
|
!a.readOnly && !Et(x) && (a.data.type === "image" || a.data.type === "video") ? (et(), nt("div", {
|
|
@@ -326,8 +326,8 @@ const da = ["contenteditable"], ca = {
|
|
|
326
326
|
key: 5,
|
|
327
327
|
class: "fullscreen-handle",
|
|
328
328
|
ref_key: "fullscreenBox",
|
|
329
|
-
ref:
|
|
330
|
-
onMousedown: kt(
|
|
329
|
+
ref: ue,
|
|
330
|
+
onMousedown: kt(le, ["prevent", "stop"])
|
|
331
331
|
}, [
|
|
332
332
|
yt(Et(Jt), {
|
|
333
333
|
src: Et(qt).fullscreen,
|
|
@@ -350,9 +350,9 @@ const da = ["contenteditable"], ca = {
|
|
|
350
350
|
tabindex: "-1"
|
|
351
351
|
}, null, 512))
|
|
352
352
|
], 2)
|
|
353
|
-
], 40,
|
|
353
|
+
], 40, ua));
|
|
354
354
|
}
|
|
355
|
-
},
|
|
355
|
+
}, ga = /* @__PURE__ */ Gt(wa, [["__scopeId", "data-v-b1f6b6b5"]]), ya = Nr.create({
|
|
356
356
|
name: "textStyle",
|
|
357
357
|
addOptions() {
|
|
358
358
|
return {
|
|
@@ -368,17 +368,17 @@ const da = ["contenteditable"], ca = {
|
|
|
368
368
|
];
|
|
369
369
|
},
|
|
370
370
|
renderHTML({ HTMLAttributes: a }) {
|
|
371
|
-
return ["span",
|
|
371
|
+
return ["span", Hr(this.options.HTMLAttributes, a), 0];
|
|
372
372
|
},
|
|
373
373
|
addCommands() {
|
|
374
374
|
return {
|
|
375
375
|
removeEmptyTextStyle: () => ({ state: a, commands: i }) => {
|
|
376
|
-
const y =
|
|
376
|
+
const y = Yr(a, this.type);
|
|
377
377
|
return Object.entries(y).some(([, N]) => !!N) ? !0 : i.unsetMark(this.name);
|
|
378
378
|
}
|
|
379
379
|
};
|
|
380
380
|
}
|
|
381
|
-
}),
|
|
381
|
+
}), xa = Pr.create({
|
|
382
382
|
name: "color",
|
|
383
383
|
addOptions() {
|
|
384
384
|
return {
|
|
@@ -410,7 +410,7 @@ const da = ["contenteditable"], ca = {
|
|
|
410
410
|
unsetColor: () => ({ chain: a }) => a().setMark("textStyle", { color: null }).removeEmptyTextStyle().run()
|
|
411
411
|
};
|
|
412
412
|
}
|
|
413
|
-
}),
|
|
413
|
+
}), ur = "date-popover", E0 = {
|
|
414
414
|
现在: () => at().format("YYYY-MM-DD HH:mm:ss"),
|
|
415
415
|
前天: () => at().subtract(2, "day").format("YYYY-MM-DD"),
|
|
416
416
|
前日: () => at().subtract(2, "day").format("YYYY-MM-DD"),
|
|
@@ -458,25 +458,25 @@ const da = ["contenteditable"], ca = {
|
|
|
458
458
|
上上周今天: () => at().subtract(2, "week").format("YYYY-MM-DD"),
|
|
459
459
|
下下个月: () => at().add(2, "month").format("YYYY-MM"),
|
|
460
460
|
下下周今天: () => at().add(2, "week").format("YYYY-MM-DD")
|
|
461
|
-
},
|
|
462
|
-
|
|
463
|
-
const
|
|
464
|
-
document.querySelectorAll(`.${
|
|
461
|
+
}, dr = Object.keys(E0);
|
|
462
|
+
dr.sort((a, i) => i.length - a.length);
|
|
463
|
+
const cr = (a) => a.tagName.toLowerCase() === "mark", O0 = () => {
|
|
464
|
+
document.querySelectorAll(`.${ur}`).forEach((i) => {
|
|
465
465
|
i.remove();
|
|
466
466
|
});
|
|
467
467
|
}, Z0 = (a) => {
|
|
468
|
-
if (
|
|
468
|
+
if (cr(a.target)) {
|
|
469
469
|
O0();
|
|
470
470
|
const i = a.target.innerText;
|
|
471
471
|
if (E0[i]) {
|
|
472
472
|
const y = document.createElement("div");
|
|
473
|
-
y.classList.add(
|
|
473
|
+
y.classList.add(ur);
|
|
474
474
|
const { top: x, left: N, width: m } = a.target.getBoundingClientRect();
|
|
475
475
|
y.innerText = E0[i](), y.style.top = `${x}px`, y.style.left = `${N + parseInt(m / 2)}px`, document.body.appendChild(y);
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
478
|
}, Q0 = (a) => {
|
|
479
|
-
|
|
479
|
+
cr(a.target) && O0();
|
|
480
480
|
}, f0 = {
|
|
481
481
|
install(a) {
|
|
482
482
|
a.addEventListener("mouseover", Z0), a.addEventListener("mouseout", Q0);
|
|
@@ -485,13 +485,13 @@ const dr = (a) => a.tagName.toLowerCase() === "mark", O0 = () => {
|
|
|
485
485
|
a && (a.removeEventListener("mouseover", Z0), a.removeEventListener("mouseout", Q0));
|
|
486
486
|
},
|
|
487
487
|
getHtml(a) {
|
|
488
|
-
const i = new RegExp(`(${
|
|
488
|
+
const i = new RegExp(`(${dr.join("|")})`, "g");
|
|
489
489
|
return a.replace(/<\/?mark>/g, "").replace(i, "<mark>$1</mark>");
|
|
490
490
|
},
|
|
491
491
|
clear() {
|
|
492
492
|
O0();
|
|
493
493
|
}
|
|
494
|
-
},
|
|
494
|
+
}, Sa = {
|
|
495
495
|
__name: "text",
|
|
496
496
|
props: {
|
|
497
497
|
content: {
|
|
@@ -513,22 +513,22 @@ const dr = (a) => a.tagName.toLowerCase() === "mark", O0 = () => {
|
|
|
513
513
|
},
|
|
514
514
|
emits: ["change", "keydown", "focus", "blur"],
|
|
515
515
|
setup(a, { expose: i, emit: y }) {
|
|
516
|
-
const x = zt(), N = a, m = y, V = zt(!1), A =
|
|
516
|
+
const x = zt(), N = a, m = y, V = zt(!1), A = Dr({
|
|
517
517
|
content: N.content,
|
|
518
518
|
editable: !N.readOnly,
|
|
519
519
|
extensions: [
|
|
520
|
-
|
|
520
|
+
Vr.configure({
|
|
521
521
|
hardBreak: !1,
|
|
522
522
|
bulletList: !1,
|
|
523
523
|
listItem: !1,
|
|
524
524
|
orderedList: !1
|
|
525
525
|
}),
|
|
526
|
+
Ir,
|
|
526
527
|
Or,
|
|
527
|
-
|
|
528
|
+
ya,
|
|
528
529
|
xa,
|
|
529
|
-
Sa,
|
|
530
530
|
...N.placeholder ? [
|
|
531
|
-
|
|
531
|
+
Fr.configure({
|
|
532
532
|
placeholder: N.placeholder
|
|
533
533
|
})
|
|
534
534
|
] : []
|
|
@@ -537,36 +537,36 @@ const dr = (a) => a.tagName.toLowerCase() === "mark", O0 = () => {
|
|
|
537
537
|
attributes: {
|
|
538
538
|
class: ["node-text"]
|
|
539
539
|
},
|
|
540
|
-
handleKeyDown(j,
|
|
540
|
+
handleKeyDown(j, le) {
|
|
541
541
|
const { selection: Be, doc: B } = j.state, { from: ie, to: _e } = Be, Fe = B.content.size - 1, Ue = ie === 1 && _e === 1, Ge = ie === Fe && _e === Fe;
|
|
542
542
|
return Dt.pos = ie, // 回车,缩进,光标上下移动
|
|
543
|
-
["Enter", "Tab", "ArrowUp", "ArrowDown"].includes(
|
|
544
|
-
["Backspace", "ArrowLeft"].includes(
|
|
545
|
-
["ArrowRight"].includes(
|
|
543
|
+
["Enter", "Tab", "ArrowUp", "ArrowDown"].includes(le.key) || // 行首生效: 删除,和光标左移到上一行仅在
|
|
544
|
+
["Backspace", "ArrowLeft"].includes(le.key) && Ue || // 行尾生效:光标右移到下一行
|
|
545
|
+
["ArrowRight"].includes(le.key) && Ge ? (m("keydown", le), !0) : !1;
|
|
546
546
|
}
|
|
547
547
|
},
|
|
548
548
|
onUpdate({ editor: j }) {
|
|
549
|
-
const
|
|
550
|
-
Be !==
|
|
549
|
+
const le = j.getHTML(), Be = f0.getHtml(le);
|
|
550
|
+
Be !== le && j.commands.setContent(Be, !1), V.value || ee();
|
|
551
551
|
},
|
|
552
552
|
onFocus({ editor: j }) {
|
|
553
|
-
const
|
|
554
|
-
typeof
|
|
553
|
+
const le = Dt.pos;
|
|
554
|
+
typeof le == "number" && j.commands.setTextSelection(le || 0), m("focus"), f0.clear();
|
|
555
555
|
},
|
|
556
556
|
onBlur({ editor: j }) {
|
|
557
557
|
m("blur", j.getHTML());
|
|
558
558
|
}
|
|
559
559
|
}), ee = () => {
|
|
560
560
|
m("change", A.value.getHTML());
|
|
561
|
-
},
|
|
561
|
+
}, ue = () => {
|
|
562
562
|
V.value = !1, ee();
|
|
563
563
|
}, pe = (j = "end") => {
|
|
564
564
|
A.value && A.value.commands.focus(
|
|
565
565
|
typeof j == "object" ? j.from : j
|
|
566
566
|
);
|
|
567
567
|
}, ke = () => {
|
|
568
|
-
const { state: j } = A.value, { from:
|
|
569
|
-
return
|
|
568
|
+
const { state: j } = A.value, { from: le, to: Be } = j.selection;
|
|
569
|
+
return le === Be ? le : { from: le, to: Be };
|
|
570
570
|
};
|
|
571
571
|
X0(
|
|
572
572
|
() => N.content,
|
|
@@ -578,17 +578,17 @@ const dr = (a) => a.tagName.toLowerCase() === "mark", O0 = () => {
|
|
|
578
578
|
() => {
|
|
579
579
|
A != null && A.value && A.value.setEditable(!N.readOnly);
|
|
580
580
|
}
|
|
581
|
-
),
|
|
581
|
+
), xr(() => {
|
|
582
582
|
const j = x.value.rootEl;
|
|
583
583
|
j.addEventListener("dblclick", () => {
|
|
584
584
|
A.value.commands.selectAll();
|
|
585
585
|
}), f0.install(j);
|
|
586
|
-
}),
|
|
586
|
+
}), Sr(() => {
|
|
587
587
|
A.value.destroy(), f0.uninstall(x.value.rootEl);
|
|
588
588
|
});
|
|
589
589
|
function He(j) {
|
|
590
|
-
const
|
|
591
|
-
A.value.commands.selectAll(), typeof j == "function" && j(), pe(
|
|
590
|
+
const le = ke();
|
|
591
|
+
A.value.commands.selectAll(), typeof j == "function" && j(), pe(le), A.value.commands.setTextSelection(le);
|
|
592
592
|
}
|
|
593
593
|
function Se() {
|
|
594
594
|
He(() => {
|
|
@@ -604,15 +604,15 @@ const dr = (a) => a.tagName.toLowerCase() === "mark", O0 = () => {
|
|
|
604
604
|
focus: pe,
|
|
605
605
|
bold: Se,
|
|
606
606
|
color: P
|
|
607
|
-
}), (j,
|
|
607
|
+
}), (j, le) => (et(), Vt(Et(Lr), {
|
|
608
608
|
editor: Et(A),
|
|
609
609
|
ref_key: "container",
|
|
610
610
|
ref: x,
|
|
611
|
-
onCompositionstart:
|
|
612
|
-
onCompositionend: kt(
|
|
611
|
+
onCompositionstart: le[0] || (le[0] = kt((Be) => V.value = !0, ["stop"])),
|
|
612
|
+
onCompositionend: kt(ue, ["stop"])
|
|
613
613
|
}, null, 8, ["editor"]));
|
|
614
614
|
}
|
|
615
|
-
},
|
|
615
|
+
}, fr = {
|
|
616
616
|
__name: "index",
|
|
617
617
|
props: {
|
|
618
618
|
data: {
|
|
@@ -642,19 +642,19 @@ const dr = (a) => a.tagName.toLowerCase() === "mark", O0 = () => {
|
|
|
642
642
|
function ee(Se) {
|
|
643
643
|
V("focus", Se);
|
|
644
644
|
}
|
|
645
|
-
function
|
|
645
|
+
function ue(Se) {
|
|
646
646
|
const P = {
|
|
647
647
|
...m.data,
|
|
648
648
|
...typeof Se == "string" ? { text: Se } : Se
|
|
649
|
-
}, j = (m.tags || []).map((
|
|
649
|
+
}, j = (m.tags || []).map((le) => le.name);
|
|
650
650
|
if (!j.length || P.type)
|
|
651
651
|
V("change", P);
|
|
652
652
|
else {
|
|
653
|
-
const
|
|
654
|
-
let Be =
|
|
653
|
+
const le = P.text.replace(/^<p>/, "").replace(/<\/p>$/, "");
|
|
654
|
+
let Be = le;
|
|
655
655
|
j.forEach((B) => {
|
|
656
656
|
const ie = new RegExp(`^(${B}[::])`), _e = new RegExp(`([::]${B})$`);
|
|
657
|
-
if (ie.test(
|
|
657
|
+
if (ie.test(le) || _e.test(le)) {
|
|
658
658
|
Be = Be.replace(ie, "").replace(_e, "");
|
|
659
659
|
const Fe = m.tags.find((Ue) => Ue.name === B);
|
|
660
660
|
P.tag_id = Fe.created_at, P.text = Be && `<p>${Be}</p>`;
|
|
@@ -669,37 +669,37 @@ const dr = (a) => a.tagName.toLowerCase() === "mark", O0 = () => {
|
|
|
669
669
|
return (Se || "").replace("contenteditable", "temp");
|
|
670
670
|
}
|
|
671
671
|
function He(Se, ...P) {
|
|
672
|
-
var j,
|
|
673
|
-
m.data.type ? (j = N.value) != null && j[Se] && ((
|
|
672
|
+
var j, le, Be, B;
|
|
673
|
+
m.data.type ? (j = N.value) != null && j[Se] && ((le = N.value) == null || le[Se](...P)) : (Be = x.value) != null && Be[Se] && ((B = x.value) == null || B[Se](...P));
|
|
674
674
|
}
|
|
675
675
|
return i({
|
|
676
676
|
focus,
|
|
677
677
|
dispatch: He
|
|
678
|
-
}), (Se, P) => a.data.type ? (et(), Vt(Et(
|
|
678
|
+
}), (Se, P) => a.data.type ? (et(), Vt(Et(ga), {
|
|
679
679
|
key: 0,
|
|
680
680
|
ref_key: "mediaEditor",
|
|
681
681
|
ref: N,
|
|
682
682
|
data: a.data,
|
|
683
683
|
readOnly: a.readOnly,
|
|
684
|
-
onChange:
|
|
684
|
+
onChange: ue,
|
|
685
685
|
onKeydown: A,
|
|
686
686
|
onFocus: ee,
|
|
687
687
|
onRemove: pe
|
|
688
|
-
}, null, 8, ["data", "readOnly"])) : (et(), Vt(Et(
|
|
688
|
+
}, null, 8, ["data", "readOnly"])) : (et(), Vt(Et(Sa), {
|
|
689
689
|
key: 1,
|
|
690
690
|
ref_key: "textEditor",
|
|
691
691
|
ref: x,
|
|
692
692
|
content: a.readOnly ? ke(a.data.text) : a.data.text,
|
|
693
693
|
readOnly: a.readOnly,
|
|
694
694
|
placeholder: a.placeholder,
|
|
695
|
-
onChange:
|
|
695
|
+
onChange: ue,
|
|
696
696
|
onKeydown: A,
|
|
697
697
|
onFocus: ee
|
|
698
698
|
}, null, 8, ["content", "readOnly", "placeholder"]));
|
|
699
699
|
}
|
|
700
|
-
},
|
|
700
|
+
}, Ta = {
|
|
701
701
|
components: {
|
|
702
|
-
Editor:
|
|
702
|
+
Editor: fr
|
|
703
703
|
},
|
|
704
704
|
props: {
|
|
705
705
|
node: {
|
|
@@ -744,7 +744,7 @@ const dr = (a) => a.tagName.toLowerCase() === "mark", O0 = () => {
|
|
|
744
744
|
}
|
|
745
745
|
},
|
|
746
746
|
methods: {
|
|
747
|
-
getTagStyleById:
|
|
747
|
+
getTagStyleById: ir,
|
|
748
748
|
handleMouseDown(a) {
|
|
749
749
|
this.isLongPress = !1, this.pressTimer && clearTimeout(this.pressTimer), this.pressTimer = setTimeout(() => {
|
|
750
750
|
this.isLongPress = !0, this.handleLongPress(a);
|
|
@@ -770,7 +770,7 @@ const dr = (a) => a.tagName.toLowerCase() === "mark", O0 = () => {
|
|
|
770
770
|
},
|
|
771
771
|
handleFocus() {
|
|
772
772
|
const a = this.node;
|
|
773
|
-
this.store.currentId = a.uuid, this.store.isMobile &&
|
|
773
|
+
this.store.currentId = a.uuid, this.store.isMobile && lr();
|
|
774
774
|
},
|
|
775
775
|
handleKeydown(a, ...i) {
|
|
776
776
|
switch (a.key) {
|
|
@@ -844,13 +844,13 @@ const dr = (a) => a.tagName.toLowerCase() === "mark", O0 = () => {
|
|
|
844
844
|
this.$emit("change", a);
|
|
845
845
|
}
|
|
846
846
|
}
|
|
847
|
-
},
|
|
847
|
+
}, Ma = {
|
|
848
848
|
class: "node-div",
|
|
849
849
|
ref: "row"
|
|
850
850
|
};
|
|
851
|
-
function
|
|
851
|
+
function Ra(a, i, y, x, N, m) {
|
|
852
852
|
const V = Bt("Editor");
|
|
853
|
-
return et(), nt("div",
|
|
853
|
+
return et(), nt("div", Ma, [
|
|
854
854
|
Xe("span", {
|
|
855
855
|
class: "node-icon",
|
|
856
856
|
onClick: i[0] || (i[0] = kt(() => {
|
|
@@ -866,7 +866,7 @@ function Ca(a, i, y, x, N, m) {
|
|
|
866
866
|
], 32),
|
|
867
867
|
yt(V, {
|
|
868
868
|
ref: "editor",
|
|
869
|
-
class:
|
|
869
|
+
class: Ot({
|
|
870
870
|
"node-finished": m.finished
|
|
871
871
|
}),
|
|
872
872
|
readOnly: y.readOnly,
|
|
@@ -879,13 +879,13 @@ function Ca(a, i, y, x, N, m) {
|
|
|
879
879
|
}, null, 8, ["class", "readOnly", "data", "tags", "onChange", "onKeydown", "onFocus", "onRemove"])
|
|
880
880
|
], 512);
|
|
881
881
|
}
|
|
882
|
-
const
|
|
883
|
-
function
|
|
882
|
+
const Ca = /* @__PURE__ */ Gt(Ta, [["render", Ra], ["__scopeId", "data-v-4cd00a01"]]);
|
|
883
|
+
function hr(a) {
|
|
884
884
|
var V;
|
|
885
885
|
let y = (((V = a.target) == null ? void 0 : V.querySelector(".node-div")) || a.target).getBoundingClientRect(), x = a.clientY, N = y.top + y.height / 3, m = y.top + y.height / 3 * 2;
|
|
886
886
|
return x < N ? "top" : x < m ? "center" : "bottom";
|
|
887
887
|
}
|
|
888
|
-
function
|
|
888
|
+
function Aa(a) {
|
|
889
889
|
return /<(img|audio|video)/.test(a.text) || a.type;
|
|
890
890
|
}
|
|
891
891
|
function D0() {
|
|
@@ -893,7 +893,7 @@ function D0() {
|
|
|
893
893
|
document.querySelectorAll(`.${a}`).forEach((i) => i.classList.remove(a));
|
|
894
894
|
});
|
|
895
895
|
}
|
|
896
|
-
function
|
|
896
|
+
function ka(a, i) {
|
|
897
897
|
var V;
|
|
898
898
|
const y = a.currentTarget, x = Dt.dragId ? document.getElementById(Dt.dragId) : null;
|
|
899
899
|
if (!y || Dt.dragId === i.uuid || x != null && x.querySelector(`[id="${i.uuid}"]`)) {
|
|
@@ -901,10 +901,10 @@ function Ba(a, i) {
|
|
|
901
901
|
return;
|
|
902
902
|
}
|
|
903
903
|
D0();
|
|
904
|
-
const N =
|
|
904
|
+
const N = hr(a), m = (V = y.querySelector(".node-div")) == null ? void 0 : V.classList;
|
|
905
905
|
m && m.add(`drag-over-${N}`);
|
|
906
906
|
}
|
|
907
|
-
function
|
|
907
|
+
function Ba(a) {
|
|
908
908
|
const y = new DOMParser().parseFromString(a, "text/html"), x = y.querySelector("img"), N = y.querySelector("video"), m = y.querySelector("audio");
|
|
909
909
|
return x ? {
|
|
910
910
|
type: "image",
|
|
@@ -923,9 +923,9 @@ function L0(a, i, y = !0) {
|
|
|
923
923
|
(N) => N.uuid === a.uuid || (y ? L0(a, N) : !1)
|
|
924
924
|
) : !1;
|
|
925
925
|
}
|
|
926
|
-
const
|
|
926
|
+
const Ea = {
|
|
927
927
|
name: "tree-editor",
|
|
928
|
-
components: { Node:
|
|
928
|
+
components: { Node: Ca },
|
|
929
929
|
props: {
|
|
930
930
|
nodes: {
|
|
931
931
|
type: Array,
|
|
@@ -977,7 +977,7 @@ const Da = {
|
|
|
977
977
|
}
|
|
978
978
|
},
|
|
979
979
|
methods: {
|
|
980
|
-
handleDragOver:
|
|
980
|
+
handleDragOver: ka,
|
|
981
981
|
handleDragLeave: D0,
|
|
982
982
|
handleDragStart(a, i) {
|
|
983
983
|
a.currentTarget.classList.add("dragging"), a.dataTransfer.setData("dragNode", JSON.stringify(i)), K0.on("dragEnd", () => {
|
|
@@ -995,7 +995,7 @@ const Da = {
|
|
|
995
995
|
this.addFiles(y, i);
|
|
996
996
|
else {
|
|
997
997
|
let x = a.dataTransfer.getData("dragNode");
|
|
998
|
-
const N =
|
|
998
|
+
const N = hr(a);
|
|
999
999
|
try {
|
|
1000
1000
|
x = JSON.parse(x);
|
|
1001
1001
|
} catch {
|
|
@@ -1112,13 +1112,13 @@ const Da = {
|
|
|
1112
1112
|
if (a) {
|
|
1113
1113
|
const N = Array.from(a).slice(0, 5), m = (V) => {
|
|
1114
1114
|
const A = [...this.nodes];
|
|
1115
|
-
let ee = A.findIndex((
|
|
1116
|
-
V.forEach((
|
|
1117
|
-
!i.text && !i.content && pe === 0 ? (
|
|
1118
|
-
...
|
|
1115
|
+
let ee = A.findIndex((ue) => ue === i);
|
|
1116
|
+
V.forEach((ue, pe) => {
|
|
1117
|
+
!i.text && !i.content && pe === 0 ? (ue.uuid = i.uuid, A.splice(ee, 1, {
|
|
1118
|
+
...ue,
|
|
1119
1119
|
uuid: i.uuid,
|
|
1120
1120
|
children: i.children
|
|
1121
|
-
})) : A.splice(ee + 1 + y, 0,
|
|
1121
|
+
})) : A.splice(ee + 1 + y, 0, ue), ee++;
|
|
1122
1122
|
}), this.update(A);
|
|
1123
1123
|
};
|
|
1124
1124
|
this.$emit("fileUpload", N, m);
|
|
@@ -1175,8 +1175,8 @@ const Da = {
|
|
|
1175
1175
|
precheck() {
|
|
1176
1176
|
let a = !1;
|
|
1177
1177
|
this.nodes.forEach((i) => {
|
|
1178
|
-
if (i.uuid || (i.uuid = Yt(), a = !0),
|
|
1179
|
-
const y =
|
|
1178
|
+
if (i.uuid || (i.uuid = Yt(), a = !0), Aa(i) && !i.type) {
|
|
1179
|
+
const y = Ba(i.text);
|
|
1180
1180
|
y && (i.type = y.type, i.content = y.content), a = !0;
|
|
1181
1181
|
}
|
|
1182
1182
|
}), a ? this.update() : this.ensureStatus(this.nodes);
|
|
@@ -1202,27 +1202,27 @@ const Da = {
|
|
|
1202
1202
|
this.sublevel || console.log("=== nodes树更新 ==="), this.ensureStatus(a), this.$emit("change", [...a]);
|
|
1203
1203
|
}
|
|
1204
1204
|
}
|
|
1205
|
-
},
|
|
1205
|
+
}, Da = {
|
|
1206
1206
|
key: 0,
|
|
1207
|
-
class: /* @__PURE__ */
|
|
1207
|
+
class: /* @__PURE__ */ Ot({
|
|
1208
1208
|
"node-ul": !0,
|
|
1209
1209
|
readOnly: !0,
|
|
1210
1210
|
sublevel: !0
|
|
1211
1211
|
})
|
|
1212
|
-
},
|
|
1212
|
+
}, La = ["id"], Ia = {
|
|
1213
1213
|
key: 1,
|
|
1214
|
-
class: /* @__PURE__ */
|
|
1214
|
+
class: /* @__PURE__ */ Ot({
|
|
1215
1215
|
"node-ul": !0,
|
|
1216
1216
|
sublevel: !0
|
|
1217
1217
|
})
|
|
1218
|
-
},
|
|
1219
|
-
function
|
|
1218
|
+
}, Oa = ["id", "onDragstart", "onDragover", "onDragend", "onDrop", "onDragleave", "onPaste"];
|
|
1219
|
+
function Fa(a, i, y, x, N, m) {
|
|
1220
1220
|
const V = Bt("Node"), A = Bt("tree-editor");
|
|
1221
|
-
return y.readOnly ? (et(), nt("ul",
|
|
1221
|
+
return y.readOnly ? (et(), nt("ul", Da, [
|
|
1222
1222
|
(et(!0), nt(v0, null, m0(m.filterNodes(y.nodes), (ee) => (et(), nt("li", {
|
|
1223
1223
|
key: ee.uuid,
|
|
1224
1224
|
id: `${ee.uuid}`,
|
|
1225
|
-
class:
|
|
1225
|
+
class: Ot({
|
|
1226
1226
|
"node-li": !0,
|
|
1227
1227
|
collapsed: a.status[ee.uuid] ? a.status[ee.uuid].collapsed : !1,
|
|
1228
1228
|
"has-child": !!(ee.children || []).length
|
|
@@ -1239,25 +1239,25 @@ function Na(a, i, y, x, N, m) {
|
|
|
1239
1239
|
nodes: ee.children,
|
|
1240
1240
|
sublevel: !0
|
|
1241
1241
|
}, null, 8, ["nodes"])) : Mt("", !0)
|
|
1242
|
-
], 10,
|
|
1243
|
-
])) : (et(), nt("ul",
|
|
1242
|
+
], 10, La))), 128))
|
|
1243
|
+
])) : (et(), nt("ul", Ia, [
|
|
1244
1244
|
(et(!0), nt(v0, null, m0(m.filterNodes(y.nodes), (ee) => (et(), nt("li", {
|
|
1245
1245
|
key: ee.uuid,
|
|
1246
1246
|
id: `${ee.uuid}`,
|
|
1247
1247
|
ref_for: !0,
|
|
1248
1248
|
ref: "elements",
|
|
1249
1249
|
draggable: "true",
|
|
1250
|
-
class:
|
|
1250
|
+
class: Ot({
|
|
1251
1251
|
"node-li": !0,
|
|
1252
1252
|
collapsed: a.status[ee.uuid] ? a.status[ee.uuid].collapsed : !1,
|
|
1253
1253
|
"has-child": !!(ee.children || []).length
|
|
1254
1254
|
}),
|
|
1255
|
-
onDragstart: kt((
|
|
1256
|
-
onDragover: kt((
|
|
1257
|
-
onDragend: kt((
|
|
1258
|
-
onDrop: kt((
|
|
1259
|
-
onDragleave: kt((
|
|
1260
|
-
onPaste: kt((
|
|
1255
|
+
onDragstart: kt((ue) => m.handleDragStart(ue, ee), ["stop"]),
|
|
1256
|
+
onDragover: kt((ue) => m.handleDragOver(ue, ee), ["stop", "prevent"]),
|
|
1257
|
+
onDragend: kt((ue) => m.handleDragEnd(ue, ee), ["stop", "prevent"]),
|
|
1258
|
+
onDrop: kt((ue) => m.handleDrop(ue, ee), ["stop"]),
|
|
1259
|
+
onDragleave: kt((ue) => m.handleDragLeave(ue, ee), ["stop"]),
|
|
1260
|
+
onPaste: kt((ue) => m.handlePaste(ue, ee), ["stop"])
|
|
1261
1261
|
}, [
|
|
1262
1262
|
yt(V, {
|
|
1263
1263
|
node: ee,
|
|
@@ -1279,17 +1279,17 @@ function Na(a, i, y, x, N, m) {
|
|
|
1279
1279
|
hash: y.hash,
|
|
1280
1280
|
allowEmpty: !0,
|
|
1281
1281
|
sublevel: !0,
|
|
1282
|
-
onChange: (
|
|
1283
|
-
onFocusPrev: (
|
|
1284
|
-
onFocusNext: (
|
|
1285
|
-
onTransfer: (
|
|
1286
|
-
onFileUpload: i[0] || (i[0] = (...
|
|
1282
|
+
onChange: (ue) => m.handleChangeChildren(ee, ue),
|
|
1283
|
+
onFocusPrev: (ue) => m.toFocus(ee, ue),
|
|
1284
|
+
onFocusNext: (ue) => m.toNextFocus(ee, ue),
|
|
1285
|
+
onTransfer: (ue) => m.handleTransfer(ee, ue),
|
|
1286
|
+
onFileUpload: i[0] || (i[0] = (...ue) => a.$emit("fileUpload", ...ue)),
|
|
1287
1287
|
onDbEnter: m.handleDbEnter
|
|
1288
1288
|
}, null, 8, ["nodes", "tags", "enableDbEnter", "hash", "onChange", "onFocusPrev", "onFocusNext", "onTransfer", "onDbEnter"])) : Mt("", !0)
|
|
1289
|
-
], 42,
|
|
1289
|
+
], 42, Oa))), 128))
|
|
1290
1290
|
]));
|
|
1291
1291
|
}
|
|
1292
|
-
const
|
|
1292
|
+
const Na = /* @__PURE__ */ Gt(Ea, [["render", Fa], ["__scopeId", "data-v-1d25af83"]]), Ha = {
|
|
1293
1293
|
show: !0,
|
|
1294
1294
|
// tag总开关,false时取消tag所有功能
|
|
1295
1295
|
tagSize: 20,
|
|
@@ -1302,21 +1302,13 @@ const Ha = /* @__PURE__ */ Gt(Da, [["render", Na], ["__scopeId", "data-v-1d25af8
|
|
|
1302
1302
|
// 图标定位left值
|
|
1303
1303
|
tagT: "3px"
|
|
1304
1304
|
// 图标定位top值
|
|
1305
|
-
},
|
|
1305
|
+
}, Ya = {
|
|
1306
1306
|
name: "recordTree",
|
|
1307
1307
|
components: {
|
|
1308
1308
|
Popper: rr,
|
|
1309
|
-
Editor:
|
|
1309
|
+
Editor: fr
|
|
1310
1310
|
},
|
|
1311
1311
|
props: {
|
|
1312
|
-
title: {
|
|
1313
|
-
type: String,
|
|
1314
|
-
default: ""
|
|
1315
|
-
},
|
|
1316
|
-
tagId: {
|
|
1317
|
-
type: Number,
|
|
1318
|
-
default: 0
|
|
1319
|
-
},
|
|
1320
1312
|
readOnly: {
|
|
1321
1313
|
type: Boolean,
|
|
1322
1314
|
default: !1
|
|
@@ -1344,7 +1336,7 @@ const Ha = /* @__PURE__ */ Gt(Da, [["render", Na], ["__scopeId", "data-v-1d25af8
|
|
|
1344
1336
|
data() {
|
|
1345
1337
|
return {
|
|
1346
1338
|
timeout: null,
|
|
1347
|
-
tagConfig: { ...
|
|
1339
|
+
tagConfig: { ...Ha },
|
|
1348
1340
|
icon: qt,
|
|
1349
1341
|
isMobile: I0() === "mobile",
|
|
1350
1342
|
titleEmpty: !1,
|
|
@@ -1352,26 +1344,18 @@ const Ha = /* @__PURE__ */ Gt(Da, [["render", Na], ["__scopeId", "data-v-1d25af8
|
|
|
1352
1344
|
};
|
|
1353
1345
|
},
|
|
1354
1346
|
computed: {
|
|
1355
|
-
curTag() {
|
|
1356
|
-
var i;
|
|
1357
|
-
const a = this.tags.find((y) => y.created_at === this.tagId);
|
|
1358
|
-
return {
|
|
1359
|
-
...a,
|
|
1360
|
-
icon: a ? (i = kr(a.icon)) == null ? void 0 : i.value : ""
|
|
1361
|
-
};
|
|
1362
|
-
},
|
|
1363
1347
|
tagNames() {
|
|
1364
1348
|
return (this.tags || []).map((a) => a.name);
|
|
1365
1349
|
},
|
|
1366
1350
|
titleObj() {
|
|
1367
1351
|
try {
|
|
1368
|
-
const a = JSON.parse(this.title);
|
|
1352
|
+
const a = JSON.parse(this.note.title);
|
|
1369
1353
|
if (typeof a != "object")
|
|
1370
1354
|
throw new Error();
|
|
1371
1355
|
return a;
|
|
1372
1356
|
} catch {
|
|
1373
1357
|
return {
|
|
1374
|
-
text: this.title
|
|
1358
|
+
text: this.note.title
|
|
1375
1359
|
};
|
|
1376
1360
|
}
|
|
1377
1361
|
},
|
|
@@ -1381,7 +1365,7 @@ const Ha = /* @__PURE__ */ Gt(Da, [["render", Na], ["__scopeId", "data-v-1d25af8
|
|
|
1381
1365
|
}
|
|
1382
1366
|
},
|
|
1383
1367
|
watch: {
|
|
1384
|
-
title: {
|
|
1368
|
+
"note.title": {
|
|
1385
1369
|
handler(a) {
|
|
1386
1370
|
this.titleEmpty = !a;
|
|
1387
1371
|
},
|
|
@@ -1395,24 +1379,22 @@ const Ha = /* @__PURE__ */ Gt(Da, [["render", Na], ["__scopeId", "data-v-1d25af8
|
|
|
1395
1379
|
delete l0.tree_title;
|
|
1396
1380
|
},
|
|
1397
1381
|
methods: {
|
|
1398
|
-
getTagStyle:
|
|
1382
|
+
getTagStyle: kr,
|
|
1383
|
+
getTagStyleById: ir,
|
|
1399
1384
|
focus(a = "end") {
|
|
1400
1385
|
this.$refs.recordTitle.dispatch("focus", a);
|
|
1401
1386
|
},
|
|
1402
1387
|
// 根据svg的icon名找到svg实体
|
|
1403
1388
|
getSvgUrl(a) {
|
|
1404
|
-
const i =
|
|
1389
|
+
const i = Br.find((y) => y.name === a.icon);
|
|
1405
1390
|
return (i == null ? void 0 : i.value) || "";
|
|
1406
1391
|
},
|
|
1407
1392
|
// 选择tag图标
|
|
1408
1393
|
tagSelect(a) {
|
|
1409
|
-
this.$emit("tagChange",
|
|
1410
|
-
tag: a,
|
|
1411
|
-
tag_id: a.created_at
|
|
1412
|
-
});
|
|
1394
|
+
this.$emit("tagChange", +a.created_at);
|
|
1413
1395
|
},
|
|
1414
1396
|
handleTitleFocus() {
|
|
1415
|
-
Dt.currentId = "tree_title", this.isMobile &&
|
|
1397
|
+
Dt.currentId = "tree_title", this.isMobile && lr(!1);
|
|
1416
1398
|
},
|
|
1417
1399
|
handleChange(a) {
|
|
1418
1400
|
if (a.type)
|
|
@@ -1422,9 +1404,9 @@ const Ha = /* @__PURE__ */ Gt(Da, [["render", Na], ["__scopeId", "data-v-1d25af8
|
|
|
1422
1404
|
const i = k0(a.tag_id, this.tags);
|
|
1423
1405
|
this.tagSelect(i);
|
|
1424
1406
|
}
|
|
1425
|
-
|
|
1407
|
+
this.$nextTick(() => {
|
|
1426
1408
|
this.$emit("change", a.text);
|
|
1427
|
-
}
|
|
1409
|
+
});
|
|
1428
1410
|
}
|
|
1429
1411
|
},
|
|
1430
1412
|
handleRemove() {
|
|
@@ -1459,9 +1441,9 @@ const Ha = /* @__PURE__ */ Gt(Da, [["render", Na], ["__scopeId", "data-v-1d25af8
|
|
|
1459
1441
|
}
|
|
1460
1442
|
},
|
|
1461
1443
|
async uploadFile(a) {
|
|
1462
|
-
const i =
|
|
1444
|
+
const i = nr(a.type), y = URL.createObjectURL(a);
|
|
1463
1445
|
let x = {};
|
|
1464
|
-
switch ((i.mainType === "image" || i.mainType === "video") && (x = await
|
|
1446
|
+
switch ((i.mainType === "image" || i.mainType === "video") && (x = await sr(a, i.mainType)), i.mainType) {
|
|
1465
1447
|
case "image":
|
|
1466
1448
|
case "audio":
|
|
1467
1449
|
case "video":
|
|
@@ -1479,7 +1461,7 @@ const Ha = /* @__PURE__ */ Gt(Da, [["render", Na], ["__scopeId", "data-v-1d25af8
|
|
|
1479
1461
|
size: a.size
|
|
1480
1462
|
});
|
|
1481
1463
|
}
|
|
1482
|
-
|
|
1464
|
+
or.uploadFile([a], (N, m) => {
|
|
1483
1465
|
if (m) {
|
|
1484
1466
|
const V = m[0];
|
|
1485
1467
|
V.code === 0 && this.handleChange({
|
|
@@ -1490,11 +1472,11 @@ const Ha = /* @__PURE__ */ Gt(Da, [["render", Na], ["__scopeId", "data-v-1d25af8
|
|
|
1490
1472
|
});
|
|
1491
1473
|
}
|
|
1492
1474
|
}
|
|
1493
|
-
},
|
|
1494
|
-
function
|
|
1475
|
+
}, Pa = { class: "record-tree-title-bar" }, Va = ["onClick"];
|
|
1476
|
+
function Ua(a, i, y, x, N, m) {
|
|
1495
1477
|
const V = Bt("Popper"), A = Bt("Editor");
|
|
1496
|
-
return et(), nt("div",
|
|
1497
|
-
y.tags.length ? (et(), Vt(V, { key: 0 },
|
|
1478
|
+
return et(), nt("div", Pa, [
|
|
1479
|
+
y.tags.length ? (et(), Vt(V, { key: 0 }, Tr({
|
|
1498
1480
|
default: _0(() => [
|
|
1499
1481
|
Xe("span", {
|
|
1500
1482
|
class: "record-tree-popper-reference",
|
|
@@ -1503,7 +1485,7 @@ function za(a, i, y, x, N, m) {
|
|
|
1503
1485
|
left: N.tagConfig.tagL,
|
|
1504
1486
|
width: N.tagConfig.tagSize + "px",
|
|
1505
1487
|
height: N.tagConfig.tagSize + "px",
|
|
1506
|
-
...m.
|
|
1488
|
+
...m.getTagStyleById(y.note.tag_id, y.tags, y.note)
|
|
1507
1489
|
})
|
|
1508
1490
|
}, null, 4)
|
|
1509
1491
|
]),
|
|
@@ -1516,10 +1498,12 @@ function za(a, i, y, x, N, m) {
|
|
|
1516
1498
|
class: "record-tree-popper-content",
|
|
1517
1499
|
style: Xt({ width: N.tagConfig.popW, height: N.tagConfig.popH })
|
|
1518
1500
|
}, [
|
|
1519
|
-
(et(!0), nt(v0, null, m0(y.tags, (ee
|
|
1520
|
-
class: "record-tree-popper-content-item",
|
|
1521
|
-
|
|
1522
|
-
|
|
1501
|
+
(et(!0), nt(v0, null, m0(y.tags, (ee) => (et(), nt("span", {
|
|
1502
|
+
class: Ot(["record-tree-popper-content-item", {
|
|
1503
|
+
active: y.note.tag_id === ee.created_at
|
|
1504
|
+
}]),
|
|
1505
|
+
key: ee.created_at,
|
|
1506
|
+
onClick: (ue) => m.tagSelect(ee)
|
|
1523
1507
|
}, [
|
|
1524
1508
|
Xe("span", {
|
|
1525
1509
|
class: "record-tree-empty-icon",
|
|
@@ -1529,7 +1513,7 @@ function za(a, i, y, x, N, m) {
|
|
|
1529
1513
|
...m.getTagStyle(ee)
|
|
1530
1514
|
})
|
|
1531
1515
|
}, null, 4)
|
|
1532
|
-
],
|
|
1516
|
+
], 10, Va))), 128))
|
|
1533
1517
|
], 4)
|
|
1534
1518
|
]),
|
|
1535
1519
|
key: "0"
|
|
@@ -1538,7 +1522,7 @@ function za(a, i, y, x, N, m) {
|
|
|
1538
1522
|
yt(A, {
|
|
1539
1523
|
id: "tree_title",
|
|
1540
1524
|
ref: "recordTitle",
|
|
1541
|
-
class:
|
|
1525
|
+
class: Ot(["record-tree-title", {
|
|
1542
1526
|
"record-tree-title-finished": m.noteFinished
|
|
1543
1527
|
}]),
|
|
1544
1528
|
placeholder: "请输入标题",
|
|
@@ -1555,12 +1539,12 @@ function za(a, i, y, x, N, m) {
|
|
|
1555
1539
|
}, null, 8, ["class", "readOnly", "data", "tags", "onChange", "onRemove", "onFocus", "onPaste", "onKeydown"])
|
|
1556
1540
|
]);
|
|
1557
1541
|
}
|
|
1558
|
-
const
|
|
1542
|
+
const za = /* @__PURE__ */ Gt(Ya, [["render", Ua]]);
|
|
1559
1543
|
var dt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1560
1544
|
function F0(a) {
|
|
1561
1545
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
1562
1546
|
}
|
|
1563
|
-
function
|
|
1547
|
+
function qa(a) {
|
|
1564
1548
|
if (a.__esModule)
|
|
1565
1549
|
return a;
|
|
1566
1550
|
var i = a.default;
|
|
@@ -1581,15 +1565,15 @@ function Ga(a) {
|
|
|
1581
1565
|
});
|
|
1582
1566
|
}), y;
|
|
1583
1567
|
}
|
|
1584
|
-
var
|
|
1585
|
-
function
|
|
1568
|
+
var vr = { exports: {} };
|
|
1569
|
+
function Ga(a) {
|
|
1586
1570
|
throw new Error('Could not dynamically require "' + a + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
1587
1571
|
}
|
|
1588
1572
|
var M0 = { exports: {} };
|
|
1589
|
-
const
|
|
1573
|
+
const ja = {}, Wa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1590
1574
|
__proto__: null,
|
|
1591
|
-
default:
|
|
1592
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1575
|
+
default: ja
|
|
1576
|
+
}, Symbol.toStringTag, { value: "Module" })), Xa = /* @__PURE__ */ qa(Wa);
|
|
1593
1577
|
var $0;
|
|
1594
1578
|
function p0() {
|
|
1595
1579
|
return $0 || ($0 = 1, function(a, i) {
|
|
@@ -1598,9 +1582,9 @@ function p0() {
|
|
|
1598
1582
|
})(dt, function() {
|
|
1599
1583
|
var y = y || function(x, N) {
|
|
1600
1584
|
var m;
|
|
1601
|
-
if (typeof window < "u" && window.crypto && (m = window.crypto), typeof self < "u" && self.crypto && (m = self.crypto), typeof globalThis < "u" && globalThis.crypto && (m = globalThis.crypto), !m && typeof window < "u" && window.msCrypto && (m = window.msCrypto), !m && typeof dt < "u" && dt.crypto && (m = dt.crypto), !m && typeof
|
|
1585
|
+
if (typeof window < "u" && window.crypto && (m = window.crypto), typeof self < "u" && self.crypto && (m = self.crypto), typeof globalThis < "u" && globalThis.crypto && (m = globalThis.crypto), !m && typeof window < "u" && window.msCrypto && (m = window.msCrypto), !m && typeof dt < "u" && dt.crypto && (m = dt.crypto), !m && typeof Ga == "function")
|
|
1602
1586
|
try {
|
|
1603
|
-
m =
|
|
1587
|
+
m = Xa;
|
|
1604
1588
|
} catch {
|
|
1605
1589
|
}
|
|
1606
1590
|
var V = function() {
|
|
@@ -1624,7 +1608,7 @@ function p0() {
|
|
|
1624
1608
|
var _e;
|
|
1625
1609
|
return B.prototype = ie, _e = new B(), B.prototype = null, _e;
|
|
1626
1610
|
};
|
|
1627
|
-
}(), ee = {},
|
|
1611
|
+
}(), ee = {}, ue = ee.lib = {}, pe = ue.Base = /* @__PURE__ */ function() {
|
|
1628
1612
|
return {
|
|
1629
1613
|
/**
|
|
1630
1614
|
* Creates a new object that inherits from this object.
|
|
@@ -1709,7 +1693,7 @@ function p0() {
|
|
|
1709
1693
|
return this.init.prototype.extend(this);
|
|
1710
1694
|
}
|
|
1711
1695
|
};
|
|
1712
|
-
}(), ke =
|
|
1696
|
+
}(), ke = ue.WordArray = pe.extend({
|
|
1713
1697
|
/**
|
|
1714
1698
|
* Initializes a newly created word array.
|
|
1715
1699
|
*
|
|
@@ -1921,7 +1905,7 @@ function p0() {
|
|
|
1921
1905
|
parse: function(B) {
|
|
1922
1906
|
return P.parse(unescape(encodeURIComponent(B)));
|
|
1923
1907
|
}
|
|
1924
|
-
},
|
|
1908
|
+
}, le = ue.BufferedBlockAlgorithm = pe.extend({
|
|
1925
1909
|
/**
|
|
1926
1910
|
* Resets this block algorithm's data buffer to its initial state.
|
|
1927
1911
|
*
|
|
@@ -1985,7 +1969,7 @@ function p0() {
|
|
|
1985
1969
|
},
|
|
1986
1970
|
_minBufferSize: 0
|
|
1987
1971
|
});
|
|
1988
|
-
|
|
1972
|
+
ue.Hasher = le.extend({
|
|
1989
1973
|
/**
|
|
1990
1974
|
* Configuration options.
|
|
1991
1975
|
*/
|
|
@@ -2010,7 +1994,7 @@ function p0() {
|
|
|
2010
1994
|
* hasher.reset();
|
|
2011
1995
|
*/
|
|
2012
1996
|
reset: function() {
|
|
2013
|
-
|
|
1997
|
+
le.reset.call(this), this._doReset();
|
|
2014
1998
|
},
|
|
2015
1999
|
/**
|
|
2016
2000
|
* Updates this hasher with a message.
|
|
@@ -2092,13 +2076,13 @@ function p0() {
|
|
|
2092
2076
|
}(M0)), M0.exports;
|
|
2093
2077
|
}
|
|
2094
2078
|
var R0 = { exports: {} }, J0;
|
|
2095
|
-
function
|
|
2079
|
+
function Ka() {
|
|
2096
2080
|
return J0 || (J0 = 1, function(a, i) {
|
|
2097
2081
|
(function(y, x) {
|
|
2098
2082
|
a.exports = x(p0());
|
|
2099
2083
|
})(dt, function(y) {
|
|
2100
2084
|
return function(x) {
|
|
2101
|
-
var N = y, m = N.lib, V = m.WordArray, A = m.Hasher, ee = N.algo,
|
|
2085
|
+
var N = y, m = N.lib, V = m.WordArray, A = m.Hasher, ee = N.algo, ue = [], pe = [];
|
|
2102
2086
|
(function() {
|
|
2103
2087
|
function Se(Be) {
|
|
2104
2088
|
for (var B = x.sqrt(Be), ie = 2; ie <= B; ie++)
|
|
@@ -2109,29 +2093,29 @@ function Za() {
|
|
|
2109
2093
|
function P(Be) {
|
|
2110
2094
|
return (Be - (Be | 0)) * 4294967296 | 0;
|
|
2111
2095
|
}
|
|
2112
|
-
for (var j = 2,
|
|
2113
|
-
Se(j) && (
|
|
2096
|
+
for (var j = 2, le = 0; le < 64; )
|
|
2097
|
+
Se(j) && (le < 8 && (ue[le] = P(x.pow(j, 1 / 2))), pe[le] = P(x.pow(j, 1 / 3)), le++), j++;
|
|
2114
2098
|
})();
|
|
2115
2099
|
var ke = [], He = ee.SHA256 = A.extend({
|
|
2116
2100
|
_doReset: function() {
|
|
2117
|
-
this._hash = new V.init(
|
|
2101
|
+
this._hash = new V.init(ue.slice(0));
|
|
2118
2102
|
},
|
|
2119
2103
|
_doProcessBlock: function(Se, P) {
|
|
2120
|
-
for (var j = this._hash.words,
|
|
2104
|
+
for (var j = this._hash.words, le = j[0], Be = j[1], B = j[2], ie = j[3], _e = j[4], Fe = j[5], Ue = j[6], Ge = j[7], je = 0; je < 64; je++) {
|
|
2121
2105
|
if (je < 16)
|
|
2122
2106
|
ke[je] = Se[P + je] | 0;
|
|
2123
2107
|
else {
|
|
2124
2108
|
var Ye = ke[je - 15], We = (Ye << 25 | Ye >>> 7) ^ (Ye << 14 | Ye >>> 18) ^ Ye >>> 3, Ie = ke[je - 2], K = (Ie << 15 | Ie >>> 17) ^ (Ie << 13 | Ie >>> 19) ^ Ie >>> 10;
|
|
2125
2109
|
ke[je] = We + ke[je - 7] + K + ke[je - 16];
|
|
2126
2110
|
}
|
|
2127
|
-
var pt = _e & Fe ^ ~_e & Ue, it =
|
|
2128
|
-
Ge = Ue, Ue = Fe, Fe = _e, _e = ie + ht | 0, ie = B, B = Be, Be =
|
|
2111
|
+
var pt = _e & Fe ^ ~_e & Ue, it = le & Be ^ le & B ^ Be & B, $e = (le << 30 | le >>> 2) ^ (le << 19 | le >>> 13) ^ (le << 10 | le >>> 22), ft = (_e << 26 | _e >>> 6) ^ (_e << 21 | _e >>> 11) ^ (_e << 7 | _e >>> 25), ht = Ge + ft + pt + pe[je] + ke[je], vt = $e + it;
|
|
2112
|
+
Ge = Ue, Ue = Fe, Fe = _e, _e = ie + ht | 0, ie = B, B = Be, Be = le, le = ht + vt | 0;
|
|
2129
2113
|
}
|
|
2130
|
-
j[0] = j[0] +
|
|
2114
|
+
j[0] = j[0] + le | 0, j[1] = j[1] + Be | 0, j[2] = j[2] + B | 0, j[3] = j[3] + ie | 0, j[4] = j[4] + _e | 0, j[5] = j[5] + Fe | 0, j[6] = j[6] + Ue | 0, j[7] = j[7] + Ge | 0;
|
|
2131
2115
|
},
|
|
2132
2116
|
_doFinalize: function() {
|
|
2133
|
-
var Se = this._data, P = Se.words, j = this._nDataBytes * 8,
|
|
2134
|
-
return P[
|
|
2117
|
+
var Se = this._data, P = Se.words, j = this._nDataBytes * 8, le = Se.sigBytes * 8;
|
|
2118
|
+
return P[le >>> 5] |= 128 << 24 - le % 32, P[(le + 64 >>> 9 << 4) + 14] = x.floor(j / 4294967296), P[(le + 64 >>> 9 << 4) + 15] = j, Se.sigBytes = P.length * 4, this._process(), this._hash;
|
|
2135
2119
|
},
|
|
2136
2120
|
clone: function() {
|
|
2137
2121
|
var Se = A.clone.call(this);
|
|
@@ -2144,7 +2128,7 @@ function Za() {
|
|
|
2144
2128
|
}(R0)), R0.exports;
|
|
2145
2129
|
}
|
|
2146
2130
|
var C0 = { exports: {} }, er;
|
|
2147
|
-
function
|
|
2131
|
+
function Za() {
|
|
2148
2132
|
return er || (er = 1, function(a, i) {
|
|
2149
2133
|
(function(y, x) {
|
|
2150
2134
|
a.exports = x(p0());
|
|
@@ -2162,12 +2146,12 @@ function Qa() {
|
|
|
2162
2146
|
*
|
|
2163
2147
|
* var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);
|
|
2164
2148
|
*/
|
|
2165
|
-
init: function(
|
|
2166
|
-
|
|
2167
|
-
var ke =
|
|
2168
|
-
pe.sigBytes > He && (pe =
|
|
2169
|
-
for (var Se = this._oKey = pe.clone(), P = this._iKey = pe.clone(), j = Se.words,
|
|
2170
|
-
j[Be] ^= 1549556828,
|
|
2149
|
+
init: function(ue, pe) {
|
|
2150
|
+
ue = this._hasher = new ue.init(), typeof pe == "string" && (pe = A.parse(pe));
|
|
2151
|
+
var ke = ue.blockSize, He = ke * 4;
|
|
2152
|
+
pe.sigBytes > He && (pe = ue.finalize(pe)), pe.clamp();
|
|
2153
|
+
for (var Se = this._oKey = pe.clone(), P = this._iKey = pe.clone(), j = Se.words, le = P.words, Be = 0; Be < ke; Be++)
|
|
2154
|
+
j[Be] ^= 1549556828, le[Be] ^= 909522486;
|
|
2171
2155
|
Se.sigBytes = P.sigBytes = He, this.reset();
|
|
2172
2156
|
},
|
|
2173
2157
|
/**
|
|
@@ -2178,8 +2162,8 @@ function Qa() {
|
|
|
2178
2162
|
* hmacHasher.reset();
|
|
2179
2163
|
*/
|
|
2180
2164
|
reset: function() {
|
|
2181
|
-
var
|
|
2182
|
-
|
|
2165
|
+
var ue = this._hasher;
|
|
2166
|
+
ue.reset(), ue.update(this._iKey);
|
|
2183
2167
|
},
|
|
2184
2168
|
/**
|
|
2185
2169
|
* Updates this HMAC with a message.
|
|
@@ -2193,8 +2177,8 @@ function Qa() {
|
|
|
2193
2177
|
* hmacHasher.update('message');
|
|
2194
2178
|
* hmacHasher.update(wordArray);
|
|
2195
2179
|
*/
|
|
2196
|
-
update: function(
|
|
2197
|
-
return this._hasher.update(
|
|
2180
|
+
update: function(ue) {
|
|
2181
|
+
return this._hasher.update(ue), this;
|
|
2198
2182
|
},
|
|
2199
2183
|
/**
|
|
2200
2184
|
* Finalizes the HMAC computation.
|
|
@@ -2210,8 +2194,8 @@ function Qa() {
|
|
|
2210
2194
|
* var hmac = hmacHasher.finalize('message');
|
|
2211
2195
|
* var hmac = hmacHasher.finalize(wordArray);
|
|
2212
2196
|
*/
|
|
2213
|
-
finalize: function(
|
|
2214
|
-
var pe = this._hasher, ke = pe.finalize(
|
|
2197
|
+
finalize: function(ue) {
|
|
2198
|
+
var pe = this._hasher, ke = pe.finalize(ue);
|
|
2215
2199
|
pe.reset();
|
|
2216
2200
|
var He = pe.finalize(this._oKey.clone().concat(ke));
|
|
2217
2201
|
return He;
|
|
@@ -2223,14 +2207,14 @@ function Qa() {
|
|
|
2223
2207
|
}
|
|
2224
2208
|
(function(a, i) {
|
|
2225
2209
|
(function(y, x, N) {
|
|
2226
|
-
a.exports = x(p0(),
|
|
2210
|
+
a.exports = x(p0(), Ka(), Za());
|
|
2227
2211
|
})(dt, function(y) {
|
|
2228
2212
|
return y.HmacSHA256;
|
|
2229
2213
|
});
|
|
2230
|
-
})(
|
|
2231
|
-
var
|
|
2232
|
-
const
|
|
2233
|
-
var
|
|
2214
|
+
})(vr);
|
|
2215
|
+
var Qa = vr.exports;
|
|
2216
|
+
const $a = /* @__PURE__ */ F0(Qa);
|
|
2217
|
+
var mr = { exports: {} };
|
|
2234
2218
|
(function(a, i) {
|
|
2235
2219
|
(function(y, x) {
|
|
2236
2220
|
a.exports = x(p0());
|
|
@@ -2252,10 +2236,10 @@ var vr = { exports: {} };
|
|
|
2252
2236
|
* var base64String = CryptoJS.enc.Base64.stringify(wordArray);
|
|
2253
2237
|
*/
|
|
2254
2238
|
stringify: function(ee) {
|
|
2255
|
-
var
|
|
2239
|
+
var ue = ee.words, pe = ee.sigBytes, ke = this._map;
|
|
2256
2240
|
ee.clamp();
|
|
2257
2241
|
for (var He = [], Se = 0; Se < pe; Se += 3)
|
|
2258
|
-
for (var P =
|
|
2242
|
+
for (var P = ue[Se >>> 2] >>> 24 - Se % 4 * 8 & 255, j = ue[Se + 1 >>> 2] >>> 24 - (Se + 1) % 4 * 8 & 255, le = ue[Se + 2 >>> 2] >>> 24 - (Se + 2) % 4 * 8 & 255, Be = P << 16 | j << 8 | le, B = 0; B < 4 && Se + B * 0.75 < pe; B++)
|
|
2259
2243
|
He.push(ke.charAt(Be >>> 6 * (3 - B) & 63));
|
|
2260
2244
|
var ie = ke.charAt(64);
|
|
2261
2245
|
if (ie)
|
|
@@ -2277,7 +2261,7 @@ var vr = { exports: {} };
|
|
|
2277
2261
|
* var wordArray = CryptoJS.enc.Base64.parse(base64String);
|
|
2278
2262
|
*/
|
|
2279
2263
|
parse: function(ee) {
|
|
2280
|
-
var
|
|
2264
|
+
var ue = ee.length, pe = this._map, ke = this._reverseMap;
|
|
2281
2265
|
if (!ke) {
|
|
2282
2266
|
ke = this._reverseMap = [];
|
|
2283
2267
|
for (var He = 0; He < pe.length; He++)
|
|
@@ -2286,49 +2270,49 @@ var vr = { exports: {} };
|
|
|
2286
2270
|
var Se = pe.charAt(64);
|
|
2287
2271
|
if (Se) {
|
|
2288
2272
|
var P = ee.indexOf(Se);
|
|
2289
|
-
P !== -1 && (
|
|
2273
|
+
P !== -1 && (ue = P);
|
|
2290
2274
|
}
|
|
2291
|
-
return A(ee,
|
|
2275
|
+
return A(ee, ue, ke);
|
|
2292
2276
|
},
|
|
2293
2277
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
2294
2278
|
};
|
|
2295
|
-
function A(ee,
|
|
2296
|
-
for (var ke = [], He = 0, Se = 0; Se <
|
|
2279
|
+
function A(ee, ue, pe) {
|
|
2280
|
+
for (var ke = [], He = 0, Se = 0; Se < ue; Se++)
|
|
2297
2281
|
if (Se % 4) {
|
|
2298
|
-
var P = pe[ee.charCodeAt(Se - 1)] << Se % 4 * 2, j = pe[ee.charCodeAt(Se)] >>> 6 - Se % 4 * 2,
|
|
2299
|
-
ke[He >>> 2] |=
|
|
2282
|
+
var P = pe[ee.charCodeAt(Se - 1)] << Se % 4 * 2, j = pe[ee.charCodeAt(Se)] >>> 6 - Se % 4 * 2, le = P | j;
|
|
2283
|
+
ke[He >>> 2] |= le << 24 - He % 4 * 8, He++;
|
|
2300
2284
|
}
|
|
2301
2285
|
return m.create(ke, He);
|
|
2302
2286
|
}
|
|
2303
2287
|
}(), y.enc.Base64;
|
|
2304
2288
|
});
|
|
2305
|
-
})(
|
|
2306
|
-
var
|
|
2307
|
-
const
|
|
2308
|
-
let Pt, t0 = "", h0 = "",
|
|
2309
|
-
function
|
|
2289
|
+
})(mr);
|
|
2290
|
+
var Ja = mr.exports;
|
|
2291
|
+
const ei = /* @__PURE__ */ F0(Ja);
|
|
2292
|
+
let Pt, t0 = "", h0 = "", _r = null;
|
|
2293
|
+
function ti() {
|
|
2310
2294
|
var a = "wss://iat-api.xfyun.cn/v2/iat", i = "iat-api.xfyun.cn", y = "4f2bbe08d7ee54da888cfd009514e89f", x = "NTc3MWNlNDNiZWFmMGM2Yzk0ZjRlZjdi", N = (/* @__PURE__ */ new Date()).toGMTString(), m = "hmac-sha256", V = "host date request-line", A = `host: ${i}
|
|
2311
2295
|
date: ${N}
|
|
2312
|
-
GET /v2/iat HTTP/1.1`, ee =
|
|
2296
|
+
GET /v2/iat HTTP/1.1`, ee = $a(A, x), ue = ei.stringify(ee), pe = `api_key="${y}", algorithm="${m}", headers="${V}", signature="${ue}"`, ke = btoa(pe);
|
|
2313
2297
|
return a = `${a}?authorization=${ke}&date=${N}&host=${i}`, a;
|
|
2314
2298
|
}
|
|
2315
|
-
function
|
|
2299
|
+
function ri(a) {
|
|
2316
2300
|
for (var i = "", y = new Uint8Array(a), x = y.byteLength, N = 0; N < x; N++)
|
|
2317
2301
|
i += String.fromCharCode(y[N]);
|
|
2318
2302
|
return i;
|
|
2319
2303
|
}
|
|
2320
|
-
function
|
|
2304
|
+
function ai(a) {
|
|
2321
2305
|
let i = JSON.parse(a);
|
|
2322
2306
|
if (i.data && i.data.result) {
|
|
2323
2307
|
let y = i.data.result, x = "", N = y.ws;
|
|
2324
2308
|
for (let m = 0; m < N.length; m++)
|
|
2325
2309
|
x = x + N[m].cw[0].w;
|
|
2326
|
-
y.pgs ? (y.pgs === "apd" && (t0 = h0), h0 = t0 + x) : t0 = t0 + x,
|
|
2310
|
+
y.pgs ? (y.pgs === "apd" && (t0 = h0), h0 = t0 + x) : t0 = t0 + x, _r(h0 || t0 || "");
|
|
2327
2311
|
}
|
|
2328
2312
|
i.code === 0 && i.data.status === 2 && Pt.close(), i.code !== 0 && (Pt.close(), console.error(i));
|
|
2329
2313
|
}
|
|
2330
|
-
function
|
|
2331
|
-
const i =
|
|
2314
|
+
function ii(a) {
|
|
2315
|
+
const i = ti();
|
|
2332
2316
|
Pt = new WebSocket(i), Pt.onopen = () => {
|
|
2333
2317
|
var y = {
|
|
2334
2318
|
common: {
|
|
@@ -2349,16 +2333,16 @@ function ni(a) {
|
|
|
2349
2333
|
};
|
|
2350
2334
|
Pt.send(JSON.stringify(y)), a();
|
|
2351
2335
|
}, Pt.onmessage = (y) => {
|
|
2352
|
-
|
|
2336
|
+
ai(y.data);
|
|
2353
2337
|
}, Pt.onerror = (y) => {
|
|
2354
2338
|
console.error(y);
|
|
2355
2339
|
};
|
|
2356
2340
|
}
|
|
2357
|
-
function
|
|
2358
|
-
Pt = null, t0 = "", h0 = "",
|
|
2341
|
+
function ni(a, i) {
|
|
2342
|
+
Pt = null, t0 = "", h0 = "", _r = i, ii(() => {
|
|
2359
2343
|
const y = new FileReader();
|
|
2360
2344
|
y.readAsArrayBuffer(a), y.onload = (x) => {
|
|
2361
|
-
const N =
|
|
2345
|
+
const N = ri(x.target.result);
|
|
2362
2346
|
let m = 0;
|
|
2363
2347
|
for (; m < N.length; ) {
|
|
2364
2348
|
const V = N.substring(m, m + 1280);
|
|
@@ -2380,7 +2364,7 @@ function si(a, i) {
|
|
|
2380
2364
|
};
|
|
2381
2365
|
});
|
|
2382
2366
|
}
|
|
2383
|
-
var
|
|
2367
|
+
var pr = { exports: {} };
|
|
2384
2368
|
(function(a) {
|
|
2385
2369
|
(function(i) {
|
|
2386
2370
|
var y = typeof window == "object" && !!window.document, x = y ? window : Object;
|
|
@@ -2391,7 +2375,7 @@ var _r = { exports: {} };
|
|
|
2391
2375
|
return typeof e == "number";
|
|
2392
2376
|
}, m = function(e) {
|
|
2393
2377
|
return new K(e);
|
|
2394
|
-
}, V = m.LM = "2023-12-24 18:09", A = "https://github.com/xiangyuecn/Recorder", ee = "Recorder",
|
|
2378
|
+
}, V = m.LM = "2023-12-24 18:09", A = "https://github.com/xiangyuecn/Recorder", ee = "Recorder", ue = "getUserMedia", pe = "srcSampleRate", ke = "sampleRate", He = "bitRate", Se = "catch", P = i[ee];
|
|
2395
2379
|
if (P && P.LM == V) {
|
|
2396
2380
|
P.CLog(P.i18n.$T("K8zP::重复导入{1}", 0, ee), 3);
|
|
2397
2381
|
return;
|
|
@@ -2418,7 +2402,7 @@ var _r = { exports: {} };
|
|
|
2418
2402
|
if (!y)
|
|
2419
2403
|
return !1;
|
|
2420
2404
|
var e = navigator.mediaDevices || {};
|
|
2421
|
-
return e[
|
|
2405
|
+
return e[ue] || (e = navigator, e[ue] || (e[ue] = e.webkitGetUserMedia || e.mozGetUserMedia || e.msGetUserMedia)), !(!e[ue] || (m.Scope = e, !m.GetContext()));
|
|
2422
2406
|
}, m.GetContext = function(e) {
|
|
2423
2407
|
if (!y)
|
|
2424
2408
|
return null;
|
|
@@ -2451,7 +2435,7 @@ var _r = { exports: {} };
|
|
|
2451
2435
|
Ye(Oe("mSxV::剩{1}个GetContext未close", 0, v + "-1=" + l.length), l.length ? 3 : 0);
|
|
2452
2436
|
}
|
|
2453
2437
|
};
|
|
2454
|
-
var
|
|
2438
|
+
var le = function(e) {
|
|
2455
2439
|
var l = e.state, v = "ctx.state=" + l;
|
|
2456
2440
|
return l == "suspended" && (v += Oe("nMIy::(注意:ctx不是running状态,rec.open和start至少要有一个在用户操作(触摸、点击等)时进行调用,否则将在rec.start时尝试进行ctx.resume,可能会产生兼容性问题(仅iOS),请参阅文档中runningContext配置)")), v;
|
|
2457
2441
|
}, Be = "ConnectEnableWebM";
|
|
@@ -2730,7 +2714,7 @@ var _r = { exports: {} };
|
|
|
2730
2714
|
var R = function(c, E) {
|
|
2731
2715
|
E = !!E, v.CLog(Oe("5tWi::录音open失败:") + c + ",isUserNotAllow:" + E, 1), $ && m.CloseNewCtx($), l && l(c, E);
|
|
2732
2716
|
};
|
|
2733
|
-
v._streamTag =
|
|
2717
|
+
v._streamTag = ue;
|
|
2734
2718
|
var o = function() {
|
|
2735
2719
|
v.CLog("open ok, id:" + v.id + " stream:" + v._streamTag), e(), v._SO = 0;
|
|
2736
2720
|
}, ae = k.Sync, de = ++ae.O, Te = ae.C;
|
|
@@ -2799,11 +2783,11 @@ var _r = { exports: {} };
|
|
|
2799
2783
|
Ce[ke] = ve[ke];
|
|
2800
2784
|
var W = { audio: Ce };
|
|
2801
2785
|
try {
|
|
2802
|
-
var oe = m.Scope[
|
|
2786
|
+
var oe = m.Scope[ue](W, te, ye);
|
|
2803
2787
|
} catch (c) {
|
|
2804
|
-
v.CLog(
|
|
2788
|
+
v.CLog(ue, 3, c), W = { audio: !0 }, oe = m.Scope[ue](W, te, ye);
|
|
2805
2789
|
}
|
|
2806
|
-
v.CLog(
|
|
2790
|
+
v.CLog(ue + "(" + JSON.stringify(W) + ") " + le(ve) + Oe("RiWe::,未配置noiseSuppression和echoCancellation时浏览器可能会自动打开降噪和回声消除,移动端可能会降低系统播放音量(关闭录音后可恢复),请参阅文档中audioTrackSet配置") + "(" + A + ") LM:" + V + " UA:" + navigator.userAgent), oe && oe.then && oe.then(te)[Se](ye);
|
|
2807
2791
|
},
|
|
2808
2792
|
close: function(e) {
|
|
2809
2793
|
e = e || x;
|
|
@@ -2910,7 +2894,7 @@ var _r = { exports: {} };
|
|
|
2910
2894
|
return;
|
|
2911
2895
|
}
|
|
2912
2896
|
var v = e._streamCtx();
|
|
2913
|
-
if (e.CLog(Oe("kLDN::start 开始录音,") +
|
|
2897
|
+
if (e.CLog(Oe("kLDN::start 开始录音,") + le(v) + " stream:" + e._streamTag), e._stop(), e.envStart(null, v[ke]), e.state = 3, e._SO && e._SO + 1 != e._S) {
|
|
2914
2898
|
e.CLog(Oe("Bp2y::start被中断"), 3);
|
|
2915
2899
|
return;
|
|
2916
2900
|
}
|
|
@@ -3212,9 +3196,9 @@ var _r = { exports: {} };
|
|
|
3212
3196
|
};
|
|
3213
3197
|
P && (Ye(Oe("8HO5::覆盖导入{1}", 0, ee), 1), P.Destroy()), i[ee] = m;
|
|
3214
3198
|
});
|
|
3215
|
-
})(
|
|
3216
|
-
var
|
|
3217
|
-
const A0 = /* @__PURE__ */ F0(
|
|
3199
|
+
})(pr);
|
|
3200
|
+
var si = pr.exports;
|
|
3201
|
+
const A0 = /* @__PURE__ */ F0(si);
|
|
3218
3202
|
(function(a) {
|
|
3219
3203
|
var i = typeof window == "object" && !!window.document, y = i ? window : Object, x = y.Recorder, N = x.i18n;
|
|
3220
3204
|
a(x, N, N.$T, i);
|
|
@@ -3228,28 +3212,28 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
3228
3212
|
}
|
|
3229
3213
|
};
|
|
3230
3214
|
var V = function(P) {
|
|
3231
|
-
var j = P.bitRate,
|
|
3232
|
-
if ((" " + m + ",").indexOf(" " + j + ",") == -1 && a.CLog(y("eGB9::{1}不在mp3支持的取值范围:{2}", 0, "bitRate=" + j, m), 3), (" " + N + ",").indexOf(" " +
|
|
3215
|
+
var j = P.bitRate, le = P.sampleRate, Be = le;
|
|
3216
|
+
if ((" " + m + ",").indexOf(" " + j + ",") == -1 && a.CLog(y("eGB9::{1}不在mp3支持的取值范围:{2}", 0, "bitRate=" + j, m), 3), (" " + N + ",").indexOf(" " + le + ",") == -1) {
|
|
3233
3217
|
for (var B = N.split(", "), ie = [], _e = 0; _e < B.length; _e++)
|
|
3234
|
-
ie.push({ v: +B[_e], s: Math.abs(B[_e] -
|
|
3218
|
+
ie.push({ v: +B[_e], s: Math.abs(B[_e] - le) });
|
|
3235
3219
|
ie.sort(function(Fe, Ue) {
|
|
3236
3220
|
return Fe.s - Ue.s;
|
|
3237
|
-
}), Be = ie[0].v, P.sampleRate = Be, a.CLog(y("zLTa::sampleRate已更新为{1},因为{2}不在mp3支持的取值范围:{3}", 0, Be,
|
|
3221
|
+
}), Be = ie[0].v, P.sampleRate = Be, a.CLog(y("zLTa::sampleRate已更新为{1},因为{2}不在mp3支持的取值范围:{3}", 0, Be, le, N), 3);
|
|
3238
3222
|
}
|
|
3239
3223
|
}, A = function() {
|
|
3240
3224
|
return y.G("NeedImport-2", ["mp3.js", "src/engine/mp3-engine.js"]);
|
|
3241
3225
|
}, ee = x && typeof Worker == "function";
|
|
3242
|
-
a.prototype.mp3 = function(P, j,
|
|
3226
|
+
a.prototype.mp3 = function(P, j, le) {
|
|
3243
3227
|
var Be = this, B = Be.set, ie = P.length;
|
|
3244
3228
|
if (!a.lamejs) {
|
|
3245
|
-
|
|
3229
|
+
le(A());
|
|
3246
3230
|
return;
|
|
3247
3231
|
}
|
|
3248
3232
|
if (ee) {
|
|
3249
3233
|
var _e = Be.mp3_start(B);
|
|
3250
3234
|
if (_e) {
|
|
3251
3235
|
if (_e.isW) {
|
|
3252
|
-
Be.mp3_encode(_e, P), Be.mp3_complete(_e, j,
|
|
3236
|
+
Be.mp3_encode(_e, P), Be.mp3_complete(_e, j, le, 1);
|
|
3253
3237
|
return;
|
|
3254
3238
|
}
|
|
3255
3239
|
Be.mp3_stop(_e);
|
|
@@ -3263,7 +3247,7 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
3263
3247
|
else
|
|
3264
3248
|
var Ie = Fe.flush();
|
|
3265
3249
|
} catch (ft) {
|
|
3266
|
-
console.error(ft),
|
|
3250
|
+
console.error(ft), le("MP3 Encoder: " + ft.message);
|
|
3267
3251
|
return;
|
|
3268
3252
|
}
|
|
3269
3253
|
var K = Ie.length;
|
|
@@ -3283,17 +3267,17 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
3283
3267
|
};
|
|
3284
3268
|
We();
|
|
3285
3269
|
};
|
|
3286
|
-
var
|
|
3270
|
+
var ue;
|
|
3287
3271
|
a.BindDestroy("mp3Worker", function() {
|
|
3288
|
-
|
|
3272
|
+
ue && (a.CLog("mp3Worker Destroy"), ue.terminate(), ue = null);
|
|
3289
3273
|
}), a.prototype.mp3_envCheck = function(P, j) {
|
|
3290
|
-
var
|
|
3291
|
-
return j.takeoffEncodeChunk && (ke() || (
|
|
3274
|
+
var le = "";
|
|
3275
|
+
return j.takeoffEncodeChunk && (ke() || (le = y("yhUs::当前浏览器版本太低,无法实时处理"))), !le && !a.lamejs && (le = A()), le;
|
|
3292
3276
|
}, a.prototype.mp3_start = function(P) {
|
|
3293
3277
|
return ke(P);
|
|
3294
3278
|
};
|
|
3295
3279
|
var pe = { id: 0 }, ke = function(P, j) {
|
|
3296
|
-
var
|
|
3280
|
+
var le = function(We) {
|
|
3297
3281
|
var Ie = We.data, K = ie.wkScope.wk_ctxs, pt = ie.wkScope.wk_lame, it = ie.wkScope.wk_mp3TrimFix, $e = K[Ie.id];
|
|
3298
3282
|
if (Ie.action == "init")
|
|
3299
3283
|
K[Ie.id] = {
|
|
@@ -3372,10 +3356,10 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
3372
3356
|
x: new Int16Array(5)
|
|
3373
3357
|
//低版本浏览器不支持序列化TypedArray
|
|
3374
3358
|
}), We;
|
|
3375
|
-
}, ie, _e =
|
|
3359
|
+
}, ie, _e = ue;
|
|
3376
3360
|
if (j || !ee)
|
|
3377
3361
|
return a.CLog(y("k9PT::当前环境不支持Web Worker,mp3实时编码器运行在主线程中"), 3), _e = { postMessage: function(We) {
|
|
3378
|
-
|
|
3362
|
+
le({ data: We });
|
|
3379
3363
|
} }, ie = { wkScope: {
|
|
3380
3364
|
wk_ctxs: {},
|
|
3381
3365
|
wk_lame: a.lamejs,
|
|
@@ -3383,7 +3367,7 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
3383
3367
|
} }, Be(), B();
|
|
3384
3368
|
try {
|
|
3385
3369
|
if (!_e) {
|
|
3386
|
-
var Fe = (
|
|
3370
|
+
var Fe = (le + "").replace(/[\w\$]+\.onmessage/g, "self.postMessage");
|
|
3387
3371
|
Fe = Fe.replace(/[\w\$]+\.wkScope/g, "wkScope");
|
|
3388
3372
|
var Ue = ");wk_lame();self.onmessage=" + Fe;
|
|
3389
3373
|
Ue += ";var wkScope={ wk_ctxs:{},wk_lame:wk_lame", Ue += ",wk_mp3TrimFix:{rm:" + He.rm + ",fn:" + He.fn + "} }";
|
|
@@ -3393,7 +3377,7 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
3393
3377
|
}, 1e4), Be(1);
|
|
3394
3378
|
}
|
|
3395
3379
|
var Ye = B();
|
|
3396
|
-
return Ye.isW = 1,
|
|
3380
|
+
return Ye.isW = 1, ue = _e, Ye;
|
|
3397
3381
|
} catch (We) {
|
|
3398
3382
|
return _e && _e.terminate(), console.error(We), ke(P, 1);
|
|
3399
3383
|
}
|
|
@@ -3405,7 +3389,7 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
3405
3389
|
id: P.id
|
|
3406
3390
|
}), P.worker = null, delete pe[P.id];
|
|
3407
3391
|
var j = -1;
|
|
3408
|
-
for (var
|
|
3392
|
+
for (var le in pe)
|
|
3409
3393
|
j++;
|
|
3410
3394
|
j && a.CLog(y("fT6M::mp3 worker剩{1}个未stop", 0, j), 3);
|
|
3411
3395
|
}
|
|
@@ -3415,16 +3399,16 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
3415
3399
|
id: P.id,
|
|
3416
3400
|
pcm: j
|
|
3417
3401
|
});
|
|
3418
|
-
}, a.prototype.mp3_complete = function(P, j,
|
|
3402
|
+
}, a.prototype.mp3_complete = function(P, j, le, Be) {
|
|
3419
3403
|
var B = this;
|
|
3420
3404
|
P && P.worker ? (P.call = function(ie) {
|
|
3421
|
-
Be && B.mp3_stop(P), ie.err ?
|
|
3405
|
+
Be && B.mp3_stop(P), ie.err ? le(ie.err) : (Se(ie.meta, P.set), j(ie.blob, "audio/mp3"));
|
|
3422
3406
|
}, P.worker.postMessage({
|
|
3423
3407
|
action: "complete",
|
|
3424
3408
|
id: P.id
|
|
3425
|
-
})) :
|
|
3409
|
+
})) : le(y("mPxH::mp3编码器未start"));
|
|
3426
3410
|
}, a.mp3ReadMeta = function(P, j) {
|
|
3427
|
-
var
|
|
3411
|
+
var le = typeof window < "u" && window.parseInt || typeof self < "u" && self.parseInt || parseInt, Be = new Uint8Array(P[0] || []);
|
|
3428
3412
|
if (Be.length < 4)
|
|
3429
3413
|
return null;
|
|
3430
3414
|
var B = function(I, e) {
|
|
@@ -3438,13 +3422,13 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
3438
3422
|
2: [22050, 24e3, 16e3],
|
|
3439
3423
|
"2.5": [11025, 12e3, 8e3]
|
|
3440
3424
|
}[Fe];
|
|
3441
|
-
Ge && (Ge = Ge[
|
|
3425
|
+
Ge && (Ge = Ge[le(_e.substr(4, 2), 2)]);
|
|
3442
3426
|
var je = [
|
|
3443
3427
|
//lamejs -> Tables.bitrate_table
|
|
3444
3428
|
[0, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160],
|
|
3445
3429
|
[0, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320]
|
|
3446
3430
|
//MPEG 1
|
|
3447
|
-
][Fe == 1 ? 1 : 0][
|
|
3431
|
+
][Fe == 1 ? 1 : 0][le(_e.substr(0, 4), 2)];
|
|
3448
3432
|
if (!Fe || !Ue || !je || !Ge)
|
|
3449
3433
|
return null;
|
|
3450
3434
|
for (var Ye = Math.round(j * 8 / je), We = Ue == 1 ? 384 : Ue == 2 || Fe == 1 ? 1152 : 576, Ie = We / Ge * 1e3, K = Math.floor(We * je / 8 / Ge * 1e3), pt = 0, it = 0, $e = 0; $e < P.length; $e++) {
|
|
@@ -3471,11 +3455,11 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
3471
3455
|
var He = {
|
|
3472
3456
|
//minfiy keep name
|
|
3473
3457
|
rm: a.mp3ReadMeta,
|
|
3474
|
-
fn: function(P, j,
|
|
3458
|
+
fn: function(P, j, le, Be) {
|
|
3475
3459
|
var B = this.rm(P, j);
|
|
3476
3460
|
if (!B)
|
|
3477
3461
|
return { err: "mp3 unknown format" };
|
|
3478
|
-
var ie = Math.round(
|
|
3462
|
+
var ie = Math.round(le / Be * 1e3), _e = Math.floor((B.duration - ie) / B.frameDurationFloat);
|
|
3479
3463
|
if (_e > 0) {
|
|
3480
3464
|
var Fe = _e * B.frameSize - (B.hasPadding ? 1 : 0);
|
|
3481
3465
|
j -= Fe;
|
|
@@ -3498,10 +3482,10 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
3498
3482
|
return B;
|
|
3499
3483
|
}
|
|
3500
3484
|
}, Se = function(P, j) {
|
|
3501
|
-
var
|
|
3502
|
-
(P.sampleRate && P.sampleRate != j.sampleRate || P.bitRate && P.bitRate != j.bitRate) && (a.CLog(
|
|
3485
|
+
var le = "MP3 Info: ";
|
|
3486
|
+
(P.sampleRate && P.sampleRate != j.sampleRate || P.bitRate && P.bitRate != j.bitRate) && (a.CLog(le + y("uY9i::和设置的不匹配{1},已更新成{2}", 0, "set:" + j.bitRate + "kbps " + j.sampleRate + "hz", "set:" + P.bitRate + "kbps " + P.sampleRate + "hz"), 3, j), j.sampleRate = P.sampleRate, j.bitRate = P.bitRate);
|
|
3503
3487
|
var Be = P.trimFix;
|
|
3504
|
-
Be ? (
|
|
3488
|
+
Be ? (le += y("iMSm::Fix移除{1}帧", 0, Be.remove) + " " + Be.removeDuration + "ms -> " + Be.duration + "ms", Be.remove > 2 && (P.err = (P.err ? P.err + ", " : "") + y("b9zm::移除帧数过多"))) : le += (P.duration || "-") + "ms", P.err ? a.CLog(le, 1, P.err, P) : a.CLog(le, P);
|
|
3505
3489
|
};
|
|
3506
3490
|
});
|
|
3507
3491
|
(function(a) {
|
|
@@ -3529,13 +3513,13 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
3529
3513
|
function ee(c) {
|
|
3530
3514
|
return new Float64Array(c);
|
|
3531
3515
|
}
|
|
3532
|
-
function
|
|
3516
|
+
function ue(c) {
|
|
3533
3517
|
if (c.length == 1)
|
|
3534
3518
|
return A(c[0]);
|
|
3535
3519
|
var E = c[0];
|
|
3536
3520
|
c = c.slice(1);
|
|
3537
3521
|
for (var X = [], T = 0; T < E; T++)
|
|
3538
|
-
X.push(
|
|
3522
|
+
X.push(ue(c));
|
|
3539
3523
|
return X;
|
|
3540
3524
|
}
|
|
3541
3525
|
function pe(c) {
|
|
@@ -3585,10 +3569,10 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
3585
3569
|
}, j.FAST_LOG10_X = function(c, E) {
|
|
3586
3570
|
return y(c) * E;
|
|
3587
3571
|
};
|
|
3588
|
-
function
|
|
3572
|
+
function le(c) {
|
|
3589
3573
|
this.ordinal = c;
|
|
3590
3574
|
}
|
|
3591
|
-
|
|
3575
|
+
le.short_block_allowed = new le(0), le.short_block_coupled = new le(1), le.short_block_dispensed = new le(2), le.short_block_forced = new le(3);
|
|
3592
3576
|
var Be = {};
|
|
3593
3577
|
Be.MAX_VALUE = 34028235e31;
|
|
3594
3578
|
function B(c) {
|
|
@@ -9797,7 +9781,7 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
9797
9781
|
u[0][0] = new R(), u[0][1] = new R(), u[1][0] = new R(), u[1][1] = new R();
|
|
9798
9782
|
var C = He([2, 2]);
|
|
9799
9783
|
C[0][0] = new R(), C[0][1] = new R(), C[1][0] = new R(), C[1][1] = new R();
|
|
9800
|
-
var G, S = [null, null], h = Y.internal_flags, g =
|
|
9784
|
+
var G, S = [null, null], h = Y.internal_flags, g = ue([2, 4]), d = [0.5, 0.5], D = [[0, 0], [0, 0]], s = [[0, 0], [0, 0]], Z, f, _;
|
|
9801
9785
|
if (S[0] = ne, S[1] = H, h.lame_encode_frame_init == 0 && ce(Y, S), h.padding = 0, (h.slot_lag -= h.frac_SpF) < 0 && (h.slot_lag += Y.out_samplerate, h.padding = 1), h.psymodel != 0) {
|
|
9802
9786
|
var b, M = [null, null], L = 0, r = V(2);
|
|
9803
9787
|
for (_ = 0; _ < h.mode_gr; _++) {
|
|
@@ -9849,7 +9833,7 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
9849
9833
|
this.tt[c][E] = new v();
|
|
9850
9834
|
}
|
|
9851
9835
|
function Te() {
|
|
9852
|
-
this.l = A(o.SBMAX_l), this.s =
|
|
9836
|
+
this.l = A(o.SBMAX_l), this.s = ue([o.SBMAX_s, 3]);
|
|
9853
9837
|
var c = this;
|
|
9854
9838
|
this.assign = function(E) {
|
|
9855
9839
|
P.arraycopy(E.l, 0, c.l, 0, o.SBMAX_l);
|
|
@@ -9859,16 +9843,16 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
9859
9843
|
};
|
|
9860
9844
|
}
|
|
9861
9845
|
function Me() {
|
|
9862
|
-
this.last_en_subshort =
|
|
9846
|
+
this.last_en_subshort = ue([4, 9]), this.lastAttacks = V(4), this.pefirbuf = A(19), this.longfact = A(o.SBMAX_l), this.shortfact = A(o.SBMAX_s), this.attackthre = 0, this.attackthre_s = 0;
|
|
9863
9847
|
}
|
|
9864
9848
|
fe.MFSIZE = 3 * 1152 + o.ENCDELAY - o.MDCTDELAY, fe.MAX_HEADER_BUF = 256, fe.MAX_BITS_PER_CHANNEL = 4095, fe.MAX_BITS_PER_GRANULE = 7680, fe.BPC = 320;
|
|
9865
9849
|
function fe() {
|
|
9866
9850
|
var c = 40;
|
|
9867
|
-
this.Class_ID = 0, this.lame_encode_frame_init = 0, this.iteration_init_init = 0, this.fill_buffer_resample_init = 0, this.mfbuf =
|
|
9851
|
+
this.Class_ID = 0, this.lame_encode_frame_init = 0, this.iteration_init_init = 0, this.fill_buffer_resample_init = 0, this.mfbuf = ue([2, fe.MFSIZE]), this.mode_gr = 0, this.channels_in = 0, this.channels_out = 0, this.resample_ratio = 0, this.mf_samples_to_encode = 0, this.mf_size = 0, this.VBR_min_bitrate = 0, this.VBR_max_bitrate = 0, this.bitrate_index = 0, this.samplerate_index = 0, this.mode_ext = 0, this.lowpass1 = 0, this.lowpass2 = 0, this.highpass1 = 0, this.highpass2 = 0, this.noise_shaping = 0, this.noise_shaping_amp = 0, this.substep_shaping = 0, this.psymodel = 0, this.noise_shaping_stop = 0, this.subblock_gain = 0, this.use_best_huffman = 0, this.full_outer_loop = 0, this.l3_side = new de(), this.ms_ratio = A(2), this.padding = 0, this.frac_SpF = 0, this.slot_lag = 0, this.tag_spec = null, this.nMusicCRC = 0, this.OldValue = V(2), this.CurrentStep = V(2), this.masking_lower = 0, this.bv_scf = V(576), this.pseudohalf = V(p.SFBMAX), this.sfb21_extra = !1, this.inbuf_old = new Array(2), this.blackfilt = new Array(2 * fe.BPC + 1), this.itime = ee(2), this.sideinfo_len = 0, this.sb_sample = ue([2, 2, 18, o.SBLIMIT]), this.amp_filter = A(32);
|
|
9868
9852
|
function E() {
|
|
9869
9853
|
this.write_timing = 0, this.ptr = 0, this.buf = N(c);
|
|
9870
9854
|
}
|
|
9871
|
-
this.header = new Array(fe.MAX_HEADER_BUF), this.h_ptr = 0, this.w_ptr = 0, this.ancillary_flag = 0, this.ResvSize = 0, this.ResvMax = 0, this.scalefac_band = new I(), this.minval_l = A(o.CBANDS), this.minval_s = A(o.CBANDS), this.nb_1 =
|
|
9855
|
+
this.header = new Array(fe.MAX_HEADER_BUF), this.h_ptr = 0, this.w_ptr = 0, this.ancillary_flag = 0, this.ResvSize = 0, this.ResvMax = 0, this.scalefac_band = new I(), this.minval_l = A(o.CBANDS), this.minval_s = A(o.CBANDS), this.nb_1 = ue([4, o.CBANDS]), this.nb_2 = ue([4, o.CBANDS]), this.nb_s1 = ue([4, o.CBANDS]), this.nb_s2 = ue([4, o.CBANDS]), this.s3_ss = null, this.s3_ll = null, this.decay = 0, this.thm = new Array(4), this.en = new Array(4), this.tot_ener = A(4), this.loudness_sq = ue([2, 2]), this.loudness_sq_save = A(2), this.mld_l = A(o.SBMAX_l), this.mld_s = A(o.SBMAX_s), this.bm_l = V(o.SBMAX_l), this.bo_l = V(o.SBMAX_l), this.bm_s = V(o.SBMAX_s), this.bo_s = V(o.SBMAX_s), this.npart_l = 0, this.npart_s = 0, this.s3ind = pe([o.CBANDS, 2]), this.s3ind_s = pe([o.CBANDS, 2]), this.numlines_s = V(o.CBANDS), this.numlines_l = V(o.CBANDS), this.rnumlines_l = A(o.CBANDS), this.mld_cb_l = A(o.CBANDS), this.mld_cb_s = A(o.CBANDS), this.numlines_s_num1 = 0, this.numlines_l_num1 = 0, this.pe = A(4), this.ms_ratio_s_old = 0, this.ms_ratio_l_old = 0, this.ms_ener_ratio_old = 0, this.blocktype_old = V(2), this.nsPsy = new Me(), this.VBR_seek_table = new ae(), this.ATH = null, this.PSY = null, this.nogap_total = 0, this.nogap_current = 0, this.decode_on_the_fly = !0, this.findReplayGain = !0, this.findPeakSample = !0, this.PeakSample = 0, this.RadioGain = 0, this.AudiophileGain = 0, this.rgdata = null, this.noclipGainChange = 0, this.noclipScale = 0, this.bitrate_stereoMode_Hist = pe([16, 5]), this.bitrate_blockType_Hist = pe([16, 6]), this.pinfo = null, this.hip = null, this.in_buffer_nsamples = 0, this.in_buffer_0 = null, this.in_buffer_1 = null, this.iteration_loop = null;
|
|
9872
9856
|
for (var X = 0; X < this.en.length; X++)
|
|
9873
9857
|
this.en[X] = new Te();
|
|
9874
9858
|
for (var X = 0; X < this.thm.length; X++)
|
|
@@ -10252,9 +10236,9 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
10252
10236
|
}
|
|
10253
10237
|
function J(se, z, re, Ne) {
|
|
10254
10238
|
var Le = se.internal_flags;
|
|
10255
|
-
se.short_blocks ==
|
|
10239
|
+
se.short_blocks == le.short_block_coupled && !(z[0] != 0 && z[1] != 0) && (z[0] = z[1] = 0);
|
|
10256
10240
|
for (var ge = 0; ge < Le.channels_out; ge++)
|
|
10257
|
-
Ne[ge] = o.NORM_TYPE, se.short_blocks ==
|
|
10241
|
+
Ne[ge] = o.NORM_TYPE, se.short_blocks == le.short_block_dispensed && (z[ge] = 1), se.short_blocks == le.short_block_forced && (z[ge] = 0), z[ge] != 0 ? Le.blocktype_old[ge] == o.SHORT_TYPE && (Ne[ge] = o.STOP_TYPE) : (Ne[ge] = o.SHORT_TYPE, Le.blocktype_old[ge] == o.NORM_TYPE && (Le.blocktype_old[ge] = o.START_TYPE), Le.blocktype_old[ge] == o.STOP_TYPE && (Le.blocktype_old[ge] = o.SHORT_TYPE)), re[ge] = Le.blocktype_old[ge], Le.blocktype_old[ge] = Ne[ge];
|
|
10258
10242
|
}
|
|
10259
10243
|
function O(se, z, re) {
|
|
10260
10244
|
return re >= 1 ? se : re <= 0 ? z : z > 0 ? Math.pow(se / z, re) * z : 0;
|
|
@@ -10368,8 +10352,8 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
10368
10352
|
-0.313819 * 2
|
|
10369
10353
|
];
|
|
10370
10354
|
this.L3psycho_anal_ns = function(se, z, re, Ne, Le, ge, Ee, De, Pe, tt) {
|
|
10371
|
-
var Ve = se.internal_flags, _t =
|
|
10372
|
-
for (Se.fill(e0, 0), Ct = Ve.channels_out, se.mode == ie.JOINT_STEREO && (Ct = 4), se.VBR == B.vbr_off ?
|
|
10355
|
+
var Ve = se.internal_flags, _t = ue([2, o.BLKSIZE]), st = ue([2, 3, o.BLKSIZE_s]), ct = A(o.CBANDS + 1), gt = A(o.CBANDS + 1), ot = A(o.CBANDS + 2), Je = V(2), ut = V(2), Ct, ze, rt, Ze, bt, jt, Lt, lt, u0 = ue([2, 576]), Ft, Kt = V(o.CBANDS + 2), e0 = V(o.CBANDS + 2);
|
|
10356
|
+
for (Se.fill(e0, 0), Ct = Ve.channels_out, se.mode == ie.JOINT_STEREO && (Ct = 4), se.VBR == B.vbr_off ? Ft = Ve.ResvMax == 0 ? 0 : Ve.ResvSize / Ve.ResvMax * 0.5 : se.VBR == B.vbr_rh || se.VBR == B.vbr_mtrh || se.VBR == B.vbr_mt ? Ft = 0.6 : Ft = 1, ze = 0; ze < Ve.channels_out; ze++) {
|
|
10373
10357
|
var r0 = z[ze], a0 = re + 576 - 350 - U + 192;
|
|
10374
10358
|
for (Ze = 0; Ze < 576; Ze++) {
|
|
10375
10359
|
var b0, w0;
|
|
@@ -10380,16 +10364,16 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
10380
10364
|
Le[Ne][ze].en.assign(Ve.en[ze]), Le[Ne][ze].thm.assign(Ve.thm[ze]), Ct > 2 && x();
|
|
10381
10365
|
}
|
|
10382
10366
|
for (ze = 0; ze < Ct; ze++) {
|
|
10383
|
-
var N0, H0,
|
|
10367
|
+
var N0, H0, Nt = A(12), Wt = [0, 0, 0, 0], g0 = A(12), Y0 = 1, P0, V0 = A(o.CBANDS), U0 = A(o.CBANDS), Tt = [0, 0, 0, 0], z0 = A(o.HBLKSIZE), q0 = ue([3, o.HBLKSIZE_s]);
|
|
10384
10368
|
for (Ze = 0; Ze < 3; Ze++)
|
|
10385
|
-
|
|
10369
|
+
Nt[Ze] = Ve.nsPsy.last_en_subshort[ze][Ze + 6], g0[Ze] = Nt[Ze] / Ve.nsPsy.last_en_subshort[ze][Ze + 4], Wt[0] += Nt[Ze];
|
|
10386
10370
|
ze == 2 && x();
|
|
10387
10371
|
{
|
|
10388
10372
|
var G0 = u0[ze & 1], i0 = 0;
|
|
10389
10373
|
for (Ze = 0; Ze < 9; Ze++) {
|
|
10390
|
-
for (var
|
|
10374
|
+
for (var gr = i0 + 64, At = 1; i0 < gr; i0++)
|
|
10391
10375
|
At < Math.abs(G0[i0]) && (At = Math.abs(G0[i0]));
|
|
10392
|
-
Ve.nsPsy.last_en_subshort[ze][Ze] =
|
|
10376
|
+
Ve.nsPsy.last_en_subshort[ze][Ze] = Nt[Ze + 3] = At, Wt[1 + Ze / 3] += At, At > Nt[Ze + 3 - 2] ? At = At / Nt[Ze + 3 - 2] : Nt[Ze + 3 - 2] > At * 10 ? At = Nt[Ze + 3 - 2] / (At * 10) : At = 0, g0[Ze + 3] = At;
|
|
10393
10377
|
}
|
|
10394
10378
|
}
|
|
10395
10379
|
for (se.analysis && x(), P0 = ze == 3 ? Ve.nsPsy.attackthre_s : Ve.nsPsy.attackthre, Ze = 0; Ze < 12; Ze++)
|
|
@@ -10417,7 +10401,7 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
10417
10401
|
var n0 = lt != 0 ? lt - 1 : 2, At = O(
|
|
10418
10402
|
Ve.thm[ze].s[Lt][n0],
|
|
10419
10403
|
It,
|
|
10420
|
-
H *
|
|
10404
|
+
H * Ft
|
|
10421
10405
|
);
|
|
10422
10406
|
It = Math.min(It, At);
|
|
10423
10407
|
}
|
|
@@ -10425,18 +10409,18 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
10425
10409
|
var n0 = lt != 0 ? lt - 1 : 2, At = O(
|
|
10426
10410
|
Ve.thm[ze].s[Lt][n0],
|
|
10427
10411
|
It,
|
|
10428
|
-
be *
|
|
10412
|
+
be * Ft
|
|
10429
10413
|
);
|
|
10430
10414
|
It = Math.min(It, At);
|
|
10431
10415
|
} else if (lt != 0 && Tt[lt - 1] == 3 || lt == 0 && Ve.nsPsy.lastAttacks[ze] == 3) {
|
|
10432
10416
|
var n0 = lt != 2 ? lt + 1 : 0, At = O(
|
|
10433
10417
|
Ve.thm[ze].s[Lt][n0],
|
|
10434
10418
|
It,
|
|
10435
|
-
be *
|
|
10419
|
+
be * Ft
|
|
10436
10420
|
);
|
|
10437
10421
|
It = Math.min(It, At);
|
|
10438
10422
|
}
|
|
10439
|
-
x0 =
|
|
10423
|
+
x0 = Nt[lt * 3 + 3] + Nt[lt * 3 + 4] + Nt[lt * 3 + 5], Nt[lt * 3 + 5] * 6 < x0 && (It *= 0.5, Nt[lt * 3 + 4] * 6 < x0 && (It *= 0.5)), Ve.thm[ze].s[Lt][lt] = It;
|
|
10440
10424
|
}
|
|
10441
10425
|
}
|
|
10442
10426
|
for (Ve.nsPsy.lastAttacks[ze] = Tt[2], jt = 0, rt = 0; rt < Ve.npart_l; rt++) {
|
|
@@ -10451,7 +10435,7 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
10451
10435
|
Qt *= 0.158489319246111, Ve.blocktype_old[ze & 1] == o.SHORT_TYPE ? ot[rt] = Qt : ot[rt] = O(
|
|
10452
10436
|
Math.min(Qt, Math.min(X * Ve.nb_1[ze][rt], T * Ve.nb_2[ze][rt])),
|
|
10453
10437
|
Qt,
|
|
10454
|
-
|
|
10438
|
+
Ft
|
|
10455
10439
|
), Ve.nb_2[ze][rt] = Ve.nb_1[ze][rt], Ve.nb_1[ze][rt] = Qt;
|
|
10456
10440
|
}
|
|
10457
10441
|
for (; rt <= o.CBANDS; ++rt)
|
|
@@ -10497,14 +10481,14 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
10497
10481
|
);
|
|
10498
10482
|
}
|
|
10499
10483
|
Je = 0;
|
|
10500
|
-
for (var
|
|
10501
|
-
var Kt = se[
|
|
10502
|
-
Ct = St(De * Je), e0 = St(De * (Je + Kt - 1)), Ne[
|
|
10484
|
+
for (var Ft = 0; Ft < ut; Ft++) {
|
|
10485
|
+
var Kt = se[Ft], Ct, e0;
|
|
10486
|
+
Ct = St(De * Je), e0 = St(De * (Je + Kt - 1)), Ne[Ft] = 0.5 * (Ct + e0), Ct = St(De * (Je - 0.5)), e0 = St(De * (Je + Kt - 0.5)), Le[Ft] = e0 - Ct, Je += Kt;
|
|
10503
10487
|
}
|
|
10504
10488
|
return ut;
|
|
10505
10489
|
}
|
|
10506
10490
|
function wt(se, z, re, Ne, Le, ge) {
|
|
10507
|
-
var Ee =
|
|
10491
|
+
var Ee = ue([o.CBANDS, o.CBANDS]), De, Pe = 0;
|
|
10508
10492
|
if (ge)
|
|
10509
10493
|
for (var tt = 0; tt < z; tt++)
|
|
10510
10494
|
for (De = 0; De < z; De++) {
|
|
@@ -10977,7 +10961,7 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
10977
10961
|
break;
|
|
10978
10962
|
}
|
|
10979
10963
|
}
|
|
10980
|
-
return r.VBR != B.vbr_off && x(), r.tune && x(), D(r), r.athaa_type < 0 ? n.ATH.useAdjust = 3 : n.ATH.useAdjust = r.athaa_type, n.ATH.aaSensitivityP = Math.pow(10, r.athaa_sensitivity / -10), r.short_blocks == null && (r.short_blocks =
|
|
10964
|
+
return r.VBR != B.vbr_off && x(), r.tune && x(), D(r), r.athaa_type < 0 ? n.ATH.useAdjust = 3 : n.ATH.useAdjust = r.athaa_type, n.ATH.aaSensitivityP = Math.pow(10, r.athaa_sensitivity / -10), r.short_blocks == null && (r.short_blocks = le.short_block_allowed), r.short_blocks == le.short_block_allowed && (r.mode == ie.JOINT_STEREO || r.mode == ie.STEREO) && (r.short_blocks = le.short_block_coupled), r.quant_comp < 0 && (r.quant_comp = 1), r.quant_comp_short < 0 && (r.quant_comp_short = 0), r.msfix < 0 && (r.msfix = 0), r.exp_nspsytune = r.exp_nspsytune | 1, r.internal_flags.nsPsy.attackthre < 0 && (r.internal_flags.nsPsy.attackthre = Ae.NSATTACKTHRE), r.internal_flags.nsPsy.attackthre_s < 0 && (r.internal_flags.nsPsy.attackthre_s = Ae.NSATTACKTHRE_S), r.scale < 0 && (r.scale = 1), r.ATHtype < 0 && (r.ATHtype = 4), r.ATHcurve < 0 && (r.ATHcurve = 4), r.athaa_loudapprox < 0 && (r.athaa_loudapprox = 2), r.interChRatio < 0 && (r.interChRatio = 0), r.useTemporal == null && (r.useTemporal = !0), n.slot_lag = n.frac_SpF = 0, r.VBR == B.vbr_off && (n.slot_lag = n.frac_SpF = (r.version + 1) * 72e3 * r.brate % r.out_samplerate | 0), q.iteration_init(r), Y.psymodel_init(r), 0;
|
|
10981
10965
|
};
|
|
10982
10966
|
function Z(r, n) {
|
|
10983
10967
|
(r.in_buffer_0 == null || r.in_buffer_nsamples < n) && (r.in_buffer_0 = A(n), r.in_buffer_1 = A(n), r.in_buffer_nsamples = n);
|
|
@@ -11151,7 +11135,7 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
11151
11135
|
var N = function(A) {
|
|
11152
11136
|
return new V(A);
|
|
11153
11137
|
}, m = "WaveView", V = function(A) {
|
|
11154
|
-
var ee = this,
|
|
11138
|
+
var ee = this, ue = {
|
|
11155
11139
|
/*
|
|
11156
11140
|
elem:"css selector" //自动显示到dom,并以此dom大小为显示大小
|
|
11157
11141
|
//或者配置显示大小,手动把waveviewObj.elem显示到别的地方
|
|
@@ -11177,8 +11161,8 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
11177
11161
|
//背景渐变色,从上到下
|
|
11178
11162
|
};
|
|
11179
11163
|
for (var pe in A)
|
|
11180
|
-
|
|
11181
|
-
ee.set = A =
|
|
11164
|
+
ue[pe] = A[pe];
|
|
11165
|
+
ee.set = A = ue;
|
|
11182
11166
|
var ke = "compatibleCanvas";
|
|
11183
11167
|
if (A[ke])
|
|
11184
11168
|
var He = ee.canvas = A[ke];
|
|
@@ -11192,45 +11176,45 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
11192
11176
|
var He = ee.canvas = P.querySelector("canvas");
|
|
11193
11177
|
Se && (Se.innerHTML = "", Se.appendChild(P));
|
|
11194
11178
|
}
|
|
11195
|
-
var j = A.scale,
|
|
11196
|
-
if (!
|
|
11179
|
+
var j = A.scale, le = A.width * j, Be = A.height * j;
|
|
11180
|
+
if (!le || !Be)
|
|
11197
11181
|
throw new Error(y.G("IllegalArgs-1", [m + " width=0 height=0"]));
|
|
11198
|
-
He.width =
|
|
11182
|
+
He.width = le, He.height = Be;
|
|
11199
11183
|
var B = ee.ctx = He.getContext("2d");
|
|
11200
|
-
ee.linear1 = ee.genLinear(B,
|
|
11184
|
+
ee.linear1 = ee.genLinear(B, le, A.linear1), ee.linear2 = ee.genLinear(B, le, A.linear2), ee.linearBg = ee.genLinear(B, Be, A.linearBg, !0), ee._phase = 0;
|
|
11201
11185
|
};
|
|
11202
11186
|
V.prototype = N.prototype = {
|
|
11203
|
-
genLinear: function(A, ee,
|
|
11204
|
-
for (var ke = A.createLinearGradient(0, 0, pe ? 0 : ee, pe ? ee : 0), He = 0; He <
|
|
11205
|
-
ke.addColorStop(
|
|
11187
|
+
genLinear: function(A, ee, ue, pe) {
|
|
11188
|
+
for (var ke = A.createLinearGradient(0, 0, pe ? 0 : ee, pe ? ee : 0), He = 0; He < ue.length; )
|
|
11189
|
+
ke.addColorStop(ue[He++], ue[He++]);
|
|
11206
11190
|
return ke;
|
|
11207
11191
|
},
|
|
11208
|
-
genPath: function(A, ee,
|
|
11209
|
-
for (var pe = [], ke = this, He = ke.set, Se = He.scale, P = He.width * Se, j = He.height * Se / 2,
|
|
11210
|
-
var Be = (1 + Math.cos(Math.PI +
|
|
11192
|
+
genPath: function(A, ee, ue) {
|
|
11193
|
+
for (var pe = [], ke = this, He = ke.set, Se = He.scale, P = He.width * Se, j = He.height * Se / 2, le = 0; le <= P; le += Se) {
|
|
11194
|
+
var Be = (1 + Math.cos(Math.PI + le / P * 2 * Math.PI)) / 2, B = Be * j * ee * Math.sin(2 * Math.PI * (le / P) * A + ue) + j;
|
|
11211
11195
|
pe.push(B);
|
|
11212
11196
|
}
|
|
11213
11197
|
return pe;
|
|
11214
11198
|
},
|
|
11215
|
-
input: function(A, ee,
|
|
11199
|
+
input: function(A, ee, ue) {
|
|
11216
11200
|
var pe = this;
|
|
11217
|
-
pe.sampleRate =
|
|
11201
|
+
pe.sampleRate = ue, pe.pcmData = A, pe.pcmPos = 0, pe.inputTime = Date.now(), pe.schedule();
|
|
11218
11202
|
},
|
|
11219
11203
|
schedule: function() {
|
|
11220
|
-
var A = this, ee = A.set,
|
|
11204
|
+
var A = this, ee = A.set, ue = Math.floor(1e3 / ee.fps);
|
|
11221
11205
|
A.timer || (A.timer = setInterval(function() {
|
|
11222
11206
|
A.schedule();
|
|
11223
|
-
},
|
|
11207
|
+
}, ue));
|
|
11224
11208
|
var pe = Date.now(), ke = A.drawTime || 0;
|
|
11225
|
-
if (!(pe - ke <
|
|
11209
|
+
if (!(pe - ke < ue)) {
|
|
11226
11210
|
A.drawTime = pe;
|
|
11227
|
-
for (var He = A.sampleRate / ee.fps, Se = A.pcmData, P = A.pcmPos, j = Math.max(0, Math.min(He, Se.length - P)),
|
|
11228
|
-
|
|
11229
|
-
A.pcmPos = P, (j || !ee.keep) && A.draw(a.PowerLevel(
|
|
11211
|
+
for (var He = A.sampleRate / ee.fps, Se = A.pcmData, P = A.pcmPos, j = Math.max(0, Math.min(He, Se.length - P)), le = 0, Be = 0; Be < j; Be++, P++)
|
|
11212
|
+
le += Math.abs(Se[P]);
|
|
11213
|
+
A.pcmPos = P, (j || !ee.keep) && A.draw(a.PowerLevel(le, j)), !j && pe - A.inputTime > 1300 && (clearInterval(A.timer), A.timer = 0);
|
|
11230
11214
|
}
|
|
11231
11215
|
},
|
|
11232
11216
|
draw: function(A) {
|
|
11233
|
-
var ee = this,
|
|
11217
|
+
var ee = this, ue = ee.set, pe = ee.ctx, ke = ue.scale, He = ue.width * ke, Se = ue.height * ke, P = ue.speed / ue.fps, j = ee._phase -= P, le = j + P * ue.phase, Be = A / 100, B = ee.genPath(2, Be, j), ie = ee.genPath(1.8, Be, le);
|
|
11234
11218
|
pe.clearRect(0, 0, He, Se), pe.beginPath();
|
|
11235
11219
|
for (var _e = 0, Fe = 0; Fe <= He; _e++, Fe += ke)
|
|
11236
11220
|
Fe == 0 ? pe.moveTo(Fe, B[_e]) : pe.lineTo(Fe, B[_e]);
|
|
@@ -11240,7 +11224,7 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
11240
11224
|
pe.closePath(), pe.fillStyle = ee.linearBg, pe.fill(), ee.drawPath(ie, ee.linear2), ee.drawPath(B, ee.linear1);
|
|
11241
11225
|
},
|
|
11242
11226
|
drawPath: function(A, ee) {
|
|
11243
|
-
var
|
|
11227
|
+
var ue = this, pe = ue.set, ke = ue.ctx, He = pe.scale, Se = pe.width * He;
|
|
11244
11228
|
ke.beginPath();
|
|
11245
11229
|
for (var P = 0, j = 0; j <= Se; P++, j += He)
|
|
11246
11230
|
j == 0 ? ke.moveTo(j, A[P]) : ke.lineTo(j, A[P]);
|
|
@@ -11248,7 +11232,7 @@ const A0 = /* @__PURE__ */ F0(oi);
|
|
|
11248
11232
|
}
|
|
11249
11233
|
}, a[m] = N;
|
|
11250
11234
|
});
|
|
11251
|
-
const
|
|
11235
|
+
const oi = {
|
|
11252
11236
|
components: { InlineSvg: Jt },
|
|
11253
11237
|
props: {
|
|
11254
11238
|
responsive: {
|
|
@@ -11335,25 +11319,25 @@ const li = {
|
|
|
11335
11319
|
type: this.blob.type,
|
|
11336
11320
|
lastModified: i
|
|
11337
11321
|
});
|
|
11338
|
-
|
|
11322
|
+
ni(x, (N) => {
|
|
11339
11323
|
this.text = N;
|
|
11340
11324
|
});
|
|
11341
11325
|
}
|
|
11342
11326
|
}
|
|
11343
|
-
},
|
|
11327
|
+
}, br = (a) => (Mr("data-v-e8535564"), a = a(), Rr(), a), li = {
|
|
11344
11328
|
key: 0,
|
|
11345
11329
|
class: "record-audio-mobile"
|
|
11346
|
-
},
|
|
11330
|
+
}, ui = /* @__PURE__ */ br(() => /* @__PURE__ */ Xe("div", { class: "recwave" }, null, -1)), di = {
|
|
11347
11331
|
key: 1,
|
|
11348
11332
|
class: "record-audio"
|
|
11349
|
-
},
|
|
11333
|
+
}, ci = { class: "main" }, fi = /* @__PURE__ */ br(() => /* @__PURE__ */ Xe("div", { class: "recwave" }, null, -1)), hi = { class: "duration" }, vi = {
|
|
11350
11334
|
key: 0,
|
|
11351
11335
|
class: "audio-item"
|
|
11352
|
-
},
|
|
11336
|
+
}, mi = ["src"], _i = {
|
|
11353
11337
|
key: 1,
|
|
11354
11338
|
class: "audio-text"
|
|
11355
|
-
},
|
|
11356
|
-
function
|
|
11339
|
+
}, pi = { class: "buttons" };
|
|
11340
|
+
function bi(a, i, y, x, N, m) {
|
|
11357
11341
|
const V = Bt("inline-svg");
|
|
11358
11342
|
return et(), nt("div", {
|
|
11359
11343
|
class: "wrap",
|
|
@@ -11361,7 +11345,7 @@ function wi(a, i, y, x, N, m) {
|
|
|
11361
11345
|
width: a.width
|
|
11362
11346
|
})
|
|
11363
11347
|
}, [
|
|
11364
|
-
a.isMobile ? (et(), nt("div",
|
|
11348
|
+
a.isMobile ? (et(), nt("div", li, [
|
|
11365
11349
|
a.pending ? (et(), nt("a", {
|
|
11366
11350
|
key: 1,
|
|
11367
11351
|
onClick: i[1] || (i[1] = (...A) => m.stop && m.stop(...A)),
|
|
@@ -11385,24 +11369,24 @@ function wi(a, i, y, x, N, m) {
|
|
|
11385
11369
|
height: 24
|
|
11386
11370
|
}, null, 8, ["src"])
|
|
11387
11371
|
])),
|
|
11388
|
-
|
|
11389
|
-
])) : (et(), nt("div",
|
|
11390
|
-
Xe("div",
|
|
11391
|
-
|
|
11392
|
-
Xe("div",
|
|
11372
|
+
ui
|
|
11373
|
+
])) : (et(), nt("div", di, [
|
|
11374
|
+
Xe("div", ci, [
|
|
11375
|
+
fi,
|
|
11376
|
+
Xe("div", hi, o0(a.duration), 1)
|
|
11393
11377
|
]),
|
|
11394
|
-
a.url && !a.isMobile ? (et(), nt("div",
|
|
11378
|
+
a.url && !a.isMobile ? (et(), nt("div", vi, [
|
|
11395
11379
|
Xe("audio", {
|
|
11396
11380
|
src: a.url,
|
|
11397
11381
|
controls: "",
|
|
11398
11382
|
ref: "audio"
|
|
11399
|
-
}, null, 8,
|
|
11383
|
+
}, null, 8, mi),
|
|
11400
11384
|
Xe("a", {
|
|
11401
11385
|
onClick: i[2] || (i[2] = (...A) => m.handleTranslate && m.handleTranslate(...A))
|
|
11402
11386
|
}, "转文本")
|
|
11403
11387
|
])) : Mt("", !0),
|
|
11404
|
-
a.text ? (et(), nt("div",
|
|
11405
|
-
Xe("div",
|
|
11388
|
+
a.text ? (et(), nt("div", _i, o0(a.text), 1)) : Mt("", !0),
|
|
11389
|
+
Xe("div", pi, [
|
|
11406
11390
|
a.pending ? (et(), nt("a", {
|
|
11407
11391
|
key: 1,
|
|
11408
11392
|
onClick: i[4] || (i[4] = (...A) => m.stop && m.stop(...A)),
|
|
@@ -11428,7 +11412,7 @@ function wi(a, i, y, x, N, m) {
|
|
|
11428
11412
|
])),
|
|
11429
11413
|
Xe("a", {
|
|
11430
11414
|
onClick: i[5] || (i[5] = (...A) => m.handleFinish && m.handleFinish(...A)),
|
|
11431
|
-
class:
|
|
11415
|
+
class: Ot({
|
|
11432
11416
|
btn: !0,
|
|
11433
11417
|
finish: !0,
|
|
11434
11418
|
disabled: !a.blob
|
|
@@ -11437,7 +11421,7 @@ function wi(a, i, y, x, N, m) {
|
|
|
11437
11421
|
a.text ? (et(), nt("a", {
|
|
11438
11422
|
key: 2,
|
|
11439
11423
|
onClick: i[6] || (i[6] = (...A) => m.handleFinishText && m.handleFinishText(...A)),
|
|
11440
|
-
class:
|
|
11424
|
+
class: Ot({
|
|
11441
11425
|
btn: !0,
|
|
11442
11426
|
finish: !0
|
|
11443
11427
|
})
|
|
@@ -11454,8 +11438,8 @@ function wi(a, i, y, x, N, m) {
|
|
|
11454
11438
|
})
|
|
11455
11439
|
], 4);
|
|
11456
11440
|
}
|
|
11457
|
-
const
|
|
11458
|
-
var
|
|
11441
|
+
const wi = /* @__PURE__ */ Gt(oi, [["render", bi], ["__scopeId", "data-v-e8535564"]]);
|
|
11442
|
+
var wr = { exports: {} };
|
|
11459
11443
|
(function(a) {
|
|
11460
11444
|
/**
|
|
11461
11445
|
* {@link https://github.com/muaz-khan/RecordRTC|RecordRTC} is a WebRTC JavaScript library for audio/video as well as screen activity recording. It supports Chrome, Firefox, Opera, Android, and Microsoft Edge. Platforms: Linux, Mac and Windows.
|
|
@@ -12136,7 +12120,7 @@ var br = { exports: {} };
|
|
|
12136
12120
|
var p = I;
|
|
12137
12121
|
if (je() && e.audio && typeof e.audio == "function") {
|
|
12138
12122
|
var k = _e(I, "video")[0];
|
|
12139
|
-
Se ? (p = new
|
|
12123
|
+
Se ? (p = new le(), p.addTrack(k), l && l === K && (l = Ye)) : (p = new le(), p.addTrack(k));
|
|
12140
12124
|
}
|
|
12141
12125
|
this.videoRecorder = new i(p, {
|
|
12142
12126
|
type: "video",
|
|
@@ -12324,14 +12308,14 @@ var br = { exports: {} };
|
|
|
12324
12308
|
typeof ee > "u" && (typeof webkitCancelAnimationFrame < "u" ? ee = webkitCancelAnimationFrame : typeof mozCancelAnimationFrame < "u" ? ee = mozCancelAnimationFrame : typeof msCancelAnimationFrame < "u" ? ee = msCancelAnimationFrame : typeof ee > "u" && (ee = function(I) {
|
|
12325
12309
|
clearTimeout(I);
|
|
12326
12310
|
}));
|
|
12327
|
-
var
|
|
12328
|
-
typeof
|
|
12311
|
+
var ue = window.AudioContext;
|
|
12312
|
+
typeof ue > "u" && (typeof webkitAudioContext < "u" && (ue = webkitAudioContext), typeof mozAudioContext < "u" && (ue = mozAudioContext));
|
|
12329
12313
|
var pe = window.URL;
|
|
12330
12314
|
typeof pe > "u" && typeof webkitURL < "u" && (pe = webkitURL), typeof navigator < "u" && typeof navigator.getUserMedia > "u" && (typeof navigator.webkitGetUserMedia < "u" && (navigator.getUserMedia = navigator.webkitGetUserMedia), typeof navigator.mozGetUserMedia < "u" && (navigator.getUserMedia = navigator.mozGetUserMedia));
|
|
12331
12315
|
var ke = navigator.userAgent.indexOf("Edge") !== -1 && (!!navigator.msSaveBlob || !!navigator.msSaveOrOpenBlob), He = !!window.opera || navigator.userAgent.indexOf("OPR/") !== -1, Se = navigator.userAgent.toLowerCase().indexOf("firefox") > -1 && "netscape" in window && / rv:/.test(navigator.userAgent), P = !He && !ke && !!navigator.webkitGetUserMedia || ie() || navigator.userAgent.toLowerCase().indexOf("chrome/") !== -1, j = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
12332
12316
|
j && !P && navigator.userAgent.indexOf("CriOS") !== -1 && (j = !1, P = !0);
|
|
12333
|
-
var
|
|
12334
|
-
typeof
|
|
12317
|
+
var le = window.MediaStream;
|
|
12318
|
+
typeof le > "u" && typeof webkitMediaStream < "u" && (le = webkitMediaStream), typeof le < "u" && typeof le.prototype.stop > "u" && (le.prototype.stop = function() {
|
|
12335
12319
|
this.getTracks().forEach(function(I) {
|
|
12336
12320
|
I.stop();
|
|
12337
12321
|
});
|
|
@@ -12405,7 +12389,7 @@ var br = { exports: {} };
|
|
|
12405
12389
|
* @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
|
|
12406
12390
|
*/
|
|
12407
12391
|
var Ge = {};
|
|
12408
|
-
typeof
|
|
12392
|
+
typeof ue < "u" ? Ge.AudioContext = ue : typeof webkitAudioContext < "u" && (Ge.AudioContext = webkitAudioContext), typeof i < "u" && (i.Storage = Ge);
|
|
12409
12393
|
function je() {
|
|
12410
12394
|
if (Se || j || ke)
|
|
12411
12395
|
return !0;
|
|
@@ -12454,7 +12438,7 @@ var br = { exports: {} };
|
|
|
12454
12438
|
}, e.type === "audio") {
|
|
12455
12439
|
if (_e(I, "video").length && _e(I, "audio").length) {
|
|
12456
12440
|
var l;
|
|
12457
|
-
navigator.mozGetUserMedia ? (l = new
|
|
12441
|
+
navigator.mozGetUserMedia ? (l = new le(), l.addTrack(_e(I, "audio")[0])) : l = new le(_e(I, "audio")), I = l;
|
|
12458
12442
|
}
|
|
12459
12443
|
(!e.mimeType || e.mimeType.toString().toLowerCase().indexOf("audio") === -1) && (e.mimeType = P ? "audio/webm" : "audio/ogg"), e.mimeType && e.mimeType.toString().toLowerCase() !== "audio/ogg" && navigator.mozGetUserMedia && (e.mimeType = "audio/ogg");
|
|
12460
12444
|
}
|
|
@@ -12814,7 +12798,7 @@ var br = { exports: {} };
|
|
|
12814
12798
|
var Ae;
|
|
12815
12799
|
"captureStream" in $ ? Ae = $.captureStream(25) : "mozCaptureStream" in $ ? Ae = $.mozCaptureStream(25) : "webkitCaptureStream" in $ && (Ae = $.webkitCaptureStream(25));
|
|
12816
12800
|
try {
|
|
12817
|
-
var ve = new
|
|
12801
|
+
var ve = new le();
|
|
12818
12802
|
ve.addTrack(_e(Ae, "video")[0]), Ae = ve;
|
|
12819
12803
|
} catch {
|
|
12820
12804
|
}
|
|
@@ -14003,9 +13987,9 @@ var br = { exports: {} };
|
|
|
14003
13987
|
}, this.blob = null;
|
|
14004
13988
|
}
|
|
14005
13989
|
typeof i < "u" && (i.WebAssemblyRecorder = Oe);
|
|
14006
|
-
})(
|
|
14007
|
-
var
|
|
14008
|
-
const
|
|
13990
|
+
})(wr);
|
|
13991
|
+
var gi = wr.exports;
|
|
13992
|
+
const yi = {
|
|
14009
13993
|
components: { InlineSvg: Jt },
|
|
14010
13994
|
props: {
|
|
14011
13995
|
responsive: {
|
|
@@ -14019,7 +14003,7 @@ const xi = {
|
|
|
14019
14003
|
audio: !0
|
|
14020
14004
|
}), this.$nextTick(() => {
|
|
14021
14005
|
this.prepareVideo();
|
|
14022
|
-
}), this.recorder = new
|
|
14006
|
+
}), this.recorder = new gi.RecordRTCPromisesHandler(this.stream, {
|
|
14023
14007
|
type: "video",
|
|
14024
14008
|
mimeType: "video/webm;codecs=vp9"
|
|
14025
14009
|
});
|
|
@@ -14068,14 +14052,14 @@ const xi = {
|
|
|
14068
14052
|
this.$emit("cancel");
|
|
14069
14053
|
}
|
|
14070
14054
|
}
|
|
14071
|
-
},
|
|
14055
|
+
}, xi = { class: "record-video" }, Si = {
|
|
14072
14056
|
muted: !1,
|
|
14073
14057
|
volume: 1,
|
|
14074
14058
|
controls: "",
|
|
14075
14059
|
ref: "video",
|
|
14076
14060
|
class: "video-item"
|
|
14077
|
-
},
|
|
14078
|
-
function
|
|
14061
|
+
}, Ti = { class: "buttons" };
|
|
14062
|
+
function Mi(a, i, y, x, N, m) {
|
|
14079
14063
|
const V = Bt("inline-svg");
|
|
14080
14064
|
return et(), nt("div", {
|
|
14081
14065
|
class: "wrap",
|
|
@@ -14083,9 +14067,9 @@ function Ri(a, i, y, x, N, m) {
|
|
|
14083
14067
|
width: a.width
|
|
14084
14068
|
})
|
|
14085
14069
|
}, [
|
|
14086
|
-
Xe("div",
|
|
14087
|
-
Xe("video",
|
|
14088
|
-
Xe("div",
|
|
14070
|
+
Xe("div", xi, [
|
|
14071
|
+
Xe("video", Si, null, 512),
|
|
14072
|
+
Xe("div", Ti, [
|
|
14089
14073
|
a.pending ? (et(), nt("a", {
|
|
14090
14074
|
key: 1,
|
|
14091
14075
|
onClick: i[1] || (i[1] = (...A) => m.stop && m.stop(...A)),
|
|
@@ -14111,7 +14095,7 @@ function Ri(a, i, y, x, N, m) {
|
|
|
14111
14095
|
])),
|
|
14112
14096
|
Xe("a", {
|
|
14113
14097
|
onClick: i[2] || (i[2] = (...A) => m.handleFinish && m.handleFinish(...A)),
|
|
14114
|
-
class:
|
|
14098
|
+
class: Ot(["btn", {
|
|
14115
14099
|
finish: !0,
|
|
14116
14100
|
disabled: !a.blob
|
|
14117
14101
|
}])
|
|
@@ -14128,7 +14112,7 @@ function Ri(a, i, y, x, N, m) {
|
|
|
14128
14112
|
})
|
|
14129
14113
|
], 4);
|
|
14130
14114
|
}
|
|
14131
|
-
const
|
|
14115
|
+
const Ri = /* @__PURE__ */ Gt(yi, [["render", Mi], ["__scopeId", "data-v-be255be7"]]), Ci = {
|
|
14132
14116
|
components: { InlineSvg: Jt },
|
|
14133
14117
|
props: {
|
|
14134
14118
|
responsive: {
|
|
@@ -14179,20 +14163,20 @@ const Ci = /* @__PURE__ */ Gt(xi, [["render", Ri], ["__scopeId", "data-v-be255be
|
|
|
14179
14163
|
this.$emit("cancel");
|
|
14180
14164
|
}
|
|
14181
14165
|
}
|
|
14182
|
-
},
|
|
14166
|
+
}, Ai = { class: "record-video" }, ki = { class: "record-content" }, Bi = {
|
|
14183
14167
|
muted: !0,
|
|
14184
14168
|
volume: 0,
|
|
14185
14169
|
autoplay: "",
|
|
14186
14170
|
controls: "",
|
|
14187
14171
|
ref: "video",
|
|
14188
14172
|
class: "video-item"
|
|
14189
|
-
},
|
|
14173
|
+
}, Ei = { class: "img-item" }, Di = ["src"], Li = {
|
|
14190
14174
|
width: "640",
|
|
14191
14175
|
height: "480",
|
|
14192
14176
|
style: { display: "none" },
|
|
14193
14177
|
ref: "canvas"
|
|
14194
|
-
},
|
|
14195
|
-
function
|
|
14178
|
+
}, Ii = { class: "buttons" };
|
|
14179
|
+
function Oi(a, i, y, x, N, m) {
|
|
14196
14180
|
const V = Bt("inline-svg");
|
|
14197
14181
|
return et(), nt("div", {
|
|
14198
14182
|
class: "wrap",
|
|
@@ -14200,18 +14184,18 @@ function Fi(a, i, y, x, N, m) {
|
|
|
14200
14184
|
width: a.width
|
|
14201
14185
|
})
|
|
14202
14186
|
}, [
|
|
14203
|
-
Xe("div",
|
|
14204
|
-
Xe("div",
|
|
14205
|
-
Xe("video",
|
|
14206
|
-
Xe("div",
|
|
14187
|
+
Xe("div", Ai, [
|
|
14188
|
+
Xe("div", ki, [
|
|
14189
|
+
Xe("video", Bi, null, 512),
|
|
14190
|
+
Xe("div", Ei, [
|
|
14207
14191
|
a.url ? (et(), nt("img", {
|
|
14208
14192
|
key: 0,
|
|
14209
14193
|
src: a.url
|
|
14210
|
-
}, null, 8,
|
|
14194
|
+
}, null, 8, Di)) : Mt("", !0)
|
|
14211
14195
|
])
|
|
14212
14196
|
]),
|
|
14213
|
-
Xe("canvas",
|
|
14214
|
-
Xe("div",
|
|
14197
|
+
Xe("canvas", Li, null, 512),
|
|
14198
|
+
Xe("div", Ii, [
|
|
14215
14199
|
a.pending ? Mt("", !0) : (et(), nt("a", {
|
|
14216
14200
|
key: 0,
|
|
14217
14201
|
onClick: i[0] || (i[0] = (...A) => m.start && m.start(...A)),
|
|
@@ -14226,7 +14210,7 @@ function Fi(a, i, y, x, N, m) {
|
|
|
14226
14210
|
])),
|
|
14227
14211
|
Xe("a", {
|
|
14228
14212
|
onClick: i[1] || (i[1] = (...A) => m.handleFinish && m.handleFinish(...A)),
|
|
14229
|
-
class:
|
|
14213
|
+
class: Ot(["btn", {
|
|
14230
14214
|
finish: !0,
|
|
14231
14215
|
disabled: !a.url
|
|
14232
14216
|
}])
|
|
@@ -14243,17 +14227,17 @@ function Fi(a, i, y, x, N, m) {
|
|
|
14243
14227
|
})
|
|
14244
14228
|
], 4);
|
|
14245
14229
|
}
|
|
14246
|
-
const
|
|
14230
|
+
const Fi = /* @__PURE__ */ Gt(Ci, [["render", Oi], ["__scopeId", "data-v-d1a4de11"]]), tr = "KEY_PENDING_NODES", Ni = "tree_title", Hi = {
|
|
14247
14231
|
name: "recordTree",
|
|
14248
14232
|
components: {
|
|
14249
14233
|
InlineSvg: Jt,
|
|
14250
|
-
TreeEditor:
|
|
14251
|
-
RecordTitle:
|
|
14252
|
-
RecordAudio:
|
|
14253
|
-
RecordVideo:
|
|
14254
|
-
RecordPhoto:
|
|
14234
|
+
TreeEditor: Na,
|
|
14235
|
+
RecordTitle: za,
|
|
14236
|
+
RecordAudio: wi,
|
|
14237
|
+
RecordVideo: Ri,
|
|
14238
|
+
RecordPhoto: Fi,
|
|
14255
14239
|
Popper: rr,
|
|
14256
|
-
ColorPanel:
|
|
14240
|
+
ColorPanel: sa
|
|
14257
14241
|
},
|
|
14258
14242
|
props: {
|
|
14259
14243
|
note: {
|
|
@@ -14377,12 +14361,12 @@ const Ni = /* @__PURE__ */ Gt(Ai, [["render", Fi], ["__scopeId", "data-v-d1a4de1
|
|
|
14377
14361
|
return !(a && (a.type || a.text && a.text !== "<p></p>"));
|
|
14378
14362
|
},
|
|
14379
14363
|
handleChangeTag(a) {
|
|
14380
|
-
|
|
14364
|
+
const i = {
|
|
14365
|
+
...this.note
|
|
14366
|
+
};
|
|
14367
|
+
a && this.note.tag_id !== a ? i.tag_id = a : delete i.tag_id, this.$emit("change", {
|
|
14381
14368
|
type: "tag",
|
|
14382
|
-
data:
|
|
14383
|
-
...this.note,
|
|
14384
|
-
...a
|
|
14385
|
-
}
|
|
14369
|
+
data: i
|
|
14386
14370
|
});
|
|
14387
14371
|
},
|
|
14388
14372
|
handleTitleFile(a) {
|
|
@@ -14474,9 +14458,9 @@ const Ni = /* @__PURE__ */ Gt(Ai, [["render", Fi], ["__scopeId", "data-v-d1a4de1
|
|
|
14474
14458
|
if (!a.length)
|
|
14475
14459
|
return;
|
|
14476
14460
|
const y = Array.from(a).map(async (V) => {
|
|
14477
|
-
const A =
|
|
14478
|
-
let
|
|
14479
|
-
switch ((A.mainType === "image" || A.mainType === "video") && (
|
|
14461
|
+
const A = nr(V.type), ee = URL.createObjectURL(V);
|
|
14462
|
+
let ue = {};
|
|
14463
|
+
switch ((A.mainType === "image" || A.mainType === "video") && (ue = await sr(V, A.mainType)), A.mainType) {
|
|
14480
14464
|
case "image":
|
|
14481
14465
|
case "audio":
|
|
14482
14466
|
case "video":
|
|
@@ -14486,7 +14470,7 @@ const Ni = /* @__PURE__ */ Gt(Ai, [["render", Fi], ["__scopeId", "data-v-d1a4de1
|
|
|
14486
14470
|
content: ee,
|
|
14487
14471
|
pending: !0,
|
|
14488
14472
|
hash: this.hash,
|
|
14489
|
-
size:
|
|
14473
|
+
size: ue
|
|
14490
14474
|
};
|
|
14491
14475
|
default:
|
|
14492
14476
|
return {
|
|
@@ -14499,14 +14483,14 @@ const Ni = /* @__PURE__ */ Gt(Ai, [["render", Fi], ["__scopeId", "data-v-d1a4de1
|
|
|
14499
14483
|
hash: this.hash
|
|
14500
14484
|
};
|
|
14501
14485
|
}
|
|
14502
|
-
}), x = await Promise.all(y), N = this.store.currentId ===
|
|
14486
|
+
}), x = await Promise.all(y), N = this.store.currentId === Ni;
|
|
14503
14487
|
i ? i(x) : x.forEach((V, A) => {
|
|
14504
14488
|
A === 0 && N ? this.handleChangeTitle(V) : this.$refs.treeEditor.appendNode(V);
|
|
14505
14489
|
});
|
|
14506
14490
|
const m = this.note.id;
|
|
14507
|
-
|
|
14508
|
-
A && A.forEach((ee,
|
|
14509
|
-
const pe = x[
|
|
14491
|
+
or.uploadFile(a, (V, A) => {
|
|
14492
|
+
A && A.forEach((ee, ue) => {
|
|
14493
|
+
const pe = x[ue], ke = ee.data, He = N && ue === 0;
|
|
14510
14494
|
if (ee.code === 0) {
|
|
14511
14495
|
const { pending: Se, hash: P, ...j } = pe;
|
|
14512
14496
|
switch (He && delete j.uuid, j.content = ke.url, this.$refs.treeEditor && this.noteId === m ? He ? this.handleChangeTitle(j) : this.$refs.treeEditor.updateNode(j) : this.savePendingNodes(m, j), pe.type) {
|
|
@@ -14539,28 +14523,28 @@ const Ni = /* @__PURE__ */ Gt(Ai, [["render", Fi], ["__scopeId", "data-v-d1a4de1
|
|
|
14539
14523
|
});
|
|
14540
14524
|
}
|
|
14541
14525
|
}
|
|
14542
|
-
},
|
|
14526
|
+
}, Yi = { class: "record-tree-main" }, Pi = { id: "root_tree" }, Vi = {
|
|
14543
14527
|
key: 0,
|
|
14544
14528
|
class: "record-tree-options"
|
|
14545
|
-
},
|
|
14529
|
+
}, Ui = { class: "record-tree-option-left" }, zi = {
|
|
14546
14530
|
key: 0,
|
|
14547
14531
|
class: "record-tree-option-item",
|
|
14548
14532
|
title: "字体颜色",
|
|
14549
14533
|
style: { position: "relative" }
|
|
14550
|
-
},
|
|
14534
|
+
}, qi = {
|
|
14551
14535
|
key: 0,
|
|
14552
14536
|
class: "record-tree-option-right"
|
|
14553
|
-
},
|
|
14554
|
-
function
|
|
14555
|
-
const V = Bt("RecordTitle"), A = Bt("TreeEditor"), ee = Bt("inline-svg"),
|
|
14537
|
+
}, Gi = { style: { display: "none" } };
|
|
14538
|
+
function ji(a, i, y, x, N, m) {
|
|
14539
|
+
const V = Bt("RecordTitle"), A = Bt("TreeEditor"), ee = Bt("inline-svg"), ue = Bt("ColorPanel"), pe = Bt("Popper"), ke = Bt("RecordAudio"), He = Bt("RecordVideo"), Se = Bt("RecordPhoto");
|
|
14556
14540
|
return et(), nt("div", {
|
|
14557
|
-
class:
|
|
14541
|
+
class: Ot({
|
|
14558
14542
|
"record-tree-container": !0,
|
|
14559
14543
|
"record-tree-mobile": N.isMobile
|
|
14560
14544
|
})
|
|
14561
14545
|
}, [
|
|
14562
14546
|
Xe("div", {
|
|
14563
|
-
class:
|
|
14547
|
+
class: Ot({
|
|
14564
14548
|
"record-tree": !0,
|
|
14565
14549
|
"record-tree-nobar": !y.bar
|
|
14566
14550
|
}),
|
|
@@ -14569,9 +14553,7 @@ function Wi(a, i, y, x, N, m) {
|
|
|
14569
14553
|
y.showTitle ? (et(), Vt(V, {
|
|
14570
14554
|
key: 0,
|
|
14571
14555
|
ref: "titleEditor",
|
|
14572
|
-
title: y.note.title,
|
|
14573
14556
|
tags: y.tags,
|
|
14574
|
-
tagId: y.note.tag_id,
|
|
14575
14557
|
readOnly: y.readOnly,
|
|
14576
14558
|
enableDbEnter: y.enableDbEnter,
|
|
14577
14559
|
note: y.note,
|
|
@@ -14580,9 +14562,9 @@ function Wi(a, i, y, x, N, m) {
|
|
|
14580
14562
|
onTagChange: m.handleChangeTag,
|
|
14581
14563
|
onFile: m.handleTitleFile,
|
|
14582
14564
|
onDbEnter: m.handleDbEnter
|
|
14583
|
-
}, null, 8, ["
|
|
14584
|
-
Xe("div",
|
|
14585
|
-
Xe("div",
|
|
14565
|
+
}, null, 8, ["tags", "readOnly", "enableDbEnter", "note", "onFocusContent", "onChange", "onTagChange", "onFile", "onDbEnter"])) : Mt("", !0),
|
|
14566
|
+
Xe("div", Yi, [
|
|
14567
|
+
Xe("div", Pi, [
|
|
14586
14568
|
yt(A, {
|
|
14587
14569
|
ref: "treeEditor",
|
|
14588
14570
|
nodes: N.curNodes,
|
|
@@ -14598,8 +14580,8 @@ function Wi(a, i, y, x, N, m) {
|
|
|
14598
14580
|
])
|
|
14599
14581
|
])
|
|
14600
14582
|
], 34),
|
|
14601
|
-
y.bar && !y.readOnly ? (et(), nt("div",
|
|
14602
|
-
Xe("div",
|
|
14583
|
+
y.bar && !y.readOnly ? (et(), nt("div", Vi, [
|
|
14584
|
+
Xe("div", Ui, [
|
|
14603
14585
|
Xe("div", {
|
|
14604
14586
|
class: "record-tree-option-item",
|
|
14605
14587
|
onClick: i[2] || (i[2] = (...P) => m.setToParent && m.setToParent(...P)),
|
|
@@ -14655,14 +14637,14 @@ function Wi(a, i, y, x, N, m) {
|
|
|
14655
14637
|
height: 20
|
|
14656
14638
|
}, null, 8, ["src"])
|
|
14657
14639
|
]),
|
|
14658
|
-
N.isMobile ? Mt("", !0) : (et(), nt("div",
|
|
14640
|
+
N.isMobile ? Mt("", !0) : (et(), nt("div", zi, [
|
|
14659
14641
|
yt(pe, {
|
|
14660
14642
|
placement: "top",
|
|
14661
14643
|
hover: !0,
|
|
14662
14644
|
arrow: !0
|
|
14663
14645
|
}, {
|
|
14664
14646
|
content: _0(() => [
|
|
14665
|
-
yt(
|
|
14647
|
+
yt(ue, { onChange: m.handleSetColor }, null, 8, ["onChange"])
|
|
14666
14648
|
]),
|
|
14667
14649
|
default: _0(() => [
|
|
14668
14650
|
yt(ee, {
|
|
@@ -14719,13 +14701,13 @@ function Wi(a, i, y, x, N, m) {
|
|
|
14719
14701
|
}, null, 8, ["src"])
|
|
14720
14702
|
])
|
|
14721
14703
|
]),
|
|
14722
|
-
N.isMobile ? (et(), nt("div",
|
|
14704
|
+
N.isMobile ? (et(), nt("div", qi, [
|
|
14723
14705
|
Xe("div", {
|
|
14724
14706
|
class: "record-tree-option-item",
|
|
14725
14707
|
onClick: i[11] || (i[11] = kt((...P) => m.handleComplete && m.handleComplete(...P), ["stop"]))
|
|
14726
14708
|
}, o0(N.modified || y.note.created_at ? "完成" : "取消"), 1)
|
|
14727
14709
|
])) : Mt("", !0),
|
|
14728
|
-
Xe("div",
|
|
14710
|
+
Xe("div", Gi, [
|
|
14729
14711
|
Xe("input", {
|
|
14730
14712
|
type: "file",
|
|
14731
14713
|
ref: "selectFile",
|
|
@@ -14768,11 +14750,11 @@ function Wi(a, i, y, x, N, m) {
|
|
|
14768
14750
|
}, null, 8, ["responsive", "onFinish"])) : Mt("", !0)
|
|
14769
14751
|
], 2);
|
|
14770
14752
|
}
|
|
14771
|
-
const
|
|
14753
|
+
const sn = /* @__PURE__ */ Gt(Hi, [["render", ji]]);
|
|
14772
14754
|
export {
|
|
14773
|
-
|
|
14774
|
-
|
|
14775
|
-
|
|
14776
|
-
|
|
14777
|
-
|
|
14755
|
+
wi as RecordAudio,
|
|
14756
|
+
Fi as RecordPhoto,
|
|
14757
|
+
sn as RecordTree,
|
|
14758
|
+
Ri as RecordVideo,
|
|
14759
|
+
Sa as TextEditor
|
|
14778
14760
|
};
|