水木社区web转APP 离线版

将水木pc版转换为app效果 离线版需要手动更新

目前為 2023-10-29 提交的版本,檢視 最新版本

// ==UserScript==
// @name         水木社区web转APP 离线版
// @namespace    https://www.newsmth.top/
// @version      0.6.1
// @description  将水木pc版转换为app效果 离线版需要手动更新
// @author       tiewuzi
// @match        https://www.newsmth.net/nForum/*
// @match        https://static.mysmth.net/*
// @match        https://static.newsmth.net/*
// @license      MIT
// @run-at       document-start
// @icon         https://www.newsmth.top/favicon.ico
// @noframes
// @grant        unsafeWindow
// ==/UserScript==
 
var Wh=Object.defineProperty;var wa=Object.getOwnPropertySymbols,qh=Object.getPrototypeOf,Vh=Object.prototype.hasOwnProperty,Yh=Object.prototype.propertyIsEnumerable,Zh=Reflect.get;var Ce=Math.pow,ts=(Ke,Se,Pe)=>Se in Ke?Wh(Ke,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ke[Se]=Pe,ns=(Ke,Se)=>{for(var Pe in Se||(Se={}))Vh.call(Se,Pe)&&ts(Ke,Pe,Se[Pe]);if(wa)for(var Pe of wa(Se))Yh.call(Se,Pe)&&ts(Ke,Pe,Se[Pe]);return Ke};var Ge=(Ke,Se,Pe)=>(ts(Ke,typeof Se!="symbol"?Se+"":Se,Pe),Pe);var $r=(Ke,Se,Pe)=>Zh(qh(Ke),Pe,Se);var _e=(Ke,Se,Pe)=>new Promise((Kr,rr)=>{var Xr=ot=>{try{$t(Pe.next(ot))}catch(Cn){rr(Cn)}},On=ot=>{try{$t(Pe.throw(ot))}catch(Cn){rr(Cn)}},$t=ot=>ot.done?Kr(ot.value):Promise.resolve(ot.value).then(Xr,On);$t((Pe=Pe.apply(Ke,Se)).next())});(function(){"use strict";var Ke=document.createElement("style");Ke.textContent=`.newsmth-plus abbr[title],.newsmth-plus dfn[title]{border-bottom:.1rem dotted #000}.newsmth-plus hr{height:.1rem;border-top:.1rem solid #ccc}.newsmth-plus .ui-timepicker-div .ui-widget-header{margin-bottom:.8rem}.newsmth-plus .ui-timepicker-div dl dt{height:2.5rem;margin-bottom:-2.5rem}.newsmth-plus .ui-timepicker-div dl dd{margin:0 1rem 1rem 6.5rem}body.newsmth-plus{font-size:1.2rem}.newsmth-plus input[type=text],.newsmth-plus input[type=password],.newsmth-plus input[type=button],.newsmth-plus input[type=submit],.newsmth-plus select,.newsmth-plus textarea{-moz-border-radius:.4rem;-webkit-border-radius:.4rem;border-radius:.4rem}.newsmth-plus input[type=text],.newsmth-plus input[type=password]{padding:.3rem .2rem}.newsmth-plus .input-text,.newsmth-plus select,.newsmth-plus textarea{border:.1rem solid #7f9db9;background:-moz-linear-gradient(top,#eee,#fff .8rem)}.newsmth-plus .input-text:focus,.newsmth-plus textarea:focus,.newsmth-plus .ie-input-focus{border:.1rem solid #fd8000;-moz-box-shadow:0 0 .2rem #fd8000;-webkit-box-shadow:0 0 .2rem #fd8000;box-shadow:0 0 .2rem #fd8000}.newsmth-plus .submit{-moz-border-radius:.4rem;-webkit-border-radius:.4rem;border-radius:.4rem;border:.1rem solid #77a2d2;font-size:1.2rem;padding:.2rem .3rem;*padding: .3rem .3rem 0;{}}.newsmth-plus .submitbw{-moz-border-radius:.4rem;-webkit-border-radius:.4rem;border-radius:.4rem;border:.1rem solid #777777;font-size:1.2rem;padding:.2rem .3rem;*padding: .3rem .3rem 0;{}}.newsmth-plus .button{-moz-border-radius:.4rem;-webkit-border-radius:.4rem;border-radius:.4rem;font-size:1.2rem;border:.1rem solid #598ede;padding:.2rem .3rem;*padding: .3rem .3rem 0;{}}.newsmth-plus .corner{-moz-border-radius:.4rem;-webkit-border-radius:.4rem;border-radius:.4rem}.newsmth-plus .tab-normal{border:.3rem double #fff}.newsmth-plus .pagination{padding:.3rem 0;*padding: .2rem 0 0;{}}.newsmth-plus .pagination i{padding-right:.1rem}.newsmth-plus .pagination li{margin-left:.2rem}.newsmth-plus .page-pre,.newsmth-plus .page-suf{*height: 1.6rem;{}}.newsmth-plus .page-main a{padding:.2rem .3rem .1rem .4rem}.newsmth-plus .page-normal a,.newsmth-plus .page-select a{border:.3rem double #fff}.newsmth-plus .ico-pos-article-normal{background-position:-1.6rem -2.1rem}.newsmth-plus .ico-pos-article-light{background-position:0 -2.1rem}.newsmth-plus .ico-pos-article-fire{background-position:-15.6rem -2.1rem}.newsmth-plus .ico-pos-article-huo{background-position:-17.2rem -2.1rem}.newsmth-plus .ico-pos-article-g{background-position:-6.4rem -2.1rem}.newsmth-plus .ico-pos-article-m{background-position:-4.8rem -2.1rem}.newsmth-plus .ico-pos-article-b{background-position:-14rem -2.1rem}.newsmth-plus .ico-pos-article-top{background-position:-8rem -2.1rem}.newsmth-plus .ico-pos-article-lock{background-position:-3.2rem -2.1rem}.newsmth-plus .ico-pos-article-dir{background-position:-9.6rem -2.1rem}.newsmth-plus .ico-pos-article-attach{background-position:-18.9rem -2.2rem}.newsmth-plus .ico-pos-w-collapse-on{background-position:-5.2rem -.1rem}.newsmth-plus .ico-pos-w-collapse-off{background-position:-3.8rem -.1rem}.newsmth-plus .ico-pos-w-rss{background-position:-36.1rem -.3rem}.newsmth-plus .ico-pos-w-update{background-position:-12.1rem -.1rem}.newsmth-plus .ico-pos-w-edit-on{background-position:0 -.1rem}.newsmth-plus .ico-pos-w-edit-off{background-position:-6.6rem -.1rem}.newsmth-plus .ico-pos-w-remove{background-position:-2.4rem -.1rem}.newsmth-plus .ico-pos-online-hide{background-position:-42.8rem -.3rem}.newsmth-plus .ico-pos-offline-hide{background-position:-41.3rem -.3rem}.newsmth-plus .ico-pos-online-man{background-position:-38.3rem -.2rem}.newsmth-plus .ico-pos-offline-man{background-position:-39.8rem -.2rem}.newsmth-plus .ico-pos-online-woman{background-position:-44.3rem -.2rem}.newsmth-plus .ico-pos-offline-woman{background-position:-45.8rem -.2rem}.newsmth-plus .ico-pos-tag-on{background-position:-16rem -.5rem}.newsmth-plus .ico-pos-tag-off{background-position:-17.2rem -.5rem}.newsmth-plus .ico-pos-cdot{background-position:-18.4rem -.5rem}.newsmth-plus .ico-pos-dot{background-position:-37.5rem -.7rem}.newsmth-plus .ico-pos-forward{background-position:-19.6rem -.2rem}.newsmth-plus .ico-pos-edit{background-position:-21.2rem -.2rem}.newsmth-plus .ico-pos-reply{background-position:-22.8rem -.2rem}.newsmth-plus .ico-pos-query{background-position:-24.4rem -.2rem}.newsmth-plus .ico-pos-friend{background-position:-26rem -.2rem}.newsmth-plus .ico-pos-mess{background-position:-27.6rem -.2rem}.newsmth-plus .ico-pos-del{background-position:-29.2rem -.2rem}.newsmth-plus .ico-pos-recomend{background-position:-30.8rem -.2rem}.newsmth-plus .ico-pos-search{background-position:-32.4rem -.2rem}.newsmth-plus .ico-pos-template{background-position:-34rem -.2rem}.newsmth-plus .ico-pos-hide{background-position:-11.2rem -2.1rem}.newsmth-plus .ico-pos-show{background-position:-12.6rem -2.1rem}.newsmth-plus .ico-pos-rss{background-position:-19.7rem -2.1rem}.newsmth-plus .ico-pos-user{background-position:-22.4rem -2.1rem}.newsmth-plus .ico-pos-deny{background-position:-23.9rem -2.1rem}.newsmth-plus .ico-pos-manage{background-position:-25.5rem -2rem}.newsmth-plus #top_head{height:10.4rem;margin:auto .3rem}.newsmth-plus #top_menu ul{margin-top:.7rem;margin-right:1rem}.newsmth-plus #top_menu ul li{margin-bottom:.5rem}.newsmth-plus #top_logo{margin:1.5rem 0 0}.newsmth-plus #ban_ner{margin-top:-9.1rem;width:72.8rem;height:9rem;padding:.4rem .7rem 0 9rem}.newsmth-plus #ban_ner_border{border:.1rem outset #bbb;width:60rem;height:8rem;padding:.1rem;-moz-box-shadow:0 0 .3rem #bbb;-webkit-box-shadow:0 0 .3rem #bbb;-box-shadow:0 0 .3rem #bbb}.newsmth-plus #ban_ner a,.newsmth-plus #ban_ner div.swf_wrapper,.newsmth-plus #ban_ner div.swf_overlay{width:72.8rem;height:9rem}.newsmth-plus #ban_ner div.swf_overlay{margin:-8rem auto 0}.newsmth-plus #ban_ner ul.nav{right:.7rem}.newsmth-plus #ban_ner ul li{margin-bottom:.6rem}.newsmth-plus #ban_ner ul.nav li{width:2rem;border-left:.1rem solid;font:1rem Arial,Helvetica,Sans-Serif}.newsmth-plus #menu{width:15.6rem;margin:.2rem 0 0 .3rem}.newsmth-plus #u_login{border:.1rem solid #c3d9ff;padding:1.1rem 0 .8rem}.newsmth-plus .u-login-input,.newsmth-plus .u-login-check,.newsmth-plus .u-login-op{padding:.3rem 0}.newsmth-plus .u-login-input .input{width:9.4rem;height:1.4rem}.newsmth-plus .u-login-input span{width:3.6rem;padding-right:.4rem}.newsmth-plus .u-login-check{padding:.2rem 0 .2rem 1.7rem}.newsmth-plus .u-login-check input{margin-top:-.2rem}.newsmth-plus .u-login-check label{padding-left:.8rem}.newsmth-plus .u-login-op .submit{width:6rem;margin:0 -.2rem 0 1.1rem}.newsmth-plus .u-login-id{font-size:1.4rem;padding-left:.8rem}.newsmth-plus .u-login-id samp{width:1.2rem;height:1.6rem;margin-right:.6rem}.newsmth-plus .u-login-id a{padding-left:.1rem}.newsmth-plus .u-login-list{margin-top:.4rem;margin-left:2.8rem;_margin-left:2.7rem;line-height:1.8rem}.newsmth-plus #left_line{height:.3rem}.newsmth-plus #left_line samp{width:1.4rem;height:1.5rem;top:-.7rem;right:-.7rem}.newsmth-plus #xlist{padding:1rem .8rem;border:.1rem solid #c3d9ff}.newsmth-plus #xlist li ul{margin-top:.3rem}.newsmth-plus .x-folder,.newsmth-plus .x-leaf{height:2.8rem;border-bottom:.1rem solid #c9d7f1;padding-left:.3rem;font-size:1.3rem}.newsmth-plus .x-folder a,.newsmth-plus .x-leaf a{padding-top:.7rem}.newsmth-plus .x-folder:hover,.newsmth-plus .x-leaf:hover{-moz-border-radius:.4rem;-webkit-border-radius:.4rem;border-radius:.4rem}.newsmth-plus .toggler{height:1.2rem;width:1.2rem;margin-right:.6rem;margin-top:.8rem}.newsmth-plus .folder-open>span>.toggler,.newsmth-plus .folder-open-last>span>.toggler{background-position:-16rem -.6rem}.newsmth-plus .folder-close>span>.toggler,.newsmth-plus .folder-close-last>span>.toggler{background-position:-17.2rem -.6rem}.newsmth-plus .leaf>span>.toggler,.newsmth-plus .leaf-last>span>.toggler{background-position:-37.5rem -.7rem;width:.8rem}.newsmth-plus .folder-open .toggler,.newsmth-plus .folder-open-last .toggler{_background-position:-16rem -.6rem}.newsmth-plus .folder-close .toggler,.newsmth-plus .folder-close-last .toggler{_background-position:-17.2rem -.6rem}.newsmth-plus .leaf .toggler,.newsmth-plus .leaf-last .toggler{_background-position:-37.5rem -.7rem;_width:.8rem}.newsmth-plus .x-leaf .toggler{background-position:-18.4rem -.6rem}.newsmth-plus .x-child li{padding:.2rem .1rem .1rem .8rem}.newsmth-plus .leaf-last samp,.newsmth-plus .leaf samp{height:1.2rem;width:.8rem;margin-left:.2rem;margin-right:.5rem}.newsmth-plus .x-search{padding-top:.1rem;padding-bottom:.3rem}.newsmth-plus .x-search input{width:10rem;height:1.6rem;margin-top:.4rem}.newsmth-plus .x-search .toggler{margin-top:1rem}.newsmth-plus #left_adv a,.newsmth-plus #left_adv div.swf_wrapper,.newsmth-plus #left_adv div.swf_overlay{margin-top:.8rem}.newsmth-plus #main{margin:.2rem .3rem 0 16.2rem;_margin-left:16.5rem;border:.1rem solid #c3d9ff;padding:1rem .7rem}.newsmth-plus #notice{border:.1rem solid #d9e7ff;padding:.4rem .5rem;line-height:1.4rem;*padding-bottom: .1rem;{}}.newsmth-plus .b-head{padding:.4rem 1rem 0;margin-top:.3rem;font-size:1.3rem;min-height:1.8rem;_height:1.8rem}.newsmth-plus .b-head .n-right{font-size:1.2rem}.newsmth-plus .b-content{border:.1rem solid #d9e7ff;padding:1rem;-moz-border-radius:0 0 .4rem .4rem;-webkit-border-radius:0 0 .4rem .4rem;border-radius:0 0 .4rem .4rem}.newsmth-plus #bot_foot{width:60rem;padding:1.5rem 0 1rem}.newsmth-plus #bot_logo img{margin-right:1.5rem;border-right:.1rem solid #999999;padding-right:1.5rem}.newsmth-plus #bot_info span{font-size:1.2rem}.newsmth-plus #nforum_tips{padding:.5rem}.newsmth-plus .a-wrap{border:.1rem solid #d4e6fc;margin:.3rem 0}.newsmth-plus .a-left{width:17rem;border-right:.1rem solid #d4e6fc}.newsmth-plus .a-pos{font-size:1.2rem;padding-right:.5rem;padding-top:.2rem}.newsmth-plus .a-status li{height:1.6rem;line-height:1.6rem;margin-left:1rem}.newsmth-plus .a-status li samp{width:1.6rem;height:1.8rem}.newsmth-plus .a-func li{margin-left:1rem}.newsmth-plus .a-func li a{font-size:1.2rem;padding-top:.2rem}.newsmth-plus .a-func li span{font-size:1.2rem}.newsmth-plus .a-func li samp{margin-right:.4rem;width:1.6rem;height:1.6rem}.newsmth-plus .a-func-info li{margin-left:.6rem}.newsmth-plus .a-u-name{margin-left:1.5rem;padding-top:.2rem}.newsmth-plus .a-u-sex{margin-right:.8rem}.newsmth-plus .a-u-sex samp{width:1.5rem;height:1.7rem}.newsmth-plus .a-u-img{width:12.4rem;margin:1.2rem auto .8rem}.newsmth-plus .a-u-img img{border:.1rem solid #ccc;padding:.2rem}.newsmth-plus .a-u-uid,.newsmth-plus .a-u-info{width:12rem;margin-bottom:.8rem}.newsmth-plus .a-u-info dt{width:5rem}.newsmth-plus .a-u-info dd{width:7rem}.newsmth-plus .a-content{padding:1rem;font-size:1.3rem}.newsmth-plus .a-content img.resizeable{-moz-box-shadow:.3rem .3rem .6rem #333;-webkit-box-shadow:.3rem .3rem .6rem #333;box-shadow:.3rem .3rem .6rem #333;margin-right:.8rem;margin-bottom:.8rem;*border: .1rem solid #ccc; *padding: .2rem;{}}.newsmth-plus .a-head{height:2.2rem}.newsmth-plus .a-bottom{font-size:1.2rem;height:2.3rem}.newsmth-plus .a-back{padding-right:.5rem}.newsmth-plus #a_forward li{padding:.4rem 0 .4rem .4rem}.newsmth-plus #a_forward li span{padding-right:.4rem}.newsmth-plus #a_forward .input-text{width:12rem;margin-right:.4rem}.newsmth-plus #a_docross li{padding:.4rem 0 .4rem .4rem}.newsmth-plus #a_docross li span{padding-right:.4rem}.newsmth-plus #a_docross .input-text{width:12rem;margin-right:.4rem}.newsmth-plus .rc1,.newsmth-plus .rc2,.newsmth-plus .rc3{height:.1rem;line-height:.1rem}.newsmth-plus .rc1{margin:0 .4rem}.newsmth-plus .rc2{margin:0 .2rem;border-width:0 .2rem}.newsmth-plus .rc3{margin:0 .1rem;border-width:0 .1rem;height:.2rem}.newsmth-plus .mbar{padding-top:.5rem;margin-top:.3rem;-moz-border-radius:.4rem .4rem 0 0;-webkit-border-radius:.4rem .4rem 0 0;border-radius:.4rem .4rem 0 0}.newsmth-plus .mbar li{margin-left:1.2rem;_margin-left:.8rem}.newsmth-plus .mbar a{font-size:1.4rem;padding:.3rem .6rem .5rem}.newsmth-plus .mbar a:hover,.newsmth-plus .mbar .selected a{-moz-border-radius:.4rem .4rem 0 0;-webkit-border-radius:.4rem .4rem 0 0;border-radius:.4rem .4rem 0 0}.newsmth-plus .c-mbar{border-left:.1rem solid #d9e7ff;border-right:.1rem solid #d9e7ff;padding:.5rem;_height:2.5rem}.newsmth-plus .c-mbar li{margin-left:.8rem}.newsmth-plus .c-mbar li a{font-size:1.3rem;padding:.4rem .7rem;padding:.5rem .7rem .3rem\\	}.newsmth-plus .c-mbar li .select,.newsmth-plus .c-mbar li a:hover{-moz-border-radius:.4rem;-webkit-border-radius:.4rem;border-radius:.4rem}.newsmth-plus .c-mbar li a samp{width:.8rem;height:1.2rem;margin-right:.3rem}.newsmth-plus .m-table th,.newsmth-plus .m-table td{border-bottom:.1rem solid #c9d7f1;height:2.6rem}.newsmth-plus .board-list th{padding-top:.3rem;padding-top:.5rem\\	;padding-bottom:.2rem}.newsmth-plus .board-list thead tr{border:.1rem solid #f2df95}.newsmth-plus .board-list td{border-bottom:.1rem solid #dce9f5;padding-top:.8rem;padding-bottom:.3rem}.newsmth-plus .board-list tr:first-child td{padding-top:1.3rem}.newsmth-plus .u-query{padding:1rem 1rem 0}.newsmth-plus .u-name{font-size:1.4rem}.newsmth-plus .u-name a{padding-left:1rem;padding-right:1rem}.newsmth-plus .u-info{padding-top:1rem}.newsmth-plus .u-info header{border-bottom:.1rem solid #c7c8c9;margin-bottom:1rem;padding-bottom:.3rem;font-size:1.4rem}.newsmth-plus .u-info figure{width:13rem;margin-left:1rem;margin-top:.5rem}.newsmth-plus .u-info figure img{max-width:12.6rem;max-height:12.6rem;padding:.2rem;border:.1rem solid #598edd}.newsmth-plus .u-info dl{width:40rem}.newsmth-plus .u-info dt{width:5rem;padding-right:1rem}.newsmth-plus .u-info dd{width:34rem}.newsmth-plus .u-detail dl{width:50rem;margin-bottom:.5rem}.newsmth-plus .u-detail dt{width:8rem}.newsmth-plus .u-detail dd{width:40rem}.newsmth-plus .u-plans div.plans{padding-top:1rem;margin-bottom:.5rem;border-top:.1rem solid #c7c8c9}.newsmth-plus .u-search{border-top:.1rem #c7c8c9 solid;padding-top:1rem}.newsmth-plus .u-search .input-text{height:1.6rem;width:15rem;margin-right:.5rem}.newsmth-plus .m-op{padding:.3rem}.newsmth-plus .m-func li{margin-left:1rem}.newsmth-plus .m-func li a{font-size:1.2rem;padding-top:.2rem}.newsmth-plus .m-func li samp{margin-right:.4rem;width:1.6rem;height:1.6rem}.newsmth-plus .m-content{padding:1rem 1.7rem;font-size:1.3rem}.newsmth-plus .list-block header{font-size:1.4rem;padding:0 1rem .2rem .7rem;border-bottom:.1rem solid #c9d7f1}.newsmth-plus .list-block ul{padding:2rem 0 0 2rem}.newsmth-plus .list-block ul li{margin-bottom:1rem}.newsmth-plus .list-block ul.narrow{padding:1rem 0 0 1rem}.newsmth-plus .list-block ul.narrow li{margin-bottom:.5rem}.newsmth-plus .ui-helper-hidden-accessible{clip:rect(.1rem .1rem .1rem .1rem);clip:rect(.1rem,.1rem,.1rem,.1rem)}.newsmth-plus .ui-icon{text-indent:-9999.9rem}.newsmth-plus .ui-widget-content{border:.1rem solid #a6c9e2}.newsmth-plus .ui-widget-header{border:.1rem solid #4297d7}.newsmth-plus .ui-state-default,.newsmth-plus .ui-widget-content .ui-state-default,.newsmth-plus .ui-widget-header .ui-state-default{border:.1rem solid #c5dbec}.newsmth-plus .ui-state-hover,.newsmth-plus .ui-widget-content .ui-state-hover,.newsmth-plus .ui-widget-header .ui-state-hover,.newsmth-plus .ui-state-focus,.newsmth-plus .ui-widget-content .ui-state-focus,.newsmth-plus .ui-widget-header .ui-state-focus,.newsmth-plus .ui-state-active,.newsmth-plus .ui-widget-content .ui-state-active,.newsmth-plus .ui-widget-header .ui-state-active{border:.1rem solid #79b7e7}.newsmth-plus .ui-state-highlight,.newsmth-plus .ui-widget-content .ui-state-highlight,.newsmth-plus .ui-widget-header .ui-state-highlight{border:.1rem solid #fad42e}.newsmth-plus .ui-state-error,.newsmth-plus .ui-widget-content .ui-state-error,.newsmth-plus .ui-widget-header .ui-state-error{border:.1rem solid #cd0a0a}.newsmth-plus .ui-icon{width:1.6rem;height:1.6rem}.newsmth-plus .ui-icon-carat-1-ne{background-position:-1.6rem 0}.newsmth-plus .ui-icon-carat-1-e{background-position:-3.2rem 0}.newsmth-plus .ui-icon-carat-1-se{background-position:-4.8rem 0}.newsmth-plus .ui-icon-carat-1-s{background-position:-6.4rem 0}.newsmth-plus .ui-icon-carat-1-sw{background-position:-8rem 0}.newsmth-plus .ui-icon-carat-1-w{background-position:-9.6rem 0}.newsmth-plus .ui-icon-carat-1-nw{background-position:-11.2rem 0}.newsmth-plus .ui-icon-carat-2-n-s{background-position:-12.8rem 0}.newsmth-plus .ui-icon-carat-2-e-w{background-position:-14.4rem 0}.newsmth-plus .ui-icon-triangle-1-n{background-position:0 -1.6rem}.newsmth-plus .ui-icon-triangle-1-ne{background-position:-1.6rem -1.6rem}.newsmth-plus .ui-icon-triangle-1-e{background-position:-3.2rem -1.6rem}.newsmth-plus .ui-icon-triangle-1-se{background-position:-4.8rem -1.6rem}.newsmth-plus .ui-icon-triangle-1-s{background-position:-6.4rem -1.6rem}.newsmth-plus .ui-icon-triangle-1-sw{background-position:-8rem -1.6rem}.newsmth-plus .ui-icon-triangle-1-w{background-position:-9.6rem -1.6rem}.newsmth-plus .ui-icon-triangle-1-nw{background-position:-11.2rem -1.6rem}.newsmth-plus .ui-icon-triangle-2-n-s{background-position:-12.8rem -1.6rem}.newsmth-plus .ui-icon-triangle-2-e-w{background-position:-14.4rem -1.6rem}.newsmth-plus .ui-icon-arrow-1-n{background-position:0 -3.2rem}.newsmth-plus .ui-icon-arrow-1-ne{background-position:-1.6rem -3.2rem}.newsmth-plus .ui-icon-arrow-1-e{background-position:-3.2rem -3.2rem}.newsmth-plus .ui-icon-arrow-1-se{background-position:-4.8rem -3.2rem}.newsmth-plus .ui-icon-arrow-1-s{background-position:-6.4rem -3.2rem}.newsmth-plus .ui-icon-arrow-1-sw{background-position:-8rem -3.2rem}.newsmth-plus .ui-icon-arrow-1-w{background-position:-9.6rem -3.2rem}.newsmth-plus .ui-icon-arrow-1-nw{background-position:-11.2rem -3.2rem}.newsmth-plus .ui-icon-arrow-2-n-s{background-position:-12.8rem -3.2rem}.newsmth-plus .ui-icon-arrow-2-ne-sw{background-position:-14.4rem -3.2rem}.newsmth-plus .ui-icon-arrow-2-e-w{background-position:-16rem -3.2rem}.newsmth-plus .ui-icon-arrow-2-se-nw{background-position:-17.6rem -3.2rem}.newsmth-plus .ui-icon-arrowstop-1-n{background-position:-19.2rem -3.2rem}.newsmth-plus .ui-icon-arrowstop-1-e{background-position:-20.8rem -3.2rem}.newsmth-plus .ui-icon-arrowstop-1-s{background-position:-22.4rem -3.2rem}.newsmth-plus .ui-icon-arrowstop-1-w{background-position:-24rem -3.2rem}.newsmth-plus .ui-icon-arrowthick-1-n{background-position:0 -4.8rem}.newsmth-plus .ui-icon-arrowthick-1-ne{background-position:-1.6rem -4.8rem}.newsmth-plus .ui-icon-arrowthick-1-e{background-position:-3.2rem -4.8rem}.newsmth-plus .ui-icon-arrowthick-1-se{background-position:-4.8rem -4.8rem}.newsmth-plus .ui-icon-arrowthick-1-s{background-position:-6.4rem -4.8rem}.newsmth-plus .ui-icon-arrowthick-1-sw{background-position:-8rem -4.8rem}.newsmth-plus .ui-icon-arrowthick-1-w{background-position:-9.6rem -4.8rem}.newsmth-plus .ui-icon-arrowthick-1-nw{background-position:-11.2rem -4.8rem}.newsmth-plus .ui-icon-arrowthick-2-n-s{background-position:-12.8rem -4.8rem}.newsmth-plus .ui-icon-arrowthick-2-ne-sw{background-position:-14.4rem -4.8rem}.newsmth-plus .ui-icon-arrowthick-2-e-w{background-position:-16rem -4.8rem}.newsmth-plus .ui-icon-arrowthick-2-se-nw{background-position:-17.6rem -4.8rem}.newsmth-plus .ui-icon-arrowthickstop-1-n{background-position:-19.2rem -4.8rem}.newsmth-plus .ui-icon-arrowthickstop-1-e{background-position:-20.8rem -4.8rem}.newsmth-plus .ui-icon-arrowthickstop-1-s{background-position:-22.4rem -4.8rem}.newsmth-plus .ui-icon-arrowthickstop-1-w{background-position:-24rem -4.8rem}.newsmth-plus .ui-icon-arrowreturnthick-1-w{background-position:0 -6.4rem}.newsmth-plus .ui-icon-arrowreturnthick-1-n{background-position:-1.6rem -6.4rem}.newsmth-plus .ui-icon-arrowreturnthick-1-e{background-position:-3.2rem -6.4rem}.newsmth-plus .ui-icon-arrowreturnthick-1-s{background-position:-4.8rem -6.4rem}.newsmth-plus .ui-icon-arrowreturn-1-w{background-position:-6.4rem -6.4rem}.newsmth-plus .ui-icon-arrowreturn-1-n{background-position:-8rem -6.4rem}.newsmth-plus .ui-icon-arrowreturn-1-e{background-position:-9.6rem -6.4rem}.newsmth-plus .ui-icon-arrowreturn-1-s{background-position:-11.2rem -6.4rem}.newsmth-plus .ui-icon-arrowrefresh-1-w{background-position:-12.8rem -6.4rem}.newsmth-plus .ui-icon-arrowrefresh-1-n{background-position:-14.4rem -6.4rem}.newsmth-plus .ui-icon-arrowrefresh-1-e{background-position:-16rem -6.4rem}.newsmth-plus .ui-icon-arrowrefresh-1-s{background-position:-17.6rem -6.4rem}.newsmth-plus .ui-icon-arrow-4{background-position:0 -8rem}.newsmth-plus .ui-icon-arrow-4-diag{background-position:-1.6rem -8rem}.newsmth-plus .ui-icon-extlink{background-position:-3.2rem -8rem}.newsmth-plus .ui-icon-newwin{background-position:-4.8rem -8rem}.newsmth-plus .ui-icon-refresh{background-position:-6.4rem -8rem}.newsmth-plus .ui-icon-shuffle{background-position:-8rem -8rem}.newsmth-plus .ui-icon-transfer-e-w{background-position:-9.6rem -8rem}.newsmth-plus .ui-icon-transferthick-e-w{background-position:-11.2rem -8rem}.newsmth-plus .ui-icon-folder-collapsed{background-position:0 -9.6rem}.newsmth-plus .ui-icon-folder-open{background-position:-1.6rem -9.6rem}.newsmth-plus .ui-icon-document{background-position:-3.2rem -9.6rem}.newsmth-plus .ui-icon-document-b{background-position:-4.8rem -9.6rem}.newsmth-plus .ui-icon-note{background-position:-6.4rem -9.6rem}.newsmth-plus .ui-icon-mail-closed{background-position:-8rem -9.6rem}.newsmth-plus .ui-icon-mail-open{background-position:-9.6rem -9.6rem}.newsmth-plus .ui-icon-suitcase{background-position:-11.2rem -9.6rem}.newsmth-plus .ui-icon-comment{background-position:-12.8rem -9.6rem}.newsmth-plus .ui-icon-person{background-position:-14.4rem -9.6rem}.newsmth-plus .ui-icon-print{background-position:-16rem -9.6rem}.newsmth-plus .ui-icon-trash{background-position:-17.6rem -9.6rem}.newsmth-plus .ui-icon-locked{background-position:-19.2rem -9.6rem}.newsmth-plus .ui-icon-unlocked{background-position:-20.8rem -9.6rem}.newsmth-plus .ui-icon-bookmark{background-position:-22.4rem -9.6rem}.newsmth-plus .ui-icon-tag{background-position:-24rem -9.6rem}.newsmth-plus .ui-icon-home{background-position:0 -11.2rem}.newsmth-plus .ui-icon-flag{background-position:-1.6rem -11.2rem}.newsmth-plus .ui-icon-calendar{background-position:-3.2rem -11.2rem}.newsmth-plus .ui-icon-cart{background-position:-4.8rem -11.2rem}.newsmth-plus .ui-icon-pencil{background-position:-6.4rem -11.2rem}.newsmth-plus .ui-icon-clock{background-position:-8rem -11.2rem}.newsmth-plus .ui-icon-disk{background-position:-9.6rem -11.2rem}.newsmth-plus .ui-icon-calculator{background-position:-11.2rem -11.2rem}.newsmth-plus .ui-icon-zoomin{background-position:-12.8rem -11.2rem}.newsmth-plus .ui-icon-zoomout{background-position:-14.4rem -11.2rem}.newsmth-plus .ui-icon-search{background-position:-16rem -11.2rem}.newsmth-plus .ui-icon-wrench{background-position:-17.6rem -11.2rem}.newsmth-plus .ui-icon-gear{background-position:-19.2rem -11.2rem}.newsmth-plus .ui-icon-heart{background-position:-20.8rem -11.2rem}.newsmth-plus .ui-icon-star{background-position:-22.4rem -11.2rem}.newsmth-plus .ui-icon-link{background-position:-24rem -11.2rem}.newsmth-plus .ui-icon-cancel{background-position:0 -12.8rem}.newsmth-plus .ui-icon-plus{background-position:-1.6rem -12.8rem}.newsmth-plus .ui-icon-plusthick{background-position:-3.2rem -12.8rem}.newsmth-plus .ui-icon-minus{background-position:-4.8rem -12.8rem}.newsmth-plus .ui-icon-minusthick{background-position:-6.4rem -12.8rem}.newsmth-plus .ui-icon-close{background-position:-8rem -12.8rem}.newsmth-plus .ui-icon-closethick{background-position:-9.6rem -12.8rem}.newsmth-plus .ui-icon-key{background-position:-11.2rem -12.8rem}.newsmth-plus .ui-icon-lightbulb{background-position:-12.8rem -12.8rem}.newsmth-plus .ui-icon-scissors{background-position:-14.4rem -12.8rem}.newsmth-plus .ui-icon-clipboard{background-position:-16rem -12.8rem}.newsmth-plus .ui-icon-copy{background-position:-17.6rem -12.8rem}.newsmth-plus .ui-icon-contact{background-position:-19.2rem -12.8rem}.newsmth-plus .ui-icon-image{background-position:-20.8rem -12.8rem}.newsmth-plus .ui-icon-video{background-position:-22.4rem -12.8rem}.newsmth-plus .ui-icon-script{background-position:-24rem -12.8rem}.newsmth-plus .ui-icon-alert{background-position:0 -14.4rem}.newsmth-plus .ui-icon-info{background-position:-1.6rem -14.4rem}.newsmth-plus .ui-icon-notice{background-position:-3.2rem -14.4rem}.newsmth-plus .ui-icon-help{background-position:-4.8rem -14.4rem}.newsmth-plus .ui-icon-check{background-position:-6.4rem -14.4rem}.newsmth-plus .ui-icon-bullet{background-position:-8rem -14.4rem}.newsmth-plus .ui-icon-radio-off{background-position:-9.6rem -14.4rem}.newsmth-plus .ui-icon-radio-on{background-position:-11.2rem -14.4rem}.newsmth-plus .ui-icon-pin-w{background-position:-12.8rem -14.4rem}.newsmth-plus .ui-icon-pin-s{background-position:-14.4rem -14.4rem}.newsmth-plus .ui-icon-play{background-position:0 -16rem}.newsmth-plus .ui-icon-pause{background-position:-1.6rem -16rem}.newsmth-plus .ui-icon-seek-next{background-position:-3.2rem -16rem}.newsmth-plus .ui-icon-seek-prev{background-position:-4.8rem -16rem}.newsmth-plus .ui-icon-seek-end{background-position:-6.4rem -16rem}.newsmth-plus .ui-icon-seek-start,.newsmth-plus .ui-icon-seek-first{background-position:-8rem -16rem}.newsmth-plus .ui-icon-stop{background-position:-9.6rem -16rem}.newsmth-plus .ui-icon-eject{background-position:-11.2rem -16rem}.newsmth-plus .ui-icon-volume-off{background-position:-12.8rem -16rem}.newsmth-plus .ui-icon-volume-on{background-position:-14.4rem -16rem}.newsmth-plus .ui-icon-power{background-position:0 -17.6rem}.newsmth-plus .ui-icon-signal-diag{background-position:-1.6rem -17.6rem}.newsmth-plus .ui-icon-signal{background-position:-3.2rem -17.6rem}.newsmth-plus .ui-icon-battery-0{background-position:-4.8rem -17.6rem}.newsmth-plus .ui-icon-battery-1{background-position:-6.4rem -17.6rem}.newsmth-plus .ui-icon-battery-2{background-position:-8rem -17.6rem}.newsmth-plus .ui-icon-battery-3{background-position:-9.6rem -17.6rem}.newsmth-plus .ui-icon-circle-plus{background-position:0 -19.2rem}.newsmth-plus .ui-icon-circle-minus{background-position:-1.6rem -19.2rem}.newsmth-plus .ui-icon-circle-close{background-position:-3.2rem -19.2rem}.newsmth-plus .ui-icon-circle-triangle-e{background-position:-4.8rem -19.2rem}.newsmth-plus .ui-icon-circle-triangle-s{background-position:-6.4rem -19.2rem}.newsmth-plus .ui-icon-circle-triangle-w{background-position:-8rem -19.2rem}.newsmth-plus .ui-icon-circle-triangle-n{background-position:-9.6rem -19.2rem}.newsmth-plus .ui-icon-circle-arrow-e{background-position:-11.2rem -19.2rem}.newsmth-plus .ui-icon-circle-arrow-s{background-position:-12.8rem -19.2rem}.newsmth-plus .ui-icon-circle-arrow-w{background-position:-14.4rem -19.2rem}.newsmth-plus .ui-icon-circle-arrow-n{background-position:-16rem -19.2rem}.newsmth-plus .ui-icon-circle-zoomin{background-position:-17.6rem -19.2rem}.newsmth-plus .ui-icon-circle-zoomout{background-position:-19.2rem -19.2rem}.newsmth-plus .ui-icon-circle-check{background-position:-20.8rem -19.2rem}.newsmth-plus .ui-icon-circlesmall-plus{background-position:0 -20.8rem}.newsmth-plus .ui-icon-circlesmall-minus{background-position:-1.6rem -20.8rem}.newsmth-plus .ui-icon-circlesmall-close{background-position:-3.2rem -20.8rem}.newsmth-plus .ui-icon-squaresmall-plus{background-position:-4.8rem -20.8rem}.newsmth-plus .ui-icon-squaresmall-minus{background-position:-6.4rem -20.8rem}.newsmth-plus .ui-icon-squaresmall-close{background-position:-8rem -20.8rem}.newsmth-plus .ui-icon-grip-dotted-vertical{background-position:0 -22.4rem}.newsmth-plus .ui-icon-grip-dotted-horizontal{background-position:-1.6rem -22.4rem}.newsmth-plus .ui-icon-grip-solid-vertical{background-position:-3.2rem -22.4rem}.newsmth-plus .ui-icon-grip-solid-horizontal{background-position:-4.8rem -22.4rem}.newsmth-plus .ui-icon-gripsmall-diagonal-se{background-position:-6.4rem -22.4rem}.newsmth-plus .ui-icon-grip-diagonal-se{background-position:-8rem -22.4rem}.newsmth-plus .ui-corner-all,.newsmth-plus .ui-corner-top,.newsmth-plus .ui-corner-left,.newsmth-plus .ui-corner-tl{-moz-border-radius-topleft:.5rem;-webkit-border-top-left-radius:.5rem;-khtml-border-top-left-radius:.5rem;border-top-left-radius:.5rem}.newsmth-plus .ui-corner-all,.newsmth-plus .ui-corner-top,.newsmth-plus .ui-corner-right,.newsmth-plus .ui-corner-tr{-moz-border-radius-topright:.5rem;-webkit-border-top-right-radius:.5rem;-khtml-border-top-right-radius:.5rem;border-top-right-radius:.5rem}.newsmth-plus .ui-corner-all,.newsmth-plus .ui-corner-bottom,.newsmth-plus .ui-corner-left,.newsmth-plus .ui-corner-bl{-moz-border-radius-bottomleft:.5rem;-webkit-border-bottom-left-radius:.5rem;-khtml-border-bottom-left-radius:.5rem;border-bottom-left-radius:.5rem}.newsmth-plus .ui-corner-all,.newsmth-plus .ui-corner-bottom,.newsmth-plus .ui-corner-right,.newsmth-plus .ui-corner-br{-moz-border-radius-bottomright:.5rem;-webkit-border-bottom-right-radius:.5rem;-khtml-border-bottom-right-radius:.5rem;border-bottom-right-radius:.5rem}.newsmth-plus .ui-widget-shadow{margin:-.8rem 0 0 -.8rem;padding:.8rem;-moz-border-radius:.8rem;-khtml-border-radius:.8rem;-webkit-border-radius:.8rem;border-radius:.8rem}.newsmth-plus .ui-button-icon-only .ui-button-text,.newsmth-plus .ui-button-icons-only .ui-button-text{text-indent:-999999.9rem}.newsmth-plus .ui-button-icon-only .ui-icon,.newsmth-plus .ui-button-text-icon-primary .ui-icon,.newsmth-plus .ui-button-text-icon-secondary .ui-icon,.newsmth-plus .ui-button-text-icons .ui-icon,.newsmth-plus .ui-button-icons-only .ui-icon{margin-top:-.8rem}.newsmth-plus .ui-button-icon-only .ui-icon{margin-left:-.8rem}.newsmth-plus .ui-buttonset{margin-right:.7rem}.newsmth-plus .ui-dialog{width:30rem}.newsmth-plus .ui-dialog .ui-dialog-title{margin:.1em 1.6rem .1em 0}.newsmth-plus .ui-dialog .ui-dialog-titlebar-close{width:1.9rem;margin:-1rem 0 0;padding:.1rem;height:1.8rem}.newsmth-plus .ui-dialog .ui-dialog-titlebar-close span{margin:.1rem}.newsmth-plus .ui-dialog .ui-dialog-buttonpane{border-width:.1rem 0 0 0}.newsmth-plus .ui-dialog .ui-resizable-se{width:1.4rem;height:1.4rem;right:.3rem;bottom:.3rem}.newsmth-plus .ui-slider-vertical{height:10rem}.newsmth-plus .ui-datepicker .ui-datepicker-prev,.newsmth-plus .ui-datepicker .ui-datepicker-next{top:.2rem}.newsmth-plus .ui-datepicker .ui-datepicker-prev-hover,.newsmth-plus .ui-datepicker .ui-datepicker-next-hover{top:.1rem}.newsmth-plus .ui-datepicker .ui-datepicker-prev{left:.2rem}.newsmth-plus .ui-datepicker .ui-datepicker-next{right:.2rem}.newsmth-plus .ui-datepicker .ui-datepicker-prev-hover{left:.1rem}.newsmth-plus .ui-datepicker .ui-datepicker-next-hover{right:.1rem}.newsmth-plus .ui-datepicker .ui-datepicker-prev span,.newsmth-plus .ui-datepicker .ui-datepicker-next span{margin-left:-.8rem;margin-top:-.8rem}.newsmth-plus .ui-datepicker .ui-datepicker-title select{margin:.1rem 0}.newsmth-plus .ui-datepicker td{padding:.1rem}.newsmth-plus .ui-datepicker-rtl .ui-datepicker-prev{right:.2rem}.newsmth-plus .ui-datepicker-rtl .ui-datepicker-next{left:.2rem}.newsmth-plus .ui-datepicker-rtl .ui-datepicker-prev:hover{right:.1rem}.newsmth-plus .ui-datepicker-rtl .ui-datepicker-next:hover{left:.1rem}.newsmth-plus .ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.newsmth-plus .ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:.1rem}.newsmth-plus .ui-datepicker-cover{top:-.4rem;left:-.4rem;width:20rem;height:20rem}.newsmth-plus div.jp-audio,.newsmth-plus div.jp-audio-stream,.newsmth-plus div.jp-video{border:.1rem solid #009be3}.newsmth-plus div.jp-audio{width:62rem}.newsmth-plus div.jp-audio-stream{width:18.2rem}.newsmth-plus div.jp-video-270p{width:48rem}.newsmth-plus div.jp-video-360p{width:64rem}.newsmth-plus div.jp-video-full{width:48rem;height:27rem}.newsmth-plus div.jp-audio div.jp-type-single div.jp-interface{height:6rem}.newsmth-plus div.jp-audio div.jp-type-playlist div.jp-interface,.newsmth-plus div.jp-audio-stream div.jp-type-single div.jp-interface{height:8rem}.newsmth-plus div.jp-video div.jp-interface{border-top:.1rem solid #009be3}.newsmth-plus div.jp-controls-holder{width:44rem;top:-.8rem}.newsmth-plus div.jp-audio ul.jp-controls{width:58rem;padding:1rem 2rem 0}.newsmth-plus div.jp-audio-stream ul.jp-controls{width:14.2rem;padding:2rem 2rem 0}.newsmth-plus div.jp-video div.jp-type-single ul.jp-controls{width:7.8rem;margin-left:20rem}.newsmth-plus div.jp-video div.jp-type-playlist ul.jp-controls{width:13.4rem;margin-left:17.2rem}.newsmth-plus div.jp-interface ul.jp-controls a{text-indent:-999.9rem}.newsmth-plus a.jp-play,.newsmth-plus a.jp-pause{width:4rem;height:4rem}.newsmth-plus a.jp-stop,.newsmth-plus a.jp-previous,.newsmth-plus a.jp-next{width:2.8rem;height:2.8rem;margin-top:.6rem}.newsmth-plus a.jp-stop{margin-left:1rem}.newsmth-plus div.jp-audio div.jp-progress{top:1.6rem;height:1.5rem}.newsmth-plus div.jp-audio div.jp-type-single div.jp-progress{left:11rem;width:38.6rem}.newsmth-plus div.jp-audio div.jp-type-playlist div.jp-progress{left:16.6rem;width:13rem}.newsmth-plus div.jp-video div.jp-progress{height:1rem}.newsmth-plus a.jp-mute,.newsmth-plus a.jp-unmute,.newsmth-plus a.jp-volume-max{width:1.8rem;height:1.5rem;margin-top:1.2rem}.newsmth-plus div.jp-audio div.jp-type-single a.jp-mute,.newsmth-plus div.jp-audio div.jp-type-single a.jp-unmute{margin-left:41rem}.newsmth-plus div.jp-audio div.jp-type-playlist a.jp-mute,.newsmth-plus div.jp-audio div.jp-type-playlist a.jp-unmute{margin-left:15.4rem}.newsmth-plus div.jp-audio-stream div.jp-type-single a.jp-mute,.newsmth-plus div.jp-audio-stream div.jp-type-single a.jp-unmute{margin-left:1rem}.newsmth-plus div.jp-audio a.jp-volume-max,.newsmth-plus div.jp-audio-stream a.jp-volume-max{margin-left:5.6rem}.newsmth-plus div.jp-video a.jp-mute,.newsmth-plus div.jp-video a.jp-unmute,.newsmth-plus div.jp-video a.jp-volume-max{top:1.2rem}.newsmth-plus div.jp-video a.jp-mute,.newsmth-plus div.jp-video a.jp-unmute{left:5rem}.newsmth-plus div.jp-video a.jp-volume-max{left:13.4rem}.newsmth-plus div.jp-volume-bar{width:4.6rem;height:.5rem}.newsmth-plus div.jp-audio div.jp-volume-bar{top:2.7rem;left:53rem}.newsmth-plus div.jp-audio-stream div.jp-volume-bar{top:3.7rem;left:9.2rem}.newsmth-plus div.jp-video div.jp-volume-bar{top:1.7rem;left:7.2rem}.newsmth-plus div.jp-volume-bar-value{height:.5rem}.newsmth-plus div.jp-audio div.jp-time-holder{top:3.4rem}.newsmth-plus div.jp-audio div.jp-type-single div.jp-time-holder{left:11rem;width:38.6rem}.newsmth-plus div.jp-audio div.jp-type-playlist div.jp-time-holder{left:16.6rem;width:13rem}.newsmth-plus div.jp-current-time,.newsmth-plus div.jp-duration{width:6rem}.newsmth-plus div.jp-video div.jp-current-time{margin-left:2rem}.newsmth-plus div.jp-video div.jp-duration{margin-right:2rem}.newsmth-plus div.jp-title,.newsmth-plus div.jp-playlist{border-top:.1rem solid #009be3}.newsmth-plus div.jp-title ul,.newsmth-plus div.jp-playlist ul{padding:0 2rem}.newsmth-plus div.jp-title li{padding:.5rem 0}.newsmth-plus div.jp-playlist li{padding:.5rem 0 .4rem 2rem;border-bottom:.1rem solid #eee}.newsmth-plus div.jp-type-playlist div.jp-playlist li:last-child{padding:.5rem 0 .5rem 2rem}.newsmth-plus div.jp-type-playlist div.jp-playlist li.jp-playlist-current{padding-left:.7rem}.newsmth-plus div.jp-type-playlist div.jp-playlist a.jp-playlist-item-remove,.newsmth-plus div.jp-type-playlist div.jp-playlist span.jp-free-media{margin-right:1rem}.newsmth-plus div.jp-video-270p div.jp-video-play{margin-top:-27rem;height:27rem}.newsmth-plus div.jp-video-360p div.jp-video-play{margin-top:-36rem;height:36rem}.newsmth-plus a.jp-video-play-icon{width:11.2rem;height:10rem;margin-left:-5.6rem;margin-top:-5rem;text-indent:-999.9rem}.newsmth-plus div.jp-audio .jp-type-single ul.jp-toggles{width:2.5rem}.newsmth-plus div.jp-audio .jp-type-playlist ul.jp-toggles{width:5.5rem;left:32.5rem;top:5rem}.newsmth-plus div.jp-video ul.jp-toggles{margin-top:1rem;width:10rem}.newsmth-plus ul.jp-toggles li a{width:2.5rem;height:1.8rem;text-indent:-999.9rem}.newsmth-plus a.jp-full-screen,.newsmth-plus a.jp-restore-screen{margin-left:2rem}.newsmth-plus a.jp-shuffle,.newsmth-plus a.jp-shuffle-off{margin-left:.5rem}.newsmth-plus .jp-no-solution{padding:.5rem;border:.2rem solid #009be3}.newsmth-plus #ubb_wrap .ubb-icon{margin-top:.3rem}.newsmth-plus .ubb-img-tab{padding:.3rem}.newsmth-plus .ubb-img-tab li{margin-left:.1rem;width:7rem;line-height:2rem;border:.1rem solid #598edd;padding:.1rem}.newsmth-plus .ubb-img-tab li div{font-size:1.4rem}.newsmth-plus .ubb-img{margin:.3rem;padding:.3rem;border:.1rem solid #598edd}.newsmth-plus .ubb-img img{margin:.2rem}.newsmth-plus #map_area{font-size:1.4rem}.newsmth-plus #map_canvas{height:40rem}.newsmth-plus #map_func{padding-top:1rem}.newsmth-plus #map_insert{margin-top:.5rem}.newsmth-plus .map-map{width:60rem;height:40rem}html body.newsmth-plus{font-size:1.3rem;line-height:unset;padding-top:0!important}.newsmth-plus #top10 ul li div{font-size:1.4rem}.newsmth-plus,.newsmth-plus *{max-width:100%!important}.newsmth-plus #ban_ner{display:none}.newsmth-plus #slider{height:unset;width:unset}.newsmth-plus #slider div.preview{text-align:center;float:unset}.newsmth-plus #slider div.pic{float:unset;text-align:center}.newsmth-plus #slider div.preview a{display:unset}.newsmth-plus #slider div.preview a img{width:30%;height:unset}.newsmth-plus .u-title-1{width:unset;padding-left:unset}.newsmth-plus .search ul li{height:unset}.newsmth-plus #top10{background-size:.4rem 2.9rem}.newsmth-plus .block h3{background-size:.1rem 3.7rem}.newsmth-plus #ranking ul{background-size:1.5rem 28rem}.newsmth-plus #ranking div h4{background-size:2.5rem 15rem}.newsmth-plus #top10 ul li{background-size:.9rem 2.5rem}.newsmth-plus #top10 h3{background-size:15.7rem 3.1rem}.newsmth-plus samp,.newsmth-plus .toggler{background-size:47.3rem 4.1rem}.newsmth-plus .ui-widget-content{background-size:.1rem 10rem}.newsmth-plus .ui-widget-header{background-size:50rem 10rem}.newsmth-plus .ui-state-default,.newsmth-plus .ui-state-hover,.newsmth-plus .ui-state-focus{background-size:1rem 40rem}.newsmth-plus .ui-state-active{background-size:1rem 10rem}.newsmth-plus .ui-state-highlight{background-size:4rem 100rem}.newsmth-plus .ui-state-error{background-size:.1rem 40rem}.newsmth-plus .ui-icon{background-size:25.6rem 24rem}.newsmth-plus .ui-widget-overlay,.newsmth-plus .ui-widget-shadow{background-size:4rem 10rem}.newsmth-plus a.jp-play,.newsmth-plus a.jp-pause,.newsmth-plus a.jp-stop,.newsmth-plus a.jp-previous,.newsmth-plus a.jp-next,.newsmth-plus div.jp-seek-bar,.newsmth-plus div.jp-play-bar,.newsmth-plus a.jp-mute,.newsmth-plus a.jp-unmute,.newsmth-plus a.jp-volume-max,.newsmth-plus div.jp-volume-bar,.newsmth-plus div.jp-volume-bar-value,.newsmth-plus a.jp-full-screen,.newsmth-plus a.jp-full-screen:hover,.newsmth-plus a.jp-restore-screen,.newsmth-plus a.jp-repeat,.newsmth-plus a.jp-repeat-off,.newsmth-plus a.jp-shuffle,.newsmth-plus a.jp-shuffle-off{background-size:20rem 40rem}.newsmth-plus div.jp-seeking-bg{background-size:4.8rem 2.2rem}.newsmth-plus #main{margin:.2rem .3rem;padding:unset}.newsmth-plus .pagination li{line-height:2}.newsmth-plus .b-content{padding:unset}.newsmth-plus #bot_foot{width:unset}.newsmth-plus .a-left{display:none}.newsmth-plus .a-func{float:unset;font-size:unset}.newsmth-plus .a-u-name{float:none;margin-left:unset}.newsmth-plus .a-u-sex{float:unset;margin-right:unset}.newsmth-plus #body .likes{margin:unset}.newsmth-plus .board-list td.title_12{text-align:center}.newsmth-plus .u-detail dd,.newsmth-plus .u-info dd{width:unset}.ad,.adsbygoogle,.adsbygoogle-noablate,.full_ad,#botadv_slider,iframe,#ban_ner,#left_adv,#sogou_banner{display:none!important}.newsmth-plus .a-func li{margin-left:unset}.newsmth-plus .a-func li samp{margin-right:unset;margin-left:1rem}.newsmth-plus samp.ico-pos-hide{display:none}.newsmth-plus #xlist>ul>li:last-child span.leaf{display:none}.newsmth-plus span.new_mail{position:absolute;right:-2rem}.newsmth-plus .display span.new_mail{right:unset}.newsmth-plus .board-list .title_3{display:none}.newsmth-plus #mp_wrapper .mp_left,.newsmth-plus #mp_wrapper .mp_right{float:none}.newsmth-plus #mp_wrapper>#hotspot,.newsmth-plus #mp_wrapper .b_section .topics ul,.newsmth-plus #mp_wrapper #ranking{height:auto}.newsmth-plus #body .b_sectop10{width:auto}.newsmth-plus #body #top10{width:auto;height:auto}.newsmth-plus #mp_wrapper .b_recommend,.newsmth-plus #mp_wrapper .b_recommend p{height:unset;width:unset}.newsmth-plus .b_recommend span.more{margin-top:unset}.newsmth-plus #hotspot>#events_slider>.events_show,.newsmth-plus #mp_wrapper>#hotspot>.acts,.newsmth-plus #mp_wrapper #hotspot .topics{float:none;width:unset;height:unset}.newsmth-plus #mp_wrapper #hotspot .topics p.textad{display:none}.newsmth-plus #mp_wrapper #hotspot .topics ul li div{height:unset;width:unset}.newsmth-plus #mp_wrapper .b_section{width:unset;margin-bottom:auto;padding-bottom:.3rem}.newsmth-plus #mp_wrapper #ranking .boards,.newsmth-plus #ranking a.board{width:auto}.newsmth-plus #ranking .hot_boards{border-left:unset;border-right:unset}.newsmth-plus #bot_foot{width:auto}.newsmth-plus .title_1,.newsmth-plus .title_2,.newsmth-plus .title_3,.newsmth-plus .title_4,.newsmth-plus .title_5,.newsmth-plus .title_6,.newsmth-plus .title_7,.newsmth-plus .title_8,.newsmth-plus .title_9,.newsmth-plus .title_16{padding-left:0;width:unset}.newsmth-plus .t-pre-bottom{margin-bottom:2rem}.newsmth-plus #body .board-list .threads-tab{font-weight:unset}.newsmth-plus .a-bottom{display:none}.newsmth-plus .ui-dialog{position:fixed;top:50%!important;left:50%!important;transform:translate(-50%,-50%);max-height:100%;overflow-y:auto}body.newsmth-plus #bot_logo img{margin-right:unset;border-right:unset;padding-right:unset}.newsmth-plus .t-btn a{height:unset}.newsmth-plus #upload_info{position:unset;display:block}.newsmth-plus #post_form .post-su .button{margin-left:2rem;margin-right:2rem}.newsmth-plus #nforum_tips{font-size:2rem}.newsmth-plus #main_area_top_block{height:unset}.newsmth-plus #top10{margin-top:0}#quick_text{width:96%}.newsmth-plus .ubb-img-tab li{width:22%}.newsmth-plus .mbar{display:none}.newsmth-plus .m-table .title_1{width:3rem;text-align:center}.newsmth-plus .m-table td.title_4{width:8rem}html{-webkit-filter:unset!important;filter:unset!important;-moz-filter:unset!important;-ms-filter:unset!important;-o-filter:unset!important}.single-line{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.simple img.resizeable{width:unset!important}.simple font.f006{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.simple font.f006~br,.simple font.f006~font.f006{display:none}.article p.simple{display:none}.article.simple-article p.simple{display:unset}.simple-article .origin,.modifier-hide{display:none}.simple img{min-width:5rem;min-height:5rem}.title_9 a[read]:after{content:attr(read);color:#666}.modifier label,#setting label{margin:.3rem .5rem;display:inline-block}.positive{color:green}.negative{color:red}#setting hr{clear:both;height:.1rem}#setting br{margin:.1rem;clear:both}#setting button{margin:0 .5rem}#setting input[type=checkbox]{vertical-align:baseline}body.newsmth-plus div.jp-audio div.jp-type-single div.jp-progress,body.newsmth-plus div.jp-audio div.jp-type-single div.jp-time-holder{width:50%}body.newsmth-plus .jp-current-time,body.newsmth-plus .jp-duration{width:unset}.newsmth-plus a.jp-play:hover{background-position:-4.1rem 0}.newsmth-plus a.jp-pause{background-position:0 -4.2rem}.newsmth-plus a.jp-pause:hover{background-position:-4.1rem -4.2rem}.newsmth-plus a.jp-stop{background-position:0 -8.3rem}.newsmth-plus a.jp-stop:hover{background-position:-2.9rem -8.3rem}.newsmth-plus a.jp-previous{background-position:0 -11.2rem}.newsmth-plus a.jp-previous:hover{background-position:-2.9rem -11.2rem}.newsmth-plus a.jp-next{background-position:0 -14.1rem}.newsmth-plus a.jp-next:hover{background-position:-2.9rem -14.1rem}div.jp-seek-bar{background-position:0 -20.2rem;background-repeat:repeat-x}div.jp-play-bar{background-position:0 -21.8rem;background-repeat:repeat-x}.newsmth-plus a.jp-mute{background-position:0 -17rem}.newsmth-plus a.jp-mute:hover{background-position:-1.9rem -17rem}.newsmth-plus a.jp-unmute{background-position:-6rem -17rem}.newsmth-plus a.jp-unmute:hover{background-position:-7.9rem -17rem}.newsmth-plus a.jp-volume-max{background-position:0 -18.6rem}.newsmth-plus a.jp-volume-max:hover{background-position:-1.9rem -18.6rem}div.jp-volume-bar{background-position:0 -25rem;background-repeat:repeat-x}div.jp-volume-bar-value{background-position:0 -25.6rem;background-repeat:repeat-x}.newsmth-plus a.jp-video-play-icon{background-position:0 0}div.jp-video-play:hover a.jp-video-play-icon{background-position:0 -10rem}.newsmth-plus a.jp-full-screen{background-position:0 -31rem}.newsmth-plus a.jp-full-screen:hover{background-position:-3rem -31rem}.newsmth-plus a.jp-restore-screen{background-position:-6rem -31rem}.newsmth-plus a.jp-restore-screen:hover{background-position:-9rem -31rem}.newsmth-plus a.jp-repeat{background-position:0 -29rem}.newsmth-plus a.jp-repeat:hover{background-position:-3rem -29rem}.newsmth-plus a.jp-repeat-off{background-position:-6rem -29rem}.newsmth-plus a.jp-repeat-off:hover{background-position:-9rem -29rem}.newsmth-plus a.jp-shuffle{background-position:0 -27rem}.newsmth-plus a.jp-shuffle:hover{background-position:-3rem -27rem}.newsmth-plus a.jp-shuffle-off{background-position:-6rem -27rem}.newsmth-plus a.jp-shuffle-off:hover{background-position:-9rem -27rem}body.newsmth-plus #menu{float:unset;background-color:#f0f8ff;position:fixed;margin:.2rem 0 0;z-index:100;bottom:0rem;left:0;transform:translate(-100%);max-height:100%;-webkit-transition:transform .4s;transition:transform .4s}.newsmth-plus #menu.display{transform:unset}.newsmth-plus #menu .ico-pos-manage{background-position:-25.5rem -2rem}#menu .ico-pos-manage{background-position:-255px -20px}.newsmth-plus #menu .x-folder a,.newsmth-plus #menu .x-leaf a{line-height:2.8rem}#menu .x-folder a,#menu .x-leaf a{line-height:2.8rem;padding-top:unset}.newsmth-plus .x-child a{line-height:1.2em}#menu .toggler{position:relative;top:50%;transform:translateY(-50%);margin-top:unset}body.newsmth-plus #xlist{overflow-y:auto;padding:1rem .8rem 0;border-bottom-width:0;border-radius:.4rem .4rem 0 0}.newsmth-plus #xlist-menu{padding:0 .8rem .1rem;border:solid #c3d9ff;border-radius:0 0 .4rem .4rem;border-width:.1rem .1rem .1rem .1rem}.newsmth-plus #xlist-menu .x-leaf{border-bottom:unset}p[data-v-514dd0cc]{background-image:repeating-radial-gradient(lightgray,transparent 5rem)}input[type=checkbox][data-v-14f5caff]{display:none}.checked[data-v-14f5caff]{background-color:#d3d3d3}#smth_mark_id_panel[data-v-a92edd2d]{position:fixed;bottom:0;background-color:#f0f8ff;right:-100%;width:100%;overflow-y:scroll;z-index:3;-webkit-transition:right .5s;transition:right .5s}.border[data-v-a92edd2d]{border:double;padding:.5rem 1rem;margin:1rem 0}.search[data-v-a92edd2d]{position:fixed;bottom:0}slide-right-enter[data-v-a92edd2d],#smth_mark_id_panel.display[data-v-a92edd2d]{right:0%}.ico-pos-switch[data-v-17437468]{background-position:-21.2rem -.2rem}.modifier[data-v-b2f5116b]{margin:1rem .5rem}.commonTags[data-v-b2f5116b]:before{content:"\\5e38\\7528\\6807\\7b7e:"}dialog button[data-v-42e87b65]{float:right}#setting[data-v-1099926b]{position:fixed;left:0;right:0;top:0;margin:auto;background-color:#f3f5fc;padding:1rem;z-index:101;height:100%;overflow:scroll}#smth_version[data-v-1099926b]{float:right;color:gray}.button[data-v-1099926b]{background-color:#4caf50;border:none;color:#fff;padding:.4rem 1.2rem;margin:.5rem;text-align:center;text-decoration:none;font-size:1.2rem;float:right}
`,document.head.appendChild(Ke);class Se{constructor(){Ge(this,"m",0);Ge(this,"u",0)}save(){return this.m=Date.now(),it.save(this)}}class Pe extends Se{constructor(t,n="",r=[]){super(),this.articleUri=t,this.id=n,this.content=r}addContent(t){this.content.includes(t)||(this.content.push(t),this.save())}}class Kr extends Se{constructor(t,n="",r={}){super(),this.articleUri=t,this.id=n,this.tags=r}del(t){delete this.tags[t],this.save()}modify(t,n){Object.prototype.hasOwnProperty.call(this.tags,t)||(this.tags[t]=0),this.tags[t]+=n,this.save()}}class rr extends Se{constructor(t,n={}){super(),this.id=t,this.IPs=n}addIp(t){Object.prototype.hasOwnProperty.call(this.IPs,t)||(this.IPs[t]=0),this.IPs[t]+=1,this.save()}}class Xr extends Se{constructor(t,n=1,r=-1,s=0){super(),this.topicUri=t,this.p=n,this.pos=r,this.scrollY=s}update(t){Object.assign(this,t),this.save()}}class On extends Se{constructor(t,n){super(),this.imgUri=t,this.imgBlob=n,n&&this.checkBlob(n)}addImgData(t){this.imgBlob||(this.checkBlob(t),this.imgBlob=t,this.save())}checkBlob(t){if(!t.type.startsWith("image/"))throw new Error("data is not type of image")}}function $t(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return t?s=>!!n[s.toLowerCase()]:s=>!!n[s]}function ot(e){if(he(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=Fe(r)?ka(r):ot(r);if(s)for(const i in s)t[i]=s[i]}return t}else{if(Fe(e))return e;if(Re(e))return e}}const Cn=/;(?![^(]*\))/g,ya=/:([^]+)/,va=new RegExp("\\/\\*.*?\\*\\/","gs");function ka(e){const t={};return e.replace(va,"").split(Cn).forEach(n=>{if(n){const r=n.split(ya);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function tt(e){let t="";if(Fe(e))t=e;else if(he(e))for(let n=0;n<e.length;n++){const r=tt(e[n]);r&&(t+=r+" ")}else if(Re(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function xa(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Fe(t)&&(e.class=tt(t)),n&&(e.style=ot(n)),e}const Ea=$t("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function rs(e){return!!e||e===""}function Sa(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Dn(e[r],t[r]);return n}function Dn(e,t){if(e===t)return!0;let n=ss(e),r=ss(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Rn(e),r=Rn(t),n||r)return e===t;if(n=he(e),r=he(t),n||r)return n&&r?Sa(e,t):!1;if(n=Re(e),r=Re(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const a in e){const o=e.hasOwnProperty(a),c=t.hasOwnProperty(a);if(o&&!c||!o&&c||!Dn(e[a],t[a]))return!1}}return String(e)===String(t)}function Wr(e,t){return e.findIndex(n=>Dn(n,t))}const He=e=>Fe(e)?e:e==null?"":he(e)||Re(e)&&(e.toString===os||!be(e.toString))?JSON.stringify(e,is,2):String(e),is=(e,t)=>t&&t.__v_isRef?is(e,t.value):nn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:rn(t)?{[`Set(${t.size})`]:[...t.values()]}:Re(t)&&!he(t)&&!as(t)?String(t):t,De={},tn=[],ht=()=>{},Ia=()=>!1,Ta=/^on[^a-z]/,ir=e=>Ta.test(e),qr=e=>e.startsWith("onUpdate:"),qe=Object.assign,Vr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Aa=Object.prototype.hasOwnProperty,Ee=(e,t)=>Aa.call(e,t),he=Array.isArray,nn=e=>Bn(e)==="[object Map]",rn=e=>Bn(e)==="[object Set]",ss=e=>Bn(e)==="[object Date]",be=e=>typeof e=="function",Fe=e=>typeof e=="string",Rn=e=>typeof e=="symbol",Re=e=>e!==null&&typeof e=="object",Yr=e=>Re(e)&&be(e.then)&&be(e.catch),os=Object.prototype.toString,Bn=e=>os.call(e),Oa=e=>Bn(e).slice(8,-1),as=e=>Bn(e)==="[object Object]",Zr=e=>Fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,sr=$t(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),or=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ca=/-(\w)/g,sn=or(e=>e.replace(Ca,(t,n)=>n?n.toUpperCase():"")),Da=/\B([A-Z])/g,on=or(e=>e.replace(Da,"-$1").toLowerCase()),ls=or(e=>e.charAt(0).toUpperCase()+e.slice(1)),Jr=or(e=>e?`on${ls(e)}`:""),jn=(e,t)=>!Object.is(e,t),ar=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},lr=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ur=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ra=e=>{const t=Fe(e)?Number(e):NaN;return isNaN(t)?e:t};let us;const Ba=()=>us||(us=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let nt;class cs{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=nt,!t&&nt&&(this.index=(nt.scopes||(nt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=nt;try{return nt=this,t()}finally{nt=n}}}on(){nt=this}off(){nt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function ds(e){return new cs(e)}function ja(e,t=nt){t&&t.active&&t.effects.push(e)}function hs(){return nt}function Na(e){nt&&nt.cleanups.push(e)}const Qr=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ps=e=>(e.w&Ot)>0,fs=e=>(e.n&Ot)>0,Ua=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ot},Pa=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const s=t[r];ps(s)&&!fs(s)?s.delete(e):t[n++]=s,s.w&=~Ot,s.n&=~Ot}t.length=n}},cr=new WeakMap;let Nn=0,Ot=1;const ei=30;let pt;const Kt=Symbol(""),ti=Symbol("");class ni{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,ja(this,r)}run(){if(!this.active)return this.fn();let t=pt,n=Ct;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=pt,pt=this,Ct=!0,Ot=1<<++Nn,Nn<=ei?Ua(this):ms(this),this.fn()}finally{Nn<=ei&&Pa(this),Ot=1<<--Nn,pt=this.parent,Ct=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){pt===this?this.deferStop=!0:this.active&&(ms(this),this.onStop&&this.onStop(),this.active=!1)}}function ms(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Ct=!0;const gs=[];function an(){gs.push(Ct),Ct=!1}function ln(){const e=gs.pop();Ct=e===void 0?!0:e}function Ze(e,t,n){if(Ct&&pt){let r=cr.get(e);r||cr.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=Qr()),_s(s)}}function _s(e,t){let n=!1;Nn<=ei?fs(e)||(e.n|=Ot,n=!ps(e)):n=!e.has(pt),n&&(e.add(pt),pt.deps.push(e))}function kt(e,t,n,r,s,i){const a=cr.get(e);if(!a)return;let o=[];if(t==="clear")o=[...a.values()];else if(n==="length"&&he(e)){const c=Number(r);a.forEach((h,f)=>{(f==="length"||f>=c)&&o.push(h)})}else switch(n!==void 0&&o.push(a.get(n)),t){case"add":he(e)?Zr(n)&&o.push(a.get("length")):(o.push(a.get(Kt)),nn(e)&&o.push(a.get(ti)));break;case"delete":he(e)||(o.push(a.get(Kt)),nn(e)&&o.push(a.get(ti)));break;case"set":nn(e)&&o.push(a.get(Kt));break}if(o.length===1)o[0]&&ri(o[0]);else{const c=[];for(const h of o)h&&c.push(...h);ri(Qr(c))}}function ri(e,t){const n=he(e)?e:[...e];for(const r of n)r.computed&&bs(r);for(const r of n)r.computed||bs(r)}function bs(e,t){(e!==pt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Fa(e,t){var n;return(n=cr.get(e))===null||n===void 0?void 0:n.get(t)}const Ma=$t("__proto__,__v_isRef,__isVue"),ws=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Rn)),La=ii(),za=ii(!1,!0),Ha=ii(!0),ys=Ga();function Ga(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=ke(this);for(let i=0,a=this.length;i<a;i++)Ze(r,"get",i+"");const s=r[t](...n);return s===-1||s===!1?r[t](...n.map(ke)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){an();const r=ke(this)[t].apply(this,n);return ln(),r}}),e}function $a(e){const t=ke(this);return Ze(t,"has",e),t.hasOwnProperty(e)}function ii(e=!1,t=!1){return function(r,s,i){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&i===(e?t?ol:Os:t?As:Ts).get(r))return r;const a=he(r);if(!e){if(a&&Ee(ys,s))return Reflect.get(ys,s,i);if(s==="hasOwnProperty")return $a}const o=Reflect.get(r,s,i);return(Rn(s)?ws.has(s):Ma(s))||(e||Ze(r,"get",s),t)?o:Me(o)?a&&Zr(s)?o:o.value:Re(o)?e?Cs(o):bt(o):o}}const Ka=vs(),Xa=vs(!0);function vs(e=!1){return function(n,r,s,i){let a=n[r];if(un(a)&&Me(a)&&!Me(s))return!1;if(!e&&(!_r(s)&&!un(s)&&(a=ke(a),s=ke(s)),!he(n)&&Me(a)&&!Me(s)))return a.value=s,!0;const o=he(n)&&Zr(r)?Number(r)<n.length:Ee(n,r),c=Reflect.set(n,r,s,i);return n===ke(i)&&(o?jn(s,a)&&kt(n,"set",r,s):kt(n,"add",r,s)),c}}function Wa(e,t){const n=Ee(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&kt(e,"delete",t,void 0),r}function qa(e,t){const n=Reflect.has(e,t);return(!Rn(t)||!ws.has(t))&&Ze(e,"has",t),n}function Va(e){return Ze(e,"iterate",he(e)?"length":Kt),Reflect.ownKeys(e)}const ks={get:La,set:Ka,deleteProperty:Wa,has:qa,ownKeys:Va},Ya={get:Ha,set(e,t){return!0},deleteProperty(e,t){return!0}},Za=qe({},ks,{get:za,set:Xa}),si=e=>e,dr=e=>Reflect.getPrototypeOf(e);function hr(e,t,n=!1,r=!1){e=e.__v_raw;const s=ke(e),i=ke(t);n||(t!==i&&Ze(s,"get",t),Ze(s,"get",i));const{has:a}=dr(s),o=r?si:n?li:Un;if(a.call(s,t))return o(e.get(t));if(a.call(s,i))return o(e.get(i));e!==s&&e.get(t)}function pr(e,t=!1){const n=this.__v_raw,r=ke(n),s=ke(e);return t||(e!==s&&Ze(r,"has",e),Ze(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function fr(e,t=!1){return e=e.__v_raw,!t&&Ze(ke(e),"iterate",Kt),Reflect.get(e,"size",e)}function xs(e){e=ke(e);const t=ke(this);return dr(t).has.call(t,e)||(t.add(e),kt(t,"add",e,e)),this}function Es(e,t){t=ke(t);const n=ke(this),{has:r,get:s}=dr(n);let i=r.call(n,e);i||(e=ke(e),i=r.call(n,e));const a=s.call(n,e);return n.set(e,t),i?jn(t,a)&&kt(n,"set",e,t):kt(n,"add",e,t),this}function Ss(e){const t=ke(this),{has:n,get:r}=dr(t);let s=n.call(t,e);s||(e=ke(e),s=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return s&&kt(t,"delete",e,void 0),i}function Is(){const e=ke(this),t=e.size!==0,n=e.clear();return t&&kt(e,"clear",void 0,void 0),n}function mr(e,t){return function(r,s){const i=this,a=i.__v_raw,o=ke(a),c=t?si:e?li:Un;return!e&&Ze(o,"iterate",Kt),a.forEach((h,f)=>r.call(s,c(h),c(f),i))}}function gr(e,t,n){return function(...r){const s=this.__v_raw,i=ke(s),a=nn(i),o=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,h=s[e](...r),f=n?si:t?li:Un;return!t&&Ze(i,"iterate",c?ti:Kt),{next(){const{value:_,done:w}=h.next();return w?{value:_,done:w}:{value:o?[f(_[0]),f(_[1])]:f(_),done:w}},[Symbol.iterator](){return this}}}}function Dt(e){return function(...t){return e==="delete"?!1:this}}function Ja(){const e={get(i){return hr(this,i)},get size(){return fr(this)},has:pr,add:xs,set:Es,delete:Ss,clear:Is,forEach:mr(!1,!1)},t={get(i){return hr(this,i,!1,!0)},get size(){return fr(this)},has:pr,add:xs,set:Es,delete:Ss,clear:Is,forEach:mr(!1,!0)},n={get(i){return hr(this,i,!0)},get size(){return fr(this,!0)},has(i){return pr.call(this,i,!0)},add:Dt("add"),set:Dt("set"),delete:Dt("delete"),clear:Dt("clear"),forEach:mr(!0,!1)},r={get(i){return hr(this,i,!0,!0)},get size(){return fr(this,!0)},has(i){return pr.call(this,i,!0)},add:Dt("add"),set:Dt("set"),delete:Dt("delete"),clear:Dt("clear"),forEach:mr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=gr(i,!1,!1),n[i]=gr(i,!0,!1),t[i]=gr(i,!1,!0),r[i]=gr(i,!0,!0)}),[e,n,t,r]}const[Qa,el,tl,nl]=Ja();function oi(e,t){const n=t?e?nl:tl:e?el:Qa;return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(Ee(n,s)&&s in r?n:r,s,i)}const rl={get:oi(!1,!1)},il={get:oi(!1,!0)},sl={get:oi(!0,!1)},Ts=new WeakMap,As=new WeakMap,Os=new WeakMap,ol=new WeakMap;function al(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ll(e){return e.__v_skip||!Object.isExtensible(e)?0:al(Oa(e))}function bt(e){return un(e)?e:ai(e,!1,ks,rl,Ts)}function ul(e){return ai(e,!1,Za,il,As)}function Cs(e){return ai(e,!0,Ya,sl,Os)}function ai(e,t,n,r,s){if(!Re(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const a=ll(e);if(a===0)return e;const o=new Proxy(e,a===2?r:n);return s.set(e,o),o}function Rt(e){return un(e)?Rt(e.__v_raw):!!(e&&e.__v_isReactive)}function un(e){return!!(e&&e.__v_isReadonly)}function _r(e){return!!(e&&e.__v_isShallow)}function Ds(e){return Rt(e)||un(e)}function ke(e){const t=e&&e.__v_raw;return t?ke(t):e}function cn(e){return lr(e,"__v_skip",!0),e}const Un=e=>Re(e)?bt(e):e,li=e=>Re(e)?Cs(e):e;function Rs(e){Ct&&pt&&(e=ke(e),_s(e.dep||(e.dep=Qr())))}function Bs(e,t){e=ke(e);const n=e.dep;n&&ri(n)}function Me(e){return!!(e&&e.__v_isRef===!0)}function Xe(e){return cl(e,!1)}function cl(e,t){return Me(e)?e:new dl(e,t)}class dl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ke(t),this._value=n?t:Un(t)}get value(){return Rs(this),this._value}set value(t){const n=this.__v_isShallow||_r(t)||un(t);t=n?t:ke(t),jn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Un(t),Bs(this))}}function ye(e){return Me(e)?e.value:e}const hl={get:(e,t,n)=>ye(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Me(s)&&!Me(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function js(e){return Rt(e)?e:new Proxy(e,hl)}function pl(e){const t=he(e)?new Array(e.length):{};for(const n in e)t[n]=ml(e,n);return t}class fl{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Fa(ke(this._object),this._key)}}function ml(e,t,n){const r=e[t];return Me(r)?r:new fl(e,t,n)}var Ns;class gl{constructor(t,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[Ns]=!1,this._dirty=!0,this.effect=new ni(t,()=>{this._dirty||(this._dirty=!0,Bs(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=ke(this);return Rs(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}Ns="__v_isReadonly";function _l(e,t,n=!1){let r,s;const i=be(e);return i?(r=e,s=ht):(r=e.get,s=e.set),new gl(r,s,i||!s,n)}function Qh(e,...t){}function Bt(e,t,n,r){let s;try{s=r?e(...r):e()}catch(i){Pn(i,t,n)}return s}function ft(e,t,n,r){if(be(e)){const i=Bt(e,t,n,r);return i&&Yr(i)&&i.catch(a=>{Pn(a,t,n)}),i}const s=[];for(let i=0;i<e.length;i++)s.push(ft(e[i],t,n,r));return s}function Pn(e,t,n,r=!0){const s=t?t.vnode:null;if(t){let i=t.parent;const a=t.proxy,o=n;for(;i;){const h=i.ec;if(h){for(let f=0;f<h.length;f++)if(h[f](e,a,o)===!1)return}i=i.parent}const c=t.appContext.config.errorHandler;if(c){Bt(c,null,10,[e,a,o]);return}}bl(e,n,s,r)}function bl(e,t,n,r=!0){console.error(e)}let Fn=!1,ui=!1;const We=[];let wt=0;const dn=[];let xt=null,Xt=0;const Us=Promise.resolve();let ci=null;function Ps(e){const t=ci||Us;return e?t.then(this?e.bind(this):e):t}function wl(e){let t=wt+1,n=We.length;for(;t<n;){const r=t+n>>>1;Mn(We[r])<e?t=r+1:n=r}return t}function di(e){(!We.length||!We.includes(e,Fn&&e.allowRecurse?wt+1:wt))&&(e.id==null?We.push(e):We.splice(wl(e.id),0,e),Fs())}function Fs(){!Fn&&!ui&&(ui=!0,ci=Us.then(Hs))}function yl(e){const t=We.indexOf(e);t>wt&&We.splice(t,1)}function Ms(e){he(e)?dn.push(...e):(!xt||!xt.includes(e,e.allowRecurse?Xt+1:Xt))&&dn.push(e),Fs()}function Ls(e,t=Fn?wt+1:0){for(;t<We.length;t++){const n=We[t];n&&n.pre&&(We.splice(t,1),t--,n())}}function zs(e){if(dn.length){const t=[...new Set(dn)];if(dn.length=0,xt){xt.push(...t);return}for(xt=t,xt.sort((n,r)=>Mn(n)-Mn(r)),Xt=0;Xt<xt.length;Xt++)xt[Xt]();xt=null,Xt=0}}const Mn=e=>e.id==null?1/0:e.id,vl=(e,t)=>{const n=Mn(e)-Mn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Hs(e){ui=!1,Fn=!0,We.sort(vl);const t=ht;try{for(wt=0;wt<We.length;wt++){const n=We[wt];n&&n.active!==!1&&Bt(n,null,14)}}finally{wt=0,We.length=0,zs(),Fn=!1,ci=null,(We.length||dn.length)&&Hs()}}function kl(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||De;let s=n;const i=t.startsWith("update:"),a=i&&t.slice(7);if(a&&a in r){const f=`${a==="modelValue"?"model":a}Modifiers`,{number:_,trim:w}=r[f]||De;w&&(s=n.map(p=>Fe(p)?p.trim():p)),_&&(s=n.map(ur))}let o,c=r[o=Jr(t)]||r[o=Jr(sn(t))];!c&&i&&(c=r[o=Jr(on(t))]),c&&ft(c,e,6,s);const h=r[o+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,ft(h,e,6,s)}}function Gs(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let a={},o=!1;if(!be(e)){const c=h=>{const f=Gs(h,t,!0);f&&(o=!0,qe(a,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!o?(Re(e)&&r.set(e,null),null):(he(i)?i.forEach(c=>a[c]=null):qe(a,i),Re(e)&&r.set(e,a),a)}function br(e,t){return!e||!ir(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ee(e,t[0].toLowerCase()+t.slice(1))||Ee(e,on(t))||Ee(e,t))}let at=null,wr=null;function yr(e){const t=at;return at=e,wr=e&&e.type.__scopeId||null,t}function Ln(e){wr=e}function zn(){wr=null}function hi(e,t=at,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&mo(-1);const i=yr(t);let a;try{a=e(...s)}finally{yr(i),r._d&&mo(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function ep(){}function pi(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:i,propsOptions:[a],slots:o,attrs:c,emit:h,render:f,renderCache:_,data:w,setupState:p,ctx:v,inheritAttrs:m}=e;let E,k;const S=yr(e);try{if(n.shapeFlag&4){const F=s||r;E=mt(f.call(F,F,_,i,p,w,v)),k=c}else{const F=t;E=mt(F.length>1?F(i,{attrs:c,slots:o,emit:h}):F(i,null)),k=t.props?c:El(c)}}catch(F){Xn.length=0,Pn(F,e,1),E=Oe(It)}let T=E;if(k&&m!==!1){const F=Object.keys(k),{shapeFlag:j}=T;F.length&&j&7&&(a&&F.some(qr)&&(k=Sl(k,a)),T=fn(T,k))}return n.dirs&&(T=fn(T),T.dirs=T.dirs?T.dirs.concat(n.dirs):n.dirs),n.transition&&(T.transition=n.transition),E=T,yr(S),E}function xl(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(_o(r)){if(r.type!==It||r.children==="v-if"){if(t)return;t=r}}else return}return t}const El=e=>{let t;for(const n in e)(n==="class"||n==="style"||ir(n))&&((t||(t={}))[n]=e[n]);return t},Sl=(e,t)=>{const n={};for(const r in e)(!qr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Il(e,t,n){const{props:r,children:s,component:i}=e,{props:a,children:o,patchFlag:c}=t,h=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?$s(r,a,h):!!a;if(c&8){const f=t.dynamicProps;for(let _=0;_<f.length;_++){const w=f[_];if(a[w]!==r[w]&&!br(h,w))return!0}}}else return(s||o)&&(!o||!o.$stable)?!0:r===a?!1:r?a?$s(r,a,h):!0:!!a;return!1}function $s(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(t[i]!==e[i]&&!br(n,i))return!0}return!1}function fi({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Tl=e=>e.__isSuspense,Ks={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,i,a,o,c,h){e==null?Al(t,n,r,s,i,a,o,c,h):Ol(e,t,n,r,s,a,o,c,h)},hydrate:Cl,create:mi,normalize:Dl};function Hn(e,t){const n=e.props&&e.props[t];be(n)&&n()}function Al(e,t,n,r,s,i,a,o,c){const{p:h,o:{createElement:f}}=c,_=f("div"),w=e.suspense=mi(e,s,r,t,_,n,i,a,o,c);h(null,w.pendingBranch=e.ssContent,_,null,r,w,i,a),w.deps>0?(Hn(e,"onPending"),Hn(e,"onFallback"),h(null,e.ssFallback,t,n,r,null,i,a),hn(w,e.ssFallback)):w.resolve()}function Ol(e,t,n,r,s,i,a,o,{p:c,um:h,o:{createElement:f}}){const _=t.suspense=e.suspense;_.vnode=t,t.el=e.el;const w=t.ssContent,p=t.ssFallback,{activeBranch:v,pendingBranch:m,isInFallback:E,isHydrating:k}=_;if(m)_.pendingBranch=w,jt(w,m)?(c(m,w,_.hiddenContainer,null,s,_,i,a,o),_.deps<=0?_.resolve():E&&(c(v,p,n,r,s,null,i,a,o),hn(_,p))):(_.pendingId++,k?(_.isHydrating=!1,_.activeBranch=m):h(m,s,_),_.deps=0,_.effects.length=0,_.hiddenContainer=f("div"),E?(c(null,w,_.hiddenContainer,null,s,_,i,a,o),_.deps<=0?_.resolve():(c(v,p,n,r,s,null,i,a,o),hn(_,p))):v&&jt(w,v)?(c(v,w,n,r,s,_,i,a,o),_.resolve(!0)):(c(null,w,_.hiddenContainer,null,s,_,i,a,o),_.deps<=0&&_.resolve()));else if(v&&jt(w,v))c(v,w,n,r,s,_,i,a,o),hn(_,w);else if(Hn(t,"onPending"),_.pendingBranch=w,_.pendingId++,c(null,w,_.hiddenContainer,null,s,_,i,a,o),_.deps<=0)_.resolve();else{const{timeout:S,pendingId:T}=_;S>0?setTimeout(()=>{_.pendingId===T&&_.fallback(p)},S):S===0&&_.fallback(p)}}function mi(e,t,n,r,s,i,a,o,c,h,f=!1){const{p:_,m:w,um:p,n:v,o:{parentNode:m,remove:E}}=h,k=e.props?Ra(e.props.timeout):void 0,S={vnode:e,parent:t,parentComponent:n,isSVG:a,container:r,hiddenContainer:s,anchor:i,deps:0,pendingId:0,timeout:typeof k=="number"?k:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:f,isUnmounted:!1,effects:[],resolve(T=!1){const{vnode:F,activeBranch:j,pendingBranch:q,pendingId:z,effects:X,parentComponent:G,container:ee}=S;if(S.isHydrating)S.isHydrating=!1;else if(!T){const Y=j&&q.transition&&q.transition.mode==="out-in";Y&&(j.transition.afterLeave=()=>{z===S.pendingId&&w(q,ee,b,0)});let{anchor:b}=S;j&&(b=v(j),p(j,G,S,!0)),Y||w(q,ee,b,0)}hn(S,q),S.pendingBranch=null,S.isInFallback=!1;let se=S.parent,D=!1;for(;se;){if(se.pendingBranch){se.effects.push(...X),D=!0;break}se=se.parent}D||Ms(X),S.effects=[],Hn(F,"onResolve")},fallback(T){if(!S.pendingBranch)return;const{vnode:F,activeBranch:j,parentComponent:q,container:z,isSVG:X}=S;Hn(F,"onFallback");const G=v(j),ee=()=>{S.isInFallback&&(_(null,T,z,G,q,null,X,o,c),hn(S,T))},se=T.transition&&T.transition.mode==="out-in";se&&(j.transition.afterLeave=ee),S.isInFallback=!0,p(j,q,null,!0),se||ee()},move(T,F,j){S.activeBranch&&w(S.activeBranch,T,F,j),S.container=T},next(){return S.activeBranch&&v(S.activeBranch)},registerDep(T,F){const j=!!S.pendingBranch;j&&S.deps++;const q=T.vnode.el;T.asyncDep.catch(z=>{Pn(z,T,0)}).then(z=>{if(T.isUnmounted||S.isUnmounted||S.pendingId!==T.suspenseId)return;T.asyncResolved=!0;const{vnode:X}=T;Ai(T,z,!1),q&&(X.el=q);const G=!q&&T.subTree.el;F(T,X,m(q||T.subTree.el),q?null:v(T.subTree),S,a,c),G&&E(G),fi(T,X.el),j&&--S.deps===0&&S.resolve()})},unmount(T,F){S.isUnmounted=!0,S.activeBranch&&p(S.activeBranch,n,T,F),S.pendingBranch&&p(S.pendingBranch,n,T,F)}};return S}function Cl(e,t,n,r,s,i,a,o,c){const h=t.suspense=mi(t,r,n,e.parentNode,document.createElement("div"),null,s,i,a,o,!0),f=c(e,h.pendingBranch=t.ssContent,n,h,i,a);return h.deps===0&&h.resolve(),f}function Dl(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Xs(r?n.default:n),e.ssFallback=r?Xs(n.fallback):Oe(It)}function Xs(e){let t;if(be(e)){const n=pn&&e._c;n&&(e._d=!1,le()),e=e(),n&&(e._d=!0,t=ut,fo())}return he(e)&&(e=xl(e)),e=mt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Rl(e,t){t&&t.pendingBranch?he(e)?t.effects.push(...e):t.effects.push(e):Ms(e)}function hn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,s=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=s,fi(r,s))}function Bl(e,t){if(ze){let n=ze.provides;const r=ze.parent&&ze.parent.provides;r===n&&(n=ze.provides=Object.create(r)),n[e]=t}}function Gn(e,t,n=!1){const r=ze||at;if(r){const s=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&be(t)?t.call(r.proxy):t}}const vr={};function Et(e,t,n){return Ws(e,t,n)}function Ws(e,t,{immediate:n,deep:r,flush:s,onTrack:i,onTrigger:a}=De){const o=hs()===(ze==null?void 0:ze.scope)?ze:null;let c,h=!1,f=!1;if(Me(e)?(c=()=>e.value,h=_r(e)):Rt(e)?(c=()=>e,r=!0):he(e)?(f=!0,h=e.some(T=>Rt(T)||_r(T)),c=()=>e.map(T=>{if(Me(T))return T.value;if(Rt(T))return Wt(T);if(be(T))return Bt(T,o,2)})):be(e)?t?c=()=>Bt(e,o,2):c=()=>{if(!(o&&o.isUnmounted))return _&&_(),ft(e,o,3,[w])}:c=ht,t&&r){const T=c;c=()=>Wt(T())}let _,w=T=>{_=k.onStop=()=>{Bt(T,o,4)}},p;if(Wn)if(w=ht,t?n&&ft(t,o,3,[c(),f?[]:void 0,w]):c(),s==="sync"){const T=Eu();p=T.__watcherHandles||(T.__watcherHandles=[])}else return ht;let v=f?new Array(e.length).fill(vr):vr;const m=()=>{if(k.active)if(t){const T=k.run();(r||h||(f?T.some((F,j)=>jn(F,v[j])):jn(T,v)))&&(_&&_(),ft(t,o,3,[T,v===vr?void 0:f&&v[0]===vr?[]:v,w]),v=T)}else k.run()};m.allowRecurse=!!t;let E;s==="sync"?E=m:s==="post"?E=()=>Qe(m,o&&o.suspense):(m.pre=!0,o&&(m.id=o.uid),E=()=>di(m));const k=new ni(c,E);t?n?m():v=k.run():s==="post"?Qe(k.run.bind(k),o&&o.suspense):k.run();const S=()=>{k.stop(),o&&o.scope&&Vr(o.scope.effects,k)};return p&&p.push(S),S}function jl(e,t,n){const r=this.proxy,s=Fe(e)?e.includes(".")?qs(r,e):()=>r[e]:e.bind(r,r);let i;be(t)?i=t:(i=t.handler,n=t);const a=ze;Pt(this);const o=Ws(s,i.bind(r),n);return a?Pt(a):Ft(),o}function qs(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}function Wt(e,t){if(!Re(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Me(e))Wt(e.value,t);else if(he(e))for(let n=0;n<e.length;n++)Wt(e[n],t);else if(rn(e)||nn(e))e.forEach(n=>{Wt(n,t)});else if(as(e))for(const n in e)Wt(e[n],t);return e}function Le(e){return be(e)?{setup:e,name:e.name}:e}const kr=e=>!!e.type.__asyncLoader,Vs=e=>e.type.__isKeepAlive;function Nl(e,t){Ys(e,"a",t)}function Ul(e,t){Ys(e,"da",t)}function Ys(e,t,n=ze){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(xr(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Vs(s.parent.vnode)&&Pl(r,t,n,s),s=s.parent}}function Pl(e,t,n,r){const s=xr(t,e,r,!0);Zs(()=>{Vr(r[t],s)},n)}function xr(e,t,n=ze,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;an(),Pt(n);const o=ft(t,n,e,a);return Ft(),ln(),o});return r?s.unshift(i):s.push(i),i}}const St=e=>(t,n=ze)=>(!Wn||e==="sp")&&xr(e,(...r)=>t(...r),n),Fl=St("bm"),Ml=St("m"),Ll=St("bu"),zl=St("u"),Hl=St("bum"),Zs=St("um"),Gl=St("sp"),$l=St("rtg"),Kl=St("rtc");function Xl(e,t=ze){xr("ec",e,t)}function Je(e,t){const n=at;if(n===null)return e;const r=Cr(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[a,o,c,h=De]=t[i];a&&(be(a)&&(a={mounted:a,updated:a}),a.deep&&Wt(o),s.push({dir:a,instance:r,value:o,oldValue:void 0,arg:c,modifiers:h}))}return e}function qt(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let a=0;a<s.length;a++){const o=s[a];i&&(o.oldValue=i[a].value);let c=o.dir[r];c&&(an(),ft(c,n,8,[e.el,o,e,t]),ln())}}const Wl=Symbol();function lt(e,t,n,r){let s;const i=n&&n[r];if(he(e)||Fe(e)){s=new Array(e.length);for(let a=0,o=e.length;a<o;a++)s[a]=t(e[a],a,void 0,i&&i[a])}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,i&&i[a])}else if(Re(e))if(e[Symbol.iterator])s=Array.from(e,(a,o)=>t(a,o,void 0,i&&i[o]));else{const a=Object.keys(e);s=new Array(a.length);for(let o=0,c=a.length;o<c;o++){const h=a[o];s[o]=t(e[h],h,o,i&&i[o])}}else s=[];return n&&(n[r]=s),s}const gi=e=>e?vo(e)?Cr(e)||e.proxy:gi(e.parent):null,$n=qe(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=>gi(e.parent),$root:e=>gi(e.root),$emit:e=>e.emit,$options:e=>wi(e),$forceUpdate:e=>e.f||(e.f=()=>di(e.update)),$nextTick:e=>e.n||(e.n=Ps.bind(e.proxy)),$watch:e=>jl.bind(e)}),_i=(e,t)=>e!==De&&!e.__isScriptSetup&&Ee(e,t),ql={get({_:e},t){const{ctx:n,setupState:r,data:s,props:i,accessCache:a,type:o,appContext:c}=e;let h;if(t[0]!=="$"){const p=a[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(_i(r,t))return a[t]=1,r[t];if(s!==De&&Ee(s,t))return a[t]=2,s[t];if((h=e.propsOptions[0])&&Ee(h,t))return a[t]=3,i[t];if(n!==De&&Ee(n,t))return a[t]=4,n[t];bi&&(a[t]=0)}}const f=$n[t];let _,w;if(f)return t==="$attrs"&&Ze(e,"get",t),f(e);if((_=o.__cssModules)&&(_=_[t]))return _;if(n!==De&&Ee(n,t))return a[t]=4,n[t];if(w=c.config.globalProperties,Ee(w,t))return w[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return _i(s,t)?(s[t]=n,!0):r!==De&&Ee(r,t)?(r[t]=n,!0):Ee(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},a){let o;return!!n[a]||e!==De&&Ee(e,a)||_i(t,a)||(o=i[0])&&Ee(o,a)||Ee(r,a)||Ee($n,a)||Ee(s.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ee(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let bi=!0;function Vl(e){const t=wi(e),n=e.proxy,r=e.ctx;bi=!1,t.beforeCreate&&Js(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:a,watch:o,provide:c,inject:h,created:f,beforeMount:_,mounted:w,beforeUpdate:p,updated:v,activated:m,deactivated:E,beforeDestroy:k,beforeUnmount:S,destroyed:T,unmounted:F,render:j,renderTracked:q,renderTriggered:z,errorCaptured:X,serverPrefetch:G,expose:ee,inheritAttrs:se,components:D,directives:Y,filters:b}=t;if(h&&Yl(h,r,null,e.appContext.config.unwrapInjectedRef),a)for(const Q in a){const ae=a[Q];be(ae)&&(r[Q]=ae.bind(n))}if(s){const Q=s.call(n,n);Re(Q)&&(e.data=bt(Q))}if(bi=!0,i)for(const Q in i){const ae=i[Q],ne=be(ae)?ae.bind(n,n):be(ae.get)?ae.get.bind(n,n):ht,de=!be(ae)&&be(ae.set)?ae.set.bind(n):ht,H=Dr({get:ne,set:de});Object.defineProperty(r,Q,{enumerable:!0,configurable:!0,get:()=>H.value,set:L=>H.value=L})}if(o)for(const Q in o)Qs(o[Q],r,n,Q);if(c){const Q=be(c)?c.call(n):c;Reflect.ownKeys(Q).forEach(ae=>{Bl(ae,Q[ae])})}f&&Js(f,e,"c");function ue(Q,ae){he(ae)?ae.forEach(ne=>Q(ne.bind(n))):ae&&Q(ae.bind(n))}if(ue(Fl,_),ue(Ml,w),ue(Ll,p),ue(zl,v),ue(Nl,m),ue(Ul,E),ue(Xl,X),ue(Kl,q),ue($l,z),ue(Hl,S),ue(Zs,F),ue(Gl,G),he(ee))if(ee.length){const Q=e.exposed||(e.exposed={});ee.forEach(ae=>{Object.defineProperty(Q,ae,{get:()=>n[ae],set:ne=>n[ae]=ne})})}else e.exposed||(e.exposed={});j&&e.render===ht&&(e.render=j),se!=null&&(e.inheritAttrs=se),D&&(e.components=D),Y&&(e.directives=Y)}function Yl(e,t,n=ht,r=!1){he(e)&&(e=yi(e));for(const s in e){const i=e[s];let a;Re(i)?"default"in i?a=Gn(i.from||s,i.default,!0):a=Gn(i.from||s):a=Gn(i),Me(a)&&r?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[s]=a}}function Js(e,t,n){ft(he(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Qs(e,t,n,r){const s=r.includes(".")?qs(n,r):()=>n[r];if(Fe(e)){const i=t[e];be(i)&&Et(s,i)}else if(be(e))Et(s,e.bind(n));else if(Re(e))if(he(e))e.forEach(i=>Qs(i,t,n,r));else{const i=be(e.handler)?e.handler.bind(n):t[e.handler];be(i)&&Et(s,i,e)}}function wi(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,o=i.get(t);let c;return o?c=o:!s.length&&!n&&!r?c=t:(c={},s.length&&s.forEach(h=>Er(c,h,a,!0)),Er(c,t,a)),Re(t)&&i.set(t,c),c}function Er(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&Er(e,i,n,!0),s&&s.forEach(a=>Er(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const o=Zl[a]||n&&n[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const Zl={data:eo,props:Vt,emits:Vt,methods:Vt,computed:Vt,beforeCreate:Ve,created:Ve,beforeMount:Ve,mounted:Ve,beforeUpdate:Ve,updated:Ve,beforeDestroy:Ve,beforeUnmount:Ve,destroyed:Ve,unmounted:Ve,activated:Ve,deactivated:Ve,errorCaptured:Ve,serverPrefetch:Ve,components:Vt,directives:Vt,watch:Ql,provide:eo,inject:Jl};function eo(e,t){return t?e?function(){return qe(be(e)?e.call(this,this):e,be(t)?t.call(this,this):t)}:t:e}function Jl(e,t){return Vt(yi(e),yi(t))}function yi(e){if(he(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ve(e,t){return e?[...new Set([].concat(e,t))]:t}function Vt(e,t){return e?qe(qe(Object.create(null),e),t):t}function Ql(e,t){if(!e)return t;if(!t)return e;const n=qe(Object.create(null),e);for(const r in t)n[r]=Ve(e[r],t[r]);return n}function eu(e,t,n,r=!1){const s={},i={};lr(i,Ar,1),e.propsDefaults=Object.create(null),to(e,t,s,i);for(const a in e.propsOptions[0])a in s||(s[a]=void 0);n?e.props=r?s:ul(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function tu(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:a}}=e,o=ke(s),[c]=e.propsOptions;let h=!1;if((r||a>0)&&!(a&16)){if(a&8){const f=e.vnode.dynamicProps;for(let _=0;_<f.length;_++){let w=f[_];if(br(e.emitsOptions,w))continue;const p=t[w];if(c)if(Ee(i,w))p!==i[w]&&(i[w]=p,h=!0);else{const v=sn(w);s[v]=vi(c,o,v,p,e,!1)}else p!==i[w]&&(i[w]=p,h=!0)}}}else{to(e,t,s,i)&&(h=!0);let f;for(const _ in o)(!t||!Ee(t,_)&&((f=on(_))===_||!Ee(t,f)))&&(c?n&&(n[_]!==void 0||n[f]!==void 0)&&(s[_]=vi(c,o,_,void 0,e,!0)):delete s[_]);if(i!==o)for(const _ in i)(!t||!Ee(t,_))&&(delete i[_],h=!0)}h&&kt(e,"set","$attrs")}function to(e,t,n,r){const[s,i]=e.propsOptions;let a=!1,o;if(t)for(let c in t){if(sr(c))continue;const h=t[c];let f;s&&Ee(s,f=sn(c))?!i||!i.includes(f)?n[f]=h:(o||(o={}))[f]=h:br(e.emitsOptions,c)||(!(c in r)||h!==r[c])&&(r[c]=h,a=!0)}if(i){const c=ke(n),h=o||De;for(let f=0;f<i.length;f++){const _=i[f];n[_]=vi(s,c,_,h[_],e,!Ee(h,_))}}return a}function vi(e,t,n,r,s,i){const a=e[n];if(a!=null){const o=Ee(a,"default");if(o&&r===void 0){const c=a.default;if(a.type!==Function&&be(c)){const{propsDefaults:h}=s;n in h?r=h[n]:(Pt(s),r=h[n]=c.call(null,t),Ft())}else r=c}a[0]&&(i&&!o?r=!1:a[1]&&(r===""||r===on(n))&&(r=!0))}return r}function no(e,t,n=!1){const r=t.propsCache,s=r.get(e);if(s)return s;const i=e.props,a={},o=[];let c=!1;if(!be(e)){const f=_=>{c=!0;const[w,p]=no(_,t,!0);qe(a,w),p&&o.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!i&&!c)return Re(e)&&r.set(e,tn),tn;if(he(i))for(let f=0;f<i.length;f++){const _=sn(i[f]);ro(_)&&(a[_]=De)}else if(i)for(const f in i){const _=sn(f);if(ro(_)){const w=i[f],p=a[_]=he(w)||be(w)?{type:w}:Object.assign({},w);if(p){const v=oo(Boolean,p.type),m=oo(String,p.type);p[0]=v>-1,p[1]=m<0||v<m,(v>-1||Ee(p,"default"))&&o.push(_)}}}const h=[a,o];return Re(e)&&r.set(e,h),h}function ro(e){return e[0]!=="$"}function io(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function so(e,t){return io(e)===io(t)}function oo(e,t){return he(t)?t.findIndex(n=>so(n,e)):be(t)&&so(t,e)?0:-1}const ao=e=>e[0]==="_"||e==="$stable",ki=e=>he(e)?e.map(mt):[mt(e)],nu=(e,t,n)=>{if(t._n)return t;const r=hi((...s)=>ki(t(...s)),n);return r._c=!1,r},lo=(e,t,n)=>{const r=e._ctx;for(const s in e){if(ao(s))continue;const i=e[s];if(be(i))t[s]=nu(s,i,r);else if(i!=null){const a=ki(i);t[s]=()=>a}}},uo=(e,t)=>{const n=ki(t);e.slots.default=()=>n},ru=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ke(t),lr(t,"_",n)):lo(t,e.slots={})}else e.slots={},t&&uo(e,t);lr(e.slots,Ar,1)},iu=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,a=De;if(r.shapeFlag&32){const o=t._;o?n&&o===1?i=!1:(qe(s,t),!n&&o===1&&delete s._):(i=!t.$stable,lo(t,s)),a=t}else t&&(uo(e,t),a={default:1});if(i)for(const o in s)!ao(o)&&!(o in a)&&delete s[o]};function co(){return{app:null,config:{isNativeTag:Ia,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 su=0;function ou(e,t){return function(r,s=null){be(r)||(r=Object.assign({},r)),s!=null&&!Re(s)&&(s=null);const i=co(),a=new Set;let o=!1;const c=i.app={_uid:su++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:Su,get config(){return i.config},set config(h){},use(h,...f){return a.has(h)||(h&&be(h.install)?(a.add(h),h.install(c,...f)):be(h)&&(a.add(h),h(c,...f))),c},mixin(h){return i.mixins.includes(h)||i.mixins.push(h),c},component(h,f){return f?(i.components[h]=f,c):i.components[h]},directive(h,f){return f?(i.directives[h]=f,c):i.directives[h]},mount(h,f,_){if(!o){const w=Oe(r,s);return w.appContext=i,f&&t?t(w,h):e(w,h,_),o=!0,c._container=h,h.__vue_app__=c,Cr(w.component)||w.component.proxy}},unmount(){o&&(e(null,c._container),delete c._container.__vue_app__)},provide(h,f){return i.provides[h]=f,c}};return c}}function xi(e,t,n,r,s=!1){if(he(e)){e.forEach((w,p)=>xi(w,t&&(he(t)?t[p]:t),n,r,s));return}if(kr(r)&&!s)return;const i=r.shapeFlag&4?Cr(r.component)||r.component.proxy:r.el,a=s?null:i,{i:o,r:c}=e,h=t&&t.r,f=o.refs===De?o.refs={}:o.refs,_=o.setupState;if(h!=null&&h!==c&&(Fe(h)?(f[h]=null,Ee(_,h)&&(_[h]=null)):Me(h)&&(h.value=null)),be(c))Bt(c,o,12,[a,f]);else{const w=Fe(c),p=Me(c);if(w||p){const v=()=>{if(e.f){const m=w?Ee(_,c)?_[c]:f[c]:c.value;s?he(m)&&Vr(m,i):he(m)?m.includes(i)||m.push(i):w?(f[c]=[i],Ee(_,c)&&(_[c]=f[c])):(c.value=[i],e.k&&(f[e.k]=c.value))}else w?(f[c]=a,Ee(_,c)&&(_[c]=a)):p&&(c.value=a,e.k&&(f[e.k]=a))};a?(v.id=-1,Qe(v,n)):v()}}}const Qe=Rl;function au(e){return lu(e)}function lu(e,t){const n=Ba();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:a,createText:o,createComment:c,setText:h,setElementText:f,parentNode:_,nextSibling:w,setScopeId:p=ht,insertStaticContent:v}=e,m=(C,P,u,R=null,O=null,x=null,y=!1,A=null,M=!!P.dynamicChildren)=>{if(C===P)return;C&&!jt(C,P)&&(R=Ne(C),L(C,O,x,!0),C=null),P.patchFlag===-2&&(M=!1,P.dynamicChildren=null);const{type:U,ref:B,shapeFlag:K}=P;switch(U){case Tr:E(C,P,u,R);break;case It:k(C,P,u,R);break;case Ii:C==null&&S(P,u,R,y);break;case Be:D(C,P,u,R,O,x,y,A,M);break;default:K&1?j(C,P,u,R,O,x,y,A,M):K&6?Y(C,P,u,R,O,x,y,A,M):(K&64||K&128)&&U.process(C,P,u,R,O,x,y,A,M,we)}B!=null&&O&&xi(B,C&&C.ref,x,P||C,!P)},E=(C,P,u,R)=>{if(C==null)r(P.el=o(P.children),u,R);else{const O=P.el=C.el;P.children!==C.children&&h(O,P.children)}},k=(C,P,u,R)=>{C==null?r(P.el=c(P.children||""),u,R):P.el=C.el},S=(C,P,u,R)=>{[C.el,C.anchor]=v(C.children,P,u,R,C.el,C.anchor)},T=({el:C,anchor:P},u,R)=>{let O;for(;C&&C!==P;)O=w(C),r(C,u,R),C=O;r(P,u,R)},F=({el:C,anchor:P})=>{let u;for(;C&&C!==P;)u=w(C),s(C),C=u;s(P)},j=(C,P,u,R,O,x,y,A,M)=>{y=y||P.type==="svg",C==null?q(P,u,R,O,x,y,A,M):G(C,P,O,x,y,A,M)},q=(C,P,u,R,O,x,y,A)=>{let M,U;const{type:B,props:K,shapeFlag:J,transition:V,dirs:re}=C;if(M=C.el=a(C.type,x,K&&K.is,K),J&8?f(M,C.children):J&16&&X(C.children,M,null,R,O,x&&B!=="foreignObject",y,A),re&&qt(C,null,R,"created"),z(M,C,C.scopeId,y,R),K){for(const l in K)l!=="value"&&!sr(l)&&i(M,l,null,K[l],x,C.children,R,O,xe);"value"in K&&i(M,"value",null,K.value),(U=K.onVnodeBeforeMount)&&yt(U,R,C)}re&&qt(C,null,R,"beforeMount");const g=(!O||O&&!O.pendingBranch)&&V&&!V.persisted;g&&V.beforeEnter(M),r(M,P,u),((U=K&&K.onVnodeMounted)||g||re)&&Qe(()=>{U&&yt(U,R,C),g&&V.enter(M),re&&qt(C,null,R,"mounted")},O)},z=(C,P,u,R,O)=>{if(u&&p(C,u),R)for(let x=0;x<R.length;x++)p(C,R[x]);if(O){let x=O.subTree;if(P===x){const y=O.vnode;z(C,y,y.scopeId,y.slotScopeIds,O.parent)}}},X=(C,P,u,R,O,x,y,A,M=0)=>{for(let U=M;U<C.length;U++){const B=C[U]=A?Ut(C[U]):mt(C[U]);m(null,B,P,u,R,O,x,y,A)}},G=(C,P,u,R,O,x,y)=>{const A=P.el=C.el;let{patchFlag:M,dynamicChildren:U,dirs:B}=P;M|=C.patchFlag&16;const K=C.props||De,J=P.props||De;let V;u&&Yt(u,!1),(V=J.onVnodeBeforeUpdate)&&yt(V,u,P,C),B&&qt(P,C,u,"beforeUpdate"),u&&Yt(u,!0);const re=O&&P.type!=="foreignObject";if(U?ee(C.dynamicChildren,U,A,u,R,re,x):y||ae(C,P,A,null,u,R,re,x,!1),M>0){if(M&16)se(A,P,K,J,u,R,O);else if(M&2&&K.class!==J.class&&i(A,"class",null,J.class,O),M&4&&i(A,"style",K.style,J.style,O),M&8){const g=P.dynamicProps;for(let l=0;l<g.length;l++){const d=g[l],I=K[d],N=J[d];(N!==I||d==="value")&&i(A,d,I,N,O,C.children,u,R,xe)}}M&1&&C.children!==P.children&&f(A,P.children)}else!y&&U==null&&se(A,P,K,J,u,R,O);((V=J.onVnodeUpdated)||B)&&Qe(()=>{V&&yt(V,u,P,C),B&&qt(P,C,u,"updated")},R)},ee=(C,P,u,R,O,x,y)=>{for(let A=0;A<P.length;A++){const M=C[A],U=P[A],B=M.el&&(M.type===Be||!jt(M,U)||M.shapeFlag&70)?_(M.el):u;m(M,U,B,null,R,O,x,y,!0)}},se=(C,P,u,R,O,x,y)=>{if(u!==R){if(u!==De)for(const A in u)!sr(A)&&!(A in R)&&i(C,A,u[A],null,y,P.children,O,x,xe);for(const A in R){if(sr(A))continue;const M=R[A],U=u[A];M!==U&&A!=="value"&&i(C,A,U,M,y,P.children,O,x,xe)}"value"in R&&i(C,"value",u.value,R.value)}},D=(C,P,u,R,O,x,y,A,M)=>{const U=P.el=C?C.el:o(""),B=P.anchor=C?C.anchor:o("");let{patchFlag:K,dynamicChildren:J,slotScopeIds:V}=P;V&&(A=A?A.concat(V):V),C==null?(r(U,u,R),r(B,u,R),X(P.children,u,B,O,x,y,A,M)):K>0&&K&64&&J&&C.dynamicChildren?(ee(C.dynamicChildren,J,u,O,x,y,A),(P.key!=null||O&&P===O.subTree)&&Ei(C,P,!0)):ae(C,P,u,B,O,x,y,A,M)},Y=(C,P,u,R,O,x,y,A,M)=>{P.slotScopeIds=A,C==null?P.shapeFlag&512?O.ctx.activate(P,u,R,y,M):b(P,u,R,O,x,y,M):Z(C,P,M)},b=(C,P,u,R,O,x,y)=>{const A=C.component=_u(C,R,O);if(Vs(C)&&(A.ctx.renderer=we),bu(A),A.asyncDep){if(O&&O.registerDep(A,ue),!C.el){const M=A.subTree=Oe(It);k(null,M,P,u)}return}ue(A,C,P,u,O,x,y)},Z=(C,P,u)=>{const R=P.component=C.component;if(Il(C,P,u))if(R.asyncDep&&!R.asyncResolved){Q(R,P,u);return}else R.next=P,yl(R.update),R.update();else P.el=C.el,R.vnode=P},ue=(C,P,u,R,O,x,y)=>{const A=()=>{if(C.isMounted){let{next:B,bu:K,u:J,parent:V,vnode:re}=C,g=B,l;Yt(C,!1),B?(B.el=re.el,Q(C,B,y)):B=re,K&&ar(K),(l=B.props&&B.props.onVnodeBeforeUpdate)&&yt(l,V,B,re),Yt(C,!0);const d=pi(C),I=C.subTree;C.subTree=d,m(I,d,_(I.el),Ne(I),C,O,x),B.el=d.el,g===null&&fi(C,d.el),J&&Qe(J,O),(l=B.props&&B.props.onVnodeUpdated)&&Qe(()=>yt(l,V,B,re),O)}else{let B;const{el:K,props:J}=P,{bm:V,m:re,parent:g}=C,l=kr(P);if(Yt(C,!1),V&&ar(V),!l&&(B=J&&J.onVnodeBeforeMount)&&yt(B,g,P),Yt(C,!0),K&&Ae){const d=()=>{C.subTree=pi(C),Ae(K,C.subTree,C,O,null)};l?P.type.__asyncLoader().then(()=>!C.isUnmounted&&d()):d()}else{const d=C.subTree=pi(C);m(null,d,u,R,C,O,x),P.el=d.el}if(re&&Qe(re,O),!l&&(B=J&&J.onVnodeMounted)){const d=P;Qe(()=>yt(B,g,d),O)}(P.shapeFlag&256||g&&kr(g.vnode)&&g.vnode.shapeFlag&256)&&C.a&&Qe(C.a,O),C.isMounted=!0,P=u=R=null}},M=C.effect=new ni(A,()=>di(U),C.scope),U=C.update=()=>M.run();U.id=C.uid,Yt(C,!0),U()},Q=(C,P,u)=>{P.component=C;const R=C.vnode.props;C.vnode=P,C.next=null,tu(C,P.props,R,u),iu(C,P.children,u),an(),Ls(),ln()},ae=(C,P,u,R,O,x,y,A,M=!1)=>{const U=C&&C.children,B=C?C.shapeFlag:0,K=P.children,{patchFlag:J,shapeFlag:V}=P;if(J>0){if(J&128){de(U,K,u,R,O,x,y,A,M);return}else if(J&256){ne(U,K,u,R,O,x,y,A,M);return}}V&8?(B&16&&xe(U,O,x),K!==U&&f(u,K)):B&16?V&16?de(U,K,u,R,O,x,y,A,M):xe(U,O,x,!0):(B&8&&f(u,""),V&16&&X(K,u,R,O,x,y,A,M))},ne=(C,P,u,R,O,x,y,A,M)=>{C=C||tn,P=P||tn;const U=C.length,B=P.length,K=Math.min(U,B);let J;for(J=0;J<K;J++){const V=P[J]=M?Ut(P[J]):mt(P[J]);m(C[J],V,u,null,O,x,y,A,M)}U>B?xe(C,O,x,!0,!1,K):X(P,u,R,O,x,y,A,M,K)},de=(C,P,u,R,O,x,y,A,M)=>{let U=0;const B=P.length;let K=C.length-1,J=B-1;for(;U<=K&&U<=J;){const V=C[U],re=P[U]=M?Ut(P[U]):mt(P[U]);if(jt(V,re))m(V,re,u,null,O,x,y,A,M);else break;U++}for(;U<=K&&U<=J;){const V=C[K],re=P[J]=M?Ut(P[J]):mt(P[J]);if(jt(V,re))m(V,re,u,null,O,x,y,A,M);else break;K--,J--}if(U>K){if(U<=J){const V=J+1,re=V<B?P[V].el:R;for(;U<=J;)m(null,P[U]=M?Ut(P[U]):mt(P[U]),u,re,O,x,y,A,M),U++}}else if(U>J)for(;U<=K;)L(C[U],O,x,!0),U++;else{const V=U,re=U,g=new Map;for(U=re;U<=J;U++){const ve=P[U]=M?Ut(P[U]):mt(P[U]);ve.key!=null&&g.set(ve.key,U)}let l,d=0;const I=J-re+1;let N=!1,$=0;const W=new Array(I);for(U=0;U<I;U++)W[U]=0;for(U=V;U<=K;U++){const ve=C[U];if(d>=I){L(ve,O,x,!0);continue}let me;if(ve.key!=null)me=g.get(ve.key);else for(l=re;l<=J;l++)if(W[l-re]===0&&jt(ve,P[l])){me=l;break}me===void 0?L(ve,O,x,!0):(W[me-re]=U+1,me>=$?$=me:N=!0,m(ve,P[me],u,null,O,x,y,A,M),d++)}const fe=N?uu(W):tn;for(l=fe.length-1,U=I-1;U>=0;U--){const ve=re+U,me=P[ve],Te=ve+1<B?P[ve+1].el:R;W[U]===0?m(null,me,u,Te,O,x,y,A,M):N&&(l<0||U!==fe[l]?H(me,u,Te,2):l--)}}},H=(C,P,u,R,O=null)=>{const{el:x,type:y,transition:A,children:M,shapeFlag:U}=C;if(U&6){H(C.component.subTree,P,u,R);return}if(U&128){C.suspense.move(P,u,R);return}if(U&64){y.move(C,P,u,we);return}if(y===Be){r(x,P,u);for(let K=0;K<M.length;K++)H(M[K],P,u,R);r(C.anchor,P,u);return}if(y===Ii){T(C,P,u);return}if(R!==2&&U&1&&A)if(R===0)A.beforeEnter(x),r(x,P,u),Qe(()=>A.enter(x),O);else{const{leave:K,delayLeave:J,afterLeave:V}=A,re=()=>r(x,P,u),g=()=>{K(x,()=>{re(),V&&V()})};J?J(x,re,g):g()}else r(x,P,u)},L=(C,P,u,R=!1,O=!1)=>{const{type:x,props:y,ref:A,children:M,dynamicChildren:U,shapeFlag:B,patchFlag:K,dirs:J}=C;if(A!=null&&xi(A,null,u,C,!0),B&256){P.ctx.deactivate(C);return}const V=B&1&&J,re=!kr(C);let g;if(re&&(g=y&&y.onVnodeBeforeUnmount)&&yt(g,P,C),B&6)ie(C.component,u,R);else{if(B&128){C.suspense.unmount(u,R);return}V&&qt(C,null,P,"beforeUnmount"),B&64?C.type.remove(C,P,u,O,we,R):U&&(x!==Be||K>0&&K&64)?xe(U,P,u,!1,!0):(x===Be&&K&384||!O&&B&16)&&xe(M,P,u),R&&ce(C)}(re&&(g=y&&y.onVnodeUnmounted)||V)&&Qe(()=>{g&&yt(g,P,C),V&&qt(C,null,P,"unmounted")},u)},ce=C=>{const{type:P,el:u,anchor:R,transition:O}=C;if(P===Be){oe(u,R);return}if(P===Ii){F(C);return}const x=()=>{s(u),O&&!O.persisted&&O.afterLeave&&O.afterLeave()};if(C.shapeFlag&1&&O&&!O.persisted){const{leave:y,delayLeave:A}=O,M=()=>y(u,x);A?A(C.el,x,M):M()}else x()},oe=(C,P)=>{let u;for(;C!==P;)u=w(C),s(C),C=u;s(P)},ie=(C,P,u)=>{const{bum:R,scope:O,update:x,subTree:y,um:A}=C;R&&ar(R),O.stop(),x&&(x.active=!1,L(y,C,P,u)),A&&Qe(A,P),Qe(()=>{C.isUnmounted=!0},P),P&&P.pendingBranch&&!P.isUnmounted&&C.asyncDep&&!C.asyncResolved&&C.suspenseId===P.pendingId&&(P.deps--,P.deps===0&&P.resolve())},xe=(C,P,u,R=!1,O=!1,x=0)=>{for(let y=x;y<C.length;y++)L(C[y],P,u,R,O)},Ne=C=>C.shapeFlag&6?Ne(C.component.subTree):C.shapeFlag&128?C.suspense.next():w(C.anchor||C.el),ge=(C,P,u)=>{C==null?P._vnode&&L(P._vnode,null,null,!0):m(P._vnode||null,C,P,null,null,null,u),Ls(),zs(),P._vnode=C},we={p:m,um:L,m:H,r:ce,mt:b,mc:X,pc:ae,pbc:ee,n:Ne,o:e};let je,Ae;return t&&([je,Ae]=t(we)),{render:ge,hydrate:je,createApp:ou(ge,je)}}function Yt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ei(e,t,n=!1){const r=e.children,s=t.children;if(he(r)&&he(s))for(let i=0;i<r.length;i++){const a=r[i];let o=s[i];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=s[i]=Ut(s[i]),o.el=a.el),n||Ei(a,o)),o.type===Tr&&(o.el=a.el)}}function uu(e){const t=e.slice(),n=[0];let r,s,i,a,o;const c=e.length;for(r=0;r<c;r++){const h=e[r];if(h!==0){if(s=n[n.length-1],e[s]<h){t[r]=s,n.push(r);continue}for(i=0,a=n.length-1;i<a;)o=i+a>>1,e[n[o]]<h?i=o+1:a=o;h<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}const cu=e=>e.__isTeleport,Kn=e=>e&&(e.disabled||e.disabled===""),ho=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,Si=(e,t)=>{const n=e&&e.to;return Fe(n)?t?t(n):null:n},du={__isTeleport:!0,process(e,t,n,r,s,i,a,o,c,h){const{mc:f,pc:_,pbc:w,o:{insert:p,querySelector:v,createText:m,createComment:E}}=h,k=Kn(t.props);let{shapeFlag:S,children:T,dynamicChildren:F}=t;if(e==null){const j=t.el=m(""),q=t.anchor=m("");p(j,n,r),p(q,n,r);const z=t.target=Si(t.props,v),X=t.targetAnchor=m("");z&&(p(X,z),a=a||ho(z));const G=(ee,se)=>{S&16&&f(T,ee,se,s,i,a,o,c)};k?G(n,q):z&&G(z,X)}else{t.el=e.el;const j=t.anchor=e.anchor,q=t.target=e.target,z=t.targetAnchor=e.targetAnchor,X=Kn(e.props),G=X?n:q,ee=X?j:z;if(a=a||ho(q),F?(w(e.dynamicChildren,F,G,s,i,a,o),Ei(e,t,!0)):c||_(e,t,G,ee,s,i,a,o,!1),k)X||Sr(t,n,j,h,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const se=t.target=Si(t.props,v);se&&Sr(t,se,null,h,0)}else X&&Sr(t,q,z,h,1)}po(t)},remove(e,t,n,r,{um:s,o:{remove:i}},a){const{shapeFlag:o,children:c,anchor:h,targetAnchor:f,target:_,props:w}=e;if(_&&i(f),(a||!Kn(w))&&(i(h),o&16))for(let p=0;p<c.length;p++){const v=c[p];s(v,t,n,!0,!!v.dynamicChildren)}},move:Sr,hydrate:hu};function Sr(e,t,n,{o:{insert:r},m:s},i=2){i===0&&r(e.targetAnchor,t,n);const{el:a,anchor:o,shapeFlag:c,children:h,props:f}=e,_=i===2;if(_&&r(a,t,n),(!_||Kn(f))&&c&16)for(let w=0;w<h.length;w++)s(h[w],t,n,2);_&&r(o,t,n)}function hu(e,t,n,r,s,i,{o:{nextSibling:a,parentNode:o,querySelector:c}},h){const f=t.target=Si(t.props,c);if(f){const _=f._lpa||f.firstChild;if(t.shapeFlag&16)if(Kn(t.props))t.anchor=h(a(e),t,o(e),n,r,s,i),t.targetAnchor=_;else{t.anchor=a(e);let w=_;for(;w;)if(w=a(w),w&&w.nodeType===8&&w.data==="teleport anchor"){t.targetAnchor=w,f._lpa=t.targetAnchor&&a(t.targetAnchor);break}h(_,t,f,n,r,s,i)}po(t)}return t.anchor&&a(t.anchor)}const Ir=du;function po(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Be=Symbol(void 0),Tr=Symbol(void 0),It=Symbol(void 0),Ii=Symbol(void 0),Xn=[];let ut=null;function le(e=!1){Xn.push(ut=e?null:[])}function fo(){Xn.pop(),ut=Xn[Xn.length-1]||null}let pn=1;function mo(e){pn+=e}function go(e){return e.dynamicChildren=pn>0?ut||tn:null,fo(),pn>0&&ut&&ut.push(e),e}function pe(e,t,n,r,s,i){return go(te(e,t,n,r,s,i,!0))}function ct(e,t,n,r,s){return go(Oe(e,t,n,r,s,!0))}function _o(e){return e?e.__v_isVNode===!0:!1}function jt(e,t){return e.type===t.type&&e.key===t.key}const Ar="__vInternal",bo=({key:e})=>e!=null?e:null,Or=({ref:e,ref_key:t,ref_for:n})=>e!=null?Fe(e)||Me(e)||be(e)?{i:at,r:e,k:t,f:!!n}:e:null;function te(e,t=null,n=null,r=0,s=null,i=e===Be?0:1,a=!1,o=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&bo(t),ref:t&&Or(t),scopeId:wr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:at};return o?(Ti(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=Fe(n)?8:16),pn>0&&!a&&ut&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&ut.push(c),c}const Oe=pu;function pu(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===Wl)&&(e=It),_o(e)){const o=fn(e,t,!0);return n&&Ti(o,n),pn>0&&!i&&ut&&(o.shapeFlag&6?ut[ut.indexOf(e)]=o:ut.push(o)),o.patchFlag|=-2,o}if(ku(e)&&(e=e.__vccOpts),t){t=fu(t);let{class:o,style:c}=t;o&&!Fe(o)&&(t.class=tt(o)),Re(c)&&(Ds(c)&&!he(c)&&(c=qe({},c)),t.style=ot(c))}const a=Fe(e)?1:Tl(e)?128:cu(e)?64:Re(e)?4:be(e)?2:0;return te(e,t,n,r,s,a,i,!0)}function fu(e){return e?Ds(e)||Ar in e?qe({},e):e:null}function fn(e,t,n=!1){const{props:r,ref:s,patchFlag:i,children:a}=e,o=t?wo(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:o,key:o&&bo(o),ref:t&&t.ref?n&&s?he(s)?s.concat(Or(t)):[s,Or(t)]:Or(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Be?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&fn(e.ssContent),ssFallback:e.ssFallback&&fn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Nt(e=" ",t=0){return Oe(Tr,null,e,t)}function rt(e="",t=!1){return t?(le(),ct(It,null,e)):Oe(It,null,e)}function mt(e){return e==null||typeof e=="boolean"?Oe(It):he(e)?Oe(Be,null,e.slice()):typeof e=="object"?Ut(e):Oe(Tr,null,String(e))}function Ut(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:fn(e)}function Ti(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 s=t.default;s&&(s._c&&(s._d=!1),Ti(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(Ar in t)?t._ctx=at:s===3&&at&&(at.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else be(t)?(t={default:t,_ctx:at},n=32):(t=String(t),r&64?(n=16,t=[Nt(t)]):n=8);e.children=t,e.shapeFlag|=n}function wo(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=tt([t.class,r.class]));else if(s==="style")t.style=ot([t.style,r.style]);else if(ir(s)){const i=t[s],a=r[s];a&&i!==a&&!(he(i)&&i.includes(a))&&(t[s]=i?[].concat(i,a):a)}else s!==""&&(t[s]=r[s])}return t}function yt(e,t,n,r=null){ft(e,t,7,[n,r])}const mu=co();let gu=0;function _u(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||mu,i={uid:gu++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new cs(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:no(r,s),emitsOptions:Gs(r,s),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 i.ctx={_:i},i.root=t?t.root:i,i.emit=kl.bind(null,i),e.ce&&e.ce(i),i}let ze=null;const yo=()=>ze||at,Pt=e=>{ze=e,e.scope.on()},Ft=()=>{ze&&ze.scope.off(),ze=null};function vo(e){return e.vnode.shapeFlag&4}let Wn=!1;function bu(e,t=!1){Wn=t;const{props:n,children:r}=e.vnode,s=vo(e);eu(e,n,s,t),ru(e,r);const i=s?wu(e,t):void 0;return Wn=!1,i}function wu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=cn(new Proxy(e.ctx,ql));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?vu(e):null;Pt(e),an();const i=Bt(r,e,0,[e.props,s]);if(ln(),Ft(),Yr(i)){if(i.then(Ft,Ft),t)return i.then(a=>{Ai(e,a,t)}).catch(a=>{Pn(a,e,0)});e.asyncDep=i}else Ai(e,i,t)}else xo(e,t)}function Ai(e,t,n){be(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Re(t)&&(e.setupState=js(t)),xo(e,n)}let ko;function xo(e,t,n){const r=e.type;if(!e.render){if(!t&&ko&&!r.render){const s=r.template||wi(e).template;if(s){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:o,compilerOptions:c}=r,h=qe(qe({isCustomElement:i,delimiters:o},a),c);r.render=ko(s,h)}}e.render=r.render||ht}Pt(e),an(),Vl(e),ln(),Ft()}function yu(e){return new Proxy(e.attrs,{get(t,n){return Ze(e,"get","$attrs"),t[n]}})}function vu(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=yu(e))},slots:e.slots,emit:e.emit,expose:t}}function Cr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(js(cn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in $n)return $n[n](e)},has(t,n){return n in t||n in $n}}))}function ku(e){return be(e)&&"__vccOpts"in e}const Dr=(e,t)=>_l(e,t,Wn);function Oi(e){const t=yo();let n=e();return Ft(),Yr(n)&&(n=n.catch(r=>{throw Pt(t),r})),[n,()=>Pt(t)]}const xu=Symbol(""),Eu=()=>Gn(xu),Su="3.2.47",Iu="http://www.w3.org/2000/svg",Zt=typeof document!="undefined"?document:null,Eo=Zt&&Zt.createElement("template"),Tu={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 s=t?Zt.createElementNS(Iu,e):Zt.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Zt.createTextNode(e),createComment:e=>Zt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Zt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const a=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Eo.innerHTML=r?`<svg>${e}</svg>`:e;const o=Eo.content;if(r){const c=o.firstChild;for(;c.firstChild;)o.appendChild(c.firstChild);o.removeChild(c)}t.insertBefore(o,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Au(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Ou(e,t,n){const r=e.style,s=Fe(n);if(n&&!s){if(t&&!Fe(t))for(const i in t)n[i]==null&&Ci(r,i,"");for(const i in n)Ci(r,i,n[i])}else{const i=r.display;s?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const So=/\s*!important$/;function Ci(e,t,n){if(he(n))n.forEach(r=>Ci(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Cu(e,t);So.test(n)?e.setProperty(on(r),n.replace(So,""),"important"):e[r]=n}}const Io=["Webkit","Moz","ms"],Di={};function Cu(e,t){const n=Di[t];if(n)return n;let r=sn(t);if(r!=="filter"&&r in e)return Di[t]=r;r=ls(r);for(let s=0;s<Io.length;s++){const i=Io[s]+r;if(i in e)return Di[t]=i}return t}const To="http://www.w3.org/1999/xlink";function Du(e,t,n,r,s){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(To,t.slice(6,t.length)):e.setAttributeNS(To,t,n);else{const i=Ea(t);n==null||i&&!rs(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function Ru(e,t,n,r,s,i,a){if(t==="innerHTML"||t==="textContent"){r&&a(r,s,i),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const c=n==null?"":n;(e.value!==c||e.tagName==="OPTION")&&(e.value=c),n==null&&e.removeAttribute(t);return}let o=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=rs(n):n==null&&c==="string"?(n="",o=!0):c==="number"&&(n=0,o=!0)}try{e[t]=n}catch(c){}o&&e.removeAttribute(t)}function Mt(e,t,n,r){e.addEventListener(t,n,r)}function Bu(e,t,n,r){e.removeEventListener(t,n,r)}function ju(e,t,n,r,s=null){const i=e._vei||(e._vei={}),a=i[t];if(r&&a)a.value=r;else{const[o,c]=Nu(t);if(r){const h=i[t]=Fu(r,s);Mt(e,o,h,c)}else a&&(Bu(e,o,a,c),i[t]=void 0)}}const Ao=/(?:Once|Passive|Capture)$/;function Nu(e){let t;if(Ao.test(e)){t={};let r;for(;r=e.match(Ao);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):on(e.slice(2)),t]}let Ri=0;const Uu=Promise.resolve(),Pu=()=>Ri||(Uu.then(()=>Ri=0),Ri=Date.now());function Fu(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ft(Mu(r,n.value),t,5,[r])};return n.value=e,n.attached=Pu(),n}function Mu(e,t){if(he(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Oo=/^on[a-z]/,Lu=(e,t,n,r,s=!1,i,a,o,c)=>{t==="class"?Au(e,r,s):t==="style"?Ou(e,n,r):ir(t)?qr(t)||ju(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):zu(e,t,r,s))?Ru(e,t,r,i,a,o,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Du(e,t,r,s))};function zu(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Oo.test(t)&&be(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Oo.test(t)&&Fe(n)?!1:t in e}const mn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return he(t)?n=>ar(t,n):t};function Hu(e){e.target.composing=!0}function Co(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Rr={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e._assign=mn(s);const i=r||s.props&&s.props.type==="number";Mt(e,t?"change":"input",a=>{if(a.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=ur(o)),e._assign(o)}),n&&Mt(e,"change",()=>{e.value=e.value.trim()}),t||(Mt(e,"compositionstart",Hu),Mt(e,"compositionend",Co),Mt(e,"change",Co))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:s}},i){if(e._assign=mn(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(s||e.type==="number")&&ur(e.value)===t))return;const a=t==null?"":t;e.value!==a&&(e.value=a)}},gn={deep:!0,created(e,t,n){e._assign=mn(n),Mt(e,"change",()=>{const r=e._modelValue,s=qn(e),i=e.checked,a=e._assign;if(he(r)){const o=Wr(r,s),c=o!==-1;if(i&&!c)a(r.concat(s));else if(!i&&c){const h=[...r];h.splice(o,1),a(h)}}else if(rn(r)){const o=new Set(r);i?o.add(s):o.delete(s),a(o)}else a(jo(e,i))})},mounted:Do,beforeUpdate(e,t,n){e._assign=mn(n),Do(e,t,n)}};function Do(e,{value:t,oldValue:n},r){e._modelValue=t,he(t)?e.checked=Wr(t,r.props.value)>-1:rn(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Dn(t,jo(e,!0)))}const Ro={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=rn(t);Mt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?ur(qn(a)):qn(a));e._assign(e.multiple?s?new Set(i):i:i[0])}),e._assign=mn(r)},mounted(e,{value:t}){Bo(e,t)},beforeUpdate(e,t,n){e._assign=mn(n)},updated(e,{value:t}){Bo(e,t)}};function Bo(e,t){const n=e.multiple;if(!(n&&!he(t)&&!rn(t))){for(let r=0,s=e.options.length;r<s;r++){const i=e.options[r],a=qn(i);if(n)he(t)?i.selected=Wr(t,a)>-1:i.selected=t.has(a);else if(Dn(qn(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function qn(e){return"_value"in e?e._value:e.value}function jo(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Gu=["ctrl","shift","alt","meta"],$u={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)=>Gu.some(n=>e[`${n}Key`]&&!t.includes(n))},Lt=(e,t)=>(n,...r)=>{for(let s=0;s<t.length;s++){const i=$u[t[s]];if(i&&i(n,t))return}return e(n,...r)},No={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Vn(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),Vn(e,!0),r.enter(e)):r.leave(e,()=>{Vn(e,!1)}):Vn(e,t))},beforeUnmount(e,{value:t}){Vn(e,t)}};function Vn(e,t){e.style.display=t?e._vod:"none"}const Ku=qe({patchProp:Lu},Tu);let Uo;function Xu(){return Uo||(Uo=au(Ku))}const Wu=(...e)=>{const t=Xu().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=qu(r);if(!s)return;const i=t._component;!be(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const a=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),a},t};function qu(e){return Fe(e)?document.querySelector(e):e}function Po(e){for(let t=0;t<e.length;t++){const n=e[t];n.innerHTML=n.innerHTML.replace(/\|\s/,"")}}function Bi(e,t,n){const r=e.querySelector("thead"),s=e.querySelector("tbody");r==null||s==null||(Fo(r,t,n),Fo(s,t,n))}function Fo(e,t,n){const r=e.children;for(let s=0;s<r.length;s++){const i=r[s];Vu(i,t,n)}}function Vu(e,t,n){const r=e.children;if(r.length!=1){t.forEach(s=>{if(s.length>1){const i=r[s[0]];for(let a=1;a<s.length;a++){const o=s[a];i.innerHTML+="<br>"+r[o].innerHTML}}});for(let s=n.length-1;s>=0;s--){const i=n[s];r[i].style.display="none"}}}let Mo;const Lo="加载中..";let _n=null;function Tt(e=0,t=Lo){_n===null&&(_n=document.querySelector("#nforum_tips")),e>0&&(_n.style.display="block",_n.innerHTML=t),clearTimeout(Mo),Mo=setTimeout(()=>{_n.style.display="none",_n.innerHTML=Lo},e*1e3)}class zo{constructor(t){Ge(this,"record",bt({}));Ge(this,"getByIndexKey",(t,n)=>_e(this,null,function*(){return yield it.waitForDB(),(yield it.getByIndexKey(this.tableName,t,n)).map(s=>this.wrap(s))}));this.tableName=t}importAll(t){return _e(this,null,function*(){yield this.beforeImport();const n=[];for(let r=0;r<t.length;r++){const s=t[r];(yield this.checkToImport(s))&&(this.updateRecord(s),n.push(s))}yield it.saveAll(n,this.tableName),yield this.afterImport(n)})}beforeImport(){return _e(this,null,function*(){})}afterImport(t){return _e(this,null,function*(){console.log("完成导入"+this.tableName+"数据"+t.length+"条"),Tt(2,"导入"+this.tableName+"数据"+t.length+"条")})}checkToImport(t){return _e(this,null,function*(){const n=yield this.get(this.getRecordKey(t));return t.m>n.m})}addRecord(t,n){this.record[t]=n}wrap(t){const n=this.creatNew(this.getRecordKey(t));return Object.assign(n,t),n}creatNew(t){return new vn[this.tableName].class(t)}getRecordKey(t){const n=vn[this.tableName].keyPath;return t[n]}fetchOne(t){return _e(this,null,function*(){yield it.waitForDB();const n=yield it.get(this.tableName,t);return n?this.wrap(n):this.creatNew(t)})}fetchAll(){return _e(this,null,function*(){return yield it.waitForDB(),(yield it.getAll(this.tableName)).map(n=>this.wrap(n))})}}class Br extends zo{constructor(){super(...arguments);Ge(this,"pending",new Set);Ge(this,"init",()=>{})}updateRecord(n){delete this.record[this.getRecordKey(n)]}exportAll(){return this.fetchAll()}get(n){return _e(this,null,function*(){if(this.pending.has(n))return new Promise((r,s)=>{setTimeout(()=>{this.get(n).then(i=>{r(i)}).catch(s)},10)});if(!Object.prototype.hasOwnProperty.call(this.record,n)){this.pending.add(n);const r=yield this.fetchOne(n);this.addRecord(n,r),this.pending.delete(n)}return this.record[n]})}}class jr extends zo{updateRecord(t){this.record[this.getRecordKey(t)]=this.wrap(t)}exportAll(){return Object.values(this.record)}init(){return _e(this,null,function*(){const t=yield this.fetchAll();for(const n of t)this.addRecord(this.getRecordKey(n),n)})}get(t){return Object.prototype.hasOwnProperty.call(this.record,t)||this.addRecord(t,this.creatNew(t)),this.record[t]}}class Yn extends Br{get(t,n){return _e(this,null,function*(){const r=yield $r(Yn.prototype,this,"get").call(this,t);if(n&&r.id==="")r.id=n;else if(n&&r.id!==n)throw new Error("文章id和uri不一致!!!");return r})}}const tr=class extends Se{constructor(n,r){super();Ge(this,"pair");Ge(this,"state",!1);this.pair=r?tr.createPairID(n,r):n}static createPairID(n,r){return n<r?n+this.separator+r:r+this.separator+n}static getIDs(n){const r=n.pair.split(tr.separator);if(r.length==2)return r;throw new Error("id格式错误")}getIDs(n=this){return tr.getIDs(n)}enable(){this.state=!0,this.save()}disable(){this.state=!1,this.save()}};let bn=tr;Ge(bn,"separator","|");class Yu extends jr{importMajias(t){return _e(this,null,function*(){for(let n=0;n<t.length;n++){const r=t[n],[s,i]=bn.getIDs(r),a=this.get(s);Tt(1,`导入${s}马甲`),r.state?yield a.addMajia(i):yield a.delMajia(i)}})}}const zt=new Yu("cachedMajiaTable");class Zu extends Se{constructor(t,n=[],r=[]){super(),this.id=t,this.majias=n,this.relativeIDs=r}addMajia(t){return _e(this,null,function*(){this.majias.includes(t)||(this.majias.push(t),this.getMajiaUser(t).addMajia(this.id),yield this.updateRelative(this.id))})}delMajia(t){return _e(this,null,function*(){const n=this.majias.indexOf(t);n!==-1&&(this.majias.splice(n,1),this.getMajiaUser(t).delMajia(this.id),yield this.updateRelative(this.id,t))})}updateRelative(...t){return _e(this,null,function*(){let n=[];for(const r of t){n.push(r);const s=this.getMajiaUser(r).relativeIDs;n=n.concat(s)}for(const r of n)yield this.getMajiaUser(r).update()})}update(){this.relativeIDs.length=0,this.relativeIDs.push(this.id);for(let t=0;t<this.relativeIDs.length;t++){const n=this.relativeIDs[t],r=zt.get(n).majias;for(let s=0;s<r.length;s++){const i=r[s];!this.relativeIDs.includes(i)&&this.relativeIDs.push(i)}}return this.relativeIDs.shift(),this.save()}getMajiaUser(t){return zt.get(t)}}const np="",rp="",ip="",sp="",Ho={version:2023102501e-2},Ue={version:0,host:location.host,base:location.origin,onMobile:!0,PROJECT_NAME:"smth_to_app",PROJECT_CONFIG_STORAGE_KEY:"newsmth_script_config",cssConfig:{fontSize:13},frameConfig:{component:[{el:"#top_head",name:"顶部",show:!0},{el:"#bot_foot",name:"底部",show:!1}]},mainpageConfig:{section:[{el:"#slider",name:"图片轮播",show:!0},{el:"#top10",name:"十大热门",show:!0},{el:".b_recommend",name:"精彩原创",show:!1},{el:"#tg_slider",name:"水木团购",show:!1},{el:".b_sectop10",name:"十大副本",show:!1},{el:"#hotspot",name:"近期热帖",show:!1},{el:"#pictures",name:"精彩贴图",show:!0},{el:".b_section.block",name:"分区十大",show:!0},{el:"#ranking .boards.rec_boards",name:"推荐版面",show:!0},{el:"#ranking .boards.hot_boards",name:"人气排行",show:!0},{el:"#ranking .boards.new_boards",name:"新开版面",show:!0},{el:".w_section .boards",name:"分区热版",show:!1},{el:"#about",name:"about",show:!1},{el:"#legal",name:"legal",show:!1}]},simplifyConfig:{simplify:!0,func:[{el:"#body>.b-head>span.n-right",name:"分享到微博",show:!1},{el:".simple-article .a-head .a-func li samp.ico-pos-reply, .simple-article .a-head .a-func li samp.ico-pos-reply ~ a",name:"回复",show:!0},{el:".simple-article .a-head .a-func li samp.ico-pos-template, .simple-article .a-head .a-func li samp.ico-pos-template ~ a",name:"模版回复",show:!1},{el:".simple-article .a-head .a-func li samp.ico-pos-forward, .simple-article .a-head .a-func li samp.ico-pos-forward ~ a",name:"转寄/转载",show:!1},{el:".simple-article .a-head .a-func li samp.ico-pos-friend, .simple-article .a-head .a-func li samp.ico-pos-friend ~ a",name:"关注",show:!1},{el:".simple-article .a-head .a-func li samp.ico-pos-search, .simple-article .a-head .a-func li samp.ico-pos-search ~ a",name:"搜索",show:!1},{el:".simple-article .a-head .a-func li samp.ico-pos-user, .simple-article .a-head .a-func li samp.ico-pos-user ~ a",name:"只看此ID",show:!1},{el:".simple-article .a-head .a-func li samp.ico-pos-edit, .simple-article .a-head .a-func li samp.ico-pos-edit ~ a",name:"编辑",show:!1},{el:".simple-article .a-head .a-func li samp.ico-pos-del, .simple-article .a-head .a-func li samp.ico-pos-del ~ a",name:"删除",show:!1},{el:".simple-article .a-head .a-func li samp.ico-pos-recomend, .simple-article .a-head .a-func li samp.ico-pos-recomend ~ a",name:"推荐",show:!1},{el:".simple-article .a-head .a-func li samp.ico-pos-switch, .simple-article .a-head .a-func li samp.ico-pos-switch ~ a",name:"标记",show:!0}]},customTags:{民科:{score:-1,use:!0},喷子:{score:-1,use:!0},阴阳怪气:{score:-1,use:!0},专业:{score:1,use:!0}},saveConfig(){localStorage.setItem(this.PROJECT_CONFIG_STORAGE_KEY,JSON.stringify(this))},init(){const e=localStorage.getItem(this.PROJECT_CONFIG_STORAGE_KEY),t=e?JSON.parse(e):{};t.version===Ho.version?Object.assign(this,t):(this.version=Ho.version,this.saveConfig())}};class Ju extends Br{constructor(){super("topicTable");Ge(this,"topicReg",/(article\/[\w|.]+\/\d+)(\?p=(\d+))?$/)}getTopicUri(n){const r=n.match(this.topicReg);return r?r[1]:null}onHashChange(n){const r=n.oldURL.match(this.topicReg);if(!r||n.newURL.match(r[1]))return;const i=document.querySelectorAll("#body>.b-content>a");if(i.length==0)return;const a=parseInt(i[i.length-1].name.substr(1)),o={p:parseInt(r[3]?r[3]:"1"),pos:a,scrollY:window.scrollY};this.get(r[1]).then(c=>{c.update(o)})}}const Jt=new Ju;class ji extends jr{getBlacklist(){const t=[];return Object.values(this.record).forEach(n=>{n.showUser()||t.push(n.id)}),t}init(){return _e(this,null,function*(){yield $r(ji.prototype,this,"init").call(this),Zn.updateBlacklistStyle()})}}const Ht=new ji("stateTable"),Zn={init:function(){if(!Ue.onMobile)return;document.body.classList.add("newsmth-plus");const e=document.createElement("meta");e.setAttribute("name","viewport"),e.setAttribute("content","width=device-width, initial-scale=1.0"),document.head.appendChild(e),this.initConfigCss()},styleSheet:{},blacklistStyle:{},initConfigCss(){this.styleSheet=document.createElement("style"),this.blacklistStyle=document.createElement("style");const{mainpageConfig:e,cssConfig:t,frameConfig:n,simplifyConfig:r}=Ue,s=e.section.concat(n.component).concat(r.func);let i="html{font-size:"+t.fontSize+"px}";s.forEach(a=>{a.show||(i+=a.el+"{display:none}")}),this.styleSheet.appendChild(document.createTextNode(i)),document.head.appendChild(this.styleSheet),document.head.appendChild(this.blacklistStyle)},updateBlacklistStyle:function(){const e=Ht.getBlacklist();let t="";e.forEach(n=>{t+=`#body table.article[${Ue.PROJECT_NAME}-id="${n}"]{display:none}`,t+=`#body table.board-list tr[${Ue.PROJECT_NAME}-id="${n}"]{display:none}`}),this.blacklistStyle.innerText=t},pxToRem:function(){if(!Ue.onMobile)return;const e=document.querySelector("#body>style");e!=null&&(e.innerHTML=Qu(e.innerHTML))},addVisitedLinkStyle:function(e,t){const n=Jt.getTopicUri(e.href);n&&Jt.get(n).then(r=>{t<=r.pos&&(e.style.opacity="0.5"),e.setAttribute("read",`(${r.pos+1}/${t+1})`)})}};function Qu(e){const t=/([0-9]+)px/g;return e.replace(t,(n,r)=>(parseInt(r)/10).toFixed(1)+"rem")}const An=class extends Se{constructor(t,n=0){super(),this.id=t,this.state=n}showUser(){return(An.hideUser&this.state)===0}showTag(){return(An.hideTag&this.state)===0}switchShowUser(){this.state^=An.hideUser,Zn.updateBlacklistStyle(),this.save()}switchShowTag(){this.state^=An.hideTag,this.save()}};let Jn=An;Ge(Jn,"hideUser",1),Ge(Jn,"hideTag",2);class ec extends Se{constructor(t,n=0,r={}){super(),this.id=t,this.score=n,this.tags=r}modify(t,n,r=!0){const s=this.tags;Object.prototype.hasOwnProperty.call(s,t)||(s[t]=0),s[t]+=n,this.score+=n,r&&this.save()}del(t,n=!0){this.tags[t]===0&&(delete this.tags[t],n&&this.save())}recompute(t,n=!0){return this.tags={},t.forEach(r=>{Object.entries(r.tags).forEach(([s,i])=>{this.modify(s,i)})}),this.score=Object.values(this.tags).reduce(function(r,s){return r+s},0),n&&this.save(),this}}class tc extends Se{constructor(t,n="",r=""){super(),this.uri=t,this.id=n,this.content=r}addcontent(t){this.content=t,this.save()}}const Nr=new Yn("articleTable");class Ni extends Yn{constructor(){super(...arguments);Ge(this,"userCache",{});Ge(this,"getByID",n=>_e(this,null,function*(){return Object.prototype.hasOwnProperty.call(this.userCache,n)||(this.userCache[n]={}),(yield this.getByIndexKey("id",n)).forEach(s=>{this.addRecord(s.articleUri,s),this.addToUserCache(s)}),this.userCache[n]}))}get(n,r=""){return _e(this,null,function*(){const s=yield $r(Ni.prototype,this,"get").call(this,n,r);return this.addToUserCache(s),s})}addToUserCache(n){const[r,s]=[n.id,n.articleUri];Object.prototype.hasOwnProperty.call(this.userCache,r)||(this.userCache[r]={}),Object.prototype.hasOwnProperty.call(this.userCache[r],s)||(this.userCache[r][s]=n)}afterImport(n){return super.afterImport(n),At.importArticleTags(n)}}const wn=new Ni("tagTable");class nc extends jr{importArticleTags(t){return _e(this,null,function*(){const n=[],r=[];for(let s=0;s<t.length;s++){const i=t[s].id;if(!r.includes(i)){r.push(i),Tt(1,`导入${i}标签`);const a=yield wn.getByID(i),o=this.get(i).recompute(Object.values(a),!1);n.push(o)}}yield it.saveAll(n,this.tableName)})}}const At=new nc("cachedTagTable");class rc extends Br{constructor(){super(...arguments);Ge(this,"keys",[])}beforeImport(){return _e(this,null,function*(){this.keys=yield it.getAllKeys(this.tableName)})}checkToImport(n){return _e(this,null,function*(){return!this.keys.includes(n.imgUri)})}}const yn=new rc("imgTable"),Go=new Yn("likeTable");class ic extends Br{afterImport(t){return super.afterImport(t),zt.importMajias(t)}get(t,n){const r=n?bn.createPairID(t,n):t;return super.get(r)}}const Ui=new ic("majiaTable");class sc extends jr{checkToImport(t){return _e(this,null,function*(){const n=yield this.get(t.id),r=Object.values(t.IPs).reduce((i,a)=>i+a,0),s=Object.values(n.IPs).reduce((i,a)=>i+a,0);return r>s})}}const Pi=new sc("ipTable"),vn={stateTable:{comment:"名单",class:Jn,keyPath:"id",index:[]},articleTable:{comment:"文章",class:Pe,keyPath:"articleUri",index:[{key:"id",unique:!1}]},tagTable:{comment:"标签",class:Kr,keyPath:"articleUri",index:[{key:"id",unique:!1}]},likeTable:{comment:"like",class:tc,keyPath:"uri",index:[{key:"id",unique:!1}]},topicTable:{comment:"浏览记录",class:Xr,keyPath:"topicUri",index:[]},imgTable:{comment:"图片",class:On,keyPath:"imgUri",index:[]},ipTable:{comment:"ip统计",class:rr,keyPath:"id",index:[]},majiaTable:{comment:"马甲",class:bn,keyPath:"pair",index:[]},cachedMajiaTable:{comment:"马甲缓存",class:Zu,keyPath:"id",index:[]},cachedTagTable:{comment:"标签缓存",class:ec,keyPath:"id",index:[]}},Fi={stateTable:Ht,articleTable:Nr,tagTable:wn,likeTable:Go,topicTable:Jt,imgTable:yn,ipTable:Pi,majiaTable:Ui,cachedMajiaTable:zt,cachedTagTable:At},kn="fileTable",Mi={ipDB:"ip"};Object.freeze(vn),Object.freeze(Fi),Object.freeze(Mi);function oc(e){const t=Object.entries(vn);for(let n=0;n<t.length;n++){const[r,s]=t[n];if(e instanceof s.class)return r}throw new Error("对象类型错误")}let Ye,Li=!1;function $o(){if(!Li)return new Promise(e=>{setTimeout(()=>_e(this,null,function*(){yield $o(),e()}),10)})}function ac(){return Li=!1,new Promise((e,t)=>{const n=indexedDB.open("newsmthScriptDatabase",1);n.onerror=()=>{t("failed to open indexedDB")},n.onsuccess=()=>{Ye=n.result,Li=!0,e(Ye)},n.onupgradeneeded=r=>{Ye=r.target.result,Ye.objectStoreNames.contains(kn)||Ye.createObjectStore(kn),Object.entries(vn).forEach(([s,i])=>{if(!Ye.objectStoreNames.contains(s)){const a=Ye.createObjectStore(s,{keyPath:i.keyPath});a.createIndex("update_time","u"),i.index.forEach(o=>{a.createIndex(o.key,o.key,{unique:o.unique})})}})}})}function lc(e,t){return new Promise((n,r)=>{const s=Ye.transaction([kn],"readwrite").objectStore(kn).put(e,t);s.onerror=r,s.onsuccess=n})}function uc(e){return new Promise((t,n)=>{const r=Ye.transaction([kn]).objectStore(kn).get(e);r.onerror=n,r.onsuccess=function(){t(r.result)}})}function cc(e,t){const n=t||oc(e);return new Promise((r,s)=>{e.u=Date.now();const i=Ye.transaction([n],"readwrite").objectStore(n).put(ke(e));i.onerror=s,i.onsuccess=r})}function dc(e,t){return new Promise((n,r)=>{const s=Ye.transaction([e]).objectStore(e).get(t);s.onerror=r,s.onsuccess=function(){n(s.result)}})}function hc(e,t,n){return new Promise((r,s)=>{const i=[],a=Ye.transaction([e]),o=a.objectStore(e).index(t).openCursor(IDBKeyRange.only(n));o.onsuccess=function(){const c=o.result;c&&(i.push(c.value),c.continue())},a.oncomplete=function(){r(i)},a.onerror=s})}function pc(e,t){return new Promise((n,r)=>{const s=Ye.transaction([t],"readwrite"),i=s.objectStore(t);e.forEach(a=>{a.u=Date.now(),i.put(ke(a))}),s.oncomplete=n,s.onerror=r})}function fc(e){return new Promise((t,n)=>{const r=Ye.transaction([e]).objectStore(e).getAll();r.onsuccess=function(){t(r.result)},r.onerror=n})}function mc(e){return new Promise((t,n)=>{const r=Ye.transaction([e]).objectStore(e).getAllKeys();r.onsuccess=function(){t(r.result)},r.onerror=n})}const it={initDB:ac,waitForDB:$o,saveFile:lc,getFile:uc,get:dc,getAll:fc,getAllKeys:mc,getByIndexKey:hc,save:cc,saveAll:pc};var gc=!1;/*!
  * pinia v2.0.33
  * (c) 2023 Eduardo San Martin Morote
  * @license MIT
  */let Ko;const Ur=e=>Ko=e,Xo=Symbol();function zi(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Qn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Qn||(Qn={}));function _c(){const e=ds(!0),t=e.run(()=>Xe({}));let n=[],r=[];const s=cn({install(i){Ur(s),s._a=i,i.provide(Xo,s),i.config.globalProperties.$pinia=s,r.forEach(a=>n.push(a)),r=[]},use(i){return!this._a&&!gc?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Wo=()=>{};function qo(e,t,n,r=Wo){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&hs()&&Na(s),s}function xn(e,...t){e.slice().forEach(n=>{n(...t)})}function Hi(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];zi(s)&&zi(r)&&e.hasOwnProperty(n)&&!Me(r)&&!Rt(r)?e[n]=Hi(s,r):e[n]=r}return e}const bc=Symbol();function wc(e){return!zi(e)||!e.hasOwnProperty(bc)}const{assign:Gt}=Object;function yc(e){return!!(Me(e)&&e.effect)}function vc(e,t,n,r){const{state:s,actions:i,getters:a}=t,o=n.state.value[e];let c;function h(){o||(n.state.value[e]=s?s():{});const f=pl(n.state.value[e]);return Gt(f,i,Object.keys(a||{}).reduce((_,w)=>(_[w]=cn(Dr(()=>{Ur(n);const p=n._s.get(e);return a[w].call(p,p)})),_),{}))}return c=Vo(e,h,t,n,r,!0),c}function Vo(e,t,n={},r,s,i){let a;const o=Gt({actions:{}},n),c={deep:!0};let h,f,_=cn([]),w=cn([]),p;const v=r.state.value[e];!i&&!v&&(r.state.value[e]={}),Xe({});let m;function E(z){let X;h=f=!1,typeof z=="function"?(z(r.state.value[e]),X={type:Qn.patchFunction,storeId:e,events:p}):(Hi(r.state.value[e],z),X={type:Qn.patchObject,payload:z,storeId:e,events:p});const G=m=Symbol();Ps().then(()=>{m===G&&(h=!0)}),f=!0,xn(_,X,r.state.value[e])}const k=i?function(){const{state:X}=n,G=X?X():{};this.$patch(ee=>{Gt(ee,G)})}:Wo;function S(){a.stop(),_=[],w=[],r._s.delete(e)}function T(z,X){return function(){Ur(r);const G=Array.from(arguments),ee=[],se=[];function D(Z){ee.push(Z)}function Y(Z){se.push(Z)}xn(w,{args:G,name:z,store:j,after:D,onError:Y});let b;try{b=X.apply(this&&this.$id===e?this:j,G)}catch(Z){throw xn(se,Z),Z}return b instanceof Promise?b.then(Z=>(xn(ee,Z),Z)).catch(Z=>(xn(se,Z),Promise.reject(Z))):(xn(ee,b),b)}}const F={_p:r,$id:e,$onAction:qo.bind(null,w),$patch:E,$reset:k,$subscribe(z,X={}){const G=qo(_,z,X.detached,()=>ee()),ee=a.run(()=>Et(()=>r.state.value[e],se=>{(X.flush==="sync"?f:h)&&z({storeId:e,type:Qn.direct,events:p},se)},Gt({},c,X)));return G},$dispose:S},j=bt(F);r._s.set(e,j);const q=r._e.run(()=>(a=ds(),a.run(()=>t())));for(const z in q){const X=q[z];if(Me(X)&&!yc(X)||Rt(X))i||(v&&wc(X)&&(Me(X)?X.value=v[z]:Hi(X,v[z])),r.state.value[e][z]=X);else if(typeof X=="function"){const G=T(z,X);q[z]=G,o.actions[z]=X}}return Gt(j,q),Gt(ke(j),q),Object.defineProperty(j,"$state",{get:()=>r.state.value[e],set:z=>{E(X=>{Gt(X,z)})}}),r._p.forEach(z=>{Gt(j,a.run(()=>z({store:j,app:r._a,pinia:r,options:o})))}),v&&i&&n.hydrate&&n.hydrate(j.$state,v),h=!0,f=!0,j}function kc(e,t,n){let r,s;const i=typeof t=="function";typeof e=="string"?(r=e,s=i?n:t):(s=e,r=e.id);function a(o,c){const h=yo();return o=o||h&&Gn(Xo,null),o&&Ur(o),o=Ko,o._s.has(r)||(i?Vo(r,t,s,o):vc(r,s,o)),o._s.get(r)}return a.$id=r,a}const gt=kc("appStateStore",()=>{const e=/#!(\w+)(\/|$)/,t=/#!article\/([\w.]+)\/(\d+)($|\?)/,n={hash:"",scrollY:0},r=bt({mainHash:"mainpage",showState:{showSetting:!1,state:0},topicState:{board:"",topicId:""},articleInfoArr:[]});function s(c){c==="left"&&r.showState.state!==1?r.showState.state++:c==="right"&&r.showState.state!==-1&&r.showState.state--}function i(){const c=location.hash,h=c.match(e);if(h!=null&&(r.mainHash=h[1],r.mainHash==="article")){const f=c.match(t);if(f==null)return;r.topicState.board=f[1],r.topicState.topicId=f[2],f[3]}}function a(){r.showState.state=0}function o(){i();for(let c=0;c<10;c++)r.articleInfoArr.push({userId:"",articleId:"",content:"",p:{},showModifier:!1,ip:"",articleUri:"//"})}return{scrollY:n,appState:r,init:o,onHashChange:i,changeShowstate:s,onBodyMut:a}});function Yo(){setTimeout(()=>{window.APP.body.refresh(!0)},0)}function Zo(){var n;const e=document.querySelector("#b_search"),t=document.createElement("form");t.onsubmit=r=>{e.blur(),e.value="",r.preventDefault()},(n=e.parentElement)==null||n.appendChild(t),t.appendChild(e)}function xc(){document.addEventListener("error",function(e){return _e(this,null,function*(){const t=e.target;if(t instanceof HTMLImageElement&&t.src.endsWith("/large")){let n=t.src.replace(/\/large$/,"");const r=yield yn.get(n);r.imgBlob&&(n=URL.createObjectURL(r.imgBlob)),t.src=n}})},!0)}const Ec={class:"slist folder-close"},Sc={class:"x-leaf"},Ic=te("span",{class:"toggler ico-pos-manage"},null,-1),Tc=Le({__name:"MenuSetting",props:{msg:null},setup(e){const t=gt().appState.showState,n=document.querySelector("#menu"),r=n.querySelector("#u_login"),s=n.querySelector("#xlist"),i="newsmth_script_username",a="newsmth_script_password",o="newsmth_script_pass_config",c=Xe(null);n.addEventListener("click",p=>{var m;const v=p.target;if(v instanceof HTMLElement){if(v.id==="u_login_submit"){const E=gt().scrollY;E.hash=location.hash,E.scrollY=window.scrollY,window.SESSION.trigger("logout"),h((m=n.querySelector("#u_login_cookie"))==null?void 0:m.checked)}else if(v instanceof HTMLLIElement){const E=v.querySelectorAll("a");if(E.length!==1)return;p.stopPropagation(),E[0].click()}}});function h(p){const v=n.querySelector("#u_login_id"),m=n.querySelector("#u_login_passwd");v===null||m===null||(p?(localStorage.setItem(o,"1"),localStorage.setItem(i,v.value),localStorage.setItem(a,m.value)):(localStorage.setItem(o,"0"),localStorage.setItem(i,""),localStorage.setItem(a,"")))}function f(){const p=n.querySelector("#u_login_id"),v=n.querySelector("#u_login_passwd"),m=n.querySelector("#u_login_cookie"),E=m==null?void 0:m.nextElementSibling;if(p&&v&&m&&E){const k=localStorage.getItem(o)=="1";if(m.checked=k,E.innerHTML="保存账号密码",k){const S=localStorage.getItem(i),T=localStorage.getItem(a);p.value=S||"",v.value=T||""}}}function _(){var m;const p=(m=c.value)==null?void 0:m.clientHeight,v=window.innerHeight-10-r.clientHeight-(p||50);s.style.maxHeight=v+"px"}Et(()=>t.state,(p,v)=>{var m,E,k;v===0&&p===-1?(m=document.querySelector("#menu"))==null||m.classList.add("display"):v===-1&&p===0&&((E=document.querySelector("#menu"))==null||E.classList.remove("display"),(k=document.querySelector("#b_search"))==null||k.blur())});const w={attributes:!1,childList:!0,subtree:!1};return new MutationObserver(()=>{f(),Zo(),_()}).observe(r,w),f(),Zo(),_(),(p,v)=>(le(),pe("nav",{ref_key:"list_menu",ref:c,id:"xlist-menu",class:"corner"},[te("ul",null,[te("li",Ec,[te("span",Sc,[Ic,te("a",{onClick:v[0]||(v[0]=m=>ye(t).showSetting=!0)},"设置面板")])])])],512))}}),op="",Ac=["innerHTML"],Oc=Le({__name:"SingleArticle",props:{msg:null,articleUri:null},setup(e){return _e(this,null,function*(){let t,n;const r=e,i=([t,n]=Oi(()=>Nr.get(r.articleUri)),t=yield t,n(),t).content;return(a,o)=>(le(!0),pe(Be,null,lt(ye(i),(c,h)=>(le(),pe("p",{key:h,innerHTML:c},null,8,Ac))),128))})}}),ap="",Qt=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Cc=Qt(Oc,[["__scopeId","data-v-514dd0cc"]]),Dc=Le({__name:"ArticleTags",props:{msg:null,userId:null,tagNames:null},setup(e){return _e(this,null,function*(){let t,n;const r=e,s=([t,n]=Oi(()=>wn.getByID(r.userId)),t=yield t,n(),t);function i(a){const o=Object.keys(a.tags);for(const c of r.tagNames)if(o.includes(c))return!0;return!1}return(a,o)=>(le(!0),pe(Be,null,lt(ye(s),c=>(le(),pe("div",{key:c.articleUri},[i(c)?(le(),ct(Cc,{key:0,"article-uri":c.articleUri},null,8,["article-uri"])):rt("",!0)]))),128))})}}),Rc=["onClick"],Bc={key:0},jc=Le({__name:"UserTags",props:{userId:null},setup(e){const t=e,n=Xe([]);return Et(t,()=>{n.value.splice(0)}),(r,s)=>(le(),pe(Be,null,[te("div",null,[(le(!0),pe(Be,null,lt(ye(At).get(t.userId).tags,(i,a)=>(le(),pe("a",{key:a,onClick:o=>n.value.includes(a)?n.value.splice(n.value.indexOf(a),1):n.value.push(a)},[te("span",{class:tt([n.value.includes(a)?"checked":"unchecked"])},He(a)+"("+He(i)+") ",3)],8,Rc))),128))]),(le(),ct(Ks,null,{default:hi(()=>[n.value.length>0?(le(),pe("div",Bc,[Oe(Dc,{"user-id":t.userId,"tag-names":n.value},null,8,["user-id","tag-names"])])):rt("",!0)]),_:1}))],64))}}),lp="",Gi=Qt(jc,[["__scopeId","data-v-14f5caff"]]),Nc=["checked"],Uc=["placeholder"],Pc=te("button",{type:"submit"},"添加",-1),Fc=te("datalist",{id:"candidates"},null,-1),Mc=Le({__name:"SingleUser",props:{msg:null,userId:null},setup(e){const t=e,n=At.record[t.userId],r=Ht.get(t.userId),s=zt.get(t.userId),i=Xe(""),a=Xe(!1);function o(c){return _e(this,null,function*(){if(i.value.trim()==="")return;const f=yield Ui.get(t.userId,i.value);c==="add"?(f.state||f.enable(),s.addMajia(i.value)):(f.state&&f.disable(),s.delMajia(i.value))})}return(c,h)=>(le(),pe("div",null,[te("h3",null,[te("span",null,He(ye(n).id)+" ("+He(ye(n).score)+") ",1),te("span",{onClick:h[0]||(h[0]=f=>a.value=!a.value)}," ["+He(ye(s).relativeIDs.join(" "))+"] ",1),te("input",{type:"checkbox",checked:ye(r).showUser(),onClick:h[1]||(h[1]=(...f)=>ye(r).switchShowUser&&ye(r).switchShowUser(...f))},null,8,Nc),a.value?(le(),pe("form",{key:0,onSubmit:h[4]||(h[4]=Lt(f=>o("add"),["prevent"]))},[te("button",{type:"button",onClick:h[2]||(h[2]=Lt(f=>o("del"),["prevent"]))},"删除"),Je(te("input",{type:"text","onUpdate:modelValue":h[3]||(h[3]=f=>i.value=f),placeholder:ye(s).majias.length==0?"马甲":ye(s).majias.join(" "),list:"candidates"},null,8,Uc),[[Rr,i.value]]),Pc],32)):rt("",!0),Fc]),Oe(Gi,{"user-id":t.userId},null,8,["user-id"])]))}}),En=e=>(Ln("data-v-a92edd2d"),e=e(),zn(),e),Lc={class:"search"},zc=[En(()=>te("option",{disabled:""},"排序",-1)),En(()=>te("option",{value:"1"},"正序",-1)),En(()=>te("option",{value:"-1"},"倒序",-1))],Hc=[En(()=>te("option",{disabled:""},"来源",-1)),En(()=>te("option",{value:"local"},"本地",-1)),En(()=>te("option",{value:"smth.top"},"smth.top",-1))],Gc=Le({__name:"UserPanel",setup(e){const t=bt({searchText:"",score:1,source:"local"}),n=Dr(()=>Object.values(At.record).filter(i=>s(i)).sort((i,a)=>{const o=Ht.get(i.id).showUser(),c=Ht.get(a.id).showUser();return o!==c?(c?1:-1)*t.score:(a.score-i.score)*t.score})),r=gt().appState.showState;function s(i){if(i.id==="")return!1;if(i.id===t.searchText)return!0;const a=Object.keys(i.tags);if(a.length===0)return!1;let o=new RegExp(t.searchText,"ig");return!!(i.id.match(o)||zt.get(i.id).relativeIDs.some(c=>c.match(o))||a.some(c=>c.match(o)))}return(i,a)=>(le(),pe("div",{style:{height:"100%","min-width":"13rem"},id:"smth_mark_id_panel",class:tt({display:ye(r).state===1})},[Je(te("div",null,[(le(!0),pe(Be,null,lt(ye(n),o=>(le(),pe("div",{key:o.id},[Oe(Mc,{class:"border","user-id":o.id},null,8,["user-id"])]))),128))],512),[[No,t.source==="local"]]),Je(te("div",null,"由于本青拖延症,该页面迟迟未开发。。。。。。",512),[[No,t.source==="smth.top"]]),te("div",Lc,[Je(te("input",{type:"text",placeholder:"搜索","onUpdate:modelValue":a[0]||(a[0]=o=>t.searchText=o)},null,512),[[Rr,t.searchText]]),Je(te("select",{"onUpdate:modelValue":a[1]||(a[1]=o=>t.score=o),style:{height:"2rem"}},zc,512),[[Ro,t.score,void 0,{number:!0}]]),Je(te("select",{"onUpdate:modelValue":a[2]||(a[2]=o=>t.source=o),style:{height:"2rem"}},Hc,512),[[Ro,t.source,void 0,{number:!0}]])])],2))}}),mp="",$c=Qt(Gc,[["__scopeId","data-v-a92edd2d"]]),Kc=(e=>(Ln("data-v-17437468"),e=e(),zn(),e))(()=>te("samp",{class:"ico-pos-switch"},null,-1)),Xc=Le({__name:"ModifierSwitch",props:{msg:null,articleInfo:null},setup(e){const t=e;function n(){const r=t.articleInfo;r.showModifier=!r.showModifier}return(r,s)=>(le(),pe("li",null,[Kc,te("a",{onClick:s[0]||(s[0]=i=>n())},"标记")]))}}),_p="",Wc=Qt(Xc,[["__scopeId","data-v-17437468"]]),Jo={init:function(){window.addEventListener("message",Yc,!1),er==="static"&&($e=window.opener,$e==null||$e.postMessage({act:"ready"},"https://www.newsmth.net"))},openUrl:function(e){return _e(this,null,function*(){if(e.length!==0){for(let t=0;t<e.length;t++){const r=e[t].replace(/\/(large)|(middle)|(small)$/,"");(yield yn.get(r)).imgBlob||Sn.push(r)}!($e!=null&&$e.window)&&Sn.length>0&&($e=window.open(Sn[0]),window.focus())}})}},Sn=[],er=location.hostname.split(".")[0];let $e=null;function qc(e){return _e(this,null,function*(){const t=[];for(let n=0;n<e.length;n++){const r=e[n],s=yield(yield fetch(location.pathname)).blob();t.push(new On(r,s))}$e==null||$e.postMessage({act:"imgs",imgs:t},"*")})}function Vc(e){e.forEach(t=>{yn.get(t.imgUri).then(n=>{n.addImgData(t.imgBlob)})}),Sn.length=0,$e==null||$e.postMessage({act:"close"},"*")}function Yc(e){const t=ns(ns({},Zc),e.data);switch(t.act){case"ready":er==="www"&&Sn.length>0&&($e==null||$e.postMessage({act:"uris",uris:Sn},"*"));break;case"uris":er==="static"&&qc(t.uris);break;case"imgs":er==="www"&&Vc(t.imgs);break;case"close":er==="static"&&window.close();break}}const Zc={act:"null",imgs:[],uris:[]},Jc=e=>(Ln("data-v-b2f5116b"),e=e(),zn(),e),Qc={class:"modifier"},ed={class:"commonTags"},td=["onClick"],nd=["placeholder"],rd=Jc(()=>te("button",{type:"submit",class:"negative"},"踩",-1)),id=["disabled"],sd=Le({__name:"TagModifier",props:{msg:null,userId:null,articleId:null,articleUri:null,content:null,p:null},setup(e){return _e(this,null,function*(){let t,n;const r=e,s=Ue.customTags,i=([t,n]=Oi(()=>wn.get(r.articleUri,r.userId)),t=yield t,n(),t),a=At.get(r.userId),o=Xe(""),c=Dr(()=>JSON.stringify(i.tags).replace(/\{|\}/g,""));function h(){return _e(this,null,function*(){i.del(o.value);const p=yield wn.getByID(r.userId);a.recompute(Object.values(p))})}function f(p){a.modify(o.value,p),i.modify(o.value,p),_(),w()}function _(){Nr.get(r.articleUri,r.userId).then(p=>{p.addContent(r.content)})}function w(){const p=r.p.querySelectorAll("img"),v=[];for(let m=0;m<p.length;m++){const E=p[m];if(E.src.startsWith("https://www.newsmth.net/nForum/")){const k=E.src.replace(/\/large$/,"");yn.get(k).then(S=>_e(this,null,function*(){if(!S.imgBlob){const T=yield fetch(k);if(T.status!==200)return;const F=yield T.blob();S.addImgData(F)}}))}else(E.src.startsWith("https://static.newsmth.net/nForum/")||E.src.startsWith("https://static.mysmth.net/nForum/"))&&v.push(E.src)}Jo.openUrl(v)}return(p,v)=>(le(),pe("div",Qc,[te("div",ed,[(le(!0),pe(Be,null,lt(ye(s),(m,E)=>(le(),pe("span",{key:E},[m.use?(le(),pe("label",{key:0,class:tt({positive:m.score===1,negative:m.score===-1}),onClick:()=>{o.value=E,f(m.score)}},He(E),11,td)):rt("",!0)]))),128))]),te("form",{onSubmit:v[3]||(v[3]=Lt(m=>f(-1),["prevent"]))},[Je(te("input",{type:"text","onUpdate:modelValue":v[0]||(v[0]=m=>o.value=m),placeholder:ye(c)},null,8,nd),[[Rr,o.value,void 0,{trim:!0}]]),te("span",null,"("+He(ye(i).tags[o.value])+")",1),te("button",{type:"button",onClick:v[1]||(v[1]=Lt(m=>f(1),["prevent"])),class:"positive"},"赞"),rd,te("button",{type:"button",onClick:v[2]||(v[2]=Lt(m=>h(),["prevent"])),disabled:ye(i).tags[o.value]===void 0}," 清除 ",8,id)],32)]))})}}),wp="",od=Qt(sd,[["__scopeId","data-v-b2f5116b"]]),ad=Le({__name:"SingleMajia",props:{msg:null,userId:null},setup(e){const t=e,n=Xe(!1),r=At.get(t.userId);return(s,i)=>(le(),pe(Be,null,[te("span",{onClick:i[0]||(i[0]=a=>n.value=!n.value)},He(e.userId)+"("+He(ye(r).score==0?"":ye(r).score)+") ",1),n.value?(le(),ct(Gi,{key:0,"user-id":t.userId},null,8,["user-id"])):rt("",!0)],64))}}),ld=Le({__name:"UserMajias",props:{msg:null,userId:null},setup(e){const t=e;return(n,r)=>(le(!0),pe(Be,null,lt(ye(zt).get(t.userId).relativeIDs,s=>(le(),ct(ad,{key:s,"user-id":s},null,8,["user-id"]))),128))}}),ud=Le({__name:"UserDataBundle",props:{msg:null,articleInfo:null},setup(e){const t=e,n=Ht.get(t.articleInfo.userId);return(r,s)=>(le(),pe("div",null,[Oe(ld,{"user-id":e.articleInfo.userId},null,8,["user-id"]),ye(n).showTag()?(le(),ct(Gi,{key:0,"user-id":e.articleInfo.userId},null,8,["user-id"])):rt("",!0),(le(),ct(Ks,null,{default:hi(()=>[e.articleInfo.showModifier?(le(),ct(od,xa(wo({key:0},e.articleInfo)),null,16)):rt("",!0)]),_:1}))]))}}),Qo=8,cd=256,dd=256*256*(4+4),$i=14,hd=/^((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.){3}(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])$/;class pd{constructor(t){Ge(this,"_buffer");Ge(this,"_vectorIndex");this._buffer=t,this._vectorIndex=this._buffer.subarray(256,256+dd)}getStartEndPtr(t){const n=this._vectorIndex.readUInt32LE(t),r=this._vectorIndex.readUInt32LE(t+4);return{sPtr:n,ePtr:r}}getBuffer(t,n){return this._buffer.subarray(t,t+n)}search(t){if(!fd(t))return{region:null};const n=t.split("."),r=parseInt(n[0]),s=parseInt(n[1]),i=parseInt(n[2]),a=parseInt(n[3]),o=r*256*256*256+s*256*256+i*256+a,c=r*cd*Qo+s*Qo,{sPtr:h,ePtr:f}=this.getStartEndPtr(c);let _=0,w=(f-h)/$i,p=null;for(;_<=w;){const v=_+w>>1,m=h+v*$i,E=this.getBuffer(m,$i),k=E.readUInt32LE(0);if(o<k)w=v-1;else{const S=E.readUInt32LE(4);if(o>S)_=v+1;else{const T=E.readUInt16LE(8),F=E.readUInt32LE(10);p=this.getBuffer(F,T).toString("utf-8");break}}}return{region:p}}}const fd=e=>hd.test(e);var Pr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ea={},Fr={};Fr.byteLength=_d,Fr.toByteArray=wd,Fr.fromByteArray=kd;for(var vt=[],dt=[],md=typeof Uint8Array!="undefined"?Uint8Array:Array,Ki="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",In=0,gd=Ki.length;In<gd;++In)vt[In]=Ki[In],dt[Ki.charCodeAt(In)]=In;dt["-".charCodeAt(0)]=62,dt["_".charCodeAt(0)]=63;function ta(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function _d(e){var t=ta(e),n=t[0],r=t[1];return(n+r)*3/4-r}function bd(e,t,n){return(t+n)*3/4-n}function wd(e){var t,n=ta(e),r=n[0],s=n[1],i=new md(bd(e,r,s)),a=0,o=s>0?r-4:r,c;for(c=0;c<o;c+=4)t=dt[e.charCodeAt(c)]<<18|dt[e.charCodeAt(c+1)]<<12|dt[e.charCodeAt(c+2)]<<6|dt[e.charCodeAt(c+3)],i[a++]=t>>16&255,i[a++]=t>>8&255,i[a++]=t&255;return s===2&&(t=dt[e.charCodeAt(c)]<<2|dt[e.charCodeAt(c+1)]>>4,i[a++]=t&255),s===1&&(t=dt[e.charCodeAt(c)]<<10|dt[e.charCodeAt(c+1)]<<4|dt[e.charCodeAt(c+2)]>>2,i[a++]=t>>8&255,i[a++]=t&255),i}function yd(e){return vt[e>>18&63]+vt[e>>12&63]+vt[e>>6&63]+vt[e&63]}function vd(e,t,n){for(var r,s=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255),s.push(yd(r));return s.join("")}function kd(e){for(var t,n=e.length,r=n%3,s=[],i=16383,a=0,o=n-r;a<o;a+=i)s.push(vd(e,a,a+i>o?o:a+i));return r===1?(t=e[n-1],s.push(vt[t>>2]+vt[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],s.push(vt[t>>10]+vt[t>>4&63]+vt[t<<2&63]+"=")),s.join("")}var Xi={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Xi.read=function(e,t,n,r,s){var i,a,o=s*8-r-1,c=(1<<o)-1,h=c>>1,f=-7,_=n?s-1:0,w=n?-1:1,p=e[t+_];for(_+=w,i=p&(1<<-f)-1,p>>=-f,f+=o;f>0;i=i*256+e[t+_],_+=w,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=r;f>0;a=a*256+e[t+_],_+=w,f-=8);if(i===0)i=1-h;else{if(i===c)return a?NaN:(p?-1:1)*(1/0);a=a+Math.pow(2,r),i=i-h}return(p?-1:1)*a*Math.pow(2,i-r)},Xi.write=function(e,t,n,r,s,i){var a,o,c,h=i*8-s-1,f=(1<<h)-1,_=f>>1,w=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,v=r?1:-1,m=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+_>=1?t+=w/c:t+=w*Math.pow(2,1-_),t*c>=2&&(a++,c/=2),a+_>=f?(o=0,a=f):a+_>=1?(o=(t*c-1)*Math.pow(2,s),a=a+_):(o=t*Math.pow(2,_-1)*Math.pow(2,s),a=0));s>=8;e[n+p]=o&255,p+=v,o/=256,s-=8);for(a=a<<s|o,h+=s;h>0;e[n+p]=a&255,p+=v,a/=256,h-=8);e[n+p-v]|=m*128};/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */(function(e){const t=Fr,n=Xi,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=o,e.SlowBuffer=S,e.INSPECT_MAX_BYTES=50;const s=2147483647;e.kMaxLength=s,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const g=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(g,l),g.foo()===42}catch(g){return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(g){if(g>s)throw new RangeError('The value "'+g+'" is invalid for option "size"');const l=new Uint8Array(g);return Object.setPrototypeOf(l,o.prototype),l}function o(g,l,d){if(typeof g=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(g)}return c(g,l,d)}o.poolSize=8192;function c(g,l,d){if(typeof g=="string")return w(g,l);if(ArrayBuffer.isView(g))return v(g);if(g==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof g);if(B(g,ArrayBuffer)||g&&B(g.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(B(g,SharedArrayBuffer)||g&&B(g.buffer,SharedArrayBuffer)))return m(g,l,d);if(typeof g=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const I=g.valueOf&&g.valueOf();if(I!=null&&I!==g)return o.from(I,l,d);const N=E(g);if(N)return N;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof g[Symbol.toPrimitive]=="function")return o.from(g[Symbol.toPrimitive]("string"),l,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof g)}o.from=function(g,l,d){return c(g,l,d)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function h(g){if(typeof g!="number")throw new TypeError('"size" argument must be of type number');if(g<0)throw new RangeError('The value "'+g+'" is invalid for option "size"')}function f(g,l,d){return h(g),g<=0?a(g):l!==void 0?typeof d=="string"?a(g).fill(l,d):a(g).fill(l):a(g)}o.alloc=function(g,l,d){return f(g,l,d)};function _(g){return h(g),a(g<0?0:k(g)|0)}o.allocUnsafe=function(g){return _(g)},o.allocUnsafeSlow=function(g){return _(g)};function w(g,l){if((typeof l!="string"||l==="")&&(l="utf8"),!o.isEncoding(l))throw new TypeError("Unknown encoding: "+l);const d=T(g,l)|0;let I=a(d);const N=I.write(g,l);return N!==d&&(I=I.slice(0,N)),I}function p(g){const l=g.length<0?0:k(g.length)|0,d=a(l);for(let I=0;I<l;I+=1)d[I]=g[I]&255;return d}function v(g){if(B(g,Uint8Array)){const l=new Uint8Array(g);return m(l.buffer,l.byteOffset,l.byteLength)}return p(g)}function m(g,l,d){if(l<0||g.byteLength<l)throw new RangeError('"offset" is outside of buffer bounds');if(g.byteLength<l+(d||0))throw new RangeError('"length" is outside of buffer bounds');let I;return l===void 0&&d===void 0?I=new Uint8Array(g):d===void 0?I=new Uint8Array(g,l):I=new Uint8Array(g,l,d),Object.setPrototypeOf(I,o.prototype),I}function E(g){if(o.isBuffer(g)){const l=k(g.length)|0,d=a(l);return d.length===0||g.copy(d,0,0,l),d}if(g.length!==void 0)return typeof g.length!="number"||K(g.length)?a(0):p(g);if(g.type==="Buffer"&&Array.isArray(g.data))return p(g.data)}function k(g){if(g>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return g|0}function S(g){return+g!=g&&(g=0),o.alloc(+g)}o.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==o.prototype},o.compare=function(l,d){if(B(l,Uint8Array)&&(l=o.from(l,l.offset,l.byteLength)),B(d,Uint8Array)&&(d=o.from(d,d.offset,d.byteLength)),!o.isBuffer(l)||!o.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===d)return 0;let I=l.length,N=d.length;for(let $=0,W=Math.min(I,N);$<W;++$)if(l[$]!==d[$]){I=l[$],N=d[$];break}return I<N?-1:N<I?1:0},o.isEncoding=function(l){switch(String(l).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(l,d){if(!Array.isArray(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return o.alloc(0);let I;if(d===void 0)for(d=0,I=0;I<l.length;++I)d+=l[I].length;const N=o.allocUnsafe(d);let $=0;for(I=0;I<l.length;++I){let W=l[I];if(B(W,Uint8Array))$+W.length>N.length?(o.isBuffer(W)||(W=o.from(W)),W.copy(N,$)):Uint8Array.prototype.set.call(N,W,$);else if(o.isBuffer(W))W.copy(N,$);else throw new TypeError('"list" argument must be an Array of Buffers');$+=W.length}return N};function T(g,l){if(o.isBuffer(g))return g.length;if(ArrayBuffer.isView(g)||B(g,ArrayBuffer))return g.byteLength;if(typeof g!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof g);const d=g.length,I=arguments.length>2&&arguments[2]===!0;if(!I&&d===0)return 0;let N=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return x(g).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return M(g).length;default:if(N)return I?-1:x(g).length;l=(""+l).toLowerCase(),N=!0}}o.byteLength=T;function F(g,l,d){let I=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,l>>>=0,d<=l))return"";for(g||(g="utf8");;)switch(g){case"hex":return ne(this,l,d);case"utf8":case"utf-8":return b(this,l,d);case"ascii":return Q(this,l,d);case"latin1":case"binary":return ae(this,l,d);case"base64":return Y(this,l,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,l,d);default:if(I)throw new TypeError("Unknown encoding: "+g);g=(g+"").toLowerCase(),I=!0}}o.prototype._isBuffer=!0;function j(g,l,d){const I=g[l];g[l]=g[d],g[d]=I}o.prototype.swap16=function(){const l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let d=0;d<l;d+=2)j(this,d,d+1);return this},o.prototype.swap32=function(){const l=this.length;if(l%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let d=0;d<l;d+=4)j(this,d,d+3),j(this,d+1,d+2);return this},o.prototype.swap64=function(){const l=this.length;if(l%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let d=0;d<l;d+=8)j(this,d,d+7),j(this,d+1,d+6),j(this,d+2,d+5),j(this,d+3,d+4);return this},o.prototype.toString=function(){const l=this.length;return l===0?"":arguments.length===0?b(this,0,l):F.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(l){if(!o.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l?!0:o.compare(this,l)===0},o.prototype.inspect=function(){let l="";const d=e.INSPECT_MAX_BYTES;return l=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(l+=" ... "),"<Buffer "+l+">"},r&&(o.prototype[r]=o.prototype.inspect),o.prototype.compare=function(l,d,I,N,$){if(B(l,Uint8Array)&&(l=o.from(l,l.offset,l.byteLength)),!o.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(d===void 0&&(d=0),I===void 0&&(I=l?l.length:0),N===void 0&&(N=0),$===void 0&&($=this.length),d<0||I>l.length||N<0||$>this.length)throw new RangeError("out of range index");if(N>=$&&d>=I)return 0;if(N>=$)return-1;if(d>=I)return 1;if(d>>>=0,I>>>=0,N>>>=0,$>>>=0,this===l)return 0;let W=$-N,fe=I-d;const ve=Math.min(W,fe),me=this.slice(N,$),Te=l.slice(d,I);for(let Ie=0;Ie<ve;++Ie)if(me[Ie]!==Te[Ie]){W=me[Ie],fe=Te[Ie];break}return W<fe?-1:fe<W?1:0};function q(g,l,d,I,N){if(g.length===0)return-1;if(typeof d=="string"?(I=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,K(d)&&(d=N?0:g.length-1),d<0&&(d=g.length+d),d>=g.length){if(N)return-1;d=g.length-1}else if(d<0)if(N)d=0;else return-1;if(typeof l=="string"&&(l=o.from(l,I)),o.isBuffer(l))return l.length===0?-1:z(g,l,d,I,N);if(typeof l=="number")return l=l&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(g,l,d):Uint8Array.prototype.lastIndexOf.call(g,l,d):z(g,[l],d,I,N);throw new TypeError("val must be string, number or Buffer")}function z(g,l,d,I,N){let $=1,W=g.length,fe=l.length;if(I!==void 0&&(I=String(I).toLowerCase(),I==="ucs2"||I==="ucs-2"||I==="utf16le"||I==="utf-16le")){if(g.length<2||l.length<2)return-1;$=2,W/=2,fe/=2,d/=2}function ve(Te,Ie){return $===1?Te[Ie]:Te.readUInt16BE(Ie*$)}let me;if(N){let Te=-1;for(me=d;me<W;me++)if(ve(g,me)===ve(l,Te===-1?0:me-Te)){if(Te===-1&&(Te=me),me-Te+1===fe)return Te*$}else Te!==-1&&(me-=me-Te),Te=-1}else for(d+fe>W&&(d=W-fe),me=d;me>=0;me--){let Te=!0;for(let Ie=0;Ie<fe;Ie++)if(ve(g,me+Ie)!==ve(l,Ie)){Te=!1;break}if(Te)return me}return-1}o.prototype.includes=function(l,d,I){return this.indexOf(l,d,I)!==-1},o.prototype.indexOf=function(l,d,I){return q(this,l,d,I,!0)},o.prototype.lastIndexOf=function(l,d,I){return q(this,l,d,I,!1)};function X(g,l,d,I){d=Number(d)||0;const N=g.length-d;I?(I=Number(I),I>N&&(I=N)):I=N;const $=l.length;I>$/2&&(I=$/2);let W;for(W=0;W<I;++W){const fe=parseInt(l.substr(W*2,2),16);if(K(fe))return W;g[d+W]=fe}return W}function G(g,l,d,I){return U(x(l,g.length-d),g,d,I)}function ee(g,l,d,I){return U(y(l),g,d,I)}function se(g,l,d,I){return U(M(l),g,d,I)}function D(g,l,d,I){return U(A(l,g.length-d),g,d,I)}o.prototype.write=function(l,d,I,N){if(d===void 0)N="utf8",I=this.length,d=0;else if(I===void 0&&typeof d=="string")N=d,I=this.length,d=0;else if(isFinite(d))d=d>>>0,isFinite(I)?(I=I>>>0,N===void 0&&(N="utf8")):(N=I,I=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const $=this.length-d;if((I===void 0||I>$)&&(I=$),l.length>0&&(I<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");let W=!1;for(;;)switch(N){case"hex":return X(this,l,d,I);case"utf8":case"utf-8":return G(this,l,d,I);case"ascii":case"latin1":case"binary":return ee(this,l,d,I);case"base64":return se(this,l,d,I);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,l,d,I);default:if(W)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),W=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Y(g,l,d){return l===0&&d===g.length?t.fromByteArray(g):t.fromByteArray(g.slice(l,d))}function b(g,l,d){d=Math.min(g.length,d);const I=[];let N=l;for(;N<d;){const $=g[N];let W=null,fe=$>239?4:$>223?3:$>191?2:1;if(N+fe<=d){let ve,me,Te,Ie;switch(fe){case 1:$<128&&(W=$);break;case 2:ve=g[N+1],(ve&192)===128&&(Ie=($&31)<<6|ve&63,Ie>127&&(W=Ie));break;case 3:ve=g[N+1],me=g[N+2],(ve&192)===128&&(me&192)===128&&(Ie=($&15)<<12|(ve&63)<<6|me&63,Ie>2047&&(Ie<55296||Ie>57343)&&(W=Ie));break;case 4:ve=g[N+1],me=g[N+2],Te=g[N+3],(ve&192)===128&&(me&192)===128&&(Te&192)===128&&(Ie=($&15)<<18|(ve&63)<<12|(me&63)<<6|Te&63,Ie>65535&&Ie<1114112&&(W=Ie))}}W===null?(W=65533,fe=1):W>65535&&(W-=65536,I.push(W>>>10&1023|55296),W=56320|W&1023),I.push(W),N+=fe}return ue(I)}const Z=4096;function ue(g){const l=g.length;if(l<=Z)return String.fromCharCode.apply(String,g);let d="",I=0;for(;I<l;)d+=String.fromCharCode.apply(String,g.slice(I,I+=Z));return d}function Q(g,l,d){let I="";d=Math.min(g.length,d);for(let N=l;N<d;++N)I+=String.fromCharCode(g[N]&127);return I}function ae(g,l,d){let I="";d=Math.min(g.length,d);for(let N=l;N<d;++N)I+=String.fromCharCode(g[N]);return I}function ne(g,l,d){const I=g.length;(!l||l<0)&&(l=0),(!d||d<0||d>I)&&(d=I);let N="";for(let $=l;$<d;++$)N+=J[g[$]];return N}function de(g,l,d){const I=g.slice(l,d);let N="";for(let $=0;$<I.length-1;$+=2)N+=String.fromCharCode(I[$]+I[$+1]*256);return N}o.prototype.slice=function(l,d){const I=this.length;l=~~l,d=d===void 0?I:~~d,l<0?(l+=I,l<0&&(l=0)):l>I&&(l=I),d<0?(d+=I,d<0&&(d=0)):d>I&&(d=I),d<l&&(d=l);const N=this.subarray(l,d);return Object.setPrototypeOf(N,o.prototype),N};function H(g,l,d){if(g%1!==0||g<0)throw new RangeError("offset is not uint");if(g+l>d)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(l,d,I){l=l>>>0,d=d>>>0,I||H(l,d,this.length);let N=this[l],$=1,W=0;for(;++W<d&&($*=256);)N+=this[l+W]*$;return N},o.prototype.readUintBE=o.prototype.readUIntBE=function(l,d,I){l=l>>>0,d=d>>>0,I||H(l,d,this.length);let N=this[l+--d],$=1;for(;d>0&&($*=256);)N+=this[l+--d]*$;return N},o.prototype.readUint8=o.prototype.readUInt8=function(l,d){return l=l>>>0,d||H(l,1,this.length),this[l]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(l,d){return l=l>>>0,d||H(l,2,this.length),this[l]|this[l+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(l,d){return l=l>>>0,d||H(l,2,this.length),this[l]<<8|this[l+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(l,d){return l=l>>>0,d||H(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(l,d){return l=l>>>0,d||H(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},o.prototype.readBigUInt64LE=V(function(l){l=l>>>0,P(l,"offset");const d=this[l],I=this[l+7];(d===void 0||I===void 0)&&u(l,this.length-8);const N=d+this[++l]*Ce(2,8)+this[++l]*Ce(2,16)+this[++l]*Ce(2,24),$=this[++l]+this[++l]*Ce(2,8)+this[++l]*Ce(2,16)+I*Ce(2,24);return BigInt(N)+(BigInt($)<<BigInt(32))}),o.prototype.readBigUInt64BE=V(function(l){l=l>>>0,P(l,"offset");const d=this[l],I=this[l+7];(d===void 0||I===void 0)&&u(l,this.length-8);const N=d*Ce(2,24)+this[++l]*Ce(2,16)+this[++l]*Ce(2,8)+this[++l],$=this[++l]*Ce(2,24)+this[++l]*Ce(2,16)+this[++l]*Ce(2,8)+I;return(BigInt(N)<<BigInt(32))+BigInt($)}),o.prototype.readIntLE=function(l,d,I){l=l>>>0,d=d>>>0,I||H(l,d,this.length);let N=this[l],$=1,W=0;for(;++W<d&&($*=256);)N+=this[l+W]*$;return $*=128,N>=$&&(N-=Math.pow(2,8*d)),N},o.prototype.readIntBE=function(l,d,I){l=l>>>0,d=d>>>0,I||H(l,d,this.length);let N=d,$=1,W=this[l+--N];for(;N>0&&($*=256);)W+=this[l+--N]*$;return $*=128,W>=$&&(W-=Math.pow(2,8*d)),W},o.prototype.readInt8=function(l,d){return l=l>>>0,d||H(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},o.prototype.readInt16LE=function(l,d){l=l>>>0,d||H(l,2,this.length);const I=this[l]|this[l+1]<<8;return I&32768?I|4294901760:I},o.prototype.readInt16BE=function(l,d){l=l>>>0,d||H(l,2,this.length);const I=this[l+1]|this[l]<<8;return I&32768?I|4294901760:I},o.prototype.readInt32LE=function(l,d){return l=l>>>0,d||H(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},o.prototype.readInt32BE=function(l,d){return l=l>>>0,d||H(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},o.prototype.readBigInt64LE=V(function(l){l=l>>>0,P(l,"offset");const d=this[l],I=this[l+7];(d===void 0||I===void 0)&&u(l,this.length-8);const N=this[l+4]+this[l+5]*Ce(2,8)+this[l+6]*Ce(2,16)+(I<<24);return(BigInt(N)<<BigInt(32))+BigInt(d+this[++l]*Ce(2,8)+this[++l]*Ce(2,16)+this[++l]*Ce(2,24))}),o.prototype.readBigInt64BE=V(function(l){l=l>>>0,P(l,"offset");const d=this[l],I=this[l+7];(d===void 0||I===void 0)&&u(l,this.length-8);const N=(d<<24)+this[++l]*Ce(2,16)+this[++l]*Ce(2,8)+this[++l];return(BigInt(N)<<BigInt(32))+BigInt(this[++l]*Ce(2,24)+this[++l]*Ce(2,16)+this[++l]*Ce(2,8)+I)}),o.prototype.readFloatLE=function(l,d){return l=l>>>0,d||H(l,4,this.length),n.read(this,l,!0,23,4)},o.prototype.readFloatBE=function(l,d){return l=l>>>0,d||H(l,4,this.length),n.read(this,l,!1,23,4)},o.prototype.readDoubleLE=function(l,d){return l=l>>>0,d||H(l,8,this.length),n.read(this,l,!0,52,8)},o.prototype.readDoubleBE=function(l,d){return l=l>>>0,d||H(l,8,this.length),n.read(this,l,!1,52,8)};function L(g,l,d,I,N,$){if(!o.isBuffer(g))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>N||l<$)throw new RangeError('"value" argument is out of bounds');if(d+I>g.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(l,d,I,N){if(l=+l,d=d>>>0,I=I>>>0,!N){const fe=Math.pow(2,8*I)-1;L(this,l,d,I,fe,0)}let $=1,W=0;for(this[d]=l&255;++W<I&&($*=256);)this[d+W]=l/$&255;return d+I},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(l,d,I,N){if(l=+l,d=d>>>0,I=I>>>0,!N){const fe=Math.pow(2,8*I)-1;L(this,l,d,I,fe,0)}let $=I-1,W=1;for(this[d+$]=l&255;--$>=0&&(W*=256);)this[d+$]=l/W&255;return d+I},o.prototype.writeUint8=o.prototype.writeUInt8=function(l,d,I){return l=+l,d=d>>>0,I||L(this,l,d,1,255,0),this[d]=l&255,d+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(l,d,I){return l=+l,d=d>>>0,I||L(this,l,d,2,65535,0),this[d]=l&255,this[d+1]=l>>>8,d+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(l,d,I){return l=+l,d=d>>>0,I||L(this,l,d,2,65535,0),this[d]=l>>>8,this[d+1]=l&255,d+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(l,d,I){return l=+l,d=d>>>0,I||L(this,l,d,4,4294967295,0),this[d+3]=l>>>24,this[d+2]=l>>>16,this[d+1]=l>>>8,this[d]=l&255,d+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(l,d,I){return l=+l,d=d>>>0,I||L(this,l,d,4,4294967295,0),this[d]=l>>>24,this[d+1]=l>>>16,this[d+2]=l>>>8,this[d+3]=l&255,d+4};function ce(g,l,d,I,N){C(l,I,N,g,d,7);let $=Number(l&BigInt(4294967295));g[d++]=$,$=$>>8,g[d++]=$,$=$>>8,g[d++]=$,$=$>>8,g[d++]=$;let W=Number(l>>BigInt(32)&BigInt(4294967295));return g[d++]=W,W=W>>8,g[d++]=W,W=W>>8,g[d++]=W,W=W>>8,g[d++]=W,d}function oe(g,l,d,I,N){C(l,I,N,g,d,7);let $=Number(l&BigInt(4294967295));g[d+7]=$,$=$>>8,g[d+6]=$,$=$>>8,g[d+5]=$,$=$>>8,g[d+4]=$;let W=Number(l>>BigInt(32)&BigInt(4294967295));return g[d+3]=W,W=W>>8,g[d+2]=W,W=W>>8,g[d+1]=W,W=W>>8,g[d]=W,d+8}o.prototype.writeBigUInt64LE=V(function(l,d=0){return ce(this,l,d,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=V(function(l,d=0){return oe(this,l,d,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(l,d,I,N){if(l=+l,d=d>>>0,!N){const ve=Math.pow(2,8*I-1);L(this,l,d,I,ve-1,-ve)}let $=0,W=1,fe=0;for(this[d]=l&255;++$<I&&(W*=256);)l<0&&fe===0&&this[d+$-1]!==0&&(fe=1),this[d+$]=(l/W>>0)-fe&255;return d+I},o.prototype.writeIntBE=function(l,d,I,N){if(l=+l,d=d>>>0,!N){const ve=Math.pow(2,8*I-1);L(this,l,d,I,ve-1,-ve)}let $=I-1,W=1,fe=0;for(this[d+$]=l&255;--$>=0&&(W*=256);)l<0&&fe===0&&this[d+$+1]!==0&&(fe=1),this[d+$]=(l/W>>0)-fe&255;return d+I},o.prototype.writeInt8=function(l,d,I){return l=+l,d=d>>>0,I||L(this,l,d,1,127,-128),l<0&&(l=255+l+1),this[d]=l&255,d+1},o.prototype.writeInt16LE=function(l,d,I){return l=+l,d=d>>>0,I||L(this,l,d,2,32767,-32768),this[d]=l&255,this[d+1]=l>>>8,d+2},o.prototype.writeInt16BE=function(l,d,I){return l=+l,d=d>>>0,I||L(this,l,d,2,32767,-32768),this[d]=l>>>8,this[d+1]=l&255,d+2},o.prototype.writeInt32LE=function(l,d,I){return l=+l,d=d>>>0,I||L(this,l,d,4,2147483647,-2147483648),this[d]=l&255,this[d+1]=l>>>8,this[d+2]=l>>>16,this[d+3]=l>>>24,d+4},o.prototype.writeInt32BE=function(l,d,I){return l=+l,d=d>>>0,I||L(this,l,d,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[d]=l>>>24,this[d+1]=l>>>16,this[d+2]=l>>>8,this[d+3]=l&255,d+4},o.prototype.writeBigInt64LE=V(function(l,d=0){return ce(this,l,d,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=V(function(l,d=0){return oe(this,l,d,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ie(g,l,d,I,N,$){if(d+I>g.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function xe(g,l,d,I,N){return l=+l,d=d>>>0,N||ie(g,l,d,4),n.write(g,l,d,I,23,4),d+4}o.prototype.writeFloatLE=function(l,d,I){return xe(this,l,d,!0,I)},o.prototype.writeFloatBE=function(l,d,I){return xe(this,l,d,!1,I)};function Ne(g,l,d,I,N){return l=+l,d=d>>>0,N||ie(g,l,d,8),n.write(g,l,d,I,52,8),d+8}o.prototype.writeDoubleLE=function(l,d,I){return Ne(this,l,d,!0,I)},o.prototype.writeDoubleBE=function(l,d,I){return Ne(this,l,d,!1,I)},o.prototype.copy=function(l,d,I,N){if(!o.isBuffer(l))throw new TypeError("argument should be a Buffer");if(I||(I=0),!N&&N!==0&&(N=this.length),d>=l.length&&(d=l.length),d||(d=0),N>0&&N<I&&(N=I),N===I||l.length===0||this.length===0)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(I<0||I>=this.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("sourceEnd out of bounds");N>this.length&&(N=this.length),l.length-d<N-I&&(N=l.length-d+I);const $=N-I;return this===l&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(d,I,N):Uint8Array.prototype.set.call(l,this.subarray(I,N),d),$},o.prototype.fill=function(l,d,I,N){if(typeof l=="string"){if(typeof d=="string"?(N=d,d=0,I=this.length):typeof I=="string"&&(N=I,I=this.length),N!==void 0&&typeof N!="string")throw new TypeError("encoding must be a string");if(typeof N=="string"&&!o.isEncoding(N))throw new TypeError("Unknown encoding: "+N);if(l.length===1){const W=l.charCodeAt(0);(N==="utf8"&&W<128||N==="latin1")&&(l=W)}}else typeof l=="number"?l=l&255:typeof l=="boolean"&&(l=Number(l));if(d<0||this.length<d||this.length<I)throw new RangeError("Out of range index");if(I<=d)return this;d=d>>>0,I=I===void 0?this.length:I>>>0,l||(l=0);let $;if(typeof l=="number")for($=d;$<I;++$)this[$]=l;else{const W=o.isBuffer(l)?l:o.from(l,N),fe=W.length;if(fe===0)throw new TypeError('The value "'+l+'" is invalid for argument "value"');for($=0;$<I-d;++$)this[$+d]=W[$%fe]}return this};const ge={};function we(g,l,d){ge[g]=class extends d{constructor(){super(),Object.defineProperty(this,"message",{value:l.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${g}]`,this.stack,delete this.name}get code(){return g}set code(N){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:N,writable:!0})}toString(){return`${this.name} [${g}]: ${this.message}`}}}we("ERR_BUFFER_OUT_OF_BOUNDS",function(g){return g?`${g} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),we("ERR_INVALID_ARG_TYPE",function(g,l){return`The "${g}" argument must be of type number. Received type ${typeof l}`},TypeError),we("ERR_OUT_OF_RANGE",function(g,l,d){let I=`The value of "${g}" is out of range.`,N=d;return Number.isInteger(d)&&Math.abs(d)>Ce(2,32)?N=je(String(d)):typeof d=="bigint"&&(N=String(d),(d>Ce(BigInt(2),BigInt(32))||d<-Ce(BigInt(2),BigInt(32)))&&(N=je(N)),N+="n"),I+=` It must be ${l}. Received ${N}`,I},RangeError);function je(g){let l="",d=g.length;const I=g[0]==="-"?1:0;for(;d>=I+4;d-=3)l=`_${g.slice(d-3,d)}${l}`;return`${g.slice(0,d)}${l}`}function Ae(g,l,d){P(l,"offset"),(g[l]===void 0||g[l+d]===void 0)&&u(l,g.length-(d+1))}function C(g,l,d,I,N,$){if(g>d||g<l){const W=typeof l=="bigint"?"n":"";let fe;throw $>3?l===0||l===BigInt(0)?fe=`>= 0${W} and < 2${W} ** ${($+1)*8}${W}`:fe=`>= -(2${W} ** ${($+1)*8-1}${W}) and < 2 ** ${($+1)*8-1}${W}`:fe=`>= ${l}${W} and <= ${d}${W}`,new ge.ERR_OUT_OF_RANGE("value",fe,g)}Ae(I,N,$)}function P(g,l){if(typeof g!="number")throw new ge.ERR_INVALID_ARG_TYPE(l,"number",g)}function u(g,l,d){throw Math.floor(g)!==g?(P(g,d),new ge.ERR_OUT_OF_RANGE(d||"offset","an integer",g)):l<0?new ge.ERR_BUFFER_OUT_OF_BOUNDS:new ge.ERR_OUT_OF_RANGE(d||"offset",`>= ${d?1:0} and <= ${l}`,g)}const R=/[^+/0-9A-Za-z-_]/g;function O(g){if(g=g.split("=")[0],g=g.trim().replace(R,""),g.length<2)return"";for(;g.length%4!==0;)g=g+"=";return g}function x(g,l){l=l||1/0;let d;const I=g.length;let N=null;const $=[];for(let W=0;W<I;++W){if(d=g.charCodeAt(W),d>55295&&d<57344){if(!N){if(d>56319){(l-=3)>-1&&$.push(239,191,189);continue}else if(W+1===I){(l-=3)>-1&&$.push(239,191,189);continue}N=d;continue}if(d<56320){(l-=3)>-1&&$.push(239,191,189),N=d;continue}d=(N-55296<<10|d-56320)+65536}else N&&(l-=3)>-1&&$.push(239,191,189);if(N=null,d<128){if((l-=1)<0)break;$.push(d)}else if(d<2048){if((l-=2)<0)break;$.push(d>>6|192,d&63|128)}else if(d<65536){if((l-=3)<0)break;$.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((l-=4)<0)break;$.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return $}function y(g){const l=[];for(let d=0;d<g.length;++d)l.push(g.charCodeAt(d)&255);return l}function A(g,l){let d,I,N;const $=[];for(let W=0;W<g.length&&!((l-=2)<0);++W)d=g.charCodeAt(W),I=d>>8,N=d%256,$.push(N),$.push(I);return $}function M(g){return t.toByteArray(O(g))}function U(g,l,d,I){let N;for(N=0;N<I&&!(N+d>=l.length||N>=g.length);++N)l[N+d]=g[N];return N}function B(g,l){return g instanceof l||g!=null&&g.constructor!=null&&g.constructor.name!=null&&g.constructor.name===l.name}function K(g){return g!==g}const J=function(){const g="0123456789abcdef",l=new Array(256);for(let d=0;d<16;++d){const I=d*16;for(let N=0;N<16;++N)l[I+N]=g[d]+g[N]}return l}();function V(g){return typeof BigInt=="undefined"?re:g}function re(){throw new Error("BigInt not supported")}})(ea);const Mr={"":"未知id"};let na=null,Wi=null;const Lr={init:function(){return _e(this,null,function*(){const e=yield it.getFile(Mi.ipDB);e&&(na=ea.Buffer.from(e),Wi=new pd(na))})},getIpInfo:function(e){if(e=e.replace("*","1"),!Object.prototype.hasOwnProperty.call(Mr,e)&&Wi){const t=Wi.search(e).region;if(t!==null){const n=t.split("|");n[3]!=="0"&&(n[2]="",n[3]=n[3].replace(/市$/,"")),n[4]="",Mr[e]=n.join("").replace(/中国|0/g,"")}else Mr[e]=""}return Mr[e]}},xd=Le({__name:"UserIPLog",props:{msg:null,articleInfo:null},setup(e){const t=e;return Et(t.articleInfo,()=>_e(this,null,function*(){(yield Pi.get(t.articleInfo.userId)).addIp(t.articleInfo.ip)}),{immediate:!0}),(n,r)=>(le(),pe("span",null,He("@"+ye(Lr).getIpInfo(e.articleInfo.ip)),1))}}),Ed=Le({__name:"UserInfo",props:{msg:null,articleInfo:null},setup(e){const t=e;function n(){Ht.get(t.articleInfo.userId).switchShowTag()}return(r,s)=>(le(),pe("a",null,[Oe(xd,{"article-info":e.articleInfo},null,8,["article-info"]),te("span",{onClick:n},"("+He(ye(At).get(e.articleInfo.userId).score)+")",1)]))}});function zr(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var qi={},Sd={get exports(){return qi},set exports(e){qi=e}};/*!

  JSZip v3.10.1 - A JavaScript class for generating and reading zip files
  <http://stuartk.com/jszip>

  (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
  Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.

  JSZip uses the library pako released under the MIT license :
  https://github.com/nodeca/pako/blob/main/LICENSE
  */(function(e,t){(function(n){e.exports=n()})(function(){return function n(r,s,i){function a(h,f){if(!s[h]){if(!r[h]){var _=typeof zr=="function"&&zr;if(!f&&_)return _(h,!0);if(o)return o(h,!0);var w=new Error("Cannot find module '"+h+"'");throw w.code="MODULE_NOT_FOUND",w}var p=s[h]={exports:{}};r[h][0].call(p.exports,function(v){var m=r[h][1][v];return a(m||v)},p,p.exports,n,r,s,i)}return s[h].exports}for(var o=typeof zr=="function"&&zr,c=0;c<i.length;c++)a(i[c]);return a}({1:[function(n,r,s){var i=n("./utils"),a=n("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";s.encode=function(c){for(var h,f,_,w,p,v,m,E=[],k=0,S=c.length,T=S,F=i.getTypeOf(c)!=="string";k<c.length;)T=S-k,_=F?(h=c[k++],f=k<S?c[k++]:0,k<S?c[k++]:0):(h=c.charCodeAt(k++),f=k<S?c.charCodeAt(k++):0,k<S?c.charCodeAt(k++):0),w=h>>2,p=(3&h)<<4|f>>4,v=1<T?(15&f)<<2|_>>6:64,m=2<T?63&_:64,E.push(o.charAt(w)+o.charAt(p)+o.charAt(v)+o.charAt(m));return E.join("")},s.decode=function(c){var h,f,_,w,p,v,m=0,E=0,k="data:";if(c.substr(0,k.length)===k)throw new Error("Invalid base64 input, it looks like a data url.");var S,T=3*(c=c.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(c.charAt(c.length-1)===o.charAt(64)&&T--,c.charAt(c.length-2)===o.charAt(64)&&T--,T%1!=0)throw new Error("Invalid base64 input, bad content length.");for(S=a.uint8array?new Uint8Array(0|T):new Array(0|T);m<c.length;)h=o.indexOf(c.charAt(m++))<<2|(w=o.indexOf(c.charAt(m++)))>>4,f=(15&w)<<4|(p=o.indexOf(c.charAt(m++)))>>2,_=(3&p)<<6|(v=o.indexOf(c.charAt(m++))),S[E++]=h,p!==64&&(S[E++]=f),v!==64&&(S[E++]=_);return S}},{"./support":30,"./utils":32}],2:[function(n,r,s){var i=n("./external"),a=n("./stream/DataWorker"),o=n("./stream/Crc32Probe"),c=n("./stream/DataLengthProbe");function h(f,_,w,p,v){this.compressedSize=f,this.uncompressedSize=_,this.crc32=w,this.compression=p,this.compressedContent=v}h.prototype={getContentWorker:function(){var f=new a(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")),_=this;return f.on("end",function(){if(this.streamInfo.data_length!==_.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),f},getCompressedWorker:function(){return new a(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},h.createWorkerFrom=function(f,_,w){return f.pipe(new o).pipe(new c("uncompressedSize")).pipe(_.compressWorker(w)).pipe(new c("compressedSize")).withStreamInfo("compression",_)},r.exports=h},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,r,s){var i=n("./stream/GenericWorker");s.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},s.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,r,s){var i=n("./utils"),a=function(){for(var o,c=[],h=0;h<256;h++){o=h;for(var f=0;f<8;f++)o=1&o?3988292384^o>>>1:o>>>1;c[h]=o}return c}();r.exports=function(o,c){return o!==void 0&&o.length?i.getTypeOf(o)!=="string"?function(h,f,_,w){var p=a,v=w+_;h^=-1;for(var m=w;m<v;m++)h=h>>>8^p[255&(h^f[m])];return-1^h}(0|c,o,o.length,0):function(h,f,_,w){var p=a,v=w+_;h^=-1;for(var m=w;m<v;m++)h=h>>>8^p[255&(h^f.charCodeAt(m))];return-1^h}(0|c,o,o.length,0):0}},{"./utils":32}],5:[function(n,r,s){s.base64=!1,s.binary=!1,s.dir=!1,s.createFolders=!0,s.date=null,s.compression=null,s.compressionOptions=null,s.comment=null,s.unixPermissions=null,s.dosPermissions=null},{}],6:[function(n,r,s){var i=null;i=typeof Promise!="undefined"?Promise:n("lie"),r.exports={Promise:i}},{lie:37}],7:[function(n,r,s){var i=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",a=n("pako"),o=n("./utils"),c=n("./stream/GenericWorker"),h=i?"uint8array":"array";function f(_,w){c.call(this,"FlateWorker/"+_),this._pako=null,this._pakoAction=_,this._pakoOptions=w,this.meta={}}s.magic="\b\0",o.inherits(f,c),f.prototype.processChunk=function(_){this.meta=_.meta,this._pako===null&&this._createPako(),this._pako.push(o.transformTo(h,_.data),!1)},f.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},f.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},f.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var _=this;this._pako.onData=function(w){_.push({data:w,meta:_.meta})}},s.compressWorker=function(_){return new f("Deflate",_)},s.uncompressWorker=function(){return new f("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,s){function i(p,v){var m,E="";for(m=0;m<v;m++)E+=String.fromCharCode(255&p),p>>>=8;return E}function a(p,v,m,E,k,S){var T,F,j=p.file,q=p.compression,z=S!==h.utf8encode,X=o.transformTo("string",S(j.name)),G=o.transformTo("string",h.utf8encode(j.name)),ee=j.comment,se=o.transformTo("string",S(ee)),D=o.transformTo("string",h.utf8encode(ee)),Y=G.length!==j.name.length,b=D.length!==ee.length,Z="",ue="",Q="",ae=j.dir,ne=j.date,de={crc32:0,compressedSize:0,uncompressedSize:0};v&&!m||(de.crc32=p.crc32,de.compressedSize=p.compressedSize,de.uncompressedSize=p.uncompressedSize);var H=0;v&&(H|=8),z||!Y&&!b||(H|=2048);var L=0,ce=0;ae&&(L|=16),k==="UNIX"?(ce=798,L|=function(ie,xe){var Ne=ie;return ie||(Ne=xe?16893:33204),(65535&Ne)<<16}(j.unixPermissions,ae)):(ce=20,L|=function(ie){return 63&(ie||0)}(j.dosPermissions)),T=ne.getUTCHours(),T<<=6,T|=ne.getUTCMinutes(),T<<=5,T|=ne.getUTCSeconds()/2,F=ne.getUTCFullYear()-1980,F<<=4,F|=ne.getUTCMonth()+1,F<<=5,F|=ne.getUTCDate(),Y&&(ue=i(1,1)+i(f(X),4)+G,Z+="up"+i(ue.length,2)+ue),b&&(Q=i(1,1)+i(f(se),4)+D,Z+="uc"+i(Q.length,2)+Q);var oe="";return oe+=`
\0`,oe+=i(H,2),oe+=q.magic,oe+=i(T,2),oe+=i(F,2),oe+=i(de.crc32,4),oe+=i(de.compressedSize,4),oe+=i(de.uncompressedSize,4),oe+=i(X.length,2),oe+=i(Z.length,2),{fileRecord:_.LOCAL_FILE_HEADER+oe+X+Z,dirRecord:_.CENTRAL_FILE_HEADER+i(ce,2)+oe+i(se.length,2)+"\0\0\0\0"+i(L,4)+i(E,4)+X+Z+se}}var o=n("../utils"),c=n("../stream/GenericWorker"),h=n("../utf8"),f=n("../crc32"),_=n("../signature");function w(p,v,m,E){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=v,this.zipPlatform=m,this.encodeFileName=E,this.streamFiles=p,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(w,c),w.prototype.push=function(p){var v=p.meta.percent||0,m=this.entriesCount,E=this._sources.length;this.accumulate?this.contentBuffer.push(p):(this.bytesWritten+=p.data.length,c.prototype.push.call(this,{data:p.data,meta:{currentFile:this.currentFile,percent:m?(v+100*(m-E-1))/m:100}}))},w.prototype.openedSource=function(p){this.currentSourceOffset=this.bytesWritten,this.currentFile=p.file.name;var v=this.streamFiles&&!p.file.dir;if(v){var m=a(p,v,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:m.fileRecord,meta:{percent:0}})}else this.accumulate=!0},w.prototype.closedSource=function(p){this.accumulate=!1;var v=this.streamFiles&&!p.file.dir,m=a(p,v,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(m.dirRecord),v)this.push({data:function(E){return _.DATA_DESCRIPTOR+i(E.crc32,4)+i(E.compressedSize,4)+i(E.uncompressedSize,4)}(p),meta:{percent:100}});else for(this.push({data:m.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},w.prototype.flush=function(){for(var p=this.bytesWritten,v=0;v<this.dirRecords.length;v++)this.push({data:this.dirRecords[v],meta:{percent:100}});var m=this.bytesWritten-p,E=function(k,S,T,F,j){var q=o.transformTo("string",j(F));return _.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(k,2)+i(k,2)+i(S,4)+i(T,4)+i(q.length,2)+q}(this.dirRecords.length,m,p,this.zipComment,this.encodeFileName);this.push({data:E,meta:{percent:100}})},w.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},w.prototype.registerPrevious=function(p){this._sources.push(p);var v=this;return p.on("data",function(m){v.processChunk(m)}),p.on("end",function(){v.closedSource(v.previous.streamInfo),v._sources.length?v.prepareNextSource():v.end()}),p.on("error",function(m){v.error(m)}),this},w.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},w.prototype.error=function(p){var v=this._sources;if(!c.prototype.error.call(this,p))return!1;for(var m=0;m<v.length;m++)try{v[m].error(p)}catch(E){}return!0},w.prototype.lock=function(){c.prototype.lock.call(this);for(var p=this._sources,v=0;v<p.length;v++)p[v].lock()},r.exports=w},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,s){var i=n("../compressions"),a=n("./ZipFileWorker");s.generateWorker=function(o,c,h){var f=new a(c.streamFiles,h,c.platform,c.encodeFileName),_=0;try{o.forEach(function(w,p){_++;var v=function(S,T){var F=S||T,j=i[F];if(!j)throw new Error(F+" is not a valid compression method !");return j}(p.options.compression,c.compression),m=p.options.compressionOptions||c.compressionOptions||{},E=p.dir,k=p.date;p._compressWorker(v,m).withStreamInfo("file",{name:w,dir:E,date:k,comment:p.comment||"",unixPermissions:p.unixPermissions,dosPermissions:p.dosPermissions}).pipe(f)}),f.entriesCount=_}catch(w){f.error(w)}return f}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,r,s){function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var a=new i;for(var o in this)typeof this[o]!="function"&&(a[o]=this[o]);return a}}(i.prototype=n("./object")).loadAsync=n("./load"),i.support=n("./support"),i.defaults=n("./defaults"),i.version="3.10.1",i.loadAsync=function(a,o){return new i().loadAsync(a,o)},i.external=n("./external"),r.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,r,s){var i=n("./utils"),a=n("./external"),o=n("./utf8"),c=n("./zipEntries"),h=n("./stream/Crc32Probe"),f=n("./nodejsUtils");function _(w){return new a.Promise(function(p,v){var m=w.decompressed.getContentWorker().pipe(new h);m.on("error",function(E){v(E)}).on("end",function(){m.streamInfo.crc32!==w.decompressed.crc32?v(new Error("Corrupted zip : CRC32 mismatch")):p()}).resume()})}r.exports=function(w,p){var v=this;return p=i.extend(p||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),f.isNode&&f.isStream(w)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",w,!0,p.optimizedBinaryString,p.base64).then(function(m){var E=new c(p);return E.load(m),E}).then(function(m){var E=[a.Promise.resolve(m)],k=m.files;if(p.checkCRC32)for(var S=0;S<k.length;S++)E.push(_(k[S]));return a.Promise.all(E)}).then(function(m){for(var E=m.shift(),k=E.files,S=0;S<k.length;S++){var T=k[S],F=T.fileNameStr,j=i.resolve(T.fileNameStr);v.file(j,T.decompressed,{binary:!0,optimizedBinaryString:!0,date:T.date,dir:T.dir,comment:T.fileCommentStr.length?T.fileCommentStr:null,unixPermissions:T.unixPermissions,dosPermissions:T.dosPermissions,createFolders:p.createFolders}),T.dir||(v.file(j).unsafeOriginalName=F)}return E.zipComment.length&&(v.comment=E.zipComment),v})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,s){var i=n("../utils"),a=n("../stream/GenericWorker");function o(c,h){a.call(this,"Nodejs stream input adapter for "+c),this._upstreamEnded=!1,this._bindStream(h)}i.inherits(o,a),o.prototype._bindStream=function(c){var h=this;(this._stream=c).pause(),c.on("data",function(f){h.push({data:f,meta:{percent:0}})}).on("error",function(f){h.isPaused?this.generatedError=f:h.error(f)}).on("end",function(){h.isPaused?h._upstreamEnded=!0:h.end()})},o.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,r,s){var i=n("readable-stream").Readable;function a(o,c,h){i.call(this,c),this._helper=o;var f=this;o.on("data",function(_,w){f.push(_)||f._helper.pause(),h&&h(w)}).on("error",function(_){f.emit("error",_)}).on("end",function(){f.push(null)})}n("../utils").inherits(a,i),a.prototype._read=function(){this._helper.resume()},r.exports=a},{"../utils":32,"readable-stream":16}],14:[function(n,r,s){r.exports={isNode:typeof Buffer!="undefined",newBufferFrom:function(i,a){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(i,a);if(typeof i=="number")throw new Error('The "data" argument must not be a number');return new Buffer(i,a)},allocBuffer:function(i){if(Buffer.alloc)return Buffer.alloc(i);var a=new Buffer(i);return a.fill(0),a},isBuffer:function(i){return Buffer.isBuffer(i)},isStream:function(i){return i&&typeof i.on=="function"&&typeof i.pause=="function"&&typeof i.resume=="function"}}},{}],15:[function(n,r,s){function i(j,q,z){var X,G=o.getTypeOf(q),ee=o.extend(z||{},f);ee.date=ee.date||new Date,ee.compression!==null&&(ee.compression=ee.compression.toUpperCase()),typeof ee.unixPermissions=="string"&&(ee.unixPermissions=parseInt(ee.unixPermissions,8)),ee.unixPermissions&&16384&ee.unixPermissions&&(ee.dir=!0),ee.dosPermissions&&16&ee.dosPermissions&&(ee.dir=!0),ee.dir&&(j=k(j)),ee.createFolders&&(X=E(j))&&S.call(this,X,!0);var se=G==="string"&&ee.binary===!1&&ee.base64===!1;z&&z.binary!==void 0||(ee.binary=!se),(q instanceof _&&q.uncompressedSize===0||ee.dir||!q||q.length===0)&&(ee.base64=!1,ee.binary=!0,q="",ee.compression="STORE",G="string");var D=null;D=q instanceof _||q instanceof c?q:v.isNode&&v.isStream(q)?new m(j,q):o.prepareContent(j,q,ee.binary,ee.optimizedBinaryString,ee.base64);var Y=new w(j,D,ee);this.files[j]=Y}var a=n("./utf8"),o=n("./utils"),c=n("./stream/GenericWorker"),h=n("./stream/StreamHelper"),f=n("./defaults"),_=n("./compressedObject"),w=n("./zipObject"),p=n("./generate"),v=n("./nodejsUtils"),m=n("./nodejs/NodejsStreamInputAdapter"),E=function(j){j.slice(-1)==="/"&&(j=j.substring(0,j.length-1));var q=j.lastIndexOf("/");return 0<q?j.substring(0,q):""},k=function(j){return j.slice(-1)!=="/"&&(j+="/"),j},S=function(j,q){return q=q!==void 0?q:f.createFolders,j=k(j),this.files[j]||i.call(this,j,null,{dir:!0,createFolders:q}),this.files[j]};function T(j){return Object.prototype.toString.call(j)==="[object RegExp]"}var F={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(j){var q,z,X;for(q in this.files)X=this.files[q],(z=q.slice(this.root.length,q.length))&&q.slice(0,this.root.length)===this.root&&j(z,X)},filter:function(j){var q=[];return this.forEach(function(z,X){j(z,X)&&q.push(X)}),q},file:function(j,q,z){if(arguments.length!==1)return j=this.root+j,i.call(this,j,q,z),this;if(T(j)){var X=j;return this.filter(function(ee,se){return!se.dir&&X.test(ee)})}var G=this.files[this.root+j];return G&&!G.dir?G:null},folder:function(j){if(!j)return this;if(T(j))return this.filter(function(G,ee){return ee.dir&&j.test(G)});var q=this.root+j,z=S.call(this,q),X=this.clone();return X.root=z.name,X},remove:function(j){j=this.root+j;var q=this.files[j];if(q||(j.slice(-1)!=="/"&&(j+="/"),q=this.files[j]),q&&!q.dir)delete this.files[j];else for(var z=this.filter(function(G,ee){return ee.name.slice(0,j.length)===j}),X=0;X<z.length;X++)delete this.files[z[X].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(j){var q,z={};try{if((z=o.extend(j||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=z.type.toLowerCase(),z.compression=z.compression.toUpperCase(),z.type==="binarystring"&&(z.type="string"),!z.type)throw new Error("No output type specified.");o.checkSupport(z.type),z.platform!=="darwin"&&z.platform!=="freebsd"&&z.platform!=="linux"&&z.platform!=="sunos"||(z.platform="UNIX"),z.platform==="win32"&&(z.platform="DOS");var X=z.comment||this.comment||"";q=p.generateWorker(this,z,X)}catch(G){(q=new c("error")).error(G)}return new h(q,z.type||"string",z.mimeType)},generateAsync:function(j,q){return this.generateInternalStream(j).accumulate(q)},generateNodeStream:function(j,q){return(j=j||{}).type||(j.type="nodebuffer"),this.generateInternalStream(j).toNodejsStream(q)}};r.exports=F},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,r,s){r.exports=n("stream")},{stream:void 0}],17:[function(n,r,s){var i=n("./DataReader");function a(o){i.call(this,o);for(var c=0;c<this.data.length;c++)o[c]=255&o[c]}n("../utils").inherits(a,i),a.prototype.byteAt=function(o){return this.data[this.zero+o]},a.prototype.lastIndexOfSignature=function(o){for(var c=o.charCodeAt(0),h=o.charCodeAt(1),f=o.charCodeAt(2),_=o.charCodeAt(3),w=this.length-4;0<=w;--w)if(this.data[w]===c&&this.data[w+1]===h&&this.data[w+2]===f&&this.data[w+3]===_)return w-this.zero;return-1},a.prototype.readAndCheckSignature=function(o){var c=o.charCodeAt(0),h=o.charCodeAt(1),f=o.charCodeAt(2),_=o.charCodeAt(3),w=this.readData(4);return c===w[0]&&h===w[1]&&f===w[2]&&_===w[3]},a.prototype.readData=function(o){if(this.checkOffset(o),o===0)return[];var c=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,c},r.exports=a},{"../utils":32,"./DataReader":18}],18:[function(n,r,s){var i=n("../utils");function a(o){this.data=o,this.length=o.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(o){this.checkIndex(this.index+o)},checkIndex:function(o){if(this.length<this.zero+o||o<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+o+"). Corrupted zip ?")},setIndex:function(o){this.checkIndex(o),this.index=o},skip:function(o){this.setIndex(this.index+o)},byteAt:function(){},readInt:function(o){var c,h=0;for(this.checkOffset(o),c=this.index+o-1;c>=this.index;c--)h=(h<<8)+this.byteAt(c);return this.index+=o,h},readString:function(o){return i.transformTo("string",this.readData(o))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var o=this.readInt(4);return new Date(Date.UTC(1980+(o>>25&127),(o>>21&15)-1,o>>16&31,o>>11&31,o>>5&63,(31&o)<<1))}},r.exports=a},{"../utils":32}],19:[function(n,r,s){var i=n("./Uint8ArrayReader");function a(o){i.call(this,o)}n("../utils").inherits(a,i),a.prototype.readData=function(o){this.checkOffset(o);var c=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,c},r.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,s){var i=n("./DataReader");function a(o){i.call(this,o)}n("../utils").inherits(a,i),a.prototype.byteAt=function(o){return this.data.charCodeAt(this.zero+o)},a.prototype.lastIndexOfSignature=function(o){return this.data.lastIndexOf(o)-this.zero},a.prototype.readAndCheckSignature=function(o){return o===this.readData(4)},a.prototype.readData=function(o){this.checkOffset(o);var c=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,c},r.exports=a},{"../utils":32,"./DataReader":18}],21:[function(n,r,s){var i=n("./ArrayReader");function a(o){i.call(this,o)}n("../utils").inherits(a,i),a.prototype.readData=function(o){if(this.checkOffset(o),o===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+o);return this.index+=o,c},r.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,s){var i=n("../utils"),a=n("../support"),o=n("./ArrayReader"),c=n("./StringReader"),h=n("./NodeBufferReader"),f=n("./Uint8ArrayReader");r.exports=function(_){var w=i.getTypeOf(_);return i.checkSupport(w),w!=="string"||a.uint8array?w==="nodebuffer"?new h(_):a.uint8array?new f(i.transformTo("uint8array",_)):new o(i.transformTo("array",_)):new c(_)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,r,s){s.LOCAL_FILE_HEADER="PK",s.CENTRAL_FILE_HEADER="PK",s.CENTRAL_DIRECTORY_END="PK",s.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",s.ZIP64_CENTRAL_DIRECTORY_END="PK",s.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,r,s){var i=n("./GenericWorker"),a=n("../utils");function o(c){i.call(this,"ConvertWorker to "+c),this.destType=c}a.inherits(o,i),o.prototype.processChunk=function(c){this.push({data:a.transformTo(this.destType,c.data),meta:c.meta})},r.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,s){var i=n("./GenericWorker"),a=n("../crc32");function o(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(o,i),o.prototype.processChunk=function(c){this.streamInfo.crc32=a(c.data,this.streamInfo.crc32||0),this.push(c)},r.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,s){var i=n("../utils"),a=n("./GenericWorker");function o(c){a.call(this,"DataLengthProbe for "+c),this.propName=c,this.withStreamInfo(c,0)}i.inherits(o,a),o.prototype.processChunk=function(c){if(c){var h=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=h+c.data.length}a.prototype.processChunk.call(this,c)},r.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,s){var i=n("../utils"),a=n("./GenericWorker");function o(c){a.call(this,"DataWorker");var h=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(f){h.dataIsReady=!0,h.data=f,h.max=f&&f.length||0,h.type=i.getTypeOf(f),h.isPaused||h._tickAndRepeat()},function(f){h.error(f)})}i.inherits(o,a),o.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,h=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,h);break;case"uint8array":c=this.data.subarray(this.index,h);break;case"array":case"nodebuffer":c=this.data.slice(this.index,h)}return this.index=h,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,s){function i(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,o){return this._listeners[a].push(o),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,o){if(this._listeners[a])for(var c=0;c<this._listeners[a].length;c++)this._listeners[a][c].call(this,o)},pipe:function(a){return a.registerPrevious(this)},registerPrevious:function(a){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=a.streamInfo,this.mergeStreamInfo(),this.previous=a;var o=this;return a.on("data",function(c){o.processChunk(c)}),a.on("end",function(){o.end()}),a.on("error",function(c){o.error(c)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var a=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),a=!0),this.previous&&this.previous.resume(),!a},flush:function(){},processChunk:function(a){this.push(a)},withStreamInfo:function(a,o){return this.extraStreamInfo[a]=o,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var a in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,a)&&(this.streamInfo[a]=this.extraStreamInfo[a])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var a="Worker "+this.name;return this.previous?this.previous+" -> "+a:a}},r.exports=i},{}],29:[function(n,r,s){var i=n("../utils"),a=n("./ConvertWorker"),o=n("./GenericWorker"),c=n("../base64"),h=n("../support"),f=n("../external"),_=null;if(h.nodestream)try{_=n("../nodejs/NodejsStreamOutputAdapter")}catch(v){}function w(v,m){return new f.Promise(function(E,k){var S=[],T=v._internalType,F=v._outputType,j=v._mimeType;v.on("data",function(q,z){S.push(q),m&&m(z)}).on("error",function(q){S=[],k(q)}).on("end",function(){try{var q=function(z,X,G){switch(z){case"blob":return i.newBlob(i.transformTo("arraybuffer",X),G);case"base64":return c.encode(X);default:return i.transformTo(z,X)}}(F,function(z,X){var G,ee=0,se=null,D=0;for(G=0;G<X.length;G++)D+=X[G].length;switch(z){case"string":return X.join("");case"array":return Array.prototype.concat.apply([],X);case"uint8array":for(se=new Uint8Array(D),G=0;G<X.length;G++)se.set(X[G],ee),ee+=X[G].length;return se;case"nodebuffer":return Buffer.concat(X);default:throw new Error("concat : unsupported type '"+z+"'")}}(T,S),j);E(q)}catch(z){k(z)}S=[]}).resume()})}function p(v,m,E){var k=m;switch(m){case"blob":case"arraybuffer":k="uint8array";break;case"base64":k="string"}try{this._internalType=k,this._outputType=m,this._mimeType=E,i.checkSupport(k),this._worker=v.pipe(new a(k)),v.lock()}catch(S){this._worker=new o("error"),this._worker.error(S)}}p.prototype={accumulate:function(v){return w(this,v)},on:function(v,m){var E=this;return v==="data"?this._worker.on(v,function(k){m.call(E,k.data,k.meta)}):this._worker.on(v,function(){i.delay(m,arguments,E)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(v){if(i.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new _(this,{objectMode:this._outputType!=="nodebuffer"},v)}},r.exports=p},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,r,s){if(s.base64=!0,s.array=!0,s.string=!0,s.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",s.nodebuffer=typeof Buffer!="undefined",s.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")s.blob=!1;else{var i=new ArrayBuffer(0);try{s.blob=new Blob([i],{type:"application/zip"}).size===0}catch(o){try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(i),s.blob=a.getBlob("application/zip").size===0}catch(c){s.blob=!1}}}try{s.nodestream=!!n("readable-stream").Readable}catch(o){s.nodestream=!1}},{"readable-stream":16}],31:[function(n,r,s){for(var i=n("./utils"),a=n("./support"),o=n("./nodejsUtils"),c=n("./stream/GenericWorker"),h=new Array(256),f=0;f<256;f++)h[f]=252<=f?6:248<=f?5:240<=f?4:224<=f?3:192<=f?2:1;h[254]=h[254]=1;function _(){c.call(this,"utf-8 decode"),this.leftOver=null}function w(){c.call(this,"utf-8 encode")}s.utf8encode=function(p){return a.nodebuffer?o.newBufferFrom(p,"utf-8"):function(v){var m,E,k,S,T,F=v.length,j=0;for(S=0;S<F;S++)(64512&(E=v.charCodeAt(S)))==55296&&S+1<F&&(64512&(k=v.charCodeAt(S+1)))==56320&&(E=65536+(E-55296<<10)+(k-56320),S++),j+=E<128?1:E<2048?2:E<65536?3:4;for(m=a.uint8array?new Uint8Array(j):new Array(j),S=T=0;T<j;S++)(64512&(E=v.charCodeAt(S)))==55296&&S+1<F&&(64512&(k=v.charCodeAt(S+1)))==56320&&(E=65536+(E-55296<<10)+(k-56320),S++),E<128?m[T++]=E:(E<2048?m[T++]=192|E>>>6:(E<65536?m[T++]=224|E>>>12:(m[T++]=240|E>>>18,m[T++]=128|E>>>12&63),m[T++]=128|E>>>6&63),m[T++]=128|63&E);return m}(p)},s.utf8decode=function(p){return a.nodebuffer?i.transformTo("nodebuffer",p).toString("utf-8"):function(v){var m,E,k,S,T=v.length,F=new Array(2*T);for(m=E=0;m<T;)if((k=v[m++])<128)F[E++]=k;else if(4<(S=h[k]))F[E++]=65533,m+=S-1;else{for(k&=S===2?31:S===3?15:7;1<S&&m<T;)k=k<<6|63&v[m++],S--;1<S?F[E++]=65533:k<65536?F[E++]=k:(k-=65536,F[E++]=55296|k>>10&1023,F[E++]=56320|1023&k)}return F.length!==E&&(F.subarray?F=F.subarray(0,E):F.length=E),i.applyFromCharCode(F)}(p=i.transformTo(a.uint8array?"uint8array":"array",p))},i.inherits(_,c),_.prototype.processChunk=function(p){var v=i.transformTo(a.uint8array?"uint8array":"array",p.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var m=v;(v=new Uint8Array(m.length+this.leftOver.length)).set(this.leftOver,0),v.set(m,this.leftOver.length)}else v=this.leftOver.concat(v);this.leftOver=null}var E=function(S,T){var F;for((T=T||S.length)>S.length&&(T=S.length),F=T-1;0<=F&&(192&S[F])==128;)F--;return F<0||F===0?T:F+h[S[F]]>T?F:T}(v),k=v;E!==v.length&&(a.uint8array?(k=v.subarray(0,E),this.leftOver=v.subarray(E,v.length)):(k=v.slice(0,E),this.leftOver=v.slice(E,v.length))),this.push({data:s.utf8decode(k),meta:p.meta})},_.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:s.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},s.Utf8DecodeWorker=_,i.inherits(w,c),w.prototype.processChunk=function(p){this.push({data:s.utf8encode(p.data),meta:p.meta})},s.Utf8EncodeWorker=w},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,s){var i=n("./support"),a=n("./base64"),o=n("./nodejsUtils"),c=n("./external");function h(m){return m}function f(m,E){for(var k=0;k<m.length;++k)E[k]=255&m.charCodeAt(k);return E}n("setimmediate"),s.newBlob=function(m,E){s.checkSupport("blob");try{return new Blob([m],{type:E})}catch(S){try{var k=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return k.append(m),k.getBlob(E)}catch(T){throw new Error("Bug : can't construct the Blob.")}}};var _={stringifyByChunk:function(m,E,k){var S=[],T=0,F=m.length;if(F<=k)return String.fromCharCode.apply(null,m);for(;T<F;)E==="array"||E==="nodebuffer"?S.push(String.fromCharCode.apply(null,m.slice(T,Math.min(T+k,F)))):S.push(String.fromCharCode.apply(null,m.subarray(T,Math.min(T+k,F)))),T+=k;return S.join("")},stringifyByChar:function(m){for(var E="",k=0;k<m.length;k++)E+=String.fromCharCode(m[k]);return E},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(m){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&String.fromCharCode.apply(null,o.allocBuffer(1)).length===1}catch(m){return!1}}()}};function w(m){var E=65536,k=s.getTypeOf(m),S=!0;if(k==="uint8array"?S=_.applyCanBeUsed.uint8array:k==="nodebuffer"&&(S=_.applyCanBeUsed.nodebuffer),S)for(;1<E;)try{return _.stringifyByChunk(m,k,E)}catch(T){E=Math.floor(E/2)}return _.stringifyByChar(m)}function p(m,E){for(var k=0;k<m.length;k++)E[k]=m[k];return E}s.applyFromCharCode=w;var v={};v.string={string:h,array:function(m){return f(m,new Array(m.length))},arraybuffer:function(m){return v.string.uint8array(m).buffer},uint8array:function(m){return f(m,new Uint8Array(m.length))},nodebuffer:function(m){return f(m,o.allocBuffer(m.length))}},v.array={string:w,array:h,arraybuffer:function(m){return new Uint8Array(m).buffer},uint8array:function(m){return new Uint8Array(m)},nodebuffer:function(m){return o.newBufferFrom(m)}},v.arraybuffer={string:function(m){return w(new Uint8Array(m))},array:function(m){return p(new Uint8Array(m),new Array(m.byteLength))},arraybuffer:h,uint8array:function(m){return new Uint8Array(m)},nodebuffer:function(m){return o.newBufferFrom(new Uint8Array(m))}},v.uint8array={string:w,array:function(m){return p(m,new Array(m.length))},arraybuffer:function(m){return m.buffer},uint8array:h,nodebuffer:function(m){return o.newBufferFrom(m)}},v.nodebuffer={string:w,array:function(m){return p(m,new Array(m.length))},arraybuffer:function(m){return v.nodebuffer.uint8array(m).buffer},uint8array:function(m){return p(m,new Uint8Array(m.length))},nodebuffer:h},s.transformTo=function(m,E){if(E=E||"",!m)return E;s.checkSupport(m);var k=s.getTypeOf(E);return v[k][m](E)},s.resolve=function(m){for(var E=m.split("/"),k=[],S=0;S<E.length;S++){var T=E[S];T==="."||T===""&&S!==0&&S!==E.length-1||(T===".."?k.pop():k.push(T))}return k.join("/")},s.getTypeOf=function(m){return typeof m=="string"?"string":Object.prototype.toString.call(m)==="[object Array]"?"array":i.nodebuffer&&o.isBuffer(m)?"nodebuffer":i.uint8array&&m instanceof Uint8Array?"uint8array":i.arraybuffer&&m instanceof ArrayBuffer?"arraybuffer":void 0},s.checkSupport=function(m){if(!i[m.toLowerCase()])throw new Error(m+" is not supported by this platform")},s.MAX_VALUE_16BITS=65535,s.MAX_VALUE_32BITS=-1,s.pretty=function(m){var E,k,S="";for(k=0;k<(m||"").length;k++)S+="\\x"+((E=m.charCodeAt(k))<16?"0":"")+E.toString(16).toUpperCase();return S},s.delay=function(m,E,k){setImmediate(function(){m.apply(k||null,E||[])})},s.inherits=function(m,E){function k(){}k.prototype=E.prototype,m.prototype=new k},s.extend=function(){var m,E,k={};for(m=0;m<arguments.length;m++)for(E in arguments[m])Object.prototype.hasOwnProperty.call(arguments[m],E)&&k[E]===void 0&&(k[E]=arguments[m][E]);return k},s.prepareContent=function(m,E,k,S,T){return c.Promise.resolve(E).then(function(F){return i.blob&&(F instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(F))!==-1)&&typeof FileReader!="undefined"?new c.Promise(function(j,q){var z=new FileReader;z.onload=function(X){j(X.target.result)},z.onerror=function(X){q(X.target.error)},z.readAsArrayBuffer(F)}):F}).then(function(F){var j=s.getTypeOf(F);return j?(j==="arraybuffer"?F=s.transformTo("uint8array",F):j==="string"&&(T?F=a.decode(F):k&&S!==!0&&(F=function(q){return f(q,i.uint8array?new Uint8Array(q.length):new Array(q.length))}(F))),F):c.Promise.reject(new Error("Can't read the data of '"+m+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,r,s){var i=n("./reader/readerFor"),a=n("./utils"),o=n("./signature"),c=n("./zipEntry"),h=n("./support");function f(_){this.files=[],this.loadOptions=_}f.prototype={checkSignature:function(_){if(!this.reader.readAndCheckSignature(_)){this.reader.index-=4;var w=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(w)+", expected "+a.pretty(_)+")")}},isSignature:function(_,w){var p=this.reader.index;this.reader.setIndex(_);var v=this.reader.readString(4)===w;return this.reader.setIndex(p),v},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var _=this.reader.readData(this.zipCommentLength),w=h.uint8array?"uint8array":"array",p=a.transformTo(w,_);this.zipComment=this.loadOptions.decodeFileName(p)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var _,w,p,v=this.zip64EndOfCentralSize-44;0<v;)_=this.reader.readInt(2),w=this.reader.readInt(4),p=this.reader.readData(w),this.zip64ExtensibleData[_]={id:_,length:w,value:p}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var _,w;for(_=0;_<this.files.length;_++)w=this.files[_],this.reader.setIndex(w.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),w.readLocalPart(this.reader),w.handleUTF8(),w.processAttributes()},readCentralDir:function(){var _;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(_=new c({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(_);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var _=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(_<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(_);var w=_;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(_=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(_),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var p=this.centralDirOffset+this.centralDirSize;this.zip64&&(p+=20,p+=12+this.zip64EndOfCentralSize);var v=w-p;if(0<v)this.isSignature(w,o.CENTRAL_FILE_HEADER)||(this.reader.zero=v);else if(v<0)throw new Error("Corrupted zip: missing "+Math.abs(v)+" bytes.")},prepareReader:function(_){this.reader=i(_)},load:function(_){this.prepareReader(_),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=f},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,r,s){var i=n("./reader/readerFor"),a=n("./utils"),o=n("./compressedObject"),c=n("./crc32"),h=n("./utf8"),f=n("./compressions"),_=n("./support");function w(p,v){this.options=p,this.loadOptions=v}w.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(p){var v,m;if(p.skip(22),this.fileNameLength=p.readInt(2),m=p.readInt(2),this.fileName=p.readData(this.fileNameLength),p.skip(m),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((v=function(E){for(var k in f)if(Object.prototype.hasOwnProperty.call(f,k)&&f[k].magic===E)return f[k];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,v,p.readData(this.compressedSize))},readCentralPart:function(p){this.versionMadeBy=p.readInt(2),p.skip(2),this.bitFlag=p.readInt(2),this.compressionMethod=p.readString(2),this.date=p.readDate(),this.crc32=p.readInt(4),this.compressedSize=p.readInt(4),this.uncompressedSize=p.readInt(4);var v=p.readInt(2);if(this.extraFieldsLength=p.readInt(2),this.fileCommentLength=p.readInt(2),this.diskNumberStart=p.readInt(2),this.internalFileAttributes=p.readInt(2),this.externalFileAttributes=p.readInt(4),this.localHeaderOffset=p.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");p.skip(v),this.readExtraFields(p),this.parseZIP64ExtraField(p),this.fileComment=p.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var p=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),p==0&&(this.dosPermissions=63&this.externalFileAttributes),p==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var p=i(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=p.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=p.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=p.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=p.readInt(4))}},readExtraFields:function(p){var v,m,E,k=p.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});p.index+4<k;)v=p.readInt(2),m=p.readInt(2),E=p.readData(m),this.extraFields[v]={id:v,length:m,value:E};p.setIndex(k)},handleUTF8:function(){var p=_.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=h.utf8decode(this.fileName),this.fileCommentStr=h.utf8decode(this.fileComment);else{var v=this.findExtraFieldUnicodePath();if(v!==null)this.fileNameStr=v;else{var m=a.transformTo(p,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(m)}var E=this.findExtraFieldUnicodeComment();if(E!==null)this.fileCommentStr=E;else{var k=a.transformTo(p,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(k)}}},findExtraFieldUnicodePath:function(){var p=this.extraFields[28789];if(p){var v=i(p.value);return v.readInt(1)!==1||c(this.fileName)!==v.readInt(4)?null:h.utf8decode(v.readData(p.length-5))}return null},findExtraFieldUnicodeComment:function(){var p=this.extraFields[25461];if(p){var v=i(p.value);return v.readInt(1)!==1||c(this.fileComment)!==v.readInt(4)?null:h.utf8decode(v.readData(p.length-5))}return null}},r.exports=w},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,r,s){function i(v,m,E){this.name=v,this.dir=E.dir,this.date=E.date,this.comment=E.comment,this.unixPermissions=E.unixPermissions,this.dosPermissions=E.dosPermissions,this._data=m,this._dataBinary=E.binary,this.options={compression:E.compression,compressionOptions:E.compressionOptions}}var a=n("./stream/StreamHelper"),o=n("./stream/DataWorker"),c=n("./utf8"),h=n("./compressedObject"),f=n("./stream/GenericWorker");i.prototype={internalStream:function(v){var m=null,E="string";try{if(!v)throw new Error("No output type specified.");var k=(E=v.toLowerCase())==="string"||E==="text";E!=="binarystring"&&E!=="text"||(E="string"),m=this._decompressWorker();var S=!this._dataBinary;S&&!k&&(m=m.pipe(new c.Utf8EncodeWorker)),!S&&k&&(m=m.pipe(new c.Utf8DecodeWorker))}catch(T){(m=new f("error")).error(T)}return new a(m,E,"")},async:function(v,m){return this.internalStream(v).accumulate(m)},nodeStream:function(v,m){return this.internalStream(v||"nodebuffer").toNodejsStream(m)},_compressWorker:function(v,m){if(this._data instanceof h&&this._data.compression.magic===v.magic)return this._data.getCompressedWorker();var E=this._decompressWorker();return this._dataBinary||(E=E.pipe(new c.Utf8EncodeWorker)),h.createWorkerFrom(E,v,m)},_decompressWorker:function(){return this._data instanceof h?this._data.getContentWorker():this._data instanceof f?this._data:new o(this._data)}};for(var _=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],w=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},p=0;p<_.length;p++)i.prototype[_[p]]=w;r.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,r,s){(function(i){var a,o,c=i.MutationObserver||i.WebKitMutationObserver;if(c){var h=0,f=new c(v),_=i.document.createTextNode("");f.observe(_,{characterData:!0}),a=function(){_.data=h=++h%2}}else if(i.setImmediate||i.MessageChannel===void 0)a="document"in i&&"onreadystatechange"in i.document.createElement("script")?function(){var m=i.document.createElement("script");m.onreadystatechange=function(){v(),m.onreadystatechange=null,m.parentNode.removeChild(m),m=null},i.document.documentElement.appendChild(m)}:function(){setTimeout(v,0)};else{var w=new i.MessageChannel;w.port1.onmessage=v,a=function(){w.port2.postMessage(0)}}var p=[];function v(){var m,E;o=!0;for(var k=p.length;k;){for(E=p,p=[],m=-1;++m<k;)E[m]();k=p.length}o=!1}r.exports=function(m){p.push(m)!==1||o||a()}}).call(this,typeof Pr!="undefined"?Pr:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(n,r,s){var i=n("immediate");function a(){}var o={},c=["REJECTED"],h=["FULFILLED"],f=["PENDING"];function _(k){if(typeof k!="function")throw new TypeError("resolver must be a function");this.state=f,this.queue=[],this.outcome=void 0,k!==a&&m(this,k)}function w(k,S,T){this.promise=k,typeof S=="function"&&(this.onFulfilled=S,this.callFulfilled=this.otherCallFulfilled),typeof T=="function"&&(this.onRejected=T,this.callRejected=this.otherCallRejected)}function p(k,S,T){i(function(){var F;try{F=S(T)}catch(j){return o.reject(k,j)}F===k?o.reject(k,new TypeError("Cannot resolve promise with itself")):o.resolve(k,F)})}function v(k){var S=k&&k.then;if(k&&(typeof k=="object"||typeof k=="function")&&typeof S=="function")return function(){S.apply(k,arguments)}}function m(k,S){var T=!1;function F(z){T||(T=!0,o.reject(k,z))}function j(z){T||(T=!0,o.resolve(k,z))}var q=E(function(){S(j,F)});q.status==="error"&&F(q.value)}function E(k,S){var T={};try{T.value=k(S),T.status="success"}catch(F){T.status="error",T.value=F}return T}(r.exports=_).prototype.finally=function(k){if(typeof k!="function")return this;var S=this.constructor;return this.then(function(T){return S.resolve(k()).then(function(){return T})},function(T){return S.resolve(k()).then(function(){throw T})})},_.prototype.catch=function(k){return this.then(null,k)},_.prototype.then=function(k,S){if(typeof k!="function"&&this.state===h||typeof S!="function"&&this.state===c)return this;var T=new this.constructor(a);return this.state!==f?p(T,this.state===h?k:S,this.outcome):this.queue.push(new w(T,k,S)),T},w.prototype.callFulfilled=function(k){o.resolve(this.promise,k)},w.prototype.otherCallFulfilled=function(k){p(this.promise,this.onFulfilled,k)},w.prototype.callRejected=function(k){o.reject(this.promise,k)},w.prototype.otherCallRejected=function(k){p(this.promise,this.onRejected,k)},o.resolve=function(k,S){var T=E(v,S);if(T.status==="error")return o.reject(k,T.value);var F=T.value;if(F)m(k,F);else{k.state=h,k.outcome=S;for(var j=-1,q=k.queue.length;++j<q;)k.queue[j].callFulfilled(S)}return k},o.reject=function(k,S){k.state=c,k.outcome=S;for(var T=-1,F=k.queue.length;++T<F;)k.queue[T].callRejected(S);return k},_.resolve=function(k){return k instanceof this?k:o.resolve(new this(a),k)},_.reject=function(k){var S=new this(a);return o.reject(S,k)},_.all=function(k){var S=this;if(Object.prototype.toString.call(k)!=="[object Array]")return this.reject(new TypeError("must be an array"));var T=k.length,F=!1;if(!T)return this.resolve([]);for(var j=new Array(T),q=0,z=-1,X=new this(a);++z<T;)G(k[z],z);return X;function G(ee,se){S.resolve(ee).then(function(D){j[se]=D,++q!==T||F||(F=!0,o.resolve(X,j))},function(D){F||(F=!0,o.reject(X,D))})}},_.race=function(k){var S=this;if(Object.prototype.toString.call(k)!=="[object Array]")return this.reject(new TypeError("must be an array"));var T=k.length,F=!1;if(!T)return this.resolve([]);for(var j=-1,q=new this(a);++j<T;)z=k[j],S.resolve(z).then(function(X){F||(F=!0,o.resolve(q,X))},function(X){F||(F=!0,o.reject(q,X))});var z;return q}},{immediate:36}],38:[function(n,r,s){var i={};(0,n("./lib/utils/common").assign)(i,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),r.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,r,s){var i=n("./zlib/deflate"),a=n("./utils/common"),o=n("./utils/strings"),c=n("./zlib/messages"),h=n("./zlib/zstream"),f=Object.prototype.toString,_=0,w=-1,p=0,v=8;function m(k){if(!(this instanceof m))return new m(k);this.options=a.assign({level:w,method:v,chunkSize:16384,windowBits:15,memLevel:8,strategy:p,to:""},k||{});var S=this.options;S.raw&&0<S.windowBits?S.windowBits=-S.windowBits:S.gzip&&0<S.windowBits&&S.windowBits<16&&(S.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var T=i.deflateInit2(this.strm,S.level,S.method,S.windowBits,S.memLevel,S.strategy);if(T!==_)throw new Error(c[T]);if(S.header&&i.deflateSetHeader(this.strm,S.header),S.dictionary){var F;if(F=typeof S.dictionary=="string"?o.string2buf(S.dictionary):f.call(S.dictionary)==="[object ArrayBuffer]"?new Uint8Array(S.dictionary):S.dictionary,(T=i.deflateSetDictionary(this.strm,F))!==_)throw new Error(c[T]);this._dict_set=!0}}function E(k,S){var T=new m(S);if(T.push(k,!0),T.err)throw T.msg||c[T.err];return T.result}m.prototype.push=function(k,S){var T,F,j=this.strm,q=this.options.chunkSize;if(this.ended)return!1;F=S===~~S?S:S===!0?4:0,typeof k=="string"?j.input=o.string2buf(k):f.call(k)==="[object ArrayBuffer]"?j.input=new Uint8Array(k):j.input=k,j.next_in=0,j.avail_in=j.input.length;do{if(j.avail_out===0&&(j.output=new a.Buf8(q),j.next_out=0,j.avail_out=q),(T=i.deflate(j,F))!==1&&T!==_)return this.onEnd(T),!(this.ended=!0);j.avail_out!==0&&(j.avail_in!==0||F!==4&&F!==2)||(this.options.to==="string"?this.onData(o.buf2binstring(a.shrinkBuf(j.output,j.next_out))):this.onData(a.shrinkBuf(j.output,j.next_out)))}while((0<j.avail_in||j.avail_out===0)&&T!==1);return F===4?(T=i.deflateEnd(this.strm),this.onEnd(T),this.ended=!0,T===_):F!==2||(this.onEnd(_),!(j.avail_out=0))},m.prototype.onData=function(k){this.chunks.push(k)},m.prototype.onEnd=function(k){k===_&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=k,this.msg=this.strm.msg},s.Deflate=m,s.deflate=E,s.deflateRaw=function(k,S){return(S=S||{}).raw=!0,E(k,S)},s.gzip=function(k,S){return(S=S||{}).gzip=!0,E(k,S)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,r,s){var i=n("./zlib/inflate"),a=n("./utils/common"),o=n("./utils/strings"),c=n("./zlib/constants"),h=n("./zlib/messages"),f=n("./zlib/zstream"),_=n("./zlib/gzheader"),w=Object.prototype.toString;function p(m){if(!(this instanceof p))return new p(m);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},m||{});var E=this.options;E.raw&&0<=E.windowBits&&E.windowBits<16&&(E.windowBits=-E.windowBits,E.windowBits===0&&(E.windowBits=-15)),!(0<=E.windowBits&&E.windowBits<16)||m&&m.windowBits||(E.windowBits+=32),15<E.windowBits&&E.windowBits<48&&!(15&E.windowBits)&&(E.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new f,this.strm.avail_out=0;var k=i.inflateInit2(this.strm,E.windowBits);if(k!==c.Z_OK)throw new Error(h[k]);this.header=new _,i.inflateGetHeader(this.strm,this.header)}function v(m,E){var k=new p(E);if(k.push(m,!0),k.err)throw k.msg||h[k.err];return k.result}p.prototype.push=function(m,E){var k,S,T,F,j,q,z=this.strm,X=this.options.chunkSize,G=this.options.dictionary,ee=!1;if(this.ended)return!1;S=E===~~E?E:E===!0?c.Z_FINISH:c.Z_NO_FLUSH,typeof m=="string"?z.input=o.binstring2buf(m):w.call(m)==="[object ArrayBuffer]"?z.input=new Uint8Array(m):z.input=m,z.next_in=0,z.avail_in=z.input.length;do{if(z.avail_out===0&&(z.output=new a.Buf8(X),z.next_out=0,z.avail_out=X),(k=i.inflate(z,c.Z_NO_FLUSH))===c.Z_NEED_DICT&&G&&(q=typeof G=="string"?o.string2buf(G):w.call(G)==="[object ArrayBuffer]"?new Uint8Array(G):G,k=i.inflateSetDictionary(this.strm,q)),k===c.Z_BUF_ERROR&&ee===!0&&(k=c.Z_OK,ee=!1),k!==c.Z_STREAM_END&&k!==c.Z_OK)return this.onEnd(k),!(this.ended=!0);z.next_out&&(z.avail_out!==0&&k!==c.Z_STREAM_END&&(z.avail_in!==0||S!==c.Z_FINISH&&S!==c.Z_SYNC_FLUSH)||(this.options.to==="string"?(T=o.utf8border(z.output,z.next_out),F=z.next_out-T,j=o.buf2string(z.output,T),z.next_out=F,z.avail_out=X-F,F&&a.arraySet(z.output,z.output,T,F,0),this.onData(j)):this.onData(a.shrinkBuf(z.output,z.next_out)))),z.avail_in===0&&z.avail_out===0&&(ee=!0)}while((0<z.avail_in||z.avail_out===0)&&k!==c.Z_STREAM_END);return k===c.Z_STREAM_END&&(S=c.Z_FINISH),S===c.Z_FINISH?(k=i.inflateEnd(this.strm),this.onEnd(k),this.ended=!0,k===c.Z_OK):S!==c.Z_SYNC_FLUSH||(this.onEnd(c.Z_OK),!(z.avail_out=0))},p.prototype.onData=function(m){this.chunks.push(m)},p.prototype.onEnd=function(m){m===c.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},s.Inflate=p,s.inflate=v,s.inflateRaw=function(m,E){return(E=E||{}).raw=!0,v(m,E)},s.ungzip=v},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,r,s){var i=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";s.assign=function(c){for(var h=Array.prototype.slice.call(arguments,1);h.length;){var f=h.shift();if(f){if(typeof f!="object")throw new TypeError(f+"must be non-object");for(var _ in f)f.hasOwnProperty(_)&&(c[_]=f[_])}}return c},s.shrinkBuf=function(c,h){return c.length===h?c:c.subarray?c.subarray(0,h):(c.length=h,c)};var a={arraySet:function(c,h,f,_,w){if(h.subarray&&c.subarray)c.set(h.subarray(f,f+_),w);else for(var p=0;p<_;p++)c[w+p]=h[f+p]},flattenChunks:function(c){var h,f,_,w,p,v;for(h=_=0,f=c.length;h<f;h++)_+=c[h].length;for(v=new Uint8Array(_),h=w=0,f=c.length;h<f;h++)p=c[h],v.set(p,w),w+=p.length;return v}},o={arraySet:function(c,h,f,_,w){for(var p=0;p<_;p++)c[w+p]=h[f+p]},flattenChunks:function(c){return[].concat.apply([],c)}};s.setTyped=function(c){c?(s.Buf8=Uint8Array,s.Buf16=Uint16Array,s.Buf32=Int32Array,s.assign(s,a)):(s.Buf8=Array,s.Buf16=Array,s.Buf32=Array,s.assign(s,o))},s.setTyped(i)},{}],42:[function(n,r,s){var i=n("./common"),a=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(_){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(_){o=!1}for(var c=new i.Buf8(256),h=0;h<256;h++)c[h]=252<=h?6:248<=h?5:240<=h?4:224<=h?3:192<=h?2:1;function f(_,w){if(w<65537&&(_.subarray&&o||!_.subarray&&a))return String.fromCharCode.apply(null,i.shrinkBuf(_,w));for(var p="",v=0;v<w;v++)p+=String.fromCharCode(_[v]);return p}c[254]=c[254]=1,s.string2buf=function(_){var w,p,v,m,E,k=_.length,S=0;for(m=0;m<k;m++)(64512&(p=_.charCodeAt(m)))==55296&&m+1<k&&(64512&(v=_.charCodeAt(m+1)))==56320&&(p=65536+(p-55296<<10)+(v-56320),m++),S+=p<128?1:p<2048?2:p<65536?3:4;for(w=new i.Buf8(S),m=E=0;E<S;m++)(64512&(p=_.charCodeAt(m)))==55296&&m+1<k&&(64512&(v=_.charCodeAt(m+1)))==56320&&(p=65536+(p-55296<<10)+(v-56320),m++),p<128?w[E++]=p:(p<2048?w[E++]=192|p>>>6:(p<65536?w[E++]=224|p>>>12:(w[E++]=240|p>>>18,w[E++]=128|p>>>12&63),w[E++]=128|p>>>6&63),w[E++]=128|63&p);return w},s.buf2binstring=function(_){return f(_,_.length)},s.binstring2buf=function(_){for(var w=new i.Buf8(_.length),p=0,v=w.length;p<v;p++)w[p]=_.charCodeAt(p);return w},s.buf2string=function(_,w){var p,v,m,E,k=w||_.length,S=new Array(2*k);for(p=v=0;p<k;)if((m=_[p++])<128)S[v++]=m;else if(4<(E=c[m]))S[v++]=65533,p+=E-1;else{for(m&=E===2?31:E===3?15:7;1<E&&p<k;)m=m<<6|63&_[p++],E--;1<E?S[v++]=65533:m<65536?S[v++]=m:(m-=65536,S[v++]=55296|m>>10&1023,S[v++]=56320|1023&m)}return f(S,v)},s.utf8border=function(_,w){var p;for((w=w||_.length)>_.length&&(w=_.length),p=w-1;0<=p&&(192&_[p])==128;)p--;return p<0||p===0?w:p+c[_[p]]>w?p:w}},{"./common":41}],43:[function(n,r,s){r.exports=function(i,a,o,c){for(var h=65535&i|0,f=i>>>16&65535|0,_=0;o!==0;){for(o-=_=2e3<o?2e3:o;f=f+(h=h+a[c++]|0)|0,--_;);h%=65521,f%=65521}return h|f<<16|0}},{}],44:[function(n,r,s){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,r,s){var i=function(){for(var a,o=[],c=0;c<256;c++){a=c;for(var h=0;h<8;h++)a=1&a?3988292384^a>>>1:a>>>1;o[c]=a}return o}();r.exports=function(a,o,c,h){var f=i,_=h+c;a^=-1;for(var w=h;w<_;w++)a=a>>>8^f[255&(a^o[w])];return-1^a}},{}],46:[function(n,r,s){var i,a=n("../utils/common"),o=n("./trees"),c=n("./adler32"),h=n("./crc32"),f=n("./messages"),_=0,w=4,p=0,v=-2,m=-1,E=4,k=2,S=8,T=9,F=286,j=30,q=19,z=2*F+1,X=15,G=3,ee=258,se=ee+G+1,D=42,Y=113,b=1,Z=2,ue=3,Q=4;function ae(u,R){return u.msg=f[R],R}function ne(u){return(u<<1)-(4<u?9:0)}function de(u){for(var R=u.length;0<=--R;)u[R]=0}function H(u){var R=u.state,O=R.pending;O>u.avail_out&&(O=u.avail_out),O!==0&&(a.arraySet(u.output,R.pending_buf,R.pending_out,O,u.next_out),u.next_out+=O,R.pending_out+=O,u.total_out+=O,u.avail_out-=O,R.pending-=O,R.pending===0&&(R.pending_out=0))}function L(u,R){o._tr_flush_block(u,0<=u.block_start?u.block_start:-1,u.strstart-u.block_start,R),u.block_start=u.strstart,H(u.strm)}function ce(u,R){u.pending_buf[u.pending++]=R}function oe(u,R){u.pending_buf[u.pending++]=R>>>8&255,u.pending_buf[u.pending++]=255&R}function ie(u,R){var O,x,y=u.max_chain_length,A=u.strstart,M=u.prev_length,U=u.nice_match,B=u.strstart>u.w_size-se?u.strstart-(u.w_size-se):0,K=u.window,J=u.w_mask,V=u.prev,re=u.strstart+ee,g=K[A+M-1],l=K[A+M];u.prev_length>=u.good_match&&(y>>=2),U>u.lookahead&&(U=u.lookahead);do if(K[(O=R)+M]===l&&K[O+M-1]===g&&K[O]===K[A]&&K[++O]===K[A+1]){A+=2,O++;do;while(K[++A]===K[++O]&&K[++A]===K[++O]&&K[++A]===K[++O]&&K[++A]===K[++O]&&K[++A]===K[++O]&&K[++A]===K[++O]&&K[++A]===K[++O]&&K[++A]===K[++O]&&A<re);if(x=ee-(re-A),A=re-ee,M<x){if(u.match_start=R,U<=(M=x))break;g=K[A+M-1],l=K[A+M]}}while((R=V[R&J])>B&&--y!=0);return M<=u.lookahead?M:u.lookahead}function xe(u){var R,O,x,y,A,M,U,B,K,J,V=u.w_size;do{if(y=u.window_size-u.lookahead-u.strstart,u.strstart>=V+(V-se)){for(a.arraySet(u.window,u.window,V,V,0),u.match_start-=V,u.strstart-=V,u.block_start-=V,R=O=u.hash_size;x=u.head[--R],u.head[R]=V<=x?x-V:0,--O;);for(R=O=V;x=u.prev[--R],u.prev[R]=V<=x?x-V:0,--O;);y+=V}if(u.strm.avail_in===0)break;if(M=u.strm,U=u.window,B=u.strstart+u.lookahead,K=y,J=void 0,J=M.avail_in,K<J&&(J=K),O=J===0?0:(M.avail_in-=J,a.arraySet(U,M.input,M.next_in,J,B),M.state.wrap===1?M.adler=c(M.adler,U,J,B):M.state.wrap===2&&(M.adler=h(M.adler,U,J,B)),M.next_in+=J,M.total_in+=J,J),u.lookahead+=O,u.lookahead+u.insert>=G)for(A=u.strstart-u.insert,u.ins_h=u.window[A],u.ins_h=(u.ins_h<<u.hash_shift^u.window[A+1])&u.hash_mask;u.insert&&(u.ins_h=(u.ins_h<<u.hash_shift^u.window[A+G-1])&u.hash_mask,u.prev[A&u.w_mask]=u.head[u.ins_h],u.head[u.ins_h]=A,A++,u.insert--,!(u.lookahead+u.insert<G)););}while(u.lookahead<se&&u.strm.avail_in!==0)}function Ne(u,R){for(var O,x;;){if(u.lookahead<se){if(xe(u),u.lookahead<se&&R===_)return b;if(u.lookahead===0)break}if(O=0,u.lookahead>=G&&(u.ins_h=(u.ins_h<<u.hash_shift^u.window[u.strstart+G-1])&u.hash_mask,O=u.prev[u.strstart&u.w_mask]=u.head[u.ins_h],u.head[u.ins_h]=u.strstart),O!==0&&u.strstart-O<=u.w_size-se&&(u.match_length=ie(u,O)),u.match_length>=G)if(x=o._tr_tally(u,u.strstart-u.match_start,u.match_length-G),u.lookahead-=u.match_length,u.match_length<=u.max_lazy_match&&u.lookahead>=G){for(u.match_length--;u.strstart++,u.ins_h=(u.ins_h<<u.hash_shift^u.window[u.strstart+G-1])&u.hash_mask,O=u.prev[u.strstart&u.w_mask]=u.head[u.ins_h],u.head[u.ins_h]=u.strstart,--u.match_length!=0;);u.strstart++}else u.strstart+=u.match_length,u.match_length=0,u.ins_h=u.window[u.strstart],u.ins_h=(u.ins_h<<u.hash_shift^u.window[u.strstart+1])&u.hash_mask;else x=o._tr_tally(u,0,u.window[u.strstart]),u.lookahead--,u.strstart++;if(x&&(L(u,!1),u.strm.avail_out===0))return b}return u.insert=u.strstart<G-1?u.strstart:G-1,R===w?(L(u,!0),u.strm.avail_out===0?ue:Q):u.last_lit&&(L(u,!1),u.strm.avail_out===0)?b:Z}function ge(u,R){for(var O,x,y;;){if(u.lookahead<se){if(xe(u),u.lookahead<se&&R===_)return b;if(u.lookahead===0)break}if(O=0,u.lookahead>=G&&(u.ins_h=(u.ins_h<<u.hash_shift^u.window[u.strstart+G-1])&u.hash_mask,O=u.prev[u.strstart&u.w_mask]=u.head[u.ins_h],u.head[u.ins_h]=u.strstart),u.prev_length=u.match_length,u.prev_match=u.match_start,u.match_length=G-1,O!==0&&u.prev_length<u.max_lazy_match&&u.strstart-O<=u.w_size-se&&(u.match_length=ie(u,O),u.match_length<=5&&(u.strategy===1||u.match_length===G&&4096<u.strstart-u.match_start)&&(u.match_length=G-1)),u.prev_length>=G&&u.match_length<=u.prev_length){for(y=u.strstart+u.lookahead-G,x=o._tr_tally(u,u.strstart-1-u.prev_match,u.prev_length-G),u.lookahead-=u.prev_length-1,u.prev_length-=2;++u.strstart<=y&&(u.ins_h=(u.ins_h<<u.hash_shift^u.window[u.strstart+G-1])&u.hash_mask,O=u.prev[u.strstart&u.w_mask]=u.head[u.ins_h],u.head[u.ins_h]=u.strstart),--u.prev_length!=0;);if(u.match_available=0,u.match_length=G-1,u.strstart++,x&&(L(u,!1),u.strm.avail_out===0))return b}else if(u.match_available){if((x=o._tr_tally(u,0,u.window[u.strstart-1]))&&L(u,!1),u.strstart++,u.lookahead--,u.strm.avail_out===0)return b}else u.match_available=1,u.strstart++,u.lookahead--}return u.match_available&&(x=o._tr_tally(u,0,u.window[u.strstart-1]),u.match_available=0),u.insert=u.strstart<G-1?u.strstart:G-1,R===w?(L(u,!0),u.strm.avail_out===0?ue:Q):u.last_lit&&(L(u,!1),u.strm.avail_out===0)?b:Z}function we(u,R,O,x,y){this.good_length=u,this.max_lazy=R,this.nice_length=O,this.max_chain=x,this.func=y}function je(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=S,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new a.Buf16(2*z),this.dyn_dtree=new a.Buf16(2*(2*j+1)),this.bl_tree=new a.Buf16(2*(2*q+1)),de(this.dyn_ltree),de(this.dyn_dtree),de(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(X+1),this.heap=new a.Buf16(2*F+1),de(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*F+1),de(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ae(u){var R;return u&&u.state?(u.total_in=u.total_out=0,u.data_type=k,(R=u.state).pending=0,R.pending_out=0,R.wrap<0&&(R.wrap=-R.wrap),R.status=R.wrap?D:Y,u.adler=R.wrap===2?0:1,R.last_flush=_,o._tr_init(R),p):ae(u,v)}function C(u){var R=Ae(u);return R===p&&function(O){O.window_size=2*O.w_size,de(O.head),O.max_lazy_match=i[O.level].max_lazy,O.good_match=i[O.level].good_length,O.nice_match=i[O.level].nice_length,O.max_chain_length=i[O.level].max_chain,O.strstart=0,O.block_start=0,O.lookahead=0,O.insert=0,O.match_length=O.prev_length=G-1,O.match_available=0,O.ins_h=0}(u.state),R}function P(u,R,O,x,y,A){if(!u)return v;var M=1;if(R===m&&(R=6),x<0?(M=0,x=-x):15<x&&(M=2,x-=16),y<1||T<y||O!==S||x<8||15<x||R<0||9<R||A<0||E<A)return ae(u,v);x===8&&(x=9);var U=new je;return(u.state=U).strm=u,U.wrap=M,U.gzhead=null,U.w_bits=x,U.w_size=1<<U.w_bits,U.w_mask=U.w_size-1,U.hash_bits=y+7,U.hash_size=1<<U.hash_bits,U.hash_mask=U.hash_size-1,U.hash_shift=~~((U.hash_bits+G-1)/G),U.window=new a.Buf8(2*U.w_size),U.head=new a.Buf16(U.hash_size),U.prev=new a.Buf16(U.w_size),U.lit_bufsize=1<<y+6,U.pending_buf_size=4*U.lit_bufsize,U.pending_buf=new a.Buf8(U.pending_buf_size),U.d_buf=1*U.lit_bufsize,U.l_buf=3*U.lit_bufsize,U.level=R,U.strategy=A,U.method=O,C(u)}i=[new we(0,0,0,0,function(u,R){var O=65535;for(O>u.pending_buf_size-5&&(O=u.pending_buf_size-5);;){if(u.lookahead<=1){if(xe(u),u.lookahead===0&&R===_)return b;if(u.lookahead===0)break}u.strstart+=u.lookahead,u.lookahead=0;var x=u.block_start+O;if((u.strstart===0||u.strstart>=x)&&(u.lookahead=u.strstart-x,u.strstart=x,L(u,!1),u.strm.avail_out===0)||u.strstart-u.block_start>=u.w_size-se&&(L(u,!1),u.strm.avail_out===0))return b}return u.insert=0,R===w?(L(u,!0),u.strm.avail_out===0?ue:Q):(u.strstart>u.block_start&&(L(u,!1),u.strm.avail_out),b)}),new we(4,4,8,4,Ne),new we(4,5,16,8,Ne),new we(4,6,32,32,Ne),new we(4,4,16,16,ge),new we(8,16,32,32,ge),new we(8,16,128,128,ge),new we(8,32,128,256,ge),new we(32,128,258,1024,ge),new we(32,258,258,4096,ge)],s.deflateInit=function(u,R){return P(u,R,S,15,8,0)},s.deflateInit2=P,s.deflateReset=C,s.deflateResetKeep=Ae,s.deflateSetHeader=function(u,R){return u&&u.state?u.state.wrap!==2?v:(u.state.gzhead=R,p):v},s.deflate=function(u,R){var O,x,y,A;if(!u||!u.state||5<R||R<0)return u?ae(u,v):v;if(x=u.state,!u.output||!u.input&&u.avail_in!==0||x.status===666&&R!==w)return ae(u,u.avail_out===0?-5:v);if(x.strm=u,O=x.last_flush,x.last_flush=R,x.status===D)if(x.wrap===2)u.adler=0,ce(x,31),ce(x,139),ce(x,8),x.gzhead?(ce(x,(x.gzhead.text?1:0)+(x.gzhead.hcrc?2:0)+(x.gzhead.extra?4:0)+(x.gzhead.name?8:0)+(x.gzhead.comment?16:0)),ce(x,255&x.gzhead.time),ce(x,x.gzhead.time>>8&255),ce(x,x.gzhead.time>>16&255),ce(x,x.gzhead.time>>24&255),ce(x,x.level===9?2:2<=x.strategy||x.level<2?4:0),ce(x,255&x.gzhead.os),x.gzhead.extra&&x.gzhead.extra.length&&(ce(x,255&x.gzhead.extra.length),ce(x,x.gzhead.extra.length>>8&255)),x.gzhead.hcrc&&(u.adler=h(u.adler,x.pending_buf,x.pending,0)),x.gzindex=0,x.status=69):(ce(x,0),ce(x,0),ce(x,0),ce(x,0),ce(x,0),ce(x,x.level===9?2:2<=x.strategy||x.level<2?4:0),ce(x,3),x.status=Y);else{var M=S+(x.w_bits-8<<4)<<8;M|=(2<=x.strategy||x.level<2?0:x.level<6?1:x.level===6?2:3)<<6,x.strstart!==0&&(M|=32),M+=31-M%31,x.status=Y,oe(x,M),x.strstart!==0&&(oe(x,u.adler>>>16),oe(x,65535&u.adler)),u.adler=1}if(x.status===69)if(x.gzhead.extra){for(y=x.pending;x.gzindex<(65535&x.gzhead.extra.length)&&(x.pending!==x.pending_buf_size||(x.gzhead.hcrc&&x.pending>y&&(u.adler=h(u.adler,x.pending_buf,x.pending-y,y)),H(u),y=x.pending,x.pending!==x.pending_buf_size));)ce(x,255&x.gzhead.extra[x.gzindex]),x.gzindex++;x.gzhead.hcrc&&x.pending>y&&(u.adler=h(u.adler,x.pending_buf,x.pending-y,y)),x.gzindex===x.gzhead.extra.length&&(x.gzindex=0,x.status=73)}else x.status=73;if(x.status===73)if(x.gzhead.name){y=x.pending;do{if(x.pending===x.pending_buf_size&&(x.gzhead.hcrc&&x.pending>y&&(u.adler=h(u.adler,x.pending_buf,x.pending-y,y)),H(u),y=x.pending,x.pending===x.pending_buf_size)){A=1;break}A=x.gzindex<x.gzhead.name.length?255&x.gzhead.name.charCodeAt(x.gzindex++):0,ce(x,A)}while(A!==0);x.gzhead.hcrc&&x.pending>y&&(u.adler=h(u.adler,x.pending_buf,x.pending-y,y)),A===0&&(x.gzindex=0,x.status=91)}else x.status=91;if(x.status===91)if(x.gzhead.comment){y=x.pending;do{if(x.pending===x.pending_buf_size&&(x.gzhead.hcrc&&x.pending>y&&(u.adler=h(u.adler,x.pending_buf,x.pending-y,y)),H(u),y=x.pending,x.pending===x.pending_buf_size)){A=1;break}A=x.gzindex<x.gzhead.comment.length?255&x.gzhead.comment.charCodeAt(x.gzindex++):0,ce(x,A)}while(A!==0);x.gzhead.hcrc&&x.pending>y&&(u.adler=h(u.adler,x.pending_buf,x.pending-y,y)),A===0&&(x.status=103)}else x.status=103;if(x.status===103&&(x.gzhead.hcrc?(x.pending+2>x.pending_buf_size&&H(u),x.pending+2<=x.pending_buf_size&&(ce(x,255&u.adler),ce(x,u.adler>>8&255),u.adler=0,x.status=Y)):x.status=Y),x.pending!==0){if(H(u),u.avail_out===0)return x.last_flush=-1,p}else if(u.avail_in===0&&ne(R)<=ne(O)&&R!==w)return ae(u,-5);if(x.status===666&&u.avail_in!==0)return ae(u,-5);if(u.avail_in!==0||x.lookahead!==0||R!==_&&x.status!==666){var U=x.strategy===2?function(B,K){for(var J;;){if(B.lookahead===0&&(xe(B),B.lookahead===0)){if(K===_)return b;break}if(B.match_length=0,J=o._tr_tally(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++,J&&(L(B,!1),B.strm.avail_out===0))return b}return B.insert=0,K===w?(L(B,!0),B.strm.avail_out===0?ue:Q):B.last_lit&&(L(B,!1),B.strm.avail_out===0)?b:Z}(x,R):x.strategy===3?function(B,K){for(var J,V,re,g,l=B.window;;){if(B.lookahead<=ee){if(xe(B),B.lookahead<=ee&&K===_)return b;if(B.lookahead===0)break}if(B.match_length=0,B.lookahead>=G&&0<B.strstart&&(V=l[re=B.strstart-1])===l[++re]&&V===l[++re]&&V===l[++re]){g=B.strstart+ee;do;while(V===l[++re]&&V===l[++re]&&V===l[++re]&&V===l[++re]&&V===l[++re]&&V===l[++re]&&V===l[++re]&&V===l[++re]&&re<g);B.match_length=ee-(g-re),B.match_length>B.lookahead&&(B.match_length=B.lookahead)}if(B.match_length>=G?(J=o._tr_tally(B,1,B.match_length-G),B.lookahead-=B.match_length,B.strstart+=B.match_length,B.match_length=0):(J=o._tr_tally(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++),J&&(L(B,!1),B.strm.avail_out===0))return b}return B.insert=0,K===w?(L(B,!0),B.strm.avail_out===0?ue:Q):B.last_lit&&(L(B,!1),B.strm.avail_out===0)?b:Z}(x,R):i[x.level].func(x,R);if(U!==ue&&U!==Q||(x.status=666),U===b||U===ue)return u.avail_out===0&&(x.last_flush=-1),p;if(U===Z&&(R===1?o._tr_align(x):R!==5&&(o._tr_stored_block(x,0,0,!1),R===3&&(de(x.head),x.lookahead===0&&(x.strstart=0,x.block_start=0,x.insert=0))),H(u),u.avail_out===0))return x.last_flush=-1,p}return R!==w?p:x.wrap<=0?1:(x.wrap===2?(ce(x,255&u.adler),ce(x,u.adler>>8&255),ce(x,u.adler>>16&255),ce(x,u.adler>>24&255),ce(x,255&u.total_in),ce(x,u.total_in>>8&255),ce(x,u.total_in>>16&255),ce(x,u.total_in>>24&255)):(oe(x,u.adler>>>16),oe(x,65535&u.adler)),H(u),0<x.wrap&&(x.wrap=-x.wrap),x.pending!==0?p:1)},s.deflateEnd=function(u){var R;return u&&u.state?(R=u.state.status)!==D&&R!==69&&R!==73&&R!==91&&R!==103&&R!==Y&&R!==666?ae(u,v):(u.state=null,R===Y?ae(u,-3):p):v},s.deflateSetDictionary=function(u,R){var O,x,y,A,M,U,B,K,J=R.length;if(!u||!u.state||(A=(O=u.state).wrap)===2||A===1&&O.status!==D||O.lookahead)return v;for(A===1&&(u.adler=c(u.adler,R,J,0)),O.wrap=0,J>=O.w_size&&(A===0&&(de(O.head),O.strstart=0,O.block_start=0,O.insert=0),K=new a.Buf8(O.w_size),a.arraySet(K,R,J-O.w_size,O.w_size,0),R=K,J=O.w_size),M=u.avail_in,U=u.next_in,B=u.input,u.avail_in=J,u.next_in=0,u.input=R,xe(O);O.lookahead>=G;){for(x=O.strstart,y=O.lookahead-(G-1);O.ins_h=(O.ins_h<<O.hash_shift^O.window[x+G-1])&O.hash_mask,O.prev[x&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=x,x++,--y;);O.strstart=x,O.lookahead=G-1,xe(O)}return O.strstart+=O.lookahead,O.block_start=O.strstart,O.insert=O.lookahead,O.lookahead=0,O.match_length=O.prev_length=G-1,O.match_available=0,u.next_in=U,u.input=B,u.avail_in=M,O.wrap=A,p},s.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,r,s){r.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(n,r,s){r.exports=function(i,a){var o,c,h,f,_,w,p,v,m,E,k,S,T,F,j,q,z,X,G,ee,se,D,Y,b,Z;o=i.state,c=i.next_in,b=i.input,h=c+(i.avail_in-5),f=i.next_out,Z=i.output,_=f-(a-i.avail_out),w=f+(i.avail_out-257),p=o.dmax,v=o.wsize,m=o.whave,E=o.wnext,k=o.window,S=o.hold,T=o.bits,F=o.lencode,j=o.distcode,q=(1<<o.lenbits)-1,z=(1<<o.distbits)-1;e:do{T<15&&(S+=b[c++]<<T,T+=8,S+=b[c++]<<T,T+=8),X=F[S&q];t:for(;;){if(S>>>=G=X>>>24,T-=G,(G=X>>>16&255)===0)Z[f++]=65535&X;else{if(!(16&G)){if(!(64&G)){X=F[(65535&X)+(S&(1<<G)-1)];continue t}if(32&G){o.mode=12;break e}i.msg="invalid literal/length code",o.mode=30;break e}ee=65535&X,(G&=15)&&(T<G&&(S+=b[c++]<<T,T+=8),ee+=S&(1<<G)-1,S>>>=G,T-=G),T<15&&(S+=b[c++]<<T,T+=8,S+=b[c++]<<T,T+=8),X=j[S&z];n:for(;;){if(S>>>=G=X>>>24,T-=G,!(16&(G=X>>>16&255))){if(!(64&G)){X=j[(65535&X)+(S&(1<<G)-1)];continue n}i.msg="invalid distance code",o.mode=30;break e}if(se=65535&X,T<(G&=15)&&(S+=b[c++]<<T,(T+=8)<G&&(S+=b[c++]<<T,T+=8)),p<(se+=S&(1<<G)-1)){i.msg="invalid distance too far back",o.mode=30;break e}if(S>>>=G,T-=G,(G=f-_)<se){if(m<(G=se-G)&&o.sane){i.msg="invalid distance too far back",o.mode=30;break e}if(Y=k,(D=0)===E){if(D+=v-G,G<ee){for(ee-=G;Z[f++]=k[D++],--G;);D=f-se,Y=Z}}else if(E<G){if(D+=v+E-G,(G-=E)<ee){for(ee-=G;Z[f++]=k[D++],--G;);if(D=0,E<ee){for(ee-=G=E;Z[f++]=k[D++],--G;);D=f-se,Y=Z}}}else if(D+=E-G,G<ee){for(ee-=G;Z[f++]=k[D++],--G;);D=f-se,Y=Z}for(;2<ee;)Z[f++]=Y[D++],Z[f++]=Y[D++],Z[f++]=Y[D++],ee-=3;ee&&(Z[f++]=Y[D++],1<ee&&(Z[f++]=Y[D++]))}else{for(D=f-se;Z[f++]=Z[D++],Z[f++]=Z[D++],Z[f++]=Z[D++],2<(ee-=3););ee&&(Z[f++]=Z[D++],1<ee&&(Z[f++]=Z[D++]))}break}}break}}while(c<h&&f<w);c-=ee=T>>3,S&=(1<<(T-=ee<<3))-1,i.next_in=c,i.next_out=f,i.avail_in=c<h?h-c+5:5-(c-h),i.avail_out=f<w?w-f+257:257-(f-w),o.hold=S,o.bits=T}},{}],49:[function(n,r,s){var i=n("../utils/common"),a=n("./adler32"),o=n("./crc32"),c=n("./inffast"),h=n("./inftrees"),f=1,_=2,w=0,p=-2,v=1,m=852,E=592;function k(D){return(D>>>24&255)+(D>>>8&65280)+((65280&D)<<8)+((255&D)<<24)}function S(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function T(D){var Y;return D&&D.state?(Y=D.state,D.total_in=D.total_out=Y.total=0,D.msg="",Y.wrap&&(D.adler=1&Y.wrap),Y.mode=v,Y.last=0,Y.havedict=0,Y.dmax=32768,Y.head=null,Y.hold=0,Y.bits=0,Y.lencode=Y.lendyn=new i.Buf32(m),Y.distcode=Y.distdyn=new i.Buf32(E),Y.sane=1,Y.back=-1,w):p}function F(D){var Y;return D&&D.state?((Y=D.state).wsize=0,Y.whave=0,Y.wnext=0,T(D)):p}function j(D,Y){var b,Z;return D&&D.state?(Z=D.state,Y<0?(b=0,Y=-Y):(b=1+(Y>>4),Y<48&&(Y&=15)),Y&&(Y<8||15<Y)?p:(Z.window!==null&&Z.wbits!==Y&&(Z.window=null),Z.wrap=b,Z.wbits=Y,F(D))):p}function q(D,Y){var b,Z;return D?(Z=new S,(D.state=Z).window=null,(b=j(D,Y))!==w&&(D.state=null),b):p}var z,X,G=!0;function ee(D){if(G){var Y;for(z=new i.Buf32(512),X=new i.Buf32(32),Y=0;Y<144;)D.lens[Y++]=8;for(;Y<256;)D.lens[Y++]=9;for(;Y<280;)D.lens[Y++]=7;for(;Y<288;)D.lens[Y++]=8;for(h(f,D.lens,0,288,z,0,D.work,{bits:9}),Y=0;Y<32;)D.lens[Y++]=5;h(_,D.lens,0,32,X,0,D.work,{bits:5}),G=!1}D.lencode=z,D.lenbits=9,D.distcode=X,D.distbits=5}function se(D,Y,b,Z){var ue,Q=D.state;return Q.window===null&&(Q.wsize=1<<Q.wbits,Q.wnext=0,Q.whave=0,Q.window=new i.Buf8(Q.wsize)),Z>=Q.wsize?(i.arraySet(Q.window,Y,b-Q.wsize,Q.wsize,0),Q.wnext=0,Q.whave=Q.wsize):(Z<(ue=Q.wsize-Q.wnext)&&(ue=Z),i.arraySet(Q.window,Y,b-Z,ue,Q.wnext),(Z-=ue)?(i.arraySet(Q.window,Y,b-Z,Z,0),Q.wnext=Z,Q.whave=Q.wsize):(Q.wnext+=ue,Q.wnext===Q.wsize&&(Q.wnext=0),Q.whave<Q.wsize&&(Q.whave+=ue))),0}s.inflateReset=F,s.inflateReset2=j,s.inflateResetKeep=T,s.inflateInit=function(D){return q(D,15)},s.inflateInit2=q,s.inflate=function(D,Y){var b,Z,ue,Q,ae,ne,de,H,L,ce,oe,ie,xe,Ne,ge,we,je,Ae,C,P,u,R,O,x,y=0,A=new i.Buf8(4),M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!D||!D.state||!D.output||!D.input&&D.avail_in!==0)return p;(b=D.state).mode===12&&(b.mode=13),ae=D.next_out,ue=D.output,de=D.avail_out,Q=D.next_in,Z=D.input,ne=D.avail_in,H=b.hold,L=b.bits,ce=ne,oe=de,R=w;e:for(;;)switch(b.mode){case v:if(b.wrap===0){b.mode=13;break}for(;L<16;){if(ne===0)break e;ne--,H+=Z[Q++]<<L,L+=8}if(2&b.wrap&&H===35615){A[b.check=0]=255&H,A[1]=H>>>8&255,b.check=o(b.check,A,2,0),L=H=0,b.mode=2;break}if(b.flags=0,b.head&&(b.head.done=!1),!(1&b.wrap)||(((255&H)<<8)+(H>>8))%31){D.msg="incorrect header check",b.mode=30;break}if((15&H)!=8){D.msg="unknown compression method",b.mode=30;break}if(L-=4,u=8+(15&(H>>>=4)),b.wbits===0)b.wbits=u;else if(u>b.wbits){D.msg="invalid window size",b.mode=30;break}b.dmax=1<<u,D.adler=b.check=1,b.mode=512&H?10:12,L=H=0;break;case 2:for(;L<16;){if(ne===0)break e;ne--,H+=Z[Q++]<<L,L+=8}if(b.flags=H,(255&b.flags)!=8){D.msg="unknown compression method",b.mode=30;break}if(57344&b.flags){D.msg="unknown header flags set",b.mode=30;break}b.head&&(b.head.text=H>>8&1),512&b.flags&&(A[0]=255&H,A[1]=H>>>8&255,b.check=o(b.check,A,2,0)),L=H=0,b.mode=3;case 3:for(;L<32;){if(ne===0)break e;ne--,H+=Z[Q++]<<L,L+=8}b.head&&(b.head.time=H),512&b.flags&&(A[0]=255&H,A[1]=H>>>8&255,A[2]=H>>>16&255,A[3]=H>>>24&255,b.check=o(b.check,A,4,0)),L=H=0,b.mode=4;case 4:for(;L<16;){if(ne===0)break e;ne--,H+=Z[Q++]<<L,L+=8}b.head&&(b.head.xflags=255&H,b.head.os=H>>8),512&b.flags&&(A[0]=255&H,A[1]=H>>>8&255,b.check=o(b.check,A,2,0)),L=H=0,b.mode=5;case 5:if(1024&b.flags){for(;L<16;){if(ne===0)break e;ne--,H+=Z[Q++]<<L,L+=8}b.length=H,b.head&&(b.head.extra_len=H),512&b.flags&&(A[0]=255&H,A[1]=H>>>8&255,b.check=o(b.check,A,2,0)),L=H=0}else b.head&&(b.head.extra=null);b.mode=6;case 6:if(1024&b.flags&&(ne<(ie=b.length)&&(ie=ne),ie&&(b.head&&(u=b.head.extra_len-b.length,b.head.extra||(b.head.extra=new Array(b.head.extra_len)),i.arraySet(b.head.extra,Z,Q,ie,u)),512&b.flags&&(b.check=o(b.check,Z,ie,Q)),ne-=ie,Q+=ie,b.length-=ie),b.length))break e;b.length=0,b.mode=7;case 7:if(2048&b.flags){if(ne===0)break e;for(ie=0;u=Z[Q+ie++],b.head&&u&&b.length<65536&&(b.head.name+=String.fromCharCode(u)),u&&ie<ne;);if(512&b.flags&&(b.check=o(b.check,Z,ie,Q)),ne-=ie,Q+=ie,u)break e}else b.head&&(b.head.name=null);b.length=0,b.mode=8;case 8:if(4096&b.flags){if(ne===0)break e;for(ie=0;u=Z[Q+ie++],b.head&&u&&b.length<65536&&(b.head.comment+=String.fromCharCode(u)),u&&ie<ne;);if(512&b.flags&&(b.check=o(b.check,Z,ie,Q)),ne-=ie,Q+=ie,u)break e}else b.head&&(b.head.comment=null);b.mode=9;case 9:if(512&b.flags){for(;L<16;){if(ne===0)break e;ne--,H+=Z[Q++]<<L,L+=8}if(H!==(65535&b.check)){D.msg="header crc mismatch",b.mode=30;break}L=H=0}b.head&&(b.head.hcrc=b.flags>>9&1,b.head.done=!0),D.adler=b.check=0,b.mode=12;break;case 10:for(;L<32;){if(ne===0)break e;ne--,H+=Z[Q++]<<L,L+=8}D.adler=b.check=k(H),L=H=0,b.mode=11;case 11:if(b.havedict===0)return D.next_out=ae,D.avail_out=de,D.next_in=Q,D.avail_in=ne,b.hold=H,b.bits=L,2;D.adler=b.check=1,b.mode=12;case 12:if(Y===5||Y===6)break e;case 13:if(b.last){H>>>=7&L,L-=7&L,b.mode=27;break}for(;L<3;){if(ne===0)break e;ne--,H+=Z[Q++]<<L,L+=8}switch(b.last=1&H,L-=1,3&(H>>>=1)){case 0:b.mode=14;break;case 1:if(ee(b),b.mode=20,Y!==6)break;H>>>=2,L-=2;break e;case 2:b.mode=17;break;case 3:D.msg="invalid block type",b.mode=30}H>>>=2,L-=2;break;case 14:for(H>>>=7&L,L-=7&L;L<32;){if(ne===0)break e;ne--,H+=Z[Q++]<<L,L+=8}if((65535&H)!=(H>>>16^65535)){D.msg="invalid stored block lengths",b.mode=30;break}if(b.length=65535&H,L=H=0,b.mode=15,Y===6)break e;case 15:b.mode=16;case 16:if(ie=b.length){if(ne<ie&&(ie=ne),de<ie&&(ie=de),ie===0)break e;i.arraySet(ue,Z,Q,ie,ae),ne-=ie,Q+=ie,de-=ie,ae+=ie,b.length-=ie;break}b.mode=12;break;case 17:for(;L<14;){if(ne===0)break e;ne--,H+=Z[Q++]<<L,L+=8}if(b.nlen=257+(31&H),H>>>=5,L-=5,b.ndist=1+(31&H),H>>>=5,L-=5,b.ncode=4+(15&H),H>>>=4,L-=4,286<b.nlen||30<b.ndist){D.msg="too many length or distance symbols",b.mode=30;break}b.have=0,b.mode=18;case 18:for(;b.have<b.ncode;){for(;L<3;){if(ne===0)break e;ne--,H+=Z[Q++]<<L,L+=8}b.lens[M[b.have++]]=7&H,H>>>=3,L-=3}for(;b.have<19;)b.lens[M[b.have++]]=0;if(b.lencode=b.lendyn,b.lenbits=7,O={bits:b.lenbits},R=h(0,b.lens,0,19,b.lencode,0,b.work,O),b.lenbits=O.bits,R){D.msg="invalid code lengths set",b.mode=30;break}b.have=0,b.mode=19;case 19:for(;b.have<b.nlen+b.ndist;){for(;we=(y=b.lencode[H&(1<<b.lenbits)-1])>>>16&255,je=65535&y,!((ge=y>>>24)<=L);){if(ne===0)break e;ne--,H+=Z[Q++]<<L,L+=8}if(je<16)H>>>=ge,L-=ge,b.lens[b.have++]=je;else{if(je===16){for(x=ge+2;L<x;){if(ne===0)break e;ne--,H+=Z[Q++]<<L,L+=8}if(H>>>=ge,L-=ge,b.have===0){D.msg="invalid bit length repeat",b.mode=30;break}u=b.lens[b.have-1],ie=3+(3&H),H>>>=2,L-=2}else if(je===17){for(x=ge+3;L<x;){if(ne===0)break e;ne--,H+=Z[Q++]<<L,L+=8}L-=ge,u=0,ie=3+(7&(H>>>=ge)),H>>>=3,L-=3}else{for(x=ge+7;L<x;){if(ne===0)break e;ne--,H+=Z[Q++]<<L,L+=8}L-=ge,u=0,ie=11+(127&(H>>>=ge)),H>>>=7,L-=7}if(b.have+ie>b.nlen+b.ndist){D.msg="invalid bit length repeat",b.mode=30;break}for(;ie--;)b.lens[b.have++]=u}}if(b.mode===30)break;if(b.lens[256]===0){D.msg="invalid code -- missing end-of-block",b.mode=30;break}if(b.lenbits=9,O={bits:b.lenbits},R=h(f,b.lens,0,b.nlen,b.lencode,0,b.work,O),b.lenbits=O.bits,R){D.msg="invalid literal/lengths set",b.mode=30;break}if(b.distbits=6,b.distcode=b.distdyn,O={bits:b.distbits},R=h(_,b.lens,b.nlen,b.ndist,b.distcode,0,b.work,O),b.distbits=O.bits,R){D.msg="invalid distances set",b.mode=30;break}if(b.mode=20,Y===6)break e;case 20:b.mode=21;case 21:if(6<=ne&&258<=de){D.next_out=ae,D.avail_out=de,D.next_in=Q,D.avail_in=ne,b.hold=H,b.bits=L,c(D,oe),ae=D.next_out,ue=D.output,de=D.avail_out,Q=D.next_in,Z=D.input,ne=D.avail_in,H=b.hold,L=b.bits,b.mode===12&&(b.back=-1);break}for(b.back=0;we=(y=b.lencode[H&(1<<b.lenbits)-1])>>>16&255,je=65535&y,!((ge=y>>>24)<=L);){if(ne===0)break e;ne--,H+=Z[Q++]<<L,L+=8}if(we&&!(240&we)){for(Ae=ge,C=we,P=je;we=(y=b.lencode[P+((H&(1<<Ae+C)-1)>>Ae)])>>>16&255,je=65535&y,!(Ae+(ge=y>>>24)<=L);){if(ne===0)break e;ne--,H+=Z[Q++]<<L,L+=8}H>>>=Ae,L-=Ae,b.back+=Ae}if(H>>>=ge,L-=ge,b.back+=ge,b.length=je,we===0){b.mode=26;break}if(32&we){b.back=-1,b.mode=12;break}if(64&we){D.msg="invalid literal/length code",b.mode=30;break}b.extra=15&we,b.mode=22;case 22:if(b.extra){for(x=b.extra;L<x;){if(ne===0)break e;ne--,H+=Z[Q++]<<L,L+=8}b.length+=H&(1<<b.extra)-1,H>>>=b.extra,L-=b.extra,b.back+=b.extra}b.was=b.length,b.mode=23;case 23:for(;we=(y=b.distcode[H&(1<<b.distbits)-1])>>>16&255,je=65535&y,!((ge=y>>>24)<=L);){if(ne===0)break e;ne--,H+=Z[Q++]<<L,L+=8}if(!(240&we)){for(Ae=ge,C=we,P=je;we=(y=b.distcode[P+((H&(1<<Ae+C)-1)>>Ae)])>>>16&255,je=65535&y,!(Ae+(ge=y>>>24)<=L);){if(ne===0)break e;ne--,H+=Z[Q++]<<L,L+=8}H>>>=Ae,L-=Ae,b.back+=Ae}if(H>>>=ge,L-=ge,b.back+=ge,64&we){D.msg="invalid distance code",b.mode=30;break}b.offset=je,b.extra=15&we,b.mode=24;case 24:if(b.extra){for(x=b.extra;L<x;){if(ne===0)break e;ne--,H+=Z[Q++]<<L,L+=8}b.offset+=H&(1<<b.extra)-1,H>>>=b.extra,L-=b.extra,b.back+=b.extra}if(b.offset>b.dmax){D.msg="invalid distance too far back",b.mode=30;break}b.mode=25;case 25:if(de===0)break e;if(ie=oe-de,b.offset>ie){if((ie=b.offset-ie)>b.whave&&b.sane){D.msg="invalid distance too far back",b.mode=30;break}xe=ie>b.wnext?(ie-=b.wnext,b.wsize-ie):b.wnext-ie,ie>b.length&&(ie=b.length),Ne=b.window}else Ne=ue,xe=ae-b.offset,ie=b.length;for(de<ie&&(ie=de),de-=ie,b.length-=ie;ue[ae++]=Ne[xe++],--ie;);b.length===0&&(b.mode=21);break;case 26:if(de===0)break e;ue[ae++]=b.length,de--,b.mode=21;break;case 27:if(b.wrap){for(;L<32;){if(ne===0)break e;ne--,H|=Z[Q++]<<L,L+=8}if(oe-=de,D.total_out+=oe,b.total+=oe,oe&&(D.adler=b.check=b.flags?o(b.check,ue,oe,ae-oe):a(b.check,ue,oe,ae-oe)),oe=de,(b.flags?H:k(H))!==b.check){D.msg="incorrect data check",b.mode=30;break}L=H=0}b.mode=28;case 28:if(b.wrap&&b.flags){for(;L<32;){if(ne===0)break e;ne--,H+=Z[Q++]<<L,L+=8}if(H!==(4294967295&b.total)){D.msg="incorrect length check",b.mode=30;break}L=H=0}b.mode=29;case 29:R=1;break e;case 30:R=-3;break e;case 31:return-4;case 32:default:return p}return D.next_out=ae,D.avail_out=de,D.next_in=Q,D.avail_in=ne,b.hold=H,b.bits=L,(b.wsize||oe!==D.avail_out&&b.mode<30&&(b.mode<27||Y!==4))&&se(D,D.output,D.next_out,oe-D.avail_out)?(b.mode=31,-4):(ce-=D.avail_in,oe-=D.avail_out,D.total_in+=ce,D.total_out+=oe,b.total+=oe,b.wrap&&oe&&(D.adler=b.check=b.flags?o(b.check,ue,oe,D.next_out-oe):a(b.check,ue,oe,D.next_out-oe)),D.data_type=b.bits+(b.last?64:0)+(b.mode===12?128:0)+(b.mode===20||b.mode===15?256:0),(ce==0&&oe===0||Y===4)&&R===w&&(R=-5),R)},s.inflateEnd=function(D){if(!D||!D.state)return p;var Y=D.state;return Y.window&&(Y.window=null),D.state=null,w},s.inflateGetHeader=function(D,Y){var b;return D&&D.state&&2&(b=D.state).wrap?((b.head=Y).done=!1,w):p},s.inflateSetDictionary=function(D,Y){var b,Z=Y.length;return D&&D.state?(b=D.state).wrap!==0&&b.mode!==11?p:b.mode===11&&a(1,Y,Z,0)!==b.check?-3:se(D,Y,Z,Z)?(b.mode=31,-4):(b.havedict=1,w):p},s.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,r,s){var i=n("../utils/common"),a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],c=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],h=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];r.exports=function(f,_,w,p,v,m,E,k){var S,T,F,j,q,z,X,G,ee,se=k.bits,D=0,Y=0,b=0,Z=0,ue=0,Q=0,ae=0,ne=0,de=0,H=0,L=null,ce=0,oe=new i.Buf16(16),ie=new i.Buf16(16),xe=null,Ne=0;for(D=0;D<=15;D++)oe[D]=0;for(Y=0;Y<p;Y++)oe[_[w+Y]]++;for(ue=se,Z=15;1<=Z&&oe[Z]===0;Z--);if(Z<ue&&(ue=Z),Z===0)return v[m++]=20971520,v[m++]=20971520,k.bits=1,0;for(b=1;b<Z&&oe[b]===0;b++);for(ue<b&&(ue=b),D=ne=1;D<=15;D++)if(ne<<=1,(ne-=oe[D])<0)return-1;if(0<ne&&(f===0||Z!==1))return-1;for(ie[1]=0,D=1;D<15;D++)ie[D+1]=ie[D]+oe[D];for(Y=0;Y<p;Y++)_[w+Y]!==0&&(E[ie[_[w+Y]]++]=Y);if(z=f===0?(L=xe=E,19):f===1?(L=a,ce-=257,xe=o,Ne-=257,256):(L=c,xe=h,-1),D=b,q=m,ae=Y=H=0,F=-1,j=(de=1<<(Q=ue))-1,f===1&&852<de||f===2&&592<de)return 1;for(;;){for(X=D-ae,ee=E[Y]<z?(G=0,E[Y]):E[Y]>z?(G=xe[Ne+E[Y]],L[ce+E[Y]]):(G=96,0),S=1<<D-ae,b=T=1<<Q;v[q+(H>>ae)+(T-=S)]=X<<24|G<<16|ee|0,T!==0;);for(S=1<<D-1;H&S;)S>>=1;if(S!==0?(H&=S-1,H+=S):H=0,Y++,--oe[D]==0){if(D===Z)break;D=_[w+E[Y]]}if(ue<D&&(H&j)!==F){for(ae===0&&(ae=ue),q+=b,ne=1<<(Q=D-ae);Q+ae<Z&&!((ne-=oe[Q+ae])<=0);)Q++,ne<<=1;if(de+=1<<Q,f===1&&852<de||f===2&&592<de)return 1;v[F=H&j]=ue<<24|Q<<16|q-m|0}}return H!==0&&(v[q+H]=D-ae<<24|64<<16|0),k.bits=ue,0}},{"../utils/common":41}],51:[function(n,r,s){r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(n,r,s){var i=n("../utils/common"),a=0,o=1;function c(y){for(var A=y.length;0<=--A;)y[A]=0}var h=0,f=29,_=256,w=_+1+f,p=30,v=19,m=2*w+1,E=15,k=16,S=7,T=256,F=16,j=17,q=18,z=[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],X=[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],G=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ee=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],se=new Array(2*(w+2));c(se);var D=new Array(2*p);c(D);var Y=new Array(512);c(Y);var b=new Array(256);c(b);var Z=new Array(f);c(Z);var ue,Q,ae,ne=new Array(p);function de(y,A,M,U,B){this.static_tree=y,this.extra_bits=A,this.extra_base=M,this.elems=U,this.max_length=B,this.has_stree=y&&y.length}function H(y,A){this.dyn_tree=y,this.max_code=0,this.stat_desc=A}function L(y){return y<256?Y[y]:Y[256+(y>>>7)]}function ce(y,A){y.pending_buf[y.pending++]=255&A,y.pending_buf[y.pending++]=A>>>8&255}function oe(y,A,M){y.bi_valid>k-M?(y.bi_buf|=A<<y.bi_valid&65535,ce(y,y.bi_buf),y.bi_buf=A>>k-y.bi_valid,y.bi_valid+=M-k):(y.bi_buf|=A<<y.bi_valid&65535,y.bi_valid+=M)}function ie(y,A,M){oe(y,M[2*A],M[2*A+1])}function xe(y,A){for(var M=0;M|=1&y,y>>>=1,M<<=1,0<--A;);return M>>>1}function Ne(y,A,M){var U,B,K=new Array(E+1),J=0;for(U=1;U<=E;U++)K[U]=J=J+M[U-1]<<1;for(B=0;B<=A;B++){var V=y[2*B+1];V!==0&&(y[2*B]=xe(K[V]++,V))}}function ge(y){var A;for(A=0;A<w;A++)y.dyn_ltree[2*A]=0;for(A=0;A<p;A++)y.dyn_dtree[2*A]=0;for(A=0;A<v;A++)y.bl_tree[2*A]=0;y.dyn_ltree[2*T]=1,y.opt_len=y.static_len=0,y.last_lit=y.matches=0}function we(y){8<y.bi_valid?ce(y,y.bi_buf):0<y.bi_valid&&(y.pending_buf[y.pending++]=y.bi_buf),y.bi_buf=0,y.bi_valid=0}function je(y,A,M,U){var B=2*A,K=2*M;return y[B]<y[K]||y[B]===y[K]&&U[A]<=U[M]}function Ae(y,A,M){for(var U=y.heap[M],B=M<<1;B<=y.heap_len&&(B<y.heap_len&&je(A,y.heap[B+1],y.heap[B],y.depth)&&B++,!je(A,U,y.heap[B],y.depth));)y.heap[M]=y.heap[B],M=B,B<<=1;y.heap[M]=U}function C(y,A,M){var U,B,K,J,V=0;if(y.last_lit!==0)for(;U=y.pending_buf[y.d_buf+2*V]<<8|y.pending_buf[y.d_buf+2*V+1],B=y.pending_buf[y.l_buf+V],V++,U===0?ie(y,B,A):(ie(y,(K=b[B])+_+1,A),(J=z[K])!==0&&oe(y,B-=Z[K],J),ie(y,K=L(--U),M),(J=X[K])!==0&&oe(y,U-=ne[K],J)),V<y.last_lit;);ie(y,T,A)}function P(y,A){var M,U,B,K=A.dyn_tree,J=A.stat_desc.static_tree,V=A.stat_desc.has_stree,re=A.stat_desc.elems,g=-1;for(y.heap_len=0,y.heap_max=m,M=0;M<re;M++)K[2*M]!==0?(y.heap[++y.heap_len]=g=M,y.depth[M]=0):K[2*M+1]=0;for(;y.heap_len<2;)K[2*(B=y.heap[++y.heap_len]=g<2?++g:0)]=1,y.depth[B]=0,y.opt_len--,V&&(y.static_len-=J[2*B+1]);for(A.max_code=g,M=y.heap_len>>1;1<=M;M--)Ae(y,K,M);for(B=re;M=y.heap[1],y.heap[1]=y.heap[y.heap_len--],Ae(y,K,1),U=y.heap[1],y.heap[--y.heap_max]=M,y.heap[--y.heap_max]=U,K[2*B]=K[2*M]+K[2*U],y.depth[B]=(y.depth[M]>=y.depth[U]?y.depth[M]:y.depth[U])+1,K[2*M+1]=K[2*U+1]=B,y.heap[1]=B++,Ae(y,K,1),2<=y.heap_len;);y.heap[--y.heap_max]=y.heap[1],function(l,d){var I,N,$,W,fe,ve,me=d.dyn_tree,Te=d.max_code,Ie=d.stat_desc.static_tree,Kh=d.stat_desc.has_stree,Xh=d.stat_desc.extra_bits,ba=d.stat_desc.extra_base,nr=d.stat_desc.max_length,Gr=0;for(W=0;W<=E;W++)l.bl_count[W]=0;for(me[2*l.heap[l.heap_max]+1]=0,I=l.heap_max+1;I<m;I++)nr<(W=me[2*me[2*(N=l.heap[I])+1]+1]+1)&&(W=nr,Gr++),me[2*N+1]=W,Te<N||(l.bl_count[W]++,fe=0,ba<=N&&(fe=Xh[N-ba]),ve=me[2*N],l.opt_len+=ve*(W+fe),Kh&&(l.static_len+=ve*(Ie[2*N+1]+fe)));if(Gr!==0){do{for(W=nr-1;l.bl_count[W]===0;)W--;l.bl_count[W]--,l.bl_count[W+1]+=2,l.bl_count[nr]--,Gr-=2}while(0<Gr);for(W=nr;W!==0;W--)for(N=l.bl_count[W];N!==0;)Te<($=l.heap[--I])||(me[2*$+1]!==W&&(l.opt_len+=(W-me[2*$+1])*me[2*$],me[2*$+1]=W),N--)}}(y,A),Ne(K,g,y.bl_count)}function u(y,A,M){var U,B,K=-1,J=A[1],V=0,re=7,g=4;for(J===0&&(re=138,g=3),A[2*(M+1)+1]=65535,U=0;U<=M;U++)B=J,J=A[2*(U+1)+1],++V<re&&B===J||(V<g?y.bl_tree[2*B]+=V:B!==0?(B!==K&&y.bl_tree[2*B]++,y.bl_tree[2*F]++):V<=10?y.bl_tree[2*j]++:y.bl_tree[2*q]++,K=B,g=(V=0)===J?(re=138,3):B===J?(re=6,3):(re=7,4))}function R(y,A,M){var U,B,K=-1,J=A[1],V=0,re=7,g=4;for(J===0&&(re=138,g=3),U=0;U<=M;U++)if(B=J,J=A[2*(U+1)+1],!(++V<re&&B===J)){if(V<g)for(;ie(y,B,y.bl_tree),--V!=0;);else B!==0?(B!==K&&(ie(y,B,y.bl_tree),V--),ie(y,F,y.bl_tree),oe(y,V-3,2)):V<=10?(ie(y,j,y.bl_tree),oe(y,V-3,3)):(ie(y,q,y.bl_tree),oe(y,V-11,7));K=B,g=(V=0)===J?(re=138,3):B===J?(re=6,3):(re=7,4)}}c(ne);var O=!1;function x(y,A,M,U){oe(y,(h<<1)+(U?1:0),3),function(B,K,J,V){we(B),V&&(ce(B,J),ce(B,~J)),i.arraySet(B.pending_buf,B.window,K,J,B.pending),B.pending+=J}(y,A,M,!0)}s._tr_init=function(y){O||(function(){var A,M,U,B,K,J=new Array(E+1);for(B=U=0;B<f-1;B++)for(Z[B]=U,A=0;A<1<<z[B];A++)b[U++]=B;for(b[U-1]=B,B=K=0;B<16;B++)for(ne[B]=K,A=0;A<1<<X[B];A++)Y[K++]=B;for(K>>=7;B<p;B++)for(ne[B]=K<<7,A=0;A<1<<X[B]-7;A++)Y[256+K++]=B;for(M=0;M<=E;M++)J[M]=0;for(A=0;A<=143;)se[2*A+1]=8,A++,J[8]++;for(;A<=255;)se[2*A+1]=9,A++,J[9]++;for(;A<=279;)se[2*A+1]=7,A++,J[7]++;for(;A<=287;)se[2*A+1]=8,A++,J[8]++;for(Ne(se,w+1,J),A=0;A<p;A++)D[2*A+1]=5,D[2*A]=xe(A,5);ue=new de(se,z,_+1,w,E),Q=new de(D,X,0,p,E),ae=new de(new Array(0),G,0,v,S)}(),O=!0),y.l_desc=new H(y.dyn_ltree,ue),y.d_desc=new H(y.dyn_dtree,Q),y.bl_desc=new H(y.bl_tree,ae),y.bi_buf=0,y.bi_valid=0,ge(y)},s._tr_stored_block=x,s._tr_flush_block=function(y,A,M,U){var B,K,J=0;0<y.level?(y.strm.data_type===2&&(y.strm.data_type=function(V){var re,g=4093624447;for(re=0;re<=31;re++,g>>>=1)if(1&g&&V.dyn_ltree[2*re]!==0)return a;if(V.dyn_ltree[18]!==0||V.dyn_ltree[20]!==0||V.dyn_ltree[26]!==0)return o;for(re=32;re<_;re++)if(V.dyn_ltree[2*re]!==0)return o;return a}(y)),P(y,y.l_desc),P(y,y.d_desc),J=function(V){var re;for(u(V,V.dyn_ltree,V.l_desc.max_code),u(V,V.dyn_dtree,V.d_desc.max_code),P(V,V.bl_desc),re=v-1;3<=re&&V.bl_tree[2*ee[re]+1]===0;re--);return V.opt_len+=3*(re+1)+5+5+4,re}(y),B=y.opt_len+3+7>>>3,(K=y.static_len+3+7>>>3)<=B&&(B=K)):B=K=M+5,M+4<=B&&A!==-1?x(y,A,M,U):y.strategy===4||K===B?(oe(y,2+(U?1:0),3),C(y,se,D)):(oe(y,4+(U?1:0),3),function(V,re,g,l){var d;for(oe(V,re-257,5),oe(V,g-1,5),oe(V,l-4,4),d=0;d<l;d++)oe(V,V.bl_tree[2*ee[d]+1],3);R(V,V.dyn_ltree,re-1),R(V,V.dyn_dtree,g-1)}(y,y.l_desc.max_code+1,y.d_desc.max_code+1,J+1),C(y,y.dyn_ltree,y.dyn_dtree)),ge(y),U&&we(y)},s._tr_tally=function(y,A,M){return y.pending_buf[y.d_buf+2*y.last_lit]=A>>>8&255,y.pending_buf[y.d_buf+2*y.last_lit+1]=255&A,y.pending_buf[y.l_buf+y.last_lit]=255&M,y.last_lit++,A===0?y.dyn_ltree[2*M]++:(y.matches++,A--,y.dyn_ltree[2*(b[M]+_+1)]++,y.dyn_dtree[2*L(A)]++),y.last_lit===y.lit_bufsize-1},s._tr_align=function(y){oe(y,2,3),ie(y,T,se),function(A){A.bi_valid===16?(ce(A,A.bi_buf),A.bi_buf=0,A.bi_valid=0):8<=A.bi_valid&&(A.pending_buf[A.pending++]=255&A.bi_buf,A.bi_buf>>=8,A.bi_valid-=8)}(y)}},{"../utils/common":41}],53:[function(n,r,s){r.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,r,s){(function(i){(function(a,o){if(!a.setImmediate){var c,h,f,_,w=1,p={},v=!1,m=a.document,E=Object.getPrototypeOf&&Object.getPrototypeOf(a);E=E&&E.setTimeout?E:a,c={}.toString.call(a.process)==="[object process]"?function(F){process.nextTick(function(){S(F)})}:function(){if(a.postMessage&&!a.importScripts){var F=!0,j=a.onmessage;return a.onmessage=function(){F=!1},a.postMessage("","*"),a.onmessage=j,F}}()?(_="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",T,!1):a.attachEvent("onmessage",T),function(F){a.postMessage(_+F,"*")}):a.MessageChannel?((f=new MessageChannel).port1.onmessage=function(F){S(F.data)},function(F){f.port2.postMessage(F)}):m&&"onreadystatechange"in m.createElement("script")?(h=m.documentElement,function(F){var j=m.createElement("script");j.onreadystatechange=function(){S(F),j.onreadystatechange=null,h.removeChild(j),j=null},h.appendChild(j)}):function(F){setTimeout(S,0,F)},E.setImmediate=function(F){typeof F!="function"&&(F=new Function(""+F));for(var j=new Array(arguments.length-1),q=0;q<j.length;q++)j[q]=arguments[q+1];var z={callback:F,args:j};return p[w]=z,c(w),w++},E.clearImmediate=k}function k(F){delete p[F]}function S(F){if(v)setTimeout(S,0,F);else{var j=p[F];if(j){v=!0;try{(function(q){var z=q.callback,X=q.args;switch(X.length){case 0:z();break;case 1:z(X[0]);break;case 2:z(X[0],X[1]);break;case 3:z(X[0],X[1],X[2]);break;default:z.apply(o,X)}})(j)}finally{k(F),v=!1}}}}function T(F){F.source===a&&typeof F.data=="string"&&F.data.indexOf(_)===0&&S(+F.data.slice(_.length))}})(typeof self=="undefined"?i===void 0?this:i:self)}).call(this,typeof Pr!="undefined"?Pr:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})})(Sd);const ra=qi;function ia(){return{articleTable:[],tagTable:[],imgTable:[],topicTable:[],ipTable:[],majiaTable:[],likeTable:[],stateTable:[],cachedMajiaTable:[],cachedTagTable:[]}}function Id(){const e=new Date;return Ue.PROJECT_NAME+e.getFullYear()+"_"+(e.getMonth()+1)+"_"+e.getDate()+".zip"}const sa=Ue.PROJECT_NAME+".json",oa="https://",aa=e=>(Ln("data-v-42e87b65"),e=e(),zn(),e),Td=["disabled"],Ad={key:0},Od=["value"],Cd=aa(()=>te("br",null,null,-1)),Dd=aa(()=>te("br",null,null,-1)),Rd=Le({__name:"BackUpExport",setup(e){const t=bt({onPrepare:!1}),n=Xe(["articleTable","imgTable","ipTable","likeTable","majiaTable","stateTable","tagTable"]),r=Xe(null);function s(h){return h.type.replace("image/",".")}function i(h=!1){return _e(this,null,function*(){var w;if((w=r.value)==null||w.close(),!h)return;t.onPrepare=!0;const f=yield o(),_=yield a(f);c(_)})}function a(h){return _e(this,null,function*(){const f=new ra;for(const w of h.imgTable)w.imgBlob&&f.file(w.imgUri.replace(oa,"")+s(w.imgBlob),w.imgBlob,{binary:!0});return h.imgTable=[],f.file(sa,JSON.stringify(h)),yield f.generateAsync({type:"blob",compression:"DEFLATE",compressionOptions:{level:9}})})}function o(){return _e(this,null,function*(){const h=Object.assign({},ia());for(let f=0;f<n.value.length;f++){const _=n.value[f];h[_]=yield Fi[_].exportAll()}return h})}function c(h){let f=document.createElement("a");f.href=window.URL.createObjectURL(h),t.onPrepare=!1,f.download=Id(),f.click()}return(h,f)=>(le(),pe(Be,null,[te("button",{onClick:f[0]||(f[0]=_=>{var w;return(w=r.value)==null?void 0:w.showModal()}),disabled:t.onPrepare},"导出备份",8,Td),te("dialog",{ref_key:"dialog",ref:r},[(le(!0),pe(Be,null,lt(ye(vn),(_,w)=>(le(),pe("span",{key:w},[w.startsWith("cached")?rt("",!0):(le(),pe("label",Ad,[Je(te("input",{type:"checkbox",value:w,"onUpdate:modelValue":f[1]||(f[1]=p=>n.value=p)},null,8,Od),[[gn,n.value]]),Nt(He(_.comment),1)]))]))),128)),Cd,Dd,te("div",null,[te("button",{onClick:f[2]||(f[2]=_=>i(!1))},"取消"),te("button",{onClick:f[3]||(f[3]=_=>i(!0))},"确认导出")])],512)],64))}}),yp="",Bd=Qt(Rd,[["__scopeId","data-v-42e87b65"]]),jd=Le({__name:"BackUpImport",setup(e){const t=/\.\w{2,4}$/,n=Xe(null);function r(){return _e(this,null,function*(){var c;const o=(c=n.value)==null?void 0:c.files;if(o)for(let h=0;h<o.length;h++)yield s(o[h]);Tt(5,"导入成功!!!")})}function s(o){return new Promise((c,h)=>{const f=new FileReader;f.onload=function(){return _e(this,null,function*(){if(f.result!==null)yield i(f.result),c();else{const _="读取文件"+o.name+"失败";Tt(2,_),h(_)}})},f.readAsArrayBuffer(o)})}function i(o){return _e(this,null,function*(){const h=(yield ra.loadAsync(o)).files,f=h[sa];if(!f){Tt(2,"文件错误,导入失败");return}const _=yield f.async("string"),w=JSON.parse(_),p=Object.assign(ia(),w),v=[".png",".jpg",".jpeg",".gif","bmp","svg",".tif","tiff",".webp"];for(const m in h)if(Object.prototype.hasOwnProperty.call(h,m)){console.log(m);const E=h[m],k=m.match(t);if(k&&v.includes(k[0])){const S=yield E.async("blob"),T=oa+m.replace(k[0],""),F=new On(T,new Blob([S],{type:"image/"+k[0].replace(".","")}));p.imgTable.push(F)}}yield a(p)})}function a(o){return _e(this,null,function*(){const c=Object.entries(Fi);for(let h=0;h<c.length;h++){const[f,_]=c[h];yield _.importAll(o[f])}})}return(o,c)=>(le(),pe(Be,null,[te("button",{onClick:c[0]||(c[0]=h=>{var f;return(f=n.value)==null?void 0:f.click()})},"导入备份"),te("input",{style:{display:"none"},type:"file",multiple:"",accept:"application/zip",ref_key:"input",ref:n,onInput:r},null,544)],64))}}),Nd=te("h3",null,"备份",-1),Ud=Le({__name:"BackUp",setup(e){return(t,n)=>(le(),pe("div",null,[Nd,Oe(Bd),Oe(jd)]))}}),Pd=te("h3",null,"ip地理位置",-1),Fd={key:0},Md={key:1},Ld=te("span",null,"数据库文件约11M",-1),zd=["disabled"],Hd={key:0},Gd=Le({__name:"IPDB",setup(e){const t=Xe(!1),n=Xe(!1),r=Xe(1),s=Xe(0),i=Lr.getIpInfo("127.0.0.1");t.value=!!i;function a(){n.value=!0,fetch("https://fastly.jsdelivr.net/gh/lionsoul2014/ip2region/data/ip2region.xdb").then(f=>o(f)).then(f=>c(f)).then(()=>{Lr.init()}).then(()=>{t.value=!0,Tt(2,"安装完成!")}).catch(f=>{Tt(3,f)}).finally(()=>{n.value=!1})}function o(h){return _e(this,null,function*(){var E;const f=(E=h.body)==null?void 0:E.getReader(),_=h.headers.get("Content-Length");if(!f||!_)throw new Error("response.body or contentLength  is null");r.value=parseInt(_);let w=[],p=!1;for(;!p;){const{done:k,value:S}=yield f.read();if(k)break;w.push(S),s.value+=S.length}let v=new Uint8Array(s.value),m=0;for(let k of w)v.set(k,m),m+=k.length;return v.buffer})}function c(h){return _e(this,null,function*(){yield it.saveFile(h,Mi.ipDB),t.value=!0})}return(h,f)=>(le(),pe("div",null,[Pd,t.value?(le(),pe("span",Fd," 数据库文件已安装 ")):rt("",!0),t.value?rt("",!0):(le(),pe("span",Md,[Ld,te("button",{disabled:n.value,onClick:a},"下载安装",8,zd),n.value?(le(),pe("div",Hd," 正在下载:"+He(Math.floor(100*s.value/r.value))+"% ",1)):rt("",!0)]))]))}}),$d=te("h3",null,"预定义标签",-1),Kd=["value","onUpdate:modelValue"],Xd=te("br",null,null,-1),Wd=te("button",{class:"negative",type:"submit"},"踩",-1),qd=["disabled"],Vd=Le({__name:"CommonTags",setup(e){const t=bt(Ue.customTags),n=Xe("");function r(s){n.value.trim()!==""&&(s===0?delete t[n.value]:t[n.value]={score:s,use:!0})}return Et(t,()=>{Ue.saveConfig()}),(s,i)=>(le(),pe("div",null,[$d,te("div",null,[(le(!0),pe(Be,null,lt(t,(a,o)=>(le(),pe("label",{key:o,class:tt({checked:a.use})},[te("span",{class:tt({positive:a.score===1,negative:a.score===-1})},[Je(te("input",{type:"checkbox",value:o,"onUpdate:modelValue":c=>a.use=c},null,8,Kd),[[gn,a.use]]),Nt(" "+He(o),1)],2)],2))),128)),Xd]),te("div",null,[te("form",{onSubmit:i[3]||(i[3]=Lt(a=>r(-1),["prevent"]))},[Je(te("input",{type:"text",placeholder:"自定义标签","onUpdate:modelValue":i[0]||(i[0]=a=>n.value=a)},null,512),[[Rr,n.value]]),te("button",{class:"positive",type:"button",onClick:i[1]||(i[1]=Lt(a=>r(1),["prevent"]))},"赞"),Wd,te("button",{type:"button",disabled:!t[n.value],onClick:i[2]||(i[2]=Lt(a=>r(0),["prevent"]))},"删除",8,qd)],32)])]))}}),st=e=>(Ln("data-v-1099926b"),e=e(),zn(),e),Yd={key:0,id:"setting"},Zd={id:"smth_version"},Jd={key:0},Qd=st(()=>te("h3",null,"显示",-1)),eh=["el-css-display","onUpdate:modelValue"],th=st(()=>te("hr",null,null,-1)),nh=st(()=>te("hr",null,null,-1)),rh=st(()=>te("h3",null,"首页",-1)),ih=["el-css-display","onUpdate:modelValue"],sh=st(()=>te("hr",null,null,-1)),oh=st(()=>te("h3",null,"精简模式",-1)),ah=st(()=>te("br",null,null,-1)),lh=["el-css-display","onUpdate:modelValue"],uh=st(()=>te("hr",null,null,-1)),ch=st(()=>te("hr",null,null,-1)),dh=st(()=>te("hr",null,null,-1)),hh=st(()=>te("hr",null,null,-1)),ph=st(()=>te("br",null,null,-1)),fh=st(()=>te("br",null,null,-1)),mh=Le({__name:"SettingPanel",setup(e){const t=gt().appState.showState,n=bt(Ue),{mainpageConfig:r,cssConfig:s,frameConfig:i,simplifyConfig:a}=n,o=s.fontSize;Et(()=>s.fontSize,f);function c(){n.saveConfig(),window.location.reload()}function h(){t.showSetting=!t.showSetting,o!==s.fontSize&&(s.fontSize=o,f(o))}function f(_){var w;(w=document.querySelector("html"))==null||w.style.setProperty("font-size",_+"px")}return(_,w)=>ye(t).showSetting?(le(),pe("div",Yd,[te("span",Zd,He(n.version),1),n.onMobile?(le(),pe("div",Jd,[te("div",null,[Qd,te("div",null,[(le(!0),pe(Be,null,lt(ye(i).component,p=>(le(),pe("label",{key:p.name,class:tt({checked:p.show})},[Je(te("input",{type:"checkbox","el-css-display":p.el,"onUpdate:modelValue":v=>p.show=v},null,8,eh),[[gn,p.show]]),Nt(He(p.name),1)],2))),128))])]),th,te("div",null,[te("h3",null,[Nt(" 字体大小:"),te("span",null,He(ye(s).fontSize),1)]),te("button",{onClick:w[0]||(w[0]=p=>ye(s).fontSize--)},"减小字体"),te("button",{onClick:w[1]||(w[1]=p=>ye(s).fontSize++)},"增大字体")]),nh,te("div",null,[rh,te("div",null,[(le(!0),pe(Be,null,lt(ye(r).section,p=>(le(),pe("label",{key:p.name,class:tt({checked:p.show})},[Je(te("input",{type:"checkbox","el-css-display":p.el,"onUpdate:modelValue":v=>p.show=v},null,8,ih),[[gn,p.show]]),Nt(He(p.name),1)],2))),128))])]),sh,te("div",null,[oh,te("label",{class:tt({checked:ye(a).simplify})},[Je(te("input",{type:"checkbox","onUpdate:modelValue":w[2]||(w[2]=p=>ye(a).simplify=p)},null,512),[[gn,ye(a).simplify]]),Nt("精简显示帖子内容 ")],2),ah,te("div",null,[(le(!0),pe(Be,null,lt(ye(a).func,p=>(le(),pe("label",{key:p.name,class:tt({checked:p.show})},[Je(te("input",{type:"checkbox","el-css-display":p.el,"onUpdate:modelValue":v=>p.show=v},null,8,lh),[[gn,p.show]]),Nt(He(p.name),1)],2))),128))])])])):rt("",!0),uh,Oe(Vd),ch,Oe(Gd),dh,Oe(Ud),hh,te("div",null,[te("span",{class:"button",onClick:h},"取消"),te("span",{class:"button",onClick:c},"应用"),ph]),fh])):rt("",!0)}}),vp="",gh=Qt(mh,[["__scopeId","data-v-1099926b"]]),_h={id:"articles",style:{display:"none"}},bh=Le({__name:"App",setup(e){const t=gt().appState.articleInfoArr;return(n,r)=>(le(),pe("div",null,[(le(),ct(Ir,{to:"#menu"},[Oe(Tc)])),Oe($c),Oe(gh),te("div",_h,[(le(!0),pe(Be,null,lt(ye(t),(s,i)=>(le(),pe("div",{class:"smth-article",key:i},[(le(),ct(Ir,{to:ye(et).articleEls[i].userInfoEl},[Oe(Ed,{"article-info":s},null,8,["article-info"])],8,["to"])),(le(),ct(Ir,{to:ye(et).articleEls[i].modifierSwitchEl},[Oe(Wc,{"article-info":s},null,8,["article-info"])],8,["to"])),(le(),ct(Ir,{to:ye(et).articleEls[i].userDataBundleEl},[Oe(ud,{"article-info":s},null,8,["article-info"])],8,["to"]))]))),128))])]))}}),et={pinia:_c(),getApp:function(e,t){const n=Wu(e,t);return n.use(this.pinia),n},articleEls:new Array(10),init:function(){for(let e=0;e<10;e++)this.articleEls[e]={modifierSwitchEl:document.createElement("li"),userDataBundleEl:document.createElement("div"),userInfoEl:document.createElement("a")}},mount:function(){const e=document.createElement("div");this.getApp(bh).mount(e),document.body.appendChild(e)}},Vi=gt(et.pinia).scrollY,la={},Yi=/(\?|&)p=[0-9]+$|\p=[0-9]+&|ajax=&/g,ua=document.createElement("style");document.head.appendChild(ua);function wh(){const e=la[location.hash];e&&Vi.hash!==location.hash&&(Vi.hash=location.hash,Vi.scrollY=e)}function yh(e){const t=e.oldURL.substring(e.oldURL.indexOf("#!"));e.oldURL.replace(Yi,"")!==e.newURL.replace(Yi,"")&&(la[t]=window.scrollY),vh(e.oldURL.split("#!")[1].replace(Yi,""))}function vh(e=""){ua.textContent=`a[href$="${e}"] {text-decoration:underline;font-style:italic}`}const ca={onHashChange:yh,onBodyMut:wh},Tn=gt(et.pinia),kh={handleInputEvent:function(){Sh(),Ih(window)}};function _t(e){e==="up"||e==="down"?xh(e):Eh(e)}function xh(e){var s;if(Tn.appState.showState.showSetting||Tn.appState.showState.state===1||Tn.appState.mainHash==="mainpage")return;const t=document.activeElement;if(t instanceof HTMLTextAreaElement&&t.value.trim()!==""||e==="down"&&!fa()||e==="up"&&!pa())return;const n=document.querySelector(".page-select"),r=e==="up"?n==null?void 0:n.nextElementSibling:n==null?void 0:n.previousElementSibling;r?(s=r.querySelector("a"))==null||s.click():history.back()}function Eh(e){Tn.changeShowstate(e)}function Sh(){var e;(e=document.querySelector("#body"))==null||e.addEventListener("mousedown",function(t){t.detail>1&&t.preventDefault()},!1)}let da,ha;function Ih(e){e.addEventListener("touchstart",en,!1),e.addEventListener("touchend",en,!1),e.addEventListener("touchmove",en,!1),e.addEventListener("keyup",en,!1),e.addEventListener("keydown",en,!1),e.addEventListener("wheel",en,!1),e.addEventListener("mouseup",en,!1),e.addEventListener("click",Th,!0)}function en(e){e instanceof KeyboardEvent&&!Ah()?Oh(e):e instanceof WheelEvent?Dh(e):e instanceof TouchEvent&&Ch(e)}function Th(e){var a,o;if(!(e.target instanceof HTMLElement))return;let n;const r=e.composedPath(),s=Math.min(r.length,3);for(let c=0;c<s;c++){const h=r[c];if(h instanceof HTMLAnchorElement){n=h;break}}if(n===void 0||n.target==="_blank"||n.host!==Ue.host||n.href.endsWith(".json"))return;if(n.href.match(/[?&]p=\d*($|&)/m)){if((a=n.parentElement)!=null&&a.classList.contains("page-normal")){e.preventDefault(),e.stopImmediatePropagation();const c=Tn.scrollY;window.Backbone.history.navigate("#!"+n.href.split("/nForum/")[1],{trigger:!0,replace:!0}),c.hash=location.hash;const h=(o=n.parentElement.nextElementSibling)==null?void 0:o.classList.contains("page-select");c.scrollY=h?1e4:0}return}const i=Jt.getTopicUri(n.href);i&&(e.preventDefault(),e.stopImmediatePropagation(),Jt.get(i).then(c=>{const h=`?p=${c.p}`,f=Tn.scrollY;f.scrollY=c.scrollY,n.href=n.href+h,window.APP.body.open(n),f.hash=location.hash}))}const Zi=Math.PI;function pa(){return window.scrollY+window.innerHeight+2>document.body.clientHeight}function fa(){return window.scrollY<1}function Ah(){var e;return["INPUT","TEXTAREA","SELECT","OPTION"].includes((e=document.activeElement)==null?void 0:e.nodeName)}function Oh(e){switch(e.type){case"keyup":break;case"keydown":e.key==="ArrowLeft"?_t("left"):e.key==="ArrowRight"?_t("right"):e.key==="ArrowDown"?_t("up"):e.key==="ArrowUp"?_t("down"):e.key==="PageDown"?_t("up"):e.key==="PageUp"&&_t("down");break}}function Ch(e){let t,n,r,s;switch(e.type){case"touchstart":da=e.touches[0].clientX,ha=e.touches[0].clientY;break;case"touchend":if(t=e.changedTouches[0].clientX-da,n=ha-e.changedTouches[0].clientY,r=Math.atan2(n,t),s=Math.abs(t)+Math.abs(n),s<30)return;Math.abs(r)<.5?_t("right"):Math.abs(r-Zi/2)<.5?_t("up"):Math.abs(r+Zi/2)<.5?_t("down"):Math.abs(r)>Zi-.5&&_t("left");break}}const Hr={swipe:function(e){e==="down"&&fa()||e==="up"&&pa()?(this.n++,Hr.n>Hr.threshHold&&(_t(e),Hr.n=0)):this.n=0},threshHold:1,n:0};function Dh(e){Hr.swipe(e.deltaY>0?"up":"down")}const Rh=gt(et.pinia).appState,Bh=/<a target=.*?><img.*?><\/a>/g,jh={handle:function(e){e.querySelectorAll(".article").forEach((n,r)=>{Nh(n,r)})}};function Nh(e,t){const n=e.querySelector(".a-content"),r=e.querySelector(".a-func"),s=e.querySelector(".a-pos"),i=e.querySelector(".a-u-name"),a=e.querySelector(".a-u-sex"),o=e.querySelector(".a-func-forward");if(i==null||a==null||n==null||r==null||s==null)return;const c=i==null?void 0:i.querySelector("a"),h=c?c.innerText:i==null?void 0:i.innerText,f=e.classList;e.setAttribute(Ue.PROJECT_NAME+"-id",h);const _="simple-article";e.addEventListener("dblclick",()=>{f.contains(_)?f.remove(_):f.add(_)},!0),f.add("simple-article");const w=e.querySelector(".a-body .a-content>p");if(w==null)return;let p="";if(o instanceof HTMLAnchorElement){const T=o.href;p=T.substring(T.lastIndexOf("/")+1,T.lastIndexOf("."))}const v=gt().appState.topicState,m=v.board+"/"+v.topicId+"/"+p,E=Ue.onMobile&&Ue.simplifyConfig.simplify?Uh(w):w.innerHTML,k=Ph(e),S={userId:h,articleId:p,content:E,p:w,showModifier:!1,ip:k,articleUri:m};if(Object.assign(Rh.articleInfoArr[t],S),n.insertBefore(et.articleEls[t].userDataBundleEl,n.firstChild),r.appendChild(et.articleEls[t].modifierSwitchEl),Ue.onMobile){const T=document.createElement("li");T.appendChild(a),T.appendChild(i),r.insertBefore(T,r.firstChild),r.appendChild(s),T.appendChild(et.articleEls[t].userInfoEl)}else i.appendChild(et.articleEls[t].userInfoEl)}function Uh(e){var f;const t=document.createElement("p");e.classList.add("origin"),t.classList.add("simple");const n=e.innerHTML,r="<br>&nbsp;&nbsp;<br>",s="<br> --",i=n.indexOf(r)+20,a=n.lastIndexOf(s),c=n.substring(a==-1?i:a,void 0).match(Bh);let h="";return h=n.substring(i,a==-1?void 0:a)+"<br><br>",c==null||c.forEach(_=>{h+=_}),t.innerHTML=h,(f=e.parentElement)==null||f.insertBefore(t,e),n}function Ph(e){const t=e.querySelectorAll(".a-body .a-content>p>font");if(t.length<2)return"";const n=t[t.length-2].innerText,r=n.lastIndexOf("FROM: ");return r==-1?"":n.substring(r+6,n.length-1)}const Fh={sections:Ue.mainpageConfig.section,handle(e){if(Ue.onMobile!==!0)return;e.querySelectorAll("#slider>.pic>a").forEach(n=>{const r=document.createElement("div");r.classList.add("single-line"),r.innerText=n.title,n.appendChild(r)})}},Mh={sReg:/^#!s\/(\w+)\?/,handle(e){const t=location.hash.match(this.sReg);if(t==null||t[1]!="article")return;const n=e.querySelector("table"),r=e.querySelectorAll("#body table .title_12");n==null||r.length==0||(Po(r),Ue.onMobile&&Bi(n,[[4,3]],[0,1,3,5,6,7]))}},Lh={handle(e){var i,a,o,c;const t=e.querySelector("table");if(t==null||t.id=="member_list")return;const n=document.querySelectorAll("#body table .title_12"),r=document.querySelectorAll(".board-list>tbody>tr");if(r.length===1&&((i=r[0].firstElementChild)==null?void 0:i.innerHTML)=="该版面没有任何主题"){Yo();return}Po(n),Ue.onMobile&&Bi(t,[[3,2]],[0,2,4,5,6,7,8]);const s=document.querySelector(".board-list>thead>tr>.middle");s!=null&&(s.innerText="[评分/like数]主题(已读/全部)");for(let h=0;h<r.length;h++){const f=r[h].querySelector(".title_9>a");if(f==null)return;const _=(o=(a=r[h].querySelector(".title_12>a"))==null?void 0:a.innerHTML)!=null?o:"";r[h].setAttribute(Ue.PROJECT_NAME+"-id",_);const w=r[h].querySelectorAll(".middle"),p=w[0].innerHTML,v=w[1].innerHTML,m=w[2].innerHTML,E=document.createElement("a");E.href=f.href,E.innerHTML=`[${p}${p+v==""?" ":"/"}${v}]`,(c=f.parentNode)==null||c.insertBefore(E,f),Zn.addVisitedLinkStyle(f,parseInt(m))}}},zh={handle(e){var r;const t=e.querySelector("table");if(t==null||t.id=="member_list")return;const n=document.querySelectorAll(".topic-list tbody>tr");if(n.length===1&&((r=n[0].firstElementChild)==null?void 0:r.innerHTML)=="该版面没有任何主题"){Yo();return}Ue.onMobile&&Bi(t,[],[2,3,4,6,7])}},Hh={appStore:gt(et.pinia),dispatch:function(e){if(e.children.length==0){Tt(2,"body element is empty");return}this.loginRequired(e)?this.appStore.changeShowstate("right"):this.handle(e)},loginRequired:function(e){var t,n;return((n=(t=e.querySelector(".error>ul>li"))==null?void 0:t.lastChild)==null?void 0:n.textContent)==="您未登录(不可用),请登录(不可用)后继续操作"},handle:function(e){switch(this.appStore.appState.mainHash){case"article":jh.handle(e);break;case"mainpage":Fh.handle(e);break;case"s":Mh.handle(e);break;case"board":Lh.handle(e);break;case"topic":zh.handle(e);break}}},ma=window.DIALOG,ga=window.Backbone,_a=window.SYS,Gh=window.BODY,Ji=window.$,Qi=window._,$h={fix:function(){ma.ajaxDialog=function(e,t){this.set(e);var n=!1,r=e.ajax_msg,s={width:400};return t=Qi.reduce(e.list||[],function(i,a){return i.push({text:a.text.substr(0,25),click:function(){ga.history.navigate("#!"+a.url.substring(1),{trigger:!0,replace:!0}),n=!0,Ji(this).dialog("close")}}),i},t||[]),Qi.isEmpty(t)||(r+=","+_a.code.COM_REDIRECT,s.buttons=t),e.default&&(s.close=function(){n||(n=!0,location.hash.split("/").some(i=>i==="post")?history.back():Gh.refresh())},setTimeout(function(){!n&&ma.getTop().dialog("close")},_a.redirect*1e3)),this.alertDialog(r,this.ajaxOK()?this.ICO_INFO:this.ICO_ALERT,s)},window.BODY.jump=function(e,t){var n=this,r=function(i){i=Qi.isString(i)?i:i.responseText,i.match(/^location:.*$/i)?ga.history.navigate("#!"+i.replace(/^location:\/?/i,""),{trigger:!0,replace:!0}):(n.set({html:i,path:e},{silent:!0}),n.change(),n.trigger("jumped"))};this.trigger("jump");var s;e.match(/\?/)?s=e.replace(/\?/,"?ajax&"):e.match(/#/)?s=e.replace(/#/,"?ajax#"):s=e+"?ajax",Ji.get(s,typeof t!="undefined"?{_t:Ji.random()}:{}).success(r).error(r)}}},es={dbPrepared:!1,appStateStore:gt(et.pinia),bodyElement:{},initDb:function(){Promise.all([it.initDB(),Ue.init(),this.appStateStore.init(),et.init()]).then(()=>Promise.all([Ht.init(),Ui.init(),At.init(),zt.init(),Jt.init(),wn.init(),Lr.init(),Pi.init(),Nr.init(),Go.init(),yn.init()])).then(()=>{this.dbPrepared=!0,et.mount()})},initDom:function(){history.scrollRestoration&&(history.scrollRestoration="manual"),this.bodyElement=document.querySelector("#body"),this.bodyElement.childElementCount!==0&&this.bodyMutCallback(),Zn.init(),kh.handleInputEvent(),this.listen(),$h.fix()},listen:function(){window.addEventListener("hashchange",t=>{if(t.oldURL.replace(/[?&]p=1/,"")===t.newURL.replace(/[?&]p=1/,"")){history.back();return}this.appStateStore.onHashChange(),Jt.onHashChange(t),ca.onHashChange(t)});const e={attributes:!1,childList:!0,subtree:!1};new MutationObserver(()=>{this.bodyMutCallback()}).observe(this.bodyElement,e)},bodyMutCallback:function(){var t;this.bodyElement.style.display="none",this.appStateStore.onBodyMut(),ca.onBodyMut(),Zn.pxToRem(),(t=document.querySelector("#c_m"))==null||t.insertAdjacentHTML("beforebegin","<br/>"),Hh.dispatch(this.bodyElement),this.bodyElement.style.display="block";const e=this.appStateStore.scrollY;e.hash===location.hash&&window.scrollTo({top:e.scrollY,behavior:"auto"})}};({run:function(){window.newsmth_script_loaded!==!0&&(window.newsmth_script_loaded=!0,window.unsafeWindow&&(Object.defineProperty(window,"APP",{get(){var e;return(e=window.unsafeWindow)==null?void 0:e.APP}}),Object.defineProperty(window,"SESSION",{get(){var e;return(e=window.unsafeWindow)==null?void 0:e.SESSION}})),Jo.init(),location.hostname==="www.newsmth.net"&&(es.initDb(),xc(),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{es.initDom()}):es.initDom()))}}).run()})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址