水木社区web转APP

将水木pc版转换为app效果

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

// ==UserScript==
// @name         水木社区web转APP
// @namespace    https://www.newsmth.top/
// @version      0.5.9
// @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 jh=Object.defineProperty;var ha=Object.getOwnPropertySymbols,Nh=Object.getPrototypeOf,Ph=Object.prototype.hasOwnProperty,Uh=Object.prototype.propertyIsEnumerable,Fh=Reflect.get;var Oe=Math.pow,ts=(Ke,Se,Pe)=>Se in Ke?jh(Ke,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ke[Se]=Pe,ns=(Ke,Se)=>{for(var Pe in Se||(Se={}))Ph.call(Se,Pe)&&ts(Ke,Pe,Se[Pe]);if(ha)for(var Pe of ha(Se))Uh.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 Kr=(Ke,Se,Pe)=>Fh(Nh(Ke),Pe,Se);var be=(Ke,Se,Pe)=>new Promise((Xr,nr)=>{var Wr=st=>{try{Gt(Pe.next(st))}catch(An){nr(An)}},Tn=st=>{try{Gt(Pe.throw(st))}catch(An){nr(An)}},Gt=st=>st.done?Xr(st.value):Promise.resolve(st.value).then(Wr,Tn);Gt((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{width: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}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}#setting label{margin:.3rem .5rem;float:left}#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}dialog button[data-v-42e87b65]{float:right}#setting[data-v-24b9a60a]{position:fixed;left:0;right:0;top:0;margin:auto;background-color:#f3f5fc;padding:1rem;z-index:101;height:100%;overflow:scroll}.button[data-v-24b9a60a]{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(),rt.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 Xr extends Se{constructor(t,n="",r={}){super(),this.articleUri=t,this.id=n,this.tags=r}modify(t,n){Object.prototype.hasOwnProperty.call(this.tags,t)||(this.tags[t]=0),this.tags[t]+=n,this.tags[t]===0&&delete this.tags[t],this.save()}}class nr 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 Wr extends Se{constructor(t,n=1,r=-1,i=0){super(),this.topicUri=t,this.p=n,this.pos=r,this.scrollY=i}update(t){Object.assign(this,t),this.save()}}class Tn 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 Gt(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return t?i=>!!n[i.toLowerCase()]:i=>!!n[i]}function st(e){if(he(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=Ue(r)?ma(r):st(r);if(i)for(const s in i)t[s]=i[s]}return t}else{if(Ue(e))return e;if(De(e))return e}}const An=/;(?![^(]*\))/g,pa=/:([^]+)/,fa=new RegExp("\\/\\*.*?\\*\\/","gs");function ma(e){const t={};return e.replace(fa,"").split(An).forEach(n=>{if(n){const r=n.split(pa);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function gt(e){let t="";if(Ue(e))t=e;else if(he(e))for(let n=0;n<e.length;n++){const r=gt(e[n]);r&&(t+=r+" ")}else if(De(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ga(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ue(t)&&(e.class=gt(t)),n&&(e.style=st(n)),e}const _a=Gt("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function rs(e){return!!e||e===""}function ba(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=On(e[r],t[r]);return n}function On(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=Cn(e),r=Cn(t),n||r)return e===t;if(n=he(e),r=he(t),n||r)return n&&r?ba(e,t):!1;if(n=De(e),r=De(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,s=Object.keys(t).length;if(i!==s)return!1;for(const a in e){const o=e.hasOwnProperty(a),d=t.hasOwnProperty(a);if(o&&!d||!o&&d||!On(e[a],t[a]))return!1}}return String(e)===String(t)}function qr(e,t){return e.findIndex(n=>On(n,t))}const Xe=e=>Ue(e)?e:e==null?"":he(e)||De(e)&&(e.toString===os||!ge(e.toString))?JSON.stringify(e,is,2):String(e),is=(e,t)=>t&&t.__v_isRef?is(e,t.value):en(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:tn(t)?{[`Set(${t.size})`]:[...t.values()]}:De(t)&&!he(t)&&!as(t)?String(t):t,Ce={},Qt=[],dt=()=>{},wa=()=>!1,ya=/^on[^a-z]/,rr=e=>ya.test(e),Vr=e=>e.startsWith("onUpdate:"),qe=Object.assign,Yr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},va=Object.prototype.hasOwnProperty,Ee=(e,t)=>va.call(e,t),he=Array.isArray,en=e=>Dn(e)==="[object Map]",tn=e=>Dn(e)==="[object Set]",ss=e=>Dn(e)==="[object Date]",ge=e=>typeof e=="function",Ue=e=>typeof e=="string",Cn=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",Zr=e=>De(e)&&ge(e.then)&&ge(e.catch),os=Object.prototype.toString,Dn=e=>os.call(e),ka=e=>Dn(e).slice(8,-1),as=e=>Dn(e)==="[object Object]",Jr=e=>Ue(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ir=Gt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),sr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},xa=/-(\w)/g,nn=sr(e=>e.replace(xa,(t,n)=>n?n.toUpperCase():"")),Ea=/\B([A-Z])/g,rn=sr(e=>e.replace(Ea,"-$1").toLowerCase()),ls=sr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Qr=sr(e=>e?`on${ls(e)}`:""),Rn=(e,t)=>!Object.is(e,t),or=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ar=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},lr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Sa=e=>{const t=Ue(e)?Number(e):NaN;return isNaN(t)?e:t};let us;const Ia=()=>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 i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function ds(e){return new cs(e)}function Ta(e,t=nt){t&&t.active&&t.effects.push(e)}function hs(){return nt}function Aa(e){nt&&nt.cleanups.push(e)}const ei=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,Oa=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ot},Ca=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const i=t[r];ps(i)&&!fs(i)?i.delete(e):t[n++]=i,i.w&=~Ot,i.n&=~Ot}t.length=n}},ur=new WeakMap;let Bn=0,Ot=1;const ti=30;let ht;const $t=Symbol(""),ni=Symbol("");class ri{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Ta(this,r)}run(){if(!this.active)return this.fn();let t=ht,n=Ct;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=ht,ht=this,Ct=!0,Ot=1<<++Bn,Bn<=ti?Oa(this):ms(this),this.fn()}finally{Bn<=ti&&Ca(this),Ot=1<<--Bn,ht=this.parent,Ct=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ht===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 sn(){gs.push(Ct),Ct=!1}function on(){const e=gs.pop();Ct=e===void 0?!0:e}function Je(e,t,n){if(Ct&&ht){let r=ur.get(e);r||ur.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=ei()),_s(i)}}function _s(e,t){let n=!1;Bn<=ti?fs(e)||(e.n|=Ot,n=!ps(e)):n=!e.has(ht),n&&(e.add(ht),ht.deps.push(e))}function vt(e,t,n,r,i,s){const a=ur.get(e);if(!a)return;let o=[];if(t==="clear")o=[...a.values()];else if(n==="length"&&he(e)){const d=Number(r);a.forEach((p,f)=>{(f==="length"||f>=d)&&o.push(p)})}else switch(n!==void 0&&o.push(a.get(n)),t){case"add":he(e)?Jr(n)&&o.push(a.get("length")):(o.push(a.get($t)),en(e)&&o.push(a.get(ni)));break;case"delete":he(e)||(o.push(a.get($t)),en(e)&&o.push(a.get(ni)));break;case"set":en(e)&&o.push(a.get($t));break}if(o.length===1)o[0]&&ii(o[0]);else{const d=[];for(const p of o)p&&d.push(...p);ii(ei(d))}}function ii(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!==ht||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Da(e,t){var n;return(n=ur.get(e))===null||n===void 0?void 0:n.get(t)}const Ra=Gt("__proto__,__v_isRef,__isVue"),ws=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Cn)),Ba=si(),ja=si(!1,!0),Na=si(!0),ys=Pa();function Pa(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=ke(this);for(let s=0,a=this.length;s<a;s++)Je(r,"get",s+"");const i=r[t](...n);return i===-1||i===!1?r[t](...n.map(ke)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){sn();const r=ke(this)[t].apply(this,n);return on(),r}}),e}function Ua(e){const t=ke(this);return Je(t,"has",e),t.hasOwnProperty(e)}function si(e=!1,t=!1){return function(r,i,s){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&s===(e?t?Qa:Os:t?As:Ts).get(r))return r;const a=he(r);if(!e){if(a&&Ee(ys,i))return Reflect.get(ys,i,s);if(i==="hasOwnProperty")return Ua}const o=Reflect.get(r,i,s);return(Cn(i)?ws.has(i):Ra(i))||(e||Je(r,"get",i),t)?o:Fe(o)?a&&Jr(i)?o:o.value:De(o)?e?Cs(o):kt(o):o}}const Fa=vs(),Ma=vs(!0);function vs(e=!1){return function(n,r,i,s){let a=n[r];if(an(a)&&Fe(a)&&!Fe(i))return!1;if(!e&&(!gr(i)&&!an(i)&&(a=ke(a),i=ke(i)),!he(n)&&Fe(a)&&!Fe(i)))return a.value=i,!0;const o=he(n)&&Jr(r)?Number(r)<n.length:Ee(n,r),d=Reflect.set(n,r,i,s);return n===ke(s)&&(o?Rn(i,a)&&vt(n,"set",r,i):vt(n,"add",r,i)),d}}function za(e,t){const n=Ee(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&vt(e,"delete",t,void 0),r}function La(e,t){const n=Reflect.has(e,t);return(!Cn(t)||!ws.has(t))&&Je(e,"has",t),n}function Ha(e){return Je(e,"iterate",he(e)?"length":$t),Reflect.ownKeys(e)}const ks={get:Ba,set:Fa,deleteProperty:za,has:La,ownKeys:Ha},Ga={get:Na,set(e,t){return!0},deleteProperty(e,t){return!0}},$a=qe({},ks,{get:ja,set:Ma}),oi=e=>e,cr=e=>Reflect.getPrototypeOf(e);function dr(e,t,n=!1,r=!1){e=e.__v_raw;const i=ke(e),s=ke(t);n||(t!==s&&Je(i,"get",t),Je(i,"get",s));const{has:a}=cr(i),o=r?oi:n?ui:jn;if(a.call(i,t))return o(e.get(t));if(a.call(i,s))return o(e.get(s));e!==i&&e.get(t)}function hr(e,t=!1){const n=this.__v_raw,r=ke(n),i=ke(e);return t||(e!==i&&Je(r,"has",e),Je(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function pr(e,t=!1){return e=e.__v_raw,!t&&Je(ke(e),"iterate",$t),Reflect.get(e,"size",e)}function xs(e){e=ke(e);const t=ke(this);return cr(t).has.call(t,e)||(t.add(e),vt(t,"add",e,e)),this}function Es(e,t){t=ke(t);const n=ke(this),{has:r,get:i}=cr(n);let s=r.call(n,e);s||(e=ke(e),s=r.call(n,e));const a=i.call(n,e);return n.set(e,t),s?Rn(t,a)&&vt(n,"set",e,t):vt(n,"add",e,t),this}function Ss(e){const t=ke(this),{has:n,get:r}=cr(t);let i=n.call(t,e);i||(e=ke(e),i=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return i&&vt(t,"delete",e,void 0),s}function Is(){const e=ke(this),t=e.size!==0,n=e.clear();return t&&vt(e,"clear",void 0,void 0),n}function fr(e,t){return function(r,i){const s=this,a=s.__v_raw,o=ke(a),d=t?oi:e?ui:jn;return!e&&Je(o,"iterate",$t),a.forEach((p,f)=>r.call(i,d(p),d(f),s))}}function mr(e,t,n){return function(...r){const i=this.__v_raw,s=ke(i),a=en(s),o=e==="entries"||e===Symbol.iterator&&a,d=e==="keys"&&a,p=i[e](...r),f=n?oi:t?ui:jn;return!t&&Je(s,"iterate",d?ni:$t),{next(){const{value:m,done:w}=p.next();return w?{value:m,done:w}:{value:o?[f(m[0]),f(m[1])]:f(m),done:w}},[Symbol.iterator](){return this}}}}function Dt(e){return function(...t){return e==="delete"?!1:this}}function Ka(){const e={get(s){return dr(this,s)},get size(){return pr(this)},has:hr,add:xs,set:Es,delete:Ss,clear:Is,forEach:fr(!1,!1)},t={get(s){return dr(this,s,!1,!0)},get size(){return pr(this)},has:hr,add:xs,set:Es,delete:Ss,clear:Is,forEach:fr(!1,!0)},n={get(s){return dr(this,s,!0)},get size(){return pr(this,!0)},has(s){return hr.call(this,s,!0)},add:Dt("add"),set:Dt("set"),delete:Dt("delete"),clear:Dt("clear"),forEach:fr(!0,!1)},r={get(s){return dr(this,s,!0,!0)},get size(){return pr(this,!0)},has(s){return hr.call(this,s,!0)},add:Dt("add"),set:Dt("set"),delete:Dt("delete"),clear:Dt("clear"),forEach:fr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=mr(s,!1,!1),n[s]=mr(s,!0,!1),t[s]=mr(s,!1,!0),r[s]=mr(s,!0,!0)}),[e,n,t,r]}const[Xa,Wa,qa,Va]=Ka();function ai(e,t){const n=t?e?Va:qa:e?Wa:Xa;return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Ee(n,i)&&i in r?n:r,i,s)}const Ya={get:ai(!1,!1)},Za={get:ai(!1,!0)},Ja={get:ai(!0,!1)},Ts=new WeakMap,As=new WeakMap,Os=new WeakMap,Qa=new WeakMap;function el(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function tl(e){return e.__v_skip||!Object.isExtensible(e)?0:el(ka(e))}function kt(e){return an(e)?e:li(e,!1,ks,Ya,Ts)}function nl(e){return li(e,!1,$a,Za,As)}function Cs(e){return li(e,!0,Ga,Ja,Os)}function li(e,t,n,r,i){if(!De(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const a=tl(e);if(a===0)return e;const o=new Proxy(e,a===2?r:n);return i.set(e,o),o}function Rt(e){return an(e)?Rt(e.__v_raw):!!(e&&e.__v_isReactive)}function an(e){return!!(e&&e.__v_isReadonly)}function gr(e){return!!(e&&e.__v_isShallow)}function Ds(e){return Rt(e)||an(e)}function ke(e){const t=e&&e.__v_raw;return t?ke(t):e}function ln(e){return ar(e,"__v_skip",!0),e}const jn=e=>De(e)?kt(e):e,ui=e=>De(e)?Cs(e):e;function Rs(e){Ct&&ht&&(e=ke(e),_s(e.dep||(e.dep=ei())))}function Bs(e,t){e=ke(e);const n=e.dep;n&&ii(n)}function Fe(e){return!!(e&&e.__v_isRef===!0)}function Ve(e){return rl(e,!1)}function rl(e,t){return Fe(e)?e:new il(e,t)}class il{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:jn(t)}get value(){return Rs(this),this._value}set value(t){const n=this.__v_isShallow||gr(t)||an(t);t=n?t:ke(t),Rn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:jn(t),Bs(this))}}function ve(e){return Fe(e)?e.value:e}const sl={get:(e,t,n)=>ve(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Fe(i)&&!Fe(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function js(e){return Rt(e)?e:new Proxy(e,sl)}function ol(e){const t=he(e)?new Array(e.length):{};for(const n in e)t[n]=ll(e,n);return t}class al{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 Da(ke(this._object),this._key)}}function ll(e,t,n){const r=e[t];return Fe(r)?r:new al(e,t,n)}var Ns;class ul{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[Ns]=!1,this._dirty=!0,this.effect=new ri(t,()=>{this._dirty||(this._dirty=!0,Bs(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,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 cl(e,t,n=!1){let r,i;const s=ge(e);return s?(r=e,i=dt):(r=e.get,i=e.set),new ul(r,i,s||!i,n)}function zh(e,...t){}function Bt(e,t,n,r){let i;try{i=r?e(...r):e()}catch(s){Nn(s,t,n)}return i}function pt(e,t,n,r){if(ge(e)){const s=Bt(e,t,n,r);return s&&Zr(s)&&s.catch(a=>{Nn(a,t,n)}),s}const i=[];for(let s=0;s<e.length;s++)i.push(pt(e[s],t,n,r));return i}function Nn(e,t,n,r=!0){const i=t?t.vnode:null;if(t){let s=t.parent;const a=t.proxy,o=n;for(;s;){const p=s.ec;if(p){for(let f=0;f<p.length;f++)if(p[f](e,a,o)===!1)return}s=s.parent}const d=t.appContext.config.errorHandler;if(d){Bt(d,null,10,[e,a,o]);return}}dl(e,n,i,r)}function dl(e,t,n,r=!0){console.error(e)}let Pn=!1,ci=!1;const We=[];let _t=0;const un=[];let xt=null,Kt=0;const Ps=Promise.resolve();let di=null;function Us(e){const t=di||Ps;return e?t.then(this?e.bind(this):e):t}function hl(e){let t=_t+1,n=We.length;for(;t<n;){const r=t+n>>>1;Un(We[r])<e?t=r+1:n=r}return t}function hi(e){(!We.length||!We.includes(e,Pn&&e.allowRecurse?_t+1:_t))&&(e.id==null?We.push(e):We.splice(hl(e.id),0,e),Fs())}function Fs(){!Pn&&!ci&&(ci=!0,di=Ps.then(Hs))}function pl(e){const t=We.indexOf(e);t>_t&&We.splice(t,1)}function Ms(e){he(e)?un.push(...e):(!xt||!xt.includes(e,e.allowRecurse?Kt+1:Kt))&&un.push(e),Fs()}function zs(e,t=Pn?_t+1:0){for(;t<We.length;t++){const n=We[t];n&&n.pre&&(We.splice(t,1),t--,n())}}function Ls(e){if(un.length){const t=[...new Set(un)];if(un.length=0,xt){xt.push(...t);return}for(xt=t,xt.sort((n,r)=>Un(n)-Un(r)),Kt=0;Kt<xt.length;Kt++)xt[Kt]();xt=null,Kt=0}}const Un=e=>e.id==null?1/0:e.id,fl=(e,t)=>{const n=Un(e)-Un(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Hs(e){ci=!1,Pn=!0,We.sort(fl);const t=dt;try{for(_t=0;_t<We.length;_t++){const n=We[_t];n&&n.active!==!1&&Bt(n,null,14)}}finally{_t=0,We.length=0,Ls(),Pn=!1,di=null,(We.length||un.length)&&Hs()}}function ml(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ce;let i=n;const s=t.startsWith("update:"),a=s&&t.slice(7);if(a&&a in r){const f=`${a==="modelValue"?"model":a}Modifiers`,{number:m,trim:w}=r[f]||Ce;w&&(i=n.map(h=>Ue(h)?h.trim():h)),m&&(i=n.map(lr))}let o,d=r[o=Qr(t)]||r[o=Qr(nn(t))];!d&&s&&(d=r[o=Qr(rn(t))]),d&&pt(d,e,6,i);const p=r[o+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,pt(p,e,6,i)}}function Gs(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const s=e.emits;let a={},o=!1;if(!ge(e)){const d=p=>{const f=Gs(p,t,!0);f&&(o=!0,qe(a,f))};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}return!s&&!o?(De(e)&&r.set(e,null),null):(he(s)?s.forEach(d=>a[d]=null):qe(a,s),De(e)&&r.set(e,a),a)}function _r(e,t){return!e||!rr(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ee(e,t[0].toLowerCase()+t.slice(1))||Ee(e,rn(t))||Ee(e,t))}let ot=null,br=null;function wr(e){const t=ot;return ot=e,br=e&&e.type.__scopeId||null,t}function yr(e){br=e}function vr(){br=null}function pi(e,t=ot,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&mo(-1);const s=wr(t);let a;try{a=e(...i)}finally{wr(s),r._d&&mo(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Lh(){}function fi(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:s,propsOptions:[a],slots:o,attrs:d,emit:p,render:f,renderCache:m,data:w,setupState:h,ctx:x,inheritAttrs:_}=e;let E,v;const S=wr(e);try{if(n.shapeFlag&4){const F=i||r;E=ft(f.call(F,F,m,s,h,w,x)),v=d}else{const F=t;E=ft(F.length>1?F(s,{attrs:d,slots:o,emit:p}):F(s,null)),v=t.props?d:_l(d)}}catch(F){Hn.length=0,Nn(F,e,1),E=Re(St)}let T=E;if(v&&_!==!1){const F=Object.keys(v),{shapeFlag:j}=T;F.length&&j&7&&(a&&F.some(Vr)&&(v=bl(v,a)),T=hn(T,v))}return n.dirs&&(T=hn(T),T.dirs=T.dirs?T.dirs.concat(n.dirs):n.dirs),n.transition&&(T.transition=n.transition),E=T,wr(S),E}function gl(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(_o(r)){if(r.type!==St||r.children==="v-if"){if(t)return;t=r}}else return}return t}const _l=e=>{let t;for(const n in e)(n==="class"||n==="style"||rr(n))&&((t||(t={}))[n]=e[n]);return t},bl=(e,t)=>{const n={};for(const r in e)(!Vr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function wl(e,t,n){const{props:r,children:i,component:s}=e,{props:a,children:o,patchFlag:d}=t,p=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&d>=0){if(d&1024)return!0;if(d&16)return r?$s(r,a,p):!!a;if(d&8){const f=t.dynamicProps;for(let m=0;m<f.length;m++){const w=f[m];if(a[w]!==r[w]&&!_r(p,w))return!0}}}else return(i||o)&&(!o||!o.$stable)?!0:r===a?!1:r?a?$s(r,a,p):!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 i=0;i<r.length;i++){const s=r[i];if(t[s]!==e[s]&&!_r(n,s))return!0}return!1}function mi({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const yl=e=>e.__isSuspense,Ks={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,s,a,o,d,p){e==null?vl(t,n,r,i,s,a,o,d,p):kl(e,t,n,r,i,a,o,d,p)},hydrate:xl,create:gi,normalize:El};function Fn(e,t){const n=e.props&&e.props[t];ge(n)&&n()}function vl(e,t,n,r,i,s,a,o,d){const{p,o:{createElement:f}}=d,m=f("div"),w=e.suspense=gi(e,i,r,t,m,n,s,a,o,d);p(null,w.pendingBranch=e.ssContent,m,null,r,w,s,a),w.deps>0?(Fn(e,"onPending"),Fn(e,"onFallback"),p(null,e.ssFallback,t,n,r,null,s,a),cn(w,e.ssFallback)):w.resolve()}function kl(e,t,n,r,i,s,a,o,{p:d,um:p,o:{createElement:f}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const w=t.ssContent,h=t.ssFallback,{activeBranch:x,pendingBranch:_,isInFallback:E,isHydrating:v}=m;if(_)m.pendingBranch=w,Nt(w,_)?(d(_,w,m.hiddenContainer,null,i,m,s,a,o),m.deps<=0?m.resolve():E&&(d(x,h,n,r,i,null,s,a,o),cn(m,h))):(m.pendingId++,v?(m.isHydrating=!1,m.activeBranch=_):p(_,i,m),m.deps=0,m.effects.length=0,m.hiddenContainer=f("div"),E?(d(null,w,m.hiddenContainer,null,i,m,s,a,o),m.deps<=0?m.resolve():(d(x,h,n,r,i,null,s,a,o),cn(m,h))):x&&Nt(w,x)?(d(x,w,n,r,i,m,s,a,o),m.resolve(!0)):(d(null,w,m.hiddenContainer,null,i,m,s,a,o),m.deps<=0&&m.resolve()));else if(x&&Nt(w,x))d(x,w,n,r,i,m,s,a,o),cn(m,w);else if(Fn(t,"onPending"),m.pendingBranch=w,m.pendingId++,d(null,w,m.hiddenContainer,null,i,m,s,a,o),m.deps<=0)m.resolve();else{const{timeout:S,pendingId:T}=m;S>0?setTimeout(()=>{m.pendingId===T&&m.fallback(h)},S):S===0&&m.fallback(h)}}function gi(e,t,n,r,i,s,a,o,d,p,f=!1){const{p:m,m:w,um:h,n:x,o:{parentNode:_,remove:E}}=p,v=e.props?Sa(e.props.timeout):void 0,S={vnode:e,parent:t,parentComponent:n,isSVG:a,container:r,hiddenContainer:i,anchor:s,deps:0,pendingId:0,timeout:typeof v=="number"?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:f,isUnmounted:!1,effects:[],resolve(T=!1){const{vnode:F,activeBranch:j,pendingBranch:q,pendingId:L,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=()=>{L===S.pendingId&&w(q,ee,b,0)});let{anchor:b}=S;j&&(b=x(j),h(j,G,S,!0)),Y||w(q,ee,b,0)}cn(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=[],Fn(F,"onResolve")},fallback(T){if(!S.pendingBranch)return;const{vnode:F,activeBranch:j,parentComponent:q,container:L,isSVG:X}=S;Fn(F,"onFallback");const G=x(j),ee=()=>{S.isInFallback&&(m(null,T,L,G,q,null,X,o,d),cn(S,T))},se=T.transition&&T.transition.mode==="out-in";se&&(j.transition.afterLeave=ee),S.isInFallback=!0,h(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&&x(S.activeBranch)},registerDep(T,F){const j=!!S.pendingBranch;j&&S.deps++;const q=T.vnode.el;T.asyncDep.catch(L=>{Nn(L,T,0)}).then(L=>{if(T.isUnmounted||S.isUnmounted||S.pendingId!==T.suspenseId)return;T.asyncResolved=!0;const{vnode:X}=T;Oi(T,L,!1),q&&(X.el=q);const G=!q&&T.subTree.el;F(T,X,_(q||T.subTree.el),q?null:x(T.subTree),S,a,d),G&&E(G),mi(T,X.el),j&&--S.deps===0&&S.resolve()})},unmount(T,F){S.isUnmounted=!0,S.activeBranch&&h(S.activeBranch,n,T,F),S.pendingBranch&&h(S.pendingBranch,n,T,F)}};return S}function xl(e,t,n,r,i,s,a,o,d){const p=t.suspense=gi(t,r,n,e.parentNode,document.createElement("div"),null,i,s,a,o,!0),f=d(e,p.pendingBranch=t.ssContent,n,p,s,a);return p.deps===0&&p.resolve(),f}function El(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Xs(r?n.default:n),e.ssFallback=r?Xs(n.fallback):Re(St)}function Xs(e){let t;if(ge(e)){const n=dn&&e._c;n&&(e._d=!1,ce()),e=e(),n&&(e._d=!0,t=at,fo())}return he(e)&&(e=gl(e)),e=ft(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Sl(e,t){t&&t.pendingBranch?he(e)?t.effects.push(...e):t.effects.push(e):Ms(e)}function cn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,i=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=i,mi(r,i))}function Il(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 Mn(e,t,n=!1){const r=ze||ot;if(r){const i=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&ge(t)?t.call(r.proxy):t}}const kr={};function jt(e,t,n){return Ws(e,t,n)}function Ws(e,t,{immediate:n,deep:r,flush:i,onTrack:s,onTrigger:a}=Ce){const o=hs()===(ze==null?void 0:ze.scope)?ze:null;let d,p=!1,f=!1;if(Fe(e)?(d=()=>e.value,p=gr(e)):Rt(e)?(d=()=>e,r=!0):he(e)?(f=!0,p=e.some(T=>Rt(T)||gr(T)),d=()=>e.map(T=>{if(Fe(T))return T.value;if(Rt(T))return Xt(T);if(ge(T))return Bt(T,o,2)})):ge(e)?t?d=()=>Bt(e,o,2):d=()=>{if(!(o&&o.isUnmounted))return m&&m(),pt(e,o,3,[w])}:d=dt,t&&r){const T=d;d=()=>Xt(T())}let m,w=T=>{m=v.onStop=()=>{Bt(T,o,4)}},h;if(Gn)if(w=dt,t?n&&pt(t,o,3,[d(),f?[]:void 0,w]):d(),i==="sync"){const T=_u();h=T.__watcherHandles||(T.__watcherHandles=[])}else return dt;let x=f?new Array(e.length).fill(kr):kr;const _=()=>{if(v.active)if(t){const T=v.run();(r||p||(f?T.some((F,j)=>Rn(F,x[j])):Rn(T,x)))&&(m&&m(),pt(t,o,3,[T,x===kr?void 0:f&&x[0]===kr?[]:x,w]),x=T)}else v.run()};_.allowRecurse=!!t;let E;i==="sync"?E=_:i==="post"?E=()=>et(_,o&&o.suspense):(_.pre=!0,o&&(_.id=o.uid),E=()=>hi(_));const v=new ri(d,E);t?n?_():x=v.run():i==="post"?et(v.run.bind(v),o&&o.suspense):v.run();const S=()=>{v.stop(),o&&o.scope&&Yr(o.scope.effects,v)};return h&&h.push(S),S}function Tl(e,t,n){const r=this.proxy,i=Ue(e)?e.includes(".")?qs(r,e):()=>r[e]:e.bind(r,r);let s;ge(t)?s=t:(s=t.handler,n=t);const a=ze;Ut(this);const o=Ws(i,s.bind(r),n);return a?Ut(a):Ft(),o}function qs(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}function Xt(e,t){if(!De(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Fe(e))Xt(e.value,t);else if(he(e))for(let n=0;n<e.length;n++)Xt(e[n],t);else if(tn(e)||en(e))e.forEach(n=>{Xt(n,t)});else if(as(e))for(const n in e)Xt(e[n],t);return e}function Le(e){return ge(e)?{setup:e,name:e.name}:e}const xr=e=>!!e.type.__asyncLoader,Vs=e=>e.type.__isKeepAlive;function Al(e,t){Ys(e,"a",t)}function Ol(e,t){Ys(e,"da",t)}function Ys(e,t,n=ze){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Er(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Vs(i.parent.vnode)&&Cl(r,t,n,i),i=i.parent}}function Cl(e,t,n,r){const i=Er(t,e,r,!0);Zs(()=>{Yr(r[t],i)},n)}function Er(e,t,n=ze,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;sn(),Ut(n);const o=pt(t,n,e,a);return Ft(),on(),o});return r?i.unshift(s):i.push(s),s}}const Et=e=>(t,n=ze)=>(!Gn||e==="sp")&&Er(e,(...r)=>t(...r),n),Dl=Et("bm"),Rl=Et("m"),Bl=Et("bu"),jl=Et("u"),Nl=Et("bum"),Zs=Et("um"),Pl=Et("sp"),Ul=Et("rtg"),Fl=Et("rtc");function Ml(e,t=ze){Er("ec",e,t)}function Qe(e,t){const n=ot;if(n===null)return e;const r=Dr(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[a,o,d,p=Ce]=t[s];a&&(ge(a)&&(a={mounted:a,updated:a}),a.deep&&Xt(o),i.push({dir:a,instance:r,value:o,oldValue:void 0,arg:d,modifiers:p}))}return e}function Wt(e,t,n,r){const i=e.dirs,s=t&&t.dirs;for(let a=0;a<i.length;a++){const o=i[a];s&&(o.oldValue=s[a].value);let d=o.dir[r];d&&(sn(),pt(d,n,8,[e.el,o,e,t]),on())}}const zl=Symbol();function bt(e,t,n,r){let i;const s=n&&n[r];if(he(e)||Ue(e)){i=new Array(e.length);for(let a=0,o=e.length;a<o;a++)i[a]=t(e[a],a,void 0,s&&s[a])}else if(typeof e=="number"){i=new Array(e);for(let a=0;a<e;a++)i[a]=t(a+1,a,void 0,s&&s[a])}else if(De(e))if(e[Symbol.iterator])i=Array.from(e,(a,o)=>t(a,o,void 0,s&&s[o]));else{const a=Object.keys(e);i=new Array(a.length);for(let o=0,d=a.length;o<d;o++){const p=a[o];i[o]=t(e[p],p,o,s&&s[o])}}else i=[];return n&&(n[r]=i),i}const _i=e=>e?vo(e)?Dr(e)||e.proxy:_i(e.parent):null,zn=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=>_i(e.parent),$root:e=>_i(e.root),$emit:e=>e.emit,$options:e=>yi(e),$forceUpdate:e=>e.f||(e.f=()=>hi(e.update)),$nextTick:e=>e.n||(e.n=Us.bind(e.proxy)),$watch:e=>Tl.bind(e)}),bi=(e,t)=>e!==Ce&&!e.__isScriptSetup&&Ee(e,t),Ll={get({_:e},t){const{ctx:n,setupState:r,data:i,props:s,accessCache:a,type:o,appContext:d}=e;let p;if(t[0]!=="$"){const h=a[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(bi(r,t))return a[t]=1,r[t];if(i!==Ce&&Ee(i,t))return a[t]=2,i[t];if((p=e.propsOptions[0])&&Ee(p,t))return a[t]=3,s[t];if(n!==Ce&&Ee(n,t))return a[t]=4,n[t];wi&&(a[t]=0)}}const f=zn[t];let m,w;if(f)return t==="$attrs"&&Je(e,"get",t),f(e);if((m=o.__cssModules)&&(m=m[t]))return m;if(n!==Ce&&Ee(n,t))return a[t]=4,n[t];if(w=d.config.globalProperties,Ee(w,t))return w[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return bi(i,t)?(i[t]=n,!0):r!==Ce&&Ee(r,t)?(r[t]=n,!0):Ee(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},a){let o;return!!n[a]||e!==Ce&&Ee(e,a)||bi(t,a)||(o=s[0])&&Ee(o,a)||Ee(r,a)||Ee(zn,a)||Ee(i.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 wi=!0;function Hl(e){const t=yi(e),n=e.proxy,r=e.ctx;wi=!1,t.beforeCreate&&Js(t.beforeCreate,e,"bc");const{data:i,computed:s,methods:a,watch:o,provide:d,inject:p,created:f,beforeMount:m,mounted:w,beforeUpdate:h,updated:x,activated:_,deactivated:E,beforeDestroy:v,beforeUnmount:S,destroyed:T,unmounted:F,render:j,renderTracked:q,renderTriggered:L,errorCaptured:X,serverPrefetch:G,expose:ee,inheritAttrs:se,components:D,directives:Y,filters:b}=t;if(p&&Gl(p,r,null,e.appContext.config.unwrapInjectedRef),a)for(const Q in a){const ae=a[Q];ge(ae)&&(r[Q]=ae.bind(n))}if(i){const Q=i.call(n,n);De(Q)&&(e.data=kt(Q))}if(wi=!0,s)for(const Q in s){const ae=s[Q],te=ge(ae)?ae.bind(n,n):ge(ae.get)?ae.get.bind(n,n):dt,de=!ge(ae)&&ge(ae.set)?ae.set.bind(n):dt,H=Rr({get:te,set:de});Object.defineProperty(r,Q,{enumerable:!0,configurable:!0,get:()=>H.value,set:z=>H.value=z})}if(o)for(const Q in o)Qs(o[Q],r,n,Q);if(d){const Q=ge(d)?d.call(n):d;Reflect.ownKeys(Q).forEach(ae=>{Il(ae,Q[ae])})}f&&Js(f,e,"c");function le(Q,ae){he(ae)?ae.forEach(te=>Q(te.bind(n))):ae&&Q(ae.bind(n))}if(le(Dl,m),le(Rl,w),le(Bl,h),le(jl,x),le(Al,_),le(Ol,E),le(Ml,X),le(Fl,q),le(Ul,L),le(Nl,S),le(Zs,F),le(Pl,G),he(ee))if(ee.length){const Q=e.exposed||(e.exposed={});ee.forEach(ae=>{Object.defineProperty(Q,ae,{get:()=>n[ae],set:te=>n[ae]=te})})}else e.exposed||(e.exposed={});j&&e.render===dt&&(e.render=j),se!=null&&(e.inheritAttrs=se),D&&(e.components=D),Y&&(e.directives=Y)}function Gl(e,t,n=dt,r=!1){he(e)&&(e=vi(e));for(const i in e){const s=e[i];let a;De(s)?"default"in s?a=Mn(s.from||i,s.default,!0):a=Mn(s.from||i):a=Mn(s),Fe(a)&&r?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[i]=a}}function Js(e,t,n){pt(he(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Qs(e,t,n,r){const i=r.includes(".")?qs(n,r):()=>n[r];if(Ue(e)){const s=t[e];ge(s)&&jt(i,s)}else if(ge(e))jt(i,e.bind(n));else if(De(e))if(he(e))e.forEach(s=>Qs(s,t,n,r));else{const s=ge(e.handler)?e.handler.bind(n):t[e.handler];ge(s)&&jt(i,s,e)}}function yi(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:a}}=e.appContext,o=s.get(t);let d;return o?d=o:!i.length&&!n&&!r?d=t:(d={},i.length&&i.forEach(p=>Sr(d,p,a,!0)),Sr(d,t,a)),De(t)&&s.set(t,d),d}function Sr(e,t,n,r=!1){const{mixins:i,extends:s}=t;s&&Sr(e,s,n,!0),i&&i.forEach(a=>Sr(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const o=$l[a]||n&&n[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const $l={data:eo,props:qt,emits:qt,methods:qt,computed:qt,beforeCreate:Ye,created:Ye,beforeMount:Ye,mounted:Ye,beforeUpdate:Ye,updated:Ye,beforeDestroy:Ye,beforeUnmount:Ye,destroyed:Ye,unmounted:Ye,activated:Ye,deactivated:Ye,errorCaptured:Ye,serverPrefetch:Ye,components:qt,directives:qt,watch:Xl,provide:eo,inject:Kl};function eo(e,t){return t?e?function(){return qe(ge(e)?e.call(this,this):e,ge(t)?t.call(this,this):t)}:t:e}function Kl(e,t){return qt(vi(e),vi(t))}function vi(e){if(he(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ye(e,t){return e?[...new Set([].concat(e,t))]:t}function qt(e,t){return e?qe(qe(Object.create(null),e),t):t}function Xl(e,t){if(!e)return t;if(!t)return e;const n=qe(Object.create(null),e);for(const r in t)n[r]=Ye(e[r],t[r]);return n}function Wl(e,t,n,r=!1){const i={},s={};ar(s,Or,1),e.propsDefaults=Object.create(null),to(e,t,i,s);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);n?e.props=r?i:nl(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function ql(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:a}}=e,o=ke(i),[d]=e.propsOptions;let p=!1;if((r||a>0)&&!(a&16)){if(a&8){const f=e.vnode.dynamicProps;for(let m=0;m<f.length;m++){let w=f[m];if(_r(e.emitsOptions,w))continue;const h=t[w];if(d)if(Ee(s,w))h!==s[w]&&(s[w]=h,p=!0);else{const x=nn(w);i[x]=ki(d,o,x,h,e,!1)}else h!==s[w]&&(s[w]=h,p=!0)}}}else{to(e,t,i,s)&&(p=!0);let f;for(const m in o)(!t||!Ee(t,m)&&((f=rn(m))===m||!Ee(t,f)))&&(d?n&&(n[m]!==void 0||n[f]!==void 0)&&(i[m]=ki(d,o,m,void 0,e,!0)):delete i[m]);if(s!==o)for(const m in s)(!t||!Ee(t,m))&&(delete s[m],p=!0)}p&&vt(e,"set","$attrs")}function to(e,t,n,r){const[i,s]=e.propsOptions;let a=!1,o;if(t)for(let d in t){if(ir(d))continue;const p=t[d];let f;i&&Ee(i,f=nn(d))?!s||!s.includes(f)?n[f]=p:(o||(o={}))[f]=p:_r(e.emitsOptions,d)||(!(d in r)||p!==r[d])&&(r[d]=p,a=!0)}if(s){const d=ke(n),p=o||Ce;for(let f=0;f<s.length;f++){const m=s[f];n[m]=ki(i,d,m,p[m],e,!Ee(p,m))}}return a}function ki(e,t,n,r,i,s){const a=e[n];if(a!=null){const o=Ee(a,"default");if(o&&r===void 0){const d=a.default;if(a.type!==Function&&ge(d)){const{propsDefaults:p}=i;n in p?r=p[n]:(Ut(i),r=p[n]=d.call(null,t),Ft())}else r=d}a[0]&&(s&&!o?r=!1:a[1]&&(r===""||r===rn(n))&&(r=!0))}return r}function no(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const s=e.props,a={},o=[];let d=!1;if(!ge(e)){const f=m=>{d=!0;const[w,h]=no(m,t,!0);qe(a,w),h&&o.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!s&&!d)return De(e)&&r.set(e,Qt),Qt;if(he(s))for(let f=0;f<s.length;f++){const m=nn(s[f]);ro(m)&&(a[m]=Ce)}else if(s)for(const f in s){const m=nn(f);if(ro(m)){const w=s[f],h=a[m]=he(w)||ge(w)?{type:w}:Object.assign({},w);if(h){const x=oo(Boolean,h.type),_=oo(String,h.type);h[0]=x>-1,h[1]=_<0||x<_,(x>-1||Ee(h,"default"))&&o.push(m)}}}const p=[a,o];return De(e)&&r.set(e,p),p}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)):ge(t)&&so(t,e)?0:-1}const ao=e=>e[0]==="_"||e==="$stable",xi=e=>he(e)?e.map(ft):[ft(e)],Vl=(e,t,n)=>{if(t._n)return t;const r=pi((...i)=>xi(t(...i)),n);return r._c=!1,r},lo=(e,t,n)=>{const r=e._ctx;for(const i in e){if(ao(i))continue;const s=e[i];if(ge(s))t[i]=Vl(i,s,r);else if(s!=null){const a=xi(s);t[i]=()=>a}}},uo=(e,t)=>{const n=xi(t);e.slots.default=()=>n},Yl=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ke(t),ar(t,"_",n)):lo(t,e.slots={})}else e.slots={},t&&uo(e,t);ar(e.slots,Or,1)},Zl=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,a=Ce;if(r.shapeFlag&32){const o=t._;o?n&&o===1?s=!1:(qe(i,t),!n&&o===1&&delete i._):(s=!t.$stable,lo(t,i)),a=t}else t&&(uo(e,t),a={default:1});if(s)for(const o in i)!ao(o)&&!(o in a)&&delete i[o]};function co(){return{app:null,config:{isNativeTag:wa,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 Jl=0;function Ql(e,t){return function(r,i=null){ge(r)||(r=Object.assign({},r)),i!=null&&!De(i)&&(i=null);const s=co(),a=new Set;let o=!1;const d=s.app={_uid:Jl++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:bu,get config(){return s.config},set config(p){},use(p,...f){return a.has(p)||(p&&ge(p.install)?(a.add(p),p.install(d,...f)):ge(p)&&(a.add(p),p(d,...f))),d},mixin(p){return s.mixins.includes(p)||s.mixins.push(p),d},component(p,f){return f?(s.components[p]=f,d):s.components[p]},directive(p,f){return f?(s.directives[p]=f,d):s.directives[p]},mount(p,f,m){if(!o){const w=Re(r,i);return w.appContext=s,f&&t?t(w,p):e(w,p,m),o=!0,d._container=p,p.__vue_app__=d,Dr(w.component)||w.component.proxy}},unmount(){o&&(e(null,d._container),delete d._container.__vue_app__)},provide(p,f){return s.provides[p]=f,d}};return d}}function Ei(e,t,n,r,i=!1){if(he(e)){e.forEach((w,h)=>Ei(w,t&&(he(t)?t[h]:t),n,r,i));return}if(xr(r)&&!i)return;const s=r.shapeFlag&4?Dr(r.component)||r.component.proxy:r.el,a=i?null:s,{i:o,r:d}=e,p=t&&t.r,f=o.refs===Ce?o.refs={}:o.refs,m=o.setupState;if(p!=null&&p!==d&&(Ue(p)?(f[p]=null,Ee(m,p)&&(m[p]=null)):Fe(p)&&(p.value=null)),ge(d))Bt(d,o,12,[a,f]);else{const w=Ue(d),h=Fe(d);if(w||h){const x=()=>{if(e.f){const _=w?Ee(m,d)?m[d]:f[d]:d.value;i?he(_)&&Yr(_,s):he(_)?_.includes(s)||_.push(s):w?(f[d]=[s],Ee(m,d)&&(m[d]=f[d])):(d.value=[s],e.k&&(f[e.k]=d.value))}else w?(f[d]=a,Ee(m,d)&&(m[d]=a)):h&&(d.value=a,e.k&&(f[e.k]=a))};a?(x.id=-1,et(x,n)):x()}}}const et=Sl;function eu(e){return tu(e)}function tu(e,t){const n=Ia();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:a,createText:o,createComment:d,setText:p,setElementText:f,parentNode:m,nextSibling:w,setScopeId:h=dt,insertStaticContent:x}=e,_=(C,U,u,R=null,O=null,k=null,y=!1,A=null,M=!!U.dynamicChildren)=>{if(C===U)return;C&&!Nt(C,U)&&(R=je(C),z(C,O,k,!0),C=null),U.patchFlag===-2&&(M=!1,U.dynamicChildren=null);const{type:P,ref:B,shapeFlag:K}=U;switch(P){case Ar:E(C,U,u,R);break;case St:v(C,U,u,R);break;case Ti:C==null&&S(U,u,R,y);break;case Ne:D(C,U,u,R,O,k,y,A,M);break;default:K&1?j(C,U,u,R,O,k,y,A,M):K&6?Y(C,U,u,R,O,k,y,A,M):(K&64||K&128)&&P.process(C,U,u,R,O,k,y,A,M,we)}B!=null&&O&&Ei(B,C&&C.ref,k,U||C,!U)},E=(C,U,u,R)=>{if(C==null)r(U.el=o(U.children),u,R);else{const O=U.el=C.el;U.children!==C.children&&p(O,U.children)}},v=(C,U,u,R)=>{C==null?r(U.el=d(U.children||""),u,R):U.el=C.el},S=(C,U,u,R)=>{[C.el,C.anchor]=x(C.children,U,u,R,C.el,C.anchor)},T=({el:C,anchor:U},u,R)=>{let O;for(;C&&C!==U;)O=w(C),r(C,u,R),C=O;r(U,u,R)},F=({el:C,anchor:U})=>{let u;for(;C&&C!==U;)u=w(C),i(C),C=u;i(U)},j=(C,U,u,R,O,k,y,A,M)=>{y=y||U.type==="svg",C==null?q(U,u,R,O,k,y,A,M):G(C,U,O,k,y,A,M)},q=(C,U,u,R,O,k,y,A)=>{let M,P;const{type:B,props:K,shapeFlag:J,transition:V,dirs:re}=C;if(M=C.el=a(C.type,k,K&&K.is,K),J&8?f(M,C.children):J&16&&X(C.children,M,null,R,O,k&&B!=="foreignObject",y,A),re&&Wt(C,null,R,"created"),L(M,C,C.scopeId,y,R),K){for(const l in K)l!=="value"&&!ir(l)&&s(M,l,null,K[l],k,C.children,R,O,xe);"value"in K&&s(M,"value",null,K.value),(P=K.onVnodeBeforeMount)&&wt(P,R,C)}re&&Wt(C,null,R,"beforeMount");const g=(!O||O&&!O.pendingBranch)&&V&&!V.persisted;g&&V.beforeEnter(M),r(M,U,u),((P=K&&K.onVnodeMounted)||g||re)&&et(()=>{P&&wt(P,R,C),g&&V.enter(M),re&&Wt(C,null,R,"mounted")},O)},L=(C,U,u,R,O)=>{if(u&&h(C,u),R)for(let k=0;k<R.length;k++)h(C,R[k]);if(O){let k=O.subTree;if(U===k){const y=O.vnode;L(C,y,y.scopeId,y.slotScopeIds,O.parent)}}},X=(C,U,u,R,O,k,y,A,M=0)=>{for(let P=M;P<C.length;P++){const B=C[P]=A?Pt(C[P]):ft(C[P]);_(null,B,U,u,R,O,k,y,A)}},G=(C,U,u,R,O,k,y)=>{const A=U.el=C.el;let{patchFlag:M,dynamicChildren:P,dirs:B}=U;M|=C.patchFlag&16;const K=C.props||Ce,J=U.props||Ce;let V;u&&Vt(u,!1),(V=J.onVnodeBeforeUpdate)&&wt(V,u,U,C),B&&Wt(U,C,u,"beforeUpdate"),u&&Vt(u,!0);const re=O&&U.type!=="foreignObject";if(P?ee(C.dynamicChildren,P,A,u,R,re,k):y||ae(C,U,A,null,u,R,re,k,!1),M>0){if(M&16)se(A,U,K,J,u,R,O);else if(M&2&&K.class!==J.class&&s(A,"class",null,J.class,O),M&4&&s(A,"style",K.style,J.style,O),M&8){const g=U.dynamicProps;for(let l=0;l<g.length;l++){const c=g[l],I=K[c],N=J[c];(N!==I||c==="value")&&s(A,c,I,N,O,C.children,u,R,xe)}}M&1&&C.children!==U.children&&f(A,U.children)}else!y&&P==null&&se(A,U,K,J,u,R,O);((V=J.onVnodeUpdated)||B)&&et(()=>{V&&wt(V,u,U,C),B&&Wt(U,C,u,"updated")},R)},ee=(C,U,u,R,O,k,y)=>{for(let A=0;A<U.length;A++){const M=C[A],P=U[A],B=M.el&&(M.type===Ne||!Nt(M,P)||M.shapeFlag&70)?m(M.el):u;_(M,P,B,null,R,O,k,y,!0)}},se=(C,U,u,R,O,k,y)=>{if(u!==R){if(u!==Ce)for(const A in u)!ir(A)&&!(A in R)&&s(C,A,u[A],null,y,U.children,O,k,xe);for(const A in R){if(ir(A))continue;const M=R[A],P=u[A];M!==P&&A!=="value"&&s(C,A,P,M,y,U.children,O,k,xe)}"value"in R&&s(C,"value",u.value,R.value)}},D=(C,U,u,R,O,k,y,A,M)=>{const P=U.el=C?C.el:o(""),B=U.anchor=C?C.anchor:o("");let{patchFlag:K,dynamicChildren:J,slotScopeIds:V}=U;V&&(A=A?A.concat(V):V),C==null?(r(P,u,R),r(B,u,R),X(U.children,u,B,O,k,y,A,M)):K>0&&K&64&&J&&C.dynamicChildren?(ee(C.dynamicChildren,J,u,O,k,y,A),(U.key!=null||O&&U===O.subTree)&&Si(C,U,!0)):ae(C,U,u,B,O,k,y,A,M)},Y=(C,U,u,R,O,k,y,A,M)=>{U.slotScopeIds=A,C==null?U.shapeFlag&512?O.ctx.activate(U,u,R,y,M):b(U,u,R,O,k,y,M):Z(C,U,M)},b=(C,U,u,R,O,k,y)=>{const A=C.component=cu(C,R,O);if(Vs(C)&&(A.ctx.renderer=we),du(A),A.asyncDep){if(O&&O.registerDep(A,le),!C.el){const M=A.subTree=Re(St);v(null,M,U,u)}return}le(A,C,U,u,O,k,y)},Z=(C,U,u)=>{const R=U.component=C.component;if(wl(C,U,u))if(R.asyncDep&&!R.asyncResolved){Q(R,U,u);return}else R.next=U,pl(R.update),R.update();else U.el=C.el,R.vnode=U},le=(C,U,u,R,O,k,y)=>{const A=()=>{if(C.isMounted){let{next:B,bu:K,u:J,parent:V,vnode:re}=C,g=B,l;Vt(C,!1),B?(B.el=re.el,Q(C,B,y)):B=re,K&&or(K),(l=B.props&&B.props.onVnodeBeforeUpdate)&&wt(l,V,B,re),Vt(C,!0);const c=fi(C),I=C.subTree;C.subTree=c,_(I,c,m(I.el),je(I),C,O,k),B.el=c.el,g===null&&mi(C,c.el),J&&et(J,O),(l=B.props&&B.props.onVnodeUpdated)&&et(()=>wt(l,V,B,re),O)}else{let B;const{el:K,props:J}=U,{bm:V,m:re,parent:g}=C,l=xr(U);if(Vt(C,!1),V&&or(V),!l&&(B=J&&J.onVnodeBeforeMount)&&wt(B,g,U),Vt(C,!0),K&&Ae){const c=()=>{C.subTree=fi(C),Ae(K,C.subTree,C,O,null)};l?U.type.__asyncLoader().then(()=>!C.isUnmounted&&c()):c()}else{const c=C.subTree=fi(C);_(null,c,u,R,C,O,k),U.el=c.el}if(re&&et(re,O),!l&&(B=J&&J.onVnodeMounted)){const c=U;et(()=>wt(B,g,c),O)}(U.shapeFlag&256||g&&xr(g.vnode)&&g.vnode.shapeFlag&256)&&C.a&&et(C.a,O),C.isMounted=!0,U=u=R=null}},M=C.effect=new ri(A,()=>hi(P),C.scope),P=C.update=()=>M.run();P.id=C.uid,Vt(C,!0),P()},Q=(C,U,u)=>{U.component=C;const R=C.vnode.props;C.vnode=U,C.next=null,ql(C,U.props,R,u),Zl(C,U.children,u),sn(),zs(),on()},ae=(C,U,u,R,O,k,y,A,M=!1)=>{const P=C&&C.children,B=C?C.shapeFlag:0,K=U.children,{patchFlag:J,shapeFlag:V}=U;if(J>0){if(J&128){de(P,K,u,R,O,k,y,A,M);return}else if(J&256){te(P,K,u,R,O,k,y,A,M);return}}V&8?(B&16&&xe(P,O,k),K!==P&&f(u,K)):B&16?V&16?de(P,K,u,R,O,k,y,A,M):xe(P,O,k,!0):(B&8&&f(u,""),V&16&&X(K,u,R,O,k,y,A,M))},te=(C,U,u,R,O,k,y,A,M)=>{C=C||Qt,U=U||Qt;const P=C.length,B=U.length,K=Math.min(P,B);let J;for(J=0;J<K;J++){const V=U[J]=M?Pt(U[J]):ft(U[J]);_(C[J],V,u,null,O,k,y,A,M)}P>B?xe(C,O,k,!0,!1,K):X(U,u,R,O,k,y,A,M,K)},de=(C,U,u,R,O,k,y,A,M)=>{let P=0;const B=U.length;let K=C.length-1,J=B-1;for(;P<=K&&P<=J;){const V=C[P],re=U[P]=M?Pt(U[P]):ft(U[P]);if(Nt(V,re))_(V,re,u,null,O,k,y,A,M);else break;P++}for(;P<=K&&P<=J;){const V=C[K],re=U[J]=M?Pt(U[J]):ft(U[J]);if(Nt(V,re))_(V,re,u,null,O,k,y,A,M);else break;K--,J--}if(P>K){if(P<=J){const V=J+1,re=V<B?U[V].el:R;for(;P<=J;)_(null,U[P]=M?Pt(U[P]):ft(U[P]),u,re,O,k,y,A,M),P++}}else if(P>J)for(;P<=K;)z(C[P],O,k,!0),P++;else{const V=P,re=P,g=new Map;for(P=re;P<=J;P++){const ye=U[P]=M?Pt(U[P]):ft(U[P]);ye.key!=null&&g.set(ye.key,P)}let l,c=0;const I=J-re+1;let N=!1,$=0;const W=new Array(I);for(P=0;P<I;P++)W[P]=0;for(P=V;P<=K;P++){const ye=C[P];if(c>=I){z(ye,O,k,!0);continue}let fe;if(ye.key!=null)fe=g.get(ye.key);else for(l=re;l<=J;l++)if(W[l-re]===0&&Nt(ye,U[l])){fe=l;break}fe===void 0?z(ye,O,k,!0):(W[fe-re]=P+1,fe>=$?$=fe:N=!0,_(ye,U[fe],u,null,O,k,y,A,M),c++)}const pe=N?nu(W):Qt;for(l=pe.length-1,P=I-1;P>=0;P--){const ye=re+P,fe=U[ye],Te=ye+1<B?U[ye+1].el:R;W[P]===0?_(null,fe,u,Te,O,k,y,A,M):N&&(l<0||P!==pe[l]?H(fe,u,Te,2):l--)}}},H=(C,U,u,R,O=null)=>{const{el:k,type:y,transition:A,children:M,shapeFlag:P}=C;if(P&6){H(C.component.subTree,U,u,R);return}if(P&128){C.suspense.move(U,u,R);return}if(P&64){y.move(C,U,u,we);return}if(y===Ne){r(k,U,u);for(let K=0;K<M.length;K++)H(M[K],U,u,R);r(C.anchor,U,u);return}if(y===Ti){T(C,U,u);return}if(R!==2&&P&1&&A)if(R===0)A.beforeEnter(k),r(k,U,u),et(()=>A.enter(k),O);else{const{leave:K,delayLeave:J,afterLeave:V}=A,re=()=>r(k,U,u),g=()=>{K(k,()=>{re(),V&&V()})};J?J(k,re,g):g()}else r(k,U,u)},z=(C,U,u,R=!1,O=!1)=>{const{type:k,props:y,ref:A,children:M,dynamicChildren:P,shapeFlag:B,patchFlag:K,dirs:J}=C;if(A!=null&&Ei(A,null,u,C,!0),B&256){U.ctx.deactivate(C);return}const V=B&1&&J,re=!xr(C);let g;if(re&&(g=y&&y.onVnodeBeforeUnmount)&&wt(g,U,C),B&6)ie(C.component,u,R);else{if(B&128){C.suspense.unmount(u,R);return}V&&Wt(C,null,U,"beforeUnmount"),B&64?C.type.remove(C,U,u,O,we,R):P&&(k!==Ne||K>0&&K&64)?xe(P,U,u,!1,!0):(k===Ne&&K&384||!O&&B&16)&&xe(M,U,u),R&&ue(C)}(re&&(g=y&&y.onVnodeUnmounted)||V)&&et(()=>{g&&wt(g,U,C),V&&Wt(C,null,U,"unmounted")},u)},ue=C=>{const{type:U,el:u,anchor:R,transition:O}=C;if(U===Ne){oe(u,R);return}if(U===Ti){F(C);return}const k=()=>{i(u),O&&!O.persisted&&O.afterLeave&&O.afterLeave()};if(C.shapeFlag&1&&O&&!O.persisted){const{leave:y,delayLeave:A}=O,M=()=>y(u,k);A?A(C.el,k,M):M()}else k()},oe=(C,U)=>{let u;for(;C!==U;)u=w(C),i(C),C=u;i(U)},ie=(C,U,u)=>{const{bum:R,scope:O,update:k,subTree:y,um:A}=C;R&&or(R),O.stop(),k&&(k.active=!1,z(y,C,U,u)),A&&et(A,U),et(()=>{C.isUnmounted=!0},U),U&&U.pendingBranch&&!U.isUnmounted&&C.asyncDep&&!C.asyncResolved&&C.suspenseId===U.pendingId&&(U.deps--,U.deps===0&&U.resolve())},xe=(C,U,u,R=!1,O=!1,k=0)=>{for(let y=k;y<C.length;y++)z(C[y],U,u,R,O)},je=C=>C.shapeFlag&6?je(C.component.subTree):C.shapeFlag&128?C.suspense.next():w(C.anchor||C.el),me=(C,U,u)=>{C==null?U._vnode&&z(U._vnode,null,null,!0):_(U._vnode||null,C,U,null,null,null,u),zs(),Ls(),U._vnode=C},we={p:_,um:z,m:H,r:ue,mt:b,mc:X,pc:ae,pbc:ee,n:je,o:e};let Be,Ae;return t&&([Be,Ae]=t(we)),{render:me,hydrate:Be,createApp:Ql(me,Be)}}function Vt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Si(e,t,n=!1){const r=e.children,i=t.children;if(he(r)&&he(i))for(let s=0;s<r.length;s++){const a=r[s];let o=i[s];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[s]=Pt(i[s]),o.el=a.el),n||Si(a,o)),o.type===Ar&&(o.el=a.el)}}function nu(e){const t=e.slice(),n=[0];let r,i,s,a,o;const d=e.length;for(r=0;r<d;r++){const p=e[r];if(p!==0){if(i=n[n.length-1],e[i]<p){t[r]=i,n.push(r);continue}for(s=0,a=n.length-1;s<a;)o=s+a>>1,e[n[o]]<p?s=o+1:a=o;p<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,a=n[s-1];s-- >0;)n[s]=a,a=t[a];return n}const ru=e=>e.__isTeleport,Ln=e=>e&&(e.disabled||e.disabled===""),ho=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,Ii=(e,t)=>{const n=e&&e.to;return Ue(n)?t?t(n):null:n},iu={__isTeleport:!0,process(e,t,n,r,i,s,a,o,d,p){const{mc:f,pc:m,pbc:w,o:{insert:h,querySelector:x,createText:_,createComment:E}}=p,v=Ln(t.props);let{shapeFlag:S,children:T,dynamicChildren:F}=t;if(e==null){const j=t.el=_(""),q=t.anchor=_("");h(j,n,r),h(q,n,r);const L=t.target=Ii(t.props,x),X=t.targetAnchor=_("");L&&(h(X,L),a=a||ho(L));const G=(ee,se)=>{S&16&&f(T,ee,se,i,s,a,o,d)};v?G(n,q):L&&G(L,X)}else{t.el=e.el;const j=t.anchor=e.anchor,q=t.target=e.target,L=t.targetAnchor=e.targetAnchor,X=Ln(e.props),G=X?n:q,ee=X?j:L;if(a=a||ho(q),F?(w(e.dynamicChildren,F,G,i,s,a,o),Si(e,t,!0)):d||m(e,t,G,ee,i,s,a,o,!1),v)X||Ir(t,n,j,p,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const se=t.target=Ii(t.props,x);se&&Ir(t,se,null,p,0)}else X&&Ir(t,q,L,p,1)}po(t)},remove(e,t,n,r,{um:i,o:{remove:s}},a){const{shapeFlag:o,children:d,anchor:p,targetAnchor:f,target:m,props:w}=e;if(m&&s(f),(a||!Ln(w))&&(s(p),o&16))for(let h=0;h<d.length;h++){const x=d[h];i(x,t,n,!0,!!x.dynamicChildren)}},move:Ir,hydrate:su};function Ir(e,t,n,{o:{insert:r},m:i},s=2){s===0&&r(e.targetAnchor,t,n);const{el:a,anchor:o,shapeFlag:d,children:p,props:f}=e,m=s===2;if(m&&r(a,t,n),(!m||Ln(f))&&d&16)for(let w=0;w<p.length;w++)i(p[w],t,n,2);m&&r(o,t,n)}function su(e,t,n,r,i,s,{o:{nextSibling:a,parentNode:o,querySelector:d}},p){const f=t.target=Ii(t.props,d);if(f){const m=f._lpa||f.firstChild;if(t.shapeFlag&16)if(Ln(t.props))t.anchor=p(a(e),t,o(e),n,r,i,s),t.targetAnchor=m;else{t.anchor=a(e);let w=m;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}p(m,t,f,n,r,i,s)}po(t)}return t.anchor&&a(t.anchor)}const Tr=iu;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 Ne=Symbol(void 0),Ar=Symbol(void 0),St=Symbol(void 0),Ti=Symbol(void 0),Hn=[];let at=null;function ce(e=!1){Hn.push(at=e?null:[])}function fo(){Hn.pop(),at=Hn[Hn.length-1]||null}let dn=1;function mo(e){dn+=e}function go(e){return e.dynamicChildren=dn>0?at||Qt:null,fo(),dn>0&&at&&at.push(e),e}function _e(e,t,n,r,i,s){return go(ne(e,t,n,r,i,s,!0))}function lt(e,t,n,r,i){return go(Re(e,t,n,r,i,!0))}function _o(e){return e?e.__v_isVNode===!0:!1}function Nt(e,t){return e.type===t.type&&e.key===t.key}const Or="__vInternal",bo=({key:e})=>e!=null?e:null,Cr=({ref:e,ref_key:t,ref_for:n})=>e!=null?Ue(e)||Fe(e)||ge(e)?{i:ot,r:e,k:t,f:!!n}:e:null;function ne(e,t=null,n=null,r=0,i=null,s=e===Ne?0:1,a=!1,o=!1){const d={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&bo(t),ref:t&&Cr(t),scopeId:br,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ot};return o?(Ai(d,n),s&128&&e.normalize(d)):n&&(d.shapeFlag|=Ue(n)?8:16),dn>0&&!a&&at&&(d.patchFlag>0||s&6)&&d.patchFlag!==32&&at.push(d),d}const Re=ou;function ou(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===zl)&&(e=St),_o(e)){const o=hn(e,t,!0);return n&&Ai(o,n),dn>0&&!s&&at&&(o.shapeFlag&6?at[at.indexOf(e)]=o:at.push(o)),o.patchFlag|=-2,o}if(mu(e)&&(e=e.__vccOpts),t){t=au(t);let{class:o,style:d}=t;o&&!Ue(o)&&(t.class=gt(o)),De(d)&&(Ds(d)&&!he(d)&&(d=qe({},d)),t.style=st(d))}const a=Ue(e)?1:yl(e)?128:ru(e)?64:De(e)?4:ge(e)?2:0;return ne(e,t,n,r,i,a,s,!0)}function au(e){return e?Ds(e)||Or in e?qe({},e):e:null}function hn(e,t,n=!1){const{props:r,ref:i,patchFlag:s,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&&i?he(i)?i.concat(Cr(t)):[i,Cr(t)]:Cr(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ne?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&hn(e.ssContent),ssFallback:e.ssFallback&&hn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function It(e=" ",t=0){return Re(Ar,null,e,t)}function ut(e="",t=!1){return t?(ce(),lt(St,null,e)):Re(St,null,e)}function ft(e){return e==null||typeof e=="boolean"?Re(St):he(e)?Re(Ne,null,e.slice()):typeof e=="object"?Pt(e):Re(Ar,null,String(e))}function Pt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:hn(e)}function Ai(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 i=t.default;i&&(i._c&&(i._d=!1),Ai(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(Or in t)?t._ctx=ot:i===3&&ot&&(ot.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ge(t)?(t={default:t,_ctx:ot},n=32):(t=String(t),r&64?(n=16,t=[It(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 i in r)if(i==="class")t.class!==r.class&&(t.class=gt([t.class,r.class]));else if(i==="style")t.style=st([t.style,r.style]);else if(rr(i)){const s=t[i],a=r[i];a&&s!==a&&!(he(s)&&s.includes(a))&&(t[i]=s?[].concat(s,a):a)}else i!==""&&(t[i]=r[i])}return t}function wt(e,t,n,r=null){pt(e,t,7,[n,r])}const lu=co();let uu=0;function cu(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||lu,s={uid:uu++,vnode:e,type:r,parent:t,appContext:i,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(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:no(r,i),emitsOptions:Gs(r,i),emit:null,emitted:null,propsDefaults:Ce,inheritAttrs:r.inheritAttrs,ctx:Ce,data:Ce,props:Ce,attrs:Ce,slots:Ce,refs:Ce,setupState:Ce,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=ml.bind(null,s),e.ce&&e.ce(s),s}let ze=null;const yo=()=>ze||ot,Ut=e=>{ze=e,e.scope.on()},Ft=()=>{ze&&ze.scope.off(),ze=null};function vo(e){return e.vnode.shapeFlag&4}let Gn=!1;function du(e,t=!1){Gn=t;const{props:n,children:r}=e.vnode,i=vo(e);Wl(e,n,i,t),Yl(e,r);const s=i?hu(e,t):void 0;return Gn=!1,s}function hu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ln(new Proxy(e.ctx,Ll));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?fu(e):null;Ut(e),sn();const s=Bt(r,e,0,[e.props,i]);if(on(),Ft(),Zr(s)){if(s.then(Ft,Ft),t)return s.then(a=>{Oi(e,a,t)}).catch(a=>{Nn(a,e,0)});e.asyncDep=s}else Oi(e,s,t)}else xo(e,t)}function Oi(e,t,n){ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:De(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 i=r.template||yi(e).template;if(i){const{isCustomElement:s,compilerOptions:a}=e.appContext.config,{delimiters:o,compilerOptions:d}=r,p=qe(qe({isCustomElement:s,delimiters:o},a),d);r.render=ko(i,p)}}e.render=r.render||dt}Ut(e),sn(),Hl(e),on(),Ft()}function pu(e){return new Proxy(e.attrs,{get(t,n){return Je(e,"get","$attrs"),t[n]}})}function fu(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=pu(e))},slots:e.slots,emit:e.emit,expose:t}}function Dr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(js(ln(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in zn)return zn[n](e)},has(t,n){return n in t||n in zn}}))}function mu(e){return ge(e)&&"__vccOpts"in e}const Rr=(e,t)=>cl(e,t,Gn);function Ci(e){const t=yo();let n=e();return Ft(),Zr(n)&&(n=n.catch(r=>{throw Ut(t),r})),[n,()=>Ut(t)]}const gu=Symbol(""),_u=()=>Mn(gu),bu="3.2.47",wu="http://www.w3.org/2000/svg",Yt=typeof document!="undefined"?document:null,Eo=Yt&&Yt.createElement("template"),yu={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 i=t?Yt.createElementNS(wu,e):Yt.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Yt.createTextNode(e),createComment:e=>Yt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Yt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,s){const a=n?n.previousSibling:t.lastChild;if(i&&(i===s||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{Eo.innerHTML=r?`<svg>${e}</svg>`:e;const o=Eo.content;if(r){const d=o.firstChild;for(;d.firstChild;)o.appendChild(d.firstChild);o.removeChild(d)}t.insertBefore(o,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function vu(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 ku(e,t,n){const r=e.style,i=Ue(n);if(n&&!i){if(t&&!Ue(t))for(const s in t)n[s]==null&&Di(r,s,"");for(const s in n)Di(r,s,n[s])}else{const s=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=s)}}const So=/\s*!important$/;function Di(e,t,n){if(he(n))n.forEach(r=>Di(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=xu(e,t);So.test(n)?e.setProperty(rn(r),n.replace(So,""),"important"):e[r]=n}}const Io=["Webkit","Moz","ms"],Ri={};function xu(e,t){const n=Ri[t];if(n)return n;let r=nn(t);if(r!=="filter"&&r in e)return Ri[t]=r;r=ls(r);for(let i=0;i<Io.length;i++){const s=Io[i]+r;if(s in e)return Ri[t]=s}return t}const To="http://www.w3.org/1999/xlink";function Eu(e,t,n,r,i){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(To,t.slice(6,t.length)):e.setAttributeNS(To,t,n);else{const s=_a(t);n==null||s&&!rs(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function Su(e,t,n,r,i,s,a){if(t==="innerHTML"||t==="textContent"){r&&a(r,i,s),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const d=n==null?"":n;(e.value!==d||e.tagName==="OPTION")&&(e.value=d),n==null&&e.removeAttribute(t);return}let o=!1;if(n===""||n==null){const d=typeof e[t];d==="boolean"?n=rs(n):n==null&&d==="string"?(n="",o=!0):d==="number"&&(n=0,o=!0)}try{e[t]=n}catch(d){}o&&e.removeAttribute(t)}function Mt(e,t,n,r){e.addEventListener(t,n,r)}function Iu(e,t,n,r){e.removeEventListener(t,n,r)}function Tu(e,t,n,r,i=null){const s=e._vei||(e._vei={}),a=s[t];if(r&&a)a.value=r;else{const[o,d]=Au(t);if(r){const p=s[t]=Du(r,i);Mt(e,o,p,d)}else a&&(Iu(e,o,a,d),s[t]=void 0)}}const Ao=/(?:Once|Passive|Capture)$/;function Au(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):rn(e.slice(2)),t]}let Bi=0;const Ou=Promise.resolve(),Cu=()=>Bi||(Ou.then(()=>Bi=0),Bi=Date.now());function Du(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;pt(Ru(r,n.value),t,5,[r])};return n.value=e,n.attached=Cu(),n}function Ru(e,t){if(he(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const Oo=/^on[a-z]/,Bu=(e,t,n,r,i=!1,s,a,o,d)=>{t==="class"?vu(e,r,i):t==="style"?ku(e,n,r):rr(t)?Vr(t)||Tu(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ju(e,t,r,i))?Su(e,t,r,s,a,o,d):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Eu(e,t,r,i))};function ju(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Oo.test(t)&&ge(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Oo.test(t)&&Ue(n)?!1:t in e}const pn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return he(t)?n=>or(t,n):t};function Nu(e){e.target.composing=!0}function Co(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Br={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=pn(i);const s=r||i.props&&i.props.type==="number";Mt(e,t?"change":"input",a=>{if(a.target.composing)return;let o=e.value;n&&(o=o.trim()),s&&(o=lr(o)),e._assign(o)}),n&&Mt(e,"change",()=>{e.value=e.value.trim()}),t||(Mt(e,"compositionstart",Nu),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:i}},s){if(e._assign=pn(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(i||e.type==="number")&&lr(e.value)===t))return;const a=t==null?"":t;e.value!==a&&(e.value=a)}},$n={deep:!0,created(e,t,n){e._assign=pn(n),Mt(e,"change",()=>{const r=e._modelValue,i=Kn(e),s=e.checked,a=e._assign;if(he(r)){const o=qr(r,i),d=o!==-1;if(s&&!d)a(r.concat(i));else if(!s&&d){const p=[...r];p.splice(o,1),a(p)}}else if(tn(r)){const o=new Set(r);s?o.add(i):o.delete(i),a(o)}else a(Bo(e,s))})},mounted:Do,beforeUpdate(e,t,n){e._assign=pn(n),Do(e,t,n)}};function Do(e,{value:t,oldValue:n},r){e._modelValue=t,he(t)?e.checked=qr(t,r.props.value)>-1:tn(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=On(t,Bo(e,!0)))}const ji={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=tn(t);Mt(e,"change",()=>{const s=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?lr(Kn(a)):Kn(a));e._assign(e.multiple?i?new Set(s):s:s[0])}),e._assign=pn(r)},mounted(e,{value:t}){Ro(e,t)},beforeUpdate(e,t,n){e._assign=pn(n)},updated(e,{value:t}){Ro(e,t)}};function Ro(e,t){const n=e.multiple;if(!(n&&!he(t)&&!tn(t))){for(let r=0,i=e.options.length;r<i;r++){const s=e.options[r],a=Kn(s);if(n)he(t)?s.selected=qr(t,a)>-1:s.selected=t.has(a);else if(On(Kn(s),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Kn(e){return"_value"in e?e._value:e.value}function Bo(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Pu=["ctrl","shift","alt","meta"],Uu={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)=>Pu.some(n=>e[`${n}Key`]&&!t.includes(n))},jr=(e,t)=>(n,...r)=>{for(let i=0;i<t.length;i++){const s=Uu[t[i]];if(s&&s(n,t))return}return e(n,...r)},jo={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Xn(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),Xn(e,!0),r.enter(e)):r.leave(e,()=>{Xn(e,!1)}):Xn(e,t))},beforeUnmount(e,{value:t}){Xn(e,t)}};function Xn(e,t){e.style.display=t?e._vod:"none"}const Fu=qe({patchProp:Bu},yu);let No;function Mu(){return No||(No=eu(Fu))}const zu=(...e)=>{const t=Mu().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=Lu(r);if(!i)return;const s=t._component;!ge(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.innerHTML="";const a=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},t};function Lu(e){return Ue(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 Uo(e,t,n){const r=e.querySelector("thead"),i=e.querySelector("tbody");r==null||i==null||(Fo(r,t,n),Fo(i,t,n))}function Fo(e,t,n){const r=e.children;for(let i=0;i<r.length;i++){const s=r[i];Hu(s,t,n)}}function Hu(e,t,n){const r=e.children;if(r.length!=1){t.forEach(i=>{if(i.length>1){const s=r[i[0]];for(let a=1;a<i.length;a++){const o=i[a];s.innerHTML+="<br>"+r[o].innerHTML}}});for(let i=n.length-1;i>=0;i--){const s=n[i];r[s].style.display="none"}}}let Mo;const zo="加载中..";let fn=null;function Tt(e=0,t=zo){fn===null&&(fn=document.querySelector("#nforum_tips")),e>0&&(fn.style.display="block",fn.innerHTML=t),clearTimeout(Mo),Mo=setTimeout(()=>{fn.style.display="none",fn.innerHTML=zo},e*1e3)}class Lo{constructor(t){Ge(this,"record",kt({}));Ge(this,"getByIndexKey",(t,n)=>be(this,null,function*(){return yield rt.waitForDB(),(yield rt.getByIndexKey(this.tableName,t,n)).map(i=>this.wrap(i))}));this.tableName=t}importAll(t){return be(this,null,function*(){yield this.beforeImport();const n=[];for(let r=0;r<t.length;r++){const i=t[r];(yield this.checkToImport(i))&&(this.updateRecord(i),n.push(i))}yield rt.saveAll(n,this.tableName),yield this.afterImport(n)})}beforeImport(){return be(this,null,function*(){})}afterImport(t){return be(this,null,function*(){console.log("完成导入"+this.tableName+"数据"+t.length+"条"),Tt(2,"导入"+this.tableName+"数据"+t.length+"条")})}checkToImport(t){return be(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 _n[this.tableName].class(t)}getRecordKey(t){const n=_n[this.tableName].keyPath;return t[n]}fetchOne(t){return be(this,null,function*(){yield rt.waitForDB();const n=yield rt.get(this.tableName,t);return n?this.wrap(n):this.creatNew(t)})}fetchAll(){return be(this,null,function*(){return yield rt.waitForDB(),(yield rt.getAll(this.tableName)).map(n=>this.wrap(n))})}}class Wn extends Lo{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 be(this,null,function*(){if(this.pending.has(n))return new Promise((r,i)=>{setTimeout(()=>{this.get(n).then(s=>{r(s)}).catch(i)},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 Ni extends Lo{updateRecord(t){this.record[this.getRecordKey(t)]=this.wrap(t)}exportAll(){return Object.values(this.record)}init(){return be(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 qn extends Wn{get(t,n){return be(this,null,function*(){const r=yield Kr(qn.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 er=class extends Se{constructor(n,r){super();Ge(this,"pair");Ge(this,"state",!1);this.pair=r?er.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(er.separator);if(r.length==2)return r;throw new Error("id格式错误")}getIDs(n=this){return er.getIDs(n)}enable(){this.state=!0,this.save()}disable(){this.state=!1,this.save()}};let mn=er;Ge(mn,"separator","|");class Gu extends Ni{importMajias(t){return be(this,null,function*(){for(let n=0;n<t.length;n++){const r=t[n],[i,s]=mn.getIDs(r),a=this.get(i);Tt(1,`导入${i}马甲`),r.state?yield a.addMajia(s):yield a.delMajia(s)}})}}const zt=new Gu("cachedMajiaTable");class $u extends Se{constructor(t,n=[],r=[]){super(),this.id=t,this.majias=n,this.relativeIDs=r}addMajia(t){return be(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 be(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 be(this,null,function*(){let n=[];for(const r of t){n.push(r);const i=this.getMajiaUser(r).relativeIDs;n=n.concat(i)}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 i=0;i<r.length;i++){const s=r[i];!this.relativeIDs.includes(s)&&this.relativeIDs.push(s)}}return this.relativeIDs.shift(),this.save()}getMajiaUser(t){return zt.get(t)}}const Gh="",$h="",Kh="",Xh="",Me={host:location.host,base:location.origin,onMobile:!0,PROJECT_NAME:"smth_to_app",PROJECT_CONFIG_STORAGE_KEY:"newsmth_script_config",cssConfig:{fontSize:12},longSwipeDistance:200,longSwipeDirection:"up",frameConfig:{component:[{el:"#top_head",name:"顶部",show:!0},{el:"#bot_foot",name:"底部",show:!1}]},mainpageConfig:{section:[{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:".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}]},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):{};Object.assign(this,t)}};class Ku extends Wn{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 s=document.querySelectorAll("#body>.b-content>a");if(s.length==0)return;const a=parseInt(s[s.length-1].name.substr(1)),o={p:parseInt(r[3]?r[3]:"1"),pos:a,scrollY:window.scrollY};this.get(r[1]).then(d=>{d.update(o)})}}const Zt=new Ku;class Pi extends Ni{getBlacklist(){const t=[];return Object.values(this.record).forEach(n=>{n.showUser()||t.push(n.id)}),t}init(){return be(this,null,function*(){yield Kr(Pi.prototype,this,"init").call(this),Vn.updateBlacklistStyle()})}}const Lt=new Pi("stateTable"),Vn={init:function(){if(!Me.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}=Me,i=e.section.concat(n.component).concat(r.func);let s="html{font-size:"+t.fontSize+"px}";i.forEach(a=>{a.show||(s+=a.el+"{display:none}")}),this.styleSheet.appendChild(document.createTextNode(s)),document.head.appendChild(this.styleSheet),document.head.appendChild(this.blacklistStyle)},updateBlacklistStyle:function(){const e=Lt.getBlacklist();let t="";e.forEach(n=>{t+=`#body table.article[${Me.PROJECT_NAME}-id="${n}"]{display:none}`,t+=`#body table.board-list tr[${Me.PROJECT_NAME}-id="${n}"]{display:none}`}),this.blacklistStyle.innerText=t},pxToRem:function(){if(!Me.onMobile)return;const e=document.querySelector("#body>style");e!=null&&(e.innerHTML=Xu(e.innerHTML))},addVisitedLinkStyle:function(e,t){const n=Zt.getTopicUri(e.href);n&&Zt.get(n).then(r=>{t<=r.pos&&(e.style.opacity="0.5"),e.setAttribute("read",`(${r.pos+1}/${t+1})`)})}};function Xu(e){const t=/([0-9]+)px/g;return e.replace(t,(n,r)=>(parseInt(r)/10).toFixed(1)+"rem")}const In=class extends Se{constructor(t,n=0){super(),this.id=t,this.state=n}showUser(){return(In.hideUser&this.state)===0}showTag(){return(In.hideTag&this.state)===0}switchShowUser(){this.state^=In.hideUser,Vn.updateBlacklistStyle(),this.save()}switchShowTag(){this.state^=In.hideTag,this.save()}};let Yn=In;Ge(Yn,"hideUser",1),Ge(Yn,"hideTag",2);class Wu extends Se{constructor(t,n=0,r={}){super(),this.id=t,this.score=n,this.tags=r}modify(t,n,r=!0){const i=this.tags;Object.prototype.hasOwnProperty.call(i,t)||(i[t]=0),i[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(([i,s])=>{this.modify(i,s)})}),n&&this.save(),this}}class qu 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 qn("articleTable");class Ui extends qn{constructor(){super(...arguments);Ge(this,"userCache",{});Ge(this,"getByID",n=>be(this,null,function*(){return Object.prototype.hasOwnProperty.call(this.userCache,n)||(this.userCache[n]={}),(yield this.getByIndexKey("id",n)).forEach(i=>{this.addRecord(i.articleUri,i),this.addToUserCache(i)}),this.userCache[n]}))}get(n,r=""){return be(this,null,function*(){const i=yield Kr(Ui.prototype,this,"get").call(this,n,r);return this.addToUserCache(i),i})}addToUserCache(n){const[r,i]=[n.id,n.articleUri];Object.prototype.hasOwnProperty.call(this.userCache,r)||(this.userCache[r]={}),Object.prototype.hasOwnProperty.call(this.userCache[r],i)||(this.userCache[r][i]=n)}afterImport(n){return super.afterImport(n),At.importArticleTags(n)}}const Zn=new Ui("tagTable");class Vu extends Ni{importArticleTags(t){return be(this,null,function*(){const n=[],r=[];for(let i=0;i<t.length;i++){const s=t[i].id;if(!r.includes(s)){r.push(s),Tt(1,`导入${s}标签`);const a=yield Zn.getByID(s),o=this.get(s).recompute(Object.values(a),!1);n.push(o)}}yield rt.saveAll(n,this.tableName)})}}const At=new Vu("cachedTagTable");class Yu extends Wn{constructor(){super(...arguments);Ge(this,"keys",[])}beforeImport(){return be(this,null,function*(){this.keys=yield rt.getAllKeys(this.tableName)})}checkToImport(n){return be(this,null,function*(){return!this.keys.includes(n.imgUri)})}}const gn=new Yu("imgTable"),Ho=new qn("likeTable");class Zu extends Wn{afterImport(t){return super.afterImport(t),zt.importMajias(t)}get(t,n){const r=n?mn.createPairID(t,n):t;return super.get(r)}}const Fi=new Zu("majiaTable");class Ju extends Wn{checkToImport(t){return be(this,null,function*(){const n=yield this.get(t.id),r=Object.values(t.IPs).reduce((s,a)=>s+a,0),i=Object.values(n.IPs).reduce((s,a)=>s+a,0);return r>i})}}const Mi=new Ju("ipTable"),_n={stateTable:{comment:"名单",class:Yn,keyPath:"id",index:[]},articleTable:{comment:"文章",class:Pe,keyPath:"articleUri",index:[{key:"id",unique:!1}]},tagTable:{comment:"标签",class:Xr,keyPath:"articleUri",index:[{key:"id",unique:!1}]},likeTable:{comment:"like",class:qu,keyPath:"uri",index:[{key:"id",unique:!1}]},topicTable:{comment:"浏览记录",class:Wr,keyPath:"topicUri",index:[]},imgTable:{comment:"图片",class:Tn,keyPath:"imgUri",index:[]},ipTable:{comment:"ip统计",class:nr,keyPath:"id",index:[]},majiaTable:{comment:"马甲",class:mn,keyPath:"pair",index:[]},cachedMajiaTable:{comment:"马甲缓存",class:$u,keyPath:"id",index:[]},cachedTagTable:{comment:"标签缓存",class:Wu,keyPath:"id",index:[]}},zi={stateTable:Lt,articleTable:Nr,tagTable:Zn,likeTable:Ho,topicTable:Zt,imgTable:gn,ipTable:Mi,majiaTable:Fi,cachedMajiaTable:zt,cachedTagTable:At},bn="fileTable",Li={ipDB:"ip"};Object.freeze(_n),Object.freeze(zi),Object.freeze(Li);function Qu(e){const t=Object.entries(_n);for(let n=0;n<t.length;n++){const[r,i]=t[n];if(e instanceof i.class)return r}throw new Error("对象类型错误")}let Ze,Hi=!1;function Go(){if(!Hi)return new Promise(e=>{setTimeout(()=>be(this,null,function*(){yield Go(),e()}),10)})}function ec(){return Hi=!1,new Promise((e,t)=>{const n=indexedDB.open("newsmthScriptDatabase",1);n.onerror=()=>{t("failed to open indexedDB")},n.onsuccess=()=>{Ze=n.result,Hi=!0,e(Ze)},n.onupgradeneeded=r=>{Ze=r.target.result,Ze.objectStoreNames.contains(bn)||Ze.createObjectStore(bn),Object.entries(_n).forEach(([i,s])=>{if(!Ze.objectStoreNames.contains(i)){const a=Ze.createObjectStore(i,{keyPath:s.keyPath});a.createIndex("update_time","u"),s.index.forEach(o=>{a.createIndex(o.key,o.key,{unique:o.unique})})}})}})}function tc(e,t){return new Promise((n,r)=>{const i=Ze.transaction([bn],"readwrite").objectStore(bn).put(e,t);i.onerror=r,i.onsuccess=n})}function nc(e){return new Promise((t,n)=>{const r=Ze.transaction([bn]).objectStore(bn).get(e);r.onerror=n,r.onsuccess=function(){t(r.result)}})}function rc(e,t){const n=t||Qu(e);return new Promise((r,i)=>{e.u=Date.now();const s=Ze.transaction([n],"readwrite").objectStore(n).put(ke(e));s.onerror=i,s.onsuccess=r})}function ic(e,t){return new Promise((n,r)=>{const i=Ze.transaction([e]).objectStore(e).get(t);i.onerror=r,i.onsuccess=function(){n(i.result)}})}function sc(e,t,n){return new Promise((r,i)=>{const s=[],a=Ze.transaction([e]),o=a.objectStore(e).index(t).openCursor(IDBKeyRange.only(n));o.onsuccess=function(){const d=o.result;d&&(s.push(d.value),d.continue())},a.oncomplete=function(){r(s)},a.onerror=i})}function oc(e,t){return new Promise((n,r)=>{const i=Ze.transaction([t],"readwrite"),s=i.objectStore(t);e.forEach(a=>{a.u=Date.now(),s.put(ke(a))}),i.oncomplete=n,i.onerror=r})}function ac(e){return new Promise((t,n)=>{const r=Ze.transaction([e]).objectStore(e).getAll();r.onsuccess=function(){t(r.result)},r.onerror=n})}function lc(e){return new Promise((t,n)=>{const r=Ze.transaction([e]).objectStore(e).getAllKeys();r.onsuccess=function(){t(r.result)},r.onerror=n})}const rt={initDB:ec,waitForDB:Go,saveFile:tc,getFile:nc,get:ic,getAll:ac,getAllKeys:lc,getByIndexKey:sc,save:rc,saveAll:oc};var uc=!1;/*!
  * pinia v2.0.33
  * (c) 2023 Eduardo San Martin Morote
  * @license MIT
  */let $o;const Pr=e=>$o=e,Ko=Symbol();function Gi(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Jn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Jn||(Jn={}));function cc(){const e=ds(!0),t=e.run(()=>Ve({}));let n=[],r=[];const i=ln({install(s){Pr(i),i._a=s,s.provide(Ko,i),s.config.globalProperties.$pinia=i,r.forEach(a=>n.push(a)),r=[]},use(s){return!this._a&&!uc?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const Xo=()=>{};function Wo(e,t,n,r=Xo){e.push(t);const i=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&hs()&&Aa(i),i}function wn(e,...t){e.slice().forEach(n=>{n(...t)})}function $i(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],i=e[n];Gi(i)&&Gi(r)&&e.hasOwnProperty(n)&&!Fe(r)&&!Rt(r)?e[n]=$i(i,r):e[n]=r}return e}const dc=Symbol();function hc(e){return!Gi(e)||!e.hasOwnProperty(dc)}const{assign:Ht}=Object;function pc(e){return!!(Fe(e)&&e.effect)}function fc(e,t,n,r){const{state:i,actions:s,getters:a}=t,o=n.state.value[e];let d;function p(){o||(n.state.value[e]=i?i():{});const f=ol(n.state.value[e]);return Ht(f,s,Object.keys(a||{}).reduce((m,w)=>(m[w]=ln(Rr(()=>{Pr(n);const h=n._s.get(e);return a[w].call(h,h)})),m),{}))}return d=qo(e,p,t,n,r,!0),d}function qo(e,t,n={},r,i,s){let a;const o=Ht({actions:{}},n),d={deep:!0};let p,f,m=ln([]),w=ln([]),h;const x=r.state.value[e];!s&&!x&&(r.state.value[e]={}),Ve({});let _;function E(L){let X;p=f=!1,typeof L=="function"?(L(r.state.value[e]),X={type:Jn.patchFunction,storeId:e,events:h}):($i(r.state.value[e],L),X={type:Jn.patchObject,payload:L,storeId:e,events:h});const G=_=Symbol();Us().then(()=>{_===G&&(p=!0)}),f=!0,wn(m,X,r.state.value[e])}const v=s?function(){const{state:X}=n,G=X?X():{};this.$patch(ee=>{Ht(ee,G)})}:Xo;function S(){a.stop(),m=[],w=[],r._s.delete(e)}function T(L,X){return function(){Pr(r);const G=Array.from(arguments),ee=[],se=[];function D(Z){ee.push(Z)}function Y(Z){se.push(Z)}wn(w,{args:G,name:L,store:j,after:D,onError:Y});let b;try{b=X.apply(this&&this.$id===e?this:j,G)}catch(Z){throw wn(se,Z),Z}return b instanceof Promise?b.then(Z=>(wn(ee,Z),Z)).catch(Z=>(wn(se,Z),Promise.reject(Z))):(wn(ee,b),b)}}const F={_p:r,$id:e,$onAction:Wo.bind(null,w),$patch:E,$reset:v,$subscribe(L,X={}){const G=Wo(m,L,X.detached,()=>ee()),ee=a.run(()=>jt(()=>r.state.value[e],se=>{(X.flush==="sync"?f:p)&&L({storeId:e,type:Jn.direct,events:h},se)},Ht({},d,X)));return G},$dispose:S},j=kt(F);r._s.set(e,j);const q=r._e.run(()=>(a=ds(),a.run(()=>t())));for(const L in q){const X=q[L];if(Fe(X)&&!pc(X)||Rt(X))s||(x&&hc(X)&&(Fe(X)?X.value=x[L]:$i(X,x[L])),r.state.value[e][L]=X);else if(typeof X=="function"){const G=T(L,X);q[L]=G,o.actions[L]=X}}return Ht(j,q),Ht(ke(j),q),Object.defineProperty(j,"$state",{get:()=>r.state.value[e],set:L=>{E(X=>{Ht(X,L)})}}),r._p.forEach(L=>{Ht(j,a.run(()=>L({store:j,app:r._a,pinia:r,options:o})))}),x&&s&&n.hydrate&&n.hydrate(j.$state,x),p=!0,f=!0,j}function mc(e,t,n){let r,i;const s=typeof t=="function";typeof e=="string"?(r=e,i=s?n:t):(i=e,r=e.id);function a(o,d){const p=yo();return o=o||p&&Mn(Ko,null),o&&Pr(o),o=$o,o._s.has(r)||(s?qo(r,t,i,o):fc(r,i,o)),o._s.get(r)}return a.$id=r,a}const mt=mc("appStateStore",()=>{const e=/#!(\w+)(\/|$)/,t=/#!article\/([\w.]+)\/(\d+)($|\?)/,n={hash:"",scrollY:0},r=kt({mainHash:"mainpage",showState:{showSetting:!1,state:0},topicState:{board:"",topicId:""},articleInfoArr:[]});function i(d){d==="left"&&r.showState.state!==1?r.showState.state++:d==="right"&&r.showState.state!==-1&&r.showState.state--}function s(){const d=location.hash,p=d.match(e);if(p!=null&&(r.mainHash=p[1],r.mainHash==="article")){const f=d.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(){s();for(let d=0;d<10;d++)r.articleInfoArr.push({userId:"",articleId:"",content:"",p:{},showModifier:!1,ip:"",articleUri:"//"})}return{scrollY:n,appState:r,init:o,onHashChange:s,changeShowstate:i,onBodyMut:a}});function gc(){setTimeout(()=>{window.APP.body.refresh(!0)},0)}function Vo(){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 _c(){document.addEventListener("error",function(e){return be(this,null,function*(){const t=e.target;if(t instanceof HTMLImageElement&&t.src.endsWith("/large")){let n=t.src.replace(/\/large$/,"");const r=yield gn.get(n);r.imgBlob&&(n=URL.createObjectURL(r.imgBlob)),t.src=n}})},!0)}const bc={class:"slist folder-close"},wc={class:"x-leaf"},yc=ne("span",{class:"toggler ico-pos-manage"},null,-1),vc=Le({__name:"MenuSetting",props:{msg:null},setup(e){const t=mt().appState.showState,n=document.querySelector("#menu"),r=n.querySelector("#u_login"),i=n.querySelector("#xlist"),s="newsmth_script_username",a="newsmth_script_password",o="newsmth_script_pass_config",d=Ve(null);n.addEventListener("click",h=>{var _;const x=h.target;if(x instanceof HTMLElement&&x.id==="u_login_submit"){const E=mt().scrollY;E.hash=location.hash,E.scrollY=window.scrollY,window.SESSION.trigger("logout"),p((_=n.querySelector("#u_login_cookie"))==null?void 0:_.checked)}});function p(h){const x=n.querySelector("#u_login_id"),_=n.querySelector("#u_login_passwd");x===null||_===null||(h?(localStorage.setItem(o,"1"),localStorage.setItem(s,x.value),localStorage.setItem(a,_.value)):(localStorage.setItem(o,"0"),localStorage.setItem(s,""),localStorage.setItem(a,"")))}function f(){const h=n.querySelector("#u_login_id"),x=n.querySelector("#u_login_passwd"),_=n.querySelector("#u_login_cookie"),E=_==null?void 0:_.nextElementSibling;if(h&&x&&_&&E){const v=localStorage.getItem(o)=="1";if(_.checked=v,E.innerHTML="保存账号密码",v){const S=localStorage.getItem(s),T=localStorage.getItem(a);h.value=S||"",x.value=T||""}}}function m(){var _;const h=(_=d.value)==null?void 0:_.clientHeight,x=window.innerHeight-10-r.clientHeight-(h||50);i.style.maxHeight=x+"px"}jt(()=>t.state,(h,x)=>{var _,E,v;x===0&&h===-1?(_=document.querySelector("#menu"))==null||_.classList.add("display"):x===-1&&h===0&&((E=document.querySelector("#menu"))==null||E.classList.remove("display"),(v=document.querySelector("#b_search"))==null||v.blur())});const w={attributes:!1,childList:!0,subtree:!1};return new MutationObserver(()=>{f(),Vo(),m()}).observe(r,w),f(),Vo(),m(),(h,x)=>(ce(),_e("nav",{ref_key:"list_menu",ref:d,id:"xlist-menu",class:"corner"},[ne("ul",null,[ne("li",bc,[ne("span",wc,[yc,ne("a",{onClick:x[0]||(x[0]=_=>ve(t).showSetting=!0)},"设置面板")])])])],512))}}),Wh="",kc=["innerHTML"],xc=Le({__name:"SingleArticle",props:{msg:null,articleUri:null},setup(e){return be(this,null,function*(){let t,n;const r=e,s=([t,n]=Ci(()=>Nr.get(r.articleUri)),t=yield t,n(),t).content;return(a,o)=>(ce(!0),_e(Ne,null,bt(ve(s),(d,p)=>(ce(),_e("p",{key:p,innerHTML:d},null,8,kc))),128))})}}),qh="",yn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},Ec=yn(xc,[["__scopeId","data-v-514dd0cc"]]),Sc=Le({__name:"ArticleTags",props:{msg:null,userId:null,tagNames:null},setup(e){return be(this,null,function*(){let t,n;const r=e,i=([t,n]=Ci(()=>Zn.getByID(r.userId)),t=yield t,n(),t);function s(a){const o=Object.keys(a.tags);for(const d of r.tagNames)if(o.includes(d))return!0;return!1}return(a,o)=>(ce(!0),_e(Ne,null,bt(ve(i),d=>(ce(),_e("div",{key:d.articleUri},[s(d)?(ce(),lt(Ec,{key:0,"article-uri":d.articleUri},null,8,["article-uri"])):ut("",!0)]))),128))})}}),Ic=["onClick"],Tc={key:0},Ac=Le({__name:"UserTags",props:{userId:null},setup(e){const t=e,n=Ve([]);return jt(t,()=>{n.value.splice(0)}),(r,i)=>(ce(),_e(Ne,null,[ne("div",null,[(ce(!0),_e(Ne,null,bt(ve(At).get(t.userId).tags,(s,a)=>(ce(),_e("a",{key:a,onClick:o=>n.value.includes(a)?n.value.splice(n.value.indexOf(a),1):n.value.push(a)},[ne("span",{class:gt([n.value.includes(a)?"checked":"unchecked"])},Xe(a)+"("+Xe(s)+") ",3)],8,Ic))),128))]),(ce(),lt(Ks,null,{default:pi(()=>[n.value.length>0?(ce(),_e("div",Tc,[Re(Sc,{"user-id":t.userId,"tag-names":n.value},null,8,["user-id","tag-names"])])):ut("",!0)]),_:1}))],64))}}),Vh="",Ki=yn(Ac,[["__scopeId","data-v-14f5caff"]]),Oc=["checked"],Cc=["placeholder"],Dc=ne("button",{type:"submit"},"添加",-1),Rc=Le({__name:"SingleUser",props:{msg:null,userId:null},setup(e){const t=e,n=At.record[t.userId],r=Lt.get(t.userId),i=zt.get(t.userId),s=Ve(""),a=Ve(!1);function o(d){return be(this,null,function*(){if(s.value.trim()==="")return;const f=yield Fi.get(t.userId,s.value);d==="add"?(f.state||f.enable(),i.addMajia(s.value)):(f.state&&f.disable(),i.delMajia(s.value))})}return(d,p)=>(ce(),_e("div",null,[ne("h3",null,[ne("span",null,Xe(ve(n).id)+" ("+Xe(ve(n).score)+") ",1),ne("span",{onClick:p[0]||(p[0]=f=>a.value=!a.value)}," ["+Xe(ve(i).relativeIDs.join(" "))+"] ",1),ne("input",{type:"checkbox",checked:ve(r).showUser(),onClick:p[1]||(p[1]=(...f)=>ve(r).switchShowUser&&ve(r).switchShowUser(...f))},null,8,Oc),a.value?(ce(),_e("form",{key:0,onSubmit:p[4]||(p[4]=jr(f=>o("add"),["prevent"]))},[ne("button",{type:"button",onClick:p[2]||(p[2]=jr(f=>o("del"),["prevent"]))},"删除"),Qe(ne("input",{type:"text","onUpdate:modelValue":p[3]||(p[3]=f=>s.value=f),placeholder:ve(i).majias.length==0?"马甲":ve(i).majias.join(" ")},null,8,Cc),[[Br,s.value]]),Dc],32)):ut("",!0)]),Re(Ki,{"user-id":t.userId},null,8,["user-id"])]))}}),vn=e=>(yr("data-v-a92edd2d"),e=e(),vr(),e),Bc={class:"search"},jc=[vn(()=>ne("option",{disabled:""},"排序",-1)),vn(()=>ne("option",{value:"1"},"正序",-1)),vn(()=>ne("option",{value:"-1"},"倒序",-1))],Nc=[vn(()=>ne("option",{disabled:""},"来源",-1)),vn(()=>ne("option",{value:"local"},"本地",-1)),vn(()=>ne("option",{value:"smth.top"},"smth.top",-1))],Pc=Le({__name:"UserPanel",setup(e){const t=kt({searchText:"",score:1,source:"local"}),n=Rr(()=>Object.values(At.record).filter(s=>i(s)).sort((s,a)=>{const o=Lt.get(s.id).showUser(),d=Lt.get(a.id).showUser();return o!==d?(d?1:-1)*t.score:(a.score-s.score)*t.score})),r=mt().appState.showState;function i(s){if(s.id==="")return!1;if(s.id===t.searchText)return!0;const a=Object.keys(s.tags);if(a.length===0)return!1;let o=new RegExp(t.searchText,"ig");return!!(s.id.match(o)||zt.get(s.id).relativeIDs.some(d=>d.match(o))||a.some(d=>d.match(o)))}return(s,a)=>(ce(),_e("div",{style:{height:"100%","min-width":"13rem"},id:"smth_mark_id_panel",class:gt({display:ve(r).state===1})},[Qe(ne("div",null,[(ce(!0),_e(Ne,null,bt(ve(n),o=>(ce(),_e("div",{key:o.id},[Re(Rc,{class:"border","user-id":o.id},null,8,["user-id"])]))),128))],512),[[jo,t.source==="local"]]),Qe(ne("div",null,"由于本青拖延症,该页面迟迟未开发。。。。。。",512),[[jo,t.source==="smth.top"]]),ne("div",Bc,[Qe(ne("input",{type:"text",placeholder:"搜索","onUpdate:modelValue":a[0]||(a[0]=o=>t.searchText=o)},null,512),[[Br,t.searchText]]),Qe(ne("select",{"onUpdate:modelValue":a[1]||(a[1]=o=>t.score=o),style:{height:"2rem"}},jc,512),[[ji,t.score,void 0,{number:!0}]]),Qe(ne("select",{"onUpdate:modelValue":a[2]||(a[2]=o=>t.source=o),style:{height:"2rem"}},Nc,512),[[ji,t.source,void 0,{number:!0}]])])],2))}}),np="",Uc=yn(Pc,[["__scopeId","data-v-a92edd2d"]]),Fc=(e=>(yr("data-v-17437468"),e=e(),vr(),e))(()=>ne("samp",{class:"ico-pos-switch"},null,-1)),Mc=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,i)=>(ce(),_e("li",null,[Fc,ne("a",{onClick:i[0]||(i[0]=s=>n())},"标记")]))}}),ip="",zc=yn(Mc,[["__scopeId","data-v-17437468"]]),Yo={init:function(){window.addEventListener("message",Gc,!1),Qn==="static"&&($e=window.opener,$e==null||$e.postMessage({act:"ready"},"https://www.newsmth.net"))},openUrl:function(e){return be(this,null,function*(){if(e.length!==0){for(let t=0;t<e.length;t++){const r=e[t].replace(/\/(large)|(middle)|(small)$/,"");(yield gn.get(r)).imgBlob||kn.push(r)}!($e!=null&&$e.window)&&kn.length>0&&($e=window.open(kn[0]),window.focus())}})}},kn=[],Qn=location.hostname.split(".")[0];let $e=null;function Lc(e){return be(this,null,function*(){const t=[];for(let n=0;n<e.length;n++){const r=e[n],i=yield(yield fetch(location.pathname)).blob();t.push(new Tn(r,i))}$e==null||$e.postMessage({act:"imgs",imgs:t},"*")})}function Hc(e){e.forEach(t=>{gn.get(t.imgUri).then(n=>{n.addImgData(t.imgBlob)})}),kn.length=0,$e==null||$e.postMessage({act:"close"},"*")}function Gc(e){const t=ns(ns({},$c),e.data);switch(t.act){case"ready":Qn==="www"&&kn.length>0&&($e==null||$e.postMessage({act:"uris",uris:kn},"*"));break;case"uris":Qn==="static"&&Lc(t.uris);break;case"imgs":Qn==="www"&&Hc(t.imgs);break;case"close":Qn==="static"&&window.close();break}}const $c={act:"null",imgs:[],uris:[]},Kc=["placeholder"],Xc=ne("button",{type:"submit"},"踩",-1),Wc=Le({__name:"TagModifier",props:{msg:null,userId:null,articleId:null,articleUri:null,content:null,p:null},setup(e){return be(this,null,function*(){let t,n;const r=e,i=([t,n]=Ci(()=>Zn.get(r.articleUri,r.userId)),t=yield t,n(),t),s=At.get(r.userId),a=Ve(""),o=Rr(()=>JSON.stringify(i.tags).replace(/\{|\}/g,""));function d(m){s.modify(a.value,m),i.modify(a.value,m),p(),f()}function p(){Nr.get(r.articleUri,r.userId).then(m=>{m.addContent(r.content)})}function f(){const m=r.p.querySelectorAll("img"),w=[];for(let h=0;h<m.length;h++){const x=m[h];if(x.src.startsWith("https://www.newsmth.net/nForum/")){const _=x.src.replace(/\/large$/,"");gn.get(_).then(E=>be(this,null,function*(){if(!E.imgBlob){const v=yield fetch(_);if(v.status!==200)return;const S=yield v.blob();E.addImgData(S)}}))}else(x.src.startsWith("https://static.newsmth.net/nForum/")||x.src.startsWith("https://static.mysmth.net/nForum/"))&&w.push(x.src)}Yo.openUrl(w)}return(m,w)=>(ce(),_e("div",null,[ne("form",{onSubmit:w[2]||(w[2]=jr(h=>d(-1),["prevent"]))},[Qe(ne("input",{type:"text","onUpdate:modelValue":w[0]||(w[0]=h=>a.value=h),placeholder:ve(o)},null,8,Kc),[[Br,a.value,void 0,{trim:!0}]]),ne("span",null,"("+Xe(ve(i).tags[a.value])+")",1),ne("button",{type:"button",onClick:w[1]||(w[1]=jr(h=>d(1),["prevent"]))},"赞"),Xc],32)]))})}}),qc=Le({__name:"SingleMajia",props:{msg:null,userId:null},setup(e){const t=e,n=Ve(!1),r=At.get(t.userId);return(i,s)=>(ce(),_e(Ne,null,[ne("span",{onClick:s[0]||(s[0]=a=>n.value=!n.value)},Xe(e.userId)+"("+Xe(ve(r).score==0?"":ve(r).score)+") ",1),n.value?(ce(),lt(Ki,{key:0,"user-id":t.userId},null,8,["user-id"])):ut("",!0)],64))}}),Vc=Le({__name:"UserMajias",props:{msg:null,userId:null},setup(e){const t=e;return(n,r)=>(ce(!0),_e(Ne,null,bt(ve(zt).get(t.userId).relativeIDs,i=>(ce(),lt(qc,{key:i,"user-id":i},null,8,["user-id"]))),128))}}),Yc=Le({__name:"UserDataBundle",props:{msg:null,articleInfo:null},setup(e){const t=e,n=Lt.get(t.articleInfo.userId);return(r,i)=>(ce(),_e("div",null,[Re(Vc,{"user-id":e.articleInfo.userId},null,8,["user-id"]),ve(n).showTag()?(ce(),lt(Ki,{key:0,"user-id":e.articleInfo.userId},null,8,["user-id"])):ut("",!0),(ce(),lt(Ks,null,{default:pi(()=>[e.articleInfo.showModifier?(ce(),lt(Wc,ga(wo({key:0},e.articleInfo)),null,16)):ut("",!0)]),_:1}))]))}}),Zo=8,Zc=256,Jc=256*256*(4+4),Xi=14,Qc=/^((\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 ed{constructor(t){Ge(this,"_buffer");Ge(this,"_vectorIndex");this._buffer=t,this._vectorIndex=this._buffer.subarray(256,256+Jc)}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(!td(t))return{region:null};const n=t.split("."),r=parseInt(n[0]),i=parseInt(n[1]),s=parseInt(n[2]),a=parseInt(n[3]),o=r*256*256*256+i*256*256+s*256+a,d=r*Zc*Zo+i*Zo,{sPtr:p,ePtr:f}=this.getStartEndPtr(d);let m=0,w=(f-p)/Xi,h=null;for(;m<=w;){const x=m+w>>1,_=p+x*Xi,E=this.getBuffer(_,Xi),v=E.readUInt32LE(0);if(o<v)w=x-1;else{const S=E.readUInt32LE(4);if(o>S)m=x+1;else{const T=E.readUInt16LE(8),F=E.readUInt32LE(10);h=this.getBuffer(F,T).toString("utf-8");break}}}return{region:h}}}const td=e=>Qc.test(e);var Ur=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Jo={},Fr={};Fr.byteLength=id,Fr.toByteArray=od,Fr.fromByteArray=ud;for(var yt=[],ct=[],nd=typeof Uint8Array!="undefined"?Uint8Array:Array,Wi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xn=0,rd=Wi.length;xn<rd;++xn)yt[xn]=Wi[xn],ct[Wi.charCodeAt(xn)]=xn;ct["-".charCodeAt(0)]=62,ct["_".charCodeAt(0)]=63;function Qo(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 id(e){var t=Qo(e),n=t[0],r=t[1];return(n+r)*3/4-r}function sd(e,t,n){return(t+n)*3/4-n}function od(e){var t,n=Qo(e),r=n[0],i=n[1],s=new nd(sd(e,r,i)),a=0,o=i>0?r-4:r,d;for(d=0;d<o;d+=4)t=ct[e.charCodeAt(d)]<<18|ct[e.charCodeAt(d+1)]<<12|ct[e.charCodeAt(d+2)]<<6|ct[e.charCodeAt(d+3)],s[a++]=t>>16&255,s[a++]=t>>8&255,s[a++]=t&255;return i===2&&(t=ct[e.charCodeAt(d)]<<2|ct[e.charCodeAt(d+1)]>>4,s[a++]=t&255),i===1&&(t=ct[e.charCodeAt(d)]<<10|ct[e.charCodeAt(d+1)]<<4|ct[e.charCodeAt(d+2)]>>2,s[a++]=t>>8&255,s[a++]=t&255),s}function ad(e){return yt[e>>18&63]+yt[e>>12&63]+yt[e>>6&63]+yt[e&63]}function ld(e,t,n){for(var r,i=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(e[s+2]&255),i.push(ad(r));return i.join("")}function ud(e){for(var t,n=e.length,r=n%3,i=[],s=16383,a=0,o=n-r;a<o;a+=s)i.push(ld(e,a,a+s>o?o:a+s));return r===1?(t=e[n-1],i.push(yt[t>>2]+yt[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(yt[t>>10]+yt[t>>4&63]+yt[t<<2&63]+"=")),i.join("")}var qi={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */qi.read=function(e,t,n,r,i){var s,a,o=i*8-r-1,d=(1<<o)-1,p=d>>1,f=-7,m=n?i-1:0,w=n?-1:1,h=e[t+m];for(m+=w,s=h&(1<<-f)-1,h>>=-f,f+=o;f>0;s=s*256+e[t+m],m+=w,f-=8);for(a=s&(1<<-f)-1,s>>=-f,f+=r;f>0;a=a*256+e[t+m],m+=w,f-=8);if(s===0)s=1-p;else{if(s===d)return a?NaN:(h?-1:1)*(1/0);a=a+Math.pow(2,r),s=s-p}return(h?-1:1)*a*Math.pow(2,s-r)},qi.write=function(e,t,n,r,i,s){var a,o,d,p=s*8-i-1,f=(1<<p)-1,m=f>>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:s-1,x=r?1:-1,_=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*(d=Math.pow(2,-a))<1&&(a--,d*=2),a+m>=1?t+=w/d:t+=w*Math.pow(2,1-m),t*d>=2&&(a++,d/=2),a+m>=f?(o=0,a=f):a+m>=1?(o=(t*d-1)*Math.pow(2,i),a=a+m):(o=t*Math.pow(2,m-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=o&255,h+=x,o/=256,i-=8);for(a=a<<i|o,p+=i;p>0;e[n+h]=a&255,h+=x,a/=256,p-=8);e[n+h-x]|=_*128};/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */(function(e){const t=Fr,n=qi,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 i=2147483647;e.kMaxLength=i,o.TYPED_ARRAY_SUPPORT=s(),!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 s(){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>i)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,c){if(typeof g=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(g)}return d(g,l,c)}o.poolSize=8192;function d(g,l,c){if(typeof g=="string")return w(g,l);if(ArrayBuffer.isView(g))return x(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 _(g,l,c);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,c);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,c);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,c){return d(g,l,c)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function p(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,c){return p(g),g<=0?a(g):l!==void 0?typeof c=="string"?a(g).fill(l,c):a(g).fill(l):a(g)}o.alloc=function(g,l,c){return f(g,l,c)};function m(g){return p(g),a(g<0?0:v(g)|0)}o.allocUnsafe=function(g){return m(g)},o.allocUnsafeSlow=function(g){return m(g)};function w(g,l){if((typeof l!="string"||l==="")&&(l="utf8"),!o.isEncoding(l))throw new TypeError("Unknown encoding: "+l);const c=T(g,l)|0;let I=a(c);const N=I.write(g,l);return N!==c&&(I=I.slice(0,N)),I}function h(g){const l=g.length<0?0:v(g.length)|0,c=a(l);for(let I=0;I<l;I+=1)c[I]=g[I]&255;return c}function x(g){if(B(g,Uint8Array)){const l=new Uint8Array(g);return _(l.buffer,l.byteOffset,l.byteLength)}return h(g)}function _(g,l,c){if(l<0||g.byteLength<l)throw new RangeError('"offset" is outside of buffer bounds');if(g.byteLength<l+(c||0))throw new RangeError('"length" is outside of buffer bounds');let I;return l===void 0&&c===void 0?I=new Uint8Array(g):c===void 0?I=new Uint8Array(g,l):I=new Uint8Array(g,l,c),Object.setPrototypeOf(I,o.prototype),I}function E(g){if(o.isBuffer(g)){const l=v(g.length)|0,c=a(l);return c.length===0||g.copy(c,0,0,l),c}if(g.length!==void 0)return typeof g.length!="number"||K(g.length)?a(0):h(g);if(g.type==="Buffer"&&Array.isArray(g.data))return h(g.data)}function v(g){if(g>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.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,c){if(B(l,Uint8Array)&&(l=o.from(l,l.offset,l.byteLength)),B(c,Uint8Array)&&(c=o.from(c,c.offset,c.byteLength)),!o.isBuffer(l)||!o.isBuffer(c))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===c)return 0;let I=l.length,N=c.length;for(let $=0,W=Math.min(I,N);$<W;++$)if(l[$]!==c[$]){I=l[$],N=c[$];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,c){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(c===void 0)for(c=0,I=0;I<l.length;++I)c+=l[I].length;const N=o.allocUnsafe(c);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 c=g.length,I=arguments.length>2&&arguments[2]===!0;if(!I&&c===0)return 0;let N=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return k(g).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return M(g).length;default:if(N)return I?-1:k(g).length;l=(""+l).toLowerCase(),N=!0}}o.byteLength=T;function F(g,l,c){let I=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,l>>>=0,c<=l))return"";for(g||(g="utf8");;)switch(g){case"hex":return te(this,l,c);case"utf8":case"utf-8":return b(this,l,c);case"ascii":return Q(this,l,c);case"latin1":case"binary":return ae(this,l,c);case"base64":return Y(this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,l,c);default:if(I)throw new TypeError("Unknown encoding: "+g);g=(g+"").toLowerCase(),I=!0}}o.prototype._isBuffer=!0;function j(g,l,c){const I=g[l];g[l]=g[c],g[c]=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 c=0;c<l;c+=2)j(this,c,c+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 c=0;c<l;c+=4)j(this,c,c+3),j(this,c+1,c+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 c=0;c<l;c+=8)j(this,c,c+7),j(this,c+1,c+6),j(this,c+2,c+5),j(this,c+3,c+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 c=e.INSPECT_MAX_BYTES;return l=this.toString("hex",0,c).replace(/(.{2})/g,"$1 ").trim(),this.length>c&&(l+=" ... "),"<Buffer "+l+">"},r&&(o.prototype[r]=o.prototype.inspect),o.prototype.compare=function(l,c,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(c===void 0&&(c=0),I===void 0&&(I=l?l.length:0),N===void 0&&(N=0),$===void 0&&($=this.length),c<0||I>l.length||N<0||$>this.length)throw new RangeError("out of range index");if(N>=$&&c>=I)return 0;if(N>=$)return-1;if(c>=I)return 1;if(c>>>=0,I>>>=0,N>>>=0,$>>>=0,this===l)return 0;let W=$-N,pe=I-c;const ye=Math.min(W,pe),fe=this.slice(N,$),Te=l.slice(c,I);for(let Ie=0;Ie<ye;++Ie)if(fe[Ie]!==Te[Ie]){W=fe[Ie],pe=Te[Ie];break}return W<pe?-1:pe<W?1:0};function q(g,l,c,I,N){if(g.length===0)return-1;if(typeof c=="string"?(I=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,K(c)&&(c=N?0:g.length-1),c<0&&(c=g.length+c),c>=g.length){if(N)return-1;c=g.length-1}else if(c<0)if(N)c=0;else return-1;if(typeof l=="string"&&(l=o.from(l,I)),o.isBuffer(l))return l.length===0?-1:L(g,l,c,I,N);if(typeof l=="number")return l=l&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(g,l,c):Uint8Array.prototype.lastIndexOf.call(g,l,c):L(g,[l],c,I,N);throw new TypeError("val must be string, number or Buffer")}function L(g,l,c,I,N){let $=1,W=g.length,pe=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,pe/=2,c/=2}function ye(Te,Ie){return $===1?Te[Ie]:Te.readUInt16BE(Ie*$)}let fe;if(N){let Te=-1;for(fe=c;fe<W;fe++)if(ye(g,fe)===ye(l,Te===-1?0:fe-Te)){if(Te===-1&&(Te=fe),fe-Te+1===pe)return Te*$}else Te!==-1&&(fe-=fe-Te),Te=-1}else for(c+pe>W&&(c=W-pe),fe=c;fe>=0;fe--){let Te=!0;for(let Ie=0;Ie<pe;Ie++)if(ye(g,fe+Ie)!==ye(l,Ie)){Te=!1;break}if(Te)return fe}return-1}o.prototype.includes=function(l,c,I){return this.indexOf(l,c,I)!==-1},o.prototype.indexOf=function(l,c,I){return q(this,l,c,I,!0)},o.prototype.lastIndexOf=function(l,c,I){return q(this,l,c,I,!1)};function X(g,l,c,I){c=Number(c)||0;const N=g.length-c;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 pe=parseInt(l.substr(W*2,2),16);if(K(pe))return W;g[c+W]=pe}return W}function G(g,l,c,I){return P(k(l,g.length-c),g,c,I)}function ee(g,l,c,I){return P(y(l),g,c,I)}function se(g,l,c,I){return P(M(l),g,c,I)}function D(g,l,c,I){return P(A(l,g.length-c),g,c,I)}o.prototype.write=function(l,c,I,N){if(c===void 0)N="utf8",I=this.length,c=0;else if(I===void 0&&typeof c=="string")N=c,I=this.length,c=0;else if(isFinite(c))c=c>>>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-c;if((I===void 0||I>$)&&(I=$),l.length>0&&(I<0||c<0)||c>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,c,I);case"utf8":case"utf-8":return G(this,l,c,I);case"ascii":case"latin1":case"binary":return ee(this,l,c,I);case"base64":return se(this,l,c,I);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,l,c,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,c){return l===0&&c===g.length?t.fromByteArray(g):t.fromByteArray(g.slice(l,c))}function b(g,l,c){c=Math.min(g.length,c);const I=[];let N=l;for(;N<c;){const $=g[N];let W=null,pe=$>239?4:$>223?3:$>191?2:1;if(N+pe<=c){let ye,fe,Te,Ie;switch(pe){case 1:$<128&&(W=$);break;case 2:ye=g[N+1],(ye&192)===128&&(Ie=($&31)<<6|ye&63,Ie>127&&(W=Ie));break;case 3:ye=g[N+1],fe=g[N+2],(ye&192)===128&&(fe&192)===128&&(Ie=($&15)<<12|(ye&63)<<6|fe&63,Ie>2047&&(Ie<55296||Ie>57343)&&(W=Ie));break;case 4:ye=g[N+1],fe=g[N+2],Te=g[N+3],(ye&192)===128&&(fe&192)===128&&(Te&192)===128&&(Ie=($&15)<<18|(ye&63)<<12|(fe&63)<<6|Te&63,Ie>65535&&Ie<1114112&&(W=Ie))}}W===null?(W=65533,pe=1):W>65535&&(W-=65536,I.push(W>>>10&1023|55296),W=56320|W&1023),I.push(W),N+=pe}return le(I)}const Z=4096;function le(g){const l=g.length;if(l<=Z)return String.fromCharCode.apply(String,g);let c="",I=0;for(;I<l;)c+=String.fromCharCode.apply(String,g.slice(I,I+=Z));return c}function Q(g,l,c){let I="";c=Math.min(g.length,c);for(let N=l;N<c;++N)I+=String.fromCharCode(g[N]&127);return I}function ae(g,l,c){let I="";c=Math.min(g.length,c);for(let N=l;N<c;++N)I+=String.fromCharCode(g[N]);return I}function te(g,l,c){const I=g.length;(!l||l<0)&&(l=0),(!c||c<0||c>I)&&(c=I);let N="";for(let $=l;$<c;++$)N+=J[g[$]];return N}function de(g,l,c){const I=g.slice(l,c);let N="";for(let $=0;$<I.length-1;$+=2)N+=String.fromCharCode(I[$]+I[$+1]*256);return N}o.prototype.slice=function(l,c){const I=this.length;l=~~l,c=c===void 0?I:~~c,l<0?(l+=I,l<0&&(l=0)):l>I&&(l=I),c<0?(c+=I,c<0&&(c=0)):c>I&&(c=I),c<l&&(c=l);const N=this.subarray(l,c);return Object.setPrototypeOf(N,o.prototype),N};function H(g,l,c){if(g%1!==0||g<0)throw new RangeError("offset is not uint");if(g+l>c)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(l,c,I){l=l>>>0,c=c>>>0,I||H(l,c,this.length);let N=this[l],$=1,W=0;for(;++W<c&&($*=256);)N+=this[l+W]*$;return N},o.prototype.readUintBE=o.prototype.readUIntBE=function(l,c,I){l=l>>>0,c=c>>>0,I||H(l,c,this.length);let N=this[l+--c],$=1;for(;c>0&&($*=256);)N+=this[l+--c]*$;return N},o.prototype.readUint8=o.prototype.readUInt8=function(l,c){return l=l>>>0,c||H(l,1,this.length),this[l]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(l,c){return l=l>>>0,c||H(l,2,this.length),this[l]|this[l+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(l,c){return l=l>>>0,c||H(l,2,this.length),this[l]<<8|this[l+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(l,c){return l=l>>>0,c||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,c){return l=l>>>0,c||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,U(l,"offset");const c=this[l],I=this[l+7];(c===void 0||I===void 0)&&u(l,this.length-8);const N=c+this[++l]*Oe(2,8)+this[++l]*Oe(2,16)+this[++l]*Oe(2,24),$=this[++l]+this[++l]*Oe(2,8)+this[++l]*Oe(2,16)+I*Oe(2,24);return BigInt(N)+(BigInt($)<<BigInt(32))}),o.prototype.readBigUInt64BE=V(function(l){l=l>>>0,U(l,"offset");const c=this[l],I=this[l+7];(c===void 0||I===void 0)&&u(l,this.length-8);const N=c*Oe(2,24)+this[++l]*Oe(2,16)+this[++l]*Oe(2,8)+this[++l],$=this[++l]*Oe(2,24)+this[++l]*Oe(2,16)+this[++l]*Oe(2,8)+I;return(BigInt(N)<<BigInt(32))+BigInt($)}),o.prototype.readIntLE=function(l,c,I){l=l>>>0,c=c>>>0,I||H(l,c,this.length);let N=this[l],$=1,W=0;for(;++W<c&&($*=256);)N+=this[l+W]*$;return $*=128,N>=$&&(N-=Math.pow(2,8*c)),N},o.prototype.readIntBE=function(l,c,I){l=l>>>0,c=c>>>0,I||H(l,c,this.length);let N=c,$=1,W=this[l+--N];for(;N>0&&($*=256);)W+=this[l+--N]*$;return $*=128,W>=$&&(W-=Math.pow(2,8*c)),W},o.prototype.readInt8=function(l,c){return l=l>>>0,c||H(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},o.prototype.readInt16LE=function(l,c){l=l>>>0,c||H(l,2,this.length);const I=this[l]|this[l+1]<<8;return I&32768?I|4294901760:I},o.prototype.readInt16BE=function(l,c){l=l>>>0,c||H(l,2,this.length);const I=this[l+1]|this[l]<<8;return I&32768?I|4294901760:I},o.prototype.readInt32LE=function(l,c){return l=l>>>0,c||H(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},o.prototype.readInt32BE=function(l,c){return l=l>>>0,c||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,U(l,"offset");const c=this[l],I=this[l+7];(c===void 0||I===void 0)&&u(l,this.length-8);const N=this[l+4]+this[l+5]*Oe(2,8)+this[l+6]*Oe(2,16)+(I<<24);return(BigInt(N)<<BigInt(32))+BigInt(c+this[++l]*Oe(2,8)+this[++l]*Oe(2,16)+this[++l]*Oe(2,24))}),o.prototype.readBigInt64BE=V(function(l){l=l>>>0,U(l,"offset");const c=this[l],I=this[l+7];(c===void 0||I===void 0)&&u(l,this.length-8);const N=(c<<24)+this[++l]*Oe(2,16)+this[++l]*Oe(2,8)+this[++l];return(BigInt(N)<<BigInt(32))+BigInt(this[++l]*Oe(2,24)+this[++l]*Oe(2,16)+this[++l]*Oe(2,8)+I)}),o.prototype.readFloatLE=function(l,c){return l=l>>>0,c||H(l,4,this.length),n.read(this,l,!0,23,4)},o.prototype.readFloatBE=function(l,c){return l=l>>>0,c||H(l,4,this.length),n.read(this,l,!1,23,4)},o.prototype.readDoubleLE=function(l,c){return l=l>>>0,c||H(l,8,this.length),n.read(this,l,!0,52,8)},o.prototype.readDoubleBE=function(l,c){return l=l>>>0,c||H(l,8,this.length),n.read(this,l,!1,52,8)};function z(g,l,c,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(c+I>g.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(l,c,I,N){if(l=+l,c=c>>>0,I=I>>>0,!N){const pe=Math.pow(2,8*I)-1;z(this,l,c,I,pe,0)}let $=1,W=0;for(this[c]=l&255;++W<I&&($*=256);)this[c+W]=l/$&255;return c+I},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(l,c,I,N){if(l=+l,c=c>>>0,I=I>>>0,!N){const pe=Math.pow(2,8*I)-1;z(this,l,c,I,pe,0)}let $=I-1,W=1;for(this[c+$]=l&255;--$>=0&&(W*=256);)this[c+$]=l/W&255;return c+I},o.prototype.writeUint8=o.prototype.writeUInt8=function(l,c,I){return l=+l,c=c>>>0,I||z(this,l,c,1,255,0),this[c]=l&255,c+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(l,c,I){return l=+l,c=c>>>0,I||z(this,l,c,2,65535,0),this[c]=l&255,this[c+1]=l>>>8,c+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(l,c,I){return l=+l,c=c>>>0,I||z(this,l,c,2,65535,0),this[c]=l>>>8,this[c+1]=l&255,c+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(l,c,I){return l=+l,c=c>>>0,I||z(this,l,c,4,4294967295,0),this[c+3]=l>>>24,this[c+2]=l>>>16,this[c+1]=l>>>8,this[c]=l&255,c+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(l,c,I){return l=+l,c=c>>>0,I||z(this,l,c,4,4294967295,0),this[c]=l>>>24,this[c+1]=l>>>16,this[c+2]=l>>>8,this[c+3]=l&255,c+4};function ue(g,l,c,I,N){C(l,I,N,g,c,7);let $=Number(l&BigInt(4294967295));g[c++]=$,$=$>>8,g[c++]=$,$=$>>8,g[c++]=$,$=$>>8,g[c++]=$;let W=Number(l>>BigInt(32)&BigInt(4294967295));return g[c++]=W,W=W>>8,g[c++]=W,W=W>>8,g[c++]=W,W=W>>8,g[c++]=W,c}function oe(g,l,c,I,N){C(l,I,N,g,c,7);let $=Number(l&BigInt(4294967295));g[c+7]=$,$=$>>8,g[c+6]=$,$=$>>8,g[c+5]=$,$=$>>8,g[c+4]=$;let W=Number(l>>BigInt(32)&BigInt(4294967295));return g[c+3]=W,W=W>>8,g[c+2]=W,W=W>>8,g[c+1]=W,W=W>>8,g[c]=W,c+8}o.prototype.writeBigUInt64LE=V(function(l,c=0){return ue(this,l,c,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=V(function(l,c=0){return oe(this,l,c,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(l,c,I,N){if(l=+l,c=c>>>0,!N){const ye=Math.pow(2,8*I-1);z(this,l,c,I,ye-1,-ye)}let $=0,W=1,pe=0;for(this[c]=l&255;++$<I&&(W*=256);)l<0&&pe===0&&this[c+$-1]!==0&&(pe=1),this[c+$]=(l/W>>0)-pe&255;return c+I},o.prototype.writeIntBE=function(l,c,I,N){if(l=+l,c=c>>>0,!N){const ye=Math.pow(2,8*I-1);z(this,l,c,I,ye-1,-ye)}let $=I-1,W=1,pe=0;for(this[c+$]=l&255;--$>=0&&(W*=256);)l<0&&pe===0&&this[c+$+1]!==0&&(pe=1),this[c+$]=(l/W>>0)-pe&255;return c+I},o.prototype.writeInt8=function(l,c,I){return l=+l,c=c>>>0,I||z(this,l,c,1,127,-128),l<0&&(l=255+l+1),this[c]=l&255,c+1},o.prototype.writeInt16LE=function(l,c,I){return l=+l,c=c>>>0,I||z(this,l,c,2,32767,-32768),this[c]=l&255,this[c+1]=l>>>8,c+2},o.prototype.writeInt16BE=function(l,c,I){return l=+l,c=c>>>0,I||z(this,l,c,2,32767,-32768),this[c]=l>>>8,this[c+1]=l&255,c+2},o.prototype.writeInt32LE=function(l,c,I){return l=+l,c=c>>>0,I||z(this,l,c,4,2147483647,-2147483648),this[c]=l&255,this[c+1]=l>>>8,this[c+2]=l>>>16,this[c+3]=l>>>24,c+4},o.prototype.writeInt32BE=function(l,c,I){return l=+l,c=c>>>0,I||z(this,l,c,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[c]=l>>>24,this[c+1]=l>>>16,this[c+2]=l>>>8,this[c+3]=l&255,c+4},o.prototype.writeBigInt64LE=V(function(l,c=0){return ue(this,l,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=V(function(l,c=0){return oe(this,l,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ie(g,l,c,I,N,$){if(c+I>g.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function xe(g,l,c,I,N){return l=+l,c=c>>>0,N||ie(g,l,c,4),n.write(g,l,c,I,23,4),c+4}o.prototype.writeFloatLE=function(l,c,I){return xe(this,l,c,!0,I)},o.prototype.writeFloatBE=function(l,c,I){return xe(this,l,c,!1,I)};function je(g,l,c,I,N){return l=+l,c=c>>>0,N||ie(g,l,c,8),n.write(g,l,c,I,52,8),c+8}o.prototype.writeDoubleLE=function(l,c,I){return je(this,l,c,!0,I)},o.prototype.writeDoubleBE=function(l,c,I){return je(this,l,c,!1,I)},o.prototype.copy=function(l,c,I,N){if(!o.isBuffer(l))throw new TypeError("argument should be a Buffer");if(I||(I=0),!N&&N!==0&&(N=this.length),c>=l.length&&(c=l.length),c||(c=0),N>0&&N<I&&(N=I),N===I||l.length===0||this.length===0)return 0;if(c<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-c<N-I&&(N=l.length-c+I);const $=N-I;return this===l&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(c,I,N):Uint8Array.prototype.set.call(l,this.subarray(I,N),c),$},o.prototype.fill=function(l,c,I,N){if(typeof l=="string"){if(typeof c=="string"?(N=c,c=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(c<0||this.length<c||this.length<I)throw new RangeError("Out of range index");if(I<=c)return this;c=c>>>0,I=I===void 0?this.length:I>>>0,l||(l=0);let $;if(typeof l=="number")for($=c;$<I;++$)this[$]=l;else{const W=o.isBuffer(l)?l:o.from(l,N),pe=W.length;if(pe===0)throw new TypeError('The value "'+l+'" is invalid for argument "value"');for($=0;$<I-c;++$)this[$+c]=W[$%pe]}return this};const me={};function we(g,l,c){me[g]=class extends c{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,c){let I=`The value of "${g}" is out of range.`,N=c;return Number.isInteger(c)&&Math.abs(c)>Oe(2,32)?N=Be(String(c)):typeof c=="bigint"&&(N=String(c),(c>Oe(BigInt(2),BigInt(32))||c<-Oe(BigInt(2),BigInt(32)))&&(N=Be(N)),N+="n"),I+=` It must be ${l}. Received ${N}`,I},RangeError);function Be(g){let l="",c=g.length;const I=g[0]==="-"?1:0;for(;c>=I+4;c-=3)l=`_${g.slice(c-3,c)}${l}`;return`${g.slice(0,c)}${l}`}function Ae(g,l,c){U(l,"offset"),(g[l]===void 0||g[l+c]===void 0)&&u(l,g.length-(c+1))}function C(g,l,c,I,N,$){if(g>c||g<l){const W=typeof l=="bigint"?"n":"";let pe;throw $>3?l===0||l===BigInt(0)?pe=`>= 0${W} and < 2${W} ** ${($+1)*8}${W}`:pe=`>= -(2${W} ** ${($+1)*8-1}${W}) and < 2 ** ${($+1)*8-1}${W}`:pe=`>= ${l}${W} and <= ${c}${W}`,new me.ERR_OUT_OF_RANGE("value",pe,g)}Ae(I,N,$)}function U(g,l){if(typeof g!="number")throw new me.ERR_INVALID_ARG_TYPE(l,"number",g)}function u(g,l,c){throw Math.floor(g)!==g?(U(g,c),new me.ERR_OUT_OF_RANGE(c||"offset","an integer",g)):l<0?new me.ERR_BUFFER_OUT_OF_BOUNDS:new me.ERR_OUT_OF_RANGE(c||"offset",`>= ${c?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 k(g,l){l=l||1/0;let c;const I=g.length;let N=null;const $=[];for(let W=0;W<I;++W){if(c=g.charCodeAt(W),c>55295&&c<57344){if(!N){if(c>56319){(l-=3)>-1&&$.push(239,191,189);continue}else if(W+1===I){(l-=3)>-1&&$.push(239,191,189);continue}N=c;continue}if(c<56320){(l-=3)>-1&&$.push(239,191,189),N=c;continue}c=(N-55296<<10|c-56320)+65536}else N&&(l-=3)>-1&&$.push(239,191,189);if(N=null,c<128){if((l-=1)<0)break;$.push(c)}else if(c<2048){if((l-=2)<0)break;$.push(c>>6|192,c&63|128)}else if(c<65536){if((l-=3)<0)break;$.push(c>>12|224,c>>6&63|128,c&63|128)}else if(c<1114112){if((l-=4)<0)break;$.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw new Error("Invalid code point")}return $}function y(g){const l=[];for(let c=0;c<g.length;++c)l.push(g.charCodeAt(c)&255);return l}function A(g,l){let c,I,N;const $=[];for(let W=0;W<g.length&&!((l-=2)<0);++W)c=g.charCodeAt(W),I=c>>8,N=c%256,$.push(N),$.push(I);return $}function M(g){return t.toByteArray(O(g))}function P(g,l,c,I){let N;for(N=0;N<I&&!(N+c>=l.length||N>=g.length);++N)l[N+c]=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 c=0;c<16;++c){const I=c*16;for(let N=0;N<16;++N)l[I+N]=g[c]+g[N]}return l}();function V(g){return typeof BigInt=="undefined"?re:g}function re(){throw new Error("BigInt not supported")}})(Jo);const Mr={"":"未知id"};let ea=null,Vi=null;const zr={init:function(){return be(this,null,function*(){const e=yield rt.getFile(Li.ipDB);e&&(ea=Jo.Buffer.from(e),Vi=new ed(ea))})},getIpInfo:function(e){if(e=e.replace("*","1"),!Object.prototype.hasOwnProperty.call(Mr,e)&&Vi){const t=Vi.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]}},cd=Le({__name:"UserIPLog",props:{msg:null,articleInfo:null},setup(e){const t=e;return jt(t.articleInfo,()=>be(this,null,function*(){(yield Mi.get(t.articleInfo.userId)).addIp(t.articleInfo.ip)}),{immediate:!0}),(n,r)=>(ce(),_e("span",null,Xe("@"+ve(zr).getIpInfo(e.articleInfo.ip)),1))}}),dd=Le({__name:"UserInfo",props:{msg:null,articleInfo:null},setup(e){const t=e;function n(){Lt.get(t.articleInfo.userId).switchShowTag()}return(r,i)=>(ce(),_e("a",null,[Re(cd,{"article-info":e.articleInfo},null,8,["article-info"]),ne("span",{onClick:n},"("+Xe(ve(At).get(e.articleInfo.userId).score)+")",1)]))}});function Lr(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 Yi={},hd={get exports(){return Yi},set exports(e){Yi=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,i,s){function a(p,f){if(!i[p]){if(!r[p]){var m=typeof Lr=="function"&&Lr;if(!f&&m)return m(p,!0);if(o)return o(p,!0);var w=new Error("Cannot find module '"+p+"'");throw w.code="MODULE_NOT_FOUND",w}var h=i[p]={exports:{}};r[p][0].call(h.exports,function(x){var _=r[p][1][x];return a(_||x)},h,h.exports,n,r,i,s)}return i[p].exports}for(var o=typeof Lr=="function"&&Lr,d=0;d<s.length;d++)a(s[d]);return a}({1:[function(n,r,i){var s=n("./utils"),a=n("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(d){for(var p,f,m,w,h,x,_,E=[],v=0,S=d.length,T=S,F=s.getTypeOf(d)!=="string";v<d.length;)T=S-v,m=F?(p=d[v++],f=v<S?d[v++]:0,v<S?d[v++]:0):(p=d.charCodeAt(v++),f=v<S?d.charCodeAt(v++):0,v<S?d.charCodeAt(v++):0),w=p>>2,h=(3&p)<<4|f>>4,x=1<T?(15&f)<<2|m>>6:64,_=2<T?63&m:64,E.push(o.charAt(w)+o.charAt(h)+o.charAt(x)+o.charAt(_));return E.join("")},i.decode=function(d){var p,f,m,w,h,x,_=0,E=0,v="data:";if(d.substr(0,v.length)===v)throw new Error("Invalid base64 input, it looks like a data url.");var S,T=3*(d=d.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(d.charAt(d.length-1)===o.charAt(64)&&T--,d.charAt(d.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);_<d.length;)p=o.indexOf(d.charAt(_++))<<2|(w=o.indexOf(d.charAt(_++)))>>4,f=(15&w)<<4|(h=o.indexOf(d.charAt(_++)))>>2,m=(3&h)<<6|(x=o.indexOf(d.charAt(_++))),S[E++]=p,h!==64&&(S[E++]=f),x!==64&&(S[E++]=m);return S}},{"./support":30,"./utils":32}],2:[function(n,r,i){var s=n("./external"),a=n("./stream/DataWorker"),o=n("./stream/Crc32Probe"),d=n("./stream/DataLengthProbe");function p(f,m,w,h,x){this.compressedSize=f,this.uncompressedSize=m,this.crc32=w,this.compression=h,this.compressedContent=x}p.prototype={getContentWorker:function(){var f=new a(s.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new d("data_length")),m=this;return f.on("end",function(){if(this.streamInfo.data_length!==m.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),f},getCompressedWorker:function(){return new a(s.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},p.createWorkerFrom=function(f,m,w){return f.pipe(new o).pipe(new d("uncompressedSize")).pipe(m.compressWorker(w)).pipe(new d("compressedSize")).withStreamInfo("compression",m)},r.exports=p},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,r,i){var s=n("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new s("STORE compression")},uncompressWorker:function(){return new s("STORE decompression")}},i.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,r,i){var s=n("./utils"),a=function(){for(var o,d=[],p=0;p<256;p++){o=p;for(var f=0;f<8;f++)o=1&o?3988292384^o>>>1:o>>>1;d[p]=o}return d}();r.exports=function(o,d){return o!==void 0&&o.length?s.getTypeOf(o)!=="string"?function(p,f,m,w){var h=a,x=w+m;p^=-1;for(var _=w;_<x;_++)p=p>>>8^h[255&(p^f[_])];return-1^p}(0|d,o,o.length,0):function(p,f,m,w){var h=a,x=w+m;p^=-1;for(var _=w;_<x;_++)p=p>>>8^h[255&(p^f.charCodeAt(_))];return-1^p}(0|d,o,o.length,0):0}},{"./utils":32}],5:[function(n,r,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(n,r,i){var s=null;s=typeof Promise!="undefined"?Promise:n("lie"),r.exports={Promise:s}},{lie:37}],7:[function(n,r,i){var s=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",a=n("pako"),o=n("./utils"),d=n("./stream/GenericWorker"),p=s?"uint8array":"array";function f(m,w){d.call(this,"FlateWorker/"+m),this._pako=null,this._pakoAction=m,this._pakoOptions=w,this.meta={}}i.magic="\b\0",o.inherits(f,d),f.prototype.processChunk=function(m){this.meta=m.meta,this._pako===null&&this._createPako(),this._pako.push(o.transformTo(p,m.data),!1)},f.prototype.flush=function(){d.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},f.prototype.cleanUp=function(){d.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 m=this;this._pako.onData=function(w){m.push({data:w,meta:m.meta})}},i.compressWorker=function(m){return new f("Deflate",m)},i.uncompressWorker=function(){return new f("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,i){function s(h,x){var _,E="";for(_=0;_<x;_++)E+=String.fromCharCode(255&h),h>>>=8;return E}function a(h,x,_,E,v,S){var T,F,j=h.file,q=h.compression,L=S!==p.utf8encode,X=o.transformTo("string",S(j.name)),G=o.transformTo("string",p.utf8encode(j.name)),ee=j.comment,se=o.transformTo("string",S(ee)),D=o.transformTo("string",p.utf8encode(ee)),Y=G.length!==j.name.length,b=D.length!==ee.length,Z="",le="",Q="",ae=j.dir,te=j.date,de={crc32:0,compressedSize:0,uncompressedSize:0};x&&!_||(de.crc32=h.crc32,de.compressedSize=h.compressedSize,de.uncompressedSize=h.uncompressedSize);var H=0;x&&(H|=8),L||!Y&&!b||(H|=2048);var z=0,ue=0;ae&&(z|=16),v==="UNIX"?(ue=798,z|=function(ie,xe){var je=ie;return ie||(je=xe?16893:33204),(65535&je)<<16}(j.unixPermissions,ae)):(ue=20,z|=function(ie){return 63&(ie||0)}(j.dosPermissions)),T=te.getUTCHours(),T<<=6,T|=te.getUTCMinutes(),T<<=5,T|=te.getUTCSeconds()/2,F=te.getUTCFullYear()-1980,F<<=4,F|=te.getUTCMonth()+1,F<<=5,F|=te.getUTCDate(),Y&&(le=s(1,1)+s(f(X),4)+G,Z+="up"+s(le.length,2)+le),b&&(Q=s(1,1)+s(f(se),4)+D,Z+="uc"+s(Q.length,2)+Q);var oe="";return oe+=`
\0`,oe+=s(H,2),oe+=q.magic,oe+=s(T,2),oe+=s(F,2),oe+=s(de.crc32,4),oe+=s(de.compressedSize,4),oe+=s(de.uncompressedSize,4),oe+=s(X.length,2),oe+=s(Z.length,2),{fileRecord:m.LOCAL_FILE_HEADER+oe+X+Z,dirRecord:m.CENTRAL_FILE_HEADER+s(ue,2)+oe+s(se.length,2)+"\0\0\0\0"+s(z,4)+s(E,4)+X+Z+se}}var o=n("../utils"),d=n("../stream/GenericWorker"),p=n("../utf8"),f=n("../crc32"),m=n("../signature");function w(h,x,_,E){d.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=x,this.zipPlatform=_,this.encodeFileName=E,this.streamFiles=h,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(w,d),w.prototype.push=function(h){var x=h.meta.percent||0,_=this.entriesCount,E=this._sources.length;this.accumulate?this.contentBuffer.push(h):(this.bytesWritten+=h.data.length,d.prototype.push.call(this,{data:h.data,meta:{currentFile:this.currentFile,percent:_?(x+100*(_-E-1))/_:100}}))},w.prototype.openedSource=function(h){this.currentSourceOffset=this.bytesWritten,this.currentFile=h.file.name;var x=this.streamFiles&&!h.file.dir;if(x){var _=a(h,x,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:_.fileRecord,meta:{percent:0}})}else this.accumulate=!0},w.prototype.closedSource=function(h){this.accumulate=!1;var x=this.streamFiles&&!h.file.dir,_=a(h,x,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(_.dirRecord),x)this.push({data:function(E){return m.DATA_DESCRIPTOR+s(E.crc32,4)+s(E.compressedSize,4)+s(E.uncompressedSize,4)}(h),meta:{percent:100}});else for(this.push({data:_.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},w.prototype.flush=function(){for(var h=this.bytesWritten,x=0;x<this.dirRecords.length;x++)this.push({data:this.dirRecords[x],meta:{percent:100}});var _=this.bytesWritten-h,E=function(v,S,T,F,j){var q=o.transformTo("string",j(F));return m.CENTRAL_DIRECTORY_END+"\0\0\0\0"+s(v,2)+s(v,2)+s(S,4)+s(T,4)+s(q.length,2)+q}(this.dirRecords.length,_,h,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(h){this._sources.push(h);var x=this;return h.on("data",function(_){x.processChunk(_)}),h.on("end",function(){x.closedSource(x.previous.streamInfo),x._sources.length?x.prepareNextSource():x.end()}),h.on("error",function(_){x.error(_)}),this},w.prototype.resume=function(){return!!d.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(h){var x=this._sources;if(!d.prototype.error.call(this,h))return!1;for(var _=0;_<x.length;_++)try{x[_].error(h)}catch(E){}return!0},w.prototype.lock=function(){d.prototype.lock.call(this);for(var h=this._sources,x=0;x<h.length;x++)h[x].lock()},r.exports=w},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,i){var s=n("../compressions"),a=n("./ZipFileWorker");i.generateWorker=function(o,d,p){var f=new a(d.streamFiles,p,d.platform,d.encodeFileName),m=0;try{o.forEach(function(w,h){m++;var x=function(S,T){var F=S||T,j=s[F];if(!j)throw new Error(F+" is not a valid compression method !");return j}(h.options.compression,d.compression),_=h.options.compressionOptions||d.compressionOptions||{},E=h.dir,v=h.date;h._compressWorker(x,_).withStreamInfo("file",{name:w,dir:E,date:v,comment:h.comment||"",unixPermissions:h.unixPermissions,dosPermissions:h.dosPermissions}).pipe(f)}),f.entriesCount=m}catch(w){f.error(w)}return f}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,r,i){function s(){if(!(this instanceof s))return new s;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 s;for(var o in this)typeof this[o]!="function"&&(a[o]=this[o]);return a}}(s.prototype=n("./object")).loadAsync=n("./load"),s.support=n("./support"),s.defaults=n("./defaults"),s.version="3.10.1",s.loadAsync=function(a,o){return new s().loadAsync(a,o)},s.external=n("./external"),r.exports=s},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,r,i){var s=n("./utils"),a=n("./external"),o=n("./utf8"),d=n("./zipEntries"),p=n("./stream/Crc32Probe"),f=n("./nodejsUtils");function m(w){return new a.Promise(function(h,x){var _=w.decompressed.getContentWorker().pipe(new p);_.on("error",function(E){x(E)}).on("end",function(){_.streamInfo.crc32!==w.decompressed.crc32?x(new Error("Corrupted zip : CRC32 mismatch")):h()}).resume()})}r.exports=function(w,h){var x=this;return h=s.extend(h||{},{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.")):s.prepareContent("the loaded zip file",w,!0,h.optimizedBinaryString,h.base64).then(function(_){var E=new d(h);return E.load(_),E}).then(function(_){var E=[a.Promise.resolve(_)],v=_.files;if(h.checkCRC32)for(var S=0;S<v.length;S++)E.push(m(v[S]));return a.Promise.all(E)}).then(function(_){for(var E=_.shift(),v=E.files,S=0;S<v.length;S++){var T=v[S],F=T.fileNameStr,j=s.resolve(T.fileNameStr);x.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:h.createFolders}),T.dir||(x.file(j).unsafeOriginalName=F)}return E.zipComment.length&&(x.comment=E.zipComment),x})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,i){var s=n("../utils"),a=n("../stream/GenericWorker");function o(d,p){a.call(this,"Nodejs stream input adapter for "+d),this._upstreamEnded=!1,this._bindStream(p)}s.inherits(o,a),o.prototype._bindStream=function(d){var p=this;(this._stream=d).pause(),d.on("data",function(f){p.push({data:f,meta:{percent:0}})}).on("error",function(f){p.isPaused?this.generatedError=f:p.error(f)}).on("end",function(){p.isPaused?p._upstreamEnded=!0:p.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,i){var s=n("readable-stream").Readable;function a(o,d,p){s.call(this,d),this._helper=o;var f=this;o.on("data",function(m,w){f.push(m)||f._helper.pause(),p&&p(w)}).on("error",function(m){f.emit("error",m)}).on("end",function(){f.push(null)})}n("../utils").inherits(a,s),a.prototype._read=function(){this._helper.resume()},r.exports=a},{"../utils":32,"readable-stream":16}],14:[function(n,r,i){r.exports={isNode:typeof Buffer!="undefined",newBufferFrom:function(s,a){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(s,a);if(typeof s=="number")throw new Error('The "data" argument must not be a number');return new Buffer(s,a)},allocBuffer:function(s){if(Buffer.alloc)return Buffer.alloc(s);var a=new Buffer(s);return a.fill(0),a},isBuffer:function(s){return Buffer.isBuffer(s)},isStream:function(s){return s&&typeof s.on=="function"&&typeof s.pause=="function"&&typeof s.resume=="function"}}},{}],15:[function(n,r,i){function s(j,q,L){var X,G=o.getTypeOf(q),ee=o.extend(L||{},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=v(j)),ee.createFolders&&(X=E(j))&&S.call(this,X,!0);var se=G==="string"&&ee.binary===!1&&ee.base64===!1;L&&L.binary!==void 0||(ee.binary=!se),(q instanceof m&&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 m||q instanceof d?q:x.isNode&&x.isStream(q)?new _(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"),d=n("./stream/GenericWorker"),p=n("./stream/StreamHelper"),f=n("./defaults"),m=n("./compressedObject"),w=n("./zipObject"),h=n("./generate"),x=n("./nodejsUtils"),_=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):""},v=function(j){return j.slice(-1)!=="/"&&(j+="/"),j},S=function(j,q){return q=q!==void 0?q:f.createFolders,j=v(j),this.files[j]||s.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,L,X;for(q in this.files)X=this.files[q],(L=q.slice(this.root.length,q.length))&&q.slice(0,this.root.length)===this.root&&j(L,X)},filter:function(j){var q=[];return this.forEach(function(L,X){j(L,X)&&q.push(X)}),q},file:function(j,q,L){if(arguments.length!==1)return j=this.root+j,s.call(this,j,q,L),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,L=S.call(this,q),X=this.clone();return X.root=L.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 L=this.filter(function(G,ee){return ee.name.slice(0,j.length)===j}),X=0;X<L.length;X++)delete this.files[L[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,L={};try{if((L=o.extend(j||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=L.type.toLowerCase(),L.compression=L.compression.toUpperCase(),L.type==="binarystring"&&(L.type="string"),!L.type)throw new Error("No output type specified.");o.checkSupport(L.type),L.platform!=="darwin"&&L.platform!=="freebsd"&&L.platform!=="linux"&&L.platform!=="sunos"||(L.platform="UNIX"),L.platform==="win32"&&(L.platform="DOS");var X=L.comment||this.comment||"";q=h.generateWorker(this,L,X)}catch(G){(q=new d("error")).error(G)}return new p(q,L.type||"string",L.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,i){r.exports=n("stream")},{stream:void 0}],17:[function(n,r,i){var s=n("./DataReader");function a(o){s.call(this,o);for(var d=0;d<this.data.length;d++)o[d]=255&o[d]}n("../utils").inherits(a,s),a.prototype.byteAt=function(o){return this.data[this.zero+o]},a.prototype.lastIndexOfSignature=function(o){for(var d=o.charCodeAt(0),p=o.charCodeAt(1),f=o.charCodeAt(2),m=o.charCodeAt(3),w=this.length-4;0<=w;--w)if(this.data[w]===d&&this.data[w+1]===p&&this.data[w+2]===f&&this.data[w+3]===m)return w-this.zero;return-1},a.prototype.readAndCheckSignature=function(o){var d=o.charCodeAt(0),p=o.charCodeAt(1),f=o.charCodeAt(2),m=o.charCodeAt(3),w=this.readData(4);return d===w[0]&&p===w[1]&&f===w[2]&&m===w[3]},a.prototype.readData=function(o){if(this.checkOffset(o),o===0)return[];var d=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,d},r.exports=a},{"../utils":32,"./DataReader":18}],18:[function(n,r,i){var s=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 d,p=0;for(this.checkOffset(o),d=this.index+o-1;d>=this.index;d--)p=(p<<8)+this.byteAt(d);return this.index+=o,p},readString:function(o){return s.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,i){var s=n("./Uint8ArrayReader");function a(o){s.call(this,o)}n("../utils").inherits(a,s),a.prototype.readData=function(o){this.checkOffset(o);var d=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,d},r.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,i){var s=n("./DataReader");function a(o){s.call(this,o)}n("../utils").inherits(a,s),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 d=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,d},r.exports=a},{"../utils":32,"./DataReader":18}],21:[function(n,r,i){var s=n("./ArrayReader");function a(o){s.call(this,o)}n("../utils").inherits(a,s),a.prototype.readData=function(o){if(this.checkOffset(o),o===0)return new Uint8Array(0);var d=this.data.subarray(this.zero+this.index,this.zero+this.index+o);return this.index+=o,d},r.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,i){var s=n("../utils"),a=n("../support"),o=n("./ArrayReader"),d=n("./StringReader"),p=n("./NodeBufferReader"),f=n("./Uint8ArrayReader");r.exports=function(m){var w=s.getTypeOf(m);return s.checkSupport(w),w!=="string"||a.uint8array?w==="nodebuffer"?new p(m):a.uint8array?new f(s.transformTo("uint8array",m)):new o(s.transformTo("array",m)):new d(m)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,r,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,r,i){var s=n("./GenericWorker"),a=n("../utils");function o(d){s.call(this,"ConvertWorker to "+d),this.destType=d}a.inherits(o,s),o.prototype.processChunk=function(d){this.push({data:a.transformTo(this.destType,d.data),meta:d.meta})},r.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,i){var s=n("./GenericWorker"),a=n("../crc32");function o(){s.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(o,s),o.prototype.processChunk=function(d){this.streamInfo.crc32=a(d.data,this.streamInfo.crc32||0),this.push(d)},r.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,i){var s=n("../utils"),a=n("./GenericWorker");function o(d){a.call(this,"DataLengthProbe for "+d),this.propName=d,this.withStreamInfo(d,0)}s.inherits(o,a),o.prototype.processChunk=function(d){if(d){var p=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=p+d.data.length}a.prototype.processChunk.call(this,d)},r.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,i){var s=n("../utils"),a=n("./GenericWorker");function o(d){a.call(this,"DataWorker");var p=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,d.then(function(f){p.dataIsReady=!0,p.data=f,p.max=f&&f.length||0,p.type=s.getTypeOf(f),p.isPaused||p._tickAndRepeat()},function(f){p.error(f)})}s.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,s.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(s.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var d=null,p=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":d=this.data.substring(this.index,p);break;case"uint8array":d=this.data.subarray(this.index,p);break;case"array":case"nodebuffer":d=this.data.slice(this.index,p)}return this.index=p,this.push({data:d,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,i){function s(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}s.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 d=0;d<this._listeners[a].length;d++)this._listeners[a][d].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(d){o.processChunk(d)}),a.on("end",function(){o.end()}),a.on("error",function(d){o.error(d)}),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=s},{}],29:[function(n,r,i){var s=n("../utils"),a=n("./ConvertWorker"),o=n("./GenericWorker"),d=n("../base64"),p=n("../support"),f=n("../external"),m=null;if(p.nodestream)try{m=n("../nodejs/NodejsStreamOutputAdapter")}catch(x){}function w(x,_){return new f.Promise(function(E,v){var S=[],T=x._internalType,F=x._outputType,j=x._mimeType;x.on("data",function(q,L){S.push(q),_&&_(L)}).on("error",function(q){S=[],v(q)}).on("end",function(){try{var q=function(L,X,G){switch(L){case"blob":return s.newBlob(s.transformTo("arraybuffer",X),G);case"base64":return d.encode(X);default:return s.transformTo(L,X)}}(F,function(L,X){var G,ee=0,se=null,D=0;for(G=0;G<X.length;G++)D+=X[G].length;switch(L){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 '"+L+"'")}}(T,S),j);E(q)}catch(L){v(L)}S=[]}).resume()})}function h(x,_,E){var v=_;switch(_){case"blob":case"arraybuffer":v="uint8array";break;case"base64":v="string"}try{this._internalType=v,this._outputType=_,this._mimeType=E,s.checkSupport(v),this._worker=x.pipe(new a(v)),x.lock()}catch(S){this._worker=new o("error"),this._worker.error(S)}}h.prototype={accumulate:function(x){return w(this,x)},on:function(x,_){var E=this;return x==="data"?this._worker.on(x,function(v){_.call(E,v.data,v.meta)}):this._worker.on(x,function(){s.delay(_,arguments,E)}),this},resume:function(){return s.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(x){if(s.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new m(this,{objectMode:this._outputType!=="nodebuffer"},x)}},r.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,r,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",i.nodebuffer=typeof Buffer!="undefined",i.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")i.blob=!1;else{var s=new ArrayBuffer(0);try{i.blob=new Blob([s],{type:"application/zip"}).size===0}catch(o){try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(s),i.blob=a.getBlob("application/zip").size===0}catch(d){i.blob=!1}}}try{i.nodestream=!!n("readable-stream").Readable}catch(o){i.nodestream=!1}},{"readable-stream":16}],31:[function(n,r,i){for(var s=n("./utils"),a=n("./support"),o=n("./nodejsUtils"),d=n("./stream/GenericWorker"),p=new Array(256),f=0;f<256;f++)p[f]=252<=f?6:248<=f?5:240<=f?4:224<=f?3:192<=f?2:1;p[254]=p[254]=1;function m(){d.call(this,"utf-8 decode"),this.leftOver=null}function w(){d.call(this,"utf-8 encode")}i.utf8encode=function(h){return a.nodebuffer?o.newBufferFrom(h,"utf-8"):function(x){var _,E,v,S,T,F=x.length,j=0;for(S=0;S<F;S++)(64512&(E=x.charCodeAt(S)))==55296&&S+1<F&&(64512&(v=x.charCodeAt(S+1)))==56320&&(E=65536+(E-55296<<10)+(v-56320),S++),j+=E<128?1:E<2048?2:E<65536?3:4;for(_=a.uint8array?new Uint8Array(j):new Array(j),S=T=0;T<j;S++)(64512&(E=x.charCodeAt(S)))==55296&&S+1<F&&(64512&(v=x.charCodeAt(S+1)))==56320&&(E=65536+(E-55296<<10)+(v-56320),S++),E<128?_[T++]=E:(E<2048?_[T++]=192|E>>>6:(E<65536?_[T++]=224|E>>>12:(_[T++]=240|E>>>18,_[T++]=128|E>>>12&63),_[T++]=128|E>>>6&63),_[T++]=128|63&E);return _}(h)},i.utf8decode=function(h){return a.nodebuffer?s.transformTo("nodebuffer",h).toString("utf-8"):function(x){var _,E,v,S,T=x.length,F=new Array(2*T);for(_=E=0;_<T;)if((v=x[_++])<128)F[E++]=v;else if(4<(S=p[v]))F[E++]=65533,_+=S-1;else{for(v&=S===2?31:S===3?15:7;1<S&&_<T;)v=v<<6|63&x[_++],S--;1<S?F[E++]=65533:v<65536?F[E++]=v:(v-=65536,F[E++]=55296|v>>10&1023,F[E++]=56320|1023&v)}return F.length!==E&&(F.subarray?F=F.subarray(0,E):F.length=E),s.applyFromCharCode(F)}(h=s.transformTo(a.uint8array?"uint8array":"array",h))},s.inherits(m,d),m.prototype.processChunk=function(h){var x=s.transformTo(a.uint8array?"uint8array":"array",h.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var _=x;(x=new Uint8Array(_.length+this.leftOver.length)).set(this.leftOver,0),x.set(_,this.leftOver.length)}else x=this.leftOver.concat(x);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+p[S[F]]>T?F:T}(x),v=x;E!==x.length&&(a.uint8array?(v=x.subarray(0,E),this.leftOver=x.subarray(E,x.length)):(v=x.slice(0,E),this.leftOver=x.slice(E,x.length))),this.push({data:i.utf8decode(v),meta:h.meta})},m.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=m,s.inherits(w,d),w.prototype.processChunk=function(h){this.push({data:i.utf8encode(h.data),meta:h.meta})},i.Utf8EncodeWorker=w},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,i){var s=n("./support"),a=n("./base64"),o=n("./nodejsUtils"),d=n("./external");function p(_){return _}function f(_,E){for(var v=0;v<_.length;++v)E[v]=255&_.charCodeAt(v);return E}n("setimmediate"),i.newBlob=function(_,E){i.checkSupport("blob");try{return new Blob([_],{type:E})}catch(S){try{var v=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return v.append(_),v.getBlob(E)}catch(T){throw new Error("Bug : can't construct the Blob.")}}};var m={stringifyByChunk:function(_,E,v){var S=[],T=0,F=_.length;if(F<=v)return String.fromCharCode.apply(null,_);for(;T<F;)E==="array"||E==="nodebuffer"?S.push(String.fromCharCode.apply(null,_.slice(T,Math.min(T+v,F)))):S.push(String.fromCharCode.apply(null,_.subarray(T,Math.min(T+v,F)))),T+=v;return S.join("")},stringifyByChar:function(_){for(var E="",v=0;v<_.length;v++)E+=String.fromCharCode(_[v]);return E},applyCanBeUsed:{uint8array:function(){try{return s.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(_){return!1}}(),nodebuffer:function(){try{return s.nodebuffer&&String.fromCharCode.apply(null,o.allocBuffer(1)).length===1}catch(_){return!1}}()}};function w(_){var E=65536,v=i.getTypeOf(_),S=!0;if(v==="uint8array"?S=m.applyCanBeUsed.uint8array:v==="nodebuffer"&&(S=m.applyCanBeUsed.nodebuffer),S)for(;1<E;)try{return m.stringifyByChunk(_,v,E)}catch(T){E=Math.floor(E/2)}return m.stringifyByChar(_)}function h(_,E){for(var v=0;v<_.length;v++)E[v]=_[v];return E}i.applyFromCharCode=w;var x={};x.string={string:p,array:function(_){return f(_,new Array(_.length))},arraybuffer:function(_){return x.string.uint8array(_).buffer},uint8array:function(_){return f(_,new Uint8Array(_.length))},nodebuffer:function(_){return f(_,o.allocBuffer(_.length))}},x.array={string:w,array:p,arraybuffer:function(_){return new Uint8Array(_).buffer},uint8array:function(_){return new Uint8Array(_)},nodebuffer:function(_){return o.newBufferFrom(_)}},x.arraybuffer={string:function(_){return w(new Uint8Array(_))},array:function(_){return h(new Uint8Array(_),new Array(_.byteLength))},arraybuffer:p,uint8array:function(_){return new Uint8Array(_)},nodebuffer:function(_){return o.newBufferFrom(new Uint8Array(_))}},x.uint8array={string:w,array:function(_){return h(_,new Array(_.length))},arraybuffer:function(_){return _.buffer},uint8array:p,nodebuffer:function(_){return o.newBufferFrom(_)}},x.nodebuffer={string:w,array:function(_){return h(_,new Array(_.length))},arraybuffer:function(_){return x.nodebuffer.uint8array(_).buffer},uint8array:function(_){return h(_,new Uint8Array(_.length))},nodebuffer:p},i.transformTo=function(_,E){if(E=E||"",!_)return E;i.checkSupport(_);var v=i.getTypeOf(E);return x[v][_](E)},i.resolve=function(_){for(var E=_.split("/"),v=[],S=0;S<E.length;S++){var T=E[S];T==="."||T===""&&S!==0&&S!==E.length-1||(T===".."?v.pop():v.push(T))}return v.join("/")},i.getTypeOf=function(_){return typeof _=="string"?"string":Object.prototype.toString.call(_)==="[object Array]"?"array":s.nodebuffer&&o.isBuffer(_)?"nodebuffer":s.uint8array&&_ instanceof Uint8Array?"uint8array":s.arraybuffer&&_ instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(_){if(!s[_.toLowerCase()])throw new Error(_+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(_){var E,v,S="";for(v=0;v<(_||"").length;v++)S+="\\x"+((E=_.charCodeAt(v))<16?"0":"")+E.toString(16).toUpperCase();return S},i.delay=function(_,E,v){setImmediate(function(){_.apply(v||null,E||[])})},i.inherits=function(_,E){function v(){}v.prototype=E.prototype,_.prototype=new v},i.extend=function(){var _,E,v={};for(_=0;_<arguments.length;_++)for(E in arguments[_])Object.prototype.hasOwnProperty.call(arguments[_],E)&&v[E]===void 0&&(v[E]=arguments[_][E]);return v},i.prepareContent=function(_,E,v,S,T){return d.Promise.resolve(E).then(function(F){return s.blob&&(F instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(F))!==-1)&&typeof FileReader!="undefined"?new d.Promise(function(j,q){var L=new FileReader;L.onload=function(X){j(X.target.result)},L.onerror=function(X){q(X.target.error)},L.readAsArrayBuffer(F)}):F}).then(function(F){var j=i.getTypeOf(F);return j?(j==="arraybuffer"?F=i.transformTo("uint8array",F):j==="string"&&(T?F=a.decode(F):v&&S!==!0&&(F=function(q){return f(q,s.uint8array?new Uint8Array(q.length):new Array(q.length))}(F))),F):d.Promise.reject(new Error("Can't read the data of '"+_+"'. 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,i){var s=n("./reader/readerFor"),a=n("./utils"),o=n("./signature"),d=n("./zipEntry"),p=n("./support");function f(m){this.files=[],this.loadOptions=m}f.prototype={checkSignature:function(m){if(!this.reader.readAndCheckSignature(m)){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(m)+")")}},isSignature:function(m,w){var h=this.reader.index;this.reader.setIndex(m);var x=this.reader.readString(4)===w;return this.reader.setIndex(h),x},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 m=this.reader.readData(this.zipCommentLength),w=p.uint8array?"uint8array":"array",h=a.transformTo(w,m);this.zipComment=this.loadOptions.decodeFileName(h)},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 m,w,h,x=this.zip64EndOfCentralSize-44;0<x;)m=this.reader.readInt(2),w=this.reader.readInt(4),h=this.reader.readData(w),this.zip64ExtensibleData[m]={id:m,length:w,value:h}},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 m,w;for(m=0;m<this.files.length;m++)w=this.files[m],this.reader.setIndex(w.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),w.readLocalPart(this.reader),w.handleUTF8(),w.processAttributes()},readCentralDir:function(){var m;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(m=new d({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(m);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 m=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(m<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(m);var w=m;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,(m=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(m),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 h=this.centralDirOffset+this.centralDirSize;this.zip64&&(h+=20,h+=12+this.zip64EndOfCentralSize);var x=w-h;if(0<x)this.isSignature(w,o.CENTRAL_FILE_HEADER)||(this.reader.zero=x);else if(x<0)throw new Error("Corrupted zip: missing "+Math.abs(x)+" bytes.")},prepareReader:function(m){this.reader=s(m)},load:function(m){this.prepareReader(m),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=f},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,r,i){var s=n("./reader/readerFor"),a=n("./utils"),o=n("./compressedObject"),d=n("./crc32"),p=n("./utf8"),f=n("./compressions"),m=n("./support");function w(h,x){this.options=h,this.loadOptions=x}w.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(h){var x,_;if(h.skip(22),this.fileNameLength=h.readInt(2),_=h.readInt(2),this.fileName=h.readData(this.fileNameLength),h.skip(_),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((x=function(E){for(var v in f)if(Object.prototype.hasOwnProperty.call(f,v)&&f[v].magic===E)return f[v];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,x,h.readData(this.compressedSize))},readCentralPart:function(h){this.versionMadeBy=h.readInt(2),h.skip(2),this.bitFlag=h.readInt(2),this.compressionMethod=h.readString(2),this.date=h.readDate(),this.crc32=h.readInt(4),this.compressedSize=h.readInt(4),this.uncompressedSize=h.readInt(4);var x=h.readInt(2);if(this.extraFieldsLength=h.readInt(2),this.fileCommentLength=h.readInt(2),this.diskNumberStart=h.readInt(2),this.internalFileAttributes=h.readInt(2),this.externalFileAttributes=h.readInt(4),this.localHeaderOffset=h.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");h.skip(x),this.readExtraFields(h),this.parseZIP64ExtraField(h),this.fileComment=h.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var h=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),h==0&&(this.dosPermissions=63&this.externalFileAttributes),h==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var h=s(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=h.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=h.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=h.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=h.readInt(4))}},readExtraFields:function(h){var x,_,E,v=h.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});h.index+4<v;)x=h.readInt(2),_=h.readInt(2),E=h.readData(_),this.extraFields[x]={id:x,length:_,value:E};h.setIndex(v)},handleUTF8:function(){var h=m.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=p.utf8decode(this.fileName),this.fileCommentStr=p.utf8decode(this.fileComment);else{var x=this.findExtraFieldUnicodePath();if(x!==null)this.fileNameStr=x;else{var _=a.transformTo(h,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(_)}var E=this.findExtraFieldUnicodeComment();if(E!==null)this.fileCommentStr=E;else{var v=a.transformTo(h,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(v)}}},findExtraFieldUnicodePath:function(){var h=this.extraFields[28789];if(h){var x=s(h.value);return x.readInt(1)!==1||d(this.fileName)!==x.readInt(4)?null:p.utf8decode(x.readData(h.length-5))}return null},findExtraFieldUnicodeComment:function(){var h=this.extraFields[25461];if(h){var x=s(h.value);return x.readInt(1)!==1||d(this.fileComment)!==x.readInt(4)?null:p.utf8decode(x.readData(h.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,i){function s(x,_,E){this.name=x,this.dir=E.dir,this.date=E.date,this.comment=E.comment,this.unixPermissions=E.unixPermissions,this.dosPermissions=E.dosPermissions,this._data=_,this._dataBinary=E.binary,this.options={compression:E.compression,compressionOptions:E.compressionOptions}}var a=n("./stream/StreamHelper"),o=n("./stream/DataWorker"),d=n("./utf8"),p=n("./compressedObject"),f=n("./stream/GenericWorker");s.prototype={internalStream:function(x){var _=null,E="string";try{if(!x)throw new Error("No output type specified.");var v=(E=x.toLowerCase())==="string"||E==="text";E!=="binarystring"&&E!=="text"||(E="string"),_=this._decompressWorker();var S=!this._dataBinary;S&&!v&&(_=_.pipe(new d.Utf8EncodeWorker)),!S&&v&&(_=_.pipe(new d.Utf8DecodeWorker))}catch(T){(_=new f("error")).error(T)}return new a(_,E,"")},async:function(x,_){return this.internalStream(x).accumulate(_)},nodeStream:function(x,_){return this.internalStream(x||"nodebuffer").toNodejsStream(_)},_compressWorker:function(x,_){if(this._data instanceof p&&this._data.compression.magic===x.magic)return this._data.getCompressedWorker();var E=this._decompressWorker();return this._dataBinary||(E=E.pipe(new d.Utf8EncodeWorker)),p.createWorkerFrom(E,x,_)},_decompressWorker:function(){return this._data instanceof p?this._data.getContentWorker():this._data instanceof f?this._data:new o(this._data)}};for(var m=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],w=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<m.length;h++)s.prototype[m[h]]=w;r.exports=s},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,r,i){(function(s){var a,o,d=s.MutationObserver||s.WebKitMutationObserver;if(d){var p=0,f=new d(x),m=s.document.createTextNode("");f.observe(m,{characterData:!0}),a=function(){m.data=p=++p%2}}else if(s.setImmediate||s.MessageChannel===void 0)a="document"in s&&"onreadystatechange"in s.document.createElement("script")?function(){var _=s.document.createElement("script");_.onreadystatechange=function(){x(),_.onreadystatechange=null,_.parentNode.removeChild(_),_=null},s.document.documentElement.appendChild(_)}:function(){setTimeout(x,0)};else{var w=new s.MessageChannel;w.port1.onmessage=x,a=function(){w.port2.postMessage(0)}}var h=[];function x(){var _,E;o=!0;for(var v=h.length;v;){for(E=h,h=[],_=-1;++_<v;)E[_]();v=h.length}o=!1}r.exports=function(_){h.push(_)!==1||o||a()}}).call(this,typeof Ur!="undefined"?Ur:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(n,r,i){var s=n("immediate");function a(){}var o={},d=["REJECTED"],p=["FULFILLED"],f=["PENDING"];function m(v){if(typeof v!="function")throw new TypeError("resolver must be a function");this.state=f,this.queue=[],this.outcome=void 0,v!==a&&_(this,v)}function w(v,S,T){this.promise=v,typeof S=="function"&&(this.onFulfilled=S,this.callFulfilled=this.otherCallFulfilled),typeof T=="function"&&(this.onRejected=T,this.callRejected=this.otherCallRejected)}function h(v,S,T){s(function(){var F;try{F=S(T)}catch(j){return o.reject(v,j)}F===v?o.reject(v,new TypeError("Cannot resolve promise with itself")):o.resolve(v,F)})}function x(v){var S=v&&v.then;if(v&&(typeof v=="object"||typeof v=="function")&&typeof S=="function")return function(){S.apply(v,arguments)}}function _(v,S){var T=!1;function F(L){T||(T=!0,o.reject(v,L))}function j(L){T||(T=!0,o.resolve(v,L))}var q=E(function(){S(j,F)});q.status==="error"&&F(q.value)}function E(v,S){var T={};try{T.value=v(S),T.status="success"}catch(F){T.status="error",T.value=F}return T}(r.exports=m).prototype.finally=function(v){if(typeof v!="function")return this;var S=this.constructor;return this.then(function(T){return S.resolve(v()).then(function(){return T})},function(T){return S.resolve(v()).then(function(){throw T})})},m.prototype.catch=function(v){return this.then(null,v)},m.prototype.then=function(v,S){if(typeof v!="function"&&this.state===p||typeof S!="function"&&this.state===d)return this;var T=new this.constructor(a);return this.state!==f?h(T,this.state===p?v:S,this.outcome):this.queue.push(new w(T,v,S)),T},w.prototype.callFulfilled=function(v){o.resolve(this.promise,v)},w.prototype.otherCallFulfilled=function(v){h(this.promise,this.onFulfilled,v)},w.prototype.callRejected=function(v){o.reject(this.promise,v)},w.prototype.otherCallRejected=function(v){h(this.promise,this.onRejected,v)},o.resolve=function(v,S){var T=E(x,S);if(T.status==="error")return o.reject(v,T.value);var F=T.value;if(F)_(v,F);else{v.state=p,v.outcome=S;for(var j=-1,q=v.queue.length;++j<q;)v.queue[j].callFulfilled(S)}return v},o.reject=function(v,S){v.state=d,v.outcome=S;for(var T=-1,F=v.queue.length;++T<F;)v.queue[T].callRejected(S);return v},m.resolve=function(v){return v instanceof this?v:o.resolve(new this(a),v)},m.reject=function(v){var S=new this(a);return o.reject(S,v)},m.all=function(v){var S=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var T=v.length,F=!1;if(!T)return this.resolve([]);for(var j=new Array(T),q=0,L=-1,X=new this(a);++L<T;)G(v[L],L);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))})}},m.race=function(v){var S=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var T=v.length,F=!1;if(!T)return this.resolve([]);for(var j=-1,q=new this(a);++j<T;)L=v[j],S.resolve(L).then(function(X){F||(F=!0,o.resolve(q,X))},function(X){F||(F=!0,o.reject(q,X))});var L;return q}},{immediate:36}],38:[function(n,r,i){var s={};(0,n("./lib/utils/common").assign)(s,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),r.exports=s},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,r,i){var s=n("./zlib/deflate"),a=n("./utils/common"),o=n("./utils/strings"),d=n("./zlib/messages"),p=n("./zlib/zstream"),f=Object.prototype.toString,m=0,w=-1,h=0,x=8;function _(v){if(!(this instanceof _))return new _(v);this.options=a.assign({level:w,method:x,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},v||{});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 p,this.strm.avail_out=0;var T=s.deflateInit2(this.strm,S.level,S.method,S.windowBits,S.memLevel,S.strategy);if(T!==m)throw new Error(d[T]);if(S.header&&s.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=s.deflateSetDictionary(this.strm,F))!==m)throw new Error(d[T]);this._dict_set=!0}}function E(v,S){var T=new _(S);if(T.push(v,!0),T.err)throw T.msg||d[T.err];return T.result}_.prototype.push=function(v,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 v=="string"?j.input=o.string2buf(v):f.call(v)==="[object ArrayBuffer]"?j.input=new Uint8Array(v):j.input=v,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=s.deflate(j,F))!==1&&T!==m)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=s.deflateEnd(this.strm),this.onEnd(T),this.ended=!0,T===m):F!==2||(this.onEnd(m),!(j.avail_out=0))},_.prototype.onData=function(v){this.chunks.push(v)},_.prototype.onEnd=function(v){v===m&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=v,this.msg=this.strm.msg},i.Deflate=_,i.deflate=E,i.deflateRaw=function(v,S){return(S=S||{}).raw=!0,E(v,S)},i.gzip=function(v,S){return(S=S||{}).gzip=!0,E(v,S)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,r,i){var s=n("./zlib/inflate"),a=n("./utils/common"),o=n("./utils/strings"),d=n("./zlib/constants"),p=n("./zlib/messages"),f=n("./zlib/zstream"),m=n("./zlib/gzheader"),w=Object.prototype.toString;function h(_){if(!(this instanceof h))return new h(_);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},_||{});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)||_&&_.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 v=s.inflateInit2(this.strm,E.windowBits);if(v!==d.Z_OK)throw new Error(p[v]);this.header=new m,s.inflateGetHeader(this.strm,this.header)}function x(_,E){var v=new h(E);if(v.push(_,!0),v.err)throw v.msg||p[v.err];return v.result}h.prototype.push=function(_,E){var v,S,T,F,j,q,L=this.strm,X=this.options.chunkSize,G=this.options.dictionary,ee=!1;if(this.ended)return!1;S=E===~~E?E:E===!0?d.Z_FINISH:d.Z_NO_FLUSH,typeof _=="string"?L.input=o.binstring2buf(_):w.call(_)==="[object ArrayBuffer]"?L.input=new Uint8Array(_):L.input=_,L.next_in=0,L.avail_in=L.input.length;do{if(L.avail_out===0&&(L.output=new a.Buf8(X),L.next_out=0,L.avail_out=X),(v=s.inflate(L,d.Z_NO_FLUSH))===d.Z_NEED_DICT&&G&&(q=typeof G=="string"?o.string2buf(G):w.call(G)==="[object ArrayBuffer]"?new Uint8Array(G):G,v=s.inflateSetDictionary(this.strm,q)),v===d.Z_BUF_ERROR&&ee===!0&&(v=d.Z_OK,ee=!1),v!==d.Z_STREAM_END&&v!==d.Z_OK)return this.onEnd(v),!(this.ended=!0);L.next_out&&(L.avail_out!==0&&v!==d.Z_STREAM_END&&(L.avail_in!==0||S!==d.Z_FINISH&&S!==d.Z_SYNC_FLUSH)||(this.options.to==="string"?(T=o.utf8border(L.output,L.next_out),F=L.next_out-T,j=o.buf2string(L.output,T),L.next_out=F,L.avail_out=X-F,F&&a.arraySet(L.output,L.output,T,F,0),this.onData(j)):this.onData(a.shrinkBuf(L.output,L.next_out)))),L.avail_in===0&&L.avail_out===0&&(ee=!0)}while((0<L.avail_in||L.avail_out===0)&&v!==d.Z_STREAM_END);return v===d.Z_STREAM_END&&(S=d.Z_FINISH),S===d.Z_FINISH?(v=s.inflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===d.Z_OK):S!==d.Z_SYNC_FLUSH||(this.onEnd(d.Z_OK),!(L.avail_out=0))},h.prototype.onData=function(_){this.chunks.push(_)},h.prototype.onEnd=function(_){_===d.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=_,this.msg=this.strm.msg},i.Inflate=h,i.inflate=x,i.inflateRaw=function(_,E){return(E=E||{}).raw=!0,x(_,E)},i.ungzip=x},{"./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,i){var s=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";i.assign=function(d){for(var p=Array.prototype.slice.call(arguments,1);p.length;){var f=p.shift();if(f){if(typeof f!="object")throw new TypeError(f+"must be non-object");for(var m in f)f.hasOwnProperty(m)&&(d[m]=f[m])}}return d},i.shrinkBuf=function(d,p){return d.length===p?d:d.subarray?d.subarray(0,p):(d.length=p,d)};var a={arraySet:function(d,p,f,m,w){if(p.subarray&&d.subarray)d.set(p.subarray(f,f+m),w);else for(var h=0;h<m;h++)d[w+h]=p[f+h]},flattenChunks:function(d){var p,f,m,w,h,x;for(p=m=0,f=d.length;p<f;p++)m+=d[p].length;for(x=new Uint8Array(m),p=w=0,f=d.length;p<f;p++)h=d[p],x.set(h,w),w+=h.length;return x}},o={arraySet:function(d,p,f,m,w){for(var h=0;h<m;h++)d[w+h]=p[f+h]},flattenChunks:function(d){return[].concat.apply([],d)}};i.setTyped=function(d){d?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,a)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,o))},i.setTyped(s)},{}],42:[function(n,r,i){var s=n("./common"),a=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(m){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(m){o=!1}for(var d=new s.Buf8(256),p=0;p<256;p++)d[p]=252<=p?6:248<=p?5:240<=p?4:224<=p?3:192<=p?2:1;function f(m,w){if(w<65537&&(m.subarray&&o||!m.subarray&&a))return String.fromCharCode.apply(null,s.shrinkBuf(m,w));for(var h="",x=0;x<w;x++)h+=String.fromCharCode(m[x]);return h}d[254]=d[254]=1,i.string2buf=function(m){var w,h,x,_,E,v=m.length,S=0;for(_=0;_<v;_++)(64512&(h=m.charCodeAt(_)))==55296&&_+1<v&&(64512&(x=m.charCodeAt(_+1)))==56320&&(h=65536+(h-55296<<10)+(x-56320),_++),S+=h<128?1:h<2048?2:h<65536?3:4;for(w=new s.Buf8(S),_=E=0;E<S;_++)(64512&(h=m.charCodeAt(_)))==55296&&_+1<v&&(64512&(x=m.charCodeAt(_+1)))==56320&&(h=65536+(h-55296<<10)+(x-56320),_++),h<128?w[E++]=h:(h<2048?w[E++]=192|h>>>6:(h<65536?w[E++]=224|h>>>12:(w[E++]=240|h>>>18,w[E++]=128|h>>>12&63),w[E++]=128|h>>>6&63),w[E++]=128|63&h);return w},i.buf2binstring=function(m){return f(m,m.length)},i.binstring2buf=function(m){for(var w=new s.Buf8(m.length),h=0,x=w.length;h<x;h++)w[h]=m.charCodeAt(h);return w},i.buf2string=function(m,w){var h,x,_,E,v=w||m.length,S=new Array(2*v);for(h=x=0;h<v;)if((_=m[h++])<128)S[x++]=_;else if(4<(E=d[_]))S[x++]=65533,h+=E-1;else{for(_&=E===2?31:E===3?15:7;1<E&&h<v;)_=_<<6|63&m[h++],E--;1<E?S[x++]=65533:_<65536?S[x++]=_:(_-=65536,S[x++]=55296|_>>10&1023,S[x++]=56320|1023&_)}return f(S,x)},i.utf8border=function(m,w){var h;for((w=w||m.length)>m.length&&(w=m.length),h=w-1;0<=h&&(192&m[h])==128;)h--;return h<0||h===0?w:h+d[m[h]]>w?h:w}},{"./common":41}],43:[function(n,r,i){r.exports=function(s,a,o,d){for(var p=65535&s|0,f=s>>>16&65535|0,m=0;o!==0;){for(o-=m=2e3<o?2e3:o;f=f+(p=p+a[d++]|0)|0,--m;);p%=65521,f%=65521}return p|f<<16|0}},{}],44:[function(n,r,i){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,i){var s=function(){for(var a,o=[],d=0;d<256;d++){a=d;for(var p=0;p<8;p++)a=1&a?3988292384^a>>>1:a>>>1;o[d]=a}return o}();r.exports=function(a,o,d,p){var f=s,m=p+d;a^=-1;for(var w=p;w<m;w++)a=a>>>8^f[255&(a^o[w])];return-1^a}},{}],46:[function(n,r,i){var s,a=n("../utils/common"),o=n("./trees"),d=n("./adler32"),p=n("./crc32"),f=n("./messages"),m=0,w=4,h=0,x=-2,_=-1,E=4,v=2,S=8,T=9,F=286,j=30,q=19,L=2*F+1,X=15,G=3,ee=258,se=ee+G+1,D=42,Y=113,b=1,Z=2,le=3,Q=4;function ae(u,R){return u.msg=f[R],R}function te(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 z(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 ue(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,k,y=u.max_chain_length,A=u.strstart,M=u.prev_length,P=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),P>u.lookahead&&(P=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(k=ee-(re-A),A=re-ee,M<k){if(u.match_start=R,P<=(M=k))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,k,y,A,M,P,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;k=u.head[--R],u.head[R]=V<=k?k-V:0,--O;);for(R=O=V;k=u.prev[--R],u.prev[R]=V<=k?k-V:0,--O;);y+=V}if(u.strm.avail_in===0)break;if(M=u.strm,P=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(P,M.input,M.next_in,J,B),M.state.wrap===1?M.adler=d(M.adler,P,J,B):M.state.wrap===2&&(M.adler=p(M.adler,P,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 je(u,R){for(var O,k;;){if(u.lookahead<se){if(xe(u),u.lookahead<se&&R===m)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(k=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 k=o._tr_tally(u,0,u.window[u.strstart]),u.lookahead--,u.strstart++;if(k&&(z(u,!1),u.strm.avail_out===0))return b}return u.insert=u.strstart<G-1?u.strstart:G-1,R===w?(z(u,!0),u.strm.avail_out===0?le:Q):u.last_lit&&(z(u,!1),u.strm.avail_out===0)?b:Z}function me(u,R){for(var O,k,y;;){if(u.lookahead<se){if(xe(u),u.lookahead<se&&R===m)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,k=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++,k&&(z(u,!1),u.strm.avail_out===0))return b}else if(u.match_available){if((k=o._tr_tally(u,0,u.window[u.strstart-1]))&&z(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&&(k=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?(z(u,!0),u.strm.avail_out===0?le:Q):u.last_lit&&(z(u,!1),u.strm.avail_out===0)?b:Z}function we(u,R,O,k,y){this.good_length=u,this.max_lazy=R,this.nice_length=O,this.max_chain=k,this.func=y}function Be(){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*L),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=v,(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=m,o._tr_init(R),h):ae(u,x)}function C(u){var R=Ae(u);return R===h&&function(O){O.window_size=2*O.w_size,de(O.head),O.max_lazy_match=s[O.level].max_lazy,O.good_match=s[O.level].good_length,O.nice_match=s[O.level].nice_length,O.max_chain_length=s[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 U(u,R,O,k,y,A){if(!u)return x;var M=1;if(R===_&&(R=6),k<0?(M=0,k=-k):15<k&&(M=2,k-=16),y<1||T<y||O!==S||k<8||15<k||R<0||9<R||A<0||E<A)return ae(u,x);k===8&&(k=9);var P=new Be;return(u.state=P).strm=u,P.wrap=M,P.gzhead=null,P.w_bits=k,P.w_size=1<<P.w_bits,P.w_mask=P.w_size-1,P.hash_bits=y+7,P.hash_size=1<<P.hash_bits,P.hash_mask=P.hash_size-1,P.hash_shift=~~((P.hash_bits+G-1)/G),P.window=new a.Buf8(2*P.w_size),P.head=new a.Buf16(P.hash_size),P.prev=new a.Buf16(P.w_size),P.lit_bufsize=1<<y+6,P.pending_buf_size=4*P.lit_bufsize,P.pending_buf=new a.Buf8(P.pending_buf_size),P.d_buf=1*P.lit_bufsize,P.l_buf=3*P.lit_bufsize,P.level=R,P.strategy=A,P.method=O,C(u)}s=[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===m)return b;if(u.lookahead===0)break}u.strstart+=u.lookahead,u.lookahead=0;var k=u.block_start+O;if((u.strstart===0||u.strstart>=k)&&(u.lookahead=u.strstart-k,u.strstart=k,z(u,!1),u.strm.avail_out===0)||u.strstart-u.block_start>=u.w_size-se&&(z(u,!1),u.strm.avail_out===0))return b}return u.insert=0,R===w?(z(u,!0),u.strm.avail_out===0?le:Q):(u.strstart>u.block_start&&(z(u,!1),u.strm.avail_out),b)}),new we(4,4,8,4,je),new we(4,5,16,8,je),new we(4,6,32,32,je),new we(4,4,16,16,me),new we(8,16,32,32,me),new we(8,16,128,128,me),new we(8,32,128,256,me),new we(32,128,258,1024,me),new we(32,258,258,4096,me)],i.deflateInit=function(u,R){return U(u,R,S,15,8,0)},i.deflateInit2=U,i.deflateReset=C,i.deflateResetKeep=Ae,i.deflateSetHeader=function(u,R){return u&&u.state?u.state.wrap!==2?x:(u.state.gzhead=R,h):x},i.deflate=function(u,R){var O,k,y,A;if(!u||!u.state||5<R||R<0)return u?ae(u,x):x;if(k=u.state,!u.output||!u.input&&u.avail_in!==0||k.status===666&&R!==w)return ae(u,u.avail_out===0?-5:x);if(k.strm=u,O=k.last_flush,k.last_flush=R,k.status===D)if(k.wrap===2)u.adler=0,ue(k,31),ue(k,139),ue(k,8),k.gzhead?(ue(k,(k.gzhead.text?1:0)+(k.gzhead.hcrc?2:0)+(k.gzhead.extra?4:0)+(k.gzhead.name?8:0)+(k.gzhead.comment?16:0)),ue(k,255&k.gzhead.time),ue(k,k.gzhead.time>>8&255),ue(k,k.gzhead.time>>16&255),ue(k,k.gzhead.time>>24&255),ue(k,k.level===9?2:2<=k.strategy||k.level<2?4:0),ue(k,255&k.gzhead.os),k.gzhead.extra&&k.gzhead.extra.length&&(ue(k,255&k.gzhead.extra.length),ue(k,k.gzhead.extra.length>>8&255)),k.gzhead.hcrc&&(u.adler=p(u.adler,k.pending_buf,k.pending,0)),k.gzindex=0,k.status=69):(ue(k,0),ue(k,0),ue(k,0),ue(k,0),ue(k,0),ue(k,k.level===9?2:2<=k.strategy||k.level<2?4:0),ue(k,3),k.status=Y);else{var M=S+(k.w_bits-8<<4)<<8;M|=(2<=k.strategy||k.level<2?0:k.level<6?1:k.level===6?2:3)<<6,k.strstart!==0&&(M|=32),M+=31-M%31,k.status=Y,oe(k,M),k.strstart!==0&&(oe(k,u.adler>>>16),oe(k,65535&u.adler)),u.adler=1}if(k.status===69)if(k.gzhead.extra){for(y=k.pending;k.gzindex<(65535&k.gzhead.extra.length)&&(k.pending!==k.pending_buf_size||(k.gzhead.hcrc&&k.pending>y&&(u.adler=p(u.adler,k.pending_buf,k.pending-y,y)),H(u),y=k.pending,k.pending!==k.pending_buf_size));)ue(k,255&k.gzhead.extra[k.gzindex]),k.gzindex++;k.gzhead.hcrc&&k.pending>y&&(u.adler=p(u.adler,k.pending_buf,k.pending-y,y)),k.gzindex===k.gzhead.extra.length&&(k.gzindex=0,k.status=73)}else k.status=73;if(k.status===73)if(k.gzhead.name){y=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>y&&(u.adler=p(u.adler,k.pending_buf,k.pending-y,y)),H(u),y=k.pending,k.pending===k.pending_buf_size)){A=1;break}A=k.gzindex<k.gzhead.name.length?255&k.gzhead.name.charCodeAt(k.gzindex++):0,ue(k,A)}while(A!==0);k.gzhead.hcrc&&k.pending>y&&(u.adler=p(u.adler,k.pending_buf,k.pending-y,y)),A===0&&(k.gzindex=0,k.status=91)}else k.status=91;if(k.status===91)if(k.gzhead.comment){y=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>y&&(u.adler=p(u.adler,k.pending_buf,k.pending-y,y)),H(u),y=k.pending,k.pending===k.pending_buf_size)){A=1;break}A=k.gzindex<k.gzhead.comment.length?255&k.gzhead.comment.charCodeAt(k.gzindex++):0,ue(k,A)}while(A!==0);k.gzhead.hcrc&&k.pending>y&&(u.adler=p(u.adler,k.pending_buf,k.pending-y,y)),A===0&&(k.status=103)}else k.status=103;if(k.status===103&&(k.gzhead.hcrc?(k.pending+2>k.pending_buf_size&&H(u),k.pending+2<=k.pending_buf_size&&(ue(k,255&u.adler),ue(k,u.adler>>8&255),u.adler=0,k.status=Y)):k.status=Y),k.pending!==0){if(H(u),u.avail_out===0)return k.last_flush=-1,h}else if(u.avail_in===0&&te(R)<=te(O)&&R!==w)return ae(u,-5);if(k.status===666&&u.avail_in!==0)return ae(u,-5);if(u.avail_in!==0||k.lookahead!==0||R!==m&&k.status!==666){var P=k.strategy===2?function(B,K){for(var J;;){if(B.lookahead===0&&(xe(B),B.lookahead===0)){if(K===m)return b;break}if(B.match_length=0,J=o._tr_tally(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++,J&&(z(B,!1),B.strm.avail_out===0))return b}return B.insert=0,K===w?(z(B,!0),B.strm.avail_out===0?le:Q):B.last_lit&&(z(B,!1),B.strm.avail_out===0)?b:Z}(k,R):k.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===m)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&&(z(B,!1),B.strm.avail_out===0))return b}return B.insert=0,K===w?(z(B,!0),B.strm.avail_out===0?le:Q):B.last_lit&&(z(B,!1),B.strm.avail_out===0)?b:Z}(k,R):s[k.level].func(k,R);if(P!==le&&P!==Q||(k.status=666),P===b||P===le)return u.avail_out===0&&(k.last_flush=-1),h;if(P===Z&&(R===1?o._tr_align(k):R!==5&&(o._tr_stored_block(k,0,0,!1),R===3&&(de(k.head),k.lookahead===0&&(k.strstart=0,k.block_start=0,k.insert=0))),H(u),u.avail_out===0))return k.last_flush=-1,h}return R!==w?h:k.wrap<=0?1:(k.wrap===2?(ue(k,255&u.adler),ue(k,u.adler>>8&255),ue(k,u.adler>>16&255),ue(k,u.adler>>24&255),ue(k,255&u.total_in),ue(k,u.total_in>>8&255),ue(k,u.total_in>>16&255),ue(k,u.total_in>>24&255)):(oe(k,u.adler>>>16),oe(k,65535&u.adler)),H(u),0<k.wrap&&(k.wrap=-k.wrap),k.pending!==0?h:1)},i.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,x):(u.state=null,R===Y?ae(u,-3):h):x},i.deflateSetDictionary=function(u,R){var O,k,y,A,M,P,B,K,J=R.length;if(!u||!u.state||(A=(O=u.state).wrap)===2||A===1&&O.status!==D||O.lookahead)return x;for(A===1&&(u.adler=d(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,P=u.next_in,B=u.input,u.avail_in=J,u.next_in=0,u.input=R,xe(O);O.lookahead>=G;){for(k=O.strstart,y=O.lookahead-(G-1);O.ins_h=(O.ins_h<<O.hash_shift^O.window[k+G-1])&O.hash_mask,O.prev[k&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=k,k++,--y;);O.strstart=k,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=P,u.input=B,u.avail_in=M,O.wrap=A,h},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,r,i){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,i){r.exports=function(s,a){var o,d,p,f,m,w,h,x,_,E,v,S,T,F,j,q,L,X,G,ee,se,D,Y,b,Z;o=s.state,d=s.next_in,b=s.input,p=d+(s.avail_in-5),f=s.next_out,Z=s.output,m=f-(a-s.avail_out),w=f+(s.avail_out-257),h=o.dmax,x=o.wsize,_=o.whave,E=o.wnext,v=o.window,S=o.hold,T=o.bits,F=o.lencode,j=o.distcode,q=(1<<o.lenbits)-1,L=(1<<o.distbits)-1;e:do{T<15&&(S+=b[d++]<<T,T+=8,S+=b[d++]<<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}s.msg="invalid literal/length code",o.mode=30;break e}ee=65535&X,(G&=15)&&(T<G&&(S+=b[d++]<<T,T+=8),ee+=S&(1<<G)-1,S>>>=G,T-=G),T<15&&(S+=b[d++]<<T,T+=8,S+=b[d++]<<T,T+=8),X=j[S&L];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}s.msg="invalid distance code",o.mode=30;break e}if(se=65535&X,T<(G&=15)&&(S+=b[d++]<<T,(T+=8)<G&&(S+=b[d++]<<T,T+=8)),h<(se+=S&(1<<G)-1)){s.msg="invalid distance too far back",o.mode=30;break e}if(S>>>=G,T-=G,(G=f-m)<se){if(_<(G=se-G)&&o.sane){s.msg="invalid distance too far back",o.mode=30;break e}if(Y=v,(D=0)===E){if(D+=x-G,G<ee){for(ee-=G;Z[f++]=v[D++],--G;);D=f-se,Y=Z}}else if(E<G){if(D+=x+E-G,(G-=E)<ee){for(ee-=G;Z[f++]=v[D++],--G;);if(D=0,E<ee){for(ee-=G=E;Z[f++]=v[D++],--G;);D=f-se,Y=Z}}}else if(D+=E-G,G<ee){for(ee-=G;Z[f++]=v[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(d<p&&f<w);d-=ee=T>>3,S&=(1<<(T-=ee<<3))-1,s.next_in=d,s.next_out=f,s.avail_in=d<p?p-d+5:5-(d-p),s.avail_out=f<w?w-f+257:257-(f-w),o.hold=S,o.bits=T}},{}],49:[function(n,r,i){var s=n("../utils/common"),a=n("./adler32"),o=n("./crc32"),d=n("./inffast"),p=n("./inftrees"),f=1,m=2,w=0,h=-2,x=1,_=852,E=592;function v(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 s.Buf16(320),this.work=new s.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=x,Y.last=0,Y.havedict=0,Y.dmax=32768,Y.head=null,Y.hold=0,Y.bits=0,Y.lencode=Y.lendyn=new s.Buf32(_),Y.distcode=Y.distdyn=new s.Buf32(E),Y.sane=1,Y.back=-1,w):h}function F(D){var Y;return D&&D.state?((Y=D.state).wsize=0,Y.whave=0,Y.wnext=0,T(D)):h}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)?h:(Z.window!==null&&Z.wbits!==Y&&(Z.window=null),Z.wrap=b,Z.wbits=Y,F(D))):h}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):h}var L,X,G=!0;function ee(D){if(G){var Y;for(L=new s.Buf32(512),X=new s.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(p(f,D.lens,0,288,L,0,D.work,{bits:9}),Y=0;Y<32;)D.lens[Y++]=5;p(m,D.lens,0,32,X,0,D.work,{bits:5}),G=!1}D.lencode=L,D.lenbits=9,D.distcode=X,D.distbits=5}function se(D,Y,b,Z){var le,Q=D.state;return Q.window===null&&(Q.wsize=1<<Q.wbits,Q.wnext=0,Q.whave=0,Q.window=new s.Buf8(Q.wsize)),Z>=Q.wsize?(s.arraySet(Q.window,Y,b-Q.wsize,Q.wsize,0),Q.wnext=0,Q.whave=Q.wsize):(Z<(le=Q.wsize-Q.wnext)&&(le=Z),s.arraySet(Q.window,Y,b-Z,le,Q.wnext),(Z-=le)?(s.arraySet(Q.window,Y,b-Z,Z,0),Q.wnext=Z,Q.whave=Q.wsize):(Q.wnext+=le,Q.wnext===Q.wsize&&(Q.wnext=0),Q.whave<Q.wsize&&(Q.whave+=le))),0}i.inflateReset=F,i.inflateReset2=j,i.inflateResetKeep=T,i.inflateInit=function(D){return q(D,15)},i.inflateInit2=q,i.inflate=function(D,Y){var b,Z,le,Q,ae,te,de,H,z,ue,oe,ie,xe,je,me,we,Be,Ae,C,U,u,R,O,k,y=0,A=new s.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 h;(b=D.state).mode===12&&(b.mode=13),ae=D.next_out,le=D.output,de=D.avail_out,Q=D.next_in,Z=D.input,te=D.avail_in,H=b.hold,z=b.bits,ue=te,oe=de,R=w;e:for(;;)switch(b.mode){case x:if(b.wrap===0){b.mode=13;break}for(;z<16;){if(te===0)break e;te--,H+=Z[Q++]<<z,z+=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),z=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(z-=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,z=H=0;break;case 2:for(;z<16;){if(te===0)break e;te--,H+=Z[Q++]<<z,z+=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)),z=H=0,b.mode=3;case 3:for(;z<32;){if(te===0)break e;te--,H+=Z[Q++]<<z,z+=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)),z=H=0,b.mode=4;case 4:for(;z<16;){if(te===0)break e;te--,H+=Z[Q++]<<z,z+=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)),z=H=0,b.mode=5;case 5:if(1024&b.flags){for(;z<16;){if(te===0)break e;te--,H+=Z[Q++]<<z,z+=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)),z=H=0}else b.head&&(b.head.extra=null);b.mode=6;case 6:if(1024&b.flags&&(te<(ie=b.length)&&(ie=te),ie&&(b.head&&(u=b.head.extra_len-b.length,b.head.extra||(b.head.extra=new Array(b.head.extra_len)),s.arraySet(b.head.extra,Z,Q,ie,u)),512&b.flags&&(b.check=o(b.check,Z,ie,Q)),te-=ie,Q+=ie,b.length-=ie),b.length))break e;b.length=0,b.mode=7;case 7:if(2048&b.flags){if(te===0)break e;for(ie=0;u=Z[Q+ie++],b.head&&u&&b.length<65536&&(b.head.name+=String.fromCharCode(u)),u&&ie<te;);if(512&b.flags&&(b.check=o(b.check,Z,ie,Q)),te-=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(te===0)break e;for(ie=0;u=Z[Q+ie++],b.head&&u&&b.length<65536&&(b.head.comment+=String.fromCharCode(u)),u&&ie<te;);if(512&b.flags&&(b.check=o(b.check,Z,ie,Q)),te-=ie,Q+=ie,u)break e}else b.head&&(b.head.comment=null);b.mode=9;case 9:if(512&b.flags){for(;z<16;){if(te===0)break e;te--,H+=Z[Q++]<<z,z+=8}if(H!==(65535&b.check)){D.msg="header crc mismatch",b.mode=30;break}z=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(;z<32;){if(te===0)break e;te--,H+=Z[Q++]<<z,z+=8}D.adler=b.check=v(H),z=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=te,b.hold=H,b.bits=z,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&z,z-=7&z,b.mode=27;break}for(;z<3;){if(te===0)break e;te--,H+=Z[Q++]<<z,z+=8}switch(b.last=1&H,z-=1,3&(H>>>=1)){case 0:b.mode=14;break;case 1:if(ee(b),b.mode=20,Y!==6)break;H>>>=2,z-=2;break e;case 2:b.mode=17;break;case 3:D.msg="invalid block type",b.mode=30}H>>>=2,z-=2;break;case 14:for(H>>>=7&z,z-=7&z;z<32;){if(te===0)break e;te--,H+=Z[Q++]<<z,z+=8}if((65535&H)!=(H>>>16^65535)){D.msg="invalid stored block lengths",b.mode=30;break}if(b.length=65535&H,z=H=0,b.mode=15,Y===6)break e;case 15:b.mode=16;case 16:if(ie=b.length){if(te<ie&&(ie=te),de<ie&&(ie=de),ie===0)break e;s.arraySet(le,Z,Q,ie,ae),te-=ie,Q+=ie,de-=ie,ae+=ie,b.length-=ie;break}b.mode=12;break;case 17:for(;z<14;){if(te===0)break e;te--,H+=Z[Q++]<<z,z+=8}if(b.nlen=257+(31&H),H>>>=5,z-=5,b.ndist=1+(31&H),H>>>=5,z-=5,b.ncode=4+(15&H),H>>>=4,z-=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(;z<3;){if(te===0)break e;te--,H+=Z[Q++]<<z,z+=8}b.lens[M[b.have++]]=7&H,H>>>=3,z-=3}for(;b.have<19;)b.lens[M[b.have++]]=0;if(b.lencode=b.lendyn,b.lenbits=7,O={bits:b.lenbits},R=p(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,Be=65535&y,!((me=y>>>24)<=z);){if(te===0)break e;te--,H+=Z[Q++]<<z,z+=8}if(Be<16)H>>>=me,z-=me,b.lens[b.have++]=Be;else{if(Be===16){for(k=me+2;z<k;){if(te===0)break e;te--,H+=Z[Q++]<<z,z+=8}if(H>>>=me,z-=me,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,z-=2}else if(Be===17){for(k=me+3;z<k;){if(te===0)break e;te--,H+=Z[Q++]<<z,z+=8}z-=me,u=0,ie=3+(7&(H>>>=me)),H>>>=3,z-=3}else{for(k=me+7;z<k;){if(te===0)break e;te--,H+=Z[Q++]<<z,z+=8}z-=me,u=0,ie=11+(127&(H>>>=me)),H>>>=7,z-=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=p(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=p(m,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<=te&&258<=de){D.next_out=ae,D.avail_out=de,D.next_in=Q,D.avail_in=te,b.hold=H,b.bits=z,d(D,oe),ae=D.next_out,le=D.output,de=D.avail_out,Q=D.next_in,Z=D.input,te=D.avail_in,H=b.hold,z=b.bits,b.mode===12&&(b.back=-1);break}for(b.back=0;we=(y=b.lencode[H&(1<<b.lenbits)-1])>>>16&255,Be=65535&y,!((me=y>>>24)<=z);){if(te===0)break e;te--,H+=Z[Q++]<<z,z+=8}if(we&&!(240&we)){for(Ae=me,C=we,U=Be;we=(y=b.lencode[U+((H&(1<<Ae+C)-1)>>Ae)])>>>16&255,Be=65535&y,!(Ae+(me=y>>>24)<=z);){if(te===0)break e;te--,H+=Z[Q++]<<z,z+=8}H>>>=Ae,z-=Ae,b.back+=Ae}if(H>>>=me,z-=me,b.back+=me,b.length=Be,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(k=b.extra;z<k;){if(te===0)break e;te--,H+=Z[Q++]<<z,z+=8}b.length+=H&(1<<b.extra)-1,H>>>=b.extra,z-=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,Be=65535&y,!((me=y>>>24)<=z);){if(te===0)break e;te--,H+=Z[Q++]<<z,z+=8}if(!(240&we)){for(Ae=me,C=we,U=Be;we=(y=b.distcode[U+((H&(1<<Ae+C)-1)>>Ae)])>>>16&255,Be=65535&y,!(Ae+(me=y>>>24)<=z);){if(te===0)break e;te--,H+=Z[Q++]<<z,z+=8}H>>>=Ae,z-=Ae,b.back+=Ae}if(H>>>=me,z-=me,b.back+=me,64&we){D.msg="invalid distance code",b.mode=30;break}b.offset=Be,b.extra=15&we,b.mode=24;case 24:if(b.extra){for(k=b.extra;z<k;){if(te===0)break e;te--,H+=Z[Q++]<<z,z+=8}b.offset+=H&(1<<b.extra)-1,H>>>=b.extra,z-=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),je=b.window}else je=le,xe=ae-b.offset,ie=b.length;for(de<ie&&(ie=de),de-=ie,b.length-=ie;le[ae++]=je[xe++],--ie;);b.length===0&&(b.mode=21);break;case 26:if(de===0)break e;le[ae++]=b.length,de--,b.mode=21;break;case 27:if(b.wrap){for(;z<32;){if(te===0)break e;te--,H|=Z[Q++]<<z,z+=8}if(oe-=de,D.total_out+=oe,b.total+=oe,oe&&(D.adler=b.check=b.flags?o(b.check,le,oe,ae-oe):a(b.check,le,oe,ae-oe)),oe=de,(b.flags?H:v(H))!==b.check){D.msg="incorrect data check",b.mode=30;break}z=H=0}b.mode=28;case 28:if(b.wrap&&b.flags){for(;z<32;){if(te===0)break e;te--,H+=Z[Q++]<<z,z+=8}if(H!==(4294967295&b.total)){D.msg="incorrect length check",b.mode=30;break}z=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 h}return D.next_out=ae,D.avail_out=de,D.next_in=Q,D.avail_in=te,b.hold=H,b.bits=z,(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):(ue-=D.avail_in,oe-=D.avail_out,D.total_in+=ue,D.total_out+=oe,b.total+=oe,b.wrap&&oe&&(D.adler=b.check=b.flags?o(b.check,le,oe,D.next_out-oe):a(b.check,le,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),(ue==0&&oe===0||Y===4)&&R===w&&(R=-5),R)},i.inflateEnd=function(D){if(!D||!D.state)return h;var Y=D.state;return Y.window&&(Y.window=null),D.state=null,w},i.inflateGetHeader=function(D,Y){var b;return D&&D.state&&2&(b=D.state).wrap?((b.head=Y).done=!1,w):h},i.inflateSetDictionary=function(D,Y){var b,Z=Y.length;return D&&D.state?(b=D.state).wrap!==0&&b.mode!==11?h:b.mode===11&&a(1,Y,Z,0)!==b.check?-3:se(D,Y,Z,Z)?(b.mode=31,-4):(b.havedict=1,w):h},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,r,i){var s=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],d=[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],p=[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,m,w,h,x,_,E,v){var S,T,F,j,q,L,X,G,ee,se=v.bits,D=0,Y=0,b=0,Z=0,le=0,Q=0,ae=0,te=0,de=0,H=0,z=null,ue=0,oe=new s.Buf16(16),ie=new s.Buf16(16),xe=null,je=0;for(D=0;D<=15;D++)oe[D]=0;for(Y=0;Y<h;Y++)oe[m[w+Y]]++;for(le=se,Z=15;1<=Z&&oe[Z]===0;Z--);if(Z<le&&(le=Z),Z===0)return x[_++]=20971520,x[_++]=20971520,v.bits=1,0;for(b=1;b<Z&&oe[b]===0;b++);for(le<b&&(le=b),D=te=1;D<=15;D++)if(te<<=1,(te-=oe[D])<0)return-1;if(0<te&&(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<h;Y++)m[w+Y]!==0&&(E[ie[m[w+Y]]++]=Y);if(L=f===0?(z=xe=E,19):f===1?(z=a,ue-=257,xe=o,je-=257,256):(z=d,xe=p,-1),D=b,q=_,ae=Y=H=0,F=-1,j=(de=1<<(Q=le))-1,f===1&&852<de||f===2&&592<de)return 1;for(;;){for(X=D-ae,ee=E[Y]<L?(G=0,E[Y]):E[Y]>L?(G=xe[je+E[Y]],z[ue+E[Y]]):(G=96,0),S=1<<D-ae,b=T=1<<Q;x[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=m[w+E[Y]]}if(le<D&&(H&j)!==F){for(ae===0&&(ae=le),q+=b,te=1<<(Q=D-ae);Q+ae<Z&&!((te-=oe[Q+ae])<=0);)Q++,te<<=1;if(de+=1<<Q,f===1&&852<de||f===2&&592<de)return 1;x[F=H&j]=le<<24|Q<<16|q-_|0}}return H!==0&&(x[q+H]=D-ae<<24|64<<16|0),v.bits=le,0}},{"../utils/common":41}],51:[function(n,r,i){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,i){var s=n("../utils/common"),a=0,o=1;function d(y){for(var A=y.length;0<=--A;)y[A]=0}var p=0,f=29,m=256,w=m+1+f,h=30,x=19,_=2*w+1,E=15,v=16,S=7,T=256,F=16,j=17,q=18,L=[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));d(se);var D=new Array(2*h);d(D);var Y=new Array(512);d(Y);var b=new Array(256);d(b);var Z=new Array(f);d(Z);var le,Q,ae,te=new Array(h);function de(y,A,M,P,B){this.static_tree=y,this.extra_bits=A,this.extra_base=M,this.elems=P,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 z(y){return y<256?Y[y]:Y[256+(y>>>7)]}function ue(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>v-M?(y.bi_buf|=A<<y.bi_valid&65535,ue(y,y.bi_buf),y.bi_buf=A>>v-y.bi_valid,y.bi_valid+=M-v):(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 je(y,A,M){var P,B,K=new Array(E+1),J=0;for(P=1;P<=E;P++)K[P]=J=J+M[P-1]<<1;for(B=0;B<=A;B++){var V=y[2*B+1];V!==0&&(y[2*B]=xe(K[V]++,V))}}function me(y){var A;for(A=0;A<w;A++)y.dyn_ltree[2*A]=0;for(A=0;A<h;A++)y.dyn_dtree[2*A]=0;for(A=0;A<x;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?ue(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 Be(y,A,M,P){var B=2*A,K=2*M;return y[B]<y[K]||y[B]===y[K]&&P[A]<=P[M]}function Ae(y,A,M){for(var P=y.heap[M],B=M<<1;B<=y.heap_len&&(B<y.heap_len&&Be(A,y.heap[B+1],y.heap[B],y.depth)&&B++,!Be(A,P,y.heap[B],y.depth));)y.heap[M]=y.heap[B],M=B,B<<=1;y.heap[M]=P}function C(y,A,M){var P,B,K,J,V=0;if(y.last_lit!==0)for(;P=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++,P===0?ie(y,B,A):(ie(y,(K=b[B])+m+1,A),(J=L[K])!==0&&oe(y,B-=Z[K],J),ie(y,K=z(--P),M),(J=X[K])!==0&&oe(y,P-=te[K],J)),V<y.last_lit;);ie(y,T,A)}function U(y,A){var M,P,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=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),P=y.heap[1],y.heap[--y.heap_max]=M,y.heap[--y.heap_max]=P,K[2*B]=K[2*M]+K[2*P],y.depth[B]=(y.depth[M]>=y.depth[P]?y.depth[M]:y.depth[P])+1,K[2*M+1]=K[2*P+1]=B,y.heap[1]=B++,Ae(y,K,1),2<=y.heap_len;);y.heap[--y.heap_max]=y.heap[1],function(l,c){var I,N,$,W,pe,ye,fe=c.dyn_tree,Te=c.max_code,Ie=c.stat_desc.static_tree,Rh=c.stat_desc.has_stree,Bh=c.stat_desc.extra_bits,da=c.stat_desc.extra_base,tr=c.stat_desc.max_length,$r=0;for(W=0;W<=E;W++)l.bl_count[W]=0;for(fe[2*l.heap[l.heap_max]+1]=0,I=l.heap_max+1;I<_;I++)tr<(W=fe[2*fe[2*(N=l.heap[I])+1]+1]+1)&&(W=tr,$r++),fe[2*N+1]=W,Te<N||(l.bl_count[W]++,pe=0,da<=N&&(pe=Bh[N-da]),ye=fe[2*N],l.opt_len+=ye*(W+pe),Rh&&(l.static_len+=ye*(Ie[2*N+1]+pe)));if($r!==0){do{for(W=tr-1;l.bl_count[W]===0;)W--;l.bl_count[W]--,l.bl_count[W+1]+=2,l.bl_count[tr]--,$r-=2}while(0<$r);for(W=tr;W!==0;W--)for(N=l.bl_count[W];N!==0;)Te<($=l.heap[--I])||(fe[2*$+1]!==W&&(l.opt_len+=(W-fe[2*$+1])*fe[2*$],fe[2*$+1]=W),N--)}}(y,A),je(K,g,y.bl_count)}function u(y,A,M){var P,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,P=0;P<=M;P++)B=J,J=A[2*(P+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 P,B,K=-1,J=A[1],V=0,re=7,g=4;for(J===0&&(re=138,g=3),P=0;P<=M;P++)if(B=J,J=A[2*(P+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)}}d(te);var O=!1;function k(y,A,M,P){oe(y,(p<<1)+(P?1:0),3),function(B,K,J,V){we(B),V&&(ue(B,J),ue(B,~J)),s.arraySet(B.pending_buf,B.window,K,J,B.pending),B.pending+=J}(y,A,M,!0)}i._tr_init=function(y){O||(function(){var A,M,P,B,K,J=new Array(E+1);for(B=P=0;B<f-1;B++)for(Z[B]=P,A=0;A<1<<L[B];A++)b[P++]=B;for(b[P-1]=B,B=K=0;B<16;B++)for(te[B]=K,A=0;A<1<<X[B];A++)Y[K++]=B;for(K>>=7;B<h;B++)for(te[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(je(se,w+1,J),A=0;A<h;A++)D[2*A+1]=5,D[2*A]=xe(A,5);le=new de(se,L,m+1,w,E),Q=new de(D,X,0,h,E),ae=new de(new Array(0),G,0,x,S)}(),O=!0),y.l_desc=new H(y.dyn_ltree,le),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,me(y)},i._tr_stored_block=k,i._tr_flush_block=function(y,A,M,P){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<m;re++)if(V.dyn_ltree[2*re]!==0)return o;return a}(y)),U(y,y.l_desc),U(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),U(V,V.bl_desc),re=x-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?k(y,A,M,P):y.strategy===4||K===B?(oe(y,2+(P?1:0),3),C(y,se,D)):(oe(y,4+(P?1:0),3),function(V,re,g,l){var c;for(oe(V,re-257,5),oe(V,g-1,5),oe(V,l-4,4),c=0;c<l;c++)oe(V,V.bl_tree[2*ee[c]+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)),me(y),P&&we(y)},i._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]+m+1)]++,y.dyn_dtree[2*z(A)]++),y.last_lit===y.lit_bufsize-1},i._tr_align=function(y){oe(y,2,3),ie(y,T,se),function(A){A.bi_valid===16?(ue(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,i){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,i){(function(s){(function(a,o){if(!a.setImmediate){var d,p,f,m,w=1,h={},x=!1,_=a.document,E=Object.getPrototypeOf&&Object.getPrototypeOf(a);E=E&&E.setTimeout?E:a,d={}.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}}()?(m="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",T,!1):a.attachEvent("onmessage",T),function(F){a.postMessage(m+F,"*")}):a.MessageChannel?((f=new MessageChannel).port1.onmessage=function(F){S(F.data)},function(F){f.port2.postMessage(F)}):_&&"onreadystatechange"in _.createElement("script")?(p=_.documentElement,function(F){var j=_.createElement("script");j.onreadystatechange=function(){S(F),j.onreadystatechange=null,p.removeChild(j),j=null},p.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 L={callback:F,args:j};return h[w]=L,d(w),w++},E.clearImmediate=v}function v(F){delete h[F]}function S(F){if(x)setTimeout(S,0,F);else{var j=h[F];if(j){x=!0;try{(function(q){var L=q.callback,X=q.args;switch(X.length){case 0:L();break;case 1:L(X[0]);break;case 2:L(X[0],X[1]);break;case 3:L(X[0],X[1],X[2]);break;default:L.apply(o,X)}})(j)}finally{v(F),x=!1}}}}function T(F){F.source===a&&typeof F.data=="string"&&F.data.indexOf(m)===0&&S(+F.data.slice(m.length))}})(typeof self=="undefined"?s===void 0?this:s:self)}).call(this,typeof Ur!="undefined"?Ur:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})})(hd);const ta=Yi;function na(){return{articleTable:[],tagTable:[],imgTable:[],topicTable:[],ipTable:[],majiaTable:[],likeTable:[],stateTable:[],cachedMajiaTable:[],cachedTagTable:[]}}function pd(){const e=new Date;return Me.PROJECT_NAME+e.getFullYear()+"_"+(e.getMonth()+1)+"_"+e.getDate()+".zip"}const ra=Me.PROJECT_NAME+".json",ia="https://",sa=e=>(yr("data-v-42e87b65"),e=e(),vr(),e),fd=["disabled"],md={key:0},gd=["value"],_d=sa(()=>ne("br",null,null,-1)),bd=sa(()=>ne("br",null,null,-1)),wd=Le({__name:"BackUpExport",setup(e){const t=kt({onPrepare:!1}),n=Ve(["articleTable","imgTable","ipTable","likeTable","majiaTable","stateTable","tagTable"]),r=Ve(null);function i(p){return p.type.replace("image/",".")}function s(p=!1){return be(this,null,function*(){var w;if((w=r.value)==null||w.close(),!p)return;t.onPrepare=!0;const f=yield o(),m=yield a(f);d(m)})}function a(p){return be(this,null,function*(){const f=new ta;for(const w of p.imgTable)w.imgBlob&&f.file(w.imgUri.replace(ia,"")+i(w.imgBlob),w.imgBlob,{binary:!0});return p.imgTable=[],f.file(ra,JSON.stringify(p)),yield f.generateAsync({type:"blob",compression:"DEFLATE",compressionOptions:{level:9}})})}function o(){return be(this,null,function*(){const p=Object.assign({},na());for(let f=0;f<n.value.length;f++){const m=n.value[f];p[m]=yield zi[m].exportAll()}return p})}function d(p){let f=document.createElement("a");f.href=window.URL.createObjectURL(p),t.onPrepare=!1,f.download=pd(),f.click()}return(p,f)=>(ce(),_e(Ne,null,[ne("button",{onClick:f[0]||(f[0]=m=>{var w;return(w=r.value)==null?void 0:w.showModal()}),disabled:t.onPrepare},"导出备份",8,fd),ne("dialog",{ref_key:"dialog",ref:r},[(ce(!0),_e(Ne,null,bt(ve(_n),(m,w)=>(ce(),_e("span",{key:w},[w.startsWith("cached")?ut("",!0):(ce(),_e("label",md,[Qe(ne("input",{type:"checkbox",value:w,"onUpdate:modelValue":f[1]||(f[1]=h=>n.value=h)},null,8,gd),[[$n,n.value]]),It(Xe(m.comment),1)]))]))),128)),_d,bd,ne("div",null,[ne("button",{onClick:f[2]||(f[2]=m=>s(!1))},"取消"),ne("button",{onClick:f[3]||(f[3]=m=>s(!0))},"确认导出")])],512)],64))}}),op="",yd=yn(wd,[["__scopeId","data-v-42e87b65"]]),vd=Le({__name:"BackUpImport",setup(e){const t=/\.\w{2,4}$/,n=Ve(null);function r(){return be(this,null,function*(){var d;const o=(d=n.value)==null?void 0:d.files;if(o)for(let p=0;p<o.length;p++)yield i(o[p]);Tt(5,"导入成功!!!")})}function i(o){return new Promise((d,p)=>{const f=new FileReader;f.onload=function(){return be(this,null,function*(){if(f.result!==null)yield s(f.result),d();else{const m="读取文件"+o.name+"失败";Tt(2,m),p(m)}})},f.readAsArrayBuffer(o)})}function s(o){return be(this,null,function*(){const p=(yield ta.loadAsync(o)).files,f=p[ra];if(!f){Tt(2,"文件错误,导入失败");return}const m=yield f.async("string"),w=JSON.parse(m),h=Object.assign(na(),w),x=[".png",".jpg",".jpeg",".gif","bmp","svg",".tif","tiff",".webp"];for(const _ in p)if(Object.prototype.hasOwnProperty.call(p,_)){console.log(_);const E=p[_],v=_.match(t);if(v&&x.includes(v[0])){const S=yield E.async("blob"),T=ia+_.replace(v[0],""),F=new Tn(T,new Blob([S],{type:"image/"+v[0].replace(".","")}));h.imgTable.push(F)}}yield a(h)})}function a(o){return be(this,null,function*(){const d=Object.entries(zi);for(let p=0;p<d.length;p++){const[f,m]=d[p];yield m.importAll(o[f])}})}return(o,d)=>(ce(),_e(Ne,null,[ne("button",{onClick:d[0]||(d[0]=p=>{var f;return(f=n.value)==null?void 0:f.click()})},"导入备份"),ne("input",{style:{display:"none"},type:"file",multiple:"",accept:"application/zip",ref_key:"input",ref:n,onInput:r},null,544)],64))}}),kd=ne("h3",null,"备份",-1),xd=Le({__name:"BackUp",setup(e){return(t,n)=>(ce(),_e("div",null,[kd,Re(yd),Re(vd)]))}}),Ed=ne("h3",null,"ip地理位置",-1),Sd={key:0},Id={key:1},Td=ne("span",null,"数据库文件约11M",-1),Ad=["disabled"],Od={key:0},Cd=Le({__name:"IPDB",setup(e){const t=Ve(!1),n=Ve(!1),r=Ve(1),i=Ve(0),s=zr.getIpInfo("127.0.0.1");t.value=!!s;function a(){n.value=!0,fetch("https://fastly.jsdelivr.net/gh/lionsoul2014/ip2region/data/ip2region.xdb").then(f=>o(f)).then(f=>d(f)).then(()=>{zr.init()}).then(()=>{t.value=!0,Tt(2,"安装完成!")}).catch(f=>{Tt(3,f)}).finally(()=>{n.value=!1})}function o(p){return be(this,null,function*(){var E;const f=(E=p.body)==null?void 0:E.getReader(),m=p.headers.get("Content-Length");if(!f||!m)throw new Error("response.body or contentLength  is null");r.value=parseInt(m);let w=[],h=!1;for(;!h;){const{done:v,value:S}=yield f.read();if(v)break;w.push(S),i.value+=S.length}let x=new Uint8Array(i.value),_=0;for(let v of w)x.set(v,_),_+=v.length;return x.buffer})}function d(p){return be(this,null,function*(){yield rt.saveFile(p,Li.ipDB),t.value=!0})}return(p,f)=>(ce(),_e("div",null,[Ed,t.value?(ce(),_e("span",Sd," 数据库文件已安装 ")):ut("",!0),t.value?ut("",!0):(ce(),_e("span",Id,[Td,ne("button",{disabled:n.value,onClick:a},"下载安装",8,Ad),n.value?(ce(),_e("div",Od," 正在下载:"+Xe(Math.floor(100*i.value/r.value))+"% ",1)):ut("",!0)]))]))}}),He=e=>(yr("data-v-24b9a60a"),e=e(),vr(),e),Dd={key:0,id:"setting"},Rd={key:0},Bd=He(()=>ne("h3",null,"显示",-1)),jd=["el-css-display","onUpdate:modelValue"],Nd=He(()=>ne("hr",null,null,-1)),Pd=He(()=>ne("hr",null,null,-1)),Ud=He(()=>ne("h3",null,"定义长滑动:",-1)),Fd=He(()=>ne("br",null,null,-1)),Md=He(()=>ne("span",null,"返回上一层: ",-1)),zd=[He(()=>ne("option",{value:"up"},"向上长滑",-1)),He(()=>ne("option",{value:"down"},"向下长滑",-1)),He(()=>ne("option",{value:"none"},"无",-1))],Ld=He(()=>ne("hr",null,null,-1)),Hd=He(()=>ne("h3",null,"首页",-1)),Gd=["el-css-display","onUpdate:modelValue"],$d=He(()=>ne("hr",null,null,-1)),Kd=He(()=>ne("h3",null,"精简模式",-1)),Xd=He(()=>ne("br",null,null,-1)),Wd=["el-css-display","onUpdate:modelValue"],qd=He(()=>ne("hr",null,null,-1)),Vd=He(()=>ne("hr",null,null,-1)),Yd=He(()=>ne("hr",null,null,-1)),Zd=He(()=>ne("br",null,null,-1)),Jd=He(()=>ne("br",null,null,-1)),Qd=Le({__name:"SettingPanel",setup(e){const t=mt().appState.showState,n=kt(Me),{mainpageConfig:r,cssConfig:i,frameConfig:s,simplifyConfig:a}=n,o=i.fontSize;jt(()=>i.fontSize,f);function d(){n.saveConfig(),window.location.reload()}function p(){t.showSetting=!t.showSetting,o!==i.fontSize&&(i.fontSize=o,f(o))}function f(m){var w;(w=document.querySelector("html"))==null||w.style.setProperty("font-size",m+"px")}return(m,w)=>ve(t).showSetting?(ce(),_e("div",Dd,[n.onMobile?(ce(),_e("div",Rd,[ne("div",null,[Bd,ne("div",null,[(ce(!0),_e(Ne,null,bt(ve(s).component,h=>(ce(),_e("label",{key:h.name,class:gt({checked:h.show})},[Qe(ne("input",{type:"checkbox","el-css-display":h.el,"onUpdate:modelValue":x=>h.show=x},null,8,jd),[[$n,h.show]]),It(Xe(h.name),1)],2))),128))])]),Nd,ne("div",null,[ne("h3",null,[It(" 字体大小:"),ne("span",null,Xe(ve(i).fontSize),1)]),ne("button",{onClick:w[0]||(w[0]=h=>ve(i).fontSize--)},"减小字体"),ne("button",{onClick:w[1]||(w[1]=h=>ve(i).fontSize++)},"增大字体")]),Pd,ne("div",null,[Ud,ne("span",null,[It("滑动距离大于"),Qe(ne("input",{"onUpdate:modelValue":w[2]||(w[2]=h=>n.longSwipeDistance=h),type:"number"},null,512),[[Br,n.longSwipeDistance]]),It("px")]),Fd,Md,Qe(ne("select",{"onUpdate:modelValue":w[3]||(w[3]=h=>n.longSwipeDirection=h)},zd,512),[[ji,n.longSwipeDirection]])]),Ld,ne("div",null,[Hd,ne("div",null,[(ce(!0),_e(Ne,null,bt(ve(r).section,h=>(ce(),_e("label",{key:h.name,class:gt({checked:h.show})},[Qe(ne("input",{type:"checkbox","el-css-display":h.el,"onUpdate:modelValue":x=>h.show=x},null,8,Gd),[[$n,h.show]]),It(Xe(h.name),1)],2))),128))])]),$d,ne("div",null,[Kd,ne("label",{class:gt({checked:ve(a).simplify})},[Qe(ne("input",{type:"checkbox","onUpdate:modelValue":w[4]||(w[4]=h=>ve(a).simplify=h)},null,512),[[$n,ve(a).simplify]]),It("精简显示帖子内容 ")],2),Xd,ne("div",null,[(ce(!0),_e(Ne,null,bt(ve(a).func,h=>(ce(),_e("label",{key:h.name,class:gt({checked:h.show})},[Qe(ne("input",{type:"checkbox","el-css-display":h.el,"onUpdate:modelValue":x=>h.show=x},null,8,Wd),[[$n,h.show]]),It(Xe(h.name),1)],2))),128))])])])):ut("",!0),qd,Re(Cd),Vd,Re(xd),Yd,ne("div",null,[ne("span",{class:"button",onClick:p},"取消"),ne("span",{class:"button",onClick:d},"应用"),Zd]),Jd])):ut("",!0)}}),cp="",eh=yn(Qd,[["__scopeId","data-v-24b9a60a"]]),th={id:"articles",style:{display:"none"}},nh=Le({__name:"App",setup(e){const t=mt().appState.articleInfoArr;return(n,r)=>(ce(),_e("div",null,[(ce(),lt(Tr,{to:"#menu"},[Re(vc)])),Re(Uc),Re(eh),ne("div",th,[(ce(!0),_e(Ne,null,bt(ve(t),(i,s)=>(ce(),_e("div",{class:"smth-article",key:s},[(ce(),lt(Tr,{to:ve(tt).articleEls[s].userInfoEl},[Re(dd,{"article-info":i},null,8,["article-info"])],8,["to"])),(ce(),lt(Tr,{to:ve(tt).articleEls[s].modifierSwitchEl},[Re(zc,{"article-info":i},null,8,["article-info"])],8,["to"])),(ce(),lt(Tr,{to:ve(tt).articleEls[s].userDataBundleEl},[Re(Yc,{"article-info":i},null,8,["article-info"])],8,["to"]))]))),128))])]))}}),tt={pinia:cc(),getApp:function(e,t){const n=zu(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(nh).mount(e),document.body.appendChild(e)}},rh=mt(tt.pinia),Zi=/(\?|&)p=[0-9]+$|\p=[0-9]+&|ajax=&/g,ih=/#!article\/[.\w]+\/post\/[0-9]+/g,En=[{hash:"#!mainpage",scrollY:0}];let Ji=!0;const oa=document.createElement("style");document.head.appendChild(oa);function sh(){Ji=!0,!location.hash.match(ih)&&En.push({hash:location.hash,scrollY:0})}function oh(e){Ji=!1;const t=En[En.length-1];t&&e.oldURL.includes(t.hash)&&(t.scrollY=window.scrollY)}function ah(e=""){oa.textContent=`a[href$="${e}"] {text-decoration:underline;font-style:italic}`}function lh(e,t){return e.replace(Zi,"")==t.replace(Zi,"")}function uh(){En.pop();let e=En.pop();for(;e&&lh(e.hash,location.hash);)e=En.pop();return e||{hash:"#!mainpage",scrollY:0}}function ch(){if(!Ji)return;const e=uh();Object.assign(rh.scrollY,e),ah(location.hash.replace("#!","").replace(Zi,"")),window.APP.body.open(location.href.replace(/#!.*$/,e.hash))}const Hr={onHashChange:oh,onBodyMut:sh,stepOut:ch},Sn=mt(tt.pinia),dh={handleInputEvent:function(){fh(),mh(window)}};function it(e,t=!1){e==="up"||e==="down"?hh(e,t):ph(e)}function hh(e,t=!1){if(Sn.appState.showState.showSetting||Sn.appState.showState.state===1||Sn.appState.mainHash==="mainpage")return;const n=document.activeElement;if(n instanceof HTMLTextAreaElement&&n.value.trim()!=="")return;if(t&&e===Me.longSwipeDirection){Hr.stepOut();return}if(e==="down"&&!ca()||e==="up"&&!ua())return;const r=document.querySelector(".page-select"),i=e==="up"?r==null?void 0:r.nextElementSibling:r==null?void 0:r.previousElementSibling;if(i instanceof Element){const s=i.querySelector("a");if(s===null)return;const a=Sn.scrollY;window.APP.body.open(s),a.hash=location.hash,a.scrollY=e==="up"?0:1e4}else Hr.stepOut()}function ph(e){Sn.changeShowstate(e)}function fh(){var e;(e=document.querySelector("#body"))==null||e.addEventListener("mousedown",function(t){t.detail>1&&t.preventDefault()},!1)}let aa,la;function mh(e){e.addEventListener("touchstart",Jt,!1),e.addEventListener("touchend",Jt,!1),e.addEventListener("touchmove",Jt,!1),e.addEventListener("keyup",Jt,!1),e.addEventListener("keydown",Jt,!1),e.addEventListener("wheel",Jt,!1),e.addEventListener("mouseup",Jt,!1),e.addEventListener("click",gh,!0)}function Jt(e){e instanceof KeyboardEvent&&!_h()?wh(e):e instanceof WheelEvent?vh(e):e instanceof MouseEvent?bh(e):e instanceof TouchEvent&&yh(e)}function gh(e){if(!(e.target instanceof HTMLElement))return;let n;const r=e.composedPath(),i=Math.min(r.length,3);for(let a=0;a<i;a++){const o=r[a];if(o instanceof HTMLAnchorElement){n=o;break}}if(n===void 0||n.target==="_blank"||n.host!==Me.host||n.href.match(/[?&]p=\d*($|&)/m)||n.href.endsWith(".json"))return;const s=Zt.getTopicUri(n.href);s&&(e.preventDefault(),e.stopImmediatePropagation(),Zt.get(s).then(a=>{const o=`?p=${a.p}`,d=Sn.scrollY;d.scrollY=a.scrollY,n.href=n.href+o,window.APP.body.open(n),d.hash=location.hash}))}const Qi=Math.PI;function ua(){return window.scrollY+window.innerHeight+2>document.body.clientHeight}function ca(){return window.scrollY<1}function _h(){var e;return["INPUT","TEXTAREA","SELECT","OPTION"].includes((e=document.activeElement)==null?void 0:e.nodeName)}function bh(e){e.button===2&&it("down",!0)}function wh(e){switch(e.type){case"keyup":break;case"keydown":e.key==="ArrowLeft"?it("left"):e.key==="ArrowRight"?it("right"):e.key==="ArrowDown"?it("up",e.ctrlKey):e.key==="ArrowUp"?it("down",e.ctrlKey):e.key==="PageDown"?it("up"):e.key==="PageUp"&&it("down");break}}function yh(e){let t,n,r,i,s;switch(e.type){case"touchstart":aa=e.touches[0].clientX,la=e.touches[0].clientY;break;case"touchend":if(t=e.changedTouches[0].clientX-aa,n=la-e.changedTouches[0].clientY,r=Math.atan2(n,t),s=Math.abs(t)+Math.abs(n),s<30)return;i=s>Me.longSwipeDistance,Math.abs(r)<.5?it("right",i):Math.abs(r-Qi/2)<.5?it("up",i):Math.abs(r+Qi/2)<.5?it("down",i):Math.abs(r)>Qi-.5&&it("left",i);break}}const Gr={swipe:function(e,t=!1){if(t){it(e,t);return}e==="down"&&ca()||e==="up"&&ua()?(this.n++,Gr.n>Gr.threshHold&&(it(e),Gr.n=0)):this.n=0},threshHold:1,n:0};function vh(e){Gr.swipe(e.deltaY>0?"up":"down")}const kh=mt(tt.pinia).appState,xh=/<a target=.*?><img.*?><\/a>/g,Eh={handle:function(e){e.querySelectorAll(".article").forEach((n,r)=>{Sh(n,r)})}};function Sh(e,t){const n=e.querySelector(".a-content"),r=e.querySelector(".a-func"),i=e.querySelector(".a-pos"),s=e.querySelector(".a-u-name"),a=e.querySelector(".a-u-sex"),o=e.querySelector(".a-func-forward");if(s==null||a==null||n==null||r==null||i==null)return;const d=s==null?void 0:s.querySelector("a"),p=d?d.innerText:s==null?void 0:s.innerText,f=e.classList;e.setAttribute(Me.PROJECT_NAME+"-id",p);const m="simple-article";e.addEventListener("dblclick",()=>{f.contains(m)?f.remove(m):f.add(m)},!0),f.add("simple-article");const w=e.querySelector(".a-body .a-content>p");if(w==null)return;let h="";if(o instanceof HTMLAnchorElement){const T=o.href;h=T.substring(T.lastIndexOf("/")+1,T.lastIndexOf("."))}const x=mt().appState.topicState,_=x.board+"/"+x.topicId+"/"+h,E=Me.onMobile&&Me.simplifyConfig.simplify?Ih(w):w.innerHTML,v=Th(e),S={userId:p,articleId:h,content:E,p:w,showModifier:!1,ip:v,articleUri:_};if(Object.assign(kh.articleInfoArr[t],S),n.insertBefore(tt.articleEls[t].userDataBundleEl,n.firstChild),r.appendChild(tt.articleEls[t].modifierSwitchEl),Me.onMobile){const T=document.createElement("li");T.appendChild(a),T.appendChild(s),r.insertBefore(T,r.firstChild),r.appendChild(i),T.appendChild(tt.articleEls[t].userInfoEl)}else s.appendChild(tt.articleEls[t].userInfoEl)}function Ih(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>",i="<br> --",s=n.indexOf(r)+20,a=n.lastIndexOf(i),d=n.substring(a==-1?s:a,void 0).match(xh);let p="";return p=n.substring(s,a==-1?void 0:a)+"<br><br>",d==null||d.forEach(m=>{p+=m}),t.innerHTML=p,(f=e.parentElement)==null||f.insertBefore(t,e),n}function Th(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 Ah={sections:Me.mainpageConfig.section,handle(e){if(Me.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)})}},Oh={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),Me.onMobile&&Uo(n,[[4,3]],[0,1,3,5,6,7]))}},Ch={handle(e){var s,a,o,d;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&&((s=r[0].firstElementChild)==null?void 0:s.innerHTML)=="该版面没有任何主题"){gc();return}Po(n),Me.onMobile&&Uo(t,[[3,2]],[0,2,4,5,6,7,8]);const i=document.querySelector(".board-list>thead>tr>.middle");i!=null&&(i.innerText="[评分/like数]主题(已读/全部)");for(let p=0;p<r.length;p++){const f=r[p].querySelector(".title_9>a");if(f==null)return;const m=(o=(a=r[p].querySelector(".title_12>a"))==null?void 0:a.innerHTML)!=null?o:"";r[p].setAttribute(Me.PROJECT_NAME+"-id",m);const w=r[p].querySelectorAll(".middle"),h=w[0].innerHTML,x=w[1].innerHTML,_=w[2].innerHTML,E=document.createElement("a");E.href=f.href,E.innerHTML=`[${h}${h+x==""?" ":"/"}${x}]`,(d=f.parentNode)==null||d.insertBefore(E,f),Vn.addVisitedLinkStyle(f,parseInt(_))}}},Dh={appStore:mt(tt.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":Eh.handle(e);break;case"mainpage":Ah.handle(e);break;case"s":Oh.handle(e);break;case"board":Ch.handle(e);break}}},es={dbPrepared:!1,appStateStore:mt(tt.pinia),bodyElement:{},initDb:function(){Promise.all([rt.initDB(),Me.init(),this.appStateStore.init(),tt.init()]).then(()=>Promise.all([Lt.init(),Fi.init(),At.init(),zt.init(),Zt.init(),Zn.init(),zr.init(),Mi.init(),Nr.init(),Ho.init(),gn.init()])).then(()=>{this.dbPrepared=!0,tt.mount()})},initDom:function(){this.bodyElement=document.querySelector("#body"),this.bodyElement.childElementCount!==0&&this.bodyMutCallback(),Vn.init(),dh.handleInputEvent(),this.listen()},listen:function(){window.addEventListener("hashchange",t=>{this.appStateStore.onHashChange(),Zt.onHashChange(t),Hr.onHashChange(t)});const e={attributes:!1,childList:!0,subtree:!1};new MutationObserver(()=>{this.bodyMutCallback()}).observe(this.bodyElement,e)},bodyMutCallback:function(){var n;this.bodyElement.style.display="none",this.appStateStore.onBodyMut(),Hr.onBodyMut(),Vn.pxToRem(),Dh.dispatch(this.bodyElement);const e=document.querySelectorAll("#notice");e.length==1?(n=e[0].parentElement)==null||n.appendChild(e[0].cloneNode(!0)):e.length==2&&(e[1].innerHTML=e[0].innerHTML),this.bodyElement.style.display="block";const t=this.appStateStore.scrollY;t.hash===location.hash&&window.scrollTo({top:t.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}})),Yo.init(),location.hostname==="www.newsmth.net"&&(es.initDb(),_c(),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{es.initDom()}):es.initDom()))}}).run()})();

QingJ © 2025

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