w-dwload-dlp
Version:
A download tool for video.
15 lines • 346 kB
JavaScript
/*!
* w-dwload-dlp v1.0.11
* (c) 2018-2021 yuda-lyu(semisphere)
* Released under the MIT License.
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("path"),require("process"),require("child_process"),require("fs"),require("archiver"),require("archiver-zip-encrypted"),require("unzipper")):"function"==typeof define&&define.amd?define(["path","process","child_process","fs","archiver","archiver-zip-encrypted","unzipper"],e):(t="undefined"!=typeof globalThis?globalThis:t||self)["w-dwload-dlp"]=e(t.path,t.process,t.child_process,t.fs,t.archiver,t["archiver-zip-encrypted"],t.unzipper)}(this,(function(t,e,r,n,i,o,s){"use strict";var a=Array.isArray,c="object"==typeof global&&global&&global.Object===Object&&global,f="object"==typeof self&&self&&self.Object===Object&&self,u=c||f||Function("return this")(),h=u.Symbol,l=Object.prototype,d=l.hasOwnProperty,p=l.toString,b=h?h.toStringTag:void 0;var y=Object.prototype.toString;var g="[object Null]",v="[object Undefined]",w=h?h.toStringTag:void 0;function m(t){return null==t?void 0===t?v:g:w&&w in Object(t)?function(t){var e=d.call(t,b),r=t[b];try{t[b]=void 0;var n=!0}catch(t){}var i=p.call(t);return n&&(e?t[b]=r:delete t[b]),i}(t):function(t){return y.call(t)}(t)}function _(t){return null!=t&&"object"==typeof t}var S="[object Symbol]";function B(t){return"symbol"==typeof t||_(t)&&m(t)==S}var E=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,j=/^\w*$/;function A(t,e){if(a(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!B(t))||(j.test(t)||!E.test(t)||null!=e&&t in Object(e))}function O(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var x="[object AsyncFunction]",T="[object Function]",C="[object GeneratorFunction]",$="[object Proxy]";function k(t){if(!O(t))return!1;var e=m(t);return e==T||e==C||e==x||e==$}var I,U=u["__core-js_shared__"],M=(I=/[^.]+$/.exec(U&&U.keys&&U.keys.IE_PROTO||""))?"Symbol(src)_1."+I:"";var L=Function.prototype.toString;function N(t){if(null!=t){try{return L.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var P=/^\[object .+?Constructor\]$/,R=Function.prototype,D=Object.prototype,z=R.toString,F=D.hasOwnProperty,q=RegExp("^"+z.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Y(t){return!(!O(t)||(e=t,M&&M in e))&&(k(t)?q:P).test(N(t));var e}function W(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Y(r)?r:void 0}var V=W(Object,"create");var H=Object.prototype.hasOwnProperty;var G=Object.prototype.hasOwnProperty;function Z(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function J(t,e){return t===e||t!=t&&e!=e}function X(t,e){for(var r=t.length;r--;)if(J(t[r][0],e))return r;return-1}Z.prototype.clear=function(){this.__data__=V?V(null):{},this.size=0},Z.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Z.prototype.get=function(t){var e=this.__data__;if(V){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return H.call(e,t)?e[t]:void 0},Z.prototype.has=function(t){var e=this.__data__;return V?void 0!==e[t]:G.call(e,t)},Z.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=V&&void 0===e?"__lodash_hash_undefined__":e,this};var Q=Array.prototype.splice;function K(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}K.prototype.clear=function(){this.__data__=[],this.size=0},K.prototype.delete=function(t){var e=this.__data__,r=X(e,t);return!(r<0)&&(r==e.length-1?e.pop():Q.call(e,r,1),--this.size,!0)},K.prototype.get=function(t){var e=this.__data__,r=X(e,t);return r<0?void 0:e[r][1]},K.prototype.has=function(t){return X(this.__data__,t)>-1},K.prototype.set=function(t,e){var r=this.__data__,n=X(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var tt=W(u,"Map");function et(t,e){var r,n,i=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map}function rt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}rt.prototype.clear=function(){this.size=0,this.__data__={hash:new Z,map:new(tt||K),string:new Z}},rt.prototype.delete=function(t){var e=et(this,t).delete(t);return this.size-=e?1:0,e},rt.prototype.get=function(t){return et(this,t).get(t)},rt.prototype.has=function(t){return et(this,t).has(t)},rt.prototype.set=function(t,e){var r=et(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};var nt="Expected a function";function it(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(nt);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(it.Cache||rt),r}it.Cache=rt;var ot,st,at,ct=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ft=/\\(\\)?/g,ut=(ot=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ct,(function(t,r,n,i){e.push(n?i.replace(ft,"$1"):r||t)})),e},st=it(ot,(function(t){return 500===at.size&&at.clear(),t})),at=st.cache,st),ht=ut;function lt(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}var dt=1/0,pt=h?h.prototype:void 0,bt=pt?pt.toString:void 0;function yt(t){if("string"==typeof t)return t;if(a(t))return lt(t,yt)+"";if(B(t))return bt?bt.call(t):"";var e=t+"";return"0"==e&&1/t==-dt?"-0":e}function gt(t){return null==t?"":yt(t)}function vt(t,e){return a(t)?t:A(t,e)?[t]:ht(gt(t))}var wt=1/0;function mt(t){if("string"==typeof t||B(t))return t;var e=t+"";return"0"==e&&1/t==-wt?"-0":e}function _t(t,e){for(var r=0,n=(e=vt(e,t)).length;null!=t&&r<n;)t=t[mt(e[r++])];return r&&r==n?t:void 0}function St(t,e,r){var n=null==t?void 0:_t(t,e);return void 0===n?r:n}var Bt=Object.prototype;var Et=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object),jt=Et,At=Object.prototype.hasOwnProperty;function Ot(t){if(r=(e=t)&&e.constructor,e!==("function"==typeof r&&r.prototype||Bt))return jt(t);var e,r,n=[];for(var i in Object(t))At.call(t,i)&&"constructor"!=i&&n.push(i);return n}var xt=W(u,"DataView"),Tt=W(u,"Promise"),Ct=W(u,"Set"),$t=W(u,"WeakMap"),kt="[object Map]",It="[object Promise]",Ut="[object Set]",Mt="[object WeakMap]",Lt="[object DataView]",Nt=N(xt),Pt=N(tt),Rt=N(Tt),Dt=N(Ct),zt=N($t),Ft=m;(xt&&Ft(new xt(new ArrayBuffer(1)))!=Lt||tt&&Ft(new tt)!=kt||Tt&&Ft(Tt.resolve())!=It||Ct&&Ft(new Ct)!=Ut||$t&&Ft(new $t)!=Mt)&&(Ft=function(t){var e=m(t),r="[object Object]"==e?t.constructor:void 0,n=r?N(r):"";if(n)switch(n){case Nt:return Lt;case Pt:return kt;case Rt:return It;case Dt:return Ut;case zt:return Mt}return e});var qt=Ft,Yt=9007199254740991;function Wt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Yt}function Vt(t){return null!=t&&Wt(t.length)&&!k(t)}var Ht="[object String]";function Gt(t){return function(e){return null==e?void 0:e[t]}}var Zt=Gt("length"),Jt=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Xt(t){return Jt.test(t)}var Qt="\\ud800-\\udfff",Kt="["+Qt+"]",te="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",ee="\\ud83c[\\udffb-\\udfff]",re="[^"+Qt+"]",ne="(?:\\ud83c[\\udde6-\\uddff]){2}",ie="[\\ud800-\\udbff][\\udc00-\\udfff]",oe="(?:"+te+"|"+ee+")"+"?",se="[\\ufe0e\\ufe0f]?",ae=se+oe+("(?:\\u200d(?:"+[re,ne,ie].join("|")+")"+se+oe+")*"),ce="(?:"+[re+te+"?",te,ne,ie,Kt].join("|")+")",fe=RegExp(ee+"(?="+ee+")|"+ce+ae,"g");function ue(t){return Xt(t)?function(t){for(var e=fe.lastIndex=0;fe.test(t);)++e;return e}(t):Zt(t)}var he="[object Map]",le="[object Set]";function de(t){if(null==t)return 0;if(Vt(t))return"string"==typeof(e=t)||!a(e)&&_(e)&&m(e)==Ht?ue(t):t.length;var e,r=qt(t);return r==he||r==le?t.size:Ot(t).length}function pe(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}var be,ye=function(t,e,r){for(var n=-1,i=Object(t),o=r(t),s=o.length;s--;){var a=o[be?s:++n];if(!1===e(i[a],a,i))break}return t},ge=ye;function ve(t){return _(t)&&"[object Arguments]"==m(t)}var we=Object.prototype,me=we.hasOwnProperty,_e=we.propertyIsEnumerable,Se=ve(function(){return arguments}())?ve:function(t){return _(t)&&me.call(t,"callee")&&!_e.call(t,"callee")},Be=Se;var Ee="object"==typeof exports&&exports&&!exports.nodeType&&exports,je=Ee&&"object"==typeof module&&module&&!module.nodeType&&module,Ae=je&&je.exports===Ee?u.Buffer:void 0,Oe=(Ae?Ae.isBuffer:void 0)||function(){return!1},xe=9007199254740991,Te=/^(?:0|[1-9]\d*)$/;function Ce(t,e){var r=typeof t;return!!(e=null==e?xe:e)&&("number"==r||"symbol"!=r&&Te.test(t))&&t>-1&&t%1==0&&t<e}var $e={};$e["[object Float32Array]"]=$e["[object Float64Array]"]=$e["[object Int8Array]"]=$e["[object Int16Array]"]=$e["[object Int32Array]"]=$e["[object Uint8Array]"]=$e["[object Uint8ClampedArray]"]=$e["[object Uint16Array]"]=$e["[object Uint32Array]"]=!0,$e["[object Arguments]"]=$e["[object Array]"]=$e["[object ArrayBuffer]"]=$e["[object Boolean]"]=$e["[object DataView]"]=$e["[object Date]"]=$e["[object Error]"]=$e["[object Function]"]=$e["[object Map]"]=$e["[object Number]"]=$e["[object Object]"]=$e["[object RegExp]"]=$e["[object Set]"]=$e["[object String]"]=$e["[object WeakMap]"]=!1;var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Ue=Ie&&Ie.exports===ke&&c.process,Me=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Ue&&Ue.binding&&Ue.binding("util")}catch(t){}}(),Le=Me&&Me.isTypedArray,Ne=Le?function(t){return function(e){return t(e)}}(Le):function(t){return _(t)&&Wt(t.length)&&!!$e[m(t)]},Pe=Ne,Re=Object.prototype.hasOwnProperty;function De(t,e){var r=a(t),n=!r&&Be(t),i=!r&&!n&&Oe(t),o=!r&&!n&&!i&&Pe(t),s=r||n||i||o,c=s?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],f=c.length;for(var u in t)!e&&!Re.call(t,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Ce(u,f))||c.push(u);return c}function ze(t){return Vt(t)?De(t):Ot(t)}var Fe=function(t,e){return function(r,n){if(null==r)return r;if(!Vt(r))return t(r,n);for(var i=r.length,o=e?i:-1,s=Object(r);(e?o--:++o<i)&&!1!==n(s[o],o,s););return r}}((function(t,e){return t&&ge(t,e,ze)})),qe=Fe;function Ye(t){return t}function We(t,e){var r;return(a(t)?pe:qe)(t,"function"==typeof(r=e)?r:Ye)}var Ve=/\s/;var He=/^\s+/;function Ge(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&Ve.test(t.charAt(e)););return e}(t)+1).replace(He,""):t}var Ze=NaN,Je=/^[-+]0x[0-9a-f]+$/i,Xe=/^0b[01]+$/i,Qe=/^0o[0-7]+$/i,Ke=parseInt;function tr(t){if("number"==typeof t)return t;if(B(t))return Ze;if(O(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=O(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ge(t);var r=Xe.test(t);return r||Qe.test(t)?Ke(t.slice(2),r?2:8):Je.test(t)?Ze:+t}var er=1/0,rr=17976931348623157e292;function nr(t){return t?(t=tr(t))===er||t===-er?(t<0?-1:1)*rr:t==t?t:0:0===t?t:0}function ir(t){var e=nr(t),r=e%1;return e==e?r?e-r:e:0}function or(t){return"[object String]"===Object.prototype.toString.call(t)}function sr(t){return!(!or(t)||""===t)}function ar(t){return t!=t}function cr(t){let e=!1;if(sr(t))e=!isNaN(Number(t));else if(function(t){return"[object Number]"===Object.prototype.toString.call(t)}(t)){if(ar(t))return!1;e=!0}return e}function fr(t){if(!cr(t))return 0;return nr(t)}function ur(t){return!!cr(t)&&(t=fr(t),"number"==typeof(e=t)&&e==ir(e));var e}var hr=u.isFinite,lr=Math.min;var dr=function(t){var e=Math[t];return function(t,r){if(t=tr(t),(r=null==r?0:lr(ir(r),292))&&hr(t)){var n=(gt(t)+"e").split("e");return+((n=(gt(e(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return e(t)}}("round"),pr=dr;function br(t){if(!cr(t))return 0;t=fr(t);let e=pr(t);return"0"===String(e)?0:e}let yr="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),gr=yr.length;function vr(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,e=[];var r;t=ur(r=t)&&br(r)>0?br(t):32;for(let r=0;r<t;r++)e[r]=yr[0|Math.random()*gr];return e.join("")}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function wr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function mr(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var r=function t(){if(this instanceof t){var r=[null];return r.push.apply(r,arguments),new(Function.bind.apply(e,r))}return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})})),r}var _r={exports:{}};!function(t,e){t.exports=function(){var t=1e3,e=6e4,r=36e5,n="millisecond",i="second",o="minute",s="hour",a="day",c="week",f="month",u="quarter",h="year",l="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},g=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},v={s:g,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),i=r%60;return(e<=0?"+":"-")+g(n,2,"0")+":"+g(i,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(n,f),o=r-i<0,s=e.clone().add(n+(o?-1:1),f);return+(-(n+(r-i)/(o?i-s:s-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:f,y:h,w:c,d:a,D:l,h:s,m:o,s:i,ms:n,Q:u}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},w="en",m={};m[w]=y;var _="$isDayjsObject",S=function(t){return t instanceof A||!(!t||!t[_])},B=function t(e,r,n){var i;if(!e)return w;if("string"==typeof e){var o=e.toLowerCase();m[o]&&(i=o),r&&(m[o]=r,i=o);var s=e.split("-");if(!i&&s.length>1)return t(s[0])}else{var a=e.name;m[a]=e,i=a}return!n&&i&&(w=i),i||!n&&w},E=function(t,e){if(S(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new A(r)},j=v;j.l=B,j.i=S,j.w=function(t,e){return E(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var A=function(){function y(t){this.$L=B(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[_]=!0}var g=y.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(j.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(p);if(n){var i=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(e)}(t),this.init()},g.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},g.$utils=function(){return j},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(t,e){var r=E(t);return this.startOf(e)<=r&&r<=this.endOf(e)},g.isAfter=function(t,e){return E(t)<this.startOf(e)},g.isBefore=function(t,e){return this.endOf(e)<E(t)},g.$g=function(t,e,r){return j.u(t)?this[e]:this.set(r,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,e){var r=this,n=!!j.u(e)||e,u=j.p(t),d=function(t,e){var i=j.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return n?i:i.endOf(a)},p=function(t,e){return j.w(r.toDate()[t].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},b=this.$W,y=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(u){case h:return n?d(1,0):d(31,11);case f:return n?d(1,y):d(0,y+1);case c:var w=this.$locale().weekStart||0,m=(b<w?b+7:b)-w;return d(n?g-m:g+(6-m),y);case a:case l:return p(v+"Hours",0);case s:return p(v+"Minutes",1);case o:return p(v+"Seconds",2);case i:return p(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(t){return this.startOf(t,!1)},g.$set=function(t,e){var r,c=j.p(t),u="set"+(this.$u?"UTC":""),d=(r={},r[a]=u+"Date",r[l]=u+"Date",r[f]=u+"Month",r[h]=u+"FullYear",r[s]=u+"Hours",r[o]=u+"Minutes",r[i]=u+"Seconds",r[n]=u+"Milliseconds",r)[c],p=c===a?this.$D+(e-this.$W):e;if(c===f||c===h){var b=this.clone().set(l,1);b.$d[d](p),b.init(),this.$d=b.set(l,Math.min(this.$D,b.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},g.set=function(t,e){return this.clone().$set(t,e)},g.get=function(t){return this[j.p(t)]()},g.add=function(n,u){var l,d=this;n=Number(n);var p=j.p(u),b=function(t){var e=E(d);return j.w(e.date(e.date()+Math.round(t*n)),d)};if(p===f)return this.set(f,this.$M+n);if(p===h)return this.set(h,this.$y+n);if(p===a)return b(1);if(p===c)return b(7);var y=(l={},l[o]=e,l[s]=r,l[i]=t,l)[p]||1,g=this.$d.getTime()+n*y;return j.w(g,this)},g.subtract=function(t,e){return this.add(-1*t,e)},g.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||d;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=j.z(this),o=this.$H,s=this.$m,a=this.$M,c=r.weekdays,f=r.months,u=r.meridiem,h=function(t,r,i,o){return t&&(t[r]||t(e,n))||i[r].slice(0,o)},l=function(t){return j.s(o%12||12,t,"0")},p=u||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(b,(function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return j.s(e.$y,4,"0");case"M":return a+1;case"MM":return j.s(a+1,2,"0");case"MMM":return h(r.monthsShort,a,f,3);case"MMMM":return h(f,a);case"D":return e.$D;case"DD":return j.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(r.weekdaysMin,e.$W,c,2);case"ddd":return h(r.weekdaysShort,e.$W,c,3);case"dddd":return c[e.$W];case"H":return String(o);case"HH":return j.s(o,2,"0");case"h":return l(1);case"hh":return l(2);case"a":return p(o,s,!0);case"A":return p(o,s,!1);case"m":return String(s);case"mm":return j.s(s,2,"0");case"s":return String(e.$s);case"ss":return j.s(e.$s,2,"0");case"SSS":return j.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,l,d){var p,b=this,y=j.p(l),g=E(n),v=(g.utcOffset()-this.utcOffset())*e,w=this-g,m=function(){return j.m(b,g)};switch(y){case h:p=m()/12;break;case f:p=m();break;case u:p=m()/3;break;case c:p=(w-v)/6048e5;break;case a:p=(w-v)/864e5;break;case s:p=w/r;break;case o:p=w/e;break;case i:p=w/t;break;default:p=w}return d?p:j.a(p)},g.daysInMonth=function(){return this.endOf(f).$D},g.$locale=function(){return m[this.$L]},g.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=B(t,e,!0);return n&&(r.$L=n),r},g.clone=function(){return j.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},y}(),O=A.prototype;return E.prototype=O,[["$ms",n],["$s",i],["$m",o],["$H",s],["$W",a],["$M",f],["$y",h],["$D",l]].forEach((function(t){O[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),E.extend=function(t,e){return t.$i||(t(e,A,E),t.$i=!0),E},E.locale=B,E.isDayjs=S,E.unix=function(t){return E(1e3*t)},E.en=m[w],E.Ls=m,E.p={},E}()}(_r);var Sr=wr(_r.exports);function Br(t){let e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e}function Er(t){var e=this.__data__=new K(t);this.size=e.size}Er.prototype.clear=function(){this.__data__=new K,this.size=0},Er.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Er.prototype.get=function(t){return this.__data__.get(t)},Er.prototype.has=function(t){return this.__data__.has(t)},Er.prototype.set=function(t,e){var r=this.__data__;if(r instanceof K){var n=r.__data__;if(!tt||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new rt(n)}return r.set(t,e),this.size=r.size,this};function jr(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new rt;++e<r;)this.add(t[e])}function Ar(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function Or(t,e){return t.has(e)}jr.prototype.add=jr.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},jr.prototype.has=function(t){return this.__data__.has(t)};var xr=1,Tr=2;function Cr(t,e,r,n,i,o){var s=r&xr,a=t.length,c=e.length;if(a!=c&&!(s&&c>a))return!1;var f=o.get(t),u=o.get(e);if(f&&u)return f==e&&u==t;var h=-1,l=!0,d=r&Tr?new jr:void 0;for(o.set(t,e),o.set(e,t);++h<a;){var p=t[h],b=e[h];if(n)var y=s?n(b,p,h,e,t,o):n(p,b,h,t,e,o);if(void 0!==y){if(y)continue;l=!1;break}if(d){if(!Ar(e,(function(t,e){if(!Or(d,e)&&(p===t||i(p,t,r,n,o)))return d.push(e)}))){l=!1;break}}else if(p!==b&&!i(p,b,r,n,o)){l=!1;break}}return o.delete(t),o.delete(e),l}var $r=u.Uint8Array;function kr(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function Ir(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var Ur=1,Mr=2,Lr="[object Boolean]",Nr="[object Date]",Pr="[object Error]",Rr="[object Map]",Dr="[object Number]",zr="[object RegExp]",Fr="[object Set]",qr="[object String]",Yr="[object Symbol]",Wr="[object ArrayBuffer]",Vr="[object DataView]",Hr=h?h.prototype:void 0,Gr=Hr?Hr.valueOf:void 0;var Zr=Object.prototype.propertyIsEnumerable,Jr=Object.getOwnPropertySymbols,Xr=Jr?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var s=t[r];e(s,r,t)&&(o[i++]=s)}return o}(Jr(t),(function(e){return Zr.call(t,e)})))}:function(){return[]},Qr=Xr;function Kr(t){return function(t,e,r){var n=e(t);return a(t)?n:function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}(n,r(t))}(t,ze,Qr)}var tn=1,en=Object.prototype.hasOwnProperty;var rn=1,nn="[object Arguments]",on="[object Array]",sn="[object Object]",an=Object.prototype.hasOwnProperty;function cn(t,e,r,n,i,o){var s=a(t),c=a(e),f=s?on:qt(t),u=c?on:qt(e),h=(f=f==nn?sn:f)==sn,l=(u=u==nn?sn:u)==sn,d=f==u;if(d&&Oe(t)){if(!Oe(e))return!1;s=!0,h=!1}if(d&&!h)return o||(o=new Er),s||Pe(t)?Cr(t,e,r,n,i,o):function(t,e,r,n,i,o,s){switch(r){case Vr:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Wr:return!(t.byteLength!=e.byteLength||!o(new $r(t),new $r(e)));case Lr:case Nr:case Dr:return J(+t,+e);case Pr:return t.name==e.name&&t.message==e.message;case zr:case qr:return t==e+"";case Rr:var a=kr;case Fr:var c=n&Ur;if(a||(a=Ir),t.size!=e.size&&!c)return!1;var f=s.get(t);if(f)return f==e;n|=Mr,s.set(t,e);var u=Cr(a(t),a(e),n,i,o,s);return s.delete(t),u;case Yr:if(Gr)return Gr.call(t)==Gr.call(e)}return!1}(t,e,f,r,n,i,o);if(!(r&rn)){var p=h&&an.call(t,"__wrapped__"),b=l&&an.call(e,"__wrapped__");if(p||b){var y=p?t.value():t,g=b?e.value():e;return o||(o=new Er),i(y,g,r,n,o)}}return!!d&&(o||(o=new Er),function(t,e,r,n,i,o){var s=r&tn,a=Kr(t),c=a.length;if(c!=Kr(e).length&&!s)return!1;for(var f=c;f--;){var u=a[f];if(!(s?u in e:en.call(e,u)))return!1}var h=o.get(t),l=o.get(e);if(h&&l)return h==e&&l==t;var d=!0;o.set(t,e),o.set(e,t);for(var p=s;++f<c;){var b=t[u=a[f]],y=e[u];if(n)var g=s?n(y,b,u,e,t,o):n(b,y,u,t,e,o);if(!(void 0===g?b===y||i(b,y,r,n,o):g)){d=!1;break}p||(p="constructor"==u)}if(d&&!p){var v=t.constructor,w=e.constructor;v==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(d=!1)}return o.delete(t),o.delete(e),d}(t,e,r,n,i,o))}function fn(t,e,r,n,i){return t===e||(null==t||null==e||!_(t)&&!_(e)?t!=t&&e!=e:cn(t,e,r,n,fn,i))}var un=1,hn=2;function ln(t){return t==t&&!O(t)}function dn(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}function pn(t){var e=function(t){for(var e=ze(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,ln(i)]}return e}(t);return 1==e.length&&e[0][2]?dn(e[0][0],e[0][1]):function(r){return r===t||function(t,e,r,n){var i=r.length,o=i,s=!n;if(null==t)return!o;for(t=Object(t);i--;){var a=r[i];if(s&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<o;){var c=(a=r[i])[0],f=t[c],u=a[1];if(s&&a[2]){if(void 0===f&&!(c in t))return!1}else{var h=new Er;if(n)var l=n(f,u,c,t,e,h);if(!(void 0===l?fn(u,f,un|hn,n,h):l))return!1}}return!0}(r,t,e)}}function bn(t,e){return null!=t&&e in Object(t)}function yn(t,e){return null!=t&&function(t,e,r){for(var n=-1,i=(e=vt(e,t)).length,o=!1;++n<i;){var s=mt(e[n]);if(!(o=null!=t&&r(t,s)))break;t=t[s]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&Wt(i)&&Ce(s,i)&&(a(t)||Be(t))}(t,e,bn)}var gn=1,vn=2;function wn(t){return A(t)?Gt(mt(t)):function(t){return function(e){return _t(e,t)}}(t)}function mn(t){return"function"==typeof t?t:null==t?Ye:"object"==typeof t?a(t)?function(t,e){return A(t)&&ln(e)?dn(mt(t),e):function(r){var n=St(r,t);return void 0===n&&n===e?yn(r,t):fn(e,n,gn|vn)}}(t[0],t[1]):pn(t):wn(t)}function _n(t,e){var r=-1,n=Vt(t)?Array(t.length):[];return qe(t,(function(t,i,o){n[++r]=e(t,i,o)})),n}function Sn(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:function(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+e];return o}(t,e,r)}function Bn(t){return t!=t}function En(t,e,r){return e==e?function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}(t,e,r):function(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1}(t,Bn,r)}var jn="\\ud800-\\udfff",An="["+jn+"]",On="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",xn="\\ud83c[\\udffb-\\udfff]",Tn="[^"+jn+"]",Cn="(?:\\ud83c[\\udde6-\\uddff]){2}",$n="[\\ud800-\\udbff][\\udc00-\\udfff]",kn="(?:"+On+"|"+xn+")"+"?",In="[\\ufe0e\\ufe0f]?",Un=In+kn+("(?:\\u200d(?:"+[Tn,Cn,$n].join("|")+")"+In+kn+")*"),Mn="(?:"+[Tn+On+"?",On,Cn,$n,An].join("|")+")",Ln=RegExp(xn+"(?="+xn+")|"+Mn+Un,"g");function Nn(t){return Xt(t)?function(t){return t.match(Ln)||[]}(t):function(t){return t.split("")}(t)}function Pn(t,e,r){if((t=gt(t))&&(r||void 0===e))return Ge(t);if(!t||!(e=yt(e)))return t;var n=Nn(t),i=Nn(e),o=function(t,e){for(var r=-1,n=t.length;++r<n&&En(e,t[r],0)>-1;);return r}(n,i),s=function(t,e){for(var r=t.length;r--&&En(e,t[r],0)>-1;);return r}(n,i)+1;return Sn(n,o,s).join("")}function Rn(t,e){if(!sr(t))return[];if(!sr(e))return[];let r=function(t,e){return sr(t)&&sr(e)?t.split(e):[]}(t,e);var n,i;i=Pn,r=(a(n=r)?lt:_n)(n,mn(i));let o=[];return We(r,(function(t){sr(t)&&o.push(t)})),o}function Dn(t){if(!ur(t))return!1;return br(t)>=0}function zn(t,e){if(!sr(t))return"";if(!Dn(e))return"";if(0===(e=br(e)))return"";let r=t.length-e;return r<0&&(r=0),t.substring(r,r+e)}function Fn(t,e){return sr(t)&&Dn(e)?0===(e=br(e))?t:function(t,e){return sr(t)&&Dn(e)?0===(e=br(e))?"":t.substring(0,e):""}(t,t.length-e):""}var qn="[object Boolean]";function Yn(t){return!0===(e=t)||!1===e||_(e)&&m(e)==qn;var e}for(var Wn={exports:{}},Vn={},Hn={byteLength:function(t){var e=Kn(t),r=e[0],n=e[1];return 3*(r+n)/4-n},toByteArray:function(t){var e,r,n=Kn(t),i=n[0],o=n[1],s=new Jn(function(t,e,r){return 3*(e+r)/4-r}(0,i,o)),a=0,c=o>0?i-4:i;for(r=0;r<c;r+=4)e=Zn[t.charCodeAt(r)]<<18|Zn[t.charCodeAt(r+1)]<<12|Zn[t.charCodeAt(r+2)]<<6|Zn[t.charCodeAt(r+3)],s[a++]=e>>16&255,s[a++]=e>>8&255,s[a++]=255&e;2===o&&(e=Zn[t.charCodeAt(r)]<<2|Zn[t.charCodeAt(r+1)]>>4,s[a++]=255&e);1===o&&(e=Zn[t.charCodeAt(r)]<<10|Zn[t.charCodeAt(r+1)]<<4|Zn[t.charCodeAt(r+2)]>>2,s[a++]=e>>8&255,s[a++]=255&e);return s},fromByteArray:function(t){for(var e,r=t.length,n=r%3,i=[],o=16383,s=0,a=r-n;s<a;s+=o)i.push(ti(t,s,s+o>a?a:s+o));1===n?(e=t[r-1],i.push(Gn[e>>2]+Gn[e<<4&63]+"==")):2===n&&(e=(t[r-2]<<8)+t[r-1],i.push(Gn[e>>10]+Gn[e>>4&63]+Gn[e<<2&63]+"="));return i.join("")}},Gn=[],Zn=[],Jn="undefined"!=typeof Uint8Array?Uint8Array:Array,Xn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qn=0;Qn<64;++Qn)Gn[Qn]=Xn[Qn],Zn[Xn.charCodeAt(Qn)]=Qn;function Kn(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function ti(t,e,r){for(var n,i,o=[],s=e;s<r;s+=3)n=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(Gn[(i=n)>>18&63]+Gn[i>>12&63]+Gn[i>>6&63]+Gn[63&i]);return o.join("")}Zn["-".charCodeAt(0)]=62,Zn["_".charCodeAt(0)]=63;var ei={
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
read:function(t,e,r,n,i){var o,s,a=8*i-n-1,c=(1<<a)-1,f=c>>1,u=-7,h=r?i-1:0,l=r?-1:1,d=t[e+h];for(h+=l,o=d&(1<<-u)-1,d>>=-u,u+=a;u>0;o=256*o+t[e+h],h+=l,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=n;u>0;s=256*s+t[e+h],h+=l,u-=8);if(0===o)o=1-f;else{if(o===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),o-=f}return(d?-1:1)*s*Math.pow(2,o-n)},write:function(t,e,r,n,i,o){var s,a,c,f=8*o-i-1,u=(1<<f)-1,h=u>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,b=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+h>=1?l/c:l*Math.pow(2,1-h))*c>=2&&(s++,c/=2),s+h>=u?(a=0,s=u):s+h>=1?(a=(e*c-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[r+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,f+=i;f>0;t[r+d]=255&s,d+=p,s/=256,f-=8);t[r+d-p]|=128*b}};
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
!function(t){const e=Hn,r=ei,n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=s,t.SlowBuffer=function(t){+t!=t&&(t=0);return s.alloc(+t)},t.INSPECT_MAX_BYTES=50;const i=2147483647;function o(t){if(t>i)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return f(t)}return a(t,e,r)}function a(t,e,r){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|d(t,e);let n=o(r);const i=n.write(t,e);i!==r&&(n=n.slice(0,i));return n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(H(t,Uint8Array)){const e=new Uint8Array(t);return h(e.buffer,e.byteOffset,e.byteLength)}return u(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(H(t,ArrayBuffer)||t&&H(t.buffer,ArrayBuffer))return h(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(H(t,SharedArrayBuffer)||t&&H(t.buffer,SharedArrayBuffer)))return h(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return s.from(n,e,r);const i=function(t){if(s.isBuffer(t)){const e=0|l(t.length),r=o(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!=typeof t.length||G(t.length)?o(0):u(t);if("Buffer"===t.type&&Array.isArray(t.data))return u(t.data)}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function f(t){return c(t),o(t<0?0:0|l(t))}function u(t){const e=t.length<0?0:0|l(t.length),r=o(e);for(let n=0;n<e;n+=1)r[n]=255&t[n];return r}function h(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function l(t){if(t>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|t}function d(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||H(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Y(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return W(t).length;default:if(i)return n?-1:Y(t).length;e=(""+e).toLowerCase(),i=!0}}function p(t,e,r){let n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return x(this,e,r);case"utf8":case"utf-8":return E(this,e,r);case"ascii":return A(this,e,r);case"latin1":case"binary":return O(this,e,r);case"base64":return B(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function y(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),G(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:g(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):g(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function g(t,e,r,n,i){let o,s=1,a=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,r/=2}function f(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){let n=-1;for(o=r;o<a;o++)if(f(t,o)===f(e,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===c)return n*s}else-1!==n&&(o-=o-n),n=-1}else for(r+c>a&&(r=a-c),o=r;o>=0;o--){let r=!0;for(let n=0;n<c;n++)if(f(t,o+n)!==f(e,n)){r=!1;break}if(r)return o}return-1}function v(t,e,r,n){r=Number(r)||0;const i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;const o=e.length;let s;for(n>o/2&&(n=o/2),s=0;s<n;++s){const n=parseInt(e.substr(2*s,2),16);if(G(n))return s;t[r+s]=n}return s}function w(t,e,r,n){return V(Y(e,t.length-r),t,r,n)}function m(t,e,r,n){return V(function(t){const e=[];for(let r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function _(t,e,r,n){return V(W(e),t,r,n)}function S(t,e,r,n){return V(function(t,e){let r,n,i;const o=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function B(t,r,n){return 0===r&&n===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(r,n))}function E(t,e,r){r=Math.min(t.length,r);const n=[];let i=e;for(;i<r;){const e=t[i];let o=null,s=e>239?4:e>223?3:e>191?2:1;if(i+s<=r){let r,n,a,c;switch(s){case 1:e<128&&(o=e);break;case 2:r=t[i+1],128==(192&r)&&(c=(31&e)<<6|63&r,c>127&&(o=c));break;case 3:r=t[i+1],n=t[i+2],128==(192&r)&&128==(192&n)&&(c=(15&e)<<12|(63&r)<<6|63&n,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:r=t[i+1],n=t[i+2],a=t[i+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(c=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&a,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return function(t){const e=t.length;if(e<=j)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=j));return r}(n)}t.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(t,e,r){return a(t,e,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(t,e,r){return function(t,e,r){return c(t),t<=0?o(t):void 0!==e?"string"==typeof r?o(t).fill(e,r):o(t).fill(e):o(t)}(t,e,r)},s.allocUnsafe=function(t){return f(t)},s.allocUnsafeSlow=function(t){return f(t)},s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(H(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),H(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let r=t.length,n=e.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},s.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);let r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;const n=s.allocUnsafe(e);let i=0;for(r=0;r<t.length;++r){let e=t[r];if(H(e,Uint8Array))i+e.length>n.length?(s.isBuffer(e)||(e=s.from(e)),e.copy(n,i)):Uint8Array.prototype.set.call(n,e,i);else{if(!s.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(n,i)}i+=e.length}return n},s.byteLength=d,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)b(this,e,e+1);return this},s.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},s.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},s.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?E(this,0,t):p.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(t){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){let e="";const r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(t,e,r,n,i){if(H(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;let o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0);const c=Math.min(o,a),f=this.slice(n,i),u=t.slice(e,r);for(let t=0;t<c;++t)if(f[t]!==u[t]){o=f[t],a=u[t];break}return o<a?-1:a<o?1:0},s.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},s.prototype.indexOf=function(t,e,r){return y(this,t,e,r,!0)},s.prototype.lastIndexOf=function(t,e,r){return y(this,t,e,r,!1)},s.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return v(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":case"latin1":case"binary":return m(this,t,e,r);case"base64":return _(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const j=4096;function A(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function O(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function x(t,e,r){const n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=e;n<r;++n)i+=Z[t[n]];return i}function T(t,e,r){const n=t.slice(e,r);let i="";for(let t=0;t<n.length-1;t+=2)i+=String.fromCharCode(n[t]+256*n[t+1]);return i}function C(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function $(t,e,r,n,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function k(t,e,r,n,i){D(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,r}function I(t,e,r,n,i){D(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r+7]=o,o>>=8,t[r+6]=o,o>>=8,t[r+5]=o,o>>=8,t[r+4]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=s,s>>=8,t[r+2]=s,s>>=8,t[r+1]=s,s>>=8,t[r]=s,r+8}function U(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function M(t,e,n,i,o){return e=+e,n>>>=0,o||U(t,0,n,4),r.write(t,e,n,i,23,4),n+4}function L(t,e,n,i,o){return e=+e,n>>>=0,o||U(t,0,n,8),r.write(t,e,n,i,52,8),n+8}s.prototype.slice=function(t,e){const r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);const n=this.subarray(t,e);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUintLE=s.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||C(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return n},s.prototype.readUintBE=s.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||C(t,e,this.length);let n=this[t+--e],i=1;for(;e>0&&(i*=256);)n+=this[t+--e]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(t,e){return t>>>=0,e||C(t,1,this.length),this[t]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||C(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||C(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||C(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||C(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readBigUInt64LE=J((function(t){z(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||F(t,this.length-8);const n=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))})),s.prototype.readBigUInt64BE=J((function(t){z(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||F(t,this.length-8);const n=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)})),s.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||C(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||C(t,e,this.length);let n=e,i=1,o=this[t+--n];for(;n>0&&(i*=256);)o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},s.prototype.readInt8=function(t,e){return t>>>=0,e||C(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||C(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(t,e){t>>>=0,e||C(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||C(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||C(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readBigInt64LE=J((function(t){z(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||F(t,this.length-8);const n=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),s.prototype.readBigInt64BE=J((function(t){z(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||F(t,this.length-8);const n=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(n)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+r)})),s.prototype.readFloatLE=function(t,e){return t>>>=0,e||C(t,4,this.length),r.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||C(t,4,this.length),r.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||C(t,8,this.length),r.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||C(t,8,this.length),r.read(this,t,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){$(this,t,e,r,Math.pow(2,8*r)-1,0)}let i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){$(this,t,e,r,Math.pow(2,8*r)-1,0)}let i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||$(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||$(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||$(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||$(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||$(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeBigUInt64LE=J((function(t){return k(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeBigUInt64BE=J((function(t){return I(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);$(this,t,e,r,n-1,-n)}let i=0,o=1,s=0;for(this[e]=255&t;++i<r&&(o*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+r},s.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);$(this,t,e,r,n-1,-n)}let i=r-1,o=1,s=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||$(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||$(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||$(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||$(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,r){return t=+t,e