// ==UserScript== // @name bilibili视频下载 // @namespace https://github.com/injahow // @version 2.1.0 // @description 支持Web、RPC、Blob、Aria等下载方式;支持flv、dash、mp4视频格式;支持下载港区番剧;支持会员下载;支持换源播放,自动切换为高清视频源 // @author injahow // @copyright 2021, injahow (https://github.com/injahow) // @license MIT // @source https://github.com/injahow/user.js // @supportURL https://github.com/injahow/user.js/issues // @match *://www.bilibili.com/video/av* // @match *://www.bilibili.com/video/BV* // @match *://www.bilibili.com/medialist/play/* // @match *://www.bilibili.com/bangumi/play/ep* // @match *://www.bilibili.com/bangumi/play/ss* // @match *://www.bilibili.com/cheese/play/ep* // @match *://www.bilibili.com/cheese/play/ss* // @match https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png* // @require https://static.hdslb.com/js/jquery.min.js // @require https://cdn.jsdelivr.net/npm/flv.js@1.6.2/dist/flv.min.js // @require https://cdn.jsdelivr.net/npm/dplayer@1.26.0/dist/DPlayer.min.js // @icon https://static.hdslb.com/images/favicon.ico // @compatible chrome // @compatible firefox // @grant none // @downloadURL none // ==/UserScript== /* eslint-disable */ /* spell-checker: disable */ // @[ You can find all source codes in GitHub repo ] !function(){var e={44:function(e,t,n){"use strict";n.r(t),n.d(t,{config:function(){return r},hostMap:function(){return i}});var r={base_api:"https://api.injahow.cn/bparse/",request_type:"auto",format:"flv",host_key:"0",replace_force:"0",auth:"0",download_type:"web",rpc_domain:"http://localhost",rpc_port:"16800",rpc_token:"",rpc_dir:"D:/",ariang_host:"http://ariang.injahow.com/",auto_download:"0",danmaku_speed:"15",danmaku_fontsize:"22"},i={0:"关闭",ks3:"upos-sz-mirrorks3.bilivideo.com",ks3b:"upos-sz-mirrorks3b.bilivideo.com",ks3c:"upos-sz-mirrorks3c.bilivideo.com",ks32:"upos-sz-mirrorks32.bilivideo.com",kodo:"upos-sz-mirrorkodo.bilivideo.com",kodob:"upos-sz-mirrorkodob.bilivideo.com",cos:"upos-sz-mirrorcos.bilivideo.com",cosb:"upos-sz-mirrorcosb.bilivideo.com",bos:"upos-sz-mirrorbos.bilivideo.com",wcs:"upos-sz-mirrorwcs.bilivideo.com",wcsb:"upos-sz-mirrorwcsb.bilivideo.com",hw:"upos-sz-mirrorhw.bilivideo.com",hwb:"upos-sz-mirrorhwb.bilivideo.com",upbda2:"upos-sz-upcdnbda2.bilivideo.com",upws:"upos-sz-upcdnws.bilivideo.com",uptx:"upos-sz-upcdntx.bilivideo.com",uphw:"upos-sz-upcdnhw.bilivideo.com",js:"upos-tf-all-js.bilivideo.com",hk:"cn-hk-eq-bcache-01.bilivideo.com",akamai:"upos-hz-mirrorakam.akamaized.net"}},657:function(e,t,n){"use strict";var r=n(81),i=n.n(r),o=n(645),a=n.n(o)()(i());a.push([e.id,"\n#bp_config[data-v-6a48ed2c] {\n opacity: 0;\n display: none;\n position: fixed;\n inset: 0px;\n top: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n z-index: 10000;\n}\n.bp_config_bg[data-v-6a48ed2c] {\n position: absolute;\n background: rgb(255, 255, 255);\n border-radius: 10px;\n padding: 20px;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 600px;\n box-shadow: rgb(0 0 0 / 70%) 0px 0px 0px 1000px;\n}\n.setting-button[data-v-6a48ed2c] {\n width: 120px;\n height: 40px;\n border-width: 0px;\n border-radius: 3px;\n background: #1e90ff;\n cursor: pointer;\n outline: none;\n color: white;\n font-size: 17px;\n}\n.setting-button[data-v-6a48ed2c]:hover {\n background: #5599ff;\n}\n.setting-context[data-v-6a48ed2c] {\n margin: 0 1%;\n color: blue;\n}\n.setting-context[data-v-6a48ed2c]:hover {\n color: red;\n}\n",""]),t.Z=a},645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},81:function(e){"use strict";e.exports=function(e){return e[1]}},733:function(e,t,n){e.exports=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,(function(e){return i(t[a][1][e]||e)}),c,c.exports,e,t,n,r)}return n[a].exports}for(var o=void 0,a=0;a>2,s=(3&t)<<4|n>>4,l=1>6:64,c=2>4,n=(15&a)<<4|(s=o.indexOf(e.charAt(c++)))>>2,r=(3&s)<<6|(l=o.indexOf(e.charAt(c++))),f[u++]=t,64!==s&&(f[u++]=n),64!==l&&(f[u++]=r);return f}},{"./support":30,"./utils":32}],2:[function(e,t,n){"use strict";var r=e("./external"),i=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){"use strict";var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(e){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){"use strict";var r=e("./utils"),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n,r){var o=i,a=r+n;e^=-1;for(var s=r;s>>8^o[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,n,r){var o=i,a=r+n;e^=-1;for(var s=r;s>>8^o[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){"use strict";var r=null;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),o=e("./utils"),a=e("./stream/GenericWorker"),s=r?"uint8array":"array";function l(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",o.inherits(l,a),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,e.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new l("Deflate",e)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){"use strict";function r(e,t){var n,r="";for(n=0;n>>=8;return r}function i(e,t,n,i,a,u){var d,f,h=e.file,p=e.compression,_=u!==s.utf8encode,m=o.transformTo("string",u(h.name)),v=o.transformTo("string",s.utf8encode(h.name)),g=h.comment,b=o.transformTo("string",u(g)),y=o.transformTo("string",s.utf8encode(g)),w=v.length!==h.name.length,k=y.length!==g.length,x="",S="",C="",E=h.dir,A=h.date,O={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(O.crc32=e.crc32,O.compressedSize=e.compressedSize,O.uncompressedSize=e.uncompressedSize);var I=0;t&&(I|=8),_||!w&&!k||(I|=2048);var T=0,z=0;E&&(T|=16),"UNIX"===a?(z=798,T|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(h.unixPermissions,E)):(z=20,T|=function(e){return 63&(e||0)}(h.dosPermissions)),d=A.getUTCHours(),d<<=6,d|=A.getUTCMinutes(),d<<=5,d|=A.getUTCSeconds()/2,f=A.getUTCFullYear()-1980,f<<=4,f|=A.getUTCMonth()+1,f<<=5,f|=A.getUTCDate(),w&&(S=r(1,1)+r(l(m),4)+v,x+="up"+r(S.length,2)+S),k&&(C=r(1,1)+r(l(b),4)+y,x+="uc"+r(C.length,2)+C);var F="";return F+="\n\0",F+=r(I,2),F+=p.magic,F+=r(d,2),F+=r(f,2),F+=r(O.crc32,4),F+=r(O.compressedSize,4),F+=r(O.uncompressedSize,4),F+=r(m.length,2),F+=r(x.length,2),{fileRecord:c.LOCAL_FILE_HEADER+F+m+x,dirRecord:c.CENTRAL_FILE_HEADER+r(z,2)+F+r(b.length,2)+"\0\0\0\0"+r(T,4)+r(i,4)+m+x+b}}var o=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),c=e("../signature");function u(e,t,n,r){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(u,a),u.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return c.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){"use strict";var r=e("./Uint8ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){"use strict";var r=e("./DataReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){"use strict";var r=e("./ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../support"),o=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new l(r.transformTo("uint8array",e)):new o(r.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../utils");function o(e){r.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(o,r),o.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../crc32");function o(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,r),o.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(o,i),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}r.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){"use strict";function r(e){this.name=e||"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}r.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n "+e:e}},t.exports=r},{}],29:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./ConvertWorker"),o=e("./GenericWorker"),a=e("../base64"),s=e("../support"),l=e("../external"),c=null;if(s.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function u(e,t){return new l.Promise((function(n,i){var o=[],s=e._internalType,l=e._outputType,c=e._mimeType;e.on("data",(function(e,n){o.push(e),t&&t(n)})).on("error",(function(e){o=[],i(e)})).on("end",(function(){try{var e=function(e,t,n){switch(e){case"blob":return r.newBlob(r.transformTo("arraybuffer",t),n);case"base64":return a.encode(t);default:return r.transformTo(e,t)}}(l,function(e,t){var n,r=0,i=null,o=0;for(n=0;n>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,i,o,a=e.length,l=new Array(2*a);for(t=n=0;t>10&1023,l[n++]=56320|1023&i)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)}(e=r.transformTo(i.uint8array?"uint8array":"array",e))},r.inherits(c,a),c.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(t),l=t;a!==t.length&&(i.uint8array?(l=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(l=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:n.utf8decode(l),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=c,r.inherits(u,a),u.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){"use strict";var r=e("./support"),i=e("./base64"),o=e("./nodejsUtils"),a=e("set-immediate-shim"),s=e("./external");function l(e){return e}function c(e,t){for(var n=0;n>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n>10&1023,c[r++]=56320|1023&i)}return l(c,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var o=r,a=i+n;e^=-1;for(var s=i;s>>8^o[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){"use strict";var r,i=e("../utils/common"),o=e("./trees"),a=e("./adler32"),s=e("./crc32"),l=e("./messages"),c=0,u=4,d=0,f=-2,h=-1,p=4,_=2,m=8,v=9,g=286,b=30,y=19,w=2*g+1,k=15,x=3,S=258,C=S+x+1,E=42,A=113,O=1,I=2,T=3,z=4;function F(e,t){return e.msg=l[t],t}function R(e){return(e<<1)-(4e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function L(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,B(e.strm)}function D(e,t){e.pending_buf[e.pending++]=t}function U(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function j(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-C?e.strstart-(e.w_size-C):0,c=e.window,u=e.w_mask,d=e.prev,f=e.strstart+S,h=c[o+a-1],p=c[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+a]===p&&c[n+a-1]===h&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&ol&&0!=--i);return a<=e.lookahead?a:e.lookahead}function $(e){var t,n,r,o,l,c,u,d,f,h,p=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-C)){for(i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=n=e.hash_size;r=e.head[--t],e.head[t]=p<=r?r-p:0,--n;);for(t=n=p;r=e.prev[--t],e.prev[t]=p<=r?r-p:0,--n;);o+=p}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,d=e.strstart+e.lookahead,h=void 0,(f=o)<(h=c.avail_in)&&(h=f),n=0===h?0:(c.avail_in-=h,i.arraySet(u,c.input,c.next_in,h,d),1===c.state.wrap?c.adler=a(c.adler,u,h,d):2===c.state.wrap&&(c.adler=s(c.adler,u,h,d)),c.next_in+=h,c.total_in+=h,h),e.lookahead+=n,e.lookahead+e.insert>=x)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<=x&&(e.ins_h=(e.ins_h<=x)if(r=o._tr_tally(e,e.strstart-e.match_start,e.match_length-x),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=x){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<=x&&(e.ins_h=(e.ins_h<=x&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-x,r=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-x),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if($(e),0===e.lookahead&&t===c)return O;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,L(e,!1),0===e.strm.avail_out))return O;if(e.strstart-e.block_start>=e.w_size-C&&(L(e,!1),0===e.strm.avail_out))return O}return e.insert=0,t===u?(L(e,!0),0===e.strm.avail_out?T:z):(e.strstart>e.block_start&&(L(e,!1),e.strm.avail_out),O)})),new W(4,4,8,4,N),new W(4,5,16,8,N),new W(4,6,32,32,N),new W(4,4,16,16,M),new W(8,16,32,32,M),new W(8,16,128,128,M),new W(8,32,128,256,M),new W(32,128,258,1024,M),new W(32,258,258,4096,M)],n.deflateInit=function(e,t){return q(e,t,m,15,8,0)},n.deflateInit2=q,n.deflateReset=H,n.deflateResetKeep=Z,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?f:(e.state.gzhead=t,d):f},n.deflate=function(e,t){var n,i,a,l;if(!e||!e.state||5>8&255),D(i,i.gzhead.time>>16&255),D(i,i.gzhead.time>>24&255),D(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),D(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(D(i,255&i.gzhead.extra.length),D(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(D(i,0),D(i,0),D(i,0),D(i,0),D(i,0),D(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),D(i,3),i.status=A);else{var h=m+(i.w_bits-8<<4)<<8;h|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(h|=32),h+=31-h%31,i.status=A,U(i,h),0!==i.strstart&&(U(i,e.adler>>>16),U(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),B(e),a=i.pending,i.pending!==i.pending_buf_size));)D(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),B(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexa&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),B(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexa&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&B(e),i.pending+2<=i.pending_buf_size&&(D(i,255&e.adler),D(i,e.adler>>8&255),e.adler=0,i.status=A)):i.status=A),0!==i.pending){if(B(e),0===e.avail_out)return i.last_flush=-1,d}else if(0===e.avail_in&&R(t)<=R(n)&&t!==u)return F(e,-5);if(666===i.status&&0!==e.avail_in)return F(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==c&&666!==i.status){var p=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&($(e),0===e.lookahead)){if(t===c)return O;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(L(e,!1),0===e.strm.avail_out))return O}return e.insert=0,t===u?(L(e,!0),0===e.strm.avail_out?T:z):e.last_lit&&(L(e,!1),0===e.strm.avail_out)?O:I}(i,t):3===i.strategy?function(e,t){for(var n,r,i,a,s=e.window;;){if(e.lookahead<=S){if($(e),e.lookahead<=S&&t===c)return O;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=x&&0e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=x?(n=o._tr_tally(e,1,e.match_length-x),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(L(e,!1),0===e.strm.avail_out))return O}return e.insert=0,t===u?(L(e,!0),0===e.strm.avail_out?T:z):e.last_lit&&(L(e,!1),0===e.strm.avail_out)?O:I}(i,t):r[i.level].func(i,t);if(p!==T&&p!==z||(i.status=666),p===O||p===T)return 0===e.avail_out&&(i.last_flush=-1),d;if(p===I&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(P(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),B(e),0===e.avail_out))return i.last_flush=-1,d}return t!==u?d:i.wrap<=0?1:(2===i.wrap?(D(i,255&e.adler),D(i,e.adler>>8&255),D(i,e.adler>>16&255),D(i,e.adler>>24&255),D(i,255&e.total_in),D(i,e.total_in>>8&255),D(i,e.total_in>>16&255),D(i,e.total_in>>24&255)):(U(i,e.adler>>>16),U(i,65535&e.adler)),B(e),0=n.w_size&&(0===s&&(P(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new i.Buf8(n.w_size),i.arraySet(h,t,p-n.w_size,n.w_size,0),t=h,p=n.w_size),l=e.avail_in,c=e.next_in,u=e.input,e.avail_in=p,e.next_in=0,e.input=t,$(n);n.lookahead>=x;){for(r=n.strstart,o=n.lookahead-(x-1);n.ins_h=(n.ins_h<>>=y=b>>>24,p-=y,0==(y=b>>>16&255))E[o++]=65535&b;else{if(!(16&y)){if(0==(64&y)){b=_[(65535&b)+(h&(1<>>=y,p-=y),p<15&&(h+=C[r++]<>>=y=b>>>24,p-=y,!(16&(y=b>>>16&255))){if(0==(64&y)){b=m[(65535&b)+(h&(1<>>=y,p-=y,(y=o-a)>3,h&=(1<<(p-=w<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function m(){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 r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=f,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(h),t.distcode=t.distdyn=new r.Buf32(p),t.sane=1,t.back=-1,u):d}function g(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,v(e)):d}function b(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i<(o=a.wsize-a.wnext)&&(o=i),r.arraySet(a.window,t,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,t,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,n.check=o(n.check,$,2,0),w=y=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&y)<<8)+(y>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&y)){e.msg="unknown compression method",n.mode=30;break}if(w-=4,B=8+(15&(y>>>=4)),0===n.wbits)n.wbits=B;else if(B>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<>8&1),512&n.flags&&($[0]=255&y,$[1]=y>>>8&255,n.check=o(n.check,$,2,0)),w=y=0,n.mode=3;case 3:for(;w<32;){if(0===g)break e;g--,y+=h[m++]<>>8&255,$[2]=y>>>16&255,$[3]=y>>>24&255,n.check=o(n.check,$,4,0)),w=y=0,n.mode=4;case 4:for(;w<16;){if(0===g)break e;g--,y+=h[m++]<>8),512&n.flags&&($[0]=255&y,$[1]=y>>>8&255,n.check=o(n.check,$,2,0)),w=y=0,n.mode=5;case 5:if(1024&n.flags){for(;w<16;){if(0===g)break e;g--,y+=h[m++]<>>8&255,n.check=o(n.check,$,2,0)),w=y=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(g<(E=n.length)&&(E=g),E&&(n.head&&(B=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,h,m,E,B)),512&n.flags&&(n.check=o(n.check,h,E,m)),g-=E,m+=E,n.length-=E),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===g)break e;for(E=0;B=h[m+E++],n.head&&B&&n.length<65536&&(n.head.name+=String.fromCharCode(B)),B&&E>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;w<32;){if(0===g)break e;g--,y+=h[m++]<>>=7&w,w-=7&w,n.mode=27;break}for(;w<3;){if(0===g)break e;g--,y+=h[m++]<>>=1)){case 0:n.mode=14;break;case 1:if(S(n),n.mode=20,6!==t)break;y>>>=2,w-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}y>>>=2,w-=2;break;case 14:for(y>>>=7&w,w-=7&w;w<32;){if(0===g)break e;g--,y+=h[m++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&y,w=y=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(E=n.length){if(g>>=5,w-=5,n.ndist=1+(31&y),y>>>=5,w-=5,n.ncode=4+(15&y),y>>>=4,w-=4,286>>=3,w-=3}for(;n.have<19;)n.lens[N[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,D={bits:n.lenbits},L=s(0,n.lens,0,19,n.lencode,0,n.work,D),n.lenbits=D.bits,L){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have>>16&255,z=65535&j,!((I=j>>>24)<=w);){if(0===g)break e;g--,y+=h[m++]<>>=I,w-=I,n.lens[n.have++]=z;else{if(16===z){for(U=I+2;w>>=I,w-=I,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}B=n.lens[n.have-1],E=3+(3&y),y>>>=2,w-=2}else if(17===z){for(U=I+3;w>>=I)),y>>>=3,w-=3}else{for(U=I+7;w>>=I)),y>>>=7,w-=7}if(n.have+E>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;E--;)n.lens[n.have++]=B}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,D={bits:n.lenbits},L=s(l,n.lens,0,n.nlen,n.lencode,0,n.work,D),n.lenbits=D.bits,L){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,D={bits:n.distbits},L=s(c,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,D),n.distbits=D.bits,L){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=g&&258<=b){e.next_out=v,e.avail_out=b,e.next_in=m,e.avail_in=g,n.hold=y,n.bits=w,a(e,x),v=e.next_out,p=e.output,b=e.avail_out,m=e.next_in,h=e.input,g=e.avail_in,y=n.hold,w=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;T=(j=n.lencode[y&(1<>>16&255,z=65535&j,!((I=j>>>24)<=w);){if(0===g)break e;g--,y+=h[m++]<>F)])>>>16&255,z=65535&j,!(F+(I=j>>>24)<=w);){if(0===g)break e;g--,y+=h[m++]<>>=F,w-=F,n.back+=F}if(y>>>=I,w-=I,n.back+=I,n.length=z,0===T){n.mode=26;break}if(32&T){n.back=-1,n.mode=12;break}if(64&T){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&T,n.mode=22;case 22:if(n.extra){for(U=n.extra;w>>=n.extra,w-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;T=(j=n.distcode[y&(1<>>16&255,z=65535&j,!((I=j>>>24)<=w);){if(0===g)break e;g--,y+=h[m++]<>F)])>>>16&255,z=65535&j,!(F+(I=j>>>24)<=w);){if(0===g)break e;g--,y+=h[m++]<>>=F,w-=F,n.back+=F}if(y>>>=I,w-=I,n.back+=I,64&T){e.msg="invalid distance code",n.mode=30;break}n.offset=z,n.extra=15&T,n.mode=24;case 24:if(n.extra){for(U=n.extra;w>>=n.extra,w-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===b)break e;if(E=x-b,n.offset>E){if((E=n.offset-E)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}A=E>n.wnext?(E-=n.wnext,n.wsize-E):n.wnext-E,E>n.length&&(E=n.length),O=n.window}else O=p,A=v-n.offset,E=n.length;for(bg?(y=D[U+d[S]],R[P+d[S]]):(y=96,0),h=1<>I)+(p-=h)]=b<<24|y<<16|w|0,0!==p;);for(h=1<>=1;if(0!==h?(F&=h-1,F+=h):F=0,S++,0==--B[x]){if(x===E)break;x=t[n+d[S]]}if(A>>7)]}function D(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function U(e,t,n){e.bi_valid>_-n?(e.bi_buf|=t<>_-e.bi_valid,e.bi_valid+=n-_):(e.bi_buf|=t<>>=1,n<<=1,0<--t;);return n>>>1}function N(e,t,n){var r,i,o=new Array(p+1),a=0;for(r=1;r<=p;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=$(o[s]++,s))}}function M(e){var t;for(t=0;t>1;1<=n;n--)Z(e,o,n);for(i=l;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Z(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,Z(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,a,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,_=t.stat_desc.extra_base,m=t.stat_desc.max_length,v=0;for(o=0;o<=p;o++)e.bl_count[o]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n>=7;r>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return i;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return o;for(t=32;t>>3,(s=e.static_len+3+7>>>3)<=a&&(a=s)):a=s=n+5,n+4<=a&&-1!==t?X(e,t,n,r):4===e.strategy||s===a?(U(e,2+(r?1:0),3),H(e,C,E)):(U(e,4+(r?1:0),3),function(e,t,n,r){var i;for(U(e,t-257,5),U(e,n-1,5),U(e,r-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(O[n]+c+1)]++,e.dyn_dtree[2*L(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){U(e,2,3),j(e,v,C),function(e){16===e.bi_valid?(D(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){"use strict";t.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(e,t,n){"use strict";t.exports="function"==typeof setImmediate?setImmediate:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}},{}]},{},[10])(10)},379:function(e){"use strict";var t=[];function n(e){for(var n=-1,r=0;r0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:function(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},744:function(e,t){"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,exports:{}};return e[r](o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e=n(44);function t(e,t){for(var n=0;n'.concat(e.html,"")):$("div#message_box_context").html('
╰( ̄▽ ̄)╮
'),i.hide(),$("#message_box").show(),$("div#message_box").animate({opacity:"1"},300),$('div.message_box_btn button[name="affirm"]')[0].onclick=function(){$("div#message_box").hide(),$("div#message_box").css("opacity",0),i.show(),e.callback&&e.callback.affirm&&e.callback.affirm()},$('div.message_box_btn button[name="cancel"]')[0].onclick=function(){$("div#message_box").hide(),$("div#message_box").css("opacity",0),i.show(),e.callback&&e.callback.cancel&&e.callback.cancel()}}var a=0;function s(e,t){(function(e,t){$("div.message-bg").append(e),$("div#message-".concat(t)).animate({"margin-top":"+=70px",opacity:"1"},300)})('

').concat(t,":

").concat(e,"

"),a),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;setTimeout((function(){var t="div#message-".concat(e);$(t).animate({"margin-top":"-=70px",opacity:"0"},300,(function(){$(t).remove()}))}),1e3*t)}(a,3)}var l=function(e){return s(e,"success")},c=function(e){return s(e,"warning")},u=function(e){return s(e,"danger")},d=function(e){return s(e,"info")},f=function(e){return s("(^・ω・^)~喵喵喵~","info")},h=function(e,t){return o({html:e,callback:{affirm:t}},"alert")},p=function(e,t,n){return o({html:e,callback:{affirm:t,cancel:n}},"confirm")};function _(e){return new Promise((function(t,n){e.success=function(e){e.code&&c("".concat(e.message||"CODE:".concat(e.code))),t(e)},e.error=function(e){u("网络异常"),n(e)},$.ajax(e)}))}function m(){return location.pathname.match("/cheese/play/")?"cheese":location.pathname.match("/medialist/play/")?"medialist":window.__INITIAL_STATE__?window.__INITIAL_STATE__.epInfo?"bangumi":window.__INITIAL_STATE__.videoData?"video":void 0:"?"}var v={"1080P 高码率":112,"1080P 高清":80,"720P 高清":64,"480P 清晰":32,"360P 流畅":16,"自动":64};var g={type:m,base:function(){var e=m();if("video"===e){var t=window.__INITIAL_STATE__,n=(t.videoData&&t.videoData.title||"unknown").replace(/[\/\\:*?"<>|]+/g,"");return{type:"video",name:n,total:function(){return t.videoData.pages.length||1},title:function(e){var n=e||t.p||1;return(t.videoData.pages[n-1].part||"unknown").replace(/[\/\\:*?"<>|]+/g,"")},filename:function(e){var r=e||t.p||1;return(n+" P".concat(r," (").concat(t.videoData.pages[r-1].part||r,")")).replace(/[\/\\:*?"<>|]+/g,"")},aid:function(e){return t.videoData.aid},p:function(){return t.p||1},cid:function(e){var n=e||t.p||1;return t.videoData.pages[n-1].cid},epid:function(e){return""},need_vip:function(){return!1},vip_need_pay:function(){return!1},is_limited:function(){return!1}}}if("medialist"===e){var r=$("div.player-auxiliary-playlist-item"),i=$("div.player-auxiliary-playlist-item.player-auxiliary-playlist-item-active").index(),o=($(".player-auxiliary-playlist-top .player-auxiliary-filter-title").html()||"unknown").replace(/[\/\\:*?"<>|]+/g,"");return{type:"video",name:o,total:function(){return r.length},title:function(e){var t=e?e-1:i,n=r.eq(t).find(".player-auxiliary-playlist-item-title").attr("title")||"unknown";return n.replace(/[\/\\:*?"<>|]+/g,"")},filename:function(e){var t=e?e-1:i,n=r.eq(t).find(".player-auxiliary-playlist-item-title").attr("title")||"unknown";return"".concat(o," P").concat(t+1," (").concat(n,")").replace(/[\/\\:*?"<>|]+/g,"")},aid:function(e){var t=e?e-1:i;return r.eq(t).attr("data-aid")},p:function(){return i+1},cid:function(e){var t=e?e-1:i;return r.eq(t).attr("data-cid")},epid:function(e){return""},need_vip:function(){return!1},vip_need_pay:function(){return!1},is_limited:function(){return!1}}}if("bangumi"===e){var a=window.__INITIAL_STATE__,s=(a.mediaInfo.season_title||"unknown").replace(/[\/\\:*?"<>|]+/g,"");return{type:"bangumi",name:s,total:function(){return a.epList.length},title:function(e){var t=e?a.epList[e-1]:a.epInfo;return"".concat(t.titleFormat," ").concat(t.longTitle).replace(/[\/\\:*?"<>|]+/g,"")},filename:function(e){if(e){var t=a.epList[e-1];return"".concat(s,":").concat(t.titleFormat," ").concat(t.longTitle).replace(/[\/\\:*?"<>|]+/g,"")}return(a.h1Title||"unknown").replace(/[\/\\:*?"<>|]+/g,"")},aid:function(e){return e?a.epList[e-1].aid:a.epInfo.aid},p:function(){return a.epInfo.i||1},cid:function(e){return e?a.epList[e-1].cid:a.epInfo.cid},epid:function(e){return e?a.epList[e-1].id:a.epInfo.id},need_vip:function(){return"会员"===a.epInfo.badge},vip_need_pay:function(){return a.epPayMent.vipNeedPay},is_limited:function(){return a.userState.areaLimit}}}if("cheese"===e){var l=(location.href.match(/\/cheese\/play\/ep(\d+)/i)||["",""])[1];window.bp_episodes||(window.bp_episodes=[],x.get_season(l));var c=window.bp_episodes,u=$("li.on.list-box-li").index(),d=($("div.season-info h1").html()||"unknown").replace(/[\/\\:*?"<>|]+/g,"");return{type:"cheese",name:d,total:function(){return c.length},title:function(e){return(c[e?e-1:u].title||"unknown").replace(/[\/\\:*?"<>|]+/g,"")},filename:function(e){var t=e?e-1:u;return"".concat(d," P").concat(t+1," (").concat(c[t].title||"unknown",")").replace(/[\/\\:*?"<>|]+/g,"")},aid:function(e){return c[e?e-1:u].aid},p:function(){return u+1},cid:function(e){return c[e?e-1:u].cid},epid:function(e){return c[e?e-1:u].id},need_vip:function(){return!1},vip_need_pay:function(){return!1},is_limited:function(){return!1}}}return{type:"?",name:"none",total:function(){return 0},title:function(e){return""},filename:function(e){return""},aid:function(e){return""},p:function(){return 1},cid:function(e){return""},epid:function(e){return""},need_vip:function(){return!1},vip_need_pay:function(){return!1},is_limited:function(){return!1}}},get_quality:function(){var e=0,t=0;return $("li.bui-select-item")[0]&&(t=parseInt($("li.bui-select-item")[0].dataset.value))?e=parseInt($("li.bui-select-item.bui-select-item-active").attr("data-value"))||(t>80?80:t):$("li.squirtle-select-item")[0]&&(t=parseInt($("li.squirtle-select-item")[0].dataset.value))?e=parseInt($("li.squirtle-select-item.active").attr("data-value"))||(t>80?80:t):$("div.edu-player-quality-item")[0]?(e=v[$("div.edu-player-quality-item.active span").text()||"自动"]||80,t=v[$("div.edu-player-quality-item span").text()||"自动"]||80):e=t=80,{q:e,q_max:t}},get_quality_support:function(){var e,t=[];return"cheese"===m()?((e=$("div.edu-player-quality-item span")).each((function(){if("自动"===$(this).text())return!1;t.push(v[$(this).text()])})),t.length?t:["80","64","32","16"]):($("ul.squirtle-select-list")[0]?e=$("li.squirtle-select-item"):$("ul.bui-select-list")[0]&&(e=$("li.bui-select-item")),e&&e.length?(e.each((function(){var e="".concat($(this).attr("data-value"));if("0"===e)return!1;t.push(e)})),t):["80","64","32","16"])}};function b(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2])||arguments[2],r=g.base(),i=[r.aid(e),r.cid(e),r.epid(e)],o=i[0],a=i[1],s=i[2];_({url:"https://api.bilibili.com/x/player/v2?aid=".concat(o,"&cid=").concat(a,"&ep_id=").concat(s),dataType:"json"}).then((function(e){!e.code&&e.data.subtitle.subtitles[0]?_({url:"".concat(e.data.subtitle.subtitles[0].subtitle_url),dataType:"json"}).then((function(e){var r,i="WEBVTT\n\n",o=b(e.body||[{from:0,to:0,content:""}]);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=new Date(1e3*(parseInt(a.from)-28800)).toTimeString().split(" ")[0]+"."+(a.from.toString().split(".")[1]||"000").padEnd(3,"0"),l=new Date(1e3*(parseInt(a.to)-28800)).toTimeString().split(" ")[0]+"."+(a.to.toString().split(".")[1]||"000").padEnd(3,"0");i+="".concat(s," --\x3e ").concat(l,"\n").concat(a.content.trim(),"\n\n")}}catch(e){o.e(e)}finally{o.f()}t(n?URL.createObjectURL(new Blob([i],{type:"text/vtt"})):i)})).catch(t):t()})).catch(t)}var x={get_url:function(t,n){var r=e.config.request_type;w(0,0,e.config.format,t,n,r)},get_urls:function(t,n,r,i,o){w(t,n,r,i,o,e.config.request_type)},get_subtitle_url:function(e,t){k(e,t,!0)},get_subtitle_data:function(e,t){k(e,t,!1)},get_season:function(e){_({url:"https://api.bilibili.com/pugv/view/web/season?ep_id=".concat(e),xhrFields:{withCredentials:!0},dataType:"json"}).then((function(e){e.code?c("获取剧集信息失败"):window.bp_episodes=e.data.episodes||null}))}};function S(e,t){t?_({url:"https://api.bilibili.com/x/v1/dm/list.so?oid=".concat(t),dataType:"text"}).then((function(t){var n=$(t.replace(/[\x00-\x08\x0b-\x0c\x0e-\x1f\x7f]/g,""));if(n)if(n.find("d")[0]){var r=n.find("d").map((function(e,t){var n=$(t),r=n.attr("p").split(","),i=0;return"4"===r[1]?i=2:"5"===r[1]&&(i=1),[{author:"",time:parseFloat(r[0]),type:i,color:parseInt(r[3]),id:"",text:n.text()}]})).get();e.success(r),setTimeout((function(){O()}),100)}else e.error("未发现弹幕");else e.error("弹幕获取失败")})).catch((function(t){e.error("弹幕请求异常")})):e.error("cid未知,无法获取弹幕")}function C(){return $("bwp-video")[0]?"bwp-video":$('video[class!="dplayer-video dplayer-video-current"]')[0]?'video[class!="dplayer-video dplayer-video-current"]':void 0}function E(){var e=$(C())[0];e&&(e.pause(),e.currentTime=0)}function A(){if(window.bp_dplayer){var e=$(C())[0];e&&e.removeEventListener("play",E,!1),window.bp_dplayer.destroy(),window.bp_dplayer=null,$("#bp_dplayer").remove(),window.bp_dplayer_2&&(window.bp_dplayer_2.destroy(),window.bp_dplayer_2=null,$("#bp_dplayer_2").remove()),$($("#bilibiliPlayer")[0]?"#bilibiliPlayer":$("#bilibili-player")[0]?"#bilibili-player":"cheese"===g.type()?$('div.bpx-player[data-injector="nano"]')[0]?'div.bpx-player[data-injector="nano"]':"#pay-mask":void 0).show()}}function O(){var t=""+'");$("#dplayer_danmaku_style")[0]&&$("#dplayer_danmaku_style").remove(),$("body").append(t)}var I={bili_video_tag:C,recover_player:A,replace_player:function(t,n){A();var r,i=$(C())[0];E(),i&&i.addEventListener("play",E,!1),$("#bilibiliPlayer")[0]?(r="#bilibiliPlayer",$(r).before('
'),$(r).hide()):$("#bilibili-player")[0]?(r="#bilibili-player",$(r).before('
'),$(r).hide()):"cheese"===g.type()&&($('div.bpx-player[data-injector="nano"]')[0]?($("#pay-mask").hide(),$("#bofqi").show(),r='div.bpx-player[data-injector="nano"]',$(r).before('
'),$(r).hide()):(r="#pay-mask",$(r).html('
'))),$("#player_mask_module").hide(),x.get_subtitle_url(0,(function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(window.bp_dplayer=new DPlayer({container:$("#bp_dplayer")[0],mutex:!1,volume:1,autoplay:!0,video:{url:t,type:"auto"},subtitle:{url:r,type:"webvtt",fontSize:"35px",bottom:"5%",color:"#fff"},danmaku:!0,apiBackend:{read:function(e){S(e,g.base().cid())},send:function(e){e.error("此脚本无法将弹幕同步到云端")}},contextmenu:[{text:"脚本信息",link:"https://github.com/injahow/user.js"},{text:"脚本作者",link:"https://injahow.com"}]}),"dash"===e.config.format&&n&&"#"!==n){$("body").append(''),window.bp_dplayer_2=new DPlayer({container:$("#bp_dplayer_2")[0],mutex:!1,volume:1,autoplay:!0,video:{url:n,type:"auto"}});var i=[window.bp_dplayer,window.bp_dplayer_2],o=i[0],a=i[1];o.on("play",(function(){!o.paused&&a.play()})),o.on("playing",(function(){!o.paused&&a.play()})),o.on("timeupdate",(function(){Math.abs(o.video.currentTime-a.video.currentTime)>1&&(a.pause(),a.seek(o.video.currentTime)),!o.paused&&a.play()})),o.on("seeking",(function(){a.pause(),a.seek(o.video.currentTime)})),o.on("waiting",(function(){a.pause(),a.seek(o.video.currentTime)})),o.on("pause",(function(){a.pause(),a.seek(o.video.currentTime)})),o.on("suspend",(function(){a.speed(o.video.playbackRate)})),o.on("volumechange",(function(){a.volume(o.video.volume),a.video.muted=o.video.muted}))}}))},danmaku:{config:O}},T=n(733),z=n.n(T);function F(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n")+"已经下载:".concat(Math.floor(n/1048576),"MB(").concat(n,"Byte)
")+"当前进度:".concat(r,"%
下载中请勿操作浏览器!"),(function(){U=!1,h("注意:刷新或离开页面会导致下载取消!
再次点击下载按钮可查看下载进度。")})),t===n&&(h("下载完成,请等待浏览器保存!"),D=!1)}({total:n,loaded:t,percent:Math.floor(100*t/n)})}},n.send(),D=!0,d("准备开始下载")}function N(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_({url:"https://api.bilibili.com/x/v1/dm/list.so?oid=".concat(e),dataType:"text"}).then((function(e){var i=$(e.replace(/[\x00-\x08\x0b-\x0c\x0e-\x1f\x7f]/g,""));if(i&&i.find("d")[0]){var o=i.find("d").map((function(e,t){var n=$(t),r=n.attr("p").split(","),i=0;return"4"===r[1]?i=2:"5"===r[1]&&(i=1),[{time:parseFloat(r[0]),type:i,color:parseInt(r[3]),text:n.text()}]})).get();o.sort((function(e,t){return e.time-t.time}));var a,s=function(e,t,n){var r,i,o,a,s=e.text,l=e.time,c=[0===e.type?(i=50*(1+Math.floor(15*Math.random())),o=1920+50*e.text.length/2,a=0-50*e.text.length/2,"\\move(".concat(o,",").concat(i,",").concat(a,",").concat(i,")")):function(e,t){return"\\pos(".concat(t,",").concat(e,")")}(50*(1+n%15),960),(r=e.color,16777215===r?"":function(e){return"\\c&H".concat(((255&e)<<16|(e>>8&255)<<8|e>>16&255).toString(16),"&")}(e.color))],u=function(e){var t=function(e,t){return Math.floor(e/t)},n=function(e){return e<10?"0"+e:""+e},r=Math.floor(e),i=t(r,3600),o=t(r,60)%60,a=r%60,s=Math.floor(100*(e-r));return"".concat(i,":").concat(n(o),":").concat(n(a),".").concat(s)},d=[0,u(l),u(l+(0===e.type?8:4)),"Medium","","0","0","0","","{"+c.join("")+"}"+function(e){return e.replace(/\{/g,"{").replace(/\}/g,"}").replace(/\r|\n/g,"")}(s)];return"Dialogue: "+d.join(",")},l=["[Script Info]","; Script generated by bilibili-parse","; https://github.com/injahow/bilibili-parse","Title: ".concat(t),"ScriptType: v4.00+","PlayResX: ".concat(1920),"PlayResY: ".concat(1080),"Timer: 10.0000","WrapStyle: 2","ScaledBorderAndShadow: no","","[V4+ Styles]","Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding","Style: Small,微软雅黑,36,&H66FFFFFF,&H66FFFFFF,&H66000000,&H66000000,0,0,0,0,100,100,0,0,1,1.2,0,5,0,0,0,0","Style: Medium,微软雅黑,52,&H66FFFFFF,&H66FFFFFF,&H66000000,&H66000000,0,0,0,0,100,100,0,0,1,1.2,0,5,0,0,0,0","Style: Large,微软雅黑,64,&H66FFFFFF,&H66FFFFFF,&H66000000,&H66000000,0,0,0,0,100,100,0,0,1,1.2,0,5,0,0,0,0","Style: Larger,微软雅黑,72,&H66FFFFFF,&H66FFFFFF,&H66000000,&H66000000,0,0,0,0,100,100,0,0,1,1.2,0,5,0,0,0,0","Style: ExtraLarge,微软雅黑,90,&H66FFFFFF,&H66FFFFFF,&H66000000,&H66000000,0,0,0,0,100,100,0,0,1,1.2,0,5,0,0,0,0","","[Events]","Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text"],u=0,d=F(o);try{for(d.s();!(a=d.n()).done;){var f=a.value;0===f.type?0:u++,l.push(s(f,0,u))}}catch(e){d.e(e)}finally{d.f()}var h=l.join("\n");if(null===n||"file"===n){var p=URL.createObjectURL(new Blob([h],{type:"text/ass"})),_=document.createElement("a");_.style.display="none",_.href=p,_.download=t+".ass",document.body.appendChild(_),_.click(),_.remove(),URL.revokeObjectURL(p)}else"callback"===n&&r&&r(h)}else c("未发现弹幕")})).catch((function(e){c("未发现字幕")}))}function M(e,t){if(e){var n=URL.createObjectURL(e),r=document.createElement("a");r.setAttribute("target","_blank"),r.setAttribute("href",n),r.setAttribute("download",t+".zip"),document.body.appendChild(r),r.click(),r.remove(),URL.revokeObjectURL(n)}}function W(e,t){if(e)if(0!==e.length){var n=e.pop();N(n.cid,n.filename,"callback",(function(r){r&&t.file(n.filename+".ass",r),W(e,t)}))}else t.generateAsync({type:"blob"}).then((function(e){return M(e,g.base().name+"_ass")}))}function V(e,t){if(e)if(0!==e.length){var n=e.pop();x.get_subtitle_data(n.p,(function(r){r&&t.file(n.filename+".vtt",r),V(e,t)}))}else t.generateAsync({type:"blob"}).then((function(e){return M(e,g.base().name+"_vtt")}))}function Z(e){return e.match(".flv")?".flv":e.match(".m4s")?"_video.mp4":(e.match(".mp4"),".mp4")}var H={url_format:Z,download:function(t,n,r){var i=n.replace(/[\/\\:*?"<>|]+/g,"")+Z(t);"blob"===r?j(t,i):"rpc"===r&&function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"post";if(B)f();else{B=!0;var i={domain:e.config.rpc_domain,port:e.config.rpc_port,token:e.config.rpc_token,dir:e.config.rpc_dir},o={id:window.btoa("BParse_".concat(Date.now(),"_").concat(Math.random())),jsonrpc:"2.0",method:"aria2.addUri",params:["token:".concat(i.token),[t],{dir:i.dir,out:n,header:["User-Agent: ".concat(window.navigator.userAgent),"Referer: ".concat(window.location.href)]}]};if(d("发送RPC下载请求"),"post"===r)_({url:"".concat(i.domain,":").concat(i.port,"/jsonrpc"),type:"POST",dataType:"json",data:JSON.stringify(o)}).then((function(e){e.result?l("RPC请求成功"):c("请检查RPC参数")})).catch((function(e){u("请检查RPC服务配置")})).finally((function(e){return B=!1}));else if("ariang"===r){var a=window.bp_aria2_window,s=100;a&&!a.closed||(L(),s=3e3),setTimeout((function(){var r=window.bp_aria2_window,i="header=User-Agent:".concat(window.navigator.userAgent,"&header=Referer:").concat(window.location.href),o="#!/new/task?url=".concat(window.btoa(t),"&out=").concat(encodeURIComponent(n),"&").concat(i);r&&!r.closed?(r.location.href=e.config.ariang_host+o,l("RPC请求发送成功")):c("AriaNG页面未打开"),B=!1}),s)}}}(t,i,P())},download_all:function(){var t=g.base(),n=[g.get_quality().q,t.total()],r=n[0],i=n[1];$("body").on("click",'input[name="dl_video"]',(function(){$(this).is(":checked")?$(this).parent().css("color","rgba(0,0,0,1)"):$(this).parent().css("color","rgba(0,0,0,0.5)")}));for(var o="",a=0;a
\n \n P').concat(a+1," ").concat(t.title(a+1),"\n
");var s=!1;$("body").on("click","button#checkbox_btn",(function(){s?(s=!1,$('input[name="dl_video"]').prop("checked",s),$('input[name="dl_video"]').parent().css("color","rgba(0,0,0,0.5)")):(s=!0,$('input[name="dl_video"]').prop("checked",s),$('input[name="dl_video"]').parent().css("color","rgb(0,0,0)"))}));var f,m={120:"4K 超清",116:"1080P 60帧",112:"1080P 高码率",80:"1080P 高清",74:"720P 60帧",64:"720P 高清",48:"720P 高清(MP4)",32:"480P 清晰",16:"360P 流畅"},v="",b=F(g.get_quality_support());try{for(b.s();!(f=b.n()).done;){var y=f.value;v+='")}}catch(e){b.e(e)}finally{b.f()}var w=""+'
\n \n \n   仅video类型支持mp4\n
\n
\n \n \n
\n
\n \n \n   \n \n \n
\n \n 为避免请求被拦截,设置了延时且不支持下载无法播放的视频;请勿频繁下载过多视频,可能触发风控导致不可再下载!\n
\n
\n ').concat(o,"\n
\n
").concat("medialist"===g.type()?"不支持多页视频,若需要请到视频原播放页面下载":"",'
\n
\n \n
');function k(t,n,r){if(t.length)if(n今日剩余请求次数".concat(a.times):"")),h("".concat(o,":获取成功!"));var s=[a.url,Z(a.url),P()],u=s[0],d=s[1],f=s[2];"post"===f?(r.push({url:u,filename:i.filename+d}),r.length>3&&(S(r),r.length=0)):"ariang"===f&&function(t){var n=window.bp_aria2_window,r=100;n&&!n.closed||(L(),r=3e3);setTimeout((function(){var n=window.bp_aria2_window,r="header=User-Agent:".concat(window.navigator.userAgent,"&header=Referer:").concat(window.location.href);if(n&&!n.closed){var i="#!/new/task?url=".concat(window.btoa(t.url),"&out=").concat(encodeURIComponent(t.filename),"&").concat(r);n.location.href=e.config.ariang_host+i,l("RPC请求成功")}else c("请检查RPC参数")}),r)}({url:u,filename:i.filename+d})}setTimeout((function(){k(t,++n,r)}),3e3)}),(function(){k(t,++n,r)}))}),3e3)}else h("视频地址请求完成!"),"post"===P()&&r.length>0&&(S(r),r.length=0)}function S(t){var n,r={domain:e.config.rpc_domain,port:e.config.rpc_port,token:e.config.rpc_token,dir:e.config.rpc_dir},i=[],o=F(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;i.push({id:window.btoa("BParse_".concat(Date.now(),"_").concat(Math.random())),jsonrpc:"2.0",method:"aria2.addUri",params:["token:".concat(r.token),[a.url],{dir:r.dir,out:a.filename,header:["User-Agent: ".concat(window.navigator.userAgent),"Referer: ".concat(window.location.href)]}]})}}catch(e){o.e(e)}finally{o.f()}d("发送RPC下载请求"),_({url:"".concat(r.domain,":").concat(r.port,"/jsonrpc"),type:"POST",dataType:"json",data:JSON.stringify(i)}).then((function(e){e.length===i.length?l("RPC请求成功"):c("请检查RPC参数")})).catch((function(e){u("请检查RPC服务配置")}))}p(w,(function(){for(var e=$("#dl_quality").val()||r,n=$("#dl_subtitle").val(),o=$("#dl_danmaku").val(),a=[],s=0;s120?80:r)},download_danmaku_ass:function(e,t){N(e,t,"file")},download_subtitle_vtt:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(e){var n=document.createElement("a");n.setAttribute("target","_blank"),n.setAttribute("href",e),n.setAttribute("download",t+".vtt"),document.body.appendChild(n),n.click(),n.remove(),URL.revokeObjectURL(e)}else c("未发现字幕")};x.get_subtitle_url(e,n)},open_ariang:L};function q(e,t){for(var n=0;n864e5)&&_({url:"https://api.bilibili.com/x/space/myinfo?access_key=".concat(a),type:"GET",dataType:"json"}).then((function(n){if(!n.code)return r.set("auth_time",Date.now()),_({url:"".concat(e.config.base_api,"/auth/v2/?act=check&auth_id=").concat(i,"&auth_sec=").concat(o,"&access_key=").concat(a),type:"GET",dataType:"json"});h("授权已过期,准备重新授权",t.reLogin)})).then((function(e){e.code&&h("授权检查失败,准备重新授权",t.reLogin)})),r.set("pre_base_api",e.config.base_api))}},{key:"_login",value:function(e){var t=this;this.auth_clicked?f():(this.auth_clicked=!0,_({url:"https://passport.bilibili.com/login/app/third?appkey=27eb53fc9058f8c3&api=https%3A%2F%2Fwww.mcbbs.net%2Ftemplate%2Fmcbbs%2Fimage%2Fspecial_photo_bg.png&sign=04224646d1fea004e79606d3b038c84a",xhrFields:{withCredentials:!0},type:"GET",dataType:"json"}).then(e).finally((function(e){return t.auth_clicked=!1})))}},{key:"login",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1",t="1"===e?this.loginAuto.bind(this):this.loginManual.bind(this);r.get("auth_id")?p("发现授权记录,是否重新授权?",t):t()}},{key:"loginAuto",value:function(){this._login((function(e){e.data.has_login?$("body").append("")):p("必须登录B站才能正常授权,是否登陆?",(function(){location.href="https://passport.bilibili.com/login"}))}))}},{key:"loginManual",value:function(){this._login((function(t){if(t.data.has_login){var n=""+"请点击授权地址\n 打开一个新窗口,正常情况新窗口应该显示一个图片,请将该窗口地址栏的URL链接复制到当前文本框中
\n
然后点击确定即可");h(n,(function(){var t=$("#auth_url").val(),n=r.get("auth_id")||"",i=r.get("auth_sec")||"";_({url:t.replace("https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?","".concat(e.config.base_api,"/auth/v2/?act=login&auth_id=").concat(n,"&auth_sec=").concat(i,"&")),type:"GET",dataType:"json"}).then((function(n){n.code?c("授权失败"):(l("授权成功"),n.auth_id&&n.auth_sec&&(r.set("auth_id",n.auth_id),r.set("auth_sec",n.auth_sec)),r.set("access_key",new URL(t).searchParams.get("access_key")),r.set("auth_time",Date.now()),$("#auth").val("1"),e.config.auth="1")}))}))}else p("必须登录B站才能正常授权,是否登陆?",(function(){location.href="https://passport.bilibili.com/login"}))}))}},{key:"logout",value:function(){var t=this;if(r.get("auth_id"))if(this.auth_clicked)f();else{var n=[r.get("auth_id"),r.get("auth_sec")],i=n[0],o=n[1];_({url:"".concat(e.config.base_api,"/auth/v2/?act=logout&auth_id=").concat(i,"&auth_sec=").concat(o),type:"GET",dataType:"json"}).then((function(t){t.code?c("取消失败"):(l("取消成功"),r.set("auth_id",""),r.set("auth_sec",""),r.set("auth_time","0"),r.set("access_key",""),$("#auth").val("0"),e.config.auth="0")})).finally((function(e){return t.auth_clicked=!1}))}else h("没有发现授权记录")}},{key:"initAuth",value:function(){var t=this;window.addEventListener("message",(function(n){if("string"==typeof n.data&&"bilibili-parse-login-credentials"===n.data.split(":")[0]){$("iframe#auth_iframe").remove();var i=n.data.split(": ")[1],o=[r.get("auth_id"),r.get("auth_sec")],a=o[0],s=o[1];_({url:i.replace("https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?","".concat(e.config.base_api,"/auth/v2/?act=login&auth_id=").concat(a,"&auth_sec=").concat(s,"&")),type:"GET",dataType:"json"}).then((function(t){t.code?c("授权失败"):(l("授权成功"),t.auth_id&&t.auth_sec&&(r.set("auth_id",t.auth_id),r.set("auth_sec",t.auth_sec)),r.set("access_key",new URL(i).searchParams.get("access_key")),r.set("auth_time",Date.now()),$("#auth").val("1"),e.config.auth="1")})).finally((function(e){return t.auth_clicked=!1}))}}))}}],i&&K(n.prototype,i),o&&K(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(),X=new Y;function J(e,t){for(var n=0;n!!n[e.toLowerCase()]:e=>!!n[e]}const te="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ne=ee(te);function re(e){return!!e||""===e}function ie(e){if(we(e)){const t={};for(let n=0;n{if(e){const n=e.split(ae);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function le(e){let t="";if(Ce(e))t=e;else if(we(e))for(let n=0;nt&&t.__v_isRef?ce(e,t.value):ke(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:xe(t)?{[`Set(${t.size})`]:[...t.values()]}:!Ae(t)||we(t)||ze(t)?t:String(t),ue={},de=[],fe=()=>{},he=()=>!1,pe=/^on[^a-z]/,_e=e=>pe.test(e),me=e=>e.startsWith("onUpdate:"),ve=Object.assign,ge=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},be=Object.prototype.hasOwnProperty,ye=(e,t)=>be.call(e,t),we=Array.isArray,ke=e=>"[object Map]"===Te(e),xe=e=>"[object Set]"===Te(e),Se=e=>"function"==typeof e,Ce=e=>"string"==typeof e,Ee=e=>"symbol"==typeof e,Ae=e=>null!==e&&"object"==typeof e,Oe=e=>Ae(e)&&Se(e.then)&&Se(e.catch),Ie=Object.prototype.toString,Te=e=>Ie.call(e),ze=e=>"[object Object]"===Te(e),Fe=e=>Ce(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,Re=ee(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pe=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Be=/-(\w)/g,Le=Pe((e=>e.replace(Be,((e,t)=>t?t.toUpperCase():"")))),De=/\B([A-Z])/g,Ue=Pe((e=>e.replace(De,"-$1").toLowerCase())),je=Pe((e=>e.charAt(0).toUpperCase()+e.slice(1))),$e=Pe((e=>e?`on${je(e)}`:"")),Ne=(e,t)=>!Object.is(e,t),Me=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ve=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ze;const He=()=>Ze||(Ze="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});let qe;class Ge{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&qe&&(this.parent=qe,this.index=(qe.scopes||(qe.scopes=[])).push(this)-1)}run(e){if(this.active){const t=qe;try{return qe=this,e()}finally{qe=t}}else 0}on(){qe=this}off(){qe=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},Xe=e=>(e.w&tt)>0,Je=e=>(e.n&tt)>0,Qe=new WeakMap;let et=0,tt=1;let nt;const rt=Symbol(""),it=Symbol("");class ot{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,Ke(this,n)}run(){if(!this.active)return this.fn();let e=nt,t=st;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=nt,nt=this,st=!0,tt=1<<++et,et<=30?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{("length"===t||t>=r)&&s.push(e)}));else switch(void 0!==n&&s.push(a.get(n)),t){case"add":we(e)?Fe(n)&&s.push(a.get("length")):(s.push(a.get(rt)),ke(e)&&s.push(a.get(it)));break;case"delete":we(e)||(s.push(a.get(rt)),ke(e)&&s.push(a.get(it)));break;case"set":ke(e)&&s.push(a.get(rt))}if(1===s.length)s[0]&&pt(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);pt(Ye(e))}}function pt(e,t){for(const t of we(e)?e:[...e])(t!==nt||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const _t=ee("__proto__,__v_isRef,__isVue"),mt=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(Ee)),vt=kt(),gt=kt(!1,!0),bt=kt(!0),yt=wt();function wt(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=sn(this);for(let e=0,t=this.length;e{e[t]=function(...e){ct();const n=sn(this)[t].apply(this,e);return ut(),n}})),e}function kt(e=!1,t=!1){return function(n,r,i){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&i===(e?t?Xt:Yt:t?Kt:Gt).get(n))return n;const o=we(n);if(!e&&o&&ye(yt,r))return Reflect.get(yt,r,i);const a=Reflect.get(n,r,i);if(Ee(r)?mt.has(r):_t(r))return a;if(e||dt(n,0,r),t)return a;if(hn(a)){return!o||!Fe(r)?a.value:a}return Ae(a)?e?en(a):Qt(a):a}}function xt(e=!1){return function(t,n,r,i){let o=t[n];if(rn(o)&&hn(o)&&!hn(r))return!1;if(!e&&!rn(r)&&(on(r)||(r=sn(r),o=sn(o)),!we(t)&&hn(o)&&!hn(r)))return o.value=r,!0;const a=we(t)&&Fe(n)?Number(n)!0,deleteProperty:(e,t)=>!0},Et=ve({},St,{get:gt,set:xt(!0)}),At=e=>e,Ot=e=>Reflect.getPrototypeOf(e);function It(e,t,n=!1,r=!1){const i=sn(e=e.__v_raw),o=sn(t);t!==o&&!n&&dt(i,0,t),!n&&dt(i,0,o);const{has:a}=Ot(i),s=r?At:n?un:cn;return a.call(i,t)?s(e.get(t)):a.call(i,o)?s(e.get(o)):void(e!==i&&e.get(t))}function Tt(e,t=!1){const n=this.__v_raw,r=sn(n),i=sn(e);return e!==i&&!t&&dt(r,0,e),!t&&dt(r,0,i),e===i?n.has(e):n.has(e)||n.has(i)}function zt(e,t=!1){return e=e.__v_raw,!t&&dt(sn(e),0,rt),Reflect.get(e,"size",e)}function Ft(e){e=sn(e);const t=sn(this);return Ot(t).has.call(t,e)||(t.add(e),ht(t,"add",e,e)),this}function Rt(e,t){t=sn(t);const n=sn(this),{has:r,get:i}=Ot(n);let o=r.call(n,e);o||(e=sn(e),o=r.call(n,e));const a=i.call(n,e);return n.set(e,t),o?Ne(t,a)&&ht(n,"set",e,t):ht(n,"add",e,t),this}function Pt(e){const t=sn(this),{has:n,get:r}=Ot(t);let i=n.call(t,e);i||(e=sn(e),i=n.call(t,e));r&&r.call(t,e);const o=t.delete(e);return i&&ht(t,"delete",e,void 0),o}function Bt(){const e=sn(this),t=0!==e.size,n=e.clear();return t&&ht(e,"clear",void 0,void 0),n}function Lt(e,t){return function(n,r){const i=this,o=i.__v_raw,a=sn(o),s=t?At:e?un:cn;return!e&&dt(a,0,rt),o.forEach(((e,t)=>n.call(r,s(e),s(t),i)))}}function Dt(e,t,n){return function(...r){const i=this.__v_raw,o=sn(i),a=ke(o),s="entries"===e||e===Symbol.iterator&&a,l="keys"===e&&a,c=i[e](...r),u=n?At:t?un:cn;return!t&&dt(o,0,l?it:rt),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Ut(e){return function(...t){return"delete"!==e&&this}}function jt(){const e={get(e){return It(this,e)},get size(){return zt(this)},has:Tt,add:Ft,set:Rt,delete:Pt,clear:Bt,forEach:Lt(!1,!1)},t={get(e){return It(this,e,!1,!0)},get size(){return zt(this)},has:Tt,add:Ft,set:Rt,delete:Pt,clear:Bt,forEach:Lt(!1,!0)},n={get(e){return It(this,e,!0)},get size(){return zt(this,!0)},has(e){return Tt.call(this,e,!0)},add:Ut("add"),set:Ut("set"),delete:Ut("delete"),clear:Ut("clear"),forEach:Lt(!0,!1)},r={get(e){return It(this,e,!0,!0)},get size(){return zt(this,!0)},has(e){return Tt.call(this,e,!0)},add:Ut("add"),set:Ut("set"),delete:Ut("delete"),clear:Ut("clear"),forEach:Lt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{e[i]=Dt(i,!1,!1),n[i]=Dt(i,!0,!1),t[i]=Dt(i,!1,!0),r[i]=Dt(i,!0,!0)})),[e,n,t,r]}const[$t,Nt,Mt,Wt]=jt();function Vt(e,t){const n=t?e?Wt:Mt:e?Nt:$t;return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(ye(n,r)&&r in t?n:t,r,i)}const Zt={get:Vt(!1,!1)},Ht={get:Vt(!1,!0)},qt={get:Vt(!0,!1)};const Gt=new WeakMap,Kt=new WeakMap,Yt=new WeakMap,Xt=new WeakMap;function Jt(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>Te(e).slice(8,-1))(e))}function Qt(e){return rn(e)?e:tn(e,!1,St,Zt,Gt)}function en(e){return tn(e,!0,Ct,qt,Yt)}function tn(e,t,n,r,i){if(!Ae(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const a=Jt(e);if(0===a)return e;const s=new Proxy(e,2===a?r:n);return i.set(e,s),s}function nn(e){return rn(e)?nn(e.__v_raw):!(!e||!e.__v_isReactive)}function rn(e){return!(!e||!e.__v_isReadonly)}function on(e){return!(!e||!e.__v_isShallow)}function an(e){return nn(e)||rn(e)}function sn(e){const t=e&&e.__v_raw;return t?sn(t):e}function ln(e){return We(e,"__v_skip",!0),e}const cn=e=>Ae(e)?Qt(e):e,un=e=>Ae(e)?en(e):e;function dn(e){st&&nt&&ft((e=sn(e)).dep||(e.dep=Ye()))}function fn(e,t){(e=sn(e)).dep&&pt(e.dep)}function hn(e){return!(!e||!0!==e.__v_isRef)}const pn={get:(e,t,n)=>function(e){return hn(e)?e.value:e}(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return hn(i)&&!hn(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function _n(e){return nn(e)?e:new Proxy(e,pn)}class mn{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new ot(e,(()=>{this._dirty||(this._dirty=!0,fn(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=sn(this);return dn(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function vn(e,t,n,r){let i;try{i=r?e(...r):e()}catch(e){bn(e,t,n)}return i}function gn(e,t,n,r){if(Se(e)){const i=vn(e,t,n,r);return i&&Oe(i)&&i.catch((e=>{bn(e,t,n)})),i}const i=[];for(let o=0;o>>1;$n(kn[r])$n(e)-$n(t))),In=0;Innull==e.id?1/0:e.id;function Nn(e){wn=!1,yn=!0,Un(e),kn.sort(((e,t)=>$n(e)-$n(t)));try{for(xn=0;xnMn.emit(e,...t))),Wn=[];else if( // eslint-disable-next-line no-restricted-globals "undefined"!=typeof window&&window.HTMLElement&&!(null===(r=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===r?void 0:r.includes("jsdom"))){(t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((e=>{Hn(e,t)})),setTimeout((()=>{Mn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Vn=!0,Wn=[])}),3e3)}else Vn=!0,Wn=[]}const qn=Yn("component:added"),Gn=Yn("component:updated"),Kn=Yn("component:removed");function Yn(e){return t=>{Zn(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function Xn(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ue;let i=n;const o=t.startsWith("update:"),a=o&&t.slice(7);if(a&&a in r){const e=`${"modelValue"===a?"model":a}Modifiers`,{number:t,trim:o}=r[e]||ue;o?i=n.map((e=>e.trim())):t&&(i=n.map(Ve))}let s;__VUE_PROD_DEVTOOLS__&&function(e,t,n){Zn("component:emit",e.appContext.app,e,t,n)}(e,t,i);let l=r[s=$e(t)]||r[s=$e(Le(t))];!l&&o&&(l=r[s=$e(Ue(t))]),l&&gn(l,e,6,i);const c=r[s+"Once"];if(c){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,gn(c,e,6,i)}}function Jn(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const o=e.emits;let a={},s=!1;if(__VUE_OPTIONS_API__&&!Se(e)){const r=e=>{const n=Jn(e,t,!0);n&&(s=!0,ve(a,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return o||s?(we(o)?o.forEach((e=>a[e]=null)):ve(a,o),r.set(e,a),a):(r.set(e,null),null)}function Qn(e,t){return!(!e||!_e(t))&&(t=t.slice(2).replace(/Once$/,""),ye(e,t[0].toLowerCase()+t.slice(1))||ye(e,Ue(t))||ye(e,t))}let er=null,tr=null;function nr(e){const t=er;return er=e,tr=e&&e.type.__scopeId||null,t}function rr(e,t=er,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Li(-1);const i=nr(t),o=e(...n);return nr(i),r._d&&Li(1),__VUE_PROD_DEVTOOLS__&&Gn(t),o};return r._n=!0,r._c=!0,r._d=!0,r}function ir(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:o,propsOptions:[a],slots:s,attrs:l,emit:c,render:u,renderCache:d,data:f,setupState:h,ctx:p,inheritAttrs:_}=e;let m,v;const g=nr(e);try{if(4&n.shapeFlag){const e=i||r;m=Ji(u.call(e,e,d,o,h,f,p)),v=l}else{const e=t;0,m=Ji(e.length>1?e(o,{attrs:l,slots:s,emit:c}):e(o,null)),v=t.props?l:or(l)}}catch(t){zi.length=0,bn(t,e,1),m=Hi(Ii)}let b=m;if(v&&!1!==_){const e=Object.keys(v),{shapeFlag:t}=b;e.length&&7&t&&(a&&e.some(me)&&(v=ar(v,a)),b=Gi(b,v))}return n.dirs&&(b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),m=b,nr(g),m}const or=e=>{let t;for(const n in e)("class"===n||"style"===n||_e(n))&&((t||(t={}))[n]=e[n]);return t},ar=(e,t)=>{const n={};for(const r in e)me(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function sr(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i1)return n&&Se(t)?t.call(r.proxy):t}else 0}const dr={};function fr(e,t,n){return hr(e,t,n)}function hr(e,t,{immediate:n,deep:r,flush:i,onTrack:o,onTrigger:a}=ue){const s=co;let l,c,u=!1,d=!1;if(hn(e)?(l=()=>e.value,u=on(e)):nn(e)?(l=()=>e,r=!0):we(e)?(d=!0,u=e.some(nn),l=()=>e.map((e=>hn(e)?e.value:nn(e)?mr(e):Se(e)?vn(e,s,2):void 0))):l=Se(e)?t?()=>vn(e,s,2):()=>{if(!s||!s.isUnmounted)return c&&c(),gn(e,s,3,[f])}:fe,t&&r){const e=l;l=()=>mr(e())}let f=e=>{c=m.onStop=()=>{vn(e,s,4)}};if(vo)return f=fe,t?n&&gn(t,s,3,[l(),d?[]:void 0,f]):l(),fe;let h=d?[]:dr;const p=()=>{if(m.active)if(t){const e=m.run();(r||u||(d?e.some(((e,t)=>Ne(e,h[t]))):Ne(e,h)))&&(c&&c(),gn(t,s,3,[e,h===dr?void 0:h,f]),h=e)}else m.run()};let _;p.allowRecurse=!!t,_="sync"===i?p:"post"===i?()=>ki(p,s&&s.suspense):()=>{!s||s.isMounted?function(e){Ln(e,Cn,Sn,En)}(p):p()};const m=new ot(l,_);return t?n?p():h=m.run():"post"===i?ki(m.run.bind(m),s&&s.suspense):m.run(),()=>{m.stop(),s&&s.scope&&ge(s.scope.effects,m)}}function pr(e,t,n){const r=this.proxy,i=Ce(e)?e.includes(".")?_r(r,e):()=>r[e]:e.bind(r,r);let o;Se(t)?o=t:(o=t.handler,n=t);const a=co;fo(this);const s=hr(i,o.bind(r),n);return a?fo(a):ho(),s}function _r(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{mr(e,t)}));else if(ze(e))for(const n in e)mr(e[n],t);return e}function vr(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ur((()=>{e.isMounted=!0})),Nr((()=>{e.isUnmounting=!0})),e}const gr=[Function,Array],br={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:gr,onEnter:gr,onAfterEnter:gr,onEnterCancelled:gr,onBeforeLeave:gr,onLeave:gr,onAfterLeave:gr,onLeaveCancelled:gr,onBeforeAppear:gr,onAppear:gr,onAfterAppear:gr,onAppearCancelled:gr},setup(e,{slots:t}){const n=uo(),r=vr();let i;return()=>{const o=t.default&&Cr(t.default(),!0);if(!o||!o.length)return;let a=o[0];if(o.length>1){let e=!1;for(const t of o)if(t.type!==Ii){0,a=t,e=!0;break}}const s=sn(e),{mode:l}=s;if(r.isLeaving)return kr(a);const c=xr(a);if(!c)return kr(a);const u=wr(c,s,r,n);Sr(c,u);const d=n.subTree,f=d&&xr(d);let h=!1;const{getTransitionKey:p}=c.type;if(p){const e=p();void 0===i?i=e:e!==i&&(i=e,h=!0)}if(f&&f.type!==Ii&&(!Ni(c,f)||h)){const e=wr(f,s,r,n);if(Sr(f,e),"out-in"===l)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.update()},kr(a);"in-out"===l&&c.type!==Ii&&(e.delayLeave=(e,t,n)=>{yr(r,f)[String(f.key)]=f,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=n})}return a}}};function yr(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function wr(e,t,n,r){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:f,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:_,onAppear:m,onAfterAppear:v,onAppearCancelled:g}=t,b=String(e.key),y=yr(n,e),w=(e,t)=>{e&&gn(e,r,9,t)},k={mode:o,persisted:a,beforeEnter(t){let r=s;if(!n.isMounted){if(!i)return;r=_||s}t._leaveCb&&t._leaveCb(!0);const o=y[b];o&&Ni(e,o)&&o.el._leaveCb&&o.el._leaveCb(),w(r,[t])},enter(e){let t=l,r=c,o=u;if(!n.isMounted){if(!i)return;t=m||l,r=v||c,o=g||u}let a=!1;const s=e._enterCb=t=>{a||(a=!0,w(t?o:r,[e]),k.delayedLeave&&k.delayedLeave(),e._enterCb=void 0)};t?(t(e,s),t.length<=1&&s()):s()},leave(t,r){const i=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();w(d,[t]);let o=!1;const a=t._leaveCb=n=>{o||(o=!0,r(),w(n?p:h,[t]),t._leaveCb=void 0,y[i]===e&&delete y[i])};y[i]=e,f?(f(t,a),f.length<=1&&a()):a()},clone:e=>wr(e,t,n,r)};return k}function kr(e){if(Ar(e))return(e=Gi(e)).children=null,e}function xr(e){return Ar(e)?e.children?e.children[0]:void 0:e}function Sr(e,t){6&e.shapeFlag&&e.component?Sr(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Cr(e,t=!1,n){let r=[],i=0;for(let o=0;o1)for(let e=0;e!!e.type.__asyncLoader;const Ar=e=>e.type.__isKeepAlive;RegExp,RegExp;function Or(e,t){return we(e)?e.some((e=>Or(e,t))):Ce(e)?e.split(",").includes(t):!!e.test&&e.test(t)}function Ir(e,t){zr(e,"a",t)}function Tr(e,t){zr(e,"da",t)}function zr(e,t,n=co){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Br(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Ar(e.parent.vnode)&&Fr(r,t,n,e),e=e.parent}}function Fr(e,t,n,r){const i=Br(t,e,r,!0);Mr((()=>{ge(r[t],i)}),n)}function Rr(e){let t=e.shapeFlag;256&t&&256,512&t&&512,e.shapeFlag=t}function Pr(e){return 128&e.shapeFlag?e.ssContent:e}function Br(e,t,n=co,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;ct(),fo(n);const i=gn(t,n,e,r);return ho(),ut(),i});return r?i.unshift(o):i.push(o),o}}const Lr=e=>(t,n=co)=>(!vo||"sp"===e)&&Br(e,t,n),Dr=Lr("bm"),Ur=Lr("m"),jr=Lr("bu"),$r=Lr("u"),Nr=Lr("bum"),Mr=Lr("um"),Wr=Lr("sp"),Vr=Lr("rtg"),Zr=Lr("rtc");function Hr(e,t=co){Br("ec",e,t)}let qr=!0;function Gr(e){const t=Xr(e),n=e.proxy,r=e.ctx;qr=!1,t.beforeCreate&&Kr(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:a,watch:s,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:h,updated:p,activated:_,deactivated:m,beforeDestroy:v,beforeUnmount:g,destroyed:b,unmounted:y,render:w,renderTracked:k,renderTriggered:x,errorCaptured:S,serverPrefetch:C,expose:E,inheritAttrs:A,components:O,directives:I,filters:T}=t;if(c&&function(e,t,n=fe,r=!1){we(e)&&(e=ti(e));for(const n in e){const i=e[n];let o;o=Ae(i)?"default"in i?ur(i.from||n,i.default,!0):ur(i.from||n):ur(i),hn(o)&&r?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:e=>o.value=e}):t[n]=o}}(c,r,null,e.appContext.config.unwrapInjectedRef),a)for(const e in a){const t=a[e];Se(t)&&(r[e]=t.bind(n))}if(i){0;const t=i.call(n,n);0,Ae(t)&&(e.data=Qt(t))}if(qr=!0,o)for(const e in o){const t=o[e],i=Se(t)?t.bind(n,n):Se(t.get)?t.get.bind(n,n):fe;0;const a=!Se(t)&&Se(t.set)?t.set.bind(n):fe,s=Co({get:i,set:a});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(s)for(const e in s)Yr(s[e],r,n,e);if(l){const e=Se(l)?l.call(n):l;Reflect.ownKeys(e).forEach((t=>{!function(e,t){if(co){let n=co.provides;const r=co.parent&&co.parent.provides;r===n&&(n=co.provides=Object.create(r)),n[e]=t}}(t,e[t])}))}function z(e,t){we(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(u&&Kr(u,e,"c"),z(Dr,d),z(Ur,f),z(jr,h),z($r,p),z(Ir,_),z(Tr,m),z(Hr,S),z(Zr,k),z(Vr,x),z(Nr,g),z(Mr,y),z(Wr,C),we(E))if(E.length){const t=e.exposed||(e.exposed={});E.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});w&&e.render===fe&&(e.render=w),null!=A&&(e.inheritAttrs=A),O&&(e.components=O),I&&(e.directives=I)}function Kr(e,t,n){gn(we(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Yr(e,t,n,r){const i=r.includes(".")?_r(n,r):()=>n[r];if(Ce(e)){const n=t[e];Se(n)&&fr(i,n)}else if(Se(e))fr(i,e.bind(n));else if(Ae(e))if(we(e))e.forEach((e=>Yr(e,t,n,r)));else{const r=Se(e.handler)?e.handler.bind(n):t[e.handler];Se(r)&&fr(i,r,e)}else 0}function Xr(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,s=o.get(t);let l;return s?l=s:i.length||n||r?(l={},i.length&&i.forEach((e=>Jr(l,e,a,!0))),Jr(l,t,a)):l=t,o.set(t,l),l}function Jr(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&Jr(e,o,n,!0),i&&i.forEach((t=>Jr(e,t,n,!0)));for(const i in t)if(r&&"expose"===i);else{const r=Qr[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}const Qr={data:ei,props:ri,emits:ri,methods:ri,computed:ri,beforeCreate:ni,created:ni,beforeMount:ni,mounted:ni,beforeUpdate:ni,updated:ni,beforeDestroy:ni,beforeUnmount:ni,destroyed:ni,unmounted:ni,activated:ni,deactivated:ni,errorCaptured:ni,serverPrefetch:ni,components:ri,directives:ri,watch:function(e,t){if(!e)return t;if(!t)return e;const n=ve(Object.create(null),e);for(const r in t)n[r]=ni(e[r],t[r]);return n},provide:ei,inject:function(e,t){return ri(ti(e),ti(t))}};function ei(e,t){return t?e?function(){return ve(Se(e)?e.call(this,this):e,Se(t)?t.call(this,this):t)}:t:e}function ti(e){if(we(e)){const t={};for(let n=0;n{l=!0;const[n,r]=si(e,t,!0);ve(a,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!o&&!l)return r.set(e,de),de;if(we(o))for(let e=0;e-1,r[1]=n<0||e-1||ye(r,"default"))&&s.push(t)}}}}const c=[a,s];return r.set(e,c),c}function li(e){return"$"!==e[0]}function ci(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function ui(e,t){return ci(e)===ci(t)}function di(e,t){return we(t)?t.findIndex((t=>ui(t,e))):Se(t)&&ui(t,e)?0:-1}const fi=e=>"_"===e[0]||"$stable"===e,hi=e=>we(e)?e.map(Ji):[Ji(e)],pi=(e,t,n)=>{const r=rr(((...e)=>hi(t(...e))),n);return r._c=!1,r},_i=(e,t,n)=>{const r=e._ctx;for(const n in e){if(fi(n))continue;const i=e[n];if(Se(i))t[n]=pi(0,i,r);else if(null!=i){0;const e=hi(i);t[n]=()=>e}}},mi=(e,t)=>{const n=hi(t);e.slots.default=()=>n};function vi(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let a=0;a(o.has(e)||(e&&Se(e.install)?(o.add(e),e.install(s,...t)):Se(e)&&(o.add(e),e(s,...t))),s),mixin:e=>(__VUE_OPTIONS_API__&&(i.mixins.includes(e)||i.mixins.push(e)),s),component:(e,t)=>t?(i.components[e]=t,s):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,s):i.directives[e],mount(o,l,c){if(!a){const u=Hi(n,r);return u.appContext=i,l&&t?t(u,o):e(u,o,c),a=!0,s._container=o,o.__vue_app__=s,__VUE_PROD_DEVTOOLS__&&(s._instance=u.component,function(e,t){Zn("app:init",e,t,{Fragment:Ai,Text:Oi,Comment:Ii,Static:Ti})}(s,Eo)),ko(u.component)||u.component.proxy}},unmount(){a&&(e(null,s._container),__VUE_PROD_DEVTOOLS__&&(s._instance=null,function(e){Zn("app:unmount",e)}(s)),delete s._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,s)};return s}}function wi(e,t,n,r,i=!1){if(we(e))return void e.forEach(((e,o)=>wi(e,t&&(we(t)?t[o]:t),n,r,i)));if(Er(r)&&!i)return;const o=4&r.shapeFlag?ko(r.component)||r.component.proxy:r.el,a=i?null:o,{i:s,r:l}=e;const c=t&&t.r,u=s.refs===ue?s.refs={}:s.refs,d=s.setupState;if(null!=c&&c!==l&&(Ce(c)?(u[c]=null,ye(d,c)&&(d[c]=null)):hn(c)&&(c.value=null)),Se(l))vn(l,s,12,[a,u]);else{const t=Ce(l),r=hn(l);if(t||r){const r=()=>{if(e.f){const n=t?u[l]:l.value;i?we(n)&&ge(n,o):we(n)?n.includes(o)||n.push(o):t?(u[l]=[o],ye(d,l)&&(d[l]=u[l])):(l.value=[o],e.k&&(u[e.k]=l.value))}else t?(u[l]=a,ye(d,l)&&(d[l]=a)):hn(l)&&(l.value=a,e.k&&(u[e.k]=a))};a?(r.id=-1,ki(r,n)):r()}else 0}}const ki=cr;function xi(e,t){"boolean"!=typeof __VUE_OPTIONS_API__&&(He().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&(He().__VUE_PROD_DEVTOOLS__=!1);const n=He();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&Hn(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:r,remove:i,patchProp:o,createElement:a,createText:s,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:h=fe,cloneNode:p,insertStaticContent:_}=e,m=(e,t,n,r=null,i=null,o=null,a=!1,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Ni(e,t)&&(r=W(e),U(e,i,o,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case Oi:v(e,t,n,r);break;case Ii:g(e,t,n,r);break;case Ti:null==e&&b(t,n,r,a);break;case Ai:O(e,t,n,r,i,o,a,s,l);break;default:1&d?w(e,t,n,r,i,o,a,s,l):6&d?I(e,t,n,r,i,o,a,s,l):(64&d||128&d)&&c.process(e,t,n,r,i,o,a,s,l,Z)}null!=u&&i&&wi(u,e&&e.ref,o,t||e,!t)},v=(e,t,n,i)=>{if(null==e)r(t.el=s(t.children),n,i);else{const n=t.el=e.el;t.children!==e.children&&c(n,t.children)}},g=(e,t,n,i)=>{null==e?r(t.el=l(t.children||""),n,i):t.el=e.el},b=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},y=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=f(e),i(e),e=n;i(t)},w=(e,t,n,r,i,o,a,s,l)=>{a=a||"svg"===t.type,null==e?k(t,n,r,i,o,a,s,l):C(e,t,i,o,a,s,l)},k=(e,t,n,i,s,l,c,d)=>{let f,h;const{type:_,props:m,shapeFlag:v,transition:g,patchFlag:b,dirs:y}=e;if(e.el&&void 0!==p&&-1===b)f=e.el=p(e.el);else{if(f=e.el=a(e.type,l,m&&m.is,m),8&v?u(f,e.children):16&v&&S(e.children,f,null,i,s,l&&"foreignObject"!==_,c,d),y&&vi(e,null,i,"created"),m){for(const t in m)"value"===t||Re(t)||o(f,t,null,m[t],l,e.children,i,s,M);"value"in m&&o(f,"value",null,m.value),(h=m.onVnodeBeforeMount)&&to(h,i,e)}x(f,e,e.scopeId,c,i)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(f,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(f,"__vueParentComponent",{value:i,enumerable:!1})),y&&vi(e,null,i,"beforeMount");const w=(!s||s&&!s.pendingBranch)&&g&&!g.persisted;w&&g.beforeEnter(f),r(f,t,n),((h=m&&m.onVnodeMounted)||w||y)&&ki((()=>{h&&to(h,i,e),w&&g.enter(f),y&&vi(e,null,i,"mounted")}),s)},x=(e,t,n,r,i)=>{if(n&&h(e,n),r)for(let t=0;t{for(let c=l;c{const l=t.el=e.el;let{patchFlag:c,dynamicChildren:d,dirs:f}=t;c|=16&e.patchFlag;const h=e.props||ue,p=t.props||ue;let _;n&&Si(n,!1),(_=p.onVnodeBeforeUpdate)&&to(_,n,t,e),f&&vi(t,e,n,"beforeUpdate"),n&&Si(n,!0);const m=i&&"foreignObject"!==t.type;if(d?E(e.dynamicChildren,d,l,n,r,m,a):s||P(e,t,l,null,n,r,m,a,!1),c>0){if(16&c)A(l,t,h,p,n,r,i);else if(2&c&&h.class!==p.class&&o(l,"class",null,p.class,i),4&c&&o(l,"style",h.style,p.style,i),8&c){const a=t.dynamicProps;for(let t=0;t{_&&to(_,n,t,e),f&&vi(t,e,n,"updated")}),r)},E=(e,t,n,r,i,o,a)=>{for(let s=0;s{if(n!==r){for(const l in r){if(Re(l))continue;const c=r[l],u=n[l];c!==u&&"value"!==l&&o(e,l,u,c,s,t.children,i,a,M)}if(n!==ue)for(const l in n)Re(l)||l in r||o(e,l,n[l],null,s,t.children,i,a,M);"value"in r&&o(e,"value",n.value,r.value)}},O=(e,t,n,i,o,a,l,c,u)=>{const d=t.el=e?e.el:s(""),f=t.anchor=e?e.anchor:s("");let{patchFlag:h,dynamicChildren:p,slotScopeIds:_}=t;_&&(c=c?c.concat(_):_),null==e?(r(d,n,i),r(f,n,i),S(t.children,n,f,o,a,l,c,u)):h>0&&64&h&&p&&e.dynamicChildren?(E(e.dynamicChildren,p,n,o,a,l,c),(null!=t.key||o&&t===o.subTree)&&Ci(e,t,!0)):P(e,t,n,f,o,a,l,c,u)},I=(e,t,n,r,i,o,a,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,a,l):T(t,n,r,i,o,a,l):z(e,t,l)},T=(e,t,n,r,i,o,a)=>{const s=e.component=lo(e,r,i);if(Ar(e)&&(s.ctx.renderer=Z),go(s),s.asyncDep){if(i&&i.registerDep(s,F),!e.el){const e=s.subTree=Hi(Ii);g(null,e,t,n)}}else F(s,e,t,n,i,o,a)},z=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:i,component:o}=e,{props:a,children:s,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!i&&!s||s&&s.$stable)||r!==a&&(r?!a||sr(r,a,c):!!a);if(1024&l)return!0;if(16&l)return r?sr(r,a,c):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;txn&&kn.splice(t,1)}(r.update),r.update()}else t.component=e.component,t.el=e.el,r.vnode=t},F=(e,t,n,r,i,o,a)=>{const s=e.effect=new ot((()=>{if(e.isMounted){let t,{next:n,bu:r,u:s,parent:l,vnode:c}=e,u=n;0,Si(e,!1),n?(n.el=c.el,R(e,n,a)):n=c,r&&Me(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&to(t,l,n,c),Si(e,!0);const f=ir(e);0;const h=e.subTree;e.subTree=f,m(h,f,d(h.el),W(h),e,i,o),n.el=f.el,null===u&&lr(e,f.el),s&&ki(s,i),(t=n.props&&n.props.onVnodeUpdated)&&ki((()=>to(t,l,n,c)),i),__VUE_PROD_DEVTOOLS__&&Gn(e)}else{let a;const{el:s,props:l}=t,{bm:c,m:u,parent:d}=e,f=Er(t);if(Si(e,!1),c&&Me(c),!f&&(a=l&&l.onVnodeBeforeMount)&&to(a,d,t),Si(e,!0),s&&q){const n=()=>{e.subTree=ir(e),q(s,e.subTree,e,i,null)};f?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{0;const a=e.subTree=ir(e);0,m(null,a,n,r,e,i,o),t.el=a.el}if(u&&ki(u,i),!f&&(a=l&&l.onVnodeMounted)){const e=t;ki((()=>to(a,d,e)),i)}256&t.shapeFlag&&e.a&&ki(e.a,i),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&qn(e),t=n=r=null}}),(()=>Pn(e.update)),e.scope),l=e.update=s.run.bind(s);l.id=e.uid,Si(e,!0),l()},R=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:a}}=e,s=sn(i),[l]=e.propsOptions;let c=!1;if(!(r||a>0)||16&a){let r;oi(e,t,i,o)&&(c=!0);for(const o in s)t&&(ye(t,o)||(r=Ue(o))!==o&&ye(t,r))||(l?!n||void 0===n[o]&&void 0===n[r]||(i[o]=ai(l,s,o,void 0,e,!0)):delete i[o]);if(o!==s)for(const e in o)t&&ye(t,e)||(delete o[e],c=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let r=0;r{const{vnode:r,slots:i}=e;let o=!0,a=ue;if(32&r.shapeFlag){const e=t._;e?n&&1===e?o=!1:(ve(i,t),n||1!==e||delete i._):(o=!t.$stable,_i(t,i)),a=t}else t&&(mi(e,t),a={default:1});if(o)for(const e in i)fi(e)||e in a||delete i[e]})(e,t.children,n),ct(),Un(void 0,e.update),ut()},P=(e,t,n,r,i,o,a,s,l=!1)=>{const c=e&&e.children,d=e?e.shapeFlag:0,f=t.children,{patchFlag:h,shapeFlag:p}=t;if(h>0){if(128&h)return void L(c,f,n,r,i,o,a,s,l);if(256&h)return void B(c,f,n,r,i,o,a,s,l)}8&p?(16&d&&M(c,i,o),f!==c&&u(n,f)):16&d?16&p?L(c,f,n,r,i,o,a,s,l):M(c,i,o,!0):(8&d&&u(n,""),16&p&&S(f,n,r,i,o,a,s,l))},B=(e,t,n,r,i,o,a,s,l)=>{t=t||de;const c=(e=e||de).length,u=t.length,d=Math.min(c,u);let f;for(f=0;fu?M(e,i,o,!0,!1,d):S(t,n,r,i,o,a,s,l,d)},L=(e,t,n,r,i,o,a,s,l)=>{let c=0;const u=t.length;let d=e.length-1,f=u-1;for(;c<=d&&c<=f;){const r=e[c],u=t[c]=l?Qi(t[c]):Ji(t[c]);if(!Ni(r,u))break;m(r,u,n,null,i,o,a,s,l),c++}for(;c<=d&&c<=f;){const r=e[d],c=t[f]=l?Qi(t[f]):Ji(t[f]);if(!Ni(r,c))break;m(r,c,n,null,i,o,a,s,l),d--,f--}if(c>d){if(c<=f){const e=f+1,d=ef)for(;c<=d;)U(e[c],i,o,!0),c++;else{const h=c,p=c,_=new Map;for(c=p;c<=f;c++){const e=t[c]=l?Qi(t[c]):Ji(t[c]);null!=e.key&&_.set(e.key,c)}let v,g=0;const b=f-p+1;let y=!1,w=0;const k=new Array(b);for(c=0;c=b){U(r,i,o,!0);continue}let u;if(null!=r.key)u=_.get(r.key);else for(v=p;v<=f;v++)if(0===k[v-p]&&Ni(r,t[v])){u=v;break}void 0===u?U(r,i,o,!0):(k[u-p]=c+1,u>=w?w=u:y=!0,m(r,t[u],n,null,i,o,a,s,l),g++)}const x=y?function(e){const t=e.slice(),n=[0];let r,i,o,a,s;const l=e.length;for(r=0;r>1,e[n[s]]0&&(t[r]=n[o-1]),n[o]=r)}}o=n.length,a=n[o-1];for(;o-- >0;)n[o]=a,a=t[a];return n}(k):de;for(v=x.length-1,c=b-1;c>=0;c--){const e=p+c,d=t[e],f=e+1{const{el:a,type:s,transition:l,children:c,shapeFlag:u}=e;if(6&u)return void D(e.component.subTree,t,n,i);if(128&u)return void e.suspense.move(t,n,i);if(64&u)return void s.move(e,t,n,Z);if(s===Ai){r(a,t,n);for(let e=0;e{let o;for(;e&&e!==t;)o=f(e),r(e,n,i),e=o;r(t,n,i)})(e,t,n);if(2!==i&&1&u&&l)if(0===i)l.beforeEnter(a),r(a,t,n),ki((()=>l.enter(a)),o);else{const{leave:e,delayLeave:i,afterLeave:o}=l,s=()=>r(a,t,n),c=()=>{e(a,(()=>{s(),o&&o()}))};i?i(a,s,c):c()}else r(a,t,n)},U=(e,t,n,r=!1,i=!1)=>{const{type:o,props:a,ref:s,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:f}=e;if(null!=s&&wi(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&f,p=!Er(e);let _;if(p&&(_=a&&a.onVnodeBeforeUnmount)&&to(_,t,e),6&u)N(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);h&&vi(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,i,Z,r):c&&(o!==Ai||d>0&&64&d)?M(c,t,n,!1,!0):(o===Ai&&384&d||!i&&16&u)&&M(l,t,n),r&&j(e)}(p&&(_=a&&a.onVnodeUnmounted)||h)&&ki((()=>{_&&to(_,t,e),h&&vi(e,null,t,"unmounted")}),n)},j=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===Ai)return void $(n,r);if(t===Ti)return void y(e);const a=()=>{i(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,i=()=>t(n,a);r?r(e.el,a,i):i()}else a()},$=(e,t)=>{let n;for(;e!==t;)n=f(e),i(e),e=n;i(t)},N=(e,t,n)=>{const{bum:r,scope:i,update:o,subTree:a,um:s}=e;r&&Me(r),i.stop(),o&&(o.active=!1,U(a,e,t,n)),s&&ki(s,t),ki((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve()),__VUE_PROD_DEVTOOLS__&&Kn(e)},M=(e,t,n,r=!1,i=!1,o=0)=>{for(let a=o;a6&e.shapeFlag?W(e.component.subTree):128&e.shapeFlag?e.suspense.next():f(e.anchor||e.el),V=(e,t,n)=>{null==e?t._vnode&&U(t._vnode,null,null,!0):m(t._vnode||null,e,t,null,null,null,n),jn(),t._vnode=e},Z={p:m,um:U,m:D,r:j,mt:T,mc:S,pc:P,pbc:E,n:W,o:e};let H,q;return t&&([H,q]=t(Z)),{render:V,hydrate:H,createApp:yi(V,H)}}function Si({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ci(e,t,n=!1){const r=e.children,i=t.children;if(we(r)&&we(i))for(let e=0;e0?Fi||de:null,Pi(),Bi>0&&Fi&&Fi.push(e),e}function Ui(e,t,n,r,i,o){return Di(Zi(e,t,n,r,i,o,!0))}function ji(e,t,n,r,i){return Di(Hi(e,t,n,r,i,!0))}function $i(e){return!!e&&!0===e.__v_isVNode}function Ni(e,t){return e.type===t.type&&e.key===t.key}const Mi="__vInternal",Wi=({key:e})=>null!=e?e:null,Vi=({ref:e,ref_key:t,ref_for:n})=>null!=e?Ce(e)||hn(e)||Se(e)?{i:er,r:e,k:t,f:!!n}:e:null;function Zi(e,t=null,n=null,r=0,i=null,o=(e===Ai?0:1),a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wi(t),ref:t&&Vi(t),scopeId:tr,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:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return s?(eo(l,n),128&o&&e.normalize(l)):n&&(l.shapeFlag|=Ce(n)?8:16),Bi>0&&!a&&Fi&&(l.patchFlag>0||6&o)&&32!==l.patchFlag&&Fi.push(l),l}const Hi=qi;function qi(e,t=null,n=null,r=0,i=null,o=!1){if(e&&e!==Ei||(e=Ii),$i(e)){const r=Gi(e,t,!0);return n&&eo(r,n),r}if(So(e)&&(e=e.__vccOpts),t){t=function(e){return e?an(e)||Mi in e?ve({},e):e:null}(t);let{class:e,style:n}=t;e&&!Ce(e)&&(t.class=le(e)),Ae(n)&&(an(n)&&!we(n)&&(n=ve({},n)),t.style=ie(n))}return Zi(e,t,n,r,i,Ce(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:Ae(e)?4:Se(e)?2:0,o,!0)}function Gi(e,t,n=!1){const{props:r,ref:i,patchFlag:o,children:a}=e,s=t?function(...e){const t={};for(let n=0;nt(e,n,void 0,o&&o[n])));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,a=n.length;re?po(e)?ko(e)||e.proxy:ro(e.parent):null,io=ve(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=>ro(e.parent),$root:e=>ro(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?Xr(e):e.type,$forceUpdate:e=>()=>Pn(e.update),$nextTick:e=>Rn.bind(e.proxy),$watch:e=>__VUE_OPTIONS_API__?pr.bind(e):fe}),oo={get({_:e},t){const{ctx:n,setupState:r,data:i,props:o,accessCache:a,type:s,appContext:l}=e;let c;if("$"!==t[0]){const s=a[t];if(void 0!==s)switch(s){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(r!==ue&&ye(r,t))return a[t]=1,r[t];if(i!==ue&&ye(i,t))return a[t]=2,i[t];if((c=e.propsOptions[0])&&ye(c,t))return a[t]=3,o[t];if(n!==ue&&ye(n,t))return a[t]=4,n[t];__VUE_OPTIONS_API__&&!qr||(a[t]=0)}}const u=io[t];let d,f;return u?("$attrs"===t&&dt(e,0,t),u(e)):(d=s.__cssModules)&&(d=d[t])?d:n!==ue&&ye(n,t)?(a[t]=4,n[t]):(f=l.config.globalProperties,ye(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return i!==ue&&ye(i,t)?(i[t]=n,!0):r!==ue&&ye(r,t)?(r[t]=n,!0):!ye(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(o[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:o}},a){let s;return!!n[a]||e!==ue&&ye(e,a)||t!==ue&&ye(t,a)||(s=o[0])&&ye(s,a)||ye(r,a)||ye(io,a)||ye(i.config.globalProperties,a)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:ye(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const ao=gi();let so=0;function lo(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||ao,o={uid:so++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Ge(!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:si(r,i),emitsOptions:Jn(r,i),emit:null,emitted:null,propsDefaults:ue,inheritAttrs:r.inheritAttrs,ctx:ue,data:ue,props:ue,attrs:ue,slots:ue,refs:ue,setupState:ue,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 o.ctx={_:o},o.root=t?t.root:o,o.emit=Xn.bind(null,o),e.ce&&e.ce(o),o}let co=null;const uo=()=>co||er,fo=e=>{co=e,e.scope.on()},ho=()=>{co&&co.scope.off(),co=null};function po(e){return 4&e.vnode.shapeFlag}let _o,mo,vo=!1;function go(e,t=!1){vo=t;const{props:n,children:r}=e.vnode,i=po(e);ii(e,n,i,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=sn(t),We(t,"_",n)):_i(t,e.slots={})}else e.slots={},t&&mi(e,t);We(e.slots,Mi,1)})(e,r);const o=i?function(e,t){const n=e.type;0;e.accessCache=Object.create(null),e.proxy=ln(new Proxy(e.ctx,oo)),!1;const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?wo(e):null;fo(e),ct();const i=vn(r,e,0,[e.props,n]);if(ut(),ho(),Oe(i)){if(i.then(ho,ho),t)return i.then((n=>{bo(e,n,t)})).catch((t=>{bn(t,e,0)}));e.asyncDep=i}else bo(e,i,t)}else yo(e,t)}(e,t):void 0;return vo=!1,o}function bo(e,t,n){Se(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ae(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=_n(t)),yo(e,n)}function yo(e,t,n){const r=e.type;if(!e.render){if(!t&&_o&&!r.render){const t=r.template;if(t){0;const{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,s=ve(ve({isCustomElement:n,delimiters:o},i),a);r.render=_o(t,s)}}e.render=r.render||fe,mo&&mo(e)}__VUE_OPTIONS_API__&&(fo(e),ct(),Gr(e),ut(),ho())}function wo(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(dt(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}function ko(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(_n(ln(e.exposed)),{get:(t,n)=>n in t?t[n]:n in io?io[n](e):void 0}))}function xo(e){return Se(e)&&e.displayName||e.name}function So(e){return Se(e)&&"__vccOpts"in e}const Co=(e,t)=>function(e,t,n=!1){let r,i;const o=Se(e);return o?(r=e,i=fe):(r=e.get,i=e.set),new mn(r,i,o||!i,n)}(e,0,vo);Symbol("");const Eo="3.2.33",Ao="undefined"!=typeof document?document:null,Oo=Ao&&Ao.createElement("template"),Io={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?Ao.createElementNS("http://www.w3.org/2000/svg",e):Ao.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>Ao.createTextNode(e),createComment:e=>Ao.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ao.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,i,o){const a=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==o&&(i=i.nextSibling););else{Oo.innerHTML=r?`${e}`:e;const i=Oo.content;if(r){const e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};const To=/\s*!important$/;function zo(e,t,n){if(we(n))n.forEach((n=>zo(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=Ro[t];if(n)return n;let r=Le(t);if("filter"!==r&&r in e)return Ro[t]=r;r=je(r);for(let n=0;n{let e=Date.now,t=!1;if("undefined"!=typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=()=>performance.now());const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let Do=0;const Uo=Promise.resolve(),jo=()=>{Do=0};function $o(e,t,n,r){e.addEventListener(t,n,r)}function No(e,t,n,r,i=null){const o=e._vei||(e._vei={}),a=o[t];if(r&&a)a.value=r;else{const[n,s]=function(e){let t;if(Mo.test(e)){let n;for(t={};n=e.match(Mo);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[Ue(e.slice(2)),t]}(t);if(r){const a=o[t]=function(e,t){const n=e=>{const r=e.timeStamp||Bo();(Lo||r>=n.attached-1)&&gn(function(e,t){if(we(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=(()=>Do||(Uo.then(jo),Do=Bo()))(),n}(r,i);$o(e,n,a,s)}else a&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,a,s),o[t]=void 0)}}const Mo=/(?:Once|Passive|Capture)$/;const Wo=/^on[a-z]/;"undefined"!=typeof HTMLElement&&HTMLElement;const Vo="transition",Zo="animation",Ho=(e,{slots:t})=>function(e,t,n){const r=arguments.length;return 2===r?Ae(t)&&!we(t)?$i(t)?Hi(e,null,[t]):Hi(e,t):Hi(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&$i(n)&&(n=[n]),Hi(e,t,n))}(br,Yo(e),t);Ho.displayName="Transition";const qo={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Go=(Ho.props=ve({},br.props,qo),(e,t=[])=>{we(e)?e.forEach((e=>e(...t))):e&&e(...t)}),Ko=e=>!!e&&(we(e)?e.some((e=>e.length>1)):e.length>1);function Yo(e){const t={};for(const n in e)n in qo||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=a,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=function(e){if(null==e)return null;if(Ae(e))return[Xo(e.enter),Xo(e.leave)];{const t=Xo(e);return[t,t]}}(i),_=p&&p[0],m=p&&p[1],{onBeforeEnter:v,onEnter:g,onEnterCancelled:b,onLeave:y,onLeaveCancelled:w,onBeforeAppear:k=v,onAppear:x=g,onAppearCancelled:S=b}=t,C=(e,t,n)=>{Qo(e,t?u:s),Qo(e,t?c:a),n&&n()},E=(e,t)=>{Qo(e,h),Qo(e,f),t&&t()},A=e=>(t,n)=>{const i=e?x:g,a=()=>C(t,e,n);Go(i,[t,a]),ea((()=>{Qo(t,e?l:o),Jo(t,e?u:s),Ko(i)||na(t,r,_,a)}))};return ve(t,{onBeforeEnter(e){Go(v,[e]),Jo(e,o),Jo(e,a)},onBeforeAppear(e){Go(k,[e]),Jo(e,l),Jo(e,c)},onEnter:A(!1),onAppear:A(!0),onLeave(e,t){const n=()=>E(e,t);Jo(e,d),aa(),Jo(e,f),ea((()=>{Qo(e,d),Jo(e,h),Ko(y)||na(e,r,m,n)})),Go(y,[e,n])},onEnterCancelled(e){C(e,!1),Go(b,[e])},onAppearCancelled(e){C(e,!0),Go(S,[e])},onLeaveCancelled(e){E(e),Go(w,[e])}})}function Xo(e){return Ve(e)}function Jo(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function Qo(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function ea(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let ta=0;function na(e,t,n,r){const i=e._endId=++ta,o=()=>{i===e._endId&&r()};if(n)return setTimeout(o,n);const{type:a,timeout:s,propCount:l}=ra(e,t);if(!a)return r();const c=a+"end";let u=0;const d=()=>{e.removeEventListener(c,f),o()},f=t=>{t.target===e&&++u>=l&&d()};setTimeout((()=>{u(n[e]||"").split(", "),i=r("transitionDelay"),o=r("transitionDuration"),a=ia(i,o),s=r("animationDelay"),l=r("animationDuration"),c=ia(s,l);let u=null,d=0,f=0;t===Vo?a>0&&(u=Vo,d=a,f=o.length):t===Zo?c>0&&(u=Zo,d=c,f=l.length):(d=Math.max(a,c),u=d>0?a>c?Vo:Zo:null,f=u?u===Vo?o.length:l.length:0);return{type:u,timeout:d,propCount:f,hasTransform:u===Vo&&/\b(transform|all)(,|$)/.test(n.transitionProperty)}}function ia(e,t){for(;e.lengthoa(t)+oa(e[n]))))}function oa(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function aa(){return document.body.offsetHeight}new WeakMap,new WeakMap;const sa=ve({patchProp:(e,t,n,r,i=!1,o,a,s,l)=>{"class"===t?function(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,i):"style"===t?function(e,t,n){const r=e.style,i=Ce(n);if(n&&!i){for(const e in n)zo(r,e,n[e]);if(t&&!Ce(t))for(const e in t)null==n[e]&&zo(r,e,"")}else{const o=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}(e,n,r):_e(t)?me(t)||No(e,t,0,r,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&Wo.test(t)&&Se(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(Wo.test(t)&&Ce(n))return!1;return t in e}(e,t,r,i))?function(e,t,n,r,i,o,a){if("innerHTML"===t||"textContent"===t)return r&&a(r,i,o),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const r=null==n?"":n;return e.value===r&&"OPTION"!==e.tagName||(e.value=r),void(null==n&&e.removeAttribute(t))}let s=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=re(n):null==n&&"string"===r?(n="",s=!0):"number"===r&&(n=0,s=!0)}try{e[t]=n}catch(e){}s&&e.removeAttribute(t)}(e,t,r,o,a,s,l):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,n,r,i){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Po,t.slice(6,t.length)):e.setAttributeNS(Po,t,n);else{const r=ne(t);null==n||r&&!re(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,i))}},Io);let la;function ca(){return la||(la=function(e){return xi(e)}(sa))}function ua(e){if(Ce(e)){return document.querySelector(e)}return e}var da=function(e){return function(e){tr=e}("data-v-6a48ed2c"),e=e(),tr=null,e},fa={id:"bp_config"},ha={class:"bp_config_bg"},pa={style:{"font-size":"20px"}},_a=da((function(){return Zi("b",null,"bilibili视频下载 参数设置",-1)})),ma={style:{margin:"2% 0"}},va=da((function(){return Zi("label",null,"请求地址:",-1)})),ga=["value"],ba=Ki("     "),ya=da((function(){return Zi("label",null,"请求方式:",-1)})),wa=["value"],ka=[da((function(){return Zi("option",{value:"auto"},"自动判断",-1)})),da((function(){return Zi("option",{value:"local"},"本地请求",-1)})),da((function(){return Zi("option",{value:"online"},"远程请求",-1)}))],xa=da((function(){return Zi("br",null,null,-1)})),Sa=da((function(){return Zi("small",null,"注意:普通使用请勿修改;默认使用混合请求",-1)})),Ca={style:{margin:"2% 0"}},Ea=da((function(){return Zi("label",null,"视频格式:",-1)})),Aa=["value"],Oa=[da((function(){return Zi("option",{value:"flv"},"FLV",-1)})),da((function(){return Zi("option",{value:"dash"},"DASH",-1)})),da((function(){return Zi("option",{value:"mp4"},"MP4",-1)}))],Ia=Ki("     "),Ta=da((function(){return Zi("label",null,"切换CDN:",-1)})),za=["value"],Fa=["value"],Ra=da((function(){return Zi("br",null,null,-1)})),Pa=da((function(){return Zi("small",null,"注意:仅video支持MP4;建议特殊地区或网络受限时切换(自行选择合适线路)",-1)})),Ba={style:{margin:"2% 0"}},La=da((function(){return Zi("label",null,"下载方式:",-1)})),Da=["value"],Ua=[Yi('',5)],ja=Ki("     "),$a=da((function(){return Zi("label",null,"AriaNg地址:",-1)})),Na=["value"],Ma=da((function(){return Zi("br",null,null,-1)})),Wa=da((function(){return Zi("small",null,"提示:url和web方式不会设置文件名",-1)})),Va={style:{margin:"2% 0"}},Za=da((function(){return Zi("label",null,"RPC配置:[ 域名 : 端口 | 密钥 | 保存目录 ]",-1)})),Ha=da((function(){return Zi("br",null,null,-1)})),qa=["value"],Ga=Ki(" : "),Ka=["value"],Ya=Ki(" | "),Xa=["value"],Ja=Ki(" | "),Qa=["value"],es=da((function(){return Zi("br",null,null,-1)})),ts=da((function(){return Zi("small",null,"注意:RPC默认使用Motrix(需要安装并运行)下载,其他软件请修改参数",-1)})),ns={style:{margin:"2% 0"}},rs=da((function(){return Zi("label",null,"强制换源:",-1)})),is=["value"],os=[da((function(){return Zi("option",{value:"0"},"关闭",-1)})),da((function(){return Zi("option",{value:"1"},"开启",-1)}))],as=Ki("     "),ss=da((function(){return Zi("label",null,"弹幕速度:",-1)})),ls=["value"],cs=Ki(" s     "),us=da((function(){return Zi("label",null,"弹幕字号:",-1)})),ds=["value"],fs=Ki(" px "),hs=da((function(){return Zi("br",null,null,-1)})),ps=da((function(){return Zi("small",null,"说明:使用请求到的视频地址在DPlayer进行播放;弹幕速度为弹幕滑过DPlayer的时间",-1)})),_s={style:{margin:"2% 0"}},ms=da((function(){return Zi("label",null,"自动下载:",-1)})),vs=["value"],gs=[da((function(){return Zi("option",{value:"0"},"关闭",-1)})),da((function(){return Zi("option",{value:"1"},"开启",-1)}))],bs=da((function(){return Zi("br",null,null,-1)})),ys=da((function(){return Zi("small",null,"说明:请求地址成功后将自动点击下载视频按钮",-1)})),ws={style:{margin:"2% 0"}},ks=da((function(){return Zi("label",null,"授权状态:",-1)})),xs=da((function(){return Zi("select",{id:"auth",value:"{{config.auth}}",disabled:""},[Zi("option",{value:"0"},"未授权"),Zi("option",{value:"1"},"已授权")],-1)})),Ss={style:{"text-align":"right"}},Cs=da((function(){return Zi("br",null,null,-1)}));var Es=n(44),As=Es.config,Os=Es.hostMap,Is=Object.assign({},As),Ts={data:function(){var e=[];for(var t in Os)e.push({text:Os[t],value:t});return{config:As,host_key_options:e,help_clicked:!1}},methods:{save_config:function(){var e=JSON.parse(r.get("config_str"));r.set("config_str",JSON.stringify(As)),$("#bp_config").hide(),$("#bp_config").css("opacity",0),i.show();for(var t=0,n=["base_api","format","auth"];t使用期间不用关闭控制台页面!",(function(){H.open_ariang({domain:As.rpc_domain,port:As.rpc_port,token:As.rpc_token})})));for(var a=0,s=["danmaku_speed","danmaku_fontsize"];a")])]),Zi("div",ma,[va,Zi("input",{value:i.config.base_api,onInput:t[2]||(t[2]=function(e){return i.config.base_api=e.target.value}),style:{width:"30%"}},null,40,ga),ba,ya,Zi("select",{value:i.config.request_type,onInput:t[3]||(t[3]=function(e){return i.config.request_type=e.target.value})},ka,40,wa),xa,Sa]),Zi("div",Ca,[Ea,Zi("select",{value:i.config.format,onInput:t[4]||(t[4]=function(e){return i.config.format=e.target.value})},Oa,40,Aa),Ia,Ta,Zi("select",{value:i.config.host_key,onInput:t[5]||(t[5]=function(e){return i.config.host_key=e.target.value})},[(Ri(!0),Ui(Ai,null,no(i.host_key_options,(function(e){return Ri(),Ui("option",{value:e.value,key:e.text},(t=e.text,Ce(t)?t:null==t?"":we(t)||Ae(t)&&(t.toString===Ie||!Se(t.toString))?JSON.stringify(t,ce,2):String(t)),9,Fa);var t})),128))],40,za),Ra,Pa]),Zi("div",Ba,[La,Zi("select",{value:i.config.download_type,onInput:t[6]||(t[6]=function(e){return i.config.download_type=e.target.value})},Ua,40,Da),ja,$a,Zi("input",{value:i.config.ariang_host,onInput:t[7]||(t[7]=function(e){return i.config.ariang_host=e.target.value}),style:{width:"30%"}},null,40,Na),Ma,Wa]),Zi("div",Va,[Za,Ha,Zi("input",{value:i.config.rpc_domain,onInput:t[8]||(t[8]=function(e){return i.config.rpc_domain=e.target.value}),style:{width:"25%"}},null,40,qa),Ga,Zi("input",{value:i.config.rpc_port,onInput:t[9]||(t[9]=function(e){return i.config.rpc_port=e.target.value}),style:{width:"10%"}},null,40,Ka),Ya,Zi("input",{value:i.config.rpc_token,onInput:t[10]||(t[10]=function(e){return i.config.rpc_token=e.target.value}),placeholder:"没有密钥不用填",style:{width:"15%"}},null,40,Xa),Ja,Zi("input",{value:i.config.rpc_dir,onInput:t[11]||(t[11]=function(e){return i.config.rpc_dir=e.target.value}),placeholder:"留空使用默认目录",style:{width:"20%"}},null,40,Qa),es,ts]),Zi("div",ns,[rs,Zi("select",{value:i.config.replace_force,onInput:t[12]||(t[12]=function(e){return i.config.replace_force=e.target.value})},os,40,is),as,ss,Zi("input",{value:i.config.danmaku_speed,onInput:t[13]||(t[13]=function(e){return i.config.danmaku_speed=e.target.value}),style:{width:"5%"}},null,40,ls),cs,us,Zi("input",{value:i.config.danmaku_fontsize,onInput:t[14]||(t[14]=function(e){return i.config.danmaku_fontsize=e.target.value}),style:{width:"5%"}},null,40,ds),fs,hs,ps]),Zi("div",_s,[ms,Zi("select",{value:i.config.auto_download,onInput:t[15]||(t[15]=function(e){return i.config.auto_download=e.target.value})},gs,40,vs),bs,ys]),Zi("div",ws,[ks,Xi('-id="auth"-'),xs,Zi("a",{class:"setting-context",href:"javascript:;",onClick:t[16]||(t[16]=function(e){return o.show_login()})},"账号授权"),Zi("a",{class:"setting-context",href:"javascript:;",onClick:t[17]||(t[17]=function(e){return o.show_logout()})},"取消授权"),Zi("a",{class:"setting-context",href:"javascript:;",onClick:t[18]||(t[18]=function(e){return o.show_login("0")})},"手动授权"),Zi("a",{class:"setting-context",href:"javascript:;",onClick:t[19]||(t[19]=function(e){return o.show_login_help()})},"这是什么?")]),Zi("div",Ss,[Cs,Zi("button",{class:"setting-button",onClick:t[20]||(t[20]=function(e){return o.save_config()})},"确定")])])])}],["__scopeId","data-v-6a48ed2c"]]);function Hs(e,t){for(var n=0;n{const t=ca().createApp(...e),{mount:n}=t;return t.mount=e=>{const r=ua(e);if(!r)return;const i=t._component;Se(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t})(Zs).mount("#".concat(n.id)),$("body").append('
提示:
...


'),G.lazyInit(),X.initAuth(),X.checkLoginStatus(),Q.refresh(),$("#".concat(t.id)).append('