// ==UserScript==
// @name 115不大助手 (full)
// @namespace com.cloud115.enhancer
// @version 0.5.23
// @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_registerMenuCommand
// @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-hr{border:0;height:1px;background-image:linear-gradient(to right,rgba(0,0,0,0),#ccc,rgba(0,0,0,0))}.ce-config input[type=checkbox]{width:18px;height:18px;cursor:pointer}.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}.swal2-input#swalDeleteFile{width:20px;padding:0;height:20px;margin:0;vertical-align:sub;cursor:pointer}.cloud115-page-offline.ce-list-m .list-contents .file-name-wrap .desc-tips{left:75px}.cloud115-page-offline.ce-list-m li.ce-task-trouble .info-hash{left:200px!important}.cloud115-page-offline li .ce-buttons{float:left;margin-right:6px}.cloud115-page-offline .ce-checkbox{width:30px}.cloud115-page-offline .ce-checkbox input{display:block!important;width:20px;height:20px;cursor:pointer}.cloud115-page-offline #js-warp .info-hash{position:absolute;left:47px;top:25px;color:#ababab;cursor:pointer}.cloud115-page-offline #js-warp .info-hash.hover{color:#6ab2ff}.cloud115-page-offline #js-warp li.ce-selected:before{background:#ffe296!important}.cloud115-page-offline #js-warp li.ce-show-checkbox .info-hash{left: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-basic-config .avatar-preview{display:inline-block;vertical-align:middle;margin-left:10px}.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-clouddrive-config .cd-tips a{text-decoration:underline}.ce-clouddrive-config .cd-code{font-size:110%;cursor:pointer;user-select:none}.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;box-shadow:0 0 5px #eee;border:1px solid #eee;margin-bottom:20px;padding:0 10px;background:#fff}.ce-custom-url label{cursor:pointer}.ce-custom-url input:not([type]){font-size:12px}.ce-custom-url textarea{font-size:12px;resize:vertical}.ce-custom-url input[type=checkbox]{width:18px;height:18px;cursor:pointer}.ce-custom-url .ce-custom-url-index{font-size:14px;font-weight:700;margin-right:20px}.ce-custom-url legend .button-error{float:right}.ce-custom-url fieldset>div{margin-bottom:1px;padding:4px}.ce-custom-url fieldset>div:hover{background:#fefcea}.ce-custom-urls,.ce-play-urls{padding-bottom:100px}.ce-play-urls .extra-memo{font-size:12px;margin-left:10px}.ce-play-urls .extra-memo a{text-decoration:underline;color:#337ab7}.ce-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 Ik=Object.defineProperty;var Tk=(vo,yn,_o)=>yn in vo?Ik(vo,yn,{enumerable:!0,configurable:!0,writable:!0,value:_o}):vo[yn]=_o;var $e=(vo,yn,_o)=>(Tk(vo,typeof yn!="symbol"?yn+"":yn,_o),_o);(function(){"use strict";const vo="",yn="",_o="",Mk="",Bk="",Lk="",Nk="",rp=typeof btoa=="function",fr=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const cl=typeof TextEncoder=="function"?new TextEncoder:void 0,ap="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Vo=Array.prototype.slice.call(ap);(e=>{let t={};return e.forEach((n,o)=>t[n]=o),t})(Vo);const Ht=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const lp=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),ul=rp?e=>btoa(e):fr?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,o,i,s="";const r=e.length%3;for(let c=0;c<e.length;){if((n=e.charCodeAt(c++))>255||(o=e.charCodeAt(c++))>255||(i=e.charCodeAt(c++))>255)throw new TypeError("invalid character found");t=n<<16|o<<8|i,s+=Vo[t>>18&63]+Vo[t>>12&63]+Vo[t>>6&63]+Vo[t&63]}return r?s.slice(0,r-3)+"===".substring(r):s},cp=fr?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let o=0,i=e.length;o<i;o+=4096)n.push(Ht.apply(null,e.subarray(o,o+4096)));return ul(n.join(""))},up=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Ht(192|t>>>6)+Ht(128|t&63):Ht(224|t>>>12&15)+Ht(128|t>>>6&63)+Ht(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Ht(240|t>>>18&7)+Ht(128|t>>>12&63)+Ht(128|t>>>6&63)+Ht(128|t&63)}},dp=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,fp=e=>e.replace(dp,up),dl=fr?e=>Buffer.from(e,"utf8").toString("base64"):cl?e=>cp(cl.encode(e)):e=>ul(fp(e)),fl=(e,t=!1)=>t?lp(dl(e)):dl(e);var xo=window,pr=(()=>xo.GM_setValue)(),pp=(()=>xo.GM_deleteValue)(),hp=(()=>xo.GM_openInTab)(),pl=(()=>xo.GM_registerMenuCommand)(),Fi=(()=>xo.GM_setClipboard)(),ji=(()=>xo.GM_getValue)(),vn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},hl={exports:{}};/*!
* sweetalert2 v11.7.2
* Released under the MIT License.
*/(function(e,t){(function(n,o){e.exports=o()})(vn,function(){var n={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const o="swal2-",i=a=>{const l={};for(const g in a)l[a[g]]=o+a[g];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 g=0;g<a.length;g++)l.indexOf(a[g])===-1&&l.push(a[g]);return l},f=a=>a.charAt(0).toUpperCase()+a.slice(1),d=a=>{console.warn(`${c} ${typeof a=="object"?a.join(" "):a}`)},h=a=>{console.error(`${c} ${a}`)},b=[],k=a=>{b.includes(a)||(b.push(a),d(a))},A=(a,l)=>{k(`"${a}" is deprecated and will be removed in the next major release. Please use "${l}" instead.`)},S=a=>typeof a=="function"?a():a,W=a=>a&&typeof a.toPromise=="function",z=a=>W(a)?a.toPromise():Promise.resolve(a),I=a=>a&&Promise.resolve(a)===a,L=()=>document.body.querySelector(`.${s.container}`),X=a=>{const l=L();return l?l.querySelector(a):null},ee=a=>X(`.${a}`),te=()=>ee(s.popup),Be=()=>ee(s.icon),ke=()=>ee(s["icon-content"]),Ee=()=>ee(s.title),Pe=()=>ee(s["html-container"]),de=()=>ee(s.image),oe=()=>ee(s["progress-steps"]),Ce=()=>ee(s["validation-message"]),se=()=>X(`.${s.actions} .${s.confirm}`),Fe=()=>X(`.${s.actions} .${s.cancel}`),B=()=>X(`.${s.actions} .${s.deny}`),K=()=>ee(s["input-label"]),N=()=>X(`.${s.loader}`),ue=()=>ee(s.actions),ve=()=>ee(s.footer),Oe=()=>ee(s["timer-progress-bar"]),Je=()=>ee(s.close),Ye=`
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
`,Ot=()=>{const a=Array.from(te().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((g,v)=>{const M=parseInt(g.getAttribute("tabindex")),pe=parseInt(v.getAttribute("tabindex"));return M>pe?1:M<pe?-1:0}),l=Array.from(te().querySelectorAll(Ye)).filter(g=>g.getAttribute("tabindex")!=="-1");return u(a.concat(l)).filter(g=>D(g))},Pt=()=>Qe(document.body,s.shown)&&!Qe(document.body,s["toast-shown"])&&!Qe(document.body,s["no-backdrop"]),bn=()=>te()&&Qe(te(),s.toast),yt=()=>te().hasAttribute("data-loading"),vt={previousBodyPadding:null},lt=(a,l)=>{if(a.textContent="",l){const v=new DOMParser().parseFromString(l,"text/html");Array.from(v.querySelector("head").childNodes).forEach(M=>{a.appendChild(M)}),Array.from(v.querySelector("body").childNodes).forEach(M=>{M instanceof HTMLVideoElement||M instanceof HTMLAudioElement?a.appendChild(M.cloneNode(!0)):a.appendChild(M)})}},Qe=(a,l)=>{if(!l)return!1;const g=l.split(/\s+/);for(let v=0;v<g.length;v++)if(!a.classList.contains(g[v]))return!1;return!0},zn=(a,l)=>{Array.from(a.classList).forEach(g=>{!Object.values(s).includes(g)&&!Object.values(r).includes(g)&&!Object.values(l.showClass).includes(g)&&a.classList.remove(g)})},at=(a,l,g)=>{if(zn(a,l),l.customClass&&l.customClass[g]){if(typeof l.customClass[g]!="string"&&!l.customClass[g].forEach){d(`Invalid type of customClass.${g}! Expected string or iterable object, got "${typeof l.customClass[g]}"`);return}P(a,l.customClass[g])}},y=(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}`)}},E=a=>{if(a.focus(),a.type!=="file"){const l=a.value;a.value="",a.value=l}},T=(a,l,g)=>{!a||!l||(typeof l=="string"&&(l=l.split(/\s+/).filter(Boolean)),l.forEach(v=>{Array.isArray(a)?a.forEach(M=>{g?M.classList.add(v):M.classList.remove(v)}):g?a.classList.add(v):a.classList.remove(v)}))},P=(a,l)=>{T(a,l,!0)},F=(a,l)=>{T(a,l,!1)},J=(a,l)=>{const g=Array.from(a.children);for(let v=0;v<g.length;v++){const M=g[v];if(M instanceof HTMLElement&&Qe(M,l))return M}},Z=(a,l,g)=>{g===`${parseInt(g)}`&&(g=parseInt(g)),g||parseInt(g)===0?a.style[l]=typeof g=="number"?`${g}px`:g:a.style.removeProperty(l)},H=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,g,v)=>{const M=a.querySelector(l);M&&(M.style[g]=v)},re=function(a,l){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";l?H(a,g):V(a)},D=a=>!!(a&&(a.offsetWidth||a.offsetHeight||a.getClientRects().length)),ae=()=>!D(se())&&!D(B())&&!D(Fe()),p=a=>a.scrollHeight>a.clientHeight,w=a=>{const l=window.getComputedStyle(a),g=parseFloat(l.getPropertyValue("animation-duration")||"0"),v=parseFloat(l.getPropertyValue("transition-duration")||"0");return g>0||v>0},_=function(a){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const g=Oe();D(g)&&(l&&(g.style.transition="none",g.style.width="100%"),setTimeout(()=>{g.style.transition=`width ${a/1e3}s linear`,g.style.width="0%"},10))},x=()=>{const a=Oe(),l=parseInt(window.getComputedStyle(a).width);a.style.removeProperty("transition"),a.style.width="100%";const g=parseInt(window.getComputedStyle(a).width),v=l/g*100;a.style.width=`${v}%`},O=100,C={},R=()=>{C.previousActiveElement instanceof HTMLElement?(C.previousActiveElement.focus(),C.previousActiveElement=null):document.body&&document.body.focus()},j=a=>new Promise(l=>{if(!a)return l();const g=window.scrollX,v=window.scrollY;C.restoreFocusTimeout=setTimeout(()=>{R(),l()},O),window.scrollTo(g,v)}),G=()=>typeof window>"u"||typeof document>"u",ge=`
<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=L();return a?(a.remove(),F([document.documentElement,document.body],[s["no-backdrop"],s["toast-shown"],s["has-column"]]),!0):!1},ce=()=>{C.currentInstance.resetValidationMessage()},Le=()=>{const a=te(),l=J(a,s.input),g=J(a,s.file),v=a.querySelector(`.${s.range} input`),M=a.querySelector(`.${s.range} output`),pe=J(a,s.select),qe=a.querySelector(`.${s.checkbox} input`),It=J(a,s.textarea);l.oninput=ce,g.onchange=ce,pe.onchange=ce,qe.onchange=ce,It.oninput=ce,v.oninput=()=>{ce(),M.value=v.value},v.onchange=()=>{ce(),M.value=v.value}},_t=a=>typeof a=="string"?document.querySelector(a):a,pt=a=>{const l=te();l.setAttribute("role",a.toast?"alert":"dialog"),l.setAttribute("aria-live",a.toast?"polite":"assertive"),a.toast||l.setAttribute("aria-modal","true")},Mi=a=>{window.getComputedStyle(a).direction==="rtl"&&P(L(),s.rtl)},Bi=a=>{const l=he();if(G()){h("SweetAlert2 requires document to initialize");return}const g=document.createElement("div");g.className=s.container,l&&P(g,s["no-transition"]),lt(g,ge);const v=_t(a.target);v.appendChild(g),pt(a),Mi(v),Le()},Za=(a,l)=>{a instanceof HTMLElement?l.appendChild(a):typeof a=="object"?l2(a,l):a&<(l,a)},l2=(a,l)=>{a.jquery?c2(l,a):lt(l,a.toString())},c2=(a,l)=>{if(a.textContent="",0 in l)for(let g=0;g in l;g++)a.appendChild(l[g].cloneNode(!0));else a.appendChild(l.cloneNode(!0))},Li=(()=>{if(G())return!1;const a=document.createElement("div"),l={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const g in l)if(Object.prototype.hasOwnProperty.call(l,g)&&typeof a.style[g]<"u")return l[g];return!1})(),u2=()=>{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},d2=(a,l)=>{const g=ue(),v=N();!l.showConfirmButton&&!l.showDenyButton&&!l.showCancelButton?V(g):H(g),at(g,l,"actions"),f2(g,v,l),lt(v,l.loaderHtml),at(v,l,"loader")};function f2(a,l,g){const v=se(),M=B(),pe=Fe();Qa(v,"confirm",g),Qa(M,"deny",g),Qa(pe,"cancel",g),p2(v,M,pe,g),g.reverseButtons&&(g.toast?(a.insertBefore(pe,v),a.insertBefore(M,v)):(a.insertBefore(pe,l),a.insertBefore(M,l),a.insertBefore(v,l)))}function p2(a,l,g,v){if(!v.buttonsStyling){F([a,l,g],s.styled);return}P([a,l,g],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&&(g.style.backgroundColor=v.cancelButtonColor,P(g,s["default-outline"]))}function Qa(a,l,g){re(a,g[`show${f(l)}Button`],"inline-block"),lt(a,g[`${l}ButtonText`]),a.setAttribute("aria-label",g[`${l}ButtonAriaLabel`]),a.className=s[l],at(a,g,`${l}Button`),P(a,g[`${l}ButtonClass`])}const h2=(a,l)=>{const g=Je();lt(g,l.closeButtonHtml),at(g,l,"closeButton"),re(g,l.showCloseButton),g.setAttribute("aria-label",l.closeButtonAriaLabel)},m2=(a,l)=>{const g=L();!g||(g2(g,l.backdrop),w2(g,l.position),b2(g,l.grow),at(g,l,"container"))};function g2(a,l){typeof l=="string"?a.style.background=l:l||P([document.documentElement,document.body],s["no-backdrop"])}function w2(a,l){l in s?P(a,s[l]):(d('The "position" parameter is not valid, defaulting to "center"'),P(a,s.center))}function b2(a,l){if(l&&typeof l=="string"){const g=`grow-${l}`;g in s&&P(a,s[g])}}const y2=["input","file","range","select","radio","checkbox","textarea"],v2=(a,l)=>{const g=te(),v=n.innerParams.get(a),M=!v||l.input!==v.input;y2.forEach(pe=>{const qe=J(g,s[pe]);C2(pe,l.inputAttributes),qe.className=s[pe],M&&V(qe)}),l.input&&(M&&_2(l),$2(l))},_2=a=>{if(!St[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=Pf(a.input),g=St[a.input](l,a);H(l),a.inputAutoFocus&&setTimeout(()=>{E(g)})},x2=a=>{for(let l=0;l<a.attributes.length;l++){const g=a.attributes[l].name;["type","value","style"].includes(g)||a.removeAttribute(g)}},C2=(a,l)=>{const g=y(te(),a);if(!!g){x2(g);for(const v in l)g.setAttribute(v,l[v])}},$2=a=>{const l=Pf(a.input);typeof a.customClass=="object"&&P(l,a.customClass.input)},el=(a,l)=>{(!a.placeholder||l.inputPlaceholder)&&(a.placeholder=l.inputPlaceholder)},Ni=(a,l,g)=>{if(g.inputLabel){a.id=s.input;const v=document.createElement("label"),M=s["input-label"];v.setAttribute("for",a.id),v.className=M,typeof g.customClass=="object"&&P(v,g.customClass.inputLabel),v.innerText=g.inputLabel,l.insertAdjacentElement("beforebegin",v)}},Pf=a=>J(te(),s[a]||s.input),lr=(a,l)=>{["string","number"].includes(typeof l)?a.value=`${l}`:I(l)||d(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof l}"`)},St={};St.text=St.email=St.password=St.number=St.tel=St.url=(a,l)=>(lr(a,l.inputValue),Ni(a,a,l),el(a,l),a.type=l.input,a),St.file=(a,l)=>(Ni(a,a,l),el(a,l),a),St.range=(a,l)=>{const g=a.querySelector("input"),v=a.querySelector("output");return lr(g,l.inputValue),g.type=l.input,lr(v,l.inputValue),Ni(g,a,l),a},St.select=(a,l)=>{if(a.textContent="",l.inputPlaceholder){const g=document.createElement("option");lt(g,l.inputPlaceholder),g.value="",g.disabled=!0,g.selected=!0,a.appendChild(g)}return Ni(a,a,l),a},St.radio=a=>(a.textContent="",a),St.checkbox=(a,l)=>{const g=y(te(),"checkbox");g.value="1",g.id=s.checkbox,g.checked=Boolean(l.inputValue);const v=a.querySelector("span");return lt(v,l.inputPlaceholder),g},St.textarea=(a,l)=>{lr(a,l.inputValue),el(a,l),Ni(a,a,l);const g=v=>parseInt(window.getComputedStyle(v).marginLeft)+parseInt(window.getComputedStyle(v).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const v=parseInt(window.getComputedStyle(te()).width),M=()=>{const pe=a.offsetWidth+g(a);pe>v?te().style.width=`${pe}px`:te().style.width=null};new MutationObserver(M).observe(a,{attributes:!0,attributeFilter:["style"]})}}),a};const k2=(a,l)=>{const g=Pe();at(g,l,"htmlContainer"),l.html?(Za(l.html,g),H(g,"block")):l.text?(g.textContent=l.text,H(g,"block")):V(g),v2(a,l)},E2=(a,l)=>{const g=ve();re(g,l.footer),l.footer&&Za(l.footer,g),at(g,l,"footer")},A2=(a,l)=>{const g=n.innerParams.get(a),v=Be();if(g&&l.icon===g.icon){Tf(v,l),If(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}H(v),Tf(v,l),If(v,l),P(v,l.showClass.icon)},If=(a,l)=>{for(const g in r)l.icon!==g&&F(a,r[g]);P(a,r[l.icon]),I2(a,l),S2(),at(a,l,"icon")},S2=()=>{const a=te(),l=window.getComputedStyle(a).getPropertyValue("background-color"),g=a.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let v=0;v<g.length;v++)g[v].style.backgroundColor=l},O2=`
<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>
`,P2=`
<span class="swal2-x-mark">
<span class="swal2-x-mark-line-left"></span>
<span class="swal2-x-mark-line-right"></span>
</span>
`,Tf=(a,l)=>{let g=a.innerHTML,v;l.iconHtml?v=Mf(l.iconHtml):l.icon==="success"?(v=O2,g=g.replace(/ style=".*?"/g,"")):l.icon==="error"?v=P2:v=Mf({question:"?",warning:"!",info:"i"}[l.icon]),g.trim()!==v.trim()&<(a,v)},I2=(a,l)=>{if(!!l.iconColor){a.style.color=l.iconColor,a.style.borderColor=l.iconColor;for(const g of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])q(a,g,"backgroundColor",l.iconColor);q(a,".swal2-success-ring","borderColor",l.iconColor)}},Mf=a=>`<div class="${s["icon-content"]}">${a}</div>`,T2=(a,l)=>{const g=de();if(!l.imageUrl){V(g);return}H(g,""),g.setAttribute("src",l.imageUrl),g.setAttribute("alt",l.imageAlt),Z(g,"width",l.imageWidth),Z(g,"height",l.imageHeight),g.className=s.image,at(g,l,"image")},M2=(a,l)=>{const g=L(),v=te();l.toast?(Z(g,"width",l.width),v.style.width="100%",v.insertBefore(N(),Be())):Z(v,"width",l.width),Z(v,"padding",l.padding),l.color&&(v.style.color=l.color),l.background&&(v.style.background=l.background),V(Ce()),B2(v,l)},B2=(a,l)=>{a.className=`${s.popup} ${D(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}`])},L2=(a,l)=>{const g=oe();if(!l.progressSteps||l.progressSteps.length===0){V(g);return}H(g),g.textContent="",l.currentProgressStep>=l.progressSteps.length&&d("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),l.progressSteps.forEach((v,M)=>{const pe=N2(v);if(g.appendChild(pe),M===l.currentProgressStep&&P(pe,s["active-progress-step"]),M!==l.progressSteps.length-1){const qe=D2(l);g.appendChild(qe)}})},N2=a=>{const l=document.createElement("li");return P(l,s["progress-step"]),lt(l,a),l},D2=a=>{const l=document.createElement("li");return P(l,s["progress-step-line"]),a.progressStepsDistance&&Z(l,"width",a.progressStepsDistance),l},R2=(a,l)=>{const g=Ee();re(g,l.title||l.titleText,"block"),l.title&&Za(l.title,g),l.titleText&&(g.innerText=l.titleText),at(g,l,"title")},Bf=(a,l)=>{M2(a,l),m2(a,l),L2(a,l),A2(a,l),T2(a,l),R2(a,l),h2(a,l),k2(a,l),d2(a,l),E2(a,l),typeof l.didRender=="function"&&l.didRender(te())};function Lf(){const a=n.innerParams.get(this);if(!a)return;const l=n.domCache.get(this);V(l.loader),bn()?a.icon&&H(Be()):F2(l),F([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 F2=a=>{const l=a.popup.getElementsByClassName(a.loader.getAttribute("data-button-to-replace"));l.length?H(l[0],"inline-block"):ae()&&V(a.actions)};function j2(a){const l=n.innerParams.get(a||this),g=n.domCache.get(a||this);return g?y(g.popup,l.input):null}const U2=()=>D(te()),Nf=()=>se()&&se().click(),H2=()=>B()&&B().click(),z2=()=>Fe()&&Fe().click(),jo=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Df=a=>{a.keydownTarget&&a.keydownHandlerAdded&&(a.keydownTarget.removeEventListener("keydown",a.keydownHandler,{capture:a.keydownListenerCapture}),a.keydownHandlerAdded=!1)},q2=(a,l,g,v)=>{Df(l),g.toast||(l.keydownHandler=M=>W2(a,M,v),l.keydownTarget=g.keydownListenerCapture?window:te(),l.keydownListenerCapture=g.keydownListenerCapture,l.keydownTarget.addEventListener("keydown",l.keydownHandler,{capture:l.keydownListenerCapture}),l.keydownHandlerAdded=!0)},tl=(a,l)=>{const g=Ot();if(g.length){a=a+l,a===g.length?a=0:a===-1&&(a=g.length-1),g[a].focus();return}te().focus()},Rf=["ArrowRight","ArrowDown"],V2=["ArrowLeft","ArrowUp"],W2=(a,l,g)=>{const v=n.innerParams.get(a);!v||l.isComposing||l.keyCode===229||(v.stopKeydownPropagation&&l.stopPropagation(),l.key==="Enter"?K2(a,l,v):l.key==="Tab"?G2(l):[...Rf,...V2].includes(l.key)?J2(l.key):l.key==="Escape"&&Y2(l,v,g))},K2=(a,l,g)=>{if(!!S(g.allowEnterKey)&&l.target&&a.getInput()&&l.target instanceof HTMLElement&&l.target.outerHTML===a.getInput().outerHTML){if(["textarea","file"].includes(g.input))return;Nf(),l.preventDefault()}},G2=a=>{const l=a.target,g=Ot();let v=-1;for(let M=0;M<g.length;M++)if(l===g[M]){v=M;break}a.shiftKey?tl(v,-1):tl(v,1),a.stopPropagation(),a.preventDefault()},J2=a=>{const l=se(),g=B(),v=Fe(),M=[l,g,v];if(document.activeElement instanceof HTMLElement&&!M.includes(document.activeElement))return;const pe=Rf.includes(a)?"nextElementSibling":"previousElementSibling";let qe=document.activeElement;for(let It=0;It<ue().children.length;It++){if(qe=qe[pe],!qe)return;if(qe instanceof HTMLButtonElement&&D(qe))break}qe instanceof HTMLButtonElement&&qe.focus()},Y2=(a,l,g)=>{S(l.allowEscapeKey)&&(a.preventDefault(),g(jo.esc))};var Di={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const X2=()=>{Array.from(document.body.children).forEach(l=>{l===L()||l.contains(L())||(l.hasAttribute("aria-hidden")&&l.setAttribute("data-previous-aria-hidden",l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))})},Ff=()=>{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")})},Z2=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Qe(document.body,s.iosfix)){const l=document.body.scrollTop;document.body.style.top=`${l*-1}px`,P(document.body,s.iosfix),e$(),Q2()}},Q2=()=>{const a=navigator.userAgent,l=!!a.match(/iPad/i)||!!a.match(/iPhone/i),g=!!a.match(/WebKit/i);l&&g&&!a.match(/CriOS/i)&&te().scrollHeight>window.innerHeight-44&&(L().style.paddingBottom=`${44}px`)},e$=()=>{const a=L();let l;a.ontouchstart=g=>{l=t$(g)},a.ontouchmove=g=>{l&&(g.preventDefault(),g.stopPropagation())}},t$=a=>{const l=a.target,g=L();return n$(a)||o$(a)?!1:l===g||!p(g)&&l instanceof HTMLElement&&l.tagName!=="INPUT"&&l.tagName!=="TEXTAREA"&&!(p(Pe())&&Pe().contains(l))},n$=a=>a.touches&&a.touches.length&&a.touches[0].touchType==="stylus",o$=a=>a.touches&&a.touches.length>1,i$=()=>{if(Qe(document.body,s.iosfix)){const a=parseInt(document.body.style.top,10);F(document.body,s.iosfix),document.body.style.top="",document.body.scrollTop=a*-1}},s$=()=>{vt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(vt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${vt.previousBodyPadding+u2()}px`)},r$=()=>{vt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${vt.previousBodyPadding}px`,vt.previousBodyPadding=null)};function jf(a,l,g,v){bn()?Uf(a,v):(j(g).then(()=>Uf(a,v)),Df(C)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(l.setAttribute("style","display:none !important"),l.removeAttribute("class"),l.innerHTML=""):l.remove(),Pt()&&(r$(),i$(),Ff()),a$()}function a$(){F([document.documentElement,document.body],[s.shown,s["height-auto"],s["no-backdrop"],s["toast-shown"]])}function cr(a){a=d$(a);const l=Di.swalPromiseResolve.get(this),g=c$(this);this.isAwaitingPromise()?a.isDismissed||(Ri(this),l(a)):g&&l(a)}function l$(){return!!n.awaitingPromise.get(this)}const c$=a=>{const l=te();if(!l)return!1;const g=n.innerParams.get(a);if(!g||Qe(l,g.hideClass.popup))return!1;F(l,g.showClass.popup),P(l,g.hideClass.popup);const v=L();return F(v,g.showClass.backdrop),P(v,g.hideClass.backdrop),f$(a,l,g),!0};function u$(a){const l=Di.swalPromiseReject.get(this);Ri(this),l&&l(a)}const Ri=a=>{a.isAwaitingPromise()&&(n.awaitingPromise.delete(a),n.innerParams.get(a)||a._destroy())},d$=a=>typeof a>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},a),f$=(a,l,g)=>{const v=L(),M=Li&&w(l);typeof g.willClose=="function"&&g.willClose(l),M?p$(a,l,v,g.returnFocus,g.didClose):jf(a,v,g.returnFocus,g.didClose)},p$=(a,l,g,v,M)=>{C.swalCloseEventFinishedCallback=jf.bind(null,a,g,v,M),l.addEventListener(Li,function(pe){pe.target===l&&(C.swalCloseEventFinishedCallback(),delete C.swalCloseEventFinishedCallback)})},Uf=(a,l)=>{setTimeout(()=>{typeof l=="function"&&l.bind(a.params)(),a._destroy()})};function Hf(a,l,g){const v=n.domCache.get(a);l.forEach(M=>{v[M].disabled=g})}function zf(a,l){if(!!a)if(a.type==="radio"){const v=a.parentNode.parentNode.querySelectorAll("input");for(let M=0;M<v.length;M++)v[M].disabled=l}else a.disabled=l}function h$(){Hf(this,["confirmButton","denyButton","cancelButton"],!1)}function m$(){Hf(this,["confirmButton","denyButton","cancelButton"],!0)}function g$(){zf(this.getInput(),!1)}function w$(){zf(this.getInput(),!0)}function b$(a){const l=n.domCache.get(this),g=n.innerParams.get(this);lt(l.validationMessage,a),l.validationMessage.className=s["validation-message"],g.customClass&&g.customClass.validationMessage&&P(l.validationMessage,g.customClass.validationMessage),H(l.validationMessage);const v=this.getInput();v&&(v.setAttribute("aria-invalid",!0),v.setAttribute("aria-describedby",s["validation-message"]),E(v),P(v,s.inputerror))}function y$(){const a=n.domCache.get(this);a.validationMessage&&V(a.validationMessage);const l=this.getInput();l&&(l.removeAttribute("aria-invalid"),l.removeAttribute("aria-describedby"),F(l,s.inputerror))}const Uo={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},v$=["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"],_$={},x$=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],qf=a=>Object.prototype.hasOwnProperty.call(Uo,a),Vf=a=>v$.indexOf(a)!==-1,nl=a=>_$[a],C$=a=>{qf(a)||d(`Unknown parameter "${a}"`)},$$=a=>{x$.includes(a)&&d(`The parameter "${a}" is incompatible with toasts`)},k$=a=>{nl(a)&&A(a,nl(a))},E$=a=>{a.backdrop===!1&&a.allowOutsideClick&&d('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const l in a)C$(l),a.toast&&$$(l),k$(l)};function A$(a){const l=te(),g=n.innerParams.get(this);if(!l||Qe(l,g.hideClass.popup)){d("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=S$(a),M=Object.assign({},g,v);Bf(this,M),n.innerParams.set(this,M),Object.defineProperties(this,{params:{value:Object.assign({},this.params,a),writable:!1,enumerable:!0}})}const S$=a=>{const l={};return Object.keys(a).forEach(g=>{Vf(g)?l[g]=a[g]:d(`Invalid parameter to update: ${g}`)}),l};function O$(){const a=n.domCache.get(this),l=n.innerParams.get(this);if(!l){Wf(this);return}a.popup&&C.swalCloseEventFinishedCallback&&(C.swalCloseEventFinishedCallback(),delete C.swalCloseEventFinishedCallback),typeof l.didDestroy=="function"&&l.didDestroy(),P$(this)}const P$=a=>{Wf(a),delete a.params,delete C.keydownHandler,delete C.keydownTarget,delete C.currentInstance},Wf=a=>{a.isAwaitingPromise()?(ol(n,a),n.awaitingPromise.set(a,!0)):(ol(Di,a),ol(n,a))},ol=(a,l)=>{for(const g in a)a[g].delete(l)};var Kf=Object.freeze({__proto__:null,_destroy:O$,close:cr,closeModal:cr,closePopup:cr,closeToast:cr,disableButtons:m$,disableInput:w$,disableLoading:Lf,enableButtons:h$,enableInput:g$,getInput:j2,handleAwaitingPromise:Ri,hideLoading:Lf,isAwaitingPromise:l$,rejectPromise:u$,resetValidationMessage:y$,showValidationMessage:b$,update:A$});const Ho=a=>{let l=te();l||new dr,l=te();const g=N();bn()?V(Be()):I$(l,a),H(g),l.setAttribute("data-loading","true"),l.setAttribute("aria-busy","true"),l.focus()},I$=(a,l)=>{const g=ue(),v=N();!l&&D(se())&&(l=se()),H(g),l&&(V(l),v.setAttribute("data-button-to-replace",l.className)),v.parentNode.insertBefore(v,l),P([a,g],s.loading)},T$=(a,l)=>{l.input==="select"||l.input==="radio"?D$(a,l):["text","email","number","tel","textarea"].includes(l.input)&&(W(l.inputValue)||I(l.inputValue))&&(Ho(se()),R$(a,l))},M$=(a,l)=>{const g=a.getInput();if(!g)return null;switch(l.input){case"checkbox":return B$(g);case"radio":return L$(g);case"file":return N$(g);default:return l.inputAutoTrim?g.value.trim():g.value}},B$=a=>a.checked?1:0,L$=a=>a.checked?a.value:null,N$=a=>a.files.length?a.getAttribute("multiple")!==null?a.files:a.files[0]:null,D$=(a,l)=>{const g=te(),v=M=>{F$[l.input](g,il(M),l)};W(l.inputOptions)||I(l.inputOptions)?(Ho(se()),z(l.inputOptions).then(M=>{a.hideLoading(),v(M)})):typeof l.inputOptions=="object"?v(l.inputOptions):h(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof l.inputOptions}`)},R$=(a,l)=>{const g=a.getInput();V(g),z(l.inputValue).then(v=>{g.value=l.input==="number"?`${parseFloat(v)||0}`:`${v}`,H(g),g.focus(),a.hideLoading()}).catch(v=>{h(`Error in inputValue promise: ${v}`),g.value="",H(g),g.focus(),a.hideLoading()})},F$={select:(a,l,g)=>{const v=J(a,s.select),M=(pe,qe,It)=>{const xt=document.createElement("option");xt.value=It,lt(xt,qe),xt.selected=Gf(It,g.inputValue),pe.appendChild(xt)};l.forEach(pe=>{const qe=pe[0],It=pe[1];if(Array.isArray(It)){const xt=document.createElement("optgroup");xt.label=qe,xt.disabled=!1,v.appendChild(xt),It.forEach(qo=>M(xt,qo[1],qo[0]))}else M(v,It,qe)}),v.focus()},radio:(a,l,g)=>{const v=J(a,s.radio);l.forEach(pe=>{const qe=pe[0],It=pe[1],xt=document.createElement("input"),qo=document.createElement("label");xt.type="radio",xt.name=s.radio,xt.value=qe,Gf(qe,g.inputValue)&&(xt.checked=!0);const ll=document.createElement("span");lt(ll,It),ll.className=s.label,qo.appendChild(xt),qo.appendChild(ll),v.appendChild(qo)});const M=v.querySelectorAll("input");M.length&&M[0].focus()}},il=a=>{const l=[];return typeof Map<"u"&&a instanceof Map?a.forEach((g,v)=>{let M=g;typeof M=="object"&&(M=il(M)),l.push([v,M])}):Object.keys(a).forEach(g=>{let v=a[g];typeof v=="object"&&(v=il(v)),l.push([g,v])}),l},Gf=(a,l)=>l&&l.toString()===a.toString(),j$=a=>{const l=n.innerParams.get(a);a.disableButtons(),l.input?Jf(a,"confirm"):rl(a,!0)},U$=a=>{const l=n.innerParams.get(a);a.disableButtons(),l.returnInputValueOnDeny?Jf(a,"deny"):sl(a,!1)},H$=(a,l)=>{a.disableButtons(),l(jo.cancel)},Jf=(a,l)=>{const g=n.innerParams.get(a);if(!g.input){h(`The "input" parameter is needed to be set when using returnInputValueOn${f(l)}`);return}const v=M$(a,g);g.inputValidator?z$(a,v,l):a.getInput().checkValidity()?l==="deny"?sl(a,v):rl(a,v):(a.enableButtons(),a.showValidationMessage(g.validationMessage))},z$=(a,l,g)=>{const v=n.innerParams.get(a);a.disableInput(),Promise.resolve().then(()=>z(v.inputValidator(l,v.validationMessage))).then(pe=>{a.enableButtons(),a.enableInput(),pe?a.showValidationMessage(pe):g==="deny"?sl(a,l):rl(a,l)})},sl=(a,l)=>{const g=n.innerParams.get(a||void 0);g.showLoaderOnDeny&&Ho(B()),g.preDeny?(n.awaitingPromise.set(a||void 0,!0),Promise.resolve().then(()=>z(g.preDeny(l,g.validationMessage))).then(M=>{M===!1?(a.hideLoading(),Ri(a)):a.close({isDenied:!0,value:typeof M>"u"?l:M})}).catch(M=>Xf(a||void 0,M))):a.close({isDenied:!0,value:l})},Yf=(a,l)=>{a.close({isConfirmed:!0,value:l})},Xf=(a,l)=>{a.rejectPromise(l)},rl=(a,l)=>{const g=n.innerParams.get(a||void 0);g.showLoaderOnConfirm&&Ho(),g.preConfirm?(a.resetValidationMessage(),n.awaitingPromise.set(a||void 0,!0),Promise.resolve().then(()=>z(g.preConfirm(l,g.validationMessage))).then(M=>{D(Ce())||M===!1?(a.hideLoading(),Ri(a)):Yf(a,typeof M>"u"?l:M)}).catch(M=>Xf(a||void 0,M))):Yf(a,l)},q$=(a,l,g)=>{n.innerParams.get(a).toast?V$(a,l,g):(K$(l),G$(l),J$(a,l,g))},V$=(a,l,g)=>{l.popup.onclick=()=>{const v=n.innerParams.get(a);v&&(W$(v)||v.timer||v.input)||g(jo.close)}},W$=a=>a.showConfirmButton||a.showDenyButton||a.showCancelButton||a.showCloseButton;let ur=!1;const K$=a=>{a.popup.onmousedown=()=>{a.container.onmouseup=function(l){a.container.onmouseup=void 0,l.target===a.container&&(ur=!0)}}},G$=a=>{a.container.onmousedown=()=>{a.popup.onmouseup=function(l){a.popup.onmouseup=void 0,(l.target===a.popup||a.popup.contains(l.target))&&(ur=!0)}}},J$=(a,l,g)=>{l.container.onclick=v=>{const M=n.innerParams.get(a);if(ur){ur=!1;return}v.target===l.container&&S(M.allowOutsideClick)&&g(jo.backdrop)}},Y$=a=>typeof a=="object"&&a.jquery,Zf=a=>a instanceof Element||Y$(a),X$=a=>{const l={};return typeof a[0]=="object"&&!Zf(a[0])?Object.assign(l,a[0]):["title","html","icon"].forEach((g,v)=>{const M=a[v];typeof M=="string"||Zf(M)?l[g]=M:M!==void 0&&h(`Unexpected type of ${g}! Expected "string" or "Element", got ${typeof M}`)}),l};function Z$(){const a=this;for(var l=arguments.length,g=new Array(l),v=0;v<l;v++)g[v]=arguments[v];return new a(...g)}function Q$(a){class l extends this{_main(v,M){return super._main(v,Object.assign({},a,M))}}return l}const ek=()=>C.timeout&&C.timeout.getTimerLeft(),Qf=()=>{if(C.timeout)return x(),C.timeout.stop()},ep=()=>{if(C.timeout){const a=C.timeout.start();return _(a),a}},tk=()=>{const a=C.timeout;return a&&(a.running?Qf():ep())},nk=a=>{if(C.timeout){const l=C.timeout.increase(a);return _(l,!0),l}},ok=()=>C.timeout&&C.timeout.isRunning();let tp=!1;const al={};function ik(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";al[a]=this,tp||(document.body.addEventListener("click",sk),tp=!0)}const sk=a=>{for(let l=a.target;l&&l!==document;l=l.parentNode)for(const g in al){const v=l.getAttribute(g);if(v){al[g].fire({template:v});return}}};var rk=Object.freeze({__proto__:null,argsToParams:X$,bindClickHandler:ik,clickCancel:z2,clickConfirm:Nf,clickDeny:H2,enableLoading:Ho,fire:Z$,getActions:ue,getCancelButton:Fe,getCloseButton:Je,getConfirmButton:se,getContainer:L,getDenyButton:B,getFocusableElements:Ot,getFooter:ve,getHtmlContainer:Pe,getIcon:Be,getIconContent:ke,getImage:de,getInputLabel:K,getLoader:N,getPopup:te,getProgressSteps:oe,getTimerLeft:ek,getTimerProgressBar:Oe,getTitle:Ee,getValidationMessage:Ce,increaseTimer:nk,isDeprecatedParameter:nl,isLoading:yt,isTimerRunning:ok,isUpdatableParameter:Vf,isValidParameter:qf,isVisible:U2,mixin:Q$,resumeTimer:ep,showLoading:Ho,stopTimer:Qf,toggleTimer:tk});class ak{constructor(l,g){this.callback=l,this.remaining=g,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(l){const g=this.running;return g&&this.stop(),this.remaining+=l,g&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const np=["swal-title","swal-html","swal-footer"],lk=a=>{const l=typeof a.template=="string"?document.querySelector(a.template):a.template;if(!l)return{};const g=l.content;return gk(g),Object.assign(ck(g),uk(g),dk(g),fk(g),pk(g),hk(g),mk(g,np))},ck=a=>{const l={};return Array.from(a.querySelectorAll("swal-param")).forEach(v=>{yo(v,["name","value"]);const M=v.getAttribute("name"),pe=v.getAttribute("value");typeof Uo[M]=="boolean"?l[M]=pe!=="false":typeof Uo[M]=="object"?l[M]=JSON.parse(pe):l[M]=pe}),l},uk=a=>{const l={};return Array.from(a.querySelectorAll("swal-function-param")).forEach(v=>{const M=v.getAttribute("name"),pe=v.getAttribute("value");l[M]=new Function(`return ${pe}`)()}),l},dk=a=>{const l={};return Array.from(a.querySelectorAll("swal-button")).forEach(v=>{yo(v,["type","color","aria-label"]);const M=v.getAttribute("type");l[`${M}ButtonText`]=v.innerHTML,l[`show${f(M)}Button`]=!0,v.hasAttribute("color")&&(l[`${M}ButtonColor`]=v.getAttribute("color")),v.hasAttribute("aria-label")&&(l[`${M}ButtonAriaLabel`]=v.getAttribute("aria-label"))}),l},fk=a=>{const l={},g=a.querySelector("swal-image");return g&&(yo(g,["src","width","height","alt"]),g.hasAttribute("src")&&(l.imageUrl=g.getAttribute("src")),g.hasAttribute("width")&&(l.imageWidth=g.getAttribute("width")),g.hasAttribute("height")&&(l.imageHeight=g.getAttribute("height")),g.hasAttribute("alt")&&(l.imageAlt=g.getAttribute("alt"))),l},pk=a=>{const l={},g=a.querySelector("swal-icon");return g&&(yo(g,["type","color"]),g.hasAttribute("type")&&(l.icon=g.getAttribute("type")),g.hasAttribute("color")&&(l.iconColor=g.getAttribute("color")),l.iconHtml=g.innerHTML),l},hk=a=>{const l={},g=a.querySelector("swal-input");g&&(yo(g,["type","label","placeholder","value"]),l.input=g.getAttribute("type")||"text",g.hasAttribute("label")&&(l.inputLabel=g.getAttribute("label")),g.hasAttribute("placeholder")&&(l.inputPlaceholder=g.getAttribute("placeholder")),g.hasAttribute("value")&&(l.inputValue=g.getAttribute("value")));const v=Array.from(a.querySelectorAll("swal-input-option"));return v.length&&(l.inputOptions={},v.forEach(M=>{yo(M,["value"]);const pe=M.getAttribute("value"),qe=M.innerHTML;l.inputOptions[pe]=qe})),l},mk=(a,l)=>{const g={};for(const v in l){const M=l[v],pe=a.querySelector(M);pe&&(yo(pe,[]),g[M.replace(/^swal-/,"")]=pe.innerHTML.trim())}return g},gk=a=>{const l=np.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(a.children).forEach(g=>{const v=g.tagName.toLowerCase();l.includes(v)||d(`Unrecognized element <${v}>`)})},yo=(a,l)=>{Array.from(a.attributes).forEach(g=>{l.indexOf(g.name)===-1&&d([`Unrecognized attribute "${g.name}" on <${a.tagName.toLowerCase()}>.`,`${l.length?`Allowed attributes are: ${l.join(", ")}`:"To set the value, use HTML within the element."}`])})},op=10,wk=a=>{const l=L(),g=te();typeof a.willOpen=="function"&&a.willOpen(g);const M=window.getComputedStyle(document.body).overflowY;vk(l,g,a),setTimeout(()=>{bk(l,g)},op),Pt()&&(yk(l,a.scrollbarPadding,M),X2()),!bn()&&!C.previousActiveElement&&(C.previousActiveElement=document.activeElement),typeof a.didOpen=="function"&&setTimeout(()=>a.didOpen(g)),F(l,s["no-transition"])},ip=a=>{const l=te();if(a.target!==l)return;const g=L();l.removeEventListener(Li,ip),g.style.overflowY="auto"},bk=(a,l)=>{Li&&w(l)?(a.style.overflowY="hidden",l.addEventListener(Li,ip)):a.style.overflowY="auto"},yk=(a,l,g)=>{Z2(),l&&g!=="hidden"&&s$(),setTimeout(()=>{a.scrollTop=0})},vk=(a,l,g)=>{P(a,g.showClass.backdrop),l.style.setProperty("opacity","0","important"),H(l,"grid"),setTimeout(()=>{P(l,g.showClass.popup),l.style.removeProperty("opacity")},op),P([document.documentElement,document.body],s.shown),g.heightAuto&&g.backdrop&&!g.toast&&P([document.documentElement,document.body],s["height-auto"])};var sp={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 _k(a){a.inputValidator||Object.keys(sp).forEach(l=>{a.input===l&&(a.inputValidator=sp[l])})}function xk(a){(!a.target||typeof a.target=="string"&&!document.querySelector(a.target)||typeof a.target!="string"&&!a.target.appendChild)&&(d('Target parameter is not valid, defaulting to "body"'),a.target="body")}function Ck(a){_k(a),a.showLoaderOnConfirm&&!a.preConfirm&&d(`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`),xk(a),typeof a.title=="string"&&(a.title=a.title.split(`
`).join("<br />")),Bi(a)}let en;class zo{constructor(){if(typeof window>"u")return;en=this;for(var l=arguments.length,g=new Array(l),v=0;v<l;v++)g[v]=arguments[v];const M=Object.freeze(this.constructor.argsToParams(g));Object.defineProperties(this,{params:{value:M,writable:!1,enumerable:!0,configurable:!0}});const pe=en._main(en.params);n.promise.set(this,pe)}_main(l){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E$(Object.assign({},g,l)),C.currentInstance&&(C.currentInstance._destroy(),Pt()&&Ff()),C.currentInstance=en;const v=kk(l,g);Ck(v),Object.freeze(v),C.timeout&&(C.timeout.stop(),delete C.timeout),clearTimeout(C.restoreFocusTimeout);const M=Ek(en);return Bf(en,v),n.innerParams.set(en,v),$k(en,M,v)}then(l){return n.promise.get(this).then(l)}finally(l){return n.promise.get(this).finally(l)}}const $k=(a,l,g)=>new Promise((v,M)=>{const pe=qe=>{a.close({isDismissed:!0,dismiss:qe})};Di.swalPromiseResolve.set(a,v),Di.swalPromiseReject.set(a,M),l.confirmButton.onclick=()=>{j$(a)},l.denyButton.onclick=()=>{U$(a)},l.cancelButton.onclick=()=>{H$(a,pe)},l.closeButton.onclick=()=>{pe(jo.close)},q$(a,l,pe),q2(a,C,g,pe),T$(a,g),wk(g),Ak(C,g,pe),Sk(l,g),setTimeout(()=>{l.container.scrollTop=0})}),kk=(a,l)=>{const g=lk(a),v=Object.assign({},Uo,l,g,a);return v.showClass=Object.assign({},Uo.showClass,v.showClass),v.hideClass=Object.assign({},Uo.hideClass,v.hideClass),v},Ek=a=>{const l={popup:te(),container:L(),actions:ue(),confirmButton:se(),denyButton:B(),cancelButton:Fe(),loader:N(),closeButton:Je(),validationMessage:Ce(),progressSteps:oe()};return n.domCache.set(a,l),l},Ak=(a,l,g)=>{const v=Oe();V(v),l.timer&&(a.timeout=new ak(()=>{g("timer"),delete a.timeout},l.timer),l.timerProgressBar&&(H(v),at(v,l,"timerProgressBar"),setTimeout(()=>{a.timeout&&a.timeout.running&&_(l.timer)})))},Sk=(a,l)=>{if(!l.toast){if(!S(l.allowEnterKey)){Pk();return}Ok(a,l)||tl(-1,1)}},Ok=(a,l)=>l.focusDeny&&D(a.denyButton)?(a.denyButton.focus(),!0):l.focusCancel&&D(a.cancelButton)?(a.cancelButton.focus(),!0):l.focusConfirm&&D(a.confirmButton)?(a.confirmButton.focus(),!0):!1,Pk=()=>{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 g=document.createElement("audio");g.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",g.loop=!0,document.body.appendChild(g),setTimeout(()=>{g.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${a}`)}Object.assign(zo.prototype,Kf),Object.assign(zo,rk),Object.keys(Kf).forEach(a=>{zo[a]=function(){if(en)return en[a](...arguments)}}),zo.DismissReason=jo,zo.version="11.7.2";const dr=zo;return dr.default=dr,dr}),typeof vn<"u"&&vn.Sweetalert2&&(vn.swal=vn.sweetAlert=vn.Swal=vn.SweetAlert=vn.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}')})(hl);const we=hl.exports,mp=["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"],gp=["jpg","jpeg","png","gif","bmp","svg"],wp=["mp3","wav","wma","ogg","ape","flac","aac"];function hr(e,...t){return new e(t[0])}function Ui(){return Math.floor(Date.now()/1e3)}function bp(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 Wo(e){if(typeof Fi=="function")return Fi(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 ml(e){return/^magnet:\?xt=urn:btih/.test(e)}function gl(e){return/^ed2k:\/\/\|file\|/.test(e)}function yp(e){return`magnet:?xt=urn:btih:${e.toUpperCase()}`}function vp(e){const t=e.match(/([a-z\d]{32,40})/i);return t?t[1]:""}function _p(e,t=!0){return(t?/^([a-z\d]{32})$|^([a-z\d]{40})$/i:/^[a-z\d]{32,40}$/i).test(e)}function xp(e,t=location.href){const n=new RegExp("(\\?|#|&)"+e+"=([^&#]*)(&|#|$)"),o=t.match(n);return o?o[2]:""}function wl(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 bl(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 yl(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 Ko(e,t=100,n=12e4){const o=e.indexOf("//")===0,i=async()=>{if(o){const s=yl(e);return s.length>0?s:!1}else{const s=document.querySelectorAll(e);return s.length?Array.from(s):!1}};try{return await vl(i,t,n)}catch(s){throw console.warn("[find]",s),new Error(`查找元素超时:${e}`)}}async function _n(e,t=100,n=12e4){const o=e.indexOf("//")===0,i=async()=>{if(o){const s=yl(e);return s.length>0?s:!1}else{const s=unsafeWindow.$(e);return s.length?s:!1}};try{return await vl(i,t,n)}catch(s){throw console.warn("[find]",s),new Error(`查找元素超时:${e}`)}}async function vl(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 zt(e){return new Promise(t=>{setTimeout(t,e)})}function _l(e){const t=new URLSearchParams;let n;for(n in e)t.append(n,e[n].toString());return t.toString()}async function me(e){return we.fire({toast:!0,position:"top",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,didOpen:t=>{t.addEventListener("mouseenter",we.stopTimer),t.addEventListener("mouseleave",we.resumeTimer)},...e})}function Hi(e,t){t=t||window,t.postMessage(e)}function qn(e,t,n){if(n){const o=ji(e,{});pr(e,{...o,...t})}else pr(e,t)}function Vn(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 Cp(e){return e?mp.indexOf(e.toLowerCase())>-1:!1}function $p(e){return e?gp.indexOf(e.toLowerCase())>-1:!1}function kp(e){return e?wp.indexOf(e.toLowerCase())>-1:!1}var Ae=(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))(Ae||{}),Go=(e=>(e.listItemHover="列表项悬浮菜单",e.listItemHoverSub="列表项悬浮子菜单",e.listItemContext="列表项右键菜单",e.listItemContextSub="列表项右键子菜单",e.selection="选中项菜单",e.selectionSub="选中项子菜单",e.dirContext="当前目录右键菜单",e.dirContextSub="当前目录右键子菜单",e))(Go||{}),Wn=(e=>(e[e.after=0]="after",e[e.before=1]="before",e))(Wn||{});const dt={get:async(e,t)=>ji(e,t),set:async(e,t)=>pr(e,t),remove:async e=>pp(e)},xl="clouddrive_configs";function mr(e){return{active:!1,url:"http://localhost:19798",root:"/115",memo:"",...e}}async function Cl(){const e=[mr()],t=await dt.get(xl,e);return t||e}async function $l(e){e.some(t=>t.active)||(e[0].active=!0),await dt.set(xl,e)}async function zi(){return(await Cl()).find(t=>t.active)||mr()}var gr=(e=>(e.play="play",e.download="download",e))(gr||{});function kl(e){return e.startsWith("file://")}async function qi(e,t,n){let{url:o,root:i}=e;if(!o)throw new Error("未设置CloudDrive地址!");(o.startsWith("/")||o.startsWith("\\"))&&(o=`file:///${o}`),kl(o);const s=/^https?:\/\//.test(o);if(s&&!i)throw new Error("当协议为http/https时,必须设置CloudDrive资源根路径!");i&&(i=i.replace(/^(\/+)?/g,"/")),t=t.replace(/^(\/+)?/g,"/");const r=`${i}${t}`,c=n==="play"?"True":"False";let u="";return s?u=`${o}/static/${o.replace("://","/")}/${c}/${encodeURIComponent(r)}`:(o=o.replace(/\/+$/,""),u=`${o}${r}`),console.log("[Cloud115 Enhancer] buildCloudDriveUrl",u),u}async function El(e,t){let{url:n,root:o}=e;if(!n)throw new Error("未设置CloudDrive地址!");return(n.startsWith("/")||n.startsWith("\\"))&&(n=`file:///${n}`),kl(n)?await qi(e,t,"play"):await qi(e,t,"play")+".clfsplaylist.m3u"}var Co=(e=>(e[e.failed=-1]="failed",e[e.illegal=0]="illegal",e[e.ing=1]="ing",e[e.success=2]="success",e))(Co||{}),Tt=(e=>(e.all="all",e.failed="failed",e.success="success",e.magnet="magnet",e.magnetEd2k="magnetEd2k",e))(Tt||{}),Al=(e=>(e[e.true=1]="true",e[e.false=0]="false",e))(Al||{}),ht=(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))(ht||{}),Xe=(e=>(e.all="全部",e.video="视频",e.audio="音频",e.image="图片",e.doc="文档",e.app="应用",e.archive="压缩包",e))(Xe||{}),Sl=(e=>(e.userPtime="user_ptime",e.fileName="file_name",e.fileSize="file_size",e.fileType="file_type",e))(Sl||{});function Ep(e){return{offset:0,limit:1150,aid:1,cid:"",format:"json",o:"user_ptime",asc:0,search_value:"",...e}}function Ol(e){return{aid:1,cid:"",o:"user_ptime",asc:0,offset:0,show_dir:1,limit:115,natsort:0,format:"json",...e}}function Pl(e,t){return function(){return e.apply(t,arguments)}}const{toString:Il}=Object.prototype,{getPrototypeOf:wr}=Object,br=(e=>t=>{const n=Il.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),tn=e=>(e=e.toLowerCase(),t=>br(t)===e),Vi=e=>t=>typeof t===e,{isArray:$o}=Array,Jo=Vi("undefined");function Ap(e){return e!==null&&!Jo(e)&&e.constructor!==null&&!Jo(e.constructor)&&xn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Tl=tn("ArrayBuffer");function Sp(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Tl(e.buffer),t}const Op=Vi("string"),xn=Vi("function"),Ml=Vi("number"),yr=e=>e!==null&&typeof e=="object",Pp=e=>e===!0||e===!1,Wi=e=>{if(br(e)!=="object")return!1;const t=wr(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ip=tn("Date"),Tp=tn("File"),Mp=tn("Blob"),Bp=tn("FileList"),Lp=e=>yr(e)&&xn(e.pipe),Np=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Il.call(e)===t||xn(e.toString)&&e.toString()===t)},Dp=tn("URLSearchParams"),Rp=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Yo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,i;if(typeof e!="object"&&(e=[e]),$o(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 Bl(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 Ll=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Nl=e=>!Jo(e)&&e!==Ll;function vr(){const{caseless:e}=Nl(this)&&this||{},t={},n=(o,i)=>{const s=e&&Bl(t,i)||i;Wi(t[s])&&Wi(o)?t[s]=vr(t[s],o):Wi(o)?t[s]=vr({},o):$o(o)?t[s]=o.slice():t[s]=o};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Yo(arguments[o],n);return t}const Fp=(e,t,n,{allOwnKeys:o}={})=>(Yo(t,(i,s)=>{n&&xn(i)?e[s]=Pl(i,n):e[s]=i},{allOwnKeys:o}),e),jp=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Up=(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)},Hp=(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&&wr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},zp=(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},qp=e=>{if(!e)return null;if($o(e))return e;let t=e.length;if(!Ml(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Vp=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&wr(Uint8Array)),Wp=(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])}},Kp=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},Gp=tn("HTMLFormElement"),Jp=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,i){return o.toUpperCase()+i}),Dl=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Yp=tn("RegExp"),Rl=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Yo(n,(i,s)=>{t(i,s,e)!==!1&&(o[s]=i)}),Object.defineProperties(e,o)},Xp=e=>{Rl(e,(t,n)=>{if(xn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(!!xn(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+"'")})}})},Zp=(e,t)=>{const n={},o=i=>{i.forEach(s=>{n[s]=!0})};return $o(e)?o(e):o(String(e).split(t)),n},Qp=()=>{},eh=(e,t)=>(e=+e,Number.isFinite(e)?e:t),_r="abcdefghijklmnopqrstuvwxyz",Fl="0123456789",jl={DIGIT:Fl,ALPHA:_r,ALPHA_DIGIT:_r+_r.toUpperCase()+Fl},th=(e=16,t=jl.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function nh(e){return!!(e&&xn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const U={isArray:$o,isArrayBuffer:Tl,isBuffer:Ap,isFormData:Np,isArrayBufferView:Sp,isString:Op,isNumber:Ml,isBoolean:Pp,isObject:yr,isPlainObject:Wi,isUndefined:Jo,isDate:Ip,isFile:Tp,isBlob:Mp,isRegExp:Yp,isFunction:xn,isStream:Lp,isURLSearchParams:Dp,isTypedArray:Vp,isFileList:Bp,forEach:Yo,merge:vr,extend:Fp,trim:Rp,stripBOM:jp,inherits:Up,toFlatObject:Hp,kindOf:br,kindOfTest:tn,endsWith:zp,toArray:qp,forEachEntry:Wp,matchAll:Kp,isHTMLForm:Gp,hasOwnProperty:Dl,hasOwnProp:Dl,reduceDescriptors:Rl,freezeMethods:Xp,toObjectSet:Zp,toCamelCase:Jp,noop:Qp,toFiniteNumber:eh,findKey:Bl,global:Ll,isContextDefined:Nl,ALPHABET:jl,generateString:th,isSpecCompliantForm:nh,toJSONObject:e=>{const t=new Array(10),n=(o,i)=>{if(yr(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[i]=o;const s=$o(o)?[]:{};return Yo(o,(r,c)=>{const u=n(r,i+1);!Jo(u)&&(s[c]=u)}),t[i]=void 0,s}}return o};return n(e,0)}};function De(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)}U.inherits(De,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:U.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ul=De.prototype,Hl={};["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=>{Hl[e]={value:e}}),Object.defineProperties(De,Hl),Object.defineProperty(Ul,"isAxiosError",{value:!0}),De.from=(e,t,n,o,i,s)=>{const r=Object.create(Ul);return U.toFlatObject(e,r,function(u){return u!==Error.prototype},c=>c!=="isAxiosError"),De.call(r,e.message,t,n,o,i),r.cause=e,r.name=e.name,s&&Object.assign(r,s),r};const oh=null;function xr(e){return U.isPlainObject(e)||U.isArray(e)}function zl(e){return U.endsWith(e,"[]")?e.slice(0,-2):e}function ql(e,t,n){return e?e.concat(t).map(function(i,s){return i=zl(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function ih(e){return U.isArray(e)&&!e.some(xr)}const sh=U.toFlatObject(U,{},null,function(t){return/^is[A-Z]/.test(t)});function Ki(e,t,n){if(!U.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=U.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,W){return!U.isUndefined(W[S])});const o=n.metaTokens,i=n.visitor||d,s=n.dots,r=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&U.isSpecCompliantForm(t);if(!U.isFunction(i))throw new TypeError("visitor must be a function");function f(A){if(A===null)return"";if(U.isDate(A))return A.toISOString();if(!u&&U.isBlob(A))throw new De("Blob is not supported. Use a Buffer instead.");return U.isArrayBuffer(A)||U.isTypedArray(A)?u&&typeof Blob=="function"?new Blob([A]):Buffer.from(A):A}function d(A,S,W){let z=A;if(A&&!W&&typeof A=="object"){if(U.endsWith(S,"{}"))S=o?S:S.slice(0,-2),A=JSON.stringify(A);else if(U.isArray(A)&&ih(A)||(U.isFileList(A)||U.endsWith(S,"[]"))&&(z=U.toArray(A)))return S=zl(S),z.forEach(function(L,X){!(U.isUndefined(L)||L===null)&&t.append(r===!0?ql([S],X,s):r===null?S:S+"[]",f(L))}),!1}return xr(A)?!0:(t.append(ql(W,S,s),f(A)),!1)}const h=[],b=Object.assign(sh,{defaultVisitor:d,convertValue:f,isVisitable:xr});function k(A,S){if(!U.isUndefined(A)){if(h.indexOf(A)!==-1)throw Error("Circular reference detected in "+S.join("."));h.push(A),U.forEach(A,function(z,I){(!(U.isUndefined(z)||z===null)&&i.call(t,z,U.isString(I)?I.trim():I,S,b))===!0&&k(z,S?S.concat(I):[I])}),h.pop()}}if(!U.isObject(e))throw new TypeError("data must be an object");return k(e),t}function Vl(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function Cr(e,t){this._pairs=[],e&&Ki(e,this,t)}const Wl=Cr.prototype;Wl.append=function(t,n){this._pairs.push([t,n])},Wl.toString=function(t){const n=t?function(o){return t.call(this,o,Vl)}:Vl;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function rh(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||rh,i=n&&n.serialize;let s;if(i?s=i(t,n):s=U.isURLSearchParams(t)?t.toString():new Cr(t,n).toString(o),s){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class ah{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){U.forEach(this.handlers,function(o){o!==null&&t(o)})}}const Gl=ah,Jl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lh=typeof URLSearchParams<"u"?URLSearchParams:Cr,ch=typeof FormData<"u"?FormData:null,uh=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),dh=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),qt={isBrowser:!0,classes:{URLSearchParams:lh,FormData:ch,Blob},isStandardBrowserEnv:uh,isStandardBrowserWebWorkerEnv:dh,protocols:["http","https","file","blob","url","data"]};function fh(e,t){return Ki(e,new qt.classes.URLSearchParams,Object.assign({visitor:function(n,o,i,s){return qt.isNode&&U.isBuffer(n)?(this.append(o,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function ph(e){return U.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hh(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 Yl(e){function t(n,o,i,s){let r=n[s++];const c=Number.isFinite(+r),u=s>=n.length;return r=!r&&U.isArray(i)?i.length:r,u?(U.hasOwnProp(i,r)?i[r]=[i[r],o]:i[r]=o,!c):((!i[r]||!U.isObject(i[r]))&&(i[r]=[]),t(n,o,i[r],s)&&U.isArray(i[r])&&(i[r]=hh(i[r])),!c)}if(U.isFormData(e)&&U.isFunction(e.entries)){const n={};return U.forEachEntry(e,(o,i)=>{t(ph(o),i,n,0)}),n}return null}const mh={"Content-Type":void 0};function gh(e,t,n){if(U.isString(e))try{return(t||JSON.parse)(e),U.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const Gi={transitional:Jl,adapter:["xhr","http"],transformRequest:[function(t,n){const o=n.getContentType()||"",i=o.indexOf("application/json")>-1,s=U.isObject(t);if(s&&U.isHTMLForm(t)&&(t=new FormData(t)),U.isFormData(t))return i&&i?JSON.stringify(Yl(t)):t;if(U.isArrayBuffer(t)||U.isBuffer(t)||U.isStream(t)||U.isFile(t)||U.isBlob(t))return t;if(U.isArrayBufferView(t))return t.buffer;if(U.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 fh(t,this.formSerializer).toString();if((c=U.isFileList(t))||o.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Ki(c?{"files[]":t}:t,u&&new u,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),gh(t)):t}],transformResponse:[function(t){const n=this.transitional||Gi.transitional,o=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&U.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"?De.from(c,De.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:qt.classes.FormData,Blob:qt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};U.forEach(["delete","get","head"],function(t){Gi.headers[t]={}}),U.forEach(["post","put","patch"],function(t){Gi.headers[t]=U.merge(mh)});const $r=Gi,wh=U.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"]),bh=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]&&wh[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},Xl=Symbol("internals");function Xo(e){return e&&String(e).trim().toLowerCase()}function Ji(e){return e===!1||e==null?e:U.isArray(e)?e.map(Ji):String(e)}function yh(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 vh(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function kr(e,t,n,o,i){if(U.isFunction(o))return o.call(this,t,n);if(i&&(t=n),!!U.isString(t)){if(U.isString(o))return t.indexOf(o)!==-1;if(U.isRegExp(o))return o.test(t)}}function _h(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function xh(e,t){const n=U.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 Yi{constructor(t){t&&this.set(t)}set(t,n,o){const i=this;function s(c,u,f){const d=Xo(u);if(!d)throw new Error("header name must be a non-empty string");const h=U.findKey(i,d);(!h||i[h]===void 0||f===!0||f===void 0&&i[h]!==!1)&&(i[h||u]=Ji(c))}const r=(c,u)=>U.forEach(c,(f,d)=>s(f,d,u));return U.isPlainObject(t)||t instanceof this.constructor?r(t,n):U.isString(t)&&(t=t.trim())&&!vh(t)?r(bh(t),n):t!=null&&s(n,t,o),this}get(t,n){if(t=Xo(t),t){const o=U.findKey(this,t);if(o){const i=this[o];if(!n)return i;if(n===!0)return yh(i);if(U.isFunction(n))return n.call(this,i,o);if(U.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Xo(t),t){const o=U.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||kr(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let i=!1;function s(r){if(r=Xo(r),r){const c=U.findKey(o,r);c&&(!n||kr(o,o[c],c,n))&&(delete o[c],i=!0)}}return U.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||kr(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,o={};return U.forEach(this,(i,s)=>{const r=U.findKey(o,s);if(r){n[r]=Ji(i),delete n[s];return}const c=t?_h(s):String(s).trim();c!==s&&delete n[s],n[c]=Ji(i),o[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return U.forEach(this,(o,i)=>{o!=null&&o!==!1&&(n[i]=t&&U.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[Xl]=this[Xl]={accessors:{}}).accessors,i=this.prototype;function s(r){const c=Xo(r);o[c]||(xh(i,r),o[c]=!0)}return U.isArray(t)?t.forEach(s):s(t),this}}Yi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),U.freezeMethods(Yi.prototype),U.freezeMethods(Yi);const nn=Yi;function Er(e,t){const n=this||$r,o=t||n,i=nn.from(o.headers);let s=o.data;return U.forEach(e,function(c){s=c.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Zl(e){return!!(e&&e.__CANCEL__)}function Zo(e,t,n){De.call(this,e==null?"canceled":e,De.ERR_CANCELED,t,n),this.name="CanceledError"}U.inherits(Zo,De,{__CANCEL__:!0});function Ch(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new De("Request failed with status code "+n.status,[De.ERR_BAD_REQUEST,De.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const $h=qt.isStandardBrowserEnv?function(){return{write:function(n,o,i,s,r,c){const u=[];u.push(n+"="+encodeURIComponent(o)),U.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),U.isString(s)&&u.push("path="+s),U.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 kh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Eh(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Ql(e,t){return e&&!kh(t)?Eh(e,t):t}const Ah=qt.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=U.isString(r)?i(r):r;return c.protocol===o.protocol&&c.host===o.host}}():function(){return function(){return!0}}();function Sh(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Oh(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 f=Date.now(),d=o[s];r||(r=f),n[i]=u,o[i]=f;let h=s,b=0;for(;h!==i;)b+=n[h++],h=h%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),f-r<t)return;const k=d&&f-d;return k?Math.round(b*1e3/k):void 0}}function ec(e,t){let n=0;const o=Oh(50,250);return i=>{const s=i.loaded,r=i.lengthComputable?i.total:void 0,c=s-n,u=o(c),f=s<=r;n=s;const d={loaded:s,total:r,progress:r?s/r:void 0,bytes:c,rate:u||void 0,estimated:u&&r&&f?(r-s)/u:void 0,event:i};d[t?"download":"upload"]=!0,e(d)}}const Xi={http:oh,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,o){let i=e.data;const s=nn.from(e.headers).normalize(),r=e.responseType;let c;function u(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}U.isFormData(i)&&(qt.isStandardBrowserEnv||qt.isStandardBrowserWebWorkerEnv)&&s.setContentType(!1);let f=new XMLHttpRequest;if(e.auth){const k=e.auth.username||"",A=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(k+":"+A))}const d=Ql(e.baseURL,e.url);f.open(e.method.toUpperCase(),Kl(d,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function h(){if(!f)return;const k=nn.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),S={data:!r||r==="text"||r==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:k,config:e,request:f};Ch(function(z){n(z),u()},function(z){o(z),u()},S),f=null}if("onloadend"in f?f.onloadend=h:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(h)},f.onabort=function(){!f||(o(new De("Request aborted",De.ECONNABORTED,e,f)),f=null)},f.onerror=function(){o(new De("Network Error",De.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let A=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const S=e.transitional||Jl;e.timeoutErrorMessage&&(A=e.timeoutErrorMessage),o(new De(A,S.clarifyTimeoutError?De.ETIMEDOUT:De.ECONNABORTED,e,f)),f=null},qt.isStandardBrowserEnv){const k=(e.withCredentials||Ah(d))&&e.xsrfCookieName&&$h.read(e.xsrfCookieName);k&&s.set(e.xsrfHeaderName,k)}i===void 0&&s.setContentType(null),"setRequestHeader"in f&&U.forEach(s.toJSON(),function(A,S){f.setRequestHeader(S,A)}),U.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),r&&r!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",ec(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",ec(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=k=>{!f||(o(!k||k.type?new Zo(null,e,f):k),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const b=Sh(d);if(b&&qt.protocols.indexOf(b)===-1){o(new De("Unsupported protocol "+b+":",De.ERR_BAD_REQUEST,e));return}f.send(i||null)})}};U.forEach(Xi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ph={getAdapter:e=>{e=U.isArray(e)?e:[e];const{length:t}=e;let n,o;for(let i=0;i<t&&(n=e[i],!(o=U.isString(n)?Xi[n.toLowerCase()]:n));i++);if(!o)throw o===!1?new De(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(U.hasOwnProp(Xi,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!U.isFunction(o))throw new TypeError("adapter is not a function");return o},adapters:Xi};function Ar(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Zo(null,e)}function tc(e){return Ar(e),e.headers=nn.from(e.headers),e.data=Er.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ph.getAdapter(e.adapter||$r.adapter)(e).then(function(o){return Ar(e),o.data=Er.call(e,e.transformResponse,o),o.headers=nn.from(o.headers),o},function(o){return Zl(o)||(Ar(e),o&&o.response&&(o.response.data=Er.call(e,e.transformResponse,o.response),o.response.headers=nn.from(o.response.headers))),Promise.reject(o)})}const nc=e=>e instanceof nn?e.toJSON():e;function ko(e,t){t=t||{};const n={};function o(f,d,h){return U.isPlainObject(f)&&U.isPlainObject(d)?U.merge.call({caseless:h},f,d):U.isPlainObject(d)?U.merge({},d):U.isArray(d)?d.slice():d}function i(f,d,h){if(U.isUndefined(d)){if(!U.isUndefined(f))return o(void 0,f,h)}else return o(f,d,h)}function s(f,d){if(!U.isUndefined(d))return o(void 0,d)}function r(f,d){if(U.isUndefined(d)){if(!U.isUndefined(f))return o(void 0,f)}else return o(void 0,d)}function c(f,d,h){if(h in t)return o(f,d);if(h in e)return o(void 0,f)}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:(f,d)=>i(nc(f),nc(d),!0)};return U.forEach(Object.keys(e).concat(Object.keys(t)),function(d){const h=u[d]||i,b=h(e[d],t[d],d);U.isUndefined(b)&&h!==c||(n[d]=b)}),n}const oc="1.3.3",Sr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Sr[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const ic={};Sr.transitional=function(t,n,o){function i(s,r){return"[Axios v"+oc+"] Transitional option '"+s+"'"+r+(o?". "+o:"")}return(s,r,c)=>{if(t===!1)throw new De(i(r," has been removed"+(n?" in "+n:"")),De.ERR_DEPRECATED);return n&&!ic[r]&&(ic[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 Ih(e,t,n){if(typeof e!="object")throw new De("options must be an object",De.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 De("option "+s+" must be "+u,De.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new De("Unknown option "+s,De.ERR_BAD_OPTION)}}const Or={assertOptions:Ih,validators:Sr},Cn=Or.validators;class Zi{constructor(t){this.defaults=t,this.interceptors={request:new Gl,response:new Gl}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ko(this.defaults,n);const{transitional:o,paramsSerializer:i,headers:s}=n;o!==void 0&&Or.assertOptions(o,{silentJSONParsing:Cn.transitional(Cn.boolean),forcedJSONParsing:Cn.transitional(Cn.boolean),clarifyTimeoutError:Cn.transitional(Cn.boolean)},!1),i!==void 0&&Or.assertOptions(i,{encode:Cn.function,serialize:Cn.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r;r=s&&U.merge(s.common,s[n.method]),r&&U.forEach(["delete","get","head","post","put","patch","common"],A=>{delete s[A]}),n.headers=nn.concat(r,s);const c=[];let u=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(u=u&&S.synchronous,c.unshift(S.fulfilled,S.rejected))});const f=[];this.interceptors.response.forEach(function(S){f.push(S.fulfilled,S.rejected)});let d,h=0,b;if(!u){const A=[tc.bind(this),void 0];for(A.unshift.apply(A,c),A.push.apply(A,f),b=A.length,d=Promise.resolve(n);h<b;)d=d.then(A[h++],A[h++]);return d}b=c.length;let k=n;for(h=0;h<b;){const A=c[h++],S=c[h++];try{k=A(k)}catch(W){S.call(this,W);break}}try{d=tc.call(this,k)}catch(A){return Promise.reject(A)}for(h=0,b=f.length;h<b;)d=d.then(f[h++],f[h++]);return d}getUri(t){t=ko(this.defaults,t);const n=Ql(t.baseURL,t.url);return Kl(n,t.params,t.paramsSerializer)}}U.forEach(["delete","get","head","options"],function(t){Zi.prototype[t]=function(n,o){return this.request(ko(o||{},{method:t,url:n,data:(o||{}).data}))}}),U.forEach(["post","put","patch"],function(t){function n(o){return function(s,r,c){return this.request(ko(c||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:s,data:r}))}}Zi.prototype[t]=n(),Zi.prototype[t+"Form"]=n(!0)});const Qi=Zi;class Pr{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 Zo(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 Pr(function(i){t=i}),cancel:t}}}const Th=Pr;function Mh(e){return function(n){return e.apply(null,n)}}function Bh(e){return U.isObject(e)&&e.isAxiosError===!0}const Ir={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(Ir).forEach(([e,t])=>{Ir[t]=e});const Lh=Ir;function sc(e){const t=new Qi(e),n=Pl(Qi.prototype.request,t);return U.extend(n,Qi.prototype,t,{allOwnKeys:!0}),U.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return sc(ko(e,i))},n}const ot=sc($r);ot.Axios=Qi,ot.CanceledError=Zo,ot.CancelToken=Th,ot.isCancel=Zl,ot.VERSION=oc,ot.toFormData=Ki,ot.AxiosError=De,ot.Cancel=ot.CanceledError,ot.all=function(t){return Promise.all(t)},ot.spread=Mh,ot.isAxiosError=Bh,ot.mergeConfig=ko,ot.AxiosHeaders=nn,ot.formToJSON=e=>Yl(U.isHTMLForm(e)?new FormData(e):e),ot.HttpStatusCode=Lh,ot.default=ot;const Lt=ot,{Axios:qk,AxiosError:Vk,CanceledError:Wk,isCancel:Kk,CancelToken:Gk,VERSION:Jk,all:Yk,Cancel:Xk,isAxiosError:Zk,spread:Qk,toFormData:Nh,AxiosHeaders:eE,HttpStatusCode:tE,formToJSON:nE,mergeConfig:oE}=Lt;class Dh extends Error{}class Tr extends Dh{constructor(){super(...arguments);$e(this,"message","搜索失败!")}}class rc extends Tr{constructor(){super(...arguments);$e(this,"message","搜索请求响应内容为空!")}}class it{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=it.hexChars,o=it.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(it.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,it._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,it._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,it._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(it.buffer32Identity.subarray(s),s),n>55&&(it._md5cycle(this._state,i),i.set(it.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),f=parseInt(c[1],16)||0;i[14]=u,i[15]=f}return it._md5cycle(this._state,i),t?this._state:it._hex(this._state)}}if(it.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),it.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),it.hexChars="0123456789abcdef",it.hexOut=[],it.onePassHasher=new it,it.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=A(s),c="0123456789abcdefghijklmnopqrstuvwxyz",u=typeof BigInt=="function";function f(p,w,_,x){return typeof p>"u"?f[0]:typeof w<"u"?+w==10&&!_?D(p):F(p,w,_,x):D(p)}function d(p,w){this.value=p,this.sign=w,this.isSmall=!1}d.prototype=Object.create(f.prototype);function h(p){this.value=p,this.sign=p<0,this.isSmall=!0}h.prototype=Object.create(f.prototype);function b(p){this.value=p}b.prototype=Object.create(f.prototype);function k(p){return-s<p&&p<s}function A(p){return p<1e7?[p]:p<1e14?[p%1e7,Math.floor(p/1e7)]:[p%1e7,Math.floor(p/1e7)%1e7,Math.floor(p/1e14)]}function S(p){W(p);var w=p.length;if(w<4&&ve(p,r)<0)switch(w){case 0:return 0;case 1:return p[0];case 2:return p[0]+p[1]*o;default:return p[0]+(p[1]+p[2]*o)*o}return p}function W(p){for(var w=p.length;p[--w]===0;);p.length=w+1}function z(p){for(var w=new Array(p),_=-1;++_<p;)w[_]=0;return w}function I(p){return p>0?Math.floor(p):Math.ceil(p)}function L(p,w){var _=p.length,x=w.length,O=new Array(_),C=0,R=o,j,G;for(G=0;G<x;G++)j=p[G]+w[G]+C,C=j>=R?1:0,O[G]=j-C*R;for(;G<_;)j=p[G]+C,C=j===R?1:0,O[G++]=j-C*R;return C>0&&O.push(C),O}function X(p,w){return p.length>=w.length?L(p,w):L(w,p)}function ee(p,w){var _=p.length,x=new Array(_),O=o,C,R;for(R=0;R<_;R++)C=p[R]-O+w,w=Math.floor(C/O),x[R]=C-w*O,w+=1;for(;w>0;)x[R++]=w%O,w=Math.floor(w/O);return x}d.prototype.add=function(p){var w=D(p);if(this.sign!==w.sign)return this.subtract(w.negate());var _=this.value,x=w.value;return w.isSmall?new d(ee(_,Math.abs(x)),this.sign):new d(X(_,x),this.sign)},d.prototype.plus=d.prototype.add,h.prototype.add=function(p){var w=D(p),_=this.value;if(_<0!==w.sign)return this.subtract(w.negate());var x=w.value;if(w.isSmall){if(k(_+x))return new h(_+x);x=A(Math.abs(x))}return new d(ee(x,Math.abs(_)),_<0)},h.prototype.plus=h.prototype.add,b.prototype.add=function(p){return new b(this.value+D(p).value)},b.prototype.plus=b.prototype.add;function te(p,w){var _=p.length,x=w.length,O=new Array(_),C=0,R=o,j,G;for(j=0;j<x;j++)G=p[j]-C-w[j],G<0?(G+=R,C=1):C=0,O[j]=G;for(j=x;j<_;j++){if(G=p[j]-C,G<0)G+=R;else{O[j++]=G;break}O[j]=G}for(;j<_;j++)O[j]=p[j];return W(O),O}function Be(p,w,_){var x;return ve(p,w)>=0?x=te(p,w):(x=te(w,p),_=!_),x=S(x),typeof x=="number"?(_&&(x=-x),new h(x)):new d(x,_)}function ke(p,w,_){var x=p.length,O=new Array(x),C=-w,R=o,j,G;for(j=0;j<x;j++)G=p[j]+C,C=Math.floor(G/R),G%=R,O[j]=G<0?G+R:G;return O=S(O),typeof O=="number"?(_&&(O=-O),new h(O)):new d(O,_)}d.prototype.subtract=function(p){var w=D(p);if(this.sign!==w.sign)return this.add(w.negate());var _=this.value,x=w.value;return w.isSmall?ke(_,Math.abs(x),this.sign):Be(_,x,this.sign)},d.prototype.minus=d.prototype.subtract,h.prototype.subtract=function(p){var w=D(p),_=this.value;if(_<0!==w.sign)return this.add(w.negate());var x=w.value;return w.isSmall?new h(_-x):ke(x,Math.abs(_),_>=0)},h.prototype.minus=h.prototype.subtract,b.prototype.subtract=function(p){return new b(this.value-D(p).value)},b.prototype.minus=b.prototype.subtract,d.prototype.negate=function(){return new d(this.value,!this.sign)},h.prototype.negate=function(){var p=this.sign,w=new h(-this.value);return w.sign=!p,w},b.prototype.negate=function(){return new b(-this.value)},d.prototype.abs=function(){return new d(this.value,!1)},h.prototype.abs=function(){return new h(Math.abs(this.value))},b.prototype.abs=function(){return new b(this.value>=0?this.value:-this.value)};function Ee(p,w){var _=p.length,x=w.length,O=_+x,C=z(O),R=o,j,G,ge,he,ce;for(ge=0;ge<_;++ge){he=p[ge];for(var Le=0;Le<x;++Le)ce=w[Le],j=he*ce+C[ge+Le],G=Math.floor(j/R),C[ge+Le]=j-G*R,C[ge+Le+1]+=G}return W(C),C}function Pe(p,w){var _=p.length,x=new Array(_),O=o,C=0,R,j;for(j=0;j<_;j++)R=p[j]*w+C,C=Math.floor(R/O),x[j]=R-C*O;for(;C>0;)x[j++]=C%O,C=Math.floor(C/O);return x}function de(p,w){for(var _=[];w-- >0;)_.push(0);return _.concat(p)}function oe(p,w){var _=Math.max(p.length,w.length);if(_<=30)return Ee(p,w);_=Math.ceil(_/2);var x=p.slice(_),O=p.slice(0,_),C=w.slice(_),R=w.slice(0,_),j=oe(O,R),G=oe(x,C),ge=oe(X(O,x),X(R,C)),he=X(X(j,de(te(te(ge,j),G),_)),de(G,2*_));return W(he),he}function Ce(p,w){return-.012*p-.012*w+15e-6*p*w>0}d.prototype.multiply=function(p){var w=D(p),_=this.value,x=w.value,O=this.sign!==w.sign,C;if(w.isSmall){if(x===0)return f[0];if(x===1)return this;if(x===-1)return this.negate();if(C=Math.abs(x),C<o)return new d(Pe(_,C),O);x=A(C)}return Ce(_.length,x.length)?new d(oe(_,x),O):new d(Ee(_,x),O)},d.prototype.times=d.prototype.multiply;function se(p,w,_){return p<o?new d(Pe(w,p),_):new d(Ee(w,A(p)),_)}h.prototype._multiplyBySmall=function(p){return k(p.value*this.value)?new h(p.value*this.value):se(Math.abs(p.value),A(Math.abs(this.value)),this.sign!==p.sign)},d.prototype._multiplyBySmall=function(p){return p.value===0?f[0]:p.value===1?this:p.value===-1?this.negate():se(Math.abs(p.value),this.value,this.sign!==p.sign)},h.prototype.multiply=function(p){return D(p)._multiplyBySmall(this)},h.prototype.times=h.prototype.multiply,b.prototype.multiply=function(p){return new b(this.value*D(p).value)},b.prototype.times=b.prototype.multiply;function Fe(p){var w=p.length,_=z(w+w),x=o,O,C,R,j,G;for(R=0;R<w;R++){j=p[R],C=0-j*j;for(var ge=R;ge<w;ge++)G=p[ge],O=2*(j*G)+_[R+ge]+C,C=Math.floor(O/x),_[R+ge]=O-C*x;_[R+w]=C}return W(_),_}d.prototype.square=function(){return new d(Fe(this.value),!1)},h.prototype.square=function(){var p=this.value*this.value;return k(p)?new h(p):new d(Fe(A(Math.abs(this.value))),!1)},b.prototype.square=function(p){return new b(this.value*this.value)};function B(p,w){var _=p.length,x=w.length,O=o,C=z(w.length),R=w[x-1],j=Math.ceil(O/(2*R)),G=Pe(p,j),ge=Pe(w,j),he,ce,Le,_t,pt,Mi,Bi;for(G.length<=_&&G.push(0),ge.push(0),R=ge[x-1],ce=_-x;ce>=0;ce--){for(he=O-1,G[ce+x]!==R&&(he=Math.floor((G[ce+x]*O+G[ce+x-1])/R)),Le=0,_t=0,Mi=ge.length,pt=0;pt<Mi;pt++)Le+=he*ge[pt],Bi=Math.floor(Le/O),_t+=G[ce+pt]-(Le-Bi*O),Le=Bi,_t<0?(G[ce+pt]=_t+O,_t=-1):(G[ce+pt]=_t,_t=0);for(;_t!==0;){for(he-=1,Le=0,pt=0;pt<Mi;pt++)Le+=G[ce+pt]-O+ge[pt],Le<0?(G[ce+pt]=Le+O,Le=0):(G[ce+pt]=Le,Le=1);_t+=Le}C[ce]=he}return G=N(G,j)[0],[S(C),S(G)]}function K(p,w){for(var _=p.length,x=w.length,O=[],C=[],R=o,j,G,ge,he,ce;_;){if(C.unshift(p[--_]),W(C),ve(C,w)<0){O.push(0);continue}G=C.length,ge=C[G-1]*R+C[G-2],he=w[x-1]*R+w[x-2],G>x&&(ge=(ge+1)*R),j=Math.ceil(ge/he);do{if(ce=Pe(w,j),ve(ce,C)<=0)break;j--}while(j);O.push(j),C=te(C,ce)}return O.reverse(),[S(O),S(C)]}function N(p,w){var _=p.length,x=z(_),O=o,C,R,j,G;for(j=0,C=_-1;C>=0;--C)G=j*O+p[C],R=I(G/w),j=G-R*w,x[C]=R|0;return[x,j|0]}function ue(p,w){var _,x=D(w);if(u)return[new b(p.value/x.value),new b(p.value%x.value)];var O=p.value,C=x.value,R;if(C===0)throw new Error("Cannot divide by zero");if(p.isSmall)return x.isSmall?[new h(I(O/C)),new h(O%C)]:[f[0],p];if(x.isSmall){if(C===1)return[p,f[0]];if(C==-1)return[p.negate(),f[0]];var j=Math.abs(C);if(j<o){_=N(O,j),R=S(_[0]);var G=_[1];return p.sign&&(G=-G),typeof R=="number"?(p.sign!==x.sign&&(R=-R),[new h(R),new h(G)]):[new d(R,p.sign!==x.sign),new h(G)]}C=A(j)}var ge=ve(O,C);if(ge===-1)return[f[0],p];if(ge===0)return[f[p.sign===x.sign?1:-1],f[0]];O.length+C.length<=200?_=B(O,C):_=K(O,C),R=_[0];var he=p.sign!==x.sign,ce=_[1],Le=p.sign;return typeof R=="number"?(he&&(R=-R),R=new h(R)):R=new d(R,he),typeof ce=="number"?(Le&&(ce=-ce),ce=new h(ce)):ce=new d(ce,Le),[R,ce]}d.prototype.divmod=function(p){var w=ue(this,p);return{quotient:w[0],remainder:w[1]}},b.prototype.divmod=h.prototype.divmod=d.prototype.divmod,d.prototype.divide=function(p){return ue(this,p)[0]},b.prototype.over=b.prototype.divide=function(p){return new b(this.value/D(p).value)},h.prototype.over=h.prototype.divide=d.prototype.over=d.prototype.divide,d.prototype.mod=function(p){return ue(this,p)[1]},b.prototype.mod=b.prototype.remainder=function(p){return new b(this.value%D(p).value)},h.prototype.remainder=h.prototype.mod=d.prototype.remainder=d.prototype.mod,d.prototype.pow=function(p){var w=D(p),_=this.value,x=w.value,O,C,R;if(x===0)return f[1];if(_===0)return f[0];if(_===1)return f[1];if(_===-1)return w.isEven()?f[1]:f[-1];if(w.sign)return f[0];if(!w.isSmall)throw new Error("The exponent "+w.toString()+" is too large.");if(this.isSmall&&k(O=Math.pow(_,x)))return new h(I(O));for(C=this,R=f[1];x&!0&&(R=R.times(C),--x),x!==0;)x/=2,C=C.square();return R},h.prototype.pow=d.prototype.pow,b.prototype.pow=function(p){var w=D(p),_=this.value,x=w.value,O=BigInt(0),C=BigInt(1),R=BigInt(2);if(x===O)return f[1];if(_===O)return f[0];if(_===C)return f[1];if(_===BigInt(-1))return w.isEven()?f[1]:f[-1];if(w.isNegative())return new b(O);for(var j=this,G=f[1];(x&C)===C&&(G=G.times(j),--x),x!==O;)x/=R,j=j.square();return G},d.prototype.modPow=function(p,w){if(p=D(p),w=D(w),w.isZero())throw new Error("Cannot take modPow with modulus 0");var _=f[1],x=this.mod(w);for(p.isNegative()&&(p=p.multiply(f[-1]),x=x.modInv(w));p.isPositive();){if(x.isZero())return f[0];p.isOdd()&&(_=_.multiply(x).mod(w)),p=p.divide(2),x=x.square().mod(w)}return _},b.prototype.modPow=h.prototype.modPow=d.prototype.modPow;function ve(p,w){if(p.length!==w.length)return p.length>w.length?1:-1;for(var _=p.length-1;_>=0;_--)if(p[_]!==w[_])return p[_]>w[_]?1:-1;return 0}d.prototype.compareAbs=function(p){var w=D(p),_=this.value,x=w.value;return w.isSmall?1:ve(_,x)},h.prototype.compareAbs=function(p){var w=D(p),_=Math.abs(this.value),x=w.value;return w.isSmall?(x=Math.abs(x),_===x?0:_>x?1:-1):-1},b.prototype.compareAbs=function(p){var w=this.value,_=D(p).value;return w=w>=0?w:-w,_=_>=0?_:-_,w===_?0:w>_?1:-1},d.prototype.compare=function(p){if(p===1/0)return-1;if(p===-1/0)return 1;var w=D(p),_=this.value,x=w.value;return this.sign!==w.sign?w.sign?1:-1:w.isSmall?this.sign?-1:1:ve(_,x)*(this.sign?-1:1)},d.prototype.compareTo=d.prototype.compare,h.prototype.compare=function(p){if(p===1/0)return-1;if(p===-1/0)return 1;var w=D(p),_=this.value,x=w.value;return w.isSmall?_==x?0:_>x?1:-1:_<0!==w.sign?_<0?-1:1:_<0?1:-1},h.prototype.compareTo=h.prototype.compare,b.prototype.compare=function(p){if(p===1/0)return-1;if(p===-1/0)return 1;var w=this.value,_=D(p).value;return w===_?0:w>_?1:-1},b.prototype.compareTo=b.prototype.compare,d.prototype.equals=function(p){return this.compare(p)===0},b.prototype.eq=b.prototype.equals=h.prototype.eq=h.prototype.equals=d.prototype.eq=d.prototype.equals,d.prototype.notEquals=function(p){return this.compare(p)!==0},b.prototype.neq=b.prototype.notEquals=h.prototype.neq=h.prototype.notEquals=d.prototype.neq=d.prototype.notEquals,d.prototype.greater=function(p){return this.compare(p)>0},b.prototype.gt=b.prototype.greater=h.prototype.gt=h.prototype.greater=d.prototype.gt=d.prototype.greater,d.prototype.lesser=function(p){return this.compare(p)<0},b.prototype.lt=b.prototype.lesser=h.prototype.lt=h.prototype.lesser=d.prototype.lt=d.prototype.lesser,d.prototype.greaterOrEquals=function(p){return this.compare(p)>=0},b.prototype.geq=b.prototype.greaterOrEquals=h.prototype.geq=h.prototype.greaterOrEquals=d.prototype.geq=d.prototype.greaterOrEquals,d.prototype.lesserOrEquals=function(p){return this.compare(p)<=0},b.prototype.leq=b.prototype.lesserOrEquals=h.prototype.leq=h.prototype.lesserOrEquals=d.prototype.leq=d.prototype.lesserOrEquals,d.prototype.isEven=function(){return(this.value[0]&1)===0},h.prototype.isEven=function(){return(this.value&1)===0},b.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},d.prototype.isOdd=function(){return(this.value[0]&1)===1},h.prototype.isOdd=function(){return(this.value&1)===1},b.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},d.prototype.isPositive=function(){return!this.sign},h.prototype.isPositive=function(){return this.value>0},b.prototype.isPositive=h.prototype.isPositive,d.prototype.isNegative=function(){return this.sign},h.prototype.isNegative=function(){return this.value<0},b.prototype.isNegative=h.prototype.isNegative,d.prototype.isUnit=function(){return!1},h.prototype.isUnit=function(){return Math.abs(this.value)===1},b.prototype.isUnit=function(){return this.abs().value===BigInt(1)},d.prototype.isZero=function(){return!1},h.prototype.isZero=function(){return this.value===0},b.prototype.isZero=function(){return this.value===BigInt(0)},d.prototype.isDivisibleBy=function(p){var w=D(p);return w.isZero()?!1:w.isUnit()?!0:w.compareAbs(2)===0?this.isEven():this.mod(w).isZero()},b.prototype.isDivisibleBy=h.prototype.isDivisibleBy=d.prototype.isDivisibleBy;function Oe(p){var w=p.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 Je(p,w){for(var _=p.prev(),x=_,O=0,C,R,j;x.isEven();)x=x.divide(2),O++;e:for(R=0;R<w.length;R++)if(!p.lesser(w[R])&&(j=t(w[R]).modPow(x,p),!(j.isUnit()||j.equals(_)))){for(C=O-1;C!=0;C--){if(j=j.square().mod(p),j.isUnit())return!1;if(j.equals(_))continue e}return!1}return!0}d.prototype.isPrime=function(p){var w=Oe(this);if(w!==n)return w;var _=this.abs(),x=_.bitLength();if(x<=64)return Je(_,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var O=Math.log(2)*x.toJSNumber(),C=Math.ceil(p===!0?2*Math.pow(O,2):O),R=[],j=0;j<C;j++)R.push(t(j+2));return Je(_,R)},b.prototype.isPrime=h.prototype.isPrime=d.prototype.isPrime,d.prototype.isProbablePrime=function(p,w){var _=Oe(this);if(_!==n)return _;for(var x=this.abs(),O=p===n?5:p,C=[],R=0;R<O;R++)C.push(t.randBetween(2,x.minus(2),w));return Je(x,C)},b.prototype.isProbablePrime=h.prototype.isProbablePrime=d.prototype.isProbablePrime,d.prototype.modInv=function(p){for(var w=t.zero,_=t.one,x=D(p),O=this.abs(),C,R,j;!O.isZero();)C=x.divide(O),R=w,j=x,w=_,x=O,_=R.subtract(C.multiply(_)),O=j.subtract(C.multiply(O));if(!x.isUnit())throw new Error(this.toString()+" and "+p.toString()+" are not co-prime");return w.compare(0)===-1&&(w=w.add(p)),this.isNegative()?w.negate():w},b.prototype.modInv=h.prototype.modInv=d.prototype.modInv,d.prototype.next=function(){var p=this.value;return this.sign?ke(p,1,this.sign):new d(ee(p,1),this.sign)},h.prototype.next=function(){var p=this.value;return p+1<s?new h(p+1):new d(r,!1)},b.prototype.next=function(){return new b(this.value+BigInt(1))},d.prototype.prev=function(){var p=this.value;return this.sign?new d(ee(p,1),!0):ke(p,1,this.sign)},h.prototype.prev=function(){var p=this.value;return p-1>-s?new h(p-1):new d(r,!0)},b.prototype.prev=function(){return new b(this.value-BigInt(1))};for(var Ye=[1];2*Ye[Ye.length-1]<=o;)Ye.push(2*Ye[Ye.length-1]);var Ot=Ye.length,Pt=Ye[Ot-1];function bn(p){return Math.abs(p)<=o}d.prototype.shiftLeft=function(p){var w=D(p).toJSNumber();if(!bn(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>=Ot;)_=_.multiply(Pt),w-=Ot-1;return _.multiply(Ye[w])},b.prototype.shiftLeft=h.prototype.shiftLeft=d.prototype.shiftLeft,d.prototype.shiftRight=function(p){var w,_=D(p).toJSNumber();if(!bn(_))throw new Error(String(_)+" is too large for shifting.");if(_<0)return this.shiftLeft(-_);for(var x=this;_>=Ot;){if(x.isZero()||x.isNegative()&&x.isUnit())return x;w=ue(x,Pt),x=w[1].isNegative()?w[0].prev():w[0],_-=Ot-1}return w=ue(x,Ye[_]),w[1].isNegative()?w[0].prev():w[0]},b.prototype.shiftRight=h.prototype.shiftRight=d.prototype.shiftRight;function yt(p,w,_){w=D(w);for(var x=p.isNegative(),O=w.isNegative(),C=x?p.not():p,R=O?w.not():w,j=0,G=0,ge=null,he=null,ce=[];!C.isZero()||!R.isZero();)ge=ue(C,Pt),j=ge[1].toJSNumber(),x&&(j=Pt-1-j),he=ue(R,Pt),G=he[1].toJSNumber(),O&&(G=Pt-1-G),C=ge[0],R=he[0],ce.push(_(j,G));for(var Le=_(x?1:0,O?1:0)!==0?t(-1):t(0),_t=ce.length-1;_t>=0;_t-=1)Le=Le.multiply(Pt).add(t(ce[_t]));return Le}d.prototype.not=function(){return this.negate().prev()},b.prototype.not=h.prototype.not=d.prototype.not,d.prototype.and=function(p){return yt(this,p,function(w,_){return w&_})},b.prototype.and=h.prototype.and=d.prototype.and,d.prototype.or=function(p){return yt(this,p,function(w,_){return w|_})},b.prototype.or=h.prototype.or=d.prototype.or,d.prototype.xor=function(p){return yt(this,p,function(w,_){return w^_})},b.prototype.xor=h.prototype.xor=d.prototype.xor;var vt=1<<30,lt=(o&-o)*(o&-o)|vt;function Qe(p){var w=p.value,_=typeof w=="number"?w|vt:typeof w=="bigint"?w|BigInt(vt):w[0]+w[1]*o|lt;return _&-_}function zn(p,w){if(w.compareTo(p)<=0){var _=zn(p,w.square(w)),x=_.p,O=_.e,C=x.multiply(w);return C.compareTo(p)<=0?{p:C,e:O*2+1}:{p:x,e:O*2}}return{p:t(1),e:0}}d.prototype.bitLength=function(){var p=this;return p.compareTo(t(0))<0&&(p=p.negate().subtract(t(1))),p.compareTo(t(0))===0?t(0):t(zn(p,t(2)).e).add(t(1))},b.prototype.bitLength=h.prototype.bitLength=d.prototype.bitLength;function at(p,w){return p=D(p),w=D(w),p.greater(w)?p:w}function y(p,w){return p=D(p),w=D(w),p.lesser(w)?p:w}function E(p,w){if(p=D(p).abs(),w=D(w).abs(),p.equals(w))return p;if(p.isZero())return w;if(w.isZero())return p;for(var _=f[1],x,O;p.isEven()&&w.isEven();)x=y(Qe(p),Qe(w)),p=p.divide(x),w=w.divide(x),_=_.multiply(x);for(;p.isEven();)p=p.divide(Qe(p));do{for(;w.isEven();)w=w.divide(Qe(w));p.greater(w)&&(O=w,w=p,p=O),w=w.subtract(p)}while(!w.isZero());return _.isUnit()?p:p.multiply(_)}function T(p,w){return p=D(p).abs(),w=D(w).abs(),p.divide(E(p,w)).multiply(w)}function P(p,w,_){p=D(p),w=D(w);var x=_||Math.random,O=y(p,w),C=at(p,w),R=C.subtract(O).add(1);if(R.isSmall)return O.add(Math.floor(x()*R));for(var j=H(R,o).value,G=[],ge=!0,he=0;he<j.length;he++){var ce=ge?j[he]+(he+1<j.length?j[he+1]/o:0):o,Le=I(x()*ce);G.push(Le),Le<j[he]&&(ge=!1)}return O.add(f.fromArray(G,o,!1))}var F=function(p,w,_,x){_=_||c,p=String(p),x||(p=p.toLowerCase(),_=_.toLowerCase());var O=p.length,C,R=Math.abs(w),j={};for(C=0;C<_.length;C++)j[_[C]]=C;for(C=0;C<O;C++){var G=p[C];if(G!=="-"&&G in j&&j[G]>=R){if(G==="1"&&R===1)continue;throw new Error(G+" is not a valid digit in base "+w+".")}}w=D(w);var ge=[],he=p[0]==="-";for(C=he?1:0;C<p.length;C++){var G=p[C];if(G in j)ge.push(D(j[G]));else if(G==="<"){var ce=C;do C++;while(p[C]!==">"&&C<p.length);ge.push(D(p.slice(ce+1,C)))}else throw new Error(G+" is not a valid character")}return J(ge,w,he)};function J(p,w,_){var x=f[0],O=f[1],C;for(C=p.length-1;C>=0;C--)x=x.add(p[C].times(O)),O=O.times(w);return _?x.negate():x}function Z(p,w){return w=w||c,p<w.length?w[p]:"<"+p+">"}function H(p,w){if(w=t(w),w.isZero()){if(p.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(w.equals(-1)){if(p.isZero())return{value:[0],isNegative:!1};if(p.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-p.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var _=Array.apply(null,Array(p.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return _.unshift([1]),{value:[].concat.apply([],_),isNegative:!1}}var x=!1;if(p.isNegative()&&w.isPositive()&&(x=!0,p=p.abs()),w.isUnit())return p.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(p.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:x};for(var O=[],C=p,R;C.isNegative()||C.compareAbs(w)>=0;){R=C.divmod(w),C=R.quotient;var j=R.remainder;j.isNegative()&&(j=w.minus(j).abs(),C=C.next()),O.push(j.toJSNumber())}return O.push(C.toJSNumber()),{value:O.reverse(),isNegative:x}}function V(p,w,_){var x=H(p,w);return(x.isNegative?"-":"")+x.value.map(function(O){return Z(O,_)}).join("")}d.prototype.toArray=function(p){return H(this,p)},h.prototype.toArray=function(p){return H(this,p)},b.prototype.toArray=function(p){return H(this,p)},d.prototype.toString=function(p,w){if(p===n&&(p=10),p!==10)return V(this,p,w);for(var _=this.value,x=_.length,O=String(_[--x]),C="0000000",R;--x>=0;)R=String(_[x]),O+=C.slice(R.length)+R;var j=this.sign?"-":"";return j+O},h.prototype.toString=function(p,w){return p===n&&(p=10),p!=10?V(this,p,w):String(this.value)},b.prototype.toString=h.prototype.toString,b.prototype.toJSON=d.prototype.toJSON=h.prototype.toJSON=function(){return this.toString()},d.prototype.valueOf=function(){return parseInt(this.toString(),10)},d.prototype.toJSNumber=d.prototype.valueOf,h.prototype.valueOf=function(){return this.value},h.prototype.toJSNumber=h.prototype.valueOf,b.prototype.valueOf=b.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function q(p){if(k(+p)){var w=+p;if(w===I(w))return u?new b(BigInt(w)):new h(w);throw new Error("Invalid integer: "+p)}var _=p[0]==="-";_&&(p=p.slice(1));var x=p.split(/e/i);if(x.length>2)throw new Error("Invalid integer: "+x.join("e"));if(x.length===2){var O=x[1];if(O[0]==="+"&&(O=O.slice(1)),O=+O,O!==I(O)||!k(O))throw new Error("Invalid integer: "+O+" is not a valid exponent.");var C=x[0],R=C.indexOf(".");if(R>=0&&(O-=C.length-R-1,C=C.slice(0,R)+C.slice(R+1)),O<0)throw new Error("Cannot include negative exponent part for integers");C+=new Array(O+1).join("0"),p=C}var j=/^([0-9][0-9]*)$/.test(p);if(!j)throw new Error("Invalid integer: "+p);if(u)return new b(BigInt(_?"-"+p:p));for(var G=[],ge=p.length,he=i,ce=ge-he;ge>0;)G.push(+p.slice(ce,ge)),ce-=he,ce<0&&(ce=0),ge-=he;return W(G),new d(G,_)}function re(p){if(u)return new b(BigInt(p));if(k(p)){if(p!==I(p))throw new Error(p+" is not an integer.");return new h(p)}return q(p.toString())}function D(p){return typeof p=="number"?re(p):typeof p=="string"?q(p):typeof p=="bigint"?new b(p):p}for(var ae=0;ae<1e3;ae++)f[ae]=D(ae),ae>0&&(f[-ae]=D(-ae));return f.one=f[1],f.zero=f[0],f.minusOne=f[-1],f.max=at,f.min=y,f.gcd=E,f.lcm=T,f.isInstance=function(p){return p instanceof d||p instanceof h||p instanceof b},f.randBetween=P,f.fromArray=function(p,w,_){return J(p.map(D),D(w||10),_)},f}();e.hasOwnProperty("exports")&&(e.exports=t)})(Rh);async function Fh(e,t,n){const o=new URLSearchParams({page:e.toString(),uid:n.toString(),sign:t,time:Ui().toString()});return(await Lt.post("https://115.com/web/lixian/?ct=lixian&ac=task_lists",o,{withCredentials:!0,timeout:6e4})).data}async function jh(){return(await Lt.get(`https://115.com/?ct=offline&ac=space&_=${Date.now()}`,{timeout:3e4,withCredentials:!0})).data}async function Uh(){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 Hh(e){const t=_l(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 ac(e,t=500){let n=[],o=0;for(;;){e.offset=o;const i=await Hh(e);if(!i.data||!i.data.length||(n=[...n,...i.data],o+=e.limit,o>=i.count))break;await zt(t)}return n}async function zh(e){const t=_l(e),n=await Lt.get("https://webapi.115.com/files/search?"+t,{timeout:12e4,withCredentials:!0});if(n.data==="")throw new rc;const o=n.data;if(o.state)return o;throw new Tr(o.error)}async function qh(e,t=500,n=!1){let o=[],i=0,s=e.limit;const r=1e4,c=115,u=r-r%s;let f=s;for(;;){if(n){if(i>=u&&i<r){const h=r-u;f=Math.min(h,f)}i>=r&&(f=c)}e.offset=i,e.limit=f;const d=await zh(e);if(!d.data||!d.data.length||(o=[...o,...d.data],i+=f,i>=d.count))break;await zt(t)}return o}async function Vh(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 lc(e,t,n,o){let i=0,s=0;for(;;){const r=t.slice(i,i+n);if((await Vh(e,r)).state&&(s+=r.length),i+=n,i>=t.length)break;await zt(o)}return s}async function Wh(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 Kh(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 Mr(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 cc(e,t,n,o){const i={uid:o.toString(),sign:t.sign,time:Ui().toString()};n&&(i.flag="1");const s=Nh(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 Gh(e){if(!(await Mr(e)).play_long)throw new Error("该目录下没有可以播放的媒体文件![by_attr]");const o=(await ac(Ol({cid:e,limit:1150}))).find(i=>i.play_long&&i.play_long>0);if(!o)throw new Error("该目录下没有可以播放的媒体文件![by_files]");return o}async function Vt(e=!0){const t=Qo().GetCurWangPanCid();return!t&&e?(Qo().Core.MinMessage.Show({text:'不支持"根目录"!',timeout:1e3}),""):t}async function Jh(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 Wt(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 Qo(){return unsafeWindow.TOP?unsafeWindow.TOP:unsafeWindow}function Yh(){return unsafeWindow.top===unsafeWindow?unsafeWindow.Ext:unsafeWindow.top.Ext}async function Xh(e){return new Promise((t,n)=>{Qo().Core.DataAccess.Dir.GetDetail("1",e,o=>t(o))})}async function Zh(){const e=await Vt(),t=await Xh(e);return await Jh(e,t)}async function es(){return window.top!==window?$(document):$('iframe[name="wangpan"], .wrap-view iframe:eq(0)').contents()}async function Eo(){return(await es()).find(".list-contents, .list-thumb")}async function Qh(e){const t=await Eo();return e?t.find("li.selected"):t.find("li")}async function ts(e){const t=await Qh(e),n=[];for(let o=0;o<t.length;o++){const i=t.eq(o),s=await Wt(i);n.push(s)}return n}async function em(){const e=await es(),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 tm(){const e=await Vt();(await Eo()).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 Kn(e=!1){const t=await Vt();if(!t)return null;const n=await Eo(),o=await Zh();return e||o.hide(),n.find(`li[cate_id="${t}"]`).length||n.append(o),o}async function Br(e,t,n){n&&await tm(),Qo().Core.FileMenu.DoEvent([e],t,null)}function uc(e){return`https://115.com/?${new URLSearchParams({cid:e}).toString()}&offset=0&mode=wangpan`}function Lr(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 dc(e){return`https://v.anxia.com/?${new URLSearchParams({pickcode:e,share_id:"0"}).toString()}`}async function nm(e){unsafeWindow.Main.ReInstance({type:e.type,offset:0,o:Sl.userPtime,asc:Al.false,star:e.star,suffix:e.suffix})}async function om(){return(await Eo()).find("li.selected")}async function im(){const e=await om();return e?await Wt(e):null}function sm(e){return e.replace(/[/\\:*?"<>|]/g,"_")}async function rm(e){const n=(await Mr(e.fid||e.cate_id)).paths.slice(1).map(s=>s.file_name).join("/"),o=sm(e.n);return`/${n}/${o}`}const am=[{label:"文件属性变量",items:[{key:"{dir_id}",label:"文件夹ID"},{key:"{file_id}",label:"文件ID"},{key:"{pick_code}",label:"提取码"},{key:"{pure_name}",label:"不包含后缀名的文件名"},{key:"{full_name}",label:"完整名称"},{key:"{file_suffix}",label:"文件后缀名"},{key:"{file_hash}",label:"文件hash"},{key:"{file_size}",label:"文件大小"},{key:"{file_path}",label:"文件路径"},{key:"{file_dir}",label:"文件目录路径"}]},{label:"高级变量",items:[{key:"{clouddrive_stream_url}",label:"CloudDrive链接(用于播放,目录链接是m3u)"},{key:"{clouddrive_down_url}",label:"CloudDrive文件链接"},{key:"{clouddrive_playlist_url}",label:"CloudDrive播放列表链接"},{key:"{user_agent}",label:"浏览器UA"}]},{label:"变量函数处理",memo:"支持多个函数,函数之间使用英文冒号分隔,如:{变量名:encode:base64}",items:[{key:"{变量名:search}",label:"搜索链接"},{key:"{变量名:encode}",label:"url编码"},{key:"{变量名:base64}",label:"base64编码"},{key:"{变量名:base64safe}",label:"base64安全编码"},{key:"{变量名:upper}",label:"转大写"},{key:"{变量名:lower}",label:"转小写"},{key:"{变量名:number}",label:"转数字"},{key:"{变量名:manual}",label:"手动输入"}]}];async function Nr(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 f=["file_path","file_dir","clouddrive_stream_url","clouddrive_down_url","clouddrive_playlist_url"];for(const d of c){const h=d.replace(/[{}]/g,"").split(":")[0],b=d.replace(/[{}]/g,"").replace(/^[^:]+:/,"");let k=((u=e[i[h]])==null?void 0:u.toString())||"",A="";switch(f.includes(h)&&(A=await rm(e)),h){case"pure_name":s?k=e.n.replace(/\.[^.]+$/,""):k=e.n;break;case"file_path":k=A;break;case"file_dir":k=A.replace(/\/[^/]+$/,"");break;case"clouddrive_stream_url":s?k=await qi(n,A,gr.play):k=await El(n,A);break;case"clouddrive_down_url":k=await qi(n,A,gr.download);break;case"clouddrive_playlist_url":let S="";s?S=A.replace(/\/[^/]+$/,""):S=A,k=await El(n,S);break;case"user_agent":k=navigator.userAgent;break}if(k=k.toString(),b){const S=b.split(":");for(const W of S)switch(W){case"search":k=Lr({search_value:k});break;case"encode":k=encodeURIComponent(k);break;case"base64":k=fl(k);break;case"base64safe":k=fl(k,!0);break;case"upper":k=k.toUpperCase();break;case"lower":k=k.toLowerCase();break;case"number":k=k.replace(/\D/g,"");break;case"manual":let{isConfirmed:z,value:I}=await we.fire({title:"手动输入",input:"textarea",inputValue:k,showCancelButton:!0,inputValidator:L=>L?null:"输入不能为空!"});if(!z)throw new Error("已取消手动输入。");if(I=(I==null?void 0:I.trim())||"",I==="")throw new Error("输入不能为空!");k=I;break}}o=o.replace(d,k)}}return t.mutation?await lm(o,e,t,n):o}async function lm(e,t,n,o){return await new Function("payload",n.mutation)({url:e,file:t,customUrl:n,cloudDriveConfig:o})}var $n=(e=>(e.search="search",e.play="play",e))($n||{});const fc={search:"menu_custom_urls_for_search",play:"menu_custom_urls_for_play"};async function ei(e){return await dt.get(fc[e],[])}async function pc(e,t){await dt.set(fc[e],t)}function ct(e){return{enabled:!0,key:"",label:"",icon:"",memo:"",extraMemo:"",url:"",openInBackground:!1,...e}}const hc="ce_menu_config";function cm(e){return{enabled:!0,openInNewTab:!0,search:!0,play:!0,getDownloadUrl:!0,copyNames:!0,...e}}function um(e){return{enabled:!0,copyNames:!0,...e}}function dm(e){return{enabled:!0,moveToSelfNameDir:!0,copyNames:!0,...e}}function fm(e){return{enabled:!0,rename:!0,delete:!0,play:!0,copyNames:!0,move:!0,copy:!0,copyTo:!0,viewProp:!0,showSubFolderSize:!0,...e}}function pm(e){return{enabled:!0,hideSelectionMenuLabel:!1,enableInSearch:!0,[Ae.listItemHover]:cm(e==null?void 0:e[Ae.listItemHover]),[Ae.listItemContext]:um(e==null?void 0:e[Ae.listItemContext]),[Ae.selection]:dm(e==null?void 0:e[Ae.selection]),[Ae.dirContext]:fm(e==null?void 0:e[Ae.dirContext]),...e}}async function mc(){const e=pm(),t=await dt.get(hc,e);return{...e,...t}}async function hm(e){await dt.set(hc,e)}const Xa=class{constructor(t){$e(this,"menuType",Ae.listItemHover);$e(this,"injectDecider");$e(this,"keyAttributeName","id");$e(this,"key");$e(this,"label");$e(this,"icon","");$e(this,"title","");$e(this,"onClick");$e(this,"onMouseOver");$e(this,"onMouseOut");$e(this,"subItems",[]);$e(this,"menuItemTemplates",{[Ae.dirContext]:{body:`<li id="{key}" class="ce-menu dir-context-menu">
<a href="javascript:;">{icon}<span>{label}</span></a>
</li>`,bodyForMulti:`<li id="{key}" class="ce-menu ce-menu-parent dir-context-menu">
{icon}<span class="ce-menu-trigger">{label}</span>
<div class="ce-menu-dropdown sub-items"></div>
</span>`},[Ae.dirContextSub]:{body:`<span id="{key}" class="ce-menu dir-context-menu-sub sub-item">
{icon}<span>{label}</span>
</span>`},[Ae.listItemContext]:{body:`<li id="{key}" class="ce-menu list-item-context-menu">
<a href="javascript:;">{icon}<span>{label}</span></a>
</li>`,bodyForMulti:`<li id="{key}" class="ce-menu ce-menu-parent list-item-context-menu">
{icon}<span class="ce-menu-trigger">{label}</span>
<div class="ce-menu-dropdown sub-items"></div>
</span>`},[Ae.listItemContextSub]:{body:'<span id="{key}" class="ce-menu list-item-context-menu-sub sub-item">{label}</span>'},[Ae.listItemHover]:{body:`<a href="javascript:;" id="{key}" class="ce-menu list-item-hover-menu" style="">
{icon}<span>{label}</span>
</a>`,bodyForMulti:`<span class="ce-menu ce-menu-parent list-item-hover-menu">
{icon}<span class="ce-menu-trigger">{label}</span>
<div class="ce-menu-dropdown sub-items"></div>
</span>`},[Ae.listItemHoverSub]:{body:`<a href="javascript:;" id="{key}" class="ce-menu list-item-hover-menu-sub" style="">
{icon}<span>{label}</span>
</a>`},[Ae.selection]:{body:'<li id="{key}" class="ce-menu selection-menu">{icon}<span>{label}</span></li>',bodyForMulti:`<li class="ce-menu ce-menu-parent selection-menu">
{icon}<span class="ce-menu-trigger">{label}</span>
<div class="ce-menu-dropdown sub-items"></div>
</li>`},[Ae.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.bodyForMulti)throw new Error("未找到 bodyFormMulti 模版");n=t.bodyForMulti}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(Xa.EVENT_CLOSE_MENU,{detail:{menu:this}}))}};let Nt=Xa;$e(Nt,"EVENT_CLOSE_MENU","__closeMenu");async function ns(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 os(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);$e(this,"menuType",Ae.dirContext);this.onMouseOver=ns,this.onMouseOut=os}}class mm extends Nt{constructor(){super(...arguments);$e(this,"menuType",Ae.dirContextSub)}}class gc extends Nt{constructor(n){super(n);$e(this,"menuType",Ae.listItemContext);this.onMouseOver=ns,this.onMouseOut=os}}class is extends Nt{constructor(n){super(n);$e(this,"menuType",Ae.listItemHover);this.onMouseOver=ns,this.onMouseOut=os}}class Dr extends Nt{constructor(){super(...arguments);$e(this,"menuType",Ae.listItemHoverSub)}}class wc extends Nt{constructor(n){super(n);$e(this,"menuType",Ae.selection);this.onMouseOver=ns,this.onMouseOut=os}}class gm extends Nt{constructor(){super(...arguments);$e(this,"menuType",Ae.selectionSub)}}class ss{constructor(t){$e(this,"items");$e(this,"siblingSelector");$e(this,"position");$e(this,"useObserver",!0);$e(this,"observeTarget",document.body);$e(this,"disposeObserverAfterInjection",!0);$e(this,"menuType");$e(this,"_observer");$e(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 Ko(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,Ae.dirContext,this.menuType){case Ae.listItemHover:return!0;case Ae.listItemContext:return n&&n.classList.contains("context-menu")&&!!n.querySelector('[val="report"]');case Ae.selection:return!0;case Ae.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 Ae.listItemHover:document.querySelectorAll("#js_data_list .list-contents > ul > li .file-opr").forEach(i=>{n.push(i)});break;case Ae.listItemContext:n=[o];break;case Ae.selection:document.querySelectorAll("#js_top_panel_box #js_operate_box").forEach(i=>{n.push(i)});break;case Ae.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===Wn.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===Wn.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 wm extends ss{constructor(){super(...arguments);$e(this,"menuType",Ae.dirContext);$e(this,"useObserver",!0);$e(this,"observeTarget",document.body);$e(this,"disposeObserverAfterInjection",!0)}}class bm extends ss{constructor(){super(...arguments);$e(this,"menuType",Ae.listItemContext)}}class ym extends ss{constructor(){super(...arguments);$e(this,"menuType",Ae.listItemHover);$e(this,"useObserver",!0);$e(this,"observeTarget","#js_data_list");$e(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 vm extends ss{constructor(){super(...arguments);$e(this,"menuType",Ae.selection);$e(this,"useObserver",!0);$e(this,"observeTarget","#js_top_panel_box #js_operate_box");$e(this,"disposeObserverAfterInjection",!1)}}async function _m(e,t){return!!$(t).closest("li").attr("cate_id")}async function xm(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?Cp(o)||kp(o)||$p(o):!1}async function Cm(e){if(!location.search.includes("ac=search")||!e.enableInSearch)return;const n=(await Ko("#js_data_list"))[0],o=[{label:"移动",body:'<a href="javascript:;" menu="move" style=""><i class="icon-operate ifo-move" menu="move"></i><span menu="move">移动</span></a>',enabled:!0},{label:"重命名",body:'<a href="javascript:;" menu="edit_name" style=""><i class="icon-operate ifo-rename" menu="edit_name"></i><span menu="edit_name">重命名</span></a>',enabled:!0},{label:"删除",body:'<a href="javascript:;" menu="delete" style=""><i class="icon-operate ifo-remove" menu="delete"></i><span menu="delete">删除</span></a>',enabled:!0},{label:"属性",body:'<a href="javascript:;" menu="attribute" style=""><i class="icon-operate ifo-property" menu="attribute"></i><span menu="attribute">属性</span></a>',enabled:!0}],i=c=>{let u="";for(const f of c)!f.enabled||(u+=f.body);return u},s=()=>{const c=".ce-menu-init",u=document.querySelectorAll(`li[rel="item"]:not(${c})`),f=i(o);for(let d=0;d<u.length;d++){const h=u[d];if(h.querySelector(".file-opr"))continue;const b=document.createElement("div");b.className="file-opr",b.setAttribute("rel","menu"),b.innerHTML=f,h.classList.add(c),h.appendChild(b)}};s(),new MutationObserver(async([c])=>{c.type==="childList"&&s()}).observe(n,{childList:!0})}async function $m(e){if(!e.hideSelectionMenuLabel)return;const n=(await Ko("#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 km(e,t){const n=[];for(const o of t){const i=hr(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 Wt(c),f=await zi(),d=await Nr(u,o,f);if(console.log("[search url]",d),!d)throw new Error("无法获取有效的搜索链接!");hp(d,{active:!o.openInBackground})}catch(c){console.error(c),me({title:"搜索失败",text:c.toString(),icon:"error"})}}});n.push(i)}return n}async function Rr(e,t){if(console.log("[playDirOnAnxia]",e,t),!t)try{me({title:"正在查找可播放的文件...",text:"请稍等...",icon:"info"}),we.showLoading(),t=await Gh(e),console.log("[playDirOnAnxia] file",t)}catch(o){console.error(o),me({title:"播放失败",text:o.toString(),icon:"error"});return}t||me({title:"播放失败",text:"没有在该目录下找到可播放的文件![file_null]",icon:"error"});const n=dc(t.pc);window.open(n,"_blank","noopener noreferrer")}async function Em(e,t){const n=[];for(const o of t){const i=hr(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 Wt(c),f=await zi(),d=await Nr(u,o,f);if(u.cate_id&&d.includes("v.anxia.com")){Rr(u.cate_id);return}if(console.log("[play url]",d),!d)throw new Error("无法获取有效的播放链接!");window.open(d,"_blank","noopener noreferrer")}catch(c){console.error(c),me({title:"播放失败",text:c.toString(),icon:"error"})}}});n.push(i)}return n}var mt=(e=>(e[e.full=0]="full",e[e.pure=1]="pure",e[e.fullUnique=2]="fullUnique",e[e.pureUnique=3]="pureUnique",e))(mt||{});async function rs(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 Am(e){return async(t,n)=>{const o=await Vt(),i=await es(),s=e?"li[file_id].selected":"li[file_id]",r=i[0].querySelectorAll(s);if(!r.length){me({title:"文件移动到同名目录",text:e?"当前目录没有选中文件":"当前目录没有文件",icon:"warning"});return}const{value:c}=await we.fire({title:"文件移动到同名目录",text:e?`当前已选中${r.length}个文件,是否继续?`:`当前目录共有${r.length}个文件,是否继续?`,icon:"warning",showCancelButton:!0,confirmButtonText:"继续",cancelButtonText:"取消"});if(!!c){we.fire({title:"文件移动到同名目录",html:"正在处理...",didOpen:()=>{we.showLoading()}});for(let u=0;u<r.length;u++){const f=r[u],d=await Wt($(f));if(!d.fid)continue;const h=d.n,b=h.replace(/\.[^\.]+$/,""),k=`${u+1} / ${r.length} - `+Math.round(u/r.length*100)+"%";we.update({html:`${k} 正在为文件「${h}」创建目录「${b}」`});const A=await Wh(o,b);we.update({html:`${k} 正在移动文件「${h}」到目录「${b}」`}),await Kh(A.cid,[d.fid]),await zt(500)}we.hideLoading(),we.update({html:"处理完成",icon:"success"})}}}function kn(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 on(e){if(fe(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],i=We(o)?Im(o):on(o);if(i)for(const s in i)t[s]=i[s]}return t}else{if(We(e))return e;if(je(e))return e}}const Sm=/;(?![^(]*\))/g,Om=/:([^]+)/,Pm=/\/\*.*?\*\//gs;function Im(e){const t={};return e.replace(Pm,"").split(Sm).forEach(n=>{if(n){const o=n.split(Om);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function et(e){let t="";if(We(e))t=e;else if(fe(e))for(let n=0;n<e.length;n++){const o=et(e[n]);o&&(t+=o+" ")}else if(je(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=et(t)),n&&(e.style=on(n)),e}const Mm="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",Bm="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",Lm=kn(Mm),Nm=kn(Bm),Dm=kn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function bc(e){return!!e||e===""}function Rm(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=as(e[o],t[o]);return n}function as(e,t){if(e===t)return!0;let n=xc(e),o=xc(t);if(n||o)return n&&o?e.getTime()===t.getTime():!1;if(n=ni(e),o=ni(t),n||o)return e===t;if(n=fe(e),o=fe(t),n||o)return n&&o?Rm(e,t):!1;if(n=je(e),o=je(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||!as(e[r],t[r]))return!1}}return String(e)===String(t)}function yc(e,t){return e.findIndex(n=>as(n,t))}const be=e=>We(e)?e:e==null?"":fe(e)||je(e)&&(e.toString===Cc||!ye(e.toString))?JSON.stringify(e,vc,2):String(e),vc=(e,t)=>t&&t.__v_isRef?vc(e,t.value):Gn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,i])=>(n[`${o} =>`]=i,n),{})}:cs(t)?{[`Set(${t.size})`]:[...t.values()]}:je(t)&&!fe(t)&&!$c(t)?String(t):t,He=Object.freeze({}),Ao=Object.freeze([]),Ct=()=>{},_c=()=>!1,Fm=/^on[^a-z]/,ti=e=>Fm.test(e),ls=e=>e.startsWith("onUpdate:"),tt=Object.assign,Fr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},jm=Object.prototype.hasOwnProperty,Ie=(e,t)=>jm.call(e,t),fe=Array.isArray,Gn=e=>oi(e)==="[object Map]",cs=e=>oi(e)==="[object Set]",xc=e=>oi(e)==="[object Date]",ye=e=>typeof e=="function",We=e=>typeof e=="string",ni=e=>typeof e=="symbol",je=e=>e!==null&&typeof e=="object",us=e=>je(e)&&ye(e.then)&&ye(e.catch),Cc=Object.prototype.toString,oi=e=>Cc.call(e),jr=e=>oi(e).slice(8,-1),$c=e=>oi(e)==="[object Object]",Ur=e=>We(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ds=kn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Um=kn("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),fs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Hm=/-(\w)/g,Kt=fs(e=>e.replace(Hm,(t,n)=>n?n.toUpperCase():"")),zm=/\B([A-Z])/g,sn=fs(e=>e.replace(zm,"-$1").toLowerCase()),Jn=fs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Yn=fs(e=>e?`on${Jn(e)}`:""),ii=(e,t)=>!Object.is(e,t),So=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ps=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Hr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},qm=e=>{const t=We(e)?Number(e):NaN;return isNaN(t)?e:t};let kc;const Ec=()=>kc||(kc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function zr(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Rt;class Vm{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 zr("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 Wm(e,t=Rt){t&&t.active&&t.effects.push(e)}function Km(){return Rt}const qr=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Ac=e=>(e.w&En)>0,Sc=e=>(e.n&En)>0,Gm=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=En},Jm=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const i=t[o];Ac(i)&&!Sc(i)?i.delete(e):t[n++]=i,i.w&=~En,i.n&=~En}t.length=n}},hs=new WeakMap;let si=0,En=1;const Vr=30;let gt;const Xn=Symbol("iterate"),Wr=Symbol("Map key iterate");class Kr{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Wm(this,o)}run(){if(!this.active)return this.fn();let t=gt,n=An;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=gt,gt=this,An=!0,En=1<<++si,si<=Vr?Gm(this):Oc(this),this.fn()}finally{si<=Vr&&Jm(this),En=1<<--si,gt=this.parent,An=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){gt===this?this.deferStop=!0:this.active&&(Oc(this),this.onStop&&this.onStop(),this.active=!1)}}function Oc(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let An=!0;const Pc=[];function Zn(){Pc.push(An),An=!1}function Qn(){const e=Pc.pop();An=e===void 0?!0:e}function $t(e,t,n){if(An&>){let o=hs.get(e);o||hs.set(e,o=new Map);let i=o.get(n);i||o.set(n,i=qr()),Ic(i,{effect:gt,target:e,type:t,key:n})}}function Ic(e,t){let n=!1;si<=Vr?Sc(e)||(e.n|=En,n=!Ac(e)):n=!e.has(gt),n&&(e.add(gt),gt.deps.push(e),gt.onTrack&>.onTrack(Object.assign({effect:gt},t)))}function rn(e,t,n,o,i,s){const r=hs.get(e);if(!r)return;let c=[];if(t==="clear")c=[...r.values()];else if(n==="length"&&fe(e)){const f=Number(o);r.forEach((d,h)=>{(h==="length"||h>=f)&&c.push(d)})}else switch(n!==void 0&&c.push(r.get(n)),t){case"add":fe(e)?Ur(n)&&c.push(r.get("length")):(c.push(r.get(Xn)),Gn(e)&&c.push(r.get(Wr)));break;case"delete":fe(e)||(c.push(r.get(Xn)),Gn(e)&&c.push(r.get(Wr)));break;case"set":Gn(e)&&c.push(r.get(Xn));break}const u={target:e,type:t,key:n,newValue:o,oldValue:i,oldTarget:s};if(c.length===1)c[0]&&Gr(c[0],u);else{const f=[];for(const d of c)d&&f.push(...d);Gr(qr(f),u)}}function Gr(e,t){const n=fe(e)?e:[...e];for(const o of n)o.computed&&Tc(o,t);for(const o of n)o.computed||Tc(o,t)}function Tc(e,t){(e!==gt||e.allowRecurse)&&(e.onTrigger&&e.onTrigger(tt({effect:e},t)),e.scheduler?e.scheduler():e.run())}function Ym(e,t){var n;return(n=hs.get(e))===null||n===void 0?void 0:n.get(t)}const Xm=kn("__proto__,__v_isRef,__isVue"),Mc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ni)),Zm=ms(),Qm=ms(!1,!0),eg=ms(!0),tg=ms(!0,!0),Bc=ng();function ng(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=Se(this);for(let s=0,r=this.length;s<r;s++)$t(o,"get",s+"");const i=o[t](...n);return i===-1||i===!1?o[t](...n.map(Se)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Zn();const o=Se(this)[t].apply(this,n);return Qn(),o}}),e}function og(e){const t=Se(this);return $t(t,"has",e),t.hasOwnProperty(e)}function ms(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?Wc:Vc:t?qc:zc).get(o))return o;const r=fe(o);if(!e){if(r&&Ie(Bc,i))return Reflect.get(Bc,i,s);if(i==="hasOwnProperty")return og}const c=Reflect.get(o,i,s);return(ni(i)?Mc.has(i):Xm(i))||(e||$t(o,"get",i),t)?c:nt(c)?r&&Ur(i)?c:c.value:je(c)?e?Kc(c):Cs(c):c}}const ig=Lc(),sg=Lc(!0);function Lc(e=!1){return function(n,o,i,s){let r=n[o];if(On(r)&&nt(r)&&!nt(i))return!1;if(!e&&(!ks(i)&&!On(i)&&(r=Se(r),i=Se(i)),!fe(n)&&nt(r)&&!nt(i)))return r.value=i,!0;const c=fe(n)&&Ur(o)?Number(o)<n.length:Ie(n,o),u=Reflect.set(n,o,i,s);return n===Se(s)&&(c?ii(i,r)&&rn(n,"set",o,i,r):rn(n,"add",o,i)),u}}function rg(e,t){const n=Ie(e,t),o=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&rn(e,"delete",t,void 0,o),i}function ag(e,t){const n=Reflect.has(e,t);return(!ni(t)||!Mc.has(t))&&$t(e,"has",t),n}function lg(e){return $t(e,"iterate",fe(e)?"length":Xn),Reflect.ownKeys(e)}const Nc={get:Zm,set:ig,deleteProperty:rg,has:ag,ownKeys:lg},Dc={get:eg,set(e,t){return zr(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return zr(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},cg=tt({},Nc,{get:Qm,set:sg}),ug=tt({},Dc,{get:tg}),Jr=e=>e,gs=e=>Reflect.getPrototypeOf(e);function ws(e,t,n=!1,o=!1){e=e.__v_raw;const i=Se(e),s=Se(t);n||(t!==s&&$t(i,"get",t),$t(i,"get",s));const{has:r}=gs(i),c=o?Jr:n?Yr:ri;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 bs(e,t=!1){const n=this.__v_raw,o=Se(n),i=Se(e);return t||(e!==i&&$t(o,"has",e),$t(o,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function ys(e,t=!1){return e=e.__v_raw,!t&&$t(Se(e),"iterate",Xn),Reflect.get(e,"size",e)}function Rc(e){e=Se(e);const t=Se(this);return gs(t).has.call(t,e)||(t.add(e),rn(t,"add",e,e)),this}function Fc(e,t){t=Se(t);const n=Se(this),{has:o,get:i}=gs(n);let s=o.call(n,e);s?Hc(n,o,e):(e=Se(e),s=o.call(n,e));const r=i.call(n,e);return n.set(e,t),s?ii(t,r)&&rn(n,"set",e,t,r):rn(n,"add",e,t),this}function jc(e){const t=Se(this),{has:n,get:o}=gs(t);let i=n.call(t,e);i?Hc(t,n,e):(e=Se(e),i=n.call(t,e));const s=o?o.call(t,e):void 0,r=t.delete(e);return i&&rn(t,"delete",e,void 0,s),r}function Uc(){const e=Se(this),t=e.size!==0,n=Gn(e)?new Map(e):new Set(e),o=e.clear();return t&&rn(e,"clear",void 0,void 0,n),o}function vs(e,t){return function(o,i){const s=this,r=s.__v_raw,c=Se(r),u=t?Jr:e?Yr:ri;return!e&&$t(c,"iterate",Xn),r.forEach((f,d)=>o.call(i,u(f),u(d),s))}}function _s(e,t,n){return function(...o){const i=this.__v_raw,s=Se(i),r=Gn(s),c=e==="entries"||e===Symbol.iterator&&r,u=e==="keys"&&r,f=i[e](...o),d=n?Jr:t?Yr:ri;return!t&&$t(s,"iterate",u?Wr:Xn),{next(){const{value:h,done:b}=f.next();return b?{value:h,done:b}:{value:c?[d(h[0]),d(h[1])]:d(h),done:b}},[Symbol.iterator](){return this}}}}function Sn(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${Jn(e)} operation ${n}failed: target is readonly.`,Se(this))}return e==="delete"?!1:this}}function dg(){const e={get(s){return ws(this,s)},get size(){return ys(this)},has:bs,add:Rc,set:Fc,delete:jc,clear:Uc,forEach:vs(!1,!1)},t={get(s){return ws(this,s,!1,!0)},get size(){return ys(this)},has:bs,add:Rc,set:Fc,delete:jc,clear:Uc,forEach:vs(!1,!0)},n={get(s){return ws(this,s,!0)},get size(){return ys(this,!0)},has(s){return bs.call(this,s,!0)},add:Sn("add"),set:Sn("set"),delete:Sn("delete"),clear:Sn("clear"),forEach:vs(!0,!1)},o={get(s){return ws(this,s,!0,!0)},get size(){return ys(this,!0)},has(s){return bs.call(this,s,!0)},add:Sn("add"),set:Sn("set"),delete:Sn("delete"),clear:Sn("clear"),forEach:vs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=_s(s,!1,!1),n[s]=_s(s,!0,!1),t[s]=_s(s,!1,!0),o[s]=_s(s,!0,!0)}),[e,n,t,o]}const[fg,pg,hg,mg]=dg();function xs(e,t){const n=t?e?mg:hg:e?pg:fg;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 gg={get:xs(!1,!1)},wg={get:xs(!1,!0)},bg={get:xs(!0,!1)},yg={get:xs(!0,!0)};function Hc(e,t,n){const o=Se(n);if(o!==n&&t.call(e,o)){const i=jr(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 zc=new WeakMap,qc=new WeakMap,Vc=new WeakMap,Wc=new WeakMap;function vg(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function _g(e){return e.__v_skip||!Object.isExtensible(e)?0:vg(jr(e))}function Cs(e){return On(e)?e:$s(e,!1,Nc,gg,zc)}function xg(e){return $s(e,!1,cg,wg,qc)}function Kc(e){return $s(e,!0,Dc,bg,Vc)}function Oo(e){return $s(e,!0,ug,yg,Wc)}function $s(e,t,n,o,i){if(!je(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=_g(e);if(r===0)return e;const c=new Proxy(e,r===2?o:n);return i.set(e,c),c}function eo(e){return On(e)?eo(e.__v_raw):!!(e&&e.__v_isReactive)}function On(e){return!!(e&&e.__v_isReadonly)}function ks(e){return!!(e&&e.__v_isShallow)}function Es(e){return eo(e)||On(e)}function Se(e){const t=e&&e.__v_raw;return t?Se(t):e}function Gc(e){return ps(e,"__v_skip",!0),e}const ri=e=>je(e)?Cs(e):e,Yr=e=>je(e)?Kc(e):e;function Jc(e){An&>&&(e=Se(e),Ic(e.dep||(e.dep=qr()),{target:e,type:"get",key:"value"}))}function Yc(e,t){e=Se(e);const n=e.dep;n&&Gr(n,{target:e,type:"set",key:"value",newValue:t})}function nt(e){return!!(e&&e.__v_isRef===!0)}function _e(e){return Cg(e,!1)}function Cg(e,t){return nt(e)?e:new $g(e,t)}class $g{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Se(t),this._value=n?t:ri(t)}get value(){return Jc(this),this._value}set value(t){const n=this.__v_isShallow||ks(t)||On(t);t=n?t:Se(t),ii(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ri(t),Yc(this,t))}}function Te(e){return nt(e)?e.value:e}const kg={get:(e,t,n)=>Te(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const i=e[t];return nt(i)&&!nt(n)?(i.value=n,!0):Reflect.set(e,t,n,o)}};function Xc(e){return eo(e)?e:new Proxy(e,kg)}function Eg(e){Es(e)||console.warn("toRefs() expects a reactive object but received a plain one.");const t=fe(e)?new Array(e.length):{};for(const n in e)t[n]=Sg(e,n);return t}class Ag{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 Ym(Se(this._object),this._key)}}function Sg(e,t,n){const o=e[t];return nt(o)?o:new Ag(e,t,n)}var Zc;class Og{constructor(t,n,o,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[Zc]=!1,this._dirty=!0,this.effect=new Kr(t,()=>{this._dirty||(this._dirty=!0,Yc(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=o}get value(){const t=Se(this);return Jc(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}Zc="__v_isReadonly";function Pg(e,t,n=!1){let o,i;const s=ye(e);s?(o=e,i=()=>{console.warn("Write operation failed: computed value is readonly")}):(o=e.get,i=e.set);const r=new Og(o,i,s||!i,n);return t&&!n&&(r.effect.onTrack=t.onTrack,r.effect.onTrigger=t.onTrigger),r}const to=[];function ai(e){to.push(e)}function li(){to.pop()}function Y(e,...t){Zn();const n=to.length?to[to.length-1].component:null,o=n&&n.appContext.config.warnHandler,i=Ig();if(o)an(o,n,11,[e+t.join(""),n&&n.proxy,i.map(({vnode:s})=>`at <${js(n,s.type)}>`).join(`
`),i]);else{const s=[`[Vue warn]: ${e}`,...t];i.length&&s.push(`
`,...Tg(i)),console.warn(...s)}Qn()}function Ig(){let e=to[to.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?[]:[`
`],...Mg(n))}),t}function Mg({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,i=` at <${js(e.component,e.type,o)}`,s=">"+n;return e.props?[i,...Bg(e.props),s]:[i+s]}function Bg(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...Qc(o,e[o]))}),n.length>3&&t.push(" ..."),t}function Qc(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}`]:nt(t)?(t=Qc(e,Se(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):ye(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Se(t),n?t:[`${e}=`,t])}function Lg(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 Xr={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 an(e,t,n,o){let i;try{i=o?e(...o):e()}catch(s){ci(s,t,n)}return i}function Ft(e,t,n,o){if(ye(e)){const s=an(e,t,n,o);return s&&us(s)&&s.catch(r=>{ci(r,t,n)}),s}const i=[];for(let s=0;s<e.length;s++)i.push(Ft(e[s],t,n,o));return i}function ci(e,t,n,o=!0){const i=t?t.vnode:null;if(t){let s=t.parent;const r=t.proxy,c=Xr[n];for(;s;){const f=s.ec;if(f){for(let d=0;d<f.length;d++)if(f[d](e,r,c)===!1)return}s=s.parent}const u=t.appContext.config.errorHandler;if(u){an(u,null,10,[e,r,c]);return}}Ng(e,n,i,o)}function Ng(e,t,n,o=!0){{const i=Xr[t];if(n&&ai(n),Y(`Unhandled error${i?` during execution of ${i}`:""}`),n&&li(),o)throw e;console.error(e)}}let ui=!1,Zr=!1;const ft=[];let Gt=0;const Po=[];let Jt=null,Pn=0;const eu=Promise.resolve();let Qr=null;const Dg=100;function tu(e){const t=Qr||eu;return e?t.then(this?e.bind(this):e):t}function Rg(e){let t=Gt+1,n=ft.length;for(;t<n;){const o=t+n>>>1;di(ft[o])<e?t=o+1:n=o}return t}function As(e){(!ft.length||!ft.includes(e,ui&&e.allowRecurse?Gt+1:Gt))&&(e.id==null?ft.push(e):ft.splice(Rg(e.id),0,e),nu())}function nu(){!ui&&!Zr&&(Zr=!0,Qr=eu.then(su))}function Fg(e){const t=ft.indexOf(e);t>Gt&&ft.splice(t,1)}function ea(e){fe(e)?Po.push(...e):(!Jt||!Jt.includes(e,e.allowRecurse?Pn+1:Pn))&&Po.push(e),nu()}function ou(e,t=ui?Gt+1:0){for(e=e||new Map;t<ft.length;t++){const n=ft[t];if(n&&n.pre){if(ta(e,n))continue;ft.splice(t,1),t--,n()}}}function iu(e){if(Po.length){const t=[...new Set(Po)];if(Po.length=0,Jt){Jt.push(...t);return}for(Jt=t,e=e||new Map,Jt.sort((n,o)=>di(n)-di(o)),Pn=0;Pn<Jt.length;Pn++)ta(e,Jt[Pn])||Jt[Pn]();Jt=null,Pn=0}}const di=e=>e.id==null?1/0:e.id,jg=(e,t)=>{const n=di(e)-di(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function su(e){Zr=!1,ui=!0,e=e||new Map,ft.sort(jg);const t=n=>ta(e,n);try{for(Gt=0;Gt<ft.length;Gt++){const n=ft[Gt];if(n&&n.active!==!1){if(t(n))continue;an(n,null,14)}}}finally{Gt=0,ft.length=0,iu(e),ui=!1,Qr=null,(ft.length||Po.length)&&su(e)}}function ta(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>Dg){const o=t.ownerInstance,i=o&&Ea(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 no=!1;const Io=new Set;Ec().__VUE_HMR_RUNTIME__={createRecord:na(ru),rerender:na(zg),reload:na(qg)};const oo=new Map;function Ug(e){const t=e.type.__hmrId;let n=oo.get(t);n||(ru(t,e.type),n=oo.get(t)),n.instances.add(e)}function Hg(e){oo.get(e.type.__hmrId).instances.delete(e)}function ru(e,t){return oo.has(e)?!1:(oo.set(e,{initialDef:fi(t),instances:new Set}),!0)}function fi(e){return Ju(e)?e.__vccOpts:e}function zg(e,t){const n=oo.get(e);!n||(n.initialDef.render=t,[...n.instances].forEach(o=>{t&&(o.render=t,fi(o.type).render=t),o.renderCache=[],no=!0,o.update(),no=!1}))}function qg(e,t){const n=oo.get(e);if(!n)return;t=fi(t),au(n.initialDef,t);const o=[...n.instances];for(const i of o){const s=fi(i.type);Io.has(s)||(s!==n.initialDef&&au(s,t),Io.add(s)),i.appContext.optionsCache.delete(i.type),i.ceReload?(Io.add(s),i.ceReload(t.styles),Io.delete(s)):i.parent?As(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.")}ea(()=>{for(const i of o)Io.delete(fi(i.type))})}function au(e,t){tt(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function na(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 Yt,pi=[],oa=!1;function hi(e,...t){Yt?Yt.emit(e,...t):oa||pi.push({event:e,args:t})}function lu(e,t){var n,o;Yt=e,Yt?(Yt.enabled=!0,pi.forEach(({event:i,args:s})=>Yt.emit(i,...s)),pi=[]):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=>{lu(s,t)}),setTimeout(()=>{Yt||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,oa=!0,pi=[])},3e3)):(oa=!0,pi=[])}function Vg(e,t){hi("app:init",e,t,{Fragment:ze,Text:_i,Comment:bt,Static:xi})}function Wg(e){hi("app:unmount",e)}const Kg=ia("component:added"),cu=ia("component:updated"),Gg=ia("component:removed"),Jg=e=>{Yt&&typeof Yt.cleanupBuffer=="function"&&!Yt.cleanupBuffer(e)&&Gg(e)};function ia(e){return t=>{hi(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const Yg=uu("perf:start"),Xg=uu("perf:end");function uu(e){return(t,n,o)=>{hi(e,t.appContext.app,t.uid,t,n,o)}}function Zg(e,t,n){hi("component:emit",e.appContext.app,e,t,n)}function Qg(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||He;{const{emitsOptions:d,propsOptions:[h]}=e;if(d)if(!(t in d))(!h||!(Yn(t)in h))&&Y(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${Yn(t)}" prop.`);else{const b=d[t];ye(b)&&(b(...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 d=`${r==="modelValue"?"model":r}Modifiers`,{number:h,trim:b}=o[d]||He;b&&(i=n.map(k=>We(k)?k.trim():k)),h&&(i=n.map(Hr))}Zg(e,t,i);{const d=t.toLowerCase();d!==t&&o[Yn(d)]&&Y(`Event "${d}" is emitted in component ${js(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 "${sn(t)}" instead of "${t}".`)}let c,u=o[c=Yn(t)]||o[c=Yn(Kt(t))];!u&&s&&(u=o[c=Yn(sn(t))]),u&&Ft(u,e,6,i);const f=o[c+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Ft(f,e,6,i)}}function du(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(!ye(e)){const u=f=>{const d=du(f,t,!0);d&&(c=!0,tt(r,d))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!s&&!c?(je(e)&&o.set(e,null),null):(fe(s)?s.forEach(u=>r[u]=null):tt(r,s),je(e)&&o.set(e,r),r)}function Ss(e,t){return!e||!ti(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ie(e,t[0].toLowerCase()+t.slice(1))||Ie(e,sn(t))||Ie(e,t))}let st=null,Os=null;function Ps(e){const t=st;return st=e,Os=e&&e.type.__scopeId||null,t}function ew(e){Os=e}function tw(){Os=null}const nw=e=>Ve;function Ve(e,t=st,n){if(!t||e._n)return e;const o=(...i)=>{o._d&&Uu(-1);const s=Ps(t);let r;try{r=e(...i)}finally{Ps(s),o._d&&Uu(1)}return cu(t),r};return o._n=!0,o._c=!0,o._d=!0,o}let sa=!1;function Is(){sa=!0}function ra(e){const{type:t,vnode:n,proxy:o,withProxy:i,props:s,propsOptions:[r],slots:c,attrs:u,emit:f,render:d,renderCache:h,data:b,setupState:k,ctx:A,inheritAttrs:S}=e;let W,z;const I=Ps(e);sa=!1;try{if(n.shapeFlag&4){const ee=i||o;W=Bt(d.call(ee,ee,h,s,k,b,A)),z=u}else{const ee=t;u===s&&Is(),W=Bt(ee.length>1?ee(s,{get attrs(){return Is(),u},slots:c,emit:f}):ee(s,null)),z=t.props?u:iw(u)}}catch(ee){Ci.length=0,ci(ee,e,1),W=xe(bt)}let L=W,X;if(W.patchFlag>0&&W.patchFlag&2048&&([L,X]=ow(W)),z&&S!==!1){const ee=Object.keys(z),{shapeFlag:te}=L;if(ee.length){if(te&7)r&&ee.some(ls)&&(z=sw(z,r)),L=Mn(L,z);else if(!sa&&L.type!==bt){const Be=Object.keys(u),ke=[],Ee=[];for(let Pe=0,de=Be.length;Pe<de;Pe++){const oe=Be[Pe];ti(oe)?ls(oe)||ke.push(oe[2].toLowerCase()+oe.slice(3)):Ee.push(oe)}Ee.length&&Y(`Extraneous non-props attributes (${Ee.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),ke.length&&Y(`Extraneous non-emits event listeners (${ke.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&&(fu(L)||Y("Runtime directive used on component with non-element root node. The directives will not function as intended."),L=Mn(L),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition&&(fu(L)||Y("Component inside <Transition> renders non-element root node that cannot be animated."),L.transition=n.transition),X?X(L):W=L,Ps(I),W}const ow=e=>{const t=e.children,n=e.dynamicChildren,o=aa(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 aa(e){let t;for(let n=0;n<e.length;n++){const o=e[n];if(Bo(o)){if(o.type!==bt||o.children==="v-if"){if(t)return;t=o}}else return}return t}const iw=e=>{let t;for(const n in e)(n==="class"||n==="style"||ti(n))&&((t||(t={}))[n]=e[n]);return t},sw=(e,t)=>{const n={};for(const o in e)(!ls(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n},fu=e=>e.shapeFlag&7||e.type===bt;function rw(e,t,n){const{props:o,children:i,component:s}=e,{props:r,children:c,patchFlag:u}=t,f=s.emitsOptions;if((i||c)&&no||t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return o?pu(o,r,f):!!r;if(u&8){const d=t.dynamicProps;for(let h=0;h<d.length;h++){const b=d[h];if(r[b]!==o[b]&&!Ss(f,b))return!0}}}else return(i||c)&&(!c||!c.$stable)?!0:o===r?!1:o?r?pu(o,r,f):!0:!!r;return!1}function pu(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]&&!Ss(n,s))return!0}return!1}function la({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const aw=e=>e.__isSuspense,hu={name:"Suspense",__isSuspense:!0,process(e,t,n,o,i,s,r,c,u,f){e==null?lw(t,n,o,i,s,r,c,u,f):cw(e,t,n,o,i,r,c,u,f)},hydrate:uw,create:ca,normalize:dw};function mi(e,t){const n=e.props&&e.props[t];ye(n)&&n()}function lw(e,t,n,o,i,s,r,c,u){const{p:f,o:{createElement:d}}=u,h=d("div"),b=e.suspense=ca(e,i,o,t,h,n,s,r,c,u);f(null,b.pendingBranch=e.ssContent,h,null,o,b,s,r),b.deps>0?(mi(e,"onPending"),mi(e,"onFallback"),f(null,e.ssFallback,t,n,o,null,s,r),To(b,e.ssFallback)):b.resolve()}function cw(e,t,n,o,i,s,r,c,{p:u,um:f,o:{createElement:d}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const b=t.ssContent,k=t.ssFallback,{activeBranch:A,pendingBranch:S,isInFallback:W,isHydrating:z}=h;if(S)h.pendingBranch=b,Tn(b,S)?(u(S,b,h.hiddenContainer,null,i,h,s,r,c),h.deps<=0?h.resolve():W&&(u(A,k,n,o,i,null,s,r,c),To(h,k))):(h.pendingId++,z?(h.isHydrating=!1,h.activeBranch=S):f(S,i,h),h.deps=0,h.effects.length=0,h.hiddenContainer=d("div"),W?(u(null,b,h.hiddenContainer,null,i,h,s,r,c),h.deps<=0?h.resolve():(u(A,k,n,o,i,null,s,r,c),To(h,k))):A&&Tn(b,A)?(u(A,b,n,o,i,h,s,r,c),h.resolve(!0)):(u(null,b,h.hiddenContainer,null,i,h,s,r,c),h.deps<=0&&h.resolve()));else if(A&&Tn(b,A))u(A,b,n,o,i,h,s,r,c),To(h,b);else if(mi(t,"onPending"),h.pendingBranch=b,h.pendingId++,u(null,b,h.hiddenContainer,null,i,h,s,r,c),h.deps<=0)h.resolve();else{const{timeout:I,pendingId:L}=h;I>0?setTimeout(()=>{h.pendingId===L&&h.fallback(k)},I):I===0&&h.fallback(k)}}let mu=!1;function ca(e,t,n,o,i,s,r,c,u,f,d=!1){mu||(mu=!0,console[console.info?"info":"log"]("<Suspense> is an experimental feature and its API will likely change."));const{p:h,m:b,um:k,n:A,o:{parentNode:S,remove:W}}=f,z=e.props?qm(e.props.timeout):void 0;Lg(z,"Suspense timeout");const I={vnode:e,parent:t,parentComponent:n,isSVG:r,container:o,hiddenContainer:i,anchor:s,deps:0,pendingId:0,timeout:typeof z=="number"?z:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:d,isUnmounted:!1,effects:[],resolve(L=!1){{if(!L&&!I.pendingBranch)throw new Error("suspense.resolve() is called without a pending branch.");if(I.isUnmounted)throw new Error("suspense.resolve() is called on an already unmounted suspense boundary.")}const{vnode:X,activeBranch:ee,pendingBranch:te,pendingId:Be,effects:ke,parentComponent:Ee,container:Pe}=I;if(I.isHydrating)I.isHydrating=!1;else if(!L){const Ce=ee&&te.transition&&te.transition.mode==="out-in";Ce&&(ee.transition.afterLeave=()=>{Be===I.pendingId&&b(te,Pe,se,0)});let{anchor:se}=I;ee&&(se=A(ee),k(ee,Ee,I,!0)),Ce||b(te,Pe,se,0)}To(I,te),I.pendingBranch=null,I.isInFallback=!1;let de=I.parent,oe=!1;for(;de;){if(de.pendingBranch){de.effects.push(...ke),oe=!0;break}de=de.parent}oe||ea(ke),I.effects=[],mi(X,"onResolve")},fallback(L){if(!I.pendingBranch)return;const{vnode:X,activeBranch:ee,parentComponent:te,container:Be,isSVG:ke}=I;mi(X,"onFallback");const Ee=A(ee),Pe=()=>{!I.isInFallback||(h(null,L,Be,Ee,te,null,ke,c,u),To(I,L))},de=L.transition&&L.transition.mode==="out-in";de&&(ee.transition.afterLeave=Pe),I.isInFallback=!0,k(ee,te,null,!0),de||Pe()},move(L,X,ee){I.activeBranch&&b(I.activeBranch,L,X,ee),I.container=L},next(){return I.activeBranch&&A(I.activeBranch)},registerDep(L,X){const ee=!!I.pendingBranch;ee&&I.deps++;const te=L.vnode.el;L.asyncDep.catch(Be=>{ci(Be,L,0)}).then(Be=>{if(L.isUnmounted||I.isUnmounted||I.pendingId!==L.suspenseId)return;L.asyncResolved=!0;const{vnode:ke}=L;ai(ke),$a(L,Be,!1),te&&(ke.el=te);const Ee=!te&&L.subTree.el;X(L,ke,S(te||L.subTree.el),te?null:A(L.subTree),I,r,u),Ee&&W(Ee),la(L,ke.el),li(),ee&&--I.deps===0&&I.resolve()})},unmount(L,X){I.isUnmounted=!0,I.activeBranch&&k(I.activeBranch,n,L,X),I.pendingBranch&&k(I.pendingBranch,n,L,X)}};return I}function uw(e,t,n,o,i,s,r,c,u){const f=t.suspense=ca(t,o,n,e.parentNode,document.createElement("div"),null,i,s,r,c,!0),d=u(e,f.pendingBranch=t.ssContent,n,f,s,r);return f.deps===0&&f.resolve(),d}function dw(e){const{shapeFlag:t,children:n}=e,o=t&32;e.ssContent=gu(o?n.default:n),e.ssFallback=o?gu(n.fallback):xe(bt)}function gu(e){let t;if(ye(e)){const n=Mo&&e._c;n&&(e._d=!1,Q()),e=e(),n&&(e._d=!0,t=Mt,ju())}if(fe(e)){const n=aa(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 fw(e,t){t&&t.pendingBranch?fe(e)?t.effects.push(...e):t.effects.push(e):ea(e)}function To(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e,i=n.el=t.el;o&&o.subTree===n&&(o.vnode.el=i,la(o,i))}function gi(e,t){if(!Ge)Y("provide() can only be used inside setup().");else{let n=Ge.provides;const o=Ge.parent&&Ge.parent.provides;o===n&&(n=Ge.provides=Object.create(o)),n[e]=t}}function wi(e,t,n=!1){const o=Ge||st;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&&ye(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 Ts={};function kt(e,t,n){return ye(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."),wu(e,t,n)}function wu(e,t,{immediate:n,deep:o,flush:i,onTrack:s,onTrigger:r}=He){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=X=>{Y("Invalid watch source: ",X,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},u=Km()===(Ge==null?void 0:Ge.scope)?Ge:null;let f,d=!1,h=!1;if(nt(e)?(f=()=>e.value,d=ks(e)):eo(e)?(f=()=>e,o=!0):fe(e)?(h=!0,d=e.some(X=>eo(X)||ks(X)),f=()=>e.map(X=>{if(nt(X))return X.value;if(eo(X))return io(X);if(ye(X))return an(X,u,2);c(X)})):ye(e)?t?f=()=>an(e,u,2):f=()=>{if(!(u&&u.isUnmounted))return b&&b(),Ft(e,u,3,[k])}:(f=Ct,c(e)),t&&o){const X=f;f=()=>io(X())}let b,k=X=>{b=I.onStop=()=>{an(X,u,4)}},A;if($i)if(k=Ct,t?n&&Ft(t,u,3,[f(),h?[]:void 0,k]):f(),i==="sync"){const X=mb();A=X.__watcherHandles||(X.__watcherHandles=[])}else return Ct;let S=h?new Array(e.length).fill(Ts):Ts;const W=()=>{if(!!I.active)if(t){const X=I.run();(o||d||(h?X.some((ee,te)=>ii(ee,S[te])):ii(X,S)))&&(b&&b(),Ft(t,u,3,[X,S===Ts?void 0:h&&S[0]===Ts?[]:S,k]),S=X)}else I.run()};W.allowRecurse=!!t;let z;i==="sync"?z=W:i==="post"?z=()=>At(W,u&&u.suspense):(W.pre=!0,u&&(W.id=u.uid),z=()=>As(W));const I=new Kr(f,z);I.onTrack=s,I.onTrigger=r,t?n?W():S=I.run():i==="post"?At(I.run.bind(I),u&&u.suspense):I.run();const L=()=>{I.stop(),u&&u.scope&&Fr(u.scope.effects,I)};return A&&A.push(L),L}function pw(e,t,n){const o=this.proxy,i=We(e)?e.includes(".")?bu(o,e):()=>o[e]:e.bind(o,o);let s;ye(t)?s=t:(s=t.handler,n=t);const r=Ge;Ln(this);const c=wu(i,s.bind(o),n);return r?Ln(r):Nn(),c}function bu(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 io(e,t){if(!je(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),nt(e))io(e.value,t);else if(fe(e))for(let n=0;n<e.length;n++)io(e[n],t);else if(cs(e)||Gn(e))e.forEach(n=>{io(n,t)});else if($c(e))for(const n in e)io(e[n],t);return e}function Ue(e){return ye(e)?{setup:e,name:e.name}:e}const bi=e=>!!e.type.__asyncLoader,ua=e=>e.type.__isKeepAlive;function hw(e,t){yu(e,"a",t)}function mw(e,t){yu(e,"da",t)}function yu(e,t,n=Ge){const o=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Ms(t,o,n),n){let i=n.parent;for(;i&&i.parent;)ua(i.parent.vnode)&&gw(o,t,n,i),i=i.parent}}function gw(e,t,n,o){const i=Ms(t,e,o,!0);yi(()=>{Fr(o[t],i)},n)}function Ms(e,t,n=Ge,o=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;Zn(),Ln(n);const c=Ft(t,n,e,r);return Nn(),Qn(),c});return o?i.unshift(s):i.push(s),s}else{const i=Yn(Xr[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 ln=e=>(t,n=Ge)=>(!$i||e==="sp")&&Ms(e,(...o)=>t(...o),n),Xt=ln("bm"),Zt=ln("m"),ww=ln("bu"),bw=ln("u"),vu=ln("bum"),yi=ln("um"),yw=ln("sp"),vw=ln("rtg"),_w=ln("rtc");function xw(e,t=Ge){Ms("ec",e,t)}function _u(e){Um(e)&&Y("Do not use built-in directive ids as custom directive id: "+e)}function ie(e,t){const n=st;if(n===null)return Y("withDirectives can only be used inside render functions."),e;const o=Fs(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[r,c,u,f=He]=t[s];r&&(ye(r)&&(r={mounted:r,updated:r}),r.deep&&io(c),i.push({dir:r,instance:o,value:c,oldValue:void 0,arg:u,modifiers:f}))}return e}function so(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&&(Zn(),Ft(u,n,8,[e.el,c,e,t]),Qn())}}const da="components";function ro(e,t){return $w(da,e,!0,t)||e}const Cw=Symbol();function $w(e,t,n=!0,o=!1){const i=st||Ge;if(i){const s=i.type;if(e===da){const c=Ea(s,!1);if(c&&(c===t||c===Kt(t)||c===Jn(Kt(t))))return s}const r=xu(i[e]||s[e],t)||xu(i.appContext[e],t);if(!r&&o)return s;if(n&&!r){const c=e===da?`
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${Jn(e.slice(0,-1))} can only be used in render() or setup().`)}function xu(e,t){return e&&(e[t]||e[Kt(t)]||e[Jn(Kt(t))])}function Et(e,t,n,o){let i;const s=n&&n[o];if(fe(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(je(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 f=r[c];i[c]=t(e[f],f,c,s&&s[c])}}else i=[];return n&&(n[o]=i),i}function cn(e,t,n={},o,i){if(st.isCE||st.parent&&bi(st.parent)&&st.parent.isCE)return t!=="default"&&(n.name=t),xe("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&&Cu(s(n)),c=jt(ze,{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 Cu(e){return e.some(t=>Bo(t)?!(t.type===bt||t.type===ze&&!Cu(t.children)):!0)?e:null}const fa=e=>e?Ku(e)?Fs(e)||e.proxy:fa(e.parent):null,ao=tt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>Oo(e.props),$attrs:e=>Oo(e.attrs),$slots:e=>Oo(e.slots),$refs:e=>Oo(e.refs),$parent:e=>fa(e.parent),$root:e=>fa(e.root),$emit:e=>e.emit,$options:e=>ga(e),$forceUpdate:e=>e.f||(e.f=()=>As(e.update)),$nextTick:e=>e.n||(e.n=tu.bind(e.proxy)),$watch:e=>pw.bind(e)}),pa=e=>e==="_"||e==="$",ha=(e,t)=>e!==He&&!e.__isScriptSetup&&Ie(e,t),$u={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 f;if(t[0]!=="$"){const k=r[t];if(k!==void 0)switch(k){case 1:return o[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(ha(o,t))return r[t]=1,o[t];if(i!==He&&Ie(i,t))return r[t]=2,i[t];if((f=e.propsOptions[0])&&Ie(f,t))return r[t]=3,s[t];if(n!==He&&Ie(n,t))return r[t]=4,n[t];ma&&(r[t]=0)}}const d=ao[t];let h,b;if(d)return t==="$attrs"&&($t(e,"get",t),Is()),d(e);if((h=c.__cssModules)&&(h=h[t]))return h;if(n!==He&&Ie(n,t))return r[t]=4,n[t];if(b=u.config.globalProperties,Ie(b,t))return b[t];st&&(!We(t)||t.indexOf("__v")!==0)&&(i!==He&&pa(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===st&&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 ha(i,t)?(i[t]=n,!0):i.__isScriptSetup&&Ie(i,t)?(Y(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):o!==He&&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!==He&&Ie(e,r)||ha(t,r)||(c=s[0])&&Ie(c,r)||Ie(o,r)||Ie(ao,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)}};$u.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 kw(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(ao).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:()=>ao[n](e),set:Ct})}),t}function Ew(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:Ct})})}function Aw(e){const{ctx:t,setupState:n}=e;Object.keys(Se(n)).forEach(o=>{if(!n.__isScriptSetup){if(pa(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:Ct})}})}function Sw(){const e=Object.create(null);return(t,n)=>{e[n]?Y(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}let ma=!0;function Ow(e){const t=ga(e),n=e.proxy,o=e.ctx;ma=!1,t.beforeCreate&&ku(t.beforeCreate,e,"bc");const{data:i,computed:s,methods:r,watch:c,provide:u,inject:f,created:d,beforeMount:h,mounted:b,beforeUpdate:k,updated:A,activated:S,deactivated:W,beforeDestroy:z,beforeUnmount:I,destroyed:L,unmounted:X,render:ee,renderTracked:te,renderTriggered:Be,errorCaptured:ke,serverPrefetch:Ee,expose:Pe,inheritAttrs:de,components:oe,directives:Ce,filters:se}=t,Fe=Sw();{const[K]=e.propsOptions;if(K)for(const N in K)Fe("Props",N)}if(f&&Pw(f,o,Fe,e.appContext.config.unwrapInjectedRef),r)for(const K in r){const N=r[K];ye(N)?(Object.defineProperty(o,K,{value:N.bind(n),configurable:!0,enumerable:!0,writable:!0}),Fe("Methods",K)):Y(`Method "${K}" has type "${typeof N}" in the component definition. Did you reference the function correctly?`)}if(i){ye(i)||Y("The data option must be a function. Plain object usage is no longer supported.");const K=i.call(n,n);if(us(K)&&Y("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!je(K))Y("data() should return an object.");else{e.data=Cs(K);for(const N in K)Fe("Data",N),pa(N[0])||Object.defineProperty(o,N,{configurable:!0,enumerable:!0,get:()=>K[N],set:Ct})}}if(ma=!0,s)for(const K in s){const N=s[K],ue=ye(N)?N.bind(n,n):ye(N.get)?N.get.bind(n,n):Ct;ue===Ct&&Y(`Computed property "${K}" has no getter.`);const ve=!ye(N)&&ye(N.set)?N.set.bind(n):()=>{Y(`Write operation failed: computed property "${K}" is readonly.`)},Oe=Yu({get:ue,set:ve});Object.defineProperty(o,K,{enumerable:!0,configurable:!0,get:()=>Oe.value,set:Je=>Oe.value=Je}),Fe("Computed",K)}if(c)for(const K in c)Eu(c[K],o,n,K);if(u){const K=ye(u)?u.call(n):u;Reflect.ownKeys(K).forEach(N=>{gi(N,K[N])})}d&&ku(d,e,"c");function B(K,N){fe(N)?N.forEach(ue=>K(ue.bind(n))):N&&K(N.bind(n))}if(B(Xt,h),B(Zt,b),B(ww,k),B(bw,A),B(hw,S),B(mw,W),B(xw,ke),B(_w,te),B(vw,Be),B(vu,I),B(yi,X),B(yw,Ee),fe(Pe))if(Pe.length){const K=e.exposed||(e.exposed={});Pe.forEach(N=>{Object.defineProperty(K,N,{get:()=>n[N],set:ue=>n[N]=ue})})}else e.exposed||(e.exposed={});ee&&e.render===Ct&&(e.render=ee),de!=null&&(e.inheritAttrs=de),oe&&(e.components=oe),Ce&&(e.directives=Ce)}function Pw(e,t,n=Ct,o=!1){fe(e)&&(e=wa(e));for(const i in e){const s=e[i];let r;je(s)?"default"in s?r=wi(s.from||i,s.default,!0):r=wi(s.from||i):r=wi(s),nt(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 ku(e,t,n){Ft(fe(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Eu(e,t,n,o){const i=o.includes(".")?bu(n,o):()=>n[o];if(We(e)){const s=t[e];ye(s)?kt(i,s):Y(`Invalid watch handler specified by key "${e}"`,s)}else if(ye(e))kt(i,e.bind(n));else if(je(e))if(fe(e))e.forEach(s=>Eu(s,t,n,o));else{const s=ye(e.handler)?e.handler.bind(n):t[e.handler];ye(s)?kt(i,s,e):Y(`Invalid watch handler specified by key "${e.handler}"`,s)}else Y(`Invalid watch option: "${o}"`,e)}function ga(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(f=>Bs(u,f,r,!0)),Bs(u,t,r)),je(t)&&s.set(t,u),u}function Bs(e,t,n,o=!1){const{mixins:i,extends:s}=t;s&&Bs(e,s,n,!0),i&&i.forEach(r=>Bs(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=Iw[r]||n&&n[r];e[r]=c?c(e[r],t[r]):t[r]}return e}const Iw={data:Au,props:lo,emits:lo,methods:lo,computed:lo,beforeCreate:wt,created:wt,beforeMount:wt,mounted:wt,beforeUpdate:wt,updated:wt,beforeDestroy:wt,beforeUnmount:wt,destroyed:wt,unmounted:wt,activated:wt,deactivated:wt,errorCaptured:wt,serverPrefetch:wt,components:lo,directives:lo,watch:Mw,provide:Au,inject:Tw};function Au(e,t){return t?e?function(){return tt(ye(e)?e.call(this,this):e,ye(t)?t.call(this,this):t)}:t:e}function Tw(e,t){return lo(wa(e),wa(t))}function wa(e){if(fe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function wt(e,t){return e?[...new Set([].concat(e,t))]:t}function lo(e,t){return e?tt(tt(Object.create(null),e),t):t}function Mw(e,t){if(!e)return t;if(!t)return e;const n=tt(Object.create(null),e);for(const o in t)n[o]=wt(e[o],t[o]);return n}function Bw(e,t,n,o=!1){const i={},s={};ps(s,Ds,1),e.propsDefaults=Object.create(null),Su(e,t,i,s);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);Mu(t||{},i,e),n?e.props=o?i:xg(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function Lw(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function Nw(e,t,n,o){const{props:i,attrs:s,vnode:{patchFlag:r}}=e,c=Se(i),[u]=e.propsOptions;let f=!1;if(!Lw(e)&&(o||r>0)&&!(r&16)){if(r&8){const d=e.vnode.dynamicProps;for(let h=0;h<d.length;h++){let b=d[h];if(Ss(e.emitsOptions,b))continue;const k=t[b];if(u)if(Ie(s,b))k!==s[b]&&(s[b]=k,f=!0);else{const A=Kt(b);i[A]=ba(u,c,A,k,e,!1)}else k!==s[b]&&(s[b]=k,f=!0)}}}else{Su(e,t,i,s)&&(f=!0);let d;for(const h in c)(!t||!Ie(t,h)&&((d=sn(h))===h||!Ie(t,d)))&&(u?n&&(n[h]!==void 0||n[d]!==void 0)&&(i[h]=ba(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],f=!0)}f&&rn(e,"set","$attrs"),Mu(t||{},i,e)}function Su(e,t,n,o){const[i,s]=e.propsOptions;let r=!1,c;if(t)for(let u in t){if(ds(u))continue;const f=t[u];let d;i&&Ie(i,d=Kt(u))?!s||!s.includes(d)?n[d]=f:(c||(c={}))[d]=f:Ss(e.emitsOptions,u)||(!(u in o)||f!==o[u])&&(o[u]=f,r=!0)}if(s){const u=Se(n),f=c||He;for(let d=0;d<s.length;d++){const h=s[d];n[h]=ba(i,u,h,f[h],e,!Ie(f,h))}}return r}function ba(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&&ye(u)){const{propsDefaults:f}=i;n in f?o=f[n]:(Ln(i),o=f[n]=u.call(null,t),Nn())}else o=u}r[0]&&(s&&!c?o=!1:r[1]&&(o===""||o===sn(n))&&(o=!0))}return o}function Ou(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(!ye(e)){const d=h=>{u=!0;const[b,k]=Ou(h,t,!0);tt(r,b),k&&c.push(...k)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!s&&!u)return je(e)&&o.set(e,Ao),Ao;if(fe(s))for(let d=0;d<s.length;d++){We(s[d])||Y("props must be strings when using array syntax.",s[d]);const h=Kt(s[d]);Pu(h)&&(r[h]=He)}else if(s){je(s)||Y("invalid props options",s);for(const d in s){const h=Kt(d);if(Pu(h)){const b=s[d],k=r[h]=fe(b)||ye(b)?{type:b}:Object.assign({},b);if(k){const A=Tu(Boolean,k.type),S=Tu(String,k.type);k[0]=A>-1,k[1]=S<0||A<S,(A>-1||Ie(k,"default"))&&c.push(h)}}}}const f=[r,c];return je(e)&&o.set(e,f),f}function Pu(e){return e[0]!=="$"?!0:(Y(`Invalid prop name: "${e}" is a reserved property.`),!1)}function ya(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Iu(e,t){return ya(e)===ya(t)}function Tu(e,t){return fe(t)?t.findIndex(n=>Iu(n,e)):ye(t)&&Iu(t,e)?0:-1}function Mu(e,t,n){const o=Se(t),i=n.propsOptions[0];for(const s in i){let r=i[s];r!=null&&Dw(s,o[s],r,!Ie(e,s)&&!Ie(e,sn(s)))}}function Dw(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=fe(i)?i:[i],f=[];for(let d=0;d<u.length&&!c;d++){const{valid:h,expectedType:b}=Fw(t,u[d]);f.push(b||""),c=h}if(!c){Y(jw(e,t,f));return}}r&&!r(t)&&Y('Invalid prop: custom validator check failed for prop "'+e+'".')}}const Rw=kn("String,Number,Boolean,Function,Symbol,BigInt");function Fw(e,t){let n;const o=ya(t);if(Rw(o)){const i=typeof e;n=i===o.toLowerCase(),!n&&i==="object"&&(n=e instanceof t)}else o==="Object"?n=je(e):o==="Array"?n=fe(e):o==="null"?n=e===null:n=e instanceof t;return{valid:n,expectedType:o}}function jw(e,t,n){let o=`Invalid prop: type check failed for prop "${e}". Expected ${n.map(Jn).join(" | ")}`;const i=n[0],s=jr(t),r=Bu(t,i),c=Bu(t,s);return n.length===1&&Lu(i)&&!Uw(i,s)&&(o+=` with value ${r}`),o+=`, got ${s} `,Lu(s)&&(o+=`with value ${c}.`),o}function Bu(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function Lu(e){return["string","number","boolean"].some(n=>e.toLowerCase()===n)}function Uw(...e){return e.some(t=>t.toLowerCase()==="boolean")}const Nu=e=>e[0]==="_"||e==="$stable",va=e=>fe(e)?e.map(Bt):[Bt(e)],Hw=(e,t,n)=>{if(t._n)return t;const o=Ve((...i)=>(Ge&&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.`),va(t(...i))),n);return o._c=!1,o},Du=(e,t,n)=>{const o=e._ctx;for(const i in e){if(Nu(i))continue;const s=e[i];if(ye(s))t[i]=Hw(i,s,o);else if(s!=null){Y(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const r=va(s);t[i]=()=>r}}},Ru=(e,t)=>{ua(e.vnode)||Y("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=va(t);e.slots.default=()=>n},zw=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Se(t),ps(t,"_",n)):Du(t,e.slots={})}else e.slots={},t&&Ru(e,t);ps(e.slots,Ds,1)},qw=(e,t,n)=>{const{vnode:o,slots:i}=e;let s=!0,r=He;if(o.shapeFlag&32){const c=t._;c?no?tt(i,t):n&&c===1?s=!1:(tt(i,t),!n&&c===1&&delete i._):(s=!t.$stable,Du(t,i)),r=t}else t&&(Ru(e,t),r={default:1});if(s)for(const c in i)!Nu(c)&&!(c in r)&&delete i[c]};function Fu(){return{app:null,config:{isNativeTag:_c,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 Vw=0;function Ww(e,t){return function(o,i=null){ye(o)||(o=Object.assign({},o)),i!=null&&!je(i)&&(Y("root props passed to app.mount() must be an object."),i=null);const s=Fu(),r=new Set;let c=!1;const u=s.app={_uid:Vw++,_component:o,_props:i,_container:null,_context:s,_instance:null,version:Xu,get config(){return s.config},set config(f){Y("app.config cannot be replaced. Modify individual options instead.")},use(f,...d){return r.has(f)?Y("Plugin has already been applied to target app."):f&&ye(f.install)?(r.add(f),f.install(u,...d)):ye(f)?(r.add(f),f(u,...d)):Y('A plugin must either be a function or an object with an "install" function.'),u},mixin(f){return s.mixins.includes(f)?Y("Mixin has already been applied to target app"+(f.name?`: ${f.name}`:"")):s.mixins.push(f),u},component(f,d){return Ca(f,s.config),d?(s.components[f]&&Y(`Component "${f}" has already been registered in target app.`),s.components[f]=d,u):s.components[f]},directive(f,d){return _u(f),d?(s.directives[f]&&Y(`Directive "${f}" has already been registered in target app.`),s.directives[f]=d,u):s.directives[f]},mount(f,d,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{f.__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 b=xe(o,i);return b.appContext=s,s.reload=()=>{e(Mn(b),f,h)},d&&t?t(b,f):e(b,f,h),c=!0,u._container=f,f.__vue_app__=u,u._instance=b.component,Vg(u,Xu),Fs(b.component)||b.component.proxy}},unmount(){c?(e(null,u._container),u._instance=null,Wg(u),delete u._container.__vue_app__):Y("Cannot unmount an app that is not mounted.")},provide(f,d){return f in s.provides&&Y(`App already provides property with key "${String(f)}". It will be overwritten with the new value.`),s.provides[f]=d,u}};return u}}function _a(e,t,n,o,i=!1){if(fe(e)){e.forEach((b,k)=>_a(b,t&&(fe(t)?t[k]:t),n,o,i));return}if(bi(o)&&!i)return;const s=o.shapeFlag&4?Fs(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 f=t&&t.r,d=c.refs===He?c.refs={}:c.refs,h=c.setupState;if(f!=null&&f!==u&&(We(f)?(d[f]=null,Ie(h,f)&&(h[f]=null)):nt(f)&&(f.value=null)),ye(u))an(u,c,12,[r,d]);else{const b=We(u),k=nt(u);if(b||k){const A=()=>{if(e.f){const S=b?Ie(h,u)?h[u]:d[u]:u.value;i?fe(S)&&Fr(S,s):fe(S)?S.includes(s)||S.push(s):b?(d[u]=[s],Ie(h,u)&&(h[u]=d[u])):(u.value=[s],e.k&&(d[e.k]=u.value))}else b?(d[u]=r,Ie(h,u)&&(h[u]=r)):k?(u.value=r,e.k&&(d[e.k]=r)):Y("Invalid template ref type:",u,`(${typeof u})`)};r?(A.id=-1,At(A,n)):A()}else Y("Invalid template ref type:",u,`(${typeof u})`)}}let vi,In;function un(e,t){e.appContext.config.performance&&Ls()&&In.mark(`vue-${t}-${e.uid}`),Yg(e,t,Ls()?In.now():Date.now())}function dn(e,t){if(e.appContext.config.performance&&Ls()){const n=`vue-${t}-${e.uid}`,o=n+":end";In.mark(o),In.measure(`<${js(e,e.type)}> ${t}`,n,o),In.clearMarks(n),In.clearMarks(o)}Xg(e,t,Ls()?In.now():Date.now())}function Ls(){return vi!==void 0||(typeof window<"u"&&window.performance?(vi=!0,In=window.performance):vi=!1),vi}function Kw(){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 At=fw;function Gw(e){return Jw(e)}function Jw(e,t){Kw();const n=Ec();n.__VUE__=!0,lu(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:o,remove:i,patchProp:s,createElement:r,createText:c,createComment:u,setText:f,setElementText:d,parentNode:h,nextSibling:b,setScopeId:k=Ct,insertStaticContent:A}=e,S=(y,E,T,P=null,F=null,J=null,Z=!1,H=null,V=no?!1:!!E.dynamicChildren)=>{if(y===E)return;y&&!Tn(y,E)&&(P=vt(y),Ye(y,F,J,!0),y=null),E.patchFlag===-2&&(V=!1,E.dynamicChildren=null);const{type:q,ref:re,shapeFlag:D}=E;switch(q){case _i:W(y,E,T,P);break;case bt:z(y,E,T,P);break;case xi:y==null?I(E,T,P,Z):L(y,E,T,Z);break;case ze:Ce(y,E,T,P,F,J,Z,H,V);break;default:D&1?te(y,E,T,P,F,J,Z,H,V):D&6?se(y,E,T,P,F,J,Z,H,V):D&64||D&128?q.process(y,E,T,P,F,J,Z,H,V,Qe):Y("Invalid VNode type:",q,`(${typeof q})`)}re!=null&&F&&_a(re,y&&y.ref,J,E||y,!E)},W=(y,E,T,P)=>{if(y==null)o(E.el=c(E.children),T,P);else{const F=E.el=y.el;E.children!==y.children&&f(F,E.children)}},z=(y,E,T,P)=>{y==null?o(E.el=u(E.children||""),T,P):E.el=y.el},I=(y,E,T,P)=>{[y.el,y.anchor]=A(y.children,E,T,P,y.el,y.anchor)},L=(y,E,T,P)=>{if(E.children!==y.children){const F=b(y.anchor);ee(y),[E.el,E.anchor]=A(E.children,T,F,P)}else E.el=y.el,E.anchor=y.anchor},X=({el:y,anchor:E},T,P)=>{let F;for(;y&&y!==E;)F=b(y),o(y,T,P),y=F;o(E,T,P)},ee=({el:y,anchor:E})=>{let T;for(;y&&y!==E;)T=b(y),i(y),y=T;i(E)},te=(y,E,T,P,F,J,Z,H,V)=>{Z=Z||E.type==="svg",y==null?Be(E,T,P,F,J,Z,H,V):Pe(y,E,F,J,Z,H,V)},Be=(y,E,T,P,F,J,Z,H)=>{let V,q;const{type:re,props:D,shapeFlag:ae,transition:p,dirs:w}=y;if(V=y.el=r(y.type,J,D&&D.is,D),ae&8?d(V,y.children):ae&16&&Ee(y.children,V,null,P,F,J&&re!=="foreignObject",Z,H),w&&so(y,null,P,"created"),ke(V,y,y.scopeId,Z,P),D){for(const x in D)x!=="value"&&!ds(x)&&s(V,x,null,D[x],J,y.children,P,F,yt);"value"in D&&s(V,"value",null,D.value),(q=D.onVnodeBeforeMount)&&Qt(q,P,y)}Object.defineProperty(V,"__vnode",{value:y,enumerable:!1}),Object.defineProperty(V,"__vueParentComponent",{value:P,enumerable:!1}),w&&so(y,null,P,"beforeMount");const _=(!F||F&&!F.pendingBranch)&&p&&!p.persisted;_&&p.beforeEnter(V),o(V,E,T),((q=D&&D.onVnodeMounted)||_||w)&&At(()=>{q&&Qt(q,P,y),_&&p.enter(V),w&&so(y,null,P,"mounted")},F)},ke=(y,E,T,P,F)=>{if(T&&k(y,T),P)for(let J=0;J<P.length;J++)k(y,P[J]);if(F){let J=F.subTree;if(J.patchFlag>0&&J.patchFlag&2048&&(J=aa(J.children)||J),E===J){const Z=F.vnode;ke(y,Z,Z.scopeId,Z.slotScopeIds,F.parent)}}},Ee=(y,E,T,P,F,J,Z,H,V=0)=>{for(let q=V;q<y.length;q++){const re=y[q]=H?Bn(y[q]):Bt(y[q]);S(null,re,E,T,P,F,J,Z,H)}},Pe=(y,E,T,P,F,J,Z)=>{const H=E.el=y.el;let{patchFlag:V,dynamicChildren:q,dirs:re}=E;V|=y.patchFlag&16;const D=y.props||He,ae=E.props||He;let p;T&&co(T,!1),(p=ae.onVnodeBeforeUpdate)&&Qt(p,T,E,y),re&&so(E,y,T,"beforeUpdate"),T&&co(T,!0),no&&(V=0,Z=!1,q=null);const w=F&&E.type!=="foreignObject";if(q?(de(y.dynamicChildren,q,H,T,P,w,J),T&&T.type.__hmrId&&Ns(y,E)):Z||ue(y,E,H,null,T,P,w,J,!1),V>0){if(V&16)oe(H,E,D,ae,T,P,F);else if(V&2&&D.class!==ae.class&&s(H,"class",null,ae.class,F),V&4&&s(H,"style",D.style,ae.style,F),V&8){const _=E.dynamicProps;for(let x=0;x<_.length;x++){const O=_[x],C=D[O],R=ae[O];(R!==C||O==="value")&&s(H,O,C,R,F,y.children,T,P,yt)}}V&1&&y.children!==E.children&&d(H,E.children)}else!Z&&q==null&&oe(H,E,D,ae,T,P,F);((p=ae.onVnodeUpdated)||re)&&At(()=>{p&&Qt(p,T,E,y),re&&so(E,y,T,"updated")},P)},de=(y,E,T,P,F,J,Z)=>{for(let H=0;H<E.length;H++){const V=y[H],q=E[H],re=V.el&&(V.type===ze||!Tn(V,q)||V.shapeFlag&70)?h(V.el):T;S(V,q,re,null,P,F,J,Z,!0)}},oe=(y,E,T,P,F,J,Z)=>{if(T!==P){if(T!==He)for(const H in T)!ds(H)&&!(H in P)&&s(y,H,T[H],null,Z,E.children,F,J,yt);for(const H in P){if(ds(H))continue;const V=P[H],q=T[H];V!==q&&H!=="value"&&s(y,H,q,V,Z,E.children,F,J,yt)}"value"in P&&s(y,"value",T.value,P.value)}},Ce=(y,E,T,P,F,J,Z,H,V)=>{const q=E.el=y?y.el:c(""),re=E.anchor=y?y.anchor:c("");let{patchFlag:D,dynamicChildren:ae,slotScopeIds:p}=E;(no||D&2048)&&(D=0,V=!1,ae=null),p&&(H=H?H.concat(p):p),y==null?(o(q,T,P),o(re,T,P),Ee(E.children,T,re,F,J,Z,H,V)):D>0&&D&64&&ae&&y.dynamicChildren?(de(y.dynamicChildren,ae,T,F,J,Z,H),F&&F.type.__hmrId?Ns(y,E):(E.key!=null||F&&E===F.subTree)&&Ns(y,E,!0)):ue(y,E,T,re,F,J,Z,H,V)},se=(y,E,T,P,F,J,Z,H,V)=>{E.slotScopeIds=H,y==null?E.shapeFlag&512?F.ctx.activate(E,T,P,Z,V):Fe(E,T,P,F,J,Z,V):B(y,E,V)},Fe=(y,E,T,P,F,J,Z)=>{const H=y.component=ob(y,P,F);if(H.type.__hmrId&&Ug(H),ai(y),un(H,"mount"),ua(y)&&(H.ctx.renderer=Qe),un(H,"init"),rb(H),dn(H,"init"),H.asyncDep){if(F&&F.registerDep(H,K),!y.el){const V=H.subTree=xe(bt);z(null,V,E,T)}return}K(H,y,E,T,F,J,Z),li(),dn(H,"mount")},B=(y,E,T)=>{const P=E.component=y.component;if(rw(y,E,T))if(P.asyncDep&&!P.asyncResolved){ai(E),N(P,E,T),li();return}else P.next=E,Fg(P.update),P.update();else E.el=y.el,P.vnode=E},K=(y,E,T,P,F,J,Z)=>{const H=()=>{if(y.isMounted){let{next:re,bu:D,u:ae,parent:p,vnode:w}=y,_=re,x;ai(re||y.vnode),co(y,!1),re?(re.el=w.el,N(y,re,Z)):re=w,D&&So(D),(x=re.props&&re.props.onVnodeBeforeUpdate)&&Qt(x,p,re,w),co(y,!0),un(y,"render");const O=ra(y);dn(y,"render");const C=y.subTree;y.subTree=O,un(y,"patch"),S(C,O,h(C.el),vt(C),y,F,J),dn(y,"patch"),re.el=O.el,_===null&&la(y,O.el),ae&&At(ae,F),(x=re.props&&re.props.onVnodeUpdated)&&At(()=>Qt(x,p,re,w),F),cu(y),li()}else{let re;const{el:D,props:ae}=E,{bm:p,m:w,parent:_}=y,x=bi(E);if(co(y,!1),p&&So(p),!x&&(re=ae&&ae.onVnodeBeforeMount)&&Qt(re,_,E),co(y,!0),D&&at){const O=()=>{un(y,"render"),y.subTree=ra(y),dn(y,"render"),un(y,"hydrate"),at(D,y.subTree,y,F,null),dn(y,"hydrate")};x?E.type.__asyncLoader().then(()=>!y.isUnmounted&&O()):O()}else{un(y,"render");const O=y.subTree=ra(y);dn(y,"render"),un(y,"patch"),S(null,O,T,P,y,F,J),dn(y,"patch"),E.el=O.el}if(w&&At(w,F),!x&&(re=ae&&ae.onVnodeMounted)){const O=E;At(()=>Qt(re,_,O),F)}(E.shapeFlag&256||_&&bi(_.vnode)&&_.vnode.shapeFlag&256)&&y.a&&At(y.a,F),y.isMounted=!0,Kg(y),E=T=P=null}},V=y.effect=new Kr(H,()=>As(q),y.scope),q=y.update=()=>V.run();q.id=y.uid,co(y,!0),V.onTrack=y.rtc?re=>So(y.rtc,re):void 0,V.onTrigger=y.rtg?re=>So(y.rtg,re):void 0,q.ownerInstance=y,q()},N=(y,E,T)=>{E.component=y;const P=y.vnode.props;y.vnode=E,y.next=null,Nw(y,E.props,P,T),qw(y,E.children,T),Zn(),ou(),Qn()},ue=(y,E,T,P,F,J,Z,H,V=!1)=>{const q=y&&y.children,re=y?y.shapeFlag:0,D=E.children,{patchFlag:ae,shapeFlag:p}=E;if(ae>0){if(ae&128){Oe(q,D,T,P,F,J,Z,H,V);return}else if(ae&256){ve(q,D,T,P,F,J,Z,H,V);return}}p&8?(re&16&&yt(q,F,J),D!==q&&d(T,D)):re&16?p&16?Oe(q,D,T,P,F,J,Z,H,V):yt(q,F,J,!0):(re&8&&d(T,""),p&16&&Ee(D,T,P,F,J,Z,H,V))},ve=(y,E,T,P,F,J,Z,H,V)=>{y=y||Ao,E=E||Ao;const q=y.length,re=E.length,D=Math.min(q,re);let ae;for(ae=0;ae<D;ae++){const p=E[ae]=V?Bn(E[ae]):Bt(E[ae]);S(y[ae],p,T,null,F,J,Z,H,V)}q>re?yt(y,F,J,!0,!1,D):Ee(E,T,P,F,J,Z,H,V,D)},Oe=(y,E,T,P,F,J,Z,H,V)=>{let q=0;const re=E.length;let D=y.length-1,ae=re-1;for(;q<=D&&q<=ae;){const p=y[q],w=E[q]=V?Bn(E[q]):Bt(E[q]);if(Tn(p,w))S(p,w,T,null,F,J,Z,H,V);else break;q++}for(;q<=D&&q<=ae;){const p=y[D],w=E[ae]=V?Bn(E[ae]):Bt(E[ae]);if(Tn(p,w))S(p,w,T,null,F,J,Z,H,V);else break;D--,ae--}if(q>D){if(q<=ae){const p=ae+1,w=p<re?E[p].el:P;for(;q<=ae;)S(null,E[q]=V?Bn(E[q]):Bt(E[q]),T,w,F,J,Z,H,V),q++}}else if(q>ae)for(;q<=D;)Ye(y[q],F,J,!0),q++;else{const p=q,w=q,_=new Map;for(q=w;q<=ae;q++){const he=E[q]=V?Bn(E[q]):Bt(E[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 x,O=0;const C=ae-w+1;let R=!1,j=0;const G=new Array(C);for(q=0;q<C;q++)G[q]=0;for(q=p;q<=D;q++){const he=y[q];if(O>=C){Ye(he,F,J,!0);continue}let ce;if(he.key!=null)ce=_.get(he.key);else for(x=w;x<=ae;x++)if(G[x-w]===0&&Tn(he,E[x])){ce=x;break}ce===void 0?Ye(he,F,J,!0):(G[ce-w]=q+1,ce>=j?j=ce:R=!0,S(he,E[ce],T,null,F,J,Z,H,V),O++)}const ge=R?Yw(G):Ao;for(x=ge.length-1,q=C-1;q>=0;q--){const he=w+q,ce=E[he],Le=he+1<re?E[he+1].el:P;G[q]===0?S(null,ce,T,Le,F,J,Z,H,V):R&&(x<0||q!==ge[x]?Je(ce,T,Le,2):x--)}}},Je=(y,E,T,P,F=null)=>{const{el:J,type:Z,transition:H,children:V,shapeFlag:q}=y;if(q&6){Je(y.component.subTree,E,T,P);return}if(q&128){y.suspense.move(E,T,P);return}if(q&64){Z.move(y,E,T,Qe);return}if(Z===ze){o(J,E,T);for(let D=0;D<V.length;D++)Je(V[D],E,T,P);o(y.anchor,E,T);return}if(Z===xi){X(y,E,T);return}if(P!==2&&q&1&&H)if(P===0)H.beforeEnter(J),o(J,E,T),At(()=>H.enter(J),F);else{const{leave:D,delayLeave:ae,afterLeave:p}=H,w=()=>o(J,E,T),_=()=>{D(J,()=>{w(),p&&p()})};ae?ae(J,w,_):_()}else o(J,E,T)},Ye=(y,E,T,P=!1,F=!1)=>{const{type:J,props:Z,ref:H,children:V,dynamicChildren:q,shapeFlag:re,patchFlag:D,dirs:ae}=y;if(H!=null&&_a(H,null,T,y,!0),re&256){E.ctx.deactivate(y);return}const p=re&1&&ae,w=!bi(y);let _;if(w&&(_=Z&&Z.onVnodeBeforeUnmount)&&Qt(_,E,y),re&6)bn(y.component,T,P);else{if(re&128){y.suspense.unmount(T,P);return}p&&so(y,null,E,"beforeUnmount"),re&64?y.type.remove(y,E,T,F,Qe,P):q&&(J!==ze||D>0&&D&64)?yt(q,E,T,!1,!0):(J===ze&&D&384||!F&&re&16)&&yt(V,E,T),P&&Ot(y)}(w&&(_=Z&&Z.onVnodeUnmounted)||p)&&At(()=>{_&&Qt(_,E,y),p&&so(y,null,E,"unmounted")},T)},Ot=y=>{const{type:E,el:T,anchor:P,transition:F}=y;if(E===ze){y.patchFlag>0&&y.patchFlag&2048&&F&&!F.persisted?y.children.forEach(Z=>{Z.type===bt?i(Z.el):Ot(Z)}):Pt(T,P);return}if(E===xi){ee(y);return}const J=()=>{i(T),F&&!F.persisted&&F.afterLeave&&F.afterLeave()};if(y.shapeFlag&1&&F&&!F.persisted){const{leave:Z,delayLeave:H}=F,V=()=>Z(T,J);H?H(y.el,J,V):V()}else J()},Pt=(y,E)=>{let T;for(;y!==E;)T=b(y),i(y),y=T;i(E)},bn=(y,E,T)=>{y.type.__hmrId&&Hg(y);const{bum:P,scope:F,update:J,subTree:Z,um:H}=y;P&&So(P),F.stop(),J&&(J.active=!1,Ye(Z,y,E,T)),H&&At(H,E),At(()=>{y.isUnmounted=!0},E),E&&E.pendingBranch&&!E.isUnmounted&&y.asyncDep&&!y.asyncResolved&&y.suspenseId===E.pendingId&&(E.deps--,E.deps===0&&E.resolve()),Jg(y)},yt=(y,E,T,P=!1,F=!1,J=0)=>{for(let Z=J;Z<y.length;Z++)Ye(y[Z],E,T,P,F)},vt=y=>y.shapeFlag&6?vt(y.component.subTree):y.shapeFlag&128?y.suspense.next():b(y.anchor||y.el),lt=(y,E,T)=>{y==null?E._vnode&&Ye(E._vnode,null,null,!0):S(E._vnode||null,y,E,null,null,null,T),ou(),iu(),E._vnode=y},Qe={p:S,um:Ye,m:Je,r:Ot,mt:Fe,mc:Ee,pc:ue,pbc:de,n:vt,o:e};let zn,at;return t&&([zn,at]=t(Qe)),{render:lt,hydrate:zn,createApp:Ww(lt,zn)}}function co({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ns(e,t,n=!1){const o=e.children,i=t.children;if(fe(o)&&fe(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]=Bn(i[s]),c.el=r.el),n||Ns(r,c)),c.type===_i&&(c.el=r.el),c.type===bt&&!c.el&&(c.el=r.el)}}function Yw(e){const t=e.slice(),n=[0];let o,i,s,r,c;const u=e.length;for(o=0;o<u;o++){const f=e[o];if(f!==0){if(i=n[n.length-1],e[i]<f){t[o]=i,n.push(o);continue}for(s=0,r=n.length-1;s<r;)c=s+r>>1,e[n[c]]<f?s=c+1:r=c;f<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 Xw=e=>e.__isTeleport,ze=Symbol("Fragment"),_i=Symbol("Text"),bt=Symbol("Comment"),xi=Symbol("Static"),Ci=[];let Mt=null;function Q(e=!1){Ci.push(Mt=e?null:[])}function ju(){Ci.pop(),Mt=Ci[Ci.length-1]||null}let Mo=1;function Uu(e){Mo+=e}function Hu(e){return e.dynamicChildren=Mo>0?Mt||Ao:null,ju(),Mo>0&&Mt&&Mt.push(e),e}function ne(e,t,n,o,i,s){return Hu(m(e,t,n,o,i,s,!0))}function jt(e,t,n,o,i){return Hu(xe(e,t,n,o,i,!0))}function Bo(e){return e?e.__v_isVNode===!0:!1}function Tn(e,t){return t.shapeFlag&6&&Io.has(t.type)?(e.shapeFlag&=-257,t.shapeFlag&=-513,!1):e.type===t.type&&e.key===t.key}const Zw=(...e)=>Qw(...e),Ds="__vInternal",zu=({key:e})=>e!=null?e:null,Rs=({ref:e,ref_key:t,ref_for:n})=>e!=null?We(e)||nt(e)||ye(e)?{i:st,r:e,k:t,f:!!n}:e:null;function m(e,t=null,n=null,o=0,i=null,s=e===ze?0:1,r=!1,c=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&zu(t),ref:t&&Rs(t),scopeId:Os,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:st};return c?(xa(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),Mo>0&&!r&&Mt&&(u.patchFlag>0||s&6)&&u.patchFlag!==32&&Mt.push(u),u}const xe=Zw;function Qw(e,t=null,n=null,o=0,i=null,s=!1){if((!e||e===Cw)&&(e||Y(`Invalid vnode type when creating vnode: ${e}.`),e=bt),Bo(e)){const c=Mn(e,t,!0);return n&&xa(c,n),Mo>0&&!s&&Mt&&(c.shapeFlag&6?Mt[Mt.indexOf(e)]=c:Mt.push(c)),c.patchFlag|=-2,c}if(Ju(e)&&(e=e.__vccOpts),t){t=qu(t);let{class:c,style:u}=t;c&&!We(c)&&(t.class=et(c)),je(u)&&(Es(u)&&!fe(u)&&(u=tt({},u)),t.style=on(u))}const r=We(e)?1:aw(e)?128:Xw(e)?64:je(e)?4:ye(e)?2:0;return r&4&&Es(e)&&(e=Se(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)),m(e,t,n,o,i,r,s,!0)}function qu(e){return e?Es(e)||Ds in e?tt({},e):e:null}function Mn(e,t,n=!1){const{props:o,ref:i,patchFlag:s,children:r}=e,c=t?Wu(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&zu(c),ref:t&&t.ref?n&&i?fe(i)?i.concat(Rs(t)):[i,Rs(t)]:Rs(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s===-1&&fe(r)?r.map(Vu):r,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ze?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&&Mn(e.ssContent),ssFallback:e.ssFallback&&Mn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Vu(e){const t=Mn(e);return fe(e.children)&&(t.children=e.children.map(Vu)),t}function le(e=" ",t=0){return xe(_i,null,e,t)}function eb(e,t){const n=xe(xi,null,e);return n.staticCount=t,n}function Ze(e="",t=!1){return t?(Q(),jt(bt,null,e)):xe(bt,null,e)}function Bt(e){return e==null||typeof e=="boolean"?xe(bt):fe(e)?xe(ze,null,e.slice()):typeof e=="object"?Bn(e):xe(_i,null,String(e))}function Bn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Mn(e)}function xa(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(fe(t))n=16;else if(typeof t=="object")if(o&65){const i=t.default;i&&(i._c&&(i._d=!1),xa(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(Ds in t)?t._ctx=st:i===3&&st&&(st.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ye(t)?(t={default:t,_ctx:st},n=32):(t=String(t),o&64?(n=16,t=[le(t)]):n=8);e.children=t,e.shapeFlag|=n}function Wu(...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=et([t.class,o.class]));else if(i==="style")t.style=on([t.style,o.style]);else if(ti(i)){const s=t[i],r=o[i];r&&s!==r&&!(fe(s)&&s.includes(r))&&(t[i]=s?[].concat(s,r):r)}else i!==""&&(t[i]=o[i])}return t}function Qt(e,t,n,o=null){Ft(e,t,7,[n,o])}const tb=Fu();let nb=0;function ob(e,t,n){const o=e.type,i=(t?t.appContext:e.appContext)||tb,s={uid:nb++,vnode:e,type:o,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Vm(!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:Ou(o,i),emitsOptions:du(o,i),emit:null,emitted:null,propsDefaults:He,inheritAttrs:o.inheritAttrs,ctx:He,data:He,props:He,attrs:He,slots:He,refs:He,setupState:He,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=kw(s),s.root=t?t.root:s,s.emit=Qg.bind(null,s),e.ce&&e.ce(s),s}let Ge=null;const ib=()=>Ge||st,Ln=e=>{Ge=e,e.scope.on()},Nn=()=>{Ge&&Ge.scope.off(),Ge=null},sb=kn("slot,component");function Ca(e,t){const n=t.isNativeTag||_c;(sb(e)||n(e))&&Y("Do not use built-in or reserved HTML elements as component id: "+e)}function Ku(e){return e.vnode.shapeFlag&4}let $i=!1;function rb(e,t=!1){$i=t;const{props:n,children:o}=e.vnode,i=Ku(e);Bw(e,n,i,t),zw(e,o);const s=i?ab(e,t):void 0;return $i=!1,s}function ab(e,t){var n;const o=e.type;{if(o.name&&Ca(o.name,e.appContext.config),o.components){const s=Object.keys(o.components);for(let r=0;r<s.length;r++)Ca(s[r],e.appContext.config)}if(o.directives){const s=Object.keys(o.directives);for(let r=0;r<s.length;r++)_u(s[r])}o.compilerOptions&&lb()&&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=Gc(new Proxy(e.ctx,$u)),Ew(e);const{setup:i}=o;if(i){const s=e.setupContext=i.length>1?ub(e):null;Ln(e),Zn();const r=an(i,e,0,[Oo(e.props),s]);if(Qn(),Nn(),us(r)){if(r.then(Nn,Nn),t)return r.then(c=>{$a(e,c,t)}).catch(c=>{ci(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 $a(e,r,t)}else Gu(e,t)}function $a(e,t,n){ye(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:je(t)?(Bo(t)&&Y("setup() should not return VNodes directly - return a render function instead."),e.devtoolsRawSetupState=t,e.setupState=Xc(t),Aw(e)):t!==void 0&&Y(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Gu(e,n)}let ka;const lb=()=>!ka;function Gu(e,t,n){const o=e.type;if(!e.render){if(!t&&ka&&!o.render){const i=o.template||ga(e).template;if(i){un(e,"compile");const{isCustomElement:s,compilerOptions:r}=e.appContext.config,{delimiters:c,compilerOptions:u}=o,f=tt(tt({isCustomElement:s,delimiters:c},r),u);o.render=ka(i,f),dn(e,"compile")}}e.render=o.render||Ct}Ln(e),Zn(),Ow(e),Qn(),Nn(),!o.render&&e.render===Ct&&!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 cb(e){return new Proxy(e.attrs,{get(t,n){return Is(),$t(e,"get","$attrs"),t[n]},set(){return Y("setupContext.attrs is readonly."),!1},deleteProperty(){return Y("setupContext.attrs is readonly."),!1}})}function ub(e){const t=o=>{if(e.exposed&&Y("expose() should be called only once per setup()."),o!=null){let i=typeof o;i==="object"&&(fe(o)?i="array":nt(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=cb(e))},get slots(){return Oo(e.slots)},get emit(){return(o,...i)=>e.emit(o,...i)},expose:t})}function Fs(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Xc(Gc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ao)return ao[n](e)},has(t,n){return n in t||n in ao}}))}const db=/(?:^|[-_])(\w)/g,fb=e=>e.replace(db,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ea(e,t=!0){return ye(e)?e.displayName||e.name:e.name||t&&e.__name}function js(e,t,n=!1){let o=Ea(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?fb(o):n?"App":"Anonymous"}function Ju(e){return ye(e)&&"__vccOpts"in e}const Yu=(e,t)=>Pg(e,t,$i);function Dn(e){const t=ib();t||Y("withAsyncContext called without active current instance. This is likely a bug.");let n=e();return Nn(),us(n)&&(n=n.catch(o=>{throw Ln(t),o})),[n,()=>Ln(t)]}function pb(e,t,n){const o=arguments.length;return o===2?je(t)&&!fe(t)?Bo(t)?xe(e,null,[t]):xe(e,t):xe(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Bo(n)&&(n=[n]),xe(e,t,n))}const hb=Symbol("ssrContext"),mb=()=>{{const e=wi(hb);return e||Y("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Aa(e){return!!(e&&e.__v_isShallow)}function gb(){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 je(h)?h.__isVue?["div",e,"VueInstance"]:nt(h)?["div",{},["span",e,d(h)],"<",c(h.value),">"]:eo(h)?["div",{},["span",e,Aa(h)?"ShallowReactive":"Reactive"],"<",c(h),`>${On(h)?" (readonly)":""}`]:On(h)?["div",{},["span",e,Aa(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 b=[];h.type.props&&h.props&&b.push(r("props",Se(h.props))),h.setupState!==He&&b.push(r("setup",h.setupState)),h.data!==He&&b.push(r("data",Se(h.data)));const k=u(h,"computed");k&&b.push(r("computed",k));const A=u(h,"inject");return A&&b.push(r("injected",A)),b.push(["div",{},["span",{style:o.style+";opacity:0.66"},"$ (internal): "],["object",{object:h}]]),b}function r(h,b){return b=tt({},b),Object.keys(b).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},h],["div",{style:"padding-left:1.25em"},...Object.keys(b).map(k=>["div",{},["span",o,k+": "],c(b[k],!1)])]]:["span",{}]}function c(h,b=!0){return typeof h=="number"?["span",t,h]:typeof h=="string"?["span",n,JSON.stringify(h)]:typeof h=="boolean"?["span",o,h]:je(h)?["object",{object:b?Se(h):h}]:["span",n,String(h)]}function u(h,b){const k=h.type;if(ye(k))return;const A={};for(const S in h.ctx)f(k,S,b)&&(A[S]=h.ctx[S]);return A}function f(h,b,k){const A=h[k];if(fe(A)&&A.includes(b)||je(A)&&b in A||h.extends&&f(h.extends,b,k)||h.mixins&&h.mixins.some(S=>f(S,b,k)))return!0}function d(h){return Aa(h)?"ShallowRef":h.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}const Xu="3.2.47",wb="http://www.w3.org/2000/svg",uo=typeof document<"u"?document:null,Zu=uo&&uo.createElement("template"),bb={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?uo.createElementNS(wb,e):uo.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&i.setAttribute("multiple",o.multiple),i},createText:e=>uo.createTextNode(e),createComment:e=>uo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>uo.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{Zu.innerHTML=o?`<svg>${e}</svg>`:e;const c=Zu.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 yb(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 vb(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&&Sa(o,s,"");for(const s in n)Sa(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 _b=/[^\\];\s*$/,Qu=/\s*!important$/;function Sa(e,t,n){if(fe(n))n.forEach(o=>Sa(e,t,o));else if(n==null&&(n=""),_b.test(n)&&Y(`Unexpected semicolon at the end of '${t}' style value: '${n}'`),t.startsWith("--"))e.setProperty(t,n);else{const o=xb(e,t);Qu.test(n)?e.setProperty(sn(o),n.replace(Qu,""),"important"):e[o]=n}}const ed=["Webkit","Moz","ms"],Oa={};function xb(e,t){const n=Oa[t];if(n)return n;let o=Kt(t);if(o!=="filter"&&o in e)return Oa[t]=o;o=Jn(o);for(let i=0;i<ed.length;i++){const s=ed[i]+o;if(s in e)return Oa[t]=s}return t}const td="http://www.w3.org/1999/xlink";function Cb(e,t,n,o,i){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(td,t.slice(6,t.length)):e.setAttributeNS(td,t,n);else{const s=Dm(t);n==null||s&&!bc(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function $b(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=bc(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 fo(e,t,n,o){e.addEventListener(t,n,o)}function kb(e,t,n,o){e.removeEventListener(t,n,o)}function Eb(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]=Ab(t);if(o){const f=s[t]=Pb(o,i);fo(e,c,f,u)}else r&&(kb(e,c,r,u),s[t]=void 0)}}const nd=/(?:Once|Passive|Capture)$/;function Ab(e){let t;if(nd.test(e)){t={};let o;for(;o=e.match(nd);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):sn(e.slice(2)),t]}let Pa=0;const Sb=Promise.resolve(),Ob=()=>Pa||(Sb.then(()=>Pa=0),Pa=Date.now());function Pb(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Ft(Ib(o,n.value),t,5,[o])};return n.value=e,n.attached=Ob(),n}function Ib(e,t){if(fe(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 od=/^on[a-z]/,Tb=(e,t,n,o,i=!1,s,r,c,u)=>{t==="class"?yb(e,o,i):t==="style"?vb(e,n,o):ti(t)?ls(t)||Eb(e,t,n,o,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Mb(e,t,o,i))?$b(e,t,o,s,r,c,u):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Cb(e,t,o,i))};function Mb(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&od.test(t)&&ye(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||od.test(t)&&We(n)?!1:t in e}const Us=e=>{const t=e.props["onUpdate:modelValue"]||!1;return fe(t)?n=>So(t,n):t};function Bb(e){e.target.composing=!0}function id(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ke={created(e,{modifiers:{lazy:t,trim:n,number:o}},i){e._assign=Us(i);const s=o||i.props&&i.props.type==="number";fo(e,t?"change":"input",r=>{if(r.target.composing)return;let c=e.value;n&&(c=c.trim()),s&&(c=Hr(c)),e._assign(c)}),n&&fo(e,"change",()=>{e.value=e.value.trim()}),t||(fo(e,"compositionstart",Bb),fo(e,"compositionend",id),fo(e,"change",id))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:i}},s){if(e._assign=Us(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(i||e.type==="number")&&Hr(e.value)===t))return;const r=t==null?"":t;e.value!==r&&(e.value=r)}},Me={deep:!0,created(e,t,n){e._assign=Us(n),fo(e,"change",()=>{const o=e._modelValue,i=Lb(e),s=e.checked,r=e._assign;if(fe(o)){const c=yc(o,i),u=c!==-1;if(s&&!u)r(o.concat(i));else if(!s&&u){const f=[...o];f.splice(c,1),r(f)}}else if(cs(o)){const c=new Set(o);s?c.add(i):c.delete(i),r(c)}else r(rd(e,s))})},mounted:sd,beforeUpdate(e,t,n){e._assign=Us(n),sd(e,t,n)}};function sd(e,{value:t,oldValue:n},o){e._modelValue=t,fe(t)?e.checked=yc(t,o.props.value)>-1:cs(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=as(t,rd(e,!0)))}function Lb(e){return"_value"in e?e._value:e.value}function rd(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Nb={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Db=(e,t)=>n=>{if(!("key"in n))return;const o=sn(n.key);if(t.some(i=>i===o||Nb[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):ki(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),ki(e,!0),o.enter(e)):o.leave(e,()=>{ki(e,!1)}):ki(e,t))},beforeUnmount(e,{value:t}){ki(e,t)}};function ki(e,t){e.style.display=t?e._vod:"none"}const Rb=tt({patchProp:Tb},bb);let ad;function Fb(){return ad||(ad=Gw(Rb))}const Lo=(...e)=>{const t=Fb().createApp(...e);jb(t),Ub(t);const{mount:n}=t;return t.mount=o=>{const i=Hb(o);if(!i)return;const s=t._component;!ye(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 jb(e){Object.defineProperty(e.config,"isNativeTag",{value:t=>Lm(t)||Nm(t),writable:!1})}function Ub(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 Hb(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 zb(){gb()}zb();const qb={key:0,class:"ce-custom-url-help"},Vb={class:"ce-custom-url-help-body"},Wb=m("hr",null,null,-1),Kb={key:0},Gb={class:"pure-table pure-table-bordered"},Jb=m("thead",null,[m("tr",null,[m("th",{width:"50%"},"变量"),m("th",{width:"50%"},"说明")])],-1),Yb=["onClick"],Xb=Ue({__name:"CustomUrlHelp",setup(e){const t=_e(am),n=_e(!1);Zt(async()=>{window.addEventListener("message",i=>{const{event:s}=i.data;s==="customUrlHelp"&&(n.value=!0)},!1)});const o=i=>{Wo(i.key),me({text:"已复制到剪贴板",icon:"success",timer:1e3})};return(i,s)=>n.value?(Q(),ne("div",qb,[m("div",Vb,[m("h1",null,[le(" 自定义菜单变量说明 "),m("a",{href:"javascript:void(0)",onClick:s[0]||(s[0]=r=>n.value=!1)},"关闭")]),Wb,(Q(!0),ne(ze,null,Et(t.value,(r,c)=>(Q(),ne("div",{key:c},[m("h2",null,be(r.label),1),r.memo?(Q(),ne("p",Kb,be(r.memo),1)):Ze("",!0),m("table",Gb,[Jb,m("tbody",null,[(Q(!0),ne(ze,null,Et(r.items,(u,f)=>(Q(),ne("tr",{key:f},[m("td",null,[m("span",{class:"ce-variable",onClick:d=>o(u)},be(u.key),9,Yb)]),m("td",null,be(u.label),1)]))),128))])])]))),128))])])):Ze("",!0)}}),lE="",cE="",ld="enabled_custom_urls_for_search",cd="enabled_custom_urls_for_play";async function Zb(e){await dt.set(ld,e)}async function Qb(e){await dt.set(cd,e)}async function ey(){const e=Ba,t=e.filter(i=>i.enabled).map(i=>i.key),n=await dt.get(ld,t),o=[];return e.forEach(i=>{n.includes(i.key)&&o.push(i.key)}),o}async function ty(){const e=Ma,t=e.filter(i=>i.enabled).map(i=>i.key),n=await dt.get(cd,t),o=[];return e.forEach(i=>{n.includes(i.key)&&o.push(i.key)}),o}async function ud(){const e=await ey();return Ba.forEach(t=>{t.enabled=e.includes(t.key)}),Ba}async function Ia(){const e=await ty();return Ma.forEach(t=>{t.enabled=e.includes(t.key)}),Ma}const dd="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=",Ta="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAACAlJREFUaEPtmWuIXVcVx3/7vt9zJ5NOZ5JGkxQDEZroF7WxYGILGoWmLxXamtG0RUhoLSiW4hdFPxRFSytJLVpNRqTE2qq1WqiFGbWhNiCSIClU1EZj0ySTedz3uY+zZN19bjL3zn1NckcNeODAuTPn7L3/6/Ff/7W34Qq/zBW+fv4P4L/tweV4wAf4vVuf9V7O992wCuB6dw3QW3/3vPpZQODYsWM7t2zZ8nzP0Qb4wvHjx2/eunXri0C127C9AMRFJDfAdS17KGNMAsh3+rAbgKSIZJY94wp8YIxJAdl2Q3cCEBIRZwXWcslDGmPCQLl1gHYAzNTU1O3bt29/pr/ZNP8AEXvXRzRg9KFXhPY3g741PT39iR07djyrMy3+qt0MfVrfW7DU4LVHkX8cAX8QXBfExdxxGEwAfIMjq3ZeaAcgJSIL3W2ji3ehVoGnd0E0idQX6l3672oV3+rNsOMr4At4/7g8jxhjhoCmvGw34qiInOkKQK3uVuEHNyGRmAVSydu/GR8SjEIwDr4wUnHw3/1zC8JcnjeMMVcDZ3uF0DUi8s/OAMQutJSFgzuRWhmK8+DkkIpStoFQBOJpiK9GIkkQg/9j34CRTeDTWnhpnjDGrANO9QLwThF5szMAF6pleOJGyJ1BnBw4WSiVEVeTNwCuQDiEJNOQHoX4MAQimFAM3ycnPW8sP8mNMeuBk70AbBCRv3UEoOFTKcHXNuG8WSJ/tAiOgxEX/5oUiW0pqDgWWNBAMoUMj2CSV0EkAbUa/omfQiC87JAyxmwE/n75AJwCPLyOuRdKmFoVqdYsc0ZjpH/5ErUn7wF9x5kHKSPJGKRXwdAohNOIBPC/93Z877vTS/D+QmqAAPJkP7gWd76AiGA8atan9KtvgJNBfvUY7okjUJxDakWI+pHEECRHkdgI4o+CUyP8hefA31+CDxbADeOQL9TLilaWug0FkkdPWw8XFqCUofrtT9cBUVygpgJTKTc5AhpS4RRSFqJf/CFEV/VM8IECKHx4DMkXl6RK/NVZ8IcstZZykD1L9bE9yPw8bka9UUaCYdxkGpMahdgqYtcFYWgDfORbXUNqoABKH28B4LkhOj0PoZiVFRXH5kL2LPLX1yh//xHcbAa3qLrMhxsbwqRGSNy4GkwIYmvh1ic7ghgoAOe2MShZD9QlkJeH4V8rAC1iPisrlHIrRdBF52YoPHQn5PLUchncSgXxx0nfscqGkOuDPS9bhrpQvS86eaAAKnePQbFog3+RvAo+2wCgBcvTS7WqpV4nD5mzOI8/ROXPr1M7N0voHWWi74lAZBj8Mdj2eXj/HqurWgreQAFU93gAWrIg8HQDgOqfBjKt3lo/HCgXIDMDc6dwf3wXPpm1C/VHLID0RnhgGgIhr2tdIQ/U7hkDpyWEfOCfXAxgkbpTMPWQcmw4PXU95DKQX4CqCkM/KLWuvx4+9zMrR+pt9woBcO8bQ4rFeuw37Gz84DvYBYCG0us/gT9+F7LnYe4MZLJQrIIEIZSCh/8Aw2sguOIAxqFQuLg3obkQMPiemvOSuCGhG9K7Cs/fYjc1ijk4/xbMKACt2KZeoQlH4ctHITa08iHk7rsWk80gbgWMYFS8hQP49r+1CIAX+8UZmLoXVOwVsjD7NszOQEaFoA9CwxBKwt5nYHgdRJTFlARWKoQ0EX/xVeTlw5bnTQ3iUcz6a+GBF0H7AdX+KrtfeRDyp6BagfwczJ2F+TnIFMGNQGgEQgn47CSk19QrdZ2B2vQOg2EhlQPlEuTOIY/stDrGJ+CvYO5/AYbGrfuVdV66FQhCOQ+587BwDhYyUNA9qwSE0rD9Qdh4AwyNQThuv613d83W11QeHABNxlIesqctGL1CYUiOWeufOQInHrdtZ3EBFtTqs5DNQSUEgTQEEnDXJMRHIJq2rKOWv9BDL1WogwOgpbdRnCq60yEQCFpvTH3KVlGly/yMtXpmAXJlkBgEh2F0M3z065BQeR23i9eYv7CT0V5eDwiAmlt3Hjx2UW7XcKkW4JUJ63pVnzlNUg0ZTVQtVEMQTMGuJyA1DonVEIp6smFxr9y5N+gXwHoRaep6lnZnLRU2dxp+fy/4DJTm6/nBwhyoWq1ELEUGE3DbjzwZnbA8r17rYfWWQrYBaGp328Ht0RMvHtK18uC5bVYKaLLmz0M+A44mqoZHGq7bDZt31ZuZulINhm241a/+e+N+e+K1ItLU+Xftj5VSD38AnDKU5mxxcwMQ0pBJwi2TENNE1d9q9QbLNGzXXzvpsdA1wL969cRXiUjT3ktHAMrzCuB3X4KTv4VCHqpirZxYAzc9Cqmr7W+N9z4SteNclkZHgXO9ACREpO1O8JLBGzsUGvN/OgAnf2OF2Ye+CUPrIK5toyaqWn3xflD/Vm/JgSTQtN3fbqTAoUOHPrN79+7vdbOG/Z+qyKqtxsr3yj56aXOi9HgJidppzsnJyfsmJiYOth54tN2dBnR78e3eABpUqjRatmCUVTRBL1h9eYnaaU5jzJi3rdhzd1rHUIp4l4ic6A3CO8rSetBYa9P2+qWFS0vovBv4S7vjpm6j64HCJhE53htEk1EWvT6QxW8B3gDaHrj0mkEb0/H9+/ffvHfv3u/0BjK4Nw4cOHD/vn379GBRN5oqHUOrjykVpLZHaUD35/V5acPax0A9XtEYVGGl6lDPJ+a9507uvRixy5hbwTSESy/vLWPY+qu60MZ5cddFN+XHcmf5X3t/0Fb8j+O74gH8G0lHhV4uXv6RAAAAAElFTkSuQmCC",Ma=[ct({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}"}),ct({enabled:!0,key:"p_builtin_vlc",label:"VLC播放",icon:"https://images.videolan.org/images/favicon.ico",memo:"调用VLC播放视频(使用CloudDrive链接)",extraMemo:'<a href="https://github.com/stefansundin/vlc-protocol" target="_blank" rel="noreferer">安装VLC协议</a>',url:"vlc://{clouddrive_stream_url}"}),ct({enabled:!0,key:"p_builtin_mpv",label:"MPV播放",icon:"https://mpv.io/images/mpv-logo-128-0baae5aa.png",memo:"调用MPV播放视频(使用CloudDrive链接)",extraMemo:'<a href="https://github.com/akiirui/mpv-handler/blob/main/README.zh-Hans.md" target="_blank" rel="noreferer">安装MPV协议</a>',url:"mpv://{clouddrive_stream_url}"}),ct({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}"}),ct({enabled:!0,key:"p_builtin_infuse",label:"Infuse播放",icon:Ta,memo:"调用Infuse播放视频(使用CloudDrive链接)",url:"infuse://x-callback-url/play?url={clouddrive_stream_url:encode}"}),ct({enabled:!1,key:"p_builtin_nplayer_mac",label:"nPlayer-mac播放",icon:Ta,memo:"调用nPlayer(mac版)播放视频(使用CloudDrive链接)",url:"nplayer-mac://weblink?url={clouddrive_stream_url:encode}&new_window=1"}),ct({enabled:!1,key:"p_builtin_nplayer_win",label:"nPlayer-win播放",icon:Ta,memo:"调用nPlayer(非mac版)播放视频(使用CloudDrive链接)",url:"nplayer-{clouddrive_stream_url:encode}"}),ct({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"})],Ba=[ct({enabled:!0,key:"s_builtin_115_pure_name",label:"115-不含后缀",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(不含后缀)",url:"{pure_name:search}"}),ct({enabled:!1,key:"s_builtin_115_full_name",label:"115-完整名称",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(完整文件名)",url:"{full_name:search}"}),ct({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}"}),ct({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}"}),ct({enabled:!0,key:"s_builtin_bing_pure_name",label:"Bing-不含后缀",icon:dd,memo:"使用Bing搜索文件名(不含后缀)",url:"https://cn.bing.com/search?q={pure_name:encode}"}),ct({enabled:!1,key:"s_builtin_bing_full_name",label:"Bing-完整名称",icon:dd,memo:"使用Bing搜索文件名(完整文件名)",url:"https://cn.bing.com/search?q={full_name:encode}"}),ct({enabled:!0,key:"s_builtin_115_pure_name_manual",label:"115-不含后缀-手动",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(不含后缀),手动编辑后搜索",url:"{pure_name:manual:search}"})];async function ny(e,t){const n=[];for(const o of t){const i=hr(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 Kn();if(!c)return;const u=await Wt(c),f=await zi(),d=await Nr(u,o,f);if(d.includes("v.anxia.com")){const b=(await ts(!1)).find(k=>k.play_long&&k.play_long>0);Rr(u.cate_id,b);return}if(console.log("[play url]",d),!d)throw new Error("无法获取有效的播放链接!");window.open(d,"_blank","noopener noreferrer")}catch(c){console.error(c),me({title:"播放失败",text:c.toString(),icon:"error"})}}});n.push(i)}return n}async function oy(){const e=[...(await Ia()).filter(t=>t.enabled),...(await ei($n.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 ny(mm,e)]})}async function iy(){return new Dt({key:"_rename_dir",label:"重命名文件夹",icon:"icon-operate ifo-rename",title:'重命名当前目录,支持"高级模式"',onClick:async(e,t)=>{await e.closeMenu();const n=await Kn();!n||unsafeWindow.Core.Dir.Rename("1",n.attr("cate_id"),n.attr("title"))}})}async function sy(){return new Dt({key:"_move_dir",label:"移动文件夹",icon:"icon-operate ifo-move",title:"移动当前文件夹到其他位置",onClick:async(e,t)=>{await e.closeMenu();const n=await Kn();!n||await Br(n,"move",!0)}})}async function ry(){return new Dt({key:"_del_dir",label:"删除文件夹",icon:"icon-operate ifo-remove",title:"删除当前文件夹",onClick:async(e,t)=>{await e.closeMenu();const n=await Kn();if(!n)return;const o=await es();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 ay(){return new Dt({key:"_copy_dir",label:"复制文件夹",icon:"icon-operate ifo-copy",title:"复制当前文件夹",onClick:async(e,t)=>{await e.closeMenu();const n=await Kn();!n||await Br(n,"set_copy",!0)}})}async function ly(){return new Dt({key:"_copy_dir_to",label:"复制文件夹到",icon:"icon-operate ifo-copyto",title:"复制当前文件夹到其他位置",onClick:async(e,t)=>{await e.closeMenu();const n=await Kn();!n||await Br(n,"copy_list",!0)}})}async function cy(){return new Dt({key:"view_dir_attribute",label:"查看属性",icon:"icon-operate ifo-prop",onClick:async(e,t)=>{await e.closeMenu();const n=await Kn();!n||Qo().Core.FileAPI.getAttribute(n,{showPlayLongChange:function(o,i,s){Yh().CACHE.FileMain.List.ResetPlayLongText(o,i,s)}},function(){console.log("查看属性 ok")})}})}async function uy(){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 Vt(!1),r=await Eo(),c=await ts(!1);console.log("[items]",c),me({title:"正在获取子文件夹大小",html:"请稍候...",timer:0,position:"top-end"}),we.showLoading();for(let u=0;u<c.length;u++){const f=c[u];if(!f.cate_id)continue;we.update({html:`[${u+1} / ${c.length}] 正在获取子文件夹大小:${f.n}`});const d=await Mr(f.cate_id),h=r.find(`li[cate_id="${f.cate_id}"]`);!h.length||(h.find(".file-size span").text(d.size),u<c.length-1&&await zt(80))}we.hideLoading(),await i(s),await zt(500),await o(s,"desc")},o=async(s,r)=>{const c=await Eo(),u=await Vt(!1),f=c.find('li:[file_type="0"]:eq(0) .file-size'),d=f.length&&f.text()==="";if(s!==u||d){const{isConfirmed:A}=await me({icon:"warning",html:"目录列表发生变化,无法进行排序!",showConfirmButton:!0,confirmButtonText:"获取当前子目录大小",showCancelButton:!0,cancelButtonText:"关闭",timer:6e4});A&&await n();return}const h=c.find("ul"),b=h.children("li").toArray();b.sort(function(A,S){const W=$(A),z=$(S),I=bl(W.find(".file-size span").text()),L=bl(z.find(".file-size span").text());return r==="asc"?I-L:L-I});const k=$("<ul></ul>");$.each(b,function(A,S){k.append(S)}),h.replaceWith(k),we.update({html:`已完成排序: ${r==="asc"?"小 > 大":"大 > 小"}`})},i=async s=>{we.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 Hs(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 ts(!1)).map(r=>r.n);s=await rs(s,t),Wo(s.join(`
`)),me({title:"复制名称",text:`已复制选中文件名。数量:${s.length},复制类型:${e}`,icon:"success"})}})}async function zs(e,t){return new gc({key:`_l_copy_names_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制名称",onClick:async(n,o)=>{await n.closeMenu();const i=await im();if(!i||!i.n){me({text:"无法获取名称称",timer:1200});return}let s=[i.n];s=await rs(s,t),Wo(s.join(`
`)),me({title:"复制名称",text:`已复制选中文件名。数量:${s.length},复制类型:${e}`,icon:"success"})}})}let dy=[];async function fy(){const e=[...(await Ia()).filter(t=>t.enabled),...(await ei($n.play)).filter(t=>t.enabled)];return new is({key:"_play_with_x_d",label:"播放",injectDecider:xm,title:"115在线播放",onClick:async(t,n)=>{n.stopPropagation(),n.preventDefault();const o=$(n.target).closest("li"),i=await Wt(o),s=dc(i.pc);i.cate_id&&s.includes("v.anxia.com")?Rr(i.cate_id):window.open(s,"_blank","noopener noreferrer")},subItems:[...await Em(Dr,e)]})}async function py(){const e=[...(await ud()).filter(t=>t.enabled),...dy.filter(t=>t.enabled),...(await ei($n.search)).filter(t=>t.enabled)];return new is({key:"_search_with_name_d",label:"搜索",icon:"",title:"使用名称搜索",onClick:async(t,n)=>{n.stopPropagation(),n.preventDefault();const o=$(n.target).closest("li"),i=await Wt(o),s=Lr({search_value:i.n,cid:await Vt()});window.open(s,"_blank","noopener noreferrer")},subItems:[...await km(Dr,e)]})}async function hy(){return new is({key:"_lh_copy_names_",label:"文件名",title:"复制名称",onClick:async(e,t)=>{},subItems:[await fd("完整名称",mt.full),await fd("不含后缀",mt.pure)]})}async function fd(e,t){return new Dr({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 Wt(i)).n];r=await rs(r,t),Wo(r.join(`
`)),me({title:"复制名称",text:`已复制选中文件名,复制类型:${e}`,icon:"success"})}})}async function my(){return new is({injectDecider:_m,key:"_open_in_new_tab",label:"新标签页",icon:"",title:"在新标签页打开",onClick:async(e,t)=>{t.stopPropagation(),t.preventDefault();const n=$(t.target).closest("li"),o=await Wt(n);if(!o||!o.cate_id){me({text:"无法获取目录ID",timer:1200});return}const i=uc(o.cate_id);window.open(i,"_blank","noopener noreferrer")}})}async function gy(){return new wc({key:"_s_smart_mkdir",label:"同名目录",icon:"icon-operate ifo-move",title:"将选中的文件移动到同名目录",onClick:await Am(!0)})}async function wy(){return new wc({key:"_s_copy_names",label:"复制名称",icon:"icon-operate ifo-copy",title:"复制选中的文件或目录的名称",onClick:async(e,t)=>{},subItems:[await qs("完整名称",mt.full),await qs("不包含后缀名",mt.pure),await qs("完整文件名,去重",mt.fullUnique),await qs("不包含后缀名,去重",mt.pureUnique)]})}async function qs(e,t){return new gm({key:`_s_copy_names_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制名称",onClick:async(n,o)=>{let s=(await ts(!0)).map(r=>r.n);s=await rs(s,t),Wo(s.join(`
`)),me({title:"复制名称",text:`已复制选中文件名。数量:${s.length},复制类型:${e}`,icon:"success"})}})}const pd={label:"选中项菜单",key:"selection",selector:"div.list-operate.lo-right",itemSelector:"li[menu={key}]",items:[{enabled:!0,label:"下载",key:"download"},{enabled:!0,label:"移动",key:"move"},{enabled:!0,label:"标签",key:"edit_file_label"},{enabled:!0,label:"重命名",key:"edit_name"},{enabled:!0,label:"备注",key:"edit"},{enabled:!0,label:"星标",key:"star"},{enabled:!0,label:"删除",key:"delete"},{enabled:!0,label:"分享",key:"public_share"},{enabled:!0,label:"设置共享",key:"setShare"},{enabled:!0,label:"取消共享",key:"cancelShare"},{enabled:!0,label:"复制",key:"set_copy"},{enabled:!0,label:"复制到...",key:"copy_list"},{enabled:!0,label:"加密隐藏",key:"hide_file"},{enabled:!0,label:"取消加密",key:"show_file"},{enabled:!0,label:"设为快捷入口",key:"set_category"},{enabled:!0,label:"显示时长",key:"show_play_long"},{enabled:!0,label:"修改封面",key:"cover"},{enabled:!0,label:"一键排重",key:"same"},{enabled:!0,label:"导出目录树",key:"export_dir"},{enabled:!0,label:"显示属性",key:"attribute"},{enabled:!0,label:"转存至相册",key:"trans_to_album"},{enabled:!0,label:"更多",key:"operate_more"}]},hd={label:"列表项右键菜单",key:"context",selector:"div.context-menu.menu-upward",itemSelector:"li[val={key}]",items:[{enabled:!0,label:"打开文件",key:"view"},{enabled:!0,label:"打开文件夹",key:"open_dir"},{enabled:!0,label:"下载文件",key:"download"},{enabled:!0,label:"下载文件夹",key:"download_dir"},{enabled:!0,label:"打包下载",key:"bale_download"},{enabled:!0,label:"刷新",key:"refresh"},{enabled:!0,label:"复制",key:"set_copy"},{enabled:!0,label:"复制到...",key:"copy_list"},{enabled:!0,label:"加密隐藏",key:"hide_file"},{enabled:!0,label:"取消加密",key:"show_file"},{enabled:!0,label:"显示时长",key:"show_play_long"},{enabled:!0,label:"取消时长",key:"hide_play_long"},{enabled:!0,label:"添加到我听",key:"listen"},{enabled:!0,label:"美化",key:"magic"},{enabled:!0,label:"修改封面",key:"cover"},{enabled:!0,label:"删除封面",key:"del_cover"},{enabled:!0,label:"一键排重",key:"same"},{enabled:!0,label:"移动",key:"move"},{enabled:!0,label:"重命名",key:"edit_name"},{enabled:!0,label:"备注",key:"edit"},{enabled:!0,label:"显示属性",key:"attribute"},{enabled:!0,label:"删除",key:"delete"},{enabled:!0,label:"播放器播放",key:"player"},{enabled:!0,label:"转存到相册",key:"trans_to_album"},{enabled:!0,label:"举报",key:"report"}]},md={label:"列表项悬浮菜单",key:"hover",selector:"div.file-opr[rel=menu]",itemSelector:"a[menu={key}]",items:[{enabled:!0,label:"星标",key:"star"},{enabled:!0,label:"下载文件",key:"download_one"},{enabled:!0,label:"下载文件夹",key:"download_dir_one"},{enabled:!0,label:"移动",key:"move"},{enabled:!0,label:"标签",key:"edit_file_label"},{enabled:!0,label:"重命名",key:"edit_name"},{enabled:!0,label:"备注",key:"edit"},{enabled:!0,label:"删除",key:"delete"},{enabled:!0,label:"分享",key:"public_share"},{enabled:!0,label:"设置共享",key:"setShare"},{enabled:!0,label:"取消共享",key:"cancelShare"},{enabled:!0,label:"复制",key:"set_copy"},{enabled:!0,label:"更多",key:"more",selector:'[menu_btn="more"]'}]},gd="enabled_official_menu_keys";async function by(){let e=await dt.get(gd,["__default__"]);return e.length===1&&e[0]==="__default__"&&(e=await bd([pd,hd,md]),await wd(e)),e}async function wd(e){await dt.set(gd,e)}async function bd(e){const t=[];return e.forEach(n=>{n.items.forEach(o=>{o.enabled&&t.push(`${n.key}_${o.key}`)})}),t}async function yd(){const e=[pd,hd,md],t=await by();return e.forEach(n=>{n.items.forEach(o=>{const i=`${n.key}_${o.key}`;t.includes(i)||o.enabled===void 0?o.enabled=!0:o.enabled=!1})}),e}async function yy(){const e=await yd(),t=[];return e.forEach(n=>{n.items.forEach(o=>{if(o.enabled)return;if(o.selector){t.push(`${n.selector} ${o.selector} { display: none !important; }`);return}const i=n.itemSelector.replace("{key}",o.key);t.push(`${n.selector} ${i} { display: none !important; }`)})}),t.join(`
`)}async function vy(){const e="cloud115EnhancerOfficialMenuStyle",t=await yy();let n=document.getElementById(e);if(n){n.innerHTML=t;return}n=document.createElement("style"),n.id=e,n.innerHTML=t,document.body.appendChild(n)}async function _y(){const{host:e,search:t}=location;if(!e.includes("115.com"))return;console.log("[Cloud115 Enhancer - menu] running..."),xy(),Cy(),document.addEventListener(Nt.EVENT_CLOSE_MENU,o=>{$("#"+o.detail.menu.key).closest(".context-menu").hide()});const n=await mc();!n.enabled||(await Cm(n),window.top===window.self&&$y(n),Ey(n),(t.includes("ct=file")||t.includes("mode=search"))&&(ky(n),Ay(n),await $m(n)))}async function xy(){console.log("[Cloud115 Enhancer - menu] injectUI");const e="ceCustomUrlHelp",t=document.createElement("div");t.id=e,document.body.appendChild(t),Lo(Xb).mount(`#${e}`)}async function Cy(){vy()}const La=async(e,t)=>{};async function $y(e){const{[Ae.dirContext]:t}=e;if(!t.enabled)return;const n=[];t.rename&&n.push(await iy()),t.delete&&n.push(await ry()),t.play&&n.push(await oy()),t.copyNames&&n.push(new Dt({key:"_dir_copy_names",label:"复制名称",icon:"icon-operate ifo-copy",onClick:La,subItems:[await Hs("完整名称",mt.full),await Hs("不包含后缀名",mt.pure),await Hs("完整名称,去重",mt.fullUnique),await Hs("不包含后缀名,去重",mt.pureUnique)]}));const o=[];t.move&&o.push(await sy()),t.viewProp&&o.push(await cy()),t.showSubFolderSize&&o.push(await uy()),t.copy&&o.push(await ay()),t.copyTo&&o.push(await ly()),o.length===1?n.push(o[0]):o.length>1&&n.push(new Dt({key:"_dir_more",label:"更多",icon:"icon-operate ifo-open",onClick:La,subItems:o})),await new wm({items:n,siblingSelector:'[val="add_dir"]',position:Wn.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 ky(e){const{[Ae.listItemHover]:t}=e;if(!t.enabled)return;const n=[];t.openInNewTab&&n.push(await my()),t.search&&n.push(await py()),t.play&&n.push(await fy()),t.copyNames&&n.push(await hy()),new ym({items:n,position:Wn.after,siblingSelector:'[menu="move"]'}).inject()}async function Ey(e){const{[Ae.listItemContext]:t}=e;if(!t.enabled)return;await zi();const n=[];t.copyNames&&n.push(new gc({key:"_list_item_copy_names",label:"复制名称",icon:"icon-operate ifo-copy",onClick:La,subItems:[await zs("完整名称",mt.full),await zs("不包含后缀名",mt.pure),await zs("完整名称,去重",mt.fullUnique),await zs("不包含后缀名,去重",mt.pureUnique)]})),new bm({items:n,position:Wn.after,siblingSelector:'[val="refresh"]',useObserver:!0,observeTarget:document.body,disposeObserverAfterInjection:!1}).inject()}async function Ay(e){const{[Ae.selection]:t}=e;if(!t.enabled)return;const n=[];location.search.includes("ac=search")||t.moveToSelfNameDir&&n.push(await gy()),t.copyNames&&n.push(await wy()),new vm({items:n,position:Wn.before,siblingSelector:"ul li"}).inject()}const vd="offlineExporterConfig";function Sy(e){return{onlyMagnet:!1,onlyMagnetEd2k:!1,enableOptimization:!0,reqInterval:500,showInfoHash:!0,enableListManagement:!0,...e}}async function Na(){const e=Sy(),t=await dt.get(vd,e);return{...e,...t}}async function Oy(e){await dt.set(vd,e)}async function Py(e){const t=await Ko("#js-warp"),o=t[0].querySelectorAll("li[complete]");o.length>0&&o.forEach(async s=>{await _d(s,e)}),By(e),new MutationObserver(async([s])=>{if(s.type==="childList"){s.addedNodes.forEach(async c=>{await _d(c,e)});const r=document.querySelector(".ce-checkbox-all input");r.checked=!1}}).observe(t[0],{childList:!0})}async function Iy(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 _d(e,t){const n=e,o=await Iy(e);Ly(n,t,o),Ty(n,t,o),My(n,t,o)}async function Ty(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",()=>{Fi(n.hash,"text"),me({text:"已复制",icon:"success",timer:800})});const s=e.querySelector(".desc-tips");s&&s.style.display!=="none"&&e.classList.add("ce-task-trouble")}async function My(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=uc(n.cate_id),s.target="_blank",s.textContent="打开",s.title="在新标签页打开目录",i.append(s),o.prepend(i)}async function By(e){if(!e.enableListManagement)return;const t=await Ko("#js-main .header-name");if(t.length===0){console.warn("[renderCheckboxAll] 找不到`#js-main .header-name`");return}const n=t[0];let o=n.querySelector(".ce-checkbox-all");o||(o=document.createElement("div"),o.classList.add("ce-checkbox"),o.classList.add("ce-checkbox-all"),o.innerHTML=`
<input type="checkbox"/>
`,n.prepend(o)),o.addEventListener("click",()=>{const i=o.querySelector("input").checked;document.querySelectorAll("#js-warp li").forEach(r=>{const c=r.querySelector("input");c.checked=i,r.classList.toggle("ce-selected",i)}),xd().then(r=>{$d(r)})})}async function Ly(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,xd().then(u=>{$d(u)})})}async function Ny(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 xd(){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 Ny(o);t.push(i)}}),t}var Cd=(e=>(e.selection="cd-offline-selection",e))(Cd||{});async function $d(e){window.postMessage({event:"cd-offline-selection",body:e},"*")}async function kd(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 Dy={class:"ce-config ce-offline-config"},Ry={class:"pure-form pure-form-aligned offline-exporter-config-form"},Fy={class:"pure-control-group"},jy=m("label",{for:"enableListManagement"},"启用批量管理",-1),Uy=m("div",{class:"pure-form-message text-success"}," 可以选中需要删除的离线任务进行批量删除。 ",-1),Hy={class:"pure-control-group"},zy=m("label",{for:"showInfoHash"},"显示链接哈希",-1),qy=m("div",{class:"pure-form-message text-success"}," 显示离线任务的哈希文本,点击可以复制。 ",-1),Vy=m("div",{class:"ce-tips"},"以下是导出链接相关选项",-1),Wy={class:"pure-control-group"},Ky=m("label",{for:"onlyMagnetEd2k"},"只取磁力和ED2K链接",-1),Gy=m("div",{class:"pure-form-message text-success"}," 导出链接时,只取磁力和ED2K链接,其他比如http链接会被略过。 ",-1),Jy={class:"pure-control-group"},Yy=m("label",{for:"enableOptimization"},"启用导出优化",-1),Xy=m("div",{class:"pure-form-message text-success"}," 据观察,离线记录列表是将未完成的记录放在最前面的。如果只需导出未完成链接, 当获取到一个已完成的记录时,便可以停止继续获取后面的记录,节省时间。 ",-1),Zy={class:"pure-control-group"},Qy=m("label",{for:"reqInterval"},"请求数据间隔",-1),ev=m("div",{class:"pure-form-message text-success"}," 请求分页的间隔,单位为毫秒,建议500左右。 ",-1),Ed=Ue({__name:"Config",async setup(e){let t,n;const o=_e(([t,n]=Dn(()=>Na()),t=await t,n(),t));return Xt(async()=>{}),kt(o,Vn(async i=>{await Oy(i),me({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"})},500),{deep:!0}),(i,s)=>(Q(),ne("div",Dy,[m("form",Ry,[m("fieldset",null,[m("div",Fy,[jy,ie(m("input",{id:"enableListManagement",type:"checkbox","onUpdate:modelValue":s[0]||(s[0]=r=>o.value.enableListManagement=r)},null,512),[[Me,o.value.enableListManagement]]),Uy]),m("div",Hy,[zy,ie(m("input",{id:"showInfoHash",type:"checkbox","onUpdate:modelValue":s[1]||(s[1]=r=>o.value.showInfoHash=r)},null,512),[[Me,o.value.showInfoHash]]),qy]),Vy,m("div",Wy,[Ky,ie(m("input",{id:"onlyMagnetEd2k",type:"checkbox","onUpdate:modelValue":s[2]||(s[2]=r=>o.value.onlyMagnetEd2k=r)},null,512),[[Me,o.value.onlyMagnetEd2k]]),Gy]),m("div",Jy,[Yy,ie(m("input",{id:"enableOptimization",type:"checkbox","onUpdate:modelValue":s[3]||(s[3]=r=>o.value.enableOptimization=r)},null,512),[[Me,o.value.enableOptimization]]),Xy]),m("div",Zy,[Qy,ie(m("input",{id:"reqInterval",type:"number","onUpdate:modelValue":s[4]||(s[4]=r=>o.value.reqInterval=r),min:100},null,512),[[Ke,o.value.reqInterval]]),ev])])])]))}}),uE="",tv={class:"cloud115-eh-offline-exporter"},nv={key:0},ov=m("button",{type:"button",class:"pure-button button-mini"},"设置",-1),iv=Ue({__name:"OflineExporter",setup(e){const t=`\r
`;let n,o;_e(!1);const i=_e([]);let s={};Zt(async()=>{console.log("fuckyou"),s=await Na(),n=await Uh(),console.log("[profile]",n),o=await jh(),console.log("[space]",o),r(),await Py(s)});async function r(){window.addEventListener("message",A=>{const{event:S,body:W}=A.data;S===Cd.selection&&(i.value=W)},!1)}async function c(A=!1,S=""){const{isConfirmed:W,value:z}=await we.fire({title:"根据链接删除离线任务",html:`
<div>每行一个链接,支持磁力链接和ED2K链接</div>
<div>
<label class="swal2-checkbox" style="display: flex;">
<input type="checkbox" id="swalDeleteFile">
<span class="swal2-label">同时删除文件</span>
</label>
</div>
<div>
<textarea id="swalUrls" aria-label="每行一个链接" class="swal2-textarea" placeholder="每行一个链接" style="width:80%;"></textarea>
</div>
`,focusConfirm:!1,didOpen:()=>{const X=document.getElementById("swalDeleteFile");X.checked=A;const ee=document.getElementById("swalUrls");ee.value=S,ee.focus()},preConfirm:()=>{const X=document.getElementById("swalDeleteFile"),ee=document.getElementById("swalUrls");return{deleteFile:X?X.checked:!1,urls:ee?ee.value:""}},width:620,inputPlaceholder:"每行一个",inputAttributes:{"aria-label":"每行一个"},showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消"});if(!W)return;if(z===void 0){alert("请输入链接!");return}const I=[],L=z.urls.trim().split(`
`);for(let X=0;X<L.length;X++){const ee=L[X].trim();if(ml(ee)||gl(ee)){const te=vp(ee);te&&I.push(te.toLowerCase())}}we.showLoading(),we.update({html:"正在删除..."}),await cc(I,o,z.deleteFile,n.user_id),me({icon:"success",title:"删除成功!请刷新页面查看最新的列表。",timer:3e4,position:"top-end"}),await kd(I)}async function u(){const A=i.value.map(I=>I.info_hash);if(!A.length)return;const{isConfirmed:S,value:W}=await we.fire({title:"批量删除",icon:"warning",html:`确定要删除选中的 ${A.length} 个离线记录吗?`,input:"checkbox",inputValue:0,inputPlaceholder:"同时删除文件",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消"});if(!S)return;const z=!!W;we.showLoading(),we.update({html:"正在删除..."}),await cc(A,o,z,n.user_id),me({icon:"success",title:"删除成功",timer:800,position:"top-end"}),await kd(A),i.value=[]}async function f(A){const S=[A];s.onlyMagnetEd2k&&S.push(Tt.magnetEd2k),console.log("[filters]",S),await k(o.sign,n.user_id,S)}function d(A,S){if(!S.length||S.length===1&&S[0]==="all")return A;const W={[Co.failed]:Tt.failed,[Co.illegal]:Tt.failed,[Co.ing]:Tt.failed,[Co.success]:Tt.success};return A=A.filter(z=>{if(!z.url&&!z.info_hash)return!1;const I=W[z.status];return S.includes(Tt.all)||I&&S.includes(I)?!(S.includes(Tt.magnetEd2k)&&(!_p(z.info_hash)||z.url&&!ml(z.url)&&!gl(z.url))):!1}),A}async function h(A,S,W){let z=[],I=1,L=0;for(;;){we.update({html:`正在导出... 进度:第 ${I} 页`+(L?` / ${L}`:"")});const X=await Fh(I,A,S);if(!X.tasks||!X.tasks.length)break;if(L=X.page_count,z=[...z,...d(X.tasks,W)],s.enableOptimization&&W.includes(Tt.failed)&&b(X.tasks)){console.warn("由于开启了导出优化,且检测到已获取的记录中至少有一个「已完成」的记录,将不再获取剩下的记录");break}if(I>=X.page_count)break;I++,await zt(s.reqInterval)}return z}function b(A){for(const S of A)if(S.status===Co.success)return!0;return!1}async function k(A,S,W){we.fire({title:"导出离线链接",html:"正在导出...",didOpen:()=>{we.showLoading()}});const z=await h(A,S,W);if(we.hideLoading(),!z.length){await we.fire({title:"导出失败",icon:"error",html:"查询不到符合条件的离线记录!"});return}const I=[];if(z.forEach(L=>{!L.url&&L.info_hash&&(L.url=yp(L.info_hash)),I.push(L.url)}),!I.length){await we.fire({title:"导出失败",icon:"error",html:"未完成的离线记录中没有磁力或HTTP链接!"});return}Fi(I.join(t),"text"),console.log("[links]",I),await we.fire({title:"导出成功",icon:"success",html:`成功导出 ${I.length} 个链接,请粘贴到文本文件。`,showDenyButton:!0,denyButtonText:"保存到txt",allowEscapeKey:!1,allowOutsideClick:!1,preDeny:async()=>(console.log("[saveAs]"),bp(I.join(t),`115离线链接_数量${I.length}_${Ui()}.txt`),!1)})}return(A,S)=>{const W=ro("VDropdown");return Q(),ne("span",tv,[i.value.length?(Q(),ne("span",nv,[m("button",{type:"button",class:"pure-button button-small button-error",onClick:u},[le("删除("),m("span",null,be(i.value.length),1),le(")")]),le(" ")])):Ze("",!0),m("button",{type:"button",class:"pure-button button-mini button-error",onClick:S[0]||(S[0]=z=>c(!1,"")),title:"填写链接以删除对应的离线任务"},"根据链接删除"),le(" "),m("button",{type:"button",class:"pure-button button-mini button-error",onClick:S[1]||(S[1]=z=>f(Te(Tt).failed)),title:"导出未完成链接"},"导出未完成"),m("button",{type:"button",class:"pure-button button-mini button-success",onClick:S[2]||(S[2]=z=>f(Te(Tt).success)),title:"导出已完成链接"},"导出已完成"),m("button",{type:"button",class:"pure-button button-mini button-warning",onClick:S[3]||(S[3]=z=>f(Te(Tt).all)),title:"导出全部链接"},"导出全部"),le(" "),xe(W,{distance:5,"arrow-padding":10},{popper:Ve(()=>[(Q(),jt(hu,null,{default:Ve(()=>[xe(Ed)]),_:1}))]),default:Ve(()=>[ov]),_:1})])}}}),dE="";function pn(e){return e.split("-")[0]}function No(e){return e.split("-")[1]}function Ei(e){return["top","bottom"].includes(pn(e))?"x":"y"}function Da(e){return e==="y"?"height":"width"}function Ad(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(pn(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=Ei(o),u=Da(c);switch(No(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 sv=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(k=>{let{name:A}=k;return A==="autoPlacement"||A==="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:f}=Ad({...c,placement:o}),d=o,h={},b=0;for(let k=0;k<s.length;k++){if(b++,b>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:A,fn:S}=s[k],{x:W,y:z,data:I,reset:L}=await S({x:u,y:f,initialPlacement:o,placement:d,strategy:i,middlewareData:h,rects:c,platform:r,elements:{reference:e,floating:t}});if(u=W!=null?W:u,f=z!=null?z:f,h={...h,[A]:I!=null?I:{}},L){typeof L=="object"&&(L.placement&&(d=L.placement),L.rects&&(c=L.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:i}):L.rects),{x:u,y:f}=Ad({...c,placement:d})),k=-1;continue}}return{x:u,y:f,placement:d,strategy:i,middlewareData:h}};function rv(e){return{top:0,right:0,bottom:0,left:0,...e}}function Sd(e){return typeof e!="number"?rv(e):{top:e,right:e,bottom:e,left:e}}function Ra(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Vs(e,t){t===void 0&&(t={});const{x:n,y:o,platform:i,rects:s,elements:r,strategy:c}=e,{boundary:u="clippingParents",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:b=0}=t,k=Sd(b),S=r[h?d==="floating"?"reference":"floating":d],W=await i.getClippingClientRect({element:await i.isElement(S)?S:S.contextElement||await i.getDocumentElement({element:r.floating}),boundary:u,rootBoundary:f}),z=Ra(await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:d==="floating"?{...s.floating,x:n,y:o}:s.reference,offsetParent:await i.getOffsetParent({element:r.floating}),strategy:c}));return{top:W.top-z.top+k.top,bottom:z.bottom-W.bottom+k.bottom,left:W.left-z.left+k.left,right:z.right-W.right+k.right}}const av=Math.min,po=Math.max;function Fa(e,t,n){return po(e,av(t,n))}const lv=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 f=Sd(o),d={x:i,y:s},h=pn(r),b=Ei(h),k=Da(b),A=await u.getDimensions({element:n}),S=b==="y"?"top":"left",W=b==="y"?"bottom":"right",z=c.reference[k]+c.reference[b]-d[b]-c.floating[k],I=d[b]-c.reference[b],L=await u.getOffsetParent({element:n}),X=L?b==="y"?L.clientHeight||0:L.clientWidth||0:0,ee=z/2-I/2,te=f[S],Be=X-A[k]-f[W],ke=X/2-A[k]/2+ee,Ee=Fa(te,ke,Be);return{data:{[b]:Ee,centerOffset:ke-Ee}}}}),cv={left:"right",right:"left",bottom:"top",top:"bottom"};function Ws(e){return e.replace(/left|right|bottom|top/g,t=>cv[t])}function Od(e,t){const n=No(e)==="start",o=Ei(e),i=Da(o);let s=o==="x"?n?"right":"left":n?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Ws(s)),{main:s,cross:Ws(s)}}const uv={start:"end",end:"start"};function ja(e){return e.replace(/start|end/g,t=>uv[t])}const dv=["top","right","bottom","left"].reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function fv(e,t,n){return(e?[...n.filter(i=>No(i)===e),...n.filter(i=>No(i)!==e)]:n.filter(i=>pn(i)===i)).filter(i=>e?No(i)===e||(t?ja(i)!==i:!1):!0)}const pv=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:f,rects:d,middlewareData:h,placement:b}=t,{alignment:k=null,allowedPlacements:A=dv,autoAlignment:S=!0,...W}=e;if((n=h.autoPlacement)!=null&&n.skip)return{};const z=fv(k,S,A),I=await Vs(t,W),L=(o=(i=h.autoPlacement)==null?void 0:i.index)!=null?o:0,X=z[L],{main:ee,cross:te}=Od(X,d);if(b!==X)return{x:u,y:f,reset:{placement:z[0]}};const Be=[I[pn(X)],I[ee],I[te]],ke=[...(s=(r=h.autoPlacement)==null?void 0:r.overflows)!=null?s:[],{placement:X,overflows:Be}],Ee=z[L+1];if(Ee)return{data:{index:L+1,overflows:ke},reset:{placement:Ee}};const Pe=ke.slice().sort((oe,Ce)=>oe.overflows[0]-Ce.overflows[0]),de=(c=Pe.find(oe=>{let{overflows:Ce}=oe;return Ce.every(se=>se<=0)}))==null?void 0:c.placement;return{data:{skip:!0},reset:{placement:de!=null?de:Pe[0].placement}}}}};function hv(e){const t=Ws(e);return[ja(e),t,ja(t)]}const mv=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:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",flipAlignment:b=!0,...k}=e,A=pn(i),W=d||(A===c||!b?[Ws(c)]:hv(c)),z=[c,...W],I=await Vs(t,k),L=[];let X=((o=s.flip)==null?void 0:o.overflows)||[];if(u&&L.push(I[A]),f){const{main:ke,cross:Ee}=Od(i,r);L.push(I[ke],I[Ee])}if(X=[...X,{placement:i,overflows:L}],!L.every(ke=>ke<=0)){var ee,te;const ke=((ee=(te=s.flip)==null?void 0:te.index)!=null?ee:0)+1,Ee=z[ke];if(Ee)return{data:{index:ke,overflows:X},reset:{placement:Ee}};let Pe="bottom";switch(h){case"bestFit":{var Be;const de=(Be=X.slice().sort((oe,Ce)=>oe.overflows.filter(se=>se>0).reduce((se,Fe)=>se+Fe,0)-Ce.overflows.filter(se=>se>0).reduce((se,Fe)=>se+Fe,0))[0])==null?void 0:Be.placement;de&&(Pe=de);break}case"initialPlacement":Pe=c;break}return{data:{skip:!0},reset:{placement:Pe}}}return{}}}};function gv(e){let{placement:t,rects:n,value:o}=e;const i=pn(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 Ei(i)==="x"?{x:u,y:c*s}:{x:c*s,y:u}}const wv=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=gv({placement:i,rects:s,value:e});return{x:n+r.x,y:o+r.y,data:r}}}};function bv(e){return e==="x"?"y":"x"}const yv=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:W=>{let{x:z,y:I}=W;return{x:z,y:I}}},...u}=e,f={x:n,y:o},d=await Vs(t,u),h=Ei(pn(i)),b=bv(h);let k=f[h],A=f[b];if(s){const W=h==="y"?"top":"left",z=h==="y"?"bottom":"right",I=k+d[W],L=k-d[z];k=Fa(I,k,L)}if(r){const W=b==="y"?"top":"left",z=b==="y"?"bottom":"right",I=A+d[W],L=A-d[z];A=Fa(I,A,L)}const S=c.fn({...t,[h]:k,[b]:A});return{...S,data:{x:S.x-n,y:S.y-o}}}}},vv=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 Vs(t,c),f=pn(o),d=No(o)==="end";let h,b;f==="top"||f==="bottom"?(h=f,b=d?"left":"right"):(b=f,h=d?"top":"bottom");const k=po(u.left,0),A=po(u.right,0),S=po(u.top,0),W=po(u.bottom,0),z={height:i.floating.height-(["left","right"].includes(o)?2*(S!==0||W!==0?S+W:po(u.top,u.bottom)):u[h]),width:i.floating.width-(["top","bottom"].includes(o)?2*(k!==0||A!==0?k+A:po(u.left,u.right)):u[b])};return r==null||r({...z,...i}),{data:{skip:!0},reset:{rects:!0}}}}};function Ua(e){return(e==null?void 0:e.toString())==="[object Window]"}function Rn(e){if(e==null)return window;if(!Ua(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ks(e){return Rn(e).getComputedStyle(e)}function hn(e){return Ua(e)?"":e?(e.nodeName||"").toLowerCase():""}function mn(e){return e instanceof Rn(e).HTMLElement}function Gs(e){return e instanceof Rn(e).Element}function _v(e){return e instanceof Rn(e).Node}function Pd(e){const t=Rn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Js(e){const{overflow:t,overflowX:n,overflowY:o}=Ks(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function xv(e){return["table","td","th"].includes(hn(e))}function Id(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),n=Ks(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 Td=Math.min,Ai=Math.max,Ys=Math.round;function Do(e,t){t===void 0&&(t=!1);const n=e.getBoundingClientRect();let o=1,i=1;return t&&mn(e)&&(o=e.offsetWidth>0&&Ys(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ys(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 Fn(e){return((_v(e)?e.ownerDocument:e.document)||window.document).documentElement}function Xs(e){return Ua(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Md(e){return Do(Fn(e)).left+Xs(e).scrollLeft}function Cv(e){const t=Do(e);return Ys(t.width)!==e.offsetWidth||Ys(t.height)!==e.offsetHeight}function $v(e,t,n){const o=mn(t),i=Fn(t),s=Do(e,o&&Cv(t));let r={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(o||!o&&n!=="fixed")if((hn(t)!=="body"||Js(i))&&(r=Xs(t)),mn(t)){const u=Do(t,!0);c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}else i&&(c.x=Md(i));return{x:s.left+r.scrollLeft-c.x,y:s.top+r.scrollTop-c.y,width:s.width,height:s.height}}function Zs(e){return hn(e)==="html"?e:e.assignedSlot||e.parentNode||(Pd(e)?e.host:null)||Fn(e)}function Bd(e){return!mn(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function kv(e){let t=Zs(e);for(;mn(t)&&!["html","body"].includes(hn(t));){if(Id(t))return t;t=t.parentNode}return null}function Ha(e){const t=Rn(e);let n=Bd(e);for(;n&&xv(n)&&getComputedStyle(n).position==="static";)n=Bd(n);return n&&(hn(n)==="html"||hn(n)==="body"&&getComputedStyle(n).position==="static"&&!Id(n))?t:n||kv(e)||t}function Ld(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Ev(e){let{rect:t,offsetParent:n,strategy:o}=e;const i=mn(n),s=Fn(n);if(n===s)return t;let r={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if((i||!i&&o!=="fixed")&&((hn(n)!=="body"||Js(s))&&(r=Xs(n)),mn(n))){const u=Do(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 Av(e){const t=Rn(e),n=Fn(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 Sv(e){var t;const n=Fn(e),o=Xs(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=Ai(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),r=Ai(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let c=-o.scrollLeft+Md(e);const u=-o.scrollTop;return Ks(i||n).direction==="rtl"&&(c+=Ai(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:r,x:c,y:u}}function Nd(e){return["html","body","#document"].includes(hn(e))?e.ownerDocument.body:mn(e)&&Js(e)?e:Nd(Zs(e))}function Qs(e,t){var n;t===void 0&&(t=[]);const o=Nd(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=Rn(o),r=i?[s].concat(s.visualViewport||[],Js(o)?o:[]):o,c=t.concat(r);return i?c:c.concat(Qs(Zs(r)))}function Ov(e,t){const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Pd(n)){let o=t;do{if(o&&e===o)return!0;o=o.parentNode||o.host}while(o)}return!1}function Pv(e){const t=Do(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 Dd(e,t){return t==="viewport"?Ra(Av(e)):Gs(t)?Pv(t):Ra(Sv(Fn(e)))}function Iv(e){const t=Qs(Zs(e)),o=["absolute","fixed"].includes(Ks(e).position)&&mn(e)?Ha(e):e;return Gs(o)?t.filter(i=>Gs(i)&&Ov(i,o)&&hn(i)!=="body"):[]}function Tv(e){let{element:t,boundary:n,rootBoundary:o}=e;const s=[...n==="clippingParents"?Iv(t):[].concat(n),o],r=s[0],c=s.reduce((u,f)=>{const d=Dd(t,f);return u.top=Ai(d.top,u.top),u.right=Td(d.right,u.right),u.bottom=Td(d.bottom,u.bottom),u.left=Ai(d.left,u.left),u},Dd(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 Mv={getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:$v(t,Ha(n),o),floating:{...Ld(n),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:e=>Ev(e),getOffsetParent:e=>{let{element:t}=e;return Ha(t)},isElement:e=>Gs(e),getDocumentElement:e=>{let{element:t}=e;return Fn(t)},getClippingClientRect:e=>Tv(e),getDimensions:e=>{let{element:t}=e;return Ld(t)},getClientRects:e=>{let{element:t}=e;return t.getClientRects()}},Bv=(e,t,n)=>sv(e,t,{platform:Mv,...n});var Lv=Object.defineProperty,Nv=Object.defineProperties,Dv=Object.getOwnPropertyDescriptors,Rd=Object.getOwnPropertySymbols,Rv=Object.prototype.hasOwnProperty,Fv=Object.prototype.propertyIsEnumerable,Fd=(e,t,n)=>t in e?Lv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gn=(e,t)=>{for(var n in t||(t={}))Rv.call(t,n)&&Fd(e,n,t[n]);if(Rd)for(var n of Rd(t))Fv.call(t,n)&&Fd(e,n,t[n]);return e},Si=(e,t)=>Nv(e,Dv(t));function jd(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?jd(e[n],t[n]):e[n]=t[n])}const wn={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 Ro(e,t){let n=wn.themes[e]||{},o;do o=n[t],typeof o>"u"?n.$extend?n=wn.themes[n.$extend]||{}:(n=null,o=wn[t]):n=null;while(n);return o}function jv(e){const t=[e];let n=wn.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=wn.themes[n.$extend]||{}):n=null;while(n);return t.map(o=>`v-popper--theme-${o}`)}function Ud(e){const t=[e];let n=wn.themes[e]||{};do n.$extend?(t.push(n.$extend),n=wn.themes[n.$extend]||{}):n=null;while(n);return t}let ho=!1;if(typeof window<"u"){ho=!1;try{const e=Object.defineProperty({},"passive",{get(){ho=!0}});window.addEventListener("test",null,e)}catch{}}let Hd=!1;typeof window<"u"&&typeof navigator<"u"&&(Hd=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const zd=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),qd={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},Vd={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function Wd(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function za(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Ut=[];let mo=null;const Kd={};function Gd(e){let t=Kd[e];return t||(t=Kd[e]=[]),t}let qa=function(){};typeof window<"u"&&(qa=window.Element);function Re(e){return function(t){return Ro(t.theme,e)}}const Va="__floating-vue__popper";var Jd=()=>Ue({name:"VPopper",provide(){return{[Va]:{parentPopper:this}}},inject:{[Va]:{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:Re("disabled")},positioningDisabled:{type:Boolean,default:Re("positioningDisabled")},placement:{type:String,default:Re("placement"),validator:e=>zd.includes(e)},delay:{type:[String,Number,Object],default:Re("delay")},distance:{type:[Number,String],default:Re("distance")},skidding:{type:[Number,String],default:Re("skidding")},triggers:{type:Array,default:Re("triggers")},showTriggers:{type:[Array,Function],default:Re("showTriggers")},hideTriggers:{type:[Array,Function],default:Re("hideTriggers")},popperTriggers:{type:Array,default:Re("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Re("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Re("popperHideTriggers")},container:{type:[String,Object,qa,Boolean],default:Re("container")},boundary:{type:[String,qa],default:Re("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:Re("strategy")},autoHide:{type:[Boolean,Function],default:Re("autoHide")},handleResize:{type:Boolean,default:Re("handleResize")},instantMove:{type:Boolean,default:Re("instantMove")},eagerMount:{type:Boolean,default:Re("eagerMount")},popperClass:{type:[String,Array,Object],default:Re("popperClass")},computeTransformOrigin:{type:Boolean,default:Re("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Re("autoMinSize")},autoSize:{type:[Boolean,String],default:Re("autoSize")},autoMaxSize:{type:Boolean,default:Re("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Re("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Re("preventOverflow")},overflowPadding:{type:[Number,String],default:Re("overflowPadding")},arrowPadding:{type:[Number,String],default:Re("arrowPadding")},arrowOverflow:{type:Boolean,default:Re("arrowOverflow")},flip:{type:Boolean,default:Re("flip")},shift:{type:Boolean,default:Re("shift")},shiftCrossAxis:{type:Boolean,default:Re("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Re("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:Si(gn({},this.classes),{popperClass:this.popperClass}),result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Va])==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:gn(gn({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(wv({mainAxis:this.distance,crossAxis:this.skidding}));const n=this.placement.startsWith("auto");if(n?t.middleware.push(pv({alignment:(e=this.placement.split("-")[1])!=null?e:""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(yv({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!n&&this.flip&&t.middleware.push(mv({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(lv({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 f,d;return r.startsWith("top")||r.startsWith("bottom")?f=s.reference.width:d=s.reference.height,this.$_innerNode.style[i==="min"?"minWidth":i==="max"?"maxWidth":"width"]=f!=null?`${f}px`:null,this.$_innerNode.style[i==="min"?"minHeight":i==="max"?"maxHeight":"height"]=d!=null?`${d}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(vv({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 Bv(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:o.x,y:o.y,placement:o.placement,strategy:o.strategy,arrow:gn(gn({},o.middlewareData.arrow),o.middlewareData.arrowOverflow)})},$_scheduleShow(e=null,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),mo&&this.instantMove&&mo.instantMove&&mo!==this.parentPopper){mo.$_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&&(mo=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 za(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Qs(this.$_referenceNode),...Qs(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<Ut.length;n++)t=Ut[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Ut.push(this),document.body.classList.add("v-popper--some-open");for(const t of Ud(this.theme))Gd(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 za(),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,Wd(Ut,this),Ut.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of Ud(this.theme)){const o=Gd(n);Wd(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}mo===this&&(mo=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=Ro(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 za(),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,qd,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],qd,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,Vd,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Vd,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,ho?{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(Oi>=e.left&&Oi<=e.right&&Pi>=e.top&&Pi<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=Oi-jn,o=Pi-Un,s=t.left+t.width/2-jn+(t.top+t.height/2)-Un+t.width+t.height,r=jn+n*s,c=Un+o*s;return er(jn,Un,r,c,t.left,t.top,t.left,t.bottom)||er(jn,Un,r,c,t.left,t.top,t.right,t.top)||er(jn,Un,r,c,t.right,t.top,t.right,t.bottom)||er(jn,Un,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"&&(Hd?(document.addEventListener("touchstart",Yd,ho?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",Hv,ho?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",Yd,!0),window.addEventListener("click",Uv,!0)),window.addEventListener("resize",Vv));function Yd(e){for(let t=0;t<Ut.length;t++){const n=Ut[t];try{const o=n.popperNode();n.$_mouseDownContains=o.contains(e.target)}catch{}}}function Uv(e){Xd(e)}function Hv(e){Xd(e,!0)}function Xd(e,t=!1){const n={};for(let o=Ut.length-1;o>=0;o--){const i=Ut[o];try{const s=i.$_containsGlobalTarget=zv(i,e);i.$_pendingHide=!1,requestAnimationFrame(()=>{if(i.$_pendingHide=!1,!n[i.randomId]&&Zd(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&&Zd(r,r.$_containsGlobalTarget,e);){r.$_handleGlobalClose(e,t);r=r.parentPopper}}})}catch{}}}function zv(e,t){const n=e.popperNode();return e.$_mouseDownContains||n.contains(t.target)}function Zd(e,t,n){return n.closeAllPopover||n.closePopover&&t||qv(e,n)&&!t}function qv(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function Vv(e){for(let t=0;t<Ut.length;t++)Ut[t].$_computePosition(e)}let jn=0,Un=0,Oi=0,Pi=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{jn=Oi,Un=Pi,Oi=e.clientX,Pi=e.clientY},ho?{passive:!0}:void 0);function er(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)),f=((n-e)*(t-s)-(o-t)*(e-i))/((c-s)*(n-e)-(r-i)*(o-t));return u>=0&&u<=1&&f>=0&&f<=1}var tr=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n};const Wv={extends:Jd()};function Kv(e,t,n,o,i,s){return Q(),ne("div",{ref:"reference",class:et(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[cn(e.$slots,"default",Tm(qu(e.slotData)))],2)}var Gv=tr(Wv,[["render",Kv]]);function Jv(){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 nr;function Wa(){Wa.init||(Wa.init=!0,nr=Jv()!==-1)}var or={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Wa(),tu(()=>{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",nr&&this.$el.appendChild(e),e.data="about:blank",nr||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&&(!nr&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Yv=nw();ew("data-v-b329ee4c");const Xv={class:"resize-observer",tabindex:"-1"};tw();const Zv=Yv((e,t,n,o,i,s)=>(Q(),jt("div",Xv)));or.render=Zv,or.__scopeId="data-v-b329ee4c",or.__file="src/components/ResizeObserver.vue";var Qd=(e="theme")=>({computed:{themeClass(){return jv(this[e])}}});const Qv=Ue({name:"VPopperContent",components:{ResizeObserver:or},mixins:[Qd()],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}}}),e_=["id","aria-hidden","tabindex","data-popper-placement"],t_={ref:"inner",class:"v-popper__inner"},n_=[m("div",{class:"v-popper__arrow-outer"},null,-1),m("div",{class:"v-popper__arrow-inner"},null,-1)];function o_(e,t,n,o,i,s){const r=ro("ResizeObserver");return Q(),ne("div",{id:e.popperId,ref:"popover",class:et(["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:on(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]=Db(c=>e.autoHide&&e.$emit("hide"),["esc"]))},[m("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=c=>e.autoHide&&e.$emit("hide"))}),m("div",{class:"v-popper__wrapper",style:on(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[m("div",t_,[e.mounted?(Q(),ne(ze,{key:0},[m("div",null,[cn(e.$slots,"default")]),e.handleResize?(Q(),jt(r,{key:0,onNotify:t[1]||(t[1]=c=>e.$emit("resize",c))})):Ze("",!0)],64)):Ze("",!0)],512),m("div",{ref:"arrow",class:"v-popper__arrow-container",style:on(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},n_,4)],4)],46,e_)}var ef=tr(Qv,[["render",o_]]),tf={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 i_=Ue({name:"VPopperWrapper",components:{Popper:Gv,PopperContent:ef},mixins:[tf,Qd("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 s_(e,t,n,o,i,s){const r=ro("PopperContent"),c=ro("Popper");return Q(),jt(c,{ref:"popper",theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:et([e.themeClass])},{default:Ve(({popperId:u,isShown:f,shouldMountContent:d,skipTransition:h,autoHide:b,show:k,hide:A,handleResize:S,onResize:W,classes:z,result:I})=>[cn(e.$slots,"default",{shown:f,show:k,hide:A}),xe(r,{ref:"popperContent","popper-id":u,theme:e.finalTheme,shown:f,mounted:d,"skip-transition":h,"auto-hide":b,"handle-resize":S,classes:z,result:I,onHide:A,onResize:W},{default:Ve(()=>[cn(e.$slots,"popper",{shown:f,hide:A})]),_: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 Ka=tr(i_,[["render",s_]]);const r_=Ue(Si(gn({},Ka),{name:"VDropdown",vPopperTheme:"dropdown"})),a_=Ue(Si(gn({},Ka),{name:"VMenu",vPopperTheme:"menu"})),l_=Ue(Si(gn({},Ka),{name:"VTooltip",vPopperTheme:"tooltip"})),c_=Ue({name:"VTooltipDirective",components:{Popper:Jd(),PopperContent:ef},mixins:[tf],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Ro(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Ro(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}}}),u_=["innerHTML"],d_=["textContent"];function f_(e,t,n,o,i,s){const r=ro("PopperContent"),c=ro("Popper");return Q(),jt(c,Wu({ref:"popper"},e.$attrs,{theme:e.theme,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:Ve(({popperId:u,isShown:f,shouldMountContent:d,skipTransition:h,autoHide:b,hide:k,handleResize:A,onResize:S,classes:W,result:z})=>[xe(r,{ref:"popperContent",class:et({"v-popper--tooltip-loading":e.loading}),"popper-id":u,theme:e.theme,shown:f,mounted:d,"skip-transition":h,"auto-hide":b,"handle-resize":A,classes:W,result:z,onHide:k,onResize:S},{default:Ve(()=>[e.html?(Q(),ne("div",{key:0,innerHTML:e.finalContent},null,8,u_)):(Q(),ne("div",{key:1,textContent:be(e.finalContent)},null,8,d_))]),_: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 p_=tr(c_,[["render",f_]]);const nf="v-popper--has-tooltip";function h_(e,t){let n=e.placement;if(!n&&t)for(const o of zd)t[o]&&(n=o);return n||(n=Ro(e.theme||"tooltip","placement")),n}function of(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=h_(o,n),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let Ga,Ii,m_=0;function g_(){if(Ga)return;Ii=_e([]),Ga=Lo({name:"VTooltipDirectiveApp",setup(){return{directives:Ii}},render(){return this.directives.map(t=>pb(p_,Si(gn({},t.options),{shown:t.shown||t.options.shown,key:t.id})))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Ga.mount(e)}function w_(e,t,n){g_();const o=_e(of(e,t,n)),i=_e(!1),s={id:m_++,options:o,shown:i};return Ii.value.push(s),e.classList&&e.classList.add(nf),e.$_popper={options:o,item:s,show(){i.value=!0},hide(){i.value=!1}}}function sf(e){if(e.$_popper){const t=Ii.value.indexOf(e.$_popper.item);t!==-1&&Ii.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(nf)}function rf(e,{value:t,modifiers:n}){const o=of(e,t,n);if(!o.content||Ro(o.theme||"tooltip","disabled"))sf(e);else{let i;e.$_popper?(i=e.$_popper,i.options.value=o):i=w_(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?i.show():i.hide())}}var b_={beforeMount:rf,updated:rf,beforeUnmount(e){sf(e)}};function af(e){e.addEventListener("click",cf),e.addEventListener("touchstart",uf,ho?{passive:!0}:!1)}function lf(e){e.removeEventListener("click",cf),e.removeEventListener("touchstart",uf),e.removeEventListener("touchend",df),e.removeEventListener("touchcancel",ff)}function cf(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function uf(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",ff)}}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 ff(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}var y_={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&af(e)},updated(e,{value:t,oldValue:n,modifiers:o}){e.$_closePopoverModifiers=o,t!==n&&(typeof t>"u"||t?af(e):lf(e))},beforeUnmount(e){lf(e)}};function v_(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,jd(wn,t),e.directive("tooltip",b_),e.directive("close-popper",y_),e.component("VTooltip",l_),e.component("VDropdown",r_),e.component("VMenu",a_))}const pf={version:"2.0.0-beta.20",install:v_,options:wn},mE="";var Fo=(e=>(e.openConfig="openConfig",e.basicConfigChange="basicConfigChange",e))(Fo||{});const hf="basic_config";function __(e){return{hideWatermark:!0,hideSidebar:!0,fakeAccountEnabled:!1,fakeAccountId:"",fakeAccountName:"",fakeAccountAvatar:"",fakeAccountVip:"",...e}}async function ir(){const e=__(),t=await dt.get(hf,e);return{...e,...t}}async function x_(e){await dt.set(hf,e)}async function C_(e){!e.hideSidebar||(console.log("[Cloud115 Enhancer] hideSidebar"),window.top!==window.self?(await _n('[rel="page_top_btn"]')).show():(await _n("#site_left_bar")).hide())}async function $_(e){if(!e.hideWatermark)return;console.log("[Cloud115 Enhancer] hideWatermark");const t=await _n('div[class^="fp-"]');t.addClass("hidden-watermark"),t.hide()}async function k_(e){window.top===window.self&&(await zt(1e3),Ja(e),window.addEventListener("message",async t=>{const n=t.data.event,o=t.data.body;n===Fo.basicConfigChange&&(console.log("[Cloud115 Enhancer] basicConfigChange"),Ja(o))}))}let Ti=null;async function E_(){Ti&&clearTimeout(Ti),Ti=setTimeout(async()=>{const e=await ir();Ja(e)},5e3)}async function Ja(e){Ti&&clearTimeout(Ti);const t=async(n,o)=>{const i=await _n('[rel="user_id"]',100);i.data("origin")||i.data("origin",i.text()),o?i.text(i.data("origin")):i.text(n.fakeAccountId);const s=await _n('[rel="user_name"]',100);s.data("origin")||s.data("origin",$(s[0]).text()),o?s.text(s.data("origin")):s.text(n.fakeAccountName);const r=await _n('img[rel="user_face"], .user-avatar img',100);r.data("origin")||r.data("origin",r.attr("src")),o?r.attr("src",r.data("origin")):(r.attr("rel","noreferrer"),r.attr("src",n.fakeAccountAvatar));const c=await _n(".sign-vip-card",100);c.data("origin")||c.data("origin",$(c[0]).text()),o?c.text(c.data("origin")):c.text(n.fakeAccountVip)};try{e.fakeAccountEnabled?await t(e,!1):await t(e,!0)}catch(n){console.error(n)}finally{e.fakeAccountEnabled&&E_()}}async function A_(){const{host:e,search:t}=location;e!=="115.com"||!t.includes("offline=1&tab=offline")||(S_(),O_())}async function S_(){console.log("[Cloud115 Enhancer] Injecting offline exporter...");const e="cloud115OfflineExporter",t=await Na();document.body.classList.add("cloud115-page-offline"),t.enableListManagement&&document.body.classList.add("ce-list-m"),$("body").append(`<div id="${e}"/>`);const n=Lo(iv);n.use(pf),n.mount(`#${e}`)}async function O_(){(await ir()).hideSidebar&&($('.more-box[rel="transfer_top_btn"]').show(),$('a[menu="upload"]').show(),$('.clp-box[rel="transfer_top_btn"]').show())}var Hn=(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))(Hn||{});const P_={class:"cloud115-eh-cleaner-trigger"},I_=[m("span",null,"清理文件",-1)],T_=Ue({__name:"Trigger",setup(e){_e(!1);const t=_e(!0);async function n(c){switch(console.log("[handleMessage]",c),c.data.type){case Hn.INVOKE_FILTER:await nm(c.data.payload);break;case Hn.CLEANER_OPENED:await r(c.data.payload);break}}Zt(async()=>{console.log("[CleanerTrigger onMounted]"),window.addEventListener("message",n)}),yi(()=>{console.log("[CleanerTrigger onUnmounted]"),window.removeEventListener("message",n)});async function o(){await s(),Hi({type:Hn.OPEN_CLEANER},window.parent)}let i=0;async function s(){const c=xp("cid");!c||c==="0"||(clearTimeout(i),i=window.setTimeout(async()=>{me({icon:"error",text:"打开清理工具失败!"})},1e3))}async function r(c){console.log("成功打开Cleaner"),clearTimeout(i)}return(c,u)=>ie((Q(),ne("span",P_,[cn(c.$slots,"default",{},()=>[m("span",{class:"btn-open pure-button pure-button-primary",onClick:o},I_)])],512)),[[fn,t.value]])}}),wE="";var Ne=(e=>(e[e.suffix=0]="suffix",e[e.keyword=1]="keyword",e))(Ne||{}),ut=(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))(ut||{}),rt=(e=>(e.none="",e.prepare="查询文件...",e.prepared="查询文件完成",e.prepareFailed="查询失败",e.deleting="删除文件中...",e.success="清理完成",e.failed="清理失败",e))(rt||{});ht.all,Xe.all,ht.video,Xe.video,ht.audio,Xe.audio,ht.image,Xe.image,ht.doc,Xe.doc,ht.app,Xe.app,ht.archive,Xe.archive;const M_=new Map([[Xe.all,ht.all],[Xe.video,ht.video],[Xe.audio,ht.audio],[Xe.image,ht.image],[Xe.doc,ht.doc],[Xe.app,ht.app],[Xe.archive,ht.archive]]),sr="#",mf="#",B_=[{type:Ne.suffix,queryOnly:!1,label:"默认",memo:"请谨慎使用!",size:5,values:["txt","url","html","htm","mht"]},{type:Ne.suffix,queryOnly:!0,label:"🔍115筛选",memo:"仅用于查询",size:102400,values:["#视频","#音频","#图片","#文档","#应用","#压缩包"]}],L_=["#論壇文宣","#宣傳文本","最新地址","最新网址","论坛地址","永久地址","地址发布","扫码 安装","扫码 下载","免費 掃碼","澳门 赌场","皇冠 赌场","免费18禁手游","免费黄游手游","在线影城","秀场 小视频","裸秀 主播 免费看","第一会所 宣传","SIS 影视联盟",'"最 新 位 址 獲 取"','"社 區 最 新 情 報"','"聚 合 全 網 H 直 播"'],N_=["#論壇文宣","美女 裸聊","秀场 视频","澳门 赌场","皇冠 赌场","影视 联盟","2048 社区","1024 社区","会所 宣传","扫码 安装","社区 关注","免費 掃碼","找回家","防屏蔽","封殺00","秀场 小视频","裸秀 主播 免费看",'"Free Adult Movie"',"奔驰宝马","最新网址","最新免費","免费试用","美女荷官","凤凰娛樂","观看指南","女神在线","更多无水印","免费在线","国产精品","免費原版","獨家資源","成人光碟","最新AV","FDZone","发布器","QR-1024","在這等你","激情祼聊","看妹不用等","真人祼聊","zz.jpg","X8B9.COM.gif","第一会所 宣传","SIS 影视联盟","淘精網","激情咖啡","手機影城","免费手机看片","U視娛樂","加微信","我愛看片手機版","平台正式上線"],D_=[{type:Ne.keyword,queryOnly:!1,label:"默认",memo:"请谨慎使用!",size:100,values:L_},{type:Ne.keyword,queryOnly:!1,label:"⚠️大杀器⚠️",memo:"请谨慎使用!",size:100,values:N_},{type:Ne.keyword,queryOnly:!0,label:"只查询示例",memo:"这是一个示例",size:10240,values:["奔驰宝马","美女荷官",'"最 新 位 址 獲 取"']}];function go(e){return{id:Date.now().toString(),type:e,queryOnly:!1,label:"",values:"",memo:"",size:0,sort:0,createdAt:0,updatedAt:0}}function gf(e,t){e=e.trim();const n=t===Ne.keyword&&R_(e),o=t===Ne.suffix&&F_(e);let i=e;return n&&(i=j_(e)),o&&(i=U_(e).toString()),{type:t,value:e,forDir:n,isFilter:o,pattern:i,num:-1,fileIds:[],size:-1,status:rt.none}}function wf(e){return[rt.prepare,rt.deleting].includes(e.status)}function R_(e){return new RegExp(`^${sr}[\\S]{2,}`).test(e)}function F_(e){return new RegExp(`^${mf}[\\S]{2,}`).test(e)}function j_(e){const t=new RegExp(`^${sr}`);return e.replace(t,"")}function U_(e){const t=new RegExp(`^${mf}`);let n=e.replace(t,"");const o=M_.get(n);if(!o)throw new Error(`"${e}"不是有效的筛选!`);return o}async function wo(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(gf(s,t))}),i}function bf(e){return/(^'.+'$)|(^".+"$)/.test(e)}function Ya(e){return bf(e)?e.replace(/^['"]|['"]$/g,""):e}function H_(e,t){if(e===""||t==="")return!1;if(e=e.toLowerCase(),bf(t))return e.includes(Ya(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 yf(e,t,n){const o=gf(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===Ne.keyword&&(c&&e.forDir||!c&&!e.forDir))continue;const f=parseFloat(t[r].s);s&&c&&f>s||e.type===Ne.keyword&&!H_(t[r].n,e.pattern)||i.has(u)||(i.add(u),o.size+=f)}return o.fileIds=Array.from(i),o.num=o.fileIds.length,o}const z_={class:"group-manager"},q_={key:0,class:"label-readonly",title:"当前分组只可用于查询"},V_=["title"],W_=m("small",null,"分组:",-1),K_={class:"pure-form pure-form-stacked group-form"},G_=m("label",{for:"groupLabel"},"标题",-1),J_=m("label",{for:"groupMemo"},"备注",-1),Y_={for:"groupValues"},X_={key:0,class:"text-info"},Z_={key:1,class:"text-info"},Q_=["onClick"],e0=m("small",{class:"text-primary"},"(点击添加)",-1),t0=m("label",{for:"groupMemo"},[le(" 文件大小 "),m("span",{class:"text-info"},[le("只清理小于该大小的文件,单位"),m("b",null,"MB")])],-1),n0={class:"groups-list"},o0={key:0,class:"text-danger"},i0=m("span",{class:"text-info"},"或",-1),s0=m("br",null,null,-1),r0=m("br",null,null,-1),a0={class:"pure-table pure-table-bordered"},l0=m("thead",null,[m("tr",null,[m("th",{width:"25"},"#"),m("th",{width:"70"},"只查询"),m("th",{width:"150"},"名称"),m("th",{width:"150"},"备注"),m("th",{width:"70"},[le("大小"),m("small",null,"MB")]),m("th",{width:"220"},"操作")])],-1),c0={align:"center"},u0=["onClick"],d0=m("button",{type:"button",class:"pure-button button-xsmall text-danger"},"删除",-1),f0={class:"group-confirm-delete"},p0=["onClick"],h0=["onClick"],vf=Ue({__name:"GroupManager",props:{type:null,storageKey:null,config:null},emits:["change"],setup(e,{emit:t}){const n=e,o=_e(go(n.type)),i=_e([]),s=_e(!1),r=_e(go(n.type)),c=_e(null),u=_e(!1),f=_e(null),d=[Xe.video,Xe.audio,Xe.image,Xe.doc,Xe.app,Xe.archive];kt(i,async de=>{console.log("[groups change]",de),qn(n.storageKey,de,!1),de.length||(s.value=!1,u.value=!1)},{deep:!0});let h=!1;Zt(async()=>{if(console.log("[GroupManager onMounted]"),!h){h=!0,i.value=ji(n.storageKey,[]),console.log("[groups]",i.value);const{suffixGroup:de,keywordGroup:oe}=n.config;if(i.value.length){const Ce=i.value.find(se=>se.id===(n.type===Ne.suffix?de:oe));console.log("[group last choosen]",Ce),o.value=Ce||i.value[0],t("change",o.value)}else n.type===Ne.suffix&&!de&&(await te(),qn("cleanerConfig",{suffixGroup:o.value.id},!0)),n.type===Ne.keyword&&!oe&&(await te(),qn("cleanerConfig",{keywordGroup:o.value.id},!0))}}),yi(async()=>{console.log("[GroupManager onUnmounted]")});async function b(de){const oe=`#${de}`;r.value.values.includes(oe)||(r.value.values+=(`
`+oe).trim()+`
`)}async function k(){s.value=!0,u.value=!1}async function A(){s.value=!1}async function S(){c.value.show()}async function W(){c.value.hide()}async function z(){u.value=!1}async function I(){u.value=!0,s.value=!1}async function L(){f.value.show()}async function X(){f.value.hide()}async function ee(){r.value.createdAt&&(r.value=go(n.type)),r.value.size=5,n.type===Ne.keyword&&(r.value.size=100),await S()}async function te(){let de=[];n.type===Ne.suffix?de=B_:de=D_;for(let oe=0;oe<de.length;oe++){const Ce={...go(de[oe].type),...de[oe]};r.value=Ce,r.value.type=Ce.type,r.value.queryOnly=Ce.queryOnly,r.value.size=Ce.size,r.value.label=Ce.label,r.value.memo=Ce.memo,r.value.createdAt=0,r.value.updatedAt=0,Array.isArray(Ce.values)?r.value.values=Ce.values.join(`
`):r.value.values=Ce.values,await Ee(),await X()}i.value.length&&await Pe(i.value[0])}async function Be(de,oe=!1){if(!oe){const{isConfirmed:se}=await we.fire({html:`确定删除"${o.value.label}"?`,icon:"question"});if(!se)return}let Ce=-1;for(let se=0;se<i.value.length;se++)if(i.value[se].id===o.value.id){Ce=se;break}i.value.splice(Ce,1),i.value.length?o.value=i.value[0]:o.value=go(n.type),t("change",o.value),await me({icon:"success",title:"删除成功!",timer:1500})}async function ke(de){r.value=de,await S()}async function Ee(){let de=[];try{de=await wo(r.value.values,r.value.type)}catch(B){await we.fire({icon:"error",text:B.message});return}if(r.value.label=r.value.label.trim(),r.value.memo=r.value.memo.trim(),r.value.label===""){await me({icon:"warning",text:"请输入标题!"});return}let oe=-1;for(let B=0;B<i.value.length;B++)if(i.value[B].id===r.value.id&&r.value.id){oe=B;break}const Ce=Ui();r.value.updatedAt=Ce,r.value.createdAt||(r.value.createdAt=Ce);let se=[];for(let B=0;B<de.length;B++)se.push(de[B].value);r.value.values=se.join(`
`).trim(),console.log("[saveGroup]",r.value,oe),oe===-1?(i.value.push(r.value),me({icon:"success",text:"添加成功"})):(i.value[oe]=r.value,me({icon:"success",text:"更新成功"}));const Fe=!o.value.createdAt;Fe&&(o.value=r.value),(r.value.id===o.value.id||Fe)&&t("change",r.value),await W()}async function Pe(de){o.value=de;const{id:oe}=o.value;n.type===Ne.suffix&&(n.config.suffixGroup=oe,qn("cleanerConfig",{suffixGroup:oe},!0)),n.type===Ne.keyword&&(n.config.keywordGroup=oe,qn("cleanerConfig",{keywordGroup:oe},!0)),t("change",de)}return(de,oe)=>{const Ce=ro("VDropdown");return Q(),ne("div",z_,[o.value.queryOnly?(Q(),ne("span",q_," 只查询 ")):Ze("",!0),o.value.createdAt?(Q(),ne("a",{key:1,class:"group-label",href:"javascript:void(0)",title:`当前使用的分组: ${o.value.label}`,onClick:oe[0]||(oe[0]=se=>ke(o.value))},[m("span",null,[W_,le(" "+be(o.value.label),1)])],8,V_)):Ze("",!0),xe(Ce,{ref_key:"form",ref:c,onHide:A,onShow:k,distance:5,"arrow-padding":100},{popper:Ve(()=>[m("form",K_,[m("fieldset",null,[m("div",null,[G_,ie(m("input",{type:"text","onUpdate:modelValue":oe[1]||(oe[1]=se=>r.value.label=se),id:"groupLabel",class:"pure-input-1-2",placeholder:"分组标题"},null,512),[[Ke,r.value.label]]),le(" "),r.value.queryOnly?(Q(),ne("button",{key:0,type:"button",class:"pure-button button-small button-warning",onClick:oe[2]||(oe[2]=se=>r.value.queryOnly=!1)},"已设置为仅用于查询 | 点击取消设置")):Ze("",!0),r.value.queryOnly?Ze("",!0):(Q(),ne("button",{key:1,type:"button",class:"pure-button button-small pure-button-primary",onClick:oe[3]||(oe[3]=se=>r.value.queryOnly=!0)},"设置为仅用于查询"))]),m("div",null,[J_,ie(m("input",{type:"text","onUpdate:modelValue":oe[4]||(oe[4]=se=>r.value.memo=se),id:"groupMemo",placeholder:"分组备注"},null,512),[[Ke,r.value.memo]])]),m("div",null,[m("label",Y_,[le(" 特征列表 "),n.type===Te(Ne).keyword?(Q(),ne("span",X_,[le(" 默认只匹配文件名。前面带"),m("b",null,be(Te(sr)),1),le("则只匹配目录名。 ")])):Ze("",!0),n.type===Te(Ne).suffix?(Q(),ne("span",Z_,[le(" 支持115自带筛选: "),(Q(),ne(ze,null,Et(d,(se,Fe)=>m("span",{class:"filter-label text-success",key:Fe,onClick:B=>b(se)}," #"+be(se),9,Q_)),64)),e0])):Ze("",!0)]),ie(m("textarea",{id:"groupValues","onUpdate:modelValue":oe[5]||(oe[5]=se=>r.value.values=se),rows:"5",placeholder:"每行一个"},null,512),[[Ke,r.value.values]])]),m("div",null,[t0,ie(m("input",{type:"number","onUpdate:modelValue":oe[6]||(oe[6]=se=>r.value.size=se),class:"pure-input-1-2",placeholder:"文件大小小于该数值才清理"},null,512),[[Ke,r.value.size]])]),m("button",{type:"button",class:"pure-button pure-button-primary",onClick:Ee},be(r.value.createdAt?"更新":"添加"),1),le(" "),m("button",{type:"button",class:"pure-button",onClick:W},"取消")])])]),default:Ve(()=>[m("a",{href:"javascript:void(0)",class:"text-primary",onClick:ee},"新增分组")]),_:1},512),xe(Ce,{ref_key:"list",ref:f,onHide:z,onShow:I,distance:5},{popper:Ve(()=>[m("div",n0,[i.value.length?Ze("",!0):(Q(),ne("h3",o0,[le(" 还没有添加任何分组。你可以: "),m("button",{type:"button",class:"pure-button button-small",onClick:ee},"添加"),le(" "),i0,le(" "),m("button",{type:"button",class:"pure-button button-small",onClick:te},"使用脚本内置"),s0,r0])),m("table",a0,[l0,m("tbody",null,[(Q(!0),ne(ze,null,Et(i.value,(se,Fe)=>(Q(),ne("tr",{key:Fe},[m("td",null,be(Fe+1),1),m("td",c0,be(se.queryOnly?"是":"否"),1),m("td",null,be(se.label),1),m("td",null,be(se.memo),1),m("td",null,be(se.size),1),m("td",null,[m("button",{type:"button",class:"pure-button button-xsmall text-primary",onClick:B=>Pe(se)},"载入",8,u0),le(" "),xe(Ce,null,{popper:Ve(()=>[m("div",f0,[m("button",{type:"button",class:"pure-button button-error",onClick:B=>Be(se,!0)},"确定",8,p0)])]),default:Ve(()=>[d0]),_:2},1024),le(" "),m("button",{type:"button",class:"pure-button button-xsmall",onClick:B=>ke(se)},"编辑",8,h0)])]))),128))])])])]),default:Ve(()=>[m("a",{href:"javascript:void(0)",class:"text-primary",onClick:L},"分组列表")]),_:1},512)])}}}),bE="",m0={class:"cloud115-eh-cleaner"},g0=[m("span",null,"清理文件",-1)],w0={key:0,class:"cloud115-eh-cleaner-help"},b0=[eb('<div><h2>免责声明</h2><div><p>该工具仅作为学习测试用途,使用该工具造成的任何结果由使用人承担。</p></div><hr><h2>说明</h2><ul style="color:#f40;"><li class="text-primary">始于清理,但不止于清理!</li><li>* 仅对当前查看的目录及其子目录生效。</li><li>* 通过『新增分组 / 分组列表』管理你的清理特征。</li><li>* 建议整理自己的特征,也欢迎在交流中分享你的特征。</li><li>* 『只查询』按钮,只会进行查询。</li><li>* 『一键清理』是先查询,再进行删除!</li><li>* 由于搜索接口限制,如果某个关键词结果数量超过1万,可能会清理不完全,可以多执行几次清理。</li><li>* <b>清理期间,请保持当前页面处于激活状态!</b></li><li>* <b>请谨慎操作!请谨慎操作!请谨慎操作!</b></li></ul><hr><h3>按 后缀名 清理</h3><div><p>1. 点击『分组列表』,选择一个分组;</p><p>2. 确认一下后缀名和文件大小限制等的设定;</p><p>3. 点击『一键清理』按钮,耐心等待。</p></div><hr><h3>按 关键词 清理</h3><div> 基本同上,略。 <br><br><p>P.S. 关键词按『全包含』进行匹配,不区分大小写。</p><p>关键词`免费在线`,匹配文件名"blabla-免费在线.mp4",<b class="text-danger">不匹配</b>文件名`blabla-免费的xxx在线.mp4`。</p><p>关键词`免费 在线`,匹配文件名"blabla-免费在线.mp4",<b class="text-success">也匹配</b>文件名`blabla-免费的xxx在线.mp4`。</p><p class="text-danger">如需要 `免费 在线` 作为一个整体去匹配,可以使用`英文单/双引号`包裹,如`"免费 在线"`</p></div></div>',1)],y0={class:"header actions-bar"},v0=m("span",{class:"title"},"文件清理工具",-1),_0={type:"button",class:"pure-button button-success"},x0=m("i",{class:"file-type tp-folder",style:{}},null,-1),C0=["disabled"],$0=["disabled"],k0=m("small",null,"毫秒",-1),E0=["disabled"],A0=m("br",null,null,-1),S0={class:"by-box by-suffix"},O0={class:"by-header"},P0=m("span",{class:"title"},[le("按"),m("b",null,"后缀名"),le("清理")],-1),I0={class:"pure-button-group",role:"group"},T0=["disabled"],M0={class:"pure-table pure-table-bordered"},B0=m("thead",null,[m("tr",null,[m("th",{width:"25"},"#"),m("th",{width:"100"},"后缀名"),m("th",{width:"95"},"文件数量"),m("th",{width:"80"},"合计大小"),m("th",{width:"150"},"操作"),m("th",{width:"200"},"状态")])],-1),L0=["onClick"],N0=["onClick"],D0=["onClick"],R0=m("br",null,null,-1),F0={class:"by-box by-keyword"},j0={class:"by-header"},U0=m("span",{class:"title"},[le("按"),m("b",null,"关键词"),le("清理")],-1),H0={class:"pure-button-group",role:"group"},z0=["disabled"],q0={class:"pure-table pure-table-bordered"},V0=m("thead",null,[m("tr",null,[m("th",{width:"25"},"#"),m("th",{width:"100"},"关键词"),m("th",{width:"95"},"文件/目录数量"),m("th",{width:"80"},"合计大小"),m("th",{width:"150"},"操作"),m("th",{width:"200"},"状态")])],-1),W0=["href"],K0={class:"file-type tp-folder"},G0=["onClick"],J0=["onClick"],Y0=m("br",null,null,-1),X0={class:"footer actions-bar"},Z0=m("span",{class:"title"},"文件清理工具",-1),Q0={type:"button",class:"pure-button button-success"},e1=m("i",{class:"file-type tp-folder",style:{}},null,-1),t1=Ue({__name:"Cleaner",setup(e){const t=_e(!1),n=_e(!0),o=_e(go(Ne.suffix)),i=_e(go(Ne.keyword)),s=_e({maxSize:5,matchName:!1}),r=_e({maxSize:100,matchName:!0}),c=_e([]),u=_e([]),f=_e(!1),d=_e({initialized:!1,pageSize:1150,reqInterval:800,deleteSize:1150,...ji("cleanerConfig",{})}),h=_e(!0),b=_e(""),k=_e([]);async function A(B){console.log("[handleMessage]",B),B.data.type===Hn.OPEN_CLEANER&&(await S(B.data.payload),Hi({type:Hn.CLEANER_OPENED},B.source))}Zt(async()=>{console.log("[Cleaner onMounted]"),d.value.initialized||(d.value.initialized=!0,qn("cleanerConfig",d.value,!1)),window.addEventListener("message",A)}),yi(()=>{console.log("[Cleaner onUnmounted]"),window.removeEventListener("message",A)});async function S(B){t.value=!0;const K=await Vt();if(K==="0"||K===""){await W(),await we.fire({icon:"warning",html:"<h2>不允许在根目录使用该工具!</h2>"});return}b.value&&b.value!==K&&(console.warn("目录变化,重置"),await X(ut.reset),await ee(ut.reset)),k.value=await em(),b.value=K}async function W(){t.value=!1}async function z(){qn("cleanerConfig",d.value,!1),me({icon:"success",text:"保存成功",timer:1800}),h.value=!0}async function I(B){const K={};B.isFilter?K.type=B.pattern:K.suffix=B.pattern;let N=unsafeWindow.frames[0];for(let ue=0;ue<unsafeWindow.frames.length;ue++)if(unsafeWindow.frames[ue].name==="wangpan"){N=unsafeWindow.frames[ue];break}Hi({type:Hn.INVOKE_FILTER,payload:K},N),await W(),me({icon:"info",text:`已调用115筛选: ${B.value}`,timer:2500})}async function L(B,K){const{value:N}=await we.fire({input:"textarea",title:B,html:"每行一个,最短两个字符。"+(K===Ne.keyword?`<br>默认只匹配文件名,不匹配目录名。<br>使用 "<b>${sr}目录名关键词</b>" 格式指定只匹配目录名的关键词。`:""),width:620,inputPlaceholder:"每行一个,最短两个字符",inputAttributes:{"aria-label":"每行一个,最短两个字符"},showCancelButton:!0});return N!==void 0?N.trim():""}async function X(B,K){let N="",ue=[];switch(B){case ut.assign:N=K.trim(),N.trim()===""?c.value=[]:(ue=await wo(N,Ne.suffix),c.value=ue);break;case ut.append:N=await L("添加后缀",Ne.suffix),ue=await wo(N,Ne.suffix);const ve=[];c.value.forEach(Oe=>ve.push(Oe.value.toLowerCase())),ue.forEach(Oe=>{ve.includes(Oe.value.toLowerCase())||c.value.push(Oe)});break;case ut.cover:N=await L("覆盖后缀",Ne.suffix),N.trim()!==""&&(ue=await wo(N,Ne.suffix),c.value=ue);break;case ut.clear:c.value=[];break;case ut.reset:c.value.forEach(Oe=>{Oe.num=-1,Oe.fileIds=[],Oe.status=rt.none,Oe.size=-1});break}}async function ee(B,K){let N="",ue=[];switch(B){case ut.assign:N=K.trim(),N.trim()===""?u.value=[]:(ue=await wo(N,Ne.keyword),u.value=ue);break;case ut.append:N=await L("添加关键词",Ne.keyword),ue=await wo(N,Ne.keyword);const ve=[];u.value.forEach(Oe=>ve.push(Oe.value.toLowerCase())),ue.forEach(Oe=>{ve.includes(Oe.value.toLowerCase())||u.value.push(Oe)});break;case ut.cover:N=await L("覆盖关键词",Ne.keyword),N.trim()!==""&&(ue=await wo(N,Ne.keyword),u.value=ue);break;case ut.clear:u.value=[];break;case ut.reset:u.value.forEach(Oe=>{Oe.num=-1,Oe.fileIds=[],Oe.status=rt.none,Oe.size=-1});break}}async function te(B){if(console.log("[cleanBySuffix]",B),await X(ut.reset),!c.value.length){await we.fire({icon:"warning",text:"请先设置后缀!"});return}if(!B){const{isConfirmed:K}=await we.fire({icon:"warning",html:'请在清理前确认"后缀和大小限制的设置"是否符合预期!',confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!K)return}f.value=!0;try{for(let K=0;K<c.value.length;K++){const N=c.value[K];await Be(N,B,!1,!0),await zt(d.value.reqInterval)}}catch(K){console.error(K)}f.value=!1}async function Be(B,K,N,ue){if(console.log("[cleanBySuffixSingle]",B,K),!K&&!ue){const{isConfirmed:ve}=await we.fire({icon:"warning",html:`确认执行条件 "后缀: <b class="text-primary">${B.pattern}</b>, 小于: <b>${s.value.maxSize}</b> MB" 的清理?`,confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!ve)return}try{if(!N){f.value=!0,B.fileIds=[],B.size=-1,B.num=-1,B.status=rt.prepare;const ve=await Pe(B);B.status=rt.prepared;const{fileIds:Oe,size:Je}=await yf(B,ve,s.value);B.fileIds=Oe,B.size=Je,B.num=Oe.length,f.value=!1}if(!K)if(B.num>0){B.status=rt.deleting,f.value=!0;const ve=await lc(b.value,B.fileIds,d.value.deleteSize,1e3);f.value=!1,ve>0?B.status=rt.success+` / 数量 <= ${ve}`:B.status=rt.failed}else B.status=rt.success+" / 无"}catch(ve){console.error(ve),f.value=!1,await we.fire({title:"cleanBySuffixSingle - 发生错误",html:ve.toString()})}}async function ke(B){if(console.log("[cleanByKeyword]",B),await ee(ut.reset),!u.value.length){await we.fire({icon:"warning",text:"请先设置关键词!"});return}if(!B){const{isConfirmed:K}=await we.fire({icon:"warning",html:'请在清理前确认"关键词和大小限制的设置"是否符合预期!',confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!K)return}f.value=!0;try{for(let K=0;K<u.value.length;K++){const N=u.value[K];await Ee(N,B,!1,!0),await zt(d.value.reqInterval)}}catch(K){console.error(K)}f.value=!1}async function Ee(B,K,N,ue){if(console.log("[cleanByKeywordSingle]",B,K),!K&&!ue){const{isConfirmed:ve}=await we.fire({icon:"warning",html:`确认执行条件 "关键词: <b class="text-primary">${B.pattern}</b>, 小于: <b class="text-primary">${r.value.maxSize}</b> MB" 的清理?`,confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!ve)return}try{if(!N){f.value=!0,B.fileIds=[],B.size=-1,B.num=-1,B.status=rt.prepare;const ve=await de(B);B.status=rt.prepared;const{fileIds:Oe,size:Je,num:Ye}=await yf(B,ve,r.value);B.fileIds=Oe,B.size=Je,B.num=Ye,f.value=!1}if(!K)if(B.num>0){B.status=rt.deleting,f.value=!0;const ve=await lc(b.value,B.fileIds,d.value.deleteSize,1e3);f.value=!1,ve>0?B.status=rt.success+` / 数量 <= ${ve}`:B.status=rt.failed,B.num>9e3&&(console.warn("[cleanByKeywordSingle] 补充处理..."),await Ee(B,K,!1,!0))}else B.status=rt.success+" / 无"}catch(ve){console.error(ve),f.value=!1;let Oe=!0;const Je={title:"cleanByKeywordSingle - 发生错误",html:ve.toString()};ve instanceof Tr&&(B.status=rt.prepareFailed+` / ${ve.message}`,ve instanceof rc&&(Je.timer=2e3,Oe=!1)),Oe?await we.fire(Je):we.fire(Je)}}async function Pe(B){const K=await Vt(),N=Ol({cid:K,limit:d.value.pageSize});B.isFilter?N.type=B.pattern:N.suffix=B.value;const ue=await ac(N,d.value.reqInterval);return console.log("[files]",ue),ue}async function de(B){const K=await Vt(),N=Ep({search_value:Ya(B.pattern),cid:K,limit:d.value.pageSize}),ue=await qh(N,d.value.reqInterval,!0);return console.log("[files]",ue),ue}function oe(B){return Lr({search_value:Ya(B.pattern),cid:b.value},k.value[k.value.length-1])}async function Ce(B){console.log("[onSuffixGroupChange]",B),o.value=B,s.value.maxSize=B.size,await X(ut.assign,B.values)}async function se(B){console.log("[onKeywordGroupChange]",B),i.value=B,r.value.maxSize=B.size,await ee(ut.assign,B.values)}async function Fe(){document.querySelector(".cloud115-eh-cleaner-drawer").scrollTo(0,0)}return(B,K)=>ie((Q(),ne("span",m0,[cn(B.$slots,"default",{},()=>[m("span",{class:"btn-open pure-button pure-button-primary",onClick:S},g0)]),t.value?(Q(),ne("div",w0,b0)):Ze("",!0),ie(m("div",{class:et(["cloud115-eh-cleaner-drawer",{loading:f.value}])},[m("div",y0,[v0,m("span",{class:"close"},[m("button",{type:"button",class:"pure-button button-error",onClick:W},"关闭")]),m("button",_0,[m("b",null,[x0,le(" "+be(k.value.join(" / ")),1)])])]),m("div",null,[le(" 请求分页: "),ie(m("input",{type:"number","onUpdate:modelValue":K[0]||(K[0]=N=>d.value.pageSize=N),min:30,max:1150,disabled:h.value},null,8,C0),[[Ke,d.value.pageSize]]),le(" 请求间隔: "),ie(m("input",{type:"number","onUpdate:modelValue":K[1]||(K[1]=N=>d.value.reqInterval=N),min:200,max:1e6,disabled:h.value},null,8,$0),[[Ke,d.value.reqInterval]]),k0,le(" 每次删除: "),ie(m("input",{type:"number","onUpdate:modelValue":K[2]||(K[2]=N=>d.value.deleteSize=N),min:1,max:1150,disabled:h.value},null,8,E0),[[Ke,d.value.deleteSize]]),m("span",{class:"config-toggle",onClick:K[3]||(K[3]=N=>h.value=!h.value)},"设置参数"),h.value?Ze("",!0):(Q(),ne("button",{key:0,type:"button",class:"pure-button pure-button-primary button-small",onClick:z}," 保存配置 "))]),A0,m("div",S0,[m("div",O0,[P0,le(" "),m("div",I0,[m("button",{type:"button",class:"pure-button",onClick:K[4]||(K[4]=N=>te(!0))},"只查询"),m("button",{type:"button",class:"pure-button pure-button-primary",onClick:K[5]||(K[5]=N=>te(!1)),disabled:o.value.queryOnly}," 一键清理 ",8,T0)]),le(" 小于 "),ie(m("input",{type:"number","onUpdate:modelValue":K[6]||(K[6]=N=>s.value.maxSize=N),class:"filter-size"},null,512),[[Ke,s.value.maxSize]]),le(" MB (0表示不限制) "),xe(vf,{type:Te(Ne).suffix,"storage-key":"suffixGroups",onChange:Ce,config:d.value},null,8,["type","config"])]),m("table",M0,[B0,m("tbody",null,[(Q(!0),ne(ze,null,Et(c.value,(N,ue)=>(Q(),ne("tr",{key:ue,class:et({active:Te(wf)(N),"is-filter":N.isFilter})},[m("td",null,be(ue+1),1),m("td",null,[m("a",{href:"javascript:void(0)",class:"pattern",onClick:ve=>I(N),title:"筛选"},be(N.value),9,L0)]),m("td",null,be(N.num>=0?N.num:""),1),m("td",null,be(N.size>0?Te(wl)(N.size):""),1),m("td",null,[m("button",{type:"button",class:"pure-button button-xsmall",onClick:ve=>Be(N,!0,!1,!0)},"查询",8,N0),le(" "),N.num>0&&!o.value.queryOnly?(Q(),ne("button",{key:0,type:"button",class:"pure-button button-warning button-xsmall",onClick:ve=>Be(N,!1,!0,!1)},"清理",8,D0)):Ze("",!0)]),m("td",null,be(N.status),1)],2))),128))])])]),R0,m("div",F0,[m("div",j0,[U0,le(" "),m("div",H0,[m("button",{type:"button",class:"pure-button",onClick:K[7]||(K[7]=N=>ke(!0))},"只查询"),m("button",{type:"button",class:"pure-button pure-button-primary",onClick:K[8]||(K[8]=N=>ke(!1)),disabled:i.value.queryOnly}," 一键清理 ",8,z0)]),le(" 小于 "),ie(m("input",{type:"number","onUpdate:modelValue":K[9]||(K[9]=N=>r.value.maxSize=N),class:"filter-size"},null,512),[[Ke,r.value.maxSize]]),le(" MB (0表示不限制) "),xe(vf,{type:Te(Ne).keyword,"storage-key":"keywordGroups",onChange:se,config:d.value},null,8,["type","config"])]),m("table",q0,[V0,m("tbody",null,[(Q(!0),ne(ze,null,Et(u.value,(N,ue)=>(Q(),ne("tr",{key:ue,class:et({active:Te(wf)(N),"is-dir":N.forDir})},[m("td",null,be(ue+1),1),m("td",null,[m("a",{href:oe(N),target:"_blank",class:"pattern",title:"搜索"},[ie(m("i",K0,null,512),[[fn,N.forDir]]),le(" "+be(N.pattern),1)],8,W0)]),m("td",null,be(N.num>=0?N.num:""),1),m("td",null,be(N.size>0?Te(wl)(N.size):""),1),m("td",null,[m("button",{type:"button",class:"pure-button button-xsmall",onClick:ve=>Ee(N,!0,!1,!0)},"查询",8,G0),le(" "),N.num>0&&!i.value.queryOnly?(Q(),ne("button",{key:0,type:"button",class:"pure-button button-warning button-xsmall",onClick:ve=>Ee(N,!1,!0,!1)}," 清理 ",8,J0)):Ze("",!0)]),m("td",null,be(N.status),1)],2))),128))])])]),Y0,m("div",X0,[Z0,m("span",{class:"close"},[m("button",{type:"button",class:"pure-button button-error",onClick:W},"关闭")]),m("button",Q0,[m("b",null,[e1,le(" "+be(k.value.join(" / ")),1)])]),le(" "),m("button",{type:"button",class:"pure-button button-small",onClick:Fe}," 回到顶部 ")])],2),[[fn,t.value]])],512)),[[fn,n.value]])}}),_E="",xE="";async function n1(){const{host:e,search:t}=location;e==="115.com"&&(console.log("[Cleaner] running..."),t.includes("ct=file")?await o1():await i1())}async function o1(){const e="cloud115Cleaner";(await _n("#js_path_add_dir")).after(`<span id="${e}"></span>`),Lo(T_).mount(`#${e}`)}async function i1(){const e="cloud115Cleaner";$("body").append(`<div id="${e}"/>`);const t=Lo(t1);t.use(pf),t.mount(`#${e}`),pl("清理文件",async()=>{Hi({type:Hn.OPEN_CLEANER},window.parent)})}async function s1(){const e=await ir(),{host:t,search:n}=location;!/115\.com$/.test(t)||($_(e),C_(e),k_(e))}const _f=Symbol("addTab"),xf=Symbol("updateTab"),Cf=Symbol("deleteTab"),$f=Symbol("tabsProvider");function rr(e,t){const n=wi(e,t);if(typeof n>"u")throw new Error(`Could not resolve ${e.description}`);return n}const r1=["data-tab-id","aria-hidden"],bo=Ue({__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=rr($f),s=rr(_f),r=rr(xf),c=rr(Cf),u=n.prefix+n.name+n.suffix,f=n.id?n.id:n.name.toLowerCase().replace(/ /g,"-"),d=f+"-pane",h=Yu(()=>"#"+(n.isDisabled?"":f));return kt(()=>i.activeTabHash,()=>{o.value=h.value===i.activeTabHash}),kt(()=>Object.assign({},n),()=>{r(f,{name:n.name,header:n.prefix+n.name+n.suffix,isDisabled:n.isDisabled,hash:h.value,index:i.tabs.length,computedId:f,paneId:d,navItemClass:n.navItemClass,navItemLinkClass:n.navItemLinkClass})}),Xt(()=>{s({name:n.name,header:u,isDisabled:n.isDisabled,hash:h.value,index:i.tabs.length,computedId:f,paneId:d,navItemClass:n.navItemClass,navItemLinkClass:n.navItemLinkClass})}),vu(()=>{c(f)}),t({header:u,computedId:f,paneId:d,hash:h,isActive:o}),(b,k)=>ie((Q(),ne("section",{ref:"tab",id:d,"data-tab-id":Te(f),"aria-hidden":!o.value,class:et(e.panelClass),role:"tabpanel",tabindex:"-1"},[cn(b.$slots,"default")],10,r1)),[[fn,o.value]])}});class a1{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 kf=new a1,l1=["aria-controls","aria-selected","href","onClick","innerHTML"],c1=Ue({__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=Cs({activeTabHash:"",lastActiveTabHash:"",tabs:[]});gi($f,i),gi(_f,c=>{i.tabs.push(c)}),gi(xf,(c,u)=>{const f=i.tabs.findIndex(d=>d.computedId===c);u.isActive=i.tabs[f].isActive,i.tabs[f]=u}),gi(Cf,c=>{const u=i.tabs.findIndex(f=>f.computedId===c);i.tabs.splice(u,1)});const s=(c,u)=>{u&&!o.options.useUrlFragment&&u.preventDefault();const f=r(c);if(!f)return;if(u&&f.isDisabled){u.preventDefault();return}if(i.lastActiveTabHash===f.hash){n("clicked",{tab:f});return}if(i.tabs.forEach(h=>{h.isActive=h.hash===f.hash}),n("changed",{tab:f}),i.lastActiveTabHash=i.activeTabHash=f.hash,o.cacheLifetime<=0)return;const d=`vue-tabs-component.cache.${window.location.host}${window.location.pathname}`;kf.set(d,f.hash,o.cacheLifetime)},r=c=>i.tabs.find(u=>u.hash===c);return Zt(()=>{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=kf.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({...Eg(i),selectTab:s,findTab:r}),(c,u)=>(Q(),ne("div",{class:et(e.wrapperClass)},[m("ul",{role:"tablist",class:et(e.navClass)},[(Q(!0),ne(ze,null,Et(i.tabs,(f,d)=>{var h,b;return Q(),ne("li",{key:d,class:et([(h=f.navItemClass)!=null?h:e.navItemClass,f.isDisabled?e.navItemDisabledClass:"",f.isActive?e.navItemActiveClass:f.isDisabled?"":e.navItemInactiveClass]),role:"presentation"},[m("a",{role:"tab",class:et([(b=f.navItemLinkClass)!=null?b:e.navItemLinkClass,f.isDisabled?e.navItemLinkDisabledClass:"",f.isActive?e.navItemLinkActiveClass:f.isDisabled?"":e.navItemLinkInactiveClass]),"aria-controls":f.paneId,"aria-selected":f.isActive,href:f.hash,onClick:k=>s(f.hash,k),innerHTML:f.header,tabindex:"0"},null,10,l1)],2)}),128))],2),m("div",{class:et(e.panelsWrapperClass)},[cn(c.$slots,"default")],2)],2))}}),u1={class:"ce-config ce-basic-config"},d1={class:"pure-form pure-form-aligned"},f1=m("legend",null,"UI优化",-1),p1={class:"pure-control-group"},h1=m("label",{for:"basic_hideSidebar"},"隐藏侧边栏",-1),m1=m("div",{class:"pure-form-message text-success"}," 虽然现在官方也有手动隐藏侧边栏的功能,不过刷新页面后会恢复显示。该设置可以一直隐藏侧边栏。 ",-1),g1=m("legend",null,"隐私保护",-1),w1={class:"pure-control-group"},b1=m("label",{for:"basic_hideWatermark"},"隐藏水印",-1),y1=m("div",{class:"pure-form-message text-success"}," 网页水印是肉眼看不到的,但通过一些处理可以看到,水印内容是你的账号标识。 如果你需要截图并发给别人,可以考虑开启隐藏。 ",-1),v1={class:"pure-control-group"},_1=m("label",{for:"basic_fakeAccountEnabled"},"隐藏身份",-1),x1=m("div",{class:"pure-form-message text-success"}," 修改右上角显示的账号信息,不会真的修改。编辑后即可生效,无需刷新页面。 ",-1),C1={class:"pure-control-group"},$1=m("label",null,"账号ID",-1),k1={class:"pure-control-group"},E1=m("label",null,"用户名",-1),A1={class:"pure-control-group"},S1=m("label",null,"头像",-1),O1={class:"avatar-preview"},P1=["src"],I1={class:"pure-control-group"},T1=m("label",null,"VIP等级",-1),M1=Ue({__name:"Config",async setup(e){let t,n;const o=_e(([t,n]=Dn(()=>ir()),t=await t,n(),t));return Xt(async()=>{}),kt(o,Vn(async i=>{await x_(i),me({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"}),window.postMessage({event:Fo.basicConfigChange,body:JSON.parse(JSON.stringify(i))})},500),{deep:!0}),(i,s)=>(Q(),ne("div",u1,[m("form",d1,[m("fieldset",null,[f1,m("div",p1,[h1,ie(m("input",{id:"basic_hideSidebar",type:"checkbox","onUpdate:modelValue":s[0]||(s[0]=r=>o.value.hideSidebar=r)},null,512),[[Me,o.value.hideSidebar]]),m1]),g1,m("div",w1,[b1,ie(m("input",{id:"basic_hideWatermark",type:"checkbox","onUpdate:modelValue":s[1]||(s[1]=r=>o.value.hideWatermark=r)},null,512),[[Me,o.value.hideWatermark]]),y1]),m("div",v1,[_1,ie(m("input",{id:"basic_fakeAccountEnabled",type:"checkbox","onUpdate:modelValue":s[2]||(s[2]=r=>o.value.fakeAccountEnabled=r)},null,512),[[Me,o.value.fakeAccountEnabled]]),x1]),m("div",C1,[$1,ie(m("input",{"onUpdate:modelValue":s[3]||(s[3]=r=>o.value.fakeAccountId=r),placeholder:"自定义账号ID",class:"pure-input-2-3"},null,512),[[Ke,o.value.fakeAccountId]])]),m("div",k1,[E1,ie(m("input",{"onUpdate:modelValue":s[4]||(s[4]=r=>o.value.fakeAccountName=r),placeholder:"自定义用户名",class:"pure-input-2-3"},null,512),[[Ke,o.value.fakeAccountName]])]),m("div",A1,[S1,ie(m("input",{"onUpdate:modelValue":s[5]||(s[5]=r=>o.value.fakeAccountAvatar=r),placeholder:"支持网络图片地址或base64编码",class:"pure-input-2-3"},null,512),[[Ke,o.value.fakeAccountAvatar]]),m("span",O1,[o.value.fakeAccountAvatar?(Q(),ne("img",{key:0,src:o.value.fakeAccountAvatar,alt:"头像预览",width:"20",height:"20"},null,8,P1)):Ze("",!0)])]),m("div",I1,[T1,ie(m("input",{"onUpdate:modelValue":s[6]||(s[6]=r=>o.value.fakeAccountVip=r),placeholder:"自定义VIP等级",class:"pure-input-2-3"},null,512),[[Ke,o.value.fakeAccountVip]])])])])]))}}),CE="",B1={class:"menu-config-block"},L1={class:"pure-form pure-form-stacked"},N1=m("legend",null,"全局设置",-1),D1={class:"pure-control-group"},R1=m("label",{for:"basic_enabled"},"启用",-1),F1={class:"pure-control-group"},j1=m("label",{for:"basic_hideSelectionMenuLabel"},"隐藏顶部菜单文本",-1),U1={class:"pure-control-group"},H1=m("label",{for:"basic_enableInSearch"},"在搜索结果页中启用",-1),z1=Ue({__name:"BasicConfig",props:{config:null},setup(e,{emit:t}){const n=e;return(o,i)=>(Q(),ne("div",B1,[m("form",L1,[m("fieldset",null,[N1,m("div",D1,[R1,ie(m("input",{id:"basic_enabled",type:"checkbox","onUpdate:modelValue":i[0]||(i[0]=s=>n.config.enabled=s)},null,512),[[Me,n.config.enabled]])]),m("div",F1,[j1,ie(m("input",{id:"basic_hideSelectionMenuLabel",type:"checkbox","onUpdate:modelValue":i[1]||(i[1]=s=>n.config.hideSelectionMenuLabel=s)},null,512),[[Me,n.config.hideSelectionMenuLabel]])]),m("div",U1,[H1,ie(m("input",{id:"basic_enableInSearch",type:"checkbox","onUpdate:modelValue":i[2]||(i[2]=s=>n.config.enableInSearch=s)},null,512),[[Me,n.config.enableInSearch]])])])])]))}}),q1={class:"menu-config-block"},V1={class:"pure-form pure-form-stacked"},W1=m("label",{for:"listItemHover_enabled"},"启用",-1),K1=m("label",{for:"listItemHover_openInNewTab"},"新标签页打开",-1),G1=m("label",{for:"listItemHover_search",class:"text-primary"},"搜索",-1),J1=m("label",{for:"listItemHover_play",class:"text-primary"},"播放",-1),Y1=m("label",{for:"listItemHover_copyFileName"},"复制名称",-1),X1=Ue({__name:"ListItemHoverConfig",props:{config:null},setup(e){return(t,n)=>(Q(),ne("div",q1,[m("form",V1,[m("fieldset",null,[m("legend",null,be(Te(Go).listItemHover),1),m("div",null,[W1,ie(m("input",{id:"listItemHover_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[Me,e.config.enabled]])]),m("div",null,[K1,ie(m("input",{id:"listItemHover_openInNewTab",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.openInNewTab=o)},null,512),[[Me,e.config.openInNewTab]])]),m("div",null,[G1,ie(m("input",{id:"listItemHover_search",type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=o=>e.config.search=o)},null,512),[[Me,e.config.search]])]),m("div",null,[J1,ie(m("input",{id:"listItemHover_play",type:"checkbox","onUpdate:modelValue":n[3]||(n[3]=o=>e.config.play=o)},null,512),[[Me,e.config.play]])]),m("div",null,[Y1,ie(m("input",{id:"listItemHover_copyFileName",type:"checkbox","onUpdate:modelValue":n[4]||(n[4]=o=>e.config.copyNames=o)},null,512),[[Me,e.config.copyNames]])])])])]))}}),Z1={class:"menu-config-block"},Q1={class:"pure-form pure-form-stacked"},ex=m("label",{for:"listItemContext_enabled"},"启用",-1),tx=m("label",{for:"listItemContext_copyFileName"},"复制名称",-1),nx=Ue({__name:"ListItemContextConfig",props:{config:null},setup(e){return(t,n)=>(Q(),ne("div",Z1,[m("form",Q1,[m("fieldset",null,[m("legend",null,be(Te(Go).listItemContext),1),m("div",null,[ex,ie(m("input",{id:"listItemContext_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[Me,e.config.enabled]])]),m("div",null,[tx,ie(m("input",{id:"listItemContext_copyFileName",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.copyNames=o)},null,512),[[Me,e.config.copyNames]])])])])]))}}),ox={class:"menu-config-block"},ix={class:"pure-form pure-form-stacked"},sx=m("label",{for:"selection_enabled"},"启用",-1),rx=m("label",{for:"selection_moveToSelfNameDir"},"移动到同名目录",-1),ax=m("label",{for:"selection_copyFileName"},"复制名称",-1),lx=Ue({__name:"SelectionConfig",props:{config:null},setup(e){return(t,n)=>(Q(),ne("div",ox,[m("form",ix,[m("fieldset",null,[m("legend",null,be(Te(Go).selection),1),m("div",null,[sx,ie(m("input",{id:"selection_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[Me,e.config.enabled]])]),m("div",null,[rx,ie(m("input",{id:"selection_moveToSelfNameDir",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.moveToSelfNameDir=o)},null,512),[[Me,e.config.moveToSelfNameDir]])]),m("div",null,[ax,ie(m("input",{id:"selection_copyFileName",type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=o=>e.config.copyNames=o)},null,512),[[Me,e.config.copyNames]])])])])]))}}),cx={class:"menu-config-block"},ux={class:"pure-form pure-form-stacked"},dx=m("label",{for:"dirContext_enabled"},"启用",-1),fx=m("label",{for:"dirContext_rename"},"重命名",-1),px=m("label",{for:"dirContext_delete"},"删除",-1),hx=m("label",{for:"dirContext_play"},"播放全部",-1),mx=m("label",{for:"dirContext_copyFileName"},"复制名称",-1),gx=m("label",{for:"dirContext_move"},"移动",-1),wx=m("label",{for:"dirContext_copy"},"复制",-1),bx=m("label",{for:"dirContext_copyTo"},"复制到",-1),yx=m("label",{for:"dirContext_viewProperties"},"查看属性",-1),vx=m("label",{for:"dirContext_showSubFolderSize"},"子文件夹大小",-1),_x=Ue({__name:"DirContextConfig",props:{config:null},setup(e){return(t,n)=>(Q(),ne("div",cx,[m("form",ux,[m("fieldset",null,[m("legend",null,be(Te(Go).dirContext),1),m("div",null,[dx,ie(m("input",{id:"dirContext_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[Me,e.config.enabled]])]),m("div",null,[fx,ie(m("input",{id:"dirContext_rename",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.rename=o)},null,512),[[Me,e.config.rename]])]),m("div",null,[px,ie(m("input",{id:"dirContext_delete",type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=o=>e.config.delete=o)},null,512),[[Me,e.config.delete]])]),m("div",null,[hx,ie(m("input",{id:"dirContext_play",type:"checkbox","onUpdate:modelValue":n[3]||(n[3]=o=>e.config.play=o)},null,512),[[Me,e.config.play]])]),m("div",null,[mx,ie(m("input",{id:"dirContext_copyFileName",type:"checkbox","onUpdate:modelValue":n[4]||(n[4]=o=>e.config.copyNames=o)},null,512),[[Me,e.config.copyNames]])]),m("div",null,[gx,ie(m("input",{id:"dirContext_move",type:"checkbox","onUpdate:modelValue":n[5]||(n[5]=o=>e.config.move=o)},null,512),[[Me,e.config.move]])]),m("div",null,[wx,ie(m("input",{id:"dirContext_copy",type:"checkbox","onUpdate:modelValue":n[6]||(n[6]=o=>e.config.copy=o)},null,512),[[Me,e.config.copy]])]),m("div",null,[bx,ie(m("input",{id:"dirContext_copyTo",type:"checkbox","onUpdate:modelValue":n[7]||(n[7]=o=>e.config.copyTo=o)},null,512),[[Me,e.config.copyTo]])]),m("div",null,[yx,ie(m("input",{id:"dirContext_viewProperties",type:"checkbox","onUpdate:modelValue":n[8]||(n[8]=o=>e.config.viewProp=o)},null,512),[[Me,e.config.viewProp]])]),m("div",null,[vx,ie(m("input",{id:"dirContext_showSubFolderSize",type:"checkbox","onUpdate:modelValue":n[9]||(n[9]=o=>e.config.showSubFolderSize=o)},null,512),[[Me,e.config.showSubFolderSize]])])])])]))}}),xx={class:"official-menu-config"},Cx={class:"pure-form pure-form-stacked"},$x=["for"],kx=["id","onUpdate:modelValue"],Ex=Ue({__name:"OfficialMenuConfig",setup(e){const t=_e([]),n=_e(!1);return Xt(async()=>{t.value=await yd(),console.log("official menu groups",t.value,location.href)}),Zt(()=>{document.body.addEventListener("click",()=>{n.value||(n.value=!0)})}),kt(t,Vn(async o=>{if(!n.value)return;const i=await bd(o);await wd(i),me({icon:"success",title:"官方菜单设置已保存,刷新页面生效。",timer:1e3,position:"top-end"})},500),{deep:!0}),(o,i)=>(Q(),ne("div",xx,[(Q(!0),ne(ze,null,Et(t.value,(s,r)=>(Q(),ne("div",{key:r,class:"menu-config-block"},[m("form",Cx,[m("fieldset",null,[m("legend",null,be(s.label),1),(Q(!0),ne(ze,null,Et(s.items,(c,u)=>(Q(),ne("div",{key:u},[m("label",{for:`m_${r}_${u}_enabled`},be(c.label),9,$x),ie(m("input",{id:`m_${r}_${u}_enabled`,type:"checkbox","onUpdate:modelValue":f=>c.enabled=f},null,8,kx),[[Me,c.enabled]])]))),128))])])]))),128))]))}}),Ax={key:0,class:"ce-menu-config"},Sx=m("div",{class:"ce-tips"},[m("p",null,"「搜索」功能菜单支持自定义,可在「搜索菜单」设置面板中添加和管理。"),m("p",null,"「播放」功能菜单支持自定义,可在「播放菜单」设置面板中添加和管理。")],-1),Ox=m("hr",{class:"ce-hr"},null,-1),Px=m("h1",null,"官方菜单设置",-1),Ix=Ue({__name:"MenuConfig",async setup(e){let t,n;const o=_e(([t,n]=Dn(()=>mc()),t=await t,n(),t));return _e(!1),Xt(async()=>{}),kt(o,Vn(async i=>{await hm(i),me({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"})},500),{deep:!0}),(i,s)=>o.value.enabled!==void 0?(Q(),ne("div",Ax,[Sx,xe(z1,{config:o.value},null,8,["config"]),xe(X1,{config:o.value.listItemHover},null,8,["config"]),xe(nx,{config:o.value.listItemContext},null,8,["config"]),xe(lx,{config:o.value.selection},null,8,["config"]),xe(_x,{config:o.value.dirContext},null,8,["config"]),Ox,m("div",null,[Px,m("div",null,[xe(Ex)])])])):Ze("",!0)}}),$E="",Tx={class:"pure-form pure-form-aligned"},Mx=["disabled"],Bx={class:"pure-control-group"},Lx=m("label",null,"地址",-1),Nx={class:"pure-control-group"},Dx=m("label",null,"资源根路径",-1),Rx={class:"pure-control-group"},Fx=m("label",null,"备注",-1),jx=Ue({__name:"ConfigItem",props:{config:null,deletable:{type:Boolean}},emits:["change","delete","activate"],setup(e,{emit:t}){const n=e;Xt(async()=>{});function o(){n.config.active=!0,t("activate",n.config)}function i(){t("delete")}return kt(n.config,Vn(async s=>{t("change",s)},500),{deep:!0}),(s,r)=>(Q(),ne("div",{class:et(["ce-clouddrive-config-item",{active:e.config.active}])},[m("form",Tx,[m("fieldset",null,[m("legend",null,[m("button",{type:"button",class:et(["pure-button button-small",[e.config.active?"button-success":"pure-button-primary"]]),onClick:o,disabled:e.config.active},be(e.config.active?"当前使用该配置":"使用该配置"),11,Mx),e.deletable?(Q(),ne("button",{key:0,type:"button",class:"pure-button button-error button-small",onClick:i}," 删除 ")):Ze("",!0)]),m("div",Bx,[Lx,ie(m("input",{"onUpdate:modelValue":r[0]||(r[0]=c=>e.config.url=c),placeholder:"CloudDrive服务地址,如「http://localhost:19798」",class:"pure-input-2-3"},null,512),[[Ke,e.config.url]])]),m("div",Nx,[Dx,ie(m("input",{"onUpdate:modelValue":r[1]||(r[1]=c=>e.config.root=c),placeholder:"即当前115账号在CloudDrive中的资源名称,如「115」",class:"pure-input-2-3"},null,512),[[Ke,e.config.root]])]),m("div",Rx,[Fx,ie(m("input",{"onUpdate:modelValue":r[2]||(r[2]=c=>e.config.memo=c),placeholder:"备注信息",class:"pure-input-2-3"},null,512),[[Ke,e.config.memo]])])])])],2))}}),kE="",Ux={class:"ce-config ce-clouddrive-config"},Hx=m("div",{class:"ce-tips cd-tips"},[m("p",null,[m("a",{href:"https://www.clouddrive2.com/?ref=cloud115-enhancer",rel:"noreferer",target:"_blank",class:"text-bold text-primary"},"CloudDrive"),le(" 是一个强大的多云盘管理工具,为用户提供包含云盘本地挂载的一站式的多云盘解决方案。")]),m("p",null,"本脚本主要是借助CloudDrive实现原码视频播放的功能(具体可以在「播放菜单」面板中查看)。")],-1),zx={class:"ce-list"},qx=m("div",{class:"ce-tips"},[m("p",{class:"text-primary"}," 暂时发现IINA是支持`file://`协议的,这时候播放器可以读取到同目录的字幕文件。 配置地址示例: file:///Users/you/115,根路径不用填。 ")],-1),Vx=m("div",{class:"ce-tips"}," 编辑配置后,请记得点击「保存全部配置」。 ",-1),Wx={class:"ce-actions"},Kx=["disabled"],Gx=Ue({__name:"Config",async setup(e){let t,n;const o=_e(([t,n]=Dn(()=>Cl()),t=await t,n(),t));_e("2BWIZPj3"),Xt(async()=>{});async function i(){await $l(o.value),me({icon:"success",title:"设置已保存。",timer:800,position:"top-end"})}async function s(){o.value.push(mr())}async function r(u,f){const{isConfirmed:d}=await we.fire({icon:"warning",html:`确定要删除第 ${f+1} 个配置「${u.url}」吗?`});!d||(o.value.splice(f,1),await i(),me({icon:"success",title:`「${u.url}」已删除!`}))}async function c(u,f){u.forEach((d,h)=>{d.active=h===f}),await $l(u),me({icon:"success",title:"设置已保存。",timer:800,position:"top-end"})}return(u,f)=>(Q(),ne("div",Ux,[Hx,m("div",zx,[(Q(!0),ne(ze,null,Et(o.value,(d,h)=>(Q(),jt(jx,{key:h,config:d,index:h,deletable:o.value.length>1,onDelete:b=>r(d,h),onActivate:b=>c(o.value,h)},null,8,["config","index","deletable","onDelete","onActivate"]))),128))]),qx,Vx,m("div",Wx,[m("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:i,disabled:!o.value.length}," 保存全部配置 ",8,Kx),le(" "),m("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:s}," 添加配置 ")])]))}}),EE="",Ef=function(){return document.ontouchstart!==null?"click":"touchstart"},ar="__vue_click_away__",Af=function(e,t,n){Sf(e);let o=n.context,i=t.value,s=!1;setTimeout(function(){s=!0},0),e[ar]=function(r){if((!e||!e.contains(r.target))&&i&&s&&typeof i=="function")return i.call(o,r)},document.addEventListener(Ef(),e[ar],!1)},Sf=function(e){document.removeEventListener(Ef(),e[ar],!1),delete e[ar]},Jx={mounted:Af,updated:function(e,t,n){t.value!==t.oldValue&&Af(e,t,n)},unmounted:Sf},Yx=Ue({__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 Zt(()=>{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(),ne("div",null,[m("div",{class:et(["ce-drawer",{"is-open":e.isOpen,"is-visible":o.value}])},[m("div",{class:"ce-drawer__overlay",style:on({transitionDuration:`${e.speed}ms`})},null,4),ie((Q(),ne("div",{class:"ce-drawer__content",style:on({maxWidth:e.maxWidth,transitionDuration:`${e.speed}ms`,backgroundColor:e.backgroundColor})},[cn(c.$slots,"default")],4)),[[Te(Jx),r]])],2)]))}}),SE="",Xx={class:"ce-custom-url"},Zx={class:"pure-form pure-form-aligned"},Qx={class:"ce-custom-url-index"},eC={class:"pure-control-group"},tC=m("label",null,"启用",-1),nC={class:"pure-control-group"},oC=m("label",null,"唯一标识",-1),iC={class:"pure-control-group"},sC=m("label",null,"显示名称",-1),rC={class:"pure-control-group"},aC=m("label",null,"图标",-1),lC={class:"pure-control-group"},cC={class:"pure-control-group"},uC=m("label",null,"后台打开",-1),dC={class:"pure-control-group"},fC=m("label",null,"备注",-1),pC={key:0,class:"pure-control-group"},hC=m("label",null,"Mutation",-1),Of=Ue({__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&&me({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 we.fire({title:"Mutation 说明",html:c,width:480,position:"top-start",backdrop:!1})}return(c,u)=>(Q(),ne("div",Xx,[m("form",Zx,[m("fieldset",null,[m("legend",null,[m("span",Qx,"# "+be(e.index+1),1),m("button",{type:"button",class:"pure-button button-error button-small",onClick:o}," 删除 ")]),m("div",eC,[tC,ie(m("input",{"onUpdate:modelValue":u[0]||(u[0]=f=>e.item.enabled=f),type:"checkbox",id:"customUrl_enabled"},null,512),[[Me,e.item.enabled]])]),m("div",nC,[oC,ie(m("input",{"onUpdate:modelValue":u[1]||(u[1]=f=>e.item.key=f),id:"customUrl_key",class:"pure-input-2-3",placeholder:"英文、数字或下划线"},null,512),[[Ke,e.item.key]])]),m("div",iC,[sC,ie(m("input",{"onUpdate:modelValue":u[2]||(u[2]=f=>e.item.label=f),id:"customUrl_label",class:"pure-input-2-3",placeholder:"菜单文本,尽量简洁"},null,512),[[Ke,e.item.label]])]),m("div",rC,[aC,ie(m("input",{"onUpdate:modelValue":u[3]||(u[3]=f=>e.item.icon=f),id:"customUrl_icon",class:"pure-input-2-3",placeholder:"图标class、图片链接或图片data:image"},null,512),[[Ke,e.item.icon]])]),m("div",lC,[m("label",{onDblclick:i}," 链接 ",32),ie(m("textarea",{"onUpdate:modelValue":u[4]||(u[4]=f=>e.item.url=f),id:"customUrl_url",class:"pure-input-2-3",placeholder:"链接地址,支持变量,变量列表请点击右侧「查看变量」"},null,512),[[Ke,e.item.url]]),le(" "),m("a",{href:"javascript:void(0)",class:"text-primary",onClick:s},"查看变量")]),m("div",cC,[uC,ie(m("input",{"onUpdate:modelValue":u[5]||(u[5]=f=>e.item.openInBackground=f),id:"customUrl_openInBackground",type:"checkbox"},null,512),[[Me,e.item.openInBackground]])]),m("div",dC,[fC,ie(m("input",{"onUpdate:modelValue":u[6]||(u[6]=f=>e.item.memo=f),id:"customUrl_memo",class:"pure-input-2-3"},null,512),[[Ke,e.item.memo]])]),n.value?(Q(),ne("div",pC,[hC,ie(m("textarea",{"onUpdate:modelValue":u[7]||(u[7]=f=>e.item.mutation=f),id:"customUrl_mutation",class:"pure-input-2-3",placeholder:"自定义代码生成最终链接,具体请看右侧「查看说明」"},null,512),[[Ke,e.item.mutation]]),le(" "),m("a",{href:"javascript:void(0)",class:"text-primary",onClick:r},"查看说明")])):Ze("",!0)])])]))}}),OE="",mC={class:"ce-config ce-search-urls ce-custom-urls"},gC={class:"ce-menu-urls-builtin"},wC={class:"pure-form pure-form-aligned"},bC=["for"],yC=["id","onUpdate:modelValue"],vC={class:"text-info"},_C=["onClick"],xC={class:"ce-custom-urls-list"},CC={class:"ce-custom-urls-actions"},$C=["disabled"],kC=Ue({__name:"SearchUrls",async setup(e){let t,n;const o=_e(([t,n]=Dn(()=>ud()),t=await t,n(),t)),i=_e(([t,n]=Dn(()=>ei($n.search)),t=await t,n(),t));Xt(async()=>{}),kt(o,Vn(async d=>{const h=[];d.forEach(b=>{b.enabled&&h.push(b.key)}),await Zb(h),me({icon:"success",title:"预置搜索菜单设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"})},500),{deep:!0});async function s(){const d=[];for(const h of i.value){if(!await r(h,d.length))return;if(d.includes(h.key)){me({icon:"error",title:`第 ${d.length+1} 个记录的「唯一标识: ${h.key}」重复!`});return}d.push(h.key)}await pc($n.search,i.value),me({icon:"success",title:"保存成功!"})}async function r(d,h){const b=/^\w+$/;return d.key=d.key.trim(),b.test(d.key)?(d.label=d.label.trim(),d.label===""?(me({icon:"error",title:`第 ${h+1} 个记录的「显示名称」不能为空!`}),!1):(d.url=d.url.trim(),d.url===""?(me({icon:"error",title:`第 ${h+1} 个记录的「链接」不能为空!`}),!1):(d.icon=d.icon.trim(),d.memo=d.memo.trim(),!0))):(me({icon:"error",title:`第 ${h+1} 个记录的「唯一标识」错误!只能包含字母、数字、下划线。`}),!1)}async function c(){i.value.push(ct())}async function u(d,h){const{isConfirmed:b}=await we.fire({icon:"warning",html:`确定要删除第 ${h+1} 个记录「${d.label}」吗?`});!b||(i.value.splice(h,1),await s(),me({icon:"success",title:`「${d.label}」已删除!`}))}async function f(d){const h=JSON.stringify(d,null,2),{isConfirmed:b}=await we.fire({title:`「${d.label}」的定义`,html:`<h3>${d.memo}</h3>
<pre style="text-align:left;font-size:12px;">${h}</pre>`,confirmButtonText:"复制",showCancelButton:!0,position:"top-left",heightAuto:!0});!b||(navigator.clipboard.writeText(h),me({icon:"success",title:"已复制到剪贴板!"}))}return(d,h)=>(Q(),ne("div",mC,[m("h1",null,[le("预置搜索菜单 "),ie(m("small",null,"( "+be(o.value.length)+" )",513),[[fn,o.value.length]])]),m("div",gC,[m("form",wC,[m("fieldset",null,[(Q(!0),ne(ze,null,Et(o.value,(b,k)=>(Q(),ne("div",{key:k,class:"pure-control-group"},[m("label",{for:`builtin_${b.key}`},be(b.label),9,bC),ie(m("input",{id:`builtin_${b.key}`,type:"checkbox","onUpdate:modelValue":A=>b.enabled=A},null,8,yC),[[Me,b.enabled]]),le(" "),m("span",vC,be(b.memo),1),le(" "),m("button",{type:"button",class:"pure-button button-small",onClick:A=>f(b)},"查看定义",8,_C)]))),128))])])]),m("h1",null,[le("自定义搜索菜单 "),ie(m("small",null,"( "+be(i.value.length)+" )",513),[[fn,i.value.length]])]),m("div",xC,[(Q(!0),ne(ze,null,Et(i.value,(b,k)=>(Q(),jt(Of,{key:k,item:b,index:k,onDelete:A=>u(b,k)},null,8,["item","index","onDelete"]))),128))]),m("div",CC,[m("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:s,disabled:!i.value.length}," 保存自定义搜索菜单 ",8,$C),le(" "),m("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:c}," 添加自定义搜索菜单 ")])]))}}),PE="",EC={class:"ce-config ce-play-urls ce-custom-urls"},AC=m("div",{class:"ce-tips"},[m("p",null,[le("支持常见的视频、音频和图片格式,也支持目录播放。预置播放菜单使用的链接变量是 "),m("b",null,"{clouddrive_stream_url}"),le(" , 会根据文件或目录自动使用相应的链接。")]),m("p",null,"播放功能依赖CloudDrive,请先在「CloudDrive」设置面板中进行配置。")],-1),SC={class:"ce-menu-urls-builtin"},OC={class:"pure-form pure-form-aligned"},PC=["for"],IC=["id","onUpdate:modelValue"],TC={class:"text-info"},MC=["onClick"],BC=["innerHTML"],LC={class:"ce-custom-urls-list"},NC=m("div",{class:"ce-tips"}," 编辑后,请记得点击「保存自定义播放菜单」。 ",-1),DC={class:"ce-custom-urls-actions"},RC=["disabled"],FC=Ue({__name:"PlayUrls",async setup(e){let t,n;const o=_e(([t,n]=Dn(()=>Ia()),t=await t,n(),t)),i=_e(([t,n]=Dn(()=>ei($n.play)),t=await t,n(),t));Xt(async()=>{}),kt(o,Vn(async d=>{const h=[];d.forEach(b=>{b.enabled&&h.push(b.key)}),await Qb(h),me({icon:"success",title:"预置搜索菜单设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"})},500),{deep:!0});async function s(){const d=[];for(const h of i.value){if(!await r(h,d.length))return;if(d.includes(h.key)){me({icon:"error",title:`第 ${d.length+1} 个记录的「唯一标识: ${h.key}」重复!`});return}d.push(h.key)}await pc($n.play,i.value),me({icon:"success",title:"保存成功!"})}async function r(d,h){const b=/^\w+$/;return d.key=d.key.trim(),b.test(d.key)?(d.label=d.label.trim(),d.label===""?(me({icon:"error",title:`第 ${h+1} 个记录的「显示名称」不能为空!`}),!1):(d.url=d.url.trim(),d.url===""?(me({icon:"error",title:`第 ${h+1} 个记录的「链接」不能为空!`}),!1):(d.icon=d.icon.trim(),d.memo=d.memo.trim(),!0))):(me({icon:"error",title:`第 ${h+1} 个记录的「唯一标识」错误!只能包含字母、数字、下划线。`}),!1)}async function c(){i.value.push(ct())}async function u(d,h){const{isConfirmed:b}=await we.fire({icon:"warning",html:`确定要删除第 ${h+1} 个记录「${d.label}」吗?`});!b||(i.value.splice(h,1),await s(),me({icon:"success",title:`「${d.label}」已删除!`}))}async function f(d){const h=JSON.stringify(d,null,2),{isConfirmed:b}=await we.fire({title:`「${d.label}」的定义`,html:`<h3>${d.memo}</h3>
<pre style="text-align:left;font-size:12px;">${h}</pre>`,confirmButtonText:"复制",showCancelButton:!0,position:"top-left",heightAuto:!0});!b||(navigator.clipboard.writeText(h),me({icon:"success",title:"已复制到剪贴板!"}))}return(d,h)=>(Q(),ne("div",EC,[m("h1",null,[le("预置播放菜单 "),ie(m("small",null,"( "+be(o.value.length)+" )",513),[[fn,o.value.length]])]),AC,m("div",SC,[m("form",OC,[m("fieldset",null,[(Q(!0),ne(ze,null,Et(o.value,(b,k)=>(Q(),ne("div",{key:k,class:"pure-control-group"},[m("label",{for:`builtin_${b.key}`},be(b.label),9,PC),ie(m("input",{id:`builtin_${b.key}`,type:"checkbox","onUpdate:modelValue":A=>b.enabled=A},null,8,IC),[[Me,b.enabled]]),le(" "),m("span",TC,be(b.memo),1),le(" "),m("button",{type:"button",class:"pure-button button-small",onClick:A=>f(b)},"查看定义",8,MC),b.extraMemo?(Q(),ne("span",{key:0,innerHTML:b.extraMemo,class:"extra-memo"},null,8,BC)):Ze("",!0)]))),128))])])]),m("h1",null,[le("自定义播放菜单 "),ie(m("small",null,"( "+be(i.value.length)+" )",513),[[fn,i.value.length]])]),m("div",LC,[(Q(!0),ne(ze,null,Et(i.value,(b,k)=>(Q(),jt(Of,{key:k,item:b,index:k,onDelete:A=>u(b,k)},null,8,["item","index","onDelete"]))),128))]),NC,m("div",DC,[m("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:s,disabled:!i.value.length}," 保存自定义播放菜单 ",8,RC),le(" "),m("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:c}," 添加自定义播放菜单 ")])]))}}),IE="",jC={class:"ce-about"},UC=m("p",null,"115不大助手(以下简称「脚本」),是一个仅用于学习编程的小脚本。",-1),HC=m("br",null,null,-1),zC=m("p",null,"脚本不会收集您的任何个人信息。",-1),qC=m("p",null,"脚本仅借助了官方已有的功能,无任何破解行为。",-1),VC=m("br",null,null,-1),WC=m("br",null,null,-1),KC=m("br",null,null,-1),GC=m("hr",{class:"ce-hr"},null,-1),JC=["href"],YC=Ue({__name:"About",setup(e){const t={name:"115不大助手",version:"0.5.23",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(),ne("div",jC,[UC,HC,zC,qC,VC,WC,KC,GC,m("div",null,[m("a",{href:Te(t).greasyforkUrl,class:"text-bold text-primary",target:"_blank",rel:"noreferrer noopener",title:"到Greasyfork查看"},[le(be(Te(t).name)+" ",1),m("small",null,"v"+be(Te(t).version),1)],8,JC),le(" "),m("small",null,"by "+be(Te(t).author.name),1)])]))}}),XC={class:"ce-config-main"},ZC={class:"ce-config-main-header"},QC=m("h1",null,"设置",-1),e2={class:"ce-intro"},t2=["href"],n2={class:"ce-config-main-body"},o2=Ue({__name:"Config",setup(e){const t={name:"115不大助手",version:"0.5.23",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);Zt(async()=>{window.addEventListener("message",u=>{const{event:f}=u.data;f===Fo.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,f)=>(Q(),jt(hu,null,{default:Ve(()=>[m("div",XC,[xe(Yx,{"is-open":o.value,onClose:s,"max-width":"980px",speed:500},{default:Ve(()=>[m("div",ZC,[QC,m("span",e2,[m("a",{href:Te(t).greasyforkUrl,class:"text-bold text-primary",target:"_blank",rel:"noreferrer noopener",title:"到Greasyfork查看"},[le(be(Te(t).name)+" ",1),m("small",null,"v"+be(Te(t).version),1)],8,t2),le(" "),m("small",null,"by "+be(Te(t).author.name),1)]),m("div",{class:"ce-config-main-close",onClick:s},"关闭")]),m("div",n2,[xe(Te(c1),{options:{useUrlFragment:!1},onClicked:r,onChanged:c},{default:Ve(()=>[xe(Te(bo),{name:"基础设置"},{default:Ve(()=>[xe(M1)]),_:1}),xe(Te(bo),{name:"CloudDrive"},{default:Ve(()=>[xe(Gx)]),_:1}),xe(Te(bo),{name:"菜单设置"},{default:Ve(()=>[xe(Ix)]),_:1}),xe(Te(bo),{name:"搜索菜单"},{default:Ve(()=>[xe(kC)]),_:1}),xe(Te(bo),{name:"播放菜单"},{default:Ve(()=>[xe(FC)]),_:1}),xe(Te(bo),{name:"离线管理"},{default:Ve(()=>[xe(Ed)]),_:1}),xe(Te(bo),{name:"关于"},{default:Ve(()=>[xe(YC)]),_:1})]),_:1})])]),_:1},8,["is-open"])])]),_:1}))}}),TE="";async function i2(){const{host:e}=location;!e.includes("115.com")||window.top===window.self&&(console.log("[Cloud115 Enhancer - main] running..."),s2(),r2())}async function s2(){console.log("[Cloud115 Enhancer - main] injectUI");const e="cloud115ConfigMain",t=document.createElement("div");t.id=e,document.body.appendChild(t),Lo(o2).mount(`#${e}`),pl("设置",async()=>{window.postMessage({event:Fo.openConfig})})}async function r2(){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",a2),n.title="打开「115不大助手」设置",n.innerHTML='<i class="isn-setting"></i><span>115不大助手</span>',t.appendChild(n),e.insertBefore(t,e.firstChild)}async function a2(){window.postMessage({event:Fo.openConfig})}location.host==="115.com"&&(window.COMMONHEADERUSERINFO=window.COMMONHEADERUSERINFO||{}),(async()=>(console.log("Cloud115 Enhancer launched!"),_y(),A_(),n1(),s1(),i2()))()})();