Greasy Fork

Greasy Fork is available in English.

115不大助手 (full)

Make 115 taerg again!

目前为 2023-09-10 提交的版本。查看 最新版本

// ==UserScript==
// @name         115不大助手 (full)
// @namespace    com.cloud115.enhancer
// @version      0.5.8
// @author       生瓜太保
// @description  Make 115 taerg again!
// @license      MIT
// @homepage     http://greasyfork.icu/zh-CN/scripts/456431-115不大助手?locale_override=1
// @supportURL   https://github.com
// @match        https://*.115.com/*
// @match        https://115.com/*
// @connect      *
// @grant        GM_addStyle
// @grant        GM_deleteValue
// @grant        GM_getValue
// @grant        GM_openInTab
// @grant        GM_setClipboard
// @grant        GM_setValue
// @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}.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-tips{background:#eee;border-radius:4px;padding:4px;font-size:12px;color:#595959;margin-bottom:10px}.ce-config input[type=checkbox]{width:18px;height:18px;cursor:pointer}.tabs-component-tabs{border:solid 1px #ddd;border-radius:6px;margin-bottom:5px}@media (min-width: 700px){.tabs-component-tabs{border:0;align-items:stretch;display:flex;justify-content:flex-start;margin-bottom:-1px}}.tabs-component-tab{color:#999;font-size:14px;font-weight:600;margin-right:0;list-style:none}.tabs-component-tab:not(:last-child){border-bottom:dotted 1px #ddd}.tabs-component-tab:hover{color:#666}.tabs-component-tab.is-active{color:#000}.tabs-component-tab.is-disabled *{color:#cdcdcd;cursor:not-allowed!important}@media (min-width: 700px){.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-tab.is-active{border-bottom:solid 1px #fff;z-index:2;transform:translateY(0)}}.tabs-component-tab-a{align-items:center;color:inherit;display:flex;padding:.75em 1em;text-decoration:none}.tabs-component-panels{padding:1em 0}@media (min-width: 700px){.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-btn{cursor:pointer;background:#e1ecf4;border-radius:3px;border:1px solid #7aa7c7;padding:4px 8px;color:#39739d}.tabs-component-btn:hover{background-color:#b3d3ea;color:#2c5777}.tabs-component-btn:active{background-color:#a0c7e4;box-shadow:none;color:#2c5777}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:hover{background-color:#f3e882}.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:-250%;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}div#js_operate_box.only-icon li[menu] span{display:none}.list-contents{padding-bottom:300px}.ce-offline-config .ce-tips{margin-top:20px;margin-left:56px}.ce-offline-config .pure-form-message{margin-left:56px}.cloud115-eh-offline-exporter{position:absolute;left:100px;top:62px;background:#f4f2ff;padding:6px 10px;border-radius:4px}.cloud115-eh-offline-exporter button{margin-right:6px}.offline-exporter-config-form{width:550px;padding:10px}.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:77px}.cloud115-page-offline #js-warp li .ce-checkbox{width:30px}.cloud115-page-offline #js-warp li .ce-checkbox input{display:block!important;width:20px;height:20px;cursor:pointer}.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)}.ce-basic-config .pure-form-message{margin-left:82px}.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-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-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-custom-url{border-radius:4px;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-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}
`);

var v$=Object.defineProperty;var _$=(wo,yn,yo)=>yn in wo?v$(wo,yn,{enumerable:!0,configurable:!0,writable:!0,value:yo}):wo[yn]=yo;var Ce=(wo,yn,yo)=>(_$(wo,typeof yn!="symbol"?yn+"":yn,yo),yo);(function(){"use strict";const wo="",yn="",yo="",x$="",C$="",$$="",E$="";var bo=window,ar=(()=>bo.GM_setValue)(),Td=(()=>bo.GM_deleteValue)(),Md=(()=>bo.GM_openInTab)(),Za=(()=>bo.GM_registerMenuCommand)(),Bi=(()=>bo.GM_setClipboard)(),Li=(()=>bo.GM_getValue)(),bn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Qa={exports:{}};/*!
* sweetalert2 v11.7.2
* Released under the MIT License.
*/(function(e,t){(function(n,o){e.exports=o()})(bn,function(){var n={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const o="swal2-",i=a=>{const l={};for(const m in a)l[a[m]]=o+a[m];return l},s=i(["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=i(["success","warning","info","question","error"]),c="SweetAlert2:",u=a=>{const l=[];for(let m=0;m<a.length;m++)l.indexOf(a[m])===-1&&l.push(a[m]);return l},p=a=>a.charAt(0).toUpperCase()+a.slice(1),f=a=>{console.warn(`${c} ${typeof a=="object"?a.join(" "):a}`)},h=a=>{console.error(`${c} ${a}`)},y=[],x=a=>{y.includes(a)||(y.push(a),f(a))},k=(a,l)=>{x(`"${a}" is deprecated and will be removed in the next major release. Please use "${l}" instead.`)},O=a=>typeof a=="function"?a():a,z=a=>a&&typeof a.toPromise=="function",G=a=>z(a)?a.toPromise():Promise.resolve(a),D=a=>a&&Promise.resolve(a)===a,j=()=>document.body.querySelector(`.${s.container}`),Z=a=>{const l=j();return l?l.querySelector(a):null},ne=a=>Z(`.${a}`),ee=()=>ne(s.popup),Me=()=>ne(s.icon),Ee=()=>ne(s["icon-content"]),Se=()=>ne(s.title),Pe=()=>ne(s["html-container"]),fe=()=>ne(s.image),te=()=>ne(s["progress-steps"]),xe=()=>ne(s["validation-message"]),oe=()=>Z(`.${s.actions} .${s.confirm}`),Re=()=>Z(`.${s.actions} .${s.cancel}`),M=()=>Z(`.${s.actions} .${s.deny}`),W=()=>ne(s["input-label"]),B=()=>Z(`.${s.loader}`),ce=()=>ne(s.actions),we=()=>ne(s.footer),Oe=()=>ne(s["timer-progress-bar"]),Ge=()=>ne(s.close),Je=`
  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
`,At=()=>{const a=Array.from(ee().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((m,v)=>{const T=parseInt(m.getAttribute("tabindex")),pe=parseInt(v.getAttribute("tabindex"));return T>pe?1:T<pe?-1:0}),l=Array.from(ee().querySelectorAll(Je)).filter(m=>m.getAttribute("tabindex")!=="-1");return u(a.concat(l)).filter(m=>L(m))},Ot=()=>Xe(document.body,s.shown)&&!Xe(document.body,s["toast-shown"])&&!Xe(document.body,s["no-backdrop"]),wn=()=>ee()&&Xe(ee(),s.toast),wt=()=>ee().hasAttribute("data-loading"),yt={previousBodyPadding:null},lt=(a,l)=>{if(a.textContent="",l){const v=new DOMParser().parseFromString(l,"text/html");Array.from(v.querySelector("head").childNodes).forEach(T=>{a.appendChild(T)}),Array.from(v.querySelector("body").childNodes).forEach(T=>{T instanceof HTMLVideoElement||T instanceof HTMLAudioElement?a.appendChild(T.cloneNode(!0)):a.appendChild(T)})}},Xe=(a,l)=>{if(!l)return!1;const m=l.split(/\s+/);for(let v=0;v<m.length;v++)if(!a.classList.contains(m[v]))return!1;return!0},Hn=(a,l)=>{Array.from(a.classList).forEach(m=>{!Object.values(s).includes(m)&&!Object.values(r).includes(m)&&!Object.values(l.showClass).includes(m)&&a.classList.remove(m)})},at=(a,l,m)=>{if(Hn(a,l),l.customClass&&l.customClass[m]){if(typeof l.customClass[m]!="string"&&!l.customClass[m].forEach){f(`Invalid type of customClass.${m}! Expected string or iterable object, got "${typeof l.customClass[m]}"`);return}P(a,l.customClass[m])}},b=(a,l)=>{if(!l)return null;switch(l){case"select":case"textarea":case"file":return a.querySelector(`.${s.popup} > .${s[l]}`);case"checkbox":return a.querySelector(`.${s.popup} > .${s.checkbox} input`);case"radio":return a.querySelector(`.${s.popup} > .${s.radio} input:checked`)||a.querySelector(`.${s.popup} > .${s.radio} input:first-child`);case"range":return a.querySelector(`.${s.popup} > .${s.range} input`);default:return a.querySelector(`.${s.popup} > .${s.input}`)}},S=a=>{if(a.focus(),a.type!=="file"){const l=a.value;a.value="",a.value=l}},I=(a,l,m)=>{!a||!l||(typeof l=="string"&&(l=l.split(/\s+/).filter(Boolean)),l.forEach(v=>{Array.isArray(a)?a.forEach(T=>{m?T.classList.add(v):T.classList.remove(v)}):m?a.classList.add(v):a.classList.remove(v)}))},P=(a,l)=>{I(a,l,!0)},R=(a,l)=>{I(a,l,!1)},J=(a,l)=>{const m=Array.from(a.children);for(let v=0;v<m.length;v++){const T=m[v];if(T instanceof HTMLElement&&Xe(T,l))return T}},X=(a,l,m)=>{m===`${parseInt(m)}`&&(m=parseInt(m)),m||parseInt(m)===0?a.style[l]=typeof m=="number"?`${m}px`:m:a.style.removeProperty(l)},U=function(a){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";a.style.display=l},V=a=>{a.style.display="none"},q=(a,l,m,v)=>{const T=a.querySelector(l);T&&(T.style[m]=v)},ie=function(a,l){let m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";l?U(a,m):V(a)},L=a=>!!(a&&(a.offsetWidth||a.offsetHeight||a.getClientRects().length)),se=()=>!L(oe())&&!L(M())&&!L(Re()),d=a=>a.scrollHeight>a.clientHeight,w=a=>{const l=window.getComputedStyle(a),m=parseFloat(l.getPropertyValue("animation-duration")||"0"),v=parseFloat(l.getPropertyValue("transition-duration")||"0");return m>0||v>0},_=function(a){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const m=Oe();L(m)&&(l&&(m.style.transition="none",m.style.width="100%"),setTimeout(()=>{m.style.transition=`width ${a/1e3}s linear`,m.style.width="0%"},10))},C=()=>{const a=Oe(),l=parseInt(window.getComputedStyle(a).width);a.style.removeProperty("transition"),a.style.width="100%";const m=parseInt(window.getComputedStyle(a).width),v=l/m*100;a.style.width=`${v}%`},A=100,E={},N=()=>{E.previousActiveElement instanceof HTMLElement?(E.previousActiveElement.focus(),E.previousActiveElement=null):document.body&&document.body.focus()},F=a=>new Promise(l=>{if(!a)return l();const m=window.scrollX,v=window.scrollY;E.restoreFocusTimeout=setTimeout(()=>{N(),l()},A),window.scrollTo(m,v)}),K=()=>typeof window>"u"||typeof document>"u",me=`
 <div aria-labelledby="${s.title}" aria-describedby="${s["html-container"]}" class="${s.popup}" tabindex="-1">
   <button type="button" class="${s.close}"></button>
   <ul class="${s["progress-steps"]}"></ul>
   <div class="${s.icon}"></div>
   <img class="${s.image}" />
   <h2 class="${s.title}" id="${s.title}"></h2>
   <div class="${s["html-container"]}" id="${s["html-container"]}"></div>
   <input class="${s.input}" />
   <input type="file" class="${s.file}" />
   <div class="${s.range}">
     <input type="range" />
     <output></output>
   </div>
   <select class="${s.select}"></select>
   <div class="${s.radio}"></div>
   <label for="${s.checkbox}" class="${s.checkbox}">
     <input type="checkbox" />
     <span class="${s.label}"></span>
   </label>
   <textarea class="${s.textarea}"></textarea>
   <div class="${s["validation-message"]}" id="${s["validation-message"]}"></div>
   <div class="${s.actions}">
     <div class="${s.loader}"></div>
     <button type="button" class="${s.confirm}"></button>
     <button type="button" class="${s.deny}"></button>
     <button type="button" class="${s.cancel}"></button>
   </div>
   <div class="${s.footer}"></div>
   <div class="${s["timer-progress-bar-container"]}">
     <div class="${s["timer-progress-bar"]}"></div>
   </div>
 </div>
`.replace(/(^|\n)\s*/g,""),he=()=>{const a=j();return a?(a.remove(),R([document.documentElement,document.body],[s["no-backdrop"],s["toast-shown"],s["has-column"]]),!0):!1},le=()=>{E.currentInstance.resetValidationMessage()},Be=()=>{const a=ee(),l=J(a,s.input),m=J(a,s.file),v=a.querySelector(`.${s.range} input`),T=a.querySelector(`.${s.range} output`),pe=J(a,s.select),ze=a.querySelector(`.${s.checkbox} input`),Pt=J(a,s.textarea);l.oninput=le,m.onchange=le,pe.onchange=le,ze.onchange=le,Pt.oninput=le,v.oninput=()=>{le(),T.value=v.value},v.onchange=()=>{le(),T.value=v.value}},bt=a=>typeof a=="string"?document.querySelector(a):a,ft=a=>{const l=ee();l.setAttribute("role",a.toast?"alert":"dialog"),l.setAttribute("aria-live",a.toast?"polite":"assertive"),a.toast||l.setAttribute("aria-modal","true")},Ai=a=>{window.getComputedStyle(a).direction==="rtl"&&P(j(),s.rtl)},Oi=a=>{const l=he();if(K()){h("SweetAlert2 requires document to initialize");return}const m=document.createElement("div");m.className=s.container,l&&P(m,s["no-transition"]),lt(m,me);const v=bt(a.target);v.appendChild(m),ft(a),Ai(v),Be()},Ha=(a,l)=>{a instanceof HTMLElement?l.appendChild(a):typeof a=="object"?Xx(a,l):a&&lt(l,a)},Xx=(a,l)=>{a.jquery?Zx(l,a):lt(l,a.toString())},Zx=(a,l)=>{if(a.textContent="",0 in l)for(let m=0;m in l;m++)a.appendChild(l[m].cloneNode(!0));else a.appendChild(l.cloneNode(!0))},Pi=(()=>{if(K())return!1;const a=document.createElement("div"),l={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const m in l)if(Object.prototype.hasOwnProperty.call(l,m)&&typeof a.style[m]<"u")return l[m];return!1})(),Qx=()=>{const a=document.createElement("div");a.className=s["scrollbar-measure"],document.body.appendChild(a);const l=a.getBoundingClientRect().width-a.clientWidth;return document.body.removeChild(a),l},eC=(a,l)=>{const m=ce(),v=B();!l.showConfirmButton&&!l.showDenyButton&&!l.showCancelButton?V(m):U(m),at(m,l,"actions"),tC(m,v,l),lt(v,l.loaderHtml),at(v,l,"loader")};function tC(a,l,m){const v=oe(),T=M(),pe=Re();Ua(v,"confirm",m),Ua(T,"deny",m),Ua(pe,"cancel",m),nC(v,T,pe,m),m.reverseButtons&&(m.toast?(a.insertBefore(pe,v),a.insertBefore(T,v)):(a.insertBefore(pe,l),a.insertBefore(T,l),a.insertBefore(v,l)))}function nC(a,l,m,v){if(!v.buttonsStyling){R([a,l,m],s.styled);return}P([a,l,m],s.styled),v.confirmButtonColor&&(a.style.backgroundColor=v.confirmButtonColor,P(a,s["default-outline"])),v.denyButtonColor&&(l.style.backgroundColor=v.denyButtonColor,P(l,s["default-outline"])),v.cancelButtonColor&&(m.style.backgroundColor=v.cancelButtonColor,P(m,s["default-outline"]))}function Ua(a,l,m){ie(a,m[`show${p(l)}Button`],"inline-block"),lt(a,m[`${l}ButtonText`]),a.setAttribute("aria-label",m[`${l}ButtonAriaLabel`]),a.className=s[l],at(a,m,`${l}Button`),P(a,m[`${l}ButtonClass`])}const oC=(a,l)=>{const m=Ge();lt(m,l.closeButtonHtml),at(m,l,"closeButton"),ie(m,l.showCloseButton),m.setAttribute("aria-label",l.closeButtonAriaLabel)},iC=(a,l)=>{const m=j();!m||(sC(m,l.backdrop),rC(m,l.position),aC(m,l.grow),at(m,l,"container"))};function sC(a,l){typeof l=="string"?a.style.background=l:l||P([document.documentElement,document.body],s["no-backdrop"])}function rC(a,l){l in s?P(a,s[l]):(f('The "position" parameter is not valid, defaulting to "center"'),P(a,s.center))}function aC(a,l){if(l&&typeof l=="string"){const m=`grow-${l}`;m in s&&P(a,s[m])}}const lC=["input","file","range","select","radio","checkbox","textarea"],cC=(a,l)=>{const m=ee(),v=n.innerParams.get(a),T=!v||l.input!==v.input;lC.forEach(pe=>{const ze=J(m,s[pe]);dC(pe,l.inputAttributes),ze.className=s[pe],T&&V(ze)}),l.input&&(T&&uC(l),pC(l))},uC=a=>{if(!Et[a.input]){h(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${a.input}"`);return}const l=nd(a.input),m=Et[a.input](l,a);U(l),a.inputAutoFocus&&setTimeout(()=>{S(m)})},fC=a=>{for(let l=0;l<a.attributes.length;l++){const m=a.attributes[l].name;["type","value","style"].includes(m)||a.removeAttribute(m)}},dC=(a,l)=>{const m=b(ee(),a);if(!!m){fC(m);for(const v in l)m.setAttribute(v,l[v])}},pC=a=>{const l=nd(a.input);typeof a.customClass=="object"&&P(l,a.customClass.input)},za=(a,l)=>{(!a.placeholder||l.inputPlaceholder)&&(a.placeholder=l.inputPlaceholder)},Ii=(a,l,m)=>{if(m.inputLabel){a.id=s.input;const v=document.createElement("label"),T=s["input-label"];v.setAttribute("for",a.id),v.className=T,typeof m.customClass=="object"&&P(v,m.customClass.inputLabel),v.innerText=m.inputLabel,l.insertAdjacentElement("beforebegin",v)}},nd=a=>J(ee(),s[a]||s.input),or=(a,l)=>{["string","number"].includes(typeof l)?a.value=`${l}`:D(l)||f(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof l}"`)},Et={};Et.text=Et.email=Et.password=Et.number=Et.tel=Et.url=(a,l)=>(or(a,l.inputValue),Ii(a,a,l),za(a,l),a.type=l.input,a),Et.file=(a,l)=>(Ii(a,a,l),za(a,l),a),Et.range=(a,l)=>{const m=a.querySelector("input"),v=a.querySelector("output");return or(m,l.inputValue),m.type=l.input,or(v,l.inputValue),Ii(m,a,l),a},Et.select=(a,l)=>{if(a.textContent="",l.inputPlaceholder){const m=document.createElement("option");lt(m,l.inputPlaceholder),m.value="",m.disabled=!0,m.selected=!0,a.appendChild(m)}return Ii(a,a,l),a},Et.radio=a=>(a.textContent="",a),Et.checkbox=(a,l)=>{const m=b(ee(),"checkbox");m.value="1",m.id=s.checkbox,m.checked=Boolean(l.inputValue);const v=a.querySelector("span");return lt(v,l.inputPlaceholder),m},Et.textarea=(a,l)=>{or(a,l.inputValue),za(a,l),Ii(a,a,l);const m=v=>parseInt(window.getComputedStyle(v).marginLeft)+parseInt(window.getComputedStyle(v).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const v=parseInt(window.getComputedStyle(ee()).width),T=()=>{const pe=a.offsetWidth+m(a);pe>v?ee().style.width=`${pe}px`:ee().style.width=null};new MutationObserver(T).observe(a,{attributes:!0,attributeFilter:["style"]})}}),a};const hC=(a,l)=>{const m=Pe();at(m,l,"htmlContainer"),l.html?(Ha(l.html,m),U(m,"block")):l.text?(m.textContent=l.text,U(m,"block")):V(m),cC(a,l)},mC=(a,l)=>{const m=we();ie(m,l.footer),l.footer&&Ha(l.footer,m),at(m,l,"footer")},gC=(a,l)=>{const m=n.innerParams.get(a),v=Me();if(m&&l.icon===m.icon){id(v,l),od(v,l);return}if(!l.icon&&!l.iconHtml){V(v);return}if(l.icon&&Object.keys(r).indexOf(l.icon)===-1){h(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${l.icon}"`),V(v);return}U(v),id(v,l),od(v,l),P(v,l.showClass.icon)},od=(a,l)=>{for(const m in r)l.icon!==m&&R(a,r[m]);P(a,r[l.icon]),vC(a,l),wC(),at(a,l,"icon")},wC=()=>{const a=ee(),l=window.getComputedStyle(a).getPropertyValue("background-color"),m=a.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let v=0;v<m.length;v++)m[v].style.backgroundColor=l},yC=`
  <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>
`,bC=`
  <span class="swal2-x-mark">
    <span class="swal2-x-mark-line-left"></span>
    <span class="swal2-x-mark-line-right"></span>
  </span>
`,id=(a,l)=>{let m=a.innerHTML,v;l.iconHtml?v=sd(l.iconHtml):l.icon==="success"?(v=yC,m=m.replace(/ style=".*?"/g,"")):l.icon==="error"?v=bC:v=sd({question:"?",warning:"!",info:"i"}[l.icon]),m.trim()!==v.trim()&&lt(a,v)},vC=(a,l)=>{if(!!l.iconColor){a.style.color=l.iconColor,a.style.borderColor=l.iconColor;for(const m of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])q(a,m,"backgroundColor",l.iconColor);q(a,".swal2-success-ring","borderColor",l.iconColor)}},sd=a=>`<div class="${s["icon-content"]}">${a}</div>`,_C=(a,l)=>{const m=fe();if(!l.imageUrl){V(m);return}U(m,""),m.setAttribute("src",l.imageUrl),m.setAttribute("alt",l.imageAlt),X(m,"width",l.imageWidth),X(m,"height",l.imageHeight),m.className=s.image,at(m,l,"image")},xC=(a,l)=>{const m=j(),v=ee();l.toast?(X(m,"width",l.width),v.style.width="100%",v.insertBefore(B(),Me())):X(v,"width",l.width),X(v,"padding",l.padding),l.color&&(v.style.color=l.color),l.background&&(v.style.background=l.background),V(xe()),CC(v,l)},CC=(a,l)=>{a.className=`${s.popup} ${L(a)?l.showClass.popup:""}`,l.toast?(P([document.documentElement,document.body],s["toast-shown"]),P(a,s.toast)):P(a,s.modal),at(a,l,"popup"),typeof l.customClass=="string"&&P(a,l.customClass),l.icon&&P(a,s[`icon-${l.icon}`])},$C=(a,l)=>{const m=te();if(!l.progressSteps||l.progressSteps.length===0){V(m);return}U(m),m.textContent="",l.currentProgressStep>=l.progressSteps.length&&f("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),l.progressSteps.forEach((v,T)=>{const pe=EC(v);if(m.appendChild(pe),T===l.currentProgressStep&&P(pe,s["active-progress-step"]),T!==l.progressSteps.length-1){const ze=SC(l);m.appendChild(ze)}})},EC=a=>{const l=document.createElement("li");return P(l,s["progress-step"]),lt(l,a),l},SC=a=>{const l=document.createElement("li");return P(l,s["progress-step-line"]),a.progressStepsDistance&&X(l,"width",a.progressStepsDistance),l},kC=(a,l)=>{const m=Se();ie(m,l.title||l.titleText,"block"),l.title&&Ha(l.title,m),l.titleText&&(m.innerText=l.titleText),at(m,l,"title")},rd=(a,l)=>{xC(a,l),iC(a,l),$C(a,l),gC(a,l),_C(a,l),kC(a,l),oC(a,l),hC(a,l),eC(a,l),mC(a,l),typeof l.didRender=="function"&&l.didRender(ee())};function ad(){const a=n.innerParams.get(this);if(!a)return;const l=n.domCache.get(this);V(l.loader),wn()?a.icon&&U(Me()):AC(l),R([l.popup,l.actions],s.loading),l.popup.removeAttribute("aria-busy"),l.popup.removeAttribute("data-loading"),l.confirmButton.disabled=!1,l.denyButton.disabled=!1,l.cancelButton.disabled=!1}const AC=a=>{const l=a.popup.getElementsByClassName(a.loader.getAttribute("data-button-to-replace"));l.length?U(l[0],"inline-block"):se()&&V(a.actions)};function OC(a){const l=n.innerParams.get(a||this),m=n.domCache.get(a||this);return m?b(m.popup,l.input):null}const PC=()=>L(ee()),ld=()=>oe()&&oe().click(),IC=()=>M()&&M().click(),TC=()=>Re()&&Re().click(),Do=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),cd=a=>{a.keydownTarget&&a.keydownHandlerAdded&&(a.keydownTarget.removeEventListener("keydown",a.keydownHandler,{capture:a.keydownListenerCapture}),a.keydownHandlerAdded=!1)},MC=(a,l,m,v)=>{cd(l),m.toast||(l.keydownHandler=T=>LC(a,T,v),l.keydownTarget=m.keydownListenerCapture?window:ee(),l.keydownListenerCapture=m.keydownListenerCapture,l.keydownTarget.addEventListener("keydown",l.keydownHandler,{capture:l.keydownListenerCapture}),l.keydownHandlerAdded=!0)},qa=(a,l)=>{const m=At();if(m.length){a=a+l,a===m.length?a=0:a===-1&&(a=m.length-1),m[a].focus();return}ee().focus()},ud=["ArrowRight","ArrowDown"],BC=["ArrowLeft","ArrowUp"],LC=(a,l,m)=>{const v=n.innerParams.get(a);!v||l.isComposing||l.keyCode===229||(v.stopKeydownPropagation&&l.stopPropagation(),l.key==="Enter"?NC(a,l,v):l.key==="Tab"?DC(l):[...ud,...BC].includes(l.key)?RC(l.key):l.key==="Escape"&&jC(l,v,m))},NC=(a,l,m)=>{if(!!O(m.allowEnterKey)&&l.target&&a.getInput()&&l.target instanceof HTMLElement&&l.target.outerHTML===a.getInput().outerHTML){if(["textarea","file"].includes(m.input))return;ld(),l.preventDefault()}},DC=a=>{const l=a.target,m=At();let v=-1;for(let T=0;T<m.length;T++)if(l===m[T]){v=T;break}a.shiftKey?qa(v,-1):qa(v,1),a.stopPropagation(),a.preventDefault()},RC=a=>{const l=oe(),m=M(),v=Re(),T=[l,m,v];if(document.activeElement instanceof HTMLElement&&!T.includes(document.activeElement))return;const pe=ud.includes(a)?"nextElementSibling":"previousElementSibling";let ze=document.activeElement;for(let Pt=0;Pt<ce().children.length;Pt++){if(ze=ze[pe],!ze)return;if(ze instanceof HTMLButtonElement&&L(ze))break}ze instanceof HTMLButtonElement&&ze.focus()},jC=(a,l,m)=>{O(l.allowEscapeKey)&&(a.preventDefault(),m(Do.esc))};var Ti={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const FC=()=>{Array.from(document.body.children).forEach(l=>{l===j()||l.contains(j())||(l.hasAttribute("aria-hidden")&&l.setAttribute("data-previous-aria-hidden",l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))})},fd=()=>{Array.from(document.body.children).forEach(l=>{l.hasAttribute("data-previous-aria-hidden")?(l.setAttribute("aria-hidden",l.getAttribute("data-previous-aria-hidden")),l.removeAttribute("data-previous-aria-hidden")):l.removeAttribute("aria-hidden")})},HC=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Xe(document.body,s.iosfix)){const l=document.body.scrollTop;document.body.style.top=`${l*-1}px`,P(document.body,s.iosfix),zC(),UC()}},UC=()=>{const a=navigator.userAgent,l=!!a.match(/iPad/i)||!!a.match(/iPhone/i),m=!!a.match(/WebKit/i);l&&m&&!a.match(/CriOS/i)&&ee().scrollHeight>window.innerHeight-44&&(j().style.paddingBottom=`${44}px`)},zC=()=>{const a=j();let l;a.ontouchstart=m=>{l=qC(m)},a.ontouchmove=m=>{l&&(m.preventDefault(),m.stopPropagation())}},qC=a=>{const l=a.target,m=j();return VC(a)||WC(a)?!1:l===m||!d(m)&&l instanceof HTMLElement&&l.tagName!=="INPUT"&&l.tagName!=="TEXTAREA"&&!(d(Pe())&&Pe().contains(l))},VC=a=>a.touches&&a.touches.length&&a.touches[0].touchType==="stylus",WC=a=>a.touches&&a.touches.length>1,KC=()=>{if(Xe(document.body,s.iosfix)){const a=parseInt(document.body.style.top,10);R(document.body,s.iosfix),document.body.style.top="",document.body.scrollTop=a*-1}},GC=()=>{yt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(yt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${yt.previousBodyPadding+Qx()}px`)},JC=()=>{yt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${yt.previousBodyPadding}px`,yt.previousBodyPadding=null)};function dd(a,l,m,v){wn()?pd(a,v):(F(m).then(()=>pd(a,v)),cd(E)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(l.setAttribute("style","display:none !important"),l.removeAttribute("class"),l.innerHTML=""):l.remove(),Ot()&&(JC(),KC(),fd()),YC()}function YC(){R([document.documentElement,document.body],[s.shown,s["height-auto"],s["no-backdrop"],s["toast-shown"]])}function ir(a){a=e2(a);const l=Ti.swalPromiseResolve.get(this),m=ZC(this);this.isAwaitingPromise()?a.isDismissed||(Mi(this),l(a)):m&&l(a)}function XC(){return!!n.awaitingPromise.get(this)}const ZC=a=>{const l=ee();if(!l)return!1;const m=n.innerParams.get(a);if(!m||Xe(l,m.hideClass.popup))return!1;R(l,m.showClass.popup),P(l,m.hideClass.popup);const v=j();return R(v,m.showClass.backdrop),P(v,m.hideClass.backdrop),t2(a,l,m),!0};function QC(a){const l=Ti.swalPromiseReject.get(this);Mi(this),l&&l(a)}const Mi=a=>{a.isAwaitingPromise()&&(n.awaitingPromise.delete(a),n.innerParams.get(a)||a._destroy())},e2=a=>typeof a>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},a),t2=(a,l,m)=>{const v=j(),T=Pi&&w(l);typeof m.willClose=="function"&&m.willClose(l),T?n2(a,l,v,m.returnFocus,m.didClose):dd(a,v,m.returnFocus,m.didClose)},n2=(a,l,m,v,T)=>{E.swalCloseEventFinishedCallback=dd.bind(null,a,m,v,T),l.addEventListener(Pi,function(pe){pe.target===l&&(E.swalCloseEventFinishedCallback(),delete E.swalCloseEventFinishedCallback)})},pd=(a,l)=>{setTimeout(()=>{typeof l=="function"&&l.bind(a.params)(),a._destroy()})};function hd(a,l,m){const v=n.domCache.get(a);l.forEach(T=>{v[T].disabled=m})}function md(a,l){if(!!a)if(a.type==="radio"){const v=a.parentNode.parentNode.querySelectorAll("input");for(let T=0;T<v.length;T++)v[T].disabled=l}else a.disabled=l}function o2(){hd(this,["confirmButton","denyButton","cancelButton"],!1)}function i2(){hd(this,["confirmButton","denyButton","cancelButton"],!0)}function s2(){md(this.getInput(),!1)}function r2(){md(this.getInput(),!0)}function a2(a){const l=n.domCache.get(this),m=n.innerParams.get(this);lt(l.validationMessage,a),l.validationMessage.className=s["validation-message"],m.customClass&&m.customClass.validationMessage&&P(l.validationMessage,m.customClass.validationMessage),U(l.validationMessage);const v=this.getInput();v&&(v.setAttribute("aria-invalid",!0),v.setAttribute("aria-describedby",s["validation-message"]),S(v),P(v,s.inputerror))}function l2(){const a=n.domCache.get(this);a.validationMessage&&V(a.validationMessage);const l=this.getInput();l&&(l.removeAttribute("aria-invalid"),l.removeAttribute("aria-describedby"),R(l,s.inputerror))}const Ro={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:"&times;",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},c2=["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"],u2={},f2=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],gd=a=>Object.prototype.hasOwnProperty.call(Ro,a),wd=a=>c2.indexOf(a)!==-1,Va=a=>u2[a],d2=a=>{gd(a)||f(`Unknown parameter "${a}"`)},p2=a=>{f2.includes(a)&&f(`The parameter "${a}" is incompatible with toasts`)},h2=a=>{Va(a)&&k(a,Va(a))},m2=a=>{a.backdrop===!1&&a.allowOutsideClick&&f('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const l in a)d2(l),a.toast&&p2(l),h2(l)};function g2(a){const l=ee(),m=n.innerParams.get(this);if(!l||Xe(l,m.hideClass.popup)){f("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=w2(a),T=Object.assign({},m,v);rd(this,T),n.innerParams.set(this,T),Object.defineProperties(this,{params:{value:Object.assign({},this.params,a),writable:!1,enumerable:!0}})}const w2=a=>{const l={};return Object.keys(a).forEach(m=>{wd(m)?l[m]=a[m]:f(`Invalid parameter to update: ${m}`)}),l};function y2(){const a=n.domCache.get(this),l=n.innerParams.get(this);if(!l){yd(this);return}a.popup&&E.swalCloseEventFinishedCallback&&(E.swalCloseEventFinishedCallback(),delete E.swalCloseEventFinishedCallback),typeof l.didDestroy=="function"&&l.didDestroy(),b2(this)}const b2=a=>{yd(a),delete a.params,delete E.keydownHandler,delete E.keydownTarget,delete E.currentInstance},yd=a=>{a.isAwaitingPromise()?(Wa(n,a),n.awaitingPromise.set(a,!0)):(Wa(Ti,a),Wa(n,a))},Wa=(a,l)=>{for(const m in a)a[m].delete(l)};var bd=Object.freeze({__proto__:null,_destroy:y2,close:ir,closeModal:ir,closePopup:ir,closeToast:ir,disableButtons:i2,disableInput:r2,disableLoading:ad,enableButtons:o2,enableInput:s2,getInput:OC,handleAwaitingPromise:Mi,hideLoading:ad,isAwaitingPromise:XC,rejectPromise:QC,resetValidationMessage:l2,showValidationMessage:a2,update:g2});const jo=a=>{let l=ee();l||new rr,l=ee();const m=B();wn()?V(Me()):v2(l,a),U(m),l.setAttribute("data-loading","true"),l.setAttribute("aria-busy","true"),l.focus()},v2=(a,l)=>{const m=ce(),v=B();!l&&L(oe())&&(l=oe()),U(m),l&&(V(l),v.setAttribute("data-button-to-replace",l.className)),v.parentNode.insertBefore(v,l),P([a,m],s.loading)},_2=(a,l)=>{l.input==="select"||l.input==="radio"?S2(a,l):["text","email","number","tel","textarea"].includes(l.input)&&(z(l.inputValue)||D(l.inputValue))&&(jo(oe()),k2(a,l))},x2=(a,l)=>{const m=a.getInput();if(!m)return null;switch(l.input){case"checkbox":return C2(m);case"radio":return $2(m);case"file":return E2(m);default:return l.inputAutoTrim?m.value.trim():m.value}},C2=a=>a.checked?1:0,$2=a=>a.checked?a.value:null,E2=a=>a.files.length?a.getAttribute("multiple")!==null?a.files:a.files[0]:null,S2=(a,l)=>{const m=ee(),v=T=>{A2[l.input](m,Ka(T),l)};z(l.inputOptions)||D(l.inputOptions)?(jo(oe()),G(l.inputOptions).then(T=>{a.hideLoading(),v(T)})):typeof l.inputOptions=="object"?v(l.inputOptions):h(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof l.inputOptions}`)},k2=(a,l)=>{const m=a.getInput();V(m),G(l.inputValue).then(v=>{m.value=l.input==="number"?`${parseFloat(v)||0}`:`${v}`,U(m),m.focus(),a.hideLoading()}).catch(v=>{h(`Error in inputValue promise: ${v}`),m.value="",U(m),m.focus(),a.hideLoading()})},A2={select:(a,l,m)=>{const v=J(a,s.select),T=(pe,ze,Pt)=>{const vt=document.createElement("option");vt.value=Pt,lt(vt,ze),vt.selected=vd(Pt,m.inputValue),pe.appendChild(vt)};l.forEach(pe=>{const ze=pe[0],Pt=pe[1];if(Array.isArray(Pt)){const vt=document.createElement("optgroup");vt.label=ze,vt.disabled=!1,v.appendChild(vt),Pt.forEach(Ho=>T(vt,Ho[1],Ho[0]))}else T(v,Pt,ze)}),v.focus()},radio:(a,l,m)=>{const v=J(a,s.radio);l.forEach(pe=>{const ze=pe[0],Pt=pe[1],vt=document.createElement("input"),Ho=document.createElement("label");vt.type="radio",vt.name=s.radio,vt.value=ze,vd(ze,m.inputValue)&&(vt.checked=!0);const Xa=document.createElement("span");lt(Xa,Pt),Xa.className=s.label,Ho.appendChild(vt),Ho.appendChild(Xa),v.appendChild(Ho)});const T=v.querySelectorAll("input");T.length&&T[0].focus()}},Ka=a=>{const l=[];return typeof Map<"u"&&a instanceof Map?a.forEach((m,v)=>{let T=m;typeof T=="object"&&(T=Ka(T)),l.push([v,T])}):Object.keys(a).forEach(m=>{let v=a[m];typeof v=="object"&&(v=Ka(v)),l.push([m,v])}),l},vd=(a,l)=>l&&l.toString()===a.toString(),O2=a=>{const l=n.innerParams.get(a);a.disableButtons(),l.input?_d(a,"confirm"):Ja(a,!0)},P2=a=>{const l=n.innerParams.get(a);a.disableButtons(),l.returnInputValueOnDeny?_d(a,"deny"):Ga(a,!1)},I2=(a,l)=>{a.disableButtons(),l(Do.cancel)},_d=(a,l)=>{const m=n.innerParams.get(a);if(!m.input){h(`The "input" parameter is needed to be set when using returnInputValueOn${p(l)}`);return}const v=x2(a,m);m.inputValidator?T2(a,v,l):a.getInput().checkValidity()?l==="deny"?Ga(a,v):Ja(a,v):(a.enableButtons(),a.showValidationMessage(m.validationMessage))},T2=(a,l,m)=>{const v=n.innerParams.get(a);a.disableInput(),Promise.resolve().then(()=>G(v.inputValidator(l,v.validationMessage))).then(pe=>{a.enableButtons(),a.enableInput(),pe?a.showValidationMessage(pe):m==="deny"?Ga(a,l):Ja(a,l)})},Ga=(a,l)=>{const m=n.innerParams.get(a||void 0);m.showLoaderOnDeny&&jo(M()),m.preDeny?(n.awaitingPromise.set(a||void 0,!0),Promise.resolve().then(()=>G(m.preDeny(l,m.validationMessage))).then(T=>{T===!1?(a.hideLoading(),Mi(a)):a.close({isDenied:!0,value:typeof T>"u"?l:T})}).catch(T=>Cd(a||void 0,T))):a.close({isDenied:!0,value:l})},xd=(a,l)=>{a.close({isConfirmed:!0,value:l})},Cd=(a,l)=>{a.rejectPromise(l)},Ja=(a,l)=>{const m=n.innerParams.get(a||void 0);m.showLoaderOnConfirm&&jo(),m.preConfirm?(a.resetValidationMessage(),n.awaitingPromise.set(a||void 0,!0),Promise.resolve().then(()=>G(m.preConfirm(l,m.validationMessage))).then(T=>{L(xe())||T===!1?(a.hideLoading(),Mi(a)):xd(a,typeof T>"u"?l:T)}).catch(T=>Cd(a||void 0,T))):xd(a,l)},M2=(a,l,m)=>{n.innerParams.get(a).toast?B2(a,l,m):(N2(l),D2(l),R2(a,l,m))},B2=(a,l,m)=>{l.popup.onclick=()=>{const v=n.innerParams.get(a);v&&(L2(v)||v.timer||v.input)||m(Do.close)}},L2=a=>a.showConfirmButton||a.showDenyButton||a.showCancelButton||a.showCloseButton;let sr=!1;const N2=a=>{a.popup.onmousedown=()=>{a.container.onmouseup=function(l){a.container.onmouseup=void 0,l.target===a.container&&(sr=!0)}}},D2=a=>{a.container.onmousedown=()=>{a.popup.onmouseup=function(l){a.popup.onmouseup=void 0,(l.target===a.popup||a.popup.contains(l.target))&&(sr=!0)}}},R2=(a,l,m)=>{l.container.onclick=v=>{const T=n.innerParams.get(a);if(sr){sr=!1;return}v.target===l.container&&O(T.allowOutsideClick)&&m(Do.backdrop)}},j2=a=>typeof a=="object"&&a.jquery,$d=a=>a instanceof Element||j2(a),F2=a=>{const l={};return typeof a[0]=="object"&&!$d(a[0])?Object.assign(l,a[0]):["title","html","icon"].forEach((m,v)=>{const T=a[v];typeof T=="string"||$d(T)?l[m]=T:T!==void 0&&h(`Unexpected type of ${m}! Expected "string" or "Element", got ${typeof T}`)}),l};function H2(){const a=this;for(var l=arguments.length,m=new Array(l),v=0;v<l;v++)m[v]=arguments[v];return new a(...m)}function U2(a){class l extends this{_main(v,T){return super._main(v,Object.assign({},a,T))}}return l}const z2=()=>E.timeout&&E.timeout.getTimerLeft(),Ed=()=>{if(E.timeout)return C(),E.timeout.stop()},Sd=()=>{if(E.timeout){const a=E.timeout.start();return _(a),a}},q2=()=>{const a=E.timeout;return a&&(a.running?Ed():Sd())},V2=a=>{if(E.timeout){const l=E.timeout.increase(a);return _(l,!0),l}},W2=()=>E.timeout&&E.timeout.isRunning();let kd=!1;const Ya={};function K2(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";Ya[a]=this,kd||(document.body.addEventListener("click",G2),kd=!0)}const G2=a=>{for(let l=a.target;l&&l!==document;l=l.parentNode)for(const m in Ya){const v=l.getAttribute(m);if(v){Ya[m].fire({template:v});return}}};var J2=Object.freeze({__proto__:null,argsToParams:F2,bindClickHandler:K2,clickCancel:TC,clickConfirm:ld,clickDeny:IC,enableLoading:jo,fire:H2,getActions:ce,getCancelButton:Re,getCloseButton:Ge,getConfirmButton:oe,getContainer:j,getDenyButton:M,getFocusableElements:At,getFooter:we,getHtmlContainer:Pe,getIcon:Me,getIconContent:Ee,getImage:fe,getInputLabel:W,getLoader:B,getPopup:ee,getProgressSteps:te,getTimerLeft:z2,getTimerProgressBar:Oe,getTitle:Se,getValidationMessage:xe,increaseTimer:V2,isDeprecatedParameter:Va,isLoading:wt,isTimerRunning:W2,isUpdatableParameter:wd,isValidParameter:gd,isVisible:PC,mixin:U2,resumeTimer:Sd,showLoading:jo,stopTimer:Ed,toggleTimer:q2});class Y2{constructor(l,m){this.callback=l,this.remaining=m,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(l){const m=this.running;return m&&this.stop(),this.remaining+=l,m&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Ad=["swal-title","swal-html","swal-footer"],X2=a=>{const l=typeof a.template=="string"?document.querySelector(a.template):a.template;if(!l)return{};const m=l.content;return s$(m),Object.assign(Z2(m),Q2(m),e$(m),t$(m),n$(m),o$(m),i$(m,Ad))},Z2=a=>{const l={};return Array.from(a.querySelectorAll("swal-param")).forEach(v=>{go(v,["name","value"]);const T=v.getAttribute("name"),pe=v.getAttribute("value");typeof Ro[T]=="boolean"?l[T]=pe!=="false":typeof Ro[T]=="object"?l[T]=JSON.parse(pe):l[T]=pe}),l},Q2=a=>{const l={};return Array.from(a.querySelectorAll("swal-function-param")).forEach(v=>{const T=v.getAttribute("name"),pe=v.getAttribute("value");l[T]=new Function(`return ${pe}`)()}),l},e$=a=>{const l={};return Array.from(a.querySelectorAll("swal-button")).forEach(v=>{go(v,["type","color","aria-label"]);const T=v.getAttribute("type");l[`${T}ButtonText`]=v.innerHTML,l[`show${p(T)}Button`]=!0,v.hasAttribute("color")&&(l[`${T}ButtonColor`]=v.getAttribute("color")),v.hasAttribute("aria-label")&&(l[`${T}ButtonAriaLabel`]=v.getAttribute("aria-label"))}),l},t$=a=>{const l={},m=a.querySelector("swal-image");return m&&(go(m,["src","width","height","alt"]),m.hasAttribute("src")&&(l.imageUrl=m.getAttribute("src")),m.hasAttribute("width")&&(l.imageWidth=m.getAttribute("width")),m.hasAttribute("height")&&(l.imageHeight=m.getAttribute("height")),m.hasAttribute("alt")&&(l.imageAlt=m.getAttribute("alt"))),l},n$=a=>{const l={},m=a.querySelector("swal-icon");return m&&(go(m,["type","color"]),m.hasAttribute("type")&&(l.icon=m.getAttribute("type")),m.hasAttribute("color")&&(l.iconColor=m.getAttribute("color")),l.iconHtml=m.innerHTML),l},o$=a=>{const l={},m=a.querySelector("swal-input");m&&(go(m,["type","label","placeholder","value"]),l.input=m.getAttribute("type")||"text",m.hasAttribute("label")&&(l.inputLabel=m.getAttribute("label")),m.hasAttribute("placeholder")&&(l.inputPlaceholder=m.getAttribute("placeholder")),m.hasAttribute("value")&&(l.inputValue=m.getAttribute("value")));const v=Array.from(a.querySelectorAll("swal-input-option"));return v.length&&(l.inputOptions={},v.forEach(T=>{go(T,["value"]);const pe=T.getAttribute("value"),ze=T.innerHTML;l.inputOptions[pe]=ze})),l},i$=(a,l)=>{const m={};for(const v in l){const T=l[v],pe=a.querySelector(T);pe&&(go(pe,[]),m[T.replace(/^swal-/,"")]=pe.innerHTML.trim())}return m},s$=a=>{const l=Ad.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(a.children).forEach(m=>{const v=m.tagName.toLowerCase();l.includes(v)||f(`Unrecognized element <${v}>`)})},go=(a,l)=>{Array.from(a.attributes).forEach(m=>{l.indexOf(m.name)===-1&&f([`Unrecognized attribute "${m.name}" on <${a.tagName.toLowerCase()}>.`,`${l.length?`Allowed attributes are: ${l.join(", ")}`:"To set the value, use HTML within the element."}`])})},Od=10,r$=a=>{const l=j(),m=ee();typeof a.willOpen=="function"&&a.willOpen(m);const T=window.getComputedStyle(document.body).overflowY;c$(l,m,a),setTimeout(()=>{a$(l,m)},Od),Ot()&&(l$(l,a.scrollbarPadding,T),FC()),!wn()&&!E.previousActiveElement&&(E.previousActiveElement=document.activeElement),typeof a.didOpen=="function"&&setTimeout(()=>a.didOpen(m)),R(l,s["no-transition"])},Pd=a=>{const l=ee();if(a.target!==l)return;const m=j();l.removeEventListener(Pi,Pd),m.style.overflowY="auto"},a$=(a,l)=>{Pi&&w(l)?(a.style.overflowY="hidden",l.addEventListener(Pi,Pd)):a.style.overflowY="auto"},l$=(a,l,m)=>{HC(),l&&m!=="hidden"&&GC(),setTimeout(()=>{a.scrollTop=0})},c$=(a,l,m)=>{P(a,m.showClass.backdrop),l.style.setProperty("opacity","0","important"),U(l,"grid"),setTimeout(()=>{P(l,m.showClass.popup),l.style.removeProperty("opacity")},Od),P([document.documentElement,document.body],s.shown),m.heightAuto&&m.backdrop&&!m.toast&&P([document.documentElement,document.body],s["height-auto"])};var Id={email:(a,l)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(a)?Promise.resolve():Promise.resolve(l||"Invalid email address"),url:(a,l)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(a)?Promise.resolve():Promise.resolve(l||"Invalid URL")};function u$(a){a.inputValidator||Object.keys(Id).forEach(l=>{a.input===l&&(a.inputValidator=Id[l])})}function f$(a){(!a.target||typeof a.target=="string"&&!document.querySelector(a.target)||typeof a.target!="string"&&!a.target.appendChild)&&(f('Target parameter is not valid, defaulting to "body"'),a.target="body")}function d$(a){u$(a),a.showLoaderOnConfirm&&!a.preConfirm&&f(`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`),f$(a),typeof a.title=="string"&&(a.title=a.title.split(`
`).join("<br />")),Oi(a)}let Yt;class Fo{constructor(){if(typeof window>"u")return;Yt=this;for(var l=arguments.length,m=new Array(l),v=0;v<l;v++)m[v]=arguments[v];const T=Object.freeze(this.constructor.argsToParams(m));Object.defineProperties(this,{params:{value:T,writable:!1,enumerable:!0,configurable:!0}});const pe=Yt._main(Yt.params);n.promise.set(this,pe)}_main(l){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};m2(Object.assign({},m,l)),E.currentInstance&&(E.currentInstance._destroy(),Ot()&&fd()),E.currentInstance=Yt;const v=h$(l,m);d$(v),Object.freeze(v),E.timeout&&(E.timeout.stop(),delete E.timeout),clearTimeout(E.restoreFocusTimeout);const T=m$(Yt);return rd(Yt,v),n.innerParams.set(Yt,v),p$(Yt,T,v)}then(l){return n.promise.get(this).then(l)}finally(l){return n.promise.get(this).finally(l)}}const p$=(a,l,m)=>new Promise((v,T)=>{const pe=ze=>{a.close({isDismissed:!0,dismiss:ze})};Ti.swalPromiseResolve.set(a,v),Ti.swalPromiseReject.set(a,T),l.confirmButton.onclick=()=>{O2(a)},l.denyButton.onclick=()=>{P2(a)},l.cancelButton.onclick=()=>{I2(a,pe)},l.closeButton.onclick=()=>{pe(Do.close)},M2(a,l,pe),MC(a,E,m,pe),_2(a,m),r$(m),g$(E,m,pe),w$(l,m),setTimeout(()=>{l.container.scrollTop=0})}),h$=(a,l)=>{const m=X2(a),v=Object.assign({},Ro,l,m,a);return v.showClass=Object.assign({},Ro.showClass,v.showClass),v.hideClass=Object.assign({},Ro.hideClass,v.hideClass),v},m$=a=>{const l={popup:ee(),container:j(),actions:ce(),confirmButton:oe(),denyButton:M(),cancelButton:Re(),loader:B(),closeButton:Ge(),validationMessage:xe(),progressSteps:te()};return n.domCache.set(a,l),l},g$=(a,l,m)=>{const v=Oe();V(v),l.timer&&(a.timeout=new Y2(()=>{m("timer"),delete a.timeout},l.timer),l.timerProgressBar&&(U(v),at(v,l,"timerProgressBar"),setTimeout(()=>{a.timeout&&a.timeout.running&&_(l.timer)})))},w$=(a,l)=>{if(!l.toast){if(!O(l.allowEnterKey)){b$();return}y$(a,l)||qa(-1,1)}},y$=(a,l)=>l.focusDeny&&L(a.denyButton)?(a.denyButton.focus(),!0):l.focusCancel&&L(a.cancelButton)?(a.cancelButton.focus(),!0):l.focusConfirm&&L(a.confirmButton)?(a.confirmButton.focus(),!0):!1,b$=()=>{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 a=new Date,l=localStorage.getItem("swal-initiation");l?(a.getTime()-Date.parse(l))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const m=document.createElement("audio");m.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",m.loop=!0,document.body.appendChild(m),setTimeout(()=>{m.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${a}`)}Object.assign(Fo.prototype,bd),Object.assign(Fo,J2),Object.keys(bd).forEach(a=>{Fo[a]=function(){if(Yt)return Yt[a](...arguments)}}),Fo.DismissReason=Do,Fo.version="11.7.2";const rr=Fo;return rr.default=rr,rr}),typeof bn<"u"&&bn.Sweetalert2&&(bn.swal=bn.sweetAlert=bn.Swal=bn.SweetAlert=bn.Sweetalert2),typeof document<"u"&&function(n,o){var i=n.createElement("style");if(n.getElementsByTagName("head")[0].appendChild(i),i.styleSheet)i.styleSheet.disabled||(i.styleSheet.cssText=o);else try{i.innerHTML=o}catch{i.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}')})(Qa);const ve=Qa.exports,Bd=["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"],Ld=["jpg","jpeg","png","gif","bmp","svg"],Nd=["mp3","wav","wma","ogg","ape","flac","aac"];function lr(e,...t){return new e(t[0])}function Ni(){return Math.floor(Date.now()/1e3)}function Dd(e,t,n="text/plain"){const o=document.createElement("a");document.body.appendChild(o),o.setAttribute("style","display:none");const i=new Blob([e],{type:n}),s=window.URL.createObjectURL(i);o.href=s,o.download=t,o.click(),window.URL.revokeObjectURL(s)}function Uo(e){if(typeof Bi=="function")return Bi(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 Rd(e){return/^magnet:\?xt=urn:btih/.test(e)}function jd(e){return/^ed2k:\/\/\|file\|/.test(e)}function Fd(e,t=!0){return(t?/^([a-z\d]{32})$|^([a-z\d]{40})$/i:/^[a-z\d]{32,40}$/i).test(e)}function Hd(e){return`magnet:?xt=urn:btih:${e.toUpperCase()}`}function Ud(e,t=location.href){const n=new RegExp("(\\?|#|&)"+e+"=([^&#]*)(&|#|$)"),o=t.match(n);return o?o[2]:""}function el(e,t=2){if(Number.isNaN(e)||(e=typeof e=="string"?parseInt(e):e,!e))return"0";const n=1024,o=t,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,s)).toFixed(o))+" "+i[s]}function tl(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("无效的文件大小!");const i=parseFloat(o[1]),s=o[2].toUpperCase(),r=t.indexOf(s);if(r<0)throw new Error("无效的文件大小!");return i*Math.pow(1024,r)}function nl(e,t=document,n=XPathResult.ORDERED_NODE_SNAPSHOT_TYPE){const o=[],i=document.evaluate(e,t,null,n,null);for(let s=0;s<i.snapshotLength;s++){const r=i.snapshotItem(s);r&&o.push(r)}return o}async function Di(e,t=100,n=12e4){const o=e.indexOf("//")===0,i=async()=>{if(o){const s=nl(e);return s.length>0?s:!1}else{const s=document.querySelectorAll(e);return s.length?Array.from(s):!1}};try{return await ol(i,t,n)}catch(s){throw console.warn("[find]",s),new Error(`查找元素超时:${e}`)}}async function Ri(e,t=100,n=12e4){const o=e.indexOf("//")===0,i=async()=>{if(o){const s=nl(e);return s.length>0?s:!1}else{const s=unsafeWindow.$(e);return s.length?s:!1}};try{return await ol(i,t,n)}catch(s){throw console.warn("[find]",s),new Error(`查找元素超时:${e}`)}}async function ol(e,t,n){return new Promise(async(o,i)=>{if(typeof e!="function"){i("提供的参数`fulfill`不是一个Function!");return}const s=await e();if(s){o(s);return}let r=setInterval(async()=>{const u=await e();u&&(clearTimeout(c),clearInterval(r),o(u))},t),c=setTimeout(()=>{clearInterval(r),i("超时")},n)})}async function Xt(e){return new Promise(t=>{setTimeout(t,e)})}function il(e){const t=new URLSearchParams;let n;for(n in e)t.append(n,e[n].toString());return t.toString()}async function _e(e){return ve.fire({toast:!0,position:"top",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,didOpen:t=>{t.addEventListener("mouseenter",ve.stopTimer),t.addEventListener("mouseleave",ve.resumeTimer)},...e})}function ji(e,t){t=t||window,t.postMessage(e)}function Un(e,t,n){if(n){const o=Li(e,{});ar(e,{...o,...t})}else ar(e,t)}function vo(e,t,n){let o;return function(...i){const s=()=>{o=void 0,n||e.apply(this,i)},r=n&&o===void 0;clearTimeout(o),o=setTimeout(s,t),r&&e.apply(this,i)}}function zd(e){return e?Bd.indexOf(e.toLowerCase())>-1:!1}function qd(e){return e?Ld.indexOf(e.toLowerCase())>-1:!1}function Vd(e){return e?Nd.indexOf(e.toLowerCase())>-1:!1}var ke=(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))(ke||{}),zo=(e=>(e.listItemHover="列表项悬浮菜单",e.listItemHoverSub="列表项悬浮子菜单",e.listItemContext="列表项右键菜单",e.listItemContextSub="列表项右键子菜单",e.selection="选中项菜单",e.selectionSub="选中项子菜单",e.dirContext="当前目录右键菜单",e.dirContextSub="当前目录右键子菜单",e))(zo||{}),zn=(e=>(e[e.after=0]="after",e[e.before=1]="before",e))(zn||{});const _t={get:async(e,t)=>Li(e,t),set:async(e,t)=>ar(e,t),remove:async e=>Td(e)},sl="clouddrive_configs";function cr(e){return{active:!1,url:"http://localhost:19798",root:"/115",memo:"",...e}}async function rl(){const e=[cr()],t=await _t.get(sl,e);return t||e}async function al(e){e.some(t=>t.active)||(e[0].active=!0),await _t.set(sl,e)}async function qo(){return(await rl()).find(t=>t.active)||cr()}async function Fi(e,t){let{url:n,root:o}=e;if(!n)throw new Error("未设置CloudDrive地址!");if(n.startsWith("http")||(n=`http://${n}`),!o)throw new Error("未设置CloudDrive根目录!");o=o.replace(/^(\/+)?/g,"/"),t=t.replace(/^(\/+)?/g,"/");const i=`${o}${t}`;return`${n}/static/${n.replace("://","/")}/True/${encodeURIComponent(i)}`}async function Wd(e,t){return await Fi(e,t)+".clfsplaylist.m3u"}var _o=(e=>(e[e.failed=-1]="failed",e[e.illegal=0]="illegal",e[e.ing=1]="ing",e[e.success=2]="success",e))(_o||{}),It=(e=>(e.all="all",e.failed="failed",e.success="success",e.magnet="magnet",e.magnetEd2k="magnetEd2k",e))(It||{}),ll=(e=>(e[e.true=1]="true",e[e.false=0]="false",e))(ll||{}),dt=(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))(dt||{}),Ye=(e=>(e.all="全部",e.video="视频",e.audio="音频",e.image="图片",e.doc="文档",e.app="应用",e.archive="压缩包",e))(Ye||{}),cl=(e=>(e.userPtime="user_ptime",e.fileName="file_name",e.fileSize="file_size",e.fileType="file_type",e))(cl||{});function Kd(e){return{offset:0,limit:1150,aid:1,cid:"",format:"json",o:"user_ptime",asc:0,search_value:"",...e}}function Gd(e){return{aid:1,cid:"",o:"user_ptime",asc:0,offset:0,show_dir:1,limit:115,natsort:0,format:"json",...e}}function ul(e,t){return function(){return e.apply(t,arguments)}}const{toString:fl}=Object.prototype,{getPrototypeOf:ur}=Object,fr=(e=>t=>{const n=fl.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Zt=e=>(e=e.toLowerCase(),t=>fr(t)===e),Hi=e=>t=>typeof t===e,{isArray:xo}=Array,Vo=Hi("undefined");function Jd(e){return e!==null&&!Vo(e)&&e.constructor!==null&&!Vo(e.constructor)&&vn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const dl=Zt("ArrayBuffer");function Yd(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&dl(e.buffer),t}const Xd=Hi("string"),vn=Hi("function"),pl=Hi("number"),dr=e=>e!==null&&typeof e=="object",Zd=e=>e===!0||e===!1,Ui=e=>{if(fr(e)!=="object")return!1;const t=ur(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Qd=Zt("Date"),ep=Zt("File"),tp=Zt("Blob"),np=Zt("FileList"),op=e=>dr(e)&&vn(e.pipe),ip=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||fl.call(e)===t||vn(e.toString)&&e.toString()===t)},sp=Zt("URLSearchParams"),rp=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Wo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,i;if(typeof e!="object"&&(e=[e]),xo(e))for(o=0,i=e.length;o<i;o++)t.call(null,e[o],o,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),r=s.length;let c;for(o=0;o<r;o++)c=s[o],t.call(null,e[c],c,e)}}function hl(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length,i;for(;o-- >0;)if(i=n[o],t===i.toLowerCase())return i;return null}const ml=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),gl=e=>!Vo(e)&&e!==ml;function pr(){const{caseless:e}=gl(this)&&this||{},t={},n=(o,i)=>{const s=e&&hl(t,i)||i;Ui(t[s])&&Ui(o)?t[s]=pr(t[s],o):Ui(o)?t[s]=pr({},o):xo(o)?t[s]=o.slice():t[s]=o};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Wo(arguments[o],n);return t}const ap=(e,t,n,{allOwnKeys:o}={})=>(Wo(t,(i,s)=>{n&&vn(i)?e[s]=ul(i,n):e[s]=i},{allOwnKeys:o}),e),lp=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),cp=(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)},up=(e,t,n,o)=>{let i,s,r;const c={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)r=i[s],(!o||o(r,e,t))&&!c[r]&&(t[r]=e[r],c[r]=!0);e=n!==!1&&ur(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},fp=(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},dp=e=>{if(!e)return null;if(xo(e))return e;let t=e.length;if(!pl(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},pp=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ur(Uint8Array)),hp=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=o.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},mp=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},gp=Zt("HTMLFormElement"),wp=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,i){return o.toUpperCase()+i}),wl=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),yp=Zt("RegExp"),yl=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Wo(n,(i,s)=>{t(i,s,e)!==!1&&(o[s]=i)}),Object.defineProperties(e,o)},bp=e=>{yl(e,(t,n)=>{if(vn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(!!vn(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+"'")})}})},vp=(e,t)=>{const n={},o=i=>{i.forEach(s=>{n[s]=!0})};return xo(e)?o(e):o(String(e).split(t)),n},_p=()=>{},xp=(e,t)=>(e=+e,Number.isFinite(e)?e:t),hr="abcdefghijklmnopqrstuvwxyz",bl="0123456789",vl={DIGIT:bl,ALPHA:hr,ALPHA_DIGIT:hr+hr.toUpperCase()+bl},Cp=(e=16,t=vl.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function $p(e){return!!(e&&vn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const H={isArray:xo,isArrayBuffer:dl,isBuffer:Jd,isFormData:ip,isArrayBufferView:Yd,isString:Xd,isNumber:pl,isBoolean:Zd,isObject:dr,isPlainObject:Ui,isUndefined:Vo,isDate:Qd,isFile:ep,isBlob:tp,isRegExp:yp,isFunction:vn,isStream:op,isURLSearchParams:sp,isTypedArray:pp,isFileList:np,forEach:Wo,merge:pr,extend:ap,trim:rp,stripBOM:lp,inherits:cp,toFlatObject:up,kindOf:fr,kindOfTest:Zt,endsWith:fp,toArray:dp,forEachEntry:hp,matchAll:mp,isHTMLForm:gp,hasOwnProperty:wl,hasOwnProp:wl,reduceDescriptors:yl,freezeMethods:bp,toObjectSet:vp,toCamelCase:wp,noop:_p,toFiniteNumber:xp,findKey:hl,global:ml,isContextDefined:gl,ALPHABET:vl,generateString:Cp,isSpecCompliantForm:$p,toJSONObject:e=>{const t=new Array(10),n=(o,i)=>{if(dr(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[i]=o;const s=xo(o)?[]:{};return Wo(o,(r,c)=>{const u=n(r,i+1);!Vo(u)&&(s[c]=u)}),t[i]=void 0,s}}return o};return n(e,0)}};function Ne(e,t,n,o,i){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),i&&(this.response=i)}H.inherits(Ne,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:H.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const _l=Ne.prototype,xl={};["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=>{xl[e]={value:e}}),Object.defineProperties(Ne,xl),Object.defineProperty(_l,"isAxiosError",{value:!0}),Ne.from=(e,t,n,o,i,s)=>{const r=Object.create(_l);return H.toFlatObject(e,r,function(u){return u!==Error.prototype},c=>c!=="isAxiosError"),Ne.call(r,e.message,t,n,o,i),r.cause=e,r.name=e.name,s&&Object.assign(r,s),r};const Ep=null;function mr(e){return H.isPlainObject(e)||H.isArray(e)}function Cl(e){return H.endsWith(e,"[]")?e.slice(0,-2):e}function $l(e,t,n){return e?e.concat(t).map(function(i,s){return i=Cl(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function Sp(e){return H.isArray(e)&&!e.some(mr)}const kp=H.toFlatObject(H,{},null,function(t){return/^is[A-Z]/.test(t)});function zi(e,t,n){if(!H.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=H.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(O,z){return!H.isUndefined(z[O])});const o=n.metaTokens,i=n.visitor||f,s=n.dots,r=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&H.isSpecCompliantForm(t);if(!H.isFunction(i))throw new TypeError("visitor must be a function");function p(k){if(k===null)return"";if(H.isDate(k))return k.toISOString();if(!u&&H.isBlob(k))throw new Ne("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(k)||H.isTypedArray(k)?u&&typeof Blob=="function"?new Blob([k]):Buffer.from(k):k}function f(k,O,z){let G=k;if(k&&!z&&typeof k=="object"){if(H.endsWith(O,"{}"))O=o?O:O.slice(0,-2),k=JSON.stringify(k);else if(H.isArray(k)&&Sp(k)||(H.isFileList(k)||H.endsWith(O,"[]"))&&(G=H.toArray(k)))return O=Cl(O),G.forEach(function(j,Z){!(H.isUndefined(j)||j===null)&&t.append(r===!0?$l([O],Z,s):r===null?O:O+"[]",p(j))}),!1}return mr(k)?!0:(t.append($l(z,O,s),p(k)),!1)}const h=[],y=Object.assign(kp,{defaultVisitor:f,convertValue:p,isVisitable:mr});function x(k,O){if(!H.isUndefined(k)){if(h.indexOf(k)!==-1)throw Error("Circular reference detected in "+O.join("."));h.push(k),H.forEach(k,function(G,D){(!(H.isUndefined(G)||G===null)&&i.call(t,G,H.isString(D)?D.trim():D,O,y))===!0&&x(G,O?O.concat(D):[D])}),h.pop()}}if(!H.isObject(e))throw new TypeError("data must be an object");return x(e),t}function El(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function gr(e,t){this._pairs=[],e&&zi(e,this,t)}const Sl=gr.prototype;Sl.append=function(t,n){this._pairs.push([t,n])},Sl.toString=function(t){const n=t?function(o){return t.call(this,o,El)}:El;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Ap(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function kl(e,t,n){if(!t)return e;const o=n&&n.encode||Ap,i=n&&n.serialize;let s;if(i?s=i(t,n):s=H.isURLSearchParams(t)?t.toString():new gr(t,n).toString(o),s){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Op{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){H.forEach(this.handlers,function(o){o!==null&&t(o)})}}const Al=Op,Ol={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Pp=typeof URLSearchParams<"u"?URLSearchParams:gr,Ip=typeof FormData<"u"?FormData:null,Tp=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Mp=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ut={isBrowser:!0,classes:{URLSearchParams:Pp,FormData:Ip,Blob},isStandardBrowserEnv:Tp,isStandardBrowserWebWorkerEnv:Mp,protocols:["http","https","file","blob","url","data"]};function Bp(e,t){return zi(e,new Ut.classes.URLSearchParams,Object.assign({visitor:function(n,o,i,s){return Ut.isNode&&H.isBuffer(n)?(this.append(o,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Lp(e){return H.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Np(e){const t={},n=Object.keys(e);let o;const i=n.length;let s;for(o=0;o<i;o++)s=n[o],t[s]=e[s];return t}function Pl(e){function t(n,o,i,s){let r=n[s++];const c=Number.isFinite(+r),u=s>=n.length;return r=!r&&H.isArray(i)?i.length:r,u?(H.hasOwnProp(i,r)?i[r]=[i[r],o]:i[r]=o,!c):((!i[r]||!H.isObject(i[r]))&&(i[r]=[]),t(n,o,i[r],s)&&H.isArray(i[r])&&(i[r]=Np(i[r])),!c)}if(H.isFormData(e)&&H.isFunction(e.entries)){const n={};return H.forEachEntry(e,(o,i)=>{t(Lp(o),i,n,0)}),n}return null}const Dp={"Content-Type":void 0};function Rp(e,t,n){if(H.isString(e))try{return(t||JSON.parse)(e),H.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const qi={transitional:Ol,adapter:["xhr","http"],transformRequest:[function(t,n){const o=n.getContentType()||"",i=o.indexOf("application/json")>-1,s=H.isObject(t);if(s&&H.isHTMLForm(t)&&(t=new FormData(t)),H.isFormData(t))return i&&i?JSON.stringify(Pl(t)):t;if(H.isArrayBuffer(t)||H.isBuffer(t)||H.isStream(t)||H.isFile(t)||H.isBlob(t))return t;if(H.isArrayBufferView(t))return t.buffer;if(H.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return Bp(t,this.formSerializer).toString();if((c=H.isFileList(t))||o.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return zi(c?{"files[]":t}:t,u&&new u,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),Rp(t)):t}],transformResponse:[function(t){const n=this.transitional||qi.transitional,o=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&H.isString(t)&&(o&&!this.responseType||i)){const r=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(c){if(r)throw c.name==="SyntaxError"?Ne.from(c,Ne.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ut.classes.FormData,Blob:Ut.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};H.forEach(["delete","get","head"],function(t){qi.headers[t]={}}),H.forEach(["post","put","patch"],function(t){qi.headers[t]=H.merge(Dp)});const wr=qi,jp=H.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"]),Fp=e=>{const t={};let n,o,i;return e&&e.split(`
`).forEach(function(r){i=r.indexOf(":"),n=r.substring(0,i).trim().toLowerCase(),o=r.substring(i+1).trim(),!(!n||t[n]&&jp[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},Il=Symbol("internals");function Ko(e){return e&&String(e).trim().toLowerCase()}function Vi(e){return e===!1||e==null?e:H.isArray(e)?e.map(Vi):String(e)}function Hp(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 Up(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function yr(e,t,n,o,i){if(H.isFunction(o))return o.call(this,t,n);if(i&&(t=n),!!H.isString(t)){if(H.isString(o))return t.indexOf(o)!==-1;if(H.isRegExp(o))return o.test(t)}}function zp(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function qp(e,t){const n=H.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(i,s,r){return this[o].call(this,t,i,s,r)},configurable:!0})})}class Wi{constructor(t){t&&this.set(t)}set(t,n,o){const i=this;function s(c,u,p){const f=Ko(u);if(!f)throw new Error("header name must be a non-empty string");const h=H.findKey(i,f);(!h||i[h]===void 0||p===!0||p===void 0&&i[h]!==!1)&&(i[h||u]=Vi(c))}const r=(c,u)=>H.forEach(c,(p,f)=>s(p,f,u));return H.isPlainObject(t)||t instanceof this.constructor?r(t,n):H.isString(t)&&(t=t.trim())&&!Up(t)?r(Fp(t),n):t!=null&&s(n,t,o),this}get(t,n){if(t=Ko(t),t){const o=H.findKey(this,t);if(o){const i=this[o];if(!n)return i;if(n===!0)return Hp(i);if(H.isFunction(n))return n.call(this,i,o);if(H.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ko(t),t){const o=H.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||yr(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let i=!1;function s(r){if(r=Ko(r),r){const c=H.findKey(o,r);c&&(!n||yr(o,o[c],c,n))&&(delete o[c],i=!0)}}return H.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let o=n.length,i=!1;for(;o--;){const s=n[o];(!t||yr(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,o={};return H.forEach(this,(i,s)=>{const r=H.findKey(o,s);if(r){n[r]=Vi(i),delete n[s];return}const c=t?zp(s):String(s).trim();c!==s&&delete n[s],n[c]=Vi(i),o[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return H.forEach(this,(o,i)=>{o!=null&&o!==!1&&(n[i]=t&&H.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(i=>o.set(i)),o}static accessor(t){const o=(this[Il]=this[Il]={accessors:{}}).accessors,i=this.prototype;function s(r){const c=Ko(r);o[c]||(qp(i,r),o[c]=!0)}return H.isArray(t)?t.forEach(s):s(t),this}}Wi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),H.freezeMethods(Wi.prototype),H.freezeMethods(Wi);const Qt=Wi;function br(e,t){const n=this||wr,o=t||n,i=Qt.from(o.headers);let s=o.data;return H.forEach(e,function(c){s=c.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Tl(e){return!!(e&&e.__CANCEL__)}function Go(e,t,n){Ne.call(this,e==null?"canceled":e,Ne.ERR_CANCELED,t,n),this.name="CanceledError"}H.inherits(Go,Ne,{__CANCEL__:!0});function Vp(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new Ne("Request failed with status code "+n.status,[Ne.ERR_BAD_REQUEST,Ne.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Wp=Ut.isStandardBrowserEnv?function(){return{write:function(n,o,i,s,r,c){const u=[];u.push(n+"="+encodeURIComponent(o)),H.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),H.isString(s)&&u.push("path="+s),H.isString(r)&&u.push("domain="+r),c===!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 Kp(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Gp(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Ml(e,t){return e&&!Kp(t)?Gp(e,t):t}const Jp=Ut.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let o;function i(s){let r=s;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=i(window.location.href),function(r){const c=H.isString(r)?i(r):r;return c.protocol===o.protocol&&c.host===o.host}}():function(){return function(){return!0}}();function Yp(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Xp(e,t){e=e||10;const n=new Array(e),o=new Array(e);let i=0,s=0,r;return t=t!==void 0?t:1e3,function(u){const p=Date.now(),f=o[s];r||(r=p),n[i]=u,o[i]=p;let h=s,y=0;for(;h!==i;)y+=n[h++],h=h%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),p-r<t)return;const x=f&&p-f;return x?Math.round(y*1e3/x):void 0}}function Bl(e,t){let n=0;const o=Xp(50,250);return i=>{const s=i.loaded,r=i.lengthComputable?i.total:void 0,c=s-n,u=o(c),p=s<=r;n=s;const f={loaded:s,total:r,progress:r?s/r:void 0,bytes:c,rate:u||void 0,estimated:u&&r&&p?(r-s)/u:void 0,event:i};f[t?"download":"upload"]=!0,e(f)}}const Ki={http:Ep,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,o){let i=e.data;const s=Qt.from(e.headers).normalize(),r=e.responseType;let c;function u(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}H.isFormData(i)&&(Ut.isStandardBrowserEnv||Ut.isStandardBrowserWebWorkerEnv)&&s.setContentType(!1);let p=new XMLHttpRequest;if(e.auth){const x=e.auth.username||"",k=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(x+":"+k))}const f=Ml(e.baseURL,e.url);p.open(e.method.toUpperCase(),kl(f,e.params,e.paramsSerializer),!0),p.timeout=e.timeout;function h(){if(!p)return;const x=Qt.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),O={data:!r||r==="text"||r==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:x,config:e,request:p};Vp(function(G){n(G),u()},function(G){o(G),u()},O),p=null}if("onloadend"in p?p.onloadend=h:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(h)},p.onabort=function(){!p||(o(new Ne("Request aborted",Ne.ECONNABORTED,e,p)),p=null)},p.onerror=function(){o(new Ne("Network Error",Ne.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let k=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const O=e.transitional||Ol;e.timeoutErrorMessage&&(k=e.timeoutErrorMessage),o(new Ne(k,O.clarifyTimeoutError?Ne.ETIMEDOUT:Ne.ECONNABORTED,e,p)),p=null},Ut.isStandardBrowserEnv){const x=(e.withCredentials||Jp(f))&&e.xsrfCookieName&&Wp.read(e.xsrfCookieName);x&&s.set(e.xsrfHeaderName,x)}i===void 0&&s.setContentType(null),"setRequestHeader"in p&&H.forEach(s.toJSON(),function(k,O){p.setRequestHeader(O,k)}),H.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),r&&r!=="json"&&(p.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&p.addEventListener("progress",Bl(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&p.upload&&p.upload.addEventListener("progress",Bl(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=x=>{!p||(o(!x||x.type?new Go(null,e,p):x),p.abort(),p=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const y=Yp(f);if(y&&Ut.protocols.indexOf(y)===-1){o(new Ne("Unsupported protocol "+y+":",Ne.ERR_BAD_REQUEST,e));return}p.send(i||null)})}};H.forEach(Ki,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Zp={getAdapter:e=>{e=H.isArray(e)?e:[e];const{length:t}=e;let n,o;for(let i=0;i<t&&(n=e[i],!(o=H.isString(n)?Ki[n.toLowerCase()]:n));i++);if(!o)throw o===!1?new Ne(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(H.hasOwnProp(Ki,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!H.isFunction(o))throw new TypeError("adapter is not a function");return o},adapters:Ki};function vr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Go(null,e)}function Ll(e){return vr(e),e.headers=Qt.from(e.headers),e.data=br.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Zp.getAdapter(e.adapter||wr.adapter)(e).then(function(o){return vr(e),o.data=br.call(e,e.transformResponse,o),o.headers=Qt.from(o.headers),o},function(o){return Tl(o)||(vr(e),o&&o.response&&(o.response.data=br.call(e,e.transformResponse,o.response),o.response.headers=Qt.from(o.response.headers))),Promise.reject(o)})}const Nl=e=>e instanceof Qt?e.toJSON():e;function Co(e,t){t=t||{};const n={};function o(p,f,h){return H.isPlainObject(p)&&H.isPlainObject(f)?H.merge.call({caseless:h},p,f):H.isPlainObject(f)?H.merge({},f):H.isArray(f)?f.slice():f}function i(p,f,h){if(H.isUndefined(f)){if(!H.isUndefined(p))return o(void 0,p,h)}else return o(p,f,h)}function s(p,f){if(!H.isUndefined(f))return o(void 0,f)}function r(p,f){if(H.isUndefined(f)){if(!H.isUndefined(p))return o(void 0,p)}else return o(void 0,f)}function c(p,f,h){if(h in t)return o(p,f);if(h in e)return o(void 0,p)}const u={url:s,method:s,data:s,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:c,headers:(p,f)=>i(Nl(p),Nl(f),!0)};return H.forEach(Object.keys(e).concat(Object.keys(t)),function(f){const h=u[f]||i,y=h(e[f],t[f],f);H.isUndefined(y)&&h!==c||(n[f]=y)}),n}const Dl="1.3.3",_r={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{_r[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const Rl={};_r.transitional=function(t,n,o){function i(s,r){return"[Axios v"+Dl+"] Transitional option '"+s+"'"+r+(o?". "+o:"")}return(s,r,c)=>{if(t===!1)throw new Ne(i(r," has been removed"+(n?" in "+n:"")),Ne.ERR_DEPRECATED);return n&&!Rl[r]&&(Rl[r]=!0,console.warn(i(r," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,r,c):!0}};function Qp(e,t,n){if(typeof e!="object")throw new Ne("options must be an object",Ne.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let i=o.length;for(;i-- >0;){const s=o[i],r=t[s];if(r){const c=e[s],u=c===void 0||r(c,s,e);if(u!==!0)throw new Ne("option "+s+" must be "+u,Ne.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ne("Unknown option "+s,Ne.ERR_BAD_OPTION)}}const xr={assertOptions:Qp,validators:_r},_n=xr.validators;class Gi{constructor(t){this.defaults=t,this.interceptors={request:new Al,response:new Al}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Co(this.defaults,n);const{transitional:o,paramsSerializer:i,headers:s}=n;o!==void 0&&xr.assertOptions(o,{silentJSONParsing:_n.transitional(_n.boolean),forcedJSONParsing:_n.transitional(_n.boolean),clarifyTimeoutError:_n.transitional(_n.boolean)},!1),i!==void 0&&xr.assertOptions(i,{encode:_n.function,serialize:_n.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r;r=s&&H.merge(s.common,s[n.method]),r&&H.forEach(["delete","get","head","post","put","patch","common"],k=>{delete s[k]}),n.headers=Qt.concat(r,s);const c=[];let u=!0;this.interceptors.request.forEach(function(O){typeof O.runWhen=="function"&&O.runWhen(n)===!1||(u=u&&O.synchronous,c.unshift(O.fulfilled,O.rejected))});const p=[];this.interceptors.response.forEach(function(O){p.push(O.fulfilled,O.rejected)});let f,h=0,y;if(!u){const k=[Ll.bind(this),void 0];for(k.unshift.apply(k,c),k.push.apply(k,p),y=k.length,f=Promise.resolve(n);h<y;)f=f.then(k[h++],k[h++]);return f}y=c.length;let x=n;for(h=0;h<y;){const k=c[h++],O=c[h++];try{x=k(x)}catch(z){O.call(this,z);break}}try{f=Ll.call(this,x)}catch(k){return Promise.reject(k)}for(h=0,y=p.length;h<y;)f=f.then(p[h++],p[h++]);return f}getUri(t){t=Co(this.defaults,t);const n=Ml(t.baseURL,t.url);return kl(n,t.params,t.paramsSerializer)}}H.forEach(["delete","get","head","options"],function(t){Gi.prototype[t]=function(n,o){return this.request(Co(o||{},{method:t,url:n,data:(o||{}).data}))}}),H.forEach(["post","put","patch"],function(t){function n(o){return function(s,r,c){return this.request(Co(c||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:s,data:r}))}}Gi.prototype[t]=n(),Gi.prototype[t+"Form"]=n(!0)});const Ji=Gi;class Cr{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const o=this;this.promise.then(i=>{if(!o._listeners)return;let s=o._listeners.length;for(;s-- >0;)o._listeners[s](i);o._listeners=null}),this.promise.then=i=>{let s;const r=new Promise(c=>{o.subscribe(c),s=c}).then(i);return r.cancel=function(){o.unsubscribe(s)},r},t(function(s,r,c){o.reason||(o.reason=new Go(s,r,c),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 Cr(function(i){t=i}),cancel:t}}}const eh=Cr;function th(e){return function(n){return e.apply(null,n)}}function nh(e){return H.isObject(e)&&e.isAxiosError===!0}const $r={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($r).forEach(([e,t])=>{$r[t]=e});const oh=$r;function jl(e){const t=new Ji(e),n=ul(Ji.prototype.request,t);return H.extend(n,Ji.prototype,t,{allOwnKeys:!0}),H.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return jl(Co(e,i))},n}const tt=jl(wr);tt.Axios=Ji,tt.CanceledError=Go,tt.CancelToken=eh,tt.isCancel=Tl,tt.VERSION=Dl,tt.toFormData=zi,tt.AxiosError=Ne,tt.Cancel=tt.CanceledError,tt.all=function(t){return Promise.all(t)},tt.spread=th,tt.isAxiosError=nh,tt.mergeConfig=Co,tt.AxiosHeaders=Qt,tt.formToJSON=e=>Pl(H.isHTMLForm(e)?new FormData(e):e),tt.HttpStatusCode=oh,tt.default=tt;const Lt=tt,{Axios:T$,AxiosError:M$,CanceledError:B$,isCancel:L$,CancelToken:N$,VERSION:D$,all:R$,Cancel:j$,isAxiosError:F$,spread:H$,toFormData:ih,AxiosHeaders:U$,HttpStatusCode:z$,formToJSON:q$,mergeConfig:V$}=Lt;class sh extends Error{}class Er extends sh{constructor(){super(...arguments);Ce(this,"message","搜索失败!")}}class Fl extends Er{constructor(){super(...arguments);Ce(this,"message","搜索请求响应内容为空!")}}class nt{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=nt.hexChars,o=nt.hexOut;let i,s,r,c;for(c=0;c<4;c+=1)for(s=c*8,i=t[c],r=0;r<8;r+=2)o[s+1+r]=n.charAt(i&15),i>>>=4,o[s+0+r]=n.charAt(i&15),i>>>=4;return o.join("")}static _md5cycle(t,n){let o=t[0],i=t[1],s=t[2],r=t[3];o+=(i&s|~i&r)+n[0]-680876936|0,o=(o<<7|o>>>25)+i|0,r+=(o&i|~o&s)+n[1]-389564586|0,r=(r<<12|r>>>20)+o|0,s+=(r&o|~r&i)+n[2]+606105819|0,s=(s<<17|s>>>15)+r|0,i+=(s&r|~s&o)+n[3]-1044525330|0,i=(i<<22|i>>>10)+s|0,o+=(i&s|~i&r)+n[4]-176418897|0,o=(o<<7|o>>>25)+i|0,r+=(o&i|~o&s)+n[5]+1200080426|0,r=(r<<12|r>>>20)+o|0,s+=(r&o|~r&i)+n[6]-1473231341|0,s=(s<<17|s>>>15)+r|0,i+=(s&r|~s&o)+n[7]-45705983|0,i=(i<<22|i>>>10)+s|0,o+=(i&s|~i&r)+n[8]+1770035416|0,o=(o<<7|o>>>25)+i|0,r+=(o&i|~o&s)+n[9]-1958414417|0,r=(r<<12|r>>>20)+o|0,s+=(r&o|~r&i)+n[10]-42063|0,s=(s<<17|s>>>15)+r|0,i+=(s&r|~s&o)+n[11]-1990404162|0,i=(i<<22|i>>>10)+s|0,o+=(i&s|~i&r)+n[12]+1804603682|0,o=(o<<7|o>>>25)+i|0,r+=(o&i|~o&s)+n[13]-40341101|0,r=(r<<12|r>>>20)+o|0,s+=(r&o|~r&i)+n[14]-1502002290|0,s=(s<<17|s>>>15)+r|0,i+=(s&r|~s&o)+n[15]+1236535329|0,i=(i<<22|i>>>10)+s|0,o+=(i&r|s&~r)+n[1]-165796510|0,o=(o<<5|o>>>27)+i|0,r+=(o&s|i&~s)+n[6]-1069501632|0,r=(r<<9|r>>>23)+o|0,s+=(r&i|o&~i)+n[11]+643717713|0,s=(s<<14|s>>>18)+r|0,i+=(s&o|r&~o)+n[0]-373897302|0,i=(i<<20|i>>>12)+s|0,o+=(i&r|s&~r)+n[5]-701558691|0,o=(o<<5|o>>>27)+i|0,r+=(o&s|i&~s)+n[10]+38016083|0,r=(r<<9|r>>>23)+o|0,s+=(r&i|o&~i)+n[15]-660478335|0,s=(s<<14|s>>>18)+r|0,i+=(s&o|r&~o)+n[4]-405537848|0,i=(i<<20|i>>>12)+s|0,o+=(i&r|s&~r)+n[9]+568446438|0,o=(o<<5|o>>>27)+i|0,r+=(o&s|i&~s)+n[14]-1019803690|0,r=(r<<9|r>>>23)+o|0,s+=(r&i|o&~i)+n[3]-187363961|0,s=(s<<14|s>>>18)+r|0,i+=(s&o|r&~o)+n[8]+1163531501|0,i=(i<<20|i>>>12)+s|0,o+=(i&r|s&~r)+n[13]-1444681467|0,o=(o<<5|o>>>27)+i|0,r+=(o&s|i&~s)+n[2]-51403784|0,r=(r<<9|r>>>23)+o|0,s+=(r&i|o&~i)+n[7]+1735328473|0,s=(s<<14|s>>>18)+r|0,i+=(s&o|r&~o)+n[12]-1926607734|0,i=(i<<20|i>>>12)+s|0,o+=(i^s^r)+n[5]-378558|0,o=(o<<4|o>>>28)+i|0,r+=(o^i^s)+n[8]-2022574463|0,r=(r<<11|r>>>21)+o|0,s+=(r^o^i)+n[11]+1839030562|0,s=(s<<16|s>>>16)+r|0,i+=(s^r^o)+n[14]-35309556|0,i=(i<<23|i>>>9)+s|0,o+=(i^s^r)+n[1]-1530992060|0,o=(o<<4|o>>>28)+i|0,r+=(o^i^s)+n[4]+1272893353|0,r=(r<<11|r>>>21)+o|0,s+=(r^o^i)+n[7]-155497632|0,s=(s<<16|s>>>16)+r|0,i+=(s^r^o)+n[10]-1094730640|0,i=(i<<23|i>>>9)+s|0,o+=(i^s^r)+n[13]+681279174|0,o=(o<<4|o>>>28)+i|0,r+=(o^i^s)+n[0]-358537222|0,r=(r<<11|r>>>21)+o|0,s+=(r^o^i)+n[3]-722521979|0,s=(s<<16|s>>>16)+r|0,i+=(s^r^o)+n[6]+76029189|0,i=(i<<23|i>>>9)+s|0,o+=(i^s^r)+n[9]-640364487|0,o=(o<<4|o>>>28)+i|0,r+=(o^i^s)+n[12]-421815835|0,r=(r<<11|r>>>21)+o|0,s+=(r^o^i)+n[15]+530742520|0,s=(s<<16|s>>>16)+r|0,i+=(s^r^o)+n[2]-995338651|0,i=(i<<23|i>>>9)+s|0,o+=(s^(i|~r))+n[0]-198630844|0,o=(o<<6|o>>>26)+i|0,r+=(i^(o|~s))+n[7]+1126891415|0,r=(r<<10|r>>>22)+o|0,s+=(o^(r|~i))+n[14]-1416354905|0,s=(s<<15|s>>>17)+r|0,i+=(r^(s|~o))+n[5]-57434055|0,i=(i<<21|i>>>11)+s|0,o+=(s^(i|~r))+n[12]+1700485571|0,o=(o<<6|o>>>26)+i|0,r+=(i^(o|~s))+n[3]-1894986606|0,r=(r<<10|r>>>22)+o|0,s+=(o^(r|~i))+n[10]-1051523|0,s=(s<<15|s>>>17)+r|0,i+=(r^(s|~o))+n[1]-2054922799|0,i=(i<<21|i>>>11)+s|0,o+=(s^(i|~r))+n[8]+1873313359|0,o=(o<<6|o>>>26)+i|0,r+=(i^(o|~s))+n[15]-30611744|0,r=(r<<10|r>>>22)+o|0,s+=(o^(r|~i))+n[6]-1560198380|0,s=(s<<15|s>>>17)+r|0,i+=(r^(s|~o))+n[13]+1309151649|0,i=(i<<21|i>>>11)+s|0,o+=(s^(i|~r))+n[4]-145523070|0,o=(o<<6|o>>>26)+i|0,r+=(i^(o|~s))+n[11]-1120210379|0,r=(r<<10|r>>>22)+o|0,s+=(o^(r|~i))+n[2]+718787259|0,s=(s<<15|s>>>17)+r|0,i+=(r^(s|~o))+n[9]-343485551|0,i=(i<<21|i>>>11)+s|0,t[0]=o+t[0]|0,t[1]=i+t[1]|0,t[2]=s+t[2]|0,t[3]=r+t[3]|0}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(nt.stateIdentity),this}appendStr(t){const n=this._buffer8,o=this._buffer32;let i=this._bufferLength,s,r;for(r=0;r<t.length;r+=1){if(s=t.charCodeAt(r),s<128)n[i++]=s;else if(s<2048)n[i++]=(s>>>6)+192,n[i++]=s&63|128;else if(s<55296||s>56319)n[i++]=(s>>>12)+224,n[i++]=s>>>6&63|128,n[i++]=s&63|128;else{if(s=(s-55296)*1024+(t.charCodeAt(++r)-56320)+65536,s>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");n[i++]=(s>>>18)+240,n[i++]=s>>>12&63|128,n[i++]=s>>>6&63|128,n[i++]=s&63|128}i>=64&&(this._dataLength+=64,nt._md5cycle(this._state,o),i-=64,o[0]=o[16])}return this._bufferLength=i,this}appendAsciiStr(t){const n=this._buffer8,o=this._buffer32;let i=this._bufferLength,s,r=0;for(;;){for(s=Math.min(t.length-r,64-i);s--;)n[i++]=t.charCodeAt(r++);if(i<64)break;this._dataLength+=64,nt._md5cycle(this._state,o),i=0}return this._bufferLength=i,this}appendByteArray(t){const n=this._buffer8,o=this._buffer32;let i=this._bufferLength,s,r=0;for(;;){for(s=Math.min(t.length-r,64-i);s--;)n[i++]=t[r++];if(i<64)break;this._dataLength+=64,nt._md5cycle(this._state,o),i=0}return this._bufferLength=i,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,i=this._state;let s;for(this._dataLength=t.length,this._bufferLength=t.buflen,i[0]=o[0],i[1]=o[1],i[2]=o[2],i[3]=o[3],s=0;s<n.length;s+=1)this._buffer8[s]=n.charCodeAt(s)}end(t=!1){const n=this._bufferLength,o=this._buffer8,i=this._buffer32,s=(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,i.set(nt.buffer32Identity.subarray(s),s),n>55&&(nt._md5cycle(this._state,i),i.set(nt.buffer32Identity)),r<=4294967295)i[14]=r;else{const c=r.toString(16).match(/(.*?)(.{0,8})$/);if(c===null)return;const u=parseInt(c[2],16),p=parseInt(c[1],16)||0;i[14]=u,i[15]=p}return nt._md5cycle(this._state,i),t?this._state:nt._hex(this._state)}}if(nt.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),nt.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),nt.hexChars="0123456789abcdef",nt.hexOut=[],nt.onePassHasher=new nt,nt.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592")throw new Error("Md5 self test failed.");var rh={exports:{}};(function(e){var t=function(n){var o=1e7,i=7,s=9007199254740992,r=k(s),c="0123456789abcdefghijklmnopqrstuvwxyz",u=typeof BigInt=="function";function p(d,w,_,C){return typeof d>"u"?p[0]:typeof w<"u"?+w==10&&!_?L(d):R(d,w,_,C):L(d)}function f(d,w){this.value=d,this.sign=w,this.isSmall=!1}f.prototype=Object.create(p.prototype);function h(d){this.value=d,this.sign=d<0,this.isSmall=!0}h.prototype=Object.create(p.prototype);function y(d){this.value=d}y.prototype=Object.create(p.prototype);function x(d){return-s<d&&d<s}function k(d){return d<1e7?[d]:d<1e14?[d%1e7,Math.floor(d/1e7)]:[d%1e7,Math.floor(d/1e7)%1e7,Math.floor(d/1e14)]}function O(d){z(d);var w=d.length;if(w<4&&we(d,r)<0)switch(w){case 0:return 0;case 1:return d[0];case 2:return d[0]+d[1]*o;default:return d[0]+(d[1]+d[2]*o)*o}return d}function z(d){for(var w=d.length;d[--w]===0;);d.length=w+1}function G(d){for(var w=new Array(d),_=-1;++_<d;)w[_]=0;return w}function D(d){return d>0?Math.floor(d):Math.ceil(d)}function j(d,w){var _=d.length,C=w.length,A=new Array(_),E=0,N=o,F,K;for(K=0;K<C;K++)F=d[K]+w[K]+E,E=F>=N?1:0,A[K]=F-E*N;for(;K<_;)F=d[K]+E,E=F===N?1:0,A[K++]=F-E*N;return E>0&&A.push(E),A}function Z(d,w){return d.length>=w.length?j(d,w):j(w,d)}function ne(d,w){var _=d.length,C=new Array(_),A=o,E,N;for(N=0;N<_;N++)E=d[N]-A+w,w=Math.floor(E/A),C[N]=E-w*A,w+=1;for(;w>0;)C[N++]=w%A,w=Math.floor(w/A);return C}f.prototype.add=function(d){var w=L(d);if(this.sign!==w.sign)return this.subtract(w.negate());var _=this.value,C=w.value;return w.isSmall?new f(ne(_,Math.abs(C)),this.sign):new f(Z(_,C),this.sign)},f.prototype.plus=f.prototype.add,h.prototype.add=function(d){var w=L(d),_=this.value;if(_<0!==w.sign)return this.subtract(w.negate());var C=w.value;if(w.isSmall){if(x(_+C))return new h(_+C);C=k(Math.abs(C))}return new f(ne(C,Math.abs(_)),_<0)},h.prototype.plus=h.prototype.add,y.prototype.add=function(d){return new y(this.value+L(d).value)},y.prototype.plus=y.prototype.add;function ee(d,w){var _=d.length,C=w.length,A=new Array(_),E=0,N=o,F,K;for(F=0;F<C;F++)K=d[F]-E-w[F],K<0?(K+=N,E=1):E=0,A[F]=K;for(F=C;F<_;F++){if(K=d[F]-E,K<0)K+=N;else{A[F++]=K;break}A[F]=K}for(;F<_;F++)A[F]=d[F];return z(A),A}function Me(d,w,_){var C;return we(d,w)>=0?C=ee(d,w):(C=ee(w,d),_=!_),C=O(C),typeof C=="number"?(_&&(C=-C),new h(C)):new f(C,_)}function Ee(d,w,_){var C=d.length,A=new Array(C),E=-w,N=o,F,K;for(F=0;F<C;F++)K=d[F]+E,E=Math.floor(K/N),K%=N,A[F]=K<0?K+N:K;return A=O(A),typeof A=="number"?(_&&(A=-A),new h(A)):new f(A,_)}f.prototype.subtract=function(d){var w=L(d);if(this.sign!==w.sign)return this.add(w.negate());var _=this.value,C=w.value;return w.isSmall?Ee(_,Math.abs(C),this.sign):Me(_,C,this.sign)},f.prototype.minus=f.prototype.subtract,h.prototype.subtract=function(d){var w=L(d),_=this.value;if(_<0!==w.sign)return this.add(w.negate());var C=w.value;return w.isSmall?new h(_-C):Ee(C,Math.abs(_),_>=0)},h.prototype.minus=h.prototype.subtract,y.prototype.subtract=function(d){return new y(this.value-L(d).value)},y.prototype.minus=y.prototype.subtract,f.prototype.negate=function(){return new f(this.value,!this.sign)},h.prototype.negate=function(){var d=this.sign,w=new h(-this.value);return w.sign=!d,w},y.prototype.negate=function(){return new y(-this.value)},f.prototype.abs=function(){return new f(this.value,!1)},h.prototype.abs=function(){return new h(Math.abs(this.value))},y.prototype.abs=function(){return new y(this.value>=0?this.value:-this.value)};function Se(d,w){var _=d.length,C=w.length,A=_+C,E=G(A),N=o,F,K,me,he,le;for(me=0;me<_;++me){he=d[me];for(var Be=0;Be<C;++Be)le=w[Be],F=he*le+E[me+Be],K=Math.floor(F/N),E[me+Be]=F-K*N,E[me+Be+1]+=K}return z(E),E}function Pe(d,w){var _=d.length,C=new Array(_),A=o,E=0,N,F;for(F=0;F<_;F++)N=d[F]*w+E,E=Math.floor(N/A),C[F]=N-E*A;for(;E>0;)C[F++]=E%A,E=Math.floor(E/A);return C}function fe(d,w){for(var _=[];w-- >0;)_.push(0);return _.concat(d)}function te(d,w){var _=Math.max(d.length,w.length);if(_<=30)return Se(d,w);_=Math.ceil(_/2);var C=d.slice(_),A=d.slice(0,_),E=w.slice(_),N=w.slice(0,_),F=te(A,N),K=te(C,E),me=te(Z(A,C),Z(N,E)),he=Z(Z(F,fe(ee(ee(me,F),K),_)),fe(K,2*_));return z(he),he}function xe(d,w){return-.012*d-.012*w+15e-6*d*w>0}f.prototype.multiply=function(d){var w=L(d),_=this.value,C=w.value,A=this.sign!==w.sign,E;if(w.isSmall){if(C===0)return p[0];if(C===1)return this;if(C===-1)return this.negate();if(E=Math.abs(C),E<o)return new f(Pe(_,E),A);C=k(E)}return xe(_.length,C.length)?new f(te(_,C),A):new f(Se(_,C),A)},f.prototype.times=f.prototype.multiply;function oe(d,w,_){return d<o?new f(Pe(w,d),_):new f(Se(w,k(d)),_)}h.prototype._multiplyBySmall=function(d){return x(d.value*this.value)?new h(d.value*this.value):oe(Math.abs(d.value),k(Math.abs(this.value)),this.sign!==d.sign)},f.prototype._multiplyBySmall=function(d){return d.value===0?p[0]:d.value===1?this:d.value===-1?this.negate():oe(Math.abs(d.value),this.value,this.sign!==d.sign)},h.prototype.multiply=function(d){return L(d)._multiplyBySmall(this)},h.prototype.times=h.prototype.multiply,y.prototype.multiply=function(d){return new y(this.value*L(d).value)},y.prototype.times=y.prototype.multiply;function Re(d){var w=d.length,_=G(w+w),C=o,A,E,N,F,K;for(N=0;N<w;N++){F=d[N],E=0-F*F;for(var me=N;me<w;me++)K=d[me],A=2*(F*K)+_[N+me]+E,E=Math.floor(A/C),_[N+me]=A-E*C;_[N+w]=E}return z(_),_}f.prototype.square=function(){return new f(Re(this.value),!1)},h.prototype.square=function(){var d=this.value*this.value;return x(d)?new h(d):new f(Re(k(Math.abs(this.value))),!1)},y.prototype.square=function(d){return new y(this.value*this.value)};function M(d,w){var _=d.length,C=w.length,A=o,E=G(w.length),N=w[C-1],F=Math.ceil(A/(2*N)),K=Pe(d,F),me=Pe(w,F),he,le,Be,bt,ft,Ai,Oi;for(K.length<=_&&K.push(0),me.push(0),N=me[C-1],le=_-C;le>=0;le--){for(he=A-1,K[le+C]!==N&&(he=Math.floor((K[le+C]*A+K[le+C-1])/N)),Be=0,bt=0,Ai=me.length,ft=0;ft<Ai;ft++)Be+=he*me[ft],Oi=Math.floor(Be/A),bt+=K[le+ft]-(Be-Oi*A),Be=Oi,bt<0?(K[le+ft]=bt+A,bt=-1):(K[le+ft]=bt,bt=0);for(;bt!==0;){for(he-=1,Be=0,ft=0;ft<Ai;ft++)Be+=K[le+ft]-A+me[ft],Be<0?(K[le+ft]=Be+A,Be=0):(K[le+ft]=Be,Be=1);bt+=Be}E[le]=he}return K=B(K,F)[0],[O(E),O(K)]}function W(d,w){for(var _=d.length,C=w.length,A=[],E=[],N=o,F,K,me,he,le;_;){if(E.unshift(d[--_]),z(E),we(E,w)<0){A.push(0);continue}K=E.length,me=E[K-1]*N+E[K-2],he=w[C-1]*N+w[C-2],K>C&&(me=(me+1)*N),F=Math.ceil(me/he);do{if(le=Pe(w,F),we(le,E)<=0)break;F--}while(F);A.push(F),E=ee(E,le)}return A.reverse(),[O(A),O(E)]}function B(d,w){var _=d.length,C=G(_),A=o,E,N,F,K;for(F=0,E=_-1;E>=0;--E)K=F*A+d[E],N=D(K/w),F=K-N*w,C[E]=N|0;return[C,F|0]}function ce(d,w){var _,C=L(w);if(u)return[new y(d.value/C.value),new y(d.value%C.value)];var A=d.value,E=C.value,N;if(E===0)throw new Error("Cannot divide by zero");if(d.isSmall)return C.isSmall?[new h(D(A/E)),new h(A%E)]:[p[0],d];if(C.isSmall){if(E===1)return[d,p[0]];if(E==-1)return[d.negate(),p[0]];var F=Math.abs(E);if(F<o){_=B(A,F),N=O(_[0]);var K=_[1];return d.sign&&(K=-K),typeof N=="number"?(d.sign!==C.sign&&(N=-N),[new h(N),new h(K)]):[new f(N,d.sign!==C.sign),new h(K)]}E=k(F)}var me=we(A,E);if(me===-1)return[p[0],d];if(me===0)return[p[d.sign===C.sign?1:-1],p[0]];A.length+E.length<=200?_=M(A,E):_=W(A,E),N=_[0];var he=d.sign!==C.sign,le=_[1],Be=d.sign;return typeof N=="number"?(he&&(N=-N),N=new h(N)):N=new f(N,he),typeof le=="number"?(Be&&(le=-le),le=new h(le)):le=new f(le,Be),[N,le]}f.prototype.divmod=function(d){var w=ce(this,d);return{quotient:w[0],remainder:w[1]}},y.prototype.divmod=h.prototype.divmod=f.prototype.divmod,f.prototype.divide=function(d){return ce(this,d)[0]},y.prototype.over=y.prototype.divide=function(d){return new y(this.value/L(d).value)},h.prototype.over=h.prototype.divide=f.prototype.over=f.prototype.divide,f.prototype.mod=function(d){return ce(this,d)[1]},y.prototype.mod=y.prototype.remainder=function(d){return new y(this.value%L(d).value)},h.prototype.remainder=h.prototype.mod=f.prototype.remainder=f.prototype.mod,f.prototype.pow=function(d){var w=L(d),_=this.value,C=w.value,A,E,N;if(C===0)return p[1];if(_===0)return p[0];if(_===1)return p[1];if(_===-1)return w.isEven()?p[1]:p[-1];if(w.sign)return p[0];if(!w.isSmall)throw new Error("The exponent "+w.toString()+" is too large.");if(this.isSmall&&x(A=Math.pow(_,C)))return new h(D(A));for(E=this,N=p[1];C&!0&&(N=N.times(E),--C),C!==0;)C/=2,E=E.square();return N},h.prototype.pow=f.prototype.pow,y.prototype.pow=function(d){var w=L(d),_=this.value,C=w.value,A=BigInt(0),E=BigInt(1),N=BigInt(2);if(C===A)return p[1];if(_===A)return p[0];if(_===E)return p[1];if(_===BigInt(-1))return w.isEven()?p[1]:p[-1];if(w.isNegative())return new y(A);for(var F=this,K=p[1];(C&E)===E&&(K=K.times(F),--C),C!==A;)C/=N,F=F.square();return K},f.prototype.modPow=function(d,w){if(d=L(d),w=L(w),w.isZero())throw new Error("Cannot take modPow with modulus 0");var _=p[1],C=this.mod(w);for(d.isNegative()&&(d=d.multiply(p[-1]),C=C.modInv(w));d.isPositive();){if(C.isZero())return p[0];d.isOdd()&&(_=_.multiply(C).mod(w)),d=d.divide(2),C=C.square().mod(w)}return _},y.prototype.modPow=h.prototype.modPow=f.prototype.modPow;function we(d,w){if(d.length!==w.length)return d.length>w.length?1:-1;for(var _=d.length-1;_>=0;_--)if(d[_]!==w[_])return d[_]>w[_]?1:-1;return 0}f.prototype.compareAbs=function(d){var w=L(d),_=this.value,C=w.value;return w.isSmall?1:we(_,C)},h.prototype.compareAbs=function(d){var w=L(d),_=Math.abs(this.value),C=w.value;return w.isSmall?(C=Math.abs(C),_===C?0:_>C?1:-1):-1},y.prototype.compareAbs=function(d){var w=this.value,_=L(d).value;return w=w>=0?w:-w,_=_>=0?_:-_,w===_?0:w>_?1:-1},f.prototype.compare=function(d){if(d===1/0)return-1;if(d===-1/0)return 1;var w=L(d),_=this.value,C=w.value;return this.sign!==w.sign?w.sign?1:-1:w.isSmall?this.sign?-1:1:we(_,C)*(this.sign?-1:1)},f.prototype.compareTo=f.prototype.compare,h.prototype.compare=function(d){if(d===1/0)return-1;if(d===-1/0)return 1;var w=L(d),_=this.value,C=w.value;return w.isSmall?_==C?0:_>C?1:-1:_<0!==w.sign?_<0?-1:1:_<0?1:-1},h.prototype.compareTo=h.prototype.compare,y.prototype.compare=function(d){if(d===1/0)return-1;if(d===-1/0)return 1;var w=this.value,_=L(d).value;return w===_?0:w>_?1:-1},y.prototype.compareTo=y.prototype.compare,f.prototype.equals=function(d){return this.compare(d)===0},y.prototype.eq=y.prototype.equals=h.prototype.eq=h.prototype.equals=f.prototype.eq=f.prototype.equals,f.prototype.notEquals=function(d){return this.compare(d)!==0},y.prototype.neq=y.prototype.notEquals=h.prototype.neq=h.prototype.notEquals=f.prototype.neq=f.prototype.notEquals,f.prototype.greater=function(d){return this.compare(d)>0},y.prototype.gt=y.prototype.greater=h.prototype.gt=h.prototype.greater=f.prototype.gt=f.prototype.greater,f.prototype.lesser=function(d){return this.compare(d)<0},y.prototype.lt=y.prototype.lesser=h.prototype.lt=h.prototype.lesser=f.prototype.lt=f.prototype.lesser,f.prototype.greaterOrEquals=function(d){return this.compare(d)>=0},y.prototype.geq=y.prototype.greaterOrEquals=h.prototype.geq=h.prototype.greaterOrEquals=f.prototype.geq=f.prototype.greaterOrEquals,f.prototype.lesserOrEquals=function(d){return this.compare(d)<=0},y.prototype.leq=y.prototype.lesserOrEquals=h.prototype.leq=h.prototype.lesserOrEquals=f.prototype.leq=f.prototype.lesserOrEquals,f.prototype.isEven=function(){return(this.value[0]&1)===0},h.prototype.isEven=function(){return(this.value&1)===0},y.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},f.prototype.isOdd=function(){return(this.value[0]&1)===1},h.prototype.isOdd=function(){return(this.value&1)===1},y.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},f.prototype.isPositive=function(){return!this.sign},h.prototype.isPositive=function(){return this.value>0},y.prototype.isPositive=h.prototype.isPositive,f.prototype.isNegative=function(){return this.sign},h.prototype.isNegative=function(){return this.value<0},y.prototype.isNegative=h.prototype.isNegative,f.prototype.isUnit=function(){return!1},h.prototype.isUnit=function(){return Math.abs(this.value)===1},y.prototype.isUnit=function(){return this.abs().value===BigInt(1)},f.prototype.isZero=function(){return!1},h.prototype.isZero=function(){return this.value===0},y.prototype.isZero=function(){return this.value===BigInt(0)},f.prototype.isDivisibleBy=function(d){var w=L(d);return w.isZero()?!1:w.isUnit()?!0:w.compareAbs(2)===0?this.isEven():this.mod(w).isZero()},y.prototype.isDivisibleBy=h.prototype.isDivisibleBy=f.prototype.isDivisibleBy;function Oe(d){var w=d.abs();if(w.isUnit())return!1;if(w.equals(2)||w.equals(3)||w.equals(5))return!0;if(w.isEven()||w.isDivisibleBy(3)||w.isDivisibleBy(5))return!1;if(w.lesser(49))return!0}function Ge(d,w){for(var _=d.prev(),C=_,A=0,E,N,F;C.isEven();)C=C.divide(2),A++;e:for(N=0;N<w.length;N++)if(!d.lesser(w[N])&&(F=t(w[N]).modPow(C,d),!(F.isUnit()||F.equals(_)))){for(E=A-1;E!=0;E--){if(F=F.square().mod(d),F.isUnit())return!1;if(F.equals(_))continue e}return!1}return!0}f.prototype.isPrime=function(d){var w=Oe(this);if(w!==n)return w;var _=this.abs(),C=_.bitLength();if(C<=64)return Ge(_,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var A=Math.log(2)*C.toJSNumber(),E=Math.ceil(d===!0?2*Math.pow(A,2):A),N=[],F=0;F<E;F++)N.push(t(F+2));return Ge(_,N)},y.prototype.isPrime=h.prototype.isPrime=f.prototype.isPrime,f.prototype.isProbablePrime=function(d,w){var _=Oe(this);if(_!==n)return _;for(var C=this.abs(),A=d===n?5:d,E=[],N=0;N<A;N++)E.push(t.randBetween(2,C.minus(2),w));return Ge(C,E)},y.prototype.isProbablePrime=h.prototype.isProbablePrime=f.prototype.isProbablePrime,f.prototype.modInv=function(d){for(var w=t.zero,_=t.one,C=L(d),A=this.abs(),E,N,F;!A.isZero();)E=C.divide(A),N=w,F=C,w=_,C=A,_=N.subtract(E.multiply(_)),A=F.subtract(E.multiply(A));if(!C.isUnit())throw new Error(this.toString()+" and "+d.toString()+" are not co-prime");return w.compare(0)===-1&&(w=w.add(d)),this.isNegative()?w.negate():w},y.prototype.modInv=h.prototype.modInv=f.prototype.modInv,f.prototype.next=function(){var d=this.value;return this.sign?Ee(d,1,this.sign):new f(ne(d,1),this.sign)},h.prototype.next=function(){var d=this.value;return d+1<s?new h(d+1):new f(r,!1)},y.prototype.next=function(){return new y(this.value+BigInt(1))},f.prototype.prev=function(){var d=this.value;return this.sign?new f(ne(d,1),!0):Ee(d,1,this.sign)},h.prototype.prev=function(){var d=this.value;return d-1>-s?new h(d-1):new f(r,!0)},y.prototype.prev=function(){return new y(this.value-BigInt(1))};for(var Je=[1];2*Je[Je.length-1]<=o;)Je.push(2*Je[Je.length-1]);var At=Je.length,Ot=Je[At-1];function wn(d){return Math.abs(d)<=o}f.prototype.shiftLeft=function(d){var w=L(d).toJSNumber();if(!wn(w))throw new Error(String(w)+" is too large for shifting.");if(w<0)return this.shiftRight(-w);var _=this;if(_.isZero())return _;for(;w>=At;)_=_.multiply(Ot),w-=At-1;return _.multiply(Je[w])},y.prototype.shiftLeft=h.prototype.shiftLeft=f.prototype.shiftLeft,f.prototype.shiftRight=function(d){var w,_=L(d).toJSNumber();if(!wn(_))throw new Error(String(_)+" is too large for shifting.");if(_<0)return this.shiftLeft(-_);for(var C=this;_>=At;){if(C.isZero()||C.isNegative()&&C.isUnit())return C;w=ce(C,Ot),C=w[1].isNegative()?w[0].prev():w[0],_-=At-1}return w=ce(C,Je[_]),w[1].isNegative()?w[0].prev():w[0]},y.prototype.shiftRight=h.prototype.shiftRight=f.prototype.shiftRight;function wt(d,w,_){w=L(w);for(var C=d.isNegative(),A=w.isNegative(),E=C?d.not():d,N=A?w.not():w,F=0,K=0,me=null,he=null,le=[];!E.isZero()||!N.isZero();)me=ce(E,Ot),F=me[1].toJSNumber(),C&&(F=Ot-1-F),he=ce(N,Ot),K=he[1].toJSNumber(),A&&(K=Ot-1-K),E=me[0],N=he[0],le.push(_(F,K));for(var Be=_(C?1:0,A?1:0)!==0?t(-1):t(0),bt=le.length-1;bt>=0;bt-=1)Be=Be.multiply(Ot).add(t(le[bt]));return Be}f.prototype.not=function(){return this.negate().prev()},y.prototype.not=h.prototype.not=f.prototype.not,f.prototype.and=function(d){return wt(this,d,function(w,_){return w&_})},y.prototype.and=h.prototype.and=f.prototype.and,f.prototype.or=function(d){return wt(this,d,function(w,_){return w|_})},y.prototype.or=h.prototype.or=f.prototype.or,f.prototype.xor=function(d){return wt(this,d,function(w,_){return w^_})},y.prototype.xor=h.prototype.xor=f.prototype.xor;var yt=1<<30,lt=(o&-o)*(o&-o)|yt;function Xe(d){var w=d.value,_=typeof w=="number"?w|yt:typeof w=="bigint"?w|BigInt(yt):w[0]+w[1]*o|lt;return _&-_}function Hn(d,w){if(w.compareTo(d)<=0){var _=Hn(d,w.square(w)),C=_.p,A=_.e,E=C.multiply(w);return E.compareTo(d)<=0?{p:E,e:A*2+1}:{p:C,e:A*2}}return{p:t(1),e:0}}f.prototype.bitLength=function(){var d=this;return d.compareTo(t(0))<0&&(d=d.negate().subtract(t(1))),d.compareTo(t(0))===0?t(0):t(Hn(d,t(2)).e).add(t(1))},y.prototype.bitLength=h.prototype.bitLength=f.prototype.bitLength;function at(d,w){return d=L(d),w=L(w),d.greater(w)?d:w}function b(d,w){return d=L(d),w=L(w),d.lesser(w)?d:w}function S(d,w){if(d=L(d).abs(),w=L(w).abs(),d.equals(w))return d;if(d.isZero())return w;if(w.isZero())return d;for(var _=p[1],C,A;d.isEven()&&w.isEven();)C=b(Xe(d),Xe(w)),d=d.divide(C),w=w.divide(C),_=_.multiply(C);for(;d.isEven();)d=d.divide(Xe(d));do{for(;w.isEven();)w=w.divide(Xe(w));d.greater(w)&&(A=w,w=d,d=A),w=w.subtract(d)}while(!w.isZero());return _.isUnit()?d:d.multiply(_)}function I(d,w){return d=L(d).abs(),w=L(w).abs(),d.divide(S(d,w)).multiply(w)}function P(d,w,_){d=L(d),w=L(w);var C=_||Math.random,A=b(d,w),E=at(d,w),N=E.subtract(A).add(1);if(N.isSmall)return A.add(Math.floor(C()*N));for(var F=U(N,o).value,K=[],me=!0,he=0;he<F.length;he++){var le=me?F[he]+(he+1<F.length?F[he+1]/o:0):o,Be=D(C()*le);K.push(Be),Be<F[he]&&(me=!1)}return A.add(p.fromArray(K,o,!1))}var R=function(d,w,_,C){_=_||c,d=String(d),C||(d=d.toLowerCase(),_=_.toLowerCase());var A=d.length,E,N=Math.abs(w),F={};for(E=0;E<_.length;E++)F[_[E]]=E;for(E=0;E<A;E++){var K=d[E];if(K!=="-"&&K in F&&F[K]>=N){if(K==="1"&&N===1)continue;throw new Error(K+" is not a valid digit in base "+w+".")}}w=L(w);var me=[],he=d[0]==="-";for(E=he?1:0;E<d.length;E++){var K=d[E];if(K in F)me.push(L(F[K]));else if(K==="<"){var le=E;do E++;while(d[E]!==">"&&E<d.length);me.push(L(d.slice(le+1,E)))}else throw new Error(K+" is not a valid character")}return J(me,w,he)};function J(d,w,_){var C=p[0],A=p[1],E;for(E=d.length-1;E>=0;E--)C=C.add(d[E].times(A)),A=A.times(w);return _?C.negate():C}function X(d,w){return w=w||c,d<w.length?w[d]:"<"+d+">"}function U(d,w){if(w=t(w),w.isZero()){if(d.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(w.equals(-1)){if(d.isZero())return{value:[0],isNegative:!1};if(d.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-d.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var _=Array.apply(null,Array(d.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return _.unshift([1]),{value:[].concat.apply([],_),isNegative:!1}}var C=!1;if(d.isNegative()&&w.isPositive()&&(C=!0,d=d.abs()),w.isUnit())return d.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(d.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:C};for(var A=[],E=d,N;E.isNegative()||E.compareAbs(w)>=0;){N=E.divmod(w),E=N.quotient;var F=N.remainder;F.isNegative()&&(F=w.minus(F).abs(),E=E.next()),A.push(F.toJSNumber())}return A.push(E.toJSNumber()),{value:A.reverse(),isNegative:C}}function V(d,w,_){var C=U(d,w);return(C.isNegative?"-":"")+C.value.map(function(A){return X(A,_)}).join("")}f.prototype.toArray=function(d){return U(this,d)},h.prototype.toArray=function(d){return U(this,d)},y.prototype.toArray=function(d){return U(this,d)},f.prototype.toString=function(d,w){if(d===n&&(d=10),d!==10)return V(this,d,w);for(var _=this.value,C=_.length,A=String(_[--C]),E="0000000",N;--C>=0;)N=String(_[C]),A+=E.slice(N.length)+N;var F=this.sign?"-":"";return F+A},h.prototype.toString=function(d,w){return d===n&&(d=10),d!=10?V(this,d,w):String(this.value)},y.prototype.toString=h.prototype.toString,y.prototype.toJSON=f.prototype.toJSON=h.prototype.toJSON=function(){return this.toString()},f.prototype.valueOf=function(){return parseInt(this.toString(),10)},f.prototype.toJSNumber=f.prototype.valueOf,h.prototype.valueOf=function(){return this.value},h.prototype.toJSNumber=h.prototype.valueOf,y.prototype.valueOf=y.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function q(d){if(x(+d)){var w=+d;if(w===D(w))return u?new y(BigInt(w)):new h(w);throw new Error("Invalid integer: "+d)}var _=d[0]==="-";_&&(d=d.slice(1));var C=d.split(/e/i);if(C.length>2)throw new Error("Invalid integer: "+C.join("e"));if(C.length===2){var A=C[1];if(A[0]==="+"&&(A=A.slice(1)),A=+A,A!==D(A)||!x(A))throw new Error("Invalid integer: "+A+" is not a valid exponent.");var E=C[0],N=E.indexOf(".");if(N>=0&&(A-=E.length-N-1,E=E.slice(0,N)+E.slice(N+1)),A<0)throw new Error("Cannot include negative exponent part for integers");E+=new Array(A+1).join("0"),d=E}var F=/^([0-9][0-9]*)$/.test(d);if(!F)throw new Error("Invalid integer: "+d);if(u)return new y(BigInt(_?"-"+d:d));for(var K=[],me=d.length,he=i,le=me-he;me>0;)K.push(+d.slice(le,me)),le-=he,le<0&&(le=0),me-=he;return z(K),new f(K,_)}function ie(d){if(u)return new y(BigInt(d));if(x(d)){if(d!==D(d))throw new Error(d+" is not an integer.");return new h(d)}return q(d.toString())}function L(d){return typeof d=="number"?ie(d):typeof d=="string"?q(d):typeof d=="bigint"?new y(d):d}for(var se=0;se<1e3;se++)p[se]=L(se),se>0&&(p[-se]=L(-se));return p.one=p[1],p.zero=p[0],p.minusOne=p[-1],p.max=at,p.min=b,p.gcd=S,p.lcm=I,p.isInstance=function(d){return d instanceof f||d instanceof h||d instanceof y},p.randBetween=P,p.fromArray=function(d,w,_){return J(d.map(L),L(w||10),_)},p}();e.hasOwnProperty("exports")&&(e.exports=t)})(rh);async function ah(e,t,n){const o=new URLSearchParams({page:e.toString(),uid:n.toString(),sign:t,time:Ni().toString()});return(await Lt.post("https://115.com/web/lixian/?ct=lixian&ac=task_lists",o,{withCredentials:!0,timeout:6e4})).data}async function lh(){return(await Lt.get(`https://115.com/?ct=offline&ac=space&_=${Date.now()}`,{timeout:3e4,withCredentials:!0})).data}async function ch(){const t=(await Lt.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 uh(e){const t=il(e),o=(await Lt.get("https://webapi.115.com/files?"+t,{timeout:12e4,withCredentials:!0})).data;if(o.state)return o;throw new Error(o.error)}async function fh(e,t=500){let n=[],o=0;for(;;){e.offset=o;const i=await uh(e);if(!i.data||!i.data.length||(n=[...n,...i.data],o+=e.limit,o>=i.count))break;await Xt(t)}return n}async function dh(e){const t=il(e),n=await Lt.get("https://webapi.115.com/files/search?"+t,{timeout:12e4,withCredentials:!0});if(n.data==="")throw new Fl;const o=n.data;if(o.state)return o;throw new Er(o.error)}async function ph(e,t=500,n=!1){let o=[],i=0,s=e.limit;const r=1e4,c=115,u=r-r%s;let p=s;for(;;){if(n){if(i>=u&&i<r){const h=r-u;p=Math.min(h,p)}i>=r&&(p=c)}e.offset=i,e.limit=p;const f=await dh(e);if(!f.data||!f.data.length||(o=[...o,...f.data],i+=p,i>=f.count))break;await Xt(t)}return o}async function hh(e,t){const n=new URLSearchParams({pid:e,ignore_warn:"1"});return t.forEach((i,s)=>{n.append(`fid[${s}]`,i)}),(await Lt.post("https://webapi.115.com/rb/delete",n,{timeout:12e4,withCredentials:!0})).data}async function Hl(e,t,n,o){let i=0,s=0;for(;;){const r=t.slice(i,i+n);if((await hh(e,r)).state&&(s+=r.length),i+=n,i>=t.length)break;await Xt(o)}return s}async function mh(e,t){const n=new URLSearchParams({pid:e,cname:t});return(await Lt.post("https://webapi.115.com/files/add",n,{timeout:12e4,withCredentials:!0})).data}async function gh(e,t){const n=new URLSearchParams({pid:e});return t.forEach((i,s)=>{n.append(`fid[${s}]`,i)}),(await Lt.post("https://webapi.115.com/files/move",n,{timeout:12e4,withCredentials:!0})).data}async function Ul(e){const t=new URLSearchParams({cid:e});return(await Lt.get("https://webapi.115.com/category/get?"+t.toString(),{timeout:12e4,withCredentials:!0})).data}async function wh(e,t,n,o){const i={uid:o.toString(),sign:t.sign,time:Ni().toString()};n&&(i.flag="1");const s=ih(i);return e.forEach((c,u)=>{s.append(`hash[${u}]`,c)}),(await Lt.post("https://115.com/web/lixian/?ct=lixian&ac=task_del",s,{timeout:12e4,withCredentials:!0})).data}async function zt(e=!0){const t=Jo().GetCurWangPanCid();return!t&&e?(Jo().Core.MinMessage.Show({text:'不支持"根目录"!',timeout:1e3}),""):t}async function yh(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 i=typeof t[o];["string","number"].indexOf(i)>-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 qt(e){const t=e.attr("file_size"),n=e.attr("iv")==="1";return{fid:e.attr("file_id")||"",cid:e.attr("cid")||"",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,cate_id:e.attr("cate_id")||""}}function Jo(){return unsafeWindow.TOP?unsafeWindow.TOP:unsafeWindow}function bh(){return unsafeWindow.top===unsafeWindow?unsafeWindow.Ext:unsafeWindow.top.Ext}async function vh(e){return new Promise((t,n)=>{Jo().Core.DataAccess.Dir.GetDetail("1",e,o=>t(o))})}async function _h(){const e=await zt(),t=await vh(e);return await yh(e,t)}async function Yi(){return window.top!==window?$(document):$('iframe[name="wangpan"], .wrap-view iframe:eq(0)').contents()}async function $o(){return(await Yi()).find(".list-contents, .list-thumb")}async function xh(e){const t=await $o();return e?t.find("li.selected"):t.find("li")}async function Sr(e){const t=await xh(e),n=[];for(let o=0;o<t.length;o++){const i=t.eq(o),s=await qt(i);n.push(s)}return n}async function Ch(){const e=await Yi(),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 $h(){const e=await zt();(await $o()).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 qn(e=!1){const t=await zt();if(!t)return null;const n=await $o(),o=await _h();return e||o.hide(),n.find(`li[cate_id="${t}"]`).length||n.append(o),o}async function kr(e,t,n){n&&await $h(),Jo().Core.FileMenu.DoEvent([e],t,null)}function zl(e){return`https://115.com/?${new URLSearchParams({cid:e}).toString()}&offset=0&mode=wangpan`}function Ar(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 Eh(e){return`https://v.anxia.com/?${new URLSearchParams({pickcode:e,share_id:"0"}).toString()}`}async function Sh(e){unsafeWindow.Main.ReInstance({type:e.type,offset:0,o:cl.userPtime,asc:ll.false,star:e.star,suffix:e.suffix})}async function kh(){return(await $o()).find("li.selected")}async function Ah(){const e=await kh();return e?await qt(e):null}function Oh(e){return e.replace(/[/\\:*?"<>|]/g,"_")}async function Ph(e){const n=(await Ul(e.fid||e.cate_id)).paths.slice(1).map(s=>s.file_name).join("/"),o=Oh(e.n);return`/${n}/${o}`}const Ih=[{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:"{变量名:upper}",label:"转大写"},{key:"{变量名:lower}",label:"转小写"},{key:"{变量名:number}",label:"转数字"},{key:"{变量名:manual}",label:"手动输入"}]}];async function Or(e,t,n){var u;let o=t.url;const i={dir_id:"cid",file_id:"fid",pick_code:"pc",full_name:"n",file_suffix:"ico",file_hash:"sha",file_size:"s"},s=!!e.fid,r=/{(\w+)(:\w+(:\w+)?)?}/g,c=o.match(r);if(c){const p=["file_path","file_dir","clouddrive_stream_url","clouddrive_down_url","clouddrive_playlist_url"];for(const f of c){const h=f.replace(/[{}]/g,"").split(":")[0],y=f.replace(/[{}]/g,"").split(":")[1];let x=((u=e[i[h]])==null?void 0:u.toString())||"",k="";switch(p.includes(h)&&(k=await Ph(e)),h){case"pure_name":x=e.n.replace(/\.[^.]+$/,"");break;case"file_path":x=k;break;case"file_dir":x=k.replace(/\/[^/]+$/,"");break;case"clouddrive_stream_url":s?x=await Fi(n,k):x=await Wd(n,k);break;case"clouddrive_down_url":x=await Fi(n,k);break;case"clouddrive_playlist_url":let O="";s?O=k.replace(/\/[^/]+$/,""):O=k,x=await Fi(n,O),x+=".clfsplaylist.m3u";break;case"cloud115_down_url":throw new Error(`暂不支持变量:${h}`);case"cloud115_down_cookie":throw new Error(`暂不支持变量:${h}`);case"user_agent":x=navigator.userAgent;break}if(x=x.toString(),y){const O=y.split(":");for(const z of O)switch(z){case"search":x=Ar({search_value:x});break;case"encode":x=encodeURIComponent(x);break;case"base64":x=btoa(x);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:G,value:D}=await ve.fire({title:"手动输入",input:"textarea",inputValue:x,showCancelButton:!0,inputValidator:j=>j?null:"输入不能为空!"});if(!G)throw new Error("已取消手动输入。");if(D=(D==null?void 0:D.trim())||"",D==="")throw new Error("输入不能为空!");x=D;break}}o=o.replace(f,x)}}return t.mutation?await Th(o,e,t,n):o}async function Th(e,t,n,o){return await new Function("payload",n.mutation)({url:e,file:t,customUrl:n,cloudDriveConfig:o})}var xn=(e=>(e.search="search",e.play="play",e))(xn||{});const ql={search:"menu_custom_urls_for_search",play:"menu_custom_urls_for_play"};async function Yo(e){return await _t.get(ql[e],[])}async function Vl(e,t){await _t.set(ql[e],t)}function St(e){return{enabled:!0,key:"",label:"",icon:"",memo:"",url:"",openInBackground:!1,...e}}const Wl="ce_menu_config";function Mh(e){return{enabled:!0,openInNewTab:!0,search:!0,play:!0,getDownloadUrl:!0,copyNames:!0,...e}}function Bh(e){return{enabled:!0,copyNames:!0,...e}}function Lh(e){return{enabled:!0,moveToSelfNameDir:!0,copyNames:!0,...e}}function Nh(e){return{enabled:!0,rename:!0,delete:!0,play:!0,copyNames:!0,move:!0,copy:!0,copyTo:!0,viewProp:!0,showSubFolderSize:!0,...e}}function Dh(e){return{enabled:!0,hideSelectionMenuLabel:!1,enableInSearch:!0,[ke.listItemHover]:Mh(e==null?void 0:e[ke.listItemHover]),[ke.listItemContext]:Bh(e==null?void 0:e[ke.listItemContext]),[ke.selection]:Lh(e==null?void 0:e[ke.selection]),[ke.dirContext]:Nh(e==null?void 0:e[ke.dirContext]),...e}}async function Kl(){const e=Dh(),t=await _t.get(Wl,e);return{...e,...t}}async function Rh(e){await _t.set(Wl,e)}const Fa=class{constructor(t){Ce(this,"menuType",ke.listItemHover);Ce(this,"injectDecider");Ce(this,"keyAttributeName","id");Ce(this,"key");Ce(this,"label");Ce(this,"icon","");Ce(this,"title","");Ce(this,"onClick");Ce(this,"onMouseOver");Ce(this,"onMouseOut");Ce(this,"subItems",[]);Ce(this,"menuItemTemplates",{[ke.dirContext]:{body:`<li id="{key}" class="ce-menu dir-context-menu">
        <a href="javascript:;">{icon}<span>{label}</span></a>
      </li>`,bodyFormMulti:`<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>`},[ke.dirContextSub]:{body:`<span id="{key}" class="ce-menu dir-context-menu-sub sub-item">
        {icon}<span>{label}</span>
      </span>`},[ke.listItemContext]:{body:`<li id="{key}" class="ce-menu list-item-context-menu">
        <a href="javascript:;">{icon}<span>{label}</span></a>
      </li>`,bodyFormMulti:`<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>`},[ke.listItemContextSub]:{body:'<span id="{key}" class="ce-menu list-item-context-menu-sub sub-item">{label}</span>'},[ke.listItemHover]:{body:`<a href="javascript:;" id="{key}" class="ce-menu list-item-hover-menu" style="">
        {icon}<span>{label}</span>
      </a>`,bodyFormMulti:`<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>`},[ke.listItemHoverSub]:{body:`<a href="javascript:;" id="{key}" class="ce-menu list-item-hover-menu-sub" style="">
        {icon}<span>{label}</span>
      </a>`},[ke.selection]:{body:'<li id="{key}" class="ce-menu selection-menu">{icon}<span>{label}</span></li>',bodyFormMulti:`<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>`},[ke.selectionSub]:{body:`<a href="javascript:;" id="{key}" class="ce-menu selection-menu-sub" style="">
        <span>{label}</span>
      </a>`}});t.menuType&&(this.menuType=t.menuType),t.injectDecider&&(this.injectDecider=t.injectDecider),this.key=t.key,this.label=t.label,this.icon=t.icon,this.title=t.title,this.onClick=t.onClick,this.onMouseOver&&(this.onMouseOver=t.onMouseOver),this.onMouseOut&&(this.onMouseOut=t.onMouseOut),t.subItems&&(this.subItems=t.subItems)}async decideInject(t){return this.injectDecider?await this.injectDecider(this,t):!0}async render(){var r;if(!this.menuType)throw new Error("未指定菜单类型");const t=this.menuItemTemplates[this.menuType];if(!t)throw new Error(`未找到菜单模板:${this.menuType}`);let n=t.body;if(this.subItems.length>0){if(!t.bodyFormMulti)throw new Error("未找到 bodyFormMulti 模版");n=t.bodyFormMulti}const o=document.createElement("div");let i="";this.icon&&(this.icon.match(/^(http|https|data:image)/)?i=`<img class="ce-menu-icon" src="${this.icon}" />`:i=`<i class="ce-menu-icon ${this.icon}"></i>`),o.innerHTML=n.replace(/{key}/g,this.key).replace(/{label}/g,this.label).replace(/{icon}/g,i);const s=o.firstElementChild;if(s.setAttribute("title",this.title||""),this.onClick&&s.addEventListener("click",async c=>{this.onClick(this,c)}),this.onMouseOver&&s.addEventListener("mouseover",async c=>{this.onMouseOver&&this.onMouseOver(this,c)}),this.onMouseOut&&s.addEventListener("mouseout",async c=>{this.onMouseOut&&this.onMouseOut(this,c)}),this.subItems.length>0)for(const c of this.subItems){const u=await c.render();(r=s.querySelector(".sub-items"))==null||r.appendChild(u)}return s}async closeMenu(){unsafeWindow.Core.FileMenu.HideRight(),document.dispatchEvent(new CustomEvent(Fa.EVENT_CLOSE_MENU,{detail:{menu:this}}))}};let Nt=Fa;Ce(Nt,"EVENT_CLOSE_MENU","__closeMenu");async function Xi(e,t){t.stopPropagation(),t.preventDefault();const n=t.target,o=$(n).closest(".ce-menu-parent"),i=o.find(".ce-menu-dropdown");o.addClass("ce-menu-dropdown-opened"),i.addClass("ce-menu-dropdown-active")}async function Zi(e,t){t.stopPropagation(),t.preventDefault();const n=t.target,o=$(n).closest(".ce-menu-parent"),i=o.find(".ce-menu-dropdown");o.removeClass("ce-menu-dropdown-opened"),i.removeClass("ce-menu-dropdown-active")}class Dt extends Nt{constructor(n){super(n);Ce(this,"menuType",ke.dirContext);this.onMouseOver=Xi,this.onMouseOut=Zi}}class jh extends Nt{constructor(){super(...arguments);Ce(this,"menuType",ke.dirContextSub)}}class Gl extends Nt{constructor(n){super(n);Ce(this,"menuType",ke.listItemContext);this.onMouseOver=Xi,this.onMouseOut=Zi}}class Qi extends Nt{constructor(n){super(n);Ce(this,"menuType",ke.listItemHover);this.onMouseOver=Xi,this.onMouseOut=Zi}}class Pr extends Nt{constructor(){super(...arguments);Ce(this,"menuType",ke.listItemHoverSub)}}class Jl extends Nt{constructor(n){super(n);Ce(this,"menuType",ke.selection);this.onMouseOver=Xi,this.onMouseOut=Zi}}class Fh extends Nt{constructor(){super(...arguments);Ce(this,"menuType",ke.selectionSub)}}class es{constructor(t){Ce(this,"items");Ce(this,"siblingSelector");Ce(this,"position");Ce(this,"useObserver",!0);Ce(this,"observeTarget",document.body);Ce(this,"disposeObserverAfterInjection",!0);Ce(this,"menuType");Ce(this,"_observer");Ce(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 Di(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,ke.dirContext,this.menuType){case ke.listItemHover:return!0;case ke.listItemContext:return n&&n.classList.contains("context-menu")&&!!n.querySelector('[val="report"]');case ke.selection:return!0;case ke.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 ke.listItemHover:document.querySelectorAll("#js_data_list .list-contents > ul > li .file-opr").forEach(i=>{n.push(i)});break;case ke.listItemContext:n=[o];break;case ke.selection:document.querySelectorAll("#js_top_panel_box #js_operate_box").forEach(i=>{n.push(i)});break;case ke.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===zn.after&&(o=o.reverse());for(let i=0;i<o.length;i++){if(!await this.shouldInjectMenuItem(t,o[i]))continue;const s=await o[i].render();this.position===zn.before?n.insertAdjacentElement("beforebegin",s):n.insertAdjacentElement("afterend",s)}}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 Hh extends es{constructor(){super(...arguments);Ce(this,"menuType",ke.dirContext);Ce(this,"useObserver",!0);Ce(this,"observeTarget",document.body);Ce(this,"disposeObserverAfterInjection",!0)}}class Uh extends es{constructor(){super(...arguments);Ce(this,"menuType",ke.listItemContext)}}class zh extends es{constructor(){super(...arguments);Ce(this,"menuType",ke.listItemHover);Ce(this,"useObserver",!0);Ce(this,"observeTarget","#js_data_list");Ce(this,"disposeObserverAfterInjection",!1)}async inject(){const n=document.querySelector("#js_data_list");if(n){const o=n.querySelectorAll("#js_data_list .list-contents > ul > li .file-opr");o.length&&await this.perform(Array.from(o))}super.inject()}}class qh extends es{constructor(){super(...arguments);Ce(this,"menuType",ke.selection);Ce(this,"useObserver",!0);Ce(this,"observeTarget","#js_top_panel_box #js_operate_box");Ce(this,"disposeObserverAfterInjection",!1)}}async function Vh(e,t){return!!$(t).closest("li").attr("cate_id")}async function Wh(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?zd(o)||Vd(o)||qd(o):!1}async function Kh(e){if(!e.hideSelectionMenuLabel)return;const n=(await Di("#js_operate_box"))[0];new MutationObserver(async([i])=>{if(i.type==="childList"){const s=n.querySelectorAll("li[menu]");for(let r=0;r<s.length;r++){const c=s[r],u=c.textContent;c.setAttribute("title",u||"")}}}).observe(n,{childList:!0}),n.classList.add("only-icon")}async function Gh(e,t){const n=[];for(const o of t){const i=lr(e,{key:`_ce_s_${o.key}`,label:o.label,icon:o.icon,title:o.memo,onClick:async(s,r)=>{r.stopPropagation(),r.preventDefault();try{const c=$(r.target).closest("li"),u=await qt(c),p=await qo(),f=await Or(u,o,p);if(console.log("[search url]",f),!f)throw new Error("无法获取有效的搜索链接!");Md(f,{active:!o.openInBackground})}catch(c){console.error(c),_e({title:"搜索失败",text:c.toString(),icon:"error"})}}});n.push(i)}return n}async function Jh(e,t){const n=[];for(const o of t){const i=lr(e,{key:`_ce_p_${o.key}`,label:o.label,icon:o.icon,title:o.memo,onClick:async(s,r)=>{r.stopPropagation(),r.preventDefault();try{const c=$(r.target).closest("li"),u=await qt(c),p=await qo(),f=await Or(u,o,p);if(console.log("[play url]",f),!f)throw new Error("无法获取有效的播放链接!");window.open(f,"_blank","noopener noreferrer")}catch(c){console.error(c),_e({title:"播放失败",text:c.toString(),icon:"error"})}}});n.push(i)}return n}var pt=(e=>(e[e.full=0]="full",e[e.pure=1]="pure",e[e.fullUnique=2]="fullUnique",e[e.pureUnique=3]="pureUnique",e))(pt||{});async function ts(e,t){if(t===0)return e;if(t===2)return Array.from(new Set(e));const n=[];for(const o of e){const i=o.replace(/\.[^.]+$/,"");t===1?n.push(i):t===3&&(n.includes(i)||n.push(i))}return n}async function Yh(e){return async(t,n)=>{const o=await zt(),i=await Yi(),s=e?"li[file_id].selected":"li[file_id]",r=i[0].querySelectorAll(s);if(!r.length){_e({title:"文件移动到同名目录",text:e?"当前目录没有选中文件":"当前目录没有文件",icon:"warning"});return}const{value:c}=await ve.fire({title:"文件移动到同名目录",text:e?`当前已选中${r.length}个文件,是否继续?`:`当前目录共有${r.length}个文件,是否继续?`,icon:"warning",showCancelButton:!0,confirmButtonText:"继续",cancelButtonText:"取消"});if(!!c){ve.fire({title:"文件移动到同名目录",html:"正在处理...",didOpen:()=>{ve.showLoading()}});for(let u=0;u<r.length;u++){const p=r[u],f=await qt($(p));if(!f.fid)continue;const h=f.n,y=h.replace(/\.[^\.]+$/,""),x=`${u+1} / ${r.length} - `+Math.round(u/r.length*100)+"%";ve.update({html:`${x} 正在为文件「${h}」创建目录「${y}」`});const k=await mh(o,y);ve.update({html:`${x} 正在移动文件「${h}」到目录「${y}」`}),await gh(k.cid,[f.fid]),await Xt(500)}ve.hideLoading(),ve.update({html:"处理完成",icon:"success"})}}}function Cn(e,t){const n=Object.create(null),o=e.split(",");for(let i=0;i<o.length;i++)n[o[i]]=!0;return t?i=>!!n[i.toLowerCase()]:i=>!!n[i]}function en(e){if(de(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],i=We(o)?em(o):en(o);if(i)for(const s in i)t[s]=i[s]}return t}else{if(We(e))return e;if(Fe(e))return e}}const Xh=/;(?![^(]*\))/g,Zh=/:([^]+)/,Qh=/\/\*.*?\*\//gs;function em(e){const t={};return e.replace(Qh,"").split(Xh).forEach(n=>{if(n){const o=n.split(Zh);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Ze(e){let t="";if(We(e))t=e;else if(de(e))for(let n=0;n<e.length;n++){const o=Ze(e[n]);o&&(t+=o+" ")}else if(Fe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function tm(e){if(!e)return null;let{class:t,style:n}=e;return t&&!We(t)&&(e.class=Ze(t)),n&&(e.style=en(n)),e}const nm="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",om="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",im=Cn(nm),sm=Cn(om),rm=Cn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Yl(e){return!!e||e===""}function am(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=ns(e[o],t[o]);return n}function ns(e,t){if(e===t)return!0;let n=ec(e),o=ec(t);if(n||o)return n&&o?e.getTime()===t.getTime():!1;if(n=Zo(e),o=Zo(t),n||o)return e===t;if(n=de(e),o=de(t),n||o)return n&&o?am(e,t):!1;if(n=Fe(e),o=Fe(t),n||o){if(!n||!o)return!1;const i=Object.keys(e).length,s=Object.keys(t).length;if(i!==s)return!1;for(const r in e){const c=e.hasOwnProperty(r),u=t.hasOwnProperty(r);if(c&&!u||!c&&u||!ns(e[r],t[r]))return!1}}return String(e)===String(t)}function Xl(e,t){return e.findIndex(n=>ns(n,t))}const ye=e=>We(e)?e:e==null?"":de(e)||Fe(e)&&(e.toString===tc||!ge(e.toString))?JSON.stringify(e,Zl,2):String(e),Zl=(e,t)=>t&&t.__v_isRef?Zl(e,t.value):Vn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,i])=>(n[`${o} =>`]=i,n),{})}:is(t)?{[`Set(${t.size})`]:[...t.values()]}:Fe(t)&&!de(t)&&!nc(t)?String(t):t,Ue=Object.freeze({}),Eo=Object.freeze([]),xt=()=>{},Ql=()=>!1,lm=/^on[^a-z]/,Xo=e=>lm.test(e),os=e=>e.startsWith("onUpdate:"),Qe=Object.assign,Ir=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},cm=Object.prototype.hasOwnProperty,Ie=(e,t)=>cm.call(e,t),de=Array.isArray,Vn=e=>Qo(e)==="[object Map]",is=e=>Qo(e)==="[object Set]",ec=e=>Qo(e)==="[object Date]",ge=e=>typeof e=="function",We=e=>typeof e=="string",Zo=e=>typeof e=="symbol",Fe=e=>e!==null&&typeof e=="object",ss=e=>Fe(e)&&ge(e.then)&&ge(e.catch),tc=Object.prototype.toString,Qo=e=>tc.call(e),Tr=e=>Qo(e).slice(8,-1),nc=e=>Qo(e)==="[object Object]",Mr=e=>We(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rs=Cn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),um=Cn("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),as=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},fm=/-(\w)/g,Vt=as(e=>e.replace(fm,(t,n)=>n?n.toUpperCase():"")),dm=/\B([A-Z])/g,tn=as(e=>e.replace(dm,"-$1").toLowerCase()),Wn=as(e=>e.charAt(0).toUpperCase()+e.slice(1)),Kn=as(e=>e?`on${Wn(e)}`:""),ei=(e,t)=>!Object.is(e,t),So=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ls=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Br=e=>{const t=parseFloat(e);return isNaN(t)?e:t},pm=e=>{const t=We(e)?Number(e):NaN;return isNaN(t)?e:t};let oc;const ic=()=>oc||(oc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Lr(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Rt;class hm{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Rt,!t&&Rt&&(this.index=(Rt.scopes||(Rt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Rt;try{return Rt=this,t()}finally{Rt=n}}else Lr("cannot run an inactive effect scope.")}on(){Rt=this}off(){Rt=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 i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function mm(e,t=Rt){t&&t.active&&t.effects.push(e)}function gm(){return Rt}const Nr=e=>{const t=new Set(e);return t.w=0,t.n=0,t},sc=e=>(e.w&$n)>0,rc=e=>(e.n&$n)>0,wm=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=$n},ym=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const i=t[o];sc(i)&&!rc(i)?i.delete(e):t[n++]=i,i.w&=~$n,i.n&=~$n}t.length=n}},cs=new WeakMap;let ti=0,$n=1;const Dr=30;let ht;const Gn=Symbol("iterate"),Rr=Symbol("Map key iterate");class jr{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,mm(this,o)}run(){if(!this.active)return this.fn();let t=ht,n=En;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=ht,ht=this,En=!0,$n=1<<++ti,ti<=Dr?wm(this):ac(this),this.fn()}finally{ti<=Dr&&ym(this),$n=1<<--ti,ht=this.parent,En=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ht===this?this.deferStop=!0:this.active&&(ac(this),this.onStop&&this.onStop(),this.active=!1)}}function ac(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let En=!0;const lc=[];function Jn(){lc.push(En),En=!1}function Yn(){const e=lc.pop();En=e===void 0?!0:e}function Ct(e,t,n){if(En&&ht){let o=cs.get(e);o||cs.set(e,o=new Map);let i=o.get(n);i||o.set(n,i=Nr()),cc(i,{effect:ht,target:e,type:t,key:n})}}function cc(e,t){let n=!1;ti<=Dr?rc(e)||(e.n|=$n,n=!sc(e)):n=!e.has(ht),n&&(e.add(ht),ht.deps.push(e),ht.onTrack&&ht.onTrack(Object.assign({effect:ht},t)))}function nn(e,t,n,o,i,s){const r=cs.get(e);if(!r)return;let c=[];if(t==="clear")c=[...r.values()];else if(n==="length"&&de(e)){const p=Number(o);r.forEach((f,h)=>{(h==="length"||h>=p)&&c.push(f)})}else switch(n!==void 0&&c.push(r.get(n)),t){case"add":de(e)?Mr(n)&&c.push(r.get("length")):(c.push(r.get(Gn)),Vn(e)&&c.push(r.get(Rr)));break;case"delete":de(e)||(c.push(r.get(Gn)),Vn(e)&&c.push(r.get(Rr)));break;case"set":Vn(e)&&c.push(r.get(Gn));break}const u={target:e,type:t,key:n,newValue:o,oldValue:i,oldTarget:s};if(c.length===1)c[0]&&Fr(c[0],u);else{const p=[];for(const f of c)f&&p.push(...f);Fr(Nr(p),u)}}function Fr(e,t){const n=de(e)?e:[...e];for(const o of n)o.computed&&uc(o,t);for(const o of n)o.computed||uc(o,t)}function uc(e,t){(e!==ht||e.allowRecurse)&&(e.onTrigger&&e.onTrigger(Qe({effect:e},t)),e.scheduler?e.scheduler():e.run())}function bm(e,t){var n;return(n=cs.get(e))===null||n===void 0?void 0:n.get(t)}const vm=Cn("__proto__,__v_isRef,__isVue"),fc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Zo)),_m=us(),xm=us(!1,!0),Cm=us(!0),$m=us(!0,!0),dc=Em();function Em(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=Ae(this);for(let s=0,r=this.length;s<r;s++)Ct(o,"get",s+"");const i=o[t](...n);return i===-1||i===!1?o[t](...n.map(Ae)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Jn();const o=Ae(this)[t].apply(this,n);return Yn(),o}}),e}function Sm(e){const t=Ae(this);return Ct(t,"has",e),t.hasOwnProperty(e)}function us(e=!1,t=!1){return function(o,i,s){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&s===(e?t?$c:Cc:t?xc:_c).get(o))return o;const r=de(o);if(!e){if(r&&Ie(dc,i))return Reflect.get(dc,i,s);if(i==="hasOwnProperty")return Sm}const c=Reflect.get(o,i,s);return(Zo(i)?fc.has(i):vm(i))||(e||Ct(o,"get",i),t)?c:et(c)?r&&Mr(i)?c:c.value:Fe(c)?e?Ec(c):ys(c):c}}const km=pc(),Am=pc(!0);function pc(e=!1){return function(n,o,i,s){let r=n[o];if(kn(r)&&et(r)&&!et(i))return!1;if(!e&&(!vs(i)&&!kn(i)&&(r=Ae(r),i=Ae(i)),!de(n)&&et(r)&&!et(i)))return r.value=i,!0;const c=de(n)&&Mr(o)?Number(o)<n.length:Ie(n,o),u=Reflect.set(n,o,i,s);return n===Ae(s)&&(c?ei(i,r)&&nn(n,"set",o,i,r):nn(n,"add",o,i)),u}}function Om(e,t){const n=Ie(e,t),o=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&nn(e,"delete",t,void 0,o),i}function Pm(e,t){const n=Reflect.has(e,t);return(!Zo(t)||!fc.has(t))&&Ct(e,"has",t),n}function Im(e){return Ct(e,"iterate",de(e)?"length":Gn),Reflect.ownKeys(e)}const hc={get:_m,set:km,deleteProperty:Om,has:Pm,ownKeys:Im},mc={get:Cm,set(e,t){return Lr(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return Lr(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},Tm=Qe({},hc,{get:xm,set:Am}),Mm=Qe({},mc,{get:$m}),Hr=e=>e,fs=e=>Reflect.getPrototypeOf(e);function ds(e,t,n=!1,o=!1){e=e.__v_raw;const i=Ae(e),s=Ae(t);n||(t!==s&&Ct(i,"get",t),Ct(i,"get",s));const{has:r}=fs(i),c=o?Hr:n?Ur:ni;if(r.call(i,t))return c(e.get(t));if(r.call(i,s))return c(e.get(s));e!==i&&e.get(t)}function ps(e,t=!1){const n=this.__v_raw,o=Ae(n),i=Ae(e);return t||(e!==i&&Ct(o,"has",e),Ct(o,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function hs(e,t=!1){return e=e.__v_raw,!t&&Ct(Ae(e),"iterate",Gn),Reflect.get(e,"size",e)}function gc(e){e=Ae(e);const t=Ae(this);return fs(t).has.call(t,e)||(t.add(e),nn(t,"add",e,e)),this}function wc(e,t){t=Ae(t);const n=Ae(this),{has:o,get:i}=fs(n);let s=o.call(n,e);s?vc(n,o,e):(e=Ae(e),s=o.call(n,e));const r=i.call(n,e);return n.set(e,t),s?ei(t,r)&&nn(n,"set",e,t,r):nn(n,"add",e,t),this}function yc(e){const t=Ae(this),{has:n,get:o}=fs(t);let i=n.call(t,e);i?vc(t,n,e):(e=Ae(e),i=n.call(t,e));const s=o?o.call(t,e):void 0,r=t.delete(e);return i&&nn(t,"delete",e,void 0,s),r}function bc(){const e=Ae(this),t=e.size!==0,n=Vn(e)?new Map(e):new Set(e),o=e.clear();return t&&nn(e,"clear",void 0,void 0,n),o}function ms(e,t){return function(o,i){const s=this,r=s.__v_raw,c=Ae(r),u=t?Hr:e?Ur:ni;return!e&&Ct(c,"iterate",Gn),r.forEach((p,f)=>o.call(i,u(p),u(f),s))}}function gs(e,t,n){return function(...o){const i=this.__v_raw,s=Ae(i),r=Vn(s),c=e==="entries"||e===Symbol.iterator&&r,u=e==="keys"&&r,p=i[e](...o),f=n?Hr:t?Ur:ni;return!t&&Ct(s,"iterate",u?Rr:Gn),{next(){const{value:h,done:y}=p.next();return y?{value:h,done:y}:{value:c?[f(h[0]),f(h[1])]:f(h),done:y}},[Symbol.iterator](){return this}}}}function Sn(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${Wn(e)} operation ${n}failed: target is readonly.`,Ae(this))}return e==="delete"?!1:this}}function Bm(){const e={get(s){return ds(this,s)},get size(){return hs(this)},has:ps,add:gc,set:wc,delete:yc,clear:bc,forEach:ms(!1,!1)},t={get(s){return ds(this,s,!1,!0)},get size(){return hs(this)},has:ps,add:gc,set:wc,delete:yc,clear:bc,forEach:ms(!1,!0)},n={get(s){return ds(this,s,!0)},get size(){return hs(this,!0)},has(s){return ps.call(this,s,!0)},add:Sn("add"),set:Sn("set"),delete:Sn("delete"),clear:Sn("clear"),forEach:ms(!0,!1)},o={get(s){return ds(this,s,!0,!0)},get size(){return hs(this,!0)},has(s){return ps.call(this,s,!0)},add:Sn("add"),set:Sn("set"),delete:Sn("delete"),clear:Sn("clear"),forEach:ms(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=gs(s,!1,!1),n[s]=gs(s,!0,!1),t[s]=gs(s,!1,!0),o[s]=gs(s,!0,!0)}),[e,n,t,o]}const[Lm,Nm,Dm,Rm]=Bm();function ws(e,t){const n=t?e?Rm:Dm:e?Nm:Lm;return(o,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?o:Reflect.get(Ie(n,i)&&i in o?n:o,i,s)}const jm={get:ws(!1,!1)},Fm={get:ws(!1,!0)},Hm={get:ws(!0,!1)},Um={get:ws(!0,!0)};function vc(e,t,n){const o=Ae(n);if(o!==n&&t.call(e,o)){const i=Tr(e);console.warn(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="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 _c=new WeakMap,xc=new WeakMap,Cc=new WeakMap,$c=new WeakMap;function zm(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function qm(e){return e.__v_skip||!Object.isExtensible(e)?0:zm(Tr(e))}function ys(e){return kn(e)?e:bs(e,!1,hc,jm,_c)}function Vm(e){return bs(e,!1,Tm,Fm,xc)}function Ec(e){return bs(e,!0,mc,Hm,Cc)}function ko(e){return bs(e,!0,Mm,Um,$c)}function bs(e,t,n,o,i){if(!Fe(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const r=qm(e);if(r===0)return e;const c=new Proxy(e,r===2?o:n);return i.set(e,c),c}function Xn(e){return kn(e)?Xn(e.__v_raw):!!(e&&e.__v_isReactive)}function kn(e){return!!(e&&e.__v_isReadonly)}function vs(e){return!!(e&&e.__v_isShallow)}function _s(e){return Xn(e)||kn(e)}function Ae(e){const t=e&&e.__v_raw;return t?Ae(t):e}function Sc(e){return ls(e,"__v_skip",!0),e}const ni=e=>Fe(e)?ys(e):e,Ur=e=>Fe(e)?Ec(e):e;function kc(e){En&&ht&&(e=Ae(e),cc(e.dep||(e.dep=Nr()),{target:e,type:"get",key:"value"}))}function Ac(e,t){e=Ae(e);const n=e.dep;n&&Fr(n,{target:e,type:"set",key:"value",newValue:t})}function et(e){return!!(e&&e.__v_isRef===!0)}function $e(e){return Wm(e,!1)}function Wm(e,t){return et(e)?e:new Km(e,t)}class Km{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ae(t),this._value=n?t:ni(t)}get value(){return kc(this),this._value}set value(t){const n=this.__v_isShallow||vs(t)||kn(t);t=n?t:Ae(t),ei(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ni(t),Ac(this,t))}}function Te(e){return et(e)?e.value:e}const Gm={get:(e,t,n)=>Te(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const i=e[t];return et(i)&&!et(n)?(i.value=n,!0):Reflect.set(e,t,n,o)}};function Oc(e){return Xn(e)?e:new Proxy(e,Gm)}function Jm(e){_s(e)||console.warn("toRefs() expects a reactive object but received a plain one.");const t=de(e)?new Array(e.length):{};for(const n in e)t[n]=Xm(e,n);return t}class Ym{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 bm(Ae(this._object),this._key)}}function Xm(e,t,n){const o=e[t];return et(o)?o:new Ym(e,t,n)}var Pc;class Zm{constructor(t,n,o,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[Pc]=!1,this._dirty=!0,this.effect=new jr(t,()=>{this._dirty||(this._dirty=!0,Ac(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=o}get value(){const t=Ae(this);return kc(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}Pc="__v_isReadonly";function Qm(e,t,n=!1){let o,i;const s=ge(e);s?(o=e,i=()=>{console.warn("Write operation failed: computed value is readonly")}):(o=e.get,i=e.set);const r=new Zm(o,i,s||!i,n);return t&&!n&&(r.effect.onTrack=t.onTrack,r.effect.onTrigger=t.onTrigger),r}const Zn=[];function oi(e){Zn.push(e)}function ii(){Zn.pop()}function Y(e,...t){Jn();const n=Zn.length?Zn[Zn.length-1].component:null,o=n&&n.appContext.config.warnHandler,i=eg();if(o)on(o,n,11,[e+t.join(""),n&&n.proxy,i.map(({vnode:s})=>`at <${Ls(n,s.type)}>`).join(`
`),i]);else{const s=[`[Vue warn]: ${e}`,...t];i.length&&s.push(`
`,...tg(i)),console.warn(...s)}Yn()}function eg(){let e=Zn[Zn.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 tg(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
`],...ng(n))}),t}function ng({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,i=` at <${Ls(e.component,e.type,o)}`,s=">"+n;return e.props?[i,...og(e.props),s]:[i+s]}function og(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...Ic(o,e[o]))}),n.length>3&&t.push(" ..."),t}function Ic(e,t,n){return We(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:et(t)?(t=Ic(e,Ae(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):ge(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Ae(t),n?t:[`${e}=`,t])}function ig(e,t){e!==void 0&&(typeof e!="number"?Y(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&Y(`${t} is NaN - the duration expression might be incorrect.`))}const zr={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 on(e,t,n,o){let i;try{i=o?e(...o):e()}catch(s){si(s,t,n)}return i}function jt(e,t,n,o){if(ge(e)){const s=on(e,t,n,o);return s&&ss(s)&&s.catch(r=>{si(r,t,n)}),s}const i=[];for(let s=0;s<e.length;s++)i.push(jt(e[s],t,n,o));return i}function si(e,t,n,o=!0){const i=t?t.vnode:null;if(t){let s=t.parent;const r=t.proxy,c=zr[n];for(;s;){const p=s.ec;if(p){for(let f=0;f<p.length;f++)if(p[f](e,r,c)===!1)return}s=s.parent}const u=t.appContext.config.errorHandler;if(u){on(u,null,10,[e,r,c]);return}}sg(e,n,i,o)}function sg(e,t,n,o=!0){{const i=zr[t];if(n&&oi(n),Y(`Unhandled error${i?` during execution of ${i}`:""}`),n&&ii(),o)throw e;console.error(e)}}let ri=!1,qr=!1;const ut=[];let Wt=0;const Ao=[];let Kt=null,An=0;const Tc=Promise.resolve();let Vr=null;const rg=100;function Mc(e){const t=Vr||Tc;return e?t.then(this?e.bind(this):e):t}function ag(e){let t=Wt+1,n=ut.length;for(;t<n;){const o=t+n>>>1;ai(ut[o])<e?t=o+1:n=o}return t}function xs(e){(!ut.length||!ut.includes(e,ri&&e.allowRecurse?Wt+1:Wt))&&(e.id==null?ut.push(e):ut.splice(ag(e.id),0,e),Bc())}function Bc(){!ri&&!qr&&(qr=!0,Vr=Tc.then(Dc))}function lg(e){const t=ut.indexOf(e);t>Wt&&ut.splice(t,1)}function Wr(e){de(e)?Ao.push(...e):(!Kt||!Kt.includes(e,e.allowRecurse?An+1:An))&&Ao.push(e),Bc()}function Lc(e,t=ri?Wt+1:0){for(e=e||new Map;t<ut.length;t++){const n=ut[t];if(n&&n.pre){if(Kr(e,n))continue;ut.splice(t,1),t--,n()}}}function Nc(e){if(Ao.length){const t=[...new Set(Ao)];if(Ao.length=0,Kt){Kt.push(...t);return}for(Kt=t,e=e||new Map,Kt.sort((n,o)=>ai(n)-ai(o)),An=0;An<Kt.length;An++)Kr(e,Kt[An])||Kt[An]();Kt=null,An=0}}const ai=e=>e.id==null?1/0:e.id,cg=(e,t)=>{const n=ai(e)-ai(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Dc(e){qr=!1,ri=!0,e=e||new Map,ut.sort(cg);const t=n=>Kr(e,n);try{for(Wt=0;Wt<ut.length;Wt++){const n=ut[Wt];if(n&&n.active!==!1){if(t(n))continue;on(n,null,14)}}}finally{Wt=0,ut.length=0,Nc(e),ri=!1,Vr=null,(ut.length||Ao.length)&&Dc(e)}}function Kr(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>rg){const o=t.ownerInstance,i=o&&ya(o.type);return Y(`Maximum recursive updates exceeded${i?` in component <${i}>`:""}. 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 Qn=!1;const Oo=new Set;ic().__VUE_HMR_RUNTIME__={createRecord:Gr(Rc),rerender:Gr(dg),reload:Gr(pg)};const eo=new Map;function ug(e){const t=e.type.__hmrId;let n=eo.get(t);n||(Rc(t,e.type),n=eo.get(t)),n.instances.add(e)}function fg(e){eo.get(e.type.__hmrId).instances.delete(e)}function Rc(e,t){return eo.has(e)?!1:(eo.set(e,{initialDef:li(t),instances:new Set}),!0)}function li(e){return ku(e)?e.__vccOpts:e}function dg(e,t){const n=eo.get(e);!n||(n.initialDef.render=t,[...n.instances].forEach(o=>{t&&(o.render=t,li(o.type).render=t),o.renderCache=[],Qn=!0,o.update(),Qn=!1}))}function pg(e,t){const n=eo.get(e);if(!n)return;t=li(t),jc(n.initialDef,t);const o=[...n.instances];for(const i of o){const s=li(i.type);Oo.has(s)||(s!==n.initialDef&&jc(s,t),Oo.add(s)),i.appContext.optionsCache.delete(i.type),i.ceReload?(Oo.add(s),i.ceReload(t.styles),Oo.delete(s)):i.parent?xs(i.parent.update):i.appContext.reload?i.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}Wr(()=>{for(const i of o)Oo.delete(li(i.type))})}function jc(e,t){Qe(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function Gr(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 Gt,ci=[],Jr=!1;function ui(e,...t){Gt?Gt.emit(e,...t):Jr||ci.push({event:e,args:t})}function Fc(e,t){var n,o;Gt=e,Gt?(Gt.enabled=!0,ci.forEach(({event:i,args:s})=>Gt.emit(i,...s)),ci=[]):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(s=>{Fc(s,t)}),setTimeout(()=>{Gt||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Jr=!0,ci=[])},3e3)):(Jr=!0,ci=[])}function hg(e,t){ui("app:init",e,t,{Fragment:Ve,Text:wi,Comment:gt,Static:yi})}function mg(e){ui("app:unmount",e)}const gg=Yr("component:added"),Hc=Yr("component:updated"),wg=Yr("component:removed"),yg=e=>{Gt&&typeof Gt.cleanupBuffer=="function"&&!Gt.cleanupBuffer(e)&&wg(e)};function Yr(e){return t=>{ui(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const bg=Uc("perf:start"),vg=Uc("perf:end");function Uc(e){return(t,n,o)=>{ui(e,t.appContext.app,t.uid,t,n,o)}}function _g(e,t,n){ui("component:emit",e.appContext.app,e,t,n)}function xg(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||Ue;{const{emitsOptions:f,propsOptions:[h]}=e;if(f)if(!(t in f))(!h||!(Kn(t)in h))&&Y(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${Kn(t)}" prop.`);else{const y=f[t];ge(y)&&(y(...n)||Y(`Invalid event arguments: event validation failed for event "${t}".`))}}let i=n;const s=t.startsWith("update:"),r=s&&t.slice(7);if(r&&r in o){const f=`${r==="modelValue"?"model":r}Modifiers`,{number:h,trim:y}=o[f]||Ue;y&&(i=n.map(x=>We(x)?x.trim():x)),h&&(i=n.map(Br))}_g(e,t,i);{const f=t.toLowerCase();f!==t&&o[Kn(f)]&&Y(`Event "${f}" is emitted in component ${Ls(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 "${tn(t)}" instead of "${t}".`)}let c,u=o[c=Kn(t)]||o[c=Kn(Vt(t))];!u&&s&&(u=o[c=Kn(tn(t))]),u&&jt(u,e,6,i);const p=o[c+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,jt(p,e,6,i)}}function zc(e,t,n=!1){const o=t.emitsCache,i=o.get(e);if(i!==void 0)return i;const s=e.emits;let r={},c=!1;if(!ge(e)){const u=p=>{const f=zc(p,t,!0);f&&(c=!0,Qe(r,f))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!s&&!c?(Fe(e)&&o.set(e,null),null):(de(s)?s.forEach(u=>r[u]=null):Qe(r,s),Fe(e)&&o.set(e,r),r)}function Cs(e,t){return!e||!Xo(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ie(e,t[0].toLowerCase()+t.slice(1))||Ie(e,tn(t))||Ie(e,t))}let ot=null,$s=null;function Es(e){const t=ot;return ot=e,$s=e&&e.type.__scopeId||null,t}function Cg(e){$s=e}function $g(){$s=null}const Eg=e=>qe;function qe(e,t=ot,n){if(!t||e._n)return e;const o=(...i)=>{o._d&&bu(-1);const s=Es(t);let r;try{r=e(...i)}finally{Es(s),o._d&&bu(1)}return Hc(t),r};return o._n=!0,o._c=!0,o._d=!0,o}let Xr=!1;function Ss(){Xr=!0}function Zr(e){const{type:t,vnode:n,proxy:o,withProxy:i,props:s,propsOptions:[r],slots:c,attrs:u,emit:p,render:f,renderCache:h,data:y,setupState:x,ctx:k,inheritAttrs:O}=e;let z,G;const D=Es(e);Xr=!1;try{if(n.shapeFlag&4){const ne=i||o;z=Bt(f.call(ne,ne,h,s,x,y,k)),G=u}else{const ne=t;u===s&&Ss(),z=Bt(ne.length>1?ne(s,{get attrs(){return Ss(),u},slots:c,emit:p}):ne(s,null)),G=t.props?u:kg(u)}}catch(ne){bi.length=0,si(ne,e,1),z=be(gt)}let j=z,Z;if(z.patchFlag>0&&z.patchFlag&2048&&([j,Z]=Sg(z)),G&&O!==!1){const ne=Object.keys(G),{shapeFlag:ee}=j;if(ne.length){if(ee&7)r&&ne.some(os)&&(G=Ag(G,r)),j=In(j,G);else if(!Xr&&j.type!==gt){const Me=Object.keys(u),Ee=[],Se=[];for(let Pe=0,fe=Me.length;Pe<fe;Pe++){const te=Me[Pe];Xo(te)?os(te)||Ee.push(te[2].toLowerCase()+te.slice(3)):Se.push(te)}Se.length&&Y(`Extraneous non-props attributes (${Se.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),Ee.length&&Y(`Extraneous non-emits event listeners (${Ee.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&&(qc(j)||Y("Runtime directive used on component with non-element root node. The directives will not function as intended."),j=In(j),j.dirs=j.dirs?j.dirs.concat(n.dirs):n.dirs),n.transition&&(qc(j)||Y("Component inside <Transition> renders non-element root node that cannot be animated."),j.transition=n.transition),Z?Z(j):z=j,Es(D),z}const Sg=e=>{const t=e.children,n=e.dynamicChildren,o=Qr(t);if(!o)return[e,void 0];const i=t.indexOf(o),s=n?n.indexOf(o):-1,r=c=>{t[i]=c,n&&(s>-1?n[s]=c:c.patchFlag>0&&(e.dynamicChildren=[...n,c]))};return[Bt(o),r]};function Qr(e){let t;for(let n=0;n<e.length;n++){const o=e[n];if(To(o)){if(o.type!==gt||o.children==="v-if"){if(t)return;t=o}}else return}return t}const kg=e=>{let t;for(const n in e)(n==="class"||n==="style"||Xo(n))&&((t||(t={}))[n]=e[n]);return t},Ag=(e,t)=>{const n={};for(const o in e)(!os(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n},qc=e=>e.shapeFlag&7||e.type===gt;function Og(e,t,n){const{props:o,children:i,component:s}=e,{props:r,children:c,patchFlag:u}=t,p=s.emitsOptions;if((i||c)&&Qn||t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return o?Vc(o,r,p):!!r;if(u&8){const f=t.dynamicProps;for(let h=0;h<f.length;h++){const y=f[h];if(r[y]!==o[y]&&!Cs(p,y))return!0}}}else return(i||c)&&(!c||!c.$stable)?!0:o===r?!1:o?r?Vc(o,r,p):!0:!!r;return!1}function Vc(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let i=0;i<o.length;i++){const s=o[i];if(t[s]!==e[s]&&!Cs(n,s))return!0}return!1}function ea({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Pg=e=>e.__isSuspense,Wc={name:"Suspense",__isSuspense:!0,process(e,t,n,o,i,s,r,c,u,p){e==null?Ig(t,n,o,i,s,r,c,u,p):Tg(e,t,n,o,i,r,c,u,p)},hydrate:Mg,create:ta,normalize:Bg};function fi(e,t){const n=e.props&&e.props[t];ge(n)&&n()}function Ig(e,t,n,o,i,s,r,c,u){const{p,o:{createElement:f}}=u,h=f("div"),y=e.suspense=ta(e,i,o,t,h,n,s,r,c,u);p(null,y.pendingBranch=e.ssContent,h,null,o,y,s,r),y.deps>0?(fi(e,"onPending"),fi(e,"onFallback"),p(null,e.ssFallback,t,n,o,null,s,r),Po(y,e.ssFallback)):y.resolve()}function Tg(e,t,n,o,i,s,r,c,{p:u,um:p,o:{createElement:f}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const y=t.ssContent,x=t.ssFallback,{activeBranch:k,pendingBranch:O,isInFallback:z,isHydrating:G}=h;if(O)h.pendingBranch=y,Pn(y,O)?(u(O,y,h.hiddenContainer,null,i,h,s,r,c),h.deps<=0?h.resolve():z&&(u(k,x,n,o,i,null,s,r,c),Po(h,x))):(h.pendingId++,G?(h.isHydrating=!1,h.activeBranch=O):p(O,i,h),h.deps=0,h.effects.length=0,h.hiddenContainer=f("div"),z?(u(null,y,h.hiddenContainer,null,i,h,s,r,c),h.deps<=0?h.resolve():(u(k,x,n,o,i,null,s,r,c),Po(h,x))):k&&Pn(y,k)?(u(k,y,n,o,i,h,s,r,c),h.resolve(!0)):(u(null,y,h.hiddenContainer,null,i,h,s,r,c),h.deps<=0&&h.resolve()));else if(k&&Pn(y,k))u(k,y,n,o,i,h,s,r,c),Po(h,y);else if(fi(t,"onPending"),h.pendingBranch=y,h.pendingId++,u(null,y,h.hiddenContainer,null,i,h,s,r,c),h.deps<=0)h.resolve();else{const{timeout:D,pendingId:j}=h;D>0?setTimeout(()=>{h.pendingId===j&&h.fallback(x)},D):D===0&&h.fallback(x)}}let Kc=!1;function ta(e,t,n,o,i,s,r,c,u,p,f=!1){Kc||(Kc=!0,console[console.info?"info":"log"]("<Suspense> is an experimental feature and its API will likely change."));const{p:h,m:y,um:x,n:k,o:{parentNode:O,remove:z}}=p,G=e.props?pm(e.props.timeout):void 0;ig(G,"Suspense timeout");const D={vnode:e,parent:t,parentComponent:n,isSVG:r,container:o,hiddenContainer:i,anchor:s,deps:0,pendingId:0,timeout:typeof G=="number"?G:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:f,isUnmounted:!1,effects:[],resolve(j=!1){{if(!j&&!D.pendingBranch)throw new Error("suspense.resolve() is called without a pending branch.");if(D.isUnmounted)throw new Error("suspense.resolve() is called on an already unmounted suspense boundary.")}const{vnode:Z,activeBranch:ne,pendingBranch:ee,pendingId:Me,effects:Ee,parentComponent:Se,container:Pe}=D;if(D.isHydrating)D.isHydrating=!1;else if(!j){const xe=ne&&ee.transition&&ee.transition.mode==="out-in";xe&&(ne.transition.afterLeave=()=>{Me===D.pendingId&&y(ee,Pe,oe,0)});let{anchor:oe}=D;ne&&(oe=k(ne),x(ne,Se,D,!0)),xe||y(ee,Pe,oe,0)}Po(D,ee),D.pendingBranch=null,D.isInFallback=!1;let fe=D.parent,te=!1;for(;fe;){if(fe.pendingBranch){fe.effects.push(...Ee),te=!0;break}fe=fe.parent}te||Wr(Ee),D.effects=[],fi(Z,"onResolve")},fallback(j){if(!D.pendingBranch)return;const{vnode:Z,activeBranch:ne,parentComponent:ee,container:Me,isSVG:Ee}=D;fi(Z,"onFallback");const Se=k(ne),Pe=()=>{!D.isInFallback||(h(null,j,Me,Se,ee,null,Ee,c,u),Po(D,j))},fe=j.transition&&j.transition.mode==="out-in";fe&&(ne.transition.afterLeave=Pe),D.isInFallback=!0,x(ne,ee,null,!0),fe||Pe()},move(j,Z,ne){D.activeBranch&&y(D.activeBranch,j,Z,ne),D.container=j},next(){return D.activeBranch&&k(D.activeBranch)},registerDep(j,Z){const ne=!!D.pendingBranch;ne&&D.deps++;const ee=j.vnode.el;j.asyncDep.catch(Me=>{si(Me,j,0)}).then(Me=>{if(j.isUnmounted||D.isUnmounted||D.pendingId!==j.suspenseId)return;j.asyncResolved=!0;const{vnode:Ee}=j;oi(Ee),ga(j,Me,!1),ee&&(Ee.el=ee);const Se=!ee&&j.subTree.el;Z(j,Ee,O(ee||j.subTree.el),ee?null:k(j.subTree),D,r,u),Se&&z(Se),ea(j,Ee.el),ii(),ne&&--D.deps===0&&D.resolve()})},unmount(j,Z){D.isUnmounted=!0,D.activeBranch&&x(D.activeBranch,n,j,Z),D.pendingBranch&&x(D.pendingBranch,n,j,Z)}};return D}function Mg(e,t,n,o,i,s,r,c,u){const p=t.suspense=ta(t,o,n,e.parentNode,document.createElement("div"),null,i,s,r,c,!0),f=u(e,p.pendingBranch=t.ssContent,n,p,s,r);return p.deps===0&&p.resolve(),f}function Bg(e){const{shapeFlag:t,children:n}=e,o=t&32;e.ssContent=Gc(o?n.default:n),e.ssFallback=o?Gc(n.fallback):be(gt)}function Gc(e){let t;if(ge(e)){const n=Io&&e._c;n&&(e._d=!1,Q()),e=e(),n&&(e._d=!0,t=Mt,yu())}if(de(e)){const n=Qr(e);n||Y("<Suspense> slots expect a single root node."),e=n}return e=Bt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Lg(e,t){t&&t.pendingBranch?de(e)?t.effects.push(...e):t.effects.push(e):Wr(e)}function Po(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e,i=n.el=t.el;o&&o.subTree===n&&(o.vnode.el=i,ea(o,i))}function di(e,t){if(!Ke)Y("provide() can only be used inside setup().");else{let n=Ke.provides;const o=Ke.parent&&Ke.parent.provides;o===n&&(n=Ke.provides=Object.create(o)),n[e]=t}}function pi(e,t,n=!1){const o=Ke||ot;if(o){const i=o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&ge(t)?t.call(o.proxy):t;Y(`injection "${String(e)}" not found.`)}else Y("inject() can only be used inside setup() or functional components.")}const ks={};function kt(e,t,n){return ge(t)||Y("`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."),Jc(e,t,n)}function Jc(e,t,{immediate:n,deep:o,flush:i,onTrack:s,onTrigger:r}=Ue){t||(n!==void 0&&Y('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&Y('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const c=Z=>{Y("Invalid watch source: ",Z,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},u=gm()===(Ke==null?void 0:Ke.scope)?Ke:null;let p,f=!1,h=!1;if(et(e)?(p=()=>e.value,f=vs(e)):Xn(e)?(p=()=>e,o=!0):de(e)?(h=!0,f=e.some(Z=>Xn(Z)||vs(Z)),p=()=>e.map(Z=>{if(et(Z))return Z.value;if(Xn(Z))return to(Z);if(ge(Z))return on(Z,u,2);c(Z)})):ge(e)?t?p=()=>on(e,u,2):p=()=>{if(!(u&&u.isUnmounted))return y&&y(),jt(e,u,3,[x])}:(p=xt,c(e)),t&&o){const Z=p;p=()=>to(Z())}let y,x=Z=>{y=D.onStop=()=>{on(Z,u,4)}},k;if(vi)if(x=xt,t?n&&jt(t,u,3,[p(),h?[]:void 0,x]):p(),i==="sync"){const Z=Rw();k=Z.__watcherHandles||(Z.__watcherHandles=[])}else return xt;let O=h?new Array(e.length).fill(ks):ks;const z=()=>{if(!!D.active)if(t){const Z=D.run();(o||f||(h?Z.some((ne,ee)=>ei(ne,O[ee])):ei(Z,O)))&&(y&&y(),jt(t,u,3,[Z,O===ks?void 0:h&&O[0]===ks?[]:O,x]),O=Z)}else D.run()};z.allowRecurse=!!t;let G;i==="sync"?G=z:i==="post"?G=()=>$t(z,u&&u.suspense):(z.pre=!0,u&&(z.id=u.uid),G=()=>xs(z));const D=new jr(p,G);D.onTrack=s,D.onTrigger=r,t?n?z():O=D.run():i==="post"?$t(D.run.bind(D),u&&u.suspense):D.run();const j=()=>{D.stop(),u&&u.scope&&Ir(u.scope.effects,D)};return k&&k.push(j),j}function Ng(e,t,n){const o=this.proxy,i=We(e)?e.includes(".")?Yc(o,e):()=>o[e]:e.bind(o,o);let s;ge(t)?s=t:(s=t.handler,n=t);const r=Ke;Mn(this);const c=Jc(i,s.bind(o),n);return r?Mn(r):Bn(),c}function Yc(e,t){const n=t.split(".");return()=>{let o=e;for(let i=0;i<n.length&&o;i++)o=o[n[i]];return o}}function to(e,t){if(!Fe(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),et(e))to(e.value,t);else if(de(e))for(let n=0;n<e.length;n++)to(e[n],t);else if(is(e)||Vn(e))e.forEach(n=>{to(n,t)});else if(nc(e))for(const n in e)to(e[n],t);return e}function He(e){return ge(e)?{setup:e,name:e.name}:e}const hi=e=>!!e.type.__asyncLoader,na=e=>e.type.__isKeepAlive;function Dg(e,t){Xc(e,"a",t)}function Rg(e,t){Xc(e,"da",t)}function Xc(e,t,n=Ke){const o=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(As(t,o,n),n){let i=n.parent;for(;i&&i.parent;)na(i.parent.vnode)&&jg(o,t,n,i),i=i.parent}}function jg(e,t,n,o){const i=As(t,e,o,!0);mi(()=>{Ir(o[t],i)},n)}function As(e,t,n=Ke,o=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;Jn(),Mn(n);const c=jt(t,n,e,r);return Bn(),Yn(),c});return o?i.unshift(s):i.push(s),s}else{const i=Kn(zr[e].replace(/ hook$/,""));Y(`${i} 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 sn=e=>(t,n=Ke)=>(!vi||e==="sp")&&As(e,(...o)=>t(...o),n),rn=sn("bm"),an=sn("m"),Fg=sn("bu"),Hg=sn("u"),Zc=sn("bum"),mi=sn("um"),Ug=sn("sp"),zg=sn("rtg"),qg=sn("rtc");function Vg(e,t=Ke){As("ec",e,t)}function Qc(e){um(e)&&Y("Do not use built-in directive ids as custom directive id: "+e)}function ae(e,t){const n=ot;if(n===null)return Y("withDirectives can only be used inside render functions."),e;const o=Bs(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[r,c,u,p=Ue]=t[s];r&&(ge(r)&&(r={mounted:r,updated:r}),r.deep&&to(c),i.push({dir:r,instance:o,value:c,oldValue:void 0,arg:u,modifiers:p}))}return e}function no(e,t,n,o){const i=e.dirs,s=t&&t.dirs;for(let r=0;r<i.length;r++){const c=i[r];s&&(c.oldValue=s[r].value);let u=c.dir[o];u&&(Jn(),jt(u,n,8,[e.el,c,e,t]),Yn())}}const oa="components";function oo(e,t){return Kg(oa,e,!0,t)||e}const Wg=Symbol();function Kg(e,t,n=!0,o=!1){const i=ot||Ke;if(i){const s=i.type;if(e===oa){const c=ya(s,!1);if(c&&(c===t||c===Vt(t)||c===Wn(Vt(t))))return s}const r=eu(i[e]||s[e],t)||eu(i.appContext[e],t);if(!r&&o)return s;if(n&&!r){const c=e===oa?`
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";Y(`Failed to resolve ${e.slice(0,-1)}: ${t}${c}`)}return r}else Y(`resolve${Wn(e.slice(0,-1))} can only be used in render() or setup().`)}function eu(e,t){return e&&(e[t]||e[Vt(t)]||e[Wn(Vt(t))])}function Tt(e,t,n,o){let i;const s=n&&n[o];if(de(e)||We(e)){i=new Array(e.length);for(let r=0,c=e.length;r<c;r++)i[r]=t(e[r],r,void 0,s&&s[r])}else if(typeof e=="number"){Number.isInteger(e)||Y(`The v-for range expect an integer value but got ${e}.`),i=new Array(e);for(let r=0;r<e;r++)i[r]=t(r+1,r,void 0,s&&s[r])}else if(Fe(e))if(e[Symbol.iterator])i=Array.from(e,(r,c)=>t(r,c,void 0,s&&s[c]));else{const r=Object.keys(e);i=new Array(r.length);for(let c=0,u=r.length;c<u;c++){const p=r[c];i[c]=t(e[p],p,c,s&&s[c])}}else i=[];return n&&(n[o]=i),i}function ln(e,t,n={},o,i){if(ot.isCE||ot.parent&&hi(ot.parent)&&ot.parent.isCE)return t!=="default"&&(n.name=t),be("slot",n,o&&o());let s=e[t];s&&s.length>1&&(Y("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."),s=()=>[]),s&&s._c&&(s._d=!1),Q();const r=s&&tu(s(n)),c=Ft(Ve,{key:n.key||r&&r.key||`_${t}`},r||(o?o():[]),r&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),s&&s._c&&(s._d=!0),c}function tu(e){return e.some(t=>To(t)?!(t.type===gt||t.type===Ve&&!tu(t.children)):!0)?e:null}const ia=e=>e?Eu(e)?Bs(e)||e.proxy:ia(e.parent):null,io=Qe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>ko(e.props),$attrs:e=>ko(e.attrs),$slots:e=>ko(e.slots),$refs:e=>ko(e.refs),$parent:e=>ia(e.parent),$root:e=>ia(e.root),$emit:e=>e.emit,$options:e=>la(e),$forceUpdate:e=>e.f||(e.f=()=>xs(e.update)),$nextTick:e=>e.n||(e.n=Mc.bind(e.proxy)),$watch:e=>Ng.bind(e)}),sa=e=>e==="_"||e==="$",ra=(e,t)=>e!==Ue&&!e.__isScriptSetup&&Ie(e,t),nu={get({_:e},t){const{ctx:n,setupState:o,data:i,props:s,accessCache:r,type:c,appContext:u}=e;if(t==="__isVue")return!0;let p;if(t[0]!=="$"){const x=r[t];if(x!==void 0)switch(x){case 1:return o[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(ra(o,t))return r[t]=1,o[t];if(i!==Ue&&Ie(i,t))return r[t]=2,i[t];if((p=e.propsOptions[0])&&Ie(p,t))return r[t]=3,s[t];if(n!==Ue&&Ie(n,t))return r[t]=4,n[t];aa&&(r[t]=0)}}const f=io[t];let h,y;if(f)return t==="$attrs"&&(Ct(e,"get",t),Ss()),f(e);if((h=c.__cssModules)&&(h=h[t]))return h;if(n!==Ue&&Ie(n,t))return r[t]=4,n[t];if(y=u.config.globalProperties,Ie(y,t))return y[t];ot&&(!We(t)||t.indexOf("__v")!==0)&&(i!==Ue&&sa(t[0])&&Ie(i,t)?Y(`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===ot&&Y(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:o,setupState:i,ctx:s}=e;return ra(i,t)?(i[t]=n,!0):i.__isScriptSetup&&Ie(i,t)?(Y(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):o!==Ue&&Ie(o,t)?(o[t]=n,!0):Ie(e.props,t)?(Y(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(Y(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(t in e.appContext.config.globalProperties?Object.defineProperty(s,t,{enumerable:!0,configurable:!0,value:n}):s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:i,propsOptions:s}},r){let c;return!!n[r]||e!==Ue&&Ie(e,r)||ra(t,r)||(c=s[0])&&Ie(c,r)||Ie(o,r)||Ie(io,r)||Ie(i.config.globalProperties,r)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ie(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};nu.ownKeys=e=>(Y("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 Gg(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(io).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:()=>io[n](e),set:xt})}),t}function Jg(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:xt})})}function Yg(e){const{ctx:t,setupState:n}=e;Object.keys(Ae(n)).forEach(o=>{if(!n.__isScriptSetup){if(sa(o[0])){Y(`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:xt})}})}function Xg(){const e=Object.create(null);return(t,n)=>{e[n]?Y(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}let aa=!0;function Zg(e){const t=la(e),n=e.proxy,o=e.ctx;aa=!1,t.beforeCreate&&ou(t.beforeCreate,e,"bc");const{data:i,computed:s,methods:r,watch:c,provide:u,inject:p,created:f,beforeMount:h,mounted:y,beforeUpdate:x,updated:k,activated:O,deactivated:z,beforeDestroy:G,beforeUnmount:D,destroyed:j,unmounted:Z,render:ne,renderTracked:ee,renderTriggered:Me,errorCaptured:Ee,serverPrefetch:Se,expose:Pe,inheritAttrs:fe,components:te,directives:xe,filters:oe}=t,Re=Xg();{const[W]=e.propsOptions;if(W)for(const B in W)Re("Props",B)}if(p&&Qg(p,o,Re,e.appContext.config.unwrapInjectedRef),r)for(const W in r){const B=r[W];ge(B)?(Object.defineProperty(o,W,{value:B.bind(n),configurable:!0,enumerable:!0,writable:!0}),Re("Methods",W)):Y(`Method "${W}" has type "${typeof B}" in the component definition. Did you reference the function correctly?`)}if(i){ge(i)||Y("The data option must be a function. Plain object usage is no longer supported.");const W=i.call(n,n);if(ss(W)&&Y("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Fe(W))Y("data() should return an object.");else{e.data=ys(W);for(const B in W)Re("Data",B),sa(B[0])||Object.defineProperty(o,B,{configurable:!0,enumerable:!0,get:()=>W[B],set:xt})}}if(aa=!0,s)for(const W in s){const B=s[W],ce=ge(B)?B.bind(n,n):ge(B.get)?B.get.bind(n,n):xt;ce===xt&&Y(`Computed property "${W}" has no getter.`);const we=!ge(B)&&ge(B.set)?B.set.bind(n):()=>{Y(`Write operation failed: computed property "${W}" is readonly.`)},Oe=Au({get:ce,set:we});Object.defineProperty(o,W,{enumerable:!0,configurable:!0,get:()=>Oe.value,set:Ge=>Oe.value=Ge}),Re("Computed",W)}if(c)for(const W in c)iu(c[W],o,n,W);if(u){const W=ge(u)?u.call(n):u;Reflect.ownKeys(W).forEach(B=>{di(B,W[B])})}f&&ou(f,e,"c");function M(W,B){de(B)?B.forEach(ce=>W(ce.bind(n))):B&&W(B.bind(n))}if(M(rn,h),M(an,y),M(Fg,x),M(Hg,k),M(Dg,O),M(Rg,z),M(Vg,Ee),M(qg,ee),M(zg,Me),M(Zc,D),M(mi,Z),M(Ug,Se),de(Pe))if(Pe.length){const W=e.exposed||(e.exposed={});Pe.forEach(B=>{Object.defineProperty(W,B,{get:()=>n[B],set:ce=>n[B]=ce})})}else e.exposed||(e.exposed={});ne&&e.render===xt&&(e.render=ne),fe!=null&&(e.inheritAttrs=fe),te&&(e.components=te),xe&&(e.directives=xe)}function Qg(e,t,n=xt,o=!1){de(e)&&(e=ca(e));for(const i in e){const s=e[i];let r;Fe(s)?"default"in s?r=pi(s.from||i,s.default,!0):r=pi(s.from||i):r=pi(s),et(r)?o?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:c=>r.value=c}):(Y(`injected property "${i}" 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[i]=r):t[i]=r,n("Inject",i)}}function ou(e,t,n){jt(de(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function iu(e,t,n,o){const i=o.includes(".")?Yc(n,o):()=>n[o];if(We(e)){const s=t[e];ge(s)?kt(i,s):Y(`Invalid watch handler specified by key "${e}"`,s)}else if(ge(e))kt(i,e.bind(n));else if(Fe(e))if(de(e))e.forEach(s=>iu(s,t,n,o));else{const s=ge(e.handler)?e.handler.bind(n):t[e.handler];ge(s)?kt(i,s,e):Y(`Invalid watch handler specified by key "${e.handler}"`,s)}else Y(`Invalid watch option: "${o}"`,e)}function la(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:r}}=e.appContext,c=s.get(t);let u;return c?u=c:!i.length&&!n&&!o?u=t:(u={},i.length&&i.forEach(p=>Os(u,p,r,!0)),Os(u,t,r)),Fe(t)&&s.set(t,u),u}function Os(e,t,n,o=!1){const{mixins:i,extends:s}=t;s&&Os(e,s,n,!0),i&&i.forEach(r=>Os(e,r,n,!0));for(const r in t)if(o&&r==="expose")Y('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const c=ew[r]||n&&n[r];e[r]=c?c(e[r],t[r]):t[r]}return e}const ew={data:su,props:so,emits:so,methods:so,computed:so,beforeCreate:mt,created:mt,beforeMount:mt,mounted:mt,beforeUpdate:mt,updated:mt,beforeDestroy:mt,beforeUnmount:mt,destroyed:mt,unmounted:mt,activated:mt,deactivated:mt,errorCaptured:mt,serverPrefetch:mt,components:so,directives:so,watch:nw,provide:su,inject:tw};function su(e,t){return t?e?function(){return Qe(ge(e)?e.call(this,this):e,ge(t)?t.call(this,this):t)}:t:e}function tw(e,t){return so(ca(e),ca(t))}function ca(e){if(de(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function mt(e,t){return e?[...new Set([].concat(e,t))]:t}function so(e,t){return e?Qe(Qe(Object.create(null),e),t):t}function nw(e,t){if(!e)return t;if(!t)return e;const n=Qe(Object.create(null),e);for(const o in t)n[o]=mt(e[o],t[o]);return n}function ow(e,t,n,o=!1){const i={},s={};ls(s,Ts,1),e.propsDefaults=Object.create(null),ru(e,t,i,s);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);fu(t||{},i,e),n?e.props=o?i:Vm(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function iw(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function sw(e,t,n,o){const{props:i,attrs:s,vnode:{patchFlag:r}}=e,c=Ae(i),[u]=e.propsOptions;let p=!1;if(!iw(e)&&(o||r>0)&&!(r&16)){if(r&8){const f=e.vnode.dynamicProps;for(let h=0;h<f.length;h++){let y=f[h];if(Cs(e.emitsOptions,y))continue;const x=t[y];if(u)if(Ie(s,y))x!==s[y]&&(s[y]=x,p=!0);else{const k=Vt(y);i[k]=ua(u,c,k,x,e,!1)}else x!==s[y]&&(s[y]=x,p=!0)}}}else{ru(e,t,i,s)&&(p=!0);let f;for(const h in c)(!t||!Ie(t,h)&&((f=tn(h))===h||!Ie(t,f)))&&(u?n&&(n[h]!==void 0||n[f]!==void 0)&&(i[h]=ua(u,c,h,void 0,e,!0)):delete i[h]);if(s!==c)for(const h in s)(!t||!Ie(t,h)&&!0)&&(delete s[h],p=!0)}p&&nn(e,"set","$attrs"),fu(t||{},i,e)}function ru(e,t,n,o){const[i,s]=e.propsOptions;let r=!1,c;if(t)for(let u in t){if(rs(u))continue;const p=t[u];let f;i&&Ie(i,f=Vt(u))?!s||!s.includes(f)?n[f]=p:(c||(c={}))[f]=p:Cs(e.emitsOptions,u)||(!(u in o)||p!==o[u])&&(o[u]=p,r=!0)}if(s){const u=Ae(n),p=c||Ue;for(let f=0;f<s.length;f++){const h=s[f];n[h]=ua(i,u,h,p[h],e,!Ie(p,h))}}return r}function ua(e,t,n,o,i,s){const r=e[n];if(r!=null){const c=Ie(r,"default");if(c&&o===void 0){const u=r.default;if(r.type!==Function&&ge(u)){const{propsDefaults:p}=i;n in p?o=p[n]:(Mn(i),o=p[n]=u.call(null,t),Bn())}else o=u}r[0]&&(s&&!c?o=!1:r[1]&&(o===""||o===tn(n))&&(o=!0))}return o}function au(e,t,n=!1){const o=t.propsCache,i=o.get(e);if(i)return i;const s=e.props,r={},c=[];let u=!1;if(!ge(e)){const f=h=>{u=!0;const[y,x]=au(h,t,!0);Qe(r,y),x&&c.push(...x)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!s&&!u)return Fe(e)&&o.set(e,Eo),Eo;if(de(s))for(let f=0;f<s.length;f++){We(s[f])||Y("props must be strings when using array syntax.",s[f]);const h=Vt(s[f]);lu(h)&&(r[h]=Ue)}else if(s){Fe(s)||Y("invalid props options",s);for(const f in s){const h=Vt(f);if(lu(h)){const y=s[f],x=r[h]=de(y)||ge(y)?{type:y}:Object.assign({},y);if(x){const k=uu(Boolean,x.type),O=uu(String,x.type);x[0]=k>-1,x[1]=O<0||k<O,(k>-1||Ie(x,"default"))&&c.push(h)}}}}const p=[r,c];return Fe(e)&&o.set(e,p),p}function lu(e){return e[0]!=="$"?!0:(Y(`Invalid prop name: "${e}" is a reserved property.`),!1)}function fa(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function cu(e,t){return fa(e)===fa(t)}function uu(e,t){return de(t)?t.findIndex(n=>cu(n,e)):ge(t)&&cu(t,e)?0:-1}function fu(e,t,n){const o=Ae(t),i=n.propsOptions[0];for(const s in i){let r=i[s];r!=null&&rw(s,o[s],r,!Ie(e,s)&&!Ie(e,tn(s)))}}function rw(e,t,n,o){const{type:i,required:s,validator:r}=n;if(s&&o){Y('Missing required prop: "'+e+'"');return}if(!(t==null&&!n.required)){if(i!=null&&i!==!0){let c=!1;const u=de(i)?i:[i],p=[];for(let f=0;f<u.length&&!c;f++){const{valid:h,expectedType:y}=lw(t,u[f]);p.push(y||""),c=h}if(!c){Y(cw(e,t,p));return}}r&&!r(t)&&Y('Invalid prop: custom validator check failed for prop "'+e+'".')}}const aw=Cn("String,Number,Boolean,Function,Symbol,BigInt");function lw(e,t){let n;const o=fa(t);if(aw(o)){const i=typeof e;n=i===o.toLowerCase(),!n&&i==="object"&&(n=e instanceof t)}else o==="Object"?n=Fe(e):o==="Array"?n=de(e):o==="null"?n=e===null:n=e instanceof t;return{valid:n,expectedType:o}}function cw(e,t,n){let o=`Invalid prop: type check failed for prop "${e}". Expected ${n.map(Wn).join(" | ")}`;const i=n[0],s=Tr(t),r=du(t,i),c=du(t,s);return n.length===1&&pu(i)&&!uw(i,s)&&(o+=` with value ${r}`),o+=`, got ${s} `,pu(s)&&(o+=`with value ${c}.`),o}function du(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function pu(e){return["string","number","boolean"].some(n=>e.toLowerCase()===n)}function uw(...e){return e.some(t=>t.toLowerCase()==="boolean")}const hu=e=>e[0]==="_"||e==="$stable",da=e=>de(e)?e.map(Bt):[Bt(e)],fw=(e,t,n)=>{if(t._n)return t;const o=qe((...i)=>(Ke&&Y(`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.`),da(t(...i))),n);return o._c=!1,o},mu=(e,t,n)=>{const o=e._ctx;for(const i in e){if(hu(i))continue;const s=e[i];if(ge(s))t[i]=fw(i,s,o);else if(s!=null){Y(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const r=da(s);t[i]=()=>r}}},gu=(e,t)=>{na(e.vnode)||Y("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=da(t);e.slots.default=()=>n},dw=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ae(t),ls(t,"_",n)):mu(t,e.slots={})}else e.slots={},t&&gu(e,t);ls(e.slots,Ts,1)},pw=(e,t,n)=>{const{vnode:o,slots:i}=e;let s=!0,r=Ue;if(o.shapeFlag&32){const c=t._;c?Qn?Qe(i,t):n&&c===1?s=!1:(Qe(i,t),!n&&c===1&&delete i._):(s=!t.$stable,mu(t,i)),r=t}else t&&(gu(e,t),r={default:1});if(s)for(const c in i)!hu(c)&&!(c in r)&&delete i[c]};function wu(){return{app:null,config:{isNativeTag:Ql,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 hw=0;function mw(e,t){return function(o,i=null){ge(o)||(o=Object.assign({},o)),i!=null&&!Fe(i)&&(Y("root props passed to app.mount() must be an object."),i=null);const s=wu(),r=new Set;let c=!1;const u=s.app={_uid:hw++,_component:o,_props:i,_container:null,_context:s,_instance:null,version:Ou,get config(){return s.config},set config(p){Y("app.config cannot be replaced. Modify individual options instead.")},use(p,...f){return r.has(p)?Y("Plugin has already been applied to target app."):p&&ge(p.install)?(r.add(p),p.install(u,...f)):ge(p)?(r.add(p),p(u,...f)):Y('A plugin must either be a function or an object with an "install" function.'),u},mixin(p){return s.mixins.includes(p)?Y("Mixin has already been applied to target app"+(p.name?`: ${p.name}`:"")):s.mixins.push(p),u},component(p,f){return ma(p,s.config),f?(s.components[p]&&Y(`Component "${p}" has already been registered in target app.`),s.components[p]=f,u):s.components[p]},directive(p,f){return Qc(p),f?(s.directives[p]&&Y(`Directive "${p}" has already been registered in target app.`),s.directives[p]=f,u):s.directives[p]},mount(p,f,h){if(c)Y("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{p.__vue_app__&&Y("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 y=be(o,i);return y.appContext=s,s.reload=()=>{e(In(y),p,h)},f&&t?t(y,p):e(y,p,h),c=!0,u._container=p,p.__vue_app__=u,u._instance=y.component,hg(u,Ou),Bs(y.component)||y.component.proxy}},unmount(){c?(e(null,u._container),u._instance=null,mg(u),delete u._container.__vue_app__):Y("Cannot unmount an app that is not mounted.")},provide(p,f){return p in s.provides&&Y(`App already provides property with key "${String(p)}". It will be overwritten with the new value.`),s.provides[p]=f,u}};return u}}function pa(e,t,n,o,i=!1){if(de(e)){e.forEach((y,x)=>pa(y,t&&(de(t)?t[x]:t),n,o,i));return}if(hi(o)&&!i)return;const s=o.shapeFlag&4?Bs(o.component)||o.component.proxy:o.el,r=i?null:s,{i:c,r:u}=e;if(!c){Y("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const p=t&&t.r,f=c.refs===Ue?c.refs={}:c.refs,h=c.setupState;if(p!=null&&p!==u&&(We(p)?(f[p]=null,Ie(h,p)&&(h[p]=null)):et(p)&&(p.value=null)),ge(u))on(u,c,12,[r,f]);else{const y=We(u),x=et(u);if(y||x){const k=()=>{if(e.f){const O=y?Ie(h,u)?h[u]:f[u]:u.value;i?de(O)&&Ir(O,s):de(O)?O.includes(s)||O.push(s):y?(f[u]=[s],Ie(h,u)&&(h[u]=f[u])):(u.value=[s],e.k&&(f[e.k]=u.value))}else y?(f[u]=r,Ie(h,u)&&(h[u]=r)):x?(u.value=r,e.k&&(f[e.k]=r)):Y("Invalid template ref type:",u,`(${typeof u})`)};r?(k.id=-1,$t(k,n)):k()}else Y("Invalid template ref type:",u,`(${typeof u})`)}}let gi,On;function cn(e,t){e.appContext.config.performance&&Ps()&&On.mark(`vue-${t}-${e.uid}`),bg(e,t,Ps()?On.now():Date.now())}function un(e,t){if(e.appContext.config.performance&&Ps()){const n=`vue-${t}-${e.uid}`,o=n+":end";On.mark(o),On.measure(`<${Ls(e,e.type)}> ${t}`,n,o),On.clearMarks(n),On.clearMarks(o)}vg(e,t,Ps()?On.now():Date.now())}function Ps(){return gi!==void 0||(typeof window<"u"&&window.performance?(gi=!0,On=window.performance):gi=!1),gi}function gw(){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 $t=Lg;function ww(e){return yw(e)}function yw(e,t){gw();const n=ic();n.__VUE__=!0,Fc(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:o,remove:i,patchProp:s,createElement:r,createText:c,createComment:u,setText:p,setElementText:f,parentNode:h,nextSibling:y,setScopeId:x=xt,insertStaticContent:k}=e,O=(b,S,I,P=null,R=null,J=null,X=!1,U=null,V=Qn?!1:!!S.dynamicChildren)=>{if(b===S)return;b&&!Pn(b,S)&&(P=yt(b),Je(b,R,J,!0),b=null),S.patchFlag===-2&&(V=!1,S.dynamicChildren=null);const{type:q,ref:ie,shapeFlag:L}=S;switch(q){case wi:z(b,S,I,P);break;case gt:G(b,S,I,P);break;case yi:b==null?D(S,I,P,X):j(b,S,I,X);break;case Ve:xe(b,S,I,P,R,J,X,U,V);break;default:L&1?ee(b,S,I,P,R,J,X,U,V):L&6?oe(b,S,I,P,R,J,X,U,V):L&64||L&128?q.process(b,S,I,P,R,J,X,U,V,Xe):Y("Invalid VNode type:",q,`(${typeof q})`)}ie!=null&&R&&pa(ie,b&&b.ref,J,S||b,!S)},z=(b,S,I,P)=>{if(b==null)o(S.el=c(S.children),I,P);else{const R=S.el=b.el;S.children!==b.children&&p(R,S.children)}},G=(b,S,I,P)=>{b==null?o(S.el=u(S.children||""),I,P):S.el=b.el},D=(b,S,I,P)=>{[b.el,b.anchor]=k(b.children,S,I,P,b.el,b.anchor)},j=(b,S,I,P)=>{if(S.children!==b.children){const R=y(b.anchor);ne(b),[S.el,S.anchor]=k(S.children,I,R,P)}else S.el=b.el,S.anchor=b.anchor},Z=({el:b,anchor:S},I,P)=>{let R;for(;b&&b!==S;)R=y(b),o(b,I,P),b=R;o(S,I,P)},ne=({el:b,anchor:S})=>{let I;for(;b&&b!==S;)I=y(b),i(b),b=I;i(S)},ee=(b,S,I,P,R,J,X,U,V)=>{X=X||S.type==="svg",b==null?Me(S,I,P,R,J,X,U,V):Pe(b,S,R,J,X,U,V)},Me=(b,S,I,P,R,J,X,U)=>{let V,q;const{type:ie,props:L,shapeFlag:se,transition:d,dirs:w}=b;if(V=b.el=r(b.type,J,L&&L.is,L),se&8?f(V,b.children):se&16&&Se(b.children,V,null,P,R,J&&ie!=="foreignObject",X,U),w&&no(b,null,P,"created"),Ee(V,b,b.scopeId,X,P),L){for(const C in L)C!=="value"&&!rs(C)&&s(V,C,null,L[C],J,b.children,P,R,wt);"value"in L&&s(V,"value",null,L.value),(q=L.onVnodeBeforeMount)&&Jt(q,P,b)}Object.defineProperty(V,"__vnode",{value:b,enumerable:!1}),Object.defineProperty(V,"__vueParentComponent",{value:P,enumerable:!1}),w&&no(b,null,P,"beforeMount");const _=(!R||R&&!R.pendingBranch)&&d&&!d.persisted;_&&d.beforeEnter(V),o(V,S,I),((q=L&&L.onVnodeMounted)||_||w)&&$t(()=>{q&&Jt(q,P,b),_&&d.enter(V),w&&no(b,null,P,"mounted")},R)},Ee=(b,S,I,P,R)=>{if(I&&x(b,I),P)for(let J=0;J<P.length;J++)x(b,P[J]);if(R){let J=R.subTree;if(J.patchFlag>0&&J.patchFlag&2048&&(J=Qr(J.children)||J),S===J){const X=R.vnode;Ee(b,X,X.scopeId,X.slotScopeIds,R.parent)}}},Se=(b,S,I,P,R,J,X,U,V=0)=>{for(let q=V;q<b.length;q++){const ie=b[q]=U?Tn(b[q]):Bt(b[q]);O(null,ie,S,I,P,R,J,X,U)}},Pe=(b,S,I,P,R,J,X)=>{const U=S.el=b.el;let{patchFlag:V,dynamicChildren:q,dirs:ie}=S;V|=b.patchFlag&16;const L=b.props||Ue,se=S.props||Ue;let d;I&&ro(I,!1),(d=se.onVnodeBeforeUpdate)&&Jt(d,I,S,b),ie&&no(S,b,I,"beforeUpdate"),I&&ro(I,!0),Qn&&(V=0,X=!1,q=null);const w=R&&S.type!=="foreignObject";if(q?(fe(b.dynamicChildren,q,U,I,P,w,J),I&&I.type.__hmrId&&Is(b,S)):X||ce(b,S,U,null,I,P,w,J,!1),V>0){if(V&16)te(U,S,L,se,I,P,R);else if(V&2&&L.class!==se.class&&s(U,"class",null,se.class,R),V&4&&s(U,"style",L.style,se.style,R),V&8){const _=S.dynamicProps;for(let C=0;C<_.length;C++){const A=_[C],E=L[A],N=se[A];(N!==E||A==="value")&&s(U,A,E,N,R,b.children,I,P,wt)}}V&1&&b.children!==S.children&&f(U,S.children)}else!X&&q==null&&te(U,S,L,se,I,P,R);((d=se.onVnodeUpdated)||ie)&&$t(()=>{d&&Jt(d,I,S,b),ie&&no(S,b,I,"updated")},P)},fe=(b,S,I,P,R,J,X)=>{for(let U=0;U<S.length;U++){const V=b[U],q=S[U],ie=V.el&&(V.type===Ve||!Pn(V,q)||V.shapeFlag&70)?h(V.el):I;O(V,q,ie,null,P,R,J,X,!0)}},te=(b,S,I,P,R,J,X)=>{if(I!==P){if(I!==Ue)for(const U in I)!rs(U)&&!(U in P)&&s(b,U,I[U],null,X,S.children,R,J,wt);for(const U in P){if(rs(U))continue;const V=P[U],q=I[U];V!==q&&U!=="value"&&s(b,U,q,V,X,S.children,R,J,wt)}"value"in P&&s(b,"value",I.value,P.value)}},xe=(b,S,I,P,R,J,X,U,V)=>{const q=S.el=b?b.el:c(""),ie=S.anchor=b?b.anchor:c("");let{patchFlag:L,dynamicChildren:se,slotScopeIds:d}=S;(Qn||L&2048)&&(L=0,V=!1,se=null),d&&(U=U?U.concat(d):d),b==null?(o(q,I,P),o(ie,I,P),Se(S.children,I,ie,R,J,X,U,V)):L>0&&L&64&&se&&b.dynamicChildren?(fe(b.dynamicChildren,se,I,R,J,X,U),R&&R.type.__hmrId?Is(b,S):(S.key!=null||R&&S===R.subTree)&&Is(b,S,!0)):ce(b,S,I,ie,R,J,X,U,V)},oe=(b,S,I,P,R,J,X,U,V)=>{S.slotScopeIds=U,b==null?S.shapeFlag&512?R.ctx.activate(S,I,P,X,V):Re(S,I,P,R,J,X,V):M(b,S,V)},Re=(b,S,I,P,R,J,X)=>{const U=b.component=Sw(b,P,R);if(U.type.__hmrId&&ug(U),oi(b),cn(U,"mount"),na(b)&&(U.ctx.renderer=Xe),cn(U,"init"),Ow(U),un(U,"init"),U.asyncDep){if(R&&R.registerDep(U,W),!b.el){const V=U.subTree=be(gt);G(null,V,S,I)}return}W(U,b,S,I,R,J,X),ii(),un(U,"mount")},M=(b,S,I)=>{const P=S.component=b.component;if(Og(b,S,I))if(P.asyncDep&&!P.asyncResolved){oi(S),B(P,S,I),ii();return}else P.next=S,lg(P.update),P.update();else S.el=b.el,P.vnode=S},W=(b,S,I,P,R,J,X)=>{const U=()=>{if(b.isMounted){let{next:ie,bu:L,u:se,parent:d,vnode:w}=b,_=ie,C;oi(ie||b.vnode),ro(b,!1),ie?(ie.el=w.el,B(b,ie,X)):ie=w,L&&So(L),(C=ie.props&&ie.props.onVnodeBeforeUpdate)&&Jt(C,d,ie,w),ro(b,!0),cn(b,"render");const A=Zr(b);un(b,"render");const E=b.subTree;b.subTree=A,cn(b,"patch"),O(E,A,h(E.el),yt(E),b,R,J),un(b,"patch"),ie.el=A.el,_===null&&ea(b,A.el),se&&$t(se,R),(C=ie.props&&ie.props.onVnodeUpdated)&&$t(()=>Jt(C,d,ie,w),R),Hc(b),ii()}else{let ie;const{el:L,props:se}=S,{bm:d,m:w,parent:_}=b,C=hi(S);if(ro(b,!1),d&&So(d),!C&&(ie=se&&se.onVnodeBeforeMount)&&Jt(ie,_,S),ro(b,!0),L&&at){const A=()=>{cn(b,"render"),b.subTree=Zr(b),un(b,"render"),cn(b,"hydrate"),at(L,b.subTree,b,R,null),un(b,"hydrate")};C?S.type.__asyncLoader().then(()=>!b.isUnmounted&&A()):A()}else{cn(b,"render");const A=b.subTree=Zr(b);un(b,"render"),cn(b,"patch"),O(null,A,I,P,b,R,J),un(b,"patch"),S.el=A.el}if(w&&$t(w,R),!C&&(ie=se&&se.onVnodeMounted)){const A=S;$t(()=>Jt(ie,_,A),R)}(S.shapeFlag&256||_&&hi(_.vnode)&&_.vnode.shapeFlag&256)&&b.a&&$t(b.a,R),b.isMounted=!0,gg(b),S=I=P=null}},V=b.effect=new jr(U,()=>xs(q),b.scope),q=b.update=()=>V.run();q.id=b.uid,ro(b,!0),V.onTrack=b.rtc?ie=>So(b.rtc,ie):void 0,V.onTrigger=b.rtg?ie=>So(b.rtg,ie):void 0,q.ownerInstance=b,q()},B=(b,S,I)=>{S.component=b;const P=b.vnode.props;b.vnode=S,b.next=null,sw(b,S.props,P,I),pw(b,S.children,I),Jn(),Lc(),Yn()},ce=(b,S,I,P,R,J,X,U,V=!1)=>{const q=b&&b.children,ie=b?b.shapeFlag:0,L=S.children,{patchFlag:se,shapeFlag:d}=S;if(se>0){if(se&128){Oe(q,L,I,P,R,J,X,U,V);return}else if(se&256){we(q,L,I,P,R,J,X,U,V);return}}d&8?(ie&16&&wt(q,R,J),L!==q&&f(I,L)):ie&16?d&16?Oe(q,L,I,P,R,J,X,U,V):wt(q,R,J,!0):(ie&8&&f(I,""),d&16&&Se(L,I,P,R,J,X,U,V))},we=(b,S,I,P,R,J,X,U,V)=>{b=b||Eo,S=S||Eo;const q=b.length,ie=S.length,L=Math.min(q,ie);let se;for(se=0;se<L;se++){const d=S[se]=V?Tn(S[se]):Bt(S[se]);O(b[se],d,I,null,R,J,X,U,V)}q>ie?wt(b,R,J,!0,!1,L):Se(S,I,P,R,J,X,U,V,L)},Oe=(b,S,I,P,R,J,X,U,V)=>{let q=0;const ie=S.length;let L=b.length-1,se=ie-1;for(;q<=L&&q<=se;){const d=b[q],w=S[q]=V?Tn(S[q]):Bt(S[q]);if(Pn(d,w))O(d,w,I,null,R,J,X,U,V);else break;q++}for(;q<=L&&q<=se;){const d=b[L],w=S[se]=V?Tn(S[se]):Bt(S[se]);if(Pn(d,w))O(d,w,I,null,R,J,X,U,V);else break;L--,se--}if(q>L){if(q<=se){const d=se+1,w=d<ie?S[d].el:P;for(;q<=se;)O(null,S[q]=V?Tn(S[q]):Bt(S[q]),I,w,R,J,X,U,V),q++}}else if(q>se)for(;q<=L;)Je(b[q],R,J,!0),q++;else{const d=q,w=q,_=new Map;for(q=w;q<=se;q++){const he=S[q]=V?Tn(S[q]):Bt(S[q]);he.key!=null&&(_.has(he.key)&&Y("Duplicate keys found during update:",JSON.stringify(he.key),"Make sure keys are unique."),_.set(he.key,q))}let C,A=0;const E=se-w+1;let N=!1,F=0;const K=new Array(E);for(q=0;q<E;q++)K[q]=0;for(q=d;q<=L;q++){const he=b[q];if(A>=E){Je(he,R,J,!0);continue}let le;if(he.key!=null)le=_.get(he.key);else for(C=w;C<=se;C++)if(K[C-w]===0&&Pn(he,S[C])){le=C;break}le===void 0?Je(he,R,J,!0):(K[le-w]=q+1,le>=F?F=le:N=!0,O(he,S[le],I,null,R,J,X,U,V),A++)}const me=N?bw(K):Eo;for(C=me.length-1,q=E-1;q>=0;q--){const he=w+q,le=S[he],Be=he+1<ie?S[he+1].el:P;K[q]===0?O(null,le,I,Be,R,J,X,U,V):N&&(C<0||q!==me[C]?Ge(le,I,Be,2):C--)}}},Ge=(b,S,I,P,R=null)=>{const{el:J,type:X,transition:U,children:V,shapeFlag:q}=b;if(q&6){Ge(b.component.subTree,S,I,P);return}if(q&128){b.suspense.move(S,I,P);return}if(q&64){X.move(b,S,I,Xe);return}if(X===Ve){o(J,S,I);for(let L=0;L<V.length;L++)Ge(V[L],S,I,P);o(b.anchor,S,I);return}if(X===yi){Z(b,S,I);return}if(P!==2&&q&1&&U)if(P===0)U.beforeEnter(J),o(J,S,I),$t(()=>U.enter(J),R);else{const{leave:L,delayLeave:se,afterLeave:d}=U,w=()=>o(J,S,I),_=()=>{L(J,()=>{w(),d&&d()})};se?se(J,w,_):_()}else o(J,S,I)},Je=(b,S,I,P=!1,R=!1)=>{const{type:J,props:X,ref:U,children:V,dynamicChildren:q,shapeFlag:ie,patchFlag:L,dirs:se}=b;if(U!=null&&pa(U,null,I,b,!0),ie&256){S.ctx.deactivate(b);return}const d=ie&1&&se,w=!hi(b);let _;if(w&&(_=X&&X.onVnodeBeforeUnmount)&&Jt(_,S,b),ie&6)wn(b.component,I,P);else{if(ie&128){b.suspense.unmount(I,P);return}d&&no(b,null,S,"beforeUnmount"),ie&64?b.type.remove(b,S,I,R,Xe,P):q&&(J!==Ve||L>0&&L&64)?wt(q,S,I,!1,!0):(J===Ve&&L&384||!R&&ie&16)&&wt(V,S,I),P&&At(b)}(w&&(_=X&&X.onVnodeUnmounted)||d)&&$t(()=>{_&&Jt(_,S,b),d&&no(b,null,S,"unmounted")},I)},At=b=>{const{type:S,el:I,anchor:P,transition:R}=b;if(S===Ve){b.patchFlag>0&&b.patchFlag&2048&&R&&!R.persisted?b.children.forEach(X=>{X.type===gt?i(X.el):At(X)}):Ot(I,P);return}if(S===yi){ne(b);return}const J=()=>{i(I),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(b.shapeFlag&1&&R&&!R.persisted){const{leave:X,delayLeave:U}=R,V=()=>X(I,J);U?U(b.el,J,V):V()}else J()},Ot=(b,S)=>{let I;for(;b!==S;)I=y(b),i(b),b=I;i(S)},wn=(b,S,I)=>{b.type.__hmrId&&fg(b);const{bum:P,scope:R,update:J,subTree:X,um:U}=b;P&&So(P),R.stop(),J&&(J.active=!1,Je(X,b,S,I)),U&&$t(U,S),$t(()=>{b.isUnmounted=!0},S),S&&S.pendingBranch&&!S.isUnmounted&&b.asyncDep&&!b.asyncResolved&&b.suspenseId===S.pendingId&&(S.deps--,S.deps===0&&S.resolve()),yg(b)},wt=(b,S,I,P=!1,R=!1,J=0)=>{for(let X=J;X<b.length;X++)Je(b[X],S,I,P,R)},yt=b=>b.shapeFlag&6?yt(b.component.subTree):b.shapeFlag&128?b.suspense.next():y(b.anchor||b.el),lt=(b,S,I)=>{b==null?S._vnode&&Je(S._vnode,null,null,!0):O(S._vnode||null,b,S,null,null,null,I),Lc(),Nc(),S._vnode=b},Xe={p:O,um:Je,m:Ge,r:At,mt:Re,mc:Se,pc:ce,pbc:fe,n:yt,o:e};let Hn,at;return t&&([Hn,at]=t(Xe)),{render:lt,hydrate:Hn,createApp:mw(lt,Hn)}}function ro({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Is(e,t,n=!1){const o=e.children,i=t.children;if(de(o)&&de(i))for(let s=0;s<o.length;s++){const r=o[s];let c=i[s];c.shapeFlag&1&&!c.dynamicChildren&&((c.patchFlag<=0||c.patchFlag===32)&&(c=i[s]=Tn(i[s]),c.el=r.el),n||Is(r,c)),c.type===wi&&(c.el=r.el),c.type===gt&&!c.el&&(c.el=r.el)}}function bw(e){const t=e.slice(),n=[0];let o,i,s,r,c;const u=e.length;for(o=0;o<u;o++){const p=e[o];if(p!==0){if(i=n[n.length-1],e[i]<p){t[o]=i,n.push(o);continue}for(s=0,r=n.length-1;s<r;)c=s+r>>1,e[n[c]]<p?s=c+1:r=c;p<e[n[s]]&&(s>0&&(t[o]=n[s-1]),n[s]=o)}}for(s=n.length,r=n[s-1];s-- >0;)n[s]=r,r=t[r];return n}const vw=e=>e.__isTeleport,Ve=Symbol("Fragment"),wi=Symbol("Text"),gt=Symbol("Comment"),yi=Symbol("Static"),bi=[];let Mt=null;function Q(e=!1){bi.push(Mt=e?null:[])}function yu(){bi.pop(),Mt=bi[bi.length-1]||null}let Io=1;function bu(e){Io+=e}function vu(e){return e.dynamicChildren=Io>0?Mt||Eo:null,yu(),Io>0&&Mt&&Mt.push(e),e}function re(e,t,n,o,i,s){return vu(g(e,t,n,o,i,s,!0))}function Ft(e,t,n,o,i){return vu(be(e,t,n,o,i,!0))}function To(e){return e?e.__v_isVNode===!0:!1}function Pn(e,t){return t.shapeFlag&6&&Oo.has(t.type)?(e.shapeFlag&=-257,t.shapeFlag&=-513,!1):e.type===t.type&&e.key===t.key}const _w=(...e)=>xw(...e),Ts="__vInternal",_u=({key:e})=>e!=null?e:null,Ms=({ref:e,ref_key:t,ref_for:n})=>e!=null?We(e)||et(e)||ge(e)?{i:ot,r:e,k:t,f:!!n}:e:null;function g(e,t=null,n=null,o=0,i=null,s=e===Ve?0:1,r=!1,c=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&_u(t),ref:t&&Ms(t),scopeId:$s,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:s,patchFlag:o,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ot};return c?(ha(u,n),s&128&&e.normalize(u)):n&&(u.shapeFlag|=We(n)?8:16),u.key!==u.key&&Y("VNode created with invalid key (NaN). VNode type:",u.type),Io>0&&!r&&Mt&&(u.patchFlag>0||s&6)&&u.patchFlag!==32&&Mt.push(u),u}const be=_w;function xw(e,t=null,n=null,o=0,i=null,s=!1){if((!e||e===Wg)&&(e||Y(`Invalid vnode type when creating vnode: ${e}.`),e=gt),To(e)){const c=In(e,t,!0);return n&&ha(c,n),Io>0&&!s&&Mt&&(c.shapeFlag&6?Mt[Mt.indexOf(e)]=c:Mt.push(c)),c.patchFlag|=-2,c}if(ku(e)&&(e=e.__vccOpts),t){t=xu(t);let{class:c,style:u}=t;c&&!We(c)&&(t.class=Ze(c)),Fe(u)&&(_s(u)&&!de(u)&&(u=Qe({},u)),t.style=en(u))}const r=We(e)?1:Pg(e)?128:vw(e)?64:Fe(e)?4:ge(e)?2:0;return r&4&&_s(e)&&(e=Ae(e),Y("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)),g(e,t,n,o,i,r,s,!0)}function xu(e){return e?_s(e)||Ts in e?Qe({},e):e:null}function In(e,t,n=!1){const{props:o,ref:i,patchFlag:s,children:r}=e,c=t?$u(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&_u(c),ref:t&&t.ref?n&&i?de(i)?i.concat(Ms(t)):[i,Ms(t)]:Ms(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s===-1&&de(r)?r.map(Cu):r,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ve?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&In(e.ssContent),ssFallback:e.ssFallback&&In(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Cu(e){const t=In(e);return de(e.children)&&(t.children=e.children.map(Cu)),t}function ue(e=" ",t=0){return be(wi,null,e,t)}function Cw(e,t){const n=be(yi,null,e);return n.staticCount=t,n}function it(e="",t=!1){return t?(Q(),Ft(gt,null,e)):be(gt,null,e)}function Bt(e){return e==null||typeof e=="boolean"?be(gt):de(e)?be(Ve,null,e.slice()):typeof e=="object"?Tn(e):be(wi,null,String(e))}function Tn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:In(e)}function ha(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(de(t))n=16;else if(typeof t=="object")if(o&65){const i=t.default;i&&(i._c&&(i._d=!1),ha(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(Ts in t)?t._ctx=ot:i===3&&ot&&(ot.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ge(t)?(t={default:t,_ctx:ot},n=32):(t=String(t),o&64?(n=16,t=[ue(t)]):n=8);e.children=t,e.shapeFlag|=n}function $u(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const i in o)if(i==="class")t.class!==o.class&&(t.class=Ze([t.class,o.class]));else if(i==="style")t.style=en([t.style,o.style]);else if(Xo(i)){const s=t[i],r=o[i];r&&s!==r&&!(de(s)&&s.includes(r))&&(t[i]=s?[].concat(s,r):r)}else i!==""&&(t[i]=o[i])}return t}function Jt(e,t,n,o=null){jt(e,t,7,[n,o])}const $w=wu();let Ew=0;function Sw(e,t,n){const o=e.type,i=(t?t.appContext:e.appContext)||$w,s={uid:Ew++,vnode:e,type:o,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new hm(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:au(o,i),emitsOptions:zc(o,i),emit:null,emitted:null,propsDefaults:Ue,inheritAttrs:o.inheritAttrs,ctx:Ue,data:Ue,props:Ue,attrs:Ue,slots:Ue,refs:Ue,setupState:Ue,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 s.ctx=Gg(s),s.root=t?t.root:s,s.emit=xg.bind(null,s),e.ce&&e.ce(s),s}let Ke=null;const kw=()=>Ke||ot,Mn=e=>{Ke=e,e.scope.on()},Bn=()=>{Ke&&Ke.scope.off(),Ke=null},Aw=Cn("slot,component");function ma(e,t){const n=t.isNativeTag||Ql;(Aw(e)||n(e))&&Y("Do not use built-in or reserved HTML elements as component id: "+e)}function Eu(e){return e.vnode.shapeFlag&4}let vi=!1;function Ow(e,t=!1){vi=t;const{props:n,children:o}=e.vnode,i=Eu(e);ow(e,n,i,t),dw(e,o);const s=i?Pw(e,t):void 0;return vi=!1,s}function Pw(e,t){var n;const o=e.type;{if(o.name&&ma(o.name,e.appContext.config),o.components){const s=Object.keys(o.components);for(let r=0;r<s.length;r++)ma(s[r],e.appContext.config)}if(o.directives){const s=Object.keys(o.directives);for(let r=0;r<s.length;r++)Qc(s[r])}o.compilerOptions&&Iw()&&Y('"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=Sc(new Proxy(e.ctx,nu)),Jg(e);const{setup:i}=o;if(i){const s=e.setupContext=i.length>1?Mw(e):null;Mn(e),Jn();const r=on(i,e,0,[ko(e.props),s]);if(Yn(),Bn(),ss(r)){if(r.then(Bn,Bn),t)return r.then(c=>{ga(e,c,t)}).catch(c=>{si(c,e,0)});if(e.asyncDep=r,!e.suspense){const c=(n=o.name)!==null&&n!==void 0?n:"Anonymous";Y(`Component <${c}>: 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 ga(e,r,t)}else Su(e,t)}function ga(e,t,n){ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Fe(t)?(To(t)&&Y("setup() should not return VNodes directly - return a render function instead."),e.devtoolsRawSetupState=t,e.setupState=Oc(t),Yg(e)):t!==void 0&&Y(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Su(e,n)}let wa;const Iw=()=>!wa;function Su(e,t,n){const o=e.type;if(!e.render){if(!t&&wa&&!o.render){const i=o.template||la(e).template;if(i){cn(e,"compile");const{isCustomElement:s,compilerOptions:r}=e.appContext.config,{delimiters:c,compilerOptions:u}=o,p=Qe(Qe({isCustomElement:s,delimiters:c},r),u);o.render=wa(i,p),un(e,"compile")}}e.render=o.render||xt}Mn(e),Jn(),Zg(e),Yn(),Bn(),!o.render&&e.render===xt&&!t&&(o.template?Y('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".'):Y("Component is missing template or render function."))}function Tw(e){return new Proxy(e.attrs,{get(t,n){return Ss(),Ct(e,"get","$attrs"),t[n]},set(){return Y("setupContext.attrs is readonly."),!1},deleteProperty(){return Y("setupContext.attrs is readonly."),!1}})}function Mw(e){const t=o=>{if(e.exposed&&Y("expose() should be called only once per setup()."),o!=null){let i=typeof o;i==="object"&&(de(o)?i="array":et(o)&&(i="ref")),i!=="object"&&Y(`expose() should be passed a plain object, received ${i}.`)}e.exposed=o||{}};let n;return Object.freeze({get attrs(){return n||(n=Tw(e))},get slots(){return ko(e.slots)},get emit(){return(o,...i)=>e.emit(o,...i)},expose:t})}function Bs(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Oc(Sc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in io)return io[n](e)},has(t,n){return n in t||n in io}}))}const Bw=/(?:^|[-_])(\w)/g,Lw=e=>e.replace(Bw,t=>t.toUpperCase()).replace(/[-_]/g,"");function ya(e,t=!0){return ge(e)?e.displayName||e.name:e.name||t&&e.__name}function Ls(e,t,n=!1){let o=ya(t);if(!o&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(o=i[1])}if(!o&&e&&e.parent){const i=s=>{for(const r in s)if(s[r]===t)return r};o=i(e.components||e.parent.type.components)||i(e.appContext.components)}return o?Lw(o):n?"App":"Anonymous"}function ku(e){return ge(e)&&"__vccOpts"in e}const Au=(e,t)=>Qm(e,t,vi);function Ln(e){const t=kw();t||Y("withAsyncContext called without active current instance. This is likely a bug.");let n=e();return Bn(),ss(n)&&(n=n.catch(o=>{throw Mn(t),o})),[n,()=>Mn(t)]}function Nw(e,t,n){const o=arguments.length;return o===2?Fe(t)&&!de(t)?To(t)?be(e,null,[t]):be(e,t):be(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&To(n)&&(n=[n]),be(e,t,n))}const Dw=Symbol("ssrContext"),Rw=()=>{{const e=pi(Dw);return e||Y("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function ba(e){return!!(e&&e.__v_isShallow)}function jw(){if(typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#0b1bc9"},n={style:"color:#b62e24"},o={style:"color:#9d288c"},i={header(h){return Fe(h)?h.__isVue?["div",e,"VueInstance"]:et(h)?["div",{},["span",e,f(h)],"<",c(h.value),">"]:Xn(h)?["div",{},["span",e,ba(h)?"ShallowReactive":"Reactive"],"<",c(h),`>${kn(h)?" (readonly)":""}`]:kn(h)?["div",{},["span",e,ba(h)?"ShallowReadonly":"Readonly"],"<",c(h),">"]:null:null},hasBody(h){return h&&h.__isVue},body(h){if(h&&h.__isVue)return["div",{},...s(h.$)]}};function s(h){const y=[];h.type.props&&h.props&&y.push(r("props",Ae(h.props))),h.setupState!==Ue&&y.push(r("setup",h.setupState)),h.data!==Ue&&y.push(r("data",Ae(h.data)));const x=u(h,"computed");x&&y.push(r("computed",x));const k=u(h,"inject");return k&&y.push(r("injected",k)),y.push(["div",{},["span",{style:o.style+";opacity:0.66"},"$ (internal): "],["object",{object:h}]]),y}function r(h,y){return y=Qe({},y),Object.keys(y).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},h],["div",{style:"padding-left:1.25em"},...Object.keys(y).map(x=>["div",{},["span",o,x+": "],c(y[x],!1)])]]:["span",{}]}function c(h,y=!0){return typeof h=="number"?["span",t,h]:typeof h=="string"?["span",n,JSON.stringify(h)]:typeof h=="boolean"?["span",o,h]:Fe(h)?["object",{object:y?Ae(h):h}]:["span",n,String(h)]}function u(h,y){const x=h.type;if(ge(x))return;const k={};for(const O in h.ctx)p(x,O,y)&&(k[O]=h.ctx[O]);return k}function p(h,y,x){const k=h[x];if(de(k)&&k.includes(y)||Fe(k)&&y in k||h.extends&&p(h.extends,y,x)||h.mixins&&h.mixins.some(O=>p(O,y,x)))return!0}function f(h){return ba(h)?"ShallowRef":h.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}const Ou="3.2.47",Fw="http://www.w3.org/2000/svg",ao=typeof document<"u"?document:null,Pu=ao&&ao.createElement("template"),Hw={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 i=t?ao.createElementNS(Fw,e):ao.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&i.setAttribute("multiple",o.multiple),i},createText:e=>ao.createTextNode(e),createComment:e=>ao.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ao.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,i,s){const r=n?n.previousSibling:t.lastChild;if(i&&(i===s||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{Pu.innerHTML=o?`<svg>${e}</svg>`:e;const c=Pu.content;if(o){const u=c.firstChild;for(;u.firstChild;)c.appendChild(u.firstChild);c.removeChild(u)}t.insertBefore(c,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Uw(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 zw(e,t,n){const o=e.style,i=We(n);if(n&&!i){if(t&&!We(t))for(const s in t)n[s]==null&&va(o,s,"");for(const s in n)va(o,s,n[s])}else{const s=o.display;i?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=s)}}const qw=/[^\\];\s*$/,Iu=/\s*!important$/;function va(e,t,n){if(de(n))n.forEach(o=>va(e,t,o));else if(n==null&&(n=""),qw.test(n)&&Y(`Unexpected semicolon at the end of '${t}' style value: '${n}'`),t.startsWith("--"))e.setProperty(t,n);else{const o=Vw(e,t);Iu.test(n)?e.setProperty(tn(o),n.replace(Iu,""),"important"):e[o]=n}}const Tu=["Webkit","Moz","ms"],_a={};function Vw(e,t){const n=_a[t];if(n)return n;let o=Vt(t);if(o!=="filter"&&o in e)return _a[t]=o;o=Wn(o);for(let i=0;i<Tu.length;i++){const s=Tu[i]+o;if(s in e)return _a[t]=s}return t}const Mu="http://www.w3.org/1999/xlink";function Ww(e,t,n,o,i){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Mu,t.slice(6,t.length)):e.setAttributeNS(Mu,t,n);else{const s=rm(t);n==null||s&&!Yl(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function Kw(e,t,n,o,i,s,r){if(t==="innerHTML"||t==="textContent"){o&&r(o,i,s),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 c=!1;if(n===""||n==null){const u=typeof e[t];u==="boolean"?n=Yl(n):n==null&&u==="string"?(n="",c=!0):u==="number"&&(n=0,c=!0)}try{e[t]=n}catch(u){c||Y(`Failed setting prop "${t}" on <${e.tagName.toLowerCase()}>: value ${n} is invalid.`,u)}c&&e.removeAttribute(t)}function lo(e,t,n,o){e.addEventListener(t,n,o)}function Gw(e,t,n,o){e.removeEventListener(t,n,o)}function Jw(e,t,n,o,i=null){const s=e._vei||(e._vei={}),r=s[t];if(o&&r)r.value=o;else{const[c,u]=Yw(t);if(o){const p=s[t]=Qw(o,i);lo(e,c,p,u)}else r&&(Gw(e,c,r,u),s[t]=void 0)}}const Bu=/(?:Once|Passive|Capture)$/;function Yw(e){let t;if(Bu.test(e)){t={};let o;for(;o=e.match(Bu);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):tn(e.slice(2)),t]}let xa=0;const Xw=Promise.resolve(),Zw=()=>xa||(Xw.then(()=>xa=0),xa=Date.now());function Qw(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;jt(ey(o,n.value),t,5,[o])};return n.value=e,n.attached=Zw(),n}function ey(e,t){if(de(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>i=>!i._stopped&&o&&o(i))}else return t}const Lu=/^on[a-z]/,ty=(e,t,n,o,i=!1,s,r,c,u)=>{t==="class"?Uw(e,o,i):t==="style"?zw(e,n,o):Xo(t)?os(t)||Jw(e,t,n,o,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ny(e,t,o,i))?Kw(e,t,o,s,r,c,u):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Ww(e,t,o,i))};function ny(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Lu.test(t)&&ge(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Lu.test(t)&&We(n)?!1:t in e}const Ns=e=>{const t=e.props["onUpdate:modelValue"]||!1;return de(t)?n=>So(t,n):t};function oy(e){e.target.composing=!0}function Nu(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const st={created(e,{modifiers:{lazy:t,trim:n,number:o}},i){e._assign=Ns(i);const s=o||i.props&&i.props.type==="number";lo(e,t?"change":"input",r=>{if(r.target.composing)return;let c=e.value;n&&(c=c.trim()),s&&(c=Br(c)),e._assign(c)}),n&&lo(e,"change",()=>{e.value=e.value.trim()}),t||(lo(e,"compositionstart",oy),lo(e,"compositionend",Nu),lo(e,"change",Nu))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:i}},s){if(e._assign=Ns(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(i||e.type==="number")&&Br(e.value)===t))return;const r=t==null?"":t;e.value!==r&&(e.value=r)}},je={deep:!0,created(e,t,n){e._assign=Ns(n),lo(e,"change",()=>{const o=e._modelValue,i=iy(e),s=e.checked,r=e._assign;if(de(o)){const c=Xl(o,i),u=c!==-1;if(s&&!u)r(o.concat(i));else if(!s&&u){const p=[...o];p.splice(c,1),r(p)}}else if(is(o)){const c=new Set(o);s?c.add(i):c.delete(i),r(c)}else r(Ru(e,s))})},mounted:Du,beforeUpdate(e,t,n){e._assign=Ns(n),Du(e,t,n)}};function Du(e,{value:t,oldValue:n},o){e._modelValue=t,de(t)?e.checked=Xl(t,o.props.value)>-1:is(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=ns(t,Ru(e,!0)))}function iy(e){return"_value"in e?e._value:e.value}function Ru(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const sy={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ry=(e,t)=>n=>{if(!("key"in n))return;const o=tn(n.key);if(t.some(i=>i===o||sy[i]===o))return e(n)},fn={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):_i(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),_i(e,!0),o.enter(e)):o.leave(e,()=>{_i(e,!1)}):_i(e,t))},beforeUnmount(e,{value:t}){_i(e,t)}};function _i(e,t){e.style.display=t?e._vod:"none"}const ay=Qe({patchProp:ty},Hw);let ju;function ly(){return ju||(ju=ww(ay))}const Mo=(...e)=>{const t=ly().createApp(...e);cy(t),uy(t);const{mount:n}=t;return t.mount=o=>{const i=fy(o);if(!i)return;const s=t._component;!ge(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.innerHTML="";const r=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t};function cy(e){Object.defineProperty(e.config,"isNativeTag",{value:t=>im(t)||sm(t),writable:!1})}function uy(e){{const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get(){return t},set(){Y("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 Y(o),n},set(){Y(o)}})}}function fy(e){if(We(e)){const t=document.querySelector(e);return t||Y(`Failed to mount app: mount target selector "${e}" returned null.`),t}return window.ShadowRoot&&e instanceof window.ShadowRoot&&e.mode==="closed"&&Y('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}function dy(){jw()}dy();const py={key:0,class:"ce-custom-url-help"},hy={class:"ce-custom-url-help-body"},my=g("hr",null,null,-1),gy={key:0},wy={class:"pure-table pure-table-bordered"},yy=g("thead",null,[g("tr",null,[g("th",{width:"50%"},"变量"),g("th",{width:"50%"},"说明")])],-1),by=["onClick"],vy=He({__name:"CustomUrlHelp",setup(e){const t=$e(Ih),n=$e(!1);an(async()=>{window.addEventListener("message",i=>{const{event:s}=i.data;s==="customUrlHelp"&&(n.value=!0)},!1)});const o=i=>{Uo(i.key),_e({text:"已复制到剪贴板",icon:"success",timer:1e3})};return(i,s)=>n.value?(Q(),re("div",py,[g("div",hy,[g("h1",null,[ue(" 自定义菜单变量说明 "),g("a",{href:"javascript:void(0)",onClick:s[0]||(s[0]=r=>n.value=!1)},"关闭")]),my,(Q(!0),re(Ve,null,Tt(t.value,(r,c)=>(Q(),re("div",{key:c},[g("h2",null,ye(r.label),1),r.memo?(Q(),re("p",gy,ye(r.memo),1)):it("",!0),g("table",wy,[yy,g("tbody",null,[(Q(!0),re(Ve,null,Tt(r.items,(u,p)=>(Q(),re("tr",{key:p},[g("td",null,[g("span",{class:"ce-variable",onClick:f=>o(u)},ye(u.key),9,by)]),g("td",null,ye(u.label),1)]))),128))])])]))),128))])])):it("",!0)}}),Y$="",X$="",Fu="enabled_custom_urls_for_search",Hu="enabled_custom_urls_for_play";async function _y(e){await _t.set(Fu,e)}async function xy(e){await _t.set(Hu,e)}async function Cy(){const e=Ea,t=e.filter(i=>i.enabled).map(i=>i.key),n=await _t.get(Fu,t),o=[];return e.forEach(i=>{n.includes(i.key)&&o.push(i.key)}),o}async function $y(){const e=$a,t=e.filter(i=>i.enabled).map(i=>i.key),n=await _t.get(Hu,t),o=[];return e.forEach(i=>{n.includes(i.key)&&o.push(i.key)}),o}async function Uu(){const e=await Cy();return Ea.forEach(t=>{t.enabled=e.includes(t.key)}),Ea}async function Ca(){const e=await $y();return $a.forEach(t=>{t.enabled=e.includes(t.key)}),$a}const zu="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=",$a=[St({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}"}),St({enabled:!0,key:"p_builtin_vlc",label:"VLC播放",icon:"https://images.videolan.org/images/favicon.ico",memo:"调用VLC播放视频(使用CloudDrive链接)",url:"vlc://{clouddrive_stream_url}"}),St({enabled:!0,key:"p_builtin_mpv",label:"MPV播放",icon:"https://mpv.io/images/mpv-logo-128-0baae5aa.png",memo:"调用MPV播放视频(使用CloudDrive链接)",url:"mpv://{clouddrive_stream_url}"}),St({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}"}),St({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"})],Ea=[St({enabled:!0,key:"s_builtin_115_pure_name",label:"115-不含后缀",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(不含后缀)",url:"{pure_name:search}"}),St({enabled:!1,key:"s_builtin_115_full_name",label:"115-完整名称",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(完整文件名)",url:"{full_name:search}"}),St({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}"}),St({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}"}),St({enabled:!0,key:"s_builtin_bing_pure_name",label:"Bing-不含后缀",icon:zu,memo:"使用Bing搜索文件名(不含后缀)",url:"https://cn.bing.com/search?q={pure_name:encode}"}),St({enabled:!1,key:"s_builtin_bing_full_name",label:"Bing-完整名称",icon:zu,memo:"使用Bing搜索文件名(完整文件名)",url:"https://cn.bing.com/search?q={full_name:encode}"})];async function Ey(e,t){const n=[];for(const o of t){const i=lr(e,{key:`_ce_p_${o.key}`,label:o.label,icon:o.icon,title:o.memo,onClick:async(s,r)=>{r.stopPropagation(),r.preventDefault();try{const c=await qn();if(!c)return;const u=await qt(c),p=await qo(),f=await Or(u,o,p);if(console.log("[play url]",f),!f)throw new Error("无法获取有效的播放链接!");window.open(f,"_blank","noopener noreferrer")}catch(c){console.error(c),_e({title:"播放失败",text:c.toString(),icon:"error"})}}});n.push(i)}return n}async function Sy(){const e=[...(await Ca()).filter(t=>t.enabled),...(await Yo(xn.play)).filter(t=>t.enabled)];return new Dt({key:"_play_with_x",label:"播放全部",icon:"icon-operate ifo-video-play",title:"",onClick:async(t,n)=>{},subItems:[...await Ey(jh,e)]})}async function ky(){return new Dt({key:"_rename_dir",label:"重命名文件夹",icon:"icon-operate ifo-rename",title:'重命名当前目录,支持"高级模式"',onClick:async(e,t)=>{await e.closeMenu();const n=await qn();!n||unsafeWindow.Core.Dir.Rename("1",n.attr("cate_id"),n.attr("title"))}})}async function Ay(){return new Dt({key:"_move_dir",label:"移动文件夹",icon:"icon-operate ifo-move",title:"移动当前文件夹到其他位置",onClick:async(e,t)=>{await e.closeMenu();const n=await qn();!n||await kr(n,"move",!0)}})}async function Oy(){return new Dt({key:"_del_dir",label:"删除文件夹",icon:"icon-operate ifo-remove",title:"删除当前文件夹",onClick:async(e,t)=>{await e.closeMenu();const n=await qn();if(!n)return;const o=await Yi();unsafeWindow.Core.FileAPI.DeleteFile([n],i=>{n.remove(),o.find("#js_top_header_file_path_box .top-file-path > .file-path").children(":last").prev()[0].click()},!0)}})}async function Py(){return new Dt({key:"_copy_dir",label:"复制文件夹",icon:"icon-operate ifo-copy",title:"复制当前文件夹",onClick:async(e,t)=>{await e.closeMenu();const n=await qn();!n||await kr(n,"set_copy",!0)}})}async function Iy(){return new Dt({key:"_copy_dir_to",label:"复制文件夹到",icon:"icon-operate ifo-copyto",title:"复制当前文件夹到其他位置",onClick:async(e,t)=>{await e.closeMenu();const n=await qn();!n||await kr(n,"copy_list",!0)}})}async function Ty(){return new Dt({key:"view_dir_attribute",label:"查看属性",icon:"icon-operate ifo-prop",onClick:async(e,t)=>{await e.closeMenu();const n=await qn();!n||Jo().Core.FileAPI.getAttribute(n,{showPlayLongChange:function(o,i,s){bh().CACHE.FileMain.List.ResetPlayLongText(o,i,s)}},function(){console.log("查看属性 ok")})}})}async function My(){return new Dt({key:"show_sub_folder_size",label:"子文件夹大小",title:"显示当前目录下所有子文件夹的大小",icon:"icon-operate ifo-prop",onClick:async(e,t)=>{await e.closeMenu();const n=async()=>{const s=await zt(!1),r=await $o(),c=await Sr(!1);console.log("[items]",c),_e({title:"正在获取子文件夹大小",html:"请稍候...",timer:0,position:"top-end"}),ve.showLoading();for(let u=0;u<c.length;u++){const p=c[u];if(!p.cate_id)continue;ve.update({html:`正在获取子文件夹大小:${p.n}`});const f=await Ul(p.cate_id),h=r.find(`li[cate_id="${p.cate_id}"]`);!h.length||(h.find(".file-size span").text(f.size),u<c.length-1&&await Xt(80))}ve.hideLoading(),await i(s),await Xt(500),await o(s,"desc")},o=async(s,r)=>{const c=await zt(!1);if(s!==c){const{isConfirmed:y}=await _e({icon:"warning",html:"当前目录已发生变化,无法进行排序!",showConfirmButton:!0,confirmButtonText:"获取当前子目录大小",showCancelButton:!0,cancelButtonText:"关闭",timer:6e4});y&&await n();return}const p=(await $o()).find("ul"),f=p.children("li").toArray();f.sort(function(y,x){const k=$(y),O=$(x),z=tl(k.find(".file-size span").text()),G=tl(O.find(".file-size span").text());return r==="asc"?z-G:G-z});const h=$("<ul></ul>");$.each(f,function(y,x){h.append(x)}),p.replaceWith(h),ve.update({html:`已完成排序: ${r==="asc"?"小 > 大":"大 > 小"}`})},i=async s=>{ve.fire({toast:!0,title:"获取子文件夹大小",html:"获取子文件夹大小完成",icon:"success",showConfirmButton:!0,confirmButtonText:"大 > 小",confirmButtonColor:"#3085d6",showDenyButton:!0,denyButtonText:"小 > 大",denyButtonColor:"#d33",position:"top-end",showCloseButton:!0,closeButtonAriaLabel:"关闭",preConfirm:()=>(console.log("preConfirm"),o(s,"desc"),!1),preDeny:()=>(console.log("preDeny"),o(s,"asc"),!1)})};await n()}})}async function Ds(e,t){return new Dt({key:`_d_copy_names_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制名称",onClick:async(n,o)=>{let s=(await Sr(!1)).map(r=>r.n);s=await ts(s,t),Uo(s.join(`
`)),_e({title:"复制名称",text:`已复制选中文件名。数量:${s.length},复制类型:${e}`,icon:"success"})}})}async function Rs(e,t){return new Gl({key:`_l_copy_names_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制名称",onClick:async(n,o)=>{await n.closeMenu();const i=await Ah();if(!i||!i.n){_e({text:"无法获取名称称",timer:1200});return}let s=[i.n];s=await ts(s,t),Uo(s.join(`
`)),_e({title:"复制名称",text:`已复制选中文件名。数量:${s.length},复制类型:${e}`,icon:"success"})}})}let By=[];async function Ly(){const e=[...(await Ca()).filter(t=>t.enabled),...(await Yo(xn.play)).filter(t=>t.enabled)];return new Qi({key:"_play_with_x_d",label:"播放",injectDecider:Wh,title:"115在线播放",onClick:async(t,n)=>{n.stopPropagation(),n.preventDefault();const o=$(n.target).closest("li"),i=await qt(o),s=Eh(i.pc);window.open(s,"_blank","noopener noreferrer")},subItems:[...await Jh(Pr,e)]})}async function Ny(){const e=[...(await Uu()).filter(t=>t.enabled),...By.filter(t=>t.enabled),...(await Yo(xn.search)).filter(t=>t.enabled)];return new Qi({key:"_search_with_name_d",label:"搜索",icon:"",title:"使用名称搜索",onClick:async(t,n)=>{n.stopPropagation(),n.preventDefault();const o=$(n.target).closest("li"),i=await qt(o),s=Ar({search_value:i.n,cid:await zt()});window.open(s,"_blank","noopener noreferrer")},subItems:[...await Gh(Pr,e)]})}async function Dy(){return new Qi({key:"_lh_copy_names_",label:"文件名",title:"复制名称",onClick:async(e,t)=>{},subItems:[await qu("完整名称",pt.full),await qu("不含后缀",pt.pure)]})}async function qu(e,t){return new Pr({key:`_lh_copy_names_${t}`,label:e,icon:"icon-operate ifo-copy",title:e,onClick:async(n,o)=>{o.stopPropagation(),o.preventDefault();const i=$(o.target).closest("li");let r=[(await qt(i)).n];r=await ts(r,t),Uo(r.join(`
`)),_e({title:"复制名称",text:`已复制选中文件名,复制类型:${e}`,icon:"success"})}})}async function Ry(){return new Qi({injectDecider:Vh,key:"_open_in_new_tab",label:"新标签页",icon:"",title:"在新标签页打开",onClick:async(e,t)=>{t.stopPropagation(),t.preventDefault();const n=$(t.target).closest("li"),o=await qt(n);if(!o||!o.cate_id){_e({text:"无法获取目录ID",timer:1200});return}const i=zl(o.cate_id);window.open(i,"_blank","noopener noreferrer")}})}async function jy(){return new Jl({key:"_s_smart_mkdir",label:"同名目录",icon:"icon-operate ifo-move",title:"将选中的文件移动到同名目录",onClick:await Yh(!0)})}async function Fy(){return new Jl({key:"_s_copy_names",label:"复制名称",icon:"icon-operate ifo-copy",title:"复制选中的文件或目录的名称",onClick:async(e,t)=>{},subItems:[await js("完整名称",pt.full),await js("不包含后缀名",pt.pure),await js("完整文件名,去重",pt.fullUnique),await js("不包含后缀名,去重",pt.pureUnique)]})}async function js(e,t){return new Fh({key:`_s_copy_names_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制名称",onClick:async(n,o)=>{let s=(await Sr(!0)).map(r=>r.n);s=await ts(s,t),Uo(s.join(`
`)),_e({title:"复制名称",text:`已复制选中文件名。数量:${s.length},复制类型:${e}`,icon:"success"})}})}async function Hy(){const{host:e,search:t}=location;if(!e.includes("115.com"))return;console.log("[Cloud115 Enhancer - menu] running..."),Uy(),document.addEventListener(Nt.EVENT_CLOSE_MENU,o=>{$("#"+o.detail.menu.key).closest(".context-menu").hide()});const n=await Kl();!n.enabled||(window.top===window.self&&zy(n),Vy(n),(t.includes("ct=file")||t.includes("mode=search"))&&(qy(n),Wy(n),await Kh(n)))}async function Uy(){console.log("[Cloud115 Enhancer - menu] injectUI");const e="ceCustomUrlHelp",t=document.createElement("div");t.id=e,document.body.appendChild(t),Mo(vy).mount(`#${e}`)}const Vu=async(e,t)=>{};async function zy(e){const{[ke.dirContext]:t}=e;if(!t.enabled)return;const n=[];t.rename&&n.push(await ky()),t.delete&&n.push(await Oy()),t.play&&n.push(await Sy()),t.copyNames&&n.push(new Dt({key:"_dir_copy_names",label:"复制名称",icon:"icon-operate ifo-copy",onClick:Vu,subItems:[await Ds("完整名称",pt.full),await Ds("不包含后缀名",pt.pure),await Ds("完整名称,去重",pt.fullUnique),await Ds("不包含后缀名,去重",pt.pureUnique)]}));const o=[];t.move&&o.push(await Ay()),t.viewProp&&o.push(await Ty()),t.showSubFolderSize&&o.push(await My()),t.copy&&o.push(await Py()),t.copyTo&&o.push(await Iy()),o.length===1?n.push(o[0]):o.length>1&&n.push(new Dt({key:"_dir_more",label:"更多",icon:"icon-operate ifo-open",onClick:async(s,r)=>{},subItems:o})),await new Hh({items:n,siblingSelector:'[val="add_dir"]',position:zn.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 qy(e){const{[ke.listItemHover]:t}=e;if(!t.enabled)return;await qo();const n=[];t.openInNewTab&&n.push(await Ry()),t.search&&n.push(await Ny()),t.play&&n.push(await Ly()),t.copyNames&&n.push(await Dy()),new zh({items:n,position:zn.after,siblingSelector:'[menu="move"]'}).inject()}async function Vy(e){const{[ke.listItemContext]:t}=e;if(!t.enabled)return;await qo();const n=[];t.copyNames&&n.push(new Gl({key:"_list_item_copy_names",label:"复制名称",icon:"icon-operate ifo-copy",onClick:Vu,subItems:[await Rs("完整名称",pt.full),await Rs("不包含后缀名",pt.pure),await Rs("完整名称,去重",pt.fullUnique),await Rs("不包含后缀名,去重",pt.pureUnique)]})),new Uh({items:n,position:zn.after,siblingSelector:'[val="refresh"]',useObserver:!0,observeTarget:document.body,disposeObserverAfterInjection:!1}).inject()}async function Wy(e){const{[ke.selection]:t}=e;if(!t.enabled)return;const n=[];t.moveToSelfNameDir&&n.push(await jy()),t.copyNames&&n.push(await Fy()),new qh({items:n,position:zn.before,siblingSelector:"ul li"}).inject()}const Wu="offlineExporterConfig";function Ky(e){return{onlyMagnet:!1,onlyMagnetEd2k:!1,enableOptimization:!0,reqInterval:500,showInfoHash:!0,enableListManagement:!0,...e}}async function Ku(){const e=Ky(),t=await _t.get(Wu,e);return{...e,...t}}async function Gy(e){await _t.set(Wu,e)}async function Jy(e){const t=await Di("#js-warp"),o=t[0].querySelectorAll("li[complete]");o.length>0&&o.forEach(async s=>{await Gu(s,e)}),Qy(e),new MutationObserver(async([s])=>{if(s.type==="childList"){s.addedNodes.forEach(async c=>{await Gu(c,e)});const r=document.querySelector(".ce-checkbox-all input");r.checked=!1}}).observe(t[0],{childList:!0})}async function Yy(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 Gu(e,t){const n=e,o=await Yy(e);eb(n,t,o),Xy(n,t,o),Zy(n,t,o)}async function Xy(e,t,n){if(!t.showInfoHash||n.name===n.hash||e.querySelector(".info-hash"))return;const o=e.querySelector(".file-name"),i=document.createElement("div");i.classList.add("info-hash"),i.textContent=n.hash,i.title=`点击复制${n.hash}`,o.after(i),i.addEventListener("click",()=>{Bi(n.hash,"text"),_e({text:"已复制",icon:"success",timer:800})})}async function Zy(e,t,n){const o=e.querySelector(".file-operate");if(o.querySelector(".ce-buttons"))return;const i=document.createElement("span");i.className="ce-buttons";const s=document.createElement("a");s.className="pure-button button-mini button-info",s.href=zl(n.cate_id),s.target="_blank",s.textContent="打开",s.title="在新标签页打开目录",i.append(s),o.prepend(i)}async function Qy(e){if(!e.enableListManagement)return;const t=await Di("#js-main .header-name");if(t.length===0){console.warn("[renderCheckboxAll] 找不到`#js-main .header-name`");return}const n=document.createElement("div");n.classList.add("ce-checkbox"),n.classList.add("ce-checkbox-all"),n.innerHTML=`
    <input type="checkbox"/>
  `,t[0].prepend(n),n.addEventListener("click",()=>{const i=n.querySelector("input").checked;document.querySelectorAll("#js-warp li").forEach(r=>{const c=r.querySelector("input");c.checked=i,r.classList.toggle("ce-selected",i)}),Ju().then(r=>{Xu(r)})})}async function eb(e,t,n){if(!t.enableListManagement||e.querySelector(".ce-checkbox"))return;const o=e.querySelector(".file-name-wrap"),i=document.createElement("div");i.classList.add("ce-checkbox"),i.innerHTML=`
    <input type="checkbox" data-id="${n.hash}" />
  `,o.prepend(i),e.classList.add("ce-show-checkbox"),i.addEventListener("click",()=>{e.classList.toggle("ce-selected");const s=document.querySelector(".ce-checkbox-all input"),r=document.querySelectorAll("#js-warp li"),c=Array.from(r).every(u=>u.classList.contains("ce-selected"));s.checked=c,Ju().then(u=>{Xu(u)})})}async function tb(e){return{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")}}async function Ju(){const e=document.querySelectorAll("#js-warp li"),t=[];return e.forEach(async n=>{const o=n;if(o.classList.contains("ce-selected")){const i=await tb(o);t.push(i)}}),t}var Yu=(e=>(e.selection="cd-offline-selection",e))(Yu||{});async function Xu(e){window.postMessage({event:"cd-offline-selection",body:e},"*")}async function nb(e){document.querySelectorAll("#js-warp li").forEach(async n=>{const o=n,i=o.getAttribute("hash");e.includes(i)&&(o.style.transition="opacity 0.5s",o.style.opacity="0.2",setTimeout(()=>{o.remove()},500))})}const ob={class:"ce-config ce-offline-config"},ib={class:"pure-form pure-form-aligned offline-exporter-config-form"},sb={class:"pure-control-group"},rb=g("label",{for:"enableListManagement"},"启用批量管理",-1),ab=g("div",{class:"pure-form-message text-success"}," 可以选中需要删除的离线任务进行批量删除。 ",-1),lb={class:"pure-control-group"},cb=g("label",{for:"showInfoHash"},"显示磁力哈希",-1),ub=g("div",{class:"pure-form-message text-success"}," 显示离线任务的哈希文本,点击可以复制。 ",-1),fb=g("div",{class:"ce-tips"},"以下是导出链接相关选项",-1),db={class:"pure-control-group"},pb=g("label",{for:"onlyMagnetEd2k"},"只取磁力和ED2K链接",-1),hb=g("div",{class:"pure-form-message text-success"}," 导出链接时,只取磁力和ED2K链接,其他比如http链接会被略过。 ",-1),mb={class:"pure-control-group"},gb=g("label",{for:"enableOptimization"},"启用导出优化",-1),wb=g("div",{class:"pure-form-message text-success"}," 据观察,离线记录列表是将未完成的记录放在最前面的。如果只需导出未完成链接, 当获取到一个已完成的记录时,便可以停止继续获取后面的记录,节省时间。 ",-1),yb={class:"pure-control-group"},bb=g("label",{for:"reqInterval"},"请求数据间隔",-1),vb=g("div",{class:"pure-form-message text-success"}," 请求分页的间隔,单位为毫秒,建议500左右。 ",-1),Zu=He({__name:"Config",async setup(e){let t,n;const o=$e(([t,n]=Ln(()=>Ku()),t=await t,n(),t));return rn(async()=>{}),kt(o,vo(async i=>{await Gy(i),_e({icon:"success",title:"设置已保存,刷新页面生效。",timer:800,position:"top-end"})},500),{deep:!0}),(i,s)=>(Q(),re("div",ob,[g("form",ib,[g("fieldset",null,[g("div",sb,[rb,ae(g("input",{id:"enableListManagement",type:"checkbox","onUpdate:modelValue":s[0]||(s[0]=r=>o.value.enableListManagement=r)},null,512),[[je,o.value.enableListManagement]]),ab]),g("div",lb,[cb,ae(g("input",{id:"showInfoHash",type:"checkbox","onUpdate:modelValue":s[1]||(s[1]=r=>o.value.showInfoHash=r)},null,512),[[je,o.value.showInfoHash]]),ub]),fb,g("div",db,[pb,ae(g("input",{id:"onlyMagnetEd2k",type:"checkbox","onUpdate:modelValue":s[2]||(s[2]=r=>o.value.onlyMagnetEd2k=r)},null,512),[[je,o.value.onlyMagnetEd2k]]),hb]),g("div",mb,[gb,ae(g("input",{id:"enableOptimization",type:"checkbox","onUpdate:modelValue":s[3]||(s[3]=r=>o.value.enableOptimization=r)},null,512),[[je,o.value.enableOptimization]]),wb]),g("div",yb,[bb,ae(g("input",{id:"reqInterval",type:"number","onUpdate:modelValue":s[4]||(s[4]=r=>o.value.reqInterval=r),min:100},null,512),[[st,o.value.reqInterval]]),vb])])])]))}}),Z$="",_b={class:"cloud115-eh-offline-exporter"},xb={key:0},Cb=g("button",{type:"button",class:"pure-button button-mini"},"设置",-1),$b=He({__name:"OflineExporter",setup(e){const t=`\r
`;let n,o;$e(!1);const i=$e([]);let s={};an(async()=>{console.log("fuckyou"),s=await Ku(),n=await ch(),console.log("[profile]",n),o=await lh(),console.log("[space]",o),r(),await Jy(s)});async function r(){window.addEventListener("message",x=>{const{event:k,body:O}=x.data;k===Yu.selection&&(i.value=O)},!1)}async function c(){const x=i.value.map(G=>G.info_hash);if(!x.length)return;const{isConfirmed:k,value:O}=await ve.fire({title:"批量删除",icon:"warning",html:`确定要删除选中的 ${x.length} 个离线记录吗?`,input:"checkbox",inputValue:0,inputPlaceholder:"同时删除文件",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消"});if(!k)return;const z=!!O;ve.showLoading(),ve.update({html:"正在删除..."}),await wh(x,o,z,n.user_id),_e({icon:"success",title:"删除成功",timer:800,position:"top-end"}),await nb(x),i.value=[]}async function u(x){const k=[x];s.onlyMagnetEd2k&&k.push(It.magnetEd2k),console.log("[filters]",k),await y(o.sign,n.user_id,k)}function p(x,k){if(!k.length||k.length===1&&k[0]==="all")return x;const O={[_o.failed]:It.failed,[_o.illegal]:It.failed,[_o.ing]:It.failed,[_o.success]:It.success};return x=x.filter(z=>{if(!z.url&&!z.info_hash)return!1;const G=O[z.status];return k.includes(It.all)||G&&k.includes(G)?!(k.includes(It.magnetEd2k)&&(!Fd(z.info_hash)||z.url&&!Rd(z.url)&&!jd(z.url))):!1}),x}async function f(x,k,O){let z=[],G=1,D=0;for(;;){ve.update({html:`正在导出... 进度:第 ${G} 页`+(D?` / ${D}`:"")});const j=await ah(G,x,k);if(!j.tasks||!j.tasks.length)break;if(D=j.page_count,z=[...z,...p(j.tasks,O)],s.enableOptimization&&O.includes(It.failed)&&h(j.tasks)){console.warn("由于开启了导出优化,且检测到已获取的记录中至少有一个「已完成」的记录,将不再获取剩下的记录");break}if(G>=j.page_count)break;G++,await Xt(s.reqInterval)}return z}function h(x){for(const k of x)if(k.status===_o.success)return!0;return!1}async function y(x,k,O){ve.fire({title:"导出离线链接",html:"正在导出...",didOpen:()=>{ve.showLoading()}});const z=await f(x,k,O);if(ve.hideLoading(),!z.length){await ve.fire({title:"导出失败",icon:"error",html:"查询不到符合条件的离线记录!"});return}const G=[];if(z.forEach(D=>{!D.url&&D.info_hash&&(D.url=Hd(D.info_hash)),G.push(D.url)}),!G.length){await ve.fire({title:"导出失败",icon:"error",html:"未完成的离线记录中没有磁力或HTTP链接!"});return}Bi(G.join(t),"text"),console.log("[links]",G),await ve.fire({title:"导出成功",icon:"success",html:`成功导出 ${G.length} 个链接,请粘贴到文本文件。`,showDenyButton:!0,denyButtonText:"保存到txt",allowEscapeKey:!1,allowOutsideClick:!1,preDeny:async()=>(console.log("[saveAs]"),Dd(G.join(t),`115离线链接_数量${G.length}_${Ni()}.txt`),!1)})}return(x,k)=>{const O=oo("VDropdown");return Q(),re("span",_b,[i.value.length?(Q(),re("span",xb,[g("button",{type:"button",class:"pure-button button-small button-error",onClick:c},[ue("删除("),g("span",null,ye(i.value.length),1),ue(")")]),ue("      ")])):it("",!0),g("button",{type:"button",class:"pure-button button-mini button-error",onClick:k[0]||(k[0]=z=>u(Te(It).failed))},"导出未完成链接"),g("button",{type:"button",class:"pure-button button-mini button-success",onClick:k[1]||(k[1]=z=>u(Te(It).success))},"导出已完成链接"),g("button",{type:"button",class:"pure-button button-mini button-warning",onClick:k[2]||(k[2]=z=>u(Te(It).all))},"导出全部链接"),be(O,{distance:5,"arrow-padding":10},{popper:qe(()=>[(Q(),Ft(Wc,null,{default:qe(()=>[be(Zu)]),_:1}))]),default:qe(()=>[Cb]),_:1})])}}}),Q$="";function dn(e){return e.split("-")[0]}function Bo(e){return e.split("-")[1]}function xi(e){return["top","bottom"].includes(dn(e))?"x":"y"}function Sa(e){return e==="y"?"height":"width"}function Qu(e){let{reference:t,floating:n,placement:o}=e;const i=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2;let r;switch(dn(o)){case"top":r={x:i,y:t.y-n.height};break;case"bottom":r={x:i,y:t.y+t.height};break;case"right":r={x:t.x+t.width,y:s};break;case"left":r={x:t.x-n.width,y:s};break;default:r={x:t.x,y:t.y}}const c=xi(o),u=Sa(c);switch(Bo(o)){case"start":r[c]=r[c]-(t[u]/2-n[u]/2);break;case"end":r[c]=r[c]+(t[u]/2-n[u]/2);break}return r}const Eb=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],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(" ")),s.filter(x=>{let{name:k}=x;return k==="autoPlacement"||k==="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 c=await r.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:p}=Qu({...c,placement:o}),f=o,h={},y=0;for(let x=0;x<s.length;x++){if(y++,y>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:k,fn:O}=s[x],{x:z,y:G,data:D,reset:j}=await O({x:u,y:p,initialPlacement:o,placement:f,strategy:i,middlewareData:h,rects:c,platform:r,elements:{reference:e,floating:t}});if(u=z!=null?z:u,p=G!=null?G:p,h={...h,[k]:D!=null?D:{}},j){typeof j=="object"&&(j.placement&&(f=j.placement),j.rects&&(c=j.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:i}):j.rects),{x:u,y:p}=Qu({...c,placement:f})),x=-1;continue}}return{x:u,y:p,placement:f,strategy:i,middlewareData:h}};function Sb(e){return{top:0,right:0,bottom:0,left:0,...e}}function ef(e){return typeof e!="number"?Sb(e):{top:e,right:e,bottom:e,left:e}}function ka(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Fs(e,t){t===void 0&&(t={});const{x:n,y:o,platform:i,rects:s,elements:r,strategy:c}=e,{boundary:u="clippingParents",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:h=!1,padding:y=0}=t,x=ef(y),O=r[h?f==="floating"?"reference":"floating":f],z=await i.getClippingClientRect({element:await i.isElement(O)?O:O.contextElement||await i.getDocumentElement({element:r.floating}),boundary:u,rootBoundary:p}),G=ka(await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:f==="floating"?{...s.floating,x:n,y:o}:s.reference,offsetParent:await i.getOffsetParent({element:r.floating}),strategy:c}));return{top:z.top-G.top+x.top,bottom:G.bottom-z.bottom+x.bottom,left:z.left-G.left+x.left,right:G.right-z.right+x.right}}const kb=Math.min,co=Math.max;function Aa(e,t,n){return co(e,kb(t,n))}const Ab=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=e!=null?e:{},{x:i,y:s,placement:r,rects:c,platform:u}=t;if(n==null)return console.warn("Floating UI: No `element` was passed to the `arrow` middleware."),{};const p=ef(o),f={x:i,y:s},h=dn(r),y=xi(h),x=Sa(y),k=await u.getDimensions({element:n}),O=y==="y"?"top":"left",z=y==="y"?"bottom":"right",G=c.reference[x]+c.reference[y]-f[y]-c.floating[x],D=f[y]-c.reference[y],j=await u.getOffsetParent({element:n}),Z=j?y==="y"?j.clientHeight||0:j.clientWidth||0:0,ne=G/2-D/2,ee=p[O],Me=Z-k[x]-p[z],Ee=Z/2-k[x]/2+ne,Se=Aa(ee,Ee,Me);return{data:{[y]:Se,centerOffset:Ee-Se}}}}),Ob={left:"right",right:"left",bottom:"top",top:"bottom"};function Hs(e){return e.replace(/left|right|bottom|top/g,t=>Ob[t])}function tf(e,t){const n=Bo(e)==="start",o=xi(e),i=Sa(o);let s=o==="x"?n?"right":"left":n?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Hs(s)),{main:s,cross:Hs(s)}}const Pb={start:"end",end:"start"};function Oa(e){return e.replace(/start|end/g,t=>Pb[t])}const Ib=["top","right","bottom","left"].reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function Tb(e,t,n){return(e?[...n.filter(i=>Bo(i)===e),...n.filter(i=>Bo(i)!==e)]:n.filter(i=>dn(i)===i)).filter(i=>e?Bo(i)===e||(t?Oa(i)!==i:!1):!0)}const Mb=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,i,s,r,c;const{x:u,y:p,rects:f,middlewareData:h,placement:y}=t,{alignment:x=null,allowedPlacements:k=Ib,autoAlignment:O=!0,...z}=e;if((n=h.autoPlacement)!=null&&n.skip)return{};const G=Tb(x,O,k),D=await Fs(t,z),j=(o=(i=h.autoPlacement)==null?void 0:i.index)!=null?o:0,Z=G[j],{main:ne,cross:ee}=tf(Z,f);if(y!==Z)return{x:u,y:p,reset:{placement:G[0]}};const Me=[D[dn(Z)],D[ne],D[ee]],Ee=[...(s=(r=h.autoPlacement)==null?void 0:r.overflows)!=null?s:[],{placement:Z,overflows:Me}],Se=G[j+1];if(Se)return{data:{index:j+1,overflows:Ee},reset:{placement:Se}};const Pe=Ee.slice().sort((te,xe)=>te.overflows[0]-xe.overflows[0]),fe=(c=Pe.find(te=>{let{overflows:xe}=te;return xe.every(oe=>oe<=0)}))==null?void 0:c.placement;return{data:{skip:!0},reset:{placement:fe!=null?fe:Pe[0].placement}}}}};function Bb(e){const t=Hs(e);return[Oa(e),t,Oa(t)]}const Lb=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:s,rects:r,initialPlacement:c}=t;if((n=s.flip)!=null&&n.skip)return{};const{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",flipAlignment:y=!0,...x}=e,k=dn(i),z=f||(k===c||!y?[Hs(c)]:Bb(c)),G=[c,...z],D=await Fs(t,x),j=[];let Z=((o=s.flip)==null?void 0:o.overflows)||[];if(u&&j.push(D[k]),p){const{main:Ee,cross:Se}=tf(i,r);j.push(D[Ee],D[Se])}if(Z=[...Z,{placement:i,overflows:j}],!j.every(Ee=>Ee<=0)){var ne,ee;const Ee=((ne=(ee=s.flip)==null?void 0:ee.index)!=null?ne:0)+1,Se=G[Ee];if(Se)return{data:{index:Ee,overflows:Z},reset:{placement:Se}};let Pe="bottom";switch(h){case"bestFit":{var Me;const fe=(Me=Z.slice().sort((te,xe)=>te.overflows.filter(oe=>oe>0).reduce((oe,Re)=>oe+Re,0)-xe.overflows.filter(oe=>oe>0).reduce((oe,Re)=>oe+Re,0))[0])==null?void 0:Me.placement;fe&&(Pe=fe);break}case"initialPlacement":Pe=c;break}return{data:{skip:!0},reset:{placement:Pe}}}return{}}}};function Nb(e){let{placement:t,rects:n,value:o}=e;const i=dn(t),s=["left","top"].includes(i)?-1:1,r=typeof o=="function"?o({...n,placement:t}):o,{mainAxis:c,crossAxis:u}=typeof r=="number"?{mainAxis:r,crossAxis:0}:{mainAxis:0,crossAxis:0,...r};return xi(i)==="x"?{x:u,y:c*s}:{x:c*s,y:u}}const Db=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(t){const{x:n,y:o,placement:i,rects:s}=t,r=Nb({placement:i,rects:s,value:e});return{x:n+r.x,y:o+r.y,data:r}}}};function Rb(e){return e==="x"?"y":"x"}const jb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:s=!0,crossAxis:r=!1,limiter:c={fn:z=>{let{x:G,y:D}=z;return{x:G,y:D}}},...u}=e,p={x:n,y:o},f=await Fs(t,u),h=xi(dn(i)),y=Rb(h);let x=p[h],k=p[y];if(s){const z=h==="y"?"top":"left",G=h==="y"?"bottom":"right",D=x+f[z],j=x-f[G];x=Aa(D,x,j)}if(r){const z=y==="y"?"top":"left",G=y==="y"?"bottom":"right",D=k+f[z],j=k-f[G];k=Aa(D,k,j)}const O=c.fn({...t,[h]:x,[y]:k});return{...O,data:{x:O.x-n,y:O.y-o}}}}},Fb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n;const{placement:o,rects:i,middlewareData:s}=t,{apply:r,...c}=e;if((n=s.size)!=null&&n.skip)return{};const u=await Fs(t,c),p=dn(o),f=Bo(o)==="end";let h,y;p==="top"||p==="bottom"?(h=p,y=f?"left":"right"):(y=p,h=f?"top":"bottom");const x=co(u.left,0),k=co(u.right,0),O=co(u.top,0),z=co(u.bottom,0),G={height:i.floating.height-(["left","right"].includes(o)?2*(O!==0||z!==0?O+z:co(u.top,u.bottom)):u[h]),width:i.floating.width-(["top","bottom"].includes(o)?2*(x!==0||k!==0?x+k:co(u.left,u.right)):u[y])};return r==null||r({...G,...i}),{data:{skip:!0},reset:{rects:!0}}}}};function Pa(e){return(e==null?void 0:e.toString())==="[object Window]"}function Nn(e){if(e==null)return window;if(!Pa(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Us(e){return Nn(e).getComputedStyle(e)}function pn(e){return Pa(e)?"":e?(e.nodeName||"").toLowerCase():""}function hn(e){return e instanceof Nn(e).HTMLElement}function zs(e){return e instanceof Nn(e).Element}function Hb(e){return e instanceof Nn(e).Node}function nf(e){const t=Nn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function qs(e){const{overflow:t,overflowX:n,overflowY:o}=Us(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function Ub(e){return["table","td","th"].includes(pn(e))}function of(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),n=Us(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 sf=Math.min,Ci=Math.max,Vs=Math.round;function Lo(e,t){t===void 0&&(t=!1);const n=e.getBoundingClientRect();let o=1,i=1;return t&&hn(e)&&(o=e.offsetWidth>0&&Vs(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Vs(n.height)/e.offsetHeight||1),{width:n.width/o,height:n.height/i,top:n.top/i,right:n.right/o,bottom:n.bottom/i,left:n.left/o,x:n.left/o,y:n.top/i}}function Dn(e){return((Hb(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ws(e){return Pa(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function rf(e){return Lo(Dn(e)).left+Ws(e).scrollLeft}function zb(e){const t=Lo(e);return Vs(t.width)!==e.offsetWidth||Vs(t.height)!==e.offsetHeight}function qb(e,t,n){const o=hn(t),i=Dn(t),s=Lo(e,o&&zb(t));let r={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(o||!o&&n!=="fixed")if((pn(t)!=="body"||qs(i))&&(r=Ws(t)),hn(t)){const u=Lo(t,!0);c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}else i&&(c.x=rf(i));return{x:s.left+r.scrollLeft-c.x,y:s.top+r.scrollTop-c.y,width:s.width,height:s.height}}function Ks(e){return pn(e)==="html"?e:e.assignedSlot||e.parentNode||(nf(e)?e.host:null)||Dn(e)}function af(e){return!hn(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function Vb(e){let t=Ks(e);for(;hn(t)&&!["html","body"].includes(pn(t));){if(of(t))return t;t=t.parentNode}return null}function Ia(e){const t=Nn(e);let n=af(e);for(;n&&Ub(n)&&getComputedStyle(n).position==="static";)n=af(n);return n&&(pn(n)==="html"||pn(n)==="body"&&getComputedStyle(n).position==="static"&&!of(n))?t:n||Vb(e)||t}function lf(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Wb(e){let{rect:t,offsetParent:n,strategy:o}=e;const i=hn(n),s=Dn(n);if(n===s)return t;let r={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if((i||!i&&o!=="fixed")&&((pn(n)!=="body"||qs(s))&&(r=Ws(n)),hn(n))){const u=Lo(n,!0);c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{...t,x:t.x-r.scrollLeft+c.x,y:t.y-r.scrollTop+c.y}}function Kb(e){const t=Nn(e),n=Dn(e),o=t.visualViewport;let i=n.clientWidth,s=n.clientHeight,r=0,c=0;return o&&(i=o.width,s=o.height,Math.abs(t.innerWidth/o.scale-o.width)<.01&&(r=o.offsetLeft,c=o.offsetTop)),{width:i,height:s,x:r,y:c}}function Gb(e){var t;const n=Dn(e),o=Ws(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=Ci(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),r=Ci(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let c=-o.scrollLeft+rf(e);const u=-o.scrollTop;return Us(i||n).direction==="rtl"&&(c+=Ci(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:r,x:c,y:u}}function cf(e){return["html","body","#document"].includes(pn(e))?e.ownerDocument.body:hn(e)&&qs(e)?e:cf(Ks(e))}function Gs(e,t){var n;t===void 0&&(t=[]);const o=cf(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=Nn(o),r=i?[s].concat(s.visualViewport||[],qs(o)?o:[]):o,c=t.concat(r);return i?c:c.concat(Gs(Ks(r)))}function Jb(e,t){const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&nf(n)){let o=t;do{if(o&&e===o)return!0;o=o.parentNode||o.host}while(o)}return!1}function Yb(e){const t=Lo(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 uf(e,t){return t==="viewport"?ka(Kb(e)):zs(t)?Yb(t):ka(Gb(Dn(e)))}function Xb(e){const t=Gs(Ks(e)),o=["absolute","fixed"].includes(Us(e).position)&&hn(e)?Ia(e):e;return zs(o)?t.filter(i=>zs(i)&&Jb(i,o)&&pn(i)!=="body"):[]}function Zb(e){let{element:t,boundary:n,rootBoundary:o}=e;const s=[...n==="clippingParents"?Xb(t):[].concat(n),o],r=s[0],c=s.reduce((u,p)=>{const f=uf(t,p);return u.top=Ci(f.top,u.top),u.right=sf(f.right,u.right),u.bottom=sf(f.bottom,u.bottom),u.left=Ci(f.left,u.left),u},uf(t,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}const Qb={getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:qb(t,Ia(n),o),floating:{...lf(n),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:e=>Wb(e),getOffsetParent:e=>{let{element:t}=e;return Ia(t)},isElement:e=>zs(e),getDocumentElement:e=>{let{element:t}=e;return Dn(t)},getClippingClientRect:e=>Zb(e),getDimensions:e=>{let{element:t}=e;return lf(t)},getClientRects:e=>{let{element:t}=e;return t.getClientRects()}},ev=(e,t,n)=>Eb(e,t,{platform:Qb,...n});var tv=Object.defineProperty,nv=Object.defineProperties,ov=Object.getOwnPropertyDescriptors,ff=Object.getOwnPropertySymbols,iv=Object.prototype.hasOwnProperty,sv=Object.prototype.propertyIsEnumerable,df=(e,t,n)=>t in e?tv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mn=(e,t)=>{for(var n in t||(t={}))iv.call(t,n)&&df(e,n,t[n]);if(ff)for(var n of ff(t))sv.call(t,n)&&df(e,n,t[n]);return e},$i=(e,t)=>nv(e,ov(t));function pf(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?pf(e[n],t[n]):e[n]=t[n])}const gn={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 No(e,t){let n=gn.themes[e]||{},o;do o=n[t],typeof o>"u"?n.$extend?n=gn.themes[n.$extend]||{}:(n=null,o=gn[t]):n=null;while(n);return o}function rv(e){const t=[e];let n=gn.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=gn.themes[n.$extend]||{}):n=null;while(n);return t.map(o=>`v-popper--theme-${o}`)}function hf(e){const t=[e];let n=gn.themes[e]||{};do n.$extend?(t.push(n.$extend),n=gn.themes[n.$extend]||{}):n=null;while(n);return t}let uo=!1;if(typeof window<"u"){uo=!1;try{const e=Object.defineProperty({},"passive",{get(){uo=!0}});window.addEventListener("test",null,e)}catch{}}let mf=!1;typeof window<"u"&&typeof navigator<"u"&&(mf=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const gf=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),wf={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},yf={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function bf(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Ta(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Ht=[];let fo=null;const vf={};function _f(e){let t=vf[e];return t||(t=vf[e]=[]),t}let Ma=function(){};typeof window<"u"&&(Ma=window.Element);function De(e){return function(t){return No(t.theme,e)}}const Ba="__floating-vue__popper";var xf=()=>He({name:"VPopper",provide(){return{[Ba]:{parentPopper:this}}},inject:{[Ba]:{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:De("disabled")},positioningDisabled:{type:Boolean,default:De("positioningDisabled")},placement:{type:String,default:De("placement"),validator:e=>gf.includes(e)},delay:{type:[String,Number,Object],default:De("delay")},distance:{type:[Number,String],default:De("distance")},skidding:{type:[Number,String],default:De("skidding")},triggers:{type:Array,default:De("triggers")},showTriggers:{type:[Array,Function],default:De("showTriggers")},hideTriggers:{type:[Array,Function],default:De("hideTriggers")},popperTriggers:{type:Array,default:De("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:De("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:De("popperHideTriggers")},container:{type:[String,Object,Ma,Boolean],default:De("container")},boundary:{type:[String,Ma],default:De("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:De("strategy")},autoHide:{type:[Boolean,Function],default:De("autoHide")},handleResize:{type:Boolean,default:De("handleResize")},instantMove:{type:Boolean,default:De("instantMove")},eagerMount:{type:Boolean,default:De("eagerMount")},popperClass:{type:[String,Array,Object],default:De("popperClass")},computeTransformOrigin:{type:Boolean,default:De("computeTransformOrigin")},autoMinSize:{type:Boolean,default:De("autoMinSize")},autoSize:{type:[Boolean,String],default:De("autoSize")},autoMaxSize:{type:Boolean,default:De("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:De("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:De("preventOverflow")},overflowPadding:{type:[Number,String],default:De("overflowPadding")},arrowPadding:{type:[Number,String],default:De("arrowPadding")},arrowOverflow:{type:Boolean,default:De("arrowOverflow")},flip:{type:Boolean,default:De("flip")},shift:{type:Boolean,default:De("shift")},shiftCrossAxis:{type:Boolean,default:De("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:De("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:$i(mn({},this.classes),{popperClass:this.popperClass}),result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Ba])==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:mn(mn({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,i;((o=this.parentPopper)==null?void 0:o.lockedChild)&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(n||!this.disabled)&&(((i=this.parentPopper)==null?void 0:i.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(Db({mainAxis:this.distance,crossAxis:this.skidding}));const n=this.placement.startsWith("auto");if(n?t.middleware.push(Mb({alignment:(e=this.placement.split("-")[1])!=null?e:""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(jb({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!n&&this.flip&&t.middleware.push(Lb({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(Ab({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:i,rects:s,middlewareData:r})=>{let c;const{centerOffset:u}=r.arrow;return i.startsWith("top")||i.startsWith("bottom")?c=Math.abs(u)>s.reference.width/2:c=Math.abs(u)>s.reference.height/2,{data:{overflow:c}}}}),this.autoMinSize||this.autoSize){const i=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:s,placement:r,middlewareData:c})=>{var u;if((u=c.autoSize)!=null&&u.skip)return{};let p,f;return r.startsWith("top")||r.startsWith("bottom")?p=s.reference.width:f=s.reference.height,this.$_innerNode.style[i==="min"?"minWidth":i==="max"?"maxWidth":"width"]=p!=null?`${p}px`:null,this.$_innerNode.style[i==="min"?"minHeight":i==="max"?"maxHeight":"height"]=f!=null?`${f}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(Fb({boundary:this.boundary,padding:this.overflowPadding,apply:({width:i,height:s})=>{this.$_innerNode.style.maxWidth=i!=null?`${i}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const o=await ev(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:o.x,y:o.y,placement:o.placement,strategy:o.strategy,arrow:mn(mn({},o.middlewareData.arrow),o.middlewareData.arrowOverflow)})},$_scheduleShow(e=null,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),fo&&this.instantMove&&fo.instantMove&&fo!==this.parentPopper){fo.$_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&&(fo=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 Ta(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Gs(this.$_referenceNode),...Gs(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(),i=t.x+t.width/2-(o.left+n.offsetLeft),s=t.y+t.height/2-(o.top+n.offsetTop);this.result.transformOrigin=`${i}px ${s}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<Ht.length;n++)t=Ht[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Ht.push(this),document.body.classList.add("v-popper--some-open");for(const t of hf(this.theme))_f(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 Ta(),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,bf(Ht,this),Ht.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of hf(this.theme)){const o=_f(n);bf(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}fo===this&&(fo=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=No(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 Ta(),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,wf,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],wf,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,yf,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],yf,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,uo?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,o,i){let s=n;o!=null&&(s=typeof o=="function"?o(s):o),s.forEach(r=>{const c=t[r];c&&this.$_registerEventListeners(e,c,i)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:o,eventType:i,handler:s}=n;!e||e===i?o.forEach(r=>r.removeEventListener(i,s)):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(Ei>=e.left&&Ei<=e.right&&Si>=e.top&&Si<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=Ei-Rn,o=Si-jn,s=t.left+t.width/2-Rn+(t.top+t.height/2)-jn+t.width+t.height,r=Rn+n*s,c=jn+o*s;return Js(Rn,jn,r,c,t.left,t.top,t.left,t.bottom)||Js(Rn,jn,r,c,t.left,t.top,t.right,t.top)||Js(Rn,jn,r,c,t.right,t.top,t.right,t.bottom)||Js(Rn,jn,r,c,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(mf?(document.addEventListener("touchstart",Cf,uo?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",lv,uo?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",Cf,!0),window.addEventListener("click",av,!0)),window.addEventListener("resize",fv));function Cf(e){for(let t=0;t<Ht.length;t++){const n=Ht[t];try{const o=n.popperNode();n.$_mouseDownContains=o.contains(e.target)}catch{}}}function av(e){$f(e)}function lv(e){$f(e,!0)}function $f(e,t=!1){const n={};for(let o=Ht.length-1;o>=0;o--){const i=Ht[o];try{const s=i.$_containsGlobalTarget=cv(i,e);i.$_pendingHide=!1,requestAnimationFrame(()=>{if(i.$_pendingHide=!1,!n[i.randomId]&&Ef(i,s,e)){if(i.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&s){let c=i.parentPopper;for(;c;)n[c.randomId]=!0,c=c.parentPopper;return}let r=i.parentPopper;for(;r&&Ef(r,r.$_containsGlobalTarget,e);){r.$_handleGlobalClose(e,t);r=r.parentPopper}}})}catch{}}}function cv(e,t){const n=e.popperNode();return e.$_mouseDownContains||n.contains(t.target)}function Ef(e,t,n){return n.closeAllPopover||n.closePopover&&t||uv(e,n)&&!t}function uv(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function fv(e){for(let t=0;t<Ht.length;t++)Ht[t].$_computePosition(e)}let Rn=0,jn=0,Ei=0,Si=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Rn=Ei,jn=Si,Ei=e.clientX,Si=e.clientY},uo?{passive:!0}:void 0);function Js(e,t,n,o,i,s,r,c){const u=((r-i)*(t-s)-(c-s)*(e-i))/((c-s)*(n-e)-(r-i)*(o-t)),p=((n-e)*(t-s)-(o-t)*(e-i))/((c-s)*(n-e)-(r-i)*(o-t));return u>=0&&u<=1&&p>=0&&p<=1}var Ys=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n};const dv={extends:xf()};function pv(e,t,n,o,i,s){return Q(),re("div",{ref:"reference",class:Ze(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[ln(e.$slots,"default",tm(xu(e.slotData)))],2)}var hv=Ys(dv,[["render",pv]]);function mv(){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 i=e.indexOf("Edge/");return i>0?parseInt(e.substring(i+5,e.indexOf(".",i)),10):-1}let Xs;function La(){La.init||(La.init=!0,Xs=mv()!==-1)}var Zs={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){La(),Mc(()=>{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",Xs&&this.$el.appendChild(e),e.data="about:blank",Xs||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&&(!Xs&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const gv=Eg();Cg("data-v-b329ee4c");const wv={class:"resize-observer",tabindex:"-1"};$g();const yv=gv((e,t,n,o,i,s)=>(Q(),Ft("div",wv)));Zs.render=yv,Zs.__scopeId="data-v-b329ee4c",Zs.__file="src/components/ResizeObserver.vue";var Sf=(e="theme")=>({computed:{themeClass(){return rv(this[e])}}});const bv=He({name:"VPopperContent",components:{ResizeObserver:Zs},mixins:[Sf()],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}}}),vv=["id","aria-hidden","tabindex","data-popper-placement"],_v={ref:"inner",class:"v-popper__inner"},xv=[g("div",{class:"v-popper__arrow-outer"},null,-1),g("div",{class:"v-popper__arrow-inner"},null,-1)];function Cv(e,t,n,o,i,s){const r=oo("ResizeObserver");return Q(),re("div",{id:e.popperId,ref:"popover",class:Ze(["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:en(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]=ry(c=>e.autoHide&&e.$emit("hide"),["esc"]))},[g("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=c=>e.autoHide&&e.$emit("hide"))}),g("div",{class:"v-popper__wrapper",style:en(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[g("div",_v,[e.mounted?(Q(),re(Ve,{key:0},[g("div",null,[ln(e.$slots,"default")]),e.handleResize?(Q(),Ft(r,{key:0,onNotify:t[1]||(t[1]=c=>e.$emit("resize",c))})):it("",!0)],64)):it("",!0)],512),g("div",{ref:"arrow",class:"v-popper__arrow-container",style:en(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},xv,4)],4)],46,vv)}var kf=Ys(bv,[["render",Cv]]),Af={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 $v=He({name:"VPopperWrapper",components:{Popper:hv,PopperContent:kf},mixins:[Af,Sf("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 Ev(e,t,n,o,i,s){const r=oo("PopperContent"),c=oo("Popper");return Q(),Ft(c,{ref:"popper",theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:Ze([e.themeClass])},{default:qe(({popperId:u,isShown:p,shouldMountContent:f,skipTransition:h,autoHide:y,show:x,hide:k,handleResize:O,onResize:z,classes:G,result:D})=>[ln(e.$slots,"default",{shown:p,show:x,hide:k}),be(r,{ref:"popperContent","popper-id":u,theme:e.finalTheme,shown:p,mounted:f,"skip-transition":h,"auto-hide":y,"handle-resize":O,classes:G,result:D,onHide:k,onResize:z},{default:qe(()=>[ln(e.$slots,"popper",{shown:p,hide:k})]),_: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 Na=Ys($v,[["render",Ev]]);const Sv=He($i(mn({},Na),{name:"VDropdown",vPopperTheme:"dropdown"})),kv=He($i(mn({},Na),{name:"VMenu",vPopperTheme:"menu"})),Av=He($i(mn({},Na),{name:"VTooltip",vPopperTheme:"tooltip"})),Ov=He({name:"VTooltipDirective",components:{Popper:xf(),PopperContent:kf},mixins:[Af],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>No(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>No(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}}}),Pv=["innerHTML"],Iv=["textContent"];function Tv(e,t,n,o,i,s){const r=oo("PopperContent"),c=oo("Popper");return Q(),Ft(c,$u({ref:"popper"},e.$attrs,{theme:e.theme,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:qe(({popperId:u,isShown:p,shouldMountContent:f,skipTransition:h,autoHide:y,hide:x,handleResize:k,onResize:O,classes:z,result:G})=>[be(r,{ref:"popperContent",class:Ze({"v-popper--tooltip-loading":e.loading}),"popper-id":u,theme:e.theme,shown:p,mounted:f,"skip-transition":h,"auto-hide":y,"handle-resize":k,classes:z,result:G,onHide:x,onResize:O},{default:qe(()=>[e.html?(Q(),re("div",{key:0,innerHTML:e.finalContent},null,8,Pv)):(Q(),re("div",{key:1,textContent:ye(e.finalContent)},null,8,Iv))]),_: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 Mv=Ys(Ov,[["render",Tv]]);const Of="v-popper--has-tooltip";function Bv(e,t){let n=e.placement;if(!n&&t)for(const o of gf)t[o]&&(n=o);return n||(n=No(e.theme||"tooltip","placement")),n}function Pf(e,t,n){let o;const i=typeof t;return i==="string"?o={content:t}:t&&i==="object"?o=t:o={content:!1},o.placement=Bv(o,n),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let Da,ki,Lv=0;function Nv(){if(Da)return;ki=$e([]),Da=Mo({name:"VTooltipDirectiveApp",setup(){return{directives:ki}},render(){return this.directives.map(t=>Nw(Mv,$i(mn({},t.options),{shown:t.shown||t.options.shown,key:t.id})))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Da.mount(e)}function Dv(e,t,n){Nv();const o=$e(Pf(e,t,n)),i=$e(!1),s={id:Lv++,options:o,shown:i};return ki.value.push(s),e.classList&&e.classList.add(Of),e.$_popper={options:o,item:s,show(){i.value=!0},hide(){i.value=!1}}}function If(e){if(e.$_popper){const t=ki.value.indexOf(e.$_popper.item);t!==-1&&ki.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Of)}function Tf(e,{value:t,modifiers:n}){const o=Pf(e,t,n);if(!o.content||No(o.theme||"tooltip","disabled"))If(e);else{let i;e.$_popper?(i=e.$_popper,i.options.value=o):i=Dv(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?i.show():i.hide())}}var Rv={beforeMount:Tf,updated:Tf,beforeUnmount(e){If(e)}};function Mf(e){e.addEventListener("click",Lf),e.addEventListener("touchstart",Nf,uo?{passive:!0}:!1)}function Bf(e){e.removeEventListener("click",Lf),e.removeEventListener("touchstart",Nf),e.removeEventListener("touchend",Df),e.removeEventListener("touchcancel",Rf)}function Lf(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Nf(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",Df),t.addEventListener("touchcancel",Rf)}}function Df(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 Rf(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}var jv={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&Mf(e)},updated(e,{value:t,oldValue:n,modifiers:o}){e.$_closePopoverModifiers=o,t!==n&&(typeof t>"u"||t?Mf(e):Bf(e))},beforeUnmount(e){Bf(e)}};function Fv(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,pf(gn,t),e.directive("tooltip",Rv),e.directive("close-popper",jv),e.component("VTooltip",Av),e.component("VDropdown",Sv),e.component("VMenu",kv))}const jf={version:"2.0.0-beta.20",install:Fv,options:gn},oE="",Ff="basic_config";function Hv(e){return{hideWatermark:!0,hideSidebar:!0,...e}}async function Ra(){const e=Hv(),t=await _t.get(Ff,e);return{...e,...t}}async function Uv(e){await _t.set(Ff,e)}async function zv(e){!e.hideSidebar||(console.log("[Cloud115 Enhancer] hideSidebar"),window.top!==window.self?(await Ri('[rel="page_top_btn"]')).show():(await Ri("#site_left_bar")).hide())}async function qv(e){if(!e.hideWatermark)return;console.log("[Cloud115 Enhancer] hideWatermark");const t=await Ri('div[class^="fp-"]');t.addClass("hidden-watermark"),t.hide()}async function Vv(){const{host:e,search:t}=location;e!=="115.com"||!t.includes("offline=1&tab=offline")||(Wv(),Kv())}async function Wv(){console.log("[Cloud115 Enhancer] Injecting offline exporter...");const e="cloud115OfflineExporter";document.body.classList.add("cloud115-page-offline"),$("body").append(`<div id="${e}"/>`);const t=Mo($b);t.use(jf),t.mount(`#${e}`)}async function Kv(){(await Ra()).hideSidebar&&($('.more-box[rel="transfer_top_btn"]').show(),$('a[menu="upload"]').show(),$('.clp-box[rel="transfer_top_btn"]').show())}var Fn=(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))(Fn||{});const Gv={class:"cloud115-eh-cleaner-trigger"},Jv=[g("span",null,"清理文件",-1)],Yv=He({__name:"Trigger",setup(e){$e(!1);const t=$e(!0);async function n(c){switch(console.log("[handleMessage]",c),c.data.type){case Fn.INVOKE_FILTER:await Sh(c.data.payload);break;case Fn.CLEANER_OPENED:await r(c.data.payload);break}}an(async()=>{console.log("[CleanerTrigger onMounted]"),window.addEventListener("message",n)}),mi(()=>{console.log("[CleanerTrigger onUnmounted]"),window.removeEventListener("message",n)});async function o(){await s(),ji({type:Fn.OPEN_CLEANER},window.parent)}let i=0;async function s(){const c=Ud("cid");!c||c==="0"||(clearTimeout(i),i=window.setTimeout(async()=>{_e({icon:"error",text:"打开清理工具失败!"})},1e3))}async function r(c){console.log("成功打开Cleaner"),clearTimeout(i)}return(c,u)=>ae((Q(),re("span",Gv,[ln(c.$slots,"default",{},()=>[g("span",{class:"btn-open pure-button pure-button-primary",onClick:o},Jv)])],512)),[[fn,t.value]])}}),sE="";var Le=(e=>(e[e.suffix=0]="suffix",e[e.keyword=1]="keyword",e))(Le||{}),ct=(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))(ct||{}),rt=(e=>(e.none="",e.prepare="查询文件...",e.prepared="查询文件完成",e.prepareFailed="查询失败",e.deleting="删除文件中...",e.success="清理完成",e.failed="清理失败",e))(rt||{});dt.all,Ye.all,dt.video,Ye.video,dt.audio,Ye.audio,dt.image,Ye.image,dt.doc,Ye.doc,dt.app,Ye.app,dt.archive,Ye.archive;const Xv=new Map([[Ye.all,dt.all],[Ye.video,dt.video],[Ye.audio,dt.audio],[Ye.image,dt.image],[Ye.doc,dt.doc],[Ye.app,dt.app],[Ye.archive,dt.archive]]),Qs="#",Hf="#",Zv=[{type:Le.suffix,queryOnly:!1,label:"默认",memo:"请谨慎使用!",size:5,values:["txt","url","html","htm","mht"]},{type:Le.suffix,queryOnly:!0,label:"🔍115筛选",memo:"仅用于查询",size:102400,values:["#视频","#音频","#图片","#文档","#应用","#压缩包"]}],Qv=["#論壇文宣","#宣傳文本","最新地址","最新网址","论坛地址","永久地址","地址发布","扫码 安装","扫码 下载","免費 掃碼","澳门 赌场","皇冠 赌场","免费18禁手游","免费黄游手游","在线影城","秀场 小视频","裸秀 主播 免费看","第一会所 宣传","SIS 影视联盟",'"最 新 位 址 獲 取"','"社 區 最 新 情 報"','"聚 合 全 網 H 直 播"'],e0=["#論壇文宣","美女 裸聊","秀场 视频","澳门 赌场","皇冠 赌场","影视 联盟","2048 社区","1024 社区","会所 宣传","扫码 安装","社区 关注","免費 掃碼","找回家","防屏蔽","封殺00","秀场 小视频","裸秀 主播 免费看",'"Free Adult Movie"',"奔驰宝马","最新网址","最新免費","免费试用","美女荷官","凤凰娛樂","观看指南","女神在线","更多无水印","免费在线","国产精品","免費原版","獨家資源","成人光碟","最新AV","FDZone","发布器","QR-1024","在這等你","激情祼聊","看妹不用等","真人祼聊","zz.jpg","X8B9.COM.gif","第一会所 宣传","SIS 影视联盟","淘精網","激情咖啡","手機影城","免费手机看片","U視娛樂","加微信","我愛看片手機版","平台正式上線"],t0=[{type:Le.keyword,queryOnly:!1,label:"默认",memo:"请谨慎使用!",size:100,values:Qv},{type:Le.keyword,queryOnly:!1,label:"⚠️大杀器⚠️",memo:"请谨慎使用!",size:100,values:e0},{type:Le.keyword,queryOnly:!0,label:"只查询示例",memo:"这是一个示例",size:10240,values:["奔驰宝马","美女荷官",'"最 新 位 址 獲 取"']}];function po(e){return{id:Date.now().toString(),type:e,queryOnly:!1,label:"",values:"",memo:"",size:0,sort:0,createdAt:0,updatedAt:0}}function Uf(e,t){e=e.trim();const n=t===Le.keyword&&n0(e),o=t===Le.suffix&&o0(e);let i=e;return n&&(i=i0(e)),o&&(i=s0(e).toString()),{type:t,value:e,forDir:n,isFilter:o,pattern:i,num:-1,fileIds:[],size:-1,status:rt.none}}function zf(e){return[rt.prepare,rt.deleting].includes(e.status)}function n0(e){return new RegExp(`^${Qs}[\\S]{2,}`).test(e)}function o0(e){return new RegExp(`^${Hf}[\\S]{2,}`).test(e)}function i0(e){const t=new RegExp(`^${Qs}`);return e.replace(t,"")}function s0(e){const t=new RegExp(`^${Hf}`);let n=e.replace(t,"");const o=Xv.get(n);if(!o)throw new Error(`"${e}"不是有效的筛选!`);return o}async function ho(e,t){let n;typeof e=="string"?n=e.split(/[\r\n]+/):n=e;const o=new Set;for(let s=0;s<n.length;s++){const r=n[s].trim();r.length>1&&o.add(r)}const i=[];return o.forEach(s=>{i.push(Uf(s,t))}),i}function qf(e){return/(^'.+'$)|(^".+"$)/.test(e)}function ja(e){return qf(e)?e.replace(/^['"]|['"]$/g,""):e}function r0(e,t){if(e===""||t==="")return!1;if(e=e.toLowerCase(),qf(t))return e.includes(ja(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 Vf(e,t,n){const o=Uf(e.value,e.type);o.num=0,o.size=0,o.fileIds=[];const i=new Set;let s=0;n.maxSize&&(s=n.maxSize*1024*1024);for(let r=0;r<t.length;r++){const c=!!t[r].fid,u=c?t[r].fid:t[r].cid;if(e.type===Le.keyword&&(c&&e.forDir||!c&&!e.forDir))continue;const p=parseFloat(t[r].s);s&&c&&p>s||e.type===Le.keyword&&!r0(t[r].n,e.pattern)||i.has(u)||(i.add(u),o.size+=p)}return o.fileIds=Array.from(i),o.num=o.fileIds.length,o}const a0={class:"group-manager"},l0={key:0,class:"label-readonly",title:"当前分组只可用于查询"},c0=["title"],u0=g("small",null,"分组:",-1),f0={class:"pure-form pure-form-stacked group-form"},d0=g("label",{for:"groupLabel"},"标题",-1),p0=g("label",{for:"groupMemo"},"备注",-1),h0={for:"groupValues"},m0={key:0,class:"text-info"},g0={key:1,class:"text-info"},w0=["onClick"],y0=g("small",{class:"text-primary"},"(点击添加)",-1),b0=g("label",{for:"groupMemo"},[ue(" 文件大小 "),g("span",{class:"text-info"},[ue("只清理小于该大小的文件,单位"),g("b",null,"MB")])],-1),v0={class:"groups-list"},_0={key:0,class:"text-danger"},x0=g("span",{class:"text-info"},"或",-1),C0=g("br",null,null,-1),$0=g("br",null,null,-1),E0={class:"pure-table pure-table-bordered"},S0=g("thead",null,[g("tr",null,[g("th",{width:"25"},"#"),g("th",{width:"70"},"只查询"),g("th",{width:"150"},"名称"),g("th",{width:"150"},"备注"),g("th",{width:"70"},[ue("大小"),g("small",null,"MB")]),g("th",{width:"220"},"操作")])],-1),k0={align:"center"},A0=["onClick"],O0=g("button",{type:"button",class:"pure-button button-xsmall text-danger"},"删除",-1),P0={class:"group-confirm-delete"},I0=["onClick"],T0=["onClick"],Wf=He({__name:"GroupManager",props:{type:null,storageKey:null,config:null},emits:["change"],setup(e,{emit:t}){const n=e,o=$e(po(n.type)),i=$e([]),s=$e(!1),r=$e(po(n.type)),c=$e(null),u=$e(!1),p=$e(null),f=[Ye.video,Ye.audio,Ye.image,Ye.doc,Ye.app,Ye.archive];kt(i,async fe=>{console.log("[groups change]",fe),Un(n.storageKey,fe,!1),fe.length||(s.value=!1,u.value=!1)},{deep:!0});let h=!1;an(async()=>{if(console.log("[GroupManager onMounted]"),!h){h=!0,i.value=Li(n.storageKey,[]),console.log("[groups]",i.value);const{suffixGroup:fe,keywordGroup:te}=n.config;if(i.value.length){const xe=i.value.find(oe=>oe.id===(n.type===Le.suffix?fe:te));console.log("[group last choosen]",xe),o.value=xe||i.value[0],t("change",o.value)}else n.type===Le.suffix&&!fe&&(await ee(),Un("cleanerConfig",{suffixGroup:o.value.id},!0)),n.type===Le.keyword&&!te&&(await ee(),Un("cleanerConfig",{keywordGroup:o.value.id},!0))}}),mi(async()=>{console.log("[GroupManager onUnmounted]")});async function y(fe){const te=`#${fe}`;r.value.values.includes(te)||(r.value.values+=(`
`+te).trim()+`
`)}async function x(){s.value=!0,u.value=!1}async function k(){s.value=!1}async function O(){c.value.show()}async function z(){c.value.hide()}async function G(){u.value=!1}async function D(){u.value=!0,s.value=!1}async function j(){p.value.show()}async function Z(){p.value.hide()}async function ne(){r.value.createdAt&&(r.value=po(n.type)),r.value.size=5,n.type===Le.keyword&&(r.value.size=100),await O()}async function ee(){let fe=[];n.type===Le.suffix?fe=Zv:fe=t0;for(let te=0;te<fe.length;te++){const xe={...po(fe[te].type),...fe[te]};r.value=xe,r.value.type=xe.type,r.value.queryOnly=xe.queryOnly,r.value.size=xe.size,r.value.label=xe.label,r.value.memo=xe.memo,r.value.createdAt=0,r.value.updatedAt=0,Array.isArray(xe.values)?r.value.values=xe.values.join(`
`):r.value.values=xe.values,await Se(),await Z()}i.value.length&&await Pe(i.value[0])}async function Me(fe,te=!1){if(!te){const{isConfirmed:oe}=await ve.fire({html:`确定删除"${o.value.label}"?`,icon:"question"});if(!oe)return}let xe=-1;for(let oe=0;oe<i.value.length;oe++)if(i.value[oe].id===o.value.id){xe=oe;break}i.value.splice(xe,1),i.value.length?o.value=i.value[0]:o.value=po(n.type),t("change",o.value),await _e({icon:"success",title:"删除成功!",timer:1500})}async function Ee(fe){r.value=fe,await O()}async function Se(){let fe=[];try{fe=await ho(r.value.values,r.value.type)}catch(M){await ve.fire({icon:"error",text:M.message});return}if(r.value.label=r.value.label.trim(),r.value.memo=r.value.memo.trim(),r.value.label===""){await _e({icon:"warning",text:"请输入标题!"});return}let te=-1;for(let M=0;M<i.value.length;M++)if(i.value[M].id===r.value.id&&r.value.id){te=M;break}const xe=Ni();r.value.updatedAt=xe,r.value.createdAt||(r.value.createdAt=xe);let oe=[];for(let M=0;M<fe.length;M++)oe.push(fe[M].value);r.value.values=oe.join(`
`).trim(),console.log("[saveGroup]",r.value,te),te===-1?(i.value.push(r.value),_e({icon:"success",text:"添加成功"})):(i.value[te]=r.value,_e({icon:"success",text:"更新成功"}));const Re=!o.value.createdAt;Re&&(o.value=r.value),(r.value.id===o.value.id||Re)&&t("change",r.value),await z()}async function Pe(fe){o.value=fe;const{id:te}=o.value;n.type===Le.suffix&&(n.config.suffixGroup=te,Un("cleanerConfig",{suffixGroup:te},!0)),n.type===Le.keyword&&(n.config.keywordGroup=te,Un("cleanerConfig",{keywordGroup:te},!0)),t("change",fe)}return(fe,te)=>{const xe=oo("VDropdown");return Q(),re("div",a0,[o.value.queryOnly?(Q(),re("span",l0," 只查询 ")):it("",!0),o.value.createdAt?(Q(),re("a",{key:1,class:"group-label",href:"javascript:void(0)",title:`当前使用的分组: ${o.value.label}`,onClick:te[0]||(te[0]=oe=>Ee(o.value))},[g("span",null,[u0,ue(" "+ye(o.value.label),1)])],8,c0)):it("",!0),be(xe,{ref_key:"form",ref:c,onHide:k,onShow:x,distance:5,"arrow-padding":100},{popper:qe(()=>[g("form",f0,[g("fieldset",null,[g("div",null,[d0,ae(g("input",{type:"text","onUpdate:modelValue":te[1]||(te[1]=oe=>r.value.label=oe),id:"groupLabel",class:"pure-input-1-2",placeholder:"分组标题"},null,512),[[st,r.value.label]]),ue("    "),r.value.queryOnly?(Q(),re("button",{key:0,type:"button",class:"pure-button button-small button-warning",onClick:te[2]||(te[2]=oe=>r.value.queryOnly=!1)},"已设置为仅用于查询 | 点击取消设置")):it("",!0),r.value.queryOnly?it("",!0):(Q(),re("button",{key:1,type:"button",class:"pure-button button-small pure-button-primary",onClick:te[3]||(te[3]=oe=>r.value.queryOnly=!0)},"设置为仅用于查询"))]),g("div",null,[p0,ae(g("input",{type:"text","onUpdate:modelValue":te[4]||(te[4]=oe=>r.value.memo=oe),id:"groupMemo",placeholder:"分组备注"},null,512),[[st,r.value.memo]])]),g("div",null,[g("label",h0,[ue(" 特征列表 "),n.type===Te(Le).keyword?(Q(),re("span",m0,[ue(" 默认只匹配文件名。前面带"),g("b",null,ye(Te(Qs)),1),ue("则只匹配目录名。 ")])):it("",!0),n.type===Te(Le).suffix?(Q(),re("span",g0,[ue(" 支持115自带筛选: "),(Q(),re(Ve,null,Tt(f,(oe,Re)=>g("span",{class:"filter-label text-success",key:Re,onClick:M=>y(oe)}," #"+ye(oe),9,w0)),64)),y0])):it("",!0)]),ae(g("textarea",{id:"groupValues","onUpdate:modelValue":te[5]||(te[5]=oe=>r.value.values=oe),rows:"5",placeholder:"每行一个"},null,512),[[st,r.value.values]])]),g("div",null,[b0,ae(g("input",{type:"number","onUpdate:modelValue":te[6]||(te[6]=oe=>r.value.size=oe),class:"pure-input-1-2",placeholder:"文件大小小于该数值才清理"},null,512),[[st,r.value.size]])]),g("button",{type:"button",class:"pure-button pure-button-primary",onClick:Se},ye(r.value.createdAt?"更新":"添加"),1),ue("      "),g("button",{type:"button",class:"pure-button",onClick:z},"取消")])])]),default:qe(()=>[g("a",{href:"javascript:void(0)",class:"text-primary",onClick:ne},"新增分组")]),_:1},512),be(xe,{ref_key:"list",ref:p,onHide:G,onShow:D,distance:5},{popper:qe(()=>[g("div",v0,[i.value.length?it("",!0):(Q(),re("h3",_0,[ue(" 还没有添加任何分组。你可以: "),g("button",{type:"button",class:"pure-button button-small",onClick:ne},"添加"),ue("   "),x0,ue("   "),g("button",{type:"button",class:"pure-button button-small",onClick:ee},"使用脚本内置"),C0,$0])),g("table",E0,[S0,g("tbody",null,[(Q(!0),re(Ve,null,Tt(i.value,(oe,Re)=>(Q(),re("tr",{key:Re},[g("td",null,ye(Re+1),1),g("td",k0,ye(oe.queryOnly?"是":"否"),1),g("td",null,ye(oe.label),1),g("td",null,ye(oe.memo),1),g("td",null,ye(oe.size),1),g("td",null,[g("button",{type:"button",class:"pure-button button-xsmall text-primary",onClick:M=>Pe(oe)},"载入",8,A0),ue("   "),be(xe,null,{popper:qe(()=>[g("div",P0,[g("button",{type:"button",class:"pure-button button-error",onClick:M=>Me(oe,!0)},"确定",8,I0)])]),default:qe(()=>[O0]),_:2},1024),ue("   "),g("button",{type:"button",class:"pure-button button-xsmall",onClick:M=>Ee(oe)},"编辑",8,T0)])]))),128))])])])]),default:qe(()=>[g("a",{href:"javascript:void(0)",class:"text-primary",onClick:j},"分组列表")]),_:1},512)])}}}),rE="",M0={class:"cloud115-eh-cleaner"},B0=[g("span",null,"清理文件",-1)],L0={key:0,class:"cloud115-eh-cleaner-help"},N0=[Cw('<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>关键词`免费在线`,匹配文件名&quot;blabla-免费在线.mp4&quot;,<b class="text-danger">不匹配</b>文件名`blabla-免费的xxx在线.mp4`。</p><p>关键词`免费 在线`,匹配文件名&quot;blabla-免费在线.mp4&quot;,<b class="text-success">也匹配</b>文件名`blabla-免费的xxx在线.mp4`。</p><p class="text-danger">如需要 `免费 在线` 作为一个整体去匹配,可以使用`英文单/双引号`包裹,如`&quot;免费 在线&quot;`</p></div></div>',1)],D0={class:"header actions-bar"},R0=g("span",{class:"title"},"文件清理工具",-1),j0={type:"button",class:"pure-button button-success"},F0=g("i",{class:"file-type tp-folder",style:{}},null,-1),H0=["disabled"],U0=["disabled"],z0=g("small",null,"毫秒",-1),q0=["disabled"],V0=g("br",null,null,-1),W0={class:"by-box by-suffix"},K0={class:"by-header"},G0=g("span",{class:"title"},[ue("按"),g("b",null,"后缀名"),ue("清理")],-1),J0={class:"pure-button-group",role:"group"},Y0=["disabled"],X0={class:"pure-table pure-table-bordered"},Z0=g("thead",null,[g("tr",null,[g("th",{width:"25"},"#"),g("th",{width:"100"},"后缀名"),g("th",{width:"95"},"文件数量"),g("th",{width:"80"},"合计大小"),g("th",{width:"150"},"操作"),g("th",{width:"200"},"状态")])],-1),Q0=["onClick"],e_=["onClick"],t_=["onClick"],n_=g("br",null,null,-1),o_={class:"by-box by-keyword"},i_={class:"by-header"},s_=g("span",{class:"title"},[ue("按"),g("b",null,"关键词"),ue("清理")],-1),r_={class:"pure-button-group",role:"group"},a_=["disabled"],l_={class:"pure-table pure-table-bordered"},c_=g("thead",null,[g("tr",null,[g("th",{width:"25"},"#"),g("th",{width:"100"},"关键词"),g("th",{width:"95"},"文件/目录数量"),g("th",{width:"80"},"合计大小"),g("th",{width:"150"},"操作"),g("th",{width:"200"},"状态")])],-1),u_=["href"],f_={class:"file-type tp-folder"},d_=["onClick"],p_=["onClick"],h_=g("br",null,null,-1),m_={class:"footer actions-bar"},g_=g("span",{class:"title"},"文件清理工具",-1),w_={type:"button",class:"pure-button button-success"},y_=g("i",{class:"file-type tp-folder",style:{}},null,-1),b_=He({__name:"Cleaner",setup(e){const t=$e(!1),n=$e(!0),o=$e(po(Le.suffix)),i=$e(po(Le.keyword)),s=$e({maxSize:5,matchName:!1}),r=$e({maxSize:100,matchName:!0}),c=$e([]),u=$e([]),p=$e(!1),f=$e({initialized:!1,pageSize:1150,reqInterval:800,deleteSize:1150,...Li("cleanerConfig",{})}),h=$e(!0),y=$e(""),x=$e([]);async function k(M){console.log("[handleMessage]",M),M.data.type===Fn.OPEN_CLEANER&&(await O(M.data.payload),ji({type:Fn.CLEANER_OPENED},M.source))}an(async()=>{console.log("[Cleaner onMounted]"),f.value.initialized||(f.value.initialized=!0,Un("cleanerConfig",f.value,!1)),window.addEventListener("message",k)}),mi(()=>{console.log("[Cleaner onUnmounted]"),window.removeEventListener("message",k)});async function O(M){t.value=!0;const W=await zt();if(W==="0"||W===""){await z(),await ve.fire({icon:"warning",html:"<h2>不允许在根目录使用该工具!</h2>"});return}y.value&&y.value!==W&&(console.warn("目录变化,重置"),await Z(ct.reset),await ne(ct.reset)),x.value=await Ch(),y.value=W}async function z(){t.value=!1}async function G(){Un("cleanerConfig",f.value,!1),_e({icon:"success",text:"保存成功",timer:1800}),h.value=!0}async function D(M){const W={};M.isFilter?W.type=M.pattern:W.suffix=M.pattern;let B=unsafeWindow.frames[0];for(let ce=0;ce<unsafeWindow.frames.length;ce++)if(unsafeWindow.frames[ce].name==="wangpan"){B=unsafeWindow.frames[ce];break}ji({type:Fn.INVOKE_FILTER,payload:W},B),await z(),_e({icon:"info",text:`已调用115筛选: ${M.value}`,timer:2500})}async function j(M,W){const{value:B}=await ve.fire({input:"textarea",title:M,html:"每行一个,最短两个字符。"+(W===Le.keyword?`<br>默认只匹配文件名,不匹配目录名。<br>使用 "<b>${Qs}目录名关键词</b>" 格式指定只匹配目录名的关键词。`:""),width:620,inputPlaceholder:"每行一个,最短两个字符",inputAttributes:{"aria-label":"每行一个,最短两个字符"},showCancelButton:!0});return B!==void 0?B.trim():""}async function Z(M,W){let B="",ce=[];switch(M){case ct.assign:B=W.trim(),B.trim()===""?c.value=[]:(ce=await ho(B,Le.suffix),c.value=ce);break;case ct.append:B=await j("添加后缀",Le.suffix),ce=await ho(B,Le.suffix);const we=[];c.value.forEach(Oe=>we.push(Oe.value.toLowerCase())),ce.forEach(Oe=>{we.includes(Oe.value.toLowerCase())||c.value.push(Oe)});break;case ct.cover:B=await j("覆盖后缀",Le.suffix),B.trim()!==""&&(ce=await ho(B,Le.suffix),c.value=ce);break;case ct.clear:c.value=[];break;case ct.reset:c.value.forEach(Oe=>{Oe.num=-1,Oe.fileIds=[],Oe.status=rt.none,Oe.size=-1});break}}async function ne(M,W){let B="",ce=[];switch(M){case ct.assign:B=W.trim(),B.trim()===""?u.value=[]:(ce=await ho(B,Le.keyword),u.value=ce);break;case ct.append:B=await j("添加关键词",Le.keyword),ce=await ho(B,Le.keyword);const we=[];u.value.forEach(Oe=>we.push(Oe.value.toLowerCase())),ce.forEach(Oe=>{we.includes(Oe.value.toLowerCase())||u.value.push(Oe)});break;case ct.cover:B=await j("覆盖关键词",Le.keyword),B.trim()!==""&&(ce=await ho(B,Le.keyword),u.value=ce);break;case ct.clear:u.value=[];break;case ct.reset:u.value.forEach(Oe=>{Oe.num=-1,Oe.fileIds=[],Oe.status=rt.none,Oe.size=-1});break}}async function ee(M){if(console.log("[cleanBySuffix]",M),await Z(ct.reset),!c.value.length){await ve.fire({icon:"warning",text:"请先设置后缀!"});return}if(!M){const{isConfirmed:W}=await ve.fire({icon:"warning",html:'请在清理前确认"后缀和大小限制的设置"是否符合预期!',confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!W)return}p.value=!0;try{for(let W=0;W<c.value.length;W++){const B=c.value[W];await Me(B,M,!1,!0),await Xt(f.value.reqInterval)}}catch(W){console.error(W)}p.value=!1}async function Me(M,W,B,ce){if(console.log("[cleanBySuffixSingle]",M,W),!W&&!ce){const{isConfirmed:we}=await ve.fire({icon:"warning",html:`确认执行条件 "后缀: <b class="text-primary">${M.pattern}</b>, 小于: <b>${s.value.maxSize}</b> MB" 的清理?`,confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!we)return}try{if(!B){p.value=!0,M.fileIds=[],M.size=-1,M.num=-1,M.status=rt.prepare;const we=await Pe(M);M.status=rt.prepared;const{fileIds:Oe,size:Ge}=await Vf(M,we,s.value);M.fileIds=Oe,M.size=Ge,M.num=Oe.length,p.value=!1}if(!W)if(M.num>0){M.status=rt.deleting,p.value=!0;const we=await Hl(y.value,M.fileIds,f.value.deleteSize,1e3);p.value=!1,we>0?M.status=rt.success+` / 数量 <= ${we}`:M.status=rt.failed}else M.status=rt.success+" / 无"}catch(we){console.error(we),p.value=!1,await ve.fire({title:"cleanBySuffixSingle - 发生错误",html:we.toString()})}}async function Ee(M){if(console.log("[cleanByKeyword]",M),await ne(ct.reset),!u.value.length){await ve.fire({icon:"warning",text:"请先设置关键词!"});return}if(!M){const{isConfirmed:W}=await ve.fire({icon:"warning",html:'请在清理前确认"关键词和大小限制的设置"是否符合预期!',confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!W)return}p.value=!0;try{for(let W=0;W<u.value.length;W++){const B=u.value[W];await Se(B,M,!1,!0),await Xt(f.value.reqInterval)}}catch(W){console.error(W)}p.value=!1}async function Se(M,W,B,ce){if(console.log("[cleanByKeywordSingle]",M,W),!W&&!ce){const{isConfirmed:we}=await ve.fire({icon:"warning",html:`确认执行条件 "关键词: <b class="text-primary">${M.pattern}</b>, 小于: <b class="text-primary">${r.value.maxSize}</b> MB" 的清理?`,confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!we)return}try{if(!B){p.value=!0,M.fileIds=[],M.size=-1,M.num=-1,M.status=rt.prepare;const we=await fe(M);M.status=rt.prepared;const{fileIds:Oe,size:Ge,num:Je}=await Vf(M,we,r.value);M.fileIds=Oe,M.size=Ge,M.num=Je,p.value=!1}if(!W)if(M.num>0){M.status=rt.deleting,p.value=!0;const we=await Hl(y.value,M.fileIds,f.value.deleteSize,1e3);p.value=!1,we>0?M.status=rt.success+` / 数量 <= ${we}`:M.status=rt.failed,M.num>9e3&&(console.warn("[cleanByKeywordSingle] 补充处理..."),await Se(M,W,!1,!0))}else M.status=rt.success+" / 无"}catch(we){console.error(we),p.value=!1;let Oe=!0;const Ge={title:"cleanByKeywordSingle - 发生错误",html:we.toString()};we instanceof Er&&(M.status=rt.prepareFailed+` / ${we.message}`,we instanceof Fl&&(Ge.timer=2e3,Oe=!1)),Oe?await ve.fire(Ge):ve.fire(Ge)}}async function Pe(M){const W=await zt(),B=Gd({cid:W,limit:f.value.pageSize});M.isFilter?B.type=M.pattern:B.suffix=M.value;const ce=await fh(B,f.value.reqInterval);return console.log("[files]",ce),ce}async function fe(M){const W=await zt(),B=Kd({search_value:ja(M.pattern),cid:W,limit:f.value.pageSize}),ce=await ph(B,f.value.reqInterval,!0);return console.log("[files]",ce),ce}function te(M){return Ar({search_value:ja(M.pattern),cid:y.value},x.value[x.value.length-1])}async function xe(M){console.log("[onSuffixGroupChange]",M),o.value=M,s.value.maxSize=M.size,await Z(ct.assign,M.values)}async function oe(M){console.log("[onKeywordGroupChange]",M),i.value=M,r.value.maxSize=M.size,await ne(ct.assign,M.values)}async function Re(){document.querySelector(".cloud115-eh-cleaner-drawer").scrollTo(0,0)}return(M,W)=>ae((Q(),re("span",M0,[ln(M.$slots,"default",{},()=>[g("span",{class:"btn-open pure-button pure-button-primary",onClick:O},B0)]),t.value?(Q(),re("div",L0,N0)):it("",!0),ae(g("div",{class:Ze(["cloud115-eh-cleaner-drawer",{loading:p.value}])},[g("div",D0,[R0,g("span",{class:"close"},[g("button",{type:"button",class:"pure-button button-error",onClick:z},"关闭")]),g("button",j0,[g("b",null,[F0,ue(" "+ye(x.value.join(" / ")),1)])])]),g("div",null,[ue(" 请求分页: "),ae(g("input",{type:"number","onUpdate:modelValue":W[0]||(W[0]=B=>f.value.pageSize=B),min:30,max:1150,disabled:h.value},null,8,H0),[[st,f.value.pageSize]]),ue(" 请求间隔: "),ae(g("input",{type:"number","onUpdate:modelValue":W[1]||(W[1]=B=>f.value.reqInterval=B),min:200,max:1e6,disabled:h.value},null,8,U0),[[st,f.value.reqInterval]]),z0,ue(" 每次删除: "),ae(g("input",{type:"number","onUpdate:modelValue":W[2]||(W[2]=B=>f.value.deleteSize=B),min:1,max:1150,disabled:h.value},null,8,q0),[[st,f.value.deleteSize]]),g("span",{class:"config-toggle",onClick:W[3]||(W[3]=B=>h.value=!h.value)},"设置参数"),h.value?it("",!0):(Q(),re("button",{key:0,type:"button",class:"pure-button pure-button-primary button-small",onClick:G}," 保存配置 "))]),V0,g("div",W0,[g("div",K0,[G0,ue("      "),g("div",J0,[g("button",{type:"button",class:"pure-button",onClick:W[4]||(W[4]=B=>ee(!0))},"只查询"),g("button",{type:"button",class:"pure-button pure-button-primary",onClick:W[5]||(W[5]=B=>ee(!1)),disabled:o.value.queryOnly}," 一键清理 ",8,Y0)]),ue(" 小于 "),ae(g("input",{type:"number","onUpdate:modelValue":W[6]||(W[6]=B=>s.value.maxSize=B),class:"filter-size"},null,512),[[st,s.value.maxSize]]),ue(" MB (0表示不限制) "),be(Wf,{type:Te(Le).suffix,"storage-key":"suffixGroups",onChange:xe,config:f.value},null,8,["type","config"])]),g("table",X0,[Z0,g("tbody",null,[(Q(!0),re(Ve,null,Tt(c.value,(B,ce)=>(Q(),re("tr",{key:ce,class:Ze({active:Te(zf)(B),"is-filter":B.isFilter})},[g("td",null,ye(ce+1),1),g("td",null,[g("a",{href:"javascript:void(0)",class:"pattern",onClick:we=>D(B),title:"筛选"},ye(B.value),9,Q0)]),g("td",null,ye(B.num>=0?B.num:""),1),g("td",null,ye(B.size>0?Te(el)(B.size):""),1),g("td",null,[g("button",{type:"button",class:"pure-button button-xsmall",onClick:we=>Me(B,!0,!1,!0)},"查询",8,e_),ue("   "),B.num>0&&!o.value.queryOnly?(Q(),re("button",{key:0,type:"button",class:"pure-button button-warning button-xsmall",onClick:we=>Me(B,!1,!0,!1)},"清理",8,t_)):it("",!0)]),g("td",null,ye(B.status),1)],2))),128))])])]),n_,g("div",o_,[g("div",i_,[s_,ue("      "),g("div",r_,[g("button",{type:"button",class:"pure-button",onClick:W[7]||(W[7]=B=>Ee(!0))},"只查询"),g("button",{type:"button",class:"pure-button pure-button-primary",onClick:W[8]||(W[8]=B=>Ee(!1)),disabled:i.value.queryOnly}," 一键清理 ",8,a_)]),ue(" 小于 "),ae(g("input",{type:"number","onUpdate:modelValue":W[9]||(W[9]=B=>r.value.maxSize=B),class:"filter-size"},null,512),[[st,r.value.maxSize]]),ue(" MB (0表示不限制) "),be(Wf,{type:Te(Le).keyword,"storage-key":"keywordGroups",onChange:oe,config:f.value},null,8,["type","config"])]),g("table",l_,[c_,g("tbody",null,[(Q(!0),re(Ve,null,Tt(u.value,(B,ce)=>(Q(),re("tr",{key:ce,class:Ze({active:Te(zf)(B),"is-dir":B.forDir})},[g("td",null,ye(ce+1),1),g("td",null,[g("a",{href:te(B),target:"_blank",class:"pattern",title:"搜索"},[ae(g("i",f_,null,512),[[fn,B.forDir]]),ue(" "+ye(B.pattern),1)],8,u_)]),g("td",null,ye(B.num>=0?B.num:""),1),g("td",null,ye(B.size>0?Te(el)(B.size):""),1),g("td",null,[g("button",{type:"button",class:"pure-button button-xsmall",onClick:we=>Se(B,!0,!1,!0)},"查询",8,d_),ue("   "),B.num>0&&!i.value.queryOnly?(Q(),re("button",{key:0,type:"button",class:"pure-button button-warning button-xsmall",onClick:we=>Se(B,!1,!0,!1)}," 清理 ",8,p_)):it("",!0)]),g("td",null,ye(B.status),1)],2))),128))])])]),h_,g("div",m_,[g_,g("span",{class:"close"},[g("button",{type:"button",class:"pure-button button-error",onClick:z},"关闭")]),g("button",w_,[g("b",null,[y_,ue(" "+ye(x.value.join(" / ")),1)])]),ue("     "),g("button",{type:"button",class:"pure-button button-small",onClick:Re}," 回到顶部 ")])],2),[[fn,t.value]])],512)),[[fn,n.value]])}}),cE="",uE="";async function v_(){const{host:e,search:t}=location;e==="115.com"&&(console.log("[Cleaner] running..."),t.includes("ct=file")?await __():await x_())}async function __(){const e="cloud115Cleaner";(await Ri("#js_path_add_dir")).after(`<span id="${e}"></span>`),Mo(Yv).mount(`#${e}`)}async function x_(){const e="cloud115Cleaner";$("body").append(`<div id="${e}"/>`);const t=Mo(b_);t.use(jf),t.mount(`#${e}`),Za("清理文件",async()=>{ji({type:Fn.OPEN_CLEANER},window.parent)})}async function C_(){const e=await Ra(),{host:t,search:n}=location;t==="115.com"&&(qv(e),zv(e))}const Kf=Symbol("addTab"),Gf=Symbol("updateTab"),Jf=Symbol("deleteTab"),Yf=Symbol("tabsProvider");function er(e,t){const n=pi(e,t);if(typeof n>"u")throw new Error(`Could not resolve ${e.description}`);return n}const $_=["data-tab-id","aria-hidden"],mo=He({__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=$e(!1),i=er(Yf),s=er(Kf),r=er(Gf),c=er(Jf),u=n.prefix+n.name+n.suffix,p=n.id?n.id:n.name.toLowerCase().replace(/ /g,"-"),f=p+"-pane",h=Au(()=>"#"+(n.isDisabled?"":p));return kt(()=>i.activeTabHash,()=>{o.value=h.value===i.activeTabHash}),kt(()=>Object.assign({},n),()=>{r(p,{name:n.name,header:n.prefix+n.name+n.suffix,isDisabled:n.isDisabled,hash:h.value,index:i.tabs.length,computedId:p,paneId:f,navItemClass:n.navItemClass,navItemLinkClass:n.navItemLinkClass})}),rn(()=>{s({name:n.name,header:u,isDisabled:n.isDisabled,hash:h.value,index:i.tabs.length,computedId:p,paneId:f,navItemClass:n.navItemClass,navItemLinkClass:n.navItemLinkClass})}),Zc(()=>{c(p)}),t({header:u,computedId:p,paneId:f,hash:h,isActive:o}),(y,x)=>ae((Q(),re("section",{ref:"tab",id:f,"data-tab-id":Te(p),"aria-hidden":!o.value,class:Ze(e.panelClass),role:"tabpanel",tabindex:"-1"},[ln(y.$slots,"default")],10,$_)),[[fn,o.value]])}});class E_{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 i=new Date().getTime(),s=new Date(i+o*6e4);localStorage.setItem(t,JSON.stringify({value:n,expires:s}))}}const Xf=new E_,S_=["aria-controls","aria-selected","href","onClick","innerHTML"],k_=He({__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,i=ys({activeTabHash:"",lastActiveTabHash:"",tabs:[]});di(Yf,i),di(Kf,c=>{i.tabs.push(c)}),di(Gf,(c,u)=>{const p=i.tabs.findIndex(f=>f.computedId===c);u.isActive=i.tabs[p].isActive,i.tabs[p]=u}),di(Jf,c=>{const u=i.tabs.findIndex(p=>p.computedId===c);i.tabs.splice(u,1)});const s=(c,u)=>{u&&!o.options.useUrlFragment&&u.preventDefault();const p=r(c);if(!p)return;if(u&&p.isDisabled){u.preventDefault();return}if(i.lastActiveTabHash===p.hash){n("clicked",{tab:p});return}if(i.tabs.forEach(h=>{h.isActive=h.hash===p.hash}),n("changed",{tab:p}),i.lastActiveTabHash=i.activeTabHash=p.hash,o.cacheLifetime<=0)return;const f=`vue-tabs-component.cache.${window.location.host}${window.location.pathname}`;Xf.set(f,p.hash,o.cacheLifetime)},r=c=>i.tabs.find(u=>u.hash===c);return an(()=>{if(i.tabs.length){if(window.addEventListener("hashchange",()=>s(window.location.hash)),r(window.location.hash)){s(window.location.hash);return}if(o.cacheLifetime>0){const c=`vue-tabs-component.cache.${window.location.host}${window.location.pathname}`,u=Xf.get(c);if(u!==null&&r(u)){s(u);return}if(o.options.defaultTabHash&&r("#"+o.options.defaultTabHash)){s("#"+o.options.defaultTabHash);return}}s(i.tabs[0].hash)}}),t({...Jm(i),selectTab:s,findTab:r}),(c,u)=>(Q(),re("div",{class:Ze(e.wrapperClass)},[g("ul",{role:"tablist",class:Ze(e.navClass)},[(Q(!0),re(Ve,null,Tt(i.tabs,(p,f)=>{var h,y;return Q(),re("li",{key:f,class:Ze([(h=p.navItemClass)!=null?h:e.navItemClass,p.isDisabled?e.navItemDisabledClass:"",p.isActive?e.navItemActiveClass:p.isDisabled?"":e.navItemInactiveClass]),role:"presentation"},[g("a",{role:"tab",class:Ze([(y=p.navItemLinkClass)!=null?y:e.navItemLinkClass,p.isDisabled?e.navItemLinkDisabledClass:"",p.isActive?e.navItemLinkActiveClass:p.isDisabled?"":e.navItemLinkInactiveClass]),"aria-controls":p.paneId,"aria-selected":p.isActive,href:p.hash,onClick:x=>s(p.hash,x),innerHTML:p.header,tabindex:"0"},null,10,S_)],2)}),128))],2),g("div",{class:Ze(e.panelsWrapperClass)},[ln(c.$slots,"default")],2)],2))}}),A_={class:"ce-config ce-basic-config"},O_={class:"pure-form pure-form-aligned"},P_={class:"pure-control-group"},I_=g("label",{for:"basic_hideWatermark"},"隐藏水印",-1),T_=g("div",{class:"pure-form-message text-success"}," 网页水印是肉眼看不到的,但通过一些处理可以看到,水印内容是你的账号标识。 如果你需要截图并发给别人,可以考虑开启隐藏。 ",-1),M_={class:"pure-control-group"},B_=g("label",{for:"basic_hideSidebar"},"隐藏侧边栏",-1),L_=g("div",{class:"pure-form-message text-success"}," 虽然现在官方也有手动隐藏侧边栏的功能,不过刷新页面后会恢复显示。该设置可以一直隐藏侧边栏。 ",-1),N_=He({__name:"Config",async setup(e){let t,n;const o=$e(([t,n]=Ln(()=>Ra()),t=await t,n(),t));return rn(async()=>{}),kt(o,vo(async i=>{await Uv(i),_e({icon:"success",title:"设置已保存,刷新页面生效。",timer:800,position:"top-end"})},500),{deep:!0}),(i,s)=>(Q(),re("div",A_,[g("form",O_,[g("fieldset",null,[g("div",P_,[I_,ae(g("input",{id:"basic_hideWatermark",type:"checkbox","onUpdate:modelValue":s[0]||(s[0]=r=>o.value.hideWatermark=r)},null,512),[[je,o.value.hideWatermark]]),T_]),g("div",M_,[B_,ae(g("input",{id:"basic_hideSidebar",type:"checkbox","onUpdate:modelValue":s[1]||(s[1]=r=>o.value.hideSidebar=r)},null,512),[[je,o.value.hideSidebar]]),L_])])])]))}}),fE="",D_={class:"menu-config-block"},R_={class:"pure-form pure-form-stacked"},j_=g("legend",null,"全局设置",-1),F_={class:"pure-control-group"},H_=g("label",{for:"basic_enabled"},"启用",-1),U_={class:"pure-control-group"},z_=g("label",{for:"basic_hideSelectionMenuLabel"},"隐藏顶部菜单文本",-1),q_=He({__name:"BasicConfig",props:{config:null},setup(e,{emit:t}){const n=e;return(o,i)=>(Q(),re("div",D_,[g("form",R_,[g("fieldset",null,[j_,g("div",F_,[H_,ae(g("input",{id:"basic_enabled",type:"checkbox","onUpdate:modelValue":i[0]||(i[0]=s=>n.config.enabled=s)},null,512),[[je,n.config.enabled]])]),g("div",U_,[z_,ae(g("input",{id:"basic_hideSelectionMenuLabel",type:"checkbox","onUpdate:modelValue":i[1]||(i[1]=s=>n.config.hideSelectionMenuLabel=s)},null,512),[[je,n.config.hideSelectionMenuLabel]])])])])]))}}),V_={class:"menu-config-block"},W_={class:"pure-form pure-form-stacked"},K_=g("label",{for:"listItemHover_enabled"},"启用",-1),G_=g("label",{for:"listItemHover_openInNewTab"},"新标签页打开",-1),J_=g("label",{for:"listItemHover_search",class:"text-primary"},"搜索",-1),Y_=g("label",{for:"listItemHover_play",class:"text-primary"},"播放",-1),X_=g("label",{for:"listItemHover_copyFileName"},"复制名称",-1),Z_=He({__name:"ListItemHoverConfig",props:{config:null},setup(e){return(t,n)=>(Q(),re("div",V_,[g("form",W_,[g("fieldset",null,[g("legend",null,ye(Te(zo).listItemHover),1),g("div",null,[K_,ae(g("input",{id:"listItemHover_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[je,e.config.enabled]])]),g("div",null,[G_,ae(g("input",{id:"listItemHover_openInNewTab",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.openInNewTab=o)},null,512),[[je,e.config.openInNewTab]])]),g("div",null,[J_,ae(g("input",{id:"listItemHover_search",type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=o=>e.config.search=o)},null,512),[[je,e.config.search]])]),g("div",null,[Y_,ae(g("input",{id:"listItemHover_play",type:"checkbox","onUpdate:modelValue":n[3]||(n[3]=o=>e.config.play=o)},null,512),[[je,e.config.play]])]),g("div",null,[X_,ae(g("input",{id:"listItemHover_copyFileName",type:"checkbox","onUpdate:modelValue":n[4]||(n[4]=o=>e.config.copyNames=o)},null,512),[[je,e.config.copyNames]])])])])]))}}),Q_={class:"menu-config-block"},e1={class:"pure-form pure-form-stacked"},t1=g("label",{for:"listItemContext_enabled"},"启用",-1),n1=g("label",{for:"listItemContext_copyFileName"},"复制名称",-1),o1=He({__name:"ListItemContextConfig",props:{config:null},setup(e){return(t,n)=>(Q(),re("div",Q_,[g("form",e1,[g("fieldset",null,[g("legend",null,ye(Te(zo).listItemContext),1),g("div",null,[t1,ae(g("input",{id:"listItemContext_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[je,e.config.enabled]])]),g("div",null,[n1,ae(g("input",{id:"listItemContext_copyFileName",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.copyNames=o)},null,512),[[je,e.config.copyNames]])])])])]))}}),i1={class:"menu-config-block"},s1={class:"pure-form pure-form-stacked"},r1=g("label",{for:"selection_enabled"},"启用",-1),a1=g("label",{for:"selection_moveToSelfNameDir"},"移动到同名目录",-1),l1=g("label",{for:"selection_copyFileName"},"复制名称",-1),c1=He({__name:"SelectionConfig",props:{config:null},setup(e){return(t,n)=>(Q(),re("div",i1,[g("form",s1,[g("fieldset",null,[g("legend",null,ye(Te(zo).selection),1),g("div",null,[r1,ae(g("input",{id:"selection_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[je,e.config.enabled]])]),g("div",null,[a1,ae(g("input",{id:"selection_moveToSelfNameDir",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.moveToSelfNameDir=o)},null,512),[[je,e.config.moveToSelfNameDir]])]),g("div",null,[l1,ae(g("input",{id:"selection_copyFileName",type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=o=>e.config.copyNames=o)},null,512),[[je,e.config.copyNames]])])])])]))}}),u1={class:"menu-config-block"},f1={class:"pure-form pure-form-stacked"},d1=g("label",{for:"dirContext_enabled"},"启用",-1),p1=g("label",{for:"dirContext_rename"},"重命名",-1),h1=g("label",{for:"dirContext_delete"},"删除",-1),m1=g("label",{for:"dirContext_play"},"播放全部",-1),g1=g("label",{for:"dirContext_copyFileName"},"复制名称",-1),w1=g("label",{for:"dirContext_move"},"移动",-1),y1=g("label",{for:"dirContext_copy"},"复制",-1),b1=g("label",{for:"dirContext_copyTo"},"复制到",-1),v1=g("label",{for:"dirContext_viewProperties"},"查看属性",-1),_1=g("label",{for:"dirContext_showSubFolderSize"},"子文件夹大小",-1),x1=He({__name:"DirContextConfig",props:{config:null},setup(e){return(t,n)=>(Q(),re("div",u1,[g("form",f1,[g("fieldset",null,[g("legend",null,ye(Te(zo).dirContext),1),g("div",null,[d1,ae(g("input",{id:"dirContext_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[je,e.config.enabled]])]),g("div",null,[p1,ae(g("input",{id:"dirContext_rename",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.rename=o)},null,512),[[je,e.config.rename]])]),g("div",null,[h1,ae(g("input",{id:"dirContext_delete",type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=o=>e.config.delete=o)},null,512),[[je,e.config.delete]])]),g("div",null,[m1,ae(g("input",{id:"dirContext_play",type:"checkbox","onUpdate:modelValue":n[3]||(n[3]=o=>e.config.play=o)},null,512),[[je,e.config.play]])]),g("div",null,[g1,ae(g("input",{id:"dirContext_copyFileName",type:"checkbox","onUpdate:modelValue":n[4]||(n[4]=o=>e.config.copyNames=o)},null,512),[[je,e.config.copyNames]])]),g("div",null,[w1,ae(g("input",{id:"dirContext_move",type:"checkbox","onUpdate:modelValue":n[5]||(n[5]=o=>e.config.move=o)},null,512),[[je,e.config.move]])]),g("div",null,[y1,ae(g("input",{id:"dirContext_copy",type:"checkbox","onUpdate:modelValue":n[6]||(n[6]=o=>e.config.copy=o)},null,512),[[je,e.config.copy]])]),g("div",null,[b1,ae(g("input",{id:"dirContext_copyTo",type:"checkbox","onUpdate:modelValue":n[7]||(n[7]=o=>e.config.copyTo=o)},null,512),[[je,e.config.copyTo]])]),g("div",null,[v1,ae(g("input",{id:"dirContext_viewProperties",type:"checkbox","onUpdate:modelValue":n[8]||(n[8]=o=>e.config.viewProp=o)},null,512),[[je,e.config.viewProp]])]),g("div",null,[_1,ae(g("input",{id:"dirContext_showSubFolderSize",type:"checkbox","onUpdate:modelValue":n[9]||(n[9]=o=>e.config.showSubFolderSize=o)},null,512),[[je,e.config.showSubFolderSize]])])])])]))}}),C1={key:0,class:"ce-menu-config"},$1=g("div",{class:"ce-tips"},[g("p",null,"「搜索」功能菜单除了默认的几个搜索站点,还支持自定义,可通过「搜索菜单」设置界面进行设置。"),g("p",null,"「播放」功能菜单除了默认的几个播放器,还支持自定义,可通过「播放菜单」设置界面进行设置。")],-1),E1=He({__name:"MenuConfig",async setup(e){let t,n;const o=$e(([t,n]=Ln(()=>Kl()),t=await t,n(),t));return $e(!1),rn(async()=>{}),kt(o,vo(async i=>{await Rh(i),_e({icon:"success",title:"设置已保存,刷新页面生效。",timer:800,position:"top-end"})},500),{deep:!0}),(i,s)=>o.value.enabled!==void 0?(Q(),re("div",C1,[$1,be(q_,{config:o.value},null,8,["config"]),be(Z_,{config:o.value.listItemHover},null,8,["config"]),be(o1,{config:o.value.listItemContext},null,8,["config"]),be(c1,{config:o.value.selection},null,8,["config"]),be(x1,{config:o.value.dirContext},null,8,["config"])])):it("",!0)}}),dE="",S1={class:"pure-form pure-form-aligned"},k1=["disabled"],A1={class:"pure-control-group"},O1=g("label",null,"地址",-1),P1={class:"pure-control-group"},I1=g("label",null,"资源根路径",-1),T1={class:"pure-control-group"},M1=g("label",null,"备注",-1),B1=He({__name:"ConfigItem",props:{config:null,deletable:{type:Boolean}},emits:["change","delete","activate"],setup(e,{emit:t}){const n=e;rn(async()=>{});function o(){n.config.active=!0,t("activate",n.config)}function i(){t("delete")}return kt(n.config,vo(async s=>{t("change",s)},500),{deep:!0}),(s,r)=>(Q(),re("div",{class:Ze(["ce-clouddrive-config-item",{active:e.config.active}])},[g("form",S1,[g("fieldset",null,[g("legend",null,[g("button",{type:"button",class:Ze(["pure-button button-small",[e.config.active?"button-success":"pure-button-primary"]]),onClick:o,disabled:e.config.active},ye(e.config.active?"当前使用该配置":"使用该配置"),11,k1),e.deletable?(Q(),re("button",{key:0,type:"button",class:"pure-button button-error button-small",onClick:i}," 删除 ")):it("",!0)]),g("div",A1,[O1,ae(g("input",{"onUpdate:modelValue":r[0]||(r[0]=c=>e.config.url=c),placeholder:"CloudDrive服务地址,如「http://localhost:19798」",class:"pure-input-2-3"},null,512),[[st,e.config.url]])]),g("div",P1,[I1,ae(g("input",{"onUpdate:modelValue":r[1]||(r[1]=c=>e.config.root=c),placeholder:"即当前115账号在CloudDrive中的资源名称,如「115」",class:"pure-input-2-3"},null,512),[[st,e.config.root]])]),g("div",T1,[M1,ae(g("input",{"onUpdate:modelValue":r[2]||(r[2]=c=>e.config.memo=c),placeholder:"备注信息",class:"pure-input-2-3"},null,512),[[st,e.config.memo]])])])])],2))}}),pE="",L1={class:"ce-config ce-clouddrive-config"},N1=g("div",{class:"ce-tips"}," 可以添加多个CloudDrive配置,需要使用哪个,点击「使用该配置」即可。 ",-1),D1={class:"ce-list"},R1={class:"ce-actions"},j1=["disabled"],F1=He({__name:"Config",async setup(e){let t,n;const o=$e(([t,n]=Ln(()=>rl()),t=await t,n(),t));rn(async()=>{});async function i(){await al(o.value),_e({icon:"success",title:"设置已保存。",timer:800,position:"top-end"})}async function s(){o.value.push(cr())}async function r(u,p){const{isConfirmed:f}=await ve.fire({icon:"warning",html:`确定要删除第 ${p+1} 个配置「${u.url}」吗?`});!f||(o.value.splice(p,1),await i(),_e({icon:"success",title:`「${u.url}」已删除!`}))}async function c(u,p){u.forEach((f,h)=>{f.active=h===p}),await al(u),_e({icon:"success",title:"设置已保存。",timer:800,position:"top-end"})}return(u,p)=>(Q(),re("div",L1,[N1,g("div",D1,[(Q(!0),re(Ve,null,Tt(o.value,(f,h)=>(Q(),Ft(B1,{key:h,config:f,index:h,deletable:o.value.length>1,onDelete:y=>r(f,h),onActivate:y=>c(o.value,h)},null,8,["config","index","deletable","onDelete","onActivate"]))),128))]),g("div",R1,[g("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:i,disabled:!o.value.length}," 保存配置 ",8,j1),ue("      "),g("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:s}," 添加配置 ")])]))}}),Zf=function(){return document.ontouchstart!==null?"click":"touchstart"},tr="__vue_click_away__",Qf=function(e,t,n){ed(e);let o=n.context,i=t.value,s=!1;setTimeout(function(){s=!0},0),e[tr]=function(r){if((!e||!e.contains(r.target))&&i&&s&&typeof i=="function")return i.call(o,r)},document.addEventListener(Zf(),e[tr],!1)},ed=function(e){document.removeEventListener(Zf(),e[tr],!1),delete e[tr]},H1={mounted:Qf,updated:function(e,t,n){t.value!==t.oldValue&&Qf(e,t,n)},unmounted:ed},U1=He({__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=$e(!1),i=$e(!1),s=c=>{const u=document.querySelector("body");u.style.overflow=c?"hidden":""},r=c=>{!c.target.classList.contains("ce-drawer__overlay")||i.value||t("close")};return an(()=>{o.value=n.isOpen}),kt(()=>n.isOpen,c=>{i.value=!0,c?(s(!0),o.value=!0):(s(!1),setTimeout(()=>o.value=!1,n.speed)),setTimeout(()=>i.value=!1,n.speed)}),(c,u)=>(Q(),re("div",null,[g("div",{class:Ze(["ce-drawer",{"is-open":e.isOpen,"is-visible":o.value}])},[g("div",{class:"ce-drawer__overlay",style:en({transitionDuration:`${e.speed}ms`})},null,4),ae((Q(),re("div",{class:"ce-drawer__content",style:en({maxWidth:e.maxWidth,transitionDuration:`${e.speed}ms`,backgroundColor:e.backgroundColor})},[ln(c.$slots,"default")],4)),[[Te(H1),r]])],2)]))}}),mE="",z1={class:"ce-custom-url"},q1={class:"pure-form pure-form-aligned"},V1={class:"ce-custom-url-index"},W1={class:"pure-control-group"},K1=g("label",null,"启用",-1),G1={class:"pure-control-group"},J1=g("label",null,"唯一标识",-1),Y1={class:"pure-control-group"},X1=g("label",null,"显示名称",-1),Z1={class:"pure-control-group"},Q1=g("label",null,"图标",-1),ex={class:"pure-control-group"},tx={class:"pure-control-group"},nx=g("label",null,"后台打开",-1),ox={class:"pure-control-group"},ix=g("label",null,"备注",-1),sx={key:0,class:"pure-control-group"},rx=g("label",null,"Mutation",-1),td=He({__name:"CustomUrl",props:{item:null,index:null},emits:["delete"],setup(e,{emit:t}){const n=$e(!0);function o(){t("delete")}function i(){n.value=!n.value,n.value&&_e({title:"已开启高级模式",text:"请谨慎修改,不正确的代码可能会导致脚本崩溃。",icon:"info",timer:2e3})}async function s(){window.postMessage({event:"customUrlHelp"},"*")}async function r(){const c=`
  <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 ve.fire({title:"Mutation 说明",html:c,width:480,position:"top-start",backdrop:!1})}return(c,u)=>(Q(),re("div",z1,[g("form",q1,[g("fieldset",null,[g("legend",null,[g("span",V1,"# "+ye(e.index+1),1),g("button",{type:"button",class:"pure-button button-error button-small",onClick:o}," 删除 ")]),g("div",W1,[K1,ae(g("input",{"onUpdate:modelValue":u[0]||(u[0]=p=>e.item.enabled=p),type:"checkbox",id:"customUrl_enabled"},null,512),[[je,e.item.enabled]])]),g("div",G1,[J1,ae(g("input",{"onUpdate:modelValue":u[1]||(u[1]=p=>e.item.key=p),id:"customUrl_key",class:"pure-input-2-3",placeholder:"英文、数字或下划线"},null,512),[[st,e.item.key]])]),g("div",Y1,[X1,ae(g("input",{"onUpdate:modelValue":u[2]||(u[2]=p=>e.item.label=p),id:"customUrl_label",class:"pure-input-2-3",placeholder:"菜单文本,尽量简洁"},null,512),[[st,e.item.label]])]),g("div",Z1,[Q1,ae(g("input",{"onUpdate:modelValue":u[3]||(u[3]=p=>e.item.icon=p),id:"customUrl_icon",class:"pure-input-2-3",placeholder:"图标class、图片链接或图片data:image"},null,512),[[st,e.item.icon]])]),g("div",ex,[g("label",{onDblclick:i}," 链接 ",32),ae(g("textarea",{"onUpdate:modelValue":u[4]||(u[4]=p=>e.item.url=p),id:"customUrl_url",class:"pure-input-2-3",placeholder:"链接地址,支持变量,变量列表请点击右侧「查看变量」"},null,512),[[st,e.item.url]]),ue("   "),g("a",{href:"javascript:void(0)",class:"text-primary",onClick:s},"查看变量")]),g("div",tx,[nx,ae(g("input",{"onUpdate:modelValue":u[5]||(u[5]=p=>e.item.openInBackground=p),id:"customUrl_openInBackground",type:"checkbox"},null,512),[[je,e.item.openInBackground]])]),g("div",ox,[ix,ae(g("input",{"onUpdate:modelValue":u[6]||(u[6]=p=>e.item.memo=p),id:"customUrl_memo",class:"pure-input-2-3"},null,512),[[st,e.item.memo]])]),n.value?(Q(),re("div",sx,[rx,ae(g("textarea",{"onUpdate:modelValue":u[7]||(u[7]=p=>e.item.mutation=p),id:"customUrl_mutation",class:"pure-input-2-3",placeholder:"自定义代码生成最终链接,具体请看右侧「查看说明」"},null,512),[[st,e.item.mutation]]),ue("   "),g("a",{href:"javascript:void(0)",class:"text-primary",onClick:r},"查看说明")])):it("",!0)])])]))}}),gE="",ax={class:"ce-config ce-search-urls ce-custom-urls"},lx={class:"ce-menu-urls-builtin"},cx={class:"pure-form pure-form-aligned"},ux=["for"],fx=["id","onUpdate:modelValue"],dx={class:"text-info"},px=["onClick"],hx={class:"ce-custom-urls-list"},mx={class:"ce-custom-urls-actions"},gx=["disabled"],wx=He({__name:"SearchUrls",async setup(e){let t,n;const o=$e(([t,n]=Ln(()=>Uu()),t=await t,n(),t)),i=$e(([t,n]=Ln(()=>Yo(xn.search)),t=await t,n(),t));rn(async()=>{}),kt(o,vo(async f=>{const h=[];f.forEach(y=>{y.enabled&&h.push(y.key)}),await _y(h),_e({icon:"success",title:"预置搜索菜单设置已保存,刷新页面生效。",timer:800,position:"top-end"})},500),{deep:!0});async function s(){const f=[];for(const h of i.value){if(!await r(h,f.length))return;if(f.includes(h.key)){_e({icon:"error",title:`第 ${f.length+1} 个记录的「唯一标识: ${h.key}」重复!`});return}f.push(h.key)}await Vl(xn.search,i.value),_e({icon:"success",title:"保存成功!"})}async function r(f,h){const y=/^\w+$/;return f.key=f.key.trim(),y.test(f.key)?(f.label=f.label.trim(),f.label===""?(_e({icon:"error",title:`第 ${h+1} 个记录的「显示名称」不能为空!`}),!1):(f.url=f.url.trim(),f.url===""?(_e({icon:"error",title:`第 ${h+1} 个记录的「链接」不能为空!`}),!1):(f.icon=f.icon.trim(),f.memo=f.memo.trim(),!0))):(_e({icon:"error",title:`第 ${h+1} 个记录的「唯一标识」错误!只能包含字母、数字、下划线。`}),!1)}async function c(){i.value.push(St())}async function u(f,h){const{isConfirmed:y}=await ve.fire({icon:"warning",html:`确定要删除第 ${h+1} 个记录「${f.label}」吗?`});!y||(i.value.splice(h,1),await s(),_e({icon:"success",title:`「${f.label}」已删除!`}))}async function p(f){const h=JSON.stringify(f,null,2),{isConfirmed:y}=await ve.fire({title:`「${f.label}」的定义`,html:`<h3>${f.memo}</h3>
      <pre style="text-align:left;font-size:12px;">${h}</pre>`,confirmButtonText:"复制",showCancelButton:!0,position:"top-left",heightAuto:!0});!y||(navigator.clipboard.writeText(h),_e({icon:"success",title:"已复制到剪贴板!"}))}return(f,h)=>(Q(),re("div",ax,[g("h1",null,[ue("预置搜索菜单 "),ae(g("small",null,"( "+ye(o.value.length)+" )",513),[[fn,o.value.length]])]),g("div",lx,[g("form",cx,[g("fieldset",null,[(Q(!0),re(Ve,null,Tt(o.value,(y,x)=>(Q(),re("div",{key:x,class:"pure-control-group"},[g("label",{for:`builtin_${y.key}`},ye(y.label),9,ux),ae(g("input",{id:`builtin_${y.key}`,type:"checkbox","onUpdate:modelValue":k=>y.enabled=k},null,8,fx),[[je,y.enabled]]),ue("      "),g("span",dx,ye(y.memo),1),ue("      "),g("button",{type:"button",class:"pure-button button-small",onClick:k=>p(y)},"查看定义",8,px)]))),128))])])]),g("h1",null,[ue("自定义搜索菜单 "),ae(g("small",null,"( "+ye(i.value.length)+" )",513),[[fn,i.value.length]])]),g("div",hx,[(Q(!0),re(Ve,null,Tt(i.value,(y,x)=>(Q(),Ft(td,{key:x,item:y,index:x,onDelete:k=>u(y,x)},null,8,["item","index","onDelete"]))),128))]),g("div",mx,[g("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:s,disabled:!i.value.length}," 保存自定义搜索菜单 ",8,gx),ue("      "),g("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:c}," 添加自定义搜索菜单 ")])]))}}),wE="",yx={class:"ce-config ce-play-urls ce-custom-urls"},bx=g("div",{class:"ce-tips"},[ue(" 支持常见的视频、音频和图片格式,也支持目录播放。预置播放菜单使用的链接变量是 "),g("b",null,"{clouddrive_stream_url}"),ue(" , 会根据文件或目录自动使用相应的链接。 ")],-1),vx={class:"ce-menu-urls-builtin"},_x={class:"pure-form pure-form-aligned"},xx=["for"],Cx=["id","onUpdate:modelValue"],$x={class:"text-info"},Ex=["onClick"],Sx={class:"ce-custom-urls-list"},kx={class:"ce-custom-urls-actions"},Ax=["disabled"],Ox=He({__name:"PlayUrls",async setup(e){let t,n;const o=$e(([t,n]=Ln(()=>Ca()),t=await t,n(),t)),i=$e(([t,n]=Ln(()=>Yo(xn.play)),t=await t,n(),t));rn(async()=>{}),kt(o,vo(async f=>{const h=[];f.forEach(y=>{y.enabled&&h.push(y.key)}),await xy(h),_e({icon:"success",title:"预置搜索菜单设置已保存,刷新页面生效。",timer:800,position:"top-end"})},500),{deep:!0});async function s(){const f=[];for(const h of i.value){if(!await r(h,f.length))return;if(f.includes(h.key)){_e({icon:"error",title:`第 ${f.length+1} 个记录的「唯一标识: ${h.key}」重复!`});return}f.push(h.key)}await Vl(xn.play,i.value),_e({icon:"success",title:"保存成功!"})}async function r(f,h){const y=/^\w+$/;return f.key=f.key.trim(),y.test(f.key)?(f.label=f.label.trim(),f.label===""?(_e({icon:"error",title:`第 ${h+1} 个记录的「显示名称」不能为空!`}),!1):(f.url=f.url.trim(),f.url===""?(_e({icon:"error",title:`第 ${h+1} 个记录的「链接」不能为空!`}),!1):(f.icon=f.icon.trim(),f.memo=f.memo.trim(),!0))):(_e({icon:"error",title:`第 ${h+1} 个记录的「唯一标识」错误!只能包含字母、数字、下划线。`}),!1)}async function c(){i.value.push(St())}async function u(f,h){const{isConfirmed:y}=await ve.fire({icon:"warning",html:`确定要删除第 ${h+1} 个记录「${f.label}」吗?`});!y||(i.value.splice(h,1),await s(),_e({icon:"success",title:`「${f.label}」已删除!`}))}async function p(f){const h=JSON.stringify(f,null,2),{isConfirmed:y}=await ve.fire({title:`「${f.label}」的定义`,html:`<h3>${f.memo}</h3>
      <pre style="text-align:left;font-size:12px;">${h}</pre>`,confirmButtonText:"复制",showCancelButton:!0,position:"top-left",heightAuto:!0});!y||(navigator.clipboard.writeText(h),_e({icon:"success",title:"已复制到剪贴板!"}))}return(f,h)=>(Q(),re("div",yx,[g("h1",null,[ue("预置播放菜单 "),ae(g("small",null,"( "+ye(o.value.length)+" )",513),[[fn,o.value.length]])]),bx,g("div",vx,[g("form",_x,[g("fieldset",null,[(Q(!0),re(Ve,null,Tt(o.value,(y,x)=>(Q(),re("div",{key:x,class:"pure-control-group"},[g("label",{for:`builtin_${y.key}`},ye(y.label),9,xx),ae(g("input",{id:`builtin_${y.key}`,type:"checkbox","onUpdate:modelValue":k=>y.enabled=k},null,8,Cx),[[je,y.enabled]]),ue("      "),g("span",$x,ye(y.memo),1),ue("      "),g("button",{type:"button",class:"pure-button button-small",onClick:k=>p(y)},"查看定义",8,Ex)]))),128))])])]),g("h1",null,[ue("自定义播放菜单 "),ae(g("small",null,"( "+ye(i.value.length)+" )",513),[[fn,i.value.length]])]),g("div",Sx,[(Q(!0),re(Ve,null,Tt(i.value,(y,x)=>(Q(),Ft(td,{key:x,item:y,index:x,onDelete:k=>u(y,x)},null,8,["item","index","onDelete"]))),128))]),g("div",kx,[g("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:s,disabled:!i.value.length}," 保存自定义播放菜单 ",8,Ax),ue("      "),g("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:c}," 添加自定义播放菜单 ")])]))}}),yE="",Px={class:"ce-about"},Ix=g("p",null,"115不大助手(以下简称「脚本」),是一个仅用于学习编程的小脚本。",-1),Tx=g("br",null,null,-1),Mx=g("p",null,"脚本不会收集您的任何个人信息。",-1),Bx=g("p",null,"脚本仅借助了官方已有的功能,无任何破解行为。",-1),Lx=g("br",null,null,-1),Nx=g("p",null,"请勿利用脚本进行任何盈利行为。",-1),Dx=g("hr",null,null,-1),Rx=["href"],jx=He({__name:"About",setup(e){const t={name:"115不大助手",version:"0.5.8",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)=>(Q(),re("div",Px,[Ix,Tx,Mx,Bx,Lx,Nx,Dx,g("div",null,[g("a",{href:Te(t).greasyforkUrl,class:"text-bold text-primary",target:"_blank",rel:"noreferrer noopener",title:"到Greasyfork查看"},[ue(ye(Te(t).name)+" ",1),g("small",null,"v"+ye(Te(t).version),1)],8,Rx),ue("  "),g("small",null,"by "+ye(Te(t).author.name),1)])]))}});var nr=(e=>(e.openConfig="openConfig",e))(nr||{});const Fx={class:"ce-config-main"},Hx={class:"ce-config-main-header"},Ux=g("h1",null,"设置",-1),zx={class:"ce-intro"},qx=["href"],Vx={class:"ce-config-main-body"},Wx=He({__name:"Config",setup(e){const t={name:"115不大助手",version:"0.5.8",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=$e(!1),o=$e(!1);an(async()=>{window.addEventListener("message",u=>{const{event:p}=u.data;p===nr.openConfig&&(n.value||(n.value=!0),i())},!1)});async function i(){o.value=!0}async function s(){o.value=!1}async function r(...u){console.log("[tabClicked]",u)}async function c(...u){console.log("[tabChanged]",u)}return(u,p)=>(Q(),Ft(Wc,null,{default:qe(()=>[g("div",Fx,[be(U1,{"is-open":o.value,onClose:s,"max-width":"980px",speed:500},{default:qe(()=>[g("div",Hx,[Ux,g("span",zx,[g("a",{href:Te(t).greasyforkUrl,class:"text-bold text-primary",target:"_blank",rel:"noreferrer noopener",title:"到Greasyfork查看"},[ue(ye(Te(t).name)+" ",1),g("small",null,"v"+ye(Te(t).version),1)],8,qx),ue("  "),g("small",null,"by "+ye(Te(t).author.name),1)]),g("div",{class:"ce-config-main-close",onClick:s},"关闭")]),g("div",Vx,[be(Te(k_),{options:{useUrlFragment:!1},onClicked:r,onChanged:c},{default:qe(()=>[be(Te(mo),{name:"基础设置"},{default:qe(()=>[be(N_)]),_:1}),be(Te(mo),{name:"CloudDrive"},{default:qe(()=>[be(F1)]),_:1}),be(Te(mo),{name:"菜单设置"},{default:qe(()=>[be(E1)]),_:1}),be(Te(mo),{name:"搜索菜单"},{default:qe(()=>[be(wx)]),_:1}),be(Te(mo),{name:"播放菜单"},{default:qe(()=>[be(Ox)]),_:1}),be(Te(mo),{name:"离线任务增强"},{default:qe(()=>[be(Zu)]),_:1}),be(Te(mo),{name:"关于"},{default:qe(()=>[be(jx)]),_:1})]),_:1})])]),_:1},8,["is-open"])])]),_:1}))}}),bE="";async function Kx(){const{host:e,search:t}=location;!e.includes("115.com")||(console.log("[Cloud115 Enhancer - main] running..."),Gx(),Jx())}async function Gx(){console.log("[Cloud115 Enhancer - main] injectUI");const e="cloud115ConfigMain",t=document.createElement("div");t.id=e,document.body.appendChild(t),Mo(Wx).mount(`#${e}`),Za("设置",async()=>{window.postMessage({event:nr.openConfig})})}async function Jx(){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",Yx),n.title="打开「115不大助手」设置",n.innerHTML='<i class="isn-setting"></i><span>不大助手</span>',t.appendChild(n),e.insertBefore(t,e.firstChild)}async function Yx(){window.postMessage({event:nr.openConfig})}location.host==="115.com"&&(window.COMMONHEADERUSERINFO=window.COMMONHEADERUSERINFO||{}),(async()=>(console.log("Cloud115 Enhancer launched!"),Hy(),Vv(),v_(),C_(),Kx()))()})();