// ==UserScript==
// @name 115不大助手 (full)
// @namespace com.cloud115.enhancer
// @version 0.5.33
// @author 生瓜太保
// @description Make 115 taerg again!
// @license MIT
// @homepage http://greasyfork.icu/zh-CN/scripts/474231-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}.ce-menu-divider{height:1px!important;display:block!important;background-color:#edeeef!important}.ce-menu-divider:after{display:none!important}.list-item-hover-menu .ce-menu-divider{height:6px!important;background-color:transparent!important}div#js_operate_box.only-icon li[menu] span{display:none}.list-contents{padding-bottom:300px}.header-size a.ce-size-sort{cursor:pointer;background:#f2f4f8;border-radius:4px;padding:0 6px;color:#8c97a0;margin-left:10px}.header-size a.ce-size-sort i{display:none}.header-size a.ce-size-sort.by-desc{background-color:#fdc94a;color:#1a2734}.header-size a.ce-size-sort.by-desc i.icon-sort-desc{display:inline-block}.header-size a.ce-size-sort.by-asc{background-color:#fdc94a;color:#1a2734}.header-size a.ce-size-sort.by-asc i.icon-sort-asc{display:inline-block}.header-size a.ce-size-sort.ce-size-sort-ing{cursor:no-drop}.ce-offline-config .ce-tips{margin-top:20px;margin-left:56px}.ce-offline-config .pure-form-message{margin-left:56px}.ce-offline-exporter{position:absolute;left:140px;top:62px;background:#f4f2ff;padding:6px 10px;border-radius:4px}.ce-offline-exporter button{margin-right:6px}.offline-exporter-config-form{width:550px;padding:10px}.swal2-input#swalDeleteFile{width:20px;padding:0;height:20px;margin:0;vertical-align:sub;cursor:pointer}body.ce-list-s #js-main{padding-top:40px}body.ce-list-s .ce-offline-exporter{top:92px}.ce-offline-searcher{position:absolute;left:140px;top:58px;background:#f4f2ff;padding:4px 10px;border-radius:4px}.ce-offline-searcher fieldset{padding:0}.ce-offline-searcher .clearable-wrap{position:relative;width:320px}.ce-offline-searcher .clearable-wrap.is-empty .btn-clear{display:none}.ce-offline-searcher .clearable-wrap input{width:300px;padding-right:35px!important}.ce-offline-searcher .clearable-wrap .btn-clear{position:absolute;right:30px;top:4px;display:block}.ce-offline-searcher .form-item{display:inline-block;margin-right:10px;vertical-align:middle}.ce-offline-searcher .form-item input{padding:.3em}.ce-offline-searcher .form-item select{height:2em;padding:.1em .3em}.ce-offline-searcher .form-item label{margin-right:5px}.ce-offline-searcher .help-trigger{font-size:12px}.ce-offline-searcher .list{display:none}.ce-offline-searcher .stop-on-found{width:16px;height:16px;vertical-align:middle;cursor:pointer}.cloud115-page-offline.ce-list-m .list-contents .file-name-wrap .desc-tips{left:75px}.cloud115-page-offline.ce-list-m li.ce-task-trouble .info-hash{left:210px!important}.cloud115-page-offline li .ce-buttons{float:left;margin-right:6px}.cloud115-page-offline .ce-checkbox{width:30px}.cloud115-page-offline .ce-checkbox input{display:block!important;width:20px;height:20px;cursor:pointer}.cloud115-page-offline #js-warp .info-hash{position:absolute;left:47px;top:25px;color:#ababab;cursor:pointer}.cloud115-page-offline #js-warp .info-hash.hover{color:#6ab2ff}.cloud115-page-offline #js-warp li.ce-selected:before{background:#ffe296!important}.cloud115-page-offline #js-warp li.ce-show-checkbox .info-hash{left:60px}.cloud115-page-offline #js-warp li.ce-show-checkbox .file-name{margin-left:15px}.cloud115-page-offline #js-warp li.ce-show-checkbox .file-type{left:25px!important}.cloud115-page-offline #js-warp li .ce-checkbox{width:30px;position:absolute;left:0}.cloud115-page-offline #js-warp li .ce-checkbox input{display:block!important;width:20px;height:20px;cursor:pointer}.cloud115-page-offline #js-warp li .desc-tips{position:absolute;left:60px;top:25px}.cloud115-eh-cleaner-trigger .btn-open{padding:0 6px;vertical-align:text-top;line-height:30px;border-radius:4px;background:#4faa4f}.v-popper.v-popper--theme-dropdown{display:inline-block}.group-manager{width:750px}.group-manager a{font-size:12px;padding:0 4px;margin-right:8px}.group-manager .group-label{color:#fff;font-size:12px;margin-right:10px;border-radius:4px;padding:2px 8px;background:#66acf9}.group-manager .label-readonly{background:#c93c3c;color:#fff;padding:0 4px;border-radius:4px;vertical-align:middle;margin-right:6px}.append-form{background:#fff;width:350px;padding:10px;border-radius:4px}.append-form input,.append-form textarea{width:100%}.group-form{background:#fff;width:540px;padding:10px;border-radius:4px}.group-form input,.group-form textarea{width:100%}.group-form .filter-label{cursor:pointer;padding:0 4px;text-decoration:underline}.group-form input#groupLabel{display:inline-block}.groups-list{background:#fff;width:565px;padding:10px;border-radius:4px;box-shadow:0 0 4px #d8d8d8}.groups-list table th,.groups-list table td{padding:4px 6px}.groups-list ul li{border-bottom:1px solid #eee;padding:4px}.groups-list ul li:nth-last-child(1){border-bottom:none}.groups-list span{display:inline-block}.groups-list .p-index{width:30px}.groups-list .p-label{width:120px}.groups-list .p-actions button{margin-right:8px}.group-confirm-delete{padding:20px}#cloud115Cleaner{margin-left:10px}.v-popper__arrow-container{display:none}.cloud115-eh-cleaner .btn-open{padding:0 6px;vertical-align:text-top;line-height:30px;border-radius:4px;background:#4faa4f;display:none}.cloud115-eh-cleaner .actions-bar{padding-bottom:10px}.cloud115-eh-cleaner .actions-bar .title{font-size:18px;font-weight:700;color:#15110c}.cloud115-eh-cleaner .actions-bar .close{margin-left:20px;margin-right:10px;color:#f40}.cloud115-eh-cleaner .actions-bar i.tp-folder{width:18px;height:18px;vertical-align:sub}.cloud115-eh-cleaner-help{position:fixed;top:60px;right:0;bottom:0;width:470px;z-index:1051;padding:10px 10px 150px 8px;background:#fdffdf;overflow-y:auto}.cloud115-eh-cleaner-help ul{list-style:decimal}.cloud115-eh-cleaner-drawer{position:fixed;top:60px;right:0;bottom:0;left:260px;background:#fff;z-index:1050;padding:10px 20px 200px;overflow-y:auto;box-shadow:-2px 2px 6px #bbb}.cloud115-eh-cleaner-drawer.loading{cursor:wait}.cloud115-eh-cleaner-drawer.loading button,.cloud115-eh-cleaner-drawer.loading input{cursor:no-drop;pointer-events:none}.cloud115-eh-cleaner-drawer .config-toggle{display:inline-block;background:#eee;border-radius:4px;opacity:.2;padding:2px 4px;cursor:pointer}.cloud115-eh-cleaner-drawer .config-toggle.hover{opacity:.7}.cloud115-eh-cleaner-drawer .by-box .by-header{padding-bottom:10px}.cloud115-eh-cleaner-drawer .by-box .by-header .title{font-size:16px;margin-right:8px;color:#0078e6;font-weight:400}.cloud115-eh-cleaner-drawer .by-box .by-header .filter-size{width:100px;font-size:14px;font-weight:700;color:#0078e6;text-indent:6px}.cloud115-eh-cleaner-drawer .by-box .pure-button-group{display:inline-block}.cloud115-eh-cleaner-drawer .by-box .pure-button-group .pure-button{vertical-align:inherit}.cloud115-eh-cleaner-drawer .by-box .pattern-groups{width:750px;text-align:right}.cloud115-eh-cleaner-drawer .by-box .pattern-groups a{font-size:12px;padding:0 4px;margin-right:8px}.cloud115-eh-cleaner-drawer .by-box table tr.active{background:#f7ffc3}.cloud115-eh-cleaner-drawer .by-box table tr.is-dir .pattern{color:#f40}.cloud115-eh-cleaner-drawer .by-box table tr th,.cloud115-eh-cleaner-drawer .by-box table tr td{padding:.5em;font-size:12px}.cloud115-eh-cleaner-drawer .by-box table td a{color:#2877f8}.cloud115-eh-cleaner-drawer .by-box table td .tp-folder{width:16px;height:16px;vertical-align:sub}.button-xsmall,.button-mini{font-size:12px;padding:.2em .5em}.button-small{font-size:85%}.button-large{font-size:110%}.button-xlarge{font-size:125%}.button-success,.button-error,.button-warning,.button-secondary{color:#fff;border-radius:4px;text-shadow:0 1px 1px rgba(0,0,0,.2)}.button-success{background:rgb(28,184,65)}.button-error{background:rgb(202,60,60)}.button-warning{background:rgb(223,117,20)}.button-secondary{background:rgb(66,184,221)}.ce-basic-config .pure-form-message{margin-left:82px}.ce-basic-config .avatar-preview{display:inline-block;vertical-align:middle;margin-left:10px}.ce-clouddrive-config-item{margin-bottom:20px;border:1px solid #cbcbcb;border-radius:0;padding:4px}.ce-clouddrive-config-item.active{background:#fefcea}.ce-clouddrive-config-item input:not([type]){font-size:12px}.ce-clouddrive-config-item .button-error{float:right}.ce-clouddrive-config .cd-tips a{text-decoration:underline}.ce-clouddrive-config .cd-code{font-size:110%;cursor:pointer;user-select:none}.ce-list-config .pure-control-group label{width:15em}.ce-list-config .pure-form-message{margin-left:3em}.ce-menu-config .menu-config-block{display:inline-block;border-radius:6px;margin:4px;vertical-align:top;padding:0 6px;background:#f9f9f9}.ce-menu-config .menu-config-block>form>legend{border:none;text-align:center;font-size:14px;color:#5092ff;padding:4px;margin-bottom:0}.ce-menu-config .menu-config-block>form>fieldset>div{background:#fff;margin-bottom:1px;padding:4px}.ce-menu-config .menu-config-block>form>fieldset>div:hover{background:#fefcea}.ce-menu-config .menu-config-block label{display:inline-block;width:120px;font-size:12px;line-height:20px;vertical-align:middle;cursor:pointer}.ce-menu-config input[type=checkbox]{margin-right:10px;width:18px;height:18px;cursor:pointer;vertical-align:middle}.ce-menu-config .btn-view-info{display:inline-block;margin-right:6px;vertical-align:middle;cursor:help}.ce-custom-url{border-radius:4px;box-shadow:0 0 5px #eee;border:1px solid #eee;margin-bottom:20px;padding:0 10px;background:#fff}.ce-custom-url label{cursor:pointer}.ce-custom-url input:not([type]){font-size:12px}.ce-custom-url textarea{font-size:12px;resize:vertical}.ce-custom-url input[type=checkbox]{width:18px;height:18px;cursor:pointer}.ce-custom-url .ce-custom-url-index{font-size:14px;font-weight:700;margin-right:20px}.ce-custom-url legend .button-error{float:right}.ce-custom-url fieldset>div{margin-bottom:1px;padding:4px}.ce-custom-url fieldset>div:hover{background:#fefcea}.ce-custom-urls,.ce-play-urls{padding-bottom:100px}.ce-play-urls .extra-memo{font-size:12px;margin-left:10px}.ce-play-urls .extra-memo a{text-decoration:underline;color:#337ab7}.ce-drawer{visibility:hidden}.ce-drawer.is-visible{visibility:visible}.ce-drawer.is-open .ce-drawer__overlay{opacity:.5}.ce-drawer.is-open .ce-drawer__content{transform:translate(0)}.ce-drawer__overlay{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;z-index:200;opacity:0;transition-property:opacity;background-color:#000;user-select:none}.ce-drawer__content{position:fixed;top:0;right:0;bottom:0;height:100%;width:100%;z-index:9999;overflow:auto;transition-property:transform;display:flex;flex-direction:column;transform:translate(100%);box-shadow:0 2px 6px #777}.ce-config-main .ce-intro{margin-left:35%;color:#7676ff}.ce-config-main .ce-intro small{color:#999}.ce-config-main .ce-config-main-body{padding:10px}.ce-config-main .ce-config-main-header{padding:10px;position:sticky;top:0;background:#fff;z-index:100000;box-shadow:0 1px 2px #e9e9e9}.ce-config-main .ce-config-main-header h1{display:inline;font-size:18px}.ce-config-main .ce-config-main-header .ce-config-main-close{float:right;vertical-align:top;color:#89929b;cursor:pointer;padding:2px 20px;border-radius:6px}.ce-config-main .ce-config-main-header .ce-config-main-close:hover{background:#fefcea;color:#0275ff}.list-contents ul li .ce-btn-folder-size{background:#f2f4f8;border-radius:6px;padding:4px;cursor:pointer}.list-contents ul li .ce-file-sha1{position:absolute;top:20px;color:#999;cursor:pointer;font-size:90%}.list-contents ul li.ce-show-sha1 .file-name{height:40px}.list-contents ul li.ce-size-got .ce-btn-folder-size{opacity:.6;margin-left:6px}.list-contents ul li.ce-size-got .ce-btn-folder-size:hover{opacity:1}
`);
var $E=Object.defineProperty;var kE=(ko,Cn,So)=>Cn in ko?$E(ko,Cn,{enumerable:!0,configurable:!0,writable:!0,value:So}):ko[Cn]=So;var $e=(ko,Cn,So)=>(kE(ko,typeof Cn!="symbol"?Cn+"":Cn,So),So);(function(){"use strict";const ko="",Cn="",So="",SE="",EE="",AE="",PE="",Dp=typeof btoa=="function",Ar=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const Il=typeof TextEncoder=="function"?new TextEncoder:void 0,Np="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Zo=Array.prototype.slice.call(Np);(e=>{let t={};return e.forEach((n,o)=>t[n]=o),t})(Zo);const Gt=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const Rp=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),Tl=Dp?e=>btoa(e):Ar?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,o,s,i="";const r=e.length%3;for(let l=0;l<e.length;){if((n=e.charCodeAt(l++))>255||(o=e.charCodeAt(l++))>255||(s=e.charCodeAt(l++))>255)throw new TypeError("invalid character found");t=n<<16|o<<8|s,i+=Zo[t>>18&63]+Zo[t>>12&63]+Zo[t>>6&63]+Zo[t&63]}return r?i.slice(0,r-3)+"===".substring(r):i},jp=Ar?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let o=0,s=e.length;o<s;o+=4096)n.push(Gt.apply(null,e.subarray(o,o+4096)));return Tl(n.join(""))},Fp=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Gt(192|t>>>6)+Gt(128|t&63):Gt(224|t>>>12&15)+Gt(128|t>>>6&63)+Gt(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Gt(240|t>>>18&7)+Gt(128|t>>>12&63)+Gt(128|t>>>6&63)+Gt(128|t&63)}},Hp=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Up=e=>e.replace(Hp,Fp),Ll=Ar?e=>Buffer.from(e,"utf8").toString("base64"):Il?e=>jp(Il.encode(e)):e=>Tl(Up(e)),Ml=(e,t=!1)=>t?Rp(Ll(e)):Ll(e);var Eo=window,Pr=(()=>Eo.GM_setValue)(),zp=(()=>Eo.GM_deleteValue)(),qp=(()=>Eo.GM_openInTab)(),Bl=(()=>Eo.GM_registerMenuCommand)(),Qo=(()=>Eo.GM_setClipboard)(),Ys=(()=>Eo.GM_getValue)(),$n=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Dl={exports:{}};/*!
* sweetalert2 v11.7.2
* Released under the MIT License.
*/(function(e,t){(function(n,o){e.exports=o()})($n,function(){var n={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const o="swal2-",s=a=>{const c={};for(const g in a)c[a[g]]=o+a[g];return c},i=s(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),r=s(["success","warning","info","question","error"]),l="SweetAlert2:",d=a=>{const c=[];for(let g=0;g<a.length;g++)c.indexOf(a[g])===-1&&c.push(a[g]);return c},f=a=>a.charAt(0).toUpperCase()+a.slice(1),p=a=>{console.warn(`${l} ${typeof a=="object"?a.join(" "):a}`)},m=a=>{console.error(`${l} ${a}`)},y=[],C=a=>{y.includes(a)||(y.push(a),p(a))},E=(a,c)=>{C(`"${a}" is deprecated and will be removed in the next major release. Please use "${c}" instead.`)},A=a=>typeof a=="function"?a():a,N=a=>a&&typeof a.toPromise=="function",V=a=>N(a)?a.toPromise():Promise.resolve(a),O=a=>a&&Promise.resolve(a)===a,P=()=>document.body.querySelector(`.${i.container}`),D=a=>{const c=P();return c?c.querySelector(a):null},G=a=>D(`.${a}`),ee=()=>G(i.popup),Oe=()=>G(i.icon),ke=()=>G(i["icon-content"]),Se=()=>G(i.title),Te=()=>G(i["html-container"]),he=()=>G(i.image),se=()=>G(i["progress-steps"]),Ee=()=>G(i["validation-message"]),ie=()=>D(`.${i.actions} .${i.confirm}`),He=()=>D(`.${i.actions} .${i.cancel}`),B=()=>D(`.${i.actions} .${i.deny}`),J=()=>G(i["input-label"]),R=()=>D(`.${i.loader}`),de=()=>G(i.actions),Ce=()=>G(i.footer),Ie=()=>G(i["timer-progress-bar"]),Xe=()=>G(i.close),Ze=`
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
`,It=()=>{const a=Array.from(ee().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((g,v)=>{const M=parseInt(g.getAttribute("tabindex")),we=parseInt(v.getAttribute("tabindex"));return M>we?1:M<we?-1:0}),c=Array.from(ee().querySelectorAll(Ze)).filter(g=>g.getAttribute("tabindex")!=="-1");return d(a.concat(c)).filter(g=>j(g))},Tt=()=>et(document.body,i.shown)&&!et(document.body,i["toast-shown"])&&!et(document.body,i["no-backdrop"]),xn=()=>ee()&&et(ee(),i.toast),vt=()=>ee().hasAttribute("data-loading"),_t={previousBodyPadding:null},ct=(a,c)=>{if(a.textContent="",c){const v=new DOMParser().parseFromString(c,"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)})}},et=(a,c)=>{if(!c)return!1;const g=c.split(/\s+/);for(let v=0;v<g.length;v++)if(!a.classList.contains(g[v]))return!1;return!0},Jn=(a,c)=>{Array.from(a.classList).forEach(g=>{!Object.values(i).includes(g)&&!Object.values(r).includes(g)&&!Object.values(c.showClass).includes(g)&&a.classList.remove(g)})},at=(a,c,g)=>{if(Jn(a,c),c.customClass&&c.customClass[g]){if(typeof c.customClass[g]!="string"&&!c.customClass[g].forEach){p(`Invalid type of customClass.${g}! Expected string or iterable object, got "${typeof c.customClass[g]}"`);return}T(a,c.customClass[g])}},b=(a,c)=>{if(!c)return null;switch(c){case"select":case"textarea":case"file":return a.querySelector(`.${i.popup} > .${i[c]}`);case"checkbox":return a.querySelector(`.${i.popup} > .${i.checkbox} input`);case"radio":return a.querySelector(`.${i.popup} > .${i.radio} input:checked`)||a.querySelector(`.${i.popup} > .${i.radio} input:first-child`);case"range":return a.querySelector(`.${i.popup} > .${i.range} input`);default:return a.querySelector(`.${i.popup} > .${i.input}`)}},S=a=>{if(a.focus(),a.type!=="file"){const c=a.value;a.value="",a.value=c}},L=(a,c,g)=>{!a||!c||(typeof c=="string"&&(c=c.split(/\s+/).filter(Boolean)),c.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)}))},T=(a,c)=>{L(a,c,!0)},H=(a,c)=>{L(a,c,!1)},X=(a,c)=>{const g=Array.from(a.children);for(let v=0;v<g.length;v++){const M=g[v];if(M instanceof HTMLElement&&et(M,c))return M}},ne=(a,c,g)=>{g===`${parseInt(g)}`&&(g=parseInt(g)),g||parseInt(g)===0?a.style[c]=typeof g=="number"?`${g}px`:g:a.style.removeProperty(c)},q=function(a){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";a.style.display=c},K=a=>{a.style.display="none"},W=(a,c,g,v)=>{const M=a.querySelector(c);M&&(M.style[g]=v)},ae=function(a,c){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";c?q(a,g):K(a)},j=a=>!!(a&&(a.offsetWidth||a.offsetHeight||a.getClientRects().length)),le=()=>!j(ie())&&!j(B())&&!j(He()),h=a=>a.scrollHeight>a.clientHeight,w=a=>{const c=window.getComputedStyle(a),g=parseFloat(c.getPropertyValue("animation-duration")||"0"),v=parseFloat(c.getPropertyValue("transition-duration")||"0");return g>0||v>0},_=function(a){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const g=Ie();j(g)&&(c&&(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=Ie(),c=parseInt(window.getComputedStyle(a).width);a.style.removeProperty("transition"),a.style.width="100%";const g=parseInt(window.getComputedStyle(a).width),v=c/g*100;a.style.width=`${v}%`},I=100,k={},F=()=>{k.previousActiveElement instanceof HTMLElement?(k.previousActiveElement.focus(),k.previousActiveElement=null):document.body&&document.body.focus()},U=a=>new Promise(c=>{if(!a)return c();const g=window.scrollX,v=window.scrollY;k.restoreFocusTimeout=setTimeout(()=>{F(),c()},I),window.scrollTo(g,v)}),Y=()=>typeof window>"u"||typeof document>"u",_e=`
<div aria-labelledby="${i.title}" aria-describedby="${i["html-container"]}" class="${i.popup}" tabindex="-1">
<button type="button" class="${i.close}"></button>
<ul class="${i["progress-steps"]}"></ul>
<div class="${i.icon}"></div>
<img class="${i.image}" />
<h2 class="${i.title}" id="${i.title}"></h2>
<div class="${i["html-container"]}" id="${i["html-container"]}"></div>
<input class="${i.input}" />
<input type="file" class="${i.file}" />
<div class="${i.range}">
<input type="range" />
<output></output>
</div>
<select class="${i.select}"></select>
<div class="${i.radio}"></div>
<label for="${i.checkbox}" class="${i.checkbox}">
<input type="checkbox" />
<span class="${i.label}"></span>
</label>
<textarea class="${i.textarea}"></textarea>
<div class="${i["validation-message"]}" id="${i["validation-message"]}"></div>
<div class="${i.actions}">
<div class="${i.loader}"></div>
<button type="button" class="${i.confirm}"></button>
<button type="button" class="${i.deny}"></button>
<button type="button" class="${i.cancel}"></button>
</div>
<div class="${i.footer}"></div>
<div class="${i["timer-progress-bar-container"]}">
<div class="${i["timer-progress-bar"]}"></div>
</div>
</div>
`.replace(/(^|\n)\s*/g,""),ye=()=>{const a=P();return a?(a.remove(),H([document.documentElement,document.body],[i["no-backdrop"],i["toast-shown"],i["has-column"]]),!0):!1},ue=()=>{k.currentInstance.resetValidationMessage()},Ne=()=>{const a=ee(),c=X(a,i.input),g=X(a,i.file),v=a.querySelector(`.${i.range} input`),M=a.querySelector(`.${i.range} output`),we=X(a,i.select),We=a.querySelector(`.${i.checkbox} input`),Lt=X(a,i.textarea);c.oninput=ue,g.onchange=ue,we.onchange=ue,We.onchange=ue,Lt.oninput=ue,v.oninput=()=>{ue(),M.value=v.value},v.onchange=()=>{ue(),M.value=v.value}},xt=a=>typeof a=="string"?document.querySelector(a):a,ht=a=>{const c=ee();c.setAttribute("role",a.toast?"alert":"dialog"),c.setAttribute("aria-live",a.toast?"polite":"assertive"),a.toast||c.setAttribute("aria-modal","true")},qs=a=>{window.getComputedStyle(a).direction==="rtl"&&T(P(),i.rtl)},Vs=a=>{const c=ye();if(Y()){m("SweetAlert2 requires document to initialize");return}const g=document.createElement("div");g.className=i.container,c&&T(g,i["no-transition"]),ct(g,_e);const v=xt(a.target);v.appendChild(g),ht(a),qs(v),Ne()},vl=(a,c)=>{a instanceof HTMLElement?c.appendChild(a):typeof a=="object"?tk(a,c):a&&ct(c,a)},tk=(a,c)=>{a.jquery?nk(c,a):ct(c,a.toString())},nk=(a,c)=>{if(a.textContent="",0 in c)for(let g=0;g in c;g++)a.appendChild(c[g].cloneNode(!0));else a.appendChild(c.cloneNode(!0))},Ws=(()=>{if(Y())return!1;const a=document.createElement("div"),c={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const g in c)if(Object.prototype.hasOwnProperty.call(c,g)&&typeof a.style[g]<"u")return c[g];return!1})(),ok=()=>{const a=document.createElement("div");a.className=i["scrollbar-measure"],document.body.appendChild(a);const c=a.getBoundingClientRect().width-a.clientWidth;return document.body.removeChild(a),c},sk=(a,c)=>{const g=de(),v=R();!c.showConfirmButton&&!c.showDenyButton&&!c.showCancelButton?K(g):q(g),at(g,c,"actions"),ik(g,v,c),ct(v,c.loaderHtml),at(v,c,"loader")};function ik(a,c,g){const v=ie(),M=B(),we=He();_l(v,"confirm",g),_l(M,"deny",g),_l(we,"cancel",g),rk(v,M,we,g),g.reverseButtons&&(g.toast?(a.insertBefore(we,v),a.insertBefore(M,v)):(a.insertBefore(we,c),a.insertBefore(M,c),a.insertBefore(v,c)))}function rk(a,c,g,v){if(!v.buttonsStyling){H([a,c,g],i.styled);return}T([a,c,g],i.styled),v.confirmButtonColor&&(a.style.backgroundColor=v.confirmButtonColor,T(a,i["default-outline"])),v.denyButtonColor&&(c.style.backgroundColor=v.denyButtonColor,T(c,i["default-outline"])),v.cancelButtonColor&&(g.style.backgroundColor=v.cancelButtonColor,T(g,i["default-outline"]))}function _l(a,c,g){ae(a,g[`show${f(c)}Button`],"inline-block"),ct(a,g[`${c}ButtonText`]),a.setAttribute("aria-label",g[`${c}ButtonAriaLabel`]),a.className=i[c],at(a,g,`${c}Button`),T(a,g[`${c}ButtonClass`])}const ak=(a,c)=>{const g=Xe();ct(g,c.closeButtonHtml),at(g,c,"closeButton"),ae(g,c.showCloseButton),g.setAttribute("aria-label",c.closeButtonAriaLabel)},lk=(a,c)=>{const g=P();!g||(ck(g,c.backdrop),uk(g,c.position),dk(g,c.grow),at(g,c,"container"))};function ck(a,c){typeof c=="string"?a.style.background=c:c||T([document.documentElement,document.body],i["no-backdrop"])}function uk(a,c){c in i?T(a,i[c]):(p('The "position" parameter is not valid, defaulting to "center"'),T(a,i.center))}function dk(a,c){if(c&&typeof c=="string"){const g=`grow-${c}`;g in i&&T(a,i[g])}}const fk=["input","file","range","select","radio","checkbox","textarea"],pk=(a,c)=>{const g=ee(),v=n.innerParams.get(a),M=!v||c.input!==v.input;fk.forEach(we=>{const We=X(g,i[we]);gk(we,c.inputAttributes),We.className=i[we],M&&K(We)}),c.input&&(M&&hk(c),wk(c))},hk=a=>{if(!Pt[a.input]){m(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${a.input}"`);return}const c=rp(a.input),g=Pt[a.input](c,a);q(c),a.inputAutoFocus&&setTimeout(()=>{S(g)})},mk=a=>{for(let c=0;c<a.attributes.length;c++){const g=a.attributes[c].name;["type","value","style"].includes(g)||a.removeAttribute(g)}},gk=(a,c)=>{const g=b(ee(),a);if(!!g){mk(g);for(const v in c)g.setAttribute(v,c[v])}},wk=a=>{const c=rp(a.input);typeof a.customClass=="object"&&T(c,a.customClass.input)},xl=(a,c)=>{(!a.placeholder||c.inputPlaceholder)&&(a.placeholder=c.inputPlaceholder)},Ks=(a,c,g)=>{if(g.inputLabel){a.id=i.input;const v=document.createElement("label"),M=i["input-label"];v.setAttribute("for",a.id),v.className=M,typeof g.customClass=="object"&&T(v,g.customClass.inputLabel),v.innerText=g.inputLabel,c.insertAdjacentElement("beforebegin",v)}},rp=a=>X(ee(),i[a]||i.input),$r=(a,c)=>{["string","number"].includes(typeof c)?a.value=`${c}`:O(c)||p(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof c}"`)},Pt={};Pt.text=Pt.email=Pt.password=Pt.number=Pt.tel=Pt.url=(a,c)=>($r(a,c.inputValue),Ks(a,a,c),xl(a,c),a.type=c.input,a),Pt.file=(a,c)=>(Ks(a,a,c),xl(a,c),a),Pt.range=(a,c)=>{const g=a.querySelector("input"),v=a.querySelector("output");return $r(g,c.inputValue),g.type=c.input,$r(v,c.inputValue),Ks(g,a,c),a},Pt.select=(a,c)=>{if(a.textContent="",c.inputPlaceholder){const g=document.createElement("option");ct(g,c.inputPlaceholder),g.value="",g.disabled=!0,g.selected=!0,a.appendChild(g)}return Ks(a,a,c),a},Pt.radio=a=>(a.textContent="",a),Pt.checkbox=(a,c)=>{const g=b(ee(),"checkbox");g.value="1",g.id=i.checkbox,g.checked=Boolean(c.inputValue);const v=a.querySelector("span");return ct(v,c.inputPlaceholder),g},Pt.textarea=(a,c)=>{$r(a,c.inputValue),xl(a,c),Ks(a,a,c);const g=v=>parseInt(window.getComputedStyle(v).marginLeft)+parseInt(window.getComputedStyle(v).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const v=parseInt(window.getComputedStyle(ee()).width),M=()=>{const we=a.offsetWidth+g(a);we>v?ee().style.width=`${we}px`:ee().style.width=null};new MutationObserver(M).observe(a,{attributes:!0,attributeFilter:["style"]})}}),a};const yk=(a,c)=>{const g=Te();at(g,c,"htmlContainer"),c.html?(vl(c.html,g),q(g,"block")):c.text?(g.textContent=c.text,q(g,"block")):K(g),pk(a,c)},bk=(a,c)=>{const g=Ce();ae(g,c.footer),c.footer&&vl(c.footer,g),at(g,c,"footer")},vk=(a,c)=>{const g=n.innerParams.get(a),v=Oe();if(g&&c.icon===g.icon){lp(v,c),ap(v,c);return}if(!c.icon&&!c.iconHtml){K(v);return}if(c.icon&&Object.keys(r).indexOf(c.icon)===-1){m(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${c.icon}"`),K(v);return}q(v),lp(v,c),ap(v,c),T(v,c.showClass.icon)},ap=(a,c)=>{for(const g in r)c.icon!==g&&H(a,r[g]);T(a,r[c.icon]),$k(a,c),_k(),at(a,c,"icon")},_k=()=>{const a=ee(),c=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=c},xk=`
<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>
`,Ck=`
<span class="swal2-x-mark">
<span class="swal2-x-mark-line-left"></span>
<span class="swal2-x-mark-line-right"></span>
</span>
`,lp=(a,c)=>{let g=a.innerHTML,v;c.iconHtml?v=cp(c.iconHtml):c.icon==="success"?(v=xk,g=g.replace(/ style=".*?"/g,"")):c.icon==="error"?v=Ck:v=cp({question:"?",warning:"!",info:"i"}[c.icon]),g.trim()!==v.trim()&&ct(a,v)},$k=(a,c)=>{if(!!c.iconColor){a.style.color=c.iconColor,a.style.borderColor=c.iconColor;for(const g of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])W(a,g,"backgroundColor",c.iconColor);W(a,".swal2-success-ring","borderColor",c.iconColor)}},cp=a=>`<div class="${i["icon-content"]}">${a}</div>`,kk=(a,c)=>{const g=he();if(!c.imageUrl){K(g);return}q(g,""),g.setAttribute("src",c.imageUrl),g.setAttribute("alt",c.imageAlt),ne(g,"width",c.imageWidth),ne(g,"height",c.imageHeight),g.className=i.image,at(g,c,"image")},Sk=(a,c)=>{const g=P(),v=ee();c.toast?(ne(g,"width",c.width),v.style.width="100%",v.insertBefore(R(),Oe())):ne(v,"width",c.width),ne(v,"padding",c.padding),c.color&&(v.style.color=c.color),c.background&&(v.style.background=c.background),K(Ee()),Ek(v,c)},Ek=(a,c)=>{a.className=`${i.popup} ${j(a)?c.showClass.popup:""}`,c.toast?(T([document.documentElement,document.body],i["toast-shown"]),T(a,i.toast)):T(a,i.modal),at(a,c,"popup"),typeof c.customClass=="string"&&T(a,c.customClass),c.icon&&T(a,i[`icon-${c.icon}`])},Ak=(a,c)=>{const g=se();if(!c.progressSteps||c.progressSteps.length===0){K(g);return}q(g),g.textContent="",c.currentProgressStep>=c.progressSteps.length&&p("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),c.progressSteps.forEach((v,M)=>{const we=Pk(v);if(g.appendChild(we),M===c.currentProgressStep&&T(we,i["active-progress-step"]),M!==c.progressSteps.length-1){const We=Ok(c);g.appendChild(We)}})},Pk=a=>{const c=document.createElement("li");return T(c,i["progress-step"]),ct(c,a),c},Ok=a=>{const c=document.createElement("li");return T(c,i["progress-step-line"]),a.progressStepsDistance&&ne(c,"width",a.progressStepsDistance),c},Ik=(a,c)=>{const g=Se();ae(g,c.title||c.titleText,"block"),c.title&&vl(c.title,g),c.titleText&&(g.innerText=c.titleText),at(g,c,"title")},up=(a,c)=>{Sk(a,c),lk(a,c),Ak(a,c),vk(a,c),kk(a,c),Ik(a,c),ak(a,c),yk(a,c),sk(a,c),bk(a,c),typeof c.didRender=="function"&&c.didRender(ee())};function dp(){const a=n.innerParams.get(this);if(!a)return;const c=n.domCache.get(this);K(c.loader),xn()?a.icon&&q(Oe()):Tk(c),H([c.popup,c.actions],i.loading),c.popup.removeAttribute("aria-busy"),c.popup.removeAttribute("data-loading"),c.confirmButton.disabled=!1,c.denyButton.disabled=!1,c.cancelButton.disabled=!1}const Tk=a=>{const c=a.popup.getElementsByClassName(a.loader.getAttribute("data-button-to-replace"));c.length?q(c[0],"inline-block"):le()&&K(a.actions)};function Lk(a){const c=n.innerParams.get(a||this),g=n.domCache.get(a||this);return g?b(g.popup,c.input):null}const Mk=()=>j(ee()),fp=()=>ie()&&ie().click(),Bk=()=>B()&&B().click(),Dk=()=>He()&&He().click(),Ko=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),pp=a=>{a.keydownTarget&&a.keydownHandlerAdded&&(a.keydownTarget.removeEventListener("keydown",a.keydownHandler,{capture:a.keydownListenerCapture}),a.keydownHandlerAdded=!1)},Nk=(a,c,g,v)=>{pp(c),g.toast||(c.keydownHandler=M=>jk(a,M,v),c.keydownTarget=g.keydownListenerCapture?window:ee(),c.keydownListenerCapture=g.keydownListenerCapture,c.keydownTarget.addEventListener("keydown",c.keydownHandler,{capture:c.keydownListenerCapture}),c.keydownHandlerAdded=!0)},Cl=(a,c)=>{const g=It();if(g.length){a=a+c,a===g.length?a=0:a===-1&&(a=g.length-1),g[a].focus();return}ee().focus()},hp=["ArrowRight","ArrowDown"],Rk=["ArrowLeft","ArrowUp"],jk=(a,c,g)=>{const v=n.innerParams.get(a);!v||c.isComposing||c.keyCode===229||(v.stopKeydownPropagation&&c.stopPropagation(),c.key==="Enter"?Fk(a,c,v):c.key==="Tab"?Hk(c):[...hp,...Rk].includes(c.key)?Uk(c.key):c.key==="Escape"&&zk(c,v,g))},Fk=(a,c,g)=>{if(!!A(g.allowEnterKey)&&c.target&&a.getInput()&&c.target instanceof HTMLElement&&c.target.outerHTML===a.getInput().outerHTML){if(["textarea","file"].includes(g.input))return;fp(),c.preventDefault()}},Hk=a=>{const c=a.target,g=It();let v=-1;for(let M=0;M<g.length;M++)if(c===g[M]){v=M;break}a.shiftKey?Cl(v,-1):Cl(v,1),a.stopPropagation(),a.preventDefault()},Uk=a=>{const c=ie(),g=B(),v=He(),M=[c,g,v];if(document.activeElement instanceof HTMLElement&&!M.includes(document.activeElement))return;const we=hp.includes(a)?"nextElementSibling":"previousElementSibling";let We=document.activeElement;for(let Lt=0;Lt<de().children.length;Lt++){if(We=We[we],!We)return;if(We instanceof HTMLButtonElement&&j(We))break}We instanceof HTMLButtonElement&&We.focus()},zk=(a,c,g)=>{A(c.allowEscapeKey)&&(a.preventDefault(),g(Ko.esc))};var Gs={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const qk=()=>{Array.from(document.body.children).forEach(c=>{c===P()||c.contains(P())||(c.hasAttribute("aria-hidden")&&c.setAttribute("data-previous-aria-hidden",c.getAttribute("aria-hidden")),c.setAttribute("aria-hidden","true"))})},mp=()=>{Array.from(document.body.children).forEach(c=>{c.hasAttribute("data-previous-aria-hidden")?(c.setAttribute("aria-hidden",c.getAttribute("data-previous-aria-hidden")),c.removeAttribute("data-previous-aria-hidden")):c.removeAttribute("aria-hidden")})},Vk=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!et(document.body,i.iosfix)){const c=document.body.scrollTop;document.body.style.top=`${c*-1}px`,T(document.body,i.iosfix),Kk(),Wk()}},Wk=()=>{const a=navigator.userAgent,c=!!a.match(/iPad/i)||!!a.match(/iPhone/i),g=!!a.match(/WebKit/i);c&&g&&!a.match(/CriOS/i)&&ee().scrollHeight>window.innerHeight-44&&(P().style.paddingBottom=`${44}px`)},Kk=()=>{const a=P();let c;a.ontouchstart=g=>{c=Gk(g)},a.ontouchmove=g=>{c&&(g.preventDefault(),g.stopPropagation())}},Gk=a=>{const c=a.target,g=P();return Jk(a)||Yk(a)?!1:c===g||!h(g)&&c instanceof HTMLElement&&c.tagName!=="INPUT"&&c.tagName!=="TEXTAREA"&&!(h(Te())&&Te().contains(c))},Jk=a=>a.touches&&a.touches.length&&a.touches[0].touchType==="stylus",Yk=a=>a.touches&&a.touches.length>1,Xk=()=>{if(et(document.body,i.iosfix)){const a=parseInt(document.body.style.top,10);H(document.body,i.iosfix),document.body.style.top="",document.body.scrollTop=a*-1}},Zk=()=>{_t.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(_t.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${_t.previousBodyPadding+ok()}px`)},Qk=()=>{_t.previousBodyPadding!==null&&(document.body.style.paddingRight=`${_t.previousBodyPadding}px`,_t.previousBodyPadding=null)};function gp(a,c,g,v){xn()?wp(a,v):(U(g).then(()=>wp(a,v)),pp(k)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(c.setAttribute("style","display:none !important"),c.removeAttribute("class"),c.innerHTML=""):c.remove(),Tt()&&(Qk(),Xk(),mp()),eS()}function eS(){H([document.documentElement,document.body],[i.shown,i["height-auto"],i["no-backdrop"],i["toast-shown"]])}function kr(a){a=sS(a);const c=Gs.swalPromiseResolve.get(this),g=nS(this);this.isAwaitingPromise()?a.isDismissed||(Js(this),c(a)):g&&c(a)}function tS(){return!!n.awaitingPromise.get(this)}const nS=a=>{const c=ee();if(!c)return!1;const g=n.innerParams.get(a);if(!g||et(c,g.hideClass.popup))return!1;H(c,g.showClass.popup),T(c,g.hideClass.popup);const v=P();return H(v,g.showClass.backdrop),T(v,g.hideClass.backdrop),iS(a,c,g),!0};function oS(a){const c=Gs.swalPromiseReject.get(this);Js(this),c&&c(a)}const Js=a=>{a.isAwaitingPromise()&&(n.awaitingPromise.delete(a),n.innerParams.get(a)||a._destroy())},sS=a=>typeof a>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},a),iS=(a,c,g)=>{const v=P(),M=Ws&&w(c);typeof g.willClose=="function"&&g.willClose(c),M?rS(a,c,v,g.returnFocus,g.didClose):gp(a,v,g.returnFocus,g.didClose)},rS=(a,c,g,v,M)=>{k.swalCloseEventFinishedCallback=gp.bind(null,a,g,v,M),c.addEventListener(Ws,function(we){we.target===c&&(k.swalCloseEventFinishedCallback(),delete k.swalCloseEventFinishedCallback)})},wp=(a,c)=>{setTimeout(()=>{typeof c=="function"&&c.bind(a.params)(),a._destroy()})};function yp(a,c,g){const v=n.domCache.get(a);c.forEach(M=>{v[M].disabled=g})}function bp(a,c){if(!!a)if(a.type==="radio"){const v=a.parentNode.parentNode.querySelectorAll("input");for(let M=0;M<v.length;M++)v[M].disabled=c}else a.disabled=c}function aS(){yp(this,["confirmButton","denyButton","cancelButton"],!1)}function lS(){yp(this,["confirmButton","denyButton","cancelButton"],!0)}function cS(){bp(this.getInput(),!1)}function uS(){bp(this.getInput(),!0)}function dS(a){const c=n.domCache.get(this),g=n.innerParams.get(this);ct(c.validationMessage,a),c.validationMessage.className=i["validation-message"],g.customClass&&g.customClass.validationMessage&&T(c.validationMessage,g.customClass.validationMessage),q(c.validationMessage);const v=this.getInput();v&&(v.setAttribute("aria-invalid",!0),v.setAttribute("aria-describedby",i["validation-message"]),S(v),T(v,i.inputerror))}function fS(){const a=n.domCache.get(this);a.validationMessage&&K(a.validationMessage);const c=this.getInput();c&&(c.removeAttribute("aria-invalid"),c.removeAttribute("aria-describedby"),H(c,i.inputerror))}const Go={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},pS=["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"],hS={},mS=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],vp=a=>Object.prototype.hasOwnProperty.call(Go,a),_p=a=>pS.indexOf(a)!==-1,$l=a=>hS[a],gS=a=>{vp(a)||p(`Unknown parameter "${a}"`)},wS=a=>{mS.includes(a)&&p(`The parameter "${a}" is incompatible with toasts`)},yS=a=>{$l(a)&&E(a,$l(a))},bS=a=>{a.backdrop===!1&&a.allowOutsideClick&&p('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const c in a)gS(c),a.toast&&wS(c),yS(c)};function vS(a){const c=ee(),g=n.innerParams.get(this);if(!c||et(c,g.hideClass.popup)){p("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const v=_S(a),M=Object.assign({},g,v);up(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 c={};return Object.keys(a).forEach(g=>{_p(g)?c[g]=a[g]:p(`Invalid parameter to update: ${g}`)}),c};function xS(){const a=n.domCache.get(this),c=n.innerParams.get(this);if(!c){xp(this);return}a.popup&&k.swalCloseEventFinishedCallback&&(k.swalCloseEventFinishedCallback(),delete k.swalCloseEventFinishedCallback),typeof c.didDestroy=="function"&&c.didDestroy(),CS(this)}const CS=a=>{xp(a),delete a.params,delete k.keydownHandler,delete k.keydownTarget,delete k.currentInstance},xp=a=>{a.isAwaitingPromise()?(kl(n,a),n.awaitingPromise.set(a,!0)):(kl(Gs,a),kl(n,a))},kl=(a,c)=>{for(const g in a)a[g].delete(c)};var Cp=Object.freeze({__proto__:null,_destroy:xS,close:kr,closeModal:kr,closePopup:kr,closeToast:kr,disableButtons:lS,disableInput:uS,disableLoading:dp,enableButtons:aS,enableInput:cS,getInput:Lk,handleAwaitingPromise:Js,hideLoading:dp,isAwaitingPromise:tS,rejectPromise:oS,resetValidationMessage:fS,showValidationMessage:dS,update:vS});const Jo=a=>{let c=ee();c||new Er,c=ee();const g=R();xn()?K(Oe()):$S(c,a),q(g),c.setAttribute("data-loading","true"),c.setAttribute("aria-busy","true"),c.focus()},$S=(a,c)=>{const g=de(),v=R();!c&&j(ie())&&(c=ie()),q(g),c&&(K(c),v.setAttribute("data-button-to-replace",c.className)),v.parentNode.insertBefore(v,c),T([a,g],i.loading)},kS=(a,c)=>{c.input==="select"||c.input==="radio"?OS(a,c):["text","email","number","tel","textarea"].includes(c.input)&&(N(c.inputValue)||O(c.inputValue))&&(Jo(ie()),IS(a,c))},SS=(a,c)=>{const g=a.getInput();if(!g)return null;switch(c.input){case"checkbox":return ES(g);case"radio":return AS(g);case"file":return PS(g);default:return c.inputAutoTrim?g.value.trim():g.value}},ES=a=>a.checked?1:0,AS=a=>a.checked?a.value:null,PS=a=>a.files.length?a.getAttribute("multiple")!==null?a.files:a.files[0]:null,OS=(a,c)=>{const g=ee(),v=M=>{TS[c.input](g,Sl(M),c)};N(c.inputOptions)||O(c.inputOptions)?(Jo(ie()),V(c.inputOptions).then(M=>{a.hideLoading(),v(M)})):typeof c.inputOptions=="object"?v(c.inputOptions):m(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof c.inputOptions}`)},IS=(a,c)=>{const g=a.getInput();K(g),V(c.inputValue).then(v=>{g.value=c.input==="number"?`${parseFloat(v)||0}`:`${v}`,q(g),g.focus(),a.hideLoading()}).catch(v=>{m(`Error in inputValue promise: ${v}`),g.value="",q(g),g.focus(),a.hideLoading()})},TS={select:(a,c,g)=>{const v=X(a,i.select),M=(we,We,Lt)=>{const Ct=document.createElement("option");Ct.value=Lt,ct(Ct,We),Ct.selected=$p(Lt,g.inputValue),we.appendChild(Ct)};c.forEach(we=>{const We=we[0],Lt=we[1];if(Array.isArray(Lt)){const Ct=document.createElement("optgroup");Ct.label=We,Ct.disabled=!1,v.appendChild(Ct),Lt.forEach(Xo=>M(Ct,Xo[1],Xo[0]))}else M(v,Lt,We)}),v.focus()},radio:(a,c,g)=>{const v=X(a,i.radio);c.forEach(we=>{const We=we[0],Lt=we[1],Ct=document.createElement("input"),Xo=document.createElement("label");Ct.type="radio",Ct.name=i.radio,Ct.value=We,$p(We,g.inputValue)&&(Ct.checked=!0);const Ol=document.createElement("span");ct(Ol,Lt),Ol.className=i.label,Xo.appendChild(Ct),Xo.appendChild(Ol),v.appendChild(Xo)});const M=v.querySelectorAll("input");M.length&&M[0].focus()}},Sl=a=>{const c=[];return typeof Map<"u"&&a instanceof Map?a.forEach((g,v)=>{let M=g;typeof M=="object"&&(M=Sl(M)),c.push([v,M])}):Object.keys(a).forEach(g=>{let v=a[g];typeof v=="object"&&(v=Sl(v)),c.push([g,v])}),c},$p=(a,c)=>c&&c.toString()===a.toString(),LS=a=>{const c=n.innerParams.get(a);a.disableButtons(),c.input?kp(a,"confirm"):Al(a,!0)},MS=a=>{const c=n.innerParams.get(a);a.disableButtons(),c.returnInputValueOnDeny?kp(a,"deny"):El(a,!1)},BS=(a,c)=>{a.disableButtons(),c(Ko.cancel)},kp=(a,c)=>{const g=n.innerParams.get(a);if(!g.input){m(`The "input" parameter is needed to be set when using returnInputValueOn${f(c)}`);return}const v=SS(a,g);g.inputValidator?DS(a,v,c):a.getInput().checkValidity()?c==="deny"?El(a,v):Al(a,v):(a.enableButtons(),a.showValidationMessage(g.validationMessage))},DS=(a,c,g)=>{const v=n.innerParams.get(a);a.disableInput(),Promise.resolve().then(()=>V(v.inputValidator(c,v.validationMessage))).then(we=>{a.enableButtons(),a.enableInput(),we?a.showValidationMessage(we):g==="deny"?El(a,c):Al(a,c)})},El=(a,c)=>{const g=n.innerParams.get(a||void 0);g.showLoaderOnDeny&&Jo(B()),g.preDeny?(n.awaitingPromise.set(a||void 0,!0),Promise.resolve().then(()=>V(g.preDeny(c,g.validationMessage))).then(M=>{M===!1?(a.hideLoading(),Js(a)):a.close({isDenied:!0,value:typeof M>"u"?c:M})}).catch(M=>Ep(a||void 0,M))):a.close({isDenied:!0,value:c})},Sp=(a,c)=>{a.close({isConfirmed:!0,value:c})},Ep=(a,c)=>{a.rejectPromise(c)},Al=(a,c)=>{const g=n.innerParams.get(a||void 0);g.showLoaderOnConfirm&&Jo(),g.preConfirm?(a.resetValidationMessage(),n.awaitingPromise.set(a||void 0,!0),Promise.resolve().then(()=>V(g.preConfirm(c,g.validationMessage))).then(M=>{j(Ee())||M===!1?(a.hideLoading(),Js(a)):Sp(a,typeof M>"u"?c:M)}).catch(M=>Ep(a||void 0,M))):Sp(a,c)},NS=(a,c,g)=>{n.innerParams.get(a).toast?RS(a,c,g):(FS(c),HS(c),US(a,c,g))},RS=(a,c,g)=>{c.popup.onclick=()=>{const v=n.innerParams.get(a);v&&(jS(v)||v.timer||v.input)||g(Ko.close)}},jS=a=>a.showConfirmButton||a.showDenyButton||a.showCancelButton||a.showCloseButton;let Sr=!1;const FS=a=>{a.popup.onmousedown=()=>{a.container.onmouseup=function(c){a.container.onmouseup=void 0,c.target===a.container&&(Sr=!0)}}},HS=a=>{a.container.onmousedown=()=>{a.popup.onmouseup=function(c){a.popup.onmouseup=void 0,(c.target===a.popup||a.popup.contains(c.target))&&(Sr=!0)}}},US=(a,c,g)=>{c.container.onclick=v=>{const M=n.innerParams.get(a);if(Sr){Sr=!1;return}v.target===c.container&&A(M.allowOutsideClick)&&g(Ko.backdrop)}},zS=a=>typeof a=="object"&&a.jquery,Ap=a=>a instanceof Element||zS(a),qS=a=>{const c={};return typeof a[0]=="object"&&!Ap(a[0])?Object.assign(c,a[0]):["title","html","icon"].forEach((g,v)=>{const M=a[v];typeof M=="string"||Ap(M)?c[g]=M:M!==void 0&&m(`Unexpected type of ${g}! Expected "string" or "Element", got ${typeof M}`)}),c};function VS(){const a=this;for(var c=arguments.length,g=new Array(c),v=0;v<c;v++)g[v]=arguments[v];return new a(...g)}function WS(a){class c extends this{_main(v,M){return super._main(v,Object.assign({},a,M))}}return c}const KS=()=>k.timeout&&k.timeout.getTimerLeft(),Pp=()=>{if(k.timeout)return x(),k.timeout.stop()},Op=()=>{if(k.timeout){const a=k.timeout.start();return _(a),a}},GS=()=>{const a=k.timeout;return a&&(a.running?Pp():Op())},JS=a=>{if(k.timeout){const c=k.timeout.increase(a);return _(c,!0),c}},YS=()=>k.timeout&&k.timeout.isRunning();let Ip=!1;const Pl={};function XS(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";Pl[a]=this,Ip||(document.body.addEventListener("click",ZS),Ip=!0)}const ZS=a=>{for(let c=a.target;c&&c!==document;c=c.parentNode)for(const g in Pl){const v=c.getAttribute(g);if(v){Pl[g].fire({template:v});return}}};var QS=Object.freeze({__proto__:null,argsToParams:qS,bindClickHandler:XS,clickCancel:Dk,clickConfirm:fp,clickDeny:Bk,enableLoading:Jo,fire:VS,getActions:de,getCancelButton:He,getCloseButton:Xe,getConfirmButton:ie,getContainer:P,getDenyButton:B,getFocusableElements:It,getFooter:Ce,getHtmlContainer:Te,getIcon:Oe,getIconContent:ke,getImage:he,getInputLabel:J,getLoader:R,getPopup:ee,getProgressSteps:se,getTimerLeft:KS,getTimerProgressBar:Ie,getTitle:Se,getValidationMessage:Ee,increaseTimer:JS,isDeprecatedParameter:$l,isLoading:vt,isTimerRunning:YS,isUpdatableParameter:_p,isValidParameter:vp,isVisible:Mk,mixin:WS,resumeTimer:Op,showLoading:Jo,stopTimer:Pp,toggleTimer:GS});class eE{constructor(c,g){this.callback=c,this.remaining=g,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(c){const g=this.running;return g&&this.stop(),this.remaining+=c,g&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Tp=["swal-title","swal-html","swal-footer"],tE=a=>{const c=typeof a.template=="string"?document.querySelector(a.template):a.template;if(!c)return{};const g=c.content;return cE(g),Object.assign(nE(g),oE(g),sE(g),iE(g),rE(g),aE(g),lE(g,Tp))},nE=a=>{const c={};return Array.from(a.querySelectorAll("swal-param")).forEach(v=>{$o(v,["name","value"]);const M=v.getAttribute("name"),we=v.getAttribute("value");typeof Go[M]=="boolean"?c[M]=we!=="false":typeof Go[M]=="object"?c[M]=JSON.parse(we):c[M]=we}),c},oE=a=>{const c={};return Array.from(a.querySelectorAll("swal-function-param")).forEach(v=>{const M=v.getAttribute("name"),we=v.getAttribute("value");c[M]=new Function(`return ${we}`)()}),c},sE=a=>{const c={};return Array.from(a.querySelectorAll("swal-button")).forEach(v=>{$o(v,["type","color","aria-label"]);const M=v.getAttribute("type");c[`${M}ButtonText`]=v.innerHTML,c[`show${f(M)}Button`]=!0,v.hasAttribute("color")&&(c[`${M}ButtonColor`]=v.getAttribute("color")),v.hasAttribute("aria-label")&&(c[`${M}ButtonAriaLabel`]=v.getAttribute("aria-label"))}),c},iE=a=>{const c={},g=a.querySelector("swal-image");return g&&($o(g,["src","width","height","alt"]),g.hasAttribute("src")&&(c.imageUrl=g.getAttribute("src")),g.hasAttribute("width")&&(c.imageWidth=g.getAttribute("width")),g.hasAttribute("height")&&(c.imageHeight=g.getAttribute("height")),g.hasAttribute("alt")&&(c.imageAlt=g.getAttribute("alt"))),c},rE=a=>{const c={},g=a.querySelector("swal-icon");return g&&($o(g,["type","color"]),g.hasAttribute("type")&&(c.icon=g.getAttribute("type")),g.hasAttribute("color")&&(c.iconColor=g.getAttribute("color")),c.iconHtml=g.innerHTML),c},aE=a=>{const c={},g=a.querySelector("swal-input");g&&($o(g,["type","label","placeholder","value"]),c.input=g.getAttribute("type")||"text",g.hasAttribute("label")&&(c.inputLabel=g.getAttribute("label")),g.hasAttribute("placeholder")&&(c.inputPlaceholder=g.getAttribute("placeholder")),g.hasAttribute("value")&&(c.inputValue=g.getAttribute("value")));const v=Array.from(a.querySelectorAll("swal-input-option"));return v.length&&(c.inputOptions={},v.forEach(M=>{$o(M,["value"]);const we=M.getAttribute("value"),We=M.innerHTML;c.inputOptions[we]=We})),c},lE=(a,c)=>{const g={};for(const v in c){const M=c[v],we=a.querySelector(M);we&&($o(we,[]),g[M.replace(/^swal-/,"")]=we.innerHTML.trim())}return g},cE=a=>{const c=Tp.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();c.includes(v)||p(`Unrecognized element <${v}>`)})},$o=(a,c)=>{Array.from(a.attributes).forEach(g=>{c.indexOf(g.name)===-1&&p([`Unrecognized attribute "${g.name}" on <${a.tagName.toLowerCase()}>.`,`${c.length?`Allowed attributes are: ${c.join(", ")}`:"To set the value, use HTML within the element."}`])})},Lp=10,uE=a=>{const c=P(),g=ee();typeof a.willOpen=="function"&&a.willOpen(g);const M=window.getComputedStyle(document.body).overflowY;pE(c,g,a),setTimeout(()=>{dE(c,g)},Lp),Tt()&&(fE(c,a.scrollbarPadding,M),qk()),!xn()&&!k.previousActiveElement&&(k.previousActiveElement=document.activeElement),typeof a.didOpen=="function"&&setTimeout(()=>a.didOpen(g)),H(c,i["no-transition"])},Mp=a=>{const c=ee();if(a.target!==c)return;const g=P();c.removeEventListener(Ws,Mp),g.style.overflowY="auto"},dE=(a,c)=>{Ws&&w(c)?(a.style.overflowY="hidden",c.addEventListener(Ws,Mp)):a.style.overflowY="auto"},fE=(a,c,g)=>{Vk(),c&&g!=="hidden"&&Zk(),setTimeout(()=>{a.scrollTop=0})},pE=(a,c,g)=>{T(a,g.showClass.backdrop),c.style.setProperty("opacity","0","important"),q(c,"grid"),setTimeout(()=>{T(c,g.showClass.popup),c.style.removeProperty("opacity")},Lp),T([document.documentElement,document.body],i.shown),g.heightAuto&&g.backdrop&&!g.toast&&T([document.documentElement,document.body],i["height-auto"])};var Bp={email:(a,c)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(a)?Promise.resolve():Promise.resolve(c||"Invalid email address"),url:(a,c)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(a)?Promise.resolve():Promise.resolve(c||"Invalid URL")};function hE(a){a.inputValidator||Object.keys(Bp).forEach(c=>{a.input===c&&(a.inputValidator=Bp[c])})}function mE(a){(!a.target||typeof a.target=="string"&&!document.querySelector(a.target)||typeof a.target!="string"&&!a.target.appendChild)&&(p('Target parameter is not valid, defaulting to "body"'),a.target="body")}function gE(a){hE(a),a.showLoaderOnConfirm&&!a.preConfirm&&p(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
showLoaderOnConfirm should be used together with preConfirm, see usage example:
https://sweetalert2.github.io/#ajax-request`),mE(a),typeof a.title=="string"&&(a.title=a.title.split(`
`).join("<br />")),Vs(a)}let sn;class Yo{constructor(){if(typeof window>"u")return;sn=this;for(var c=arguments.length,g=new Array(c),v=0;v<c;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 we=sn._main(sn.params);n.promise.set(this,we)}_main(c){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};bS(Object.assign({},g,c)),k.currentInstance&&(k.currentInstance._destroy(),Tt()&&mp()),k.currentInstance=sn;const v=yE(c,g);gE(v),Object.freeze(v),k.timeout&&(k.timeout.stop(),delete k.timeout),clearTimeout(k.restoreFocusTimeout);const M=bE(sn);return up(sn,v),n.innerParams.set(sn,v),wE(sn,M,v)}then(c){return n.promise.get(this).then(c)}finally(c){return n.promise.get(this).finally(c)}}const wE=(a,c,g)=>new Promise((v,M)=>{const we=We=>{a.close({isDismissed:!0,dismiss:We})};Gs.swalPromiseResolve.set(a,v),Gs.swalPromiseReject.set(a,M),c.confirmButton.onclick=()=>{LS(a)},c.denyButton.onclick=()=>{MS(a)},c.cancelButton.onclick=()=>{BS(a,we)},c.closeButton.onclick=()=>{we(Ko.close)},NS(a,c,we),Nk(a,k,g,we),kS(a,g),uE(g),vE(k,g,we),_E(c,g),setTimeout(()=>{c.container.scrollTop=0})}),yE=(a,c)=>{const g=tE(a),v=Object.assign({},Go,c,g,a);return v.showClass=Object.assign({},Go.showClass,v.showClass),v.hideClass=Object.assign({},Go.hideClass,v.hideClass),v},bE=a=>{const c={popup:ee(),container:P(),actions:de(),confirmButton:ie(),denyButton:B(),cancelButton:He(),loader:R(),closeButton:Xe(),validationMessage:Ee(),progressSteps:se()};return n.domCache.set(a,c),c},vE=(a,c,g)=>{const v=Ie();K(v),c.timer&&(a.timeout=new eE(()=>{g("timer"),delete a.timeout},c.timer),c.timerProgressBar&&(q(v),at(v,c,"timerProgressBar"),setTimeout(()=>{a.timeout&&a.timeout.running&&_(c.timer)})))},_E=(a,c)=>{if(!c.toast){if(!A(c.allowEnterKey)){CE();return}xE(a,c)||Cl(-1,1)}},xE=(a,c)=>c.focusDeny&&j(a.denyButton)?(a.denyButton.focus(),!0):c.focusCancel&&j(a.cancelButton)?(a.cancelButton.focus(),!0):c.focusConfirm&&j(a.confirmButton)?(a.confirmButton.focus(),!0):!1,CE=()=>{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,c=localStorage.getItem("swal-initiation");c?(a.getTime()-Date.parse(c))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const g=document.createElement("audio");g.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",g.loop=!0,document.body.appendChild(g),setTimeout(()=>{g.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${a}`)}Object.assign(Yo.prototype,Cp),Object.assign(Yo,QS),Object.keys(Cp).forEach(a=>{Yo[a]=function(){if(sn)return sn[a](...arguments)}}),Yo.DismissReason=Ko,Yo.version="11.7.2";const Er=Yo;return Er.default=Er,Er}),typeof $n<"u"&&$n.Sweetalert2&&($n.swal=$n.sweetAlert=$n.Swal=$n.SweetAlert=$n.Sweetalert2),typeof document<"u"&&function(n,o){var s=n.createElement("style");if(n.getElementsByTagName("head")[0].appendChild(s),s.styleSheet)s.styleSheet.disabled||(s.styleSheet.cssText=o);else try{s.innerHTML=o}catch{s.innerText=o}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:rgba(0,0,0,0) !important}.swal2-container.swal2-top-start,.swal2-container.swal2-center-start,.swal2-container.swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}.swal2-container.swal2-top,.swal2-container.swal2-center,.swal2-container.swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}.swal2-container.swal2-top-end,.swal2-container.swal2-center-end,.swal2-container.swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-start>.swal2-popup,.swal2-container.swal2-center-left>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-start>.swal2-popup,.swal2-container.swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-row>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none !important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:none}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}.swal2-styled{margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:none}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.swal2-close:hover{transform:none;background:rgba(0,0,0,0);color:#f27474}.swal2-close:focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-input,.swal2-file,.swal2-textarea,.swal2-select,.swal2-radio,.swal2-checkbox{margin:1em 2em 3px}.swal2-input,.swal2-file,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-input.swal2-inputerror,.swal2-file.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}.swal2-input:focus,.swal2-file:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}.swal2-input::placeholder,.swal2-file::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-radio,.swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-radio label,.swal2-checkbox label{margin:0 .6em;font-size:1.125em}.swal2-radio input,.swal2-checkbox input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}')})(Dl);const fe=Dl.exports,Vp=["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"],Wp=["jpg","jpeg","png","gif","bmp","svg"],Kp=["mp3","wav","wma","ogg","ape","flac","aac"];function Or(e,...t){return new e(t[0])}function es(){return Math.floor(Date.now()/1e3)}function Nl(e,t,n="text/plain"){const o=document.createElement("a");document.body.appendChild(o),o.setAttribute("style","display:none");const s=new Blob([e],{type:n}),i=window.URL.createObjectURL(s);o.href=i,o.download=t,o.click(),window.URL.revokeObjectURL(i)}function Jt(e){if(typeof Qo=="function")return Qo(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 Gp(e,t){return e=e.replace(/^[\\]+/g,""),t?"/"+e:e}function Rl(e){return/^magnet:\?xt=urn:btih/.test(e)}function jl(e){return/^ed2k:\/\/\|file\|/.test(e)}function Fl(e){return`magnet:?xt=urn:btih:${e.toUpperCase()}`}function Hl(e){const t=e.match(/([a-z\d]{32,40})/i);return t?t[1]:""}function Jp(e,t=!0){return(t?/^([a-z\d]{32})$|^([a-z\d]{40})$/i:/^[a-z\d]{32,40}$/i).test(e)}function Yp(e,t=location.href){const n=new RegExp("(\\?|#|&)"+e+"=([^&#]*)(&|#|$)"),o=t.match(n);return o?o[2]:""}function Xs(e,t=2){if(Number.isNaN(e)||(e=typeof e=="string"?parseInt(e):e,!e))return"0";const n=1024,o=t,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,i)).toFixed(o))+" "+s[i]}function Ul(e){const t=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],n=new RegExp(`^(\\d+(?:\\.\\d+)?)(${t.join("|")})$`,"i"),o=e.match(n);if(!o)throw new Error(`无效的文件大小!${e}`);const s=parseFloat(o[1]),i=o[2].toUpperCase(),r=t.indexOf(i);if(r<0)throw new Error(`无效的文件大小!${e}`);return s*Math.pow(1024,r)}function zl(e,t=document,n=XPathResult.ORDERED_NODE_SNAPSHOT_TYPE){const o=[],s=document.evaluate(e,t,null,n,null);for(let i=0;i<s.snapshotLength;i++){const r=s.snapshotItem(i);r&&o.push(r)}return o}async function Ao(e,t=100,n=12e4,o=document){const s=e.indexOf("//")===0;function i(r){if(s){const l=zl(e);l.length>0&&r(l)}else{const l=o.querySelectorAll(e);l.length&&r(Array.from(l))}}try{return await Zs(i,t,n)}catch(r){throw console.warn("[find]",r),new Error(`查找元素超时:${e}`)}}async function kn(e,t=100,n=12e4){const o=e.indexOf("//")===0;function s(i){if(o){const r=zl(e);r.length>0&&i(unsafeWindow.$(r))}else{const r=unsafeWindow.$(e);r.length&&i(r)}}try{return await Zs(s,t,n)}catch(i){throw console.warn("[find]",i),new Error(`查找元素超时:${e}`)}}async function Zs(e,t,n){return new Promise(async(o,s)=>{if(typeof e!="function"){s("提供的参数`fulfill`不是一个Function!");return}let i=!1;e(d=>{i=!0,o(d)});let r=setInterval(async()=>{if(i){clearTimeout(l),clearInterval(r);return}e(d=>{clearTimeout(l),clearInterval(r),o(d)})},t),l=setTimeout(()=>{clearInterval(r),s("超时")},n)})}async function Yt(e){return new Promise(t=>{setTimeout(t,e)})}function ql(e){const t=new URLSearchParams;let n;for(n in e)t.append(n,e[n].toString());return t.toString()}async function ce(e){return fe.fire({toast:!0,position:"top",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,didOpen:t=>{t.addEventListener("mouseenter",fe.stopTimer),t.addEventListener("mouseleave",fe.resumeTimer)},...e})}function Qs(e,t){t=t||window,t.postMessage(e)}function Yn(e,t,n){if(n){const o=Ys(e,{});Pr(e,{...o,...t})}else Pr(e,t)}function Sn(e,t,n){let o;return function(...s){const i=()=>{o=void 0,n||e.apply(this,s)},r=n&&o===void 0;clearTimeout(o),o=setTimeout(i,t),r&&e.apply(this,s)}}function Xp(e){return e?Vp.indexOf(e.toLowerCase())>-1:!1}function Zp(e){return e?Wp.indexOf(e.toLowerCase())>-1:!1}function Qp(e){return e?Kp.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||{}),ts=(e=>(e.listItemHover="列表项悬浮菜单",e.listItemHoverSub="列表项悬浮子菜单",e.listItemContext="列表项右键菜单",e.listItemContextSub="列表项右键子菜单",e.selection="选中项菜单",e.selectionSub="选中项子菜单",e.dirContext="当前目录右键菜单",e.dirContextSub="当前目录右键子菜单",e))(ts||{}),Xn=(e=>(e[e.after=0]="after",e[e.before=1]="before",e))(Xn||{});const lt={get:async(e,t)=>Ys(e,t),set:async(e,t)=>Pr(e,t),remove:async e=>zp(e)},Vl="clouddrive_configs";function Ir(e){return{active:!1,url:"http://localhost:19798",root:"/115",memo:"",...e}}async function Wl(){const e=[Ir()],t=await lt.get(Vl,e);return t||e}async function Kl(e){e.some(t=>t.active)||(e[0].active=!0),await lt.set(Vl,e)}async function Tr(){return(await Wl()).find(t=>t.active)||Ir()}var Lr=(e=>(e.play="play",e.download="download",e))(Lr||{});function Gl(e){return e.startsWith("file://")}async function ei(e,t,n){let{url:o,root:s}=e;if(!o)throw new Error("未设置CloudDrive地址!");(o.startsWith("/")||o.startsWith("\\"))&&(o=`file:///${o}`),Gl(o);const i=/^https?:\/\//.test(o);if(i&&!s)throw new Error("当协议为http/https时,必须设置CloudDrive资源根路径!");s&&(s=s.replace(/^(\/+)?/g,"/")),t=t.replace(/^(\/+)?/g,"/");const r=`${s}${t}`,l=n==="play"?"True":"False";let d="";return i?d=`${o}/static/${o.replace("://","/")}/${l}/${encodeURIComponent(r)}`:(o=o.replace(/\/+$/,""),d=`${o}${r}`),console.log("[Cloud115 Enhancer] buildCloudDriveUrl",d),d}async function Jl(e,t){let{url:n,root:o}=e;if(!n)throw new Error("未设置CloudDrive地址!");return(n.startsWith("/")||n.startsWith("\\"))&&(n=`file:///${n}`),Gl(n)?await ei(e,t,"play"):await ei(e,t,"play")+".clfsplaylist.m3u"}var $t=(e=>(e[e.any=-999]="any",e[e.failed=-1]="failed",e[e.illegal=0]="illegal",e[e.ing=1]="ing",e[e.success=2]="success",e))($t||{});const eh={[-1]:"失败",[0]:"违规",[1]:"下载中",[2]:"成功"};var kt=(e=>(e.all="all",e.failed="failed",e.success="success",e.magnet="magnet",e.magnetEd2k="magnetEd2k",e))(kt||{}),Yl=(e=>(e[e.true=1]="true",e[e.false=0]="false",e))(Yl||{}),mt=(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))(mt||{}),Qe=(e=>(e.all="全部",e.video="视频",e.audio="音频",e.image="图片",e.doc="文档",e.app="应用",e.archive="压缩包",e))(Qe||{}),Xl=(e=>(e.userPtime="user_ptime",e.fileName="file_name",e.fileSize="file_size",e.fileType="file_type",e))(Xl||{});function th(e){return{offset:0,limit:1150,aid:1,cid:"",format:"json",o:"user_ptime",asc:0,search_value:"",...e}}function Zl(e){return{aid:1,cid:"",o:"user_ptime",asc:0,offset:0,show_dir:1,limit:115,natsort:0,format:"json",...e}}function Ql(e,t){return function(){return e.apply(t,arguments)}}const{toString:ec}=Object.prototype,{getPrototypeOf:Mr}=Object,Br=(e=>t=>{const n=ec.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),rn=e=>(e=e.toLowerCase(),t=>Br(t)===e),ti=e=>t=>typeof t===e,{isArray:Po}=Array,ns=ti("undefined");function nh(e){return e!==null&&!ns(e)&&e.constructor!==null&&!ns(e.constructor)&&En(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const tc=rn("ArrayBuffer");function oh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&tc(e.buffer),t}const sh=ti("string"),En=ti("function"),nc=ti("number"),Dr=e=>e!==null&&typeof e=="object",ih=e=>e===!0||e===!1,ni=e=>{if(Br(e)!=="object")return!1;const t=Mr(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},rh=rn("Date"),ah=rn("File"),lh=rn("Blob"),ch=rn("FileList"),uh=e=>Dr(e)&&En(e.pipe),dh=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||ec.call(e)===t||En(e.toString)&&e.toString()===t)},fh=rn("URLSearchParams"),ph=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function os(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,s;if(typeof e!="object"&&(e=[e]),Po(e))for(o=0,s=e.length;o<s;o++)t.call(null,e[o],o,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let l;for(o=0;o<r;o++)l=i[o],t.call(null,e[l],l,e)}}function oc(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length,s;for(;o-- >0;)if(s=n[o],t===s.toLowerCase())return s;return null}const sc=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ic=e=>!ns(e)&&e!==sc;function Nr(){const{caseless:e}=ic(this)&&this||{},t={},n=(o,s)=>{const i=e&&oc(t,s)||s;ni(t[i])&&ni(o)?t[i]=Nr(t[i],o):ni(o)?t[i]=Nr({},o):Po(o)?t[i]=o.slice():t[i]=o};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&os(arguments[o],n);return t}const hh=(e,t,n,{allOwnKeys:o}={})=>(os(t,(s,i)=>{n&&En(s)?e[i]=Ql(s,n):e[i]=s},{allOwnKeys:o}),e),mh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gh=(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)},wh=(e,t,n,o)=>{let s,i,r;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)r=s[i],(!o||o(r,e,t))&&!l[r]&&(t[r]=e[r],l[r]=!0);e=n!==!1&&Mr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},yh=(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},bh=e=>{if(!e)return null;if(Po(e))return e;let t=e.length;if(!nc(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},vh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Mr(Uint8Array)),_h=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},xh=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},Ch=rn("HTMLFormElement"),$h=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,s){return o.toUpperCase()+s}),rc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),kh=rn("RegExp"),ac=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};os(n,(s,i)=>{t(s,i,e)!==!1&&(o[i]=s)}),Object.defineProperties(e,o)},Sh=e=>{ac(e,(t,n)=>{if(En(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(!!En(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+"'")})}})},Eh=(e,t)=>{const n={},o=s=>{s.forEach(i=>{n[i]=!0})};return Po(e)?o(e):o(String(e).split(t)),n},Ah=()=>{},Ph=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Rr="abcdefghijklmnopqrstuvwxyz",lc="0123456789",cc={DIGIT:lc,ALPHA:Rr,ALPHA_DIGIT:Rr+Rr.toUpperCase()+lc},Oh=(e=16,t=cc.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function Ih(e){return!!(e&&En(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const z={isArray:Po,isArrayBuffer:tc,isBuffer:nh,isFormData:dh,isArrayBufferView:oh,isString:sh,isNumber:nc,isBoolean:ih,isObject:Dr,isPlainObject:ni,isUndefined:ns,isDate:rh,isFile:ah,isBlob:lh,isRegExp:kh,isFunction:En,isStream:uh,isURLSearchParams:fh,isTypedArray:vh,isFileList:ch,forEach:os,merge:Nr,extend:hh,trim:ph,stripBOM:mh,inherits:gh,toFlatObject:wh,kindOf:Br,kindOfTest:rn,endsWith:yh,toArray:bh,forEachEntry:_h,matchAll:xh,isHTMLForm:Ch,hasOwnProperty:rc,hasOwnProp:rc,reduceDescriptors:ac,freezeMethods:Sh,toObjectSet:Eh,toCamelCase:$h,noop:Ah,toFiniteNumber:Ph,findKey:oc,global:sc,isContextDefined:ic,ALPHABET:cc,generateString:Oh,isSpecCompliantForm:Ih,toJSONObject:e=>{const t=new Array(10),n=(o,s)=>{if(Dr(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[s]=o;const i=Po(o)?[]:{};return os(o,(r,l)=>{const d=n(r,s+1);!ns(d)&&(i[l]=d)}),t[s]=void 0,i}}return o};return n(e,0)}};function je(e,t,n,o,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),s&&(this.response=s)}z.inherits(je,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:z.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const uc=je.prototype,dc={};["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=>{dc[e]={value:e}}),Object.defineProperties(je,dc),Object.defineProperty(uc,"isAxiosError",{value:!0}),je.from=(e,t,n,o,s,i)=>{const r=Object.create(uc);return z.toFlatObject(e,r,function(d){return d!==Error.prototype},l=>l!=="isAxiosError"),je.call(r,e.message,t,n,o,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const Th=null;function jr(e){return z.isPlainObject(e)||z.isArray(e)}function fc(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function pc(e,t,n){return e?e.concat(t).map(function(s,i){return s=fc(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function Lh(e){return z.isArray(e)&&!e.some(jr)}const Mh=z.toFlatObject(z,{},null,function(t){return/^is[A-Z]/.test(t)});function oi(e,t,n){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,N){return!z.isUndefined(N[A])});const o=n.metaTokens,s=n.visitor||p,i=n.dots,r=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&z.isSpecCompliantForm(t);if(!z.isFunction(s))throw new TypeError("visitor must be a function");function f(E){if(E===null)return"";if(z.isDate(E))return E.toISOString();if(!d&&z.isBlob(E))throw new je("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(E)||z.isTypedArray(E)?d&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function p(E,A,N){let V=E;if(E&&!N&&typeof E=="object"){if(z.endsWith(A,"{}"))A=o?A:A.slice(0,-2),E=JSON.stringify(E);else if(z.isArray(E)&&Lh(E)||(z.isFileList(E)||z.endsWith(A,"[]"))&&(V=z.toArray(E)))return A=fc(A),V.forEach(function(P,D){!(z.isUndefined(P)||P===null)&&t.append(r===!0?pc([A],D,i):r===null?A:A+"[]",f(P))}),!1}return jr(E)?!0:(t.append(pc(N,A,i),f(E)),!1)}const m=[],y=Object.assign(Mh,{defaultVisitor:p,convertValue:f,isVisitable:jr});function C(E,A){if(!z.isUndefined(E)){if(m.indexOf(E)!==-1)throw Error("Circular reference detected in "+A.join("."));m.push(E),z.forEach(E,function(V,O){(!(z.isUndefined(V)||V===null)&&s.call(t,V,z.isString(O)?O.trim():O,A,y))===!0&&C(V,A?A.concat(O):[O])}),m.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return C(e),t}function hc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function Fr(e,t){this._pairs=[],e&&oi(e,this,t)}const mc=Fr.prototype;mc.append=function(t,n){this._pairs.push([t,n])},mc.toString=function(t){const n=t?function(o){return t.call(this,o,hc)}:hc;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Bh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gc(e,t,n){if(!t)return e;const o=n&&n.encode||Bh,s=n&&n.serialize;let i;if(s?i=s(t,n):i=z.isURLSearchParams(t)?t.toString():new Fr(t,n).toString(o),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Dh{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){z.forEach(this.handlers,function(o){o!==null&&t(o)})}}const wc=Dh,yc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Nh=typeof URLSearchParams<"u"?URLSearchParams:Fr,Rh=typeof FormData<"u"?FormData:null,jh=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Fh=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Xt={isBrowser:!0,classes:{URLSearchParams:Nh,FormData:Rh,Blob},isStandardBrowserEnv:jh,isStandardBrowserWebWorkerEnv:Fh,protocols:["http","https","file","blob","url","data"]};function Hh(e,t){return oi(e,new Xt.classes.URLSearchParams,Object.assign({visitor:function(n,o,s,i){return Xt.isNode&&z.isBuffer(n)?(this.append(o,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Uh(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function zh(e){const t={},n=Object.keys(e);let o;const s=n.length;let i;for(o=0;o<s;o++)i=n[o],t[i]=e[i];return t}function bc(e){function t(n,o,s,i){let r=n[i++];const l=Number.isFinite(+r),d=i>=n.length;return r=!r&&z.isArray(s)?s.length:r,d?(z.hasOwnProp(s,r)?s[r]=[s[r],o]:s[r]=o,!l):((!s[r]||!z.isObject(s[r]))&&(s[r]=[]),t(n,o,s[r],i)&&z.isArray(s[r])&&(s[r]=zh(s[r])),!l)}if(z.isFormData(e)&&z.isFunction(e.entries)){const n={};return z.forEachEntry(e,(o,s)=>{t(Uh(o),s,n,0)}),n}return null}const qh={"Content-Type":void 0};function Vh(e,t,n){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const si={transitional:yc,adapter:["xhr","http"],transformRequest:[function(t,n){const o=n.getContentType()||"",s=o.indexOf("application/json")>-1,i=z.isObject(t);if(i&&z.isHTMLForm(t)&&(t=new FormData(t)),z.isFormData(t))return s&&s?JSON.stringify(bc(t)):t;if(z.isArrayBuffer(t)||z.isBuffer(t)||z.isStream(t)||z.isFile(t)||z.isBlob(t))return t;if(z.isArrayBufferView(t))return t.buffer;if(z.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return Hh(t,this.formSerializer).toString();if((l=z.isFileList(t))||o.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return oi(l?{"files[]":t}:t,d&&new d,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),Vh(t)):t}],transformResponse:[function(t){const n=this.transitional||si.transitional,o=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&z.isString(t)&&(o&&!this.responseType||s)){const r=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(r)throw l.name==="SyntaxError"?je.from(l,je.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xt.classes.FormData,Blob:Xt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};z.forEach(["delete","get","head"],function(t){si.headers[t]={}}),z.forEach(["post","put","patch"],function(t){si.headers[t]=z.merge(qh)});const Hr=si,Wh=z.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"]),Kh=e=>{const t={};let n,o,s;return e&&e.split(`
`).forEach(function(r){s=r.indexOf(":"),n=r.substring(0,s).trim().toLowerCase(),o=r.substring(s+1).trim(),!(!n||t[n]&&Wh[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},vc=Symbol("internals");function ss(e){return e&&String(e).trim().toLowerCase()}function ii(e){return e===!1||e==null?e:z.isArray(e)?e.map(ii):String(e)}function Gh(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 Jh(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function Ur(e,t,n,o,s){if(z.isFunction(o))return o.call(this,t,n);if(s&&(t=n),!!z.isString(t)){if(z.isString(o))return t.indexOf(o)!==-1;if(z.isRegExp(o))return o.test(t)}}function Yh(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function Xh(e,t){const n=z.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(s,i,r){return this[o].call(this,t,s,i,r)},configurable:!0})})}class ri{constructor(t){t&&this.set(t)}set(t,n,o){const s=this;function i(l,d,f){const p=ss(d);if(!p)throw new Error("header name must be a non-empty string");const m=z.findKey(s,p);(!m||s[m]===void 0||f===!0||f===void 0&&s[m]!==!1)&&(s[m||d]=ii(l))}const r=(l,d)=>z.forEach(l,(f,p)=>i(f,p,d));return z.isPlainObject(t)||t instanceof this.constructor?r(t,n):z.isString(t)&&(t=t.trim())&&!Jh(t)?r(Kh(t),n):t!=null&&i(n,t,o),this}get(t,n){if(t=ss(t),t){const o=z.findKey(this,t);if(o){const s=this[o];if(!n)return s;if(n===!0)return Gh(s);if(z.isFunction(n))return n.call(this,s,o);if(z.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ss(t),t){const o=z.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||Ur(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let s=!1;function i(r){if(r=ss(r),r){const l=z.findKey(o,r);l&&(!n||Ur(o,o[l],l,n))&&(delete o[l],s=!0)}}return z.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let o=n.length,s=!1;for(;o--;){const i=n[o];(!t||Ur(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,o={};return z.forEach(this,(s,i)=>{const r=z.findKey(o,i);if(r){n[r]=ii(s),delete n[i];return}const l=t?Yh(i):String(i).trim();l!==i&&delete n[i],n[l]=ii(s),o[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return z.forEach(this,(o,s)=>{o!=null&&o!==!1&&(n[s]=t&&z.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(s=>o.set(s)),o}static accessor(t){const o=(this[vc]=this[vc]={accessors:{}}).accessors,s=this.prototype;function i(r){const l=ss(r);o[l]||(Xh(s,r),o[l]=!0)}return z.isArray(t)?t.forEach(i):i(t),this}}ri.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),z.freezeMethods(ri.prototype),z.freezeMethods(ri);const an=ri;function zr(e,t){const n=this||Hr,o=t||n,s=an.from(o.headers);let i=o.data;return z.forEach(e,function(l){i=l.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function _c(e){return!!(e&&e.__CANCEL__)}function is(e,t,n){je.call(this,e==null?"canceled":e,je.ERR_CANCELED,t,n),this.name="CanceledError"}z.inherits(is,je,{__CANCEL__:!0});function Zh(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new je("Request failed with status code "+n.status,[je.ERR_BAD_REQUEST,je.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Qh=Xt.isStandardBrowserEnv?function(){return{write:function(n,o,s,i,r,l){const d=[];d.push(n+"="+encodeURIComponent(o)),z.isNumber(s)&&d.push("expires="+new Date(s).toGMTString()),z.isString(i)&&d.push("path="+i),z.isString(r)&&d.push("domain="+r),l===!0&&d.push("secure"),document.cookie=d.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 em(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function tm(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function xc(e,t){return e&&!em(t)?tm(e,t):t}const nm=Xt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let o;function s(i){let r=i;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=s(window.location.href),function(r){const l=z.isString(r)?s(r):r;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}();function om(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function sm(e,t){e=e||10;const n=new Array(e),o=new Array(e);let s=0,i=0,r;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),p=o[i];r||(r=f),n[s]=d,o[s]=f;let m=i,y=0;for(;m!==s;)y+=n[m++],m=m%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),f-r<t)return;const C=p&&f-p;return C?Math.round(y*1e3/C):void 0}}function Cc(e,t){let n=0;const o=sm(50,250);return s=>{const i=s.loaded,r=s.lengthComputable?s.total:void 0,l=i-n,d=o(l),f=i<=r;n=i;const p={loaded:i,total:r,progress:r?i/r:void 0,bytes:l,rate:d||void 0,estimated:d&&r&&f?(r-i)/d:void 0,event:s};p[t?"download":"upload"]=!0,e(p)}}const ai={http:Th,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,o){let s=e.data;const i=an.from(e.headers).normalize(),r=e.responseType;let l;function d(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}z.isFormData(s)&&(Xt.isStandardBrowserEnv||Xt.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let f=new XMLHttpRequest;if(e.auth){const C=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(C+":"+E))}const p=xc(e.baseURL,e.url);f.open(e.method.toUpperCase(),gc(p,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function m(){if(!f)return;const C=an.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),A={data:!r||r==="text"||r==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:C,config:e,request:f};Zh(function(V){n(V),d()},function(V){o(V),d()},A),f=null}if("onloadend"in f?f.onloadend=m:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(m)},f.onabort=function(){!f||(o(new je("Request aborted",je.ECONNABORTED,e,f)),f=null)},f.onerror=function(){o(new je("Network Error",je.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let E=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const A=e.transitional||yc;e.timeoutErrorMessage&&(E=e.timeoutErrorMessage),o(new je(E,A.clarifyTimeoutError?je.ETIMEDOUT:je.ECONNABORTED,e,f)),f=null},Xt.isStandardBrowserEnv){const C=(e.withCredentials||nm(p))&&e.xsrfCookieName&&Qh.read(e.xsrfCookieName);C&&i.set(e.xsrfHeaderName,C)}s===void 0&&i.setContentType(null),"setRequestHeader"in f&&z.forEach(i.toJSON(),function(E,A){f.setRequestHeader(A,E)}),z.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),r&&r!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",Cc(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",Cc(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=C=>{!f||(o(!C||C.type?new is(null,e,f):C),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const y=om(p);if(y&&Xt.protocols.indexOf(y)===-1){o(new je("Unsupported protocol "+y+":",je.ERR_BAD_REQUEST,e));return}f.send(s||null)})}};z.forEach(ai,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const im={getAdapter:e=>{e=z.isArray(e)?e:[e];const{length:t}=e;let n,o;for(let s=0;s<t&&(n=e[s],!(o=z.isString(n)?ai[n.toLowerCase()]:n));s++);if(!o)throw o===!1?new je(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(z.hasOwnProp(ai,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!z.isFunction(o))throw new TypeError("adapter is not a function");return o},adapters:ai};function qr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new is(null,e)}function $c(e){return qr(e),e.headers=an.from(e.headers),e.data=zr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),im.getAdapter(e.adapter||Hr.adapter)(e).then(function(o){return qr(e),o.data=zr.call(e,e.transformResponse,o),o.headers=an.from(o.headers),o},function(o){return _c(o)||(qr(e),o&&o.response&&(o.response.data=zr.call(e,e.transformResponse,o.response),o.response.headers=an.from(o.response.headers))),Promise.reject(o)})}const kc=e=>e instanceof an?e.toJSON():e;function Oo(e,t){t=t||{};const n={};function o(f,p,m){return z.isPlainObject(f)&&z.isPlainObject(p)?z.merge.call({caseless:m},f,p):z.isPlainObject(p)?z.merge({},p):z.isArray(p)?p.slice():p}function s(f,p,m){if(z.isUndefined(p)){if(!z.isUndefined(f))return o(void 0,f,m)}else return o(f,p,m)}function i(f,p){if(!z.isUndefined(p))return o(void 0,p)}function r(f,p){if(z.isUndefined(p)){if(!z.isUndefined(f))return o(void 0,f)}else return o(void 0,p)}function l(f,p,m){if(m in t)return o(f,p);if(m in e)return o(void 0,f)}const d={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:l,headers:(f,p)=>s(kc(f),kc(p),!0)};return z.forEach(Object.keys(e).concat(Object.keys(t)),function(p){const m=d[p]||s,y=m(e[p],t[p],p);z.isUndefined(y)&&m!==l||(n[p]=y)}),n}const Sc="1.3.3",Vr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Vr[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const Ec={};Vr.transitional=function(t,n,o){function s(i,r){return"[Axios v"+Sc+"] Transitional option '"+i+"'"+r+(o?". "+o:"")}return(i,r,l)=>{if(t===!1)throw new je(s(r," has been removed"+(n?" in "+n:"")),je.ERR_DEPRECATED);return n&&!Ec[r]&&(Ec[r]=!0,console.warn(s(r," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,r,l):!0}};function rm(e,t,n){if(typeof e!="object")throw new je("options must be an object",je.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let s=o.length;for(;s-- >0;){const i=o[s],r=t[i];if(r){const l=e[i],d=l===void 0||r(l,i,e);if(d!==!0)throw new je("option "+i+" must be "+d,je.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new je("Unknown option "+i,je.ERR_BAD_OPTION)}}const Wr={assertOptions:rm,validators:Vr},An=Wr.validators;class li{constructor(t){this.defaults=t,this.interceptors={request:new wc,response:new wc}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Oo(this.defaults,n);const{transitional:o,paramsSerializer:s,headers:i}=n;o!==void 0&&Wr.assertOptions(o,{silentJSONParsing:An.transitional(An.boolean),forcedJSONParsing:An.transitional(An.boolean),clarifyTimeoutError:An.transitional(An.boolean)},!1),s!==void 0&&Wr.assertOptions(s,{encode:An.function,serialize:An.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r;r=i&&z.merge(i.common,i[n.method]),r&&z.forEach(["delete","get","head","post","put","patch","common"],E=>{delete i[E]}),n.headers=an.concat(r,i);const l=[];let d=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(n)===!1||(d=d&&A.synchronous,l.unshift(A.fulfilled,A.rejected))});const f=[];this.interceptors.response.forEach(function(A){f.push(A.fulfilled,A.rejected)});let p,m=0,y;if(!d){const E=[$c.bind(this),void 0];for(E.unshift.apply(E,l),E.push.apply(E,f),y=E.length,p=Promise.resolve(n);m<y;)p=p.then(E[m++],E[m++]);return p}y=l.length;let C=n;for(m=0;m<y;){const E=l[m++],A=l[m++];try{C=E(C)}catch(N){A.call(this,N);break}}try{p=$c.call(this,C)}catch(E){return Promise.reject(E)}for(m=0,y=f.length;m<y;)p=p.then(f[m++],f[m++]);return p}getUri(t){t=Oo(this.defaults,t);const n=xc(t.baseURL,t.url);return gc(n,t.params,t.paramsSerializer)}}z.forEach(["delete","get","head","options"],function(t){li.prototype[t]=function(n,o){return this.request(Oo(o||{},{method:t,url:n,data:(o||{}).data}))}}),z.forEach(["post","put","patch"],function(t){function n(o){return function(i,r,l){return this.request(Oo(l||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}li.prototype[t]=n(),li.prototype[t+"Form"]=n(!0)});const ci=li;class Kr{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const o=this;this.promise.then(s=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](s);o._listeners=null}),this.promise.then=s=>{let i;const r=new Promise(l=>{o.subscribe(l),i=l}).then(s);return r.cancel=function(){o.unsubscribe(i)},r},t(function(i,r,l){o.reason||(o.reason=new is(i,r,l),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 Kr(function(s){t=s}),cancel:t}}}const am=Kr;function lm(e){return function(n){return e.apply(null,n)}}function cm(e){return z.isObject(e)&&e.isAxiosError===!0}const Gr={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(Gr).forEach(([e,t])=>{Gr[t]=e});const um=Gr;function Ac(e){const t=new ci(e),n=Ql(ci.prototype.request,t);return z.extend(n,ci.prototype,t,{allOwnKeys:!0}),z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Ac(Oo(e,s))},n}const ot=Ac(Hr);ot.Axios=ci,ot.CanceledError=is,ot.CancelToken=am,ot.isCancel=_c,ot.VERSION=Sc,ot.toFormData=oi,ot.AxiosError=je,ot.Cancel=ot.CanceledError,ot.all=function(t){return Promise.all(t)},ot.spread=lm,ot.isAxiosError=cm,ot.mergeConfig=Oo,ot.AxiosHeaders=an,ot.formToJSON=e=>bc(z.isHTMLForm(e)?new FormData(e):e),ot.HttpStatusCode=um,ot.default=ot;const Ft=ot,{Axios:NE,AxiosError:RE,CanceledError:jE,isCancel:FE,CancelToken:HE,VERSION:UE,all:zE,Cancel:qE,isAxiosError:VE,spread:WE,toFormData:dm,AxiosHeaders:KE,HttpStatusCode:GE,formToJSON:JE,mergeConfig:YE}=Ft;class fm extends Error{}class Jr extends fm{constructor(){super(...arguments);$e(this,"message","搜索失败!")}}class Pc extends Jr{constructor(){super(...arguments);$e(this,"message","搜索请求响应内容为空!")}}class st{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=st.hexChars,o=st.hexOut;let s,i,r,l;for(l=0;l<4;l+=1)for(i=l*8,s=t[l],r=0;r<8;r+=2)o[i+1+r]=n.charAt(s&15),s>>>=4,o[i+0+r]=n.charAt(s&15),s>>>=4;return o.join("")}static _md5cycle(t,n){let o=t[0],s=t[1],i=t[2],r=t[3];o+=(s&i|~s&r)+n[0]-680876936|0,o=(o<<7|o>>>25)+s|0,r+=(o&s|~o&i)+n[1]-389564586|0,r=(r<<12|r>>>20)+o|0,i+=(r&o|~r&s)+n[2]+606105819|0,i=(i<<17|i>>>15)+r|0,s+=(i&r|~i&o)+n[3]-1044525330|0,s=(s<<22|s>>>10)+i|0,o+=(s&i|~s&r)+n[4]-176418897|0,o=(o<<7|o>>>25)+s|0,r+=(o&s|~o&i)+n[5]+1200080426|0,r=(r<<12|r>>>20)+o|0,i+=(r&o|~r&s)+n[6]-1473231341|0,i=(i<<17|i>>>15)+r|0,s+=(i&r|~i&o)+n[7]-45705983|0,s=(s<<22|s>>>10)+i|0,o+=(s&i|~s&r)+n[8]+1770035416|0,o=(o<<7|o>>>25)+s|0,r+=(o&s|~o&i)+n[9]-1958414417|0,r=(r<<12|r>>>20)+o|0,i+=(r&o|~r&s)+n[10]-42063|0,i=(i<<17|i>>>15)+r|0,s+=(i&r|~i&o)+n[11]-1990404162|0,s=(s<<22|s>>>10)+i|0,o+=(s&i|~s&r)+n[12]+1804603682|0,o=(o<<7|o>>>25)+s|0,r+=(o&s|~o&i)+n[13]-40341101|0,r=(r<<12|r>>>20)+o|0,i+=(r&o|~r&s)+n[14]-1502002290|0,i=(i<<17|i>>>15)+r|0,s+=(i&r|~i&o)+n[15]+1236535329|0,s=(s<<22|s>>>10)+i|0,o+=(s&r|i&~r)+n[1]-165796510|0,o=(o<<5|o>>>27)+s|0,r+=(o&i|s&~i)+n[6]-1069501632|0,r=(r<<9|r>>>23)+o|0,i+=(r&s|o&~s)+n[11]+643717713|0,i=(i<<14|i>>>18)+r|0,s+=(i&o|r&~o)+n[0]-373897302|0,s=(s<<20|s>>>12)+i|0,o+=(s&r|i&~r)+n[5]-701558691|0,o=(o<<5|o>>>27)+s|0,r+=(o&i|s&~i)+n[10]+38016083|0,r=(r<<9|r>>>23)+o|0,i+=(r&s|o&~s)+n[15]-660478335|0,i=(i<<14|i>>>18)+r|0,s+=(i&o|r&~o)+n[4]-405537848|0,s=(s<<20|s>>>12)+i|0,o+=(s&r|i&~r)+n[9]+568446438|0,o=(o<<5|o>>>27)+s|0,r+=(o&i|s&~i)+n[14]-1019803690|0,r=(r<<9|r>>>23)+o|0,i+=(r&s|o&~s)+n[3]-187363961|0,i=(i<<14|i>>>18)+r|0,s+=(i&o|r&~o)+n[8]+1163531501|0,s=(s<<20|s>>>12)+i|0,o+=(s&r|i&~r)+n[13]-1444681467|0,o=(o<<5|o>>>27)+s|0,r+=(o&i|s&~i)+n[2]-51403784|0,r=(r<<9|r>>>23)+o|0,i+=(r&s|o&~s)+n[7]+1735328473|0,i=(i<<14|i>>>18)+r|0,s+=(i&o|r&~o)+n[12]-1926607734|0,s=(s<<20|s>>>12)+i|0,o+=(s^i^r)+n[5]-378558|0,o=(o<<4|o>>>28)+s|0,r+=(o^s^i)+n[8]-2022574463|0,r=(r<<11|r>>>21)+o|0,i+=(r^o^s)+n[11]+1839030562|0,i=(i<<16|i>>>16)+r|0,s+=(i^r^o)+n[14]-35309556|0,s=(s<<23|s>>>9)+i|0,o+=(s^i^r)+n[1]-1530992060|0,o=(o<<4|o>>>28)+s|0,r+=(o^s^i)+n[4]+1272893353|0,r=(r<<11|r>>>21)+o|0,i+=(r^o^s)+n[7]-155497632|0,i=(i<<16|i>>>16)+r|0,s+=(i^r^o)+n[10]-1094730640|0,s=(s<<23|s>>>9)+i|0,o+=(s^i^r)+n[13]+681279174|0,o=(o<<4|o>>>28)+s|0,r+=(o^s^i)+n[0]-358537222|0,r=(r<<11|r>>>21)+o|0,i+=(r^o^s)+n[3]-722521979|0,i=(i<<16|i>>>16)+r|0,s+=(i^r^o)+n[6]+76029189|0,s=(s<<23|s>>>9)+i|0,o+=(s^i^r)+n[9]-640364487|0,o=(o<<4|o>>>28)+s|0,r+=(o^s^i)+n[12]-421815835|0,r=(r<<11|r>>>21)+o|0,i+=(r^o^s)+n[15]+530742520|0,i=(i<<16|i>>>16)+r|0,s+=(i^r^o)+n[2]-995338651|0,s=(s<<23|s>>>9)+i|0,o+=(i^(s|~r))+n[0]-198630844|0,o=(o<<6|o>>>26)+s|0,r+=(s^(o|~i))+n[7]+1126891415|0,r=(r<<10|r>>>22)+o|0,i+=(o^(r|~s))+n[14]-1416354905|0,i=(i<<15|i>>>17)+r|0,s+=(r^(i|~o))+n[5]-57434055|0,s=(s<<21|s>>>11)+i|0,o+=(i^(s|~r))+n[12]+1700485571|0,o=(o<<6|o>>>26)+s|0,r+=(s^(o|~i))+n[3]-1894986606|0,r=(r<<10|r>>>22)+o|0,i+=(o^(r|~s))+n[10]-1051523|0,i=(i<<15|i>>>17)+r|0,s+=(r^(i|~o))+n[1]-2054922799|0,s=(s<<21|s>>>11)+i|0,o+=(i^(s|~r))+n[8]+1873313359|0,o=(o<<6|o>>>26)+s|0,r+=(s^(o|~i))+n[15]-30611744|0,r=(r<<10|r>>>22)+o|0,i+=(o^(r|~s))+n[6]-1560198380|0,i=(i<<15|i>>>17)+r|0,s+=(r^(i|~o))+n[13]+1309151649|0,s=(s<<21|s>>>11)+i|0,o+=(i^(s|~r))+n[4]-145523070|0,o=(o<<6|o>>>26)+s|0,r+=(s^(o|~i))+n[11]-1120210379|0,r=(r<<10|r>>>22)+o|0,i+=(o^(r|~s))+n[2]+718787259|0,i=(i<<15|i>>>17)+r|0,s+=(r^(i|~o))+n[9]-343485551|0,s=(s<<21|s>>>11)+i|0,t[0]=o+t[0]|0,t[1]=s+t[1]|0,t[2]=i+t[2]|0,t[3]=r+t[3]|0}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(st.stateIdentity),this}appendStr(t){const n=this._buffer8,o=this._buffer32;let s=this._bufferLength,i,r;for(r=0;r<t.length;r+=1){if(i=t.charCodeAt(r),i<128)n[s++]=i;else if(i<2048)n[s++]=(i>>>6)+192,n[s++]=i&63|128;else if(i<55296||i>56319)n[s++]=(i>>>12)+224,n[s++]=i>>>6&63|128,n[s++]=i&63|128;else{if(i=(i-55296)*1024+(t.charCodeAt(++r)-56320)+65536,i>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");n[s++]=(i>>>18)+240,n[s++]=i>>>12&63|128,n[s++]=i>>>6&63|128,n[s++]=i&63|128}s>=64&&(this._dataLength+=64,st._md5cycle(this._state,o),s-=64,o[0]=o[16])}return this._bufferLength=s,this}appendAsciiStr(t){const n=this._buffer8,o=this._buffer32;let s=this._bufferLength,i,r=0;for(;;){for(i=Math.min(t.length-r,64-s);i--;)n[s++]=t.charCodeAt(r++);if(s<64)break;this._dataLength+=64,st._md5cycle(this._state,o),s=0}return this._bufferLength=s,this}appendByteArray(t){const n=this._buffer8,o=this._buffer32;let s=this._bufferLength,i,r=0;for(;;){for(i=Math.min(t.length-r,64-s);i--;)n[s++]=t[r++];if(s<64)break;this._dataLength+=64,st._md5cycle(this._state,o),s=0}return this._bufferLength=s,this}getState(){const t=this._state;return{buffer:String.fromCharCode.apply(null,Array.from(this._buffer8)),buflen:this._bufferLength,length:this._dataLength,state:[t[0],t[1],t[2],t[3]]}}setState(t){const n=t.buffer,o=t.state,s=this._state;let i;for(this._dataLength=t.length,this._bufferLength=t.buflen,s[0]=o[0],s[1]=o[1],s[2]=o[2],s[3]=o[3],i=0;i<n.length;i+=1)this._buffer8[i]=n.charCodeAt(i)}end(t=!1){const n=this._bufferLength,o=this._buffer8,s=this._buffer32,i=(n>>2)+1;this._dataLength+=n;const r=this._dataLength*8;if(o[n]=128,o[n+1]=o[n+2]=o[n+3]=0,s.set(st.buffer32Identity.subarray(i),i),n>55&&(st._md5cycle(this._state,s),s.set(st.buffer32Identity)),r<=4294967295)s[14]=r;else{const l=r.toString(16).match(/(.*?)(.{0,8})$/);if(l===null)return;const d=parseInt(l[2],16),f=parseInt(l[1],16)||0;s[14]=d,s[15]=f}return st._md5cycle(this._state,s),t?this._state:st._hex(this._state)}}if(st.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),st.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),st.hexChars="0123456789abcdef",st.hexOut=[],st.onePassHasher=new st,st.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592")throw new Error("Md5 self test failed.");var pm={exports:{}};(function(e){var t=function(n){var o=1e7,s=7,i=9007199254740992,r=E(i),l="0123456789abcdefghijklmnopqrstuvwxyz",d=typeof BigInt=="function";function f(h,w,_,x){return typeof h>"u"?f[0]:typeof w<"u"?+w==10&&!_?j(h):H(h,w,_,x):j(h)}function p(h,w){this.value=h,this.sign=w,this.isSmall=!1}p.prototype=Object.create(f.prototype);function m(h){this.value=h,this.sign=h<0,this.isSmall=!0}m.prototype=Object.create(f.prototype);function y(h){this.value=h}y.prototype=Object.create(f.prototype);function C(h){return-i<h&&h<i}function E(h){return h<1e7?[h]:h<1e14?[h%1e7,Math.floor(h/1e7)]:[h%1e7,Math.floor(h/1e7)%1e7,Math.floor(h/1e14)]}function A(h){N(h);var w=h.length;if(w<4&&Ce(h,r)<0)switch(w){case 0:return 0;case 1:return h[0];case 2:return h[0]+h[1]*o;default:return h[0]+(h[1]+h[2]*o)*o}return h}function N(h){for(var w=h.length;h[--w]===0;);h.length=w+1}function V(h){for(var w=new Array(h),_=-1;++_<h;)w[_]=0;return w}function O(h){return h>0?Math.floor(h):Math.ceil(h)}function P(h,w){var _=h.length,x=w.length,I=new Array(_),k=0,F=o,U,Y;for(Y=0;Y<x;Y++)U=h[Y]+w[Y]+k,k=U>=F?1:0,I[Y]=U-k*F;for(;Y<_;)U=h[Y]+k,k=U===F?1:0,I[Y++]=U-k*F;return k>0&&I.push(k),I}function D(h,w){return h.length>=w.length?P(h,w):P(w,h)}function G(h,w){var _=h.length,x=new Array(_),I=o,k,F;for(F=0;F<_;F++)k=h[F]-I+w,w=Math.floor(k/I),x[F]=k-w*I,w+=1;for(;w>0;)x[F++]=w%I,w=Math.floor(w/I);return x}p.prototype.add=function(h){var w=j(h);if(this.sign!==w.sign)return this.subtract(w.negate());var _=this.value,x=w.value;return w.isSmall?new p(G(_,Math.abs(x)),this.sign):new p(D(_,x),this.sign)},p.prototype.plus=p.prototype.add,m.prototype.add=function(h){var w=j(h),_=this.value;if(_<0!==w.sign)return this.subtract(w.negate());var x=w.value;if(w.isSmall){if(C(_+x))return new m(_+x);x=E(Math.abs(x))}return new p(G(x,Math.abs(_)),_<0)},m.prototype.plus=m.prototype.add,y.prototype.add=function(h){return new y(this.value+j(h).value)},y.prototype.plus=y.prototype.add;function ee(h,w){var _=h.length,x=w.length,I=new Array(_),k=0,F=o,U,Y;for(U=0;U<x;U++)Y=h[U]-k-w[U],Y<0?(Y+=F,k=1):k=0,I[U]=Y;for(U=x;U<_;U++){if(Y=h[U]-k,Y<0)Y+=F;else{I[U++]=Y;break}I[U]=Y}for(;U<_;U++)I[U]=h[U];return N(I),I}function Oe(h,w,_){var x;return Ce(h,w)>=0?x=ee(h,w):(x=ee(w,h),_=!_),x=A(x),typeof x=="number"?(_&&(x=-x),new m(x)):new p(x,_)}function ke(h,w,_){var x=h.length,I=new Array(x),k=-w,F=o,U,Y;for(U=0;U<x;U++)Y=h[U]+k,k=Math.floor(Y/F),Y%=F,I[U]=Y<0?Y+F:Y;return I=A(I),typeof I=="number"?(_&&(I=-I),new m(I)):new p(I,_)}p.prototype.subtract=function(h){var w=j(h);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):Oe(_,x,this.sign)},p.prototype.minus=p.prototype.subtract,m.prototype.subtract=function(h){var w=j(h),_=this.value;if(_<0!==w.sign)return this.add(w.negate());var x=w.value;return w.isSmall?new m(_-x):ke(x,Math.abs(_),_>=0)},m.prototype.minus=m.prototype.subtract,y.prototype.subtract=function(h){return new y(this.value-j(h).value)},y.prototype.minus=y.prototype.subtract,p.prototype.negate=function(){return new p(this.value,!this.sign)},m.prototype.negate=function(){var h=this.sign,w=new m(-this.value);return w.sign=!h,w},y.prototype.negate=function(){return new y(-this.value)},p.prototype.abs=function(){return new p(this.value,!1)},m.prototype.abs=function(){return new m(Math.abs(this.value))},y.prototype.abs=function(){return new y(this.value>=0?this.value:-this.value)};function Se(h,w){var _=h.length,x=w.length,I=_+x,k=V(I),F=o,U,Y,_e,ye,ue;for(_e=0;_e<_;++_e){ye=h[_e];for(var Ne=0;Ne<x;++Ne)ue=w[Ne],U=ye*ue+k[_e+Ne],Y=Math.floor(U/F),k[_e+Ne]=U-Y*F,k[_e+Ne+1]+=Y}return N(k),k}function Te(h,w){var _=h.length,x=new Array(_),I=o,k=0,F,U;for(U=0;U<_;U++)F=h[U]*w+k,k=Math.floor(F/I),x[U]=F-k*I;for(;k>0;)x[U++]=k%I,k=Math.floor(k/I);return x}function he(h,w){for(var _=[];w-- >0;)_.push(0);return _.concat(h)}function se(h,w){var _=Math.max(h.length,w.length);if(_<=30)return Se(h,w);_=Math.ceil(_/2);var x=h.slice(_),I=h.slice(0,_),k=w.slice(_),F=w.slice(0,_),U=se(I,F),Y=se(x,k),_e=se(D(I,x),D(F,k)),ye=D(D(U,he(ee(ee(_e,U),Y),_)),he(Y,2*_));return N(ye),ye}function Ee(h,w){return-.012*h-.012*w+15e-6*h*w>0}p.prototype.multiply=function(h){var w=j(h),_=this.value,x=w.value,I=this.sign!==w.sign,k;if(w.isSmall){if(x===0)return f[0];if(x===1)return this;if(x===-1)return this.negate();if(k=Math.abs(x),k<o)return new p(Te(_,k),I);x=E(k)}return Ee(_.length,x.length)?new p(se(_,x),I):new p(Se(_,x),I)},p.prototype.times=p.prototype.multiply;function ie(h,w,_){return h<o?new p(Te(w,h),_):new p(Se(w,E(h)),_)}m.prototype._multiplyBySmall=function(h){return C(h.value*this.value)?new m(h.value*this.value):ie(Math.abs(h.value),E(Math.abs(this.value)),this.sign!==h.sign)},p.prototype._multiplyBySmall=function(h){return h.value===0?f[0]:h.value===1?this:h.value===-1?this.negate():ie(Math.abs(h.value),this.value,this.sign!==h.sign)},m.prototype.multiply=function(h){return j(h)._multiplyBySmall(this)},m.prototype.times=m.prototype.multiply,y.prototype.multiply=function(h){return new y(this.value*j(h).value)},y.prototype.times=y.prototype.multiply;function He(h){var w=h.length,_=V(w+w),x=o,I,k,F,U,Y;for(F=0;F<w;F++){U=h[F],k=0-U*U;for(var _e=F;_e<w;_e++)Y=h[_e],I=2*(U*Y)+_[F+_e]+k,k=Math.floor(I/x),_[F+_e]=I-k*x;_[F+w]=k}return N(_),_}p.prototype.square=function(){return new p(He(this.value),!1)},m.prototype.square=function(){var h=this.value*this.value;return C(h)?new m(h):new p(He(E(Math.abs(this.value))),!1)},y.prototype.square=function(h){return new y(this.value*this.value)};function B(h,w){var _=h.length,x=w.length,I=o,k=V(w.length),F=w[x-1],U=Math.ceil(I/(2*F)),Y=Te(h,U),_e=Te(w,U),ye,ue,Ne,xt,ht,qs,Vs;for(Y.length<=_&&Y.push(0),_e.push(0),F=_e[x-1],ue=_-x;ue>=0;ue--){for(ye=I-1,Y[ue+x]!==F&&(ye=Math.floor((Y[ue+x]*I+Y[ue+x-1])/F)),Ne=0,xt=0,qs=_e.length,ht=0;ht<qs;ht++)Ne+=ye*_e[ht],Vs=Math.floor(Ne/I),xt+=Y[ue+ht]-(Ne-Vs*I),Ne=Vs,xt<0?(Y[ue+ht]=xt+I,xt=-1):(Y[ue+ht]=xt,xt=0);for(;xt!==0;){for(ye-=1,Ne=0,ht=0;ht<qs;ht++)Ne+=Y[ue+ht]-I+_e[ht],Ne<0?(Y[ue+ht]=Ne+I,Ne=0):(Y[ue+ht]=Ne,Ne=1);xt+=Ne}k[ue]=ye}return Y=R(Y,U)[0],[A(k),A(Y)]}function J(h,w){for(var _=h.length,x=w.length,I=[],k=[],F=o,U,Y,_e,ye,ue;_;){if(k.unshift(h[--_]),N(k),Ce(k,w)<0){I.push(0);continue}Y=k.length,_e=k[Y-1]*F+k[Y-2],ye=w[x-1]*F+w[x-2],Y>x&&(_e=(_e+1)*F),U=Math.ceil(_e/ye);do{if(ue=Te(w,U),Ce(ue,k)<=0)break;U--}while(U);I.push(U),k=ee(k,ue)}return I.reverse(),[A(I),A(k)]}function R(h,w){var _=h.length,x=V(_),I=o,k,F,U,Y;for(U=0,k=_-1;k>=0;--k)Y=U*I+h[k],F=O(Y/w),U=Y-F*w,x[k]=F|0;return[x,U|0]}function de(h,w){var _,x=j(w);if(d)return[new y(h.value/x.value),new y(h.value%x.value)];var I=h.value,k=x.value,F;if(k===0)throw new Error("Cannot divide by zero");if(h.isSmall)return x.isSmall?[new m(O(I/k)),new m(I%k)]:[f[0],h];if(x.isSmall){if(k===1)return[h,f[0]];if(k==-1)return[h.negate(),f[0]];var U=Math.abs(k);if(U<o){_=R(I,U),F=A(_[0]);var Y=_[1];return h.sign&&(Y=-Y),typeof F=="number"?(h.sign!==x.sign&&(F=-F),[new m(F),new m(Y)]):[new p(F,h.sign!==x.sign),new m(Y)]}k=E(U)}var _e=Ce(I,k);if(_e===-1)return[f[0],h];if(_e===0)return[f[h.sign===x.sign?1:-1],f[0]];I.length+k.length<=200?_=B(I,k):_=J(I,k),F=_[0];var ye=h.sign!==x.sign,ue=_[1],Ne=h.sign;return typeof F=="number"?(ye&&(F=-F),F=new m(F)):F=new p(F,ye),typeof ue=="number"?(Ne&&(ue=-ue),ue=new m(ue)):ue=new p(ue,Ne),[F,ue]}p.prototype.divmod=function(h){var w=de(this,h);return{quotient:w[0],remainder:w[1]}},y.prototype.divmod=m.prototype.divmod=p.prototype.divmod,p.prototype.divide=function(h){return de(this,h)[0]},y.prototype.over=y.prototype.divide=function(h){return new y(this.value/j(h).value)},m.prototype.over=m.prototype.divide=p.prototype.over=p.prototype.divide,p.prototype.mod=function(h){return de(this,h)[1]},y.prototype.mod=y.prototype.remainder=function(h){return new y(this.value%j(h).value)},m.prototype.remainder=m.prototype.mod=p.prototype.remainder=p.prototype.mod,p.prototype.pow=function(h){var w=j(h),_=this.value,x=w.value,I,k,F;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&&C(I=Math.pow(_,x)))return new m(O(I));for(k=this,F=f[1];x&!0&&(F=F.times(k),--x),x!==0;)x/=2,k=k.square();return F},m.prototype.pow=p.prototype.pow,y.prototype.pow=function(h){var w=j(h),_=this.value,x=w.value,I=BigInt(0),k=BigInt(1),F=BigInt(2);if(x===I)return f[1];if(_===I)return f[0];if(_===k)return f[1];if(_===BigInt(-1))return w.isEven()?f[1]:f[-1];if(w.isNegative())return new y(I);for(var U=this,Y=f[1];(x&k)===k&&(Y=Y.times(U),--x),x!==I;)x/=F,U=U.square();return Y},p.prototype.modPow=function(h,w){if(h=j(h),w=j(w),w.isZero())throw new Error("Cannot take modPow with modulus 0");var _=f[1],x=this.mod(w);for(h.isNegative()&&(h=h.multiply(f[-1]),x=x.modInv(w));h.isPositive();){if(x.isZero())return f[0];h.isOdd()&&(_=_.multiply(x).mod(w)),h=h.divide(2),x=x.square().mod(w)}return _},y.prototype.modPow=m.prototype.modPow=p.prototype.modPow;function Ce(h,w){if(h.length!==w.length)return h.length>w.length?1:-1;for(var _=h.length-1;_>=0;_--)if(h[_]!==w[_])return h[_]>w[_]?1:-1;return 0}p.prototype.compareAbs=function(h){var w=j(h),_=this.value,x=w.value;return w.isSmall?1:Ce(_,x)},m.prototype.compareAbs=function(h){var w=j(h),_=Math.abs(this.value),x=w.value;return w.isSmall?(x=Math.abs(x),_===x?0:_>x?1:-1):-1},y.prototype.compareAbs=function(h){var w=this.value,_=j(h).value;return w=w>=0?w:-w,_=_>=0?_:-_,w===_?0:w>_?1:-1},p.prototype.compare=function(h){if(h===1/0)return-1;if(h===-1/0)return 1;var w=j(h),_=this.value,x=w.value;return this.sign!==w.sign?w.sign?1:-1:w.isSmall?this.sign?-1:1:Ce(_,x)*(this.sign?-1:1)},p.prototype.compareTo=p.prototype.compare,m.prototype.compare=function(h){if(h===1/0)return-1;if(h===-1/0)return 1;var w=j(h),_=this.value,x=w.value;return w.isSmall?_==x?0:_>x?1:-1:_<0!==w.sign?_<0?-1:1:_<0?1:-1},m.prototype.compareTo=m.prototype.compare,y.prototype.compare=function(h){if(h===1/0)return-1;if(h===-1/0)return 1;var w=this.value,_=j(h).value;return w===_?0:w>_?1:-1},y.prototype.compareTo=y.prototype.compare,p.prototype.equals=function(h){return this.compare(h)===0},y.prototype.eq=y.prototype.equals=m.prototype.eq=m.prototype.equals=p.prototype.eq=p.prototype.equals,p.prototype.notEquals=function(h){return this.compare(h)!==0},y.prototype.neq=y.prototype.notEquals=m.prototype.neq=m.prototype.notEquals=p.prototype.neq=p.prototype.notEquals,p.prototype.greater=function(h){return this.compare(h)>0},y.prototype.gt=y.prototype.greater=m.prototype.gt=m.prototype.greater=p.prototype.gt=p.prototype.greater,p.prototype.lesser=function(h){return this.compare(h)<0},y.prototype.lt=y.prototype.lesser=m.prototype.lt=m.prototype.lesser=p.prototype.lt=p.prototype.lesser,p.prototype.greaterOrEquals=function(h){return this.compare(h)>=0},y.prototype.geq=y.prototype.greaterOrEquals=m.prototype.geq=m.prototype.greaterOrEquals=p.prototype.geq=p.prototype.greaterOrEquals,p.prototype.lesserOrEquals=function(h){return this.compare(h)<=0},y.prototype.leq=y.prototype.lesserOrEquals=m.prototype.leq=m.prototype.lesserOrEquals=p.prototype.leq=p.prototype.lesserOrEquals,p.prototype.isEven=function(){return(this.value[0]&1)===0},m.prototype.isEven=function(){return(this.value&1)===0},y.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},p.prototype.isOdd=function(){return(this.value[0]&1)===1},m.prototype.isOdd=function(){return(this.value&1)===1},y.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},p.prototype.isPositive=function(){return!this.sign},m.prototype.isPositive=function(){return this.value>0},y.prototype.isPositive=m.prototype.isPositive,p.prototype.isNegative=function(){return this.sign},m.prototype.isNegative=function(){return this.value<0},y.prototype.isNegative=m.prototype.isNegative,p.prototype.isUnit=function(){return!1},m.prototype.isUnit=function(){return Math.abs(this.value)===1},y.prototype.isUnit=function(){return this.abs().value===BigInt(1)},p.prototype.isZero=function(){return!1},m.prototype.isZero=function(){return this.value===0},y.prototype.isZero=function(){return this.value===BigInt(0)},p.prototype.isDivisibleBy=function(h){var w=j(h);return w.isZero()?!1:w.isUnit()?!0:w.compareAbs(2)===0?this.isEven():this.mod(w).isZero()},y.prototype.isDivisibleBy=m.prototype.isDivisibleBy=p.prototype.isDivisibleBy;function Ie(h){var w=h.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 Xe(h,w){for(var _=h.prev(),x=_,I=0,k,F,U;x.isEven();)x=x.divide(2),I++;e:for(F=0;F<w.length;F++)if(!h.lesser(w[F])&&(U=t(w[F]).modPow(x,h),!(U.isUnit()||U.equals(_)))){for(k=I-1;k!=0;k--){if(U=U.square().mod(h),U.isUnit())return!1;if(U.equals(_))continue e}return!1}return!0}p.prototype.isPrime=function(h){var w=Ie(this);if(w!==n)return w;var _=this.abs(),x=_.bitLength();if(x<=64)return Xe(_,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var I=Math.log(2)*x.toJSNumber(),k=Math.ceil(h===!0?2*Math.pow(I,2):I),F=[],U=0;U<k;U++)F.push(t(U+2));return Xe(_,F)},y.prototype.isPrime=m.prototype.isPrime=p.prototype.isPrime,p.prototype.isProbablePrime=function(h,w){var _=Ie(this);if(_!==n)return _;for(var x=this.abs(),I=h===n?5:h,k=[],F=0;F<I;F++)k.push(t.randBetween(2,x.minus(2),w));return Xe(x,k)},y.prototype.isProbablePrime=m.prototype.isProbablePrime=p.prototype.isProbablePrime,p.prototype.modInv=function(h){for(var w=t.zero,_=t.one,x=j(h),I=this.abs(),k,F,U;!I.isZero();)k=x.divide(I),F=w,U=x,w=_,x=I,_=F.subtract(k.multiply(_)),I=U.subtract(k.multiply(I));if(!x.isUnit())throw new Error(this.toString()+" and "+h.toString()+" are not co-prime");return w.compare(0)===-1&&(w=w.add(h)),this.isNegative()?w.negate():w},y.prototype.modInv=m.prototype.modInv=p.prototype.modInv,p.prototype.next=function(){var h=this.value;return this.sign?ke(h,1,this.sign):new p(G(h,1),this.sign)},m.prototype.next=function(){var h=this.value;return h+1<i?new m(h+1):new p(r,!1)},y.prototype.next=function(){return new y(this.value+BigInt(1))},p.prototype.prev=function(){var h=this.value;return this.sign?new p(G(h,1),!0):ke(h,1,this.sign)},m.prototype.prev=function(){var h=this.value;return h-1>-i?new m(h-1):new p(r,!0)},y.prototype.prev=function(){return new y(this.value-BigInt(1))};for(var Ze=[1];2*Ze[Ze.length-1]<=o;)Ze.push(2*Ze[Ze.length-1]);var It=Ze.length,Tt=Ze[It-1];function xn(h){return Math.abs(h)<=o}p.prototype.shiftLeft=function(h){var w=j(h).toJSNumber();if(!xn(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>=It;)_=_.multiply(Tt),w-=It-1;return _.multiply(Ze[w])},y.prototype.shiftLeft=m.prototype.shiftLeft=p.prototype.shiftLeft,p.prototype.shiftRight=function(h){var w,_=j(h).toJSNumber();if(!xn(_))throw new Error(String(_)+" is too large for shifting.");if(_<0)return this.shiftLeft(-_);for(var x=this;_>=It;){if(x.isZero()||x.isNegative()&&x.isUnit())return x;w=de(x,Tt),x=w[1].isNegative()?w[0].prev():w[0],_-=It-1}return w=de(x,Ze[_]),w[1].isNegative()?w[0].prev():w[0]},y.prototype.shiftRight=m.prototype.shiftRight=p.prototype.shiftRight;function vt(h,w,_){w=j(w);for(var x=h.isNegative(),I=w.isNegative(),k=x?h.not():h,F=I?w.not():w,U=0,Y=0,_e=null,ye=null,ue=[];!k.isZero()||!F.isZero();)_e=de(k,Tt),U=_e[1].toJSNumber(),x&&(U=Tt-1-U),ye=de(F,Tt),Y=ye[1].toJSNumber(),I&&(Y=Tt-1-Y),k=_e[0],F=ye[0],ue.push(_(U,Y));for(var Ne=_(x?1:0,I?1:0)!==0?t(-1):t(0),xt=ue.length-1;xt>=0;xt-=1)Ne=Ne.multiply(Tt).add(t(ue[xt]));return Ne}p.prototype.not=function(){return this.negate().prev()},y.prototype.not=m.prototype.not=p.prototype.not,p.prototype.and=function(h){return vt(this,h,function(w,_){return w&_})},y.prototype.and=m.prototype.and=p.prototype.and,p.prototype.or=function(h){return vt(this,h,function(w,_){return w|_})},y.prototype.or=m.prototype.or=p.prototype.or,p.prototype.xor=function(h){return vt(this,h,function(w,_){return w^_})},y.prototype.xor=m.prototype.xor=p.prototype.xor;var _t=1<<30,ct=(o&-o)*(o&-o)|_t;function et(h){var w=h.value,_=typeof w=="number"?w|_t:typeof w=="bigint"?w|BigInt(_t):w[0]+w[1]*o|ct;return _&-_}function Jn(h,w){if(w.compareTo(h)<=0){var _=Jn(h,w.square(w)),x=_.p,I=_.e,k=x.multiply(w);return k.compareTo(h)<=0?{p:k,e:I*2+1}:{p:x,e:I*2}}return{p:t(1),e:0}}p.prototype.bitLength=function(){var h=this;return h.compareTo(t(0))<0&&(h=h.negate().subtract(t(1))),h.compareTo(t(0))===0?t(0):t(Jn(h,t(2)).e).add(t(1))},y.prototype.bitLength=m.prototype.bitLength=p.prototype.bitLength;function at(h,w){return h=j(h),w=j(w),h.greater(w)?h:w}function b(h,w){return h=j(h),w=j(w),h.lesser(w)?h:w}function S(h,w){if(h=j(h).abs(),w=j(w).abs(),h.equals(w))return h;if(h.isZero())return w;if(w.isZero())return h;for(var _=f[1],x,I;h.isEven()&&w.isEven();)x=b(et(h),et(w)),h=h.divide(x),w=w.divide(x),_=_.multiply(x);for(;h.isEven();)h=h.divide(et(h));do{for(;w.isEven();)w=w.divide(et(w));h.greater(w)&&(I=w,w=h,h=I),w=w.subtract(h)}while(!w.isZero());return _.isUnit()?h:h.multiply(_)}function L(h,w){return h=j(h).abs(),w=j(w).abs(),h.divide(S(h,w)).multiply(w)}function T(h,w,_){h=j(h),w=j(w);var x=_||Math.random,I=b(h,w),k=at(h,w),F=k.subtract(I).add(1);if(F.isSmall)return I.add(Math.floor(x()*F));for(var U=q(F,o).value,Y=[],_e=!0,ye=0;ye<U.length;ye++){var ue=_e?U[ye]+(ye+1<U.length?U[ye+1]/o:0):o,Ne=O(x()*ue);Y.push(Ne),Ne<U[ye]&&(_e=!1)}return I.add(f.fromArray(Y,o,!1))}var H=function(h,w,_,x){_=_||l,h=String(h),x||(h=h.toLowerCase(),_=_.toLowerCase());var I=h.length,k,F=Math.abs(w),U={};for(k=0;k<_.length;k++)U[_[k]]=k;for(k=0;k<I;k++){var Y=h[k];if(Y!=="-"&&Y in U&&U[Y]>=F){if(Y==="1"&&F===1)continue;throw new Error(Y+" is not a valid digit in base "+w+".")}}w=j(w);var _e=[],ye=h[0]==="-";for(k=ye?1:0;k<h.length;k++){var Y=h[k];if(Y in U)_e.push(j(U[Y]));else if(Y==="<"){var ue=k;do k++;while(h[k]!==">"&&k<h.length);_e.push(j(h.slice(ue+1,k)))}else throw new Error(Y+" is not a valid character")}return X(_e,w,ye)};function X(h,w,_){var x=f[0],I=f[1],k;for(k=h.length-1;k>=0;k--)x=x.add(h[k].times(I)),I=I.times(w);return _?x.negate():x}function ne(h,w){return w=w||l,h<w.length?w[h]:"<"+h+">"}function q(h,w){if(w=t(w),w.isZero()){if(h.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(w.equals(-1)){if(h.isZero())return{value:[0],isNegative:!1};if(h.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-h.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var _=Array.apply(null,Array(h.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return _.unshift([1]),{value:[].concat.apply([],_),isNegative:!1}}var x=!1;if(h.isNegative()&&w.isPositive()&&(x=!0,h=h.abs()),w.isUnit())return h.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(h.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:x};for(var I=[],k=h,F;k.isNegative()||k.compareAbs(w)>=0;){F=k.divmod(w),k=F.quotient;var U=F.remainder;U.isNegative()&&(U=w.minus(U).abs(),k=k.next()),I.push(U.toJSNumber())}return I.push(k.toJSNumber()),{value:I.reverse(),isNegative:x}}function K(h,w,_){var x=q(h,w);return(x.isNegative?"-":"")+x.value.map(function(I){return ne(I,_)}).join("")}p.prototype.toArray=function(h){return q(this,h)},m.prototype.toArray=function(h){return q(this,h)},y.prototype.toArray=function(h){return q(this,h)},p.prototype.toString=function(h,w){if(h===n&&(h=10),h!==10)return K(this,h,w);for(var _=this.value,x=_.length,I=String(_[--x]),k="0000000",F;--x>=0;)F=String(_[x]),I+=k.slice(F.length)+F;var U=this.sign?"-":"";return U+I},m.prototype.toString=function(h,w){return h===n&&(h=10),h!=10?K(this,h,w):String(this.value)},y.prototype.toString=m.prototype.toString,y.prototype.toJSON=p.prototype.toJSON=m.prototype.toJSON=function(){return this.toString()},p.prototype.valueOf=function(){return parseInt(this.toString(),10)},p.prototype.toJSNumber=p.prototype.valueOf,m.prototype.valueOf=function(){return this.value},m.prototype.toJSNumber=m.prototype.valueOf,y.prototype.valueOf=y.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function W(h){if(C(+h)){var w=+h;if(w===O(w))return d?new y(BigInt(w)):new m(w);throw new Error("Invalid integer: "+h)}var _=h[0]==="-";_&&(h=h.slice(1));var x=h.split(/e/i);if(x.length>2)throw new Error("Invalid integer: "+x.join("e"));if(x.length===2){var I=x[1];if(I[0]==="+"&&(I=I.slice(1)),I=+I,I!==O(I)||!C(I))throw new Error("Invalid integer: "+I+" is not a valid exponent.");var k=x[0],F=k.indexOf(".");if(F>=0&&(I-=k.length-F-1,k=k.slice(0,F)+k.slice(F+1)),I<0)throw new Error("Cannot include negative exponent part for integers");k+=new Array(I+1).join("0"),h=k}var U=/^([0-9][0-9]*)$/.test(h);if(!U)throw new Error("Invalid integer: "+h);if(d)return new y(BigInt(_?"-"+h:h));for(var Y=[],_e=h.length,ye=s,ue=_e-ye;_e>0;)Y.push(+h.slice(ue,_e)),ue-=ye,ue<0&&(ue=0),_e-=ye;return N(Y),new p(Y,_)}function ae(h){if(d)return new y(BigInt(h));if(C(h)){if(h!==O(h))throw new Error(h+" is not an integer.");return new m(h)}return W(h.toString())}function j(h){return typeof h=="number"?ae(h):typeof h=="string"?W(h):typeof h=="bigint"?new y(h):h}for(var le=0;le<1e3;le++)f[le]=j(le),le>0&&(f[-le]=j(-le));return f.one=f[1],f.zero=f[0],f.minusOne=f[-1],f.max=at,f.min=b,f.gcd=S,f.lcm=L,f.isInstance=function(h){return h instanceof p||h instanceof m||h instanceof y},f.randBetween=T,f.fromArray=function(h,w,_){return X(h.map(j),j(w||10),_)},f}();e.hasOwnProperty("exports")&&(e.exports=t)})(pm);async function Oc(e,t,n){const o=new URLSearchParams({page:e.toString(),uid:n.toString(),sign:t,time:es().toString()});return(await Ft.post("https://115.com/web/lixian/?ct=lixian&ac=task_lists",o,{withCredentials:!0,timeout:6e4})).data}async function Ic(){return(await Ft.get(`https://115.com/?ct=offline&ac=space&_=${Date.now()}`,{timeout:3e4,withCredentials:!0})).data}async function Tc(){const t=(await Ft.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 hm(e){const t=ql(e),o=(await Ft.get("https://webapi.115.com/files?"+t,{timeout:12e4,withCredentials:!0})).data;if(o.state)return o;throw new Error(o.error)}async function Lc(e,t=500){let n=[],o=0;for(;;){e.offset=o;const s=await hm(e);if(!s.data||!s.data.length||(n=[...n,...s.data],o+=e.limit,o>=s.count))break;await Yt(t)}return n}async function mm(e){const t=ql(e),n=await Ft.get("https://webapi.115.com/files/search?"+t,{timeout:12e4,withCredentials:!0});if(n.data==="")throw new Pc;const o=n.data;if(o.state)return o;throw new Jr(o.error)}async function gm(e,t=500,n=!1){let o=[],s=0,i=e.limit;const r=1e4,l=115,d=r-r%i;let f=i;for(;;){if(n){if(s>=d&&s<r){const m=r-d;f=Math.min(m,f)}s>=r&&(f=l)}e.offset=s,e.limit=f;const p=await mm(e);if(!p.data||!p.data.length||(o=[...o,...p.data],s+=f,s>=p.count))break;await Yt(t)}return o}async function wm(e,t){const n=new URLSearchParams({pid:e,ignore_warn:"1"});return t.forEach((s,i)=>{n.append(`fid[${i}]`,s)}),(await Ft.post("https://webapi.115.com/rb/delete",n,{timeout:12e4,withCredentials:!0})).data}async function Mc(e,t,n,o){let s=0,i=0;for(;;){const r=t.slice(s,s+n);if((await wm(e,r)).state&&(i+=r.length),s+=n,s>=t.length)break;await Yt(o)}return i}async function ym(e,t){const n=new URLSearchParams({pid:e,cname:t});return(await Ft.post("https://webapi.115.com/files/add",n,{timeout:12e4,withCredentials:!0})).data}async function bm(e,t){const n=new URLSearchParams({pid:e});return t.forEach((s,i)=>{n.append(`fid[${i}]`,s)}),(await Ft.post("https://webapi.115.com/files/move",n,{timeout:12e4,withCredentials:!0})).data}async function rs(e){const t=new URLSearchParams({cid:e});return(await Ft.get("https://webapi.115.com/category/get?"+t.toString(),{timeout:12e4,withCredentials:!0})).data}async function Yr(e,t,n,o){const s={uid:o.toString(),sign:t.sign,time:es().toString()};n&&(s.flag="1");const i=dm(s);return e.forEach((l,d)=>{i.append(`hash[${d}]`,l)}),(await Ft.post("https://115.com/web/lixian/?ct=lixian&ac=task_del",i,{timeout:12e4,withCredentials:!0})).data}async function vm(e){if(!(await rs(e)).play_long)throw new Error("该目录下没有可以播放的媒体文件![by_attr]");const o=(await Lc(Zl({cid:e,limit:1150}))).find(s=>s.play_long&&s.play_long>0);if(!o)throw new Error("该目录下没有可以播放的媒体文件![by_files]");return o}async function Zt(e=!0){const t=as().GetCurWangPanCid();return!t&&e?(as().Core.MinMessage.Show({text:'不支持"根目录"!',timeout:1e3}),""):t}async function _m(e,t){let n=$(`li.temp-el[cate_id="${e}"]`);if(!n.length){const o=`
<li class="selected temp-el" file_type="${0}">
<input type="checkbox" value="${e}"/>
<div class="checkbox" menu="file_check_one"></div>
<div class="file-name-wrap">
<span class="file-name" rel="file_name">
<em>
<a class="name" href="javascript:;" cate="1" menu="open" aid="1" cid="${e}" rel="view_folder">
<span>名称</span>
</a>
</em>
</span>
</div>
</li>
`;n=$(o)}n.attr("title",t.file_name),n.find("a.name > span").text(t.file_name);for(let o in t){const s=typeof t[o];["string","number"].indexOf(s)>-1&&n.attr(o,t[o])}return n.attr("cate_id",e),n.attr("p_id",t.paths[t.paths.length-1].file_id),n}async function Mt(e){const t=e.attr("file_size"),n=e.attr("iv")==="1",o=await Pm(),s={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")||""};if(o){const i=e.find(".file-directory a[cid]");i.length&&(s.cid=i.attr("cid")||"")}else{const i=e.attr("p_id");i&&(s.cid=i)}return s}async function xm(e){const t=[];for(let n=0;n<e.length;n++){const o=await Cm(e[n]);t.push(o)}return t}async function Cm(e){var o;const t=!!e.fid,n={id:e.fid||e.cate_id,name:e.n,parentId:e.cid,sizeRaw:e.s,sizeDesc:e.s.toString(),sizeBytes:0,isFile:t,isDir:!t,isVideo:((o=e.iv)==null?void 0:o.toString())==="1"};return typeof e.s=="number"?n.sizeBytes=e.s:typeof e.s=="string"&&/^\d+$/.test(e.s)&&(n.sizeBytes=parseInt(e.s)),n.sizeDesc=Xs(n.sizeBytes||0),n}function as(){return unsafeWindow.TOP?unsafeWindow.TOP:unsafeWindow}function $m(){return unsafeWindow.top===unsafeWindow?unsafeWindow.Ext:unsafeWindow.top.Ext}async function km(e){return new Promise((t,n)=>{as().Core.DataAccess.Dir.GetDetail("1",e,o=>t(o))})}async function Sm(){const e=await Zt(),t=await km(e);return await _m(e,t)}async function ui(){return window.top!==window?$(document):$('iframe[name="wangpan"], .wrap-view iframe:eq(0)').contents()}async function Io(){return(await ui()).find(".list-contents, .list-thumb")}async function Bc(e){const t=await Io();return e?t.find("li.selected"):t.find("li")}async function To(e){const t=await Bc(e),n=[];for(let o=0;o<t.length;o++){const s=t.eq(o),i=await Mt(s);n.push(i)}return n}async function Em(){const e=await ui(),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 Am(){const e=await Zt();(await Io()).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 Zn(e=!1){const t=await Zt();if(!t)return null;const n=await Io(),o=await Sm();return e||o.hide(),n.find(`li[cate_id="${t}"]`).length||n.append(o),o}async function Xr(e,t,n){n&&await Am(),as().Core.FileMenu.DoEvent([e],t,null)}function Dc(e){return`https://115.com/?${new URLSearchParams({cid:e}).toString()}&offset=0&mode=wangpan`}async function Pm(e=location.href){return e.includes("ac=search")}function Zr(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 Nc(e){return`https://v.anxia.com/?${new URLSearchParams({pickcode:e,share_id:"0"}).toString()}`}async function Om(e){unsafeWindow.Main.ReInstance({type:e.type,offset:0,o:Xl.userPtime,asc:Yl.false,star:e.star,suffix:e.suffix})}async function Im(){return(await Io()).find("li.selected")}async function Rc(){const e=await Im();return e?await Mt(e):null}function Tm(e){return e.replace(/[/\\:*?"<>|]/g,"_")}async function di(e){const n=(await rs(e.fid||e.cate_id)).paths.slice(1).map(i=>i.file_name).join("/"),o=Tm(e.n);return`/${n}/${o}`.replace(/^[\/]+/g,"/")}async function jc(e){if(!location.search.includes("ac=search")||!e.enableInSearch)return;const n=(await Ao("#js_data_list"))[0],o=[{label:"移动",body:'<a href="javascript:;" menu="move" style=""><i class="icon-operate ifo-move" menu="move"></i><span menu="move">移动</span></a>',enabled:!0},{label:"重命名",body:'<a href="javascript:;" menu="edit_name" style=""><i class="icon-operate ifo-rename" menu="edit_name"></i><span menu="edit_name">重命名</span></a>',enabled:!0},{label:"删除",body:'<a href="javascript:;" menu="delete" style=""><i class="icon-operate ifo-remove" menu="delete"></i><span menu="delete">删除</span></a>',enabled:!0},{label:"属性",body:'<a href="javascript:;" menu="attribute" style=""><i class="icon-operate ifo-property" menu="attribute"></i><span menu="attribute">属性</span></a>',enabled:!0}],s=l=>{let d="";for(const f of l)!f.enabled||(d+=f.body);return d},i=()=>{const l="ce-menu-init",d=document.querySelectorAll(`li[rel="item"]:not(.${l})`),f=s(o);for(let p=0;p<d.length;p++){const m=d[p];if(m.querySelector(".file-opr"))continue;const y=document.createElement("div");y.className="file-opr",y.setAttribute("rel","menu"),y.innerHTML=f,m.classList.add(l),m.appendChild(y)}};i(),new MutationObserver(async([l])=>{l.type==="childList"&&i()}).observe(n,{childList:!0})}async function Lm(e){if(!e.hideSelectionMenuLabel)return;const n=(await Ao("#js_operate_box"))[0];new MutationObserver(async([s])=>{if(s.type==="childList"){const i=n.querySelectorAll("li[menu]");for(let r=0;r<i.length;r++){const l=i[r],d=l.textContent;l.setAttribute("title",d||"")}}}).observe(n,{childList:!0}),n.classList.add("only-icon")}async function Mm(e,t){const n=[];for(const o of t){const s=Or(e,{key:`_ce_s_${o.key}`,label:o.label,icon:o.icon,title:o.memo,onClick:async(i,r)=>{r.stopPropagation(),r.preventDefault();try{const l=$(r.target).closest("li"),d=await Mt(l),f=await Tr(),p=await ea(d,o,f);if(console.log("[search url]",p),!p)throw new Error("无法获取有效的搜索链接!");qp(p,{active:!o.openInBackground})}catch(l){console.error(l),ce({title:"搜索失败",text:l.toString(),icon:"error"})}}});n.push(s)}return n}async function Qr(e,t){if(console.log("[playDirOnAnxia]",e,t),!t)try{ce({title:"正在查找可播放的文件...",text:"请稍等...",icon:"info"}),fe.showLoading(),t=await vm(e),console.log("[playDirOnAnxia] file",t)}catch(o){console.error(o),ce({title:"播放失败",text:o.toString(),icon:"error"});return}t||ce({title:"播放失败",text:"没有在该目录下找到可播放的文件![file_null]",icon:"error"});const n=Nc(t.pc);window.open(n,"_blank","noopener noreferrer")}async function Bm(e,t){const n=[];for(const o of t){const s=Or(e,{key:`_ce_p_${o.key}`,label:o.label,icon:o.icon,title:o.memo,onClick:async(i,r)=>{r.stopPropagation(),r.preventDefault();try{const l=$(r.target).closest("li"),d=await Mt(l),f=await Tr(),p=await ea(d,o,f);if(d.cate_id&&p.includes("v.anxia.com")){Qr(d.cate_id);return}if(console.log("[play url]",p),!p)throw new Error("无法获取有效的播放链接!");window.open(p,"_blank","noopener noreferrer")}catch(l){console.error(l),ce({title:"播放失败",text:l.toString(),icon:"error"})}}});n.push(s)}return n}var Ot=(e=>(e[e.full=0]="full",e[e.pure=1]="pure",e[e.fullUnique=2]="fullUnique",e[e.pureUnique=3]="pureUnique",e))(Ot||{});async function fi(e,t){if(t===0)return e;if(t===2)return Array.from(new Set(e));const n=[];for(const o of e){const s=o.replace(/\.[^.]+$/,"");t===1?n.push(s):t===3&&(n.includes(s)||n.push(s))}return n}var Ht=(e=>(e[e.unixPath=0]="unixPath",e[e.winPath=1]="winPath",e[e.unixParentPath=2]="unixParentPath",e[e.winParentPath=3]="winParentPath",e))(Ht||{});async function pi(e,t,n){const o=n===1||n===3;let i=n===2||n===3?t.replace(/\/[^/]+$/,""):t;return o&&(i=i.replace(/\//g,"\\")),i}async function Dm(e){return async(t,n)=>{const o=await Zt(),s=await ui(),i=e?"li[file_id].selected":"li[file_id]",r=s[0].querySelectorAll(i);if(!r.length){ce({title:"文件移动到同名目录",text:e?"当前目录没有选中文件":"当前目录没有文件",icon:"warning"});return}const{value:l}=await fe.fire({title:"文件移动到同名目录",text:e?`当前已选中${r.length}个文件,是否继续?`:`当前目录共有${r.length}个文件,是否继续?`,icon:"warning",showCancelButton:!0,confirmButtonText:"继续",cancelButtonText:"取消"});if(!!l){fe.fire({title:"文件移动到同名目录",html:"正在处理...",didOpen:()=>{fe.showLoading()}});for(let d=0;d<r.length;d++){const f=r[d],p=await Mt($(f));if(!p.fid)continue;const m=p.n,y=m.replace(/\.[^\.]+$/,""),C=`${d+1} / ${r.length} - `+Math.round(d/r.length*100)+"%";fe.update({html:`${C} 正在为文件「${m}」创建目录「${y}」`});const E=await ym(o,y);fe.update({html:`${C} 正在移动文件「${m}」到目录「${y}」`}),await bm(E.cid,[p.fid]),await Yt(500)}fe.hideLoading(),fe.update({html:"处理完成",icon:"success"})}}}const Nm=[{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 ea(e,t,n){var d;let o=t.url;const s={dir_id:"cid",file_id:"fid",pick_code:"pc",full_name:"n",file_suffix:"ico",file_hash:"sha",file_size:"s"},i=!!e.fid,r=/{(\w+)(:\w+(:\w+)?)?}/g,l=o.match(r);if(l){const f=["file_path","file_dir","clouddrive_stream_url","clouddrive_down_url","clouddrive_playlist_url"];for(const p of l){const m=p.replace(/[{}]/g,"").split(":")[0],y=p.replace(/[{}]/g,"").replace(/^[^:]+:/,"");let C=((d=e[s[m]])==null?void 0:d.toString())||"",E="";switch(f.includes(m)&&(E=await di(e)),m){case"pure_name":i?C=e.n.replace(/\.[^.]+$/,""):C=e.n;break;case"file_path":C=E;break;case"file_dir":C=E.replace(/\/[^/]+$/,"");break;case"clouddrive_stream_url":i?C=await ei(n,E,Lr.play):C=await Jl(n,E);break;case"clouddrive_down_url":C=await ei(n,E,Lr.download);break;case"clouddrive_playlist_url":let A="";i?A=E.replace(/\/[^/]+$/,""):A=E,C=await Jl(n,A);break;case"user_agent":C=navigator.userAgent;break}if(C=C.toString(),y){const A=y.split(":");for(const N of A)switch(N){case"search":C=Zr({search_value:C});break;case"encode":C=encodeURIComponent(C);break;case"base64":C=Ml(C);break;case"base64safe":C=Ml(C,!0);break;case"upper":C=C.toUpperCase();break;case"lower":C=C.toLowerCase();break;case"number":C=C.replace(/\D/g,"");break;case"manual":let{isConfirmed:V,value:O}=await fe.fire({title:"手动输入",input:"textarea",inputValue:C,showCancelButton:!0,inputValidator:P=>P?null:"输入不能为空!"});if(!V)throw new Error("已取消手动输入。");if(O=(O==null?void 0:O.trim())||"",O==="")throw new Error("输入不能为空!");C=O;break}}o=o.replace(p,C)}}return t.mutation?await Rm(o,e,t,n):o}async function Rm(e,t,n,o){return await new Function("payload",n.mutation)({url:e,file:t,customUrl:n,cloudDriveConfig:o})}var Pn=(e=>(e.search="search",e.play="play",e))(Pn||{});const Fc={search:"menu_custom_urls_for_search",play:"menu_custom_urls_for_play"};async function ls(e){return await lt.get(Fc[e],[])}async function Hc(e,t){await lt.set(Fc[e],t)}function ut(e){return{enabled:!0,key:"",label:"",icon:"",memo:"",extraMemo:"",url:"",openInBackground:!1,...e}}const Uc="ce_menu_config";function jm(e){return{enabled:!0,openInNewTab:!0,search:!0,play:!0,getDownloadUrl:!0,copyNames:!0,...e}}function Fm(e){return{enabled:!0,copyNames:!0,...e}}function Hm(e){return{enabled:!0,moveToSelfNameDir:!0,copyNames:!0,...e}}function Um(e){return{enabled:!0,rename:!0,delete:!0,play:!0,copyNames:!0,move:!0,copy:!0,copyTo:!0,viewProp:!0,showSubFolderSize:!0,...e}}function zm(e){return{enabled:!0,hideSelectionMenuLabel:!1,enableInSearch:!0,[Ae.listItemHover]:jm(e==null?void 0:e[Ae.listItemHover]),[Ae.listItemContext]:Fm(e==null?void 0:e[Ae.listItemContext]),[Ae.selection]:Hm(e==null?void 0:e[Ae.selection]),[Ae.dirContext]:Um(e==null?void 0:e[Ae.dirContext]),...e}}async function ta(){const e=zm(),t=await lt.get(Uc,e);return{...e,...t}}async function qm(e){await lt.set(Uc,e)}const bl=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",async(t,n)=>{});$e(this,"onMouseOver");$e(this,"onMouseOut");$e(this,"subItems",[]);$e(this,"isDivider",!1);$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>`,divider:'<li class="ce-menu-divider"></li>'},[Ae.dirContextSub]:{body:`<span id="{key}" class="ce-menu dir-context-menu-sub sub-item">
{icon}<span>{label}</span>
</span>`,divider:'<span class="ce-menu-divider"></span>'},[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>`,divider:'<li class="ce-menu-divider"></li>'},[Ae.listItemContextSub]:{body:'<span id="{key}" class="ce-menu list-item-context-menu-sub sub-item">{label}</span>',divider:'<span class="ce-menu-divider"></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>`,divider:'<a class="ce-menu-divider"></a>'},[Ae.listItemHoverSub]:{body:`<a href="javascript:;" id="{key}" class="ce-menu list-item-hover-menu-sub" style="">
{icon}<span>{label}</span>
</a>`,divider:'<a class="ce-menu-divider"></a>'},[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>`,divider:'<li class="ce-menu-divider"></li>'},[Ae.selectionSub]:{body:`<a href="javascript:;" id="{key}" class="ce-menu selection-menu-sub" style="">
<span>{label}</span>
</a>`,divider:'<a class="ce-menu-divider"></a>'}});t.menuType&&(this.menuType=t.menuType),t.injectDecider&&(this.injectDecider=t.injectDecider),t.isDivider&&(this.isDivider=!0),t.key&&(this.key=t.key),t.label&&(this.label=t.label),t.icon&&(this.icon=t.icon),t.title&&(this.title=t.title),t.onClick&&(this.onClick=t.onClick),t.onMouseOver&&(this.onMouseOver=t.onMouseOver),t.onMouseOut&&(this.onMouseOut=t.onMouseOut),t.subItems&&(this.subItems=t.subItems),t.key&&(this.key=t.key),t.label&&(this.label=t.label),t.onClick&&(this.onClick=t.onClick)}async decideInject(t){return this.injectDecider?await this.injectDecider(this,t):!0}async render(){var r;if(!this.menuType)throw new Error("未指定菜单类型");const t=this.menuItemTemplates[this.menuType];if(!t)throw new Error(`未找到菜单模板:${this.menuType}`);if(this.isDivider){if(!t.divider)throw new Error("未定义模版的divider内容!");const l=document.createElement("div");return l.innerHTML=t.divider,l.firstElementChild}let n=t.body;if(this.subItems.length>0){if(!t.bodyForMulti)throw new Error("未找到 bodyFormMulti 模版");n=t.bodyForMulti}const o=document.createElement("div");let s="";this.icon&&(this.icon.match(/^(http|https|data:image)/)?s=`<img class="ce-menu-icon" src="${this.icon}" />`:s=`<i class="ce-menu-icon ${this.icon}"></i>`),o.innerHTML=n.replace(/{key}/g,this.key).replace(/{label}/g,this.label).replace(/{icon}/g,s);const i=o.firstElementChild;if(i.setAttribute("title",this.title||""),this.onClick&&i.addEventListener("click",async l=>{this.onClick(this,l)}),this.onMouseOver&&i.addEventListener("mouseover",async l=>{this.onMouseOver&&this.onMouseOver(this,l)}),this.onMouseOut&&i.addEventListener("mouseout",async l=>{this.onMouseOut&&this.onMouseOut(this,l)}),this.subItems.length>0)for(const l of this.subItems){const d=await l.render();(r=i.querySelector(".sub-items"))==null||r.appendChild(d)}return i}async closeMenu(){unsafeWindow.Core.FileMenu.HideRight(),document.dispatchEvent(new CustomEvent(bl.EVENT_CLOSE_MENU,{detail:{menu:this}}))}async decorateContainer(t){}};let Bt=bl;$e(Bt,"EVENT_CLOSE_MENU","__closeMenu");async function hi(e,t){t.stopPropagation(),t.preventDefault();const n=t.target,o=$(n).closest(".ce-menu-parent"),s=o.find(".ce-menu-dropdown");o.addClass("ce-menu-dropdown-opened"),s.addClass("ce-menu-dropdown-active")}async function mi(e,t){t.stopPropagation(),t.preventDefault();const n=t.target,o=$(n).closest(".ce-menu-parent"),s=o.find(".ce-menu-dropdown");o.removeClass("ce-menu-dropdown-opened"),s.removeClass("ce-menu-dropdown-active")}class Dt extends Bt{constructor(n){super(n);$e(this,"menuType",Ae.dirContext);this.onMouseOver=hi,this.onMouseOut=mi}}class Vm extends Bt{constructor(){super(...arguments);$e(this,"menuType",Ae.dirContextSub)}}class na extends Bt{constructor(n){super(n);$e(this,"menuType",Ae.listItemContext);this.onMouseOver=hi,this.onMouseOut=mi}}class gi extends Bt{constructor(n){super(n);$e(this,"menuType",Ae.listItemHover);this.onMouseOver=hi,this.onMouseOut=mi}}class wi extends Bt{constructor(){super(...arguments);$e(this,"menuType",Ae.listItemHoverSub)}}class zc extends Bt{constructor(n){super(n);$e(this,"menuType",Ae.selection);this.onMouseOver=hi,this.onMouseOut=mi}}class qc extends Bt{constructor(){super(...arguments);$e(this,"menuType",Ae.selectionSub)}}class yi extends Bt{constructor(){super(...arguments);$e(this,"isDivider",!0)}}class Wm extends yi{}class Km extends yi{}class Gm extends yi{}class Jm extends yi{}class bi{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 Ao(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:not([ce-done]) > li .file-opr").forEach(s=>{n.push(s)});break;case Ae.listItemContext:n=[o];break;case Ae.selection:document.querySelectorAll("#js_top_panel_box #js_operate_box").forEach(s=>{n.push(s)});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===Xn.after&&(o=o.reverse());for(let s=0;s<o.length;s++){const i=o[s];if(!await this.shouldInjectMenuItem(t,i))continue;const r=await i.render();this.position===Xn.before?n.insertAdjacentElement("beforebegin",r):n.insertAdjacentElement("afterend",r),await i.decorateContainer(t)}}async isFileContainer(t){return!!t.getAttribute("file_id")}async isDirContainer(t){return!!t.getAttribute("cate_id")}async inject(){if(!!this.menuType)if(this.useObserver)await this.observe();else{const t=await this.getObserveTarget();if(!t)return;await this.injectToContainer(t)}}}class Ym extends bi{constructor(){super(...arguments);$e(this,"menuType",Ae.dirContext);$e(this,"useObserver",!0);$e(this,"observeTarget",document.body);$e(this,"disposeObserverAfterInjection",!0)}}class Xm extends bi{constructor(){super(...arguments);$e(this,"menuType",Ae.listItemContext)}}class Zm extends bi{constructor(n){super(n);$e(this,"menuType",Ae.listItemHover);$e(this,"useObserver",!0);$e(this,"observeTarget","#js_data_list");$e(this,"disposeObserverAfterInjection",!1);this.handleLoadAll()}async inject(){const n=document.querySelector("#js_data_list");if(n){const o=n.querySelectorAll(".list-contents > ul:not([ce-done]) > li .file-opr");o.length&&await this.perform(Array.from(o))}super.inject()}async handleLoadAll(){if(window.top===window.self)return;const n=document.querySelector("#js_pagination_box");if(!n){console.warn("[ListItemHoverMenuInjector.handleLoadAll] 未找到「#js_pagination_box」元素");return}function o(s){const i=document.querySelector("#js_data_list .list-contents > ul > li");!i||i.querySelector(".ce-menu")||s(!0)}n.addEventListener("click",async s=>{s.preventDefault(),s.stopPropagation();const i=s.target;let r=!1;if((i.getAttribute("menu")==="load_all_file"||i.closest('[menu="load_all_file"]'))&&(r=!0),!r)return;console.log("[ListItemHoverMenuInjector.handleLoadAll] 点击了「加载全部」按钮"),await Zs(o,500,3e5);const l=document.querySelector("#js_data_list .list-contents > ul");l==null||l.removeAttribute("ce-done");const d=document.querySelector("#js_data_list");if(d){const f=".list-contents > ul:not([ce-done]) > li .file-opr";if(!document.querySelector(f)){const m=await ta();await jc(m)}const p=d.querySelectorAll(f);p.length&&await this.perform(Array.from(p))}})}async perform(n){await super.perform(n);const o=document.querySelector("#js_data_list .list-contents > ul");o==null||o.setAttribute("ce-done","")}}class Qm extends bi{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 eg(e,t){return!!$(t).closest("li").attr("cate_id")}async function tg(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?Xp(o)||Qp(o)||Zp(o):!1}function On(e,t){const n=Object.create(null),o=e.split(",");for(let s=0;s<o.length;s++)n[o[s]]=!0;return t?s=>!!n[s.toLowerCase()]:s=>!!n[s]}function ln(e){if(pe(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],s=Ke(o)?ig(o):ln(o);if(s)for(const i in s)t[i]=s[i]}return t}else{if(Ke(e))return e;if(Ue(e))return e}}const ng=/;(?![^(]*\))/g,og=/:([^]+)/,sg=/\/\*.*?\*\//gs;function ig(e){const t={};return e.replace(sg,"").split(ng).forEach(n=>{if(n){const o=n.split(og);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Je(e){let t="";if(Ke(e))t=e;else if(pe(e))for(let n=0;n<e.length;n++){const o=Je(e[n]);o&&(t+=o+" ")}else if(Ue(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function rg(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ke(t)&&(e.class=Je(t)),n&&(e.style=ln(n)),e}const ag="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",lg="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",cg=On(ag),ug=On(lg),dg=On("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Vc(e){return!!e||e===""}function fg(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=cs(e[o],t[o]);return n}function cs(e,t){if(e===t)return!0;let n=Gc(e),o=Gc(t);if(n||o)return n&&o?e.getTime()===t.getTime():!1;if(n=ds(e),o=ds(t),n||o)return e===t;if(n=pe(e),o=pe(t),n||o)return n&&o?fg(e,t):!1;if(n=Ue(e),o=Ue(t),n||o){if(!n||!o)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const r in e){const l=e.hasOwnProperty(r),d=t.hasOwnProperty(r);if(l&&!d||!l&&d||!cs(e[r],t[r]))return!1}}return String(e)===String(t)}function oa(e,t){return e.findIndex(n=>cs(n,t))}const me=e=>Ke(e)?e:e==null?"":pe(e)||Ue(e)&&(e.toString===Jc||!xe(e.toString))?JSON.stringify(e,Wc,2):String(e),Wc=(e,t)=>t&&t.__v_isRef?Wc(e,t.value):Qn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,s])=>(n[`${o} =>`]=s,n),{})}:Mo(t)?{[`Set(${t.size})`]:[...t.values()]}:Ue(t)&&!pe(t)&&!Yc(t)?String(t):t,ze=Object.freeze({}),Lo=Object.freeze([]),St=()=>{},Kc=()=>!1,pg=/^on[^a-z]/,us=e=>pg.test(e),vi=e=>e.startsWith("onUpdate:"),tt=Object.assign,sa=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},hg=Object.prototype.hasOwnProperty,Me=(e,t)=>hg.call(e,t),pe=Array.isArray,Qn=e=>fs(e)==="[object Map]",Mo=e=>fs(e)==="[object Set]",Gc=e=>fs(e)==="[object Date]",xe=e=>typeof e=="function",Ke=e=>typeof e=="string",ds=e=>typeof e=="symbol",Ue=e=>e!==null&&typeof e=="object",_i=e=>Ue(e)&&xe(e.then)&&xe(e.catch),Jc=Object.prototype.toString,fs=e=>Jc.call(e),ia=e=>fs(e).slice(8,-1),Yc=e=>fs(e)==="[object Object]",ra=e=>Ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,xi=On(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),mg=On("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Ci=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},gg=/-(\w)/g,Qt=Ci(e=>e.replace(gg,(t,n)=>n?n.toUpperCase():"")),wg=/\B([A-Z])/g,cn=Ci(e=>e.replace(wg,"-$1").toLowerCase()),eo=Ci(e=>e.charAt(0).toUpperCase()+e.slice(1)),to=Ci(e=>e?`on${eo(e)}`:""),ps=(e,t)=>!Object.is(e,t),Bo=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},$i=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ki=e=>{const t=parseFloat(e);return isNaN(t)?e:t},yg=e=>{const t=Ke(e)?Number(e):NaN;return isNaN(t)?e:t};let Xc;const Zc=()=>Xc||(Xc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function aa(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Ut;class bg{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ut,!t&&Ut&&(this.index=(Ut.scopes||(Ut.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ut;try{return Ut=this,t()}finally{Ut=n}}else aa("cannot run an inactive effect scope.")}on(){Ut=this}off(){Ut=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function vg(e,t=Ut){t&&t.active&&t.effects.push(e)}function _g(){return Ut}const la=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Qc=e=>(e.w&In)>0,eu=e=>(e.n&In)>0,xg=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=In},Cg=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const s=t[o];Qc(s)&&!eu(s)?s.delete(e):t[n++]=s,s.w&=~In,s.n&=~In}t.length=n}},Si=new WeakMap;let hs=0,In=1;const ca=30;let gt;const no=Symbol("iterate"),ua=Symbol("Map key iterate");class da{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,vg(this,o)}run(){if(!this.active)return this.fn();let t=gt,n=Tn;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=gt,gt=this,Tn=!0,In=1<<++hs,hs<=ca?xg(this):tu(this),this.fn()}finally{hs<=ca&&Cg(this),In=1<<--hs,gt=this.parent,Tn=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){gt===this?this.deferStop=!0:this.active&&(tu(this),this.onStop&&this.onStop(),this.active=!1)}}function tu(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Tn=!0;const nu=[];function oo(){nu.push(Tn),Tn=!1}function so(){const e=nu.pop();Tn=e===void 0?!0:e}function Et(e,t,n){if(Tn&>){let o=Si.get(e);o||Si.set(e,o=new Map);let s=o.get(n);s||o.set(n,s=la()),ou(s,{effect:gt,target:e,type:t,key:n})}}function ou(e,t){let n=!1;hs<=ca?eu(e)||(e.n|=In,n=!Qc(e)):n=!e.has(gt),n&&(e.add(gt),gt.deps.push(e),gt.onTrack&>.onTrack(Object.assign({effect:gt},t)))}function un(e,t,n,o,s,i){const r=Si.get(e);if(!r)return;let l=[];if(t==="clear")l=[...r.values()];else if(n==="length"&&pe(e)){const f=Number(o);r.forEach((p,m)=>{(m==="length"||m>=f)&&l.push(p)})}else switch(n!==void 0&&l.push(r.get(n)),t){case"add":pe(e)?ra(n)&&l.push(r.get("length")):(l.push(r.get(no)),Qn(e)&&l.push(r.get(ua)));break;case"delete":pe(e)||(l.push(r.get(no)),Qn(e)&&l.push(r.get(ua)));break;case"set":Qn(e)&&l.push(r.get(no));break}const d={target:e,type:t,key:n,newValue:o,oldValue:s,oldTarget:i};if(l.length===1)l[0]&&fa(l[0],d);else{const f=[];for(const p of l)p&&f.push(...p);fa(la(f),d)}}function fa(e,t){const n=pe(e)?e:[...e];for(const o of n)o.computed&&su(o,t);for(const o of n)o.computed||su(o,t)}function su(e,t){(e!==gt||e.allowRecurse)&&(e.onTrigger&&e.onTrigger(tt({effect:e},t)),e.scheduler?e.scheduler():e.run())}function $g(e,t){var n;return(n=Si.get(e))===null||n===void 0?void 0:n.get(t)}const kg=On("__proto__,__v_isRef,__isVue"),iu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ds)),Sg=Ei(),Eg=Ei(!1,!0),Ag=Ei(!0),Pg=Ei(!0,!0),ru=Og();function Og(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=Pe(this);for(let i=0,r=this.length;i<r;i++)Et(o,"get",i+"");const s=o[t](...n);return s===-1||s===!1?o[t](...n.map(Pe)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){oo();const o=Pe(this)[t].apply(this,n);return so(),o}}),e}function Ig(e){const t=Pe(this);return Et(t,"has",e),t.hasOwnProperty(e)}function Ei(e=!1,t=!1){return function(o,s,i){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&i===(e?t?yu:wu:t?gu:mu).get(o))return o;const r=pe(o);if(!e){if(r&&Me(ru,s))return Reflect.get(ru,s,i);if(s==="hasOwnProperty")return Ig}const l=Reflect.get(o,s,i);return(ds(s)?iu.has(s):kg(s))||(e||Et(o,"get",s),t)?l:nt(l)?r&&ra(s)?l:l.value:Ue(l)?e?bu(l):Bi(l):l}}const Tg=au(),Lg=au(!0);function au(e=!1){return function(n,o,s,i){let r=n[o];if(Mn(r)&&nt(r)&&!nt(s))return!1;if(!e&&(!Ni(s)&&!Mn(s)&&(r=Pe(r),s=Pe(s)),!pe(n)&&nt(r)&&!nt(s)))return r.value=s,!0;const l=pe(n)&&ra(o)?Number(o)<n.length:Me(n,o),d=Reflect.set(n,o,s,i);return n===Pe(i)&&(l?ps(s,r)&&un(n,"set",o,s,r):un(n,"add",o,s)),d}}function Mg(e,t){const n=Me(e,t),o=e[t],s=Reflect.deleteProperty(e,t);return s&&n&&un(e,"delete",t,void 0,o),s}function Bg(e,t){const n=Reflect.has(e,t);return(!ds(t)||!iu.has(t))&&Et(e,"has",t),n}function Dg(e){return Et(e,"iterate",pe(e)?"length":no),Reflect.ownKeys(e)}const lu={get:Sg,set:Tg,deleteProperty:Mg,has:Bg,ownKeys:Dg},cu={get:Ag,set(e,t){return aa(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return aa(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},Ng=tt({},lu,{get:Eg,set:Lg}),Rg=tt({},cu,{get:Pg}),pa=e=>e,Ai=e=>Reflect.getPrototypeOf(e);function Pi(e,t,n=!1,o=!1){e=e.__v_raw;const s=Pe(e),i=Pe(t);n||(t!==i&&Et(s,"get",t),Et(s,"get",i));const{has:r}=Ai(s),l=o?pa:n?ha:ms;if(r.call(s,t))return l(e.get(t));if(r.call(s,i))return l(e.get(i));e!==s&&e.get(t)}function Oi(e,t=!1){const n=this.__v_raw,o=Pe(n),s=Pe(e);return t||(e!==s&&Et(o,"has",e),Et(o,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function Ii(e,t=!1){return e=e.__v_raw,!t&&Et(Pe(e),"iterate",no),Reflect.get(e,"size",e)}function uu(e){e=Pe(e);const t=Pe(this);return Ai(t).has.call(t,e)||(t.add(e),un(t,"add",e,e)),this}function du(e,t){t=Pe(t);const n=Pe(this),{has:o,get:s}=Ai(n);let i=o.call(n,e);i?hu(n,o,e):(e=Pe(e),i=o.call(n,e));const r=s.call(n,e);return n.set(e,t),i?ps(t,r)&&un(n,"set",e,t,r):un(n,"add",e,t),this}function fu(e){const t=Pe(this),{has:n,get:o}=Ai(t);let s=n.call(t,e);s?hu(t,n,e):(e=Pe(e),s=n.call(t,e));const i=o?o.call(t,e):void 0,r=t.delete(e);return s&&un(t,"delete",e,void 0,i),r}function pu(){const e=Pe(this),t=e.size!==0,n=Qn(e)?new Map(e):new Set(e),o=e.clear();return t&&un(e,"clear",void 0,void 0,n),o}function Ti(e,t){return function(o,s){const i=this,r=i.__v_raw,l=Pe(r),d=t?pa:e?ha:ms;return!e&&Et(l,"iterate",no),r.forEach((f,p)=>o.call(s,d(f),d(p),i))}}function Li(e,t,n){return function(...o){const s=this.__v_raw,i=Pe(s),r=Qn(i),l=e==="entries"||e===Symbol.iterator&&r,d=e==="keys"&&r,f=s[e](...o),p=n?pa:t?ha:ms;return!t&&Et(i,"iterate",d?ua:no),{next(){const{value:m,done:y}=f.next();return y?{value:m,done:y}:{value:l?[p(m[0]),p(m[1])]:p(m),done:y}},[Symbol.iterator](){return this}}}}function Ln(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${eo(e)} operation ${n}failed: target is readonly.`,Pe(this))}return e==="delete"?!1:this}}function jg(){const e={get(i){return Pi(this,i)},get size(){return Ii(this)},has:Oi,add:uu,set:du,delete:fu,clear:pu,forEach:Ti(!1,!1)},t={get(i){return Pi(this,i,!1,!0)},get size(){return Ii(this)},has:Oi,add:uu,set:du,delete:fu,clear:pu,forEach:Ti(!1,!0)},n={get(i){return Pi(this,i,!0)},get size(){return Ii(this,!0)},has(i){return Oi.call(this,i,!0)},add:Ln("add"),set:Ln("set"),delete:Ln("delete"),clear:Ln("clear"),forEach:Ti(!0,!1)},o={get(i){return Pi(this,i,!0,!0)},get size(){return Ii(this,!0)},has(i){return Oi.call(this,i,!0)},add:Ln("add"),set:Ln("set"),delete:Ln("delete"),clear:Ln("clear"),forEach:Ti(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Li(i,!1,!1),n[i]=Li(i,!0,!1),t[i]=Li(i,!1,!0),o[i]=Li(i,!0,!0)}),[e,n,t,o]}const[Fg,Hg,Ug,zg]=jg();function Mi(e,t){const n=t?e?zg:Ug:e?Hg:Fg;return(o,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(Me(n,s)&&s in o?n:o,s,i)}const qg={get:Mi(!1,!1)},Vg={get:Mi(!1,!0)},Wg={get:Mi(!0,!1)},Kg={get:Mi(!0,!0)};function hu(e,t,n){const o=Pe(n);if(o!==n&&t.call(e,o)){const s=ia(e);console.warn(`Reactive ${s} contains both the raw and reactive versions of the same object${s==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const mu=new WeakMap,gu=new WeakMap,wu=new WeakMap,yu=new WeakMap;function Gg(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Jg(e){return e.__v_skip||!Object.isExtensible(e)?0:Gg(ia(e))}function Bi(e){return Mn(e)?e:Di(e,!1,lu,qg,mu)}function Yg(e){return Di(e,!1,Ng,Vg,gu)}function bu(e){return Di(e,!0,cu,Wg,wu)}function Do(e){return Di(e,!0,Rg,Kg,yu)}function Di(e,t,n,o,s){if(!Ue(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const r=Jg(e);if(r===0)return e;const l=new Proxy(e,r===2?o:n);return s.set(e,l),l}function io(e){return Mn(e)?io(e.__v_raw):!!(e&&e.__v_isReactive)}function Mn(e){return!!(e&&e.__v_isReadonly)}function Ni(e){return!!(e&&e.__v_isShallow)}function Ri(e){return io(e)||Mn(e)}function Pe(e){const t=e&&e.__v_raw;return t?Pe(t):e}function vu(e){return $i(e,"__v_skip",!0),e}const ms=e=>Ue(e)?Bi(e):e,ha=e=>Ue(e)?bu(e):e;function _u(e){Tn&>&&(e=Pe(e),ou(e.dep||(e.dep=la()),{target:e,type:"get",key:"value"}))}function xu(e,t){e=Pe(e);const n=e.dep;n&&fa(n,{target:e,type:"set",key:"value",newValue:t})}function nt(e){return!!(e&&e.__v_isRef===!0)}function ge(e){return Xg(e,!1)}function Xg(e,t){return nt(e)?e:new Zg(e,t)}class Zg{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Pe(t),this._value=n?t:ms(t)}get value(){return _u(this),this._value}set value(t){const n=this.__v_isShallow||Ni(t)||Mn(t);t=n?t:Pe(t),ps(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ms(t),xu(this,t))}}function be(e){return nt(e)?e.value:e}const Qg={get:(e,t,n)=>be(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const s=e[t];return nt(s)&&!nt(n)?(s.value=n,!0):Reflect.set(e,t,n,o)}};function Cu(e){return io(e)?e:new Proxy(e,Qg)}function ew(e){Ri(e)||console.warn("toRefs() expects a reactive object but received a plain one.");const t=pe(e)?new Array(e.length):{};for(const n in e)t[n]=nw(e,n);return t}class tw{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 $g(Pe(this._object),this._key)}}function nw(e,t,n){const o=e[t];return nt(o)?o:new tw(e,t,n)}var $u;class ow{constructor(t,n,o,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[$u]=!1,this._dirty=!0,this.effect=new da(t,()=>{this._dirty||(this._dirty=!0,xu(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=o}get value(){const t=Pe(this);return _u(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}$u="__v_isReadonly";function sw(e,t,n=!1){let o,s;const i=xe(e);i?(o=e,s=()=>{console.warn("Write operation failed: computed value is readonly")}):(o=e.get,s=e.set);const r=new ow(o,s,i||!s,n);return t&&!n&&(r.effect.onTrack=t.onTrack,r.effect.onTrigger=t.onTrigger),r}const ro=[];function gs(e){ro.push(e)}function ws(){ro.pop()}function Q(e,...t){oo();const n=ro.length?ro[ro.length-1].component:null,o=n&&n.appContext.config.warnHandler,s=iw();if(o)dn(o,n,11,[e+t.join(""),n&&n.proxy,s.map(({vnode:i})=>`at <${Qi(n,i.type)}>`).join(`
`),s]);else{const i=[`[Vue warn]: ${e}`,...t];s.length&&i.push(`
`,...rw(s)),console.warn(...i)}so()}function iw(){let e=ro[ro.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 rw(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
`],...aw(n))}),t}function aw({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,s=` at <${Qi(e.component,e.type,o)}`,i=">"+n;return e.props?[s,...lw(e.props),i]:[s+i]}function lw(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...ku(o,e[o]))}),n.length>3&&t.push(" ..."),t}function ku(e,t,n){return Ke(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:nt(t)?(t=ku(e,Pe(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):xe(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Pe(t),n?t:[`${e}=`,t])}function cw(e,t){e!==void 0&&(typeof e!="number"?Q(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&Q(`${t} is NaN - the duration expression might be incorrect.`))}const ma={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 dn(e,t,n,o){let s;try{s=o?e(...o):e()}catch(i){ys(i,t,n)}return s}function zt(e,t,n,o){if(xe(e)){const i=dn(e,t,n,o);return i&&_i(i)&&i.catch(r=>{ys(r,t,n)}),i}const s=[];for(let i=0;i<e.length;i++)s.push(zt(e[i],t,n,o));return s}function ys(e,t,n,o=!0){const s=t?t.vnode:null;if(t){let i=t.parent;const r=t.proxy,l=ma[n];for(;i;){const f=i.ec;if(f){for(let p=0;p<f.length;p++)if(f[p](e,r,l)===!1)return}i=i.parent}const d=t.appContext.config.errorHandler;if(d){dn(d,null,10,[e,r,l]);return}}uw(e,n,s,o)}function uw(e,t,n,o=!0){{const s=ma[t];if(n&&gs(n),Q(`Unhandled error${s?` during execution of ${s}`:""}`),n&&ws(),o)throw e;console.error(e)}}let bs=!1,ga=!1;const pt=[];let en=0;const No=[];let tn=null,Bn=0;const Su=Promise.resolve();let wa=null;const dw=100;function ji(e){const t=wa||Su;return e?t.then(this?e.bind(this):e):t}function fw(e){let t=en+1,n=pt.length;for(;t<n;){const o=t+n>>>1;vs(pt[o])<e?t=o+1:n=o}return t}function Fi(e){(!pt.length||!pt.includes(e,bs&&e.allowRecurse?en+1:en))&&(e.id==null?pt.push(e):pt.splice(fw(e.id),0,e),Eu())}function Eu(){!bs&&!ga&&(ga=!0,wa=Su.then(Ou))}function pw(e){const t=pt.indexOf(e);t>en&&pt.splice(t,1)}function ya(e){pe(e)?No.push(...e):(!tn||!tn.includes(e,e.allowRecurse?Bn+1:Bn))&&No.push(e),Eu()}function Au(e,t=bs?en+1:0){for(e=e||new Map;t<pt.length;t++){const n=pt[t];if(n&&n.pre){if(ba(e,n))continue;pt.splice(t,1),t--,n()}}}function Pu(e){if(No.length){const t=[...new Set(No)];if(No.length=0,tn){tn.push(...t);return}for(tn=t,e=e||new Map,tn.sort((n,o)=>vs(n)-vs(o)),Bn=0;Bn<tn.length;Bn++)ba(e,tn[Bn])||tn[Bn]();tn=null,Bn=0}}const vs=e=>e.id==null?1/0:e.id,hw=(e,t)=>{const n=vs(e)-vs(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Ou(e){ga=!1,bs=!0,e=e||new Map,pt.sort(hw);const t=n=>ba(e,n);try{for(en=0;en<pt.length;en++){const n=pt[en];if(n&&n.active!==!1){if(t(n))continue;dn(n,null,14)}}}finally{en=0,pt.length=0,Pu(e),bs=!1,wa=null,(pt.length||No.length)&&Ou(e)}}function ba(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>dw){const o=t.ownerInstance,s=o&&qa(o.type);return Q(`Maximum recursive updates exceeded${s?` in component <${s}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}else e.set(t,n+1)}}let ao=!1;const Ro=new Set;Zc().__VUE_HMR_RUNTIME__={createRecord:va(Iu),rerender:va(ww),reload:va(yw)};const lo=new Map;function mw(e){const t=e.type.__hmrId;let n=lo.get(t);n||(Iu(t,e.type),n=lo.get(t)),n.instances.add(e)}function gw(e){lo.get(e.type.__hmrId).instances.delete(e)}function Iu(e,t){return lo.has(e)?!1:(lo.set(e,{initialDef:_s(t),instances:new Set}),!0)}function _s(e){return vd(e)?e.__vccOpts:e}function ww(e,t){const n=lo.get(e);!n||(n.initialDef.render=t,[...n.instances].forEach(o=>{t&&(o.render=t,_s(o.type).render=t),o.renderCache=[],ao=!0,o.update(),ao=!1}))}function yw(e,t){const n=lo.get(e);if(!n)return;t=_s(t),Tu(n.initialDef,t);const o=[...n.instances];for(const s of o){const i=_s(s.type);Ro.has(i)||(i!==n.initialDef&&Tu(i,t),Ro.add(i)),s.appContext.optionsCache.delete(s.type),s.ceReload?(Ro.add(i),s.ceReload(t.styles),Ro.delete(i)):s.parent?Fi(s.parent.update):s.appContext.reload?s.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}ya(()=>{for(const s of o)Ro.delete(_s(s.type))})}function Tu(e,t){tt(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function va(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 nn,xs=[],_a=!1;function Cs(e,...t){nn?nn.emit(e,...t):_a||xs.push({event:e,args:t})}function Lu(e,t){var n,o;nn=e,nn?(nn.enabled=!0,xs.forEach(({event:s,args:i})=>nn.emit(s,...i)),xs=[]):typeof window<"u"&&window.HTMLElement&&!(!((o=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||o===void 0)&&o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{Lu(i,t)}),setTimeout(()=>{nn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,_a=!0,xs=[])},3e3)):(_a=!0,xs=[])}function bw(e,t){Cs("app:init",e,t,{Fragment:De,Text:Os,Comment:bt,Static:Is})}function vw(e){Cs("app:unmount",e)}const _w=xa("component:added"),Mu=xa("component:updated"),xw=xa("component:removed"),Cw=e=>{nn&&typeof nn.cleanupBuffer=="function"&&!nn.cleanupBuffer(e)&&xw(e)};function xa(e){return t=>{Cs(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const $w=Bu("perf:start"),kw=Bu("perf:end");function Bu(e){return(t,n,o)=>{Cs(e,t.appContext.app,t.uid,t,n,o)}}function Sw(e,t,n){Cs("component:emit",e.appContext.app,e,t,n)}function Ew(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||ze;{const{emitsOptions:p,propsOptions:[m]}=e;if(p)if(!(t in p))(!m||!(to(t)in m))&&Q(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${to(t)}" prop.`);else{const y=p[t];xe(y)&&(y(...n)||Q(`Invalid event arguments: event validation failed for event "${t}".`))}}let s=n;const i=t.startsWith("update:"),r=i&&t.slice(7);if(r&&r in o){const p=`${r==="modelValue"?"model":r}Modifiers`,{number:m,trim:y}=o[p]||ze;y&&(s=n.map(C=>Ke(C)?C.trim():C)),m&&(s=n.map(ki))}Sw(e,t,s);{const p=t.toLowerCase();p!==t&&o[to(p)]&&Q(`Event "${p}" is emitted in component ${Qi(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 "${cn(t)}" instead of "${t}".`)}let l,d=o[l=to(t)]||o[l=to(Qt(t))];!d&&i&&(d=o[l=to(cn(t))]),d&&zt(d,e,6,s);const f=o[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,zt(f,e,6,s)}}function Du(e,t,n=!1){const o=t.emitsCache,s=o.get(e);if(s!==void 0)return s;const i=e.emits;let r={},l=!1;if(!xe(e)){const d=f=>{const p=Du(f,t,!0);p&&(l=!0,tt(r,p))};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}return!i&&!l?(Ue(e)&&o.set(e,null),null):(pe(i)?i.forEach(d=>r[d]=null):tt(r,i),Ue(e)&&o.set(e,r),r)}function Hi(e,t){return!e||!us(t)?!1:(t=t.slice(2).replace(/Once$/,""),Me(e,t[0].toLowerCase()+t.slice(1))||Me(e,cn(t))||Me(e,t))}let it=null,Ui=null;function zi(e){const t=it;return it=e,Ui=e&&e.type.__scopeId||null,t}function Aw(e){Ui=e}function Pw(){Ui=null}const Ow=e=>Ve;function Ve(e,t=it,n){if(!t||e._n)return e;const o=(...s)=>{o._d&&fd(-1);const i=zi(t);let r;try{r=e(...s)}finally{zi(i),o._d&&fd(1)}return Mu(t),r};return o._n=!0,o._c=!0,o._d=!0,o}let Ca=!1;function qi(){Ca=!0}function $a(e){const{type:t,vnode:n,proxy:o,withProxy:s,props:i,propsOptions:[r],slots:l,attrs:d,emit:f,render:p,renderCache:m,data:y,setupState:C,ctx:E,inheritAttrs:A}=e;let N,V;const O=zi(e);Ca=!1;try{if(n.shapeFlag&4){const G=s||o;N=jt(p.call(G,G,m,i,C,y,E)),V=d}else{const G=t;d===i&&qi(),N=jt(G.length>1?G(i,{get attrs(){return qi(),d},slots:l,emit:f}):G(i,null)),V=t.props?d:Tw(d)}}catch(G){Ts.length=0,ys(G,e,1),N=ve(bt)}let P=N,D;if(N.patchFlag>0&&N.patchFlag&2048&&([P,D]=Iw(N)),V&&A!==!1){const G=Object.keys(V),{shapeFlag:ee}=P;if(G.length){if(ee&7)r&&G.some(vi)&&(V=Lw(V,r)),P=Rn(P,V);else if(!Ca&&P.type!==bt){const Oe=Object.keys(d),ke=[],Se=[];for(let Te=0,he=Oe.length;Te<he;Te++){const se=Oe[Te];us(se)?vi(se)||ke.push(se[2].toLowerCase()+se.slice(3)):Se.push(se)}Se.length&&Q(`Extraneous non-props attributes (${Se.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),ke.length&&Q(`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&&(Nu(P)||Q("Runtime directive used on component with non-element root node. The directives will not function as intended."),P=Rn(P),P.dirs=P.dirs?P.dirs.concat(n.dirs):n.dirs),n.transition&&(Nu(P)||Q("Component inside <Transition> renders non-element root node that cannot be animated."),P.transition=n.transition),D?D(P):N=P,zi(O),N}const Iw=e=>{const t=e.children,n=e.dynamicChildren,o=ka(t);if(!o)return[e,void 0];const s=t.indexOf(o),i=n?n.indexOf(o):-1,r=l=>{t[s]=l,n&&(i>-1?n[i]=l:l.patchFlag>0&&(e.dynamicChildren=[...n,l]))};return[jt(o),r]};function ka(e){let t;for(let n=0;n<e.length;n++){const o=e[n];if(Ho(o)){if(o.type!==bt||o.children==="v-if"){if(t)return;t=o}}else return}return t}const Tw=e=>{let t;for(const n in e)(n==="class"||n==="style"||us(n))&&((t||(t={}))[n]=e[n]);return t},Lw=(e,t)=>{const n={};for(const o in e)(!vi(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n},Nu=e=>e.shapeFlag&7||e.type===bt;function Mw(e,t,n){const{props:o,children:s,component:i}=e,{props:r,children:l,patchFlag:d}=t,f=i.emitsOptions;if((s||l)&&ao||t.dirs||t.transition)return!0;if(n&&d>=0){if(d&1024)return!0;if(d&16)return o?Ru(o,r,f):!!r;if(d&8){const p=t.dynamicProps;for(let m=0;m<p.length;m++){const y=p[m];if(r[y]!==o[y]&&!Hi(f,y))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:o===r?!1:o?r?Ru(o,r,f):!0:!!r;return!1}function Ru(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const i=o[s];if(t[i]!==e[i]&&!Hi(n,i))return!0}return!1}function Sa({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Bw=e=>e.__isSuspense,ju={name:"Suspense",__isSuspense:!0,process(e,t,n,o,s,i,r,l,d,f){e==null?Dw(t,n,o,s,i,r,l,d,f):Nw(e,t,n,o,s,r,l,d,f)},hydrate:Rw,create:Ea,normalize:jw};function $s(e,t){const n=e.props&&e.props[t];xe(n)&&n()}function Dw(e,t,n,o,s,i,r,l,d){const{p:f,o:{createElement:p}}=d,m=p("div"),y=e.suspense=Ea(e,s,o,t,m,n,i,r,l,d);f(null,y.pendingBranch=e.ssContent,m,null,o,y,i,r),y.deps>0?($s(e,"onPending"),$s(e,"onFallback"),f(null,e.ssFallback,t,n,o,null,i,r),jo(y,e.ssFallback)):y.resolve()}function Nw(e,t,n,o,s,i,r,l,{p:d,um:f,o:{createElement:p}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const y=t.ssContent,C=t.ssFallback,{activeBranch:E,pendingBranch:A,isInFallback:N,isHydrating:V}=m;if(A)m.pendingBranch=y,Nn(y,A)?(d(A,y,m.hiddenContainer,null,s,m,i,r,l),m.deps<=0?m.resolve():N&&(d(E,C,n,o,s,null,i,r,l),jo(m,C))):(m.pendingId++,V?(m.isHydrating=!1,m.activeBranch=A):f(A,s,m),m.deps=0,m.effects.length=0,m.hiddenContainer=p("div"),N?(d(null,y,m.hiddenContainer,null,s,m,i,r,l),m.deps<=0?m.resolve():(d(E,C,n,o,s,null,i,r,l),jo(m,C))):E&&Nn(y,E)?(d(E,y,n,o,s,m,i,r,l),m.resolve(!0)):(d(null,y,m.hiddenContainer,null,s,m,i,r,l),m.deps<=0&&m.resolve()));else if(E&&Nn(y,E))d(E,y,n,o,s,m,i,r,l),jo(m,y);else if($s(t,"onPending"),m.pendingBranch=y,m.pendingId++,d(null,y,m.hiddenContainer,null,s,m,i,r,l),m.deps<=0)m.resolve();else{const{timeout:O,pendingId:P}=m;O>0?setTimeout(()=>{m.pendingId===P&&m.fallback(C)},O):O===0&&m.fallback(C)}}let Fu=!1;function Ea(e,t,n,o,s,i,r,l,d,f,p=!1){Fu||(Fu=!0,console[console.info?"info":"log"]("<Suspense> is an experimental feature and its API will likely change."));const{p:m,m:y,um:C,n:E,o:{parentNode:A,remove:N}}=f,V=e.props?yg(e.props.timeout):void 0;cw(V,"Suspense timeout");const O={vnode:e,parent:t,parentComponent:n,isSVG:r,container:o,hiddenContainer:s,anchor:i,deps:0,pendingId:0,timeout:typeof V=="number"?V:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:p,isUnmounted:!1,effects:[],resolve(P=!1){{if(!P&&!O.pendingBranch)throw new Error("suspense.resolve() is called without a pending branch.");if(O.isUnmounted)throw new Error("suspense.resolve() is called on an already unmounted suspense boundary.")}const{vnode:D,activeBranch:G,pendingBranch:ee,pendingId:Oe,effects:ke,parentComponent:Se,container:Te}=O;if(O.isHydrating)O.isHydrating=!1;else if(!P){const Ee=G&&ee.transition&&ee.transition.mode==="out-in";Ee&&(G.transition.afterLeave=()=>{Oe===O.pendingId&&y(ee,Te,ie,0)});let{anchor:ie}=O;G&&(ie=E(G),C(G,Se,O,!0)),Ee||y(ee,Te,ie,0)}jo(O,ee),O.pendingBranch=null,O.isInFallback=!1;let he=O.parent,se=!1;for(;he;){if(he.pendingBranch){he.effects.push(...ke),se=!0;break}he=he.parent}se||ya(ke),O.effects=[],$s(D,"onResolve")},fallback(P){if(!O.pendingBranch)return;const{vnode:D,activeBranch:G,parentComponent:ee,container:Oe,isSVG:ke}=O;$s(D,"onFallback");const Se=E(G),Te=()=>{!O.isInFallback||(m(null,P,Oe,Se,ee,null,ke,l,d),jo(O,P))},he=P.transition&&P.transition.mode==="out-in";he&&(G.transition.afterLeave=Te),O.isInFallback=!0,C(G,ee,null,!0),he||Te()},move(P,D,G){O.activeBranch&&y(O.activeBranch,P,D,G),O.container=P},next(){return O.activeBranch&&E(O.activeBranch)},registerDep(P,D){const G=!!O.pendingBranch;G&&O.deps++;const ee=P.vnode.el;P.asyncDep.catch(Oe=>{ys(Oe,P,0)}).then(Oe=>{if(P.isUnmounted||O.isUnmounted||O.pendingId!==P.suspenseId)return;P.asyncResolved=!0;const{vnode:ke}=P;gs(ke),Ua(P,Oe,!1),ee&&(ke.el=ee);const Se=!ee&&P.subTree.el;D(P,ke,A(ee||P.subTree.el),ee?null:E(P.subTree),O,r,d),Se&&N(Se),Sa(P,ke.el),ws(),G&&--O.deps===0&&O.resolve()})},unmount(P,D){O.isUnmounted=!0,O.activeBranch&&C(O.activeBranch,n,P,D),O.pendingBranch&&C(O.pendingBranch,n,P,D)}};return O}function Rw(e,t,n,o,s,i,r,l,d){const f=t.suspense=Ea(t,o,n,e.parentNode,document.createElement("div"),null,s,i,r,l,!0),p=d(e,f.pendingBranch=t.ssContent,n,f,i,r);return f.deps===0&&f.resolve(),p}function jw(e){const{shapeFlag:t,children:n}=e,o=t&32;e.ssContent=Hu(o?n.default:n),e.ssFallback=o?Hu(n.fallback):ve(bt)}function Hu(e){let t;if(xe(e)){const n=Fo&&e._c;n&&(e._d=!1,Z()),e=e(),n&&(e._d=!0,t=Nt,dd())}if(pe(e)){const n=ka(e);n||Q("<Suspense> slots expect a single root node."),e=n}return e=jt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Fw(e,t){t&&t.pendingBranch?pe(e)?t.effects.push(...e):t.effects.push(e):ya(e)}function jo(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e,s=n.el=t.el;o&&o.subTree===n&&(o.vnode.el=s,Sa(o,s))}function ks(e,t){if(!Ye)Q("provide() can only be used inside setup().");else{let n=Ye.provides;const o=Ye.parent&&Ye.parent.provides;o===n&&(n=Ye.provides=Object.create(o)),n[e]=t}}function Ss(e,t,n=!1){const o=Ye||it;if(o){const s=o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&xe(t)?t.call(o.proxy):t;Q(`injection "${String(e)}" not found.`)}else Q("inject() can only be used inside setup() or functional components.")}const Vi={};function wt(e,t,n){return xe(t)||Q("`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."),Uu(e,t,n)}function Uu(e,t,{immediate:n,deep:o,flush:s,onTrack:i,onTrigger:r}=ze){t||(n!==void 0&&Q('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&Q('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const l=D=>{Q("Invalid watch source: ",D,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},d=_g()===(Ye==null?void 0:Ye.scope)?Ye:null;let f,p=!1,m=!1;if(nt(e)?(f=()=>e.value,p=Ni(e)):io(e)?(f=()=>e,o=!0):pe(e)?(m=!0,p=e.some(D=>io(D)||Ni(D)),f=()=>e.map(D=>{if(nt(D))return D.value;if(io(D))return co(D);if(xe(D))return dn(D,d,2);l(D)})):xe(e)?t?f=()=>dn(e,d,2):f=()=>{if(!(d&&d.isUnmounted))return y&&y(),zt(e,d,3,[C])}:(f=St,l(e)),t&&o){const D=f;f=()=>co(D())}let y,C=D=>{y=O.onStop=()=>{dn(D,d,4)}},E;if(Ls)if(C=St,t?n&&zt(t,d,3,[f(),m?[]:void 0,C]):f(),s==="sync"){const D=zy();E=D.__watcherHandles||(D.__watcherHandles=[])}else return St;let A=m?new Array(e.length).fill(Vi):Vi;const N=()=>{if(!!O.active)if(t){const D=O.run();(o||p||(m?D.some((G,ee)=>ps(G,A[ee])):ps(D,A)))&&(y&&y(),zt(t,d,3,[D,A===Vi?void 0:m&&A[0]===Vi?[]:A,C]),A=D)}else O.run()};N.allowRecurse=!!t;let V;s==="sync"?V=N:s==="post"?V=()=>At(N,d&&d.suspense):(N.pre=!0,d&&(N.id=d.uid),V=()=>Fi(N));const O=new da(f,V);O.onTrack=i,O.onTrigger=r,t?n?N():A=O.run():s==="post"?At(O.run.bind(O),d&&d.suspense):O.run();const P=()=>{O.stop(),d&&d.scope&&sa(d.scope.effects,O)};return E&&E.push(P),P}function Hw(e,t,n){const o=this.proxy,s=Ke(e)?e.includes(".")?zu(o,e):()=>o[e]:e.bind(o,o);let i;xe(t)?i=t:(i=t.handler,n=t);const r=Ye;Fn(this);const l=Uu(s,i.bind(o),n);return r?Fn(r):Hn(),l}function zu(e,t){const n=t.split(".");return()=>{let o=e;for(let s=0;s<n.length&&o;s++)o=o[n[s]];return o}}function co(e,t){if(!Ue(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),nt(e))co(e.value,t);else if(pe(e))for(let n=0;n<e.length;n++)co(e[n],t);else if(Mo(e)||Qn(e))e.forEach(n=>{co(n,t)});else if(Yc(e))for(const n in e)co(e[n],t);return e}function Be(e){return xe(e)?{setup:e,name:e.name}:e}const Es=e=>!!e.type.__asyncLoader,Aa=e=>e.type.__isKeepAlive;function Uw(e,t){qu(e,"a",t)}function zw(e,t){qu(e,"da",t)}function qu(e,t,n=Ye){const o=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Wi(t,o,n),n){let s=n.parent;for(;s&&s.parent;)Aa(s.parent.vnode)&&qw(o,t,n,s),s=s.parent}}function qw(e,t,n,o){const s=Wi(t,e,o,!0);As(()=>{sa(o[t],s)},n)}function Wi(e,t,n=Ye,o=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;oo(),Fn(n);const l=zt(t,n,e,r);return Hn(),so(),l});return o?s.unshift(i):s.push(i),i}else{const s=to(ma[e].replace(/ hook$/,""));Q(`${s} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const fn=e=>(t,n=Ye)=>(!Ls||e==="sp")&&Wi(e,(...o)=>t(...o),n),qt=fn("bm"),Vt=fn("m"),Vw=fn("bu"),Ww=fn("u"),Vu=fn("bum"),As=fn("um"),Kw=fn("sp"),Gw=fn("rtg"),Jw=fn("rtc");function Yw(e,t=Ye){Wi("ec",e,t)}function Wu(e){mg(e)&&Q("Do not use built-in directive ids as custom directive id: "+e)}function oe(e,t){const n=it;if(n===null)return Q("withDirectives can only be used inside render functions."),e;const o=Zi(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,l,d,f=ze]=t[i];r&&(xe(r)&&(r={mounted:r,updated:r}),r.deep&&co(l),s.push({dir:r,instance:o,value:l,oldValue:void 0,arg:d,modifiers:f}))}return e}function uo(e,t,n,o){const s=e.dirs,i=t&&t.dirs;for(let r=0;r<s.length;r++){const l=s[r];i&&(l.oldValue=i[r].value);let d=l.dir[o];d&&(oo(),zt(d,n,8,[e.el,l,e,t]),so())}}const Pa="components";function fo(e,t){return Zw(Pa,e,!0,t)||e}const Xw=Symbol();function Zw(e,t,n=!0,o=!1){const s=it||Ye;if(s){const i=s.type;if(e===Pa){const l=qa(i,!1);if(l&&(l===t||l===Qt(t)||l===eo(Qt(t))))return i}const r=Ku(s[e]||i[e],t)||Ku(s.appContext[e],t);if(!r&&o)return i;if(n&&!r){const l=e===Pa?`
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";Q(`Failed to resolve ${e.slice(0,-1)}: ${t}${l}`)}return r}else Q(`resolve${eo(e.slice(0,-1))} can only be used in render() or setup().`)}function Ku(e,t){return e&&(e[t]||e[Qt(t)]||e[eo(Qt(t))])}function dt(e,t,n,o){let s;const i=n&&n[o];if(pe(e)||Ke(e)){s=new Array(e.length);for(let r=0,l=e.length;r<l;r++)s[r]=t(e[r],r,void 0,i&&i[r])}else if(typeof e=="number"){Number.isInteger(e)||Q(`The v-for range expect an integer value but got ${e}.`),s=new Array(e);for(let r=0;r<e;r++)s[r]=t(r+1,r,void 0,i&&i[r])}else if(Ue(e))if(e[Symbol.iterator])s=Array.from(e,(r,l)=>t(r,l,void 0,i&&i[l]));else{const r=Object.keys(e);s=new Array(r.length);for(let l=0,d=r.length;l<d;l++){const f=r[l];s[l]=t(e[f],f,l,i&&i[l])}}else s=[];return n&&(n[o]=s),s}function pn(e,t,n={},o,s){if(it.isCE||it.parent&&Es(it.parent)&&it.parent.isCE)return t!=="default"&&(n.name=t),ve("slot",n,o&&o());let i=e[t];i&&i.length>1&&(Q("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),i=()=>[]),i&&i._c&&(i._d=!1),Z();const r=i&&Gu(i(n)),l=Rt(De,{key:n.key||r&&r.key||`_${t}`},r||(o?o():[]),r&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Gu(e){return e.some(t=>Ho(t)?!(t.type===bt||t.type===De&&!Gu(t.children)):!0)?e:null}const Oa=e=>e?yd(e)?Zi(e)||e.proxy:Oa(e.parent):null,po=tt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>Do(e.props),$attrs:e=>Do(e.attrs),$slots:e=>Do(e.slots),$refs:e=>Do(e.refs),$parent:e=>Oa(e.parent),$root:e=>Oa(e.root),$emit:e=>e.emit,$options:e=>Ma(e),$forceUpdate:e=>e.f||(e.f=()=>Fi(e.update)),$nextTick:e=>e.n||(e.n=ji.bind(e.proxy)),$watch:e=>Hw.bind(e)}),Ia=e=>e==="_"||e==="$",Ta=(e,t)=>e!==ze&&!e.__isScriptSetup&&Me(e,t),Ju={get({_:e},t){const{ctx:n,setupState:o,data:s,props:i,accessCache:r,type:l,appContext:d}=e;if(t==="__isVue")return!0;let f;if(t[0]!=="$"){const C=r[t];if(C!==void 0)switch(C){case 1:return o[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(Ta(o,t))return r[t]=1,o[t];if(s!==ze&&Me(s,t))return r[t]=2,s[t];if((f=e.propsOptions[0])&&Me(f,t))return r[t]=3,i[t];if(n!==ze&&Me(n,t))return r[t]=4,n[t];La&&(r[t]=0)}}const p=po[t];let m,y;if(p)return t==="$attrs"&&(Et(e,"get",t),qi()),p(e);if((m=l.__cssModules)&&(m=m[t]))return m;if(n!==ze&&Me(n,t))return r[t]=4,n[t];if(y=d.config.globalProperties,Me(y,t))return y[t];it&&(!Ke(t)||t.indexOf("__v")!==0)&&(s!==ze&&Ia(t[0])&&Me(s,t)?Q(`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===it&&Q(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:o,setupState:s,ctx:i}=e;return Ta(s,t)?(s[t]=n,!0):s.__isScriptSetup&&Me(s,t)?(Q(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):o!==ze&&Me(o,t)?(o[t]=n,!0):Me(e.props,t)?(Q(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(Q(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(t in e.appContext.config.globalProperties?Object.defineProperty(i,t,{enumerable:!0,configurable:!0,value:n}):i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:s,propsOptions:i}},r){let l;return!!n[r]||e!==ze&&Me(e,r)||Ta(t,r)||(l=i[0])&&Me(l,r)||Me(o,r)||Me(po,r)||Me(s.config.globalProperties,r)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Me(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};Ju.ownKeys=e=>(Q("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 Qw(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(po).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:()=>po[n](e),set:St})}),t}function ey(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:St})})}function ty(e){const{ctx:t,setupState:n}=e;Object.keys(Pe(n)).forEach(o=>{if(!n.__isScriptSetup){if(Ia(o[0])){Q(`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:St})}})}function ny(){const e=Object.create(null);return(t,n)=>{e[n]?Q(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}let La=!0;function oy(e){const t=Ma(e),n=e.proxy,o=e.ctx;La=!1,t.beforeCreate&&Yu(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:r,watch:l,provide:d,inject:f,created:p,beforeMount:m,mounted:y,beforeUpdate:C,updated:E,activated:A,deactivated:N,beforeDestroy:V,beforeUnmount:O,destroyed:P,unmounted:D,render:G,renderTracked:ee,renderTriggered:Oe,errorCaptured:ke,serverPrefetch:Se,expose:Te,inheritAttrs:he,components:se,directives:Ee,filters:ie}=t,He=ny();{const[J]=e.propsOptions;if(J)for(const R in J)He("Props",R)}if(f&&sy(f,o,He,e.appContext.config.unwrapInjectedRef),r)for(const J in r){const R=r[J];xe(R)?(Object.defineProperty(o,J,{value:R.bind(n),configurable:!0,enumerable:!0,writable:!0}),He("Methods",J)):Q(`Method "${J}" has type "${typeof R}" in the component definition. Did you reference the function correctly?`)}if(s){xe(s)||Q("The data option must be a function. Plain object usage is no longer supported.");const J=s.call(n,n);if(_i(J)&&Q("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Ue(J))Q("data() should return an object.");else{e.data=Bi(J);for(const R in J)He("Data",R),Ia(R[0])||Object.defineProperty(o,R,{configurable:!0,enumerable:!0,get:()=>J[R],set:St})}}if(La=!0,i)for(const J in i){const R=i[J],de=xe(R)?R.bind(n,n):xe(R.get)?R.get.bind(n,n):St;de===St&&Q(`Computed property "${J}" has no getter.`);const Ce=!xe(R)&&xe(R.set)?R.set.bind(n):()=>{Q(`Write operation failed: computed property "${J}" is readonly.`)},Ie=Uo({get:de,set:Ce});Object.defineProperty(o,J,{enumerable:!0,configurable:!0,get:()=>Ie.value,set:Xe=>Ie.value=Xe}),He("Computed",J)}if(l)for(const J in l)Xu(l[J],o,n,J);if(d){const J=xe(d)?d.call(n):d;Reflect.ownKeys(J).forEach(R=>{ks(R,J[R])})}p&&Yu(p,e,"c");function B(J,R){pe(R)?R.forEach(de=>J(de.bind(n))):R&&J(R.bind(n))}if(B(qt,m),B(Vt,y),B(Vw,C),B(Ww,E),B(Uw,A),B(zw,N),B(Yw,ke),B(Jw,ee),B(Gw,Oe),B(Vu,O),B(As,D),B(Kw,Se),pe(Te))if(Te.length){const J=e.exposed||(e.exposed={});Te.forEach(R=>{Object.defineProperty(J,R,{get:()=>n[R],set:de=>n[R]=de})})}else e.exposed||(e.exposed={});G&&e.render===St&&(e.render=G),he!=null&&(e.inheritAttrs=he),se&&(e.components=se),Ee&&(e.directives=Ee)}function sy(e,t,n=St,o=!1){pe(e)&&(e=Ba(e));for(const s in e){const i=e[s];let r;Ue(i)?"default"in i?r=Ss(i.from||s,i.default,!0):r=Ss(i.from||s):r=Ss(i),nt(r)?o?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:l=>r.value=l}):(Q(`injected property "${s}" is a ref and will be auto-unwrapped and no longer needs \`.value\` in the next minor release. To opt-in to the new behavior now, set \`app.config.unwrapInjectedRef = true\` (this config is temporary and will not be needed in the future.)`),t[s]=r):t[s]=r,n("Inject",s)}}function Yu(e,t,n){zt(pe(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Xu(e,t,n,o){const s=o.includes(".")?zu(n,o):()=>n[o];if(Ke(e)){const i=t[e];xe(i)?wt(s,i):Q(`Invalid watch handler specified by key "${e}"`,i)}else if(xe(e))wt(s,e.bind(n));else if(Ue(e))if(pe(e))e.forEach(i=>Xu(i,t,n,o));else{const i=xe(e.handler)?e.handler.bind(n):t[e.handler];xe(i)?wt(s,i,e):Q(`Invalid watch handler specified by key "${e.handler}"`,i)}else Q(`Invalid watch option: "${o}"`,e)}function Ma(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,l=i.get(t);let d;return l?d=l:!s.length&&!n&&!o?d=t:(d={},s.length&&s.forEach(f=>Ki(d,f,r,!0)),Ki(d,t,r)),Ue(t)&&i.set(t,d),d}function Ki(e,t,n,o=!1){const{mixins:s,extends:i}=t;i&&Ki(e,i,n,!0),s&&s.forEach(r=>Ki(e,r,n,!0));for(const r in t)if(o&&r==="expose")Q('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const l=iy[r]||n&&n[r];e[r]=l?l(e[r],t[r]):t[r]}return e}const iy={data:Zu,props:ho,emits:ho,methods:ho,computed:ho,beforeCreate:yt,created:yt,beforeMount:yt,mounted:yt,beforeUpdate:yt,updated:yt,beforeDestroy:yt,beforeUnmount:yt,destroyed:yt,unmounted:yt,activated:yt,deactivated:yt,errorCaptured:yt,serverPrefetch:yt,components:ho,directives:ho,watch:ay,provide:Zu,inject:ry};function Zu(e,t){return t?e?function(){return tt(xe(e)?e.call(this,this):e,xe(t)?t.call(this,this):t)}:t:e}function ry(e,t){return ho(Ba(e),Ba(t))}function Ba(e){if(pe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function yt(e,t){return e?[...new Set([].concat(e,t))]:t}function ho(e,t){return e?tt(tt(Object.create(null),e),t):t}function ay(e,t){if(!e)return t;if(!t)return e;const n=tt(Object.create(null),e);for(const o in t)n[o]=yt(e[o],t[o]);return n}function ly(e,t,n,o=!1){const s={},i={};$i(i,Yi,1),e.propsDefaults=Object.create(null),Qu(e,t,s,i);for(const r in e.propsOptions[0])r in s||(s[r]=void 0);sd(t||{},s,e),n?e.props=o?s:Yg(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function cy(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function uy(e,t,n,o){const{props:s,attrs:i,vnode:{patchFlag:r}}=e,l=Pe(s),[d]=e.propsOptions;let f=!1;if(!cy(e)&&(o||r>0)&&!(r&16)){if(r&8){const p=e.vnode.dynamicProps;for(let m=0;m<p.length;m++){let y=p[m];if(Hi(e.emitsOptions,y))continue;const C=t[y];if(d)if(Me(i,y))C!==i[y]&&(i[y]=C,f=!0);else{const E=Qt(y);s[E]=Da(d,l,E,C,e,!1)}else C!==i[y]&&(i[y]=C,f=!0)}}}else{Qu(e,t,s,i)&&(f=!0);let p;for(const m in l)(!t||!Me(t,m)&&((p=cn(m))===m||!Me(t,p)))&&(d?n&&(n[m]!==void 0||n[p]!==void 0)&&(s[m]=Da(d,l,m,void 0,e,!0)):delete s[m]);if(i!==l)for(const m in i)(!t||!Me(t,m)&&!0)&&(delete i[m],f=!0)}f&&un(e,"set","$attrs"),sd(t||{},s,e)}function Qu(e,t,n,o){const[s,i]=e.propsOptions;let r=!1,l;if(t)for(let d in t){if(xi(d))continue;const f=t[d];let p;s&&Me(s,p=Qt(d))?!i||!i.includes(p)?n[p]=f:(l||(l={}))[p]=f:Hi(e.emitsOptions,d)||(!(d in o)||f!==o[d])&&(o[d]=f,r=!0)}if(i){const d=Pe(n),f=l||ze;for(let p=0;p<i.length;p++){const m=i[p];n[m]=Da(s,d,m,f[m],e,!Me(f,m))}}return r}function Da(e,t,n,o,s,i){const r=e[n];if(r!=null){const l=Me(r,"default");if(l&&o===void 0){const d=r.default;if(r.type!==Function&&xe(d)){const{propsDefaults:f}=s;n in f?o=f[n]:(Fn(s),o=f[n]=d.call(null,t),Hn())}else o=d}r[0]&&(i&&!l?o=!1:r[1]&&(o===""||o===cn(n))&&(o=!0))}return o}function ed(e,t,n=!1){const o=t.propsCache,s=o.get(e);if(s)return s;const i=e.props,r={},l=[];let d=!1;if(!xe(e)){const p=m=>{d=!0;const[y,C]=ed(m,t,!0);tt(r,y),C&&l.push(...C)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!i&&!d)return Ue(e)&&o.set(e,Lo),Lo;if(pe(i))for(let p=0;p<i.length;p++){Ke(i[p])||Q("props must be strings when using array syntax.",i[p]);const m=Qt(i[p]);td(m)&&(r[m]=ze)}else if(i){Ue(i)||Q("invalid props options",i);for(const p in i){const m=Qt(p);if(td(m)){const y=i[p],C=r[m]=pe(y)||xe(y)?{type:y}:Object.assign({},y);if(C){const E=od(Boolean,C.type),A=od(String,C.type);C[0]=E>-1,C[1]=A<0||E<A,(E>-1||Me(C,"default"))&&l.push(m)}}}}const f=[r,l];return Ue(e)&&o.set(e,f),f}function td(e){return e[0]!=="$"?!0:(Q(`Invalid prop name: "${e}" is a reserved property.`),!1)}function Na(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function nd(e,t){return Na(e)===Na(t)}function od(e,t){return pe(t)?t.findIndex(n=>nd(n,e)):xe(t)&&nd(t,e)?0:-1}function sd(e,t,n){const o=Pe(t),s=n.propsOptions[0];for(const i in s){let r=s[i];r!=null&&dy(i,o[i],r,!Me(e,i)&&!Me(e,cn(i)))}}function dy(e,t,n,o){const{type:s,required:i,validator:r}=n;if(i&&o){Q('Missing required prop: "'+e+'"');return}if(!(t==null&&!n.required)){if(s!=null&&s!==!0){let l=!1;const d=pe(s)?s:[s],f=[];for(let p=0;p<d.length&&!l;p++){const{valid:m,expectedType:y}=py(t,d[p]);f.push(y||""),l=m}if(!l){Q(hy(e,t,f));return}}r&&!r(t)&&Q('Invalid prop: custom validator check failed for prop "'+e+'".')}}const fy=On("String,Number,Boolean,Function,Symbol,BigInt");function py(e,t){let n;const o=Na(t);if(fy(o)){const s=typeof e;n=s===o.toLowerCase(),!n&&s==="object"&&(n=e instanceof t)}else o==="Object"?n=Ue(e):o==="Array"?n=pe(e):o==="null"?n=e===null:n=e instanceof t;return{valid:n,expectedType:o}}function hy(e,t,n){let o=`Invalid prop: type check failed for prop "${e}". Expected ${n.map(eo).join(" | ")}`;const s=n[0],i=ia(t),r=id(t,s),l=id(t,i);return n.length===1&&rd(s)&&!my(s,i)&&(o+=` with value ${r}`),o+=`, got ${i} `,rd(i)&&(o+=`with value ${l}.`),o}function id(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function rd(e){return["string","number","boolean"].some(n=>e.toLowerCase()===n)}function my(...e){return e.some(t=>t.toLowerCase()==="boolean")}const ad=e=>e[0]==="_"||e==="$stable",Ra=e=>pe(e)?e.map(jt):[jt(e)],gy=(e,t,n)=>{if(t._n)return t;const o=Ve((...s)=>(Ye&&Q(`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.`),Ra(t(...s))),n);return o._c=!1,o},ld=(e,t,n)=>{const o=e._ctx;for(const s in e){if(ad(s))continue;const i=e[s];if(xe(i))t[s]=gy(s,i,o);else if(i!=null){Q(`Non-function value encountered for slot "${s}". Prefer function slots for better performance.`);const r=Ra(i);t[s]=()=>r}}},cd=(e,t)=>{Aa(e.vnode)||Q("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=Ra(t);e.slots.default=()=>n},wy=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Pe(t),$i(t,"_",n)):ld(t,e.slots={})}else e.slots={},t&&cd(e,t);$i(e.slots,Yi,1)},yy=(e,t,n)=>{const{vnode:o,slots:s}=e;let i=!0,r=ze;if(o.shapeFlag&32){const l=t._;l?ao?tt(s,t):n&&l===1?i=!1:(tt(s,t),!n&&l===1&&delete s._):(i=!t.$stable,ld(t,s)),r=t}else t&&(cd(e,t),r={default:1});if(i)for(const l in s)!ad(l)&&!(l in r)&&delete s[l]};function ud(){return{app:null,config:{isNativeTag:Kc,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 by=0;function vy(e,t){return function(o,s=null){xe(o)||(o=Object.assign({},o)),s!=null&&!Ue(s)&&(Q("root props passed to app.mount() must be an object."),s=null);const i=ud(),r=new Set;let l=!1;const d=i.app={_uid:by++,_component:o,_props:s,_container:null,_context:i,_instance:null,version:_d,get config(){return i.config},set config(f){Q("app.config cannot be replaced. Modify individual options instead.")},use(f,...p){return r.has(f)?Q("Plugin has already been applied to target app."):f&&xe(f.install)?(r.add(f),f.install(d,...p)):xe(f)?(r.add(f),f(d,...p)):Q('A plugin must either be a function or an object with an "install" function.'),d},mixin(f){return i.mixins.includes(f)?Q("Mixin has already been applied to target app"+(f.name?`: ${f.name}`:"")):i.mixins.push(f),d},component(f,p){return Ha(f,i.config),p?(i.components[f]&&Q(`Component "${f}" has already been registered in target app.`),i.components[f]=p,d):i.components[f]},directive(f,p){return Wu(f),p?(i.directives[f]&&Q(`Directive "${f}" has already been registered in target app.`),i.directives[f]=p,d):i.directives[f]},mount(f,p,m){if(l)Q("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__&&Q("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const y=ve(o,s);return y.appContext=i,i.reload=()=>{e(Rn(y),f,m)},p&&t?t(y,f):e(y,f,m),l=!0,d._container=f,f.__vue_app__=d,d._instance=y.component,bw(d,_d),Zi(y.component)||y.component.proxy}},unmount(){l?(e(null,d._container),d._instance=null,vw(d),delete d._container.__vue_app__):Q("Cannot unmount an app that is not mounted.")},provide(f,p){return f in i.provides&&Q(`App already provides property with key "${String(f)}". It will be overwritten with the new value.`),i.provides[f]=p,d}};return d}}function ja(e,t,n,o,s=!1){if(pe(e)){e.forEach((y,C)=>ja(y,t&&(pe(t)?t[C]:t),n,o,s));return}if(Es(o)&&!s)return;const i=o.shapeFlag&4?Zi(o.component)||o.component.proxy:o.el,r=s?null:i,{i:l,r:d}=e;if(!l){Q("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const f=t&&t.r,p=l.refs===ze?l.refs={}:l.refs,m=l.setupState;if(f!=null&&f!==d&&(Ke(f)?(p[f]=null,Me(m,f)&&(m[f]=null)):nt(f)&&(f.value=null)),xe(d))dn(d,l,12,[r,p]);else{const y=Ke(d),C=nt(d);if(y||C){const E=()=>{if(e.f){const A=y?Me(m,d)?m[d]:p[d]:d.value;s?pe(A)&&sa(A,i):pe(A)?A.includes(i)||A.push(i):y?(p[d]=[i],Me(m,d)&&(m[d]=p[d])):(d.value=[i],e.k&&(p[e.k]=d.value))}else y?(p[d]=r,Me(m,d)&&(m[d]=r)):C?(d.value=r,e.k&&(p[e.k]=r)):Q("Invalid template ref type:",d,`(${typeof d})`)};r?(E.id=-1,At(E,n)):E()}else Q("Invalid template ref type:",d,`(${typeof d})`)}}let Ps,Dn;function hn(e,t){e.appContext.config.performance&&Gi()&&Dn.mark(`vue-${t}-${e.uid}`),$w(e,t,Gi()?Dn.now():Date.now())}function mn(e,t){if(e.appContext.config.performance&&Gi()){const n=`vue-${t}-${e.uid}`,o=n+":end";Dn.mark(o),Dn.measure(`<${Qi(e,e.type)}> ${t}`,n,o),Dn.clearMarks(n),Dn.clearMarks(o)}kw(e,t,Gi()?Dn.now():Date.now())}function Gi(){return Ps!==void 0||(typeof window<"u"&&window.performance?(Ps=!0,Dn=window.performance):Ps=!1),Ps}function _y(){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 xy(e){return Cy(e)}function Cy(e,t){_y();const n=Zc();n.__VUE__=!0,Lu(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:o,remove:s,patchProp:i,createElement:r,createText:l,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:y,setScopeId:C=St,insertStaticContent:E}=e,A=(b,S,L,T=null,H=null,X=null,ne=!1,q=null,K=ao?!1:!!S.dynamicChildren)=>{if(b===S)return;b&&!Nn(b,S)&&(T=_t(b),Ze(b,H,X,!0),b=null),S.patchFlag===-2&&(K=!1,S.dynamicChildren=null);const{type:W,ref:ae,shapeFlag:j}=S;switch(W){case Os:N(b,S,L,T);break;case bt:V(b,S,L,T);break;case Is:b==null?O(S,L,T,ne):P(b,S,L,ne);break;case De:Ee(b,S,L,T,H,X,ne,q,K);break;default:j&1?ee(b,S,L,T,H,X,ne,q,K):j&6?ie(b,S,L,T,H,X,ne,q,K):j&64||j&128?W.process(b,S,L,T,H,X,ne,q,K,et):Q("Invalid VNode type:",W,`(${typeof W})`)}ae!=null&&H&&ja(ae,b&&b.ref,X,S||b,!S)},N=(b,S,L,T)=>{if(b==null)o(S.el=l(S.children),L,T);else{const H=S.el=b.el;S.children!==b.children&&f(H,S.children)}},V=(b,S,L,T)=>{b==null?o(S.el=d(S.children||""),L,T):S.el=b.el},O=(b,S,L,T)=>{[b.el,b.anchor]=E(b.children,S,L,T,b.el,b.anchor)},P=(b,S,L,T)=>{if(S.children!==b.children){const H=y(b.anchor);G(b),[S.el,S.anchor]=E(S.children,L,H,T)}else S.el=b.el,S.anchor=b.anchor},D=({el:b,anchor:S},L,T)=>{let H;for(;b&&b!==S;)H=y(b),o(b,L,T),b=H;o(S,L,T)},G=({el:b,anchor:S})=>{let L;for(;b&&b!==S;)L=y(b),s(b),b=L;s(S)},ee=(b,S,L,T,H,X,ne,q,K)=>{ne=ne||S.type==="svg",b==null?Oe(S,L,T,H,X,ne,q,K):Te(b,S,H,X,ne,q,K)},Oe=(b,S,L,T,H,X,ne,q)=>{let K,W;const{type:ae,props:j,shapeFlag:le,transition:h,dirs:w}=b;if(K=b.el=r(b.type,X,j&&j.is,j),le&8?p(K,b.children):le&16&&Se(b.children,K,null,T,H,X&&ae!=="foreignObject",ne,q),w&&uo(b,null,T,"created"),ke(K,b,b.scopeId,ne,T),j){for(const x in j)x!=="value"&&!xi(x)&&i(K,x,null,j[x],X,b.children,T,H,vt);"value"in j&&i(K,"value",null,j.value),(W=j.onVnodeBeforeMount)&&on(W,T,b)}Object.defineProperty(K,"__vnode",{value:b,enumerable:!1}),Object.defineProperty(K,"__vueParentComponent",{value:T,enumerable:!1}),w&&uo(b,null,T,"beforeMount");const _=(!H||H&&!H.pendingBranch)&&h&&!h.persisted;_&&h.beforeEnter(K),o(K,S,L),((W=j&&j.onVnodeMounted)||_||w)&&At(()=>{W&&on(W,T,b),_&&h.enter(K),w&&uo(b,null,T,"mounted")},H)},ke=(b,S,L,T,H)=>{if(L&&C(b,L),T)for(let X=0;X<T.length;X++)C(b,T[X]);if(H){let X=H.subTree;if(X.patchFlag>0&&X.patchFlag&2048&&(X=ka(X.children)||X),S===X){const ne=H.vnode;ke(b,ne,ne.scopeId,ne.slotScopeIds,H.parent)}}},Se=(b,S,L,T,H,X,ne,q,K=0)=>{for(let W=K;W<b.length;W++){const ae=b[W]=q?jn(b[W]):jt(b[W]);A(null,ae,S,L,T,H,X,ne,q)}},Te=(b,S,L,T,H,X,ne)=>{const q=S.el=b.el;let{patchFlag:K,dynamicChildren:W,dirs:ae}=S;K|=b.patchFlag&16;const j=b.props||ze,le=S.props||ze;let h;L&&mo(L,!1),(h=le.onVnodeBeforeUpdate)&&on(h,L,S,b),ae&&uo(S,b,L,"beforeUpdate"),L&&mo(L,!0),ao&&(K=0,ne=!1,W=null);const w=H&&S.type!=="foreignObject";if(W?(he(b.dynamicChildren,W,q,L,T,w,X),L&&L.type.__hmrId&&Ji(b,S)):ne||de(b,S,q,null,L,T,w,X,!1),K>0){if(K&16)se(q,S,j,le,L,T,H);else if(K&2&&j.class!==le.class&&i(q,"class",null,le.class,H),K&4&&i(q,"style",j.style,le.style,H),K&8){const _=S.dynamicProps;for(let x=0;x<_.length;x++){const I=_[x],k=j[I],F=le[I];(F!==k||I==="value")&&i(q,I,k,F,H,b.children,L,T,vt)}}K&1&&b.children!==S.children&&p(q,S.children)}else!ne&&W==null&&se(q,S,j,le,L,T,H);((h=le.onVnodeUpdated)||ae)&&At(()=>{h&&on(h,L,S,b),ae&&uo(S,b,L,"updated")},T)},he=(b,S,L,T,H,X,ne)=>{for(let q=0;q<S.length;q++){const K=b[q],W=S[q],ae=K.el&&(K.type===De||!Nn(K,W)||K.shapeFlag&70)?m(K.el):L;A(K,W,ae,null,T,H,X,ne,!0)}},se=(b,S,L,T,H,X,ne)=>{if(L!==T){if(L!==ze)for(const q in L)!xi(q)&&!(q in T)&&i(b,q,L[q],null,ne,S.children,H,X,vt);for(const q in T){if(xi(q))continue;const K=T[q],W=L[q];K!==W&&q!=="value"&&i(b,q,W,K,ne,S.children,H,X,vt)}"value"in T&&i(b,"value",L.value,T.value)}},Ee=(b,S,L,T,H,X,ne,q,K)=>{const W=S.el=b?b.el:l(""),ae=S.anchor=b?b.anchor:l("");let{patchFlag:j,dynamicChildren:le,slotScopeIds:h}=S;(ao||j&2048)&&(j=0,K=!1,le=null),h&&(q=q?q.concat(h):h),b==null?(o(W,L,T),o(ae,L,T),Se(S.children,L,ae,H,X,ne,q,K)):j>0&&j&64&&le&&b.dynamicChildren?(he(b.dynamicChildren,le,L,H,X,ne,q),H&&H.type.__hmrId?Ji(b,S):(S.key!=null||H&&S===H.subTree)&&Ji(b,S,!0)):de(b,S,L,ae,H,X,ne,q,K)},ie=(b,S,L,T,H,X,ne,q,K)=>{S.slotScopeIds=q,b==null?S.shapeFlag&512?H.ctx.activate(S,L,T,ne,K):He(S,L,T,H,X,ne,K):B(b,S,K)},He=(b,S,L,T,H,X,ne)=>{const q=b.component=Iy(b,T,H);if(q.type.__hmrId&&mw(q),gs(b),hn(q,"mount"),Aa(b)&&(q.ctx.renderer=et),hn(q,"init"),My(q),mn(q,"init"),q.asyncDep){if(H&&H.registerDep(q,J),!b.el){const K=q.subTree=ve(bt);V(null,K,S,L)}return}J(q,b,S,L,H,X,ne),ws(),mn(q,"mount")},B=(b,S,L)=>{const T=S.component=b.component;if(Mw(b,S,L))if(T.asyncDep&&!T.asyncResolved){gs(S),R(T,S,L),ws();return}else T.next=S,pw(T.update),T.update();else S.el=b.el,T.vnode=S},J=(b,S,L,T,H,X,ne)=>{const q=()=>{if(b.isMounted){let{next:ae,bu:j,u:le,parent:h,vnode:w}=b,_=ae,x;gs(ae||b.vnode),mo(b,!1),ae?(ae.el=w.el,R(b,ae,ne)):ae=w,j&&Bo(j),(x=ae.props&&ae.props.onVnodeBeforeUpdate)&&on(x,h,ae,w),mo(b,!0),hn(b,"render");const I=$a(b);mn(b,"render");const k=b.subTree;b.subTree=I,hn(b,"patch"),A(k,I,m(k.el),_t(k),b,H,X),mn(b,"patch"),ae.el=I.el,_===null&&Sa(b,I.el),le&&At(le,H),(x=ae.props&&ae.props.onVnodeUpdated)&&At(()=>on(x,h,ae,w),H),Mu(b),ws()}else{let ae;const{el:j,props:le}=S,{bm:h,m:w,parent:_}=b,x=Es(S);if(mo(b,!1),h&&Bo(h),!x&&(ae=le&&le.onVnodeBeforeMount)&&on(ae,_,S),mo(b,!0),j&&at){const I=()=>{hn(b,"render"),b.subTree=$a(b),mn(b,"render"),hn(b,"hydrate"),at(j,b.subTree,b,H,null),mn(b,"hydrate")};x?S.type.__asyncLoader().then(()=>!b.isUnmounted&&I()):I()}else{hn(b,"render");const I=b.subTree=$a(b);mn(b,"render"),hn(b,"patch"),A(null,I,L,T,b,H,X),mn(b,"patch"),S.el=I.el}if(w&&At(w,H),!x&&(ae=le&&le.onVnodeMounted)){const I=S;At(()=>on(ae,_,I),H)}(S.shapeFlag&256||_&&Es(_.vnode)&&_.vnode.shapeFlag&256)&&b.a&&At(b.a,H),b.isMounted=!0,_w(b),S=L=T=null}},K=b.effect=new da(q,()=>Fi(W),b.scope),W=b.update=()=>K.run();W.id=b.uid,mo(b,!0),K.onTrack=b.rtc?ae=>Bo(b.rtc,ae):void 0,K.onTrigger=b.rtg?ae=>Bo(b.rtg,ae):void 0,W.ownerInstance=b,W()},R=(b,S,L)=>{S.component=b;const T=b.vnode.props;b.vnode=S,b.next=null,uy(b,S.props,T,L),yy(b,S.children,L),oo(),Au(),so()},de=(b,S,L,T,H,X,ne,q,K=!1)=>{const W=b&&b.children,ae=b?b.shapeFlag:0,j=S.children,{patchFlag:le,shapeFlag:h}=S;if(le>0){if(le&128){Ie(W,j,L,T,H,X,ne,q,K);return}else if(le&256){Ce(W,j,L,T,H,X,ne,q,K);return}}h&8?(ae&16&&vt(W,H,X),j!==W&&p(L,j)):ae&16?h&16?Ie(W,j,L,T,H,X,ne,q,K):vt(W,H,X,!0):(ae&8&&p(L,""),h&16&&Se(j,L,T,H,X,ne,q,K))},Ce=(b,S,L,T,H,X,ne,q,K)=>{b=b||Lo,S=S||Lo;const W=b.length,ae=S.length,j=Math.min(W,ae);let le;for(le=0;le<j;le++){const h=S[le]=K?jn(S[le]):jt(S[le]);A(b[le],h,L,null,H,X,ne,q,K)}W>ae?vt(b,H,X,!0,!1,j):Se(S,L,T,H,X,ne,q,K,j)},Ie=(b,S,L,T,H,X,ne,q,K)=>{let W=0;const ae=S.length;let j=b.length-1,le=ae-1;for(;W<=j&&W<=le;){const h=b[W],w=S[W]=K?jn(S[W]):jt(S[W]);if(Nn(h,w))A(h,w,L,null,H,X,ne,q,K);else break;W++}for(;W<=j&&W<=le;){const h=b[j],w=S[le]=K?jn(S[le]):jt(S[le]);if(Nn(h,w))A(h,w,L,null,H,X,ne,q,K);else break;j--,le--}if(W>j){if(W<=le){const h=le+1,w=h<ae?S[h].el:T;for(;W<=le;)A(null,S[W]=K?jn(S[W]):jt(S[W]),L,w,H,X,ne,q,K),W++}}else if(W>le)for(;W<=j;)Ze(b[W],H,X,!0),W++;else{const h=W,w=W,_=new Map;for(W=w;W<=le;W++){const ye=S[W]=K?jn(S[W]):jt(S[W]);ye.key!=null&&(_.has(ye.key)&&Q("Duplicate keys found during update:",JSON.stringify(ye.key),"Make sure keys are unique."),_.set(ye.key,W))}let x,I=0;const k=le-w+1;let F=!1,U=0;const Y=new Array(k);for(W=0;W<k;W++)Y[W]=0;for(W=h;W<=j;W++){const ye=b[W];if(I>=k){Ze(ye,H,X,!0);continue}let ue;if(ye.key!=null)ue=_.get(ye.key);else for(x=w;x<=le;x++)if(Y[x-w]===0&&Nn(ye,S[x])){ue=x;break}ue===void 0?Ze(ye,H,X,!0):(Y[ue-w]=W+1,ue>=U?U=ue:F=!0,A(ye,S[ue],L,null,H,X,ne,q,K),I++)}const _e=F?$y(Y):Lo;for(x=_e.length-1,W=k-1;W>=0;W--){const ye=w+W,ue=S[ye],Ne=ye+1<ae?S[ye+1].el:T;Y[W]===0?A(null,ue,L,Ne,H,X,ne,q,K):F&&(x<0||W!==_e[x]?Xe(ue,L,Ne,2):x--)}}},Xe=(b,S,L,T,H=null)=>{const{el:X,type:ne,transition:q,children:K,shapeFlag:W}=b;if(W&6){Xe(b.component.subTree,S,L,T);return}if(W&128){b.suspense.move(S,L,T);return}if(W&64){ne.move(b,S,L,et);return}if(ne===De){o(X,S,L);for(let j=0;j<K.length;j++)Xe(K[j],S,L,T);o(b.anchor,S,L);return}if(ne===Is){D(b,S,L);return}if(T!==2&&W&1&&q)if(T===0)q.beforeEnter(X),o(X,S,L),At(()=>q.enter(X),H);else{const{leave:j,delayLeave:le,afterLeave:h}=q,w=()=>o(X,S,L),_=()=>{j(X,()=>{w(),h&&h()})};le?le(X,w,_):_()}else o(X,S,L)},Ze=(b,S,L,T=!1,H=!1)=>{const{type:X,props:ne,ref:q,children:K,dynamicChildren:W,shapeFlag:ae,patchFlag:j,dirs:le}=b;if(q!=null&&ja(q,null,L,b,!0),ae&256){S.ctx.deactivate(b);return}const h=ae&1&&le,w=!Es(b);let _;if(w&&(_=ne&&ne.onVnodeBeforeUnmount)&&on(_,S,b),ae&6)xn(b.component,L,T);else{if(ae&128){b.suspense.unmount(L,T);return}h&&uo(b,null,S,"beforeUnmount"),ae&64?b.type.remove(b,S,L,H,et,T):W&&(X!==De||j>0&&j&64)?vt(W,S,L,!1,!0):(X===De&&j&384||!H&&ae&16)&&vt(K,S,L),T&&It(b)}(w&&(_=ne&&ne.onVnodeUnmounted)||h)&&At(()=>{_&&on(_,S,b),h&&uo(b,null,S,"unmounted")},L)},It=b=>{const{type:S,el:L,anchor:T,transition:H}=b;if(S===De){b.patchFlag>0&&b.patchFlag&2048&&H&&!H.persisted?b.children.forEach(ne=>{ne.type===bt?s(ne.el):It(ne)}):Tt(L,T);return}if(S===Is){G(b);return}const X=()=>{s(L),H&&!H.persisted&&H.afterLeave&&H.afterLeave()};if(b.shapeFlag&1&&H&&!H.persisted){const{leave:ne,delayLeave:q}=H,K=()=>ne(L,X);q?q(b.el,X,K):K()}else X()},Tt=(b,S)=>{let L;for(;b!==S;)L=y(b),s(b),b=L;s(S)},xn=(b,S,L)=>{b.type.__hmrId&&gw(b);const{bum:T,scope:H,update:X,subTree:ne,um:q}=b;T&&Bo(T),H.stop(),X&&(X.active=!1,Ze(ne,b,S,L)),q&&At(q,S),At(()=>{b.isUnmounted=!0},S),S&&S.pendingBranch&&!S.isUnmounted&&b.asyncDep&&!b.asyncResolved&&b.suspenseId===S.pendingId&&(S.deps--,S.deps===0&&S.resolve()),Cw(b)},vt=(b,S,L,T=!1,H=!1,X=0)=>{for(let ne=X;ne<b.length;ne++)Ze(b[ne],S,L,T,H)},_t=b=>b.shapeFlag&6?_t(b.component.subTree):b.shapeFlag&128?b.suspense.next():y(b.anchor||b.el),ct=(b,S,L)=>{b==null?S._vnode&&Ze(S._vnode,null,null,!0):A(S._vnode||null,b,S,null,null,null,L),Au(),Pu(),S._vnode=b},et={p:A,um:Ze,m:Xe,r:It,mt:He,mc:Se,pc:de,pbc:he,n:_t,o:e};let Jn,at;return t&&([Jn,at]=t(et)),{render:ct,hydrate:Jn,createApp:vy(ct,Jn)}}function mo({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ji(e,t,n=!1){const o=e.children,s=t.children;if(pe(o)&&pe(s))for(let i=0;i<o.length;i++){const r=o[i];let l=s[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=s[i]=jn(s[i]),l.el=r.el),n||Ji(r,l)),l.type===Os&&(l.el=r.el),l.type===bt&&!l.el&&(l.el=r.el)}}function $y(e){const t=e.slice(),n=[0];let o,s,i,r,l;const d=e.length;for(o=0;o<d;o++){const f=e[o];if(f!==0){if(s=n[n.length-1],e[s]<f){t[o]=s,n.push(o);continue}for(i=0,r=n.length-1;i<r;)l=i+r>>1,e[n[l]]<f?i=l+1:r=l;f<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,r=n[i-1];i-- >0;)n[i]=r,r=t[r];return n}const ky=e=>e.__isTeleport,De=Symbol("Fragment"),Os=Symbol("Text"),bt=Symbol("Comment"),Is=Symbol("Static"),Ts=[];let Nt=null;function Z(e=!1){Ts.push(Nt=e?null:[])}function dd(){Ts.pop(),Nt=Ts[Ts.length-1]||null}let Fo=1;function fd(e){Fo+=e}function pd(e){return e.dynamicChildren=Fo>0?Nt||Lo:null,dd(),Fo>0&&Nt&&Nt.push(e),e}function te(e,t,n,o,s,i){return pd(u(e,t,n,o,s,i,!0))}function Rt(e,t,n,o,s){return pd(ve(e,t,n,o,s,!0))}function Ho(e){return e?e.__v_isVNode===!0:!1}function Nn(e,t){return t.shapeFlag&6&&Ro.has(t.type)?(e.shapeFlag&=-257,t.shapeFlag&=-513,!1):e.type===t.type&&e.key===t.key}const Sy=(...e)=>Ey(...e),Yi="__vInternal",hd=({key:e})=>e!=null?e:null,Xi=({ref:e,ref_key:t,ref_for:n})=>e!=null?Ke(e)||nt(e)||xe(e)?{i:it,r:e,k:t,f:!!n}:e:null;function u(e,t=null,n=null,o=0,s=null,i=e===De?0:1,r=!1,l=!1){const d={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&hd(t),ref:t&&Xi(t),scopeId:Ui,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:it};return l?(Fa(d,n),i&128&&e.normalize(d)):n&&(d.shapeFlag|=Ke(n)?8:16),d.key!==d.key&&Q("VNode created with invalid key (NaN). VNode type:",d.type),Fo>0&&!r&&Nt&&(d.patchFlag>0||i&6)&&d.patchFlag!==32&&Nt.push(d),d}const ve=Sy;function Ey(e,t=null,n=null,o=0,s=null,i=!1){if((!e||e===Xw)&&(e||Q(`Invalid vnode type when creating vnode: ${e}.`),e=bt),Ho(e)){const l=Rn(e,t,!0);return n&&Fa(l,n),Fo>0&&!i&&Nt&&(l.shapeFlag&6?Nt[Nt.indexOf(e)]=l:Nt.push(l)),l.patchFlag|=-2,l}if(vd(e)&&(e=e.__vccOpts),t){t=md(t);let{class:l,style:d}=t;l&&!Ke(l)&&(t.class=Je(l)),Ue(d)&&(Ri(d)&&!pe(d)&&(d=tt({},d)),t.style=ln(d))}const r=Ke(e)?1:Bw(e)?128:ky(e)?64:Ue(e)?4:xe(e)?2:0;return r&4&&Ri(e)&&(e=Pe(e),Q("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)),u(e,t,n,o,s,r,i,!0)}function md(e){return e?Ri(e)||Yi in e?tt({},e):e:null}function Rn(e,t,n=!1){const{props:o,ref:s,patchFlag:i,children:r}=e,l=t?wd(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&hd(l),ref:t&&t.ref?n&&s?pe(s)?s.concat(Xi(t)):[s,Xi(t)]:Xi(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i===-1&&pe(r)?r.map(gd):r,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==De?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Rn(e.ssContent),ssFallback:e.ssFallback&&Rn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function gd(e){const t=Rn(e);return pe(e.children)&&(t.children=e.children.map(gd)),t}function re(e=" ",t=0){return ve(Os,null,e,t)}function Ay(e,t){const n=ve(Is,null,e);return n.staticCount=t,n}function Ge(e="",t=!1){return t?(Z(),Rt(bt,null,e)):ve(bt,null,e)}function jt(e){return e==null||typeof e=="boolean"?ve(bt):pe(e)?ve(De,null,e.slice()):typeof e=="object"?jn(e):ve(Os,null,String(e))}function jn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Rn(e)}function Fa(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(pe(t))n=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),Fa(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(Yi in t)?t._ctx=it:s===3&&it&&(it.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else xe(t)?(t={default:t,_ctx:it},n=32):(t=String(t),o&64?(n=16,t=[re(t)]):n=8);e.children=t,e.shapeFlag|=n}function wd(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=Je([t.class,o.class]));else if(s==="style")t.style=ln([t.style,o.style]);else if(us(s)){const i=t[s],r=o[s];r&&i!==r&&!(pe(i)&&i.includes(r))&&(t[s]=i?[].concat(i,r):r)}else s!==""&&(t[s]=o[s])}return t}function on(e,t,n,o=null){zt(e,t,7,[n,o])}const Py=ud();let Oy=0;function Iy(e,t,n){const o=e.type,s=(t?t.appContext:e.appContext)||Py,i={uid:Oy++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new bg(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ed(o,s),emitsOptions:Du(o,s),emit:null,emitted:null,propsDefaults:ze,inheritAttrs:o.inheritAttrs,ctx:ze,data:ze,props:ze,attrs:ze,slots:ze,refs:ze,setupState:ze,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx=Qw(i),i.root=t?t.root:i,i.emit=Ew.bind(null,i),e.ce&&e.ce(i),i}let Ye=null;const Ty=()=>Ye||it,Fn=e=>{Ye=e,e.scope.on()},Hn=()=>{Ye&&Ye.scope.off(),Ye=null},Ly=On("slot,component");function Ha(e,t){const n=t.isNativeTag||Kc;(Ly(e)||n(e))&&Q("Do not use built-in or reserved HTML elements as component id: "+e)}function yd(e){return e.vnode.shapeFlag&4}let Ls=!1;function My(e,t=!1){Ls=t;const{props:n,children:o}=e.vnode,s=yd(e);ly(e,n,s,t),wy(e,o);const i=s?By(e,t):void 0;return Ls=!1,i}function By(e,t){var n;const o=e.type;{if(o.name&&Ha(o.name,e.appContext.config),o.components){const i=Object.keys(o.components);for(let r=0;r<i.length;r++)Ha(i[r],e.appContext.config)}if(o.directives){const i=Object.keys(o.directives);for(let r=0;r<i.length;r++)Wu(i[r])}o.compilerOptions&&Dy()&&Q('"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=vu(new Proxy(e.ctx,Ju)),ey(e);const{setup:s}=o;if(s){const i=e.setupContext=s.length>1?Ry(e):null;Fn(e),oo();const r=dn(s,e,0,[Do(e.props),i]);if(so(),Hn(),_i(r)){if(r.then(Hn,Hn),t)return r.then(l=>{Ua(e,l,t)}).catch(l=>{ys(l,e,0)});if(e.asyncDep=r,!e.suspense){const l=(n=o.name)!==null&&n!==void 0?n:"Anonymous";Q(`Component <${l}>: 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 Ua(e,r,t)}else bd(e,t)}function Ua(e,t,n){xe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ue(t)?(Ho(t)&&Q("setup() should not return VNodes directly - return a render function instead."),e.devtoolsRawSetupState=t,e.setupState=Cu(t),ty(e)):t!==void 0&&Q(`setup() should return an object. Received: ${t===null?"null":typeof t}`),bd(e,n)}let za;const Dy=()=>!za;function bd(e,t,n){const o=e.type;if(!e.render){if(!t&&za&&!o.render){const s=o.template||Ma(e).template;if(s){hn(e,"compile");const{isCustomElement:i,compilerOptions:r}=e.appContext.config,{delimiters:l,compilerOptions:d}=o,f=tt(tt({isCustomElement:i,delimiters:l},r),d);o.render=za(s,f),mn(e,"compile")}}e.render=o.render||St}Fn(e),oo(),oy(e),so(),Hn(),!o.render&&e.render===St&&!t&&(o.template?Q('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".'):Q("Component is missing template or render function."))}function Ny(e){return new Proxy(e.attrs,{get(t,n){return qi(),Et(e,"get","$attrs"),t[n]},set(){return Q("setupContext.attrs is readonly."),!1},deleteProperty(){return Q("setupContext.attrs is readonly."),!1}})}function Ry(e){const t=o=>{if(e.exposed&&Q("expose() should be called only once per setup()."),o!=null){let s=typeof o;s==="object"&&(pe(o)?s="array":nt(o)&&(s="ref")),s!=="object"&&Q(`expose() should be passed a plain object, received ${s}.`)}e.exposed=o||{}};let n;return Object.freeze({get attrs(){return n||(n=Ny(e))},get slots(){return Do(e.slots)},get emit(){return(o,...s)=>e.emit(o,...s)},expose:t})}function Zi(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Cu(vu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in po)return po[n](e)},has(t,n){return n in t||n in po}}))}const jy=/(?:^|[-_])(\w)/g,Fy=e=>e.replace(jy,t=>t.toUpperCase()).replace(/[-_]/g,"");function qa(e,t=!0){return xe(e)?e.displayName||e.name:e.name||t&&e.__name}function Qi(e,t,n=!1){let o=qa(t);if(!o&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(o=s[1])}if(!o&&e&&e.parent){const s=i=>{for(const r in i)if(i[r]===t)return r};o=s(e.components||e.parent.type.components)||s(e.appContext.components)}return o?Fy(o):n?"App":"Anonymous"}function vd(e){return xe(e)&&"__vccOpts"in e}const Uo=(e,t)=>sw(e,t,Ls);function gn(e){const t=Ty();t||Q("withAsyncContext called without active current instance. This is likely a bug.");let n=e();return Hn(),_i(n)&&(n=n.catch(o=>{throw Fn(t),o})),[n,()=>Fn(t)]}function Hy(e,t,n){const o=arguments.length;return o===2?Ue(t)&&!pe(t)?Ho(t)?ve(e,null,[t]):ve(e,t):ve(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Ho(n)&&(n=[n]),ve(e,t,n))}const Uy=Symbol("ssrContext"),zy=()=>{{const e=Ss(Uy);return e||Q("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Va(e){return!!(e&&e.__v_isShallow)}function qy(){if(typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#0b1bc9"},n={style:"color:#b62e24"},o={style:"color:#9d288c"},s={header(m){return Ue(m)?m.__isVue?["div",e,"VueInstance"]:nt(m)?["div",{},["span",e,p(m)],"<",l(m.value),">"]:io(m)?["div",{},["span",e,Va(m)?"ShallowReactive":"Reactive"],"<",l(m),`>${Mn(m)?" (readonly)":""}`]:Mn(m)?["div",{},["span",e,Va(m)?"ShallowReadonly":"Readonly"],"<",l(m),">"]:null:null},hasBody(m){return m&&m.__isVue},body(m){if(m&&m.__isVue)return["div",{},...i(m.$)]}};function i(m){const y=[];m.type.props&&m.props&&y.push(r("props",Pe(m.props))),m.setupState!==ze&&y.push(r("setup",m.setupState)),m.data!==ze&&y.push(r("data",Pe(m.data)));const C=d(m,"computed");C&&y.push(r("computed",C));const E=d(m,"inject");return E&&y.push(r("injected",E)),y.push(["div",{},["span",{style:o.style+";opacity:0.66"},"$ (internal): "],["object",{object:m}]]),y}function r(m,y){return y=tt({},y),Object.keys(y).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},m],["div",{style:"padding-left:1.25em"},...Object.keys(y).map(C=>["div",{},["span",o,C+": "],l(y[C],!1)])]]:["span",{}]}function l(m,y=!0){return typeof m=="number"?["span",t,m]:typeof m=="string"?["span",n,JSON.stringify(m)]:typeof m=="boolean"?["span",o,m]:Ue(m)?["object",{object:y?Pe(m):m}]:["span",n,String(m)]}function d(m,y){const C=m.type;if(xe(C))return;const E={};for(const A in m.ctx)f(C,A,y)&&(E[A]=m.ctx[A]);return E}function f(m,y,C){const E=m[C];if(pe(E)&&E.includes(y)||Ue(E)&&y in E||m.extends&&f(m.extends,y,C)||m.mixins&&m.mixins.some(A=>f(A,y,C)))return!0}function p(m){return Va(m)?"ShallowRef":m.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(s):window.devtoolsFormatters=[s]}const _d="3.2.47",Vy="http://www.w3.org/2000/svg",go=typeof document<"u"?document:null,xd=go&&go.createElement("template"),Wy={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const s=t?go.createElementNS(Vy,e):go.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>go.createTextNode(e),createComment:e=>go.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>go.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,s,i){const r=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{xd.innerHTML=o?`<svg>${e}</svg>`:e;const l=xd.content;if(o){const d=l.firstChild;for(;d.firstChild;)l.appendChild(d.firstChild);l.removeChild(d)}t.insertBefore(l,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Ky(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 Gy(e,t,n){const o=e.style,s=Ke(n);if(n&&!s){if(t&&!Ke(t))for(const i in t)n[i]==null&&Wa(o,i,"");for(const i in n)Wa(o,i,n[i])}else{const i=o.display;s?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=i)}}const Jy=/[^\\];\s*$/,Cd=/\s*!important$/;function Wa(e,t,n){if(pe(n))n.forEach(o=>Wa(e,t,o));else if(n==null&&(n=""),Jy.test(n)&&Q(`Unexpected semicolon at the end of '${t}' style value: '${n}'`),t.startsWith("--"))e.setProperty(t,n);else{const o=Yy(e,t);Cd.test(n)?e.setProperty(cn(o),n.replace(Cd,""),"important"):e[o]=n}}const $d=["Webkit","Moz","ms"],Ka={};function Yy(e,t){const n=Ka[t];if(n)return n;let o=Qt(t);if(o!=="filter"&&o in e)return Ka[t]=o;o=eo(o);for(let s=0;s<$d.length;s++){const i=$d[s]+o;if(i in e)return Ka[t]=i}return t}const kd="http://www.w3.org/1999/xlink";function Xy(e,t,n,o,s){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(kd,t.slice(6,t.length)):e.setAttributeNS(kd,t,n);else{const i=dg(t);n==null||i&&!Vc(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function Zy(e,t,n,o,s,i,r){if(t==="innerHTML"||t==="textContent"){o&&r(o,s,i),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const d=n==null?"":n;(e.value!==d||e.tagName==="OPTION")&&(e.value=d),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const d=typeof e[t];d==="boolean"?n=Vc(n):n==null&&d==="string"?(n="",l=!0):d==="number"&&(n=0,l=!0)}try{e[t]=n}catch(d){l||Q(`Failed setting prop "${t}" on <${e.tagName.toLowerCase()}>: value ${n} is invalid.`,d)}l&&e.removeAttribute(t)}function Un(e,t,n,o){e.addEventListener(t,n,o)}function Qy(e,t,n,o){e.removeEventListener(t,n,o)}function eb(e,t,n,o,s=null){const i=e._vei||(e._vei={}),r=i[t];if(o&&r)r.value=o;else{const[l,d]=tb(t);if(o){const f=i[t]=sb(o,s);Un(e,l,f,d)}else r&&(Qy(e,l,r,d),i[t]=void 0)}}const Sd=/(?:Once|Passive|Capture)$/;function tb(e){let t;if(Sd.test(e)){t={};let o;for(;o=e.match(Sd);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):cn(e.slice(2)),t]}let Ga=0;const nb=Promise.resolve(),ob=()=>Ga||(nb.then(()=>Ga=0),Ga=Date.now());function sb(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;zt(ib(o,n.value),t,5,[o])};return n.value=e,n.attached=ob(),n}function ib(e,t){if(pe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const Ed=/^on[a-z]/,rb=(e,t,n,o,s=!1,i,r,l,d)=>{t==="class"?Ky(e,o,s):t==="style"?Gy(e,n,o):us(t)?vi(t)||eb(e,t,n,o,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ab(e,t,o,s))?Zy(e,t,o,i,r,l,d):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Xy(e,t,o,s))};function ab(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Ed.test(t)&&xe(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ed.test(t)&&Ke(n)?!1:t in e}const zo=e=>{const t=e.props["onUpdate:modelValue"]||!1;return pe(t)?n=>Bo(t,n):t};function lb(e){e.target.composing=!0}function Ad(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const qe={created(e,{modifiers:{lazy:t,trim:n,number:o}},s){e._assign=zo(s);const i=o||s.props&&s.props.type==="number";Un(e,t?"change":"input",r=>{if(r.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=ki(l)),e._assign(l)}),n&&Un(e,"change",()=>{e.value=e.value.trim()}),t||(Un(e,"compositionstart",lb),Un(e,"compositionend",Ad),Un(e,"change",Ad))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:s}},i){if(e._assign=zo(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(s||e.type==="number")&&ki(e.value)===t))return;const r=t==null?"":t;e.value!==r&&(e.value=r)}},Le={deep:!0,created(e,t,n){e._assign=zo(n),Un(e,"change",()=>{const o=e._modelValue,s=Ms(e),i=e.checked,r=e._assign;if(pe(o)){const l=oa(o,s),d=l!==-1;if(i&&!d)r(o.concat(s));else if(!i&&d){const f=[...o];f.splice(l,1),r(f)}}else if(Mo(o)){const l=new Set(o);i?l.add(s):l.delete(s),r(l)}else r(Td(e,i))})},mounted:Pd,beforeUpdate(e,t,n){e._assign=zo(n),Pd(e,t,n)}};function Pd(e,{value:t,oldValue:n},o){e._modelValue=t,pe(t)?e.checked=oa(t,o.props.value)>-1:Mo(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=cs(t,Td(e,!0)))}const Od={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const s=Mo(t);Un(e,"change",()=>{const i=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?ki(Ms(r)):Ms(r));e._assign(e.multiple?s?new Set(i):i:i[0])}),e._assign=zo(o)},mounted(e,{value:t}){Id(e,t)},beforeUpdate(e,t,n){e._assign=zo(n)},updated(e,{value:t}){Id(e,t)}};function Id(e,t){const n=e.multiple;if(n&&!pe(t)&&!Mo(t)){Q(`<select multiple v-model> expects an Array or Set value for its binding, but got ${Object.prototype.toString.call(t).slice(8,-1)}.`);return}for(let o=0,s=e.options.length;o<s;o++){const i=e.options[o],r=Ms(i);if(n)pe(t)?i.selected=oa(t,r)>-1:i.selected=t.has(r);else if(cs(Ms(i),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}function Ms(e){return"_value"in e?e._value:e.value}function Td(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const cb={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ld=(e,t)=>n=>{if(!("key"in n))return;const o=cn(n.key);if(t.some(s=>s===o||cb[s]===o))return e(n)},Wt={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Bs(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),Bs(e,!0),o.enter(e)):o.leave(e,()=>{Bs(e,!1)}):Bs(e,t))},beforeUnmount(e,{value:t}){Bs(e,t)}};function Bs(e,t){e.style.display=t?e._vod:"none"}const ub=tt({patchProp:rb},Wy);let Md;function db(){return Md||(Md=xy(ub))}const wo=(...e)=>{const t=db().createApp(...e);fb(t),pb(t);const{mount:n}=t;return t.mount=o=>{const s=hb(o);if(!s)return;const i=t._component;!xe(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const r=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),r},t};function fb(e){Object.defineProperty(e.config,"isNativeTag",{value:t=>cg(t)||ug(t),writable:!1})}function pb(e){{const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get(){return t},set(){Q("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 Q(o),n},set(){Q(o)}})}}function hb(e){if(Ke(e)){const t=document.querySelector(e);return t||Q(`Failed to mount app: mount target selector "${e}" returned null.`),t}return window.ShadowRoot&&e instanceof window.ShadowRoot&&e.mode==="closed"&&Q('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}function mb(){qy()}mb();const gb={key:0,class:"ce-custom-url-help"},wb={class:"ce-custom-url-help-body"},yb=u("hr",null,null,-1),bb={key:0},vb={class:"pure-table pure-table-bordered"},_b=u("thead",null,[u("tr",null,[u("th",{width:"50%"},"变量"),u("th",{width:"50%"},"说明")])],-1),xb=["onClick"],Cb=Be({__name:"CustomUrlHelp",setup(e){const t=ge(Nm),n=ge(!1);Vt(async()=>{window.addEventListener("message",s=>{const{event:i}=s.data;i==="customUrlHelp"&&(n.value=!0)},!1)});const o=s=>{Jt(s.key),ce({text:"已复制到剪贴板",icon:"success",timer:1e3})};return(s,i)=>n.value?(Z(),te("div",gb,[u("div",wb,[u("h1",null,[re(" 自定义菜单变量说明 "),u("a",{href:"javascript:void(0)",onClick:i[0]||(i[0]=r=>n.value=!1)},"关闭")]),yb,(Z(!0),te(De,null,dt(t.value,(r,l)=>(Z(),te("div",{key:l},[u("h2",null,me(r.label),1),r.memo?(Z(),te("p",bb,me(r.memo),1)):Ge("",!0),u("table",vb,[_b,u("tbody",null,[(Z(!0),te(De,null,dt(r.items,(d,f)=>(Z(),te("tr",{key:f},[u("td",null,[u("span",{class:"ce-variable",onClick:p=>o(d)},me(d.key),9,xb)]),u("td",null,me(d.label),1)]))),128))])])]))),128))])])):Ge("",!0)}}),tA="",nA="",Bd="enabled_custom_urls_for_search",Dd="enabled_custom_urls_for_play";async function $b(e){await lt.set(Bd,e)}async function kb(e){await lt.set(Dd,e)}async function Sb(){const e=Za,t=e.filter(s=>s.enabled).map(s=>s.key),n=await lt.get(Bd,t),o=[];return e.forEach(s=>{n.includes(s.key)&&o.push(s.key)}),o}async function Eb(){const e=Xa,t=e.filter(s=>s.enabled).map(s=>s.key),n=await lt.get(Dd,t),o=[];return e.forEach(s=>{n.includes(s.key)&&o.push(s.key)}),o}async function Nd(){const e=await Sb();return Za.forEach(t=>{t.enabled=e.includes(t.key)}),Za}async function Ja(){const e=await Eb();return Xa.forEach(t=>{t.enabled=e.includes(t.key)}),Xa}const Rd="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=",Ya="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",Xa=[ut({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}"}),ut({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}"}),ut({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}"}),ut({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}"}),ut({enabled:!0,key:"p_builtin_infuse",label:"Infuse播放",icon:Ya,memo:"调用Infuse播放视频(使用CloudDrive链接)",url:"infuse://x-callback-url/play?url={clouddrive_stream_url:encode}"}),ut({enabled:!1,key:"p_builtin_nplayer_mac",label:"nPlayer-mac播放",icon:Ya,memo:"调用nPlayer(mac版)播放视频(使用CloudDrive链接)",url:"nplayer-mac://weblink?url={clouddrive_stream_url:encode}&new_window=1"}),ut({enabled:!1,key:"p_builtin_nplayer_win",label:"nPlayer-win播放",icon:Ya,memo:"调用nPlayer(非mac版)播放视频(使用CloudDrive链接)",url:"nplayer-{clouddrive_stream_url:encode}"}),ut({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"})],Za=[ut({enabled:!0,key:"s_builtin_115_pure_name",label:"115-不含后缀",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(不含后缀)",url:"{pure_name:search}"}),ut({enabled:!1,key:"s_builtin_115_full_name",label:"115-完整名称",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(完整文件名)",url:"{full_name:search}"}),ut({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}"}),ut({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}"}),ut({enabled:!0,key:"s_builtin_bing_pure_name",label:"Bing-不含后缀",icon:Rd,memo:"使用Bing搜索文件名(不含后缀)",url:"https://cn.bing.com/search?q={pure_name:encode}"}),ut({enabled:!1,key:"s_builtin_bing_full_name",label:"Bing-完整名称",icon:Rd,memo:"使用Bing搜索文件名(完整文件名)",url:"https://cn.bing.com/search?q={full_name:encode}"}),ut({enabled:!0,key:"s_builtin_115_pure_name_manual",label:"115-不含后缀-手动",icon:"https://115.com/favicon.ico",memo:"使用115搜索文件名(不含后缀),手动编辑后搜索",url:"{pure_name:manual:search}"})],jd="list_config";function Ab(e){return{sizeSorter:!0,sizeSorterDirAttrInterval:100,showSha1:!1,showFolderSizeButton:!0,...e}}async function er(){const e=Ab(),t=await lt.get(jd,e);return{...e,...t}}async function Pb(e){await lt.set(jd,e)}var Fd=(e=>(e[e.asc=0]="asc",e[e.desc=1]="desc",e))(Fd||{});async function Ob(e,t,n=!1){const o=await er(),s=await Zt(!1),i=await Io(),r=await To(!1);console.log("[items]",r),ce({html:"正在获取子文件夹大小...",icon:"info",position:"top-end",timer:0}),fe.showLoading();for(let l=0;l<r.length;l++){const d=r[l];if(!d.cate_id)continue;const f=i.find(`li[cate_id="${d.cate_id}"]`);if(!f.length)continue;const p=f.find(".file-size span:eq(0)");if(p.text()!==""&&!n)continue;const m=await rs(d.cate_id);fe.update({html:`[${l+1} / ${r.length}] 正在获取子文件夹大小:${d.n}`}),p.text(m.size),f.addClass("ce-size-got"),l<r.length-1&&await Yt(o.sizeSorterDirAttrInterval)}return fe.hideLoading(),e&&await Ib(s),s}async function tr(e,t,n,o){const s=await Io();s.find('li[file_type="0"]:not(.ce-size-got)').length>0&&await Ob(n);const r=s.find("ul"),l=r.children("li").toArray();l.sort(function(f,p){const m=$(f),y=$(p),C=Ul(m.find(".file-size span:eq(0)").text()),E=Ul(y.find(".file-size span:eq(0)").text());return t===0?C-E:E-C});const d=$("<ul></ul>");$.each(l,function(f,p){d.append(p)}),r.replaceWith(d),n?fe.update({title:"排序完成",html:`已完成排序: ${t===0?"小 > 大":"大 > 小"}`,icon:"success"}):ce({html:`已完成排序: ${t===0?"小 > 大":"大 > 小"}`,icon:"success",timer:1500,position:"top-end"})}async function Ib(e){fe.fire({toast:!0,title:"获取子文件夹大小",html:"获取子文件夹大小完成",icon:"success",showConfirmButton:!0,confirmButtonText:"大 > 小",confirmButtonColor:"#3085d6",showDenyButton:!0,denyButtonText:"小 > 大",denyButtonColor:"#d33",position:"top-end",showCloseButton:!0,closeButtonAriaLabel:"关闭",preConfirm:async()=>(console.log("preConfirm"),tr(e,1,!0),!1),preDeny:async()=>(console.log("preDeny"),tr(e,0,!0),!1)})}async function Tb(){await Qa();const t=(await Ao("#js_data_list"))[0];Lb(),new MutationObserver(async([o])=>{o.type==="childList"&&await Qa()}).observe(t,{childList:!0})}async function Lb(){if(window.top===window.self)return;const e=document.querySelector("#js_pagination_box");if(!e){console.warn("[list.handleLoadAll] 未找到「#js_pagination_box」元素");return}function t(n){!document.querySelector("#js_data_list .list-contents > ul > li")||n(!0)}e.addEventListener("click",async n=>{n.preventDefault(),n.stopPropagation();const o=n.target;let s=!1;if((o.getAttribute("menu")==="load_all_file"||o.closest('[menu="load_all_file"]'))&&(s=!0),!s)return;console.log("[list.handleLoadAll] 点击了「加载全部」按钮"),await Zs(t,500,3e5);const i=document.querySelector("#js_data_list .list-contents > ul");i==null||i.removeAttribute("ce-done2");const r=document.querySelector("#js_data_list");if(r){const l=".list-contents > ul:not([ce-done2]) > li";r.querySelectorAll(l).length&&(i==null||i.setAttribute("ce-done2",""),await Qa())}})}async function Qa(){const e=await er();Nb(e);const t=await Bc(!1);for(let n=0;n<t.length;n++){const o=t.eq(n),s=await Mt(o);await Mb(e,o,s)}}async function Mb(e,t,n){await Bb(e,t,n),await Db(e,t,n)}async function Bb(e,t,n){if(!e.showSha1||!n.sha)return;t.addClass("ce-show-sha1");const o=t.find(".file-name"),s=document.createElement("span");s.classList.add("ce-file-sha1"),s.title="文件SHA1,点击复制",s.textContent=n.sha,s.addEventListener("click",async i=>{i.preventDefault(),i.stopPropagation(),Jt(n.sha),ce({title:"复制SHA1",text:"已复制文件SHA1",icon:"success",timer:1500})}),o.append(s)}async function Db(e,t,n){if(!e.showFolderSizeButton||!n.cate_id)return;const o=t.find(".file-size"),s=document.createElement("span");s.classList.add("ce-btn-folder-size"),s.title="点击获取该文件夹大小",s.textContent="大小",s.addEventListener("click",async i=>{i.preventDefault(),i.stopPropagation();const r=await rs(n.cate_id);o.find("span:eq(0)").text(r.size),t.addClass("ce-size-got"),ce({title:"获取大小",text:"已获取文件夹大小",icon:"success",timer:1500})}),o.append(s)}async function Nb(e){if(!e.sizeSorter)return;console.log("renderHeaderShowSubFolderSize");const t=document.querySelector(".header-size");if(!t||t.classList.contains("ce-injected"))return;const n=t,o=document.createElement("a");o.classList.add("btn-sort"),o.classList.add("ce-size-sort"),o.title="显示当前目录下已加载的子文件夹的大小,然后按大小排序",o.innerHTML=`
<span>排序</span>
<i icon_rel="file_size" class="icon-sort-asc"></i>
<i icon_rel="file_size" class="icon-sort-desc"></i>
`,o.addEventListener("click",async s=>{if(s.preventDefault(),s.stopPropagation(),!o.classList.contains("el-size-sort-ing"))try{o.classList.add("ce-size-sort-ing");let i=1;o.classList.contains("by-desc")?i=0:i=1;const r=await Zt(!1);await tr(r,i,!1,!1),i===0?(o.classList.remove("by-desc"),o.classList.add("by-asc")):(o.classList.remove("by-asc"),o.classList.add("by-desc"))}catch(i){console.error(i)}finally{o.classList.remove("ce-size-sort-ing")}}),n.appendChild(o),n.classList.add("ce-injected")}async function Rb(e,t){const n=[];for(const o of t){const s=Or(e,{key:`_ce_p_${o.key}`,label:o.label,icon:o.icon,title:o.memo,onClick:async(i,r)=>{r.stopPropagation(),r.preventDefault();try{const l=await Zn();if(!l)return;const d=await Mt(l),f=await Tr(),p=await ea(d,o,f);if(p.includes("v.anxia.com")){const y=(await To(!1)).find(C=>C.play_long&&C.play_long>0);Qr(d.cate_id,y);return}if(console.log("[play url]",p),!p)throw new Error("无法获取有效的播放链接!");window.open(p,"_blank","noopener noreferrer")}catch(l){console.error(l),ce({title:"播放失败",text:l.toString(),icon:"error"})}}});n.push(s)}return n}async function jb(){const e=[...(await Ja()).filter(t=>t.enabled),...(await ls(Pn.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 Rb(Vm,e)]})}async function Fb(){return new Dt({key:"_rename_dir",label:"重命名文件夹",icon:"icon-operate ifo-rename",title:'重命名当前目录,支持"高级模式"',onClick:async(e,t)=>{await e.closeMenu();const n=await Zn();!n||unsafeWindow.Core.Dir.Rename("1",n.attr("cate_id"),n.attr("title"))}})}async function Hb(){return new Dt({key:"_move_dir",label:"移动文件夹",icon:"icon-operate ifo-move",title:"移动当前文件夹到其他位置",onClick:async(e,t)=>{await e.closeMenu();const n=await Zn();!n||await Xr(n,"move",!0)}})}async function Ub(){return new Dt({key:"_del_dir",label:"删除文件夹",icon:"icon-operate ifo-remove",title:"删除当前文件夹",onClick:async(e,t)=>{await e.closeMenu();const n=await Zn();if(!n)return;const o=await ui();unsafeWindow.Core.FileAPI.DeleteFile([n],s=>{n.remove(),o.find("#js_top_header_file_path_box .top-file-path > .file-path").children(":last").prev()[0].click()},!0)}})}async function zb(){return new Dt({key:"_copy_dir",label:"复制文件夹",icon:"icon-operate ifo-copy",title:"复制当前文件夹",onClick:async(e,t)=>{await e.closeMenu();const n=await Zn();!n||await Xr(n,"set_copy",!0)}})}async function qb(){return new Dt({key:"_copy_dir_to",label:"复制文件夹到",icon:"icon-operate ifo-copyto",title:"复制当前文件夹到其他位置",onClick:async(e,t)=>{await e.closeMenu();const n=await Zn();!n||await Xr(n,"copy_list",!0)}})}async function Vb(){return new Dt({key:"view_dir_attribute",label:"查看属性",icon:"icon-operate ifo-prop",onClick:async(e,t)=>{await e.closeMenu();const n=await Zn();!n||as().Core.FileAPI.getAttribute(n,{showPlayLongChange:function(o,s,i){$m().CACHE.FileMain.List.ResetPlayLongText(o,s,i)}},function(){console.log("查看属性 ok")})}})}async function nr(e,t){return new Dt({key:`_d_copy_names_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制当前目录下已加载的所有文件名称",onClick:async(n,o)=>{let i=(await To(!1)).map(r=>r.n);i=await fi(i,t),Jt(i.join(`
`)),ce({title:"复制名称",text:`已复制选中文件名。数量:${i.length},复制类型:${e}`,icon:"success"})}})}async function Hd(e,t){return new Dt({key:`_d_copy_paths_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制当前目录下已加载的所有文件路径",onClick:async(n,o)=>{await n.closeMenu();const s=await To(!1),r=(await di(s[0])).replace(/\/[^/]+$/,""),l=[];for(let d=0;d<s.length;d++){const f=r+"/"+s[d].n;l.push(await pi(s[d],f,t))}Jt(l.join(`
`)),ce({title:"复制路径",text:`已复制文件路径。数量:${l.length},复制类型:${e}`,icon:"success"})}})}async function Wb(){return new Dt({key:"show_sub_folder_size",label:"子文件夹大小",title:"显示当前目录下已加载的所有子文件夹的大小,并进行排序",icon:"icon-operate ifo-prop",onClick:async(e,t)=>{await e.closeMenu(),await tr("",Fd.desc,!0)}})}async function Ud(e,t){return new na({key:`_l_copy_name_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制名称",onClick:async(n,o)=>{await n.closeMenu();const s=await Rc();if(!s||!s.n){ce({text:"无法获取名称",timer:1200});return}let i=[s.n];i=await fi(i,t),Jt(i.join(`
`)),ce({title:"复制名称",text:"已复制选中文件名",icon:"success"})}})}async function zd(e,t){return new na({key:`_l_copy_path_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制路径",onClick:async(n,o)=>{await n.closeMenu();const s=await Rc();if(!s||!s.n){ce({text:"无法获取路径",timer:1200});return}const i=await di(s),r=await pi(s,i,t);Jt(r),ce({title:"复制路径",text:"已复制文件路径",icon:"success"})}})}let Kb=[];async function Gb(){const e=[...(await Ja()).filter(t=>t.enabled),...(await ls(Pn.play)).filter(t=>t.enabled)];return new gi({key:"_play_with_x_d",label:"播放",injectDecider:tg,title:"115在线播放",onClick:async(t,n)=>{n.stopPropagation(),n.preventDefault();const o=$(n.target).closest("li"),s=await Mt(o),i=Nc(s.pc);s.cate_id&&i.includes("v.anxia.com")?Qr(s.cate_id):window.open(i,"_blank","noopener noreferrer")},subItems:[...await Bm(wi,e)]})}async function Jb(){const e=[...(await Nd()).filter(t=>t.enabled),...Kb.filter(t=>t.enabled),...(await ls(Pn.search)).filter(t=>t.enabled)];return new gi({key:"_search_with_name_d",label:"搜索",icon:"",title:"使用名称搜索",onClick:async(t,n)=>{n.stopPropagation(),n.preventDefault();const o=$(n.target).closest("li"),s=await Mt(o),i=Zr({search_value:s.n,cid:await Zt()});window.open(i,"_blank","noopener noreferrer")},subItems:[...await Mm(wi,e)]})}async function Yb(){return new gi({key:"_lh_copy_name_path",label:"名称路径",title:"复制文件名称路径",onClick:async(e,t)=>{},subItems:[await qd("完整名称",Ot.full),await qd("不含后缀",Ot.pure),new Gm({}),await or("路径(Unix)",Ht.unixPath),await or("路径(Windows)",Ht.winPath),await or("上级路径(Unix)",Ht.unixParentPath),await or("上级路径(Windows)",Ht.winParentPath)]})}async function qd(e,t){return new wi({key:`_lh_copy_name_${t}`,label:e,icon:"icon-operate ifo-copy",title:e,onClick:async(n,o)=>{o.stopPropagation(),o.preventDefault();const s=$(o.target).closest("li");let r=[(await Mt(s)).n];r=await fi(r,t),Jt(r.join(`
`)),ce({title:"复制名称",text:`已复制选中文件名,复制类型:${e}`,icon:"success"})}})}async function or(e,t){return new wi({key:`_lh_copy_path_${t}`,label:e,icon:"icon-operate ifo-copy",title:e,onClick:async(n,o)=>{o.stopPropagation(),o.preventDefault();const s=$(o.target).closest("li"),i=await Mt(s),r=await di(i),l=await pi(i,r,t);Jt(l),ce({title:"复制路径",text:`已复制选中路径,复制类型:${e}`,icon:"success"})}})}async function Xb(){return new gi({injectDecider:eg,key:"_open_in_new_tab",label:"新标签页",icon:"",title:"在新标签页打开",onClick:async(e,t)=>{t.stopPropagation(),t.preventDefault();const n=$(t.target).closest("li"),o=await Mt(n);if(!o||!o.cate_id){ce({text:"无法获取目录ID",timer:1200});return}const s=Dc(o.cate_id);window.open(s,"_blank","noopener noreferrer")}})}async function Zb(){return new zc({key:"_s_smart_mkdir",label:"同名目录",icon:"icon-operate ifo-move",title:"将选中的文件移动到同名目录",onClick:await Dm(!0)})}async function Qb(){return new zc({key:"_s_copy_names_paths",label:"名称路径",icon:"icon-operate ifo-copy",title:"复制选中文件的名称路径",onClick:async(e,t)=>{},subItems:[await sr("完整名称",Ot.full),await sr("不含后缀",Ot.pure),await sr("完整文件名,去重",Ot.fullUnique),await sr("不含后缀,去重",Ot.pureUnique),new Jm({}),await Vd("路径(Unix)",Ht.unixPath),await Vd("路径(Windows)",Ht.winPath)]})}async function sr(e,t){return new qc({key:`_s_copy_names_${t}`,label:e,icon:"icon-operate ifo-copy",title:"复制名称",onClick:async(n,o)=>{let i=(await To(!0)).map(r=>r.n);i=await fi(i,t),Jt(i.join(`
`)),ce({title:"复制名称",text:`已复制选中文件名。数量:${i.length},复制类型:${e}`,icon:"success"})}})}async function ev(e,t=100){var i;const n=new Map;for(const r of e){const l=r.parentId;if(!l)throw new Error(`文件"${r.name}"没有父级目录ID!`);n.has(l)?(i=n.get(l))==null||i.push(r):n.set(l,[r])}const o=[];for(const r of n.values())o.push(r[0]);const s=new Map;for(const r of o){const l=await rs(r.id);await Yt(t),s.set(r.parentId,l.paths.map(d=>d.file_name))}return s}async function Vd(e,t){return new qc({key:`_s_copy_path_${t}`,label:e,icon:"icon-operate ifo-copy",title:e,onClick:async(n,o)=>{var d;const s=await To(!0),i=await xm(s);let r=new Map;ce({text:"正在获取上级目录路径...",timer:0}),fe.showLoading();try{r=await ev(i)}catch(f){console.error(f),ce({text:`获取上级目录路径失败: ${f}`,timer:1200,icon:"error"});return}finally{fe.hideLoading()}if(r.size===0)return;const l=[];for(let f=0;f<s.length;f++){const p=(d=r.get(s[f].cid))==null?void 0:d.slice(1).join("/"),m=s[f].n,y=Gp(p+"/"+m,!0);l.push(await pi(s[f],y,t))}Jt(l.join(`
`)),ce({title:"复制路径",text:`已复制选中文件的路径。数量:${l.length},复制类型:${e}`,icon:"success"})}})}const Wd={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"}]},Kd={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"}]},Gd={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"]'}]},Jd="enabled_official_menu_keys";async function tv(){let e=await lt.get(Jd,["__default__"]);return e.length===1&&e[0]==="__default__"&&(e=await Xd([Wd,Kd,Gd]),await Yd(e)),e}async function Yd(e){await lt.set(Jd,e)}async function Xd(e){const t=[];return e.forEach(n=>{n.items.forEach(o=>{o.enabled&&t.push(`${n.key}_${o.key}`)})}),t}async function Zd(){const e=[Wd,Kd,Gd],t=await tv();return e.forEach(n=>{n.items.forEach(o=>{const s=`${n.key}_${o.key}`;t.includes(s)||o.enabled===void 0?o.enabled=!0:o.enabled=!1})}),e}async function nv(){const e=await Zd(),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 s=n.itemSelector.replace("{key}",o.key);t.push(`${n.selector} ${s} { display: none !important; }`)})}),t.join(`
`)}async function ov(){const e="cloud115EnhancerOfficialMenuStyle",t=await nv();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 sv(){const{host:e,search:t}=location;if(!e.includes("115.com"))return;console.log("[Cloud115 Enhancer - menu] running..."),iv(),rv(),document.addEventListener(Bt.EVENT_CLOSE_MENU,o=>{$("#"+o.detail.menu.key).closest(".context-menu").hide()});const n=await ta();!n.enabled||(await jc(n),window.top===window.self&&av(n),cv(n),(t.includes("ct=file")||t.includes("mode=search"))&&(lv(n),uv(n),Lm(n)))}async function iv(){console.log("[Cloud115 Enhancer - menu] injectUI");const e="ceCustomUrlHelp",t=document.createElement("div");t.id=e,document.body.appendChild(t),wo(Cb).mount(`#${e}`)}async function rv(){ov()}const el=async(e,t)=>{};async function av(e){const{[Ae.dirContext]:t}=e;if(!t.enabled)return;const n=[];t.rename&&n.push(await Fb()),t.delete&&n.push(await Ub()),t.play&&n.push(await jb()),t.copyNames&&n.push(new Dt({key:"_dir_copy_names",label:"名称路径",icon:"icon-operate ifo-copy",onClick:el,subItems:[await nr("完整名称",Ot.full),await nr("不含后缀",Ot.pure),await nr("完整名称,去重",Ot.fullUnique),await nr("不含后缀,去重",Ot.pureUnique),new Wm({}),await Hd("路径(Unix)",Ht.unixPath),await Hd("路径(Windows)",Ht.winPath)]}));const o=[];t.move&&o.push(await Hb()),t.viewProp&&o.push(await Vb()),t.showSubFolderSize&&o.push(await Wb()),t.copy&&o.push(await zb()),t.copyTo&&o.push(await qb()),o.length===1?n.push(o[0]):o.length>1&&n.push(new Dt({key:"_dir_more",label:"更多",icon:"icon-operate ifo-open",onClick:el,subItems:o})),await new Ym({items:n,siblingSelector:'[val="add_dir"]',position:Xn.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 lv(e){const{[Ae.listItemHover]:t}=e;if(!t.enabled)return;const n=[];t.openInNewTab&&n.push(await Xb()),t.search&&n.push(await Jb()),t.play&&n.push(await Gb()),t.copyNames&&n.push(await Yb()),new Zm({items:n,position:Xn.after,siblingSelector:'[menu="move"]'}).inject()}async function cv(e){const{[Ae.listItemContext]:t}=e;if(!t.enabled)return;const n=[];t.copyNames&&n.push(new na({key:"_list_item_copy_name_path",label:"名称路径",icon:"icon-operate ifo-copy",onClick:el,subItems:[await Ud("完整名称",Ot.full),await Ud("不含后缀",Ot.pure),new Km({}),await zd("路径(Unix)",Ht.unixPath),await zd("路径(Windows)",Ht.winPath)]})),new Xm({items:n,position:Xn.after,siblingSelector:'[val="refresh"]',useObserver:!0,observeTarget:document.body,disposeObserverAfterInjection:!1}).inject()}async function uv(e){const{[Ae.selection]:t}=e;if(!t.enabled)return;const n=[];location.search.includes("ac=search")||t.moveToSelfNameDir&&n.push(await Zb()),t.copyNames&&n.push(await Qb()),new Qm({items:n,position:Xn.before,siblingSelector:"ul li"}).inject()}const Qd="offlineExporterConfig";function dv(e){return{onlyMagnet:!1,onlyMagnetEd2k:!1,enableOptimization:!0,reqInterval:500,showInfoHash:!0,enableListManagement:!0,maxPage:0,enableSearcher:!0,searchMaxPage:5,...e}}async function Ds(){const e=dv(),t=await lt.get(Qd,e);return{...e,...t}}async function fv(e){await lt.set(Qd,e),window.postMessage({event:ir.configChanged,body:JSON.parse(JSON.stringify(e))},"*")}async function pv(e){const t=await Ao("#js-warp"),o=t[0].querySelectorAll("li[complete]");o.length>0&&o.forEach(async i=>{await ef(i,e)}),wv(e),new MutationObserver(async([i])=>{if(i.type==="childList"){i.addedNodes.forEach(async l=>{await ef(l,e)});const r=document.querySelector(".ce-checkbox-all input");r.checked=!1,await rr([])}}).observe(t[0],{childList:!0})}async function hv(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 ef(e,t){const n=e,o=await hv(e);yv(n,t,o),mv(n,t,o),gv(n,t,o)}async function mv(e,t,n){if(!t.showInfoHash||n.name===n.hash||e.querySelector(".info-hash"))return;const o=e.querySelector(".file-name"),s=document.createElement("div");s.classList.add("info-hash"),s.textContent=n.hash,s.title=`点击复制${n.hash}`,o.after(s),s.addEventListener("click",()=>{Qo(n.hash,"text"),ce({text:"已复制",icon:"success",timer:800})});const i=e.querySelector(".desc-tips");i&&i.style.display!=="none"&&e.classList.add("ce-task-trouble")}async function gv(e,t,n){const o=e.querySelector(".file-operate");if(o.querySelector(".ce-buttons"))return;const s=document.createElement("span");s.className="ce-buttons";const i=document.createElement("a");i.className="pure-button button-mini button-info",i.href=Dc(n.cate_id),i.target="_blank",i.textContent="打开",i.title="在新标签页打开目录",s.append(i),o.prepend(s)}async function wv(e){if(!e.enableListManagement)return;const t=await Ao("#js-main .header-name");if(t.length===0){console.warn("[renderCheckboxAll] 找不到`#js-main .header-name`");return}const n=t[0];let o=n.querySelector(".ce-checkbox-all");o||(o=document.createElement("div"),o.classList.add("ce-checkbox"),o.classList.add("ce-checkbox-all"),o.innerHTML=`
<input type="checkbox"/>
`,n.prepend(o)),o.addEventListener("click",()=>{const s=o.querySelector("input").checked;document.querySelectorAll("#js-warp li").forEach(r=>{const l=r.querySelector("input");l.checked=s,r.classList.toggle("ce-selected",s)}),tl().then(r=>{rr(r)})})}async function yv(e,t,n){if(!t.enableListManagement||e.querySelector(".ce-checkbox"))return;const o=e.querySelector(".file-name-wrap"),s=document.createElement("div");s.classList.add("ce-checkbox"),s.innerHTML=`
<input type="checkbox" data-id="${n.hash}" />
`,o.prepend(s),e.classList.add("ce-show-checkbox"),s.addEventListener("click",async i=>{i.shiftKey?await vv(i,e):await bv(i,e)})}async function bv(e,t){t.classList.toggle("ce-selected");const n=document.querySelector(".ce-checkbox-all input"),o=await nf(!1),s=Array.from(o).every(i=>i.classList.contains("ce-selected"));n.checked=s,tl().then(i=>{rr(i)})}async function vv(e,t){const n=await nf(!1),o=n.indexOf(t);let s=-1;for(let f=0;f<o;f++)if(n[f].classList.contains("ce-selected")){s=f;break}if(s===-1){for(let f=n.length-1;f>o;f--)if(n[f].classList.contains("ce-selected")){s=f;break}}s=s===-1?o:s;const i=Math.min(s,o),r=Math.max(s,o);for(let f=0;f<n.length;f++){const p=n[f],m=p.querySelector(".ce-checkbox input"),y=f>=i&&f<=r;m.checked=y,p.classList.toggle("ce-selected",y)}const l=i===0&&r===n.length-1,d=document.querySelector(".ce-checkbox-all input");d.checked=l,tl().then(f=>{rr(f)})}async function tf(e){const t={info_hash:e.getAttribute("hash"),status:Number(e.getAttribute("status")),name:e.getAttribute("name"),file_id:e.getAttribute("cate_id"),delete_file_id:e.getAttribute("delete_id")};return t.name||(t.name=e.querySelector(".file-name").textContent.trim()),t}async function nf(e){const t=document.querySelectorAll("#js-warp li"),n=[];return t.forEach(async o=>{const s=o;(!e||s.classList.contains("ce-selected"))&&n.push(s)}),n}async function tl(){const e=document.querySelectorAll("#js-warp li"),t=[];return e.forEach(async n=>{const o=n;if(o.classList.contains("ce-selected")){const s=await tf(o);t.push(s)}}),t}var ir=(e=>(e.selection="ce-offline-selection",e.configChanged="ce-offline-config-changed",e))(ir||{});async function rr(e){window.postMessage({event:"ce-offline-selection",body:e},"*")}async function nl(e){document.querySelectorAll("#js-warp li").forEach(async n=>{const o=n,s=o.getAttribute("hash");e.includes(s)&&(o.style.transition="opacity 0.5s",o.style.opacity="0.2",setTimeout(()=>{o.remove()},500))})}async function _v(e,t,n,o=!0){var m;const s=[],i=n.maxPage||5;let r="",l="",d="",f="";n.name!==void 0&&(r=n.caseSensitive?n.name:n.name.toLowerCase()),n.infoHash!==void 0&&(l=n.caseSensitive?n.infoHash:n.infoHash.toLowerCase()),n.url!==void 0&&(d=n.caseSensitive?n.url:n.url.toLowerCase()),n.status!==void 0&&n.status!==$t.any&&n.status.toString()!==""&&(f=n.status.toString()),(l||d)&&(o=!0);let p=-1;for(let y=1;y<=i&&!(p>-1&&y>p);y++){const C=await Oc(y,e,t);p===-1&&(p=C.page_count);const E=C.tasks;for(const A of E){const N=n.caseSensitive?A.name:A.name.toLowerCase(),V=n.caseSensitive?A.info_hash:A.info_hash.toLowerCase(),O=n.caseSensitive?A.url:(m=A.url)==null?void 0:m.toLowerCase(),P=r&&n.fuzzyName?N.includes(r):!1,D=l&&V===l,G=d&&O===d;if((f?f===A.status.toString():!0)&&(P||D||G)&&(s.push(A),o))break}if(o&&s.length)break}return s}const xv={class:"ce-config ce-offline-config"},Cv={class:"pure-form pure-form-aligned offline-exporter-config-form"},$v={class:"pure-control-group"},kv=u("label",{for:"enableListManagement"},"启用批量管理",-1),Sv=u("div",{class:"pure-form-message text-success"}," 可以选中多个任务进行操作,支持shift多选。 ",-1),Ev={class:"pure-control-group"},Av=u("label",{for:"showInfoHash"},"显示链接哈希",-1),Pv=u("div",{class:"pure-form-message text-success"}," 显示离线任务的哈希文本,点击可以复制。 ",-1),Ov=u("div",{class:"ce-tips"},"以下是导出链接相关选项",-1),Iv={class:"pure-control-group"},Tv=u("label",{for:"onlyMagnetEd2k"},"只取磁力和ED2K链接",-1),Lv=u("div",{class:"pure-form-message text-success"}," 导出链接时,只取磁力和ED2K链接,其他比如http链接会被略过。 ",-1),Mv={class:"pure-control-group"},Bv=u("label",{for:"enableOptimization"},"启用导出优化",-1),Dv=u("div",{class:"pure-form-message text-success"}," 据观察,离线记录列表是将未完成的记录放在最前面的。如果只需导出未完成链接, 当获取到一个已完成的记录时,便可以停止继续获取后面的记录,节省时间。 ",-1),Nv={class:"pure-control-group"},Rv=u("label",{for:"reqInterval"},"请求数据间隔",-1),jv=u("div",{class:"pure-form-message text-success"}," 请求分页的间隔,单位为毫秒,建议500左右。 ",-1),Fv={class:"pure-control-group"},Hv=u("label",{for:"maxPage"},"最多导出页数",-1),Uv=u("div",{class:"pure-form-message text-success"}," 0表示不限制,否则表示最多导出的页数。 ",-1),of=Be({__name:"Config",async setup(e){let t,n;const o=ge(([t,n]=gn(()=>Ds()),t=await t,n(),t));return qt(async()=>{}),wt(o,Sn(async s=>{await fv(s),ce({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"})},500),{deep:!0}),(s,i)=>(Z(),te("div",xv,[u("form",Cv,[u("fieldset",null,[u("div",$v,[kv,oe(u("input",{id:"enableListManagement",type:"checkbox","onUpdate:modelValue":i[0]||(i[0]=r=>o.value.enableListManagement=r)},null,512),[[Le,o.value.enableListManagement]]),Sv]),u("div",Ev,[Av,oe(u("input",{id:"showInfoHash",type:"checkbox","onUpdate:modelValue":i[1]||(i[1]=r=>o.value.showInfoHash=r)},null,512),[[Le,o.value.showInfoHash]]),Pv]),Ov,u("div",Iv,[Tv,oe(u("input",{id:"onlyMagnetEd2k",type:"checkbox","onUpdate:modelValue":i[2]||(i[2]=r=>o.value.onlyMagnetEd2k=r)},null,512),[[Le,o.value.onlyMagnetEd2k]]),Lv]),u("div",Mv,[Bv,oe(u("input",{id:"enableOptimization",type:"checkbox","onUpdate:modelValue":i[3]||(i[3]=r=>o.value.enableOptimization=r)},null,512),[[Le,o.value.enableOptimization]]),Dv]),u("div",Nv,[Rv,oe(u("input",{id:"reqInterval",type:"number","onUpdate:modelValue":i[4]||(i[4]=r=>o.value.reqInterval=r),min:100},null,512),[[qe,o.value.reqInterval]]),jv]),u("div",Fv,[Hv,oe(u("input",{id:"maxPage",type:"number","onUpdate:modelValue":i[5]||(i[5]=r=>o.value.maxPage=r),min:0},null,512),[[qe,o.value.maxPage]]),Uv])])])]))}}),oA="",zv={class:"ce-offline-exporter"},qv={key:0},Vv=u("button",{type:"button",class:"pure-button button-mini"},"设置",-1),Wv=Be({__name:"OflineExporter",setup(e){const t=`\r
`;let n,o;ge(!1);const s=ge([]);let i={};Vt(async()=>{i=await Ds(),n=await Tc(),console.log("[profile]",n),o=await Ic(),console.log("[space]",o),r(),await pv(i)});async function r(){window.addEventListener("message",A=>{const{event:N,body:V}=A.data;switch(N){case ir.selection:s.value=V;break;case ir.configChanged:i=V;break}},!1)}async function l(A=!1,N=""){const{isConfirmed:V,value:O}=await fe.fire({title:"根据链接删除离线任务",html:`
<div>每行一个链接,支持磁力链接和ED2K链接</div>
<div>
<label class="swal2-checkbox" style="display: flex;">
<input type="checkbox" id="swalDeleteFile">
<span class="swal2-label">同时删除文件</span>
</label>
</div>
<div>
<textarea id="swalUrls" aria-label="每行一个链接" class="swal2-textarea" placeholder="每行一个链接" style="width:80%;"></textarea>
</div>
`,focusConfirm:!1,didOpen:()=>{const G=document.getElementById("swalDeleteFile");G.checked=A;const ee=document.getElementById("swalUrls");ee.value=N,ee.focus()},preConfirm:()=>{const G=document.getElementById("swalDeleteFile"),ee=document.getElementById("swalUrls");return{deleteFile:G?G.checked:!1,urls:ee?ee.value:""}},width:620,inputPlaceholder:"每行一个",inputAttributes:{"aria-label":"每行一个"},showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消"});if(!V)return;if(O===void 0){alert("请输入链接!");return}const P=[],D=O.urls.trim().split(`
`);for(let G=0;G<D.length;G++){const ee=D[G].trim();if(Rl(ee)||jl(ee)){const Oe=Hl(ee);Oe&&P.push(Oe.toLowerCase())}}fe.showLoading(),fe.update({html:"正在删除..."}),await Yr(P,o,O.deleteFile,n.user_id),ce({icon:"success",title:"删除成功!请刷新页面查看最新的列表。",timer:3e4,position:"top-end"}),await nl(P)}async function d(){const A=s.value.map(P=>P.info_hash);if(!A.length)return;const{isConfirmed:N,value:V}=await fe.fire({title:"批量删除",icon:"warning",html:`确定要删除选中的 ${A.length} 个离线记录吗?`,input:"checkbox",inputValue:0,inputPlaceholder:"同时删除文件",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消"});if(!N)return;const O=!!V;fe.showLoading(),fe.update({html:"正在删除..."}),await Yr(A,o,O,n.user_id),ce({icon:"success",title:"删除成功",timer:800,position:"top-end"}),await nl(A),s.value=[]}async function f(A){const N=[A];i.onlyMagnetEd2k&&N.push(kt.magnetEd2k),console.log("[filters]",N),await E(o.sign,n.user_id,N)}function p(A,N){if(!N.length||N.length===1&&N[0]==="all")return A;const V={[$t.failed]:kt.failed,[$t.illegal]:kt.failed,[$t.ing]:kt.failed,[$t.success]:kt.success};return A=A.filter(O=>{if(!O.url&&!O.info_hash)return!1;const P=V[O.status];return N.includes(kt.all)||P&&N.includes(P)?!(N.includes(kt.magnetEd2k)&&(!Jp(O.info_hash)||O.url&&!Rl(O.url)&&!jl(O.url))):!1}),A}async function m(A,N,V){let O=[],P=1,D=0;for(;;){fe.update({html:`正在导出... 进度:第 ${P} 页`+(D?` / ${D}`:"")});const G=await Oc(P,A,N);if(!G.tasks||!G.tasks.length)break;if(D===0&&i.maxPage>0?D=Math.min(G.page_count,i.maxPage):D=G.page_count,O=[...O,...p(G.tasks,V)],i.enableOptimization&&V.includes(kt.failed)&&y(G.tasks)){console.warn("由于开启了导出优化,且检测到已获取的记录中至少有一个「已完成」的记录,将不再获取剩下的记录");break}if(P>=D)break;P++,await Yt(i.reqInterval)}return O}function y(A){for(const N of A)if(N.status===$t.success)return!0;return!1}async function C(){const A=[kt.all];i.onlyMagnetEd2k&&A.push(kt.magnetEd2k),console.log("[filters]",A);const N=s.value;if(!N.length)return;const V=[];N.forEach(O=>{!O.url&&O.info_hash&&(O.url=Fl(O.info_hash)),V.push(O.url)}),V.length&&(Qo(V.join(t),"text"),console.log("[links]",V),await fe.fire({title:"导出成功",icon:"success",html:`成功导出 ${V.length} 个链接,请粘贴到文本文件。`,showDenyButton:!0,denyButtonText:"保存到txt",allowEscapeKey:!1,allowOutsideClick:!1,preDeny:async()=>(console.log("[saveAs]"),Nl(V.join(t),`115离线链接_数量${V.length}_${es()}.txt`),!1)}))}async function E(A,N,V){fe.fire({title:"导出离线链接",html:"正在导出...",didOpen:()=>{fe.showLoading()}});const O=await m(A,N,V);if(fe.hideLoading(),!O.length){await fe.fire({title:"导出失败",icon:"error",html:"查询不到符合条件的离线记录!"});return}const P=[];if(O.forEach(D=>{!D.url&&D.info_hash&&(D.url=Fl(D.info_hash)),P.push(D.url)}),!P.length){await fe.fire({title:"导出失败",icon:"error",html:"未完成的离线记录中没有磁力或HTTP链接!"});return}Qo(P.join(t),"text"),console.log("[links]",P),await fe.fire({title:"导出成功",icon:"success",html:`成功导出 ${P.length} 个链接,请粘贴到文本文件。`,showDenyButton:!0,denyButtonText:"保存到txt",allowEscapeKey:!1,allowOutsideClick:!1,preDeny:async()=>(console.log("[saveAs]"),Nl(P.join(t),`115离线链接_数量${P.length}_${es()}.txt`),!1)})}return(A,N)=>{const V=fo("VDropdown");return Z(),te("span",zv,[s.value.length?(Z(),te("span",qv,[u("button",{type:"button",class:"pure-button button-small button-error",onClick:d},[re("删除("),u("span",null,me(s.value.length),1),re(")")]),re(" ")])):Ge("",!0),u("button",{type:"button",class:"pure-button button-mini button-error",onClick:N[0]||(N[0]=O=>l(!1,"")),title:"填写链接以删除对应的离线任务"},"根据链接删除"),re(" "),s.value.length?(Z(),te("button",{key:1,type:"button",class:"pure-button button-mini button-warning",onClick:C,title:"导出选中任务的链接"},[re("导出已选"),u("span",null,"("+me(s.value.length)+")",1)])):Ge("",!0),u("button",{type:"button",class:"pure-button button-mini button-error",onClick:N[1]||(N[1]=O=>f(be(kt).failed)),title:"导出未完成链接"},"导出未完成"),u("button",{type:"button",class:"pure-button button-mini button-success",onClick:N[2]||(N[2]=O=>f(be(kt).success)),title:"导出已完成链接"},"导出已完成"),u("button",{type:"button",class:"pure-button button-mini button-warning",onClick:N[3]||(N[3]=O=>f(be(kt).all)),title:"导出全部链接"},"导出全部"),re(" "),ve(V,{distance:5,"arrow-padding":10},{popper:Ve(()=>[(Z(),Rt(ju,null,{default:Ve(()=>[ve(of)]),_:1}))]),default:Ve(()=>[Vv]),_:1})])}}}),sA="",ol=fe.mixin({toast:!0,position:"top-end",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,didOpen:e=>{e.addEventListener("mouseenter",fe.stopTimer),e.addEventListener("mouseleave",fe.resumeTimer)},customClass:"swal-toast"}),Kv=["cate_id","delete_id","status","hash"],Gv={class:"file-name-wrap"},Jv={class:"file-name"},Yv={task_popup:"goto",href:"javascript:;",class:"name"},Xv={rel:"name"},Zv={class:"desc-tips",rel:"file_down_violations"},Qv={class:"txt-red",rel:"file_down_tips"},e_=["filename"],t_={class:"file-size"},n_={class:"file-process"},o_=u("i",{class:"icon-file-status ifst-failure"},null,-1),s_=u("span",{rel:"progress"},"下载失败",-1),i_=u("i",{class:"icon-file-status ifst-success"},null,-1),r_=u("span",{rel:"progress"},"下载成功",-1),a_=u("i",{class:"icon-file-status ifst-downing"},null,-1),l_={rel:"progress"},c_=u("i",{class:"icon-file-status ifst-violation"},null,-1),u_=u("span",{rel:"progress"},"违规",-1),d_=u("i",{class:"icon-file-status ifst-failure"},null,-1),f_=u("span",{rel:"progress"},"[未知]",-1),p_={class:"file-operate",rel:"opt"},h_=u("a",{href:"javascript:;",task_popup:"goto"},[u("i",{class:"icon-operate ifo-opendir"}),u("s",null,"跳转到目录")],-1),m_=["cp_href"],g_=[u("i",{class:"icon-operate ifo-copy"},null,-1),u("s",null,"复制",-1)],w_=u("a",{href:"javascript:;",class:"btn-delete-offline"},[u("i",{class:"icon-operate ifo-remove"}),u("s",null,"删除")],-1),y_=Be({__name:"OfflineItem",props:{item:null,space:null,profile:null},setup(e){const t=e,n=Uo(()=>t.item.percentDone?parseInt(t.item.percentDone.toString()):0),o=Uo(()=>{const{name:r,del_path:l}=t.item;let d=r.replace(/^.*\./,"");return l&&/\/$/.test(l)&&(d="folder"),/^[a-z\d]+$/i.test(d)||(d="unknown"),d}),s=Uo(()=>t.item.err===10016?"文件内含违规内容":""),i=Uo(()=>t.item.can_appeal===1);return(r,l)=>(Z(),te("li",{complete:"",cate_id:e.item.file_id,delete_id:e.item.delete_file_id,status:e.item.status,hash:e.item.info_hash},[u("div",Gv,[u("i",{class:Je(["file-type",`tp-${be(o)}`])},null,2),u("div",Jv,[u("em",null,[u("a",Yv,[u("span",Xv,me(e.item.name),1)])])]),oe(u("div",Zv,[u("span",Qv,me(be(s)),1),oe(u("a",{href:"javascript:;",class:"btn-link",filename:e.item.name,rel:"violations_down_btn"},"去申诉",8,e_),[[Wt,be(i)]])],512),[[Wt,be(s)]])]),u("div",t_,[u("span",null,me(be(Xs)(e.item.size)),1)]),u("div",n_,[e.item.status===be($t).failed?(Z(),te(De,{key:0},[o_,s_],64)):e.item.status===be($t).success?(Z(),te(De,{key:1},[i_,r_],64)):e.item.status===be($t).ing?(Z(),te(De,{key:2},[a_,u("span",l_,me(be(n))+"%",1)],64)):e.item.status===be($t).illegal?(Z(),te(De,{key:3},[c_,u_],64)):(Z(),te(De,{key:4},[d_,f_],64))]),u("div",p_,[h_,u("a",{href:"javascript:;",cp_href:e.item.url,task_popup:"copy"},g_,8,m_),w_])],8,Kv))}}),b_={class:"ce-offline-list"},v_=Be({__name:"OfflineList",props:{items:null,space:null,profile:null},setup(e){return(t,n)=>(Z(),te("div",b_,[u("ul",null,[(Z(!0),te(De,null,dt(e.items,(o,s)=>(Z(),Rt(y_,{Key:s,item:o,space:e.space,profile:e.profile},null,8,["Key","item","space","profile"]))),256))])]))}}),__={class:"ce-offline-searcher"},x_={inline:"",class:"pure-form search-form",size:"small"},C_={class:"form-item",label:"关键词"},$_=["value"],k_={class:"form-item"},S_=["onKeyup"],E_={class:"form-item",label:"状态"},A_=["value"],P_=["value"],O_={class:"form-item",label:"页数"},I_=u("small",null,"页",-1),T_={class:"form-item"},L_={key:0,title:"根据「名称」查找时,是否在找到一个结果时停止继续查找"},M_=Be({__name:"OfflineSearcher",setup(e){let t,n;const o={name:"名称",infoHash:"哈希",url:"链接"},s=ge(),i=ge({KeywordType:"name",keyword:"",status:$t.any,maxPage:5}),r=ge(null),l=ge(!1),d=ge(!1),f=ge([]),p=ge(null);Vt(async()=>{t=await Tc(),n=await Ic(),s.value=await Ds(),i.value.maxPage=s.value.searchMaxPage,document.body.addEventListener("click",O=>{V(O)})});async function m(O){var P;(P=r.value)==null||P.select()}async function y(O){var P;i.value.keyword="",(P=r.value)==null||P.focus()}async function C(){f.value=[],i.value={KeywordType:"name",keyword:"",status:$t.any,maxPage:5},await A(!1);try{parent.window.Core.OFFL5Plug.ChangePage(1)}catch(O){console.error(O)}}async function E(){var P;f.value=[];let{keyword:O}=i.value;if(O=O.trim(),O===""){await ji(),(P=r.value)==null||P.select(),ol.fire({icon:"warning",title:"关键词不能为空!"});return}l.value=!0;try{const D={status:i.value.status,maxPage:i.value.maxPage,fuzzyName:!0,caseSensitive:!1};D[i.value.KeywordType]=i.value.keyword,D.infoHash&&(D.infoHash=Hl(D.infoHash)),console.log("[search filter]",D);const G=await _v(n.sign,t.user_id,D,d.value);f.value=G,await A(!0)}catch(D){console.warn("[search error]",D),ol.fire({icon:"error",title:D.toString()})}finally{l.value=!1}}async function A(O=!0){var G,ee;!f.value.length&&O&&ol.fire({icon:"warning",html:"没有符合条件的任务"}),await ji();const P=(G=p.value)==null?void 0:G.querySelector("ul");if(!P)return;const D=document.querySelector("ul#js-warp");D&&(D.innerHTML=P.innerHTML),await N(),(ee=r.value)==null||ee.focus()}async function N(){const O=f.value.length,P=document.querySelector("#js-page");if(!P)return;const D=P.querySelector(".left-bvf span");D.textContent=`共搜索到 ${O} 个结果`;const G=P.querySelector(".pagination .con");G.style.display="none"}async function V(O){let P=O.target;if(P.classList.contains("ifo-remove")&&(P=P.closest("a")),!P.classList.contains("btn-delete-offline"))return;const D=P.closest("li"),G=await tf(D),ee=[G.info_hash];let Oe={title:"删除离线记录",icon:"warning",html:`确定要删除「${G.name}」吗?`,showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消"};G.delete_file_id&&(Oe={...Oe,input:"checkbox",inputValue:0,inputPlaceholder:"同时删除文件"});const{isConfirmed:ke,value:Se}=await fe.fire(Oe);if(!ke)return;const Te=!!Se;fe.showLoading(),fe.update({html:"正在删除..."}),await Yr(ee,n,Te,t.user_id),ce({icon:"success",title:"删除成功",timer:800,position:"top-end"}),await nl(ee)}return(O,P)=>(Z(),te("div",__,[u("form",x_,[u("fieldset",null,[u("div",C_,[oe(u("select",{"onUpdate:modelValue":P[0]||(P[0]=D=>i.value.KeywordType=D),size:"small",onChange:m},[(Z(),te(De,null,dt(o,(D,G)=>u("option",{key:G,value:G},me(D),9,$_)),64))],544),[[Od,i.value.KeywordType]])]),u("div",k_,[u("div",{class:Je(["clearable-wrap",{"is-empty":i.value.keyword===""}])},[oe(u("input",{ref_key:"refKeyword",ref:r,"onUpdate:modelValue":P[1]||(P[1]=D=>i.value.keyword=D),placeholder:"请输入关键词",clearable:"",onKeyup:Ld(E,["enter"])},null,40,S_),[[qe,i.value.keyword]]),u("button",{type:"button",class:"pure-button pure-button-default button-xsmall btn-clear",onClick:y},"×")],2)]),u("div",E_,[oe(u("select",{"onUpdate:modelValue":P[2]||(P[2]=D=>i.value.status=D),placeholder:"请选择",clearable:"",style:{width:"90px"}},[u("option",{value:be($t).any},"-状态-",8,A_),(Z(!0),te(De,null,dt(be(eh),(D,G)=>(Z(),te("option",{key:G,value:G},me(D),9,P_))),128))],512),[[Od,i.value.status]])]),u("div",O_,[oe(u("input",{type:"number","onUpdate:modelValue":P[3]||(P[3]=D=>i.value.maxPage=D),min:1,max:100,title:"最多查找页数"},null,512),[[qe,i.value.maxPage]]),I_]),u("div",T_,[i.value.KeywordType==="name"?(Z(),te("label",L_,[oe(u("input",{type:"checkbox","onUpdate:modelValue":P[4]||(P[4]=D=>d.value=D),class:"stop-on-found"},null,512),[[Le,d.value]]),re(" 找到即停 ")])):Ge("",!0),u("button",{type:"button",class:"pure-button pure-button-primary button-small",onClick:E},"查找"),re(" "),u("button",{type:"button",class:"pure-button pure-button-default button-xsmall",onClick:C},"重置")])])]),u("div",{ref_key:"refList",ref:p,class:"list"},[ve(v_,{items:f.value,space:be(n),profile:be(t)},null,8,["items","space","profile"])],512)]))}}),aA="";function wn(e){return e.split("-")[0]}function qo(e){return e.split("-")[1]}function Ns(e){return["top","bottom"].includes(wn(e))?"x":"y"}function sl(e){return e==="y"?"height":"width"}function sf(e){let{reference:t,floating:n,placement:o}=e;const s=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2;let r;switch(wn(o)){case"top":r={x:s,y:t.y-n.height};break;case"bottom":r={x:s,y:t.y+t.height};break;case"right":r={x:t.x+t.width,y:i};break;case"left":r={x:t.x-n.width,y:i};break;default:r={x:t.x,y:t.y}}const l=Ns(o),d=sl(l);switch(qo(o)){case"start":r[l]=r[l]-(t[d]/2-n[d]/2);break;case"end":r[l]=r[l]+(t[d]/2-n[d]/2);break}return r}const B_=async(e,t,n)=>{const{placement:o="bottom",strategy:s="absolute",middleware:i=[],platform:r}=n;if(r==null&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),i.filter(C=>{let{name:E}=C;return E==="autoPlacement"||E==="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 l=await r.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:f}=sf({...l,placement:o}),p=o,m={},y=0;for(let C=0;C<i.length;C++){if(y++,y>100)throw new Error(["Floating UI: The middleware lifecycle appears to be","running in an infinite loop. This is usually caused by a `reset`","continually being returned without a break condition."].join(" "));const{name:E,fn:A}=i[C],{x:N,y:V,data:O,reset:P}=await A({x:d,y:f,initialPlacement:o,placement:p,strategy:s,middlewareData:m,rects:l,platform:r,elements:{reference:e,floating:t}});if(d=N!=null?N:d,f=V!=null?V:f,m={...m,[E]:O!=null?O:{}},P){typeof P=="object"&&(P.placement&&(p=P.placement),P.rects&&(l=P.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:s}):P.rects),{x:d,y:f}=sf({...l,placement:p})),C=-1;continue}}return{x:d,y:f,placement:p,strategy:s,middlewareData:m}};function D_(e){return{top:0,right:0,bottom:0,left:0,...e}}function rf(e){return typeof e!="number"?D_(e):{top:e,right:e,bottom:e,left:e}}function il(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function ar(e,t){t===void 0&&(t={});const{x:n,y:o,platform:s,rects:i,elements:r,strategy:l}=e,{boundary:d="clippingParents",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:y=0}=t,C=rf(y),A=r[m?p==="floating"?"reference":"floating":p],N=await s.getClippingClientRect({element:await s.isElement(A)?A:A.contextElement||await s.getDocumentElement({element:r.floating}),boundary:d,rootBoundary:f}),V=il(await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:p==="floating"?{...i.floating,x:n,y:o}:i.reference,offsetParent:await s.getOffsetParent({element:r.floating}),strategy:l}));return{top:N.top-V.top+C.top,bottom:V.bottom-N.bottom+C.bottom,left:N.left-V.left+C.left,right:V.right-N.right+C.right}}const N_=Math.min,yo=Math.max;function rl(e,t,n){return yo(e,N_(t,n))}const R_=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=e!=null?e:{},{x:s,y:i,placement:r,rects:l,platform:d}=t;if(n==null)return console.warn("Floating UI: No `element` was passed to the `arrow` middleware."),{};const f=rf(o),p={x:s,y:i},m=wn(r),y=Ns(m),C=sl(y),E=await d.getDimensions({element:n}),A=y==="y"?"top":"left",N=y==="y"?"bottom":"right",V=l.reference[C]+l.reference[y]-p[y]-l.floating[C],O=p[y]-l.reference[y],P=await d.getOffsetParent({element:n}),D=P?y==="y"?P.clientHeight||0:P.clientWidth||0:0,G=V/2-O/2,ee=f[A],Oe=D-E[C]-f[N],ke=D/2-E[C]/2+G,Se=rl(ee,ke,Oe);return{data:{[y]:Se,centerOffset:ke-Se}}}}),j_={left:"right",right:"left",bottom:"top",top:"bottom"};function lr(e){return e.replace(/left|right|bottom|top/g,t=>j_[t])}function af(e,t){const n=qo(e)==="start",o=Ns(e),s=sl(o);let i=o==="x"?n?"right":"left":n?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=lr(i)),{main:i,cross:lr(i)}}const F_={start:"end",end:"start"};function al(e){return e.replace(/start|end/g,t=>F_[t])}const H_=["top","right","bottom","left"].reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function U_(e,t,n){return(e?[...n.filter(s=>qo(s)===e),...n.filter(s=>qo(s)!==e)]:n.filter(s=>wn(s)===s)).filter(s=>e?qo(s)===e||(t?al(s)!==s:!1):!0)}const z_=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,s,i,r,l;const{x:d,y:f,rects:p,middlewareData:m,placement:y}=t,{alignment:C=null,allowedPlacements:E=H_,autoAlignment:A=!0,...N}=e;if((n=m.autoPlacement)!=null&&n.skip)return{};const V=U_(C,A,E),O=await ar(t,N),P=(o=(s=m.autoPlacement)==null?void 0:s.index)!=null?o:0,D=V[P],{main:G,cross:ee}=af(D,p);if(y!==D)return{x:d,y:f,reset:{placement:V[0]}};const Oe=[O[wn(D)],O[G],O[ee]],ke=[...(i=(r=m.autoPlacement)==null?void 0:r.overflows)!=null?i:[],{placement:D,overflows:Oe}],Se=V[P+1];if(Se)return{data:{index:P+1,overflows:ke},reset:{placement:Se}};const Te=ke.slice().sort((se,Ee)=>se.overflows[0]-Ee.overflows[0]),he=(l=Te.find(se=>{let{overflows:Ee}=se;return Ee.every(ie=>ie<=0)}))==null?void 0:l.placement;return{data:{skip:!0},reset:{placement:he!=null?he:Te[0].placement}}}}};function q_(e){const t=lr(e);return[al(e),t,al(t)]}const V_=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:s,middlewareData:i,rects:r,initialPlacement:l}=t;if((n=i.flip)!=null&&n.skip)return{};const{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",flipAlignment:y=!0,...C}=e,E=wn(s),N=p||(E===l||!y?[lr(l)]:q_(l)),V=[l,...N],O=await ar(t,C),P=[];let D=((o=i.flip)==null?void 0:o.overflows)||[];if(d&&P.push(O[E]),f){const{main:ke,cross:Se}=af(s,r);P.push(O[ke],O[Se])}if(D=[...D,{placement:s,overflows:P}],!P.every(ke=>ke<=0)){var G,ee;const ke=((G=(ee=i.flip)==null?void 0:ee.index)!=null?G:0)+1,Se=V[ke];if(Se)return{data:{index:ke,overflows:D},reset:{placement:Se}};let Te="bottom";switch(m){case"bestFit":{var Oe;const he=(Oe=D.slice().sort((se,Ee)=>se.overflows.filter(ie=>ie>0).reduce((ie,He)=>ie+He,0)-Ee.overflows.filter(ie=>ie>0).reduce((ie,He)=>ie+He,0))[0])==null?void 0:Oe.placement;he&&(Te=he);break}case"initialPlacement":Te=l;break}return{data:{skip:!0},reset:{placement:Te}}}return{}}}};function W_(e){let{placement:t,rects:n,value:o}=e;const s=wn(t),i=["left","top"].includes(s)?-1:1,r=typeof o=="function"?o({...n,placement:t}):o,{mainAxis:l,crossAxis:d}=typeof r=="number"?{mainAxis:r,crossAxis:0}:{mainAxis:0,crossAxis:0,...r};return Ns(s)==="x"?{x:d,y:l*i}:{x:l*i,y:d}}const K_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(t){const{x:n,y:o,placement:s,rects:i}=t,r=W_({placement:s,rects:i,value:e});return{x:n+r.x,y:o+r.y,data:r}}}};function G_(e){return e==="x"?"y":"x"}const J_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:s}=t,{mainAxis:i=!0,crossAxis:r=!1,limiter:l={fn:N=>{let{x:V,y:O}=N;return{x:V,y:O}}},...d}=e,f={x:n,y:o},p=await ar(t,d),m=Ns(wn(s)),y=G_(m);let C=f[m],E=f[y];if(i){const N=m==="y"?"top":"left",V=m==="y"?"bottom":"right",O=C+p[N],P=C-p[V];C=rl(O,C,P)}if(r){const N=y==="y"?"top":"left",V=y==="y"?"bottom":"right",O=E+p[N],P=E-p[V];E=rl(O,E,P)}const A=l.fn({...t,[m]:C,[y]:E});return{...A,data:{x:A.x-n,y:A.y-o}}}}},Y_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n;const{placement:o,rects:s,middlewareData:i}=t,{apply:r,...l}=e;if((n=i.size)!=null&&n.skip)return{};const d=await ar(t,l),f=wn(o),p=qo(o)==="end";let m,y;f==="top"||f==="bottom"?(m=f,y=p?"left":"right"):(y=f,m=p?"top":"bottom");const C=yo(d.left,0),E=yo(d.right,0),A=yo(d.top,0),N=yo(d.bottom,0),V={height:s.floating.height-(["left","right"].includes(o)?2*(A!==0||N!==0?A+N:yo(d.top,d.bottom)):d[m]),width:s.floating.width-(["top","bottom"].includes(o)?2*(C!==0||E!==0?C+E:yo(d.left,d.right)):d[y])};return r==null||r({...V,...s}),{data:{skip:!0},reset:{rects:!0}}}}};function ll(e){return(e==null?void 0:e.toString())==="[object Window]"}function zn(e){if(e==null)return window;if(!ll(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function cr(e){return zn(e).getComputedStyle(e)}function yn(e){return ll(e)?"":e?(e.nodeName||"").toLowerCase():""}function bn(e){return e instanceof zn(e).HTMLElement}function ur(e){return e instanceof zn(e).Element}function X_(e){return e instanceof zn(e).Node}function lf(e){const t=zn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function dr(e){const{overflow:t,overflowX:n,overflowY:o}=cr(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function Z_(e){return["table","td","th"].includes(yn(e))}function cf(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),n=cr(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 uf=Math.min,Rs=Math.max,fr=Math.round;function Vo(e,t){t===void 0&&(t=!1);const n=e.getBoundingClientRect();let o=1,s=1;return t&&bn(e)&&(o=e.offsetWidth>0&&fr(n.width)/e.offsetWidth||1,s=e.offsetHeight>0&&fr(n.height)/e.offsetHeight||1),{width:n.width/o,height:n.height/s,top:n.top/s,right:n.right/o,bottom:n.bottom/s,left:n.left/o,x:n.left/o,y:n.top/s}}function qn(e){return((X_(e)?e.ownerDocument:e.document)||window.document).documentElement}function pr(e){return ll(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function df(e){return Vo(qn(e)).left+pr(e).scrollLeft}function Q_(e){const t=Vo(e);return fr(t.width)!==e.offsetWidth||fr(t.height)!==e.offsetHeight}function e0(e,t,n){const o=bn(t),s=qn(t),i=Vo(e,o&&Q_(t));let r={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(o||!o&&n!=="fixed")if((yn(t)!=="body"||dr(s))&&(r=pr(t)),bn(t)){const d=Vo(t,!0);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else s&&(l.x=df(s));return{x:i.left+r.scrollLeft-l.x,y:i.top+r.scrollTop-l.y,width:i.width,height:i.height}}function hr(e){return yn(e)==="html"?e:e.assignedSlot||e.parentNode||(lf(e)?e.host:null)||qn(e)}function ff(e){return!bn(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function t0(e){let t=hr(e);for(;bn(t)&&!["html","body"].includes(yn(t));){if(cf(t))return t;t=t.parentNode}return null}function cl(e){const t=zn(e);let n=ff(e);for(;n&&Z_(n)&&getComputedStyle(n).position==="static";)n=ff(n);return n&&(yn(n)==="html"||yn(n)==="body"&&getComputedStyle(n).position==="static"&&!cf(n))?t:n||t0(e)||t}function pf(e){return{width:e.offsetWidth,height:e.offsetHeight}}function n0(e){let{rect:t,offsetParent:n,strategy:o}=e;const s=bn(n),i=qn(n);if(n===i)return t;let r={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if((s||!s&&o!=="fixed")&&((yn(n)!=="body"||dr(i))&&(r=pr(n)),bn(n))){const d=Vo(n,!0);l.x=d.x+n.clientLeft,l.y=d.y+n.clientTop}return{...t,x:t.x-r.scrollLeft+l.x,y:t.y-r.scrollTop+l.y}}function o0(e){const t=zn(e),n=qn(e),o=t.visualViewport;let s=n.clientWidth,i=n.clientHeight,r=0,l=0;return o&&(s=o.width,i=o.height,Math.abs(t.innerWidth/o.scale-o.width)<.01&&(r=o.offsetLeft,l=o.offsetTop)),{width:s,height:i,x:r,y:l}}function s0(e){var t;const n=qn(e),o=pr(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=Rs(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=Rs(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0);let l=-o.scrollLeft+df(e);const d=-o.scrollTop;return cr(s||n).direction==="rtl"&&(l+=Rs(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:r,x:l,y:d}}function hf(e){return["html","body","#document"].includes(yn(e))?e.ownerDocument.body:bn(e)&&dr(e)?e:hf(hr(e))}function mr(e,t){var n;t===void 0&&(t=[]);const o=hf(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),i=zn(o),r=s?[i].concat(i.visualViewport||[],dr(o)?o:[]):o,l=t.concat(r);return s?l:l.concat(mr(hr(r)))}function i0(e,t){const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&lf(n)){let o=t;do{if(o&&e===o)return!0;o=o.parentNode||o.host}while(o)}return!1}function r0(e){const t=Vo(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 mf(e,t){return t==="viewport"?il(o0(e)):ur(t)?r0(t):il(s0(qn(e)))}function a0(e){const t=mr(hr(e)),o=["absolute","fixed"].includes(cr(e).position)&&bn(e)?cl(e):e;return ur(o)?t.filter(s=>ur(s)&&i0(s,o)&&yn(s)!=="body"):[]}function l0(e){let{element:t,boundary:n,rootBoundary:o}=e;const i=[...n==="clippingParents"?a0(t):[].concat(n),o],r=i[0],l=i.reduce((d,f)=>{const p=mf(t,f);return d.top=Rs(p.top,d.top),d.right=uf(p.right,d.right),d.bottom=uf(p.bottom,d.bottom),d.left=Rs(p.left,d.left),d},mf(t,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}const c0={getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:e0(t,cl(n),o),floating:{...pf(n),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:e=>n0(e),getOffsetParent:e=>{let{element:t}=e;return cl(t)},isElement:e=>ur(e),getDocumentElement:e=>{let{element:t}=e;return qn(t)},getClippingClientRect:e=>l0(e),getDimensions:e=>{let{element:t}=e;return pf(t)},getClientRects:e=>{let{element:t}=e;return t.getClientRects()}},u0=(e,t,n)=>B_(e,t,{platform:c0,...n});var d0=Object.defineProperty,f0=Object.defineProperties,p0=Object.getOwnPropertyDescriptors,gf=Object.getOwnPropertySymbols,h0=Object.prototype.hasOwnProperty,m0=Object.prototype.propertyIsEnumerable,wf=(e,t,n)=>t in e?d0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vn=(e,t)=>{for(var n in t||(t={}))h0.call(t,n)&&wf(e,n,t[n]);if(gf)for(var n of gf(t))m0.call(t,n)&&wf(e,n,t[n]);return e},js=(e,t)=>f0(e,p0(t));function yf(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?yf(e[n],t[n]):e[n]=t[n])}const _n={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 Wo(e,t){let n=_n.themes[e]||{},o;do o=n[t],typeof o>"u"?n.$extend?n=_n.themes[n.$extend]||{}:(n=null,o=_n[t]):n=null;while(n);return o}function g0(e){const t=[e];let n=_n.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=_n.themes[n.$extend]||{}):n=null;while(n);return t.map(o=>`v-popper--theme-${o}`)}function bf(e){const t=[e];let n=_n.themes[e]||{};do n.$extend?(t.push(n.$extend),n=_n.themes[n.$extend]||{}):n=null;while(n);return t}let bo=!1;if(typeof window<"u"){bo=!1;try{const e=Object.defineProperty({},"passive",{get(){bo=!0}});window.addEventListener("test",null,e)}catch{}}let vf=!1;typeof window<"u"&&typeof navigator<"u"&&(vf=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const _f=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),xf={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},Cf={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function $f(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function ul(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Kt=[];let vo=null;const kf={};function Sf(e){let t=kf[e];return t||(t=kf[e]=[]),t}let dl=function(){};typeof window<"u"&&(dl=window.Element);function Fe(e){return function(t){return Wo(t.theme,e)}}const fl="__floating-vue__popper";var Ef=()=>Be({name:"VPopper",provide(){return{[fl]:{parentPopper:this}}},inject:{[fl]:{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:Fe("disabled")},positioningDisabled:{type:Boolean,default:Fe("positioningDisabled")},placement:{type:String,default:Fe("placement"),validator:e=>_f.includes(e)},delay:{type:[String,Number,Object],default:Fe("delay")},distance:{type:[Number,String],default:Fe("distance")},skidding:{type:[Number,String],default:Fe("skidding")},triggers:{type:Array,default:Fe("triggers")},showTriggers:{type:[Array,Function],default:Fe("showTriggers")},hideTriggers:{type:[Array,Function],default:Fe("hideTriggers")},popperTriggers:{type:Array,default:Fe("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Fe("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Fe("popperHideTriggers")},container:{type:[String,Object,dl,Boolean],default:Fe("container")},boundary:{type:[String,dl],default:Fe("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:Fe("strategy")},autoHide:{type:[Boolean,Function],default:Fe("autoHide")},handleResize:{type:Boolean,default:Fe("handleResize")},instantMove:{type:Boolean,default:Fe("instantMove")},eagerMount:{type:Boolean,default:Fe("eagerMount")},popperClass:{type:[String,Array,Object],default:Fe("popperClass")},computeTransformOrigin:{type:Boolean,default:Fe("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Fe("autoMinSize")},autoSize:{type:[Boolean,String],default:Fe("autoSize")},autoMaxSize:{type:Boolean,default:Fe("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Fe("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Fe("preventOverflow")},overflowPadding:{type:[Number,String],default:Fe("overflowPadding")},arrowPadding:{type:[Number,String],default:Fe("arrowPadding")},arrowOverflow:{type:Boolean,default:Fe("arrowOverflow")},flip:{type:Boolean,default:Fe("flip")},shift:{type:Boolean,default:Fe("shift")},shiftCrossAxis:{type:Boolean,default:Fe("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Fe("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:js(vn({},this.classes),{popperClass:this.popperClass}),result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[fl])==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:vn(vn({shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())}},["triggers","positioningDisabled"].reduce((e,t)=>(e[t]="$_refreshListeners",e),{})),["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})),created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var o,s;((o=this.parentPopper)==null?void 0:o.lockedChild)&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(n||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e,t;!this.$_isDisposed||(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=(t=(e=this.referenceNode)==null?void 0:e.call(this))!=null?t:this.$el,this.$_targetNodes=this.targetNodes().filter(n=>n.nodeType===n.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){var e;if(this.$_isDisposed||this.positioningDisabled)return;const t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(K_({mainAxis:this.distance,crossAxis:this.skidding}));const n=this.placement.startsWith("auto");if(n?t.middleware.push(z_({alignment:(e=this.placement.split("-")[1])!=null?e:""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(J_({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!n&&this.flip&&t.middleware.push(V_({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(R_({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:s,rects:i,middlewareData:r})=>{let l;const{centerOffset:d}=r.arrow;return s.startsWith("top")||s.startsWith("bottom")?l=Math.abs(d)>i.reference.width/2:l=Math.abs(d)>i.reference.height/2,{data:{overflow:l}}}}),this.autoMinSize||this.autoSize){const s=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:i,placement:r,middlewareData:l})=>{var d;if((d=l.autoSize)!=null&&d.skip)return{};let f,p;return r.startsWith("top")||r.startsWith("bottom")?f=i.reference.width:p=i.reference.height,this.$_innerNode.style[s==="min"?"minWidth":s==="max"?"maxWidth":"width"]=f!=null?`${f}px`:null,this.$_innerNode.style[s==="min"?"minHeight":s==="max"?"maxHeight":"height"]=p!=null?`${p}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,t.middleware.push(Y_({boundary:this.boundary,padding:this.overflowPadding,apply:({width:s,height:i})=>{this.$_innerNode.style.maxWidth=s!=null?`${s}px`:null,this.$_innerNode.style.maxHeight=i!=null?`${i}px`:null}})));const o=await u0(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:o.x,y:o.y,placement:o.placement,strategy:o.strategy,arrow:vn(vn({},o.middlewareData.arrow),o.middlewareData.arrowOverflow)})},$_scheduleShow(e=null,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),vo&&this.instantMove&&vo.instantMove&&vo!==this.parentPopper){vo.$_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&&(vo=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 ul(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...mr(this.$_referenceNode),...mr(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),o=n.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+n.offsetLeft),i=t.y+t.height/2-(o.top+n.offsetTop);this.result.transformOrigin=`${s}px ${i}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n<Kt.length;n++)t=Kt[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Kt.push(this),document.body.classList.add("v-popper--some-open");for(const t of bf(this.theme))Sf(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 ul(),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,$f(Kt,this),Kt.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of bf(this.theme)){const o=Sf(n);$f(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}vo===this&&(vo=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=Wo(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 ul(),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,xf,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],xf,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,Cf,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Cf,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(o=>o.addEventListener(t,n,bo?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,o,s){let i=n;o!=null&&(i=typeof o=="function"?o(i):o),i.forEach(r=>{const l=t[r];l&&this.$_registerEventListeners(e,l,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:o,eventType:s,handler:i}=n;!e||e===s?o.forEach(r=>r.removeEventListener(s,i)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const n of this.$_targetNodes){const o=n.getAttribute(e);o&&(n.removeAttribute(e),n.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const o=e[n];o==null?t.removeAttribute(n):t.setAttribute(n,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.$_pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Fs>=e.left&&Fs<=e.right&&Hs>=e.top&&Hs<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=Fs-Vn,o=Hs-Wn,i=t.left+t.width/2-Vn+(t.top+t.height/2)-Wn+t.width+t.height,r=Vn+n*i,l=Wn+o*i;return gr(Vn,Wn,r,l,t.left,t.top,t.left,t.bottom)||gr(Vn,Wn,r,l,t.left,t.top,t.right,t.top)||gr(Vn,Wn,r,l,t.right,t.top,t.right,t.bottom)||gr(Vn,Wn,r,l,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(vf?(document.addEventListener("touchstart",Af,bo?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",y0,bo?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",Af,!0),window.addEventListener("click",w0,!0)),window.addEventListener("resize",_0));function Af(e){for(let t=0;t<Kt.length;t++){const n=Kt[t];try{const o=n.popperNode();n.$_mouseDownContains=o.contains(e.target)}catch{}}}function w0(e){Pf(e)}function y0(e){Pf(e,!0)}function Pf(e,t=!1){const n={};for(let o=Kt.length-1;o>=0;o--){const s=Kt[o];try{const i=s.$_containsGlobalTarget=b0(s,e);s.$_pendingHide=!1,requestAnimationFrame(()=>{if(s.$_pendingHide=!1,!n[s.randomId]&&Of(s,i,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&i){let l=s.parentPopper;for(;l;)n[l.randomId]=!0,l=l.parentPopper;return}let r=s.parentPopper;for(;r&&Of(r,r.$_containsGlobalTarget,e);){r.$_handleGlobalClose(e,t);r=r.parentPopper}}})}catch{}}}function b0(e,t){const n=e.popperNode();return e.$_mouseDownContains||n.contains(t.target)}function Of(e,t,n){return n.closeAllPopover||n.closePopover&&t||v0(e,n)&&!t}function v0(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function _0(e){for(let t=0;t<Kt.length;t++)Kt[t].$_computePosition(e)}let Vn=0,Wn=0,Fs=0,Hs=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Vn=Fs,Wn=Hs,Fs=e.clientX,Hs=e.clientY},bo?{passive:!0}:void 0);function gr(e,t,n,o,s,i,r,l){const d=((r-s)*(t-i)-(l-i)*(e-s))/((l-i)*(n-e)-(r-s)*(o-t)),f=((n-e)*(t-i)-(o-t)*(e-s))/((l-i)*(n-e)-(r-s)*(o-t));return d>=0&&d<=1&&f>=0&&f<=1}var wr=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n};const x0={extends:Ef()};function C0(e,t,n,o,s,i){return Z(),te("div",{ref:"reference",class:Je(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[pn(e.$slots,"default",rg(md(e.slotData)))],2)}var $0=wr(x0,[["render",C0]]);function k0(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let yr;function pl(){pl.init||(pl.init=!0,yr=k0()!==-1)}var br={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){pl(),ji(()=>{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",yr&&this.$el.appendChild(e),e.data="about:blank",yr||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&&(!yr&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const S0=Ow();Aw("data-v-b329ee4c");const E0={class:"resize-observer",tabindex:"-1"};Pw();const A0=S0((e,t,n,o,s,i)=>(Z(),Rt("div",E0)));br.render=A0,br.__scopeId="data-v-b329ee4c",br.__file="src/components/ResizeObserver.vue";var If=(e="theme")=>({computed:{themeClass(){return g0(this[e])}}});const P0=Be({name:"VPopperContent",components:{ResizeObserver:br},mixins:[If()],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}}}),O0=["id","aria-hidden","tabindex","data-popper-placement"],I0={ref:"inner",class:"v-popper__inner"},T0=[u("div",{class:"v-popper__arrow-outer"},null,-1),u("div",{class:"v-popper__arrow-inner"},null,-1)];function L0(e,t,n,o,s,i){const r=fo("ResizeObserver");return Z(),te("div",{id:e.popperId,ref:"popover",class:Je(["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:ln(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]=Ld(l=>e.autoHide&&e.$emit("hide"),["esc"]))},[u("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=l=>e.autoHide&&e.$emit("hide"))}),u("div",{class:"v-popper__wrapper",style:ln(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[u("div",I0,[e.mounted?(Z(),te(De,{key:0},[u("div",null,[pn(e.$slots,"default")]),e.handleResize?(Z(),Rt(r,{key:0,onNotify:t[1]||(t[1]=l=>e.$emit("resize",l))})):Ge("",!0)],64)):Ge("",!0)],512),u("div",{ref:"arrow",class:"v-popper__arrow-container",style:ln(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},T0,4)],4)],46,O0)}var Tf=wr(P0,[["render",L0]]),Lf={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 M0=Be({name:"VPopperWrapper",components:{Popper:$0,PopperContent:Tf},mixins:[Lf,If("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 B0(e,t,n,o,s,i){const r=fo("PopperContent"),l=fo("Popper");return Z(),Rt(l,{ref:"popper",theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:Je([e.themeClass])},{default:Ve(({popperId:d,isShown:f,shouldMountContent:p,skipTransition:m,autoHide:y,show:C,hide:E,handleResize:A,onResize:N,classes:V,result:O})=>[pn(e.$slots,"default",{shown:f,show:C,hide:E}),ve(r,{ref:"popperContent","popper-id":d,theme:e.finalTheme,shown:f,mounted:p,"skip-transition":m,"auto-hide":y,"handle-resize":A,classes:V,result:O,onHide:E,onResize:N},{default:Ve(()=>[pn(e.$slots,"popper",{shown:f,hide:E})]),_: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 hl=wr(M0,[["render",B0]]);const D0=Be(js(vn({},hl),{name:"VDropdown",vPopperTheme:"dropdown"})),N0=Be(js(vn({},hl),{name:"VMenu",vPopperTheme:"menu"})),R0=Be(js(vn({},hl),{name:"VTooltip",vPopperTheme:"tooltip"})),j0=Be({name:"VTooltipDirective",components:{Popper:Ef(),PopperContent:Tf},mixins:[Lf],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Wo(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Wo(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}}}),F0=["innerHTML"],H0=["textContent"];function U0(e,t,n,o,s,i){const r=fo("PopperContent"),l=fo("Popper");return Z(),Rt(l,wd({ref:"popper"},e.$attrs,{theme:e.theme,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:Ve(({popperId:d,isShown:f,shouldMountContent:p,skipTransition:m,autoHide:y,hide:C,handleResize:E,onResize:A,classes:N,result:V})=>[ve(r,{ref:"popperContent",class:Je({"v-popper--tooltip-loading":e.loading}),"popper-id":d,theme:e.theme,shown:f,mounted:p,"skip-transition":m,"auto-hide":y,"handle-resize":E,classes:N,result:V,onHide:C,onResize:A},{default:Ve(()=>[e.html?(Z(),te("div",{key:0,innerHTML:e.finalContent},null,8,F0)):(Z(),te("div",{key:1,textContent:me(e.finalContent)},null,8,H0))]),_: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 z0=wr(j0,[["render",U0]]);const Mf="v-popper--has-tooltip";function q0(e,t){let n=e.placement;if(!n&&t)for(const o of _f)t[o]&&(n=o);return n||(n=Wo(e.theme||"tooltip","placement")),n}function Bf(e,t,n){let o;const s=typeof t;return s==="string"?o={content:t}:t&&s==="object"?o=t:o={content:!1},o.placement=q0(o,n),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let ml,Us,V0=0;function W0(){if(ml)return;Us=ge([]),ml=wo({name:"VTooltipDirectiveApp",setup(){return{directives:Us}},render(){return this.directives.map(t=>Hy(z0,js(vn({},t.options),{shown:t.shown||t.options.shown,key:t.id})))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),ml.mount(e)}function K0(e,t,n){W0();const o=ge(Bf(e,t,n)),s=ge(!1),i={id:V0++,options:o,shown:s};return Us.value.push(i),e.classList&&e.classList.add(Mf),e.$_popper={options:o,item:i,show(){s.value=!0},hide(){s.value=!1}}}function Df(e){if(e.$_popper){const t=Us.value.indexOf(e.$_popper.item);t!==-1&&Us.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Mf)}function Nf(e,{value:t,modifiers:n}){const o=Bf(e,t,n);if(!o.content||Wo(o.theme||"tooltip","disabled"))Df(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=K0(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}var G0={beforeMount:Nf,updated:Nf,beforeUnmount(e){Df(e)}};function Rf(e){e.addEventListener("click",Ff),e.addEventListener("touchstart",Hf,bo?{passive:!0}:!1)}function jf(e){e.removeEventListener("click",Ff),e.removeEventListener("touchstart",Hf),e.removeEventListener("touchend",Uf),e.removeEventListener("touchcancel",zf)}function Ff(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Hf(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",Uf),t.addEventListener("touchcancel",zf)}}function Uf(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 zf(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}var J0={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&Rf(e)},updated(e,{value:t,oldValue:n,modifiers:o}){e.$_closePopoverModifiers=o,t!==n&&(typeof t>"u"||t?Rf(e):jf(e))},beforeUnmount(e){jf(e)}};function Y0(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,yf(_n,t),e.directive("tooltip",G0),e.directive("close-popper",J0),e.component("VTooltip",R0),e.component("VDropdown",D0),e.component("VMenu",N0))}const gl={version:"2.0.0-beta.20",install:Y0,options:_n},dA="";var _o=(e=>(e.openConfig="openConfig",e.basicConfigChange="basicConfigChange",e.listConfigChange="listConfigChange",e.listRendered="listRendered",e))(_o||{});const qf="basic_config";function X0(e){return{hideWatermark:!0,hideSidebar:!0,fakeAccountEnabled:!1,fakeAccountId:"",fakeAccountName:"",fakeAccountAvatar:"",fakeAccountVip:"",...e}}async function vr(){const e=X0(),t=await lt.get(qf,e);return{...e,...t}}async function Z0(e){await lt.set(qf,e)}async function Q0(e){!e.hideSidebar||(console.log("[Cloud115 Enhancer] hideSidebar"),window.top!==window.self?(await kn('[rel="page_top_btn"]')).show():(await kn("#site_left_bar")).hide())}async function e1(e){if(!!e.hideWatermark){console.log("[Cloud115 Enhancer] hideWatermark");try{const t=await kn('div[class^="fp-"]');t.addClass("hidden-watermark"),t.hide()}catch(t){console.error("[Cloud115 Enhancer] hideWatermark",t.message)}}}async function t1(e){window.top===window.self&&(await Yt(1e3),wl(e),window.addEventListener("message",async t=>{const n=t.data.event,o=t.data.body;n===_o.basicConfigChange&&(console.log("[Cloud115 Enhancer] basicConfigChange"),wl(o))}))}let zs=null;async function n1(){zs&&clearTimeout(zs),zs=setTimeout(async()=>{const e=await vr();wl(e)},5e3)}async function wl(e){zs&&clearTimeout(zs);const t=async(n,o)=>{const s=await kn('[rel="user_id"]',100);s.data("origin")||s.data("origin",s.text()),o?s.text(s.data("origin")):s.text(n.fakeAccountId);const i=await kn('[rel="user_name"]',100);i.data("origin")||i.data("origin",$(i[0]).text()),o?i.text(i.data("origin")):i.text(n.fakeAccountName);const r=await kn('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 l=await kn(".sign-vip-card",100);l.data("origin")||l.data("origin",$(l[0]).text()),o?l.text(l.data("origin")):l.text(n.fakeAccountVip)};try{e.fakeAccountEnabled?await t(e,!1):await t(e,!0)}catch(n){console.error(n)}finally{e.fakeAccountEnabled&&n1()}}async function o1(){const{host:e,search:t}=location;e!=="115.com"||!t.includes("offline=1&tab=offline")||(await s1(),await i1(),r1())}async function s1(){console.log("[Cloud115 Enhancer] Injecting offline exporter...");const e="cloud115OfflineExporter",t=await Ds();document.body.classList.add("cloud115-page-offline"),t.enableListManagement&&document.body.classList.add("ce-list-m"),$("body").append(`<div id="${e}"/>`);const n=wo(Wv);n.use(gl),n.mount(`#${e}`)}async function i1(){console.log("[Cloud115 Enhancer] Injecting offline searcher...");const e="cloud115OfflineSearcher",t=await Ds();document.body.classList.add("cloud115-page-offline"),t.enableSearcher&&document.body.classList.add("ce-list-s"),$("body").append(`<div id="${e}"/>`);const n=wo(M_);n.use(gl),n.mount(`#${e}`)}async function r1(){(await vr()).hideSidebar&&($('.more-box[rel="transfer_top_btn"]').show(),$('a[menu="upload"]').show(),$('.clp-box[rel="transfer_top_btn"]').show())}var Kn=(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))(Kn||{});const a1={class:"cloud115-eh-cleaner-trigger"},l1=[u("span",null,"清理文件",-1)],c1=Be({__name:"Trigger",setup(e){ge(!1);const t=ge(!0);async function n(l){switch(l.data.type){case Kn.INVOKE_FILTER:await Om(l.data.payload);break;case Kn.CLEANER_OPENED:await r(l.data.payload);break}}Vt(async()=>{console.log("[CleanerTrigger onMounted]"),window.addEventListener("message",n)}),As(()=>{console.log("[CleanerTrigger onUnmounted]"),window.removeEventListener("message",n)});async function o(){await i(),Qs({type:Kn.OPEN_CLEANER},window.parent)}let s=0;async function i(){const l=Yp("cid");!l||l==="0"||(clearTimeout(s),s=window.setTimeout(async()=>{ce({icon:"error",text:"打开清理工具失败!"})},1e3))}async function r(l){console.log("成功打开Cleaner"),clearTimeout(s)}return(l,d)=>oe((Z(),te("span",a1,[pn(l.$slots,"default",{},()=>[u("span",{class:"btn-open pure-button pure-button-primary",onClick:o},l1)])],512)),[[Wt,t.value]])}}),pA="";var Re=(e=>(e[e.suffix=0]="suffix",e[e.keyword=1]="keyword",e))(Re||{}),ft=(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))(ft||{}),rt=(e=>(e.none="",e.prepare="查询文件...",e.prepared="查询文件完成",e.prepareFailed="查询失败",e.deleting="删除文件中...",e.success="清理完成",e.failed="清理失败",e))(rt||{});mt.all,Qe.all,mt.video,Qe.video,mt.audio,Qe.audio,mt.image,Qe.image,mt.doc,Qe.doc,mt.app,Qe.app,mt.archive,Qe.archive;const u1=new Map([[Qe.all,mt.all],[Qe.video,mt.video],[Qe.audio,mt.audio],[Qe.image,mt.image],[Qe.doc,mt.doc],[Qe.app,mt.app],[Qe.archive,mt.archive]]),_r="#",Vf="#",d1=[{type:Re.suffix,queryOnly:!1,label:"默认",memo:"请谨慎使用!",size:5,values:["txt","url","html","htm","mht"]},{type:Re.suffix,queryOnly:!0,label:"🔍115筛选",memo:"仅用于查询",size:102400,values:["#视频","#音频","#图片","#文档","#应用","#压缩包"]}],f1=["#論壇文宣","#宣傳文本","最新地址","最新网址","论坛地址","永久地址","地址发布","扫码 安装","扫码 下载","免費 掃碼","澳门 赌场","皇冠 赌场","免费18禁手游","免费黄游手游","在线影城","秀场 小视频","裸秀 主播 免费看","第一会所 宣传","SIS 影视联盟",'"最 新 位 址 獲 取"','"社 區 最 新 情 報"','"聚 合 全 網 H 直 播"'],p1=["#論壇文宣","美女 裸聊","秀场 视频","澳门 赌场","皇冠 赌场","影视 联盟","2048 社区","1024 社区","会所 宣传","扫码 安装","社区 关注","免費 掃碼","找回家","防屏蔽","封殺00","秀场 小视频","裸秀 主播 免费看",'"Free Adult Movie"',"奔驰宝马","最新网址","最新免費","免费试用","美女荷官","凤凰娛樂","观看指南","女神在线","更多无水印","免费在线","国产精品","免費原版","獨家資源","成人光碟","最新AV","FDZone","发布器","QR-1024","在這等你","激情祼聊","看妹不用等","真人祼聊","zz.jpg","X8B9.COM.gif","第一会所 宣传","SIS 影视联盟","淘精網","激情咖啡","手機影城","免费手机看片","U視娛樂","加微信","我愛看片手機版","平台正式上線"],h1=[{type:Re.keyword,queryOnly:!1,label:"默认",memo:"请谨慎使用!",size:100,values:f1},{type:Re.keyword,queryOnly:!1,label:"⚠️大杀器⚠️",memo:"请谨慎使用!",size:100,values:p1},{type:Re.keyword,queryOnly:!0,label:"只查询示例",memo:"这是一个示例",size:10240,values:["奔驰宝马","美女荷官",'"最 新 位 址 獲 取"']}];function xo(e){return{id:Date.now().toString(),type:e,queryOnly:!1,label:"",values:"",memo:"",size:0,sort:0,createdAt:0,updatedAt:0}}function Wf(e,t){e=e.trim();const n=t===Re.keyword&&m1(e),o=t===Re.suffix&&g1(e);let s=e;return n&&(s=w1(e)),o&&(s=y1(e).toString()),{type:t,value:e,forDir:n,isFilter:o,pattern:s,num:-1,fileIds:[],size:-1,status:rt.none}}function Kf(e){return[rt.prepare,rt.deleting].includes(e.status)}function m1(e){return new RegExp(`^${_r}[\\S]{2,}`).test(e)}function g1(e){return new RegExp(`^${Vf}[\\S]{2,}`).test(e)}function w1(e){const t=new RegExp(`^${_r}`);return e.replace(t,"")}function y1(e){const t=new RegExp(`^${Vf}`);let n=e.replace(t,"");const o=u1.get(n);if(!o)throw new Error(`"${e}"不是有效的筛选!`);return o}async function Co(e,t){let n;typeof e=="string"?n=e.split(/[\r\n]+/):n=e;const o=new Set;for(let i=0;i<n.length;i++){const r=n[i].trim();r.length>1&&o.add(r)}const s=[];return o.forEach(i=>{s.push(Wf(i,t))}),s}function Gf(e){return/(^'.+'$)|(^".+"$)/.test(e)}function yl(e){return Gf(e)?e.replace(/^['"]|['"]$/g,""):e}function b1(e,t){if(e===""||t==="")return!1;if(e=e.toLowerCase(),Gf(t))return e.includes(yl(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 Jf(e,t,n){const o=Wf(e.value,e.type);o.num=0,o.size=0,o.fileIds=[];const s=new Set;let i=0;n.maxSize&&(i=n.maxSize*1024*1024);for(let r=0;r<t.length;r++){const l=!!t[r].fid,d=l?t[r].fid:t[r].cid;if(e.type===Re.keyword&&(l&&e.forDir||!l&&!e.forDir))continue;const f=parseFloat(t[r].s);i&&l&&f>i||e.type===Re.keyword&&!b1(t[r].n,e.pattern)||s.has(d)||(s.add(d),o.size+=f)}return o.fileIds=Array.from(s),o.num=o.fileIds.length,o}const v1={class:"group-manager"},_1={key:0,class:"label-readonly",title:"当前分组只可用于查询"},x1=["title"],C1=u("small",null,"分组:",-1),$1={class:"pure-form pure-form-stacked group-form"},k1=u("label",{for:"groupLabel"},"标题",-1),S1=u("label",{for:"groupMemo"},"备注",-1),E1={for:"groupValues"},A1={key:0,class:"text-info"},P1={key:1,class:"text-info"},O1=["onClick"],I1=u("small",{class:"text-primary"},"(点击添加)",-1),T1=u("label",{for:"groupMemo"},[re(" 文件大小 "),u("span",{class:"text-info"},[re("只清理小于该大小的文件,单位"),u("b",null,"MB")])],-1),L1={class:"groups-list"},M1={key:0,class:"text-danger"},B1=u("span",{class:"text-info"},"或",-1),D1=u("br",null,null,-1),N1=u("br",null,null,-1),R1={class:"pure-table pure-table-bordered"},j1=u("thead",null,[u("tr",null,[u("th",{width:"25"},"#"),u("th",{width:"70"},"只查询"),u("th",{width:"150"},"名称"),u("th",{width:"150"},"备注"),u("th",{width:"70"},[re("大小"),u("small",null,"MB")]),u("th",{width:"220"},"操作")])],-1),F1={align:"center"},H1=["onClick"],U1=u("button",{type:"button",class:"pure-button button-xsmall text-danger"},"删除",-1),z1={class:"group-confirm-delete"},q1=["onClick"],V1=["onClick"],Yf=Be({__name:"GroupManager",props:{type:null,storageKey:null,config:null},emits:["change"],setup(e,{emit:t}){const n=e,o=ge(xo(n.type)),s=ge([]),i=ge(!1),r=ge(xo(n.type)),l=ge(null),d=ge(!1),f=ge(null),p=[Qe.video,Qe.audio,Qe.image,Qe.doc,Qe.app,Qe.archive];wt(s,async he=>{console.log("[groups change]",he),Yn(n.storageKey,he,!1),he.length||(i.value=!1,d.value=!1)},{deep:!0});let m=!1;Vt(async()=>{if(console.log("[GroupManager onMounted]"),!m){m=!0,s.value=Ys(n.storageKey,[]),console.log("[groups]",s.value);const{suffixGroup:he,keywordGroup:se}=n.config;if(s.value.length){const Ee=s.value.find(ie=>ie.id===(n.type===Re.suffix?he:se));console.log("[group last choosen]",Ee),o.value=Ee||s.value[0],t("change",o.value)}else n.type===Re.suffix&&!he&&(await ee(),Yn("cleanerConfig",{suffixGroup:o.value.id},!0)),n.type===Re.keyword&&!se&&(await ee(),Yn("cleanerConfig",{keywordGroup:o.value.id},!0))}}),As(async()=>{console.log("[GroupManager onUnmounted]")});async function y(he){const se=`#${he}`;r.value.values.includes(se)||(r.value.values+=(`
`+se).trim()+`
`)}async function C(){i.value=!0,d.value=!1}async function E(){i.value=!1}async function A(){l.value.show()}async function N(){l.value.hide()}async function V(){d.value=!1}async function O(){d.value=!0,i.value=!1}async function P(){f.value.show()}async function D(){f.value.hide()}async function G(){r.value.createdAt&&(r.value=xo(n.type)),r.value.size=5,n.type===Re.keyword&&(r.value.size=100),await A()}async function ee(){let he=[];n.type===Re.suffix?he=d1:he=h1;for(let se=0;se<he.length;se++){const Ee={...xo(he[se].type),...he[se]};r.value=Ee,r.value.type=Ee.type,r.value.queryOnly=Ee.queryOnly,r.value.size=Ee.size,r.value.label=Ee.label,r.value.memo=Ee.memo,r.value.createdAt=0,r.value.updatedAt=0,Array.isArray(Ee.values)?r.value.values=Ee.values.join(`
`):r.value.values=Ee.values,await Se(),await D()}s.value.length&&await Te(s.value[0])}async function Oe(he,se=!1){if(!se){const{isConfirmed:ie}=await fe.fire({html:`确定删除"${o.value.label}"?`,icon:"question"});if(!ie)return}let Ee=-1;for(let ie=0;ie<s.value.length;ie++)if(s.value[ie].id===o.value.id){Ee=ie;break}s.value.splice(Ee,1),s.value.length?o.value=s.value[0]:o.value=xo(n.type),t("change",o.value),await ce({icon:"success",title:"删除成功!",timer:1500})}async function ke(he){r.value=he,await A()}async function Se(){let he=[];try{he=await Co(r.value.values,r.value.type)}catch(B){await fe.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 ce({icon:"warning",text:"请输入标题!"});return}let se=-1;for(let B=0;B<s.value.length;B++)if(s.value[B].id===r.value.id&&r.value.id){se=B;break}const Ee=es();r.value.updatedAt=Ee,r.value.createdAt||(r.value.createdAt=Ee);let ie=[];for(let B=0;B<he.length;B++)ie.push(he[B].value);r.value.values=ie.join(`
`).trim(),console.log("[saveGroup]",r.value,se),se===-1?(s.value.push(r.value),ce({icon:"success",text:"添加成功"})):(s.value[se]=r.value,ce({icon:"success",text:"更新成功"}));const He=!o.value.createdAt;He&&(o.value=r.value),(r.value.id===o.value.id||He)&&t("change",r.value),await N()}async function Te(he){o.value=he;const{id:se}=o.value;n.type===Re.suffix&&(n.config.suffixGroup=se,Yn("cleanerConfig",{suffixGroup:se},!0)),n.type===Re.keyword&&(n.config.keywordGroup=se,Yn("cleanerConfig",{keywordGroup:se},!0)),t("change",he)}return(he,se)=>{const Ee=fo("VDropdown");return Z(),te("div",v1,[o.value.queryOnly?(Z(),te("span",_1," 只查询 ")):Ge("",!0),o.value.createdAt?(Z(),te("a",{key:1,class:"group-label",href:"javascript:void(0)",title:`当前使用的分组: ${o.value.label}`,onClick:se[0]||(se[0]=ie=>ke(o.value))},[u("span",null,[C1,re(" "+me(o.value.label),1)])],8,x1)):Ge("",!0),ve(Ee,{ref_key:"form",ref:l,onHide:E,onShow:C,distance:5,"arrow-padding":100},{popper:Ve(()=>[u("form",$1,[u("fieldset",null,[u("div",null,[k1,oe(u("input",{type:"text","onUpdate:modelValue":se[1]||(se[1]=ie=>r.value.label=ie),id:"groupLabel",class:"pure-input-1-2",placeholder:"分组标题"},null,512),[[qe,r.value.label]]),re(" "),r.value.queryOnly?(Z(),te("button",{key:0,type:"button",class:"pure-button button-small button-warning",onClick:se[2]||(se[2]=ie=>r.value.queryOnly=!1)},"已设置为仅用于查询 | 点击取消设置")):Ge("",!0),r.value.queryOnly?Ge("",!0):(Z(),te("button",{key:1,type:"button",class:"pure-button button-small pure-button-primary",onClick:se[3]||(se[3]=ie=>r.value.queryOnly=!0)},"设置为仅用于查询"))]),u("div",null,[S1,oe(u("input",{type:"text","onUpdate:modelValue":se[4]||(se[4]=ie=>r.value.memo=ie),id:"groupMemo",placeholder:"分组备注"},null,512),[[qe,r.value.memo]])]),u("div",null,[u("label",E1,[re(" 特征列表 "),n.type===be(Re).keyword?(Z(),te("span",A1,[re(" 默认只匹配文件名。前面带"),u("b",null,me(be(_r)),1),re("则只匹配目录名。 ")])):Ge("",!0),n.type===be(Re).suffix?(Z(),te("span",P1,[re(" 支持115自带筛选: "),(Z(),te(De,null,dt(p,(ie,He)=>u("span",{class:"filter-label text-success",key:He,onClick:B=>y(ie)}," #"+me(ie),9,O1)),64)),I1])):Ge("",!0)]),oe(u("textarea",{id:"groupValues","onUpdate:modelValue":se[5]||(se[5]=ie=>r.value.values=ie),rows:"5",placeholder:"每行一个"},null,512),[[qe,r.value.values]])]),u("div",null,[T1,oe(u("input",{type:"number","onUpdate:modelValue":se[6]||(se[6]=ie=>r.value.size=ie),class:"pure-input-1-2",placeholder:"文件大小小于该数值才清理"},null,512),[[qe,r.value.size]])]),u("button",{type:"button",class:"pure-button pure-button-primary",onClick:Se},me(r.value.createdAt?"更新":"添加"),1),re(" "),u("button",{type:"button",class:"pure-button",onClick:N},"取消")])])]),default:Ve(()=>[u("a",{href:"javascript:void(0)",class:"text-primary",onClick:G},"新增分组")]),_:1},512),ve(Ee,{ref_key:"list",ref:f,onHide:V,onShow:O,distance:5},{popper:Ve(()=>[u("div",L1,[s.value.length?Ge("",!0):(Z(),te("h3",M1,[re(" 还没有添加任何分组。你可以: "),u("button",{type:"button",class:"pure-button button-small",onClick:G},"添加"),re(" "),B1,re(" "),u("button",{type:"button",class:"pure-button button-small",onClick:ee},"使用脚本内置"),D1,N1])),u("table",R1,[j1,u("tbody",null,[(Z(!0),te(De,null,dt(s.value,(ie,He)=>(Z(),te("tr",{key:He},[u("td",null,me(He+1),1),u("td",F1,me(ie.queryOnly?"是":"否"),1),u("td",null,me(ie.label),1),u("td",null,me(ie.memo),1),u("td",null,me(ie.size),1),u("td",null,[u("button",{type:"button",class:"pure-button button-xsmall text-primary",onClick:B=>Te(ie)},"载入",8,H1),re(" "),ve(Ee,null,{popper:Ve(()=>[u("div",z1,[u("button",{type:"button",class:"pure-button button-error",onClick:B=>Oe(ie,!0)},"确定",8,q1)])]),default:Ve(()=>[U1]),_:2},1024),re(" "),u("button",{type:"button",class:"pure-button button-xsmall",onClick:B=>ke(ie)},"编辑",8,V1)])]))),128))])])])]),default:Ve(()=>[u("a",{href:"javascript:void(0)",class:"text-primary",onClick:P},"分组列表")]),_:1},512)])}}}),hA="",W1={class:"cloud115-eh-cleaner"},K1=[u("span",null,"清理文件",-1)],G1={key:0,class:"cloud115-eh-cleaner-help"},J1=[Ay('<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)],Y1={class:"header actions-bar"},X1=u("span",{class:"title"},"文件清理工具",-1),Z1={type:"button",class:"pure-button button-success"},Q1=u("i",{class:"file-type tp-folder",style:{}},null,-1),ex=["disabled"],tx=["disabled"],nx=u("small",null,"毫秒",-1),ox=["disabled"],sx=u("br",null,null,-1),ix={class:"by-box by-suffix"},rx={class:"by-header"},ax=u("span",{class:"title"},[re("按"),u("b",null,"后缀名"),re("清理")],-1),lx={class:"pure-button-group",role:"group"},cx=["disabled"],ux={class:"pure-table pure-table-bordered"},dx=u("thead",null,[u("tr",null,[u("th",{width:"25"},"#"),u("th",{width:"100"},"后缀名"),u("th",{width:"95"},"文件数量"),u("th",{width:"80"},"合计大小"),u("th",{width:"150"},"操作"),u("th",{width:"200"},"状态")])],-1),fx=["onClick"],px=["onClick"],hx=["onClick"],mx=u("br",null,null,-1),gx={class:"by-box by-keyword"},wx={class:"by-header"},yx=u("span",{class:"title"},[re("按"),u("b",null,"关键词"),re("清理")],-1),bx={class:"pure-button-group",role:"group"},vx=["disabled"],_x={class:"pure-table pure-table-bordered"},xx=u("thead",null,[u("tr",null,[u("th",{width:"25"},"#"),u("th",{width:"100"},"关键词"),u("th",{width:"95"},"文件/目录数量"),u("th",{width:"80"},"合计大小"),u("th",{width:"150"},"操作"),u("th",{width:"200"},"状态")])],-1),Cx=["href"],$x={class:"file-type tp-folder"},kx=["onClick"],Sx=["onClick"],Ex=u("br",null,null,-1),Ax={class:"footer actions-bar"},Px=u("span",{class:"title"},"文件清理工具",-1),Ox={type:"button",class:"pure-button button-success"},Ix=u("i",{class:"file-type tp-folder",style:{}},null,-1),Tx=Be({__name:"Cleaner",setup(e){const t=ge(!1),n=ge(!0),o=ge(xo(Re.suffix)),s=ge(xo(Re.keyword)),i=ge({maxSize:5,matchName:!1}),r=ge({maxSize:100,matchName:!0}),l=ge([]),d=ge([]),f=ge(!1),p=ge({initialized:!1,pageSize:1150,reqInterval:800,deleteSize:1150,...Ys("cleanerConfig",{})}),m=ge(!0),y=ge(""),C=ge([]);async function E(B){B.data.type===Kn.OPEN_CLEANER&&(await A(B.data.payload),Qs({type:Kn.CLEANER_OPENED},B.source))}Vt(async()=>{console.log("[Cleaner onMounted]"),p.value.initialized||(p.value.initialized=!0,Yn("cleanerConfig",p.value,!1)),window.addEventListener("message",E)}),As(()=>{console.log("[Cleaner onUnmounted]"),window.removeEventListener("message",E)});async function A(B){t.value=!0;const J=await Zt();if(J==="0"||J===""){await N(),await fe.fire({icon:"warning",html:"<h2>不允许在根目录使用该工具!</h2>"});return}y.value&&y.value!==J&&(console.warn("目录变化,重置"),await D(ft.reset),await G(ft.reset)),C.value=await Em(),y.value=J}async function N(){t.value=!1}async function V(){Yn("cleanerConfig",p.value,!1),ce({icon:"success",text:"保存成功",timer:1800}),m.value=!0}async function O(B){const J={};B.isFilter?J.type=B.pattern:J.suffix=B.pattern;let R=unsafeWindow.frames[0];for(let de=0;de<unsafeWindow.frames.length;de++)if(unsafeWindow.frames[de].name==="wangpan"){R=unsafeWindow.frames[de];break}Qs({type:Kn.INVOKE_FILTER,payload:J},R),await N(),ce({icon:"info",text:`已调用115筛选: ${B.value}`,timer:2500})}async function P(B,J){const{value:R}=await fe.fire({input:"textarea",title:B,html:"每行一个,最短两个字符。"+(J===Re.keyword?`<br>默认只匹配文件名,不匹配目录名。<br>使用 "<b>${_r}目录名关键词</b>" 格式指定只匹配目录名的关键词。`:""),width:620,inputPlaceholder:"每行一个,最短两个字符",inputAttributes:{"aria-label":"每行一个,最短两个字符"},showCancelButton:!0});return R!==void 0?R.trim():""}async function D(B,J){let R="",de=[];switch(B){case ft.assign:R=J.trim(),R.trim()===""?l.value=[]:(de=await Co(R,Re.suffix),l.value=de);break;case ft.append:R=await P("添加后缀",Re.suffix),de=await Co(R,Re.suffix);const Ce=[];l.value.forEach(Ie=>Ce.push(Ie.value.toLowerCase())),de.forEach(Ie=>{Ce.includes(Ie.value.toLowerCase())||l.value.push(Ie)});break;case ft.cover:R=await P("覆盖后缀",Re.suffix),R.trim()!==""&&(de=await Co(R,Re.suffix),l.value=de);break;case ft.clear:l.value=[];break;case ft.reset:l.value.forEach(Ie=>{Ie.num=-1,Ie.fileIds=[],Ie.status=rt.none,Ie.size=-1});break}}async function G(B,J){let R="",de=[];switch(B){case ft.assign:R=J.trim(),R.trim()===""?d.value=[]:(de=await Co(R,Re.keyword),d.value=de);break;case ft.append:R=await P("添加关键词",Re.keyword),de=await Co(R,Re.keyword);const Ce=[];d.value.forEach(Ie=>Ce.push(Ie.value.toLowerCase())),de.forEach(Ie=>{Ce.includes(Ie.value.toLowerCase())||d.value.push(Ie)});break;case ft.cover:R=await P("覆盖关键词",Re.keyword),R.trim()!==""&&(de=await Co(R,Re.keyword),d.value=de);break;case ft.clear:d.value=[];break;case ft.reset:d.value.forEach(Ie=>{Ie.num=-1,Ie.fileIds=[],Ie.status=rt.none,Ie.size=-1});break}}async function ee(B){if(console.log("[cleanBySuffix]",B),await D(ft.reset),!l.value.length){await fe.fire({icon:"warning",text:"请先设置后缀!"});return}if(!B){const{isConfirmed:J}=await fe.fire({icon:"warning",html:'请在清理前确认"后缀和大小限制的设置"是否符合预期!',confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!J)return}f.value=!0;try{for(let J=0;J<l.value.length;J++){const R=l.value[J];await Oe(R,B,!1,!0),await Yt(p.value.reqInterval)}}catch(J){console.error(J)}f.value=!1}async function Oe(B,J,R,de){if(console.log("[cleanBySuffixSingle]",B,J),!J&&!de){const{isConfirmed:Ce}=await fe.fire({icon:"warning",html:`确认执行条件 "后缀: <b class="text-primary">${B.pattern}</b>, 小于: <b>${i.value.maxSize}</b> MB" 的清理?`,confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!Ce)return}try{if(!R){f.value=!0,B.fileIds=[],B.size=-1,B.num=-1,B.status=rt.prepare;const Ce=await Te(B);B.status=rt.prepared;const{fileIds:Ie,size:Xe}=await Jf(B,Ce,i.value);B.fileIds=Ie,B.size=Xe,B.num=Ie.length,f.value=!1}if(!J)if(B.num>0){B.status=rt.deleting,f.value=!0;const Ce=await Mc(y.value,B.fileIds,p.value.deleteSize,1e3);f.value=!1,Ce>0?B.status=rt.success+` / 数量 <= ${Ce}`:B.status=rt.failed}else B.status=rt.success+" / 无"}catch(Ce){console.error(Ce),f.value=!1,await fe.fire({title:"cleanBySuffixSingle - 发生错误",html:Ce.toString()})}}async function ke(B){if(console.log("[cleanByKeyword]",B),await G(ft.reset),!d.value.length){await fe.fire({icon:"warning",text:"请先设置关键词!"});return}if(!B){const{isConfirmed:J}=await fe.fire({icon:"warning",html:'请在清理前确认"关键词和大小限制的设置"是否符合预期!',confirmButtonText:"没问题,开始清理",showDenyButton:!0,denyButtonText:"等会"});if(!J)return}f.value=!0;try{for(let J=0;J<d.value.length;J++){const R=d.value[J];await Se(R,B,!1,!0),await Yt(p.value.reqInterval)}}catch(J){console.error(J)}f.value=!1}async function Se(B,J,R,de){if(console.log("[cleanByKeywordSingle]",B,J),!J&&!de){const{isConfirmed:Ce}=await fe.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(!Ce)return}try{if(!R){f.value=!0,B.fileIds=[],B.size=-1,B.num=-1,B.status=rt.prepare;const Ce=await he(B);B.status=rt.prepared;const{fileIds:Ie,size:Xe,num:Ze}=await Jf(B,Ce,r.value);B.fileIds=Ie,B.size=Xe,B.num=Ze,f.value=!1}if(!J)if(B.num>0){B.status=rt.deleting,f.value=!0;const Ce=await Mc(y.value,B.fileIds,p.value.deleteSize,1e3);f.value=!1,Ce>0?B.status=rt.success+` / 数量 <= ${Ce}`:B.status=rt.failed,B.num>9e3&&(console.warn("[cleanByKeywordSingle] 补充处理..."),await Se(B,J,!1,!0))}else B.status=rt.success+" / 无"}catch(Ce){console.error(Ce),f.value=!1;let Ie=!0;const Xe={title:"cleanByKeywordSingle - 发生错误",html:Ce.toString()};Ce instanceof Jr&&(B.status=rt.prepareFailed+` / ${Ce.message}`,Ce instanceof Pc&&(Xe.timer=2e3,Ie=!1)),Ie?await fe.fire(Xe):fe.fire(Xe)}}async function Te(B){const J=await Zt(),R=Zl({cid:J,limit:p.value.pageSize});B.isFilter?R.type=B.pattern:R.suffix=B.value;const de=await Lc(R,p.value.reqInterval);return console.log("[files]",de),de}async function he(B){const J=await Zt(),R=th({search_value:yl(B.pattern),cid:J,limit:p.value.pageSize}),de=await gm(R,p.value.reqInterval,!0);return console.log("[files]",de),de}function se(B){return Zr({search_value:yl(B.pattern),cid:y.value},C.value[C.value.length-1])}async function Ee(B){console.log("[onSuffixGroupChange]",B),o.value=B,i.value.maxSize=B.size,await D(ft.assign,B.values)}async function ie(B){console.log("[onKeywordGroupChange]",B),s.value=B,r.value.maxSize=B.size,await G(ft.assign,B.values)}async function He(){document.querySelector(".cloud115-eh-cleaner-drawer").scrollTo(0,0)}return(B,J)=>oe((Z(),te("span",W1,[pn(B.$slots,"default",{},()=>[u("span",{class:"btn-open pure-button pure-button-primary",onClick:A},K1)]),t.value?(Z(),te("div",G1,J1)):Ge("",!0),oe(u("div",{class:Je(["cloud115-eh-cleaner-drawer",{loading:f.value}])},[u("div",Y1,[X1,u("span",{class:"close"},[u("button",{type:"button",class:"pure-button button-error",onClick:N},"关闭")]),u("button",Z1,[u("b",null,[Q1,re(" "+me(C.value.join(" / ")),1)])])]),u("div",null,[re(" 请求分页: "),oe(u("input",{type:"number","onUpdate:modelValue":J[0]||(J[0]=R=>p.value.pageSize=R),min:30,max:1150,disabled:m.value},null,8,ex),[[qe,p.value.pageSize]]),re(" 请求间隔: "),oe(u("input",{type:"number","onUpdate:modelValue":J[1]||(J[1]=R=>p.value.reqInterval=R),min:200,max:1e6,disabled:m.value},null,8,tx),[[qe,p.value.reqInterval]]),nx,re(" 每次删除: "),oe(u("input",{type:"number","onUpdate:modelValue":J[2]||(J[2]=R=>p.value.deleteSize=R),min:1,max:1150,disabled:m.value},null,8,ox),[[qe,p.value.deleteSize]]),u("span",{class:"config-toggle",onClick:J[3]||(J[3]=R=>m.value=!m.value)},"设置参数"),m.value?Ge("",!0):(Z(),te("button",{key:0,type:"button",class:"pure-button pure-button-primary button-small",onClick:V}," 保存配置 "))]),sx,u("div",ix,[u("div",rx,[ax,re(" "),u("div",lx,[u("button",{type:"button",class:"pure-button",onClick:J[4]||(J[4]=R=>ee(!0))},"只查询"),u("button",{type:"button",class:"pure-button pure-button-primary",onClick:J[5]||(J[5]=R=>ee(!1)),disabled:o.value.queryOnly}," 一键清理 ",8,cx)]),re(" 小于 "),oe(u("input",{type:"number","onUpdate:modelValue":J[6]||(J[6]=R=>i.value.maxSize=R),class:"filter-size"},null,512),[[qe,i.value.maxSize]]),re(" MB (0表示不限制) "),ve(Yf,{type:be(Re).suffix,"storage-key":"suffixGroups",onChange:Ee,config:p.value},null,8,["type","config"])]),u("table",ux,[dx,u("tbody",null,[(Z(!0),te(De,null,dt(l.value,(R,de)=>(Z(),te("tr",{key:de,class:Je({active:be(Kf)(R),"is-filter":R.isFilter})},[u("td",null,me(de+1),1),u("td",null,[u("a",{href:"javascript:void(0)",class:"pattern",onClick:Ce=>O(R),title:"筛选"},me(R.value),9,fx)]),u("td",null,me(R.num>=0?R.num:""),1),u("td",null,me(R.size>0?be(Xs)(R.size):""),1),u("td",null,[u("button",{type:"button",class:"pure-button button-xsmall",onClick:Ce=>Oe(R,!0,!1,!0)},"查询",8,px),re(" "),R.num>0&&!o.value.queryOnly?(Z(),te("button",{key:0,type:"button",class:"pure-button button-warning button-xsmall",onClick:Ce=>Oe(R,!1,!0,!1)},"清理",8,hx)):Ge("",!0)]),u("td",null,me(R.status),1)],2))),128))])])]),mx,u("div",gx,[u("div",wx,[yx,re(" "),u("div",bx,[u("button",{type:"button",class:"pure-button",onClick:J[7]||(J[7]=R=>ke(!0))},"只查询"),u("button",{type:"button",class:"pure-button pure-button-primary",onClick:J[8]||(J[8]=R=>ke(!1)),disabled:s.value.queryOnly}," 一键清理 ",8,vx)]),re(" 小于 "),oe(u("input",{type:"number","onUpdate:modelValue":J[9]||(J[9]=R=>r.value.maxSize=R),class:"filter-size"},null,512),[[qe,r.value.maxSize]]),re(" MB (0表示不限制) "),ve(Yf,{type:be(Re).keyword,"storage-key":"keywordGroups",onChange:ie,config:p.value},null,8,["type","config"])]),u("table",_x,[xx,u("tbody",null,[(Z(!0),te(De,null,dt(d.value,(R,de)=>(Z(),te("tr",{key:de,class:Je({active:be(Kf)(R),"is-dir":R.forDir})},[u("td",null,me(de+1),1),u("td",null,[u("a",{href:se(R),target:"_blank",class:"pattern",title:"搜索"},[oe(u("i",$x,null,512),[[Wt,R.forDir]]),re(" "+me(R.pattern),1)],8,Cx)]),u("td",null,me(R.num>=0?R.num:""),1),u("td",null,me(R.size>0?be(Xs)(R.size):""),1),u("td",null,[u("button",{type:"button",class:"pure-button button-xsmall",onClick:Ce=>Se(R,!0,!1,!0)},"查询",8,kx),re(" "),R.num>0&&!s.value.queryOnly?(Z(),te("button",{key:0,type:"button",class:"pure-button button-warning button-xsmall",onClick:Ce=>Se(R,!1,!0,!1)}," 清理 ",8,Sx)):Ge("",!0)]),u("td",null,me(R.status),1)],2))),128))])])]),Ex,u("div",Ax,[Px,u("span",{class:"close"},[u("button",{type:"button",class:"pure-button button-error",onClick:N},"关闭")]),u("button",Ox,[u("b",null,[Ix,re(" "+me(C.value.join(" / ")),1)])]),re(" "),u("button",{type:"button",class:"pure-button button-small",onClick:He}," 回到顶部 ")])],2),[[Wt,t.value]])],512)),[[Wt,n.value]])}}),wA="",yA="";async function Lx(){const{host:e,search:t}=location;e==="115.com"&&(console.log("[Cleaner] running..."),t.includes("ct=file")?await Mx():await Bx())}async function Mx(){const e="cloud115Cleaner";(await kn("#js_path_add_dir")).after(`<span id="${e}"></span>`),wo(c1).mount(`#${e}`)}async function Bx(){const e="cloud115Cleaner";$("body").append(`<div id="${e}"/>`);const t=wo(Tx);t.use(gl),t.mount(`#${e}`),Bl("清理文件",async()=>{Qs({type:Kn.OPEN_CLEANER},window.parent)})}async function Dx(){const e=await vr(),{host:t,search:n}=location;!/115\.com$/.test(t)||(e1(e),Q0(e),t1(e))}const Xf=Symbol("addTab"),Zf=Symbol("updateTab"),Qf=Symbol("deleteTab"),ep=Symbol("tabsProvider");function xr(e,t){const n=Ss(e,t);if(typeof n>"u")throw new Error(`Could not resolve ${e.description}`);return n}const Nx=["data-tab-id","aria-hidden"],Gn=Be({__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=ge(!1),s=xr(ep),i=xr(Xf),r=xr(Zf),l=xr(Qf),d=n.prefix+n.name+n.suffix,f=n.id?n.id:n.name.toLowerCase().replace(/ /g,"-"),p=f+"-pane",m=Uo(()=>"#"+(n.isDisabled?"":f));return wt(()=>s.activeTabHash,()=>{o.value=m.value===s.activeTabHash}),wt(()=>Object.assign({},n),()=>{r(f,{name:n.name,header:n.prefix+n.name+n.suffix,isDisabled:n.isDisabled,hash:m.value,index:s.tabs.length,computedId:f,paneId:p,navItemClass:n.navItemClass,navItemLinkClass:n.navItemLinkClass})}),qt(()=>{i({name:n.name,header:d,isDisabled:n.isDisabled,hash:m.value,index:s.tabs.length,computedId:f,paneId:p,navItemClass:n.navItemClass,navItemLinkClass:n.navItemLinkClass})}),Vu(()=>{l(f)}),t({header:d,computedId:f,paneId:p,hash:m,isActive:o}),(y,C)=>oe((Z(),te("section",{ref:"tab",id:p,"data-tab-id":be(f),"aria-hidden":!o.value,class:Je(e.panelClass),role:"tabpanel",tabindex:"-1"},[pn(y.$slots,"default")],10,Nx)),[[Wt,o.value]])}});class Rx{get(t){const n=localStorage.getItem(t);if(n===null)return null;const o=JSON.parse(n);return o?new Date(o.expires)<new Date?(localStorage.removeItem(t),null):o.value:null}set(t,n,o){const s=new Date().getTime(),i=new Date(s+o*6e4);localStorage.setItem(t,JSON.stringify({value:n,expires:i}))}}const tp=new Rx,jx=["aria-controls","aria-selected","href","onClick","innerHTML"],Fx=Be({__name:"Tabs",props:{cacheLifetime:{type:Number,default:5},options:{type:Object,required:!1,default:()=>({useUrlFragment:!0,defaultTabHash:null})},wrapperClass:{type:[String,Object,Array],default:"tabs-component"},panelsWrapperClass:{type:[String,Object,Array],default:"tabs-component-panels"},navClass:{type:[String,Object,Array],default:"tabs-component-tabs"},navItemClass:{type:[String,Object,Array],default:"tabs-component-tab"},navItemDisabledClass:{type:[String,Object,Array],default:"is-disabled"},navItemActiveClass:{type:[String,Object,Array],default:"is-active"},navItemInactiveClass:{type:[String,Object,Array],default:"is-inactive"},navItemLinkClass:{type:[String,Object,Array],default:"tabs-component-tab-a"},navItemLinkActiveClass:{type:[String,Object,Array],default:"is-active"},navItemLinkInactiveClass:{type:[String,Object,Array],default:"is-inactive"},navItemLinkDisabledClass:{type:[String,Object,Array],default:"is-disabled"}},emits:["changed","clicked"],setup(e,{expose:t,emit:n}){const o=e,s=Bi({activeTabHash:"",lastActiveTabHash:"",tabs:[]});ks(ep,s),ks(Xf,l=>{s.tabs.push(l)}),ks(Zf,(l,d)=>{const f=s.tabs.findIndex(p=>p.computedId===l);d.isActive=s.tabs[f].isActive,s.tabs[f]=d}),ks(Qf,l=>{const d=s.tabs.findIndex(f=>f.computedId===l);s.tabs.splice(d,1)});const i=(l,d)=>{d&&!o.options.useUrlFragment&&d.preventDefault();const f=r(l);if(!f)return;if(d&&f.isDisabled){d.preventDefault();return}if(s.lastActiveTabHash===f.hash){n("clicked",{tab:f});return}if(s.tabs.forEach(m=>{m.isActive=m.hash===f.hash}),n("changed",{tab:f}),s.lastActiveTabHash=s.activeTabHash=f.hash,o.cacheLifetime<=0)return;const p=`vue-tabs-component.cache.${window.location.host}${window.location.pathname}`;tp.set(p,f.hash,o.cacheLifetime)},r=l=>s.tabs.find(d=>d.hash===l);return Vt(()=>{if(s.tabs.length){if(window.addEventListener("hashchange",()=>i(window.location.hash)),r(window.location.hash)){i(window.location.hash);return}if(o.cacheLifetime>0){const l=`vue-tabs-component.cache.${window.location.host}${window.location.pathname}`,d=tp.get(l);if(d!==null&&r(d)){i(d);return}if(o.options.defaultTabHash&&r("#"+o.options.defaultTabHash)){i("#"+o.options.defaultTabHash);return}}i(s.tabs[0].hash)}}),t({...ew(s),selectTab:i,findTab:r}),(l,d)=>(Z(),te("div",{class:Je(e.wrapperClass)},[u("ul",{role:"tablist",class:Je(e.navClass)},[(Z(!0),te(De,null,dt(s.tabs,(f,p)=>{var m,y;return Z(),te("li",{key:p,class:Je([(m=f.navItemClass)!=null?m:e.navItemClass,f.isDisabled?e.navItemDisabledClass:"",f.isActive?e.navItemActiveClass:f.isDisabled?"":e.navItemInactiveClass]),role:"presentation"},[u("a",{role:"tab",class:Je([(y=f.navItemLinkClass)!=null?y:e.navItemLinkClass,f.isDisabled?e.navItemLinkDisabledClass:"",f.isActive?e.navItemLinkActiveClass:f.isDisabled?"":e.navItemLinkInactiveClass]),"aria-controls":f.paneId,"aria-selected":f.isActive,href:f.hash,onClick:C=>i(f.hash,C),innerHTML:f.header,tabindex:"0"},null,10,jx)],2)}),128))],2),u("div",{class:Je(e.panelsWrapperClass)},[pn(l.$slots,"default")],2)],2))}}),Hx={class:"ce-config ce-basic-config"},Ux={class:"pure-form pure-form-aligned"},zx=u("legend",null,"UI优化",-1),qx={class:"pure-control-group"},Vx=u("label",{for:"basic_hideSidebar"},"隐藏侧边栏",-1),Wx=u("div",{class:"pure-form-message text-success"}," 虽然现在官方也有手动隐藏侧边栏的功能,不过刷新页面后会恢复显示。该设置可以一直隐藏侧边栏。 ",-1),Kx=u("legend",null,"隐私保护",-1),Gx={class:"pure-control-group"},Jx=u("label",{for:"basic_hideWatermark"},"隐藏水印",-1),Yx=u("div",{class:"pure-form-message text-success"}," 网页水印是肉眼看不到的,但通过一些处理可以看到,水印内容是你的账号标识。 如果你需要截图并发给别人,可以考虑开启隐藏。 ",-1),Xx={class:"pure-control-group"},Zx=u("label",{for:"basic_fakeAccountEnabled"},"隐藏身份",-1),Qx=u("div",{class:"pure-form-message text-success"}," 修改右上角显示的账号信息,不会真的修改。编辑后即可生效,无需刷新页面。 ",-1),eC={class:"pure-control-group"},tC=u("label",null,"账号ID",-1),nC={class:"pure-control-group"},oC=u("label",null,"用户名",-1),sC={class:"pure-control-group"},iC=u("label",null,"头像",-1),rC={class:"avatar-preview"},aC=["src"],lC={class:"pure-control-group"},cC=u("label",null,"VIP等级",-1),uC=Be({__name:"Config",async setup(e){let t,n;const o=ge(([t,n]=gn(()=>vr()),t=await t,n(),t));return qt(async()=>{}),wt(o,Sn(async s=>{await Z0(s),ce({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"}),window.postMessage({event:_o.basicConfigChange,body:JSON.parse(JSON.stringify(s))})},500),{deep:!0}),(s,i)=>(Z(),te("div",Hx,[u("form",Ux,[u("fieldset",null,[zx,u("div",qx,[Vx,oe(u("input",{id:"basic_hideSidebar",type:"checkbox","onUpdate:modelValue":i[0]||(i[0]=r=>o.value.hideSidebar=r)},null,512),[[Le,o.value.hideSidebar]]),Wx]),Kx,u("div",Gx,[Jx,oe(u("input",{id:"basic_hideWatermark",type:"checkbox","onUpdate:modelValue":i[1]||(i[1]=r=>o.value.hideWatermark=r)},null,512),[[Le,o.value.hideWatermark]]),Yx]),u("div",Xx,[Zx,oe(u("input",{id:"basic_fakeAccountEnabled",type:"checkbox","onUpdate:modelValue":i[2]||(i[2]=r=>o.value.fakeAccountEnabled=r)},null,512),[[Le,o.value.fakeAccountEnabled]]),Qx]),u("div",eC,[tC,oe(u("input",{"onUpdate:modelValue":i[3]||(i[3]=r=>o.value.fakeAccountId=r),placeholder:"自定义账号ID",class:"pure-input-2-3"},null,512),[[qe,o.value.fakeAccountId]])]),u("div",nC,[oC,oe(u("input",{"onUpdate:modelValue":i[4]||(i[4]=r=>o.value.fakeAccountName=r),placeholder:"自定义用户名",class:"pure-input-2-3"},null,512),[[qe,o.value.fakeAccountName]])]),u("div",sC,[iC,oe(u("input",{"onUpdate:modelValue":i[5]||(i[5]=r=>o.value.fakeAccountAvatar=r),placeholder:"支持网络图片地址或base64编码",class:"pure-input-2-3"},null,512),[[qe,o.value.fakeAccountAvatar]]),u("span",rC,[o.value.fakeAccountAvatar?(Z(),te("img",{key:0,src:o.value.fakeAccountAvatar,alt:"头像预览",width:"20",height:"20"},null,8,aC)):Ge("",!0)])]),u("div",lC,[cC,oe(u("input",{"onUpdate:modelValue":i[6]||(i[6]=r=>o.value.fakeAccountVip=r),placeholder:"自定义VIP等级",class:"pure-input-2-3"},null,512),[[qe,o.value.fakeAccountVip]])])])])]))}}),bA="",dC={class:"pure-form pure-form-aligned"},fC=["disabled"],pC={class:"pure-control-group"},hC=u("label",null,"地址",-1),mC={class:"pure-control-group"},gC=u("label",null,"资源根路径",-1),wC={class:"pure-control-group"},yC=u("label",null,"备注",-1),bC=Be({__name:"ConfigItem",props:{config:null,deletable:{type:Boolean}},emits:["change","delete","activate"],setup(e,{emit:t}){const n=e;qt(async()=>{});function o(){n.config.active=!0,t("activate",n.config)}function s(){t("delete")}return wt(n.config,Sn(async i=>{t("change",i)},500),{deep:!0}),(i,r)=>(Z(),te("div",{class:Je(["ce-clouddrive-config-item",{active:e.config.active}])},[u("form",dC,[u("fieldset",null,[u("legend",null,[u("button",{type:"button",class:Je(["pure-button button-small",[e.config.active?"button-success":"pure-button-primary"]]),onClick:o,disabled:e.config.active},me(e.config.active?"当前使用该配置":"使用该配置"),11,fC),e.deletable?(Z(),te("button",{key:0,type:"button",class:"pure-button button-error button-small",onClick:s}," 删除 ")):Ge("",!0)]),u("div",pC,[hC,oe(u("input",{"onUpdate:modelValue":r[0]||(r[0]=l=>e.config.url=l),placeholder:"CloudDrive服务地址,如「http://localhost:19798」",class:"pure-input-2-3"},null,512),[[qe,e.config.url]])]),u("div",mC,[gC,oe(u("input",{"onUpdate:modelValue":r[1]||(r[1]=l=>e.config.root=l),placeholder:"即当前115账号在CloudDrive中的资源名称,如「115」",class:"pure-input-2-3"},null,512),[[qe,e.config.root]])]),u("div",wC,[yC,oe(u("input",{"onUpdate:modelValue":r[2]||(r[2]=l=>e.config.memo=l),placeholder:"备注信息",class:"pure-input-2-3"},null,512),[[qe,e.config.memo]])])])])],2))}}),vA="",vC={class:"ce-config ce-clouddrive-config"},_C=u("div",{class:"ce-tips cd-tips"},[u("p",null,[u("a",{href:"https://www.clouddrive2.com/?ref=cloud115-enhancer",rel:"noreferer",target:"_blank",class:"text-bold text-primary"},"CloudDrive"),re(" 是一个强大的多云盘管理工具,为用户提供包含云盘本地挂载的一站式的多云盘解决方案。")]),u("p",null,"本脚本主要是借助CloudDrive实现原码视频播放的功能(具体可以在「播放菜单」面板中查看)。")],-1),xC={class:"ce-list"},CC=u("div",{class:"ce-tips"},[u("p",{class:"text-primary"}," 暂时发现IINA是支持`file://`协议的,这时候播放器可以读取到同目录的字幕文件。 配置地址示例: file:///Users/you/115,根路径不用填。 ")],-1),$C=u("div",{class:"ce-tips"}," 编辑配置后,请记得点击「保存全部配置」。 ",-1),kC={class:"ce-actions"},SC=["disabled"],EC=Be({__name:"Config",async setup(e){let t,n;const o=ge(([t,n]=gn(()=>Wl()),t=await t,n(),t));ge("2BWIZPj3"),qt(async()=>{});async function s(){await Kl(o.value),ce({icon:"success",title:"设置已保存。",timer:800,position:"top-end"})}async function i(){o.value.push(Ir())}async function r(d,f){const{isConfirmed:p}=await fe.fire({icon:"warning",html:`确定要删除第 ${f+1} 个配置「${d.url}」吗?`});!p||(o.value.splice(f,1),await s(),ce({icon:"success",title:`「${d.url}」已删除!`}))}async function l(d,f){d.forEach((p,m)=>{p.active=m===f}),await Kl(d),ce({icon:"success",title:"设置已保存。",timer:800,position:"top-end"})}return(d,f)=>(Z(),te("div",vC,[_C,u("div",xC,[(Z(!0),te(De,null,dt(o.value,(p,m)=>(Z(),Rt(bC,{key:m,config:p,index:m,deletable:o.value.length>1,onDelete:y=>r(p,m),onActivate:y=>l(o.value,m)},null,8,["config","index","deletable","onDelete","onActivate"]))),128))]),CC,$C,u("div",kC,[u("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:s,disabled:!o.value.length}," 保存全部配置 ",8,SC),re(" "),u("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:i}," 添加配置 ")])]))}}),_A="",AC={class:"ce-config ce-list-config"},PC={class:"pure-form pure-form-aligned"},OC={class:"pure-control-group"},IC=u("label",{for:"sizeSorter"},"大小排序",-1),TC=u("div",{class:"pure-form-message text-success"},[u("div",null,"在官方的「大小」列头部增加「排序」按钮,可以获取文件夹的大小,然后进行排序。"),u("div",null,"请注意该功能只会对当前加载的文件进行排序,如果有多页文件并需要对全部文件进行排序,请先点击「加载全部」后再使用该排序功能。")],-1),LC={class:"pure-control-group"},MC=u("label",{for:"sizeSorterDirAttrInterval"},"大小排序-获取目录大小间隔",-1),BC=u("div",{class:"pure-form-message text-success"}," 「大小排序」功能需要获取文件夹大小,这个设置是获取文件夹大小的间隔时间,单位是豪秒。 ",-1),DC={class:"pure-control-group"},NC=u("label",{for:"showSha1"},"显示文件SHA1",-1),RC=u("div",{class:"pure-form-message text-success"}," 在文件名下方显示文件SHA1,点击可以复制。 ",-1),jC={class:"pure-control-group"},FC=u("label",{for:"showFolderSizeButton"},"显示文件夹获取大小按钮",-1),HC=u("div",{class:"pure-form-message text-success"}," 点击按钮可以获取单个文件夹的大小。 ",-1),UC=Be({__name:"Config",async setup(e){let t,n;const o=ge(([t,n]=gn(()=>er()),t=await t,n(),t));return qt(async()=>{}),wt(o,Sn(async s=>{await Pb(s),ce({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"}),window.postMessage({event:_o.basicConfigChange,body:JSON.parse(JSON.stringify(s))})},500),{deep:!0}),(s,i)=>(Z(),te("div",AC,[u("form",PC,[u("fieldset",null,[u("div",OC,[IC,oe(u("input",{id:"sizeSorter",type:"checkbox","onUpdate:modelValue":i[0]||(i[0]=r=>o.value.sizeSorter=r)},null,512),[[Le,o.value.sizeSorter]]),TC]),u("div",LC,[MC,oe(u("input",{id:"sizeSorterDirAttrInterval",type:"number","onUpdate:modelValue":i[1]||(i[1]=r=>o.value.sizeSorterDirAttrInterval=r),min:"50",max:"999999"},null,512),[[qe,o.value.sizeSorterDirAttrInterval]]),re(" 毫秒 "),BC]),u("div",DC,[NC,oe(u("input",{id:"showSha1",type:"checkbox","onUpdate:modelValue":i[2]||(i[2]=r=>o.value.showSha1=r)},null,512),[[Le,o.value.showSha1]]),RC]),u("div",jC,[FC,oe(u("input",{id:"showFolderSizeButton",type:"checkbox","onUpdate:modelValue":i[3]||(i[3]=r=>o.value.showFolderSizeButton=r)},null,512),[[Le,o.value.showFolderSizeButton]]),HC])])])]))}}),xA="",zC={class:"menu-config-block"},qC={class:"pure-form pure-form-stacked"},VC=u("legend",null,"全局设置",-1),WC={class:"pure-control-group"},KC=u("label",{for:"basic_enabled"},"启用",-1),GC={class:"pure-control-group"},JC=u("label",{for:"basic_hideSelectionMenuLabel"},"隐藏顶部菜单文本",-1),YC={class:"pure-control-group"},XC=u("label",{for:"basic_enableInSearch"},"在搜索结果页中启用",-1),ZC=Be({__name:"BasicConfig",props:{config:null},setup(e,{emit:t}){const n=e;return(o,s)=>(Z(),te("div",zC,[u("form",qC,[u("fieldset",null,[VC,u("div",WC,[KC,oe(u("input",{id:"basic_enabled",type:"checkbox","onUpdate:modelValue":s[0]||(s[0]=i=>n.config.enabled=i)},null,512),[[Le,n.config.enabled]])]),u("div",GC,[JC,oe(u("input",{id:"basic_hideSelectionMenuLabel",type:"checkbox","onUpdate:modelValue":s[1]||(s[1]=i=>n.config.hideSelectionMenuLabel=i)},null,512),[[Le,n.config.hideSelectionMenuLabel]])]),u("div",YC,[XC,oe(u("input",{id:"basic_enableInSearch",type:"checkbox","onUpdate:modelValue":s[2]||(s[2]=i=>n.config.enableInSearch=i)},null,512),[[Le,n.config.enableInSearch]])])])])]))}}),QC={class:"menu-config-block"},e$={class:"pure-form pure-form-stacked"},t$=u("label",{for:"listItemHover_enabled"},"启用",-1),n$=u("label",{for:"listItemHover_openInNewTab"},"新标签页打开",-1),o$=u("label",{for:"listItemHover_search",class:"text-primary"},"搜索",-1),s$=u("label",{for:"listItemHover_play",class:"text-primary"},"播放",-1),i$=u("label",{for:"listItemHover_copyFileName"},"名称路径",-1),r$=Be({__name:"ListItemHoverConfig",props:{config:null},setup(e){return(t,n)=>(Z(),te("div",QC,[u("form",e$,[u("fieldset",null,[u("legend",null,me(be(ts).listItemHover),1),u("div",null,[t$,oe(u("input",{id:"listItemHover_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[Le,e.config.enabled]])]),u("div",null,[n$,oe(u("input",{id:"listItemHover_openInNewTab",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.openInNewTab=o)},null,512),[[Le,e.config.openInNewTab]])]),u("div",null,[o$,oe(u("input",{id:"listItemHover_search",type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=o=>e.config.search=o)},null,512),[[Le,e.config.search]])]),u("div",null,[s$,oe(u("input",{id:"listItemHover_play",type:"checkbox","onUpdate:modelValue":n[3]||(n[3]=o=>e.config.play=o)},null,512),[[Le,e.config.play]])]),u("div",null,[i$,oe(u("input",{id:"listItemHover_copyFileName",type:"checkbox","onUpdate:modelValue":n[4]||(n[4]=o=>e.config.copyNames=o)},null,512),[[Le,e.config.copyNames]])])])])]))}}),a$={class:"menu-config-block"},l$={class:"pure-form pure-form-stacked"},c$=u("label",{for:"listItemContext_enabled"},"启用",-1),u$=u("label",{for:"listItemContext_copyFileName"},"名称路径",-1),d$=Be({__name:"ListItemContextConfig",props:{config:null},setup(e){return(t,n)=>(Z(),te("div",a$,[u("form",l$,[u("fieldset",null,[u("legend",null,me(be(ts).listItemContext),1),u("div",null,[c$,oe(u("input",{id:"listItemContext_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[Le,e.config.enabled]])]),u("div",null,[u$,oe(u("input",{id:"listItemContext_copyFileName",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.copyNames=o)},null,512),[[Le,e.config.copyNames]])])])])]))}}),f$={class:"menu-config-block"},p$={class:"pure-form pure-form-stacked"},h$=u("label",{for:"selection_enabled"},"启用",-1),m$=u("label",{for:"selection_moveToSelfNameDir"},"移动到同名目录",-1),g$=u("label",{for:"selection_copyFileName"},"名称路径",-1),w$=Be({__name:"SelectionConfig",props:{config:null},setup(e){return(t,n)=>(Z(),te("div",f$,[u("form",p$,[u("fieldset",null,[u("legend",null,me(be(ts).selection),1),u("div",null,[h$,oe(u("input",{id:"selection_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[Le,e.config.enabled]])]),u("div",null,[m$,oe(u("input",{id:"selection_moveToSelfNameDir",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.moveToSelfNameDir=o)},null,512),[[Le,e.config.moveToSelfNameDir]])]),u("div",null,[g$,oe(u("input",{id:"selection_copyFileName",type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=o=>e.config.copyNames=o)},null,512),[[Le,e.config.copyNames]])])])])]))}}),y$={class:"menu-config-block"},b$={class:"pure-form pure-form-stacked"},v$=u("label",{for:"dirContext_enabled"},"启用",-1),_$=u("label",{for:"dirContext_rename"},"重命名",-1),x$=u("label",{for:"dirContext_delete"},"删除",-1),C$=u("label",{for:"dirContext_play"},"播放全部",-1),$$=u("label",{for:"dirContext_copyFileName"},"名称路径",-1),k$=u("label",{for:"dirContext_move"},"移动",-1),S$=u("label",{for:"dirContext_copy"},"复制",-1),E$=u("label",{for:"dirContext_copyTo"},"复制到",-1),A$=u("label",{for:"dirContext_viewProperties"},"查看属性",-1),P$=u("label",{for:"dirContext_showSubFolderSize"},"子文件夹大小",-1),O$=Be({__name:"DirContextConfig",props:{config:null},setup(e){return(t,n)=>(Z(),te("div",y$,[u("form",b$,[u("fieldset",null,[u("legend",null,me(be(ts).dirContext),1),u("div",null,[v$,oe(u("input",{id:"dirContext_enabled",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=o=>e.config.enabled=o)},null,512),[[Le,e.config.enabled]])]),u("div",null,[_$,oe(u("input",{id:"dirContext_rename",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=o=>e.config.rename=o)},null,512),[[Le,e.config.rename]])]),u("div",null,[x$,oe(u("input",{id:"dirContext_delete",type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=o=>e.config.delete=o)},null,512),[[Le,e.config.delete]])]),u("div",null,[C$,oe(u("input",{id:"dirContext_play",type:"checkbox","onUpdate:modelValue":n[3]||(n[3]=o=>e.config.play=o)},null,512),[[Le,e.config.play]])]),u("div",null,[$$,oe(u("input",{id:"dirContext_copyFileName",type:"checkbox","onUpdate:modelValue":n[4]||(n[4]=o=>e.config.copyNames=o)},null,512),[[Le,e.config.copyNames]])]),u("div",null,[k$,oe(u("input",{id:"dirContext_move",type:"checkbox","onUpdate:modelValue":n[5]||(n[5]=o=>e.config.move=o)},null,512),[[Le,e.config.move]])]),u("div",null,[S$,oe(u("input",{id:"dirContext_copy",type:"checkbox","onUpdate:modelValue":n[6]||(n[6]=o=>e.config.copy=o)},null,512),[[Le,e.config.copy]])]),u("div",null,[E$,oe(u("input",{id:"dirContext_copyTo",type:"checkbox","onUpdate:modelValue":n[7]||(n[7]=o=>e.config.copyTo=o)},null,512),[[Le,e.config.copyTo]])]),u("div",null,[A$,oe(u("input",{id:"dirContext_viewProperties",type:"checkbox","onUpdate:modelValue":n[8]||(n[8]=o=>e.config.viewProp=o)},null,512),[[Le,e.config.viewProp]])]),u("div",null,[P$,oe(u("input",{id:"dirContext_showSubFolderSize",type:"checkbox","onUpdate:modelValue":n[9]||(n[9]=o=>e.config.showSubFolderSize=o)},null,512),[[Le,e.config.showSubFolderSize]])])])])]))}}),I$={class:"official-menu-config"},T$={class:"pure-form pure-form-stacked"},L$=["for"],M$=["id","onUpdate:modelValue"],B$=Be({__name:"OfficialMenuConfig",setup(e){const t=ge([]),n=ge(!1);return qt(async()=>{t.value=await Zd(),console.log("official menu groups",t.value,location.href)}),Vt(()=>{document.body.addEventListener("click",()=>{n.value||(n.value=!0)})}),wt(t,Sn(async o=>{if(!n.value)return;const s=await Xd(o);await Yd(s),ce({icon:"success",title:"官方菜单设置已保存,刷新页面生效。",timer:1e3,position:"top-end"})},500),{deep:!0}),(o,s)=>(Z(),te("div",I$,[(Z(!0),te(De,null,dt(t.value,(i,r)=>(Z(),te("div",{key:r,class:"menu-config-block"},[u("form",T$,[u("fieldset",null,[u("legend",null,me(i.label),1),(Z(!0),te(De,null,dt(i.items,(l,d)=>(Z(),te("div",{key:d},[u("label",{for:`m_${r}_${d}_enabled`},me(l.label),9,L$),oe(u("input",{id:`m_${r}_${d}_enabled`,type:"checkbox","onUpdate:modelValue":f=>l.enabled=f},null,8,M$),[[Le,l.enabled]])]))),128))])])]))),128))]))}}),D$={key:0,class:"ce-menu-config"},N$=u("div",{class:"ce-tips"},[u("p",null,"「搜索」功能菜单支持自定义,可在「搜索菜单」设置面板中添加和管理。"),u("p",null,"「播放」功能菜单支持自定义,可在「播放菜单」设置面板中添加和管理。")],-1),R$=u("hr",{class:"ce-hr"},null,-1),j$=u("h1",null,"官方菜单设置",-1),F$=Be({__name:"MenuConfig",async setup(e){let t,n;const o=ge(([t,n]=gn(()=>ta()),t=await t,n(),t));return ge(!1),qt(async()=>{}),wt(o,Sn(async s=>{await qm(s),ce({icon:"success",title:"设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"})},500),{deep:!0}),(s,i)=>o.value.enabled!==void 0?(Z(),te("div",D$,[N$,ve(ZC,{config:o.value},null,8,["config"]),ve(r$,{config:o.value.listItemHover},null,8,["config"]),ve(d$,{config:o.value.listItemContext},null,8,["config"]),ve(w$,{config:o.value.selection},null,8,["config"]),ve(O$,{config:o.value.dirContext},null,8,["config"]),R$,u("div",null,[j$,u("div",null,[ve(B$)])])])):Ge("",!0)}}),CA="",H$={class:"ce-custom-url"},U$={class:"pure-form pure-form-aligned"},z$={class:"ce-custom-url-index"},q$={class:"pure-control-group"},V$=u("label",null,"启用",-1),W$={class:"pure-control-group"},K$=u("label",null,"唯一标识",-1),G$={class:"pure-control-group"},J$=u("label",null,"显示名称",-1),Y$={class:"pure-control-group"},X$=u("label",null,"图标",-1),Z$={class:"pure-control-group"},Q$={class:"pure-control-group"},e2=u("label",null,"后台打开",-1),t2={class:"pure-control-group"},n2=u("label",null,"备注",-1),o2={key:0,class:"pure-control-group"},s2=u("label",null,"Mutation",-1),np=Be({__name:"CustomUrl",props:{item:null,index:null},emits:["delete"],setup(e,{emit:t}){const n=ge(!0);function o(){t("delete")}function s(){n.value=!n.value,n.value&&ce({title:"已开启高级模式",text:"请谨慎修改,不正确的代码可能会导致脚本崩溃。",icon:"info",timer:2e3})}async function i(){window.postMessage({event:"customUrlHelp"},"*")}async function r(){const l=`
<div style="text-align:left;">
<p>自定义代码,用于生成最终的链接。</p><br>
<p>代码会被包含在一个async匿名函数中执行,最终应该返回一个链接字符串。</p>
<p>传入的参数名为「payload」,其结构如下:</p>
<p>- url: 之前自动处理得到的链接</p>
<p>- file:当前文件信息</p>
<p>- customUrl:当前自定义规则信息</p>
<p>- cloudDriveConfig:CloudDrive设置信息</p><br>
<p>示例:</p>
<pre style="text-align:left;font-size:12px;">
const {
url,
file,
customUrl,
cloudDriveConfig
} = payload
const sth = await fetch(\`https://api.sth.com/foo?bar=\${file.pc}\`)
return \`https://example.com/do?key=\${sth}\`
</pre>
</div>
`;await fe.fire({title:"Mutation 说明",html:l,width:480,position:"top-start",backdrop:!1})}return(l,d)=>(Z(),te("div",H$,[u("form",U$,[u("fieldset",null,[u("legend",null,[u("span",z$,"# "+me(e.index+1),1),u("button",{type:"button",class:"pure-button button-error button-small",onClick:o}," 删除 ")]),u("div",q$,[V$,oe(u("input",{"onUpdate:modelValue":d[0]||(d[0]=f=>e.item.enabled=f),type:"checkbox",id:"customUrl_enabled"},null,512),[[Le,e.item.enabled]])]),u("div",W$,[K$,oe(u("input",{"onUpdate:modelValue":d[1]||(d[1]=f=>e.item.key=f),id:"customUrl_key",class:"pure-input-2-3",placeholder:"英文、数字或下划线"},null,512),[[qe,e.item.key]])]),u("div",G$,[J$,oe(u("input",{"onUpdate:modelValue":d[2]||(d[2]=f=>e.item.label=f),id:"customUrl_label",class:"pure-input-2-3",placeholder:"菜单文本,尽量简洁"},null,512),[[qe,e.item.label]])]),u("div",Y$,[X$,oe(u("input",{"onUpdate:modelValue":d[3]||(d[3]=f=>e.item.icon=f),id:"customUrl_icon",class:"pure-input-2-3",placeholder:"图标class、图片链接或图片data:image"},null,512),[[qe,e.item.icon]])]),u("div",Z$,[u("label",{onDblclick:s}," 链接 ",32),oe(u("textarea",{"onUpdate:modelValue":d[4]||(d[4]=f=>e.item.url=f),id:"customUrl_url",class:"pure-input-2-3",placeholder:"链接地址,支持变量,变量列表请点击右侧「查看变量」"},null,512),[[qe,e.item.url]]),re(" "),u("a",{href:"javascript:void(0)",class:"text-primary",onClick:i},"查看变量")]),u("div",Q$,[e2,oe(u("input",{"onUpdate:modelValue":d[5]||(d[5]=f=>e.item.openInBackground=f),id:"customUrl_openInBackground",type:"checkbox"},null,512),[[Le,e.item.openInBackground]])]),u("div",t2,[n2,oe(u("input",{"onUpdate:modelValue":d[6]||(d[6]=f=>e.item.memo=f),id:"customUrl_memo",class:"pure-input-2-3"},null,512),[[qe,e.item.memo]])]),n.value?(Z(),te("div",o2,[s2,oe(u("textarea",{"onUpdate:modelValue":d[7]||(d[7]=f=>e.item.mutation=f),id:"customUrl_mutation",class:"pure-input-2-3",placeholder:"自定义代码生成最终链接,具体请看右侧「查看说明」"},null,512),[[qe,e.item.mutation]]),re(" "),u("a",{href:"javascript:void(0)",class:"text-primary",onClick:r},"查看说明")])):Ge("",!0)])])]))}}),$A="",i2={class:"ce-config ce-search-urls ce-custom-urls"},r2={class:"ce-menu-urls-builtin"},a2={class:"pure-form pure-form-aligned"},l2=["for"],c2=["id","onUpdate:modelValue"],u2={class:"text-info"},d2=["onClick"],f2={class:"ce-custom-urls-list"},p2={class:"ce-custom-urls-actions"},h2=["disabled"],m2=Be({__name:"SearchUrls",async setup(e){let t,n;const o=ge(([t,n]=gn(()=>Nd()),t=await t,n(),t)),s=ge(([t,n]=gn(()=>ls(Pn.search)),t=await t,n(),t));qt(async()=>{}),wt(o,Sn(async p=>{const m=[];p.forEach(y=>{y.enabled&&m.push(y.key)}),await $b(m),ce({icon:"success",title:"预置搜索菜单设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"})},500),{deep:!0});async function i(){const p=[];for(const m of s.value){if(!await r(m,p.length))return;if(p.includes(m.key)){ce({icon:"error",title:`第 ${p.length+1} 个记录的「唯一标识: ${m.key}」重复!`});return}p.push(m.key)}await Hc(Pn.search,s.value),ce({icon:"success",title:"保存成功!"})}async function r(p,m){const y=/^\w+$/;return p.key=p.key.trim(),y.test(p.key)?(p.label=p.label.trim(),p.label===""?(ce({icon:"error",title:`第 ${m+1} 个记录的「显示名称」不能为空!`}),!1):(p.url=p.url.trim(),p.url===""?(ce({icon:"error",title:`第 ${m+1} 个记录的「链接」不能为空!`}),!1):(p.icon=p.icon.trim(),p.memo=p.memo.trim(),!0))):(ce({icon:"error",title:`第 ${m+1} 个记录的「唯一标识」错误!只能包含字母、数字、下划线。`}),!1)}async function l(){s.value.push(ut())}async function d(p,m){const{isConfirmed:y}=await fe.fire({icon:"warning",html:`确定要删除第 ${m+1} 个记录「${p.label}」吗?`});!y||(s.value.splice(m,1),await i(),ce({icon:"success",title:`「${p.label}」已删除!`}))}async function f(p){const m=JSON.stringify(p,null,2),y=`ce-url-item-denifition-${p.key}`,{isConfirmed:C}=await fe.fire({title:`「${p.label}」的定义`,html:`<h3>${p.memo}</h3>
<pre id="${y}" style="text-align:left;font-size:12px;"></pre>`,confirmButtonText:"复制",showCancelButton:!0,position:"top-left",heightAuto:!0,didOpen:()=>{document.getElementById(y).textContent=m}});!C||(navigator.clipboard.writeText(m),ce({icon:"success",title:"已复制到剪贴板!"}))}return(p,m)=>(Z(),te("div",i2,[u("h1",null,[re("预置搜索菜单 "),oe(u("small",null,"( "+me(o.value.length)+" )",513),[[Wt,o.value.length]])]),u("div",r2,[u("form",a2,[u("fieldset",null,[(Z(!0),te(De,null,dt(o.value,(y,C)=>(Z(),te("div",{key:C,class:"pure-control-group"},[u("label",{for:`builtin_${y.key}`},me(y.label),9,l2),oe(u("input",{id:`builtin_${y.key}`,type:"checkbox","onUpdate:modelValue":E=>y.enabled=E},null,8,c2),[[Le,y.enabled]]),re(" "),u("span",u2,me(y.memo),1),re(" "),u("button",{type:"button",class:"pure-button button-small",onClick:E=>f(y)},"查看定义",8,d2)]))),128))])])]),u("h1",null,[re("自定义搜索菜单 "),oe(u("small",null,"( "+me(s.value.length)+" )",513),[[Wt,s.value.length]])]),u("div",f2,[(Z(!0),te(De,null,dt(s.value,(y,C)=>(Z(),Rt(np,{key:C,item:y,index:C,onDelete:E=>d(y,C)},null,8,["item","index","onDelete"]))),128))]),u("div",p2,[u("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:i,disabled:!s.value.length}," 保存自定义搜索菜单 ",8,h2),re(" "),u("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:l}," 添加自定义搜索菜单 ")])]))}}),kA="",g2={class:"ce-config ce-play-urls ce-custom-urls"},w2=u("div",{class:"ce-tips"},[u("p",null,[re("支持常见的视频、音频和图片格式,也支持目录播放。预置播放菜单使用的链接变量是 "),u("b",null,"{clouddrive_stream_url}"),re(" , 会根据文件或目录自动使用相应的链接。")]),u("p",null,"播放功能依赖CloudDrive,请先在「CloudDrive」设置面板中进行配置。")],-1),y2={class:"ce-menu-urls-builtin"},b2={class:"pure-form pure-form-aligned"},v2=["for"],_2=["id","onUpdate:modelValue"],x2={class:"text-info"},C2=["onClick"],$2=["innerHTML"],k2={class:"ce-custom-urls-list"},S2=u("div",{class:"ce-tips"}," 编辑后,请记得点击「保存自定义播放菜单」。 ",-1),E2={class:"ce-custom-urls-actions"},A2=["disabled"],P2=Be({__name:"PlayUrls",async setup(e){let t,n;const o=ge(([t,n]=gn(()=>Ja()),t=await t,n(),t)),s=ge(([t,n]=gn(()=>ls(Pn.play)),t=await t,n(),t));qt(async()=>{}),wt(o,Sn(async p=>{const m=[];p.forEach(y=>{y.enabled&&m.push(y.key)}),await kb(m),ce({icon:"success",title:"预置搜索菜单设置已保存,刷新页面以使全部更改生效。",timer:1e3,position:"top-end"})},500),{deep:!0});async function i(){const p=[];for(const m of s.value){if(!await r(m,p.length))return;if(p.includes(m.key)){ce({icon:"error",title:`第 ${p.length+1} 个记录的「唯一标识: ${m.key}」重复!`});return}p.push(m.key)}await Hc(Pn.play,s.value),ce({icon:"success",title:"保存成功!"})}async function r(p,m){const y=/^\w+$/;return p.key=p.key.trim(),y.test(p.key)?(p.label=p.label.trim(),p.label===""?(ce({icon:"error",title:`第 ${m+1} 个记录的「显示名称」不能为空!`}),!1):(p.url=p.url.trim(),p.url===""?(ce({icon:"error",title:`第 ${m+1} 个记录的「链接」不能为空!`}),!1):(p.icon=p.icon.trim(),p.memo=p.memo.trim(),!0))):(ce({icon:"error",title:`第 ${m+1} 个记录的「唯一标识」错误!只能包含字母、数字、下划线。`}),!1)}async function l(){s.value.push(ut())}async function d(p,m){const{isConfirmed:y}=await fe.fire({icon:"warning",html:`确定要删除第 ${m+1} 个记录「${p.label}」吗?`});!y||(s.value.splice(m,1),await i(),ce({icon:"success",title:`「${p.label}」已删除!`}))}async function f(p){const m=JSON.stringify(p,null,2),y=`ce-url-item-denifition-${p.key}`,{isConfirmed:C}=await fe.fire({title:`「${p.label}」的定义`,html:`<h3>${p.memo}</h3>
<pre id="${y}" style="text-align:left;font-size:12px;"></pre>`,confirmButtonText:"复制",showCancelButton:!0,position:"top-left",heightAuto:!0,didOpen:()=>{document.getElementById(y).innerText=m}});!C||(navigator.clipboard.writeText(m),ce({icon:"success",title:"已复制到剪贴板!"}))}return(p,m)=>(Z(),te("div",g2,[u("h1",null,[re("预置播放菜单 "),oe(u("small",null,"( "+me(o.value.length)+" )",513),[[Wt,o.value.length]])]),w2,u("div",y2,[u("form",b2,[u("fieldset",null,[(Z(!0),te(De,null,dt(o.value,(y,C)=>(Z(),te("div",{key:C,class:"pure-control-group"},[u("label",{for:`builtin_${y.key}`},me(y.label),9,v2),oe(u("input",{id:`builtin_${y.key}`,type:"checkbox","onUpdate:modelValue":E=>y.enabled=E},null,8,_2),[[Le,y.enabled]]),re(" "),u("span",x2,me(y.memo),1),re(" "),u("button",{type:"button",class:"pure-button button-small",onClick:E=>f(y)},"查看定义",8,C2),y.extraMemo?(Z(),te("span",{key:0,innerHTML:y.extraMemo,class:"extra-memo"},null,8,$2)):Ge("",!0)]))),128))])])]),u("h1",null,[re("自定义播放菜单 "),oe(u("small",null,"( "+me(s.value.length)+" )",513),[[Wt,s.value.length]])]),u("div",k2,[(Z(!0),te(De,null,dt(s.value,(y,C)=>(Z(),Rt(np,{key:C,item:y,index:C,onDelete:E=>d(y,C)},null,8,["item","index","onDelete"]))),128))]),S2,u("div",E2,[u("button",{type:"button",class:"pure-button pure-button-primary button-large",onClick:i,disabled:!s.value.length}," 保存自定义播放菜单 ",8,A2),re(" "),u("button",{type:"button",class:"pure-button pure-button-success button-large",onClick:l}," 添加自定义播放菜单 ")])]))}}),SA="",op=function(){return document.ontouchstart!==null?"click":"touchstart"},Cr="__vue_click_away__",sp=function(e,t,n){ip(e);let o=n.context,s=t.value,i=!1;setTimeout(function(){i=!0},0),e[Cr]=function(r){if((!e||!e.contains(r.target))&&s&&i&&typeof s=="function")return s.call(o,r)},document.addEventListener(op(),e[Cr],!1)},ip=function(e){document.removeEventListener(op(),e[Cr],!1),delete e[Cr]},O2={mounted:sp,updated:function(e,t,n){t.value!==t.oldValue&&sp(e,t,n)},unmounted:ip},I2=Be({__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=ge(!1),s=ge(!1),i=l=>{const d=document.querySelector("body");d.style.overflow=l?"hidden":""},r=l=>{!l.target.classList.contains("ce-drawer__overlay")||s.value||t("close")};return Vt(()=>{o.value=n.isOpen}),wt(()=>n.isOpen,l=>{s.value=!0,l?(i(!0),o.value=!0):(i(!1),setTimeout(()=>o.value=!1,n.speed)),setTimeout(()=>s.value=!1,n.speed)}),(l,d)=>(Z(),te("div",null,[u("div",{class:Je(["ce-drawer",{"is-open":e.isOpen,"is-visible":o.value}])},[u("div",{class:"ce-drawer__overlay",style:ln({transitionDuration:`${e.speed}ms`})},null,4),oe((Z(),te("div",{class:"ce-drawer__content",style:ln({maxWidth:e.maxWidth,transitionDuration:`${e.speed}ms`,backgroundColor:e.backgroundColor})},[pn(l.$slots,"default")],4)),[[be(O2),r]])],2)]))}}),AA="",T2={class:"ce-about"},L2=u("p",null,"115不大助手(以下简称「脚本」),是一个仅用于学习编程的小脚本。",-1),M2=u("br",null,null,-1),B2=u("p",null,"脚本不会收集您的任何个人信息。",-1),D2=u("p",null,"脚本仅借助了官方已有的功能,无任何破解行为。",-1),N2=u("br",null,null,-1),R2=u("br",null,null,-1),j2=u("br",null,null,-1),F2=u("hr",{class:"ce-hr"},null,-1),H2=["href"],U2=Be({__name:"About",setup(e){const t={name:"115不大助手",version:"0.5.33",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)=>(Z(),te("div",T2,[L2,M2,B2,D2,N2,R2,j2,F2,u("div",null,[u("a",{href:be(t).greasyforkUrl,class:"text-bold text-primary",target:"_blank",rel:"noreferrer noopener",title:"到Greasyfork查看"},[re(me(be(t).name)+" ",1),u("small",null,"v"+me(be(t).version),1)],8,H2),re(" "),u("small",null,"by "+me(be(t).author.name),1)])]))}}),z2={class:"ce-config-main"},q2={class:"ce-config-main-header"},V2=u("h1",null,"设置",-1),W2={class:"ce-intro"},K2=["href"],G2={class:"ce-config-main-body"},J2=Be({__name:"Config",setup(e){const t={name:"115不大助手",version:"0.5.33",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=ge(!1),o=ge(!1);Vt(async()=>{window.addEventListener("message",d=>{const{event:f}=d.data;f===_o.openConfig&&(n.value||(n.value=!0),s())},!1)});async function s(){o.value=!0}async function i(){o.value=!1}async function r(...d){console.log("[tabClicked]",d)}async function l(...d){console.log("[tabChanged]",d)}return(d,f)=>(Z(),Rt(ju,null,{default:Ve(()=>[u("div",z2,[ve(I2,{"is-open":o.value,onClose:i,"max-width":"980px",speed:500},{default:Ve(()=>[u("div",q2,[V2,u("span",W2,[u("a",{href:be(t).greasyforkUrl,class:"text-bold text-primary",target:"_blank",rel:"noreferrer noopener",title:"到Greasyfork查看"},[re(me(be(t).name)+" ",1),u("small",null,"v"+me(be(t).version),1)],8,K2),re(" "),u("small",null,"by "+me(be(t).author.name),1)]),u("div",{class:"ce-config-main-close",onClick:i},"关闭")]),u("div",G2,[ve(be(Fx),{options:{useUrlFragment:!1},onClicked:r,onChanged:l},{default:Ve(()=>[ve(be(Gn),{name:"基础设置"},{default:Ve(()=>[ve(uC)]),_:1}),ve(be(Gn),{name:"CloudDrive"},{default:Ve(()=>[ve(EC)]),_:1}),ve(be(Gn),{name:"列表增强"},{default:Ve(()=>[ve(UC)]),_:1}),ve(be(Gn),{name:"菜单设置"},{default:Ve(()=>[ve(F$)]),_:1}),ve(be(Gn),{name:"搜索菜单"},{default:Ve(()=>[ve(m2)]),_:1}),ve(be(Gn),{name:"播放菜单"},{default:Ve(()=>[ve(P2)]),_:1}),ve(be(Gn),{name:"离线管理"},{default:Ve(()=>[ve(of)]),_:1}),ve(be(Gn),{name:"关于"},{default:Ve(()=>[ve(U2)]),_:1})]),_:1})])]),_:1},8,["is-open"])])]),_:1}))}}),PA="";async function Y2(){const{host:e}=location;!e.includes("115.com")||window.top===window.self&&(console.log("[Cloud115 Enhancer - main] running..."),X2(),Z2())}async function X2(){console.log("[Cloud115 Enhancer - main] injectUI");const e="cloud115ConfigMain",t=document.createElement("div");t.id=e,document.body.appendChild(t),wo(J2).mount(`#${e}`),Bl("设置",async()=>{window.postMessage({event:_o.openConfig})})}async function Z2(){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",Q2),n.title="打开「115不大助手」设置",n.innerHTML='<i class="isn-setting"></i><span>115不大助手</span>',t.appendChild(n),e.insertBefore(t,e.firstChild)}async function Q2(){window.postMessage({event:_o.openConfig})}const OA="";async function ek(){await er();const{host:e,search:t}=location;!/115\.com$/.test(e)||(t.includes("ct=file")||t.includes("mode=search"))&&Tb()}location.host==="115.com"&&(window.COMMONHEADERUSERINFO=window.COMMONHEADERUSERINFO||{}),(async()=>(console.log("Cloud115 Enhancer launched!"),sv(),o1(),Lx(),Dx(),ek(),Y2()))()})();