From 889df2a801c4a6ae1738332af15ce4197a9d3a93 Mon Sep 17 00:00:00 2001 From: XPoet Date: Fri, 24 Nov 2023 08:45:34 +0000 Subject: [PATCH] Update PicX a409270e0091ca59548408c169c598bdde01fcc9 --- assets/appreciation.b4045115.webp | Bin 25714 -> 0 bytes assets/index.2937a89d.css | 1 - assets/index.516abf06.css | 1 + assets/index.5d295842.js | 1 - assets/index.e2602616.js | 1 + index.html | 4 ++-- sw.js | 2 +- 7 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 assets/appreciation.b4045115.webp delete mode 100644 assets/index.2937a89d.css create mode 100644 assets/index.516abf06.css delete mode 100644 assets/index.5d295842.js create mode 100644 assets/index.e2602616.js diff --git a/assets/appreciation.b4045115.webp b/assets/appreciation.b4045115.webp deleted file mode 100644 index 55068a5f9d4c7c48d838300ee76ad18efc56cf37..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 25714 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 diff --git a/assets/index.2937a89d.css b/assets/index.2937a89d.css deleted file mode 100644 index 80a34c79..00000000 --- a/assets/index.2937a89d.css +++ /dev/null @@ -1 +0,0 @@ -.refresh-config-box[data-v-45c6dcd0]{display:flex;align-items:center;justify-content:flex-end;width:20rem;height:100%}.refresh-config-box .icon[data-v-45c6dcd0]{font-size:20rem;cursor:pointer}.config-page-container .operation[data-v-6ff20fd0]{display:flex;flex-direction:column;align-items:flex-end}.config-page-container .operation .el-button[data-v-6ff20fd0]{margin-left:20rem}.config-page-container .operation .el-button[data-v-6ff20fd0]:first-child{margin-left:0}.selected-info-bar-box[data-v-02ac177a]{display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;height:100%;font-size:12rem}.selected-info-bar-box .info-item[data-v-02ac177a]{margin-right:10rem}@media (max-width: 900px){.selected-info-bar-box .info-item.repo[data-v-02ac177a]{display:none}}@media (max-width: 600px){.selected-info-bar-box .info-item.branch[data-v-02ac177a]{display:none}}.selected-info-bar-box .info-item[data-v-02ac177a]:last-child{margin-right:0}.getting-images-container[data-v-7144607c]{position:relative;z-index:999;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:300rem;border:4rem dashed var(--text-color-4);border-radius:8rem}.getting-images-container.focus[data-v-7144607c]{border-color:var(--el-color-primary)}.getting-images-container.disabled[data-v-7144607c]{pointer-events:none}.getting-images-container[data-v-7144607c]:hover{border-color:var(--el-color-primary)}.getting-images-container label[data-v-7144607c]{position:absolute;z-index:1000;display:block;width:100%;height:100%;cursor:pointer}.getting-images-container input[type=file][data-v-7144607c]{position:absolute;top:-9999rem;left:-9999rem}.getting-images-container .upload-area-tips[data-v-7144607c]{color:#aaa;text-align:center;user-select:none}.getting-images-container .upload-area-tips .icon[data-v-7144607c]{font-size:100rem}.getting-images-container .upload-area-tips .text[data-v-7144607c]{font-size:20rem;cursor:default}.getting-images-container .preview-img[data-v-7144607c]{width:100%;height:100%;object-fit:cover}.upload-image-card-container[data-v-5045012e]{position:relative;display:flex;flex-direction:column;justify-content:flex-start;box-sizing:border-box;width:100%;margin-bottom:20rem;overflow:hidden;border:1rem solid var(--border-color);border-radius:6rem}.upload-image-card-container.wait-upload[data-v-5045012e]{border-color:var(--await-upload-color)}.upload-image-card-container.uploading[data-v-5045012e]{border-color:var(--uploading-color)}.upload-image-card-container.uploaded[data-v-5045012e]{border-color:var(--uploaded-color)}.upload-image-card-container[data-v-5045012e]:last-child{margin-bottom:0}.upload-image-card-container:hover .del-img-btn[data-v-5045012e]{display:block}.upload-image-card-container .img-show-container[data-v-5045012e]{position:relative;box-sizing:border-box;width:100%;height:140rem}.upload-image-card-container .img-show-container .el-image[data-v-5045012e]{width:100%;height:100%}.upload-image-card-container .before-upload-handle-container[data-v-5045012e]{position:relative;box-sizing:border-box;width:100%;border-top:1rem solid var(--border-color)}.upload-image-card-container .before-upload-handle-container .img-name-box[data-v-5045012e]{position:relative;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%;padding:2rem 5rem;font-size:13rem;border-bottom:1rem solid var(--border-color)}.upload-image-card-container .before-upload-handle-container .img-name-box.no-border[data-v-5045012e]{border-bottom:none}.upload-image-card-container .before-upload-handle-container .img-name-box .img-name[data-v-5045012e]{position:relative;box-sizing:border-box;width:calc(100% - 20rem)}.upload-image-card-container .before-upload-handle-container .img-name-box .fold-btn[data-v-5045012e]{position:relative;display:flex;align-items:center;justify-content:end;box-sizing:border-box;width:20rem;font-size:15rem;cursor:pointer}.upload-image-card-container .before-upload-handle-container .img-name-operate-box[data-v-5045012e]{position:relative;display:flex;flex-direction:column;justify-content:center;box-sizing:border-box;padding:2rem 5rem;border-bottom:1rem solid var(--border-color)}.upload-image-card-container .before-upload-handle-container .img-name-operate-box.folded[data-v-5045012e]{display:none}.upload-image-card-container .before-upload-handle-container .img-name-operate-box .operate-item[data-v-5045012e]{display:flex;align-items:center;height:28rem}.upload-image-card-container .before-upload-handle-container .img-name-operate-box .operate-item .rename-input[data-v-5045012e]{margin-left:10rem}.upload-image-card-container .before-upload-handle-container .img-info-box[data-v-5045012e]{display:flex;align-items:center;justify-content:space-between;padding:5rem;font-size:12rem;user-select:none}.upload-image-card-container .before-upload-handle-container .img-info-box .file-size-box[data-v-5045012e]{transform:scale(.9)}.upload-image-card-container .before-upload-handle-container .img-info-box .file-size-box .file-size-item[data-v-5045012e]{padding:2rem 3rem;background:var(--background-color-3);border-radius:3rem}.upload-image-card-container .before-upload-handle-container .img-info-box .file-size-box .original-file-size[data-v-5045012e]{margin-left:-4rem}.upload-image-card-container .before-upload-handle-container .img-info-box .file-size-box .original-file-size.del-line[data-v-5045012e]{text-decoration:line-through}.upload-image-card-container .before-upload-handle-container .img-info-box .file-size-box .finial-file-size[data-v-5045012e]{margin-left:6rem;color:var(--el-color-primary)}.upload-image-card-container .after-upload-handle-container[data-v-5045012e]{position:relative;box-sizing:border-box;width:100%;height:30rem;color:var(--el-color-primary);font-size:13rem;background:var(--el-color-primary-light-9);border-top:1rem solid var(--border-color);cursor:pointer}.upload-image-card-container .after-upload-handle-container[data-v-5045012e]:hover{color:var(--el-color-white);background:var(--el-color-primary)}.upload-image-card-container .del-img-btn[data-v-5045012e]{position:absolute;top:6rem;right:6rem;display:none;color:var(--background-color);font-size:22rem;cursor:pointer}.upload-image-card-container .upload-status-box[data-v-5045012e]{position:absolute;top:-8rem;left:-16rem;box-sizing:border-box;width:46rem;height:26rem;color:#fff;text-align:center;box-shadow:0 1rem 1rem var(--border-color);transform:rotate(315deg)}.upload-image-card-container .upload-status-box.wait-upload[data-v-5045012e]{background:var(--await-upload-color)}.upload-image-card-container .upload-status-box.uploaded[data-v-5045012e]{background:var(--uploaded-color)}.upload-image-card-container .upload-status-box.uploaded .el-icon[data-v-5045012e]{margin-top:12rem}.upload-image-card-container .upload-status-box .el-icon[data-v-5045012e]{margin-top:10rem;font-size:12rem;transform:rotate(45deg)}.upload-page-container{display:flex;justify-content:space-between;width:100%;height:100%}.upload-page-container .upload-page-left{flex-shrink:0;box-sizing:border-box;height:100%;margin-right:16rem}.upload-page-container .upload-page-left .uploaded-item{width:100%;margin-bottom:20rem}.upload-page-container .upload-page-left .uploaded-item:last-child{margin-bottom:0}.upload-page-container .upload-page-right{box-sizing:border-box;width:100%;height:100%;overflow-y:auto}.upload-page-container .upload-page-right.has-left{border-radius:0}.upload-page-container .upload-page-right .row-item{display:flex;justify-content:center;box-sizing:border-box;width:100%;margin-bottom:16rem}.upload-page-container .upload-page-right .row-item:last-child{margin-bottom:0}.upload-page-container .upload-page-right .row-item .content-box{box-sizing:border-box;width:100%;max-width:888rem;margin:0 auto}.upload-page-container .upload-page-right .row-item .content-box.upload-area-status{display:flex;align-items:center;justify-content:space-between;margin-bottom:10rem;font-size:12rem}.upload-page-container .upload-page-right .row-item .content-box .shortcut-key{margin-left:6rem;font-size:12rem}@media (max-width: 900px){.upload-page-container .upload-page-right .row-item .content-box .shortcut-key{display:none}}.upload-page-container .upload-page-right .upload-tools{width:100%}.upload-page-container .upload-page-right .upload-tools .repos-dir-info{margin-bottom:20rem;font-size:12rem}.upload-page-container .upload-page-right .upload-tools .repos-dir-info .repos-dir-info-item{margin-right:10rem}.upload-page-container .upload-page-right .upload-tools .repos-dir-info .repos-dir-info-item:last-child{margin-right:0}.copy-image-link-box[data-v-14701c17]{position:relative;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%;height:100%;padding:2rem}.copy-image-link-box .left[data-v-14701c17],.copy-image-link-box .right[data-v-14701c17]{display:flex;align-items:center}.copy-image-link-box .left[data-v-14701c17]{justify-content:flex-start;box-sizing:border-box;width:30rem;height:100%;font-size:18rem}.copy-image-link-box .right[data-v-14701c17]{justify-content:flex-end;width:calc(100% - 30rem);height:100%}.copy-image-link-box .right .el-button[data-v-14701c17]{width:100%}.image-card[data-v-ac323a38]{position:relative;box-sizing:border-box;width:100%;box-shadow:1rem 2rem 3rem var(--shadow-color);user-select:none}.image-card.checked[data-v-ac323a38],.image-card[data-v-ac323a38]:hover{box-shadow:0 0 10rem var(--shadow-hover-color)}.image-card .image-box[data-v-ac323a38]{position:relative;width:100%;height:150rem}.image-card .image-box .el-image[data-v-ac323a38]{width:100%;height:100%}.image-card .info-box[data-v-ac323a38]{position:relative;box-sizing:border-box;width:100%;margin-top:5rem;padding:5rem}.image-card .info-box .image-info[data-v-ac323a38]{display:flex;flex-direction:column;justify-content:space-between;box-sizing:border-box;width:100%;height:100%;color:var(--text-color)}.image-card .info-box .image-info .rename-operate[data-v-ac323a38]{display:flex;align-items:center;justify-content:space-between;height:22rem}.image-card .info-box .image-info .rename-operate .rename-input[data-v-ac323a38]{width:122rem}.image-card .info-box .image-info .filename[data-v-ac323a38]{height:18rem;margin-bottom:6rem;overflow:hidden;font-size:14rem;white-space:nowrap;text-overflow:ellipsis}.image-card .copy-link-box[data-v-ac323a38]{padding:5rem}.image-card .operation-box[data-v-ac323a38]{position:absolute;top:10rem;right:8rem;display:flex;justify-content:space-between;width:calc(100% - 16rem)}.image-card .operation-box .operation-left .picked-btn i[data-v-ac323a38]{font-weight:700}.image-card .operation-box .operation-right[data-v-ac323a38]{display:flex}.image-card .operation-box .operation-btn[data-v-ac323a38]{display:flex;align-items:center;justify-content:center;width:32rem;height:32rem;margin-right:8rem;font-size:18rem;background:var(--background-color);border-radius:50%;box-shadow:0 0 6rem var(--shadow-color);cursor:pointer}.image-card .operation-box .operation-btn[data-v-ac323a38]:last-child{margin-right:0}.folder-card[data-v-f3498e7c]{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;box-sizing:border-box;width:100rem;height:100rem;padding:3rem;user-select:none}.folder-card[data-v-f3498e7c]:hover{background:var(--background-color-2)}.folder-card .icon[data-v-f3498e7c]{display:flex;align-items:center;justify-content:center;width:50rem;height:50rem}.folder-card .icon svg[data-v-f3498e7c]{width:100%;height:100%}.folder-card .text[data-v-f3498e7c]{display:-webkit-box;width:90%;margin-top:5rem;overflow:hidden;font-size:14rem;text-align:center;text-overflow:ellipsis;word-wrap:break-word;word-break:break-all;-webkit-box-orient:vertical;-webkit-line-clamp:2}.selector-wrapper[data-v-0ff830e2]{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%;padding:4rem 12rem;border-bottom:1rem solid var(--background-color-3)}.selector-wrapper .selector-left-box[data-v-0ff830e2]{display:flex;align-items:center}.selector-wrapper .selector-left-box[data-v-0ff830e2] .el-checkbox{font-weight:unset}.selector-wrapper .selector-left-box[data-v-0ff830e2] .el-checkbox__label{line-height:unset}.selector-wrapper .selector-left-box .cancel-select-btn[data-v-0ff830e2]{color:var(--el-color-primary-light-3);font-size:13rem;cursor:pointer}.selector-wrapper .selector-left-box div.item[data-v-0ff830e2]{margin-left:8rem}.selector-wrapper .selector-right-box .btn-icon[data-v-0ff830e2]{margin-left:10rem;font-size:22rem;cursor:pointer}.management-page-container[data-v-400d1d22]{padding-bottom:0!important}.management-page-container .content-container[data-v-400d1d22]{position:relative;box-sizing:border-box;width:100%;height:100%;padding-top:50rem}.management-page-container .content-container .top[data-v-400d1d22]{position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%;height:50rem;padding-bottom:20rem;font-size:14rem}.management-page-container .content-container .top .right .btn-icon[data-v-400d1d22]{margin-left:10rem;font-size:22rem;cursor:pointer}.management-page-container .content-container .bottom[data-v-400d1d22]{position:relative;box-sizing:border-box;width:100%;height:100%;border:1rem solid var(--border-color);border-bottom:none;border-top-left-radius:6rem;border-top-right-radius:6rem}.management-page-container .content-container .bottom .image-management-list[data-v-400d1d22]{position:relative;display:flex;flex-wrap:wrap;align-content:flex-start;box-sizing:border-box;width:100%;padding:2rem;overflow-y:auto}.management-page-container .content-container .bottom .image-management-list li.image-management-item[data-v-400d1d22]{position:relative;box-sizing:border-box;padding:10rem}.management-page-container .content-container .bottom .image-management-list li.image-management-item.image[data-v-400d1d22]{width:230rem}.management-page-container .content-container .bottom .image-management-list li.image-management-item[data-v-400d1d22]:last-child{margin-right:0}*[contenteditable=true][data-v-2a875730]{box-sizing:border-box;padding:5px}.compress-config-box[data-v-186c475a]{position:relative;box-sizing:border-box}.compress-config-box .img-encoder-title[data-v-186c475a]{font-size:14rem}.compress-config-box .img-encoder-group[data-v-186c475a]{display:inline-block;margin-top:16rem}.compress-config-box .img-encoder-group .el-radio[data-v-186c475a]{display:block}.compress-config-box .img-encoder-group .desc[data-v-186c475a]{margin-left:10rem;color:var(--text-color-4);font-size:12rem}[data-v-4c83b394] .el-collapse-item__header{font-size:16rem}.setting-title[data-v-4c83b394]{margin:40rem 0 25rem;font-weight:700;font-size:16rem}.setting-title[data-v-4c83b394]:first-child{margin-top:0}.setting-list[data-v-4c83b394]{margin:0;padding:0}.setting-list .setting-item[data-v-4c83b394]{margin-bottom:10rem}.setting-list .setting-item.has-desc[data-v-4c83b394]{display:flex;align-items:center;color:var(--text-color-4);font-size:2rem;user-select:none}.setting-list .setting-item.has-desc .desc[data-v-4c83b394]{margin-left:10rem}@media (max-width: 600px){.setting-list .setting-item.has-desc .desc[data-v-4c83b394]{display:none}}.setting-list .setting-item.cdn[data-v-4c83b394]{display:flex;align-items:center}.setting-list .setting-item.last-child[data-v-4c83b394]{margin-bottom:0}.setting-list .setting-item .prefix-input[data-v-4c83b394]{width:calc(100% - 56rem);margin-left:56rem}.setting-list .setting-item[data-v-4c83b394] .el-switch{user-select:none}.image-link-type-rule-option .left[data-v-4c83b394]{float:left;margin-right:10rem}.image-link-type-rule-option .right[data-v-4c83b394]{float:right;color:var(--el-text-color-secondary);font-size:12rem}.tool-panel[data-v-06af4a8d]{position:relative;box-sizing:border-box;width:100%;height:100%}.tool-panel .panel-header[data-v-06af4a8d]{position:relative;display:flex;align-items:flex-start;box-sizing:border-box;width:100%;height:30rem}.tool-panel .panel-body[data-v-06af4a8d]{position:relative;box-sizing:border-box;width:100%;height:calc(100% - 30rem);overflow:hidden;border:1px solid var(--border-color);border-radius:8rem}.toolbox[data-v-06af4a8d]{position:relative;display:grid;grid-gap:20rem;grid-template-columns:repeat(4,1fr);box-sizing:border-box;padding:0}@media (max-width: 1200px){.toolbox[data-v-06af4a8d]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 900px){.toolbox[data-v-06af4a8d]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 600px){.toolbox[data-v-06af4a8d]{grid-template-columns:repeat(1,1fr)}.toolbox .tool-item[data-v-06af4a8d]{height:147.20000000000002rem!important;padding:18.400000000000002rem!important}}.toolbox .tool-item[data-v-06af4a8d]{position:relative;box-sizing:border-box;height:160rem;padding:20rem;border-radius:10rem;box-shadow:0 1rem 3rem var(--shadow-color);transition:all ease .2s}.toolbox .tool-item[data-v-06af4a8d]:hover{box-shadow:0 0 6rem var(--shadow-hover-color);transform:translateY(-2%) scale(1.02);cursor:pointer}.toolbox .tool-item .top[data-v-06af4a8d]{position:relative;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;width:100%;height:58rem}.toolbox .tool-item .top .left[data-v-06af4a8d]{position:relative;box-sizing:border-box;width:58rem;height:58rem;color:var(--el-color-primary);background:var(--el-color-primary-light-9);border-radius:10rem}.toolbox .tool-item .top .right[data-v-06af4a8d]{position:relative;box-sizing:border-box;padding-left:12rem;color:var(--text-color);font-weight:600;font-size:20rem}.toolbox .tool-item .bottom[data-v-06af4a8d]{position:relative;display:flex;align-items:flex-end;box-sizing:border-box;width:100%;height:calc(100% - 58rem);color:var(--text-color-4)}.feedback-page-container .help-info-item[data-v-4be0bb8a]{display:flex;align-items:center;margin-bottom:10rem;padding:6rem;font-size:16rem}.feedback-page-container .help-info-item code[data-v-4be0bb8a]{box-sizing:border-box;padding:3rem 6rem;font-weight:700;background:var(--background-color-2);border-radius:6rem;box-shadow:2rem 2rem 5rem var(--shadow-color)}.feedback-page-container .help-info-item[data-v-4be0bb8a]:last-child{margin-bottom:0}.feedback-page-container .description[data-v-4be0bb8a]{font-weight:700;line-height:28rem}.feedback-page-container .red-text[data-v-4be0bb8a]{margin-top:6rem;color:var(--el-color-danger);font-size:22rem}.img-process-state-card-container[data-v-d59c7528]{position:relative;display:flex;flex-direction:column;justify-content:flex-start;box-sizing:border-box;width:100%;margin-bottom:20rem;overflow:hidden;border:1rem solid var(--border-color);border-radius:6rem}.img-process-state-card-container[data-v-d59c7528]:last-child{margin-bottom:0}.img-process-state-card-container:hover .del-btn[data-v-d59c7528]{display:block}.img-process-state-card-container .img-container[data-v-d59c7528]{position:relative;box-sizing:border-box;width:100%;height:140rem}.img-process-state-card-container .img-container .el-image[data-v-d59c7528]{width:100%;height:100%}.img-process-state-card-container .info-container[data-v-d59c7528]{position:relative;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%;padding:3rem 5rem;border-top:1rem solid var(--border-color)}.img-process-state-card-container .info-container .img-name[data-v-d59c7528]{max-width:50%;font-size:13rem}.img-process-state-card-container .info-container .img-size[data-v-d59c7528]{display:flex;justify-content:flex-end;transform:scale(.9)}.img-process-state-card-container .info-container .img-size .file-size-item[data-v-d59c7528]{padding:2rem 3rem;font-size:12rem;background:var(--background-color-3);border-radius:3rem}.img-process-state-card-container .info-container .img-size .original-file-size[data-v-d59c7528]{margin-right:-2rem}.img-process-state-card-container .info-container .img-size .original-file-size.del-line[data-v-d59c7528]{margin-right:0;text-decoration:line-through}.img-process-state-card-container .info-container .img-size .finial-file-size[data-v-d59c7528]{margin-right:-4rem;margin-left:4rem;color:var(--el-color-primary)}.img-process-state-card-container .operate-container[data-v-d59c7528]{position:relative;box-sizing:border-box;width:100%;height:30rem;font-size:13rem;background:var(--background-color-2);border-top:1rem solid var(--border-color);cursor:pointer}.img-process-state-card-container .operate-container[data-v-d59c7528]:hover{background:var(--el-color-primary-light-9)}.img-process-state-card-container .del-btn[data-v-d59c7528]{position:absolute;top:6rem;right:6rem;display:none;color:var(--background-color);font-size:22rem;cursor:pointer}.compress-tool-container[data-v-2f45486b]{position:relative;display:flex;justify-content:space-between;box-sizing:border-box;width:100%;height:100%}.compress-tool-container .compress-tool-left[data-v-2f45486b]{position:relative;box-sizing:border-box;width:260rem;height:100%;padding:10rem;overflow-y:auto;border-right:1px solid var(--border-color)}.compress-tool-container .compress-tool-left .el-image[data-v-2f45486b]{width:100%}.compress-tool-container .compress-tool-right[data-v-2f45486b]{position:relative;box-sizing:border-box;width:calc(100% - 260rem);height:100%;padding:20rem}.compress-tool-container .compress-tool-right.no-img[data-v-2f45486b]{width:100%}.compress-tool-container .compress-tool-right .user-operate[data-v-2f45486b]{display:flex;justify-content:flex-end;margin-top:20rem}.compress-tool-container .compress-tool-right .user-operate.compressed[data-v-2f45486b]{justify-content:space-between}.base64-tool-container[data-v-654d8c19]{position:relative;display:flex;justify-content:space-between;box-sizing:border-box;width:100%;height:100%}.base64-tool-container .base64-tool-left[data-v-654d8c19]{position:relative;box-sizing:border-box;width:260rem;height:100%;padding:10rem;overflow-y:auto;border-right:1px solid var(--border-color)}.base64-tool-container .base64-tool-left .el-image[data-v-654d8c19]{width:100%}.base64-tool-container .base64-tool-right[data-v-654d8c19]{position:relative;box-sizing:border-box;width:calc(100% - 260rem);height:100%;padding:20rem}.base64-tool-container .base64-tool-right.no-img[data-v-654d8c19]{width:100%}.base64-tool-container .base64-tool-right .user-operate[data-v-654d8c19]{display:flex;justify-content:flex-end;margin-top:20rem}.watermark-tool-container[data-v-8c458a98]{position:relative;display:flex;justify-content:space-between;box-sizing:border-box;width:100%;height:100%}.watermark-tool-container .watermark-tool-left[data-v-8c458a98]{position:relative;box-sizing:border-box;width:260rem;height:100%;padding:10rem;overflow-y:auto;border-right:1px solid var(--border-color)}.watermark-tool-container .watermark-tool-left .el-image[data-v-8c458a98]{width:100%}.watermark-tool-container .watermark-tool-right[data-v-8c458a98]{position:relative;box-sizing:border-box;width:calc(100% - 260rem);height:100%;padding:20rem}.watermark-tool-container .watermark-tool-right.no-img[data-v-8c458a98]{width:100%}.watermark-tool-container .watermark-tool-right .user-operate[data-v-8c458a98]{display:flex;justify-content:flex-end;margin-top:20rem}.watermark-tool-container .watermark-tool-right .user-operate.watermarked[data-v-8c458a98]{justify-content:space-between}.site-count{transition:all .2s ease-in}.header[data-v-2d421138]{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%;height:100%;padding:0 20rem;background:var(--background-color)}.header .header-left[data-v-2d421138]{display:flex;justify-content:flex-start;height:100%}.header .header-left .brand[data-v-2d421138]{display:flex;align-items:center;justify-content:flex-start;height:100%;cursor:pointer}.header .header-left .brand .logo[data-v-2d421138]{width:46rem;height:46rem;margin-right:10rem}.header .header-left .brand .logo img[data-v-2d421138]{width:100%}.header .header-left .brand .title[data-v-2d421138]{font-weight:700;font-size:36rem}.header .header-left .website-count[data-v-2d421138]{display:flex;align-items:flex-end;box-sizing:border-box;margin-left:10rem;padding-bottom:12rem;font-size:14rem;cursor:pointer}@media (max-width: 600px){.header .header-left .website-count[data-v-2d421138]{display:none}}.header .header-right[data-v-2d421138]{display:flex;align-items:center;justify-content:flex-end;user-select:none}.header .header-right .user-info[data-v-2d421138]{display:flex;align-items:center;cursor:pointer}.header .header-right .user-info .username[data-v-2d421138]{font-size:16rem}.header .header-right .user-info .avatar-box[data-v-2d421138]{display:flex;align-items:center;justify-content:space-between;margin-left:12rem}.header .header-right .user-info .avatar-box .avatar[data-v-2d421138]{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:38rem;height:38rem;padding:1rem;color:var(--text-color);border:1rem solid var(--text-color);border-radius:50%}.header .header-right .user-info .avatar-box .avatar img[data-v-2d421138]{width:100%;height:100%;border-radius:50%}.header .header-right .user-info .avatar-box .user-filled-icon[data-v-2d421138]{font-size:20rem}.header .header-right .user-info .avatar-box .caret-bottom-icon[data-v-2d421138]{margin-left:5rem;font-size:20rem}.nav[data-v-5951a7aa]{position:relative;display:flex;flex-direction:column;justify-content:space-between;box-sizing:border-box;width:100%;height:100%;background:var(--background-color);border-top-right-radius:10rem}.nav ul.nav-list[data-v-5951a7aa]{margin:0;padding:0}.nav .nav-item[data-v-5951a7aa]{position:relative;box-sizing:border-box;width:100%;height:78rem;cursor:pointer;user-select:none}.nav .nav-item[data-v-5951a7aa]:first-child{border-top-right-radius:10rem}.nav .nav-item.active[data-v-5951a7aa]{color:var(--el-color-primary);font-weight:700;background:var(--el-color-primary-light-9)}.nav .nav-item .nav-content[data-v-5951a7aa]{display:flex;flex-direction:column;align-items:center;justify-content:center}.nav .nav-item .nav-content .nav-name[data-v-5951a7aa]{margin-top:5rem;font-size:12rem;text-align:center}.main-container[data-v-c5c7351e]{position:absolute;box-sizing:border-box;width:100%;height:100%;font-size:15rem;background:var(--background-color-2)}.main-container .top-container[data-v-c5c7351e]{position:relative;box-sizing:border-box;width:100%;height:60rem}.main-container .bottom-container[data-v-c5c7351e]{position:relative;box-sizing:border-box;width:100%;height:calc(100% - 60rem)}.main-container .bottom-container .bottom-content[data-v-c5c7351e]{position:relative;box-sizing:border-box;width:100%;height:100%;padding-left:90rem}.main-container .bottom-container .bottom-content .left[data-v-c5c7351e]{position:absolute;top:0;left:0;box-sizing:border-box;width:90rem;height:100%;padding-top:16rem}.main-container .bottom-container .bottom-content .right[data-v-c5c7351e]{position:relative;box-sizing:border-box;width:100%;height:100%;padding-top:16rem;padding-left:16rem}#app{position:relative;box-sizing:border-box;width:100%;height:100%;font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}html.dark{color-scheme:dark;--el-color-primary:#409eff;--el-color-primary-light-3:#3375b9;--el-color-primary-light-5:#2a598a;--el-color-primary-light-7:#213d5b;--el-color-primary-light-8:#1d3043;--el-color-primary-light-9:#18222c;--el-color-primary-dark-2:#66b1ff;--el-color-success:#67c23a;--el-color-success-light-3:#4e8e2f;--el-color-success-light-5:#3e6b27;--el-color-success-light-7:#2d481f;--el-color-success-light-8:#25371c;--el-color-success-light-9:#1c2518;--el-color-success-dark-2:#85ce61;--el-color-warning:#e6a23c;--el-color-warning-light-3:#a77730;--el-color-warning-light-5:#7d5b28;--el-color-warning-light-7:#533f20;--el-color-warning-light-8:#3e301c;--el-color-warning-light-9:#292218;--el-color-warning-dark-2:#ebb563;--el-color-danger:#f56c6c;--el-color-danger-light-3:#b25252;--el-color-danger-light-5:#854040;--el-color-danger-light-7:#582e2e;--el-color-danger-light-8:#412626;--el-color-danger-light-9:#2b1d1d;--el-color-danger-dark-2:#f78989;--el-color-error:#f56c6c;--el-color-error-light-3:#b25252;--el-color-error-light-5:#854040;--el-color-error-light-7:#582e2e;--el-color-error-light-8:#412626;--el-color-error-light-9:#2b1d1d;--el-color-error-dark-2:#f78989;--el-color-info:#909399;--el-color-info-light-3:#6b6d71;--el-color-info-light-5:#525457;--el-color-info-light-7:#393a3c;--el-color-info-light-8:#2d2d2f;--el-color-info-light-9:#202121;--el-color-info-dark-2:#a6a9ad;--el-box-shadow:0px 12px 32px 4px rgba(0, 0, 0, .36),0px 8px 20px rgba(0, 0, 0, .72);--el-box-shadow-light:0px 0px 12px rgba(0, 0, 0, .72);--el-box-shadow-lighter:0px 0px 6px rgba(0, 0, 0, .72);--el-box-shadow-dark:0px 16px 48px 16px rgba(0, 0, 0, .72),0px 12px 32px #000000,0px 8px 16px -8px #000000;--el-bg-color-page:#0a0a0a;--el-bg-color:#141414;--el-bg-color-overlay:#1d1e1f;--el-text-color-primary:#E5EAF3;--el-text-color-regular:#CFD3DC;--el-text-color-secondary:#A3A6AD;--el-text-color-placeholder:#8D9095;--el-text-color-disabled:#6C6E72;--el-border-color-darker:#636466;--el-border-color-dark:#58585B;--el-border-color:#4C4D4F;--el-border-color-light:#414243;--el-border-color-lighter:#363637;--el-border-color-extra-light:#2B2B2C;--el-fill-color-darker:#424243;--el-fill-color-dark:#39393A;--el-fill-color:#303030;--el-fill-color-light:#262727;--el-fill-color-lighter:#1D1D1D;--el-fill-color-extra-light:#191919;--el-fill-color-blank:transparent;--el-mask-color:rgba(0, 0, 0, .8);--el-mask-color-extra-light:rgba(0, 0, 0, .3)}html.dark .el-button{--el-button-disabled-text-color:rgba(255, 255, 255, .5)}html.dark .el-card{--el-card-bg-color:var(--el-bg-color-overlay)}html.dark .el-empty{--el-empty-fill-color-0:var(--el-color-black);--el-empty-fill-color-1:#4b4b52;--el-empty-fill-color-2:#36383d;--el-empty-fill-color-3:#1e1e20;--el-empty-fill-color-4:#262629;--el-empty-fill-color-5:#202124;--el-empty-fill-color-6:#212224;--el-empty-fill-color-7:#1b1c1f;--el-empty-fill-color-8:#1c1d1f;--el-empty-fill-color-9:#18181a}:root{--background-color: #fff;--background-color-2: #f2f2f2;--background-color-3: #e6e6e6;--text-color: #50505c;--text-color-2: #484853;--text-color-3: #4c4c57;--text-color-4: #808091;--text-color-5: #ededef;--border-color: #ccc;--shadow-color: rgba(0,0,0,.25);--shadow-hover-color: rgba(0,0,0,.45);--scrollbar-color: #ccc;--scroll-bar-bg-color: #b3b3b3;--await-upload-color: #e6a23c;--uploading-color: #409eff;--uploaded-color: #67c23a}@media (prefers-color-scheme: light){:root{--background-color: #fff;--background-color-2: #f2f2f2;--background-color-3: #e6e6e6;--text-color: #50505c;--text-color-2: #484853;--text-color-3: #4c4c57;--text-color-4: #808091;--text-color-5: #ededef;--border-color: #ccc;--shadow-color: rgba(0,0,0,.25);--shadow-hover-color: rgba(0,0,0,.45);--scrollbar-color: #ccc;--scroll-bar-bg-color: #b3b3b3;--await-upload-color: #e6a23c;--uploading-color: #409eff;--uploaded-color: #67c23a}}@media (prefers-color-scheme: dark){:root{--background-color: #2a2a2f;--background-color-2: #26262a;--background-color-3: #242428;--text-color: #bebec6;--text-color-2: #d2d2d7;--text-color-3: #cbcbd1;--text-color-4: #9595a2;--text-color-5: #242429;--border-color: #52525b;--shadow-color: rgba(128,128,128,.25);--shadow-hover-color: rgba(128,128,128,.45);--scrollbar-color: #222226;--scroll-bar-bg-color: #666672;--await-upload-color: #b47517;--uploading-color: #006edf;--uploaded-color: #488829}}.light{--background-color: #fff;--background-color-2: #f2f2f2;--background-color-3: #e6e6e6;--text-color: #50505c;--text-color-2: #484853;--text-color-3: #4c4c57;--text-color-4: #808091;--text-color-5: #ededef;--border-color: #ccc;--shadow-color: rgba(0,0,0,.25);--shadow-hover-color: rgba(0,0,0,.45);--scrollbar-color: #ccc;--scroll-bar-bg-color: #b3b3b3;--await-upload-color: #e6a23c;--uploading-color: #409eff;--uploaded-color: #67c23a}.dark{--background-color: #2a2a2f;--background-color-2: #26262a;--background-color-3: #242428;--text-color: #bebec6;--text-color-2: #d2d2d7;--text-color-3: #cbcbd1;--text-color-4: #9595a2;--text-color-5: #242429;--border-color: #52525b;--shadow-color: rgba(128,128,128,.25);--shadow-hover-color: rgba(128,128,128,.45);--scrollbar-color: #222226;--scroll-bar-bg-color: #666672;--await-upload-color: #b47517;--uploading-color: #006edf;--uploaded-color: #488829}:root{--el-color-primary: #4975c6;--el-color-primary-light-3: #5482d3;--el-color-primary-light-5: #a0bbff;--el-color-primary-light-7: #c6d3ff;--el-color-primary-light-8: #d9e2ff;--el-color-primary-light-9: #ecefff}:root{font-size:1px}@media (max-width: 900px){:root{font-size:.95px}}@media (max-width: 900px){:root{font-size:.9px}}@media (max-width: 600px){:root{font-size:.8px}}*::-webkit-scrollbar{width:8rem;height:8rem}*::-webkit-scrollbar-thumb{background:var(--scrollbar-color);border-radius:10rem}*::-webkit-scrollbar-track{background:transparent}html,body{position:relative;width:100%;height:100%;margin:0;padding:0;color:var(--text-color)}a,a:link{color:var(--text-color);text-decoration:none}ul,ol,li{margin:0;list-style:none}.flex-center{display:flex;align-items:center;justify-content:center}.flex-start{display:flex;align-items:center;justify-content:flex-start}.page-container{position:relative;box-sizing:border-box;width:100%;height:100%;padding:30rem;overflow-y:auto;background:var(--background-color);border-top-left-radius:10rem}.page-container .page-content{position:relative;left:50%;box-sizing:border-box;width:100%;max-width:1200rem;height:100%;transform:translate(-50%)}.clearfix:after{display:block;clear:both;height:0;overflow:hidden;visibility:hidden;content:""}.custom-contextmenu-container{position:relative;box-sizing:border-box;padding:5rem 0;color:var(--text-color);background:var(--background-color);border-radius:3rem;box-shadow:var(--el-box-shadow-light)}.custom-contextmenu-container .custom-contextmenu-item{position:relative;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding:8rem 10rem;cursor:pointer}.custom-contextmenu-container .custom-contextmenu-item.copy-link{display:none}.custom-contextmenu-container .custom-contextmenu-item:hover{color:var(--el-color-primary);background:var(--el-color-primary-light-9)}.text-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.quick-actions-popover{position:relative;box-sizing:border-box;width:100%;padding:10rem;background:var(--background-color);user-select:none}.quick-actions-popover .el-switch{white-space:nowrap}.personal-center-popover{position:relative;box-sizing:border-box;width:100%;padding:10rem 0;background:var(--background-color)}.personal-center-popover .content-item{position:relative;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%;height:36rem;padding:0 12rem;color:var(--text-color-3);font-size:14rem;cursor:pointer}.personal-center-popover .content-item .el-icon{margin-right:3rem}.personal-center-popover .content-item:hover{background:var(--background-color-2)}.toggle-language-message{box-sizing:border-box;background:var(--background-color);border-radius:3rem;box-shadow:var(--el-box-shadow-light)}.toggle-language-message .el-icon{display:none}.toggle-language-message .content-box{line-height:2}.toggle-language-message .content-box .btn-box{margin-left:6rem}.toggle-language-message .content-box .btn{margin-left:2rem;padding:2rem 4rem;font-size:12rem;border-style:solid;border-width:1rem;border-radius:4rem;cursor:pointer}.toggle-language-message .content-box .confirm{color:var(--el-color-primary);background:var(--el-color-primary-light-9);border-color:var(--el-color-primary-light-5)}.toggle-language-message .content-box .confirm:hover{color:var(--el-color-white);background:var(--el-color-primary);border-color:var(--el-color-primary)}.toggle-language-message .content-box .cancel{color:var(--el-color-info);background:var(--el-color-info-light-9);border-color:var(--el-color-info-light-5)}.toggle-language-message .content-box .cancel:hover{color:var(--el-color-white);background:var(--el-color-info);border-color:var(--el-color-info)} diff --git a/assets/index.516abf06.css b/assets/index.516abf06.css new file mode 100644 index 00000000..921e2458 --- /dev/null +++ b/assets/index.516abf06.css @@ -0,0 +1 @@ +.refresh-config-box[data-v-45c6dcd0]{display:flex;align-items:center;justify-content:flex-end;width:20rem;height:100%}.refresh-config-box .icon[data-v-45c6dcd0]{font-size:20rem;cursor:pointer}.config-page-container .operation[data-v-6ff20fd0]{display:flex;flex-direction:column;align-items:flex-end}.config-page-container .operation .el-button[data-v-6ff20fd0]{margin-left:20rem}.config-page-container .operation .el-button[data-v-6ff20fd0]:first-child{margin-left:0}.selected-info-bar-box[data-v-02ac177a]{display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;height:100%;font-size:12rem}.selected-info-bar-box .info-item[data-v-02ac177a]{margin-right:10rem}@media (max-width: 900px){.selected-info-bar-box .info-item.repo[data-v-02ac177a]{display:none}}@media (max-width: 600px){.selected-info-bar-box .info-item.branch[data-v-02ac177a]{display:none}}.selected-info-bar-box .info-item[data-v-02ac177a]:last-child{margin-right:0}.getting-images-container[data-v-7144607c]{position:relative;z-index:999;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:300rem;border:4rem dashed var(--text-color-4);border-radius:8rem}.getting-images-container.focus[data-v-7144607c]{border-color:var(--el-color-primary)}.getting-images-container.disabled[data-v-7144607c]{pointer-events:none}.getting-images-container[data-v-7144607c]:hover{border-color:var(--el-color-primary)}.getting-images-container label[data-v-7144607c]{position:absolute;z-index:1000;display:block;width:100%;height:100%;cursor:pointer}.getting-images-container input[type=file][data-v-7144607c]{position:absolute;top:-9999rem;left:-9999rem}.getting-images-container .upload-area-tips[data-v-7144607c]{color:#aaa;text-align:center;user-select:none}.getting-images-container .upload-area-tips .icon[data-v-7144607c]{font-size:100rem}.getting-images-container .upload-area-tips .text[data-v-7144607c]{font-size:20rem;cursor:default}.getting-images-container .preview-img[data-v-7144607c]{width:100%;height:100%;object-fit:cover}.upload-image-card-container[data-v-5045012e]{position:relative;display:flex;flex-direction:column;justify-content:flex-start;box-sizing:border-box;width:100%;margin-bottom:20rem;overflow:hidden;border:1rem solid var(--border-color);border-radius:6rem}.upload-image-card-container.wait-upload[data-v-5045012e]{border-color:var(--await-upload-color)}.upload-image-card-container.uploading[data-v-5045012e]{border-color:var(--uploading-color)}.upload-image-card-container.uploaded[data-v-5045012e]{border-color:var(--uploaded-color)}.upload-image-card-container[data-v-5045012e]:last-child{margin-bottom:0}.upload-image-card-container:hover .del-img-btn[data-v-5045012e]{display:block}.upload-image-card-container .img-show-container[data-v-5045012e]{position:relative;box-sizing:border-box;width:100%;height:140rem}.upload-image-card-container .img-show-container .el-image[data-v-5045012e]{width:100%;height:100%}.upload-image-card-container .before-upload-handle-container[data-v-5045012e]{position:relative;box-sizing:border-box;width:100%;border-top:1rem solid var(--border-color)}.upload-image-card-container .before-upload-handle-container .img-name-box[data-v-5045012e]{position:relative;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%;padding:2rem 5rem;font-size:13rem;border-bottom:1rem solid var(--border-color)}.upload-image-card-container .before-upload-handle-container .img-name-box.no-border[data-v-5045012e]{border-bottom:none}.upload-image-card-container .before-upload-handle-container .img-name-box .img-name[data-v-5045012e]{position:relative;box-sizing:border-box;width:calc(100% - 20rem)}.upload-image-card-container .before-upload-handle-container .img-name-box .fold-btn[data-v-5045012e]{position:relative;display:flex;align-items:center;justify-content:end;box-sizing:border-box;width:20rem;font-size:15rem;cursor:pointer}.upload-image-card-container .before-upload-handle-container .img-name-operate-box[data-v-5045012e]{position:relative;display:flex;flex-direction:column;justify-content:center;box-sizing:border-box;padding:2rem 5rem;border-bottom:1rem solid var(--border-color)}.upload-image-card-container .before-upload-handle-container .img-name-operate-box.folded[data-v-5045012e]{display:none}.upload-image-card-container .before-upload-handle-container .img-name-operate-box .operate-item[data-v-5045012e]{display:flex;align-items:center;height:28rem}.upload-image-card-container .before-upload-handle-container .img-name-operate-box .operate-item .rename-input[data-v-5045012e]{margin-left:10rem}.upload-image-card-container .before-upload-handle-container .img-info-box[data-v-5045012e]{display:flex;align-items:center;justify-content:space-between;padding:5rem;font-size:12rem;user-select:none}.upload-image-card-container .before-upload-handle-container .img-info-box .file-size-box[data-v-5045012e]{transform:scale(.9)}.upload-image-card-container .before-upload-handle-container .img-info-box .file-size-box .file-size-item[data-v-5045012e]{padding:2rem 3rem;background:var(--background-color-3);border-radius:3rem}.upload-image-card-container .before-upload-handle-container .img-info-box .file-size-box .original-file-size[data-v-5045012e]{margin-left:-4rem}.upload-image-card-container .before-upload-handle-container .img-info-box .file-size-box .original-file-size.del-line[data-v-5045012e]{text-decoration:line-through}.upload-image-card-container .before-upload-handle-container .img-info-box .file-size-box .finial-file-size[data-v-5045012e]{margin-left:6rem;color:var(--el-color-primary)}.upload-image-card-container .after-upload-handle-container[data-v-5045012e]{position:relative;box-sizing:border-box;width:100%;height:30rem;color:var(--el-color-primary);font-size:13rem;background:var(--el-color-primary-light-9);border-top:1rem solid var(--border-color);cursor:pointer}.upload-image-card-container .after-upload-handle-container[data-v-5045012e]:hover{color:var(--el-color-white);background:var(--el-color-primary)}.upload-image-card-container .del-img-btn[data-v-5045012e]{position:absolute;top:6rem;right:6rem;display:none;color:var(--background-color);font-size:22rem;cursor:pointer}.upload-image-card-container .upload-status-box[data-v-5045012e]{position:absolute;top:-8rem;left:-16rem;box-sizing:border-box;width:46rem;height:26rem;color:#fff;text-align:center;box-shadow:0 1rem 1rem var(--border-color);transform:rotate(315deg)}.upload-image-card-container .upload-status-box.wait-upload[data-v-5045012e]{background:var(--await-upload-color)}.upload-image-card-container .upload-status-box.uploaded[data-v-5045012e]{background:var(--uploaded-color)}.upload-image-card-container .upload-status-box.uploaded .el-icon[data-v-5045012e]{margin-top:12rem}.upload-image-card-container .upload-status-box .el-icon[data-v-5045012e]{margin-top:10rem;font-size:12rem;transform:rotate(45deg)}.upload-page-container{display:flex;justify-content:space-between;width:100%;height:100%}.upload-page-container .upload-page-left{flex-shrink:0;box-sizing:border-box;height:100%;margin-right:16rem}.upload-page-container .upload-page-left .uploaded-item{width:100%;margin-bottom:20rem}.upload-page-container .upload-page-left .uploaded-item:last-child{margin-bottom:0}.upload-page-container .upload-page-right{box-sizing:border-box;width:100%;height:100%;overflow-y:auto}.upload-page-container .upload-page-right.has-left{border-radius:0}.upload-page-container .upload-page-right .row-item{display:flex;justify-content:center;box-sizing:border-box;width:100%;margin-bottom:16rem}.upload-page-container .upload-page-right .row-item:last-child{margin-bottom:0}.upload-page-container .upload-page-right .row-item .content-box{box-sizing:border-box;width:100%;max-width:888rem;margin:0 auto}.upload-page-container .upload-page-right .row-item .content-box.upload-area-status{display:flex;align-items:center;justify-content:space-between;margin-bottom:10rem;font-size:12rem}.upload-page-container .upload-page-right .row-item .content-box .shortcut-key{margin-left:6rem;font-size:12rem}@media (max-width: 900px){.upload-page-container .upload-page-right .row-item .content-box .shortcut-key{display:none}}.upload-page-container .upload-page-right .upload-tools{width:100%}.upload-page-container .upload-page-right .upload-tools .repos-dir-info{margin-bottom:20rem;font-size:12rem}.upload-page-container .upload-page-right .upload-tools .repos-dir-info .repos-dir-info-item{margin-right:10rem}.upload-page-container .upload-page-right .upload-tools .repos-dir-info .repos-dir-info-item:last-child{margin-right:0}.copy-image-link-box[data-v-51c845f6]{padding:5rem}.copy-image-link-box .el-button[data-v-51c845f6]{width:100%}.image-card[data-v-3010792e]{position:relative;box-sizing:border-box;width:100%;box-shadow:1rem 2rem 3rem var(--shadow-color);user-select:none}.image-card.checked[data-v-3010792e],.image-card[data-v-3010792e]:hover{box-shadow:0 0 10rem var(--shadow-hover-color)}.image-card .image-box[data-v-3010792e]{position:relative;width:100%;height:150rem}.image-card .image-box .el-image[data-v-3010792e]{width:100%;height:100%}.image-card .info-box[data-v-3010792e]{position:relative;box-sizing:border-box;width:100%;margin-top:5rem;padding:5rem}.image-card .info-box .image-info[data-v-3010792e]{display:flex;flex-direction:column;justify-content:space-between;box-sizing:border-box;width:100%;height:100%;color:var(--text-color)}.image-card .info-box .image-info .rename-operate[data-v-3010792e]{display:flex;align-items:center;justify-content:space-between;height:22rem}.image-card .info-box .image-info .rename-operate .rename-input[data-v-3010792e]{width:122rem}.image-card .info-box .image-info .filename[data-v-3010792e]{height:18rem;margin-bottom:6rem;overflow:hidden;font-size:14rem;white-space:nowrap;text-overflow:ellipsis}.image-card .operation-box[data-v-3010792e]{position:absolute;top:10rem;right:8rem;display:flex;justify-content:space-between;width:calc(100% - 16rem)}.image-card .operation-box .operation-left .picked-btn i[data-v-3010792e]{font-weight:700}.image-card .operation-box .operation-right[data-v-3010792e]{display:flex}.image-card .operation-box .operation-btn[data-v-3010792e]{display:flex;align-items:center;justify-content:center;width:32rem;height:32rem;margin-right:8rem;font-size:18rem;background:var(--background-color);border-radius:50%;box-shadow:0 0 6rem var(--shadow-color);cursor:pointer}.image-card .operation-box .operation-btn[data-v-3010792e]:last-child{margin-right:0}.folder-card[data-v-f3498e7c]{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;box-sizing:border-box;width:100rem;height:100rem;padding:3rem;user-select:none}.folder-card[data-v-f3498e7c]:hover{background:var(--background-color-2)}.folder-card .icon[data-v-f3498e7c]{display:flex;align-items:center;justify-content:center;width:50rem;height:50rem}.folder-card .icon svg[data-v-f3498e7c]{width:100%;height:100%}.folder-card .text[data-v-f3498e7c]{display:-webkit-box;width:90%;margin-top:5rem;overflow:hidden;font-size:14rem;text-align:center;text-overflow:ellipsis;word-wrap:break-word;word-break:break-all;-webkit-box-orient:vertical;-webkit-line-clamp:2}.selector-wrapper[data-v-0ff830e2]{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%;padding:4rem 12rem;border-bottom:1rem solid var(--background-color-3)}.selector-wrapper .selector-left-box[data-v-0ff830e2]{display:flex;align-items:center}.selector-wrapper .selector-left-box[data-v-0ff830e2] .el-checkbox{font-weight:unset}.selector-wrapper .selector-left-box[data-v-0ff830e2] .el-checkbox__label{line-height:unset}.selector-wrapper .selector-left-box .cancel-select-btn[data-v-0ff830e2]{color:var(--el-color-primary-light-3);font-size:13rem;cursor:pointer}.selector-wrapper .selector-left-box div.item[data-v-0ff830e2]{margin-left:8rem}.selector-wrapper .selector-right-box .btn-icon[data-v-0ff830e2]{margin-left:10rem;font-size:22rem;cursor:pointer}.management-page-container[data-v-400d1d22]{padding-bottom:0!important}.management-page-container .content-container[data-v-400d1d22]{position:relative;box-sizing:border-box;width:100%;height:100%;padding-top:50rem}.management-page-container .content-container .top[data-v-400d1d22]{position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%;height:50rem;padding-bottom:20rem;font-size:14rem}.management-page-container .content-container .top .right .btn-icon[data-v-400d1d22]{margin-left:10rem;font-size:22rem;cursor:pointer}.management-page-container .content-container .bottom[data-v-400d1d22]{position:relative;box-sizing:border-box;width:100%;height:100%;border:1rem solid var(--border-color);border-bottom:none;border-top-left-radius:6rem;border-top-right-radius:6rem}.management-page-container .content-container .bottom .image-management-list[data-v-400d1d22]{position:relative;display:flex;flex-wrap:wrap;align-content:flex-start;box-sizing:border-box;width:100%;padding:2rem;overflow-y:auto}.management-page-container .content-container .bottom .image-management-list li.image-management-item[data-v-400d1d22]{position:relative;box-sizing:border-box;padding:10rem}.management-page-container .content-container .bottom .image-management-list li.image-management-item.image[data-v-400d1d22]{width:230rem}.management-page-container .content-container .bottom .image-management-list li.image-management-item[data-v-400d1d22]:last-child{margin-right:0}*[contenteditable=true][data-v-2a875730]{box-sizing:border-box;padding:5px}.compress-config-box[data-v-186c475a]{position:relative;box-sizing:border-box}.compress-config-box .img-encoder-title[data-v-186c475a]{font-size:14rem}.compress-config-box .img-encoder-group[data-v-186c475a]{display:inline-block;margin-top:16rem}.compress-config-box .img-encoder-group .el-radio[data-v-186c475a]{display:block}.compress-config-box .img-encoder-group .desc[data-v-186c475a]{margin-left:10rem;color:var(--text-color-4);font-size:12rem}[data-v-4c83b394] .el-collapse-item__header{font-size:16rem}.setting-title[data-v-4c83b394]{margin:40rem 0 25rem;font-weight:700;font-size:16rem}.setting-title[data-v-4c83b394]:first-child{margin-top:0}.setting-list[data-v-4c83b394]{margin:0;padding:0}.setting-list .setting-item[data-v-4c83b394]{margin-bottom:10rem}.setting-list .setting-item.has-desc[data-v-4c83b394]{display:flex;align-items:center;color:var(--text-color-4);font-size:12rem;user-select:none}.setting-list .setting-item.has-desc .desc[data-v-4c83b394]{margin-left:10rem}@media (max-width: 600px){.setting-list .setting-item.has-desc .desc[data-v-4c83b394]{display:none}}.setting-list .setting-item.cdn[data-v-4c83b394]{display:flex;align-items:center}.setting-list .setting-item.last-child[data-v-4c83b394]{margin-bottom:0}.setting-list .setting-item .prefix-input[data-v-4c83b394]{width:calc(100% - 56rem);margin-left:56rem}.setting-list .setting-item[data-v-4c83b394] .el-switch{user-select:none}.image-link-type-rule-option .left[data-v-4c83b394]{float:left;margin-right:10rem}.image-link-type-rule-option .right[data-v-4c83b394]{float:right;color:var(--el-text-color-secondary);font-size:12rem}.tool-panel[data-v-06af4a8d]{position:relative;box-sizing:border-box;width:100%;height:100%}.tool-panel .panel-header[data-v-06af4a8d]{position:relative;display:flex;align-items:flex-start;box-sizing:border-box;width:100%;height:30rem}.tool-panel .panel-body[data-v-06af4a8d]{position:relative;box-sizing:border-box;width:100%;height:calc(100% - 30rem);overflow:hidden;border:1px solid var(--border-color);border-radius:8rem}.toolbox[data-v-06af4a8d]{position:relative;display:grid;grid-gap:20rem;grid-template-columns:repeat(4,1fr);box-sizing:border-box;padding:0}@media (max-width: 1200px){.toolbox[data-v-06af4a8d]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 900px){.toolbox[data-v-06af4a8d]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 600px){.toolbox[data-v-06af4a8d]{grid-template-columns:repeat(1,1fr)}.toolbox .tool-item[data-v-06af4a8d]{height:147.20000000000002rem!important;padding:18.400000000000002rem!important}}.toolbox .tool-item[data-v-06af4a8d]{position:relative;box-sizing:border-box;height:160rem;padding:20rem;border-radius:10rem;box-shadow:0 1rem 3rem var(--shadow-color);transition:all ease .2s}.toolbox .tool-item[data-v-06af4a8d]:hover{box-shadow:0 0 6rem var(--shadow-hover-color);transform:translateY(-2%) scale(1.02);cursor:pointer}.toolbox .tool-item .top[data-v-06af4a8d]{position:relative;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;width:100%;height:58rem}.toolbox .tool-item .top .left[data-v-06af4a8d]{position:relative;box-sizing:border-box;width:58rem;height:58rem;color:var(--el-color-primary);background:var(--el-color-primary-light-9);border-radius:10rem}.toolbox .tool-item .top .right[data-v-06af4a8d]{position:relative;box-sizing:border-box;padding-left:12rem;color:var(--text-color);font-weight:600;font-size:20rem}.toolbox .tool-item .bottom[data-v-06af4a8d]{position:relative;display:flex;align-items:flex-end;box-sizing:border-box;width:100%;height:calc(100% - 58rem);color:var(--text-color-4)}.feedback-page-container .help-info-item[data-v-3aecdb24]{display:flex;align-items:center;margin-bottom:10rem;padding:6rem;font-size:16rem}.feedback-page-container .help-info-item code[data-v-3aecdb24]{box-sizing:border-box;padding:3rem 6rem;font-weight:700;background:var(--background-color-2);border-radius:6rem;box-shadow:2rem 2rem 5rem var(--shadow-color)}.feedback-page-container .help-info-item[data-v-3aecdb24]:last-child{margin-bottom:0}.feedback-page-container .description[data-v-3aecdb24]{font-weight:700;line-height:28rem}.feedback-page-container .red-text[data-v-3aecdb24]{margin-top:6rem;color:var(--el-color-danger);font-size:22rem}.img-process-state-card-container[data-v-d59c7528]{position:relative;display:flex;flex-direction:column;justify-content:flex-start;box-sizing:border-box;width:100%;margin-bottom:20rem;overflow:hidden;border:1rem solid var(--border-color);border-radius:6rem}.img-process-state-card-container[data-v-d59c7528]:last-child{margin-bottom:0}.img-process-state-card-container:hover .del-btn[data-v-d59c7528]{display:block}.img-process-state-card-container .img-container[data-v-d59c7528]{position:relative;box-sizing:border-box;width:100%;height:140rem}.img-process-state-card-container .img-container .el-image[data-v-d59c7528]{width:100%;height:100%}.img-process-state-card-container .info-container[data-v-d59c7528]{position:relative;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%;padding:3rem 5rem;border-top:1rem solid var(--border-color)}.img-process-state-card-container .info-container .img-name[data-v-d59c7528]{max-width:50%;font-size:13rem}.img-process-state-card-container .info-container .img-size[data-v-d59c7528]{display:flex;justify-content:flex-end;transform:scale(.9)}.img-process-state-card-container .info-container .img-size .file-size-item[data-v-d59c7528]{padding:2rem 3rem;font-size:12rem;background:var(--background-color-3);border-radius:3rem}.img-process-state-card-container .info-container .img-size .original-file-size[data-v-d59c7528]{margin-right:-2rem}.img-process-state-card-container .info-container .img-size .original-file-size.del-line[data-v-d59c7528]{margin-right:0;text-decoration:line-through}.img-process-state-card-container .info-container .img-size .finial-file-size[data-v-d59c7528]{margin-right:-4rem;margin-left:4rem;color:var(--el-color-primary)}.img-process-state-card-container .operate-container[data-v-d59c7528]{position:relative;box-sizing:border-box;width:100%;height:30rem;font-size:13rem;background:var(--background-color-2);border-top:1rem solid var(--border-color);cursor:pointer}.img-process-state-card-container .operate-container[data-v-d59c7528]:hover{background:var(--el-color-primary-light-9)}.img-process-state-card-container .del-btn[data-v-d59c7528]{position:absolute;top:6rem;right:6rem;display:none;color:var(--background-color);font-size:22rem;cursor:pointer}.compress-tool-container[data-v-2f45486b]{position:relative;display:flex;justify-content:space-between;box-sizing:border-box;width:100%;height:100%}.compress-tool-container .compress-tool-left[data-v-2f45486b]{position:relative;box-sizing:border-box;width:260rem;height:100%;padding:10rem;overflow-y:auto;border-right:1px solid var(--border-color)}.compress-tool-container .compress-tool-left .el-image[data-v-2f45486b]{width:100%}.compress-tool-container .compress-tool-right[data-v-2f45486b]{position:relative;box-sizing:border-box;width:calc(100% - 260rem);height:100%;padding:20rem}.compress-tool-container .compress-tool-right.no-img[data-v-2f45486b]{width:100%}.compress-tool-container .compress-tool-right .user-operate[data-v-2f45486b]{display:flex;justify-content:flex-end;margin-top:20rem}.compress-tool-container .compress-tool-right .user-operate.compressed[data-v-2f45486b]{justify-content:space-between}.base64-tool-container[data-v-654d8c19]{position:relative;display:flex;justify-content:space-between;box-sizing:border-box;width:100%;height:100%}.base64-tool-container .base64-tool-left[data-v-654d8c19]{position:relative;box-sizing:border-box;width:260rem;height:100%;padding:10rem;overflow-y:auto;border-right:1px solid var(--border-color)}.base64-tool-container .base64-tool-left .el-image[data-v-654d8c19]{width:100%}.base64-tool-container .base64-tool-right[data-v-654d8c19]{position:relative;box-sizing:border-box;width:calc(100% - 260rem);height:100%;padding:20rem}.base64-tool-container .base64-tool-right.no-img[data-v-654d8c19]{width:100%}.base64-tool-container .base64-tool-right .user-operate[data-v-654d8c19]{display:flex;justify-content:flex-end;margin-top:20rem}.watermark-tool-container[data-v-8c458a98]{position:relative;display:flex;justify-content:space-between;box-sizing:border-box;width:100%;height:100%}.watermark-tool-container .watermark-tool-left[data-v-8c458a98]{position:relative;box-sizing:border-box;width:260rem;height:100%;padding:10rem;overflow-y:auto;border-right:1px solid var(--border-color)}.watermark-tool-container .watermark-tool-left .el-image[data-v-8c458a98]{width:100%}.watermark-tool-container .watermark-tool-right[data-v-8c458a98]{position:relative;box-sizing:border-box;width:calc(100% - 260rem);height:100%;padding:20rem}.watermark-tool-container .watermark-tool-right.no-img[data-v-8c458a98]{width:100%}.watermark-tool-container .watermark-tool-right .user-operate[data-v-8c458a98]{display:flex;justify-content:flex-end;margin-top:20rem}.watermark-tool-container .watermark-tool-right .user-operate.watermarked[data-v-8c458a98]{justify-content:space-between}.site-count{transition:all .2s ease-in}.header[data-v-2d421138]{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%;height:100%;padding:0 20rem;background:var(--background-color)}.header .header-left[data-v-2d421138]{display:flex;justify-content:flex-start;height:100%}.header .header-left .brand[data-v-2d421138]{display:flex;align-items:center;justify-content:flex-start;height:100%;cursor:pointer}.header .header-left .brand .logo[data-v-2d421138]{width:46rem;height:46rem;margin-right:10rem}.header .header-left .brand .logo img[data-v-2d421138]{width:100%}.header .header-left .brand .title[data-v-2d421138]{font-weight:700;font-size:36rem}.header .header-left .website-count[data-v-2d421138]{display:flex;align-items:flex-end;box-sizing:border-box;margin-left:10rem;padding-bottom:12rem;font-size:14rem;cursor:pointer}@media (max-width: 600px){.header .header-left .website-count[data-v-2d421138]{display:none}}.header .header-right[data-v-2d421138]{display:flex;align-items:center;justify-content:flex-end;user-select:none}.header .header-right .user-info[data-v-2d421138]{display:flex;align-items:center;cursor:pointer}.header .header-right .user-info .username[data-v-2d421138]{font-size:16rem}.header .header-right .user-info .avatar-box[data-v-2d421138]{display:flex;align-items:center;justify-content:space-between;margin-left:12rem}.header .header-right .user-info .avatar-box .avatar[data-v-2d421138]{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:38rem;height:38rem;padding:1rem;color:var(--text-color);border:1rem solid var(--text-color);border-radius:50%}.header .header-right .user-info .avatar-box .avatar img[data-v-2d421138]{width:100%;height:100%;border-radius:50%}.header .header-right .user-info .avatar-box .user-filled-icon[data-v-2d421138]{font-size:20rem}.header .header-right .user-info .avatar-box .caret-bottom-icon[data-v-2d421138]{margin-left:5rem;font-size:20rem}.nav[data-v-5951a7aa]{position:relative;display:flex;flex-direction:column;justify-content:space-between;box-sizing:border-box;width:100%;height:100%;background:var(--background-color);border-top-right-radius:10rem}.nav ul.nav-list[data-v-5951a7aa]{margin:0;padding:0}.nav .nav-item[data-v-5951a7aa]{position:relative;box-sizing:border-box;width:100%;height:78rem;cursor:pointer;user-select:none}.nav .nav-item[data-v-5951a7aa]:first-child{border-top-right-radius:10rem}.nav .nav-item.active[data-v-5951a7aa]{color:var(--el-color-primary);font-weight:700;background:var(--el-color-primary-light-9)}.nav .nav-item .nav-content[data-v-5951a7aa]{display:flex;flex-direction:column;align-items:center;justify-content:center}.nav .nav-item .nav-content .nav-name[data-v-5951a7aa]{margin-top:5rem;font-size:12rem;text-align:center}.main-container[data-v-c5c7351e]{position:absolute;box-sizing:border-box;width:100%;height:100%;font-size:15rem;background:var(--background-color-2)}.main-container .top-container[data-v-c5c7351e]{position:relative;box-sizing:border-box;width:100%;height:60rem}.main-container .bottom-container[data-v-c5c7351e]{position:relative;box-sizing:border-box;width:100%;height:calc(100% - 60rem)}.main-container .bottom-container .bottom-content[data-v-c5c7351e]{position:relative;box-sizing:border-box;width:100%;height:100%;padding-left:90rem}.main-container .bottom-container .bottom-content .left[data-v-c5c7351e]{position:absolute;top:0;left:0;box-sizing:border-box;width:90rem;height:100%;padding-top:16rem}.main-container .bottom-container .bottom-content .right[data-v-c5c7351e]{position:relative;box-sizing:border-box;width:100%;height:100%;padding-top:16rem;padding-left:16rem}#app{position:relative;box-sizing:border-box;width:100%;height:100%;font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}html.dark{color-scheme:dark;--el-color-primary:#409eff;--el-color-primary-light-3:#3375b9;--el-color-primary-light-5:#2a598a;--el-color-primary-light-7:#213d5b;--el-color-primary-light-8:#1d3043;--el-color-primary-light-9:#18222c;--el-color-primary-dark-2:#66b1ff;--el-color-success:#67c23a;--el-color-success-light-3:#4e8e2f;--el-color-success-light-5:#3e6b27;--el-color-success-light-7:#2d481f;--el-color-success-light-8:#25371c;--el-color-success-light-9:#1c2518;--el-color-success-dark-2:#85ce61;--el-color-warning:#e6a23c;--el-color-warning-light-3:#a77730;--el-color-warning-light-5:#7d5b28;--el-color-warning-light-7:#533f20;--el-color-warning-light-8:#3e301c;--el-color-warning-light-9:#292218;--el-color-warning-dark-2:#ebb563;--el-color-danger:#f56c6c;--el-color-danger-light-3:#b25252;--el-color-danger-light-5:#854040;--el-color-danger-light-7:#582e2e;--el-color-danger-light-8:#412626;--el-color-danger-light-9:#2b1d1d;--el-color-danger-dark-2:#f78989;--el-color-error:#f56c6c;--el-color-error-light-3:#b25252;--el-color-error-light-5:#854040;--el-color-error-light-7:#582e2e;--el-color-error-light-8:#412626;--el-color-error-light-9:#2b1d1d;--el-color-error-dark-2:#f78989;--el-color-info:#909399;--el-color-info-light-3:#6b6d71;--el-color-info-light-5:#525457;--el-color-info-light-7:#393a3c;--el-color-info-light-8:#2d2d2f;--el-color-info-light-9:#202121;--el-color-info-dark-2:#a6a9ad;--el-box-shadow:0px 12px 32px 4px rgba(0, 0, 0, .36),0px 8px 20px rgba(0, 0, 0, .72);--el-box-shadow-light:0px 0px 12px rgba(0, 0, 0, .72);--el-box-shadow-lighter:0px 0px 6px rgba(0, 0, 0, .72);--el-box-shadow-dark:0px 16px 48px 16px rgba(0, 0, 0, .72),0px 12px 32px #000000,0px 8px 16px -8px #000000;--el-bg-color-page:#0a0a0a;--el-bg-color:#141414;--el-bg-color-overlay:#1d1e1f;--el-text-color-primary:#E5EAF3;--el-text-color-regular:#CFD3DC;--el-text-color-secondary:#A3A6AD;--el-text-color-placeholder:#8D9095;--el-text-color-disabled:#6C6E72;--el-border-color-darker:#636466;--el-border-color-dark:#58585B;--el-border-color:#4C4D4F;--el-border-color-light:#414243;--el-border-color-lighter:#363637;--el-border-color-extra-light:#2B2B2C;--el-fill-color-darker:#424243;--el-fill-color-dark:#39393A;--el-fill-color:#303030;--el-fill-color-light:#262727;--el-fill-color-lighter:#1D1D1D;--el-fill-color-extra-light:#191919;--el-fill-color-blank:transparent;--el-mask-color:rgba(0, 0, 0, .8);--el-mask-color-extra-light:rgba(0, 0, 0, .3)}html.dark .el-button{--el-button-disabled-text-color:rgba(255, 255, 255, .5)}html.dark .el-card{--el-card-bg-color:var(--el-bg-color-overlay)}html.dark .el-empty{--el-empty-fill-color-0:var(--el-color-black);--el-empty-fill-color-1:#4b4b52;--el-empty-fill-color-2:#36383d;--el-empty-fill-color-3:#1e1e20;--el-empty-fill-color-4:#262629;--el-empty-fill-color-5:#202124;--el-empty-fill-color-6:#212224;--el-empty-fill-color-7:#1b1c1f;--el-empty-fill-color-8:#1c1d1f;--el-empty-fill-color-9:#18181a}:root{--background-color: #fff;--background-color-2: #f2f2f2;--background-color-3: #e6e6e6;--text-color: #50505c;--text-color-2: #484853;--text-color-3: #4c4c57;--text-color-4: #808091;--text-color-5: #ededef;--border-color: #ccc;--shadow-color: rgba(0,0,0,.25);--shadow-hover-color: rgba(0,0,0,.45);--scrollbar-color: #ccc;--scroll-bar-bg-color: #b3b3b3;--await-upload-color: #e6a23c;--uploading-color: #409eff;--uploaded-color: #67c23a}@media (prefers-color-scheme: light){:root{--background-color: #fff;--background-color-2: #f2f2f2;--background-color-3: #e6e6e6;--text-color: #50505c;--text-color-2: #484853;--text-color-3: #4c4c57;--text-color-4: #808091;--text-color-5: #ededef;--border-color: #ccc;--shadow-color: rgba(0,0,0,.25);--shadow-hover-color: rgba(0,0,0,.45);--scrollbar-color: #ccc;--scroll-bar-bg-color: #b3b3b3;--await-upload-color: #e6a23c;--uploading-color: #409eff;--uploaded-color: #67c23a}}@media (prefers-color-scheme: dark){:root{--background-color: #2a2a2f;--background-color-2: #26262a;--background-color-3: #242428;--text-color: #bebec6;--text-color-2: #d2d2d7;--text-color-3: #cbcbd1;--text-color-4: #9595a2;--text-color-5: #242429;--border-color: #52525b;--shadow-color: rgba(128,128,128,.25);--shadow-hover-color: rgba(128,128,128,.45);--scrollbar-color: #222226;--scroll-bar-bg-color: #666672;--await-upload-color: #b47517;--uploading-color: #006edf;--uploaded-color: #488829}}.light{--background-color: #fff;--background-color-2: #f2f2f2;--background-color-3: #e6e6e6;--text-color: #50505c;--text-color-2: #484853;--text-color-3: #4c4c57;--text-color-4: #808091;--text-color-5: #ededef;--border-color: #ccc;--shadow-color: rgba(0,0,0,.25);--shadow-hover-color: rgba(0,0,0,.45);--scrollbar-color: #ccc;--scroll-bar-bg-color: #b3b3b3;--await-upload-color: #e6a23c;--uploading-color: #409eff;--uploaded-color: #67c23a}.dark{--background-color: #2a2a2f;--background-color-2: #26262a;--background-color-3: #242428;--text-color: #bebec6;--text-color-2: #d2d2d7;--text-color-3: #cbcbd1;--text-color-4: #9595a2;--text-color-5: #242429;--border-color: #52525b;--shadow-color: rgba(128,128,128,.25);--shadow-hover-color: rgba(128,128,128,.45);--scrollbar-color: #222226;--scroll-bar-bg-color: #666672;--await-upload-color: #b47517;--uploading-color: #006edf;--uploaded-color: #488829}:root{--el-color-primary: #4975c6;--el-color-primary-light-3: #5482d3;--el-color-primary-light-5: #a0bbff;--el-color-primary-light-7: #c6d3ff;--el-color-primary-light-8: #d9e2ff;--el-color-primary-light-9: #ecefff}:root{font-size:1px}@media (max-width: 900px){:root{font-size:.95px}}@media (max-width: 900px){:root{font-size:.9px}}@media (max-width: 600px){:root{font-size:.8px}}*::-webkit-scrollbar{width:8rem;height:8rem}*::-webkit-scrollbar-thumb{background:var(--scrollbar-color);border-radius:10rem}*::-webkit-scrollbar-track{background:transparent}html,body{position:relative;width:100%;height:100%;margin:0;padding:0;color:var(--text-color)}a,a:link{color:var(--text-color);text-decoration:none}ul,ol,li{margin:0;list-style:none}.flex-center{display:flex;align-items:center;justify-content:center}.flex-start{display:flex;align-items:center;justify-content:flex-start}.page-container{position:relative;box-sizing:border-box;width:100%;height:100%;padding:30rem;overflow-y:auto;background:var(--background-color);border-top-left-radius:10rem}.page-container .page-content{position:relative;left:50%;box-sizing:border-box;width:100%;max-width:1200rem;height:100%;transform:translate(-50%)}.clearfix:after{display:block;clear:both;height:0;overflow:hidden;visibility:hidden;content:""}.custom-contextmenu-container{position:relative;box-sizing:border-box;padding:5rem 0;color:var(--text-color);background:var(--background-color);border-radius:3rem;box-shadow:var(--el-box-shadow-light)}.custom-contextmenu-container .custom-contextmenu-item{position:relative;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding:8rem 10rem;font-size:12rem;cursor:pointer}.custom-contextmenu-container .custom-contextmenu-item.copy-link{display:none}.custom-contextmenu-container .custom-contextmenu-item:hover{color:var(--el-color-primary);background:var(--el-color-primary-light-9)}.text-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.quick-actions-popover{position:relative;box-sizing:border-box;width:100%;padding:10rem;background:var(--background-color);user-select:none}.quick-actions-popover .el-switch{white-space:nowrap}.personal-center-popover{position:relative;box-sizing:border-box;width:100%;padding:10rem 0;background:var(--background-color)}.personal-center-popover .content-item{position:relative;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%;height:36rem;padding:0 12rem;color:var(--text-color-3);font-size:14rem;cursor:pointer}.personal-center-popover .content-item .el-icon{margin-right:3rem}.personal-center-popover .content-item:hover{background:var(--background-color-2)}.toggle-language-message{box-sizing:border-box;background:var(--background-color);border-radius:3rem;box-shadow:var(--el-box-shadow-light)}.toggle-language-message .el-icon{display:none}.toggle-language-message .content-box{line-height:2}.toggle-language-message .content-box .btn-box{margin-left:6rem}.toggle-language-message .content-box .btn{margin-left:2rem;padding:2rem 4rem;font-size:12rem;border-style:solid;border-width:1rem;border-radius:4rem;cursor:pointer}.toggle-language-message .content-box .confirm{color:var(--el-color-primary);background:var(--el-color-primary-light-9);border-color:var(--el-color-primary-light-5)}.toggle-language-message .content-box .confirm:hover{color:var(--el-color-white);background:var(--el-color-primary);border-color:var(--el-color-primary)}.toggle-language-message .content-box .cancel{color:var(--el-color-info);background:var(--el-color-info-light-9);border-color:var(--el-color-info-light-5)}.toggle-language-message .content-box .cancel:hover{color:var(--el-color-white);background:var(--el-color-info);border-color:var(--el-color-info)}.border-box{position:relative;box-sizing:border-box} diff --git a/assets/index.5d295842.js b/assets/index.5d295842.js deleted file mode 100644 index ab2e26a6..00000000 --- a/assets/index.5d295842.js +++ /dev/null @@ -1 +0,0 @@ -var e=Object.defineProperty,a=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,i=(a,t,l)=>t in a?e(a,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):a[t]=l,n=(e,n)=>{for(var s in n||(n={}))t.call(n,s)&&i(e,s,n[s]);if(a)for(var s of a(n))l.call(n,s)&&i(e,s,n[s]);return e};import{a as s,E as o,b as r,v as c,C as d,e as u,d as m,c as g,f as p,g as h,u as f,h as v,i as _,j as b,o as y,k as w,n as k,l as I,m as x,p as S,q as L,r as T,s as $,w as C,t as D,x as E,y as O,z as R,A,B as N,D as M,F as U,G as z,H as P,I as j,J as B,K as V,L as G,M as F,N as H,O as X,P as W,Q as q,R as K,S as J,T as Y,U as Q,V as Z,W as ee,X as ae,Y as te,Z as le,_ as ie,$ as ne,a0 as se,a1 as oe,a2 as re,a3 as ce,a4 as de,a5 as ue,a6 as me,a7 as ge,a8 as pe,a9 as he,aa as fe,ab as ve,ac as _e,ad as be,ae as ye,af as we,ag as ke,ah as Ie,ai as xe,aj as Se,ak as Le,al as Te,am as $e,an as Ce,ao as De,ap as Ee,aq as Oe,ar as Re,as as Ae,at as Ne,au as Me,av as Ue,aw as ze,ax as Pe}from"./vendor.8b621868.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))a(e);new MutationObserver((e=>{for(const t of e)if("childList"===t.type)for(const e of t.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&a(e)})).observe(document,{childList:!0,subtree:!0})}function a(e){if(e.ep)return;e.ep=!0;const a=function(e){const a={};return e.integrity&&(a.integrity=e.integrity),e.referrerpolicy&&(a.referrerPolicy=e.referrerpolicy),"use-credentials"===e.crossorigin?a.credentials="include":"anonymous"===e.crossorigin?a.credentials="omit":a.credentials="same-origin",a}(e);fetch(e.href,a)}}();const je=e=>{const a=window.localStorage.getItem(e);return a?JSON.parse(a):null},Be="https://api.github.com",Ve=s.create({baseURL:Be,timeout:3e5});function Ge(e){const a={};e.method=e.method.toUpperCase();for(const t in e)"params"===t?"GET"===e.method?a.params=e.params:a.data=e.params:a[t]=e[t];return new Promise((e=>{Ve.request(a).then((a=>{const{status:t,data:l}=a;e(!a||200!==t&&201!==t&&204!==t?null:l||"SUCCESS")})).catch((t=>{var l;if((null==a?void 0:a.success422)&&422===(null==t?void 0:t.status))e((null==t?void 0:t.data)||"SUCCESS");else{const i=null==t?void 0:t.status,n=null==(l=null==t?void 0:t.data)?void 0:l.message;(null==a?void 0:a.noShowErrorMsg)||(console.error("PicX Error // ",t),void 0!==i&&void 0!==n&&o.error({duration:6e3,message:`Code: ${i}, Message: ${n}`})),e(null)}}))}))}Ve.defaults.headers["Content-Type"]="application/json",Ve.interceptors.request.use((e=>{var a;const t=je("PICX_CONFIG");if(t){const{token:l}=t;(null==(a=e.baseURL)?void 0:a.includes(Be))&&l&&(e.headers.Authorization=`token ${l}`)}return e}),(e=>Promise.reject(e))),Ve.interceptors.response.use((e=>e),(e=>((null==e?void 0:e.response)||o.error({duration:6e3,message:`${e}`}),Promise.reject(e.response))));const Fe=e=>Ge({url:"/user",method:"GET",headers:{Authorization:`token ${e}`}}),He=(e,a=1)=>new Promise((async t=>{const l=await Ge({url:`users/${e}/repos`,method:"GET",params:{type:"owner",sort:"created",direction:"desc",per_page:100,page:a}});l&&l.length?t(l.filter((e=>!e.fork&&!e.private)).map((e=>({value:e.name,label:e.name})))):t(null)})),Xe=async e=>{const a=[];for(let t=1;t<=3;t++){const l=await He(e,t);l&&a.push(...l)}return Promise.resolve(a.length?a:null)},We=async(e,a=!0)=>{const{owner:t,selectedRepo:l,selectedBranch:i}=e;let n=null;a&&(n=r.service({text:"正在初始化仓库..."}));await Ge({url:`/repos/${t}/${l}/contents/README.md`,method:"PUT",data:{message:"Init repo via PicX(https://github.com/XPoet/picx)",branch:i,content:window.btoa("\n# Welcome to use PicX\n\n[PicX](https://github.com/XPoet/picx) is a simple and powerful image hosting tool. It supports image hosting services via GitHub repository.\n\nPicX is completely open source, and you can use it for free.\n\nIf you like it, please give it a star on [GitHub](https://github.com/XPoet/picx).\n ")},noShowErrorMsg:!0})?null==n||n.close():a&&o.error("仓库初始化失败")},qe=(e,a)=>({type:"dir",dir:e,dirPath:a,childrenDirs:[],imageList:[]});function Ke(e,a,t){var l;return e?a.length===t?e:Ke(null==(l=e.childrenDirs)?void 0:l.find((e=>e.dir===a[t])),a,++t):null}const Je=(e,a)=>{if("/"===e)return a;return Ke(a,e.split("/"),0)},Ye=(e,a,t)=>{var l;return"dir"===t?null==(l=a.childrenDirs)?void 0:l.filter((e=>"dir"===e.type)):"image"===t?a.imageList.filter((e=>"image"===e.type)):[]},Qe={state:{name:"dirImageListModule",dirObject:(()=>{const e=localStorage.getItem("PICX_MANAGEMENT");return e?JSON.parse(e):qe("/","/")})()},mutations:{},actions:{DIR_IMAGE_LIST_ADD_DIR({state:e,dispatch:a},t){if("/"===t)return;const l=(e,a,t)=>{if(e){e.childrenDirs.some((e=>e.dir===a))||e.childrenDirs.push(qe(a,t));return e.childrenDirs.find((e=>e.dir===a))||qe(a,t)}return qe(a,t)},i=t.split("/");let n="",s=e.dirObject;for(let o=0,r=i.length;o0?"/":""}${e}`,s=l(s,e,n),0===o&&a("USER_CONFIG_INFO_ADD_DIR",e)}a("DIR_IMAGE_LIST_PERSIST")},DIR_IMAGE_LIST_REMOVE_DIR({state:e,dispatch:a},t){if("/"===t)return;const l=t.split("/");let i=e.dirObject;l.forEach(((a,t)=>{i=((a,t,l)=>{if("/"===t)return e.dirObject;const i=a.childrenDirs.find((e=>e.dir===t));if(!i)return a;if(l){const e=a.childrenDirs.findIndex((e=>e.dir===t));-1!==e&&a.childrenDirs.splice(e,1)}return i})(i,a,t===l.length-1)})),a("DIR_IMAGE_LIST_PERSIST")},DIR_IMAGE_LIST_ADD_IMAGE({state:e,dispatch:a},t){let l=e.dirObject;if("/"===t.dir)l.imageList.some((e=>e.name===t.name))||l.imageList.push(t);else{const a=t.dir.split("/");let i="";a.forEach(((n,s)=>{i+=`${s>0?"/":""}${n}`,l=((a,t,l,i,n=!1)=>{var s;if(!a)return e.dirObject;let o=null==(s=a.childrenDirs)?void 0:s.find((e=>e.dir===t));return o||(o={type:"dir",dir:t,dirPath:l,childrenDirs:[],imageList:[]},a.childrenDirs.push(o)),n&&!o.imageList.some((e=>e.name===i.name))&&o.imageList.push(i),o})(l,n,i,t,s===a.length-1)}))}a("DIR_IMAGE_LIST_PERSIST")},DIR_IMAGE_LIST_REMOVE({state:e,dispatch:a},t){const l=(e,a)=>{if(e.length){const t=e.findIndex((e=>e.uuid===a));-1!==t&&e.splice(t,1)}},{dir:i,uuid:n}=t;if("/"===i)return l(e.dirObject.imageList,n),void a("DIR_IMAGE_LIST_PERSIST");const s=i.split("/");let o=e.dirObject;s.forEach(((i,n)=>{if(o=((a,t,i,n)=>{if(!a)return e.dirObject;const s=a.childrenDirs.find((e=>e.dir===t));return s?(s.dir===t&&n&&l(s.imageList,i.uuid),s):e.dirObject})(o,i,t,n===s.length-1),!o.imageList.length&&!o.childrenDirs.length){const t=(e=>{if("/"===e)return[];const a=e.split("/"),t=[];let l="";return a.forEach(((e,a)=>{l+=`${a>0?"/":""}${e}`,t.unshift(l)})),t})(o.dirPath);t.forEach((t=>{const l=Je(t,e.dirObject);if(l&&!l.imageList.length&&!l.childrenDirs.length){const{dirPath:e}=(e=>{if("/"===e)return{currentDir:"/",dirPath:"/"};const a=e.split("/");return 1===a.length?{currentDir:"/",dirPath:"/"}:a.length>1?(a.length-=1,{currentDir:a[a.length-1],dirPath:a.join("/")}):{currentDir:"/",dirPath:"/"}})(t),l=e,i=e;let n=i.split("/");"/"===e&&(n=[],a("USER_CONFIG_INFO_REMOVE_DIR",t)),a("SET_USER_CONFIG_INFO",{viewDir:l,selectedDir:i,selectedDirList:n}),a("DIR_IMAGE_LIST_REMOVE_DIR",t)}}))}}))},DIR_IMAGE_LIST_INIT_DIR({state:e,dispatch:a},t){let l=e.dirObject;if("/"===t)return l.imageList=[],l.childrenDirs=[],void a("DIR_IMAGE_LIST_PERSIST");const i=t.split("/");i.forEach(((a,t)=>{l=((a,t,l)=>{var i;if(!a)return e.dirObject;const n=null==(i=a.childrenDirs)?void 0:i.find((e=>e.dir===t));return n?(l&&(n.imageList=[],n.childrenDirs=[]),n):e.dirObject})(l,a,t===i.length-1)})),a("DIR_IMAGE_LIST_PERSIST")},DIR_IMAGE_LIST_PERSIST({state:e}){localStorage.setItem("PICX_MANAGEMENT",JSON.stringify(e.dirObject))},DIR_IMAGE_LOGOUT({state:e,dispatch:a}){e.dirObject=qe("/","/"),a("DIR_IMAGE_LIST_PERSIST")}},getters:{getDirObject:e=>e.dirObject}};var Ze,ea,aa,ta,la,ia,na,sa,oa,ra,ca,da,ua,ma,ga,pa,ha,fa,va,_a;(ea=Ze||(Ze={})).uploaded="uploaded",ea.allUploaded="allUploaded",ea.uploadFail="uploadFail",(ta=aa||(aa={})).deleted="deleted",ta.allDeleted="allDeleted",ta.deleteFail="deleteFail",(ia=la||(la={})).mozJPEG="mozJPEG",ia.avif="avif",ia.webP="webP",(sa=na||(na={})).newBranch="newBranch",sa.repoBranch="repoBranch",(ra=oa||(oa={})).autoDir="autoDir",ra.newDir="newDir",ra.rootDir="rootDir",ra.repoDir="repoDir",(da=ca||(ca={})).large="large",da.default="default",da.small="small",(ma=ua||(ua={})).leftTop="leftTop",ma.leftBottom="leftBottom",ma.rightTop="rightTop",ma.rightBottom="rightBottom",(pa=ga||(ga={})).system="system",pa.light="light",pa.dark="dark",(fa=ha||(ha={})).zhCN="zh-CN",fa.zhTW="zh-TW",fa.en="en",(_a=va||(va={}))[_a.parentDir=0]="parentDir",_a[_a.childDir=1]="childDir",_a[_a.img=2]="img";var ba={repo:"仓库",branch:"分支",dir:"目录",tips:"提示",delete:"删除",reset:"重置",confirm:"确定",cancel:"取消",author:"作者",document:"文档",shortcut_key:"快捷键",copy_link:"复制图片链接",copy_success_1:"图片链接已自动复制到系统剪贴板",copy_success_2:"图片链接复制成功",copy_fail_1:"复制失败",header:{notLogin:"未登录",login:"登录",logout:"退出登录",language:"语言",theme:"主题",usage_count:"使用次数"},nav:{config:"图床配置",upload:"上传图片",management:"图床管理",settings:"我的设置",toolbox:"工具箱",feedback:"帮助反馈",actions:"快捷操作"},actions:{watermark:"添加水印",compress:"压缩图片",transform:"转换 "},settings:{img_name:{title:"图片名称设置",hash_switch_name:"自动哈希化",hash_switch_desc:"上传前自动给图片名增加哈希码,确保图片名唯一,强烈建议开启",prefix_switch_name:"添加前缀命名",prefix_switch_desc:"上传前自动给图片名增加前缀,例如:abc-image.jpg,abc- 为前缀",prefix_input_placeholder:"请输入命名前缀 ...",timestamp_switch_name:"自动时间戳命名"},img_watermark:{title:"图片水印设置",switch_name:"是否添加水印",switch_desc:"开启后可以自定义水印文字、字体大小、位置、颜色和透明度",text:"水印文字",text_input_placeholder:"请输入水印文字,限制 20 字",size:"水印大小",color:"水印颜色",opacity:"水印透明度",position:"水印位置",position_1:"左上角",position_2:"左下角",position_3:"右上角",position_4:"右下角"},img_compress:{title:"图片压缩设置",switch_name:"是否压缩图片",switch_desc:"开启后上传前会自动压缩图片,有效缩短图片上传和加载时间,强烈建议开启",radio_group_title:"选择图片压缩算法",radio_1:"webP",radio_1_desc:"压缩后图片格式为 webp,压缩率较高,大多数浏览器支持",radio_2:"mozJPEG",radio_2_desc:"压缩后图片格式为 jpg,兼容性最好,所有浏览器支持",radio_3:"avif",radio_3_desc:"压缩后图片格式为 avif,压缩率极高,部分现代浏览器支持"},link_rule:{title:"图片链接规则配置",select_title:"选择图片链接规则",card_title:"配置自定义图片链接规则",card_table_col_title_1:"类型",card_table_col_title_2:"CDN 规则",card_table_col_title_3:"操作",input_name_1:"图片链接类型",input_name_1_rule:"图片链接类型名称不能为空",input_name_2:"图片链接规则",input_name_2_rule:"图片链接规则不能为空",btn_name_1:"添加图片链接规则"},link_format:{title:"图片链接格式设置",switch_name:"自动转换图片链接格式",switch_desc:"上传成功后复制的图片链接自动转换成 {type} 格式",select_title:"选择图片链接格式",delete_tips:"此操作将永久删除图片链接规则"},theme:{title:"主题设置",system:"跟随系统",dark:"暗夜",light:"白昼"}},config:{inputToken:"请输入 GitHub Token ...",manualConfiguration1:"手动配置",manualConfiguration2:"重新手动配置",manualConfiguration3:"使用已有的 GitHub 仓库,逐步完成配置",autoConfiguration1:"一键自动配置",autoConfiguration2:"重新一键自动配置",autoConfiguration3:"自动创建 GitHub 仓库(适合新用户)",username:"用户名",email:"邮箱",selectRepo:"选择仓库",selectBranch:"选择分支",loading1:"正在加载用户信息 ...",loading2:"正在加载分支信息 ...",loading3:"正在加载用户信息 ...",loading4:"正在加载{type}数据 ...",loading5:"正在加载目录信息 ...",loading6:"正在自动配置 ...",placeholder1:"请选择图床仓库 ...",placeholder2:"请选择分支 ...",placeholder3:"请输入新建的分支 ...",placeholder4:"请输入新建的目录 ...",placeholder5:"请选择一个目录 ...",message1:"GitHub Token 不能为空",message2:"用户信息获取失败,请确认 Token 是否正确",message3:"自动创建 GitHub 仓库失败,请稍后再试",message4:"自动配置成功",message5:"一键自动配置失败,请重试",message6:"目录不能为空",message7:"请输入一个新目录",message8:"请选择 {repo} 仓库里的一个目录",message9:"仓库信息获取失败,请稍后重试",message10:"分支信息获取失败,请稍后再试",message11:"用户信息获取失败,请确认 GitHub Token 是否有效",message12:"请输入分支名称",message13:"{branch} 分支已存在,请在分支列表中选择",message14:"{branch} 分支创建成功",createBranch:"新建分支",branchMode:"分支方式",selectBranch2:"选择 {repo}} 仓库里的分支",reload:"重新载入所有{type}数据",dirMode:"目录模式",inputNewDir:"手动输入一个新目录",createNewDir:"新建目录",rootDir:"根目录",rootDir2:"图片存储在 {branch} 分支的根目录下",autoDir:"自动目录",autoDir2:"根据日期自动创建格式 yyyyMMdd 的目录",repoDir:"选择 {repo} 仓库目录",repoDir2:"选择 {branch} 分支里的一个目录",selectDir:"选择目录"},upload:{uploadAreaTips:"拖拽 / 粘贴 / 点击此处选择图片",uploaded:"已上传",upload:"上传",message1:"请先完成图床配置",message2:"请选择一个仓库",message3:"目录不能为空",message4:"请选择要上传的图片",message5:"图片上传成功",message6:"图片批量上传成功",message7:"上传失败,请稍后重试",message8:"图片上传成功",fold:"折叠",expand:"展开",hash:"哈希化",rename:"重命名","timestamp-naming":"时间戳命名",prefixNaming:"前缀命名",delete:"删除",copyLink:"复制图片链接",loading1:"正在上传 ..."},management:{reload:"重新加载 {dir} 目录所有数据",loadingTxt1:"加载中 ...",loadingTxt2:"正在重命名 ...",loadingTxt3:"删除中 ...",back:"双击后退",toNextDir:"双击进入下一级目录",property:"属性",delTips:"此操作将会永久删除图片",delTips2:"已选中 {total} 张图片,是否批量删除?",renameTips:"该图片重命名为 {name} ?",message1:"图片名不能为空",message2:"图片名无改变",message3:"重命名失败",message4:"更新成功",message5:"删除成功",message6:"批量删除成功",message7:"删除失败,请稍后重试",imageName:"图片名称",imageSize:"图片大小",selectAll:"全选",deselectAll:"取消全选",unselect:"取消选择",batchCopy:"批量复制图片链接",batchDelete:"批量删除图片",selectTotal:"已选择 {total} 张图片",contextmenu_1:"从当前位置上传新图片",contextmenu_2:"上传图片到 < {dir} >",contextmenu_3:"根目录"},toolbox:{tool_1:"图片压缩",tool_1_desc:"不限制图片大小和数量,不上传至服务器的离线极致压缩",tool_2:"图片转 Base64",tool_2_desc:"不限制图片大小和数量,在线转换成 Base64 编码",tool_3:"图片水印 ",tool_3_desc:"自定义水印文字、字体大小、位置、颜色和透明度",copy_base64:"点击复制 Base64 编码",copy_base64_success:"Base64 编码复制成功",click_download:"点击下载",compress:"压缩",batch_download:"批量下载",add_watermark:"添加水印"},feedback:{text_1:"PicX 是一款基于 GitHub API 开发的图床工具,提供图片上传托管、生成图片链接和常用图片工具箱服务。",text_2:"建议将本站添加到浏览器收藏夹,方便下次使用。",text_3:"如果 PicX 对你有帮助,欢迎赞赏作者,支持开源。",text_4:"郑重声明:请勿使用 PicX 上传违反你当地法律的图片,所造成的一切后果与作者无关。"},region:{CN:"中国大陆",HK:"中国香港",MO:"中国澳门",TW:"中国台湾",SG:"新加坡",JP:"日本",US:"美国"},language:{"zh-CN":"中文简体","zh-TW":"中文繁体",en:"英文"},"toggle-language-msg":"检测到你的 IP 所属地为{region},是否切换{language}?"};var ya={repo:"倉庫",branch:"分支",dir:"目錄",tips:"提示",delete:"刪除",reset:"重置",confirm:"確定",cancel:"取消",author:"作者",document:"文檔",shortcut_key:"快捷鍵",copy_link:"復製圖片鏈接",copy_success_1:"圖片鏈接已自動復製到系統剪貼板",copy_success_2:"圖片鏈接復製成功",copy_fail_1:"復製失敗",header:{notLogin:"未登錄",login:"登錄",logout:"退出登錄",language:"語言",theme:"主題",usage_count:"使用次數"},nav:{config:"圖床配置",upload:"上傳圖片",management:"圖床管理",settings:"我的設置",toolbox:"工具箱",feedback:"幫助反饋",actions:"快捷操作"},actions:{watermark:"添加水印",compress:"壓縮圖片",transform:"轉換 "},settings:{img_name:{title:"圖片名稱設置",hash_switch_name:"自動哈希化",hash_switch_desc:"上傳前自動給圖片名增加哈希碼,確保圖片名唯一,強烈建議開啟",prefix_switch_name:"添加前綴命名",prefix_switch_desc:"上傳前自動給圖片名增加前綴,例如:abc-image.jpg,abc- 為前綴",prefix_input_placeholder:"請輸入命名前綴 ...",timestamp_switch_name:"自動時間戳命名"},img_watermark:{title:"圖片水印設置",switch_name:"是否添加水印",switch_desc:"開啟後可以自定義水印文字、字體大小、位置、顏色和透明度",text:"水印文字",text_input_placeholder:"請輸入水印文字,限製 20 字",size:"水印大小",color:"水印顏色",opacity:"水印透明度",position:"水印位置",position_1:"左上角",position_2:"左下角",position_3:"右上角",position_4:"右下角"},img_compress:{title:"圖片壓縮設置",switch_name:"是否壓縮圖片",switch_desc:"開啟後上傳前會自動壓縮圖片,有效縮短圖片上傳和加載時間,強烈建議開啟",radio_group_title:"選擇圖片壓縮算法",radio_1:"webP",radio_1_desc:"壓縮後圖片格式為 webp,壓縮率較高,大多數瀏覽器支持",radio_2:"mozJPEG",radio_2_desc:"壓縮後圖片格式為 jpg,兼容性最好,所有瀏覽器支持",radio_3:"avif",radio_3_desc:"壓縮後圖片格式為 avif,壓縮率極高,部分現代瀏覽器支持"},link_rule:{title:"圖片鏈接規則配置",select_title:"選擇圖片鏈接規則",card_title:"配置自定義圖片鏈接規則",card_table_col_title_1:"類型",card_table_col_title_2:"CDN 規則",card_table_col_title_3:"操作",input_name_1:"圖片鏈接類型",input_name_1_rule:"圖片鏈接類型名稱不能為空",input_name_2:"圖片鏈接規則",input_name_2_rule:"圖片鏈接規則不能為空",btn_name_1:"添加圖片鏈接規則"},link_format:{title:"圖片鏈接格式設置",switch_name:"自動轉換圖片鏈接格式",switch_desc:"上傳成功後復製的圖片鏈接自動轉換成 {type} 格式",select_title:"選擇圖片鏈接格式",delete_tips:"此操作將永久刪除圖片鏈接規則"},theme:{title:"主題設置",system:"跟隨系統",dark:"暗夜",light:"白晝"}},config:{inputToken:"請輸入 GitHub Token ...",manualConfiguration1:"手動配置",manualConfiguration2:"重新手動配置",manualConfiguration3:"使用已有的 GitHub 倉庫,逐步完成配置",autoConfiguration1:"一鍵自動配置",autoConfiguration2:"重新一鍵自動配置",autoConfiguration3:"自動創建 GitHub 倉庫(適合新用戶)",username:"用戶名",email:"郵箱",selectRepo:"選擇倉庫",selectBranch:"選擇分支",loading1:"正在加載用戶信息 ...",loading2:"正在加載分支信息 ...",loading3:"正在加載用戶信息 ...",loading4:"正在加載{type}數據 ...",loading5:"正在加載目錄信息 ...",loading6:"正在自動配置 ...",placeholder1:"請選擇圖床倉庫 ...",placeholder2:"請選擇分支 ...",placeholder3:"請輸入新建的分支 ...",placeholder4:"請輸入新建的目錄 ...",placeholder5:"請選擇一個目錄 ...",message1:"GitHub Token 不能為空",message2:"用戶信息獲取失敗,請確認 Token 是否正確",message3:"自動創建 GitHub 倉庫失敗,請稍後再試",message4:"自動配置成功",message5:"一鍵自動配置失敗,請重試",message6:"目錄不能為空",message7:"請輸入一個新目錄",message8:"請選擇 {repo} 倉庫裏的一個目錄",message9:"倉庫信息獲取失敗,請稍後重試",message10:"分支信息獲取失敗,請稍後再試",message11:"用戶信息獲取失敗,請確認 GitHub Token 是否有效",message12:"請輸入分支名稱",message13:"{branch} 分支已存在,請在分支列表中選擇",message14:"{branch} 分支創建成功",createBranch:"新建分支",branchMode:"分支方式",selectBranch2:"選擇 {repo}} 倉庫裏的分支",reload:"重新載入所有{type}數據",dirMode:"目錄模式",inputNewDir:"手動輸入一個新目錄",createNewDir:"新建目錄",rootDir:"根目錄",rootDir2:"圖片存儲在 {branch} 分支的根目錄下",autoDir:"自動目錄",autoDir2:"根據日期自動創建格式 yyyyMMdd 的目錄",repoDir:"選擇 {repo} 倉庫目錄",repoDir2:"選擇 {branch} 分支裏的一個目錄",selectDir:"選擇目錄"},upload:{uploadAreaTips:"拖拽 / 粘貼 / 點擊此處選擇圖片",uploaded:"已上傳",upload:"上傳",message1:"請先完成圖床配置",message2:"請選擇一個倉庫",message3:"目錄不能為空",message4:"請選擇要上傳的圖片",message5:"圖片上傳成功",message6:"圖片批量上傳成功",message7:"上傳失敗,請稍後重試",message8:"圖片上傳成功",fold:"折疊",expand:"展開",hash:"哈希化",rename:"重命名","timestamp-naming":"時間戳命名",prefixNaming:"前綴命名",delete:"刪除",copyLink:"復製圖片鏈接",loading1:"正在上傳 ..."},management:{reload:"重新加載 {dir} 目錄所有數據",loadingTxt1:"加載中 ...",loadingTxt2:"正在重命名 ...",loadingTxt3:"刪除中 ...",back:"雙擊後退",toNextDir:"雙擊進入下一級目錄",property:"屬性",delTips:"此操作將會永久刪除圖片",delTips2:"已選中 {total} 張圖片,是否批量刪除?",renameTips:"該圖片重命名為 {name} ?",message1:"圖片名不能為空",message2:"圖片名無改變",message3:"重命名失敗",message4:"更新成功",message5:"刪除成功",message6:"批量刪除成功",message7:"刪除失敗,請稍後重試",imageName:"圖片名稱",imageSize:"圖片大小",selectAll:"全選",deselectAll:"取消全選",unselect:"取消選擇",batchCopy:"批量復製圖片鏈接",batchDelete:"批量刪除圖片",selectTotal:"已選擇 {total} 張圖片",contextmenu_1:"從當前位置上傳新圖片",contextmenu_2:"上傳圖片到 < {dir} >",contextmenu_3:"根目錄"},toolbox:{tool_1:"圖片壓縮",tool_1_desc:"不限製圖片大小和數量,不上傳至服務器的離線極致壓縮",tool_2:"圖片轉 Base64",tool_2_desc:"不限製圖片大小和數量,在線轉換成 Base64 編碼",tool_3:"圖片水印 ",tool_3_desc:"自定義水印文字、字體大小、位置、顏色和透明度",copy_base64:"點擊復製 Base64 編碼",copy_base64_success:"Base64 編碼復製成功",click_download:"點擊下載",compress:"壓縮",batch_download:"批量下載",add_watermark:"添加水印"},feedback:{text_1:"PicX 是一款基於 GitHub API 開發的圖床工具,提供圖片上傳托管、生成圖片鏈接和常用圖片工具箱服務。",text_2:"建議將本站添加到瀏覽器收藏夾,方便下次使用。",text_3:"如果 PicX 對你有幫助,歡迎贊賞作者,支持開源。",text_4:"鄭重聲明:請勿使用 PicX 上傳違反你當地法律的圖片,所造成的一切後果與作者無關。"},region:{CN:"中國大陸",HK:"中國香港",MO:"中国澳门",TW:"中國臺灣",SG:"新加坡",JP:"日本",US:"美國"},language:{"zh-CN":"中文簡體","zh-TW":"中文繁體",en:"英文"},"toggle-language-msg":"檢測到你的 IP 所屬地為{region},是否切換{language}?"};var wa={repo:"Repository",branch:"Branch",dir:"Directory",tips:"Tips",delete:"Delete",reset:"Reset",confirm:"Confirm",cancel:"Cancel",author:"Author",document:"Document",shortcut_key:"Shortcut key",copy_link:"Copy image link",copy_success_1:"The image link has been automatically copied to the system clipboard",copy_success_2:"Image link copied successfully",copy_fail_1:"Copy failed",header:{notLogin:"Not log in",login:"Log in",logout:"Log out",language:"Language",theme:"Theme",usage_count:"Usage count"},nav:{config:"Image Hosting Config",upload:"Upload Image",management:"Image Hosting Management",settings:"My Settings",toolbox:"Toolbox",feedback:"Feedback",actions:"Quick actions"},actions:{compress:"Compress Image",watermark:"Add Watermark",transform:"Transform "},settings:{img_name:{title:"Image Name Settings",hash_switch_name:"Hashing",hash_switch_desc:"Automatically add a hash code to the image name before uploading to ensure uniqueness. It is strongly recommended to turn on this feature.",prefix_switch_name:"Add Prefix",prefix_switch_desc:"Automatically add a prefix to the image name before uploading. For example: abc-image.jpg, where abc- is the prefix.",prefix_input_placeholder:"Please enter the name prefix...",timestamp_switch_name:"Automatically timestamp naming"},img_watermark:{title:"Image Watermark Settings",switch_name:"Add Watermark",switch_desc:"After turning on this feature, you can customize the watermark text, font size, position, color, and transparency.",text:"Text",text_input_placeholder:"Please enter the watermark text, limited to 20 characters.",size:"Size",color:"Color",opacity:"Opacity",position:"Position",position_1:"Top Left",position_2:"Bottom Left",position_3:"Top Right",position_4:"Bottom Right"},img_compress:{title:"Image Compression Settings",switch_name:"Compress Images",switch_desc:"After enable, the image will be auto compressed before uploading, which can effectively shorten the image upload and loading time. It is strongly recommended enable.",radio_group_title:"Select image compression algorithm",radio_1:"WebP",radio_1_desc:"The compressed image format is webp, which has a higher compression ratio and is supported by most browsers.",radio_2:"MozJPEG",radio_2_desc:"The compressed image format is jpg, which has the best compatibility and is supported by all browsers.",radio_3:"AVIF",radio_3_desc:"The compressed image format is avif, which has an extremely high compression ratio and is supported by some modern browsers."},link_rule:{title:"Image Link Rules Configuration",select_title:"Select Image Link Rule",card_title:"Configure Custom Image Link Rules",card_table_col_title_1:"Type",card_table_col_title_2:"CDN Rule",card_table_col_title_3:"Action",input_name_1:"Link Type",input_name_1_rule:"The Image Link Type Name cannot be empty.",input_name_2:"Link Rule",input_name_2_rule:"The Image Link Rule cannot be empty.",btn_name_1:"Add Image Link Rule"},link_format:{title:"Image Link Format Settings",switch_name:"Automatically Convert Image Link Format",switch_desc:"After a successful upload, the copied image link will be automatically converted to the {type} format.",select_title:"Select Image Link Format",delete_tips:"This operation will permanently delete the image link rule"},theme:{title:"Theme Settings",system:"System",dark:"Dark",light:"Light"}},config:{inputToken:"Please input GitHub Token ...",manualConfiguration1:"Manual Configuration",manualConfiguration2:"Reconfigure Manually",manualConfiguration3:"Configure using an existing GitHub repository step by step",autoConfiguration1:"One-click Automatic Configuration",autoConfiguration2:"Reconfigure Automatically",autoConfiguration3:"Automatically create a GitHub repository (suitable for new users)",username:"Username",email:"Email",selectRepo:"Select Repo",selectBranch:"Select Branch",loading1:"Loading user information ...",loading2:"Loading branch information ...",loading3:"Loading user information ...",loading4:"Loading {type} data ...",loading5:"Loading directory information ...",loading6:"Automatically configuring ...",placeholder1:"Please select image hosting repository ...",placeholder2:"Please select branch ...",placeholder3:"Please enter the name of new branch ...",placeholder4:"Please enter the newly created directory ...",placeholder5:"Please select a directory ...",message1:"GitHub token cannot be empty",message2:"Failed to retrieve user information, please verify that the token is correct",message3:"Failed to automatically create GitHub repository, please try again later",message4:"Automated configuration successful",message5:"One-click automated configuration failed, please try again.",message6:"Directory cannot be empty",message7:"Please enter a new directory",message8:"Please select a directory in the {repo} repository",message9:"Failed to retrieve repository information, please try again later",message10:"Failed to retrieve branch information, please try again later",message11:"Failed to retrieve user information, please verify that the GitHub Token is valid",message12:"Please enter a branch name",message13:"The {branch} branch already exists, please select from the list of branches",message14:"The {branch} branch was created successfully.",createBranch:"Create new branch",reload:"Reload all {type} data",dirMode:"Dir Mode",inputNewDir:"Manually input a new directory",createNewDir:"New Dir",rootDir:"Root Dir",rootDir2:"Images are stored in the root directory of {branch} branch",autoDir:"Auto Dir",autoDir2:"Automatically create a directory with format yyyyMMdd",repoDir:"Select directory in {repo} repository",repoDir2:"Choose a directory in the {branch} branch",selectDir:"Select Dir"},upload:{uploadAreaTips:"Drag / Paste / Click here to select images",uploaded:"Uploaded",upload:"Upload",message1:"Please complete the image hosting configuration first",message2:"Please select a repository",message3:"Directory cannot be empty",message4:"Please select an image to upload",message5:"Image uploaded successfully",message6:"Images uploaded successfully in batch",message7:"Upload failed, please try again later",message8:"Image uploaded successfully",fold:"Fold",expand:"Expand",hash:"Hashing",rename:"Rename","timestamp-naming":"Timestamp Naming",prefixNaming:"Prefix Naming",delete:"Delete",copyLink:"Copy image link",loading1:"Uploading ..."},management:{reload:"Reload all data in the {dir} directory",loadingTxt1:"Loading ...",loadingTxt2:"Renaming ...",loadingTxt3:"Deleting ...",back:"Double-click back",toNextDir:"Double-click to enter the next level directory",property:"Property",delTips:"This operation will permanently delete the image",delTips2:"Are you sure you want to delete the selected {total} images in bulk?",renameTips:"Rename this picture to {name}?",message1:"Image name cannot be empty",message2:"Image name unchanged",message3:"Rename failed",message4:"Update successfully",message5:"Delete successfully",message6:"Batch delete successfully",message7:"Deletion failed, please try again later",imageName:"Image name",imageSize:"Image size",selectAll:"Select all",deselectAll:"Deselect all",unselect:"Unselect",batchCopy:"Batch copy image link",batchDelete:"Batch delete image",selectTotal:"Selected {total} images",contextmenu_1:"Upload new image from current location",contextmenu_2:"Upload image to < {dir} >",contextmenu_3:"Root directory"},toolbox:{tool_1:"Image Compressor",tool_1_desc:"Offline ultimate compression without size or quantity limit, and without uploading to server",tool_2:"Image to Base64",tool_2_desc:"Online conversion of images to Base64 encoding without size or quantity limit",tool_3:"Image Watermark",tool_3_desc:"Customize watermark text, font size, position, color and opacity",copy_base64:"Click to copy Base64 encoding",copy_base64_success:"Base64 encoding copied successfully",click_download:"Click to download",compress:"Compress",batch_download:"Batch Download",add_watermark:"Add Watermark"},feedback:{text_1:"PicX is a GitHub API based image hosting tool, providing image upload and hosting, generating image links, and a set of commonly used image tools.",text_2:"We suggest adding our website to your browser bookmarks for easy future access.",text_3:"If PicX is helpful to you, please consider donating to the author to support open source development.",text_4:"Disclaimer: Do not upload images that violate the laws in your local jurisdiction. The author is not responsible for any consequences arising from such actions."},region:{CN:"Mainland China",HK:"Hong Kong, China",MO:"Macao, China",TW:"Taiwan, China",SG:"Singapore",JP:"Japan",US:"United States"},language:{"zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese",en:"English"},"toggle-language-msg":"We detected that your IP is located in {region}. Do you want to switch to {language}?"};const ka=c.createI18n({locale:"zh-CN",messages:{"zh-CN":ba,"zh-TW":ya,en:wa}}),Ia=e=>{const a=Object.prototype.toString.call(e).split(" ")[1];return a.substring(0,a.length-1).toLowerCase()},xa=()=>Number(Math.random().toString().substr(2,5)+Date.now()).toString(36),Sa=(e,a)=>{navigator.clipboard.writeText(e).then((()=>{a&&a()}))},La=e=>{for(const a in e)switch(Ia(e[a])){case"object":La(e[a]);break;case"string":e[a]="";break;case"array":e[a]=[];break;case"number":e[a]=0;break;case"boolean":e[a]=!1}},Ta=(e,a)=>{for(const t in a)"object"!==Ia(a[t])?e&&(e[t]=a[t]):e[t]&&Ta(e[t],a[t])},$a=(e="yyyy-MM-dd hh:mm:ss",a=Date.now())=>{function t(e){return`00${e}`.substr(e.length)}const l=new Date(a);/(y+)/.test(e)&&(e=e.replace(RegExp.$1,`${l.getFullYear()}`.substr(4-RegExp.$1.length)));const i={"M+":l.getMonth()+1,"d+":l.getDate(),"h+":l.getHours(),"m+":l.getMinutes(),"s+":l.getSeconds()};for(const n in i)if(new RegExp(`(${n})`).test(e)){const a=`${i[n]}`;e=e.replace(RegExp.$1,1===RegExp.$1.length?a:t(a))}return e},Ca=e=>{e&&(window.document.title=`${ka.global.t(e)} | PicX`)};async function Da(e,a){const{text:t,fontSize:l,position:i,textColor:n,opacity:s}=a,[o,r,c]=(d=n,d?(d=d.replace("#",""),`${parseInt(d.substring(0,2),16)}, ${parseInt(d.substring(2,4),16)}, ${parseInt(d.substring(4,6),16)}`):"255,255,255").split(",");var d;const u=await function(e){return new Promise(((a,t)=>{const l=new FileReader;l.onload=()=>{const e=new Image;e.setAttribute("crossOrigin","Anonymous"),e.onload=()=>a(e),e.onerror=t,e.src=l.result},l.onerror=t,l.readAsDataURL(e)}))}(e),m=document.createElement("canvas"),g=m.getContext("2d");m.width=u.width,m.height=u.height,g.drawImage(u,0,0),g.font=`bold ${l}px Arial`,g.strokeStyle=`rgba(0, 0, 0, ${s})`,g.lineWidth=3,g.fillStyle=`rgba(${o}, ${r}, ${c}, ${s})`;let p=0,h=0;switch(i){case ua.leftTop:p=10,h=l+5;break;case ua.rightTop:p=m.width-g.measureText(t).width-10,h=l+5;break;case ua.leftBottom:p=10,h=m.height-15;break;case ua.rightBottom:p=m.width-g.measureText(t).width-10,h=m.height-15}return g.strokeText(t,p,h),g.fillText(t,p,h),new Promise((a=>{m.toBlob((t=>{if(t){const l=new File([t],e.name,{type:e.type});a(l)}else a(null)}),e.type)}))}const Ea=(e,a=!1)=>{e.forEach((e=>{e.deleting=a}))};async function Oa(e,a){if(1===e.length)return await async function(e,a){e.deleting=!0;const{owner:t,selectedRepo:l}=a,{path:i,sha:n}=e;return new Promise((async a=>{const s=await st(t,l,i,n);e.deleting=!1,s?(a(!0),await Za.dispatch("UPLOAD_IMG_LIST_REMOVE",e.uuid),await Za.dispatch("DIR_IMAGE_LIST_REMOVE",e)):a(!1)}))}(e[0],a)?aa.deleted:aa.deleteFail;try{return await async function(e,a){Ea(e,!0);const{owner:t,selectedRepo:l,selectedBranch:i}=a,n=await it(t,l,i);if(!n)throw Ea(e,!1),new Error("获取分支信息失败");const s=await rt(t,l,e.map((e=>({path:e.path,sha:null}))),n);if(!s)throw Ea(e,!1),new Error("创建 tree 失败");const o=await ct(t,l,s,n);if(!o)throw Ea(e,!1),new Error("创建 commit 失败");if(!(await dt(t,l,i,o.sha)))throw Ea(e,!1),new Error("更新 ref 失败");e.forEach((e=>{e.deleting=!1,Za.dispatch("UPLOAD_IMG_LIST_REMOVE",e.uuid),Za.dispatch("DIR_IMAGE_LIST_REMOVE",e)}))}(e,a),aa.allDeleted}catch(t){return console.error(t),aa.deleteFail}}function Ra(e){return new Promise((a=>{const t=new FileReader;t.readAsDataURL(e),t.onload=()=>{const e=t.result;a(e)},t.onerror=()=>a(null)}))}function Aa(e){const a=URL.createObjectURL(e),t=document.createElement("a");t.href=a,t.download=e.name,document.body.appendChild(t),t.click(),document.body.removeChild(t),URL.revokeObjectURL(a)}const Na=e=>{const a=e.indexOf(".");return e.substr(0,a).trim().replace(/\s+/g,"-")},Ma=e=>{const a=e.lastIndexOf(".");return e.slice(a+1)},Ua=e=>/(png|jpg|jpeg|gif|webp|awebp|avif|svg\+xml|svg|x-icon|vnd.microsoft.icon)$/.test(e),za=e=>e?Number((e/1024).toFixed(0)):e,Pa=e=>new Promise((async a=>{e||a(null),Ua(e.type)||(o.error(`${e.name} 不是图片格式`),a(null));const t=await Ra(e)||"";za(t.length)>=30720&&(o.error(`${e.name} 超过 30 MB,跳过选择`),a(null)),a({uuid:xa(),base64:t,file:e})})),ja=async(e,a)=>{if(t=e.type,/(png|jpg|jpeg|webp|avif)$/.test(t)){return new d(e,{encoderState:{type:a,options:u[a].meta.defaultOptions},processorState:m,preprocessorState:g}).process()}var t;return e},Ba=(e,a,t)=>{var l;const i=t.imageLinkType.selected,n=null==(l=t.imageLinkType.presetList.find((e=>e.name===i)))?void 0:l.rule;if(n){const{owner:t,selectedRepo:l,selectedBranch:i}=a;return n.replaceAll("{{owner}}",t).replaceAll("{{repo}}",l).replaceAll("{{branch}}",i).replaceAll("{{path}}",e.path)}return null},Va=(e,a,t)=>{var l;if(t.imageLinkFormat.enable){const i=t.imageLinkFormat.selected,n=null==(l=t.imageLinkFormat.presetList.find((e=>e.name===i)))?void 0:l.format;if(n)return n.replaceAll("imageLink",e||"").replaceAll("imageName",a.split(".")[0])}return e},Ga=(e=!1)=>{const a=e?ka.global.t("copy_success_1"):ka.global.t("copy_success_2");o({type:e?"info":"success",message:a,duration:e?6e3:4e3})},Fa=(e,a,t,l=!1)=>{const i=Va(Ba(e,a,t),e.name,t);i?Sa(i,(()=>{Ga(l)})):o.error({message:ka.global.t("copy_fail_1")})},Ha=(e,a,t,l=!1)=>{if((null==e?void 0:e.length)>0){let i="";e.forEach(((l,n)=>{const s=Va(Ba(l,a,t),l.name,t);i+=`${s}${n{Ga(l)}))}},Xa=()=>{const{platform:e}=navigator;return e.includes("Mac")?"mac":e.includes("Win")?"win":e.includes("Linux")?"linux":null},Wa=()=>{const e={token:"",owner:"",email:"",name:"",avatarUrl:"",selectedRepo:"",repoList:[],branchMode:na.repoBranch,branchList:[],selectedBranch:"",selectedDir:"",dirMode:oa.repoDir,dirList:[],logined:!1,selectedDirList:[],viewDir:""},a=localStorage.getItem("PICX_CONFIG");return a?(Ta(e,JSON.parse(a)),e.selectedBranch&&!e.branchList.length&&(e.branchList=[{value:e.selectedBranch,label:e.selectedBranch}]),e.dirMode===oa.autoDir&&(e.selectedDir=$a("yyyyMMdd")),e):e},qa={state:{userConfigInfo:Wa()},actions:{USER_CONFIG_INFO_RESET({state:e}){e.userConfigInfo=Wa()},SET_USER_CONFIG_INFO({state:e,dispatch:a},t){for(const l in t)e.userConfigInfo.hasOwnProperty(l)&&(e.userConfigInfo[l]=t[l]);a("USER_CONFIG_INFO_PERSIST")},USER_CONFIG_INFO_ADD_DIR({state:e,dispatch:a},t){e.userConfigInfo.dirList.some((e=>e.value===t))||(e.userConfigInfo.dirList.push({label:t,value:t}),a("USER_CONFIG_INFO_PERSIST"))},USER_CONFIG_INFO_REMOVE_DIR({state:e,dispatch:a},t){const{dirList:l}=e.userConfigInfo;if(l.some((e=>e.value===t))){const e=l.findIndex((e=>e.value===t));l.splice(e,1),a("USER_CONFIG_INFO_PERSIST")}},USER_CONFIG_INFO_PERSIST({state:e}){(e=>{const{selectedDir:a,selectedBranch:t,dirMode:l}=e.userConfigInfo;if("newDir"===l){const t=a.split("");let l=0,i="";const n=[" ",".","、",",",",","!","?","?"];for(let e=0;ea===t[e]))&&(t[e]="-"),"/"===t[e]&&(l+=1),!(l>=5));e++)i+=t[e];e.userConfigInfo.selectedDir=i}e.userConfigInfo.selectedBranch=t.replace(/\s+/g,"-")})(e),localStorage.setItem("PICX_CONFIG",JSON.stringify(e.userConfigInfo))},USER_CONFIG_INFO_LOGOUT({state:e}){La(e.userConfigInfo)}},getters:{getUserLoginStatus:e=>e.userConfigInfo.logined,getUserConfigInfo:e=>e.userConfigInfo,getUserViewDir:e=>e.userConfigInfo.viewDir}},Ka={state:{imgCardArr:[]},mutations:{IMAGE_CARD(e,{imageObj:a}){const{uuid:t,checked:l}=a;l&&e.imgCardArr.forEach((e=>{e.uuid===t&&(e.checked=!0)}))},REPLACE_IMAGE_CARD(e,{checkedImgArr:a}){a.length>0?e.imgCardArr=a:e.imgCardArr=[]}},actions:{},getters:{getImageCardArr:e=>e.imgCardArr,getImageCardCheckedArr:e=>e.imgCardArr.filter((e=>e.checked))}},Ja={state:{uploadAreaActive:!1},mutations:{CHANGE_UPLOAD_AREA_ACTIVE(e,a){e.uploadAreaActive=a},UPLOAD_AREA_ACTIVE_LOGOUT(e){e.uploadAreaActive=!1}},getters:{getUploadAreaActive:e=>e.uploadAreaActive}},Ya={imageName:{autoAddHash:!0,autoTimestampNaming:!1,prefixNaming:{enable:!1,prefix:""}},compress:{enable:!0,encoder:la.webP},theme:{mode:ga.system},elementPlusSize:ca.default,imageLinkType:{selected:"Statically",presetList:[{id:xa(),name:"Statically",rule:"https://cdn.statically.io/gh/{{owner}}/{{repo}}@{{branch}}/{{path}}"},{id:xa(),name:"ChinaJsDelivr",rule:"https://jsd.cdn.zzko.cn/gh/{{owner}}/{{repo}}@{{branch}}/{{path}}"},{id:xa(),name:"jsDelivr",rule:"https://cdn.jsdelivr.net/gh/{{owner}}/{{repo}}@{{branch}}/{{path}}"},{id:xa(),name:"GitHub",rule:"https://github.com/{{owner}}/{{repo}}/raw/{{branch}}/{{path}}"}]},imageLinkFormat:{enable:!1,selected:"Markdown",presetList:[{name:"Markdown",format:"![imageName](imageLink)"},{name:"HTML",format:'imageName'},{name:"BBCode",format:"[img]imageLink[/img]"}]},starred:!1,watermark:{enable:!1,text:"PicX",fontSize:50,position:ua.rightBottom,textColor:"#FFFFFF",opacity:.5},language:ha.zhCN},Qa=(e,a,t)=>{const l="add"===a?"添加":"编辑",i=[];if(e.rule.includes("{{owner}}")||i.push("{{owner}}"),e.rule.includes("{{repo}}")||i.push("{{repo}}"),e.rule.includes("{{branch}}")||i.push("{{branch}}"),i.length)if(e.rule.includes("{{path}}")){let e=`图片链接规则缺少 ${i.join("、")},是否确认${l}?`;"edit"===a&&(e=`注意:当前编辑的图片链接规则缺少 ${i.join("、")}`),p.confirm(e,`${l}提示`,{type:"warning",showClose:"add"===a,showCancelButton:"add"===a}).then((()=>{t(!0)})).catch((()=>{t(!1)}))}else o.error(`${l}失败,图片链接规则必须包含 {{path}}`);else t(!0)},Za=h({modules:{dirImageListModule:Qe,userConfigInfoModule:qa,imageCardModule:Ka,uploadAreaActiveModule:Ja,userSettingsModule:{state:{userSettings:(()=>{const e=je("PICX_SETTINGS");return e&&Ta(Ya,e),Ya})()},actions:{SET_USER_SETTINGS({state:e,dispatch:a},t){for(const l in t)e.userSettings.hasOwnProperty(l)&&(e.userSettings[l]=t[l]);a("USER_SETTINGS_PERSIST")},ADD_IMAGE_LINK_TYPE_RULE({state:e,dispatch:a},t){e.userSettings.imageLinkType.presetList.some((e=>e.name===t.name))?o.error("添加失败,该图片链接规则规则已存在"):Qa(t,"add",(l=>{l&&(e.userSettings.imageLinkType.presetList.push(t),a("USER_SETTINGS_PERSIST"))}))},UPDATE_IMAGE_LINK_TYPE_RULE({state:e,dispatch:a},t){Qa(t,"edit",(l=>{if(l){const l=e.userSettings.imageLinkType.presetList.find((e=>e.id===t.id));l&&(l.rule=t.rule,a("USER_SETTINGS_PERSIST"))}}))},DEL_IMAGE_LINK_TYPE_RULE({state:e,dispatch:a},t){const l=e.userSettings.imageLinkType.presetList;l.splice(l.findIndex((e=>e.id===t)),1),a("USER_SETTINGS_PERSIST")},USER_SETTINGS_PERSIST({state:e}){localStorage.setItem("PICX_SETTINGS",JSON.stringify(e.userSettings))},USER_SETTINGS_LOGOUT({state:e}){e.userSettings=Ya}},getters:{getUserSettings:e=>e.userSettings}},toolboxImageListModule:{state:{toolboxImageList:[]},mutations:{},actions:{TOOLBOX_IMG_LIST_ADD({state:e},a){e.toolboxImageList.unshift(a)},TOOLBOX_IMG_LIST_REMOVE({state:e},a){if(e.toolboxImageList.length>0){const t=e.toolboxImageList.findIndex((e=>e.uuid===a));-1!==t&&e.toolboxImageList.splice(t,1)}},TOOLBOX_IMG_LIST_RESET({state:e}){e.toolboxImageList=[]}},getters:{getToolboxImageList:e=>e.toolboxImageList}},uploadImageListModule:{state:{uploadImageList:[]},mutations:{},actions:{UPLOAD_IMG_LIST_ADD({state:e},a){e.uploadImageList.unshift(a)},UPLOAD_IMG_LIST_REMOVE({state:e},a){if(e.uploadImageList.length>0){const t=e.uploadImageList.findIndex((e=>e.uuid===a));-1!==t&&0===e.uploadImageList[t].uploadStatus.progress&&e.uploadImageList.splice(t,1)}},UPLOAD_IMG_LIST_RESET({state:e}){e.uploadImageList=[]}},getters:{getUploadImageList:e=>e.uploadImageList}}},state:{rootName:"root"},mutations:{},actions:{LOGOUT({dispatch:e,commit:a}){a("UPLOAD_AREA_ACTIVE_LOGOUT"),e("DIR_IMAGE_LOGOUT"),e("USER_CONFIG_INFO_LOGOUT"),e("USER_SETTINGS_LOGOUT"),e("TOOLBOX_IMG_LIST_RESET"),e("UPLOAD_IMG_LIST_RESET"),localStorage.clear(),sessionStorage.clear()}},getters:{}}),et=Symbol("vuex-store");function at(){return f(et)}const tt=(e,a="")=>{const{owner:t,selectedRepo:l,selectedBranch:i}=e;return new Promise((async e=>{const n=await Ge({url:`/repos/${t}/${l}/contents/${a}`,method:"GET",params:{ref:i}});n&&n.length?e(n.filter((e=>"dir"===e.type)).map((e=>({value:e.name,label:e.name})))):e(null)}))},lt=(e,a="")=>{const{owner:t,selectedRepo:l,selectedBranch:i}=e;return new Promise((async e=>{const n=await Ge({url:`/repos/${t}/${l}/contents/${a}`,method:"GET",params:{"no-cache":xa(),ref:i}});n&&n.length?(n.filter((e=>"dir"===e.type)).forEach((e=>Za.dispatch("DIR_IMAGE_LIST_ADD_DIR",e.path))),setTimeout((()=>{n.filter((e=>"file"===e.type&&Ua(Ma(e.name)))).forEach((e=>{var t,l;Za.dispatch("DIR_IMAGE_LIST_ADD_IMAGE",(t=e,l=a,{type:"image",uuid:xa(),dir:l,name:t.name,sha:t.sha,path:t.path,deleting:!1,size:t.size,checked:!1}))}))}),120),e(!0)):e(null)}))},it=(e,a,t)=>Ge({url:`/repos/${e}/${a}/branches/${t}`,method:"GET"}),nt=(e,a)=>new Promise((async t=>{const l=await Ge({url:`/repos/${e}/${a}/branches`,method:"GET"});l&&l.length?t(l.filter((e=>!e.protected)).map((e=>({value:e.name,label:e.name}))).reverse()):t(null)})),st=(e,a,t,l)=>Ge({url:`/repos/${e}/${a}/contents/${t}`,method:"DELETE",data:{owner:e,repo:a,path:t,message:"Delete image via PicX(https://github.com/XPoet/picx)",sha:l}}),ot=(e,a,t)=>Ge({url:`/repos/${a}/${t}/git/blobs`,method:"POST",params:{owner:a,repo:t,content:(e.base64.compressBase64||e.base64.watermarkBase64||e.base64.originalBase64).split(",")[1],encoding:"base64"}}),rt=(e,a,t,l)=>{var i,n,s;return Ge({url:`/repos/${e}/${a}/git/trees`,method:"POST",params:{tree:t.map((e=>({path:e.path,mode:"100644",type:"blob",sha:e.sha}))),base_tree:(null==(s=null==(n=null==(i=null==l?void 0:l.commit)?void 0:i.commit)?void 0:n.tree)?void 0:s.sha)||null}})},ct=(e,a,t,l)=>Ge({url:`/repos/${e}/${a}/git/commits`,method:"POST",params:{tree:t.sha,parents:[l.commit.sha],message:"Upload images via PicX(https://github.com/XPoet/picx)"}}),dt=(e,a,t,l)=>Ge({url:`/repos/${e}/${a}/git/refs/heads/${t}`,method:"PATCH",params:{sha:l}}),ut=v({__name:"repo-dir-cascader",props:{elKey:{type:String,default:""},elSize:{type:String,default:ca.default},elWidth:{type:String,default:"100%"},elClearable:{type:Boolean,default:!1}},setup(e){const a=at(),t=_((()=>a.getters.getUserConfigInfo)).value,l={lazy:!0,checkStrictly:!0,async lazyLoad(e,a){const{level:l,pathLabels:i}=e;let n;n=0===l?t.dirList:await tt(t,i.join("/")),a(n?n.map((e=>({value:e.value,label:e.label,leaf:l>=4}))):[])}},i=e=>{t.selectedDirList=e,t.selectedDir=e.join("/"),a.dispatch("USER_CONFIG_INFO_PERSIST")};return(a,n)=>{const s=b;return y(),w(s,{style:k({width:e.elWidth}),size:e.elSize,debounce:500,props:l,key:e.elKey,modelValue:I(t).selectedDirList,"onUpdate:modelValue":n[0]||(n[0]=e=>I(t).selectedDirList=e),filterable:"",placeholder:a.$t("config.placeholder5"),clearable:e.elClearable,onChange:i},null,8,["style","size","modelValue","placeholder","clearable"])}}}),mt={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},gt=[S("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"},null,-1)];var pt={name:"ep-refresh",render:function(e,a){return y(),x("svg",mt,[...gt])}},ht=(e,a)=>{const t=e.__vccOpts||e;for(const[l,i]of a)t[l]=i;return t};var ft=ht(v({__name:"refresh-config",props:{boxWidth:{type:Number,default:20},dataType:{type:String,default:"repo"}},setup(e){const a=D(),t=at(),l=_((()=>t.getters.getUserConfigInfo)).value,i=e,n=async()=>{const e=r.service({lock:!0,text:a.proxy.$t("config.loading4",{type:a.proxy.$t(i.dataType)})}),{owner:n,selectedRepo:s}=l;if("repo"===i.dataType){const e=await Xe(n);e&&(l.repoList=e)}else if("branch"===i.dataType){const e=await nt(n,s);e&&(l.branchList=e)}e.close(),await t.dispatch("USER_CONFIG_INFO_PERSIST")};return(a,t)=>{const l=pt,i=L,s=T;return y(),x("div",{class:"refresh-config-box",style:k({width:e.boxWidth+"rem"})},[$(s,{placement:"top",content:a.$t("config.reload",{type:a.$t(e.dataType)})},{default:C((()=>[$(i,{class:"icon",onClick:n},{default:C((()=>[$(l)])),_:1})])),_:1},8,["content"])],4)}}}),[["__scopeId","data-v-45c6dcd0"]]);const vt=_((()=>Za.getters.getUserConfigInfo)).value,_t=()=>{Za.dispatch("LOGOUT")},bt=()=>{Za.dispatch("USER_CONFIG_INFO_PERSIST")};function yt(e){vt.logined=!0,vt.owner=e.login,vt.name=e.name,vt.email=e.email,vt.avatarUrl=e.avatar_url,bt()}const wt=async e=>{const{selectedDir:a,dirMode:t}=vt;let l=e("config.message6");if(""===a){switch(t){case oa.newDir:l=e("config.message7");break;case oa.repoDir:l=e("config.message8",{repo:vt.selectedRepo})}o.warning({message:l})}else await hs.push("/upload")},kt=async e=>{const{token:a}=vt;if(!a)return void o.error({message:e("config.message1")});const t=r.service({lock:!0,text:e("config.loading6")});try{const a=await Fe(vt.token);if(!a)return t.close(),void o.error({message:e("config.message2")});yt(a);const l=await(e=>Ge({url:"/user/repos",method:"POST",params:{name:"picx-images-hosting",description:"PicX images hosting repository",private:!1},headers:{Authorization:`token ${e}`},success422:!0}))(vt.token);if(!l)return t.close(),void o.error({message:e("config.message3")});vt.repoList=[{value:"picx-images-hosting",label:"picx-images-hosting"}],vt.selectedRepo="picx-images-hosting",vt.branchList=[{value:"master",label:"master"}],vt.selectedBranch="master",vt.branchMode=na.repoBranch,vt.selectedDir=$a("yyyyMMdd"),vt.dirMode=oa.autoDir,vt.dirList=[],bt(),await We(vt,!1),t.close(),o.success({message:e("config.message4")}),await hs.push("/upload")}catch(l){o.error({message:e("config.message5")}),console.error("oneClickAutoConfig >> ",l)}},It=e=>e.language===ha.en?"100rem":"70rem",xt=e=>e.elementPlusSize===ca.large?"right":"top";const St={class:"page-container config-page-container"};var Lt=ht(v({__name:"my-config",setup(e){const a=at(),t=D(),l=E(!1),i=E(!1),n=E(!1),s=E(32),c=_((()=>a.getters.getUserConfigInfo)).value,d=_((()=>a.getters.getUserLoginStatus)).value,u=_((()=>a.getters.getUserSettings)).value,m=_((()=>!c.token||!c.owner)),g=_((()=>l.value||i.value||n.value)),p=E(null),h=E(null),f=E(""),v=E("repoDirCascaderKey"),b=E(null),S=e=>{var a;switch(e){case oa.rootDir:c.selectedDir="/";break;case oa.autoDir:c.selectedDir=$a("yyyyMMdd");break;case oa.newDir:c.selectedDir="xxx",null==(a=p.value)||a.focus();break;case oa.repoDir:c.dirList.length||(c.selectedDir="",c.selectedDirList=[]);break;default:c.selectedDir="/"}bt()};async function L(){i.value=!0;const e=await tt(c);i.value=!1,e&&(c.dirList=e),bt()}async function J(){var e,a;if(!c.token)return void o.error({message:null==(e=null==t?void 0:t.proxy)?void 0:e.$t("config.message1")});m.value||(vt.selectedRepo="",vt.repoList=[],vt.selectedBranch="",vt.branchMode=na.repoBranch,vt.branchList=[],vt.selectedDir="",vt.dirMode=oa.repoDir,vt.dirList=[]),l.value=!0;const i=await Fe(c.token);i?(yt(i),await async function(e){var a;const i=await Xe(e);l.value=!1,i?(c.repoList=i,bt()):o.error({message:null==(a=null==t?void 0:t.proxy)?void 0:a.$t("config.message9")})}(i.login)):o.error({message:null==(a=null==t?void 0:t.proxy)?void 0:a.$t("config.message11")})}function Y(e){c.branchList=[],c.dirList=[],a.dispatch("DIR_IMAGE_LOGOUT"),async function(e){var a;n.value=!0;const{owner:l,dirMode:i}=c,s=await nt(l,e);n.value=!1,s?(s.length>0?(c.branchList=s,c.selectedBranch=c.branchList[0].value,c.branchMode=na.repoBranch,await L()):(c.selectedBranch="master",c.branchMode=na.newBranch,await We(c)),S(i),bt()):o.error({message:null==(a=null==t?void 0:t.proxy)?void 0:a.$t("config.message10")})}(e),bt()}async function Q(e){c.selectedBranch=e,await L(),v.value=c.selectedBranch,c.selectedDir=c.dirList[0].value,c.selectedDirList=[c.selectedDir],bt()}const Z=()=>{var e,a;const l=f.value,i=c.branchList;l?i.find((e=>e.value===l))?o.error({message:null==(e=null==t?void 0:t.proxy)?void 0:e.$t("config.message13",{branch:l})}):(async(e,a,t)=>{const{owner:l,selectedRepo:i,branchList:n}=e,s=r.service({text:`正在新建 ${a} 分支...`});try{let e="";const r=await Ge({url:`/repos/${l}/${i}/git/refs/heads/${n[0].value}`,method:"GET"});if(r&&(e=r.object.sha),!e)return s.close(),void o.error("新建分支失败");let c="";const d=await Ge({url:`/repos/${l}/${i}/git/refs`,method:"POST",params:{ref:`refs/heads/${a}`,sha:e}});if(d&&(c=d.object.sha),!c)return s.close(),void o.error("新建分支失败");await Ge({url:`/repos/${l}/${i}/git/refs/heads/${a}`,method:"PATCH",params:{force:!0,sha:c}})&&t()}catch(c){console.error(c)}})(c,l,(()=>{var e;o.error({message:null==(e=null==t?void 0:t.proxy)?void 0:e.$t("config.message14",{branch:l})}),c.branchList.push({value:l,label:l})})):o.error({message:null==(a=null==t?void 0:t.proxy)?void 0:a.$t("config.message12")})};return O((()=>d),(e=>{e||(l.value=!1,i.value=!1,n.value=!1)})),R((()=>{c.token||setTimeout((()=>{b.value.focus()}),100)})),(e,a)=>{const t=A,o=N,r=M,d=T,_=U,L=z,D=P,E=ft,O=j,R=B,ee=ut,ae=V;return y(),x("div",St,[$(_,{"label-width":I(It)(I(u)),"label-position":I(xt)(I(u))},{default:C((()=>[$(o,{label:"Token"},{default:C((()=>[$(t,{ref_key:"tokenInputRef",ref:b,modelValue:I(c).token,"onUpdate:modelValue":a[0]||(a[0]=e=>I(c).token=e),clearable:"",autofocus:!I(c).token,type:"password","show-password":"",placeholder:e.$t("config.inputToken")},null,8,["modelValue","autofocus","placeholder"])])),_:1}),$(o,{class:"operation"},{default:C((()=>[$(d,{placement:"top",content:e.$t("config.manualConfiguration3")},{default:C((()=>[$(r,{disabled:g.value,plain:"",type:"primary","native-type":"submit",onClick:a[1]||(a[1]=H((e=>J()),["prevent"]))},{default:C((()=>[X(W(m.value?e.$t("config.manualConfiguration1"):e.$t("config.manualConfiguration2")),1)])),_:1},8,["disabled"])])),_:1},8,["content"]),$(d,{placement:"top",content:e.$t("config.autoConfiguration3")},{default:C((()=>[$(r,{plain:"",disabled:g.value,type:"primary",onClick:a[2]||(a[2]=H((a=>I(kt)(e.$t)),["prevent"]))},{default:C((()=>[X(W(m.value?e.$t("config.autoConfiguration1"):e.$t("config.autoConfiguration2")),1)])),_:1},8,["disabled"])])),_:1},8,["content"])])),_:1})])),_:1},8,["label-width","label-position"]),I(c).token&&I(c).owner?G((y(),w(_,{key:0,"label-width":I(It)(I(u)),"label-position":I(xt)(I(u)),"element-loading-text":e.$t("config.loading1")},{default:C((()=>[I(c).owner?(y(),w(o,{key:0,label:e.$t("config.username")},{default:C((()=>[$(t,{modelValue:I(c).owner,"onUpdate:modelValue":a[3]||(a[3]=e=>I(c).owner=e),readonly:""},null,8,["modelValue"])])),_:1},8,["label"])):F("",!0),I(c).email?(y(),w(o,{key:1,label:e.$t("config.email")},{default:C((()=>[$(t,{modelValue:I(c).email,"onUpdate:modelValue":a[4]||(a[4]=e=>I(c).email=e),readonly:""},null,8,["modelValue"])])),_:1},8,["label"])):F("",!0),I(c).repoList.length?(y(),w(o,{key:2,label:e.$t("config.selectRepo")},{default:C((()=>[$(D,{modelValue:I(c).selectedRepo,"onUpdate:modelValue":a[5]||(a[5]=e=>I(c).selectedRepo=e),filterable:!0,style:k({width:"calc(100% - "+s.value+"rem)"}),placeholder:e.$t("config.placeholder1"),onChange:Y},{default:C((()=>[(y(!0),x(q,null,K(I(c).repoList,((e,a)=>(y(),w(L,{key:a,label:e.label,value:e.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue","style","placeholder"]),$(E,{"box-width":s.value,"data-type":"repo"},null,8,["box-width"])])),_:1},8,["label"])):F("",!0)])),_:1},8,["label-width","label-position","element-loading-text"])),[[ae,l.value]]):F("",!0),I(c).token&&I(c).selectedRepo&&I(c).branchList.length?G((y(),w(_,{key:1,"label-width":I(It)(I(u)),"label-position":I(xt)(I(u)),"element-loading-text":e.$t("config.loading2")},{default:C((()=>[(I(c).selectedRepo,F("",!0)),I(c).branchList.length&&I(c).branchMode===I(na).repoBranch?(y(),w(o,{key:1,label:e.$t("config.selectBranch")},{default:C((()=>[$(D,{modelValue:I(c).selectedBranch,"onUpdate:modelValue":a[7]||(a[7]=e=>I(c).selectedBranch=e),filterable:!0,style:k({width:"calc(100% - "+s.value+"rem)"}),placeholder:e.$t("config.placeholder2"),onChange:Q},{default:C((()=>[(y(!0),x(q,null,K(I(c).branchList,((e,a)=>(y(),w(L,{key:a,label:e.label,value:e.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue","style","placeholder"]),$(E,{"box-width":s.value,"data-type":"branch"},null,8,["box-width"])])),_:1},8,["label"])):F("",!0),I(c).branchMode===I(na).newBranch?(y(),w(o,{key:2,label:e.$t("config.createBranch")},{default:C((()=>[$(t,{modelValue:f.value,"onUpdate:modelValue":a[8]||(a[8]=e=>f.value=e),onBlur:Z,clearable:"",placeholder:e.$t("config.placeholder3"),ref_key:"newBranchInputRef",ref:h},null,8,["modelValue","placeholder"])])),_:1},8,["label"])):F("",!0)])),_:1},8,["label-width","label-position","element-loading-text"])),[[ae,n.value]]):F("",!0),I(c).token&&I(c).selectedBranch?G((y(),w(_,{key:2,"label-width":I(It)(I(u)),"label-position":I(xt)(I(u)),"element-loading-text":e.$t("config.loading5")},{default:C((()=>[I(c).selectedBranch?(y(),w(o,{key:0,label:e.$t("config.dirMode")},{default:C((()=>[$(R,{modelValue:I(c).dirMode,"onUpdate:modelValue":a[9]||(a[9]=e=>I(c).dirMode=e),onChange:S},{default:C((()=>[$(d,{content:e.$t("config.inputNewDir"),placement:"top",offset:-1},{default:C((()=>[$(O,{label:"newDir"},{default:C((()=>[X(W(e.$t("config.createNewDir")),1)])),_:1})])),_:1},8,["content"]),$(d,{content:e.$t("config.rootDir2",{branch:I(c).selectedBranch}),placement:"top",offset:-1},{default:C((()=>[$(O,{label:"rootDir"},{default:C((()=>[X(W(e.$t("config.rootDir")),1)])),_:1})])),_:1},8,["content"]),$(d,{content:e.$t("config.autoDir2"),placement:"top",offset:-1},{default:C((()=>[$(O,{label:"autoDir"},{default:C((()=>[X(W(e.$t("config.autoDir")),1)])),_:1})])),_:1},8,["content"]),I(c).dirList.length&&"newBranch"!==I(c).branchMode?(y(),w(d,{key:0,content:e.$t("config.repoDir2",{branch:I(c).selectedBranch}),placement:"top",offset:-1},{default:C((()=>[$(O,{label:"repoDir"},{default:C((()=>[X(W(e.$t("config.repoDir",{repo:I(c).selectedRepo})),1)])),_:1})])),_:1},8,["content"])):F("",!0)])),_:1},8,["modelValue"])])),_:1},8,["label"])):F("",!0),"autoDir"===I(c).dirMode?(y(),w(o,{key:1,label:e.$t("config.autoDir")},{default:C((()=>[$(t,{modelValue:I(c).selectedDir,"onUpdate:modelValue":a[10]||(a[10]=e=>I(c).selectedDir=e),readonly:""},null,8,["modelValue"])])),_:1},8,["label"])):F("",!0),"rootDir"===I(c).dirMode?(y(),w(o,{key:2,label:e.$t("config.rootDir")},{default:C((()=>[$(t,{modelValue:I(c).selectedDir,"onUpdate:modelValue":a[11]||(a[11]=e=>I(c).selectedDir=e),readonly:""},null,8,["modelValue"])])),_:1},8,["label"])):F("",!0),"newDir"===I(c).dirMode?(y(),w(o,{key:3,label:e.$t("config.createNewDir")},{default:C((()=>[$(t,{ref_key:"newDirInputRef",ref:p,modelValue:I(c).selectedDir,"onUpdate:modelValue":a[12]||(a[12]=e=>I(c).selectedDir=e),onInput:a[13]||(a[13]=e=>I(bt)()),clearable:"",placeholder:e.$t("config.placeholder4")},null,8,["modelValue","placeholder"])])),_:1},8,["label"])):F("",!0),I(c).dirList.length&&"repoDir"===I(c).dirMode&&"newBranch"!==I(c).branchMode?(y(),w(o,{key:4,label:e.$t("config.selectDir")},{default:C((()=>[$(ee,{"el-key":v.value,"el-size":I(u).elementPlusSize},null,8,["el-key","el-size"])])),_:1},8,["label"])):F("",!0)])),_:1},8,["label-width","label-position","element-loading-text"])),[[ae,i.value]]):F("",!0),I(c).token?(y(),w(_,{key:3,"label-width":I(It)(I(u)),"label-position":I(xt)(I(u))},{default:C((()=>[$(o,{class:"operation"},{default:C((()=>[I(c).owner?(y(),w(r,{key:0,plain:"",disabled:g.value,type:"warning",onClick:a[14]||(a[14]=e=>I(_t)())},{default:C((()=>[X(W(e.$t("reset")),1)])),_:1},8,["disabled"])):F("",!0),I(c).selectedRepo?(y(),w(r,{key:1,plain:"",disabled:g.value,type:"success",onClick:a[15]||(a[15]=a=>I(wt)(e.$t))},{default:C((()=>[X(W(e.$t("confirm")),1)])),_:1},8,["disabled"])):F("",!0)])),_:1})])),_:1},8,["label-width","label-position"])):F("",!0)])}}}),[["__scopeId","data-v-6ff20fd0"]]);const Tt={key:0,class:"selected-info-bar-box"},$t={class:"info-item repo"},Ct={key:0,class:"info-item branch"},Dt={class:"info-item dir"};var Et=ht(v({__name:"selected-info-bar",props:{barType:{type:String,default:"upload"}},setup(e){const a=at(),t=_((()=>a.getters.getUserConfigInfo)),l=_((()=>a.getters.getUserSettings));return(a,i)=>{const n=J,s=ut;return t.value.selectedRepo?(y(),x("div",Tt,[S("span",$t,[X(W(a.$t("repo"))+": ",1),$(n,{"disable-transitions":""},{default:C((()=>[X(W(t.value.selectedRepo),1)])),_:1})]),t.value.selectedBranch?(y(),x("span",Ct,[X(W(a.$t("branch"))+": ",1),$(n,{"disable-transitions":""},{default:C((()=>[X(W(t.value.selectedBranch),1)])),_:1})])):F("",!0),S("span",Dt,[X(W(a.$t("dir"))+": ",1),t.value.dirMode!==I(oa).repoDir||"management"===e.barType?(y(),w(n,{key:0,"disable-transitions":""},{default:C((()=>[X(W("management"===e.barType?t.value.viewDir:t.value.selectedDir),1)])),_:1})):F("",!0),t.value.dirMode===I(oa).repoDir&&"upload"===e.barType?(y(),w(s,{key:1,"el-size":l.value.elementPlusSize===I(ca).large?I(ca).default:l.value.elementPlusSize,"el-width":"","el-clearable":!1},null,8,["el-size"])):F("",!0)])])):F("",!0)}}}),[["__scopeId","data-v-02ac177a"]]);const Ot={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Rt=[S("path",{fill:"currentColor",d:"M544 864V672h128L512 480L352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6H544z"},null,-1)];var At={name:"ep-upload-filled",render:function(e,a){return y(),x("svg",Ot,[...Rt])}};const Nt=["onDrop","onPaste"],Mt=(e=>(Z("data-v-7144607c"),e=e(),ee(),e))((()=>S("label",{for:"input-file-selector"},null,-1))),Ut={key:0,class:"upload-area-tips"},zt={class:"text"},Pt=["src"];var jt=ht(v({__name:"getting-images",props:{disabled:{type:Boolean,default:!1}},emits:["getImgList"],setup(e,{expose:a,emit:t}){const l=at(),i=_((()=>l.getters.getUploadAreaActive)),n=E({uuid:"",base64:""}),s=E([]),o=t,r=()=>{const e=s.value.length,a=e>0?s.value[e-1]:{uuid:"",base64:""};n.value={uuid:a.uuid,base64:a.base64}},c=async e=>{if(e.length){s.value=[];for(const a of e){const e=await Pa(a);e&&s.value.push(e)}r(),l.commit("CHANGE_UPLOAD_AREA_ACTIVE",!0),o("getImgList",s.value)}},d=async e=>{const a=e.target;await c(a.files),a.value="",a.value=a.defaultValue},u=async e=>{await c(e.dataTransfer.files)},m=async e=>{const a=Array.from(e.clipboardData.items).filter((e=>"file"===e.kind&&Ua(e.type))).map((e=>e.getAsFile()));await c(a)};return R((()=>{window.addEventListener("paste",m)})),Y((()=>{window.removeEventListener("paste",m)})),a({reset:()=>{s.value=[],n.value.uuid="",n.value.base64=""},remove:e=>{const a=s.value.findIndex((a=>a.uuid===e));-1!==a&&s.value.splice(a,1),e===n.value.uuid&&r()}}),(a,t)=>{const l=At,s=L;return y(),x("div",{class:Q(["getting-images-container",{focus:i.value&&n.value.base64,disabled:e.disabled}]),onDragover:t[0]||(t[0]=H((()=>{}),["prevent"])),onDrop:H(u,["stop","prevent"]),onPaste:H(m,["stop"])},[Mt,S("input",{id:"input-file-selector",type:"file",accept:"image/*",onChange:d,multiple:"multiple"},null,32),n.value.base64?F("",!0):(y(),x("div",Ut,[$(s,{class:"icon"},{default:C((()=>[$(l)])),_:1}),S("div",zt,W(a.$t("upload.uploadAreaTips")),1)])),n.value.base64?(y(),x("img",{key:1,class:"preview-img",src:n.value.base64},null,8,Pt)):F("",!0)],42,Nt)}}}),[["__scopeId","data-v-7144607c"]]);const Bt=_((()=>Za.getters.getUserSettings)).value,Vt=async e=>{const{starred:a}=e;if(!a){await((e="XPoet/picx")=>Ge({url:`/user/starred/${e}`,method:"PUT",data:{},noShowErrorMsg:!0}))()&&await Za.dispatch("SET_USER_SETTINGS",{starred:!0})}},Gt=(e,a,t)=>{var l;let i=t.selectedDir;(null==(l=null==a?void 0:a.reUploadInfo)?void 0:l.isReUpload)&&(i=a.reUploadInfo.dir),a.uploadStatus.progress=100,a.uploadStatus.uploading=!1;const n={checked:!1,type:"image",uuid:a.uuid,dir:i,name:e.name,sha:e.sha,path:e.path,deleting:!1,size:e.size};a.uploadedImg=n,Za.dispatch("DIR_IMAGE_LIST_ADD_DIR",i),Za.dispatch("DIR_IMAGE_LIST_ADD_IMAGE",n)};function Ft(e,a){const{selectedBranch:t,email:l,owner:i}=e,n={message:"Upload image via PicX(https://github.com/XPoet/picx)",branch:t,content:(a.base64.compressBase64||a.base64.watermarkBase64||a.base64.originalBase64).split(",")[1]};return l&&(n.committer={name:i,email:l}),a.uploadStatus.uploading=!0,new Promise((async t=>{const l=await((e,a)=>Ge({url:e,method:"PUT",data:a}))(((e,a)=>{var t;const{owner:l,selectedRepo:i,selectedDir:n}=e,s=a.filename.final;let o=s;return"/"!==n&&(o=`${n}/${s}`),(null==(t=null==a?void 0:a.reUploadInfo)?void 0:t.isReUpload)&&(o=a.reUploadInfo.path),`/repos/${l}/${i}/contents/${o}`})(e,a),n);if(a.uploadStatus.uploading=!1,l){const{name:i,sha:n,path:s,size:o}=l.content;Gt({name:i,sha:n,path:s,size:o},a,e),t(!0)}else t(!1)}))}const Ht={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Xt=[S("path",{fill:"currentColor",d:"M406.656 706.944L195.84 496.256a32 32 0 1 0-45.248 45.248l256 256l512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1)];var Wt={name:"ep-check",render:function(e,a){return y(),x("svg",Ht,[...Xt])}};const qt={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Kt=[S("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-578.304V704h-64V247.296L237.248 490.048L192 444.8L508.8 128l316.8 316.8l-45.312 45.248L544 253.696z"},null,-1)];var Jt={name:"ep-upload",render:function(e,a){return y(),x("svg",qt,[...Kt])}};const Yt={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Qt=[S("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),S("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768a384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896a448 448 0 0 1 0 896z"},null,-1)];var Zt={name:"ep-remove",render:function(e,a){return y(),x("svg",Yt,[...Qt])}};const el={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},al=[S("path",{fill:"currentColor",d:"M672 192L288 511.936L672 832z"},null,-1)];var tl={name:"ep-caret-left",render:function(e,a){return y(),x("svg",el,[...al])}};const ll={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},il=[S("path",{fill:"currentColor",d:"m192 384l320 384l320-384z"},null,-1)];var nl={name:"ep-caret-bottom",render:function(e,a){return y(),x("svg",ll,[...il])}};const sl=(e,a)=>{a.filename.isPrefixNaming=e,a.filename.name=e?`${a.filename.prefixName}${a.filename.initName}`:`${a.filename.initName}`,a.filename.isAddHash?a.filename.final=`${a.filename.name}.${a.filename.hash}.${a.filename.suffix}`:a.filename.final=`${a.filename.name}.${a.filename.suffix}`},ol=(e,a)=>{a.filename.isAddHash=e,a.filename.final=e?`${a.filename.name}.${a.filename.hash}.${a.filename.suffix}`:`${a.filename.name}.${a.filename.suffix}`};const rl=["element-loading-text"],cl={class:"before-upload-handle-container"},dl={class:"img-name text-ellipsis"},ul={class:"operate-item"},ml={class:"operate-item"},gl={class:"operate-item"},pl={key:0,class:"operate-item"},hl={key:1,class:"img-info-box"},fl={class:"file-size-box"},vl={key:0,class:"finial-file-size file-size-item"},_l={class:"last-modified"};var bl=ht(v({__name:"upload-image-card",props:{imgObj:{type:Object,require:!0,default:()=>({})}},emits:["remove"],setup(e,{emit:a}){const t=at(),l=D(),i=e,n=a,s=E(null),o=_((()=>t.getters.getUserSettings)).value,r=_((()=>t.getters.getUserConfigInfo)).value,c=E(""),d=ae({isHash:!1,isPrefixNaming:!1,isTimestampNaming:!1,isRename:!1,newName:""}),u=E(!0),m=()=>{var e,a;i.imgObj.filename.newName=d.newName,setTimeout((()=>{var e;null==(e=s.value)||e.focus()}),100),e=d.isRename,(a=i.imgObj).filename.isRename=e,e?a.filename.name=a.filename.newName.trim().replace(/\s+/g,"-"):sl(a.filename.isPrefixNaming,a),a.filename.isAddHash?a.filename.final=`${a.filename.name}.${a.filename.hash}.${a.filename.suffix}`:a.filename.final=`${a.filename.name}.${a.filename.suffix}`},g=e=>{const{suffix:a,isPrefixNaming:t,isAddHash:l}=i.imgObj.filename;e?(d.isHash=!1,d.isPrefixNaming=!1,i.imgObj.filename.final=`${Date.now()}.${a}`):(sl(t,i.imgObj),ol(l,i.imgObj),d.isHash=l,d.isPrefixNaming=t)};return O((()=>i.imgObj.uploadStatus),(e=>{e.uploading&&(c.value=l.proxy.$t("upload.loading1"))}),{deep:!0,immediate:!0}),R((async()=>{await(async(e,a)=>{const{watermark:t,compress:l}=a;let i=e.fileInfo.originalFile;var n;t.enable&&t.text&&!e.fileInfo.watermarkFile&&(e.beforeUploadStatus.watermarking=!0,e.fileInfo.watermarkFile=(n=e.fileInfo.originalFile.type,/(png|jpg|jpeg|webp|avif)$/.test(n)?await Da(e.fileInfo.originalFile,t):e.fileInfo.originalFile),i=e.fileInfo.watermarkFile,e.base64.watermarkBase64=await Ra(i),e.beforeUploadStatus.watermarking=!1),l.enable&&!e.fileInfo.compressFile&&(e.beforeUploadStatus.compressing=!0,e.fileInfo.compressFile=await ja(i,l.encoder),i=e.fileInfo.compressFile,e.base64.compressBase64=await Ra(i),e.filename.suffix=Ma(i.name),e.beforeUploadStatus.compressing=!1)})(i.imgObj,o),(()=>{const{imageName:e}=o;0===i.imgObj.uploadStatus.progress&&(i.imgObj.filename.isTimestampNaming=e.autoTimestampNaming,i.imgObj.filename.isTimestampNaming?(i.imgObj.filename.isAddHash=!1,i.imgObj.filename.isPrefixNaming=!1,g(!0)):(i.imgObj.filename.isAddHash=e.autoAddHash,i.imgObj.filename.isPrefixNaming=e.prefixNaming.enable,i.imgObj.filename.prefixName=e.prefixNaming.prefix,sl(e.prefixNaming.enable,i.imgObj),ol(e.autoAddHash,i.imgObj)),d.isTimestampNaming=i.imgObj.filename.isTimestampNaming,d.isHash=i.imgObj.filename.isAddHash,d.isPrefixNaming=i.imgObj.filename.isPrefixNaming,d.isRename=i.imgObj.filename.isRename,d.newName=i.imgObj.filename.newName)})()})),(a,t)=>{var l,p,h,f,v,_,b,k;const D=te,E=nl,O=tl,R=L,N=T,M=le,U=A,z=Zt,P=Jt,j=Wt,B=V;return y(),x("div",{class:Q(["upload-image-card-container",{"wait-upload":!e.imgObj.uploadStatus.uploading&&0===e.imgObj.uploadStatus.progress,uploading:e.imgObj.uploadStatus.uploading&&100!==e.imgObj.uploadStatus.progress,uploaded:!e.imgObj.uploadStatus.uploading&&100===e.imgObj.uploadStatus.progress}])},[G((y(),x("div",{class:"img-show-container","element-loading-text":c.value},[$(D,{src:e.imgObj.base64.compressBase64||e.imgObj.base64.watermarkBase64||e.imgObj.base64.originalBase64,fit:"cover",loading:"lazy","hide-on-click-modal":!0,"preview-src-list":[e.imgObj.base64.compressBase64||e.imgObj.base64.watermarkBase64||e.imgObj.base64.originalBase64]},null,8,["src","preview-src-list"])],8,rl)),[[B,e.imgObj.uploadStatus.uploading||e.imgObj.beforeUploadStatus.compressing||e.imgObj.beforeUploadStatus.watermarking]]),S("div",cl,[S("div",{class:Q(["img-name-box",{"no-border":100===e.imgObj.uploadStatus.progress}])},[S("span",dl,W(e.imgObj.filename.final||e.imgObj.filename.name),1),0===e.imgObj.uploadStatus.progress?(y(),w(N,{key:0,placement:"top",offset:8,content:u.value?a.$t("upload.expand"):a.$t("upload.fold")},{default:C((()=>[$(R,{class:"fold-btn",onClick:t[0]||(t[0]=e=>u.value=!u.value)},{default:C((()=>[u.value?F("",!0):(y(),w(E,{key:0})),u.value?(y(),w(O,{key:1})):F("",!0)])),_:1})])),_:1},8,["content"])):F("",!0)],2),0===e.imgObj.uploadStatus.progress?(y(),x("div",{key:0,class:Q(["img-name-operate-box",{folded:u.value}])},[S("div",ul,[$(M,{label:a.$t("upload.hash"),modelValue:d.isHash,"onUpdate:modelValue":t[1]||(t[1]=e=>d.isHash=e),onChange:t[2]||(t[2]=e=>{return a=e,d.isTimestampNaming=!1,void ol(a,i.imgObj);var a})},null,8,["label","modelValue"])]),S("div",ml,[$(M,{label:a.$t("upload.rename"),modelValue:d.isRename,"onUpdate:modelValue":t[3]||(t[3]=e=>d.isRename=e),onChange:m},null,8,["label","modelValue"]),e.imgObj.filename.isRename?(y(),w(U,{key:0,class:"rename-input",size:"small",modelValue:d.newName,"onUpdate:modelValue":t[4]||(t[4]=e=>d.newName=e),onInput:m,maxlength:I(18),ref_key:"renameInputRef",ref:s,clearable:""},null,8,["modelValue","maxlength"])):F("",!0)]),S("div",gl,[$(M,{label:a.$t("upload.timestamp-naming"),modelValue:d.isTimestampNaming,"onUpdate:modelValue":t[5]||(t[5]=e=>d.isTimestampNaming=e),onChange:g},null,8,["label","modelValue"])]),!e.imgObj.filename.isRename&&I(o).imageName.prefixNaming.enable&&I(o).imageName.prefixNaming.prefix?(y(),x("div",pl,[$(M,{label:a.$t("upload.prefixNaming"),modelValue:d.isPrefixNaming,"onUpdate:modelValue":t[6]||(t[6]=e=>d.isPrefixNaming=e),onChange:t[7]||(t[7]=e=>{return a=e,d.isTimestampNaming=!1,void sl(a,i.imgObj);var a})},null,8,["label","modelValue"])])):F("",!0)],2)):F("",!0),0===e.imgObj.uploadStatus.progress?(y(),x("div",hl,[S("div",fl,[S("span",{class:Q(["original-file-size file-size-item",{"del-line":null==(p=null==(l=e.imgObj.fileInfo)?void 0:l.compressFile)?void 0:p.size}])},W(I(za)(null==(h=e.imgObj.fileInfo.originalFile)?void 0:h.size))+" KB ",3),(null==(v=null==(f=e.imgObj.fileInfo)?void 0:f.compressFile)?void 0:v.size)?(y(),x("span",vl,W(I(za)(null==(b=null==(_=e.imgObj.fileInfo)?void 0:_.compressFile)?void 0:b.size))+" KB ",1)):F("",!0)]),S("span",_l,W(I($a)("yyyy-MM-dd hh:mm",null==(k=e.imgObj.fileInfo.originalFile)?void 0:k.lastModified)),1)])):F("",!0)]),100===e.imgObj.uploadStatus.progress?(y(),x("div",{key:0,class:"after-upload-handle-container flex-center",onClick:t[8]||(t[8]=a=>I(Fa)(e.imgObj.uploadedImg,I(r),I(o)))},W(a.$t("upload.copyLink")),1)):F("",!0),0===e.imgObj.uploadStatus.progress?(y(),w(N,{key:1,placement:"top",offset:8,content:a.$t("upload.delete")},{default:C((()=>[$(R,{class:"del-img-btn",onClick:t[9]||(t[9]=a=>{return t=e.imgObj.uuid,void n("remove",t);var t})},{default:C((()=>[$(z)])),_:1})])),_:1},8,["content"])):F("",!0),S("div",{class:Q(["upload-status-box",{"wait-upload":!e.imgObj.uploadStatus.uploading&&0===e.imgObj.uploadStatus.progress,uploaded:!e.imgObj.uploadStatus.uploading&&100===e.imgObj.uploadStatus.progress}])},[$(R,null,{default:C((()=>[e.imgObj.uploadStatus.uploading||0!==e.imgObj.uploadStatus.progress?F("",!0):(y(),w(P,{key:0})),e.imgObj.uploadStatus.uploading||100!==e.imgObj.uploadStatus.progress?F("",!0):(y(),w(j,{key:1}))])),_:1})],2)],2)}}}),[["__scopeId","data-v-5045012e"]]);const yl={class:"upload-page-container"},wl={key:0,class:"upload-page-left page-container",style:{width:"300rem"}},kl={class:"row-item"},Il={class:"content-box"},xl={class:"row-item"},Sl={class:"content-box upload-area-status"},Ll={key:0},Tl={key:0,class:"row-item"},$l={class:"content-box",style:{"text-align":"right"}},Cl={class:"shortcut-key"},Dl={class:"shortcut-key"},El=v({__name:"upload-image",setup(e){const a=at(),t=ie(),l=D(),i=E(null),s=_((()=>a.getters.getUserConfigInfo)).value,r=_((()=>a.getters.getUserSettings)).value,c=_((()=>a.getters.getUserLoginStatus)),d=E([]),u=E(!1),m=_((()=>"mac"===Xa()?"Command":"Ctrl")),g=e=>{e.forEach((e=>{a.dispatch("UPLOAD_IMG_LIST_ADD",(e=>{const a={uuid:"",base64:{originalBase64:"",watermarkBase64:null,compressBase64:null},fileInfo:{originalFile:null,watermarkFile:null,compressFile:null},filename:{hash:"",suffix:"",name:"",prefixName:"",final:"",initName:"",newName:"",isAddHash:!0,isRename:!1,isPrefixNaming:!1,isTimestampNaming:!1},beforeUploadStatus:{watermarking:!1,compressing:!1},uploadStatus:{progress:0,uploading:!1},reUploadInfo:{dir:"",path:"",isReUpload:!1}};a.uuid=e.uuid,a.base64.originalBase64=e.base64,a.fileInfo.originalFile=e.file;const{imageName:t}=Bt,l=e.uuid,i=e.file.name.trim().replaceAll(" ","-"),n=i.lastIndexOf("."),s=i.slice(0,n),o=i.slice(n+1);return a.filename.initName=s,a.filename.name=t.prefixNaming.enable?`${t.prefixNaming.prefix}${s}`:s,a.filename.prefixName=t.prefixNaming.prefix,a.filename.hash=l,a.filename.suffix=o,a.filename.final=t.autoAddHash?`${a.filename.name}.${l}.${o}`:`${a.filename.name}.${o}`,a.filename.isAddHash=t.autoAddHash,a.filename.isPrefixNaming=t.prefixNaming.enable,a.filename.isTimestampNaming=t.autoTimestampNaming,a})(e))}))},p=()=>{var e;null==(e=i.value)||e.reset()},h=async e=>1===e.length?await Ft(s,e[0])?Ze.uploaded:Ze.uploadFail:e.length>1?await async function(e,a){const{selectedBranch:t,selectedRepo:l,selectedDir:i,owner:s}=e,r=[];for(const g of a){g.uploadStatus.uploading=!0;const e=await ot(g,s,l);e?r.push(n({img:g},e)):(g.uploadStatus.uploading=!1,o.error(`${g.filename.final} 上传失败`))}const c=await it(s,l,t);if(!c)return Promise.resolve(!1);const d="/"===i?"":`${i}/`,u=await rt(s,l,r.map((e=>({sha:e.sha,path:`${d}${e.img.filename.final}`}))),c);if(!u)return Promise.resolve(!1);const m=await ct(s,l,u,c);return m&&await dt(s,l,t,m.sha)?(r.forEach((a=>{const t=a.img.filename.final;Gt({name:t,sha:a.sha,path:`${d}${t}`,size:0},a.img,e)})),Promise.resolve(!0)):Promise.resolve(!1)}(s,e)?Ze.allUploaded:Ze.uploadFail:void 0,f=async(e,t=!1)=>{p(),t?Ha(e,s,r,!0):Fa(e[0],s,r,!0),await a.dispatch("SET_USER_CONFIG_INFO",{viewDir:s.selectedDir}),await Vt(r)},v=async()=>{var e,a,i,n,r,c,m;const{token:g,selectedRepo:p,selectedDir:v}=s;if(!g)return o.error({message:null==(e=null==l?void 0:l.proxy)?void 0:e.$t("upload.message1")}),void(await t.push("/config"));if(!p)return o.error({message:null==(a=null==l?void 0:l.proxy)?void 0:a.$t("upload.message2")}),void(await t.push("/config"));if(!v)return o.error({message:null==(i=null==l?void 0:l.proxy)?void 0:i.$t("upload.message3")}),void(await t.push("/config"));const _=d.value.filter((e=>0===e.uploadStatus.progress));if(0===_.length)return void o.error({message:null==(n=null==l?void 0:l.proxy)?void 0:n.$t("upload.message4")});u.value=!0;const b=await h(_);u.value=!1;const y=_.filter((e=>100===e.uploadStatus.progress)).map((e=>e.uploadedImg));switch(b){case Ze.uploaded:o.success({message:null==(r=null==l?void 0:l.proxy)?void 0:r.$t("upload.message5")}),await f(y);break;case Ze.allUploaded:o.success({message:null==(c=null==l?void 0:l.proxy)?void 0:c.$t("upload.message6")}),await f(y,!0);break;case Ze.uploadFail:o.error({message:null==(m=null==l?void 0:l.proxy)?void 0:m.$t("upload.message7")})}},b=()=>{u.value=!1,a.dispatch("UPLOAD_IMG_LIST_RESET"),p()};O((()=>c),(e=>{!e&&b()})),O((()=>a.state.uploadImageListModule.uploadImageList),(e=>{d.value=e}),{immediate:!0,deep:!0});return R((()=>{document.addEventListener("keydown",(e=>{const a=e.keyCode||e.which||e.charCode,t=e.ctrlKey||e.metaKey;t&&65===a&&d.value.length&&(b(),e.preventDefault()),t&&83===a&&(u.value||(v(),e.preventDefault()))}))})),(e,t)=>{const l=jt,n=Et,s=M;return y(),x("div",yl,[!d.value.length||I(r).elementPlusSize!==I(ca).large&&I(r).elementPlusSize!==I(ca).default?F("",!0):(y(),x("div",wl,[(y(!0),x(q,null,K(d.value,((e,l)=>(y(),x("div",{class:"uploaded-item",key:l+e.uuid},[$(bl,{"img-obj":e,onRemove:t[0]||(t[0]=e=>{return t=e,a.dispatch("UPLOAD_IMG_LIST_REMOVE",t),void(null==(l=i.value)||l.remove(t));var t,l})},null,8,["img-obj"])])))),128))])),S("div",{class:Q(["upload-page-right page-container",{"has-left":d.value.length}])},[S("div",kl,[S("div",Il,[$(l,{disabled:u.value,ref_key:"gettingImagesRef",ref:i,onGetImgList:g},null,8,["disabled"])])]),S("div",xl,[S("div",Sl,[$(n),d.value.length?(y(),x("div",Ll,W(e.$t("upload.uploaded"))+":"+W(d.value.filter((e=>100===e.uploadStatus.progress)).length)+" / "+W(d.value.length),1)):F("",!0)])]),d.value.length?(y(),x("div",Tl,[S("div",$l,[$(s,{disabled:u.value,plain:"",type:"warning",onClick:b},{default:C((()=>[X(W(e.$t("reset"))+" ",1),S("span",Cl,"[ "+W(m.value)+" + A ]",1)])),_:1},8,["disabled"]),$(s,{disabled:u.value,plain:"",type:"primary",onClick:v},{default:C((()=>[X(W(e.$t("upload.upload"))+" ",1),S("span",Dl,"[ "+W(m.value)+" + S ]",1)])),_:1},8,["disabled"])])])):F("",!0)],2)])}}}),Ol={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Rl=[S("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224a112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224a112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224a112 112 0 0 1 0-224z"},null,-1)];var Al={name:"ep-more-filled",render:function(e,a){return y(),x("svg",Ol,[...Rl])}};const Nl={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Ml=[S("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64h64z"},null,-1),S("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64H384zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64z"},null,-1)];var Ul={name:"ep-copy-document",render:function(e,a){return y(),x("svg",Nl,[...Ml])}};const zl={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Pl=[S("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296c-44.096 0-108.992 44.736-148.48 101.504c0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04c67.84 0 107.904-43.648 147.456-100.416z"},null,-1)];var jl={name:"ep-info-filled",render:function(e,a){return y(),x("svg",zl,[...Pl])}};const Bl={class:"copy-image-link-box"},Vl={class:"left"},Gl={class:"right"};var Fl=ht(v({__name:"copy-image-link",props:{imgObj:{type:Object,default:()=>{}}},setup(e){const a=e,t=_((()=>Za.getters.getUserSettings)).value,l=_((()=>Za.getters.getUserConfigInfo)).value,i=_((()=>t.imageLinkFormat.enable?`${t.imageLinkType.selected} & ${t.imageLinkFormat.selected}`:`${t.imageLinkType.selected}`));let n=E(a.imgObj).value;const s=()=>{Fa(n,l,t)};return ne((()=>{n=a.imgObj})),(e,a)=>{const t=jl,l=L,n=T,o=Ul,r=M;return y(),x("div",Bl,[S("div",Vl,[$(n,{content:i.value,placement:"top"},{default:C((()=>[$(l,null,{default:C((()=>[$(t)])),_:1})])),_:1},8,["content"])]),S("div",Gl,[$(r,{plain:"",type:"primary",size:"small",onClick:s},{default:C((()=>[$(l,null,{default:C((()=>[$(o)])),_:1}),X(" "+W(e.$t("upload.copyLink")),1)])),_:1})])])}}}),[["__scopeId","data-v-14701c17"]]);const Hl={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Xl=[S("path",{fill:"currentColor",d:"M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1)];var Wl={name:"ep-close",render:function(e,a){return y(),x("svg",Hl,[...Xl])}};const ql=["element-loading-text"],Kl={class:"image-box"},Jl={class:"info-box"},Yl={class:"image-info"},Ql={key:0,class:"rename-operate"},Zl={key:1,class:"filename"},ei={class:"copy-link-box"},ai={class:"operation-box"},ti={class:"operation-left"},li={class:"operation-right"},ii={class:"operation-btn"};var ni=ht(v({__name:"image-card",props:{imageObj:{type:Object,default:()=>({})},isUploaded:{type:Boolean,default:!1}},setup(e){const a=e,t=D(),l=at(),i=se(),n=_((()=>l.getters.getUserConfigInfo)).value,s=_((()=>l.getters.getUserSettings)).value,c=_((()=>"/management"===i.path)),d=_((()=>Ba(a.imageObj,n,s))),u=E(),m=E(""),g=E(!1),h=E(!1),f=E(!1),v=(e,a=!1)=>{a||(e.deleting=!0);const{owner:i,selectedRepo:s}=n,{path:r,sha:c}=e;return new Promise((async n=>{var d,u;await st(i,s,r,c)?(a?(g.value=!1,o.success({message:null==(d=null==t?void 0:t.proxy)?void 0:d.$t("management.message4")})):o.success({message:null==(u=null==t?void 0:t.proxy)?void 0:u.$t("management.message5")}),await l.dispatch("DIR_IMAGE_LIST_REMOVE",e),await l.dispatch("UPLOAD_IMG_LIST_REMOVE",e.uuid),n(!0)):n(!1)}))},b=async()=>{var e,i,c,h,f;const{imageObj:_}=a;if(!m.value)return o.error({message:null==(e=null==t?void 0:t.proxy)?void 0:e.$t("management.message1")}),void(null==(i=u.value)||i.focus());if(m.value===Na(_.name))return o.error({message:null==(c=null==t?void 0:t.proxy)?void 0:c.$t("management.message2")}),void(g.value=!1);const b=async()=>{var e,a,i;const c=r.service({lock:!0,text:null==(e=null==t?void 0:t.proxy)?void 0:e.$t("management.loadingTxt2")}),u=Ma(_.name),p=xa(),h=`${m.value}${s.imageName.autoAddHash?`.${p}`:""}.${u}`;let f;var b;if(f=u.includes("svg")?await(b=d.value||"",new Promise((e=>{Ge({baseURL:"",url:b,method:"GET",responseType:"blob"}).then((a=>{if(a){const t=new FileReader;t.onload=()=>{const a=t.result;e(a)},t.onerror=()=>{e(null)},t.readAsDataURL(a)}else e(null)})).catch((()=>{e(null)}))}))):await function(e,a){const t=document.createElement("canvas"),l=t.getContext("2d"),i=new Image;return i.crossOrigin="Anonymous",i.src=e,new Promise((e=>{i.onload=()=>{const{width:n}=i,{height:s}=i;t.width=n,t.height=s,null==l||l.drawImage(i,0,0,n,s);const o=t.toDataURL(`image/${a}`);e(o)}}))}(d.value||"",u),f){const e={uuid:"",base64:{originalBase64:"",watermarkBase64:null,compressBase64:null},fileInfo:{originalFile:null,watermarkFile:null,compressFile:null},filename:{hash:"",suffix:"",name:"",prefixName:"",final:"",initName:"",newName:"",isAddHash:!0,isRename:!1,isPrefixNaming:!1,isTimestampNaming:!1},beforeUploadStatus:{watermarking:!1,compressing:!1},uploadStatus:{progress:0,uploading:!1},reUploadInfo:{dir:"",path:"",isReUpload:!1}};e.uuid=p,e.base64.originalBase64=f,e.filename.final=h,e.reUploadInfo.isReUpload=!0,e.reUploadInfo.dir=_.dir;let i=h;"/"!==_.dir&&(i=`${_.dir}/${h}`),e.reUploadInfo.path=i;await Ft(n,e)?(m.value="",await v(_,!0),await l.dispatch("UPLOAD_IMG_LIST_REMOVE",_.uuid)):o.error({message:null==(a=null==t?void 0:t.proxy)?void 0:a.$t("management.message3")})}else o.error({message:null==(i=null==t?void 0:t.proxy)?void 0:i.$t("management.message3")});c.close(),g.value=!1};p.confirm(null==(h=null==t?void 0:t.proxy)?void 0:h.$t("management.renameTips",{name:m.value}),null==(f=null==t?void 0:t.proxy)?void 0:f.$t("tips"),{type:"info"}).then((()=>{b()})).catch((()=>{g.value=!1}))},k=e=>{f.value=e};return(a,i)=>{const n=te,s=A,o=Wl,r=M,_=Wt,T=oe,D=Fl,E=L,O=Al,R=re,N=ce,U=de,z=V;return G((y(),x("div",{class:Q(["image-card",{checked:e.imageObj.checked}]),"element-loading-text":a.$t("management.loadingTxt3"),onMouseenter:i[6]||(i[6]=e=>h.value=!0),onMouseleave:i[7]||(i[7]=e=>h.value=!1)},[S("div",Kl,[$(n,{src:d.value,fit:"cover",loading:"lazy",lazy:"","hide-on-click-modal":!0,"preview-src-list":[d.value]},null,8,["src","preview-src-list"])]),S("div",Jl,[S("div",Yl,[g.value?(y(),x("div",Ql,[$(s,{size:"small",class:"rename-input",modelValue:m.value,"onUpdate:modelValue":i[0]||(i[0]=e=>m.value=e),clearable:"",ref_key:"renameInputRef",ref:u,maxlength:I(18)},null,8,["modelValue","maxlength"]),$(T,{size:"small"},{default:C((()=>[$(r,{onClick:i[1]||(i[1]=e=>g.value=!1)},{default:C((()=>[$(o)])),_:1}),$(r,{onClick:H(b,["prevent"])},{default:C((()=>[$(_)])),_:1},8,["onClick"])])),_:1})])):(y(),x("div",Zl,W(e.imageObj.name),1))])]),S("div",ei,[$(D,{"img-obj":e.imageObj},null,8,["img-obj"])]),G(S("div",ai,[S("div",ti,[c.value?(y(),x("div",{key:0,class:Q([e.imageObj.checked?"picked-btn":"pick-btn","operation-btn"]),onClick:i[2]||(i[2]=a=>{return(t=e.imageObj).checked=!t.checked,void l.commit("IMAGE_CARD",{imageObj:t});var t})},[e.imageObj.checked?(y(),w(E,{key:0},{default:C((()=>[$(_)])),_:1})):F("",!0)],2)):F("",!0)]),S("div",li,[$(U,{size:"default",trigger:"click",onVisibleChange:k},{dropdown:C((()=>[$(N,null,{default:C((()=>[$(R,{onClick:i[3]||(i[3]=a=>{return l=e.imageObj,void p.confirm(`\n
${null==(i=null==t?void 0:t.proxy)?void 0:i.$t("management.delTips")}:
\n ${l.name}\n `,null==(n=null==t?void 0:t.proxy)?void 0:n.$t("tips"),{dangerouslyUseHTMLString:!0,type:"warning"}).then((()=>{v(l)})).catch((()=>{}));var l,i,n})},{default:C((()=>[X(W(a.$t("upload.delete")),1)])),_:1}),$(R,{onClick:i[4]||(i[4]=H((a=>(async e=>{g.value=!0,m.value=Na(e.name),setTimeout((()=>{var e;null==(e=u.value)||e.focus()}),100)})(e.imageObj)),["self"]))},{default:C((()=>[X(W(a.$t("upload.rename")),1)])),_:1}),$(R,{onClick:i[5]||(i[5]=a=>{return l=e.imageObj,void p.confirm(`\n
${null==(i=null==t?void 0:t.proxy)?void 0:i.$t("management.imageName")}:${l.name}
\n
${null==(n=null==t?void 0:t.proxy)?void 0:n.$t("management.imageSize")}:${za(l.size)} KB
\n `,null==(s=null==t?void 0:t.proxy)?void 0:s.$t("management.property"),{showCancelButton:!1,showConfirmButton:!1,dangerouslyUseHTMLString:!0,type:"info"});var l,i,n,s})},{default:C((()=>[X(W(a.$t("management.property")),1)])),_:1})])),_:1})])),default:C((()=>[S("div",ii,[$(E,null,{default:C((()=>[$(O)])),_:1})])])),_:1})])],512),[[ue,h.value||f.value||e.imageObj.checked]])],42,ql)),[[z,e.imageObj.deleting]])}}}),[["__scopeId","data-v-ac323a38"]]);const si=e=>(Z("data-v-f3498e7c"),e=e(),ee(),e),oi=si((()=>S("div",{class:"icon"},[S("svg",{t:"1639999626518",class:"icon",viewBox:"0 0 1228 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3575",width:"200",height:"200"},[S("path",{d:"M1196.987733 212.5824v540.0576c0 39.594667-34.474667 71.3728-76.765866 71.3728H323.242667c-51.780267 0-88.746667-46.762667-73.250134-92.808533l126.737067-375.808H70.417067C31.675733 355.362133 0 326.4512 0 291.089067V98.372267C0 63.044267 31.675733 34.0992 70.417067 34.0992h378.811733c26.7264 0 51.029333 13.9264 63.010133 35.703467l39.048534 71.406933H1120.256c42.257067 0 76.8 32.119467 76.8 71.3728",fill:"#5398DF","p-id":"3576"}),S("path",{d:"M1128.721067 997.853867H68.266667a68.266667 68.266667 0 0 1-68.266667-68.266667V280.3712a68.266667 68.266667 0 0 1 68.266667-68.266667h1060.4544a68.266667 68.266667 0 0 1 68.266666 68.266667V929.5872a68.266667 68.266667 0 0 1-68.266666 68.266667",fill:"#85BCFF","p-id":"3577"})])],-1))),ri={key:1,class:"text"},ci={key:2,class:"icon"},di=[si((()=>S("svg",{t:"1640264285200",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"29312",width:"200",height:"200"},[S("path",{d:"M426.666667 384V213.333333l-298.666667 298.666667 298.666667 298.666667v-174.933334c213.333333 0 362.666667 68.266667 469.333333 217.6-42.666667-213.333333-170.666667-426.666667-469.333333-469.333333z","p-id":"29313",fill:"#85BCFF"})],-1)))],ui={key:3,class:"text"};var mi=ht(v({__name:"folder-card",props:{folderObj:{type:Object,default:()=>{}},mode:{type:String,default:"dir"}},setup(e){const a=at(),t=_((()=>a.getters.getUserConfigInfo)).value,l=e,i=()=>{const{folderObj:e,mode:i}=l;if("back"===i){const e=t.viewDir;if("/"===e)return;const a=e.split("/");1===a.length?t.viewDir="/":a.length>1&&(a.length-=1,t.viewDir=a.join("/"))}"dir"===i&&(t.viewDir=e.dirPath),a.dispatch("USER_CONFIG_INFO_PERSIST")};return(a,t)=>{const l=T;return y(),x("div",{class:"folder-card",onDblclick:i},["dir"===e.mode?(y(),w(l,{key:0,content:a.$t("management.toNextDir"),placement:"top"},{default:C((()=>[oi])),_:1},8,["content"])):F("",!0),"dir"===e.mode?(y(),x("div",ri,W(e.folderObj.dir),1)):F("",!0),"back"===e.mode?(y(),x("div",ci,di)):F("",!0),"back"===e.mode?(y(),x("div",ui,W(a.$t("management.back")),1)):F("",!0)],32)}}}),[["__scopeId","data-v-f3498e7c"]]);const gi={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},pi=[S("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1)];var hi={name:"ep-delete",render:function(e,a){return y(),x("svg",gi,[...pi])}};const fi={key:0,class:"selector-wrapper"},vi={class:"selector-left-box"},_i={class:"item"},bi={class:"selector-right-box"};var yi=ht(v({__name:"image-selector",props:{currentDirImageList:{type:Array,default:()=>[]}},emits:["update:initImageList"],setup(e){const a=e,t=at(),l=E(!1),i=D(),n=_((()=>t.getters.getImageCardCheckedArr)),s=_((()=>t.getters.getUserConfigInfo)).value,r=_((()=>t.getters.getUserSettings)).value,c=_((()=>n.value.length||0));O((()=>c.value),(e=>{const t=a.currentDirImageList.length;l.value=e===t}));const d=()=>{Ha(n.value,s,r)},u=()=>{a.currentDirImageList.forEach((e=>{e.checked&&(e.checked=!1)}))},m=()=>{var e,a,t,l;(null==(e=n.value)?void 0:e.length)>0&&p.confirm(null==(t=null==i?void 0:i.proxy)?void 0:t.$t("management.delTips2",{total:null==(a=n.value)?void 0:a.length}),null==(l=null==i?void 0:i.proxy)?void 0:l.$t("tips"),{type:"warning"}).then((async()=>{var e,a,t;const l=await Oa(n.value,s);l===aa.deleted&&o.success({message:null==(e=null==i?void 0:i.proxy)?void 0:e.$t("management.message5")}),l===aa.allDeleted&&o.success({message:null==(a=null==i?void 0:i.proxy)?void 0:a.$t("management.message6")}),l===aa.deleteFail&&o.error({message:null==(t=null==i?void 0:i.proxy)?void 0:t.$t("management.message7")})})).catch((()=>{}))},g=()=>{let e=[];a.currentDirImageList.forEach((e=>{e.checked=l.value})),e=a.currentDirImageList,t.commit("REPLACE_IMAGE_CARD",{checkedImgArr:e})};return R((()=>{g()})),(e,a)=>{const t=le,i=Ul,n=L,s=T,o=hi;return c.value?(y(),x("div",fi,[S("div",vi,[$(t,{label:l.value?e.$t("management.deselectAll"):e.$t("management.selectAll"),modelValue:l.value,"onUpdate:modelValue":a[0]||(a[0]=e=>l.value=e),onChange:g},null,8,["label","modelValue"]),S("div",_i,W(e.$t("management.selectTotal",{total:c.value})),1),S("div",{class:"item cancel-select-btn",onClick:u},W(e.$t("management.unselect")),1)]),S("div",bi,[$(s,{placement:"top",content:e.$t("management.batchCopy")},{default:C((()=>[$(n,{class:"btn-icon",onClick:d},{default:C((()=>[$(i)])),_:1})])),_:1},8,["content"]),$(s,{placement:"top",content:e.$t("management.batchDelete")},{default:C((()=>[$(n,{class:"btn-icon",onClick:m},{default:C((()=>[$(o)])),_:1})])),_:1},8,["content"])])])):F("",!0)}}}),[["__scopeId","data-v-0ff830e2"]]);const wi={class:"page-container management-page-container"},ki={class:"content-container"},Ii={class:"top"},xi={class:"left"},Si={class:"right flex-start"},Li=["element-loading-text"],Ti={key:0,class:"image-management-item"},$i=(e=>(Z("data-v-400d1d22"),e=e(),ee(),e))((()=>S("div",{style:{width:"100%"}},null,-1)));var Ci=ht(v({__name:"imgs-management",setup(e){const a=at(),t=ie(),l=_((()=>a.getters.getUserConfigInfo)).value,i=_((()=>a.getters.getUserLoginStatus)).value,n=_((()=>a.getters.getDirObject)).value,s=E((new Date).getTime()),o=E(!1),r=E([]),c=E([]),d=E(!1);async function u(e){o.value=!0;const t=Je(e,n);if(t){const i=Ye(0,t,"dir"),n=Ye(0,t,"image");i.length||n.length?(r.value=i,c.value=n,a.commit("REPLACE_IMAGE_CARD",{checkedImgArr:c.value})):await lt(l,e)}else await lt(l,e);o.value=!1}async function m(){const{viewDir:e}=l;await a.dispatch("DIR_IMAGE_LIST_INIT_DIR",e),o.value=!0,await lt(l,e),o.value=!1}return R((()=>{!async function(){const{selectedDir:e,viewDir:a,dirMode:t}=l;""===a&&(t!==oa.newDir&&t!==oa.autoDir||Je(e,n)||(l.selectedDir="/",l.dirMode="rootDir"),l.selectedDir?l.viewDir=l.selectedDir:l.viewDir="/"),n.imageList.length||n.childrenDirs.length?await u(l.viewDir):await lt(l,l.viewDir)}()})),O((()=>i),(e=>{!1===e&&t.push("/config")})),O((()=>l.viewDir),(async e=>{await u(e),s.value+=1}),{deep:!0}),O((()=>n),(e=>{const{viewDir:t}=l,i=Je(t,e);i&&(r.value=Ye(0,i,"dir"),c.value=Ye(0,i,"image"),a.commit("REPLACE_IMAGE_CARD",{checkedImgArr:c.value}))}),{deep:!0}),O((()=>c.value),(e=>{d.value=e.filter((e=>e.checked)).length>0}),{deep:!0}),(e,a)=>{const t=pt,i=L,n=T,u=me("contextmenu"),g=V;return y(),x("div",wi,[S("div",ki,[S("div",Ii,[S("div",xi,[$(Et,{"bar-type":"management"})]),S("div",Si,[$(n,{placement:"top",content:e.$t("management.reload",{dir:I(l).viewDir})},{default:C((()=>[$(i,{class:"btn-icon",onClick:H(m,["stop"])},{default:C((()=>[$(t)])),_:1},8,["onClick"])])),_:1},8,["content"])])]),G((y(),x("div",{class:"bottom","element-loading-text":e.$t("management.loadingTxt1")},[c.value.length?(y(),w(yi,{currentDirImageList:c.value,"onUpdate:initImageList":c.value,key:s.value},null,8,["currentDirImageList","onUpdate:initImageList"])):F("",!0),G((y(),x("ul",{class:"image-management-list",style:k({height:d.value?"calc(100% - 50rem)":"100%"})},["/"!==I(l).viewDir?(y(),x("li",Ti,[$(mi,{mode:"back"})])):F("",!0),(y(!0),x(q,null,K(r.value,((e,a)=>G((y(),x("li",{class:"image-management-item",key:"folder-card-"+e.dir+"-"+a},[$(mi,{"folder-obj":e},null,8,["folder-obj"])])),[[u,{type:I(va).childDir,dir:e.dir}]]))),128)),$i,(y(!0),x(q,null,K(c.value,((e,a)=>G((y(),x("li",{class:"image-management-item image",key:"image-card-"+a},[$(ni,{"image-obj":e},null,8,["image-obj"])])),[[u,{type:I(va).img,img:e}]]))),128))],4)),[[u,{type:I(va).parentDir}]])],8,Li)),[[g,o.value]])])])}}}),[["__scopeId","data-v-400d1d22"]]);const Di={class:"card-header"},Ei=["onFocusout"],Oi={style:{"margin-top":"20px"}};var Ri=ht(v({__name:"image-link-rule-config",setup(e){const a=D(),t=_((()=>Za.getters.getUserSettings)).value,l=E(),i=ae({id:"",name:"",rule:"",editable:!0});return(e,n)=>{const s=ge,o=hi,r=M,c=pe,d=he,u=A,m=N,g=U,h=fe;return y(),w(h,null,{header:C((()=>[S("div",Di,[S("span",null,W(e.$t("settings.link_rule.card_title")),1)])])),default:C((()=>[$(c,{data:I(t).imageLinkType.presetList,style:{width:"100%"}},{default:C((()=>[$(s,{prop:"name",label:e.$t("settings.link_rule.card_table_col_title_1"),width:"120"},null,8,["label"]),$(s,{label:e.$t("settings.link_rule.card_table_col_title_2")},{default:C((e=>[S("div",{contenteditable:!0,onFocusout:a=>{return t=a.target.innerHTML,l=e.row.id,void Za.dispatch("UPDATE_IMAGE_LINK_TYPE_RULE",{rule:t,id:l});var t,l}},W(e.row.rule),41,Ei)])),_:1},8,["label"]),$(s,{label:e.$t("settings.link_rule.card_table_col_title_3"),width:"80",align:"center"},{default:C((e=>[$(r,{link:"",size:"small",disabled:!e.row.editable,onClick:t=>{return l=e.row,void p.confirm(`${null==(i=null==a?void 0:a.proxy)?void 0:i.$t("settings.link_format.delete_tips")}:${l.name}`,null==(n=null==a?void 0:a.proxy)?void 0:n.$t("tips"),{dangerouslyUseHTMLString:!0,type:"warning"}).then((()=>{Za.dispatch("DEL_IMAGE_LINK_TYPE_RULE",l.id)})).catch((()=>{}));var l,i,n}},{default:C((()=>[$(o)])),_:2},1032,["disabled","onClick"])])),_:1},8,["label"])])),_:1},8,["data"]),$(d),S("div",Oi,[$(g,{ref_key:"formRef",ref:l,"label-position":"left",model:i,"label-width":"120px",size:"default"},{default:C((()=>[$(m,{label:e.$t("settings.link_rule.input_name_1"),prop:"name",rules:[{required:!0,message:e.$t("settings.link_rule.input_name_1_rule")}]},{default:C((()=>[$(u,{modelValue:i.name,"onUpdate:modelValue":n[0]||(n[0]=e=>i.name=e),type:"text"},null,8,["modelValue"])])),_:1},8,["label","rules"]),$(m,{label:e.$t("settings.link_rule.input_name_2"),prop:"rule",rules:[{required:!0,message:e.$t("settings.link_rule.input_name_2_rule")}]},{default:C((()=>[$(u,{modelValue:i.rule,"onUpdate:modelValue":n[1]||(n[1]=e=>i.rule=e),type:"text"},null,8,["modelValue"])])),_:1},8,["label","rules"]),$(m,null,{default:C((()=>[$(r,{type:"primary",disabled:!i.name||!i.rule,onClick:n[2]||(n[2]=e=>{var a;(a=l.value)&&a.validate((e=>{e&&(i.id=xa(),Za.dispatch("ADD_IMAGE_LINK_TYPE_RULE",JSON.parse(JSON.stringify(i))))}))})},{default:C((()=>[X(W(e.$t("settings.link_rule.btn_name_1")),1)])),_:1},8,["disabled"])])),_:1})])),_:1},8,["model"])])])),_:1})}}}),[["__scopeId","data-v-2a875730"]]);const Ai={class:"compress-config-box"},Ni={class:"img-encoder-title"},Mi={class:"desc"},Ui={class:"desc"},zi={class:"desc"};var Pi=ht(v({__name:"compress-config-box",props:{disabled:{type:Boolean,default:!1},usageScenario:{type:String,default:"toolbox"}},emits:["encoder"],setup(e,{expose:a,emit:t}){const l=_((()=>Za.getters.getUserSettings)).value,i=E(la.webP),n=t,s=e,o=e=>{n("encoder",e)};return R((()=>{"imageHosting"===s.usageScenario&&(i.value=l.compress.encoder),n("encoder",i.value)})),a({reset:()=>{i.value=la.webP}}),(a,t)=>{const l=j,n=B;return y(),x("div",Ai,[S("div",Ni,W(a.$t("settings.img_compress.radio_group_title")),1),$(n,{disabled:e.disabled,class:"img-encoder-group",modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=e=>i.value=e),onChange:o},{default:C((()=>[$(l,{label:I(la).webP},{default:C((()=>[X(W(I(la).webP)+" ",1),S("span",Mi,W(a.$t("settings.img_compress.radio_1_desc")),1)])),_:1},8,["label"]),$(l,{label:I(la).mozJPEG},{default:C((()=>[X(W(I(la).mozJPEG)+" ",1),S("span",Ui,W(a.$t("settings.img_compress.radio_2_desc")),1)])),_:1},8,["label"]),$(l,{label:I(la).avif},{default:C((()=>[X(W(I(la).avif)+" ",1),S("span",zi,W(a.$t("settings.img_compress.radio_3_desc")),1)])),_:1},8,["label"])])),_:1},8,["disabled","modelValue"])])}}}),[["__scopeId","data-v-186c475a"]]);const ji=v({__name:"watermark-config-box",props:{isTool:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["watermarkConfig"],setup(e,{emit:a}){const t=ae({text:"",fontSize:0,position:ua.rightBottom,textColor:"",opacity:0}),l=a,i=()=>{l("watermarkConfig",t)};return R((()=>{const e=Za.getters.getUserSettings.watermark;t.text=e.text,t.textColor=e.textColor,t.fontSize=e.fontSize,t.position=e.position,t.opacity=e.opacity,l("watermarkConfig",t)})),(a,l)=>{const n=A,s=N,o=ve,r=_e,c=be,d=j,u=B,m=ye,g=U;return y(),w(g,{class:"watermark-config-form","label-position":"left","label-width":"90rem",disabled:e.disabled},{default:C((()=>[$(m,null,{default:C((()=>[$(o,{span:24},{default:C((()=>[$(s,{label:a.$t("settings.img_watermark.text")},{default:C((()=>[$(n,{modelValue:t.text,"onUpdate:modelValue":l[0]||(l[0]=e=>t.text=e),placeholder:a.$t("settings.img_watermark.text_input_placeholder"),clearable:"",maxlength:"20",onInput:i},null,8,["modelValue","placeholder"])])),_:1},8,["label"])])),_:1}),$(o,{span:e.isTool?10:24},{default:C((()=>[$(s,{label:a.$t("settings.img_watermark.size")},{default:C((()=>[$(r,{modelValue:t.fontSize,"onUpdate:modelValue":l[1]||(l[1]=e=>t.fontSize=e),min:40,max:80,step:2,onChange:i},null,8,["modelValue"])])),_:1},8,["label"])])),_:1},8,["span"]),$(o,{span:e.isTool?14:24},{default:C((()=>[$(s,{label:a.$t("settings.img_watermark.color")},{default:C((()=>[$(c,{modelValue:t.textColor,"onUpdate:modelValue":l[2]||(l[2]=e=>t.textColor=e),onChange:i},null,8,["modelValue"])])),_:1},8,["label"])])),_:1},8,["span"]),$(o,{span:e.isTool?10:24},{default:C((()=>[$(s,{label:a.$t("settings.img_watermark.opacity")},{default:C((()=>[$(r,{modelValue:t.opacity,"onUpdate:modelValue":l[3]||(l[3]=e=>t.opacity=e),precision:1,step:.1,min:.1,max:.9,onChange:i},null,8,["modelValue"])])),_:1},8,["label"])])),_:1},8,["span"]),$(o,{span:e.isTool?14:24},{default:C((()=>[$(s,{label:a.$t("settings.img_watermark.position")},{default:C((()=>[$(u,{modelValue:t.position,"onUpdate:modelValue":l[4]||(l[4]=e=>t.position=e),onChange:i},{default:C((()=>[$(d,{label:I(ua).leftTop},{default:C((()=>[X(W(a.$t("settings.img_watermark.position_1")),1)])),_:1},8,["label"]),$(d,{label:I(ua).leftBottom},{default:C((()=>[X(W(a.$t("settings.img_watermark.position_2")),1)])),_:1},8,["label"]),$(d,{label:I(ua).rightTop},{default:C((()=>[X(W(a.$t("settings.img_watermark.position_3")),1)])),_:1},8,["label"]),$(d,{label:I(ua).rightBottom},{default:C((()=>[X(W(a.$t("settings.img_watermark.position_4")),1)])),_:1},8,["label"])])),_:1},8,["modelValue"])])),_:1},8,["label"])])),_:1},8,["span"])])),_:1})])),_:1},8,["disabled"])}}});const Bi={class:"page-container settings-page-container"},Vi={class:"setting-list",style:{"margin-top":"10rem"}},Gi={class:"setting-item has-desc"},Fi={class:"desc"},Hi={class:"setting-item has-desc"},Xi={class:"desc"},Wi={key:0,class:"setting-item has-desc"},qi={class:"setting-item has-desc"},Ki={class:"setting-list"},Ji={class:"setting-item has-desc"},Yi={class:"desc"},Qi={class:"setting-item"},Zi={class:"setting-list"},en={class:"setting-item has-desc"},an={class:"desc"},tn={class:"setting-item"},ln={class:"setting-list"},nn={class:"setting-item cdn"},sn={class:"left"},on={class:"right"},rn={class:"setting-item",style:{"margin-top":"20rem"}},cn={class:"setting-list"},dn={class:"setting-item has-desc"},un={class:"desc"},mn={class:"setting-item"},gn={class:"left"},pn={class:"right"},hn={class:"setting-list"},fn={class:"setting-item"};var vn=ht(v({__name:"my-settings",setup(e){const a=_((()=>Za.getters.getUserSettings)).value,t=()=>{Za.dispatch("USER_SETTINGS_PERSIST")},l=()=>{Za.dispatch("SET_USER_SETTINGS",n({},a))},i=e=>{a.watermark.text=e.text,a.watermark.textColor=e.textColor,a.watermark.opacity=e.opacity,a.watermark.position=e.position,a.watermark.fontSize=e.fontSize,t()};return O((()=>a.imageName),(e=>{e.autoTimestampNaming&&(a.imageName.autoAddHash=!1,a.imageName.prefixNaming.enable=!1),t()}),{immediate:!0,deep:!0}),(e,n)=>{const s=we,o=A,r=ke,c=ji,d=fe,u=Pi,m=z,g=P,p=Ri,h=Ie;return y(),x("div",Bi,[$(h,null,{default:C((()=>[$(r,{title:e.$t("settings.img_name.title"),name:"1"},{default:C((()=>[S("ul",Vi,[S("li",Gi,[$(s,{modelValue:I(a).imageName.autoAddHash,"onUpdate:modelValue":n[0]||(n[0]=e=>I(a).imageName.autoAddHash=e),onChange:t,"active-text":e.$t("settings.img_name.hash_switch_name")},null,8,["modelValue","active-text"]),S("span",Fi,W(e.$t("settings.img_name.hash_switch_desc")),1)]),S("li",Hi,[$(s,{modelValue:I(a).imageName.prefixNaming.enable,"onUpdate:modelValue":n[1]||(n[1]=e=>I(a).imageName.prefixNaming.enable=e),onChange:t,"active-text":e.$t("settings.img_name.prefix_switch_name")},null,8,["modelValue","active-text"]),S("span",Xi,W(e.$t("settings.img_name.prefix_switch_desc")),1)]),I(a).imageName.prefixNaming.enable?(y(),x("li",Wi,[$(o,{class:"prefix-input",modelValue:I(a).imageName.prefixNaming.prefix,"onUpdate:modelValue":n[2]||(n[2]=e=>I(a).imageName.prefixNaming.prefix=e),placeholder:e.$t("settings.img_name.prefix_input_placeholder"),onInput:t,clearable:"",autofocus:""},null,8,["modelValue","placeholder"])])):F("",!0),S("li",qi,[$(s,{modelValue:I(a).imageName.autoTimestampNaming,"onUpdate:modelValue":n[3]||(n[3]=e=>I(a).imageName.autoTimestampNaming=e),onChange:t,"active-text":e.$t("settings.img_name.timestamp_switch_name")},null,8,["modelValue","active-text"])])])])),_:1},8,["title"]),$(r,{title:e.$t("settings.img_watermark.title"),name:"2"},{default:C((()=>[S("ul",Ki,[S("li",Ji,[$(s,{modelValue:I(a).watermark.enable,"onUpdate:modelValue":n[4]||(n[4]=e=>I(a).watermark.enable=e),onChange:t,"active-text":e.$t("settings.img_watermark.switch_name")},null,8,["modelValue","active-text"]),S("span",Yi,W(e.$t("settings.img_watermark.switch_desc")),1)]),S("li",Qi,[$(d,{class:"settings-item-card"},{default:C((()=>[$(c,{disabled:!I(a).watermark.enable,onWatermarkConfig:i},null,8,["disabled"])])),_:1})])])])),_:1},8,["title"]),$(r,{title:e.$t("settings.img_compress.title"),name:"3"},{default:C((()=>[S("ul",Zi,[S("li",en,[$(s,{modelValue:I(a).compress.enable,"onUpdate:modelValue":n[5]||(n[5]=e=>I(a).compress.enable=e),onChange:t,"active-text":e.$t("settings.img_compress.switch_name")},null,8,["modelValue","active-text"]),S("span",an,W(e.$t("settings.img_compress.switch_desc")),1)]),S("li",tn,[$(d,{class:"settings-item-card"},{default:C((()=>[$(u,{ref:"compressConfigBoxRef","usage-scenario":"imageHosting",disabled:!I(a).compress.enable,onEncoder:n[6]||(n[6]=e=>{I(a).compress.encoder=e,t()})},null,8,["disabled"])])),_:1})])])])),_:1},8,["title"]),$(r,{title:e.$t("settings.link_rule.title"),name:"4"},{default:C((()=>[S("ul",ln,[S("li",nn,[X(W(e.$t("settings.link_rule.select_title"))+": ",1),$(g,{modelValue:I(a).imageLinkType.selected,"onUpdate:modelValue":n[7]||(n[7]=e=>I(a).imageLinkType.selected=e),onChange:l},{default:C((()=>[(y(!0),x(q,null,K(I(a).imageLinkType.presetList,(e=>(y(),w(m,{key:e.name+"-"+e.id,label:e.name,value:e.name,class:"image-link-type-rule-option"},{default:C((()=>[S("span",sn,W(e.name),1),S("span",on,W(e.rule),1)])),_:2},1032,["label","value"])))),128))])),_:1},8,["modelValue"])]),S("li",rn,[$(p)])])])),_:1},8,["title"]),$(r,{title:e.$t("settings.link_format.title"),name:"5"},{default:C((()=>[S("ul",cn,[S("li",dn,[$(s,{modelValue:I(a).imageLinkFormat.enable,"onUpdate:modelValue":n[8]||(n[8]=e=>I(a).imageLinkFormat.enable=e),onChange:t,"active-text":e.$t("settings.link_format.switch_name")},null,8,["modelValue","active-text"]),S("span",un,W(e.$t("settings.link_format.switch_desc",{type:I(a).imageLinkFormat.selected})),1)]),S("li",mn,[X(W(e.$t("settings.link_format.select_title"))+": ",1),$(g,{modelValue:I(a).imageLinkFormat.selected,"onUpdate:modelValue":n[9]||(n[9]=e=>I(a).imageLinkFormat.selected=e),onChange:l},{default:C((()=>[(y(!0),x(q,null,K(I(a).imageLinkFormat.presetList,((e,a)=>(y(),w(m,{key:a+e.name,label:e.name,value:e.name,class:"image-link-type-rule-option"},{default:C((()=>[S("span",gn,W(e.name),1),S("span",pn,W(e.format),1)])),_:2},1032,["label","value"])))),128))])),_:1},8,["modelValue"])])])])),_:1},8,["title"]),$(r,{title:e.$t("settings.theme.title"),name:"6"},{default:C((()=>[S("ul",hn,[S("li",fn,[X(W(e.$t("header.theme"))+": ",1),$(g,{modelValue:I(a).theme.mode,"onUpdate:modelValue":n[10]||(n[10]=e=>I(a).theme.mode=e),onChange:l},{default:C((()=>[$(m,{label:e.$t("settings.theme.system"),value:I(ga).system},null,8,["label","value"]),$(m,{label:e.$t("settings.theme.light"),value:I(ga).light},null,8,["label","value"]),$(m,{label:e.$t("settings.theme.dark"),value:I(ga).dark},null,8,["label","value"])])),_:1},8,["modelValue"])])])])),_:1},8,["title"])])),_:1})])}}}),[["__scopeId","data-v-4c83b394"]]);const _n={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},bn=[S("path",{fill:"currentColor",d:"M512 64h64v192h-64V64zm0 576h64v192h-64V640zM160 480v-64h192v64H160zm576 0v-64h192v64H736zM249.856 199.04l45.248-45.184L430.848 289.6L385.6 334.848L249.856 199.104zM657.152 606.4l45.248-45.248l135.744 135.744l-45.248 45.248L657.152 606.4zM114.048 923.2L68.8 877.952l316.8-316.8l45.248 45.248l-316.8 316.8zM702.4 334.848L657.152 289.6l135.744-135.744l45.248 45.248L702.4 334.848z"},null,-1)];var yn={name:"ep-magic-stick",render:function(e,a){return y(),x("svg",_n,[...bn])}};const wn={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},kn=[S("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144l45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744l294.144-294.208z"},null,-1)];var In={name:"ep-paperclip",render:function(e,a){return y(),x("svg",wn,[...kn])}};const xn={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Sn=[S("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32H160zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96z"},null,-1),S("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128a64 64 0 0 1 0-128zM288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32zm0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1)];var Ln={name:"ep-postcard",render:function(e,a){return y(),x("svg",xn,[...Sn])}};const Tn=xe([{name:"toolbox.tool_1",desc:"toolbox.tool_1_desc",icon:yn,uuid:xa(),path:"/compress"},{name:"toolbox.tool_2",desc:"toolbox.tool_2_desc",icon:In,uuid:xa(),path:"/base64"},{name:"toolbox.tool_3",desc:"toolbox.tool_3_desc",icon:Ln,uuid:xa(),path:"/watermark"}]);const $n={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Cn=[S("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512L340.864 831.872a30.592 30.592 0 0 0 0 42.752a29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1)];var Dn={name:"ep-arrow-right",render:function(e,a){return y(),x("svg",$n,[...Cn])}};const En={class:"page-container"},On={key:0,class:"tool-panel"},Rn={class:"panel-header"},An={class:"panel-body"},Nn={key:1,class:"toolbox"},Mn=["onClick"],Un={class:"top"},zn={class:"left flex-center"},Pn={class:"right"},jn={class:"bottom"};var Bn=ht(v({__name:"picx-toolbox",setup(e){const a=xe(Dn),t=ie(),l=E("/toolbox"),i=E(!1),s=E({path:"",icon:"",name:"",desc:"",uuid:""}),o=e=>{i.value=!0,s.value=n({},e),Za.dispatch("TOOLBOX_IMG_LIST_RESET"),t.push(`${l.value}${e.path}`)};O((()=>t.currentRoute.value),(e=>{e.path===l.value&&(i.value=!1)}),{deep:!0});return R((()=>{t.isReady().then((()=>{const e=t.currentRoute.value.path;if(l.value!==e){const a=e.substring(e.lastIndexOf("/")),t=Tn.value.find((e=>e.path===a));t&&o(t)}}))})),(e,t)=>{const n=Se,r=Le,c=Te("router-view"),d=L;return y(),x("div",En,[i.value?(y(),x("div",On,[S("div",Rn,[$(r,{"separator-icon":a.value},{default:C((()=>[$(n,{to:{path:l.value}},{default:C((()=>[X(W(e.$t("nav.toolbox")),1)])),_:1},8,["to"]),$(n,null,{default:C((()=>[X(W(e.$t(s.value.name)),1)])),_:1})])),_:1},8,["separator-icon"])]),S("div",An,[$(c)])])):(y(),x("ul",Nn,[(y(!0),x(q,null,K(I(Tn),(a=>(y(),x("li",{class:"tool-item",key:a.uuid,onClick:e=>o(a)},[S("div",Un,[S("div",zn,[$(d,{size:30},{default:C((()=>[(y(),w($e(a.icon)))])),_:2},1024)]),S("div",Pn,W(e.$t(a.name)),1)]),S("div",jn,W(e.$t(a.desc)),1)],8,Mn)))),128))]))])}}}),[["__scopeId","data-v-06af4a8d"]]);const Vn={class:"page-container feedback-page-container"},Gn={class:"help-info-item description"},Fn={class:"help-info-item"},Hn={class:"help-info-item"},Xn={class:"help-info-item"},Wn={class:"help-info-item"},qn={class:"help-info-item",style:{"margin-bottom":"2rem"}},Kn={class:"help-info-item img"},Jn={class:"help-info-item red-text"};var Yn=ht(v({__name:"feedback-info",setup(e){const a=_((()=>"win"===Xa()?"Ctrl + D":"Command + D"));return(e,t)=>{const l=Ce,i=te;return y(),x("div",Vn,[S("div",Gn,"🏞️ "+W(e.$t("feedback.text_1")),1),S("div",Fn,[X(" 🌍 "+W(e.$t("feedback.text_2"))+" "+W(e.$t("shortcut_key"))+":",1),S("code",null,W(a.value),1)]),S("div",Hn,[X(" 🦁 "+W(e.$t("author"))+": ",1),$(l,{type:"primary",href:"https://xpoet.cn/",target:"_blank"},{default:C((()=>[X("@XPoet")])),_:1})]),S("div",Xn,[X(" 🌀 "+W(e.$t("repo"))+": ",1),$(l,{type:"primary",href:"https://github.com/XPoet/picx",target:"_blank"},{default:C((()=>[X(" https://github.com/XPoet/picx ")])),_:1})]),S("div",Wn,[X(" 📖 "+W(e.$t("document"))+": ",1),$(l,{type:"primary",href:"https://picx-docs.xpoet.cn",target:"_blank"},{default:C((()=>[X(" https://picx-docs.xpoet.cn ")])),_:1})]),S("div",qn,"🎁 "+W(e.$t("feedback.text_3")),1),S("div",Kn,[$(i,{style:{width:"300rem"},src:I("./assets/appreciation.b4045115.webp")},null,8,["src"])]),S("div",Jn,[S("strong",null," ⚠️ "+W(e.$t("feedback.text_4")),1)])])}}}),[["__scopeId","data-v-4be0bb8a"]]);const Qn={class:"img-process-state-card-container"},Zn={class:"img-container"},es={class:"info-container"},as={class:"img-name text-ellipsis"},ts={class:"img-size"},ls={key:0,class:"finial-file-size file-size-item"};var is=ht(v({__name:"img-process-state-card",props:{imgObj:{type:Object,require:!0,default:()=>({})},cardType:{type:String,default:"compress"}},emits:["remove"],setup(e,{emit:a}){const t=a;return(a,l)=>{const i=te,n=Zt,s=L,r=T,c=V;return y(),x("div",Qn,[G((y(),x("div",Zn,[$(i,{src:e.imgObj.finialBase64||e.imgObj.originalBase64,fit:"cover",loading:"lazy","hide-on-click-modal":!0,"preview-src-list":[e.imgObj.finialBase64||e.imgObj.originalBase64]},null,8,["src","preview-src-list"])])),[[c,e.imgObj.processing]]),S("div",es,[S("div",as,W(e.imgObj.finialName||e.imgObj.originalName),1),S("div",ts,[S("div",{class:Q(["original-file-size file-size-item",{"del-line":e.imgObj.finialSize&&"compress"===e.cardType}])},W(I(za)(e.imgObj.originalSize))+" KB ",3),e.imgObj.finialSize&&"compress"===e.cardType?(y(),x("div",ls,W(I(za)(e.imgObj.finialSize))+" KB ",1)):F("",!0)])]),e.imgObj.finialFile?(y(),x("div",{key:0,class:"operate-container flex-center",onClick:l[0]||(l[0]=a=>{Aa(e.imgObj.finialFile)})},W(a.$t("toolbox.click_download")),1)):F("",!0),"base64"===e.cardType&&e.imgObj.originalBase64?(y(),x("div",{key:1,class:"operate-container flex-center",onClick:l[1]||(l[1]=t=>{return l=e.imgObj.originalBase64,i=a.$t,void Sa(l,(()=>{o.success({message:i("toolbox.copy_base64_success")})}));var l,i})},W(a.$t("toolbox.copy_base64")),1)):F("",!0),$(r,{placement:"top",offset:8,content:a.$t("delete")},{default:C((()=>[$(s,{class:"del-btn",onClick:l[2]||(l[2]=a=>{return l=e.imgObj.uuid,void t("remove",l);var l})},{default:C((()=>[$(n)])),_:1})])),_:1},8,["content"])])}}}),[["__scopeId","data-v-d59c7528"]]);const ns={class:"compress-tool-container"},ss={key:0,class:"compress-tool-left"};var os=ht(v({__name:"compress-tool",setup(e){const a=at(),t=E(null),l=E(null),i=E([]),n=E(la.webP),s=E(!1),o=E(!1),r=e=>{o.value=!1,s.value=!1,e.forEach((e=>{a.dispatch("TOOLBOX_IMG_LIST_ADD",{uuid:e.uuid,originalName:e.file.name,originalSize:e.file.size,originalBase64:e.base64,originalFile:e.file})}))},c=()=>{var e,i;a.dispatch("TOOLBOX_IMG_LIST_RESET"),o.value=!1,null==(e=t.value)||e.reset(),null==(i=l.value)||i.reset()},d=async()=>{s.value=!0;for(const e of i.value)e.processing=!0,e.finialFile=await ja(e.originalFile,n.value),e.finialBase64=await Ra(e.finialFile)||"",e.finialSize=e.finialFile.size,e.finialName=e.finialFile.name,e.processing=!1;o.value=!0,s.value=!1},u=()=>{i.value.forEach((e=>{Aa(e.finialFile)}))},m=e=>{var l;a.dispatch("TOOLBOX_IMG_LIST_REMOVE",e),null==(l=t.value)||l.remove(e)};return O((()=>a.state.toolboxImageListModule.toolboxImageList),(e=>{i.value=e}),{immediate:!0,deep:!0}),(e,a)=>{const g=is,p=jt,h=Pi,f=M;return y(),x("div",ns,[i.value.length?(y(),x("div",ss,[(y(!0),x(q,null,K(i.value,(e=>(y(),w(g,{"img-obj":e,key:e.uuid,onRemove:m},null,8,["img-obj"])))),128))])):F("",!0),S("div",{class:Q(["compress-tool-right",{"no-img":!i.value.length}])},[$(p,{ref_key:"gettingImagesRef",ref:t,onGetImgList:r},null,512),$(h,{ref_key:"compressConfigBoxRef",ref:l,style:{"margin-top":"18rem"},onEncoder:a[0]||(a[0]=e=>{return a=e,o.value=!1,void(n.value=a);var a})},null,512),S("div",{class:Q(["user-operate",{compressed:o.value&&i.value.length>1}])},[o.value&&i.value.length>1?(y(),w(f,{key:0,plain:"",type:"success",onClick:u},{default:C((()=>[X(W(e.$t("toolbox.batch_download")),1)])),_:1})):F("",!0),S("div",null,[i.value.length?(y(),w(f,{key:0,plain:"",type:"warning",onClick:c},{default:C((()=>[X(W(e.$t("reset")),1)])),_:1})):F("",!0),i.value.length?(y(),w(f,{key:1,disabled:s.value||o.value,plain:"",type:"primary",onClick:d},{default:C((()=>[X(W(e.$t("toolbox.compress")),1)])),_:1},8,["disabled"])):F("",!0)])],2)],2)])}}}),[["__scopeId","data-v-2f45486b"]]);const rs={class:"base64-tool-container"},cs={key:0,class:"base64-tool-left"},ds={class:"user-operate"},us=v({__name:"base64-tool",setup(e){const a=at(),t=E(null),l=E([]),i=e=>{e.forEach((e=>{a.dispatch("TOOLBOX_IMG_LIST_ADD",{uuid:e.uuid,originalName:e.file.name,originalSize:e.file.size,originalBase64:e.base64})}))},n=()=>{var e;a.dispatch("TOOLBOX_IMG_LIST_RESET"),null==(e=t.value)||e.reset()},s=e=>{var l;a.dispatch("TOOLBOX_IMG_LIST_REMOVE",e),null==(l=t.value)||l.remove(e)};return O((()=>a.state.toolboxImageListModule.toolboxImageList),(e=>{l.value=e}),{immediate:!0,deep:!0}),(e,a)=>{const o=is,r=jt,c=M;return y(),x("div",rs,[l.value.length?(y(),x("div",cs,[(y(!0),x(q,null,K(l.value,(e=>(y(),w(o,{"card-type":"base64","img-obj":e,key:e.uuid,onRemove:s},null,8,["img-obj"])))),128))])):F("",!0),S("div",{class:Q(["base64-tool-right",{"no-img":!l.value.length}])},[$(r,{ref_key:"gettingImagesRef",ref:t,onGetImgList:i},null,512),S("div",ds,[l.value.length?(y(),w(c,{key:0,plain:"",type:"warning",onClick:n},{default:C((()=>[X(W(e.$t("reset")),1)])),_:1})):F("",!0)])],2)])}}});const ms={class:"watermark-tool-container"},gs={key:0,class:"watermark-tool-left"};const ps=[{path:"/",name:"index",redirect:{name:"upload"}},{path:"/config",name:"config",component:Lt,meta:{title:"nav.config"}},{path:"/upload",name:"upload",component:El,meta:{title:"nav.upload"}},{path:"/management",name:"Management",component:Ci,meta:{title:"nav.management"}},{path:"/settings",name:"settings",component:vn,meta:{title:"nav.settings"}},{path:"/toolbox",name:"Toolbox",component:Bn,meta:{title:"nav.toolbox"},children:[{path:"/toolbox/compress",name:"Compress",component:os},{path:"/toolbox/base64",name:"Base64",component:ht(us,[["__scopeId","data-v-654d8c19"]])},{path:"/toolbox/watermark",name:"Watermark",component:ht(v({__name:"watermark-tool",setup(e){const a=at(),t=ae({enable:!0,text:"",fontSize:0,opacity:0,position:ua.rightBottom,textColor:""}),l=E(null),i=E([]),n=E(!1),s=E(!1),o=e=>{s.value=!1,n.value=!1,e.forEach((e=>{a.dispatch("TOOLBOX_IMG_LIST_ADD",{uuid:e.uuid,originalName:e.file.name,originalSize:e.file.size,originalBase64:e.base64,originalFile:e.file})}))},r=e=>{t.text=e.text,t.textColor=e.textColor,t.opacity=e.opacity,t.position=e.position,t.fontSize=e.fontSize,s.value=!1},c=()=>{var e;a.dispatch("TOOLBOX_IMG_LIST_RESET"),s.value=!1,null==(e=l.value)||e.reset()},d=async()=>{n.value=!0;for(const e of i.value)e.processing=!0,e.finialFile=await Da(e.originalFile,t),e.finialBase64=await Ra(e.finialFile)||"",e.finialSize=e.finialFile.size,e.finialName=e.finialFile.name,e.processing=!1;s.value=!0,n.value=!1},u=()=>{i.value.forEach((e=>{Aa(e.finialFile)}))},m=e=>{var t;a.dispatch("TOOLBOX_IMG_LIST_REMOVE",e),null==(t=l.value)||t.remove(e)};return O((()=>a.state.toolboxImageListModule.toolboxImageList),(e=>{i.value=e}),{immediate:!0,deep:!0}),(e,a)=>{const g=is,p=jt,h=ji,f=M;return y(),x("div",ms,[i.value.length?(y(),x("div",gs,[(y(!0),x(q,null,K(i.value,(e=>(y(),w(g,{"img-obj":e,key:e.uuid,"card-type":"watermark",onRemove:m},null,8,["img-obj"])))),128))])):F("",!0),S("div",{class:Q(["watermark-tool-right",{"no-img":!i.value.length}])},[$(p,{ref_key:"gettingImagesRef",ref:l,onGetImgList:o},null,512),$(h,{isTool:!0,onWatermarkConfig:r,style:{"margin-top":"18rem"}}),S("div",{class:Q(["user-operate",{watermarked:s.value&&i.value.length>1}])},[s.value&&i.value.length>1?(y(),w(f,{key:0,plain:"",type:"success",onClick:u},{default:C((()=>[X(W(e.$t("toolbox.batch_download")),1)])),_:1})):F("",!0),S("div",null,[i.value.length?(y(),w(f,{key:0,plain:"",type:"warning",onClick:c},{default:C((()=>[X(W(e.$t("reset")),1)])),_:1})):F("",!0),i.value.length?(y(),w(f,{key:1,disabled:n.value||s.value||!t.text,plain:"",type:"primary",onClick:d},{default:C((()=>[X(W(e.$t("toolbox.add_watermark")),1)])),_:1},8,["disabled"])):F("",!0)])],2)],2)])}}}),[["__scopeId","data-v-8c458a98"]])}]},{path:"/feedback",name:"feedback",component:Yn,meta:{title:"nav.feedback"}},{path:"/:catchAll(.*)",redirect:"/"}],hs=De({history:Ee(),routes:ps});hs.beforeEach(((e,a,t)=>{e.meta.title&&Ca(e.meta.title),t()}));const fs=()=>{const e=at(),a=async e=>{await Oe((()=>{const a=document.getElementsByTagName("html")[0];e===ga.dark&&(a.classList.remove("light"),a.classList.add("dark")),e===ga.light&&(a.classList.remove("dark"),a.classList.add("light"))}))},t=async e=>{e===ga.system?await a(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ga.dark:ga.light):await a(e)};O((()=>e.getters.getUserSettings.theme.mode),(async e=>{await t(e)}),{deep:!0,immediate:!0})},vs={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},_s=[S("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0a224 224 0 1 0-448 0zm544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"},null,-1)];var bs={name:"ep-user-filled",render:function(e,a){return y(),x("svg",vs,[..._s])}};const ys={id:"busuanzi_value_site_uv",class:"uv"},ws={id:"busuanzi_value_site_pv",class:"pv"},ks=v({__name:"site-count",props:{isuv:{type:Boolean,default:!1}},setup(e){const a=e,t=E(null),l=E(!1),i=_((()=>!0));return R((()=>{const e=document.createElement("script");e.async=!0,e.src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js",t.value.appendChild(e),e.onload=()=>{const e=setTimeout((()=>{var i,n;i=t.value,n=a.isuv,i.querySelector(`.${n?"u":"p"}v`).innerText&&(l.value=!0),clearTimeout(e)}),1500)}})),(a,n)=>G((y(),x("span",{class:"site-count",ref_key:"siteCountDom",ref:t},[G(S("span",ys,null,512),[[ue,e.isuv]]),G(S("span",ws,null,512),[[ue,!e.isuv]]),X("+ "+W(a.$t("header.usage_count")),1)],512)),[[ue,l.value&&i.value]])}});const Is=e=>(Z("data-v-2d421138"),e=e(),ee(),e),xs={class:"header"},Ss={class:"header-left"},Ls=[Is((()=>S("div",{class:"logo"},[S("img",{src:"./assets/logo.ffee4291.png",alt:"PicX"})],-1))),Is((()=>S("div",{class:"title"},"PicX",-1)))],Ts={class:"website-count"},$s={class:"header-right"},Cs={class:"user-info"},Ds={class:"avatar-box"},Es={class:"avatar flex-center"},Os=["src","alt"],Rs={class:"personal-center-popover"},As={class:"content-item"},Ns={class:"flex-center"},Ms={class:"content-item"},Us={class:"flex-center"};var zs=ht(v({__name:"header-content",setup(e){const a=ie(),t=at(),l=_((()=>t.getters.getUserConfigInfo)).value,i=_((()=>t.getters.getUserSettings)).value,n=()=>{t.dispatch("USER_SETTINGS_PERSIST")},s=()=>{t.dispatch("LOGOUT"),a.push("/config"),document.body.click()},o=()=>{l.owner?window.open(`https://github.com/${l.owner}/${l.selectedRepo}`):a.push("/config")};return(e,t)=>{const r=ks,c=bs,d=L,u=nl,m=z,g=P,p=he,h=Re;return y(),x("header",xs,[S("div",Ss,[S("div",{class:"brand",onClick:t[0]||(t[0]=e=>I(a).push("/"))},Ls),S("div",Ts,[$(r,{isuv:!1})])]),S("div",$s,[S("div",Cs,[S("div",{class:"username",onClick:o},W(I(l).owner?I(l).owner:e.$t("header.notLogin")),1),$(h,{placement:"bottom-end",trigger:"click",width:"220rem","show-arrow":!1,"popper-style":{padding:"0"}},{reference:C((()=>{var e,a,t;return[S("div",Ds,[S("div",Es,[(null==(e=I(l))?void 0:e.avatarUrl)?(y(),x("img",{key:0,src:null==(a=I(l))?void 0:a.avatarUrl,alt:null==(t=I(l))?void 0:t.owner},null,8,Os)):(y(),w(d,{key:1,class:"user-filled-icon"},{default:C((()=>[$(c)])),_:1}))]),$(d,{class:"caret-bottom-icon"},{default:C((()=>[$(u)])),_:1})])]})),default:C((()=>[S("ul",Rs,[S("li",As,[S("span",Ns,W(e.$t("header.language")),1),$(g,{size:"small",style:{width:"100rem"},modelValue:I(i).language,"onUpdate:modelValue":t[1]||(t[1]=e=>I(i).language=e),onChange:n},{default:C((()=>[$(m,{label:"中文简体",value:I(ha).zhCN},null,8,["value"]),$(m,{label:"中文繁體",value:I(ha).zhTW},null,8,["value"]),$(m,{label:"English",value:I(ha).en},null,8,["value"])])),_:1},8,["modelValue"])]),$(p,{style:{margin:"5px 0"}}),S("li",Ms,[S("span",Us,W(e.$t("header.theme")),1),$(g,{size:"small",style:{width:"100rem"},modelValue:I(i).theme.mode,"onUpdate:modelValue":t[2]||(t[2]=e=>I(i).theme.mode=e),onChange:n},{default:C((()=>[$(m,{label:e.$t("settings.theme.system"),value:I(ga).system},null,8,["label","value"]),$(m,{label:e.$t("settings.theme.light"),value:I(ga).light},null,8,["label","value"]),$(m,{label:e.$t("settings.theme.dark"),value:I(ga).dark},null,8,["label","value"])])),_:1},8,["modelValue"])]),$(p,{style:{margin:"5px 0"}}),I(l).name||I(l).owner?(y(),x("li",{key:0,class:"content-item",onClick:s},W(e.$t("header.logout")),1)):(y(),x("li",{key:1,class:"content-item",onClick:t[3]||(t[3]=e=>I(a).push("/config"))},W(e.$t("header.login")),1))])])),_:1})])])])}}}),[["__scopeId","data-v-2d421138"]]);const Ps={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},js=[S("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64h261.44zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64h453.44zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64h133.44z"},null,-1)];var Bs={name:"ep-operation",render:function(e,a){return y(),x("svg",Ps,[...js])}};const Vs={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Gs=[S("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z"},null,-1),S("path",{fill:"currentColor",d:"m469.952 554.24l52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"},null,-1)];var Fs={name:"ep-edit",render:function(e,a){return y(),x("svg",Vs,[...Gs])}};const Hs={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Xs=[S("path",{fill:"currentColor",d:"M160 160v704h704V160H160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32z"},null,-1),S("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64q-64 0-64-64t64-64zM185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472l122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888l49.92 39.936l-215.808 269.824l-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072l-.64-.512a32 32 0 0 0-44.8 5.952L185.408 876.992z"},null,-1)];var Ws={name:"ep-picture",render:function(e,a){return y(),x("svg",Hs,[...Xs])}};const qs={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Ks=[S("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088l-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36l-116.224-25.088l-65.28 113.152l79.68 88.192l-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136l-79.808 88.192l65.344 113.152l116.224-25.024l22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152l24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296l116.288 25.024l65.28-113.152l-79.744-88.192l1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136l79.808-88.128l-65.344-113.152l-116.288 24.96l-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384a192 192 0 0 1 0-384zm0 64a128 128 0 1 0 0 256a128 128 0 0 0 0-256z"},null,-1)];var Js={name:"ep-setting",render:function(e,a){return y(),x("svg",qs,[...Ks])}};const Ys={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Qs=[S("path",{fill:"currentColor",d:"M128 384v448h768V384H128zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32zm64-128h704v64H160zm96-128h512v64H256z"},null,-1)];var Zs={name:"ep-files",render:function(e,a){return y(),x("svg",Ys,[...Qs])}};const eo={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},ao=[S("path",{fill:"currentColor",d:"m174.72 855.68l135.296-45.12l23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160S128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8l-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512C64 299.904 256 96 512 96s448 203.904 448 416s-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"},null,-1),S("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4a51.2 51.2 0 0 1 0 102.4zm192 0a51.2 51.2 0 1 1 0-102.4a51.2 51.2 0 0 1 0 102.4zm-384 0a51.2 51.2 0 1 1 0-102.4a51.2 51.2 0 0 1 0 102.4z"},null,-1)];var to={name:"ep-chat-dot-round",render:function(e,a){return y(),x("svg",eo,[...ao])}};const lo=xe([{uuid:xa(),name:"nav.config",icon:Fs,isActive:!1,path:"/config",isShow:!0},{uuid:xa(),name:"nav.upload",icon:Jt,isActive:!1,path:"/upload",isShow:!0},{uuid:xa(),name:"nav.management",icon:Ws,isActive:!1,path:"/management",isShow:!0},{uuid:xa(),name:"nav.settings",icon:Js,isActive:!1,path:"/settings",isShow:!0},{uuid:xa(),name:"nav.toolbox",icon:Zs,isActive:!1,path:"/toolbox",isShow:!0},{uuid:xa(),name:"nav.feedback",icon:to,isActive:!1,path:"/feedback",isShow:!0}]);const io={class:"nav"},no={class:"nav-list"},so=["onClick"],oo={class:"nav-content"},ro={class:"nav-name"},co={class:"nav-item quick-actions flex-center"},uo={class:"nav-content"},mo={class:"nav-name"},go={class:"quick-actions-popover"};var po=ht(v({__name:"nav-content",setup(e){const a=ie(),t=at(),l=_((()=>t.getters.getUserConfigInfo)).value,i=_((()=>t.getters.getUserSettings)).value,n=_((()=>{switch(i.elementPlusSize){case ca.small:return 22;case ca.large:return 30;default:return 26}})),s=e=>{lo.value.forEach((a=>{const t=a;return t.isActive=a.path===e||e.includes(a.path),t})),Ae(lo)},r=()=>{t.dispatch("USER_SETTINGS_PERSIST")};return O((()=>a.currentRoute.value),(e=>{s(e.path)})),O((()=>l.logined),(e=>{lo.value.forEach((a=>{switch(a.path){case"/management":case"/settings":a.isShow=e}}))}),{deep:!0,immediate:!0}),R((()=>{a.isReady().then((()=>{s(a.currentRoute.value.path)}))})),(e,t)=>{const s=L,c=Bs,d=we,u=Re;return y(),x("aside",io,[S("ul",no,[(y(!0),x(q,null,K(I(lo),((t,i)=>G((y(),x("li",{class:Q(["nav-item flex-center",{active:t.isActive}]),key:i+t.uuid,onClick:e=>(e=>{const{path:t}=e;if("/management"===t){if(""===l.selectedRepo)return o.warning("请选择一个仓库"),void a.push("/config");if(""===l.selectedDir)return o.warning("目录不能为空"),void a.push("/config")}a.push(t)})(t)},[S("div",oo,[$(s,{size:n.value},{default:C((()=>[(y(),w($e(t.icon)))])),_:2},1032,["size"]),S("span",ro,W(e.$t(t.name)),1)])],10,so)),[[ue,t.isShow]]))),128))]),S("div",co,[$(u,{placement:"right-end",width:"en"===I(i).language?"230rem":"190rem",trigger:"click","show-arrow":!1,"popper-style":{padding:"0"}},{reference:C((()=>[S("div",uo,[$(s,{size:n.value},{default:C((()=>[$(c)])),_:1},8,["size"]),S("span",mo,W(e.$t("nav.actions")),1)])])),default:C((()=>[S("div",go,[$(d,{modelValue:I(i).watermark.enable,"onUpdate:modelValue":t[0]||(t[0]=e=>I(i).watermark.enable=e),class:"mb-2","active-text":e.$t("actions.watermark"),onChange:r},null,8,["modelValue","active-text"]),$(d,{modelValue:I(i).compress.enable,"onUpdate:modelValue":t[1]||(t[1]=e=>I(i).compress.enable=e),class:"mb-2","active-text":e.$t("actions.compress"),onChange:r},null,8,["modelValue","active-text"]),$(d,{modelValue:I(i).imageLinkFormat.enable,"onUpdate:modelValue":t[2]||(t[2]=e=>I(i).imageLinkFormat.enable=e),class:"mb-2","active-text":e.$t("actions.transform")+I(i).imageLinkFormat.selected,onChange:r},null,8,["modelValue","active-text"])])])),_:1},8,["width"])])])}}}),[["__scopeId","data-v-5951a7aa"]]);const ho={class:"main-container"},fo={class:"top-container"},vo={class:"bottom-container"},_o={class:"bottom-content"},bo={class:"left"},yo={class:"right"};var wo=ht(v({__name:"main-container",setup:e=>(R((()=>{fs()})),(e,a)=>{const t=Te("router-view");return y(),x("main",ho,[S("div",fo,[$(zs)]),S("div",vo,[S("div",_o,[S("div",bo,[$(po)]),S("div",yo,[$(t)])])])])})}),[["__scopeId","data-v-c5c7351e"]]);const ko=v({__name:"App",setup(e){const a=D(),t=at(),l=_((()=>t.getters.getUserSettings)).value,i=E(ca.default),n=E(Me),r=e=>{e<=600?(null==t||t.dispatch("SET_USER_SETTINGS",{elementPlusSize:ca.small}),i.value=ca.small):e<=900?(null==t||t.dispatch("SET_USER_SETTINGS",{elementPlusSize:ca.default}),i.value=ca.default):(null==t||t.dispatch("SET_USER_SETTINGS",{elementPlusSize:ca.large}),i.value=ca.large)},c=e=>{e===ha.zhCN?(n.value=Me,a.proxy.$i18n.locale="zh-CN"):e===ha.zhTW?(n.value=Ue,a.proxy.$i18n.locale="zh-TW"):e===ha.en?(n.value=ze,a.proxy.$i18n.locale="en"):(n.value=Me,a.proxy.$i18n.locale="zh-CN"),Ca(hs.currentRoute.value.meta.title)},d=()=>{c(l.language),(async()=>{try{const e=await s.get("https://api.ipify.org?format=json"),a=await s.get(`https://ipapi.co/${e.data.ip}/country/`);return Promise.resolve(a.data)}catch(e){return Promise.resolve("CN")}})().then((e=>{var i,n,s,r,d,u,m;const g=(e=>"CN"===e?ha.zhCN:"HK"===e||"TW"===e||"MO"===e?ha.zhTW:ha.en)(e);if(g!==l.language){const l=null==(i=null==a?void 0:a.proxy)?void 0:i.$t("confirm",g),p=null==(n=null==a?void 0:a.proxy)?void 0:n.$t("cancel",g),h=null==(d=null==a?void 0:a.proxy)?void 0:d.$t("toggle-language-msg",g,{region:null==(s=null==a?void 0:a.proxy)?void 0:s.$t(`region.${e}`,g),language:null==(r=null==a?void 0:a.proxy)?void 0:r.$t(`language.${g}`,g)}),f=o({customClass:"toggle-language-message",duration:0,offset:20,message:`
\n ${h}\n \n ${l}\n ${p}\n \n
`,dangerouslyUseHTMLString:!0});null==(u=document.querySelector(".toggle-language-message .content-box .confirm"))||u.addEventListener("click",(()=>{c(g),t.dispatch("SET_USER_SETTINGS",{language:g}),f.close()})),null==(m=document.querySelector(".toggle-language-message .content-box .cancel"))||m.addEventListener("click",(()=>{f.close()}))}}))},u=()=>{r(window.innerWidth),window.addEventListener("resize",((e,a=500)=>{let t,l;return function(...i){l=i,t||(t=setTimeout((()=>{e(...l),t=void 0}),a))}})((e=>{r(e.target.innerWidth)}),600)),fs(),d()};return O((()=>l.language),(e=>{c(e)})),R((()=>{u()})),(e,a)=>(y(),w(I(Ne),{size:i.value,"z-index":3e3,locale:n.value},{default:C((()=>[$(wo)])),_:1},8,["size","locale"]))}});const Io="custom-contextmenu-container";let xo=null,So=!1;const Lo={mounted(e,a){e.addEventListener("contextmenu",(e=>{const{dir:t,type:l,img:i}=a.value;e.preventDefault(),e.stopPropagation();const n=_((()=>Za.getters.getUserViewDir)).value,s=t?`${"/"===n?"":`${n}/`}${t}`:n;xo=document.querySelector(`.${Io}`),xo||(xo=document.createElement("ul"),xo.setAttribute("class",Io),xo.style.position="fixed",xo.style.zIndex="1000",xo.innerHTML=`
  • `,document.body.appendChild(xo));const o=null==xo?void 0:xo.querySelector(".upload-image"),r=null==xo?void 0:xo.querySelector(".copy-link");l===va.img?(r.style.display="block",o.innerHTML=ka.global.t("management.contextmenu_1")):(r.style.display="none",o.innerHTML=ka.global.t("management.contextmenu_2",{dir:"/"===s?ka.global.t("management.contextmenu_3"):s}));let c=e.clientX,d=e.clientY;const u=xo.clientWidth,m=xo.clientHeight,g=document.documentElement.clientWidth,p=document.documentElement.clientHeight;u+c>g&&(c=g-u-6),m+d>p&&(d=p-m-6),xo.style.top=`${d}px`,xo.style.left=`${c}px`,So||(So=!0,null==o||o.addEventListener("click",(async()=>{const e="/"===s?oa.rootDir:oa.repoDir,a="/"===s?[]:s.split("/");await Za.dispatch("SET_USER_CONFIG_INFO",{dirMode:e,selectedDir:s,selectedDirList:a}),await hs.push("/upload")})),null==r||r.addEventListener("click",(async()=>{const e=_((()=>Za.getters.getUserConfigInfo)).value,a=_((()=>Za.getters.getUserSettings)).value;Fa(i,e,a)})));const h=()=>{xo&&(document.removeEventListener("click",h),document.body.removeChild(xo),xo=null,So=!1)};document.addEventListener("click",h)}))}},To=Pe(ko);To.directive("contextmenu",Lo),To.use(hs).use(Za,et).use(ka).mount("#app"); diff --git a/assets/index.e2602616.js b/assets/index.e2602616.js new file mode 100644 index 00000000..1132d6a4 --- /dev/null +++ b/assets/index.e2602616.js @@ -0,0 +1 @@ +var e=Object.defineProperty,a=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,i=(a,t,l)=>t in a?e(a,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):a[t]=l,n=(e,n)=>{for(var s in n||(n={}))t.call(n,s)&&i(e,s,n[s]);if(a)for(var s of a(n))l.call(n,s)&&i(e,s,n[s]);return e};import{a as s,E as o,b as r,v as c,C as d,e as u,d as m,c as g,f as p,g as h,u as f,h as v,i as _,j as b,o as y,k as w,n as k,l as I,m as x,p as S,q as L,r as T,s as $,w as C,t as D,x as E,y as O,z as R,A,B as N,D as M,F as U,G as z,H as P,I as j,J as B,K as V,L as G,M as F,N as H,O as X,P as W,Q as q,R as K,S as J,T as Y,U as Q,V as Z,W as ee,X as ae,Y as te,Z as le,_ as ie,$ as ne,a0 as se,a1 as oe,a2 as re,a3 as ce,a4 as de,a5 as ue,a6 as me,a7 as ge,a8 as pe,a9 as he,aa as fe,ab as ve,ac as _e,ad as be,ae as ye,af as we,ag as ke,ah as Ie,ai as xe,aj as Se,ak as Le,al as Te,am as $e,an as Ce,ao as De,ap as Ee,aq as Oe,ar as Re,as as Ae,at as Ne,au as Me,av as Ue,aw as ze,ax as Pe}from"./vendor.8b621868.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))a(e);new MutationObserver((e=>{for(const t of e)if("childList"===t.type)for(const e of t.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&a(e)})).observe(document,{childList:!0,subtree:!0})}function a(e){if(e.ep)return;e.ep=!0;const a=function(e){const a={};return e.integrity&&(a.integrity=e.integrity),e.referrerpolicy&&(a.referrerPolicy=e.referrerpolicy),"use-credentials"===e.crossorigin?a.credentials="include":"anonymous"===e.crossorigin?a.credentials="omit":a.credentials="same-origin",a}(e);fetch(e.href,a)}}();const je=e=>{const a=window.localStorage.getItem(e);return a?JSON.parse(a):null},Be="https://api.github.com",Ve=s.create({baseURL:Be,timeout:3e5});function Ge(e){const a={};e.method=e.method.toUpperCase();for(const t in e)"params"===t?"GET"===e.method?a.params=e.params:a.data=e.params:a[t]=e[t];return new Promise((e=>{Ve.request(a).then((a=>{const{status:t,data:l}=a;e(!a||200!==t&&201!==t&&204!==t?null:l||"SUCCESS")})).catch((t=>{var l;if((null==a?void 0:a.success422)&&422===(null==t?void 0:t.status))e((null==t?void 0:t.data)||"SUCCESS");else{const i=null==t?void 0:t.status,n=null==(l=null==t?void 0:t.data)?void 0:l.message;(null==a?void 0:a.noShowErrorMsg)||(console.error("PicX Error // ",t),void 0!==i&&void 0!==n&&o.error({duration:6e3,message:`Code: ${i}, Message: ${n}`})),e(null)}}))}))}Ve.defaults.headers["Content-Type"]="application/json",Ve.interceptors.request.use((e=>{var a;const t=je("PICX_CONFIG");if(t){const{token:l}=t;(null==(a=e.baseURL)?void 0:a.includes(Be))&&l&&(e.headers.Authorization=`token ${l}`)}return e}),(e=>Promise.reject(e))),Ve.interceptors.response.use((e=>e),(e=>((null==e?void 0:e.response)||o.error({duration:6e3,message:`${e}`}),Promise.reject(e.response))));const Fe=e=>Ge({url:"/user",method:"GET",headers:{Authorization:`token ${e}`}}),He=(e,a=1)=>new Promise((async t=>{const l=await Ge({url:`users/${e}/repos`,method:"GET",params:{type:"owner",sort:"created",direction:"desc",per_page:100,page:a}});l&&l.length?t(l.filter((e=>!e.fork&&!e.private)).map((e=>({value:e.name,label:e.name})))):t(null)})),Xe=async e=>{const a=[];for(let t=1;t<=3;t++){const l=await He(e,t);l&&a.push(...l)}return Promise.resolve(a.length?a:null)},We=async(e,a=!0)=>{const{owner:t,selectedRepo:l,selectedBranch:i}=e;let n=null;a&&(n=r.service({text:"正在初始化仓库..."}));await Ge({url:`/repos/${t}/${l}/contents/README.md`,method:"PUT",data:{message:"Init repo via PicX(https://github.com/XPoet/picx)",branch:i,content:window.btoa("\n# Welcome to use PicX\n\n[PicX](https://github.com/XPoet/picx) is a simple and powerful image hosting tool. It supports image hosting services via GitHub repository.\n\nPicX is completely open source, and you can use it for free.\n\nIf you like it, please give it a star on [GitHub](https://github.com/XPoet/picx).\n ")},noShowErrorMsg:!0})?null==n||n.close():a&&o.error("仓库初始化失败")},qe=(e,a)=>({type:"dir",dir:e,dirPath:a,childrenDirs:[],imageList:[]});function Ke(e,a,t){var l;return e?a.length===t?e:Ke(null==(l=e.childrenDirs)?void 0:l.find((e=>e.dir===a[t])),a,++t):null}const Je=(e,a)=>{if("/"===e)return a;return Ke(a,e.split("/"),0)},Ye=(e,a,t)=>{var l;return"dir"===t?null==(l=a.childrenDirs)?void 0:l.filter((e=>"dir"===e.type)):"image"===t?a.imageList.filter((e=>"image"===e.type)):[]},Qe={state:{name:"dirImageListModule",dirObject:(()=>{const e=localStorage.getItem("PICX_MANAGEMENT");return e?JSON.parse(e):qe("/","/")})()},mutations:{},actions:{DIR_IMAGE_LIST_ADD_DIR({state:e,dispatch:a},t){if("/"===t)return;const l=(e,a,t)=>{if(e){e.childrenDirs.some((e=>e.dir===a))||e.childrenDirs.push(qe(a,t));return e.childrenDirs.find((e=>e.dir===a))||qe(a,t)}return qe(a,t)},i=t.split("/");let n="",s=e.dirObject;for(let o=0,r=i.length;o0?"/":""}${e}`,s=l(s,e,n),0===o&&a("USER_CONFIG_INFO_ADD_DIR",e)}a("DIR_IMAGE_LIST_PERSIST")},DIR_IMAGE_LIST_REMOVE_DIR({state:e,dispatch:a},t){if("/"===t)return;const l=t.split("/");let i=e.dirObject;l.forEach(((a,t)=>{i=((a,t,l)=>{if("/"===t)return e.dirObject;const i=a.childrenDirs.find((e=>e.dir===t));if(!i)return a;if(l){const e=a.childrenDirs.findIndex((e=>e.dir===t));-1!==e&&a.childrenDirs.splice(e,1)}return i})(i,a,t===l.length-1)})),a("DIR_IMAGE_LIST_PERSIST")},DIR_IMAGE_LIST_ADD_IMAGE({state:e,dispatch:a},t){let l=e.dirObject;if("/"===t.dir)l.imageList.some((e=>e.name===t.name))||l.imageList.push(t);else{const a=t.dir.split("/");let i="";a.forEach(((n,s)=>{i+=`${s>0?"/":""}${n}`,l=((a,t,l,i,n=!1)=>{var s;if(!a)return e.dirObject;let o=null==(s=a.childrenDirs)?void 0:s.find((e=>e.dir===t));return o||(o={type:"dir",dir:t,dirPath:l,childrenDirs:[],imageList:[]},a.childrenDirs.push(o)),n&&!o.imageList.some((e=>e.name===i.name))&&o.imageList.push(i),o})(l,n,i,t,s===a.length-1)}))}a("DIR_IMAGE_LIST_PERSIST")},DIR_IMAGE_LIST_REMOVE({state:e,dispatch:a},t){const l=(e,a)=>{if(e.length){const t=e.findIndex((e=>e.uuid===a));-1!==t&&e.splice(t,1)}},{dir:i,uuid:n}=t;if("/"===i)return l(e.dirObject.imageList,n),void a("DIR_IMAGE_LIST_PERSIST");const s=i.split("/");let o=e.dirObject;s.forEach(((i,n)=>{if(o=((a,t,i,n)=>{if(!a)return e.dirObject;const s=a.childrenDirs.find((e=>e.dir===t));return s?(s.dir===t&&n&&l(s.imageList,i.uuid),s):e.dirObject})(o,i,t,n===s.length-1),!o.imageList.length&&!o.childrenDirs.length){const t=(e=>{if("/"===e)return[];const a=e.split("/"),t=[];let l="";return a.forEach(((e,a)=>{l+=`${a>0?"/":""}${e}`,t.unshift(l)})),t})(o.dirPath);t.forEach((t=>{const l=Je(t,e.dirObject);if(l&&!l.imageList.length&&!l.childrenDirs.length){const{dirPath:e}=(e=>{if("/"===e)return{currentDir:"/",dirPath:"/"};const a=e.split("/");return 1===a.length?{currentDir:"/",dirPath:"/"}:a.length>1?(a.length-=1,{currentDir:a[a.length-1],dirPath:a.join("/")}):{currentDir:"/",dirPath:"/"}})(t),l=e,i=e;let n=i.split("/");"/"===e&&(n=[],a("USER_CONFIG_INFO_REMOVE_DIR",t)),a("SET_USER_CONFIG_INFO",{viewDir:l,selectedDir:i,selectedDirList:n}),a("DIR_IMAGE_LIST_REMOVE_DIR",t)}}))}}))},DIR_IMAGE_LIST_INIT_DIR({state:e,dispatch:a},t){let l=e.dirObject;if("/"===t)return l.imageList=[],l.childrenDirs=[],void a("DIR_IMAGE_LIST_PERSIST");const i=t.split("/");i.forEach(((a,t)=>{l=((a,t,l)=>{var i;if(!a)return e.dirObject;const n=null==(i=a.childrenDirs)?void 0:i.find((e=>e.dir===t));return n?(l&&(n.imageList=[],n.childrenDirs=[]),n):e.dirObject})(l,a,t===i.length-1)})),a("DIR_IMAGE_LIST_PERSIST")},DIR_IMAGE_LIST_PERSIST({state:e}){localStorage.setItem("PICX_MANAGEMENT",JSON.stringify(e.dirObject))},DIR_IMAGE_LOGOUT({state:e,dispatch:a}){e.dirObject=qe("/","/"),a("DIR_IMAGE_LIST_PERSIST")}},getters:{getDirObject:e=>e.dirObject}};var Ze,ea,aa,ta,la,ia,na,sa,oa,ra,ca,da,ua,ma,ga,pa,ha,fa,va,_a;(ea=Ze||(Ze={})).uploaded="uploaded",ea.allUploaded="allUploaded",ea.uploadFail="uploadFail",(ta=aa||(aa={})).deleted="deleted",ta.allDeleted="allDeleted",ta.deleteFail="deleteFail",(ia=la||(la={})).mozJPEG="mozJPEG",ia.avif="avif",ia.webP="webP",(sa=na||(na={})).newBranch="newBranch",sa.repoBranch="repoBranch",(ra=oa||(oa={})).autoDir="autoDir",ra.newDir="newDir",ra.rootDir="rootDir",ra.repoDir="repoDir",(da=ca||(ca={})).large="large",da.default="default",da.small="small",(ma=ua||(ua={})).leftTop="leftTop",ma.leftBottom="leftBottom",ma.rightTop="rightTop",ma.rightBottom="rightBottom",(pa=ga||(ga={})).system="system",pa.light="light",pa.dark="dark",(fa=ha||(ha={})).zhCN="zh-CN",fa.zhTW="zh-TW",fa.en="en",(_a=va||(va={}))[_a.parentDir=0]="parentDir",_a[_a.childDir=1]="childDir",_a[_a.img=2]="img";var ba={repo:"仓库",branch:"分支",dir:"目录",tips:"提示",delete:"删除",reset:"重置",confirm:"确定",cancel:"取消",author:"作者",document:"文档",shortcut_key:"快捷键",copy_link:"复制图片链接",copy_success_1:"图片链接已自动复制到系统剪贴板",copy_success_2:"图片链接复制成功",copy_fail_1:"复制失败",header:{notLogin:"未登录",login:"登录",logout:"退出登录",language:"语言",theme:"主题",usage_count:"使用次数"},nav:{config:"图床配置",upload:"上传图片",management:"图床管理",settings:"我的设置",toolbox:"工具箱",feedback:"帮助反馈",actions:"快捷操作"},actions:{watermark:"添加水印",compress:"压缩图片",transform:"转换 "},settings:{img_name:{title:"图片名称设置",hash_switch_name:"自动哈希化",hash_switch_desc:"上传前自动给图片名增加哈希码,确保图片名唯一,强烈建议开启",prefix_switch_name:"添加前缀命名",prefix_switch_desc:"上传前自动给图片名增加前缀,例如:abc-image.jpg,abc- 为前缀",prefix_input_placeholder:"请输入命名前缀 ...",timestamp_switch_name:"自动时间戳命名"},img_watermark:{title:"图片水印设置",switch_name:"是否添加水印",switch_desc:"开启后可以自定义水印文字、字体大小、位置、颜色和透明度",text:"水印文字",text_input_placeholder:"请输入水印文字,限制 20 字",size:"水印大小",color:"水印颜色",opacity:"水印透明度",position:"水印位置",position_1:"左上角",position_2:"左下角",position_3:"右上角",position_4:"右下角"},img_compress:{title:"图片压缩设置",switch_name:"是否压缩图片",switch_desc:"开启后上传前会自动压缩图片,有效缩短图片上传和加载时间,强烈建议开启",radio_group_title:"选择图片压缩算法",radio_1:"webP",radio_1_desc:"压缩后图片格式为 webp,压缩率较高,大多数浏览器支持",radio_2:"mozJPEG",radio_2_desc:"压缩后图片格式为 jpg,兼容性最好,所有浏览器支持",radio_3:"avif",radio_3_desc:"压缩后图片格式为 avif,压缩率极高,部分现代浏览器支持"},link_rule:{title:"图片链接规则配置",select_title:"选择图片链接规则",card_title:"配置自定义图片链接规则",card_table_col_title_1:"类型",card_table_col_title_2:"图片链接规则",card_table_col_title_3:"操作",input_name_1:"图片链接类型",input_name_1_rule:"图片链接类型名称不能为空",input_name_2:"图片链接规则",input_name_2_rule:"图片链接规则不能为空",btn_name_1:"添加图片链接规则"},link_format:{title:"图片链接格式设置",switch_name:"自动转换图片链接格式",switch_desc:"上传成功后复制的图片链接自动转换成 {type} 格式",select_title:"选择图片链接格式",delete_tips:"此操作将永久删除图片链接规则"},theme:{title:"主题设置",system:"跟随系统",dark:"暗夜",light:"白昼"}},config:{inputToken:"请输入 GitHub Token ...",manualConfiguration1:"手动配置",manualConfiguration2:"重新手动配置",manualConfiguration3:"使用已有的 GitHub 仓库,逐步完成配置",autoConfiguration1:"一键自动配置",autoConfiguration2:"重新一键自动配置",autoConfiguration3:"自动创建 GitHub 仓库(适合新用户)",username:"用户名",email:"邮箱",selectRepo:"选择仓库",selectBranch:"选择分支",loading1:"正在加载用户信息 ...",loading2:"正在加载分支信息 ...",loading3:"正在加载用户信息 ...",loading4:"正在加载{type}数据 ...",loading5:"正在加载目录信息 ...",loading6:"正在自动配置 ...",placeholder1:"请选择图床仓库 ...",placeholder2:"请选择分支 ...",placeholder3:"请输入新建的分支 ...",placeholder4:"请输入新建的目录 ...",placeholder5:"请选择一个目录 ...",message1:"GitHub Token 不能为空",message2:"用户信息获取失败,请确认 Token 是否正确",message3:"自动创建 GitHub 仓库失败,请稍后再试",message4:"自动配置成功",message5:"一键自动配置失败,请重试",message6:"目录不能为空",message7:"请输入一个新目录",message8:"请选择 {repo} 仓库里的一个目录",message9:"仓库信息获取失败,请稍后重试",message10:"分支信息获取失败,请稍后再试",message11:"用户信息获取失败,请确认 GitHub Token 是否有效",message12:"请输入分支名称",message13:"{branch} 分支已存在,请在分支列表中选择",message14:"{branch} 分支创建成功",createBranch:"新建分支",branchMode:"分支方式",selectBranch2:"选择 {repo}} 仓库里的分支",reload:"重新载入所有{type}数据",dirMode:"目录模式",inputNewDir:"手动输入一个新目录",createNewDir:"新建目录",rootDir:"根目录",rootDir2:"图片存储在 {branch} 分支的根目录下",autoDir:"自动目录",autoDir2:"根据日期自动创建格式 yyyyMMdd 的目录",repoDir:"选择 {repo} 仓库目录",repoDir2:"选择 {branch} 分支里的一个目录",selectDir:"选择目录"},upload:{uploadAreaTips:"拖拽 / 粘贴 / 点击此处选择图片",uploaded:"已上传",upload:"上传",message1:"请先完成图床配置",message2:"请选择一个仓库",message3:"目录不能为空",message4:"请选择要上传的图片",message5:"图片上传成功",message6:"图片批量上传成功",message7:"上传失败,请稍后重试",message8:"图片上传成功",fold:"折叠",expand:"展开",hash:"哈希化",rename:"重命名","timestamp-naming":"时间戳命名",prefixNaming:"前缀命名",delete:"删除",copyLink:"复制图片链接",loading1:"正在上传 ..."},management:{reload:"重新加载 {dir} 目录所有数据",loadingTxt1:"加载中 ...",loadingTxt2:"正在重命名 ...",loadingTxt3:"删除中 ...",back:"双击后退",toNextDir:"双击进入下一级目录",property:"属性",delTips:"此操作将会永久删除图片",delTips2:"已选中 {total} 张图片,是否批量删除?",renameTips:"该图片重命名为 {name} ?",message1:"图片名不能为空",message2:"图片名无改变",message3:"重命名失败",message4:"更新成功",message5:"删除成功",message6:"批量删除成功",message7:"删除失败,请稍后重试",imageName:"图片名称",imageSize:"图片大小",selectAll:"全选",deselectAll:"取消全选",unselect:"取消选择",batchCopy:"批量复制图片链接",batchDelete:"批量删除图片",selectTotal:"已选择 {total} 张图片",contextmenu_1:"从当前位置上传新图片",contextmenu_2:"上传图片到 < {dir} >",contextmenu_3:"根目录"},toolbox:{tool_1:"图片压缩",tool_1_desc:"不限制图片大小和数量,不上传至服务器的离线极致压缩",tool_2:"图片转 Base64",tool_2_desc:"不限制图片大小和数量,在线转换成 Base64 编码",tool_3:"图片水印 ",tool_3_desc:"自定义水印文字、字体大小、位置、颜色和透明度",copy_base64:"点击复制 Base64 编码",copy_base64_success:"Base64 编码复制成功",click_download:"点击下载",compress:"压缩",batch_download:"批量下载",add_watermark:"添加水印"},feedback:{text_1:"PicX 是一款基于 GitHub API 开发的图床工具,提供图片上传托管、生成图片链接和常用图片工具箱服务。",text_2:"建议将本站添加到浏览器收藏夹,方便下次使用。",text_3:"如果 PicX 对你有帮助,欢迎赞赏作者,支持开源。",text_4:"郑重声明:请勿使用 PicX 上传违反你当地法律的图片,所造成的一切后果与作者无关。"},region:{CN:"中国大陆",HK:"中国香港",MO:"中国澳门",TW:"中国台湾",SG:"新加坡",JP:"日本",US:"美国"},language:{"zh-CN":"中文简体","zh-TW":"中文繁体",en:"英文"},"toggle-language-msg":"检测到你的 IP 所属地为{region},是否切换{language}?"};var ya={repo:"倉庫",branch:"分支",dir:"目錄",tips:"提示",delete:"刪除",reset:"重置",confirm:"確定",cancel:"取消",author:"作者",document:"文檔",shortcut_key:"快捷鍵",copy_link:"復製圖片鏈接",copy_success_1:"圖片鏈接已自動復製到系統剪貼板",copy_success_2:"圖片鏈接復製成功",copy_fail_1:"復製失敗",header:{notLogin:"未登錄",login:"登錄",logout:"退出登錄",language:"語言",theme:"主題",usage_count:"使用次數"},nav:{config:"圖床配置",upload:"上傳圖片",management:"圖床管理",settings:"我的設置",toolbox:"工具箱",feedback:"幫助反饋",actions:"快捷操作"},actions:{watermark:"添加水印",compress:"壓縮圖片",transform:"轉換 "},settings:{img_name:{title:"圖片名稱設置",hash_switch_name:"自動哈希化",hash_switch_desc:"上傳前自動給圖片名增加哈希碼,確保圖片名唯一,強烈建議開啟",prefix_switch_name:"添加前綴命名",prefix_switch_desc:"上傳前自動給圖片名增加前綴,例如:abc-image.jpg,abc- 為前綴",prefix_input_placeholder:"請輸入命名前綴 ...",timestamp_switch_name:"自動時間戳命名"},img_watermark:{title:"圖片水印設置",switch_name:"是否添加水印",switch_desc:"開啟後可以自定義水印文字、字體大小、位置、顏色和透明度",text:"水印文字",text_input_placeholder:"請輸入水印文字,限製 20 字",size:"水印大小",color:"水印顏色",opacity:"水印透明度",position:"水印位置",position_1:"左上角",position_2:"左下角",position_3:"右上角",position_4:"右下角"},img_compress:{title:"圖片壓縮設置",switch_name:"是否壓縮圖片",switch_desc:"開啟後上傳前會自動壓縮圖片,有效縮短圖片上傳和加載時間,強烈建議開啟",radio_group_title:"選擇圖片壓縮算法",radio_1:"webP",radio_1_desc:"壓縮後圖片格式為 webp,壓縮率較高,大多數瀏覽器支持",radio_2:"mozJPEG",radio_2_desc:"壓縮後圖片格式為 jpg,兼容性最好,所有瀏覽器支持",radio_3:"avif",radio_3_desc:"壓縮後圖片格式為 avif,壓縮率極高,部分現代瀏覽器支持"},link_rule:{title:"圖片鏈接規則配置",select_title:"選擇圖片鏈接規則",card_title:"配置自定義圖片鏈接規則",card_table_col_title_1:"類型",card_table_col_title_2:"圖片鏈接規則",card_table_col_title_3:"操作",input_name_1:"圖片鏈接類型",input_name_1_rule:"圖片鏈接類型名稱不能為空",input_name_2:"圖片鏈接規則",input_name_2_rule:"圖片鏈接規則不能為空",btn_name_1:"添加圖片鏈接規則"},link_format:{title:"圖片鏈接格式設置",switch_name:"自動轉換圖片鏈接格式",switch_desc:"上傳成功後復製的圖片鏈接自動轉換成 {type} 格式",select_title:"選擇圖片鏈接格式",delete_tips:"此操作將永久刪除圖片鏈接規則"},theme:{title:"主題設置",system:"跟隨系統",dark:"暗夜",light:"白晝"}},config:{inputToken:"請輸入 GitHub Token ...",manualConfiguration1:"手動配置",manualConfiguration2:"重新手動配置",manualConfiguration3:"使用已有的 GitHub 倉庫,逐步完成配置",autoConfiguration1:"一鍵自動配置",autoConfiguration2:"重新一鍵自動配置",autoConfiguration3:"自動創建 GitHub 倉庫(適合新用戶)",username:"用戶名",email:"郵箱",selectRepo:"選擇倉庫",selectBranch:"選擇分支",loading1:"正在加載用戶信息 ...",loading2:"正在加載分支信息 ...",loading3:"正在加載用戶信息 ...",loading4:"正在加載{type}數據 ...",loading5:"正在加載目錄信息 ...",loading6:"正在自動配置 ...",placeholder1:"請選擇圖床倉庫 ...",placeholder2:"請選擇分支 ...",placeholder3:"請輸入新建的分支 ...",placeholder4:"請輸入新建的目錄 ...",placeholder5:"請選擇一個目錄 ...",message1:"GitHub Token 不能為空",message2:"用戶信息獲取失敗,請確認 Token 是否正確",message3:"自動創建 GitHub 倉庫失敗,請稍後再試",message4:"自動配置成功",message5:"一鍵自動配置失敗,請重試",message6:"目錄不能為空",message7:"請輸入一個新目錄",message8:"請選擇 {repo} 倉庫裏的一個目錄",message9:"倉庫信息獲取失敗,請稍後重試",message10:"分支信息獲取失敗,請稍後再試",message11:"用戶信息獲取失敗,請確認 GitHub Token 是否有效",message12:"請輸入分支名稱",message13:"{branch} 分支已存在,請在分支列表中選擇",message14:"{branch} 分支創建成功",createBranch:"新建分支",branchMode:"分支方式",selectBranch2:"選擇 {repo}} 倉庫裏的分支",reload:"重新載入所有{type}數據",dirMode:"目錄模式",inputNewDir:"手動輸入一個新目錄",createNewDir:"新建目錄",rootDir:"根目錄",rootDir2:"圖片存儲在 {branch} 分支的根目錄下",autoDir:"自動目錄",autoDir2:"根據日期自動創建格式 yyyyMMdd 的目錄",repoDir:"選擇 {repo} 倉庫目錄",repoDir2:"選擇 {branch} 分支裏的一個目錄",selectDir:"選擇目錄"},upload:{uploadAreaTips:"拖拽 / 粘貼 / 點擊此處選擇圖片",uploaded:"已上傳",upload:"上傳",message1:"請先完成圖床配置",message2:"請選擇一個倉庫",message3:"目錄不能為空",message4:"請選擇要上傳的圖片",message5:"圖片上傳成功",message6:"圖片批量上傳成功",message7:"上傳失敗,請稍後重試",message8:"圖片上傳成功",fold:"折疊",expand:"展開",hash:"哈希化",rename:"重命名","timestamp-naming":"時間戳命名",prefixNaming:"前綴命名",delete:"刪除",copyLink:"復製圖片鏈接",loading1:"正在上傳 ..."},management:{reload:"重新加載 {dir} 目錄所有數據",loadingTxt1:"加載中 ...",loadingTxt2:"正在重命名 ...",loadingTxt3:"刪除中 ...",back:"雙擊後退",toNextDir:"雙擊進入下一級目錄",property:"屬性",delTips:"此操作將會永久刪除圖片",delTips2:"已選中 {total} 張圖片,是否批量刪除?",renameTips:"該圖片重命名為 {name} ?",message1:"圖片名不能為空",message2:"圖片名無改變",message3:"重命名失敗",message4:"更新成功",message5:"刪除成功",message6:"批量刪除成功",message7:"刪除失敗,請稍後重試",imageName:"圖片名稱",imageSize:"圖片大小",selectAll:"全選",deselectAll:"取消全選",unselect:"取消選擇",batchCopy:"批量復製圖片鏈接",batchDelete:"批量刪除圖片",selectTotal:"已選擇 {total} 張圖片",contextmenu_1:"從當前位置上傳新圖片",contextmenu_2:"上傳圖片到 < {dir} >",contextmenu_3:"根目錄"},toolbox:{tool_1:"圖片壓縮",tool_1_desc:"不限製圖片大小和數量,不上傳至服務器的離線極致壓縮",tool_2:"圖片轉 Base64",tool_2_desc:"不限製圖片大小和數量,在線轉換成 Base64 編碼",tool_3:"圖片水印 ",tool_3_desc:"自定義水印文字、字體大小、位置、顏色和透明度",copy_base64:"點擊復製 Base64 編碼",copy_base64_success:"Base64 編碼復製成功",click_download:"點擊下載",compress:"壓縮",batch_download:"批量下載",add_watermark:"添加水印"},feedback:{text_1:"PicX 是一款基於 GitHub API 開發的圖床工具,提供圖片上傳托管、生成圖片鏈接和常用圖片工具箱服務。",text_2:"建議將本站添加到瀏覽器收藏夾,方便下次使用。",text_3:"如果 PicX 對你有幫助,歡迎贊賞作者,支持開源。",text_4:"鄭重聲明:請勿使用 PicX 上傳違反你當地法律的圖片,所造成的一切後果與作者無關。"},region:{CN:"中國大陸",HK:"中國香港",MO:"中国澳门",TW:"中國臺灣",SG:"新加坡",JP:"日本",US:"美國"},language:{"zh-CN":"中文簡體","zh-TW":"中文繁體",en:"英文"},"toggle-language-msg":"檢測到你的 IP 所屬地為{region},是否切換{language}?"};var wa={repo:"Repository",branch:"Branch",dir:"Directory",tips:"Tips",delete:"Delete",reset:"Reset",confirm:"Confirm",cancel:"Cancel",author:"Author",document:"Document",shortcut_key:"Shortcut key",copy_link:"Copy image link",copy_success_1:"The image link has been automatically copied to the system clipboard",copy_success_2:"Image link copied successfully",copy_fail_1:"Copy failed",header:{notLogin:"Not log in",login:"Log in",logout:"Log out",language:"Language",theme:"Theme",usage_count:"Usage count"},nav:{config:"Image Hosting Config",upload:"Upload Image",management:"Image Hosting Management",settings:"My Settings",toolbox:"Toolbox",feedback:"Feedback",actions:"Quick actions"},actions:{compress:"Compress Image",watermark:"Add Watermark",transform:"Transform "},settings:{img_name:{title:"Image Name Settings",hash_switch_name:"Hashing",hash_switch_desc:"Automatically add a hash code to the image name before uploading to ensure uniqueness. It is strongly recommended to turn on this feature.",prefix_switch_name:"Add Prefix",prefix_switch_desc:"Automatically add a prefix to the image name before uploading. For example: abc-image.jpg, where abc- is the prefix.",prefix_input_placeholder:"Please enter the name prefix...",timestamp_switch_name:"Automatically timestamp naming"},img_watermark:{title:"Image Watermark Settings",switch_name:"Add Watermark",switch_desc:"After turning on this feature, you can customize the watermark text, font size, position, color, and transparency.",text:"Text",text_input_placeholder:"Please enter the watermark text, limited to 20 characters.",size:"Size",color:"Color",opacity:"Opacity",position:"Position",position_1:"Top Left",position_2:"Bottom Left",position_3:"Top Right",position_4:"Bottom Right"},img_compress:{title:"Image Compression Settings",switch_name:"Compress Images",switch_desc:"After enable, the image will be auto compressed before uploading, which can effectively shorten the image upload and loading time. It is strongly recommended enable.",radio_group_title:"Select image compression algorithm",radio_1:"WebP",radio_1_desc:"The compressed image format is webp, which has a higher compression ratio and is supported by most browsers.",radio_2:"MozJPEG",radio_2_desc:"The compressed image format is jpg, which has the best compatibility and is supported by all browsers.",radio_3:"AVIF",radio_3_desc:"The compressed image format is avif, which has an extremely high compression ratio and is supported by some modern browsers."},link_rule:{title:"Image Link Rules Configuration",select_title:"Select Image Link Rule",card_title:"Configure Custom Image Link Rules",card_table_col_title_1:"Type",card_table_col_title_2:"Image Link Rule",card_table_col_title_3:"Action",input_name_1:"Link Type",input_name_1_rule:"The Image Link Type Name cannot be empty.",input_name_2:"Link Rule",input_name_2_rule:"The Image Link Rule cannot be empty.",btn_name_1:"Add Image Link Rule"},link_format:{title:"Image Link Format Settings",switch_name:"Automatically Convert Image Link Format",switch_desc:"After a successful upload, the copied image link will be automatically converted to the {type} format.",select_title:"Select Image Link Format",delete_tips:"This operation will permanently delete the image link rule"},theme:{title:"Theme Settings",system:"System",dark:"Dark",light:"Light"}},config:{inputToken:"Please input GitHub Token ...",manualConfiguration1:"Manual Configuration",manualConfiguration2:"Reconfigure Manually",manualConfiguration3:"Configure using an existing GitHub repository step by step",autoConfiguration1:"One-click Automatic Configuration",autoConfiguration2:"Reconfigure Automatically",autoConfiguration3:"Automatically create a GitHub repository (suitable for new users)",username:"Username",email:"Email",selectRepo:"Select Repo",selectBranch:"Select Branch",loading1:"Loading user information ...",loading2:"Loading branch information ...",loading3:"Loading user information ...",loading4:"Loading {type} data ...",loading5:"Loading directory information ...",loading6:"Automatically configuring ...",placeholder1:"Please select image hosting repository ...",placeholder2:"Please select branch ...",placeholder3:"Please enter the name of new branch ...",placeholder4:"Please enter the newly created directory ...",placeholder5:"Please select a directory ...",message1:"GitHub token cannot be empty",message2:"Failed to retrieve user information, please verify that the token is correct",message3:"Failed to automatically create GitHub repository, please try again later",message4:"Automated configuration successful",message5:"One-click automated configuration failed, please try again.",message6:"Directory cannot be empty",message7:"Please enter a new directory",message8:"Please select a directory in the {repo} repository",message9:"Failed to retrieve repository information, please try again later",message10:"Failed to retrieve branch information, please try again later",message11:"Failed to retrieve user information, please verify that the GitHub Token is valid",message12:"Please enter a branch name",message13:"The {branch} branch already exists, please select from the list of branches",message14:"The {branch} branch was created successfully.",createBranch:"Create new branch",reload:"Reload all {type} data",dirMode:"Dir Mode",inputNewDir:"Manually input a new directory",createNewDir:"New Dir",rootDir:"Root Dir",rootDir2:"Images are stored in the root directory of {branch} branch",autoDir:"Auto Dir",autoDir2:"Automatically create a directory with format yyyyMMdd",repoDir:"Select directory in {repo} repository",repoDir2:"Choose a directory in the {branch} branch",selectDir:"Select Dir"},upload:{uploadAreaTips:"Drag / Paste / Click here to select images",uploaded:"Uploaded",upload:"Upload",message1:"Please complete the image hosting configuration first",message2:"Please select a repository",message3:"Directory cannot be empty",message4:"Please select an image to upload",message5:"Image uploaded successfully",message6:"Images uploaded successfully in batch",message7:"Upload failed, please try again later",message8:"Image uploaded successfully",fold:"Fold",expand:"Expand",hash:"Hashing",rename:"Rename","timestamp-naming":"Timestamp Naming",prefixNaming:"Prefix Naming",delete:"Delete",copyLink:"Copy image link",loading1:"Uploading ..."},management:{reload:"Reload all data in the {dir} directory",loadingTxt1:"Loading ...",loadingTxt2:"Renaming ...",loadingTxt3:"Deleting ...",back:"Double-click back",toNextDir:"Double-click to enter the next level directory",property:"Property",delTips:"This operation will permanently delete the image",delTips2:"Are you sure you want to delete the selected {total} images in bulk?",renameTips:"Rename this picture to {name}?",message1:"Image name cannot be empty",message2:"Image name unchanged",message3:"Rename failed",message4:"Update successfully",message5:"Delete successfully",message6:"Batch delete successfully",message7:"Deletion failed, please try again later",imageName:"Image name",imageSize:"Image size",selectAll:"Select all",deselectAll:"Deselect all",unselect:"Unselect",batchCopy:"Batch copy image link",batchDelete:"Batch delete image",selectTotal:"Selected {total} images",contextmenu_1:"Upload new image from current location",contextmenu_2:"Upload image to < {dir} >",contextmenu_3:"Root directory"},toolbox:{tool_1:"Image Compressor",tool_1_desc:"Offline ultimate compression without size or quantity limit, and without uploading to server",tool_2:"Image to Base64",tool_2_desc:"Online conversion of images to Base64 encoding without size or quantity limit",tool_3:"Image Watermark",tool_3_desc:"Customize watermark text, font size, position, color and opacity",copy_base64:"Click to copy Base64 encoding",copy_base64_success:"Base64 encoding copied successfully",click_download:"Click to download",compress:"Compress",batch_download:"Batch Download",add_watermark:"Add Watermark"},feedback:{text_1:"PicX is a GitHub API based image hosting tool, providing image upload and hosting, generating image links, and a set of commonly used image tools.",text_2:"We suggest adding our website to your browser bookmarks for easy future access.",text_3:"If PicX is helpful to you, please consider donating to the author to support open source development.",text_4:"Disclaimer: Do not upload images that violate the laws in your local jurisdiction. The author is not responsible for any consequences arising from such actions."},region:{CN:"Mainland China",HK:"Hong Kong, China",MO:"Macao, China",TW:"Taiwan, China",SG:"Singapore",JP:"Japan",US:"United States"},language:{"zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese",en:"English"},"toggle-language-msg":"We detected that your IP is located in {region}. Do you want to switch to {language}?"};const ka=c.createI18n({locale:"zh-CN",messages:{"zh-CN":ba,"zh-TW":ya,en:wa}}),Ia=e=>{const a=Object.prototype.toString.call(e).split(" ")[1];return a.substring(0,a.length-1).toLowerCase()},xa=()=>Number(Math.random().toString().substr(2,5)+Date.now()).toString(36),Sa=(e,a)=>{navigator.clipboard.writeText(e).then((()=>{a&&a()}))},La=e=>{for(const a in e)switch(Ia(e[a])){case"object":La(e[a]);break;case"string":e[a]="";break;case"array":e[a]=[];break;case"number":e[a]=0;break;case"boolean":e[a]=!1}},Ta=(e,a)=>{for(const t in a)"object"!==Ia(a[t])?e&&(e[t]=a[t]):e[t]&&Ta(e[t],a[t])},$a=(e="yyyy-MM-dd hh:mm:ss",a=Date.now())=>{function t(e){return`00${e}`.substr(e.length)}const l=new Date(a);/(y+)/.test(e)&&(e=e.replace(RegExp.$1,`${l.getFullYear()}`.substr(4-RegExp.$1.length)));const i={"M+":l.getMonth()+1,"d+":l.getDate(),"h+":l.getHours(),"m+":l.getMinutes(),"s+":l.getSeconds()};for(const n in i)if(new RegExp(`(${n})`).test(e)){const a=`${i[n]}`;e=e.replace(RegExp.$1,1===RegExp.$1.length?a:t(a))}return e},Ca=e=>{e&&(window.document.title=`${ka.global.t(e)} | PicX`)};async function Da(e,a){const{text:t,fontSize:l,position:i,textColor:n,opacity:s}=a,[o,r,c]=(d=n,d?(d=d.replace("#",""),`${parseInt(d.substring(0,2),16)}, ${parseInt(d.substring(2,4),16)}, ${parseInt(d.substring(4,6),16)}`):"255,255,255").split(",");var d;const u=await function(e){return new Promise(((a,t)=>{const l=new FileReader;l.onload=()=>{const e=new Image;e.setAttribute("crossOrigin","Anonymous"),e.onload=()=>a(e),e.onerror=t,e.src=l.result},l.onerror=t,l.readAsDataURL(e)}))}(e),m=document.createElement("canvas"),g=m.getContext("2d");m.width=u.width,m.height=u.height,g.drawImage(u,0,0),g.font=`bold ${l}px Arial`,g.strokeStyle=`rgba(0, 0, 0, ${s})`,g.lineWidth=3,g.fillStyle=`rgba(${o}, ${r}, ${c}, ${s})`;let p=0,h=0;switch(i){case ua.leftTop:p=10,h=l+5;break;case ua.rightTop:p=m.width-g.measureText(t).width-10,h=l+5;break;case ua.leftBottom:p=10,h=m.height-15;break;case ua.rightBottom:p=m.width-g.measureText(t).width-10,h=m.height-15}return g.strokeText(t,p,h),g.fillText(t,p,h),new Promise((a=>{m.toBlob((t=>{if(t){const l=new File([t],e.name,{type:e.type});a(l)}else a(null)}),e.type)}))}const Ea=(e,a=!1)=>{e.forEach((e=>{e.deleting=a}))};async function Oa(e,a){if(1===e.length)return await async function(e,a){e.deleting=!0;const{owner:t,selectedRepo:l}=a,{path:i,sha:n}=e;return new Promise((async a=>{const s=await st(t,l,i,n);e.deleting=!1,s?(a(!0),await Za.dispatch("UPLOAD_IMG_LIST_REMOVE",e.uuid),await Za.dispatch("DIR_IMAGE_LIST_REMOVE",e)):a(!1)}))}(e[0],a)?aa.deleted:aa.deleteFail;try{return await async function(e,a){Ea(e,!0);const{owner:t,selectedRepo:l,selectedBranch:i}=a,n=await it(t,l,i);if(!n)throw Ea(e,!1),new Error("获取分支信息失败");const s=await rt(t,l,e.map((e=>({path:e.path,sha:null}))),n);if(!s)throw Ea(e,!1),new Error("创建 tree 失败");const o=await ct(t,l,s,n);if(!o)throw Ea(e,!1),new Error("创建 commit 失败");if(!(await dt(t,l,i,o.sha)))throw Ea(e,!1),new Error("更新 ref 失败");e.forEach((e=>{e.deleting=!1,Za.dispatch("UPLOAD_IMG_LIST_REMOVE",e.uuid),Za.dispatch("DIR_IMAGE_LIST_REMOVE",e)}))}(e,a),aa.allDeleted}catch(t){return console.error(t),aa.deleteFail}}function Ra(e){return new Promise((a=>{const t=new FileReader;t.readAsDataURL(e),t.onload=()=>{const e=t.result;a(e)},t.onerror=()=>a(null)}))}function Aa(e){const a=URL.createObjectURL(e),t=document.createElement("a");t.href=a,t.download=e.name,document.body.appendChild(t),t.click(),document.body.removeChild(t),URL.revokeObjectURL(a)}const Na=e=>{const a=e.indexOf(".");return e.substr(0,a).trim().replace(/\s+/g,"-")},Ma=e=>{const a=e.lastIndexOf(".");return e.slice(a+1)},Ua=e=>/(png|jpg|jpeg|gif|webp|awebp|avif|svg\+xml|svg|x-icon|vnd.microsoft.icon)$/.test(e),za=e=>e?Number((e/1024).toFixed(0)):e,Pa=e=>new Promise((async a=>{e||a(null),Ua(e.type)||(o.error(`${e.name} 不是图片格式`),a(null));const t=await Ra(e)||"";za(t.length)>=30720&&(o.error(`${e.name} 超过 30 MB,跳过选择`),a(null)),a({uuid:xa(),base64:t,file:e})})),ja=async(e,a)=>{if(t=e.type,/(png|jpg|jpeg|webp|avif)$/.test(t)){return new d(e,{encoderState:{type:a,options:u[a].meta.defaultOptions},processorState:m,preprocessorState:g}).process()}var t;return e},Ba=(e,a,t)=>{var l;const i=t.imageLinkType.selected,n=null==(l=t.imageLinkType.presetList.find((e=>e.name===i)))?void 0:l.rule;if(n){const{owner:t,selectedRepo:l,selectedBranch:i}=a;return n.replaceAll("{{owner}}",t).replaceAll("{{repo}}",l).replaceAll("{{branch}}",i).replaceAll("{{path}}",e.path)}return null},Va=(e,a,t)=>{var l;if(t.imageLinkFormat.enable){const i=t.imageLinkFormat.selected,n=null==(l=t.imageLinkFormat.presetList.find((e=>e.name===i)))?void 0:l.format;if(n)return n.replaceAll("imageLink",e||"").replaceAll("imageName",a.split(".")[0])}return e},Ga=(e=!1)=>{const a=e?ka.global.t("copy_success_1"):ka.global.t("copy_success_2");o({type:e?"info":"success",message:a,duration:e?6e3:4e3})},Fa=(e,a,t,l=!1)=>{const i=Va(Ba(e,a,t),e.name,t);i?Sa(i,(()=>{Ga(l)})):o.error({message:ka.global.t("copy_fail_1")})},Ha=(e,a,t,l=!1)=>{if((null==e?void 0:e.length)>0){let i="";e.forEach(((l,n)=>{const s=Va(Ba(l,a,t),l.name,t);i+=`${s}${n{Ga(l)}))}},Xa=()=>{const{platform:e}=navigator;return e.includes("Mac")?"mac":e.includes("Win")?"win":e.includes("Linux")?"linux":null},Wa=()=>{const e={token:"",owner:"",email:"",name:"",avatarUrl:"",selectedRepo:"",repoList:[],branchMode:na.repoBranch,branchList:[],selectedBranch:"",selectedDir:"",dirMode:oa.repoDir,dirList:[],logined:!1,selectedDirList:[],viewDir:""},a=localStorage.getItem("PICX_CONFIG");return a?(Ta(e,JSON.parse(a)),e.selectedBranch&&!e.branchList.length&&(e.branchList=[{value:e.selectedBranch,label:e.selectedBranch}]),e.dirMode===oa.autoDir&&(e.selectedDir=$a("yyyyMMdd")),e):e},qa={state:{userConfigInfo:Wa()},actions:{USER_CONFIG_INFO_RESET({state:e}){e.userConfigInfo=Wa()},SET_USER_CONFIG_INFO({state:e,dispatch:a},t){for(const l in t)e.userConfigInfo.hasOwnProperty(l)&&(e.userConfigInfo[l]=t[l]);a("USER_CONFIG_INFO_PERSIST")},USER_CONFIG_INFO_ADD_DIR({state:e,dispatch:a},t){e.userConfigInfo.dirList.some((e=>e.value===t))||(e.userConfigInfo.dirList.push({label:t,value:t}),a("USER_CONFIG_INFO_PERSIST"))},USER_CONFIG_INFO_REMOVE_DIR({state:e,dispatch:a},t){const{dirList:l}=e.userConfigInfo;if(l.some((e=>e.value===t))){const e=l.findIndex((e=>e.value===t));l.splice(e,1),a("USER_CONFIG_INFO_PERSIST")}},USER_CONFIG_INFO_PERSIST({state:e}){(e=>{const{selectedDir:a,selectedBranch:t,dirMode:l}=e.userConfigInfo;if("newDir"===l){const t=a.split("");let l=0,i="";const n=[" ",".","、",",",",","!","?","?"];for(let e=0;ea===t[e]))&&(t[e]="-"),"/"===t[e]&&(l+=1),!(l>=5));e++)i+=t[e];e.userConfigInfo.selectedDir=i}e.userConfigInfo.selectedBranch=t.replace(/\s+/g,"-")})(e),localStorage.setItem("PICX_CONFIG",JSON.stringify(e.userConfigInfo))},USER_CONFIG_INFO_LOGOUT({state:e}){La(e.userConfigInfo)}},getters:{getUserLoginStatus:e=>e.userConfigInfo.logined,getUserConfigInfo:e=>e.userConfigInfo,getUserViewDir:e=>e.userConfigInfo.viewDir}},Ka={state:{imgCardArr:[]},mutations:{IMAGE_CARD(e,{imageObj:a}){const{uuid:t,checked:l}=a;l&&e.imgCardArr.forEach((e=>{e.uuid===t&&(e.checked=!0)}))},REPLACE_IMAGE_CARD(e,{checkedImgArr:a}){a.length>0?e.imgCardArr=a:e.imgCardArr=[]}},actions:{},getters:{getImageCardArr:e=>e.imgCardArr,getImageCardCheckedArr:e=>e.imgCardArr.filter((e=>e.checked))}},Ja={state:{uploadAreaActive:!1},mutations:{CHANGE_UPLOAD_AREA_ACTIVE(e,a){e.uploadAreaActive=a},UPLOAD_AREA_ACTIVE_LOGOUT(e){e.uploadAreaActive=!1}},getters:{getUploadAreaActive:e=>e.uploadAreaActive}},Ya={imageName:{autoAddHash:!0,autoTimestampNaming:!1,prefixNaming:{enable:!1,prefix:""}},compress:{enable:!0,encoder:la.webP},theme:{mode:ga.system},elementPlusSize:ca.default,imageLinkType:{selected:"Statically",presetList:[{id:xa(),name:"Statically",rule:"https://cdn.statically.io/gh/{{owner}}/{{repo}}@{{branch}}/{{path}}"},{id:xa(),name:"ChinaJsDelivr",rule:"https://jsd.cdn.zzko.cn/gh/{{owner}}/{{repo}}@{{branch}}/{{path}}"},{id:xa(),name:"jsDelivr",rule:"https://cdn.jsdelivr.net/gh/{{owner}}/{{repo}}@{{branch}}/{{path}}"},{id:xa(),name:"GitHub",rule:"https://github.com/{{owner}}/{{repo}}/raw/{{branch}}/{{path}}"}]},imageLinkFormat:{enable:!1,selected:"Markdown",presetList:[{name:"Markdown",format:"![imageName](imageLink)"},{name:"HTML",format:'imageName'},{name:"BBCode",format:"[img]imageLink[/img]"}]},starred:!1,watermark:{enable:!1,text:"PicX",fontSize:50,position:ua.rightBottom,textColor:"#FFFFFF",opacity:.5},language:ha.zhCN},Qa=(e,a,t)=>{const l="add"===a?"添加":"编辑",i=[];if(e.rule.includes("{{owner}}")||i.push("{{owner}}"),e.rule.includes("{{repo}}")||i.push("{{repo}}"),e.rule.includes("{{branch}}")||i.push("{{branch}}"),i.length)if(e.rule.includes("{{path}}")){let e=`图片链接规则缺少 ${i.join("、")},是否确认${l}?`;"edit"===a&&(e=`注意:当前编辑的图片链接规则缺少 ${i.join("、")}`),p.confirm(e,`${l}提示`,{type:"warning",showClose:"add"===a,showCancelButton:"add"===a}).then((()=>{t(!0)})).catch((()=>{t(!1)}))}else o.error(`${l}失败,图片链接规则必须包含 {{path}}`);else t(!0)},Za=h({modules:{dirImageListModule:Qe,userConfigInfoModule:qa,imageCardModule:Ka,uploadAreaActiveModule:Ja,userSettingsModule:{state:{userSettings:(()=>{const e=je("PICX_SETTINGS");return e&&Ta(Ya,e),Ya})()},actions:{SET_USER_SETTINGS({state:e,dispatch:a},t){for(const l in t)e.userSettings.hasOwnProperty(l)&&(e.userSettings[l]=t[l]);a("USER_SETTINGS_PERSIST")},ADD_IMAGE_LINK_TYPE_RULE({state:e,dispatch:a},t){e.userSettings.imageLinkType.presetList.some((e=>e.name===t.name))?o.error("添加失败,该图片链接规则规则已存在"):Qa(t,"add",(l=>{l&&(e.userSettings.imageLinkType.presetList.push(t),a("USER_SETTINGS_PERSIST"))}))},UPDATE_IMAGE_LINK_TYPE_RULE({state:e,dispatch:a},t){Qa(t,"edit",(l=>{if(l){const l=e.userSettings.imageLinkType.presetList.find((e=>e.id===t.id));l&&(l.rule=t.rule,a("USER_SETTINGS_PERSIST"))}}))},DEL_IMAGE_LINK_TYPE_RULE({state:e,dispatch:a},t){const l=e.userSettings.imageLinkType.presetList;l.splice(l.findIndex((e=>e.id===t)),1),a("USER_SETTINGS_PERSIST")},USER_SETTINGS_PERSIST({state:e}){localStorage.setItem("PICX_SETTINGS",JSON.stringify(e.userSettings))},USER_SETTINGS_LOGOUT({state:e}){e.userSettings=Ya}},getters:{getUserSettings:e=>e.userSettings}},toolboxImageListModule:{state:{toolboxImageList:[]},mutations:{},actions:{TOOLBOX_IMG_LIST_ADD({state:e},a){e.toolboxImageList.unshift(a)},TOOLBOX_IMG_LIST_REMOVE({state:e},a){if(e.toolboxImageList.length>0){const t=e.toolboxImageList.findIndex((e=>e.uuid===a));-1!==t&&e.toolboxImageList.splice(t,1)}},TOOLBOX_IMG_LIST_RESET({state:e}){e.toolboxImageList=[]}},getters:{getToolboxImageList:e=>e.toolboxImageList}},uploadImageListModule:{state:{uploadImageList:[]},mutations:{},actions:{UPLOAD_IMG_LIST_ADD({state:e},a){e.uploadImageList.unshift(a)},UPLOAD_IMG_LIST_REMOVE({state:e},a){if(e.uploadImageList.length>0){const t=e.uploadImageList.findIndex((e=>e.uuid===a));-1!==t&&0===e.uploadImageList[t].uploadStatus.progress&&e.uploadImageList.splice(t,1)}},UPLOAD_IMG_LIST_RESET({state:e}){e.uploadImageList=[]}},getters:{getUploadImageList:e=>e.uploadImageList}}},state:{rootName:"root"},mutations:{},actions:{LOGOUT({dispatch:e,commit:a}){a("UPLOAD_AREA_ACTIVE_LOGOUT"),e("DIR_IMAGE_LOGOUT"),e("USER_CONFIG_INFO_LOGOUT"),e("USER_SETTINGS_LOGOUT"),e("TOOLBOX_IMG_LIST_RESET"),e("UPLOAD_IMG_LIST_RESET"),localStorage.clear(),sessionStorage.clear()}},getters:{}}),et=Symbol("vuex-store");function at(){return f(et)}const tt=(e,a="")=>{const{owner:t,selectedRepo:l,selectedBranch:i}=e;return new Promise((async e=>{const n=await Ge({url:`/repos/${t}/${l}/contents/${a}`,method:"GET",params:{ref:i}});n&&n.length?e(n.filter((e=>"dir"===e.type)).map((e=>({value:e.name,label:e.name})))):e(null)}))},lt=(e,a="")=>{const{owner:t,selectedRepo:l,selectedBranch:i}=e;return new Promise((async e=>{const n=await Ge({url:`/repos/${t}/${l}/contents/${a}`,method:"GET",params:{"no-cache":xa(),ref:i}});n&&n.length?(n.filter((e=>"dir"===e.type)).forEach((e=>Za.dispatch("DIR_IMAGE_LIST_ADD_DIR",e.path))),setTimeout((()=>{n.filter((e=>"file"===e.type&&Ua(Ma(e.name)))).forEach((e=>{var t,l;Za.dispatch("DIR_IMAGE_LIST_ADD_IMAGE",(t=e,l=a,{type:"image",uuid:xa(),dir:l,name:t.name,sha:t.sha,path:t.path,deleting:!1,size:t.size,checked:!1}))}))}),120),e(!0)):e(null)}))},it=(e,a,t)=>Ge({url:`/repos/${e}/${a}/branches/${t}`,method:"GET"}),nt=(e,a)=>new Promise((async t=>{const l=await Ge({url:`/repos/${e}/${a}/branches`,method:"GET"});l&&l.length?t(l.filter((e=>!e.protected)).map((e=>({value:e.name,label:e.name}))).reverse()):t(null)})),st=(e,a,t,l)=>Ge({url:`/repos/${e}/${a}/contents/${t}`,method:"DELETE",data:{owner:e,repo:a,path:t,message:"Delete image via PicX(https://github.com/XPoet/picx)",sha:l}}),ot=(e,a,t)=>Ge({url:`/repos/${a}/${t}/git/blobs`,method:"POST",params:{owner:a,repo:t,content:(e.base64.compressBase64||e.base64.watermarkBase64||e.base64.originalBase64).split(",")[1],encoding:"base64"}}),rt=(e,a,t,l)=>{var i,n,s;return Ge({url:`/repos/${e}/${a}/git/trees`,method:"POST",params:{tree:t.map((e=>({path:e.path,mode:"100644",type:"blob",sha:e.sha}))),base_tree:(null==(s=null==(n=null==(i=null==l?void 0:l.commit)?void 0:i.commit)?void 0:n.tree)?void 0:s.sha)||null}})},ct=(e,a,t,l)=>Ge({url:`/repos/${e}/${a}/git/commits`,method:"POST",params:{tree:t.sha,parents:[l.commit.sha],message:"Upload images via PicX(https://github.com/XPoet/picx)"}}),dt=(e,a,t,l)=>Ge({url:`/repos/${e}/${a}/git/refs/heads/${t}`,method:"PATCH",params:{sha:l}}),ut=v({__name:"repo-dir-cascader",props:{elKey:{type:String,default:""},elSize:{type:String,default:ca.default},elWidth:{type:String,default:"100%"},elClearable:{type:Boolean,default:!1}},setup(e){const a=at(),t=_((()=>a.getters.getUserConfigInfo)).value,l={lazy:!0,checkStrictly:!0,async lazyLoad(e,a){const{level:l,pathLabels:i}=e;let n;n=0===l?t.dirList:await tt(t,i.join("/")),a(n?n.map((e=>({value:e.value,label:e.label,leaf:l>=4}))):[])}},i=e=>{t.selectedDirList=e,t.selectedDir=e.join("/"),a.dispatch("USER_CONFIG_INFO_PERSIST")};return(a,n)=>{const s=b;return y(),w(s,{style:k({width:e.elWidth}),size:e.elSize,debounce:500,props:l,key:e.elKey,modelValue:I(t).selectedDirList,"onUpdate:modelValue":n[0]||(n[0]=e=>I(t).selectedDirList=e),filterable:"",placeholder:a.$t("config.placeholder5"),clearable:e.elClearable,onChange:i},null,8,["style","size","modelValue","placeholder","clearable"])}}}),mt={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},gt=[S("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"},null,-1)];var pt={name:"ep-refresh",render:function(e,a){return y(),x("svg",mt,[...gt])}},ht=(e,a)=>{const t=e.__vccOpts||e;for(const[l,i]of a)t[l]=i;return t};var ft=ht(v({__name:"refresh-config",props:{boxWidth:{type:Number,default:20},dataType:{type:String,default:"repo"}},setup(e){const a=D(),t=at(),l=_((()=>t.getters.getUserConfigInfo)).value,i=e,n=async()=>{const e=r.service({lock:!0,text:a.proxy.$t("config.loading4",{type:a.proxy.$t(i.dataType)})}),{owner:n,selectedRepo:s}=l;if("repo"===i.dataType){const e=await Xe(n);e&&(l.repoList=e)}else if("branch"===i.dataType){const e=await nt(n,s);e&&(l.branchList=e)}e.close(),await t.dispatch("USER_CONFIG_INFO_PERSIST")};return(a,t)=>{const l=pt,i=L,s=T;return y(),x("div",{class:"refresh-config-box",style:k({width:e.boxWidth+"rem"})},[$(s,{placement:"top",content:a.$t("config.reload",{type:a.$t(e.dataType)})},{default:C((()=>[$(i,{class:"icon",onClick:n},{default:C((()=>[$(l)])),_:1})])),_:1},8,["content"])],4)}}}),[["__scopeId","data-v-45c6dcd0"]]);const vt=_((()=>Za.getters.getUserConfigInfo)).value,_t=()=>{Za.dispatch("LOGOUT")},bt=()=>{Za.dispatch("USER_CONFIG_INFO_PERSIST")};function yt(e){vt.logined=!0,vt.owner=e.login,vt.name=e.name,vt.email=e.email,vt.avatarUrl=e.avatar_url,bt()}const wt=async e=>{const{selectedDir:a,dirMode:t}=vt;let l=e("config.message6");if(""===a){switch(t){case oa.newDir:l=e("config.message7");break;case oa.repoDir:l=e("config.message8",{repo:vt.selectedRepo})}o.warning({message:l})}else await ds.push("/upload")},kt=async e=>{const{token:a}=vt;if(!a)return void o.error({message:e("config.message1")});const t=r.service({lock:!0,text:e("config.loading6")});try{const a=await Fe(vt.token);if(!a)return t.close(),void o.error({message:e("config.message2")});yt(a);const l=await(e=>Ge({url:"/user/repos",method:"POST",params:{name:"picx-images-hosting",description:"PicX images hosting repository",private:!1},headers:{Authorization:`token ${e}`},success422:!0}))(vt.token);if(!l)return t.close(),void o.error({message:e("config.message3")});vt.repoList=[{value:"picx-images-hosting",label:"picx-images-hosting"}],vt.selectedRepo="picx-images-hosting",vt.branchList=[{value:"master",label:"master"}],vt.selectedBranch="master",vt.branchMode=na.repoBranch,vt.selectedDir=$a("yyyyMMdd"),vt.dirMode=oa.autoDir,vt.dirList=[],bt(),await We(vt,!1),t.close(),o.success({message:e("config.message4")}),await ds.push("/upload")}catch(l){o.error({message:e("config.message5")}),console.error("oneClickAutoConfig >> ",l)}},It=e=>e.language===ha.en?"100rem":"70rem",xt=e=>e.elementPlusSize===ca.large?"right":"top";const St={class:"page-container config-page-container"};var Lt=ht(v({__name:"my-config",setup(e){const a=at(),t=D(),l=E(!1),i=E(!1),n=E(!1),s=E(32),c=_((()=>a.getters.getUserConfigInfo)).value,d=_((()=>a.getters.getUserLoginStatus)).value,u=_((()=>a.getters.getUserSettings)).value,m=_((()=>!c.token||!c.owner)),g=_((()=>l.value||i.value||n.value)),p=E(null),h=E(null),f=E(""),v=E("repoDirCascaderKey"),b=E(null),S=e=>{var a;switch(e){case oa.rootDir:c.selectedDir="/";break;case oa.autoDir:c.selectedDir=$a("yyyyMMdd");break;case oa.newDir:c.selectedDir="xxx",null==(a=p.value)||a.focus();break;case oa.repoDir:c.dirList.length||(c.selectedDir="",c.selectedDirList=[]);break;default:c.selectedDir="/"}bt()};async function L(){i.value=!0;const e=await tt(c);i.value=!1,e&&(c.dirList=e),bt()}async function J(){var e,a;if(!c.token)return void o.error({message:null==(e=null==t?void 0:t.proxy)?void 0:e.$t("config.message1")});m.value||(vt.selectedRepo="",vt.repoList=[],vt.selectedBranch="",vt.branchMode=na.repoBranch,vt.branchList=[],vt.selectedDir="",vt.dirMode=oa.repoDir,vt.dirList=[]),l.value=!0;const i=await Fe(c.token);i?(yt(i),await async function(e){var a;const i=await Xe(e);l.value=!1,i?(c.repoList=i,bt()):o.error({message:null==(a=null==t?void 0:t.proxy)?void 0:a.$t("config.message9")})}(i.login)):o.error({message:null==(a=null==t?void 0:t.proxy)?void 0:a.$t("config.message11")})}function Y(e){c.branchList=[],c.dirList=[],a.dispatch("DIR_IMAGE_LOGOUT"),async function(e){var a;n.value=!0;const{owner:l,dirMode:i}=c,s=await nt(l,e);n.value=!1,s?(s.length>0?(c.branchList=s,c.selectedBranch=c.branchList[0].value,c.branchMode=na.repoBranch,await L()):(c.selectedBranch="master",c.branchMode=na.newBranch,await We(c)),S(i),bt()):o.error({message:null==(a=null==t?void 0:t.proxy)?void 0:a.$t("config.message10")})}(e),bt()}async function Q(e){c.selectedBranch=e,await L(),v.value=c.selectedBranch,c.selectedDir=c.dirList[0].value,c.selectedDirList=[c.selectedDir],bt()}const Z=()=>{var e,a;const l=f.value,i=c.branchList;l?i.find((e=>e.value===l))?o.error({message:null==(e=null==t?void 0:t.proxy)?void 0:e.$t("config.message13",{branch:l})}):(async(e,a,t)=>{const{owner:l,selectedRepo:i,branchList:n}=e,s=r.service({text:`正在新建 ${a} 分支...`});try{let e="";const r=await Ge({url:`/repos/${l}/${i}/git/refs/heads/${n[0].value}`,method:"GET"});if(r&&(e=r.object.sha),!e)return s.close(),void o.error("新建分支失败");let c="";const d=await Ge({url:`/repos/${l}/${i}/git/refs`,method:"POST",params:{ref:`refs/heads/${a}`,sha:e}});if(d&&(c=d.object.sha),!c)return s.close(),void o.error("新建分支失败");await Ge({url:`/repos/${l}/${i}/git/refs/heads/${a}`,method:"PATCH",params:{force:!0,sha:c}})&&t()}catch(c){console.error(c)}})(c,l,(()=>{var e;o.error({message:null==(e=null==t?void 0:t.proxy)?void 0:e.$t("config.message14",{branch:l})}),c.branchList.push({value:l,label:l})})):o.error({message:null==(a=null==t?void 0:t.proxy)?void 0:a.$t("config.message12")})};return O((()=>d),(e=>{e||(l.value=!1,i.value=!1,n.value=!1)})),R((()=>{c.token||setTimeout((()=>{b.value.focus()}),100)})),(e,a)=>{const t=A,o=N,r=M,d=T,_=U,L=z,D=P,E=ft,O=j,R=B,ee=ut,ae=V;return y(),x("div",St,[$(_,{"label-width":I(It)(I(u)),"label-position":I(xt)(I(u))},{default:C((()=>[$(o,{label:"Token"},{default:C((()=>[$(t,{ref_key:"tokenInputRef",ref:b,modelValue:I(c).token,"onUpdate:modelValue":a[0]||(a[0]=e=>I(c).token=e),clearable:"",autofocus:!I(c).token,type:"password","show-password":"",placeholder:e.$t("config.inputToken")},null,8,["modelValue","autofocus","placeholder"])])),_:1}),$(o,{class:"operation"},{default:C((()=>[$(d,{placement:"top",content:e.$t("config.manualConfiguration3")},{default:C((()=>[$(r,{disabled:g.value,plain:"",type:"primary","native-type":"submit",onClick:a[1]||(a[1]=H((e=>J()),["prevent"]))},{default:C((()=>[X(W(m.value?e.$t("config.manualConfiguration1"):e.$t("config.manualConfiguration2")),1)])),_:1},8,["disabled"])])),_:1},8,["content"]),$(d,{placement:"top",content:e.$t("config.autoConfiguration3")},{default:C((()=>[$(r,{plain:"",disabled:g.value,type:"primary",onClick:a[2]||(a[2]=H((a=>I(kt)(e.$t)),["prevent"]))},{default:C((()=>[X(W(m.value?e.$t("config.autoConfiguration1"):e.$t("config.autoConfiguration2")),1)])),_:1},8,["disabled"])])),_:1},8,["content"])])),_:1})])),_:1},8,["label-width","label-position"]),I(c).token&&I(c).owner?G((y(),w(_,{key:0,"label-width":I(It)(I(u)),"label-position":I(xt)(I(u)),"element-loading-text":e.$t("config.loading1")},{default:C((()=>[I(c).owner?(y(),w(o,{key:0,label:e.$t("config.username")},{default:C((()=>[$(t,{modelValue:I(c).owner,"onUpdate:modelValue":a[3]||(a[3]=e=>I(c).owner=e),readonly:""},null,8,["modelValue"])])),_:1},8,["label"])):F("",!0),I(c).email?(y(),w(o,{key:1,label:e.$t("config.email")},{default:C((()=>[$(t,{modelValue:I(c).email,"onUpdate:modelValue":a[4]||(a[4]=e=>I(c).email=e),readonly:""},null,8,["modelValue"])])),_:1},8,["label"])):F("",!0),I(c).repoList.length?(y(),w(o,{key:2,label:e.$t("config.selectRepo")},{default:C((()=>[$(D,{modelValue:I(c).selectedRepo,"onUpdate:modelValue":a[5]||(a[5]=e=>I(c).selectedRepo=e),filterable:!0,style:k({width:"calc(100% - "+s.value+"rem)"}),placeholder:e.$t("config.placeholder1"),onChange:Y},{default:C((()=>[(y(!0),x(q,null,K(I(c).repoList,((e,a)=>(y(),w(L,{key:a,label:e.label,value:e.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue","style","placeholder"]),$(E,{"box-width":s.value,"data-type":"repo"},null,8,["box-width"])])),_:1},8,["label"])):F("",!0)])),_:1},8,["label-width","label-position","element-loading-text"])),[[ae,l.value]]):F("",!0),I(c).token&&I(c).selectedRepo&&I(c).branchList.length?G((y(),w(_,{key:1,"label-width":I(It)(I(u)),"label-position":I(xt)(I(u)),"element-loading-text":e.$t("config.loading2")},{default:C((()=>[(I(c).selectedRepo,F("",!0)),I(c).branchList.length&&I(c).branchMode===I(na).repoBranch?(y(),w(o,{key:1,label:e.$t("config.selectBranch")},{default:C((()=>[$(D,{modelValue:I(c).selectedBranch,"onUpdate:modelValue":a[7]||(a[7]=e=>I(c).selectedBranch=e),filterable:!0,style:k({width:"calc(100% - "+s.value+"rem)"}),placeholder:e.$t("config.placeholder2"),onChange:Q},{default:C((()=>[(y(!0),x(q,null,K(I(c).branchList,((e,a)=>(y(),w(L,{key:a,label:e.label,value:e.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue","style","placeholder"]),$(E,{"box-width":s.value,"data-type":"branch"},null,8,["box-width"])])),_:1},8,["label"])):F("",!0),I(c).branchMode===I(na).newBranch?(y(),w(o,{key:2,label:e.$t("config.createBranch")},{default:C((()=>[$(t,{modelValue:f.value,"onUpdate:modelValue":a[8]||(a[8]=e=>f.value=e),onBlur:Z,clearable:"",placeholder:e.$t("config.placeholder3"),ref_key:"newBranchInputRef",ref:h},null,8,["modelValue","placeholder"])])),_:1},8,["label"])):F("",!0)])),_:1},8,["label-width","label-position","element-loading-text"])),[[ae,n.value]]):F("",!0),I(c).token&&I(c).selectedBranch?G((y(),w(_,{key:2,"label-width":I(It)(I(u)),"label-position":I(xt)(I(u)),"element-loading-text":e.$t("config.loading5")},{default:C((()=>[I(c).selectedBranch?(y(),w(o,{key:0,label:e.$t("config.dirMode")},{default:C((()=>[$(R,{modelValue:I(c).dirMode,"onUpdate:modelValue":a[9]||(a[9]=e=>I(c).dirMode=e),onChange:S},{default:C((()=>[$(d,{content:e.$t("config.inputNewDir"),placement:"top",offset:-1},{default:C((()=>[$(O,{label:"newDir"},{default:C((()=>[X(W(e.$t("config.createNewDir")),1)])),_:1})])),_:1},8,["content"]),$(d,{content:e.$t("config.rootDir2",{branch:I(c).selectedBranch}),placement:"top",offset:-1},{default:C((()=>[$(O,{label:"rootDir"},{default:C((()=>[X(W(e.$t("config.rootDir")),1)])),_:1})])),_:1},8,["content"]),$(d,{content:e.$t("config.autoDir2"),placement:"top",offset:-1},{default:C((()=>[$(O,{label:"autoDir"},{default:C((()=>[X(W(e.$t("config.autoDir")),1)])),_:1})])),_:1},8,["content"]),I(c).dirList.length&&"newBranch"!==I(c).branchMode?(y(),w(d,{key:0,content:e.$t("config.repoDir2",{branch:I(c).selectedBranch}),placement:"top",offset:-1},{default:C((()=>[$(O,{label:"repoDir"},{default:C((()=>[X(W(e.$t("config.repoDir",{repo:I(c).selectedRepo})),1)])),_:1})])),_:1},8,["content"])):F("",!0)])),_:1},8,["modelValue"])])),_:1},8,["label"])):F("",!0),"autoDir"===I(c).dirMode?(y(),w(o,{key:1,label:e.$t("config.autoDir")},{default:C((()=>[$(t,{modelValue:I(c).selectedDir,"onUpdate:modelValue":a[10]||(a[10]=e=>I(c).selectedDir=e),readonly:""},null,8,["modelValue"])])),_:1},8,["label"])):F("",!0),"rootDir"===I(c).dirMode?(y(),w(o,{key:2,label:e.$t("config.rootDir")},{default:C((()=>[$(t,{modelValue:I(c).selectedDir,"onUpdate:modelValue":a[11]||(a[11]=e=>I(c).selectedDir=e),readonly:""},null,8,["modelValue"])])),_:1},8,["label"])):F("",!0),"newDir"===I(c).dirMode?(y(),w(o,{key:3,label:e.$t("config.createNewDir")},{default:C((()=>[$(t,{ref_key:"newDirInputRef",ref:p,modelValue:I(c).selectedDir,"onUpdate:modelValue":a[12]||(a[12]=e=>I(c).selectedDir=e),onInput:a[13]||(a[13]=e=>I(bt)()),clearable:"",placeholder:e.$t("config.placeholder4")},null,8,["modelValue","placeholder"])])),_:1},8,["label"])):F("",!0),I(c).dirList.length&&"repoDir"===I(c).dirMode&&"newBranch"!==I(c).branchMode?(y(),w(o,{key:4,label:e.$t("config.selectDir")},{default:C((()=>[$(ee,{"el-key":v.value,"el-size":I(u).elementPlusSize},null,8,["el-key","el-size"])])),_:1},8,["label"])):F("",!0)])),_:1},8,["label-width","label-position","element-loading-text"])),[[ae,i.value]]):F("",!0),I(c).token?(y(),w(_,{key:3,"label-width":I(It)(I(u)),"label-position":I(xt)(I(u))},{default:C((()=>[$(o,{class:"operation"},{default:C((()=>[I(c).owner?(y(),w(r,{key:0,plain:"",disabled:g.value,type:"warning",onClick:a[14]||(a[14]=e=>I(_t)())},{default:C((()=>[X(W(e.$t("reset")),1)])),_:1},8,["disabled"])):F("",!0),I(c).selectedRepo?(y(),w(r,{key:1,plain:"",disabled:g.value,type:"success",onClick:a[15]||(a[15]=a=>I(wt)(e.$t))},{default:C((()=>[X(W(e.$t("confirm")),1)])),_:1},8,["disabled"])):F("",!0)])),_:1})])),_:1},8,["label-width","label-position"])):F("",!0)])}}}),[["__scopeId","data-v-6ff20fd0"]]);const Tt={key:0,class:"selected-info-bar-box"},$t={class:"info-item repo"},Ct={key:0,class:"info-item branch"},Dt={class:"info-item dir"};var Et=ht(v({__name:"selected-info-bar",props:{barType:{type:String,default:"upload"}},setup(e){const a=at(),t=_((()=>a.getters.getUserConfigInfo)),l=_((()=>a.getters.getUserSettings));return(a,i)=>{const n=J,s=ut;return t.value.selectedRepo?(y(),x("div",Tt,[S("span",$t,[X(W(a.$t("repo"))+": ",1),$(n,{"disable-transitions":""},{default:C((()=>[X(W(t.value.selectedRepo),1)])),_:1})]),t.value.selectedBranch?(y(),x("span",Ct,[X(W(a.$t("branch"))+": ",1),$(n,{"disable-transitions":""},{default:C((()=>[X(W(t.value.selectedBranch),1)])),_:1})])):F("",!0),S("span",Dt,[X(W(a.$t("dir"))+": ",1),t.value.dirMode!==I(oa).repoDir||"management"===e.barType?(y(),w(n,{key:0,"disable-transitions":""},{default:C((()=>[X(W("management"===e.barType?t.value.viewDir:t.value.selectedDir),1)])),_:1})):F("",!0),t.value.dirMode===I(oa).repoDir&&"upload"===e.barType?(y(),w(s,{key:1,"el-size":l.value.elementPlusSize===I(ca).large?I(ca).default:l.value.elementPlusSize,"el-width":"","el-clearable":!1},null,8,["el-size"])):F("",!0)])])):F("",!0)}}}),[["__scopeId","data-v-02ac177a"]]);const Ot={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Rt=[S("path",{fill:"currentColor",d:"M544 864V672h128L512 480L352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6H544z"},null,-1)];var At={name:"ep-upload-filled",render:function(e,a){return y(),x("svg",Ot,[...Rt])}};const Nt=["onDrop","onPaste"],Mt=(e=>(Z("data-v-7144607c"),e=e(),ee(),e))((()=>S("label",{for:"input-file-selector"},null,-1))),Ut={key:0,class:"upload-area-tips"},zt={class:"text"},Pt=["src"];var jt=ht(v({__name:"getting-images",props:{disabled:{type:Boolean,default:!1}},emits:["getImgList"],setup(e,{expose:a,emit:t}){const l=at(),i=_((()=>l.getters.getUploadAreaActive)),n=E({uuid:"",base64:""}),s=E([]),o=t,r=()=>{const e=s.value.length,a=e>0?s.value[e-1]:{uuid:"",base64:""};n.value={uuid:a.uuid,base64:a.base64}},c=async e=>{if(e.length){s.value=[];for(const a of e){const e=await Pa(a);e&&s.value.push(e)}r(),l.commit("CHANGE_UPLOAD_AREA_ACTIVE",!0),o("getImgList",s.value)}},d=async e=>{const a=e.target;await c(a.files),a.value="",a.value=a.defaultValue},u=async e=>{await c(e.dataTransfer.files)},m=async e=>{const a=Array.from(e.clipboardData.items).filter((e=>"file"===e.kind&&Ua(e.type))).map((e=>e.getAsFile()));await c(a)};return R((()=>{window.addEventListener("paste",m)})),Y((()=>{window.removeEventListener("paste",m)})),a({reset:()=>{s.value=[],n.value.uuid="",n.value.base64=""},remove:e=>{const a=s.value.findIndex((a=>a.uuid===e));-1!==a&&s.value.splice(a,1),e===n.value.uuid&&r()}}),(a,t)=>{const l=At,s=L;return y(),x("div",{class:Q(["getting-images-container",{focus:i.value&&n.value.base64,disabled:e.disabled}]),onDragover:t[0]||(t[0]=H((()=>{}),["prevent"])),onDrop:H(u,["stop","prevent"]),onPaste:H(m,["stop"])},[Mt,S("input",{id:"input-file-selector",type:"file",accept:"image/*",onChange:d,multiple:"multiple"},null,32),n.value.base64?F("",!0):(y(),x("div",Ut,[$(s,{class:"icon"},{default:C((()=>[$(l)])),_:1}),S("div",zt,W(a.$t("upload.uploadAreaTips")),1)])),n.value.base64?(y(),x("img",{key:1,class:"preview-img",src:n.value.base64},null,8,Pt)):F("",!0)],42,Nt)}}}),[["__scopeId","data-v-7144607c"]]);const Bt=_((()=>Za.getters.getUserSettings)).value,Vt=async e=>{const{starred:a}=e;if(!a){await((e="XPoet/picx")=>Ge({url:`/user/starred/${e}`,method:"PUT",data:{},noShowErrorMsg:!0}))()&&await Za.dispatch("SET_USER_SETTINGS",{starred:!0})}},Gt=(e,a,t)=>{var l;let i=t.selectedDir;(null==(l=null==a?void 0:a.reUploadInfo)?void 0:l.isReUpload)&&(i=a.reUploadInfo.dir),a.uploadStatus.progress=100,a.uploadStatus.uploading=!1;const n={checked:!1,type:"image",uuid:a.uuid,dir:i,name:e.name,sha:e.sha,path:e.path,deleting:!1,size:e.size};a.uploadedImg=n,Za.dispatch("DIR_IMAGE_LIST_ADD_DIR",i),Za.dispatch("DIR_IMAGE_LIST_ADD_IMAGE",n)};function Ft(e,a){const{selectedBranch:t,email:l,owner:i}=e,n={message:"Upload image via PicX(https://github.com/XPoet/picx)",branch:t,content:(a.base64.compressBase64||a.base64.watermarkBase64||a.base64.originalBase64).split(",")[1]};return l&&(n.committer={name:i,email:l}),a.uploadStatus.uploading=!0,new Promise((async t=>{const l=await((e,a)=>Ge({url:e,method:"PUT",data:a}))(((e,a)=>{var t;const{owner:l,selectedRepo:i,selectedDir:n}=e,s=a.filename.final;let o=s;return"/"!==n&&(o=`${n}/${s}`),(null==(t=null==a?void 0:a.reUploadInfo)?void 0:t.isReUpload)&&(o=a.reUploadInfo.path),`/repos/${l}/${i}/contents/${o}`})(e,a),n);if(a.uploadStatus.uploading=!1,l){const{name:i,sha:n,path:s,size:o}=l.content;Gt({name:i,sha:n,path:s,size:o},a,e),t(!0)}else t(!1)}))}const Ht={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Xt=[S("path",{fill:"currentColor",d:"M406.656 706.944L195.84 496.256a32 32 0 1 0-45.248 45.248l256 256l512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1)];var Wt={name:"ep-check",render:function(e,a){return y(),x("svg",Ht,[...Xt])}};const qt={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Kt=[S("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-578.304V704h-64V247.296L237.248 490.048L192 444.8L508.8 128l316.8 316.8l-45.312 45.248L544 253.696z"},null,-1)];var Jt={name:"ep-upload",render:function(e,a){return y(),x("svg",qt,[...Kt])}};const Yt={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Qt=[S("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),S("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768a384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896a448 448 0 0 1 0 896z"},null,-1)];var Zt={name:"ep-remove",render:function(e,a){return y(),x("svg",Yt,[...Qt])}};const el={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},al=[S("path",{fill:"currentColor",d:"M672 192L288 511.936L672 832z"},null,-1)];var tl={name:"ep-caret-left",render:function(e,a){return y(),x("svg",el,[...al])}};const ll={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},il=[S("path",{fill:"currentColor",d:"m192 384l320 384l320-384z"},null,-1)];var nl={name:"ep-caret-bottom",render:function(e,a){return y(),x("svg",ll,[...il])}};const sl=(e,a)=>{a.filename.isPrefixNaming=e,a.filename.name=e?`${a.filename.prefixName}${a.filename.initName}`:`${a.filename.initName}`,a.filename.isAddHash?a.filename.final=`${a.filename.name}.${a.filename.hash}.${a.filename.suffix}`:a.filename.final=`${a.filename.name}.${a.filename.suffix}`},ol=(e,a)=>{a.filename.isAddHash=e,a.filename.final=e?`${a.filename.name}.${a.filename.hash}.${a.filename.suffix}`:`${a.filename.name}.${a.filename.suffix}`};const rl=["element-loading-text"],cl={class:"before-upload-handle-container"},dl={class:"img-name text-ellipsis"},ul={class:"operate-item"},ml={class:"operate-item"},gl={class:"operate-item"},pl={key:0,class:"operate-item"},hl={key:1,class:"img-info-box"},fl={class:"file-size-box"},vl={key:0,class:"finial-file-size file-size-item"},_l={class:"last-modified"};var bl=ht(v({__name:"upload-image-card",props:{imgObj:{type:Object,require:!0,default:()=>({})}},emits:["remove"],setup(e,{emit:a}){const t=at(),l=D(),i=e,n=a,s=E(null),o=_((()=>t.getters.getUserSettings)).value,r=_((()=>t.getters.getUserConfigInfo)).value,c=E(""),d=ae({isHash:!1,isPrefixNaming:!1,isTimestampNaming:!1,isRename:!1,newName:""}),u=E(!0),m=()=>{var e,a;i.imgObj.filename.newName=d.newName,setTimeout((()=>{var e;null==(e=s.value)||e.focus()}),100),e=d.isRename,(a=i.imgObj).filename.isRename=e,e?a.filename.name=a.filename.newName.trim().replace(/\s+/g,"-"):sl(a.filename.isPrefixNaming,a),a.filename.isAddHash?a.filename.final=`${a.filename.name}.${a.filename.hash}.${a.filename.suffix}`:a.filename.final=`${a.filename.name}.${a.filename.suffix}`},g=e=>{const{suffix:a,isPrefixNaming:t,isAddHash:l}=i.imgObj.filename;e?(d.isHash=!1,d.isPrefixNaming=!1,i.imgObj.filename.final=`${Date.now()}.${a}`):(sl(t,i.imgObj),ol(l,i.imgObj),d.isHash=l,d.isPrefixNaming=t)};return O((()=>i.imgObj.uploadStatus),(e=>{e.uploading&&(c.value=l.proxy.$t("upload.loading1"))}),{deep:!0,immediate:!0}),R((async()=>{await(async(e,a)=>{const{watermark:t,compress:l}=a;let i=e.fileInfo.originalFile;var n;t.enable&&t.text&&!e.fileInfo.watermarkFile&&(e.beforeUploadStatus.watermarking=!0,e.fileInfo.watermarkFile=(n=e.fileInfo.originalFile.type,/(png|jpg|jpeg|webp|avif)$/.test(n)?await Da(e.fileInfo.originalFile,t):e.fileInfo.originalFile),i=e.fileInfo.watermarkFile,e.base64.watermarkBase64=await Ra(i),e.beforeUploadStatus.watermarking=!1),l.enable&&!e.fileInfo.compressFile&&(e.beforeUploadStatus.compressing=!0,e.fileInfo.compressFile=await ja(i,l.encoder),i=e.fileInfo.compressFile,e.base64.compressBase64=await Ra(i),e.filename.suffix=Ma(i.name),e.beforeUploadStatus.compressing=!1)})(i.imgObj,o),(()=>{const{imageName:e}=o;0===i.imgObj.uploadStatus.progress&&(i.imgObj.filename.isTimestampNaming=e.autoTimestampNaming,i.imgObj.filename.isTimestampNaming?(i.imgObj.filename.isAddHash=!1,i.imgObj.filename.isPrefixNaming=!1,g(!0)):(i.imgObj.filename.isAddHash=e.autoAddHash,i.imgObj.filename.isPrefixNaming=e.prefixNaming.enable,i.imgObj.filename.prefixName=e.prefixNaming.prefix,sl(e.prefixNaming.enable,i.imgObj),ol(e.autoAddHash,i.imgObj)),d.isTimestampNaming=i.imgObj.filename.isTimestampNaming,d.isHash=i.imgObj.filename.isAddHash,d.isPrefixNaming=i.imgObj.filename.isPrefixNaming,d.isRename=i.imgObj.filename.isRename,d.newName=i.imgObj.filename.newName)})()})),(a,t)=>{var l,p,h,f,v,_,b,k;const D=te,E=nl,O=tl,R=L,N=T,M=le,U=A,z=Zt,P=Jt,j=Wt,B=V;return y(),x("div",{class:Q(["upload-image-card-container",{"wait-upload":!e.imgObj.uploadStatus.uploading&&0===e.imgObj.uploadStatus.progress,uploading:e.imgObj.uploadStatus.uploading&&100!==e.imgObj.uploadStatus.progress,uploaded:!e.imgObj.uploadStatus.uploading&&100===e.imgObj.uploadStatus.progress}])},[G((y(),x("div",{class:"img-show-container","element-loading-text":c.value},[$(D,{src:e.imgObj.base64.compressBase64||e.imgObj.base64.watermarkBase64||e.imgObj.base64.originalBase64,fit:"cover",loading:"lazy","hide-on-click-modal":!0,"preview-src-list":[e.imgObj.base64.compressBase64||e.imgObj.base64.watermarkBase64||e.imgObj.base64.originalBase64]},null,8,["src","preview-src-list"])],8,rl)),[[B,e.imgObj.uploadStatus.uploading||e.imgObj.beforeUploadStatus.compressing||e.imgObj.beforeUploadStatus.watermarking]]),S("div",cl,[S("div",{class:Q(["img-name-box",{"no-border":100===e.imgObj.uploadStatus.progress}])},[S("span",dl,W(e.imgObj.filename.final||e.imgObj.filename.name),1),0===e.imgObj.uploadStatus.progress?(y(),w(N,{key:0,placement:"top",offset:8,content:u.value?a.$t("upload.expand"):a.$t("upload.fold")},{default:C((()=>[$(R,{class:"fold-btn",onClick:t[0]||(t[0]=e=>u.value=!u.value)},{default:C((()=>[u.value?F("",!0):(y(),w(E,{key:0})),u.value?(y(),w(O,{key:1})):F("",!0)])),_:1})])),_:1},8,["content"])):F("",!0)],2),0===e.imgObj.uploadStatus.progress?(y(),x("div",{key:0,class:Q(["img-name-operate-box",{folded:u.value}])},[S("div",ul,[$(M,{label:a.$t("upload.hash"),modelValue:d.isHash,"onUpdate:modelValue":t[1]||(t[1]=e=>d.isHash=e),onChange:t[2]||(t[2]=e=>{return a=e,d.isTimestampNaming=!1,void ol(a,i.imgObj);var a})},null,8,["label","modelValue"])]),S("div",ml,[$(M,{label:a.$t("upload.rename"),modelValue:d.isRename,"onUpdate:modelValue":t[3]||(t[3]=e=>d.isRename=e),onChange:m},null,8,["label","modelValue"]),e.imgObj.filename.isRename?(y(),w(U,{key:0,class:"rename-input",size:"small",modelValue:d.newName,"onUpdate:modelValue":t[4]||(t[4]=e=>d.newName=e),onInput:m,maxlength:I(18),ref_key:"renameInputRef",ref:s,clearable:""},null,8,["modelValue","maxlength"])):F("",!0)]),S("div",gl,[$(M,{label:a.$t("upload.timestamp-naming"),modelValue:d.isTimestampNaming,"onUpdate:modelValue":t[5]||(t[5]=e=>d.isTimestampNaming=e),onChange:g},null,8,["label","modelValue"])]),!e.imgObj.filename.isRename&&I(o).imageName.prefixNaming.enable&&I(o).imageName.prefixNaming.prefix?(y(),x("div",pl,[$(M,{label:a.$t("upload.prefixNaming"),modelValue:d.isPrefixNaming,"onUpdate:modelValue":t[6]||(t[6]=e=>d.isPrefixNaming=e),onChange:t[7]||(t[7]=e=>{return a=e,d.isTimestampNaming=!1,void sl(a,i.imgObj);var a})},null,8,["label","modelValue"])])):F("",!0)],2)):F("",!0),0===e.imgObj.uploadStatus.progress?(y(),x("div",hl,[S("div",fl,[S("span",{class:Q(["original-file-size file-size-item",{"del-line":null==(p=null==(l=e.imgObj.fileInfo)?void 0:l.compressFile)?void 0:p.size}])},W(I(za)(null==(h=e.imgObj.fileInfo.originalFile)?void 0:h.size))+" KB ",3),(null==(v=null==(f=e.imgObj.fileInfo)?void 0:f.compressFile)?void 0:v.size)?(y(),x("span",vl,W(I(za)(null==(b=null==(_=e.imgObj.fileInfo)?void 0:_.compressFile)?void 0:b.size))+" KB ",1)):F("",!0)]),S("span",_l,W(I($a)("yyyy-MM-dd hh:mm",null==(k=e.imgObj.fileInfo.originalFile)?void 0:k.lastModified)),1)])):F("",!0)]),100===e.imgObj.uploadStatus.progress?(y(),x("div",{key:0,class:"after-upload-handle-container flex-center",onClick:t[8]||(t[8]=a=>I(Fa)(e.imgObj.uploadedImg,I(r),I(o)))},W(a.$t("upload.copyLink")),1)):F("",!0),0===e.imgObj.uploadStatus.progress?(y(),w(N,{key:1,placement:"top",offset:8,content:a.$t("upload.delete")},{default:C((()=>[$(R,{class:"del-img-btn",onClick:t[9]||(t[9]=a=>{return t=e.imgObj.uuid,void n("remove",t);var t})},{default:C((()=>[$(z)])),_:1})])),_:1},8,["content"])):F("",!0),S("div",{class:Q(["upload-status-box",{"wait-upload":!e.imgObj.uploadStatus.uploading&&0===e.imgObj.uploadStatus.progress,uploaded:!e.imgObj.uploadStatus.uploading&&100===e.imgObj.uploadStatus.progress}])},[$(R,null,{default:C((()=>[e.imgObj.uploadStatus.uploading||0!==e.imgObj.uploadStatus.progress?F("",!0):(y(),w(P,{key:0})),e.imgObj.uploadStatus.uploading||100!==e.imgObj.uploadStatus.progress?F("",!0):(y(),w(j,{key:1}))])),_:1})],2)],2)}}}),[["__scopeId","data-v-5045012e"]]);const yl={class:"upload-page-container"},wl={key:0,class:"upload-page-left page-container",style:{width:"300rem"}},kl={class:"row-item"},Il={class:"content-box"},xl={class:"row-item"},Sl={class:"content-box upload-area-status"},Ll={key:0},Tl={key:0,class:"row-item"},$l={class:"content-box",style:{"text-align":"right"}},Cl={class:"shortcut-key"},Dl={class:"shortcut-key"},El=v({__name:"upload-image",setup(e){const a=at(),t=ie(),l=D(),i=E(null),s=_((()=>a.getters.getUserConfigInfo)).value,r=_((()=>a.getters.getUserSettings)).value,c=_((()=>a.getters.getUserLoginStatus)),d=E([]),u=E(!1),m=_((()=>"mac"===Xa()?"Command":"Ctrl")),g=e=>{e.forEach((e=>{a.dispatch("UPLOAD_IMG_LIST_ADD",(e=>{const a={uuid:"",base64:{originalBase64:"",watermarkBase64:null,compressBase64:null},fileInfo:{originalFile:null,watermarkFile:null,compressFile:null},filename:{hash:"",suffix:"",name:"",prefixName:"",final:"",initName:"",newName:"",isAddHash:!0,isRename:!1,isPrefixNaming:!1,isTimestampNaming:!1},beforeUploadStatus:{watermarking:!1,compressing:!1},uploadStatus:{progress:0,uploading:!1},reUploadInfo:{dir:"",path:"",isReUpload:!1}};a.uuid=e.uuid,a.base64.originalBase64=e.base64,a.fileInfo.originalFile=e.file;const{imageName:t}=Bt,l=e.uuid,i=e.file.name.trim().replaceAll(" ","-"),n=i.lastIndexOf("."),s=i.slice(0,n),o=i.slice(n+1);return a.filename.initName=s,a.filename.name=t.prefixNaming.enable?`${t.prefixNaming.prefix}${s}`:s,a.filename.prefixName=t.prefixNaming.prefix,a.filename.hash=l,a.filename.suffix=o,a.filename.final=t.autoAddHash?`${a.filename.name}.${l}.${o}`:`${a.filename.name}.${o}`,a.filename.isAddHash=t.autoAddHash,a.filename.isPrefixNaming=t.prefixNaming.enable,a.filename.isTimestampNaming=t.autoTimestampNaming,a})(e))}))},p=()=>{var e;null==(e=i.value)||e.reset()},h=async e=>1===e.length?await Ft(s,e[0])?Ze.uploaded:Ze.uploadFail:e.length>1?await async function(e,a){const{selectedBranch:t,selectedRepo:l,selectedDir:i,owner:s}=e,r=[];for(const g of a){g.uploadStatus.uploading=!0;const e=await ot(g,s,l);e?r.push(n({img:g},e)):(g.uploadStatus.uploading=!1,o.error(`${g.filename.final} 上传失败`))}const c=await it(s,l,t);if(!c)return Promise.resolve(!1);const d="/"===i?"":`${i}/`,u=await rt(s,l,r.map((e=>({sha:e.sha,path:`${d}${e.img.filename.final}`}))),c);if(!u)return Promise.resolve(!1);const m=await ct(s,l,u,c);return m&&await dt(s,l,t,m.sha)?(r.forEach((a=>{const t=a.img.filename.final;Gt({name:t,sha:a.sha,path:`${d}${t}`,size:0},a.img,e)})),Promise.resolve(!0)):Promise.resolve(!1)}(s,e)?Ze.allUploaded:Ze.uploadFail:void 0,f=async(e,t=!1)=>{p(),t?Ha(e,s,r,!0):Fa(e[0],s,r,!0),await a.dispatch("SET_USER_CONFIG_INFO",{viewDir:s.selectedDir}),await Vt(r)},v=async()=>{var e,a,i,n,r,c,m;const{token:g,selectedRepo:p,selectedDir:v}=s;if(!g)return o.error({message:null==(e=null==l?void 0:l.proxy)?void 0:e.$t("upload.message1")}),void(await t.push("/config"));if(!p)return o.error({message:null==(a=null==l?void 0:l.proxy)?void 0:a.$t("upload.message2")}),void(await t.push("/config"));if(!v)return o.error({message:null==(i=null==l?void 0:l.proxy)?void 0:i.$t("upload.message3")}),void(await t.push("/config"));const _=d.value.filter((e=>0===e.uploadStatus.progress));if(0===_.length)return void o.error({message:null==(n=null==l?void 0:l.proxy)?void 0:n.$t("upload.message4")});u.value=!0;const b=await h(_);u.value=!1;const y=_.filter((e=>100===e.uploadStatus.progress)).map((e=>e.uploadedImg));switch(b){case Ze.uploaded:o.success({message:null==(r=null==l?void 0:l.proxy)?void 0:r.$t("upload.message5")}),await f(y);break;case Ze.allUploaded:o.success({message:null==(c=null==l?void 0:l.proxy)?void 0:c.$t("upload.message6")}),await f(y,!0);break;case Ze.uploadFail:o.error({message:null==(m=null==l?void 0:l.proxy)?void 0:m.$t("upload.message7")})}},b=()=>{u.value=!1,a.dispatch("UPLOAD_IMG_LIST_RESET"),p()};O((()=>c),(e=>{!e&&b()})),O((()=>a.state.uploadImageListModule.uploadImageList),(e=>{d.value=e}),{immediate:!0,deep:!0});return R((()=>{document.addEventListener("keydown",(e=>{const a=e.keyCode||e.which||e.charCode,t=e.ctrlKey||e.metaKey;t&&65===a&&d.value.length&&(b(),e.preventDefault()),t&&83===a&&(u.value||(v(),e.preventDefault()))}))})),(e,t)=>{const l=jt,n=Et,s=M;return y(),x("div",yl,[!d.value.length||I(r).elementPlusSize!==I(ca).large&&I(r).elementPlusSize!==I(ca).default?F("",!0):(y(),x("div",wl,[(y(!0),x(q,null,K(d.value,((e,l)=>(y(),x("div",{class:"uploaded-item",key:l+e.uuid},[$(bl,{"img-obj":e,onRemove:t[0]||(t[0]=e=>{return t=e,a.dispatch("UPLOAD_IMG_LIST_REMOVE",t),void(null==(l=i.value)||l.remove(t));var t,l})},null,8,["img-obj"])])))),128))])),S("div",{class:Q(["upload-page-right page-container",{"has-left":d.value.length}])},[S("div",kl,[S("div",Il,[$(l,{disabled:u.value,ref_key:"gettingImagesRef",ref:i,onGetImgList:g},null,8,["disabled"])])]),S("div",xl,[S("div",Sl,[$(n),d.value.length?(y(),x("div",Ll,W(e.$t("upload.uploaded"))+":"+W(d.value.filter((e=>100===e.uploadStatus.progress)).length)+" / "+W(d.value.length),1)):F("",!0)])]),d.value.length?(y(),x("div",Tl,[S("div",$l,[$(s,{disabled:u.value,plain:"",type:"warning",onClick:b},{default:C((()=>[X(W(e.$t("reset"))+" ",1),S("span",Cl,"[ "+W(m.value)+" + A ]",1)])),_:1},8,["disabled"]),$(s,{disabled:u.value,plain:"",type:"primary",onClick:v},{default:C((()=>[X(W(e.$t("upload.upload"))+" ",1),S("span",Dl,"[ "+W(m.value)+" + S ]",1)])),_:1},8,["disabled"])])])):F("",!0)],2)])}}}),Ol={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Rl=[S("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224a112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224a112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224a112 112 0 0 1 0-224z"},null,-1)];var Al={name:"ep-more-filled",render:function(e,a){return y(),x("svg",Ol,[...Rl])}};const Nl={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Ml=[S("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64h64z"},null,-1),S("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64H384zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64z"},null,-1)];var Ul={name:"ep-copy-document",render:function(e,a){return y(),x("svg",Nl,[...Ml])}};const zl={class:"copy-image-link-box border-box"};var Pl=ht(v({__name:"copy-image-link",props:{imgObj:{type:Object,default:()=>{}}},setup(e){const a=e,t=_((()=>Za.getters.getUserSettings)).value,l=_((()=>Za.getters.getUserConfigInfo)).value,i=_((()=>t.imageLinkFormat.enable?`${t.imageLinkType.selected} & ${t.imageLinkFormat.selected}`:`${t.imageLinkType.selected}`));let n=E(a.imgObj).value;const s=()=>{Fa(n,l,t)};return ne((()=>{n=a.imgObj})),(e,a)=>{const t=Ul,l=L,n=M,o=T;return y(),x("div",zl,[$(o,{content:i.value,placement:"top"},{default:C((()=>[$(n,{plain:"",type:"primary",size:"default",onClick:s},{default:C((()=>[$(l,null,{default:C((()=>[$(t)])),_:1}),X(" "+W(e.$t("upload.copyLink")),1)])),_:1})])),_:1},8,["content"])])}}}),[["__scopeId","data-v-51c845f6"]]);const jl={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Bl=[S("path",{fill:"currentColor",d:"M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1)];var Vl={name:"ep-close",render:function(e,a){return y(),x("svg",jl,[...Bl])}};const Gl=["element-loading-text"],Fl={class:"image-box"},Hl={class:"info-box"},Xl={class:"image-info"},Wl={key:0,class:"rename-operate"},ql={key:1,class:"filename"},Kl={class:"copy-link-box border-box"},Jl={class:"operation-box"},Yl={class:"operation-left"},Ql={class:"operation-right"},Zl={class:"operation-btn"};var ei=ht(v({__name:"image-card",props:{imageObj:{type:Object,default:()=>({})},isUploaded:{type:Boolean,default:!1}},setup(e){const a=e,t=D(),l=at(),i=se(),n=_((()=>l.getters.getUserConfigInfo)).value,s=_((()=>l.getters.getUserSettings)).value,c=_((()=>"/management"===i.path)),d=_((()=>Ba(a.imageObj,n,s))),u=E(),m=E(""),g=E(!1),h=E(!1),f=E(!1),v=(e,a=!1)=>{a||(e.deleting=!0);const{owner:i,selectedRepo:s}=n,{path:r,sha:c}=e;return new Promise((async n=>{var d,u;await st(i,s,r,c)?(a?(g.value=!1,o.success({message:null==(d=null==t?void 0:t.proxy)?void 0:d.$t("management.message4")})):o.success({message:null==(u=null==t?void 0:t.proxy)?void 0:u.$t("management.message5")}),await l.dispatch("DIR_IMAGE_LIST_REMOVE",e),await l.dispatch("UPLOAD_IMG_LIST_REMOVE",e.uuid),n(!0)):n(!1)}))},b=async()=>{var e,i,c,h,f;const{imageObj:_}=a;if(!m.value)return o.error({message:null==(e=null==t?void 0:t.proxy)?void 0:e.$t("management.message1")}),void(null==(i=u.value)||i.focus());if(m.value===Na(_.name))return o.error({message:null==(c=null==t?void 0:t.proxy)?void 0:c.$t("management.message2")}),void(g.value=!1);const b=async()=>{var e,a,i;const c=r.service({lock:!0,text:null==(e=null==t?void 0:t.proxy)?void 0:e.$t("management.loadingTxt2")}),u=Ma(_.name),p=xa(),h=`${m.value}${s.imageName.autoAddHash?`.${p}`:""}.${u}`;let f;var b;if(f=u.includes("svg")?await(b=d.value||"",new Promise((e=>{Ge({baseURL:"",url:b,method:"GET",responseType:"blob"}).then((a=>{if(a){const t=new FileReader;t.onload=()=>{const a=t.result;e(a)},t.onerror=()=>{e(null)},t.readAsDataURL(a)}else e(null)})).catch((()=>{e(null)}))}))):await function(e,a){const t=document.createElement("canvas"),l=t.getContext("2d"),i=new Image;return i.crossOrigin="Anonymous",i.src=e,new Promise((e=>{i.onload=()=>{const{width:n}=i,{height:s}=i;t.width=n,t.height=s,null==l||l.drawImage(i,0,0,n,s);const o=t.toDataURL(`image/${a}`);e(o)}}))}(d.value||"",u),f){const e={uuid:"",base64:{originalBase64:"",watermarkBase64:null,compressBase64:null},fileInfo:{originalFile:null,watermarkFile:null,compressFile:null},filename:{hash:"",suffix:"",name:"",prefixName:"",final:"",initName:"",newName:"",isAddHash:!0,isRename:!1,isPrefixNaming:!1,isTimestampNaming:!1},beforeUploadStatus:{watermarking:!1,compressing:!1},uploadStatus:{progress:0,uploading:!1},reUploadInfo:{dir:"",path:"",isReUpload:!1}};e.uuid=p,e.base64.originalBase64=f,e.filename.final=h,e.reUploadInfo.isReUpload=!0,e.reUploadInfo.dir=_.dir;let i=h;"/"!==_.dir&&(i=`${_.dir}/${h}`),e.reUploadInfo.path=i;await Ft(n,e)?(m.value="",await v(_,!0),await l.dispatch("UPLOAD_IMG_LIST_REMOVE",_.uuid)):o.error({message:null==(a=null==t?void 0:t.proxy)?void 0:a.$t("management.message3")})}else o.error({message:null==(i=null==t?void 0:t.proxy)?void 0:i.$t("management.message3")});c.close(),g.value=!1};p.confirm(null==(h=null==t?void 0:t.proxy)?void 0:h.$t("management.renameTips",{name:m.value}),null==(f=null==t?void 0:t.proxy)?void 0:f.$t("tips"),{type:"info"}).then((()=>{b()})).catch((()=>{g.value=!1}))},k=e=>{f.value=e};return(a,i)=>{const n=te,s=A,o=Vl,r=M,_=Wt,T=oe,D=Pl,E=L,O=Al,R=re,N=ce,U=de,z=V;return G((y(),x("div",{class:Q(["image-card",{checked:e.imageObj.checked}]),"element-loading-text":a.$t("management.loadingTxt3"),onMouseenter:i[6]||(i[6]=e=>h.value=!0),onMouseleave:i[7]||(i[7]=e=>h.value=!1)},[S("div",Fl,[$(n,{src:d.value,fit:"cover",loading:"lazy",lazy:"","hide-on-click-modal":!0,"preview-src-list":[d.value]},null,8,["src","preview-src-list"])]),S("div",Hl,[S("div",Xl,[g.value?(y(),x("div",Wl,[$(s,{size:"small",class:"rename-input",modelValue:m.value,"onUpdate:modelValue":i[0]||(i[0]=e=>m.value=e),clearable:"",ref_key:"renameInputRef",ref:u,maxlength:I(18)},null,8,["modelValue","maxlength"]),$(T,{size:"small"},{default:C((()=>[$(r,{onClick:i[1]||(i[1]=e=>g.value=!1)},{default:C((()=>[$(o)])),_:1}),$(r,{onClick:H(b,["prevent"])},{default:C((()=>[$(_)])),_:1},8,["onClick"])])),_:1})])):(y(),x("div",ql,W(e.imageObj.name),1))])]),S("div",Kl,[$(D,{"img-obj":e.imageObj},null,8,["img-obj"])]),G(S("div",Jl,[S("div",Yl,[c.value?(y(),x("div",{key:0,class:Q([e.imageObj.checked?"picked-btn":"pick-btn","operation-btn"]),onClick:i[2]||(i[2]=a=>{return(t=e.imageObj).checked=!t.checked,void l.commit("IMAGE_CARD",{imageObj:t});var t})},[e.imageObj.checked?(y(),w(E,{key:0},{default:C((()=>[$(_)])),_:1})):F("",!0)],2)):F("",!0)]),S("div",Ql,[$(U,{size:"default",trigger:"click",onVisibleChange:k},{dropdown:C((()=>[$(N,null,{default:C((()=>[$(R,{onClick:i[3]||(i[3]=a=>{return l=e.imageObj,void p.confirm(`\n
    ${null==(i=null==t?void 0:t.proxy)?void 0:i.$t("management.delTips")}:
    \n ${l.name}\n `,null==(n=null==t?void 0:t.proxy)?void 0:n.$t("tips"),{dangerouslyUseHTMLString:!0,type:"warning"}).then((()=>{v(l)})).catch((()=>{}));var l,i,n})},{default:C((()=>[X(W(a.$t("upload.delete")),1)])),_:1}),$(R,{onClick:i[4]||(i[4]=H((a=>(async e=>{g.value=!0,m.value=Na(e.name),setTimeout((()=>{var e;null==(e=u.value)||e.focus()}),100)})(e.imageObj)),["self"]))},{default:C((()=>[X(W(a.$t("upload.rename")),1)])),_:1}),$(R,{onClick:i[5]||(i[5]=a=>{return l=e.imageObj,void p.confirm(`\n
    ${null==(i=null==t?void 0:t.proxy)?void 0:i.$t("management.imageName")}:${l.name}
    \n
    ${null==(n=null==t?void 0:t.proxy)?void 0:n.$t("management.imageSize")}:${za(l.size)} KB
    \n `,null==(s=null==t?void 0:t.proxy)?void 0:s.$t("management.property"),{showCancelButton:!1,showConfirmButton:!1,dangerouslyUseHTMLString:!0,type:"info"});var l,i,n,s})},{default:C((()=>[X(W(a.$t("management.property")),1)])),_:1})])),_:1})])),default:C((()=>[S("div",Zl,[$(E,null,{default:C((()=>[$(O)])),_:1})])])),_:1})])],512),[[ue,h.value||f.value||e.imageObj.checked]])],42,Gl)),[[z,e.imageObj.deleting]])}}}),[["__scopeId","data-v-3010792e"]]);const ai=e=>(Z("data-v-f3498e7c"),e=e(),ee(),e),ti=ai((()=>S("div",{class:"icon"},[S("svg",{t:"1639999626518",class:"icon",viewBox:"0 0 1228 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3575",width:"200",height:"200"},[S("path",{d:"M1196.987733 212.5824v540.0576c0 39.594667-34.474667 71.3728-76.765866 71.3728H323.242667c-51.780267 0-88.746667-46.762667-73.250134-92.808533l126.737067-375.808H70.417067C31.675733 355.362133 0 326.4512 0 291.089067V98.372267C0 63.044267 31.675733 34.0992 70.417067 34.0992h378.811733c26.7264 0 51.029333 13.9264 63.010133 35.703467l39.048534 71.406933H1120.256c42.257067 0 76.8 32.119467 76.8 71.3728",fill:"#5398DF","p-id":"3576"}),S("path",{d:"M1128.721067 997.853867H68.266667a68.266667 68.266667 0 0 1-68.266667-68.266667V280.3712a68.266667 68.266667 0 0 1 68.266667-68.266667h1060.4544a68.266667 68.266667 0 0 1 68.266666 68.266667V929.5872a68.266667 68.266667 0 0 1-68.266666 68.266667",fill:"#85BCFF","p-id":"3577"})])],-1))),li={key:1,class:"text"},ii={key:2,class:"icon"},ni=[ai((()=>S("svg",{t:"1640264285200",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"29312",width:"200",height:"200"},[S("path",{d:"M426.666667 384V213.333333l-298.666667 298.666667 298.666667 298.666667v-174.933334c213.333333 0 362.666667 68.266667 469.333333 217.6-42.666667-213.333333-170.666667-426.666667-469.333333-469.333333z","p-id":"29313",fill:"#85BCFF"})],-1)))],si={key:3,class:"text"};var oi=ht(v({__name:"folder-card",props:{folderObj:{type:Object,default:()=>{}},mode:{type:String,default:"dir"}},setup(e){const a=at(),t=_((()=>a.getters.getUserConfigInfo)).value,l=e,i=()=>{const{folderObj:e,mode:i}=l;if("back"===i){const e=t.viewDir;if("/"===e)return;const a=e.split("/");1===a.length?t.viewDir="/":a.length>1&&(a.length-=1,t.viewDir=a.join("/"))}"dir"===i&&(t.viewDir=e.dirPath),a.dispatch("USER_CONFIG_INFO_PERSIST")};return(a,t)=>{const l=T;return y(),x("div",{class:"folder-card",onDblclick:i},["dir"===e.mode?(y(),w(l,{key:0,content:a.$t("management.toNextDir"),placement:"top"},{default:C((()=>[ti])),_:1},8,["content"])):F("",!0),"dir"===e.mode?(y(),x("div",li,W(e.folderObj.dir),1)):F("",!0),"back"===e.mode?(y(),x("div",ii,ni)):F("",!0),"back"===e.mode?(y(),x("div",si,W(a.$t("management.back")),1)):F("",!0)],32)}}}),[["__scopeId","data-v-f3498e7c"]]);const ri={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},ci=[S("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1)];var di={name:"ep-delete",render:function(e,a){return y(),x("svg",ri,[...ci])}};const ui={key:0,class:"selector-wrapper"},mi={class:"selector-left-box"},gi={class:"item"},pi={class:"selector-right-box"};var hi=ht(v({__name:"image-selector",props:{currentDirImageList:{type:Array,default:()=>[]}},emits:["update:initImageList"],setup(e){const a=e,t=at(),l=E(!1),i=D(),n=_((()=>t.getters.getImageCardCheckedArr)),s=_((()=>t.getters.getUserConfigInfo)).value,r=_((()=>t.getters.getUserSettings)).value,c=_((()=>n.value.length||0));O((()=>c.value),(e=>{const t=a.currentDirImageList.length;l.value=e===t}));const d=()=>{Ha(n.value,s,r)},u=()=>{a.currentDirImageList.forEach((e=>{e.checked&&(e.checked=!1)}))},m=()=>{var e,a,t,l;(null==(e=n.value)?void 0:e.length)>0&&p.confirm(null==(t=null==i?void 0:i.proxy)?void 0:t.$t("management.delTips2",{total:null==(a=n.value)?void 0:a.length}),null==(l=null==i?void 0:i.proxy)?void 0:l.$t("tips"),{type:"warning"}).then((async()=>{var e,a,t;const l=await Oa(n.value,s);l===aa.deleted&&o.success({message:null==(e=null==i?void 0:i.proxy)?void 0:e.$t("management.message5")}),l===aa.allDeleted&&o.success({message:null==(a=null==i?void 0:i.proxy)?void 0:a.$t("management.message6")}),l===aa.deleteFail&&o.error({message:null==(t=null==i?void 0:i.proxy)?void 0:t.$t("management.message7")})})).catch((()=>{}))},g=()=>{let e=[];a.currentDirImageList.forEach((e=>{e.checked=l.value})),e=a.currentDirImageList,t.commit("REPLACE_IMAGE_CARD",{checkedImgArr:e})};return R((()=>{g()})),(e,a)=>{const t=le,i=Ul,n=L,s=T,o=di;return c.value?(y(),x("div",ui,[S("div",mi,[$(t,{label:l.value?e.$t("management.deselectAll"):e.$t("management.selectAll"),modelValue:l.value,"onUpdate:modelValue":a[0]||(a[0]=e=>l.value=e),onChange:g},null,8,["label","modelValue"]),S("div",gi,W(e.$t("management.selectTotal",{total:c.value})),1),S("div",{class:"item cancel-select-btn",onClick:u},W(e.$t("management.unselect")),1)]),S("div",pi,[$(s,{placement:"top",content:e.$t("management.batchCopy")},{default:C((()=>[$(n,{class:"btn-icon",onClick:d},{default:C((()=>[$(i)])),_:1})])),_:1},8,["content"]),$(s,{placement:"top",content:e.$t("management.batchDelete")},{default:C((()=>[$(n,{class:"btn-icon",onClick:m},{default:C((()=>[$(o)])),_:1})])),_:1},8,["content"])])])):F("",!0)}}}),[["__scopeId","data-v-0ff830e2"]]);const fi={class:"page-container management-page-container"},vi={class:"content-container"},_i={class:"top"},bi={class:"left"},yi={class:"right flex-start"},wi=["element-loading-text"],ki={key:0,class:"image-management-item"},Ii=(e=>(Z("data-v-400d1d22"),e=e(),ee(),e))((()=>S("div",{style:{width:"100%"}},null,-1)));var xi=ht(v({__name:"imgs-management",setup(e){const a=at(),t=ie(),l=_((()=>a.getters.getUserConfigInfo)).value,i=_((()=>a.getters.getUserLoginStatus)).value,n=_((()=>a.getters.getDirObject)).value,s=E((new Date).getTime()),o=E(!1),r=E([]),c=E([]),d=E(!1);async function u(e){o.value=!0;const t=Je(e,n);if(t){const i=Ye(0,t,"dir"),n=Ye(0,t,"image");i.length||n.length?(r.value=i,c.value=n,a.commit("REPLACE_IMAGE_CARD",{checkedImgArr:c.value})):await lt(l,e)}else await lt(l,e);o.value=!1}async function m(){const{viewDir:e}=l;await a.dispatch("DIR_IMAGE_LIST_INIT_DIR",e),o.value=!0,await lt(l,e),o.value=!1}return R((()=>{!async function(){const{selectedDir:e,viewDir:a,dirMode:t}=l;""===a&&(t!==oa.newDir&&t!==oa.autoDir||Je(e,n)||(l.selectedDir="/",l.dirMode="rootDir"),l.selectedDir?l.viewDir=l.selectedDir:l.viewDir="/"),n.imageList.length||n.childrenDirs.length?await u(l.viewDir):await lt(l,l.viewDir)}()})),O((()=>i),(e=>{!1===e&&t.push("/config")})),O((()=>l.viewDir),(async e=>{await u(e),s.value+=1}),{deep:!0}),O((()=>n),(e=>{const{viewDir:t}=l,i=Je(t,e);i&&(r.value=Ye(0,i,"dir"),c.value=Ye(0,i,"image"),a.commit("REPLACE_IMAGE_CARD",{checkedImgArr:c.value}))}),{deep:!0}),O((()=>c.value),(e=>{d.value=e.filter((e=>e.checked)).length>0}),{deep:!0}),(e,a)=>{const t=pt,i=L,n=T,u=me("contextmenu"),g=V;return y(),x("div",fi,[S("div",vi,[S("div",_i,[S("div",bi,[$(Et,{"bar-type":"management"})]),S("div",yi,[$(n,{placement:"top",content:e.$t("management.reload",{dir:I(l).viewDir})},{default:C((()=>[$(i,{class:"btn-icon",onClick:H(m,["stop"])},{default:C((()=>[$(t)])),_:1},8,["onClick"])])),_:1},8,["content"])])]),G((y(),x("div",{class:"bottom","element-loading-text":e.$t("management.loadingTxt1")},[c.value.length?(y(),w(hi,{currentDirImageList:c.value,"onUpdate:initImageList":c.value,key:s.value},null,8,["currentDirImageList","onUpdate:initImageList"])):F("",!0),G((y(),x("ul",{class:"image-management-list",style:k({height:d.value?"calc(100% - 50rem)":"100%"})},["/"!==I(l).viewDir?(y(),x("li",ki,[$(oi,{mode:"back"})])):F("",!0),(y(!0),x(q,null,K(r.value,((e,a)=>G((y(),x("li",{class:"image-management-item",key:"folder-card-"+e.dir+"-"+a},[$(oi,{"folder-obj":e},null,8,["folder-obj"])])),[[u,{type:I(va).childDir,dir:e.dir}]]))),128)),Ii,(y(!0),x(q,null,K(c.value,((e,a)=>G((y(),x("li",{class:"image-management-item image",key:"image-card-"+a},[$(ei,{"image-obj":e},null,8,["image-obj"])])),[[u,{type:I(va).img,img:e}]]))),128))],4)),[[u,{type:I(va).parentDir}]])],8,wi)),[[g,o.value]])])])}}}),[["__scopeId","data-v-400d1d22"]]);const Si={class:"card-header"},Li=["onFocusout"],Ti={style:{"margin-top":"20px"}};var $i=ht(v({__name:"image-link-rule-config",setup(e){const a=D(),t=_((()=>Za.getters.getUserSettings)).value,l=E(),i=ae({id:"",name:"",rule:"",editable:!0});return(e,n)=>{const s=ge,o=di,r=M,c=pe,d=he,u=A,m=N,g=U,h=fe;return y(),w(h,null,{header:C((()=>[S("div",Si,[S("span",null,W(e.$t("settings.link_rule.card_title")),1)])])),default:C((()=>[$(c,{data:I(t).imageLinkType.presetList,style:{width:"100%"}},{default:C((()=>[$(s,{prop:"name",label:e.$t("settings.link_rule.card_table_col_title_1"),width:"120"},null,8,["label"]),$(s,{label:e.$t("settings.link_rule.card_table_col_title_2")},{default:C((e=>[S("div",{contenteditable:!0,onFocusout:a=>{return t=a.target.innerHTML,l=e.row.id,void Za.dispatch("UPDATE_IMAGE_LINK_TYPE_RULE",{rule:t,id:l});var t,l}},W(e.row.rule),41,Li)])),_:1},8,["label"]),$(s,{label:e.$t("settings.link_rule.card_table_col_title_3"),width:"80",align:"center"},{default:C((e=>[$(r,{link:"",size:"small",disabled:!e.row.editable,onClick:t=>{return l=e.row,void p.confirm(`${null==(i=null==a?void 0:a.proxy)?void 0:i.$t("settings.link_format.delete_tips")}:${l.name}`,null==(n=null==a?void 0:a.proxy)?void 0:n.$t("tips"),{dangerouslyUseHTMLString:!0,type:"warning"}).then((()=>{Za.dispatch("DEL_IMAGE_LINK_TYPE_RULE",l.id)})).catch((()=>{}));var l,i,n}},{default:C((()=>[$(o)])),_:2},1032,["disabled","onClick"])])),_:1},8,["label"])])),_:1},8,["data"]),$(d),S("div",Ti,[$(g,{ref_key:"formRef",ref:l,"label-position":"left",model:i,"label-width":"120px",size:"default"},{default:C((()=>[$(m,{label:e.$t("settings.link_rule.input_name_1"),prop:"name",rules:[{required:!0,message:e.$t("settings.link_rule.input_name_1_rule")}]},{default:C((()=>[$(u,{modelValue:i.name,"onUpdate:modelValue":n[0]||(n[0]=e=>i.name=e),type:"text"},null,8,["modelValue"])])),_:1},8,["label","rules"]),$(m,{label:e.$t("settings.link_rule.input_name_2"),prop:"rule",rules:[{required:!0,message:e.$t("settings.link_rule.input_name_2_rule")}]},{default:C((()=>[$(u,{modelValue:i.rule,"onUpdate:modelValue":n[1]||(n[1]=e=>i.rule=e),type:"text"},null,8,["modelValue"])])),_:1},8,["label","rules"]),$(m,null,{default:C((()=>[$(r,{type:"primary",disabled:!i.name||!i.rule,onClick:n[2]||(n[2]=e=>{var a;(a=l.value)&&a.validate((e=>{e&&(i.id=xa(),Za.dispatch("ADD_IMAGE_LINK_TYPE_RULE",JSON.parse(JSON.stringify(i))))}))})},{default:C((()=>[X(W(e.$t("settings.link_rule.btn_name_1")),1)])),_:1},8,["disabled"])])),_:1})])),_:1},8,["model"])])])),_:1})}}}),[["__scopeId","data-v-2a875730"]]);const Ci={class:"compress-config-box"},Di={class:"img-encoder-title"},Ei={class:"desc"},Oi={class:"desc"},Ri={class:"desc"};var Ai=ht(v({__name:"compress-config-box",props:{disabled:{type:Boolean,default:!1},usageScenario:{type:String,default:"toolbox"}},emits:["encoder"],setup(e,{expose:a,emit:t}){const l=_((()=>Za.getters.getUserSettings)).value,i=E(la.webP),n=t,s=e,o=e=>{n("encoder",e)};return R((()=>{"imageHosting"===s.usageScenario&&(i.value=l.compress.encoder),n("encoder",i.value)})),a({reset:()=>{i.value=la.webP}}),(a,t)=>{const l=j,n=B;return y(),x("div",Ci,[S("div",Di,W(a.$t("settings.img_compress.radio_group_title")),1),$(n,{disabled:e.disabled,class:"img-encoder-group",modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=e=>i.value=e),onChange:o},{default:C((()=>[$(l,{label:I(la).webP},{default:C((()=>[X(W(I(la).webP)+" ",1),S("span",Ei,W(a.$t("settings.img_compress.radio_1_desc")),1)])),_:1},8,["label"]),$(l,{label:I(la).mozJPEG},{default:C((()=>[X(W(I(la).mozJPEG)+" ",1),S("span",Oi,W(a.$t("settings.img_compress.radio_2_desc")),1)])),_:1},8,["label"]),$(l,{label:I(la).avif},{default:C((()=>[X(W(I(la).avif)+" ",1),S("span",Ri,W(a.$t("settings.img_compress.radio_3_desc")),1)])),_:1},8,["label"])])),_:1},8,["disabled","modelValue"])])}}}),[["__scopeId","data-v-186c475a"]]);const Ni=v({__name:"watermark-config-box",props:{isTool:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["watermarkConfig"],setup(e,{emit:a}){const t=ae({text:"",fontSize:0,position:ua.rightBottom,textColor:"",opacity:0}),l=a,i=()=>{l("watermarkConfig",t)};return R((()=>{const e=Za.getters.getUserSettings.watermark;t.text=e.text,t.textColor=e.textColor,t.fontSize=e.fontSize,t.position=e.position,t.opacity=e.opacity,l("watermarkConfig",t)})),(a,l)=>{const n=A,s=N,o=ve,r=_e,c=be,d=j,u=B,m=ye,g=U;return y(),w(g,{class:"watermark-config-form","label-position":"left","label-width":"90rem",disabled:e.disabled},{default:C((()=>[$(m,null,{default:C((()=>[$(o,{span:24},{default:C((()=>[$(s,{label:a.$t("settings.img_watermark.text")},{default:C((()=>[$(n,{modelValue:t.text,"onUpdate:modelValue":l[0]||(l[0]=e=>t.text=e),placeholder:a.$t("settings.img_watermark.text_input_placeholder"),clearable:"",maxlength:"20",onInput:i},null,8,["modelValue","placeholder"])])),_:1},8,["label"])])),_:1}),$(o,{span:e.isTool?10:24},{default:C((()=>[$(s,{label:a.$t("settings.img_watermark.size")},{default:C((()=>[$(r,{modelValue:t.fontSize,"onUpdate:modelValue":l[1]||(l[1]=e=>t.fontSize=e),min:40,max:80,step:2,onChange:i},null,8,["modelValue"])])),_:1},8,["label"])])),_:1},8,["span"]),$(o,{span:e.isTool?14:24},{default:C((()=>[$(s,{label:a.$t("settings.img_watermark.color")},{default:C((()=>[$(c,{modelValue:t.textColor,"onUpdate:modelValue":l[2]||(l[2]=e=>t.textColor=e),onChange:i},null,8,["modelValue"])])),_:1},8,["label"])])),_:1},8,["span"]),$(o,{span:e.isTool?10:24},{default:C((()=>[$(s,{label:a.$t("settings.img_watermark.opacity")},{default:C((()=>[$(r,{modelValue:t.opacity,"onUpdate:modelValue":l[3]||(l[3]=e=>t.opacity=e),precision:1,step:.1,min:.1,max:.9,onChange:i},null,8,["modelValue"])])),_:1},8,["label"])])),_:1},8,["span"]),$(o,{span:e.isTool?14:24},{default:C((()=>[$(s,{label:a.$t("settings.img_watermark.position")},{default:C((()=>[$(u,{modelValue:t.position,"onUpdate:modelValue":l[4]||(l[4]=e=>t.position=e),onChange:i},{default:C((()=>[$(d,{label:I(ua).leftTop},{default:C((()=>[X(W(a.$t("settings.img_watermark.position_1")),1)])),_:1},8,["label"]),$(d,{label:I(ua).leftBottom},{default:C((()=>[X(W(a.$t("settings.img_watermark.position_2")),1)])),_:1},8,["label"]),$(d,{label:I(ua).rightTop},{default:C((()=>[X(W(a.$t("settings.img_watermark.position_3")),1)])),_:1},8,["label"]),$(d,{label:I(ua).rightBottom},{default:C((()=>[X(W(a.$t("settings.img_watermark.position_4")),1)])),_:1},8,["label"])])),_:1},8,["modelValue"])])),_:1},8,["label"])])),_:1},8,["span"])])),_:1})])),_:1},8,["disabled"])}}});const Mi={class:"page-container settings-page-container"},Ui={class:"setting-list",style:{"margin-top":"10rem"}},zi={class:"setting-item has-desc"},Pi={class:"desc"},ji={class:"setting-item has-desc"},Bi={class:"desc"},Vi={key:0,class:"setting-item has-desc"},Gi={class:"setting-item has-desc"},Fi={class:"setting-list"},Hi={class:"setting-item has-desc"},Xi={class:"desc"},Wi={class:"setting-item"},qi={class:"setting-list"},Ki={class:"setting-item has-desc"},Ji={class:"desc"},Yi={class:"setting-item"},Qi={class:"setting-list"},Zi={class:"setting-item cdn"},en={class:"left"},an={class:"right"},tn={class:"setting-item",style:{"margin-top":"20rem"}},ln={class:"setting-list"},nn={class:"setting-item has-desc"},sn={class:"desc"},on={class:"setting-item"},rn={class:"left"},cn={class:"right"},dn={class:"setting-list"},un={class:"setting-item"};var mn=ht(v({__name:"my-settings",setup(e){const a=_((()=>Za.getters.getUserSettings)).value,t=()=>{Za.dispatch("USER_SETTINGS_PERSIST")},l=()=>{Za.dispatch("SET_USER_SETTINGS",n({},a))},i=e=>{a.watermark.text=e.text,a.watermark.textColor=e.textColor,a.watermark.opacity=e.opacity,a.watermark.position=e.position,a.watermark.fontSize=e.fontSize,t()};return O((()=>a.imageName),(e=>{e.autoTimestampNaming&&(a.imageName.autoAddHash=!1,a.imageName.prefixNaming.enable=!1),t()}),{immediate:!0,deep:!0}),(e,n)=>{const s=we,o=A,r=ke,c=Ni,d=fe,u=Ai,m=z,g=P,p=$i,h=Ie;return y(),x("div",Mi,[$(h,null,{default:C((()=>[$(r,{title:e.$t("settings.img_name.title"),name:"1"},{default:C((()=>[S("ul",Ui,[S("li",zi,[$(s,{modelValue:I(a).imageName.autoAddHash,"onUpdate:modelValue":n[0]||(n[0]=e=>I(a).imageName.autoAddHash=e),onChange:t,"active-text":e.$t("settings.img_name.hash_switch_name")},null,8,["modelValue","active-text"]),S("span",Pi,W(e.$t("settings.img_name.hash_switch_desc")),1)]),S("li",ji,[$(s,{modelValue:I(a).imageName.prefixNaming.enable,"onUpdate:modelValue":n[1]||(n[1]=e=>I(a).imageName.prefixNaming.enable=e),onChange:t,"active-text":e.$t("settings.img_name.prefix_switch_name")},null,8,["modelValue","active-text"]),S("span",Bi,W(e.$t("settings.img_name.prefix_switch_desc")),1)]),I(a).imageName.prefixNaming.enable?(y(),x("li",Vi,[$(o,{class:"prefix-input",modelValue:I(a).imageName.prefixNaming.prefix,"onUpdate:modelValue":n[2]||(n[2]=e=>I(a).imageName.prefixNaming.prefix=e),placeholder:e.$t("settings.img_name.prefix_input_placeholder"),onInput:t,clearable:"",autofocus:""},null,8,["modelValue","placeholder"])])):F("",!0),S("li",Gi,[$(s,{modelValue:I(a).imageName.autoTimestampNaming,"onUpdate:modelValue":n[3]||(n[3]=e=>I(a).imageName.autoTimestampNaming=e),onChange:t,"active-text":e.$t("settings.img_name.timestamp_switch_name")},null,8,["modelValue","active-text"])])])])),_:1},8,["title"]),$(r,{title:e.$t("settings.img_watermark.title"),name:"2"},{default:C((()=>[S("ul",Fi,[S("li",Hi,[$(s,{modelValue:I(a).watermark.enable,"onUpdate:modelValue":n[4]||(n[4]=e=>I(a).watermark.enable=e),onChange:t,"active-text":e.$t("settings.img_watermark.switch_name")},null,8,["modelValue","active-text"]),S("span",Xi,W(e.$t("settings.img_watermark.switch_desc")),1)]),S("li",Wi,[$(d,{class:"settings-item-card"},{default:C((()=>[$(c,{disabled:!I(a).watermark.enable,onWatermarkConfig:i},null,8,["disabled"])])),_:1})])])])),_:1},8,["title"]),$(r,{title:e.$t("settings.img_compress.title"),name:"3"},{default:C((()=>[S("ul",qi,[S("li",Ki,[$(s,{modelValue:I(a).compress.enable,"onUpdate:modelValue":n[5]||(n[5]=e=>I(a).compress.enable=e),onChange:t,"active-text":e.$t("settings.img_compress.switch_name")},null,8,["modelValue","active-text"]),S("span",Ji,W(e.$t("settings.img_compress.switch_desc")),1)]),S("li",Yi,[$(d,{class:"settings-item-card"},{default:C((()=>[$(u,{ref:"compressConfigBoxRef","usage-scenario":"imageHosting",disabled:!I(a).compress.enable,onEncoder:n[6]||(n[6]=e=>{I(a).compress.encoder=e,t()})},null,8,["disabled"])])),_:1})])])])),_:1},8,["title"]),$(r,{title:e.$t("settings.link_rule.title"),name:"4"},{default:C((()=>[S("ul",Qi,[S("li",Zi,[X(W(e.$t("settings.link_rule.select_title"))+": ",1),$(g,{modelValue:I(a).imageLinkType.selected,"onUpdate:modelValue":n[7]||(n[7]=e=>I(a).imageLinkType.selected=e),onChange:l},{default:C((()=>[(y(!0),x(q,null,K(I(a).imageLinkType.presetList,(e=>(y(),w(m,{key:e.name+"-"+e.id,label:e.name,value:e.name,class:"image-link-type-rule-option"},{default:C((()=>[S("span",en,W(e.name),1),S("span",an,W(e.rule),1)])),_:2},1032,["label","value"])))),128))])),_:1},8,["modelValue"])]),S("li",tn,[$(p)])])])),_:1},8,["title"]),$(r,{title:e.$t("settings.link_format.title"),name:"5"},{default:C((()=>[S("ul",ln,[S("li",nn,[$(s,{modelValue:I(a).imageLinkFormat.enable,"onUpdate:modelValue":n[8]||(n[8]=e=>I(a).imageLinkFormat.enable=e),onChange:t,"active-text":e.$t("settings.link_format.switch_name")},null,8,["modelValue","active-text"]),S("span",sn,W(e.$t("settings.link_format.switch_desc",{type:I(a).imageLinkFormat.selected})),1)]),S("li",on,[X(W(e.$t("settings.link_format.select_title"))+": ",1),$(g,{modelValue:I(a).imageLinkFormat.selected,"onUpdate:modelValue":n[9]||(n[9]=e=>I(a).imageLinkFormat.selected=e),onChange:l},{default:C((()=>[(y(!0),x(q,null,K(I(a).imageLinkFormat.presetList,((e,a)=>(y(),w(m,{key:a+e.name,label:e.name,value:e.name,class:"image-link-type-rule-option"},{default:C((()=>[S("span",rn,W(e.name),1),S("span",cn,W(e.format),1)])),_:2},1032,["label","value"])))),128))])),_:1},8,["modelValue"])])])])),_:1},8,["title"]),$(r,{title:e.$t("settings.theme.title"),name:"6"},{default:C((()=>[S("ul",dn,[S("li",un,[X(W(e.$t("header.theme"))+": ",1),$(g,{modelValue:I(a).theme.mode,"onUpdate:modelValue":n[10]||(n[10]=e=>I(a).theme.mode=e),onChange:l},{default:C((()=>[$(m,{label:e.$t("settings.theme.system"),value:I(ga).system},null,8,["label","value"]),$(m,{label:e.$t("settings.theme.light"),value:I(ga).light},null,8,["label","value"]),$(m,{label:e.$t("settings.theme.dark"),value:I(ga).dark},null,8,["label","value"])])),_:1},8,["modelValue"])])])])),_:1},8,["title"])])),_:1})])}}}),[["__scopeId","data-v-4c83b394"]]);const gn={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},pn=[S("path",{fill:"currentColor",d:"M512 64h64v192h-64V64zm0 576h64v192h-64V640zM160 480v-64h192v64H160zm576 0v-64h192v64H736zM249.856 199.04l45.248-45.184L430.848 289.6L385.6 334.848L249.856 199.104zM657.152 606.4l45.248-45.248l135.744 135.744l-45.248 45.248L657.152 606.4zM114.048 923.2L68.8 877.952l316.8-316.8l45.248 45.248l-316.8 316.8zM702.4 334.848L657.152 289.6l135.744-135.744l45.248 45.248L702.4 334.848z"},null,-1)];var hn={name:"ep-magic-stick",render:function(e,a){return y(),x("svg",gn,[...pn])}};const fn={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},vn=[S("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144l45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744l294.144-294.208z"},null,-1)];var _n={name:"ep-paperclip",render:function(e,a){return y(),x("svg",fn,[...vn])}};const bn={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},yn=[S("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32H160zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96z"},null,-1),S("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128a64 64 0 0 1 0-128zM288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32zm0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1)];var wn={name:"ep-postcard",render:function(e,a){return y(),x("svg",bn,[...yn])}};const kn=xe([{name:"toolbox.tool_1",desc:"toolbox.tool_1_desc",icon:hn,uuid:xa(),path:"/compress"},{name:"toolbox.tool_2",desc:"toolbox.tool_2_desc",icon:_n,uuid:xa(),path:"/base64"},{name:"toolbox.tool_3",desc:"toolbox.tool_3_desc",icon:wn,uuid:xa(),path:"/watermark"}]);const In={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},xn=[S("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512L340.864 831.872a30.592 30.592 0 0 0 0 42.752a29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1)];var Sn={name:"ep-arrow-right",render:function(e,a){return y(),x("svg",In,[...xn])}};const Ln={class:"page-container"},Tn={key:0,class:"tool-panel"},$n={class:"panel-header"},Cn={class:"panel-body"},Dn={key:1,class:"toolbox"},En=["onClick"],On={class:"top"},Rn={class:"left flex-center"},An={class:"right"},Nn={class:"bottom"};var Mn=ht(v({__name:"picx-toolbox",setup(e){const a=xe(Sn),t=ie(),l=E("/toolbox"),i=E(!1),s=E({path:"",icon:"",name:"",desc:"",uuid:""}),o=e=>{i.value=!0,s.value=n({},e),Za.dispatch("TOOLBOX_IMG_LIST_RESET"),t.push(`${l.value}${e.path}`)};O((()=>t.currentRoute.value),(e=>{e.path===l.value&&(i.value=!1)}),{deep:!0});return R((()=>{t.isReady().then((()=>{const e=t.currentRoute.value.path;if(l.value!==e){const a=e.substring(e.lastIndexOf("/")),t=kn.value.find((e=>e.path===a));t&&o(t)}}))})),(e,t)=>{const n=Se,r=Le,c=Te("router-view"),d=L;return y(),x("div",Ln,[i.value?(y(),x("div",Tn,[S("div",$n,[$(r,{"separator-icon":a.value},{default:C((()=>[$(n,{to:{path:l.value}},{default:C((()=>[X(W(e.$t("nav.toolbox")),1)])),_:1},8,["to"]),$(n,null,{default:C((()=>[X(W(e.$t(s.value.name)),1)])),_:1})])),_:1},8,["separator-icon"])]),S("div",Cn,[$(c)])])):(y(),x("ul",Dn,[(y(!0),x(q,null,K(I(kn),(a=>(y(),x("li",{class:"tool-item",key:a.uuid,onClick:e=>o(a)},[S("div",On,[S("div",Rn,[$(d,{size:30},{default:C((()=>[(y(),w($e(a.icon)))])),_:2},1024)]),S("div",An,W(e.$t(a.name)),1)]),S("div",Nn,W(e.$t(a.desc)),1)],8,En)))),128))]))])}}}),[["__scopeId","data-v-06af4a8d"]]);const Un={class:"page-container feedback-page-container"},zn={class:"help-info-item description"},Pn={class:"help-info-item"},jn={class:"help-info-item"},Bn={class:"help-info-item"},Vn={class:"help-info-item"},Gn={class:"help-info-item",style:{"margin-bottom":"2rem"}},Fn={class:"help-info-item img"},Hn={class:"help-info-item red-text"};var Xn=ht(v({__name:"feedback-info",setup(e){const a=_((()=>"win"===Xa()?"Ctrl + D":"Command + D"));return(e,t)=>{const l=Ce,i=te;return y(),x("div",Un,[S("div",zn,"🏞️ "+W(e.$t("feedback.text_1")),1),S("div",Pn,[X(" 🌍 "+W(e.$t("feedback.text_2"))+" "+W(e.$t("shortcut_key"))+":",1),S("code",null,W(a.value),1)]),S("div",jn,[X(" 🦁 "+W(e.$t("author"))+": ",1),$(l,{type:"primary",href:"https://xpoet.cn/",target:"_blank"},{default:C((()=>[X("@XPoet")])),_:1})]),S("div",Bn,[X(" 🌀 "+W(e.$t("repo"))+": ",1),$(l,{type:"primary",href:"https://github.com/XPoet/picx",target:"_blank"},{default:C((()=>[X(" https://github.com/XPoet/picx ")])),_:1})]),S("div",Vn,[X(" 📖 "+W(e.$t("document"))+": ",1),$(l,{type:"primary",href:"https://picx-docs.xpoet.cn",target:"_blank"},{default:C((()=>[X(" https://picx-docs.xpoet.cn ")])),_:1})]),S("div",Gn,"🎁 "+W(e.$t("feedback.text_3")),1),S("div",Fn,[$(i,{style:{width:"300rem"},src:"https://xpoet.cn/images/admire-code-wechat.webp"})]),S("div",Hn,[S("strong",null," ⚠️ "+W(e.$t("feedback.text_4")),1)])])}}}),[["__scopeId","data-v-3aecdb24"]]);const Wn={class:"img-process-state-card-container"},qn={class:"img-container"},Kn={class:"info-container"},Jn={class:"img-name text-ellipsis"},Yn={class:"img-size"},Qn={key:0,class:"finial-file-size file-size-item"};var Zn=ht(v({__name:"img-process-state-card",props:{imgObj:{type:Object,require:!0,default:()=>({})},cardType:{type:String,default:"compress"}},emits:["remove"],setup(e,{emit:a}){const t=a;return(a,l)=>{const i=te,n=Zt,s=L,r=T,c=V;return y(),x("div",Wn,[G((y(),x("div",qn,[$(i,{src:e.imgObj.finialBase64||e.imgObj.originalBase64,fit:"cover",loading:"lazy","hide-on-click-modal":!0,"preview-src-list":[e.imgObj.finialBase64||e.imgObj.originalBase64]},null,8,["src","preview-src-list"])])),[[c,e.imgObj.processing]]),S("div",Kn,[S("div",Jn,W(e.imgObj.finialName||e.imgObj.originalName),1),S("div",Yn,[S("div",{class:Q(["original-file-size file-size-item",{"del-line":e.imgObj.finialSize&&"compress"===e.cardType}])},W(I(za)(e.imgObj.originalSize))+" KB ",3),e.imgObj.finialSize&&"compress"===e.cardType?(y(),x("div",Qn,W(I(za)(e.imgObj.finialSize))+" KB ",1)):F("",!0)])]),e.imgObj.finialFile?(y(),x("div",{key:0,class:"operate-container flex-center",onClick:l[0]||(l[0]=a=>{Aa(e.imgObj.finialFile)})},W(a.$t("toolbox.click_download")),1)):F("",!0),"base64"===e.cardType&&e.imgObj.originalBase64?(y(),x("div",{key:1,class:"operate-container flex-center",onClick:l[1]||(l[1]=t=>{return l=e.imgObj.originalBase64,i=a.$t,void Sa(l,(()=>{o.success({message:i("toolbox.copy_base64_success")})}));var l,i})},W(a.$t("toolbox.copy_base64")),1)):F("",!0),$(r,{placement:"top",offset:8,content:a.$t("delete")},{default:C((()=>[$(s,{class:"del-btn",onClick:l[2]||(l[2]=a=>{return l=e.imgObj.uuid,void t("remove",l);var l})},{default:C((()=>[$(n)])),_:1})])),_:1},8,["content"])])}}}),[["__scopeId","data-v-d59c7528"]]);const es={class:"compress-tool-container"},as={key:0,class:"compress-tool-left"};var ts=ht(v({__name:"compress-tool",setup(e){const a=at(),t=E(null),l=E(null),i=E([]),n=E(la.webP),s=E(!1),o=E(!1),r=e=>{o.value=!1,s.value=!1,e.forEach((e=>{a.dispatch("TOOLBOX_IMG_LIST_ADD",{uuid:e.uuid,originalName:e.file.name,originalSize:e.file.size,originalBase64:e.base64,originalFile:e.file})}))},c=()=>{var e,i;a.dispatch("TOOLBOX_IMG_LIST_RESET"),o.value=!1,null==(e=t.value)||e.reset(),null==(i=l.value)||i.reset()},d=async()=>{s.value=!0;for(const e of i.value)e.processing=!0,e.finialFile=await ja(e.originalFile,n.value),e.finialBase64=await Ra(e.finialFile)||"",e.finialSize=e.finialFile.size,e.finialName=e.finialFile.name,e.processing=!1;o.value=!0,s.value=!1},u=()=>{i.value.forEach((e=>{Aa(e.finialFile)}))},m=e=>{var l;a.dispatch("TOOLBOX_IMG_LIST_REMOVE",e),null==(l=t.value)||l.remove(e)};return O((()=>a.state.toolboxImageListModule.toolboxImageList),(e=>{i.value=e}),{immediate:!0,deep:!0}),(e,a)=>{const g=Zn,p=jt,h=Ai,f=M;return y(),x("div",es,[i.value.length?(y(),x("div",as,[(y(!0),x(q,null,K(i.value,(e=>(y(),w(g,{"img-obj":e,key:e.uuid,onRemove:m},null,8,["img-obj"])))),128))])):F("",!0),S("div",{class:Q(["compress-tool-right",{"no-img":!i.value.length}])},[$(p,{ref_key:"gettingImagesRef",ref:t,onGetImgList:r},null,512),$(h,{ref_key:"compressConfigBoxRef",ref:l,style:{"margin-top":"18rem"},onEncoder:a[0]||(a[0]=e=>{return a=e,o.value=!1,void(n.value=a);var a})},null,512),S("div",{class:Q(["user-operate",{compressed:o.value&&i.value.length>1}])},[o.value&&i.value.length>1?(y(),w(f,{key:0,plain:"",type:"success",onClick:u},{default:C((()=>[X(W(e.$t("toolbox.batch_download")),1)])),_:1})):F("",!0),S("div",null,[i.value.length?(y(),w(f,{key:0,plain:"",type:"warning",onClick:c},{default:C((()=>[X(W(e.$t("reset")),1)])),_:1})):F("",!0),i.value.length?(y(),w(f,{key:1,disabled:s.value||o.value,plain:"",type:"primary",onClick:d},{default:C((()=>[X(W(e.$t("toolbox.compress")),1)])),_:1},8,["disabled"])):F("",!0)])],2)],2)])}}}),[["__scopeId","data-v-2f45486b"]]);const ls={class:"base64-tool-container"},is={key:0,class:"base64-tool-left"},ns={class:"user-operate"},ss=v({__name:"base64-tool",setup(e){const a=at(),t=E(null),l=E([]),i=e=>{e.forEach((e=>{a.dispatch("TOOLBOX_IMG_LIST_ADD",{uuid:e.uuid,originalName:e.file.name,originalSize:e.file.size,originalBase64:e.base64})}))},n=()=>{var e;a.dispatch("TOOLBOX_IMG_LIST_RESET"),null==(e=t.value)||e.reset()},s=e=>{var l;a.dispatch("TOOLBOX_IMG_LIST_REMOVE",e),null==(l=t.value)||l.remove(e)};return O((()=>a.state.toolboxImageListModule.toolboxImageList),(e=>{l.value=e}),{immediate:!0,deep:!0}),(e,a)=>{const o=Zn,r=jt,c=M;return y(),x("div",ls,[l.value.length?(y(),x("div",is,[(y(!0),x(q,null,K(l.value,(e=>(y(),w(o,{"card-type":"base64","img-obj":e,key:e.uuid,onRemove:s},null,8,["img-obj"])))),128))])):F("",!0),S("div",{class:Q(["base64-tool-right",{"no-img":!l.value.length}])},[$(r,{ref_key:"gettingImagesRef",ref:t,onGetImgList:i},null,512),S("div",ns,[l.value.length?(y(),w(c,{key:0,plain:"",type:"warning",onClick:n},{default:C((()=>[X(W(e.$t("reset")),1)])),_:1})):F("",!0)])],2)])}}});const os={class:"watermark-tool-container"},rs={key:0,class:"watermark-tool-left"};const cs=[{path:"/",name:"index",redirect:{name:"upload"}},{path:"/config",name:"config",component:Lt,meta:{title:"nav.config"}},{path:"/upload",name:"upload",component:El,meta:{title:"nav.upload"}},{path:"/management",name:"Management",component:xi,meta:{title:"nav.management"}},{path:"/settings",name:"settings",component:mn,meta:{title:"nav.settings"}},{path:"/toolbox",name:"Toolbox",component:Mn,meta:{title:"nav.toolbox"},children:[{path:"/toolbox/compress",name:"Compress",component:ts},{path:"/toolbox/base64",name:"Base64",component:ht(ss,[["__scopeId","data-v-654d8c19"]])},{path:"/toolbox/watermark",name:"Watermark",component:ht(v({__name:"watermark-tool",setup(e){const a=at(),t=ae({enable:!0,text:"",fontSize:0,opacity:0,position:ua.rightBottom,textColor:""}),l=E(null),i=E([]),n=E(!1),s=E(!1),o=e=>{s.value=!1,n.value=!1,e.forEach((e=>{a.dispatch("TOOLBOX_IMG_LIST_ADD",{uuid:e.uuid,originalName:e.file.name,originalSize:e.file.size,originalBase64:e.base64,originalFile:e.file})}))},r=e=>{t.text=e.text,t.textColor=e.textColor,t.opacity=e.opacity,t.position=e.position,t.fontSize=e.fontSize,s.value=!1},c=()=>{var e;a.dispatch("TOOLBOX_IMG_LIST_RESET"),s.value=!1,null==(e=l.value)||e.reset()},d=async()=>{n.value=!0;for(const e of i.value)e.processing=!0,e.finialFile=await Da(e.originalFile,t),e.finialBase64=await Ra(e.finialFile)||"",e.finialSize=e.finialFile.size,e.finialName=e.finialFile.name,e.processing=!1;s.value=!0,n.value=!1},u=()=>{i.value.forEach((e=>{Aa(e.finialFile)}))},m=e=>{var t;a.dispatch("TOOLBOX_IMG_LIST_REMOVE",e),null==(t=l.value)||t.remove(e)};return O((()=>a.state.toolboxImageListModule.toolboxImageList),(e=>{i.value=e}),{immediate:!0,deep:!0}),(e,a)=>{const g=Zn,p=jt,h=Ni,f=M;return y(),x("div",os,[i.value.length?(y(),x("div",rs,[(y(!0),x(q,null,K(i.value,(e=>(y(),w(g,{"img-obj":e,key:e.uuid,"card-type":"watermark",onRemove:m},null,8,["img-obj"])))),128))])):F("",!0),S("div",{class:Q(["watermark-tool-right",{"no-img":!i.value.length}])},[$(p,{ref_key:"gettingImagesRef",ref:l,onGetImgList:o},null,512),$(h,{isTool:!0,onWatermarkConfig:r,style:{"margin-top":"18rem"}}),S("div",{class:Q(["user-operate",{watermarked:s.value&&i.value.length>1}])},[s.value&&i.value.length>1?(y(),w(f,{key:0,plain:"",type:"success",onClick:u},{default:C((()=>[X(W(e.$t("toolbox.batch_download")),1)])),_:1})):F("",!0),S("div",null,[i.value.length?(y(),w(f,{key:0,plain:"",type:"warning",onClick:c},{default:C((()=>[X(W(e.$t("reset")),1)])),_:1})):F("",!0),i.value.length?(y(),w(f,{key:1,disabled:n.value||s.value||!t.text,plain:"",type:"primary",onClick:d},{default:C((()=>[X(W(e.$t("toolbox.add_watermark")),1)])),_:1},8,["disabled"])):F("",!0)])],2)],2)])}}}),[["__scopeId","data-v-8c458a98"]])}]},{path:"/feedback",name:"feedback",component:Xn,meta:{title:"nav.feedback"}},{path:"/:catchAll(.*)",redirect:"/"}],ds=De({history:Ee(),routes:cs});ds.beforeEach(((e,a,t)=>{e.meta.title&&Ca(e.meta.title),t()}));const us=()=>{const e=at(),a=async e=>{await Oe((()=>{const a=document.getElementsByTagName("html")[0];e===ga.dark&&(a.classList.remove("light"),a.classList.add("dark")),e===ga.light&&(a.classList.remove("dark"),a.classList.add("light"))}))},t=async e=>{e===ga.system?await a(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ga.dark:ga.light):await a(e)};O((()=>e.getters.getUserSettings.theme.mode),(async e=>{await t(e)}),{deep:!0,immediate:!0})},ms={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},gs=[S("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0a224 224 0 1 0-448 0zm544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"},null,-1)];var ps={name:"ep-user-filled",render:function(e,a){return y(),x("svg",ms,[...gs])}};const hs={id:"busuanzi_value_site_uv",class:"uv"},fs={id:"busuanzi_value_site_pv",class:"pv"},vs=v({__name:"site-count",props:{isuv:{type:Boolean,default:!1}},setup(e){const a=e,t=E(null),l=E(!1),i=_((()=>!0));return R((()=>{const e=document.createElement("script");e.async=!0,e.src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js",t.value.appendChild(e),e.onload=()=>{const e=setTimeout((()=>{var i,n;i=t.value,n=a.isuv,i.querySelector(`.${n?"u":"p"}v`).innerText&&(l.value=!0),clearTimeout(e)}),1500)}})),(a,n)=>G((y(),x("span",{class:"site-count",ref_key:"siteCountDom",ref:t},[G(S("span",hs,null,512),[[ue,e.isuv]]),G(S("span",fs,null,512),[[ue,!e.isuv]]),X("+ "+W(a.$t("header.usage_count")),1)],512)),[[ue,l.value&&i.value]])}});const _s=e=>(Z("data-v-2d421138"),e=e(),ee(),e),bs={class:"header"},ys={class:"header-left"},ws=[_s((()=>S("div",{class:"logo"},[S("img",{src:"./assets/logo.ffee4291.png",alt:"PicX"})],-1))),_s((()=>S("div",{class:"title"},"PicX",-1)))],ks={class:"website-count"},Is={class:"header-right"},xs={class:"user-info"},Ss={class:"avatar-box"},Ls={class:"avatar flex-center"},Ts=["src","alt"],$s={class:"personal-center-popover"},Cs={class:"content-item"},Ds={class:"flex-center"},Es={class:"content-item"},Os={class:"flex-center"};var Rs=ht(v({__name:"header-content",setup(e){const a=ie(),t=at(),l=_((()=>t.getters.getUserConfigInfo)).value,i=_((()=>t.getters.getUserSettings)).value,n=()=>{t.dispatch("USER_SETTINGS_PERSIST")},s=()=>{t.dispatch("LOGOUT"),a.push("/config"),document.body.click()},o=()=>{l.owner?window.open(`https://github.com/${l.owner}/${l.selectedRepo}`):a.push("/config")};return(e,t)=>{const r=vs,c=ps,d=L,u=nl,m=z,g=P,p=he,h=Re;return y(),x("header",bs,[S("div",ys,[S("div",{class:"brand",onClick:t[0]||(t[0]=e=>I(a).push("/"))},ws),S("div",ks,[$(r,{isuv:!1})])]),S("div",Is,[S("div",xs,[S("div",{class:"username",onClick:o},W(I(l).owner?I(l).owner:e.$t("header.notLogin")),1),$(h,{placement:"bottom-end",trigger:"click",width:"220rem","show-arrow":!1,"popper-style":{padding:"0"}},{reference:C((()=>{var e,a,t;return[S("div",Ss,[S("div",Ls,[(null==(e=I(l))?void 0:e.avatarUrl)?(y(),x("img",{key:0,src:null==(a=I(l))?void 0:a.avatarUrl,alt:null==(t=I(l))?void 0:t.owner},null,8,Ts)):(y(),w(d,{key:1,class:"user-filled-icon"},{default:C((()=>[$(c)])),_:1}))]),$(d,{class:"caret-bottom-icon"},{default:C((()=>[$(u)])),_:1})])]})),default:C((()=>[S("ul",$s,[S("li",Cs,[S("span",Ds,W(e.$t("header.language")),1),$(g,{size:"small",style:{width:"100rem"},modelValue:I(i).language,"onUpdate:modelValue":t[1]||(t[1]=e=>I(i).language=e),onChange:n},{default:C((()=>[$(m,{label:"中文简体",value:I(ha).zhCN},null,8,["value"]),$(m,{label:"中文繁體",value:I(ha).zhTW},null,8,["value"]),$(m,{label:"English",value:I(ha).en},null,8,["value"])])),_:1},8,["modelValue"])]),$(p,{style:{margin:"5px 0"}}),S("li",Es,[S("span",Os,W(e.$t("header.theme")),1),$(g,{size:"small",style:{width:"100rem"},modelValue:I(i).theme.mode,"onUpdate:modelValue":t[2]||(t[2]=e=>I(i).theme.mode=e),onChange:n},{default:C((()=>[$(m,{label:e.$t("settings.theme.system"),value:I(ga).system},null,8,["label","value"]),$(m,{label:e.$t("settings.theme.light"),value:I(ga).light},null,8,["label","value"]),$(m,{label:e.$t("settings.theme.dark"),value:I(ga).dark},null,8,["label","value"])])),_:1},8,["modelValue"])]),$(p,{style:{margin:"5px 0"}}),I(l).name||I(l).owner?(y(),x("li",{key:0,class:"content-item",onClick:s},W(e.$t("header.logout")),1)):(y(),x("li",{key:1,class:"content-item",onClick:t[3]||(t[3]=e=>I(a).push("/config"))},W(e.$t("header.login")),1))])])),_:1})])])])}}}),[["__scopeId","data-v-2d421138"]]);const As={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Ns=[S("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64h261.44zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64h453.44zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64h133.44z"},null,-1)];var Ms={name:"ep-operation",render:function(e,a){return y(),x("svg",As,[...Ns])}};const Us={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},zs=[S("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z"},null,-1),S("path",{fill:"currentColor",d:"m469.952 554.24l52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"},null,-1)];var Ps={name:"ep-edit",render:function(e,a){return y(),x("svg",Us,[...zs])}};const js={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Bs=[S("path",{fill:"currentColor",d:"M160 160v704h704V160H160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32z"},null,-1),S("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64q-64 0-64-64t64-64zM185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472l122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888l49.92 39.936l-215.808 269.824l-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072l-.64-.512a32 32 0 0 0-44.8 5.952L185.408 876.992z"},null,-1)];var Vs={name:"ep-picture",render:function(e,a){return y(),x("svg",js,[...Bs])}};const Gs={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Fs=[S("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088l-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36l-116.224-25.088l-65.28 113.152l79.68 88.192l-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136l-79.808 88.192l65.344 113.152l116.224-25.024l22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152l24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296l116.288 25.024l65.28-113.152l-79.744-88.192l1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136l79.808-88.128l-65.344-113.152l-116.288 24.96l-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384a192 192 0 0 1 0-384zm0 64a128 128 0 1 0 0 256a128 128 0 0 0 0-256z"},null,-1)];var Hs={name:"ep-setting",render:function(e,a){return y(),x("svg",Gs,[...Fs])}};const Xs={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Ws=[S("path",{fill:"currentColor",d:"M128 384v448h768V384H128zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32zm64-128h704v64H160zm96-128h512v64H256z"},null,-1)];var qs={name:"ep-files",render:function(e,a){return y(),x("svg",Xs,[...Ws])}};const Ks={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Js=[S("path",{fill:"currentColor",d:"m174.72 855.68l135.296-45.12l23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160S128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8l-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512C64 299.904 256 96 512 96s448 203.904 448 416s-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"},null,-1),S("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4a51.2 51.2 0 0 1 0 102.4zm192 0a51.2 51.2 0 1 1 0-102.4a51.2 51.2 0 0 1 0 102.4zm-384 0a51.2 51.2 0 1 1 0-102.4a51.2 51.2 0 0 1 0 102.4z"},null,-1)];var Ys={name:"ep-chat-dot-round",render:function(e,a){return y(),x("svg",Ks,[...Js])}};const Qs=xe([{uuid:xa(),name:"nav.config",icon:Ps,isActive:!1,path:"/config",isShow:!0},{uuid:xa(),name:"nav.upload",icon:Jt,isActive:!1,path:"/upload",isShow:!0},{uuid:xa(),name:"nav.management",icon:Vs,isActive:!1,path:"/management",isShow:!0},{uuid:xa(),name:"nav.settings",icon:Hs,isActive:!1,path:"/settings",isShow:!0},{uuid:xa(),name:"nav.toolbox",icon:qs,isActive:!1,path:"/toolbox",isShow:!0},{uuid:xa(),name:"nav.feedback",icon:Ys,isActive:!1,path:"/feedback",isShow:!0}]);const Zs={class:"nav"},eo={class:"nav-list"},ao=["onClick"],to={class:"nav-content"},lo={class:"nav-name"},io={class:"nav-item quick-actions flex-center"},no={class:"nav-content"},so={class:"nav-name"},oo={class:"quick-actions-popover"};var ro=ht(v({__name:"nav-content",setup(e){const a=ie(),t=at(),l=_((()=>t.getters.getUserConfigInfo)).value,i=_((()=>t.getters.getUserSettings)).value,n=_((()=>{switch(i.elementPlusSize){case ca.small:return 22;case ca.large:return 30;default:return 26}})),s=e=>{Qs.value.forEach((a=>{const t=a;return t.isActive=a.path===e||e.includes(a.path),t})),Ae(Qs)},r=()=>{t.dispatch("USER_SETTINGS_PERSIST")};return O((()=>a.currentRoute.value),(e=>{s(e.path)})),O((()=>l.logined),(e=>{Qs.value.forEach((a=>{switch(a.path){case"/management":case"/settings":a.isShow=e}}))}),{deep:!0,immediate:!0}),R((()=>{a.isReady().then((()=>{s(a.currentRoute.value.path)}))})),(e,t)=>{const s=L,c=Ms,d=we,u=Re;return y(),x("aside",Zs,[S("ul",eo,[(y(!0),x(q,null,K(I(Qs),((t,i)=>G((y(),x("li",{class:Q(["nav-item flex-center",{active:t.isActive}]),key:i+t.uuid,onClick:e=>(e=>{const{path:t}=e;if("/management"===t){if(""===l.selectedRepo)return o.warning("请选择一个仓库"),void a.push("/config");if(""===l.selectedDir)return o.warning("目录不能为空"),void a.push("/config")}a.push(t)})(t)},[S("div",to,[$(s,{size:n.value},{default:C((()=>[(y(),w($e(t.icon)))])),_:2},1032,["size"]),S("span",lo,W(e.$t(t.name)),1)])],10,ao)),[[ue,t.isShow]]))),128))]),S("div",io,[$(u,{placement:"right-end",width:"en"===I(i).language?"230rem":"190rem",trigger:"click","show-arrow":!1,"popper-style":{padding:"0"}},{reference:C((()=>[S("div",no,[$(s,{size:n.value},{default:C((()=>[$(c)])),_:1},8,["size"]),S("span",so,W(e.$t("nav.actions")),1)])])),default:C((()=>[S("div",oo,[$(d,{modelValue:I(i).watermark.enable,"onUpdate:modelValue":t[0]||(t[0]=e=>I(i).watermark.enable=e),class:"mb-2","active-text":e.$t("actions.watermark"),onChange:r},null,8,["modelValue","active-text"]),$(d,{modelValue:I(i).compress.enable,"onUpdate:modelValue":t[1]||(t[1]=e=>I(i).compress.enable=e),class:"mb-2","active-text":e.$t("actions.compress"),onChange:r},null,8,["modelValue","active-text"]),$(d,{modelValue:I(i).imageLinkFormat.enable,"onUpdate:modelValue":t[2]||(t[2]=e=>I(i).imageLinkFormat.enable=e),class:"mb-2","active-text":e.$t("actions.transform")+I(i).imageLinkFormat.selected,onChange:r},null,8,["modelValue","active-text"])])])),_:1},8,["width"])])])}}}),[["__scopeId","data-v-5951a7aa"]]);const co={class:"main-container"},uo={class:"top-container"},mo={class:"bottom-container"},go={class:"bottom-content"},po={class:"left"},ho={class:"right"};var fo=ht(v({__name:"main-container",setup:e=>(R((()=>{us()})),(e,a)=>{const t=Te("router-view");return y(),x("main",co,[S("div",uo,[$(Rs)]),S("div",mo,[S("div",go,[S("div",po,[$(ro)]),S("div",ho,[$(t)])])])])})}),[["__scopeId","data-v-c5c7351e"]]);const vo=v({__name:"App",setup(e){const a=D(),t=at(),l=_((()=>t.getters.getUserSettings)).value,i=E(ca.default),n=E(Me),r=e=>{e<=600?(null==t||t.dispatch("SET_USER_SETTINGS",{elementPlusSize:ca.small}),i.value=ca.small):e<=900?(null==t||t.dispatch("SET_USER_SETTINGS",{elementPlusSize:ca.default}),i.value=ca.default):(null==t||t.dispatch("SET_USER_SETTINGS",{elementPlusSize:ca.large}),i.value=ca.large)},c=e=>{e===ha.zhCN?(n.value=Me,a.proxy.$i18n.locale="zh-CN"):e===ha.zhTW?(n.value=Ue,a.proxy.$i18n.locale="zh-TW"):e===ha.en?(n.value=ze,a.proxy.$i18n.locale="en"):(n.value=Me,a.proxy.$i18n.locale="zh-CN"),Ca(ds.currentRoute.value.meta.title)},d=()=>{c(l.language),(async()=>{try{const e=await s.get("https://api.ipify.org?format=json"),a=await s.get(`https://ipapi.co/${e.data.ip}/country/`);return Promise.resolve(a.data)}catch(e){return Promise.resolve("CN")}})().then((e=>{var i,n,s,r,d,u,m;const g=(e=>"CN"===e?ha.zhCN:"HK"===e||"TW"===e||"MO"===e?ha.zhTW:ha.en)(e);if(g!==l.language){const l=null==(i=null==a?void 0:a.proxy)?void 0:i.$t("confirm",g),p=null==(n=null==a?void 0:a.proxy)?void 0:n.$t("cancel",g),h=null==(d=null==a?void 0:a.proxy)?void 0:d.$t("toggle-language-msg",g,{region:null==(s=null==a?void 0:a.proxy)?void 0:s.$t(`region.${e}`,g),language:null==(r=null==a?void 0:a.proxy)?void 0:r.$t(`language.${g}`,g)}),f=o({customClass:"toggle-language-message",duration:0,offset:20,message:`
    \n ${h}\n \n ${l}\n ${p}\n \n
    `,dangerouslyUseHTMLString:!0});null==(u=document.querySelector(".toggle-language-message .content-box .confirm"))||u.addEventListener("click",(()=>{c(g),t.dispatch("SET_USER_SETTINGS",{language:g}),f.close()})),null==(m=document.querySelector(".toggle-language-message .content-box .cancel"))||m.addEventListener("click",(()=>{f.close()}))}}))},u=()=>{r(window.innerWidth),window.addEventListener("resize",((e,a=500)=>{let t,l;return function(...i){l=i,t||(t=setTimeout((()=>{e(...l),t=void 0}),a))}})((e=>{r(e.target.innerWidth)}),600)),us(),d()};return O((()=>l.language),(e=>{c(e)})),R((()=>{u()})),(e,a)=>(y(),w(I(Ne),{size:i.value,"z-index":3e3,locale:n.value},{default:C((()=>[$(fo)])),_:1},8,["size","locale"]))}});const _o="custom-contextmenu-container";let bo=null,yo=!1;const wo={mounted(e,a){e.addEventListener("contextmenu",(e=>{const{dir:t,type:l,img:i}=a.value;e.preventDefault(),e.stopPropagation();const n=_((()=>Za.getters.getUserViewDir)).value,s=t?`${"/"===n?"":`${n}/`}${t}`:n;bo=document.querySelector(`.${_o}`),bo||(bo=document.createElement("ul"),bo.setAttribute("class",_o),bo.style.position="fixed",bo.style.zIndex="1000",bo.innerHTML=`
  • `,document.body.appendChild(bo));const o=null==bo?void 0:bo.querySelector(".upload-image"),r=null==bo?void 0:bo.querySelector(".copy-link");l===va.img?(r.style.display="block",o.innerHTML=ka.global.t("management.contextmenu_1")):(r.style.display="none",o.innerHTML=ka.global.t("management.contextmenu_2",{dir:"/"===s?ka.global.t("management.contextmenu_3"):s}));let c=e.clientX,d=e.clientY;const u=bo.clientWidth,m=bo.clientHeight,g=document.documentElement.clientWidth,p=document.documentElement.clientHeight;u+c>g&&(c=g-u-6),m+d>p&&(d=p-m-6),bo.style.top=`${d}px`,bo.style.left=`${c}px`,yo||(yo=!0,null==o||o.addEventListener("click",(async()=>{const e="/"===s?oa.rootDir:oa.repoDir,a="/"===s?[]:s.split("/");await Za.dispatch("SET_USER_CONFIG_INFO",{dirMode:e,selectedDir:s,selectedDirList:a}),await ds.push("/upload")})),null==r||r.addEventListener("click",(async()=>{const e=_((()=>Za.getters.getUserConfigInfo)).value,a=_((()=>Za.getters.getUserSettings)).value;Fa(i,e,a)})));const h=()=>{bo&&(document.removeEventListener("click",h),document.body.removeChild(bo),bo=null,yo=!1)};document.addEventListener("click",h)}))}},ko=Pe(vo);ko.directive("contextmenu",wo),ko.use(ds).use(Za,et).use(ka).mount("#app"); diff --git a/index.html b/index.html index 9290087d..02dc6f20 100644 --- a/index.html +++ b/index.html @@ -6,10 +6,10 @@ PicX 图床神器 - + - + diff --git a/sw.js b/sw.js index 792881d2..3d1ff1db 100644 --- a/sw.js +++ b/sw.js @@ -1 +1 @@ -if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(n,r)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(s[o])return;let t={};const l=e=>i(e,o),d={module:{uri:o},exports:t,require:l};s[o]=Promise.all(n.map((e=>d[e]||l(e)))).then((e=>(r(...e),t)))}}define(["./workbox-9517df1b"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index.2937a89d.css",revision:null},{url:"assets/index.5d295842.js",revision:null},{url:"assets/vendor.31052983.css",revision:null},{url:"assets/vendor.8b621868.js",revision:null},{url:"index.html",revision:"482a676bdf112bf981d6dbc4e487b3ac"},{url:"registerSW.js",revision:"402b66900e731ca748771b6fc5e7a068"},{url:"./logo@192x192.png",revision:"04b357520a0d52eeef26e65170bac83f"},{url:"./logo@512x512.png",revision:"5830f0d36bc66261c4059e289d46ae44"},{url:"manifest.webmanifest",revision:"3b28338b24629573ffcd2975cee28680"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))})); +if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(n,r)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(s[o])return;let t={};const l=e=>i(e,o),u={module:{uri:o},exports:t,require:l};s[o]=Promise.all(n.map((e=>u[e]||l(e)))).then((e=>(r(...e),t)))}}define(["./workbox-9517df1b"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index.516abf06.css",revision:null},{url:"assets/index.e2602616.js",revision:null},{url:"assets/vendor.31052983.css",revision:null},{url:"assets/vendor.8b621868.js",revision:null},{url:"index.html",revision:"bdbe74c4f8ba38cdd5fec639f4d6fe80"},{url:"registerSW.js",revision:"402b66900e731ca748771b6fc5e7a068"},{url:"./logo@192x192.png",revision:"04b357520a0d52eeef26e65170bac83f"},{url:"./logo@512x512.png",revision:"5830f0d36bc66261c4059e289d46ae44"},{url:"manifest.webmanifest",revision:"3b28338b24629573ffcd2975cee28680"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))}));