@codernote/record-tree 2.4.0-beta.5 → 2.4.0
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 +379 -374
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-f3532545]{display:flex;align-items:center;position:relative}.node-div>div[data-v-f3532545]{flex:1}.node-icon[data-v-f3532545]{position:relative;width:24px;height:24px;border-radius:100%;box-sizing:border-box;border:6px solid #fff;background-color:#fff;cursor:pointer;align-self:flex-start}.node-icon-todo[data-v-f3532545]{border-radius:0}.node-icon .node-circle[data-v-f3532545]{display:block;position:absolute;width:7px;height:7px;left:50%;top:50%;transform:translate(-50%) translateY(-50%);border-radius:10px;background-color:#eee}.node-icon[data-v-f3532545]:hover{background-color:#ddd}.node-finished[data-v-f3532545]{text-decoration:line-through;color:#999}.node-ul[data-v-56e2e724]{background-color:#fff;margin:0;padding:0;list-style:none}.node-li[data-v-56e2e724]{padding:0;list-style:none;margin:0;line-height:1.5;position:relative;overflow:hidden}[data-v-56e2e724] .sublevel .node-li{margin-left:15px}[data-v-56e2e724] .drag-over-top:before{content:"";width:100%;height:1px;top:0;background-color:#eee;position:absolute}[data-v-56e2e724] .drag-over-center{background-color:#eee}[data-v-56e2e724] .drag-over-bottom:after{content:"";width:100%;height:1px;background-color:#eee;position:absolute;bottom:0}.collapsed>ul[data-v-56e2e724]{display:none}[data-v-56e2e724] .collapsed .node-icon .node-line{display:none}[data-v-56e2e724] .collapsed.has-child .node-icon{background-color:#ddd}.tree-title[data-v-56e2e724]{padding-left:25px;font-weight:700;outline:none;font-size:1.125rem;line-height:1.5;width:100%}[data-v-56e2e724] .node-li.has-child.collapsed .node-icon:after{background-color:#aaa}[data-v-56e2e724] .node-li.dragging .node-icon .node-line{display:none}[data-v-56e2e724] .has-child>.node-div>.node-icon .node-line{content:"";position:absolute;top:20px;left:50%;height:9999px;width:1px;background-color:#f2f2f2}[data-v-56e2e724] .has-child>.node-div>.node-icon:hover .node-line{background-color:var(--line-color)}.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{flex:1;border:none;outline:none;word-break:break-all;overflow:hidden}.record-tree .node-text a{color:#0076ff;cursor:pointer}.record-tree .node-text mark{background-color:transparent;text-decoration:underline;text-decoration-color:#9acd32;text-decoration-thickness:2px;text-underline-offset:2px}.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-08b1145f]{display:flex;align-items:center;position:relative}.node-div>div[data-v-08b1145f]{flex:1}.node-icon[data-v-08b1145f]{touch-action:manipulation;position:relative;width:24px;height:24px;border-radius:100%;box-sizing:border-box;border:6px solid #fff;background-color:#fff;cursor:pointer;align-self:flex-start}.node-icon-with-children[data-v-08b1145f]:before{content:"";position:absolute;top:-20px;right:-10px;bottom:-10px;left:-20px}.node-icon-todo[data-v-08b1145f]{border-radius:0}.node-icon .node-circle[data-v-08b1145f]{display:block;position:absolute;width:7px;height:7px;left:50%;top:50%;transform:translate(-50%) translateY(-50%);border-radius:10px;background-color:#eee}.node-icon[data-v-08b1145f]:hover{background-color:#ddd}.node-finished[data-v-08b1145f]{text-decoration:line-through;color:#999}.node-ul[data-v-5bc86c4d]{background-color:#fff;margin:0;padding:0;list-style:none}.node-li[data-v-5bc86c4d]{padding:0;list-style:none;margin:0;line-height:1.5;position:relative;overflow:hidden}[data-v-5bc86c4d] .sublevel .node-li{margin-left:15px}[data-v-5bc86c4d] .drag-over-top:before{content:"";width:100%;height:1px;top:0;background-color:#eee;position:absolute}[data-v-5bc86c4d] .drag-over-center{background-color:#eee}[data-v-5bc86c4d] .drag-over-bottom:after{content:"";width:100%;height:1px;background-color:#eee;position:absolute;bottom:0}.collapsed>ul[data-v-5bc86c4d]{display:none}[data-v-5bc86c4d] .collapsed .node-icon .node-line{display:none}[data-v-5bc86c4d] .collapsed.has-child .node-icon{background-color:#ddd}.tree-title[data-v-5bc86c4d]{padding-left:25px;font-weight:700;outline:none;font-size:1.125rem;line-height:1.5;width:100%}[data-v-5bc86c4d] .node-li.has-child.collapsed .node-icon:after{background-color:#aaa}[data-v-5bc86c4d] .node-li.dragging .node-icon .node-line{display:none}[data-v-5bc86c4d] .has-child>.node-div>.node-icon .node-line{content:"";position:absolute;top:20px;left:50%;height:9999px;width:1px;background-color:#f2f2f2}[data-v-5bc86c4d] .has-child>.node-div>.node-icon:hover .node-line{background-color:var(--line-color)}.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{flex:1;border:none;outline:none;word-break:break-all;overflow:hidden}.record-tree .node-text a{color:#0076ff;cursor:pointer}.record-tree .node-text mark{background-color:transparent;text-decoration:underline;text-decoration-color:#9acd32;text-decoration-thickness:2px;text-underline-offset:2px}.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 tr from "vue3-popper";
|
|
3
3
|
import { openBlock as et, createElementBlock as nt, createElementVNode as We, createVNode as yt, unref as Et, Fragment as v0, renderList as m0, normalizeStyle as Ut, reactive as yr, ref as qt, withModifiers as kt, normalizeClass as Lt, createCommentVNode as Rt, toDisplayString as o0, nextTick as j0, watch as W0, onMounted as xr, onBeforeUnmount as Sr, createBlock as Pt, resolveComponent as Bt, createSlots as Tr, withCtx as _0, pushScopeId as Rr, popScopeId as Mr } from "vue";
|
|
4
4
|
import Jt from "vue-inline-svg";
|
|
@@ -28,15 +28,15 @@ const Ur = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
28
28
|
color: ta,
|
|
29
29
|
clear: ra
|
|
30
30
|
}, jt = (a, i) => {
|
|
31
|
-
const
|
|
31
|
+
const b = a.__vccOpts || a;
|
|
32
32
|
for (const [x, N] of i)
|
|
33
|
-
|
|
34
|
-
return
|
|
33
|
+
b[x] = N;
|
|
34
|
+
return b;
|
|
35
35
|
}, aa = { class: "color-panel" }, ia = ["onClick"], na = {
|
|
36
36
|
__name: "index",
|
|
37
37
|
emits: ["change"],
|
|
38
38
|
setup(a, { emit: i }) {
|
|
39
|
-
const
|
|
39
|
+
const b = i, x = [
|
|
40
40
|
// "#ffffff", // 白色
|
|
41
41
|
"#ebebeb",
|
|
42
42
|
// 浅灰色
|
|
@@ -67,7 +67,7 @@ const Ur = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
67
67
|
// "#ff0080", // 粉红色
|
|
68
68
|
// "#0080ff", // 深蓝色
|
|
69
69
|
], N = (m) => {
|
|
70
|
-
|
|
70
|
+
b("change", m);
|
|
71
71
|
};
|
|
72
72
|
return (m, P) => (et(), nt("div", aa, [
|
|
73
73
|
We("ul", null, [
|
|
@@ -97,14 +97,14 @@ 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
|
|
101
|
-
if (!
|
|
100
|
+
const b = oa(a), x = ".node-text";
|
|
101
|
+
if (!b)
|
|
102
102
|
return null;
|
|
103
103
|
if (i) {
|
|
104
|
-
const N =
|
|
104
|
+
const N = b.querySelectorAll(x);
|
|
105
105
|
return N[N.length - 1];
|
|
106
106
|
}
|
|
107
|
-
return
|
|
107
|
+
return b.classList.contains(x.substring(1)) ? b : b == null ? void 0 : b.querySelector(x);
|
|
108
108
|
}
|
|
109
109
|
function s0() {
|
|
110
110
|
if (document.activeElement && document.activeElement.classList.contains("holder-right"))
|
|
@@ -112,12 +112,12 @@ function s0() {
|
|
|
112
112
|
let a = window.getSelection();
|
|
113
113
|
return a.rangeCount > 0 && a.getRangeAt(0).startOffset || 0;
|
|
114
114
|
}
|
|
115
|
-
function $t(a, i = 0,
|
|
115
|
+
function $t(a, i = 0, b = !1) {
|
|
116
116
|
if (!a)
|
|
117
117
|
return;
|
|
118
118
|
const x = a.querySelectorAll(".holder");
|
|
119
119
|
if (x.length) {
|
|
120
|
-
(
|
|
120
|
+
(b || i > 0 ? x[1] : x[0]).focus();
|
|
121
121
|
return;
|
|
122
122
|
}
|
|
123
123
|
if (!a.isContentEditable) {
|
|
@@ -128,7 +128,7 @@ function $t(a, i = 0, w = !1) {
|
|
|
128
128
|
N.removeAllRanges();
|
|
129
129
|
try {
|
|
130
130
|
let P = a;
|
|
131
|
-
if (a.childNodes.length > 0 ? P = a.childNodes[0] : (
|
|
131
|
+
if (a.childNodes.length > 0 ? P = a.childNodes[0] : (b || i > 0) && (P = document.createTextNode(""), a.appendChild(P)), b)
|
|
132
132
|
m.selectNodeContents(P), m.collapse(!1);
|
|
133
133
|
else {
|
|
134
134
|
const k = Math.min(i, P.length || 0);
|
|
@@ -147,8 +147,8 @@ function lr(a = !0) {
|
|
|
147
147
|
const i = document.querySelector(".record-tree-options");
|
|
148
148
|
if (!i)
|
|
149
149
|
return;
|
|
150
|
-
const
|
|
151
|
-
window.visualViewport.height <
|
|
150
|
+
const b = window.visualViewport.height, x = () => {
|
|
151
|
+
window.visualViewport.height < b && (i.style.display = "none", setTimeout(() => {
|
|
152
152
|
if (i.style.display = "", a) {
|
|
153
153
|
const m = Dt.currentId, P = Ht({ uuid: m });
|
|
154
154
|
la(P) || P.scrollIntoView({
|
|
@@ -191,8 +191,8 @@ const ua = ["contenteditable"], da = {
|
|
|
191
191
|
}
|
|
192
192
|
},
|
|
193
193
|
emits: ["remove", "change", "keydown", "focus"],
|
|
194
|
-
setup(a, { expose: i, emit:
|
|
195
|
-
const x = Dt.isMobile, N =
|
|
194
|
+
setup(a, { expose: i, emit: b }) {
|
|
195
|
+
const x = Dt.isMobile, N = b, m = a, P = qt(), k = qt(), ee = qt(), ue = qt(), pe = qt();
|
|
196
196
|
i({
|
|
197
197
|
focus: () => {
|
|
198
198
|
P.value.focus();
|
|
@@ -373,8 +373,8 @@ const ua = ["contenteditable"], da = {
|
|
|
373
373
|
addCommands() {
|
|
374
374
|
return {
|
|
375
375
|
removeEmptyTextStyle: () => ({ state: a, commands: i }) => {
|
|
376
|
-
const
|
|
377
|
-
return Object.entries(
|
|
376
|
+
const b = Yr(a, this.type);
|
|
377
|
+
return Object.entries(b).some(([, N]) => !!N) ? !0 : i.unsetMark(this.name);
|
|
378
378
|
}
|
|
379
379
|
};
|
|
380
380
|
}
|
|
@@ -469,10 +469,10 @@ const cr = (a) => a.tagName.toLowerCase() === "mark", I0 = () => {
|
|
|
469
469
|
I0();
|
|
470
470
|
const i = a.target.innerText;
|
|
471
471
|
if (B0[i]) {
|
|
472
|
-
const
|
|
473
|
-
|
|
472
|
+
const b = document.createElement("div");
|
|
473
|
+
b.classList.add(ur);
|
|
474
474
|
const { top: x, left: N, width: m } = a.target.getBoundingClientRect();
|
|
475
|
-
|
|
475
|
+
b.innerText = B0[i](), b.style.top = `${x}px`, b.style.left = `${N + parseInt(m / 2)}px`, document.body.appendChild(b);
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
478
|
}, Z0 = (a) => {
|
|
@@ -512,8 +512,8 @@ const cr = (a) => a.tagName.toLowerCase() === "mark", I0 = () => {
|
|
|
512
512
|
}
|
|
513
513
|
},
|
|
514
514
|
emits: ["change", "keydown", "focus", "blur"],
|
|
515
|
-
setup(a, { expose: i, emit:
|
|
516
|
-
const x = qt(), N = a, m =
|
|
515
|
+
setup(a, { expose: i, emit: b }) {
|
|
516
|
+
const x = qt(), N = a, m = b, P = qt(!1), k = Dr({
|
|
517
517
|
content: N.content,
|
|
518
518
|
editable: !N.readOnly,
|
|
519
519
|
extensions: [
|
|
@@ -634,8 +634,8 @@ const cr = (a) => a.tagName.toLowerCase() === "mark", I0 = () => {
|
|
|
634
634
|
}
|
|
635
635
|
},
|
|
636
636
|
emits: ["change", "keydown", "focus", "remove"],
|
|
637
|
-
setup(a, { expose: i, emit:
|
|
638
|
-
const x = qt(null), N = qt(null), m = a, P =
|
|
637
|
+
setup(a, { expose: i, emit: b }) {
|
|
638
|
+
const x = qt(null), N = qt(null), m = a, P = b;
|
|
639
639
|
function k(Se) {
|
|
640
640
|
P("keydown", Se);
|
|
641
641
|
}
|
|
@@ -750,18 +750,20 @@ const cr = (a) => a.tagName.toLowerCase() === "mark", I0 = () => {
|
|
|
750
750
|
getTagStyle: ir,
|
|
751
751
|
handleClick() {
|
|
752
752
|
const a = (/* @__PURE__ */ new Date()).getTime(), i = a - this.lastTapTime;
|
|
753
|
-
clearTimeout(this.tapTimeout)
|
|
753
|
+
clearTimeout(this.tapTimeout);
|
|
754
|
+
const b = 500;
|
|
755
|
+
i < b && i > 0 ? this.$emit("collapse", this.node) : this.tapTimeout = setTimeout(() => {
|
|
754
756
|
if (this.isTodo) {
|
|
755
|
-
const
|
|
757
|
+
const x = k0(this.node);
|
|
756
758
|
this.update({
|
|
757
759
|
...this.node,
|
|
758
760
|
ext: {
|
|
759
|
-
...
|
|
760
|
-
finished: !
|
|
761
|
+
...x,
|
|
762
|
+
finished: !x.finished
|
|
761
763
|
}
|
|
762
764
|
});
|
|
763
765
|
}
|
|
764
|
-
},
|
|
766
|
+
}, b), this.lastTapTime = a;
|
|
765
767
|
},
|
|
766
768
|
handleFocus() {
|
|
767
769
|
const a = this.node;
|
|
@@ -797,9 +799,9 @@ const cr = (a) => a.tagName.toLowerCase() === "mark", I0 = () => {
|
|
|
797
799
|
}
|
|
798
800
|
},
|
|
799
801
|
handleBackspace(a) {
|
|
800
|
-
var
|
|
802
|
+
var b;
|
|
801
803
|
const i = this.node;
|
|
802
|
-
a.preventDefault(), !((
|
|
804
|
+
a.preventDefault(), !((b = i.children) != null && b.length) && (this.$emit("toPrevFocus", i, !0), this.remove());
|
|
803
805
|
},
|
|
804
806
|
handleTab(a) {
|
|
805
807
|
this.$emit("tab", a, this.node);
|
|
@@ -808,12 +810,12 @@ const cr = (a) => a.tagName.toLowerCase() === "mark", I0 = () => {
|
|
|
808
810
|
const i = this.node;
|
|
809
811
|
if (a.ctrlKey) {
|
|
810
812
|
this.$emit("collapse", i, !1);
|
|
811
|
-
const
|
|
813
|
+
const b = {
|
|
812
814
|
text: "",
|
|
813
815
|
uuid: Yt()
|
|
814
816
|
};
|
|
815
|
-
i.children ? i.children.unshift(
|
|
816
|
-
this.$emit("toFocus",
|
|
817
|
+
i.children ? i.children.unshift(b) : i.children = [b], this.update(), this.$nextTick(() => {
|
|
818
|
+
this.$emit("toFocus", b);
|
|
817
819
|
});
|
|
818
820
|
} else
|
|
819
821
|
this.$emit("enter", i);
|
|
@@ -843,18 +845,19 @@ const cr = (a) => a.tagName.toLowerCase() === "mark", I0 = () => {
|
|
|
843
845
|
class: "node-div",
|
|
844
846
|
ref: "row"
|
|
845
847
|
};
|
|
846
|
-
function Ma(a, i,
|
|
848
|
+
function Ma(a, i, b, x, N, m) {
|
|
847
849
|
const P = Bt("Editor");
|
|
848
850
|
return et(), nt("div", Ra, [
|
|
849
851
|
We("span", {
|
|
850
852
|
class: Lt(["node-icon", {
|
|
851
|
-
"node-icon-todo": m.isTodo
|
|
853
|
+
"node-icon-todo": m.isTodo,
|
|
854
|
+
"node-icon-with-children": !!(b.node.children || []).length
|
|
852
855
|
}]),
|
|
853
856
|
onClick: i[0] || (i[0] = kt((...k) => m.handleClick && m.handleClick(...k), ["stop"]))
|
|
854
857
|
}, [
|
|
855
858
|
We("span", {
|
|
856
859
|
class: "node-circle",
|
|
857
|
-
style: Ut(m.getTagStyle(m.tag,
|
|
860
|
+
style: Ut(m.getTagStyle(m.tag, b.node))
|
|
858
861
|
}, null, 4),
|
|
859
862
|
We("span", {
|
|
860
863
|
class: "node-line",
|
|
@@ -868,9 +871,9 @@ function Ma(a, i, w, x, N, m) {
|
|
|
868
871
|
class: Lt({
|
|
869
872
|
"node-finished": m.finished
|
|
870
873
|
}),
|
|
871
|
-
readOnly:
|
|
872
|
-
data:
|
|
873
|
-
tags:
|
|
874
|
+
readOnly: b.readOnly,
|
|
875
|
+
data: b.node,
|
|
876
|
+
tags: b.tags,
|
|
874
877
|
onChange: m.update,
|
|
875
878
|
onKeydown: m.handleKeydown,
|
|
876
879
|
onFocus: m.handleFocus,
|
|
@@ -878,10 +881,10 @@ function Ma(a, i, w, x, N, m) {
|
|
|
878
881
|
}, null, 8, ["class", "readOnly", "data", "tags", "onChange", "onKeydown", "onFocus", "onRemove"])
|
|
879
882
|
], 512);
|
|
880
883
|
}
|
|
881
|
-
const Ca = /* @__PURE__ */ jt(Ta, [["render", Ma], ["__scopeId", "data-v-
|
|
884
|
+
const Ca = /* @__PURE__ */ jt(Ta, [["render", Ma], ["__scopeId", "data-v-08b1145f"]]);
|
|
882
885
|
function hr(a) {
|
|
883
886
|
var P;
|
|
884
|
-
let
|
|
887
|
+
let b = (((P = a.target) == null ? void 0 : P.querySelector(".node-div")) || a.target).getBoundingClientRect(), x = a.clientY, N = b.top + b.height / 3, m = b.top + b.height / 3 * 2;
|
|
885
888
|
return x < N ? "top" : x < m ? "center" : "bottom";
|
|
886
889
|
}
|
|
887
890
|
function Aa(a) {
|
|
@@ -894,17 +897,17 @@ function E0() {
|
|
|
894
897
|
}
|
|
895
898
|
function ka(a, i) {
|
|
896
899
|
var P;
|
|
897
|
-
const
|
|
898
|
-
if (!
|
|
900
|
+
const b = a.currentTarget, x = Dt.dragId ? document.getElementById(Dt.dragId) : null;
|
|
901
|
+
if (!b || Dt.dragId === i.uuid || x != null && x.querySelector(`[id="${i.uuid}"]`)) {
|
|
899
902
|
a.dataTransfer.dropEffect = "none";
|
|
900
903
|
return;
|
|
901
904
|
}
|
|
902
905
|
E0();
|
|
903
|
-
const N = hr(a), m = (P =
|
|
906
|
+
const N = hr(a), m = (P = b.querySelector(".node-div")) == null ? void 0 : P.classList;
|
|
904
907
|
m && m.add(`drag-over-${N}`);
|
|
905
908
|
}
|
|
906
909
|
function Ba(a) {
|
|
907
|
-
const
|
|
910
|
+
const b = new DOMParser().parseFromString(a, "text/html"), x = b.querySelector("img"), N = b.querySelector("video"), m = b.querySelector("audio");
|
|
908
911
|
return x ? {
|
|
909
912
|
type: "image",
|
|
910
913
|
content: x.src
|
|
@@ -916,10 +919,10 @@ function Ba(a) {
|
|
|
916
919
|
content: m.src
|
|
917
920
|
} : null;
|
|
918
921
|
}
|
|
919
|
-
function D0(a, i,
|
|
922
|
+
function D0(a, i, b = !0) {
|
|
920
923
|
var x;
|
|
921
924
|
return (x = i.children) != null && x.length ? i.children.some(
|
|
922
|
-
(N) => N.uuid === a.uuid || (
|
|
925
|
+
(N) => N.uuid === a.uuid || (b ? D0(a, N) : !1)
|
|
923
926
|
) : !1;
|
|
924
927
|
}
|
|
925
928
|
const Ea = {
|
|
@@ -980,8 +983,8 @@ const Ea = {
|
|
|
980
983
|
handleDragLeave: E0,
|
|
981
984
|
handleDragStart(a, i) {
|
|
982
985
|
a.currentTarget.classList.add("dragging"), a.dataTransfer.setData("dragNode", JSON.stringify(i)), X0.on("dragEnd", () => {
|
|
983
|
-
const
|
|
984
|
-
this.update(
|
|
986
|
+
const b = this.nodes.filter((x) => x !== i);
|
|
987
|
+
this.update(b);
|
|
985
988
|
}), this.store.dragId = i.uuid;
|
|
986
989
|
},
|
|
987
990
|
handleDragEnd(a) {
|
|
@@ -989,9 +992,9 @@ const Ea = {
|
|
|
989
992
|
},
|
|
990
993
|
handleDrop(a, i) {
|
|
991
994
|
a.stopPropagation();
|
|
992
|
-
const
|
|
993
|
-
if (E0(),
|
|
994
|
-
this.addFiles(
|
|
995
|
+
const b = a.dataTransfer.files;
|
|
996
|
+
if (E0(), b.length)
|
|
997
|
+
this.addFiles(b, i);
|
|
995
998
|
else {
|
|
996
999
|
let x = a.dataTransfer.getData("dragNode");
|
|
997
1000
|
const N = hr(a);
|
|
@@ -1020,18 +1023,18 @@ const Ea = {
|
|
|
1020
1023
|
}
|
|
1021
1024
|
},
|
|
1022
1025
|
handlePaste(a, i) {
|
|
1023
|
-
const
|
|
1024
|
-
|
|
1026
|
+
const b = a.clipboardData.files;
|
|
1027
|
+
b.length && (this.addFiles(b, i), a.preventDefault());
|
|
1025
1028
|
},
|
|
1026
1029
|
handleTab(a, i) {
|
|
1027
1030
|
var m;
|
|
1028
1031
|
a.preventDefault();
|
|
1029
|
-
const
|
|
1032
|
+
const b = [...this.nodes], x = b.findIndex((P) => P === i), N = s0();
|
|
1030
1033
|
if (a.shiftKey)
|
|
1031
1034
|
this.$emit("transfer", i);
|
|
1032
1035
|
else if (x > 0) {
|
|
1033
1036
|
const P = this.nodes[x - 1];
|
|
1034
|
-
(m = this.status[P.uuid]) != null && m.collapsed && (this.status[P.uuid].collapsed = !1), P.children ? P.children.push(i) : P.children = [i],
|
|
1037
|
+
(m = this.status[P.uuid]) != null && m.collapsed && (this.status[P.uuid].collapsed = !1), P.children ? P.children.push(i) : P.children = [i], b.splice(x, 1), this.update(b);
|
|
1035
1038
|
} else
|
|
1036
1039
|
a.target.focus();
|
|
1037
1040
|
this.$nextTick(() => {
|
|
@@ -1039,22 +1042,22 @@ const Ea = {
|
|
|
1039
1042
|
});
|
|
1040
1043
|
},
|
|
1041
1044
|
handleRemove(a) {
|
|
1042
|
-
const i = this.nodes.filter((
|
|
1045
|
+
const i = this.nodes.filter((b) => b.uuid !== a.uuid);
|
|
1043
1046
|
if (!this.allowEmpty && this.nodes.length === 1) {
|
|
1044
|
-
const
|
|
1047
|
+
const b = {
|
|
1045
1048
|
text: "",
|
|
1046
1049
|
uuid: Yt()
|
|
1047
1050
|
};
|
|
1048
|
-
i.push(
|
|
1049
|
-
this.toFocus(
|
|
1051
|
+
i.push(b), setTimeout(() => {
|
|
1052
|
+
this.toFocus(b);
|
|
1050
1053
|
}, 200);
|
|
1051
1054
|
}
|
|
1052
1055
|
this.update(i);
|
|
1053
1056
|
},
|
|
1054
1057
|
// 节点跨父级移动
|
|
1055
1058
|
handleTransfer(a, i) {
|
|
1056
|
-
const
|
|
1057
|
-
a.children = a.children.filter((N) => N !== i),
|
|
1059
|
+
const b = [...this.nodes], x = b.findIndex((N) => N === a);
|
|
1060
|
+
a.children = a.children.filter((N) => N !== i), b.splice(x + 1, 0, i), this.update(b);
|
|
1058
1061
|
},
|
|
1059
1062
|
handleEnter(a) {
|
|
1060
1063
|
this.enableDbEnter ? this.timeout ? (clearTimeout(this.timeout), this.timeout = null, this.handleDbEnter()) : this.timeout = setTimeout(() => {
|
|
@@ -1065,8 +1068,8 @@ const Ea = {
|
|
|
1065
1068
|
this.$emit("dbEnter");
|
|
1066
1069
|
},
|
|
1067
1070
|
keyEnter(a) {
|
|
1068
|
-
const i = this.nodes.findIndex((N) => N.uuid === a.uuid),
|
|
1069
|
-
|
|
1071
|
+
const i = this.nodes.findIndex((N) => N.uuid === a.uuid), b = [...this.nodes], x = { text: "", uuid: Yt() };
|
|
1072
|
+
b.splice(i + 1, 0, x), this.update(b), this.$nextTick(() => {
|
|
1070
1073
|
const N = Ht(x);
|
|
1071
1074
|
N == null || N.focus();
|
|
1072
1075
|
});
|
|
@@ -1074,24 +1077,24 @@ const Ea = {
|
|
|
1074
1077
|
// 聚焦上一节点
|
|
1075
1078
|
toPrevFocus(a, i = !1) {
|
|
1076
1079
|
var N;
|
|
1077
|
-
let
|
|
1080
|
+
let b = s0();
|
|
1078
1081
|
const x = this.nodes.findIndex((m) => m === a);
|
|
1079
1082
|
if (x === 0)
|
|
1080
1083
|
this.$emit("focusPrev", i);
|
|
1081
1084
|
else {
|
|
1082
|
-
const m = this.nodes[x - 1], P = ((N = m.children) == null ? void 0 : N.length) && !this.status[m.uuid].collapsed, k = Ht(this.nodes[x - 1], P), ee = i ||
|
|
1085
|
+
const m = this.nodes[x - 1], P = ((N = m.children) == null ? void 0 : N.length) && !this.status[m.uuid].collapsed, k = Ht(this.nodes[x - 1], P), ee = i || b === 1 / 0;
|
|
1083
1086
|
$t(
|
|
1084
1087
|
k,
|
|
1085
|
-
ee ? k.innerText.length :
|
|
1088
|
+
ee ? k.innerText.length : b,
|
|
1086
1089
|
ee
|
|
1087
1090
|
);
|
|
1088
1091
|
}
|
|
1089
1092
|
},
|
|
1090
1093
|
// 聚焦下一节点
|
|
1091
|
-
toNextFocus(a, i = !1,
|
|
1094
|
+
toNextFocus(a, i = !1, b = !1) {
|
|
1092
1095
|
var m;
|
|
1093
1096
|
const x = s0(), N = this.nodes.findIndex((P) => P === a);
|
|
1094
|
-
if (
|
|
1097
|
+
if (b && ((m = a.children) != null && m.length) && !this.status[a.uuid].collapsed) {
|
|
1095
1098
|
const P = Ht(a.children[0]);
|
|
1096
1099
|
$t(P, i ? 0 : x);
|
|
1097
1100
|
} else if (N + 1 >= this.nodes.length)
|
|
@@ -1103,11 +1106,11 @@ const Ea = {
|
|
|
1103
1106
|
},
|
|
1104
1107
|
// 聚焦到指定节点
|
|
1105
1108
|
toFocus(a, i = !1) {
|
|
1106
|
-
let
|
|
1109
|
+
let b = s0();
|
|
1107
1110
|
const x = Ht(a);
|
|
1108
|
-
$t(x,
|
|
1111
|
+
$t(x, b, i);
|
|
1109
1112
|
},
|
|
1110
|
-
addFiles(a, i,
|
|
1113
|
+
addFiles(a, i, b = 0) {
|
|
1111
1114
|
if (a) {
|
|
1112
1115
|
const N = Array.from(a).slice(0, 5), m = (P) => {
|
|
1113
1116
|
const k = [...this.nodes];
|
|
@@ -1117,7 +1120,7 @@ const Ea = {
|
|
|
1117
1120
|
...ue,
|
|
1118
1121
|
uuid: i.uuid,
|
|
1119
1122
|
children: i.children
|
|
1120
|
-
})) : k.splice(ee + 1 +
|
|
1123
|
+
})) : k.splice(ee + 1 + b, 0, ue), ee++;
|
|
1121
1124
|
}), this.update(k);
|
|
1122
1125
|
};
|
|
1123
1126
|
this.$emit("fileUpload", N, m);
|
|
@@ -1129,14 +1132,14 @@ const Ea = {
|
|
|
1129
1132
|
head(a = !1) {
|
|
1130
1133
|
const i = Ht(this.nodes[0]);
|
|
1131
1134
|
if (a && i) {
|
|
1132
|
-
const
|
|
1133
|
-
|
|
1135
|
+
const b = i.querySelector(".holder-right");
|
|
1136
|
+
b ? b.focus() : i.focus();
|
|
1134
1137
|
}
|
|
1135
1138
|
return i;
|
|
1136
1139
|
},
|
|
1137
1140
|
// dfs查找并追加节点
|
|
1138
|
-
appendNode(a, i = !1,
|
|
1139
|
-
const x = this.store.currentId, N = [...
|
|
1141
|
+
appendNode(a, i = !1, b = this.nodes) {
|
|
1142
|
+
const x = this.store.currentId, N = [...b];
|
|
1140
1143
|
if (!i && (!x || !document.getElementById(x))) {
|
|
1141
1144
|
const P = N[N.length - 1];
|
|
1142
1145
|
!(P != null && P.type) && !P.text ? N[N.length - 1] = {
|
|
@@ -1160,8 +1163,8 @@ const Ea = {
|
|
|
1160
1163
|
return i || this.update(N), N;
|
|
1161
1164
|
},
|
|
1162
1165
|
// dfs查找并更新节点
|
|
1163
|
-
updateNode(a, i = !1,
|
|
1164
|
-
const x = [...
|
|
1166
|
+
updateNode(a, i = !1, b = this.nodes) {
|
|
1167
|
+
const x = [...b], N = x.findIndex((m) => m.uuid === a.uuid);
|
|
1165
1168
|
return N >= 0 ? x[N] = a : x.forEach((m) => {
|
|
1166
1169
|
var P;
|
|
1167
1170
|
(P = m.children) != null && P.length && (m.children = this.updateNode(a, !0, m.children));
|
|
@@ -1175,8 +1178,8 @@ const Ea = {
|
|
|
1175
1178
|
let a = !1;
|
|
1176
1179
|
this.nodes.forEach((i) => {
|
|
1177
1180
|
if (i.uuid || (i.uuid = Yt(), a = !0), Aa(i) && !i.type) {
|
|
1178
|
-
const
|
|
1179
|
-
|
|
1181
|
+
const b = Ba(i.text);
|
|
1182
|
+
b && (i.type = b.type, i.content = b.content), a = !0;
|
|
1180
1183
|
}
|
|
1181
1184
|
}), a ? this.update() : this.ensureStatus(this.nodes);
|
|
1182
1185
|
},
|
|
@@ -1194,7 +1197,7 @@ const Ea = {
|
|
|
1194
1197
|
// 更新node节点
|
|
1195
1198
|
// 用于Node组件触发change
|
|
1196
1199
|
handleNodeChange(a) {
|
|
1197
|
-
const i = this.nodes.map((
|
|
1200
|
+
const i = this.nodes.map((b) => b.uuid === a.uuid ? a : b);
|
|
1198
1201
|
this.update(i);
|
|
1199
1202
|
},
|
|
1200
1203
|
update(a = this.nodes) {
|
|
@@ -1215,10 +1218,10 @@ const Ea = {
|
|
|
1215
1218
|
sublevel: !0
|
|
1216
1219
|
})
|
|
1217
1220
|
}, Oa = ["id", "onDragstart", "onDragover", "onDragend", "onDrop", "onDragleave", "onPaste"];
|
|
1218
|
-
function Fa(a, i,
|
|
1221
|
+
function Fa(a, i, b, x, N, m) {
|
|
1219
1222
|
const P = Bt("Node"), k = Bt("tree-editor");
|
|
1220
|
-
return
|
|
1221
|
-
(et(!0), nt(v0, null, m0(m.filterNodes(
|
|
1223
|
+
return b.readOnly ? (et(), nt("ul", Da, [
|
|
1224
|
+
(et(!0), nt(v0, null, m0(m.filterNodes(b.nodes), (ee) => (et(), nt("li", {
|
|
1222
1225
|
key: ee.uuid,
|
|
1223
1226
|
id: `${ee.uuid}`,
|
|
1224
1227
|
class: Lt({
|
|
@@ -1229,9 +1232,11 @@ function Fa(a, i, w, x, N, m) {
|
|
|
1229
1232
|
}, [
|
|
1230
1233
|
yt(P, {
|
|
1231
1234
|
readOnly: "",
|
|
1235
|
+
tags: b.tags,
|
|
1232
1236
|
node: ee,
|
|
1233
|
-
onCollapse: m.handleCollapse
|
|
1234
|
-
|
|
1237
|
+
onCollapse: m.handleCollapse,
|
|
1238
|
+
onChange: m.handleNodeChange
|
|
1239
|
+
}, null, 8, ["tags", "node", "onCollapse", "onChange"]),
|
|
1235
1240
|
(ee.children || []).length ? (et(), Pt(k, {
|
|
1236
1241
|
key: 0,
|
|
1237
1242
|
readOnly: "",
|
|
@@ -1240,7 +1245,7 @@ function Fa(a, i, w, x, N, m) {
|
|
|
1240
1245
|
}, null, 8, ["nodes"])) : Rt("", !0)
|
|
1241
1246
|
], 10, La))), 128))
|
|
1242
1247
|
])) : (et(), nt("ul", Ia, [
|
|
1243
|
-
(et(!0), nt(v0, null, m0(m.filterNodes(
|
|
1248
|
+
(et(!0), nt(v0, null, m0(m.filterNodes(b.nodes), (ee) => (et(), nt("li", {
|
|
1244
1249
|
key: ee.uuid,
|
|
1245
1250
|
id: `${ee.uuid}`,
|
|
1246
1251
|
ref_for: !0,
|
|
@@ -1260,7 +1265,7 @@ function Fa(a, i, w, x, N, m) {
|
|
|
1260
1265
|
}, [
|
|
1261
1266
|
yt(P, {
|
|
1262
1267
|
node: ee,
|
|
1263
|
-
tags:
|
|
1268
|
+
tags: b.tags,
|
|
1264
1269
|
onChange: m.handleNodeChange,
|
|
1265
1270
|
onToPrevFocus: m.toPrevFocus,
|
|
1266
1271
|
onToNextFocus: m.toNextFocus,
|
|
@@ -1273,9 +1278,9 @@ function Fa(a, i, w, x, N, m) {
|
|
|
1273
1278
|
(ee.children || []).length ? (et(), Pt(k, {
|
|
1274
1279
|
key: 0,
|
|
1275
1280
|
nodes: ee.children,
|
|
1276
|
-
tags:
|
|
1277
|
-
enableDbEnter:
|
|
1278
|
-
hash:
|
|
1281
|
+
tags: b.tags,
|
|
1282
|
+
enableDbEnter: b.enableDbEnter,
|
|
1283
|
+
hash: b.hash,
|
|
1279
1284
|
allowEmpty: !0,
|
|
1280
1285
|
sublevel: !0,
|
|
1281
1286
|
onChange: (ue) => m.handleChangeChildren(ee, ue),
|
|
@@ -1288,7 +1293,7 @@ function Fa(a, i, w, x, N, m) {
|
|
|
1288
1293
|
], 42, Oa))), 128))
|
|
1289
1294
|
]));
|
|
1290
1295
|
}
|
|
1291
|
-
const Na = /* @__PURE__ */ jt(Ea, [["render", Fa], ["__scopeId", "data-v-
|
|
1296
|
+
const Na = /* @__PURE__ */ jt(Ea, [["render", Fa], ["__scopeId", "data-v-5bc86c4d"]]), Ha = {
|
|
1292
1297
|
show: !0,
|
|
1293
1298
|
// tag总开关,false时取消tag所有功能
|
|
1294
1299
|
tagSize: 20,
|
|
@@ -1385,13 +1390,13 @@ const Na = /* @__PURE__ */ jt(Ea, [["render", Fa], ["__scopeId", "data-v-56e2e72
|
|
|
1385
1390
|
},
|
|
1386
1391
|
// 根据svg的icon名找到svg实体
|
|
1387
1392
|
getSvgUrl(a) {
|
|
1388
|
-
const i = Br.find((
|
|
1393
|
+
const i = Br.find((b) => b.name === a.icon);
|
|
1389
1394
|
return (i == null ? void 0 : i.value) || "";
|
|
1390
1395
|
},
|
|
1391
1396
|
// 选择tag图标
|
|
1392
1397
|
tagSelect(a) {
|
|
1393
|
-
const i = { ...this.note },
|
|
1394
|
-
i.tag_id ===
|
|
1398
|
+
const i = { ...this.note }, b = +a.created_at;
|
|
1399
|
+
i.tag_id === b ? delete i.tag_id : i.tag_id = b, this.$emit("change", i.title, i);
|
|
1395
1400
|
},
|
|
1396
1401
|
handleTitleFocus() {
|
|
1397
1402
|
Dt.currentId = "tree_title", this.isMobile && lr(!1);
|
|
@@ -1438,7 +1443,7 @@ const Na = /* @__PURE__ */ jt(Ea, [["render", Fa], ["__scopeId", "data-v-56e2e72
|
|
|
1438
1443
|
}
|
|
1439
1444
|
},
|
|
1440
1445
|
async uploadFile(a) {
|
|
1441
|
-
const i = nr(a.type),
|
|
1446
|
+
const i = nr(a.type), b = URL.createObjectURL(a);
|
|
1442
1447
|
let x = {};
|
|
1443
1448
|
switch ((i.mainType === "image" || i.mainType === "video") && (x = await sr(a, i.mainType)), i.mainType) {
|
|
1444
1449
|
case "image":
|
|
@@ -1446,7 +1451,7 @@ const Na = /* @__PURE__ */ jt(Ea, [["render", Fa], ["__scopeId", "data-v-56e2e72
|
|
|
1446
1451
|
case "video":
|
|
1447
1452
|
this.handleChange({
|
|
1448
1453
|
type: i.mainType,
|
|
1449
|
-
content:
|
|
1454
|
+
content: b,
|
|
1450
1455
|
size: x
|
|
1451
1456
|
});
|
|
1452
1457
|
break;
|
|
@@ -1454,7 +1459,7 @@ const Na = /* @__PURE__ */ jt(Ea, [["render", Fa], ["__scopeId", "data-v-56e2e72
|
|
|
1454
1459
|
this.handleChange({
|
|
1455
1460
|
type: "file",
|
|
1456
1461
|
name: a.name,
|
|
1457
|
-
content:
|
|
1462
|
+
content: b,
|
|
1458
1463
|
size: a.size
|
|
1459
1464
|
});
|
|
1460
1465
|
}
|
|
@@ -1470,10 +1475,10 @@ const Na = /* @__PURE__ */ jt(Ea, [["render", Fa], ["__scopeId", "data-v-56e2e72
|
|
|
1470
1475
|
}
|
|
1471
1476
|
}
|
|
1472
1477
|
}, Va = { class: "record-tree-title-bar" }, Pa = ["onClick"];
|
|
1473
|
-
function Ua(a, i,
|
|
1478
|
+
function Ua(a, i, b, x, N, m) {
|
|
1474
1479
|
const P = Bt("Popper"), k = Bt("Editor");
|
|
1475
1480
|
return et(), nt("div", Va, [
|
|
1476
|
-
|
|
1481
|
+
b.tags.length ? (et(), Pt(P, { key: 0 }, Tr({
|
|
1477
1482
|
default: _0(() => [
|
|
1478
1483
|
We("span", {
|
|
1479
1484
|
class: "record-tree-popper-reference",
|
|
@@ -1482,22 +1487,22 @@ function Ua(a, i, w, x, N, m) {
|
|
|
1482
1487
|
left: N.tagConfig.tagL,
|
|
1483
1488
|
width: N.tagConfig.tagSize + "px",
|
|
1484
1489
|
height: N.tagConfig.tagSize + "px",
|
|
1485
|
-
...m.getTagStyleById(
|
|
1490
|
+
...m.getTagStyleById(b.note.tag_id, b.tags, b.note)
|
|
1486
1491
|
})
|
|
1487
1492
|
}, null, 4)
|
|
1488
1493
|
]),
|
|
1489
1494
|
_: 2
|
|
1490
1495
|
}, [
|
|
1491
|
-
|
|
1496
|
+
b.readOnly ? void 0 : {
|
|
1492
1497
|
name: "content",
|
|
1493
1498
|
fn: _0(() => [
|
|
1494
1499
|
We("div", {
|
|
1495
1500
|
class: "record-tree-popper-content",
|
|
1496
1501
|
style: Ut({ width: N.tagConfig.popW, height: N.tagConfig.popH })
|
|
1497
1502
|
}, [
|
|
1498
|
-
(et(!0), nt(v0, null, m0(
|
|
1503
|
+
(et(!0), nt(v0, null, m0(b.tags, (ee) => (et(), nt("span", {
|
|
1499
1504
|
class: Lt(["record-tree-popper-content-item", {
|
|
1500
|
-
active:
|
|
1505
|
+
active: b.note.tag_id === ee.created_at
|
|
1501
1506
|
}]),
|
|
1502
1507
|
key: ee.created_at,
|
|
1503
1508
|
onClick: (ue) => m.tagSelect(ee)
|
|
@@ -1523,9 +1528,9 @@ function Ua(a, i, w, x, N, m) {
|
|
|
1523
1528
|
"record-tree-title-finished": m.noteFinished
|
|
1524
1529
|
}]),
|
|
1525
1530
|
placeholder: "请输入标题",
|
|
1526
|
-
readOnly:
|
|
1531
|
+
readOnly: b.readOnly,
|
|
1527
1532
|
data: m.titleObj,
|
|
1528
|
-
tags:
|
|
1533
|
+
tags: b.tags,
|
|
1529
1534
|
onChange: m.handleChange,
|
|
1530
1535
|
onRemove: m.handleRemove,
|
|
1531
1536
|
onFocus: m.handleTitleFocus,
|
|
@@ -1546,21 +1551,21 @@ function qa(a) {
|
|
|
1546
1551
|
return a;
|
|
1547
1552
|
var i = a.default;
|
|
1548
1553
|
if (typeof i == "function") {
|
|
1549
|
-
var
|
|
1554
|
+
var b = function x() {
|
|
1550
1555
|
return this instanceof x ? Reflect.construct(i, arguments, this.constructor) : i.apply(this, arguments);
|
|
1551
1556
|
};
|
|
1552
|
-
|
|
1557
|
+
b.prototype = i.prototype;
|
|
1553
1558
|
} else
|
|
1554
|
-
|
|
1555
|
-
return Object.defineProperty(
|
|
1559
|
+
b = {};
|
|
1560
|
+
return Object.defineProperty(b, "__esModule", { value: !0 }), Object.keys(a).forEach(function(x) {
|
|
1556
1561
|
var N = Object.getOwnPropertyDescriptor(a, x);
|
|
1557
|
-
Object.defineProperty(
|
|
1562
|
+
Object.defineProperty(b, x, N.get ? N : {
|
|
1558
1563
|
enumerable: !0,
|
|
1559
1564
|
get: function() {
|
|
1560
1565
|
return a[x];
|
|
1561
1566
|
}
|
|
1562
1567
|
});
|
|
1563
|
-
}),
|
|
1568
|
+
}), b;
|
|
1564
1569
|
}
|
|
1565
1570
|
var vr = { exports: {} };
|
|
1566
1571
|
function Ga(a) {
|
|
@@ -1574,10 +1579,10 @@ const ja = {}, Wa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1574
1579
|
var Q0;
|
|
1575
1580
|
function p0() {
|
|
1576
1581
|
return Q0 || (Q0 = 1, function(a, i) {
|
|
1577
|
-
(function(
|
|
1582
|
+
(function(b, x) {
|
|
1578
1583
|
a.exports = x();
|
|
1579
1584
|
})(dt, function() {
|
|
1580
|
-
var
|
|
1585
|
+
var b = b || function(x, N) {
|
|
1581
1586
|
var m;
|
|
1582
1587
|
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")
|
|
1583
1588
|
try {
|
|
@@ -2068,18 +2073,18 @@ function p0() {
|
|
|
2068
2073
|
var Be = ee.algo = {};
|
|
2069
2074
|
return ee;
|
|
2070
2075
|
}(Math);
|
|
2071
|
-
return
|
|
2076
|
+
return b;
|
|
2072
2077
|
});
|
|
2073
2078
|
}(R0)), R0.exports;
|
|
2074
2079
|
}
|
|
2075
2080
|
var M0 = { exports: {} }, $0;
|
|
2076
2081
|
function Ka() {
|
|
2077
2082
|
return $0 || ($0 = 1, function(a, i) {
|
|
2078
|
-
(function(
|
|
2083
|
+
(function(b, x) {
|
|
2079
2084
|
a.exports = x(p0());
|
|
2080
|
-
})(dt, function(
|
|
2085
|
+
})(dt, function(b) {
|
|
2081
2086
|
return function(x) {
|
|
2082
|
-
var N =
|
|
2087
|
+
var N = b, m = N.lib, P = m.WordArray, k = m.Hasher, ee = N.algo, ue = [], pe = [];
|
|
2083
2088
|
(function() {
|
|
2084
2089
|
function Se(Be) {
|
|
2085
2090
|
for (var B = x.sqrt(Be), ie = 2; ie <= B; ie++)
|
|
@@ -2120,18 +2125,18 @@ function Ka() {
|
|
|
2120
2125
|
}
|
|
2121
2126
|
});
|
|
2122
2127
|
N.SHA256 = k._createHelper(He), N.HmacSHA256 = k._createHmacHelper(He);
|
|
2123
|
-
}(Math),
|
|
2128
|
+
}(Math), b.SHA256;
|
|
2124
2129
|
});
|
|
2125
2130
|
}(M0)), M0.exports;
|
|
2126
2131
|
}
|
|
2127
2132
|
var C0 = { exports: {} }, J0;
|
|
2128
2133
|
function Za() {
|
|
2129
2134
|
return J0 || (J0 = 1, function(a, i) {
|
|
2130
|
-
(function(
|
|
2135
|
+
(function(b, x) {
|
|
2131
2136
|
a.exports = x(p0());
|
|
2132
|
-
})(dt, function(
|
|
2137
|
+
})(dt, function(b) {
|
|
2133
2138
|
(function() {
|
|
2134
|
-
var x =
|
|
2139
|
+
var x = b, N = x.lib, m = N.Base, P = x.enc, k = P.Utf8, ee = x.algo;
|
|
2135
2140
|
ee.HMAC = m.extend({
|
|
2136
2141
|
/**
|
|
2137
2142
|
* Initializes a newly created HMAC.
|
|
@@ -2203,21 +2208,21 @@ function Za() {
|
|
|
2203
2208
|
}(C0)), C0.exports;
|
|
2204
2209
|
}
|
|
2205
2210
|
(function(a, i) {
|
|
2206
|
-
(function(
|
|
2211
|
+
(function(b, x, N) {
|
|
2207
2212
|
a.exports = x(p0(), Ka(), Za());
|
|
2208
|
-
})(dt, function(
|
|
2209
|
-
return
|
|
2213
|
+
})(dt, function(b) {
|
|
2214
|
+
return b.HmacSHA256;
|
|
2210
2215
|
});
|
|
2211
2216
|
})(vr);
|
|
2212
2217
|
var Qa = vr.exports;
|
|
2213
2218
|
const $a = /* @__PURE__ */ O0(Qa);
|
|
2214
2219
|
var mr = { exports: {} };
|
|
2215
2220
|
(function(a, i) {
|
|
2216
|
-
(function(
|
|
2221
|
+
(function(b, x) {
|
|
2217
2222
|
a.exports = x(p0());
|
|
2218
|
-
})(dt, function(
|
|
2223
|
+
})(dt, function(b) {
|
|
2219
2224
|
return function() {
|
|
2220
|
-
var x =
|
|
2225
|
+
var x = b, N = x.lib, m = N.WordArray, P = x.enc;
|
|
2221
2226
|
P.Base64 = {
|
|
2222
2227
|
/**
|
|
2223
2228
|
* Converts a word array to a Base64 string.
|
|
@@ -2281,37 +2286,37 @@ var mr = { exports: {} };
|
|
|
2281
2286
|
}
|
|
2282
2287
|
return m.create(ke, He);
|
|
2283
2288
|
}
|
|
2284
|
-
}(),
|
|
2289
|
+
}(), b.enc.Base64;
|
|
2285
2290
|
});
|
|
2286
2291
|
})(mr);
|
|
2287
2292
|
var Ja = mr.exports;
|
|
2288
2293
|
const ei = /* @__PURE__ */ O0(Ja);
|
|
2289
2294
|
let Vt, t0 = "", h0 = "", _r = null;
|
|
2290
2295
|
function ti() {
|
|
2291
|
-
var a = "wss://iat-api.xfyun.cn/v2/iat", i = "iat-api.xfyun.cn",
|
|
2296
|
+
var a = "wss://iat-api.xfyun.cn/v2/iat", i = "iat-api.xfyun.cn", b = "4f2bbe08d7ee54da888cfd009514e89f", x = "NTc3MWNlNDNiZWFmMGM2Yzk0ZjRlZjdi", N = (/* @__PURE__ */ new Date()).toGMTString(), m = "hmac-sha256", P = "host date request-line", k = `host: ${i}
|
|
2292
2297
|
date: ${N}
|
|
2293
|
-
GET /v2/iat HTTP/1.1`, ee = $a(k, x), ue = ei.stringify(ee), pe = `api_key="${
|
|
2298
|
+
GET /v2/iat HTTP/1.1`, ee = $a(k, x), ue = ei.stringify(ee), pe = `api_key="${b}", algorithm="${m}", headers="${P}", signature="${ue}"`, ke = btoa(pe);
|
|
2294
2299
|
return a = `${a}?authorization=${ke}&date=${N}&host=${i}`, a;
|
|
2295
2300
|
}
|
|
2296
2301
|
function ri(a) {
|
|
2297
|
-
for (var i = "",
|
|
2298
|
-
i += String.fromCharCode(
|
|
2302
|
+
for (var i = "", b = new Uint8Array(a), x = b.byteLength, N = 0; N < x; N++)
|
|
2303
|
+
i += String.fromCharCode(b[N]);
|
|
2299
2304
|
return i;
|
|
2300
2305
|
}
|
|
2301
2306
|
function ai(a) {
|
|
2302
2307
|
let i = JSON.parse(a);
|
|
2303
2308
|
if (i.data && i.data.result) {
|
|
2304
|
-
let
|
|
2309
|
+
let b = i.data.result, x = "", N = b.ws;
|
|
2305
2310
|
for (let m = 0; m < N.length; m++)
|
|
2306
2311
|
x = x + N[m].cw[0].w;
|
|
2307
|
-
|
|
2312
|
+
b.pgs ? (b.pgs === "apd" && (t0 = h0), h0 = t0 + x) : t0 = t0 + x, _r(h0 || t0 || "");
|
|
2308
2313
|
}
|
|
2309
2314
|
i.code === 0 && i.data.status === 2 && Vt.close(), i.code !== 0 && (Vt.close(), console.error(i));
|
|
2310
2315
|
}
|
|
2311
2316
|
function ii(a) {
|
|
2312
2317
|
const i = ti();
|
|
2313
2318
|
Vt = new WebSocket(i), Vt.onopen = () => {
|
|
2314
|
-
var
|
|
2319
|
+
var b = {
|
|
2315
2320
|
common: {
|
|
2316
2321
|
app_id: "c54ef25c"
|
|
2317
2322
|
},
|
|
@@ -2328,17 +2333,17 @@ function ii(a) {
|
|
|
2328
2333
|
encoding: "lame"
|
|
2329
2334
|
}
|
|
2330
2335
|
};
|
|
2331
|
-
Vt.send(JSON.stringify(
|
|
2332
|
-
}, Vt.onmessage = (
|
|
2333
|
-
ai(
|
|
2334
|
-
}, Vt.onerror = (
|
|
2335
|
-
console.error(
|
|
2336
|
+
Vt.send(JSON.stringify(b)), a();
|
|
2337
|
+
}, Vt.onmessage = (b) => {
|
|
2338
|
+
ai(b.data);
|
|
2339
|
+
}, Vt.onerror = (b) => {
|
|
2340
|
+
console.error(b);
|
|
2336
2341
|
};
|
|
2337
2342
|
}
|
|
2338
2343
|
function ni(a, i) {
|
|
2339
2344
|
Vt = null, t0 = "", h0 = "", _r = i, ii(() => {
|
|
2340
|
-
const
|
|
2341
|
-
|
|
2345
|
+
const b = new FileReader();
|
|
2346
|
+
b.readAsArrayBuffer(a), b.onload = (x) => {
|
|
2342
2347
|
const N = ri(x.target.result);
|
|
2343
2348
|
let m = 0;
|
|
2344
2349
|
for (; m < N.length; ) {
|
|
@@ -2356,7 +2361,7 @@ function ni(a, i) {
|
|
|
2356
2361
|
})
|
|
2357
2362
|
);
|
|
2358
2363
|
}
|
|
2359
|
-
},
|
|
2364
|
+
}, b.onerror = () => {
|
|
2360
2365
|
Vt.close();
|
|
2361
2366
|
};
|
|
2362
2367
|
});
|
|
@@ -2364,9 +2369,9 @@ function ni(a, i) {
|
|
|
2364
2369
|
var pr = { exports: {} };
|
|
2365
2370
|
(function(a) {
|
|
2366
2371
|
(function(i) {
|
|
2367
|
-
var
|
|
2368
|
-
i(x,
|
|
2369
|
-
})(function(i,
|
|
2372
|
+
var b = typeof window == "object" && !!window.document, x = b ? window : Object;
|
|
2373
|
+
i(x, b), a.exports && (a.exports = x.Recorder);
|
|
2374
|
+
})(function(i, b) {
|
|
2370
2375
|
var x = function() {
|
|
2371
2376
|
}, N = function(e) {
|
|
2372
2377
|
return typeof e == "number";
|
|
@@ -2396,12 +2401,12 @@ var pr = { exports: {} };
|
|
|
2396
2401
|
m.BindDestroy = function(e, l) {
|
|
2397
2402
|
j[e] = l;
|
|
2398
2403
|
}, m.Support = function() {
|
|
2399
|
-
if (!
|
|
2404
|
+
if (!b)
|
|
2400
2405
|
return !1;
|
|
2401
2406
|
var e = navigator.mediaDevices || {};
|
|
2402
2407
|
return e[ue] || (e = navigator, e[ue] || (e[ue] = e.webkitGetUserMedia || e.mozGetUserMedia || e.msGetUserMedia)), !(!e[ue] || (m.Scope = e, !m.GetContext()));
|
|
2403
2408
|
}, m.GetContext = function(e) {
|
|
2404
|
-
if (!
|
|
2409
|
+
if (!b)
|
|
2405
2410
|
return null;
|
|
2406
2411
|
var l = window.AudioContext;
|
|
2407
2412
|
if (l || (l = window.webkitAudioContext), !l)
|
|
@@ -2722,7 +2727,7 @@ var pr = { exports: {} };
|
|
|
2722
2727
|
return de == ae.O ? v.close() : c = Oe("VtJO::open被中断"), M(c), !0;
|
|
2723
2728
|
}
|
|
2724
2729
|
};
|
|
2725
|
-
if (!
|
|
2730
|
+
if (!b) {
|
|
2726
2731
|
M(Oe.G("NonBrowser-1", ["open"]) + Oe("EMJq::,可尝试使用RecordApp解决方案") + "(" + k + "/tree/master/app-support-sample)");
|
|
2727
2732
|
return;
|
|
2728
2733
|
}
|
|
@@ -3178,7 +3183,7 @@ var pr = { exports: {} };
|
|
|
3178
3183
|
}, Oe = vt.$T;
|
|
3179
3184
|
Oe.G = vt.get, Oe("NonBrowser-1::非浏览器环境,不支持{1}", 1), Oe("IllegalArgs-1::参数错误:{1}", 1), Oe("NeedImport-2::调用{1}需要先导入{2}", 2), Oe("NotSupport-1::不支持:{1}", 1), m.TrafficImgUrl = "//ia.51.la/go1?id=20469973&pvFlag=1";
|
|
3180
3185
|
var I = m.Traffic = function(e) {
|
|
3181
|
-
if (
|
|
3186
|
+
if (b) {
|
|
3182
3187
|
e = e ? "/" + ee + "/Report/" + e : "";
|
|
3183
3188
|
var l = m.TrafficImgUrl;
|
|
3184
3189
|
if (l) {
|
|
@@ -3197,28 +3202,28 @@ var pr = { exports: {} };
|
|
|
3197
3202
|
var si = pr.exports;
|
|
3198
3203
|
const A0 = /* @__PURE__ */ O0(si);
|
|
3199
3204
|
(function(a) {
|
|
3200
|
-
var i = typeof window == "object" && !!window.document,
|
|
3205
|
+
var i = typeof window == "object" && !!window.document, b = i ? window : Object, x = b.Recorder, N = x.i18n;
|
|
3201
3206
|
a(x, N, N.$T, i);
|
|
3202
|
-
})(function(a, i,
|
|
3207
|
+
})(function(a, i, b, x) {
|
|
3203
3208
|
var N = "48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000", m = "8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160, 192, 224, 256, 320";
|
|
3204
3209
|
a.prototype.enc_mp3 = {
|
|
3205
3210
|
stable: !0,
|
|
3206
3211
|
takeEC: "full",
|
|
3207
3212
|
getTestMsg: function() {
|
|
3208
|
-
return
|
|
3213
|
+
return b("Zm7L::采样率范围:{1};比特率范围:{2}(不同比特率支持的采样率范围不同,小于32kbps时采样率需小于32000)", 0, N, m);
|
|
3209
3214
|
}
|
|
3210
3215
|
};
|
|
3211
3216
|
var P = function(V) {
|
|
3212
3217
|
var j = V.bitRate, oe = V.sampleRate, Be = oe;
|
|
3213
|
-
if ((" " + m + ",").indexOf(" " + j + ",") == -1 && a.CLog(
|
|
3218
|
+
if ((" " + m + ",").indexOf(" " + j + ",") == -1 && a.CLog(b("eGB9::{1}不在mp3支持的取值范围:{2}", 0, "bitRate=" + j, m), 3), (" " + N + ",").indexOf(" " + oe + ",") == -1) {
|
|
3214
3219
|
for (var B = N.split(", "), ie = [], _e = 0; _e < B.length; _e++)
|
|
3215
3220
|
ie.push({ v: +B[_e], s: Math.abs(B[_e] - oe) });
|
|
3216
3221
|
ie.sort(function(Fe, Ue) {
|
|
3217
3222
|
return Fe.s - Ue.s;
|
|
3218
|
-
}), Be = ie[0].v, V.sampleRate = Be, a.CLog(
|
|
3223
|
+
}), Be = ie[0].v, V.sampleRate = Be, a.CLog(b("zLTa::sampleRate已更新为{1},因为{2}不在mp3支持的取值范围:{3}", 0, Be, oe, N), 3);
|
|
3219
3224
|
}
|
|
3220
3225
|
}, k = function() {
|
|
3221
|
-
return
|
|
3226
|
+
return b.G("NeedImport-2", ["mp3.js", "src/engine/mp3-engine.js"]);
|
|
3222
3227
|
}, ee = x && typeof Worker == "function";
|
|
3223
3228
|
a.prototype.mp3 = function(V, j, oe) {
|
|
3224
3229
|
var Be = this, B = Be.set, ie = V.length;
|
|
@@ -3269,7 +3274,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3269
3274
|
ue && (a.CLog("mp3Worker Destroy"), ue.terminate(), ue = null);
|
|
3270
3275
|
}), a.prototype.mp3_envCheck = function(V, j) {
|
|
3271
3276
|
var oe = "";
|
|
3272
|
-
return j.takeoffEncodeChunk && (ke() || (oe =
|
|
3277
|
+
return j.takeoffEncodeChunk && (ke() || (oe = b("yhUs::当前浏览器版本太低,无法实时处理"))), !oe && !a.lamejs && (oe = k()), oe;
|
|
3273
3278
|
}, a.prototype.mp3_start = function(V) {
|
|
3274
3279
|
return ke(V);
|
|
3275
3280
|
};
|
|
@@ -3355,7 +3360,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3355
3360
|
}), Xe;
|
|
3356
3361
|
}, ie, _e = ue;
|
|
3357
3362
|
if (j || !ee)
|
|
3358
|
-
return a.CLog(
|
|
3363
|
+
return a.CLog(b("k9PT::当前环境不支持Web Worker,mp3实时编码器运行在主线程中"), 3), _e = { postMessage: function(Xe) {
|
|
3359
3364
|
oe({ data: Xe });
|
|
3360
3365
|
} }, ie = { wkScope: {
|
|
3361
3366
|
wk_ctxs: {},
|
|
@@ -3388,7 +3393,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3388
3393
|
var j = -1;
|
|
3389
3394
|
for (var oe in pe)
|
|
3390
3395
|
j++;
|
|
3391
|
-
j && a.CLog(
|
|
3396
|
+
j && a.CLog(b("fT6M::mp3 worker剩{1}个未stop", 0, j), 3);
|
|
3392
3397
|
}
|
|
3393
3398
|
}, a.prototype.mp3_encode = function(V, j) {
|
|
3394
3399
|
V && V.worker && V.worker.postMessage({
|
|
@@ -3403,7 +3408,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3403
3408
|
}, V.worker.postMessage({
|
|
3404
3409
|
action: "complete",
|
|
3405
3410
|
id: V.id
|
|
3406
|
-
})) : oe(
|
|
3411
|
+
})) : oe(b("mPxH::mp3编码器未start"));
|
|
3407
3412
|
}, a.mp3ReadMeta = function(V, j) {
|
|
3408
3413
|
var oe = typeof window < "u" && window.parseInt || typeof self < "u" && self.parseInt || parseInt, Be = new Uint8Array(V[0] || []);
|
|
3409
3414
|
if (Be.length < 4)
|
|
@@ -3480,17 +3485,17 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3480
3485
|
}
|
|
3481
3486
|
}, Se = function(V, j) {
|
|
3482
3487
|
var oe = "MP3 Info: ";
|
|
3483
|
-
(V.sampleRate && V.sampleRate != j.sampleRate || V.bitRate && V.bitRate != j.bitRate) && (a.CLog(oe +
|
|
3488
|
+
(V.sampleRate && V.sampleRate != j.sampleRate || V.bitRate && V.bitRate != j.bitRate) && (a.CLog(oe + b("uY9i::和设置的不匹配{1},已更新成{2}", 0, "set:" + j.bitRate + "kbps " + j.sampleRate + "hz", "set:" + V.bitRate + "kbps " + V.sampleRate + "hz"), 3, j), j.sampleRate = V.sampleRate, j.bitRate = V.bitRate);
|
|
3484
3489
|
var Be = V.trimFix;
|
|
3485
|
-
Be ? (oe +=
|
|
3490
|
+
Be ? (oe += b("iMSm::Fix移除{1}帧", 0, Be.remove) + " " + Be.removeDuration + "ms -> " + Be.duration + "ms", Be.remove > 2 && (V.err = (V.err ? V.err + ", " : "") + b("b9zm::移除帧数过多"))) : oe += (V.duration || "-") + "ms", V.err ? a.CLog(oe, 1, V.err, V) : a.CLog(oe, V);
|
|
3486
3491
|
};
|
|
3487
3492
|
});
|
|
3488
3493
|
(function(a) {
|
|
3489
|
-
var i = typeof window == "object" && !!window.document,
|
|
3494
|
+
var i = typeof window == "object" && !!window.document, b = i ? window : Object, x = b.Recorder;
|
|
3490
3495
|
a(x);
|
|
3491
3496
|
})(function(a) {
|
|
3492
3497
|
function i() {
|
|
3493
|
-
var
|
|
3498
|
+
var b = function(c) {
|
|
3494
3499
|
return Math.log(c) / Math.log(10);
|
|
3495
3500
|
}, x = function(c) {
|
|
3496
3501
|
throw new Error("abort(" + c + ")");
|
|
@@ -3562,9 +3567,9 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3562
3567
|
};
|
|
3563
3568
|
var j = {};
|
|
3564
3569
|
j.SQRT2 = 1.4142135623730951, j.FAST_LOG10 = function(c) {
|
|
3565
|
-
return
|
|
3570
|
+
return b(c);
|
|
3566
3571
|
}, j.FAST_LOG10_X = function(c, E) {
|
|
3567
|
-
return
|
|
3572
|
+
return b(c) * E;
|
|
3568
3573
|
};
|
|
3569
3574
|
function oe(c) {
|
|
3570
3575
|
this.ordinal = c;
|
|
@@ -3645,31 +3650,31 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3645
3650
|
[6, 7]
|
|
3646
3651
|
/* 22 bands */
|
|
3647
3652
|
];
|
|
3648
|
-
function T(f, _,
|
|
3653
|
+
function T(f, _, w, R, L, r) {
|
|
3649
3654
|
var n = 0.5946 / _;
|
|
3650
3655
|
for (f = f >> 1; f-- != 0; )
|
|
3651
|
-
L[r++] = n >
|
|
3656
|
+
L[r++] = n > w[R++] ? 0 : 1, L[r++] = n > w[R++] ? 0 : 1;
|
|
3652
3657
|
}
|
|
3653
|
-
function he(f, _,
|
|
3658
|
+
function he(f, _, w, R, L, r) {
|
|
3654
3659
|
f = f >> 1;
|
|
3655
3660
|
var n = f % 2;
|
|
3656
3661
|
for (f = f >> 1; f-- != 0; ) {
|
|
3657
3662
|
var J, O, Q, me, xe, Me, qe, Qe;
|
|
3658
|
-
J =
|
|
3663
|
+
J = w[R++] * _, O = w[R++] * _, xe = 0 | J, Q = w[R++] * _, Me = 0 | O, me = w[R++] * _, qe = 0 | Q, J += c.adj43[xe], Qe = 0 | me, O += c.adj43[Me], L[r++] = 0 | J, Q += c.adj43[qe], L[r++] = 0 | O, me += c.adj43[Qe], L[r++] = 0 | Q, L[r++] = 0 | me;
|
|
3659
3664
|
}
|
|
3660
3665
|
if (n != 0) {
|
|
3661
3666
|
var J, O, xe, Me;
|
|
3662
|
-
J =
|
|
3667
|
+
J = w[R++] * _, O = w[R++] * _, xe = 0 | J, Me = 0 | O, J += c.adj43[xe], O += c.adj43[Me], L[r++] = 0 | J, L[r++] = 0 | O;
|
|
3663
3668
|
}
|
|
3664
3669
|
}
|
|
3665
|
-
function g(f, _,
|
|
3670
|
+
function g(f, _, w, R, L) {
|
|
3666
3671
|
var r, n, J = 0, O, Q = 0, me = 0, xe = 0, Me = _, qe = 0, Qe = Me, Ke = 0, xt = f, St = 0;
|
|
3667
3672
|
for (O = L != null && R.global_gain == L.global_gain, R.block_type == o.SHORT_TYPE ? n = 38 : n = 21, r = 0; r <= n; r++) {
|
|
3668
3673
|
var mt = -1;
|
|
3669
3674
|
if ((O || R.block_type == o.NORM_TYPE) && (mt = R.global_gain - (R.scalefac[r] + (R.preflag != 0 ? c.pretab[r] : 0) << R.scalefac_scale + 1) - R.subblock_gain[R.window[r]] * 8), O && L.step[r] == mt)
|
|
3670
3675
|
Q != 0 && (he(
|
|
3671
3676
|
Q,
|
|
3672
|
-
|
|
3677
|
+
w,
|
|
3673
3678
|
xt,
|
|
3674
3679
|
St,
|
|
3675
3680
|
Qe,
|
|
@@ -3683,14 +3688,14 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3683
3688
|
}
|
|
3684
3689
|
if (Q == 0 && me == 0 && (Qe = Me, Ke = qe, xt = f, St = xe), L != null && L.sfb_count1 > 0 && r >= L.sfb_count1 && L.step[r] > 0 && mt >= L.step[r] ? (Q != 0 && (he(
|
|
3685
3690
|
Q,
|
|
3686
|
-
|
|
3691
|
+
w,
|
|
3687
3692
|
xt,
|
|
3688
3693
|
St,
|
|
3689
3694
|
Qe,
|
|
3690
3695
|
Ke
|
|
3691
3696
|
), Q = 0, Qe = Me, Ke = qe, xt = f, St = xe), me += wt) : (me != 0 && (T(
|
|
3692
3697
|
me,
|
|
3693
|
-
|
|
3698
|
+
w,
|
|
3694
3699
|
xt,
|
|
3695
3700
|
St,
|
|
3696
3701
|
Qe,
|
|
@@ -3704,52 +3709,52 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3704
3709
|
}
|
|
3705
3710
|
Q != 0 && (he(
|
|
3706
3711
|
Q,
|
|
3707
|
-
|
|
3712
|
+
w,
|
|
3708
3713
|
xt,
|
|
3709
3714
|
St,
|
|
3710
3715
|
Qe,
|
|
3711
3716
|
Ke
|
|
3712
3717
|
), Q = 0), me != 0 && x();
|
|
3713
3718
|
}
|
|
3714
|
-
function q(f, _,
|
|
3719
|
+
function q(f, _, w) {
|
|
3715
3720
|
var R = 0, L = 0;
|
|
3716
3721
|
do {
|
|
3717
3722
|
var r = f[_++], n = f[_++];
|
|
3718
3723
|
R < r && (R = r), L < n && (L = n);
|
|
3719
|
-
} while (_ <
|
|
3724
|
+
} while (_ < w);
|
|
3720
3725
|
return R < L && (R = L), R;
|
|
3721
3726
|
}
|
|
3722
|
-
function ce(f, _,
|
|
3727
|
+
function ce(f, _, w, R, L, r) {
|
|
3723
3728
|
var n = K.ht[R].xlen * 65536 + K.ht[L].xlen, J = 0, O;
|
|
3724
3729
|
do {
|
|
3725
3730
|
var Q = f[_++], me = f[_++];
|
|
3726
3731
|
Q != 0 && (Q > 14 && (Q = 15, J += n), Q *= 16), me != 0 && (me > 14 && (me = 15, J += n), Q += me), J += K.largetbl[Q];
|
|
3727
|
-
} while (_ <
|
|
3732
|
+
} while (_ < w);
|
|
3728
3733
|
return O = J & 65535, J >>= 16, J > O && (J = O, R = L), r.bits += J, R;
|
|
3729
3734
|
}
|
|
3730
|
-
function Y(f, _,
|
|
3735
|
+
function Y(f, _, w, R) {
|
|
3731
3736
|
var L = 0, r = K.ht[1].hlen;
|
|
3732
3737
|
do {
|
|
3733
3738
|
var n = f[_ + 0] * 2 + f[_ + 1];
|
|
3734
3739
|
_ += 2, L += r[n];
|
|
3735
|
-
} while (_ <
|
|
3740
|
+
} while (_ < w);
|
|
3736
3741
|
return R.bits += L, 1;
|
|
3737
3742
|
}
|
|
3738
|
-
function ne(f, _,
|
|
3743
|
+
function ne(f, _, w, R, L) {
|
|
3739
3744
|
var r = 0, n, J = K.ht[R].xlen, O;
|
|
3740
3745
|
R == 2 ? O = K.table23 : O = K.table56;
|
|
3741
3746
|
do {
|
|
3742
3747
|
var Q = f[_ + 0] * J + f[_ + 1];
|
|
3743
3748
|
_ += 2, r += O[Q];
|
|
3744
|
-
} while (_ <
|
|
3749
|
+
} while (_ < w);
|
|
3745
3750
|
return n = r & 65535, r >>= 16, r > n && (r = n, R++), L.bits += r, R;
|
|
3746
3751
|
}
|
|
3747
|
-
function H(f, _,
|
|
3752
|
+
function H(f, _, w, R, L) {
|
|
3748
3753
|
var r = 0, n = 0, J = 0, O = K.ht[R].xlen, Q = K.ht[R].hlen, me = K.ht[R + 1].hlen, xe = K.ht[R + 2].hlen;
|
|
3749
3754
|
do {
|
|
3750
3755
|
var Me = f[_ + 0] * O + f[_ + 1];
|
|
3751
3756
|
_ += 2, r += Q[Me], n += me[Me], J += xe[Me];
|
|
3752
|
-
} while (_ <
|
|
3757
|
+
} while (_ < w);
|
|
3753
3758
|
var qe = R;
|
|
3754
3759
|
return r > n && (r = n, qe++), r > J && (r = J, qe = R + 2), L.bits += r, qe;
|
|
3755
3760
|
}
|
|
@@ -3770,19 +3775,19 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3770
3775
|
13,
|
|
3771
3776
|
13
|
|
3772
3777
|
];
|
|
3773
|
-
function F(f, _,
|
|
3774
|
-
var L = q(f, _,
|
|
3778
|
+
function F(f, _, w, R) {
|
|
3779
|
+
var L = q(f, _, w);
|
|
3775
3780
|
switch (L) {
|
|
3776
3781
|
case 0:
|
|
3777
3782
|
return L;
|
|
3778
3783
|
case 1:
|
|
3779
|
-
return Y(f, _,
|
|
3784
|
+
return Y(f, _, w, R);
|
|
3780
3785
|
case 2:
|
|
3781
3786
|
case 3:
|
|
3782
3787
|
return ne(
|
|
3783
3788
|
f,
|
|
3784
3789
|
_,
|
|
3785
|
-
|
|
3790
|
+
w,
|
|
3786
3791
|
be[L - 1],
|
|
3787
3792
|
R
|
|
3788
3793
|
);
|
|
@@ -3801,7 +3806,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3801
3806
|
return H(
|
|
3802
3807
|
f,
|
|
3803
3808
|
_,
|
|
3804
|
-
|
|
3809
|
+
w,
|
|
3805
3810
|
be[L - 1],
|
|
3806
3811
|
R
|
|
3807
3812
|
);
|
|
@@ -3813,12 +3818,12 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3813
3818
|
var n;
|
|
3814
3819
|
for (n = r - 8; n < 24 && !(K.ht[n].linmax >= L); n++)
|
|
3815
3820
|
;
|
|
3816
|
-
return ce(f, _,
|
|
3821
|
+
return ce(f, _, w, n, r, R);
|
|
3817
3822
|
}
|
|
3818
3823
|
}
|
|
3819
|
-
this.noquant_count_bits = function(f, _,
|
|
3824
|
+
this.noquant_count_bits = function(f, _, w) {
|
|
3820
3825
|
var R = _.l3_enc, L = Math.min(576, _.max_nonzero_coeff + 2 >> 1 << 1);
|
|
3821
|
-
for (
|
|
3826
|
+
for (w != null && (w.sfb_count1 = 0); L > 1 && !(R[L - 1] | R[L - 2]); L -= 2)
|
|
3822
3827
|
;
|
|
3823
3828
|
_.count1 = L;
|
|
3824
3829
|
for (var r = 0, n = 0; L > 3; L -= 4) {
|
|
@@ -3847,24 +3852,24 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3847
3852
|
var Q = new E(O);
|
|
3848
3853
|
_.table_select[1] = F(R, r, n, Q), O = Q.bits;
|
|
3849
3854
|
}
|
|
3850
|
-
if (f.use_best_huffman == 2 && x(),
|
|
3855
|
+
if (f.use_best_huffman == 2 && x(), w != null && _.block_type == o.NORM_TYPE) {
|
|
3851
3856
|
for (var me = 0; f.scalefac_band.l[me] < _.big_values; )
|
|
3852
3857
|
me++;
|
|
3853
|
-
|
|
3858
|
+
w.sfb_count1 = me;
|
|
3854
3859
|
}
|
|
3855
3860
|
return O;
|
|
3856
|
-
}, this.count_bits = function(f, _,
|
|
3857
|
-
var L =
|
|
3858
|
-
return
|
|
3861
|
+
}, this.count_bits = function(f, _, w, R) {
|
|
3862
|
+
var L = w.l3_enc, r = e.IXMAX_VAL / c.IPOW20(w.global_gain);
|
|
3863
|
+
return w.xrpow_max > r ? e.LARGE_BITS : (g(_, L, c.IPOW20(w.global_gain), w, R), f.substep_shaping & 2 && x(), this.noquant_count_bits(f, w, R));
|
|
3859
3864
|
};
|
|
3860
|
-
function U(f, _,
|
|
3865
|
+
function U(f, _, w, R, L, r, n) {
|
|
3861
3866
|
for (var J = _.big_values, O = 0; O <= 22; O++)
|
|
3862
3867
|
R[O] = e.LARGE_BITS;
|
|
3863
3868
|
for (var O = 0; O < 16; O++) {
|
|
3864
3869
|
var Q = f.scalefac_band.l[O + 1];
|
|
3865
3870
|
if (Q >= J)
|
|
3866
3871
|
break;
|
|
3867
|
-
var me = 0, xe = new E(me), Me = F(
|
|
3872
|
+
var me = 0, xe = new E(me), Me = F(w, 0, Q, xe);
|
|
3868
3873
|
me = xe.bits;
|
|
3869
3874
|
for (var qe = 0; qe < 8; qe++) {
|
|
3870
3875
|
var Qe = f.scalefac_band.l[O + qe + 2];
|
|
@@ -3872,29 +3877,29 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3872
3877
|
break;
|
|
3873
3878
|
var Ke = me;
|
|
3874
3879
|
xe = new E(Ke);
|
|
3875
|
-
var xt = F(
|
|
3880
|
+
var xt = F(w, Q, Qe, xe);
|
|
3876
3881
|
Ke = xe.bits, R[O + qe] > Ke && (R[O + qe] = Ke, L[O + qe] = O, r[O + qe] = Me, n[O + qe] = xt);
|
|
3877
3882
|
}
|
|
3878
3883
|
}
|
|
3879
3884
|
}
|
|
3880
|
-
function t(f, _,
|
|
3885
|
+
function t(f, _, w, R, L, r, n, J) {
|
|
3881
3886
|
for (var O = _.big_values, Q = 2; Q < o.SBMAX_l + 1; Q++) {
|
|
3882
3887
|
var me = f.scalefac_band.l[Q];
|
|
3883
3888
|
if (me >= O)
|
|
3884
3889
|
break;
|
|
3885
3890
|
var xe = L[Q - 2] + _.count1bits;
|
|
3886
|
-
if (
|
|
3891
|
+
if (w.part2_3_length <= xe)
|
|
3887
3892
|
break;
|
|
3888
3893
|
var Me = new E(xe), qe = F(R, me, O, Me);
|
|
3889
|
-
xe = Me.bits, !(
|
|
3894
|
+
xe = Me.bits, !(w.part2_3_length <= xe) && (w.assign(_), w.part2_3_length = xe, w.region0_count = r[Q - 2], w.region1_count = Q - 2 - r[Q - 2], w.table_select[0] = n[Q - 2], w.table_select[1] = J[Q - 2], w.table_select[2] = qe);
|
|
3890
3895
|
}
|
|
3891
3896
|
}
|
|
3892
3897
|
this.best_huffman_divide = function(f, _) {
|
|
3893
|
-
var
|
|
3898
|
+
var w = new v(), R = _.l3_enc, L = P(23), r = P(23), n = P(23), J = P(23);
|
|
3894
3899
|
if (!(_.block_type == o.SHORT_TYPE && f.mode_gr == 1)) {
|
|
3895
|
-
|
|
3900
|
+
w.assign(_), _.block_type == o.NORM_TYPE && (U(f, _, R, L, r, n, J), t(
|
|
3896
3901
|
f,
|
|
3897
|
-
|
|
3902
|
+
w,
|
|
3898
3903
|
_,
|
|
3899
3904
|
R,
|
|
3900
3905
|
L,
|
|
@@ -3902,17 +3907,17 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3902
3907
|
n,
|
|
3903
3908
|
J
|
|
3904
3909
|
));
|
|
3905
|
-
var O =
|
|
3910
|
+
var O = w.big_values;
|
|
3906
3911
|
if (!(O == 0 || (R[O - 2] | R[O - 1]) > 1) && (O = _.count1 + 2, !(O > 576))) {
|
|
3907
|
-
|
|
3908
|
-
for (var Q = 0, me = 0; O >
|
|
3912
|
+
w.assign(_), w.count1 = O;
|
|
3913
|
+
for (var Q = 0, me = 0; O > w.big_values; O -= 4) {
|
|
3909
3914
|
var xe = ((R[O - 4] * 2 + R[O - 3]) * 2 + R[O - 2]) * 2 + R[O - 1];
|
|
3910
3915
|
Q += K.t32l[xe], me += K.t33l[xe];
|
|
3911
3916
|
}
|
|
3912
|
-
if (
|
|
3917
|
+
if (w.big_values = O, w.count1table_select = 0, Q > me && (Q = me, w.count1table_select = 1), w.count1bits = Q, w.block_type == o.NORM_TYPE)
|
|
3913
3918
|
t(
|
|
3914
3919
|
f,
|
|
3915
|
-
|
|
3920
|
+
w,
|
|
3916
3921
|
_,
|
|
3917
3922
|
R,
|
|
3918
3923
|
L,
|
|
@@ -3921,15 +3926,15 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3921
3926
|
J
|
|
3922
3927
|
);
|
|
3923
3928
|
else {
|
|
3924
|
-
if (
|
|
3925
|
-
var Me = new E(
|
|
3926
|
-
|
|
3929
|
+
if (w.part2_3_length = Q, Q = f.scalefac_band.l[8], Q > O && (Q = O), Q > 0) {
|
|
3930
|
+
var Me = new E(w.part2_3_length);
|
|
3931
|
+
w.table_select[0] = F(R, 0, Q, Me), w.part2_3_length = Me.bits;
|
|
3927
3932
|
}
|
|
3928
3933
|
if (O > Q) {
|
|
3929
|
-
var Me = new E(
|
|
3930
|
-
|
|
3934
|
+
var Me = new E(w.part2_3_length);
|
|
3935
|
+
w.table_select[1] = F(R, Q, O, Me), w.part2_3_length = Me.bits;
|
|
3931
3936
|
}
|
|
3932
|
-
_.part2_3_length >
|
|
3937
|
+
_.part2_3_length > w.part2_3_length && _.assign(w);
|
|
3933
3938
|
}
|
|
3934
3939
|
}
|
|
3935
3940
|
}
|
|
@@ -3937,28 +3942,28 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3937
3942
|
var u = [1, 1, 1, 1, 8, 2, 2, 2, 4, 4, 4, 8, 8, 8, 16, 16], C = [1, 2, 4, 8, 1, 2, 4, 8, 2, 4, 8, 2, 4, 8, 4, 8], G = [0, 0, 0, 0, 3, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4], S = [0, 1, 2, 3, 0, 1, 2, 3, 1, 2, 3, 1, 2, 3, 2, 3];
|
|
3938
3943
|
Fe.slen1_tab = G, Fe.slen2_tab = S;
|
|
3939
3944
|
function h(f, _) {
|
|
3940
|
-
for (var
|
|
3941
|
-
for (
|
|
3945
|
+
for (var w, R = _.tt[1][f], L = _.tt[0][f], r = 0; r < K.scfsi_band.length - 1; r++) {
|
|
3946
|
+
for (w = K.scfsi_band[r]; w < K.scfsi_band[r + 1] && !(L.scalefac[w] != R.scalefac[w] && R.scalefac[w] >= 0); w++)
|
|
3942
3947
|
;
|
|
3943
|
-
if (
|
|
3944
|
-
for (
|
|
3945
|
-
R.scalefac[
|
|
3948
|
+
if (w == K.scfsi_band[r + 1]) {
|
|
3949
|
+
for (w = K.scfsi_band[r]; w < K.scfsi_band[r + 1]; w++)
|
|
3950
|
+
R.scalefac[w] = -1;
|
|
3946
3951
|
_.scfsi[f][r] = 1;
|
|
3947
3952
|
}
|
|
3948
3953
|
}
|
|
3949
3954
|
var n = 0, J = 0;
|
|
3950
|
-
for (
|
|
3951
|
-
R.scalefac[
|
|
3952
|
-
for (var O = 0, Q = 0;
|
|
3953
|
-
R.scalefac[
|
|
3955
|
+
for (w = 0; w < 11; w++)
|
|
3956
|
+
R.scalefac[w] != -1 && (J++, n < R.scalefac[w] && (n = R.scalefac[w]));
|
|
3957
|
+
for (var O = 0, Q = 0; w < o.SBPSY_l; w++)
|
|
3958
|
+
R.scalefac[w] != -1 && (Q++, O < R.scalefac[w] && (O = R.scalefac[w]));
|
|
3954
3959
|
for (var r = 0; r < 16; r++)
|
|
3955
3960
|
if (n < u[r] && O < C[r]) {
|
|
3956
3961
|
var me = G[r] * J + S[r] * Q;
|
|
3957
3962
|
R.part2_length > me && (R.part2_length = me, R.scalefac_compress = r);
|
|
3958
3963
|
}
|
|
3959
3964
|
}
|
|
3960
|
-
this.best_scalefac_store = function(f, _,
|
|
3961
|
-
var L = R.tt[_][
|
|
3965
|
+
this.best_scalefac_store = function(f, _, w, R) {
|
|
3966
|
+
var L = R.tt[_][w], r, n, J, O, Q = 0;
|
|
3962
3967
|
for (J = 0, r = 0; r < L.sfbmax; r++) {
|
|
3963
3968
|
var me = L.width[r];
|
|
3964
3969
|
for (J += me, O = -me; O < 0 && L.l3_enc[O + J] == 0; O++)
|
|
@@ -3985,8 +3990,8 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3985
3990
|
}
|
|
3986
3991
|
}
|
|
3987
3992
|
for (n = 0; n < 4; n++)
|
|
3988
|
-
R.scfsi[
|
|
3989
|
-
for (f.mode_gr == 2 && _ == 1 && R.tt[0][
|
|
3993
|
+
R.scfsi[w][n] = 0;
|
|
3994
|
+
for (f.mode_gr == 2 && _ == 1 && R.tt[0][w].block_type != o.SHORT_TYPE && R.tt[1][w].block_type != o.SHORT_TYPE && (h(w, R), Q = 0), r = 0; r < L.sfbmax; r++)
|
|
3990
3995
|
L.scalefac[r] == -2 && (L.scalefac[r] = 0);
|
|
3991
3996
|
Q != 0 && (f.mode_gr == 2 ? this.scale_bitcount(L) : this.scale_bitcount_lsf(f, L));
|
|
3992
3997
|
};
|
|
@@ -4043,20 +4048,20 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
4043
4048
|
74
|
|
4044
4049
|
];
|
|
4045
4050
|
this.scale_bitcount = function(f) {
|
|
4046
|
-
var _,
|
|
4051
|
+
var _, w, R = 0, L = 0, r, n = f.scalefac;
|
|
4047
4052
|
if (f.block_type == o.SHORT_TYPE)
|
|
4048
4053
|
r = y, f.mixed_block_flag != 0 && (r = d);
|
|
4049
4054
|
else if (r = D, f.preflag == 0) {
|
|
4050
|
-
for (
|
|
4055
|
+
for (w = 11; w < o.SBPSY_l && !(n[w] < c.pretab[w]); w++)
|
|
4051
4056
|
;
|
|
4052
|
-
if (
|
|
4053
|
-
for (f.preflag = 1,
|
|
4054
|
-
n[
|
|
4055
|
-
}
|
|
4056
|
-
for (
|
|
4057
|
-
R < n[
|
|
4058
|
-
for (;
|
|
4059
|
-
L < n[
|
|
4057
|
+
if (w == o.SBPSY_l)
|
|
4058
|
+
for (f.preflag = 1, w = 11; w < o.SBPSY_l; w++)
|
|
4059
|
+
n[w] -= c.pretab[w];
|
|
4060
|
+
}
|
|
4061
|
+
for (w = 0; w < f.sfbdivide; w++)
|
|
4062
|
+
R < n[w] && (R = n[w]);
|
|
4063
|
+
for (; w < f.sfbmax; w++)
|
|
4064
|
+
L < n[w] && (L = n[w]);
|
|
4060
4065
|
for (f.part2_length = e.LARGE_BITS, _ = 0; _ < 16; _++)
|
|
4061
4066
|
R < u[_] && L < C[_] && f.part2_length > r[_] && (f.part2_length = r[_], f.scalefac_compress = _);
|
|
4062
4067
|
return f.part2_length == e.LARGE_BITS;
|
|
@@ -4070,30 +4075,30 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
4070
4075
|
[3, 3, 0, 0]
|
|
4071
4076
|
];
|
|
4072
4077
|
this.scale_bitcount_lsf = function(f, _) {
|
|
4073
|
-
var
|
|
4074
|
-
for (_.preflag != 0 ?
|
|
4078
|
+
var w, R, L, r, n, J, O, Q, me = P(4), xe = _.scalefac;
|
|
4079
|
+
for (_.preflag != 0 ? w = 2 : w = 0, O = 0; O < 4; O++)
|
|
4075
4080
|
me[O] = 0;
|
|
4076
4081
|
if (_.block_type == o.SHORT_TYPE) {
|
|
4077
4082
|
R = 1;
|
|
4078
|
-
var Me = c.nr_of_sfb_block[
|
|
4083
|
+
var Me = c.nr_of_sfb_block[w][R];
|
|
4079
4084
|
for (Q = 0, L = 0; L < 4; L++)
|
|
4080
4085
|
for (r = Me[L] / 3, O = 0; O < r; O++, Q++)
|
|
4081
4086
|
for (n = 0; n < 3; n++)
|
|
4082
4087
|
xe[Q * 3 + n] > me[L] && (me[L] = xe[Q * 3 + n]);
|
|
4083
4088
|
} else {
|
|
4084
4089
|
R = 0;
|
|
4085
|
-
var Me = c.nr_of_sfb_block[
|
|
4090
|
+
var Me = c.nr_of_sfb_block[w][R];
|
|
4086
4091
|
for (Q = 0, L = 0; L < 4; L++)
|
|
4087
4092
|
for (r = Me[L], O = 0; O < r; O++, Q++)
|
|
4088
4093
|
xe[Q] > me[L] && (me[L] = xe[Q]);
|
|
4089
4094
|
}
|
|
4090
4095
|
for (J = !1, L = 0; L < 4; L++)
|
|
4091
|
-
me[L] > s[
|
|
4096
|
+
me[L] > s[w][L] && (J = !0);
|
|
4092
4097
|
if (!J) {
|
|
4093
4098
|
var qe, Qe, Ke, xt;
|
|
4094
|
-
for (_.sfb_partition_table = c.nr_of_sfb_block[
|
|
4099
|
+
for (_.sfb_partition_table = c.nr_of_sfb_block[w][R], L = 0; L < 4; L++)
|
|
4095
4100
|
_.slen[L] = Z[me[L]];
|
|
4096
|
-
switch (qe = _.slen[0], Qe = _.slen[1], Ke = _.slen[2], xt = _.slen[3],
|
|
4101
|
+
switch (qe = _.slen[0], Qe = _.slen[1], Ke = _.slen[2], xt = _.slen[3], w) {
|
|
4097
4102
|
case 0:
|
|
4098
4103
|
_.scalefac_compress = (qe * 5 + Qe << 4) + (Ke << 2) + xt;
|
|
4099
4104
|
break;
|
|
@@ -4130,13 +4135,13 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
4130
4135
|
];
|
|
4131
4136
|
this.huffman_init = function(f) {
|
|
4132
4137
|
for (var _ = 2; _ <= 576; _ += 2) {
|
|
4133
|
-
for (var
|
|
4138
|
+
for (var w = 0, R; f.scalefac_band.l[++w] < _; )
|
|
4134
4139
|
;
|
|
4135
|
-
for (R = X[
|
|
4140
|
+
for (R = X[w][0]; f.scalefac_band.l[R + 1] > _; )
|
|
4136
4141
|
R--;
|
|
4137
|
-
for (R < 0 && (R = X[
|
|
4142
|
+
for (R < 0 && (R = X[w][0]), f.bv_scf[_ - 2] = R, R = X[w][1]; f.scalefac_band.l[R + f.bv_scf[_ - 2] + 2] > _; )
|
|
4138
4143
|
R--;
|
|
4139
|
-
R < 0 && (R = X[
|
|
4144
|
+
R < 0 && (R = X[w][1]), f.bv_scf[_ - 1] = R;
|
|
4140
4145
|
}
|
|
4141
4146
|
};
|
|
4142
4147
|
}
|
|
@@ -4621,15 +4626,15 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
4621
4626
|
}
|
|
4622
4627
|
h.error_protection && x();
|
|
4623
4628
|
{
|
|
4624
|
-
var
|
|
4625
|
-
d.h_ptr =
|
|
4629
|
+
var w = d.h_ptr;
|
|
4630
|
+
d.h_ptr = w + 1 & fe.MAX_HEADER_BUF - 1, d.header[d.h_ptr].write_timing = d.header[w].write_timing + y, d.h_ptr == d.w_ptr;
|
|
4626
4631
|
}
|
|
4627
4632
|
}
|
|
4628
4633
|
function F(h, y) {
|
|
4629
4634
|
var d = K.ht[y.count1table_select + 32], D, s = 0, Z = y.big_values, f = y.big_values;
|
|
4630
4635
|
for (D = (y.count1 - y.big_values) / 4; D > 0; --D) {
|
|
4631
|
-
var _ = 0,
|
|
4632
|
-
R = y.l3_enc[Z + 0], R != 0 && (
|
|
4636
|
+
var _ = 0, w = 0, R;
|
|
4637
|
+
R = y.l3_enc[Z + 0], R != 0 && (w += 8, y.xr[f + 0] < 0 && _++), R = y.l3_enc[Z + 1], R != 0 && (w += 4, _ *= 2, y.xr[f + 1] < 0 && _++), R = y.l3_enc[Z + 2], R != 0 && (w += 2, _ *= 2, y.xr[f + 2] < 0 && _++), R = y.l3_enc[Z + 3], R != 0 && (w++, _ *= 2, y.xr[f + 3] < 0 && _++), Z += 4, f += 4, Y(h, _ + d.table[w], d.hlen[w]), s += d.hlen[w];
|
|
4633
4638
|
}
|
|
4634
4639
|
return s;
|
|
4635
4640
|
}
|
|
@@ -4638,8 +4643,8 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
4638
4643
|
if (y == 0)
|
|
4639
4644
|
return f;
|
|
4640
4645
|
for (var _ = d; _ < D; _ += 2) {
|
|
4641
|
-
var
|
|
4642
|
-
if (J != 0 && (s.xr[_] < 0 && n++,
|
|
4646
|
+
var w = 0, R = 0, L = Z.xlen, r = Z.xlen, n = 0, J = s.l3_enc[_], O = s.l3_enc[_ + 1];
|
|
4647
|
+
if (J != 0 && (s.xr[_] < 0 && n++, w--), y > 15) {
|
|
4643
4648
|
if (J > 14) {
|
|
4644
4649
|
var Q = J - 15;
|
|
4645
4650
|
n |= Q << 1, R = L, J = 15;
|
|
@@ -4650,7 +4655,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
4650
4655
|
}
|
|
4651
4656
|
r = 16;
|
|
4652
4657
|
}
|
|
4653
|
-
O != 0 && (n <<= 1, s.xr[_ + 1] < 0 && n++,
|
|
4658
|
+
O != 0 && (n <<= 1, s.xr[_ + 1] < 0 && n++, w--), J = J * r + O, R -= w, w += Z.hlen[J], Y(h, Z.table[J], w), Y(h, n, R), f += w + R;
|
|
4654
4659
|
}
|
|
4655
4660
|
return f;
|
|
4656
4661
|
}
|
|
@@ -4689,44 +4694,44 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
4689
4694
|
if (h.version == 1)
|
|
4690
4695
|
for (y = 0; y < 2; y++)
|
|
4691
4696
|
for (d = 0; d < f.channels_out; d++) {
|
|
4692
|
-
var
|
|
4693
|
-
for (s = 0, D = 0; D <
|
|
4694
|
-
|
|
4695
|
-
for (; D <
|
|
4696
|
-
|
|
4697
|
-
|
|
4697
|
+
var w = _.tt[y][d], R = Fe.slen1_tab[w.scalefac_compress], L = Fe.slen2_tab[w.scalefac_compress];
|
|
4698
|
+
for (s = 0, D = 0; D < w.sfbdivide; D++)
|
|
4699
|
+
w.scalefac[D] != -1 && (Y(f, w.scalefac[D], R), s += R);
|
|
4700
|
+
for (; D < w.sfbmax; D++)
|
|
4701
|
+
w.scalefac[D] != -1 && (Y(f, w.scalefac[D], L), s += L);
|
|
4702
|
+
w.block_type == o.SHORT_TYPE ? s += t(f, w) : s += u(f, w), s += F(f, w), Z += s;
|
|
4698
4703
|
}
|
|
4699
4704
|
else
|
|
4700
4705
|
for (y = 0, d = 0; d < f.channels_out; d++) {
|
|
4701
|
-
var
|
|
4702
|
-
if (s = 0, D = 0, n = 0,
|
|
4706
|
+
var w = _.tt[y][d], r, n, J = 0;
|
|
4707
|
+
if (s = 0, D = 0, n = 0, w.block_type == o.SHORT_TYPE) {
|
|
4703
4708
|
for (; n < 4; n++) {
|
|
4704
|
-
var O =
|
|
4709
|
+
var O = w.sfb_partition_table[n] / 3, Q = w.slen[n];
|
|
4705
4710
|
for (r = 0; r < O; r++, D++)
|
|
4706
4711
|
Y(
|
|
4707
4712
|
f,
|
|
4708
|
-
Math.max(
|
|
4713
|
+
Math.max(w.scalefac[D * 3 + 0], 0),
|
|
4709
4714
|
Q
|
|
4710
4715
|
), Y(
|
|
4711
4716
|
f,
|
|
4712
|
-
Math.max(
|
|
4717
|
+
Math.max(w.scalefac[D * 3 + 1], 0),
|
|
4713
4718
|
Q
|
|
4714
4719
|
), Y(
|
|
4715
4720
|
f,
|
|
4716
|
-
Math.max(
|
|
4721
|
+
Math.max(w.scalefac[D * 3 + 2], 0),
|
|
4717
4722
|
Q
|
|
4718
4723
|
), J += 3 * Q;
|
|
4719
4724
|
}
|
|
4720
|
-
s += t(f,
|
|
4725
|
+
s += t(f, w);
|
|
4721
4726
|
} else {
|
|
4722
4727
|
for (; n < 4; n++) {
|
|
4723
|
-
var O =
|
|
4728
|
+
var O = w.sfb_partition_table[n], Q = w.slen[n];
|
|
4724
4729
|
for (r = 0; r < O; r++, D++)
|
|
4725
|
-
Y(f, Math.max(
|
|
4730
|
+
Y(f, Math.max(w.scalefac[D], 0), Q), J += Q;
|
|
4726
4731
|
}
|
|
4727
|
-
s += u(f,
|
|
4732
|
+
s += u(f, w);
|
|
4728
4733
|
}
|
|
4729
|
-
s += F(f,
|
|
4734
|
+
s += F(f, w), Z += J + s;
|
|
4730
4735
|
}
|
|
4731
4736
|
return Z;
|
|
4732
4737
|
}
|
|
@@ -8666,40 +8671,40 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
8666
8671
|
}
|
|
8667
8672
|
function C(S) {
|
|
8668
8673
|
for (var h = S.internal_flags.ATH.l, y = S.internal_flags.ATH.psfb21, d = S.internal_flags.ATH.s, D = S.internal_flags.ATH.psfb12, s = S.internal_flags, Z = S.out_samplerate, f = 0; f < o.SBMAX_l; f++) {
|
|
8669
|
-
var _ = s.scalefac_band.l[f],
|
|
8674
|
+
var _ = s.scalefac_band.l[f], w = s.scalefac_band.l[f + 1];
|
|
8670
8675
|
h[f] = Be.MAX_VALUE;
|
|
8671
|
-
for (var R = _; R <
|
|
8676
|
+
for (var R = _; R < w; R++) {
|
|
8672
8677
|
var L = R * Z / 1152, r = u(S, L);
|
|
8673
8678
|
h[f] = Math.min(h[f], r);
|
|
8674
8679
|
}
|
|
8675
8680
|
}
|
|
8676
8681
|
for (var f = 0; f < o.PSFB21; f++) {
|
|
8677
|
-
var _ = s.scalefac_band.psfb21[f],
|
|
8682
|
+
var _ = s.scalefac_band.psfb21[f], w = s.scalefac_band.psfb21[f + 1];
|
|
8678
8683
|
y[f] = Be.MAX_VALUE;
|
|
8679
|
-
for (var R = _; R <
|
|
8684
|
+
for (var R = _; R < w; R++) {
|
|
8680
8685
|
var L = R * Z / 1152, r = u(S, L);
|
|
8681
8686
|
y[f] = Math.min(y[f], r);
|
|
8682
8687
|
}
|
|
8683
8688
|
}
|
|
8684
8689
|
for (var f = 0; f < o.SBMAX_s; f++) {
|
|
8685
|
-
var _ = s.scalefac_band.s[f],
|
|
8690
|
+
var _ = s.scalefac_band.s[f], w = s.scalefac_band.s[f + 1];
|
|
8686
8691
|
d[f] = Be.MAX_VALUE;
|
|
8687
|
-
for (var R = _; R <
|
|
8692
|
+
for (var R = _; R < w; R++) {
|
|
8688
8693
|
var L = R * Z / 384, r = u(S, L);
|
|
8689
8694
|
d[f] = Math.min(d[f], r);
|
|
8690
8695
|
}
|
|
8691
8696
|
d[f] *= s.scalefac_band.s[f + 1] - s.scalefac_band.s[f];
|
|
8692
8697
|
}
|
|
8693
8698
|
for (var f = 0; f < o.PSFB12; f++) {
|
|
8694
|
-
var _ = s.scalefac_band.psfb12[f],
|
|
8699
|
+
var _ = s.scalefac_band.psfb12[f], w = s.scalefac_band.psfb12[f + 1];
|
|
8695
8700
|
D[f] = Be.MAX_VALUE;
|
|
8696
|
-
for (var R = _; R <
|
|
8701
|
+
for (var R = _; R < w; R++) {
|
|
8697
8702
|
var L = R * Z / 384, r = u(S, L);
|
|
8698
8703
|
D[f] = Math.min(D[f], r);
|
|
8699
8704
|
}
|
|
8700
8705
|
D[f] *= s.scalefac_band.s[13] - s.scalefac_band.s[12];
|
|
8701
8706
|
}
|
|
8702
|
-
S.noATH && x(), s.ATH.floor = 10 *
|
|
8707
|
+
S.noATH && x(), s.ATH.floor = 10 * b(u(S, -1));
|
|
8703
8708
|
}
|
|
8704
8709
|
this.iteration_init = function(S) {
|
|
8705
8710
|
var h = S.internal_flags, y = h.l3_side, d;
|
|
@@ -8729,22 +8734,22 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
8729
8734
|
}
|
|
8730
8735
|
}
|
|
8731
8736
|
}, this.on_pe = function(S, h, y, d, D, s) {
|
|
8732
|
-
var Z = S.internal_flags, f = 0, _,
|
|
8737
|
+
var Z = S.internal_flags, f = 0, _, w = P(2), R, L = new pt(f), r = E.ResvMaxBits(S, d, L, s);
|
|
8733
8738
|
f = L.bits;
|
|
8734
8739
|
var n = f + r;
|
|
8735
8740
|
for (n > fe.MAX_BITS_PER_GRANULE && (n = fe.MAX_BITS_PER_GRANULE), _ = 0, R = 0; R < Z.channels_out; ++R)
|
|
8736
8741
|
y[R] = Math.min(
|
|
8737
8742
|
fe.MAX_BITS_PER_CHANNEL,
|
|
8738
8743
|
f / Z.channels_out
|
|
8739
|
-
),
|
|
8744
|
+
), w[R] = 0 | y[R] * h[D][R] / 700 - y[R], w[R] > d * 3 / 4 && (w[R] = d * 3 / 4), w[R] < 0 && (w[R] = 0), w[R] + y[R] > fe.MAX_BITS_PER_CHANNEL && (w[R] = Math.max(
|
|
8740
8745
|
0,
|
|
8741
8746
|
fe.MAX_BITS_PER_CHANNEL - y[R]
|
|
8742
|
-
)), _ +=
|
|
8747
|
+
)), _ += w[R];
|
|
8743
8748
|
if (_ > r)
|
|
8744
8749
|
for (R = 0; R < Z.channels_out; ++R)
|
|
8745
|
-
|
|
8750
|
+
w[R] = r * w[R] / _;
|
|
8746
8751
|
for (R = 0; R < Z.channels_out; ++R)
|
|
8747
|
-
y[R] +=
|
|
8752
|
+
y[R] += w[R], r -= w[R];
|
|
8748
8753
|
for (_ = 0, R = 0; R < Z.channels_out; ++R)
|
|
8749
8754
|
_ += y[R];
|
|
8750
8755
|
return _ > fe.MAX_BITS_PER_GRANULE && x(), n;
|
|
@@ -8752,10 +8757,10 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
8752
8757
|
var d = 90.30873362, D = 94.82444863, s = j.FAST_LOG10_X(h, 10), Z = S * S, f = 0;
|
|
8753
8758
|
return s -= y, Z > 1e-20 && (f = 1 + j.FAST_LOG10_X(Z, 10 / d)), f < 0 && (f = 0), s *= f, s += y + d - D, Math.pow(10, 0.1 * s);
|
|
8754
8759
|
}, this.calc_xmin = function(S, h, y, d) {
|
|
8755
|
-
var D = 0, s = S.internal_flags, Z, f = 0, _ = 0,
|
|
8760
|
+
var D = 0, s = S.internal_flags, Z, f = 0, _ = 0, w = s.ATH, R = y.xr, L = S.VBR == B.vbr_mtrh ? 1 : 0, r = s.masking_lower;
|
|
8756
8761
|
for ((S.VBR == B.vbr_mtrh || S.VBR == B.vbr_mt) && (r = 1), Z = 0; Z < y.psy_lmax; Z++) {
|
|
8757
8762
|
var n, J, O, Q, me, xe;
|
|
8758
|
-
S.VBR == B.vbr_rh || S.VBR == B.vbr_mtrh ? J = athAdjust(
|
|
8763
|
+
S.VBR == B.vbr_rh || S.VBR == B.vbr_mtrh ? J = athAdjust(w.adjust, w.l[Z], w.floor) : J = w.adjust * w.l[Z], me = y.width[Z], O = J / me, Q = he, xe = me >> 1, n = 0;
|
|
8759
8764
|
do {
|
|
8760
8765
|
var Me, qe;
|
|
8761
8766
|
Me = R[f] * R[f], n += Me, Q += Me < O ? Me : O, f++, qe = R[f] * R[f], n += qe, Q += qe < O ? qe : O, f++;
|
|
@@ -8776,7 +8781,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
8776
8781
|
y.max_nonzero_coeff = xt;
|
|
8777
8782
|
for (var mt = y.sfb_smin; Z < y.psymax; mt++, Z += 3) {
|
|
8778
8783
|
var me, wt, Mt;
|
|
8779
|
-
for (S.VBR == B.vbr_rh || S.VBR == B.vbr_mtrh ? Mt = athAdjust(
|
|
8784
|
+
for (S.VBR == B.vbr_rh || S.VBR == B.vbr_mtrh ? Mt = athAdjust(w.adjust, w.s[mt], w.floor) : Mt = w.adjust * w.s[mt], me = y.width[Z], wt = 0; wt < 3; wt++) {
|
|
8780
8785
|
var n = 0, J, O, Q, xe = me >> 1;
|
|
8781
8786
|
O = Mt / me, Q = he;
|
|
8782
8787
|
do {
|
|
@@ -8819,7 +8824,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
8819
8824
|
}
|
|
8820
8825
|
return h.s = s, D;
|
|
8821
8826
|
}, this.calc_noise = function(S, h, y, d, D) {
|
|
8822
|
-
var s = 0, Z = 0, f, _,
|
|
8827
|
+
var s = 0, Z = 0, f, _, w = 0, R = 0, L = 0, r = -20, n = 0, J = S.scalefac, O = 0;
|
|
8823
8828
|
for (d.over_SSD = 0, f = 0; f < S.psymax; f++) {
|
|
8824
8829
|
var Q = S.global_gain - (J[O++] + (S.preflag != 0 ? H[f] : 0) << S.scalefac_scale + 1) - S.subblock_gain[S.window[f]] * 8, me = 0;
|
|
8825
8830
|
if (D != null && D.step[f] == Q)
|
|
@@ -8835,11 +8840,11 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
8835
8840
|
}
|
|
8836
8841
|
if (D != null && (D.global_gain = S.global_gain), L += me, me > 0) {
|
|
8837
8842
|
var Qe;
|
|
8838
|
-
Qe = Math.max(0 | me * 10 + 0.5, 1), d.over_SSD += Qe * Qe,
|
|
8843
|
+
Qe = Math.max(0 | me * 10 + 0.5, 1), d.over_SSD += Qe * Qe, w++, R += me;
|
|
8839
8844
|
}
|
|
8840
8845
|
r = Math.max(r, me);
|
|
8841
8846
|
}
|
|
8842
|
-
return d.over_count =
|
|
8847
|
+
return d.over_count = w, d.tot_noise = L, d.over_noise = R, d.max_noise = r, w;
|
|
8843
8848
|
};
|
|
8844
8849
|
}
|
|
8845
8850
|
function l() {
|
|
@@ -9067,15 +9072,15 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
9067
9072
|
s = E.IPOW20(_);
|
|
9068
9073
|
}
|
|
9069
9074
|
D += Z * (h + 1);
|
|
9070
|
-
for (var
|
|
9071
|
-
C[D +
|
|
9075
|
+
for (var w = -Z; w < 0; w++)
|
|
9076
|
+
C[D + w] *= s, C[D + w] > u.xrpow_max && (u.xrpow_max = C[D + w]);
|
|
9072
9077
|
D += Z * (3 - h - 1);
|
|
9073
9078
|
}
|
|
9074
9079
|
{
|
|
9075
9080
|
var s = E.IPOW20(202);
|
|
9076
9081
|
D += u.width[G] * (h + 1);
|
|
9077
|
-
for (var
|
|
9078
|
-
C[D +
|
|
9082
|
+
for (var w = -u.width[G]; w < 0; w++)
|
|
9083
|
+
C[D + w] *= s, C[D + w] > u.xrpow_max && (u.xrpow_max = C[D + w]);
|
|
9079
9084
|
}
|
|
9080
9085
|
}
|
|
9081
9086
|
}
|
|
@@ -9088,7 +9093,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
9088
9093
|
return y ? !1 : (h.mode_gr == 2 ? y = T.scale_bitcount(u) : y = T.scale_bitcount_lsf(h, u), y ? (h.noise_shaping > 1 && (Se.fill(h.pseudohalf, 0), u.scalefac_scale == 0 ? (be(u, G), y = !1) : u.block_type == o.SHORT_TYPE && h.subblock_gain > 0 && (y = F(h, u, G) || Y(u))), y || (h.mode_gr == 2 ? y = T.scale_bitcount(u) : y = T.scale_bitcount_lsf(h, u)), !y) : !0);
|
|
9089
9094
|
}
|
|
9090
9095
|
this.outer_loop = function(t, u, C, G, S, h) {
|
|
9091
|
-
var y = t.internal_flags, d = new v(), D = k(576), s = k(p.SFBMAX), Z = new it(), f, _ = new l(),
|
|
9096
|
+
var y = t.internal_flags, d = new v(), D = k(576), s = k(p.SFBMAX), Z = new it(), f, _ = new l(), w = 9999999, R = !1, L = !1, r = 0;
|
|
9092
9097
|
if (ce(y, u, h, S, G), y.noise_shaping == 0)
|
|
9093
9098
|
return 100;
|
|
9094
9099
|
E.calc_noise(
|
|
@@ -9123,7 +9128,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
9123
9128
|
G,
|
|
9124
9129
|
d,
|
|
9125
9130
|
_
|
|
9126
|
-
)) >
|
|
9131
|
+
)) > w && d.global_gain <= Q; )
|
|
9127
9132
|
d.global_gain++;
|
|
9128
9133
|
if (d.global_gain > Q)
|
|
9129
9134
|
break;
|
|
@@ -9135,7 +9140,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
9135
9140
|
J,
|
|
9136
9141
|
_
|
|
9137
9142
|
), J.bits = d.part2_3_length, u.block_type != o.SHORT_TYPE ? f = t.quant_comp : f = t.quant_comp_short, f = ne(f, Z, J) ? 1 : 0, f != 0)
|
|
9138
|
-
|
|
9143
|
+
w = u.part2_3_length, Z = J, u.assign(d), n = 0, V.arraycopy(G, 0, D, 0, 576);
|
|
9139
9144
|
else if (y.full_outer_loop == 0 && (++n > O && Z.over_count == 0 || y.noise_shaping_amp == 3 && L && n > 30 || y.noise_shaping_amp == 3 && L && d.global_gain - r > 15))
|
|
9140
9145
|
break;
|
|
9141
9146
|
} while (d.global_gain + d.scalefac_scale < 255);
|
|
@@ -9667,8 +9672,8 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
9667
9672
|
G = t[17] - t[9], h = t[15] - t[11], y = t[14] - t[12], d = t[0] + t[8], D = t[1] + t[7], s = t[2] + t[6], Z = t[3] + t[5], F[U + 17] = d + s - Z - (D - t[4]), C = (d + s - Z) * g[19] + (D - t[4]), u = (G - h - y) * g[18], F[U + 5] = u + C, F[U + 6] = u - C, S = (t[16] - t[10]) * g[18], D = D * g[19] + t[4], u = G * g[12] + S + h * g[13] + y * g[14], C = -d * g[16] + D - s * g[17] + Z * g[15], F[U + 1] = u + C, F[U + 2] = u - C, u = G * g[13] - S - h * g[14] + y * g[12], C = -d * g[17] + D - s * g[15] + Z * g[16], F[U + 9] = u + C, F[U + 10] = u - C, u = G * g[14] - S + h * g[12] - y * g[13], C = d * g[15] - D + s * g[16] - Z * g[17], F[U + 13] = u + C, F[U + 14] = u - C;
|
|
9668
9673
|
}
|
|
9669
9674
|
{
|
|
9670
|
-
var f, _,
|
|
9671
|
-
f = t[8] - t[0],
|
|
9675
|
+
var f, _, w, R, L, r, n, J;
|
|
9676
|
+
f = t[8] - t[0], w = t[6] - t[2], R = t[5] - t[3], L = t[17] + t[9], r = t[16] + t[10], n = t[15] + t[11], J = t[14] + t[12], F[U + 0] = L + n + J + (r + t[13]), u = (L + n + J) * g[19] - (r + t[13]), C = (f - w + R) * g[18], F[U + 11] = u + C, F[U + 12] = u - C, _ = (t[7] - t[1]) * g[18], r = t[13] - r * g[19], u = L * g[15] - r + n * g[16] + J * g[17], C = f * g[14] + _ + w * g[12] + R * g[13], F[U + 3] = u + C, F[U + 4] = u - C, u = -L * g[17] + r - n * g[15] - J * g[16], C = f * g[13] + _ - w * g[14] - R * g[12], F[U + 7] = u + C, F[U + 8] = u - C, u = -L * g[16] + r - n * g[17] - J * g[15], C = f * g[12] - _ + w * g[13] - R * g[14], F[U + 15] = u + C, F[U + 16] = u - C;
|
|
9672
9677
|
}
|
|
9673
9678
|
}
|
|
9674
9679
|
this.mdct_sub48 = function(F, U, t) {
|
|
@@ -9678,7 +9683,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
9678
9683
|
for (ne(u, C, s[Z]), ne(u, C + 32, s[Z + 1]), Z += 2, C += 64, h = 1; h < 32; h += 2)
|
|
9679
9684
|
s[Z - 1][h] *= -1;
|
|
9680
9685
|
for (h = 0; h < 32; h++, D += 18) {
|
|
9681
|
-
var _ = y.block_type,
|
|
9686
|
+
var _ = y.block_type, w = F.sb_sample[G][S], R = F.sb_sample[G][1 - S];
|
|
9682
9687
|
if (y.mixed_block_flag != 0 && h < 2 && (_ = 0), F.amp_filter[h] < 1e-12)
|
|
9683
9688
|
Se.fill(
|
|
9684
9689
|
d,
|
|
@@ -9689,13 +9694,13 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
9689
9694
|
else if (F.amp_filter[h] < 1 && x(), _ == o.SHORT_TYPE) {
|
|
9690
9695
|
for (var f = -E / 4; f < 0; f++) {
|
|
9691
9696
|
var L = T[o.SHORT_TYPE][f + 3];
|
|
9692
|
-
d[D + f * 3 + 9] =
|
|
9697
|
+
d[D + f * 3 + 9] = w[9 + f][Y[h]] * L - w[8 - f][Y[h]], d[D + f * 3 + 18] = w[14 - f][Y[h]] * L + w[15 + f][Y[h]], d[D + f * 3 + 10] = w[15 + f][Y[h]] * L - w[14 - f][Y[h]], d[D + f * 3 + 19] = R[2 - f][Y[h]] * L + R[3 + f][Y[h]], d[D + f * 3 + 11] = R[3 + f][Y[h]] * L - R[2 - f][Y[h]], d[D + f * 3 + 20] = R[8 - f][Y[h]] * L + R[9 + f][Y[h]];
|
|
9693
9698
|
}
|
|
9694
9699
|
H(d, D);
|
|
9695
9700
|
} else {
|
|
9696
9701
|
for (var r = k(18), f = -X / 4; f < 0; f++) {
|
|
9697
9702
|
var n, J;
|
|
9698
|
-
n = T[_][f + 27] * R[f + 9][Y[h]] + T[_][f + 36] * R[8 - f][Y[h]], J = T[_][f + 9] *
|
|
9703
|
+
n = T[_][f + 27] * R[f + 9][Y[h]] + T[_][f + 36] * R[8 - f][Y[h]], J = T[_][f + 9] * w[f + 9][Y[h]] - T[_][f + 18] * w[8 - f][Y[h]], r[f + 9] = n - J * he[3 + f + 9], r[f + 18] = n * he[3 + f + 9] + J;
|
|
9699
9704
|
}
|
|
9700
9705
|
be(d, D, r);
|
|
9701
9706
|
}
|
|
@@ -9780,11 +9785,11 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
9780
9785
|
C[0][0] = new M(), C[0][1] = new M(), C[1][0] = new M(), C[1][1] = new M();
|
|
9781
9786
|
var G, S = [null, null], h = Y.internal_flags, y = ue([2, 4]), d = [0.5, 0.5], D = [[0, 0], [0, 0]], s = [[0, 0], [0, 0]], Z, f, _;
|
|
9782
9787
|
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) {
|
|
9783
|
-
var
|
|
9788
|
+
var w, R = [null, null], L = 0, r = P(2);
|
|
9784
9789
|
for (_ = 0; _ < h.mode_gr; _++) {
|
|
9785
9790
|
for (f = 0; f < h.channels_out; f++)
|
|
9786
9791
|
R[f] = S[f], L = 576 + _ * 576 - o.FFTOFFSET;
|
|
9787
|
-
if (Y.VBR == B.vbr_mtrh || Y.VBR == B.vbr_mt ? x() :
|
|
9792
|
+
if (Y.VBR == B.vbr_mtrh || Y.VBR == B.vbr_mt ? x() : w = X.L3psycho_anal_ns(
|
|
9788
9793
|
Y,
|
|
9789
9794
|
R,
|
|
9790
9795
|
L,
|
|
@@ -9795,7 +9800,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
9795
9800
|
s[_],
|
|
9796
9801
|
y[_],
|
|
9797
9802
|
r
|
|
9798
|
-
),
|
|
9803
|
+
), w != 0)
|
|
9799
9804
|
return -4;
|
|
9800
9805
|
for (Y.mode == ie.JOINT_STEREO && x(), f = 0; f < h.channels_out; f++) {
|
|
9801
9806
|
var n = h.l3_side.tt[_][f];
|
|
@@ -9884,8 +9889,8 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
9884
9889
|
var Z, f;
|
|
9885
9890
|
Z = 1 - 2 * U * U, f = 2 * U * t, H = q + u, be = q + C - u;
|
|
9886
9891
|
do {
|
|
9887
|
-
var _,
|
|
9888
|
-
|
|
9892
|
+
var _, w, R, y, d, L, D, r, s, n;
|
|
9893
|
+
w = f * g[H + C] - Z * g[be + C], _ = Z * g[H + C] + f * g[be + C], d = g[H + 0] - _, y = g[H + 0] + _, L = g[be + 0] - w, R = g[be + 0] + w, w = f * g[H + S] - Z * g[be + S], _ = Z * g[H + S] + f * g[be + S], s = g[H + G] - _, D = g[H + G] + _, n = g[be + G] - w, r = g[be + G] + w, w = U * D - t * n, _ = t * D + U * n, g[H + G] = y - _, g[H + 0] = y + _, g[be + S] = L - w, g[be + C] = L + w, w = t * r - U * s, _ = U * r + t * s, g[be + G] = R - _, g[be + 0] = R + _, g[H + S] = d - w, g[H + C] = d + w, be += ne, H += ne;
|
|
9889
9894
|
} while (H < F);
|
|
9890
9895
|
Z = t, t = Z * X[Y + 0] - U * X[Y + 1], U = Z * X[Y + 1] + U * X[Y + 0];
|
|
9891
9896
|
}
|
|
@@ -10127,7 +10132,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
10127
10132
|
1.22321 * 1.22321,
|
|
10128
10133
|
1.14758 * 1.14758,
|
|
10129
10134
|
1
|
|
10130
|
-
],
|
|
10135
|
+
], w = [
|
|
10131
10136
|
2.35364 * 2.35364,
|
|
10132
10137
|
2.29259 * 2.29259,
|
|
10133
10138
|
2.23313 * 2.23313,
|
|
@@ -10165,9 +10170,9 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
10165
10170
|
if (z = Le.ATH.cb_l[re] * Le.ATH.adjust, se < D * z) {
|
|
10166
10171
|
if (se > z) {
|
|
10167
10172
|
var Ve, tt;
|
|
10168
|
-
return Ve = 1, De <= 13 && (Ve =
|
|
10173
|
+
return Ve = 1, De <= 13 && (Ve = w[De]), tt = j.FAST_LOG10_X(se / z, 10 / 15), se * ((f[De] - Ve) * tt + Ve);
|
|
10169
10174
|
}
|
|
10170
|
-
return De > 13 ? se : se *
|
|
10175
|
+
return De > 13 ? se : se * w[De];
|
|
10171
10176
|
}
|
|
10172
10177
|
return se * f[De];
|
|
10173
10178
|
}
|
|
@@ -11050,7 +11055,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
11050
11055
|
return -6;
|
|
11051
11056
|
if (O -= z, zt += z, Me.channels_out == 2, Me.mf_size += re, Me.mf_samples_to_encode < 1 && x(), Me.mf_samples_to_encode += re, Me.mf_size >= St) {
|
|
11052
11057
|
var Le = xe - qe;
|
|
11053
|
-
if (xe == 0 && (Le = 0), Qe =
|
|
11058
|
+
if (xe == 0 && (Le = 0), Qe = w(
|
|
11054
11059
|
r,
|
|
11055
11060
|
wt[0],
|
|
11056
11061
|
wt[1],
|
|
@@ -11066,7 +11071,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
11066
11071
|
}
|
|
11067
11072
|
return qe;
|
|
11068
11073
|
}
|
|
11069
|
-
function
|
|
11074
|
+
function w(r, n, J, O, Q, me) {
|
|
11070
11075
|
var xe = c.enc.lame_encode_mp3_frame(
|
|
11071
11076
|
r,
|
|
11072
11077
|
n,
|
|
@@ -11126,9 +11131,9 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
11126
11131
|
i(), a.lamejs = i;
|
|
11127
11132
|
});
|
|
11128
11133
|
(function(a) {
|
|
11129
|
-
var i = typeof window == "object" && !!window.document,
|
|
11134
|
+
var i = typeof window == "object" && !!window.document, b = i ? window : Object, x = b.Recorder, N = x.i18n;
|
|
11130
11135
|
a(x, N, N.$T, i);
|
|
11131
|
-
})(function(a, i,
|
|
11136
|
+
})(function(a, i, b, x) {
|
|
11132
11137
|
var N = function(k) {
|
|
11133
11138
|
return new P(k);
|
|
11134
11139
|
}, m = "WaveView", P = function(k) {
|
|
@@ -11165,7 +11170,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
11165
11170
|
var He = ee.canvas = k[ke];
|
|
11166
11171
|
else {
|
|
11167
11172
|
if (!x)
|
|
11168
|
-
throw new Error(
|
|
11173
|
+
throw new Error(b.G("NonBrowser-1", [m]));
|
|
11169
11174
|
var Se = k.elem;
|
|
11170
11175
|
Se && (typeof Se == "string" ? Se = document.querySelector(Se) : Se.length && (Se = Se[0])), Se && (k.width = Se.offsetWidth, k.height = Se.offsetHeight);
|
|
11171
11176
|
var V = ee.elem = document.createElement("div");
|
|
@@ -11175,7 +11180,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
11175
11180
|
}
|
|
11176
11181
|
var j = k.scale, oe = k.width * j, Be = k.height * j;
|
|
11177
11182
|
if (!oe || !Be)
|
|
11178
|
-
throw new Error(
|
|
11183
|
+
throw new Error(b.G("IllegalArgs-1", [m + " width=0 height=0"]));
|
|
11179
11184
|
He.width = oe, He.height = Be;
|
|
11180
11185
|
var B = ee.ctx = He.getContext("2d");
|
|
11181
11186
|
ee.linear1 = ee.genLinear(B, oe, k.linear1), ee.linear2 = ee.genLinear(B, oe, k.linear2), ee.linearBg = ee.genLinear(B, Be, k.linearBg, !0), ee._phase = 0;
|
|
@@ -11244,8 +11249,8 @@ const oi = {
|
|
|
11244
11249
|
sampleRate: 16e3,
|
|
11245
11250
|
bitRate: 16,
|
|
11246
11251
|
//mp3格式,指定采样率hz、比特率kbps,其他参数使用默认配置;注意:是数字的参数必须提供数字,不要用字符串;需要使用的type类型,需提前把格式支持文件加载进来,比如使用wav格式需要提前加载wav.js编码引擎
|
|
11247
|
-
onProcess: (a, i,
|
|
11248
|
-
this.duration = this.formatMilliseconds(
|
|
11252
|
+
onProcess: (a, i, b, x) => {
|
|
11253
|
+
this.duration = this.formatMilliseconds(b), this.wave && this.wave.input(
|
|
11249
11254
|
a[a.length - 1],
|
|
11250
11255
|
i,
|
|
11251
11256
|
x
|
|
@@ -11282,7 +11287,7 @@ const oi = {
|
|
|
11282
11287
|
},
|
|
11283
11288
|
methods: {
|
|
11284
11289
|
formatMilliseconds(a) {
|
|
11285
|
-
const i = Math.floor(a / 1e3),
|
|
11290
|
+
const i = Math.floor(a / 1e3), b = Math.floor(i / 60), x = i % 60, N = b.toString().padStart(2, "0"), m = x.toString().padStart(2, "0");
|
|
11286
11291
|
return `${N}:${m}`;
|
|
11287
11292
|
},
|
|
11288
11293
|
start() {
|
|
@@ -11299,7 +11304,7 @@ const oi = {
|
|
|
11299
11304
|
);
|
|
11300
11305
|
},
|
|
11301
11306
|
handleFinish() {
|
|
11302
|
-
const [, a] = this.blob.type.split("/"), i = (/* @__PURE__ */ new Date()).getTime(),
|
|
11307
|
+
const [, a] = this.blob.type.split("/"), i = (/* @__PURE__ */ new Date()).getTime(), b = `${i}.${a}`, x = new File([this.blob], b, {
|
|
11303
11308
|
type: this.blob.type,
|
|
11304
11309
|
lastModified: i
|
|
11305
11310
|
});
|
|
@@ -11312,7 +11317,7 @@ const oi = {
|
|
|
11312
11317
|
this.$emit("cancel");
|
|
11313
11318
|
},
|
|
11314
11319
|
handleTranslate() {
|
|
11315
|
-
const [, a] = this.blob.type.split("/"), i = (/* @__PURE__ */ new Date()).getTime(),
|
|
11320
|
+
const [, a] = this.blob.type.split("/"), i = (/* @__PURE__ */ new Date()).getTime(), b = `${i}.${a}`, x = new File([this.blob], b, {
|
|
11316
11321
|
type: this.blob.type,
|
|
11317
11322
|
lastModified: i
|
|
11318
11323
|
});
|
|
@@ -11334,7 +11339,7 @@ const oi = {
|
|
|
11334
11339
|
key: 1,
|
|
11335
11340
|
class: "audio-text"
|
|
11336
11341
|
}, pi = { class: "buttons" };
|
|
11337
|
-
function bi(a, i,
|
|
11342
|
+
function bi(a, i, b, x, N, m) {
|
|
11338
11343
|
const P = Bt("inline-svg");
|
|
11339
11344
|
return et(), nt("div", {
|
|
11340
11345
|
class: "wrap",
|
|
@@ -11461,10 +11466,10 @@ var wr = { exports: {} };
|
|
|
11461
11466
|
throw "First parameter is required.";
|
|
11462
11467
|
e = e || {
|
|
11463
11468
|
type: "video"
|
|
11464
|
-
}, e = new
|
|
11469
|
+
}, e = new b(I, e);
|
|
11465
11470
|
var l = this;
|
|
11466
11471
|
function v(te) {
|
|
11467
|
-
return e.disableLogs || console.log("RecordRTC version: ", l.version), te && (e = new
|
|
11472
|
+
return e.disableLogs || console.log("RecordRTC version: ", l.version), te && (e = new b(I, te)), e.disableLogs || console.log("started recording " + e.type + " stream."), we ? (we.clearRecordedData(), we.record(), Te("recording"), l.recordingDuration && de(), l) : (p(function() {
|
|
11468
11473
|
l.recordingDuration && de();
|
|
11469
11474
|
}), l);
|
|
11470
11475
|
}
|
|
@@ -12040,7 +12045,7 @@ var wr = { exports: {} };
|
|
|
12040
12045
|
* @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API.
|
|
12041
12046
|
* @param {object} config - {type:"video", disableLogs: true, numberOfAudioChannels: 1, bufferSize: 0, sampleRate: 0, video: HTMLVideoElement, getNativeBlob:true, etc.}
|
|
12042
12047
|
*/
|
|
12043
|
-
function
|
|
12048
|
+
function b(I, e) {
|
|
12044
12049
|
return !e.recorderType && !e.type && (e.audio && e.video ? e.type = "video" : e.audio && !e.video && (e.type = "audio")), e.recorderType && !e.type && (e.recorderType === K || e.recorderType === Ie || typeof Oe < "u" && e.recorderType === Oe ? e.type = "video" : e.recorderType === $e ? e.type = "gif" : e.recorderType === Xe ? e.type = "audio" : e.recorderType === Ye && (_e(I, "audio").length && _e(I, "video").length || !_e(I, "audio").length && _e(I, "video").length ? e.type = "video" : _e(I, "audio").length && !_e(I, "video").length && (e.type = "audio"))), typeof Ye < "u" && typeof MediaRecorder < "u" && "requestData" in MediaRecorder.prototype && (e.mimeType || (e.mimeType = "video/webm"), e.type || (e.type = e.mimeType.split("/")[0]), e.bitsPerSecond), e.type || (e.mimeType && (e.type = e.mimeType.split("/")[0]), e.type || (e.type = "audio")), e;
|
|
12045
12050
|
}
|
|
12046
12051
|
/**
|
|
@@ -12621,8 +12626,8 @@ var wr = { exports: {} };
|
|
|
12621
12626
|
ne === 2 && (y = S(H, be)), ne === 1 && (y = H);
|
|
12622
12627
|
var d = y.length, D = 44 + d * 2, s = new ArrayBuffer(D), Z = new DataView(s);
|
|
12623
12628
|
h(Z, 0, "RIFF"), Z.setUint32(4, 36 + d * 2, !0), h(Z, 8, "WAVE"), h(Z, 12, "fmt "), Z.setUint32(16, 16, !0), Z.setUint16(20, 1, !0), Z.setUint16(22, ne, !0), Z.setUint32(24, F, !0), Z.setUint32(28, F * ne * 2, !0), Z.setUint16(32, ne * 2, !0), Z.setUint16(34, 16, !0), h(Z, 36, "data"), Z.setUint32(40, d * 2, !0);
|
|
12624
|
-
for (var f = d, _ = 44,
|
|
12625
|
-
Z.setInt16(_, y[R] * (32767 *
|
|
12629
|
+
for (var f = d, _ = 44, w = 1, R = 0; R < f; R++)
|
|
12630
|
+
Z.setInt16(_, y[R] * (32767 * w), !0), _ += 2;
|
|
12626
12631
|
if (Y)
|
|
12627
12632
|
return Y({
|
|
12628
12633
|
buffer: s,
|
|
@@ -14039,7 +14044,7 @@ const yi = {
|
|
|
14039
14044
|
handleFinish() {
|
|
14040
14045
|
if (!this.blob)
|
|
14041
14046
|
return;
|
|
14042
|
-
const [, a] = this.blob.type.replace(/(;.*$)/, "").split("/"), i = (/* @__PURE__ */ new Date()).getTime(),
|
|
14047
|
+
const [, a] = this.blob.type.replace(/(;.*$)/, "").split("/"), i = (/* @__PURE__ */ new Date()).getTime(), b = `${i}.${a}`, x = new File([this.blob], b, {
|
|
14043
14048
|
type: this.blob.type,
|
|
14044
14049
|
lastModified: i
|
|
14045
14050
|
});
|
|
@@ -14056,7 +14061,7 @@ const yi = {
|
|
|
14056
14061
|
ref: "video",
|
|
14057
14062
|
class: "video-item"
|
|
14058
14063
|
}, Ti = { class: "buttons" };
|
|
14059
|
-
function Ri(a, i,
|
|
14064
|
+
function Ri(a, i, b, x, N, m) {
|
|
14060
14065
|
const P = Bt("inline-svg");
|
|
14061
14066
|
return et(), nt("div", {
|
|
14062
14067
|
class: "wrap",
|
|
@@ -14147,11 +14152,11 @@ const Mi = /* @__PURE__ */ jt(yi, [["render", Ri], ["__scopeId", "data-v-be255be
|
|
|
14147
14152
|
), this.url = this.$refs.canvas.toDataURL("image/jpeg");
|
|
14148
14153
|
},
|
|
14149
14154
|
handleFinish() {
|
|
14150
|
-
const i = `${(/* @__PURE__ */ new Date()).getTime()}.jpeg`,
|
|
14151
|
-
this.$emit("finish", [
|
|
14155
|
+
const i = `${(/* @__PURE__ */ new Date()).getTime()}.jpeg`, b = this.dataURLtoFile(this.url, i);
|
|
14156
|
+
this.$emit("finish", [b]), this.$emit("cancel");
|
|
14152
14157
|
},
|
|
14153
14158
|
dataURLtoFile(a, i) {
|
|
14154
|
-
let
|
|
14159
|
+
let b = a.split(","), x = b[0].match(/:(.*?);/)[1], N = atob(b[1]), m = N.length, P = new Uint8Array(m);
|
|
14155
14160
|
for (; m--; )
|
|
14156
14161
|
P[m] = N.charCodeAt(m);
|
|
14157
14162
|
return new File([P], i, { type: x });
|
|
@@ -14173,7 +14178,7 @@ const Mi = /* @__PURE__ */ jt(yi, [["render", Ri], ["__scopeId", "data-v-be255be
|
|
|
14173
14178
|
style: { display: "none" },
|
|
14174
14179
|
ref: "canvas"
|
|
14175
14180
|
}, Ii = { class: "buttons" };
|
|
14176
|
-
function Oi(a, i,
|
|
14181
|
+
function Oi(a, i, b, x, N, m) {
|
|
14177
14182
|
const P = Bt("inline-svg");
|
|
14178
14183
|
return et(), nt("div", {
|
|
14179
14184
|
class: "wrap",
|
|
@@ -14335,8 +14340,8 @@ const Fi = /* @__PURE__ */ jt(Ci, [["render", Oi], ["__scopeId", "data-v-d1a4de1
|
|
|
14335
14340
|
return this.$refs.titleEditor.focus();
|
|
14336
14341
|
},
|
|
14337
14342
|
handleChangeTitle(a, i = this.note) {
|
|
14338
|
-
let
|
|
14339
|
-
typeof a == "object" && (
|
|
14343
|
+
let b = a;
|
|
14344
|
+
typeof a == "object" && (b = JSON.stringify({
|
|
14340
14345
|
type: a.type,
|
|
14341
14346
|
size: a.size,
|
|
14342
14347
|
content: a.content,
|
|
@@ -14348,14 +14353,14 @@ const Fi = /* @__PURE__ */ jt(Ci, [["render", Oi], ["__scopeId", "data-v-d1a4de1
|
|
|
14348
14353
|
type: "title",
|
|
14349
14354
|
data: {
|
|
14350
14355
|
...i,
|
|
14351
|
-
title:
|
|
14356
|
+
title: b
|
|
14352
14357
|
}
|
|
14353
14358
|
});
|
|
14354
14359
|
},
|
|
14355
14360
|
checkModified(a = this.note.title) {
|
|
14356
14361
|
if (!this.note.created_at) {
|
|
14357
|
-
const i = this.isEmptyContent(),
|
|
14358
|
-
this.modified = !
|
|
14362
|
+
const i = this.isEmptyContent(), b = !a;
|
|
14363
|
+
this.modified = !b || !i;
|
|
14359
14364
|
}
|
|
14360
14365
|
},
|
|
14361
14366
|
isEmptyContent() {
|
|
@@ -14452,7 +14457,7 @@ const Fi = /* @__PURE__ */ jt(Ci, [["render", Oi], ["__scopeId", "data-v-d1a4de1
|
|
|
14452
14457
|
async handleFileUpload(a, i) {
|
|
14453
14458
|
if (!a.length)
|
|
14454
14459
|
return;
|
|
14455
|
-
const
|
|
14460
|
+
const b = Array.from(a).map(async (P) => {
|
|
14456
14461
|
const k = nr(P.type), ee = URL.createObjectURL(P);
|
|
14457
14462
|
let ue = {};
|
|
14458
14463
|
switch ((k.mainType === "image" || k.mainType === "video") && (ue = await sr(P, k.mainType)), k.mainType) {
|
|
@@ -14478,7 +14483,7 @@ const Fi = /* @__PURE__ */ jt(Ci, [["render", Oi], ["__scopeId", "data-v-d1a4de1
|
|
|
14478
14483
|
hash: this.hash
|
|
14479
14484
|
};
|
|
14480
14485
|
}
|
|
14481
|
-
}), x = await Promise.all(
|
|
14486
|
+
}), x = await Promise.all(b), N = this.store.currentId === Ni;
|
|
14482
14487
|
i ? i(x) : x.forEach((P, k) => {
|
|
14483
14488
|
k === 0 && N ? this.handleChangeTitle(P) : this.$refs.treeEditor.appendNode(P);
|
|
14484
14489
|
});
|
|
@@ -14505,13 +14510,13 @@ const Fi = /* @__PURE__ */ jt(Ci, [["render", Oi], ["__scopeId", "data-v-d1a4de1
|
|
|
14505
14510
|
});
|
|
14506
14511
|
},
|
|
14507
14512
|
savePendingNodes(a, i) {
|
|
14508
|
-
const
|
|
14509
|
-
x.push(i), window.localStorage.setItem(
|
|
14513
|
+
const b = `${er}_${a}`, x = JSON.parse(window.localStorage.getItem(b) || "[]");
|
|
14514
|
+
x.push(i), window.localStorage.setItem(b, JSON.stringify(x));
|
|
14510
14515
|
},
|
|
14511
14516
|
restorePendingNodes(a) {
|
|
14512
|
-
const i = `${er}_${a}`,
|
|
14513
|
-
|
|
14514
|
-
const x = JSON.parse(
|
|
14517
|
+
const i = `${er}_${a}`, b = window.localStorage.getItem(i);
|
|
14518
|
+
b && this.$nextTick(() => {
|
|
14519
|
+
const x = JSON.parse(b);
|
|
14515
14520
|
window.localStorage.removeItem(i), x.forEach((N) => {
|
|
14516
14521
|
N.uuid ? this.$refs.treeEditor.updateNode(N) : this.handleChangeTitle(N);
|
|
14517
14522
|
});
|
|
@@ -14530,7 +14535,7 @@ const Fi = /* @__PURE__ */ jt(Ci, [["render", Oi], ["__scopeId", "data-v-d1a4de1
|
|
|
14530
14535
|
key: 0,
|
|
14531
14536
|
class: "record-tree-option-right"
|
|
14532
14537
|
}, Gi = { style: { display: "none" } };
|
|
14533
|
-
function ji(a, i,
|
|
14538
|
+
function ji(a, i, b, x, N, m) {
|
|
14534
14539
|
const P = Bt("RecordTitle"), k = Bt("TreeEditor"), ee = Bt("inline-svg"), ue = Bt("ColorPanel"), pe = Bt("Popper"), ke = Bt("RecordAudio"), He = Bt("RecordVideo"), Se = Bt("RecordPhoto");
|
|
14535
14540
|
return et(), nt("div", {
|
|
14536
14541
|
class: Lt({
|
|
@@ -14541,22 +14546,22 @@ function ji(a, i, w, x, N, m) {
|
|
|
14541
14546
|
We("div", {
|
|
14542
14547
|
class: Lt({
|
|
14543
14548
|
"record-tree": !0,
|
|
14544
|
-
"record-tree-nobar": !
|
|
14549
|
+
"record-tree-nobar": !b.bar
|
|
14545
14550
|
}),
|
|
14546
14551
|
style: Ut(
|
|
14547
|
-
|
|
14548
|
-
height:
|
|
14552
|
+
b.height ? {
|
|
14553
|
+
height: b.height
|
|
14549
14554
|
} : ""
|
|
14550
14555
|
),
|
|
14551
14556
|
onMouseenter: i[1] || (i[1] = (...V) => m.hideHoverNote && m.hideHoverNote(...V))
|
|
14552
14557
|
}, [
|
|
14553
|
-
|
|
14558
|
+
b.showTitle ? (et(), Pt(P, {
|
|
14554
14559
|
key: 0,
|
|
14555
14560
|
ref: "titleEditor",
|
|
14556
|
-
tags:
|
|
14557
|
-
readOnly:
|
|
14558
|
-
enableDbEnter:
|
|
14559
|
-
note:
|
|
14561
|
+
tags: b.tags,
|
|
14562
|
+
readOnly: b.readOnly,
|
|
14563
|
+
enableDbEnter: b.enableDbEnter,
|
|
14564
|
+
note: b.note,
|
|
14560
14565
|
onFocusContent: m.focusContent,
|
|
14561
14566
|
onChange: m.handleChangeTitle,
|
|
14562
14567
|
onFile: m.handleTitleFile,
|
|
@@ -14567,9 +14572,9 @@ function ji(a, i, w, x, N, m) {
|
|
|
14567
14572
|
yt(k, {
|
|
14568
14573
|
ref: "treeEditor",
|
|
14569
14574
|
nodes: N.curNodes,
|
|
14570
|
-
tags:
|
|
14571
|
-
readOnly:
|
|
14572
|
-
enableDbEnter:
|
|
14575
|
+
tags: b.tags,
|
|
14576
|
+
readOnly: b.readOnly,
|
|
14577
|
+
enableDbEnter: b.enableDbEnter,
|
|
14573
14578
|
hash: N.hash,
|
|
14574
14579
|
isMobile: N.isMobile,
|
|
14575
14580
|
onChange: m.handleChangeNodes,
|
|
@@ -14579,7 +14584,7 @@ function ji(a, i, w, x, N, m) {
|
|
|
14579
14584
|
])
|
|
14580
14585
|
])
|
|
14581
14586
|
], 38),
|
|
14582
|
-
|
|
14587
|
+
b.bar && !b.readOnly ? (et(), nt("div", Pi, [
|
|
14583
14588
|
We("div", Ui, [
|
|
14584
14589
|
We("div", {
|
|
14585
14590
|
class: "record-tree-option-item",
|
|
@@ -14704,7 +14709,7 @@ function ji(a, i, w, x, N, m) {
|
|
|
14704
14709
|
We("div", {
|
|
14705
14710
|
class: "record-tree-option-item",
|
|
14706
14711
|
onClick: i[11] || (i[11] = kt((...V) => m.handleComplete && m.handleComplete(...V), ["stop"]))
|
|
14707
|
-
}, o0(N.modified ||
|
|
14712
|
+
}, o0(N.modified || b.note.created_at ? "完成" : "取消"), 1)
|
|
14708
14713
|
])) : Rt("", !0),
|
|
14709
14714
|
We("div", Gi, [
|
|
14710
14715
|
We("input", {
|
|
@@ -14731,19 +14736,19 @@ function ji(a, i, w, x, N, m) {
|
|
|
14731
14736
|
N.recordAudioVisible ? (et(), Pt(ke, {
|
|
14732
14737
|
key: 1,
|
|
14733
14738
|
isMobile: N.isMobile,
|
|
14734
|
-
responsive:
|
|
14739
|
+
responsive: b.responsive,
|
|
14735
14740
|
onFinish: m.handleFinishAudio,
|
|
14736
14741
|
onCancel: i[15] || (i[15] = (V) => N.recordAudioVisible = !1)
|
|
14737
14742
|
}, null, 8, ["isMobile", "responsive", "onFinish"])) : Rt("", !0),
|
|
14738
14743
|
N.recordVideoVisible ? (et(), Pt(He, {
|
|
14739
14744
|
key: 2,
|
|
14740
|
-
responsive:
|
|
14745
|
+
responsive: b.responsive,
|
|
14741
14746
|
onFinish: m.handleFileUpload,
|
|
14742
14747
|
onCancel: i[16] || (i[16] = (V) => N.recordVideoVisible = !1)
|
|
14743
14748
|
}, null, 8, ["responsive", "onFinish"])) : Rt("", !0),
|
|
14744
14749
|
N.recordPhotoVisible ? (et(), Pt(Se, {
|
|
14745
14750
|
key: 3,
|
|
14746
|
-
responsive:
|
|
14751
|
+
responsive: b.responsive,
|
|
14747
14752
|
onFinish: m.handleFileUpload,
|
|
14748
14753
|
onCancel: i[17] || (i[17] = (V) => N.recordPhotoVisible = !1)
|
|
14749
14754
|
}, null, 8, ["responsive", "onFinish"])) : Rt("", !0)
|