// ==UserScript==
// @name 115不大助手 (full)
// @namespace com.cloud115.enhancer
// @version 0.5.53
// @author 生瓜太保
// @description Make 115 taerg again!
// @license MIT
// @homepage http://greasyfork.icu/zh-CN/scripts/474231-115不大助手?locale_override=1
// @supportURL http://greasyfork.icu/zh-CN/scripts/474231-115不大助手?locale_override=1
// @match https://*.115.com/*
// @match https://115.com/*
// @connect *
// @grant GM_addStyle
// @grant GM_deleteValue
// @grant GM_getValue
// @grant GM_openInTab
// @grant GM_registerMenuCommand
// @grant GM_setClipboard
// @grant GM_setValue
// @grant GM_xmlhttpRequest
// @grant unsafeWindow
// @run-at document-body
// ==/UserScript==
(o=>{const e=document.createElement("style");e.dataset.source="vite-plugin-monkey",e.innerText=o,document.head.appendChild(e)})(`@charset "UTF-8";.pure-button{display:inline-block;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-drag:none;-webkit-user-select:none;user-select:none;box-sizing:border-box}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button-group{letter-spacing:-.31em;text-rendering:optimizespeed}.opera-only :-o-prefocus,.pure-button-group{word-spacing:-.43em}.pure-button-group .pure-button{letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-button{font-family:inherit;font-size:100%;padding:.5em 1em;color:#000c;border:none transparent;background-color:#e6e6e6;text-decoration:none;border-radius:2px}.pure-button-hover,.pure-button:focus,.pure-button:hover{background-image:linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.pure-button:focus{outline:0}.pure-button-active,.pure-button:active{box-shadow:0 0 0 1px #00000026 inset,0 0 6px #0003 inset;border-color:#000}.pure-button-disabled,.pure-button-disabled:active,.pure-button-disabled:focus,.pure-button-disabled:hover,.pure-button[disabled]{border:none;background-image:none;opacity:.4;cursor:not-allowed;box-shadow:none;pointer-events:none}.pure-button-hidden{display:none}.pure-button-primary,.pure-button-selected,a.pure-button-primary,a.pure-button-selected{background-color:#0078e7;color:#fff}.pure-button-group .pure-button{margin:0;border-radius:0;border-right:1px solid rgba(0,0,0,.2)}.pure-button-group .pure-button:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px}.pure-button-group .pure-button:last-child{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:none}.pure-table{border-collapse:collapse;border-spacing:0;empty-cells:show;border:1px solid #cbcbcb}.pure-table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.pure-table td,.pure-table th{border-left:1px solid #cbcbcb;border-width:0 0 0 1px;font-size:inherit;margin:0;overflow:visible;padding:.5em 1em}.pure-table thead{background-color:#e0e0e0;color:#000;text-align:left;vertical-align:bottom}.pure-table td{background-color:transparent}.pure-table-odd td{background-color:#f2f2f2}.pure-table-striped tr:nth-child(2n-1) td{background-color:#f2f2f2}.pure-table-bordered td{border-bottom:1px solid #cbcbcb}.pure-table-bordered tbody>tr:last-child>td{border-bottom-width:0}.pure-table-horizontal td,.pure-table-horizontal th{border-width:0 0 1px 0;border-bottom:1px solid #cbcbcb}.pure-table-horizontal tbody>tr:last-child>td{border-bottom-width:0}/*!
Pure v3.0.0
Copyright 2013 Yahoo!
Licensed under the BSD License.
https://github.com/pure-css/pure/blob/master/LICENSE
*/.pure-form input[type=color],.pure-form input[type=date],.pure-form input[type=datetime-local],.pure-form input[type=datetime],.pure-form input[type=email],.pure-form input[type=month],.pure-form input[type=number],.pure-form input[type=password],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=text],.pure-form input[type=time],.pure-form input[type=url],.pure-form input[type=week],.pure-form select,.pure-form textarea{padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;vertical-align:middle;box-sizing:border-box}.pure-form input:not([type]){padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;box-sizing:border-box}.pure-form input[type=color]{padding:.2em .5em}.pure-form input[type=color]:focus,.pure-form input[type=date]:focus,.pure-form input[type=datetime-local]:focus,.pure-form input[type=datetime]:focus,.pure-form input[type=email]:focus,.pure-form input[type=month]:focus,.pure-form input[type=number]:focus,.pure-form input[type=password]:focus,.pure-form input[type=search]:focus,.pure-form input[type=tel]:focus,.pure-form input[type=text]:focus,.pure-form input[type=time]:focus,.pure-form input[type=url]:focus,.pure-form input[type=week]:focus,.pure-form select:focus,.pure-form textarea:focus{outline:0;border-color:#129fea}.pure-form input:not([type]):focus{outline:0;border-color:#129fea}.pure-form input[type=checkbox]:focus,.pure-form input[type=file]:focus,.pure-form input[type=radio]:focus{outline:thin solid #129FEA;outline:1px auto #129FEA}.pure-form .pure-checkbox,.pure-form .pure-radio{margin:.5em 0;display:block}.pure-form input[type=color][disabled],.pure-form input[type=date][disabled],.pure-form input[type=datetime-local][disabled],.pure-form input[type=datetime][disabled],.pure-form input[type=email][disabled],.pure-form input[type=month][disabled],.pure-form input[type=number][disabled],.pure-form input[type=password][disabled],.pure-form input[type=search][disabled],.pure-form input[type=tel][disabled],.pure-form input[type=text][disabled],.pure-form input[type=time][disabled],.pure-form input[type=url][disabled],.pure-form input[type=week][disabled],.pure-form select[disabled],.pure-form textarea[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input:not([type])[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input[readonly],.pure-form select[readonly],.pure-form textarea[readonly]{background-color:#eee;color:#777;border-color:#ccc}.pure-form input:focus:invalid,.pure-form select:focus:invalid,.pure-form textarea:focus:invalid{color:#b94a48;border-color:#e9322d}.pure-form input[type=checkbox]:focus:invalid:focus,.pure-form input[type=file]:focus:invalid:focus,.pure-form input[type=radio]:focus:invalid:focus{outline-color:#e9322d}.pure-form select{height:2.25em;border:1px solid #ccc;background-color:#fff}.pure-form select[multiple]{height:auto}.pure-form label{margin:.5em 0 .2em}.pure-form fieldset{margin:0;padding:.35em 0 .75em;border:0}.pure-form legend{display:block;width:100%;padding:.3em 0;margin-bottom:.3em;color:#333;border-bottom:1px solid #e5e5e5}.pure-form-stacked input[type=color],.pure-form-stacked input[type=date],.pure-form-stacked input[type=datetime-local],.pure-form-stacked input[type=datetime],.pure-form-stacked input[type=email],.pure-form-stacked input[type=file],.pure-form-stacked input[type=month],.pure-form-stacked input[type=number],.pure-form-stacked input[type=password],.pure-form-stacked input[type=search],.pure-form-stacked input[type=tel],.pure-form-stacked input[type=text],.pure-form-stacked input[type=time],.pure-form-stacked input[type=url],.pure-form-stacked input[type=week],.pure-form-stacked label,.pure-form-stacked select,.pure-form-stacked textarea{display:block;margin:.25em 0}.pure-form-stacked input:not([type]){display:block;margin:.25em 0}.pure-form-aligned input,.pure-form-aligned select,.pure-form-aligned textarea,.pure-form-message-inline{display:inline-block;vertical-align:middle}.pure-form-aligned textarea{vertical-align:top}.pure-form-aligned .pure-control-group{margin-bottom:.5em}.pure-form-aligned .pure-control-group label{text-align:right;display:inline-block;vertical-align:middle;width:10em;margin:0 1em 0 0}.pure-form-aligned .pure-controls{margin:1.5em 0 0 11em}.pure-form .pure-input-rounded,.pure-form input.pure-input-rounded{border-radius:2em;padding:.5em 1em}.pure-form .pure-group fieldset{margin-bottom:10px}.pure-form .pure-group input,.pure-form .pure-group textarea{display:block;padding:10px;margin:0 0 -1px;border-radius:0;position:relative;top:-1px}.pure-form .pure-group input:focus,.pure-form .pure-group textarea:focus{z-index:3}.pure-form .pure-group input:first-child,.pure-form .pure-group textarea:first-child{top:1px;border-radius:4px 4px 0 0;margin:0}.pure-form .pure-group input:first-child:last-child,.pure-form .pure-group textarea:first-child:last-child{top:1px;border-radius:4px;margin:0}.pure-form .pure-group input:last-child,.pure-form .pure-group textarea:last-child{top:-2px;border-radius:0 0 4px 4px;margin:0}.pure-form .pure-group button{margin:.35em 0}.pure-form .pure-input-1{width:100%}.pure-form .pure-input-3-4{width:75%}.pure-form .pure-input-2-3{width:66%}.pure-form .pure-input-1-2{width:50%}.pure-form .pure-input-1-3{width:33%}.pure-form .pure-input-1-4{width:25%}.pure-form-message-inline{display:inline-block;padding-left:.3em;color:#666;vertical-align:middle;font-size:.875em}.pure-form-message{display:block;color:#666;font-size:.875em}@media only screen and (max-width :480px){.pure-form button[type=submit]{margin:.7em 0 0}.pure-form input:not([type]),.pure-form input[type=color],.pure-form input[type=date],.pure-form input[type=datetime-local],.pure-form input[type=datetime],.pure-form input[type=email],.pure-form input[type=month],.pure-form input[type=number],.pure-form input[type=password],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=text],.pure-form input[type=time],.pure-form input[type=url],.pure-form input[type=week],.pure-form label{margin-bottom:.3em;display:block}.pure-group input:not([type]),.pure-group input[type=color],.pure-group input[type=date],.pure-group input[type=datetime-local],.pure-group input[type=datetime],.pure-group input[type=email],.pure-group input[type=month],.pure-group input[type=number],.pure-group input[type=password],.pure-group input[type=search],.pure-group input[type=tel],.pure-group input[type=text],.pure-group input[type=time],.pure-group input[type=url],.pure-group input[type=week]{margin-bottom:0}.pure-form-aligned .pure-control-group label{margin-bottom:.3em;text-align:left;display:block;width:100%}.pure-form-aligned .pure-controls{margin:1.5em 0 0}.pure-form-message,.pure-form-message-inline{display:block;font-size:.75em;padding:.2em 0 .8em}}.resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.v-popper__popper{z-index:10000;top:0;left:0;outline:none}.v-popper__popper.v-popper__popper--hidden{visibility:hidden;opacity:0;transition:opacity .15s,visibility .15s;pointer-events:none}.v-popper__popper.v-popper__popper--shown{visibility:visible;opacity:1;transition:opacity .15s}.v-popper__popper.v-popper__popper--skip-transition,.v-popper__popper.v-popper__popper--skip-transition>.v-popper__wrapper{transition:none!important}.v-popper__backdrop{position:absolute;top:0;left:0;width:100%;height:100%;display:none}.v-popper__inner{position:relative;box-sizing:border-box;overflow-y:auto}.v-popper__inner>div{position:relative;z-index:1;max-width:inherit;max-height:inherit}.v-popper__arrow-container{position:absolute;width:10px;height:10px}.v-popper__popper--arrow-overflow .v-popper__arrow-container,.v-popper__popper--no-positioning .v-popper__arrow-container{display:none}.v-popper__arrow-inner,.v-popper__arrow-outer{border-style:solid;position:absolute;top:0;left:0;width:0;height:0}.v-popper__arrow-inner{visibility:hidden;border-width:7px}.v-popper__arrow-outer{border-width:6px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{left:-2px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{left:-1px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer{border-bottom-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{top:0}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{border-top-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-top-color:transparent!important}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{top:-4px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{top:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{top:-1px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{border-left-width:0;border-left-color:transparent!important;border-top-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{left:-4px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{left:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-container{right:-10px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer{border-right-width:0;border-top-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner{left:-2px}.v-popper--theme-dropdown .v-popper__inner{background:#fff;color:#000;border-radius:6px;border:1px solid #ddd;box-shadow:0 6px 30px #0000001a}.v-popper--theme-dropdown .v-popper__arrow-inner{visibility:visible;border-color:#fff}.v-popper--theme-dropdown .v-popper__arrow-outer{border-color:#ddd}.v-popper--theme-tooltip .v-popper__inner{background:rgba(0,0,0,.8);color:#fff;border-radius:6px;padding:7px 12px 6px}.v-popper--theme-tooltip .v-popper__arrow-outer{border-color:#000c}.tabs-component .tabs-component-tabs{border:solid 1px #ddd;border-radius:6px;margin-bottom:5px}@media (min-width: 700px){.tabs-component .tabs-component-tabs{border:0;align-items:stretch;display:flex;justify-content:flex-start;margin-bottom:1px}}.tabs-component .tabs-component-tabs .tabs-component-tab{color:#999;font-size:14px;font-weight:600;margin-right:0;list-style:none;border-bottom:dotted 1px #ddd}.tabs-component .tabs-component-tabs .tabs-component-tab:hover{color:#666}.tabs-component .tabs-component-tabs .tabs-component-tab.is-disabled *{color:#cdcdcd;cursor:not-allowed!important}.tabs-component .tabs-component-tabs .tabs-component-tab.is-active{color:#000}.tabs-component .tabs-component-tabs .tabs-component-tab .tabs-component-tab-a{align-items:center;color:inherit;display:flex;padding:.75em 1em;text-decoration:none}@media (min-width: 700px){.tabs-component .tabs-component-tabs .tabs-component-tab{background-color:#fff;border:solid 1px #ddd;border-radius:3px 3px 0 0;margin-right:.5em;transform:translateY(2px);transition:transform .3s ease}.tabs-component .tabs-component-tabs .tabs-component-tab.is-active{border-bottom:solid 1px #fff;z-index:2;transform:translateY(2px)}}.tabs-component .tabs-component-panels{padding:1em 0}@media (min-width: 700px){.tabs-component .tabs-component-panels{background-color:#fff;border:solid 1px #ddd;border-radius:0 6px 6px;box-shadow:0 0 10px #0000000d;padding:1em 2em}}.tabs-component .tabs-component-btn{cursor:pointer;background:#e1ecf4;border-radius:3px;border:1px solid #7aa7c7;padding:4px 8px;color:#39739d}.tabs-component .tabs-component-btn:hover{background-color:#b3d3ea;color:#2c5777}.tabs-component .tabs-component-btn:active{background-color:#a0c7e4;box-shadow:none;color:#2c5777}.ce-tips{background:#eee;border-radius:4px;padding:4px;font-size:12px;color:#595959;margin-bottom:10px}.ce-hr{border:0;height:1px;background-image:linear-gradient(to right,rgba(0,0,0,0),#ccc,rgba(0,0,0,0))}.ce-config input[type=checkbox]{width:18px;height:18px;cursor:pointer}div[class^=fp-].hidden-watermark{display:none!important}.ce-custom-url-help{position:fixed;top:0;left:0;z-index:10000;width:430px;height:100%;background:#fff;font-size:12px}.ce-custom-url-help .ce-custom-url-help-body{height:80%;overflow-y:auto;padding:20px 20px 300px}.ce-custom-url-help h1 a{float:right;color:#1e87f0;font-size:14px}.ce-custom-url-help h1 a:hover{color:#1e87f0;text-decoration:underline}.ce-custom-url-help table{width:100%;margin-bottom:20px}.ce-custom-url-help .ce-variable{cursor:pointer;color:#1e87f0;font-size:14px}.ce-custom-url-help .ce-variable:hover{color:#093d71}.ce-menu:not(.sub-item){background:#fffcea}.ce-menu img.ce-menu-icon{float:left;width:12px;height:12px;margin-right:4px}.ce-menu.list-item-hover-menu i.ce-menu-icon.icon-operate{scale:.75}.ce-menu.list-item-hover-menu.ce-menu-parent{position:relative;float:left;cursor:pointer}.ce-menu.list-item-hover-menu.ce-menu-parent:after{content:"";position:absolute;top:50%;right:0;width:1px;height:14px;margin-top:-7px;background:rgba(39,119,248,.8);pointer-events:none}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-trigger{padding:0 12px;color:#2777f8}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-trigger:before{content:"\\2228";margin-right:4px;font-size:12px}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown{position:absolute;background:#fff;box-shadow:0 1px 5px #2777f866;z-index:99999999;left:0;padding:4px;border-radius:4px;display:none;text-align:center;width:160px}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown.ce-menu-dropdown-active{display:block}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown .list-item-hover-menu-sub{margin:2px 0;background:#eee;color:#2877f8;width:100%;border-radius:4px;padding:6px 12px;line-height:12px;box-sizing:border-box}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown .list-item-hover-menu-sub:hover{background-color:#f3e882}.ce-menu.list-item-hover-menu.ce-menu-parent .ce-menu-dropdown .list-item-hover-menu-sub:after{display:none}.ce-menu.selection-menu.ce-menu-parent{position:relative;float:left;cursor:pointer}.ce-menu.selection-menu.ce-menu-parent:after{content:"";position:absolute;top:50%;right:0;width:1px;height:14px;margin-top:-7px;background:rgba(39,119,248,.8);pointer-events:none}.ce-menu.selection-menu.ce-menu-parent .ce-menu-trigger{color:#2777f8}.ce-menu.selection-menu.ce-menu-parent .ce-menu-trigger:before{content:"\\2228";margin-right:4px;font-size:12px}.ce-menu.selection-menu.ce-menu-parent.ce-menu-dropdown-opened .ce-menu-trigger{color:#fff}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown{position:absolute;background:#fff;box-shadow:0 1px 5px #2777f866;z-index:99999999;top:30px;left:0;width:160px;padding:4px;border-radius:4px;display:none;text-align:left}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown.ce-menu-dropdown-active{display:block}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown .selection-menu-sub{color:#2877f8;width:60px;border-radius:4px;text-align:left;display:block;width:100%;box-sizing:border-box;padding-left:4px;padding-right:4px;font-size:12px;background:transparent;cursor:pointer}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown .selection-menu-sub span{font-weight:400;float:inherit}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown .selection-menu-sub .ce-menu-icon{float:unset}.ce-menu.selection-menu.ce-menu-parent .ce-menu-dropdown .selection-menu-sub:hover{background-color:#f3e882}.ce-menu.dir-context-menu>a img.ce-menu-icon{float:none;width:18px;height:18px;position:absolute;top:50%;left:14px;margin-top:-10px}.ce-menu.dir-context-menu.ce-menu-parent{position:relative;cursor:pointer;padding:6px 0}.ce-menu.dir-context-menu.ce-menu-parent:after{content:">";position:absolute;opacity:.5;right:10px;pointer-events:none}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-trigger{margin-left:43px;color:#2777f8}.ce-menu.dir-context-menu.ce-menu-parent.ce-menu-dropdown-opened{background:#f3e882}.ce-menu.dir-context-menu.ce-menu-parent.ce-menu-dropdown-opened .ce-menu-trigger{color:#1c0ccf}.ce-menu.dir-context-menu.ce-menu-parent.ce-menu-dropdown-opened:after{opacity:0}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-dropdown{position:absolute;background:#fff;box-shadow:0 1px 5px #2777f866;z-index:99999999;top:0;left:100%;width:160px;padding:4px;border-radius:4px;display:none;text-align:left}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-dropdown.ce-menu-dropdown-active{display:block}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-dropdown .dir-context-menu-sub{color:#2877f8;width:60px;border-radius:4px;text-align:left;display:block;width:100%;box-sizing:border-box;padding:4px 8px;font-size:12px;background:transparent;cursor:pointer}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-dropdown .dir-context-menu-sub span{font-weight:400;float:inherit}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-dropdown .dir-context-menu-sub:hover{background-color:#f3e882}.ce-menu.dir-context-menu.ce-menu-parent .ce-menu-icon{width:18px;height:18px;margin-right:8px}.ce-menu.list-item-context-menu.ce-menu-parent{position:relative;cursor:pointer;padding:6px 0}.ce-menu.list-item-context-menu.ce-menu-parent:after{content:">";position:absolute;opacity:.5;right:10px;pointer-events:none}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-trigger{margin-left:43px;color:#2777f8}.ce-menu.list-item-context-menu.ce-menu-parent.ce-menu-dropdown-opened{background:#f3e882}.ce-menu.list-item-context-menu.ce-menu-parent.ce-menu-dropdown-opened .ce-menu-trigger{color:#1c0ccf}.ce-menu.list-item-context-menu.ce-menu-parent.ce-menu-dropdown-opened:after{opacity:0}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-dropdown{position:absolute;background:#fff;box-shadow:0 1px 5px #2777f866;z-index:99999999;top:0;left:100%;width:160px;padding:4px;border-radius:4px;display:none;text-align:left}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-dropdown.ce-menu-dropdown-active{display:block}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-dropdown .list-item-context-menu-sub{color:#2877f8;width:60px;border-radius:4px;text-align:left;display:block;width:100%;box-sizing:border-box;padding:4px 8px;font-size:12px;background:transparent;cursor:pointer}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-dropdown .list-item-context-menu-sub span{font-weight:400;float:inherit}.ce-menu.list-item-context-menu.ce-menu-parent .ce-menu-dropdown .list-item-context-menu-sub:hover{background-color:#f3e882}.context-menu.menu-upward{max-height:400px!important;overflow:unset!important}.ce-menu-divider{height:1px!important;display:block!important;background-color:#edeeef!important}.ce-menu-divider:after{display:none!important}.list-item-hover-menu .ce-menu-divider{height:6px!important;background-color:transparent!important}div#js_operate_box.only-icon li[menu] span{display:none}.list-contents{padding-bottom:300px}.header-size a.ce-size-sort{cursor:pointer;background:#f2f4f8;border-radius:4px;padding:0 6px;color:#8c97a0;margin-left:10px}.header-size a.ce-size-sort i{display:none}.header-size a.ce-size-sort.by-desc{background-color:#fdc94a;color:#1a2734}.header-size a.ce-size-sort.by-desc i.icon-sort-desc{display:inline-block}.header-size a.ce-size-sort.by-asc{background-color:#fdc94a;color:#1a2734}.header-size a.ce-size-sort.by-asc i.icon-sort-asc{display:inline-block}.header-size a.ce-size-sort.ce-size-sort-ing{cursor:no-drop}.ce-offline-config{max-height:70vh;overflow-y:auto}.ce-offline-config .ce-tips{margin-top:20px;margin-left:56px}.ce-offline-config .pure-form-message{margin-left:56px}.ce-offline-exporter{position:absolute;left:140px;top:62px;background:#f4f2ff;padding:6px 10px;border-radius:4px}.ce-offline-exporter button{margin-right:6px}.offline-exporter-config-form{width:550px;padding:10px}.swal2-input#swalDeleteFile{width:20px;padding:0;height:20px;margin:0;vertical-align:sub;cursor:pointer}body.ce-list-s #js-main{padding-top:40px}body.ce-list-s .ce-offline-exporter{top:92px}.ce-offline-searcher{position:absolute;left:140px;top:58px;background:#f4f2ff;padding:4px 10px;border-radius:4px}.ce-offline-searcher.loading form{opacity:.5;pointer-events:none;cursor:wait}.ce-offline-searcher fieldset{padding:0}.ce-offline-searcher .clearable-wrap{position:relative;width:320px}.ce-offline-searcher .clearable-wrap.is-empty .btn-clear{display:none}.ce-offline-searcher .clearable-wrap input{width:300px;padding-right:35px!important}.ce-offline-searcher .clearable-wrap .btn-clear{position:absolute;right:30px;top:4px;display:block}.ce-offline-searcher .form-item{display:inline-block;margin-right:10px;vertical-align:middle}.ce-offline-searcher .form-item input{padding:.3em}.ce-offline-searcher .form-item select{height:2em;padding:.1em .3em}.ce-offline-searcher .form-item label{margin-right:5px}.ce-offline-searcher .help-trigger{font-size:12px}.ce-offline-searcher .list{display:none}.ce-offline-searcher .stop-on-found{width:16px;height:16px;vertical-align:middle;cursor:pointer}.ce-offline-searcher .search-tips{position:fixed;top:146px;bottom:30px;left:0;width:100%;background:#fff;z-index:9999}.ce-offline-searcher .search-tips .tips-body{padding:20px;position:absolute;top:70px;left:50%;transform:translate(-50%,-50%);background:#f4f2ff;width:80%;border-radius:6px}.cloud115-page-offline.ce-list-m .list-contents .file-name-wrap .desc-tips{left:75px}.cloud115-page-offline.ce-list-m li.ce-task-trouble .info-hash{left:210px!important}.cloud115-page-offline li .ce-buttons{float:left;margin-right:6px}.cloud115-page-offline .ce-checkbox{width:30px}.cloud115-page-offline .ce-checkbox input{display:block!important;width:20px;height:20px;cursor:pointer}.cloud115-page-offline #js-warp .info-hash{position:absolute;left:47px;top:25px;color:#ababab;cursor:pointer}.cloud115-page-offline #js-warp .info-hash.hover{color:#6ab2ff}.cloud115-page-offline #js-warp li.ce-selected:before{background:#ffe296!important}.cloud115-page-offline #js-warp li.ce-show-checkbox .info-hash{left:60px}.cloud115-page-offline #js-warp li.ce-show-checkbox .file-name{margin-left:15px}.cloud115-page-offline #js-warp li.ce-show-checkbox .file-type{left:25px!important}.cloud115-page-offline #js-warp li .ce-checkbox{width:30px;position:absolute;left:0}.cloud115-page-offline #js-warp li .ce-checkbox input{display:block!important;width:20px;height:20px;cursor:pointer}.cloud115-page-offline #js-warp li .desc-tips{position:absolute;left:60px;top:25px}.cloud115-eh-cleaner-trigger .btn-open{padding:0 6px;vertical-align:text-top;line-height:30px;border-radius:4px;background:#4faa4f}.v-popper.v-popper--theme-dropdown{display:inline-block}.group-manager{width:750px}.group-manager a{font-size:12px;padding:0 4px;margin-right:8px}.group-manager .group-label{color:#fff;font-size:12px;margin-right:10px;border-radius:4px;padding:2px 8px;background:#66acf9}.group-manager .label-readonly{background:#c93c3c;color:#fff;padding:0 4px;border-radius:4px;vertical-align:middle;margin-right:6px}.append-form{background:#fff;width:350px;padding:10px;border-radius:4px}.append-form input,.append-form textarea{width:100%}.group-form{background:#fff;width:540px;padding:10px;border-radius:4px}.group-form input,.group-form textarea{width:100%}.group-form .filter-label{cursor:pointer;padding:0 4px;text-decoration:underline}.group-form input#groupLabel{display:inline-block}.groups-list{background:#fff;width:565px;padding:10px;border-radius:4px;box-shadow:0 0 4px #d8d8d8}.groups-list table th,.groups-list table td{padding:4px 6px}.groups-list ul li{border-bottom:1px solid #eee;padding:4px}.groups-list ul li:nth-last-child(1){border-bottom:none}.groups-list span{display:inline-block}.groups-list .p-index{width:30px}.groups-list .p-label{width:120px}.groups-list .p-actions button{margin-right:8px}.group-confirm-delete{padding:20px}#cloud115Cleaner{margin-left:10px}.v-popper__arrow-container{display:none}.cloud115-eh-cleaner .btn-open{padding:0 6px;vertical-align:text-top;line-height:30px;border-radius:4px;background:#4faa4f;display:none}.cloud115-eh-cleaner .actions-bar{padding-bottom:10px}.cloud115-eh-cleaner .actions-bar .title{font-size:18px;font-weight:700;color:#15110c}.cloud115-eh-cleaner .actions-bar .close{margin-left:20px;margin-right:10px;color:#f40}.cloud115-eh-cleaner .actions-bar i.tp-folder{width:18px;height:18px;vertical-align:sub}.cloud115-eh-cleaner-help{position:fixed;top:60px;right:0;bottom:0;width:470px;z-index:1051;padding:10px 10px 150px 8px;background:#fdffdf;overflow-y:auto}.cloud115-eh-cleaner-help ul{list-style:decimal}.cloud115-eh-cleaner-drawer{position:fixed;top:60px;right:0;bottom:0;left:260px;background:#fff;z-index:1050;padding:10px 20px 200px;overflow-y:auto;box-shadow:-2px 2px 6px #bbb}.cloud115-eh-cleaner-drawer.loading{cursor:wait}.cloud115-eh-cleaner-drawer.loading button,.cloud115-eh-cleaner-drawer.loading input{cursor:no-drop;pointer-events:none}.cloud115-eh-cleaner-drawer .config-toggle{display:inline-block;background:#eee;border-radius:4px;opacity:.2;padding:2px 4px;cursor:pointer}.cloud115-eh-cleaner-drawer .config-toggle.hover{opacity:.7}.cloud115-eh-cleaner-drawer .by-box .by-header{padding-bottom:10px}.cloud115-eh-cleaner-drawer .by-box .by-header .title{font-size:16px;margin-right:8px;color:#0078e6;font-weight:400}.cloud115-eh-cleaner-drawer .by-box .by-header .filter-size{width:100px;font-size:14px;font-weight:700;color:#0078e6;text-indent:6px}.cloud115-eh-cleaner-drawer .by-box .pure-button-group{display:inline-block}.cloud115-eh-cleaner-drawer .by-box .pure-button-group .pure-button{vertical-align:inherit}.cloud115-eh-cleaner-drawer .by-box .pattern-groups{width:750px;text-align:right}.cloud115-eh-cleaner-drawer .by-box .pattern-groups a{font-size:12px;padding:0 4px;margin-right:8px}.cloud115-eh-cleaner-drawer .by-box table tr.active{background:#f7ffc3}.cloud115-eh-cleaner-drawer .by-box table tr.is-dir .pattern{color:#f40}.cloud115-eh-cleaner-drawer .by-box table tr th,.cloud115-eh-cleaner-drawer .by-box table tr td{padding:.5em;font-size:12px}.cloud115-eh-cleaner-drawer .by-box table td a{color:#2877f8}.cloud115-eh-cleaner-drawer .by-box table td .tp-folder{width:16px;height:16px;vertical-align:sub}.button-xsmall,.button-mini{font-size:12px;padding:.2em .5em}.button-small{font-size:85%}.button-large{font-size:110%}.button-xlarge{font-size:125%}.button-success,.button-error,.button-warning,.button-secondary{color:#fff;border-radius:4px;text-shadow:0 1px 1px rgba(0,0,0,.2)}.button-success{background:rgb(28,184,65)}.button-error{background:rgb(202,60,60)}.button-warning{background:rgb(223,117,20)}.button-secondary{background:rgb(66,184,221)}.pure-form select{height:2.5em;font-size:12px}.ce-basic-config .pure-form-message{margin-left:82px}.ce-basic-config .avatar-preview{display:inline-block;vertical-align:middle;margin-left:10px}.ce-basic-config .pure-control-group input.input-small{padding:2px 4px;width:auto}.ce-clouddrive-config-item{margin-bottom:20px;border:1px solid #cbcbcb;border-radius:0;padding:4px}.ce-clouddrive-config-item.active{background:#fefcea}.ce-clouddrive-config-item input:not([type]){font-size:12px}.ce-clouddrive-config-item .button-error{float:right}.ce-clouddrive-config .cd-tips a{text-decoration:underline}.ce-clouddrive-config .cd-code{font-size:110%;cursor:pointer;user-select:none}.ce-list-config .pure-control-group label{width:15em}.ce-list-config .pure-form-message{margin-left:3em}.ce-search-config .pure-control-group label{width:15em}.ce-search-config .pure-form-message{margin-left:3em}.text-center{text-align:center}.text-bold{font-weight:700}.text-cross{text-decoration:line-through}.text-primary{color:#1890ff}.text-success{color:#13ce66}.text-warning{color:#ffba00}.text-danger{color:#ff4949}.text-info{color:#909399}.ce-tools-config .pure-control-group label{width:15em}.ce-tools-config .pure-form-message{margin-left:3em}.ce-tools-config legend{font-size:16px;color:#1890ff}.menu-basic-config .pure-control-group label,.official-menu-config .pure-form label{width:170px!important}.official-menu-config .pure-form label small{color:#999}.ce-menu-config .menu-config-block{display:inline-block;border-radius:6px;margin:4px;vertical-align:top;padding:0 6px;background:#f9f9f9}.ce-menu-config .menu-config-block>form>legend{border:none;text-align:center;font-size:14px;color:#5092ff;padding:4px;margin-bottom:0}.ce-menu-config .menu-config-block>form>fieldset>div{background:#fff;margin-bottom:1px;padding:4px}.ce-menu-config .menu-config-block>form>fieldset>div:hover{background:#fefcea}.ce-menu-config .menu-config-block label{display:inline-block;width:120px;font-size:12px;line-height:20px;vertical-align:middle;cursor:pointer}.ce-menu-config input[type=checkbox]{margin-right:10px;width:18px;height:18px;cursor:pointer;vertical-align:middle}.ce-menu-config .btn-view-info{display:inline-block;margin-right:6px;vertical-align:middle;cursor:help}.ce-custom-url{border-radius:4px;box-shadow:0 0 5px #eee;border:1px solid #eee;margin-bottom:20px;padding:0 10px;background:#fff}.ce-custom-url label{cursor:pointer}.ce-custom-url input:not([type]){font-size:12px}.ce-custom-url textarea{font-size:12px;resize:vertical}.ce-custom-url input[type=checkbox]{width:18px;height:18px;cursor:pointer}.ce-custom-url .ce-custom-url-index{font-size:14px;font-weight:700;margin-right:20px}.ce-custom-url legend .button-error{float:right}.ce-custom-url fieldset>div{margin-bottom:1px;padding:4px}.ce-custom-url fieldset>div:hover{background:#fefcea}.ce-custom-urls,.ce-play-urls{padding-bottom:100px}.ce-play-urls .extra-memo{font-size:12px;margin-left:10px}.ce-play-urls .extra-memo a{text-decoration:underline;color:#337ab7}.ce-drawer{visibility:hidden}.ce-drawer.is-visible{visibility:visible}.ce-drawer.is-open .ce-drawer__overlay{opacity:.5}.ce-drawer.is-open .ce-drawer__content{transform:translate(0)}.ce-drawer__overlay{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;z-index:200;opacity:0;transition-property:opacity;background-color:#000;user-select:none}.ce-drawer__content{position:fixed;top:0;right:0;bottom:0;height:100%;width:100%;z-index:9999;overflow:auto;transition-property:transform;display:flex;flex-direction:column;transform:translate(100%);box-shadow:0 2px 6px #777}.ce-config-main .ce-intro{margin-left:35%;color:#7676ff}.ce-config-main .ce-intro small{color:#999}.ce-config-main .ce-config-main-body{padding:10px}.ce-config-main .ce-config-main-header{padding:10px;position:sticky;top:0;background:#fff;z-index:100000;box-shadow:0 1px 2px #e9e9e9}.ce-config-main .ce-config-main-header h1{display:inline;font-size:18px}.ce-config-main .ce-config-main-header .ce-config-main-close{float:right;vertical-align:top;color:#89929b;cursor:pointer;padding:2px 20px;border-radius:6px}.ce-config-main .ce-config-main-header .ce-config-main-close:hover{background:#fefcea;color:#0275ff}.ce-config-main .ce-offline-config{max-height:unset}.ce-login-page a.ce-entry{display:inline-block;background:#fefcea;padding:2px 8px;border-radius:4px;border:1px solid #98bbfc}.list-contents ul li .ce-btn-folder-size{background:#f2f4f8;border-radius:6px;padding:4px;cursor:pointer}.list-contents ul li .ce-file-sha1{position:absolute;top:20px;color:#999;cursor:pointer;font-size:90%}.list-contents ul li.ce-show-sha1 .file-name{height:40px}.list-contents ul li.ce-size-got .ce-btn-folder-size{opacity:.6;margin-left:6px}.list-contents ul li.ce-size-got .ce-btn-folder-size:hover{opacity:1}#js_top_header_file_path_box .ce-path-btn{background-color:#f4f6fc;height:32px}#js_top_header_file_path_box .ce-path-btn#ceGotoPath{margin-right:6px}#js_top_header_file_path_box.ce-goto-path-active{height:60px}#js_top_header_file_path_box.ce-goto-path-active div#js_path_add_dir{height:32px}#js_top_header_file_path_box #ceGotoPathApp{position:absolute;top:40px}.ce-goto-main{position:relative;margin-right:5px}.ce-goto-main.ce-goto-sug-shown .ce-goto-input-wrap{border-radius:6px 6px 0 0}.ce-goto-main.ce-goto-sug-shown .ce-goto-sug{display:block}.ce-goto-main .ce-goto-input-wrap{position:relative;overflow:hidden;border:1px solid #cfcccc;border-radius:6px}.ce-goto-main .ce-goto-input-wrap .ce-goto-input{border-radius:6px 6px 0 0;border:none;padding:4px 10px;width:100%;box-sizing:border-box;color:#2877f8;border-bottom:none}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn{position:absolute;border:none}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn:hover{color:#ff723e}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn[data-cmd]{top:5px;font-size:12px;background:#aeaeae;color:#fff;padding:0 4px;border-radius:4px;cursor:pointer}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn[data-cmd]:hover{background:#ff723e}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn[data-cmd][disabled]{background:#d7d7d7;cursor:not-allowed}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn[data-cmd=clear]{right:10px}.ce-goto-main .ce-goto-input-wrap .ce-goto-input-btn[data-cmd=toggle]{right:50px}.ce-goto-main .ce-goto-sug{display:none;position:absolute;background:#ffffff;width:100%;padding:10px 10px 10px 8px;max-height:250px;z-index:999999;overflow-y:auto;box-shadow:0 5px 8px #ededed;border-radius:0 0 6px 6px;border:1px solid #cfcccc;box-sizing:border-box;border-top:none}.ce-goto-main .ce-goto-sug .ce-goto-sug-item{padding:4px 10px;background:#f4f6fc;margin-bottom:4px;cursor:pointer;border-radius:4px;font-size:12px;color:#353535}.ce-goto-main .ce-goto-sug .ce-goto-sug-item:hover{background:#d7d7d7}.ce-goto-main .ce-goto-sug .ce-goto-sug-item.active{background:#f4e1cf;color:#2877f8}.ce-goto-main .ce-goto-sug .ce-goto-sug-item span.ce-goto-sug-prefix,.ce-goto-main .ce-goto-sug .ce-goto-sug-item span.ce-goto-sep{color:#a4a4a4}.ce-goto-main .ce-goto-sug .ce-goto-sug-item span.ce-goto-sug-index{display:inline-block;background:#6ab2ff;font-size:10px;min-width:20px;color:#fff;border-radius:4px;text-align:center;padding:0 2px;margin-right:4px}.ce-search-page .top-file-path .file-path{float:left}.ce-search-page .dir-tab.ce-btn-select{background:#fffcea;color:#2877f8;display:inline-block;height:32px;line-height:24px;font-size:12px;padding:4px 8px;box-sizing:border-box;border:1px solid #2877f8;border-radius:4px}.ce-search-page .dir-tab.ce-btn-select:hover{background:#ffff00}
`);
var XP=Object.defineProperty;var QP=(Uo,Dn,Ho)=>Dn in Uo?XP(Uo,Dn,{enumerable:!0,configurable:!0,writable:!0,value:Ho}):Uo[Dn]=Ho;var Ie=(Uo,Dn,Ho)=>(QP(Uo,typeof Dn!="symbol"?Dn+"":Dn,Ho),Ho);(function(){"use strict";const Uo="",Dn="",Ho="",ZP="",eT="",tT="",nT="",nm=typeof btoa=="function",ea=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const _c=typeof TextEncoder=="function"?new TextEncoder:void 0,om="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ws=Array.prototype.slice.call(om);(e=>{let t={};return e.forEach((n,o)=>t[n]=o),t})(ws);const nn=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const sm=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),xc=nm?e=>btoa(e):ea?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,o,s,i="";const r=e.length%3;for(let a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(o=e.charCodeAt(a++))>255||(s=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=n<<16|o<<8|s,i+=ws[t>>18&63]+ws[t>>12&63]+ws[t>>6&63]+ws[t&63]}return r?i.slice(0,r-3)+"===".substring(r):i},im=ea?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let o=0,s=e.length;o<s;o+=4096)n.push(nn.apply(null,e.subarray(o,o+4096)));return xc(n.join(""))},rm=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?nn(192|t>>>6)+nn(128|t&63):nn(224|t>>>12&15)+nn(128|t>>>6&63)+nn(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return nn(240|t>>>18&7)+nn(128|t>>>12&63)+nn(128|t>>>6&63)+nn(128|t&63)}},am=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,lm=e=>e.replace(am,rm),Cc=ea?e=>Buffer.from(e,"utf8").toString("base64"):_c?e=>im(_c.encode(e)):e=>xc(lm(e)),$c=(e,t=!1)=>t?sm(Cc(e)):Cc(e);var lo=window,ta=(()=>lo.GM_setValue)(),cm=(()=>lo.GM_deleteValue)(),um=(()=>lo.GM_openInTab)(),na=(()=>lo.GM_registerMenuCommand)(),dm=(()=>lo.GM_xmlhttpRequest)(),ys=(()=>lo.GM_setClipboard)(),bi=(()=>lo.GM_getValue)(),Nn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},kc={exports:{}};/*!
* sweetalert2 v11.7.2
* Released under the MIT License.
*/(function(e,t){(function(n,o){e.exports=o()})(Nn,function(){var n={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const o="swal2-",s=l=>{const c={};for(const g in l)c[l[g]]=o+l[g];return c},i=s(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),r=s(["success","warning","info","question","error"]),a="SweetAlert2:",u=l=>{const c=[];for(let g=0;g<l.length;g++)c.indexOf(l[g])===-1&&c.push(l[g]);return c},f=l=>l.charAt(0).toUpperCase()+l.slice(1),p=l=>{console.warn(`${a} ${typeof l=="object"?l.join(" "):l}`)},h=l=>{console.error(`${a} ${l}`)},w=[],C=l=>{w.includes(l)||(w.push(l),p(l))},x=(l,c)=>{C(`"${l}" is deprecated and will be removed in the next major release. Please use "${c}" instead.`)},A=l=>typeof l=="function"?l():l,M=l=>l&&typeof l.toPromise=="function",D=l=>M(l)?l.toPromise():Promise.resolve(l),O=l=>l&&Promise.resolve(l)===l,I=()=>document.body.querySelector(`.${i.container}`),H=l=>{const c=I();return c?c.querySelector(l):null},se=l=>H(`.${l}`),j=()=>se(i.popup),ne=()=>se(i.icon),ae=()=>se(i["icon-content"]),pe=()=>se(i.title),Ae=()=>se(i["html-container"]),ge=()=>se(i.image),P=()=>se(i["progress-steps"]),ie=()=>se(i["validation-message"]),Y=()=>H(`.${i.actions} .${i.confirm}`),_e=()=>H(`.${i.actions} .${i.cancel}`),L=()=>H(`.${i.actions} .${i.deny}`),G=()=>se(i["input-label"]),N=()=>H(`.${i.loader}`),me=()=>se(i.actions),ke=()=>se(i.footer),Me=()=>se(i["timer-progress-bar"]),Fe=()=>se(i.close),Qe=`
a[href],
area[href],
input:not([disabled]),
select:not([disabled]),
textarea:not([disabled]),
button:not([disabled]),
iframe,
object,
embed,
[tabindex="0"],
[contenteditable],
audio[controls],
video[controls],
summary
`,jt=()=>{const l=Array.from(j().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((g,v)=>{const F=parseInt(g.getAttribute("tabindex")),$e=parseInt(v.getAttribute("tabindex"));return F>$e?1:F<$e?-1:0}),c=Array.from(j().querySelectorAll(Qe)).filter(g=>g.getAttribute("tabindex")!=="-1");return u(l.concat(c)).filter(g=>U(g))},Ut=()=>ot(document.body,i.shown)&&!ot(document.body,i["toast-shown"])&&!ot(document.body,i["no-backdrop"]),Bn=()=>j()&&ot(j(),i.toast),_t=()=>j().hasAttribute("data-loading"),xt={previousBodyPadding:null},ft=(l,c)=>{if(l.textContent="",c){const v=new DOMParser().parseFromString(c,"text/html");Array.from(v.querySelector("head").childNodes).forEach(F=>{l.appendChild(F)}),Array.from(v.querySelector("body").childNodes).forEach(F=>{F instanceof HTMLVideoElement||F instanceof HTMLAudioElement?l.appendChild(F.cloneNode(!0)):l.appendChild(F)})}},ot=(l,c)=>{if(!c)return!1;const g=c.split(/\s+/);for(let v=0;v<g.length;v++)if(!l.classList.contains(g[v]))return!1;return!0},ao=(l,c)=>{Array.from(l.classList).forEach(g=>{!Object.values(i).includes(g)&&!Object.values(r).includes(g)&&!Object.values(c.showClass).includes(g)&&l.classList.remove(g)})},dt=(l,c,g)=>{if(ao(l,c),c.customClass&&c.customClass[g]){if(typeof c.customClass[g]!="string"&&!c.customClass[g].forEach){p(`Invalid type of customClass.${g}! Expected string or iterable object, got "${typeof c.customClass[g]}"`);return}B(l,c.customClass[g])}},b=(l,c)=>{if(!c)return null;switch(c){case"select":case"textarea":case"file":return l.querySelector(`.${i.popup} > .${i[c]}`);case"checkbox":return l.querySelector(`.${i.popup} > .${i.checkbox} input`);case"radio":return l.querySelector(`.${i.popup} > .${i.radio} input:checked`)||l.querySelector(`.${i.popup} > .${i.radio} input:first-child`);case"range":return l.querySelector(`.${i.popup} > .${i.range} input`);default:return l.querySelector(`.${i.popup} > .${i.input}`)}},E=l=>{if(l.focus(),l.type!=="file"){const c=l.value;l.value="",l.value=c}},R=(l,c,g)=>{!l||!c||(typeof c=="string"&&(c=c.split(/\s+/).filter(Boolean)),c.forEach(v=>{Array.isArray(l)?l.forEach(F=>{g?F.classList.add(v):F.classList.remove(v)}):g?l.classList.add(v):l.classList.remove(v)}))},B=(l,c)=>{R(l,c,!0)},q=(l,c)=>{R(l,c,!1)},oe=(l,c)=>{const g=Array.from(l.children);for(let v=0;v<g.length;v++){const F=g[v];if(F instanceof HTMLElement&&ot(F,c))return F}},le=(l,c,g)=>{g===`${parseInt(g)}`&&(g=parseInt(g)),g||parseInt(g)===0?l.style[c]=typeof g=="number"?`${g}px`:g:l.style.removeProperty(c)},J=function(l){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";l.style.display=c},Z=l=>{l.style.display="none"},X=(l,c,g,v)=>{const F=l.querySelector(c);F&&(F.style[g]=v)},ye=function(l,c){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";c?J(l,g):Z(l)},U=l=>!!(l&&(l.offsetWidth||l.offsetHeight||l.getClientRects().length)),be=()=>!U(Y())&&!U(L())&&!U(_e()),m=l=>l.scrollHeight>l.clientHeight,y=l=>{const c=window.getComputedStyle(l),g=parseFloat(c.getPropertyValue("animation-duration")||"0"),v=parseFloat(c.getPropertyValue("transition-duration")||"0");return g>0||v>0},_=function(l){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const g=Me();U(g)&&(c&&(g.style.transition="none",g.style.width="100%"),setTimeout(()=>{g.style.transition=`width ${l/1e3}s linear`,g.style.width="0%"},10))},k=()=>{const l=Me(),c=parseInt(window.getComputedStyle(l).width);l.style.removeProperty("transition"),l.style.width="100%";const g=parseInt(window.getComputedStyle(l).width),v=c/g*100;l.style.width=`${v}%`},T=100,S={},z=()=>{S.previousActiveElement instanceof HTMLElement?(S.previousActiveElement.focus(),S.previousActiveElement=null):document.body&&document.body.focus()},V=l=>new Promise(c=>{if(!l)return c();const g=window.scrollX,v=window.scrollY;S.restoreFocusTimeout=setTimeout(()=>{z(),c()},T),window.scrollTo(g,v)}),te=()=>typeof window>"u"||typeof document>"u",Oe=`
<div aria-labelledby="${i.title}" aria-describedby="${i["html-container"]}" class="${i.popup}" tabindex="-1">
<button type="button" class="${i.close}"></button>
<ul class="${i["progress-steps"]}"></ul>
<div class="${i.icon}"></div>
<img class="${i.image}" />
<h2 class="${i.title}" id="${i.title}"></h2>
<div class="${i["html-container"]}" id="${i["html-container"]}"></div>
<input class="${i.input}" />
<input type="file" class="${i.file}" />
<div class="${i.range}">
<input type="range" />
<output></output>
</div>
<select class="${i.select}"></select>
<div class="${i.radio}"></div>
<label for="${i.checkbox}" class="${i.checkbox}">
<input type="checkbox" />
<span class="${i.label}"></span>
</label>
<textarea class="${i.textarea}"></textarea>
<div class="${i["validation-message"]}" id="${i["validation-message"]}"></div>
<div class="${i.actions}">
<div class="${i.loader}"></div>
<button type="button" class="${i.confirm}"></button>
<button type="button" class="${i.deny}"></button>
<button type="button" class="${i.cancel}"></button>
</div>
<div class="${i.footer}"></div>
<div class="${i["timer-progress-bar-container"]}">
<div class="${i["timer-progress-bar"]}"></div>
</div>
</div>
`.replace(/(^|\n)\s*/g,""),Se=()=>{const l=I();return l?(l.remove(),q([document.documentElement,document.body],[i["no-backdrop"],i["toast-shown"],i["has-column"]]),!0):!1},ve=()=>{S.currentInstance.resetValidationMessage()},je=()=>{const l=j(),c=oe(l,i.input),g=oe(l,i.file),v=l.querySelector(`.${i.range} input`),F=l.querySelector(`.${i.range} output`),$e=oe(l,i.select),Je=l.querySelector(`.${i.checkbox} input`),Ht=oe(l,i.textarea);c.oninput=ve,g.onchange=ve,$e.onchange=ve,Je.onchange=ve,Ht.oninput=ve,v.oninput=()=>{ve(),F.value=v.value},v.onchange=()=>{ve(),F.value=v.value}},Ct=l=>typeof l=="string"?document.querySelector(l):l,gt=l=>{const c=j();c.setAttribute("role",l.toast?"alert":"dialog"),c.setAttribute("aria-live",l.toast?"polite":"assertive"),l.toast||c.setAttribute("aria-modal","true")},pi=l=>{window.getComputedStyle(l).direction==="rtl"&&B(I(),i.rtl)},hi=l=>{const c=Se();if(te()){h("SweetAlert2 requires document to initialize");return}const g=document.createElement("div");g.className=i.container,c&&B(g,i["no-transition"]),ft(g,Oe);const v=Ct(l.target);v.appendChild(g),gt(l),pi(v),je()},uc=(l,c)=>{l instanceof HTMLElement?c.appendChild(l):typeof l=="object"?AO(l,c):l&&ft(c,l)},AO=(l,c)=>{l.jquery?OO(c,l):ft(c,l.toString())},OO=(l,c)=>{if(l.textContent="",0 in c)for(let g=0;g in c;g++)l.appendChild(c[g].cloneNode(!0));else l.appendChild(c.cloneNode(!0))},mi=(()=>{if(te())return!1;const l=document.createElement("div"),c={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const g in c)if(Object.prototype.hasOwnProperty.call(c,g)&&typeof l.style[g]<"u")return c[g];return!1})(),IO=()=>{const l=document.createElement("div");l.className=i["scrollbar-measure"],document.body.appendChild(l);const c=l.getBoundingClientRect().width-l.clientWidth;return document.body.removeChild(l),c},PO=(l,c)=>{const g=me(),v=N();!c.showConfirmButton&&!c.showDenyButton&&!c.showCancelButton?Z(g):J(g),dt(g,c,"actions"),TO(g,v,c),ft(v,c.loaderHtml),dt(v,c,"loader")};function TO(l,c,g){const v=Y(),F=L(),$e=_e();dc(v,"confirm",g),dc(F,"deny",g),dc($e,"cancel",g),MO(v,F,$e,g),g.reverseButtons&&(g.toast?(l.insertBefore($e,v),l.insertBefore(F,v)):(l.insertBefore($e,c),l.insertBefore(F,c),l.insertBefore(v,c)))}function MO(l,c,g,v){if(!v.buttonsStyling){q([l,c,g],i.styled);return}B([l,c,g],i.styled),v.confirmButtonColor&&(l.style.backgroundColor=v.confirmButtonColor,B(l,i["default-outline"])),v.denyButtonColor&&(c.style.backgroundColor=v.denyButtonColor,B(c,i["default-outline"])),v.cancelButtonColor&&(g.style.backgroundColor=v.cancelButtonColor,B(g,i["default-outline"]))}function dc(l,c,g){ye(l,g[`show${f(c)}Button`],"inline-block"),ft(l,g[`${c}ButtonText`]),l.setAttribute("aria-label",g[`${c}ButtonAriaLabel`]),l.className=i[c],dt(l,g,`${c}Button`),B(l,g[`${c}ButtonClass`])}const LO=(l,c)=>{const g=Fe();ft(g,c.closeButtonHtml),dt(g,c,"closeButton"),ye(g,c.showCloseButton),g.setAttribute("aria-label",c.closeButtonAriaLabel)},BO=(l,c)=>{const g=I();!g||(DO(g,c.backdrop),NO(g,c.position),RO(g,c.grow),dt(g,c,"container"))};function DO(l,c){typeof c=="string"?l.style.background=c:c||B([document.documentElement,document.body],i["no-backdrop"])}function NO(l,c){c in i?B(l,i[c]):(p('The "position" parameter is not valid, defaulting to "center"'),B(l,i.center))}function RO(l,c){if(c&&typeof c=="string"){const g=`grow-${c}`;g in i&&B(l,i[g])}}const FO=["input","file","range","select","radio","checkbox","textarea"],jO=(l,c)=>{const g=j(),v=n.innerParams.get(l),F=!v||c.input!==v.input;FO.forEach($e=>{const Je=oe(g,i[$e]);zO($e,c.inputAttributes),Je.className=i[$e],F&&Z(Je)}),c.input&&(F&&UO(c),qO(c))},UO=l=>{if(!Lt[l.input]){h(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${l.input}"`);return}const c=Sh(l.input),g=Lt[l.input](c,l);J(c),l.inputAutoFocus&&setTimeout(()=>{E(g)})},HO=l=>{for(let c=0;c<l.attributes.length;c++){const g=l.attributes[c].name;["type","value","style"].includes(g)||l.removeAttribute(g)}},zO=(l,c)=>{const g=b(j(),l);if(!!g){HO(g);for(const v in c)g.setAttribute(v,c[v])}},qO=l=>{const c=Sh(l.input);typeof l.customClass=="object"&&B(c,l.customClass.input)},fc=(l,c)=>{(!l.placeholder||c.inputPlaceholder)&&(l.placeholder=c.inputPlaceholder)},gi=(l,c,g)=>{if(g.inputLabel){l.id=i.input;const v=document.createElement("label"),F=i["input-label"];v.setAttribute("for",l.id),v.className=F,typeof g.customClass=="object"&&B(v,g.customClass.inputLabel),v.innerText=g.inputLabel,c.insertAdjacentElement("beforebegin",v)}},Sh=l=>oe(j(),i[l]||i.input),Yr=(l,c)=>{["string","number"].includes(typeof c)?l.value=`${c}`:O(c)||p(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof c}"`)},Lt={};Lt.text=Lt.email=Lt.password=Lt.number=Lt.tel=Lt.url=(l,c)=>(Yr(l,c.inputValue),gi(l,l,c),fc(l,c),l.type=c.input,l),Lt.file=(l,c)=>(gi(l,l,c),fc(l,c),l),Lt.range=(l,c)=>{const g=l.querySelector("input"),v=l.querySelector("output");return Yr(g,c.inputValue),g.type=c.input,Yr(v,c.inputValue),gi(g,l,c),l},Lt.select=(l,c)=>{if(l.textContent="",c.inputPlaceholder){const g=document.createElement("option");ft(g,c.inputPlaceholder),g.value="",g.disabled=!0,g.selected=!0,l.appendChild(g)}return gi(l,l,c),l},Lt.radio=l=>(l.textContent="",l),Lt.checkbox=(l,c)=>{const g=b(j(),"checkbox");g.value="1",g.id=i.checkbox,g.checked=Boolean(c.inputValue);const v=l.querySelector("span");return ft(v,c.inputPlaceholder),g},Lt.textarea=(l,c)=>{Yr(l,c.inputValue),fc(l,c),gi(l,l,c);const g=v=>parseInt(window.getComputedStyle(v).marginLeft)+parseInt(window.getComputedStyle(v).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const v=parseInt(window.getComputedStyle(j()).width),F=()=>{const $e=l.offsetWidth+g(l);$e>v?j().style.width=`${$e}px`:j().style.width=null};new MutationObserver(F).observe(l,{attributes:!0,attributeFilter:["style"]})}}),l};const VO=(l,c)=>{const g=Ae();dt(g,c,"htmlContainer"),c.html?(uc(c.html,g),J(g,"block")):c.text?(g.textContent=c.text,J(g,"block")):Z(g),jO(l,c)},WO=(l,c)=>{const g=ke();ye(g,c.footer),c.footer&&uc(c.footer,g),dt(g,c,"footer")},KO=(l,c)=>{const g=n.innerParams.get(l),v=ne();if(g&&c.icon===g.icon){Ah(v,c),Eh(v,c);return}if(!c.icon&&!c.iconHtml){Z(v);return}if(c.icon&&Object.keys(r).indexOf(c.icon)===-1){h(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${c.icon}"`),Z(v);return}J(v),Ah(v,c),Eh(v,c),B(v,c.showClass.icon)},Eh=(l,c)=>{for(const g in r)c.icon!==g&&q(l,r[g]);B(l,r[c.icon]),XO(l,c),GO(),dt(l,c,"icon")},GO=()=>{const l=j(),c=window.getComputedStyle(l).getPropertyValue("background-color"),g=l.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let v=0;v<g.length;v++)g[v].style.backgroundColor=c},JO=`
<div class="swal2-success-circular-line-left"></div>
<span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
<div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
<div class="swal2-success-circular-line-right"></div>
`,YO=`
<span class="swal2-x-mark">
<span class="swal2-x-mark-line-left"></span>
<span class="swal2-x-mark-line-right"></span>
</span>
`,Ah=(l,c)=>{let g=l.innerHTML,v;c.iconHtml?v=Oh(c.iconHtml):c.icon==="success"?(v=JO,g=g.replace(/ style=".*?"/g,"")):c.icon==="error"?v=YO:v=Oh({question:"?",warning:"!",info:"i"}[c.icon]),g.trim()!==v.trim()&&ft(l,v)},XO=(l,c)=>{if(!!c.iconColor){l.style.color=c.iconColor,l.style.borderColor=c.iconColor;for(const g of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])X(l,g,"backgroundColor",c.iconColor);X(l,".swal2-success-ring","borderColor",c.iconColor)}},Oh=l=>`<div class="${i["icon-content"]}">${l}</div>`,QO=(l,c)=>{const g=ge();if(!c.imageUrl){Z(g);return}J(g,""),g.setAttribute("src",c.imageUrl),g.setAttribute("alt",c.imageAlt),le(g,"width",c.imageWidth),le(g,"height",c.imageHeight),g.className=i.image,dt(g,c,"image")},ZO=(l,c)=>{const g=I(),v=j();c.toast?(le(g,"width",c.width),v.style.width="100%",v.insertBefore(N(),ne())):le(v,"width",c.width),le(v,"padding",c.padding),c.color&&(v.style.color=c.color),c.background&&(v.style.background=c.background),Z(ie()),eI(v,c)},eI=(l,c)=>{l.className=`${i.popup} ${U(l)?c.showClass.popup:""}`,c.toast?(B([document.documentElement,document.body],i["toast-shown"]),B(l,i.toast)):B(l,i.modal),dt(l,c,"popup"),typeof c.customClass=="string"&&B(l,c.customClass),c.icon&&B(l,i[`icon-${c.icon}`])},tI=(l,c)=>{const g=P();if(!c.progressSteps||c.progressSteps.length===0){Z(g);return}J(g),g.textContent="",c.currentProgressStep>=c.progressSteps.length&&p("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),c.progressSteps.forEach((v,F)=>{const $e=nI(v);if(g.appendChild($e),F===c.currentProgressStep&&B($e,i["active-progress-step"]),F!==c.progressSteps.length-1){const Je=oI(c);g.appendChild(Je)}})},nI=l=>{const c=document.createElement("li");return B(c,i["progress-step"]),ft(c,l),c},oI=l=>{const c=document.createElement("li");return B(c,i["progress-step-line"]),l.progressStepsDistance&&le(c,"width",l.progressStepsDistance),c},sI=(l,c)=>{const g=pe();ye(g,c.title||c.titleText,"block"),c.title&&uc(c.title,g),c.titleText&&(g.innerText=c.titleText),dt(g,c,"title")},Ih=(l,c)=>{ZO(l,c),BO(l,c),tI(l,c),KO(l,c),QO(l,c),sI(l,c),LO(l,c),VO(l,c),PO(l,c),WO(l,c),typeof c.didRender=="function"&&c.didRender(j())};function Ph(){const l=n.innerParams.get(this);if(!l)return;const c=n.domCache.get(this);Z(c.loader),Bn()?l.icon&&J(ne()):iI(c),q([c.popup,c.actions],i.loading),c.popup.removeAttribute("aria-busy"),c.popup.removeAttribute("data-loading"),c.confirmButton.disabled=!1,c.denyButton.disabled=!1,c.cancelButton.disabled=!1}const iI=l=>{const c=l.popup.getElementsByClassName(l.loader.getAttribute("data-button-to-replace"));c.length?J(c[0],"inline-block"):be()&&Z(l.actions)};function rI(l){const c=n.innerParams.get(l||this),g=n.domCache.get(l||this);return g?b(g.popup,c.input):null}const aI=()=>U(j()),Th=()=>Y()&&Y().click(),lI=()=>L()&&L().click(),cI=()=>_e()&&_e().click(),fs=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Mh=l=>{l.keydownTarget&&l.keydownHandlerAdded&&(l.keydownTarget.removeEventListener("keydown",l.keydownHandler,{capture:l.keydownListenerCapture}),l.keydownHandlerAdded=!1)},uI=(l,c,g,v)=>{Mh(c),g.toast||(c.keydownHandler=F=>fI(l,F,v),c.keydownTarget=g.keydownListenerCapture?window:j(),c.keydownListenerCapture=g.keydownListenerCapture,c.keydownTarget.addEventListener("keydown",c.keydownHandler,{capture:c.keydownListenerCapture}),c.keydownHandlerAdded=!0)},pc=(l,c)=>{const g=jt();if(g.length){l=l+c,l===g.length?l=0:l===-1&&(l=g.length-1),g[l].focus();return}j().focus()},Lh=["ArrowRight","ArrowDown"],dI=["ArrowLeft","ArrowUp"],fI=(l,c,g)=>{const v=n.innerParams.get(l);!v||c.isComposing||c.keyCode===229||(v.stopKeydownPropagation&&c.stopPropagation(),c.key==="Enter"?pI(l,c,v):c.key==="Tab"?hI(c):[...Lh,...dI].includes(c.key)?mI(c.key):c.key==="Escape"&&gI(c,v,g))},pI=(l,c,g)=>{if(!!A(g.allowEnterKey)&&c.target&&l.getInput()&&c.target instanceof HTMLElement&&c.target.outerHTML===l.getInput().outerHTML){if(["textarea","file"].includes(g.input))return;Th(),c.preventDefault()}},hI=l=>{const c=l.target,g=jt();let v=-1;for(let F=0;F<g.length;F++)if(c===g[F]){v=F;break}l.shiftKey?pc(v,-1):pc(v,1),l.stopPropagation(),l.preventDefault()},mI=l=>{const c=Y(),g=L(),v=_e(),F=[c,g,v];if(document.activeElement instanceof HTMLElement&&!F.includes(document.activeElement))return;const $e=Lh.includes(l)?"nextElementSibling":"previousElementSibling";let Je=document.activeElement;for(let Ht=0;Ht<me().children.length;Ht++){if(Je=Je[$e],!Je)return;if(Je instanceof HTMLButtonElement&&U(Je))break}Je instanceof HTMLButtonElement&&Je.focus()},gI=(l,c,g)=>{A(c.allowEscapeKey)&&(l.preventDefault(),g(fs.esc))};var wi={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const wI=()=>{Array.from(document.body.children).forEach(c=>{c===I()||c.contains(I())||(c.hasAttribute("aria-hidden")&&c.setAttribute("data-previous-aria-hidden",c.getAttribute("aria-hidden")),c.setAttribute("aria-hidden","true"))})},Bh=()=>{Array.from(document.body.children).forEach(c=>{c.hasAttribute("data-previous-aria-hidden")?(c.setAttribute("aria-hidden",c.getAttribute("data-previous-aria-hidden")),c.removeAttribute("data-previous-aria-hidden")):c.removeAttribute("aria-hidden")})},yI=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!ot(document.body,i.iosfix)){const c=document.body.scrollTop;document.body.style.top=`${c*-1}px`,B(document.body,i.iosfix),vI(),bI()}},bI=()=>{const l=navigator.userAgent,c=!!l.match(/iPad/i)||!!l.match(/iPhone/i),g=!!l.match(/WebKit/i);c&&g&&!l.match(/CriOS/i)&&j().scrollHeight>window.innerHeight-44&&(I().style.paddingBottom=`${44}px`)},vI=()=>{const l=I();let c;l.ontouchstart=g=>{c=_I(g)},l.ontouchmove=g=>{c&&(g.preventDefault(),g.stopPropagation())}},_I=l=>{const c=l.target,g=I();return xI(l)||CI(l)?!1:c===g||!m(g)&&c instanceof HTMLElement&&c.tagName!=="INPUT"&&c.tagName!=="TEXTAREA"&&!(m(Ae())&&Ae().contains(c))},xI=l=>l.touches&&l.touches.length&&l.touches[0].touchType==="stylus",CI=l=>l.touches&&l.touches.length>1,$I=()=>{if(ot(document.body,i.iosfix)){const l=parseInt(document.body.style.top,10);q(document.body,i.iosfix),document.body.style.top="",document.body.scrollTop=l*-1}},kI=()=>{xt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(xt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${xt.previousBodyPadding+IO()}px`)},SI=()=>{xt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${xt.previousBodyPadding}px`,xt.previousBodyPadding=null)};function Dh(l,c,g,v){Bn()?Nh(l,v):(V(g).then(()=>Nh(l,v)),Mh(S)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(c.setAttribute("style","display:none !important"),c.removeAttribute("class"),c.innerHTML=""):c.remove(),Ut()&&(SI(),$I(),Bh()),EI()}function EI(){q([document.documentElement,document.body],[i.shown,i["height-auto"],i["no-backdrop"],i["toast-shown"]])}function Xr(l){l=PI(l);const c=wi.swalPromiseResolve.get(this),g=OI(this);this.isAwaitingPromise()?l.isDismissed||(yi(this),c(l)):g&&c(l)}function AI(){return!!n.awaitingPromise.get(this)}const OI=l=>{const c=j();if(!c)return!1;const g=n.innerParams.get(l);if(!g||ot(c,g.hideClass.popup))return!1;q(c,g.showClass.popup),B(c,g.hideClass.popup);const v=I();return q(v,g.showClass.backdrop),B(v,g.hideClass.backdrop),TI(l,c,g),!0};function II(l){const c=wi.swalPromiseReject.get(this);yi(this),c&&c(l)}const yi=l=>{l.isAwaitingPromise()&&(n.awaitingPromise.delete(l),n.innerParams.get(l)||l._destroy())},PI=l=>typeof l>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},l),TI=(l,c,g)=>{const v=I(),F=mi&&y(c);typeof g.willClose=="function"&&g.willClose(c),F?MI(l,c,v,g.returnFocus,g.didClose):Dh(l,v,g.returnFocus,g.didClose)},MI=(l,c,g,v,F)=>{S.swalCloseEventFinishedCallback=Dh.bind(null,l,g,v,F),c.addEventListener(mi,function($e){$e.target===c&&(S.swalCloseEventFinishedCallback(),delete S.swalCloseEventFinishedCallback)})},Nh=(l,c)=>{setTimeout(()=>{typeof c=="function"&&c.bind(l.params)(),l._destroy()})};function Rh(l,c,g){const v=n.domCache.get(l);c.forEach(F=>{v[F].disabled=g})}function Fh(l,c){if(!!l)if(l.type==="radio"){const v=l.parentNode.parentNode.querySelectorAll("input");for(let F=0;F<v.length;F++)v[F].disabled=c}else l.disabled=c}function LI(){Rh(this,["confirmButton","denyButton","cancelButton"],!1)}function BI(){Rh(this,["confirmButton","denyButton","cancelButton"],!0)}function DI(){Fh(this.getInput(),!1)}function NI(){Fh(this.getInput(),!0)}function RI(l){const c=n.domCache.get(this),g=n.innerParams.get(this);ft(c.validationMessage,l),c.validationMessage.className=i["validation-message"],g.customClass&&g.customClass.validationMessage&&B(c.validationMessage,g.customClass.validationMessage),J(c.validationMessage);const v=this.getInput();v&&(v.setAttribute("aria-invalid",!0),v.setAttribute("aria-describedby",i["validation-message"]),E(v),B(v,i.inputerror))}function FI(){const l=n.domCache.get(this);l.validationMessage&&Z(l.validationMessage);const c=this.getInput();c&&(c.removeAttribute("aria-invalid"),c.removeAttribute("aria-describedby"),q(c,i.inputerror))}const ps={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},jI=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],UI={},HI=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],jh=l=>Object.prototype.hasOwnProperty.call(ps,l),Uh=l=>jI.indexOf(l)!==-1,hc=l=>UI[l],zI=l=>{jh(l)||p(`Unknown parameter "${l}"`)},qI=l=>{HI.includes(l)&&p(`The parameter "${l}" is incompatible with toasts`)},VI=l=>{hc(l)&&x(l,hc(l))},WI=l=>{l.backdrop===!1&&l.allowOutsideClick&&p('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const c in l)zI(c),l.toast&&qI(c),VI(c)};function KI(l){const c=j(),g=n.innerParams.get(this);if(!c||ot(c,g.hideClass.popup)){p("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const v=GI(l),F=Object.assign({},g,v);Ih(this,F),n.innerParams.set(this,F),Object.defineProperties(this,{params:{value:Object.assign({},this.params,l),writable:!1,enumerable:!0}})}const GI=l=>{const c={};return Object.keys(l).forEach(g=>{Uh(g)?c[g]=l[g]:p(`Invalid parameter to update: ${g}`)}),c};function JI(){const l=n.domCache.get(this),c=n.innerParams.get(this);if(!c){Hh(this);return}l.popup&&S.swalCloseEventFinishedCallback&&(S.swalCloseEventFinishedCallback(),delete S.swalCloseEventFinishedCallback),typeof c.didDestroy=="function"&&c.didDestroy(),YI(this)}const YI=l=>{Hh(l),delete l.params,delete S.keydownHandler,delete S.keydownTarget,delete S.currentInstance},Hh=l=>{l.isAwaitingPromise()?(mc(n,l),n.awaitingPromise.set(l,!0)):(mc(wi,l),mc(n,l))},mc=(l,c)=>{for(const g in l)l[g].delete(c)};var zh=Object.freeze({__proto__:null,_destroy:JI,close:Xr,closeModal:Xr,closePopup:Xr,closeToast:Xr,disableButtons:BI,disableInput:NI,disableLoading:Ph,enableButtons:LI,enableInput:DI,getInput:rI,handleAwaitingPromise:yi,hideLoading:Ph,isAwaitingPromise:AI,rejectPromise:II,resetValidationMessage:FI,showValidationMessage:RI,update:KI});const hs=l=>{let c=j();c||new Zr,c=j();const g=N();Bn()?Z(ne()):XI(c,l),J(g),c.setAttribute("data-loading","true"),c.setAttribute("aria-busy","true"),c.focus()},XI=(l,c)=>{const g=me(),v=N();!c&&U(Y())&&(c=Y()),J(g),c&&(Z(c),v.setAttribute("data-button-to-replace",c.className)),v.parentNode.insertBefore(v,c),B([l,g],i.loading)},QI=(l,c)=>{c.input==="select"||c.input==="radio"?oP(l,c):["text","email","number","tel","textarea"].includes(c.input)&&(M(c.inputValue)||O(c.inputValue))&&(hs(Y()),sP(l,c))},ZI=(l,c)=>{const g=l.getInput();if(!g)return null;switch(c.input){case"checkbox":return eP(g);case"radio":return tP(g);case"file":return nP(g);default:return c.inputAutoTrim?g.value.trim():g.value}},eP=l=>l.checked?1:0,tP=l=>l.checked?l.value:null,nP=l=>l.files.length?l.getAttribute("multiple")!==null?l.files:l.files[0]:null,oP=(l,c)=>{const g=j(),v=F=>{iP[c.input](g,gc(F),c)};M(c.inputOptions)||O(c.inputOptions)?(hs(Y()),D(c.inputOptions).then(F=>{l.hideLoading(),v(F)})):typeof c.inputOptions=="object"?v(c.inputOptions):h(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof c.inputOptions}`)},sP=(l,c)=>{const g=l.getInput();Z(g),D(c.inputValue).then(v=>{g.value=c.input==="number"?`${parseFloat(v)||0}`:`${v}`,J(g),g.focus(),l.hideLoading()}).catch(v=>{h(`Error in inputValue promise: ${v}`),g.value="",J(g),g.focus(),l.hideLoading()})},iP={select:(l,c,g)=>{const v=oe(l,i.select),F=($e,Je,Ht)=>{const $t=document.createElement("option");$t.value=Ht,ft($t,Je),$t.selected=qh(Ht,g.inputValue),$e.appendChild($t)};c.forEach($e=>{const Je=$e[0],Ht=$e[1];if(Array.isArray(Ht)){const $t=document.createElement("optgroup");$t.label=Je,$t.disabled=!1,v.appendChild($t),Ht.forEach(gs=>F($t,gs[1],gs[0]))}else F(v,Ht,Je)}),v.focus()},radio:(l,c,g)=>{const v=oe(l,i.radio);c.forEach($e=>{const Je=$e[0],Ht=$e[1],$t=document.createElement("input"),gs=document.createElement("label");$t.type="radio",$t.name=i.radio,$t.value=Je,qh(Je,g.inputValue)&&($t.checked=!0);const vc=document.createElement("span");ft(vc,Ht),vc.className=i.label,gs.appendChild($t),gs.appendChild(vc),v.appendChild(gs)});const F=v.querySelectorAll("input");F.length&&F[0].focus()}},gc=l=>{const c=[];return typeof Map<"u"&&l instanceof Map?l.forEach((g,v)=>{let F=g;typeof F=="object"&&(F=gc(F)),c.push([v,F])}):Object.keys(l).forEach(g=>{let v=l[g];typeof v=="object"&&(v=gc(v)),c.push([g,v])}),c},qh=(l,c)=>c&&c.toString()===l.toString(),rP=l=>{const c=n.innerParams.get(l);l.disableButtons(),c.input?Vh(l,"confirm"):yc(l,!0)},aP=l=>{const c=n.innerParams.get(l);l.disableButtons(),c.returnInputValueOnDeny?Vh(l,"deny"):wc(l,!1)},lP=(l,c)=>{l.disableButtons(),c(fs.cancel)},Vh=(l,c)=>{const g=n.innerParams.get(l);if(!g.input){h(`The "input" parameter is needed to be set when using returnInputValueOn${f(c)}`);return}const v=ZI(l,g);g.inputValidator?cP(l,v,c):l.getInput().checkValidity()?c==="deny"?wc(l,v):yc(l,v):(l.enableButtons(),l.showValidationMessage(g.validationMessage))},cP=(l,c,g)=>{const v=n.innerParams.get(l);l.disableInput(),Promise.resolve().then(()=>D(v.inputValidator(c,v.validationMessage))).then($e=>{l.enableButtons(),l.enableInput(),$e?l.showValidationMessage($e):g==="deny"?wc(l,c):yc(l,c)})},wc=(l,c)=>{const g=n.innerParams.get(l||void 0);g.showLoaderOnDeny&&hs(L()),g.preDeny?(n.awaitingPromise.set(l||void 0,!0),Promise.resolve().then(()=>D(g.preDeny(c,g.validationMessage))).then(F=>{F===!1?(l.hideLoading(),yi(l)):l.close({isDenied:!0,value:typeof F>"u"?c:F})}).catch(F=>Kh(l||void 0,F))):l.close({isDenied:!0,value:c})},Wh=(l,c)=>{l.close({isConfirmed:!0,value:c})},Kh=(l,c)=>{l.rejectPromise(c)},yc=(l,c)=>{const g=n.innerParams.get(l||void 0);g.showLoaderOnConfirm&&hs(),g.preConfirm?(l.resetValidationMessage(),n.awaitingPromise.set(l||void 0,!0),Promise.resolve().then(()=>D(g.preConfirm(c,g.validationMessage))).then(F=>{U(ie())||F===!1?(l.hideLoading(),yi(l)):Wh(l,typeof F>"u"?c:F)}).catch(F=>Kh(l||void 0,F))):Wh(l,c)},uP=(l,c,g)=>{n.innerParams.get(l).toast?dP(l,c,g):(pP(c),hP(c),mP(l,c,g))},dP=(l,c,g)=>{c.popup.onclick=()=>{const v=n.innerParams.get(l);v&&(fP(v)||v.timer||v.input)||g(fs.close)}},fP=l=>l.showConfirmButton||l.showDenyButton||l.showCancelButton||l.showCloseButton;let Qr=!1;const pP=l=>{l.popup.onmousedown=()=>{l.container.onmouseup=function(c){l.container.onmouseup=void 0,c.target===l.container&&(Qr=!0)}}},hP=l=>{l.container.onmousedown=()=>{l.popup.onmouseup=function(c){l.popup.onmouseup=void 0,(c.target===l.popup||l.popup.contains(c.target))&&(Qr=!0)}}},mP=(l,c,g)=>{c.container.onclick=v=>{const F=n.innerParams.get(l);if(Qr){Qr=!1;return}v.target===c.container&&A(F.allowOutsideClick)&&g(fs.backdrop)}},gP=l=>typeof l=="object"&&l.jquery,Gh=l=>l instanceof Element||gP(l),wP=l=>{const c={};return typeof l[0]=="object"&&!Gh(l[0])?Object.assign(c,l[0]):["title","html","icon"].forEach((g,v)=>{const F=l[v];typeof F=="string"||Gh(F)?c[g]=F:F!==void 0&&h(`Unexpected type of ${g}! Expected "string" or "Element", got ${typeof F}`)}),c};function yP(){const l=this;for(var c=arguments.length,g=new Array(c),v=0;v<c;v++)g[v]=arguments[v];return new l(...g)}function bP(l){class c extends this{_main(v,F){return super._main(v,Object.assign({},l,F))}}return c}const vP=()=>S.timeout&&S.timeout.getTimerLeft(),Jh=()=>{if(S.timeout)return k(),S.timeout.stop()},Yh=()=>{if(S.timeout){const l=S.timeout.start();return _(l),l}},_P=()=>{const l=S.timeout;return l&&(l.running?Jh():Yh())},xP=l=>{if(S.timeout){const c=S.timeout.increase(l);return _(c,!0),c}},CP=()=>S.timeout&&S.timeout.isRunning();let Xh=!1;const bc={};function $P(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";bc[l]=this,Xh||(document.body.addEventListener("click",kP),Xh=!0)}const kP=l=>{for(let c=l.target;c&&c!==document;c=c.parentNode)for(const g in bc){const v=c.getAttribute(g);if(v){bc[g].fire({template:v});return}}};var SP=Object.freeze({__proto__:null,argsToParams:wP,bindClickHandler:$P,clickCancel:cI,clickConfirm:Th,clickDeny:lI,enableLoading:hs,fire:yP,getActions:me,getCancelButton:_e,getCloseButton:Fe,getConfirmButton:Y,getContainer:I,getDenyButton:L,getFocusableElements:jt,getFooter:ke,getHtmlContainer:Ae,getIcon:ne,getIconContent:ae,getImage:ge,getInputLabel:G,getLoader:N,getPopup:j,getProgressSteps:P,getTimerLeft:vP,getTimerProgressBar:Me,getTitle:pe,getValidationMessage:ie,increaseTimer:xP,isDeprecatedParameter:hc,isLoading:_t,isTimerRunning:CP,isUpdatableParameter:Uh,isValidParameter:jh,isVisible:aI,mixin:bP,resumeTimer:Yh,showLoading:hs,stopTimer:Jh,toggleTimer:_P});class EP{constructor(c,g){this.callback=c,this.remaining=g,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(c){const g=this.running;return g&&this.stop(),this.remaining+=c,g&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Qh=["swal-title","swal-html","swal-footer"],AP=l=>{const c=typeof l.template=="string"?document.querySelector(l.template):l.template;if(!c)return{};const g=c.content;return DP(g),Object.assign(OP(g),IP(g),PP(g),TP(g),MP(g),LP(g),BP(g,Qh))},OP=l=>{const c={};return Array.from(l.querySelectorAll("swal-param")).forEach(v=>{jo(v,["name","value"]);const F=v.getAttribute("name"),$e=v.getAttribute("value");typeof ps[F]=="boolean"?c[F]=$e!=="false":typeof ps[F]=="object"?c[F]=JSON.parse($e):c[F]=$e}),c},IP=l=>{const c={};return Array.from(l.querySelectorAll("swal-function-param")).forEach(v=>{const F=v.getAttribute("name"),$e=v.getAttribute("value");c[F]=new Function(`return ${$e}`)()}),c},PP=l=>{const c={};return Array.from(l.querySelectorAll("swal-button")).forEach(v=>{jo(v,["type","color","aria-label"]);const F=v.getAttribute("type");c[`${F}ButtonText`]=v.innerHTML,c[`show${f(F)}Button`]=!0,v.hasAttribute("color")&&(c[`${F}ButtonColor`]=v.getAttribute("color")),v.hasAttribute("aria-label")&&(c[`${F}ButtonAriaLabel`]=v.getAttribute("aria-label"))}),c},TP=l=>{const c={},g=l.querySelector("swal-image");return g&&(jo(g,["src","width","height","alt"]),g.hasAttribute("src")&&(c.imageUrl=g.getAttribute("src")),g.hasAttribute("width")&&(c.imageWidth=g.getAttribute("width")),g.hasAttribute("height")&&(c.imageHeight=g.getAttribute("height")),g.hasAttribute("alt")&&(c.imageAlt=g.getAttribute("alt"))),c},MP=l=>{const c={},g=l.querySelector("swal-icon");return g&&(jo(g,["type","color"]),g.hasAttribute("type")&&(c.icon=g.getAttribute("type")),g.hasAttribute("color")&&(c.iconColor=g.getAttribute("color")),c.iconHtml=g.innerHTML),c},LP=l=>{const c={},g=l.querySelector("swal-input");g&&(jo(g,["type","label","placeholder","value"]),c.input=g.getAttribute("type")||"text",g.hasAttribute("label")&&(c.inputLabel=g.getAttribute("label")),g.hasAttribute("placeholder")&&(c.inputPlaceholder=g.getAttribute("placeholder")),g.hasAttribute("value")&&(c.inputValue=g.getAttribute("value")));const v=Array.from(l.querySelectorAll("swal-input-option"));return v.length&&(c.inputOptions={},v.forEach(F=>{jo(F,["value"]);const $e=F.getAttribute("value"),Je=F.innerHTML;c.inputOptions[$e]=Je})),c},BP=(l,c)=>{const g={};for(const v in c){const F=c[v],$e=l.querySelector(F);$e&&(jo($e,[]),g[F.replace(/^swal-/,"")]=$e.innerHTML.trim())}return g},DP=l=>{const c=Qh.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(l.children).forEach(g=>{const v=g.tagName.toLowerCase();c.includes(v)||p(`Unrecognized element <${v}>`)})},jo=(l,c)=>{Array.from(l.attributes).forEach(g=>{c.indexOf(g.name)===-1&&p([`Unrecognized attribute "${g.name}" on <${l.tagName.toLowerCase()}>.`,`${c.length?`Allowed attributes are: ${c.join(", ")}`:"To set the value, use HTML within the element."}`])})},Zh=10,NP=l=>{const c=I(),g=j();typeof l.willOpen=="function"&&l.willOpen(g);const F=window.getComputedStyle(document.body).overflowY;jP(c,g,l),setTimeout(()=>{RP(c,g)},Zh),Ut()&&(FP(c,l.scrollbarPadding,F),wI()),!Bn()&&!S.previousActiveElement&&(S.previousActiveElement=document.activeElement),typeof l.didOpen=="function"&&setTimeout(()=>l.didOpen(g)),q(c,i["no-transition"])},em=l=>{const c=j();if(l.target!==c)return;const g=I();c.removeEventListener(mi,em),g.style.overflowY="auto"},RP=(l,c)=>{mi&&y(c)?(l.style.overflowY="hidden",c.addEventListener(mi,em)):l.style.overflowY="auto"},FP=(l,c,g)=>{yI(),c&&g!=="hidden"&&kI(),setTimeout(()=>{l.scrollTop=0})},jP=(l,c,g)=>{B(l,g.showClass.backdrop),c.style.setProperty("opacity","0","important"),J(c,"grid"),setTimeout(()=>{B(c,g.showClass.popup),c.style.removeProperty("opacity")},Zh),B([document.documentElement,document.body],i.shown),g.heightAuto&&g.backdrop&&!g.toast&&B([document.documentElement,document.body],i["height-auto"])};var tm={email:(l,c)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(l)?Promise.resolve():Promise.resolve(c||"Invalid email address"),url:(l,c)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(l)?Promise.resolve():Promise.resolve(c||"Invalid URL")};function UP(l){l.inputValidator||Object.keys(tm).forEach(c=>{l.input===c&&(l.inputValidator=tm[c])})}function HP(l){(!l.target||typeof l.target=="string"&&!document.querySelector(l.target)||typeof l.target!="string"&&!l.target.appendChild)&&(p('Target parameter is not valid, defaulting to "body"'),l.target="body")}function zP(l){UP(l),l.showLoaderOnConfirm&&!l.preConfirm&&p(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
showLoaderOnConfirm should be used together with preConfirm, see usage example:
https://sweetalert2.github.io/#ajax-request`),HP(l),typeof l.title=="string"&&(l.title=l.title.split(`
`).join("<br />")),hi(l)}let mn;class ms{constructor(){if(typeof window>"u")return;mn=this;for(var c=arguments.length,g=new Array(c),v=0;v<c;v++)g[v]=arguments[v];const F=Object.freeze(this.constructor.argsToParams(g));Object.defineProperties(this,{params:{value:F,writable:!1,enumerable:!0,configurable:!0}});const $e=mn._main(mn.params);n.promise.set(this,$e)}_main(c){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};WI(Object.assign({},g,c)),S.currentInstance&&(S.currentInstance._destroy(),Ut()&&Bh()),S.currentInstance=mn;const v=VP(c,g);zP(v),Object.freeze(v),S.timeout&&(S.timeout.stop(),delete S.timeout),clearTimeout(S.restoreFocusTimeout);const F=WP(mn);return Ih(mn,v),n.innerParams.set(mn,v),qP(mn,F,v)}then(c){return n.promise.get(this).then(c)}finally(c){return n.promise.get(this).finally(c)}}const qP=(l,c,g)=>new Promise((v,F)=>{const $e=Je=>{l.close({isDismissed:!0,dismiss:Je})};wi.swalPromiseResolve.set(l,v),wi.swalPromiseReject.set(l,F),c.confirmButton.onclick=()=>{rP(l)},c.denyButton.onclick=()=>{aP(l)},c.cancelButton.onclick=()=>{lP(l,$e)},c.closeButton.onclick=()=>{$e(fs.close)},uP(l,c,$e),uI(l,S,g,$e),QI(l,g),NP(g),KP(S,g,$e),GP(c,g),setTimeout(()=>{c.container.scrollTop=0})}),VP=(l,c)=>{const g=AP(l),v=Object.assign({},ps,c,g,l);return v.showClass=Object.assign({},ps.showClass,v.showClass),v.hideClass=Object.assign({},ps.hideClass,v.hideClass),v},WP=l=>{const c={popup:j(),container:I(),actions:me(),confirmButton:Y(),denyButton:L(),cancelButton:_e(),loader:N(),closeButton:Fe(),validationMessage:ie(),progressSteps:P()};return n.domCache.set(l,c),c},KP=(l,c,g)=>{const v=Me();Z(v),c.timer&&(l.timeout=new EP(()=>{g("timer"),delete l.timeout},c.timer),c.timerProgressBar&&(J(v),dt(v,c,"timerProgressBar"),setTimeout(()=>{l.timeout&&l.timeout.running&&_(c.timer)})))},GP=(l,c)=>{if(!c.toast){if(!A(c.allowEnterKey)){YP();return}JP(l,c)||pc(-1,1)}},JP=(l,c)=>c.focusDeny&&U(l.denyButton)?(l.denyButton.focus(),!0):c.focusCancel&&U(l.cancelButton)?(l.cancelButton.focus(),!0):c.focusConfirm&&U(l.confirmButton)?(l.confirmButton.focus(),!0):!1,YP=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)){const l=new Date,c=localStorage.getItem("swal-initiation");c?(l.getTime()-Date.parse(c))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const g=document.createElement("audio");g.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",g.loop=!0,document.body.appendChild(g),setTimeout(()=>{g.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${l}`)}Object.assign(ms.prototype,zh),Object.assign(ms,SP),Object.keys(zh).forEach(l=>{ms[l]=function(){if(mn)return mn[l](...arguments)}}),ms.DismissReason=fs,ms.version="11.7.2";const Zr=ms;return Zr.default=Zr,Zr}),typeof Nn<"u"&&Nn.Sweetalert2&&(Nn.swal=Nn.sweetAlert=Nn.Swal=Nn.SweetAlert=Nn.Sweetalert2),typeof document<"u"&&function(n,o){var s=n.createElement("style");if(n.getElementsByTagName("head")[0].appendChild(s),s.styleSheet)s.styleSheet.disabled||(s.styleSheet.cssText=o);else try{s.innerHTML=o}catch{s.innerText=o}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:rgba(0,0,0,0) !important}.swal2-container.swal2-top-start,.swal2-container.swal2-center-start,.swal2-container.swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}.swal2-container.swal2-top,.swal2-container.swal2-center,.swal2-container.swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}.swal2-container.swal2-top-end,.swal2-container.swal2-center-end,.swal2-container.swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-start>.swal2-popup,.swal2-container.swal2-center-left>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-start>.swal2-popup,.swal2-container.swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-row>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none !important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:none}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}.swal2-styled{margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:none}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.swal2-close:hover{transform:none;background:rgba(0,0,0,0);color:#f27474}.swal2-close:focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-input,.swal2-file,.swal2-textarea,.swal2-select,.swal2-radio,.swal2-checkbox{margin:1em 2em 3px}.swal2-input,.swal2-file,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-input.swal2-inputerror,.swal2-file.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}.swal2-input:focus,.swal2-file:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}.swal2-input::placeholder,.swal2-file::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-radio,.swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-radio label,.swal2-checkbox label{margin:0 .6em;font-size:1.125em}.swal2-radio input,.swal2-checkbox input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}')})(kc);const fe=kc.exports,fm=["ts","wmv","3pg","mp4","mpg","m4v","iso","mkv","avi","dvd","wmv","i00","i01","i02","i03","i04","i05","i06","i07","i08","i09","i10","i11","i12","mpeg","mov","m2ts","bup","vob","rmvb","md0","md1","md2","md3","md4","md5","mdf","mds","nrg","flv"],pm=["jpg","jpeg","png","gif","bmp","svg"],hm=["mp3","wav","wma","ogg","ape","flac","aac"];function Sc(e){return JSON.parse(JSON.stringify(e))}function vi(e,...t){return new e(t[0])}async function mm(e){return new Promise((t,n)=>{dm({onload:o=>t(o),onerror:o=>n(o),...e})})}function bs(){return Math.floor(Date.now()/1e3)}function oa(e,t,n="text/plain"){const o=document.createElement("a");document.body.appendChild(o),o.setAttribute("style","display:none");const s=new Blob([e],{type:n}),i=window.URL.createObjectURL(s);o.href=i,o.download=t,o.click(),window.URL.revokeObjectURL(i)}function Yt(e){if(typeof ys=="function")return ys(e,"text"),!0;const t=n=>{var o;(o=n.clipboardData)==null||o.setData("text/plain",e),n.preventDefault(),document.removeEventListener("copy",t)};return document.addEventListener("copy",t),document.execCommand("copy")}function gm(e,t){return e=e.replace(/^[\\]+/g,""),t?"/"+e:e}function Ec(e){return/^magnet:\?xt=urn:btih/.test(e)}function Ac(e){return/^ed2k:\/\/\|file\|/.test(e)}function Oc(e){return`magnet:?xt=urn:btih:${e.toUpperCase()}`}function Ic(e){const t=e.match(/([a-z\d]{32,40})/i);return t?t[1]:""}function wm(e,t=!0){return(t?/^([a-z\d]{32})$|^([a-z\d]{40})$/i:/^[a-z\d]{32,40}$/i).test(e)}function ym(e,t=location.href){const n=new RegExp("(\\?|#|&)"+e+"=([^&#]*)(&|#|$)"),o=t.match(n);return o?o[2]:""}function _i(e,t=2){if(Number.isNaN(e)||(e=typeof e=="string"?parseInt(e):e,!e))return"0";const n=1024,o=t,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,i)).toFixed(o))+" "+s[i]}function Pc(e){const t=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],n=new RegExp(`^(\\d+(?:\\.\\d+)?)(${t.join("|")})$`,"i"),o=e.match(n);if(!o)throw new Error(`无效的文件大小!${e}`);const s=parseFloat(o[1]),i=o[2].toUpperCase(),r=t.indexOf(i);if(r<0)throw new Error(`无效的文件大小!${e}`);return s*Math.pow(1024,r)}function Tc(e,t=document,n=XPathResult.ORDERED_NODE_SNAPSHOT_TYPE){const o=[],s=document.evaluate(e,t,null,n,null);for(let i=0;i<s.snapshotLength;i++){const r=s.snapshotItem(i);r&&o.push(r)}return o}async function vs(e,t=100,n=12e4,o=document){const s=await co(e,t,n,o);if(s.length)return s[0];throw new Error(`未找到元素:${e}`)}async function co(e,t=100,n=12e4,o=document){const s=e.indexOf("//")===0;function i(r){if(s){const a=Tc(e);a.length>0&&r(a)}else{const a=o.querySelectorAll(e);a.length&&r(Array.from(a))}}try{return await _s(i,t,n)}catch(r){throw console.warn("[find]",r),new Error(`查找元素超时:${e}`)}}async function on(e,t=100,n=12e4){const o=e.indexOf("//")===0;function s(i){if(o){const r=Tc(e);r.length>0&&i(unsafeWindow.$(r))}else{const r=unsafeWindow.$(e);r.length&&i(r)}}try{return await _s(s,t,n)}catch(i){throw console.warn("[findWithJQuery]",i),new Error(`查找元素超时:${e}`)}}async function _s(e,t,n){return new Promise(async(o,s)=>{if(typeof e!="function"){s("提供的参数`fulfill`不是一个Function!");return}let i=!1;e(u=>{i=!0,o(u)});let r=setInterval(async()=>{if(i){clearTimeout(a),clearInterval(r);return}e(u=>{clearTimeout(a),clearInterval(r),o(u)})},t),a=setTimeout(()=>{clearInterval(r),s("超时")},n)})}async function Bt(e){return new Promise(t=>{setTimeout(t,e)})}function sa(e){const t=new URLSearchParams;let n;for(n in e)t.append(n,e[n].toString());return t.toString()}async function ue(e){return fe.fire({toast:!0,position:"top",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,didOpen:t=>{t.addEventListener("mouseenter",fe.stopTimer),t.addEventListener("mouseleave",fe.resumeTimer)},...e})}function xi(e,t){t=t||window,t.postMessage(e)}function uo(e,t,n){if(n){const o=bi(e,{});ta(e,{...o,...t})}else ta(e,t)}function Dt(e,t,n){let o;return function(...s){const i=()=>{o=void 0,n||e.apply(this,s)},r=n&&o===void 0;clearTimeout(o),o=setTimeout(i,t),r&&e.apply(this,s)}}function bm(e){return e?fm.indexOf(e.toLowerCase())>-1:!1}function vm(e){return e?pm.indexOf(e.toLowerCase())>-1:!1}function _m(e){return e?hm.indexOf(e.toLowerCase())>-1:!1}var Le=(e=>(e.listItemHover="listItemHover",e.listItemHoverSub="listItemHoverSub",e.listItemContext="listItemContext",e.listItemContextSub="listItemContextSub",e.selection="selection",e.selectionSub="selectionSub",e.dirContext="dirContext",e.dirContextSub="dirContextSub",e))(Le||{}),xs=(e=>(e.listItemHover="列表项悬浮菜单",e.listItemHoverSub="列表项悬浮子菜单",e.listItemContext="列表项右键菜单",e.listItemContextSub="列表项右键子菜单",e.selection="选中项菜单",e.selectionSub="选中项子菜单",e.dirContext="当前目录右键菜单",e.dirContextSub="当前目录右键子菜单",e))(xs||{}),fo=(e=>(e[e.after=0]="after",e[e.before=1]="before",e))(fo||{});const Ze={get:async(e,t)=>bi(e,t),set:async(e,t)=>ta(e,t),remove:async e=>cm(e)},Mc="clouddrive_configs";var Lc=(e=>(e.windows="windows",e.macos="macos",e.linux="linux",e.android="android",e))(Lc||{});function ia(e){return{active:!1,url:"http://localhost:19798",root:"/115",memo:"",platform:void 0,...e}}async function Bc(){const e=[ia()],t=await Ze.get(Mc,e);return t||e}async function Dc(e){e.some(t=>t.active)||(e[0].active=!0),await Ze.set(Mc,e)}async function Cs(){return(await Bc()).find(t=>t.active)||ia()}var Ci=(e=>(e.play="play",e.download="download",e))(Ci||{});function Nc(e){return e.startsWith("file://")}async function zo(e,t,n="play"){e.platform==="macos"&&(t=t.normalize("NFD"));let{url:o,root:s}=e;if(!o)throw new Error("未设置CloudDrive地址!");(o.startsWith("/")||o.startsWith("\\"))&&(o=`file:///${o}`),Nc(o);const i=/^https?:\/\//.test(o);if(i&&!s)throw new Error("当协议为http/https时,必须设置CloudDrive资源根路径!");s&&(s=s.replace(/^(\/+)?/g,"/")),t=t.replace(/^(\/+)?/g,"/");const r=`${s}${t}`,a=n==="play"?"True":"False";let u="";return i?u=`${o}/static/${o.replace("://","/")}/${a}/${encodeURIComponent(r)}`:(o=o.replace(/\/+$/,""),u=`${o}${r}`),console.log("[Cloud115 Enhancer] buildCloudDriveUrl",u),u}async function ra(e,t){let{url:n,root:o}=e;if(!n)throw new Error("未设置CloudDrive地址!");return(n.startsWith("/")||n.startsWith("\\"))&&(n=`file:///${n}`),Nc(n)?await zo(e,t,"play"):await zo(e,t,"play")+".clfsplaylist.m3u"}var kt=(e=>(e[e.any=-999]="any",e[e.failed=-1]="failed",e[e.illegal=0]="illegal",e[e.ing=1]="ing",e[e.success=2]="success",e))(kt||{});const xm={[-1]:"失败",[0]:"违规",[1]:"下载中",[2]:"成功"};var St=(e=>(e.all="all",e.failed="failed",e.success="success",e.magnet="magnet",e.magnetEd2k="magnetEd2k",e))(St||{}),aa=(e=>(e[e.true=1]="true",e[e.false=0]="false",e))(aa||{}),wt=(e=>(e[e.all=0]="all",e[e.video=4]="video",e[e.audio=3]="audio",e[e.image=2]="image",e[e.doc=1]="doc",e[e.app=6]="app",e[e.archive=5]="archive",e))(wt||{}),tt=(e=>(e.all="全部",e.video="视频",e.audio="音频",e.image="图片",e.doc="文档",e.app="应用",e.archive="压缩包",e))(tt||{}),Rc=(e=>(e.userPtime="user_ptime",e.fileName="file_name",e.fileSize="file_size",e.fileType="file_type",e))(Rc||{});function Cm(e){return{offset:0,limit:1150,aid:1,cid:"",format:"json",o:"user_ptime",asc:0,search_value:"",...e}}function $s(e){return{aid:1,cid:"",o:"user_ptime",asc:0,offset:0,show_dir:1,limit:115,natsort:0,format:"json",...e}}function Fc(e,t){return function(){return e.apply(t,arguments)}}const{toString:jc}=Object.prototype,{getPrototypeOf:la}=Object,ca=(e=>t=>{const n=jc.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),gn=e=>(e=e.toLowerCase(),t=>ca(t)===e),$i=e=>t=>typeof t===e,{isArray:qo}=Array,ks=$i("undefined");function $m(e){return e!==null&&!ks(e)&&e.constructor!==null&&!ks(e.constructor)&&Rn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Uc=gn("ArrayBuffer");function km(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Uc(e.buffer),t}const Sm=$i("string"),Rn=$i("function"),Hc=$i("number"),ua=e=>e!==null&&typeof e=="object",Em=e=>e===!0||e===!1,ki=e=>{if(ca(e)!=="object")return!1;const t=la(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Am=gn("Date"),Om=gn("File"),Im=gn("Blob"),Pm=gn("FileList"),Tm=e=>ua(e)&&Rn(e.pipe),Mm=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||jc.call(e)===t||Rn(e.toString)&&e.toString()===t)},Lm=gn("URLSearchParams"),Bm=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ss(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,s;if(typeof e!="object"&&(e=[e]),qo(e))for(o=0,s=e.length;o<s;o++)t.call(null,e[o],o,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let a;for(o=0;o<r;o++)a=i[o],t.call(null,e[a],a,e)}}function zc(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length,s;for(;o-- >0;)if(s=n[o],t===s.toLowerCase())return s;return null}const qc=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Vc=e=>!ks(e)&&e!==qc;function da(){const{caseless:e}=Vc(this)&&this||{},t={},n=(o,s)=>{const i=e&&zc(t,s)||s;ki(t[i])&&ki(o)?t[i]=da(t[i],o):ki(o)?t[i]=da({},o):qo(o)?t[i]=o.slice():t[i]=o};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&Ss(arguments[o],n);return t}const Dm=(e,t,n,{allOwnKeys:o}={})=>(Ss(t,(s,i)=>{n&&Rn(s)?e[i]=Fc(s,n):e[i]=s},{allOwnKeys:o}),e),Nm=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Rm=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Fm=(e,t,n,o)=>{let s,i,r;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)r=s[i],(!o||o(r,e,t))&&!a[r]&&(t[r]=e[r],a[r]=!0);e=n!==!1&&la(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},jm=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},Um=e=>{if(!e)return null;if(qo(e))return e;let t=e.length;if(!Hc(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Hm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&la(Uint8Array)),zm=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},qm=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},Vm=gn("HTMLFormElement"),Wm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,s){return o.toUpperCase()+s}),Wc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Km=gn("RegExp"),Kc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Ss(n,(s,i)=>{t(s,i,e)!==!1&&(o[i]=s)}),Object.defineProperties(e,o)},Gm=e=>{Kc(e,(t,n)=>{if(Rn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(!!Rn(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Jm=(e,t)=>{const n={},o=s=>{s.forEach(i=>{n[i]=!0})};return qo(e)?o(e):o(String(e).split(t)),n},Ym=()=>{},Xm=(e,t)=>(e=+e,Number.isFinite(e)?e:t),fa="abcdefghijklmnopqrstuvwxyz",Gc="0123456789",Jc={DIGIT:Gc,ALPHA:fa,ALPHA_DIGIT:fa+fa.toUpperCase()+Gc},Qm=(e=16,t=Jc.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function Zm(e){return!!(e&&Rn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const W={isArray:qo,isArrayBuffer:Uc,isBuffer:$m,isFormData:Mm,isArrayBufferView:km,isString:Sm,isNumber:Hc,isBoolean:Em,isObject:ua,isPlainObject:ki,isUndefined:ks,isDate:Am,isFile:Om,isBlob:Im,isRegExp:Km,isFunction:Rn,isStream:Tm,isURLSearchParams:Lm,isTypedArray:Hm,isFileList:Pm,forEach:Ss,merge:da,extend:Dm,trim:Bm,stripBOM:Nm,inherits:Rm,toFlatObject:Fm,kindOf:ca,kindOfTest:gn,endsWith:jm,toArray:Um,forEachEntry:zm,matchAll:qm,isHTMLForm:Vm,hasOwnProperty:Wc,hasOwnProp:Wc,reduceDescriptors:Kc,freezeMethods:Gm,toObjectSet:Jm,toCamelCase:Wm,noop:Ym,toFiniteNumber:Xm,findKey:zc,global:qc,isContextDefined:Vc,ALPHABET:Jc,generateString:Qm,isSpecCompliantForm:Zm,toJSONObject:e=>{const t=new Array(10),n=(o,s)=>{if(ua(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[s]=o;const i=qo(o)?[]:{};return Ss(o,(r,a)=>{const u=n(r,s+1);!ks(u)&&(i[a]=u)}),t[s]=void 0,i}}return o};return n(e,0)}};function He(e,t,n,o,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),s&&(this.response=s)}W.inherits(He,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Yc=He.prototype,Xc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Xc[e]={value:e}}),Object.defineProperties(He,Xc),Object.defineProperty(Yc,"isAxiosError",{value:!0}),He.from=(e,t,n,o,s,i)=>{const r=Object.create(Yc);return W.toFlatObject(e,r,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),He.call(r,e.message,t,n,o,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const eg=null;function pa(e){return W.isPlainObject(e)||W.isArray(e)}function Qc(e){return W.endsWith(e,"[]")?e.slice(0,-2):e}function Zc(e,t,n){return e?e.concat(t).map(function(s,i){return s=Qc(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function tg(e){return W.isArray(e)&&!e.some(pa)}const ng=W.toFlatObject(W,{},null,function(t){return/^is[A-Z]/.test(t)});function Si(e,t,n){if(!W.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=W.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,M){return!W.isUndefined(M[A])});const o=n.metaTokens,s=n.visitor||p,i=n.dots,r=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&W.isSpecCompliantForm(t);if(!W.isFunction(s))throw new TypeError("visitor must be a function");function f(x){if(x===null)return"";if(W.isDate(x))return x.toISOString();if(!u&&W.isBlob(x))throw new He("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(x)||W.isTypedArray(x)?u&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function p(x,A,M){let D=x;if(x&&!M&&typeof x=="object"){if(W.endsWith(A,"{}"))A=o?A:A.slice(0,-2),x=JSON.stringify(x);else if(W.isArray(x)&&tg(x)||(W.isFileList(x)||W.endsWith(A,"[]"))&&(D=W.toArray(x)))return A=Qc(A),D.forEach(function(I,H){!(W.isUndefined(I)||I===null)&&t.append(r===!0?Zc([A],H,i):r===null?A:A+"[]",f(I))}),!1}return pa(x)?!0:(t.append(Zc(M,A,i),f(x)),!1)}const h=[],w=Object.assign(ng,{defaultVisitor:p,convertValue:f,isVisitable:pa});function C(x,A){if(!W.isUndefined(x)){if(h.indexOf(x)!==-1)throw Error("Circular reference detected in "+A.join("."));h.push(x),W.forEach(x,function(D,O){(!(W.isUndefined(D)||D===null)&&s.call(t,D,W.isString(O)?O.trim():O,A,w))===!0&&C(D,A?A.concat(O):[O])}),h.pop()}}if(!W.isObject(e))throw new TypeError("data must be an object");return C(e),t}function eu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function ha(e,t){this._pairs=[],e&&Si(e,this,t)}const tu=ha.prototype;tu.append=function(t,n){this._pairs.push([t,n])},tu.toString=function(t){const n=t?function(o){return t.call(this,o,eu)}:eu;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function og(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function nu(e,t,n){if(!t)return e;const o=n&&n.encode||og,s=n&&n.serialize;let i;if(s?i=s(t,n):i=W.isURLSearchParams(t)?t.toString():new ha(t,n).toString(o),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class sg{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){W.forEach(this.handlers,function(o){o!==null&&t(o)})}}const ou=sg,su={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ig=typeof URLSearchParams<"u"?URLSearchParams:ha,rg=typeof FormData<"u"?FormData:null,ag=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),lg=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),sn={isBrowser:!0,classes:{URLSearchParams:ig,FormData:rg,Blob},isStandardBrowserEnv:ag,isStandardBrowserWebWorkerEnv:lg,protocols:["http","https","file","blob","url","data"]};function cg(e,t){return Si(e,new sn.classes.URLSearchParams,Object.assign({visitor:function(n,o,s,i){return sn.isNode&&W.isBuffer(n)?(this.append(o,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function ug(e){return W.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function dg(e){const t={},n=Object.keys(e);let o;const s=n.length;let i;for(o=0;o<s;o++)i=n[o],t[i]=e[i];return t}function iu(e){function t(n,o,s,i){let r=n[i++];const a=Number.isFinite(+r),u=i>=n.length;return r=!r&&W.isArray(s)?s.length:r,u?(W.hasOwnProp(s,r)?s[r]=[s[r],o]:s[r]=o,!a):((!s[r]||!W.isObject(s[r]))&&(s[r]=[]),t(n,o,s[r],i)&&W.isArray(s[r])&&(s[r]=dg(s[r])),!a)}if(W.isFormData(e)&&W.isFunction(e.entries)){const n={};return W.forEachEntry(e,(o,s)=>{t(ug(o),s,n,0)}),n}return null}const fg={"Content-Type":void 0};function pg(e,t,n){if(W.isString(e))try{return(t||JSON.parse)(e),W.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const Ei={transitional:su,adapter:["xhr","http"],transformRequest:[function(t,n){const o=n.getContentType()||"",s=o.indexOf("application/json")>-1,i=W.isObject(t);if(i&&W.isHTMLForm(t)&&(t=new FormData(t)),W.isFormData(t))return s&&s?JSON.stringify(iu(t)):t;if(W.isArrayBuffer(t)||W.isBuffer(t)||W.isStream(t)||W.isFile(t)||W.isBlob(t))return t;if(W.isArrayBufferView(t))return t.buffer;if(W.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return cg(t,this.formSerializer).toString();if((a=W.isFileList(t))||o.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Si(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),pg(t)):t}],transformResponse:[function(t){const n=this.transitional||Ei.transitional,o=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&W.isString(t)&&(o&&!this.responseType||s)){const r=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(a){if(r)throw a.name==="SyntaxError"?He.from(a,He.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:sn.classes.FormData,Blob:sn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};W.forEach(["delete","get","head"],function(t){Ei.headers[t]={}}),W.forEach(["post","put","patch"],function(t){Ei.headers[t]=W.merge(fg)});const ma=Ei,hg=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),mg=e=>{const t={};let n,o,s;return e&&e.split(`
`).forEach(function(r){s=r.indexOf(":"),n=r.substring(0,s).trim().toLowerCase(),o=r.substring(s+1).trim(),!(!n||t[n]&&hg[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},ru=Symbol("internals");function Es(e){return e&&String(e).trim().toLowerCase()}function Ai(e){return e===!1||e==null?e:W.isArray(e)?e.map(Ai):String(e)}function gg(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}function wg(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function ga(e,t,n,o,s){if(W.isFunction(o))return o.call(this,t,n);if(s&&(t=n),!!W.isString(t)){if(W.isString(o))return t.indexOf(o)!==-1;if(W.isRegExp(o))return o.test(t)}}function yg(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function bg(e,t){const n=W.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(s,i,r){return this[o].call(this,t,s,i,r)},configurable:!0})})}class Oi{constructor(t){t&&this.set(t)}set(t,n,o){const s=this;function i(a,u,f){const p=Es(u);if(!p)throw new Error("header name must be a non-empty string");const h=W.findKey(s,p);(!h||s[h]===void 0||f===!0||f===void 0&&s[h]!==!1)&&(s[h||u]=Ai(a))}const r=(a,u)=>W.forEach(a,(f,p)=>i(f,p,u));return W.isPlainObject(t)||t instanceof this.constructor?r(t,n):W.isString(t)&&(t=t.trim())&&!wg(t)?r(mg(t),n):t!=null&&i(n,t,o),this}get(t,n){if(t=Es(t),t){const o=W.findKey(this,t);if(o){const s=this[o];if(!n)return s;if(n===!0)return gg(s);if(W.isFunction(n))return n.call(this,s,o);if(W.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Es(t),t){const o=W.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||ga(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let s=!1;function i(r){if(r=Es(r),r){const a=W.findKey(o,r);a&&(!n||ga(o,o[a],a,n))&&(delete o[a],s=!0)}}return W.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let o=n.length,s=!1;for(;o--;){const i=n[o];(!t||ga(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,o={};return W.forEach(this,(s,i)=>{const r=W.findKey(o,i);if(r){n[r]=Ai(s),delete n[i];return}const a=t?yg(i):String(i).trim();a!==i&&delete n[i],n[a]=Ai(s),o[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return W.forEach(this,(o,s)=>{o!=null&&o!==!1&&(n[s]=t&&W.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(s=>o.set(s)),o}static accessor(t){const o=(this[ru]=this[ru]={accessors:{}}).accessors,s=this.prototype;function i(r){const a=Es(r);o[a]||(bg(s,r),o[a]=!0)}return W.isArray(t)?t.forEach(i):i(t),this}}Oi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.freezeMethods(Oi.prototype),W.freezeMethods(Oi);const wn=Oi;function wa(e,t){const n=this||ma,o=t||n,s=wn.from(o.headers);let i=o.data;return W.forEach(e,function(a){i=a.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function au(e){return!!(e&&e.__CANCEL__)}function As(e,t,n){He.call(this,e==null?"canceled":e,He.ERR_CANCELED,t,n),this.name="CanceledError"}W.inherits(As,He,{__CANCEL__:!0});function vg(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new He("Request failed with status code "+n.status,[He.ERR_BAD_REQUEST,He.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const _g=sn.isStandardBrowserEnv?function(){return{write:function(n,o,s,i,r,a){const u=[];u.push(n+"="+encodeURIComponent(o)),W.isNumber(s)&&u.push("expires="+new Date(s).toGMTString()),W.isString(i)&&u.push("path="+i),W.isString(r)&&u.push("domain="+r),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){const o=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function xg(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Cg(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function lu(e,t){return e&&!xg(t)?Cg(e,t):t}const $g=sn.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let o;function s(i){let r=i;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=s(window.location.href),function(r){const a=W.isString(r)?s(r):r;return a.protocol===o.protocol&&a.host===o.host}}():function(){return function(){return!0}}();function kg(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Sg(e,t){e=e||10;const n=new Array(e),o=new Array(e);let s=0,i=0,r;return t=t!==void 0?t:1e3,function(u){const f=Date.now(),p=o[i];r||(r=f),n[s]=u,o[s]=f;let h=i,w=0;for(;h!==s;)w+=n[h++],h=h%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),f-r<t)return;const C=p&&f-p;return C?Math.round(w*1e3/C):void 0}}function cu(e,t){let n=0;const o=Sg(50,250);return s=>{const i=s.loaded,r=s.lengthComputable?s.total:void 0,a=i-n,u=o(a),f=i<=r;n=i;const p={loaded:i,total:r,progress:r?i/r:void 0,bytes:a,rate:u||void 0,estimated:u&&r&&f?(r-i)/u:void 0,event:s};p[t?"download":"upload"]=!0,e(p)}}const Ii={http:eg,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,o){let s=e.data;const i=wn.from(e.headers).normalize(),r=e.responseType;let a;function u(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}W.isFormData(s)&&(sn.isStandardBrowserEnv||sn.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let f=new XMLHttpRequest;if(e.auth){const C=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(C+":"+x))}const p=lu(e.baseURL,e.url);f.open(e.method.toUpperCase(),nu(p,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function h(){if(!f)return;const C=wn.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),A={data:!r||r==="text"||r==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:C,config:e,request:f};vg(function(D){n(D),u()},function(D){o(D),u()},A),f=null}if("onloadend"in f?f.onloadend=h:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(h)},f.onabort=function(){!f||(o(new He("Request aborted",He.ECONNABORTED,e,f)),f=null)},f.onerror=function(){o(new He("Network Error",He.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let x=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const A=e.transitional||su;e.timeoutErrorMessage&&(x=e.timeoutErrorMessage),o(new He(x,A.clarifyTimeoutError?He.ETIMEDOUT:He.ECONNABORTED,e,f)),f=null},sn.isStandardBrowserEnv){const C=(e.withCredentials||$g(p))&&e.xsrfCookieName&&_g.read(e.xsrfCookieName);C&&i.set(e.xsrfHeaderName,C)}s===void 0&&i.setContentType(null),"setRequestHeader"in f&&W.forEach(i.toJSON(),function(x,A){f.setRequestHeader(A,x)}),W.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),r&&r!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",cu(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",cu(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=C=>{!f||(o(!C||C.type?new As(null,e,f):C),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const w=kg(p);if(w&&sn.protocols.indexOf(w)===-1){o(new He("Unsupported protocol "+w+":",He.ERR_BAD_REQUEST,e));return}f.send(s||null)})}};W.forEach(Ii,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Eg={getAdapter:e=>{e=W.isArray(e)?e:[e];const{length:t}=e;let n,o;for(let s=0;s<t&&(n=e[s],!(o=W.isString(n)?Ii[n.toLowerCase()]:n));s++);if(!o)throw o===!1?new He(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(W.hasOwnProp(Ii,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!W.isFunction(o))throw new TypeError("adapter is not a function");return o},adapters:Ii};function ya(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new As(null,e)}function uu(e){return ya(e),e.headers=wn.from(e.headers),e.data=wa.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Eg.getAdapter(e.adapter||ma.adapter)(e).then(function(o){return ya(e),o.data=wa.call(e,e.transformResponse,o),o.headers=wn.from(o.headers),o},function(o){return au(o)||(ya(e),o&&o.response&&(o.response.data=wa.call(e,e.transformResponse,o.response),o.response.headers=wn.from(o.response.headers))),Promise.reject(o)})}const du=e=>e instanceof wn?e.toJSON():e;function Vo(e,t){t=t||{};const n={};function o(f,p,h){return W.isPlainObject(f)&&W.isPlainObject(p)?W.merge.call({caseless:h},f,p):W.isPlainObject(p)?W.merge({},p):W.isArray(p)?p.slice():p}function s(f,p,h){if(W.isUndefined(p)){if(!W.isUndefined(f))return o(void 0,f,h)}else return o(f,p,h)}function i(f,p){if(!W.isUndefined(p))return o(void 0,p)}function r(f,p){if(W.isUndefined(p)){if(!W.isUndefined(f))return o(void 0,f)}else return o(void 0,p)}function a(f,p,h){if(h in t)return o(f,p);if(h in e)return o(void 0,f)}const u={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:a,headers:(f,p)=>s(du(f),du(p),!0)};return W.forEach(Object.keys(e).concat(Object.keys(t)),function(p){const h=u[p]||s,w=h(e[p],t[p],p);W.isUndefined(w)&&h!==a||(n[p]=w)}),n}const fu="1.3.3",ba={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ba[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const pu={};ba.transitional=function(t,n,o){function s(i,r){return"[Axios v"+fu+"] Transitional option '"+i+"'"+r+(o?". "+o:"")}return(i,r,a)=>{if(t===!1)throw new He(s(r," has been removed"+(n?" in "+n:"")),He.ERR_DEPRECATED);return n&&!pu[r]&&(pu[r]=!0,console.warn(s(r," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,r,a):!0}};function Ag(e,t,n){if(typeof e!="object")throw new He("options must be an object",He.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let s=o.length;for(;s-- >0;){const i=o[s],r=t[i];if(r){const a=e[i],u=a===void 0||r(a,i,e);if(u!==!0)throw new He("option "+i+" must be "+u,He.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new He("Unknown option "+i,He.ERR_BAD_OPTION)}}const va={assertOptions:Ag,validators:ba},Fn=va.validators;class Pi{constructor(t){this.defaults=t,this.interceptors={request:new ou,response:new ou}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Vo(this.defaults,n);const{transitional:o,paramsSerializer:s,headers:i}=n;o!==void 0&&va.assertOptions(o,{silentJSONParsing:Fn.transitional(Fn.boolean),forcedJSONParsing:Fn.transitional(Fn.boolean),clarifyTimeoutError:Fn.transitional(Fn.boolean)},!1),s!==void 0&&va.assertOptions(s,{encode:Fn.function,serialize:Fn.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r;r=i&&W.merge(i.common,i[n.method]),r&&W.forEach(["delete","get","head","post","put","patch","common"],x=>{delete i[x]}),n.headers=wn.concat(r,i);const a=[];let u=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(n)===!1||(u=u&&A.synchronous,a.unshift(A.fulfilled,A.rejected))});const f=[];this.interceptors.response.forEach(function(A){f.push(A.fulfilled,A.rejected)});let p,h=0,w;if(!u){const x=[uu.bind(this),void 0];for(x.unshift.apply(x,a),x.push.apply(x,f),w=x.length,p=Promise.resolve(n);h<w;)p=p.then(x[h++],x[h++]);return p}w=a.length;let C=n;for(h=0;h<w;){const x=a[h++],A=a[h++];try{C=x(C)}catch(M){A.call(this,M);break}}try{p=uu.call(this,C)}catch(x){return Promise.reject(x)}for(h=0,w=f.length;h<w;)p=p.then(f[h++],f[h++]);return p}getUri(t){t=Vo(this.defaults,t);const n=lu(t.baseURL,t.url);return nu(n,t.params,t.paramsSerializer)}}W.forEach(["delete","get","head","options"],function(t){Pi.prototype[t]=function(n,o){return this.request(Vo(o||{},{method:t,url:n,data:(o||{}).data}))}}),W.forEach(["post","put","patch"],function(t){function n(o){return function(i,r,a){return this.request(Vo(a||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}Pi.prototype[t]=n(),Pi.prototype[t+"Form"]=n(!0)});const Ti=Pi;class _a{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const o=this;this.promise.then(s=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](s);o._listeners=null}),this.promise.then=s=>{let i;const r=new Promise(a=>{o.subscribe(a),i=a}).then(s);return r.cancel=function(){o.unsubscribe(i)},r},t(function(i,r,a){o.reason||(o.reason=new As(i,r,a),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new _a(function(s){t=s}),cancel:t}}}const Og=_a;function Ig(e){return function(n){return e.apply(null,n)}}function Pg(e){return W.isObject(e)&&e.isAxiosError===!0}const xa={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(xa).forEach(([e,t])=>{xa[t]=e});const Tg=xa;function hu(e){const t=new Ti(e),n=Fc(Ti.prototype.request,t);return W.extend(n,Ti.prototype,t,{allOwnKeys:!0}),W.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return hu(Vo(e,s))},n}const rt=hu(ma);rt.Axios=Ti,rt.CanceledError=As,rt.CancelToken=Og,rt.isCancel=au,rt.VERSION=fu,rt.toFormData=Si,rt.AxiosError=He,rt.Cancel=rt.CanceledError,rt.all=function(t){return Promise.all(t)},rt.spread=Ig,rt.isAxiosError=Pg,rt.mergeConfig=Vo,rt.AxiosHeaders=wn,rt.formToJSON=e=>iu(W.isHTMLForm(e)?new FormData(e):e),rt.HttpStatusCode=Tg,rt.default=rt;const Et=rt,{Axios:uT,AxiosError:dT,CanceledError:fT,isCancel:pT,CancelToken:hT,VERSION:mT,all:gT,Cancel:wT,isAxiosError:yT,spread:bT,toFormData:Mg,AxiosHeaders:vT,HttpStatusCode:_T,formToJSON:xT,mergeConfig:CT}=Et;class mu extends Error{}class Ca extends mu{constructor(){super(...arguments);Ie(this,"message","搜索失败!")}}class gu extends Ca{constructor(){super(...arguments);Ie(this,"message","搜索请求响应内容为空!")}}class wu extends mu{constructor(){super(...arguments);Ie(this,"message","目录不存在!")}toString(){return this.message}}class at{constructor(){this._dataLength=0,this._bufferLength=0,this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start()}static hashStr(t,n=!1){return this.onePassHasher.start().appendStr(t).end(n)}static hashAsciiStr(t,n=!1){return this.onePassHasher.start().appendAsciiStr(t).end(n)}static _hex(t){const n=at.hexChars,o=at.hexOut;let s,i,r,a;for(a=0;a<4;a+=1)for(i=a*8,s=t[a],r=0;r<8;r+=2)o[i+1+r]=n.charAt(s&15),s>>>=4,o[i+0+r]=n.charAt(s&15),s>>>=4;return o.join("")}static _md5cycle(t,n){let o=t[0],s=t[1],i=t[2],r=t[3];o+=(s&i|~s&r)+n[0]-680876936|0,o=(o<<7|o>>>25)+s|0,r+=(o&s|~o&i)+n[1]-389564586|0,r=(r<<12|r>>>20)+o|0,i+=(r&o|~r&s)+n[2]+606105819|0,i=(i<<17|i>>>15)+r|0,s+=(i&r|~i&o)+n[3]-1044525330|0,s=(s<<22|s>>>10)+i|0,o+=(s&i|~s&r)+n[4]-176418897|0,o=(o<<7|o>>>25)+s|0,r+=(o&s|~o&i)+n[5]+1200080426|0,r=(r<<12|r>>>20)+o|0,i+=(r&o|~r&s)+n[6]-1473231341|0,i=(i<<17|i>>>15)+r|0,s+=(i&r|~i&o)+n[7]-45705983|0,s=(s<<22|s>>>10)+i|0,o+=(s&i|~s&r)+n[8]+1770035416|0,o=(o<<7|o>>>25)+s|0,r+=(o&s|~o&i)+n[9]-1958414417|0,r=(r<<12|r>>>20)+o|0,i+=(r&o|~r&s)+n[10]-42063|0,i=(i<<17|i>>>15)+r|0,s+=(i&r|~i&o)+n[11]-1990404162|0,s=(s<<22|s>>>10)+i|0,o+=(s&i|~s&r)+n[12]+1804603682|0,o=(o<<7|o>>>25)+s|0,r+=(o&s|~o&i)+n[13]-40341101|0,r=(r<<12|r>>>20)+o|0,i+=(r&o|~r&s)+n[14]-1502002290|0,i=(i<<17|i>>>15)+r|0,s+=(i&r|~i&o)+n[15]+1236535329|0,s=(s<<22|s>>>10)+i|0,o+=(s&r|i&~r)+n[1]-165796510|0,o=(o<<5|o>>>27)+s|0,r+=(o&i|s&~i)+n[6]-1069501632|0,r=(r<<9|r>>>23)+o|0,i+=(r&s|o&~s)+n[11]+643717713|0,i=(i<<14|i>>>18)+r|0,s+=(i&o|r&~o)+n[0]-373897302|0,s=(s<<20|s>>>12)+i|0,o+=(s&r|i&~r)+n[5]-701558691|0,o=(o<<5|o>>>27)+s|0,r+=(o&i|s&~i)+n[10]+38016083|0,r=(r<<9|r>>>23)+o|0,i+=(r&s|o&~s)+n[15]-660478335|0,i=(i<<14|i>>>18)+r|0,s+=(i&o|r&~o)+n[4]-405537848|0,s=(s<<20|s>>>12)+i|0,o+=(s&r|i&~r)+n[9]+568446438|0,o=(o<<5|o>>>27)+s|0,r+=(o&i|s&~i)+n[14]-1019803690|0,r=(r<<9|r>>>23)+o|0,i+=(r&s|o&~s)+n[3]-187363961|0,i=(i<<14|i>>>18)+r|0,s+=(i&o|r&~o)+n[8]+1163531501|0,s=(s<<20|s>>>12)+i|0,o+=(s&r|i&~r)+n[13]-1444681467|0,o=(o<<5|o>>>27)+s|0,r+=(o&i|s&~i)+n[2]-51403784|0,r=(r<<9|r>>>23)+o|0,i+=(r&s|o&~s)+n[7]+1735328473|0,i=(i<<14|i>>>18)+r|0,s+=(i&o|r&~o)+n[12]-1926607734|0,s=(s<<20|s>>>12)+i|0,o+=(s^i^r)+n[5]-378558|0,o=(o<<4|o>>>28)+s|0,r+=(o^s^i)+n[8]-2022574463|0,r=(r<<11|r>>>21)+o|0,i+=(r^o^s)+n[11]+1839030562|0,i=(i<<16|i>>>16)+r|0,s+=(i^r^o)+n[14]-35309556|0,s=(s<<23|s>>>9)+i|0,o+=(s^i^r)+n[1]-1530992060|0,o=(o<<4|o>>>28)+s|0,r+=(o^s^i)+n[4]+1272893353|0,r=(r<<11|r>>>21)+o|0,i+=(r^o^s)+n[7]-155497632|0,i=(i<<16|i>>>16)+r|0,s+=(i^r^o)+n[10]-1094730640|0,s=(s<<23|s>>>9)+i|0,o+=(s^i^r)+n[13]+681279174|0,o=(o<<4|o>>>28)+s|0,r+=(o^s^i)+n[0]-358537222|0,r=(r<<11|r>>>21)+o|0,i+=(r^o^s)+n[3]-722521979|0,i=(i<<16|i>>>16)+r|0,s+=(i^r^o)+n[6]+76029189|0,s=(s<<23|s>>>9)+i|0,o+=(s^i^r)+n[9]-640364487|0,o=(o<<4|o>>>28)+s|0,r+=(o^s^i)+n[12]-421815835|0,r=(r<<11|r>>>21)+o|0,i+=(r^o^s)+n[15]+530742520|0,i=(i<<16|i>>>16)+r|0,s+=(i^r^o)+n[2]-995338651|0,s=(s<<23|s>>>9)+i|0,o+=(i^(s|~r))+n[0]-198630844|0,o=(o<<6|o>>>26)+s|0,r+=(s^(o|~i))+n[7]+1126891415|0,r=(r<<10|r>>>22)+o|0,i+=(o^(r|~s))+n[14]-1416354905|0,i=(i<<15|i>>>17)+r|0,s+=(r^(i|~o))+n[5]-57434055|0,s=(s<<21|s>>>11)+i|0,o+=(i^(s|~r))+n[12]+1700485571|0,o=(o<<6|o>>>26)+s|0,r+=(s^(o|~i))+n[3]-1894986606|0,r=(r<<10|r>>>22)+o|0,i+=(o^(r|~s))+n[10]-1051523|0,i=(i<<15|i>>>17)+r|0,s+=(r^(i|~o))+n[1]-2054922799|0,s=(s<<21|s>>>11)+i|0,o+=(i^(s|~r))+n[8]+1873313359|0,o=(o<<6|o>>>26)+s|0,r+=(s^(o|~i))+n[15]-30611744|0,r=(r<<10|r>>>22)+o|0,i+=(o^(r|~s))+n[6]-1560198380|0,i=(i<<15|i>>>17)+r|0,s+=(r^(i|~o))+n[13]+1309151649|0,s=(s<<21|s>>>11)+i|0,o+=(i^(s|~r))+n[4]-145523070|0,o=(o<<6|o>>>26)+s|0,r+=(s^(o|~i))+n[11]-1120210379|0,r=(r<<10|r>>>22)+o|0,i+=(o^(r|~s))+n[2]+718787259|0,i=(i<<15|i>>>17)+r|0,s+=(r^(i|~o))+n[9]-343485551|0,s=(s<<21|s>>>11)+i|0,t[0]=o+t[0]|0,t[1]=s+t[1]|0,t[2]=i+t[2]|0,t[3]=r+t[3]|0}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(at.stateIdentity),this}appendStr(t){const n=this._buffer8,o=this._buffer32;let s=this._bufferLength,i,r;for(r=0;r<t.length;r+=1){if(i=t.charCodeAt(r),i<128)n[s++]=i;else if(i<2048)n[s++]=(i>>>6)+192,n[s++]=i&63|128;else if(i<55296||i>56319)n[s++]=(i>>>12)+224,n[s++]=i>>>6&63|128,n[s++]=i&63|128;else{if(i=(i-55296)*1024+(t.charCodeAt(++r)-56320)+65536,i>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");n[s++]=(i>>>18)+240,n[s++]=i>>>12&63|128,n[s++]=i>>>6&63|128,n[s++]=i&63|128}s>=64&&(this._dataLength+=64,at._md5cycle(this._state,o),s-=64,o[0]=o[16])}return this._bufferLength=s,this}appendAsciiStr(t){const n=this._buffer8,o=this._buffer32;let s=this._bufferLength,i,r=0;for(;;){for(i=Math.min(t.length-r,64-s);i--;)n[s++]=t.charCodeAt(r++);if(s<64)break;this._dataLength+=64,at._md5cycle(this._state,o),s=0}return this._bufferLength=s,this}appendByteArray(t){const n=this._buffer8,o=this._buffer32;let s=this._bufferLength,i,r=0;for(;;){for(i=Math.min(t.length-r,64-s);i--;)n[s++]=t[r++];if(s<64)break;this._dataLength+=64,at._md5cycle(this._state,o),s=0}return this._bufferLength=s,this}getState(){const t=this._state;return{buffer:String.fromCharCode.apply(null,Array.from(this._buffer8)),buflen:this._bufferLength,length:this._dataLength,state:[t[0],t[1],t[2],t[3]]}}setState(t){const n=t.buffer,o=t.state,s=this._state;let i;for(this._dataLength=t.length,this._bufferLength=t.buflen,s[0]=o[0],s[1]=o[1],s[2]=o[2],s[3]=o[3],i=0;i<n.length;i+=1)this._buffer8[i]=n.charCodeAt(i)}end(t=!1){const n=this._bufferLength,o=this._buffer8,s=this._buffer32,i=(n>>2)+1;this._dataLength+=n;const r=this._dataLength*8;if(o[n]=128,o[n+1]=o[n+2]=o[n+3]=0,s.set(at.buffer32Identity.subarray(i),i),n>55&&(at._md5cycle(this._state,s),s.set(at.buffer32Identity)),r<=4294967295)s[14]=r;else{const a=r.toString(16).match(/(.*?)(.{0,8})$/);if(a===null)return;const u=parseInt(a[2],16),f=parseInt(a[1],16)||0;s[14]=u,s[15]=f}return at._md5cycle(this._state,s),t?this._state:at._hex(this._state)}}if(at.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),at.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),at.hexChars="0123456789abcdef",at.hexOut=[],at.onePassHasher=new at,at.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592")throw new Error("Md5 self test failed.");var Lg={exports:{}};(function(e){var t=function(n){var o=1e7,s=7,i=9007199254740992,r=x(i),a="0123456789abcdefghijklmnopqrstuvwxyz",u=typeof BigInt=="function";function f(m,y,_,k){return typeof m>"u"?f[0]:typeof y<"u"?+y==10&&!_?U(m):q(m,y,_,k):U(m)}function p(m,y){this.value=m,this.sign=y,this.isSmall=!1}p.prototype=Object.create(f.prototype);function h(m){this.value=m,this.sign=m<0,this.isSmall=!0}h.prototype=Object.create(f.prototype);function w(m){this.value=m}w.prototype=Object.create(f.prototype);function C(m){return-i<m&&m<i}function x(m){return m<1e7?[m]:m<1e14?[m%1e7,Math.floor(m/1e7)]:[m%1e7,Math.floor(m/1e7)%1e7,Math.floor(m/1e14)]}function A(m){M(m);var y=m.length;if(y<4&&ke(m,r)<0)switch(y){case 0:return 0;case 1:return m[0];case 2:return m[0]+m[1]*o;default:return m[0]+(m[1]+m[2]*o)*o}return m}function M(m){for(var y=m.length;m[--y]===0;);m.length=y+1}function D(m){for(var y=new Array(m),_=-1;++_<m;)y[_]=0;return y}function O(m){return m>0?Math.floor(m):Math.ceil(m)}function I(m,y){var _=m.length,k=y.length,T=new Array(_),S=0,z=o,V,te;for(te=0;te<k;te++)V=m[te]+y[te]+S,S=V>=z?1:0,T[te]=V-S*z;for(;te<_;)V=m[te]+S,S=V===z?1:0,T[te++]=V-S*z;return S>0&&T.push(S),T}function H(m,y){return m.length>=y.length?I(m,y):I(y,m)}function se(m,y){var _=m.length,k=new Array(_),T=o,S,z;for(z=0;z<_;z++)S=m[z]-T+y,y=Math.floor(S/T),k[z]=S-y*T,y+=1;for(;y>0;)k[z++]=y%T,y=Math.floor(y/T);return k}p.prototype.add=function(m){var y=U(m);if(this.sign!==y.sign)return this.subtract(y.negate());var _=this.value,k=y.value;return y.isSmall?new p(se(_,Math.abs(k)),this.sign):new p(H(_,k),this.sign)},p.prototype.plus=p.prototype.add,h.prototype.add=function(m){var y=U(m),_=this.value;if(_<0!==y.sign)return this.subtract(y.negate());var k=y.value;if(y.isSmall){if(C(_+k))return new h(_+k);k=x(Math.abs(k))}return new p(se(k,Math.abs(_)),_<0)},h.prototype.plus=h.prototype.add,w.prototype.add=function(m){return new w(this.value+U(m).value)},w.prototype.plus=w.prototype.add;function j(m,y){var _=m.length,k=y.length,T=new Array(_),S=0,z=o,V,te;for(V=0;V<k;V++)te=m[V]-S-y[V],te<0?(te+=z,S=1):S=0,T[V]=te;for(V=k;V<_;V++){if(te=m[V]-S,te<0)te+=z;else{T[V++]=te;break}T[V]=te}for(;V<_;V++)T[V]=m[V];return M(T),T}function ne(m,y,_){var k;return ke(m,y)>=0?k=j(m,y):(k=j(y,m),_=!_),k=A(k),typeof k=="number"?(_&&(k=-k),new h(k)):new p(k,_)}function ae(m,y,_){var k=m.length,T=new Array(k),S=-y,z=o,V,te;for(V=0;V<k;V++)te=m[V]+S,S=Math.floor(te/z),te%=z,T[V]=te<0?te+z:te;return T=A(T),typeof T=="number"?(_&&(T=-T),new h(T)):new p(T,_)}p.prototype.subtract=function(m){var y=U(m);if(this.sign!==y.sign)return this.add(y.negate());var _=this.value,k=y.value;return y.isSmall?ae(_,Math.abs(k),this.sign):ne(_,k,this.sign)},p.prototype.minus=p.prototype.subtract,h.prototype.subtract=function(m){var y=U(m),_=this.value;if(_<0!==y.sign)return this.add(y.negate());var k=y.value;return y.isSmall?new h(_-k):ae(k,Math.abs(_),_>=0)},h.prototype.minus=h.prototype.subtract,w.prototype.subtract=function(m){return new w(this.value-U(m).value)},w.prototype.minus=w.prototype.subtract,p.prototype.negate=function(){return new p(this.value,!this.sign)},h.prototype.negate=function(){var m=this.sign,y=new h(-this.value);return y.sign=!m,y},w.prototype.negate=function(){return new w(-this.value)},p.prototype.abs=function(){return new p(this.value,!1)},h.prototype.abs=function(){return new h(Math.abs(this.value))},w.prototype.abs=function(){return new w(this.value>=0?this.value:-this.value)};function pe(m,y){var _=m.length,k=y.length,T=_+k,S=D(T),z=o,V,te,Oe,Se,ve;for(Oe=0;Oe<_;++Oe){Se=m[Oe];for(var je=0;je<k;++je)ve=y[je],V=Se*ve+S[Oe+je],te=Math.floor(V/z),S[Oe+je]=V-te*z,S[Oe+je+1]+=te}return M(S),S}function Ae(m,y){var _=m.length,k=new Array(_),T=o,S=0,z,V;for(V=0;V<_;V++)z=m[V]*y+S,S=Math.floor(z/T),k[V]=z-S*T;for(;S>0;)k[V++]=S%T,S=Math.floor(S/T);return k}function ge(m,y){for(var _=[];y-- >0;)_.push(0);return _.concat(m)}function P(m,y){var _=Math.max(m.length,y.length);if(_<=30)return pe(m,y);_=Math.ceil(_/2);var k=m.slice(_),T=m.slice(0,_),S=y.slice(_),z=y.slice(0,_),V=P(T,z),te=P(k,S),Oe=P(H(T,k),H(z,S)),Se=H(H(V,ge(j(j(Oe,V),te),_)),ge(te,2*_));return M(Se),Se}function ie(m,y){return-.012*m-.012*y+15e-6*m*y>0}p.prototype.multiply=function(m){var y=U(m),_=this.value,k=y.value,T=this.sign!==y.sign,S;if(y.isSmall){if(k===0)return f[0];if(k===1)return this;if(k===-1)return this.negate();if(S=Math.abs(k),S<o)return new p(Ae(_,S),T);k=x(S)}return ie(_.length,k.length)?new p(P(_,k),T):new p(pe(_,k),T)},p.prototype.times=p.prototype.multiply;function Y(m,y,_){return m<o?new p(Ae(y,m),_):new p(pe(y,x(m)),_)}h.prototype._multiplyBySmall=function(m){return C(m.value*this.value)?new h(m.value*this.value):Y(Math.abs(m.value),x(Math.abs(this.value)),this.sign!==m.sign)},p.prototype._multiplyBySmall=function(m){return m.value===0?f[0]:m.value===1?this:m.value===-1?this.negate():Y(Math.abs(m.value),this.value,this.sign!==m.sign)},h.prototype.multiply=function(m){return U(m)._multiplyBySmall(this)},h.prototype.times=h.prototype.multiply,w.prototype.multiply=function(m){return new w(this.value*U(m).value)},w.prototype.times=w.prototype.multiply;function _e(m){var y=m.length,_=D(y+y),k=o,T,S,z,V,te;for(z=0;z<y;z++){V=m[z],S=0-V*V;for(var Oe=z;Oe<y;Oe++)te=m[Oe],T=2*(V*te)+_[z+Oe]+S,S=Math.floor(T/k),_[z+Oe]=T-S*k;_[z+y]=S}return M(_),_}p.prototype.square=function(){return new p(_e(this.value),!1)},h.prototype.square=function(){var m=this.value*this.value;return C(m)?new h(m):new p(_e(x(Math.abs(this.value))),!1)},w.prototype.square=function(m){return new w(this.value*this.value)};function L(m,y){var _=m.length,k=y.length,T=o,S=D(y.length),z=y[k-1],V=Math.ceil(T/(2*z)),te=Ae(m,V),Oe=Ae(y,V),Se,ve,je,Ct,gt,pi,hi;for(te.length<=_&&te.push(0),Oe.push(0),z=Oe[k-1],ve=_-k;ve>=0;ve--){for(Se=T-1,te[ve+k]!==z&&(Se=Math.floor((te[ve+k]*T+te[ve+k-1])/z)),je=0,Ct=0,pi=Oe.length,gt=0;gt<pi;gt++)je+=Se*Oe[gt],hi=Math.floor(je/T),Ct+=te[ve+gt]-(je-hi*T),je=hi,Ct<0?(te[ve+gt]=Ct+T,Ct=-1):(te[ve+gt]=Ct,Ct=0);for(;Ct!==0;){for(Se-=1,je=0,gt=0;gt<pi;gt++)je+=te[ve+gt]-T+Oe[gt],je<0?(te[ve+gt]=je+T,je=0):(te[ve+gt]=je,je=1);Ct+=je}S[ve]=Se}return te=N(te,V)[0],[A(S),A(te)]}function G(m,y){for(var _=m.length,k=y.length,T=[],S=[],z=o,V,te,Oe,Se,ve;_;){if(S.unshift(m[--_]),M(S),ke(S,y)<0){T.push(0);continue}te=S.length,Oe=S[te-1]*z+S[te-2],Se=y[k-1]*z+y[k-2],te>k&&(Oe=(Oe+1)*z),V=Math.ceil(Oe/Se);do{if(ve=Ae(y,V),ke(ve,S)<=0)break;V--}while(V);T.push(V),S=j(S,ve)}return T.reverse(),[A(T),A(S)]}function N(m,y){var _=m.length,k=D(_),T=o,S,z,V,te;for(V=0,S=_-1;S>=0;--S)te=V*T+m[S],z=O(te/y),V=te-z*y,k[S]=z|0;return[k,V|0]}function me(m,y){var _,k=U(y);if(u)return[new w(m.value/k.value),new w(m.value%k.value)];var T=m.value,S=k.value,z;if(S===0)throw new Error("Cannot divide by zero");if(m.isSmall)return k.isSmall?[new h(O(T/S)),new h(T%S)]:[f[0],m];if(k.isSmall){if(S===1)return[m,f[0]];if(S==-1)return[m.negate(),f[0]];var V=Math.abs(S);if(V<o){_=N(T,V),z=A(_[0]);var te=_[1];return m.sign&&(te=-te),typeof z=="number"?(m.sign!==k.sign&&(z=-z),[new h(z),new h(te)]):[new p(z,m.sign!==k.sign),new h(te)]}S=x(V)}var Oe=ke(T,S);if(Oe===-1)return[f[0],m];if(Oe===0)return[f[m.sign===k.sign?1:-1],f[0]];T.length+S.length<=200?_=L(T,S):_=G(T,S),z=_[0];var Se=m.sign!==k.sign,ve=_[1],je=m.sign;return typeof z=="number"?(Se&&(z=-z),z=new h(z)):z=new p(z,Se),typeof ve=="number"?(je&&(ve=-ve),ve=new h(ve)):ve=new p(ve,je),[z,ve]}p.prototype.divmod=function(m){var y=me(this,m);return{quotient:y[0],remainder:y[1]}},w.prototype.divmod=h.prototype.divmod=p.prototype.divmod,p.prototype.divide=function(m){return me(this,m)[0]},w.prototype.over=w.prototype.divide=function(m){return new w(this.value/U(m).value)},h.prototype.over=h.prototype.divide=p.prototype.over=p.prototype.divide,p.prototype.mod=function(m){return me(this,m)[1]},w.prototype.mod=w.prototype.remainder=function(m){return new w(this.value%U(m).value)},h.prototype.remainder=h.prototype.mod=p.prototype.remainder=p.prototype.mod,p.prototype.pow=function(m){var y=U(m),_=this.value,k=y.value,T,S,z;if(k===0)return f[1];if(_===0)return f[0];if(_===1)return f[1];if(_===-1)return y.isEven()?f[1]:f[-1];if(y.sign)return f[0];if(!y.isSmall)throw new Error("The exponent "+y.toString()+" is too large.");if(this.isSmall&&C(T=Math.pow(_,k)))return new h(O(T));for(S=this,z=f[1];k&!0&&(z=z.times(S),--k),k!==0;)k/=2,S=S.square();return z},h.prototype.pow=p.prototype.pow,w.prototype.pow=function(m){var y=U(m),_=this.value,k=y.value,T=BigInt(0),S=BigInt(1),z=BigInt(2);if(k===T)return f[1];if(_===T)return f[0];if(_===S)return f[1];if(_===BigInt(-1))return y.isEven()?f[1]:f[-1];if(y.isNegative())return new w(T);for(var V=this,te=f[1];(k&S)===S&&(te=te.times(V),--k),k!==T;)k/=z,V=V.square();return te},p.prototype.modPow=function(m,y){if(m=U(m),y=U(y),y.isZero())throw new Error("Cannot take modPow with modulus 0");var _=f[1],k=this.mod(y);for(m.isNegative()&&(m=m.multiply(f[-1]),k=k.modInv(y));m.isPositive();){if(k.isZero())return f[0];m.isOdd()&&(_=_.multiply(k).mod(y)),m=m.divide(2),k=k.square().mod(y)}return _},w.prototype.modPow=h.prototype.modPow=p.prototype.modPow;function ke(m,y){if(m.length!==y.length)return m.length>y.length?1:-1;for(var _=m.length-1;_>=0;_--)if(m[_]!==y[_])return m[_]>y[_]?1:-1;return 0}p.prototype.compareAbs=function(m){var y=U(m),_=this.value,k=y.value;return y.isSmall?1:ke(_,k)},h.prototype.compareAbs=function(m){var y=U(m),_=Math.abs(this.value),k=y.value;return y.isSmall?(k=Math.abs(k),_===k?0:_>k?1:-1):-1},w.prototype.compareAbs=function(m){var y=this.value,_=U(m).value;return y=y>=0?y:-y,_=_>=0?_:-_,y===_?0:y>_?1:-1},p.prototype.compare=function(m){if(m===1/0)return-1;if(m===-1/0)return 1;var y=U(m),_=this.value,k=y.value;return this.sign!==y.sign?y.sign?1:-1:y.isSmall?this.sign?-1:1:ke(_,k)*(this.sign?-1:1)},p.prototype.compareTo=p.prototype.compare,h.prototype.compare=function(m){if(m===1/0)return-1;if(m===-1/0)return 1;var y=U(m),_=this.value,k=y.value;return y.isSmall?_==k?0:_>k?1:-1:_<0!==y.sign?_<0?-1:1:_<0?1:-1},h.prototype.compareTo=h.prototype.compare,w.prototype.compare=function(m){if(m===1/0)return-1;if(m===-1/0)return 1;var y=this.value,_=U(m).value;return y===_?0:y>_?1:-1},w.prototype.compareTo=w.prototype.compare,p.prototype.equals=function(m){return this.compare(m)===0},w.prototype.eq=w.prototype.equals=h.prototype.eq=h.prototype.equals=p.prototype.eq=p.prototype.equals,p.prototype.notEquals=function(m){return this.compare(m)!==0},w.prototype.neq=w.prototype.notEquals=h.prototype.neq=h.prototype.notEquals=p.prototype.neq=p.prototype.notEquals,p.prototype.greater=function(m){return this.compare(m)>0},w.prototype.gt=w.prototype.greater=h.prototype.gt=h.prototype.greater=p.prototype.gt=p.prototype.greater,p.prototype.lesser=function(m){return this.compare(m)<0},w.prototype.lt=w.prototype.lesser=h.prototype.lt=h.prototype.lesser=p.prototype.lt=p.prototype.lesser,p.prototype.greaterOrEquals=function(m){return this.compare(m)>=0},w.prototype.geq=w.prototype.greaterOrEquals=h.prototype.geq=h.prototype.greaterOrEquals=p.prototype.geq=p.prototype.greaterOrEquals,p.prototype.lesserOrEquals=function(m){return this.compare(m)<=0},w.prototype.leq=w.prototype.lesserOrEquals=h.prototype.leq=h.prototype.lesserOrEquals=p.prototype.leq=p.prototype.lesserOrEquals,p.prototype.isEven=function(){return(this.value[0]&1)===0},h.prototype.isEven=function(){return(this.value&1)===0},w.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},p.prototype.isOdd=function(){return(this.value[0]&1)===1},h.prototype.isOdd=function(){return(this.value&1)===1},w.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},p.prototype.isPositive=function(){return!this.sign},h.prototype.isPositive=function(){return this.value>0},w.prototype.isPositive=h.prototype.isPositive,p.prototype.isNegative=function(){return this.sign},h.prototype.isNegative=function(){return this.value<0},w.prototype.isNegative=h.prototype.isNegative,p.prototype.isUnit=function(){return!1},h.prototype.isUnit=function(){return Math.abs(this.value)===1},w.prototype.isUnit=function(){return this.abs().value===BigInt(1)},p.prototype.isZero=function(){return!1},h.prototype.isZero=function(){return this.value===0},w.prototype.isZero=function(){return this.value===BigInt(0)},p.prototype.isDivisibleBy=function(m){var y=U(m);return y.isZero()?!1:y.isUnit()?!0:y.compareAbs(2)===0?this.isEven():this.mod(y).isZero()},w.prototype.isDivisibleBy=h.prototype.isDivisibleBy=p.prototype.isDivisibleBy;function Me(m){var y=m.abs();if(y.isUnit())return!1;if(y.equals(2)||y.equals(3)||y.equals(5))return!0;if(y.isEven()||y.isDivisibleBy(3)||y.isDivisibleBy(5))return!1;if(y.lesser(49))return!0}function Fe(m,y){for(var _=m.prev(),k=_,T=0,S,z,V;k.isEven();)k=k.divide(2),T++;e:for(z=0;z<y.length;z++)if(!m.lesser(y[z])&&(V=t(y[z]).modPow(k,m),!(V.isUnit()||V.equals(_)))){for(S=T-1;S!=0;S--){if(V=V.square().mod(m),V.isUnit())return!1;if(V.equals(_))continue e}return!1}return!0}p.prototype.isPrime=function(m){var y=Me(this);if(y!==n)return y;var _=this.abs(),k=_.bitLength();if(k<=64)return Fe(_,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var T=Math.log(2)*k.toJSNumber(),S=Math.ceil(m===!0?2*Math.pow(T,2):T),z=[],V=0;V<S;V++)z.push(t(V+2));return Fe(_,z)},w.prototype.isPrime=h.prototype.isPrime=p.prototype.isPrime,p.prototype.isProbablePrime=function(m,y){var _=Me(this);if(_!==n)return _;for(var k=this.abs(),T=m===n?5:m,S=[],z=0;z<T;z++)S.push(t.randBetween(2,k.minus(2),y));return Fe(k,S)},w.prototype.isProbablePrime=h.prototype.isProbablePrime=p.prototype.isProbablePrime,p.prototype.modInv=function(m){for(var y=t.zero,_=t.one,k=U(m),T=this.abs(),S,z,V;!T.isZero();)S=k.divide(T),z=y,V=k,y=_,k=T,_=z.subtract(S.multiply(_)),T=V.subtract(S.multiply(T));if(!k.isUnit())throw new Error(this.toString()+" and "+m.toString()+" are not co-prime");return y.compare(0)===-1&&(y=y.add(m)),this.isNegative()?y.negate():y},w.prototype.modInv=h.prototype.modInv=p.prototype.modInv,p.prototype.next=function(){var m=this.value;return this.sign?ae(m,1,this.sign):new p(se(m,1),this.sign)},h.prototype.next=function(){var m=this.value;return m+1<i?new h(m+1):new p(r,!1)},w.prototype.next=function(){return new w(this.value+BigInt(1))},p.prototype.prev=function(){var m=this.value;return this.sign?new p(se(m,1),!0):ae(m,1,this.sign)},h.prototype.prev=function(){var m=this.value;return m-1>-i?new h(m-1):new p(r,!0)},w.prototype.prev=function(){return new w(this.value-BigInt(1))};for(var Qe=[1];2*Qe[Qe.length-1]<=o;)Qe.push(2*Qe[Qe.length-1]);var jt=Qe.length,Ut=Qe[jt-1];function Bn(m){return Math.abs(m)<=o}p.prototype.shiftLeft=function(m){var y=U(m).toJSNumber();if(!Bn(y))throw new Error(String(y)+" is too large for shifting.");if(y<0)return this.shiftRight(-y);var _=this;if(_.isZero())return _;for(;y>=jt;)_=_.multiply(Ut),y-=jt-1;return _.multiply(Qe[y])},w.prototype.shiftLeft=h.prototype.shiftLeft=p.prototype.shiftLeft,p.prototype.shiftRight=function(m){var y,_=U(m).toJSNumber();if(!Bn(_))throw new Error(String(_)+" is too large for shifting.");if(_<0)return this.shiftLeft(-_);for(var k=this;_>=jt;){if(k.isZero()||k.isNegative()&&k.isUnit())return k;y=me(k,Ut),k=y[1].isNegative()?y[0].prev():y[0],_-=jt-1}return y=me(k,Qe[_]),y[1].isNegative()?y[0].prev():y[0]},w.prototype.shiftRight=h.prototype.shiftRight=p.prototype.shiftRight;function _t(m,y,_){y=U(y);for(var k=m.isNegative(),T=y.isNegative(),S=k?m.not():m,z=T?y.not():y,V=0,te=0,Oe=null,Se=null,ve=[];!S.isZero()||!z.isZero();)Oe=me(S,Ut),V=Oe[1].toJSNumber(),k&&(V=Ut-1-V),Se=me(z,Ut),te=Se[1].toJSNumber(),T&&(te=Ut-1-te),S=Oe[0],z=Se[0],ve.push(_(V,te));for(var je=_(k?1:0,T?1:0)!==0?t(-1):t(0),Ct=ve.length-1;Ct>=0;Ct-=1)je=je.multiply(Ut).add(t(ve[Ct]));return je}p.prototype.not=function(){return this.negate().prev()},w.prototype.not=h.prototype.not=p.prototype.not,p.prototype.and=function(m){return _t(this,m,function(y,_){return y&_})},w.prototype.and=h.prototype.and=p.prototype.and,p.prototype.or=function(m){return _t(this,m,function(y,_){return y|_})},w.prototype.or=h.prototype.or=p.prototype.or,p.prototype.xor=function(m){return _t(this,m,function(y,_){return y^_})},w.prototype.xor=h.prototype.xor=p.prototype.xor;var xt=1<<30,ft=(o&-o)*(o&-o)|xt;function ot(m){var y=m.value,_=typeof y=="number"?y|xt:typeof y=="bigint"?y|BigInt(xt):y[0]+y[1]*o|ft;return _&-_}function ao(m,y){if(y.compareTo(m)<=0){var _=ao(m,y.square(y)),k=_.p,T=_.e,S=k.multiply(y);return S.compareTo(m)<=0?{p:S,e:T*2+1}:{p:k,e:T*2}}return{p:t(1),e:0}}p.prototype.bitLength=function(){var m=this;return m.compareTo(t(0))<0&&(m=m.negate().subtract(t(1))),m.compareTo(t(0))===0?t(0):t(ao(m,t(2)).e).add(t(1))},w.prototype.bitLength=h.prototype.bitLength=p.prototype.bitLength;function dt(m,y){return m=U(m),y=U(y),m.greater(y)?m:y}function b(m,y){return m=U(m),y=U(y),m.lesser(y)?m:y}function E(m,y){if(m=U(m).abs(),y=U(y).abs(),m.equals(y))return m;if(m.isZero())return y;if(y.isZero())return m;for(var _=f[1],k,T;m.isEven()&&y.isEven();)k=b(ot(m),ot(y)),m=m.divide(k),y=y.divide(k),_=_.multiply(k);for(;m.isEven();)m=m.divide(ot(m));do{for(;y.isEven();)y=y.divide(ot(y));m.greater(y)&&(T=y,y=m,m=T),y=y.subtract(m)}while(!y.isZero());return _.isUnit()?m:m.multiply(_)}function R(m,y){return m=U(m).abs(),y=U(y).abs(),m.divide(E(m,y)).multiply(y)}function B(m,y,_){m=U(m),y=U(y);var k=_||Math.random,T=b(m,y),S=dt(m,y),z=S.subtract(T).add(1);if(z.isSmall)return T.add(Math.floor(k()*z));for(var V=J(z,o).value,te=[],Oe=!0,Se=0;Se<V.length;Se++){var ve=Oe?V[Se]+(Se+1<V.length?V[Se+1]/o:0):o,je=O(k()*ve);te.push(je),je<V[Se]&&(Oe=!1)}return T.add(f.fromArray(te,o,!1))}var q=function(m,y,_,k){_=_||a,m=String(m),k||(m=m.toLowerCase(),_=_.toLowerCase());var T=m.length,S,z=Math.abs(y),V={};for(S=0;S<_.length;S++)V[_[S]]=S;for(S=0;S<T;S++){var te=m[S];if(te!=="-"&&te in V&&V[te]>=z){if(te==="1"&&z===1)continue;throw new Error(te+" is not a valid digit in base "+y+".")}}y=U(y);var Oe=[],Se=m[0]==="-";for(S=Se?1:0;S<m.length;S++){var te=m[S];if(te in V)Oe.push(U(V[te]));else if(te==="<"){var ve=S;do S++;while(m[S]!==">"&&S<m.length);Oe.push(U(m.slice(ve+1,S)))}else throw new Error(te+" is not a valid character")}return oe(Oe,y,Se)};function oe(m,y,_){var k=f[0],T=f[1],S;for(S=m.length-1;S>=0;S--)k=k.add(m[S].times(T)),T=T.times(y);return _?k.negate():k}function le(m,y){return y=y||a,m<y.length?y[m]:"<"+m+">"}function J(m,y){if(y=t(y),y.isZero()){if(m.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(y.equals(-1)){if(m.isZero())return{value:[0],isNegative:!1};if(m.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-m.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var _=Array.apply(null,Array(m.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return _.unshift([1]),{value:[].concat.apply([],_),isNegative:!1}}var k=!1;if(m.isNegative()&&y.isPositive()&&(k=!0,m=m.abs()),y.isUnit())return m.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(m.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:k};for(var T=[],S=m,z;S.isNegative()||S.compareAbs(y)>=0;){z=S.divmod(y),S=z.quotient;var V=z.remainder;V.isNegative()&&(V=y.minus(V).abs(),S=S.next()),T.push(V.toJSNumber())}return T.push(S.toJSNumber()),{value:T.reverse(),isNegative:k}}function Z(m,y,_){var k=J(m,y);return(k.isNegative?"-":"")+k.value.map(function(T){return le(T,_)}).join("")}p.prototype.toArray=function(m){return J(this,m)},h.prototype.toArray=function(m){return J(this,m)},w.prototype.toArray=function(m){return J(this,m)},p.prototype.toString=function(m,y){if(m===n&&(m=10),m!==10)return Z(this,m,y);for(var _=this.value,k=_.length,T=String(_[--k]),S="0000000",z;--k>=0;)z=String(_[k]),T+=S.slice(z.length)+z;var V=this.sign?"-":"";return V+T},h.prototype.toString=function(m,y){return m===n&&(m=10),m!=10?Z(this,m,y):String(this.value)},w.prototype.toString=h.prototype.toString,w.prototype.toJSON=p.prototype.toJSON=h.prototype.toJSON=function(){return this.toString()},p.prototype.valueOf=function(){return parseInt(this.toString(),10)},p.prototype.toJSNumber=p.prototype.valueOf,h.prototype.valueOf=function(){return this.value},h.prototype.toJSNumber=h.prototype.valueOf,w.prototype.valueOf=w.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function X(m){if(C(+m)){var y=+m;if(y===O(y))return u?new w(BigInt(y)):new h(y);throw new Error("Invalid integer: "+m)}var _=m[0]==="-";_&&(m=m.slice(1));var k=m.split(/e/i);if(k.length>2)throw new Error("Invalid integer: "+k.join("e"));if(k.length===2){var T=k[1];if(T[0]==="+"&&(T=T.slice(1)),T=+T,T!==O(T)||!C(T))throw new Error("Invalid integer: "+T+" is not a valid exponent.");var S=k[0],z=S.indexOf(".");if(z>=0&&(T-=S.length-z-1,S=S.slice(0,z)+S.slice(z+1)),T<0)throw new Error("Cannot include negative exponent part for integers");S+=new Array(T+1).join("0"),m=S}var V=/^([0-9][0-9]*)$/.test(m);if(!V)throw new Error("Invalid integer: "+m);if(u)return new w(BigInt(_?"-"+m:m));for(var te=[],Oe=m.length,Se=s,ve=Oe-Se;Oe>0;)te.push(+m.slice(ve,Oe)),ve-=Se,ve<0&&(ve=0),Oe-=Se;return M(te),new p(te,_)}function ye(m){if(u)return new w(BigInt(m));if(C(m)){if(m!==O(m))throw new Error(m+" is not an integer.");return new h(m)}return X(m.toString())}function U(m){return typeof m=="number"?ye(m):typeof m=="string"?X(m):typeof m=="bigint"?new w(m):m}for(var be=0;be<1e3;be++)f[be]=U(be),be>0&&(f[-be]=U(-be));return f.one=f[1],f.zero=f[0],f.minusOne=f[-1],f.max=dt,f.min=b,f.gcd=E,f.lcm=R,f.isInstance=function(m){return m instanceof p||m instanceof h||m instanceof w},f.randBetween=B,f.fromArray=function(m,y,_){return oe(m.map(U),U(y||10),_)},f}();e.hasOwnProperty("exports")&&(e.exports=t)})(Lg);async function yu(e,t,n){const o=new URLSearchParams({page:e.toString(),uid:n.toString(),sign:t,time:bs().toString()});return(await Et.post("https://115.com/web/lixian/?ct=lixian&ac=task_lists",o,{withCredentials:!0,timeout:6e4})).data}async function bu(){return(await Et.get(`https://115.com/?ct=offline&ac=space&_=${Date.now()}`,{timeout:3e4,withCredentials:!0})).data}async function vu(){const t=(await Et.get("https://my.115.com/?ct=ajax&ac=nav",{timeout:3e4,withCredentials:!0})).data;if(t.state)return t.data;throw new Error(t.error)}async function _u(e){const t=sa(e),o=(await Et.get("https://webapi.115.com/files?"+t,{timeout:12e4,withCredentials:!0})).data;if(o.state)return o;throw new Error(o.error)}async function xu(e,t=500){const n=await $a(e);for(let o=0;o<n.length;o++){const s=n[o];if(s.fid)continue;const i=$s({cid:s.cid,limit:e.limit||115}),r=await xu(i,t);s.children=r}return n}async function $a(e,t=500){let n=[],o=0;for(;;){e.offset=o;const s=await _u(e);if(!s.data||!s.data.length||(n=[...n,...s.data],o+=e.limit,o>=s.count))break;await Bt(t)}return n}async function Bg(e){const t=sa(e),n=await Et.get("https://webapi.115.com/files/search?"+t,{timeout:12e4,withCredentials:!0});if(n.data==="")throw new gu;const o=n.data;if(o.state)return o;throw new Ca(o.error)}async function Dg(e,t=500,n=!1){let o=[],s=0,i=e.limit;const r=1e4,a=115,u=r-r%i;let f=i;for(;;){if(n){if(s>=u&&s<r){const h=r-u;f=Math.min(h,f)}s>=r&&(f=a)}e.offset=s,e.limit=f;const p=await Bg(e);if(!p.data||!p.data.length||(o=[...o,...p.data],s+=f,s>=p.count))break;await Bt(t)}return o}async function Ng(e,t){const n=new URLSearchParams({pid:e,ignore_warn:"1"});return t.forEach((s,i)=>{n.append(`fid[${i}]`,s)}),(await Et.post("https://webapi.115.com/rb/delete",n,{timeout:12e4,withCredentials:!0})).data}async function Cu(e,t,n,o){let s=0,i=0;for(;;){const r=t.slice(s,s+n);if((await Ng(e,r)).state&&(i+=r.length),s+=n,s>=t.length)break;await Bt(o)}return i}async function $u(e,t){const n=new URLSearchParams({pid:e,cname:t});return(await Et.post("https://webapi.115.com/files/add",n,{timeout:12e4,withCredentials:!0})).data}async function Rg(e,t){const n=new URLSearchParams({pid:e});return t.forEach((s,i)=>{n.append(`fid[${i}]`,s)}),(await Et.post("https://webapi.115.com/files/move",n,{timeout:12e4,withCredentials:!0})).data}async function Fg(e){const t=new URLSearchParams({path:e});return(await Et.get("https://webapi.115.com/files/getid?"+t.toString(),{timeout:12e4,withCredentials:!0})).data}async function Wo(e){const t=new URLSearchParams({cid:e});return(await Et.get("https://webapi.115.com/category/get?"+t.toString(),{timeout:12e4,withCredentials:!0})).data}async function ka(e,t,n,o){const s={uid:o.toString(),sign:t.sign,time:bs().toString()};n&&(s.flag="1");const i=Mg(s);return e.forEach((a,u)=>{i.append(`hash[${u}]`,a)}),(await Et.post("https://115.com/web/lixian/?ct=lixian&ac=task_del",i,{timeout:12e4,withCredentials:!0})).data}async function jg(e){if(!(await Wo(e)).play_long)throw new Error("该目录下没有可以播放的媒体文件![by_attr]");const o=(await $a($s({cid:e,limit:1150}))).find(s=>s.play_long&&s.play_long>0);if(!o)throw new Error("该目录下没有可以播放的媒体文件![by_files]");return Os(o)}async function Ug(e){/^\d+$/.test(e.target)&&(e.target=`U_1_${e.target}`);const t=sa(e);return(await Et.post("https://uplb.115.com/3.0/sampleinitupload.php",t,{timeout:12e4,withCredentials:!0})).data}async function Hg(e,t){const n=await Ug(t),o=new FormData;o.append("name",t.filename),o.append("key",n.object),o.append("policy",n.policy),o.append("OSSAccessKeyId",n.accessid),o.append("success_action_status","200"),o.append("callback",n.callback),o.append("signature",n.signature),o.append("file",e);const s=n.host.replace(/^http:/,"https:");return(await Et.post(s,o,{timeout:18e5})).data}function zg(e){if(navigator.clipboard){navigator.clipboard.writeText(e);return}if(document.execCommand){const t=document.createElement("input");t.style.position="fixed",t.style.opacity="0",t.value=e,document.body.appendChild(t),t.select(),document.execCommand("Copy"),document.body.removeChild(t);return}prompt("请复制以下内容:",e)}function ku(e="",t=""){return e+Date.now().toString()+Math.random().toString(36).substring(5)+t}async function qg(e,t,n=!1){var i;const o=new Map;if(!e.length)return o;t=t||await Cs();let s=new Map;n||(ue({text:"正在获取上级目录路径...",timer:0}),fe.showLoading());try{s=await rw(e),n||fe.close()}catch(r){return console.error(r),n||ue({text:`获取上级目录路径失败: ${r}`,timer:1200,icon:"error"}),o}finally{n||fe.hideLoading()}if(s.size===0)return o;for(let r=0;r<e.length;r++){const a=(i=s.get(e[r].parentId))==null?void 0:i.slice(1).join("/"),u=e[r].name,f=gm(a+"/"+u,!0),p=e[r].isFile?await zo(t,f,Ci.play):await ra(t,f);o.set(f,p)}return console.log("[buildCloudDriveUrlsForFileItems] pathToUrl:",o),o}async function Vg(e,t){const n=await zo(e,t);return(await mm({method:"HEAD",url:n})).status===200}async function Wg(e,t,n,o){const i=`waitFileExist_${ku()} path: ${t}`;console.time(i);async function r(a){const u=await Vg(e,t);u===!0&&a(u)}try{await _s(r,n,o)}catch{throw new Error(`[waitFileExist] 检查文件存在超时!文件路径: ${t}`)}finally{console.timeEnd(i)}}async function Kg(e){let t=`#EXTM3U
`;for(const[n,o]of e)t+=`#EXTINF:0,${n}
${o}
`;return t}var po=(e=>(e.unix="/",e.windows="\\",e))(po||{});function Mi(e,t="/"){return e.map((n,o)=>o===0?n:Li(n,t)).join(t)}function Li(e,t="/"){return e=e.replace(/[\\/]/g,t),t==="/"?e=e.replace(/\/+/g,t):e=e.replace(/\\+/g,t),e.length>1&&e.endsWith(t)&&(e=e.slice(0,-1)),e}function Gg(e){return e.startsWith("/")}function Jg(e){return e===""||e==="/"||e==="\\"}function Su(e,t,n="/"){if(Gg(t))return t;const o=new URL(e,"http://example.com");o.pathname=Yg(o.pathname,t);let s=decodeURIComponent(o.pathname);return Li(s,n)}function Yg(e,t){const n=e.endsWith("/")?e:e+"/",o=t.startsWith("/")?t.slice(1):t;return n+o}async function zt(e=!0){const t=mo().GetCurWangPanCid();return!t&&e?(mo().Core.MinMessage.Show({text:'不支持"根目录"!',timeout:1e3}),""):t}async function Xg(e,t){let n=$(`li.temp-el[cate_id="${e}"]`);if(!n.length){const o=`
<li class="selected temp-el" file_type="${0}">
<input type="checkbox" value="${e}"/>
<div class="checkbox" menu="file_check_one"></div>
<div class="file-name-wrap">
<span class="file-name" rel="file_name">
<em>
<a class="name" href="javascript:;" cate="1" menu="open" aid="1" cid="${e}" rel="view_folder">
<span>名称</span>
</a>
</em>
</span>
</div>
</li>
`;n=$(o)}n.attr("title",t.file_name),n.find("a.name > span").text(t.file_name);for(let o in t){const s=typeof t[o];["string","number"].indexOf(s)>-1&&n.attr(o,t[o])}return n.attr("cate_id",e),n.attr("p_id",t.paths[t.paths.length-1].file_id),n}async function yn(e){const t=await Ko(e);return Os(t)}async function Ko(e){const t=e.attr("file_size"),n=e.attr("iv")==="1",o=await Iu(),s=e.attr("file_id")||"",i=!!s,r={n:e.attr("title")||"",s:t?parseInt(t):0,pc:e.attr("pick_code")||"",t:e.attr("user_ptime")||"",te:"",tp:"",ico:e.attr("ico")||"",sha:e.attr("sha1")||"",iv:n};let a={n:r.n};if(!o)a={fid:s,cid:(i?e.attr("cid"):e.attr("cate_id"))||"",pid:i?"":e.attr("p_id")||"",...r};else if(a={fid:s,cid:(i?e.attr("cid"):e.attr("cate_id"))||"",...r},!i){const u=e.find(".file-directory a[cid]");if(u.length)a.pid=u.attr("cid");else throw console.warn("无法获取上级目录ID!",e),new Error("无法获取上级目录ID!")}return{...a,...r}}async function ho(e){const t=await nw(e);return Qg(t)}async function Qg(e){const t=[];for(let n=0;n<e.length;n++){const o=await Os(e[n]);t.push(o)}return t}async function Os(e){var o,s;const t=!!e.fid,n={id:t?e.fid:e.cid,name:e.n,hash:e.sha,parentId:t?e.cid:e.pid,sizeRaw:e.s,sizeDesc:(o=e.s)==null?void 0:o.toString(),sizeBytes:0,isFile:t,isDir:!t,isVideo:e.iv===!0||((s=e.iv)==null?void 0:s.toString())==="1",pickCode:e.pc,playDuration:e.play_long};return typeof e.s=="number"?n.sizeBytes=e.s:typeof e.s=="string"&&/^\d+$/.test(e.s)&&(n.sizeBytes=parseInt(e.s)),n.sizeDesc=_i(n.sizeBytes||0),n}function mo(){return unsafeWindow.TOP?unsafeWindow.TOP:unsafeWindow}function Zg(){return unsafeWindow.top===unsafeWindow?unsafeWindow.Ext:unsafeWindow.top.Ext}async function ew(e){return new Promise((t,n)=>{mo().Core.DataAccess.Dir.GetDetail("1",e,o=>t(o))})}async function tw(){const e=await zt(),t=await ew(e),n=await Xg(e,t);return n.addClass("ce-temp-cur-dir"),n}async function Bi(){return window.top!==window?$(document):$('iframe[name="wangpan"], .wrap-view iframe:eq(0)').contents()}async function Go(){return(await Bi()).find(".list-contents, .list-thumb")}async function Eu(e){const t=await Go();return e?t.find("li.selected:not(.ce-temp-cur-dir)"):t.find("li:not(.ce-temp-cur-dir)")}async function nw(e){const t=await Eu(e),n=[];for(let o=0;o<t.length;o++){const s=t.eq(o),i=await Ko(s);n.push(i)}return n}async function Sa(e="/"){const t=await Au();return e+t.slice(1).join(e)}async function Au(){const e=await Bi(),t=[];return e.find("#js_top_header_file_path_box .top-file-path > .file-path").children().each(function(){t.push($(this).text().trim().replace(/[›]$/,""))}),t}async function ow(){const e=await zt();(await Go()).find("li.selected").each(function(){const n=$(this);n.attr("cate_id")!==e&&(n.find('input[type="checkbox"]').prop("checked",!1),n.removeClass("selected"))})}async function jn(e=!1){const t=await zt();if(!t)return null;const n=await Go(),o=await tw();return e||o.hide(),n.find(`li[cate_id="${t}"]`).length||n.append(o),o}async function Ea(e,t,n){n&&await ow(),mo().Core.FileMenu.DoEvent([e],t,null)}function Ou(e){return`https://115.com/?${new URLSearchParams({cid:e}).toString()}&offset=0&mode=wangpan`}async function Iu(e=location.href){return e.includes("ac=search")}function Aa(e,t=""){const n=new URLSearchParams({aid:"1",cid:e.cid||"",old_cid:e.cid||"",old_cid_name:t,search_value:e.search_value,ct:"file",ac:"search",is_wl_tpl:"1"});return"https://115.com/?url="+encodeURIComponent(`/?${n.toString()}`)+"&submode=wangpan&mode=search"}function Pu(e){return`https://v.anxia.com/?${new URLSearchParams({pickcode:e,share_id:"0"}).toString()}`}async function sw(e){unsafeWindow.Main.ReInstance({type:e.type,offset:0,o:Rc.userPtime,asc:aa.false,star:e.star,suffix:e.suffix})}async function iw(){return(await Go()).find("li.selected")}async function Tu(){const e=await iw();return e?await Ko(e):null}function Mu(e){return e.replace(/[/\\:*?"<>|]/g,"_")}async function Oa(e){const n=(await Wo(e.id)).paths.slice(1).map(i=>i.file_name).join("/"),o=Mu(e.name);return`/${n}/${o}`.replace(/^[\/]+/g,"/")}async function rw(e,t=100){var i;const n=new Map;for(const r of e){const a=r.parentId;if(!a)throw new Error(`文件"${r.name}"没有父级目录ID!`);n.has(a)?(i=n.get(a))==null||i.push(r):n.set(a,[r])}const o=[];for(const r of n.values())o.push(r[0]);const s=new Map;for(const r of o){const a=await Wo(r.id);await Bt(t),s.set(r.parentId,a.paths.map(u=>u.file_name))}return s}async function aw(e,t=100){var i;const n=new Map;for(const r of e){const a=r.parentId;if(!a)throw new Error(`文件"${r.name}"没有父级目录ID!`);n.has(a)?(i=n.get(a))==null||i.push(r):n.set(a,[r])}const o=[];for(const r of n.values())o.push(r[0]);const s=new Map;for(const r of o){const a=await Wo(r.id);await Bt(t),s.set(r.parentId,a.paths)}return s}async function lw(e,t){const n=new File([e],t.filename,{type:"text/plain"});return Hg(n,t)}async function cw(e,t,n){const o=await qg(e),s=await Kg(o);n=n||ku();let i=t;return/m3u8$/.test(n)||(n+=".m3u8"),await lw(s,{filename:n,target:i})}const Ia=new Map;async function Lu(e,t=!0){if(e=Li(e,po.unix),e=e.replace(/^[\/]+/,"").replace(/[\/]+$/,""),t&&Ia.has(e))return Ia.get(e);if(e===""||e==="/")return"0";const n=await Fg(e);if(!n.state)throw new Error(`根据路径"${e}"获取目录ID失败: ${n.error}`);if(n.id&&n.id.toString()!=="0")return Ia.set(e,n.id.toString()),n.id.toString();throw new wu(`根据路径"${e}"获取目录ID失败: 目录不存在!`)}async function uw(e){e=e.replace(/^\//,"").replace(/\/$/,"");const t={id:"",created:!1,pathToId:new Map};if(e===""||e==="/")return t.id="0",t;const n=e.split("/").filter(i=>i);let o="0",s="";for(const i of n){s+="/"+i;let r="";try{r=await Lu(s),t.pathToId.set(s,r)}catch(a){if(a instanceof wu){const u=await $u(o,i);if(!u.state)throw new Error(`创建目录"${i}"失败: ${u.error}`);r=u.cid.toString()}else throw a}o=r,t.pathToId.set(s,r)}return t.id=o,t}async function Bu(e){if(!location.search.includes("ac=search")||!e.enableInSearch)return;const n=(await co("#js_data_list"))[0],o=[{label:"移动",body:'<a href="javascript:;" menu="move" style=""><i class="icon-operate ifo-move" menu="move"></i><span menu="move">移动</span></a>',enabled:!0},{label:"重命名",body:'<a href="javascript:;" menu="edit_name" style=""><i class="icon-operate ifo-rename" menu="edit_name"></i><span menu="edit_name">重命名</span></a>',enabled:!0},{label:"删除",body:'<a href="javascript:;" menu="delete" style=""><i class="icon-operate ifo-remove" menu="delete"></i><span menu="delete">删除</span></a>',enabled:!0},{label:"属性",body:'<a href="javascript:;" menu="attribute" style=""><i class="icon-operate ifo-property" menu="attribute"></i><span menu="attribute">属性</span></a>',enabled:!0}],s=a=>{let u="";for(const f of a)!f.enabled||(u+=f.body);return u},i=()=>{const a="ce-menu-init",u=document.querySelectorAll(`li[rel="item"]:not(.${a})`),f=s(o);for(let p=0;p<u.length;p++){const h=u[p];if(h.querySelector(".file-opr"))continue;const w=document.createElement("div");w.className="file-opr",w.setAttribute("rel","menu"),w.innerHTML=f,h.classList.add(a),h.appendChild(w)}};i(),new MutationObserver(async([a])=>{a.type==="childList"&&i()}).observe(n,{childList:!0})}async function dw(e){if(!e.hideSelectionMenuLabel)return;const n=(await co("#js_operate_box"))[0];new MutationObserver(async([s])=>{if(s.type==="childList"){const i=n.querySelectorAll("li[menu]");for(let r=0;r<i.length;r++){const a=i[r],u=a.textContent;a.setAttribute("title",u||"")}}}).observe(n,{childList:!0}),n.classList.add("only-icon")}async function fw(e,t){const n=[],o=await Yo(),s=o.keyToTriggerManual;for(const i of t){const r=vi(e,{key:`_ce_s_${i.key}`,label:i.label,icon:i.icon,title:i.memo,onClick:async(a,u)=>{u.stopPropagation(),u.preventDefault();try{let f;if(s){const x=u;(s===rn.alt&&x.altKey||s===rn.ctrl&&x.ctrlKey||s===rn.shift&&x.shiftKey||s===rn.meta&&x.metaKey)&&(f={names:[Ma.manual],position:o.injectManualFuncPosition})}const p=$(u.target).closest("li"),h=await yn(p),w=await Cs(),C=await Ri(h,i,w,f);if(console.log("[search url]",C),!C)throw new Error("无法获取有效的搜索链接!");um(C,{active:!i.openInBackground})}catch(f){console.error(f),ue({title:"搜索失败",text:f.toString(),icon:"error"})}}});n.push(r)}return n}async function Pa(e,t){if(console.log("[playDirOnAnxia]",e,t),!t)try{ue({title:"正在查找可播放的文件...",text:"请稍等...",icon:"info"}),fe.showLoading(),t=await jg(e),console.log("[playDirOnAnxia] file",t)}catch(o){console.error(o),ue({title:"播放失败",text:o.toString(),icon:"error"});return}t||ue({title:"播放失败",text:"没有在该目录下找到可播放的文件![file_null]",icon:"error"});const n=Pu(t.pickCode);window.open(n,"_blank","noopener noreferrer")}async function pw(e,t){const n=[],o=await Yo(),s=o.keyToTriggerManual;for(const i of t){const r=vi(e,{key:`_ce_p_${i.key}`,label:i.label,icon:i.icon,title:i.memo,onClick:async(a,u)=>{u.stopPropagation(),u.preventDefault();try{let f;if(s){const x=u;(s===rn.alt&&x.altKey||s===rn.ctrl&&x.ctrlKey||s===rn.shift&&x.shiftKey||s===rn.meta&&x.metaKey)&&(f={names:[Ma.manual],position:o.injectManualFuncPosition})}const p=$(u.target).closest("li"),h=await yn(p),w=await Cs(),C=await Ri(h,i,w,f);if(h.isDir&&C.includes("v.anxia.com")){Pa(h.id);return}if(console.log("[play url]",C),!C)throw new Error("无法获取有效的播放链接!");window.open(C,"_blank","noopener noreferrer")}catch(f){console.error(f),ue({title:"播放失败",text:f.toString(),icon:"error"})}}});n.push(r)}return n}var Nt=(e=>(e[e.full=0]="full",e[e.pure=1]="pure",e[e.fullUnique=2]="fullUnique",e[e.pureUnique=3]="pureUnique",e))(Nt||{});async function Di(e,t){if(t===0)return e;if(t===2)return Array.from(new Set(e));const n=[];for(const o of e){const s=o.replace(/\.[^.]+$/,"");t===1?n.push(s):t===3&&(n.includes(s)||n.push(s))}return n}var Xt=(e=>(e[e.unixPath=0]="unixPath",e[e.winPath=1]="winPath",e[e.unixParentPath=2]="unixParentPath",e[e.winParentPath=3]="winParentPath",e))(Xt||{});async function Ta(e,t,n){const o=n===1||n===3;let i=n===2||n===3?t.replace(/\/[^/]+$/,""):t;return i.startsWith("/")||(i="/"+i),o&&(i=i.replace(/\//g,"\\")),i}async function hw(e){return async(t,n)=>{const o=await zt(),s=await Bi(),i=e?"li[file_id].selected":"li[file_id]",r=s[0].querySelectorAll(i);if(!r.length){ue({title:"文件移动到同名目录",text:e?"当前目录没有选中文件":"当前目录没有文件",icon:"warning"});return}const{value:a}=await fe.fire({title:"文件移动到同名目录",text:e?`当前已选中${r.length}个文件,是否继续?`:`当前目录共有${r.length}个文件,是否继续?`,icon:"warning",showCancelButton:!0,confirmButtonText:"继续",cancelButtonText:"取消"});if(!!a){fe.fire({title:"文件移动到同名目录",html:"正在处理...",didOpen:()=>{fe.showLoading()}});for(let u=0;u<r.length;u++){const f=r[u],p=await Ko($(f));if(!p.fid)continue;const h=p.n,w=h.replace(/\.[^\.]+$/,""),C=`${u+1} / ${r.length} - `+Math.round(u/r.length*100)+"%";fe.update({html:`${C} 正在为文件「${h}」创建目录「${w}」`});const x=await $u(o,w);fe.update({html:`${C} 正在移动文件「${h}」到目录「${w}」`}),await Rg(x.cid,[p.fid]),await Bt(500)}fe.hideLoading(),fe.update({html:"处理完成",icon:"success"})}}}function mw(e,t){const n=[];for(let o=t?1:0;o<e.length;o++)n.push(e[o].file_name);return n}async function Du(e,t){const n=await aw(e),o=[];for(let s=0;s<e.length;s++){const i=n.get(e[s].parentId);if(!i)throw new Error(`无法获取文件 "${e[s].name}" 的上级目录路径!`);const r=mw(i,!0),a=Mi([...r,e[s].name],po.unix);o.push(await Ta(e[s],a,t))}return o}async function Nu(e){ue({text:"正在获取文件列表数据...",timer:0}),fe.showLoading();try{const t=await xu($s({cid:e.id,limit:1150}));console.log("[tree]",t);const n=`115-dir_list_data-${e.id}-${Mu(e.name)}.json`;oa(JSON.stringify(t),n),ue({text:`获取文件列表数据成功,已保存为 ${n}`,timer:0,icon:"success",showConfirmButton:!0})}catch(t){console.error(t),ue({text:`获取文件列表数据失败: ${t}`,timer:0,icon:"error",showCloseButton:!0})}finally{fe.hideLoading()}}function Ru(e){const t=e.target;e.key==="a"&&(e.ctrlKey||e.metaKey)&&t.select()}function Fu(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement}function gw(e){e.addEventListener("keydown",t=>{const n=t.target;Fu(n)&&Ru(t)})}const Ni=fe.mixin({toast:!0,position:"top-end",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,didOpen:e=>{e.addEventListener("mouseenter",fe.stopTimer),e.addEventListener("mouseleave",fe.resumeTimer)},customClass:"swal-toast"});async function ww(e,t){e.addEventListener("keydown",n=>{const o=n.target;if(!Fu(o))return;let s=!1;(t==="enter"&&n.key==="Enter"||t==="ctrl+enter"&&n.key==="Enter"&&n.ctrlKey||t==="meta+enter"&&n.key==="Enter"&&n.metaKey)&&(s=!0),s&&fe.clickConfirm()})}var Ma=(e=>(e.search="search",e.encode="encode",e.base64="base64",e.base64safe="base64safe",e.upper="upper",e.lower="lower",e.number="number",e.manual="manual",e))(Ma||{});const yw=[{label:"文件属性变量",items:[{key:"{dir_id}",label:"文件夹ID"},{key:"{file_id}",label:"文件ID"},{key:"{pick_code}",label:"提取码"},{key:"{pure_name}",label:"不含后缀的文件名"},{key:"{full_name}",label:"完整名称"},{key:"{file_suffix}",label:"文件后缀名"},{key:"{file_hash}",label:"文件hash"},{key:"{file_size}",label:"文件大小"},{key:"{file_path}",label:"文件路径"},{key:"{file_dir}",label:"文件目录路径"}]},{label:"高级变量",items:[{key:"{clouddrive_stream_url}",label:"CloudDrive链接(用于播放,目录链接是m3u)"},{key:"{clouddrive_down_url}",label:"CloudDrive文件链接"},{key:"{clouddrive_playlist_url}",label:"CloudDrive播放列表链接"},{key:"{user_agent}",label:"浏览器UA"}]},{label:"变量函数处理",memo:"支持多个函数,函数之间使用英文冒号分隔,如:{变量名:encode:base64}。调用顺序从左到右。",items:[{key:"{变量名:search}",label:"搜索链接"},{key:"{变量名:encode}",label:"url编码"},{key:"{变量名:base64}",label:"base64编码"},{key:"{变量名:base64safe}",label:"base64安全编码"},{key:"{变量名:upper}",label:"转大写"},{key:"{变量名:lower}",label:"转小写"},{key:"{变量名:number}",label:"转数字"},{key:"{变量名:manual}",label:"手动输入"}]}];function bw(e,t,n){const{names:o,position:s}=t;let i=[];return s==="first"?i=[...o,...e]:i=[...e,...o],n?Array.from(new Set(i)):i}async function Ri(e,t,n,o){var f;let s=t.url;const i={dir_id:"id",file_id:"id",pick_code:"pickCode",full_name:"name",file_suffix:"suffix",file_hash:"hash",file_size:"sizeBytes"},r=e.isFile,a=/{(\w+)(:\w+(:\w+)?)?}/g,u=s.match(a);if(u){const p=["file_path","file_dir","clouddrive_stream_url","clouddrive_down_url","clouddrive_playlist_url"];for(const h of u){const w=h.replace(/[{}]/g,"").split(":")[0],C=h.replace(/[{}]/g,"").replace(/^[^:]+:/,"");let x=((f=e[i[w]])==null?void 0:f.toString())||"",A="";switch(p.includes(w)&&(A=await Oa(e)),w){case"pure_name":r?x=e.name.replace(/\.[^.]+$/,""):x=e.name;break;case"file_path":x=A;break;case"file_dir":x=A.replace(/\/[^/]+$/,"");break;case"clouddrive_stream_url":r?x=await zo(n,A,Ci.download):x=await ra(n,A);break;case"clouddrive_down_url":x=await zo(n,A,Ci.download);break;case"clouddrive_playlist_url":let M="";r?M=A.replace(/\/[^/]+$/,""):M=A,x=await ra(n,M);break;case"user_agent":x=navigator.userAgent;break}if(x=x.toString(),C){let M=C.split(":");o&&(M=bw(M,o,!1)),console.log(`[buildCustomUrl] functions: ${C}, after merge: ${M.join(":")}`);for(const D of M)switch(D){case"search":x=Aa({search_value:x});break;case"encode":x=encodeURIComponent(x);break;case"base64":x=$c(x);break;case"base64safe":x=$c(x,!0);break;case"upper":x=x.toUpperCase();break;case"lower":x=x.toLowerCase();break;case"number":x=x.replace(/\D/g,"");break;case"manual":let{isConfirmed:O,value:I}=await fe.fire({title:"手动输入",text:"按下「Ctrl + 回车」或「Command + 回车」确认",input:"textarea",inputValue:x,showCancelButton:!0,inputValidator:H=>H?null:"输入不能为空!",didOpen:H=>{gw(H),ww(H,"meta+enter")}});if(!O)throw new Error("已取消手动输入。");if(I=(I==null?void 0:I.trim())||"",I==="")throw new Error("输入不能为空!");x=I;break}}s=s.replace(h,x)}}return t.mutation?await vw(s,e,t,n):s}async function vw(e,t,n,o){return await new Function("payload",n.mutation)({url:e,file:t,customUrl:n,cloudDriveConfig:o})}var bn=(e=>(e.search="search",e.play="play",e))(bn||{});const ju={search:"menu_custom_urls_for_search",play:"menu_custom_urls_for_play"};async function Jo(e){return await Ze.get(ju[e],[])}async function Uu(e,t){await Ze.set(ju[e],t)}function pt(e){return{enabled:!0,key:"",label:"",icon:"",memo:"",extraMemo:"",url:"",openInBackground:!1,...e}}var rn=(e=>(e.none="none",e.alt="alt",e.ctrl="ctrl",e.shift="shift",e.meta="meta",e))(rn||{});const Hu="ce_menu_config";function _w(e){return{enabled:!0,openInNewTab:!0,search:!0,play:!0,getDownloadUrl:!0,copyNames:!0,exportList:!1,...e}}function xw(e){return{enabled:!0,copyNames:!0,...e}}function Cw(e){return{enabled:!0,moveToSelfNameDir:!0,copyNames:!0,play:!0,...e}}function $w(e){return{enabled:!0,rename:!0,delete:!0,play:!0,copyNames:!0,move:!0,copy:!0,copyTo:!0,viewProp:!0,showSubFolderSize:!0,exportList:!1,...e}}function kw(e){return{enabled:!0,hideSelectionMenuLabel:!1,enableInSearch:!0,manageOfficialMenus:!1,keyToTriggerManual:"none",injectManualFuncPosition:"first",m3u8TempDir:".ce-m3u8-temp",[Le.listItemHover]:_w(e==null?void 0:e[Le.listItemHover]),[Le.listItemContext]:xw(e==null?void 0:e[Le.listItemContext]),[Le.selection]:Cw(e==null?void 0:e[Le.selection]),[Le.dirContext]:$w(e==null?void 0:e[Le.dirContext]),...e}}async function Yo(){const e=kw(),t=await Ze.get(Hu,e);return{...e,...t}}async function Sw(e){await Ze.set(Hu,e)}const cc=class{constructor(t){Ie(this,"menuType",Le.listItemHover);Ie(this,"injectDecider");Ie(this,"keyAttributeName","id");Ie(this,"key","");Ie(this,"label","");Ie(this,"icon","");Ie(this,"showIcon",!0);Ie(this,"title","");Ie(this,"onClick",async(t,n)=>{});Ie(this,"onMouseOver");Ie(this,"onMouseOut");Ie(this,"subItems",[]);Ie(this,"isDivider",!1);Ie(this,"menuItemTemplates",{[Le.dirContext]:{body:`<li id="{key}" class="ce-menu dir-context-menu">
<a href="javascript:;">{icon}<span>{label}</span></a>
</li>`,bodyForMulti:`<li id="{key}" class="ce-menu ce-menu-parent dir-context-menu">
{icon}<span class="ce-menu-trigger">{label}</span>
<div class="ce-menu-dropdown sub-items"></div>
</span>`,divider:'<li class="ce-menu-divider"></li>'},[Le.dirContextSub]:{body:`<span id="{key}" class="ce-menu dir-context-menu-sub sub-item">
{icon}<span>{label}</span>
</span>`,divider:'<span class="ce-menu-divider"></span>'},[Le.listItemContext]:{body:`<li id="{key}" class="ce-menu list-item-context-menu">
<a href="javascript:;">{icon}<span>{label}</span></a>
</li>`,bodyForMulti:`<li id="{key}" class="ce-menu ce-menu-parent list-item-context-menu">
{icon}<span class="ce-menu-trigger">{label}</span>
<div class="ce-menu-dropdown sub-items"></div>
</span>`,divider:'<li class="ce-menu-divider"></li>'},[Le.listItemContextSub]:{body:'<span id="{key}" class="ce-menu list-item-context-menu-sub sub-item">{label}</span>',divider:'<span class="ce-menu-divider"></span>'},[Le.listItemHover]:{body:`<a href="javascript:;" id="{key}" class="ce-menu list-item-hover-menu" style="">
{icon}<span>{label}</span>
</a>`,bodyForMulti:`<span class="ce-menu ce-menu-parent list-item-hover-menu">
{icon}<span class="ce-menu-trigger">{label}</span>
<div class="ce-menu-dropdown sub-items"></div>
</span>`,divider:'<a class="ce-menu-divider"></a>'},[Le.listItemHoverSub]:{body:`<a href="javascript:;" id="{key}" class="ce-menu list-item-hover-menu-sub" style="">
{icon}<span>{label}</span>
</a>`,divider:'<a class="ce-menu-divider"></a>'},[Le.selection]:{body:'<li id="{key}" class="ce-menu selection-menu">{icon}<span>{label}</span></li>',bodyForMulti:`<li class="ce-menu ce-menu-parent selection-menu">
{icon}<span class="ce-menu-trigger">{label}</span>
<div class="ce-menu-dropdown sub-items"></div>
</li>`,divider:'<li class="ce-menu-divider"></li>'},[Le.selectionSub]:{body:`<a href="javascript:;" id="{key}" class="ce-menu selection-menu-sub" style="">
{icon}<span>{label}</span>
</a>`,divider:'<a class="ce-menu-divider"></a>'}});t.menuType&&(this.menuType=t.menuType),t.injectDecider&&(this.injectDecider=t.injectDecider),t.isDivider&&(this.isDivider=!0),t.key&&(this.key=t.key),t.label&&(this.label=t.label),t.icon&&(this.icon=t.icon),t.showIcon!==void 0&&(this.showIcon=t.showIcon),t.title&&(this.title=t.title),t.onClick&&(this.onClick=t.onClick),t.onMouseOver&&(this.onMouseOver=t.onMouseOver),t.onMouseOut&&(this.onMouseOut=t.onMouseOut),t.subItems&&(this.subItems=t.subItems),t.key&&(this.key=t.key),t.label&&(this.label=t.label),t.onClick&&(this.onClick=t.onClick)}async decideInject(t){return this.injectDecider?await this.injectDecider(this,t):!0}async render(){if(!this.menuType)throw new Error("未指定菜单类型");const t=this.menuItemTemplates[this.menuType];if(!t)throw new Error(`未找到菜单模板:${this.menuType}`);if(this.isDivider){if(!t.divider)throw new Error("未定义模版的divider内容!");const r=document.createElement("div");return r.innerHTML=t.divider,r.firstElementChild}let n=t.body;if(this.subItems.length>0){if(!t.bodyForMulti)throw new Error("未找到 bodyFormMulti 模版");n=t.bodyForMulti}const o=document.createElement("div");let s="";this.icon&&this.showIcon&&(this.icon.match(/^(http|https|data:image)/)?s=`<img class="ce-menu-icon" src="${this.icon}" />`:this.icon.match(/^data-text:/)?s=`<i class="ce-menu-icon">${this.icon.replace(/^data-text:/,"")}</i>`:s=`<i class="ce-menu-icon ${this.icon}"></i>`),o.innerHTML=n.replace(/{key}/g,this.key).replace(/{label}/g,this.label).replace(/{icon}/g,s);const i=o.firstElementChild;if(i.setAttribute("title",this.title||""),this.onClick&&i.addEventListener("click",async r=>{this.onClick(this,r)}),this.onMouseOver&&i.addEventListener("mouseover",async r=>{this.onMouseOver&&this.onMouseOver(this,r)}),this.onMouseOut&&i.addEventListener("mouseout",async r=>{this.onMouseOut&&this.onMouseOut(this,r)}),this.subItems.length>0){const r=i.querySelector(".sub-items"),a=[];for(const u of this.subItems){const f=await u.render();a.push(f)}r==null||r.append(...a)}return i}async closeMenu(){unsafeWindow.Core.FileMenu.HideRight(),document.dispatchEvent(new CustomEvent(cc.EVENT_CLOSE_MENU,{detail:{menu:this}}))}async decorateContainer(t){}};let qt=cc;Ie(qt,"EVENT_CLOSE_MENU","__closeMenu");async function Fi(e,t){t.stopPropagation(),t.preventDefault();const n=t.target,o=$(n).closest(".ce-menu-parent"),s=o.find(".ce-menu-dropdown");o.addClass("ce-menu-dropdown-opened"),s.addClass("ce-menu-dropdown-active")}async function ji(e,t){t.stopPropagation(),t.preventDefault();const n=t.target,o=$(n).closest(".ce-menu-parent"),s=o.find(".ce-menu-dropdown");o.removeClass("ce-menu-dropdown-opened"),s.removeClass("ce-menu-dropdown-active")}class At extends qt{constructor(n){super(n);Ie(this,"menuType",Le.dirContext);this.onMouseOver=Fi,this.onMouseOut=ji}}class Ew extends qt{constructor(){super(...arguments);Ie(this,"menuType",Le.dirContextSub)}}class La extends qt{constructor(n){super(n);Ie(this,"menuType",Le.listItemContext);this.onMouseOver=Fi,this.onMouseOut=ji}}class Ui extends qt{constructor(n){super(n);Ie(this,"menuType",Le.listItemHover);this.onMouseOver=Fi,this.onMouseOut=ji}}class Is extends qt{constructor(){super(...arguments);Ie(this,"menuType",Le.listItemHoverSub)}}class Ba extends qt{constructor(n){super(n);Ie(this,"menuType",Le.selection);this.onMouseOver=Fi,this.onMouseOut=ji}}class Hi extends qt{constructor(){super(...arguments);Ie(this,"menuType",Le.selectionSub)}}class zi extends qt{constructor(){super(...arguments);Ie(this,"isDivider",!0)}}class Aw extends zi{}class Ow extends zi{}class zu extends zi{}class qu extends zi{}class qi{constructor(t){Ie(this,"items");Ie(this,"siblingSelector");Ie(this,"position");Ie(this,"useObserver",!0);Ie(this,"observeTarget",document.body);Ie(this,"disposeObserverAfterInjection",!0);Ie(this,"menuType");Ie(this,"_observer");Ie(this,"injectDecider");t.menuType&&(this.menuType=t.menuType),t.injectDecider&&(this.injectDecider=t.injectDecider),this.items=t.items,this.siblingSelector=t.siblingSelector,this.position=t.position,this.useObserver=t.useObserver,this.observeTarget=t.observeTarget,this.disposeObserverAfterInjection=t.disposeObserverAfterInjection}async createObserver(){return new MutationObserver(async([n])=>{n.type==="childList"&&await this.handleChildListMutation(n)})}async observe(){if(this._observer=await this.createObserver(),!this._observer)return;const t=await this.getObserveTarget();!t||this.startObserver(t)}async startObserver(t){!this._observer||this._observer.observe(t,{childList:!0})}async disposeObserver(){this.disposeObserverAfterInjection&&this._observer&&this._observer.disconnect()}async getObserveTarget(){return typeof this.observeTarget=="string"?(await co(this.observeTarget,800,6048e5))[0]:this.observeTarget}async isMutationMatch(t){const n=t.addedNodes[0];if(n&&n.nodeType!==Node.ELEMENT_NODE)return!1;switch(this.menuType,Le.dirContext,this.menuType){case Le.listItemHover:return!0;case Le.listItemContext:return n&&n.classList.contains("context-menu")&&!!n.querySelector('[val="report"]');case Le.selection:return!0;case Le.dirContext:return n&&n.classList.contains("context-menu")&&!!n.querySelector('[val="upload"]');default:return!1}}async handleChildListMutation(t){if(!await this.isMutationMatch(t))return;const n=await this.getContainers(t);await this.perform(n)}async perform(t){for(const n of t)await this.injectToContainer(n)}async getSibling(t){return t.querySelector(this.siblingSelector)}async getContainers(t){let n=[];const o=t.addedNodes[0];switch(this.menuType){case Le.listItemHover:document.querySelectorAll("#js_data_list .list-contents > ul:not([ce-done]) > li .file-opr").forEach(s=>{n.push(s)});break;case Le.listItemContext:n=[o];break;case Le.selection:document.querySelectorAll("#js_top_panel_box #js_operate_box").forEach(s=>{n.push(s)});break;case Le.dirContext:n=[o];break}return n}async shouldInjectMenuItem(t,n){return await n.decideInject(t)?await this.decideInject(n,t):!1}async decideInject(t,n){return this.injectDecider?await this.injectDecider(t,n):!0}async injectToContainer(t){const n=await this.getSibling(t);if(!n)return;let o=this.items.slice();this.position===fo.after&&(o=o.reverse());for(let s=0;s<o.length;s++){const i=o[s];if(!await this.shouldInjectMenuItem(t,i))continue;const r=await i.render();this.position===fo.before?n.insertAdjacentElement("beforebegin",r):n.insertAdjacentElement("afterend",r),await i.decorateContainer(t)}}async isFileContainer(t){return!!t.getAttribute("file_id")}async isDirContainer(t){return!!t.getAttribute("cate_id")}async inject(){if(!!this.menuType)if(this.useObserver)await this.observe();else{const t=await this.getObserveTarget();if(!t)return;await this.injectToContainer(t)}}}class Iw extends qi{constructor(){super(...arguments);Ie(this,"menuType",Le.dirContext);Ie(this,"useObserver",!0);Ie(this,"observeTarget",document.body);Ie(this,"disposeObserverAfterInjection",!0)}}class Pw extends qi{constructor(){super(...arguments);Ie(this,"menuType",Le.listItemContext)}}class Tw extends qi{constructor(n){super(n);Ie(this,"menuType",Le.listItemHover);Ie(this,"useObserver",!0);Ie(this,"observeTarget","#js_data_list");Ie(this,"disposeObserverAfterInjection",!1);this.handleLoadAll()}async inject(){const n=document.querySelector("#js_data_list");if(n){const o=n.querySelectorAll(".list-contents > ul:not([ce-done]) > li .file-opr");o.length&&await this.perform(Array.from(o))}super.inject()}async handleLoadAll(){if(window.top===window.self)return;const n=document.querySelector("#js_pagination_box");if(!n){console.warn("[ListItemHoverMenuInjector.handleLoadAll] 未找到「#js_pagination_box」元素");return}function o(s){const i=document.querySelector("#js_data_list .list-contents > ul > li");!i||i.querySelector(".ce-menu")||s(!0)}n.addEventListener("click",async s=>{s.preventDefault(),s.stopPropagation();const i=s.target;let r=!1;if((i.getAttribute("menu")==="load_all_file"||i.closest('[menu="load_all_file"]'))&&(r=!0),!r)return;console.log("[ListItemHoverMenuInjector.handleLoadAll] 点击了「加载全部」按钮"),await _s(o,500,3e5);const a=document.querySelector("#js_data_list .list-contents > ul");a==null||a.removeAttribute("ce-done");const u=document.querySelector("#js_data_list");if(u){const f=".list-contents > ul:not([ce-done]) > li .file-opr";if(!document.querySelector(f)){const h=await Yo();await Bu(h)}const p=u.querySelectorAll(f);p.length&&await this.perform(Array.from(p))}})}async perform(n){await super.perform(n);const o=document.querySelector("#js_data_list .list-contents > ul");o==null||o.setAttribute("ce-done","")}}class Mw extends qi{constructor(){super(...arguments);Ie(this,"menuType",Le.selection);Ie(this,"useObserver",!0);Ie(this,"observeTarget","#js_top_panel_box #js_operate_box");Ie(this,"disposeObserverAfterInjection",!1)}}async function Da(e,t){return!!$(t).closest("li").attr("cate_id")}async function Lw(e,t){const n=$(t).closest("li");if(n.attr("cate_id")||n.attr("iv")==="1")return!0;const o=n.attr("ico");return o?bm(o)||_m(o)||vm(o):!1}function Un(e,t){const n=Object.create(null),o=e.split(",");for(let s=0;s<o.length;s++)n[o[s]]=!0;return t?s=>!!n[s.toLowerCase()]:s=>!!n[s]}function vn(e){if(xe(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],s=Xe(o)?Rw(o):vn(o);if(s)for(const i in s)t[i]=s[i]}return t}else{if(Xe(e))return e;if(Ve(e))return e}}const Bw=/;(?![^(]*\))/g,Dw=/:([^]+)/,Nw=/\/\*.*?\*\//gs;function Rw(e){const t={};return e.replace(Nw,"").split(Bw).forEach(n=>{if(n){const o=n.split(Dw);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Ye(e){let t="";if(Xe(e))t=e;else if(xe(e))for(let n=0;n<e.length;n++){const o=Ye(e[n]);o&&(t+=o+" ")}else if(Ve(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Fw(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Xe(t)&&(e.class=Ye(t)),n&&(e.style=vn(n)),e}const jw="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",Uw="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",Hw=Un(jw),zw=Un(Uw),qw=Un("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Vu(e){return!!e||e===""}function Vw(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=Ps(e[o],t[o]);return n}function Ps(e,t){if(e===t)return!0;let n=Gu(e),o=Gu(t);if(n||o)return n&&o?e.getTime()===t.getTime():!1;if(n=Ms(e),o=Ms(t),n||o)return e===t;if(n=xe(e),o=xe(t),n||o)return n&&o?Vw(e,t):!1;if(n=Ve(e),o=Ve(t),n||o){if(!n||!o)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const r in e){const a=e.hasOwnProperty(r),u=t.hasOwnProperty(r);if(a&&!u||!a&&u||!Ps(e[r],t[r]))return!1}}return String(e)===String(t)}function Na(e,t){return e.findIndex(n=>Ps(n,t))}const we=e=>Xe(e)?e:e==null?"":xe(e)||Ve(e)&&(e.toString===Ju||!Pe(e.toString))?JSON.stringify(e,Wu,2):String(e),Wu=(e,t)=>t&&t.__v_isRef?Wu(e,t.value):go(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,s])=>(n[`${o} =>`]=s,n),{})}:Qo(t)?{[`Set(${t.size})`]:[...t.values()]}:Ve(t)&&!xe(t)&&!Yu(t)?String(t):t,We=Object.freeze({}),Xo=Object.freeze([]),Ot=()=>{},Ku=()=>!1,Ww=/^on[^a-z]/,Ts=e=>Ww.test(e),Vi=e=>e.startsWith("onUpdate:"),st=Object.assign,Ra=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Kw=Object.prototype.hasOwnProperty,Re=(e,t)=>Kw.call(e,t),xe=Array.isArray,go=e=>Ls(e)==="[object Map]",Qo=e=>Ls(e)==="[object Set]",Gu=e=>Ls(e)==="[object Date]",Pe=e=>typeof e=="function",Xe=e=>typeof e=="string",Ms=e=>typeof e=="symbol",Ve=e=>e!==null&&typeof e=="object",Wi=e=>Ve(e)&&Pe(e.then)&&Pe(e.catch),Ju=Object.prototype.toString,Ls=e=>Ju.call(e),Fa=e=>Ls(e).slice(8,-1),Yu=e=>Ls(e)==="[object Object]",ja=e=>Xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ki=Un(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Gw=Un("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Gi=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Jw=/-(\w)/g,an=Gi(e=>e.replace(Jw,(t,n)=>n?n.toUpperCase():"")),Yw=/\B([A-Z])/g,_n=Gi(e=>e.replace(Yw,"-$1").toLowerCase()),wo=Gi(e=>e.charAt(0).toUpperCase()+e.slice(1)),yo=Gi(e=>e?`on${wo(e)}`:""),Bs=(e,t)=>!Object.is(e,t),Zo=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ji=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Yi=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Xw=e=>{const t=Xe(e)?Number(e):NaN;return isNaN(t)?e:t};let Xu;const Qu=()=>Xu||(Xu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ua(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Qt;class Qw{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Qt,!t&&Qt&&(this.index=(Qt.scopes||(Qt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Qt;try{return Qt=this,t()}finally{Qt=n}}else Ua("cannot run an inactive effect scope.")}on(){Qt=this}off(){Qt=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function Zw(e,t=Qt){t&&t.active&&t.effects.push(e)}function ey(){return Qt}const Ha=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Zu=e=>(e.w&Hn)>0,ed=e=>(e.n&Hn)>0,ty=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Hn},ny=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const s=t[o];Zu(s)&&!ed(s)?s.delete(e):t[n++]=s,s.w&=~Hn,s.n&=~Hn}t.length=n}},Xi=new WeakMap;let Ds=0,Hn=1;const za=30;let yt;const bo=Symbol("iterate"),qa=Symbol("Map key iterate");class Va{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Zw(this,o)}run(){if(!this.active)return this.fn();let t=yt,n=zn;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=yt,yt=this,zn=!0,Hn=1<<++Ds,Ds<=za?ty(this):td(this),this.fn()}finally{Ds<=za&&ny(this),Hn=1<<--Ds,yt=this.parent,zn=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){yt===this?this.deferStop=!0:this.active&&(td(this),this.onStop&&this.onStop(),this.active=!1)}}function td(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let zn=!0;const nd=[];function vo(){nd.push(zn),zn=!1}function _o(){const e=nd.pop();zn=e===void 0?!0:e}function It(e,t,n){if(zn&&yt){let o=Xi.get(e);o||Xi.set(e,o=new Map);let s=o.get(n);s||o.set(n,s=Ha()),od(s,{effect:yt,target:e,type:t,key:n})}}function od(e,t){let n=!1;Ds<=za?ed(e)||(e.n|=Hn,n=!Zu(e)):n=!e.has(yt),n&&(e.add(yt),yt.deps.push(e),yt.onTrack&&yt.onTrack(Object.assign({effect:yt},t)))}function xn(e,t,n,o,s,i){const r=Xi.get(e);if(!r)return;let a=[];if(t==="clear")a=[...r.values()];else if(n==="length"&&xe(e)){const f=Number(o);r.forEach((p,h)=>{(h==="length"||h>=f)&&a.push(p)})}else switch(n!==void 0&&a.push(r.get(n)),t){case"add":xe(e)?ja(n)&&a.push(r.get("length")):(a.push(r.get(bo)),go(e)&&a.push(r.get(qa)));break;case"delete":xe(e)||(a.push(r.get(bo)),go(e)&&a.push(r.get(qa)));break;case"set":go(e)&&a.push(r.get(bo));break}const u={target:e,type:t,key:n,newValue:o,oldValue:s,oldTarget:i};if(a.length===1)a[0]&&Wa(a[0],u);else{const f=[];for(const p of a)p&&f.push(...p);Wa(Ha(f),u)}}function Wa(e,t){const n=xe(e)?e:[...e];for(const o of n)o.computed&&sd(o,t);for(const o of n)o.computed||sd(o,t)}function sd(e,t){(e!==yt||e.allowRecurse)&&(e.onTrigger&&e.onTrigger(st({effect:e},t)),e.scheduler?e.scheduler():e.run())}function oy(e,t){var n;return(n=Xi.get(e))===null||n===void 0?void 0:n.get(t)}const sy=Un("__proto__,__v_isRef,__isVue"),id=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ms)),iy=Qi(),ry=Qi(!1,!0),ay=Qi(!0),ly=Qi(!0,!0),rd=cy();function cy(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=Be(this);for(let i=0,r=this.length;i<r;i++)It(o,"get",i+"");const s=o[t](...n);return s===-1||s===!1?o[t](...n.map(Be)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){vo();const o=Be(this)[t].apply(this,n);return _o(),o}}),e}function uy(e){const t=Be(this);return It(t,"has",e),t.hasOwnProperty(e)}function Qi(e=!1,t=!1){return function(o,s,i){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&i===(e?t?yd:wd:t?gd:md).get(o))return o;const r=xe(o);if(!e){if(r&&Re(rd,s))return Reflect.get(rd,s,i);if(s==="hasOwnProperty")return uy}const a=Reflect.get(o,s,i);return(Ms(s)?id.has(s):sy(s))||(e||It(o,"get",s),t)?a:it(a)?r&&ja(s)?a:a.value:Ve(a)?e?bd(a):rr(a):a}}const dy=ad(),fy=ad(!0);function ad(e=!1){return function(n,o,s,i){let r=n[o];if(Vn(r)&&it(r)&&!it(s))return!1;if(!e&&(!lr(s)&&!Vn(s)&&(r=Be(r),s=Be(s)),!xe(n)&&it(r)&&!it(s)))return r.value=s,!0;const a=xe(n)&&ja(o)?Number(o)<n.length:Re(n,o),u=Reflect.set(n,o,s,i);return n===Be(i)&&(a?Bs(s,r)&&xn(n,"set",o,s,r):xn(n,"add",o,s)),u}}function py(e,t){const n=Re(e,t),o=e[t],s=Reflect.deleteProperty(e,t);return s&&n&&xn(e,"delete",t,void 0,o),s}function hy(e,t){const n=Reflect.has(e,t);return(!Ms(t)||!id.has(t))&&It(e,"has",t),n}function my(e){return It(e,"iterate",xe(e)?"length":bo),Reflect.ownKeys(e)}const ld={get:iy,set:dy,deleteProperty:py,has:hy,ownKeys:my},cd={get:ay,set(e,t){return Ua(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return Ua(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},gy=st({},ld,{get:ry,set:fy}),wy=st({},cd,{get:ly}),Ka=e=>e,Zi=e=>Reflect.getPrototypeOf(e);function er(e,t,n=!1,o=!1){e=e.__v_raw;const s=Be(e),i=Be(t);n||(t!==i&&It(s,"get",t),It(s,"get",i));const{has:r}=Zi(s),a=o?Ka:n?Ga:Ns;if(r.call(s,t))return a(e.get(t));if(r.call(s,i))return a(e.get(i));e!==s&&e.get(t)}function tr(e,t=!1){const n=this.__v_raw,o=Be(n),s=Be(e);return t||(e!==s&&It(o,"has",e),It(o,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function nr(e,t=!1){return e=e.__v_raw,!t&&It(Be(e),"iterate",bo),Reflect.get(e,"size",e)}function ud(e){e=Be(e);const t=Be(this);return Zi(t).has.call(t,e)||(t.add(e),xn(t,"add",e,e)),this}function dd(e,t){t=Be(t);const n=Be(this),{has:o,get:s}=Zi(n);let i=o.call(n,e);i?hd(n,o,e):(e=Be(e),i=o.call(n,e));const r=s.call(n,e);return n.set(e,t),i?Bs(t,r)&&xn(n,"set",e,t,r):xn(n,"add",e,t),this}function fd(e){const t=Be(this),{has:n,get:o}=Zi(t);let s=n.call(t,e);s?hd(t,n,e):(e=Be(e),s=n.call(t,e));const i=o?o.call(t,e):void 0,r=t.delete(e);return s&&xn(t,"delete",e,void 0,i),r}function pd(){const e=Be(this),t=e.size!==0,n=go(e)?new Map(e):new Set(e),o=e.clear();return t&&xn(e,"clear",void 0,void 0,n),o}function or(e,t){return function(o,s){const i=this,r=i.__v_raw,a=Be(r),u=t?Ka:e?Ga:Ns;return!e&&It(a,"iterate",bo),r.forEach((f,p)=>o.call(s,u(f),u(p),i))}}function sr(e,t,n){return function(...o){const s=this.__v_raw,i=Be(s),r=go(i),a=e==="entries"||e===Symbol.iterator&&r,u=e==="keys"&&r,f=s[e](...o),p=n?Ka:t?Ga:Ns;return!t&&It(i,"iterate",u?qa:bo),{next(){const{value:h,done:w}=f.next();return w?{value:h,done:w}:{value:a?[p(h[0]),p(h[1])]:p(h),done:w}},[Symbol.iterator](){return this}}}}function qn(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${wo(e)} operation ${n}failed: target is readonly.`,Be(this))}return e==="delete"?!1:this}}function yy(){const e={get(i){return er(this,i)},get size(){return nr(this)},has:tr,add:ud,set:dd,delete:fd,clear:pd,forEach:or(!1,!1)},t={get(i){return er(this,i,!1,!0)},get size(){return nr(this)},has:tr,add:ud,set:dd,delete:fd,clear:pd,forEach:or(!1,!0)},n={get(i){return er(this,i,!0)},get size(){return nr(this,!0)},has(i){return tr.call(this,i,!0)},add:qn("add"),set:qn("set"),delete:qn("delete"),clear:qn("clear"),forEach:or(!0,!1)},o={get(i){return er(this,i,!0,!0)},get size(){return nr(this,!0)},has(i){return tr.call(this,i,!0)},add:qn("add"),set:qn("set"),delete:qn("delete"),clear:qn("clear"),forEach:or(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=sr(i,!1,!1),n[i]=sr(i,!0,!1),t[i]=sr(i,!1,!0),o[i]=sr(i,!0,!0)}),[e,n,t,o]}const[by,vy,_y,xy]=yy();function ir(e,t){const n=t?e?xy:_y:e?vy:by;return(o,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(Re(n,s)&&s in o?n:o,s,i)}const Cy={get:ir(!1,!1)},$y={get:ir(!1,!0)},ky={get:ir(!0,!1)},Sy={get:ir(!0,!0)};function hd(e,t,n){const o=Be(n);if(o!==n&&t.call(e,o)){const s=Fa(e);console.warn(`Reactive ${s} contains both the raw and reactive versions of the same object${s==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const md=new WeakMap,gd=new WeakMap,wd=new WeakMap,yd=new WeakMap;function Ey(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ay(e){return e.__v_skip||!Object.isExtensible(e)?0:Ey(Fa(e))}function rr(e){return Vn(e)?e:ar(e,!1,ld,Cy,md)}function Oy(e){return ar(e,!1,gy,$y,gd)}function bd(e){return ar(e,!0,cd,ky,wd)}function es(e){return ar(e,!0,wy,Sy,yd)}function ar(e,t,n,o,s){if(!Ve(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const r=Ay(e);if(r===0)return e;const a=new Proxy(e,r===2?o:n);return s.set(e,a),a}function xo(e){return Vn(e)?xo(e.__v_raw):!!(e&&e.__v_isReactive)}function Vn(e){return!!(e&&e.__v_isReadonly)}function lr(e){return!!(e&&e.__v_isShallow)}function cr(e){return xo(e)||Vn(e)}function Be(e){const t=e&&e.__v_raw;return t?Be(t):e}function vd(e){return Ji(e,"__v_skip",!0),e}const Ns=e=>Ve(e)?rr(e):e,Ga=e=>Ve(e)?bd(e):e;function _d(e){zn&&yt&&(e=Be(e),od(e.dep||(e.dep=Ha()),{target:e,type:"get",key:"value"}))}function xd(e,t){e=Be(e);const n=e.dep;n&&Wa(n,{target:e,type:"set",key:"value",newValue:t})}function it(e){return!!(e&&e.__v_isRef===!0)}function he(e){return Iy(e,!1)}function Iy(e,t){return it(e)?e:new Py(e,t)}class Py{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Be(t),this._value=n?t:Ns(t)}get value(){return _d(this),this._value}set value(t){const n=this.__v_isShallow||lr(t)||Vn(t);t=n?t:Be(t),Bs(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ns(t),xd(this,t))}}function de(e){return it(e)?e.value:e}const Ty={get:(e,t,n)=>de(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const s=e[t];return it(s)&&!it(n)?(s.value=n,!0):Reflect.set(e,t,n,o)}};function Cd(e){return xo(e)?e:new Proxy(e,Ty)}function My(e){cr(e)||console.warn("toRefs() expects a reactive object but received a plain one.");const t=xe(e)?new Array(e.length):{};for(const n in e)t[n]=By(e,n);return t}class Ly{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return oy(Be(this._object),this._key)}}function By(e,t,n){const o=e[t];return it(o)?o:new Ly(e,t,n)}var $d;class Dy{constructor(t,n,o,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[$d]=!1,this._dirty=!0,this.effect=new Va(t,()=>{this._dirty||(this._dirty=!0,xd(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=o}get value(){const t=Be(this);return _d(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}$d="__v_isReadonly";function Ny(e,t,n=!1){let o,s;const i=Pe(e);i?(o=e,s=()=>{console.warn("Write operation failed: computed value is readonly")}):(o=e.get,s=e.set);const r=new Dy(o,s,i||!s,n);return t&&!n&&(r.effect.onTrack=t.onTrack,r.effect.onTrigger=t.onTrigger),r}const Co=[];function Rs(e){Co.push(e)}function Fs(){Co.pop()}function re(e,...t){vo();const n=Co.length?Co[Co.length-1].component:null,o=n&&n.appContext.config.warnHandler,s=Ry();if(o)Cn(o,n,11,[e+t.join(""),n&&n.proxy,s.map(({vnode:i})=>`at <${Cr(n,i.type)}>`).join(`
`),s]);else{const i=[`[Vue warn]: ${e}`,...t];s.length&&i.push(`
`,...Fy(s)),console.warn(...i)}_o()}function Ry(){let e=Co[Co.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function Fy(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
`],...jy(n))}),t}function jy({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,s=` at <${Cr(e.component,e.type,o)}`,i=">"+n;return e.props?[s,...Uy(e.props),i]:[s+i]}function Uy(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...kd(o,e[o]))}),n.length>3&&t.push(" ..."),t}function kd(e,t,n){return Xe(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:it(t)?(t=kd(e,Be(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Pe(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Be(t),n?t:[`${e}=`,t])}function Hy(e,t){e!==void 0&&(typeof e!="number"?re(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&re(`${t} is NaN - the duration expression might be incorrect.`))}const Ja={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",[0]:"setup function",[1]:"render function",[2]:"watcher getter",[3]:"watcher callback",[4]:"watcher cleanup function",[5]:"native event handler",[6]:"component event handler",[7]:"vnode hook",[8]:"directive hook",[9]:"transition hook",[10]:"app errorHandler",[11]:"app warnHandler",[12]:"ref function",[13]:"async component loader",[14]:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function Cn(e,t,n,o){let s;try{s=o?e(...o):e()}catch(i){js(i,t,n)}return s}function Zt(e,t,n,o){if(Pe(e)){const i=Cn(e,t,n,o);return i&&Wi(i)&&i.catch(r=>{js(r,t,n)}),i}const s=[];for(let i=0;i<e.length;i++)s.push(Zt(e[i],t,n,o));return s}function js(e,t,n,o=!0){const s=t?t.vnode:null;if(t){let i=t.parent;const r=t.proxy,a=Ja[n];for(;i;){const f=i.ec;if(f){for(let p=0;p<f.length;p++)if(f[p](e,r,a)===!1)return}i=i.parent}const u=t.appContext.config.errorHandler;if(u){Cn(u,null,10,[e,r,a]);return}}zy(e,n,s,o)}function zy(e,t,n,o=!0){{const s=Ja[t];if(n&&Rs(n),re(`Unhandled error${s?` during execution of ${s}`:""}`),n&&Fs(),o)throw e;console.error(e)}}let Us=!1,Ya=!1;const mt=[];let ln=0;const ts=[];let cn=null,Wn=0;const Sd=Promise.resolve();let Xa=null;const qy=100;function Hs(e){const t=Xa||Sd;return e?t.then(this?e.bind(this):e):t}function Vy(e){let t=ln+1,n=mt.length;for(;t<n;){const o=t+n>>>1;zs(mt[o])<e?t=o+1:n=o}return t}function ur(e){(!mt.length||!mt.includes(e,Us&&e.allowRecurse?ln+1:ln))&&(e.id==null?mt.push(e):mt.splice(Vy(e.id),0,e),Ed())}function Ed(){!Us&&!Ya&&(Ya=!0,Xa=Sd.then(Id))}function Wy(e){const t=mt.indexOf(e);t>ln&&mt.splice(t,1)}function Qa(e){xe(e)?ts.push(...e):(!cn||!cn.includes(e,e.allowRecurse?Wn+1:Wn))&&ts.push(e),Ed()}function Ad(e,t=Us?ln+1:0){for(e=e||new Map;t<mt.length;t++){const n=mt[t];if(n&&n.pre){if(Za(e,n))continue;mt.splice(t,1),t--,n()}}}function Od(e){if(ts.length){const t=[...new Set(ts)];if(ts.length=0,cn){cn.push(...t);return}for(cn=t,e=e||new Map,cn.sort((n,o)=>zs(n)-zs(o)),Wn=0;Wn<cn.length;Wn++)Za(e,cn[Wn])||cn[Wn]();cn=null,Wn=0}}const zs=e=>e.id==null?1/0:e.id,Ky=(e,t)=>{const n=zs(e)-zs(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Id(e){Ya=!1,Us=!0,e=e||new Map,mt.sort(Ky);const t=n=>Za(e,n);try{for(ln=0;ln<mt.length;ln++){const n=mt[ln];if(n&&n.active!==!1){if(t(n))continue;Cn(n,null,14)}}}finally{ln=0,mt.length=0,Od(e),Us=!1,Xa=null,(mt.length||ts.length)&&Id(e)}}function Za(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>qy){const o=t.ownerInstance,s=o&&$l(o.type);return re(`Maximum recursive updates exceeded${s?` in component <${s}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}else e.set(t,n+1)}}let $o=!1;const ns=new Set;Qu().__VUE_HMR_RUNTIME__={createRecord:el(Pd),rerender:el(Yy),reload:el(Xy)};const ko=new Map;function Gy(e){const t=e.type.__hmrId;let n=ko.get(t);n||(Pd(t,e.type),n=ko.get(t)),n.instances.add(e)}function Jy(e){ko.get(e.type.__hmrId).instances.delete(e)}function Pd(e,t){return ko.has(e)?!1:(ko.set(e,{initialDef:qs(t),instances:new Set}),!0)}function qs(e){return _f(e)?e.__vccOpts:e}function Yy(e,t){const n=ko.get(e);!n||(n.initialDef.render=t,[...n.instances].forEach(o=>{t&&(o.render=t,qs(o.type).render=t),o.renderCache=[],$o=!0,o.update(),$o=!1}))}function Xy(e,t){const n=ko.get(e);if(!n)return;t=qs(t),Td(n.initialDef,t);const o=[...n.instances];for(const s of o){const i=qs(s.type);ns.has(i)||(i!==n.initialDef&&Td(i,t),ns.add(i)),s.appContext.optionsCache.delete(s.type),s.ceReload?(ns.add(i),s.ceReload(t.styles),ns.delete(i)):s.parent?ur(s.parent.update):s.appContext.reload?s.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}Qa(()=>{for(const s of o)ns.delete(qs(s.type))})}function Td(e,t){st(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function el(e){return(t,n)=>{try{return e(t,n)}catch(o){console.error(o),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let un,Vs=[],tl=!1;function Ws(e,...t){un?un.emit(e,...t):tl||Vs.push({event:e,args:t})}function Md(e,t){var n,o;un=e,un?(un.enabled=!0,Vs.forEach(({event:s,args:i})=>un.emit(s,...i)),Vs=[]):typeof window<"u"&&window.HTMLElement&&!(!((o=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||o===void 0)&&o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{Md(i,t)}),setTimeout(()=>{un||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,tl=!0,Vs=[])},3e3)):(tl=!0,Vs=[])}function Qy(e,t){Ws("app:init",e,t,{Fragment:Ne,Text:Zs,Comment:vt,Static:ei})}function Zy(e){Ws("app:unmount",e)}const eb=nl("component:added"),Ld=nl("component:updated"),tb=nl("component:removed"),nb=e=>{un&&typeof un.cleanupBuffer=="function"&&!un.cleanupBuffer(e)&&tb(e)};function nl(e){return t=>{Ws(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const ob=Bd("perf:start"),sb=Bd("perf:end");function Bd(e){return(t,n,o)=>{Ws(e,t.appContext.app,t.uid,t,n,o)}}function ib(e,t,n){Ws("component:emit",e.appContext.app,e,t,n)}function rb(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||We;{const{emitsOptions:p,propsOptions:[h]}=e;if(p)if(!(t in p))(!h||!(yo(t)in h))&&re(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${yo(t)}" prop.`);else{const w=p[t];Pe(w)&&(w(...n)||re(`Invalid event arguments: event validation failed for event "${t}".`))}}let s=n;const i=t.startsWith("update:"),r=i&&t.slice(7);if(r&&r in o){const p=`${r==="modelValue"?"model":r}Modifiers`,{number:h,trim:w}=o[p]||We;w&&(s=n.map(C=>Xe(C)?C.trim():C)),h&&(s=n.map(Yi))}ib(e,t,s);{const p=t.toLowerCase();p!==t&&o[yo(p)]&&re(`Event "${p}" is emitted in component ${Cr(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${_n(t)}" instead of "${t}".`)}let a,u=o[a=yo(t)]||o[a=yo(an(t))];!u&&i&&(u=o[a=yo(_n(t))]),u&&Zt(u,e,6,s);const f=o[a+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Zt(f,e,6,s)}}function Dd(e,t,n=!1){const o=t.emitsCache,s=o.get(e);if(s!==void 0)return s;const i=e.emits;let r={},a=!1;if(!Pe(e)){const u=f=>{const p=Dd(f,t,!0);p&&(a=!0,st(r,p))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!i&&!a?(Ve(e)&&o.set(e,null),null):(xe(i)?i.forEach(u=>r[u]=null):st(r,i),Ve(e)&&o.set(e,r),r)}function dr(e,t){return!e||!Ts(t)?!1:(t=t.slice(2).replace(/Once$/,""),Re(e,t[0].toLowerCase()+t.slice(1))||Re(e,_n(t))||Re(e,t))}let lt=null,fr=null;function pr(e){const t=lt;return lt=e,fr=e&&e.type.__scopeId||null,t}function ab(e){fr=e}function lb(){fr=null}const cb=e=>Ke;function Ke(e,t=lt,n){if(!t||e._n)return e;const o=(...s)=>{o._d&&pf(-1);const i=pr(t);let r;try{r=e(...s)}finally{pr(i),o._d&&pf(1)}return Ld(t),r};return o._n=!0,o._c=!0,o._d=!0,o}let ol=!1;function hr(){ol=!0}function sl(e){const{type:t,vnode:n,proxy:o,withProxy:s,props:i,propsOptions:[r],slots:a,attrs:u,emit:f,render:p,renderCache:h,data:w,setupState:C,ctx:x,inheritAttrs:A}=e;let M,D;const O=pr(e);ol=!1;try{if(n.shapeFlag&4){const se=s||o;M=Kt(p.call(se,se,h,i,C,w,x)),D=u}else{const se=t;u===i&&hr(),M=Kt(se.length>1?se(i,{get attrs(){return hr(),u},slots:a,emit:f}):se(i,null)),D=t.props?u:db(u)}}catch(se){ti.length=0,js(se,e,1),M=Ce(vt)}let I=M,H;if(M.patchFlag>0&&M.patchFlag&2048&&([I,H]=ub(M)),D&&A!==!1){const se=Object.keys(D),{shapeFlag:j}=I;if(se.length){if(j&7)r&&se.some(Vi)&&(D=fb(D,r)),I=Jn(I,D);else if(!ol&&I.type!==vt){const ne=Object.keys(u),ae=[],pe=[];for(let Ae=0,ge=ne.length;Ae<ge;Ae++){const P=ne[Ae];Ts(P)?Vi(P)||ae.push(P[2].toLowerCase()+P.slice(3)):pe.push(P)}pe.length&&re(`Extraneous non-props attributes (${pe.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),ae.length&&re(`Extraneous non-emits event listeners (${ae.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return n.dirs&&(Nd(I)||re("Runtime directive used on component with non-element root node. The directives will not function as intended."),I=Jn(I),I.dirs=I.dirs?I.dirs.concat(n.dirs):n.dirs),n.transition&&(Nd(I)||re("Component inside <Transition> renders non-element root node that cannot be animated."),I.transition=n.transition),H?H(I):M=I,pr(O),M}const ub=e=>{const t=e.children,n=e.dynamicChildren,o=il(t);if(!o)return[e,void 0];const s=t.indexOf(o),i=n?n.indexOf(o):-1,r=a=>{t[s]=a,n&&(i>-1?n[i]=a:a.patchFlag>0&&(e.dynamicChildren=[...n,a]))};return[Kt(o),r]};function il(e){let t;for(let n=0;n<e.length;n++){const o=e[n];if(is(o)){if(o.type!==vt||o.children==="v-if"){if(t)return;t=o}}else return}return t}const db=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ts(n))&&((t||(t={}))[n]=e[n]);return t},fb=(e,t)=>{const n={};for(const o in e)(!Vi(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n},Nd=e=>e.shapeFlag&7||e.type===vt;function pb(e,t,n){const{props:o,children:s,component:i}=e,{props:r,children:a,patchFlag:u}=t,f=i.emitsOptions;if((s||a)&&$o||t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return o?Rd(o,r,f):!!r;if(u&8){const p=t.dynamicProps;for(let h=0;h<p.length;h++){const w=p[h];if(r[w]!==o[w]&&!dr(f,w))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:o===r?!1:o?r?Rd(o,r,f):!0:!!r;return!1}function Rd(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const i=o[s];if(t[i]!==e[i]&&!dr(n,i))return!0}return!1}function rl({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const hb=e=>e.__isSuspense,Fd={name:"Suspense",__isSuspense:!0,process(e,t,n,o,s,i,r,a,u,f){e==null?mb(t,n,o,s,i,r,a,u,f):gb(e,t,n,o,s,r,a,u,f)},hydrate:wb,create:al,normalize:yb};function Ks(e,t){const n=e.props&&e.props[t];Pe(n)&&n()}function mb(e,t,n,o,s,i,r,a,u){const{p:f,o:{createElement:p}}=u,h=p("div"),w=e.suspense=al(e,s,o,t,h,n,i,r,a,u);f(null,w.pendingBranch=e.ssContent,h,null,o,w,i,r),w.deps>0?(Ks(e,"onPending"),Ks(e,"onFallback"),f(null,e.ssFallback,t,n,o,null,i,r),os(w,e.ssFallback)):w.resolve()}function gb(e,t,n,o,s,i,r,a,{p:u,um:f,o:{createElement:p}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const w=t.ssContent,C=t.ssFallback,{activeBranch:x,pendingBranch:A,isInFallback:M,isHydrating:D}=h;if(A)h.pendingBranch=w,Gn(w,A)?(u(A,w,h.hiddenContainer,null,s,h,i,r,a),h.deps<=0?h.resolve():M&&(u(x,C,n,o,s,null,i,r,a),os(h,C))):(h.pendingId++,D?(h.isHydrating=!1,h.activeBranch=A):f(A,s,h),h.deps=0,h.effects.length=0,h.hiddenContainer=p("div"),M?(u(null,w,h.hiddenContainer,null,s,h,i,r,a),h.deps<=0?h.resolve():(u(x,C,n,o,s,null,i,r,a),os(h,C))):x&&Gn(w,x)?(u(x,w,n,o,s,h,i,r,a),h.resolve(!0)):(u(null,w,h.hiddenContainer,null,s,h,i,r,a),h.deps<=0&&h.resolve()));else if(x&&Gn(w,x))u(x,w,n,o,s,h,i,r,a),os(h,w);else if(Ks(t,"onPending"),h.pendingBranch=w,h.pendingId++,u(null,w,h.hiddenContainer,null,s,h,i,r,a),h.deps<=0)h.resolve();else{const{timeout:O,pendingId:I}=h;O>0?setTimeout(()=>{h.pendingId===I&&h.fallback(C)},O):O===0&&h.fallback(C)}}let jd=!1;function al(e,t,n,o,s,i,r,a,u,f,p=!1){jd||(jd=!0,console[console.info?"info":"log"]("<Suspense> is an experimental feature and its API will likely change."));const{p:h,m:w,um:C,n:x,o:{parentNode:A,remove:M}}=f,D=e.props?Xw(e.props.timeout):void 0;Hy(D,"Suspense timeout");const O={vnode:e,parent:t,parentComponent:n,isSVG:r,container:o,hiddenContainer:s,anchor:i,deps:0,pendingId:0,timeout:typeof D=="number"?D:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:p,isUnmounted:!1,effects:[],resolve(I=!1){{if(!I&&!O.pendingBranch)throw new Error("suspense.resolve() is called without a pending branch.");if(O.isUnmounted)throw new Error("suspense.resolve() is called on an already unmounted suspense boundary.")}const{vnode:H,activeBranch:se,pendingBranch:j,pendingId:ne,effects:ae,parentComponent:pe,container:Ae}=O;if(O.isHydrating)O.isHydrating=!1;else if(!I){const ie=se&&j.transition&&j.transition.mode==="out-in";ie&&(se.transition.afterLeave=()=>{ne===O.pendingId&&w(j,Ae,Y,0)});let{anchor:Y}=O;se&&(Y=x(se),C(se,pe,O,!0)),ie||w(j,Ae,Y,0)}os(O,j),O.pendingBranch=null,O.isInFallback=!1;let ge=O.parent,P=!1;for(;ge;){if(ge.pendingBranch){ge.effects.push(...ae),P=!0;break}ge=ge.parent}P||Qa(ae),O.effects=[],Ks(H,"onResolve")},fallback(I){if(!O.pendingBranch)return;const{vnode:H,activeBranch:se,parentComponent:j,container:ne,isSVG:ae}=O;Ks(H,"onFallback");const pe=x(se),Ae=()=>{!O.isInFallback||(h(null,I,ne,pe,j,null,ae,a,u),os(O,I))},ge=I.transition&&I.transition.mode==="out-in";ge&&(se.transition.afterLeave=Ae),O.isInFallback=!0,C(se,j,null,!0),ge||Ae()},move(I,H,se){O.activeBranch&&w(O.activeBranch,I,H,se),O.container=I},next(){return O.activeBranch&&x(O.activeBranch)},registerDep(I,H){const se=!!O.pendingBranch;se&&O.deps++;const j=I.vnode.el;I.asyncDep.catch(ne=>{js(ne,I,0)}).then(ne=>{if(I.isUnmounted||O.isUnmounted||O.pendingId!==I.suspenseId)return;I.asyncResolved=!0;const{vnode:ae}=I;Rs(ae),xl(I,ne,!1),j&&(ae.el=j);const pe=!j&&I.subTree.el;H(I,ae,A(j||I.subTree.el),j?null:x(I.subTree),O,r,u),pe&&M(pe),rl(I,ae.el),Fs(),se&&--O.deps===0&&O.resolve()})},unmount(I,H){O.isUnmounted=!0,O.activeBranch&&C(O.activeBranch,n,I,H),O.pendingBranch&&C(O.pendingBranch,n,I,H)}};return O}function wb(e,t,n,o,s,i,r,a,u){const f=t.suspense=al(t,o,n,e.parentNode,document.createElement("div"),null,s,i,r,a,!0),p=u(e,f.pendingBranch=t.ssContent,n,f,i,r);return f.deps===0&&f.resolve(),p}function yb(e){const{shapeFlag:t,children:n}=e,o=t&32;e.ssContent=Ud(o?n.default:n),e.ssFallback=o?Ud(n.fallback):Ce(vt)}function Ud(e){let t;if(Pe(e)){const n=ss&&e._c;n&&(e._d=!1,K()),e=e(),n&&(e._d=!0,t=Vt,ff())}if(xe(e)){const n=il(e);n||re("<Suspense> slots expect a single root node."),e=n}return e=Kt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function bb(e,t){t&&t.pendingBranch?xe(e)?t.effects.push(...e):t.effects.push(e):Qa(e)}function os(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e,s=n.el=t.el;o&&o.subTree===n&&(o.vnode.el=s,rl(o,s))}function Gs(e,t){if(!et)re("provide() can only be used inside setup().");else{let n=et.provides;const o=et.parent&&et.parent.provides;o===n&&(n=et.provides=Object.create(o)),n[e]=t}}function Js(e,t,n=!1){const o=et||lt;if(o){const s=o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&Pe(t)?t.call(o.proxy):t;re(`injection "${String(e)}" not found.`)}else re("inject() can only be used inside setup() or functional components.")}const mr={};function ct(e,t,n){return Pe(t)||re("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),Hd(e,t,n)}function Hd(e,t,{immediate:n,deep:o,flush:s,onTrack:i,onTrigger:r}=We){t||(n!==void 0&&re('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&re('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const a=H=>{re("Invalid watch source: ",H,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},u=ey()===(et==null?void 0:et.scope)?et:null;let f,p=!1,h=!1;if(it(e)?(f=()=>e.value,p=lr(e)):xo(e)?(f=()=>e,o=!0):xe(e)?(h=!0,p=e.some(H=>xo(H)||lr(H)),f=()=>e.map(H=>{if(it(H))return H.value;if(xo(H))return So(H);if(Pe(H))return Cn(H,u,2);a(H)})):Pe(e)?t?f=()=>Cn(e,u,2):f=()=>{if(!(u&&u.isUnmounted))return w&&w(),Zt(e,u,3,[C])}:(f=Ot,a(e)),t&&o){const H=f;f=()=>So(H())}let w,C=H=>{w=O.onStop=()=>{Cn(H,u,4)}},x;if(ni)if(C=Ot,t?n&&Zt(t,u,3,[f(),h?[]:void 0,C]):f(),s==="sync"){const H=xv();x=H.__watcherHandles||(H.__watcherHandles=[])}else return Ot;let A=h?new Array(e.length).fill(mr):mr;const M=()=>{if(!!O.active)if(t){const H=O.run();(o||p||(h?H.some((se,j)=>Bs(se,A[j])):Bs(H,A)))&&(w&&w(),Zt(t,u,3,[H,A===mr?void 0:h&&A[0]===mr?[]:A,C]),A=H)}else O.run()};M.allowRecurse=!!t;let D;s==="sync"?D=M:s==="post"?D=()=>Tt(M,u&&u.suspense):(M.pre=!0,u&&(M.id=u.uid),D=()=>ur(M));const O=new Va(f,D);O.onTrack=i,O.onTrigger=r,t?n?M():A=O.run():s==="post"?Tt(O.run.bind(O),u&&u.suspense):O.run();const I=()=>{O.stop(),u&&u.scope&&Ra(u.scope.effects,O)};return x&&x.push(I),I}function vb(e,t,n){const o=this.proxy,s=Xe(e)?e.includes(".")?zd(o,e):()=>o[e]:e.bind(o,o);let i;Pe(t)?i=t:(i=t.handler,n=t);const r=et;Xn(this);const a=Hd(s,i.bind(o),n);return r?Xn(r):Qn(),a}function zd(e,t){const n=t.split(".");return()=>{let o=e;for(let s=0;s<n.length&&o;s++)o=o[n[s]];return o}}function So(e,t){if(!Ve(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),it(e))So(e.value,t);else if(xe(e))for(let n=0;n<e.length;n++)So(e[n],t);else if(Qo(e)||go(e))e.forEach(n=>{So(n,t)});else if(Yu(e))for(const n in e)So(e[n],t);return e}function De(e){return Pe(e)?{setup:e,name:e.name}:e}const Ys=e=>!!e.type.__asyncLoader,ll=e=>e.type.__isKeepAlive;function _b(e,t){qd(e,"a",t)}function xb(e,t){qd(e,"da",t)}function qd(e,t,n=et){const o=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(gr(t,o,n),n){let s=n.parent;for(;s&&s.parent;)ll(s.parent.vnode)&&Cb(o,t,n,s),s=s.parent}}function Cb(e,t,n,o){const s=gr(t,e,o,!0);Xs(()=>{Ra(o[t],s)},n)}function gr(e,t,n=et,o=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;vo(),Xn(n);const a=Zt(t,n,e,r);return Qn(),_o(),a});return o?s.unshift(i):s.push(i),i}else{const s=yo(Ja[e].replace(/ hook$/,""));re(`${s} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const $n=e=>(t,n=et)=>(!ni||e==="sp")&&gr(e,(...o)=>t(...o),n),Pt=$n("bm"),Rt=$n("m"),$b=$n("bu"),kb=$n("u"),Vd=$n("bum"),Xs=$n("um"),Sb=$n("sp"),Eb=$n("rtg"),Ab=$n("rtc");function Ob(e,t=et){gr("ec",e,t)}function Wd(e){Gw(e)&&re("Do not use built-in directive ids as custom directive id: "+e)}function ee(e,t){const n=lt;if(n===null)return re("withDirectives can only be used inside render functions."),e;const o=xr(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,a,u,f=We]=t[i];r&&(Pe(r)&&(r={mounted:r,updated:r}),r.deep&&So(a),s.push({dir:r,instance:o,value:a,oldValue:void 0,arg:u,modifiers:f}))}return e}function Eo(e,t,n,o){const s=e.dirs,i=t&&t.dirs;for(let r=0;r<s.length;r++){const a=s[r];i&&(a.oldValue=i[r].value);let u=a.dir[o];u&&(vo(),Zt(u,n,8,[e.el,a,e,t]),_o())}}const cl="components";function Ao(e,t){return Pb(cl,e,!0,t)||e}const Ib=Symbol();function Pb(e,t,n=!0,o=!1){const s=lt||et;if(s){const i=s.type;if(e===cl){const a=$l(i,!1);if(a&&(a===t||a===an(t)||a===wo(an(t))))return i}const r=Kd(s[e]||i[e],t)||Kd(s.appContext[e],t);if(!r&&o)return i;if(n&&!r){const a=e===cl?`
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";re(`Failed to resolve ${e.slice(0,-1)}: ${t}${a}`)}return r}else re(`resolve${wo(e.slice(0,-1))} can only be used in render() or setup().`)}function Kd(e,t){return e&&(e[t]||e[an(t)]||e[wo(an(t))])}function nt(e,t,n,o){let s;const i=n&&n[o];if(xe(e)||Xe(e)){s=new Array(e.length);for(let r=0,a=e.length;r<a;r++)s[r]=t(e[r],r,void 0,i&&i[r])}else if(typeof e=="number"){Number.isInteger(e)||re(`The v-for range expect an integer value but got ${e}.`),s=new Array(e);for(let r=0;r<e;r++)s[r]=t(r+1,r,void 0,i&&i[r])}else if(Ve(e))if(e[Symbol.iterator])s=Array.from(e,(r,a)=>t(r,a,void 0,i&&i[a]));else{const r=Object.keys(e);s=new Array(r.length);for(let a=0,u=r.length;a<u;a++){const f=r[a];s[a]=t(e[f],f,a,i&&i[a])}}else s=[];return n&&(n[o]=s),s}function kn(e,t,n={},o,s){if(lt.isCE||lt.parent&&Ys(lt.parent)&<.parent.isCE)return t!=="default"&&(n.name=t),Ce("slot",n,o&&o());let i=e[t];i&&i.length>1&&(re("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),i=()=>[]),i&&i._c&&(i._d=!1),K();const r=i&&Gd(i(n)),a=Wt(Ne,{key:n.key||r&&r.key||`_${t}`},r||(o?o():[]),r&&e._===1?64:-2);return!s&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function Gd(e){return e.some(t=>is(t)?!(t.type===vt||t.type===Ne&&!Gd(t.children)):!0)?e:null}const ul=e=>e?bf(e)?xr(e)||e.proxy:ul(e.parent):null,Oo=st(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>es(e.props),$attrs:e=>es(e.attrs),$slots:e=>es(e.slots),$refs:e=>es(e.refs),$parent:e=>ul(e.parent),$root:e=>ul(e.root),$emit:e=>e.emit,$options:e=>hl(e),$forceUpdate:e=>e.f||(e.f=()=>ur(e.update)),$nextTick:e=>e.n||(e.n=Hs.bind(e.proxy)),$watch:e=>vb.bind(e)}),dl=e=>e==="_"||e==="$",fl=(e,t)=>e!==We&&!e.__isScriptSetup&&Re(e,t),Jd={get({_:e},t){const{ctx:n,setupState:o,data:s,props:i,accessCache:r,type:a,appContext:u}=e;if(t==="__isVue")return!0;let f;if(t[0]!=="$"){const C=r[t];if(C!==void 0)switch(C){case 1:return o[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(fl(o,t))return r[t]=1,o[t];if(s!==We&&Re(s,t))return r[t]=2,s[t];if((f=e.propsOptions[0])&&Re(f,t))return r[t]=3,i[t];if(n!==We&&Re(n,t))return r[t]=4,n[t];pl&&(r[t]=0)}}const p=Oo[t];let h,w;if(p)return t==="$attrs"&&(It(e,"get",t),hr()),p(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==We&&Re(n,t))return r[t]=4,n[t];if(w=u.config.globalProperties,Re(w,t))return w[t];lt&&(!Xe(t)||t.indexOf("__v")!==0)&&(s!==We&&dl(t[0])&&Re(s,t)?re(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===lt&&re(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:o,setupState:s,ctx:i}=e;return fl(s,t)?(s[t]=n,!0):s.__isScriptSetup&&Re(s,t)?(re(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):o!==We&&Re(o,t)?(o[t]=n,!0):Re(e.props,t)?(re(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(re(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(t in e.appContext.config.globalProperties?Object.defineProperty(i,t,{enumerable:!0,configurable:!0,value:n}):i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:s,propsOptions:i}},r){let a;return!!n[r]||e!==We&&Re(e,r)||fl(t,r)||(a=i[0])&&Re(a,r)||Re(o,r)||Re(Oo,r)||Re(s.config.globalProperties,r)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};Jd.ownKeys=e=>(re("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e));function Tb(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(Oo).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:()=>Oo[n](e),set:Ot})}),t}function Mb(e){const{ctx:t,propsOptions:[n]}=e;n&&Object.keys(n).forEach(o=>{Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>e.props[o],set:Ot})})}function Lb(e){const{ctx:t,setupState:n}=e;Object.keys(Be(n)).forEach(o=>{if(!n.__isScriptSetup){if(dl(o[0])){re(`setup() return property ${JSON.stringify(o)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>n[o],set:Ot})}})}function Bb(){const e=Object.create(null);return(t,n)=>{e[n]?re(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}let pl=!0;function Db(e){const t=hl(e),n=e.proxy,o=e.ctx;pl=!1,t.beforeCreate&&Yd(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:r,watch:a,provide:u,inject:f,created:p,beforeMount:h,mounted:w,beforeUpdate:C,updated:x,activated:A,deactivated:M,beforeDestroy:D,beforeUnmount:O,destroyed:I,unmounted:H,render:se,renderTracked:j,renderTriggered:ne,errorCaptured:ae,serverPrefetch:pe,expose:Ae,inheritAttrs:ge,components:P,directives:ie,filters:Y}=t,_e=Bb();{const[G]=e.propsOptions;if(G)for(const N in G)_e("Props",N)}if(f&&Nb(f,o,_e,e.appContext.config.unwrapInjectedRef),r)for(const G in r){const N=r[G];Pe(N)?(Object.defineProperty(o,G,{value:N.bind(n),configurable:!0,enumerable:!0,writable:!0}),_e("Methods",G)):re(`Method "${G}" has type "${typeof N}" in the component definition. Did you reference the function correctly?`)}if(s){Pe(s)||re("The data option must be a function. Plain object usage is no longer supported.");const G=s.call(n,n);if(Wi(G)&&re("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Ve(G))re("data() should return an object.");else{e.data=rr(G);for(const N in G)_e("Data",N),dl(N[0])||Object.defineProperty(o,N,{configurable:!0,enumerable:!0,get:()=>G[N],set:Ot})}}if(pl=!0,i)for(const G in i){const N=i[G],me=Pe(N)?N.bind(n,n):Pe(N.get)?N.get.bind(n,n):Ot;me===Ot&&re(`Computed property "${G}" has no getter.`);const ke=!Pe(N)&&Pe(N.set)?N.set.bind(n):()=>{re(`Write operation failed: computed property "${G}" is readonly.`)},Me=Zn({get:me,set:ke});Object.defineProperty(o,G,{enumerable:!0,configurable:!0,get:()=>Me.value,set:Fe=>Me.value=Fe}),_e("Computed",G)}if(a)for(const G in a)Xd(a[G],o,n,G);if(u){const G=Pe(u)?u.call(n):u;Reflect.ownKeys(G).forEach(N=>{Gs(N,G[N])})}p&&Yd(p,e,"c");function L(G,N){xe(N)?N.forEach(me=>G(me.bind(n))):N&&G(N.bind(n))}if(L(Pt,h),L(Rt,w),L($b,C),L(kb,x),L(_b,A),L(xb,M),L(Ob,ae),L(Ab,j),L(Eb,ne),L(Vd,O),L(Xs,H),L(Sb,pe),xe(Ae))if(Ae.length){const G=e.exposed||(e.exposed={});Ae.forEach(N=>{Object.defineProperty(G,N,{get:()=>n[N],set:me=>n[N]=me})})}else e.exposed||(e.exposed={});se&&e.render===Ot&&(e.render=se),ge!=null&&(e.inheritAttrs=ge),P&&(e.components=P),ie&&(e.directives=ie)}function Nb(e,t,n=Ot,o=!1){xe(e)&&(e=ml(e));for(const s in e){const i=e[s];let r;Ve(i)?"default"in i?r=Js(i.from||s,i.default,!0):r=Js(i.from||s):r=Js(i),it(r)?o?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:a=>r.value=a}):(re(`injected property "${s}" is a ref and will be auto-unwrapped and no longer needs \`.value\` in the next minor release. To opt-in to the new behavior now, set \`app.config.unwrapInjectedRef = true\` (this config is temporary and will not be needed in the future.)`),t[s]=r):t[s]=r,n("Inject",s)}}function Yd(e,t,n){Zt(xe(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Xd(e,t,n,o){const s=o.includes(".")?zd(n,o):()=>n[o];if(Xe(e)){const i=t[e];Pe(i)?ct(s,i):re(`Invalid watch handler specified by key "${e}"`,i)}else if(Pe(e))ct(s,e.bind(n));else if(Ve(e))if(xe(e))e.forEach(i=>Xd(i,t,n,o));else{const i=Pe(e.handler)?e.handler.bind(n):t[e.handler];Pe(i)?ct(s,i,e):re(`Invalid watch handler specified by key "${e.handler}"`,i)}else re(`Invalid watch option: "${o}"`,e)}function hl(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,a=i.get(t);let u;return a?u=a:!s.length&&!n&&!o?u=t:(u={},s.length&&s.forEach(f=>wr(u,f,r,!0)),wr(u,t,r)),Ve(t)&&i.set(t,u),u}function wr(e,t,n,o=!1){const{mixins:s,extends:i}=t;i&&wr(e,i,n,!0),s&&s.forEach(r=>wr(e,r,n,!0));for(const r in t)if(o&&r==="expose")re('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=Rb[r]||n&&n[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const Rb={data:Qd,props:Io,emits:Io,methods:Io,computed:Io,beforeCreate:bt,created:bt,beforeMount:bt,mounted:bt,beforeUpdate:bt,updated:bt,beforeDestroy:bt,beforeUnmount:bt,destroyed:bt,unmounted:bt,activated:bt,deactivated:bt,errorCaptured:bt,serverPrefetch:bt,components:Io,directives:Io,watch:jb,provide:Qd,inject:Fb};function Qd(e,t){return t?e?function(){return st(Pe(e)?e.call(this,this):e,Pe(t)?t.call(this,this):t)}:t:e}function Fb(e,t){return Io(ml(e),ml(t))}function ml(e){if(xe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function bt(e,t){return e?[...new Set([].concat(e,t))]:t}function Io(e,t){return e?st(st(Object.create(null),e),t):t}function jb(e,t){if(!e)return t;if(!t)return e;const n=st(Object.create(null),e);for(const o in t)n[o]=bt(e[o],t[o]);return n}function Ub(e,t,n,o=!1){const s={},i={};Ji(i,vr,1),e.propsDefaults=Object.create(null),Zd(e,t,s,i);for(const r in e.propsOptions[0])r in s||(s[r]=void 0);sf(t||{},s,e),n?e.props=o?s:Oy(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Hb(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function zb(e,t,n,o){const{props:s,attrs:i,vnode:{patchFlag:r}}=e,a=Be(s),[u]=e.propsOptions;let f=!1;if(!Hb(e)&&(o||r>0)&&!(r&16)){if(r&8){const p=e.vnode.dynamicProps;for(let h=0;h<p.length;h++){let w=p[h];if(dr(e.emitsOptions,w))continue;const C=t[w];if(u)if(Re(i,w))C!==i[w]&&(i[w]=C,f=!0);else{const x=an(w);s[x]=gl(u,a,x,C,e,!1)}else C!==i[w]&&(i[w]=C,f=!0)}}}else{Zd(e,t,s,i)&&(f=!0);let p;for(const h in a)(!t||!Re(t,h)&&((p=_n(h))===h||!Re(t,p)))&&(u?n&&(n[h]!==void 0||n[p]!==void 0)&&(s[h]=gl(u,a,h,void 0,e,!0)):delete s[h]);if(i!==a)for(const h in i)(!t||!Re(t,h)&&!0)&&(delete i[h],f=!0)}f&&xn(e,"set","$attrs"),sf(t||{},s,e)}function Zd(e,t,n,o){const[s,i]=e.propsOptions;let r=!1,a;if(t)for(let u in t){if(Ki(u))continue;const f=t[u];let p;s&&Re(s,p=an(u))?!i||!i.includes(p)?n[p]=f:(a||(a={}))[p]=f:dr(e.emitsOptions,u)||(!(u in o)||f!==o[u])&&(o[u]=f,r=!0)}if(i){const u=Be(n),f=a||We;for(let p=0;p<i.length;p++){const h=i[p];n[h]=gl(s,u,h,f[h],e,!Re(f,h))}}return r}function gl(e,t,n,o,s,i){const r=e[n];if(r!=null){const a=Re(r,"default");if(a&&o===void 0){const u=r.default;if(r.type!==Function&&Pe(u)){const{propsDefaults:f}=s;n in f?o=f[n]:(Xn(s),o=f[n]=u.call(null,t),Qn())}else o=u}r[0]&&(i&&!a?o=!1:r[1]&&(o===""||o===_n(n))&&(o=!0))}return o}function ef(e,t,n=!1){const o=t.propsCache,s=o.get(e);if(s)return s;const i=e.props,r={},a=[];let u=!1;if(!Pe(e)){const p=h=>{u=!0;const[w,C]=ef(h,t,!0);st(r,w),C&&a.push(...C)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!i&&!u)return Ve(e)&&o.set(e,Xo),Xo;if(xe(i))for(let p=0;p<i.length;p++){Xe(i[p])||re("props must be strings when using array syntax.",i[p]);const h=an(i[p]);tf(h)&&(r[h]=We)}else if(i){Ve(i)||re("invalid props options",i);for(const p in i){const h=an(p);if(tf(h)){const w=i[p],C=r[h]=xe(w)||Pe(w)?{type:w}:Object.assign({},w);if(C){const x=of(Boolean,C.type),A=of(String,C.type);C[0]=x>-1,C[1]=A<0||x<A,(x>-1||Re(C,"default"))&&a.push(h)}}}}const f=[r,a];return Ve(e)&&o.set(e,f),f}function tf(e){return e[0]!=="$"?!0:(re(`Invalid prop name: "${e}" is a reserved property.`),!1)}function wl(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function nf(e,t){return wl(e)===wl(t)}function of(e,t){return xe(t)?t.findIndex(n=>nf(n,e)):Pe(t)&&nf(t,e)?0:-1}function sf(e,t,n){const o=Be(t),s=n.propsOptions[0];for(const i in s){let r=s[i];r!=null&&qb(i,o[i],r,!Re(e,i)&&!Re(e,_n(i)))}}function qb(e,t,n,o){const{type:s,required:i,validator:r}=n;if(i&&o){re('Missing required prop: "'+e+'"');return}if(!(t==null&&!n.required)){if(s!=null&&s!==!0){let a=!1;const u=xe(s)?s:[s],f=[];for(let p=0;p<u.length&&!a;p++){const{valid:h,expectedType:w}=Wb(t,u[p]);f.push(w||""),a=h}if(!a){re(Kb(e,t,f));return}}r&&!r(t)&&re('Invalid prop: custom validator check failed for prop "'+e+'".')}}const Vb=Un("String,Number,Boolean,Function,Symbol,BigInt");function Wb(e,t){let n;const o=wl(t);if(Vb(o)){const s=typeof e;n=s===o.toLowerCase(),!n&&s==="object"&&(n=e instanceof t)}else o==="Object"?n=Ve(e):o==="Array"?n=xe(e):o==="null"?n=e===null:n=e instanceof t;return{valid:n,expectedType:o}}function Kb(e,t,n){let o=`Invalid prop: type check failed for prop "${e}". Expected ${n.map(wo).join(" | ")}`;const s=n[0],i=Fa(t),r=rf(t,s),a=rf(t,i);return n.length===1&&af(s)&&!Gb(s,i)&&(o+=` with value ${r}`),o+=`, got ${i} `,af(i)&&(o+=`with value ${a}.`),o}function rf(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function af(e){return["string","number","boolean"].some(n=>e.toLowerCase()===n)}function Gb(...e){return e.some(t=>t.toLowerCase()==="boolean")}const lf=e=>e[0]==="_"||e==="$stable",yl=e=>xe(e)?e.map(Kt):[Kt(e)],Jb=(e,t,n)=>{if(t._n)return t;const o=Ke((...s)=>(et&&re(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),yl(t(...s))),n);return o._c=!1,o},cf=(e,t,n)=>{const o=e._ctx;for(const s in e){if(lf(s))continue;const i=e[s];if(Pe(i))t[s]=Jb(s,i,o);else if(i!=null){re(`Non-function value encountered for slot "${s}". Prefer function slots for better performance.`);const r=yl(i);t[s]=()=>r}}},uf=(e,t)=>{ll(e.vnode)||re("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=yl(t);e.slots.default=()=>n},Yb=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Be(t),Ji(t,"_",n)):cf(t,e.slots={})}else e.slots={},t&&uf(e,t);Ji(e.slots,vr,1)},Xb=(e,t,n)=>{const{vnode:o,slots:s}=e;let i=!0,r=We;if(o.shapeFlag&32){const a=t._;a?$o?st(s,t):n&&a===1?i=!1:(st(s,t),!n&&a===1&&delete s._):(i=!t.$stable,cf(t,s)),r=t}else t&&(uf(e,t),r={default:1});if(i)for(const a in s)!lf(a)&&!(a in r)&&delete s[a]};function df(){return{app:null,config:{isNativeTag:Ku,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Qb=0;function Zb(e,t){return function(o,s=null){Pe(o)||(o=Object.assign({},o)),s!=null&&!Ve(s)&&(re("root props passed to app.mount() must be an object."),s=null);const i=df(),r=new Set;let a=!1;const u=i.app={_uid:Qb++,_component:o,_props:s,_container:null,_context:i,_instance:null,version:xf,get config(){return i.config},set config(f){re("app.config cannot be replaced. Modify individual options instead.")},use(f,...p){return r.has(f)?re("Plugin has already been applied to target app."):f&&Pe(f.install)?(r.add(f),f.install(u,...p)):Pe(f)?(r.add(f),f(u,...p)):re('A plugin must either be a function or an object with an "install" function.'),u},mixin(f){return i.mixins.includes(f)?re("Mixin has already been applied to target app"+(f.name?`: ${f.name}`:"")):i.mixins.push(f),u},component(f,p){return _l(f,i.config),p?(i.components[f]&&re(`Component "${f}" has already been registered in target app.`),i.components[f]=p,u):i.components[f]},directive(f,p){return Wd(f),p?(i.directives[f]&&re(`Directive "${f}" has already been registered in target app.`),i.directives[f]=p,u):i.directives[f]},mount(f,p,h){if(a)re("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{f.__vue_app__&&re("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const w=Ce(o,s);return w.appContext=i,i.reload=()=>{e(Jn(w),f,h)},p&&t?t(w,f):e(w,f,h),a=!0,u._container=f,f.__vue_app__=u,u._instance=w.component,Qy(u,xf),xr(w.component)||w.component.proxy}},unmount(){a?(e(null,u._container),u._instance=null,Zy(u),delete u._container.__vue_app__):re("Cannot unmount an app that is not mounted.")},provide(f,p){return f in i.provides&&re(`App already provides property with key "${String(f)}". It will be overwritten with the new value.`),i.provides[f]=p,u}};return u}}function bl(e,t,n,o,s=!1){if(xe(e)){e.forEach((w,C)=>bl(w,t&&(xe(t)?t[C]:t),n,o,s));return}if(Ys(o)&&!s)return;const i=o.shapeFlag&4?xr(o.component)||o.component.proxy:o.el,r=s?null:i,{i:a,r:u}=e;if(!a){re("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const f=t&&t.r,p=a.refs===We?a.refs={}:a.refs,h=a.setupState;if(f!=null&&f!==u&&(Xe(f)?(p[f]=null,Re(h,f)&&(h[f]=null)):it(f)&&(f.value=null)),Pe(u))Cn(u,a,12,[r,p]);else{const w=Xe(u),C=it(u);if(w||C){const x=()=>{if(e.f){const A=w?Re(h,u)?h[u]:p[u]:u.value;s?xe(A)&&Ra(A,i):xe(A)?A.includes(i)||A.push(i):w?(p[u]=[i],Re(h,u)&&(h[u]=p[u])):(u.value=[i],e.k&&(p[e.k]=u.value))}else w?(p[u]=r,Re(h,u)&&(h[u]=r)):C?(u.value=r,e.k&&(p[e.k]=r)):re("Invalid template ref type:",u,`(${typeof u})`)};r?(x.id=-1,Tt(x,n)):x()}else re("Invalid template ref type:",u,`(${typeof u})`)}}let Qs,Kn;function Sn(e,t){e.appContext.config.performance&&yr()&&Kn.mark(`vue-${t}-${e.uid}`),ob(e,t,yr()?Kn.now():Date.now())}function En(e,t){if(e.appContext.config.performance&&yr()){const n=`vue-${t}-${e.uid}`,o=n+":end";Kn.mark(o),Kn.measure(`<${Cr(e,e.type)}> ${t}`,n,o),Kn.clearMarks(n),Kn.clearMarks(o)}sb(e,t,yr()?Kn.now():Date.now())}function yr(){return Qs!==void 0||(typeof window<"u"&&window.performance?(Qs=!0,Kn=window.performance):Qs=!1),Qs}function ev(){const e=[];if(e.length){const t=e.length>1;console.warn(`Feature flag${t?"s":""} ${e.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
For more details, see https://link.vuejs.org/feature-flags.`)}}const Tt=bb;function tv(e){return nv(e)}function nv(e,t){ev();const n=Qu();n.__VUE__=!0,Md(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:o,remove:s,patchProp:i,createElement:r,createText:a,createComment:u,setText:f,setElementText:p,parentNode:h,nextSibling:w,setScopeId:C=Ot,insertStaticContent:x}=e,A=(b,E,R,B=null,q=null,oe=null,le=!1,J=null,Z=$o?!1:!!E.dynamicChildren)=>{if(b===E)return;b&&!Gn(b,E)&&(B=xt(b),Qe(b,q,oe,!0),b=null),E.patchFlag===-2&&(Z=!1,E.dynamicChildren=null);const{type:X,ref:ye,shapeFlag:U}=E;switch(X){case Zs:M(b,E,R,B);break;case vt:D(b,E,R,B);break;case ei:b==null?O(E,R,B,le):I(b,E,R,le);break;case Ne:ie(b,E,R,B,q,oe,le,J,Z);break;default:U&1?j(b,E,R,B,q,oe,le,J,Z):U&6?Y(b,E,R,B,q,oe,le,J,Z):U&64||U&128?X.process(b,E,R,B,q,oe,le,J,Z,ot):re("Invalid VNode type:",X,`(${typeof X})`)}ye!=null&&q&&bl(ye,b&&b.ref,oe,E||b,!E)},M=(b,E,R,B)=>{if(b==null)o(E.el=a(E.children),R,B);else{const q=E.el=b.el;E.children!==b.children&&f(q,E.children)}},D=(b,E,R,B)=>{b==null?o(E.el=u(E.children||""),R,B):E.el=b.el},O=(b,E,R,B)=>{[b.el,b.anchor]=x(b.children,E,R,B,b.el,b.anchor)},I=(b,E,R,B)=>{if(E.children!==b.children){const q=w(b.anchor);se(b),[E.el,E.anchor]=x(E.children,R,q,B)}else E.el=b.el,E.anchor=b.anchor},H=({el:b,anchor:E},R,B)=>{let q;for(;b&&b!==E;)q=w(b),o(b,R,B),b=q;o(E,R,B)},se=({el:b,anchor:E})=>{let R;for(;b&&b!==E;)R=w(b),s(b),b=R;s(E)},j=(b,E,R,B,q,oe,le,J,Z)=>{le=le||E.type==="svg",b==null?ne(E,R,B,q,oe,le,J,Z):Ae(b,E,q,oe,le,J,Z)},ne=(b,E,R,B,q,oe,le,J)=>{let Z,X;const{type:ye,props:U,shapeFlag:be,transition:m,dirs:y}=b;if(Z=b.el=r(b.type,oe,U&&U.is,U),be&8?p(Z,b.children):be&16&&pe(b.children,Z,null,B,q,oe&&ye!=="foreignObject",le,J),y&&Eo(b,null,B,"created"),ae(Z,b,b.scopeId,le,B),U){for(const k in U)k!=="value"&&!Ki(k)&&i(Z,k,null,U[k],oe,b.children,B,q,_t);"value"in U&&i(Z,"value",null,U.value),(X=U.onVnodeBeforeMount)&&dn(X,B,b)}Object.defineProperty(Z,"__vnode",{value:b,enumerable:!1}),Object.defineProperty(Z,"__vueParentComponent",{value:B,enumerable:!1}),y&&Eo(b,null,B,"beforeMount");const _=(!q||q&&!q.pendingBranch)&&m&&!m.persisted;_&&m.beforeEnter(Z),o(Z,E,R),((X=U&&U.onVnodeMounted)||_||y)&&Tt(()=>{X&&dn(X,B,b),_&&m.enter(Z),y&&Eo(b,null,B,"mounted")},q)},ae=(b,E,R,B,q)=>{if(R&&C(b,R),B)for(let oe=0;oe<B.length;oe++)C(b,B[oe]);if(q){let oe=q.subTree;if(oe.patchFlag>0&&oe.patchFlag&2048&&(oe=il(oe.children)||oe),E===oe){const le=q.vnode;ae(b,le,le.scopeId,le.slotScopeIds,q.parent)}}},pe=(b,E,R,B,q,oe,le,J,Z=0)=>{for(let X=Z;X<b.length;X++){const ye=b[X]=J?Yn(b[X]):Kt(b[X]);A(null,ye,E,R,B,q,oe,le,J)}},Ae=(b,E,R,B,q,oe,le)=>{const J=E.el=b.el;let{patchFlag:Z,dynamicChildren:X,dirs:ye}=E;Z|=b.patchFlag&16;const U=b.props||We,be=E.props||We;let m;R&&Po(R,!1),(m=be.onVnodeBeforeUpdate)&&dn(m,R,E,b),ye&&Eo(E,b,R,"beforeUpdate"),R&&Po(R,!0),$o&&(Z=0,le=!1,X=null);const y=q&&E.type!=="foreignObject";if(X?(ge(b.dynamicChildren,X,J,R,B,y,oe),R&&R.type.__hmrId&&br(b,E)):le||me(b,E,J,null,R,B,y,oe,!1),Z>0){if(Z&16)P(J,E,U,be,R,B,q);else if(Z&2&&U.class!==be.class&&i(J,"class",null,be.class,q),Z&4&&i(J,"style",U.style,be.style,q),Z&8){const _=E.dynamicProps;for(let k=0;k<_.length;k++){const T=_[k],S=U[T],z=be[T];(z!==S||T==="value")&&i(J,T,S,z,q,b.children,R,B,_t)}}Z&1&&b.children!==E.children&&p(J,E.children)}else!le&&X==null&&P(J,E,U,be,R,B,q);((m=be.onVnodeUpdated)||ye)&&Tt(()=>{m&&dn(m,R,E,b),ye&&Eo(E,b,R,"updated")},B)},ge=(b,E,R,B,q,oe,le)=>{for(let J=0;J<E.length;J++){const Z=b[J],X=E[J],ye=Z.el&&(Z.type===Ne||!Gn(Z,X)||Z.shapeFlag&70)?h(Z.el):R;A(Z,X,ye,null,B,q,oe,le,!0)}},P=(b,E,R,B,q,oe,le)=>{if(R!==B){if(R!==We)for(const J in R)!Ki(J)&&!(J in B)&&i(b,J,R[J],null,le,E.children,q,oe,_t);for(const J in B){if(Ki(J))continue;const Z=B[J],X=R[J];Z!==X&&J!=="value"&&i(b,J,X,Z,le,E.children,q,oe,_t)}"value"in B&&i(b,"value",R.value,B.value)}},ie=(b,E,R,B,q,oe,le,J,Z)=>{const X=E.el=b?b.el:a(""),ye=E.anchor=b?b.anchor:a("");let{patchFlag:U,dynamicChildren:be,slotScopeIds:m}=E;($o||U&2048)&&(U=0,Z=!1,be=null),m&&(J=J?J.concat(m):m),b==null?(o(X,R,B),o(ye,R,B),pe(E.children,R,ye,q,oe,le,J,Z)):U>0&&U&64&&be&&b.dynamicChildren?(ge(b.dynamicChildren,be,R,q,oe,le,J),q&&q.type.__hmrId?br(b,E):(E.key!=null||q&&E===q.subTree)&&br(b,E,!0)):me(b,E,R,ye,q,oe,le,J,Z)},Y=(b,E,R,B,q,oe,le,J,Z)=>{E.slotScopeIds=J,b==null?E.shapeFlag&512?q.ctx.activate(E,R,B,le,Z):_e(E,R,B,q,oe,le,Z):L(b,E,Z)},_e=(b,E,R,B,q,oe,le)=>{const J=b.component=uv(b,B,q);if(J.type.__hmrId&&Gy(J),Rs(b),Sn(J,"mount"),ll(b)&&(J.ctx.renderer=ot),Sn(J,"init"),pv(J),En(J,"init"),J.asyncDep){if(q&&q.registerDep(J,G),!b.el){const Z=J.subTree=Ce(vt);D(null,Z,E,R)}return}G(J,b,E,R,q,oe,le),Fs(),En(J,"mount")},L=(b,E,R)=>{const B=E.component=b.component;if(pb(b,E,R))if(B.asyncDep&&!B.asyncResolved){Rs(E),N(B,E,R),Fs();return}else B.next=E,Wy(B.update),B.update();else E.el=b.el,B.vnode=E},G=(b,E,R,B,q,oe,le)=>{const J=()=>{if(b.isMounted){let{next:ye,bu:U,u:be,parent:m,vnode:y}=b,_=ye,k;Rs(ye||b.vnode),Po(b,!1),ye?(ye.el=y.el,N(b,ye,le)):ye=y,U&&Zo(U),(k=ye.props&&ye.props.onVnodeBeforeUpdate)&&dn(k,m,ye,y),Po(b,!0),Sn(b,"render");const T=sl(b);En(b,"render");const S=b.subTree;b.subTree=T,Sn(b,"patch"),A(S,T,h(S.el),xt(S),b,q,oe),En(b,"patch"),ye.el=T.el,_===null&&rl(b,T.el),be&&Tt(be,q),(k=ye.props&&ye.props.onVnodeUpdated)&&Tt(()=>dn(k,m,ye,y),q),Ld(b),Fs()}else{let ye;const{el:U,props:be}=E,{bm:m,m:y,parent:_}=b,k=Ys(E);if(Po(b,!1),m&&Zo(m),!k&&(ye=be&&be.onVnodeBeforeMount)&&dn(ye,_,E),Po(b,!0),U&&dt){const T=()=>{Sn(b,"render"),b.subTree=sl(b),En(b,"render"),Sn(b,"hydrate"),dt(U,b.subTree,b,q,null),En(b,"hydrate")};k?E.type.__asyncLoader().then(()=>!b.isUnmounted&&T()):T()}else{Sn(b,"render");const T=b.subTree=sl(b);En(b,"render"),Sn(b,"patch"),A(null,T,R,B,b,q,oe),En(b,"patch"),E.el=T.el}if(y&&Tt(y,q),!k&&(ye=be&&be.onVnodeMounted)){const T=E;Tt(()=>dn(ye,_,T),q)}(E.shapeFlag&256||_&&Ys(_.vnode)&&_.vnode.shapeFlag&256)&&b.a&&Tt(b.a,q),b.isMounted=!0,eb(b),E=R=B=null}},Z=b.effect=new Va(J,()=>ur(X),b.scope),X=b.update=()=>Z.run();X.id=b.uid,Po(b,!0),Z.onTrack=b.rtc?ye=>Zo(b.rtc,ye):void 0,Z.onTrigger=b.rtg?ye=>Zo(b.rtg,ye):void 0,X.ownerInstance=b,X()},N=(b,E,R)=>{E.component=b;const B=b.vnode.props;b.vnode=E,b.next=null,zb(b,E.props,B,R),Xb(b,E.children,R),vo(),Ad(),_o()},me=(b,E,R,B,q,oe,le,J,Z=!1)=>{const X=b&&b.children,ye=b?b.shapeFlag:0,U=E.children,{patchFlag:be,shapeFlag:m}=E;if(be>0){if(be&128){Me(X,U,R,B,q,oe,le,J,Z);return}else if(be&256){ke(X,U,R,B,q,oe,le,J,Z);return}}m&8?(ye&16&&_t(X,q,oe),U!==X&&p(R,U)):ye&16?m&16?Me(X,U,R,B,q,oe,le,J,Z):_t(X,q,oe,!0):(ye&8&&p(R,""),m&16&&pe(U,R,B,q,oe,le,J,Z))},ke=(b,E,R,B,q,oe,le,J,Z)=>{b=b||Xo,E=E||Xo;const X=b.length,ye=E.length,U=Math.min(X,ye);let be;for(be=0;be<U;be++){const m=E[be]=Z?Yn(E[be]):Kt(E[be]);A(b[be],m,R,null,q,oe,le,J,Z)}X>ye?_t(b,q,oe,!0,!1,U):pe(E,R,B,q,oe,le,J,Z,U)},Me=(b,E,R,B,q,oe,le,J,Z)=>{let X=0;const ye=E.length;let U=b.length-1,be=ye-1;for(;X<=U&&X<=be;){const m=b[X],y=E[X]=Z?Yn(E[X]):Kt(E[X]);if(Gn(m,y))A(m,y,R,null,q,oe,le,J,Z);else break;X++}for(;X<=U&&X<=be;){const m=b[U],y=E[be]=Z?Yn(E[be]):Kt(E[be]);if(Gn(m,y))A(m,y,R,null,q,oe,le,J,Z);else break;U--,be--}if(X>U){if(X<=be){const m=be+1,y=m<ye?E[m].el:B;for(;X<=be;)A(null,E[X]=Z?Yn(E[X]):Kt(E[X]),R,y,q,oe,le,J,Z),X++}}else if(X>be)for(;X<=U;)Qe(b[X],q,oe,!0),X++;else{const m=X,y=X,_=new Map;for(X=y;X<=be;X++){const Se=E[X]=Z?Yn(E[X]):Kt(E[X]);Se.key!=null&&(_.has(Se.key)&&re("Duplicate keys found during update:",JSON.stringify(Se.key),"Make sure keys are unique."),_.set(Se.key,X))}let k,T=0;const S=be-y+1;let z=!1,V=0;const te=new Array(S);for(X=0;X<S;X++)te[X]=0;for(X=m;X<=U;X++){const Se=b[X];if(T>=S){Qe(Se,q,oe,!0);continue}let ve;if(Se.key!=null)ve=_.get(Se.key);else for(k=y;k<=be;k++)if(te[k-y]===0&&Gn(Se,E[k])){ve=k;break}ve===void 0?Qe(Se,q,oe,!0):(te[ve-y]=X+1,ve>=V?V=ve:z=!0,A(Se,E[ve],R,null,q,oe,le,J,Z),T++)}const Oe=z?ov(te):Xo;for(k=Oe.length-1,X=S-1;X>=0;X--){const Se=y+X,ve=E[Se],je=Se+1<ye?E[Se+1].el:B;te[X]===0?A(null,ve,R,je,q,oe,le,J,Z):z&&(k<0||X!==Oe[k]?Fe(ve,R,je,2):k--)}}},Fe=(b,E,R,B,q=null)=>{const{el:oe,type:le,transition:J,children:Z,shapeFlag:X}=b;if(X&6){Fe(b.component.subTree,E,R,B);return}if(X&128){b.suspense.move(E,R,B);return}if(X&64){le.move(b,E,R,ot);return}if(le===Ne){o(oe,E,R);for(let U=0;U<Z.length;U++)Fe(Z[U],E,R,B);o(b.anchor,E,R);return}if(le===ei){H(b,E,R);return}if(B!==2&&X&1&&J)if(B===0)J.beforeEnter(oe),o(oe,E,R),Tt(()=>J.enter(oe),q);else{const{leave:U,delayLeave:be,afterLeave:m}=J,y=()=>o(oe,E,R),_=()=>{U(oe,()=>{y(),m&&m()})};be?be(oe,y,_):_()}else o(oe,E,R)},Qe=(b,E,R,B=!1,q=!1)=>{const{type:oe,props:le,ref:J,children:Z,dynamicChildren:X,shapeFlag:ye,patchFlag:U,dirs:be}=b;if(J!=null&&bl(J,null,R,b,!0),ye&256){E.ctx.deactivate(b);return}const m=ye&1&&be,y=!Ys(b);let _;if(y&&(_=le&&le.onVnodeBeforeUnmount)&&dn(_,E,b),ye&6)Bn(b.component,R,B);else{if(ye&128){b.suspense.unmount(R,B);return}m&&Eo(b,null,E,"beforeUnmount"),ye&64?b.type.remove(b,E,R,q,ot,B):X&&(oe!==Ne||U>0&&U&64)?_t(X,E,R,!1,!0):(oe===Ne&&U&384||!q&&ye&16)&&_t(Z,E,R),B&&jt(b)}(y&&(_=le&&le.onVnodeUnmounted)||m)&&Tt(()=>{_&&dn(_,E,b),m&&Eo(b,null,E,"unmounted")},R)},jt=b=>{const{type:E,el:R,anchor:B,transition:q}=b;if(E===Ne){b.patchFlag>0&&b.patchFlag&2048&&q&&!q.persisted?b.children.forEach(le=>{le.type===vt?s(le.el):jt(le)}):Ut(R,B);return}if(E===ei){se(b);return}const oe=()=>{s(R),q&&!q.persisted&&q.afterLeave&&q.afterLeave()};if(b.shapeFlag&1&&q&&!q.persisted){const{leave:le,delayLeave:J}=q,Z=()=>le(R,oe);J?J(b.el,oe,Z):Z()}else oe()},Ut=(b,E)=>{let R;for(;b!==E;)R=w(b),s(b),b=R;s(E)},Bn=(b,E,R)=>{b.type.__hmrId&&Jy(b);const{bum:B,scope:q,update:oe,subTree:le,um:J}=b;B&&Zo(B),q.stop(),oe&&(oe.active=!1,Qe(le,b,E,R)),J&&Tt(J,E),Tt(()=>{b.isUnmounted=!0},E),E&&E.pendingBranch&&!E.isUnmounted&&b.asyncDep&&!b.asyncResolved&&b.suspenseId===E.pendingId&&(E.deps--,E.deps===0&&E.resolve()),nb(b)},_t=(b,E,R,B=!1,q=!1,oe=0)=>{for(let le=oe;le<b.length;le++)Qe(b[le],E,R,B,q)},xt=b=>b.shapeFlag&6?xt(b.component.subTree):b.shapeFlag&128?b.suspense.next():w(b.anchor||b.el),ft=(b,E,R)=>{b==null?E._vnode&&Qe(E._vnode,null,null,!0):A(E._vnode||null,b,E,null,null,null,R),Ad(),Od(),E._vnode=b},ot={p:A,um:Qe,m:Fe,r:jt,mt:_e,mc:pe,pc:me,pbc:ge,n:xt,o:e};let ao,dt;return t&&([ao,dt]=t(ot)),{render:ft,hydrate:ao,createApp:Zb(ft,ao)}}function Po({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function br(e,t,n=!1){const o=e.children,s=t.children;if(xe(o)&&xe(s))for(let i=0;i<o.length;i++){const r=o[i];let a=s[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[i]=Yn(s[i]),a.el=r.el),n||br(r,a)),a.type===Zs&&(a.el=r.el),a.type===vt&&!a.el&&(a.el=r.el)}}function ov(e){const t=e.slice(),n=[0];let o,s,i,r,a;const u=e.length;for(o=0;o<u;o++){const f=e[o];if(f!==0){if(s=n[n.length-1],e[s]<f){t[o]=s,n.push(o);continue}for(i=0,r=n.length-1;i<r;)a=i+r>>1,e[n[a]]<f?i=a+1:r=a;f<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,r=n[i-1];i-- >0;)n[i]=r,r=t[r];return n}const sv=e=>e.__isTeleport,Ne=Symbol("Fragment"),Zs=Symbol("Text"),vt=Symbol("Comment"),ei=Symbol("Static"),ti=[];let Vt=null;function K(e=!1){ti.push(Vt=e?null:[])}function ff(){ti.pop(),Vt=ti[ti.length-1]||null}let ss=1;function pf(e){ss+=e}function hf(e){return e.dynamicChildren=ss>0?Vt||Xo:null,ff(),ss>0&&Vt&&Vt.push(e),e}function Q(e,t,n,o,s,i){return hf(d(e,t,n,o,s,i,!0))}function Wt(e,t,n,o,s){return hf(Ce(e,t,n,o,s,!0))}function is(e){return e?e.__v_isVNode===!0:!1}function Gn(e,t){return t.shapeFlag&6&&ns.has(t.type)?(e.shapeFlag&=-257,t.shapeFlag&=-513,!1):e.type===t.type&&e.key===t.key}const iv=(...e)=>rv(...e),vr="__vInternal",mf=({key:e})=>e!=null?e:null,_r=({ref:e,ref_key:t,ref_for:n})=>e!=null?Xe(e)||it(e)||Pe(e)?{i:lt,r:e,k:t,f:!!n}:e:null;function d(e,t=null,n=null,o=0,s=null,i=e===Ne?0:1,r=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&mf(t),ref:t&&_r(t),scopeId:fr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:lt};return a?(vl(u,n),i&128&&e.normalize(u)):n&&(u.shapeFlag|=Xe(n)?8:16),u.key!==u.key&&re("VNode created with invalid key (NaN). VNode type:",u.type),ss>0&&!r&&Vt&&(u.patchFlag>0||i&6)&&u.patchFlag!==32&&Vt.push(u),u}const Ce=iv;function rv(e,t=null,n=null,o=0,s=null,i=!1){if((!e||e===Ib)&&(e||re(`Invalid vnode type when creating vnode: ${e}.`),e=vt),is(e)){const a=Jn(e,t,!0);return n&&vl(a,n),ss>0&&!i&&Vt&&(a.shapeFlag&6?Vt[Vt.indexOf(e)]=a:Vt.push(a)),a.patchFlag|=-2,a}if(_f(e)&&(e=e.__vccOpts),t){t=gf(t);let{class:a,style:u}=t;a&&!Xe(a)&&(t.class=Ye(a)),Ve(u)&&(cr(u)&&!xe(u)&&(u=st({},u)),t.style=vn(u))}const r=Xe(e)?1:hb(e)?128:sv(e)?64:Ve(e)?4:Pe(e)?2:0;return r&4&&cr(e)&&(e=Be(e),re("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
Component that was made reactive: `,e)),d(e,t,n,o,s,r,i,!0)}function gf(e){return e?cr(e)||vr in e?st({},e):e:null}function Jn(e,t,n=!1){const{props:o,ref:s,patchFlag:i,children:r}=e,a=t?yf(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&mf(a),ref:t&&t.ref?n&&s?xe(s)?s.concat(_r(t)):[s,_r(t)]:_r(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i===-1&&xe(r)?r.map(wf):r,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ne?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Jn(e.ssContent),ssFallback:e.ssFallback&&Jn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function wf(e){const t=Jn(e);return xe(e.children)&&(t.children=e.children.map(wf)),t}function ce(e=" ",t=0){return Ce(Zs,null,e,t)}function av(e,t){const n=Ce(ei,null,e);return n.staticCount=t,n}function Ge(e="",t=!1){return t?(K(),Wt(vt,null,e)):Ce(vt,null,e)}function Kt(e){return e==null||typeof e=="boolean"?Ce(vt):xe(e)?Ce(Ne,null,e.slice()):typeof e=="object"?Yn(e):Ce(Zs,null,String(e))}function Yn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Jn(e)}function vl(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(xe(t))n=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),vl(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(vr in t)?t._ctx=lt:s===3&<&&(lt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Pe(t)?(t={default:t,_ctx:lt},n=32):(t=String(t),o&64?(n=16,t=[ce(t)]):n=8);e.children=t,e.shapeFlag|=n}function yf(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=Ye([t.class,o.class]));else if(s==="style")t.style=vn([t.style,o.style]);else if(Ts(s)){const i=t[s],r=o[s];r&&i!==r&&!(xe(i)&&i.includes(r))&&(t[s]=i?[].concat(i,r):r)}else s!==""&&(t[s]=o[s])}return t}function dn(e,t,n,o=null){Zt(e,t,7,[n,o])}const lv=df();let cv=0;function uv(e,t,n){const o=e.type,s=(t?t.appContext:e.appContext)||lv,i={uid:cv++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new Qw(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ef(o,s),emitsOptions:Dd(o,s),emit:null,emitted:null,propsDefaults:We,inheritAttrs:o.inheritAttrs,ctx:We,data:We,props:We,attrs:We,slots:We,refs:We,setupState:We,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx=Tb(i),i.root=t?t.root:i,i.emit=rb.bind(null,i),e.ce&&e.ce(i),i}let et=null;const dv=()=>et||lt,Xn=e=>{et=e,e.scope.on()},Qn=()=>{et&&et.scope.off(),et=null},fv=Un("slot,component");function _l(e,t){const n=t.isNativeTag||Ku;(fv(e)||n(e))&&re("Do not use built-in or reserved HTML elements as component id: "+e)}function bf(e){return e.vnode.shapeFlag&4}let ni=!1;function pv(e,t=!1){ni=t;const{props:n,children:o}=e.vnode,s=bf(e);Ub(e,n,s,t),Yb(e,o);const i=s?hv(e,t):void 0;return ni=!1,i}function hv(e,t){var n;const o=e.type;{if(o.name&&_l(o.name,e.appContext.config),o.components){const i=Object.keys(o.components);for(let r=0;r<i.length;r++)_l(i[r],e.appContext.config)}if(o.directives){const i=Object.keys(o.directives);for(let r=0;r<i.length;r++)Wd(i[r])}o.compilerOptions&&mv()&&re('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}e.accessCache=Object.create(null),e.proxy=vd(new Proxy(e.ctx,Jd)),Mb(e);const{setup:s}=o;if(s){const i=e.setupContext=s.length>1?wv(e):null;Xn(e),vo();const r=Cn(s,e,0,[es(e.props),i]);if(_o(),Qn(),Wi(r)){if(r.then(Qn,Qn),t)return r.then(a=>{xl(e,a,t)}).catch(a=>{js(a,e,0)});if(e.asyncDep=r,!e.suspense){const a=(n=o.name)!==null&&n!==void 0?n:"Anonymous";re(`Component <${a}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else xl(e,r,t)}else vf(e,t)}function xl(e,t,n){Pe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ve(t)?(is(t)&&re("setup() should not return VNodes directly - return a render function instead."),e.devtoolsRawSetupState=t,e.setupState=Cd(t),Lb(e)):t!==void 0&&re(`setup() should return an object. Received: ${t===null?"null":typeof t}`),vf(e,n)}let Cl;const mv=()=>!Cl;function vf(e,t,n){const o=e.type;if(!e.render){if(!t&&Cl&&!o.render){const s=o.template||hl(e).template;if(s){Sn(e,"compile");const{isCustomElement:i,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:u}=o,f=st(st({isCustomElement:i,delimiters:a},r),u);o.render=Cl(s,f),En(e,"compile")}}e.render=o.render||Ot}Xn(e),vo(),Db(e),_o(),Qn(),!o.render&&e.render===Ot&&!t&&(o.template?re('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):re("Component is missing template or render function."))}function gv(e){return new Proxy(e.attrs,{get(t,n){return hr(),It(e,"get","$attrs"),t[n]},set(){return re("setupContext.attrs is readonly."),!1},deleteProperty(){return re("setupContext.attrs is readonly."),!1}})}function wv(e){const t=o=>{if(e.exposed&&re("expose() should be called only once per setup()."),o!=null){let s=typeof o;s==="object"&&(xe(o)?s="array":it(o)&&(s="ref")),s!=="object"&&re(`expose() should be passed a plain object, received ${s}.`)}e.exposed=o||{}};let n;return Object.freeze({get attrs(){return n||(n=gv(e))},get slots(){return es(e.slots)},get emit(){return(o,...s)=>e.emit(o,...s)},expose:t})}function xr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Cd(vd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Oo)return Oo[n](e)},has(t,n){return n in t||n in Oo}}))}const yv=/(?:^|[-_])(\w)/g,bv=e=>e.replace(yv,t=>t.toUpperCase()).replace(/[-_]/g,"");function $l(e,t=!0){return Pe(e)?e.displayName||e.name:e.name||t&&e.__name}function Cr(e,t,n=!1){let o=$l(t);if(!o&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(o=s[1])}if(!o&&e&&e.parent){const s=i=>{for(const r in i)if(i[r]===t)return r};o=s(e.components||e.parent.type.components)||s(e.appContext.components)}return o?bv(o):n?"App":"Anonymous"}function _f(e){return Pe(e)&&"__vccOpts"in e}const Zn=(e,t)=>Ny(e,t,ni);function en(e){const t=dv();t||re("withAsyncContext called without active current instance. This is likely a bug.");let n=e();return Qn(),Wi(n)&&(n=n.catch(o=>{throw Xn(t),o})),[n,()=>Xn(t)]}function vv(e,t,n){const o=arguments.length;return o===2?Ve(t)&&!xe(t)?is(t)?Ce(e,null,[t]):Ce(e,t):Ce(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&is(n)&&(n=[n]),Ce(e,t,n))}const _v=Symbol("ssrContext"),xv=()=>{{const e=Js(_v);return e||re("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function kl(e){return!!(e&&e.__v_isShallow)}function Cv(){if(typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#0b1bc9"},n={style:"color:#b62e24"},o={style:"color:#9d288c"},s={header(h){return Ve(h)?h.__isVue?["div",e,"VueInstance"]:it(h)?["div",{},["span",e,p(h)],"<",a(h.value),">"]:xo(h)?["div",{},["span",e,kl(h)?"ShallowReactive":"Reactive"],"<",a(h),`>${Vn(h)?" (readonly)":""}`]:Vn(h)?["div",{},["span",e,kl(h)?"ShallowReadonly":"Readonly"],"<",a(h),">"]:null:null},hasBody(h){return h&&h.__isVue},body(h){if(h&&h.__isVue)return["div",{},...i(h.$)]}};function i(h){const w=[];h.type.props&&h.props&&w.push(r("props",Be(h.props))),h.setupState!==We&&w.push(r("setup",h.setupState)),h.data!==We&&w.push(r("data",Be(h.data)));const C=u(h,"computed");C&&w.push(r("computed",C));const x=u(h,"inject");return x&&w.push(r("injected",x)),w.push(["div",{},["span",{style:o.style+";opacity:0.66"},"$ (internal): "],["object",{object:h}]]),w}function r(h,w){return w=st({},w),Object.keys(w).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},h],["div",{style:"padding-left:1.25em"},...Object.keys(w).map(C=>["div",{},["span",o,C+": "],a(w[C],!1)])]]:["span",{}]}function a(h,w=!0){return typeof h=="number"?["span",t,h]:typeof h=="string"?["span",n,JSON.stringify(h)]:typeof h=="boolean"?["span",o,h]:Ve(h)?["object",{object:w?Be(h):h}]:["span",n,String(h)]}function u(h,w){const C=h.type;if(Pe(C))return;const x={};for(const A in h.ctx)f(C,A,w)&&(x[A]=h.ctx[A]);return x}function f(h,w,C){const x=h[C];if(xe(x)&&x.includes(w)||Ve(x)&&w in x||h.extends&&f(h.extends,w,C)||h.mixins&&h.mixins.some(A=>f(A,w,C)))return!0}function p(h){return kl(h)?"ShallowRef":h.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(s):window.devtoolsFormatters=[s]}const xf="3.2.47",$v="http://www.w3.org/2000/svg",To=typeof document<"u"?document:null,Cf=To&&To.createElement("template"),kv={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const s=t?To.createElementNS($v,e):To.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>To.createTextNode(e),createComment:e=>To.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>To.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,s,i){const r=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Cf.innerHTML=o?`<svg>${e}</svg>`:e;const a=Cf.content;if(o){const u=a.firstChild;for(;u.firstChild;)a.appendChild(u.firstChild);a.removeChild(u)}t.insertBefore(a,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Sv(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Ev(e,t,n){const o=e.style,s=Xe(n);if(n&&!s){if(t&&!Xe(t))for(const i in t)n[i]==null&&Sl(o,i,"");for(const i in n)Sl(o,i,n[i])}else{const i=o.display;s?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=i)}}const Av=/[^\\];\s*$/,$f=/\s*!important$/;function Sl(e,t,n){if(xe(n))n.forEach(o=>Sl(e,t,o));else if(n==null&&(n=""),Av.test(n)&&re(`Unexpected semicolon at the end of '${t}' style value: '${n}'`),t.startsWith("--"))e.setProperty(t,n);else{const o=Ov(e,t);$f.test(n)?e.setProperty(_n(o),n.replace($f,""),"important"):e[o]=n}}const kf=["Webkit","Moz","ms"],El={};function Ov(e,t){const n=El[t];if(n)return n;let o=an(t);if(o!=="filter"&&o in e)return El[t]=o;o=wo(o);for(let s=0;s<kf.length;s++){const i=kf[s]+o;if(i in e)return El[t]=i}return t}const Sf="http://www.w3.org/1999/xlink";function Iv(e,t,n,o,s){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Sf,t.slice(6,t.length)):e.setAttributeNS(Sf,t,n);else{const i=qw(t);n==null||i&&!Vu(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function Pv(e,t,n,o,s,i,r){if(t==="innerHTML"||t==="textContent"){o&&r(o,s,i),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const u=n==null?"":n;(e.value!==u||e.tagName==="OPTION")&&(e.value=u),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const u=typeof e[t];u==="boolean"?n=Vu(n):n==null&&u==="string"?(n="",a=!0):u==="number"&&(n=0,a=!0)}try{e[t]=n}catch(u){a||re(`Failed setting prop "${t}" on <${e.tagName.toLowerCase()}>: value ${n} is invalid.`,u)}a&&e.removeAttribute(t)}function eo(e,t,n,o){e.addEventListener(t,n,o)}function Tv(e,t,n,o){e.removeEventListener(t,n,o)}function Mv(e,t,n,o,s=null){const i=e._vei||(e._vei={}),r=i[t];if(o&&r)r.value=o;else{const[a,u]=Lv(t);if(o){const f=i[t]=Nv(o,s);eo(e,a,f,u)}else r&&(Tv(e,a,r,u),i[t]=void 0)}}const Ef=/(?:Once|Passive|Capture)$/;function Lv(e){let t;if(Ef.test(e)){t={};let o;for(;o=e.match(Ef);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):_n(e.slice(2)),t]}let Al=0;const Bv=Promise.resolve(),Dv=()=>Al||(Bv.then(()=>Al=0),Al=Date.now());function Nv(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Zt(Rv(o,n.value),t,5,[o])};return n.value=e,n.attached=Dv(),n}function Rv(e,t){if(xe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const Af=/^on[a-z]/,Fv=(e,t,n,o,s=!1,i,r,a,u)=>{t==="class"?Sv(e,o,s):t==="style"?Ev(e,n,o):Ts(t)?Vi(t)||Mv(e,t,n,o,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):jv(e,t,o,s))?Pv(e,t,o,i,r,a,u):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Iv(e,t,o,s))};function jv(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Af.test(t)&&Pe(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Af.test(t)&&Xe(n)?!1:t in e}const rs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return xe(t)?n=>Zo(t,n):t};function Uv(e){e.target.composing=!0}function Of(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ze={created(e,{modifiers:{lazy:t,trim:n,number:o}},s){e._assign=rs(s);const i=o||s.props&&s.props.type==="number";eo(e,t?"change":"input",r=>{if(r.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=Yi(a)),e._assign(a)}),n&&eo(e,"change",()=>{e.value=e.value.trim()}),t||(eo(e,"compositionstart",Uv),eo(e,"compositionend",Of),eo(e,"change",Of))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:s}},i){if(e._assign=rs(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(s||e.type==="number")&&Yi(e.value)===t))return;const r=t==null?"":t;e.value!==r&&(e.value=r)}},Ee={deep:!0,created(e,t,n){e._assign=rs(n),eo(e,"change",()=>{const o=e._modelValue,s=si(e),i=e.checked,r=e._assign;if(xe(o)){const a=Na(o,s),u=a!==-1;if(i&&!u)r(o.concat(s));else if(!i&&u){const f=[...o];f.splice(a,1),r(f)}}else if(Qo(o)){const a=new Set(o);i?a.add(s):a.delete(s),r(a)}else r(Tf(e,i))})},mounted:If,beforeUpdate(e,t,n){e._assign=rs(n),If(e,t,n)}};function If(e,{value:t,oldValue:n},o){e._modelValue=t,xe(t)?e.checked=Na(t,o.props.value)>-1:Qo(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=Ps(t,Tf(e,!0)))}const oi={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const s=Qo(t);eo(e,"change",()=>{const i=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?Yi(si(r)):si(r));e._assign(e.multiple?s?new Set(i):i:i[0])}),e._assign=rs(o)},mounted(e,{value:t}){Pf(e,t)},beforeUpdate(e,t,n){e._assign=rs(n)},updated(e,{value:t}){Pf(e,t)}};function Pf(e,t){const n=e.multiple;if(n&&!xe(t)&&!Qo(t)){re(`<select multiple v-model> expects an Array or Set value for its binding, but got ${Object.prototype.toString.call(t).slice(8,-1)}.`);return}for(let o=0,s=e.options.length;o<s;o++){const i=e.options[o],r=si(i);if(n)xe(t)?i.selected=Na(t,r)>-1:i.selected=t.has(r);else if(Ps(si(i),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}function si(e){return"_value"in e?e._value:e.value}function Tf(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Hv=["ctrl","shift","alt","meta"],zv={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Hv.some(n=>e[`${n}Key`]&&!t.includes(n))},qv=(e,t)=>(n,...o)=>{for(let s=0;s<t.length;s++){const i=zv[t[s]];if(i&&i(n,t))return}return e(n,...o)},Vv={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Mf=(e,t)=>n=>{if(!("key"in n))return;const o=_n(n.key);if(t.some(s=>s===o||Vv[s]===o))return e(n)},Gt={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):ii(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),ii(e,!0),o.enter(e)):o.leave(e,()=>{ii(e,!1)}):ii(e,t))},beforeUnmount(e,{value:t}){ii(e,t)}};function ii(e,t){e.style.display=t?e._vod:"none"}const Wv=st({patchProp:Fv},kv);let Lf;function Kv(){return Lf||(Lf=tv(Wv))}const to=(...e)=>{const t=Kv().createApp(...e);Gv(t),Jv(t);const{mount:n}=t;return t.mount=o=>{const s=Yv(o);if(!s)return;const i=t._component;!Pe(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const r=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),r},t};function Gv(e){Object.defineProperty(e.config,"isNativeTag",{value:t=>Hw(t)||zw(t),writable:!1})}function Jv(e){{const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get(){return t},set(){re("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const n=e.config.compilerOptions,o='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-dom';Object.defineProperty(e.config,"compilerOptions",{get(){return re(o),n},set(){re(o)}})}}function Yv(e){if(Xe(e)){const t=document.querySelector(e);return t||re(`Failed to mount app: mount target selector "${e}" returned null.`),t}return window.ShadowRoot&&e instanceof window.ShadowRoot&&e.mode==="closed"&&re('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}function Xv(){Cv()}Xv();const Qv={key:0,class:"ce-custom-url-help"},Zv={class:"ce-custom-url-help-body"},e_=d("hr",null,null,-1),t_={key:0},n_={class:"pure-table pure-table-bordered"},o_=d("thead",null,[d("tr",null,[d("th",{width:"50%"},"变量"),d("th",{width:"50%"},"说明")])],-1),s_=["onClick"],i_=De({__name:"CustomUrlHelp",setup(e){const t=he(yw),n=he(!1);Rt(async()=>{window.addEventListener("message",s=>{const{event:i}=s.data;i==="customUrlHelp"&&(n.value=!0)},!1)});async function o(s){Yt(s.key),ue({text:"已复制到剪贴板",icon:"success",timer:1e3})}return(s,i)=>n.value?(K(),Q("div",Qv,[d("div",Zv,[d("h1",null,[ce(" 自定义菜单变量说明 "),d("a",{href:"javascript:void(0)",onClick:i[0]||(i[0]=r=>n.value=!1)},"关闭")]),e_,(K(!0),Q(Ne,null,nt(t.value,(r,a)=>(K(),Q("div",{key:a},[d("h2",null,we(r.label),1),r.memo?(K(),Q("p",t_,we(r.memo),1)):Ge("",!0),d("table",n_,[o_,d("tbody",null,[(K(!0),Q(Ne,null,nt(r.items,(u,f)=>(K(),Q("tr",{key:f},[d("td",null,[d("span",{class:"ce-variable",onClick:p=>o(u)},we(u.key),9,s_)]),d("td",null,we(u.label),1)]))),128))])])]))),128))])])):Ge("",!0)}}),AT="",OT="",Bf="enabled_custom_urls_for_search",Df="enabled_custom_urls_for_play";async function r_(e){await Ze.set(Bf,e)}async function a_(e){await Ze.set(Df,e)}async function l_(){const e=Pl,t=e.filter(s=>s.enabled).map(s=>s.key),n=await Ze.get(Bf,t),o=[];return e.forEach(s=>{n.includes(s.key)&&o.push(s.key)}),o}async function c_(){const e=Il,t=e.filter(s=>s.enabled).map(s=>s.key),n=await Ze.get(Df,t),o=[];return e.forEach(s=>{n.includes(s.key)&&o.push(s.key)}),o}async function Nf(){const e=await l_();return Pl.forEach(t=>{t.enabled=e.includes(t.key)}),Pl}async function $r(){const e=await c_();return Il.forEach(t=>{t.enabled=e.includes(t.key)}),Il}const Rf="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABu0lEQVRYhe2WsVXDMBCG/xNNSrFBmAB3tBEZIJkAmCBog9gbGLNAwgQwQJ5MSecNYASVaayjcBIrEDvye06V/JVs/777fJJOBi666NxFoUapzQiunAJiAmC4uV2AuACJxKbq5yQAUhsJxhzMuj0SpxsQ2xuA1EbCuRyg28B4BQSpLhCi9SljvpeckUOQgqBrm90TBCkAS++NCOzmocmBlgpIbYZw/O3RJDYbxwe9s1UMUJ24qkIeAtBcAVfWyYgWTckBwGbjGIw6oXPTkOTtABB16WmvzId1RUl9QZMeABBtB4HlLLzxsNHVAWAnqY085um6/UIA/MYSNbo2ktqMvMui0RgOwB+7YcnHt5Yrn3Zjoh4AhHivA2IkZ6YRonomHj1/0uT9q/ZOOFulAD3Xbl6AxNKmKt+siwglz0Goy8/I7eu96gdAGwnHBgFr4E/Y2GYqqAqtu8Cmylbtll+ORvIbEThum7JggC2EzcYagm5Q9X1/gf0A/AJBqio7e18dBhH8PxCqf+fCkem46htg/fWWD+4eCKDtwhwN7p6w/lp+HvIHdcKuqg6u/elo8p4E4D8EB/eFiy46P/0C5gmePG6KKVsAAAAASUVORK5CYII=",Ol="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAACAlJREFUaEPtmWuIXVcVx3/7vt9zJ5NOZ5JGkxQDEZroF7WxYGILGoWmLxXamtG0RUhoLSiW4hdFPxRFSytJLVpNRqTE2qq1WqiFGbWhNiCSIClU1EZj0ySTedz3uY+zZN19bjL3zn1NckcNeODAuTPn7L3/6/Ff/7W34Qq/zBW+fv4P4L/tweV4wAf4vVuf9V7O992wCuB6dw3QW3/3vPpZQODYsWM7t2zZ8nzP0Qb4wvHjx2/eunXri0C127C9AMRFJDfAdS17KGNMAsh3+rAbgKSIZJY94wp8YIxJAdl2Q3cCEBIRZwXWcslDGmPCQLl1gHYAzNTU1O3bt29/pr/ZNP8AEXvXRzRg9KFXhPY3g741PT39iR07djyrMy3+qt0MfVrfW7DU4LVHkX8cAX8QXBfExdxxGEwAfIMjq3ZeaAcgJSIL3W2ji3ehVoGnd0E0idQX6l3672oV3+rNsOMr4At4/7g8jxhjhoCmvGw34qiInOkKQK3uVuEHNyGRmAVSydu/GR8SjEIwDr4wUnHw3/1zC8JcnjeMMVcDZ3uF0DUi8s/OAMQutJSFgzuRWhmK8+DkkIpStoFQBOJpiK9GIkkQg/9j34CRTeDTWnhpnjDGrANO9QLwThF5szMAF6pleOJGyJ1BnBw4WSiVEVeTNwCuQDiEJNOQHoX4MAQimFAM3ycnPW8sP8mNMeuBk70AbBCRv3UEoOFTKcHXNuG8WSJ/tAiOgxEX/5oUiW0pqDgWWNBAMoUMj2CSV0EkAbUa/omfQiC87JAyxmwE/n75AJwCPLyOuRdKmFoVqdYsc0ZjpH/5ErUn7wF9x5kHKSPJGKRXwdAohNOIBPC/93Z877vTS/D+QmqAAPJkP7gWd76AiGA8atan9KtvgJNBfvUY7okjUJxDakWI+pHEECRHkdgI4o+CUyP8hefA31+CDxbADeOQL9TLilaWug0FkkdPWw8XFqCUofrtT9cBUVygpgJTKTc5AhpS4RRSFqJf/CFEV/VM8IECKHx4DMkXl6RK/NVZ8IcstZZykD1L9bE9yPw8bka9UUaCYdxkGpMahdgqYtcFYWgDfORbXUNqoABKH28B4LkhOj0PoZiVFRXH5kL2LPLX1yh//xHcbAa3qLrMhxsbwqRGSNy4GkwIYmvh1ic7ghgoAOe2MShZD9QlkJeH4V8rAC1iPisrlHIrRdBF52YoPHQn5PLUchncSgXxx0nfscqGkOuDPS9bhrpQvS86eaAAKnePQbFog3+RvAo+2wCgBcvTS7WqpV4nD5mzOI8/ROXPr1M7N0voHWWi74lAZBj8Mdj2eXj/HqurWgreQAFU93gAWrIg8HQDgOqfBjKt3lo/HCgXIDMDc6dwf3wXPpm1C/VHLID0RnhgGgIhr2tdIQ/U7hkDpyWEfOCfXAxgkbpTMPWQcmw4PXU95DKQX4CqCkM/KLWuvx4+9zMrR+pt9woBcO8bQ4rFeuw37Gz84DvYBYCG0us/gT9+F7LnYe4MZLJQrIIEIZSCh/8Aw2sguOIAxqFQuLg3obkQMPiemvOSuCGhG9K7Cs/fYjc1ijk4/xbMKACt2KZeoQlH4ctHITa08iHk7rsWk80gbgWMYFS8hQP49r+1CIAX+8UZmLoXVOwVsjD7NszOQEaFoA9CwxBKwt5nYHgdRJTFlARWKoQ0EX/xVeTlw5bnTQ3iUcz6a+GBF0H7AdX+KrtfeRDyp6BagfwczJ2F+TnIFMGNQGgEQgn47CSk19QrdZ2B2vQOg2EhlQPlEuTOIY/stDrGJ+CvYO5/AYbGrfuVdV66FQhCOQ+587BwDhYyUNA9qwSE0rD9Qdh4AwyNQThuv613d83W11QeHABNxlIesqctGL1CYUiOWeufOQInHrdtZ3EBFtTqs5DNQSUEgTQEEnDXJMRHIJq2rKOWv9BDL1WogwOgpbdRnCq60yEQCFpvTH3KVlGly/yMtXpmAXJlkBgEh2F0M3z065BQeR23i9eYv7CT0V5eDwiAmlt3Hjx2UW7XcKkW4JUJ63pVnzlNUg0ZTVQtVEMQTMGuJyA1DonVEIp6smFxr9y5N+gXwHoRaep6lnZnLRU2dxp+fy/4DJTm6/nBwhyoWq1ELEUGE3DbjzwZnbA8r17rYfWWQrYBaGp328Ht0RMvHtK18uC5bVYKaLLmz0M+A44mqoZHGq7bDZt31ZuZulINhm241a/+e+N+e+K1ItLU+Xftj5VSD38AnDKU5mxxcwMQ0pBJwi2TENNE1d9q9QbLNGzXXzvpsdA1wL969cRXiUjT3ktHAMrzCuB3X4KTv4VCHqpirZxYAzc9Cqmr7W+N9z4SteNclkZHgXO9ACREpO1O8JLBGzsUGvN/OgAnf2OF2Ye+CUPrIK5toyaqWn3xflD/Vm/JgSTQtN3fbqTAoUOHPrN79+7vdbOG/Z+qyKqtxsr3yj56aXOi9HgJidppzsnJyfsmJiYOth54tN2dBnR78e3eABpUqjRatmCUVTRBL1h9eYnaaU5jzJi3rdhzd1rHUIp4l4ic6A3CO8rSetBYa9P2+qWFS0vovBv4S7vjpm6j64HCJhE53htEk1EWvT6QxW8B3gDaHrj0mkEb0/H9+/ffvHfv3u/0BjK4Nw4cOHD/vn379GBRN5oqHUOrjykVpLZHaUD35/V5acPax0A9XtEYVGGl6lDPJ+a9507uvRixy5hbwTSESy/vLWPY+qu60MZ5cddFN+XHcmf5X3t/0Fb8j+O74gH8G0lHhV4uXv6RAAAAAElFTkSuQmCC",Il=[pt({enabled:!0,key:"p_builtin_iina",label:"IINA播放",icon:"https://iina.io/images/iina-icon-60.png",memo:"调用IINA播放视频(使用CloudDrive链接)",url:"iina://weblink?url={clouddrive_stream_url:encode}"}),pt({enabled:!0,key:"p_builtin_vlc",label:"VLC播放",icon:"https://images.videolan.org/images/favicon.ico",memo:"调用VLC播放视频(使用CloudDrive链接)",extraMemo:'<a href="https://github.com/stefansundin/vlc-protocol" target="_blank" rel="noreferer">安装VLC协议</a>',url:"vlc://{clouddrive_stream_url}"}),pt({enabled:!0,key:"p_builtin_mpv",label:"MPV播放",icon:"https://mpv.io/images/mpv-logo-128-0baae5aa.png",memo:"调用MPV播放视频(使用CloudDrive链接)",extraMemo:'<a href="https://github.com/akiirui/mpv-handler/blob/main/README.zh-Hans.md" target="_blank" rel="noreferer">安装MPV协议</a>',url:"mpv://{clouddrive_stream_url}"}),pt({enabled:!0,key:"p_builtin_potplayer",label:"PotPlayer播放",icon:"https://t1.daumcdn.net/potplayer/main/img/favicon.ico",memo:"调用PotPlayer播放视频(使用CloudDrive链接)",url:"potplayer://{clouddrive_stream_url}"}),pt({enabled:!0,key:"p_builtin_infuse",label:"Infuse播放",icon:Ol,memo:"调用Infuse播放视频(使用CloudDrive链接)",url:"infuse://x-callback-url/play?url={clouddrive_stream_url:encode}"}),pt({enabled:!1,key:"p_builtin_nplayer_mac",label:"nPlayer-mac播放",icon:Ol,memo:"调用nPlayer(mac版)播放视频(使用CloudDrive链接)",url:"nplayer-mac://weblink?url={clouddrive_stream_url:encode}&new_window=1"}),pt({enabled:!1,key:"p_builtin_nplayer_win",label:"nPlayer-win播放",icon:Ol,memo:"调用nPlayer(非mac版)播放视频(使用CloudDrive链接)",url:"nplayer-{clouddrive_stream_url:encode}"}),pt({enabled:!0,key:"p_builtin_online",label:"在线播放",icon:"https://115.com/favicon.ico",memo:"115官方在线播放(转码)",url:"https://v.anxia.com/?pickcode={pick_code}&share_id=0"})],Pl=[pt({enabled:!0,key:"s_builtin_115_pure_name",label:"115-不含后缀",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(不含后缀)",url:"{pure_name:search}"}),pt({enabled:!1,key:"s_builtin_115_full_name",label:"115-完整名称",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(完整文件名)",url:"{full_name:search}"}),pt({enabled:!0,key:"s_builtin_google_pure_name",label:"Google-不含后缀",icon:"https://www.google.com/favicon.ico",memo:"使用Google搜索文件名(不含后缀)",url:"https://www.google.com/search?q={pure_name:encode}"}),pt({enabled:!1,key:"s_builtin_google_full_name",label:"Google-完整名称",icon:"https://www.google.com/favicon.ico",memo:"使用Google搜索文件名(完整文件名)",url:"https://www.google.com/search?q={full_name:encode}"}),pt({enabled:!0,key:"s_builtin_bing_pure_name",label:"Bing-不含后缀",icon:Rf,memo:"使用Bing搜索文件名(不含后缀)",url:"https://cn.bing.com/search?q={pure_name:encode}"}),pt({enabled:!1,key:"s_builtin_bing_full_name",label:"Bing-完整名称",icon:Rf,memo:"使用Bing搜索文件名(完整文件名)",url:"https://cn.bing.com/search?q={full_name:encode}"}),pt({enabled:!0,key:"s_builtin_115_pure_name_manual",label:"115-不含后缀-手动",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(不含后缀),手动编辑后搜索",url:"{pure_name:manual:search}"})];var Mt=(e=>(e.openConfig="openConfig",e.closeConfig="closeConfig",e.basicConfigChange="basicConfigChange",e.listConfigChange="listConfigChange",e.searchConfigChange="searchConfigChange",e.toolsConfigChange="toolsConfigChange",e.listRendered="listRendered",e))(Mt||{}),Jt=(e=>(e.basic="basic",e.clouddrive="clouddrive",e.list="list",e.search="search",e.menus="menus",e.searchMenus="searchMenus",e.playMenus="playMenus",e.offline="offline",e.tools="tools",e.about="about",e))(Jt||{});const fn={basic:"基础设置",clouddrive:"CloudDrive",list:"列表增强",search:"搜索增强",menus:"菜单设置",searchMenus:"搜索菜单",playMenus:"播放菜单",offline:"离线管理",tools:"工具",about:"关于"},Ff="list_config";function u_(e){return{sizeSorter:!0,sizeSorterDirAttrInterval:100,showSha1:!1,showFolderSizeButton:!0,showCopyButtonOnPathBar:!1,showGotoButtonOnPathBar:!1,...e}}async function kr(){const e=u_(),t=await Ze.get(Ff,e);return{...e,...t}}async function d_(e){await Ze.set(Ff,e)}var jf=(e=>(e[e.asc=0]="asc",e[e.desc=1]="desc",e))(jf||{});async function f_(e,t,n=!1){const o=await kr(),s=await zt(!1),i=await Go(),r=await ho(!1);console.log("[items]",r),ue({html:"正在获取子文件夹大小...",icon:"info",position:"top-end",timer:0}),fe.showLoading();for(let a=0;a<r.length;a++){const u=r[a];if(!u.isDir)continue;const f=i.find(`li[cate_id="${u.id}"]`);if(!f.length)continue;const p=f.find(".file-size span:eq(0)");if(p.text()!==""&&!n)continue;const h=await Wo(u.id);fe.update({html:`[${a+1} / ${r.length}] 正在获取子文件夹大小:${u.name}`}),p.text(h.size),f.addClass("ce-size-got"),a<r.length-1&&await Bt(o.sizeSorterDirAttrInterval)}return fe.hideLoading(),e&&await p_(s),s}async function Sr(e,t,n,o){const s=await Go();s.find('li[file_type="0"]:not(.ce-size-got)').length>0&&await f_(n);const r=s.find("ul"),a=r.children("li").toArray();a.sort(function(f,p){const h=$(f),w=$(p),C=Pc(h.find(".file-size span:eq(0)").text()),x=Pc(w.find(".file-size span:eq(0)").text());return t===0?C-x:x-C});const u=$("<ul></ul>");$.each(a,function(f,p){u.append(p)}),r.replaceWith(u),n?fe.update({title:"排序完成",html:`已完成排序: ${t===0?"小 > 大":"大 > 小"}`,icon:"success"}):ue({html:`已完成排序: ${t===0?"小 > 大":"大 > 小"}`,icon:"success",timer:1500,position:"top-end"})}async function p_(e){fe.fire({toast:!0,title:"获取子文件夹大小",html:"获取子文件夹大小完成",icon:"success",showConfirmButton:!0,confirmButtonText:"大 > 小",confirmButtonColor:"#3085d6",showDenyButton:!0,denyButtonText:"小 > 大",denyButtonColor:"#d33",position:"top-end",showCloseButton:!0,closeButtonAriaLabel:"关闭",preConfirm:async()=>(console.log("preConfirm"),Sr(e,1,!0),!1),preDeny:async()=>(console.log("preDeny"),Sr(e,0,!0),!1)})}async function h_(){await Tl();const t=(await co("#js_data_list"))[0];m_(),new MutationObserver(async([o])=>{o.type==="childList"&&(window.postMessage({event:Mt.listRendered}),await Tl())}).observe(t,{childList:!0})}async function m_(){if(window.top===window.self)return;const e=document.querySelector("#js_pagination_box");if(!e){console.warn("[list.handleLoadAll] 未找到「#js_pagination_box」元素");return}function t(n){!document.querySelector("#js_data_list .list-contents > ul > li")||n(!0)}e.addEventListener("click",async n=>{n.preventDefault(),n.stopPropagation();const o=n.target;let s=!1;if((o.getAttribute("menu")==="load_all_file"||o.closest('[menu="load_all_file"]'))&&(s=!0),!s)return;console.log("[list.handleLoadAll] 点击了「加载全部」按钮"),await _s(t,500,3e5);const i=document.querySelector("#js_data_list .list-contents > ul");i==null||i.removeAttribute("ce-done2");const r=document.querySelector("#js_data_list");if(r){const a=".list-contents > ul:not([ce-done2]) > li";r.querySelectorAll(a).length&&(i==null||i.setAttribute("ce-done2",""),await Tl())}})}async function Tl(){const e=await kr();b_(e);const t=await Eu(!1);for(let n=0;n<t.length;n++){const o=t.eq(n),s=await yn(o);await g_(e,o,s)}}async function g_(e,t,n){await w_(e,t,n),await y_(e,t,n)}async function w_(e,t,n){if(!e.showSha1||!n.hash)return;t.addClass("ce-show-sha1");const o=t.find(".file-name"),s=document.createElement("span");s.classList.add("ce-file-sha1"),s.title="文件SHA1,点击复制",s.textContent=n.hash,s.addEventListener("click",async i=>{i.preventDefault(),i.stopPropagation(),Yt(n.hash),ue({title:"复制SHA1",text:"已复制文件SHA1",icon:"success",timer:1500})}),o.append(s)}async function y_(e,t,n){if(!e.showFolderSizeButton||!n.isDir)return;const o=t.find(".file-size"),s=document.createElement("span");s.classList.add("ce-btn-folder-size"),s.title="点击获取该文件夹大小",s.textContent="大小",s.addEventListener("click",async i=>{i.preventDefault(),i.stopPropagation();const r=await Wo(n.id);o.find("span:eq(0)").text(r.size),t.addClass("ce-size-got"),ue({title:"获取大小",text:"已获取文件夹大小",icon:"success",timer:1500})}),o.append(s)}async function b_(e){if(!e.sizeSorter)return;console.log("renderHeaderShowSubFolderSize");const t=document.querySelector(".header-size");if(!t||t.classList.contains("ce-injected"))return;const n=t,o=document.createElement("a");o.classList.add("btn-sort"),o.classList.add("ce-size-sort"),o.title="显示当前目录下已加载的子文件夹的大小,然后按大小排序",o.innerHTML=`
<span>排序</span>
<i icon_rel="file_size" class="icon-sort-asc"></i>
<i icon_rel="file_size" class="icon-sort-desc"></i>
`,o.addEventListener("click",async s=>{if(s.preventDefault(),s.stopPropagation(),!o.classList.contains("el-size-sort-ing"))try{o.classList.add("ce-size-sort-ing");let i=1;o.classList.contains("by-desc")?i=0:i=1;const r=await zt(!1);await Sr(r,i,!1,!1),i===0?(o.classList.remove("by-desc"),o.classList.add("by-asc")):(o.classList.remove("by-asc"),o.classList.add("by-desc"))}catch(i){console.error(i)}finally{o.classList.remove("ce-size-sort-ing")}}),n.appendChild(o),n.classList.add("ce-injected")}async function Uf(e,t){const n=[];for(const o of t){const s=vi(e,{key:`_ce_p_${o.key}`,label:o.label,icon:o.icon,title:o.memo,onClick:async(i,r)=>{r.stopPropagation(),r.preventDefault();try{const a=await jn();if(!a)return;const u=await yn(a),f=await Cs(),p=await Ri(u,o,f);if(p.includes("v.anxia.com")){const w=(await ho(!1)).find(C=>C.playDuration&&C.playDuration>0);Pa(u.id,w);return}if(console.log("[play url]",p),!p)throw new Error("无法获取有效的播放链接!");window.open(p,"_blank","noopener noreferrer")}catch(a){console.error(a),ue({title:"播放失败",text:a.toString(),icon:"error"})}}});n.push(s)}return n}async function v_(e){const t=[...(await $r()).filter(n=>n.enabled),...(await Jo(bn.play)).filter(n=>n.enabled)];return e&&t.length===1?(await Uf(At,t))[0]:new At({key:"_play_with_x",label:"播放全部",icon:"icon-operate ifo-video-play",title:"",onClick:async(n,o)=>{},subItems:[...await Uf(Ew,t)]})}async function __(){return new At({key:"_rename_dir",label:"重命名文件夹",icon:"icon-operate ifo-rename",title:'重命名当前目录,支持"高级模式"',onClick:async(e,t)=>{await e.closeMenu();const n=await jn();!n||unsafeWindow.Core.Dir.Rename("1",n.attr("cate_id"),n.attr("title"))}})}async function x_(){return new At({key:"_get_tree",label:"导出目录列表数据",icon:"icon-operate ifo-move",title:"获取当前目录的全部层级的文件列表数据,并导出为JSON文件",onClick:async(e,t)=>{await e.closeMenu();const n=await jn();if(!n)return;const o=await yn(n);await Nu(o)}})}async function C_(){return new At({key:"_move_dir",label:"移动文件夹",icon:"icon-operate ifo-move",title:"移动当前文件夹到其他位置",onClick:async(e,t)=>{await e.closeMenu();const n=await jn();!n||await Ea(n,"move",!0)}})}async function $_(){return new At({key:"_del_dir",label:"删除文件夹",icon:"icon-operate ifo-remove",title:"删除当前文件夹",onClick:async(e,t)=>{await e.closeMenu();const n=await jn();if(!n)return;const o=await Bi();unsafeWindow.Core.FileAPI.DeleteFile([n],s=>{n.remove(),o.find("#js_top_header_file_path_box .top-file-path > .file-path").children(":last").prev()[0].click()},!0)}})}async function k_(){return new At({key:"_copy_dir",label:"复制文件夹",icon:"icon-operate ifo-copy",title:"复制当前文件夹",onClick:async(e,t)=>{await e.closeMenu();const n=await jn();!n||await Ea(n,"set_copy",!0)}})}async function S_(){return new At({key:"_copy_dir_to",label:"复制文件夹到",icon:"icon-operate ifo-copyto",title:"复制当前文件夹到其他位置",onClick:async(e,t)=>{await e.closeMenu();const n=await jn();!n||await Ea(n,"copy_list",!0)}})}async function E_(){return new At({key:"view_dir_attribute",label:"查看属性",icon:"icon-operate ifo-prop",onClick:async(e,t)=>{await e.closeMenu();const n=await jn();!n||mo().Core.FileAPI.getAttribute(n,{showPlayLongChange:function(o,s,i){Zg().CACHE.FileMain.List.ResetPlayLongText(o,s,i)}},function(){console.log("查看属性 ok")})}})}async function Er(e,t){return new At({key:`_d_copy_names_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制当前目录下已加载的所有文件名称",onClick:async(n,o)=>{let i=(await ho(!1)).map(r=>r.name);i=await Di(i,t),Yt(i.join(`
`)),ue({title:"复制名称",text:`已复制选中文件名。数量:${i.length},复制类型:${e}`,icon:"success"})}})}async function Hf(e,t){return new At({key:`_d_copy_paths_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制当前目录下已加载的所有文件路径",onClick:async(n,o)=>{await n.closeMenu();const s=await ho(!1);let i=[];ue({text:"正在获取文件路径...",timer:0}),fe.showLoading();try{i=await Du(s,t),fe.close()}catch(r){console.error(r),ue({text:`获取文件路径失败: ${r}`,timer:6e4,icon:"error"});return}finally{fe.hideLoading()}Yt(i.join(`
`)),ue({title:"复制路径",text:`已复制文件的路径。数量:${i.length},复制类型:${e}`,icon:"success"})}})}async function A_(){return new At({key:"show_sub_folder_size",label:"子文件夹大小",title:"显示当前目录下已加载的所有子文件夹的大小,并进行排序",icon:"icon-operate ifo-prop",onClick:async(e,t)=>{await e.closeMenu(),await Sr("",jf.desc,!0)}})}async function zf(e,t){return new La({key:`_l_copy_name_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制名称",onClick:async(n,o)=>{await n.closeMenu();const s=await Tu();if(!s||!s.n){ue({text:"无法获取名称",timer:1200});return}let i=[s.n];i=await Di(i,t),Yt(i.join(`
`)),ue({title:"复制名称",text:"已复制选中文件名",icon:"success"})}})}async function qf(e,t){return new La({key:`_l_copy_path_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制路径",onClick:async(n,o)=>{await n.closeMenu();const s=await Tu();if(!s||!s.n){ue({text:"无法获取路径",timer:1200});return}const i=await Os(s),r=await Oa(i),a=await Ta(i,r,t);Yt(a),ue({title:"复制路径",text:"已复制文件路径",icon:"success"})}})}let O_=[];async function I_(){const e=[...(await $r()).filter(t=>t.enabled),...(await Jo(bn.play)).filter(t=>t.enabled)];return new Ui({key:"_play_with_x_d",label:"播放",injectDecider:Lw,title:"115在线播放",onClick:async(t,n)=>{n.stopPropagation(),n.preventDefault();const o=$(n.target).closest("li"),s=await yn(o),i=Pu(s.pickCode);s.isDir&&i.includes("v.anxia.com")?Pa(s.id):window.open(i,"_blank","noopener noreferrer")},subItems:[...await pw(Is,e)]})}async function P_(){const e=[...(await Nf()).filter(t=>t.enabled),...O_.filter(t=>t.enabled),...(await Jo(bn.search)).filter(t=>t.enabled)];return new Ui({key:"_search_with_name_d",label:"搜索",icon:"",title:"使用名称搜索",onClick:async(t,n)=>{n.stopPropagation(),n.preventDefault();const o=$(n.target).closest("li"),s=await Ko(o),i=Aa({search_value:s.n,cid:await zt()});window.open(i,"_blank","noopener noreferrer")},subItems:[...await fw(Is,e)]})}async function T_(){return new Is({injectDecider:Da,key:"_lh_get_tree",label:"导出目录列表数据",icon:"icon-operate ifo-move",title:"获取该目录的全部层级的文件列表数据,并导出为JSON文件",onClick:async(e,t)=>{t.stopPropagation(),t.preventDefault();const n=$(t.target).closest("li"),o=await yn(n);if(!o.isDir){ue({text:"该功能仅对目录有效",icon:"warning",timer:2e3});return}await Nu(o)}})}async function M_(e){const t=[await Vf("完整名称",Nt.full),await Vf("不含后缀",Nt.pure),new zu({}),await Ar("路径(Unix)",Xt.unixPath),await Ar("路径(Windows)",Xt.winPath),await Ar("上级路径(Unix)",Xt.unixParentPath),await Ar("上级路径(Windows)",Xt.winParentPath)];return e.exportList&&t.push(new zu({injectDecider:Da}),await T_()),new Ui({key:"_lh_copy_name_path",label:"名称路径",title:"复制文件名称路径",onClick:async(n,o)=>{},subItems:t})}async function Vf(e,t){return new Is({key:`_lh_copy_name_${t}`,label:e,icon:"icon-operate ifo-copy",title:e,onClick:async(n,o)=>{o.stopPropagation(),o.preventDefault();const s=$(o.target).closest("li");let r=[(await Ko(s)).n];r=await Di(r,t),Yt(r.join(`
`)),ue({title:"复制名称",text:`已复制选中文件名,复制类型:${e}`,icon:"success"})}})}async function Ar(e,t){return new Is({key:`_lh_copy_path_${t}`,label:e,icon:"icon-operate ifo-copy",title:e,onClick:async(n,o)=>{o.stopPropagation(),o.preventDefault();const s=$(o.target).closest("li"),i=await yn(s),r=await Oa(i),a=await Ta(i,r,t);Yt(a),ue({title:"复制路径",text:`已复制选中路径,复制类型:${e}`,icon:"success"})}})}async function L_(){return new Ui({injectDecider:Da,key:"_open_in_new_tab",label:"新标签页",icon:"",title:"在新标签页打开",onClick:async(e,t)=>{t.stopPropagation(),t.preventDefault();const n=$(t.target).closest("li"),o=await yn(n);if(!o||!o.id){ue({text:"无法获取目录ID",timer:1200});return}const s=Ou(o.id);window.open(s,"_blank","noopener noreferrer")}})}async function B_(){return new Ba({key:"_s_smart_mkdir",label:"同名目录",icon:"icon-operate ifo-move",title:"将选中的文件移动到同名目录",onClick:await hw(!0)})}async function D_(){return new Ba({key:"_s_copy_names_paths",label:"名称路径",icon:"icon-operate ifo-copy",showIcon:!1,title:"复制选中文件的名称路径",onClick:async(e,t)=>{},subItems:[await Or("完整名称",Nt.full),await Or("不含后缀",Nt.pure),await Or("完整文件名,去重",Nt.fullUnique),await Or("不含后缀,去重",Nt.pureUnique),new qu({}),await Wf("路径(Unix)",Xt.unixPath),await Wf("路径(Windows)",Xt.winPath)]})}async function Or(e,t){return new Hi({key:`_s_copy_names_${t}`,label:e,icon:"icon-operate ifo-copy",showIcon:!1,title:e,onClick:async(n,o)=>{let i=(await ho(!0)).map(r=>r.name);i=await Di(i,t),Yt(i.join(`
`)),ue({title:"复制名称",text:`已复制选中文件名。数量:${i.length},复制类型:${e}`,icon:"success"})}})}async function Wf(e,t){return new Hi({key:`_s_copy_path_${t}`,label:e,icon:"icon-operate ifo-copy",showIcon:!1,title:e,onClick:async(n,o)=>{const s=await ho(!0);let i=[];ue({text:"正在获取已选文件路径...",timer:0}),fe.showLoading();try{i=await Du(s,t),fe.close()}catch(r){console.error(r),ue({text:`获取已选文件路径失败: ${r}`,timer:6e4,icon:"error"});return}finally{fe.hideLoading()}Yt(i.join(`
`)),ue({title:"复制路径",text:`已复制选中文件的路径。数量:${i.length},复制类型:${e}`,icon:"success"})}})}async function N_(){const e=[...(await $r()).filter(t=>t.enabled),...(await Jo(bn.play)).filter(t=>t.enabled)];return new Ba({key:"_s_play_with_x_d",label:"播放",title:"播放选中的文件",onClick:async(t,n)=>{throw n.stopPropagation(),n.preventDefault(),new Error("not supported!")},subItems:[...await F_(Hi,e),new qu({}),new Hi({label:"关于选中播放",onClick:async(t,n)=>{ue({title:"关于选中播放",html:`<p>1.这是一个实验功能。<p>
<p>2.原理: 生成m3u8文件,上传m3u8文件到115,调用播放该m3u8的CloudDrive2直链。<p>
<p>3.设定: m3u8默认放在网盘根目录下的「.ce-m3u8-temp」目录下,不会自动清理。<p>
<p>4.作为使用者需做的: 在CloudDrive2里设置「.ce-m3u8-temp」目录缓存时间为1秒。</p>
<p>5.导致播放失败的可能: CloudDrive2目录缓存工作异常,导致请求不到m3u8文件,这是已知问题;其他原因,待观察。</p>
`,showConfirmButton:!0,timer:18e5})},icon:"data-text:❓"})]})}async function R_(e){if(e=e.trim(),!e)throw new Error("m3u8临时目录路径为空!");const t=await uw(e);if(t.id)return console.log("[ensureM3u8TempDir] result:",t),t.id;throw new Error("创建m3u8临时目录失败!")}async function F_(e,t){const n=[];for(const o of t){const s=vi(e,{key:`_ce_p_${o.key}`,label:o.label,icon:o.icon,title:o.memo,onClick:async(i,r)=>{r.stopPropagation(),r.preventDefault();const a=await Yo();try{let u=await ho(!0);if(u=u.filter(M=>M.isDir||M.isVideo||M.isImage),u.length===0){ue({title:"播放失败",text:"没有可以播放的目录或媒体文件!",icon:"error",timer:2e3});return}const f=await R_(a.m3u8TempDir),p=await cw(u,f);console.log("[selection.buildPlayMenuItems generatePlaylistOn115]",p);const h=p.data,w=await Cs(),C={id:h.file_id,name:h.file_name,parentId:h.cid,sizeBytes:h.file_size,pickCode:h.pick_code,isDir:!1,isFile:!0},x=Mi([a.m3u8TempDir,C.name],po.unix);ue({title:"检查m3u8文件",text:"正在检查m3u8文件是否已准备就绪...",icon:"info",timer:0}),fe.showLoading(),await Wg(w,x,1e3,6e4),ue({icon:"success",text:"m3u8文件已准备就绪,即将开始播放..."});const A=await Ri(C,o,w);window.open(A,"_blank","noopener noreferrer")}catch(u){console.error(u),ue({title:"播放失败",text:u.toString(),icon:"error",timer:6e4,showConfirmButton:!0})}finally{fe.hideLoading()}}});n.push(s)}return n}const Kf={label:"选中项菜单",key:"selection",selector:"div.list-operate.lo-right",itemSelector:"li[menu={key}]",items:[{enabled:!0,label:"下载",key:"download"},{enabled:!0,label:"移动",key:"move"},{enabled:!0,label:"标签",key:"edit_file_label"},{enabled:!0,label:"重命名",key:"edit_name"},{enabled:!0,label:"备注",key:"edit"},{enabled:!0,label:"星标",key:"star"},{enabled:!0,label:"删除",key:"delete"},{enabled:!0,label:"分享",key:"public_share"},{enabled:!0,label:"设置共享",key:"setShare"},{enabled:!0,label:"取消共享",key:"cancelShare"},{enabled:!0,label:"复制",key:"set_copy"},{enabled:!0,label:"复制到...",key:"copy_list"},{enabled:!0,label:"加密隐藏",key:"hide_file"},{enabled:!0,label:"取消加密",key:"show_file"},{enabled:!0,label:"评分",key:"file_score"},{enabled:!0,label:"设为快捷入口",key:"set_category"},{enabled:!0,label:"显示时长",key:"show_play_long"},{enabled:!0,label:"修改封面",key:"cover"},{enabled:!0,label:"一键排重",key:"same"},{enabled:!0,label:"导出目录树",key:"export_dir"},{enabled:!0,label:"显示属性",key:"attribute"},{enabled:!0,label:"转存至相册",key:"trans_to_album"},{enabled:!0,label:"更多",key:"operate_more"}]},Gf={label:"列表项右键菜单",key:"context",selector:"div.context-menu.menu-upward",itemSelector:"li[val={key}]",items:[{enabled:!0,label:"打开文件",key:"view"},{enabled:!0,label:"打开文件夹",key:"open_dir"},{enabled:!0,label:"下载文件",key:"download"},{enabled:!0,label:"下载文件夹",key:"download_dir"},{enabled:!0,label:"打包下载",key:"bale_download"},{enabled:!0,label:"刷新",key:"refresh"},{enabled:!0,label:"复制",key:"set_copy"},{enabled:!0,label:"复制到...",key:"copy_list"},{enabled:!0,label:"加密隐藏",key:"hide_file"},{enabled:!0,label:"取消加密",key:"show_file"},{enabled:!0,label:"评分",key:"file_score"},{enabled:!0,label:"显示时长",key:"show_play_long"},{enabled:!0,label:"取消时长",key:"hide_play_long"},{enabled:!0,label:"添加到我听",key:"listen"},{enabled:!0,label:"美化",key:"magic"},{enabled:!0,label:"修改封面",key:"cover"},{enabled:!0,label:"删除封面",key:"del_cover"},{enabled:!0,label:"一键排重",key:"same"},{enabled:!0,label:"移动",key:"move"},{enabled:!0,label:"重命名",key:"edit_name"},{enabled:!0,label:"备注",key:"edit"},{enabled:!0,label:"显示属性",key:"attribute"},{enabled:!0,label:"删除",key:"delete"},{enabled:!0,label:"播放器播放",key:"player"},{enabled:!0,label:"转存到相册",key:"trans_to_album"},{enabled:!0,label:"举报",key:"report"}]},Jf={label:"列表项悬浮菜单",key:"hover",selector:"div.file-opr[rel=menu]",itemSelector:"a[menu={key}]",items:[{enabled:!0,label:"星标",key:"star"},{enabled:!0,label:"下载文件",key:"download_one"},{enabled:!0,label:"下载文件夹",key:"download_dir_one"},{enabled:!0,label:"移动",key:"move"},{enabled:!0,label:"标签",key:"edit_file_label"},{enabled:!0,label:"重命名",key:"edit_name"},{enabled:!0,label:"备注",key:"edit"},{enabled:!0,label:"删除",key:"delete"},{enabled:!0,label:"分享",key:"public_share"},{enabled:!0,label:"取消加密",key:"show_file"},{enabled:!0,label:"评分",key:"file_score"},{enabled:!0,label:"设置共享",key:"setShare"},{enabled:!0,label:"取消共享",key:"cancelShare"},{enabled:!0,label:"复制",key:"set_copy"},{enabled:!0,label:"更多",key:"more",selector:'[menu_btn="more"]'}]},Yf="enabled_official_menu_keys";async function j_(){let e=await Ze.get(Yf,["__default__"]);return e.length===1&&e[0]==="__default__"&&(e=await Qf([Kf,Gf,Jf]),await Xf(e)),e}async function Xf(e){await Ze.set(Yf,e)}async function Qf(e){const t=[];return e.forEach(n=>{n.items.forEach(o=>{o.enabled&&t.push(`${n.key}_${o.key}`)})}),t}async function Zf(){const e=[Kf,Gf,Jf],t=await j_();return e.forEach(n=>{n.items.forEach(o=>{const s=`${n.key}_${o.key}`;t.includes(s)||o.enabled===void 0?o.enabled=!0:o.enabled=!1})}),e}async function U_(){const e=await Zf(),t=[];return e.forEach(n=>{n.items.forEach(o=>{let s=o.enabled?"block":"none";if(t.push(`${n.selector} ${n.itemSelector.replace("{key}",o.key)} { display: ${s} !important; }`),o.selector){t.push(`${n.selector} ${o.selector} { display: ${s} !important; }`);return}const i=n.itemSelector.replace("{key}",o.key);t.push(`${n.selector} ${i} { display: ${s} !important; }`)})}),t.join(`
`)}async function H_(){const e="cloud115EnhancerOfficialMenuStyle",t=await U_();let n=document.getElementById(e);if(n){n.innerHTML=t;return}n=document.createElement("style"),n.id=e,n.innerHTML=t,document.body.appendChild(n)}async function z_(){const{host:e,search:t}=location;if(!e.includes("115.com"))return;console.log("[Cloud115 Enhancer - menu] running..."),q_(),document.addEventListener(qt.EVENT_CLOSE_MENU,o=>{$("#"+o.detail.menu.key).closest(".context-menu").hide()});const n=await Yo();!n.enabled||(V_(n),await Bu(n),window.top===window.self&&W_(n),G_(n),(t.includes("ct=file")||t.includes("mode=search"))&&(K_(n),J_(n),dw(n)))}async function q_(){console.log("[Cloud115 Enhancer - menu] injectUI");const e="ceCustomUrlHelp",t=document.createElement("div");t.id=e,document.body.appendChild(t),to(i_).mount(`#${e}`)}async function V_(e){!e.manageOfficialMenus||H_()}const Ml=async(e,t)=>{};async function W_(e){const{[Le.dirContext]:t}=e;if(!t.enabled)return;const n=[];t.rename&&n.push(await __()),t.delete&&n.push(await $_()),t.play&&n.push(await v_(!0)),t.copyNames&&n.push(new At({key:"_dir_copy_names",label:"名称路径",icon:"icon-operate ifo-copy",onClick:Ml,subItems:[await Er("完整名称",Nt.full),await Er("不含后缀",Nt.pure),await Er("完整名称,去重",Nt.fullUnique),await Er("不含后缀,去重",Nt.pureUnique),new Aw({}),await Hf("路径(Unix)",Xt.unixPath),await Hf("路径(Windows)",Xt.winPath)]}));const o=[];t.move&&o.push(await C_()),t.viewProp&&o.push(await E_()),t.showSubFolderSize&&o.push(await A_()),t.copy&&o.push(await k_()),t.copyTo&&o.push(await S_()),t.exportList&&o.push(await x_()),o.length===1?n.push(o[0]):o.length>1&&n.push(new At({key:"_dir_more",label:"更多",icon:"icon-operate ifo-open",onClick:Ml,subItems:o})),await new Iw({items:n,siblingSelector:'[val="add_dir"]',position:fo.after}).inject(),$(".ce-menu-parent .ce-menu-trigger").on("mouseover",function(){$(this).find(".ce-menu-dropdown").show()}).on("mouseout",function(){$(this).find(".ce-menu-dropdown").hide()})}async function K_(e){const{[Le.listItemHover]:t}=e;if(!t.enabled)return;const n=[];t.openInNewTab&&n.push(await L_()),t.search&&n.push(await P_()),t.play&&n.push(await I_()),t.copyNames&&n.push(await M_(t)),new Tw({items:n,position:fo.after,siblingSelector:'[menu="move"]'}).inject()}async function G_(e){const{[Le.listItemContext]:t}=e;if(!t.enabled)return;const n=[];t.copyNames&&n.push(new La({key:"_list_item_copy_name_path",label:"名称路径",icon:"icon-operate ifo-copy",onClick:Ml,subItems:[await zf("完整名称",Nt.full),await zf("不含后缀",Nt.pure),new Ow({}),await qf("路径(Unix)",Xt.unixPath),await qf("路径(Windows)",Xt.winPath)]})),new Pw({items:n,position:fo.after,siblingSelector:'[val="refresh"]',useObserver:!0,observeTarget:document.body,disposeObserverAfterInjection:!1}).inject()}async function J_(e){const{[Le.selection]:t}=e;if(!t.enabled)return;const n=[];location.search.includes("ac=search")||t.moveToSelfNameDir&&n.push(await B_()),t.copyNames&&n.push(await D_()),t.play&&n.push(await N_()),new Mw({items:n,position:fo.before,siblingSelector:"ul li"}).inject()}const ep="offlineExporterConfig";var Ll=(e=>(e.name="name",e.infoHash="infoHash",e.url="url",e))(Ll||{});const Y_={name:"名称",infoHash:"哈希",url:"链接"};function X_(e){return{onlyMagnetEd2k:!1,enableOptimization:!0,reqInterval:500,maxPage:0,showInfoHash:!0,enableListManagement:!0,fixGotoPage:!1,enableSearcher:!0,searchMaxPage:5,searchKeywordType:"name",searchStatus:kt.any,searchStopOnFound:!1,searchReqInterval:10,...e}}async function Mo(){const e=X_(),t=await Ze.get(ep,e);return{...e,...t}}async function tp(e){await Ze.set(ep,e),window.postMessage({event:as.configChanged,body:JSON.parse(JSON.stringify(e))},"*")}async function Q_(e){const t=await co("#js-warp"),o=t[0].querySelectorAll("li[complete]");o.length>0&&o.forEach(async i=>{await np(i,e)}),n0(e),new MutationObserver(async([i])=>{if(i.type==="childList"){i.addedNodes.forEach(async a=>{await np(a,e)});const r=document.querySelector(".ce-checkbox-all input");r.checked=!1,await Ir([])}}).observe(t[0],{childList:!0})}async function Z_(e){const t=e;return{complete:t.getAttribute("complete"),cate_id:t.getAttribute("cate_id"),delete_id:t.getAttribute("delete_id"),status:t.getAttribute("status"),suffix:t.getAttribute("suffix"),name:t.getAttribute("name"),hash:t.getAttribute("hash")}}async function np(e,t){const n=e,o=await Z_(e);o0(n,t,o),e0(n,t,o),t0(n,t,o)}async function e0(e,t,n){if(!t.showInfoHash||e.querySelector(".info-hash"))return;const o=e.querySelector(".file-name"),s=document.createElement("div");s.classList.add("info-hash"),s.textContent=n.hash,s.title=`点击复制${n.hash}`,o.after(s),s.addEventListener("click",()=>{ys(n.hash,"text"),ue({text:"已复制",icon:"success",timer:800})});const i=e.querySelector(".desc-tips");i&&i.style.display!=="none"&&e.classList.add("ce-task-trouble")}async function t0(e,t,n){const o=e.querySelector(".file-operate");if(o.querySelector(".ce-buttons"))return;const s=document.createElement("span");s.className="ce-buttons";const i=document.createElement("a");i.className="pure-button button-mini button-info",i.href=Ou(n.cate_id),i.target="_blank",i.textContent="打开",i.title="在新标签页打开目录",s.append(i),o.prepend(s)}async function n0(e){if(!e.enableListManagement)return;const t=await co("#js-main .header-name");if(t.length===0){console.warn("[renderCheckboxAll] 找不到`#js-main .header-name`");return}const n=t[0];let o=n.querySelector(".ce-checkbox-all");o||(o=document.createElement("div"),o.classList.add("ce-checkbox"),o.classList.add("ce-checkbox-all"),o.innerHTML=`
<input type="checkbox"/>
`,n.prepend(o)),o.addEventListener("click",()=>{const s=o.querySelector("input").checked;document.querySelectorAll("#js-warp li").forEach(r=>{const a=r.querySelector("input");a.checked=s,r.classList.toggle("ce-selected",s)}),Bl().then(r=>{Ir(r)})})}async function o0(e,t,n){if(!t.enableListManagement||e.querySelector(".ce-checkbox"))return;const o=e.querySelector(".file-name-wrap"),s=document.createElement("div");s.classList.add("ce-checkbox"),s.innerHTML=`
<input type="checkbox" data-id="${n.hash}" />
`,o.prepend(s),e.classList.add("ce-show-checkbox"),s.addEventListener("click",async i=>{i.shiftKey?await i0(i,e):await s0(i,e)})}async function s0(e,t){t.classList.toggle("ce-selected");const n=document.querySelector(".ce-checkbox-all input"),o=await sp(!1);let s=0;for(const r of o)r.classList.contains("ce-selected")&&s++;const i=s===o.length;n.checked=i,n.indeterminate=!i&&s>0,Bl().then(r=>{Ir(r)})}async function i0(e,t){const n=await sp(!1),o=n.indexOf(t);let s=-1;for(let p=0;p<o;p++)if(n[p].classList.contains("ce-selected")){s=p;break}if(s===-1){for(let p=n.length-1;p>o;p--)if(n[p].classList.contains("ce-selected")){s=p;break}}s=s===-1?o:s;const i=Math.min(s,o),r=Math.max(s,o);let a=0;for(let p=0;p<n.length;p++){const h=n[p],w=h.querySelector(".ce-checkbox input"),C=p>=i&&p<=r;w.checked=C,C&&a++,h.classList.toggle("ce-selected",C)}const u=i===0&&r===n.length-1,f=document.querySelector(".ce-checkbox-all input");f.checked=u,f.indeterminate=!u&&a>0,Bl().then(p=>{Ir(p)})}async function op(e){const t={info_hash:e.getAttribute("hash"),status:Number(e.getAttribute("status")),name:e.getAttribute("name"),file_id:e.getAttribute("cate_id"),delete_file_id:e.getAttribute("delete_id")};return t.name||(t.name=e.querySelector(".file-name").textContent.trim()),t}async function sp(e){const t=document.querySelectorAll("#js-warp li"),n=[];return t.forEach(async o=>{const s=o;(!e||s.classList.contains("ce-selected"))&&n.push(s)}),n}async function Bl(){const e=document.querySelectorAll("#js-warp li"),t=[];return e.forEach(async n=>{const o=n;if(o.classList.contains("ce-selected")){const s=await op(o);t.push(s)}}),t}var as=(e=>(e.selection="ce-offline-selection",e.configChanged="ce-offline-config-changed",e.searchPageChanged="ce-offline-search-page-changed",e))(as||{});async function Ir(e){window.postMessage({event:"ce-offline-selection",body:e},"*")}async function Dl(e){document.querySelectorAll("#js-warp li").forEach(async n=>{const o=n,s=o.getAttribute("hash");e.includes(s)&&(o.style.transition="opacity 0.5s",o.style.opacity="0.2",setTimeout(()=>{o.remove()},500))})}async function r0(e,t,n,o){var w;const s=[],i=n.maxPage||5;let r="",a="",u="",f="";n.name!==void 0&&(r=n.caseSensitive?n.name:n.name.toLowerCase()),n.infoHash!==void 0&&(a=n.caseSensitive?n.infoHash:n.infoHash.toLowerCase()),n.url!==void 0&&(u=n.caseSensitive?n.url:n.url.toLowerCase()),n.status!==void 0&&n.status!==kt.any&&n.status.toString()!==""&&(f=n.status.toString());let p=n.stopOnFound||!1;(a||u)&&(p=!0);let h=-1;for(let C=1;C<=i&&!(h>-1&&C>h);C++){window.postMessage({event:"ce-offline-search-page-changed",body:C},"*");const x=await yu(C,e,t);h===-1&&(h=x.page_count);const A=x.tasks;for(const M of A){const D=n.caseSensitive?M.name:M.name.toLowerCase(),O=n.caseSensitive?M.info_hash:M.info_hash.toLowerCase(),I=n.caseSensitive?M.url:(w=M.url)==null?void 0:w.toLowerCase(),H=r&&n.fuzzyName?D.includes(r):!1,se=a&&O===a,j=u&&I===u;if((f?f===M.status.toString():!0)&&(H||se||j)&&(s.push(M),p))break}if(p&&s.length)break;C<i&&await Bt(o.searchReqInterval||50)}return s}async function a0(){if(!(await Mo()).fixGotoPage)return;const t=await vs("#js-page");if(!t){console.warn("[fixGotoPage] 找不到`#js-page`");return}const n=async r=>{if(r.key!=="Enter")return;const a=r.target,u=parseInt(a.value);if(isNaN(u)){a.select();return}parent.window.Core.OFFL5Plug.ChangePage(u)},o=async(r=!1)=>{const a=t.querySelector('input[rel="page_jump"]');if(!a)return;const u=document.createElement("input");u.setAttribute("rel","page_jump"),u.type="text",u.style.backgroundColor="#fefcea",u.title="这是 115不大助手 替换的输入框,如果想恢复原有的输入框,请在「离线设置」中关闭「修复输入页码跳转」选项",u.addEventListener("keydown",n),a.insertAdjacentElement("beforebegin",u),a.remove(),r&&u.focus()},s=Dt(async r=>{o(!0)},50),i=new MutationObserver(async([r])=>{r.type==="childList"&&s(r)});o(!1),i.observe(t,{childList:!0})}const l0={class:"ce-config ce-offline-config"},c0={class:"pure-form pure-form-aligned offline-exporter-config-form"},u0={class:"pure-control-group"},d0=d("label",{for:"enableListManagement"},"启用批量管理",-1),f0=d("div",{class:"pure-form-message text-success"}," 可以选中多个任务进行操作,支持shift多选。 ",-1),p0={class:"pure-control-group"},h0=d("label",{for:"showInfoHash"},"显示链接哈希",-1),m0=d("div",{class:"pure-form-message text-success"}," 显示离线任务的哈希文本,点击可以复制。 ",-1),g0={class:"pure-control-group"},w0=d("label",{for:"fixGotoPage"},"修复输入页码跳转",-1),y0=d("div",{class:"pure-form-message text-success"}," 如果官方的输入页码跳转功能异常,可开启此选项。 ",-1),b0=d("div",{class:"ce-tips"},"以下是导出链接相关选项",-1),v0={class:"pure-control-group"},_0=d("label",{for:"onlyMagnetEd2k"},"只取磁力和ED2K链接",-1),x0=d("div",{class:"pure-form-message text-success"}," 导出链接时,只取磁力和ED2K链接,其他比如http链接会被略过。 ",-1),C0={class:"pure-control-group"},$0=d("label",{for:"enableOptimization"},"启用导出优化",-1),k0=d("div",{class:"pure-form-message text-success"}," 据观察,离线记录列表是将未完成的记录放在最前面的。如果只需导出未完成链接, 当获取到一个已完成的记录时,便可以停止继续获取后面的记录,节省时间。 ",-1),S0={class:"pure-control-group"},E0=d("label",{for:"reqInterval"},"导出请求数据间隔",-1),A0=d("div",{class:"pure-form-message text-success"}," 导出时请求分页的间隔,单位为毫秒,默认500。 ",-1),O0={class:"pure-control-group"},I0=d("label",{for:"maxPage"},"最多导出页数",-1),P0=d("div",{class:"pure-form-message text-success"}," 0表示不限制,否则表示最多导出的页数。 ",-1),T0=d("div",{class:"ce-tips"},[ce("以下是搜索离线任务相关选项。"),d("small",{class:"text-info"},"提示: 除了关键词,其他搜索条件都会持久保存。")],-1),M0={class:"pure-control-group"},L0=d("label",{for:"reqInterval"},"搜索请求数据间隔",-1),B0=d("div",{class:"pure-form-message text-success"}," 搜索时请求分页的间隔,单位为毫秒,默认10。 ",-1),ip=De({__name:"Config",async setup(e){let t,n;const o=he(([t,n]=en(()=>Mo()),t=await t,n(),t));return Pt(async()=>{}),ct(o,Dt(async s=>{await tp(s),ue({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"})},500),{deep:!0}),(s,i)=>(K(),Q("div",l0,[d("form",c0,[d("fieldset",null,[d("div",u0,[d0,ee(d("input",{id:"enableListManagement",type:"checkbox","onUpdate:modelValue":i[0]||(i[0]=r=>o.value.enableListManagement=r)},null,512),[[Ee,o.value.enableListManagement]]),f0]),d("div",p0,[h0,ee(d("input",{id:"showInfoHash",type:"checkbox","onUpdate:modelValue":i[1]||(i[1]=r=>o.value.showInfoHash=r)},null,512),[[Ee,o.value.showInfoHash]]),m0]),d("div",g0,[w0,ee(d("input",{id:"fixGotoPage",type:"checkbox","onUpdate:modelValue":i[2]||(i[2]=r=>o.value.fixGotoPage=r)},null,512),[[Ee,o.value.fixGotoPage]]),y0]),b0,d("div",v0,[_0,ee(d("input",{id:"onlyMagnetEd2k",type:"checkbox","onUpdate:modelValue":i[3]||(i[3]=r=>o.value.onlyMagnetEd2k=r)},null,512),[[Ee,o.value.onlyMagnetEd2k]]),x0]),d("div",C0,[$0,ee(d("input",{id:"enableOptimization",type:"checkbox","onUpdate:modelValue":i[4]||(i[4]=r=>o.value.enableOptimization=r)},null,512),[[Ee,o.value.enableOptimization]]),k0]),d("div",S0,[E0,ee(d("input",{id:"reqInterval",type:"number","onUpdate:modelValue":i[5]||(i[5]=r=>o.value.reqInterval=r),min:50},null,512),[[ze,o.value.reqInterval]]),A0]),d("div",O0,[I0,ee(d("input",{id:"maxPage",type:"number","onUpdate:modelValue":i[6]||(i[6]=r=>o.value.maxPage=r),min:0},null,512),[[ze,o.value.maxPage]]),P0]),T0,d("div",M0,[L0,ee(d("input",{id:"reqInterval",type:"number","onUpdate:modelValue":i[7]||(i[7]=r=>o.value.searchReqInterval=r),min:10},null,512),[[ze,o.value.searchReqInterval]]),B0])])])]))}}),IT="",D0={class:"ce-offline-exporter"},N0={key:0},R0=d("button",{type:"button",class:"pure-button button-mini"},"设置",-1),F0=De({__name:"OflineExporter",setup(e){const t=`\r
`;let n,o;const s=he([]);let i={};Rt(async()=>{i=await Mo(),n=await vu(),console.log("[profile]",n),o=await bu(),console.log("[space]",o),r(),await Q_(i)});async function r(){window.addEventListener("message",A=>{const{event:M,body:D}=A.data;switch(M){case as.selection:s.value=D;break;case as.configChanged:i=D;break}},!1)}async function a(A=!1,M=""){const{isConfirmed:D,value:O}=await fe.fire({title:"根据链接删除离线任务",html:`
<div>每行一个链接,支持磁力链接和ED2K链接</div>
<div>
<label class="swal2-checkbox" style="display: flex;">
<input type="checkbox" id="swalDeleteFile">
<span class="swal2-label">同时删除文件</span>
</label>
</div>
<div>
<textarea id="swalUrls" aria-label="每行一个链接" class="swal2-textarea" placeholder="每行一个链接" style="width:80%;"></textarea>
</div>
`,focusConfirm:!1,didOpen:()=>{const se=document.getElementById("swalDeleteFile");se.checked=A;const j=document.getElementById("swalUrls");j.value=M,j.focus()},preConfirm:()=>{const se=document.getElementById("swalDeleteFile"),j=document.getElementById("swalUrls");return{deleteFile:se?se.checked:!1,urls:j?j.value:""}},width:620,inputPlaceholder:"每行一个",inputAttributes:{"aria-label":"每行一个"},showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消"});if(!D)return;if(O===void 0){alert("请输入链接!");return}const I=[],H=O.urls.trim().split(`
`);for(let se=0;se<H.length;se++){const j=H[se].trim();if(Ec(j)||Ac(j)){const ne=Ic(j);ne&&I.push(ne.toLowerCase())}}fe.showLoading(),fe.update({html:"正在删除..."}),await ka(I,o,O.deleteFile,n.user_id),ue({icon:"success",title:"删除成功!请刷新页面查看最新的列表。",timer:3e4,position:"top-end"}),await Dl(I)}async function u(){const A=s.value.map(I=>I.info_hash);if(!A.length)return;const{isConfirmed:M,value:D}=await fe.fire({title:"批量删除",icon:"warning",html:`确定要删除选中的 ${A.length} 个离线记录吗?`,input:"checkbox",inputValue:0,inputPlaceholder:"同时删除文件",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消"});if(!M)return;const O=!!D;fe.showLoading(),fe.update({html:"正在删除..."}),await ka(A,o,O,n.user_id),ue({icon:"success",title:"删除成功",timer:800,position:"top-end"}),await Dl(A),s.value=[]}async function f(A){const M=[A];i.onlyMagnetEd2k&&M.push(St.magnetEd2k),console.log("[filters]",M),await x(o.sign,n.user_id,M)}function p(A,M){if(!M.length||M.length===1&&M[0]==="all")return A;const D={[kt.failed]:St.failed,[kt.illegal]:St.failed,[kt.ing]:St.failed,[kt.success]:St.success};return A=A.filter(O=>{if(!O.url&&!O.info_hash)return!1;const I=D[O.status];return M.includes(St.all)||I&&M.includes(I)?!(M.includes(St.magnetEd2k)&&(!wm(O.info_hash)||O.url&&!Ec(O.url)&&!Ac(O.url))):!1}),A}async function h(A,M,D){let O=[],I=1,H=0;for(;;){fe.update({html:`正在导出... 进度:第 ${I} 页`+(H?` / ${H}`:"")});const se=await yu(I,A,M);if(!se.tasks||!se.tasks.length)break;if(H===0&&i.maxPage>0?H=Math.min(se.page_count,i.maxPage):H=se.page_count,O=[...O,...p(se.tasks,D)],i.enableOptimization&&D.includes(St.failed)&&w(se.tasks)){console.warn("由于开启了导出优化,且检测到已获取的记录中至少有一个「已完成」的记录,将不再获取剩下的记录");break}if(I>=H)break;I++,await Bt(i.reqInterval)}return O}function w(A){for(const M of A)if(M.status===kt.success)return!0;return!1}async function C(){const A=[St.all];i.onlyMagnetEd2k&&A.push(St.magnetEd2k),console.log("[filters]",A);const M=s.value;if(!M.length)return;const D=[];M.forEach(O=>{!O.url&&O.info_hash&&(O.url=Oc(O.info_hash)),D.push(O.url)}),D.length&&(ys(D.join(t),"text"),console.log("[links]",D),await fe.fire({title:"导出成功",icon:"success",html:`成功导出 ${D.length} 个链接,请粘贴到文本文件。`,showDenyButton:!0,denyButtonText:"保存到txt",allowEscapeKey:!1,allowOutsideClick:!1,preDeny:async()=>(console.log("[saveAs]"),oa(D.join(t),`115离线链接_数量${D.length}_${bs()}.txt`),!1)}))}async function x(A,M,D){fe.fire({title:"导出离线链接",html:"正在导出...",didOpen:()=>{fe.showLoading()}});const O=await h(A,M,D);if(fe.hideLoading(),!O.length){await fe.fire({title:"导出失败",icon:"error",html:"查询不到符合条件的离线记录!"});return}const I=[];if(O.forEach(H=>{!H.url&&H.info_hash&&(H.url=Oc(H.info_hash)),I.push(H.url)}),!I.length){await fe.fire({title:"导出失败",icon:"error",html:"未完成的离线记录中没有磁力或HTTP链接!"});return}ys(I.join(t),"text"),console.log("[links]",I),await fe.fire({title:"导出成功",icon:"success",html:`成功导出 ${I.length} 个链接,请粘贴到文本文件。`,showDenyButton:!0,denyButtonText:"保存到txt",allowEscapeKey:!1,allowOutsideClick:!1,preDeny:async()=>(console.log("[saveAs]"),oa(I.join(t),`115离线链接_数量${I.length}_${bs()}.txt`),!1)})}return(A,M)=>{const D=Ao("VDropdown");return K(),Q("span",D0,[s.value.length?(K(),Q("span",N0,[d("button",{type:"button",class:"pure-button button-small button-error",onClick:u},[ce("删除("),d("span",null,we(s.value.length),1),ce(")")]),ce(" ")])):Ge("",!0),d("button",{type:"button",class:"pure-button button-mini button-error",onClick:M[0]||(M[0]=O=>a(!1,"")),title:"填写链接以删除对应的离线任务"},"根据链接删除"),ce(" "),s.value.length?(K(),Q("button",{key:1,type:"button",class:"pure-button button-mini button-warning",onClick:C,title:"导出选中任务的链接"},[ce("导出已选"),d("span",null,"("+we(s.value.length)+")",1)])):Ge("",!0),d("button",{type:"button",class:"pure-button button-mini button-error",onClick:M[1]||(M[1]=O=>f(de(St).failed)),title:"导出未完成链接"},"导出未完成"),d("button",{type:"button",class:"pure-button button-mini button-success",onClick:M[2]||(M[2]=O=>f(de(St).success)),title:"导出已完成链接"},"导出已完成"),d("button",{type:"button",class:"pure-button button-mini button-warning",onClick:M[3]||(M[3]=O=>f(de(St).all)),title:"导出全部链接"},"导出全部"),ce(" "),Ce(D,{distance:5,"arrow-padding":10},{popper:Ke(()=>[(K(),Wt(Fd,null,{default:Ke(()=>[Ce(ip)]),_:1}))]),default:Ke(()=>[R0]),_:1})])}}}),PT="",j0=["cate_id","delete_id","status","hash"],U0={class:"file-name-wrap"},H0={class:"file-name"},z0={task_popup:"goto",href:"javascript:;",class:"name"},q0={rel:"name"},V0={class:"desc-tips",rel:"file_down_violations"},W0={class:"txt-red",rel:"file_down_tips"},K0=["filename"],G0={class:"file-size"},J0={class:"file-process"},Y0=d("i",{class:"icon-file-status ifst-failure"},null,-1),X0=d("span",{rel:"progress"},"下载失败",-1),Q0=d("i",{class:"icon-file-status ifst-success"},null,-1),Z0=d("span",{rel:"progress"},"下载成功",-1),e1=d("i",{class:"icon-file-status ifst-downing"},null,-1),t1={rel:"progress"},n1=d("i",{class:"icon-file-status ifst-violation"},null,-1),o1=d("span",{rel:"progress"},"违规",-1),s1=d("i",{class:"icon-file-status ifst-failure"},null,-1),i1=d("span",{rel:"progress"},"[未知]",-1),r1={class:"file-operate",rel:"opt"},a1=d("a",{href:"javascript:;",task_popup:"goto"},[d("i",{class:"icon-operate ifo-opendir"}),d("s",null,"跳转到目录")],-1),l1=["cp_href"],c1=[d("i",{class:"icon-operate ifo-copy"},null,-1),d("s",null,"复制",-1)],u1=d("a",{href:"javascript:;",class:"btn-delete-offline"},[d("i",{class:"icon-operate ifo-remove"}),d("s",null,"删除")],-1),d1=De({__name:"OfflineItem",props:{item:null,space:null,profile:null},setup(e){const t=e,n=Zn(()=>t.item.percentDone?parseInt(t.item.percentDone.toString()):0),o=Zn(()=>{const{name:r,del_path:a}=t.item;let u=r.replace(/^.*\./,"");return a&&/\/$/.test(a)&&(u="folder"),/^[a-z\d]+$/i.test(u)||(u="unknown"),u}),s=Zn(()=>t.item.err===10016?"文件内含违规内容":""),i=Zn(()=>t.item.can_appeal===1);return(r,a)=>(K(),Q("li",{complete:"",cate_id:e.item.file_id,delete_id:e.item.delete_file_id,status:e.item.status,hash:e.item.info_hash},[d("div",U0,[d("i",{class:Ye(["file-type",`tp-${de(o)}`])},null,2),d("div",H0,[d("em",null,[d("a",z0,[d("span",q0,we(e.item.name),1)])])]),ee(d("div",V0,[d("span",W0,we(de(s)),1),ee(d("a",{href:"javascript:;",class:"btn-link",filename:e.item.name,rel:"violations_down_btn"},"去申诉",8,K0),[[Gt,de(i)]])],512),[[Gt,de(s)]])]),d("div",G0,[d("span",null,we(de(_i)(e.item.size)),1)]),d("div",J0,[e.item.status===de(kt).failed?(K(),Q(Ne,{key:0},[Y0,X0],64)):e.item.status===de(kt).success?(K(),Q(Ne,{key:1},[Q0,Z0],64)):e.item.status===de(kt).ing?(K(),Q(Ne,{key:2},[e1,d("span",t1,we(de(n))+"%",1)],64)):e.item.status===de(kt).illegal?(K(),Q(Ne,{key:3},[n1,o1],64)):(K(),Q(Ne,{key:4},[s1,i1],64))]),d("div",r1,[a1,d("a",{href:"javascript:;",cp_href:e.item.url,task_popup:"copy"},c1,8,l1),u1])],8,j0))}}),f1={class:"ce-offline-list"},p1=De({__name:"OfflineList",props:{items:null,space:null,profile:null},setup(e){return(t,n)=>(K(),Q("div",f1,[d("ul",null,[(K(!0),Q(Ne,null,nt(e.items,(o,s)=>(K(),Wt(d1,{Key:s,item:o,space:e.space,profile:e.profile},null,8,["Key","item","space","profile"]))),256))])]))}}),h1={inline:"",class:"pure-form search-form",size:"small"},m1={class:"form-item",label:"关键词"},g1=["value"],w1={class:"form-item"},y1=["onKeyup"],b1={class:"form-item",label:"状态"},v1=["value"],_1=["value"],x1={class:"form-item",label:"页数"},C1=d("small",null,"页",-1),$1={class:"form-item"},k1={key:0,title:"根据「名称」查找时,是否在找到一个结果时停止继续查找"},S1={key:0,class:"search-tips"},E1={class:"tips-body"},A1={key:0},O1=De({__name:"OfflineSearcher",setup(e){let t,n;const o=he(),s=he({KeywordType:Ll.name,keyword:"",status:kt.any,maxPage:5,stopOnFound:!1});let i={...s.value};const r=he(null),a=he(!1),u=he([]),f=he(null),p=he({content:"",subContent:"",visible:!1});Rt(async()=>{t=await vu(),n=await bu(),o.value=await Mo(),s.value.KeywordType=o.value.searchKeywordType,s.value.status=o.value.searchStatus,s.value.maxPage=o.value.searchMaxPage,s.value.stopOnFound=o.value.searchStopOnFound,i={...s.value},document.body.addEventListener("click",j=>{H(j)}),h()}),ct(s,Dt(async j=>{console.log("[searchParams changed]",Sc(j)),C()},200),{deep:!0});async function h(){window.addEventListener("message",j=>{const{event:ne,body:ae}=j.data;switch(ne){case as.searchPageChanged:w(ae);break;case as.configChanged:o.value={...ae};break}},!1)}async function w(j){console.log("[handleSearchPageChanged]",j),await se({subContent:`正在搜索第 ${j} 页...`,visible:!0})}async function C(){const j=await Mo();let ne=0;i.KeywordType!==s.value.KeywordType&&(j.searchKeywordType=s.value.KeywordType,ne++),i.status!==s.value.status&&(j.searchStatus=s.value.status,ne++),i.maxPage!==s.value.maxPage&&(j.searchMaxPage=s.value.maxPage,ne++),i.stopOnFound!==s.value.stopOnFound&&(j.searchStopOnFound=s.value.stopOnFound,ne++),ne&&(await tp(j),console.log("[handleSearchParamsChange]",j),o.value={...j}),i={...s.value}}async function x(j){var ne;(ne=r.value)==null||ne.select()}async function A(j){var ne;s.value.keyword="",(ne=r.value)==null||ne.focus()}async function M(){u.value=[],s.value.keyword="",i={...s.value},await se({visible:!1}),await O(!1);try{parent.window.Core.OFFL5Plug.ChangePage(1)}catch(j){console.error(j)}}async function D(){var ne;u.value=[];let{keyword:j}=s.value;if(j=j.trim(),j===""){await Hs(),(ne=r.value)==null||ne.select(),Ni.fire({icon:"warning",title:"关键词不能为空!"});return}a.value=!0,await se({content:"正在搜索...",subContent:"",visible:!0});try{const ae={status:s.value.status,maxPage:s.value.maxPage,fuzzyName:!0,caseSensitive:!1,stopOnFound:s.value.stopOnFound};ae[s.value.KeywordType]=s.value.keyword,ae.infoHash&&(ae.infoHash=Ic(ae.infoHash)),console.log("[search filter]",ae);const pe=await r0(n.sign,t.user_id,ae,o.value);u.value=pe,console.log("[search result]",pe),pe.length>0?await se({visible:!1}):await se({content:"没有符合条件的离线任务",subContent:"",visible:!0}),await O(!0)}catch(ae){console.warn("[search error]",ae),Ni.fire({icon:"error",title:ae.toString()}),await se({content:"搜索失败!",subContent:ae.toString(),visible:!0})}finally{a.value=!1}}async function O(j=!0){var pe,Ae;!u.value.length&&j&&Ni.fire({icon:"warning",html:"没有符合条件的离线任务"}),await Hs();const ne=(pe=f.value)==null?void 0:pe.querySelector("ul");if(!ne)return;const ae=document.querySelector("ul#js-warp");ae&&(ae.innerHTML=ne.innerHTML),await I(),(Ae=r.value)==null||Ae.focus()}async function I(){const j=u.value.length,ne=document.querySelector("#js-page");if(!ne)return;const ae=ne.querySelector(".left-bvf span");ae.textContent=`共搜索到 ${j} 个结果`;const pe=ne.querySelector(".pagination .con");pe.style.display="none"}async function H(j){let ne=j.target;if(ne.classList.contains("ifo-remove")&&(ne=ne.closest("a")),!ne.classList.contains("btn-delete-offline"))return;const ae=ne.closest("li"),pe=await op(ae),Ae=[pe.info_hash];let ge={title:"删除离线记录",icon:"warning",html:`确定要删除「${pe.name}」吗?`,showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消"};pe.delete_file_id&&(ge={...ge,input:"checkbox",inputValue:0,inputPlaceholder:"同时删除文件"});const{isConfirmed:P,value:ie}=await fe.fire(ge);if(!P)return;const Y=!!ie;fe.showLoading(),fe.update({html:"正在删除..."}),await ka(Ae,n,Y,t.user_id),ue({icon:"success",title:"删除成功",timer:800,position:"top-end"}),await Dl(Ae)}async function se(j){p.value={...p.value,...j}}return(j,ne)=>(K(),Q("div",{class:Ye(["ce-offline-searcher",{loading:a.value}])},[d("form",h1,[d("fieldset",null,[d("div",m1,[ee(d("select",{"onUpdate:modelValue":ne[0]||(ne[0]=ae=>s.value.KeywordType=ae),size:"small",onChange:x},[(K(!0),Q(Ne,null,nt(de(Y_),(ae,pe)=>(K(),Q("option",{key:pe,value:pe},we(ae),9,g1))),128))],544),[[oi,s.value.KeywordType]])]),d("div",w1,[d("div",{class:Ye(["clearable-wrap",{"is-empty":s.value.keyword===""}])},[ee(d("input",{ref_key:"refKeyword",ref:r,"onUpdate:modelValue":ne[1]||(ne[1]=ae=>s.value.keyword=ae),placeholder:"请输入关键词",clearable:"",onKeyup:Mf(D,["enter"])},null,40,y1),[[ze,s.value.keyword]]),d("button",{type:"button",class:"pure-button pure-button-default button-xsmall btn-clear",onClick:A},"×")],2)]),d("div",b1,[ee(d("select",{"onUpdate:modelValue":ne[2]||(ne[2]=ae=>s.value.status=ae),placeholder:"请选择",clearable:"",style:{width:"90px"}},[d("option",{value:de(kt).any},"-状态-",8,v1),(K(!0),Q(Ne,null,nt(de(xm),(ae,pe)=>(K(),Q("option",{key:pe,value:pe},we(ae),9,_1))),128))],512),[[oi,s.value.status]])]),d("div",x1,[ee(d("input",{type:"number","onUpdate:modelValue":ne[3]||(ne[3]=ae=>s.value.maxPage=ae),min:1,max:1e5,title:"最多查找页数"},null,512),[[ze,s.value.maxPage]]),C1]),d("div",$1,[s.value.KeywordType===de(Ll).name?(K(),Q("label",k1,[ee(d("input",{type:"checkbox","onUpdate:modelValue":ne[4]||(ne[4]=ae=>s.value.stopOnFound=ae),class:"stop-on-found"},null,512),[[Ee,s.value.stopOnFound]]),ce(" 找到即停 ")])):Ge("",!0),d("button",{type:"button",class:"pure-button pure-button-primary button-small",onClick:D},"查找"),ce(" "),d("button",{type:"button",class:"pure-button pure-button-default button-xsmall",onClick:M,title:"清空关键词;重置列表到非查找状态"},"重置")])])]),d("div",{ref_key:"refList",ref:f,class:"list"},[Ce(p1,{items:u.value,space:de(n),profile:de(t)},null,8,["items","space","profile"])],512),p.value.visible?(K(),Q("div",S1,[d("div",E1,[d("h2",null,we(p.value.content),1),p.value.subContent?(K(),Q("p",A1,we(p.value.subContent),1)):Ge("",!0)])])):Ge("",!0)],2))}}),LT="";function An(e){return e.split("-")[0]}function ls(e){return e.split("-")[1]}function ri(e){return["top","bottom"].includes(An(e))?"x":"y"}function Nl(e){return e==="y"?"height":"width"}function rp(e){let{reference:t,floating:n,placement:o}=e;const s=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2;let r;switch(An(o)){case"top":r={x:s,y:t.y-n.height};break;case"bottom":r={x:s,y:t.y+t.height};break;case"right":r={x:t.x+t.width,y:i};break;case"left":r={x:t.x-n.width,y:i};break;default:r={x:t.x,y:t.y}}const a=ri(o),u=Nl(a);switch(ls(o)){case"start":r[a]=r[a]-(t[u]/2-n[u]/2);break;case"end":r[a]=r[a]+(t[u]/2-n[u]/2);break}return r}const I1=async(e,t,n)=>{const{placement:o="bottom",strategy:s="absolute",middleware:i=[],platform:r}=n;if(r==null&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),i.filter(C=>{let{name:x}=C;return x==="autoPlacement"||x==="flip"}).length>1)throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement`","middleware detected. This will lead to an infinite loop. Ensure only","one of either has been passed to the `middleware` array."].join(" "));let a=await r.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:f}=rp({...a,placement:o}),p=o,h={},w=0;for(let C=0;C<i.length;C++){if(w++,w>100)throw new Error(["Floating UI: The middleware lifecycle appears to be","running in an infinite loop. This is usually caused by a `reset`","continually being returned without a break condition."].join(" "));const{name:x,fn:A}=i[C],{x:M,y:D,data:O,reset:I}=await A({x:u,y:f,initialPlacement:o,placement:p,strategy:s,middlewareData:h,rects:a,platform:r,elements:{reference:e,floating:t}});if(u=M!=null?M:u,f=D!=null?D:f,h={...h,[x]:O!=null?O:{}},I){typeof I=="object"&&(I.placement&&(p=I.placement),I.rects&&(a=I.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:s}):I.rects),{x:u,y:f}=rp({...a,placement:p})),C=-1;continue}}return{x:u,y:f,placement:p,strategy:s,middlewareData:h}};function P1(e){return{top:0,right:0,bottom:0,left:0,...e}}function ap(e){return typeof e!="number"?P1(e):{top:e,right:e,bottom:e,left:e}}function Rl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Pr(e,t){t===void 0&&(t={});const{x:n,y:o,platform:s,rects:i,elements:r,strategy:a}=e,{boundary:u="clippingParents",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:h=!1,padding:w=0}=t,C=ap(w),A=r[h?p==="floating"?"reference":"floating":p],M=await s.getClippingClientRect({element:await s.isElement(A)?A:A.contextElement||await s.getDocumentElement({element:r.floating}),boundary:u,rootBoundary:f}),D=Rl(await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:p==="floating"?{...i.floating,x:n,y:o}:i.reference,offsetParent:await s.getOffsetParent({element:r.floating}),strategy:a}));return{top:M.top-D.top+C.top,bottom:D.bottom-M.bottom+C.bottom,left:M.left-D.left+C.left,right:D.right-M.right+C.right}}const T1=Math.min,Lo=Math.max;function Fl(e,t,n){return Lo(e,T1(t,n))}const M1=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=e!=null?e:{},{x:s,y:i,placement:r,rects:a,platform:u}=t;if(n==null)return console.warn("Floating UI: No `element` was passed to the `arrow` middleware."),{};const f=ap(o),p={x:s,y:i},h=An(r),w=ri(h),C=Nl(w),x=await u.getDimensions({element:n}),A=w==="y"?"top":"left",M=w==="y"?"bottom":"right",D=a.reference[C]+a.reference[w]-p[w]-a.floating[C],O=p[w]-a.reference[w],I=await u.getOffsetParent({element:n}),H=I?w==="y"?I.clientHeight||0:I.clientWidth||0:0,se=D/2-O/2,j=f[A],ne=H-x[C]-f[M],ae=H/2-x[C]/2+se,pe=Fl(j,ae,ne);return{data:{[w]:pe,centerOffset:ae-pe}}}}),L1={left:"right",right:"left",bottom:"top",top:"bottom"};function Tr(e){return e.replace(/left|right|bottom|top/g,t=>L1[t])}function lp(e,t){const n=ls(e)==="start",o=ri(e),s=Nl(o);let i=o==="x"?n?"right":"left":n?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Tr(i)),{main:i,cross:Tr(i)}}const B1={start:"end",end:"start"};function jl(e){return e.replace(/start|end/g,t=>B1[t])}const D1=["top","right","bottom","left"].reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function N1(e,t,n){return(e?[...n.filter(s=>ls(s)===e),...n.filter(s=>ls(s)!==e)]:n.filter(s=>An(s)===s)).filter(s=>e?ls(s)===e||(t?jl(s)!==s:!1):!0)}const R1=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,s,i,r,a;const{x:u,y:f,rects:p,middlewareData:h,placement:w}=t,{alignment:C=null,allowedPlacements:x=D1,autoAlignment:A=!0,...M}=e;if((n=h.autoPlacement)!=null&&n.skip)return{};const D=N1(C,A,x),O=await Pr(t,M),I=(o=(s=h.autoPlacement)==null?void 0:s.index)!=null?o:0,H=D[I],{main:se,cross:j}=lp(H,p);if(w!==H)return{x:u,y:f,reset:{placement:D[0]}};const ne=[O[An(H)],O[se],O[j]],ae=[...(i=(r=h.autoPlacement)==null?void 0:r.overflows)!=null?i:[],{placement:H,overflows:ne}],pe=D[I+1];if(pe)return{data:{index:I+1,overflows:ae},reset:{placement:pe}};const Ae=ae.slice().sort((P,ie)=>P.overflows[0]-ie.overflows[0]),ge=(a=Ae.find(P=>{let{overflows:ie}=P;return ie.every(Y=>Y<=0)}))==null?void 0:a.placement;return{data:{skip:!0},reset:{placement:ge!=null?ge:Ae[0].placement}}}}};function F1(e){const t=Tr(e);return[jl(e),t,jl(t)]}const j1=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:s,middlewareData:i,rects:r,initialPlacement:a}=t;if((n=i.flip)!=null&&n.skip)return{};const{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",flipAlignment:w=!0,...C}=e,x=An(s),M=p||(x===a||!w?[Tr(a)]:F1(a)),D=[a,...M],O=await Pr(t,C),I=[];let H=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&I.push(O[x]),f){const{main:ae,cross:pe}=lp(s,r);I.push(O[ae],O[pe])}if(H=[...H,{placement:s,overflows:I}],!I.every(ae=>ae<=0)){var se,j;const ae=((se=(j=i.flip)==null?void 0:j.index)!=null?se:0)+1,pe=D[ae];if(pe)return{data:{index:ae,overflows:H},reset:{placement:pe}};let Ae="bottom";switch(h){case"bestFit":{var ne;const ge=(ne=H.slice().sort((P,ie)=>P.overflows.filter(Y=>Y>0).reduce((Y,_e)=>Y+_e,0)-ie.overflows.filter(Y=>Y>0).reduce((Y,_e)=>Y+_e,0))[0])==null?void 0:ne.placement;ge&&(Ae=ge);break}case"initialPlacement":Ae=a;break}return{data:{skip:!0},reset:{placement:Ae}}}return{}}}};function U1(e){let{placement:t,rects:n,value:o}=e;const s=An(t),i=["left","top"].includes(s)?-1:1,r=typeof o=="function"?o({...n,placement:t}):o,{mainAxis:a,crossAxis:u}=typeof r=="number"?{mainAxis:r,crossAxis:0}:{mainAxis:0,crossAxis:0,...r};return ri(s)==="x"?{x:u,y:a*i}:{x:a*i,y:u}}const H1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(t){const{x:n,y:o,placement:s,rects:i}=t,r=U1({placement:s,rects:i,value:e});return{x:n+r.x,y:o+r.y,data:r}}}};function z1(e){return e==="x"?"y":"x"}const q1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:s}=t,{mainAxis:i=!0,crossAxis:r=!1,limiter:a={fn:M=>{let{x:D,y:O}=M;return{x:D,y:O}}},...u}=e,f={x:n,y:o},p=await Pr(t,u),h=ri(An(s)),w=z1(h);let C=f[h],x=f[w];if(i){const M=h==="y"?"top":"left",D=h==="y"?"bottom":"right",O=C+p[M],I=C-p[D];C=Fl(O,C,I)}if(r){const M=w==="y"?"top":"left",D=w==="y"?"bottom":"right",O=x+p[M],I=x-p[D];x=Fl(O,x,I)}const A=a.fn({...t,[h]:C,[w]:x});return{...A,data:{x:A.x-n,y:A.y-o}}}}},V1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n;const{placement:o,rects:s,middlewareData:i}=t,{apply:r,...a}=e;if((n=i.size)!=null&&n.skip)return{};const u=await Pr(t,a),f=An(o),p=ls(o)==="end";let h,w;f==="top"||f==="bottom"?(h=f,w=p?"left":"right"):(w=f,h=p?"top":"bottom");const C=Lo(u.left,0),x=Lo(u.right,0),A=Lo(u.top,0),M=Lo(u.bottom,0),D={height:s.floating.height-(["left","right"].includes(o)?2*(A!==0||M!==0?A+M:Lo(u.top,u.bottom)):u[h]),width:s.floating.width-(["top","bottom"].includes(o)?2*(C!==0||x!==0?C+x:Lo(u.left,u.right)):u[w])};return r==null||r({...D,...s}),{data:{skip:!0},reset:{rects:!0}}}}};function Ul(e){return(e==null?void 0:e.toString())==="[object Window]"}function no(e){if(e==null)return window;if(!Ul(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Mr(e){return no(e).getComputedStyle(e)}function On(e){return Ul(e)?"":e?(e.nodeName||"").toLowerCase():""}function In(e){return e instanceof no(e).HTMLElement}function Lr(e){return e instanceof no(e).Element}function W1(e){return e instanceof no(e).Node}function cp(e){const t=no(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Br(e){const{overflow:t,overflowX:n,overflowY:o}=Mr(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function K1(e){return["table","td","th"].includes(On(e))}function up(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),n=Mr(e);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||t&&n.willChange==="filter"||t&&(n.filter?n.filter!=="none":!1)}const dp=Math.min,ai=Math.max,Dr=Math.round;function cs(e,t){t===void 0&&(t=!1);const n=e.getBoundingClientRect();let o=1,s=1;return t&&In(e)&&(o=e.offsetWidth>0&&Dr(n.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Dr(n.height)/e.offsetHeight||1),{width:n.width/o,height:n.height/s,top:n.top/s,right:n.right/o,bottom:n.bottom/s,left:n.left/o,x:n.left/o,y:n.top/s}}function oo(e){return((W1(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nr(e){return Ul(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function fp(e){return cs(oo(e)).left+Nr(e).scrollLeft}function G1(e){const t=cs(e);return Dr(t.width)!==e.offsetWidth||Dr(t.height)!==e.offsetHeight}function J1(e,t,n){const o=In(t),s=oo(t),i=cs(e,o&&G1(t));let r={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&n!=="fixed")if((On(t)!=="body"||Br(s))&&(r=Nr(t)),In(t)){const u=cs(t,!0);a.x=u.x+t.clientLeft,a.y=u.y+t.clientTop}else s&&(a.x=fp(s));return{x:i.left+r.scrollLeft-a.x,y:i.top+r.scrollTop-a.y,width:i.width,height:i.height}}function Rr(e){return On(e)==="html"?e:e.assignedSlot||e.parentNode||(cp(e)?e.host:null)||oo(e)}function pp(e){return!In(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function Y1(e){let t=Rr(e);for(;In(t)&&!["html","body"].includes(On(t));){if(up(t))return t;t=t.parentNode}return null}function Hl(e){const t=no(e);let n=pp(e);for(;n&&K1(n)&&getComputedStyle(n).position==="static";)n=pp(n);return n&&(On(n)==="html"||On(n)==="body"&&getComputedStyle(n).position==="static"&&!up(n))?t:n||Y1(e)||t}function hp(e){return{width:e.offsetWidth,height:e.offsetHeight}}function X1(e){let{rect:t,offsetParent:n,strategy:o}=e;const s=In(n),i=oo(n);if(n===i)return t;let r={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((s||!s&&o!=="fixed")&&((On(n)!=="body"||Br(i))&&(r=Nr(n)),In(n))){const u=cs(n,!0);a.x=u.x+n.clientLeft,a.y=u.y+n.clientTop}return{...t,x:t.x-r.scrollLeft+a.x,y:t.y-r.scrollTop+a.y}}function Q1(e){const t=no(e),n=oo(e),o=t.visualViewport;let s=n.clientWidth,i=n.clientHeight,r=0,a=0;return o&&(s=o.width,i=o.height,Math.abs(t.innerWidth/o.scale-o.width)<.01&&(r=o.offsetLeft,a=o.offsetTop)),{width:s,height:i,x:r,y:a}}function Z1(e){var t;const n=oo(e),o=Nr(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=ai(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=ai(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0);let a=-o.scrollLeft+fp(e);const u=-o.scrollTop;return Mr(s||n).direction==="rtl"&&(a+=ai(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:r,x:a,y:u}}function mp(e){return["html","body","#document"].includes(On(e))?e.ownerDocument.body:In(e)&&Br(e)?e:mp(Rr(e))}function Fr(e,t){var n;t===void 0&&(t=[]);const o=mp(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),i=no(o),r=s?[i].concat(i.visualViewport||[],Br(o)?o:[]):o,a=t.concat(r);return s?a:a.concat(Fr(Rr(r)))}function ex(e,t){const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&cp(n)){let o=t;do{if(o&&e===o)return!0;o=o.parentNode||o.host}while(o)}return!1}function tx(e){const t=cs(e),n=t.top+e.clientTop,o=t.left+e.clientLeft;return{top:n,left:o,x:o,y:n,right:o+e.clientWidth,bottom:n+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function gp(e,t){return t==="viewport"?Rl(Q1(e)):Lr(t)?tx(t):Rl(Z1(oo(e)))}function nx(e){const t=Fr(Rr(e)),o=["absolute","fixed"].includes(Mr(e).position)&&In(e)?Hl(e):e;return Lr(o)?t.filter(s=>Lr(s)&&ex(s,o)&&On(s)!=="body"):[]}function ox(e){let{element:t,boundary:n,rootBoundary:o}=e;const i=[...n==="clippingParents"?nx(t):[].concat(n),o],r=i[0],a=i.reduce((u,f)=>{const p=gp(t,f);return u.top=ai(p.top,u.top),u.right=dp(p.right,u.right),u.bottom=dp(p.bottom,u.bottom),u.left=ai(p.left,u.left),u},gp(t,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}const sx={getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:J1(t,Hl(n),o),floating:{...hp(n),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:e=>X1(e),getOffsetParent:e=>{let{element:t}=e;return Hl(t)},isElement:e=>Lr(e),getDocumentElement:e=>{let{element:t}=e;return oo(t)},getClippingClientRect:e=>ox(e),getDimensions:e=>{let{element:t}=e;return hp(t)},getClientRects:e=>{let{element:t}=e;return t.getClientRects()}},ix=(e,t,n)=>I1(e,t,{platform:sx,...n});var rx=Object.defineProperty,ax=Object.defineProperties,lx=Object.getOwnPropertyDescriptors,wp=Object.getOwnPropertySymbols,cx=Object.prototype.hasOwnProperty,ux=Object.prototype.propertyIsEnumerable,yp=(e,t,n)=>t in e?rx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pn=(e,t)=>{for(var n in t||(t={}))cx.call(t,n)&&yp(e,n,t[n]);if(wp)for(var n of wp(t))ux.call(t,n)&&yp(e,n,t[n]);return e},li=(e,t)=>ax(e,lx(t));function bp(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?bp(e[n],t[n]):e[n]=t[n])}const Tn={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function us(e,t){let n=Tn.themes[e]||{},o;do o=n[t],typeof o>"u"?n.$extend?n=Tn.themes[n.$extend]||{}:(n=null,o=Tn[t]):n=null;while(n);return o}function dx(e){const t=[e];let n=Tn.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Tn.themes[n.$extend]||{}):n=null;while(n);return t.map(o=>`v-popper--theme-${o}`)}function vp(e){const t=[e];let n=Tn.themes[e]||{};do n.$extend?(t.push(n.$extend),n=Tn.themes[n.$extend]||{}):n=null;while(n);return t}let Bo=!1;if(typeof window<"u"){Bo=!1;try{const e=Object.defineProperty({},"passive",{get(){Bo=!0}});window.addEventListener("test",null,e)}catch{}}let _p=!1;typeof window<"u"&&typeof navigator<"u"&&(_p=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const xp=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Cp={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},$p={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function kp(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function zl(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const tn=[];let Do=null;const Sp={};function Ep(e){let t=Sp[e];return t||(t=Sp[e]=[]),t}let ql=function(){};typeof window<"u"&&(ql=window.Element);function qe(e){return function(t){return us(t.theme,e)}}const Vl="__floating-vue__popper";var Ap=()=>De({name:"VPopper",provide(){return{[Vl]:{parentPopper:this}}},inject:{[Vl]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:qe("disabled")},positioningDisabled:{type:Boolean,default:qe("positioningDisabled")},placement:{type:String,default:qe("placement"),validator:e=>xp.includes(e)},delay:{type:[String,Number,Object],default:qe("delay")},distance:{type:[Number,String],default:qe("distance")},skidding:{type:[Number,String],default:qe("skidding")},triggers:{type:Array,default:qe("triggers")},showTriggers:{type:[Array,Function],default:qe("showTriggers")},hideTriggers:{type:[Array,Function],default:qe("hideTriggers")},popperTriggers:{type:Array,default:qe("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:qe("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:qe("popperHideTriggers")},container:{type:[String,Object,ql,Boolean],default:qe("container")},boundary:{type:[String,ql],default:qe("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:qe("strategy")},autoHide:{type:[Boolean,Function],default:qe("autoHide")},handleResize:{type:Boolean,default:qe("handleResize")},instantMove:{type:Boolean,default:qe("instantMove")},eagerMount:{type:Boolean,default:qe("eagerMount")},popperClass:{type:[String,Array,Object],default:qe("popperClass")},computeTransformOrigin:{type:Boolean,default:qe("computeTransformOrigin")},autoMinSize:{type:Boolean,default:qe("autoMinSize")},autoSize:{type:[Boolean,String],default:qe("autoSize")},autoMaxSize:{type:Boolean,default:qe("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:qe("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:qe("preventOverflow")},overflowPadding:{type:[Number,String],default:qe("overflowPadding")},arrowPadding:{type:[Number,String],default:qe("arrowPadding")},arrowOverflow:{type:Boolean,default:qe("arrowOverflow")},flip:{type:Boolean,default:qe("flip")},shift:{type:Boolean,default:qe("shift")},shiftCrossAxis:{type:Boolean,default:qe("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:qe("noAutoFocus")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:li(Pn({},this.classes),{popperClass:this.popperClass}),result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Vl])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:Pn(Pn({shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())}},["triggers","positioningDisabled"].reduce((e,t)=>(e[t]="$_refreshListeners",e),{})),["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})),created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var o,s;((o=this.parentPopper)==null?void 0:o.lockedChild)&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(n||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e,t;!this.$_isDisposed||(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=(t=(e=this.referenceNode)==null?void 0:e.call(this))!=null?t:this.$el,this.$_targetNodes=this.targetNodes().filter(n=>n.nodeType===n.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){var e;if(this.$_isDisposed||this.positioningDisabled)return;const t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(H1({mainAxis:this.distance,crossAxis:this.skidding}));const n=this.placement.startsWith("auto");if(n?t.middleware.push(R1({alignment:(e=this.placement.split("-")[1])!=null?e:""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(q1({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!n&&this.flip&&t.middleware.push(j1({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(M1({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:s,rects:i,middlewareData:r})=>{let a;const{centerOffset:u}=r.arrow;return s.startsWith("top")||s.startsWith("bottom")?a=Math.abs(u)>i.reference.width/2:a=Math.abs(u)>i.reference.height/2,{data:{overflow:a}}}}),this.autoMinSize||this.autoSize){const s=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:i,placement:r,middlewareData:a})=>{var u;if((u=a.autoSize)!=null&&u.skip)return{};let f,p;return r.startsWith("top")||r.startsWith("bottom")?f=i.reference.width:p=i.reference.height,this.$_innerNode.style[s==="min"?"minWidth":s==="max"?"maxWidth":"width"]=f!=null?`${f}px`:null,this.$_innerNode.style[s==="min"?"minHeight":s==="max"?"maxHeight":"height"]=p!=null?`${p}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,t.middleware.push(V1({boundary:this.boundary,padding:this.overflowPadding,apply:({width:s,height:i})=>{this.$_innerNode.style.maxWidth=s!=null?`${s}px`:null,this.$_innerNode.style.maxHeight=i!=null?`${i}px`:null}})));const o=await ix(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:o.x,y:o.y,placement:o.placement,strategy:o.strategy,arrow:Pn(Pn({},o.middlewareData.arrow),o.middlewareData.arrowOverflow)})},$_scheduleShow(e=null,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Do&&this.instantMove&&Do.instantMove&&Do!==this.parentPopper){Do.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e=null,t=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Do=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await zl(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Fr(this.$_referenceNode),...Fr(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),o=n.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+n.offsetLeft),i=t.y+t.height/2-(o.top+n.offsetTop);this.result.transformOrigin=`${s}px ${i}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n<tn.length;n++)t=tn[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}tn.push(this),document.body.classList.add("v-popper--some-open");for(const t of vp(this.theme))Ep(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await zl(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,kp(tn,this),tn.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of vp(this.theme)){const o=Ep(n);kp(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}Do===this&&(Do=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=us(this.theme,"disposeTimeout");t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await zl(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,Cp,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Cp,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,$p,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],$p,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(o=>o.addEventListener(t,n,Bo?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,o,s){let i=n;o!=null&&(i=typeof o=="function"?o(i):o),i.forEach(r=>{const a=t[r];a&&this.$_registerEventListeners(e,a,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:o,eventType:s,handler:i}=n;!e||e===s?o.forEach(r=>r.removeEventListener(s,i)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const n of this.$_targetNodes){const o=n.getAttribute(e);o&&(n.removeAttribute(e),n.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const o=e[n];o==null?t.removeAttribute(n):t.setAttribute(n,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.$_pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(ci>=e.left&&ci<=e.right&&ui>=e.top&&ui<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=ci-so,o=ui-io,i=t.left+t.width/2-so+(t.top+t.height/2)-io+t.width+t.height,r=so+n*i,a=io+o*i;return jr(so,io,r,a,t.left,t.top,t.left,t.bottom)||jr(so,io,r,a,t.left,t.top,t.right,t.top)||jr(so,io,r,a,t.right,t.top,t.right,t.bottom)||jr(so,io,r,a,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(_p?(document.addEventListener("touchstart",Op,Bo?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",px,Bo?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",Op,!0),window.addEventListener("click",fx,!0)),window.addEventListener("resize",gx));function Op(e){for(let t=0;t<tn.length;t++){const n=tn[t];try{const o=n.popperNode();n.$_mouseDownContains=o.contains(e.target)}catch{}}}function fx(e){Ip(e)}function px(e){Ip(e,!0)}function Ip(e,t=!1){const n={};for(let o=tn.length-1;o>=0;o--){const s=tn[o];try{const i=s.$_containsGlobalTarget=hx(s,e);s.$_pendingHide=!1,requestAnimationFrame(()=>{if(s.$_pendingHide=!1,!n[s.randomId]&&Pp(s,i,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&i){let a=s.parentPopper;for(;a;)n[a.randomId]=!0,a=a.parentPopper;return}let r=s.parentPopper;for(;r&&Pp(r,r.$_containsGlobalTarget,e);){r.$_handleGlobalClose(e,t);r=r.parentPopper}}})}catch{}}}function hx(e,t){const n=e.popperNode();return e.$_mouseDownContains||n.contains(t.target)}function Pp(e,t,n){return n.closeAllPopover||n.closePopover&&t||mx(e,n)&&!t}function mx(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function gx(e){for(let t=0;t<tn.length;t++)tn[t].$_computePosition(e)}let so=0,io=0,ci=0,ui=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{so=ci,io=ui,ci=e.clientX,ui=e.clientY},Bo?{passive:!0}:void 0);function jr(e,t,n,o,s,i,r,a){const u=((r-s)*(t-i)-(a-i)*(e-s))/((a-i)*(n-e)-(r-s)*(o-t)),f=((n-e)*(t-i)-(o-t)*(e-s))/((a-i)*(n-e)-(r-s)*(o-t));return u>=0&&u<=1&&f>=0&&f<=1}var Ur=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n};const wx={extends:Ap()};function yx(e,t,n,o,s,i){return K(),Q("div",{ref:"reference",class:Ye(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[kn(e.$slots,"default",Fw(gf(e.slotData)))],2)}var bx=Ur(wx,[["render",yx]]);function vx(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Hr;function Wl(){Wl.init||(Wl.init=!0,Hr=vx()!==-1)}var zr={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Wl(),Hs(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Hr&&this.$el.appendChild(e),e.data="about:blank",Hr||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Hr&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const _x=cb();ab("data-v-b329ee4c");const xx={class:"resize-observer",tabindex:"-1"};lb();const Cx=_x((e,t,n,o,s,i)=>(K(),Wt("div",xx)));zr.render=Cx,zr.__scopeId="data-v-b329ee4c",zr.__file="src/components/ResizeObserver.vue";var Tp=(e="theme")=>({computed:{themeClass(){return dx(this[e])}}});const $x=De({name:"VPopperContent",components:{ResizeObserver:zr},mixins:[Tp()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),kx=["id","aria-hidden","tabindex","data-popper-placement"],Sx={ref:"inner",class:"v-popper__inner"},Ex=[d("div",{class:"v-popper__arrow-outer"},null,-1),d("div",{class:"v-popper__arrow-inner"},null,-1)];function Ax(e,t,n,o,s,i){const r=Ao("ResizeObserver");return K(),Q("div",{id:e.popperId,ref:"popover",class:Ye(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:vn(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Mf(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[d("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),d("div",{class:"v-popper__wrapper",style:vn(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[d("div",Sx,[e.mounted?(K(),Q(Ne,{key:0},[d("div",null,[kn(e.$slots,"default")]),e.handleResize?(K(),Wt(r,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):Ge("",!0)],64)):Ge("",!0)],512),d("div",{ref:"arrow",class:"v-popper__arrow-container",style:vn(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},Ex,4)],4)],46,kx)}var Mp=Ur($x,[["render",Ax]]),Lp={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};const Ox=De({name:"VPopperWrapper",components:{Popper:bx,PopperContent:Mp},mixins:[Lp,Tp("finalTheme")],props:{theme:{type:String,default:null}},computed:{finalTheme(){var e;return(e=this.theme)!=null?e:this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function Ix(e,t,n,o,s,i){const r=Ao("PopperContent"),a=Ao("Popper");return K(),Wt(a,{ref:"popper",theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:Ye([e.themeClass])},{default:Ke(({popperId:u,isShown:f,shouldMountContent:p,skipTransition:h,autoHide:w,show:C,hide:x,handleResize:A,onResize:M,classes:D,result:O})=>[kn(e.$slots,"default",{shown:f,show:C,hide:x}),Ce(r,{ref:"popperContent","popper-id":u,theme:e.finalTheme,shown:f,mounted:p,"skip-transition":h,"auto-hide":w,"handle-resize":A,classes:D,result:O,onHide:x,onResize:M},{default:Ke(()=>[kn(e.$slots,"popper",{shown:f,hide:x})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},8,["theme","target-nodes","popper-node","class"])}var Kl=Ur(Ox,[["render",Ix]]);const Px=De(li(Pn({},Kl),{name:"VDropdown",vPopperTheme:"dropdown"})),Tx=De(li(Pn({},Kl),{name:"VMenu",vPopperTheme:"menu"})),Mx=De(li(Pn({},Kl),{name:"VTooltip",vPopperTheme:"tooltip"})),Lx=De({name:"VTooltipDirective",components:{Popper:Ap(),PopperContent:Mp},mixins:[Lp],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>us(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>us(e.theme,"loadingContent")}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,n=this.content(this);n.then?n.then(o=>this.onResult(t,o)):this.onResult(t,n)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),Bx=["innerHTML"],Dx=["textContent"];function Nx(e,t,n,o,s,i){const r=Ao("PopperContent"),a=Ao("Popper");return K(),Wt(a,yf({ref:"popper"},e.$attrs,{theme:e.theme,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:Ke(({popperId:u,isShown:f,shouldMountContent:p,skipTransition:h,autoHide:w,hide:C,handleResize:x,onResize:A,classes:M,result:D})=>[Ce(r,{ref:"popperContent",class:Ye({"v-popper--tooltip-loading":e.loading}),"popper-id":u,theme:e.theme,shown:f,mounted:p,"skip-transition":h,"auto-hide":w,"handle-resize":x,classes:M,result:D,onHide:C,onResize:A},{default:Ke(()=>[e.html?(K(),Q("div",{key:0,innerHTML:e.finalContent},null,8,Bx)):(K(),Q("div",{key:1,textContent:we(e.finalContent)},null,8,Dx))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","popper-node","onApplyShow","onApplyHide"])}var Rx=Ur(Lx,[["render",Nx]]);const Bp="v-popper--has-tooltip";function Fx(e,t){let n=e.placement;if(!n&&t)for(const o of xp)t[o]&&(n=o);return n||(n=us(e.theme||"tooltip","placement")),n}function Dp(e,t,n){let o;const s=typeof t;return s==="string"?o={content:t}:t&&s==="object"?o=t:o={content:!1},o.placement=Fx(o,n),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let Gl,di,jx=0;function Ux(){if(Gl)return;di=he([]),Gl=to({name:"VTooltipDirectiveApp",setup(){return{directives:di}},render(){return this.directives.map(t=>vv(Rx,li(Pn({},t.options),{shown:t.shown||t.options.shown,key:t.id})))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Gl.mount(e)}function Hx(e,t,n){Ux();const o=he(Dp(e,t,n)),s=he(!1),i={id:jx++,options:o,shown:s};return di.value.push(i),e.classList&&e.classList.add(Bp),e.$_popper={options:o,item:i,show(){s.value=!0},hide(){s.value=!1}}}function Np(e){if(e.$_popper){const t=di.value.indexOf(e.$_popper.item);t!==-1&&di.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Bp)}function Rp(e,{value:t,modifiers:n}){const o=Dp(e,t,n);if(!o.content||us(o.theme||"tooltip","disabled"))Np(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Hx(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}var zx={beforeMount:Rp,updated:Rp,beforeUnmount(e){Np(e)}};function Fp(e){e.addEventListener("click",Up),e.addEventListener("touchstart",Hp,Bo?{passive:!0}:!1)}function jp(e){e.removeEventListener("click",Up),e.removeEventListener("touchstart",Hp),e.removeEventListener("touchend",zp),e.removeEventListener("touchcancel",qp)}function Up(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Hp(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",zp),t.addEventListener("touchcancel",qp)}}function zp(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const n=e.changedTouches[0],o=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-o.screenY)<20&&Math.abs(n.screenX-o.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function qp(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}var qx={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&Fp(e)},updated(e,{value:t,oldValue:n,modifiers:o}){e.$_closePopoverModifiers=o,t!==n&&(typeof t>"u"||t?Fp(e):jp(e))},beforeUnmount(e){jp(e)}};function Vx(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,bp(Tn,t),e.directive("tooltip",zx),e.directive("close-popper",qx),e.component("VTooltip",Mx),e.component("VDropdown",Px),e.component("VMenu",Tx))}const Jl={version:"2.0.0-beta.20",install:Vx,options:Tn},RT="",Vp="basic_config",Yl={name:"115不大助手",version:"0.5.53",author:{name:"生瓜太保",email:"[email protected]"},greasyforkUrl:"http://greasyfork.icu/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"};function Wx(e){return{hideSidebar:!0,showOfflineEntry:!1,offlineEntryLabel:"云下载",showAddOffline:!1,addOfflineLabel:"添加",transferDefaultOffline:!1,showFavEntry:!1,favEntryLabel:"星标",hideWatermark:!0,fakeAccountEnabled:!1,fakeAccountId:"",fakeAccountName:"",fakeAccountAvatar:"",fakeAccountVip:"",...e}}async function qr(){const e=Wx(),t=await Ze.get(Vp,e);return{...e,...t}}async function Kx(e){await Ze.set(Vp,e)}async function Gx(e){!e.hideSidebar||(console.log("[Cloud115 Enhancer] hideSidebar"),window.top!==window.self?(await on('[rel="page_top_btn"]')).show():(await on("#site_left_bar")).hide())}async function Jx(e){if(!e.showOfflineEntry)return;const{search:t}=location;if(!t.includes("ct=file"))return;console.log("[Cloud115 Enhancer] showOfflineEntry");const n=await on("a#js_filter_btn"),o="https://115.com/?ct=index&ac=offline_new_tpl&offline=1&tab=offline",s="background:#fffcea;",i=`点击跳转到「云下载」页面。该按钮由 ${Yl.name} 注入`,r=e.offlineEntryLabel?`<span>${e.offlineEntryLabel}</span>`:"",a=$(`<a href="javascript:;" class="button btn-line" title="${i}" tab_btn="wangpan" mode-tab="offline" style="${s}">
<i class="icon-operate ifo-linktask"></i>
${r}
</a>`);n.after(a),a.on("click",()=>{try{mo().oofUtil.urlMaintain.changeMode("wangpan",{tab:"offline"})}catch(u){console.log('[Cloud115 Enhancer] showOfflineEntry failed with "top.oofUtil.urlMaintain.changeMode".',u),location.href=o}})}async function Yx(e){if(!e.showAddOffline)return;const{search:t}=location;if(!t.includes("ct=file"))return;console.log("[Cloud115 Enhancer] showAddOffline");const n=await on("a#js_filter_btn"),o="background:#fffcea;",s=`点击打开到「添加云下载」对话框。该按钮由 ${Yl.name} 注入`,i=e.addOfflineLabel?`<span>${e.addOfflineLabel}</span>`:"",r=$(`<a href="javascript:;" class="button btn-line" menu="offline_task" style="${o}" title="${s}">
<i class="icon-operate ifo-linktask"></i>${i}
</a>`);n.after(r)}async function Xx(e){if(!e.showFavEntry)return;const{search:t}=location;if(!t.includes("ct=file"))return;console.log("[Cloud115 Enhancer] showFavEntry");const n=await on("a#js_filter_btn"),o="https://115.com/?tab=label&show_label=1&label_id=-1&mode=wangpan",s="background:#fffcea;",i=`点击跳转到「星标」页面。该按钮由 ${Yl.name} 注入`,r=e.favEntryLabel?`<span>${e.favEntryLabel}</span>`:"",a=$(`<a href="javascript:;" class="button btn-line" title="${i}" tab_btn="wangpan" mode-tab="{tab:'label',label_id:-1,show_label:1}" style="${s}">
<i class="icon-operate ifo-fav"></i>
${r}
</a>`);n.after(a),a.on("click",()=>{try{mo().oofUtil.urlMaintain.changeMode("wangpan",{tab:"label",label_id:-1,show_label:1})}catch(u){console.log('[Cloud115 Enhancer] showFavEntry failed with "top.oofUtil.urlMaintain.changeMode".',u),location.href=o}})}async function Qx(e){if(!e.transferDefaultOffline)return;const{search:t}=location;if(window.top!==window||!t.includes("mode=wangpan"))return;console.log("[Cloud115 Enhancer] makeTransferDefaultOffline");const n=await on('#js_sub_nav_scroller a[mode-tab="upload"]');n.attr("mode-tab","offline").attr("href","https://115.com/?tab=offline&mode=wangpan"),n.find("i").removeClass("icon-ns-transfer").removeClass("icon-nv-file inf-transmit").addClass("icon-operate ifo-linktask").css({filter:"invert(0.6)",marginRight:12,zoom:1.2})}async function Zx(e){if(!!e.hideWatermark){console.log("[Cloud115 Enhancer] hideWatermark");try{const t=await vs('div[class^="fp-"]');t.classList.add("hidden-watermark"),t.style.display="none"}catch(t){console.error("[Cloud115 Enhancer] hideWatermark",t.message)}}}async function eC(e){window.top===window.self&&(await Bt(1e3),Xl(e),window.addEventListener("message",async t=>{const n=t.data.event,o=t.data.body;n===Mt.basicConfigChange&&(console.log("[Cloud115 Enhancer] basicConfigChange"),Xl(o))}))}let fi=null;async function tC(){fi&&clearTimeout(fi),fi=setTimeout(async()=>{const e=await qr();Xl(e)},5e3)}async function Xl(e){fi&&clearTimeout(fi);const t=async(n,o)=>{const s=await on('[rel="user_id"]',100);s.data("origin")||s.data("origin",s.text()),o?s.text(s.data("origin")):s.text(n.fakeAccountId);const i=await on('[rel="user_name"]',100);i.data("origin")||i.data("origin",$(i[0]).text()),o?i.text(i.data("origin")):i.text(n.fakeAccountName);const r=await on('img[rel="user_face"], .user-avatar img',100);r.data("origin")||r.data("origin",r.attr("src")),o?r.attr("src",r.data("origin")):(r.attr("rel","noreferrer"),r.attr("src",n.fakeAccountAvatar));const a=await on(".sign-vip-card",100);a.data("origin")||a.data("origin",$(a[0]).text()),o?a.text(a.data("origin")):a.text(n.fakeAccountVip)};try{e.fakeAccountEnabled?await t(e,!1):await t(e,!0)}catch(n){console.error(n)}finally{e.fakeAccountEnabled&&tC()}}async function nC(){const{host:e,search:t}=location;e!=="115.com"||!t.includes("offline=1&tab=offline")||(await oC(),await sC(),iC(),a0())}async function oC(){console.log("[Cloud115 Enhancer] Injecting offline exporter...");const e="cloud115OfflineExporter",t=await Mo();document.body.classList.add("cloud115-page-offline"),t.enableListManagement&&document.body.classList.add("ce-list-m"),$("body").append(`<div id="${e}"/>`);const n=to(F0);n.use(Jl),n.mount(`#${e}`)}async function sC(){console.log("[Cloud115 Enhancer] Injecting offline searcher...");const e="cloud115OfflineSearcher",t=await Mo();document.body.classList.add("cloud115-page-offline"),t.enableSearcher&&document.body.classList.add("ce-list-s"),$("body").append(`<div id="${e}"/>`);const n=to(O1);n.use(Jl),n.mount(`#${e}`)}async function iC(){(await qr()).hideSidebar&&($('.more-box[rel="transfer_top_btn"]').show(),$('a[menu="upload"]').show(),$('.clp-box[rel="transfer_top_btn"]').show())}var Mn=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.OPEN_CLEANER=1]="OPEN_CLEANER",e[e.CLOSE_CLEANER=2]="CLOSE_CLEANER",e[e.CLEANER_OPENED=3]="CLEANER_OPENED",e[e.INVOKE_FILTER=4]="INVOKE_FILTER",e))(Mn||{});const rC={class:"cloud115-eh-cleaner-trigger"},aC=[d("span",null,"清理文件",-1)],lC=De({__name:"Trigger",setup(e){he(!1);const t=he(!0);async function n(a){switch(a.data.type){case Mn.INVOKE_FILTER:await sw(a.data.payload);break;case Mn.CLEANER_OPENED:await r(a.data.payload);break}}Rt(async()=>{console.log("[CleanerTrigger onMounted]"),window.addEventListener("message",n)}),Xs(()=>{console.log("[CleanerTrigger onUnmounted]"),window.removeEventListener("message",n)});async function o(){await i(),xi({type:Mn.OPEN_CLEANER},window.parent)}let s=0;async function i(){const a=ym("cid");!a||a==="0"||(clearTimeout(s),s=window.setTimeout(async()=>{ue({icon:"error",text:"打开清理工具失败!"})},1e3))}async function r(a){console.log("成功打开Cleaner"),clearTimeout(s)}return(a,u)=>ee((K(),Q("span",rC,[kn(a.$slots,"default",{},()=>[d("span",{class:"btn-open pure-button pure-button-primary",onClick:o},aC)])],512)),[[Gt,t.value]])}}),jT="";var Ue=(e=>(e[e.suffix=0]="suffix",e[e.keyword=1]="keyword",e))(Ue||{}),ht=(e=>(e[e.append=0]="append",e[e.cover=1]="cover",e[e.clear=2]="clear",e[e.reset=3]="reset",e[e.assign=4]="assign",e))(ht||{}),ut=(e=>(e.none="",e.prepare="查询文件...",e.prepared="查询文件完成",e.prepareFailed="查询失败",e.deleting="删除文件中...",e.success="清理完成",e.failed="清理失败",e))(ut||{});wt.all,tt.all,wt.video,tt.video,wt.audio,tt.audio,wt.image,tt.image,wt.doc,tt.doc,wt.app,tt.app,wt.archive,tt.archive;const cC=new Map([[tt.all,wt.all],[tt.video,wt.video],[tt.audio,wt.audio],[tt.image,wt.image],[tt.doc,wt.doc],[tt.app,wt.app],[tt.archive,wt.archive]]),Vr="#",Wp="#",uC=[{type:Ue.suffix,queryOnly:!1,label:"默认",memo:"请谨慎使用!",size:5,values:["txt","url","html","htm","mht"]},{type:Ue.suffix,queryOnly:!0,label:"🔍115筛选",memo:"仅用于查询",size:102400,values:["#视频","#音频","#图片","#文档","#应用","#压缩包"]}],dC=["#論壇文宣","#宣傳文本","最新地址","最新网址","论坛地址","永久地址","地址发布","扫码 安装","扫码 下载","免費 掃碼","澳门 赌场","皇冠 赌场","免费18禁手游","免费黄游手游","在线影城","秀场 小视频","裸秀 主播 免费看","第一会所 宣传","SIS 影视联盟",'"最 新 位 址 獲 取"','"社 區 最 新 情 報"','"聚 合 全 網 H 直 播"'],fC=["#論壇文宣","美女 裸聊","秀场 视频","澳门 赌场","皇冠 赌场","影视 联盟","2048 社区","1024 社区","会所 宣传","扫码 安装","社区 关注","免費 掃碼","找回家","防屏蔽","封殺00","秀场 小视频","裸秀 主播 免费看",'"Free Adult Movie"',"奔驰宝马","最新网址","最新免費","免费试用","美女荷官","凤凰娛樂","观看指南","女神在线","更多无水印","免费在线","国产精品","免費原版","獨家資源","成人光碟","最新AV","FDZone","发布器","QR-1024","在這等你","激情祼聊","看妹不用等","真人祼聊","zz.jpg","X8B9.COM.gif","第一会所 宣传","SIS 影视联盟","淘精網","激情咖啡","手機影城","免费手机看片","U視娛樂","加微信","我愛看片手機版","平台正式上線"],pC=[{type:Ue.keyword,queryOnly:!1,label:"默认",memo:"请谨慎使用!",size:100,values:dC},{type:Ue.keyword,queryOnly:!1,label:"⚠️大杀器⚠️",memo:"请谨慎使用!",size:100,values:fC},{type:Ue.keyword,queryOnly:!0,label:"只查询示例",memo:"这是一个示例",size:10240,values:["奔驰宝马","美女荷官",'"最 新 位 址 獲 取"']}];function No(e){return{id:Date.now().toString(),type:e,queryOnly:!1,label:"",values:"",memo:"",size:0,sort:0,createdAt:0,updatedAt:0}}function Kp(e,t){e=e.trim();const n=t===Ue.keyword&&hC(e),o=t===Ue.suffix&&mC(e);let s=e;return n&&(s=gC(e)),o&&(s=wC(e).toString()),{type:t,value:e,forDir:n,isFilter:o,pattern:s,num:-1,fileIds:[],size:-1,status:ut.none}}function Gp(e){return[ut.prepare,ut.deleting].includes(e.status)}function hC(e){return new RegExp(`^${Vr}[\\S]{2,}`).test(e)}function mC(e){return new RegExp(`^${Wp}[\\S]{2,}`).test(e)}function gC(e){const t=new RegExp(`^${Vr}`);return e.replace(t,"")}function wC(e){const t=new RegExp(`^${Wp}`);let n=e.replace(t,"");const o=cC.get(n);if(!o)throw new Error(`"${e}"不是有效的筛选!`);return o}async function Ro(e,t){let n;typeof e=="string"?n=e.split(/[\r\n]+/):n=e;const o=new Set;for(let i=0;i<n.length;i++){const r=n[i].trim();r.length>1&&o.add(r)}const s=[];return o.forEach(i=>{s.push(Kp(i,t))}),s}function Jp(e){return/(^'.+'$)|(^".+"$)/.test(e)}function Ql(e){return Jp(e)?e.replace(/^['"]|['"]$/g,""):e}function yC(e,t){if(e===""||t==="")return!1;if(e=e.toLowerCase(),Jp(t))return e.includes(Ql(t).toLowerCase());const n=t.split(/\s+/);for(let o=0;o<n.length;o++)if(!e.includes(n[o].toLowerCase()))return!1;return!0}async function Yp(e,t,n){const o=Kp(e.value,e.type);o.num=0,o.size=0,o.fileIds=[];const s=new Set;let i=0;n.maxSize&&(i=n.maxSize*1024*1024);for(let r=0;r<t.length;r++){const a=!!t[r].fid,u=a?t[r].fid:t[r].cid;if(!u||e.type===Ue.keyword&&(a&&e.forDir||!a&&!e.forDir))continue;const f=parseFloat(t[r].s);i&&a&&f>i||e.type===Ue.keyword&&!yC(t[r].n,e.pattern)||s.has(u)||(s.add(u),o.size+=f)}return o.fileIds=Array.from(s),o.num=o.fileIds.length,o}const bC={class:"group-manager"},vC={key:0,class:"label-readonly",title:"当前分组只可用于查询"},_C=["title"],xC=d("small",null,"分组:",-1),CC={class:"pure-form pure-form-stacked group-form"},$C=d("label",{for:"groupLabel"},"标题",-1),kC=d("label",{for:"groupMemo"},"备注",-1),SC={for:"groupValues"},EC={key:0,class:"text-info"},AC={key:1,class:"text-info"},OC=["onClick"],IC=d("small",{class:"text-primary"},"(点击添加)",-1),PC=d("label",{for:"groupMemo"},[ce(" 文件大小 "),d("span",{class:"text-info"},[ce("只清理小于该大小的文件,单位"),d("b",null,"MB")])],-1),TC={class:"groups-list"},MC={key:0,class:"text-danger"},LC=d("span",{class:"text-info"},"或",-1),BC=d("br",null,null,-1),DC=d("br",null,null,-1),NC={class:"pure-table pure-table-bordered"},RC=d("thead",null,[d("tr",null,[d("th",{width:"25"},"#"),d("th",{width:"70"},"只查询"),d("th",{width:"150"},"名称"),d("th",{width:"150"},"备注"),d("th",{width:"70"},[ce("大小"),d("small",null,"MB")]),d("th",{width:"220"},"操作")])],-1),FC={align:"center"},jC=["onClick"],UC=d("button",{type:"button",class:"pure-button button-xsmall text-danger"},"删除",-1),HC={class:"group-confirm-delete"},zC=["onClick"],qC=["onClick"],Xp=De({__name:"GroupManager",props:{type:null,storageKey:null,config:null},emits:["change"],setup(e,{emit:t}){const n=e,o=he(No(n.type)),s=he([]),i=he(!1),r=he(No(n.type)),a=he(null),u=he(!1),f=he(null),p=[tt.video,tt.audio,tt.image,tt.doc,tt.app,tt.archive];ct(s,async ge=>{console.log("[groups change]",ge),uo(n.storageKey,ge,!1),ge.length||(i.value=!1,u.value=!1)},{deep:!0});let h=!1;Rt(async()=>{if(console.log("[GroupManager onMounted]"),!h){h=!0,s.value=bi(n.storageKey,[]),console.log("[groups]",s.value);const{suffixGroup:ge,keywordGroup:P}=n.config;if(s.value.length){const ie=s.value.find(Y=>Y.id===(n.type===Ue.suffix?ge:P));console.log("[group last choosen]",ie),o.value=ie||s.value[0],t("change",o.value)}else n.type===Ue.suffix&&!ge&&(await j(),uo("cleanerConfig",{suffixGroup:o.value.id},!0)),n.type===Ue.keyword&&!P&&(await j(),uo("cleanerConfig",{keywordGroup:o.value.id},!0))}}),Xs(async()=>{console.log("[GroupManager onUnmounted]")});async function w(ge){const P=`#${ge}`;r.value.values.includes(P)||(r.value.values+=(`
`+P).trim()+`
`)}async function C(){i.value=!0,u.value=!1}async function x(){i.value=!1}async function A(){a.value.show()}async function M(){a.value.hide()}async function D(){u.value=!1}async function O(){u.value=!0,i.value=!1}async function I(){f.value.show()}async function H(){f.value.hide()}async function se(){r.value.createdAt&&(r.value=No(n.type)),r.value.size=5,n.type===Ue.keyword&&(r.value.size=100),await A()}async function j(){let ge=[];n.type===Ue.suffix?ge=uC:ge=pC;for(let P=0;P<ge.length;P++){const ie={...No(ge[P].type),...ge[P]};r.value=ie,r.value.type=ie.type,r.value.queryOnly=ie.queryOnly,r.value.size=ie.size,r.value.label=ie.label,r.value.memo=ie.memo,r.value.createdAt=0,r.value.updatedAt=0,Array.isArray(ie.values)?r.value.values=ie.values.join(`
`):r.value.values=ie.values,await pe(),await H()}s.value.length&&await Ae(s.value[0])}async function ne(ge,P=!1){if(!P){const{isConfirmed:Y}=await fe.fire({html:`确定删除"${o.value.label}"?`,icon:"question"});if(!Y)return}let ie=-1;for(let Y=0;Y<s.value.length;Y++)if(s.value[Y].id===o.value.id){ie=Y;break}s.value.splice(ie,1),s.value.length?o.value=s.value[0]:o.value=No(n.type),t("change",o.value),await ue({icon:"success",title:"删除成功!",timer:1500})}async function ae(ge){r.value=ge,await A()}async function pe(){let ge=[];try{ge=await Ro(r.value.values,r.value.type)}catch(L){await fe.fire({icon:"error",text:L.message});return}if(r.value.label=r.value.label.trim(),r.value.memo=r.value.memo.trim(),r.value.label===""){await ue({icon:"warning",text:"请输入标题!"});return}let P=-1;for(let L=0;L<s.value.length;L++)if(s.value[L].id===r.value.id&&r.value.id){P=L;break}const ie=bs();r.value.updatedAt=ie,r.value.createdAt||(r.value.createdAt=ie);let Y=[];for(let L=0;L<ge.length;L++)Y.push(ge[L].value);r.value.values=Y.join(`
`).trim(),console.log("[saveGroup]",r.value,P),P===-1?(s.value.push(r.value),ue({icon:"success",text:"添加成功"})):(s.value[P]=r.value,ue({icon:"success",text:"更新成功"}));const _e=!o.value.createdAt;_e&&(o.value=r.value),(r.value.id===o.value.id||_e)&&t("change",r.value),await M()}async function Ae(ge){o.value=ge;const{id:P}=o.value;n.type===Ue.suffix&&(n.config.suffixGroup=P,uo("cleanerConfig",{suffixGroup:P},!0)),n.type===Ue.keyword&&(n.config.keywordGroup=P,uo("cleanerConfig",{keywordGroup:P},!0)),t("change",ge)}return(ge,P)=>{const ie=Ao("VDropdown");return K(),Q("div",bC,[o.value.queryOnly?(K(),Q("span",vC," 只查询 ")):Ge("",!0),o.value.createdAt?(K(),Q("a",{key:1,class:"group-label",href:"javascript:void(0)",title:`当前使用的分组: ${o.value.label}`,onClick:P[0]||(P[0]=Y=>ae(o.value))},[d("span",null,[xC,ce(" "+we(o.value.label),1)])],8,_C)):Ge("",!0),Ce(ie,{ref_key:"form",ref:a,onHide:x,onShow:C,distance:5,"arrow-padding":100},{popper:Ke(()=>[d("form",CC,[d("fieldset",null,[d("div",null,[$C,ee(d("input",{type:"text","onUpdate:modelValue":P[1]||(P[1]=Y=>r.value.label=Y),id:"groupLabel",class:"pure-input-1-2",placeholder:"分组标题"},null,512),[[ze,r.value.label]]),ce(" "),r.value.queryOnly?(K(),Q("button",{key:0,type:"button",class:"pure-button button-small button-warning",onClick:P[2]||(P[2]=Y=>r.value.queryOnly=!1)},"已设置为仅用于查询 | 点击取消设置")):Ge("",!0),r.value.queryOnly?Ge("",!0):(K(),Q("button",{key:1,type:"button",class:"pure-button button-small pure-button-primary",onClick:P[3]||(P[3]=Y=>r.value.queryOnly=!0)},"设置为仅用于查询"))]),d("div",null,[kC,ee(d("input",{type:"text","onUpdate:modelValue":P[4]||(P[4]=Y=>r.value.memo=Y),id:"groupMemo",placeholder:"分组备注"},null,512),[[ze,r.value.memo]])]),d("div",null,[d("label",SC,[ce(" 特征列表 "),n.type===de(Ue).keyword?(K(),Q("span",EC,[ce(" 默认只匹配文件名。前面带"),d("b",null,we(de(Vr)),1),ce("则只匹配目录名。 ")])):Ge("",!0),n.type===de(Ue).suffix?(K(),Q("span",AC,[ce(" 支持115自带筛选: "),(K(),Q(Ne,null,nt(p,(Y,_e)=>d("span",{class:"filter-label text-success",key:_e,onClick:L=>w(Y)}," #"+we(Y),9,OC)),64)),IC])):Ge("",!0)]),ee(d("textarea",{id:"groupValues","onUpdate:modelValue":P[5]||(P[5]=Y=>r.value.values=Y),rows:"5",placeholder:"每行一个"},null,512),[[ze,r.value.values]])]),d("div",null,[PC,ee(d("input",{type:"number","onUpdate:modelValue":P[6]||(P[6]=Y=>r.value.size=Y),class:"pure-input-1-2",placeholder:"文件大小小于该数值才清理"},null,512),[[ze,r.value.size]])]),d("button",{type:"button",class:"pure-button pure-button-primary",onClick:pe},we(r.value.createdAt?"更新":"添加"),1),ce(" "),d("button",{type:"button",class:"pure-button",onClick:M},"取消")])])]),default:Ke(()=>[d("a",{href:"javascript:void(0)",class:"text-primary",onClick:se},"新增分组")]),_:1},512),Ce(ie,{ref_key:"list",ref:f,onHide:D,onShow:O,distance:5},{popper:Ke(()=>[d("div",TC,[s.value.length?Ge("",!0):(K(),Q("h3",MC,[ce(" 还没有添加任何分组。你可以: "),d("button",{type:"button",class:"pure-button button-small",onClick:se},"添加"),ce(" "),LC,ce(" "),d("button",{type:"button",class:"pure-button button-small",onClick:j},"使用脚本内置"),BC,DC])),d("table",NC,[RC,d("tbody",null,[(K(!0),Q(Ne,null,nt(s.value,(Y,_e)=>(K(),Q("tr",{key:_e},[d("td",null,we(_e+1),1),d("td",FC,we(Y.queryOnly?"是":"否"),1),d("td",null,we(Y.label),1),d("td",null,we(Y.memo),1),d("td",null,we(Y.size),1),d("td",null,[d("button",{type:"button",class:"pure-button button-xsmall text-primary",onClick:L=>Ae(Y)},"载入",8,jC),ce(" "),Ce(ie,null,{popper:Ke(()=>[d("div",HC,[d("button",{type:"button",class:"pure-button button-error",onClick:L=>ne(Y,!0)},"确定",8,zC)])]),default:Ke(()=>[UC]),_:2},1024),ce(" "),d("button",{type:"button",class:"pure-button button-xsmall",onClick:L=>ae(Y)},"编辑",8,qC)])]))),128))])])])]),default:Ke(()=>[d("a",{href:"javascript:void(0)",class:"text-primary",onClick:I},"分组列表")]),_:1},512)])}}}),UT="",VC={class:"cloud115-eh-cleaner"},WC=[d("span",null,"清理文件",-1)],KC={key:0,class:"cloud115-eh-cleaner-help"},GC=[av('<div><h2>免责声明</h2><div><p>该工具仅作为学习测试用途,使用该工具造成的任何结果由使用人承担。</p></div><hr><h2>说明</h2><ul style="color:#f40;"><li class="text-primary">始于清理,但不止于清理!</li><li>* 仅对当前查看的目录及其子目录生效。</li><li>* 通过『新增分组 / 分组列表』管理你的清理特征。</li><li>* 建议整理自己的特征,也欢迎在交流中分享你的特征。</li><li>* 『只查询』按钮,只会进行查询。</li><li>* 『一键清理』是先查询,再进行删除!</li><li>* 由于搜索接口限制,如果某个关键词结果数量超过1万,可能会清理不完全,可以多执行几次清理。</li><li>* <b>清理期间,请保持当前页面处于激活状态!</b></li><li>* <b>请谨慎操作!请谨慎操作!请谨慎操作!</b></li></ul><hr><h3>按 后缀名 清理</h3><div><p>1. 点击『分组列表』,选择一个分组;</p><p>2. 确认一下后缀名和文件大小限制等的设定;</p><p>3. 点击『一键清理』按钮,耐心等待。</p></div><hr><h3>按 关键词 清理</h3><div> 基本同上,略。 <br><br><p>P.S. 关键词按『全包含』进行匹配,不区分大小写。</p><p>关键词`免费在线`,匹配文件名"blabla-免费在线.mp4",<b class="text-danger">不匹配</b>文件名`blabla-免费的xxx在线.mp4`。</p><p>关键词`免费 在线`,匹配文件名"blabla-免费在线.mp4",<b class="text-success">也匹配</b>文件名`blabla-免费的xxx在线.mp4`。</p><p class="text-danger">如需要 `免费 在线` 作为一个整体去匹配,可以使用`英文单/双引号`包裹,如`"免费 在线"`</p></div></div>',1)],JC={class:"header actions-bar"},YC=d("span",{class:"title"},"文件清理工具",-1),XC={type:"button",class:"pure-button button-success"},QC=d("i",{class:"file-type tp-folder",style:{}},null,-1),ZC=["disabled"],e$=["disabled"],t$=d("small",null,"毫秒",-1),n$=["disabled"],o$=d("br",null,null,-1),s$={class:"by-box by-suffix"},i$={class:"by-header"},r$=d("span",{class:"title"},[ce("按"),d("b",null,"后缀名"),ce("清理")],-1),a$={class:"pure-button-group",role:"group"},l$=["disabled"],c$={class:"pure-table pure-table-bordered"},u$=d("thead",null,[d("tr",null,[d("th",{width:"25"},"#"),d("th",{width:"100"},"后缀名"),d("th",{width:"95"},"文件数量"),d("th",{width:"80"},"合计大小"),d("th",{width:"150"},"操作"),d("th",{width:"200"},"状态")])],-1),d$=["onClick"],f$=["onClick"],p$=["onClick"],h$=d("br",null,null,-1),m$={class:"by-box by-keyword"},g$={class:"by-header"},w$=d("span",{class:"title"},[ce("按"),d("b",null,"关键词"),ce("清理")],-1),y$={class:"pure-button-group",role:"group"},b$=["disabled"],v$={class:"pure-table pure-table-bordered"},_$=d("thead",null,[d("tr",null,[d("th",{width:"25"},"#"),d("th",{width:"100"},"关键词"),d("th",{width:"95"},"文件/目录数量"),d("th",{width:"80"},"合计大小"),d("th",{width:"150"},"操作"),d("th",{width:"200"},"状态")])],-1),x$=["href"],C$={class:"file-type tp-folder"},$$=["onClick"],k$=["onClick"],S$=d("br",null,null,-1),E$={class:"footer actions-bar"},A$=d("span",{class:"title"},"文件清理工具",-1),O$={type:"button",class:"pure-button button-success"},I$=d("i",{class:"file-type tp-folder",style:{}},null,-1),P$=De({__name:"Cleaner",setup(e){const t=he(!1),n=he(!0),o=he(No(Ue.suffix)),s=he(No(Ue.keyword)),i=he({maxSize:5,matchName:!1}),r=he({maxSize:100,matchName:!0}),a=he([]),u=he([]),f=he(!1),p=he({initialized:!1,pageSize:1150,reqInterval:800,deleteSize:1150,...bi("cleanerConfig",{})}),h=he(!0),w=he(""),C=he([]);async function x(L){L.data.type===Mn.OPEN_CLEANER&&(await A(L.data.payload),xi({type:Mn.CLEANER_OPENED},L.source))}Rt(async()=>{console.log("[Cleaner onMounted]"),p.value.initialized||(p.value.initialized=!0,uo("cleanerConfig",p.value,!1)),window.addEventListener("message",x)}),Xs(()=>{console.log("[Cleaner onUnmounted]"),window.removeEventListener("message",x)});async function A(L){t.value=!0;const G=await zt();if(G==="0"||G===""){await M(),await fe.fire({icon:"warning",html:"<h2>不允许在根目录使用该工具!</h2>"});return}w.value&&w.value!==G&&(console.warn("目录变化,重置"),await H(ht.reset),await se(ht.reset)),C.value=await Au(),w.value=G}async function M(){t.value=!1}async function D(){uo("cleanerConfig",p.value,!1),ue({icon:"success",text:"保存成功",timer:1800}),h.value=!0}async function O(L){const G={};L.isFilter?G.type=L.pattern:G.suffix=L.pattern;let N=unsafeWindow.frames[0];for(let me=0;me<unsafeWindow.frames.length;me++)if(unsafeWindow.frames[me].name==="wangpan"){N=unsafeWindow.frames[me];break}xi({type:Mn.INVOKE_FILTER,payload:G},N),await M(),ue({icon:"info",text:`已调用115筛选: ${L.value}`,timer:2500})}async function I(L,G){const{value:N}=await fe.fire({input:"textarea",title:L,html:"每行一个,最短两个字符。"+(G===Ue.keyword?`<br>默认只匹配文件名,不匹配目录名。<br>使用 "<b>${Vr}目录名关键词</b>" 格式指定只匹配目录名的关键词。`:""),width:620,inputPlaceholder:"每行一个,最短两个字符",inputAttributes:{"aria-label":"每行一个,最短两个字符"},showCancelButton:!0});return N!==void 0?N.trim():""}async function H(L,G){let N="",me=[];switch(L){case ht.assign:N=G.trim(),N.trim()===""?a.value=[]:(me=await Ro(N,Ue.suffix),a.value=me);break;case ht.append:N=await I("添加后缀",Ue.suffix),me=await Ro(N,Ue.suffix);const ke=[];a.value.forEach(Me=>ke.push(Me.value.toLowerCase())),me.forEach(Me=>{ke.includes(Me.value.toLowerCase())||a.value.push(Me)});break;case ht.cover:N=await I("覆盖后缀",Ue.suffix),N.trim()!==""&&(me=await Ro(N,Ue.suffix),a.value=me);break;case ht.clear:a.value=[];break;case ht.reset:a.value.forEach(Me=>{Me.num=-1,Me.fileIds=[],Me.status=ut.none,Me.size=-1});break}}async function se(L,G){let N="",me=[];switch(L){case ht.assign:N=G.trim(),N.trim()===""?u.value=[]:(me=await Ro(N,Ue.keyword),u.value=me);break;case ht.append:N=await I("添加关键词",Ue.keyword),me=await Ro(N,Ue.keyword);const ke=[];u.value.forEach(Me=>ke.push(Me.value.toLowerCase())),me.forEach(Me=>{ke.includes(Me.value.toLowerCase())||u.value.push(Me)});break;case ht.cover:N=await I("覆盖关键词",Ue.keyword),N.trim()!==""&&(me=await Ro(N,Ue.keyword),u.value=me);break;case ht.clear:u.value=[];break;case ht.reset:u.value.forEach(Me=>{Me.num=-1,Me.fileIds=[],Me.status=ut.none,Me.size=-1});break}}async function j(L){if(console.log("[cleanBySuffix]",L),await H(ht.reset),!a.value.length){await fe.fire({icon:"warning",text:"请先设置后缀!"});return}if(!L){const{isConfirmed:G}=await fe.fire({icon:"warning",html:'请在清理前确认"后缀和大小限制的设置"是否符合预期!',confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!G)return}f.value=!0;try{for(let G=0;G<a.value.length;G++){const N=a.value[G];await ne(N,L,!1,!0),await Bt(p.value.reqInterval)}}catch(G){console.error(G)}f.value=!1}async function ne(L,G,N,me){if(console.log("[cleanBySuffixSingle]",L,G),!G&&!me){const{isConfirmed:ke}=await fe.fire({icon:"warning",html:`确认执行条件 "后缀: <b class="text-primary">${L.pattern}</b>, 小于: <b>${i.value.maxSize}</b> MB" 的清理?`,confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!ke)return}try{if(!N){f.value=!0,L.fileIds=[],L.size=-1,L.num=-1,L.status=ut.prepare;const ke=await Ae(L);L.status=ut.prepared;const{fileIds:Me,size:Fe}=await Yp(L,ke,i.value);L.fileIds=Me,L.size=Fe,L.num=Me.length,f.value=!1}if(!G)if(L.num>0){L.status=ut.deleting,f.value=!0;const ke=await Cu(w.value,L.fileIds,p.value.deleteSize,1e3);f.value=!1,ke>0?L.status=ut.success+` / 数量 <= ${ke}`:L.status=ut.failed}else L.status=ut.success+" / 无"}catch(ke){console.error(ke),f.value=!1,await fe.fire({title:"cleanBySuffixSingle - 发生错误",html:ke.toString()})}}async function ae(L){if(console.log("[cleanByKeyword]",L),await se(ht.reset),!u.value.length){await fe.fire({icon:"warning",text:"请先设置关键词!"});return}if(!L){const{isConfirmed:G}=await fe.fire({icon:"warning",html:'请在清理前确认"关键词和大小限制的设置"是否符合预期!',confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!G)return}f.value=!0;try{for(let G=0;G<u.value.length;G++){const N=u.value[G];await pe(N,L,!1,!0),await Bt(p.value.reqInterval)}}catch(G){console.error(G)}f.value=!1}async function pe(L,G,N,me){if(console.log("[cleanByKeywordSingle]",L,G),!G&&!me){const{isConfirmed:ke}=await fe.fire({icon:"warning",html:`确认执行条件 "关键词: <b class="text-primary">${L.pattern}</b>, 小于: <b class="text-primary">${r.value.maxSize}</b> MB" 的清理?`,confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!ke)return}try{if(!N){f.value=!0,L.fileIds=[],L.size=-1,L.num=-1,L.status=ut.prepare;const ke=await ge(L);L.status=ut.prepared;const{fileIds:Me,size:Fe,num:Qe}=await Yp(L,ke,r.value);L.fileIds=Me,L.size=Fe,L.num=Qe,f.value=!1}if(!G)if(L.num>0){L.status=ut.deleting,f.value=!0;const ke=await Cu(w.value,L.fileIds,p.value.deleteSize,1e3);f.value=!1,ke>0?L.status=ut.success+` / 数量 <= ${ke}`:L.status=ut.failed,L.num>9e3&&(console.warn("[cleanByKeywordSingle] 补充处理..."),await pe(L,G,!1,!0))}else L.status=ut.success+" / 无"}catch(ke){console.error(ke),f.value=!1;let Me=!0;const Fe={title:"cleanByKeywordSingle - 发生错误",html:ke.toString()};ke instanceof Ca&&(L.status=ut.prepareFailed+` / ${ke.message}`,ke instanceof gu&&(Fe.timer=2e3,Me=!1)),Me?await fe.fire(Fe):fe.fire(Fe)}}async function Ae(L){const G=await zt(),N=$s({cid:G,limit:p.value.pageSize});L.isFilter?N.type=L.pattern:N.suffix=L.value;const me=await $a(N,p.value.reqInterval);return console.log("[files]",me),me}async function ge(L){const G=await zt(),N=Cm({search_value:Ql(L.pattern),cid:G,limit:p.value.pageSize}),me=await Dg(N,p.value.reqInterval,!0);return console.log("[files]",me),me}function P(L){return Aa({search_value:Ql(L.pattern),cid:w.value},C.value[C.value.length-1])}async function ie(L){console.log("[onSuffixGroupChange]",L),o.value=L,i.value.maxSize=L.size,await H(ht.assign,L.values)}async function Y(L){console.log("[onKeywordGroupChange]",L),s.value=L,r.value.maxSize=L.size,await se(ht.assign,L.values)}async function _e(){document.querySelector(".cloud115-eh-cleaner-drawer").scrollTo(0,0)}return(L,G)=>ee((K(),Q("span",VC,[kn(L.$slots,"default",{},()=>[d("span",{class:"btn-open pure-button pure-button-primary",onClick:A},WC)]),t.value?(K(),Q("div",KC,GC)):Ge("",!0),ee(d("div",{class:Ye(["cloud115-eh-cleaner-drawer",{loading:f.value}])},[d("div",JC,[YC,d("span",{class:"close"},[d("button",{type:"button",class:"pure-button button-error",onClick:M},"关闭")]),d("button",XC,[d("b",null,[QC,ce(" "+we(C.value.join(" / ")),1)])])]),d("div",null,[ce(" 请求分页: "),ee(d("input",{type:"number","onUpdate:modelValue":G[0]||(G[0]=N=>p.value.pageSize=N),min:30,max:1150,disabled:h.value},null,8,ZC),[[ze,p.value.pageSize]]),ce(" 请求间隔: "),ee(d("input",{type:"number","onUpdate:modelValue":G[1]||(G[1]=N=>p.value.reqInterval=N),min:200,max:1e6,disabled:h.value},null,8,e$),[[ze,p.value.reqInterval]]),t$,ce(" 每次删除: "),ee(d("input",{type:"number","onUpdate:modelValue":G[2]||(G[2]=N=>p.value.deleteSize=N),min:1,max:1150,disabled:h.value},null,8,n$),[[ze,p.value.deleteSize]]),d("span",{class:"config-toggle",onClick:G[3]||(G[3]=N=>h.value=!h.value)},"设置参数"),h.value?Ge("",!0):(K(),Q("button",{key:0,type:"button",class:"pure-button pure-button-primary button-small",onClick:D}," 保存配置 "))]),o$,d("div",s$,[d("div",i$,[r$,ce(" "),d("div",a$,[d("button",{type:"button",class:"pure-button",onClick:G[4]||(G[4]=N=>j(!0))},"只查询"),d("button",{type:"button",class:"pure-button pure-button-primary",onClick:G[5]||(G[5]=N=>j(!1)),disabled:o.value.queryOnly}," 一键清理 ",8,l$)]),ce(" 小于 "),ee(d("input",{type:"number","onUpdate:modelValue":G[6]||(G[6]=N=>i.value.maxSize=N),class:"filter-size"},null,512),[[ze,i.value.maxSize]]),ce(" MB (0表示不限制) "),Ce(Xp,{type:de(Ue).suffix,"storage-key":"suffixGroups",onChange:ie,config:p.value},null,8,["type","config"])]),d("table",c$,[u$,d("tbody",null,[(K(!0),Q(Ne,null,nt(a.value,(N,me)=>(K(),Q("tr",{key:me,class:Ye({active:de(Gp)(N),"is-filter":N.isFilter})},[d("td",null,we(me+1),1),d("td",null,[d("a",{href:"javascript:void(0)",class:"pattern",onClick:ke=>O(N),title:"筛选"},we(N.value),9,d$)]),d("td",null,we(N.num>=0?N.num:""),1),d("td",null,we(N.size>0?de(_i)(N.size):""),1),d("td",null,[d("button",{type:"button",class:"pure-button button-xsmall",onClick:ke=>ne(N,!0,!1,!0)},"查询",8,f$),ce(" "),N.num>0&&!o.value.queryOnly?(K(),Q("button",{key:0,type:"button",class:"pure-button button-warning button-xsmall",onClick:ke=>ne(N,!1,!0,!1)},"清理",8,p$)):Ge("",!0)]),d("td",null,we(N.status),1)],2))),128))])])]),h$,d("div",m$,[d("div",g$,[w$,ce(" "),d("div",y$,[d("button",{type:"button",class:"pure-button",onClick:G[7]||(G[7]=N=>ae(!0))},"只查询"),d("button",{type:"button",class:"pure-button pure-button-primary",onClick:G[8]||(G[8]=N=>ae(!1)),disabled:s.value.queryOnly}," 一键清理 ",8,b$)]),ce(" 小于 "),ee(d("input",{type:"number","onUpdate:modelValue":G[9]||(G[9]=N=>r.value.maxSize=N),class:"filter-size"},null,512),[[ze,r.value.maxSize]]),ce(" MB (0表示不限制) "),Ce(Xp,{type:de(Ue).keyword,"storage-key":"keywordGroups",onChange:Y,config:p.value},null,8,["type","config"])]),d("table",v$,[_$,d("tbody",null,[(K(!0),Q(Ne,null,nt(u.value,(N,me)=>(K(),Q("tr",{key:me,class:Ye({active:de(Gp)(N),"is-dir":N.forDir})},[d("td",null,we(me+1),1),d("td",null,[d("a",{href:P(N),target:"_blank",class:"pattern",title:"搜索"},[ee(d("i",C$,null,512),[[Gt,N.forDir]]),ce(" "+we(N.pattern),1)],8,x$)]),d("td",null,we(N.num>=0?N.num:""),1),d("td",null,we(N.size>0?de(_i)(N.size):""),1),d("td",null,[d("button",{type:"button",class:"pure-button button-xsmall",onClick:ke=>pe(N,!0,!1,!0)},"查询",8,$$),ce(" "),N.num>0&&!s.value.queryOnly?(K(),Q("button",{key:0,type:"button",class:"pure-button button-warning button-xsmall",onClick:ke=>pe(N,!1,!0,!1)}," 清理 ",8,k$)):Ge("",!0)]),d("td",null,we(N.status),1)],2))),128))])])]),S$,d("div",E$,[A$,d("span",{class:"close"},[d("button",{type:"button",class:"pure-button button-error",onClick:M},"关闭")]),d("button",O$,[d("b",null,[I$,ce(" "+we(C.value.join(" / ")),1)])]),ce(" "),d("button",{type:"button",class:"pure-button button-small",onClick:_e}," 回到顶部 ")])],2),[[Gt,t.value]])],512)),[[Gt,n.value]])}}),qT="",VT="";async function T$(){const{host:e,search:t}=location;e==="115.com"&&(console.log("[Cleaner] running..."),t.includes("ct=file")?await M$():await L$())}async function Qp(){return typeof window.$<"u"}async function M$(){await Qp()||console.log("[Cleaner injectTrigger] JQuery not found");const e="cloud115Cleaner",t=await vs("#js_path_add_dir"),n=document.createElement("span");n.id=e,t.insertAdjacentElement("afterend",n),to(lC).mount(`#${e}`)}async function L$(){await Qp()||console.log("[Cleaner injectUI] JQuery not found");const e="cloud115Cleaner",t=document.createElement("div");t.id=e,document.body.appendChild(t);const n=to(P$);n.use(Jl),n.mount(`#${e}`),na("清理文件",async()=>{xi({type:Mn.OPEN_CLEANER},window.parent)})}async function B$(){const e=await qr(),{host:t,search:n}=location;!/115\.com$/.test(t)||(Zx(e),Gx(e),Jx(e),Yx(e),Xx(e),Qx(e),eC(e))}const Zp=Symbol("addTab"),eh=Symbol("updateTab"),th=Symbol("deleteTab"),nh=Symbol("tabsProvider");function Wr(e,t){const n=Js(e,t);if(typeof n>"u")throw new Error(`Could not resolve ${e.description}`);return n}const D$=["data-tab-id","aria-hidden"],pn=De({__name:"Tab",props:{panelClass:{type:[String,Object,Array],default:"tabs-component-panel"},id:{type:String,default:null},name:{type:String,required:!0},prefix:{type:String,default:""},suffix:{type:String,default:""},isDisabled:{type:Boolean,default:!1},navItemClass:{type:[String,Object,Array],required:!1,default:null},navItemLinkClass:{type:[String,Object,Array],required:!1,default:null}},setup(e,{expose:t}){const n=e,o=he(!1),s=Wr(nh),i=Wr(Zp),r=Wr(eh),a=Wr(th),u=n.prefix+n.name+n.suffix,f=n.id?n.id:n.name.toLowerCase().replace(/ /g,"-"),p=f+"-pane",h=Zn(()=>"#"+(n.isDisabled?"":f));return ct(()=>s.activeTabHash,()=>{o.value=h.value===s.activeTabHash}),ct(()=>Object.assign({},n),()=>{r(f,{name:n.name,header:n.prefix+n.name+n.suffix,isDisabled:n.isDisabled,hash:h.value,index:s.tabs.length,computedId:f,paneId:p,navItemClass:n.navItemClass,navItemLinkClass:n.navItemLinkClass})}),Pt(()=>{i({name:n.name,header:u,isDisabled:n.isDisabled,hash:h.value,index:s.tabs.length,computedId:f,paneId:p,navItemClass:n.navItemClass,navItemLinkClass:n.navItemLinkClass})}),Vd(()=>{a(f)}),t({header:u,computedId:f,paneId:p,hash:h,isActive:o}),(w,C)=>ee((K(),Q("section",{ref:"tab",id:p,"data-tab-id":de(f),"aria-hidden":!o.value,class:Ye(e.panelClass),role:"tabpanel",tabindex:"-1"},[kn(w.$slots,"default")],10,D$)),[[Gt,o.value]])}});class N${get(t){const n=localStorage.getItem(t);if(n===null)return null;const o=JSON.parse(n);return o?new Date(o.expires)<new Date?(localStorage.removeItem(t),null):o.value:null}set(t,n,o){const s=new Date().getTime(),i=new Date(s+o*6e4);localStorage.setItem(t,JSON.stringify({value:n,expires:i}))}}const oh=new N$,R$=["aria-controls","aria-selected","href","onClick","innerHTML"],F$=De({__name:"Tabs",props:{cacheLifetime:{type:Number,default:5},options:{type:Object,required:!1,default:()=>({useUrlFragment:!0,defaultTabHash:null})},wrapperClass:{type:[String,Object,Array],default:"tabs-component"},panelsWrapperClass:{type:[String,Object,Array],default:"tabs-component-panels"},navClass:{type:[String,Object,Array],default:"tabs-component-tabs"},navItemClass:{type:[String,Object,Array],default:"tabs-component-tab"},navItemDisabledClass:{type:[String,Object,Array],default:"is-disabled"},navItemActiveClass:{type:[String,Object,Array],default:"is-active"},navItemInactiveClass:{type:[String,Object,Array],default:"is-inactive"},navItemLinkClass:{type:[String,Object,Array],default:"tabs-component-tab-a"},navItemLinkActiveClass:{type:[String,Object,Array],default:"is-active"},navItemLinkInactiveClass:{type:[String,Object,Array],default:"is-inactive"},navItemLinkDisabledClass:{type:[String,Object,Array],default:"is-disabled"}},emits:["changed","clicked"],setup(e,{expose:t,emit:n}){const o=e,s=rr({activeTabHash:"",lastActiveTabHash:"",tabs:[]});Gs(nh,s),Gs(Zp,a=>{s.tabs.push(a)}),Gs(eh,(a,u)=>{const f=s.tabs.findIndex(p=>p.computedId===a);u.isActive=s.tabs[f].isActive,s.tabs[f]=u}),Gs(th,a=>{const u=s.tabs.findIndex(f=>f.computedId===a);s.tabs.splice(u,1)});const i=(a,u)=>{u&&!o.options.useUrlFragment&&u.preventDefault();const f=r(a);if(!f)return;if(u&&f.isDisabled){u.preventDefault();return}if(s.lastActiveTabHash===f.hash){n("clicked",{tab:f});return}if(s.tabs.forEach(h=>{h.isActive=h.hash===f.hash}),n("changed",{tab:f}),s.lastActiveTabHash=s.activeTabHash=f.hash,o.cacheLifetime<=0)return;const p=`vue-tabs-component.cache.${window.location.host}${window.location.pathname}`;oh.set(p,f.hash,o.cacheLifetime)},r=a=>s.tabs.find(u=>u.hash===a);return Rt(()=>{if(s.tabs.length){if(window.addEventListener("hashchange",()=>i(window.location.hash)),r(window.location.hash)){i(window.location.hash);return}if(o.cacheLifetime>0){const a=`vue-tabs-component.cache.${window.location.host}${window.location.pathname}`,u=oh.get(a);if(u!==null&&r(u)){i(u);return}if(o.options.defaultTabHash&&r("#"+o.options.defaultTabHash)){i("#"+o.options.defaultTabHash);return}}i(s.tabs[0].hash)}}),t({...My(s),selectTab:i,findTab:r}),(a,u)=>(K(),Q("div",{class:Ye(e.wrapperClass)},[d("ul",{role:"tablist",class:Ye(e.navClass)},[(K(!0),Q(Ne,null,nt(s.tabs,(f,p)=>{var h,w;return K(),Q("li",{key:p,class:Ye([(h=f.navItemClass)!=null?h:e.navItemClass,f.isDisabled?e.navItemDisabledClass:"",f.isActive?e.navItemActiveClass:f.isDisabled?"":e.navItemInactiveClass]),role:"presentation"},[d("a",{role:"tab",class:Ye([(w=f.navItemLinkClass)!=null?w:e.navItemLinkClass,f.isDisabled?e.navItemLinkDisabledClass:"",f.isActive?e.navItemLinkActiveClass:f.isDisabled?"":e.navItemLinkInactiveClass]),"aria-controls":f.paneId,"aria-selected":f.isActive,href:f.hash,onClick:C=>i(f.hash,C),innerHTML:f.header,tabindex:"0"},null,10,R$)],2)}),128))],2),d("div",{class:Ye(e.panelsWrapperClass)},[kn(a.$slots,"default")],2)],2))}}),j$={class:"ce-config ce-basic-config"},U$={class:"pure-form pure-form-aligned"},H$=d("legend",null,"UI优化",-1),z$={class:"pure-control-group"},q$=d("label",{for:"basic_hideSidebar"}," 隐藏侧边栏 ",-1),V$=d("div",{class:"pure-form-message text-success"},[ce(" 如果官方不能记住隐藏状态,可以开启该选项。"),d("span",{class:"text-info"},"目前官方已支持记住状态,该功能将会被废弃和移除。")],-1),W$={class:"pure-control-group"},K$=d("label",{for:"basic_showOfflineEntry"},"显示云下载入口按钮",-1),G$={class:"pure-form-message text-success"},J$={class:"pure-control-group"},Y$=d("label",{for:"basic_showAddOffline"},"显示添加云下载按钮",-1),X$={class:"pure-form-message text-success"},Q$={class:"pure-control-group"},Z$=d("label",{for:"basic_transferDefaultOffline"},"近期传输默认云下载",-1),ek=d("div",{class:"pure-form-message text-success"}," 点击左边栏的「传输」默认进入「云下载」页面。 ",-1),tk={class:"pure-control-group"},nk=d("label",{for:"basic_showFavEntry"},"显示星标入口按钮",-1),ok={class:"pure-form-message text-success"},sk=d("legend",null,"隐私保护",-1),ik={class:"pure-control-group"},rk=d("label",{for:"basic_hideWatermark"},"隐藏水印",-1),ak=d("div",{class:"pure-form-message text-success"}," 网页水印是肉眼看不到的,但通过一些处理可以看到,水印内容是你的账号标识。 如果你需要截图并发给别人,可以考虑开启隐藏。 ",-1),lk={class:"pure-control-group"},ck=d("label",{for:"basic_fakeAccountEnabled"},"隐藏身份",-1),uk=d("div",{class:"pure-form-message text-success"}," 修改右上角显示的账号信息,不会真的修改。编辑后即可生效,无需刷新页面。 ",-1),dk={class:"pure-control-group"},fk=d("label",null,"账号ID",-1),pk={class:"pure-control-group"},hk=d("label",null,"用户名",-1),mk={class:"pure-control-group"},gk=d("label",null,"头像",-1),wk={class:"avatar-preview"},yk=["src"],bk={class:"pure-control-group"},vk=d("label",null,"VIP等级",-1),_k=De({__name:"Config",async setup(e){let t,n;const o=he(([t,n]=en(()=>qr()),t=await t,n(),t));return Pt(async()=>{}),ct(o,Dt(async s=>{await Kx(s),ue({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"}),window.postMessage({event:Mt.basicConfigChange,body:Sc(s)})},500),{deep:!0}),(s,i)=>(K(),Q("div",j$,[d("form",U$,[d("fieldset",null,[H$,d("div",z$,[q$,ee(d("input",{id:"basic_hideSidebar",type:"checkbox","onUpdate:modelValue":i[0]||(i[0]=r=>o.value.hideSidebar=r)},null,512),[[Ee,o.value.hideSidebar]]),V$]),d("div",W$,[K$,ee(d("input",{id:"basic_showOfflineEntry",type:"checkbox","onUpdate:modelValue":i[1]||(i[1]=r=>o.value.showOfflineEntry=r)},null,512),[[Ee,o.value.showOfflineEntry]]),d("div",G$,[ce(" 在「网盘」页面顶部工具栏显示「云下载」入口按钮。按钮文本为 "),ee(d("input",{"onUpdate:modelValue":i[2]||(i[2]=r=>o.value.offlineEntryLabel=r),class:"input-small",placeholder:"可以为空"},null,512),[[ze,o.value.offlineEntryLabel]])])]),d("div",J$,[Y$,ee(d("input",{id:"basic_showAddOffline",type:"checkbox","onUpdate:modelValue":i[3]||(i[3]=r=>o.value.showAddOffline=r)},null,512),[[Ee,o.value.showAddOffline]]),d("div",X$,[ce(" 在「网盘」页面顶部工具栏显示「添加云下载」按钮。按钮文本为 "),ee(d("input",{"onUpdate:modelValue":i[4]||(i[4]=r=>o.value.addOfflineLabel=r),class:"input-small",placeholder:"可以为空"},null,512),[[ze,o.value.addOfflineLabel]])])]),d("div",Q$,[Z$,ee(d("input",{id:"basic_transferDefaultOffline",type:"checkbox","onUpdate:modelValue":i[5]||(i[5]=r=>o.value.transferDefaultOffline=r)},null,512),[[Ee,o.value.transferDefaultOffline]]),ek]),d("div",tk,[nk,ee(d("input",{id:"basic_showFavEntry",type:"checkbox","onUpdate:modelValue":i[6]||(i[6]=r=>o.value.showFavEntry=r)},null,512),[[Ee,o.value.showFavEntry]]),d("div",ok,[ce(" 在「网盘」页面顶部工具栏显示「星标」入口按钮。按钮文本为 "),ee(d("input",{"onUpdate:modelValue":i[7]||(i[7]=r=>o.value.favEntryLabel=r),class:"input-small",placeholder:"可以为空"},null,512),[[ze,o.value.favEntryLabel]])])]),sk,d("div",ik,[rk,ee(d("input",{id:"basic_hideWatermark",type:"checkbox","onUpdate:modelValue":i[8]||(i[8]=r=>o.value.hideWatermark=r)},null,512),[[Ee,o.value.hideWatermark]]),ak]),d("div",lk,[ck,ee(d("input",{id:"basic_fakeAccountEnabled",type:"checkbox","onUpdate:modelValue":i[9]||(i[9]=r=>o.value.fakeAccountEnabled=r)},null,512),[[Ee,o.value.fakeAccountEnabled]]),uk]),d("div",dk,[fk,ee(d("input",{"onUpdate:modelValue":i[10]||(i[10]=r=>o.value.fakeAccountId=r),placeholder:"自定义账号ID",class:"pure-input-2-3"},null,512),[[ze,o.value.fakeAccountId]])]),d("div",pk,[hk,ee(d("input",{"onUpdate:modelValue":i[11]||(i[11]=r=>o.value.fakeAccountName=r),placeholder:"自定义用户名",class:"pure-input-2-3"},null,512),[[ze,o.value.fakeAccountName]])]),d("div",mk,[gk,ee(d("input",{"onUpdate:modelValue":i[12]||(i[12]=r=>o.value.fakeAccountAvatar=r),placeholder:"支持网络图片地址或base64编码",class:"pure-input-2-3"},null,512),[[ze,o.value.fakeAccountAvatar]]),d("span",wk,[o.value.fakeAccountAvatar?(K(),Q("img",{key:0,src:o.value.fakeAccountAvatar,alt:"头像预览",width:"20",height:"20"},null,8,yk)):Ge("",!0)])]),d("div",bk,[vk,ee(d("input",{"onUpdate:modelValue":i[13]||(i[13]=r=>o.value.fakeAccountVip=r),placeholder:"自定义VIP等级",class:"pure-input-2-3"},null,512),[[ze,o.value.fakeAccountVip]])])])])]))}}),WT="",xk={class:"pure-form pure-form-aligned"},Ck=["disabled"],$k={class:"pure-control-group"},kk=d("label",null,[d("span",{class:"text-danger"},"*"),ce(" 地址")],-1),Sk={class:"pure-control-group"},Ek=d("label",null,[d("span",{class:"text-danger"},"*"),ce(" 资源根路径")],-1),Ak={class:"pure-control-group"},Ok=d("label",null,"备注",-1),Ik={class:"pure-control-group"},Pk=d("label",null,"平台",-1),Tk=["value"],Mk=d("small",{class:"text-info"},"如果是macOS版,而且有包含日韩文的文件或目录,建议选上,可以避免播放链接无效的问题。",-1),Lk=De({__name:"ConfigItem",props:{config:null,deletable:{type:Boolean}},emits:["change","delete","activate"],setup(e,{emit:t}){const n=e;Pt(async()=>{});async function o(){n.config.active=!0,t("activate",n.config)}async function s(){t("delete")}return ct(n.config,Dt(async i=>{t("change",i)},500),{deep:!0}),(i,r)=>(K(),Q("div",{class:Ye(["ce-clouddrive-config-item",{active:e.config.active}])},[d("form",xk,[d("fieldset",null,[d("legend",null,[d("button",{type:"button",class:Ye(["pure-button button-small",[e.config.active?"button-success":"pure-button-primary"]]),onClick:o,disabled:e.config.active},we(e.config.active?"当前使用该配置":"使用该配置"),11,Ck),e.deletable?(K(),Q("button",{key:0,type:"button",class:"pure-button button-error button-small",onClick:s}," 删除 ")):Ge("",!0)]),d("div",$k,[kk,ee(d("input",{"onUpdate:modelValue":r[0]||(r[0]=a=>e.config.url=a),placeholder:"CloudDrive服务地址,如「http://localhost:19798」",class:"pure-input-2-3"},null,512),[[ze,e.config.url]])]),d("div",Sk,[Ek,ee(d("input",{"onUpdate:modelValue":r[1]||(r[1]=a=>e.config.root=a),placeholder:"即当前115账号在CloudDrive中的资源名称,如「115」",class:"pure-input-2-3"},null,512),[[ze,e.config.root]])]),d("div",Ak,[Ok,ee(d("input",{"onUpdate:modelValue":r[2]||(r[2]=a=>e.config.memo=a),placeholder:"备注信息",class:"pure-input-2-3"},null,512),[[ze,e.config.memo]])]),d("div",Ik,[Pk,ee(d("select",{"onUpdate:modelValue":r[3]||(r[3]=a=>e.config.platform=a)},[(K(!0),Q(Ne,null,nt(de(Lc),a=>(K(),Q("option",{key:a,value:a},we(a),9,Tk))),128))],512),[[oi,e.config.platform]]),ce(" "),Mk])])])],2))}}),KT="",Bk={class:"ce-config ce-clouddrive-config"},Dk=d("div",{class:"ce-tips cd-tips"},[d("p",null,[d("a",{href:"https://www.clouddrive2.com/?ref=cloud115-enhancer",rel:"noreferer",target:"_blank",class:"text-bold text-primary"},"CloudDrive"),ce(" 是一个强大的多云盘管理工具,为用户提供包含云盘本地挂载的一站式的多云盘解决方案。")]),d("p",null,"本脚本主要是借助CloudDrive实现原码视频播放的功能(具体可以在「播放菜单」面板中查看)。")],-1),Nk={class:"ce-list"},Rk=d("div",{class:"ce-tips"},[d("p",{class:"text-primary"}," 暂时发现IINA是支持`file://`协议的,这时候播放器可以读取到同目录的字幕文件。 配置地址示例: file:///Users/you/115,根路径不用填。 ")],-1),Fk=d("div",{class:"ce-tips"}," 编辑配置后,请记得点击「保存全部配置」。 ",-1),jk={class:"ce-actions"},Uk=["disabled"],Hk=De({__name:"Config",async setup(e){let t,n;const o=he(([t,n]=en(()=>Bc()),t=await t,n(),t));Pt(async()=>{});async function s(){await Dc(o.value),ue({icon:"success",title:"设置已保存。",timer:800,position:"top-end"})}async function i(){o.value.push(ia())}async function r(u,f){const{isConfirmed:p}=await fe.fire({icon:"warning",html:`确定要删除第 ${f+1} 个配置「${u.url}」吗?`});!p||(o.value.splice(f,1),await s(),ue({icon:"success",title:`「${u.url}」已删除!`}))}async function a(u,f){u.forEach((p,h)=>{p.active=h===f}),await Dc(u),ue({icon:"success",title:"设置已保存。",timer:800,position:"top-end"})}return(u,f)=>(K(),Q("div",Bk,[Dk,d("div",Nk,[(K(!0),Q(Ne,null,nt(o.value,(p,h)=>(K(),Wt(Lk,{key:h,config:p,index:h,deletable:o.value.length>1,onDelete:w=>r(p,h),onActivate:w=>a(o.value,h)},null,8,["config","index","deletable","onDelete","onActivate"]))),128))]),Rk,Fk,d("div",jk,[d("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:s,disabled:!o.value.length}," 保存全部配置 ",8,Uk),ce(" "),d("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:i}," 添加配置 ")])]))}}),GT="",zk={class:"ce-config ce-list-config"},qk={class:"pure-form pure-form-aligned"},Vk={class:"pure-control-group"},Wk=d("label",{for:"sizeSorter"},"大小排序",-1),Kk=d("div",{class:"pure-form-message text-success"},[d("div",null,"在官方的「大小」列头部增加「排序」按钮,可以获取文件夹的大小,然后进行排序。"),d("div",null,"请注意该功能只会对当前加载的文件进行排序,如果有多页文件并需要对全部文件进行排序,请先点击「加载全部」后再使用该排序功能。")],-1),Gk={class:"pure-control-group"},Jk=d("label",{for:"sizeSorterDirAttrInterval"},"大小排序-获取目录大小间隔",-1),Yk=d("div",{class:"pure-form-message text-success"}," 「大小排序」功能需要获取文件夹大小,这个设置是获取文件夹大小的间隔时间,单位是豪秒。 ",-1),Xk={class:"pure-control-group"},Qk=d("label",{for:"showSha1"},"显示文件SHA1",-1),Zk=d("div",{class:"pure-form-message text-success"}," 在文件名下方显示文件SHA1,点击可以复制。 ",-1),e2={class:"pure-control-group"},t2=d("label",{for:"showFolderSizeButton"},"显示文件夹获取大小按钮",-1),n2=d("div",{class:"pure-form-message text-success"}," 点击按钮可以获取单个文件夹的大小。 ",-1),o2={class:"pure-control-group"},s2=d("label",{for:"showCopyButtonOnPathBar"},"在路径栏显示复制按钮",-1),i2=d("div",{class:"pure-form-message text-success"}," 点击后,复制当前路径到剪贴板。 ",-1),r2={class:"pure-control-group"},a2=d("label",{for:"showGotoButtonOnPathBar"},[ce(" 在路径栏显示前往按钮 "),d("small",{class:"text-danger"},"Beta")],-1),l2=d("div",{class:"pure-form-message text-success"}," 点击后,路径栏变为可输入状态,输入路径后按回车即可前往该路径。 ",-1),c2=De({__name:"Config",async setup(e){let t,n;const o=he(([t,n]=en(()=>kr()),t=await t,n(),t));return Pt(async()=>{}),ct(o,Dt(async s=>{await d_(s),ue({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"}),window.postMessage({event:Mt.listConfigChange,body:JSON.parse(JSON.stringify(s))})},500),{deep:!0}),(s,i)=>(K(),Q("div",zk,[d("form",qk,[d("fieldset",null,[d("div",Vk,[Wk,ee(d("input",{id:"sizeSorter",type:"checkbox","onUpdate:modelValue":i[0]||(i[0]=r=>o.value.sizeSorter=r)},null,512),[[Ee,o.value.sizeSorter]]),Kk]),d("div",Gk,[Jk,ee(d("input",{id:"sizeSorterDirAttrInterval",type:"number","onUpdate:modelValue":i[1]||(i[1]=r=>o.value.sizeSorterDirAttrInterval=r),min:"50",max:"999999"},null,512),[[ze,o.value.sizeSorterDirAttrInterval]]),ce(" 毫秒 "),Yk]),d("div",Xk,[Qk,ee(d("input",{id:"showSha1",type:"checkbox","onUpdate:modelValue":i[2]||(i[2]=r=>o.value.showSha1=r)},null,512),[[Ee,o.value.showSha1]]),Zk]),d("div",e2,[t2,ee(d("input",{id:"showFolderSizeButton",type:"checkbox","onUpdate:modelValue":i[3]||(i[3]=r=>o.value.showFolderSizeButton=r)},null,512),[[Ee,o.value.showFolderSizeButton]]),n2]),d("div",o2,[s2,ee(d("input",{id:"showCopyButtonOnPathBar",type:"checkbox","onUpdate:modelValue":i[4]||(i[4]=r=>o.value.showCopyButtonOnPathBar=r)},null,512),[[Ee,o.value.showCopyButtonOnPathBar]]),i2]),d("div",r2,[a2,ee(d("input",{id:"showGotoButtonOnPathBar",type:"checkbox","onUpdate:modelValue":i[5]||(i[5]=r=>o.value.showGotoButtonOnPathBar=r)},null,512),[[Ee,o.value.showGotoButtonOnPathBar]]),l2])])])]))}}),JT="",sh="search_config";function u2(e){return{showSelectTargetButtonOnPathBar:!0,...e}}async function ih(){const e=u2(),t=await Ze.get(sh,e);return{...e,...t}}async function d2(e){await Ze.set(sh,e)}const f2={class:"ce-config ce-search-config"},p2={class:"pure-form pure-form-aligned"},h2={class:"pure-control-group"},m2=d("label",{for:"showSelectTargetButtonOnPathBar"},"显示选择目标目录按钮",-1),g2=d("div",{class:"pure-form-message text-success"}," 在路径栏显示选择目标目录按钮。即可以在搜索结果页直接选择其他目录进行搜索,而不必返回列表页进入目录后再搜索。 ",-1),w2=De({__name:"Config",async setup(e){let t,n;const o=he(([t,n]=en(()=>ih()),t=await t,n(),t));return Pt(async()=>{}),ct(o,Dt(async s=>{await d2(s),ue({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"}),window.postMessage({event:Mt.searchConfigChange,body:JSON.parse(JSON.stringify(s))})},500),{deep:!0}),(s,i)=>(K(),Q("div",f2,[d("form",p2,[d("fieldset",null,[d("div",h2,[m2,ee(d("input",{id:"showSelectTargetButtonOnPathBar",type:"checkbox","onUpdate:modelValue":i[0]||(i[0]=r=>o.value.showSelectTargetButtonOnPathBar=r)},null,512),[[Ee,o.value.showSelectTargetButtonOnPathBar]]),g2])])])]))}}),YT="";async function y2(e){const t=`https://qrcodeapi.115.com/api/1.0/${e}/1.0/token/`;return(await fetch(t)).json()}const b2={[0]:"等待扫码",[1]:"已扫码",[2]:"登录成功",[-1]:"已失效",[-2]:"已取消"};let Zl=new AbortController;async function v2(){Zl.abort()}async function _2(e){const t=new URLSearchParams;t.append("uid",e.uid),t.append("time",e.time.toString()),t.append("sign",e.sign);const n="https://qrcodeapi.115.com/get/status/?"+t.toString();return Zl=new AbortController,(await fetch(n,{signal:Zl.signal})).json()}function x2(e){return{domain:"",hostOnly:!1,httpOnly:!0,name:"",path:"",sameSite:"",secure:!1,session:!1,storeId:"0",value:"",id:0,...e}}async function C2(e){return`UID=${e.UID}; CID=${e.CID}; SEID=${e.SEID}`}async function $2(e){const t=[],n=Object.keys(e),o={domain:"115.com",hostOnly:!1,httpOnly:!0,path:"/",sameSite:"unspecified",secure:!1,session:!1,storeId:"0"};for(let s=0;s<n.length;s++){const i=n[s],r=e[i];t.push(x2({...o,name:i,value:r,id:s+1}))}return t}async function k2(e,t){const n=new FormData;n.append("app",t),n.append("account",e);const o=`https://passportapi.115.com/app/1.0/${t}/1.0/login/qrcode/`;return(await fetch(o,{method:"POST",body:n})).json()}async function S2(e,t){const n=`https://qrcodeapi.115.com/api/1.0/web/1.0/qrcode?uid=${t}`;return(await fetch(n)).blob()}var rh=(e=>(e.web="web",e.android="android",e.ios="ios",e.linux="linux",e.mac="mac",e.windows="windows",e.tv="tv",e.alipaymini="alipaymini",e.wechatmini="wechatmini",e.qandroid="qandroid",e))(rh||{});const E2={web:"网页版",android:"115生活(Android端)",ios:"115生活(iOS端)",linux:"115生活(Linux端)",mac:"115生活(macOS端)",windows:"115生活(Windows端)",tv:"115网盘(Android电视端)",alipaymini:"115生活(支付宝小程序)",wechatmini:"115生活(微信小程序)",qandroid:"115管理(Android端)"};async function A2(e,t){return new Promise((n,o)=>{const s=new FileReader;s.onloadend=()=>{if(typeof s.result=="string"){if(t instanceof HTMLImageElement)t.src=s.result;else{const i=document.createElement("img");i.src=s.result,t.appendChild(i)}n()}else console.error("[renderQrcode]","reader.result is not string!"),o("reader.result is not string!")},s.onerror=i=>{console.error("[renderQrcode]",i),o(i)},s.readAsDataURL(e)})}async function O2(e){document.addEventListener("qrcodeStatusChange",t=>{const n=t.detail;e(n)})}async function I2(e){const t=new CustomEvent("qrcodeStatusChange",{detail:e});document.dispatchEvent(t)}async function P2(e,t,n=6e4){return new Promise(async(o,s)=>{console.log("[qrcodeLogin]",e,t,n);const i=await y2(e),r=await S2(e,i.data.uid);await A2(r,t);let a=!0,u=setTimeout(()=>{a=!1,s("[qrcode login] timeout!")},n),f="";for(;a;)try{const h=(await _2(i.data)).data.status;if(I2(h),h===0)console.log(`[qrcode login] status=${h} - waiting.`);else if(h===1)console.log(`[qrcode login] status=${h} - scanned.`);else if(h===2){console.log(`[qrcode login] status=${h} - signed.`);break}else if(h===-1){clearTimeout(u),f=`[qrcode login] status=${h} - expired.`;break}else if(h===-2){clearTimeout(u),f=`[qrcode login] status=${h} - canceled.`;break}}catch(p){console.error("[qrcode login]",p),f=p;break}clearTimeout(u),f?s(f):o(k2(i.data.uid,e))})}const ah="tools_config";function T2(e){return{scanApp:rh.alipaymini,...e}}async function M2(){const e=T2(),t=await Ze.get(ah,e);return{...e,...t}}async function L2(e){await Ze.set(ah,e)}const B2={class:"ce-tools-item"},D2={class:"pure-form pure-form-aligned"},N2=d("legend",null,"扫码获取Cookie",-1),R2={class:"pure-control-group"},F2=["disabled"],j2=["value"],U2=["disabled"],H2={key:0,class:"text-warning text-bold"},z2={key:1},q2=d("div",{class:"text-danger"},"扫码登录后,所选设备之前的登录将会失效,所以请尽量选不常用的。",-1),V2={class:"pure-control-group"},W2=De({__name:"GetCookie",props:{app:null},emits:["app-change"],setup(e,{emit:t}){const o=he(e.app),s=he(!1),i=he(!1),r=he(!1),a=he(),u=6e4,f=he(),p=Zn(()=>f.value?b2[f.value]:"");ct(o,D=>{t("app-change",D),w()}),Pt(async()=>{}),Rt(async()=>{await O2(x)});async function h(){await w();try{const D=document.querySelector("#ceGetCookieQrcode"),O=await P2(o.value,D,u);a.value=O.data}catch(D){if(console.error(D),D.name==="AbortError")return;fe.fire({icon:"error",title:"扫码失败",text:D.toString()})}finally{s.value=!1,i.value=!1,f.value=void 0}}async function w(){a.value=void 0,i.value=!1,r.value=!1,s.value=!1,f.value=void 0,await M()}async function C(){i.value=!0}async function x(D){console.log("[handleStatusChange]",D),f.value=D}async function A(D){var H;const O=(H=a.value)==null?void 0:H.cookie;if(!O)return;let I="";if(D==="text")I=await C2(O);else if(D==="json"){const se=await $2(O);I=JSON.stringify(se,null,2)}zg(I),Ni.fire({icon:"success",title:"已复制到剪贴板",timer:1500})}async function M(){await v2()}return(D,O)=>(K(),Q("div",B2,[d("form",D2,[d("fieldset",null,[N2,d("div",R2,[ee(d("select",{"onUpdate:modelValue":O[0]||(O[0]=I=>o.value=I),disabled:s.value},[(K(!0),Q(Ne,null,nt(de(E2),(I,H)=>(K(),Q("option",{value:H,key:H},we(I),9,j2))),128))],8,F2),[[oi,o.value]]),ce(" "),d("button",{type:"button",class:"pure-button pure-button-primary",onClick:h,disabled:s.value}," 开始 ",8,U2),ce(" "),de(p)?(K(),Q("span",H2,we(de(p)),1)):Ge("",!0),a.value?(K(),Q("span",z2,[ce(" "),d("button",{type:"button",class:"pure-button button-success",onClick:O[1]||(O[1]=I=>A("text"))}," 复制文本格式Cookie "),ce(" "),d("button",{type:"button",class:"pure-button button-success",onClick:O[2]||(O[2]=I=>A("json"))}," 复制JSON格式Cookie ")])):Ge("",!0)]),q2,ee(d("div",V2,[d("img",{id:"ceGetCookieQrcode",alt:"qrcode",onLoad:C},null,32)],512),[[Gt,i.value]])])])]))}}),K2={class:"ce-tools-item"},G2={class:"pure-form pure-form-aligned"},J2=d("legend",null,"文件清理",-1),Y2={class:"pure-control-group"},X2=De({__name:"Cleaner",setup(e){async function t(o){o&&(await n(),await Bt(1e3)),window.postMessage({event:Mt.closeConfig}),postMessage({type:Mn.OPEN_CLEANER})}async function n(){return new Promise(async(o,s)=>{unsafeWindow.parent.Core.FileSelectDG.Open((i,r)=>{console.log("[Core.FileSelectDG.Open]",i,r);const a=i[i.length-1];unsafeWindow.parent.wangpan.Main.GotoDir(1,a.cid,0,""),o()},{select:1,nf:1,show_record:0,show_copy:1,btn_txt:"打开清理工具",select_txt:"清理"})})}return(o,s)=>(K(),Q("div",K2,[d("form",G2,[d("fieldset",null,[J2,d("div",Y2,[d("button",{type:"button",class:"pure-button button-success",onClick:s[0]||(s[0]=i=>t(!1))}," 清理当前文件夹 "),ce(" "),d("button",{type:"button",class:"pure-button button-success",onClick:s[1]||(s[1]=i=>t(!0))}," 清理指定文件夹 ")])])])]))}}),Q2={class:"ce-config ce-tools-config"},Z2={class:"item"},eS=De({__name:"Config",async setup(e){let t,n;const o=he(([t,n]=en(()=>M2()),t=await t,n(),t));Pt(async()=>{}),ct(o,Dt(async i=>{await L2(i),window.postMessage({event:Mt.toolsConfigChange,body:JSON.parse(JSON.stringify(i))})},100),{deep:!0});async function s(i){o.value.scanApp=i}return(i,r)=>(K(),Q("div",Q2,[d("div",Z2,[Ce(W2,{app:o.value.scanApp,onAppChange:s},null,8,["app"]),Ce(X2)])]))}}),XT="",tS={class:"menu-config-block menu-basic-config"},nS={class:"pure-form pure-form-stacked"},oS=d("legend",null,"全局设置",-1),sS={class:"pure-control-group"},iS=d("label",{for:"basic_enabled"},"启用",-1),rS={class:"pure-control-group"},aS=d("label",{for:"basic_hideSelectionMenuLabel"},"隐藏顶部菜单文本",-1),lS={class:"pure-control-group"},cS=d("label",{for:"basic_enableInSearch"},"在搜索结果页中启用",-1),uS={class:"pure-control-group"},dS=d("label",{for:"basic_manageOfficialMenus"},"控制官方菜单",-1),fS={class:"pure-control-group"},pS=d("label",{for:"basic_forceManualBeforeOpenOnKey"},"强制使用手动输入模式的辅助键",-1),hS=["value"],mS={class:"pure-control-group"},gS=d("label",{for:"basic_m3u8TempDirName"},"M3U8临时目录",-1),wS=De({__name:"BasicConfig",props:{config:null},setup(e,{emit:t}){const n=e;return(o,s)=>(K(),Q("div",tS,[d("form",nS,[d("fieldset",null,[oS,d("div",sS,[iS,ee(d("input",{id:"basic_enabled",type:"checkbox","onUpdate:modelValue":s[0]||(s[0]=i=>n.config.enabled=i)},null,512),[[Ee,n.config.enabled]])]),d("div",rS,[aS,ee(d("input",{id:"basic_hideSelectionMenuLabel",type:"checkbox","onUpdate:modelValue":s[1]||(s[1]=i=>n.config.hideSelectionMenuLabel=i)},null,512),[[Ee,n.config.hideSelectionMenuLabel]])]),d("div",lS,[cS,ee(d("input",{id:"basic_enableInSearch",type:"checkbox","onUpdate:modelValue":s[2]||(s[2]=i=>n.config.enableInSearch=i)},null,512),[[Ee,n.config.enableInSearch]])]),d("div",uS,[dS,ee(d("input",{id:"basic_manageOfficialMenus",type:"checkbox","onUpdate:modelValue":s[3]||(s[3]=i=>n.config.manageOfficialMenus=i)},null,512),[[Ee,n.config.manageOfficialMenus]])]),d("div",fS,[pS,ee(d("select",{id:"basic_forceManualBeforeOpenOnKey","onUpdate:modelValue":s[4]||(s[4]=i=>n.config.keyToTriggerManual=i)},[(K(!0),Q(Ne,null,nt(de(rn),(i,r)=>(K(),Q("option",{key:r,value:r},we(i),9,hS))),128))],512),[[oi,n.config.keyToTriggerManual]])]),d("div",mS,[gS,ee(d("input",{id:"basic_m3u8TempDirName","onUpdate:modelValue":s[5]||(s[5]=i=>n.config.m3u8TempDir=i)},null,512),[[ze,n.config.m3u8TempDir]])])])])]))}}),QT="",yS={class:"menu-config-block"},bS={class:"pure-form pure-form-stacked"},vS=d("label",{for:"listItemHover_enabled"},"启用",-1),_S=d("label",{for:"listItemHover_openInNewTab"},"新标签页打开",-1),xS=d("label",{for:"listItemHover_search",class:"text-primary"},"搜索",-1),CS=d("label",{for:"listItemHover_play",class:"text-primary"},"播放",-1),$S=d("label",{for:"listItemHover_copyFileName"},"名称路径",-1),kS=d("label",{for:"listItemHover_exportList"},"导出列表数据",-1),SS=De({__name:"ListItemHoverConfig",props:{config:null},setup(e){return(t,n)=>(K(),Q("div",yS,[d("form",bS,[d("fieldset",null,[d("legend",null,we(de(xs).listItemHover),1),d("div",null,[vS,ee(d("input",{id:"listItemHover_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[Ee,e.config.enabled]])]),d("div",null,[_S,ee(d("input",{id:"listItemHover_openInNewTab",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.openInNewTab=o)},null,512),[[Ee,e.config.openInNewTab]])]),d("div",null,[xS,ee(d("input",{id:"listItemHover_search",type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=o=>e.config.search=o)},null,512),[[Ee,e.config.search]])]),d("div",null,[CS,ee(d("input",{id:"listItemHover_play",type:"checkbox","onUpdate:modelValue":n[3]||(n[3]=o=>e.config.play=o)},null,512),[[Ee,e.config.play]])]),d("div",null,[$S,ee(d("input",{id:"listItemHover_copyFileName",type:"checkbox","onUpdate:modelValue":n[4]||(n[4]=o=>e.config.copyNames=o)},null,512),[[Ee,e.config.copyNames]])]),d("div",null,[kS,ee(d("input",{id:"listItemHover_exportList",type:"checkbox","onUpdate:modelValue":n[5]||(n[5]=o=>e.config.exportList=o)},null,512),[[Ee,e.config.exportList]])])])])]))}}),ES={class:"menu-config-block"},AS={class:"pure-form pure-form-stacked"},OS=d("label",{for:"listItemContext_enabled"},"启用",-1),IS=d("label",{for:"listItemContext_copyFileName"},"名称路径",-1),PS=De({__name:"ListItemContextConfig",props:{config:null},setup(e){return(t,n)=>(K(),Q("div",ES,[d("form",AS,[d("fieldset",null,[d("legend",null,we(de(xs).listItemContext),1),d("div",null,[OS,ee(d("input",{id:"listItemContext_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[Ee,e.config.enabled]])]),d("div",null,[IS,ee(d("input",{id:"listItemContext_copyFileName",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.copyNames=o)},null,512),[[Ee,e.config.copyNames]])])])])]))}}),TS={class:"menu-config-block"},MS={class:"pure-form pure-form-stacked"},LS=d("label",{for:"selection_enabled"},"启用",-1),BS=d("label",{for:"selection_moveToSelfNameDir"},"移动到同名目录",-1),DS=d("label",{for:"selection_copyFileName"},"名称路径",-1),NS=d("label",{for:"selection_play"},"播放",-1),RS=De({__name:"SelectionConfig",props:{config:null},setup(e){return(t,n)=>(K(),Q("div",TS,[d("form",MS,[d("fieldset",null,[d("legend",null,we(de(xs).selection),1),d("div",null,[LS,ee(d("input",{id:"selection_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[Ee,e.config.enabled]])]),d("div",null,[BS,ee(d("input",{id:"selection_moveToSelfNameDir",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.moveToSelfNameDir=o)},null,512),[[Ee,e.config.moveToSelfNameDir]])]),d("div",null,[DS,ee(d("input",{id:"selection_copyFileName",type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=o=>e.config.copyNames=o)},null,512),[[Ee,e.config.copyNames]])]),d("div",null,[NS,ee(d("input",{id:"selection_play",type:"checkbox","onUpdate:modelValue":n[3]||(n[3]=o=>e.config.play=o)},null,512),[[Ee,e.config.play]])])])])]))}}),FS={class:"menu-config-block"},jS={class:"pure-form pure-form-stacked"},US=d("label",{for:"dirContext_enabled"},"启用",-1),HS=d("label",{for:"dirContext_rename"},"重命名",-1),zS=d("label",{for:"dirContext_delete"},"删除",-1),qS=d("label",{for:"dirContext_play"},"播放全部",-1),VS=d("label",{for:"dirContext_copyFileName"},"名称路径",-1),WS=d("label",{for:"dirContext_move"},"移动",-1),KS=d("label",{for:"dirContext_copy"},"复制",-1),GS=d("label",{for:"dirContext_copyTo"},"复制到",-1),JS=d("label",{for:"dirContext_viewProperties"},"查看属性",-1),YS=d("label",{for:"dirContext_showSubFolderSize"},"子文件夹大小",-1),XS=d("label",{for:"dirContext_exportList"},"导出列表数据",-1),QS=De({__name:"DirContextConfig",props:{config:null},setup(e){return(t,n)=>(K(),Q("div",FS,[d("form",jS,[d("fieldset",null,[d("legend",null,we(de(xs).dirContext),1),d("div",null,[US,ee(d("input",{id:"dirContext_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[Ee,e.config.enabled]])]),d("div",null,[HS,ee(d("input",{id:"dirContext_rename",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.rename=o)},null,512),[[Ee,e.config.rename]])]),d("div",null,[zS,ee(d("input",{id:"dirContext_delete",type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=o=>e.config.delete=o)},null,512),[[Ee,e.config.delete]])]),d("div",null,[qS,ee(d("input",{id:"dirContext_play",type:"checkbox","onUpdate:modelValue":n[3]||(n[3]=o=>e.config.play=o)},null,512),[[Ee,e.config.play]])]),d("div",null,[VS,ee(d("input",{id:"dirContext_copyFileName",type:"checkbox","onUpdate:modelValue":n[4]||(n[4]=o=>e.config.copyNames=o)},null,512),[[Ee,e.config.copyNames]])]),d("div",null,[WS,ee(d("input",{id:"dirContext_move",type:"checkbox","onUpdate:modelValue":n[5]||(n[5]=o=>e.config.move=o)},null,512),[[Ee,e.config.move]])]),d("div",null,[KS,ee(d("input",{id:"dirContext_copy",type:"checkbox","onUpdate:modelValue":n[6]||(n[6]=o=>e.config.copy=o)},null,512),[[Ee,e.config.copy]])]),d("div",null,[GS,ee(d("input",{id:"dirContext_copyTo",type:"checkbox","onUpdate:modelValue":n[7]||(n[7]=o=>e.config.copyTo=o)},null,512),[[Ee,e.config.copyTo]])]),d("div",null,[JS,ee(d("input",{id:"dirContext_viewProperties",type:"checkbox","onUpdate:modelValue":n[8]||(n[8]=o=>e.config.viewProp=o)},null,512),[[Ee,e.config.viewProp]])]),d("div",null,[YS,ee(d("input",{id:"dirContext_showSubFolderSize",type:"checkbox","onUpdate:modelValue":n[9]||(n[9]=o=>e.config.showSubFolderSize=o)},null,512),[[Ee,e.config.showSubFolderSize]])]),d("div",null,[XS,ee(d("input",{id:"dirContext_exportList",type:"checkbox","onUpdate:modelValue":n[10]||(n[10]=o=>e.config.exportList=o)},null,512),[[Ee,e.config.exportList]])])])])]))}}),ZS={class:"official-menu-config"},eE=d("div",{class:"ce-tips"},[d("p",null,[ce("开启「全局设置 - 控制官方菜单」后生效。"),d("b",{class:"text-danger"},"暂不建议开启。")]),d("p",{class:"text-danger"},"目前的控制效果并不好,比如会把文件专用的菜单显示在目录上(反之亦然)。")],-1),tE={class:"pure-form pure-form-stacked"},nE=["for"],oE=["id","onUpdate:modelValue"],sE=De({__name:"OfficialMenuConfig",setup(e){const t=he([]),n=he(!1);return Pt(async()=>{t.value=await Zf(),console.log("official menu groups",t.value,location.href)}),Rt(()=>{document.body.addEventListener("click",()=>{n.value||(n.value=!0)})}),ct(t,Dt(async o=>{if(!n.value)return;const s=await Qf(o);await Xf(s),ue({icon:"success",title:"官方菜单设置已保存,刷新页面生效。",timer:1e3,position:"top-end"})},500),{deep:!0}),(o,s)=>(K(),Q("div",ZS,[eE,(K(!0),Q(Ne,null,nt(t.value,(i,r)=>(K(),Q("div",{key:r,class:"menu-config-block"},[d("form",tE,[d("fieldset",null,[d("legend",null,we(i.label),1),(K(!0),Q(Ne,null,nt(i.items,(a,u)=>(K(),Q("div",{key:u},[d("label",{for:`m_${r}_${u}_enabled`},[ce(we(a.label)+" ",1),d("small",null,we(a.key),1)],8,nE),ee(d("input",{id:`m_${r}_${u}_enabled`,type:"checkbox","onUpdate:modelValue":f=>a.enabled=f},null,8,oE),[[Ee,a.enabled]])]))),128))])])]))),128))]))}}),ZT="",iE={key:0,class:"ce-menu-config"},rE=d("div",{class:"ce-tips"},[d("p",null,"「搜索」功能菜单支持自定义,可在「搜索菜单」设置面板中添加和管理。"),d("p",null,"「播放」功能菜单支持自定义,可在「播放菜单」设置面板中添加和管理。")],-1),aE=d("hr",{class:"ce-hr"},null,-1),lE=d("h1",null,"官方菜单设置",-1),cE=De({__name:"MenuConfig",async setup(e){let t,n;const o=he(([t,n]=en(()=>Yo()),t=await t,n(),t));return he(!1),Pt(async()=>{}),ct(o,Dt(async s=>{await Sw(s),ue({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"})},500),{deep:!0}),(s,i)=>o.value.enabled!==void 0?(K(),Q("div",iE,[rE,Ce(wS,{config:o.value},null,8,["config"]),Ce(SS,{config:o.value.listItemHover},null,8,["config"]),Ce(PS,{config:o.value.listItemContext},null,8,["config"]),Ce(RS,{config:o.value.selection},null,8,["config"]),Ce(QS,{config:o.value.dirContext},null,8,["config"]),aE,d("div",null,[lE,d("div",null,[Ce(sE)])])])):Ge("",!0)}}),e5="",uE={class:"ce-custom-url"},dE={class:"pure-form pure-form-aligned"},fE={class:"ce-custom-url-index"},pE={class:"pure-control-group"},hE=d("label",null,"启用",-1),mE={class:"pure-control-group"},gE=d("label",null,"唯一标识",-1),wE={class:"pure-control-group"},yE=d("label",null,"显示名称",-1),bE={class:"pure-control-group"},vE=d("label",null,"图标",-1),_E={class:"pure-control-group"},xE={class:"pure-control-group"},CE=d("label",null,"后台打开",-1),$E={class:"pure-control-group"},kE=d("label",null,"备注",-1),SE={key:0,class:"pure-control-group"},EE=d("label",null,"Mutation",-1),lh=De({__name:"CustomUrl",props:{item:null,index:null},emits:["delete"],setup(e,{emit:t}){const n=he(!0);function o(){t("delete")}async function s(){n.value=!n.value,n.value&&ue({title:"已开启高级模式",text:"请谨慎修改,不正确的代码可能会导致脚本崩溃。",icon:"info",timer:2e3})}async function i(){window.postMessage({event:"customUrlHelp"},"*")}async function r(){const a=`
<div style="text-align:left;">
<p>自定义代码,用于生成最终的链接。</p><br>
<p>代码会被包含在一个async匿名函数中执行,最终应该返回一个链接字符串。</p>
<p>传入的参数名为「payload」,其结构如下:</p>
<p>- url: 之前自动处理得到的链接</p>
<p>- file:当前文件信息</p>
<p>- customUrl:当前自定义规则信息</p>
<p>- cloudDriveConfig:CloudDrive设置信息</p><br>
<p>示例:</p>
<pre style="text-align:left;font-size:12px;">
const {
url,
file,
customUrl,
cloudDriveConfig
} = payload
const sth = await fetch(\`https://api.sth.com/foo?bar=\${file.pc}\`)
return \`https://example.com/do?key=\${sth}\`
</pre>
</div>
`;await fe.fire({title:"Mutation 说明",html:a,width:480,position:"top-start",backdrop:!1})}return(a,u)=>(K(),Q("div",uE,[d("form",dE,[d("fieldset",null,[d("legend",null,[d("span",fE,"# "+we(e.index+1),1),d("button",{type:"button",class:"pure-button button-error button-small",onClick:o}," 删除 ")]),d("div",pE,[hE,ee(d("input",{"onUpdate:modelValue":u[0]||(u[0]=f=>e.item.enabled=f),type:"checkbox",id:"customUrl_enabled"},null,512),[[Ee,e.item.enabled]])]),d("div",mE,[gE,ee(d("input",{"onUpdate:modelValue":u[1]||(u[1]=f=>e.item.key=f),id:"customUrl_key",class:"pure-input-2-3",placeholder:"英文、数字或下划线"},null,512),[[ze,e.item.key]])]),d("div",wE,[yE,ee(d("input",{"onUpdate:modelValue":u[2]||(u[2]=f=>e.item.label=f),id:"customUrl_label",class:"pure-input-2-3",placeholder:"菜单文本,尽量简洁"},null,512),[[ze,e.item.label]])]),d("div",bE,[vE,ee(d("input",{"onUpdate:modelValue":u[3]||(u[3]=f=>e.item.icon=f),id:"customUrl_icon",class:"pure-input-2-3",placeholder:"图标class、图片链接或图片data:image"},null,512),[[ze,e.item.icon]])]),d("div",_E,[d("label",{onDblclick:s}," 链接 ",32),ee(d("textarea",{"onUpdate:modelValue":u[4]||(u[4]=f=>e.item.url=f),id:"customUrl_url",class:"pure-input-2-3",placeholder:"链接地址,支持变量,变量列表请点击右侧「查看变量」"},null,512),[[ze,e.item.url]]),ce(" "),d("a",{href:"javascript:void(0)",class:"text-primary",onClick:i},"查看变量")]),d("div",xE,[CE,ee(d("input",{"onUpdate:modelValue":u[5]||(u[5]=f=>e.item.openInBackground=f),id:"customUrl_openInBackground",type:"checkbox"},null,512),[[Ee,e.item.openInBackground]])]),d("div",$E,[kE,ee(d("input",{"onUpdate:modelValue":u[6]||(u[6]=f=>e.item.memo=f),id:"customUrl_memo",class:"pure-input-2-3"},null,512),[[ze,e.item.memo]])]),n.value?(K(),Q("div",SE,[EE,ee(d("textarea",{"onUpdate:modelValue":u[7]||(u[7]=f=>e.item.mutation=f),id:"customUrl_mutation",class:"pure-input-2-3",placeholder:"自定义代码生成最终链接,具体请看右侧「查看说明」"},null,512),[[ze,e.item.mutation]]),ce(" "),d("a",{href:"javascript:void(0)",class:"text-primary",onClick:r},"查看说明")])):Ge("",!0)])])]))}}),t5="",AE={class:"ce-config ce-search-urls ce-custom-urls"},OE={class:"ce-menu-urls-builtin"},IE={class:"pure-form pure-form-aligned"},PE=["for"],TE=["id","onUpdate:modelValue"],ME={class:"text-info"},LE=["onClick"],BE={class:"ce-custom-urls-list"},DE={class:"ce-custom-urls-actions"},NE=["disabled"],RE=De({__name:"SearchUrls",async setup(e){let t,n;const o=he(([t,n]=en(()=>Nf()),t=await t,n(),t)),s=he(([t,n]=en(()=>Jo(bn.search)),t=await t,n(),t));Pt(async()=>{}),ct(o,Dt(async p=>{const h=[];p.forEach(w=>{w.enabled&&h.push(w.key)}),await r_(h),ue({icon:"success",title:"预置搜索菜单设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"})},500),{deep:!0});async function i(){const p=[];for(const h of s.value){if(!await r(h,p.length))return;if(p.includes(h.key)){ue({icon:"error",title:`第 ${p.length+1} 个记录的「唯一标识: ${h.key}」重复!`});return}p.push(h.key)}await Uu(bn.search,s.value),ue({icon:"success",title:"保存成功!"})}async function r(p,h){const w=/^\w+$/;return p.key=p.key.trim(),w.test(p.key)?(p.label=p.label.trim(),p.label===""?(ue({icon:"error",title:`第 ${h+1} 个记录的「显示名称」不能为空!`}),!1):(p.url=p.url.trim(),p.url===""?(ue({icon:"error",title:`第 ${h+1} 个记录的「链接」不能为空!`}),!1):(p.icon=p.icon.trim(),p.memo=p.memo.trim(),!0))):(ue({icon:"error",title:`第 ${h+1} 个记录的「唯一标识」错误!只能包含字母、数字、下划线。`}),!1)}async function a(){s.value.push(pt())}async function u(p,h){const{isConfirmed:w}=await fe.fire({icon:"warning",html:`确定要删除第 ${h+1} 个记录「${p.label}」吗?`});!w||(s.value.splice(h,1),await i(),ue({icon:"success",title:`「${p.label}」已删除!`}))}async function f(p){const h=JSON.stringify(p,null,2),w=`ce-url-item-denifition-${p.key}`,{isConfirmed:C}=await fe.fire({title:`「${p.label}」的定义`,html:`<h3>${p.memo}</h3>
<pre id="${w}" style="text-align:left;font-size:12px;"></pre>`,confirmButtonText:"复制",showCancelButton:!0,position:"top-left",heightAuto:!0,didOpen:()=>{document.getElementById(w).textContent=h}});!C||(navigator.clipboard.writeText(h),ue({icon:"success",title:"已复制到剪贴板!"}))}return(p,h)=>(K(),Q("div",AE,[d("h1",null,[ce("预置搜索菜单 "),ee(d("small",null,"( "+we(o.value.length)+" )",513),[[Gt,o.value.length]])]),d("div",OE,[d("form",IE,[d("fieldset",null,[(K(!0),Q(Ne,null,nt(o.value,(w,C)=>(K(),Q("div",{key:C,class:"pure-control-group"},[d("label",{for:`builtin_${w.key}`},we(w.label),9,PE),ee(d("input",{id:`builtin_${w.key}`,type:"checkbox","onUpdate:modelValue":x=>w.enabled=x},null,8,TE),[[Ee,w.enabled]]),ce(" "),d("span",ME,we(w.memo),1),ce(" "),d("button",{type:"button",class:"pure-button button-small",onClick:x=>f(w)},"查看定义",8,LE)]))),128))])])]),d("h1",null,[ce("自定义搜索菜单 "),ee(d("small",null,"( "+we(s.value.length)+" )",513),[[Gt,s.value.length]])]),d("div",BE,[(K(!0),Q(Ne,null,nt(s.value,(w,C)=>(K(),Wt(lh,{key:C,item:w,index:C,onDelete:x=>u(w,C)},null,8,["item","index","onDelete"]))),128))]),d("div",DE,[d("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:i,disabled:!s.value.length}," 保存自定义搜索菜单 ",8,NE),ce(" "),d("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:a}," 添加自定义搜索菜单 ")])]))}}),n5="",FE={class:"ce-config ce-play-urls ce-custom-urls"},jE=d("div",{class:"ce-tips"},[d("p",null,[ce("支持常见的视频、音频和图片格式,也支持目录播放。预置播放菜单使用的链接变量是 "),d("b",null,"{clouddrive_stream_url}"),ce(" , 会根据文件或目录自动使用相应的链接。")]),d("p",null,"播放功能依赖CloudDrive,请先在「CloudDrive」设置面板中进行配置。")],-1),UE={class:"ce-menu-urls-builtin"},HE={class:"pure-form pure-form-aligned"},zE=["for"],qE=["id","onUpdate:modelValue"],VE={class:"text-info"},WE=["onClick"],KE=["innerHTML"],GE={class:"ce-custom-urls-list"},JE=d("div",{class:"ce-tips"}," 编辑后,请记得点击「保存自定义播放菜单」。 ",-1),YE={class:"ce-custom-urls-actions"},XE=["disabled"],QE=De({__name:"PlayUrls",async setup(e){let t,n;const o=he(([t,n]=en(()=>$r()),t=await t,n(),t)),s=he(([t,n]=en(()=>Jo(bn.play)),t=await t,n(),t));Pt(async()=>{}),ct(o,Dt(async p=>{const h=[];p.forEach(w=>{w.enabled&&h.push(w.key)}),await a_(h),ue({icon:"success",title:"预置搜索菜单设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"})},500),{deep:!0});async function i(){const p=[];for(const h of s.value){if(!await r(h,p.length))return;if(p.includes(h.key)){ue({icon:"error",title:`第 ${p.length+1} 个记录的「唯一标识: ${h.key}」重复!`});return}p.push(h.key)}await Uu(bn.play,s.value),ue({icon:"success",title:"保存成功!"})}async function r(p,h){const w=/^\w+$/;return p.key=p.key.trim(),w.test(p.key)?(p.label=p.label.trim(),p.label===""?(ue({icon:"error",title:`第 ${h+1} 个记录的「显示名称」不能为空!`}),!1):(p.url=p.url.trim(),p.url===""?(ue({icon:"error",title:`第 ${h+1} 个记录的「链接」不能为空!`}),!1):(p.icon=p.icon.trim(),p.memo=p.memo.trim(),!0))):(ue({icon:"error",title:`第 ${h+1} 个记录的「唯一标识」错误!只能包含字母、数字、下划线。`}),!1)}async function a(){s.value.push(pt())}async function u(p,h){const{isConfirmed:w}=await fe.fire({icon:"warning",html:`确定要删除第 ${h+1} 个记录「${p.label}」吗?`});!w||(s.value.splice(h,1),await i(),ue({icon:"success",title:`「${p.label}」已删除!`}))}async function f(p){const h=JSON.stringify(p,null,2),w=`ce-url-item-denifition-${p.key}`,{isConfirmed:C}=await fe.fire({title:`「${p.label}」的定义`,html:`<h3>${p.memo}</h3>
<pre id="${w}" style="text-align:left;font-size:12px;"></pre>`,confirmButtonText:"复制",showCancelButton:!0,position:"top-left",heightAuto:!0,didOpen:()=>{document.getElementById(w).innerText=h}});!C||(navigator.clipboard.writeText(h),ue({icon:"success",title:"已复制到剪贴板!"}))}return(p,h)=>(K(),Q("div",FE,[d("h1",null,[ce("预置播放菜单 "),ee(d("small",null,"( "+we(o.value.length)+" )",513),[[Gt,o.value.length]])]),jE,d("div",UE,[d("form",HE,[d("fieldset",null,[(K(!0),Q(Ne,null,nt(o.value,(w,C)=>(K(),Q("div",{key:C,class:"pure-control-group"},[d("label",{for:`builtin_${w.key}`},we(w.label),9,zE),ee(d("input",{id:`builtin_${w.key}`,type:"checkbox","onUpdate:modelValue":x=>w.enabled=x},null,8,qE),[[Ee,w.enabled]]),ce(" "),d("span",VE,we(w.memo),1),ce(" "),d("button",{type:"button",class:"pure-button button-small",onClick:x=>f(w)},"查看定义",8,WE),w.extraMemo?(K(),Q("span",{key:0,innerHTML:w.extraMemo,class:"extra-memo"},null,8,KE)):Ge("",!0)]))),128))])])]),d("h1",null,[ce("自定义播放菜单 "),ee(d("small",null,"( "+we(s.value.length)+" )",513),[[Gt,s.value.length]])]),d("div",GE,[(K(!0),Q(Ne,null,nt(s.value,(w,C)=>(K(),Wt(lh,{key:C,item:w,index:C,onDelete:x=>u(w,C)},null,8,["item","index","onDelete"]))),128))]),JE,d("div",YE,[d("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:i,disabled:!s.value.length}," 保存自定义播放菜单 ",8,XE),ce(" "),d("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:a}," 添加自定义播放菜单 ")])]))}}),o5="",ch=function(){return document.ontouchstart!==null?"click":"touchstart"},Kr="__vue_click_away__",uh=function(e,t,n){dh(e);let o=n.context,s=t.value,i=!1;setTimeout(function(){i=!0},0),e[Kr]=function(r){if((!e||!e.contains(r.target))&&s&&i&&typeof s=="function")return s.call(o,r)},document.addEventListener(ch(),e[Kr],!1)},dh=function(e){document.removeEventListener(ch(),e[Kr],!1),delete e[Kr]},ZE={mounted:uh,updated:function(e,t,n){t.value!==t.oldValue&&uh(e,t,n)},unmounted:dh},eA=De({__name:"Drawer",props:{isOpen:{type:Boolean,required:!1,default:!1},maxWidth:{type:String,required:!1,default:"600px"},speed:{type:Number,required:!1,default:100},backgroundColor:{type:String,required:!1,default:"#fafafa"}},emits:["close"],setup(e,{emit:t}){const n=e,o=he(!1),s=he(!1),i=a=>{const u=document.querySelector("body");u.style.overflow=a?"hidden":""},r=a=>{!a.target.classList.contains("ce-drawer__overlay")||s.value||t("close")};return Rt(()=>{o.value=n.isOpen}),ct(()=>n.isOpen,a=>{s.value=!0,a?(i(!0),o.value=!0):(i(!1),setTimeout(()=>o.value=!1,n.speed)),setTimeout(()=>s.value=!1,n.speed)}),(a,u)=>(K(),Q("div",null,[d("div",{class:Ye(["ce-drawer",{"is-open":e.isOpen,"is-visible":o.value}])},[d("div",{class:"ce-drawer__overlay",style:vn({transitionDuration:`${e.speed}ms`})},null,4),ee((K(),Q("div",{class:"ce-drawer__content",style:vn({maxWidth:e.maxWidth,transitionDuration:`${e.speed}ms`,backgroundColor:e.backgroundColor})},[kn(a.$slots,"default")],4)),[[de(ZE),r]])],2)]))}}),i5="",tA={class:"ce-about"},nA=d("p",null,"115不大助手(以下简称「脚本」),是一个仅用于学习编程的小脚本。",-1),oA=d("br",null,null,-1),sA=d("p",null,"脚本不会收集您的任何个人信息。",-1),iA=d("p",null,"脚本仅借助了官方已有的功能,无任何破解行为。",-1),rA=d("p",null,"脚本代码本身已包含全部依赖,无任何远程引用。",-1),aA=d("br",null,null,-1),lA=d("br",null,null,-1),cA=d("br",null,null,-1),uA=d("hr",{class:"ce-hr"},null,-1),dA=["href"],fA=De({__name:"About",setup(e){const t={name:"115不大助手",version:"0.5.53",author:{name:"生瓜太保",email:"[email protected]"},greasyforkUrl:"http://greasyfork.icu/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"};return(n,o)=>(K(),Q("div",tA,[nA,oA,sA,iA,rA,aA,lA,cA,uA,d("div",null,[d("a",{href:de(t).greasyforkUrl,class:"text-bold text-primary",target:"_blank",rel:"noreferrer noopener",title:"到Greasyfork查看"},[ce(we(de(t).name)+" ",1),d("small",null,"v"+we(de(t).version),1)],8,dA),ce(" "),d("small",null,"by "+we(de(t).author.name),1)])]))}}),pA={class:"ce-config-main"},hA={class:"ce-config-main-header"},mA=d("h1",null,"设置",-1),gA={class:"ce-intro"},wA=["href"],yA={class:"ce-config-main-body"},bA=De({__name:"Config",setup(e){const t={name:"115不大助手",version:"0.5.53",author:{name:"生瓜太保",email:"[email protected]"},greasyforkUrl:"http://greasyfork.icu/zh-CN/scripts/474231-115%E4%B8%8D%E5%A4%A7%E5%8A%A9%E6%89%8B-full?locale_override=1"},n=he(!1),o=he(!1),s=he();Rt(async()=>{window.addEventListener("message",f=>{const{event:p,body:h}=f.data;p===Mt.openConfig&&(n.value||(n.value=!0),i(h)),p===Mt.closeConfig&&r()},!1)});async function i(f){var p;o.value=!0,console.log("[openDrawer]",f),f&&(await Hs(),(p=s.value)==null||p.selectTab(`#${f}`))}async function r(){o.value=!1}async function a(...f){console.log("[tabClicked]",f)}async function u(...f){console.log("[tabChanged]",f)}return(f,p)=>(K(),Wt(Fd,null,{default:Ke(()=>[d("div",pA,[Ce(eA,{"is-open":o.value,onClose:r,"max-width":"1030px",speed:500},{default:Ke(()=>[d("div",hA,[mA,d("span",gA,[d("a",{href:de(t).greasyforkUrl,class:"text-bold text-primary",target:"_blank",rel:"noreferrer noopener",title:"到Greasyfork查看"},[ce(we(de(t).name)+" ",1),d("small",null,"v"+we(de(t).version),1)],8,wA),ce(" "),d("small",null,"by "+we(de(t).author.name),1)]),d("div",{class:"ce-config-main-close",onClick:r},"关闭")]),d("div",yA,[Ce(de(F$),{ref_key:"refTabs",ref:s,options:{useUrlFragment:!1},onClicked:a,onChanged:u},{default:Ke(()=>[Ce(de(pn),{id:de(Jt).basic,name:de(fn).basic},{default:Ke(()=>[Ce(_k)]),_:1},8,["id","name"]),Ce(de(pn),{id:de(Jt).clouddrive,name:de(fn).clouddrive},{default:Ke(()=>[Ce(Hk)]),_:1},8,["id","name"]),Ce(de(pn),{id:de(Jt).list,name:de(fn).list},{default:Ke(()=>[Ce(c2)]),_:1},8,["id","name"]),Ce(de(pn),{id:de(Jt).search,name:de(fn).search},{default:Ke(()=>[Ce(w2)]),_:1},8,["id","name"]),Ce(de(pn),{id:de(Jt).menus,name:de(fn).menus},{default:Ke(()=>[Ce(cE)]),_:1},8,["id","name"]),Ce(de(pn),{id:de(Jt).searchMenus,name:de(fn).searchMenus},{default:Ke(()=>[Ce(RE)]),_:1},8,["id","name"]),Ce(de(pn),{id:de(Jt).playMenus,name:de(fn).playMenus},{default:Ke(()=>[Ce(QE)]),_:1},8,["id","name"]),Ce(de(pn),{id:de(Jt).offline,name:de(fn).offline},{default:Ke(()=>[Ce(ip)]),_:1},8,["id","name"]),Ce(de(pn),{id:de(Jt).tools,name:de(fn).tools},{default:Ke(()=>[Ce(eS)]),_:1},8,["id","name"]),Ce(de(pn),{id:de(Jt).about,name:de(fn).about},{default:Ke(()=>[Ce(fA)]),_:1},8,["id","name"])]),_:1},512)])]),_:1},8,["is-open"])])]),_:1}))}}),r5="",a5="";async function vA(){const{host:e}=location;!e.includes("115.com")||window.top===window.self&&(console.log("[Cloud115 Enhancer - main] running..."),_A(),xA())}async function _A(){console.log("[Cloud115 Enhancer - main] injectUI");const e="cloud115ConfigMain",t=document.createElement("div");t.id=e,document.body.appendChild(t),to(bA).mount(`#${e}`),na("设置",async()=>{window.postMessage({event:Mt.openConfig})}),na("扫码获取Cookie",async()=>{window.postMessage({event:Mt.openConfig,body:Jt.tools})}),$A()}async function xA(){const e=document.querySelector(".bottom-side .navigation-ceiling ul");if(!e){SA();return}const t=document.createElement("li"),n=document.createElement("a");n.href="javascript:;",n.style.textAlign="center",n.style.backgroundColor="#fefcea",n.style.padding="4px 10px 4px",n.addEventListener("click",ec),n.title="打开「115不大助手」设置",n.innerHTML='<i class="isn-setting"></i><span>不大助手</span>',t.appendChild(n),e.insertBefore(t,e.firstChild)}async function CA(){return!!document.querySelector("#js-login-box")}async function $A(){console.log("[handleLoginPage]"),await CA()&&(document.body.classList.add("ce-login-page"),kA())}async function kA(){console.log("[injectOpenConfigButtonOnLoginPage");const e=document.querySelector(".header .top-link a");if(!e){console.warn("[injectOpenConfigButtonOnLoginPage] '#js-login_box .top-link a' not found");return}const t=document.createElement("a");t.href="javascript:;",t.className="ce-entry",t.addEventListener("click",ec),t.title="打开「115不大助手」设置",t.innerHTML='<i class="isn-setting"></i><span>115不大助手</span>',e.insertAdjacentElement("beforebegin",t)}async function SA(){const e=document.querySelector(".sub-footer ul");if(!e)return;const t=document.createElement("li"),n=document.createElement("a");n.href="javascript:;",n.addEventListener("click",ec),n.title="打开「115不大助手」设置",n.innerHTML='<i class="isn-setting"></i><span>115不大助手</span>',t.appendChild(n),e.insertBefore(t,e.firstChild)}async function ec(){window.postMessage({event:Mt.openConfig})}const l5="";function Ln(e){return Array.isArray?Array.isArray(e):hh(e)==="[object Array]"}const EA=1/0;function AA(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-EA?"-0":t}function OA(e){return e==null?"":AA(e)}function hn(e){return typeof e=="string"}function fh(e){return typeof e=="number"}function IA(e){return e===!0||e===!1||PA(e)&&hh(e)=="[object Boolean]"}function ph(e){return typeof e=="object"}function PA(e){return ph(e)&&e!==null}function Ft(e){return e!=null}function tc(e){return!e.trim().length}function hh(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const c5="Extended search is not available",TA="Incorrect 'index' type",MA=e=>`Invalid value for key ${e}`,LA=e=>`Pattern length exceeds max of ${e}.`,BA=e=>`Missing ${e} property in key`,DA=e=>`Property 'weight' in key '${e}' must be a positive integer`,mh=Object.prototype.hasOwnProperty;class NA{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(o=>{let s=gh(o);this._keys.push(s),this._keyMap[s.id]=s,n+=s.weight}),this._keys.forEach(o=>{o.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function gh(e){let t=null,n=null,o=null,s=1,i=null;if(hn(e)||Ln(e))o=e,t=wh(e),n=nc(e);else{if(!mh.call(e,"name"))throw new Error(BA("name"));const r=e.name;if(o=r,mh.call(e,"weight")&&(s=e.weight,s<=0))throw new Error(DA(r));t=wh(r),n=nc(r),i=e.getFn}return{path:t,id:n,weight:s,src:o,getFn:i}}function wh(e){return Ln(e)?e:e.split(".")}function nc(e){return Ln(e)?e.join("."):e}function RA(e,t){let n=[],o=!1;const s=(i,r,a)=>{if(!!Ft(i))if(!r[a])n.push(i);else{let u=r[a];const f=i[u];if(!Ft(f))return;if(a===r.length-1&&(hn(f)||fh(f)||IA(f)))n.push(OA(f));else if(Ln(f)){o=!0;for(let p=0,h=f.length;p<h;p+=1)s(f[p],r,a+1)}else r.length&&s(f,r,a+1)}};return s(e,hn(t)?t.split("."):t,0),o?n:n[0]}var Te={...{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},...{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},...{location:0,threshold:.6,distance:100},...{useExtendedSearch:!1,getFn:RA,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const FA=/[^ ]+/g;function jA(e=1,t=3){const n=new Map,o=Math.pow(10,t);return{get(s){const i=s.match(FA).length;if(n.has(i))return n.get(i);const r=1/Math.pow(i,.5*e),a=parseFloat(Math.round(r*o)/o);return n.set(i,a),a},clear(){n.clear()}}}class oc{constructor({getFn:t=Te.getFn,fieldNormWeight:n=Te.fieldNormWeight}={}){this.norm=jA(n,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((n,o)=>{this._keysMap[n.id]=o})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,hn(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();hn(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,o=this.size();n<o;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(t,n){return t[this._keysMap[n]]}size(){return this.records.length}_addString(t,n){if(!Ft(t)||tc(t))return;let o={v:t,i:n,n:this.norm.get(t)};this.records.push(o)}_addObject(t,n){let o={i:n,$:{}};this.keys.forEach((s,i)=>{let r=s.getFn?s.getFn(t):this.getFn(t,s.path);if(!!Ft(r)){if(Ln(r)){let a=[];const u=[{nestedArrIndex:-1,value:r}];for(;u.length;){const{nestedArrIndex:f,value:p}=u.pop();if(!!Ft(p))if(hn(p)&&!tc(p)){let h={v:p,i:f,n:this.norm.get(p)};a.push(h)}else Ln(p)&&p.forEach((h,w)=>{u.push({nestedArrIndex:w,value:h})})}o.$[i]=a}else if(hn(r)&&!tc(r)){let a={v:r,n:this.norm.get(r)};o.$[i]=a}}}),this.records.push(o)}toJSON(){return{keys:this.keys,records:this.records}}}function yh(e,t,{getFn:n=Te.getFn,fieldNormWeight:o=Te.fieldNormWeight}={}){const s=new oc({getFn:n,fieldNormWeight:o});return s.setKeys(e.map(gh)),s.setSources(t),s.create(),s}function UA(e,{getFn:t=Te.getFn,fieldNormWeight:n=Te.fieldNormWeight}={}){const{keys:o,records:s}=e,i=new oc({getFn:t,fieldNormWeight:n});return i.setKeys(o),i.setIndexRecords(s),i}function Gr(e,{errors:t=0,currentLocation:n=0,expectedLocation:o=0,distance:s=Te.distance,ignoreLocation:i=Te.ignoreLocation}={}){const r=t/e.length;if(i)return r;const a=Math.abs(o-n);return s?r+a/s:a?1:r}function HA(e=[],t=Te.minMatchCharLength){let n=[],o=-1,s=-1,i=0;for(let r=e.length;i<r;i+=1){let a=e[i];a&&o===-1?o=i:!a&&o!==-1&&(s=i-1,s-o+1>=t&&n.push([o,s]),o=-1)}return e[i-1]&&i-o>=t&&n.push([o,i-1]),n}const Fo=32;function zA(e,t,n,{location:o=Te.location,distance:s=Te.distance,threshold:i=Te.threshold,findAllMatches:r=Te.findAllMatches,minMatchCharLength:a=Te.minMatchCharLength,includeMatches:u=Te.includeMatches,ignoreLocation:f=Te.ignoreLocation}={}){if(t.length>Fo)throw new Error(LA(Fo));const p=t.length,h=e.length,w=Math.max(0,Math.min(o,h));let C=i,x=w;const A=a>1||u,M=A?Array(h):[];let D;for(;(D=e.indexOf(t,x))>-1;){let ne=Gr(t,{currentLocation:D,expectedLocation:w,distance:s,ignoreLocation:f});if(C=Math.min(ne,C),x=D+p,A){let ae=0;for(;ae<p;)M[D+ae]=1,ae+=1}}x=-1;let O=[],I=1,H=p+h;const se=1<<p-1;for(let ne=0;ne<p;ne+=1){let ae=0,pe=H;for(;ae<pe;)Gr(t,{errors:ne,currentLocation:w+pe,expectedLocation:w,distance:s,ignoreLocation:f})<=C?ae=pe:H=pe,pe=Math.floor((H-ae)/2+ae);H=pe;let Ae=Math.max(1,w-pe+1),ge=r?h:Math.min(w+pe,h)+p,P=Array(ge+2);P[ge+1]=(1<<ne)-1;for(let Y=ge;Y>=Ae;Y-=1){let _e=Y-1,L=n[e.charAt(_e)];if(A&&(M[_e]=+!!L),P[Y]=(P[Y+1]<<1|1)&L,ne&&(P[Y]|=(O[Y+1]|O[Y])<<1|1|O[Y+1]),P[Y]&se&&(I=Gr(t,{errors:ne,currentLocation:_e,expectedLocation:w,distance:s,ignoreLocation:f}),I<=C)){if(C=I,x=_e,x<=w)break;Ae=Math.max(1,2*w-x)}}if(Gr(t,{errors:ne+1,currentLocation:w,expectedLocation:w,distance:s,ignoreLocation:f})>C)break;O=P}const j={isMatch:x>=0,score:Math.max(.001,I)};if(A){const ne=HA(M,a);ne.length?u&&(j.indices=ne):j.isMatch=!1}return j}function qA(e){let t={};for(let n=0,o=e.length;n<o;n+=1){const s=e.charAt(n);t[s]=(t[s]||0)|1<<o-n-1}return t}class bh{constructor(t,{location:n=Te.location,threshold:o=Te.threshold,distance:s=Te.distance,includeMatches:i=Te.includeMatches,findAllMatches:r=Te.findAllMatches,minMatchCharLength:a=Te.minMatchCharLength,isCaseSensitive:u=Te.isCaseSensitive,ignoreLocation:f=Te.ignoreLocation}={}){if(this.options={location:n,threshold:o,distance:s,includeMatches:i,findAllMatches:r,minMatchCharLength:a,isCaseSensitive:u,ignoreLocation:f},this.pattern=u?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const p=(w,C)=>{this.chunks.push({pattern:w,alphabet:qA(w),startIndex:C})},h=this.pattern.length;if(h>Fo){let w=0;const C=h%Fo,x=h-C;for(;w<x;)p(this.pattern.substr(w,Fo),w),w+=Fo;if(C){const A=h-Fo;p(this.pattern.substr(A),A)}}else p(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,includeMatches:o}=this.options;if(n||(t=t.toLowerCase()),this.pattern===t){let x={isMatch:!0,score:0};return o&&(x.indices=[[0,t.length-1]]),x}const{location:s,distance:i,threshold:r,findAllMatches:a,minMatchCharLength:u,ignoreLocation:f}=this.options;let p=[],h=0,w=!1;this.chunks.forEach(({pattern:x,alphabet:A,startIndex:M})=>{const{isMatch:D,score:O,indices:I}=zA(t,x,A,{location:s+M,distance:i,threshold:r,findAllMatches:a,minMatchCharLength:u,includeMatches:o,ignoreLocation:f});D&&(w=!0),h+=O,D&&I&&(p=[...p,...I])});let C={isMatch:w,score:w?h/this.chunks.length:1};return w&&o&&(C.indices=p),C}}class ro{constructor(t){this.pattern=t}static isMultiMatch(t){return vh(t,this.multiRegex)}static isSingleMatch(t){return vh(t,this.singleRegex)}search(){}}function vh(e,t){const n=e.match(t);return n?n[1]:null}class VA extends ro{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class WA extends ro{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const o=t.indexOf(this.pattern)===-1;return{isMatch:o,score:o?0:1,indices:[0,t.length-1]}}}class KA extends ro{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class GA extends ro{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class JA extends ro{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class YA extends ro{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class _h extends ro{constructor(t,{location:n=Te.location,threshold:o=Te.threshold,distance:s=Te.distance,includeMatches:i=Te.includeMatches,findAllMatches:r=Te.findAllMatches,minMatchCharLength:a=Te.minMatchCharLength,isCaseSensitive:u=Te.isCaseSensitive,ignoreLocation:f=Te.ignoreLocation}={}){super(t),this._bitapSearch=new bh(t,{location:n,threshold:o,distance:s,includeMatches:i,findAllMatches:r,minMatchCharLength:a,isCaseSensitive:u,ignoreLocation:f})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class xh extends ro{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,o;const s=[],i=this.pattern.length;for(;(o=t.indexOf(this.pattern,n))>-1;)n=o+i,s.push([o,n-1]);const r=!!s.length;return{isMatch:r,score:r?0:1,indices:s}}}const sc=[VA,xh,KA,GA,YA,JA,WA,_h],Ch=sc.length,XA=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,QA="|";function ZA(e,t={}){return e.split(QA).map(n=>{let o=n.trim().split(XA).filter(i=>i&&!!i.trim()),s=[];for(let i=0,r=o.length;i<r;i+=1){const a=o[i];let u=!1,f=-1;for(;!u&&++f<Ch;){const p=sc[f];let h=p.isMultiMatch(a);h&&(s.push(new p(h,t)),u=!0)}if(!u)for(f=-1;++f<Ch;){const p=sc[f];let h=p.isSingleMatch(a);if(h){s.push(new p(h,t));break}}}return s})}const eO=new Set([_h.type,xh.type]);class tO{constructor(t,{isCaseSensitive:n=Te.isCaseSensitive,includeMatches:o=Te.includeMatches,minMatchCharLength:s=Te.minMatchCharLength,ignoreLocation:i=Te.ignoreLocation,findAllMatches:r=Te.findAllMatches,location:a=Te.location,threshold:u=Te.threshold,distance:f=Te.distance}={}){this.query=null,this.options={isCaseSensitive:n,includeMatches:o,minMatchCharLength:s,findAllMatches:r,ignoreLocation:i,location:a,threshold:u,distance:f},this.pattern=n?t:t.toLowerCase(),this.query=ZA(this.pattern,this.options)}static condition(t,n){return n.useExtendedSearch}searchIn(t){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:o,isCaseSensitive:s}=this.options;t=s?t:t.toLowerCase();let i=0,r=[],a=0;for(let u=0,f=n.length;u<f;u+=1){const p=n[u];r.length=0,i=0;for(let h=0,w=p.length;h<w;h+=1){const C=p[h],{isMatch:x,indices:A,score:M}=C.search(t);if(x){if(i+=1,a+=M,o){const D=C.constructor.type;eO.has(D)?r=[...r,...A]:r.push(A)}}else{a=0,i=0,r.length=0;break}}if(i){let h={isMatch:!0,score:a/i};return o&&(h.indices=r),h}}return{isMatch:!1,score:1}}}const ic=[];function nO(...e){ic.push(...e)}function rc(e,t){for(let n=0,o=ic.length;n<o;n+=1){let s=ic[n];if(s.condition(e,t))return new s(e,t)}return new bh(e,t)}const Jr={AND:"$and",OR:"$or"},ac={PATH:"$path",PATTERN:"$val"},lc=e=>!!(e[Jr.AND]||e[Jr.OR]),oO=e=>!!e[ac.PATH],sO=e=>!Ln(e)&&ph(e)&&!lc(e),$h=e=>({[Jr.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function kh(e,t,{auto:n=!0}={}){const o=s=>{let i=Object.keys(s);const r=oO(s);if(!r&&i.length>1&&!lc(s))return o($h(s));if(sO(s)){const u=r?s[ac.PATH]:i[0],f=r?s[ac.PATTERN]:s[u];if(!hn(f))throw new Error(MA(u));const p={keyId:nc(u),pattern:f};return n&&(p.searcher=rc(f,t)),p}let a={children:[],operator:i[0]};return i.forEach(u=>{const f=s[u];Ln(f)&&f.forEach(p=>{a.children.push(o(p))})}),a};return lc(e)||(e=$h(e)),o(e)}function iO(e,{ignoreFieldNorm:t=Te.ignoreFieldNorm}){e.forEach(n=>{let o=1;n.matches.forEach(({key:s,norm:i,score:r})=>{const a=s?s.weight:null;o*=Math.pow(r===0&&a?Number.EPSILON:r,(a||1)*(t?1:i))}),n.score=o})}function rO(e,t){const n=e.matches;t.matches=[],Ft(n)&&n.forEach(o=>{if(!Ft(o.indices)||!o.indices.length)return;const{indices:s,value:i}=o;let r={indices:s,value:i};o.key&&(r.key=o.key.src),o.idx>-1&&(r.refIndex=o.idx),t.matches.push(r)})}function aO(e,t){t.score=e.score}function lO(e,t,{includeMatches:n=Te.includeMatches,includeScore:o=Te.includeScore}={}){const s=[];return n&&s.push(rO),o&&s.push(aO),e.map(i=>{const{idx:r}=i,a={item:t[r],refIndex:r};return s.length&&s.forEach(u=>{u(i,a)}),a})}class ds{constructor(t,n={},o){this.options={...Te,...n},this.options.useExtendedSearch,this._keyStore=new NA(this.options.keys),this.setCollection(t,o)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof oc))throw new Error(TA);this._myIndex=n||yh(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){!Ft(t)||(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let o=0,s=this._docs.length;o<s;o+=1){const i=this._docs[o];t(i,o)&&(this.removeAt(o),o-=1,s-=1,n.push(i))}return n}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:n=-1}={}){const{includeMatches:o,includeScore:s,shouldSort:i,sortFn:r,ignoreFieldNorm:a}=this.options;let u=hn(t)?hn(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return iO(u,{ignoreFieldNorm:a}),i&&u.sort(r),fh(n)&&n>-1&&(u=u.slice(0,n)),lO(u,this._docs,{includeMatches:o,includeScore:s})}_searchStringList(t){const n=rc(t,this.options),{records:o}=this._myIndex,s=[];return o.forEach(({v:i,i:r,n:a})=>{if(!Ft(i))return;const{isMatch:u,score:f,indices:p}=n.searchIn(i);u&&s.push({item:i,idx:r,matches:[{score:f,value:i,norm:a,indices:p}]})}),s}_searchLogical(t){const n=kh(t,this.options),o=(a,u,f)=>{if(!a.children){const{keyId:h,searcher:w}=a,C=this._findMatches({key:this._keyStore.get(h),value:this._myIndex.getValueForItemAtKeyId(u,h),searcher:w});return C&&C.length?[{idx:f,item:u,matches:C}]:[]}const p=[];for(let h=0,w=a.children.length;h<w;h+=1){const C=a.children[h],x=o(C,u,f);if(x.length)p.push(...x);else if(a.operator===Jr.AND)return[]}return p},s=this._myIndex.records,i={},r=[];return s.forEach(({$:a,i:u})=>{if(Ft(a)){let f=o(n,a,u);f.length&&(i[u]||(i[u]={idx:u,item:a,matches:[]},r.push(i[u])),f.forEach(({matches:p})=>{i[u].matches.push(...p)}))}}),r}_searchObjectList(t){const n=rc(t,this.options),{keys:o,records:s}=this._myIndex,i=[];return s.forEach(({$:r,i:a})=>{if(!Ft(r))return;let u=[];o.forEach((f,p)=>{u.push(...this._findMatches({key:f,value:r[p],searcher:n}))}),u.length&&i.push({idx:a,item:r,matches:u})}),i}_findMatches({key:t,value:n,searcher:o}){if(!Ft(n))return[];let s=[];if(Ln(n))n.forEach(({v:i,i:r,n:a})=>{if(!Ft(i))return;const{isMatch:u,score:f,indices:p}=o.searchIn(i);u&&s.push({score:f,key:t,value:i,idx:r,norm:a,indices:p})});else{const{v:i,n:r}=n,{isMatch:a,score:u,indices:f}=o.searchIn(i);a&&s.push({score:u,key:t,value:i,norm:r,indices:f})}return s}}ds.version="7.0.0",ds.createIndex=yh,ds.parseIndex=UA,ds.config=Te,ds.parseQuery=kh,nO(tO);const cO={class:"ce-goto-input-wrap"},uO=["disabled"],dO=["disabled"],fO={class:"ce-goto-sug"},pO=["onMousedown","sid"],hO={class:"ce-goto-sug-index"},mO={class:"ce-goto-sug-prefix"},gO=d("span",{class:"ce-goto-sep"},"/",-1),wO={class:"ce-goto-sug-name"},yO=De({__name:"GotoPath",setup(e){const t=he(!1),n=he(!1),o=he(null),s=he(null),i=he(""),r=he([]),a=he(!1),u=Zn(()=>i.value.trim().length>0);let f="";Rt(async()=>{var P;t.value=!0,(P=s.value)==null||P.focus(),window.addEventListener("message",async ie=>{if(ie.data.event===Mt.listRendered){const _e=await zt(!1);_e!==f&&(r.value=[],await ne(!1)),f=_e}})});async function p(P){if(console.log("[handleKeydown]",P.key),Ru(P),P.key==="Enter"){H.value>-1?pe():await Ae(i.value);return}if(P.key==="Escape"){await ge();return}["ArrowUp","ArrowDown"].includes(P.key)?se(P):h(P)}const h=Dt(async P=>{w()},200);async function w(){try{r.value=[],await ne(!1);const P={keyword:"",parentId:await zt(!1),parentPath:await Sa(),isSubOfCurrent:!0};console.log("[getSug] searchData:",P);const ie=await O(P,!1);if(console.log("[searchData] items:",ie),!ie.length){ue({icon:"warning",text:"没有匹配的建议",timer:1500,position:"top-right"});return}const Y=await C(ie,P);console.log("[searchData] sugs:",Y),r.value=Y,H.value=-1,await ne(Y.length>0)}catch(P){console.warn(P),await ne(!1),ue({icon:"error",text:P.toString(),timer:2e3,position:"top-right"})}}async function C(P,ie){const Y=[];for(let N=0;N<P.length;N++){const me=P[N];Y.push({id:me.id,prefix:ie.parentPath==="/"?"":ie.parentPath,name:me.name,active:!1})}const _e=i.value.trim();if(!_e)return Y;const L=/^(\.\/)?[^\/]+/.test(_e),G=Su(_e,"../");if(console.log("[toSug] isSubOfCurrent:",L,"kwParentPath:",G),L||G===ie.parentPath){const N=new ds(Y,{keys:["name"],threshold:.6,includeScore:!0});let me=_e;if(G===ie.parentPath){const Fe=_e.split(/[\\/]/).filter(Boolean);me=Fe[Fe.length-1]}const ke=N.search(me);console.log("[toSug] fuse res:",ke);let Me=!1;return ke.forEach(Fe=>{Fe.score===void 0?(console.warn("[toSug] r.score is undefined:",Fe),Me=!0,Fe.score=0):Fe.score!==void 0&&isNaN(Fe.score)&&(console.warn("[toSug] r.score is NaN:",Fe),Me=!0,Fe.score=0)}),Me&&ke.sort((Fe,Qe)=>Fe.score-Qe.score),ke.map(Fe=>Fe.item)}return Y}const x=new Map,A=new Map;async function M(P){return x.get(P)||!1}async function D(P,ie){x.set(P,ie)}async function O(P,ie){const Y=A.get(P.parentPath);if(Y)return console.log(`[getSubDirs] path "${P.parentPath}" is cached`),Y.items;if(await M(P.parentPath))return console.warn(`[getSubDirs] path "${P.parentPath}" is loading`),[];await D(P.parentPath,!0);try{const _e=$s({cid:P.parentId,limit:1150,show_dir:aa.true}),L=await _u(_e);if(!L.count)return[];const G=[];for(let N=0;N<L.data.length;N++){const me=await Os(L.data[N]);if(me.isDir)G.push(me);else if(ie)break}return A.set(P.parentPath,{count:G.length,dirPath:P.parentPath,dirId:P.parentId,items:G}),G}catch(_e){console.warn(_e)}finally{await D(P.parentPath,!1)}return[]}async function I(P,ie){console.log("[handleSugClick]",P,ie);const Y=Mi([P.prefix,P.name]);console.log("[handleSugClick] path:",Y),await Ae(Y)}const H=he(-1);async function se(P){var L;console.log("[navigateSug]",P.key),P.preventDefault(),P.stopPropagation();let ie=H.value;if(P.key==="ArrowUp")ie--;else if(P.key==="ArrowDown")ie++;else if(P.key==="Enter"){const G=r.value[H.value];G&&await I(G,P);return}else return;ie<0?ie=0:ie>=r.value.length&&(ie=r.value.length-1),H.value=ie,r.value.forEach((G,N)=>{G.active=N===ie});const Y=r.value[ie];if(!Y)return;const _e=(L=o.value)==null?void 0:L.querySelector(`[sid="${Y.id}"]`);_e==null||_e.scrollIntoView()}async function j(){var P;i.value="",(P=s.value)==null||P.focus(),await w()}async function ne(P){var ie;a.value=P,P&&((ie=s.value)==null||ie.focus())}async function ae(P){if(Jg(P))return"0";const ie=await Sa();return P=Li(P,po.unix),P=Su(ie,P,po.unix),await Lu(P)}async function pe(){const P=r.value[H.value];if(!P)return;const ie=Mi([P.prefix,P.name],po.unix);console.log("[gotoByCurrentSug] path:",ie),await Ae(ie)}async function Ae(P){var ie;if(!n.value){P=P.trim(),ue({text:"正在获取路径信息...",timer:0,position:"top-right"}),fe.showLoading(),n.value=!0;try{const Y=await ae(P);unsafeWindow.Main.GotoDir(1,Y,0,""),ue({icon:"success",text:"获取路径信息成功,现在打开...",timer:1e3,position:"top-right"}),(ie=s.value)==null||ie.focus(),r.value=[],H.value=-1}catch(Y){fe.fire({icon:"error",title:"跳转失败",text:Y.message})}finally{fe.hideLoading(),n.value=!1}}}async function ge(){if(H.value>-1)r.value.forEach(P=>P.active=!1),H.value=-1,await ne(!1);else{const P=document.querySelector("#ceGotoPathApp");P==null||P.style.setProperty("display","none");const ie=document.querySelector(".ce-goto-path-active");ie==null||ie.classList.remove("ce-goto-path-active"),t.value=!1}}return(P,ie)=>(K(),Q("div",{ref_key:"refMain",ref:o,class:Ye(["ce-goto-main",{"ce-goto-sug-shown":a.value}])},[d("div",cO,[ee(d("input",{ref_key:"refInput",ref:s,"onUpdate:modelValue":ie[0]||(ie[0]=Y=>i.value=Y),class:"ce-goto-input",placeholder:"回车确认跳转 | Esc关闭 | 可搜索当前目录的子目录显示下拉列表,上下方向键选择",onKeydown:p},null,544),[[ze,i.value]]),d("button",{type:"button",class:"ce-goto-input-btn","data-cmd":"clear",onClick:j,title:"清空输入框",disabled:!de(u)},"清空",8,uO),d("button",{type:"button",class:"ce-goto-input-btn","data-cmd":"toggle",onClick:ie[1]||(ie[1]=Y=>ne(!1)),title:"收起建议列表",disabled:!a.value},"收起",8,dO)]),d("div",fO,[(K(!0),Q(Ne,null,nt(r.value,(Y,_e)=>(K(),Q("div",{key:_e,class:Ye(["ce-goto-sug-item",{active:Y.active}]),onMousedown:qv(L=>I(Y,L),["left","stop","prevent"]),sid:Y.id},[d("span",hO,we(_e+1),1),d("span",mO,we(Y.prefix),1),gO,d("span",wO,we(Y.name),1)],42,pO))),128))])],2))}}),h5="";async function bO(){const e=await kr(),{host:t,search:n}=location;!/115\.com$/.test(t)||(console.log("[List] running...",e),(n.includes("ct=file")||n.includes("mode=search"))&&h_(),vO(e))}async function vO(e){const{host:t,search:n}=location;if(!n.includes("ct=file"))return;const o=await vs("#js_top_header_file_path_box");e.showGotoButtonOnPathBar&&xO(e,o),e.showCopyButtonOnPathBar&&_O(e,o)}async function _O(e,t){const n="ceCopyPath";let o=t.querySelector(`#${n}`);const s=async()=>{const r=await Sa();Yt(r),ue({icon:"success",text:"路径已复制",timer:1e3,position:"top-right"})};o||(o=await(async()=>{const r=document.createElement("button");return r.className="pure-button button-mini ce-path-btn",r.id=n,r.title="复制路径",r.innerHTML="<span>复制</span>",r.addEventListener("click",s),r})(),t.prepend(o))}async function xO(e,t){const n=t.querySelector(".top-file-path"),o="ceGotoPath";let s=t.querySelector(`#${o}`);const i=to(yO),r="ceGotoPathApp",a=async()=>{await u()},u=async()=>{if(t.classList.toggle("ce-goto-path-active"),t.classList.contains("ce-goto-path-active"))await f();else{const w=t.querySelector(`#${r}`);w&&(w.style.display="none")}},f=async()=>{let w=t.querySelector(`#${r}`);w||(w=await h(),n.after(w)),w.querySelector(".ce-goto-main")?setTimeout(()=>{const x=document.querySelector(".ce-goto-input");x==null||x.focus()},200):i.mount(w),w.style.display="block"},p=async()=>{const w=document.createElement("button");return w.className="pure-button button-mini ce-path-btn text-primary",w.id=o,w.title=`
【这是一个实验功能】
跳转到指定路径。使用:
- 空白、单个斜杠: 根目录
- 相对路径1: 开头不带斜杠,当前目录下的子路径
- 相对路径2: 开头带有../,当前目录的上级目录,可以多级
- 绝对路径: 开头带有斜杠,从根目录开始的路径
斜杠风格不限,支持模糊搜索当前目录的子目录。
回车键跳转,Esc键关闭输入框。`,w.innerHTML="<span>跳转</span>",w.addEventListener("click",a),w},h=async()=>{const w=document.createElement("div");return w.id=r,w.style.width="50%",w};s||(s=await p(),t.prepend(s))}const m5="";async function CO(){const e=await ih();!await Iu()||(console.log("[Search] running...",e),SO(),$O(e))}async function $O(e){const t=await vs(".top-file-path");e.showSelectTargetButtonOnPathBar&&kO(e,t)}async function kO(e,t){console.log("[showSelectTargetButtonOnPathBar]");const n="ce-btn-select";let o=t.querySelector(`.${n}`);const s=async()=>{unsafeWindow.parent.Core.FileSelectDG.Open((r,a)=>{console.log("[Core.FileSelectDG.Open]",r,a);const u=r[r.length-1],f=document.createElement("a");f.href="javascript:;",f.className="dir-tab",f.textContent=u.cname,f.style.display="none",f.setAttribute("search_btn_file",u.cid),t.querySelector(".file-path").append(f),f.click()},{select:1,nf:1,show_record:0,show_copy:1,btn_txt:"在该目录下搜索",select_txt:"搜索"})};o||(o=await(async()=>{const r=document.createElement("a");return r.className=`dir-tab ${n}`,r.href="javascript:;",r.title="选择目录",r.textContent="选择目录",r.addEventListener("click",s),r})(),t.append(o))}async function SO(e){document.body.classList.add("ce-search-page"),parent.document.body.classList.add("ce-search-page")}const g5="";async function EO(){console.log("[Tools] running...")}location.host==="115.com"&&(window.COMMONHEADERUSERINFO=window.COMMONHEADERUSERINFO||{}),(async()=>(console.log("Cloud115 Enhancer launched!"),z_(),nC(),T$(),B$(),bO(),CO(),EO(),vA()))()})();