eHunter

This extension provides a scroll mode and book mode to e-hentai/exhentai/nhentai, for the best reading experince! 此扩展为e-hentai/exhentai/nhentai提供一个滚动模式和书本模式, 提供良好的阅读体验.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         eHunter
// @namespace    http://tampermonkey.net/
// @version      3.1.0
// @description  This extension provides a scroll mode and book mode to e-hentai/exhentai/nhentai, for the best reading experince!  此扩展为e-hentai/exhentai/nhentai提供一个滚动模式和书本模式, 提供良好的阅读体验.
// @supportURL   https://github.com/hanFengSan/eHunter/issues
// @author       Alex Chen
// @match        https://exhentai.org/*
// @match        https://e-hentai.org/*
// @match        https://nhentai.net/*
// @connect      hath.network
// @connect      nhentai.net
// @connect      githubusercontent.com
// @connect      jp.animesales.xyz
// @grant        GM_xmlhttpRequest
// @grant        GM_download
// @license      MIT
// ==/UserScript==
(function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";.circle-icon-button[data-v-2a2205e2]{height:26px;width:26px;background:#00000080;border-radius:50%;justify-content:center;align-items:center;cursor:pointer;user-select:none;transition:all .2s}.circle-icon-button.big[data-v-2a2205e2]{height:36px;width:36px}.circle-icon-button>svg[data-v-2a2205e2]{fill:#ffffffe6;height:18px;width:18px;transition:all .2s}.circle-icon-button>svg.rotate[data-v-2a2205e2]{transform:rotate(90deg)}.circle-icon-button>svg.rotate90[data-v-2a2205e2]{transform:rotate(90deg)}.circle-icon-button>svg.rotate180[data-v-2a2205e2]{transform:rotate(180deg)}.circle-icon-button>svg.rotateMinus90[data-v-2a2205e2]{transform:rotate(-90deg)}.circle-icon-button>svg.rotateMinus180[data-v-2a2205e2]{transform:rotate(-180deg)}.circle-icon-button[data-v-2a2205e2]:hover{background:#ffffffe6}.circle-icon-button:hover>svg[data-v-2a2205e2]{fill:#00000080}.circle-icon-button[data-v-2a2205e2]:active{background:#fff3}.circle-icon-button:active>svg[data-v-2a2205e2]{fill:#00000080}.popover[data-v-e5801761]{position:absolute;top:100%;left:0;background:#fff;border-radius:2px;color:#000;box-shadow:1px 1px 5px 1px #0000001a;transition:all .3s ease;z-index:1}div[data-v-ed651547]{display:flex}.drop-option[data-v-ed651547]{position:relative;justify-content:center;align-items:center;overflow:visible;cursor:pointer}.drop-option>.text[data-v-ed651547]{margin-left:7px;padding:3px 5px;background:#0003;white-space:nowrap;color:#fff;font-size:14px}.drop-option>.icon-drop-down[data-v-ed651547]{fill:#fff;height:18px;width:18px;margin-left:2px}.drop-option .options[data-v-ed651547]{flex-direction:column;transition:all .3s ease}.drop-option .options>.item[data-v-ed651547]{white-space:nowrap;color:#000c;padding:7px 11px;min-width:52px;transition:all .3s ease}.drop-option .options>.item>span[data-v-ed651547]{transition:all .3s ease}.drop-option .options>.item[data-v-ed651547]:hover{cursor:pointer;background:#0000001a}.drop-option .options>.item:hover>span[data-v-ed651547]{color:#28af60;margin-left:5px;margin-right:-5px}.flat-button>a[data-v-e69ed2a2]{font-size:14px;cursor:pointer;user-select:none;white-space:nowrap;transition:all .2s ease}.flat-button>.default[data-v-e69ed2a2]{padding:5px 10px}.flat-button.inline[data-v-e69ed2a2]{margin-left:10px}.flat-button>.plain[data-v-e69ed2a2]{color:#28af60}.flat-button>.plain[data-v-e69ed2a2]:hover{color:#37d278}.flat-button>.plain[data-v-e69ed2a2]:active{color:#1e8549}.flat-button>.positive[data-v-e69ed2a2]{color:#2ecc70}.flat-button>.positive[data-v-e69ed2a2]:hover{color:#55d88b}.flat-button>.positive[data-v-e69ed2a2]:active{color:#25a259}.flat-button>.negative[data-v-e69ed2a2]{color:#aaa}.flat-button>.negative[data-v-e69ed2a2]:hover{color:#c4c4c4}.flat-button>.negative[data-v-e69ed2a2]:active{color:#919191}.flat-button>.warning[data-v-e69ed2a2]{color:#e74c3c}.flat-button>.warning[data-v-e69ed2a2]:hover{color:#ed7669}.flat-button>.warning[data-v-e69ed2a2]:active{color:#d62c1a}div[data-v-c3d57ccd],section[data-v-c3d57ccd]{display:flex}.ehunter-pagination[data-v-c3d57ccd]{justify-content:center;align-items:center;transition:all .3s ease}.ehunter-pagination>span[data-v-c3d57ccd]{font-size:14px;line-height:28px;text-align:center;color:#c9cacf;transition:all .3s ease}.ehunter-pagination>span[data-v-c3d57ccd]:hover{color:#fff}.ehunter-pagination>.item[data-v-c3d57ccd]{margin:0 5px;width:28px;height:28px;justify-content:center;align-content:center;border-radius:6%;cursor:pointer;user-select:none;background:transparent;transition:all .3s ease}.ehunter-pagination>.item[data-v-c3d57ccd]:hover{background:#777}.ehunter-pagination>.item.active[data-v-c3d57ccd]{color:#fff;background:#2ecc70}.ehunter-pagination>.item>.icon[data-v-c3d57ccd]{fill:#c9cacf;width:24px}.ehunter-pagination>.item>.icon[data-v-c3d57ccd]:hover{fill:#fff}.ehunter-pagination>.item.disable[data-v-c3d57ccd]{cursor:not-allowed}.ehunter-pagination>.item.disable[data-v-c3d57ccd]:hover{background:transparent}.ehunter-pagination>.item.disable>.icon[data-v-c3d57ccd]{fill:#c9cacf99}.ehunter-pagination>.item.disable>.icon[data-v-c3d57ccd]:hover{fill:#c9cacf99}div[data-v-5a202c7e]{display:flex}.slider[data-v-5a202c7e]{position:relative;width:200px;height:20px;cursor:pointer}.slider>.track[data-v-5a202c7e]{position:absolute;left:0;height:2px;width:100%;top:50%;transform:translateY(-50%);background:#bdbdbd}.slider>.fill[data-v-5a202c7e]{position:absolute;left:0;height:2px;width:20%;top:50%;transform:translateY(-50%);background:#28af60}.slider>.thumb[data-v-5a202c7e]{position:absolute;width:12px;height:12px;top:50%;border-radius:50%;transform:translate(-50%,-50%);background:#2ecc70;pointer-events:none;transition:width .1s ease,height .1s ease}div[data-v-ea2849fc]{display:flex}.simple-modal[data-v-ea2849fc]{position:fixed;inset:0;z-index:10030;overflow-y:auto}.simple-dialog[data-v-ea2849fc]{box-shadow:1px 1px 5px 1px #0000001a;position:absolute;width:100%;height:100%;top:0;left:0}.simple-dialog>.background[data-v-ea2849fc]{flex:1;background:#0009}.simple-dialog>article[data-v-ea2849fc]{display:flex;flex-direction:column;position:absolute;background:#fff;border-radius:3px;min-width:430px;min-height:110px;max-width:50%;max-height:88%;left:50%;top:50%;transform:translate(-50%,-50%);padding:19px 22px}.simple-dialog>article>h4[data-v-ea2849fc]{box-sizing:border-box;font-size:22px;text-align:left;margin:2px 0;padding-bottom:10px;color:#000;font-weight:lighter}.simple-dialog>article>p[data-v-ea2849fc]{color:#000c;text-align:left;font-size:16px;overflow:auto;flex:1}.simple-dialog>article>.operation-bar[data-v-ea2849fc]{flex-direction:row-reverse;margin-top:10px;flex-shrink:0}@media only screen and (max-width:767px){.simple-dialog>article[data-v-ea2849fc]{min-width:280px;max-width:90%;padding:16px 18px}.simple-dialog>article>h4[data-v-ea2849fc]{font-size:18px;padding-bottom:8px}.simple-dialog>article>p[data-v-ea2849fc]{font-size:14px}}input[data-v-ffc66e8a]::-webkit-outer-spin-button,input[data-v-ffc66e8a]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-ffc66e8a]{-moz-appearance:textfield}div[data-v-ffc66e8a]{display:flex}.PopSlider>.content[data-v-ffc66e8a]{padding:7px 10px 7px 15px;align-items:center}.PopSlider>.content>.button[data-v-ffc66e8a]{margin-left:8px}.PopSlider>.content>.value[data-v-ffc66e8a]{background:transparent;border:none;width:30px;color:#2ecc70;margin-right:7px;font-size:13px;text-align:center}.PopSlider>.content>.value[data-v-ffc66e8a]:focus{outline-width:0;color:#222}div[data-v-c7457182]{display:flex}.num-drop-option[data-v-c7457182]{position:relative}div[data-v-a86efd32]{display:flex}.switch[data-v-a86efd32]{width:28px;margin:auto 15px;position:relative;cursor:pointer}.switch>.track[data-v-a86efd32]{height:14px;width:100%;border-radius:30px;background:#bdbdbd;transition:all .45s cubic-bezier(.23,1,.32,1)}.switch>.track.active[data-v-a86efd32]{background:#71ca96}.switch>.thumb[data-v-a86efd32]{position:absolute;width:20px;height:20px;background:#f5f5f5;border-radius:50%;transition:all .45s cubic-bezier(.23,1,.32,1);left:0;top:50%;transform:translate(-50%,-50%);box-shadow:0 1px 6px #0000001e,0 1px 4px #0000001e}.switch>.thumb.active[data-v-a86efd32]{background:#006548;left:100%}div[data-v-f51bd597]{display:flex}.options[data-v-f51bd597]{flex-direction:column;transition:all .3s ease;font-size:14px}.options>.item[data-v-f51bd597]{white-space:nowrap;color:#000c;padding:7px 11px;min-width:52px;transition:all .3s ease}.options>.item>span[data-v-f51bd597]{transition:all .3s ease}.options>.item[data-v-f51bd597]:hover{cursor:pointer;background:#0000001a}.options>.item:hover>span[data-v-f51bd597]{color:#28af60;margin-left:5px;margin-right:-5px}.ehunter-more-settings-modal[data-v-c1ee9c89]{position:fixed;inset:0;background:radial-gradient(1200px 700px at 12% 8%,#84b0ff3d,#84b0ff00 58%),radial-gradient(1000px 600px at 100% 100%,#52cdba33,#52cdba00 55%),#10182775;backdrop-filter:blur(6px);z-index:10020;display:flex;align-items:center;justify-content:center;padding:24px}.ehunter-more-settings-modal>.ehunter-panel[data-v-c1ee9c89]{position:relative;width:min(980px,100%);height:min(740px,100%);border-radius:18px;overflow:hidden;background:linear-gradient(180deg,#f8fbff,#f2f6fd);box-shadow:0 28px 70px #06132659,inset 0 1px #ffffffb3;display:flex;flex-direction:column}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-header[data-v-c1ee9c89]{display:flex;align-items:center;flex-direction:row;justify-content:flex-start;padding:14px 56px 14px 20px;border-bottom:1px solid rgba(78,102,146,.18);background:#ffffffd1}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-header>h3[data-v-c1ee9c89]{margin:0;font-size:19px;color:#1e304f;font-weight:700;letter-spacing:.2px}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-header>.ehunter-close-btn[data-v-c1ee9c89]{position:absolute;right:14px;top:12px;z-index:2;width:36px;height:36px;border-radius:50%;border:none;color:#4a6fa5;background:#ffffffe6;cursor:pointer;font-size:20px;line-height:1;display:flex;flex-direction:row;align-items:center;justify-content:center;transition:all .24s cubic-bezier(.4,0,.2,1);box-shadow:0 2px 8px #1a2d4e1f}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-header>.ehunter-close-btn[data-v-c1ee9c89]:hover{background:#ebf3ff;color:#2d5a9e;transform:scale(1.08);box-shadow:0 4px 12px #1f447d2e}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-header>.ehunter-close-btn[data-v-c1ee9c89]:active{transform:scale(.96)}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body[data-v-c1ee9c89]{flex:1;min-height:0;display:flex}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-left-nav[data-v-c1ee9c89]{margin:0;width:210px;padding:14px 10px;display:flex;flex-direction:column;gap:8px;border-right:1px solid rgba(88,113,158,.16);background:linear-gradient(180deg,#ffffffc7,#f5faffb8)}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-left-nav>.ehunter-category[data-v-c1ee9c89]{border:none;background:transparent;text-align:left;border-radius:11px;font-size:14px;color:#4a5f84;padding:10px 12px;transition:all .2s ease;cursor:pointer;font-weight:500}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-left-nav>.ehunter-category[data-v-c1ee9c89]:hover{background:#d0e1ff8c;color:#2b4f86}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-left-nav>.ehunter-category.ehunter-active[data-v-c1ee9c89]{background:#dff3e5;color:#2a6142;font-weight:700;box-shadow:inset 0 0 0 1px #8cc5a0}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content[data-v-c1ee9c89]{flex:1;min-width:0;min-height:0;overflow:auto;display:block;padding:16px 18px;scroll-behavior:smooth}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group[data-v-c1ee9c89]{display:block;scroll-margin-top:12px;padding:14px;border:1px solid rgba(92,119,163,.18);border-radius:14px;margin-bottom:12px;background:#ffffffd1;box-shadow:0 8px 24px #1a2d4e14}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>h4[data-v-c1ee9c89]{margin:0 0 12px;font-size:16px;color:#233e67;font-weight:700}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row[data-v-c1ee9c89]{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;gap:12px;margin:8px 0;color:#2f415d;min-height:42px;padding:6px 0}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row[data-v-c1ee9c89]:not(:last-child){border-bottom:1px dashed rgba(128,150,186,.2)}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-label-block[data-v-c1ee9c89]{min-width:0;flex:1;flex-shrink:0;display:flex;flex-direction:column;gap:2px}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-label-block>.ehunter-label[data-v-c1ee9c89]{font-size:14px;color:#2f466d;font-weight:500}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-label-block>.ehunter-tip[data-v-c1ee9c89]{margin:0;font-size:11px;line-height:1.3;color:#7a879c;white-space:normal;overflow-wrap:anywhere;word-break:break-word}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-label[data-v-c1ee9c89]{font-size:14px;color:#2f466d;font-weight:500;min-width:120px;flex-shrink:0}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row[data-v-c1ee9c89]>:not(.ehunter-label):not(.ehunter-label-block){margin-left:auto}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-value[data-v-c1ee9c89]{font-size:13px;color:#476088}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-link[data-v-c1ee9c89]{color:#2b5da5;text-decoration:none;font-size:13px;word-break:break-all;text-align:right;max-width:66%}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-danger[data-v-c1ee9c89]{border:1px solid #d9a5a5;border-radius:8px;background:#fff4f4;color:#8a4646;font-size:13px;padding:8px 12px;cursor:pointer}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-danger[data-v-c1ee9c89]:hover{background:#ffe9e9;border-color:#cf8e8e}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-action[data-v-c1ee9c89]{border:1px solid #8bc7a0;border-radius:8px;background:#f2fff6;color:#2a5f41;font-size:13px;padding:8px 12px;cursor:pointer;font-weight:600}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-action[data-v-c1ee9c89]:hover{background:#e6f7ec;border-color:#77b88f}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes[data-v-c1ee9c89]{display:flex;flex-direction:column;gap:8px;padding:0 2px}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-lane-intro[data-v-c1ee9c89]{margin:0;font-size:12px;color:#5a6c8c;line-height:1.35}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-lane-divider[data-v-c1ee9c89]{width:100%;height:1px;background:linear-gradient(90deg,#7e92b200,#7e92b280,#7e92b200);margin:2px 0}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane[data-v-c1ee9c89]{display:flex;flex-direction:column;align-items:stretch;padding:0 2px}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane>.ehunter-lane-header[data-v-c1ee9c89]{margin:0;font-size:12px;color:#355a96;font-weight:700}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane>.ehunter-lane-desc[data-v-c1ee9c89]{margin:2px 0 5px;font-size:11px;color:#6c7f9f;line-height:1.25}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane>.ehunter-quick-item[data-v-c1ee9c89]{display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:center;gap:6px;width:100%;box-sizing:border-box;border-radius:7px;border:1px solid rgba(101,126,168,.18);background:#fdfefe;margin:4px 0;padding:5px 8px;transition:all .18s ease;cursor:grab;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:manipulation}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane>.ehunter-quick-item[data-v-c1ee9c89] *{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane>.ehunter-quick-item[data-v-c1ee9c89]:hover{background:#e8f3ffeb;border-color:#5278b85c}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane>.ehunter-quick-item>.ehunter-drag-handle[data-v-c1ee9c89]{width:10px;height:10px;opacity:.8;background:radial-gradient(circle,#5f7498 1.1px,transparent 1.2px) 0 0/6px 6px,radial-gradient(circle,#5f7498 1.1px,transparent 1.2px) 3px 3px/6px 6px}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane>.ehunter-quick-item>.ehunter-label[data-v-c1ee9c89]{font-size:13px;color:#2e4264;pointer-events:none}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane>.ehunter-quick-item>.ehunter-mode-tag[data-v-c1ee9c89]{font-size:11px;color:#6a7d9c;pointer-events:none}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane.ehunter-hidden>.ehunter-lane-header[data-v-c1ee9c89]{color:#6d7a8e}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane.ehunter-hidden>.ehunter-quick-item[data-v-c1ee9c89]{background:#ecf0f6eb;border-color:#8d99ae40}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane.ehunter-hidden>.ehunter-quick-item>.ehunter-drag-handle[data-v-c1ee9c89]{opacity:.52;background:radial-gradient(circle,#8191a8 1.1px,transparent 1.2px) 0 0/6px 6px,radial-gradient(circle,#8191a8 1.1px,transparent 1.2px) 3px 3px/6px 6px}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane.ehunter-hidden>.ehunter-quick-item>.ehunter-label[data-v-c1ee9c89],.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane.ehunter-hidden>.ehunter-quick-item>.ehunter-mode-tag[data-v-c1ee9c89]{color:#7e889a}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-shortcut-intro[data-v-c1ee9c89]{margin:0 0 8px;font-size:12px;line-height:1.35;color:#5c6e8d}@media only screen and (max-width:767px){.ehunter-more-settings-modal[data-v-c1ee9c89]{padding:0}.ehunter-more-settings-modal>.ehunter-panel[data-v-c1ee9c89]{width:100%;height:100%;border-radius:0}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body[data-v-c1ee9c89]{flex-direction:column}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-left-nav[data-v-c1ee9c89]{width:100%;border-right:none;border-bottom:1px solid rgba(71,89,126,.15);flex-direction:row;overflow-x:auto;white-space:nowrap;gap:6px;padding:10px}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-left-nav>.ehunter-category[data-v-c1ee9c89]{flex-shrink:0;padding:8px 10px;font-size:13px}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content[data-v-c1ee9c89]{padding:12px 14px}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-label-block[data-v-c1ee9c89]{min-width:0}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-link[data-v-c1ee9c89]{max-width:58%}}[data-v-c1ee9c89] .drop-option>.text{background:#f2fff6;border:1px solid #86c59e;border-radius:8px;color:#2a6042;font-weight:600;padding:4px 10px}[data-v-c1ee9c89] .drop-option>.icon-drop-down{fill:#2a6042}[data-v-c1ee9c89] .drop-option .options{background:#fff;border:1px solid rgba(95,124,169,.28);border-radius:10px;box-shadow:0 10px 22px #182c5029}.ehunter-shortcut-editor[data-v-c1ee9c89]{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;max-width:56%}.ehunter-shortcut-chips[data-v-c1ee9c89]{display:flex;flex-direction:row;gap:5px;flex-wrap:wrap;justify-content:flex-end}.ehunter-shortcut-chip[data-v-c1ee9c89]{border:1px solid #8bc7a0;border-radius:999px;background:#f4fff7;color:#25543a;display:flex;flex-direction:row;align-items:center;justify-content:center;font-size:11px;line-height:1;padding:4px 8px;max-width:180px;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}.ehunter-shortcut-chip[data-v-c1ee9c89]:hover{background:#ecfaef;border-color:#6fb88b}.ehunter-shortcut-chip>.ehunter-chip-key[data-v-c1ee9c89]{display:block;font-weight:600;text-align:center}.ehunter-shortcut-chip>.ehunter-chip-remove[data-v-c1ee9c89]{font-weight:700;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;width:0;margin-left:0;text-align:center;overflow:hidden;white-space:nowrap;opacity:0;pointer-events:none;transition:width .15s ease,margin-left .15s ease,opacity .15s ease}.ehunter-shortcut-chip:hover>.ehunter-chip-remove[data-v-c1ee9c89],.ehunter-shortcut-chip:focus-visible>.ehunter-chip-remove[data-v-c1ee9c89]{width:10px;margin-left:4px;opacity:.8}.ehunter-shortcut-chip-list-enter-active[data-v-c1ee9c89],.ehunter-shortcut-chip-list-leave-active[data-v-c1ee9c89]{transition:opacity .16s ease,transform .16s ease,max-width .16s ease,margin .16s ease,padding .16s ease}.ehunter-shortcut-chip-list-move[data-v-c1ee9c89]{transition:transform .16s ease}.ehunter-shortcut-chip-list-enter-from[data-v-c1ee9c89],.ehunter-shortcut-chip-list-leave-to[data-v-c1ee9c89]{opacity:0;transform:scale(.88)}.ehunter-shortcut-chip-list-leave-to[data-v-c1ee9c89]{max-width:0;margin-left:0;margin-right:0;padding-left:0;padding-right:0;border-width:0}.ehunter-shortcut-add[data-v-c1ee9c89]{display:flex;flex-direction:row;align-items:center;gap:4px}.ehunter-shortcut-add-btn[data-v-c1ee9c89]{width:24px;height:24px;border-radius:50%;border:1px solid #7fbe98;background:#effbf2;color:#2b6a47;font-size:15px;font-weight:700;line-height:1;text-align:center;padding:0;display:flex;flex-direction:row;align-items:center;justify-content:center;cursor:pointer}.ehunter-shortcut-add-btn[data-v-c1ee9c89]:hover{background:#e2f5e8;border-color:#69ae85}.ehunter-shortcut-add-icon[data-v-c1ee9c89]{display:block;line-height:1;transform:translateY(-1px);pointer-events:none}.ehunter-shortcut-select[data-v-c1ee9c89]{min-width:110px;max-width:150px;border:1px solid #8bc7a0;border-radius:7px;background:#f6fff8;color:#2b5d41;font-size:11px;line-height:1.2;padding:4px 7px}.ehunter-shortcut-select[data-v-c1ee9c89]:hover,.ehunter-shortcut-select[data-v-c1ee9c89]:focus{border-color:#6ed08f;background:#e9fff1!important;color:#1f7a3f}div[data-v-775e5895]{display:flex}.top-bar[data-v-775e5895]{width:100%;padding:0;margin:0;background:transparent;position:relative}.top-bar>.float-content[data-v-775e5895]{position:absolute;top:0;right:0;align-items:center;z-index:20000;height:var(--b43ab3a8)}.top-bar>.float-content>.more-button-wrapper[data-v-775e5895]{position:relative;display:flex;flex-direction:row;align-items:center}.top-bar>.float-content>.button[data-v-775e5895],.top-bar>.float-content>.more-button-wrapper[data-v-775e5895]{margin-right:13px}.top-bar>.inner-content[data-v-775e5895]{color:#fff;flex-grow:1;background:#28af60;font-size:14px;transition:all .3s ease;height:var(--v7cbba036)}.top-bar>.inner-content>.item[data-v-775e5895]{margin-left:18px;position:relative;height:40px}.top-bar>.inner-content>.item.less-margin[data-v-775e5895]{margin-left:10px}.top-bar>.inner-content>.item.icon-margin[data-v-775e5895]{margin-left:15px}.top-bar>.inner-content>.item>.label[data-v-775e5895]{display:flex;align-items:center;font-size:14px;margin:auto;white-space:nowrap;cursor:default}.top-bar>.inner-content>.item>.label.icon>svg[data-v-775e5895]{fill:#fff;height:18px;width:18px}.top-bar>.inner-content>.item>.label.icon>svg.reset[data-v-775e5895]{height:18px;width:18px}.top-bar>.inner-content>.item>.label.icon>svg.info[data-v-775e5895]{height:20px;width:20px}.top-bar>.inner-content>.item>.label.icon>svg.github[data-v-775e5895]{height:17px}.top-bar>.inner-content>.item>.label.clickable[data-v-775e5895]{cursor:pointer}.top-bar>.inner-content.hide[data-v-775e5895]{transform:translateY(-100%)}.awesome-scroll-view[data-v-4f224e6d]{position:relative;overflow-y:overlay;overflow-x:hidden;display:flex;flex-direction:column}.awesome-scroll-view.axis-x[data-v-4f224e6d]{overflow-y:hidden;overflow-x:overlay;flex-direction:row}.awesome-scroll-view.scrollbar[data-v-4f224e6d]{transition:all .3s ease}.awesome-scroll-view.scrollbar[data-v-4f224e6d]::-webkit-scrollbar{width:8px;height:8px;background:transparent}.awesome-scroll-view.scrollbar[data-v-4f224e6d]::-webkit-scrollbar-track{background:transparent}.awesome-scroll-view.scrollbar[data-v-4f224e6d]::-webkit-scrollbar-thumb{border-radius:999px;border:2px solid transparent;background-clip:padding-box;background-color:#fff0;transition:background-color .2s ease}.awesome-scroll-view.scrollbar[data-v-4f224e6d]:hover::-webkit-scrollbar-thumb{background-color:#ffffff75}.awesome-scroll-view.axis-y[data-v-4f224e6d]{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,0) transparent}.awesome-scroll-view.axis-y[data-v-4f224e6d]:hover{scrollbar-color:rgba(255,255,255,.46) transparent}.awesome-scroll-view.axis-x[data-v-4f224e6d]{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,0) transparent}.awesome-scroll-view.axis-x[data-v-4f224e6d]:hover{scrollbar-color:rgba(255,255,255,.46) transparent}.dock-handle[data-v-3c634b84]{appearance:none;border:0;color:#fff;background:transparent;width:100%;height:100%;min-height:40px;font-weight:700;letter-spacing:.08em;cursor:grab;transition:background-color .2s ease}.dock-handle[data-v-3c634b84]:hover{background:#ffffff14}.dock-handle.armed[data-v-3c634b84]{background:#0003}.dock-handle[data-v-3c634b84]:active{cursor:grabbing}.thumb-view[data-v-88a65bb0]{width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center}.thumb-view>.thumb-stage[data-v-88a65bb0]{flex-shrink:0;transform-origin:center center;display:flex;flex-direction:column;align-items:center;justify-content:center}.thumb-view>.thumb-stage>.thumb-sprite[data-v-88a65bb0],.thumb-view>.thumb-stage>.thumb-image[data-v-88a65bb0]{width:100%;height:100%;display:block}.thumb-view>.thumb-stage>.thumb-image[data-v-88a65bb0]{object-fit:contain}.thumb-view>.thumb-fallback[data-v-88a65bb0]{width:100%;height:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;text-align:center}.thumb-content[data-v-45b2aba1]{position:relative;height:100%;width:100%;display:flex;flex-direction:column;min-height:0;min-width:0}.thumb-content .thumb-scroll-view[data-v-45b2aba1]{position:relative;background:#444;height:100%;flex:1;min-height:0;min-width:0;width:100%}.thumb-content .thumb-scroll-view[data-v-45b2aba1]:not(.dock-bottom){display:flex;flex-direction:column;align-items:stretch}.thumb-content .thumb-scroll-view>.header[data-v-45b2aba1]{position:relative;height:40px;background:#2ecc71;flex-shrink:0}.thumb-content .thumb-scroll-view>.header>.app-name[data-v-45b2aba1]{color:#fff;font-weight:bolder;font-size:var(--v8b69ed28);letter-spacing:var(--v1623f37e);display:block;position:absolute;white-space:nowrap;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%}.thumb-content .thumb-scroll-view .thumb-container[data-v-45b2aba1]{position:relative;width:100%;padding:3px 0;margin:0;height:var(--v83a6f68e);flex-shrink:0;text-align:center;display:flex;align-items:center;justify-content:center;box-sizing:border-box;overflow:hidden;transition:all .1s ease}.thumb-content .thumb-scroll-view .thumb-container>.thumb-stage[data-v-45b2aba1]{position:relative;width:var(--d3d034c0);height:var(--v83a6f68e);display:flex;flex-direction:column;align-items:center;justify-content:center;transition:all .2s ease}.thumb-content .thumb-scroll-view .thumb-container>.thumb-stage>.thumb[data-v-45b2aba1]{width:100%;height:100%;transition:all .5s ease}.thumb-content .thumb-scroll-view .thumb-container>.thumb-stage>.index[data-v-45b2aba1]{position:absolute;display:block;font-weight:bolder;font-size:var(--v1682f559);color:#333c;-webkit-text-stroke:1px rgba(255,255,255,.8);top:50%;left:50%;transform:translate(-50%,-50%);z-index:20;user-select:none;cursor:default;transition:all .2s ease}.thumb-content .thumb-scroll-view .thumb-container[data-v-45b2aba1]:hover{background:#0006}.thumb-content .thumb-scroll-view .thumb-container:hover>.thumb-stage>.index[data-v-45b2aba1]{font-size:var(--e2fd20f6);color:#333;-webkit-text-stroke:1px white}.thumb-content .thumb-scroll-view:not(.dock-bottom) .thumb-container[data-v-45b2aba1]{padding:3px var(--v6c05c142)}.thumb-content .thumb-scroll-view:not(.dock-bottom) .thumb-container>.thumb-stage[data-v-45b2aba1]{width:100%}.thumb-content .thumb-scroll-view:not(.dock-bottom) .thumb-container+.thumb-container[data-v-45b2aba1]{margin-top:var(--v12a22b04)}.thumb-content .thumb-scroll-view .indicator[data-v-45b2aba1]{position:absolute;box-sizing:border-box;margin-top:40px;height:var(--v83a6f68e);left:0;right:0;border-left:3px solid rgba(255,255,255,.4);border-right:3px solid rgba(255,255,255,.4);background:#0006;transition:all .5s ease;pointer-events:none;top:var(--v729167b9)}.thumb-content .thumb-expand-trigger[data-v-45b2aba1]{position:absolute;left:50%;bottom:8px;transform:translate(-50%);z-index:25;display:flex;flex-direction:row;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.4);border-radius:999px;background:#00000073;color:#ffffffeb;width:32px;height:32px;cursor:pointer;opacity:.78;transition:all .2s ease}.thumb-content .thumb-expand-trigger>.expand-icon[data-v-45b2aba1]{width:16px;height:16px;fill:currentColor;transform:rotate(0)}.thumb-content .thumb-expand-trigger[data-v-45b2aba1]:hover{opacity:1;background:#000000a6}.thumb-content .thumb-expand-trigger.dock-bottom[data-v-45b2aba1]{inset:50% 8px auto auto;transform:translateY(-50%)}.thumb-content .thumb-expand-trigger.dock-bottom>.expand-icon[data-v-45b2aba1]{transform:rotate(90deg)}.thumb-content.dock-bottom .thumb-scroll-view[data-v-45b2aba1]{width:100%;height:100%;flex-direction:row;overflow-x:overlay;overflow-y:hidden}.thumb-content.dock-bottom .thumb-scroll-view>.header[data-v-45b2aba1]{width:40px;height:100%}.thumb-content.dock-bottom .thumb-scroll-view>.header>.app-name[data-v-45b2aba1]{writing-mode:vertical-rl;text-orientation:upright;white-space:normal;letter-spacing:var(--v2722d226);top:0;left:0;transform:none;width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:var(--v67748580);line-height:1}.thumb-content.dock-bottom .thumb-scroll-view .indicator[data-v-45b2aba1]{display:block;margin-top:0;margin-left:40px;top:0;left:var(--v729167b9);width:var(--d3d034c0);height:100%;border-left:0;border-right:0;border-top:3px solid rgba(255,255,255,.4);border-bottom:3px solid rgba(255,255,255,.4)}.thumb-content.dock-bottom .thumb-scroll-view .thumb-container[data-v-45b2aba1]{width:var(--d3d034c0);min-width:var(--d3d034c0);height:100%;padding:var(--v415efbe9) var(--v4d0461ec);flex-direction:column}.thumb-content.dock-bottom .thumb-scroll-view .thumb-container>.thumb-stage[data-v-45b2aba1]{width:100%;height:100%;transform-origin:center center}.ehunter-loading-view[data-v-eb5557a7]{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;background:#333}.ehunter-loading-view .loading-animation[data-v-eb5557a7]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px}.ehunter-loading-view .loading-animation .book[data-v-eb5557a7]{position:relative;margin:0 auto;border:5px solid #ecf0f1;width:100px;height:60px}.ehunter-loading-view .loading-animation .book__page[data-v-eb5557a7]{position:absolute;left:50%;top:-5px;margin:0 auto;border-top:5px solid #ecf0f1;border-bottom:5px solid #ecf0f1;border-right:5px solid #ecf0f1;background:#333;width:50px;height:60px;transform-origin:0% 50%;animation:flip-eb5557a7 .85s infinite linear;animation-fill-mode:forwards;backface-visibility:hidden}.ehunter-loading-view .loading-animation .book__page[data-v-eb5557a7]:nth-child(1){z-index:3;animation-delay:-.28s}.ehunter-loading-view .loading-animation .book__page[data-v-eb5557a7]:nth-child(2){z-index:2;animation-delay:-.56s}.ehunter-loading-view .loading-animation .book__page[data-v-eb5557a7]:nth-child(3){z-index:1;animation-delay:-.84s}@keyframes flip-eb5557a7{0%{transform:perspective(600px) rotateY(0)}20%{background:#1a1a1a}29.9%{background:#1a1a1a}30%{transform:perspective(200px) rotateY(-90deg);background:#333}54.999%{opacity:1}55%{opacity:0}60%{transform:perspective(200px) rotateY(-180deg);background:#333}to{transform:perspective(200px) rotateY(-180deg);background:#333}}.ehunter-loading-view .loading-animation h4[data-v-eb5557a7]{color:#fff;text-align:center;font-family:sans-serif;text-transform:uppercase;font-size:20px;position:relative;margin:0}.ehunter-loading-view .loading-animation h4[data-v-eb5557a7]:after{position:absolute;content:"";-webkit-animation:Dots-eb5557a7 1.4s cubic-bezier(0,.39,1,.68) infinite;animation:Dots-eb5557a7 1.4s cubic-bezier(0,.39,1,.68) infinite}@-webkit-keyframes Dots-eb5557a7{0%{content:""}33%{content:"."}66%{content:".."}to{content:"..."}}@keyframes Dots-eb5557a7{0%{content:""}33%{content:"."}66%{content:".."}to{content:"..."}}.ehunter-loading[data-v-eb5557a7]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh}.ehunter-error[data-v-eb5557a7]{display:flex;flex-direction:column;align-items:stretch;padding:20px;background:#333;color:#fff;min-height:100vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;text-align:left}.error-header[data-v-eb5557a7]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:20px;border-bottom:1px solid rgba(255,255,255,.2);padding-bottom:10px}.error-header h3[data-v-eb5557a7]{margin:0;font-size:24px;color:#ff6b6b}.close-button[data-v-eb5557a7]{background:none;border:none;color:#fff;font-size:32px;cursor:pointer;padding:0;width:32px;height:32px;display:flex;flex-direction:row;align-items:center;justify-content:center;border-radius:4px;transition:background .2s}.close-button[data-v-eb5557a7]:hover{background:#ffffff1a}.error-message[data-v-eb5557a7]{font-size:16px;line-height:1.5;margin-bottom:20px;color:#ffffffe6}.error-details[data-v-eb5557a7]{background:#0000004d;border:1px solid rgba(255,255,255,.2);border-radius:4px;padding:15px}.init-steps[data-v-eb5557a7]{display:flex;flex-direction:column;gap:8px;margin-bottom:16px;padding:12px;border:1px solid rgba(255,255,255,.2);border-radius:6px;background:#00000040}.init-steps h4[data-v-eb5557a7]{margin:0;font-size:15px;color:#d9f2ff}.init-steps ul[data-v-eb5557a7]{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px}.init-steps li[data-v-eb5557a7]{font-size:13px;line-height:1.4}.step-status[data-v-eb5557a7]{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;min-width:52px;margin-right:8px;border-radius:999px;padding:1px 8px;font-size:11px;font-weight:700;text-transform:uppercase}.step-status--success[data-v-eb5557a7]{background:#388e3c40;color:#8ee59a}.step-status--failed[data-v-eb5557a7]{background:#d32f2f40;color:#ff9e9e}.step-status--pending[data-v-eb5557a7]{background:#9e9e9e40;color:#d7d7d7}.step-label[data-v-eb5557a7]{color:#fff}.step-detail[data-v-eb5557a7]{color:#fffc;margin-left:4px}.error-details summary[data-v-eb5557a7]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;cursor:pointer;font-weight:700;margin-bottom:10px;user-select:none}.error-details summary[data-v-eb5557a7]:hover{color:#4fc3f7}.error-info[data-v-eb5557a7]{display:flex;flex-direction:column;gap:10px;margin-top:10px}.error-info p[data-v-eb5557a7]{margin:0;font-size:14px;line-height:1.4}.error-info strong[data-v-eb5557a7]{color:#4fc3f7}.copy-button[data-v-eb5557a7]{border:1px solid rgba(255,255,255,.35);background:#ffffff14;color:#fff;border-radius:4px;padding:4px 10px;cursor:pointer}.copy-button[data-v-eb5557a7]:hover{background:#ffffff29}.error-stack[data-v-eb5557a7]{background:#00000080;border:1px solid rgba(255,255,255,.1);border-radius:4px;padding:10px;font-family:Courier New,Courier,monospace;font-size:12px;line-height:1.4;overflow-x:auto;white-space:pre-wrap;word-wrap:break-word;color:#ff9800}.feedback-link[data-v-eb5557a7]{display:flex;flex-direction:row;align-items:center;gap:8px;margin-top:0;margin-bottom:16px;padding:10px 12px;border-left:4px solid #ffd166;border-radius:6px;background:#ffd1662e;color:#fff4cf;font-size:14px;line-height:1.4}.feedback-link a[data-v-eb5557a7]{color:#ffe29a;text-decoration:underline;font-weight:700}.feedback-link a[data-v-eb5557a7]:hover{color:#fff6d7}div[data-v-34f09df5],span[data-v-34f09df5]{display:flex}.page-view[data-v-34f09df5]{position:absolute;inset:0;transition:all .3s ease;overflow:visible}.page-view>.layer[data-v-34f09df5]{position:absolute;top:0;left:0;width:100%;height:100%}.page-view>.preview-layer[data-v-34f09df5]{overflow:hidden;background-color:#000;display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}.page-view>.preview-layer>.preview-thumb[data-v-34f09df5]{width:100%;height:100%}.page-view>.preview-layer[data-v-34f09df5]:after{display:block;content:"";position:absolute;inset:0;background:#00000080}.page-view>.loading-layer[data-v-34f09df5]{box-shadow:inset 0 0 0 5px #565861}.page-view>.loading-layer>.index[data-v-34f09df5]{position:absolute;color:#ffffff80;font-weight:bolder;top:50%;left:50%;transform:translate(-50%,-50%);font-size:80px;margin:0}.page-view>.loading-layer>.loading-info-panel[data-v-34f09df5]{position:absolute;top:calc(50% + 80px);left:50%;transform:translate(-50%,-50%);color:#fff;font-size:14px;z-index:1}.page-view>.loading-layer>.loading-info-panel .loading-info[data-v-34f09df5]{padding:20px;display:flex;align-items:center;flex-direction:column}.page-view>.loading-layer>.loading-info-panel .loading-info>.operation[data-v-34f09df5]{margin-top:2px}.page-view>.loading-layer>.loading-info-panel .loading-info>.operation>.no-margin[data-v-34f09df5]{margin-left:0}.page-view>.img-layer>.album-item[data-v-34f09df5]{width:inherit;min-width:inherit;height:inherit}.menu-layer[data-v-34f09df5]{z-index:12010;pointer-events:auto}.menu-layer>.menu-anchor[data-v-34f09df5]{position:absolute;width:0;height:0}.menu-layer>.menu-anchor[data-v-34f09df5] .popover{min-width:170px;z-index:12020}.page-menu-options[data-v-34f09df5]{flex-direction:column;min-width:170px}.page-menu-options>.item[data-v-34f09df5]{border:0;background:#fff;display:flex;flex-direction:column;align-items:flex-start;padding:8px 12px;color:#000000d1;transition:all .2s ease;width:100%;font-size:13px}.page-menu-options>.item>small[data-v-34f09df5]{margin-top:3px;color:#00000073;font-size:11px}.page-menu-options>.item[data-v-34f09df5]:hover{cursor:pointer;background:#00000014;color:#28af60}.page-menu-options>.item[data-v-34f09df5]:disabled,.page-menu-options>.item.disabled[data-v-34f09df5]{cursor:not-allowed;color:#00000073;background:#00000008}.focus-indicator[data-v-34f09df5]{position:absolute;border:1px solid rgba(255,255,255,.7);background:#ffffff4d;box-sizing:border-box;pointer-events:none;z-index:12005}.magnifier-lens[data-v-34f09df5]{position:absolute;border:2px solid hsl(145,63%,42%);box-shadow:0 8px 22px #00000059,0 0 0 1px #28af60cc;overflow:hidden;background:#0000001f;pointer-events:none;z-index:12009}.magnifier-lens>.magnifier-canvas[data-v-34f09df5]{width:100%;height:100%;display:block}.magnifier-lens>.magnifier-pending[data-v-34f09df5]{position:absolute;inset:0;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;font-size:12px;color:#ffffffeb;background:linear-gradient(135deg,#00000047,#00000029)}.magnifier-lens>.magnifier-pending>.spinner[data-v-34f09df5]{width:12px;height:12px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fffffff2;animation:magnifier-spin-34f09df5 .7s linear infinite}@keyframes magnifier-spin-34f09df5{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.album-scroll-view[data-v-c08983c3]{position:relative;flex-direction:column;align-items:center;height:100%;width:100%}.album-scroll-view>.preload[data-v-c08983c3]{position:absolute;top:0;left:0;width:200px;height:144px;z-index:-10;opacity:0;display:flex;flex-direction:row}.album-scroll-view>.preload .preload-item[data-v-c08983c3]{width:200px;height:144px;position:relative}.album-scroll-view>.scroll-view[data-v-c08983c3]{height:100%;width:100%}.album-scroll-view>.scroll-view h1[data-v-c08983c3]{color:#c9cacf;padding:10px 20px;font-size:18px;text-align:center;margin-top:60px}.album-scroll-view>.scroll-view>.top-pagination[data-v-c08983c3]{margin-top:15px;margin-bottom:15px}.album-scroll-view>.scroll-view>.bottom-pagination[data-v-c08983c3]{margin-top:15px;margin-bottom:30px}.album-scroll-view>.scroll-view .page-container[data-v-c08983c3]{transition:all .3s ease;height:0;position:relative}.album-scroll-view>.scroll-view .page-container[data-v-c08983c3]:first-of-type{margin-top:35px}.album-scroll-view>.scroll-view .page-container[data-v-c08983c3]:last-of-type{margin-bottom:35px}.book-page-view[data-v-19f61df3]{position:relative;transition:all .3s ease;user-select:none;width:100%;height:100%}.book-page-view>.page[data-v-19f61df3]{background:#fff;flex:1;align-self:stretch;overflow:hidden}.book-page-view>.page>.ehunter-tag[data-v-19f61df3]{position:absolute;right:8vh;bottom:8vh;padding:1vh 10vh;background:#28af60;color:#fff;font-size:1.8vh;transform-origin:center;transform:translate(50%,50%) rotate(-45deg)}.book-page-view>.page>.ehunter-tag.left[data-v-19f61df3]{left:7vh;right:initial;transform:translate(-50%,50%) rotate(45deg)}.book-page-view>.page.start-page[data-v-19f61df3]{position:relative;justify-content:center}.book-page-view>.page.start-page>h1[data-v-19f61df3]{font-size:4vh;font-weight:lighter;margin:40% 20px;text-align:left;color:#000c}.book-page-view>.page.end-page[data-v-19f61df3]{position:relative;justify-content:center;align-items:center}.book-page-view>.page.end-page>h1[data-v-19f61df3]{color:#000000b3;font-size:6vh;padding-bottom:20%}.album-book-view[data-v-2fa16c83]{display:flex;flex-direction:column;position:relative;overflow:hidden;height:100%;width:100%}.album-book-view>.book-spread[data-v-2fa16c83]{position:absolute;inset:0;width:100%;height:100%;transform-style:preserve-3d}.album-book-view>.book-spread>.book-page-container[data-v-2fa16c83]{user-select:none;position:absolute;box-sizing:border-box;box-shadow:0 19px 10px -8px #00000059;overflow:visible}.album-book-view>.book-spread>.book-page-container[data-v-2fa16c83]:hover{z-index:13050!important}.album-book-view>.book-page-container[data-v-2fa16c83]{user-select:none;position:absolute;box-sizing:border-box;box-shadow:0 19px 10px -8px #00000059}.album-book-view.mode-realistic[data-v-2fa16c83]{perspective:1800px;perspective-origin:50% 50%}.album-book-view.mode-realistic>.book-spread[data-v-2fa16c83]{backface-visibility:hidden;will-change:transform,opacity;overflow:visible;--curl-before-opacity: 0;--curl-after-opacity: 0;--curl-before-transform: translateX(0) scaleX(1);--curl-after-transform: translateX(0) scaleX(1)}.album-book-view.mode-realistic>.book-spread[data-v-2fa16c83]:before,.album-book-view.mode-realistic>.book-spread[data-v-2fa16c83]:after{content:"";position:absolute;inset:-2% -1%;pointer-events:none;opacity:var(--curl-before-opacity);transition:opacity .42s ease,transform .42s cubic-bezier(.22,.61,.36,1)}.album-book-view.mode-realistic>.book-spread[data-v-2fa16c83]:before{background:radial-gradient(120% 85% at 52% 50%,#ffffff52,#ffffff1f 26%,#ffffff05 62%,#fff0);mix-blend-mode:screen}.album-book-view.mode-realistic>.book-spread[data-v-2fa16c83]:after{background:linear-gradient(90deg,#00000057,#00000029 14%,#0000000f 30%,#0000 55%);opacity:var(--curl-after-opacity);transform:var(--curl-after-transform)}.album-book-view.mode-realistic>.book-spread[data-v-2fa16c83]:before{transform:var(--curl-before-transform)}.album-book-view.mode-realistic>.book-spread>.book-page-container[data-v-2fa16c83]{overflow:visible}.album-book-view.mode-realistic>.book-spread>.book-page-container[data-v-2fa16c83]:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#00000029,#0000000a 18%,#fff0 60%);opacity:.35}.album-book-view.mode-slide>.book-spread[data-v-2fa16c83]{will-change:transform,opacity;backface-visibility:hidden;box-shadow:0 16px 26px -14px #00000061}.album-book-view>.bottom-pagination[data-v-2fa16c83]{position:absolute;bottom:5%;left:50%;transform:translate(-50%);background:#333;border-radius:3px;opacity:.5;box-shadow:1px 1px 5px 1px #0000001a;transition:all .3s ease;z-index:12000}.album-book-view>.bottom-pagination[data-v-2fa16c83]:hover{opacity:1}.action-panel[data-v-2fa16c83]{position:absolute;inset:0;z-index:10000;opacity:.5;display:none;background-color:#000;pointer-events:none}.action-panel .next[data-v-2fa16c83]{position:absolute;left:0;right:0;height:30%;bottom:0;background-color:red;pointer-events:none}.action-panel .pre[data-v-2fa16c83]{position:absolute;left:0;right:0;height:30%;top:0;background-color:green;pointer-events:none}.action-panel .setting[data-v-2fa16c83]{position:absolute;left:0;right:0;height:40%;top:50%;transform:translateY(-50%);background-color:purple;pointer-events:none}.screen-flip-enter-active[data-v-2fa16c83],.screen-flip-leave-active[data-v-2fa16c83]{transition:transform .46s cubic-bezier(.22,.61,.36,1),opacity .46s ease}.screen-flip-enter-from[data-v-2fa16c83]{transform-origin:right center;transform:translate3d(10%,0,0) rotateY(66deg) rotateX(3.2deg) skewY(-2.4deg) scale(.95,.98);opacity:.64;--curl-before-opacity: .62;--curl-after-opacity: .72;--curl-before-transform: translateX(-3.2%) scaleX(.9);--curl-after-transform: translateX(-2.2%) scaleX(1.12)}.screen-flip-leave-to[data-v-2fa16c83]{transform-origin:left center;transform:translate3d(-16%,0,0) rotateY(-80deg) rotateX(-2.8deg) skewY(2.6deg) scale(.91,.97);opacity:0;--curl-before-opacity: .78;--curl-after-opacity: .82;--curl-before-transform: translateX(5.2%) scaleX(1.16);--curl-after-transform: translateX(3.8%) scaleX(1.24)}.screen-flip-reverse-enter-active[data-v-2fa16c83],.screen-flip-reverse-leave-active[data-v-2fa16c83]{transition:transform .46s cubic-bezier(.22,.61,.36,1),opacity .46s ease}.screen-flip-reverse-enter-from[data-v-2fa16c83]{transform-origin:left center;transform:translate3d(-10%,0,0) rotateY(-66deg) rotateX(-3.2deg) skewY(2.4deg) scale(.95,.98);opacity:.64;--curl-before-opacity: .62;--curl-after-opacity: .72;--curl-before-transform: translateX(3.2%) scaleX(-.9);--curl-after-transform: translateX(2.2%) scaleX(-1.12)}.screen-flip-reverse-leave-to[data-v-2fa16c83]{transform-origin:right center;transform:translate3d(16%,0,0) rotateY(80deg) rotateX(2.8deg) skewY(-2.6deg) scale(.91,.97);opacity:0;--curl-before-opacity: .78;--curl-after-opacity: .82;--curl-before-transform: translateX(-5.2%) scaleX(-1.16);--curl-after-transform: translateX(-3.8%) scaleX(-1.24)}.screen-slide-next-enter-active[data-v-2fa16c83],.screen-slide-next-leave-active[data-v-2fa16c83],.screen-slide-prev-enter-active[data-v-2fa16c83],.screen-slide-prev-leave-active[data-v-2fa16c83]{transition:transform .44s cubic-bezier(.22,.74,.2,1),opacity .44s ease}.screen-slide-next-enter-from[data-v-2fa16c83]{transform:translate3d(0,102%,0);opacity:.95}.screen-slide-next-leave-to[data-v-2fa16c83]{transform:translate3d(0,-102%,0);opacity:0}.screen-slide-prev-enter-from[data-v-2fa16c83]{transform:translate3d(0,-102%,0);opacity:.95}.screen-slide-prev-leave-to[data-v-2fa16c83]{transform:translate3d(0,102%,0);opacity:0}.screen-none-enter-active[data-v-2fa16c83],.screen-none-leave-active[data-v-2fa16c83]{transition-duration:0s}.screen-none-enter-from[data-v-2fa16c83],.screen-none-leave-to[data-v-2fa16c83]{opacity:1;transform:none}.thumb-expand-modal[data-v-a86570b6]{position:fixed;inset:0;z-index:10024;background:radial-gradient(1400px 800px at 15% 10%,#6398ff2e,#6398ff00 60%),radial-gradient(1200px 700px at 88% 92%,#52cdba26,#52cdba00 58%),#10182775;backdrop-filter:blur(8px);display:flex;flex-direction:row;align-items:center;justify-content:center;padding:24px}.thumb-expand-modal>.panel[data-v-a86570b6]{position:relative;width:min(1200px,100%);max-height:min(90vh,900px);min-height:min(80vh,760px);border-radius:20px}@media only all and (min-width:1600px){.thumb-expand-modal>.panel[data-v-a86570b6]{width:min(1400px,100%)}}.thumb-expand-modal>.panel[data-v-a86570b6]{background:linear-gradient(165deg,#fff,#f5f8fc 48%,#eef3fa);box-shadow:0 32px 80px #08183047,0 12px 32px #0818301f,inset 0 1px #ffffffd9,inset 0 -1px #6a84b014;border:1px solid rgba(106,132,176,.2);display:flex;flex-direction:column;overflow:hidden}.thumb-expand-modal>.panel>.close-btn[data-v-a86570b6]{position:absolute;right:14px;top:12px;z-index:2;width:36px;height:36px;border-radius:50%;border:none;color:#4a6fa5;background:#ffffffe6;cursor:pointer;font-size:20px;line-height:1;display:flex;flex-direction:row;align-items:center;justify-content:center;transition:all .24s cubic-bezier(.4,0,.2,1);box-shadow:0 2px 8px #1a2d4e1f}.thumb-expand-modal>.panel>.close-btn[data-v-a86570b6]:hover{background:#ebf3ff;color:#2d5a9e;transform:scale(1.08);box-shadow:0 4px 12px #1f447d2e}.thumb-expand-modal>.panel>.close-btn[data-v-a86570b6]:active{transform:scale(.96)}.thumb-expand-modal>.panel>.grid-wrap[data-v-a86570b6]{flex:1;min-height:0;overflow:auto;padding:48px 16px 12px;display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,120px));gap:12px;justify-content:start;align-content:start;min-height:640px}.thumb-expand-modal>.panel>.grid-wrap.distributed[data-v-a86570b6]{justify-content:space-between}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item[data-v-a86570b6]{height:206px;border:1px solid rgba(92,119,163,.18);border-radius:12px;background:linear-gradient(135deg,#fffffff5,#fafcffed);box-shadow:0 3px 10px #1a2d4e0d,0 1px 3px #1a2d4e12;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:8px;gap:8px;cursor:pointer;transition:all .26s cubic-bezier(.4,0,.2,1)}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item[data-v-a86570b6]:hover{transform:translateY(-2px);border-color:#2ecc70;box-shadow:0 10px 24px #2ecc7026,0 4px 12px #2ecc701a;background:linear-gradient(135deg,#fff,#f8fffcfa)}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item.active[data-v-a86570b6]{border-color:#2ecc70;box-shadow:0 8px 20px #2ecc7033,0 0 0 2px #2ecc7026;background:linear-gradient(135deg,#f0fff8fa,#ebfcf5f5)}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item>.thumb-frame[data-v-a86570b6]{width:100%;aspect-ratio:100/144;border-radius:10px;overflow:hidden;display:flex;flex-direction:row;align-items:center;justify-content:center}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item>.thumb-frame.error[data-v-a86570b6]{border:1px dashed rgba(122,136,162,.4);background:#dce3ee80}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item>.thumb-frame[data-v-a86570b6]>.thumb-view{width:100%;height:100%}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item>.thumb-frame[data-v-a86570b6]>.thumb-view .thumb-fallback{font-size:12px;color:#5d6f8f}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item>.page-label[data-v-a86570b6]{display:flex;flex-direction:row;align-items:center;justify-content:center;height:24px;border-radius:7px;font-size:12px;font-weight:600;color:#2b4f86;background:linear-gradient(135deg,#dce9ff99,#e6f0ff80);transition:all .22s ease}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item:hover>.page-label[data-v-a86570b6]{background:linear-gradient(135deg,#c1f1d5b3,#d5f6e399);color:#1c7d44}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item.active>.page-label[data-v-a86570b6]{background:linear-gradient(135deg,#97e7b9d9,#acecc7bf);color:#186839;font-weight:700}.thumb-expand-modal>.panel>.pager-row[data-v-a86570b6]{display:flex;flex-direction:row;justify-content:center;align-items:center;border-top:1px solid rgba(78,102,146,.15);padding:14px 16px 16px;background:linear-gradient(180deg,#ffffffeb,#fafcffe0);backdrop-filter:blur(4px)}@media only screen and (max-width:1023px){.thumb-expand-modal[data-v-a86570b6]{padding:14px}.thumb-expand-modal>.panel[data-v-a86570b6]{min-height:min(86vh,840px)}.thumb-expand-modal>.panel>.grid-wrap[data-v-a86570b6]{padding:44px 14px 12px;gap:10px}}@media only screen and (max-width:767px){.thumb-expand-modal[data-v-a86570b6]{padding:0}.thumb-expand-modal>.panel[data-v-a86570b6]{width:100%;height:100%;max-height:none;min-height:100%;border-radius:0}.thumb-expand-modal>.panel>.grid-wrap[data-v-a86570b6]{padding:44px 0 10px;gap:10px}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item[data-v-a86570b6]{height:196px;padding:7px;gap:7px}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item>.page-label[data-v-a86570b6]{height:22px;font-size:11px}}.split-handle[data-v-100ef373]{position:relative;z-index:13000;background:transparent;transition:background-color .2s ease;user-select:none;-webkit-tap-highlight-color:transparent;touch-action:none}.split-handle.vertical[data-v-100ef373]{width:0}.split-handle.horizontal[data-v-100ef373]{height:0}.split-handle .grip[data-v-100ef373]{position:absolute;border-radius:2px;background:transparent;transition:background-color .2s ease}.split-handle.vertical .grip[data-v-100ef373]{top:0;bottom:0;left:-5px;width:10px;cursor:col-resize}.split-handle.horizontal .grip[data-v-100ef373]{left:0;right:0;top:-5px;height:10px;cursor:row-resize}.split-handle.active .grip[data-v-100ef373],.split-handle:hover .grip[data-v-100ef373]{background:#2ecc7129}.dock-workspace[data-v-fa3343db]{position:relative;display:flex;flex-direction:row;width:100%;height:100%;overflow:hidden}.dock-workspace.slot-right[data-v-fa3343db]{flex-direction:row-reverse}.dock-workspace.slot-bottom[data-v-fa3343db]{flex-direction:column}.thumb-panel[data-v-fa3343db]{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;opacity:1;transition:width .28s ease,height .28s ease,opacity .22s ease}.thumb-panel.collapsed[data-v-fa3343db]{opacity:0;pointer-events:none}.thumb-panel.side[data-v-fa3343db]{height:100%}.thumb-panel.bottom[data-v-fa3343db]{width:100%}.main-panel[data-v-fa3343db]{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column}.main-panel.resizing[data-v-fa3343db]{user-select:none}.drop-overlay[data-v-fa3343db]{position:absolute;inset:0;pointer-events:none;z-index:12000}.drop-overlay .drop-zone[data-v-fa3343db]{position:absolute;border:1px dashed rgba(255,255,255,.45);background:#00000026;color:#fff;font-size:12px;letter-spacing:.06em;text-transform:uppercase;align-items:center;justify-content:center;display:flex;transition:all .16s ease}.drop-overlay .drop-zone.left[data-v-fa3343db]{top:8px;left:8px;bottom:8px;width:22%}.drop-overlay .drop-zone.right[data-v-fa3343db]{top:8px;right:8px;bottom:8px;width:22%}.drop-overlay .drop-zone.bottom[data-v-fa3343db]{left:8px;right:8px;bottom:8px;height:24%}.drop-overlay .drop-zone.active[data-v-fa3343db]{background:#2ecc7147;border-color:#2ecc71e6}div[data-v-f4d7c623]{display:flex}.reader-view[data-v-f4d7c623]{position:relative;flex-direction:row;align-items:center;height:100%;width:100%}.reader-view[data-v-f4d7c623] .main-content{height:100%;width:100%;flex-grow:1;position:relative;display:flex;flex-direction:column}.reader-view[data-v-f4d7c623] .main-content>.top-bar{position:absolute;z-index:10000;left:0;top:0;width:100%}.reader-view[data-v-f4d7c623] .main-content>.content{position:absolute;left:0;top:0;width:100%;height:100%}.reader-view>.panel[data-v-f4d7c623]{display:flex;align-items:center;justify-content:center;position:absolute;bottom:2vh;right:2vh;z-index:10000;opacity:.5;transition:all .2s ease}.reader-view>.panel[data-v-f4d7c623]:hover{opacity:1}.reader-view>.panel>.location[data-v-f4d7c623]{color:#28af60;display:inline-block;font-size:16px;line-height:16px;margin-top:2px}.reader-view>.panel .icon-container[data-v-f4d7c623]{position:relative;display:inline-block}.reader-view>.panel>.full-screen[data-v-f4d7c623]{cursor:pointer;margin-left:5px}.reader-view>.panel>.full-screen>svg[data-v-f4d7c623]{fill:#28af60;width:26px;height:26px}.reader-view>.status-pannel[data-v-f4d7c623]{z-index:10000;position:absolute;bottom:0;right:0;display:flex;flex-direction:row;align-items:center;opacity:.5;background-color:#000;padding:3px 5px;gap:3px}.reader-view>.status-pannel>.progress[data-v-f4d7c623]{display:flex;flex-direction:row;align-items:center;font-size:11px;line-height:11px;color:#fff}.reader-view>.status-pannel>.full-screen[data-v-f4d7c623]{display:flex;flex-direction:row;align-items:center;justify-content:center;border:0;background:transparent;cursor:pointer;padding:0;color:#fff;transition:color .2s ease}.reader-view>.status-pannel>.full-screen[data-v-f4d7c623]:hover{color:#28af60}.reader-view>.status-pannel>.full-screen>svg[data-v-f4d7c623]{fill:currentColor;width:12px;height:12px}article[data-v-19f1746c],header[data-v-19f1746c],footer[data-v-19f1746c],p[data-v-19f1746c],span[data-v-19f1746c],div[data-v-19f1746c]{display:flex}.status-notification-item[data-v-19f1746c]{flex-direction:column;width:320px;padding:12px;border-radius:10px;background:linear-gradient(135deg,#1c2028f5,#14161cf5);border:1px solid rgba(255,255,255,.12);box-shadow:0 10px 24px #00000059;color:#f8fbff;gap:8px}.status-notification-item>header[data-v-19f1746c]{flex-direction:row;align-items:center;justify-content:space-between;gap:8px}.status-notification-item>header>strong[data-v-19f1746c]{font-size:13px;line-height:16px;letter-spacing:.2px}.status-notification-item>header>.close[data-v-19f1746c]{border:0;background:#ffffff26;color:#fff;width:20px;height:20px;border-radius:50%;cursor:pointer;align-items:center;justify-content:center;display:flex;font-size:14px;line-height:14px}.status-notification-item>p[data-v-19f1746c]{margin:0;font-size:12px;line-height:16px;color:#f5faffeb}.status-notification-item>.actions[data-v-19f1746c]{flex-direction:row;gap:8px}.status-notification-item>.actions>.action-btn[data-v-19f1746c]{border:0;border-radius:6px;padding:4px 10px;font-size:11px;line-height:14px;cursor:pointer;color:#f6fbff;background:#ffffff29}.status-notification-item>.actions>.action-btn.danger[data-v-19f1746c]{background:#ff5c5c42;border:1px solid rgba(255,140,140,.6)}.status-notification-item>footer[data-v-19f1746c]{flex-direction:column;gap:4px}.status-notification-item>footer>span[data-v-19f1746c]{font-size:11px;color:#f5faffcc}.status-notification-item>footer>.bar[data-v-19f1746c]{position:relative;width:100%;height:5px;border-radius:999px;overflow:hidden;background:#ffffff29}.status-notification-item>footer>.bar>i[data-v-19f1746c]{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(90deg,#45d483,#9df39d)}.status-notification-item.severity-error[data-v-19f1746c]{border-color:#ff7c7c80}.status-notification-item.severity-error>footer>.bar>i[data-v-19f1746c]{background:linear-gradient(90deg,#ff7c7c,#ffb6b6)}.status-notification-item.severity-warning[data-v-19f1746c]{border-color:#ffc75e8c}.status-notification-item.severity-warning>footer>.bar>i[data-v-19f1746c]{background:linear-gradient(90deg,#ffc75e,#ffe59d)}@media only screen and (max-width:767px){.status-notification-item[data-v-19f1746c]{width:min(88vw,320px);padding:10px}}div[data-v-cded4c82]{display:flex}.status-notification-stack[data-v-cded4c82]{position:fixed;right:8px;bottom:28px;z-index:10020;pointer-events:none}.status-notification-stack>.list[data-v-cded4c82]{flex-direction:column;align-items:flex-end;gap:8px;pointer-events:auto}@media only screen and (max-width:767px){.status-notification-stack[data-v-cded4c82]{right:6px;bottom:32px}}p.markdown{font-size:14px!important;line-height:1.42857143!important;color:#333!important}p.markdown *{box-sizing:border-box}p.markdown *:before,p.markdown *:after{box-sizing:border-box}p.markdown hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee;height:0}p.markdown input,p.markdown button,p.markdown select,p.markdown textarea{font-family:inherit;font-size:inherit;line-height:inherit}p.markdown a{color:#428bca;text-decoration:none;background:transparent}p.markdown a:hover,p.markdown a:focus{color:#2a6496;outline:none;text-decoration:underline}p.markdown p{margin:0 0 10px!important}p.markdown b,p.markdown strong{font-weight:700}p.markdown h1{font-size:36px;margin:.67em 0}p.markdown h2{font-size:30px}p.markdown h4{font-size:18px}p.markdown h5{font-size:14px}p.markdown h6{font-size:12px}p.markdown h1,p.markdown h2,p.markdown h3{margin-top:20px!important;margin-bottom:10px!important}p.markdown h4,p.markdown h5,p.markdown h6{margin-top:10px!important;margin-bottom:10px!important}p.markdown h1,p.markdown h2,p.markdown h3,p.markdown h4,p.markdown h5,p.markdown h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}p.markdown blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}p.markdown blockquote:before{content:""}p.markdown blockquote:after{content:""}p.markdown ul,p.markdown ol{margin-top:0;margin-bottom:10px}p.markdown code,p.markdown kbd,p.markdown pre,p.markdown samp{font-family:Menlo,Monaco,Consolas,Courier New,monospace}p.markdown code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}p.markdown ul{padding-left:20px}p.markdown ul ul,p.markdown ol ul,p.markdown ul ol,p.markdown ol ol{margin-bottom:0}p.markdown pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px;overflow:auto}p.markdown pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}p.markdown table{width:100%;max-width:100%;margin-bottom:20px;background-color:transparent;border-spacing:0;border-collapse:collapse}p.markdown table>caption+thead>tr:first-child>th,p.markdown table>colgroup+thead>tr:first-child>th,p.markdown table>thead:first-child>tr:first-child>th,p.markdown table>caption+thead>tr:first-child>td,p.markdown table>colgroup+thead>tr:first-child>td,p.markdown table>thead:first-child>tr:first-child>td{border-top:0}p.markdown table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}p.markdown table>thead>tr>th,p.markdown table>tbody>tr>th,p.markdown table>tfoot>tr>th,p.markdown table>thead>tr>td,p.markdown table>tbody>tr>td,p.markdown table>tfoot>tr>td{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}p.markdown th{text-align:left}p.markdown td,p.markdown th{padding:0}p.markdown tbody>tr:nth-child(odd)>td,p.markdown tbody>tr:nth-child(odd)>th{background-color:#f9f9f9}p.markdown img{max-width:35%;vertical-align:middle;border:0}p.markdown sub,p.markdown sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}p.markdown sup{top:-.5em}p.markdown .emoji{height:1.2em}.ehunter-app{font-family:PingFang SC,Microsoft YaHei,微软雅黑,Arial,Hiragino Sans GB,Heiti SC,Droid Sans,WenQuanYi Micro Hei,sans-serif!important;display:flex;height:100%;text-align:initial}.ehunter-app section,.ehunter-app header,.ehunter-app nav{display:flex}.ehunter-app p{padding:0;margin:0}.ehunter-app h1,.ehunter-app h2,.ehunter-app h3,.ehunter-app h4,.ehunter-app h5,.ehunter-app h6{margin:0}.ehunter-app .clickable{cursor:pointer}.ehunter-app .no-select{user-select:none}.ehunter-app div{display:flex}.ehunter-app .tips{position:relative}.ehunter-app .tips:hover:after{content:attr(title-content);position:absolute;top:-110%;left:50%;transform:translate(-50%);font-size:12px;white-space:nowrap;padding:4px 6px 5px;border-radius:2px;min-width:50px;text-align:center;background:#000c;box-shadow:0 1px 6px #0000001e,0 1px 4px #0000001e;color:#fff}.ehunter-app .tips.tips-down:hover:after{top:130%}.ehunter-app .tips.tips-right:hover:after{left:-10%;transform:initial}.ehunter-app .tips.tips-left:hover:after{right:-20%;left:initial;transform:initial}.ehunter-app .slide-fade-enter-active,.ehunter-app .slide-fade-leave-active{transition:all .2s ease}.ehunter-app .slide-fade-enter-from,.ehunter-app .slide-fade-leave-to{transform:translate(10px);opacity:0}.ehunter-app .center-horizontal-fade-enter-active,.ehunter-app .center-horizontal-fade-leave-active{transition:all .8s ease}.ehunter-app .center-horizontal-fade-enter-from,.ehunter-app .center-horizontal-fade-leave-to{transform:translate(-40%)!important;opacity:0!important}.ehunter-app .slow-horizontal-fade-enter-active,.ehunter-app .slow-horizontal-fade-leave-active{transition:all .8s ease}.ehunter-app .slow-horizontal-fade-enter-from,.ehunter-app .slow-horizontal-fade-leave-to{transform:translate(20%);opacity:0}.ehunter-app .loading-horizontal-fade-enter-active,.ehunter-app .loading-horizontal-fade-leave-active{transition:all .5s ease}.ehunter-app .loading-horizontal-fade-enter-from,.ehunter-app .loading-horizontal-fade-leave-to{transform:translate(20%);opacity:0}.ehunter-app .fast-horizontal-fade-enter-active,.ehunter-app .fast-horizontal-fade-leave-active{transition:all .4s ease}.ehunter-app .fast-horizontal-fade-enter-from,.ehunter-app .fast-horizontal-fade-leave-to{transform:translate(20%);opacity:0}.ehunter-app .slow-vertical-fade-enter-active,.ehunter-app .slow-vertical-fade-leave-active{transition:all .8s ease}.ehunter-app .slow-vertical-fade-enter-from,.ehunter-app .slow-vertical-fade-leave-to{transform:translate(-20%,20%);opacity:0}.ehunter-app .slow-opacity-fade-enter-active,.ehunter-app .slow-opacity-fade-leave-active{transition:all .3s ease}.ehunter-app .slow-opacity-fade-enter-from,.ehunter-app .slow-opacity-fade-leave-to{opacity:0}.ehunter-app .vertical-list-enter-active,.ehunter-app .vertical-list-leave-active{transition:all .5s}.ehunter-app .vertical-list-enter-from,.ehunter-app .vertical-list-leave-to{opacity:0;transform:translateY(10%)}.ehunter-container{position:absolute;height:100%;width:100%;background:#333;left:0;top:0;z-index:1}.normalize{line-height:1.15;-webkit-text-size-adjust:100%;margin:0;-webkit-font-smoothing:auto}.normalize main{display:block}.normalize h1{font-size:2em;margin:.67em 0}.normalize hr{box-sizing:content-box;height:0;overflow:visible}.normalize pre{font-family:monospace,monospace;font-size:1em}.normalize a{background-color:transparent}.normalize abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}.normalize b,.normalize strong{font-weight:bolder}.normalize code,.normalize kbd,.normalize samp{font-family:monospace,monospace;font-size:1em}.normalize small{font-size:80%}.normalize sub,.normalize sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.normalize sub{bottom:-.25em}.normalize sup{top:-.5em}.normalize img{border-style:none}.normalize button,.normalize input,.normalize optgroup,.normalize select,.normalize textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}.normalize button,.normalize input{overflow:visible}.normalize button,.normalize select{text-transform:none}.normalize button,.normalize [type=button],.normalize [type=reset],.normalize [type=submit]{-webkit-appearance:button}.normalize button::-moz-focus-inner,.normalize [type=button]::-moz-focus-inner,.normalize [type=reset]::-moz-focus-inner,.normalize [type=submit]::-moz-focus-inner{border-style:none;padding:0}.normalize button:-moz-focusring,.normalize [type=button]:-moz-focusring,.normalize [type=reset]:-moz-focusring,.normalize [type=submit]:-moz-focusring{outline:1px dotted ButtonText}.normalize fieldset{padding:.35em .75em .625em}.normalize legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}.normalize progress{vertical-align:baseline}.normalize textarea{overflow:auto}.normalize [type=checkbox],.normalize [type=radio]{box-sizing:border-box;padding:0}.normalize [type=number]::-webkit-inner-spin-button,.normalize [type=number]::-webkit-outer-spin-button{height:auto}.normalize [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.normalize [type=search]::-webkit-search-decoration{-webkit-appearance:none}.normalize ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.normalize details{display:block}.normalize summary{display:list-item}.normalize template{display:none}.normalize [hidden]{display:none}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
var Qw=Object.defineProperty,Zw=Object.defineProperties;var Yw=Object.getOwnPropertyDescriptors;var Rh=Object.getOwnPropertySymbols;var Jw=Object.prototype.hasOwnProperty,Xw=Object.prototype.propertyIsEnumerable;var Tc=(Qe,de,ze)=>de in Qe?Qw(Qe,de,{enumerable:!0,configurable:!0,writable:!0,value:ze}):Qe[de]=ze,at=(Qe,de)=>{for(var ze in de||(de={}))Jw.call(de,ze)&&Tc(Qe,ze,de[ze]);if(Rh)for(var ze of Rh(de))Xw.call(de,ze)&&Tc(Qe,ze,de[ze]);return Qe},Kn=(Qe,de)=>Zw(Qe,Yw(de));var ie=(Qe,de,ze)=>Tc(Qe,typeof de!="symbol"?de+"":de,ze);var Pe=(Qe,de,ze)=>new Promise((ht,Gn)=>{var Tn=_t=>{try{Be(ze.next(_t))}catch(Zn){Gn(Zn)}},Qn=_t=>{try{Be(ze.throw(_t))}catch(Zn){Gn(Zn)}},Be=_t=>_t.done?ht(_t.value):Promise.resolve(_t.value).then(Tn,Qn);Be((ze=ze.apply(Qe,de)).next())});(function(){"use strict";/**
* @vue/shared v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Qe(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const de={},ze=[],ht=()=>{},Gn=()=>!1,Tn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Qn=e=>e.startsWith("onUpdate:"),Be=Object.assign,_t=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Zn=Object.prototype.hasOwnProperty,De=(e,t)=>Zn.call(e,t),he=Array.isArray,En=e=>Yn(e)==="[object Map]",Ec=e=>Yn(e)==="[object Set]",Ic=e=>Yn(e)==="[object Date]",pe=e=>typeof e=="function",He=e=>typeof e=="string",St=e=>typeof e=="symbol",Me=e=>e!==null&&typeof e=="object",Ac=e=>(Me(e)||pe(e))&&pe(e.then)&&pe(e.catch),Dc=Object.prototype.toString,Yn=e=>Dc.call(e),qh=e=>Yn(e).slice(8,-1),Mc=e=>Yn(e)==="[object Object]",Ho=e=>He(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Jn=Qe(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pr=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Fh=/-\w/g,nn=Pr(e=>e.replace(Fh,t=>t.slice(1).toUpperCase())),Lh=/\B([A-Z])/g,fn=Pr(e=>e.replace(Lh,"-$1").toLowerCase()),Pc=Pr(e=>e.charAt(0).toUpperCase()+e.slice(1)),$o=Pr(e=>e?`on${Pc(e)}`:""),rn=(e,t)=>!Object.is(e,t),Rr=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Rc=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},jo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Nh=e=>{const t=He(e)?Number(e):NaN;return isNaN(t)?e:t};let qc;const qr=()=>qc||(qc=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function Ke(e){if(he(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=He(r)?Vh(r):Ke(r);if(o)for(const s in o)t[s]=o[s]}return t}else if(He(e)||Me(e))return e}const Oh=/;(?![^(]*\))/g,zh=/:([^]+)/,Bh=/\/\*[^]*?\*\//g;function Vh(e){const t={};return e.replace(Bh,"").split(Oh).forEach(n=>{if(n){const r=n.split(zh);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function be(e){let t="";if(He(e))t=e;else if(he(e))for(let n=0;n<e.length;n++){const r=be(e[n]);r&&(t+=r+" ")}else if(Me(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Hh=Qe("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Fc(e){return!!e||e===""}function $h(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Uo(e[r],t[r]);return n}function Uo(e,t){if(e===t)return!0;let n=Ic(e),r=Ic(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=St(e),r=St(t),n||r)return e===t;if(n=he(e),r=he(t),n||r)return n&&r?$h(e,t):!1;if(n=Me(e),r=Me(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,s=Object.keys(t).length;if(o!==s)return!1;for(const i in e){const c=e.hasOwnProperty(i),a=t.hasOwnProperty(i);if(c&&!a||!c&&a||!Uo(e[i],t[i]))return!1}}return String(e)===String(t)}const Lc=e=>!!(e&&e.__v_isRef===!0),Q=e=>He(e)?e:e==null?"":he(e)||Me(e)&&(e.toString===Dc||!pe(e.toString))?Lc(e)?Q(e.value):JSON.stringify(e,Nc,2):String(e),Nc=(e,t)=>Lc(t)?Nc(e,t.value):En(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],s)=>(n[Wo(r,s)+" =>"]=o,n),{})}:Ec(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Wo(n))}:St(t)?Wo(t):Me(t)&&!he(t)&&!Mc(t)?String(t):t,Wo=(e,t="")=>{var n;return St(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function jh(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}/**
* @vue/reactivity v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let lt;class Uh{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=lt,!t&&lt&&(this.index=(lt.scopes||(lt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=lt;try{return lt=this,t()}finally{lt=n}}}on(){++this._on===1&&(this.prevScope=lt,lt=this)}off(){this._on>0&&--this._on===0&&(lt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function Wh(){return lt}let Le;const Ko=new WeakSet;class Oc{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,lt&&lt.active&&lt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ko.has(this)&&(Ko.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Bc(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Uc(this),Vc(this);const t=Le,n=kt;Le=this,kt=!0;try{return this.fn()}finally{Hc(this),Le=t,kt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Yo(t);this.deps=this.depsTail=void 0,Uc(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ko.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Zo(this)&&this.run()}get dirty(){return Zo(this)}}let zc=0,Xn,er;function Bc(e,t=!1){if(e.flags|=8,t){e.next=er,er=e;return}e.next=Xn,Xn=e}function Go(){zc++}function Qo(){if(--zc>0)return;if(er){let t=er;for(er=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Xn;){let t=Xn;for(Xn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Vc(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Hc(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),Yo(r),Kh(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function Zo(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&($c(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function $c(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===tr)||(e.globalVersion=tr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Zo(e))))return;e.flags|=2;const t=e.dep,n=Le,r=kt;Le=e,kt=!0;try{Vc(e);const o=e.fn(e._value);(t.version===0||rn(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Le=n,kt=r,Hc(e),e.flags&=-3}}function Yo(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)Yo(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Kh(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let kt=!0;const jc=[];function Tt(){jc.push(kt),kt=!1}function Et(){const e=jc.pop();kt=e===void 0?!0:e}function Uc(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Le;Le=void 0;try{t()}finally{Le=n}}}let tr=0;class Gh{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Jo{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Le||!kt||Le===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Le)n=this.activeLink=new Gh(Le,this),Le.deps?(n.prevDep=Le.depsTail,Le.depsTail.nextDep=n,Le.depsTail=n):Le.deps=Le.depsTail=n,Wc(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Le.depsTail,n.nextDep=void 0,Le.depsTail.nextDep=n,Le.depsTail=n,Le.deps===n&&(Le.deps=r)}return n}trigger(t){this.version++,tr++,this.notify(t)}notify(t){Go();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Qo()}}}function Wc(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Wc(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Xo=new WeakMap,hn=Symbol(""),es=Symbol(""),nr=Symbol("");function Xe(e,t,n){if(kt&&Le){let r=Xo.get(e);r||Xo.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new Jo),o.map=r,o.key=n),o.track()}}function Bt(e,t,n,r,o,s){const i=Xo.get(e);if(!i){tr++;return}const c=a=>{a&&a.trigger()};if(Go(),t==="clear")i.forEach(c);else{const a=he(e),u=a&&Ho(n);if(a&&n==="length"){const l=Number(r);i.forEach((f,p)=>{(p==="length"||p===nr||!St(p)&&p>=l)&&c(f)})}else switch((n!==void 0||i.has(void 0))&&c(i.get(n)),u&&c(i.get(nr)),t){case"add":a?u&&c(i.get("length")):(c(i.get(hn)),En(e)&&c(i.get(es)));break;case"delete":a||(c(i.get(hn)),En(e)&&c(i.get(es)));break;case"set":En(e)&&c(i.get(hn));break}}Qo()}function In(e){const t=Se(e);return t===e?t:(Xe(t,"iterate",nr),vt(e)?t:t.map(xt))}function Fr(e){return Xe(e=Se(e),"iterate",nr),e}function on(e,t){return Ht(e)?An(dn(e)?xt(t):t):xt(t)}const Qh={__proto__:null,[Symbol.iterator](){return ts(this,Symbol.iterator,e=>on(this,e))},concat(...e){return In(this).concat(...e.map(t=>he(t)?In(t):t))},entries(){return ts(this,"entries",e=>(e[1]=on(this,e[1]),e))},every(e,t){return Vt(this,"every",e,t,void 0,arguments)},filter(e,t){return Vt(this,"filter",e,t,n=>n.map(r=>on(this,r)),arguments)},find(e,t){return Vt(this,"find",e,t,n=>on(this,n),arguments)},findIndex(e,t){return Vt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Vt(this,"findLast",e,t,n=>on(this,n),arguments)},findLastIndex(e,t){return Vt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Vt(this,"forEach",e,t,void 0,arguments)},includes(...e){return ns(this,"includes",e)},indexOf(...e){return ns(this,"indexOf",e)},join(e){return In(this).join(e)},lastIndexOf(...e){return ns(this,"lastIndexOf",e)},map(e,t){return Vt(this,"map",e,t,void 0,arguments)},pop(){return rr(this,"pop")},push(...e){return rr(this,"push",e)},reduce(e,...t){return Kc(this,"reduce",e,t)},reduceRight(e,...t){return Kc(this,"reduceRight",e,t)},shift(){return rr(this,"shift")},some(e,t){return Vt(this,"some",e,t,void 0,arguments)},splice(...e){return rr(this,"splice",e)},toReversed(){return In(this).toReversed()},toSorted(e){return In(this).toSorted(e)},toSpliced(...e){return In(this).toSpliced(...e)},unshift(...e){return rr(this,"unshift",e)},values(){return ts(this,"values",e=>on(this,e))}};function ts(e,t,n){const r=Fr(e),o=r[t]();return r!==e&&!vt(e)&&(o._next=o.next,o.next=()=>{const s=o._next();return s.done||(s.value=n(s.value)),s}),o}const Zh=Array.prototype;function Vt(e,t,n,r,o,s){const i=Fr(e),c=i!==e&&!vt(e),a=i[t];if(a!==Zh[t]){const f=a.apply(e,s);return c?xt(f):f}let u=n;i!==e&&(c?u=function(f,p){return n.call(this,on(e,f),p,e)}:n.length>2&&(u=function(f,p){return n.call(this,f,p,e)}));const l=a.call(i,u,r);return c&&o?o(l):l}function Kc(e,t,n,r){const o=Fr(e);let s=n;return o!==e&&(vt(e)?n.length>3&&(s=function(i,c,a){return n.call(this,i,c,a,e)}):s=function(i,c,a){return n.call(this,i,on(e,c),a,e)}),o[t](s,...r)}function ns(e,t,n){const r=Se(e);Xe(r,"iterate",nr);const o=r[t](...n);return(o===-1||o===!1)&&ss(n[0])?(n[0]=Se(n[0]),r[t](...n)):o}function rr(e,t,n=[]){Tt(),Go();const r=Se(e)[t].apply(e,n);return Qo(),Et(),r}const Yh=Qe("__proto__,__v_isRef,__isVue"),Gc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(St));function Jh(e){St(e)||(e=String(e));const t=Se(this);return Xe(t,"has",e),t.hasOwnProperty(e)}class Qc{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(o?s?ta:ea:s?Xc:Jc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=he(t);if(!o){let a;if(i&&(a=Qh[n]))return a;if(n==="hasOwnProperty")return Jh}const c=Reflect.get(t,n,Ze(t)?t:r);if((St(n)?Gc.has(n):Yh(n))||(o||Xe(t,"get",n),s))return c;if(Ze(c)){const a=i&&Ho(n)?c:c.value;return o&&Me(a)?os(a):a}return Me(c)?o?os(c):zr(c):c}}class Zc extends Qc{constructor(t=!1){super(!1,t)}set(t,n,r,o){let s=t[n];const i=he(t)&&Ho(n);if(!this._isShallow){const u=Ht(s);if(!vt(r)&&!Ht(r)&&(s=Se(s),r=Se(r)),!i&&Ze(s)&&!Ze(r))return u||(s.value=r),!0}const c=i?Number(n)<t.length:De(t,n),a=Reflect.set(t,n,r,Ze(t)?t:o);return t===Se(o)&&(c?rn(r,s)&&Bt(t,"set",n,r):Bt(t,"add",n,r)),a}deleteProperty(t,n){const r=De(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&r&&Bt(t,"delete",n,void 0),o}has(t,n){const r=Reflect.has(t,n);return(!St(n)||!Gc.has(n))&&Xe(t,"has",n),r}ownKeys(t){return Xe(t,"iterate",he(t)?"length":hn),Reflect.ownKeys(t)}}class Yc extends Qc{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Xh=new Zc,ed=new Yc,td=new Zc(!0),nd=new Yc(!0),rs=e=>e,Lr=e=>Reflect.getPrototypeOf(e);function rd(e,t,n){return function(...r){const o=this.__v_raw,s=Se(o),i=En(s),c=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,u=o[e](...r),l=n?rs:t?An:xt;return!t&&Xe(s,"iterate",a?es:hn),Be(Object.create(u),{next(){const{value:f,done:p}=u.next();return p?{value:f,done:p}:{value:c?[l(f[0]),l(f[1])]:l(f),done:p}}})}}function Nr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function od(e,t){const n={get(o){const s=this.__v_raw,i=Se(s),c=Se(o);e||(rn(o,c)&&Xe(i,"get",o),Xe(i,"get",c));const{has:a}=Lr(i),u=t?rs:e?An:xt;if(a.call(i,o))return u(s.get(o));if(a.call(i,c))return u(s.get(c));s!==i&&s.get(o)},get size(){const o=this.__v_raw;return!e&&Xe(Se(o),"iterate",hn),o.size},has(o){const s=this.__v_raw,i=Se(s),c=Se(o);return e||(rn(o,c)&&Xe(i,"has",o),Xe(i,"has",c)),o===c?s.has(o):s.has(o)||s.has(c)},forEach(o,s){const i=this,c=i.__v_raw,a=Se(c),u=t?rs:e?An:xt;return!e&&Xe(a,"iterate",hn),c.forEach((l,f)=>o.call(s,u(l),u(f),i))}};return Be(n,e?{add:Nr("add"),set:Nr("set"),delete:Nr("delete"),clear:Nr("clear")}:{add(o){!t&&!vt(o)&&!Ht(o)&&(o=Se(o));const s=Se(this);return Lr(s).has.call(s,o)||(s.add(o),Bt(s,"add",o,o)),this},set(o,s){!t&&!vt(s)&&!Ht(s)&&(s=Se(s));const i=Se(this),{has:c,get:a}=Lr(i);let u=c.call(i,o);u||(o=Se(o),u=c.call(i,o));const l=a.call(i,o);return i.set(o,s),u?rn(s,l)&&Bt(i,"set",o,s):Bt(i,"add",o,s),this},delete(o){const s=Se(this),{has:i,get:c}=Lr(s);let a=i.call(s,o);a||(o=Se(o),a=i.call(s,o)),c&&c.call(s,o);const u=s.delete(o);return a&&Bt(s,"delete",o,void 0),u},clear(){const o=Se(this),s=o.size!==0,i=o.clear();return s&&Bt(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=rd(o,e,t)}),n}function Or(e,t){const n=od(e,t);return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(De(n,o)&&o in r?n:r,o,s)}const sd={get:Or(!1,!1)},id={get:Or(!1,!0)},cd={get:Or(!0,!1)},ad={get:Or(!0,!0)},Jc=new WeakMap,Xc=new WeakMap,ea=new WeakMap,ta=new WeakMap;function ld(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ud(e){return e.__v_skip||!Object.isExtensible(e)?0:ld(qh(e))}function zr(e){return Ht(e)?e:Br(e,!1,Xh,sd,Jc)}function fd(e){return Br(e,!1,td,id,Xc)}function os(e){return Br(e,!0,ed,cd,ea)}function t1(e){return Br(e,!0,nd,ad,ta)}function Br(e,t,n,r,o){if(!Me(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=ud(e);if(s===0)return e;const i=o.get(e);if(i)return i;const c=new Proxy(e,s===2?r:n);return o.set(e,c),c}function dn(e){return Ht(e)?dn(e.__v_raw):!!(e&&e.__v_isReactive)}function Ht(e){return!!(e&&e.__v_isReadonly)}function vt(e){return!!(e&&e.__v_isShallow)}function ss(e){return e?!!e.__v_raw:!1}function Se(e){const t=e&&e.__v_raw;return t?Se(t):e}function hd(e){return!De(e,"__v_skip")&&Object.isExtensible(e)&&Rc(e,"__v_skip",!0),e}const xt=e=>Me(e)?zr(e):e,An=e=>Me(e)?os(e):e;function Ze(e){return e?e.__v_isRef===!0:!1}function Y(e){return dd(e,!1)}function dd(e,t){return Ze(e)?e:new pd(e,t)}class pd{constructor(t,n){this.dep=new Jo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Se(t),this._value=n?t:xt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||vt(t)||Ht(t);t=r?t:Se(t),rn(t,n)&&(this._rawValue=t,this._value=r?t:xt(t),this.dep.trigger())}}function S(e){return Ze(e)?e.value:e}const gd={get:(e,t,n)=>t==="__v_raw"?e:S(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Ze(o)&&!Ze(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function na(e){return dn(e)?e:new Proxy(e,gd)}class md{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Jo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=tr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Le!==this)return Bc(this,!0),!0}get value(){const t=this.dep.track();return $c(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function vd(e,t,n=!1){let r,o;return pe(e)?r=e:(r=e.get,o=e.set),new md(r,o,n)}const Vr={},Hr=new WeakMap;let pn;function bd(e,t=!1,n=pn){if(n){let r=Hr.get(n);r||Hr.set(n,r=[]),r.push(e)}}function yd(e,t,n=de){const{immediate:r,deep:o,once:s,scheduler:i,augmentJob:c,call:a}=n,u=v=>o?v:vt(v)||o===!1||o===0?$t(v,1):$t(v);let l,f,p,h,m=!1,g=!1;if(Ze(e)?(f=()=>e.value,m=vt(e)):dn(e)?(f=()=>u(e),m=!0):he(e)?(g=!0,m=e.some(v=>dn(v)||vt(v)),f=()=>e.map(v=>{if(Ze(v))return v.value;if(dn(v))return u(v);if(pe(v))return a?a(v,2):v()})):pe(e)?t?f=a?()=>a(e,2):e:f=()=>{if(p){Tt();try{p()}finally{Et()}}const v=pn;pn=l;try{return a?a(e,3,[h]):e(h)}finally{pn=v}}:f=ht,t&&o){const v=f,x=o===!0?1/0:o;f=()=>$t(v(),x)}const k=Wh(),y=()=>{l.stop(),k&&k.active&&_t(k.effects,l)};if(s&&t){const v=t;t=(...x)=>{v(...x),y()}}let b=g?new Array(e.length).fill(Vr):Vr;const w=v=>{if(!(!(l.flags&1)||!l.dirty&&!v))if(t){const x=l.run();if(o||m||(g?x.some((E,F)=>rn(E,b[F])):rn(x,b))){p&&p();const E=pn;pn=l;try{const F=[x,b===Vr?void 0:g&&b[0]===Vr?[]:b,h];b=x,a?a(t,3,F):t(...F)}finally{pn=E}}}else l.run()};return c&&c(w),l=new Oc(f),l.scheduler=i?()=>i(w,!1):w,h=v=>bd(v,!1,l),p=l.onStop=()=>{const v=Hr.get(l);if(v){if(a)a(v,4);else for(const x of v)x();Hr.delete(l)}},t?r?w(!0):b=l.run():i?i(w.bind(null,!0),!0):l.run(),y.pause=l.pause.bind(l),y.resume=l.resume.bind(l),y.stop=y,y}function $t(e,t=1/0,n){if(t<=0||!Me(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ze(e))$t(e.value,t,n);else if(he(e))for(let r=0;r<e.length;r++)$t(e[r],t,n);else if(Ec(e)||En(e))e.forEach(r=>{$t(r,t,n)});else if(Mc(e)){for(const r in e)$t(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&$t(e[r],t,n)}return e}/**
* @vue/runtime-core v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const or=[];let is=!1;function n1(e,...t){if(is)return;is=!0,Tt();const n=or.length?or[or.length-1].component:null,r=n&&n.appContext.config.warnHandler,o=wd();if(r)Dn(r,n,11,[e+t.map(s=>{var i,c;return(c=(i=s.toString)==null?void 0:i.call(s))!=null?c:JSON.stringify(s)}).join(""),n&&n.proxy,o.map(({vnode:s})=>`at <${al(n,s.type)}>`).join(`
`),o]);else{const s=[`[Vue warn]: ${e}`,...t];o.length&&s.push(`
`,..._d(o)),console.warn(...s)}Et(),is=!1}function wd(){let e=or[or.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 r=e.component&&e.component.parent;e=r&&r.vnode}return t}function _d(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
`],...Sd(n))}),t}function Sd({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,o=` at <${al(e.component,e.type,r)}`,s=">"+n;return e.props?[o,...kd(e.props),s]:[o+s]}function kd(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...ra(r,e[r]))}),n.length>3&&t.push(" ..."),t}function ra(e,t,n){return He(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Ze(t)?(t=ra(e,Se(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):pe(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Se(t),n?t:[`${e}=`,t])}function Dn(e,t,n,r){try{return r?e(...r):e()}catch(o){$r(o,t,n)}}function Ct(e,t,n,r){if(pe(e)){const o=Dn(e,t,n,r);return o&&Ac(o)&&o.catch(s=>{$r(s,t,n)}),o}if(he(e)){const o=[];for(let s=0;s<e.length;s++)o.push(Ct(e[s],t,n,r));return o}}function $r(e,t,n,r=!0){const o=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||de;if(t){let c=t.parent;const a=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;c;){const l=c.ec;if(l){for(let f=0;f<l.length;f++)if(l[f](e,a,u)===!1)return}c=c.parent}if(s){Tt(),Dn(s,null,10,[e,a,u]),Et();return}}xd(e,n,o,r,i)}function xd(e,t,n,r=!0,o=!1){if(o)throw e;console.error(e)}const st=[];let It=-1;const Mn=[];let sn=null,Pn=0;const oa=Promise.resolve();let jr=null;function At(e){const t=jr||oa;return e?t.then(this?e.bind(this):e):t}function Cd(e){let t=It+1,n=st.length;for(;t<n;){const r=t+n>>>1,o=st[r],s=sr(o);s<e||s===e&&o.flags&2?t=r+1:n=r}return t}function cs(e){if(!(e.flags&1)){const t=sr(e),n=st[st.length-1];!n||!(e.flags&2)&&t>=sr(n)?st.push(e):st.splice(Cd(t),0,e),e.flags|=1,sa()}}function sa(){jr||(jr=oa.then(la))}function ia(e){he(e)?Mn.push(...e):sn&&e.id===-1?sn.splice(Pn+1,0,e):e.flags&1||(Mn.push(e),e.flags|=1),sa()}function ca(e,t,n=It+1){for(;n<st.length;n++){const r=st[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;st.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function aa(e){if(Mn.length){const t=[...new Set(Mn)].sort((n,r)=>sr(n)-sr(r));if(Mn.length=0,sn){sn.push(...t);return}for(sn=t,Pn=0;Pn<sn.length;Pn++){const n=sn[Pn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}sn=null,Pn=0}}const sr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function la(e){try{for(It=0;It<st.length;It++){const t=st[It];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Dn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;It<st.length;It++){const t=st[It];t&&(t.flags&=-2)}It=-1,st.length=0,aa(),jr=null,(st.length||Mn.length)&&la()}}let et=null,ua=null;function Ur(e){const t=et;return et=e,ua=e&&e.type.__scopeId||null,t}function We(e,t=et,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&eo(-1);const s=Ur(t);let i;try{i=e(...o)}finally{Ur(s),r._d&&eo(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function gn(e,t){if(et===null)return e;const n=oo(et),r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[s,i,c,a=de]=t[o];s&&(pe(s)&&(s={mounted:s,updated:s}),s.deep&&$t(i),r.push({dir:s,instance:n,value:i,oldValue:void 0,arg:c,modifiers:a}))}return e}function mn(e,t,n,r){const o=e.dirs,s=t&&t.dirs;for(let i=0;i<o.length;i++){const c=o[i];s&&(c.oldValue=s[i].value);let a=c.dir[r];a&&(Tt(),Ct(a,n,8,[e.el,c,e,t]),Et())}}function Td(e,t){if(ct){let n=ct.provides;const r=ct.parent&&ct.parent.provides;r===n&&(n=ct.provides=Object.create(r)),n[e]=t}}function Rn(e,t,n=!1){const r=no();if(r||Fn){let o=Fn?Fn._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&pe(t)?t.call(r&&r.proxy):t}}const Ed=Symbol.for("v-scx"),Id=()=>Rn(Ed);function je(e,t,n){return fa(e,t,n)}function fa(e,t,n=de){const{immediate:r,deep:o,flush:s,once:i}=n,c=Be({},n),a=t&&r||!t&&s!=="post";let u;if(vr){if(s==="sync"){const h=Id();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!a){const h=()=>{};return h.stop=ht,h.resume=ht,h.pause=ht,h}}const l=ct;c.call=(h,m,g)=>Ct(h,l,m,g);let f=!1;s==="post"?c.scheduler=h=>{tt(h,l&&l.suspense)}:s!=="sync"&&(f=!0,c.scheduler=(h,m)=>{m?h():cs(h)}),c.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,l&&(h.id=l.uid,h.i=l))};const p=yd(e,t,c);return vr&&(u?u.push(p):a&&p()),p}function Ad(e,t,n){const r=this.proxy,o=He(e)?e.includes(".")?ha(r,e):()=>r[e]:e.bind(r,r);let s;pe(t)?s=t:(s=t.handler,n=t);const i=mr(this),c=fa(o,s.bind(r),n);return i(),c}function ha(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}const da=Symbol("_vte"),pa=e=>e.__isTeleport,ir=e=>e&&(e.disabled||e.disabled===""),ga=e=>e&&(e.defer||e.defer===""),ma=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,va=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,as=(e,t)=>{const n=e&&e.to;return He(n)?t?t(n):null:n},ba={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,s,i,c,a,u){const{mc:l,pc:f,pbc:p,o:{insert:h,querySelector:m,createText:g,createComment:k}}=u,y=ir(t.props);let{shapeFlag:b,children:w,dynamicChildren:v}=t;if(e==null){const x=t.el=g(""),E=t.anchor=g("");h(x,n,r),h(E,n,r);const F=(D,M)=>{b&16&&l(w,D,M,o,s,i,c,a)},C=()=>{const D=t.target=as(t.props,m),M=us(D,t,g,h);D&&(i!=="svg"&&ma(D)?i="svg":i!=="mathml"&&va(D)&&(i="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(D),y||(F(D,M),Kr(t,!1)))};y&&(F(n,E),Kr(t,!0)),ga(t.props)?(t.el.__isMounted=!1,tt(()=>{C(),delete t.el.__isMounted},s)):C()}else{if(ga(t.props)&&e.el.__isMounted===!1){tt(()=>{ba.process(e,t,n,r,o,s,i,c,a,u)},s);return}t.el=e.el,t.targetStart=e.targetStart;const x=t.anchor=e.anchor,E=t.target=e.target,F=t.targetAnchor=e.targetAnchor,C=ir(e.props),D=C?n:E,M=C?x:F;if(i==="svg"||ma(E)?i="svg":(i==="mathml"||va(E))&&(i="mathml"),v?(p(e.dynamicChildren,v,D,o,s,i,c),_s(e,t,!0)):a||f(e,t,D,M,o,s,i,c,!1),y)C?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Wr(t,n,x,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const N=t.target=as(t.props,m);N&&Wr(t,N,null,u,0)}else C&&Wr(t,E,F,u,1);Kr(t,y)}},remove(e,t,n,{um:r,o:{remove:o}},s){const{shapeFlag:i,children:c,anchor:a,targetStart:u,targetAnchor:l,target:f,props:p}=e;if(f&&(o(u),o(l)),s&&o(a),i&16){const h=s||!ir(p);for(let m=0;m<c.length;m++){const g=c[m];r(g,t,n,h,!!g.dynamicChildren)}}},move:Wr,hydrate:Dd};function Wr(e,t,n,{o:{insert:r},m:o},s=2){s===0&&r(e.targetAnchor,t,n);const{el:i,anchor:c,shapeFlag:a,children:u,props:l}=e,f=s===2;if(f&&r(i,t,n),(!f||ir(l))&&a&16)for(let p=0;p<u.length;p++)o(u[p],t,n,2);f&&r(c,t,n)}function Dd(e,t,n,r,o,s,{o:{nextSibling:i,parentNode:c,querySelector:a,insert:u,createText:l}},f){function p(k,y){let b=y;for(;b;){if(b&&b.nodeType===8){if(b.data==="teleport start anchor")t.targetStart=b;else if(b.data==="teleport anchor"){t.targetAnchor=b,k._lpa=t.targetAnchor&&i(t.targetAnchor);break}}b=i(b)}}function h(k,y){y.anchor=f(i(k),y,c(k),n,r,o,s)}const m=t.target=as(t.props,a),g=ir(t.props);if(m){const k=m._lpa||m.firstChild;t.shapeFlag&16&&(g?(h(e,t),p(m,k),t.targetAnchor||us(m,t,l,u,c(e)===m?e:null)):(t.anchor=i(e),p(m,k),t.targetAnchor||us(m,t,l,u),f(k&&i(k),t,m,n,r,o,s))),Kr(t,g)}else g&&t.shapeFlag&16&&(h(e,t),t.targetStart=e,t.targetAnchor=i(e));return t.anchor&&i(t.anchor)}const ls=ba;function Kr(e,t){const n=e.ctx;if(n&&n.ut){let r,o;for(t?(r=e.el,o=e.anchor):(r=e.targetStart,o=e.targetAnchor);r&&r!==o;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function us(e,t,n,r,o=null){const s=t.targetStart=n(""),i=t.targetAnchor=n("");return s[da]=i,e&&(r(s,e,o),r(i,e,o)),i}const Dt=Symbol("_leaveCb"),cr=Symbol("_enterCb");function ya(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ut(()=>{e.isMounted=!0}),bn(()=>{e.isUnmounting=!0}),e}const bt=[Function,Array],wa={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:bt,onEnter:bt,onAfterEnter:bt,onEnterCancelled:bt,onBeforeLeave:bt,onLeave:bt,onAfterLeave:bt,onLeaveCancelled:bt,onBeforeAppear:bt,onAppear:bt,onAfterAppear:bt,onAppearCancelled:bt},_a=e=>{const t=e.subTree;return t.component?_a(t.component):t},Md={name:"BaseTransition",props:wa,setup(e,{slots:t}){const n=no(),r=ya();return()=>{const o=t.default&&hs(t.default(),!0);if(!o||!o.length)return;const s=Sa(o),i=Se(e),{mode:c}=i;if(r.isLeaving)return fs(s);const a=xa(s);if(!a)return fs(s);let u=ar(a,i,r,n,f=>u=f);a.type!==nt&&vn(a,u);let l=n.subTree&&xa(n.subTree);if(l&&l.type!==nt&&!_n(l,a)&&_a(n).type!==nt){let f=ar(l,i,r,n);if(vn(l,f),c==="out-in"&&a.type!==nt)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,l=void 0},fs(s);c==="in-out"&&a.type!==nt?f.delayLeave=(p,h,m)=>{const g=ka(r,l);g[String(l.key)]=l,p[Dt]=()=>{h(),p[Dt]=void 0,delete u.delayedLeave,l=void 0},u.delayedLeave=()=>{m(),delete u.delayedLeave,l=void 0}}:l=void 0}else l&&(l=void 0);return s}}};function Sa(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==nt){t=n;break}}return t}const Pd=Md;function ka(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ar(e,t,n,r,o){const{appear:s,mode:i,persisted:c=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:l,onEnterCancelled:f,onBeforeLeave:p,onLeave:h,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:k,onAppear:y,onAfterAppear:b,onAppearCancelled:w}=t,v=String(e.key),x=ka(n,e),E=(D,M)=>{D&&Ct(D,r,9,M)},F=(D,M)=>{const N=M[1];E(D,M),he(D)?D.every(L=>L.length<=1)&&N():D.length<=1&&N()},C={mode:i,persisted:c,beforeEnter(D){let M=a;if(!n.isMounted)if(s)M=k||a;else return;D[Dt]&&D[Dt](!0);const N=x[v];N&&_n(e,N)&&N.el[Dt]&&N.el[Dt](),E(M,[D])},enter(D){let M=u,N=l,L=f;if(!n.isMounted)if(s)M=y||u,N=b||l,L=w||f;else return;let ae=!1;D[cr]=re=>{ae||(ae=!0,re?E(L,[D]):E(N,[D]),C.delayedLeave&&C.delayedLeave(),D[cr]=void 0)};const z=D[cr].bind(null,!1);M?F(M,[D,z]):z()},leave(D,M){const N=String(e.key);if(D[cr]&&D[cr](!0),n.isUnmounting)return M();E(p,[D]);let L=!1;D[Dt]=z=>{L||(L=!0,M(),z?E(g,[D]):E(m,[D]),D[Dt]=void 0,x[N]===e&&delete x[N])};const ae=D[Dt].bind(null,!1);x[N]=e,h?F(h,[D,ae]):ae()},clone(D){const M=ar(D,t,n,r,o);return o&&o(M),M}};return C}function fs(e){if(Qr(e))return e=cn(e),e.children=null,e}function xa(e){if(!Qr(e))return pa(e.type)&&e.children?Sa(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&pe(n.default))return n.default()}}function vn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,vn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function hs(e,t=!1,n){let r=[],o=0;for(let s=0;s<e.length;s++){let i=e[s];const c=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===we?(i.patchFlag&128&&o++,r=r.concat(hs(i.children,t,c))):(t||i.type!==nt)&&r.push(c!=null?cn(i,{key:c}):i)}if(o>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}function Te(e,t){return pe(e)?Be({name:e.name},t,{setup:e}):e}function Ca(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ta(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Gr=new WeakMap;function lr(e,t,n,r,o=!1){if(he(e)){e.forEach((g,k)=>lr(g,t&&(he(t)?t[k]:t),n,r,o));return}if(qn(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&lr(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?oo(r.component):r.el,i=o?null:s,{i:c,r:a}=e,u=t&&t.r,l=c.refs===de?c.refs={}:c.refs,f=c.setupState,p=Se(f),h=f===de?Gn:g=>Ta(l,g)?!1:De(p,g),m=(g,k)=>!(k&&Ta(l,k));if(u!=null&&u!==a){if(Ea(t),He(u))l[u]=null,h(u)&&(f[u]=null);else if(Ze(u)){const g=t;m(u,g.k)&&(u.value=null),g.k&&(l[g.k]=null)}}if(pe(a))Dn(a,c,12,[i,l]);else{const g=He(a),k=Ze(a);if(g||k){const y=()=>{if(e.f){const b=g?h(a)?f[a]:l[a]:m()||!e.k?a.value:l[e.k];if(o)he(b)&&_t(b,s);else if(he(b))b.includes(s)||b.push(s);else if(g)l[a]=[s],h(a)&&(f[a]=l[a]);else{const w=[s];m(a,e.k)&&(a.value=w),e.k&&(l[e.k]=w)}}else g?(l[a]=i,h(a)&&(f[a]=i)):k&&(m(a,e.k)&&(a.value=i),e.k&&(l[e.k]=i))};if(i){const b=()=>{y(),Gr.delete(e)};b.id=-1,Gr.set(e,b),tt(b,n)}else Ea(e),y()}}}function Ea(e){const t=Gr.get(e);t&&(t.flags|=8,Gr.delete(e))}qr().requestIdleCallback,qr().cancelIdleCallback;const qn=e=>!!e.type.__asyncLoader,Qr=e=>e.type.__isKeepAlive;function Rd(e,t){Ia(e,"a",t)}function qd(e,t){Ia(e,"da",t)}function Ia(e,t,n=ct){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Zr(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Qr(o.parent.vnode)&&Fd(r,t,n,o),o=o.parent}}function Fd(e,t,n,r){const o=Zr(t,e,r,!0);Ut(()=>{_t(r[t],o)},n)}function Zr(e,t,n=ct,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{Tt();const c=mr(n),a=Ct(t,n,e,i);return c(),Et(),a});return r?o.unshift(s):o.push(s),s}}const jt=e=>(t,n=ct)=>{(!vr||e==="sp")&&Zr(e,(...r)=>t(...r),n)},Ld=jt("bm"),ut=jt("m"),Aa=jt("bu"),Da=jt("u"),bn=jt("bum"),Ut=jt("um"),Nd=jt("sp"),Od=jt("rtg"),zd=jt("rtc");function Bd(e,t=ct){Zr("ec",e,t)}const Vd=Symbol.for("v-ndc");function $e(e,t,n,r){let o;const s=n,i=he(e);if(i||He(e)){const c=i&&dn(e);let a=!1,u=!1;c&&(a=!vt(e),u=Ht(e),e=Fr(e)),o=new Array(e.length);for(let l=0,f=e.length;l<f;l++)o[l]=t(a?u?An(xt(e[l])):xt(e[l]):e[l],l,void 0,s)}else if(typeof e=="number"){o=new Array(e);for(let c=0;c<e;c++)o[c]=t(c+1,c,void 0,s)}else if(Me(e))if(e[Symbol.iterator])o=Array.from(e,(c,a)=>t(c,a,void 0,s));else{const c=Object.keys(e);o=new Array(c.length);for(let a=0,u=c.length;a<u;a++){const l=c[a];o[a]=t(e[l],l,a,s)}}else o=[];return o}function yn(e,t,n={},r,o){if(et.ce||et.parent&&qn(et.parent)&&et.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),R(),ge(we,null,[ce("slot",n,r&&r())],u?-2:64)}let s=e[t];s&&s._c&&(s._d=!1),R();const i=s&&Ma(s(n)),c=n.key||i&&i.key,a=ge(we,{key:(c&&!St(c)?c:`_${t}`)+(!i&&r?"_fb":"")},i||(r?r():[]),i&&e._===1?64:-2);return s&&s._c&&(s._d=!0),a}function Ma(e){return e.some(t=>gr(t)?!(t.type===nt||t.type===we&&!Ma(t.children)):!0)?e:null}const ds=e=>e?sl(e)?oo(e):ds(e.parent):null,ur=Be(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ds(e.parent),$root:e=>ds(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Fa(e),$forceUpdate:e=>e.f||(e.f=()=>{cs(e.update)}),$nextTick:e=>e.n||(e.n=At.bind(e.proxy)),$watch:e=>Ad.bind(e)}),ps=(e,t)=>e!==de&&!e.__isScriptSetup&&De(e,t),Hd={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:s,accessCache:i,type:c,appContext:a}=e;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(ps(r,t))return i[t]=1,r[t];if(o!==de&&De(o,t))return i[t]=2,o[t];if(De(s,t))return i[t]=3,s[t];if(n!==de&&De(n,t))return i[t]=4,n[t];gs&&(i[t]=0)}}const u=ur[t];let l,f;if(u)return t==="$attrs"&&Xe(e.attrs,"get",""),u(e);if((l=c.__cssModules)&&(l=l[t]))return l;if(n!==de&&De(n,t))return i[t]=4,n[t];if(f=a.config.globalProperties,De(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return ps(o,t)?(o[t]=n,!0):r!==de&&De(r,t)?(r[t]=n,!0):De(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,props:s,type:i}},c){let a;return!!(n[c]||e!==de&&c[0]!=="$"&&De(e,c)||ps(t,c)||De(s,c)||De(r,c)||De(ur,c)||De(o.config.globalProperties,c)||(a=i.__cssModules)&&a[c])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:De(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Pa(e){return he(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let gs=!0;function $d(e){const t=Fa(e),n=e.proxy,r=e.ctx;gs=!1,t.beforeCreate&&Ra(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:i,watch:c,provide:a,inject:u,created:l,beforeMount:f,mounted:p,beforeUpdate:h,updated:m,activated:g,deactivated:k,beforeDestroy:y,beforeUnmount:b,destroyed:w,unmounted:v,render:x,renderTracked:E,renderTriggered:F,errorCaptured:C,serverPrefetch:D,expose:M,inheritAttrs:N,components:L,directives:ae,filters:z}=t;if(u&&jd(u,r,null),i)for(const se in i){const le=i[se];pe(le)&&(r[se]=le.bind(n))}if(o){const se=o.call(n,n);Me(se)&&(e.data=zr(se))}if(gs=!0,s)for(const se in s){const le=s[se],_e=pe(le)?le.bind(n,n):pe(le.get)?le.get.bind(n,n):ht,me=!pe(le)&&pe(le.set)?le.set.bind(n):ht,ke=J({get:_e,set:me});Object.defineProperty(r,se,{enumerable:!0,configurable:!0,get:()=>ke.value,set:Ce=>ke.value=Ce})}if(c)for(const se in c)qa(c[se],r,n,se);if(a){const se=pe(a)?a.call(n):a;Reflect.ownKeys(se).forEach(le=>{Td(le,se[le])})}l&&Ra(l,e,"c");function oe(se,le){he(le)?le.forEach(_e=>se(_e.bind(n))):le&&se(le.bind(n))}if(oe(Ld,f),oe(ut,p),oe(Aa,h),oe(Da,m),oe(Rd,g),oe(qd,k),oe(Bd,C),oe(zd,E),oe(Od,F),oe(bn,b),oe(Ut,v),oe(Nd,D),he(M))if(M.length){const se=e.exposed||(e.exposed={});M.forEach(le=>{Object.defineProperty(se,le,{get:()=>n[le],set:_e=>n[le]=_e,enumerable:!0})})}else e.exposed||(e.exposed={});x&&e.render===ht&&(e.render=x),N!=null&&(e.inheritAttrs=N),L&&(e.components=L),ae&&(e.directives=ae),D&&Ca(e)}function jd(e,t,n=ht){he(e)&&(e=ms(e));for(const r in e){const o=e[r];let s;Me(o)?"default"in o?s=Rn(o.from||r,o.default,!0):s=Rn(o.from||r):s=Rn(o),Ze(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[r]=s}}function Ra(e,t,n){Ct(he(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function qa(e,t,n,r){let o=r.includes(".")?ha(n,r):()=>n[r];if(He(e)){const s=t[e];pe(s)&&je(o,s)}else if(pe(e))je(o,e.bind(n));else if(Me(e))if(he(e))e.forEach(s=>qa(s,t,n,r));else{const s=pe(e.handler)?e.handler.bind(n):t[e.handler];pe(s)&&je(o,s,e)}}function Fa(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,c=s.get(t);let a;return c?a=c:!o.length&&!n&&!r?a=t:(a={},o.length&&o.forEach(u=>Yr(a,u,i,!0)),Yr(a,t,i)),Me(t)&&s.set(t,a),a}function Yr(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&Yr(e,s,n,!0),o&&o.forEach(i=>Yr(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const c=Ud[i]||n&&n[i];e[i]=c?c(e[i],t[i]):t[i]}return e}const Ud={data:La,props:Na,emits:Na,methods:fr,computed:fr,beforeCreate:it,created:it,beforeMount:it,mounted:it,beforeUpdate:it,updated:it,beforeDestroy:it,beforeUnmount:it,destroyed:it,unmounted:it,activated:it,deactivated:it,errorCaptured:it,serverPrefetch:it,components:fr,directives:fr,watch:Kd,provide:La,inject:Wd};function La(e,t){return t?e?function(){return Be(pe(e)?e.call(this,this):e,pe(t)?t.call(this,this):t)}:t:e}function Wd(e,t){return fr(ms(e),ms(t))}function ms(e){if(he(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function it(e,t){return e?[...new Set([].concat(e,t))]:t}function fr(e,t){return e?Be(Object.create(null),e,t):t}function Na(e,t){return e?he(e)&&he(t)?[...new Set([...e,...t])]:Be(Object.create(null),Pa(e),Pa(t!=null?t:{})):t}function Kd(e,t){if(!e)return t;if(!t)return e;const n=Be(Object.create(null),e);for(const r in t)n[r]=it(e[r],t[r]);return n}function Oa(){return{app:null,config:{isNativeTag:Gn,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 Gd=0;function Qd(e,t){return function(r,o=null){pe(r)||(r=Be({},r)),o!=null&&!Me(o)&&(o=null);const s=Oa(),i=new WeakSet,c=[];let a=!1;const u=s.app={_uid:Gd++,_component:r,_props:o,_container:null,_context:s,_instance:null,version:Dp,get config(){return s.config},set config(l){},use(l,...f){return i.has(l)||(l&&pe(l.install)?(i.add(l),l.install(u,...f)):pe(l)&&(i.add(l),l(u,...f))),u},mixin(l){return s.mixins.includes(l)||s.mixins.push(l),u},component(l,f){return f?(s.components[l]=f,u):s.components[l]},directive(l,f){return f?(s.directives[l]=f,u):s.directives[l]},mount(l,f,p){if(!a){const h=u._ceVNode||ce(r,o);return h.appContext=s,p===!0?p="svg":p===!1&&(p=void 0),e(h,l,p),a=!0,u._container=l,l.__vue_app__=u,oo(h.component)}},onUnmount(l){c.push(l)},unmount(){a&&(Ct(c,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(l,f){return s.provides[l]=f,u},runWithContext(l){const f=Fn;Fn=u;try{return l()}finally{Fn=f}}};return u}}let Fn=null;const Zd=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${nn(t)}Modifiers`]||e[`${fn(t)}Modifiers`];function Yd(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||de;let o=n;const s=t.startsWith("update:"),i=s&&Zd(r,t.slice(7));i&&(i.trim&&(o=n.map(l=>He(l)?l.trim():l)),i.number&&(o=n.map(jo)));let c,a=r[c=$o(t)]||r[c=$o(nn(t))];!a&&s&&(a=r[c=$o(fn(t))]),a&&Ct(a,e,6,o);const u=r[c+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Ct(u,e,6,o)}}const Jd=new WeakMap;function za(e,t,n=!1){const r=n?Jd:t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let i={},c=!1;if(!pe(e)){const a=u=>{const l=za(u,t,!0);l&&(c=!0,Be(i,l))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!s&&!c?(Me(e)&&r.set(e,null),null):(he(s)?s.forEach(a=>i[a]=null):Be(i,s),Me(e)&&r.set(e,i),i)}function Jr(e,t){return!e||!Tn(t)?!1:(t=t.slice(2).replace(/Once$/,""),De(e,t[0].toLowerCase()+t.slice(1))||De(e,fn(t))||De(e,t))}function r1(){}function Ba(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[s],slots:i,attrs:c,emit:a,render:u,renderCache:l,props:f,data:p,setupState:h,ctx:m,inheritAttrs:g}=e,k=Ur(e);let y,b;try{if(n.shapeFlag&4){const v=o||r,x=v;y=Mt(u.call(x,v,l,f,h,p,m)),b=c}else{const v=t;y=Mt(v.length>1?v(f,{attrs:c,slots:i,emit:a}):v(f,null)),b=t.props?c:Xd(c)}}catch(v){dr.length=0,$r(v,e,1),y=ce(nt)}let w=y;if(b&&g!==!1){const v=Object.keys(b),{shapeFlag:x}=w;v.length&&x&7&&(s&&v.some(Qn)&&(b=ep(b,s)),w=cn(w,b,!1,!0))}return n.dirs&&(w=cn(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&vn(w,n.transition),y=w,Ur(k),y}const Xd=e=>{let t;for(const n in e)(n==="class"||n==="style"||Tn(n))&&((t||(t={}))[n]=e[n]);return t},ep=(e,t)=>{const n={};for(const r in e)(!Qn(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function tp(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:c,patchFlag:a}=t,u=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?Va(r,i,u):!!i;if(a&8){const l=t.dynamicProps;for(let f=0;f<l.length;f++){const p=l[f];if(Ha(i,r,p)&&!Jr(u,p))return!0}}}else return(o||c)&&(!c||!c.$stable)?!0:r===i?!1:r?i?Va(r,i,u):!0:!!i;return!1}function Va(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const s=r[o];if(Ha(t,e,s)&&!Jr(n,s))return!0}return!1}function Ha(e,t,n){const r=e[n],o=t[n];return n==="style"&&Me(r)&&Me(o)?!Uo(r,o):r!==o}function np({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const $a={},ja=()=>Object.create($a),Ua=e=>Object.getPrototypeOf(e)===$a;function rp(e,t,n,r=!1){const o={},s=ja();e.propsDefaults=Object.create(null),Wa(e,t,o,s);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=r?o:fd(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function op(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,c=Se(o),[a]=e.propsOptions;let u=!1;if((r||i>0)&&!(i&16)){if(i&8){const l=e.vnode.dynamicProps;for(let f=0;f<l.length;f++){let p=l[f];if(Jr(e.emitsOptions,p))continue;const h=t[p];if(a)if(De(s,p))h!==s[p]&&(s[p]=h,u=!0);else{const m=nn(p);o[m]=vs(a,c,m,h,e,!1)}else h!==s[p]&&(s[p]=h,u=!0)}}}else{Wa(e,t,o,s)&&(u=!0);let l;for(const f in c)(!t||!De(t,f)&&((l=fn(f))===f||!De(t,l)))&&(a?n&&(n[f]!==void 0||n[l]!==void 0)&&(o[f]=vs(a,c,f,void 0,e,!0)):delete o[f]);if(s!==c)for(const f in s)(!t||!De(t,f))&&(delete s[f],u=!0)}u&&Bt(e.attrs,"set","")}function Wa(e,t,n,r){const[o,s]=e.propsOptions;let i=!1,c;if(t)for(let a in t){if(Jn(a))continue;const u=t[a];let l;o&&De(o,l=nn(a))?!s||!s.includes(l)?n[l]=u:(c||(c={}))[l]=u:Jr(e.emitsOptions,a)||(!(a in r)||u!==r[a])&&(r[a]=u,i=!0)}if(s){const a=Se(n),u=c||de;for(let l=0;l<s.length;l++){const f=s[l];n[f]=vs(o,a,f,u[f],e,!De(u,f))}}return i}function vs(e,t,n,r,o,s){const i=e[n];if(i!=null){const c=De(i,"default");if(c&&r===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&pe(a)){const{propsDefaults:u}=o;if(n in u)r=u[n];else{const l=mr(o);r=u[n]=a.call(null,t),l()}}else r=a;o.ce&&o.ce._setProp(n,r)}i[0]&&(s&&!c?r=!1:i[1]&&(r===""||r===fn(n))&&(r=!0))}return r}const sp=new WeakMap;function Ka(e,t,n=!1){const r=n?sp:t.propsCache,o=r.get(e);if(o)return o;const s=e.props,i={},c=[];let a=!1;if(!pe(e)){const l=f=>{a=!0;const[p,h]=Ka(f,t,!0);Be(i,p),h&&c.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}if(!s&&!a)return Me(e)&&r.set(e,ze),ze;if(he(s))for(let l=0;l<s.length;l++){const f=nn(s[l]);Ga(f)&&(i[f]=de)}else if(s)for(const l in s){const f=nn(l);if(Ga(f)){const p=s[l],h=i[f]=he(p)||pe(p)?{type:p}:Be({},p),m=h.type;let g=!1,k=!0;if(he(m))for(let y=0;y<m.length;++y){const b=m[y],w=pe(b)&&b.name;if(w==="Boolean"){g=!0;break}else w==="String"&&(k=!1)}else g=pe(m)&&m.name==="Boolean";h[0]=g,h[1]=k,(g||De(h,"default"))&&c.push(f)}}const u=[i,c];return Me(e)&&r.set(e,u),u}function Ga(e){return e[0]!=="$"&&!Jn(e)}const bs=e=>e==="_"||e==="_ctx"||e==="$stable",ys=e=>he(e)?e.map(Mt):[Mt(e)],ip=(e,t,n)=>{if(t._n)return t;const r=We((...o)=>ys(t(...o)),n);return r._c=!1,r},Qa=(e,t,n)=>{const r=e._ctx;for(const o in e){if(bs(o))continue;const s=e[o];if(pe(s))t[o]=ip(o,s,r);else if(s!=null){const i=ys(s);t[o]=()=>i}}},Za=(e,t)=>{const n=ys(t);e.slots.default=()=>n},Ya=(e,t,n)=>{for(const r in t)(n||!bs(r))&&(e[r]=t[r])},cp=(e,t,n)=>{const r=e.slots=ja();if(e.vnode.shapeFlag&32){const o=t._;o?(Ya(r,t,n),n&&Rc(r,"_",o,!0)):Qa(t,r)}else t&&Za(e,t)},ap=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,i=de;if(r.shapeFlag&32){const c=t._;c?n&&c===1?s=!1:Ya(o,t,n):(s=!t.$stable,Qa(t,o)),i=t}else t&&(Za(e,t),i={default:1});if(s)for(const c in o)!bs(c)&&i[c]==null&&delete o[c]},tt=dp;function lp(e){return up(e)}function up(e,t){const n=qr();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:i,createText:c,createComment:a,setText:u,setElementText:l,parentNode:f,nextSibling:p,setScopeId:h=ht,insertStaticContent:m}=e,g=(_,T,q,j=null,H=null,O=null,te=void 0,Z=null,G=!!T.dynamicChildren)=>{if(_===T)return;_&&!_n(_,T)&&(j=ee(_),Ce(_,H,O,!0),_=null),T.patchFlag===-2&&(G=!1,T.dynamicChildren=null);const{type:U,ref:ne,shapeFlag:$}=T;switch(U){case Xr:k(_,T,q,j);break;case nt:y(_,T,q,j);break;case hr:_==null&&b(T,q,j,te);break;case we:L(_,T,q,j,H,O,te,Z,G);break;default:$&1?x(_,T,q,j,H,O,te,Z,G):$&6?ae(_,T,q,j,H,O,te,Z,G):($&64||$&128)&&U.process(_,T,q,j,H,O,te,Z,G,K)}ne!=null&&H?lr(ne,_&&_.ref,O,T||_,!T):ne==null&&_&&_.ref!=null&&lr(_.ref,null,O,_,!0)},k=(_,T,q,j)=>{if(_==null)r(T.el=c(T.children),q,j);else{const H=T.el=_.el;T.children!==_.children&&u(H,T.children)}},y=(_,T,q,j)=>{_==null?r(T.el=a(T.children||""),q,j):T.el=_.el},b=(_,T,q,j)=>{[_.el,_.anchor]=m(_.children,T,q,j,_.el,_.anchor)},w=({el:_,anchor:T},q,j)=>{let H;for(;_&&_!==T;)H=p(_),r(_,q,j),_=H;r(T,q,j)},v=({el:_,anchor:T})=>{let q;for(;_&&_!==T;)q=p(_),o(_),_=q;o(T)},x=(_,T,q,j,H,O,te,Z,G)=>{if(T.type==="svg"?te="svg":T.type==="math"&&(te="mathml"),_==null)E(T,q,j,H,O,te,Z,G);else{const U=_.el&&_.el._isVueCE?_.el:null;try{U&&U._beginPatch(),D(_,T,H,O,te,Z,G)}finally{U&&U._endPatch()}}},E=(_,T,q,j,H,O,te,Z)=>{let G,U;const{props:ne,shapeFlag:$,transition:X,dirs:fe}=_;if(G=_.el=i(_.type,O,ne&&ne.is,ne),$&8?l(G,_.children):$&16&&C(_.children,G,null,j,H,ws(_,O),te,Z),fe&&mn(_,null,j,"created"),F(G,_,_.scopeId,te,j),ne){for(const qe in ne)qe!=="value"&&!Jn(qe)&&s(G,qe,null,ne[qe],O,j);"value"in ne&&s(G,"value",null,ne.value,O),(U=ne.onVnodeBeforeMount)&&Pt(U,j,_)}fe&&mn(_,null,j,"beforeMount");const ve=fp(H,X);ve&&X.beforeEnter(G),r(G,T,q),((U=ne&&ne.onVnodeMounted)||ve||fe)&&tt(()=>{U&&Pt(U,j,_),ve&&X.enter(G),fe&&mn(_,null,j,"mounted")},H)},F=(_,T,q,j,H)=>{if(q&&h(_,q),j)for(let O=0;O<j.length;O++)h(_,j[O]);if(H){let O=H.subTree;if(T===O||tl(O.type)&&(O.ssContent===T||O.ssFallback===T)){const te=H.vnode;F(_,te,te.scopeId,te.slotScopeIds,H.parent)}}},C=(_,T,q,j,H,O,te,Z,G=0)=>{for(let U=G;U<_.length;U++){const ne=_[U]=Z?Kt(_[U]):Mt(_[U]);g(null,ne,T,q,j,H,O,te,Z)}},D=(_,T,q,j,H,O,te)=>{const Z=T.el=_.el;let{patchFlag:G,dynamicChildren:U,dirs:ne}=T;G|=_.patchFlag&16;const $=_.props||de,X=T.props||de;let fe;if(q&&wn(q,!1),(fe=X.onVnodeBeforeUpdate)&&Pt(fe,q,T,_),ne&&mn(T,_,q,"beforeUpdate"),q&&wn(q,!0),($.innerHTML&&X.innerHTML==null||$.textContent&&X.textContent==null)&&l(Z,""),U?M(_.dynamicChildren,U,Z,q,j,ws(T,H),O):te||le(_,T,Z,null,q,j,ws(T,H),O,!1),G>0){if(G&16)N(Z,$,X,q,H);else if(G&2&&$.class!==X.class&&s(Z,"class",null,X.class,H),G&4&&s(Z,"style",$.style,X.style,H),G&8){const ve=T.dynamicProps;for(let qe=0;qe<ve.length;qe++){const Ae=ve[qe],ot=$[Ae],ft=X[Ae];(ft!==ot||Ae==="value")&&s(Z,Ae,ot,ft,H,q)}}G&1&&_.children!==T.children&&l(Z,T.children)}else!te&&U==null&&N(Z,$,X,q,H);((fe=X.onVnodeUpdated)||ne)&&tt(()=>{fe&&Pt(fe,q,T,_),ne&&mn(T,_,q,"updated")},j)},M=(_,T,q,j,H,O,te)=>{for(let Z=0;Z<T.length;Z++){const G=_[Z],U=T[Z],ne=G.el&&(G.type===we||!_n(G,U)||G.shapeFlag&198)?f(G.el):q;g(G,U,ne,null,j,H,O,te,!0)}},N=(_,T,q,j,H)=>{if(T!==q){if(T!==de)for(const O in T)!Jn(O)&&!(O in q)&&s(_,O,T[O],null,H,j);for(const O in q){if(Jn(O))continue;const te=q[O],Z=T[O];te!==Z&&O!=="value"&&s(_,O,Z,te,H,j)}"value"in q&&s(_,"value",T.value,q.value,H)}},L=(_,T,q,j,H,O,te,Z,G)=>{const U=T.el=_?_.el:c(""),ne=T.anchor=_?_.anchor:c("");let{patchFlag:$,dynamicChildren:X,slotScopeIds:fe}=T;fe&&(Z=Z?Z.concat(fe):fe),_==null?(r(U,q,j),r(ne,q,j),C(T.children||[],q,ne,H,O,te,Z,G)):$>0&&$&64&&X&&_.dynamicChildren&&_.dynamicChildren.length===X.length?(M(_.dynamicChildren,X,q,H,O,te,Z),(T.key!=null||H&&T===H.subTree)&&_s(_,T,!0)):le(_,T,q,ne,H,O,te,Z,G)},ae=(_,T,q,j,H,O,te,Z,G)=>{T.slotScopeIds=Z,_==null?T.shapeFlag&512?H.ctx.activate(T,q,j,te,G):z(T,q,j,H,O,te,G):re(_,T,G)},z=(_,T,q,j,H,O,te)=>{const Z=_.component=_p(_,j,H);if(Qr(_)&&(Z.ctx.renderer=K),Sp(Z,!1,te),Z.asyncDep){if(H&&H.registerDep(Z,oe,te),!_.el){const G=Z.subTree=ce(nt);y(null,G,T,q),_.placeholder=G.el}}else oe(Z,_,T,q,H,O,te)},re=(_,T,q)=>{const j=T.component=_.component;if(tp(_,T,q))if(j.asyncDep&&!j.asyncResolved){se(j,T,q);return}else j.next=T,j.update();else T.el=_.el,j.vnode=T},oe=(_,T,q,j,H,O,te)=>{const Z=()=>{if(_.isMounted){let{next:$,bu:X,u:fe,parent:ve,vnode:qe}=_;{const Ot=Ja(_);if(Ot){$&&($.el=qe.el,se(_,$,te)),Ot.asyncDep.then(()=>{tt(()=>{_.isUnmounted||U()},H)});return}}let Ae=$,ot;wn(_,!1),$?($.el=qe.el,se(_,$,te)):$=qe,X&&Rr(X),(ot=$.props&&$.props.onVnodeBeforeUpdate)&&Pt(ot,ve,$,qe),wn(_,!0);const ft=Ba(_),Nt=_.subTree;_.subTree=ft,g(Nt,ft,f(Nt.el),ee(Nt),_,H,O),$.el=ft.el,Ae===null&&np(_,ft.el),fe&&tt(fe,H),(ot=$.props&&$.props.onVnodeUpdated)&&tt(()=>Pt(ot,ve,$,qe),H)}else{let $;const{el:X,props:fe}=T,{bm:ve,m:qe,parent:Ae,root:ot,type:ft}=_,Nt=qn(T);wn(_,!1),ve&&Rr(ve),!Nt&&($=fe&&fe.onVnodeBeforeMount)&&Pt($,Ae,T),wn(_,!0);{ot.ce&&ot.ce._hasShadowRoot()&&ot.ce._injectChildStyle(ft);const Ot=_.subTree=Ba(_);g(null,Ot,q,j,_,H,O),T.el=Ot.el}if(qe&&tt(qe,H),!Nt&&($=fe&&fe.onVnodeMounted)){const Ot=T;tt(()=>Pt($,Ae,Ot),H)}(T.shapeFlag&256||Ae&&qn(Ae.vnode)&&Ae.vnode.shapeFlag&256)&&_.a&&tt(_.a,H),_.isMounted=!0,T=q=j=null}};_.scope.on();const G=_.effect=new Oc(Z);_.scope.off();const U=_.update=G.run.bind(G),ne=_.job=G.runIfDirty.bind(G);ne.i=_,ne.id=_.uid,G.scheduler=()=>cs(ne),wn(_,!0),U()},se=(_,T,q)=>{T.component=_;const j=_.vnode.props;_.vnode=T,_.next=null,op(_,T.props,j,q),ap(_,T.children,q),Tt(),ca(_),Et()},le=(_,T,q,j,H,O,te,Z,G=!1)=>{const U=_&&_.children,ne=_?_.shapeFlag:0,$=T.children,{patchFlag:X,shapeFlag:fe}=T;if(X>0){if(X&128){me(U,$,q,j,H,O,te,Z,G);return}else if(X&256){_e(U,$,q,j,H,O,te,Z,G);return}}fe&8?(ne&16&&Ge(U,H,O),$!==U&&l(q,$)):ne&16?fe&16?me(U,$,q,j,H,O,te,Z,G):Ge(U,H,O,!0):(ne&8&&l(q,""),fe&16&&C($,q,j,H,O,te,Z,G))},_e=(_,T,q,j,H,O,te,Z,G)=>{_=_||ze,T=T||ze;const U=_.length,ne=T.length,$=Math.min(U,ne);let X;for(X=0;X<$;X++){const fe=T[X]=G?Kt(T[X]):Mt(T[X]);g(_[X],fe,q,null,H,O,te,Z,G)}U>ne?Ge(_,H,O,!0,!1,$):C(T,q,j,H,O,te,Z,G,$)},me=(_,T,q,j,H,O,te,Z,G)=>{let U=0;const ne=T.length;let $=_.length-1,X=ne-1;for(;U<=$&&U<=X;){const fe=_[U],ve=T[U]=G?Kt(T[U]):Mt(T[U]);if(_n(fe,ve))g(fe,ve,q,null,H,O,te,Z,G);else break;U++}for(;U<=$&&U<=X;){const fe=_[$],ve=T[X]=G?Kt(T[X]):Mt(T[X]);if(_n(fe,ve))g(fe,ve,q,null,H,O,te,Z,G);else break;$--,X--}if(U>$){if(U<=X){const fe=X+1,ve=fe<ne?T[fe].el:j;for(;U<=X;)g(null,T[U]=G?Kt(T[U]):Mt(T[U]),q,ve,H,O,te,Z,G),U++}}else if(U>X)for(;U<=$;)Ce(_[U],H,O,!0),U++;else{const fe=U,ve=U,qe=new Map;for(U=ve;U<=X;U++){const mt=T[U]=G?Kt(T[U]):Mt(T[U]);mt.key!=null&&qe.set(mt.key,U)}let Ae,ot=0;const ft=X-ve+1;let Nt=!1,Ot=0;const Mr=new Array(ft);for(U=0;U<ft;U++)Mr[U]=0;for(U=fe;U<=$;U++){const mt=_[U];if(ot>=ft){Ce(mt,H,O,!0);continue}let zt;if(mt.key!=null)zt=qe.get(mt.key);else for(Ae=ve;Ae<=X;Ae++)if(Mr[Ae-ve]===0&&_n(mt,T[Ae])){zt=Ae;break}zt===void 0?Ce(mt,H,O,!0):(Mr[zt-ve]=U+1,zt>=Ot?Ot=zt:Nt=!0,g(mt,T[zt],q,null,H,O,te,Z,G),ot++)}const Dh=Nt?hp(Mr):ze;for(Ae=Dh.length-1,U=ft-1;U>=0;U--){const mt=ve+U,zt=T[mt],Mh=T[mt+1],Ph=mt+1<ne?Mh.el||el(Mh):j;Mr[U]===0?g(null,zt,q,Ph,H,O,te,Z,G):Nt&&(Ae<0||U!==Dh[Ae]?ke(zt,q,Ph,2):Ae--)}}},ke=(_,T,q,j,H=null)=>{const{el:O,type:te,transition:Z,children:G,shapeFlag:U}=_;if(U&6){ke(_.component.subTree,T,q,j);return}if(U&128){_.suspense.move(T,q,j);return}if(U&64){te.move(_,T,q,K);return}if(te===we){r(O,T,q);for(let $=0;$<G.length;$++)ke(G[$],T,q,j);r(_.anchor,T,q);return}if(te===hr){w(_,T,q);return}if(j!==2&&U&1&&Z)if(j===0)Z.beforeEnter(O),r(O,T,q),tt(()=>Z.enter(O),H);else{const{leave:$,delayLeave:X,afterLeave:fe}=Z,ve=()=>{_.ctx.isUnmounted?o(O):r(O,T,q)},qe=()=>{O._isLeaving&&O[Dt](!0),$(O,()=>{ve(),fe&&fe()})};X?X(O,ve,qe):qe()}else r(O,T,q)},Ce=(_,T,q,j=!1,H=!1)=>{const{type:O,props:te,ref:Z,children:G,dynamicChildren:U,shapeFlag:ne,patchFlag:$,dirs:X,cacheIndex:fe}=_;if($===-2&&(H=!1),Z!=null&&(Tt(),lr(Z,null,q,_,!0),Et()),fe!=null&&(T.renderCache[fe]=void 0),ne&256){T.ctx.deactivate(_);return}const ve=ne&1&&X,qe=!qn(_);let Ae;if(qe&&(Ae=te&&te.onVnodeBeforeUnmount)&&Pt(Ae,T,_),ne&6)Ve(_.component,q,j);else{if(ne&128){_.suspense.unmount(q,j);return}ve&&mn(_,null,T,"beforeUnmount"),ne&64?_.type.remove(_,T,q,K,j):U&&!U.hasOnce&&(O!==we||$>0&&$&64)?Ge(U,T,q,!1,!0):(O===we&&$&384||!H&&ne&16)&&Ge(G,T,q),j&&Ie(_)}(qe&&(Ae=te&&te.onVnodeUnmounted)||ve)&&tt(()=>{Ae&&Pt(Ae,T,_),ve&&mn(_,null,T,"unmounted")},q)},Ie=_=>{const{type:T,el:q,anchor:j,transition:H}=_;if(T===we){Ue(q,j);return}if(T===hr){v(_);return}const O=()=>{o(q),H&&!H.persisted&&H.afterLeave&&H.afterLeave()};if(_.shapeFlag&1&&H&&!H.persisted){const{leave:te,delayLeave:Z}=H,G=()=>te(q,O);Z?Z(_.el,O,G):G()}else O()},Ue=(_,T)=>{let q;for(;_!==T;)q=p(_),o(_),_=q;o(T)},Ve=(_,T,q)=>{const{bum:j,scope:H,job:O,subTree:te,um:Z,m:G,a:U}=_;Xa(G),Xa(U),j&&Rr(j),H.stop(),O&&(O.flags|=8,Ce(te,_,T,q)),Z&&tt(Z,T),tt(()=>{_.isUnmounted=!0},T)},Ge=(_,T,q,j=!1,H=!1,O=0)=>{for(let te=O;te<_.length;te++)Ce(_[te],T,q,j,H)},ee=_=>{if(_.shapeFlag&6)return ee(_.component.subTree);if(_.shapeFlag&128)return _.suspense.next();const T=p(_.anchor||_.el),q=T&&T[da];return q?p(q):T};let P=!1;const A=(_,T,q)=>{let j;_==null?T._vnode&&(Ce(T._vnode,null,null,!0),j=T._vnode.component):g(T._vnode||null,_,T,null,null,null,q),T._vnode=_,P||(P=!0,ca(j),aa(),P=!1)},K={p:g,um:Ce,m:ke,r:Ie,mt:z,mc:C,pc:le,pbc:M,n:ee,o:e};return{render:A,hydrate:void 0,createApp:Qd(A)}}function ws({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function wn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function fp(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function _s(e,t,n=!1){const r=e.children,o=t.children;if(he(r)&&he(o))for(let s=0;s<r.length;s++){const i=r[s];let c=o[s];c.shapeFlag&1&&!c.dynamicChildren&&((c.patchFlag<=0||c.patchFlag===32)&&(c=o[s]=Kt(o[s]),c.el=i.el),!n&&c.patchFlag!==-2&&_s(i,c)),c.type===Xr&&(c.patchFlag===-1&&(c=o[s]=Kt(c)),c.el=i.el),c.type===nt&&!c.el&&(c.el=i.el)}}function hp(e){const t=e.slice(),n=[0];let r,o,s,i,c;const a=e.length;for(r=0;r<a;r++){const u=e[r];if(u!==0){if(o=n[n.length-1],e[o]<u){t[r]=o,n.push(r);continue}for(s=0,i=n.length-1;s<i;)c=s+i>>1,e[n[c]]<u?s=c+1:i=c;u<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}function Ja(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ja(t)}function Xa(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function el(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?el(t.subTree):null}const tl=e=>e.__isSuspense;function dp(e,t){t&&t.pendingBranch?he(e)?t.effects.push(...e):t.effects.push(e):ia(e)}const we=Symbol.for("v-fgt"),Xr=Symbol.for("v-txt"),nt=Symbol.for("v-cmt"),hr=Symbol.for("v-stc"),dr=[];let dt=null;function R(e=!1){dr.push(dt=e?null:[])}function pp(){dr.pop(),dt=dr[dr.length-1]||null}let pr=1;function eo(e,t=!1){pr+=e,e<0&&dt&&t&&(dt.hasOnce=!0)}function nl(e){return e.dynamicChildren=pr>0?dt||ze:null,pp(),pr>0&&dt&&dt.push(e),e}function V(e,t,n,r,o,s){return nl(I(e,t,n,r,o,s,!0))}function ge(e,t,n,r,o){return nl(ce(e,t,n,r,o,!0))}function gr(e){return e?e.__v_isVNode===!0:!1}function _n(e,t){return e.type===t.type&&e.key===t.key}const rl=({key:e})=>e!=null?e:null,to=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?He(e)||Ze(e)||pe(e)?{i:et,r:e,k:t,f:!!n}:e:null);function I(e,t=null,n=null,r=0,o=null,s=e===we?0:1,i=!1,c=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&rl(t),ref:t&&to(t),scopeId:ua,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:et};return c?(Ss(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=He(n)?8:16),pr>0&&!i&&dt&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&dt.push(a),a}const ce=gp;function gp(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===Vd)&&(e=nt),gr(e)){const c=cn(e,t,!0);return n&&Ss(c,n),pr>0&&!s&&dt&&(c.shapeFlag&6?dt[dt.indexOf(e)]=c:dt.push(c)),c.patchFlag=-2,c}if(Ap(e)&&(e=e.__vccOpts),t){t=mp(t);let{class:c,style:a}=t;c&&!He(c)&&(t.class=be(c)),Me(a)&&(ss(a)&&!he(a)&&(a=Be({},a)),t.style=Ke(a))}const i=He(e)?1:tl(e)?128:pa(e)?64:Me(e)?4:pe(e)?2:0;return I(e,t,n,r,o,i,s,!0)}function mp(e){return e?ss(e)||Ua(e)?Be({},e):e:null}function cn(e,t,n=!1,r=!1){const{props:o,ref:s,patchFlag:i,children:c,transition:a}=e,u=t?bp(o||{},t):o,l={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&rl(u),ref:t&&t.ref?n&&s?he(s)?s.concat(to(t)):[s,to(t)]:to(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==we?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cn(e.ssContent),ssFallback:e.ssFallback&&cn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&vn(l,a.clone(l)),l}function Wt(e=" ",t=0){return ce(Xr,null,e,t)}function vp(e,t){const n=ce(hr,null,e);return n.staticCount=t,n}function ue(e="",t=!1){return t?(R(),ge(nt,null,e)):ce(nt,null,e)}function Mt(e){return e==null||typeof e=="boolean"?ce(nt):he(e)?ce(we,null,e.slice()):gr(e)?Kt(e):ce(Xr,null,String(e))}function Kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:cn(e)}function Ss(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(he(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),Ss(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Ua(t)?t._ctx=et:o===3&&et&&(et.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else pe(t)?(t={default:t,_ctx:et},n=32):(t=String(t),r&64?(n=16,t=[Wt(t)]):n=8);e.children=t,e.shapeFlag|=n}function bp(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=be([t.class,r.class]));else if(o==="style")t.style=Ke([t.style,r.style]);else if(Tn(o)){const s=t[o],i=r[o];i&&s!==i&&!(he(s)&&s.includes(i))&&(t[o]=s?[].concat(s,i):i)}else o!==""&&(t[o]=r[o])}return t}function Pt(e,t,n,r=null){Ct(e,t,7,[n,r])}const yp=Oa();let wp=0;function _p(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||yp,s={uid:wp++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Uh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ka(r,o),emitsOptions:za(r,o),emit:null,emitted:null,propsDefaults:de,inheritAttrs:r.inheritAttrs,ctx:de,data:de,props:de,attrs:de,slots:de,refs:de,setupState:de,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=Yd.bind(null,s),e.ce&&e.ce(s),s}let ct=null;const no=()=>ct||et;let ro,ks;{const e=qr(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),s=>{o.length>1?o.forEach(i=>i(s)):o[0](s)}};ro=t("__VUE_INSTANCE_SETTERS__",n=>ct=n),ks=t("__VUE_SSR_SETTERS__",n=>vr=n)}const mr=e=>{const t=ct;return ro(e),e.scope.on(),()=>{e.scope.off(),ro(t)}},ol=()=>{ct&&ct.scope.off(),ro(null)};function sl(e){return e.vnode.shapeFlag&4}let vr=!1;function Sp(e,t=!1,n=!1){t&&ks(t);const{props:r,children:o}=e.vnode,s=sl(e);rp(e,r,s,t),cp(e,o,n||t);const i=s?kp(e,t):void 0;return t&&ks(!1),i}function kp(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Hd);const{setup:r}=n;if(r){Tt();const o=e.setupContext=r.length>1?Cp(e):null,s=mr(e),i=Dn(r,e,0,[e.props,o]),c=Ac(i);if(Et(),s(),(c||e.sp)&&!qn(e)&&Ca(e),c){if(i.then(ol,ol),t)return i.then(a=>{il(e,a)}).catch(a=>{$r(a,e,0)});e.asyncDep=i}else il(e,i)}else cl(e)}function il(e,t,n){pe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Me(t)&&(e.setupState=na(t)),cl(e)}function cl(e,t,n){const r=e.type;e.render||(e.render=r.render||ht);{const o=mr(e);Tt();try{$d(e)}finally{Et(),o()}}}const xp={get(e,t){return Xe(e,"get",""),e[t]}};function Cp(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,xp),slots:e.slots,emit:e.emit,expose:t}}function oo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(na(hd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ur)return ur[n](e)},has(t,n){return n in t||n in ur}})):e.proxy}const Tp=/(?:^|[-_])\w/g,Ep=e=>e.replace(Tp,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ip(e,t=!0){return pe(e)?e.displayName||e.name:e.name||t&&e.__name}function al(e,t,n=!1){let r=Ip(t);if(!r&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(r=o[1])}if(!r&&e){const o=s=>{for(const i in s)if(s[i]===t)return i};r=o(e.components)||e.parent&&o(e.parent.type.components)||o(e.appContext.components)}return r?Ep(r):n?"App":"Anonymous"}function Ap(e){return pe(e)&&"__vccOpts"in e}const J=(e,t)=>vd(e,t,vr);function xs(e,t,n){try{eo(-1);const r=arguments.length;return r===2?Me(t)&&!he(t)?gr(t)?ce(e,null,[t]):ce(e,t):ce(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&gr(n)&&(n=[n]),ce(e,t,n))}finally{eo(1)}}const Dp="3.5.28";/**
* @vue/runtime-dom v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Cs;const ll=typeof window!="undefined"&&window.trustedTypes;if(ll)try{Cs=ll.createPolicy("vue",{createHTML:e=>e})}catch(e){}const ul=Cs?e=>Cs.createHTML(e):e=>e,Mp="http://www.w3.org/2000/svg",Pp="http://www.w3.org/1998/Math/MathML",Gt=typeof document!="undefined"?document:null,fl=Gt&&Gt.createElement("template"),Rp={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?Gt.createElementNS(Mp,e):t==="mathml"?Gt.createElementNS(Pp,e):n?Gt.createElement(e,{is:n}):Gt.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Gt.createTextNode(e),createComment:e=>Gt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Gt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{fl.innerHTML=ul(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const c=fl.content;if(r==="svg"||r==="mathml"){const a=c.firstChild;for(;a.firstChild;)c.appendChild(a.firstChild);c.removeChild(a)}t.insertBefore(c,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},an="transition",br="animation",Ln=Symbol("_vtc"),hl={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},dl=Be({},wa,hl),Qt=(e=>(e.displayName="Transition",e.props=dl,e))((e,{slots:t})=>xs(Pd,gl(e),t)),Sn=(e,t=[])=>{he(e)?e.forEach(n=>n(...t)):e&&e(...t)},pl=e=>e?he(e)?e.some(t=>t.length>1):e.length>1:!1;function gl(e){const t={};for(const L in e)L in hl||(t[L]=e[L]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:a=s,appearActiveClass:u=i,appearToClass:l=c,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,m=qp(o),g=m&&m[0],k=m&&m[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:w,onLeave:v,onLeaveCancelled:x,onBeforeAppear:E=y,onAppear:F=b,onAppearCancelled:C=w}=t,D=(L,ae,z,re)=>{L._enterCancelled=re,ln(L,ae?l:c),ln(L,ae?u:i),z&&z()},M=(L,ae)=>{L._isLeaving=!1,ln(L,f),ln(L,h),ln(L,p),ae&&ae()},N=L=>(ae,z)=>{const re=L?F:b,oe=()=>D(ae,L,z);Sn(re,[ae,oe]),ml(()=>{ln(ae,L?a:s),Rt(ae,L?l:c),pl(re)||vl(ae,r,g,oe)})};return Be(t,{onBeforeEnter(L){Sn(y,[L]),Rt(L,s),Rt(L,i)},onBeforeAppear(L){Sn(E,[L]),Rt(L,a),Rt(L,u)},onEnter:N(!1),onAppear:N(!0),onLeave(L,ae){L._isLeaving=!0;const z=()=>M(L,ae);Rt(L,f),L._enterCancelled?(Rt(L,p),Es(L)):(Es(L),Rt(L,p)),ml(()=>{L._isLeaving&&(ln(L,f),Rt(L,h),pl(v)||vl(L,r,k,z))}),Sn(v,[L,z])},onEnterCancelled(L){D(L,!1,void 0,!0),Sn(w,[L])},onAppearCancelled(L){D(L,!0,void 0,!0),Sn(C,[L])},onLeaveCancelled(L){M(L),Sn(x,[L])}})}function qp(e){if(e==null)return null;if(Me(e))return[Ts(e.enter),Ts(e.leave)];{const t=Ts(e);return[t,t]}}function Ts(e){return Nh(e)}function Rt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ln]||(e[Ln]=new Set)).add(t)}function ln(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Ln];n&&(n.delete(t),n.size||(e[Ln]=void 0))}function ml(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Fp=0;function vl(e,t,n,r){const o=e._endId=++Fp,s=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(s,n);const{type:i,timeout:c,propCount:a}=bl(e,t);if(!i)return r();const u=i+"end";let l=0;const f=()=>{e.removeEventListener(u,p),s()},p=h=>{h.target===e&&++l>=a&&f()};setTimeout(()=>{l<a&&f()},c+1),e.addEventListener(u,p)}function bl(e,t){const n=window.getComputedStyle(e),r=m=>(n[m]||"").split(", "),o=r(`${an}Delay`),s=r(`${an}Duration`),i=yl(o,s),c=r(`${br}Delay`),a=r(`${br}Duration`),u=yl(c,a);let l=null,f=0,p=0;t===an?i>0&&(l=an,f=i,p=s.length):t===br?u>0&&(l=br,f=u,p=a.length):(f=Math.max(i,u),l=f>0?i>u?an:br:null,p=l?l===an?s.length:a.length:0);const h=l===an&&/\b(?:transform|all)(?:,|$)/.test(r(`${an}Property`).toString());return{type:l,timeout:f,propCount:p,hasTransform:h}}function yl(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>wl(n)+wl(e[r])))}function wl(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Es(e){return(e?e.ownerDocument:document).body.offsetHeight}function Lp(e,t,n){const r=e[Ln];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const so=Symbol("_vod"),_l=Symbol("_vsh"),Nn={name:"show",beforeMount(e,{value:t},{transition:n}){e[so]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):yr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),yr(e,!0),r.enter(e)):r.leave(e,()=>{yr(e,!1)}):yr(e,t))},beforeUnmount(e,{value:t}){yr(e,t)}};function yr(e,t){e.style.display=t?e[so]:"none",e[_l]=!t}const Sl=Symbol("");function kl(e){const t=no();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>io(s,o))},r=()=>{const o=e(t.proxy);t.ce?io(t.ce,o):Is(t.subTree,o),n(o)};Aa(()=>{ia(r)}),ut(()=>{je(r,ht,{flush:"post"});const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),Ut(()=>o.disconnect())})}function Is(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Is(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)io(e.el,t);else if(e.type===we)e.children.forEach(n=>Is(n,t));else if(e.type===hr){let{el:n,anchor:r}=e;for(;n&&(io(n,t),n!==r);)n=n.nextSibling}}function io(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t){const s=jh(t[o]);n.setProperty(`--${o}`,s),r+=`--${o}: ${s};`}n[Sl]=r}}const Np=/(?:^|;)\s*display\s*:/;function Op(e,t,n){const r=e.style,o=He(n);let s=!1;if(n&&!o){if(t)if(He(t))for(const i of t.split(";")){const c=i.slice(0,i.indexOf(":")).trim();n[c]==null&&co(r,c,"")}else for(const i in t)n[i]==null&&co(r,i,"");for(const i in n)i==="display"&&(s=!0),co(r,i,n[i])}else if(o){if(t!==n){const i=r[Sl];i&&(n+=";"+i),r.cssText=n,s=Np.test(n)}}else t&&e.removeAttribute("style");so in e&&(e[so]=s?r.display:"",e[_l]&&(r.display="none"))}const xl=/\s*!important$/;function co(e,t,n){if(he(n))n.forEach(r=>co(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=zp(e,t);xl.test(n)?e.setProperty(fn(r),n.replace(xl,""),"important"):e[r]=n}}const Cl=["Webkit","Moz","ms"],As={};function zp(e,t){const n=As[t];if(n)return n;let r=nn(t);if(r!=="filter"&&r in e)return As[t]=r;r=Pc(r);for(let o=0;o<Cl.length;o++){const s=Cl[o]+r;if(s in e)return As[t]=s}return t}const Tl="http://www.w3.org/1999/xlink";function El(e,t,n,r,o,s=Hh(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Tl,t.slice(6,t.length)):e.setAttributeNS(Tl,t,n):n==null||s&&!Fc(n)?e.removeAttribute(t):e.setAttribute(t,s?"":St(n)?String(n):n)}function Il(e,t,n,r,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?ul(n):n);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const c=s==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(c!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Fc(n):n==null&&c==="string"?(n="",i=!0):c==="number"&&(n=0,i=!0)}try{e[t]=n}catch(c){}i&&e.removeAttribute(o||t)}function On(e,t,n,r){e.addEventListener(t,n,r)}function Bp(e,t,n,r){e.removeEventListener(t,n,r)}const Al=Symbol("_vei");function Vp(e,t,n,r,o=null){const s=e[Al]||(e[Al]={}),i=s[t];if(r&&i)i.value=r;else{const[c,a]=Hp(t);if(r){const u=s[t]=Up(r,o);On(e,c,u,a)}else i&&(Bp(e,c,i,a),s[t]=void 0)}}const Dl=/(?:Once|Passive|Capture)$/;function Hp(e){let t;if(Dl.test(e)){t={};let r;for(;r=e.match(Dl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):fn(e.slice(2)),t]}let Ds=0;const $p=Promise.resolve(),jp=()=>Ds||($p.then(()=>Ds=0),Ds=Date.now());function Up(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ct(Wp(r,n.value),t,5,[r])};return n.value=e,n.attached=jp(),n}function Wp(e,t){if(he(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const Ml=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Kp=(e,t,n,r,o,s)=>{const i=o==="svg";t==="class"?Lp(e,r,i):t==="style"?Op(e,n,r):Tn(t)?Qn(t)||Vp(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Gp(e,t,r,i))?(Il(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&El(e,t,r,i,s,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!He(r))?Il(e,nn(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),El(e,t,r,i))};function Gp(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ml(t)&&pe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Ml(t)&&He(n)?!1:t in e}const Pl=new WeakMap,Rl=new WeakMap,ao=Symbol("_moveCb"),ql=Symbol("_enterCb"),Fl=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:Be({},dl,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=no(),r=ya();let o,s;return Da(()=>{if(!o.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!Jp(o[0].el,n.vnode.el,i)){o=[];return}o.forEach(Qp),o.forEach(Zp);const c=o.filter(Yp);Es(n.vnode.el),c.forEach(a=>{const u=a.el,l=u.style;Rt(u,i),l.transform=l.webkitTransform=l.transitionDuration="";const f=u[ao]=p=>{p&&p.target!==u||(!p||p.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",f),u[ao]=null,ln(u,i))};u.addEventListener("transitionend",f)}),o=[]}),()=>{const i=Se(e),c=gl(i);let a=i.tag||we;if(o=[],s)for(let u=0;u<s.length;u++){const l=s[u];l.el&&l.el instanceof Element&&(o.push(l),vn(l,ar(l,c,r,n)),Pl.set(l,Ll(l.el)))}s=t.default?hs(t.default()):[];for(let u=0;u<s.length;u++){const l=s[u];l.key!=null&&vn(l,ar(l,c,r,n))}return ce(a,null,s)}}});function Qp(e){const t=e.el;t[ao]&&t[ao](),t[ql]&&t[ql]()}function Zp(e){Rl.set(e,Ll(e.el))}function Yp(e){const t=Pl.get(e),n=Rl.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const s=e.el,i=s.style,c=s.getBoundingClientRect();let a=1,u=1;return s.offsetWidth&&(a=c.width/s.offsetWidth),s.offsetHeight&&(u=c.height/s.offsetHeight),(!Number.isFinite(a)||a===0)&&(a=1),(!Number.isFinite(u)||u===0)&&(u=1),Math.abs(a-1)<.01&&(a=1),Math.abs(u-1)<.01&&(u=1),i.transform=i.webkitTransform=`translate(${r/a}px,${o/u}px)`,i.transitionDuration="0s",e}}function Ll(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function Jp(e,t,n){const r=e.cloneNode(),o=e[Ln];o&&o.forEach(c=>{c.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(c=>c&&r.classList.add(c)),r.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(r);const{hasTransform:i}=bl(r);return s.removeChild(r),i}const Nl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return he(t)?n=>Rr(t,n):t};function Xp(e){e.target.composing=!0}function Ol(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ms=Symbol("_assign");function zl(e,t,n){return t&&(e=e.trim()),n&&(e=jo(e)),e}const eg={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[Ms]=Nl(o);const s=r||o.props&&o.props.type==="number";On(e,t?"change":"input",i=>{i.target.composing||e[Ms](zl(e.value,n,s))}),(n||s)&&On(e,"change",()=>{e.value=zl(e.value,n,s)}),t||(On(e,"compositionstart",Xp),On(e,"compositionend",Ol),On(e,"change",Ol))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:s}},i){if(e[Ms]=Nl(i),e.composing)return;const c=(s||e.type==="number")&&!/^0\d/.test(e.value)?jo(e.value):e.value,a=t==null?"":t;c!==a&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||o&&e.value.trim()===a)||(e.value=a))}},tg=["ctrl","shift","alt","meta"],ng={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>tg.some(n=>e[`${n}Key`]&&!t.includes(n))},Ne=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((o,...s)=>{for(let i=0;i<t.length;i++){const c=ng[t[i]];if(c&&c(o,t))return}return e(o,...s)}))},rg=Be({patchProp:Kp},Rp);let Bl;function og(){return Bl||(Bl=lp(rg))}const sg=((...e)=>{const t=og().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=cg(r);if(!o)return;const s=t._component;!pe(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=n(o,!1,ig(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t});function ig(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function cg(e){return He(e)?document.querySelector(e):e}const Ps={lang:{cn:"CN",en:"EN",jp:"JP"},readingMode:{cn:"阅读模式",en:"Mode",jp:"モード"},readingModeTip:{cn:"设置阅读模式",en:"Change reading mode",jp:"読むモードを変更する"},scrollMode:{cn:"滚动",en:"Scroll",jp:"スクロール"},bookMode:{cn:"书页",en:"Book",jp:"ページ"},widthScale:{cn:"页面比例",en:"Page scale",jp:"ページの割合"},widthScaleTip:{cn:"设置页面比例",en:"Change page scale",jp:"ページの割合を設定"},custom:{cn:"自定义",en:"Custom",jp:"カスタム"},loadNum:{cn:"加载页数",en:"Loading quantity",jp:"積載量"},loadNumTip:{cn:"越大则对网络质量要求越高",en:"The greater quantity, the higher requirement of network quality",jp:"数字が大きいほど、ネットワーク品質の要件が高くなります"},volSize:{cn:"分卷页数",en:"Volume size",jp:"ボリュームサイズ"},volSizeTip:{cn:"设置过大会导致卡顿",en:"If too big, the page will be laggy",jp:"大きすぎると、プログラムは遅くなります"},thumbView:{cn:"缩略图栏",en:"Thumbnail",jp:"サムネイル"},thumbViewTip:{cn:"开启/关闭缩略图栏",en:"Show/hide the column of thumbnail",jp:"サムネイルの列を表示または非表示"},expandThumbs:{cn:"展开",en:"Expand",jp:"展開"},screenSize:{cn:"同屏页数",en:"Pages/screen",jp:"ページ/画面"},screenSizeTip:{cn:"一个屏幕下的页数",en:"The number of pages on the screen",jp:"画面上のページ数"},bookDirection:{cn:"阅读方向",en:"Direction",jp:"読み取り方向"},bookDirectionTip:{cn:"阅读方向",en:"Reading direction",jp:"読み取り方向"},rtl:{cn:"RTL (从右到左)",en:"RTL (Right To Left)",jp:"RTL (右から左に)"},rtlAbbr:{cn:"RTL",en:"RTL",jp:"RTL"},ltr:{cn:"LTR (从左到右)",en:"LTR (Left to Right)",jp:"LTR (左から右へ)"},ltrAbbr:{cn:"LTR",en:"LTR",jp:"LTR"},pagination:{cn:"页目录",en:"Pagination",jp:"ページネーション"},paginationTip:{cn:"显示/隐藏底部悬浮页目录",en:"Show/hide the bottom floating pagination",jp:"ボトムフローティングページネーションの表示/非表示"},bookAnimation:{cn:"换页动画",en:"Sliding animation",jp:"アニメーション"},bookAnimationTip:{cn:"开启/关闭换页时的滑动动画(测试中)",en:"show/hide the sliding animation when changing location(Beta)",jp:"場所を変更するときのスライドアニメーションの表示/非表示(测试中)"},pageTurnAnimation:{cn:"翻页动效",en:"Page turn animation",jp:"ページめくり効果"},pageTurnAnimationTip:{cn:"设置书页模式翻页动效",en:"Set page turn animation for book mode",jp:"ページモードのアニメーションを設定"},pageTurnAnimationRealistic:{cn:"拟真翻页",en:"Realistic",jp:"リアル"},pageTurnAnimationSlide:{cn:"平移翻页",en:"Slide",jp:"スライド"},pageTurnAnimationNone:{cn:"无动效",en:"None",jp:"なし"},reverseFlip:{cn:"反转翻页",en:"Reverse flip",jp:"反転フリップ"},reverseFlipTip:{cn:"反转翻页方向",en:"Reverse page turning direction",jp:"ページめくり方向を逆にする"},autoFlip:{cn:"自动翻页",en:"Auto",jp:"自動ページめくり"},autoFlipTip:{cn:"自动翻页",en:"Automatic page turning",jp:"自動ページめくり"},autoFlipFrequency:{cn:"翻页频率",en:"Frequency",jp:"頻度"},autoFlipFrequencyTip:{cn:"自动翻页的频率",en:"Automatic page turning frequency",jp:"自動ページめくり頻度"},refresh:{cn:"刷新",en:"Refresh",jp:"リフレッシュ"},refreshTip:{cn:"再次获取普通图片",en:"Refresh to load normal image",jp:"リフレッシュ; 通常の画像を読み込みます"},originImg:{cn:"原图",en:"Original",jp:"元画像"},originImgTip:{cn:"加载原图",en:"Load original image",jp:"元画像を読み込む"},refreshByOtherSource:{cn:"换源刷新",en:"Other source",jp:"他のサーバー"},refreshByOtherSourceTip:{cn:"从其他服务器获取普通图片",en:"Load normal image from other server",jp:"他のサーバーから通常の画像を取得する"},loadingImg:{cn:"加载图片中...",en:"Loading image...",jp:"画像を読み込む.."},loadingImgUrl:{cn:"加载图片地址中...",en:"Loading image url..",jp:"画像URLを読み込む.."},reload:{cn:"重载",en:"Reload",jp:"リロード"},loadingImgFailed:{cn:"加载图片失败, 请刷新",en:"Loading failed, please refresh",jp:"読み込みに失敗しました。更新してください"},noOriginalImg:{cn:"无原图, 请刷新",en:"No original Image, please refresh",jp:"オリジナルイメージはありません。リフレッシュしてください"},loadingFailed:{cn:"加载错误",en:"Loading failed",jp:"読み込み失敗"},imgLoaded:{cn:"图片加载完成",en:"Image loaded",jp:"画像が読み込まれた"},waiting:{cn:"等待中..",en:"Waiting..",jp:"待っている.."},fullScreen:{cn:"全屏",en:"Full screen",jp:"全画面表示"},dockLeft:{cn:"停靠左侧",en:"Dock left",jp:"左にドック"},dockRight:{cn:"停靠右侧",en:"Dock right",jp:"右にドック"},dockBottom:{cn:"停靠底部",en:"Dock bottom",jp:"下にドック"},resizePanel:{cn:"调整面板尺寸",en:"Resize panel",jp:"パネルサイズ調整"},closeEHunter:{cn:"关闭eHunter",en:"Close eHunter",jp:"eHunter閉じる"},toggleTopBar:{cn:"显示/隐藏顶栏",en:"Show/hide top bar",jp:"トップバーの表示/非表示"},toggleMoreSettings:{cn:"显示/隐藏更多设置 [Shift]",en:"Show/hide more settings [Shift]",jp:"他の設定を表示/隠す [Shift]"},openMoreSettingsModal:{cn:"更多设置",en:"More settings",jp:"詳細設定"},more:{cn:"更多",en:"More",jp:"もっと"},moreSettings:{cn:"更多设置",en:"More settings",jp:"詳細設定"},quickPreview:{cn:"快速预览",en:"Quick preview",jp:"クイックプレビュー"},download:{cn:"下载",en:"Download",jp:"ダウンロード"},downloadConfirmTitle:{cn:"下载确认",en:"Download confirmation",jp:"ダウンロード確認"},downloadConfirmMessage:{cn:"是否下载该画廊的所有图片?",en:"Download all images from this gallery?",jp:"このギャラリーのすべての画像をダウンロードしますか?"},downloadAuthorizeTip:{cn:"**提示:** 下载时可能会弹出授权提示,仅用于获取图片并打包下载,请放心授权。",en:"**Tip:** You may see an authorization prompt during download. It is only used to fetch images and create the zip package.",jp:"**ヒント:** ダウンロード中に権限確認が表示される場合があります。画像取得とzip作成のためのみ使用されます。"},settingsGeneral:{cn:"通用",en:"General",jp:"一般"},settingsScrollMode:{cn:"滚动模式",en:"Scroll mode",jp:"スクロールモード"},settingsBookMode:{cn:"书页模式",en:"Book mode",jp:"ページモード"},settingsQuick:{cn:"快捷设置",en:"Quick settings",jp:"クイック設定"},settingsShortcuts:{cn:"快捷键",en:"Shortcuts",jp:"ショートカット"},shortcutEditHint:{cn:"点击 + 从固定列表新增快捷键,点击快捷键上的 × 可删除。",en:"Click + to add from fixed options, click × on a shortcut to remove it.",jp:"+で固定リストから追加し、ショートカットの×で削除します。"},shortcutAddPlaceholder:{cn:"选择快捷键",en:"Select key",jp:"キーを選択"},currentShortcut:{cn:"当前",en:"Current",jp:"現在"},shortcutResetLabel:{cn:"恢复默认快捷键",en:"Restore default shortcuts",jp:"デフォルトのショートカットを復元"},shortcutResetAction:{cn:"恢复默认",en:"Reset",jp:"リセット"},shortcutGoPrev:{cn:"上一页",en:"Previous page",jp:"前のページ"},shortcutGoPrevTip:{cn:"滚动模式前进/后退中的后退动作",en:"Move to previous page/segment",jp:"前のページ/セグメントへ移動"},shortcutGoNext:{cn:"下一页",en:"Next page",jp:"次のページ"},shortcutGoNextTip:{cn:"滚动模式前进/后退中的前进动作",en:"Move to next page/segment",jp:"次のページ/セグメントへ移動"},shortcutToggleMoreSettings:{cn:"更多设置开关",en:"Toggle more settings",jp:"詳細設定の表示切替"},shortcutToggleMoreSettingsTip:{cn:"显示或关闭更多设置弹窗",en:"Open/close more settings modal",jp:"詳細設定モーダルを開閉"},shortcutToggleTopBar:{cn:"顶栏开关",en:"Toggle top bar",jp:"トップバー表示切替"},shortcutToggleTopBarTip:{cn:"显示或隐藏顶部工具栏",en:"Show/hide top toolbar",jp:"上部ツールバーを表示/非表示"},shortcutToggleThumbView:{cn:"缩略图栏开关",en:"Toggle thumbnails",jp:"サムネイル表示切替"},shortcutToggleThumbViewTip:{cn:"滚动/书页模式下切换缩略图栏显示",en:"Show/hide thumbnail panel in current mode",jp:"現在モードのサムネイルパネル表示切替"},shortcutToggleQuickPreview:{cn:"快速预览开关",en:"Toggle quick preview",jp:"クイックプレビュー切替"},shortcutToggleQuickPreviewTip:{cn:"打开/关闭快速预览",en:"Open/close quick preview",jp:"クイックプレビューを開閉"},shortcutIncreaseWidthScale:{cn:"调大页面比例",en:"Increase page scale",jp:"ページ倍率を上げる"},shortcutIncreaseWidthScaleTip:{cn:"每次增加 5%",en:"Increase scale by 5%",jp:"倍率を5%増加"},shortcutDecreaseWidthScale:{cn:"调小页面比例",en:"Decrease page scale",jp:"ページ倍率を下げる"},shortcutDecreaseWidthScaleTip:{cn:"每次减少 5%",en:"Decrease scale by 5%",jp:"倍率を5%減少"},shortcutTogglePagination:{cn:"页目录开关",en:"Toggle pagination",jp:"ページネーション切替"},shortcutTogglePaginationTip:{cn:"书页模式下显示/隐藏页目录(默认未绑定)",en:"Show/hide pagination in book mode (unbound by default)",jp:"見開きモードでページネーションを表示/非表示(初期値未割当)"},shortcutToggleAutoFlip:{cn:"自动翻页开关",en:"Toggle auto flip",jp:"自動ページめくり切替"},shortcutToggleAutoFlipTip:{cn:"书页模式下开关自动翻页(默认未绑定)",en:"Toggle auto flip in book mode (unbound by default)",jp:"ページモードの自動めくり切替(初期未設定)"},shortcutToggleOddEven:{cn:"奇偶切换开关",en:"Toggle odd/even",jp:"奇偶切替"},shortcutToggleOddEvenTip:{cn:"书页模式下切换奇偶页拼接(默认未绑定)",en:"Toggle odd/even stitching in book mode (unbound by default)",jp:"ページモードの奇偶ページ結合切替(初期未設定)"},languageSetting:{cn:"语言",en:"Language",jp:"言語"},languageSettingTip:{cn:"语言/Language/言語",en:"语言/Language/言語",jp:"语言/Language/言語"},settingsOther:{cn:"其他",en:"Other",jp:"その他"},autoSourceRetry:{cn:"自动换源重试",en:"Auto source retry",jp:"自動ソース再試行"},autoSourceRetryTip:{cn:"加载失败时自动尝试换源",en:"Automatically retry with another source when loading fails",jp:"読み込み失敗時に別ソースで自動再試行"},downloadChunkSize:{cn:"下载分片大小",en:"Download chunk size",jp:"ダウンロード分割サイズ"},downloadChunkSizeTip:{cn:"单个压缩包最多包含的图片页数,异常值会回退到200",en:"Max images per zip; invalid values fallback to 200",jp:"1つのzipに含める最大画像数。無効値は200に戻す"},downloadQueued:{cn:"下载任务已开始",en:"Download queued",jp:"ダウンロード開始"},downloadNoPages:{cn:"无可下载页面",en:"No pages to download",jp:"ダウンロード対象ページなし"},downloadFetching:{cn:"正在处理第{{current}}/{{total}}张图片",en:"Processing image {{current}} / {{total}}",jp:"{{current}} / {{total}} 枚目を処理中"},downloadCompressing:{cn:"正在压缩第{{chunk}}/{{totalChunks}}个分片",en:"Compressing chunk {{chunk}} / {{totalChunks}}",jp:"{{chunk}} / {{totalChunks}} 分割を圧縮中"},downloadCompleted:{cn:"下载完成",en:"Download completed",jp:"ダウンロード完了"},downloadPartial:{cn:"下载完成,失败{{failed}}张",en:"Completed with {{failed}} failures",jp:"完了(失敗 {{failed}} 枚)"},downloadFailed:{cn:"下载失败",en:"Download failed",jp:"ダウンロード失敗"},downloadChunkFailed:{cn:"分片{{chunk}}压缩失败:{{reason}}",en:"Chunk {{chunk}} failed: {{reason}}",jp:"分割{{chunk}}失敗: {{reason}}"},downloadAborted:{cn:"下载已终止",en:"Download aborted",jp:"ダウンロードを停止しました"},terminate:{cn:"终止",en:"Terminate",jp:"停止"},resetAllConfirmTitle:{cn:"确认清空缓存并重置设置",en:"Confirm cache clear and reset",jp:"キャッシュ削除と設定リセットを確認"},resetAllConfirmDesc:{cn:"该操作会清空缓存并恢复所有设置为默认值,且不可撤销。",en:"This clears cache and restores all settings to default, and cannot be undone.",jp:"この操作はキャッシュを削除し、すべての設定を初期値に戻します。取り消しできません。"},versionLabel:{cn:"版本号",en:"Version",jp:"バージョン"},enabled:{cn:"已启用",en:"Enabled",jp:"有効"},hidden:{cn:"已隐藏",en:"Hidden",jp:"非表示"},quickDragHint:{cn:"拖拽设置项可调整顺序,并可在上下区域间移动来控制显示。",en:"Drag items to reorder, and move between sections to show or hide.",jp:"ドラッグで並び替え、上下の領域間移動で表示/非表示を切り替えます。"},quickEnabledHint:{cn:"这些会显示在顶部快捷栏",en:"Shown in top quick bar",jp:"上部クイックバーに表示"},quickHiddenHint:{cn:"这些不会显示在顶部快捷栏",en:"Hidden from top quick bar",jp:"上部クイックバーに非表示"},disabled:{cn:"已禁用",en:"Disabled",jp:"無効"},confirm:{cn:"确定",en:"CONFIRM",jp:"確認"},cancel:{cn:"取消",en:"CANCEL",jp:"取り消し"},infoTip:{cn:"查看说明和关于",en:"Look the Instructions and About",jp:"指示と情報を見てください"},resetTip:{cn:"重置缓存和数据",en:"Reset cache and data",jp:"Reset cache and data"},githubTip:{cn:"前往项目主页(Github)",en:"Go to the project home page(Github)",jp:"プロジェクトのホームページに行く(Github)"},instructionsAndAbouts:{cn:"说明和关于",en:"Instructions & About",jp:"説明と概要"},instructions:{cn:"说明",en:"Instructions",jp:"説明"},later:{cn:"以后再说",en:"LATER",jp:"後で"},changingToSmallFailed:{cn:'无缝切换至`"Normal"`模式失败,可能是网络错误,可刷新重试或者返回前一页将预览图的大小模式切换为`"Normal"`。',en:'Changing to `"Normal"` mode failed, because of poor network. You can reload this page or go back to previous page and change the mode of thumbnails to `"Normal"`',jp:"ネットワークが不十分であるため、`「Normal」`モードに変更できませんでした。 このページをリロードするか、前のページに戻ってサムネイルのモードを`「Normal」`に変更することができます"},loadingTip:{cn:"在前页采用Normal模式查看缩略图可加速加载",en:'You can use "Normal" mode of thumbnail in previous page to accelerate the load.',jp:"前のページでサムネイルの「Normal」モードを使用して、読み込みを高速化できます。"},versionUpdate:{cn:"版本更新说明",en:"The update of this version",jp:"このバージョンの更新"},loadingFailedAndRefresh:{cn:"加载错误, 刷新重试",en:"Loading failed, please refresh to retry",jp:"読み込みに失敗しました。もう一度試してください"},failedMsg:{cn:"错误信息",en:"Error message",jp:"エラーメッセージ"},version:{cn:"版本",en:"Version",jp:"Version"},ContractAuthor:{cn:"联系作者",en:"Contact author",jp:"作者に連絡する"},wheelSensitivity:{cn:"滚轮翻页",en:"Wheel flip",jp:"ホイール"},wheelSensitivityTip:{cn:"鼠标滚轮翻页灵敏度",en:"Wheel sensitivity",jp:"ホイール感度"},wheelDirection:{cn:"反转滚动方向",en:"Wheel Direction",jp:"ホイール方向"},wheelDirectionTip:{cn:"反转滚轮翻页方向",en:"Reverse Wheel Direction to flip",jp:"リバースホイール方向"},tips:{cn:"提示",en:"TIPS",jp:"ヒント"},numberInputTip:{cn:"最小值为`{{min}}`, 最大值为`{{max}}`",en:"The minimum is `{{min}}` and the maximum is `{{max}}`",jp:"最小は`{{min}}`, 最大は`{{max}}`です"},pageMargin:{cn:"页间隔",en:"Page spacing",jp:"ページ間隔"},pageMarginTip:{cn:"页间隔",en:"Page spacing",jp:"ページ間隔"},oddEven:{cn:"奇偶切换",en:"Odd/Even",jp:"奇/偶"},oddEvenTip:{cn:"切换奇偶页拼接",en:"Switching odd or even page stitching",jp:"奇数または偶数ページステッチの切り替え"},openMagnifier:{cn:"打开放大镜",en:"Open magnifier",jp:"拡大鏡を開く"},closeMagnifier:{cn:"关闭放大镜",en:"Close magnifier",jp:"拡大鏡を閉じる"},zoomInMagnifier:{cn:"增大放大镜倍率",en:"Increase magnifier zoom",jp:"拡大率を上げる"},zoomOutMagnifier:{cn:"缩小放大镜倍率",en:"Decrease magnifier zoom",jp:"拡大率を下げる"},notSupportedInCurrentPlatform:{cn:"当前平台不支持",en:"Not supported on this platform",jp:"このプラットフォームでは非対応"},increaseMagnifierArea:{cn:"增大放大镜区域",en:"Increase magnifier area",jp:"拡大エリアを拡大"},decreaseMagnifierArea:{cn:"缩小放大镜区域",en:"Decrease magnifier area",jp:"拡大エリアを縮小"},magnifierZoom:{cn:"放大镜倍率",en:"Magnifier zoom",jp:"拡大倍率"},magnifierZoomTip:{cn:"设置放大镜倍率(2x-5x)",en:"Set magnifier zoom (2x-5x)",jp:"拡大倍率を設定 (2x-5x)"},magnifierAreaSize:{cn:"放大镜区域",en:"Magnifier area size",jp:"拡大エリアサイズ"},magnifierAreaSizeTip:{cn:"设置放大区域尺寸(20px-300px)",en:"Set focus area size (20px-300px)",jp:"フォーカス領域サイズを設定 (20px-300px)"}},Vl={cn:{},en:{},jp:{}};for(let e in Ps)for(let t in Ps[e])Vl[t][e]=Ps[e][t];const pt=Y("");let lo=navigator.language.toLowerCase();switch(!0){case lo.startsWith("en"):pt.value="en";break;case lo.startsWith("zh"):pt.value="cn";break;case(lo.endsWith("jp")||lo.startsWith("ja")):pt.value="jp";break}const W=J(()=>Vl[pt.value]),Rs="album_service",qs={homePage:"https://github.com/hanFengSan/eHunter",updateServer1:"https://jp.animesales.xyz/ehunter/update.json",updateServer2:"https://jp.animesales.xyz/ehunter/update.json"},wr={version:"3.1.0"},ag={cn:`
1.Change language/切换语言/言語を変更
![image-language](https://raw.githubusercontent.com/hanFengSan/eHunter/master/github_image/language.jpg)

1.显示/隐藏顶栏和关闭eHunter
![image-topbar_close](https://raw.githubusercontent.com/hanFengSan/eHunter/master/github_image/topbar_close.jpg)

2.在页面右上角点击打开eHunter
![image-open_ehunter](https://raw.githubusercontent.com/hanFengSan/eHunter/master/github_image/open_ehunter.jpg)

3.\`滚动\`模式下, 支持\`A\`. \`D\`, \`Left(左)\`和\`Right(右)\`键翻页.

4.\`书页\`模式下, 点击屏幕下方翻下一页,点击屏幕上方翻到上一页。支持\`A\`. \`D\`, \`Left(左)\`, \`Right(右)\`键翻页. 你也可以用鼠标滚轮翻页.

5.\`分卷页数\`对性能要求较高,请不要设置过高,可能会导致卡顿.

6.有更多想要的功能, 可以反馈给我, 如果该功能可以有的话, 我有空的时候会支持的.

### iPhone和iPad使用指引
说明链接:[链接](https://github.com/hanFengSan/eHunter/blob/master/misc/iphone_ipad_cn.md)

### eHunter-local
eHunter-local是eHunter的本地版本, 支持Windows和MacOS. [项目主页](https://github.com/hanFengSan/eHunter_local)

[Github下载](https://github.com/hanFengSan/eHunter_local/releases)

### 反馈和建议
* 可在[Github]({{HOME_PAGE}})上开issue给我.
* 可发邮件到我邮箱: [email protected]

### 关于
* 版本: {{VERSION}}
* 作者: Alex Chen (hanFeng)
* 项目开源地址: [Github]({{HOME_PAGE}})

如果你喜欢此插件的话,希望能在应用商店上给个好评 8-)
`,en:`
1.Change language/切换语言/言語を変更
![image-language](https://raw.githubusercontent.com/hanFengSan/eHunter/master/github_image/language.jpg)

1.Show/hide top bar and close the eHunter
![image-topbar_close](https://raw.githubusercontent.com/hanFengSan/eHunter/master/github_image/topbar_close.jpg)

2.Click the button at the upper right corner of this page to open the eHunter
![image-open_ehunter](https://raw.githubusercontent.com/hanFengSan/eHunter/master/github_image/open_ehunter.jpg)

3.In \`Scroll\` mode, you can turn pages with \`A\`, \`D\`, \`Left\`, and \`Right\`.

4.In \`Book\` mode, click the lower part of the screen to go to the next page, and click the upper part to go to the previous page. You can also turn pages with \`A\`, \`D\`, \`Left\`, and \`Right\`, or use the mouse wheel.

5.\`Volume size\` has relatively high performance requirements. Avoid setting it too high, or the reader may lag.

6.If there are more features you would like, feel free to send feedback. If they are feasible, I will add them when time allows.

### iPhone and iPad Guide
Guide link: [Link](https://github.com/hanFengSan/eHunter/blob/master/misc/iphone_ipad_en.md)

### eHunter-local
The eHunter-local is local version of eHunter, supporting Windows and MacOS. [Home Page](https://github.com/hanFengSan/eHunter_local)

[Github releases](https://github.com/hanFengSan/eHunter_local/releases)

### Feedback & Suggestions
* You can open an issue on [Github]({{HOME_PAGE}}).
* You can also email me at: [email protected]

### About
* Version: {{VERSION}}
* Author: Alex Chen (hanFeng)
* Home page of this project: [Github]({{HOME_PAGE}})

If you enjoy this extension, I would really appreciate a five-star rating in the store. 8-)
`,jp:`
1.Change language/切换语言/言語を変更
![image-language](https://raw.githubusercontent.com/hanFengSan/eHunter/master/github_image/language.jpg)

1.トップバーを表示/非表示にしてeHunterを閉じる
![image-topbar_close](https://raw.githubusercontent.com/hanFengSan/eHunter/master/github_image/topbar_close.jpg)

2.このページの右上隅にあるボタンをクリックしてeHunterを開きます
![image-open_ehunter](https://raw.githubusercontent.com/hanFengSan/eHunter/master/github_image/open_ehunter.jpg)

3.\`スクロール\`モードでは、\`A\`、\`D\`、\`Left\`、\`Right\`キーでページをめくれます。

4.\`ブック\`モードでは、画面下部をクリックすると次のページ、画面上部をクリックすると前のページに移動します。\`A\`、\`D\`、\`Left\`、\`Right\`キー、またはマウスホイールでもページをめくれます。

5.\`分巻ページ数\`はパフォーマンス負荷が高いため、上げすぎると動作が重くなる場合があります。

6.追加してほしい機能があれば、ぜひフィードバックしてください。実現可能であれば、時間のあるときに対応します。

### iPhone と iPad の利用ガイド
案内リンク: [Link](https://github.com/hanFengSan/eHunter/blob/master/misc/iphone_ipad_jp.md)

### eHunter-local
eHunter-localはeHunterのローカル版で、WindowsとMacOSをサポートしています。[Home Page](https://github.com/hanFengSan/eHunter_local)

[Github releases](https://github.com/hanFengSan/eHunter_local/releases)

### フィードバックと提案
* [Github]({{HOME_PAGE}}) で issue を作成できます。
* メール: [email protected]

### について
* バージョン: {{VERSION}}
* 著者: Alex Chen (hanFeng)
* このプロジェクトのホームページ: [Github]({{HOME_PAGE}})

この拡張機能を気に入っていただけたら、ストアで5つ星評価をいただけるとうれしいです。 8-)
`};function lg(e){return e==="cn"||e==="jp"||e==="en"?e:"en"}function ug(e,t){return e.replace(/\{\{([A-Z_]+)\}\}/g,(n,r)=>{const o=t[r];return typeof o=="string"?o:""})}function fg(e,t){const n=lg(e);return ug(ag[n],{HOME_PAGE:t,VERSION:wr.version})}const hg={cn:`
### v3.1.0 说明
* 新增放大镜功能(滚动模式:鼠标左键点击图片打开,书页模式:屏幕中间区域点击图片打开)
* 支持快捷键自定义(入口:更多设置)
* 修复”快捷设置“中的拖拽功能

### v3.0.0 说明
* 支持图片打包下载(触发入口:页面右上角的“更多”按钮)
* 支持iPhone使用,优化移动端使用体验
* 支持”快速预览“(入口:缩略图栏底部的悬浮按钮、页面右上角的“更多”按钮)
* 缩略图栏可拖拽改变位置(拖拽顶部的EHUNTER标识)
* 缩略图栏可改变宽度或高度
* 图片加载失败时,支持自动换源重试

### iPhone / iPad 支持
* 目前在 iOS 15/iPadOS 15 上可运行油猴脚本/userscript,因此 eHunter 也可在 iPhone / iPad 使用
* 使用指南: [链接](https://github.com/hanFengSan/eHunter/blob/master/misc/iphone_ipad_cn.md)
`,en:`
### v3.1.0 Notes
* Added a magnifier feature (Scroll Mode: left-click an image to open; Book Mode: click an image in the center area of the screen to open)
* Added customizable keyboard shortcuts (entry: More Settings)
* Fixed drag behavior in "Quick Settings"

### v3.0.0 Notes
* Added image bundle download (entry: the "More" button in the top-right corner)
* Added iPhone support with improved mobile usability
* Added "Quick Preview" (entry: floating button at the bottom of the thumbnail bar, and the "More" button in the top-right corner)
* Thumbnail bar position can now be changed by drag-and-drop (drag the EHUNTER header)
* Thumbnail bar width/height is now resizable
* Automatically retries with an alternative source when image loading fails

### iPhone / iPad Support
* Userscripts can run on iOS 15 / iPadOS 15, so eHunter is now available on iPhone and iPad
* Guide: [Link](https://github.com/hanFengSan/eHunter/blob/master/misc/iphone_ipad_en.md)
`,jp:`
### v3.1.0 リリースノート
* 拡大鏡機能を追加(スクロールモード: 画像を左クリックで起動、ブックモード: 画面中央エリアの画像をクリックで起動)
* ショートカットキーのカスタマイズに対応(入口: 「詳細設定」)
* 「クイック設定」のドラッグ機能を修正

### v3.0.0 リリースノート
* 画像の一括ダウンロードに対応(入口: 右上の「More」ボタン)
* iPhone での利用に対応し、モバイルでの操作性を改善
* 「クイックプレビュー」に対応(入口: サムネイルバー下部のフローティングボタン、または右上の「More」ボタン)
* サムネイルバーの位置をドラッグで変更可能(EHUNTER ヘッダーをドラッグ)
* サムネイルバーの幅・高さを調整可能
* 画像の読み込みに失敗した場合、別ソースで自動再試行

### iPhone / iPad 対応
* iOS 15 / iPadOS 15 では userscript が動作するため、eHunter を iPhone / iPad でも利用できます
* ガイド: [リンク](https://github.com/hanFengSan/eHunter/blob/master/misc/iphone_ipad_jp.md)
`};function dg(e){return e==="cn"||e==="jp"||e==="en"?e:"en"}function pg(e){const t=dg(e);return hg[t]}if(typeof kn=="undefined")var kn={extension:null};const Zt={storage:{get sync(){return kn&&kn.storage?kn.storage.sync.QUOTA_BYTES?kn.storage.sync:kn.storage.local:window.localStorage},local:window.localStorage},storageGet(e,t=null){try{if(typeof GM_getValue=="function")return GM_getValue(e,t)}catch(n){}try{let n=window.localStorage.getItem(e);return n===null?t:n}catch(n){return t}},storageSet(e,t){try{if(typeof GM_setValue=="function")return GM_setValue(e,t),!0}catch(n){}try{let n=t;return typeof t!="string"&&(n=JSON.stringify(t)),window.localStorage.setItem(e,n),!0}catch(n){return!1}},storageRemove(e){try{if(typeof GM_deleteValue=="function")return GM_deleteValue(e),!0}catch(t){}try{return window.localStorage.removeItem(e),!0}catch(t){return!1}},storageClear(){try{if(typeof GM_listValues=="function"&&typeof GM_deleteValue=="function"){const e=GM_listValues();Array.isArray(e)&&e.forEach(t=>{try{GM_deleteValue(t)}catch(n){}})}}catch(e){}try{return window.localStorage.clear(),!0}catch(e){return!1}},getExtension(){return kn.extension},fetch(e,t){return typeof GM_info!="undefined"&&GM_info.version?new Promise((n,r)=>{GM_xmlhttpRequest({method:t.method,url:e,onload:o=>{let s=o.responseText;o.text=function(){return Pe(this,null,function*(){return s})},n(o)},onerror:o=>{r(`GM_xhr error, ${o.status}`)}})}):window.fetch(e,t)}};class zn{constructor(t,n=!1,r=!0){ie(this,"url");ie(this,"method","GET");ie(this,"credentials","include");ie(this,"retryTimes",3);ie(this,"timeoutTime",15);ie(this,"curRetryTimes",0);ie(this,"retryInterval",3);ie(this,"enabledLog",!0);ie(this,"fetchSetting",null);ie(this,"noCache",!1);ie(this,"rejectError",!0);this.url=t,this.noCache=n,this.rejectError=r}setMethod(t){return this.method=t,this}setCredentials(t){return this.credentials=t,this}setFetchSetting(t){return this.fetchSetting=t,this}setRetryTimes(t){this.retryTimes=t}setRetryInterval(t){this.retryInterval=t}setTimeOutTime(t){this.timeoutTime=t}request(){return new Promise((t,n)=>{this._request(r=>{r.text().then(o=>t(o))},r=>{this.rejectError?n(r):console.error(r)})})}printErrorLog(t){console.error(`TextReq: request error in ${this.url}, retry:(${this.curRetryTimes}/${this.retryTimes}), error: ${t}`)}_request(t,n){this.curRetryTimes++;let r=this.url.includes("http")?this.url:`${window.location.protocol}//${window.location.host}${this.url}`;this.noCache&&(r=`${r}?_t=${new Date().getTime()}`);let o=new Promise((i,c)=>{setTimeout(c,this.timeoutTime*1e3*this.curRetryTimes,"request timed out")}),s=Zt.fetch(r,this.fetchSetting?this.fetchSetting:{method:this.method,credentials:this.credentials});Promise.race([o,s]).then(i=>{if(i.status===200)t(i);else throw new Error(`${r}: ${i.status}`)}).catch(i=>{this.printErrorLog(i),this.curRetryTimes<this.retryTimes?setTimeout(()=>{this._request(t,n)},this.retryInterval*1e3):n(i)})}}function gg(){return document.querySelector(".ehunter-container")}let Hl=0;function $l(){let e=gg();e&&(B.setViewportWidth(e.offsetWidth),B.setViewportHeight(e.offsetHeight))}function mg(){$l(),window.addEventListener("resize",()=>{window.clearTimeout(Hl),Hl=window.setTimeout(()=>{$l()},50)})}function vg(e){const t="keyboard",n=typeof e.key=="string"?e.key:"";if(e.metaKey||e.ctrlKey&&n!=="Control")return;const r=e.target;if(r){const c=(r.tagName||"").toLowerCase();if(c==="input"||c==="textarea"||c==="select"||r.isContentEditable)return}const o=n.length===1?n.toLowerCase():n,i=yg()[o];if(!(!i||i.length===0))for(const c of i)switch(c){case"goPrev":d.readingMode==0?B.setCurViewIndex(d.curViewIndex-1,t):d.readingMode==1&&B.setCurViewIndex(d.curViewIndex-d.pagesPerScreen,t);break;case"goNext":d.readingMode==0?B.setCurViewIndex(d.curViewIndex+1,t):d.readingMode==1&&d.curViewIndex+d.pagesPerScreen<d.pageCount&&B.setCurViewIndex(d.curViewIndex+d.pagesPerScreen,t);break;case"toggleMoreSettings":B.toggleShowMoreSettingsDialog();break;case"toggleTopBar":B.toggleShowTopBar();break;case"toggleThumbView":d.readingMode==0?B.toggleShowThumbView():B.toggleShowBookThumbView();break;case"toggleQuickPreview":d.showThumbExpandDialog?B.closeThumbExpandDialog():B.openThumbExpandDialog();break;case"increaseWidthScale":B.setWidthScale(Math.min(100,d.widthScale+5));break;case"decreaseWidthScale":B.setWidthScale(Math.max(30,d.widthScale-5));break;case"togglePagination":d.readingMode==1&&B.toggleShowBookPagination();break;case"toggleAutoFlip":B.toggleIsAutoFlip();break;case"toggleOddEven":B.toggleIsChangeOddEven();break}}function bg(e){const t=e.trim();return t.length===1?t.toLowerCase():t}function yg(){const e={},t=d.shortcutBindings;for(const n of Object.keys(t)){const r=t[n].split(",").map(o=>bg(o)).filter(o=>o.length>0);for(const o of r)e[o]||(e[o]=[]),e[o].push(n)}return e}function wg(){document.addEventListener("keydown",vg)}let Fs=0;function _g(){if(d.curViewIndex<d.pageCount-1){let e=d.readingMode==1?d.pagesPerScreen:1;B.setCurViewIndex(d.curViewIndex+e,"autoflip")}}function uo(){Fs&&window.clearTimeout(Fs),d.readingMode==1&&d.isAutoFlip&&d.autoFlipFrequency>0&&(Fs=window.setTimeout(_g,d.autoFlipFrequency*1e3))}let Bn=0,fo=0;function jl(e){if(typeof e.deltaY=="undefined"&&(e.deltaY=e.wheelDeltaY),e.metaKey||e.ctrlKey||e.deltaY===0||(Bn+=e.deltaY,fo>0&&window.clearTimeout(fo),fo=window.setTimeout(()=>{Bn=0},100),Math.abs(Bn)<d.wheelSensitivity))return;let t=!1;(Bn>0&&!d.IsReverseBookWheeFliplDirection||Bn<0&&d.IsReverseBookWheeFliplDirection)&&(t=!0),t&&d.curViewIndex+d.pagesPerScreen<d.pageCount&&B.setCurViewIndex(d.curViewIndex+d.pagesPerScreen,"wheel"),t||B.setCurViewIndex(d.curViewIndex-d.pagesPerScreen,"wheel"),Bn=0,window.clearTimeout(fo)}function Ls(){if(!d.showInstructionDialog&&!d.hasShownWelcomeInstruction){let e=navigator.language.toLowerCase();e.startsWith("zh")?B.setLang("cn"):e.startsWith("ja")||e.includes("jp")?B.setLang("jp"):B.setLang("en"),B.markWelcomeInstructionShown(),Ul(!0);return}}function Ul(e=!1){B.openInstructionDialog({title:W.value.instructionsAndAbouts,mdText:fg(pt.value,qs.homePage),isCompulsive:e})}function Sg(e){if(!e||typeof e!="object")return null;const t=pt.value==="cn"||pt.value==="jp"?pt.value:"en",n=e[t];if(!n||typeof n!="object")return null;const r=Array.isArray(n.operations)?n.operations.filter(o=>o&&typeof o.name=="string"&&typeof o.url=="string").map(o=>({name:o.name,url:o.url})):[];return{title:typeof n.title=="string"?n.title:"",version:typeof n.version=="string"?n.version:"",text:typeof n.text=="string"?n.text:"",operations:r,time:Number(n.time)||0,duration:Number(n.duration)||0}}function kg(){return Pe(this,null,function*(){const e=[qs.updateServer1,qs.updateServer2].filter(t=>typeof t=="string"&&t.length>0).map(t=>new zn(t,!0,!0).setCredentials("omit").request());if(e.length===0)return null;try{const t=yield Promise.race(e),n=JSON.parse(t);return Sg(n)}catch(t){return null}})}function xg(){const e=wr.version;d.lastSeenVersionNotice!==e&&B.openInstructionDialog({title:`${W.value.versionUpdate} v${e}`,mdText:pg(pt.value),isCompulsive:!0,operations:[{name:W.value.confirm,btnType:"plain",isCloseModal:!0,onClick:()=>B.markVersionNoticeSeen(e)}]})}function Cg(){return Pe(this,null,function*(){const e=yield kg();if(!e)return;const t=wr.version,n=Date.now(),r=e.version!==t,o=n>e.time,s=n-d.lastRemoteUpdateNoticeAt>e.duration;if(!r||!o||!s)return;B.markRemoteUpdateNoticeShown(n);const i=[{name:W.value.later,btnType:"plain",isCloseModal:!0},...e.operations.map(c=>({name:c.name,btnType:"plain",isCloseModal:!0,onClick:()=>window.open(c.url,"_blank")}))];B.openInstructionDialog({title:e.title,mdText:e.text,isCompulsive:!0,operations:i})})}let Wl=!1;function Tg(){Wl||(Wl=!0,window.setTimeout(()=>Pe(null,null,function*(){yield Cg(),xg()}),5e3))}const ho="ehunter:reader:prefs:mode-layout",Kl=1,Eg=60,Ig=520,Ag=60,Dg=420,Ns=150,Gl=160,Ql=.35,Mg=.78,Zl=10,Pg=10,Rg=10,qg=2,Yl=()=>new Date().toISOString();function Yt(e,t){return Number.isFinite(t)?e==="bottom"?Math.min(Dg,Math.max(Ag,Math.round(t))):Math.min(Ig,Math.max(Eg,Math.round(t))):e==="bottom"?200:150}function po(e){return e==="left"||e==="right"||e==="bottom"?e:"left"}function Fg(e,t,n){return e==="bottom"?Math.max(Ql,n/Gl):Math.max(Ql,t/Ns)}function Lg(e){return e==="bottom"?Math.round(Ns*Mg):Ns}function Ng(e){const t=Math.floor(e*.12);return Math.max(10,Math.min(18,t))}function Og(e){const t=e*9e-4;return Math.max(.02,Math.min(.08,t))}function zg(e){const t=Math.floor(e*.065);return Math.max(8,Math.min(13,t))}function Bg(e){const t=e*.0018;return Math.max(.02,Math.min(.2,t))}function Os(e){return{thumbSlot:"left",thumbSizePx:Yt("left",150),updatedAt:Yl()}}function Jl(){return{schemaVersion:Kl,updatedAt:Yl(),layouts:{scroll:Os(),book:Os()}}}function Xl(){return 1.45}function eu(e){return{pageCount:Math.max(0,Math.floor(e.pageCount||0)),pagesPerScreen:Math.max(1,Math.floor(e.pagesPerScreen||1)),isChangeOddEven:!!e.isChangeOddEven}}function Vg(e){const t=eu(e),n=[];t.isChangeOddEven||n.push(-1);for(let r=0;r<t.pageCount;r++)n.push(r);return n.push(t.pageCount),n}function zs(e){const t=eu(e),n=Vg(t),r=[];for(let o=0;o<n.length;o+=t.pagesPerScreen)r.push(n.slice(o,o+t.pagesPerScreen));return r.length===0&&r.push([t.pageCount]),r}function Bs(e,t){const n=Math.floor(t),r=e.findIndex(o=>o.includes(n));return r>=0?r:0}function tu(e,t){if(!e||e.length===0)return t;const n=e.filter(r=>r>=0);return n.length===0?t:n[0]}function Hg(e,t,n){const r=zs(e),o=Bs(r,t),s=Math.max(0,Math.min(r.length-1,o+n));if(s===o)return Math.max(0,Math.min(e.pageCount-1,t));const i=r[s];return tu(i,t)}const go=200;function Vs(e,t){const n=nu(t)-1;return e<0?0:e>n?n:e}function nu(e){const t=Math.max(1,e);return Math.max(1,Math.ceil(t/go))}function ru(e){return e<=0?0:Math.floor(e/go)}function $g(e,t){const n=Vs(e,t),r=n*go,o=Math.min(t-1,r+go-1);return{segmentIndex:n,startIndex:Math.max(0,r),endIndex:Math.max(0,o)}}function jg(e,t,n){if(t<=0)return[];const r=$g(n,t),o=[];for(let s=r.startIndex;s<=r.endIndex;s++){const i=e[s]||null;o.push({pageNumber:s+1,thumbInfo:i,renderState:i?"ready":"error"})}return o}function Ug(){const e=globalThis.GM_getValue;if(typeof e=="function")return e(ho,null);try{return Zt.storageGet(ho,null)}catch(t){return null}}function Wg(e){const t=globalThis.GM_setValue;if(typeof t=="function"){t(ho,e);return}try{Zt.storageSet(ho,e)}catch(n){}}function ou(e,t){const n=Os();if(!t||typeof t!="object")return n;const r=po(t.thumbSlot),o=Yt(r,Number(t.thumbSizePx)),s=typeof t.updatedAt=="string"?t.updatedAt:n.updatedAt;return{thumbSlot:r,thumbSizePx:o,updatedAt:s}}function su(e){const t=Jl();if(!e)return t;if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return t}if(typeof e!="object")return t;const n=e.layouts&&typeof e.layouts=="object"?e.layouts:{};return{schemaVersion:Number(e.schemaVersion)||Kl,updatedAt:typeof e.updatedAt=="string"?e.updatedAt:new Date().toISOString(),layouts:{scroll:ou("scroll",n.scroll),book:ou("book",n.book)}}}function Kg(){return su(Ug())}function Gg(e){const t=su(e);return Wg(t),t}var rt=Uint8Array,gt=Uint16Array,Hs=Int32Array,$s=new rt([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),js=new rt([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),iu=new rt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),cu=function(e,t){for(var n=new gt(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var o=new Hs(n[30]),r=1;r<30;++r)for(var s=n[r];s<n[r+1];++s)o[s]=s-n[r]<<5|r;return{b:n,r:o}},au=cu($s,2),Qg=au.b,Us=au.r;Qg[28]=258,Us[258]=28;for(var Zg=cu(js,0),lu=Zg.r,Ws=new gt(32768),Oe=0;Oe<32768;++Oe){var un=(Oe&43690)>>1|(Oe&21845)<<1;un=(un&52428)>>2|(un&13107)<<2,un=(un&61680)>>4|(un&3855)<<4,Ws[Oe]=((un&65280)>>8|(un&255)<<8)>>1}for(var _r=(function(e,t,n){for(var r=e.length,o=0,s=new gt(t);o<r;++o)e[o]&&++s[e[o]-1];var i=new gt(t);for(o=1;o<t;++o)i[o]=i[o-1]+s[o-1]<<1;var c;if(n){c=new gt(1<<t);var a=15-t;for(o=0;o<r;++o)if(e[o])for(var u=o<<4|e[o],l=t-e[o],f=i[e[o]-1]++<<l,p=f|(1<<l)-1;f<=p;++f)c[Ws[f]>>a]=u}else for(c=new gt(r),o=0;o<r;++o)e[o]&&(c[o]=Ws[i[e[o]-1]++]>>15-e[o]);return c}),xn=new rt(288),Oe=0;Oe<144;++Oe)xn[Oe]=8;for(var Oe=144;Oe<256;++Oe)xn[Oe]=9;for(var Oe=256;Oe<280;++Oe)xn[Oe]=7;for(var Oe=280;Oe<288;++Oe)xn[Oe]=8;for(var mo=new rt(32),Oe=0;Oe<32;++Oe)mo[Oe]=5;var Yg=_r(xn,9,0),Jg=_r(mo,5,0),uu=function(e){return(e+7)/8|0},fu=function(e,t,n){return(n==null||n>e.length)&&(n=e.length),new rt(e.subarray(t,n))},Xg=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],vo=function(e,t,n){var r=new Error(t||Xg[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,vo),!n)throw r;return r},Jt=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},Sr=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},Ks=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var o=n.length,s=n.slice();if(!o)return{t:gu,l:0};if(o==1){var i=new rt(n[0].s+1);return i[n[0].s]=1,{t:i,l:1}}n.sort(function(x,E){return x.f-E.f}),n.push({s:-1,f:25001});var c=n[0],a=n[1],u=0,l=1,f=2;for(n[0]={s:-1,f:c.f+a.f,l:c,r:a};l!=o-1;)c=n[n[u].f<n[f].f?u++:f++],a=n[u!=l&&n[u].f<n[f].f?u++:f++],n[l++]={s:-1,f:c.f+a.f,l:c,r:a};for(var p=s[0].s,r=1;r<o;++r)s[r].s>p&&(p=s[r].s);var h=new gt(p+1),m=Gs(n[l-1],h,0);if(m>t){var r=0,g=0,k=m-t,y=1<<k;for(s.sort(function(E,F){return h[F.s]-h[E.s]||E.f-F.f});r<o;++r){var b=s[r].s;if(h[b]>t)g+=y-(1<<m-h[b]),h[b]=t;else break}for(g>>=k;g>0;){var w=s[r].s;h[w]<t?g-=1<<t-h[w]++-1:++r}for(;r>=0&&g;--r){var v=s[r].s;h[v]==t&&(--h[v],++g)}m=t}return{t:new rt(h),l:m}},Gs=function(e,t,n){return e.s==-1?Math.max(Gs(e.l,t,n+1),Gs(e.r,t,n+1)):t[e.s]=n},hu=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new gt(++t),r=0,o=e[0],s=1,i=function(a){n[r++]=a},c=1;c<=t;++c)if(e[c]==o&&c!=t)++s;else{if(!o&&s>2){for(;s>138;s-=138)i(32754);s>2&&(i(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(i(o),--s;s>6;s-=6)i(8304);s>2&&(i(s-3<<5|8208),s=0)}for(;s--;)i(o);s=1,o=e[c]}return{c:n.subarray(0,r),n:t}},kr=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},du=function(e,t,n){var r=n.length,o=uu(t+2);e[o]=r&255,e[o+1]=r>>8,e[o+2]=e[o]^255,e[o+3]=e[o+1]^255;for(var s=0;s<r;++s)e[o+s+4]=n[s];return(o+4+r)*8},pu=function(e,t,n,r,o,s,i,c,a,u,l){Jt(t,l++,n),++o[256];for(var f=Ks(o,15),p=f.t,h=f.l,m=Ks(s,15),g=m.t,k=m.l,y=hu(p),b=y.c,w=y.n,v=hu(g),x=v.c,E=v.n,F=new gt(19),C=0;C<b.length;++C)++F[b[C]&31];for(var C=0;C<x.length;++C)++F[x[C]&31];for(var D=Ks(F,7),M=D.t,N=D.l,L=19;L>4&&!M[iu[L-1]];--L);var ae=u+5<<3,z=kr(o,xn)+kr(s,mo)+i,re=kr(o,p)+kr(s,g)+i+14+3*L+kr(F,M)+2*F[16]+3*F[17]+7*F[18];if(a>=0&&ae<=z&&ae<=re)return du(t,l,e.subarray(a,a+u));var oe,se,le,_e;if(Jt(t,l,1+(re<z)),l+=2,re<z){oe=_r(p,h,0),se=p,le=_r(g,k,0),_e=g;var me=_r(M,N,0);Jt(t,l,w-257),Jt(t,l+5,E-1),Jt(t,l+10,L-4),l+=14;for(var C=0;C<L;++C)Jt(t,l+3*C,M[iu[C]]);l+=3*L;for(var ke=[b,x],Ce=0;Ce<2;++Ce)for(var Ie=ke[Ce],C=0;C<Ie.length;++C){var Ue=Ie[C]&31;Jt(t,l,me[Ue]),l+=M[Ue],Ue>15&&(Jt(t,l,Ie[C]>>5&127),l+=Ie[C]>>12)}}else oe=Yg,se=xn,le=Jg,_e=mo;for(var C=0;C<c;++C){var Ve=r[C];if(Ve>255){var Ue=Ve>>18&31;Sr(t,l,oe[Ue+257]),l+=se[Ue+257],Ue>7&&(Jt(t,l,Ve>>23&31),l+=$s[Ue]);var Ge=Ve&31;Sr(t,l,le[Ge]),l+=_e[Ge],Ge>3&&(Sr(t,l,Ve>>5&8191),l+=js[Ge])}else Sr(t,l,oe[Ve]),l+=se[Ve]}return Sr(t,l,oe[256]),l+se[256]},em=new Hs([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),gu=new rt(0),tm=function(e,t,n,r,o,s){var i=s.z||e.length,c=new rt(r+i+5*(1+Math.ceil(i/7e3))+o),a=c.subarray(r,c.length-o),u=s.l,l=(s.r||0)&7;if(t){l&&(a[0]=s.r>>3);for(var f=em[t-1],p=f>>13,h=f&8191,m=(1<<n)-1,g=s.p||new gt(32768),k=s.h||new gt(m+1),y=Math.ceil(n/3),b=2*y,w=function(q){return(e[q]^e[q+1]<<y^e[q+2]<<b)&m},v=new Hs(25e3),x=new gt(288),E=new gt(32),F=0,C=0,D=s.i||0,M=0,N=s.w||0,L=0;D+2<i;++D){var ae=w(D),z=D&32767,re=k[ae];if(g[z]=re,k[ae]=z,N<=D){var oe=i-D;if((F>7e3||M>24576)&&(oe>423||!u)){l=pu(e,a,0,v,x,E,C,M,L,D-L,l),M=F=C=0,L=D;for(var se=0;se<286;++se)x[se]=0;for(var se=0;se<30;++se)E[se]=0}var le=2,_e=0,me=h,ke=z-re&32767;if(oe>2&&ae==w(D-ke))for(var Ce=Math.min(p,oe)-1,Ie=Math.min(32767,D),Ue=Math.min(258,oe);ke<=Ie&&--me&&z!=re;){if(e[D+le]==e[D+le-ke]){for(var Ve=0;Ve<Ue&&e[D+Ve]==e[D+Ve-ke];++Ve);if(Ve>le){if(le=Ve,_e=ke,Ve>Ce)break;for(var Ge=Math.min(ke,Ve-2),ee=0,se=0;se<Ge;++se){var P=D-ke+se&32767,A=g[P],K=P-A&32767;K>ee&&(ee=K,re=P)}}}z=re,re=g[z],ke+=z-re&32767}if(_e){v[M++]=268435456|Us[le]<<18|lu[_e];var ye=Us[le]&31,_=lu[_e]&31;C+=$s[ye]+js[_],++x[257+ye],++E[_],N=D+le,++F}else v[M++]=e[D],++x[e[D]]}}for(D=Math.max(D,N);D<i;++D)v[M++]=e[D],++x[e[D]];l=pu(e,a,u,v,x,E,C,M,L,D-L,l),u||(s.r=l&7|a[l/8|0]<<3,l-=7,s.h=k,s.p=g,s.i=D,s.w=N)}else{for(var D=s.w||0;D<i+u;D+=65535){var T=D+65535;T>=i&&(a[l/8|0]=u,T=i),l=du(a,l+1,e.subarray(D,T))}s.i=i}return fu(c,0,r+uu(l)+o)},nm=(function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(n&1&&-306674912)^n>>>1;e[t]=n}return e})(),rm=function(){var e=-1;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=nm[n&255^t[r]]^n>>>8;e=n},d:function(){return~e}}},om=function(e,t,n,r,o){if(!o&&(o={l:1},t.dictionary)){var s=t.dictionary.subarray(-32768),i=new rt(s.length+e.length);i.set(s),i.set(e,s.length),e=i,o.w=s.length}return tm(e,t.level==null?6:t.level,t.mem==null?o.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,n,r,o)},mu=function(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n},Ye=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function sm(e,t){return om(e,t||{},0,0)}var vu=function(e,t,n,r){for(var o in e){var s=e[o],i=t+o,c=r;Array.isArray(s)&&(c=mu(r,s[1]),s=s[0]),s instanceof rt?n[i]=[s,c]:(n[i+="/"]=[new rt(0),c],vu(s,i,n,r))}},bu=typeof TextEncoder!="undefined"&&new TextEncoder,im=typeof TextDecoder!="undefined"&&new TextDecoder,cm=0;try{im.decode(gu,{stream:!0}),cm=1}catch(e){}function Qs(e,t){var n;if(bu)return bu.encode(e);for(var r=e.length,o=new rt(e.length+(e.length>>1)),s=0,i=function(u){o[s++]=u},n=0;n<r;++n){if(s+5>o.length){var c=new rt(s+8+(r-n<<1));c.set(o),o=c}var a=e.charCodeAt(n);a<128||t?i(a):a<2048?(i(192|a>>6),i(128|a&63)):a>55295&&a<57344?(a=65536+(a&1047552)|e.charCodeAt(++n)&1023,i(240|a>>18),i(128|a>>12&63),i(128|a>>6&63),i(128|a&63)):(i(224|a>>12),i(128|a>>6&63),i(128|a&63))}return fu(o,0,s)}var Zs=function(e){var t=0;if(e)for(var n in e){var r=e[n].length;r>65535&&vo(9),t+=r+4}return t},yu=function(e,t,n,r,o,s,i,c){var a=r.length,u=n.extra,l=c&&c.length,f=Zs(u);Ye(e,t,i!=null?33639248:67324752),t+=4,i!=null&&(e[t++]=20,e[t++]=n.os),e[t]=20,t+=2,e[t++]=n.flag<<1|(s<0&&8),e[t++]=o&&8,e[t++]=n.compression&255,e[t++]=n.compression>>8;var p=new Date(n.mtime==null?Date.now():n.mtime),h=p.getFullYear()-1980;if((h<0||h>119)&&vo(10),Ye(e,t,h<<25|p.getMonth()+1<<21|p.getDate()<<16|p.getHours()<<11|p.getMinutes()<<5|p.getSeconds()>>1),t+=4,s!=-1&&(Ye(e,t,n.crc),Ye(e,t+4,s<0?-s-2:s),Ye(e,t+8,n.size)),Ye(e,t+12,a),Ye(e,t+14,f),t+=16,i!=null&&(Ye(e,t,l),Ye(e,t+6,n.attrs),Ye(e,t+10,i),t+=14),e.set(r,t),t+=a,f)for(var m in u){var g=u[m],k=g.length;Ye(e,t,+m),Ye(e,t+2,k),e.set(g,t+4),t+=4+k}return l&&(e.set(c,t),t+=l),t},am=function(e,t,n,r,o){Ye(e,t,101010256),Ye(e,t+8,n),Ye(e,t+10,n),Ye(e,t+12,r),Ye(e,t+16,o)};function lm(e,t){t||(t={});var n={},r=[];vu(e,"",n,t);var o=0,s=0;for(var i in n){var c=n[i],a=c[0],u=c[1],l=u.level==0?0:8,f=Qs(i),p=f.length,h=u.comment,m=h&&Qs(h),g=m&&m.length,k=Zs(u.extra);p>65535&&vo(11);var y=l?sm(a,u):a,b=y.length,w=rm();w.p(a),r.push(mu(u,{size:a.length,crc:w.d(),c:y,f,m,u:p!=i.length||m&&h.length!=g,o,compression:l})),o+=30+p+k+b,s+=76+2*(p+k)+(g||0)+b}for(var v=new rt(s+22),x=o,E=s-o,F=0;F<r.length;++F){var f=r[F];yu(v,f.o,f,f.f,f.u,f.c.length);var C=30+f.f.length+Zs(f.extra);v.set(f.c,f.o+C),yu(v,o,f,f.f,f.u,f.c.length,f.o,f.m),o+=16+C+(f.m?f.m.length:0)}return am(v,o,r.length,E,x),v}var Vn=(e=>(e[e.SPIRIT=0]="SPIRIT",e[e.IMG=1]="IMG",e))(Vn||{}),Je=(e=>(e[e.Default=0]="Default",e[e.Fast=1]="Fast",e[e.Origin=2]="Origin",e[e.ChangeSource=3]="ChangeSource",e))(Je||{});const um=[{mode:Je.Default,attempts:3}],fm=[{mode:Je.Default,attempts:2},{mode:Je.ChangeSource,attempts:2},{mode:Je.Origin,attempts:2}];function wu(e){return e.autoRetryByOtherSource&&e.supportChangeSource?fm:um}function hm(e,t){const n=wu(t),r=n.findIndex(c=>c.mode===e);if(r<0)return[];const o=[],s=n[r],i=Math.max(s.attempts-1,0);for(let c=0;c<i;c++)o.push(s.mode);for(let c=r+1;c<n.length;c++){const a=n[c];for(let u=0;u<a.attempts;u++)o.push(a.mode)}return o}function _u(e){const t=e.trim();if(!t)return"";if(t.startsWith("[")){const r=t.indexOf("]");return r>0?t.slice(1,r):t}const n=t.indexOf(":");return n>-1?t.slice(0,n):t}function dm(e){const t=_u(e);return/^\d{1,3}(?:\.\d{1,3}){3}$/.test(t)}function Su(e){const t=_u(e);return t==="localhost"||dm(t)}function ku(){return Su(window.location.host||"")}const pm=200;function gm(e){return new Promise(t=>setTimeout(t,e))}function mm(e){return!Number.isFinite(e)||e<=0?pm:Math.floor(e)}function vm(){return"3.1.0"}function Xt(e,t){const n=W.value;let r=typeof n[e]=="string"?n[e]:e;if(!t)return r;for(const o of Object.keys(t))r=r.replace(new RegExp(`{{${o}}}`,"g"),String(t[o]));return r}function bm(e){const t=e.replace(/[<>:"/\\|?*\u0000-\u001F]/g,"_").replace(/[.\s]+$/g,"").trim();return t.length>0?t:"gallery"}function ym(e,t){const n={"image/jpeg":"jpg","image/jpg":"jpg","image/png":"png","image/webp":"webp","image/gif":"gif","image/bmp":"bmp","image/avif":"avif"};if(t&&n[t])return n[t];const r=e.match(/\.([a-zA-Z0-9]{2,5})(?:$|\?)/);return r&&r[1]?r[1].toLowerCase():"jpg"}function wm(){return ku()}function _m(e,t=3e4){return Pe(this,null,function*(){const n=globalThis.GM_xmlhttpRequest;if(typeof n!="function")throw new Error("GM_XHR_NOT_AVAILABLE");return yield new Promise((r,o)=>{n({method:"GET",url:e,responseType:"arraybuffer",timeout:t,onload:s=>{if(!s||s.status<200||s.status>=300||!s.response){o(new Error(`GM_XHR_HTTP_${(s==null?void 0:s.status)||"UNKNOWN"}`));return}r(new Blob([s.response]))},onerror:()=>o(new Error("GM_XHR_ERROR")),ontimeout:()=>o(new Error("GM_XHR_TIMEOUT")),onabort:()=>o(new Error("GM_XHR_ABORT"))})})})}function Sm(e,t,n,r){return Pe(this,null,function*(){const o=wu({autoRetryByOtherSource:r,supportChangeSource:e.isSupportImgChangeSource()});let s=null;for(const i of o)for(let c=1;c<=i.attempts;c++)try{const a=yield e.getImgSrc(t,i.mode);if(a instanceof Error)throw a;if(!a.src)throw new Error("empty_image_src");typeof a.src=="string"&&a.src.startsWith("//")&&(a.src=`${window.location.protocol}${a.src}`),console.log("[GalleryDownloadService] image load begin",{pageIndex:t,pageNumber:n,mode:i.mode,attempt:c,src:a.src});const u=Date.now(),l=yield _m(a.src,3e4),f=Date.now()-u;return console.log("[GalleryDownloadService] image load done",{pageIndex:t,pageNumber:n,mode:i.mode,attempt:c,src:a.src,blobSize:l.size,blobType:l.type,elapsedMs:f}),{pageNumber:n,blob:l,extension:ym(a.src,l.type)}}catch(a){const u=a instanceof Error?a.message:String(a);console.log("[GalleryDownloadService] image load failed",{pageIndex:t,pageNumber:n,mode:i.mode,attempt:c,reason:u}),s=a,c<i.attempts&&(yield gm(350))}throw s instanceof Error?s:new Error(String(s||"resolve_image_failed"))})}function km(e,t){const n=URL.createObjectURL(t),r=globalThis.GM_download;if(console.log("[GalleryDownloadService] download trigger start",{fileName:e,size:t.size}),!wm()&&typeof r=="function")try{r({url:n,name:e,saveAs:!1,onload:()=>{console.log("[GalleryDownloadService] download trigger done (GM_download onload)",{fileName:e}),URL.revokeObjectURL(n)},onerror:()=>{console.log("[GalleryDownloadService] download trigger done (GM_download onerror)",{fileName:e}),URL.revokeObjectURL(n)},ontimeout:()=>{console.log("[GalleryDownloadService] download trigger done (GM_download ontimeout)",{fileName:e}),URL.revokeObjectURL(n)},onabort:()=>{console.log("[GalleryDownloadService] download trigger done (GM_download onabort)",{fileName:e}),URL.revokeObjectURL(n)}}),console.log("[GalleryDownloadService] download trigger done (GM_download submitted)",{fileName:e});return}catch(s){URL.revokeObjectURL(n)}const o=document.createElement("a");o.href=n,o.download=e,o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o),console.log("[GalleryDownloadService] download trigger done (anchor click)",{fileName:e}),window.setTimeout(()=>URL.revokeObjectURL(n),500)}class xm{constructor(){ie(this,"abortedTaskSet",new Set)}abort(t){this.abortedTaskSet.add(t)}assertNotAborted(t){if(this.abortedTaskSet.has(t))throw new Error("DOWNLOAD_ABORTED")}run(t){return Pe(this,null,function*(){const n=Kn(at({},t),{chunkSize:mm(t.chunkSize)});this.abortedTaskSet.delete(n.taskId);const r=Math.max(0,n.pageCount),o=Math.max(1,Math.ceil((r||1)/n.chunkSize)),s=[],i=[],c=Math.max(4,String(r).length),a=bm(n.galleryTitle),u=new Date().toISOString();if(n.onStatus({phase:"queued",severity:"info",message:Xt("downloadQueued"),processedPages:0,totalPages:r,failedPages:0}),r<=0)return n.onStatus({phase:"failed",severity:"error",message:Xt("downloadNoPages"),processedPages:0,totalPages:r,failedPages:0}),{status:"failed",totalPages:r,processedPages:0,failedPages:0,chunks:[],failures:[{pageNumber:0,reason:"no_pages"}]};let l=1,f=0,p=[],h=0;const m=k=>Pe(this,null,function*(){this.assertNotAborted(n.taskId);const y={introUrl:n.introUrl,galleryTitle:n.galleryTitle,totalPages:r,downloadTime:u,eHunterVersion:n.eHunterVersion||vm(),totalChunks:o,chunkIndex:l},b={"metadata.json":Qs(`${JSON.stringify(y,null,2)}
`)},w=[...k].sort((C,D)=>C.pageNumber-D.pageNumber);for(const C of w)try{const M=`${String(C.pageNumber).padStart(c,"0")}.${C.extension}`;b[M]=new Uint8Array(yield C.blob.arrayBuffer())}catch(D){const M=D instanceof Error?D.message:String(D);s.push({pageNumber:C.pageNumber,reason:`ZIP_PREP_FAILED:${M}`}),p.push(C.pageNumber),h=Math.max(0,h-1)}finally{C.blob=new Blob}n.onStatus({phase:"compressing",severity:"info",message:Xt("downloadCompressing",{chunk:l,totalChunks:o}),processedPages:f,totalPages:r,failedPages:s.length}),console.log("[GalleryDownloadService] zip compress start",{chunkIndex:l,totalChunks:o,fileCount:w.length});const v=lm(b,{level:0}),x=new Uint8Array(v.length);x.set(v);const E=new Blob([x],{type:"application/zip"});console.log("[GalleryDownloadService] zip compress done",{chunkIndex:l,totalChunks:o,zipSize:E.size}),this.assertNotAborted(n.taskId);const F=o>1?`${a}_part-${String(l).padStart(2,"0")}-of-${String(o).padStart(2,"0")}.zip`:`${a}.zip`;km(F,E),i.push({chunkIndex:l,totalChunks:o,zipFileName:F,successCount:h,failedCount:p.length,failedPageNumbers:[...p]}),l+=1,p=[],h=0});for(let k=1;k<=r;k+=n.chunkSize){this.assertNotAborted(n.taskId);const y=Math.min(r,k+n.chunkSize-1),b=[];for(let E=k;E<=y;E++)b.push(E);const w=[],v=[...b],x=()=>Pe(this,null,function*(){for(;v.length>0;){this.assertNotAborted(n.taskId);const E=v.shift();if(!E)return;n.onStatus({phase:"fetching",severity:"info",message:Xt("downloadFetching",{current:E,total:r}),processedPages:f,totalPages:r,failedPages:s.length});const F=E-1;try{const C=yield Sm(n.albumService,F,E,n.autoRetryByOtherSource);this.assertNotAborted(n.taskId),w.push(C),h+=1}catch(C){const D=C instanceof Error?C.message:String(C);s.push({pageNumber:E,reason:D}),p.push(E)}f+=1,n.onStatus({phase:"fetching",severity:"info",message:Xt("downloadFetching",{current:f,total:r}),processedPages:f,totalPages:r,failedPages:s.length})}});yield Promise.all([x(),x(),x()]);try{yield m(w)}catch(E){const F=E instanceof Error?E.message:String(E);s.push({pageNumber:k,reason:`CHUNK_FINALIZE_FAILED:${F}`}),n.onStatus({phase:"partial",severity:"warning",message:Xt("downloadChunkFailed",{chunk:l,reason:F}),processedPages:f,totalPages:r,failedPages:s.length}),l+=1,p=[],h=0}}this.assertNotAborted(n.taskId);const g=s.length===0?"completed":s.length===r?"failed":"partial";return n.onStatus({phase:g,severity:g==="completed"?"success":g==="partial"?"warning":"error",message:g==="completed"?Xt("downloadCompleted"):g==="partial"?Xt("downloadPartial",{failed:s.length}):Xt("downloadFailed"),processedPages:f,totalPages:r,failedPages:s.length}),{status:g,totalPages:r,processedPages:f,failedPages:s.length,chunks:i,failures:s}})}}function Cm(e){return{title:e.title,mdText:e.mdText,isCompulsive:e.isCompulsive,operations:e.operations?[...e.operations]:[]}}let xu=0;function Tm(e){xu+=1;const t=Cm(e);return Kn(at({},t),{id:`dialog-${Date.now()}-${xu}`})}function Cu(){const e=d.instructionDialogStack,t=e.length>0?e[e.length-1]:null;if(!t){d.showInstructionDialog=!1,d.instructionDialogTitle="",d.instructionDialogMdText="",d.instructionDialogCompulsive=!1,d.instructionDialogOperations=[];return}d.showInstructionDialog=!0,d.instructionDialogTitle=t.title,d.instructionDialogMdText=t.mdText,d.instructionDialogCompulsive=t.isCompulsive!==!1,d.instructionDialogOperations=t.operations?[...t.operations]:[]}const bo="ehunter:reader:prefs:page-turn-animation",Tu=1,Ys="realistic",yo="ehunter:reader:prefs:unified-settings",Eu=3;let en=0,xr=!1,Hn=null,$n=Jl(),Iu=null;const Js={},wo=[{id:"readingMode",i18nKey:"readingMode",modeScope:"both",fixed:!0},{id:"widthScale",i18nKey:"widthScale",modeScope:"scroll-only"},{id:"loadNum",i18nKey:"loadNum",modeScope:"both"},{id:"volumeSize",i18nKey:"volSize",modeScope:"scroll-only"},{id:"showThumbView",i18nKey:"thumbView",modeScope:"scroll-only"},{id:"scrollPageMargin",i18nKey:"pageMargin",modeScope:"scroll-only"},{id:"pagesPerScreen",i18nKey:"screenSize",modeScope:"book-only"},{id:"bookDirection",i18nKey:"bookDirection",modeScope:"book-only"},{id:"pageTurnAnimationMode",i18nKey:"pageTurnAnimation",modeScope:"book-only"},{id:"showBookPagination",i18nKey:"pagination",modeScope:"book-only"},{id:"isChangeOddEven",i18nKey:"oddEven",modeScope:"book-only"},{id:"isAutoFlip",i18nKey:"autoFlip",modeScope:"book-only"},{id:"autoFlipFrequency",i18nKey:"autoFlipFrequency",modeScope:"book-only"},{id:"showBookThumbView",i18nKey:"thumbView",modeScope:"book-only"},{id:"IsReverseBookWheeFliplDirection",i18nKey:"wheelDirection",modeScope:"book-only"},{id:"wheelSensitivity",i18nKey:"wheelSensitivity",modeScope:"book-only"},{id:"lang",i18nKey:"languageSetting",modeScope:"both"},{id:"autoRetryByOtherSource",i18nKey:"autoSourceRetry",modeScope:"both"}],Em=[{id:"general",i18nKey:"settingsGeneral"},{id:"scroll",i18nKey:"settingsScrollMode"},{id:"book",i18nKey:"settingsBookMode"},{id:"quick",i18nKey:"settingsQuick"},{id:"shortcuts",i18nKey:"settingsShortcuts"},{id:"other",i18nKey:"settingsOther"}],Au=[{id:"goPrev",labelI18nKey:"shortcutGoPrev",tipI18nKey:"shortcutGoPrevTip"},{id:"goNext",labelI18nKey:"shortcutGoNext",tipI18nKey:"shortcutGoNextTip"},{id:"toggleMoreSettings",labelI18nKey:"shortcutToggleMoreSettings",tipI18nKey:"shortcutToggleMoreSettingsTip"},{id:"toggleTopBar",labelI18nKey:"shortcutToggleTopBar",tipI18nKey:"shortcutToggleTopBarTip"},{id:"toggleThumbView",labelI18nKey:"shortcutToggleThumbView",tipI18nKey:"shortcutToggleThumbViewTip"},{id:"toggleQuickPreview",labelI18nKey:"shortcutToggleQuickPreview",tipI18nKey:"shortcutToggleQuickPreviewTip"},{id:"increaseWidthScale",labelI18nKey:"shortcutIncreaseWidthScale",tipI18nKey:"shortcutIncreaseWidthScaleTip"},{id:"decreaseWidthScale",labelI18nKey:"shortcutDecreaseWidthScale",tipI18nKey:"shortcutDecreaseWidthScaleTip"},{id:"togglePagination",labelI18nKey:"shortcutTogglePagination",tipI18nKey:"shortcutTogglePaginationTip"},{id:"toggleAutoFlip",labelI18nKey:"shortcutToggleAutoFlip",tipI18nKey:"shortcutToggleAutoFlipTip"},{id:"toggleOddEven",labelI18nKey:"shortcutToggleOddEven",tipI18nKey:"shortcutToggleOddEvenTip"}],jn={goPrev:"ArrowLeft,ArrowUp,a",goNext:"ArrowRight,ArrowDown,d",toggleMoreSettings:"Shift",toggleTopBar:"q",toggleThumbView:"t",toggleQuickPreview:"f",increaseWidthScale:"]",decreaseWidthScale:"[",togglePagination:"",toggleAutoFlip:"",toggleOddEven:""},Du=[{key:"ArrowUp",label:"↑"},{key:"ArrowDown",label:"↓"},{key:"ArrowLeft",label:"←"},{key:"ArrowRight",label:"→"},{key:"Escape",label:"Esc"},{key:"Tab",label:"Tab"},{key:"CapsLock",label:"Caps"},{key:"Control",label:"Ctrl"},{key:"Shift",label:"Shift"},{key:"F1",label:"F1"},{key:"F2",label:"F2"},{key:"F3",label:"F3"},{key:"F4",label:"F4"},{key:"F5",label:"F5"},{key:"F6",label:"F6"},{key:"F7",label:"F7"},{key:"F8",label:"F8"},{key:"F9",label:"F9"},{key:"F10",label:"F10"},{key:"F11",label:"F11"},{key:"F12",label:"F12"},{key:"1",label:"1"},{key:"2",label:"2"},{key:"3",label:"3"},{key:"4",label:"4"},{key:"5",label:"5"},{key:"6",label:"6"},{key:"7",label:"7"},{key:"8",label:"8"},{key:"9",label:"9"},{key:"-",label:"-"},{key:"=",label:"="},{key:"[",label:"["},{key:"]",label:"]"},{key:"a",label:"A"},{key:"b",label:"B"},{key:"c",label:"C"},{key:"d",label:"D"},{key:"e",label:"E"},{key:"f",label:"F"},{key:"g",label:"G"},{key:"h",label:"H"},{key:"i",label:"I"},{key:"j",label:"J"},{key:"k",label:"K"},{key:"l",label:"L"},{key:"m",label:"M"},{key:"n",label:"N"},{key:"o",label:"O"},{key:"p",label:"P"},{key:"q",label:"Q"},{key:"r",label:"R"},{key:"s",label:"S"},{key:"t",label:"T"},{key:"u",label:"U"},{key:"v",label:"V"},{key:"w",label:"W"},{key:"x",label:"X"},{key:"y",label:"Y"},{key:"z",label:"Z"}],_o=[{id:"readingMode",control:"drop",labelI18nKey:"readingMode",tipI18nKey:"readingModeTip",modeScope:"both",showInTopBar:!0,showInDialog:!1,dropKey:"readingModeList"},{id:"lang",control:"drop",labelI18nKey:"languageSetting",tipI18nKey:"languageSettingTip",modeScope:"both",showInTopBar:!0,showInDialog:!0,dialogCategory:"general",dropKey:"langList",useAbbrName:!0},{id:"loadNum",control:"num",labelI18nKey:"loadNum",tipI18nKey:"loadNumTip",modeScope:"both",showInTopBar:!0,showInDialog:!0,dialogCategory:"general",numKey:"loadNum",min:1,max:100},{id:"downloadChunkSize",control:"num",labelI18nKey:"downloadChunkSize",tipI18nKey:"downloadChunkSizeTip",modeScope:"both",showInTopBar:!1,showInDialog:!0,dialogCategory:"general",numKey:"downloadChunkSize",min:1,max:1e3},{id:"autoRetryByOtherSource",control:"switch",labelI18nKey:"autoSourceRetry",tipI18nKey:"autoSourceRetryTip",modeScope:"both",showInTopBar:!0,showInDialog:!0,dialogCategory:"general"},{id:"magnifierZoom",control:"num",labelI18nKey:"magnifierZoom",tipI18nKey:"magnifierZoomTip",modeScope:"both",showInTopBar:!1,showInDialog:!0,dialogCategory:"general",numKey:"magnifierZoom",min:2,max:5},{id:"magnifierAreaSize",control:"num",labelI18nKey:"magnifierAreaSize",tipI18nKey:"magnifierAreaSizeTip",modeScope:"both",showInTopBar:!1,showInDialog:!0,dialogCategory:"general",numKey:"magnifierAreaSize",min:20,max:300},{id:"widthScale",control:"num",labelI18nKey:"widthScale",tipI18nKey:"widthScaleTip",modeScope:"scroll-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"scroll",numKey:"widthScale",min:30,max:100,isFloat:!0},{id:"volumeSize",control:"num",labelI18nKey:"volSize",tipI18nKey:"volSizeTip",modeScope:"scroll-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"scroll",numKey:"volumeSize",min:1,max:200},{id:"showThumbView",control:"switch",labelI18nKey:"thumbView",tipI18nKey:"thumbViewTip",modeScope:"scroll-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"scroll",requireThumbSupportInTopBar:!0},{id:"scrollPageMargin",control:"num",labelI18nKey:"pageMargin",tipI18nKey:"pageMarginTip",modeScope:"scroll-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"scroll",numKey:"scrollPageMargin",min:0,max:300},{id:"pagesPerScreen",control:"num",labelI18nKey:"screenSize",tipI18nKey:"screenSizeTip",modeScope:"book-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"book",numKey:"pagesPerScreen",min:1,max:10},{id:"bookDirection",control:"drop",labelI18nKey:"bookDirection",tipI18nKey:"bookDirectionTip",modeScope:"book-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"book",dropKey:"bookDirection",useAbbrName:!0},{id:"pageTurnAnimationMode",control:"drop",labelI18nKey:"pageTurnAnimation",tipI18nKey:"pageTurnAnimationTip",modeScope:"book-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"book",dropKey:"pageTurnAnimation"},{id:"showBookPagination",control:"switch",labelI18nKey:"pagination",tipI18nKey:"paginationTip",modeScope:"book-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"book"},{id:"isChangeOddEven",control:"switch",labelI18nKey:"oddEven",tipI18nKey:"oddEvenTip",modeScope:"book-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"book"},{id:"isAutoFlip",control:"switch",labelI18nKey:"autoFlip",tipI18nKey:"autoFlipTip",modeScope:"book-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"book"},{id:"autoFlipFrequency",control:"num",labelI18nKey:"autoFlipFrequency",tipI18nKey:"autoFlipFrequencyTip",modeScope:"book-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"book",numKey:"autoFlipFrequency",min:1,max:240},{id:"showBookThumbView",control:"switch",labelI18nKey:"thumbView",tipI18nKey:"thumbViewTip",modeScope:"book-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"book"},{id:"IsReverseBookWheeFliplDirection",control:"switch",labelI18nKey:"wheelDirection",tipI18nKey:"wheelDirectionTip",modeScope:"book-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"book"},{id:"wheelSensitivity",control:"num",labelI18nKey:"wheelSensitivity",tipI18nKey:"wheelSensitivityTip",modeScope:"book-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"book",numKey:"wheelSensitivity",min:1,max:250}],Fe=_o.reduce((e,t)=>(e[t.id]=t,e),{}),Im={general:_o.filter(e=>e.showInDialog&&e.dialogCategory==="general").map(e=>e.id),scroll:_o.filter(e=>e.showInDialog&&e.dialogCategory==="scroll").map(e=>e.id),book:_o.filter(e=>e.showInDialog&&e.dialogCategory==="book").map(e=>e.id)},qt="readingMode",So=wo.map(e=>e.id),Xs=["readingMode","widthScale","loadNum","volumeSize","showThumbView","pagesPerScreen","bookDirection","isChangeOddEven","showBookPagination","showBookThumbView","lang"];function Mu(e){return typeof e!="string"?"":e.trim()}function Pu(e){const t=at({},jn);if(!e||typeof e!="object")return t;for(const n of Au){const r=n.id;if(!Object.prototype.hasOwnProperty.call(e,r))continue;const o=Mu(e[r]);typeof o=="string"&&(t[r]=o)}return t}function ei(e){return e==="slide"||e==="none"||e==="realistic"?e:Ys}function Am(){try{if(window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches)return"none"}catch(e){}return Ys}function Dm(){const e=globalThis.GM_getValue;return typeof e=="function"?e(bo,null):null}function Mm(e){const t=globalThis.GM_setValue;return typeof t=="function"?(t(bo,e),!0):!1}function Pm(){try{return Zt.storageGet(bo,null)}catch(e){return null}}function Rm(e){try{return Zt.storageSet(bo,e)}catch(t){return!1}}function Ru(e){if(!e)return null;if(typeof e=="string")try{e=JSON.parse(e)}catch(t){return null}return typeof e!="object"?null:{schemaVersion:Number(e.schemaVersion)||Tu,updatedAt:typeof e.updatedAt=="string"?e.updatedAt:new Date().toISOString(),scope:"global",animationMode:ei(e.animationMode)}}function qm(e){return{schemaVersion:Tu,updatedAt:new Date().toISOString(),scope:"global",animationMode:e}}function Fm(e){const t=qm(e);Mm(t)||Rm(t)}function Lm(){const e=Ru(Dm());if(e)return e.animationMode;const t=Ru(Pm());return t?t.animationMode:Am()}function Nm(){const e=globalThis.GM_getValue;if(typeof e=="function")return e(yo,null);try{return Zt.storageGet(yo,null)}catch(t){return null}}function Om(e){const t=globalThis.GM_setValue;if(typeof t=="function"){t(yo,e);return}try{Zt.storageSet(yo,e)}catch(n){}}function qu(e,t){const n=new Set(wo.map(a=>a.id)),r=Array.isArray(t)?t:So,o=Array.isArray(e)?e:Xs,s=[];for(const a of r)typeof a=="string"&&n.has(a)&&!s.includes(a)&&s.push(a);for(const a of So)s.includes(a)||s.push(a);const i=[];for(const a of o)typeof a=="string"&&n.has(a)&&!i.includes(a)&&i.push(a);i.includes(qt)||i.unshift(qt);const c=s.filter(a=>a!==qt);return{selected:i,order:[qt,...c]}}function zm(e){if(!e)return null;if(typeof e=="string")try{e=JSON.parse(e)}catch(o){return null}if(typeof e!="object")return null;const t=qu(e.quickSelection,e.quickOrder),n=Number(e.schemaVersion)||Eu,r=Pu(e.shortcuts);return n<2&&(!r.toggleQuickPreview||!r.toggleQuickPreview.trim())&&(r.toggleQuickPreview=jn.toggleQuickPreview),n<3&&((!r.toggleTopBar||r.toggleTopBar.trim()===""||r.toggleTopBar==="Escape")&&(r.toggleTopBar=jn.toggleTopBar),(!r.toggleThumbView||r.toggleThumbView.trim()===""||r.toggleThumbView==="~")&&(r.toggleThumbView=jn.toggleThumbView)),{schemaVersion:n,updatedAt:typeof e.updatedAt=="string"?e.updatedAt:new Date().toISOString(),settings:typeof e.settings=="object"&&e.settings?e.settings:{},quickSelection:t.selected,quickOrder:t.order,shortcuts:r}}function xe(){const e={schemaVersion:Eu,updatedAt:new Date().toISOString(),settings:{readingMode:d.readingMode,widthScale:d.widthScale,loadNum:d.loadNum,downloadChunkSize:d.downloadChunkSize,volumeSize:d.volumeSize,showThumbView:d.showThumbView,scrollPageMargin:d.scrollPageMargin,pagesPerScreen:d.pagesPerScreen,bookDirection:d.bookDirection,pageTurnAnimationMode:d.pageTurnAnimationMode,showBookPagination:d.showBookPagination,isChangeOddEven:d.isChangeOddEven,isReverseFlip:d.isReverseFlip,isAutoFlip:d.isAutoFlip,autoFlipFrequency:d.autoFlipFrequency,showBookThumbView:d.showBookThumbView,IsReverseBookWheeFliplDirection:d.IsReverseBookWheeFliplDirection,wheelSensitivity:d.wheelSensitivity,magnifierZoom:d.magnifierZoom,magnifierAreaSize:d.magnifierAreaSize,lang:pt.value,autoRetryByOtherSource:d.autoRetryByOtherSource,hasShownWelcomeInstruction:d.hasShownWelcomeInstruction,hasShownBookInstruction:d.hasShownBookInstruction,lastSeenVersionNotice:d.lastSeenVersionNotice,lastRemoteUpdateNoticeAt:d.lastRemoteUpdateNoticeAt},quickSelection:[...d.quickSettingSelected],quickOrder:[...d.quickSettingOrder],shortcuts:at({},d.shortcutBindings)};Om(e)}function Bm(){const e=zm(Nm());if(!e){d.quickSettingSelected=[...Xs],d.quickSettingOrder=[...So];return}const t=e.settings||{},n=[["readingMode","readingMode"],["widthScale","widthScale"],["loadNum","loadNum"],["downloadChunkSize","downloadChunkSize"],["volumeSize","volumeSize"],["scrollPageMargin","scrollPageMargin"],["pagesPerScreen","pagesPerScreen"],["bookDirection","bookDirection"],["autoFlipFrequency","autoFlipFrequency"],["wheelSensitivity","wheelSensitivity"],["magnifierZoom","magnifierZoom"],["magnifierAreaSize","magnifierAreaSize"]];for(const[s,i]of n)typeof t[s]=="number"&&Number.isFinite(t[s])&&(d[i]=t[s]);const r=[["showThumbView","showThumbView"],["showBookPagination","showBookPagination"],["isChangeOddEven","isChangeOddEven"],["isReverseFlip","isReverseFlip"],["isAutoFlip","isAutoFlip"],["showBookThumbView","showBookThumbView"],["IsReverseBookWheeFliplDirection","IsReverseBookWheeFliplDirection"],["autoRetryByOtherSource","autoRetryByOtherSource"],["hasShownWelcomeInstruction","hasShownWelcomeInstruction"],["hasShownBookInstruction","hasShownBookInstruction"]];for(const[s,i]of r)typeof t[s]=="boolean"&&(d[i]=t[s]);d.pageTurnAnimationMode=ei(t.pageTurnAnimationMode),typeof t.lang=="string"&&["cn","en","jp"].includes(t.lang)&&(pt.value=t.lang),typeof t.hasShownWelcomeInstruction=="boolean"?d.hasShownWelcomeInstruction=t.hasShownWelcomeInstruction:d.hasShownWelcomeInstruction=!1,typeof t.hasShownBookInstruction=="boolean"?d.hasShownBookInstruction=t.hasShownBookInstruction:d.hasShownBookInstruction=!1,typeof t.lastSeenVersionNotice=="string"?d.lastSeenVersionNotice=t.lastSeenVersionNotice:d.lastSeenVersionNotice="",typeof t.lastRemoteUpdateNoticeAt=="number"&&Number.isFinite(t.lastRemoteUpdateNoticeAt)?d.lastRemoteUpdateNoticeAt=t.lastRemoteUpdateNoticeAt:d.lastRemoteUpdateNoticeAt=0;const o=qu(e.quickSelection,e.quickOrder);d.quickSettingSelected=o.selected,d.quickSettingOrder=o.order,d.shortcutBindings=Pu(e.shortcuts),xe()}function Fu(e){return e===0?"scroll":"book"}function Cr(e){d.thumbItemWidth=Math.max(60,Math.round(e)),d.thumbImgWidth=Math.max(40,Math.round(d.thumbItemWidth*(100/150))),d.thumbItemHeight=Math.max(64,Math.round(d.thumbItemWidth*(160/150)))}function Lu(){const e=Fu(d.readingMode),t=$n.layouts[e],n=po(t.thumbSlot);d.thumbDockSlot=n;const r=Yt(n,t.thumbSizePx);d.thumbViewWidth=r,d.thumbViewHeight=Yt("bottom",t.thumbSizePx),Cr(r)}function Nu(){const e=Fu(d.readingMode),t=po(d.thumbDockSlot),n=t==="bottom"?d.thumbViewHeight:d.thumbViewWidth;$n.layouts[e]={thumbSlot:t,thumbSizePx:Yt(t,n),updatedAt:new Date().toISOString()},$n.updatedAt=new Date().toISOString(),$n=Gg($n)}const Vm=J(()=>{const e=new Set(d.quickSettingSelected);return d.quickSettingOrder.filter(t=>{if(!e.has(t))return!1;const n=wo.find(r=>r.id===t);return n?n.modeScope==="both"?!0:n.modeScope==="scroll-only"?d.readingMode===0:d.readingMode===1:!1})});function Hm(){const t=(typeof window!="undefined"?window.innerWidth:1024)<767;return{showThumbView:!t,showBookThumbView:!t,pagesPerScreen:t?1:2,showBookPagination:!t}}const ko=Hm(),d=zr({viewportWidth:0,viewportHeight:0,isSupportThumbView:!0,showTopBar:!1,showMoreSettings:!1,showMoreSettingsDialog:!1,showThumbExpandDialog:!1,showDownloadConfirmDialog:!1,showInstructionDialog:!1,instructionDialogTitle:"",instructionDialogMdText:"",instructionDialogCompulsive:!1,instructionDialogOperations:[],instructionDialogStack:[],activeSettingsCategory:"general",topBarHeight:40,readingMode:0,widthScale:80,loadNum:3,downloadChunkSize:200,volumeSize:100,showThumbView:ko.showThumbView,bookDirection:0,showBookPagination:ko.showBookPagination,isChangeOddEven:!1,isReverseFlip:!1,isAutoFlip:!1,autoFlipFrequency:10,showBookThumbView:ko.showBookThumbView,IsReverseBookWheeFliplDirection:!1,wheelSensitivity:100,scrollPageMargin:70,autoRetryByOtherSource:!0,magnifierZoom:3,magnifierAreaSize:80,hasShownWelcomeInstruction:!1,hasShownBookInstruction:!1,lastSeenVersionNotice:"",lastRemoteUpdateNoticeAt:0,quickSettingSelected:[...Xs],quickSettingOrder:[...So],shortcutBindings:at({},jn),isFactoryResetDialogVisible:!1,factoryResetStatus:"idle",factoryResetErrorMessage:"",downloadNotifications:[],downloadTaskMap:{},thumbDockSlot:"left",thumbViewWidth:150,thumbViewHeight:200,thumbItemWidth:150,thumbItemHeight:160,thumbImgWidth:100,thumbExpandSegmentIndex:0,pagesPerScreen:ko.pagesPerScreen,flipDirection:0,pageTurnAnimationMode:Ys,thumbInfos:[],imgPageInfos:[],pageCount:0,curViewIndex:0,curViewIndexUpdater:"",albumTitle:""}),xo=J(()=>Math.ceil((d.curViewIndex+1)/d.volumeSize)),yt=J(()=>(xo.value-1)*d.volumeSize),Ou=J(()=>d.curViewIndex-yt.value),Tr=J(()=>Math.ceil(d.pageCount/d.volumeSize)),$m=J(()=>{let e=[];const t=yt.value+d.volumeSize;for(let n=yt.value;n<t&&n<d.pageCount;n++)e.push(n);return e}),jm=J(()=>{let e=[];if(xo.value>=Tr.value)return e;let t=d.curViewIndex+d.loadNum-(yt.value+d.volumeSize);if(t<=0)return e;for(let n=0;n<t;n++){let r=yt.value+d.volumeSize+n;r<=d.pageCount-1&&e.push(r)}return e}),ti=J(()=>(d.readingMode==0&&d.showThumbView||d.readingMode==1&&d.showBookThumbView)&&d.thumbDockSlot!=="bottom"?d.viewportWidth-d.thumbViewWidth:d.viewportWidth),ni=J(()=>{const e=d.readingMode==0&&d.showThumbView||d.readingMode==1&&d.showBookThumbView;let t=d.viewportHeight;return d.showTopBar&&(t-=d.topBarHeight),e&&d.thumbDockSlot==="bottom"&&(t-=d.thumbViewHeight),t}),Um=J(()=>ni.value/ti.value),ri={readingModeList:[{i18nKey:"scrollMode",val:0},{i18nKey:"bookMode",val:1}],widthScale:{list:[40,50,55,60,65,70,75,80,85,90,95,100],suffix:"%"},loadNum:{list:[1,2,3,5,10,20,30,40,50,100],suffix:"P"},downloadChunkSize:{list:[50,100,150,200,300,500],suffix:"P"},volumeSize:{list:[10,20,30,50,100],suffix:"P"},pagesPerScreen:{list:[1,2,3,4,5],suffix:"P"},bookDirection:{list:[{i18nKey:"rtl",abbrI18nKey:"rtlAbbr",val:0},{i18nKey:"ltr",abbrI18nKey:"ltrAbbr",val:1}]},pageTurnAnimation:{list:[{i18nKey:"pageTurnAnimationRealistic",val:"realistic"},{i18nKey:"pageTurnAnimationSlide",val:"slide"},{i18nKey:"pageTurnAnimationNone",val:"none"}]},autoFlipFrequency:{list:[3,5,8,10,15,20,30,45,60],suffix:" sec"},wheelSensitivity:{list:[10,30,50,80,100,120,150,170,200,220,250]},magnifierZoom:{list:[2,3,4,5],suffix:"x"},magnifierAreaSize:{list:[50,80,120,150],suffix:"px"},scrollPageMargin:{list:[0,30,70,100,150],suffix:"px"},langList:[{name:"English",abbrName:"EN",val:"en"},{name:"简体中文",abbrName:"CN",val:"cn"},{name:"日本語",abbrName:"JP",val:"jp"}]},B={toggleShowMoreSettings:()=>{B.toggleShowMoreSettingsDialog()},toggleShowMoreSettingsDialog:()=>{d.showMoreSettingsDialog=!d.showMoreSettingsDialog,d.showMoreSettingsDialog&&(d.activeSettingsCategory="general")},openMoreSettingsDialog:()=>{d.showMoreSettingsDialog=!0,d.activeSettingsCategory="general"},closeMoreSettingsDialog:()=>{d.showMoreSettingsDialog=!1},openThumbExpandDialog:()=>{d.thumbExpandSegmentIndex=ru(d.curViewIndex),d.showThumbExpandDialog=!0},closeThumbExpandDialog:()=>{d.showThumbExpandDialog=!1},openDownloadConfirmDialog:()=>{d.showDownloadConfirmDialog=!0},closeDownloadConfirmDialog:()=>{d.showDownloadConfirmDialog=!1},openInstructionDialog:e=>{d.instructionDialogStack.push(Tm(e)),Cu()},closeInstructionDialog:e=>{if(e){const t=d.instructionDialogStack.findIndex(n=>n.id===e);t>=0&&d.instructionDialogStack.splice(t,1)}else d.instructionDialogStack.pop();Cu(),d.showInstructionDialog||Ls()},openWelcomeInstructionDialog:()=>{Ul(!1)},markWelcomeInstructionShown:()=>{d.hasShownWelcomeInstruction=!0,xe()},markBookInstructionShown:()=>{d.hasShownBookInstruction=!0,xe()},markVersionNoticeSeen:e=>{d.lastSeenVersionNotice=e,xe()},markRemoteUpdateNoticeShown:e=>{d.lastRemoteUpdateNoticeAt=e,xe()},setThumbExpandSegmentIndex:e=>{d.thumbExpandSegmentIndex=Vs(e,d.pageCount)},setActiveSettingsCategory:e=>{d.activeSettingsCategory=e},toggleShowTopBar:()=>{d.showTopBar=!d.showTopBar},setTopBar:e=>{d.showTopBar=e},setReadingMode:e=>{d.readingMode=e,Lu(),uo(),Ls(),xe()},setThumbDockSlot:e=>{const t=po(e),n=d.thumbDockSlot;d.thumbDockSlot=t,t==="bottom"?(d.thumbViewHeight=Yt("bottom",n==="bottom"?d.thumbViewHeight:d.thumbViewWidth),Cr(d.thumbViewHeight)):(d.thumbViewWidth=Yt(t,n==="bottom"?d.thumbViewHeight:d.thumbViewWidth),Cr(d.thumbViewWidth)),Nu()},setThumbPanelSize:e=>{d.thumbDockSlot==="bottom"?(d.thumbViewHeight=Yt("bottom",e),Cr(d.thumbViewHeight)):(d.thumbViewWidth=Yt(d.thumbDockSlot,e),Cr(d.thumbViewWidth)),Nu()},setWidthScale:e=>{d.widthScale=e,xe()},setLoadNum:e=>{d.loadNum=e,xe()},setDownloadChunkSize:e=>{!Number.isFinite(e)||e<=0?d.downloadChunkSize=200:d.downloadChunkSize=Math.floor(e),xe()},setVolumeSize:e=>{d.volumeSize=e,xe()},toggleShowThumbView:()=>{d.showThumbView=!d.showThumbView,xe()},setPagesPerScreen:e=>{d.pagesPerScreen=e,xe()},setBookDirection:e=>{d.bookDirection=e,xe()},setPageTurnAnimationMode:e=>{let t=ei(e);d.pageTurnAnimationMode=t,Fm(t),t==="none"&&(en&&window.clearTimeout(en),en=0,xr=!1,Hn=null),xe()},toggleShowBookPagination:()=>{d.showBookPagination=!d.showBookPagination,xe()},toggleIsChangeOddEven:()=>{d.isChangeOddEven=!d.isChangeOddEven,xe()},toggleOddEvenFromPageMenu:()=>{d.isChangeOddEven=!d.isChangeOddEven,xe()},toggleIsReverseFlip:()=>{d.isReverseFlip=!d.isReverseFlip,xe()},toggleIsAutoFlip:()=>{d.isAutoFlip=!d.isAutoFlip,uo(),xe()},setAutoFlipFrequency:e=>{d.autoFlipFrequency=e,xe()},toggleShowBookThumbView:()=>{d.showBookThumbView=!d.showBookThumbView,xe()},toggleIsReverseBookWheeFliplDirection:()=>{d.IsReverseBookWheeFliplDirection=!d.IsReverseBookWheeFliplDirection,xe()},setWheelSensitivity:e=>{d.wheelSensitivity=e,xe()},setScrollPageMargin:e=>{d.scrollPageMargin=e,xe()},setMagnifierZoom:e=>{d.magnifierZoom=Math.max(2,Math.min(5,Math.round(e))),xe()},setMagnifierAreaSize:e=>{d.magnifierAreaSize=Math.max(20,Math.min(300,Math.round(e))),xe()},setLang:e=>{pt.value=e,xe()},setAutoRetryByOtherSource:e=>{d.autoRetryByOtherSource=e,xe()},setShortcutBinding:(e,t)=>{d.shortcutBindings[e]=Mu(t),xe()},resetShortcutBindings:()=>{d.shortcutBindings=at({},jn),xe()},isQuickSettingSelected:e=>d.quickSettingSelected.includes(e),toggleQuickSettingSelection:e=>{if(e===qt)return;let t=d.quickSettingSelected.indexOf(e);t>=0?d.quickSettingSelected.splice(t,1):d.quickSettingSelected.push(e),d.quickSettingSelected.includes(qt)||d.quickSettingSelected.unshift(qt),xe()},moveQuickSettingItem:(e,t)=>{if(e===qt||d.quickSettingOrder.indexOf(e)<0)return;const r=d.quickSettingOrder.filter(i=>i!==qt),o=r.indexOf(e);if(o<0)return;const s=Math.max(0,Math.min(t,r.length-1));s!==o&&(r.splice(o,1),r.splice(s,0,e),d.quickSettingOrder=[qt,...r],xe())},showFactoryResetDialog:()=>{d.isFactoryResetDialogVisible=!0,d.factoryResetStatus="confirming",d.factoryResetErrorMessage=""},hideFactoryResetDialog:()=>{d.isFactoryResetDialogVisible=!1,d.factoryResetStatus==="confirming"&&(d.factoryResetStatus="idle")},runFactoryReset:()=>{try{d.factoryResetStatus="running",d.factoryResetErrorMessage="",localStorage.clear(),window.location.reload()}catch(e){d.factoryResetStatus="failed",d.factoryResetErrorMessage="Factory reset failed"}},setCurViewIndex:(e,t)=>{const n=i=>{if(d.readingMode!==1)return i;const c=Math.max(1,d.pagesPerScreen),a=i-d.curViewIndex;return Math.abs(a)!==c?i:Hg({pageCount:d.pageCount,pagesPerScreen:d.pagesPerScreen,isChangeOddEven:d.isChangeOddEven},d.curViewIndex,a>0?1:-1)},r=(i,c)=>{if(i==d.curViewIndex)return;let a=d.curViewIndex;i<0?a=0:i>=d.pageCount?a=d.pageCount-1:a=i,a>d.curViewIndex?d.flipDirection=0:a<d.curViewIndex&&(d.flipDirection=1),d.curViewIndex=a,c&&(d.curViewIndexUpdater=c),uo()},o=()=>{switch(d.pageTurnAnimationMode){case"none":return 0;case"slide":return 220;default:return 280}},s=()=>{if(!Hn){xr=!1,en=0;return}let i=Hn;Hn=null,r(i.val,i.updater);let c=o();if(c<=0){s();return}en=window.setTimeout(s,c)};if(d.readingMode==1&&d.pageTurnAnimationMode!=="none"){if(xr){Hn={val:n(e),updater:t};return}xr=!0,r(n(e),t);let i=o();i<=0?s():en=window.setTimeout(s,i);return}en&&(window.clearTimeout(en),en=0),xr=!1,Hn=null,r(n(e),t)},setThumbInfos:e=>{d.thumbInfos=e},setImgPageInfos:e=>{d.imgPageInfos=e},setImgPageInfoSrc:(e,t)=>{e<d.imgPageInfos.length&&(d.imgPageInfos[e].src=t)},setImgPageInfoPreciseHeightOfWidth:(e,t)=>{e<d.imgPageInfos.length&&(d.imgPageInfos[e].preciseHeightOfWidth=t)},setViewportWidth:e=>{d.viewportWidth=e},setViewportHeight:e=>{d.viewportHeight=e},getAlbumService:()=>Iu,startDownloadTask:(e,t,n)=>{const r=new Date().toISOString(),o={id:`terminate-${e}`,label:W.value.terminate,variant:"danger",onClick:()=>{const s=Js[e];s&&s.abort(e)}};d.downloadTaskMap[e]={taskId:e,albumTitle:t,totalPages:n,processedPages:0,failedPages:0,status:"queued",actions:[o],createdAt:r,updatedAt:r}},registerDownloadRunner:(e,t)=>{Js[e]=t},clearDownloadRunner:e=>{delete Js[e]},applyDownloadStatusEvent:(e,t,n)=>{const r=new Date().toISOString();d.downloadTaskMap[e]||B.startDownloadTask(e,t,n.totalPages);const o=d.downloadTaskMap[e];o.status=n.phase,o.processedPages=n.processedPages,o.failedPages=n.failedPages,o.totalPages=n.totalPages,o.updatedAt=r;const s=`download:${e}`,i=d.downloadNotifications.findIndex(a=>a.notificationId===s),c={notificationId:s,taskId:e,title:t,phase:n.phase,severity:n.severity,message:n.message,progressCurrent:n.processedPages,progressTotal:n.totalPages,actions:["completed","failed","partial"].includes(n.phase)?[]:o.actions,createdAt:i>=0?d.downloadNotifications[i].createdAt:r,updatedAt:r};if(i>=0){d.downloadNotifications[i]=c;return}d.downloadNotifications.unshift(c)},dismissDownloadNotification:e=>{const t=d.downloadNotifications.findIndex(n=>n.notificationId===e);t>=0&&d.downloadNotifications.splice(t,1)},triggerDownloadNotificationAction:(e,t)=>{const n=d.downloadNotifications.find(o=>o.notificationId===e);if(!n||!n.actions)return;const r=n.actions.find(o=>o.id===t);r&&r.onClick&&r.onClick(n)},getImgPageInfo:e=>d.imgPageInfos[e],getImgPageHeightOfWidth:e=>{let t=B.getImgPageInfo(e);return t.preciseHeightOfWidth?t.preciseHeightOfWidth:t.heightOfWidth}};let zu=!1;function Wm(e){if(zu)return;d.pageCount=e.getPageCount(),Iu=e;let t=e.getThumbInfos(!1);d.thumbInfos=JSON.parse(JSON.stringify(t));let n=e.getImgPageInfos();d.imgPageInfos=JSON.parse(JSON.stringify(n)),d.albumTitle=e.getTitle(),d.curViewIndex=e.getCurPageIndex(),d.pageTurnAnimationMode=Lm(),Bm(),$n=Kg(),Lu(),mg(),wg(),uo(),Ls(),Tg(),zu=!0}je(()=>pt.value,()=>{xe()});const Km={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function Gm(e,t){return R(),V("svg",Km,[...t[0]||(t[0]=[I("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),I("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"},null,-1)])])}const Qm={render:Gm},Zm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function Ym(e,t){return R(),V("svg",Zm,[...t[0]||(t[0]=[I("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),I("path",{d:"M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15z"},null,-1)])])}const Bu={render:Ym},Jm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function Xm(e,t){return R(),V("svg",Jm,[...t[0]||(t[0]=[I("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},null,-1),I("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1)])])}const ev={render:Xm},tv={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function nv(e,t){return R(),V("svg",tv,[...t[0]||(t[0]=[I("path",{d:"m15.41 16.09-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"},null,-1),I("path",{fill:"none",d:"M0-.5h24v24H0z"},null,-1)])])}const Vu={render:nv},rv={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"};function ov(e,t){return R(),V("svg",rv,[...t[0]||(t[0]=[I("path",{d:"M6 20q-.825 0-1.412-.587Q4 18.825 4 18t.588-1.413Q5.175 16 6 16t1.412.587Q8 17.175 8 18t-.588 1.413Q6.825 20 6 20m6 0q-.825 0-1.412-.587Q10 18.825 10 18t.588-1.413Q11.175 16 12 16t1.413.587Q14 17.175 14 18t-.587 1.413Q12.825 20 12 20m6 0q-.825 0-1.413-.587Q16 18.825 16 18t.587-1.413Q17.175 16 18 16t1.413.587Q20 17.175 20 18t-.587 1.413Q18.825 20 18 20M6 14q-.825 0-1.412-.588Q4 12.825 4 12t.588-1.413Q5.175 10 6 10t1.412.587Q8 11.175 8 12t-.588 1.412Q6.825 14 6 14m6 0q-.825 0-1.412-.588Q10 12.825 10 12t.588-1.413Q11.175 10 12 10t1.413.587T14 12q0 .825-.587 1.412Q12.825 14 12 14m6 0q-.825 0-1.413-.588Q16 12.825 16 12t.587-1.413Q17.175 10 18 10t1.413.587Q20 11.175 20 12t-.587 1.412Q18.825 14 18 14M6 8q-.825 0-1.412-.588Q4 6.825 4 6t.588-1.412Q5.175 4 6 4t1.412.588Q8 5.175 8 6t-.588 1.412Q6.825 8 6 8m6 0q-.825 0-1.412-.588Q10 6.825 10 6t.588-1.412Q11.175 4 12 4t1.413.588Q14 5.175 14 6t-.587 1.412Q12.825 8 12 8m6 0q-.825 0-1.413-.588Q16 6.825 16 6t.587-1.412Q17.175 4 18 4t1.413.588Q20 5.175 20 6t-.587 1.412Q18.825 8 18 8"},null,-1)])])}const sv={render:ov},iv={xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48"};function cv(e,t){return R(),V("svg",iv,[...t[0]||(t[0]=[I("path",{d:"M24 40q-1 0-1.7-.7t-.7-1.7.7-1.7 1.7-.7 1.7.7.7 1.7-.7 1.7-1.7.7m0-13.6q-1 0-1.7-.7t-.7-1.7.7-1.7 1.7-.7 1.7.7.7 1.7-.7 1.7-1.7.7m0-13.6q-1 0-1.7-.7t-.7-1.7.7-1.7T24 8t1.7.7.7 1.7-.7 1.7-1.7.7"},null,-1)])])}const av={render:cv},lv={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"#1f1f1f",viewBox:"0 -960 960 960"};function uv(e,t){return R(),V("svg",lv,[...t[0]||(t[0]=[I("path",{d:"M480-160q-33 0-56.5-23.5T400-240t23.5-56.5T480-320t56.5 23.5T560-240t-23.5 56.5T480-160m0-240q-33 0-56.5-23.5T400-480t23.5-56.5T480-560t56.5 23.5T560-480t-23.5 56.5T480-400m0-240q-33 0-56.5-23.5T400-720t23.5-56.5T480-800t56.5 23.5T560-720t-23.5 56.5T480-640"},null,-1)])])}const fv={render:uv},hv={xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 -960 960 960"};function dv(e,t){return R(),V("svg",hv,[...t[0]||(t[0]=[I("path",{d:"M200-200v-60h560v60zm9-152 271-408 271 408zm110-60h322L480-650z"},null,-1)])])}const pv={render:dv},gv=Te({__name:"CircleIconButton",props:{iconType:String,size:String,rotate:{type:Boolean,default:!0}},emits:["click"],setup(e){return(t,n)=>(R(),V("div",{class:be(["circle-icon-button",{big:e.size=="big"}]),onClick:n[0]||(n[0]=r=>t.$emit("click"))},[e.iconType=="menu"?(R(),ge(S(Qm),{key:0,class:be({rotate:e.rotate})},null,8,["class"])):ue("",!0),e.iconType=="close"?(R(),ge(S(ev),{key:1,class:be({rotate:e.rotate})},null,8,["class"])):ue("",!0),e.iconType=="expand"?(R(),ge(S(Bu),{key:2,class:be({rotate:e.rotate})},null,8,["class"])):ue("",!0),e.iconType=="up_arrow"?(R(),ge(S(Vu),{key:3,class:"rotate90"})):ue("",!0),e.iconType=="apps"?(R(),ge(S(sv),{key:4})):ue("",!0),e.iconType=="more_vert"?(R(),ge(S(av),{key:5})):ue("",!0),e.iconType=="more"?(R(),ge(S(fv),{key:6})):ue("",!0),e.iconType=="eject"?(R(),ge(S(pv),{key:7,class:be({rotate180:!e.rotate})},null,8,["class"])):ue("",!0)],2))}}),Re=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},oi=Re(gv,[["__scopeId","data-v-2a2205e2"]]),mv={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function vv(e,t){return R(),V("svg",mv,[...t[0]||(t[0]=[I("path",{d:"m7 10 5 5 5-5z"},null,-1),I("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1)])])}const bv={render:vv},Co=Re(Te({__name:"Popover",props:{active:Boolean,customStyle:Object,isCloseToRight:Boolean},emits:["close"],setup(e,{emit:t}){const n=e,r=t,o=Y(null),s=Y(0),i=Y(0),c=J(()=>Kn(at({},n.customStyle||{}),{transform:`translate(${s.value}px, ${i.value}px)`}));function a(){const f=o.value;if(!f)return;const p=()=>{let E=f.parentElement;for(;E&&E!==document.body;){const F=window.getComputedStyle(E),C=F.overflowX!=="visible",D=F.overflowY!=="visible";if(F.overflow!=="visible"||C||D)return E.getBoundingClientRect();E=E.parentElement}return new DOMRect(0,0,window.innerWidth,window.innerHeight)},h=f.getBoundingClientRect(),m=p(),g=8;let k=0,y=0;const b=Math.min(window.innerWidth,m.right)-g,w=Math.max(0,m.left)+g,v=Math.min(window.innerHeight,m.bottom)-g,x=Math.max(0,m.top)+g;h.right>b&&(k=b-h.right),h.left+k<w&&(k+=w-(h.left+k)),h.bottom>v&&(y=v-h.bottom),h.top+y<x&&(y+=x-(h.top+y)),s.value=k,i.value=y}function u(f){o.value&&f.target instanceof Node&&o.value.contains(f.target)||r("close")}let l;return je(()=>n.active,(f,p)=>Pe(null,null,function*(){f&&(s.value=0,i.value=0,yield At(),a(),l=setTimeout(()=>{document.addEventListener("click",u,!0)},100)),p&&(document.removeEventListener("click",u,!0),l&&clearTimeout(l))})),(f,p)=>(R(),ge(Qt,{name:"slide-fade"},{default:We(()=>[e.active?(R(),V("div",{key:0,ref_key:"popoverRef",ref:o,class:"popover",style:Ke(c.value),onClick:p[0]||(p[0]=Ne(()=>{},["stop"]))},[yn(f.$slots,"default",{},void 0,!0)],4)):ue("",!0)]),_:3}))}}),[["__scopeId","data-v-e5801761"]]),yv={class:"text clickable no-select"},wv={class:"options no-select"},_v=["onClick"],Er=Re(Te({__name:"DropOption",props:{list:{},curVal:{},formatCurValByList:{type:Boolean,default:!1},useAbbrName:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){const n=e,r=t;let o=Y(!1);function s(){o.value=!o.value}function i(){o.value=!1}function c(u){s(),r("change",n.list[u].val,u)}const a=J(()=>{if(n.formatCurValByList){for(let u of n.list)if(u.val==n.curVal)return n.useAbbrName&&u.abbrI18nKey?W.value[u.abbrI18nKey]:u.i18nKey?W.value[u.i18nKey]:n.useAbbrName&&u.abbrName?u.abbrName:u.name}return String(n.curVal)});return(u,l)=>(R(),V("div",{class:"drop-option",onClick:s},[I("div",yv,Q(a.value),1),ce(S(bv),{class:"icon-drop-down clickable no-select"}),ce(Co,{active:S(o),"custom-style":{"margin-left":"7px","margin-top":"4px"},onClose:i},{default:We(()=>[I("div",wv,[(R(!0),V(we,null,$e(e.list,(f,p)=>(R(),V("div",{class:"item",key:f.name||f.i18nKey,onClick:h=>c(p)},[I("span",null,Q(f.i18nKey?S(W)[f.i18nKey]:f.name),1)],8,_v))),128))])]),_:1},8,["active"])]))}}),[["__scopeId","data-v-ed651547"]]),Ir=Re(Te({__name:"FlatButton",props:{label:{type:String},mode:{type:String,default:"default"},type:{type:String,default:"plain"}},emits:["click"],setup(e,{emit:t}){const n=t;function r(o){n("click",o)}return(o,s)=>(R(),V("div",{class:be(["flat-button",e.mode])},[I("a",{class:be([e.mode,e.type]),onClick:r},Q(e.label),3)],2))}}),[["__scopeId","data-v-e69ed2a2"]]),Sv={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function kv(e,t){return R(),V("svg",Sv,[...t[0]||(t[0]=[I("path",{d:"m8.59 16.34 4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"},null,-1),I("path",{fill:"none",d:"M0-.25h24v24H0z"},null,-1)])])}const xv={render:kv},Cv=["onClick"],To=Re({__name:"Pagination",props:{curIndex:Number,pageSum:Number},emits:["change"],setup(e,{emit:t}){const n=e,r=t,o=Y(3),s=J(()=>{let l=[];for(let f=1;f<=o.value;f++)n.curIndex-f>0&&l.push(n.curIndex-f);for(let f=1;f<=o.value;f++)n.curIndex+f<n.pageSum-1&&l.push(n.curIndex+f);if(l.push(0),l.push(n.curIndex),l.push(n.pageSum-1),l=[...new Set(l)].sort((f,p)=>f-p),l[1]-l[0]>1){let f=Math.floor((l[1]-l[0])/2+l[0]);l.unshift(f)}if(l[l.length-1]-l[l.length-2]>1){let f=Math.floor((l[l.length-1]-l[l.length-2])/2+l[l.length-2]);l.push(f)}return[...new Set(l)].sort((f,p)=>f-p)});function i(l){return Math.abs(l-n.curIndex)<=o.value||l===0||l===n.pageSum-1?l+1:"..."}function c(l){r("change",l)}function a(){n.curIndex!==0&&r("change",n.curIndex-1)}function u(){n.curIndex!==n.pageSum-1&&r("change",n.curIndex+1)}return(l,f)=>(R(),V("section",{class:"ehunter-pagination",onClick:f[2]||(f[2]=Ne(()=>{},["stop"])),onTouchstart:f[3]||(f[3]=Ne(()=>{},["stop"])),onTouchend:f[4]||(f[4]=Ne(()=>{},["stop"]))},[I("div",{class:be(["item",{disable:e.curIndex===0}]),onClick:f[0]||(f[0]=p=>a())},[ce(S(Vu),{class:"icon"})],2),(R(!0),V(we,null,$e(s.value,p=>(R(),V("span",{class:be(["item",{active:p===e.curIndex}]),key:p,onClick:h=>c(p)},Q(i(p)),11,Cv))),128)),I("div",{class:be(["item",{disable:e.curIndex===e.pageSum-1}]),onClick:f[1]||(f[1]=p=>u())},[ce(S(xv),{class:"icon"})],2)],32))}},[["__scopeId","data-v-c3d57ccd"]]),Tv=Re(Te({__name:"Slider",props:{min:{},max:{},step:{},init:{}},emits:["change"],setup(e,{emit:t}){const n=e,r=t,o=Y(n.init),s=Y(!1),i=Y(0),c=Y(0),a=Y(0),u=Y(null),l=J(()=>(o.value-n.min)/((n.max-n.min)/100));je(()=>n.init,b=>{o.value=b});function f(){return u.value.offsetWidth/(n.max-n.min)}function p(b){const w=n.min+b.offsetX/f();m(w)}function h(b){for(let w=n.min;w<=n.max;w=w+n.step)if(w>b)return w===n.min?Number(w.toFixed(0)):Number((w-n.step).toFixed(0));return n.max}function m(b){b>n.max?o.value=h(n.max):o.value=h(b<n.min?n.min:b),r("change",o.value)}function g(b){s.value=!1,document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",g),b.preventDefault()}function k(b){if(s.value){const w=c.value+(b.clientX-i.value)/a.value;m(w)}b.preventDefault()}function y(b){s.value=!0,p(b),i.value=b.clientX,c.value=o.value,a.value=f(),document.addEventListener("mousemove",k),document.addEventListener("mouseup",g),b.preventDefault()}return(b,w)=>(R(),V("div",{class:"slider",onMousedown:y,onClick:p,ref_key:"slider",ref:u},[w[0]||(w[0]=I("div",{class:"track"},null,-1)),I("div",{class:"fill",style:Ke({width:l.value+"%"})},null,4),I("div",{class:"thumb",style:Ke({left:l.value+"%",width:s.value?"15px":void 0,height:s.value?"15px":void 0})},null,4)],544))}}),[["__scopeId","data-v-5a202c7e"]]);function Ev(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Iv(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var si={};const Av={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"	",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"};var ii,Hu;function $u(){return Hu||(Hu=1,ii=Av),ii}var ci,ju;function ai(){return ju||(ju=1,ci=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/),ci}var Un={},li,Uu;function Dv(){if(Uu)return li;Uu=1;var e={};function t(r){var o,s,i=e[r];if(i)return i;for(i=e[r]=[],o=0;o<128;o++)s=String.fromCharCode(o),/^[0-9a-z]$/i.test(s)?i.push(s):i.push("%"+("0"+o.toString(16).toUpperCase()).slice(-2));for(o=0;o<r.length;o++)i[r.charCodeAt(o)]=r[o];return i}function n(r,o,s){var i,c,a,u,l,f="";for(typeof o!="string"&&(s=o,o=n.defaultChars),typeof s=="undefined"&&(s=!0),l=t(o),i=0,c=r.length;i<c;i++){if(a=r.charCodeAt(i),s&&a===37&&i+2<c&&/^[0-9a-f]{2}$/i.test(r.slice(i+1,i+3))){f+=r.slice(i,i+3),i+=2;continue}if(a<128){f+=l[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&i+1<c&&(u=r.charCodeAt(i+1),u>=56320&&u<=57343)){f+=encodeURIComponent(r[i]+r[i+1]),i++;continue}f+="%EF%BF%BD";continue}f+=encodeURIComponent(r[i])}return f}return n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",li=n,li}var ui,Wu;function Mv(){if(Wu)return ui;Wu=1;var e={};function t(r){var o,s,i=e[r];if(i)return i;for(i=e[r]=[],o=0;o<128;o++)s=String.fromCharCode(o),i.push(s);for(o=0;o<r.length;o++)s=r.charCodeAt(o),i[s]="%"+("0"+s.toString(16).toUpperCase()).slice(-2);return i}function n(r,o){var s;return typeof o!="string"&&(o=n.defaultChars),s=t(o),r.replace(/(%[a-f0-9]{2})+/gi,function(i){var c,a,u,l,f,p,h,m="";for(c=0,a=i.length;c<a;c+=3){if(u=parseInt(i.slice(c+1,c+3),16),u<128){m+=s[u];continue}if((u&224)===192&&c+3<a&&(l=parseInt(i.slice(c+4,c+6),16),(l&192)===128)){h=u<<6&1984|l&63,h<128?m+="��":m+=String.fromCharCode(h),c+=3;continue}if((u&240)===224&&c+6<a&&(l=parseInt(i.slice(c+4,c+6),16),f=parseInt(i.slice(c+7,c+9),16),(l&192)===128&&(f&192)===128)){h=u<<12&61440|l<<6&4032|f&63,h<2048||h>=55296&&h<=57343?m+="���":m+=String.fromCharCode(h),c+=6;continue}if((u&248)===240&&c+9<a&&(l=parseInt(i.slice(c+4,c+6),16),f=parseInt(i.slice(c+7,c+9),16),p=parseInt(i.slice(c+10,c+12),16),(l&192)===128&&(f&192)===128&&(p&192)===128)){h=u<<18&1835008|l<<12&258048|f<<6&4032|p&63,h<65536||h>1114111?m+="����":(h-=65536,m+=String.fromCharCode(55296+(h>>10),56320+(h&1023))),c+=9;continue}m+="�"}return m})}return n.defaultChars=";/?:@&=+$,#",n.componentChars="",ui=n,ui}var fi,Ku;function Pv(){return Ku||(Ku=1,fi=function(t){var n="";return n+=t.protocol||"",n+=t.slashes?"//":"",n+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?n+="["+t.hostname+"]":n+=t.hostname||"",n+=t.port?":"+t.port:"",n+=t.pathname||"",n+=t.search||"",n+=t.hash||"",n}),fi}var hi,Gu;function Rv(){if(Gu)return hi;Gu=1;function e(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var t=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,r=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["<",">",'"',"`"," ","\r",`
`,"	"],s=["{","}","|","\\","^","`"].concat(o),i=["'"].concat(s),c=["%","/","?",";","#"].concat(i),a=["/","?","#"],u=255,l=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},h={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function m(g,k){if(g&&g instanceof e)return g;var y=new e;return y.parse(g,k),y}return e.prototype.parse=function(g,k){var y,b,w,v,x,E=g;if(E=E.trim(),!k&&g.split("#").length===1){var F=r.exec(E);if(F)return this.pathname=F[1],F[2]&&(this.search=F[2]),this}var C=t.exec(E);if(C&&(C=C[0],w=C.toLowerCase(),this.protocol=C,E=E.substr(C.length)),(k||C||E.match(/^\/\/[^@\/]+@[^@\/]+/))&&(x=E.substr(0,2)==="//",x&&!(C&&p[C])&&(E=E.substr(2),this.slashes=!0)),!p[C]&&(x||C&&!h[C])){var D=-1;for(y=0;y<a.length;y++)v=E.indexOf(a[y]),v!==-1&&(D===-1||v<D)&&(D=v);var M,N;for(D===-1?N=E.lastIndexOf("@"):N=E.lastIndexOf("@",D),N!==-1&&(M=E.slice(0,N),E=E.slice(N+1),this.auth=M),D=-1,y=0;y<c.length;y++)v=E.indexOf(c[y]),v!==-1&&(D===-1||v<D)&&(D=v);D===-1&&(D=E.length),E[D-1]===":"&&D--;var L=E.slice(0,D);E=E.slice(D),this.parseHost(L),this.hostname=this.hostname||"";var ae=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ae){var z=this.hostname.split(/\./);for(y=0,b=z.length;y<b;y++){var re=z[y];if(re&&!re.match(l)){for(var oe="",se=0,le=re.length;se<le;se++)re.charCodeAt(se)>127?oe+="x":oe+=re[se];if(!oe.match(l)){var _e=z.slice(0,y),me=z.slice(y+1),ke=re.match(f);ke&&(_e.push(ke[1]),me.unshift(ke[2])),me.length&&(E=me.join(".")+E),this.hostname=_e.join(".");break}}}}this.hostname.length>u&&(this.hostname=""),ae&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var Ce=E.indexOf("#");Ce!==-1&&(this.hash=E.substr(Ce),E=E.slice(0,Ce));var Ie=E.indexOf("?");return Ie!==-1&&(this.search=E.substr(Ie),E=E.slice(0,Ie)),E&&(this.pathname=E),h[w]&&this.hostname&&!this.pathname&&(this.pathname=""),this},e.prototype.parseHost=function(g){var k=n.exec(g);k&&(k=k[0],k!==":"&&(this.port=k.substr(1)),g=g.substr(0,g.length-k.length)),g&&(this.hostname=g)},hi=m,hi}var Qu;function Zu(){return Qu||(Qu=1,Un.encode=Dv(),Un.decode=Mv(),Un.format=Pv(),Un.parse=Rv()),Un}var Cn={},di,Yu;function Ju(){return Yu||(Yu=1,di=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),di}var pi,Xu;function ef(){return Xu||(Xu=1,pi=/[\0-\x1F\x7F-\x9F]/),pi}var gi,tf;function qv(){return tf||(tf=1,gi=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),gi}var mi,nf;function rf(){return nf||(nf=1,mi=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),mi}var of;function Fv(){return of||(of=1,Cn.Any=Ju(),Cn.Cc=ef(),Cn.Cf=qv(),Cn.P=ai(),Cn.Z=rf()),Cn}var sf;function Ee(){return sf||(sf=1,(function(e){function t(z){return Object.prototype.toString.call(z)}function n(z){return t(z)==="[object String]"}var r=Object.prototype.hasOwnProperty;function o(z,re){return r.call(z,re)}function s(z){var re=Array.prototype.slice.call(arguments,1);return re.forEach(function(oe){if(oe){if(typeof oe!="object")throw new TypeError(oe+"must be object");Object.keys(oe).forEach(function(se){z[se]=oe[se]})}}),z}function i(z,re,oe){return[].concat(z.slice(0,re),oe,z.slice(re+1))}function c(z){return!(z>=55296&&z<=57343||z>=64976&&z<=65007||(z&65535)===65535||(z&65535)===65534||z>=0&&z<=8||z===11||z>=14&&z<=31||z>=127&&z<=159||z>1114111)}function a(z){if(z>65535){z-=65536;var re=55296+(z>>10),oe=56320+(z&1023);return String.fromCharCode(re,oe)}return String.fromCharCode(z)}var u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,l=/&([a-z#][a-z0-9]{1,31});/gi,f=new RegExp(u.source+"|"+l.source,"gi"),p=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,h=$u();function m(z,re){var oe=0;return o(h,re)?h[re]:re.charCodeAt(0)===35&&p.test(re)&&(oe=re[1].toLowerCase()==="x"?parseInt(re.slice(2),16):parseInt(re.slice(1),10),c(oe))?a(oe):z}function g(z){return z.indexOf("\\")<0?z:z.replace(u,"$1")}function k(z){return z.indexOf("\\")<0&&z.indexOf("&")<0?z:z.replace(f,function(re,oe,se){return oe||m(re,se)})}var y=/[&<>"]/,b=/[&<>"]/g,w={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function v(z){return w[z]}function x(z){return y.test(z)?z.replace(b,v):z}var E=/[.?*+^$[\]\\(){}|-]/g;function F(z){return z.replace(E,"\\$&")}function C(z){switch(z){case 9:case 32:return!0}return!1}function D(z){if(z>=8192&&z<=8202)return!0;switch(z){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var M=ai();function N(z){return M.test(z)}function L(z){switch(z){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function ae(z){return z.trim().replace(/\s+/g," ").toUpperCase()}e.lib={},e.lib.mdurl=Zu(),e.lib.ucmicro=Fv(),e.assign=s,e.isString=n,e.has=o,e.unescapeMd=g,e.unescapeAll=k,e.isValidEntityCode=c,e.fromCodePoint=a,e.escapeHtml=x,e.arrayReplaceAt=i,e.isSpace=C,e.isWhiteSpace=D,e.isMdAsciiPunct=L,e.isPunctChar=N,e.escapeRE=F,e.normalizeReference=ae})(si)),si}var Ar={},vi,cf;function Lv(){return cf||(cf=1,vi=function(t,n,r){var o,s,i,c,a=-1,u=t.posMax,l=t.pos;for(t.pos=n+1,o=1;t.pos<u;){if(i=t.src.charCodeAt(t.pos),i===93&&(o--,o===0)){s=!0;break}if(c=t.pos,t.md.inline.skipToken(t),i===91){if(c===t.pos-1)o++;else if(r)return t.pos=l,-1}}return s&&(a=t.pos),t.pos=l,a}),vi}var bi,af;function Nv(){if(af)return bi;af=1;var e=Ee().isSpace,t=Ee().unescapeAll;return bi=function(r,o,s){var i,c,a=0,u=o,l={ok:!1,pos:0,lines:0,str:""};if(r.charCodeAt(o)===60){for(o++;o<s;){if(i=r.charCodeAt(o),i===10||e(i))return l;if(i===62)return l.pos=o+1,l.str=t(r.slice(u+1,o)),l.ok=!0,l;if(i===92&&o+1<s){o+=2;continue}o++}return l}for(c=0;o<s&&(i=r.charCodeAt(o),!(i===32||i<32||i===127));){if(i===92&&o+1<s){o+=2;continue}if(i===40&&c++,i===41){if(c===0)break;c--}o++}return u===o||c!==0||(l.str=t(r.slice(u,o)),l.lines=a,l.pos=o,l.ok=!0),l},bi}var yi,lf;function Ov(){if(lf)return yi;lf=1;var e=Ee().unescapeAll;return yi=function(n,r,o){var s,i,c=0,a=r,u={ok:!1,pos:0,lines:0,str:""};if(r>=o||(i=n.charCodeAt(r),i!==34&&i!==39&&i!==40))return u;for(r++,i===40&&(i=41);r<o;){if(s=n.charCodeAt(r),s===i)return u.pos=r+1,u.lines=c,u.str=e(n.slice(a+1,r)),u.ok=!0,u;s===10?c++:s===92&&r+1<o&&(r++,n.charCodeAt(r)===10&&c++),r++}return u},yi}var uf;function zv(){return uf||(uf=1,Ar.parseLinkLabel=Lv(),Ar.parseLinkDestination=Nv(),Ar.parseLinkTitle=Ov()),Ar}var wi,ff;function Bv(){if(ff)return wi;ff=1;var e=Ee().assign,t=Ee().unescapeAll,n=Ee().escapeHtml,r={};r.code_inline=function(s,i,c,a,u){var l=s[i];return"<code"+u.renderAttrs(l)+">"+n(s[i].content)+"</code>"},r.code_block=function(s,i,c,a,u){var l=s[i];return"<pre"+u.renderAttrs(l)+"><code>"+n(s[i].content)+`</code></pre>
`},r.fence=function(s,i,c,a,u){var l=s[i],f=l.info?t(l.info).trim():"",p="",h,m,g,k;return f&&(p=f.split(/\s+/g)[0]),c.highlight?h=c.highlight(l.content,p)||n(l.content):h=n(l.content),h.indexOf("<pre")===0?h+`
`:f?(m=l.attrIndex("class"),g=l.attrs?l.attrs.slice():[],m<0?g.push(["class",c.langPrefix+p]):g[m][1]+=" "+c.langPrefix+p,k={attrs:g},"<pre><code"+u.renderAttrs(k)+">"+h+`</code></pre>
`):"<pre><code"+u.renderAttrs(l)+">"+h+`</code></pre>
`},r.image=function(s,i,c,a,u){var l=s[i];return l.attrs[l.attrIndex("alt")][1]=u.renderInlineAsText(l.children,c,a),u.renderToken(s,i,c)},r.hardbreak=function(s,i,c){return c.xhtmlOut?`<br />
`:`<br>
`},r.softbreak=function(s,i,c){return c.breaks?c.xhtmlOut?`<br />
`:`<br>
`:`
`},r.text=function(s,i){return n(s[i].content)},r.html_block=function(s,i){return s[i].content},r.html_inline=function(s,i){return s[i].content};function o(){this.rules=e({},r)}return o.prototype.renderAttrs=function(i){var c,a,u;if(!i.attrs)return"";for(u="",c=0,a=i.attrs.length;c<a;c++)u+=" "+n(i.attrs[c][0])+'="'+n(i.attrs[c][1])+'"';return u},o.prototype.renderToken=function(i,c,a){var u,l="",f=!1,p=i[c];return p.hidden?"":(p.block&&p.nesting!==-1&&c&&i[c-1].hidden&&(l+=`
`),l+=(p.nesting===-1?"</":"<")+p.tag,l+=this.renderAttrs(p),p.nesting===0&&a.xhtmlOut&&(l+=" /"),p.block&&(f=!0,p.nesting===1&&c+1<i.length&&(u=i[c+1],(u.type==="inline"||u.hidden||u.nesting===-1&&u.tag===p.tag)&&(f=!1))),l+=f?`>
`:">",l)},o.prototype.renderInline=function(s,i,c){for(var a,u="",l=this.rules,f=0,p=s.length;f<p;f++)a=s[f].type,typeof l[a]!="undefined"?u+=l[a](s,f,i,c,this):u+=this.renderToken(s,f,i);return u},o.prototype.renderInlineAsText=function(s,i,c){for(var a="",u=0,l=s.length;u<l;u++)s[u].type==="text"?a+=s[u].content:s[u].type==="image"&&(a+=this.renderInlineAsText(s[u].children,i,c));return a},o.prototype.render=function(s,i,c){var a,u,l,f="",p=this.rules;for(a=0,u=s.length;a<u;a++)l=s[a].type,l==="inline"?f+=this.renderInline(s[a].children,i,c):typeof p[l]!="undefined"?f+=p[s[a].type](s,a,i,c,this):f+=this.renderToken(s,a,i,c);return f},wi=o,wi}var _i,hf;function Si(){if(hf)return _i;hf=1;function e(){this.__rules__=[],this.__cache__=null}return e.prototype.__find__=function(t){for(var n=0;n<this.__rules__.length;n++)if(this.__rules__[n].name===t)return n;return-1},e.prototype.__compile__=function(){var t=this,n=[""];t.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(o){n.indexOf(o)<0&&n.push(o)})}),t.__cache__={},n.forEach(function(r){t.__cache__[r]=[],t.__rules__.forEach(function(o){o.enabled&&(r&&o.alt.indexOf(r)<0||t.__cache__[r].push(o.fn))})})},e.prototype.at=function(t,n,r){var o=this.__find__(t),s=r||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__[o].fn=n,this.__rules__[o].alt=s.alt||[],this.__cache__=null},e.prototype.before=function(t,n,r,o){var s=this.__find__(t),i=o||{};if(s===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(s,0,{name:n,enabled:!0,fn:r,alt:i.alt||[]}),this.__cache__=null},e.prototype.after=function(t,n,r,o){var s=this.__find__(t),i=o||{};if(s===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(s+1,0,{name:n,enabled:!0,fn:r,alt:i.alt||[]}),this.__cache__=null},e.prototype.push=function(t,n,r){var o=r||{};this.__rules__.push({name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},e.prototype.enable=function(t,n){Array.isArray(t)||(t=[t]);var r=[];return t.forEach(function(o){var s=this.__find__(o);if(s<0){if(n)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[s].enabled=!0,r.push(o)},this),this.__cache__=null,r},e.prototype.enableOnly=function(t,n){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(t,n)},e.prototype.disable=function(t,n){Array.isArray(t)||(t=[t]);var r=[];return t.forEach(function(o){var s=this.__find__(o);if(s<0){if(n)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[s].enabled=!1,r.push(o)},this),this.__cache__=null,r},e.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]},_i=e,_i}var ki,df;function Vv(){if(df)return ki;df=1;var e=/\r[\n\u0085]?|[\u2424\u2028\u0085]/g,t=/\u0000/g;return ki=function(r){var o;o=r.src.replace(e,`
`),o=o.replace(t,"�"),r.src=o},ki}var xi,pf;function Hv(){return pf||(pf=1,xi=function(t){var n;t.inlineMode?(n=new t.Token("inline","",0),n.content=t.src,n.map=[0,1],n.children=[],t.tokens.push(n)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}),xi}var Ci,gf;function $v(){return gf||(gf=1,Ci=function(t){var n=t.tokens,r,o,s;for(o=0,s=n.length;o<s;o++)r=n[o],r.type==="inline"&&t.md.inline.parse(r.content,t.md,t.env,r.children)}),Ci}var Ti,mf;function jv(){if(mf)return Ti;mf=1;var e=Ee().arrayReplaceAt;function t(r){return/^<a[>\s]/i.test(r)}function n(r){return/^<\/a\s*>/i.test(r)}return Ti=function(o){var s,i,c,a,u,l,f,p,h,m,g,k,y,b,w,v,x=o.tokens,E;if(o.md.options.linkify){for(i=0,c=x.length;i<c;i++)if(!(x[i].type!=="inline"||!o.md.linkify.pretest(x[i].content)))for(a=x[i].children,y=0,s=a.length-1;s>=0;s--){if(l=a[s],l.type==="link_close"){for(s--;a[s].level!==l.level&&a[s].type!=="link_open";)s--;continue}if(l.type==="html_inline"&&(t(l.content)&&y>0&&y--,n(l.content)&&y++),!(y>0)&&l.type==="text"&&o.md.linkify.test(l.content)){for(h=l.content,E=o.md.linkify.match(h),f=[],k=l.level,g=0,p=0;p<E.length;p++)b=E[p].url,w=o.md.normalizeLink(b),o.md.validateLink(w)&&(v=E[p].text,E[p].schema?E[p].schema==="mailto:"&&!/^mailto:/i.test(v)?v=o.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):v=o.md.normalizeLinkText(v):v=o.md.normalizeLinkText("http://"+v).replace(/^http:\/\//,""),m=E[p].index,m>g&&(u=new o.Token("text","",0),u.content=h.slice(g,m),u.level=k,f.push(u)),u=new o.Token("link_open","a",1),u.attrs=[["href",w]],u.level=k++,u.markup="linkify",u.info="auto",f.push(u),u=new o.Token("text","",0),u.content=v,u.level=k,f.push(u),u=new o.Token("link_close","a",-1),u.level=--k,u.markup="linkify",u.info="auto",f.push(u),g=E[p].lastIndex);g<h.length&&(u=new o.Token("text","",0),u.content=h.slice(g),u.level=k,f.push(u)),x[i].children=a=e(a,s,f)}}}},Ti}var Ei,vf;function Uv(){if(vf)return Ei;vf=1;var e=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,t=/\((c|tm|r|p)\)/i,n=/\((c|tm|r|p)\)/ig,r={c:"©",r:"®",p:"§",tm:"™"};function o(c,a){return r[a.toLowerCase()]}function s(c){var a,u,l=0;for(a=c.length-1;a>=0;a--)u=c[a],u.type==="text"&&!l&&(u.content=u.content.replace(n,o)),u.type==="link_open"&&u.info==="auto"&&l--,u.type==="link_close"&&u.info==="auto"&&l++}function i(c){var a,u,l=0;for(a=c.length-1;a>=0;a--)u=c[a],u.type==="text"&&!l&&e.test(u.content)&&(u.content=u.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/mg,"$1—$2").replace(/(^|\s)--(\s|$)/mg,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/mg,"$1–$2")),u.type==="link_open"&&u.info==="auto"&&l--,u.type==="link_close"&&u.info==="auto"&&l++}return Ei=function(a){var u;if(a.md.options.typographer)for(u=a.tokens.length-1;u>=0;u--)a.tokens[u].type==="inline"&&(t.test(a.tokens[u].content)&&s(a.tokens[u].children),e.test(a.tokens[u].content)&&i(a.tokens[u].children))},Ei}var Ii,bf;function Wv(){if(bf)return Ii;bf=1;var e=Ee().isWhiteSpace,t=Ee().isPunctChar,n=Ee().isMdAsciiPunct,r=/['"]/,o=/['"]/g,s="’";function i(a,u,l){return a.substr(0,u)+l+a.substr(u+1)}function c(a,u){var l,f,p,h,m,g,k,y,b,w,v,x,E,F,C,D,M,N,L,ae,z;for(L=[],l=0;l<a.length;l++){for(f=a[l],k=a[l].level,M=L.length-1;M>=0&&!(L[M].level<=k);M--);if(L.length=M+1,f.type==="text"){p=f.content,m=0,g=p.length;e:for(;m<g&&(o.lastIndex=m,h=o.exec(p),!!h);){if(C=D=!0,m=h.index+1,N=h[0]==="'",b=32,h.index-1>=0)b=p.charCodeAt(h.index-1);else for(M=l-1;M>=0&&!(a[M].type==="softbreak"||a[M].type==="hardbreak");M--)if(a[M].type==="text"){b=a[M].content.charCodeAt(a[M].content.length-1);break}if(w=32,m<g)w=p.charCodeAt(m);else for(M=l+1;M<a.length&&!(a[M].type==="softbreak"||a[M].type==="hardbreak");M++)if(a[M].type==="text"){w=a[M].content.charCodeAt(0);break}if(v=n(b)||t(String.fromCharCode(b)),x=n(w)||t(String.fromCharCode(w)),E=e(b),F=e(w),F?C=!1:x&&(E||v||(C=!1)),E?D=!1:v&&(F||x||(D=!1)),w===34&&h[0]==='"'&&b>=48&&b<=57&&(D=C=!1),C&&D&&(C=!1,D=x),!C&&!D){N&&(f.content=i(f.content,h.index,s));continue}if(D){for(M=L.length-1;M>=0&&(y=L[M],!(L[M].level<k));M--)if(y.single===N&&L[M].level===k){y=L[M],N?(ae=u.md.options.quotes[2],z=u.md.options.quotes[3]):(ae=u.md.options.quotes[0],z=u.md.options.quotes[1]),f.content=i(f.content,h.index,z),a[y.token].content=i(a[y.token].content,y.pos,ae),m+=z.length-1,y.token===l&&(m+=ae.length-1),p=f.content,g=p.length,L.length=M;continue e}}C?L.push({token:l,pos:h.index,single:N,level:k}):D&&N&&(f.content=i(f.content,h.index,s))}}}}return Ii=function(u){var l;if(u.md.options.typographer)for(l=u.tokens.length-1;l>=0;l--)u.tokens[l].type!=="inline"||!r.test(u.tokens[l].content)||c(u.tokens[l].children,u)},Ii}var Ai,yf;function Di(){if(yf)return Ai;yf=1;function e(t,n,r){this.type=t,this.tag=n,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}return e.prototype.attrIndex=function(n){var r,o,s;if(!this.attrs)return-1;for(r=this.attrs,o=0,s=r.length;o<s;o++)if(r[o][0]===n)return o;return-1},e.prototype.attrPush=function(n){this.attrs?this.attrs.push(n):this.attrs=[n]},e.prototype.attrSet=function(n,r){var o=this.attrIndex(n),s=[n,r];o<0?this.attrPush(s):this.attrs[o]=s},e.prototype.attrGet=function(n){var r=this.attrIndex(n),o=null;return r>=0&&(o=this.attrs[r][1]),o},e.prototype.attrJoin=function(n,r){var o=this.attrIndex(n);o<0?this.attrPush([n,r]):this.attrs[o][1]=this.attrs[o][1]+" "+r},Ai=e,Ai}var Mi,wf;function Kv(){if(wf)return Mi;wf=1;var e=Di();function t(n,r,o){this.src=n,this.env=o,this.tokens=[],this.inlineMode=!1,this.md=r}return t.prototype.Token=e,Mi=t,Mi}var Pi,_f;function Gv(){if(_f)return Pi;_f=1;var e=Si(),t=[["normalize",Vv()],["block",Hv()],["inline",$v()],["linkify",jv()],["replacements",Uv()],["smartquotes",Wv()]];function n(){this.ruler=new e;for(var r=0;r<t.length;r++)this.ruler.push(t[r][0],t[r][1])}return n.prototype.process=function(r){var o,s,i;for(i=this.ruler.getRules(""),o=0,s=i.length;o<s;o++)i[o](r)},n.prototype.State=Kv(),Pi=n,Pi}var Ri,Sf;function Qv(){if(Sf)return Ri;Sf=1;var e=Ee().isSpace;function t(r,o){var s=r.bMarks[o]+r.blkIndent,i=r.eMarks[o];return r.src.substr(s,i-s)}function n(r){var o=[],s=0,i=r.length,c,a=0,u=0,l=!1,f=0;for(c=r.charCodeAt(s);s<i;)c===96?l?(l=!1,f=s):a%2===0&&(l=!0,f=s):c===124&&a%2===0&&!l&&(o.push(r.substring(u,s)),u=s+1),c===92?a++:a=0,s++,s===i&&l&&(l=!1,s=f+1),c=r.charCodeAt(s);return o.push(r.substring(u)),o}return Ri=function(o,s,i,c){var a,u,l,f,p,h,m,g,k,y,b,w;if(s+2>i||(p=s+1,o.sCount[p]<o.blkIndent)||o.sCount[p]-o.blkIndent>=4||(l=o.bMarks[p]+o.tShift[p],l>=o.eMarks[p])||(a=o.src.charCodeAt(l++),a!==124&&a!==45&&a!==58))return!1;for(;l<o.eMarks[p];){if(a=o.src.charCodeAt(l),a!==124&&a!==45&&a!==58&&!e(a))return!1;l++}for(u=t(o,s+1),h=u.split("|"),k=[],f=0;f<h.length;f++){if(y=h[f].trim(),!y){if(f===0||f===h.length-1)continue;return!1}if(!/^:?-+:?$/.test(y))return!1;y.charCodeAt(y.length-1)===58?k.push(y.charCodeAt(0)===58?"center":"right"):y.charCodeAt(0)===58?k.push("left"):k.push("")}if(u=t(o,s).trim(),u.indexOf("|")===-1||o.sCount[s]-o.blkIndent>=4||(h=n(u.replace(/^\||\|$/g,"")),m=h.length,m>k.length))return!1;if(c)return!0;for(g=o.push("table_open","table",1),g.map=b=[s,0],g=o.push("thead_open","thead",1),g.map=[s,s+1],g=o.push("tr_open","tr",1),g.map=[s,s+1],f=0;f<h.length;f++)g=o.push("th_open","th",1),g.map=[s,s+1],k[f]&&(g.attrs=[["style","text-align:"+k[f]]]),g=o.push("inline","",0),g.content=h[f].trim(),g.map=[s,s+1],g.children=[],g=o.push("th_close","th",-1);for(g=o.push("tr_close","tr",-1),g=o.push("thead_close","thead",-1),g=o.push("tbody_open","tbody",1),g.map=w=[s+2,0],p=s+2;p<i&&!(o.sCount[p]<o.blkIndent||(u=t(o,p).trim(),u.indexOf("|")===-1)||o.sCount[p]-o.blkIndent>=4);p++){for(h=n(u.replace(/^\||\|$/g,"")),g=o.push("tr_open","tr",1),f=0;f<m;f++)g=o.push("td_open","td",1),k[f]&&(g.attrs=[["style","text-align:"+k[f]]]),g=o.push("inline","",0),g.content=h[f]?h[f].trim():"",g.children=[],g=o.push("td_close","td",-1);g=o.push("tr_close","tr",-1)}return g=o.push("tbody_close","tbody",-1),g=o.push("table_close","table",-1),b[1]=w[1]=p,o.line=p,!0},Ri}var qi,kf;function Zv(){return kf||(kf=1,qi=function(t,n,r){var o,s,i;if(t.sCount[n]-t.blkIndent<4)return!1;for(s=o=n+1;o<r;){if(t.isEmpty(o)){o++;continue}if(t.sCount[o]-t.blkIndent>=4){o++,s=o;continue}break}return t.line=s,i=t.push("code_block","code",0),i.content=t.getLines(n,s,4+t.blkIndent,!0),i.map=[n,t.line],!0}),qi}var Fi,xf;function Yv(){return xf||(xf=1,Fi=function(t,n,r,o){var s,i,c,a,u,l,f,p=!1,h=t.bMarks[n]+t.tShift[n],m=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||h+3>m||(s=t.src.charCodeAt(h),s!==126&&s!==96)||(u=h,h=t.skipChars(h,s),i=h-u,i<3)||(f=t.src.slice(u,h),c=t.src.slice(h,m),c.indexOf(String.fromCharCode(s))>=0))return!1;if(o)return!0;for(a=n;a++,!(a>=r||(h=u=t.bMarks[a]+t.tShift[a],m=t.eMarks[a],h<m&&t.sCount[a]<t.blkIndent));)if(t.src.charCodeAt(h)===s&&!(t.sCount[a]-t.blkIndent>=4)&&(h=t.skipChars(h,s),!(h-u<i)&&(h=t.skipSpaces(h),!(h<m)))){p=!0;break}return i=t.sCount[n],t.line=a+(p?1:0),l=t.push("fence","code",0),l.info=c,l.content=t.getLines(n+1,a,i,!0),l.markup=f,l.map=[n,t.line],!0}),Fi}var Li,Cf;function Jv(){if(Cf)return Li;Cf=1;var e=Ee().isSpace;return Li=function(n,r,o,s){var i,c,a,u,l,f,p,h,m,g,k,y,b,w,v,x,E,F,C,D,M=n.lineMax,N=n.bMarks[r]+n.tShift[r],L=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||n.src.charCodeAt(N++)!==62)return!1;if(s)return!0;for(u=m=n.sCount[r]+N-(n.bMarks[r]+n.tShift[r]),n.src.charCodeAt(N)===32?(N++,u++,m++,i=!1,x=!0):n.src.charCodeAt(N)===9?(x=!0,(n.bsCount[r]+m)%4===3?(N++,u++,m++,i=!1):i=!0):x=!1,g=[n.bMarks[r]],n.bMarks[r]=N;N<L&&(c=n.src.charCodeAt(N),e(c));){c===9?m+=4-(m+n.bsCount[r]+(i?1:0))%4:m++;N++}for(k=[n.bsCount[r]],n.bsCount[r]=n.sCount[r]+1+(x?1:0),f=N>=L,w=[n.sCount[r]],n.sCount[r]=m-u,v=[n.tShift[r]],n.tShift[r]=N-n.bMarks[r],F=n.md.block.ruler.getRules("blockquote"),b=n.parentType,n.parentType="blockquote",D=!1,h=r+1;h<o&&(n.sCount[h]<n.blkIndent&&(D=!0),N=n.bMarks[h]+n.tShift[h],L=n.eMarks[h],!(N>=L));h++){if(n.src.charCodeAt(N++)===62&&!D){for(u=m=n.sCount[h]+N-(n.bMarks[h]+n.tShift[h]),n.src.charCodeAt(N)===32?(N++,u++,m++,i=!1,x=!0):n.src.charCodeAt(N)===9?(x=!0,(n.bsCount[h]+m)%4===3?(N++,u++,m++,i=!1):i=!0):x=!1,g.push(n.bMarks[h]),n.bMarks[h]=N;N<L&&(c=n.src.charCodeAt(N),e(c));){c===9?m+=4-(m+n.bsCount[h]+(i?1:0))%4:m++;N++}f=N>=L,k.push(n.bsCount[h]),n.bsCount[h]=n.sCount[h]+1+(x?1:0),w.push(n.sCount[h]),n.sCount[h]=m-u,v.push(n.tShift[h]),n.tShift[h]=N-n.bMarks[h];continue}if(f)break;for(E=!1,a=0,l=F.length;a<l;a++)if(F[a](n,h,o,!0)){E=!0;break}if(E){n.lineMax=h,n.blkIndent!==0&&(g.push(n.bMarks[h]),k.push(n.bsCount[h]),v.push(n.tShift[h]),w.push(n.sCount[h]),n.sCount[h]-=n.blkIndent);break}g.push(n.bMarks[h]),k.push(n.bsCount[h]),v.push(n.tShift[h]),w.push(n.sCount[h]),n.sCount[h]=-1}for(y=n.blkIndent,n.blkIndent=0,C=n.push("blockquote_open","blockquote",1),C.markup=">",C.map=p=[r,0],n.md.block.tokenize(n,r,h),C=n.push("blockquote_close","blockquote",-1),C.markup=">",n.lineMax=M,n.parentType=b,p[1]=n.line,a=0;a<v.length;a++)n.bMarks[a+r]=g[a],n.tShift[a+r]=v[a],n.sCount[a+r]=w[a],n.bsCount[a+r]=k[a];return n.blkIndent=y,!0},Li}var Ni,Tf;function Xv(){if(Tf)return Ni;Tf=1;var e=Ee().isSpace;return Ni=function(n,r,o,s){var i,c,a,u,l=n.bMarks[r]+n.tShift[r],f=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||(i=n.src.charCodeAt(l++),i!==42&&i!==45&&i!==95))return!1;for(c=1;l<f;){if(a=n.src.charCodeAt(l++),a!==i&&!e(a))return!1;a===i&&c++}return c<3?!1:(s||(n.line=r+1,u=n.push("hr","hr",0),u.map=[r,n.line],u.markup=Array(c+1).join(String.fromCharCode(i))),!0)},Ni}var Oi,Ef;function eb(){if(Ef)return Oi;Ef=1;var e=Ee().isSpace;function t(o,s){var i,c,a,u;return c=o.bMarks[s]+o.tShift[s],a=o.eMarks[s],i=o.src.charCodeAt(c++),i!==42&&i!==45&&i!==43||c<a&&(u=o.src.charCodeAt(c),!e(u))?-1:c}function n(o,s){var i,c=o.bMarks[s]+o.tShift[s],a=c,u=o.eMarks[s];if(a+1>=u||(i=o.src.charCodeAt(a++),i<48||i>57))return-1;for(;;){if(a>=u)return-1;if(i=o.src.charCodeAt(a++),i>=48&&i<=57){if(a-c>=10)return-1;continue}if(i===41||i===46)break;return-1}return a<u&&(i=o.src.charCodeAt(a),!e(i))?-1:a}function r(o,s){var i,c,a=o.level+2;for(i=s+2,c=o.tokens.length-2;i<c;i++)o.tokens[i].level===a&&o.tokens[i].type==="paragraph_open"&&(o.tokens[i+2].hidden=!0,o.tokens[i].hidden=!0,i+=2)}return Oi=function(s,i,c,a){var u,l,f,p,h,m,g,k,y,b,w,v,x,E,F,C,D,M,N,L,ae,z,re,oe,se,le,_e,me,ke=!1,Ce=!0;if(s.sCount[i]-s.blkIndent>=4)return!1;if(a&&s.parentType==="paragraph"&&s.tShift[i]>=s.blkIndent&&(ke=!0),(re=n(s,i))>=0){if(g=!0,se=s.bMarks[i]+s.tShift[i],x=Number(s.src.substr(se,re-se-1)),ke&&x!==1)return!1}else if((re=t(s,i))>=0)g=!1;else return!1;if(ke&&s.skipSpaces(re)>=s.eMarks[i])return!1;if(v=s.src.charCodeAt(re-1),a)return!0;for(w=s.tokens.length,g?(me=s.push("ordered_list_open","ol",1),x!==1&&(me.attrs=[["start",x]])):me=s.push("bullet_list_open","ul",1),me.map=b=[i,0],me.markup=String.fromCharCode(v),F=i,oe=!1,_e=s.md.block.ruler.getRules("list"),N=s.parentType,s.parentType="list";F<c;){for(z=re,E=s.eMarks[F],m=C=s.sCount[F]+re-(s.bMarks[i]+s.tShift[i]);z<E;){if(u=s.src.charCodeAt(z),u===9)C+=4-(C+s.bsCount[F])%4;else if(u===32)C++;else break;z++}if(l=z,l>=E?h=1:h=C-m,h>4&&(h=1),p=m+h,me=s.push("list_item_open","li",1),me.markup=String.fromCharCode(v),me.map=k=[i,0],D=s.blkIndent,ae=s.tight,L=s.tShift[i],M=s.sCount[i],s.blkIndent=p,s.tight=!0,s.tShift[i]=l-s.bMarks[i],s.sCount[i]=C,l>=E&&s.isEmpty(i+1)?s.line=Math.min(s.line+2,c):s.md.block.tokenize(s,i,c,!0),(!s.tight||oe)&&(Ce=!1),oe=s.line-i>1&&s.isEmpty(s.line-1),s.blkIndent=D,s.tShift[i]=L,s.sCount[i]=M,s.tight=ae,me=s.push("list_item_close","li",-1),me.markup=String.fromCharCode(v),F=i=s.line,k[1]=F,l=s.bMarks[i],F>=c||s.sCount[F]<s.blkIndent)break;for(le=!1,f=0,y=_e.length;f<y;f++)if(_e[f](s,F,c,!0)){le=!0;break}if(le)break;if(g){if(re=n(s,F),re<0)break}else if(re=t(s,F),re<0)break;if(v!==s.src.charCodeAt(re-1))break}return g?me=s.push("ordered_list_close","ol",-1):me=s.push("bullet_list_close","ul",-1),me.markup=String.fromCharCode(v),b[1]=F,s.line=F,s.parentType=N,Ce&&r(s,w),!0},Oi}var zi,If;function tb(){if(If)return zi;If=1;var e=Ee().normalizeReference,t=Ee().isSpace;return zi=function(r,o,s,i){var c,a,u,l,f,p,h,m,g,k,y,b,w,v,x,E,F=0,C=r.bMarks[o]+r.tShift[o],D=r.eMarks[o],M=o+1;if(r.sCount[o]-r.blkIndent>=4||r.src.charCodeAt(C)!==91)return!1;for(;++C<D;)if(r.src.charCodeAt(C)===93&&r.src.charCodeAt(C-1)!==92){if(C+1===D||r.src.charCodeAt(C+1)!==58)return!1;break}for(l=r.lineMax,x=r.md.block.ruler.getRules("reference"),k=r.parentType,r.parentType="reference";M<l&&!r.isEmpty(M);M++)if(!(r.sCount[M]-r.blkIndent>3)&&!(r.sCount[M]<0)){for(v=!1,p=0,h=x.length;p<h;p++)if(x[p](r,M,l,!0)){v=!0;break}if(v)break}for(w=r.getLines(o,M,r.blkIndent,!1).trim(),D=w.length,C=1;C<D;C++){if(c=w.charCodeAt(C),c===91)return!1;if(c===93){g=C;break}else c===10?F++:c===92&&(C++,C<D&&w.charCodeAt(C)===10&&F++)}if(g<0||w.charCodeAt(g+1)!==58)return!1;for(C=g+2;C<D;C++)if(c=w.charCodeAt(C),c===10)F++;else if(!t(c))break;if(y=r.md.helpers.parseLinkDestination(w,C,D),!y.ok||(f=r.md.normalizeLink(y.str),!r.md.validateLink(f)))return!1;for(C=y.pos,F+=y.lines,a=C,u=F,b=C;C<D;C++)if(c=w.charCodeAt(C),c===10)F++;else if(!t(c))break;for(y=r.md.helpers.parseLinkTitle(w,C,D),C<D&&b!==C&&y.ok?(E=y.str,C=y.pos,F+=y.lines):(E="",C=a,F=u);C<D&&(c=w.charCodeAt(C),!!t(c));)C++;if(C<D&&w.charCodeAt(C)!==10&&E)for(E="",C=a,F=u;C<D&&(c=w.charCodeAt(C),!!t(c));)C++;return C<D&&w.charCodeAt(C)!==10||(m=e(w.slice(1,g)),!m)?!1:(i||(typeof r.env.references=="undefined"&&(r.env.references={}),typeof r.env.references[m]=="undefined"&&(r.env.references[m]={title:E,href:f}),r.parentType=k,r.line=o+F+1),!0)},zi}var Bi,Af;function nb(){if(Af)return Bi;Af=1;var e=Ee().isSpace;return Bi=function(n,r,o,s){var i,c,a,u,l=n.bMarks[r]+n.tShift[r],f=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||(i=n.src.charCodeAt(l),i!==35||l>=f))return!1;for(c=1,i=n.src.charCodeAt(++l);i===35&&l<f&&c<=6;)c++,i=n.src.charCodeAt(++l);return c>6||l<f&&!e(i)?!1:(s||(f=n.skipSpacesBack(f,l),a=n.skipCharsBack(f,35,l),a>l&&e(n.src.charCodeAt(a-1))&&(f=a),n.line=r+1,u=n.push("heading_open","h"+String(c),1),u.markup="########".slice(0,c),u.map=[r,n.line],u=n.push("inline","",0),u.content=n.src.slice(l,f).trim(),u.map=[r,n.line],u.children=[],u=n.push("heading_close","h"+String(c),-1),u.markup="########".slice(0,c)),!0)},Bi}var Vi,Df;function rb(){return Df||(Df=1,Vi=function(t,n,r){var o,s,i,c,a,u,l,f,p,h=n+1,m,g=t.md.block.ruler.getRules("paragraph");if(t.sCount[n]-t.blkIndent>=4)return!1;for(m=t.parentType,t.parentType="paragraph";h<r&&!t.isEmpty(h);h++)if(!(t.sCount[h]-t.blkIndent>3)){if(t.sCount[h]>=t.blkIndent&&(u=t.bMarks[h]+t.tShift[h],l=t.eMarks[h],u<l&&(p=t.src.charCodeAt(u),(p===45||p===61)&&(u=t.skipChars(u,p),u=t.skipSpaces(u),u>=l)))){f=p===61?1:2;break}if(!(t.sCount[h]<0)){for(s=!1,i=0,c=g.length;i<c;i++)if(g[i](t,h,r,!0)){s=!0;break}if(s)break}}return f?(o=t.getLines(n,h,t.blkIndent,!1).trim(),t.line=h+1,a=t.push("heading_open","h"+String(f),1),a.markup=String.fromCharCode(p),a.map=[n,t.line],a=t.push("inline","",0),a.content=o,a.map=[n,t.line-1],a.children=[],a=t.push("heading_close","h"+String(f),-1),a.markup=String.fromCharCode(p),t.parentType=m,!0):!1}),Vi}var Hi,Mf;function ob(){return Mf||(Mf=1,Hi=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]),Hi}var Eo={},Pf;function Rf(){if(Pf)return Eo;Pf=1;var e="[a-zA-Z_:][a-zA-Z0-9:._-]*",t="[^\"'=<>`\\x00-\\x20]+",n="'[^']*'",r='"[^"]*"',o="(?:"+t+"|"+n+"|"+r+")",s="(?:\\s+"+e+"(?:\\s*=\\s*"+o+")?)",i="<[A-Za-z][A-Za-z0-9\\-]*"+s+"*\\s*\\/?>",c="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",a="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",u="<[?].*?[?]>",l="<![A-Z]+\\s+[^>]*>",f="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",p=new RegExp("^(?:"+i+"|"+c+"|"+a+"|"+u+"|"+l+"|"+f+")"),h=new RegExp("^(?:"+i+"|"+c+")");return Eo.HTML_TAG_RE=p,Eo.HTML_OPEN_CLOSE_TAG_RE=h,Eo}var $i,qf;function sb(){if(qf)return $i;qf=1;var e=ob(),t=Rf().HTML_OPEN_CLOSE_TAG_RE,n=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+e.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(t.source+"\\s*$"),/^$/,!1]];return $i=function(o,s,i,c){var a,u,l,f,p=o.bMarks[s]+o.tShift[s],h=o.eMarks[s];if(o.sCount[s]-o.blkIndent>=4||!o.md.options.html||o.src.charCodeAt(p)!==60)return!1;for(f=o.src.slice(p,h),a=0;a<n.length&&!n[a][0].test(f);a++);if(a===n.length)return!1;if(c)return n[a][2];if(u=s+1,!n[a][1].test(f)){for(;u<i&&!(o.sCount[u]<o.blkIndent);u++)if(p=o.bMarks[u]+o.tShift[u],h=o.eMarks[u],f=o.src.slice(p,h),n[a][1].test(f)){f.length!==0&&u++;break}}return o.line=u,l=o.push("html_block","",0),l.map=[s,u],l.content=o.getLines(s,u,o.blkIndent,!0),!0},$i}var ji,Ff;function ib(){return Ff||(Ff=1,ji=function(t,n){var r,o,s,i,c,a,u=n+1,l=t.md.block.ruler.getRules("paragraph"),f=t.lineMax;for(a=t.parentType,t.parentType="paragraph";u<f&&!t.isEmpty(u);u++)if(!(t.sCount[u]-t.blkIndent>3)&&!(t.sCount[u]<0)){for(o=!1,s=0,i=l.length;s<i;s++)if(l[s](t,u,f,!0)){o=!0;break}if(o)break}return r=t.getLines(n,u,t.blkIndent,!1).trim(),t.line=u,c=t.push("paragraph_open","p",1),c.map=[n,t.line],c=t.push("inline","",0),c.content=r,c.map=[n,t.line],c.children=[],c=t.push("paragraph_close","p",-1),t.parentType=a,!0}),ji}var Ui,Lf;function cb(){if(Lf)return Ui;Lf=1;var e=Di(),t=Ee().isSpace;function n(r,o,s,i){var c,a,u,l,f,p,h,m;for(this.src=r,this.md=o,this.env=s,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.parentType="root",this.level=0,this.result="",a=this.src,m=!1,u=l=p=h=0,f=a.length;l<f;l++){if(c=a.charCodeAt(l),!m)if(t(c)){p++,c===9?h+=4-h%4:h++;continue}else m=!0;(c===10||l===f-1)&&(c!==10&&l++,this.bMarks.push(u),this.eMarks.push(l),this.tShift.push(p),this.sCount.push(h),this.bsCount.push(0),m=!1,p=0,h=0,u=l+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}return n.prototype.push=function(r,o,s){var i=new e(r,o,s);return i.block=!0,s<0&&this.level--,i.level=this.level,s>0&&this.level++,this.tokens.push(i),i},n.prototype.isEmpty=function(o){return this.bMarks[o]+this.tShift[o]>=this.eMarks[o]},n.prototype.skipEmptyLines=function(o){for(var s=this.lineMax;o<s&&!(this.bMarks[o]+this.tShift[o]<this.eMarks[o]);o++);return o},n.prototype.skipSpaces=function(o){for(var s,i=this.src.length;o<i&&(s=this.src.charCodeAt(o),!!t(s));o++);return o},n.prototype.skipSpacesBack=function(o,s){if(o<=s)return o;for(;o>s;)if(!t(this.src.charCodeAt(--o)))return o+1;return o},n.prototype.skipChars=function(o,s){for(var i=this.src.length;o<i&&this.src.charCodeAt(o)===s;o++);return o},n.prototype.skipCharsBack=function(o,s,i){if(o<=i)return o;for(;o>i;)if(s!==this.src.charCodeAt(--o))return o+1;return o},n.prototype.getLines=function(o,s,i,c){var a,u,l,f,p,h,m,g=o;if(o>=s)return"";for(h=new Array(s-o),a=0;g<s;g++,a++){for(u=0,m=f=this.bMarks[g],g+1<s||c?p=this.eMarks[g]+1:p=this.eMarks[g];f<p&&u<i;){if(l=this.src.charCodeAt(f),t(l))l===9?u+=4-(u+this.bsCount[g])%4:u++;else if(f-m<this.tShift[g])u++;else break;f++}u>i?h[a]=new Array(u-i+1).join(" ")+this.src.slice(f,p):h[a]=this.src.slice(f,p)}return h.join("")},n.prototype.Token=e,Ui=n,Ui}var Wi,Nf;function ab(){if(Nf)return Wi;Nf=1;var e=Si(),t=[["table",Qv(),["paragraph","reference"]],["code",Zv()],["fence",Yv(),["paragraph","reference","blockquote","list"]],["blockquote",Jv(),["paragraph","reference","blockquote","list"]],["hr",Xv(),["paragraph","reference","blockquote","list"]],["list",eb(),["paragraph","reference","blockquote"]],["reference",tb()],["heading",nb(),["paragraph","reference","blockquote"]],["lheading",rb()],["html_block",sb(),["paragraph","reference","blockquote"]],["paragraph",ib()]];function n(){this.ruler=new e;for(var r=0;r<t.length;r++)this.ruler.push(t[r][0],t[r][1],{alt:(t[r][2]||[]).slice()})}return n.prototype.tokenize=function(r,o,s){for(var i,c,a=this.ruler.getRules(""),u=a.length,l=o,f=!1,p=r.md.options.maxNesting;l<s&&(r.line=l=r.skipEmptyLines(l),!(l>=s||r.sCount[l]<r.blkIndent));){if(r.level>=p){r.line=s;break}for(c=0;c<u&&(i=a[c](r,l,s,!1),!i);c++);r.tight=!f,r.isEmpty(r.line-1)&&(f=!0),l=r.line,l<s&&r.isEmpty(l)&&(f=!0,l++,r.line=l)}},n.prototype.parse=function(r,o,s,i){var c;r&&(c=new this.State(r,o,s,i),this.tokenize(c,c.line,c.lineMax))},n.prototype.State=cb(),Wi=n,Wi}var Ki,Of;function lb(){if(Of)return Ki;Of=1;function e(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}return Ki=function(n,r){for(var o=n.pos;o<n.posMax&&!e(n.src.charCodeAt(o));)o++;return o===n.pos?!1:(r||(n.pending+=n.src.slice(n.pos,o)),n.pos=o,!0)},Ki}var Gi,zf;function ub(){if(zf)return Gi;zf=1;var e=Ee().isSpace;return Gi=function(n,r){var o,s,i=n.pos;if(n.src.charCodeAt(i)!==10)return!1;for(o=n.pending.length-1,s=n.posMax,r||(o>=0&&n.pending.charCodeAt(o)===32?o>=1&&n.pending.charCodeAt(o-1)===32?(n.pending=n.pending.replace(/ +$/,""),n.push("hardbreak","br",0)):(n.pending=n.pending.slice(0,-1),n.push("softbreak","br",0)):n.push("softbreak","br",0)),i++;i<s&&e(n.src.charCodeAt(i));)i++;return n.pos=i,!0},Gi}var Qi,Bf;function fb(){if(Bf)return Qi;Bf=1;for(var e=Ee().isSpace,t=[],n=0;n<256;n++)t.push(0);return"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(r){t[r.charCodeAt(0)]=1}),Qi=function(o,s){var i,c=o.pos,a=o.posMax;if(o.src.charCodeAt(c)!==92)return!1;if(c++,c<a){if(i=o.src.charCodeAt(c),i<256&&t[i]!==0)return s||(o.pending+=o.src[c]),o.pos+=2,!0;if(i===10){for(s||o.push("hardbreak","br",0),c++;c<a&&(i=o.src.charCodeAt(c),!!e(i));)c++;return o.pos=c,!0}}return s||(o.pending+="\\"),o.pos++,!0},Qi}var Zi,Vf;function hb(){return Vf||(Vf=1,Zi=function(t,n){var r,o,s,i,c,a,u=t.pos,l=t.src.charCodeAt(u);if(l!==96)return!1;for(r=u,u++,o=t.posMax;u<o&&t.src.charCodeAt(u)===96;)u++;for(s=t.src.slice(r,u),i=c=u;(i=t.src.indexOf("`",c))!==-1;){for(c=i+1;c<o&&t.src.charCodeAt(c)===96;)c++;if(c-i===s.length)return n||(a=t.push("code_inline","code",0),a.markup=s,a.content=t.src.slice(u,i).replace(/[ \n]+/g," ").trim()),t.pos=c,!0}return n||(t.pending+=s),t.pos+=s.length,!0}),Zi}var Io={},Hf;function $f(){return Hf||(Hf=1,Io.tokenize=function(t,n){var r,o,s,i,c,a=t.pos,u=t.src.charCodeAt(a);if(n||u!==126||(o=t.scanDelims(t.pos,!0),i=o.length,c=String.fromCharCode(u),i<2))return!1;for(i%2&&(s=t.push("text","",0),s.content=c,i--),r=0;r<i;r+=2)s=t.push("text","",0),s.content=c+c,t.delimiters.push({marker:u,jump:r,token:t.tokens.length-1,level:t.level,end:-1,open:o.can_open,close:o.can_close});return t.pos+=o.length,!0},Io.postProcess=function(t){var n,r,o,s,i,c=[],a=t.delimiters,u=t.delimiters.length;for(n=0;n<u;n++)o=a[n],o.marker===126&&o.end!==-1&&(s=a[o.end],i=t.tokens[o.token],i.type="s_open",i.tag="s",i.nesting=1,i.markup="~~",i.content="",i=t.tokens[s.token],i.type="s_close",i.tag="s",i.nesting=-1,i.markup="~~",i.content="",t.tokens[s.token-1].type==="text"&&t.tokens[s.token-1].content==="~"&&c.push(s.token-1));for(;c.length;){for(n=c.pop(),r=n+1;r<t.tokens.length&&t.tokens[r].type==="s_close";)r++;r--,n!==r&&(i=t.tokens[r],t.tokens[r]=t.tokens[n],t.tokens[n]=i)}}),Io}var Ao={},jf;function Uf(){return jf||(jf=1,Ao.tokenize=function(t,n){var r,o,s,i=t.pos,c=t.src.charCodeAt(i);if(n||c!==95&&c!==42)return!1;for(o=t.scanDelims(t.pos,c===42),r=0;r<o.length;r++)s=t.push("text","",0),s.content=String.fromCharCode(c),t.delimiters.push({marker:c,length:o.length,jump:r,token:t.tokens.length-1,level:t.level,end:-1,open:o.can_open,close:o.can_close});return t.pos+=o.length,!0},Ao.postProcess=function(t){var n,r,o,s,i,c,a=t.delimiters,u=t.delimiters.length;for(n=u-1;n>=0;n--)r=a[n],!(r.marker!==95&&r.marker!==42)&&r.end!==-1&&(o=a[r.end],c=n>0&&a[n-1].end===r.end+1&&a[n-1].token===r.token-1&&a[r.end+1].token===o.token+1&&a[n-1].marker===r.marker,i=String.fromCharCode(r.marker),s=t.tokens[r.token],s.type=c?"strong_open":"em_open",s.tag=c?"strong":"em",s.nesting=1,s.markup=c?i+i:i,s.content="",s=t.tokens[o.token],s.type=c?"strong_close":"em_close",s.tag=c?"strong":"em",s.nesting=-1,s.markup=c?i+i:i,s.content="",c&&(t.tokens[a[n-1].token].content="",t.tokens[a[r.end+1].token].content="",n--))}),Ao}var Yi,Wf;function db(){if(Wf)return Yi;Wf=1;var e=Ee().normalizeReference,t=Ee().isSpace;return Yi=function(r,o){var s,i,c,a,u,l,f,p,h,m,g="",k=r.pos,y=r.posMax,b=r.pos,w=!0;if(r.src.charCodeAt(r.pos)!==91||(u=r.pos+1,a=r.md.helpers.parseLinkLabel(r,r.pos,!0),a<0))return!1;if(l=a+1,l<y&&r.src.charCodeAt(l)===40){for(w=!1,l++;l<y&&(i=r.src.charCodeAt(l),!(!t(i)&&i!==10));l++);if(l>=y)return!1;for(b=l,f=r.md.helpers.parseLinkDestination(r.src,l,r.posMax),f.ok&&(g=r.md.normalizeLink(f.str),r.md.validateLink(g)?l=f.pos:g=""),b=l;l<y&&(i=r.src.charCodeAt(l),!(!t(i)&&i!==10));l++);if(f=r.md.helpers.parseLinkTitle(r.src,l,r.posMax),l<y&&b!==l&&f.ok)for(h=f.str,l=f.pos;l<y&&(i=r.src.charCodeAt(l),!(!t(i)&&i!==10));l++);else h="";(l>=y||r.src.charCodeAt(l)!==41)&&(w=!0),l++}if(w){if(typeof r.env.references=="undefined")return!1;if(l<y&&r.src.charCodeAt(l)===91?(b=l+1,l=r.md.helpers.parseLinkLabel(r,l),l>=0?c=r.src.slice(b,l++):l=a+1):l=a+1,c||(c=r.src.slice(u,a)),p=r.env.references[e(c)],!p)return r.pos=k,!1;g=p.href,h=p.title}return o||(r.pos=u,r.posMax=a,m=r.push("link_open","a",1),m.attrs=s=[["href",g]],h&&s.push(["title",h]),r.md.inline.tokenize(r),m=r.push("link_close","a",-1)),r.pos=l,r.posMax=y,!0},Yi}var Ji,Kf;function pb(){if(Kf)return Ji;Kf=1;var e=Ee().normalizeReference,t=Ee().isSpace;return Ji=function(r,o){var s,i,c,a,u,l,f,p,h,m,g,k,y,b="",w=r.pos,v=r.posMax;if(r.src.charCodeAt(r.pos)!==33||r.src.charCodeAt(r.pos+1)!==91||(l=r.pos+2,u=r.md.helpers.parseLinkLabel(r,r.pos+1,!1),u<0))return!1;if(f=u+1,f<v&&r.src.charCodeAt(f)===40){for(f++;f<v&&(i=r.src.charCodeAt(f),!(!t(i)&&i!==10));f++);if(f>=v)return!1;for(y=f,h=r.md.helpers.parseLinkDestination(r.src,f,r.posMax),h.ok&&(b=r.md.normalizeLink(h.str),r.md.validateLink(b)?f=h.pos:b=""),y=f;f<v&&(i=r.src.charCodeAt(f),!(!t(i)&&i!==10));f++);if(h=r.md.helpers.parseLinkTitle(r.src,f,r.posMax),f<v&&y!==f&&h.ok)for(m=h.str,f=h.pos;f<v&&(i=r.src.charCodeAt(f),!(!t(i)&&i!==10));f++);else m="";if(f>=v||r.src.charCodeAt(f)!==41)return r.pos=w,!1;f++}else{if(typeof r.env.references=="undefined")return!1;if(f<v&&r.src.charCodeAt(f)===91?(y=f+1,f=r.md.helpers.parseLinkLabel(r,f),f>=0?a=r.src.slice(y,f++):f=u+1):f=u+1,a||(a=r.src.slice(l,u)),p=r.env.references[e(a)],!p)return r.pos=w,!1;b=p.href,m=p.title}return o||(c=r.src.slice(l,u),r.md.inline.parse(c,r.md,r.env,k=[]),g=r.push("image","img",0),g.attrs=s=[["src",b],["alt",""]],g.children=k,g.content=c,m&&s.push(["title",m])),r.pos=f,r.posMax=v,!0},Ji}var Xi,Gf;function gb(){if(Gf)return Xi;Gf=1;var e=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,t=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;return Xi=function(r,o){var s,i,c,a,u,l,f=r.pos;return r.src.charCodeAt(f)!==60||(s=r.src.slice(f),s.indexOf(">")<0)?!1:t.test(s)?(i=s.match(t),a=i[0].slice(1,-1),u=r.md.normalizeLink(a),r.md.validateLink(u)?(o||(l=r.push("link_open","a",1),l.attrs=[["href",u]],l.markup="autolink",l.info="auto",l=r.push("text","",0),l.content=r.md.normalizeLinkText(a),l=r.push("link_close","a",-1),l.markup="autolink",l.info="auto"),r.pos+=i[0].length,!0):!1):e.test(s)?(c=s.match(e),a=c[0].slice(1,-1),u=r.md.normalizeLink("mailto:"+a),r.md.validateLink(u)?(o||(l=r.push("link_open","a",1),l.attrs=[["href",u]],l.markup="autolink",l.info="auto",l=r.push("text","",0),l.content=r.md.normalizeLinkText(a),l=r.push("link_close","a",-1),l.markup="autolink",l.info="auto"),r.pos+=c[0].length,!0):!1):!1},Xi}var ec,Qf;function mb(){if(Qf)return ec;Qf=1;var e=Rf().HTML_TAG_RE;function t(n){var r=n|32;return r>=97&&r<=122}return ec=function(r,o){var s,i,c,a,u=r.pos;return!r.md.options.html||(c=r.posMax,r.src.charCodeAt(u)!==60||u+2>=c)||(s=r.src.charCodeAt(u+1),s!==33&&s!==63&&s!==47&&!t(s))||(i=r.src.slice(u).match(e),!i)?!1:(o||(a=r.push("html_inline","",0),a.content=r.src.slice(u,u+i[0].length)),r.pos+=i[0].length,!0)},ec}var tc,Zf;function vb(){if(Zf)return tc;Zf=1;var e=$u(),t=Ee().has,n=Ee().isValidEntityCode,r=Ee().fromCodePoint,o=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,s=/^&([a-z][a-z0-9]{1,31});/i;return tc=function(c,a){var u,l,f,p=c.pos,h=c.posMax;if(c.src.charCodeAt(p)!==38)return!1;if(p+1<h){if(u=c.src.charCodeAt(p+1),u===35){if(f=c.src.slice(p).match(o),f)return a||(l=f[1][0].toLowerCase()==="x"?parseInt(f[1].slice(1),16):parseInt(f[1],10),c.pending+=n(l)?r(l):r(65533)),c.pos+=f[0].length,!0}else if(f=c.src.slice(p).match(s),f&&t(e,f[1]))return a||(c.pending+=e[f[1]]),c.pos+=f[0].length,!0}return a||(c.pending+="&"),c.pos++,!0},tc}var nc,Yf;function bb(){return Yf||(Yf=1,nc=function(t){var n,r,o,s,i=t.delimiters,c=t.delimiters.length;for(n=0;n<c;n++)if(o=i[n],!!o.close)for(r=n-o.jump-1;r>=0;){if(s=i[r],s.open&&s.marker===o.marker&&s.end<0&&s.level===o.level){var a=(s.close||o.open)&&typeof s.length!="undefined"&&typeof o.length!="undefined"&&(s.length+o.length)%3===0;if(!a){o.jump=n-r,o.open=!1,s.end=n,s.jump=0;break}}r-=s.jump+1}}),nc}var rc,Jf;function yb(){return Jf||(Jf=1,rc=function(t){var n,r,o=0,s=t.tokens,i=t.tokens.length;for(n=r=0;n<i;n++)o+=s[n].nesting,s[n].level=o,s[n].type==="text"&&n+1<i&&s[n+1].type==="text"?s[n+1].content=s[n].content+s[n+1].content:(n!==r&&(s[r]=s[n]),r++);n!==r&&(s.length=r)}),rc}var oc,Xf;function wb(){if(Xf)return oc;Xf=1;var e=Di(),t=Ee().isWhiteSpace,n=Ee().isPunctChar,r=Ee().isMdAsciiPunct;function o(s,i,c,a){this.src=s,this.env=c,this.md=i,this.tokens=a,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[]}return o.prototype.pushPending=function(){var s=new e("text","",0);return s.content=this.pending,s.level=this.pendingLevel,this.tokens.push(s),this.pending="",s},o.prototype.push=function(s,i,c){this.pending&&this.pushPending();var a=new e(s,i,c);return c<0&&this.level--,a.level=this.level,c>0&&this.level++,this.pendingLevel=this.level,this.tokens.push(a),a},o.prototype.scanDelims=function(s,i){var c=s,a,u,l,f,p,h,m,g,k,y=!0,b=!0,w=this.posMax,v=this.src.charCodeAt(s);for(a=s>0?this.src.charCodeAt(s-1):32;c<w&&this.src.charCodeAt(c)===v;)c++;return l=c-s,u=c<w?this.src.charCodeAt(c):32,m=r(a)||n(String.fromCharCode(a)),k=r(u)||n(String.fromCharCode(u)),h=t(a),g=t(u),g?y=!1:k&&(h||m||(y=!1)),h?b=!1:m&&(g||k||(b=!1)),i?(f=y,p=b):(f=y&&(!b||m),p=b&&(!y||k)),{can_open:f,can_close:p,length:l}},o.prototype.Token=e,oc=o,oc}var sc,eh;function _b(){if(eh)return sc;eh=1;var e=Si(),t=[["text",lb()],["newline",ub()],["escape",fb()],["backticks",hb()],["strikethrough",$f().tokenize],["emphasis",Uf().tokenize],["link",db()],["image",pb()],["autolink",gb()],["html_inline",mb()],["entity",vb()]],n=[["balance_pairs",bb()],["strikethrough",$f().postProcess],["emphasis",Uf().postProcess],["text_collapse",yb()]];function r(){var o;for(this.ruler=new e,o=0;o<t.length;o++)this.ruler.push(t[o][0],t[o][1]);for(this.ruler2=new e,o=0;o<n.length;o++)this.ruler2.push(n[o][0],n[o][1])}return r.prototype.skipToken=function(o){var s,i,c=o.pos,a=this.ruler.getRules(""),u=a.length,l=o.md.options.maxNesting,f=o.cache;if(typeof f[c]!="undefined"){o.pos=f[c];return}if(o.level<l)for(i=0;i<u&&(o.level++,s=a[i](o,!0),o.level--,!s);i++);else o.pos=o.posMax;s||o.pos++,f[c]=o.pos},r.prototype.tokenize=function(o){for(var s,i,c=this.ruler.getRules(""),a=c.length,u=o.posMax,l=o.md.options.maxNesting;o.pos<u;){if(o.level<l)for(i=0;i<a&&(s=c[i](o,!1),!s);i++);if(s){if(o.pos>=u)break;continue}o.pending+=o.src[o.pos++]}o.pending&&o.pushPending()},r.prototype.parse=function(o,s,i,c){var a,u,l,f=new this.State(o,s,i,c);for(this.tokenize(f),u=this.ruler2.getRules(""),l=u.length,a=0;a<l;a++)u[a](f)},r.prototype.State=wb(),sc=r,sc}var ic,th;function Sb(){return th||(th=1,ic=function(e){var t={};t.src_Any=Ju().source,t.src_Cc=ef().source,t.src_Z=rf().source,t.src_P=ai().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),ic}var cc,nh;function kb(){if(nh)return cc;nh=1;function e(w){var v=Array.prototype.slice.call(arguments,1);return v.forEach(function(x){x&&Object.keys(x).forEach(function(E){w[E]=x[E]})}),w}function t(w){return Object.prototype.toString.call(w)}function n(w){return t(w)==="[object String]"}function r(w){return t(w)==="[object Object]"}function o(w){return t(w)==="[object RegExp]"}function s(w){return t(w)==="[object Function]"}function i(w){return w.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var c={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function a(w){return Object.keys(w||{}).reduce(function(v,x){return v||c.hasOwnProperty(x)},!1)}var u={"http:":{validate:function(w,v,x){var E=w.slice(v);return x.re.http||(x.re.http=new RegExp("^\\/\\/"+x.re.src_auth+x.re.src_host_port_strict+x.re.src_path,"i")),x.re.http.test(E)?E.match(x.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(w,v,x){var E=w.slice(v);return x.re.no_http||(x.re.no_http=new RegExp("^"+x.re.src_auth+"(?:localhost|(?:(?:"+x.re.src_domain+")\\.)+"+x.re.src_domain_root+")"+x.re.src_port+x.re.src_host_terminator+x.re.src_path,"i")),x.re.no_http.test(E)?v>=3&&w[v-3]===":"||v>=3&&w[v-3]==="/"?0:E.match(x.re.no_http)[0].length:0}},"mailto:":{validate:function(w,v,x){var E=w.slice(v);return x.re.mailto||(x.re.mailto=new RegExp("^"+x.re.src_email_name+"@"+x.re.src_host_strict,"i")),x.re.mailto.test(E)?E.match(x.re.mailto)[0].length:0}}},l="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",f="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function p(w){w.__index__=-1,w.__text_cache__=""}function h(w){return function(v,x){var E=v.slice(x);return w.test(E)?E.match(w)[0].length:0}}function m(){return function(w,v){v.normalize(w)}}function g(w){var v=w.re=Sb()(w.__opts__),x=w.__tlds__.slice();w.onCompile(),w.__tlds_replaced__||x.push(l),x.push(v.src_xn),v.src_tlds=x.join("|");function E(M){return M.replace("%TLDS%",v.src_tlds)}v.email_fuzzy=RegExp(E(v.tpl_email_fuzzy),"i"),v.link_fuzzy=RegExp(E(v.tpl_link_fuzzy),"i"),v.link_no_ip_fuzzy=RegExp(E(v.tpl_link_no_ip_fuzzy),"i"),v.host_fuzzy_test=RegExp(E(v.tpl_host_fuzzy_test),"i");var F=[];w.__compiled__={};function C(M,N){throw new Error('(LinkifyIt) Invalid schema "'+M+'": '+N)}Object.keys(w.__schemas__).forEach(function(M){var N=w.__schemas__[M];if(N!==null){var L={validate:null,link:null};if(w.__compiled__[M]=L,r(N)){o(N.validate)?L.validate=h(N.validate):s(N.validate)?L.validate=N.validate:C(M,N),s(N.normalize)?L.normalize=N.normalize:N.normalize?C(M,N):L.normalize=m();return}if(n(N)){F.push(M);return}C(M,N)}}),F.forEach(function(M){w.__compiled__[w.__schemas__[M]]&&(w.__compiled__[M].validate=w.__compiled__[w.__schemas__[M]].validate,w.__compiled__[M].normalize=w.__compiled__[w.__schemas__[M]].normalize)}),w.__compiled__[""]={validate:null,normalize:m()};var D=Object.keys(w.__compiled__).filter(function(M){return M.length>0&&w.__compiled__[M]}).map(i).join("|");w.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+v.src_ZPCc+"))("+D+")","i"),w.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+v.src_ZPCc+"))("+D+")","ig"),w.re.pretest=RegExp("("+w.re.schema_test.source+")|("+w.re.host_fuzzy_test.source+")|@","i"),p(w)}function k(w,v){var x=w.__index__,E=w.__last_index__,F=w.__text_cache__.slice(x,E);this.schema=w.__schema__.toLowerCase(),this.index=x+v,this.lastIndex=E+v,this.raw=F,this.text=F,this.url=F}function y(w,v){var x=new k(w,v);return w.__compiled__[x.schema].normalize(x,w),x}function b(w,v){if(!(this instanceof b))return new b(w,v);v||a(w)&&(v=w,w={}),this.__opts__=e({},c,v),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=e({},u,w),this.__compiled__={},this.__tlds__=f,this.__tlds_replaced__=!1,this.re={},g(this)}return b.prototype.add=function(v,x){return this.__schemas__[v]=x,g(this),this},b.prototype.set=function(v){return this.__opts__=e(this.__opts__,v),this},b.prototype.test=function(v){if(this.__text_cache__=v,this.__index__=-1,!v.length)return!1;var x,E,F,C,D,M,N,L,ae;if(this.re.schema_test.test(v)){for(N=this.re.schema_search,N.lastIndex=0;(x=N.exec(v))!==null;)if(C=this.testSchemaAt(v,x[2],N.lastIndex),C){this.__schema__=x[2],this.__index__=x.index+x[1].length,this.__last_index__=x.index+x[0].length+C;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(L=v.search(this.re.host_fuzzy_test),L>=0&&(this.__index__<0||L<this.__index__)&&(E=v.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(D=E.index+E[1].length,(this.__index__<0||D<this.__index__)&&(this.__schema__="",this.__index__=D,this.__last_index__=E.index+E[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(ae=v.indexOf("@"),ae>=0&&(F=v.match(this.re.email_fuzzy))!==null&&(D=F.index+F[1].length,M=F.index+F[0].length,(this.__index__<0||D<this.__index__||D===this.__index__&&M>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=D,this.__last_index__=M))),this.__index__>=0},b.prototype.pretest=function(v){return this.re.pretest.test(v)},b.prototype.testSchemaAt=function(v,x,E){return this.__compiled__[x.toLowerCase()]?this.__compiled__[x.toLowerCase()].validate(v,E,this):0},b.prototype.match=function(v){var x=0,E=[];this.__index__>=0&&this.__text_cache__===v&&(E.push(y(this,x)),x=this.__last_index__);for(var F=x?v.slice(x):v;this.test(F);)E.push(y(this,x)),F=F.slice(this.__last_index__),x+=this.__last_index__;return E.length?E:null},b.prototype.tlds=function(v,x){return v=Array.isArray(v)?v:[v],x?(this.__tlds__=this.__tlds__.concat(v).sort().filter(function(E,F,C){return E!==C[F-1]}).reverse(),g(this),this):(this.__tlds__=v.slice(),this.__tlds_replaced__=!0,g(this),this)},b.prototype.normalize=function(v){v.schema||(v.url="http://"+v.url),v.schema==="mailto:"&&!/^mailto:/i.test(v.url)&&(v.url="mailto:"+v.url)},b.prototype.onCompile=function(){},cc=b,cc}const xb=Iv(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var ac,rh;function Cb(){return rh||(rh=1,ac={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}),ac}var lc,oh;function Tb(){return oh||(oh=1,lc={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}),lc}var uc,sh;function Eb(){return sh||(sh=1,uc={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}),uc}var fc,ih;function Ib(){if(ih)return fc;ih=1;var e=Ee(),t=zv(),n=Bv(),r=Gv(),o=ab(),s=_b(),i=kb(),c=Zu(),a=xb,u={default:Cb(),zero:Tb(),commonmark:Eb()},l=/^(vbscript|javascript|file|data):/,f=/^data:image\/(gif|png|jpeg|webp);/;function p(y){var b=y.trim().toLowerCase();return l.test(b)?!!f.test(b):!0}var h=["http:","https:","mailto:"];function m(y){var b=c.parse(y,!0);if(b.hostname&&(!b.protocol||h.indexOf(b.protocol)>=0))try{b.hostname=a.toASCII(b.hostname)}catch(w){}return c.encode(c.format(b))}function g(y){var b=c.parse(y,!0);if(b.hostname&&(!b.protocol||h.indexOf(b.protocol)>=0))try{b.hostname=a.toUnicode(b.hostname)}catch(w){}return c.decode(c.format(b))}function k(y,b){if(!(this instanceof k))return new k(y,b);b||e.isString(y)||(b=y||{},y="default"),this.inline=new s,this.block=new o,this.core=new r,this.renderer=new n,this.linkify=new i,this.validateLink=p,this.normalizeLink=m,this.normalizeLinkText=g,this.utils=e,this.helpers=e.assign({},t),this.options={},this.configure(y),b&&this.set(b)}return k.prototype.set=function(y){return e.assign(this.options,y),this},k.prototype.configure=function(y){var b=this,w;if(e.isString(y)&&(w=y,y=u[w],!y))throw new Error('Wrong `markdown-it` preset "'+w+'", check name');if(!y)throw new Error("Wrong `markdown-it` preset, can't be empty");return y.options&&b.set(y.options),y.components&&Object.keys(y.components).forEach(function(v){y.components[v].rules&&b[v].ruler.enableOnly(y.components[v].rules),y.components[v].rules2&&b[v].ruler2.enableOnly(y.components[v].rules2)}),this},k.prototype.enable=function(y,b){var w=[];Array.isArray(y)||(y=[y]),["core","block","inline"].forEach(function(x){w=w.concat(this[x].ruler.enable(y,!0))},this),w=w.concat(this.inline.ruler2.enable(y,!0));var v=y.filter(function(x){return w.indexOf(x)<0});if(v.length&&!b)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+v);return this},k.prototype.disable=function(y,b){var w=[];Array.isArray(y)||(y=[y]),["core","block","inline"].forEach(function(x){w=w.concat(this[x].ruler.disable(y,!0))},this),w=w.concat(this.inline.ruler2.disable(y,!0));var v=y.filter(function(x){return w.indexOf(x)<0});if(v.length&&!b)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+v);return this},k.prototype.use=function(y){var b=[this].concat(Array.prototype.slice.call(arguments,1));return y.apply(y,b),this},k.prototype.parse=function(y,b){if(typeof y!="string")throw new Error("Input data should be a String");var w=new this.core.State(y,this,b);return this.core.process(w),w.tokens},k.prototype.render=function(y,b){return b=b||{},this.renderer.render(this.parse(y,b),this.options,b)},k.prototype.parseInline=function(y,b){var w=new this.core.State(y,this,b);return w.inlineMode=!0,this.core.process(w),w.tokens},k.prototype.renderInline=function(y,b){return b=b||{},this.renderer.render(this.parseInline(y,b),this.options,b)},fc=k,fc}var hc,ch;function Ab(){return ch||(ch=1,hc=Ib()),hc}var Db=Ab();const Mb=Ev(Db);class Pb{constructor(){this.md=new Mb;let t=this.md.renderer.rules.link_open||function(n,r,o,s,i){return i.renderToken(n,r,o)};this.md.renderer.rules.link_open=(n,r,o,s,i)=>{var c=n[r].attrIndex("target");return c<0?n[r].attrPush(["target","_blank"]):n[r].attrs[c][1]="_blank",t(n,r,o,s,i)}}render(t){return this.md.render(t)}}let Rb=new Pb;const qb=["innerHTML"],Fb={class:"operation-bar"},Do=Re(Te({__name:"SimpleDialog",props:{active:{type:Boolean},title:{},isCompulsive:{type:Boolean,default:!1},mdText:{},operations:{}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,o=Y(null),s=J(()=>n.operations!=null&&n.operations.length>0?n.operations:[{name:"CONFIRM",btnType:"plain",isCloseModal:!0}]);function i(){n.isCompulsive||r("close")}function c(u){u.onClick&&u.onClick(),u.isCloseModal&&r("close")}function a(u){if(u.key==="Enter"&&s.value.length===1){let l=document.querySelectorAll(".simple-modal");(l.length<=1||l[l.length-1]===o.value)&&c(s.value[0])}return u.stopPropagation(),!0}return je(()=>n.active,u=>{u?setTimeout(()=>{document.addEventListener("keydown",a)},200):document.removeEventListener("keydown",a)}),(u,l)=>(R(),ge(ls,{to:"#ehunter-app"},[ce(Qt,{name:"slow-opacity-fade",appear:""},{default:We(()=>[e.active?(R(),V("div",{key:0,ref_key:"modal",ref:o,class:"simple-modal"},[I("div",{class:"simple-dialog",onClick:l[0]||(l[0]=Ne(()=>{},["stop"])),onWheel:l[1]||(l[1]=Ne(()=>{},["stop"]))},[I("div",{class:"background",onClick:i}),I("article",null,[I("h4",null,Q(e.title),1),e.mdText!=null?(R(),V("p",{key:0,class:"markdown",innerHTML:S(Rb).render(e.mdText)},null,8,qb)):ue("",!0),I("div",Fb,[(R(!0),V(we,null,$e(s.value,f=>(R(),ge(Ir,{class:"operation",key:f.name,label:f.name,type:f.btnType,mode:"inline",onClick:p=>c(f)},null,8,["label","type","onClick"]))),128))])])],32)],512)):ue("",!0)]),_:1})]))}}),[["__scopeId","data-v-ea2849fc"]]),Lb=Re(Te({__name:"PopSlider",props:{active:{type:Boolean},min:{},max:{},step:{default:1},init:{},isFloat:{type:Boolean,default:!1}},emits:["close","change"],setup(e,{emit:t}){const n=e,r=t,o=Y(n.init),s=Y(null),i=Y(!1),c=J(()=>W.value.numberInputTip.replace("{{min}}",n.min).replace("{{max}}",n.max));je(()=>n.init,h=>{o.value=h});function a(){l(),r("close")}function u(h){r("change",h)}function l(){s.value.blur(),n.isFloat||(o.value=Math.floor(o.value)),o.value<n.min||o.value>n.max?(o.value=n.init,i.value=!0):u(o.value)}function f(h){h.key==="Enter"&&l()}function p(h){(h.key==="ArrowLeft"||h.key==="ArrowRight")&&h.stopPropagation()}return(h,m)=>(R(),ge(Co,{class:"PopSlider",active:e.active,"custom-style":{maxWidth:"min(92vw, 360px)"},onClose:m[2]||(m[2]=g=>r("close"))},{default:We(()=>[I("div",{class:"content",onKeydown:p},[gn(I("input",{ref_key:"inputElem",ref:s,class:"value",type:"number",onKeydown:f,"onUpdate:modelValue":m[0]||(m[0]=g=>o.value=g)},null,544),[[eg,o.value]]),ce(Tv,{class:"slider",min:e.min,max:e.max,step:e.step,init:e.init,onChange:u},null,8,["min","max","step","init"]),ce(Ir,{class:"button",label:S(W).confirm,type:"positive",onClick:a},null,8,["label"])],32),ce(Do,{title:S(W).tips,active:i.value,"md-text":c.value,onClose:m[1]||(m[1]=()=>i.value=!1)},null,8,["title","active","md-text"])]),_:1},8,["active"]))}}),[["__scopeId","data-v-ffc66e8a"]]),Nb={class:"num-drop-option"},Mo=Re(Te({__name:"NumDropOption",props:{min:{},max:{},curVal:{},quickOptions:{},formatFn:{},suffix:{},isFloat:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){const n=e;function r(l){let f=String(l);return n.suffix?f+=n.suffix:n.formatFn?n.formatFn(l):f}const o=J(()=>{let l=n.quickOptions.map(f=>({name:r(f),val:f}));return l.push({i18nKey:"custom",val:-1}),l}),s=t,i=Y(!1);function c(l,f){f==n.quickOptions.length?i.value=!0:s("change",n.quickOptions[f])}function a(l){s("change",l)}function u(){i.value=!1}return(l,f)=>(R(),V("div",Nb,[ce(Er,{list:o.value,"has-custom-option":!0,"cur-val":r(n.curVal),onChange:c,"format-fn":n.formatFn},null,8,["list","cur-val","format-fn"]),ce(Lb,{active:i.value,init:n.curVal,"is-float":n.isFloat,max:n.max,min:n.min,step:1,onChange:a,onClose:u},null,8,["active","init","is-float","max","min"])]))}}),[["__scopeId","data-v-c7457182"]]),Po=Re(Te({__name:"SimpleSwitch",props:{active:{type:Boolean}},emits:["change"],setup(e,{emit:t}){const n=t;return(r,o)=>(R(),V("div",{class:"switch",onClick:o[0]||(o[0]=s=>n("change",!e.active))},[I("div",{class:be({track:!0,active:e.active})},null,2),I("div",{class:be({thumb:!0,active:e.active})},null,2)]))}}),[["__scopeId","data-v-a86efd32"]]),Ob={class:"options no-select"},zb=Re(Te({__name:"MoreMenuPopover",props:{active:Boolean},emits:["close","more-settings","quick-preview","download"],setup(e,{emit:t}){const n=t;function r(){n("more-settings"),n("close")}function o(){n("quick-preview"),n("close")}function s(){n("download"),n("close")}return(i,c)=>(R(),ge(Co,{active:e.active,"custom-style":{"margin-left":"7px","margin-top":"4px"},onClose:c[0]||(c[0]=a=>i.$emit("close"))},{default:We(()=>[I("div",Ob,[I("div",{class:"item",onClick:r},[I("span",null,Q(S(W).moreSettings),1)]),I("div",{class:"item",onClick:o},[I("span",null,Q(S(W).quickPreview),1)]),I("div",{class:"item",onClick:s},[I("span",null,Q(S(W).download),1)])])]),_:1},8,["active"]))}}),[["__scopeId","data-v-f51bd597"]]);function wt(e){switch(e){case"readingMode":return d.readingMode;case"widthScale":return d.widthScale;case"loadNum":return d.loadNum;case"downloadChunkSize":return d.downloadChunkSize;case"volumeSize":return d.volumeSize;case"showThumbView":return d.showThumbView;case"scrollPageMargin":return d.scrollPageMargin;case"pagesPerScreen":return d.pagesPerScreen;case"bookDirection":return d.bookDirection;case"pageTurnAnimationMode":return d.pageTurnAnimationMode;case"showBookPagination":return d.showBookPagination;case"isChangeOddEven":return d.isChangeOddEven;case"isReverseFlip":return d.isReverseFlip;case"isAutoFlip":return d.isAutoFlip;case"autoFlipFrequency":return d.autoFlipFrequency;case"showBookThumbView":return d.showBookThumbView;case"IsReverseBookWheeFliplDirection":return d.IsReverseBookWheeFliplDirection;case"wheelSensitivity":return d.wheelSensitivity;case"magnifierZoom":return d.magnifierZoom;case"magnifierAreaSize":return d.magnifierAreaSize;case"lang":return W.value.lang;case"autoRetryByOtherSource":return d.autoRetryByOtherSource;default:return null}}function ah(e,t){switch(e){case"readingMode":B.setReadingMode(t);break;case"widthScale":B.setWidthScale(t);break;case"loadNum":B.setLoadNum(t);break;case"downloadChunkSize":B.setDownloadChunkSize(t);break;case"volumeSize":B.setVolumeSize(t);break;case"showThumbView":d.showThumbView!==t&&B.toggleShowThumbView();break;case"scrollPageMargin":B.setScrollPageMargin(t);break;case"pagesPerScreen":B.setPagesPerScreen(t);break;case"bookDirection":B.setBookDirection(t);break;case"pageTurnAnimationMode":B.setPageTurnAnimationMode(t);break;case"showBookPagination":d.showBookPagination!==t&&B.toggleShowBookPagination();break;case"isChangeOddEven":d.isChangeOddEven!==t&&B.toggleIsChangeOddEven();break;case"isReverseFlip":d.isReverseFlip!==t&&B.toggleIsReverseFlip();break;case"isAutoFlip":d.isAutoFlip!==t&&B.toggleIsAutoFlip();break;case"autoFlipFrequency":B.setAutoFlipFrequency(t);break;case"showBookThumbView":d.showBookThumbView!==t&&B.toggleShowBookThumbView();break;case"IsReverseBookWheeFliplDirection":d.IsReverseBookWheeFliplDirection!==t&&B.toggleIsReverseBookWheeFliplDirection();break;case"wheelSensitivity":B.setWheelSensitivity(t);break;case"magnifierZoom":B.setMagnifierZoom(t);break;case"magnifierAreaSize":B.setMagnifierAreaSize(t);break;case"lang":B.setLang(t);break;case"autoRetryByOtherSource":B.setAutoRetryByOtherSource(t);break}}function Ro(e){const t=Fe[e];if(!t||!t.dropKey)return[];const n=ri[t.dropKey];return Array.isArray(n)?n:(n==null?void 0:n.list)||[]}function qo(e){const t=Fe[e];return!t||!t.numKey?[]:ri[t.numKey].list}function Fo(e){const t=Fe[e];return!t||!t.numKey?"":ri[t.numKey].suffix||""}function dc(e){return Im[e]}const Bb={class:"ehunter-panel-header"},Vb=["aria-label"],Hb={class:"ehunter-panel-body"},$b={class:"ehunter-left-nav"},jb=["onClick"],Ub={class:"ehunter-label-block"},Wb={class:"ehunter-label"},Kb={key:0,class:"ehunter-tip"},Gb={class:"ehunter-label-block"},Qb={class:"ehunter-label"},Zb={key:0,class:"ehunter-tip"},Yb={class:"ehunter-label-block"},Jb={class:"ehunter-label"},Xb={key:0,class:"ehunter-tip"},e0={class:"ehunter-quick-lanes"},t0={class:"ehunter-lane-intro"},n0={class:"ehunter-lane-header"},r0={class:"ehunter-lane-desc"},o0=["data-id","onDragstart","onDrop"],s0={class:"ehunter-label"},i0={key:0,class:"ehunter-mode-tag"},c0={class:"ehunter-lane-header"},a0={class:"ehunter-lane-desc"},l0=["data-id","onDragstart","onDrop"],u0={class:"ehunter-label"},f0={key:0,class:"ehunter-mode-tag"},h0={class:"ehunter-shortcut-intro"},d0={class:"ehunter-label-block"},p0={class:"ehunter-label"},g0={key:0,class:"ehunter-tip"},m0={class:"ehunter-shortcut-editor"},v0=["onClick"],b0={class:"ehunter-chip-key"},y0={class:"ehunter-shortcut-add"},w0=["onClick"],_0=["onChange"],S0={value:"",disabled:"",selected:""},k0=["value"],x0={class:"ehunter-row"},C0={class:"ehunter-label"},T0={class:"ehunter-row"},E0={class:"ehunter-label"},I0={class:"ehunter-value"},A0={class:"ehunter-row"},D0={class:"ehunter-label"},M0={class:"ehunter-row"},P0={class:"ehunter-label"},pc="readingMode",R0=Re(Te({__name:"MoreSettingsDialog",setup(e){const t=Y(null),n=Y(null),r=Y(null),o=Y(null),s=Y(null),i=Y(null),c=Y(null),a=Y(""),u=Y(""),l=J(()=>wr.version);function f(ee){a.value&&ee.preventDefault()}const p=J(()=>d.quickSettingOrder.map(ee=>wo.find(P=>P.id===ee)).filter(ee=>!!ee)),h=J(()=>p.value.filter(ee=>!ee.fixed)),m=J(()=>h.value.filter(ee=>B.isQuickSettingSelected(ee.id))),g=J(()=>h.value.filter(ee=>!B.isQuickSettingSelected(ee.id))),k=dc("general"),y=dc("scroll"),b=dc("book"),w=J(()=>[{name:W.value.cancel,btnType:"plain",isCloseModal:!0,onClick:()=>B.hideFactoryResetDialog()},{name:W.value.confirm,btnType:"positive",isCloseModal:!0,onClick:()=>B.runFactoryReset()}]);function v(ee){return ee==="scroll-only"?W.value.scrollMode:ee==="book-only"?W.value.bookMode:""}function x(ee,P){return ee==="lang"?W.value.languageSetting:W.value[P]}function E(ee){const P=Fe[ee];return P?W.value[P.labelI18nKey]:ee}function F(ee){const P=Fe[ee];if(!P||!P.tipI18nKey)return"";const A=W.value[P.tipI18nKey]||"",K=W.value[P.labelI18nKey]||"";return!A||A===K?"":A}function C(ee,P){ah(ee,P)}function D(ee){switch(ee){case"general":return n.value;case"scroll":return r.value;case"book":return o.value;case"quick":return s.value;case"shortcuts":return i.value;case"other":return c.value;default:return null}}function M(ee){B.setActiveSettingsCategory(ee);const P=D(ee);if(!P||!t.value)return;const A=t.value.getBoundingClientRect(),K=P.getBoundingClientRect(),ye=t.value.scrollTop+(K.top-A.top);t.value.scrollTo({top:Math.max(0,ye),behavior:"smooth"})}function N(){if(!t.value)return;const ee=t.value.scrollTop,P=[{id:"general",elem:n.value},{id:"scroll",elem:r.value},{id:"book",elem:o.value},{id:"quick",elem:s.value},{id:"shortcuts",elem:i.value},{id:"other",elem:c.value}];let A="general";for(const K of P)K.elem&&ee+20>=K.elem.offsetTop&&(A=K.id);A!==d.activeSettingsCategory&&B.setActiveSettingsCategory(A)}function L(ee,P){h.value.find(A=>A.id===P)&&(a.value=P,ee.dataTransfer&&(ee.dataTransfer.effectAllowed="move",ee.dataTransfer.setData("text/plain",P)))}function ae(){a.value=""}function z(ee,P){if(ee===P)return;const A=h.value.map(q=>q.id),K=A.indexOf(ee),ye=A.includes(P)?P:"";if(!ye||K<0)return;const _=A.indexOf(ye);if(_<0)return;const T=K<_?_-1:_;B.moveQuickSettingItem(ee,T)}function re(ee,P){B.isQuickSettingSelected(ee)!==P&&B.toggleQuickSettingSelection(ee)}function oe(ee,P,A){if(a.value){if(P===pc&&a.value!==pc){const K=h.value.find(ye=>B.isQuickSettingSelected(ye.id));K&&(P=K.id)}re(a.value,A),z(a.value,P),a.value=""}}function se(ee,P){if(!a.value)return;re(a.value,P);const A=(P?m.value:g.value).filter(K=>K.id!==pc);if(A.length>0){const K=A[A.length-1];K&&z(a.value,K.id)}else if(P){const K=h.value.find(ye=>B.isQuickSettingSelected(ye.id));K&&z(a.value,K.id)}a.value=""}function le(ee,P){const A=P&&W.value[P]||"",K=me(ee);return K.length>0?`${A?`${A} · `:""}${W.value.currentShortcut}: ${K.map(_e).join(" / ")}`:A}function _e(ee){const P=Du.find(A=>A.key.toLowerCase()===ee.toLowerCase());return P?P.label:ee}function me(ee){const P=d.shortcutBindings[ee];return P?P.split(",").map(A=>A.trim()).filter(A=>A.length>0):[]}function ke(ee){const P=new Set(me(ee).map(A=>A.toLowerCase()));return Du.map(A=>A.key).filter(A=>!P.has(A.toLowerCase()))}function Ce(ee,P){B.setShortcutBinding(ee,P.join(","))}function Ie(ee,P){const A=me(ee).filter(K=>K.toLowerCase()!==P.toLowerCase());Ce(ee,A)}function Ue(ee){u.value===ee?u.value="":u.value=ee}function Ve(ee){if(!u.value)return;const P=ee.target;P&&P.closest(".ehunter-shortcut-add")||(u.value="")}function Ge(ee,P){const A=P.trim();if(!A)return;const K=me(ee);if(K.some(ye=>ye.toLowerCase()===A.toLowerCase())){u.value="";return}K.push(A),Ce(ee,K),u.value=""}return ut(()=>{N(),t.value&&t.value.addEventListener("dragover",f)}),Ut(()=>{t.value&&t.value.removeEventListener("dragover",f)}),(ee,P)=>(R(),V(we,null,[(R(),ge(ls,{to:".ehunter-app"},[ce(Qt,{name:"slow-opacity-fade",appear:""},{default:We(()=>[S(d).showMoreSettingsDialog?(R(),V("div",{key:0,class:"ehunter-more-settings-modal",onClick:P[14]||(P[14]=Ne((...A)=>S(B).closeMoreSettingsDialog&&S(B).closeMoreSettingsDialog(...A),["self"]))},[I("div",{class:"ehunter-panel",onClick:Ne(Ve,["stop"])},[I("header",Bb,[I("h3",null,Q(S(W).openMoreSettingsModal),1),I("button",{class:"ehunter-close-btn",type:"button","aria-label":S(W).cancel,onClick:P[0]||(P[0]=(...A)=>S(B).closeMoreSettingsDialog&&S(B).closeMoreSettingsDialog(...A))},"×",8,Vb)]),I("div",Hb,[I("nav",$b,[(R(!0),V(we,null,$e(S(Em),A=>(R(),V("button",{key:A.id,class:be(["ehunter-category",{"ehunter-active":S(d).activeSettingsCategory===A.id}]),onClick:K=>M(A.id)},Q(S(W)[A.i18nKey]),11,jb))),128))]),I("section",{ref_key:"contentRef",ref:t,class:"ehunter-content",onScroll:N},[I("article",{ref_key:"generalRef",ref:n,class:"ehunter-group","data-category":"general"},[I("h4",null,Q(S(W).settingsGeneral),1),(R(!0),V(we,null,$e(S(k),A=>{var K,ye,_,T,q,j,H;return R(),V("div",{class:"ehunter-row",key:A},[I("div",Ub,[I("span",Wb,Q(E(A)),1),F(A)?(R(),V("p",Kb,Q(F(A)),1)):ue("",!0)]),((K=S(Fe)[A])==null?void 0:K.control)==="drop"?(R(),ge(Er,{key:0,list:S(Ro)(A),"cur-val":S(wt)(A),"format-cur-val-by-list":!0,"use-abbr-name":!!((ye=S(Fe)[A])!=null&&ye.useAbbrName),onChange:O=>C(A,O)},null,8,["list","cur-val","use-abbr-name","onChange"])):((_=S(Fe)[A])==null?void 0:_.control)==="num"?(R(),ge(Mo,{key:1,"quick-options":S(qo)(A),"cur-val":S(wt)(A),suffix:S(Fo)(A),min:((T=S(Fe)[A])==null?void 0:T.min)||0,max:((q=S(Fe)[A])==null?void 0:q.max)||999,"is-float":!!((j=S(Fe)[A])!=null&&j.isFloat),onChange:O=>C(A,O)},null,8,["quick-options","cur-val","suffix","min","max","is-float","onChange"])):((H=S(Fe)[A])==null?void 0:H.control)==="switch"?(R(),ge(Po,{key:2,active:!!S(wt)(A),onChange:O=>C(A,O)},null,8,["active","onChange"])):ue("",!0)])}),128))],512),I("article",{ref_key:"scrollRef",ref:r,class:"ehunter-group","data-category":"scroll"},[I("h4",null,Q(S(W).settingsScrollMode),1),(R(!0),V(we,null,$e(S(y),A=>{var K,ye,_,T,q,j,H;return R(),V("div",{class:"ehunter-row",key:A},[I("div",Gb,[I("span",Qb,Q(E(A)),1),F(A)?(R(),V("p",Zb,Q(F(A)),1)):ue("",!0)]),((K=S(Fe)[A])==null?void 0:K.control)==="drop"?(R(),ge(Er,{key:0,list:S(Ro)(A),"cur-val":S(wt)(A),"format-cur-val-by-list":!0,"use-abbr-name":!!((ye=S(Fe)[A])!=null&&ye.useAbbrName),onChange:O=>C(A,O)},null,8,["list","cur-val","use-abbr-name","onChange"])):((_=S(Fe)[A])==null?void 0:_.control)==="num"?(R(),ge(Mo,{key:1,"quick-options":S(qo)(A),"cur-val":S(wt)(A),suffix:S(Fo)(A),min:((T=S(Fe)[A])==null?void 0:T.min)||0,max:((q=S(Fe)[A])==null?void 0:q.max)||999,"is-float":!!((j=S(Fe)[A])!=null&&j.isFloat),onChange:O=>C(A,O)},null,8,["quick-options","cur-val","suffix","min","max","is-float","onChange"])):((H=S(Fe)[A])==null?void 0:H.control)==="switch"?(R(),ge(Po,{key:2,active:!!S(wt)(A),onChange:O=>C(A,O)},null,8,["active","onChange"])):ue("",!0)])}),128))],512),I("article",{ref_key:"bookRef",ref:o,class:"ehunter-group","data-category":"book"},[I("h4",null,Q(S(W).settingsBookMode),1),(R(!0),V(we,null,$e(S(b),A=>{var K,ye,_,T,q,j,H;return R(),V("div",{class:"ehunter-row",key:A},[I("div",Yb,[I("span",Jb,Q(E(A)),1),F(A)?(R(),V("p",Xb,Q(F(A)),1)):ue("",!0)]),((K=S(Fe)[A])==null?void 0:K.control)==="drop"?(R(),ge(Er,{key:0,list:S(Ro)(A),"cur-val":S(wt)(A),"format-cur-val-by-list":!0,"use-abbr-name":!!((ye=S(Fe)[A])!=null&&ye.useAbbrName),onChange:O=>C(A,O)},null,8,["list","cur-val","use-abbr-name","onChange"])):((_=S(Fe)[A])==null?void 0:_.control)==="num"?(R(),ge(Mo,{key:1,"quick-options":S(qo)(A),"cur-val":S(wt)(A),suffix:S(Fo)(A),min:((T=S(Fe)[A])==null?void 0:T.min)||0,max:((q=S(Fe)[A])==null?void 0:q.max)||999,"is-float":!!((j=S(Fe)[A])!=null&&j.isFloat),onChange:O=>C(A,O)},null,8,["quick-options","cur-val","suffix","min","max","is-float","onChange"])):((H=S(Fe)[A])==null?void 0:H.control)==="switch"?(R(),ge(Po,{key:2,active:!!S(wt)(A),onChange:O=>C(A,O)},null,8,["active","onChange"])):ue("",!0)])}),128))],512),I("article",{ref_key:"quickRef",ref:s,class:"ehunter-group","data-category":"quick"},[I("h4",null,Q(S(W).settingsQuick),1),I("div",e0,[I("p",t0,Q(S(W).quickDragHint),1),I("div",{class:"ehunter-quick-lane",onDragover:P[4]||(P[4]=Ne(()=>{},["prevent"])),onDrop:P[5]||(P[5]=Ne(A=>se(A,!0),["stop"]))},[I("header",n0,Q(S(W).enabled),1),I("p",r0,Q(S(W).quickEnabledHint),1),(R(!0),V(we,null,$e(m.value,A=>(R(),V("div",{key:`enabled-${A.id}`,class:"ehunter-quick-item",draggable:"true","data-id":A.id,onContextmenu:P[1]||(P[1]=Ne(()=>{},["prevent"])),onSelectstart:P[2]||(P[2]=Ne(()=>{},["prevent"])),onDragstart:K=>L(K,A.id),onDragend:ae,onDragover:P[3]||(P[3]=Ne(()=>{},["prevent"])),onDrop:Ne(K=>oe(K,A.id,!0),["stop"])},[P[15]||(P[15]=I("span",{class:"ehunter-drag-handle","aria-hidden":"true"},null,-1)),I("span",s0,Q(x(A.id,A.i18nKey)),1),v(A.modeScope)?(R(),V("span",i0,Q(v(A.modeScope)),1)):ue("",!0)],40,o0))),128))],32),P[17]||(P[17]=I("div",{class:"ehunter-lane-divider"},null,-1)),I("div",{class:"ehunter-quick-lane ehunter-hidden",onDragover:P[9]||(P[9]=Ne(()=>{},["prevent"])),onDrop:P[10]||(P[10]=Ne(A=>se(A,!1),["stop"]))},[I("header",c0,Q(S(W).hidden),1),I("p",a0,Q(S(W).quickHiddenHint),1),(R(!0),V(we,null,$e(g.value,A=>(R(),V("div",{key:`hidden-${A.id}`,class:"ehunter-quick-item",draggable:"true","data-id":A.id,onContextmenu:P[6]||(P[6]=Ne(()=>{},["prevent"])),onSelectstart:P[7]||(P[7]=Ne(()=>{},["prevent"])),onDragstart:K=>L(K,A.id),onDragend:ae,onDragover:P[8]||(P[8]=Ne(()=>{},["prevent"])),onDrop:Ne(K=>oe(K,A.id,!1),["stop"])},[P[16]||(P[16]=I("span",{class:"ehunter-drag-handle","aria-hidden":"true"},null,-1)),I("span",u0,Q(x(A.id,A.i18nKey)),1),v(A.modeScope)?(R(),V("span",f0,Q(v(A.modeScope)),1)):ue("",!0)],40,l0))),128))],32)])],512),I("article",{ref_key:"shortcutsRef",ref:i,class:"ehunter-group","data-category":"shortcuts"},[I("h4",null,Q(S(W).settingsShortcuts),1),I("p",h0,Q(S(W).shortcutEditHint),1),(R(!0),V(we,null,$e(S(Au),A=>(R(),V("div",{class:"ehunter-row",key:A.id},[I("div",d0,[I("span",p0,Q(S(W)[A.labelI18nKey]),1),le(A.id,A.tipI18nKey)?(R(),V("p",g0,Q(le(A.id,A.tipI18nKey)),1)):ue("",!0)]),I("div",m0,[ce(Fl,{name:"ehunter-shortcut-chip-list",tag:"div",class:"ehunter-shortcut-chips"},{default:We(()=>[(R(!0),V(we,null,$e(me(A.id),K=>(R(),V("button",{key:`${A.id}-${K}`,class:"ehunter-shortcut-chip",onClick:ye=>Ie(A.id,K)},[I("span",b0,Q(_e(K)),1),P[18]||(P[18]=I("span",{class:"ehunter-chip-remove"},"×",-1))],8,v0))),128))]),_:2},1024),I("div",y0,[I("button",{class:"ehunter-shortcut-add-btn",onClick:K=>Ue(A.id)},[...P[19]||(P[19]=[I("span",{class:"ehunter-shortcut-add-icon"},"+",-1)])],8,w0),u.value===A.id?(R(),V("select",{key:0,class:"ehunter-shortcut-select",value:"",onChange:K=>Ge(A.id,K.target.value)},[I("option",S0,Q(S(W).shortcutAddPlaceholder),1),(R(!0),V(we,null,$e(ke(A.id),K=>(R(),V("option",{key:`${A.id}-candidate-${K}`,value:K},Q(_e(K)),9,k0))),128))],40,_0)):ue("",!0)])])]))),128)),I("div",x0,[I("span",C0,Q(S(W).shortcutResetLabel),1),I("button",{class:"ehunter-action",onClick:P[11]||(P[11]=(...A)=>S(B).resetShortcutBindings&&S(B).resetShortcutBindings(...A))},Q(S(W).shortcutResetAction),1)])],512),I("article",{ref_key:"otherRef",ref:c,class:"ehunter-group","data-category":"other"},[I("h4",null,Q(S(W).settingsOther),1),I("div",T0,[I("span",E0,Q(S(W).versionLabel),1),I("span",I0,Q(l.value),1)]),I("div",A0,[I("span",D0,Q(S(W).infoTip),1),I("button",{class:"ehunter-action",onClick:P[12]||(P[12]=(...A)=>S(B).openWelcomeInstructionDialog&&S(B).openWelcomeInstructionDialog(...A))},Q(S(W).infoTip),1)]),P[20]||(P[20]=I("div",{class:"ehunter-row"},[I("span",{class:"ehunter-label"},"Github"),I("a",{target:"_blank",href:"https://github.com/hanFengSan/eHunter",class:"ehunter-link"},"https://github.com/hanFengSan/eHunter")],-1)),I("div",M0,[I("span",P0,Q(S(W).resetTip),1),I("button",{class:"ehunter-danger",onClick:P[13]||(P[13]=(...A)=>S(B).showFactoryResetDialog&&S(B).showFactoryResetDialog(...A))},Q(S(W).resetTip),1)])],512)],544)])])])):ue("",!0)]),_:1})])),ce(Do,{active:S(d).isFactoryResetDialogVisible,title:S(W).resetAllConfirmTitle,"md-text":S(W).resetAllConfirmDesc,operations:w.value,onClose:S(B).hideFactoryResetDialog},null,8,["active","title","md-text","operations","onClose"])],64))}}),[["__scopeId","data-v-c1ee9c89"]]),q0=Te({__name:"DownloadConfirmDialog",setup(e){const t=[{name:W.value.cancel,btnType:"plain",isCloseModal:!0},{name:W.value.confirm,btnType:"positive",isCloseModal:!0,onClick:()=>Pe(null,null,function*(){const r=B.getAlbumService();if(!r)return;const o=new xm,s=`download-${Date.now()}-${Math.round(Math.random()*1e3)}`,i=d.pageCount;B.registerDownloadRunner(s,o),B.startDownloadTask(s,d.albumTitle,i);try{yield o.run({taskId:s,albumService:r,galleryTitle:d.albumTitle,introUrl:r.getIntroUrl(),pageCount:i,chunkSize:d.downloadChunkSize,autoRetryByOtherSource:d.autoRetryByOtherSource,eHunterVersion:"",onStatus:c=>{B.applyDownloadStatusEvent(s,d.albumTitle,c)}})}catch(c){const a=c instanceof Error&&c.message==="DOWNLOAD_ABORTED";B.applyDownloadStatusEvent(s,d.albumTitle,{phase:a?"partial":"failed",severity:a?"warning":"error",message:a?W.value.downloadAborted:W.value.downloadFailed,processedPages:0,totalPages:i,failedPages:i})}finally{B.clearDownloadRunner(s)}})}];function n(){B.closeDownloadConfirmDialog()}return(r,o)=>(R(),ge(Do,{active:S(d).showDownloadConfirmDialog,title:S(W).downloadConfirmTitle,"md-text":`${S(W).downloadConfirmMessage}

${S(W).downloadAuthorizeTip}`,operations:t,onClose:n},null,8,["active","title","md-text"]))}}),F0={class:"top-bar"},L0={class:"more-button-wrapper"},N0=["title-content"],O0=Re(Te({__name:"TopBar",emits:["closeEHunter"],setup(e,{emit:t}){kl(b=>({b43ab3a8:S(d).topBarHeight+"px",v7cbba036:S(d).topBarHeight+"px"}));const n=t,r=Y(!1),o=Y(null),s=Y(null),i=Y([]),c=Y(!1);let a=null;function u(b){return c.value?{visibility:"hidden"}:i.value[b]===!1?{display:"none"}:{}}const l=J(()=>Vm.value.map(b=>Fe[b]).filter(b=>!!b).filter(b=>!(!b.showInTopBar||b.modeScope==="scroll-only"&&d.readingMode!==0||b.modeScope==="book-only"&&d.readingMode!==1||b.requireThumbSupportInTopBar&&!d.isSupportThumbView)));function f(b,w){ah(b,w)}function p(){r.value=!r.value}function h(){n("closeEHunter")}function m(){!o.value||!s.value||d.showTopBar&&(c.value=!0,i.value=new Array(l.value.length).fill(!0),At(()=>{var E,F;const b=(E=o.value)==null?void 0:E.querySelectorAll(".item");if(!b||b.length===0){c.value=!1;return}const w=(F=s.value)==null?void 0:F.getBoundingClientRect();if(!w){c.value=!1;return}const v=w.left,x=[];for(let C=0;C<b.length;C++){const M=b[C].getBoundingClientRect().right;x[C]=M+10<=v}c.value=!1,i.value=x}))}let g=null;function k(b=!1){a&&clearTimeout(a),b?m():a=window.setTimeout(()=>{m(),a=null},100)}const y=()=>k();return ut(()=>{At(()=>{m()}),window.addEventListener("resize",y),o.value&&(g=new ResizeObserver(()=>{k()}),g.observe(o.value))}),Ut(()=>{window.removeEventListener("resize",y),g&&g.disconnect(),a&&clearTimeout(a)}),je(l,()=>{At(()=>{m()})},{deep:!0}),je(()=>d.showTopBar,b=>{b&&setTimeout(()=>{m()},350)}),je(()=>d.readingMode,()=>{setTimeout(()=>{m()},500)}),(b,w)=>(R(),V("nav",F0,[I("div",{class:"float-content",ref_key:"floatContentRef",ref:s},[I("div",L0,[ce(oi,{class:"button tips tips-left tips-down","icon-type":"more","title-content":S(W).more,onClick:p,size:"normal"},null,8,["title-content"]),ce(zb,{active:r.value,onClose:w[0]||(w[0]=v=>r.value=!1),onMoreSettings:w[1]||(w[1]=v=>S(B).openMoreSettingsDialog()),onQuickPreview:w[2]||(w[2]=v=>S(B).openThumbExpandDialog()),onDownload:w[3]||(w[3]=v=>S(B).openDownloadConfirmDialog())},null,8,["active"])]),ce(oi,{class:"button tips tips-left tips-down","icon-type":"menu","title-content":S(W).toggleTopBar,rotate:S(d).showTopBar,onClick:w[4]||(w[4]=v=>S(B).toggleShowTopBar()),size:"normal"},null,8,["title-content","rotate"]),ce(oi,{class:"button tips tips-left tips-down","icon-type":"close","title-content":S(W).closeEHunter,onClick:h,size:"normal"},null,8,["title-content"])],512),I("div",{class:be(["inner-content",{hide:!S(d).showTopBar}]),ref_key:"innerContentRef",ref:o},[(R(!0),V(we,null,$e(l.value,(v,x)=>(R(),V("div",{class:be(["item",{"less-margin":v.id==="lang"}]),key:v.id,style:Ke(u(x))},[I("span",{class:"label tips tips-down tips-right","title-content":v.tipI18nKey?S(W)[v.tipI18nKey]:""},Q(S(W)[v.labelI18nKey])+": ",9,N0),v.control==="drop"?(R(),ge(Er,{key:0,list:S(Ro)(v.id),"cur-val":S(wt)(v.id),"format-cur-val-by-list":!0,"use-abbr-name":!!v.useAbbrName,onChange:E=>f(v.id,E)},null,8,["list","cur-val","use-abbr-name","onChange"])):v.control==="num"?(R(),ge(Mo,{key:1,"quick-options":S(qo)(v.id),"cur-val":S(wt)(v.id),suffix:S(Fo)(v.id),min:v.min||0,max:v.max||999,"is-float":!!v.isFloat,onChange:E=>f(v.id,E)},null,8,["quick-options","cur-val","suffix","min","max","is-float","onChange"])):v.control==="switch"?(R(),ge(Po,{key:2,active:!!S(wt)(v.id),onChange:E=>f(v.id,E)},null,8,["active","onChange"])):ue("",!0)],6))),128))],2),ce(R0),ce(q0)]))}}),[["__scopeId","data-v-775e5895"]]);var z0=4,B0=.001,V0=1e-7,H0=10,Dr=11,Lo=1/(Dr-1),$0=typeof Float32Array=="function";function lh(e,t){return 1-3*t+3*e}function uh(e,t){return 3*t-6*e}function fh(e){return 3*e}function No(e,t,n){return((lh(t,n)*e+uh(t,n))*e+fh(t))*e}function hh(e,t,n){return 3*lh(t,n)*e*e+2*uh(t,n)*e+fh(t)}function j0(e,t,n,r,o){var s,i,c=0;do i=t+(n-t)/2,s=No(i,r,o)-e,s>0?n=i:t=i;while(Math.abs(s)>V0&&++c<H0);return i}function U0(e,t,n,r){for(var o=0;o<z0;++o){var s=hh(t,n,r);if(s===0)return t;var i=No(t,n,r)-e;t-=i/s}return t}function W0(e,t,n,r){for(var o=$0?new Float32Array(Dr):new Array(Dr),s=0;s<Dr;++s)o[s]=No(s*Lo,e,n);function i(c){for(var a=0,u=1,l=Dr-1;u!==l&&o[u]<=c;++u)a+=Lo;--u;var f=(c-o[u])/(o[u+1]-o[u]),p=a+f*Lo,h=hh(p,e,n);return h>=B0?U0(c,p,e,n):h===0?p:j0(c,a,a+Lo,e,n)}return function(a){return a===0?0:a===1?1:No(i(a),t,r)}}const dh=Re(Te({__name:"AwesomeScrollView",props:{color:{default:"rgba(0,0,0,0.4)"},isHidden:{type:Boolean,default:!1},offsetInterval:{default:150},onScrollStopped:{type:Function,default:e=>{}},listenScroll:{type:Boolean,default:!1},axis:{default:"y"}},emits:["topIn","topLeave"],setup(e,{expose:t,emit:n}){const r=n,o=e,s=Y(null);let i,c=!1,a=!0,u=0;function l(m){const g=m<=0;if(g!==a){if(a=g,g){r("topIn");return}r("topLeave")}}function f(){if(!s.value)return;const m=o.axis==="y"?s.value.scrollTop:s.value.scrollLeft;if(o.axis==="y"&&l(m),!(!c&&m===i)){if(!c&&m!==i){i=m,c=!0;return}if(c&&m!==i){i=m;return}c=!1,o.onScrollStopped(m)}}let p;ut(()=>{o.listenScroll&&s.value&&(i=o.axis==="y"?s.value.scrollTop:s.value.scrollLeft,o.axis==="y"&&(a=i<=0,a&&r("topIn")),p=window.setInterval(f,50))}),Ut(()=>{u&&(window.cancelAnimationFrame(u),u=0),p&&clearInterval(p)});function h(m,g,k="y"){const y=k||o.axis;if(!s.value)return;if(u&&(window.cancelAnimationFrame(u),u=0),g<=0){y==="y"?s.value.scrollTop=m:s.value.scrollLeft=m;return}const b=y==="y"?s.value.scrollTop:s.value.scrollLeft,w=m-b;if(Math.abs(w)<.5)return;let v=0;const x=W0(.61,.29,.3,.97);u=window.requestAnimationFrame(function E(F){if(!s.value){u=0;return}v||(v=F);const C=F-v,D=Math.min(C/g,1),M=b+w*x(D);if(y==="y"?s.value.scrollTop=M:s.value.scrollLeft=M,C<g){u=window.requestAnimationFrame(E);return}u=0})}return t({scrollTo:h}),(m,g)=>(R(),V("div",{ref_key:"asv",ref:s,class:be(["awesome-scroll-view","scrollbar",`axis-${e.axis}`,{isHidden:e.isHidden}])},[yn(m.$slots,"default",{},void 0)],2))}}),[["__scopeId","data-v-4f224e6d"]]);function ph(e){var p;let t=0,n=0,r=0,o=!1;const s=(p=e.moveTolerance)!=null?p:8,i=()=>{t&&(window.clearTimeout(t),t=0)},c=()=>{i(),o=!1},a=(h,m,g,k)=>{o=!0,e.onActivate({clientX:h,clientY:m,pointerType:g,sourceEvent:k})},u=h=>{const m=h.pointerType||"mouse";if(n=h.clientX,r=h.clientY,m==="mouse"){a(h.clientX,h.clientY,"mouse",h);return}i(),t=window.setTimeout(()=>{a(h.clientX,h.clientY,m,h)},e.longPressMs)},l=h=>{if(o||!t)return;(Math.abs(h.clientX-n)>s||Math.abs(h.clientY-r)>s)&&c()},f=()=>{o||c()};return{onPointerDown:u,onPointerMove:l,onPointerUp:f,onPointerCancel:f,cancel:c}}const K0=["aria-label"],G0=Re(Te({__name:"DockHandle",props:{label:{default:"EHUNTER"},ariaLabel:{default:"Dock handle"},longPressMs:{default:500}},emits:["drag-start"],setup(e,{emit:t}){const n=e,r=t,o=Y(!1),s=ph({longPressMs:n.longPressMs,onActivate:l=>{o.value=!0,r("drag-start",l)}});function i(l){o.value=!1,s.onPointerDown(l)}function c(l){s.onPointerMove(l)}function a(){o.value=!1,s.onPointerUp()}function u(){o.value=!1,s.onPointerCancel()}return(l,f)=>(R(),V("button",{type:"button",class:be(["dock-handle",{armed:o.value}]),"aria-label":e.ariaLabel,onPointerdown:i,onPointermove:c,onPointerup:a,onPointercancel:u},[yn(l.$slots,"default",{},()=>[Wt(Q(e.label),1)])],42,K0))}}),[["__scopeId","data-v-3c634b84"]]),Q0=["src"],Z0={key:1,class:"thumb-fallback"},Y0=100,J0=144,gc=Re(Te({__name:"ThumbView",props:{thumbInfo:{},fallbackText:{}},setup(e){const t=e,n=Y(null),r=Y(0),o=Y(0);let s=null;const i=J(()=>{var h;const p=((h=t.thumbInfo)==null?void 0:h.width)||0;return p>0?p:Y0}),c=J(()=>{var h;const p=((h=t.thumbInfo)==null?void 0:h.height)||0;return p>0?p:J0}),a=J(()=>{if(r.value<=0||o.value<=0)return 1;const p=r.value/i.value,h=o.value/c.value,m=Math.min(p,h);return Number.isFinite(m)&&m>0?m:1}),u=J(()=>({width:`${i.value}px`,height:`${c.value}px`,transform:`scale(${a.value})`})),l=J(()=>{var m,g;const p=((m=t.thumbInfo)==null?void 0:m.offset)||0;return{background:`transparent url(${((g=t.thumbInfo)==null?void 0:g.src)||""}) -${p}px 0 no-repeat`}});function f(){n.value&&(r.value=n.value.clientWidth,o.value=n.value.clientHeight)}return ut(()=>{f(),!(!n.value||typeof ResizeObserver=="undefined")&&(s=new ResizeObserver(()=>{f()}),s.observe(n.value))}),bn(()=>{s&&(s.disconnect(),s=null)}),(p,h)=>(R(),V("div",{ref_key:"root",ref:n,class:"thumb-view"},[e.thumbInfo?(R(),V("div",{key:0,class:"thumb-stage",style:Ke(u.value)},[e.thumbInfo.mode===S(Vn).SPIRIT?(R(),V("div",{key:0,class:"thumb-sprite",style:Ke(l.value)},null,4)):(R(),V("img",{key:1,class:"thumb-image",src:e.thumbInfo.src,alt:"",draggable:"false"},null,8,Q0))],4)):e.fallbackText?(R(),V("div",Z0,Q(e.fallbackText),1)):ue("",!0)],512))}}),[["__scopeId","data-v-88a65bb0"]]),X0={class:"header"},ey=["onClick"],ty={class:"thumb-stage"},ny={class:"index"},ry=["aria-label"],gh="thumb",oy=Re(Te({__name:"ThumbScrollView",emits:["dock-drag-start","open-thumb-expand"],setup(e,{emit:t}){kl(C=>({v8b69ed28:s.value,v1623f37e:i.value,v83a6f68e:y.value+"px",d3d034c0:k.value+"px",v1682f559:b.value+"px",e2fd20f6:w.value+"px",v6c05c142:S(Pg)+"px",v12a22b04:S(Zl)+"px",v729167b9:p.value+"px",v2722d226:a.value,v67748580:c.value,v415efbe9:S(Rg)+"px",v4d0461ec:S(qg)+"px"}));const n=J(()=>d.thumbDockSlot==="bottom"),r=J(()=>Number(yt.value)),o=J(()=>Math.max(0,d.curViewIndex-r.value)),s=J(()=>`${Ng(d.thumbItemWidth)}px`),i=J(()=>`${Og(d.thumbItemWidth).toFixed(3)}em`),c=J(()=>`${zg(d.thumbViewHeight)}px`),a=J(()=>`${Bg(d.thumbViewHeight).toFixed(3)}em`),u=t,l=Y(null),f=Y(null),p=J(()=>n.value?k.value*o.value:(y.value+Zl)*o.value),h=J(()=>d.thumbInfos.slice(yt.value,yt.value+d.volumeSize)),m=J(()=>Fg(d.thumbDockSlot,d.thumbItemWidth,d.thumbItemHeight)),g=J(()=>Lg(d.thumbDockSlot)),k=J(()=>Math.round(g.value*m.value)),y=J(()=>Math.round(Gl*m.value)),b=J(()=>{const C=Math.min(k.value,y.value);return Math.max(14,Math.min(40,Math.round(C*.4)))}),w=J(()=>{const C=Math.min(k.value,y.value),D=Math.max(20,Math.min(60,Math.round(C*.6)));return Math.max(D,b.value+4)});function v(C){const D=Number(C);B.setCurViewIndex(r.value+D,gh)}function x(C){u("dock-drag-start",C)}function E(){u("open-thumb-expand")}function F(C){if(!l.value||!f.value||C<0)return;const D=d.readingMode===1?260:1e3;if(n.value){const ae=[...f.value].sort((z,re)=>z.offsetLeft-re.offsetLeft)[C];if(ae){l.value.scrollTo(ae.offsetLeft,D,"x");return}l.value.scrollTo(0,D,"x");return}const N=[...f.value].sort((L,ae)=>L.offsetTop-ae.offsetTop)[C];if(N){l.value.scrollTo(N.offsetTop,D,"y");return}l.value.scrollTo(0,D,"y")}return je(()=>d.curViewIndex,C=>{if(d.curViewIndexUpdater!==gh){if(C===yt.value){F(0);return}F(C-yt.value)}}),(C,D)=>(R(),V("aside",{class:be(["thumb-content",{"dock-bottom":S(d).thumbDockSlot==="bottom"}])},[ce(dh,{ref_key:"scrollView",ref:l,class:be(["thumb-scroll-view",{"dock-bottom":S(d).thumbDockSlot==="bottom"}]),axis:S(d).thumbDockSlot==="bottom"?"x":"y"},{default:We(()=>[I("div",X0,[ce(G0,{class:"app-name",label:"EHUNTER","aria-label":"EHUNTER Dock Handle",onDragStart:x})]),D[1]||(D[1]=I("div",{class:"indicator"},null,-1)),(R(!0),V(we,null,$e(h.value,(M,N)=>(R(),V("div",{class:"thumb-container",onClick:L=>v(N),key:M.id,ref_for:!0,ref_key:"thumbContainers",ref:f},[I("div",ty,[ce(gc,{class:"thumb","thumb-info":M},null,8,["thumb-info"]),D[0]||(D[0]=I("div",{class:"hover-mask"},null,-1)),I("div",ny,Q(r.value+Number(N)+1),1)])],8,ey))),128))]),_:1},8,["class","axis"]),I("button",{type:"button",class:be(["thumb-expand-trigger",{"dock-bottom":S(d).thumbDockSlot==="bottom"}]),"aria-label":S(W).expandThumbs,onClick:E},[ce(S(Bu),{class:"expand-icon"})],10,ry)],2))}}),[["__scopeId","data-v-45b2aba1"]]),sy={key:0,class:"ehunter-loading"},iy={key:1,class:"ehunter-error"},cy={class:"error-message"},ay={key:0,class:"init-steps"},ly={class:"step-label"},uy={key:0,class:"step-detail"},fy={class:"error-details",open:""},hy={class:"error-info"},dy={key:0,class:"error-stack"},py=Re(Te({__name:"LoadingView",props:{isLoading:{type:Boolean,default:!1},error:{default:null}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,o=()=>{r("close")};function s(){var v,x,E;const k=navigator,y=(v=k.userAgentData)==null?void 0:v.model;if(typeof y=="string"&&y.trim())return y;const b=((x=k.userAgentData)==null?void 0:x.platform)||navigator.platform||"Unknown Device",w=(E=k.userAgentData)!=null&&E.mobile?" Mobile":"";return`${b}${w}`.trim()}function i(){var b;const k=navigator;if((b=k.userAgentData)!=null&&b.platform)return k.userAgentData.platform;const y=navigator.userAgent;return/Windows NT/i.test(y)?"Windows":/Mac OS X|Macintosh/i.test(y)?"macOS":/Android/i.test(y)?"Android":/iPhone|iPad|iPod/i.test(y)?"iOS":/Linux/i.test(y)?"Linux":"Unknown OS"}const c=wr.version,a=s(),u=i(),l=Y(!1),f=J(()=>l.value?"Copied":"Copy"),p=J(()=>{const k=n.error;return!(k!=null&&k.steps)||!Array.isArray(k.steps)?[]:k.steps.slice().sort((y,b)=>{var x,E;const w=(x=y.order)!=null?x:Number.MAX_SAFE_INTEGER,v=(E=b.order)!=null?E:Number.MAX_SAFE_INTEGER;return w-v})});function h(k){return k==="success"?"Done":k==="failed"?"Failed":"Pending"}const m=J(()=>{const k=n.error;if(!k)return"";const y=["Initialization Steps:"];return p.value.length?p.value.forEach(b=>{const w=b.detail?` (${b.detail})`:"";y.push(`- [${h(b.status)}] ${b.label}${w}`)}):y.push("- (No step data)"),y.push(""),y.push("Technical Details:"),y.push(`Error: ${k.message}`,`Platform: ${k.platform}`,`eHunter Version: ${c}`,`Device: ${a}`,`OS: ${u}`,`URL: ${k.url}`,`Timestamp: ${k.timestamp}`),k.stack&&(y.push(""),y.push(`Stack:
${k.stack}`)),y.join(`
`)}),g=()=>Pe(null,null,function*(){if(m.value)try{yield navigator.clipboard.writeText(m.value),l.value=!0,window.setTimeout(()=>{l.value=!1},1500)}catch(k){l.value=!1}});return(k,y)=>e.isLoading?(R(),V("div",sy,[...y[0]||(y[0]=[vp('<div class="ehunter-loading-view" data-v-eb5557a7><div class="loading-animation" data-v-eb5557a7><div class="book" data-v-eb5557a7><div class="book__page" data-v-eb5557a7></div><div class="book__page" data-v-eb5557a7></div><div class="book__page" data-v-eb5557a7></div></div><h4 data-v-eb5557a7>Reading</h4></div></div>',1)])])):e.error?(R(),V("div",iy,[I("div",{class:"error-header"},[y[1]||(y[1]=I("h3",null,"Initialization Error",-1)),I("button",{onClick:o,class:"close-button","aria-label":"Close"},"x")]),y[11]||(y[11]=I("p",{class:"feedback-link"},[I("strong",null,"Feedback / Bug Report:"),I("a",{href:"https://github.com/hanFengSan/eHunter/issues",target:"_blank",rel:"noopener noreferrer"},"Open GitHub Issues")],-1)),I("p",cy,Q(e.error.message),1),p.value.length?(R(),V("div",ay,[y[2]||(y[2]=I("h4",null,"Initialization Steps",-1)),I("ul",null,[(R(!0),V(we,null,$e(p.value,b=>(R(),V("li",{key:b.id},[I("span",{class:be(["step-status",`step-status--${b.status}`])},Q(h(b.status)),3),I("span",ly,Q(b.label),1),b.detail?(R(),V("span",uy,"- "+Q(b.detail),1)):ue("",!0)]))),128))])])):ue("",!0),I("details",fy,[I("summary",null,[y[3]||(y[3]=I("span",null,"Technical Details (for bug reports)",-1)),I("button",{class:"copy-button",onClick:Ne(g,["stop"])},Q(f.value),1)]),I("div",hy,[I("p",null,[y[4]||(y[4]=I("strong",null,"Error:",-1)),Wt(" "+Q(e.error.message),1)]),I("p",null,[y[5]||(y[5]=I("strong",null,"Platform:",-1)),Wt(" "+Q(e.error.platform),1)]),I("p",null,[y[6]||(y[6]=I("strong",null,"eHunter Version:",-1)),Wt(" "+Q(S(c)),1)]),I("p",null,[y[7]||(y[7]=I("strong",null,"Device:",-1)),Wt(" "+Q(S(a)),1)]),I("p",null,[y[8]||(y[8]=I("strong",null,"OS:",-1)),Wt(" "+Q(S(u)),1)]),I("p",null,[y[9]||(y[9]=I("strong",null,"URL:",-1)),Wt(" "+Q(e.error.url),1)]),I("p",null,[y[10]||(y[10]=I("strong",null,"Timestamp:",-1)),Wt(" "+Q(e.error.timestamp),1)]),e.error.stack?(R(),V("pre",dy,Q(e.error.stack),1)):ue("",!0)])])])):yn(k.$slots,"default",{key:2},void 0)}}),[["__scopeId","data-v-eb5557a7"]]);function mh(e,t,n){return Math.max(t,Math.min(n,e))}function gy(e){const{pageViewRef:t,menuOwnerId:n}=e,r=Y(!1),o=Y(12),s=Y(12),i=J(()=>({left:`${o.value}px`,top:`${s.value}px`}));function c(){var h;return((h=t.value)==null?void 0:h.getBoundingClientRect())||null}function a(h,m){const g=c();if(!g){o.value=12,s.value=12;return}o.value=mh(h-g.left,8,Math.max(8,g.width-8)),s.value=mh(m-g.top,8,Math.max(8,g.height-8))}function u(h,m){document.dispatchEvent(new CustomEvent("ehunter:page-menu-open",{detail:{owner:n}})),a(h,m),r.value=!0}function l(){r.value=!1}function f(h){var m;((m=h.detail)==null?void 0:m.owner)!==n&&r.value&&l()}function p(h){if(!r.value)return;const m=t.value,g=h.target;if(!m||!g){l();return}const k=m.querySelector(".menu-anchor");k&&k.contains(g)||l()}return ut(()=>{document.addEventListener("ehunter:page-menu-open",f),document.addEventListener("click",p,!0)}),bn(()=>{document.removeEventListener("ehunter:page-menu-open",f),document.removeEventListener("click",p,!0)}),{menuOpen:r,menuAnchorStyle:i,openMenuAt:u,closeMenu:l}}class my{executeInPage(t){const n=document.createElement("script");n.textContent=t,(document.head||document.documentElement).appendChild(n),n.remove()}serializeForPage(t){if(t===null)return"null";if(t===void 0)return"undefined";if(typeof t=="string")return JSON.stringify(t);if(typeof t=="number"||typeof t=="boolean")return String(t);if(typeof t=="function")return t.toString();try{return JSON.stringify(t,null,2)}catch(n){return String(t)}}logText(t,n){const r=JSON.stringify(`[${t}]`),o=JSON.stringify(String(n)),s=`console.log('%c' + ${r} + ' %c' + ${o}, 'color:red', 'color:black');`;this.executeInPage(s)}logObj(t,n,r=!1){this.logText(t,":");const o=this.serializeForPage(n),s=r?`console.log(JSON.parse(${JSON.stringify(o)}));`:`console.log(${o});`;this.executeInPage(s),this.logText(t,"----------")}}let Oo=new my;function tn(e,t,n){return Math.max(t,Math.min(n,e))}function vy(e){const{pageViewRef:t,imgRef:n,magnifierCanvasRef:r,imgSrc:o,isDesktopPointer:s,magnifierZoom:i,magnifierAreaSize:c,pendingRevealDelayMs:a,lensGap:u,onSyncEnabled:l}=e,f=Y(!1),p=Y(0),h=Y(0),m=Y(!1),g=Y("right"),k=Y(0),y=Y(0),b=Y("pending"),w=Y(!1),v=Y(!1),x=Y(null),E=Y(0),F=J(()=>c.value),C=J(()=>c.value*i.value),D=J(()=>s.value&&f.value&&m.value&&b.value==="ready"),M=J(()=>s.value&&f.value&&m.value),N=J(()=>M.value&&b.value==="pending"&&v.value);function L(){var P;return((P=t.value)==null?void 0:P.getBoundingClientRect())||null}const ae=J(()=>{const P=L();if(!P)return{};const A=F.value/2,K=tn(p.value-P.left-A,0,P.width-F.value),ye=tn(h.value-P.top-A,0,P.height-F.value);return{width:`${F.value}px`,height:`${F.value}px`,transform:`translate(${K}px, ${ye}px)`}}),z=J(()=>L()?{width:`${C.value}px`,height:`${C.value}px`,transform:`translate(${k.value}px, ${y.value}px)`}:{});function re(){x.value!==null&&(window.clearTimeout(x.value),x.value=null)}function oe(P){return P.complete&&P.naturalWidth>0?Promise.resolve():new Promise((A,K)=>{const ye=()=>{T(),A()},_=()=>{T(),K(new Error("IMG_LOAD_FAILED"))},T=()=>{P.removeEventListener("load",ye),P.removeEventListener("error",_)};P.addEventListener("load",ye,{once:!0}),P.addEventListener("error",_,{once:!0})})}function se(P){return Pe(this,null,function*(){const A=++E.value;w.value=!1,b.value="pending",yield At();const K=n.value;if(!(!K||o.value!==P))try{if(yield oe(K),typeof K.decode=="function")try{yield K.decode()}catch(ye){Oo.logText("MAGNIFIER",`image decode failed: ${String(ye)}`)}if(A!==E.value||o.value!==P)return;w.value=!0,b.value="ready",M.value&&le()}catch(ye){if(Oo.logText("MAGNIFIER",`warm magnifier source failed: ${String(ye)}`),A!==E.value)return;w.value=!1,b.value="pending"}})}function le(){const P=r.value,A=n.value,K=L();if(!P||!A||!K||!w.value)return;const ye=i.value,_=c.value,T=_*ye,q=window.devicePixelRatio||1,j=Math.max(1,Math.round(T*q)),H=Math.max(1,Math.round(T*q));(P.width!==j||P.height!==H)&&(P.width=j,P.height=H);const O=P.getContext("2d");if(!O)return;O.setTransform(q,0,0,q,0,0),O.clearRect(0,0,T,T),O.imageSmoothingEnabled=!0;const te=tn(p.value-K.left,0,K.width),Z=tn(h.value-K.top,0,K.height),G=Math.min(_,K.width),U=Math.min(_,K.height),ne=tn(te-G/2,0,Math.max(0,K.width-G)),$=tn(Z-U/2,0,Math.max(0,K.height-U)),X=A.naturalWidth/Math.max(1,K.width),fe=A.naturalHeight/Math.max(1,K.height),ve=ne*X,qe=$*fe,Ae=G*X,ot=U*fe;O.drawImage(A,ve,qe,Ae,ot,0,0,T,T)}function _e(){const P=L();if(!P)return;const A=8,K=tn(p.value-P.left,0,P.width),ye=tn(h.value-P.top,0,P.height),_=F.value/2,T=K+_+u,q=K-_-u-C.value,j=P.left+T+C.value>window.innerWidth-A,H=P.left+q<A;j&&!H?g.value="left":g.value="right",k.value=g.value==="right"?T:q;const O=ye-C.value/2,te=A-P.top,Z=window.innerHeight-A-P.top-C.value;y.value=tn(O,Math.min(te,Z),Math.max(te,Z)),b.value==="ready"&&le()}function me(){m.value=!1}function ke(P){!s.value||!f.value||(p.value=P.clientX,h.value=P.clientY,m.value=!0,_e())}function Ce(){me()}function Ie(P){f.value=P,l==null||l(P),P&&o.value&&b.value!=="ready"&&se(o.value),P||me()}function Ue(P){var A;Ie(!!((A=P.detail)!=null&&A.enabled))}function Ve(P){document.dispatchEvent(new CustomEvent("ehunter:magnifier-toggle",{detail:{enabled:P}}))}function Ge(){const P=!f.value;Ve(P),Ie(P)}function ee(P){Ie(P)}return je([M,b],([P,A])=>{re(),v.value=!1,P&&A==="pending"&&(x.value=window.setTimeout(()=>{M.value&&b.value==="pending"&&(v.value=!0)},a))}),je([i,c,M],()=>{M.value&&b.value==="ready"&&le()}),je(o,(P,A)=>{P!==A&&(w.value=!1,b.value="pending",P&&se(P))}),ut(()=>{document.addEventListener("ehunter:magnifier-toggle",Ue)}),bn(()=>{re(),document.removeEventListener("ehunter:magnifier-toggle",Ue)}),{magnifierEnabled:f,lensWarmState:b,showFocusIndicator:D,showMagnifierLens:M,showMagnifierPending:N,focusIndicatorStyle:ae,magnifierLensStyle:z,warmMagnifierSource:se,updateLensPosition:_e,hideMagnifierPointerArtifacts:me,onMouseMove:ke,onMouseLeave:Ce,toggleMagnifier:Ge,setEnabledFromSession:ee}}const by={timeout(e){return new Promise(t=>setTimeout(t,e))}};var vh=(e=>(e[e.Waiting=0]="Waiting",e[e.Loading=1]="Loading",e[e.Error=2]="Error",e[e.Loaded=3]="Loaded",e))(vh||{});function yy(e){const{index:t,albumService:n,imgPageInfo:r,warmMagnifierSource:o}=e,s=Y(0),i=Y(""),c=Y(0),a=Y(Je.Default),u=Y([]),l=Y(!1),f=Y(!1),p=J(()=>{const v=s.value?`[${W.value.reload}-${s.value}] `:"";if(i.value)return v+i.value;switch(c.value){case 2:return v+W.value.loadingImgFailed;case 3:return v+W.value.imgLoaded;case 0:return v+W.value.waiting;default:return v+W.value.loadingImg}});function h(){return{autoRetryByOtherSource:d.autoRetryByOtherSource,supportChangeSource:n.isSupportImgChangeSource()}}function m(v){return hm(v,h())}function g(v){return Pe(this,null,function*(){a.value=v,f.value=!1;const x=yield n.getImgSrc(t,v);if(x instanceof Error){v===Je.Default&&(u.value=m(v),yield k());return}r.value.src!==x.src&&B.setImgPageInfoSrc(t,x.src),x.preciseHeightOfWidth&&r.value.preciseHeightOfWidth!==x.preciseHeightOfWidth&&B.setImgPageInfoPreciseHeightOfWidth(t,x.preciseHeightOfWidth)})}function k(){return Pe(this,null,function*(){if(!l.value){l.value=!0;try{for(;u.value.length>0;){const v=u.value.shift();if(v===void 0)break;if(yield y(v,!0))return}f.value=!0}finally{l.value=!1}}})}function y(v,x=!1){return Pe(this,null,function*(){x||(u.value=[]),f.value=!1,s.value++,i.value="",B.setImgPageInfoSrc(t,""),c.value=1,a.value=v;const E=yield n.getImgSrc(t,v);if(E instanceof Error){switch(E.message){case"ERROR_NO_ORIGIN":i.value=W.value.noOriginalImg;break;default:i.value=W.value.loadingFailed}return x||(u.value=m(v),yield k()),!1}return yield At(),yield by.timeout(300),r.value.src!==E.src&&B.setImgPageInfoSrc(t,E.src),E.preciseHeightOfWidth&&r.value.preciseHeightOfWidth!==E.preciseHeightOfWidth&&B.setImgPageInfoPreciseHeightOfWidth(t,E.preciseHeightOfWidth),!0})}function b(v){v.preventDefault(),r.value.src&&(c.value=2,Oo.logText("LOADING","loading image failed"),!f.value&&u.value.length===0&&(u.value=m(a.value)),u.value.length>0&&(Oo.logText("LOADING","reloading image"),k()))}function w(){c.value=3,u.value=[],f.value=!1,r.value.src&&o(r.value.src)}return{curLoadStatus:c,loadingInfo:p,loadImgSrc:g,getNewImgSrc:y,failLoad:b,loaded:w}}function wy(e){const{touchLongPressMs:t,touchMoveTolerance:n,shouldHandle:r,onLongPress:o}=e,s=Y(null),i=Y(0),c=Y(0),a=Y(!1);function u(){s.value!==null&&(window.clearTimeout(s.value),s.value=null)}function l(m){if(!r())return;if(!m.touches||m.touches.length!==1){u();return}const g=m.touches[0];i.value=g.clientX,c.value=g.clientY,a.value=!1,u(),s.value=window.setTimeout(()=>{a.value||o(g.clientX,g.clientY),u()},t)}function f(m){if(s.value===null||!m.touches||m.touches.length!==1)return;const g=m.touches[0],k=Math.abs(g.clientX-i.value),y=Math.abs(g.clientY-c.value);(k>n||y>n)&&(a.value=!0,u())}function p(){u()}function h(){u()}return bn(()=>{u()}),{onTouchStart:l,onTouchMove:f,onTouchEnd:p,onTouchCancel:h,clearTouchLongPressTimer:u}}const _y={class:"layer preview-layer"},Sy={class:"layer loading-layer"},ky={class:"index"},xy={key:0,class:"loading-info-panel"},Cy={class:"text"},Ty={class:"operation"},Ey={class:"layer img-layer"},Iy=["src"],Ay={class:"page-menu-options no-select"},Dy=["title"],My={key:0},Py=["disabled"],Ry=["disabled"],qy=["disabled"],Fy=["disabled"],Ly={key:0,class:"magnifier-pending"},mc="__ehunterMagnifierSessionState__",Ny=500,Oy=10,zy=120,By=6,vc=Re(Te({__name:"PageView",props:{index:{},active:{type:Boolean},activeLoad:{type:Boolean}},emits:["clickBackground","toggleOddEven"],setup(e,{emit:t}){const n=globalThis;n[mc]||(n[mc]={enabled:!1});const r=n[mc],o=e,s=t,i=Rn(Rs),c=Y(null),a=Y(null),u=Y(null),l=`pageview-menu-${o.index}`,f=[50,80,120,150],p=J(()=>B.getImgPageInfo(o.index)),h=J(()=>d.readingMode===1),m=J(()=>typeof window=="undefined"||!window.matchMedia?!0:window.matchMedia("(hover: hover) and (pointer: fine)").matches),g=J(()=>m.value),k=J(()=>h.value),y=J(()=>Math.max(2,Math.min(5,Math.round(d.magnifierZoom||3)))),b=J(()=>Math.max(20,Math.min(300,Math.round(d.magnifierAreaSize||80)))),w=J(()=>i.isSupportImgChangeSource()),v=J(()=>W.value.notSupportedInCurrentPlatform||W.value.disabled),{menuOpen:x,menuAnchorStyle:E,openMenuAt:F,closeMenu:C}=gy({pageViewRef:c,menuOwnerId:l}),{magnifierEnabled:D,lensWarmState:M,showFocusIndicator:N,showMagnifierLens:L,showMagnifierPending:ae,focusIndicatorStyle:z,magnifierLensStyle:re,warmMagnifierSource:oe,updateLensPosition:se,hideMagnifierPointerArtifacts:le,onMouseMove:_e,onMouseLeave:me,toggleMagnifier:ke,setEnabledFromSession:Ce}=vy({pageViewRef:c,imgRef:a,magnifierCanvasRef:u,imgSrc:J(()=>{var ne;return((ne=p.value)==null?void 0:ne.src)||""}),isDesktopPointer:m,magnifierZoom:y,magnifierAreaSize:b,pendingRevealDelayMs:zy,lensGap:By,onSyncEnabled:ne=>{r.enabled=ne}}),Ie=J(()=>m.value&&D.value),{curLoadStatus:Ue,loadingInfo:Ve,loadImgSrc:Ge,getNewImgSrc:ee,failLoad:P,loaded:A}=yy({index:o.index,albumService:i,imgPageInfo:p,warmMagnifierSource:oe}),{onTouchStart:K,onTouchMove:ye,onTouchEnd:_,onTouchCancel:T}=wy({touchLongPressMs:Ny,touchMoveTolerance:Oy,shouldHandle:()=>!h.value&&!m.value,onLongPress:(ne,$)=>F(ne,$)});ut(()=>{o.active&&!p.value.src?Ge(Je.Default):p.value.src&&oe(p.value.src),Ce(r.enabled)}),je(()=>o.active,ne=>{if(ne&&!p.value.src){Ge(Je.Default);return}ne&&p.value.src&&oe(p.value.src)}),je(()=>o.index,()=>{Ce(r.enabled),le()});function q(ne,$,X){return Math.max($,Math.min(X,ne))}function j(ne){return ne>=d.viewportHeight*.3&&ne<=d.viewportHeight*.7}function H(){m.value&&(ke(),C())}function O(){s("toggleOddEven"),C()}function te(ne){const $=q(y.value+ne,2,5);B.setMagnifierZoom($),se(),C()}function Z(ne){const $=b.value,X=f.slice().sort((fe,ve)=>fe-ve);if(ne>0){const fe=X.find(ve=>ve>$);fe!==void 0&&B.setMagnifierAreaSize(fe)}else{const fe=X.slice().reverse().find(ve=>ve<$);fe!==void 0&&B.setMagnifierAreaSize(fe)}se(),C()}function G(){w.value&&(ee(Je.Origin),C())}function U(ne){if(x.value){C();return}if(h.value){if(j(ne.clientY)){ne.stopPropagation(),F(ne.clientX,ne.clientY);return}s("clickBackground");return}if(m.value){ne.stopPropagation(),F(ne.clientX,ne.clientY);return}s("clickBackground")}return(ne,$)=>(R(),V("section",{ref_key:"pageViewRef",ref:c,class:"page-view",onClick:U,onMousemove:$[10]||($[10]=(...X)=>S(_e)&&S(_e)(...X)),onMouseleave:$[11]||($[11]=(...X)=>S(me)&&S(me)(...X)),onTouchstart:$[12]||($[12]=(...X)=>S(K)&&S(K)(...X)),onTouchmove:$[13]||($[13]=(...X)=>S(ye)&&S(ye)(...X)),onTouchend:$[14]||($[14]=(...X)=>S(_)&&S(_)(...X)),onTouchcancel:$[15]||($[15]=(...X)=>S(T)&&S(T)(...X))},[I("div",_y,[ce(gc,{class:"preview-thumb","thumb-info":S(d).thumbInfos[e.index]},null,8,["thumb-info"])]),I("div",Sy,[I("h6",ky,Q(e.index+1),1),e.active?(R(),V("article",xy,[ce(Qt,{name:"slide-fade"},{default:We(()=>[S(Ue)!=S(vh).Loaded?(R(),V("p",{key:0,class:"loading-info",onClick:Ne(()=>{},["stop"])},[I("span",Cy,Q(S(Ve)),1),I("span",Ty,[S(i).isSupportOriginImg()?(R(),ge(Ir,{key:0,class:"tips tips-down no-margin","title-content":S(W).originImgTip,label:S(W).originImg,mode:"inline",type:"positive",onClick:$[0]||($[0]=X=>S(ee)(S(Je).Origin))},null,8,["title-content","label"])):ue("",!0),ce(Ir,{class:"tips tips-down","title-content":S(W).refreshTip,label:S(W).refresh,mode:"inline",type:"positive",onClick:$[1]||($[1]=X=>S(ee)(S(Je).Default))},null,8,["title-content","label"]),S(i).isSupportImgChangeSource()?(R(),ge(Ir,{key:1,class:"tips tips-down","title-content":S(W).refreshByOtherSourceTip,label:S(W).refreshByOtherSource,mode:"inline",type:"positive",onClick:$[2]||($[2]=X=>S(ee)(S(Je).ChangeSource))},null,8,["title-content","label"])):ue("",!0)])])):ue("",!0)]),_:1})])):ue("",!0)]),I("div",Ey,[e.active&&p.value&&p.value.src?(R(),V("img",{key:0,ref_key:"imgRef",ref:a,class:"album-item",src:p.value.src,onLoad:$[3]||($[3]=X=>S(A)()),onError:$[4]||($[4]=X=>S(P)(X))},null,40,Iy)):ue("",!0)]),S(x)?(R(),V("div",{key:0,class:"layer menu-layer",onClick:$[9]||($[9]=Ne(()=>{},["stop"]))},[I("div",{class:"menu-anchor",style:Ke(S(E))},[ce(Co,{active:S(x),"custom-style":{"margin-left":"0px","margin-top":"0px"},onClose:S(C)},{default:We(()=>[I("div",Ay,[g.value?(R(),V("button",{key:0,type:"button",class:"item",onClick:H},[I("span",null,Q(S(D)?S(W).closeMagnifier:S(W).openMagnifier),1)])):ue("",!0),I("button",{type:"button",class:be(["item",{disabled:!w.value}]),title:v.value,onClick:G},[I("span",null,Q(S(W).originImg),1),w.value?ue("",!0):(R(),V("small",My,Q(v.value),1))],10,Dy),k.value?(R(),V("button",{key:1,type:"button",class:"item",onClick:O},[I("span",null,Q(S(W).oddEven),1)])):ue("",!0),Ie.value?(R(),V("button",{key:2,type:"button",class:"item",disabled:y.value>=5,onClick:$[5]||($[5]=X=>te(1))},[I("span",null,Q(S(W).zoomInMagnifier),1)],8,Py)):ue("",!0),Ie.value?(R(),V("button",{key:3,type:"button",class:"item",disabled:y.value<=2,onClick:$[6]||($[6]=X=>te(-1))},[I("span",null,Q(S(W).zoomOutMagnifier),1)],8,Ry)):ue("",!0),Ie.value?(R(),V("button",{key:4,type:"button",class:"item",disabled:b.value>=150,onClick:$[7]||($[7]=X=>Z(1))},[I("span",null,Q(S(W).increaseMagnifierArea),1)],8,qy)):ue("",!0),Ie.value?(R(),V("button",{key:5,type:"button",class:"item",disabled:b.value<=50,onClick:$[8]||($[8]=X=>Z(-1))},[I("span",null,Q(S(W).decreaseMagnifierArea),1)],8,Fy)):ue("",!0)])]),_:1},8,["active","onClose"])],4)])):ue("",!0),S(N)?(R(),V("div",{key:1,class:"focus-indicator",style:Ke(S(z))},null,4)):ue("",!0),S(L)?(R(),V("div",{key:2,class:"magnifier-lens",style:Ke(S(re))},[gn(I("canvas",{ref_key:"magnifierCanvasRef",ref:u,class:"magnifier-canvas"},null,512),[[Nn,S(M)==="ready"]]),S(ae)?(R(),V("div",Ly,[$[16]||($[16]=I("span",{class:"spinner"},null,-1)),I("span",null,Q(S(W).loadingImg),1)])):ue("",!0)],4)):ue("",!0)],544))}}),[["__scopeId","data-v-34f09df5"]]),Vy={class:"album-scroll-view"},Hy={class:"preload"},$y={class:"preload-item"},bh="album_scroll_view",bc=800,jy=Re(Te({__name:"AlbumScrollView",setup(e){const t=Y(0),n=Y(null),r=Y(null);function o(a){t.value=a}je(t,()=>{if(!r.value)return;let a=r.value.sort((l,f)=>l.offsetTop-f.offsetTop),u;if(a){if(t.value!==0){const l=a.concat().reverse();let f=a.indexOf(l.find(h=>h.offsetTop<=t.value+window.innerHeight));u=(f===-1?r.value.length-1:f)+yt.value}else u=yt.value;u!==d.curViewIndex&&B.setCurViewIndex(u,bh)}});function s(){return Pe(this,null,function*(){if(yield At(),!r.value)return;if(Ou.value==0){n.value.scrollTo(0,bc);return}const a=r.value[Ou.value];if(!a){n.value.scrollTo(0,bc);return}n.value.scrollTo(a.offsetTop-100,bc)})}ut(()=>{setTimeout(()=>{s()},200)});const i=J(()=>{let a=d.curViewIndex-d.loadNum;a<0&&(a=0);let u=d.curViewIndex+d.loadNum;u>d.pageCount-1&&(u=d.pageCount-1);let l=[];for(let f=a;f<=u;f++)l.push(f);return l});je(()=>d.curViewIndex,(a,u)=>{d.curViewIndexUpdater!==bh&&s()});function c(a){B.setCurViewIndex(a*d.volumeSize,"scroll_view_vol")}return(a,u)=>(R(),V("div",Vy,[I("div",Hy,[(R(!0),V(we,null,$e(S(jm),l=>(R(),V("div",$y,[ce(vc,{active:!0,index:l},null,8,["index"])]))),256))]),S(d).imgPageInfos&&S(d).imgPageInfos.length>0?(R(),ge(dh,{key:0,ref_key:"scrollView",ref:n,class:"scroll-view","on-scroll-stopped":o,onTopIn:u[0]||(u[0]=l=>S(B).setTopBar(!0)),"listen-scroll":!0,onTopLeave:u[1]||(u[1]=l=>S(B).setTopBar(!1))},{default:We(()=>[I("h1",null,Q(S(d).albumTitle),1),S(Tr)>1?(R(),ge(To,{key:0,class:"top-pagination","cur-index":S(xo)-1,"page-sum":S(Tr),onChange:c},null,8,["cur-index","page-sum"])):ue("",!0),(R(!0),V(we,null,$e(S($m),l=>(R(),V("div",{class:"page-container",ref_for:!0,ref_key:"pageContainers",ref:r,key:l,style:Ke({width:`${S(d).widthScale}%`,"padding-bottom":`${S(d).widthScale*S(B).getImgPageHeightOfWidth(l)}%`,margin:`${S(d).scrollPageMargin}px auto`})},[ce(vc,{index:l,active:i.value.indexOf(l)>-1},null,8,["index","active"])],4))),128)),S(Tr)>1?(R(),ge(To,{key:1,class:"bottom-pagination","cur-index":S(xo)-1,"page-sum":S(Tr),onChange:c},null,8,["cur-index","page-sum"])):ue("",!0)]),_:1},512)):ue("",!0)]))}}),[["__scopeId","data-v-c08983c3"]]),Uy={class:"book-page-view"},Wy={key:1,class:"page start-page"},Ky={key:2,class:"page end-page"},Gy=Re(Te({__name:"BookPageView",props:{index:{},active:{type:Boolean},activeLoad:{type:Boolean}},setup(e){function t(){B.toggleOddEvenFromPageMenu()}return(n,r)=>(R(),V("div",Uy,[e.index>=0&&e.index<S(d).pageCount?(R(),ge(vc,{key:0,index:e.index,active:e.active,"active-load":e.activeLoad,onToggleOddEven:t},null,8,["index","active","active-load"])):ue("",!0),e.index==-1?(R(),V("div",Wy,[I("div",{class:be(["ehunter-tag",{left:S(d).bookDirection===1}])},"EHUNTER",2),I("h1",null,Q(S(d).albumTitle),1)])):ue("",!0),e.index==S(d).pageCount?(R(),V("div",Ky,[I("div",{class:be(["ehunter-tag",{left:S(d).bookDirection===0}])},"EHUNTER",2),r[0]||(r[0]=I("h1",null,"END",-1))])):ue("",!0)]))}}),[["__scopeId","data-v-19f61df3"]]),Qy=Re(Te({__name:"AlbumBookView",setup(e){function t(p){return{width:p.width+"px",height:p.height+"px",top:p.top+"px",right:p.right+"px",zIndex:d.pageCount-p.pageIndex}}function n(p){return{zIndex:p===c.value?2:1,pointerEvents:p===c.value?"auto":"none"}}function r(p,h){let m=(ti.value-p*d.pagesPerScreen)/2,g=h;return d.bookDirection==1&&(g=d.pagesPerScreen-g-1),m+g*p}function o(p){let h=[];if(p.length===0)return h;let m=p.reduce((y,b)=>{let w=b>=0&&b<d.pageCount?B.getImgPageHeightOfWidth(b):Xl();return w>y?w:y},0),g=m/p.length,k=0;g>=Um.value?k=ni.value/m:k=ti.value/p.length;for(let y=0;y<p.length;y++){let b=p[y],w=b>=0&&b<d.pageCount?B.getImgPageHeightOfWidth(b):Xl(),v=k*w,x=ni.value/2-v/2;d.showTopBar&&(x+=d.topBarHeight),h.push({pageIndex:b,height:v,width:k,top:x,right:r(k,y)})}return h}const s=J(()=>{const p=zs({pageCount:d.pageCount,pagesPerScreen:d.pagesPerScreen,isChangeOddEven:d.isChangeOddEven}),h=Bs(p,d.curViewIndex),m=Math.max(1,Math.ceil(d.loadNum/Math.max(1,d.pagesPerScreen))),g=Math.max(0,h-m),k=Math.min(p.length-1,h+m),y=[];for(let b=g;b<=k;b++){const w=p[b];y.push({spreadIndex:b,pageList:o(w)})}if(!y.some(b=>b.spreadIndex===h)){const b=p[h]||[];y.unshift({spreadIndex:h,pageList:o(b)})}return y}),i=J(()=>zs({pageCount:d.pageCount,pagesPerScreen:d.pagesPerScreen,isChangeOddEven:d.isChangeOddEven})),c=J(()=>Bs(i.value,d.curViewIndex)),a=J(()=>i.value.length);function u(p){const h=i.value[p],m=tu(h,d.curViewIndex);B.setCurViewIndex(m,"book-pagination")}const l=J(()=>d.pageTurnAnimationMode==="none"?"screen-none":d.pageTurnAnimationMode==="slide"?d.flipDirection==0?"screen-slide-next":"screen-slide-prev":d.flipDirection==0?"screen-flip":"screen-flip-reverse");function f(p){let h=p.clientY;switch(!0){case(h>=0&&h<d.viewportHeight*.3):B.setCurViewIndex(d.curViewIndex-d.pagesPerScreen,"click");break;case(h>=d.viewportHeight*.3&&h<=d.viewportHeight*.7):break;case(h>=d.viewportHeight*.7&&h<=d.viewportHeight):B.setCurViewIndex(d.curViewIndex+d.pagesPerScreen,"click");break}}return(p,h)=>(R(),V("section",{class:be(["album-book-view",`mode-${S(d).pageTurnAnimationMode}`]),onWheel:h[0]||(h[0]=(...m)=>S(jl)&&S(jl)(...m)),onClick:f},[(R(!0),V(we,null,$e(s.value,m=>(R(),ge(Qt,{key:m.spreadIndex,name:l.value},{default:We(()=>[gn(I("div",{class:"book-spread",style:Ke(n(m.spreadIndex))},[(R(!0),V(we,null,$e(m.pageList,g=>(R(),V("div",{class:"book-page-container",key:`${m.spreadIndex}-${g.pageIndex}`,style:Ke(t(g))},[ce(Gy,{index:g.pageIndex,active:!0,"active-load":!0},null,8,["index"])],4))),128))],4),[[Nn,m.spreadIndex===c.value]])]),_:2},1032,["name"]))),128)),ce(Qt,{name:"center-horizontal-fade"},{default:We(()=>[S(d).showBookPagination&&a.value>1?(R(),ge(To,{key:0,class:"bottom-pagination","cur-index":c.value,"page-sum":a.value,onChange:u},null,8,["cur-index","page-sum"])):ue("",!0)]),_:1}),h[1]||(h[1]=I("div",{class:"action-panel"},[I("div",{class:"next"}),I("div",{class:"setting"}),I("div",{class:"pre"})],-1))],34))}}),[["__scopeId","data-v-2fa16c83"]]),Zy=["aria-label"],Yy=["onClick"],Jy={class:"page-label"},Xy={class:"pager-row"},ew=Re(Te({__name:"ThumbExpandDialog",emits:["select-page"],setup(e,{emit:t}){const n=J(()=>nu(d.pageCount)),r=J(()=>Vs(d.thumbExpandSegmentIndex,d.pageCount)),o=J(()=>jg(d.thumbInfos,d.pageCount,r.value)),s=Y(null),i=Y(1),c=J(()=>o.value.length>Math.max(1,i.value)),a=t;je(()=>d.showThumbExpandDialog,m=>Pe(null,null,function*(){m&&(B.setThumbExpandSegmentIndex(ru(d.curViewIndex)),yield At(),u(),l())})),je(o,()=>Pe(null,null,function*(){d.showThumbExpandDialog&&(yield At(),u())})),ut(()=>{window.addEventListener("resize",u)}),bn(()=>{window.removeEventListener("resize",u)});function u(){const m=s.value;if(!m){i.value=1;return}const k=getComputedStyle(m).gridTemplateColumns.split(" ").map(y=>y.trim()).filter(Boolean).length;i.value=Math.max(1,k)}function l(){const m=s.value;if(!m)return;const g=m.querySelector(".thumb-item.active");g&&g.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}function f(){B.closeThumbExpandDialog()}function p(m){B.setThumbExpandSegmentIndex(Number(m))}function h(m){a("select-page",m)}return(m,g)=>(R(),ge(ls,{to:"#ehunter-app"},[ce(Qt,{name:"slow-opacity-fade",appear:""},{default:We(()=>[S(d).showThumbExpandDialog?(R(),V("div",{key:0,class:"thumb-expand-modal",onClick:Ne(f,["self"])},[I("section",{class:"panel",onClick:g[0]||(g[0]=Ne(()=>{},["stop"]))},[I("button",{class:"close-btn",type:"button","aria-label":S(W).cancel,onClick:f},"×",8,Zy),I("div",{ref_key:"gridWrapRef",ref:s,class:be(["grid-wrap",{distributed:c.value}])},[(R(!0),V(we,null,$e(o.value,k=>(R(),V("button",{key:k.pageNumber,type:"button",class:be(["thumb-item",{active:k.pageNumber-1===S(d).curViewIndex}]),onClick:y=>h(k.pageNumber)},[I("div",{class:be(["thumb-frame",{error:k.renderState==="error"}])},[ce(gc,{"thumb-info":k.thumbInfo,"fallback-text":S(W).loadingFailed},null,8,["thumb-info","fallback-text"])],2),I("div",Jy,Q(k.pageNumber),1)],10,Yy))),128))],2),I("footer",Xy,[ce(To,{"cur-index":r.value,"page-sum":n.value,onChange:p},null,8,["cur-index","page-sum"])])])])):ue("",!0)]),_:1})]))}}),[["__scopeId","data-v-a86570b6"]]),tw=Te({__name:"InstructionDialog",setup(e){function t(n,r){return r&&r.length>0?r:[{name:W.value.confirm,btnType:"plain",isCloseModal:!0,onClick:()=>{B.closeInstructionDialog(n)}}]}return(n,r)=>(R(!0),V(we,null,$e(S(d).instructionDialogStack,(o,s)=>(R(),ge(Do,{key:o.id,active:!0,title:o.title||S(W).instructionsAndAbouts,"is-compulsive":o.isCompulsive!==!1,"md-text":o.mdText,operations:t(o.id,o.operations),style:Ke({zIndex:10030+s}),onClose:i=>S(B).closeInstructionDialog(o.id)},null,8,["title","is-compulsive","md-text","operations","style","onClose"]))),128))}}),yh=Re(Te({__name:"SplitHandle",props:{orientation:{},longPressMs:{default:500}},emits:["resize-start","hover-change"],setup(e,{emit:t}){const n=e,r=t,o=Y(!1);function s(){o.value=!1}const i=ph({longPressMs:n.longPressMs,onActivate:f=>{o.value=!0,r("resize-start",f)}});function c(f){o.value=!1;const p=f.currentTarget;p&&typeof p.setPointerCapture=="function"&&p.setPointerCapture(f.pointerId),i.onPointerDown(f)}function a(f){i.onPointerMove(f)}function u(){s(),i.onPointerUp()}function l(){s(),i.onPointerCancel()}return window.addEventListener("pointerup",s),window.addEventListener("pointercancel",s),window.addEventListener("blur",s),Ut(()=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",s),window.removeEventListener("blur",s)}),(f,p)=>(R(),V("div",{class:be(["split-handle",[e.orientation,{active:o.value}]]),onPointerdown:c,onPointermove:a,onPointerup:u,onPointercancel:l,onMouseenter:p[0]||(p[0]=h=>r("hover-change",!0)),onMouseleave:p[1]||(p[1]=h=>r("hover-change",!1))},[...p[2]||(p[2]=[I("div",{class:"grip"},null,-1)])],34))}}),[["__scopeId","data-v-100ef373"]]),nw={key:0,class:"drop-overlay"},wh=8,rw=Re(Te({__name:"DockWorkspace",props:{thumbSlot:{},thumbSizePx:{},showThumb:{type:Boolean},longPressMs:{default:500}},emits:["request-dock","request-resize"],setup(e,{expose:t,emit:n}){const r=e,o=n,s=Y(null),i=Y(!1),c=Y(!1),a=Y(!1),u=Y("left"),l=J(()=>({width:r.showThumb&&(r.thumbSlot==="left"||r.thumbSlot==="right")?`${r.thumbSizePx}px`:"0px"})),f=J(()=>({height:r.showThumb&&r.thumbSlot==="bottom"?`${r.thumbSizePx}px`:"0px"}));let p=0,h=0,m=!1;function g(M,N){if(!s.value)return r.thumbSlot;const L=s.value.getBoundingClientRect(),ae=M-L.left,z=L.right-M,re=L.bottom-N,oe=Math.max(120,L.width*.24),se=Math.max(120,L.height*.24),le=[];if(ae<=oe&&le.push({slot:"left",score:ae/oe}),z<=oe&&le.push({slot:"right",score:z/oe}),re<=se&&le.push({slot:"bottom",score:re/se}),le.length>0){const _e=Math.abs(M-p),me=Math.abs(N-h),ke=le.some(Ie=>Ie.slot==="bottom"),Ce=le.some(Ie=>Ie.slot==="left"||Ie.slot==="right");if(ke&&Ce){if(_e>me*1.15)return ae<=z?"left":"right";if(me>_e*1.15)return"bottom"}return le.sort((Ie,Ue)=>Ie.score-Ue.score),le[0].slot}return r.thumbSlot}function k(M){i.value=!0,m=!1,p=M.clientX,h=M.clientY,u.value=g(M.clientX,M.clientY);const N=M.sourceEvent;Number.isFinite(N.pointerId)&&N.pointerId,window.addEventListener("pointermove",y),window.addEventListener("pointerup",w),window.addEventListener("pointercancel",v)}function y(M){if(!i.value)return;const N=Math.abs(M.clientX-p),L=Math.abs(M.clientY-h);(N>=wh||L>=wh)&&(m=!0),u.value=g(M.clientX,M.clientY)}function b(){i.value=!1,window.removeEventListener("pointermove",y),window.removeEventListener("pointerup",w),window.removeEventListener("pointercancel",v)}function w(M){if(!i.value)return;if(!m){b();return}const N=g(M.clientX,M.clientY);o("request-dock",N),b()}function v(){b()}function x(){b()}function E(M){c.value=!0,document.body.style.userSelect="none";const N=M.sourceEvent;Number.isFinite(N.pointerId)&&N.pointerId,window.addEventListener("pointermove",F),window.addEventListener("pointerup",C),window.addEventListener("pointercancel",C)}function F(M){if(!c.value||!s.value)return;const N=s.value.getBoundingClientRect();let L=r.thumbSizePx;r.thumbSlot==="left"?L=M.clientX-N.left:r.thumbSlot==="right"?L=N.right-M.clientX:L=N.bottom-M.clientY,o("request-resize",L)}function C(){c.value=!1,document.body.style.userSelect="",window.removeEventListener("pointermove",F),window.removeEventListener("pointerup",C),window.removeEventListener("pointercancel",C)}function D(){x(),C()}return window.addEventListener("blur",D),Ut(()=>{document.body.style.userSelect="",window.removeEventListener("blur",D),x(),C()}),t({startDockDrag:k}),(M,N)=>(R(),V("div",{ref_key:"rootRef",ref:s,class:be(["dock-workspace",`slot-${e.thumbSlot}`])},[gn(I("div",{class:be(["thumb-panel side",{collapsed:!e.showThumb}]),style:Ke(l.value)},[yn(M.$slots,"thumb",{},void 0)],6),[[Nn,e.thumbSlot==="left"||e.thumbSlot==="right"]]),gn(ce(yh,{orientation:"vertical","long-press-ms":e.longPressMs,onResizeStart:E,onHoverChange:N[0]||(N[0]=L=>a.value=L)},null,8,["long-press-ms"]),[[Nn,e.showThumb&&(e.thumbSlot==="left"||e.thumbSlot==="right")]]),I("div",{class:be(["main-panel",{resizing:a.value||c.value}])},[yn(M.$slots,"main",{},void 0)],2),gn(ce(yh,{orientation:"horizontal","long-press-ms":e.longPressMs,onResizeStart:E,onHoverChange:N[1]||(N[1]=L=>a.value=L)},null,8,["long-press-ms"]),[[Nn,e.showThumb&&e.thumbSlot==="bottom"]]),gn(I("div",{class:be(["thumb-panel bottom",{collapsed:!e.showThumb}]),style:Ke(f.value)},[yn(M.$slots,"thumb",{},void 0)],6),[[Nn,e.thumbSlot==="bottom"]]),i.value?(R(),V("div",nw,[I("div",{class:be(["drop-zone left",{active:u.value==="left"}])},Q(S(W).dockLeft),3),I("div",{class:be(["drop-zone right",{active:u.value==="right"}])},Q(S(W).dockRight),3),I("div",{class:be(["drop-zone bottom",{active:u.value==="bottom"}])},Q(S(W).dockBottom),3)])):ue("",!0)],2))}}),[["__scopeId","data-v-fa3343db"]]),ow={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function sw(e,t){return R(),V("svg",ow,[...t[0]||(t[0]=[I("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),I("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"},null,-1)])])}const iw={render:sw},cw={class:"reader-view"},aw={class:"main-content"},lw={class:"status-pannel"},uw=["aria-label"],fw={class:"progress"},hw=Re(Te({__name:"ReaderView",setup(e){const t=Y(!1),n=Y(null),r=J(()=>d.readingMode===0?d.showThumbView:d.showBookThumbView);function o(){const l=document;t.value=!!(l.fullscreenElement||l.webkitFullscreenElement||l.mozFullScreenElement)}function s(){const l=window;if(l.__EHUNTER_UI__){l.__EHUNTER_UI__.close();return}const f=document.querySelector("#ehunter-app .ehunter-container");f&&(f.style.top="-100%",document.body.style.overflow="")}function i(){const l=document;if(!!(l.fullscreenElement||l.webkitFullscreenElement||l.mozFullScreenElement)){if(l.exitFullscreen){l.exitFullscreen();return}if(l.webkitExitFullscreen){l.webkitExitFullscreen();return}l.mozCancelFullScreen&&l.mozCancelFullScreen();return}const h=document.querySelector(".ehunter-container")||document.documentElement;if(h.requestFullscreen){h.requestFullscreen();return}if(h.webkitRequestFullscreen){h.webkitRequestFullscreen();return}if(h.webkitRequestFullScreen){h.webkitRequestFullScreen();return}h.mozRequestFullScreen&&h.mozRequestFullScreen()}function c(l){var f;(f=n.value)==null||f.startDockDrag(l)}function a(){B.openThumbExpandDialog()}function u(l){B.closeThumbExpandDialog(),B.setCurViewIndex(l-1,"thumb-expand")}return ut(()=>{o(),document.addEventListener("fullscreenchange",o),document.addEventListener("webkitfullscreenchange",o),document.addEventListener("mozfullscreenchange",o)}),Ut(()=>{document.removeEventListener("fullscreenchange",o),document.removeEventListener("webkitfullscreenchange",o),document.removeEventListener("mozfullscreenchange",o)}),(l,f)=>(R(),V("div",cw,[ce(rw,{ref_key:"dockWorkspaceRef",ref:n,"thumb-slot":S(d).thumbDockSlot,"thumb-size-px":S(d).thumbDockSlot==="bottom"?S(d).thumbViewHeight:S(d).thumbViewWidth,"show-thumb":r.value,"long-press-ms":500,onRequestDock:f[0]||(f[0]=p=>S(B).setThumbDockSlot(p)),onRequestResize:f[1]||(f[1]=p=>S(B).setThumbPanelSize(p))},{thumb:We(()=>[ce(oy,{onDockDragStart:c,onOpenThumbExpand:a})]),main:We(()=>[I("div",aw,[ce(O0,{class:"top-bar",onCloseEHunter:s}),ce(Qt,{name:"slow-horizontal-fade"},{default:We(()=>[S(d).readingMode===0?(R(),ge(jy,{key:0,class:"content scroll-mode"})):ue("",!0)]),_:1}),ce(Qt,{name:"slow-vertical-fade"},{default:We(()=>[S(d).readingMode===1?(R(),ge(Qy,{key:0,class:"content book-mode"})):ue("",!0)]),_:1})])]),_:1},8,["thumb-slot","thumb-size-px","show-thumb"]),I("div",lw,[I("button",{class:"full-screen","aria-label":S(W).fullScreen,onClick:i,type:"button"},[ce(S(iw))],8,uw),I("div",fw,Q(`${S(d).curViewIndex+1} / ${S(d).pageCount}`),1)]),ce(ew,{onSelectPage:u}),ce(tw)]))}}),[["__scopeId","data-v-f4d7c623"]]),dw={key:0},pw={class:"bar"},gw={key:1,class:"actions"},mw=["onClick"],vw=Re(Te({__name:"StatusNotificationItem",props:{item:{}},emits:["dismiss","action"],setup(e){const t=e,n=J(()=>typeof t.item.progressCurrent!="number"||typeof t.item.progressTotal!="number"||t.item.progressTotal<=0?0:Math.max(0,Math.min(100,Math.round(t.item.progressCurrent/t.item.progressTotal*100))));return(r,o)=>(R(),V("article",{class:be(["status-notification-item",`phase-${e.item.phase}`,`severity-${e.item.severity}`])},[I("header",null,[I("strong",null,Q(e.item.title),1),I("button",{type:"button",class:"close",onClick:o[0]||(o[0]=s=>r.$emit("dismiss",e.item.notificationId))},"×")]),I("p",null,Q(e.item.message),1),typeof e.item.progressCurrent=="number"&&typeof e.item.progressTotal=="number"?(R(),V("footer",dw,[I("span",null,Q(`${e.item.progressCurrent} / ${e.item.progressTotal}`),1),I("div",pw,[I("i",{style:Ke({width:`${n.value}%`})},null,4)])])):ue("",!0),e.item.actions&&e.item.actions.length>0?(R(),V("div",gw,[(R(!0),V(we,null,$e(e.item.actions,s=>(R(),V("button",{key:s.id,type:"button",class:be(["action-btn",s.variant||"plain"]),onClick:i=>r.$emit("action",e.item.notificationId,s.id)},Q(s.label),11,mw))),128))])):ue("",!0)],2))}}),[["__scopeId","data-v-19f1746c"]]),bw={key:0,class:"status-notification-stack"},yw=Re(Te({__name:"StatusNotificationStack",setup(e){function t(r){B.dismissDownloadNotification(r)}function n(r,o){B.triggerDownloadNotificationAction(r,o)}return(r,o)=>S(d).downloadNotifications.length>0?(R(),V("div",bw,[ce(Fl,{name:"vertical-list",tag:"div",class:"list"},{default:We(()=>[(R(!0),V(we,null,$e(S(d).downloadNotifications,s=>(R(),ge(vw,{key:s.notificationId,item:s,onDismiss:t,onAction:n},null,8,["item"]))),128))]),_:1})])):ue("",!0)}}),[["__scopeId","data-v-cded4c82"]]),ww={class:"ehunter-app normalize"},_w={key:0,style:{display:"flex","flex-direction":"row",width:"100%",height:"100%"}},Sw=Te({__name:"App",setup(e){const t=Y(!1),n=Rn(Rs);return ut(()=>{Wm(n),t.value=!0}),(r,o)=>(R(),V("div",ww,[t.value?(R(),V("div",_w,[ce(hw),ce(yw)])):ue("",!0)]))}}),kw={class:"ehunter-container vue-container"},xw=Te({__name:"TestApp",setup(e){return(t,n)=>(R(),V("div",kw,[ce(Sw)]))}});var Ft=(e=>(e.EH="EH",e.NH="NH",e.TEST="TEST",e))(Ft||{});class zo extends Error{constructor(n,r,o,s=[]){super(n);ie(this,"platform");ie(this,"url");ie(this,"timestamp");ie(this,"steps");this.name="InitializationError",this.platform=r,this.url=o,this.timestamp=new Date,this.steps=s}}function Cw(){const e=window.location.host,t=window.location.hostname,n=window.location.pathname,r=t==="e-hentai.org"||t==="exhentai.org",o=/^\/s\/[^/]+\/\d+-\d+\/?$/.test(n);if(r&&o)return{platform:Ft.EH,host:e,pathname:n,isAlbumPage:!0};const s=/^\/g\/\d+\/\d+\/$/.test(n);return t==="nhentai.net"&&s?{platform:Ft.NH,host:e,pathname:n,isAlbumPage:!0}:Su(e)?{platform:Ft.TEST,host:e,pathname:n,isAlbumPage:!0}:{platform:null,host:e,pathname:n,isAlbumPage:!1}}let yc=class{constructor(t){ie(this,"htmlText");ie(this,"html");ie(this,"document");ie(this,"i2");ie(this,"imgSizeInfo");return this.htmlText=t.replace(/src=/g,"x-src="),this.html=document.createElement("html"),this.html.innerHTML=this.htmlText,this.document=this.html.ownerDocument,this._initI2Element(),this._initImgSizeInfo(),this}_initI2Element(){if(this.i2=this.html.querySelector("#i2"),!this.i2)throw new Error("ImgHtmlParser: i2 is undefined")}_initImgSizeInfo(){this.imgSizeInfo=this.i2.children[1].textContent.split("::")[1].split("x")}getTitle(){let t=this.html.querySelector("h1");return t&&t.textContent||""}getCurPageNum(){return Number(this.i2.getElementsByTagName("span")[0].textContent)}getPageCount(){return Number(this.i2.getElementsByTagName("span")[1].textContent)}getImgHeight(){return Number(this.imgSizeInfo[1].trim())}getImgWidth(){return Number(this.imgSizeInfo[0].trim())}getPreciseHeightOfWidth(){return Number(this.getImgHeight()/this.getImgWidth())}getIntroUrl(){return this.html.querySelectorAll(".sb")[0].children[0].getAttribute("href").replace(/^.*?org/g,"").replace(/\?p=.*?$/g,"")}getAlbumId(){return this.getIntroUrl().match(/g\/\d+(?=\/)/)[0].replace("g/","")}getImgId(){return window.location.pathname.split("/")[2]}getNextImgId(){return this.document.getElementById("i3").children[0].getAttribute("href").split("/")[4]}getImgUrl(){return this.htmlText.match('id="img" x-src="(.*?)"'),RegExp.$1}getOriginalImgUrl(){let t=this.html.querySelector("#i6").children;return t[t.length-1].children[1].getAttribute("href")}getSourceId(){return this.html.querySelector("#loadfail").attributes.onclick.value.match(/nl\('(.*?)'\)/g),RegExp.$1}},_h=class{constructor(t,n){ie(this,"html");ie(this,"reqUrl");this.html=document.createElement("html"),this.reqUrl=n,this.html.innerHTML=t.replace(/src=/g,"x-src=")}getImgUrls(){return this._isValidIntroPage()?this.html.querySelectorAll("#gdt>.gdtm").length==0?Array.prototype.slice.call(this.html.querySelector("#gdt").children).map(n=>{n.innerHTML.match(/width:(.*?)px;height:(.*?)px;/g);const r=Number(RegExp.$2),o=Number(RegExp.$1);let s=n.getAttribute("href").match(/\/s.*$/)+"";const i=/background:transparent\s+url\(([^)]+)\)\s*([-0-9px\s]+)no-repeat/,c=n.innerHTML.match(i),a=`background:transparent url(${c[1]}) ${c[2]} no-repeat`;return{id:s,index:0,pageUrl:s,src:"",thumbHeight:r,thumbWidth:o,heightOfWidth:r/o,thumbStyle:a}}):Array.prototype.slice.call(this.html.getElementsByClassName("gdtm"),0).map(n=>{n.children[0].getAttribute("style").match(/width:(.*?)px; height:(.*?)px;/g);const r=Number(RegExp.$2),o=Number(RegExp.$1);let s=n.getElementsByTagName("a")[0].getAttribute("href").match(/\/s.*$/)+"";return{id:s,index:0,pageUrl:s,src:"",thumbHeight:r,thumbWidth:o,heightOfWidth:r/o,thumbStyle:""}}):[]}getThumbObjList(t,n){return this._computeThumbList(this._getThumbImgList(n,t),t)}_getThumbKeyId(){let t=this.html.querySelector("#gdt").children[0].innerHTML.match(/url\(https.*?\)/g)[0].replace("url(","").replace(")","");return t.replace(t.match(/[0-9-]{3,20}\./)[0],"__PLACE_HOLDER__")}_getThumbPageCount(t){if(t<20)return 1;let n=t%20;return n>1?(t-n)/20+1:t/20}_getThumbImgList(t,n){let r=this._getThumbKeyId(),o=[];for(let s=0;s<this._getThumbPageCount(n);s++)if(r.includes("__PLACE_HOLDER__")){let i=r.replace("__PLACE_HOLDER__",`${t}-${s<10?"0"+s:s}.`);o.push(i)}else o.push(`${r}/${t}-${s<10?"0"+s:s}.jpg`);return o}_getTruePageIndex(){return Number(this.html.getElementsByClassName("ptds")[0].textContent)-1}_isValidIntroPage(){if(this.reqUrl&&this.reqUrl.includes("?p=")){let t=Number(this.reqUrl.match(/\?p=[0-9]+/g)[0].replace("?p=",""));if(this._getTruePageIndex()!==t)return!1}return!0}_computeThumbList(t,n){let r=[];for(let o=0;o<t.length;o++)for(let s=0;s<20;s++)(o!==t.length-1||s<(n%20||20))&&r.push({id:t[o]+s,src:t[o],mode:Vn.SPIRIT,offset:s*100,style:"",height:0,width:0});return r}getMaxPageNumber(){const t=this.html.querySelectorAll("body>.gtb .ptb td a");let n=0;return t.forEach(r=>{const o=parseInt(r.textContent,10);!isNaN(o)&&o>n&&(n=o)}),n}};class Tw{constructor(t){ie(this,"urls",[]);ie(this,"resultMap",new Map);ie(this,"fetchSetting",null);ie(this,"gen");this.urls=t,this.fetchSetting=null}request(){return new Promise((t,n)=>{this._initGenerator(t,n),this._request()})}setFetchSetting(t){return this.fetchSetting=t,this}_initGenerator(t,n){let r=this;this.gen=(function*(){try{for(let o of r.urls){let s=yield o;r.resultMap.set(s.url,s.html)}t(r.resultMap)}catch(o){n(o)}})(),this.gen.next()}_request(){for(let t of this.urls)new zn(t).setFetchSetting(this.fetchSetting).request().then(n=>this.gen.next({url:t,html:n},r=>this.gen.throw(r)))}}class Sh{constructor(t){ie(this,"urls",[]);ie(this,"maxConcurrentedNum",5);ie(this,"resultMap",new Map);ie(this,"fetchSetting",null);this.urls=t}setNumOfConcurrented(t){return this.maxConcurrentedNum=t,this}setFetchSetting(t){return this.fetchSetting=t,this}request(){return new Promise((t,n)=>{let r=this._splitReqs();this._request(r,t,n)})}_splitReqs(){if(this.urls.length<this.maxConcurrentedNum)return[this.urls];let t=[],n=JSON.parse(JSON.stringify(this.urls));for(;;){let r=n.splice(0,this.maxConcurrentedNum);if(r.length>0)t.push(r);else return t}}_addMap(t,n){return n.forEach((r,o)=>{t.set(o,r)}),t}_request(t,n,r){t.length>0?new Tw(t[0]).setFetchSetting(this.fetchSetting).request().then(o=>{this._addMap(this.resultMap,o),t.splice(0,1),this._request(t,n,r)},o=>{r(o)}):n(this.resultMap)}}class Ew{constructor(t,n){ie(this,"introUrl");ie(this,"sumOfIntroPage");ie(this,"introPageUrls");this.introUrl=t,this.sumOfIntroPage=0,this.introPageUrls=[]}request(){return Pe(this,null,function*(){let t=yield new Sh([this.introUrl]).request();return this.sumOfIntroPage=new _h(t.get(this.introUrl),this.introUrl).getMaxPageNumber(),this.introPageUrls=this._getIntroPageUrls(),yield this._request()})}_getIntroPageUrls(){let t=[];for(let n=0;n<this.sumOfIntroPage;n++)t.push(`${this.introUrl}?p=${n}`);return t}_request(){return Pe(this,null,function*(){let t=yield new Sh(this.introPageUrls).request(),n=this.introPageUrls.reduce((o,s)=>(o=o.concat(new _h(t.get(s),s).getImgUrls()),o),[]),r=0;return n.forEach(o=>{o.index=r++}),n})}}const wc=[{id:"parseImagePageMetadata",label:"Parse image page metadata",order:1},{id:"fetchIntroPages",label:"Fetch intro pages",order:2},{id:"extractImagePagesAndThumbnails",label:"Extract image pages and thumbnails",order:3}],_c=[{id:"parseImagePageMetadata",label:"Parse image page metadata",order:1},{id:"fetchIntroPage",label:"Fetch intro page",order:2},{id:"extractTitle",label:"Extract title",order:3},{id:"extractImagePagesAndThumbnails",label:"Extract image pages and thumbnails",order:4}];function kh(e){return e.reduce((t,n)=>(t[n.id]=n,t),{})}function Lt(e,t,n){return{id:e.id,label:e.label,order:e.order,status:t,detail:n}}function Sc(e,t,n,r,o){const s=e.find(c=>t[c]==="pending");if(!s)return;const i=n[s];i&&o(Lt(i,"failed",r))}const Iw="ehunterMockThumbParseError";function Aw(){try{return new URLSearchParams(window.location.search).get(Iw)==="1"}catch(e){return!1}}class Dw{constructor(){ie(this,"imgHtmlParser");ie(this,"thumbInfos",[]);ie(this,"imgPageInfos",[]);ie(this,"pageCount",0);ie(this,"introUrl","");ie(this,"albumId","");ie(this,"curPageIndex",0);ie(this,"title","");ie(this,"isInitialized",!1);ie(this,"reportInitializationStep",()=>{});ie(this,"initializationStepStatus",{});ie(this,"initializationStepOrder",wc.map(t=>t.id));ie(this,"initializationStepMap",kh(wc));const t=document.documentElement.outerHTML;this.imgHtmlParser=new yc(t)}isSupportOriginImg(){return!0}isSupportImgChangeSource(){return!0}isSupportThumbView(){return!0}getTitle(){return this.title}getAlbumId(){return this.albumId}getPageCount(){return this.pageCount}getCurPageIndex(){return this.curPageIndex}setInitializationStepReporter(t){this.reportInitializationStep=t}updateInitializationStep(t){this.initializationStepStatus[t.id]=t.status,this.reportInitializationStep(t)}failCurrentInitializationStep(t){Sc(this.initializationStepOrder,this.initializationStepStatus,this.initializationStepMap,t,n=>this.updateInitializationStep(n))}init(){return Pe(this,null,function*(){this.initializationStepStatus={},wc.forEach(t=>{this.updateInitializationStep(Lt(t,"pending"))});try{this.title=this.imgHtmlParser.getTitle(),this.pageCount=this.imgHtmlParser.getPageCount(),this.albumId=this.imgHtmlParser.getAlbumId(),this.introUrl=this.imgHtmlParser.getIntroUrl(),this.curPageIndex=this.imgHtmlParser.getCurPageNum()-1,this.updateInitializationStep(Lt(this.initializationStepMap.parseImagePageMetadata,"success",`Parsed title and ${this.pageCount} pages`));const t=new Ew(this.introUrl,this.pageCount);if(Aw())return new Error("MOCK_THUMB_PARSE_ERROR: failed to parse thumbnail list");this.imgPageInfos=yield t.request(),this.updateInitializationStep(Lt(this.initializationStepMap.fetchIntroPages,"success","Intro pages fetched successfully")),this.thumbInfos=this.imgPageInfos.map((n,r)=>{if(n.thumbStyle){const o=n.thumbStyle.match(/url\(([^)]+)\)/),s=n.thumbStyle.match(/-(\d+)px/),i=o?o[1]:"",c=s?parseInt(s[1],10):0;return{id:n.id,src:i,mode:Vn.SPIRIT,style:n.thumbStyle,height:n.thumbHeight||0,width:n.thumbWidth||0,offset:c}}else return{id:n.id,src:"",mode:Vn.IMG,height:n.thumbHeight||0,width:n.thumbWidth||0}}),this.updateInitializationStep(Lt(this.initializationStepMap.extractImagePagesAndThumbnails,"success",`${this.imgPageInfos.length} image pages and ${this.thumbInfos.length} thumbnails extracted`)),this.isInitialized=!0,console.log("EH Platform initialized successfully",{title:this.title,pageCount:this.pageCount,albumId:this.albumId,curPageIndex:this.curPageIndex,thumbCount:this.thumbInfos.length,imgPageCount:this.imgPageInfos.length})}catch(t){const n=t instanceof Error?t.message:String(t);return this.failCurrentInitializationStep(n),console.error("EH Platform initialization failed:",t),t instanceof Error?t:new Error(String(t))}})}getThumbInfos(t){return this.thumbInfos}getImgPageInfos(){return this.imgPageInfos}getImgSrc(t,n){return Pe(this,null,function*(){try{const r=this.imgPageInfos[t];if(!r)return new Error(`Image page info not found for index ${t}`);if(r.src&&n!==Je.ChangeSource&&n!==Je.Origin)return r;const s=yield new zn(r.pageUrl).request(),i=new yc(s);switch(n){case Je.Origin:try{r.src=i.getOriginalImgUrl()}catch(c){return new Error("ERROR_NO_ORIGIN")}break;case Je.ChangeSource:try{const c=i.getSourceId();if(!c)return new Error("ERROR_CHANGE_SOURCE");const u=yield new zn(`${r.pageUrl}?nl=${c}`).request(),l=new yc(u);return r.src=l.getImgUrl(),r.preciseHeightOfWidth=l.getPreciseHeightOfWidth(),r}catch(c){return new Error("ERROR_CHANGE_SOURCE")}default:r.src=i.getImgUrl()}return r.preciseHeightOfWidth=i.getPreciseHeightOfWidth(),r}catch(r){return r instanceof Error?r:new Error(String(r))}})}getPreviewThumbnailStyle(t){const n=this.thumbInfos[t];if(!n||!n.style)return{"background-image":"","background-position":"","background-size":""};const r={"background-image":"","background-position":"","background-size":""},o=n.style.match(/url\(([^)]+)\)\s*([-0-9px\s]+)/);return o&&(r["background-image"]=`url(${o[1]})`,r["background-position"]=o[2].trim()),r}getIntroUrl(){return this.introUrl}setIntroUrl(t){this.introUrl=t}}class xh{constructor(t){ie(this,"htmlText");ie(this,"html");return this.htmlText=t.replace(/src=/g,"x-src="),this.html=document.createElement("html"),this.html.innerHTML=this.htmlText,this}getCurPageNum(){return Number(this.html.querySelector(".current").textContent)}getPageCount(){return Number(this.html.querySelector(".num-pages").textContent)}getImgHeight(){return Number(this.html.querySelector("#image-container").children[0].children[0].getAttribute("height"))}getImgWidth(){return Number(this.html.querySelector("#image-container").children[0].children[0].getAttribute("width"))}getIntroUrl(){return this.html.querySelector(".go-back").getAttribute("href")}getAlbumId(){return this.getIntroUrl().replace(/(\/|g)/g,"")}getImgUrl(){return this.html.querySelector("#image-container").children[0].children[0].getAttribute("x-src")}}class Mw{constructor(t){ie(this,"html");ie(this,"imgPageInfos",[]);ie(this,"thumbInfos",[]);this.html=document.createElement("html"),this.html.innerHTML=t.replace(/src=/g,"x-src="),this.parseData()}getTitle(){return this.html.querySelector("h1").textContent}parseData(){Array.prototype.slice.call(this.html.querySelectorAll(".gallerythumb"),0).forEach(t=>{const n=t.children[0].getAttribute("data-x-src"),r=t.children[0].getAttribute("height")*1,o=t.children[0].getAttribute("width")*1,s=t.getAttribute("href");this.imgPageInfos.push({id:s,index:this.imgPageInfos.length,pageUrl:s,thumbHeight:r,thumbWidth:o,thumbStyle:"",src:"",heightOfWidth:r/o}),this.thumbInfos.push({id:s,mode:Vn.IMG,src:n,style:"",height:0,width:0})})}getImgPageInfos(){return this.imgPageInfos}getThumbInfos(){return this.thumbInfos}}class Pw{constructor(){ie(this,"imgHtmlParser");ie(this,"thumbInfos",[]);ie(this,"imgPageInfos",[]);ie(this,"pageCount",0);ie(this,"introUrl","");ie(this,"albumId","");ie(this,"curPageIndex",0);ie(this,"title","");ie(this,"reportInitializationStep",()=>{});ie(this,"initializationStepStatus",{});ie(this,"initializationStepOrder",_c.map(t=>t.id));ie(this,"initializationStepMap",kh(_c));const t=document.documentElement.outerHTML;this.imgHtmlParser=new xh(t)}isSupportOriginImg(){return!1}isSupportImgChangeSource(){return!1}isSupportThumbView(){return!0}getTitle(){return this.title}getAlbumId(){return this.albumId}getIntroUrl(){return this.introUrl}getPageCount(){return this.pageCount}getCurPageIndex(){return this.curPageIndex}setInitializationStepReporter(t){this.reportInitializationStep=t}updateInitializationStep(t){this.initializationStepStatus[t.id]=t.status,this.reportInitializationStep(t)}failCurrentInitializationStep(t){Sc(this.initializationStepOrder,this.initializationStepStatus,this.initializationStepMap,t,n=>this.updateInitializationStep(n))}init(){return Pe(this,null,function*(){this.initializationStepStatus={},_c.forEach(t=>{this.updateInitializationStep(Lt(t,"pending"))});try{this.pageCount=this.imgHtmlParser.getPageCount(),this.albumId=this.imgHtmlParser.getAlbumId(),this.introUrl=this.imgHtmlParser.getIntroUrl(),this.curPageIndex=this.imgHtmlParser.getCurPageNum()-1,this.updateInitializationStep(Lt(this.initializationStepMap.parseImagePageMetadata,"success",`${this.pageCount} pages detected`));const t=yield new zn(this.introUrl).request();this.updateInitializationStep(Lt(this.initializationStepMap.fetchIntroPage,"success","Intro page loaded"));const n=new Mw(t);if(this.title=n.getTitle(),!this.title||!this.title.trim())throw new Error("Title is empty");this.updateInitializationStep(Lt(this.initializationStepMap.extractTitle,"success","Title extracted successfully")),this.imgPageInfos=n.getImgPageInfos(),this.thumbInfos=n.getThumbInfos(),this.updateInitializationStep(Lt(this.initializationStepMap.extractImagePagesAndThumbnails,"success",`${this.imgPageInfos.length} image pages and ${this.thumbInfos.length} thumbnails extracted`))}catch(t){const n=t instanceof Error?t.message:String(t);return this.failCurrentInitializationStep(n),t instanceof Error?t:new Error(String(t))}})}getThumbInfos(t){return this.thumbInfos}getImgPageInfos(){return this.imgPageInfos}getImgSrc(t,n){return Pe(this,null,function*(){try{const r=this.imgPageInfos[t];if(!r)return new Error(`Image page info not found for index ${t}`);if(r.src)return at({},r);const o=new zn(r.pageUrl);o.setTimeOutTime(5);const s=yield o.request(),i=new xh(s),c=i.getImgUrl(),a=i.getImgHeight(),u=i.getImgWidth();return this.imgPageInfos[t].src=c,a>0&&u>0&&(this.imgPageInfos[t].preciseHeightOfWidth=a/u),at({},this.imgPageInfos[t])}catch(r){return r instanceof Error?r:new Error(String(r))}})}getPreviewThumbnailStyle(t){const n=this.thumbInfos[t];return{"background-image":n!=null&&n.src?`url(${n.src})`:"","background-position":"0% 0%","background-size":"cover"}}}let kc=[],Rw={0:"/2195608-00.jpg",1:"/2195608-01.jpg",2:"/2195608-02.jpg",3:"/2195608-03.jpg"};for(let e=0;e<64;e++)kc.push({id:String(e),src:Rw[Math.floor(e/20)],mode:0,offset:e%20*100});let Bo=[];for(let e=0;e<64;e++)Bo.push({id:e,index:e,pageUrl:"/"+(e+1+"").padStart(2,"0")+".jpg",src:"",heightOfWidth:1.4});class qw{constructor(t){ie(this,"pageCount");ie(this,"thumbInfos");ie(this,"imgPageInfos");const n=new URLSearchParams(window.location.search),r=Number.parseInt(n.get("pageTotal")||"",10),o=Number.isFinite(r)&&r>0,s=Bo.length;this.pageCount=ku()&&o?r:s,this.thumbInfos=Fw(this.pageCount),this.imgPageInfos=Lw(this.pageCount)}isSupportOriginImg(){return!0}isSupportImgChangeSource(){return!0}isSupportThumbView(){return!0}getTitle(){return"title"}getAlbumId(){return"id"}getIntroUrl(){return"/g/id/test/"}getPageCount(){return this.pageCount}getCurPageIndex(){return 0}init(){return Pe(this,null,function*(){})}getThumbInfos(t){return this.thumbInfos}getImgPageInfos(){return this.imgPageInfos}getImgSrc(t,n){return Pe(this,null,function*(){return this.imgPageInfos[t].src=this.imgPageInfos[t].pageUrl,this.imgPageInfos[t]})}getPreviewThumbnailStyle(t){let n=this.getImgPageInfos()[t],r=this.getThumbInfos(!1)[t];const o=t%20,s=this.getPageCount()-(t+1)>=this.getPageCount()%20?20:this.getPageCount()%20;let i;n.heightOfWidth>=1.43?i=1/(s*(1-1/n.heightOfWidth*(n.thumbHeight/(s*100)))):i=1/(s-1);let c=o*i;return{"background-image":`url(${r.src})`,"background-position":`${c*100}% 0`,"background-size":n.heightOfWidth>=1.43?"cover":`${s*100}%`}}}function Fw(e){const t=[],n=kc.length;for(let r=0;r<e;r++){const o=kc[r%n];t.push(Kn(at({},o),{id:String(r)}))}return t}function Lw(e){const t=[],n=Bo.length;for(let r=0;r<e;r++){const o=Bo[r%n];t.push(Kn(at({},o),{id:r,index:r,src:""}))}return t}function Nw(e){switch(e){case Ft.EH:return new Dw;case Ft.NH:return new Pw;case Ft.TEST:return new qw("");default:throw new Error(`Unsupported platform: ${e}`)}}function Ow(e,t){return Pe(this,null,function*(){var f;const r=[],o=p=>{const h=r.findIndex(m=>m.id===p.id);if(h>=0){r[h]=at(at({},r[h]),p);return}r.push(at({},p))},s=()=>r.slice().sort((p,h)=>{var k,y;const m=(k=p.order)!=null?k:Number.MAX_SAFE_INTEGER,g=(y=h.order)!=null?y:Number.MAX_SAFE_INTEGER;return m-g}).map(p=>p.id),i=()=>r.reduce((p,h)=>(p[h.id]=h.status,p),{}),c=()=>r.reduce((p,h)=>(p[h.id]={id:h.id,label:h.label,order:h.order},p),{}),a=p=>{Sc(s(),i(),c(),p,o)},u=e;(f=u.setInitializationStepReporter)==null||f.call(u,o);const l=new Promise((p,h)=>{setTimeout(()=>{r.some(m=>m.status==="failed")||a(`Timed out after ${12e4/1e3} seconds`),h(new zo("Platform initialization timed out after 120 seconds",t,window.location.href,r))},12e4)});try{const p=yield Promise.race([e.init(),l]);if(p instanceof Error)throw r.some(h=>h.status==="failed")||a(p.message),new zo(`Platform initialization failed: ${p.message}`,t,window.location.href,r)}catch(p){throw p instanceof zo?p:new zo(p instanceof Error?p.message:"Unknown initialization error",t,window.location.href,r)}})}const zw="ehunter-host-block-style-nh",Bw="ehunter-host-block-script-eh",Vw="ehunter-host-block-script-nh";function Hw(e,t){if(document.getElementById(e))return;const n=document.createElement("style");n.id=e,n.textContent=t,(document.head||document.documentElement).appendChild(n)}function Ch(e,t){if(document.getElementById(e))return;const n=document.createElement("script");n.id=e,n.textContent=t,(document.head||document.documentElement).appendChild(n)}function $w(){Ch(Bw,`
      if (typeof timerId === 'undefined') {
        const timerId = window.setInterval(() => {
          if (document.onkeyup) {
            window.onpopstate = null;
            window.clearInterval(timerId);
            load_image_dispatch = () => {};
            api_response = () => {};
            _load_image = () => {};
            nl = () => {};
            hookEvent = () => {};
            scroll_space = () => {};
            document.onkeydown = () => {};
            document.onkeyup = () => {};
          }
        }, 1000);
      }
    `)}function jw(){Ch(Vw,`
      console._clear = console.clear;
      console.clear = function () {};
    `),Hw(zw,".ts-im-container { display: none !important; }")}function Uw(e){if(e===Ft.EH){$w();return}e===Ft.NH&&jw()}const Wn=Cw(),Th="ehunter:reader:open",Eh="ehunter-switch",Vo="ehunter-app",Ih=720,xc=580,Ah="cubic-bezier(0.22, 1, 0.36, 1)",Ww="cubic-bezier(0.55, 0.08, 0.68, 0.53)";function Kw(){const e=Zt.storageGet(Th,!0);return typeof e=="boolean"?e:e==="true"?!0:e!=="false"}function Cc(e){Zt.storageSet(Th,e)}function Gw(e){const t=document.getElementById(Eh);t&&t.remove();const n=document.createElement("div");n.style.display="flex",n.style.flexDirection="column",n.style.justifyContent="center",n.style.alignItems="center",n.style.position="fixed",n.style.right="100px",n.style.top="-150px",n.style.zIndex="2147483646",n.style.cursor="pointer",n.style.transition="all 0.2s cubic-bezier(.46,-0.23,.37,2.38)",n.setAttribute("title","open eHunter"),n.setAttribute("id",Eh),n.addEventListener("click",()=>{n.style.top="-50px",window.setTimeout(()=>{n.style.top="-150px"},2e3),e()});const r=document.createElement("span");r.style.width="2px",r.style.height="200px",r.style.background="#2ecc71",r.style.boxShadow="0 1px 6px rgba(0,0,0,.117647), 0 1px 4px rgba(0,0,0,.117647)",n.appendChild(r);const o=document.createElement("span");o.style.border="2px solid #2ecc71",o.style.borderRadius="50%",o.style.width="15px",o.style.height="15px",o.style.boxShadow="0 1px 6px rgba(0,0,0,.117647), 0 1px 4px rgba(0,0,0,.117647)",n.appendChild(o),document.body.appendChild(n)}if(!Wn.platform)console.log("eHunter: No platform detected (non-album page), skipping initialization");else{console.log(`eHunter: Platform detected: ${Wn.platform}`);let e=!1,t=!1,n=null,r=null,o=!1,s=!1;const i=()=>window.matchMedia("(pointer: coarse)").matches||/iphone|ipad|ipod|android|mobile/i.test(navigator.userAgent),c=()=>{if(Wn.platform!==Ft.EH||!i())return;let g=document.querySelector('meta[name="viewport"]');const k="width=device-width, initial-scale=1, viewport-fit=cover";s||(o=!!g,r=g?g.getAttribute("content"):null,s=!0),g||(g=document.createElement("meta"),g.name="viewport",g.setAttribute("data-ehunter-managed","1"),(document.head||document.documentElement).appendChild(g)),g.setAttribute("content",k)},a=()=>{if(!s)return;const g=document.querySelector('meta[name="viewport"]');o?g&&(r===null?g.removeAttribute("content"):g.setAttribute("content",r)):(g==null?void 0:g.getAttribute("data-ehunter-managed"))==="1"&&g.remove(),r=null,o=!1,s=!1},u=()=>{n!==null&&(window.clearTimeout(n),n=null)},l=(g,k)=>{u(),n=window.setTimeout(()=>{g.style.visibility="hidden",g.style.pointerEvents="none",n=null},k)},f=()=>{let g=document.getElementById(Vo);if(g||(g=document.createElement("div"),g.id=Vo,g.classList.add("normalize"),g.style.position="fixed",g.style.height="100%",g.style.width="100%",g.style.transitionProperty="top",g.style.transitionDuration=`${Ih}ms`,g.style.transitionTimingFunction=Ah,g.style.background="#333333",g.style.zIndex="2147483647",g.style.top="-100%",g.style.left="0",g.style.visibility="hidden",g.style.pointerEvents="none",document.body.appendChild(g)),!e){const k=sg({setup(){const y=Y(!0),b=Y(null);return Pe(null,null,function*(){try{t||(Uw(Wn.platform),t=!0);const x=Nw(Wn.platform);k.provide(Rs,x),yield Ow(x,Wn.platform),y.value=!1}catch(x){y.value=!1,b.value=x,console.error("eHunter initialization failed:",{message:b.value.message,stack:b.value.stack,platform:b.value.platform,url:b.value.url,timestamp:b.value.timestamp})}}),{isLoading:y,error:b,handleClose:()=>{Cc(!1),a(),document.body.style.overflow="";const x=document.getElementById(Vo);x&&(x.style.top="-100%",l(x,xc))}}},render(){return xs(py,{isLoading:this.isLoading,error:this.error,onClose:this.handleClose},{default:()=>xs(xw)})}});k.mount(`#${Vo}`),e=!0}return g},p=g=>{const k=f();if(u(),k.style.transitionProperty="top",k.style.transitionDuration=g?`${Ih}ms`:`${xc}ms`,k.style.transitionTimingFunction=g?Ah:Ww,document.body.style.overflow=g?"hidden":"",g){c(),k.style.visibility="visible",k.style.pointerEvents="auto",requestAnimationFrame(()=>{k.style.top="0"});return}a(),k.style.top="-100%",l(k,xc)},h=()=>{Cc(!0),p(!0)},m=()=>{Cc(!1),p(!1)};window.__EHUNTER_UI__={open:h,close:m,toggle:p},Gw(h),Kw()&&h()}})();