zmp-sdk 2.12.0-5 → 2.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.min.js +64 -13
- package/dist/index.es.js +64 -13
- package/dist/index.js +3 -3
- package/dist/index.umd.js +3 -3
- package/dist/types/src/constants.d.ts +1 -0
- package/dist/types/src/controller/index.d.ts +1 -0
- package/dist/types/src/controller/interface.d.ts +1 -0
- package/dist/types/src/controller/sdk.d.ts +2 -0
- package/dist/types/src/services/openApi.d.ts +9 -0
- package/dist/types/src/types/callbackData.d.ts +7 -0
- package/dist/types/src/types/inputData.d.ts +4 -0
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).zmp={})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}function r(t){return t&&t.default||t}var i,o,a,s,u,c,l,f,h,d=n((function(t,n){(function(){var r,i="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",s=16,u=32,c=64,l=128,f=256,h=1/0,d=9007199254740991,p=NaN,v=4294967295,g=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",u],["partialRight",c],["rearg",f]],_="[object Arguments]",y="[object Array]",m="[object Boolean]",w="[object Date]",b="[object Error]",k="[object Function]",E="[object GeneratorFunction]",S="[object Map]",A="[object Number]",C="[object Object]",T="[object Promise]",R="[object RegExp]",x="[object Set]",O="[object String]",I="[object Symbol]",N="[object WeakMap]",j="[object ArrayBuffer]",L="[object DataView]",B="[object Float32Array]",P="[object Float64Array]",M="[object Int8Array]",z="[object Int16Array]",U="[object Int32Array]",D="[object Uint8Array]",F="[object Uint8ClampedArray]",q="[object Uint16Array]",Z="[object Uint32Array]",W=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,G=RegExp(K.source),J=RegExp(Y.source),V=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,tt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,et=/^\w*$/,nt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rt=/[\\^$.*+?()[\]{}|]/g,it=RegExp(rt.source),ot=/^\s+/,at=/\s/,st=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ut=/\{\n\/\* \[wrapped with (.+)\] \*/,ct=/,? & /,lt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ft=/[()=,{}\[\]\/\s]/,ht=/\\(\\)?/g,dt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pt=/\w*$/,vt=/^[-+]0x[0-9a-f]+$/i,gt=/^0b[01]+$/i,_t=/^\[object .+?Constructor\]$/,yt=/^0o[0-7]+$/i,mt=/^(?:0|[1-9]\d*)$/,wt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bt=/($^)/,kt=/['\n\r\u2028\u2029\\]/g,Et="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",St="\\u2700-\\u27bf",At="a-z\\xdf-\\xf6\\xf8-\\xff",Ct="A-Z\\xc0-\\xd6\\xd8-\\xde",Tt="\\ufe0e\\ufe0f",Rt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",xt="['’]",Ot="[\\ud800-\\udfff]",It="["+Rt+"]",Nt="["+Et+"]",jt="\\d+",Lt="[\\u2700-\\u27bf]",Bt="["+At+"]",Pt="[^\\ud800-\\udfff"+Rt+jt+St+At+Ct+"]",Mt="\\ud83c[\\udffb-\\udfff]",zt="[^\\ud800-\\udfff]",Ut="(?:\\ud83c[\\udde6-\\uddff]){2}",Dt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ft="["+Ct+"]",qt="(?:"+Bt+"|"+Pt+")",Zt="(?:"+Ft+"|"+Pt+")",Wt="(?:['’](?:d|ll|m|re|s|t|ve))?",Ht="(?:['’](?:D|LL|M|RE|S|T|VE))?",$t="(?:"+Nt+"|"+Mt+")"+"?",Kt="[\\ufe0e\\ufe0f]?",Yt=Kt+$t+("(?:\\u200d(?:"+[zt,Ut,Dt].join("|")+")"+Kt+$t+")*"),Gt="(?:"+[Lt,Ut,Dt].join("|")+")"+Yt,Jt="(?:"+[zt+Nt+"?",Nt,Ut,Dt,Ot].join("|")+")",Vt=RegExp(xt,"g"),Xt=RegExp(Nt,"g"),Qt=RegExp(Mt+"(?="+Mt+")|"+Jt+Yt,"g"),te=RegExp([Ft+"?"+Bt+"+"+Wt+"(?="+[It,Ft,"$"].join("|")+")",Zt+"+"+Ht+"(?="+[It,Ft+qt,"$"].join("|")+")",Ft+"?"+qt+"+"+Wt,Ft+"+"+Ht,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jt,Gt].join("|"),"g"),ee=RegExp("[\\u200d\\ud800-\\udfff"+Et+Tt+"]"),ne=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,re=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ie=-1,oe={};oe[B]=oe[P]=oe[M]=oe[z]=oe[U]=oe[D]=oe[F]=oe[q]=oe[Z]=!0,oe[_]=oe[y]=oe[j]=oe[m]=oe[L]=oe[w]=oe[b]=oe[k]=oe[S]=oe[A]=oe[C]=oe[R]=oe[x]=oe[O]=oe[N]=!1;var ae={};ae[_]=ae[y]=ae[j]=ae[L]=ae[m]=ae[w]=ae[B]=ae[P]=ae[M]=ae[z]=ae[U]=ae[S]=ae[A]=ae[C]=ae[R]=ae[x]=ae[O]=ae[I]=ae[D]=ae[F]=ae[q]=ae[Z]=!0,ae[b]=ae[k]=ae[N]=!1;var se={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ue=parseFloat,ce=parseInt,le="object"==typeof e&&e&&e.Object===Object&&e,fe="object"==typeof self&&self&&self.Object===Object&&self,he=le||fe||Function("return this")(),de=n&&!n.nodeType&&n,pe=de&&t&&!t.nodeType&&t,ve=pe&&pe.exports===de,ge=ve&&le.process,_e=function(){try{var t=pe&&pe.require&&pe.require("util").types;return t||ge&&ge.binding&&ge.binding("util")}catch(t){}}(),ye=_e&&_e.isArrayBuffer,me=_e&&_e.isDate,we=_e&&_e.isMap,be=_e&&_e.isRegExp,ke=_e&&_e.isSet,Ee=_e&&_e.isTypedArray;function Se(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ae(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function Ce(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Te(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Re(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function xe(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function Oe(t,e){return!!(null==t?0:t.length)&&De(t,e,0)>-1}function Ie(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Ne(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function je(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function Le(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function Be(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function Pe(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var Me=We("length");function ze(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function Ue(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function De(t,e,n){return e==e?function(t,e,n){var r=n-1,i=t.length;for(;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):Ue(t,qe,n)}function Fe(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function qe(t){return t!=t}function Ze(t,e){var n=null==t?0:t.length;return n?Ke(t,e)/n:p}function We(t){return function(e){return null==e?r:e[t]}}function He(t){return function(e){return null==t?r:t[e]}}function $e(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function Ke(t,e){for(var n,i=-1,o=t.length;++i<o;){var a=e(t[i]);a!==r&&(n=n===r?a:n+a)}return n}function Ye(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ge(t){return t?t.slice(0,pn(t)+1).replace(ot,""):t}function Je(t){return function(e){return t(e)}}function Ve(t,e){return Ne(e,(function(e){return t[e]}))}function Xe(t,e){return t.has(e)}function Qe(t,e){for(var n=-1,r=t.length;++n<r&&De(e,t[n],0)>-1;);return n}function tn(t,e){for(var n=t.length;n--&&De(e,t[n],0)>-1;);return n}function en(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var nn=He({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),rn=He({"&":"&","<":"<",">":">",'"':""","'":"'"});function on(t){return"\\"+se[t]}function an(t){return ee.test(t)}function sn(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function un(t,e){return function(n){return t(e(n))}}function cn(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n];s!==e&&s!==a||(t[n]=a,o[i++]=n)}return o}function ln(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function fn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function hn(t){return an(t)?function(t){var e=Qt.lastIndex=0;for(;Qt.test(t);)++e;return e}(t):Me(t)}function dn(t){return an(t)?function(t){return t.match(Qt)||[]}(t):function(t){return t.split("")}(t)}function pn(t){for(var e=t.length;e--&&at.test(t.charAt(e)););return e}var vn=He({"&":"&","<":"<",">":">",""":'"',"'":"'"});var gn=function t(e){var n,at=(e=null==e?he:gn.defaults(he.Object(),e,gn.pick(he,re))).Array,Et=e.Date,St=e.Error,At=e.Function,Ct=e.Math,Tt=e.Object,Rt=e.RegExp,xt=e.String,Ot=e.TypeError,It=at.prototype,Nt=At.prototype,jt=Tt.prototype,Lt=e["__core-js_shared__"],Bt=Nt.toString,Pt=jt.hasOwnProperty,Mt=0,zt=(n=/[^.]+$/.exec(Lt&&Lt.keys&&Lt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ut=jt.toString,Dt=Bt.call(Tt),Ft=he._,qt=Rt("^"+Bt.call(Pt).replace(rt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Zt=ve?e.Buffer:r,Wt=e.Symbol,Ht=e.Uint8Array,$t=Zt?Zt.allocUnsafe:r,Kt=un(Tt.getPrototypeOf,Tt),Yt=Tt.create,Gt=jt.propertyIsEnumerable,Jt=It.splice,Qt=Wt?Wt.isConcatSpreadable:r,ee=Wt?Wt.iterator:r,se=Wt?Wt.toStringTag:r,le=function(){try{var t=po(Tt,"defineProperty");return t({},"",{}),t}catch(t){}}(),fe=e.clearTimeout!==he.clearTimeout&&e.clearTimeout,de=Et&&Et.now!==he.Date.now&&Et.now,pe=e.setTimeout!==he.setTimeout&&e.setTimeout,ge=Ct.ceil,_e=Ct.floor,Me=Tt.getOwnPropertySymbols,He=Zt?Zt.isBuffer:r,_n=e.isFinite,yn=It.join,mn=un(Tt.keys,Tt),wn=Ct.max,bn=Ct.min,kn=Et.now,En=e.parseInt,Sn=Ct.random,An=It.reverse,Cn=po(e,"DataView"),Tn=po(e,"Map"),Rn=po(e,"Promise"),xn=po(e,"Set"),On=po(e,"WeakMap"),In=po(Tt,"create"),Nn=On&&new On,jn={},Ln=Fo(Cn),Bn=Fo(Tn),Pn=Fo(Rn),Mn=Fo(xn),zn=Fo(On),Un=Wt?Wt.prototype:r,Dn=Un?Un.valueOf:r,Fn=Un?Un.toString:r;function qn(t){if(is(t)&&!Ka(t)&&!(t instanceof $n)){if(t instanceof Hn)return t;if(Pt.call(t,"__wrapped__"))return qo(t)}return new Hn(t)}var Zn=function(){function t(){}return function(e){if(!rs(e))return{};if(Yt)return Yt(e);t.prototype=e;var n=new t;return t.prototype=r,n}}();function Wn(){}function Hn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=r}function $n(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function Kn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Yn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Gn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Jn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Gn;++e<n;)this.add(t[e])}function Vn(t){var e=this.__data__=new Yn(t);this.size=e.size}function Xn(t,e){var n=Ka(t),r=!n&&$a(t),i=!n&&!r&&Va(t),o=!n&&!r&&!i&&hs(t),a=n||r||i||o,s=a?Ye(t.length,xt):[],u=s.length;for(var c in t)!e&&!Pt.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||bo(c,u))||s.push(c);return s}function Qn(t){var e=t.length;return e?t[Jr(0,e-1)]:r}function tr(t,e){return zo(Ii(t),cr(e,0,t.length))}function er(t){return zo(Ii(t))}function nr(t,e,n){(n!==r&&!Za(t[e],n)||n===r&&!(e in t))&&sr(t,e,n)}function rr(t,e,n){var i=t[e];Pt.call(t,e)&&Za(i,n)&&(n!==r||e in t)||sr(t,e,n)}function ir(t,e){for(var n=t.length;n--;)if(Za(t[n][0],e))return n;return-1}function or(t,e,n,r){return pr(t,(function(t,i,o){e(r,t,n(t),o)})),r}function ar(t,e){return t&&Ni(e,Ls(e),t)}function sr(t,e,n){"__proto__"==e&&le?le(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ur(t,e){for(var n=-1,i=e.length,o=at(i),a=null==t;++n<i;)o[n]=a?r:xs(t,e[n]);return o}function cr(t,e,n){return t==t&&(n!==r&&(t=t<=n?t:n),e!==r&&(t=t>=e?t:e)),t}function lr(t,e,n,i,o,a){var s,u=1&e,c=2&e,l=4&e;if(n&&(s=o?n(t,i,o,a):n(t)),s!==r)return s;if(!rs(t))return t;var f=Ka(t);if(f){if(s=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&Pt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!u)return Ii(t,s)}else{var h=_o(t),d=h==k||h==E;if(Va(t))return Ai(t,u);if(h==C||h==_||d&&!o){if(s=c||d?{}:mo(t),!u)return c?function(t,e){return Ni(t,go(t),e)}(t,function(t,e){return t&&Ni(e,Bs(e),t)}(s,t)):function(t,e){return Ni(t,vo(t),e)}(t,ar(s,t))}else{if(!ae[h])return o?t:{};s=function(t,e,n){var r=t.constructor;switch(e){case j:return Ci(t);case m:case w:return new r(+t);case L:return function(t,e){var n=e?Ci(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case B:case P:case M:case z:case U:case D:case F:case q:case Z:return Ti(t,n);case S:return new r;case A:case O:return new r(t);case R:return function(t){var e=new t.constructor(t.source,pt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case x:return new r;case I:return i=t,Dn?Tt(Dn.call(i)):{}}var i}(t,h,u)}}a||(a=new Vn);var p=a.get(t);if(p)return p;a.set(t,s),cs(t)?t.forEach((function(r){s.add(lr(r,e,n,r,t,a))})):os(t)&&t.forEach((function(r,i){s.set(i,lr(r,e,n,i,t,a))}));var v=f?r:(l?c?ao:oo:c?Bs:Ls)(t);return Ce(v||t,(function(r,i){v&&(r=t[i=r]),rr(s,i,lr(r,e,n,i,t,a))})),s}function fr(t,e,n){var i=n.length;if(null==t)return!i;for(t=Tt(t);i--;){var o=n[i],a=e[o],s=t[o];if(s===r&&!(o in t)||!a(s))return!1}return!0}function hr(t,e,n){if("function"!=typeof t)throw new Ot(i);return Lo((function(){t.apply(r,n)}),e)}function dr(t,e,n,r){var i=-1,o=Oe,a=!0,s=t.length,u=[],c=e.length;if(!s)return u;n&&(e=Ne(e,Je(n))),r?(o=Ie,a=!1):e.length>=200&&(o=Xe,a=!1,e=new Jn(e));t:for(;++i<s;){var l=t[i],f=null==n?l:n(l);if(l=r||0!==l?l:0,a&&f==f){for(var h=c;h--;)if(e[h]===f)continue t;u.push(l)}else o(e,f,r)||u.push(l)}return u}qn.templateSettings={escape:V,evaluate:X,interpolate:Q,variable:"",imports:{_:qn}},qn.prototype=Wn.prototype,qn.prototype.constructor=qn,Hn.prototype=Zn(Wn.prototype),Hn.prototype.constructor=Hn,$n.prototype=Zn(Wn.prototype),$n.prototype.constructor=$n,Kn.prototype.clear=function(){this.__data__=In?In(null):{},this.size=0},Kn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Kn.prototype.get=function(t){var e=this.__data__;if(In){var n=e[t];return n===o?r:n}return Pt.call(e,t)?e[t]:r},Kn.prototype.has=function(t){var e=this.__data__;return In?e[t]!==r:Pt.call(e,t)},Kn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=In&&e===r?o:e,this},Yn.prototype.clear=function(){this.__data__=[],this.size=0},Yn.prototype.delete=function(t){var e=this.__data__,n=ir(e,t);return!(n<0)&&(n==e.length-1?e.pop():Jt.call(e,n,1),--this.size,!0)},Yn.prototype.get=function(t){var e=this.__data__,n=ir(e,t);return n<0?r:e[n][1]},Yn.prototype.has=function(t){return ir(this.__data__,t)>-1},Yn.prototype.set=function(t,e){var n=this.__data__,r=ir(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new Kn,map:new(Tn||Yn),string:new Kn}},Gn.prototype.delete=function(t){var e=fo(this,t).delete(t);return this.size-=e?1:0,e},Gn.prototype.get=function(t){return fo(this,t).get(t)},Gn.prototype.has=function(t){return fo(this,t).has(t)},Gn.prototype.set=function(t,e){var n=fo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Jn.prototype.add=Jn.prototype.push=function(t){return this.__data__.set(t,o),this},Jn.prototype.has=function(t){return this.__data__.has(t)},Vn.prototype.clear=function(){this.__data__=new Yn,this.size=0},Vn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Vn.prototype.get=function(t){return this.__data__.get(t)},Vn.prototype.has=function(t){return this.__data__.has(t)},Vn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Yn){var r=n.__data__;if(!Tn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Gn(r)}return n.set(t,e),this.size=n.size,this};var pr=Bi(kr),vr=Bi(Er,!0);function gr(t,e){var n=!0;return pr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function _r(t,e,n){for(var i=-1,o=t.length;++i<o;){var a=t[i],s=e(a);if(null!=s&&(u===r?s==s&&!fs(s):n(s,u)))var u=s,c=a}return c}function yr(t,e){var n=[];return pr(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function mr(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=wo),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?mr(s,e-1,n,r,i):je(i,s):r||(i[i.length]=s)}return i}var wr=Pi(),br=Pi(!0);function kr(t,e){return t&&wr(t,e,Ls)}function Er(t,e){return t&&br(t,e,Ls)}function Sr(t,e){return xe(e,(function(e){return ts(t[e])}))}function Ar(t,e){for(var n=0,i=(e=bi(e,t)).length;null!=t&&n<i;)t=t[Do(e[n++])];return n&&n==i?t:r}function Cr(t,e,n){var r=e(t);return Ka(t)?r:je(r,n(t))}function Tr(t){return null==t?t===r?"[object Undefined]":"[object Null]":se&&se in Tt(t)?function(t){var e=Pt.call(t,se),n=t[se];try{t[se]=r;var i=!0}catch(t){}var o=Ut.call(t);i&&(e?t[se]=n:delete t[se]);return o}(t):function(t){return Ut.call(t)}(t)}function Rr(t,e){return t>e}function xr(t,e){return null!=t&&Pt.call(t,e)}function Or(t,e){return null!=t&&e in Tt(t)}function Ir(t,e,n){for(var i=n?Ie:Oe,o=t[0].length,a=t.length,s=a,u=at(a),c=1/0,l=[];s--;){var f=t[s];s&&e&&(f=Ne(f,Je(e))),c=bn(f.length,c),u[s]=!n&&(e||o>=120&&f.length>=120)?new Jn(s&&f):r}f=t[0];var h=-1,d=u[0];t:for(;++h<o&&l.length<c;){var p=f[h],v=e?e(p):p;if(p=n||0!==p?p:0,!(d?Xe(d,v):i(l,v,n))){for(s=a;--s;){var g=u[s];if(!(g?Xe(g,v):i(t[s],v,n)))continue t}d&&d.push(v),l.push(p)}}return l}function Nr(t,e,n){var i=null==(t=Oo(t,e=bi(e,t)))?t:t[Do(Qo(e))];return null==i?r:Se(i,t,n)}function jr(t){return is(t)&&Tr(t)==_}function Lr(t,e,n,i,o){return t===e||(null==t||null==e||!is(t)&&!is(e)?t!=t&&e!=e:function(t,e,n,i,o,a){var s=Ka(t),u=Ka(e),c=s?y:_o(t),l=u?y:_o(e),f=(c=c==_?C:c)==C,h=(l=l==_?C:l)==C,d=c==l;if(d&&Va(t)){if(!Va(e))return!1;s=!0,f=!1}if(d&&!f)return a||(a=new Vn),s||hs(t)?ro(t,e,n,i,o,a):function(t,e,n,r,i,o,a){switch(n){case L:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case j:return!(t.byteLength!=e.byteLength||!o(new Ht(t),new Ht(e)));case m:case w:case A:return Za(+t,+e);case b:return t.name==e.name&&t.message==e.message;case R:case O:return t==e+"";case S:var s=sn;case x:var u=1&r;if(s||(s=ln),t.size!=e.size&&!u)return!1;var c=a.get(t);if(c)return c==e;r|=2,a.set(t,e);var l=ro(s(t),s(e),r,i,o,a);return a.delete(t),l;case I:if(Dn)return Dn.call(t)==Dn.call(e)}return!1}(t,e,c,n,i,o,a);if(!(1&n)){var p=f&&Pt.call(t,"__wrapped__"),v=h&&Pt.call(e,"__wrapped__");if(p||v){var g=p?t.value():t,k=v?e.value():e;return a||(a=new Vn),o(g,k,n,i,a)}}if(!d)return!1;return a||(a=new Vn),function(t,e,n,i,o,a){var s=1&n,u=oo(t),c=u.length,l=oo(e).length;if(c!=l&&!s)return!1;var f=c;for(;f--;){var h=u[f];if(!(s?h in e:Pt.call(e,h)))return!1}var d=a.get(t),p=a.get(e);if(d&&p)return d==e&&p==t;var v=!0;a.set(t,e),a.set(e,t);var g=s;for(;++f<c;){var _=t[h=u[f]],y=e[h];if(i)var m=s?i(y,_,h,e,t,a):i(_,y,h,t,e,a);if(!(m===r?_===y||o(_,y,n,i,a):m)){v=!1;break}g||(g="constructor"==h)}if(v&&!g){var w=t.constructor,b=e.constructor;w==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof b&&b instanceof b||(v=!1)}return a.delete(t),a.delete(e),v}(t,e,n,i,o,a)}(t,e,n,i,Lr,o))}function Br(t,e,n,i){var o=n.length,a=o,s=!i;if(null==t)return!a;for(t=Tt(t);o--;){var u=n[o];if(s&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++o<a;){var c=(u=n[o])[0],l=t[c],f=u[1];if(s&&u[2]){if(l===r&&!(c in t))return!1}else{var h=new Vn;if(i)var d=i(l,f,c,t,e,h);if(!(d===r?Lr(f,l,3,i,h):d))return!1}}return!0}function Pr(t){return!(!rs(t)||(e=t,zt&&zt in e))&&(ts(t)?qt:_t).test(Fo(t));var e}function Mr(t){return"function"==typeof t?t:null==t?au:"object"==typeof t?Ka(t)?Zr(t[0],t[1]):qr(t):vu(t)}function zr(t){if(!Co(t))return mn(t);var e=[];for(var n in Tt(t))Pt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Ur(t){if(!rs(t))return function(t){var e=[];if(null!=t)for(var n in Tt(t))e.push(n);return e}(t);var e=Co(t),n=[];for(var r in t)("constructor"!=r||!e&&Pt.call(t,r))&&n.push(r);return n}function Dr(t,e){return t<e}function Fr(t,e){var n=-1,r=Ga(t)?at(t.length):[];return pr(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}function qr(t){var e=ho(t);return 1==e.length&&e[0][2]?Ro(e[0][0],e[0][1]):function(n){return n===t||Br(n,t,e)}}function Zr(t,e){return Eo(t)&&To(e)?Ro(Do(t),e):function(n){var i=xs(n,t);return i===r&&i===e?Os(n,t):Lr(e,i,3)}}function Wr(t,e,n,i,o){t!==e&&wr(e,(function(a,s){if(o||(o=new Vn),rs(a))!function(t,e,n,i,o,a,s){var u=No(t,n),c=No(e,n),l=s.get(c);if(l)return void nr(t,n,l);var f=a?a(u,c,n+"",t,e,s):r,h=f===r;if(h){var d=Ka(c),p=!d&&Va(c),v=!d&&!p&&hs(c);f=c,d||p||v?Ka(u)?f=u:Ja(u)?f=Ii(u):p?(h=!1,f=Ai(c,!0)):v?(h=!1,f=Ti(c,!0)):f=[]:ss(c)||$a(c)?(f=u,$a(u)?f=ws(u):rs(u)&&!ts(u)||(f=mo(c))):h=!1}h&&(s.set(c,f),o(f,c,i,a,s),s.delete(c));nr(t,n,f)}(t,e,s,n,Wr,i,o);else{var u=i?i(No(t,s),a,s+"",t,e,o):r;u===r&&(u=a),nr(t,s,u)}}),Bs)}function Hr(t,e){var n=t.length;if(n)return bo(e+=e<0?n:0,n)?t[e]:r}function $r(t,e,n){e=e.length?Ne(e,(function(t){return Ka(t)?function(e){return Ar(e,1===t.length?t[0]:t)}:t})):[au];var r=-1;return e=Ne(e,Je(lo())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(Fr(t,(function(t,n,i){return{criteria:Ne(e,(function(e){return e(t)})),index:++r,value:t}})),(function(t,e){return function(t,e,n){var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;for(;++r<a;){var u=Ri(i[r],o[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function Kr(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=Ar(t,a);n(s,a)&&ei(o,bi(a,t),s)}return o}function Yr(t,e,n,r){var i=r?Fe:De,o=-1,a=e.length,s=t;for(t===e&&(e=Ii(e)),n&&(s=Ne(t,Je(n)));++o<a;)for(var u=0,c=e[o],l=n?n(c):c;(u=i(s,l,u,r))>-1;)s!==t&&Jt.call(s,u,1),Jt.call(t,u,1);return t}function Gr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;bo(i)?Jt.call(t,i,1):di(t,i)}}return t}function Jr(t,e){return t+_e(Sn()*(e-t+1))}function Vr(t,e){var n="";if(!t||e<1||e>d)return n;do{e%2&&(n+=t),(e=_e(e/2))&&(t+=t)}while(e);return n}function Xr(t,e){return Bo(xo(t,e,au),t+"")}function Qr(t){return Qn(Zs(t))}function ti(t,e){var n=Zs(t);return zo(n,cr(e,0,n.length))}function ei(t,e,n,i){if(!rs(t))return t;for(var o=-1,a=(e=bi(e,t)).length,s=a-1,u=t;null!=u&&++o<a;){var c=Do(e[o]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(o!=s){var f=u[c];(l=i?i(f,c,u):r)===r&&(l=rs(f)?f:bo(e[o+1])?[]:{})}rr(u,c,l),u=u[c]}return t}var ni=Nn?function(t,e){return Nn.set(t,e),t}:au,ri=le?function(t,e){return le(t,"toString",{configurable:!0,enumerable:!1,value:ru(e),writable:!0})}:au;function ii(t){return zo(Zs(t))}function oi(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=at(i);++r<i;)o[r]=t[r+e];return o}function ai(t,e){var n;return pr(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function si(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!fs(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return ui(t,e,au,n)}function ui(t,e,n,i){var o=0,a=null==t?0:t.length;if(0===a)return 0;for(var s=(e=n(e))!=e,u=null===e,c=fs(e),l=e===r;o<a;){var f=_e((o+a)/2),h=n(t[f]),d=h!==r,p=null===h,v=h==h,g=fs(h);if(s)var _=i||v;else _=l?v&&(i||d):u?v&&d&&(i||!p):c?v&&d&&!p&&(i||!g):!p&&!g&&(i?h<=e:h<e);_?o=f+1:a=f}return bn(a,4294967294)}function ci(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n],s=e?e(a):a;if(!n||!Za(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function li(t){return"number"==typeof t?t:fs(t)?p:+t}function fi(t){if("string"==typeof t)return t;if(Ka(t))return Ne(t,fi)+"";if(fs(t))return Fn?Fn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function hi(t,e,n){var r=-1,i=Oe,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=Ie;else if(o>=200){var c=e?null:Vi(t);if(c)return ln(c);a=!1,i=Xe,u=new Jn}else u=e?[]:s;t:for(;++r<o;){var l=t[r],f=e?e(l):l;if(l=n||0!==l?l:0,a&&f==f){for(var h=u.length;h--;)if(u[h]===f)continue t;e&&u.push(f),s.push(l)}else i(u,f,n)||(u!==s&&u.push(f),s.push(l))}return s}function di(t,e){return null==(t=Oo(t,e=bi(e,t)))||delete t[Do(Qo(e))]}function pi(t,e,n,r){return ei(t,e,n(Ar(t,e)),r)}function vi(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?oi(t,r?0:o,r?o+1:i):oi(t,r?o+1:0,r?i:o)}function gi(t,e){var n=t;return n instanceof $n&&(n=n.value()),Le(e,(function(t,e){return e.func.apply(e.thisArg,je([t],e.args))}),n)}function _i(t,e,n){var r=t.length;if(r<2)return r?hi(t[0]):[];for(var i=-1,o=at(r);++i<r;)for(var a=t[i],s=-1;++s<r;)s!=i&&(o[i]=dr(o[i]||a,t[s],e,n));return hi(mr(o,1),e,n)}function yi(t,e,n){for(var i=-1,o=t.length,a=e.length,s={};++i<o;){var u=i<a?e[i]:r;n(s,t[i],u)}return s}function mi(t){return Ja(t)?t:[]}function wi(t){return"function"==typeof t?t:au}function bi(t,e){return Ka(t)?t:Eo(t,e)?[t]:Uo(bs(t))}var ki=Xr;function Ei(t,e,n){var i=t.length;return n=n===r?i:n,!e&&n>=i?t:oi(t,e,n)}var Si=fe||function(t){return he.clearTimeout(t)};function Ai(t,e){if(e)return t.slice();var n=t.length,r=$t?$t(n):new t.constructor(n);return t.copy(r),r}function Ci(t){var e=new t.constructor(t.byteLength);return new Ht(e).set(new Ht(t)),e}function Ti(t,e){var n=e?Ci(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ri(t,e){if(t!==e){var n=t!==r,i=null===t,o=t==t,a=fs(t),s=e!==r,u=null===e,c=e==e,l=fs(e);if(!u&&!l&&!a&&t>e||a&&s&&c&&!u&&!l||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!l&&t<e||l&&n&&o&&!i&&!a||u&&n&&o||!s&&o||!c)return-1}return 0}function xi(t,e,n,r){for(var i=-1,o=t.length,a=n.length,s=-1,u=e.length,c=wn(o-a,0),l=at(u+c),f=!r;++s<u;)l[s]=e[s];for(;++i<a;)(f||i<o)&&(l[n[i]]=t[i]);for(;c--;)l[s++]=t[i++];return l}function Oi(t,e,n,r){for(var i=-1,o=t.length,a=-1,s=n.length,u=-1,c=e.length,l=wn(o-s,0),f=at(l+c),h=!r;++i<l;)f[i]=t[i];for(var d=i;++u<c;)f[d+u]=e[u];for(;++a<s;)(h||i<o)&&(f[d+n[a]]=t[i++]);return f}function Ii(t,e){var n=-1,r=t.length;for(e||(e=at(r));++n<r;)e[n]=t[n];return e}function Ni(t,e,n,i){var o=!n;n||(n={});for(var a=-1,s=e.length;++a<s;){var u=e[a],c=i?i(n[u],t[u],u,n,t):r;c===r&&(c=t[u]),o?sr(n,u,c):rr(n,u,c)}return n}function ji(t,e){return function(n,r){var i=Ka(n)?Ae:or,o=e?e():{};return i(n,t,lo(r,2),o)}}function Li(t){return Xr((function(e,n){var i=-1,o=n.length,a=o>1?n[o-1]:r,s=o>2?n[2]:r;for(a=t.length>3&&"function"==typeof a?(o--,a):r,s&&ko(n[0],n[1],s)&&(a=o<3?r:a,o=1),e=Tt(e);++i<o;){var u=n[i];u&&t(e,u,i,a)}return e}))}function Bi(t,e){return function(n,r){if(null==n)return n;if(!Ga(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=Tt(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Pi(t){return function(e,n,r){for(var i=-1,o=Tt(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}function Mi(t){return function(e){var n=an(e=bs(e))?dn(e):r,i=n?n[0]:e.charAt(0),o=n?Ei(n,1).join(""):e.slice(1);return i[t]()+o}}function zi(t){return function(e){return Le(tu($s(e).replace(Vt,"")),t,"")}}function Ui(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Zn(t.prototype),r=t.apply(n,e);return rs(r)?r:n}}function Di(t){return function(e,n,i){var o=Tt(e);if(!Ga(e)){var a=lo(n,3);e=Ls(e),n=function(t){return a(o[t],t,o)}}var s=t(e,n,i);return s>-1?o[a?e[s]:s]:r}}function Fi(t){return io((function(e){var n=e.length,o=n,a=Hn.prototype.thru;for(t&&e.reverse();o--;){var s=e[o];if("function"!=typeof s)throw new Ot(i);if(a&&!u&&"wrapper"==uo(s))var u=new Hn([],!0)}for(o=u?o:n;++o<n;){var c=uo(s=e[o]),l="wrapper"==c?so(s):r;u=l&&So(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[uo(l[0])].apply(u,l[3]):1==s.length&&So(s)?u[c]():u.thru(s)}return function(){var t=arguments,r=t[0];if(u&&1==t.length&&Ka(r))return u.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}}))}function qi(t,e,n,i,o,a,s,u,c,f){var h=e&l,d=1&e,p=2&e,v=24&e,g=512&e,_=p?r:Ui(t);return function r(){for(var l=arguments.length,y=at(l),m=l;m--;)y[m]=arguments[m];if(v)var w=co(r),b=en(y,w);if(i&&(y=xi(y,i,o,v)),a&&(y=Oi(y,a,s,v)),l-=b,v&&l<f){var k=cn(y,w);return Gi(t,e,qi,r.placeholder,n,y,k,u,c,f-l)}var E=d?n:this,S=p?E[t]:t;return l=y.length,u?y=Io(y,u):g&&l>1&&y.reverse(),h&&c<l&&(y.length=c),this&&this!==he&&this instanceof r&&(S=_||Ui(S)),S.apply(E,y)}}function Zi(t,e){return function(n,r){return function(t,e,n,r){return kr(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}function Wi(t,e){return function(n,i){var o;if(n===r&&i===r)return e;if(n!==r&&(o=n),i!==r){if(o===r)return i;"string"==typeof n||"string"==typeof i?(n=fi(n),i=fi(i)):(n=li(n),i=li(i)),o=t(n,i)}return o}}function Hi(t){return io((function(e){return e=Ne(e,Je(lo())),Xr((function(n){var r=this;return t(e,(function(t){return Se(t,r,n)}))}))}))}function $i(t,e){var n=(e=e===r?" ":fi(e)).length;if(n<2)return n?Vr(e,t):e;var i=Vr(e,ge(t/hn(e)));return an(e)?Ei(dn(i),0,t).join(""):i.slice(0,t)}function Ki(t){return function(e,n,i){return i&&"number"!=typeof i&&ko(e,n,i)&&(n=i=r),e=gs(e),n===r?(n=e,e=0):n=gs(n),function(t,e,n,r){for(var i=-1,o=wn(ge((e-t)/(n||1)),0),a=at(o);o--;)a[r?o:++i]=t,t+=n;return a}(e,n,i=i===r?e<n?1:-1:gs(i),t)}}function Yi(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ms(e),n=ms(n)),t(e,n)}}function Gi(t,e,n,i,o,a,s,l,f,h){var d=8&e;e|=d?u:c,4&(e&=~(d?c:u))||(e&=-4);var p=[t,e,o,d?a:r,d?s:r,d?r:a,d?r:s,l,f,h],v=n.apply(r,p);return So(t)&&jo(v,p),v.placeholder=i,Po(v,t,e)}function Ji(t){var e=Ct[t];return function(t,n){if(t=ms(t),(n=null==n?0:bn(_s(n),292))&&_n(t)){var r=(bs(t)+"e").split("e");return+((r=(bs(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Vi=xn&&1/ln(new xn([,-0]))[1]==h?function(t){return new xn(t)}:fu;function Xi(t){return function(e){var n=_o(e);return n==S?sn(e):n==x?fn(e):function(t,e){return Ne(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Qi(t,e,n,o,h,d,p,v){var g=2&e;if(!g&&"function"!=typeof t)throw new Ot(i);var _=o?o.length:0;if(_||(e&=-97,o=h=r),p=p===r?p:wn(_s(p),0),v=v===r?v:_s(v),_-=h?h.length:0,e&c){var y=o,m=h;o=h=r}var w=g?r:so(t),b=[t,e,n,o,h,y,m,d,p,v];if(w&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,s=r==l&&8==n||r==l&&n==f&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!o&&!s)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var u=e[3];if(u){var c=t[3];t[3]=c?xi(c,u,e[4]):u,t[4]=c?cn(t[3],a):e[4]}(u=e[5])&&(c=t[5],t[5]=c?Oi(c,u,e[6]):u,t[6]=c?cn(t[5],a):e[6]);(u=e[7])&&(t[7]=u);r&l&&(t[8]=null==t[8]?e[8]:bn(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=i}(b,w),t=b[0],e=b[1],n=b[2],o=b[3],h=b[4],!(v=b[9]=b[9]===r?g?0:t.length:wn(b[9]-_,0))&&24&e&&(e&=-25),e&&1!=e)k=8==e||e==s?function(t,e,n){var i=Ui(t);return function o(){for(var a=arguments.length,s=at(a),u=a,c=co(o);u--;)s[u]=arguments[u];var l=a<3&&s[0]!==c&&s[a-1]!==c?[]:cn(s,c);return(a-=l.length)<n?Gi(t,e,qi,o.placeholder,r,s,l,r,r,n-a):Se(this&&this!==he&&this instanceof o?i:t,this,s)}}(t,e,v):e!=u&&33!=e||h.length?qi.apply(r,b):function(t,e,n,r){var i=1&e,o=Ui(t);return function e(){for(var a=-1,s=arguments.length,u=-1,c=r.length,l=at(c+s),f=this&&this!==he&&this instanceof e?o:t;++u<c;)l[u]=r[u];for(;s--;)l[u++]=arguments[++a];return Se(f,i?n:this,l)}}(t,e,n,o);else var k=function(t,e,n){var r=1&e,i=Ui(t);return function e(){return(this&&this!==he&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,n);return Po((w?ni:jo)(k,b),t,e)}function to(t,e,n,i){return t===r||Za(t,jt[n])&&!Pt.call(i,n)?e:t}function eo(t,e,n,i,o,a){return rs(t)&&rs(e)&&(a.set(e,t),Wr(t,e,r,eo,a),a.delete(e)),t}function no(t){return ss(t)?r:t}function ro(t,e,n,i,o,a){var s=1&n,u=t.length,c=e.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(t),f=a.get(e);if(l&&f)return l==e&&f==t;var h=-1,d=!0,p=2&n?new Jn:r;for(a.set(t,e),a.set(e,t);++h<u;){var v=t[h],g=e[h];if(i)var _=s?i(g,v,h,e,t,a):i(v,g,h,t,e,a);if(_!==r){if(_)continue;d=!1;break}if(p){if(!Pe(e,(function(t,e){if(!Xe(p,e)&&(v===t||o(v,t,n,i,a)))return p.push(e)}))){d=!1;break}}else if(v!==g&&!o(v,g,n,i,a)){d=!1;break}}return a.delete(t),a.delete(e),d}function io(t){return Bo(xo(t,r,Yo),t+"")}function oo(t){return Cr(t,Ls,vo)}function ao(t){return Cr(t,Bs,go)}var so=Nn?function(t){return Nn.get(t)}:fu;function uo(t){for(var e=t.name+"",n=jn[e],r=Pt.call(jn,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function co(t){return(Pt.call(qn,"placeholder")?qn:t).placeholder}function lo(){var t=qn.iteratee||su;return t=t===su?Mr:t,arguments.length?t(arguments[0],arguments[1]):t}function fo(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function ho(t){for(var e=Ls(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,To(i)]}return e}function po(t,e){var n=function(t,e){return null==t?r:t[e]}(t,e);return Pr(n)?n:r}var vo=Me?function(t){return null==t?[]:(t=Tt(t),xe(Me(t),(function(e){return Gt.call(t,e)})))}:yu,go=Me?function(t){for(var e=[];t;)je(e,vo(t)),t=Kt(t);return e}:yu,_o=Tr;function yo(t,e,n){for(var r=-1,i=(e=bi(e,t)).length,o=!1;++r<i;){var a=Do(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&ns(i)&&bo(a,i)&&(Ka(t)||$a(t))}function mo(t){return"function"!=typeof t.constructor||Co(t)?{}:Zn(Kt(t))}function wo(t){return Ka(t)||$a(t)||!!(Qt&&t&&t[Qt])}function bo(t,e){var n=typeof t;return!!(e=null==e?d:e)&&("number"==n||"symbol"!=n&&mt.test(t))&&t>-1&&t%1==0&&t<e}function ko(t,e,n){if(!rs(n))return!1;var r=typeof e;return!!("number"==r?Ga(n)&&bo(e,n.length):"string"==r&&e in n)&&Za(n[e],t)}function Eo(t,e){if(Ka(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!fs(t))||(et.test(t)||!tt.test(t)||null!=e&&t in Tt(e))}function So(t){var e=uo(t),n=qn[e];if("function"!=typeof n||!(e in $n.prototype))return!1;if(t===n)return!0;var r=so(n);return!!r&&t===r[0]}(Cn&&_o(new Cn(new ArrayBuffer(1)))!=L||Tn&&_o(new Tn)!=S||Rn&&_o(Rn.resolve())!=T||xn&&_o(new xn)!=x||On&&_o(new On)!=N)&&(_o=function(t){var e=Tr(t),n=e==C?t.constructor:r,i=n?Fo(n):"";if(i)switch(i){case Ln:return L;case Bn:return S;case Pn:return T;case Mn:return x;case zn:return N}return e});var Ao=Lt?ts:mu;function Co(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||jt)}function To(t){return t==t&&!rs(t)}function Ro(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==r||t in Tt(n)))}}function xo(t,e,n){return e=wn(e===r?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=wn(r.length-e,0),a=at(o);++i<o;)a[i]=r[e+i];i=-1;for(var s=at(e+1);++i<e;)s[i]=r[i];return s[e]=n(a),Se(t,this,s)}}function Oo(t,e){return e.length<2?t:Ar(t,oi(e,0,-1))}function Io(t,e){for(var n=t.length,i=bn(e.length,n),o=Ii(t);i--;){var a=e[i];t[i]=bo(a,n)?o[a]:r}return t}function No(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var jo=Mo(ni),Lo=pe||function(t,e){return he.setTimeout(t,e)},Bo=Mo(ri);function Po(t,e,n){var r=e+"";return Bo(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(st,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Ce(g,(function(n){var r="_."+n[0];e&n[1]&&!Oe(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(ut);return e?e[1].split(ct):[]}(r),n)))}function Mo(t){var e=0,n=0;return function(){var i=kn(),o=16-(i-n);if(n=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(r,arguments)}}function zo(t,e){var n=-1,i=t.length,o=i-1;for(e=e===r?i:e;++n<e;){var a=Jr(n,o),s=t[a];t[a]=t[n],t[n]=s}return t.length=e,t}var Uo=function(t){var e=Ma(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(nt,(function(t,n,r,i){e.push(r?i.replace(ht,"$1"):n||t)})),e}));function Do(t){if("string"==typeof t||fs(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Fo(t){if(null!=t){try{return Bt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function qo(t){if(t instanceof $n)return t.clone();var e=new Hn(t.__wrapped__,t.__chain__);return e.__actions__=Ii(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Zo=Xr((function(t,e){return Ja(t)?dr(t,mr(e,1,Ja,!0)):[]})),Wo=Xr((function(t,e){var n=Qo(e);return Ja(n)&&(n=r),Ja(t)?dr(t,mr(e,1,Ja,!0),lo(n,2)):[]})),Ho=Xr((function(t,e){var n=Qo(e);return Ja(n)&&(n=r),Ja(t)?dr(t,mr(e,1,Ja,!0),r,n):[]}));function $o(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:_s(n);return i<0&&(i=wn(r+i,0)),Ue(t,lo(e,3),i)}function Ko(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=i-1;return n!==r&&(o=_s(n),o=n<0?wn(i+o,0):bn(o,i-1)),Ue(t,lo(e,3),o,!0)}function Yo(t){return(null==t?0:t.length)?mr(t,1):[]}function Go(t){return t&&t.length?t[0]:r}var Jo=Xr((function(t){var e=Ne(t,mi);return e.length&&e[0]===t[0]?Ir(e):[]})),Vo=Xr((function(t){var e=Qo(t),n=Ne(t,mi);return e===Qo(n)?e=r:n.pop(),n.length&&n[0]===t[0]?Ir(n,lo(e,2)):[]})),Xo=Xr((function(t){var e=Qo(t),n=Ne(t,mi);return(e="function"==typeof e?e:r)&&n.pop(),n.length&&n[0]===t[0]?Ir(n,r,e):[]}));function Qo(t){var e=null==t?0:t.length;return e?t[e-1]:r}var ta=Xr(ea);function ea(t,e){return t&&t.length&&e&&e.length?Yr(t,e):t}var na=io((function(t,e){var n=null==t?0:t.length,r=ur(t,e);return Gr(t,Ne(e,(function(t){return bo(t,n)?+t:t})).sort(Ri)),r}));function ra(t){return null==t?t:An.call(t)}var ia=Xr((function(t){return hi(mr(t,1,Ja,!0))})),oa=Xr((function(t){var e=Qo(t);return Ja(e)&&(e=r),hi(mr(t,1,Ja,!0),lo(e,2))})),aa=Xr((function(t){var e=Qo(t);return e="function"==typeof e?e:r,hi(mr(t,1,Ja,!0),r,e)}));function sa(t){if(!t||!t.length)return[];var e=0;return t=xe(t,(function(t){if(Ja(t))return e=wn(t.length,e),!0})),Ye(e,(function(e){return Ne(t,We(e))}))}function ua(t,e){if(!t||!t.length)return[];var n=sa(t);return null==e?n:Ne(n,(function(t){return Se(e,r,t)}))}var ca=Xr((function(t,e){return Ja(t)?dr(t,e):[]})),la=Xr((function(t){return _i(xe(t,Ja))})),fa=Xr((function(t){var e=Qo(t);return Ja(e)&&(e=r),_i(xe(t,Ja),lo(e,2))})),ha=Xr((function(t){var e=Qo(t);return e="function"==typeof e?e:r,_i(xe(t,Ja),r,e)})),da=Xr(sa);var pa=Xr((function(t){var e=t.length,n=e>1?t[e-1]:r;return n="function"==typeof n?(t.pop(),n):r,ua(t,n)}));function va(t){var e=qn(t);return e.__chain__=!0,e}function ga(t,e){return e(t)}var _a=io((function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,o=function(e){return ur(e,t)};return!(e>1||this.__actions__.length)&&i instanceof $n&&bo(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:ga,args:[o],thisArg:r}),new Hn(i,this.__chain__).thru((function(t){return e&&!t.length&&t.push(r),t}))):this.thru(o)}));var ya=ji((function(t,e,n){Pt.call(t,n)?++t[n]:sr(t,n,1)}));var ma=Di($o),wa=Di(Ko);function ba(t,e){return(Ka(t)?Ce:pr)(t,lo(e,3))}function ka(t,e){return(Ka(t)?Te:vr)(t,lo(e,3))}var Ea=ji((function(t,e,n){Pt.call(t,n)?t[n].push(e):sr(t,n,[e])}));var Sa=Xr((function(t,e,n){var r=-1,i="function"==typeof e,o=Ga(t)?at(t.length):[];return pr(t,(function(t){o[++r]=i?Se(e,t,n):Nr(t,e,n)})),o})),Aa=ji((function(t,e,n){sr(t,n,e)}));function Ca(t,e){return(Ka(t)?Ne:Fr)(t,lo(e,3))}var Ta=ji((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var Ra=Xr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&ko(t,e[0],e[1])?e=[]:n>2&&ko(e[0],e[1],e[2])&&(e=[e[0]]),$r(t,mr(e,1),[])})),xa=de||function(){return he.Date.now()};function Oa(t,e,n){return e=n?r:e,e=t&&null==e?t.length:e,Qi(t,l,r,r,r,r,e)}function Ia(t,e){var n;if("function"!=typeof e)throw new Ot(i);return t=_s(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=r),n}}var Na=Xr((function(t,e,n){var r=1;if(n.length){var i=cn(n,co(Na));r|=u}return Qi(t,r,e,n,i)})),ja=Xr((function(t,e,n){var r=3;if(n.length){var i=cn(n,co(ja));r|=u}return Qi(e,r,t,n,i)}));function La(t,e,n){var o,a,s,u,c,l,f=0,h=!1,d=!1,p=!0;if("function"!=typeof t)throw new Ot(i);function v(e){var n=o,i=a;return o=a=r,f=e,u=t.apply(i,n)}function g(t){return f=t,c=Lo(y,e),h?v(t):u}function _(t){var n=t-l;return l===r||n>=e||n<0||d&&t-f>=s}function y(){var t=xa();if(_(t))return m(t);c=Lo(y,function(t){var n=e-(t-l);return d?bn(n,s-(t-f)):n}(t))}function m(t){return c=r,p&&o?v(t):(o=a=r,u)}function w(){var t=xa(),n=_(t);if(o=arguments,a=this,l=t,n){if(c===r)return g(l);if(d)return Si(c),c=Lo(y,e),v(l)}return c===r&&(c=Lo(y,e)),u}return e=ms(e)||0,rs(n)&&(h=!!n.leading,s=(d="maxWait"in n)?wn(ms(n.maxWait)||0,e):s,p="trailing"in n?!!n.trailing:p),w.cancel=function(){c!==r&&Si(c),f=0,o=l=a=c=r},w.flush=function(){return c===r?u:m(xa())},w}var Ba=Xr((function(t,e){return hr(t,1,e)})),Pa=Xr((function(t,e,n){return hr(t,ms(e)||0,n)}));function Ma(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Ot(i);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ma.Cache||Gn),n}function za(t){if("function"!=typeof t)throw new Ot(i);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ma.Cache=Gn;var Ua=ki((function(t,e){var n=(e=1==e.length&&Ka(e[0])?Ne(e[0],Je(lo())):Ne(mr(e,1),Je(lo()))).length;return Xr((function(r){for(var i=-1,o=bn(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return Se(t,this,r)}))})),Da=Xr((function(t,e){var n=cn(e,co(Da));return Qi(t,u,r,e,n)})),Fa=Xr((function(t,e){var n=cn(e,co(Fa));return Qi(t,c,r,e,n)})),qa=io((function(t,e){return Qi(t,f,r,r,r,e)}));function Za(t,e){return t===e||t!=t&&e!=e}var Wa=Yi(Rr),Ha=Yi((function(t,e){return t>=e})),$a=jr(function(){return arguments}())?jr:function(t){return is(t)&&Pt.call(t,"callee")&&!Gt.call(t,"callee")},Ka=at.isArray,Ya=ye?Je(ye):function(t){return is(t)&&Tr(t)==j};function Ga(t){return null!=t&&ns(t.length)&&!ts(t)}function Ja(t){return is(t)&&Ga(t)}var Va=He||mu,Xa=me?Je(me):function(t){return is(t)&&Tr(t)==w};function Qa(t){if(!is(t))return!1;var e=Tr(t);return e==b||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ss(t)}function ts(t){if(!rs(t))return!1;var e=Tr(t);return e==k||e==E||"[object AsyncFunction]"==e||"[object Proxy]"==e}function es(t){return"number"==typeof t&&t==_s(t)}function ns(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=d}function rs(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function is(t){return null!=t&&"object"==typeof t}var os=we?Je(we):function(t){return is(t)&&_o(t)==S};function as(t){return"number"==typeof t||is(t)&&Tr(t)==A}function ss(t){if(!is(t)||Tr(t)!=C)return!1;var e=Kt(t);if(null===e)return!0;var n=Pt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Bt.call(n)==Dt}var us=be?Je(be):function(t){return is(t)&&Tr(t)==R};var cs=ke?Je(ke):function(t){return is(t)&&_o(t)==x};function ls(t){return"string"==typeof t||!Ka(t)&&is(t)&&Tr(t)==O}function fs(t){return"symbol"==typeof t||is(t)&&Tr(t)==I}var hs=Ee?Je(Ee):function(t){return is(t)&&ns(t.length)&&!!oe[Tr(t)]};var ds=Yi(Dr),ps=Yi((function(t,e){return t<=e}));function vs(t){if(!t)return[];if(Ga(t))return ls(t)?dn(t):Ii(t);if(ee&&t[ee])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[ee]());var e=_o(t);return(e==S?sn:e==x?ln:Zs)(t)}function gs(t){return t?(t=ms(t))===h||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function _s(t){var e=gs(t),n=e%1;return e==e?n?e-n:e:0}function ys(t){return t?cr(_s(t),0,v):0}function ms(t){if("number"==typeof t)return t;if(fs(t))return p;if(rs(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=rs(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ge(t);var n=gt.test(t);return n||yt.test(t)?ce(t.slice(2),n?2:8):vt.test(t)?p:+t}function ws(t){return Ni(t,Bs(t))}function bs(t){return null==t?"":fi(t)}var ks=Li((function(t,e){if(Co(e)||Ga(e))Ni(e,Ls(e),t);else for(var n in e)Pt.call(e,n)&&rr(t,n,e[n])})),Es=Li((function(t,e){Ni(e,Bs(e),t)})),Ss=Li((function(t,e,n,r){Ni(e,Bs(e),t,r)})),As=Li((function(t,e,n,r){Ni(e,Ls(e),t,r)})),Cs=io(ur);var Ts=Xr((function(t,e){t=Tt(t);var n=-1,i=e.length,o=i>2?e[2]:r;for(o&&ko(e[0],e[1],o)&&(i=1);++n<i;)for(var a=e[n],s=Bs(a),u=-1,c=s.length;++u<c;){var l=s[u],f=t[l];(f===r||Za(f,jt[l])&&!Pt.call(t,l))&&(t[l]=a[l])}return t})),Rs=Xr((function(t){return t.push(r,eo),Se(Ms,r,t)}));function xs(t,e,n){var i=null==t?r:Ar(t,e);return i===r?n:i}function Os(t,e){return null!=t&&yo(t,e,Or)}var Is=Zi((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Ut.call(e)),t[e]=n}),ru(au)),Ns=Zi((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Ut.call(e)),Pt.call(t,e)?t[e].push(n):t[e]=[n]}),lo),js=Xr(Nr);function Ls(t){return Ga(t)?Xn(t):zr(t)}function Bs(t){return Ga(t)?Xn(t,!0):Ur(t)}var Ps=Li((function(t,e,n){Wr(t,e,n)})),Ms=Li((function(t,e,n,r){Wr(t,e,n,r)})),zs=io((function(t,e){var n={};if(null==t)return n;var r=!1;e=Ne(e,(function(e){return e=bi(e,t),r||(r=e.length>1),e})),Ni(t,ao(t),n),r&&(n=lr(n,7,no));for(var i=e.length;i--;)di(n,e[i]);return n}));var Us=io((function(t,e){return null==t?{}:function(t,e){return Kr(t,e,(function(e,n){return Os(t,n)}))}(t,e)}));function Ds(t,e){if(null==t)return{};var n=Ne(ao(t),(function(t){return[t]}));return e=lo(e),Kr(t,n,(function(t,n){return e(t,n[0])}))}var Fs=Xi(Ls),qs=Xi(Bs);function Zs(t){return null==t?[]:Ve(t,Ls(t))}var Ws=zi((function(t,e,n){return e=e.toLowerCase(),t+(n?Hs(e):e)}));function Hs(t){return Qs(bs(t).toLowerCase())}function $s(t){return(t=bs(t))&&t.replace(wt,nn).replace(Xt,"")}var Ks=zi((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Ys=zi((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Gs=Mi("toLowerCase");var Js=zi((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Vs=zi((function(t,e,n){return t+(n?" ":"")+Qs(e)}));var Xs=zi((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Qs=Mi("toUpperCase");function tu(t,e,n){return t=bs(t),(e=n?r:e)===r?function(t){return ne.test(t)}(t)?function(t){return t.match(te)||[]}(t):function(t){return t.match(lt)||[]}(t):t.match(e)||[]}var eu=Xr((function(t,e){try{return Se(t,r,e)}catch(t){return Qa(t)?t:new St(t)}})),nu=io((function(t,e){return Ce(e,(function(e){e=Do(e),sr(t,e,Na(t[e],t))})),t}));function ru(t){return function(){return t}}var iu=Fi(),ou=Fi(!0);function au(t){return t}function su(t){return Mr("function"==typeof t?t:lr(t,1))}var uu=Xr((function(t,e){return function(n){return Nr(n,t,e)}})),cu=Xr((function(t,e){return function(n){return Nr(t,n,e)}}));function lu(t,e,n){var r=Ls(e),i=Sr(e,r);null!=n||rs(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=Sr(e,Ls(e)));var o=!(rs(n)&&"chain"in n&&!n.chain),a=ts(t);return Ce(i,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=Ii(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,je([this.value()],arguments))})})),t}function fu(){}var hu=Hi(Ne),du=Hi(Re),pu=Hi(Pe);function vu(t){return Eo(t)?We(Do(t)):function(t){return function(e){return Ar(e,t)}}(t)}var gu=Ki(),_u=Ki(!0);function yu(){return[]}function mu(){return!1}var wu=Wi((function(t,e){return t+e}),0),bu=Ji("ceil"),ku=Wi((function(t,e){return t/e}),1),Eu=Ji("floor");var Su,Au=Wi((function(t,e){return t*e}),1),Cu=Ji("round"),Tu=Wi((function(t,e){return t-e}),0);return qn.after=function(t,e){if("function"!=typeof e)throw new Ot(i);return t=_s(t),function(){if(--t<1)return e.apply(this,arguments)}},qn.ary=Oa,qn.assign=ks,qn.assignIn=Es,qn.assignInWith=Ss,qn.assignWith=As,qn.at=Cs,qn.before=Ia,qn.bind=Na,qn.bindAll=nu,qn.bindKey=ja,qn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ka(t)?t:[t]},qn.chain=va,qn.chunk=function(t,e,n){e=(n?ko(t,e,n):e===r)?1:wn(_s(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,a=0,s=at(ge(i/e));o<i;)s[a++]=oi(t,o,o+=e);return s},qn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},qn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=at(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return je(Ka(n)?Ii(n):[n],mr(e,1))},qn.cond=function(t){var e=null==t?0:t.length,n=lo();return t=e?Ne(t,(function(t){if("function"!=typeof t[1])throw new Ot(i);return[n(t[0]),t[1]]})):[],Xr((function(n){for(var r=-1;++r<e;){var i=t[r];if(Se(i[0],this,n))return Se(i[1],this,n)}}))},qn.conforms=function(t){return function(t){var e=Ls(t);return function(n){return fr(n,t,e)}}(lr(t,1))},qn.constant=ru,qn.countBy=ya,qn.create=function(t,e){var n=Zn(t);return null==e?n:ar(n,e)},qn.curry=function t(e,n,i){var o=Qi(e,8,r,r,r,r,r,n=i?r:n);return o.placeholder=t.placeholder,o},qn.curryRight=function t(e,n,i){var o=Qi(e,s,r,r,r,r,r,n=i?r:n);return o.placeholder=t.placeholder,o},qn.debounce=La,qn.defaults=Ts,qn.defaultsDeep=Rs,qn.defer=Ba,qn.delay=Pa,qn.difference=Zo,qn.differenceBy=Wo,qn.differenceWith=Ho,qn.drop=function(t,e,n){var i=null==t?0:t.length;return i?oi(t,(e=n||e===r?1:_s(e))<0?0:e,i):[]},qn.dropRight=function(t,e,n){var i=null==t?0:t.length;return i?oi(t,0,(e=i-(e=n||e===r?1:_s(e)))<0?0:e):[]},qn.dropRightWhile=function(t,e){return t&&t.length?vi(t,lo(e,3),!0,!0):[]},qn.dropWhile=function(t,e){return t&&t.length?vi(t,lo(e,3),!0):[]},qn.fill=function(t,e,n,i){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&ko(t,e,n)&&(n=0,i=o),function(t,e,n,i){var o=t.length;for((n=_s(n))<0&&(n=-n>o?0:o+n),(i=i===r||i>o?o:_s(i))<0&&(i+=o),i=n>i?0:ys(i);n<i;)t[n++]=e;return t}(t,e,n,i)):[]},qn.filter=function(t,e){return(Ka(t)?xe:yr)(t,lo(e,3))},qn.flatMap=function(t,e){return mr(Ca(t,e),1)},qn.flatMapDeep=function(t,e){return mr(Ca(t,e),h)},qn.flatMapDepth=function(t,e,n){return n=n===r?1:_s(n),mr(Ca(t,e),n)},qn.flatten=Yo,qn.flattenDeep=function(t){return(null==t?0:t.length)?mr(t,h):[]},qn.flattenDepth=function(t,e){return(null==t?0:t.length)?mr(t,e=e===r?1:_s(e)):[]},qn.flip=function(t){return Qi(t,512)},qn.flow=iu,qn.flowRight=ou,qn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},qn.functions=function(t){return null==t?[]:Sr(t,Ls(t))},qn.functionsIn=function(t){return null==t?[]:Sr(t,Bs(t))},qn.groupBy=Ea,qn.initial=function(t){return(null==t?0:t.length)?oi(t,0,-1):[]},qn.intersection=Jo,qn.intersectionBy=Vo,qn.intersectionWith=Xo,qn.invert=Is,qn.invertBy=Ns,qn.invokeMap=Sa,qn.iteratee=su,qn.keyBy=Aa,qn.keys=Ls,qn.keysIn=Bs,qn.map=Ca,qn.mapKeys=function(t,e){var n={};return e=lo(e,3),kr(t,(function(t,r,i){sr(n,e(t,r,i),t)})),n},qn.mapValues=function(t,e){var n={};return e=lo(e,3),kr(t,(function(t,r,i){sr(n,r,e(t,r,i))})),n},qn.matches=function(t){return qr(lr(t,1))},qn.matchesProperty=function(t,e){return Zr(t,lr(e,1))},qn.memoize=Ma,qn.merge=Ps,qn.mergeWith=Ms,qn.method=uu,qn.methodOf=cu,qn.mixin=lu,qn.negate=za,qn.nthArg=function(t){return t=_s(t),Xr((function(e){return Hr(e,t)}))},qn.omit=zs,qn.omitBy=function(t,e){return Ds(t,za(lo(e)))},qn.once=function(t){return Ia(2,t)},qn.orderBy=function(t,e,n,i){return null==t?[]:(Ka(e)||(e=null==e?[]:[e]),Ka(n=i?r:n)||(n=null==n?[]:[n]),$r(t,e,n))},qn.over=hu,qn.overArgs=Ua,qn.overEvery=du,qn.overSome=pu,qn.partial=Da,qn.partialRight=Fa,qn.partition=Ta,qn.pick=Us,qn.pickBy=Ds,qn.property=vu,qn.propertyOf=function(t){return function(e){return null==t?r:Ar(t,e)}},qn.pull=ta,qn.pullAll=ea,qn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Yr(t,e,lo(n,2)):t},qn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Yr(t,e,r,n):t},qn.pullAt=na,qn.range=gu,qn.rangeRight=_u,qn.rearg=qa,qn.reject=function(t,e){return(Ka(t)?xe:yr)(t,za(lo(e,3)))},qn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=lo(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return Gr(t,i),n},qn.rest=function(t,e){if("function"!=typeof t)throw new Ot(i);return Xr(t,e=e===r?e:_s(e))},qn.reverse=ra,qn.sampleSize=function(t,e,n){return e=(n?ko(t,e,n):e===r)?1:_s(e),(Ka(t)?tr:ti)(t,e)},qn.set=function(t,e,n){return null==t?t:ei(t,e,n)},qn.setWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:ei(t,e,n,i)},qn.shuffle=function(t){return(Ka(t)?er:ii)(t)},qn.slice=function(t,e,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&ko(t,e,n)?(e=0,n=i):(e=null==e?0:_s(e),n=n===r?i:_s(n)),oi(t,e,n)):[]},qn.sortBy=Ra,qn.sortedUniq=function(t){return t&&t.length?ci(t):[]},qn.sortedUniqBy=function(t,e){return t&&t.length?ci(t,lo(e,2)):[]},qn.split=function(t,e,n){return n&&"number"!=typeof n&&ko(t,e,n)&&(e=n=r),(n=n===r?v:n>>>0)?(t=bs(t))&&("string"==typeof e||null!=e&&!us(e))&&!(e=fi(e))&&an(t)?Ei(dn(t),0,n):t.split(e,n):[]},qn.spread=function(t,e){if("function"!=typeof t)throw new Ot(i);return e=null==e?0:wn(_s(e),0),Xr((function(n){var r=n[e],i=Ei(n,0,e);return r&&je(i,r),Se(t,this,i)}))},qn.tail=function(t){var e=null==t?0:t.length;return e?oi(t,1,e):[]},qn.take=function(t,e,n){return t&&t.length?oi(t,0,(e=n||e===r?1:_s(e))<0?0:e):[]},qn.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?oi(t,(e=i-(e=n||e===r?1:_s(e)))<0?0:e,i):[]},qn.takeRightWhile=function(t,e){return t&&t.length?vi(t,lo(e,3),!1,!0):[]},qn.takeWhile=function(t,e){return t&&t.length?vi(t,lo(e,3)):[]},qn.tap=function(t,e){return e(t),t},qn.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new Ot(i);return rs(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),La(t,e,{leading:r,maxWait:e,trailing:o})},qn.thru=ga,qn.toArray=vs,qn.toPairs=Fs,qn.toPairsIn=qs,qn.toPath=function(t){return Ka(t)?Ne(t,Do):fs(t)?[t]:Ii(Uo(bs(t)))},qn.toPlainObject=ws,qn.transform=function(t,e,n){var r=Ka(t),i=r||Va(t)||hs(t);if(e=lo(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:rs(t)&&ts(o)?Zn(Kt(t)):{}}return(i?Ce:kr)(t,(function(t,r,i){return e(n,t,r,i)})),n},qn.unary=function(t){return Oa(t,1)},qn.union=ia,qn.unionBy=oa,qn.unionWith=aa,qn.uniq=function(t){return t&&t.length?hi(t):[]},qn.uniqBy=function(t,e){return t&&t.length?hi(t,lo(e,2)):[]},qn.uniqWith=function(t,e){return e="function"==typeof e?e:r,t&&t.length?hi(t,r,e):[]},qn.unset=function(t,e){return null==t||di(t,e)},qn.unzip=sa,qn.unzipWith=ua,qn.update=function(t,e,n){return null==t?t:pi(t,e,wi(n))},qn.updateWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:pi(t,e,wi(n),i)},qn.values=Zs,qn.valuesIn=function(t){return null==t?[]:Ve(t,Bs(t))},qn.without=ca,qn.words=tu,qn.wrap=function(t,e){return Da(wi(e),t)},qn.xor=la,qn.xorBy=fa,qn.xorWith=ha,qn.zip=da,qn.zipObject=function(t,e){return yi(t||[],e||[],rr)},qn.zipObjectDeep=function(t,e){return yi(t||[],e||[],ei)},qn.zipWith=pa,qn.entries=Fs,qn.entriesIn=qs,qn.extend=Es,qn.extendWith=Ss,lu(qn,qn),qn.add=wu,qn.attempt=eu,qn.camelCase=Ws,qn.capitalize=Hs,qn.ceil=bu,qn.clamp=function(t,e,n){return n===r&&(n=e,e=r),n!==r&&(n=(n=ms(n))==n?n:0),e!==r&&(e=(e=ms(e))==e?e:0),cr(ms(t),e,n)},qn.clone=function(t){return lr(t,4)},qn.cloneDeep=function(t){return lr(t,5)},qn.cloneDeepWith=function(t,e){return lr(t,5,e="function"==typeof e?e:r)},qn.cloneWith=function(t,e){return lr(t,4,e="function"==typeof e?e:r)},qn.conformsTo=function(t,e){return null==e||fr(t,e,Ls(e))},qn.deburr=$s,qn.defaultTo=function(t,e){return null==t||t!=t?e:t},qn.divide=ku,qn.endsWith=function(t,e,n){t=bs(t),e=fi(e);var i=t.length,o=n=n===r?i:cr(_s(n),0,i);return(n-=e.length)>=0&&t.slice(n,o)==e},qn.eq=Za,qn.escape=function(t){return(t=bs(t))&&J.test(t)?t.replace(Y,rn):t},qn.escapeRegExp=function(t){return(t=bs(t))&&it.test(t)?t.replace(rt,"\\$&"):t},qn.every=function(t,e,n){var i=Ka(t)?Re:gr;return n&&ko(t,e,n)&&(e=r),i(t,lo(e,3))},qn.find=ma,qn.findIndex=$o,qn.findKey=function(t,e){return ze(t,lo(e,3),kr)},qn.findLast=wa,qn.findLastIndex=Ko,qn.findLastKey=function(t,e){return ze(t,lo(e,3),Er)},qn.floor=Eu,qn.forEach=ba,qn.forEachRight=ka,qn.forIn=function(t,e){return null==t?t:wr(t,lo(e,3),Bs)},qn.forInRight=function(t,e){return null==t?t:br(t,lo(e,3),Bs)},qn.forOwn=function(t,e){return t&&kr(t,lo(e,3))},qn.forOwnRight=function(t,e){return t&&Er(t,lo(e,3))},qn.get=xs,qn.gt=Wa,qn.gte=Ha,qn.has=function(t,e){return null!=t&&yo(t,e,xr)},qn.hasIn=Os,qn.head=Go,qn.identity=au,qn.includes=function(t,e,n,r){t=Ga(t)?t:Zs(t),n=n&&!r?_s(n):0;var i=t.length;return n<0&&(n=wn(i+n,0)),ls(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&De(t,e,n)>-1},qn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:_s(n);return i<0&&(i=wn(r+i,0)),De(t,e,i)},qn.inRange=function(t,e,n){return e=gs(e),n===r?(n=e,e=0):n=gs(n),function(t,e,n){return t>=bn(e,n)&&t<wn(e,n)}(t=ms(t),e,n)},qn.invoke=js,qn.isArguments=$a,qn.isArray=Ka,qn.isArrayBuffer=Ya,qn.isArrayLike=Ga,qn.isArrayLikeObject=Ja,qn.isBoolean=function(t){return!0===t||!1===t||is(t)&&Tr(t)==m},qn.isBuffer=Va,qn.isDate=Xa,qn.isElement=function(t){return is(t)&&1===t.nodeType&&!ss(t)},qn.isEmpty=function(t){if(null==t)return!0;if(Ga(t)&&(Ka(t)||"string"==typeof t||"function"==typeof t.splice||Va(t)||hs(t)||$a(t)))return!t.length;var e=_o(t);if(e==S||e==x)return!t.size;if(Co(t))return!zr(t).length;for(var n in t)if(Pt.call(t,n))return!1;return!0},qn.isEqual=function(t,e){return Lr(t,e)},qn.isEqualWith=function(t,e,n){var i=(n="function"==typeof n?n:r)?n(t,e):r;return i===r?Lr(t,e,r,n):!!i},qn.isError=Qa,qn.isFinite=function(t){return"number"==typeof t&&_n(t)},qn.isFunction=ts,qn.isInteger=es,qn.isLength=ns,qn.isMap=os,qn.isMatch=function(t,e){return t===e||Br(t,e,ho(e))},qn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:r,Br(t,e,ho(e),n)},qn.isNaN=function(t){return as(t)&&t!=+t},qn.isNative=function(t){if(Ao(t))throw new St("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pr(t)},qn.isNil=function(t){return null==t},qn.isNull=function(t){return null===t},qn.isNumber=as,qn.isObject=rs,qn.isObjectLike=is,qn.isPlainObject=ss,qn.isRegExp=us,qn.isSafeInteger=function(t){return es(t)&&t>=-9007199254740991&&t<=d},qn.isSet=cs,qn.isString=ls,qn.isSymbol=fs,qn.isTypedArray=hs,qn.isUndefined=function(t){return t===r},qn.isWeakMap=function(t){return is(t)&&_o(t)==N},qn.isWeakSet=function(t){return is(t)&&"[object WeakSet]"==Tr(t)},qn.join=function(t,e){return null==t?"":yn.call(t,e)},qn.kebabCase=Ks,qn.last=Qo,qn.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=i;return n!==r&&(o=(o=_s(n))<0?wn(i+o,0):bn(o,i-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):Ue(t,qe,o,!0)},qn.lowerCase=Ys,qn.lowerFirst=Gs,qn.lt=ds,qn.lte=ps,qn.max=function(t){return t&&t.length?_r(t,au,Rr):r},qn.maxBy=function(t,e){return t&&t.length?_r(t,lo(e,2),Rr):r},qn.mean=function(t){return Ze(t,au)},qn.meanBy=function(t,e){return Ze(t,lo(e,2))},qn.min=function(t){return t&&t.length?_r(t,au,Dr):r},qn.minBy=function(t,e){return t&&t.length?_r(t,lo(e,2),Dr):r},qn.stubArray=yu,qn.stubFalse=mu,qn.stubObject=function(){return{}},qn.stubString=function(){return""},qn.stubTrue=function(){return!0},qn.multiply=Au,qn.nth=function(t,e){return t&&t.length?Hr(t,_s(e)):r},qn.noConflict=function(){return he._===this&&(he._=Ft),this},qn.noop=fu,qn.now=xa,qn.pad=function(t,e,n){t=bs(t);var r=(e=_s(e))?hn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return $i(_e(i),n)+t+$i(ge(i),n)},qn.padEnd=function(t,e,n){t=bs(t);var r=(e=_s(e))?hn(t):0;return e&&r<e?t+$i(e-r,n):t},qn.padStart=function(t,e,n){t=bs(t);var r=(e=_s(e))?hn(t):0;return e&&r<e?$i(e-r,n)+t:t},qn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),En(bs(t).replace(ot,""),e||0)},qn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&ko(t,e,n)&&(e=n=r),n===r&&("boolean"==typeof e?(n=e,e=r):"boolean"==typeof t&&(n=t,t=r)),t===r&&e===r?(t=0,e=1):(t=gs(t),e===r?(e=t,t=0):e=gs(e)),t>e){var i=t;t=e,e=i}if(n||t%1||e%1){var o=Sn();return bn(t+o*(e-t+ue("1e-"+((o+"").length-1))),e)}return Jr(t,e)},qn.reduce=function(t,e,n){var r=Ka(t)?Le:$e,i=arguments.length<3;return r(t,lo(e,4),n,i,pr)},qn.reduceRight=function(t,e,n){var r=Ka(t)?Be:$e,i=arguments.length<3;return r(t,lo(e,4),n,i,vr)},qn.repeat=function(t,e,n){return e=(n?ko(t,e,n):e===r)?1:_s(e),Vr(bs(t),e)},qn.replace=function(){var t=arguments,e=bs(t[0]);return t.length<3?e:e.replace(t[1],t[2])},qn.result=function(t,e,n){var i=-1,o=(e=bi(e,t)).length;for(o||(o=1,t=r);++i<o;){var a=null==t?r:t[Do(e[i])];a===r&&(i=o,a=n),t=ts(a)?a.call(t):a}return t},qn.round=Cu,qn.runInContext=t,qn.sample=function(t){return(Ka(t)?Qn:Qr)(t)},qn.size=function(t){if(null==t)return 0;if(Ga(t))return ls(t)?hn(t):t.length;var e=_o(t);return e==S||e==x?t.size:zr(t).length},qn.snakeCase=Js,qn.some=function(t,e,n){var i=Ka(t)?Pe:ai;return n&&ko(t,e,n)&&(e=r),i(t,lo(e,3))},qn.sortedIndex=function(t,e){return si(t,e)},qn.sortedIndexBy=function(t,e,n){return ui(t,e,lo(n,2))},qn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=si(t,e);if(r<n&&Za(t[r],e))return r}return-1},qn.sortedLastIndex=function(t,e){return si(t,e,!0)},qn.sortedLastIndexBy=function(t,e,n){return ui(t,e,lo(n,2),!0)},qn.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=si(t,e,!0)-1;if(Za(t[n],e))return n}return-1},qn.startCase=Vs,qn.startsWith=function(t,e,n){return t=bs(t),n=null==n?0:cr(_s(n),0,t.length),e=fi(e),t.slice(n,n+e.length)==e},qn.subtract=Tu,qn.sum=function(t){return t&&t.length?Ke(t,au):0},qn.sumBy=function(t,e){return t&&t.length?Ke(t,lo(e,2)):0},qn.template=function(t,e,n){var i=qn.templateSettings;n&&ko(t,e,n)&&(e=r),t=bs(t),e=Ss({},e,i,to);var o,a,s=Ss({},e.imports,i.imports,to),u=Ls(s),c=Ve(s,u),l=0,f=e.interpolate||bt,h="__p += '",d=Rt((e.escape||bt).source+"|"+f.source+"|"+(f===Q?dt:bt).source+"|"+(e.evaluate||bt).source+"|$","g"),p="//# sourceURL="+(Pt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ie+"]")+"\n";t.replace(d,(function(e,n,r,i,s,u){return r||(r=i),h+=t.slice(l,u).replace(kt,on),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),s&&(a=!0,h+="';\n"+s+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+e.length,e})),h+="';\n";var v=Pt.call(e,"variable")&&e.variable;if(v){if(ft.test(v))throw new St("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(a?h.replace(W,""):h).replace(H,"$1").replace($,"$1;"),h="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=eu((function(){return At(u,p+"return "+h).apply(r,c)}));if(g.source=h,Qa(g))throw g;return g},qn.times=function(t,e){if((t=_s(t))<1||t>d)return[];var n=v,r=bn(t,v);e=lo(e),t-=v;for(var i=Ye(r,e);++n<t;)e(n);return i},qn.toFinite=gs,qn.toInteger=_s,qn.toLength=ys,qn.toLower=function(t){return bs(t).toLowerCase()},qn.toNumber=ms,qn.toSafeInteger=function(t){return t?cr(_s(t),-9007199254740991,d):0===t?t:0},qn.toString=bs,qn.toUpper=function(t){return bs(t).toUpperCase()},qn.trim=function(t,e,n){if((t=bs(t))&&(n||e===r))return Ge(t);if(!t||!(e=fi(e)))return t;var i=dn(t),o=dn(e);return Ei(i,Qe(i,o),tn(i,o)+1).join("")},qn.trimEnd=function(t,e,n){if((t=bs(t))&&(n||e===r))return t.slice(0,pn(t)+1);if(!t||!(e=fi(e)))return t;var i=dn(t);return Ei(i,0,tn(i,dn(e))+1).join("")},qn.trimStart=function(t,e,n){if((t=bs(t))&&(n||e===r))return t.replace(ot,"");if(!t||!(e=fi(e)))return t;var i=dn(t);return Ei(i,Qe(i,dn(e))).join("")},qn.truncate=function(t,e){var n=30,i="...";if(rs(e)){var o="separator"in e?e.separator:o;n="length"in e?_s(e.length):n,i="omission"in e?fi(e.omission):i}var a=(t=bs(t)).length;if(an(t)){var s=dn(t);a=s.length}if(n>=a)return t;var u=n-hn(i);if(u<1)return i;var c=s?Ei(s,0,u).join(""):t.slice(0,u);if(o===r)return c+i;if(s&&(u+=c.length-u),us(o)){if(t.slice(u).search(o)){var l,f=c;for(o.global||(o=Rt(o.source,bs(pt.exec(o))+"g")),o.lastIndex=0;l=o.exec(f);)var h=l.index;c=c.slice(0,h===r?u:h)}}else if(t.indexOf(fi(o),u)!=u){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+i},qn.unescape=function(t){return(t=bs(t))&&G.test(t)?t.replace(K,vn):t},qn.uniqueId=function(t){var e=++Mt;return bs(t)+e},qn.upperCase=Xs,qn.upperFirst=Qs,qn.each=ba,qn.eachRight=ka,qn.first=Go,lu(qn,(Su={},kr(qn,(function(t,e){Pt.call(qn.prototype,e)||(Su[e]=t)})),Su),{chain:!1}),qn.VERSION="4.17.21",Ce(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){qn[t].placeholder=qn})),Ce(["drop","take"],(function(t,e){$n.prototype[t]=function(n){n=n===r?1:wn(_s(n),0);var i=this.__filtered__&&!e?new $n(this):this.clone();return i.__filtered__?i.__takeCount__=bn(n,i.__takeCount__):i.__views__.push({size:bn(n,v),type:t+(i.__dir__<0?"Right":"")}),i},$n.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Ce(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;$n.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:lo(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Ce(["head","last"],(function(t,e){var n="take"+(e?"Right":"");$n.prototype[t]=function(){return this[n](1).value()[0]}})),Ce(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");$n.prototype[t]=function(){return this.__filtered__?new $n(this):this[n](1)}})),$n.prototype.compact=function(){return this.filter(au)},$n.prototype.find=function(t){return this.filter(t).head()},$n.prototype.findLast=function(t){return this.reverse().find(t)},$n.prototype.invokeMap=Xr((function(t,e){return"function"==typeof t?new $n(this):this.map((function(n){return Nr(n,t,e)}))})),$n.prototype.reject=function(t){return this.filter(za(lo(t)))},$n.prototype.slice=function(t,e){t=_s(t);var n=this;return n.__filtered__&&(t>0||e<0)?new $n(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==r&&(n=(e=_s(e))<0?n.dropRight(-e):n.take(e-t)),n)},$n.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},$n.prototype.toArray=function(){return this.take(v)},kr($n.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),o=qn[i?"take"+("last"==e?"Right":""):e],a=i||/^find/.test(e);o&&(qn.prototype[e]=function(){var e=this.__wrapped__,s=i?[1]:arguments,u=e instanceof $n,c=s[0],l=u||Ka(e),f=function(t){var e=o.apply(qn,je([t],s));return i&&h?e[0]:e};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var h=this.__chain__,d=!!this.__actions__.length,p=a&&!h,v=u&&!d;if(!a&&l){e=v?e:new $n(this);var g=t.apply(e,s);return g.__actions__.push({func:ga,args:[f],thisArg:r}),new Hn(g,h)}return p&&v?t.apply(this,s):(g=this.thru(f),p?i?g.value()[0]:g.value():g)})})),Ce(["pop","push","shift","sort","splice","unshift"],(function(t){var e=It[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);qn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Ka(i)?i:[],t)}return this[n]((function(n){return e.apply(Ka(n)?n:[],t)}))}})),kr($n.prototype,(function(t,e){var n=qn[e];if(n){var r=n.name+"";Pt.call(jn,r)||(jn[r]=[]),jn[r].push({name:e,func:n})}})),jn[qi(r,2).name]=[{name:"wrapper",func:r}],$n.prototype.clone=function(){var t=new $n(this.__wrapped__);return t.__actions__=Ii(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ii(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ii(this.__views__),t},$n.prototype.reverse=function(){if(this.__filtered__){var t=new $n(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},$n.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ka(t),r=e<0,i=n?t.length:0,o=function(t,e,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=bn(e,t+a);break;case"takeRight":t=wn(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,f=l.length,h=0,d=bn(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return gi(t,this.__actions__);var p=[];t:for(;u--&&h<d;){for(var v=-1,g=t[c+=e];++v<f;){var _=l[v],y=_.iteratee,m=_.type,w=y(g);if(2==m)g=w;else if(!w){if(1==m)continue t;break t}}p[h++]=g}return p},qn.prototype.at=_a,qn.prototype.chain=function(){return va(this)},qn.prototype.commit=function(){return new Hn(this.value(),this.__chain__)},qn.prototype.next=function(){this.__values__===r&&(this.__values__=vs(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?r:this.__values__[this.__index__++]}},qn.prototype.plant=function(t){for(var e,n=this;n instanceof Wn;){var i=qo(n);i.__index__=0,i.__values__=r,e?o.__wrapped__=i:e=i;var o=i;n=n.__wrapped__}return o.__wrapped__=t,e},qn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof $n){var e=t;return this.__actions__.length&&(e=new $n(this)),(e=e.reverse()).__actions__.push({func:ga,args:[ra],thisArg:r}),new Hn(e,this.__chain__)}return this.thru(ra)},qn.prototype.toJSON=qn.prototype.valueOf=qn.prototype.value=function(){return gi(this.__wrapped__,this.__actions__)},qn.prototype.first=qn.prototype.head,ee&&(qn.prototype[ee]=function(){return this}),qn}();pe?((pe.exports=gn)._=gn,de._=gn):he._=gn}).call(e)}));t.NetworkType=void 0,(i=t.NetworkType||(t.NetworkType={})).none="none",i.wifi="wifi",i.cellular="cellular",i.unknown="unknown",t.PlatformType=void 0,(o=t.PlatformType||(t.PlatformType={})).wp="wp",o.android="android",o.iOS="iOS",o.unknown="unknown",t.ProfileType=void 0,(a=t.ProfileType||(t.ProfileType={}))[a.user=1]="user",a[a.oa=0]="oa",a[a.aliasOA=2]="aliasOA",t.ChatType=void 0,(s=t.ChatType||(t.ChatType={}))[s.user=1]="user",s[s.oa=0]="oa",t.PostFeedType=void 0,(u=t.PostFeedType||(t.PostFeedType={}))[u.image=1]="image",u[u.link=4]="link",u[u.profile=5]="profile",t.ShareSheetType=void 0,(c=t.ShareSheetType||(t.ShareSheetType={}))[c.image=1]="image",c[c.gif=11]="gif",c[c.video=12]="video",c[c.link=4]="link",c[c.oa=5]="oa",t.OrientationType=void 0,(l=t.OrientationType||(t.OrientationType={}))[l.auto=1]="auto",l[l.portrait=2]="portrait",l[l.landscape=3]="landscape",t.VibrateType=void 0,(f=t.VibrateType||(t.VibrateType={}))[f.oneShot=0]="oneShot",t.NativeCode=void 0,(h=t.NativeCode||(t.NativeCode={}))[h.token_invalid=-2]="token_invalid",h[h.not_permission=-1]="not_permission",h[h.client_not_support=-5]="client_not_support",h[h.decode_failed=-4]="decode_failed";const p=t=>{const e=document.cookie;if(e){const i=e.split("; ");if(i&&i.length>0)for(var n=t.length+1,r=i.length-1;r>=0;r--){let e=i[r];if(e&&0===e.indexOf(t)&&(e=e.substring(n,e.length),e))return e=e.replace(/["']/g,""),e}}return null},v=t=>p(`${window.location.host}_`+t),g=t=>p((()=>{const t=window.location.host;if(t){if(t.indexOf("zalo.me")>=0)return"zalo.me_";if(t.indexOf("baomoi.com")>=0)return"baomoi.com_";if(t.indexOf("mp3.zing.vn")>=0)return"mp3.zing.vn_";if(t.indexOf("zaloapp.com")>=0)return"zaloapp.com_"}return""})()+t),_="action.open.profile",y="action.open.inapp",m="action.open.chat",w="action.open.postfeed",b="action.follow.oa",k="action.unfollow.oa",E="action.open.sharesheet",S="action.request.permission.camera",A="action.change.title.header",C="action.webview.networktype",T="action.create.options.menu",R="action.create.shortcut",x="action.change.actionbar.leftbutton.type",O="action.window.close",I="action.prompt.authentication",N="action.prompt.authentication.check_state",j="action.get.location",L="action.query.location.hide",B="action.show.toast",P="action.hide.keyboard",M="action.open.phone",z="action.open.qr",U="action.open.sms",D="action.view.myqr",F="action.keep.screen",q="action.change.autorotate",Z="action.scan.ibeacon",W="action.save.image.gallery",H="action.open.mp",$="action.change.actionbar",K="action.interactive.vibration",Y="action.zbrowser.mpds",G="action.webview.set.result",J=["action.get.downloaded.sticker","action.report.abuse",b,k,E,T,x,O,"action.zbrowser.jsbridge",j,L,B,D,F,"action.zalorun.getTrackingStatus","action.zalorun.setTrackingStatus","action.zalorun.getDayStep","action.zalorun.forceSubmitData","action.zalorun.setWeight","action.download.cate"],V=-1400,X=-1401,Q=-1403,tt={READ_MORE:"Read more at: https://miniapp.zalo.me/docs/api",LOGIN_REQUIRED:"Please login before to call this api. Read more at: https://miniapp.zalo.me/docs/api/login",LOGIN_FAILED:"Login failed.",NOT_PERMISSION:"You don't have permission to call this api",CLIENT_NOT_SUPPORT:"This API is not supported in this Zalo version",DECODE_FAILED:"Can not decode your data. Read more at: https://miniapp.zalo.me/docs/api/error"},et="apps/get-info",nt={android:12100571,iOS:400,wp:0,unknown:0},rt=new RegExp("[\\u0300-\\u036f]","g"),it=new RegExp("[đ|Đ]","g"),ot=new RegExp("\\s","g"),at=t=>{try{new URL(t)}catch(t){return!1}return!0},st=()=>navigator.userAgent||navigator.vendor||window.opera,ut=()=>{const t=st().toLowerCase();return{isWP:/iemobile/.test(t),isAndroid:/android/i.test(t)&&!/iemobile/.test(t),isIOS:/iphone|ios|ipad|ipod/.test(t)&&!/iemobile/.test(t),isMobile:/android|iphone|ios|ipad|ipod|iemobile/.test(t),isZalo:/zalo/.test(t)}},ct=t=>{const e=document.getElementsByTagName("meta");for(let n=0;n<e.length;n++)if(e[n].getAttribute("name")===t||e[n].getAttribute("property")===t)return e[n].getAttribute("content");return""},lt=()=>{const t=st().toLowerCase().split("zalo")[1];if(t){return t.replace(" ","").split("/")[1]||""}return""},ft=()=>{let e=ut();return e.isWP?t.PlatformType.wp:e.isAndroid?t.PlatformType.android:e.isIOS?t.PlatformType.iOS:t.PlatformType.unknown},ht=(t,e)=>{const n=e.toLowerCase();return!(("array"!==n&&"array<number>"!==n&&"array<string>"!==n||!("array"===n&&Array.isArray(t)||"array<number>"===n&&(t=>Array.isArray(t)&&!t.some((t=>"number"!=typeof t)))(t)||"array<string>"===n&&(t=>Array.isArray(t)&&!t.some((t=>"string"!=typeof t)))(t)))&&(Array.isArray(t)||typeof t!==e))},dt=t=>null==t||t.hasOwnProperty("length")&&0===t.length||t.constructor===Object&&0===Object.keys(t).length,pt=t=>(t=>{let e=v(t);return e||(e=g(t),e)?e:p(t)})(t),vt=t=>{const e=t.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t");return d.isObject(JSON)&&JSON.parse&&d.isString(t)?JSON.parse(e,((t,e)=>e)):d.isObject(t)?t:new Function("return "+t)()},gt=t=>{if(d.isObject(JSON)&&JSON.stringify)return JSON.stringify(t);if(void 0===t)return"undefined";if(null===t)return"null";try{if("string"==typeof t||null!==t.constructor.toString().match(/string/i))return'"'+t.replace(/"/g,'\\"')+'"'}catch(t){console.log(t)}var e;if(null!==Object.prototype.toString.call(t).match(/array/i)){e=new Array;for(var n=t.length,r=0;r<n;r++)e.push(gt(t[r]));return"["+e.join(",")+"]"}if("object"==typeof t){for(var i in e=new Array,t)e.push('"'+i+'":'+gt(t[i]));return"{"+e.join(",")+"}"}return t.toString()},_t=()=>{try{const t=Number(lt()),e=ft();return t>=nt[e]}catch(t){return!0}},yt=t=>JSON.stringify(t).replace(/"/g,'\\"').replace(/'/g,"'"),mt=t=>{try{if(t){const e=t.replace(/\\/g,"").replace(/'/g,"'");return JSON.parse(e)}return null}catch(e){return t}};
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).zmp={})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}function r(t){return t&&t.default||t}var i,o,a,s,u,c,l,f,h,d=n((function(t,n){(function(){var r,i="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",s=16,u=32,c=64,l=128,f=256,h=1/0,d=9007199254740991,p=NaN,v=4294967295,g=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",u],["partialRight",c],["rearg",f]],_="[object Arguments]",m="[object Array]",y="[object Boolean]",w="[object Date]",b="[object Error]",k="[object Function]",E="[object GeneratorFunction]",S="[object Map]",A="[object Number]",C="[object Object]",T="[object Promise]",R="[object RegExp]",x="[object Set]",O="[object String]",I="[object Symbol]",N="[object WeakMap]",j="[object ArrayBuffer]",L="[object DataView]",B="[object Float32Array]",P="[object Float64Array]",M="[object Int8Array]",z="[object Int16Array]",U="[object Int32Array]",D="[object Uint8Array]",F="[object Uint8ClampedArray]",q="[object Uint16Array]",Z="[object Uint32Array]",W=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,G=RegExp(K.source),J=RegExp(Y.source),V=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,tt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,et=/^\w*$/,nt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rt=/[\\^$.*+?()[\]{}|]/g,it=RegExp(rt.source),ot=/^\s+/,at=/\s/,st=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ut=/\{\n\/\* \[wrapped with (.+)\] \*/,ct=/,? & /,lt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ft=/[()=,{}\[\]\/\s]/,ht=/\\(\\)?/g,dt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pt=/\w*$/,vt=/^[-+]0x[0-9a-f]+$/i,gt=/^0b[01]+$/i,_t=/^\[object .+?Constructor\]$/,mt=/^0o[0-7]+$/i,yt=/^(?:0|[1-9]\d*)$/,wt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bt=/($^)/,kt=/['\n\r\u2028\u2029\\]/g,Et="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",St="\\u2700-\\u27bf",At="a-z\\xdf-\\xf6\\xf8-\\xff",Ct="A-Z\\xc0-\\xd6\\xd8-\\xde",Tt="\\ufe0e\\ufe0f",Rt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",xt="['’]",Ot="[\\ud800-\\udfff]",It="["+Rt+"]",Nt="["+Et+"]",jt="\\d+",Lt="[\\u2700-\\u27bf]",Bt="["+At+"]",Pt="[^\\ud800-\\udfff"+Rt+jt+St+At+Ct+"]",Mt="\\ud83c[\\udffb-\\udfff]",zt="[^\\ud800-\\udfff]",Ut="(?:\\ud83c[\\udde6-\\uddff]){2}",Dt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ft="["+Ct+"]",qt="(?:"+Bt+"|"+Pt+")",Zt="(?:"+Ft+"|"+Pt+")",Wt="(?:['’](?:d|ll|m|re|s|t|ve))?",Ht="(?:['’](?:D|LL|M|RE|S|T|VE))?",$t="(?:"+Nt+"|"+Mt+")"+"?",Kt="[\\ufe0e\\ufe0f]?",Yt=Kt+$t+("(?:\\u200d(?:"+[zt,Ut,Dt].join("|")+")"+Kt+$t+")*"),Gt="(?:"+[Lt,Ut,Dt].join("|")+")"+Yt,Jt="(?:"+[zt+Nt+"?",Nt,Ut,Dt,Ot].join("|")+")",Vt=RegExp(xt,"g"),Xt=RegExp(Nt,"g"),Qt=RegExp(Mt+"(?="+Mt+")|"+Jt+Yt,"g"),te=RegExp([Ft+"?"+Bt+"+"+Wt+"(?="+[It,Ft,"$"].join("|")+")",Zt+"+"+Ht+"(?="+[It,Ft+qt,"$"].join("|")+")",Ft+"?"+qt+"+"+Wt,Ft+"+"+Ht,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jt,Gt].join("|"),"g"),ee=RegExp("[\\u200d\\ud800-\\udfff"+Et+Tt+"]"),ne=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,re=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ie=-1,oe={};oe[B]=oe[P]=oe[M]=oe[z]=oe[U]=oe[D]=oe[F]=oe[q]=oe[Z]=!0,oe[_]=oe[m]=oe[j]=oe[y]=oe[L]=oe[w]=oe[b]=oe[k]=oe[S]=oe[A]=oe[C]=oe[R]=oe[x]=oe[O]=oe[N]=!1;var ae={};ae[_]=ae[m]=ae[j]=ae[L]=ae[y]=ae[w]=ae[B]=ae[P]=ae[M]=ae[z]=ae[U]=ae[S]=ae[A]=ae[C]=ae[R]=ae[x]=ae[O]=ae[I]=ae[D]=ae[F]=ae[q]=ae[Z]=!0,ae[b]=ae[k]=ae[N]=!1;var se={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ue=parseFloat,ce=parseInt,le="object"==typeof e&&e&&e.Object===Object&&e,fe="object"==typeof self&&self&&self.Object===Object&&self,he=le||fe||Function("return this")(),de=n&&!n.nodeType&&n,pe=de&&t&&!t.nodeType&&t,ve=pe&&pe.exports===de,ge=ve&&le.process,_e=function(){try{var t=pe&&pe.require&&pe.require("util").types;return t||ge&&ge.binding&&ge.binding("util")}catch(t){}}(),me=_e&&_e.isArrayBuffer,ye=_e&&_e.isDate,we=_e&&_e.isMap,be=_e&&_e.isRegExp,ke=_e&&_e.isSet,Ee=_e&&_e.isTypedArray;function Se(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ae(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function Ce(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Te(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Re(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function xe(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function Oe(t,e){return!!(null==t?0:t.length)&&De(t,e,0)>-1}function Ie(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Ne(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function je(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function Le(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function Be(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function Pe(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var Me=We("length");function ze(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function Ue(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function De(t,e,n){return e==e?function(t,e,n){var r=n-1,i=t.length;for(;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):Ue(t,qe,n)}function Fe(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function qe(t){return t!=t}function Ze(t,e){var n=null==t?0:t.length;return n?Ke(t,e)/n:p}function We(t){return function(e){return null==e?r:e[t]}}function He(t){return function(e){return null==t?r:t[e]}}function $e(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function Ke(t,e){for(var n,i=-1,o=t.length;++i<o;){var a=e(t[i]);a!==r&&(n=n===r?a:n+a)}return n}function Ye(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ge(t){return t?t.slice(0,pn(t)+1).replace(ot,""):t}function Je(t){return function(e){return t(e)}}function Ve(t,e){return Ne(e,(function(e){return t[e]}))}function Xe(t,e){return t.has(e)}function Qe(t,e){for(var n=-1,r=t.length;++n<r&&De(e,t[n],0)>-1;);return n}function tn(t,e){for(var n=t.length;n--&&De(e,t[n],0)>-1;);return n}function en(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var nn=He({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),rn=He({"&":"&","<":"<",">":">",'"':""","'":"'"});function on(t){return"\\"+se[t]}function an(t){return ee.test(t)}function sn(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function un(t,e){return function(n){return t(e(n))}}function cn(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n];s!==e&&s!==a||(t[n]=a,o[i++]=n)}return o}function ln(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function fn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function hn(t){return an(t)?function(t){var e=Qt.lastIndex=0;for(;Qt.test(t);)++e;return e}(t):Me(t)}function dn(t){return an(t)?function(t){return t.match(Qt)||[]}(t):function(t){return t.split("")}(t)}function pn(t){for(var e=t.length;e--&&at.test(t.charAt(e)););return e}var vn=He({"&":"&","<":"<",">":">",""":'"',"'":"'"});var gn=function t(e){var n,at=(e=null==e?he:gn.defaults(he.Object(),e,gn.pick(he,re))).Array,Et=e.Date,St=e.Error,At=e.Function,Ct=e.Math,Tt=e.Object,Rt=e.RegExp,xt=e.String,Ot=e.TypeError,It=at.prototype,Nt=At.prototype,jt=Tt.prototype,Lt=e["__core-js_shared__"],Bt=Nt.toString,Pt=jt.hasOwnProperty,Mt=0,zt=(n=/[^.]+$/.exec(Lt&&Lt.keys&&Lt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ut=jt.toString,Dt=Bt.call(Tt),Ft=he._,qt=Rt("^"+Bt.call(Pt).replace(rt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Zt=ve?e.Buffer:r,Wt=e.Symbol,Ht=e.Uint8Array,$t=Zt?Zt.allocUnsafe:r,Kt=un(Tt.getPrototypeOf,Tt),Yt=Tt.create,Gt=jt.propertyIsEnumerable,Jt=It.splice,Qt=Wt?Wt.isConcatSpreadable:r,ee=Wt?Wt.iterator:r,se=Wt?Wt.toStringTag:r,le=function(){try{var t=po(Tt,"defineProperty");return t({},"",{}),t}catch(t){}}(),fe=e.clearTimeout!==he.clearTimeout&&e.clearTimeout,de=Et&&Et.now!==he.Date.now&&Et.now,pe=e.setTimeout!==he.setTimeout&&e.setTimeout,ge=Ct.ceil,_e=Ct.floor,Me=Tt.getOwnPropertySymbols,He=Zt?Zt.isBuffer:r,_n=e.isFinite,mn=It.join,yn=un(Tt.keys,Tt),wn=Ct.max,bn=Ct.min,kn=Et.now,En=e.parseInt,Sn=Ct.random,An=It.reverse,Cn=po(e,"DataView"),Tn=po(e,"Map"),Rn=po(e,"Promise"),xn=po(e,"Set"),On=po(e,"WeakMap"),In=po(Tt,"create"),Nn=On&&new On,jn={},Ln=Fo(Cn),Bn=Fo(Tn),Pn=Fo(Rn),Mn=Fo(xn),zn=Fo(On),Un=Wt?Wt.prototype:r,Dn=Un?Un.valueOf:r,Fn=Un?Un.toString:r;function qn(t){if(is(t)&&!Ka(t)&&!(t instanceof $n)){if(t instanceof Hn)return t;if(Pt.call(t,"__wrapped__"))return qo(t)}return new Hn(t)}var Zn=function(){function t(){}return function(e){if(!rs(e))return{};if(Yt)return Yt(e);t.prototype=e;var n=new t;return t.prototype=r,n}}();function Wn(){}function Hn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=r}function $n(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function Kn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Yn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Gn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Jn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Gn;++e<n;)this.add(t[e])}function Vn(t){var e=this.__data__=new Yn(t);this.size=e.size}function Xn(t,e){var n=Ka(t),r=!n&&$a(t),i=!n&&!r&&Va(t),o=!n&&!r&&!i&&hs(t),a=n||r||i||o,s=a?Ye(t.length,xt):[],u=s.length;for(var c in t)!e&&!Pt.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||bo(c,u))||s.push(c);return s}function Qn(t){var e=t.length;return e?t[Jr(0,e-1)]:r}function tr(t,e){return zo(Ii(t),cr(e,0,t.length))}function er(t){return zo(Ii(t))}function nr(t,e,n){(n!==r&&!Za(t[e],n)||n===r&&!(e in t))&&sr(t,e,n)}function rr(t,e,n){var i=t[e];Pt.call(t,e)&&Za(i,n)&&(n!==r||e in t)||sr(t,e,n)}function ir(t,e){for(var n=t.length;n--;)if(Za(t[n][0],e))return n;return-1}function or(t,e,n,r){return pr(t,(function(t,i,o){e(r,t,n(t),o)})),r}function ar(t,e){return t&&Ni(e,Ls(e),t)}function sr(t,e,n){"__proto__"==e&&le?le(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ur(t,e){for(var n=-1,i=e.length,o=at(i),a=null==t;++n<i;)o[n]=a?r:xs(t,e[n]);return o}function cr(t,e,n){return t==t&&(n!==r&&(t=t<=n?t:n),e!==r&&(t=t>=e?t:e)),t}function lr(t,e,n,i,o,a){var s,u=1&e,c=2&e,l=4&e;if(n&&(s=o?n(t,i,o,a):n(t)),s!==r)return s;if(!rs(t))return t;var f=Ka(t);if(f){if(s=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&Pt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!u)return Ii(t,s)}else{var h=_o(t),d=h==k||h==E;if(Va(t))return Ai(t,u);if(h==C||h==_||d&&!o){if(s=c||d?{}:yo(t),!u)return c?function(t,e){return Ni(t,go(t),e)}(t,function(t,e){return t&&Ni(e,Bs(e),t)}(s,t)):function(t,e){return Ni(t,vo(t),e)}(t,ar(s,t))}else{if(!ae[h])return o?t:{};s=function(t,e,n){var r=t.constructor;switch(e){case j:return Ci(t);case y:case w:return new r(+t);case L:return function(t,e){var n=e?Ci(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case B:case P:case M:case z:case U:case D:case F:case q:case Z:return Ti(t,n);case S:return new r;case A:case O:return new r(t);case R:return function(t){var e=new t.constructor(t.source,pt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case x:return new r;case I:return i=t,Dn?Tt(Dn.call(i)):{}}var i}(t,h,u)}}a||(a=new Vn);var p=a.get(t);if(p)return p;a.set(t,s),cs(t)?t.forEach((function(r){s.add(lr(r,e,n,r,t,a))})):os(t)&&t.forEach((function(r,i){s.set(i,lr(r,e,n,i,t,a))}));var v=f?r:(l?c?ao:oo:c?Bs:Ls)(t);return Ce(v||t,(function(r,i){v&&(r=t[i=r]),rr(s,i,lr(r,e,n,i,t,a))})),s}function fr(t,e,n){var i=n.length;if(null==t)return!i;for(t=Tt(t);i--;){var o=n[i],a=e[o],s=t[o];if(s===r&&!(o in t)||!a(s))return!1}return!0}function hr(t,e,n){if("function"!=typeof t)throw new Ot(i);return Lo((function(){t.apply(r,n)}),e)}function dr(t,e,n,r){var i=-1,o=Oe,a=!0,s=t.length,u=[],c=e.length;if(!s)return u;n&&(e=Ne(e,Je(n))),r?(o=Ie,a=!1):e.length>=200&&(o=Xe,a=!1,e=new Jn(e));t:for(;++i<s;){var l=t[i],f=null==n?l:n(l);if(l=r||0!==l?l:0,a&&f==f){for(var h=c;h--;)if(e[h]===f)continue t;u.push(l)}else o(e,f,r)||u.push(l)}return u}qn.templateSettings={escape:V,evaluate:X,interpolate:Q,variable:"",imports:{_:qn}},qn.prototype=Wn.prototype,qn.prototype.constructor=qn,Hn.prototype=Zn(Wn.prototype),Hn.prototype.constructor=Hn,$n.prototype=Zn(Wn.prototype),$n.prototype.constructor=$n,Kn.prototype.clear=function(){this.__data__=In?In(null):{},this.size=0},Kn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Kn.prototype.get=function(t){var e=this.__data__;if(In){var n=e[t];return n===o?r:n}return Pt.call(e,t)?e[t]:r},Kn.prototype.has=function(t){var e=this.__data__;return In?e[t]!==r:Pt.call(e,t)},Kn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=In&&e===r?o:e,this},Yn.prototype.clear=function(){this.__data__=[],this.size=0},Yn.prototype.delete=function(t){var e=this.__data__,n=ir(e,t);return!(n<0)&&(n==e.length-1?e.pop():Jt.call(e,n,1),--this.size,!0)},Yn.prototype.get=function(t){var e=this.__data__,n=ir(e,t);return n<0?r:e[n][1]},Yn.prototype.has=function(t){return ir(this.__data__,t)>-1},Yn.prototype.set=function(t,e){var n=this.__data__,r=ir(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new Kn,map:new(Tn||Yn),string:new Kn}},Gn.prototype.delete=function(t){var e=fo(this,t).delete(t);return this.size-=e?1:0,e},Gn.prototype.get=function(t){return fo(this,t).get(t)},Gn.prototype.has=function(t){return fo(this,t).has(t)},Gn.prototype.set=function(t,e){var n=fo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Jn.prototype.add=Jn.prototype.push=function(t){return this.__data__.set(t,o),this},Jn.prototype.has=function(t){return this.__data__.has(t)},Vn.prototype.clear=function(){this.__data__=new Yn,this.size=0},Vn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Vn.prototype.get=function(t){return this.__data__.get(t)},Vn.prototype.has=function(t){return this.__data__.has(t)},Vn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Yn){var r=n.__data__;if(!Tn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Gn(r)}return n.set(t,e),this.size=n.size,this};var pr=Bi(kr),vr=Bi(Er,!0);function gr(t,e){var n=!0;return pr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function _r(t,e,n){for(var i=-1,o=t.length;++i<o;){var a=t[i],s=e(a);if(null!=s&&(u===r?s==s&&!fs(s):n(s,u)))var u=s,c=a}return c}function mr(t,e){var n=[];return pr(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function yr(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=wo),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?yr(s,e-1,n,r,i):je(i,s):r||(i[i.length]=s)}return i}var wr=Pi(),br=Pi(!0);function kr(t,e){return t&&wr(t,e,Ls)}function Er(t,e){return t&&br(t,e,Ls)}function Sr(t,e){return xe(e,(function(e){return ts(t[e])}))}function Ar(t,e){for(var n=0,i=(e=bi(e,t)).length;null!=t&&n<i;)t=t[Do(e[n++])];return n&&n==i?t:r}function Cr(t,e,n){var r=e(t);return Ka(t)?r:je(r,n(t))}function Tr(t){return null==t?t===r?"[object Undefined]":"[object Null]":se&&se in Tt(t)?function(t){var e=Pt.call(t,se),n=t[se];try{t[se]=r;var i=!0}catch(t){}var o=Ut.call(t);i&&(e?t[se]=n:delete t[se]);return o}(t):function(t){return Ut.call(t)}(t)}function Rr(t,e){return t>e}function xr(t,e){return null!=t&&Pt.call(t,e)}function Or(t,e){return null!=t&&e in Tt(t)}function Ir(t,e,n){for(var i=n?Ie:Oe,o=t[0].length,a=t.length,s=a,u=at(a),c=1/0,l=[];s--;){var f=t[s];s&&e&&(f=Ne(f,Je(e))),c=bn(f.length,c),u[s]=!n&&(e||o>=120&&f.length>=120)?new Jn(s&&f):r}f=t[0];var h=-1,d=u[0];t:for(;++h<o&&l.length<c;){var p=f[h],v=e?e(p):p;if(p=n||0!==p?p:0,!(d?Xe(d,v):i(l,v,n))){for(s=a;--s;){var g=u[s];if(!(g?Xe(g,v):i(t[s],v,n)))continue t}d&&d.push(v),l.push(p)}}return l}function Nr(t,e,n){var i=null==(t=Oo(t,e=bi(e,t)))?t:t[Do(Qo(e))];return null==i?r:Se(i,t,n)}function jr(t){return is(t)&&Tr(t)==_}function Lr(t,e,n,i,o){return t===e||(null==t||null==e||!is(t)&&!is(e)?t!=t&&e!=e:function(t,e,n,i,o,a){var s=Ka(t),u=Ka(e),c=s?m:_o(t),l=u?m:_o(e),f=(c=c==_?C:c)==C,h=(l=l==_?C:l)==C,d=c==l;if(d&&Va(t)){if(!Va(e))return!1;s=!0,f=!1}if(d&&!f)return a||(a=new Vn),s||hs(t)?ro(t,e,n,i,o,a):function(t,e,n,r,i,o,a){switch(n){case L:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case j:return!(t.byteLength!=e.byteLength||!o(new Ht(t),new Ht(e)));case y:case w:case A:return Za(+t,+e);case b:return t.name==e.name&&t.message==e.message;case R:case O:return t==e+"";case S:var s=sn;case x:var u=1&r;if(s||(s=ln),t.size!=e.size&&!u)return!1;var c=a.get(t);if(c)return c==e;r|=2,a.set(t,e);var l=ro(s(t),s(e),r,i,o,a);return a.delete(t),l;case I:if(Dn)return Dn.call(t)==Dn.call(e)}return!1}(t,e,c,n,i,o,a);if(!(1&n)){var p=f&&Pt.call(t,"__wrapped__"),v=h&&Pt.call(e,"__wrapped__");if(p||v){var g=p?t.value():t,k=v?e.value():e;return a||(a=new Vn),o(g,k,n,i,a)}}if(!d)return!1;return a||(a=new Vn),function(t,e,n,i,o,a){var s=1&n,u=oo(t),c=u.length,l=oo(e).length;if(c!=l&&!s)return!1;var f=c;for(;f--;){var h=u[f];if(!(s?h in e:Pt.call(e,h)))return!1}var d=a.get(t),p=a.get(e);if(d&&p)return d==e&&p==t;var v=!0;a.set(t,e),a.set(e,t);var g=s;for(;++f<c;){var _=t[h=u[f]],m=e[h];if(i)var y=s?i(m,_,h,e,t,a):i(_,m,h,t,e,a);if(!(y===r?_===m||o(_,m,n,i,a):y)){v=!1;break}g||(g="constructor"==h)}if(v&&!g){var w=t.constructor,b=e.constructor;w==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof b&&b instanceof b||(v=!1)}return a.delete(t),a.delete(e),v}(t,e,n,i,o,a)}(t,e,n,i,Lr,o))}function Br(t,e,n,i){var o=n.length,a=o,s=!i;if(null==t)return!a;for(t=Tt(t);o--;){var u=n[o];if(s&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++o<a;){var c=(u=n[o])[0],l=t[c],f=u[1];if(s&&u[2]){if(l===r&&!(c in t))return!1}else{var h=new Vn;if(i)var d=i(l,f,c,t,e,h);if(!(d===r?Lr(f,l,3,i,h):d))return!1}}return!0}function Pr(t){return!(!rs(t)||(e=t,zt&&zt in e))&&(ts(t)?qt:_t).test(Fo(t));var e}function Mr(t){return"function"==typeof t?t:null==t?au:"object"==typeof t?Ka(t)?Zr(t[0],t[1]):qr(t):vu(t)}function zr(t){if(!Co(t))return yn(t);var e=[];for(var n in Tt(t))Pt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Ur(t){if(!rs(t))return function(t){var e=[];if(null!=t)for(var n in Tt(t))e.push(n);return e}(t);var e=Co(t),n=[];for(var r in t)("constructor"!=r||!e&&Pt.call(t,r))&&n.push(r);return n}function Dr(t,e){return t<e}function Fr(t,e){var n=-1,r=Ga(t)?at(t.length):[];return pr(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}function qr(t){var e=ho(t);return 1==e.length&&e[0][2]?Ro(e[0][0],e[0][1]):function(n){return n===t||Br(n,t,e)}}function Zr(t,e){return Eo(t)&&To(e)?Ro(Do(t),e):function(n){var i=xs(n,t);return i===r&&i===e?Os(n,t):Lr(e,i,3)}}function Wr(t,e,n,i,o){t!==e&&wr(e,(function(a,s){if(o||(o=new Vn),rs(a))!function(t,e,n,i,o,a,s){var u=No(t,n),c=No(e,n),l=s.get(c);if(l)return void nr(t,n,l);var f=a?a(u,c,n+"",t,e,s):r,h=f===r;if(h){var d=Ka(c),p=!d&&Va(c),v=!d&&!p&&hs(c);f=c,d||p||v?Ka(u)?f=u:Ja(u)?f=Ii(u):p?(h=!1,f=Ai(c,!0)):v?(h=!1,f=Ti(c,!0)):f=[]:ss(c)||$a(c)?(f=u,$a(u)?f=ws(u):rs(u)&&!ts(u)||(f=yo(c))):h=!1}h&&(s.set(c,f),o(f,c,i,a,s),s.delete(c));nr(t,n,f)}(t,e,s,n,Wr,i,o);else{var u=i?i(No(t,s),a,s+"",t,e,o):r;u===r&&(u=a),nr(t,s,u)}}),Bs)}function Hr(t,e){var n=t.length;if(n)return bo(e+=e<0?n:0,n)?t[e]:r}function $r(t,e,n){e=e.length?Ne(e,(function(t){return Ka(t)?function(e){return Ar(e,1===t.length?t[0]:t)}:t})):[au];var r=-1;return e=Ne(e,Je(lo())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(Fr(t,(function(t,n,i){return{criteria:Ne(e,(function(e){return e(t)})),index:++r,value:t}})),(function(t,e){return function(t,e,n){var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;for(;++r<a;){var u=Ri(i[r],o[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function Kr(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=Ar(t,a);n(s,a)&&ei(o,bi(a,t),s)}return o}function Yr(t,e,n,r){var i=r?Fe:De,o=-1,a=e.length,s=t;for(t===e&&(e=Ii(e)),n&&(s=Ne(t,Je(n)));++o<a;)for(var u=0,c=e[o],l=n?n(c):c;(u=i(s,l,u,r))>-1;)s!==t&&Jt.call(s,u,1),Jt.call(t,u,1);return t}function Gr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;bo(i)?Jt.call(t,i,1):di(t,i)}}return t}function Jr(t,e){return t+_e(Sn()*(e-t+1))}function Vr(t,e){var n="";if(!t||e<1||e>d)return n;do{e%2&&(n+=t),(e=_e(e/2))&&(t+=t)}while(e);return n}function Xr(t,e){return Bo(xo(t,e,au),t+"")}function Qr(t){return Qn(Zs(t))}function ti(t,e){var n=Zs(t);return zo(n,cr(e,0,n.length))}function ei(t,e,n,i){if(!rs(t))return t;for(var o=-1,a=(e=bi(e,t)).length,s=a-1,u=t;null!=u&&++o<a;){var c=Do(e[o]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(o!=s){var f=u[c];(l=i?i(f,c,u):r)===r&&(l=rs(f)?f:bo(e[o+1])?[]:{})}rr(u,c,l),u=u[c]}return t}var ni=Nn?function(t,e){return Nn.set(t,e),t}:au,ri=le?function(t,e){return le(t,"toString",{configurable:!0,enumerable:!1,value:ru(e),writable:!0})}:au;function ii(t){return zo(Zs(t))}function oi(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=at(i);++r<i;)o[r]=t[r+e];return o}function ai(t,e){var n;return pr(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function si(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!fs(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return ui(t,e,au,n)}function ui(t,e,n,i){var o=0,a=null==t?0:t.length;if(0===a)return 0;for(var s=(e=n(e))!=e,u=null===e,c=fs(e),l=e===r;o<a;){var f=_e((o+a)/2),h=n(t[f]),d=h!==r,p=null===h,v=h==h,g=fs(h);if(s)var _=i||v;else _=l?v&&(i||d):u?v&&d&&(i||!p):c?v&&d&&!p&&(i||!g):!p&&!g&&(i?h<=e:h<e);_?o=f+1:a=f}return bn(a,4294967294)}function ci(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n],s=e?e(a):a;if(!n||!Za(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function li(t){return"number"==typeof t?t:fs(t)?p:+t}function fi(t){if("string"==typeof t)return t;if(Ka(t))return Ne(t,fi)+"";if(fs(t))return Fn?Fn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function hi(t,e,n){var r=-1,i=Oe,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=Ie;else if(o>=200){var c=e?null:Vi(t);if(c)return ln(c);a=!1,i=Xe,u=new Jn}else u=e?[]:s;t:for(;++r<o;){var l=t[r],f=e?e(l):l;if(l=n||0!==l?l:0,a&&f==f){for(var h=u.length;h--;)if(u[h]===f)continue t;e&&u.push(f),s.push(l)}else i(u,f,n)||(u!==s&&u.push(f),s.push(l))}return s}function di(t,e){return null==(t=Oo(t,e=bi(e,t)))||delete t[Do(Qo(e))]}function pi(t,e,n,r){return ei(t,e,n(Ar(t,e)),r)}function vi(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?oi(t,r?0:o,r?o+1:i):oi(t,r?o+1:0,r?i:o)}function gi(t,e){var n=t;return n instanceof $n&&(n=n.value()),Le(e,(function(t,e){return e.func.apply(e.thisArg,je([t],e.args))}),n)}function _i(t,e,n){var r=t.length;if(r<2)return r?hi(t[0]):[];for(var i=-1,o=at(r);++i<r;)for(var a=t[i],s=-1;++s<r;)s!=i&&(o[i]=dr(o[i]||a,t[s],e,n));return hi(yr(o,1),e,n)}function mi(t,e,n){for(var i=-1,o=t.length,a=e.length,s={};++i<o;){var u=i<a?e[i]:r;n(s,t[i],u)}return s}function yi(t){return Ja(t)?t:[]}function wi(t){return"function"==typeof t?t:au}function bi(t,e){return Ka(t)?t:Eo(t,e)?[t]:Uo(bs(t))}var ki=Xr;function Ei(t,e,n){var i=t.length;return n=n===r?i:n,!e&&n>=i?t:oi(t,e,n)}var Si=fe||function(t){return he.clearTimeout(t)};function Ai(t,e){if(e)return t.slice();var n=t.length,r=$t?$t(n):new t.constructor(n);return t.copy(r),r}function Ci(t){var e=new t.constructor(t.byteLength);return new Ht(e).set(new Ht(t)),e}function Ti(t,e){var n=e?Ci(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ri(t,e){if(t!==e){var n=t!==r,i=null===t,o=t==t,a=fs(t),s=e!==r,u=null===e,c=e==e,l=fs(e);if(!u&&!l&&!a&&t>e||a&&s&&c&&!u&&!l||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!l&&t<e||l&&n&&o&&!i&&!a||u&&n&&o||!s&&o||!c)return-1}return 0}function xi(t,e,n,r){for(var i=-1,o=t.length,a=n.length,s=-1,u=e.length,c=wn(o-a,0),l=at(u+c),f=!r;++s<u;)l[s]=e[s];for(;++i<a;)(f||i<o)&&(l[n[i]]=t[i]);for(;c--;)l[s++]=t[i++];return l}function Oi(t,e,n,r){for(var i=-1,o=t.length,a=-1,s=n.length,u=-1,c=e.length,l=wn(o-s,0),f=at(l+c),h=!r;++i<l;)f[i]=t[i];for(var d=i;++u<c;)f[d+u]=e[u];for(;++a<s;)(h||i<o)&&(f[d+n[a]]=t[i++]);return f}function Ii(t,e){var n=-1,r=t.length;for(e||(e=at(r));++n<r;)e[n]=t[n];return e}function Ni(t,e,n,i){var o=!n;n||(n={});for(var a=-1,s=e.length;++a<s;){var u=e[a],c=i?i(n[u],t[u],u,n,t):r;c===r&&(c=t[u]),o?sr(n,u,c):rr(n,u,c)}return n}function ji(t,e){return function(n,r){var i=Ka(n)?Ae:or,o=e?e():{};return i(n,t,lo(r,2),o)}}function Li(t){return Xr((function(e,n){var i=-1,o=n.length,a=o>1?n[o-1]:r,s=o>2?n[2]:r;for(a=t.length>3&&"function"==typeof a?(o--,a):r,s&&ko(n[0],n[1],s)&&(a=o<3?r:a,o=1),e=Tt(e);++i<o;){var u=n[i];u&&t(e,u,i,a)}return e}))}function Bi(t,e){return function(n,r){if(null==n)return n;if(!Ga(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=Tt(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Pi(t){return function(e,n,r){for(var i=-1,o=Tt(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}function Mi(t){return function(e){var n=an(e=bs(e))?dn(e):r,i=n?n[0]:e.charAt(0),o=n?Ei(n,1).join(""):e.slice(1);return i[t]()+o}}function zi(t){return function(e){return Le(tu($s(e).replace(Vt,"")),t,"")}}function Ui(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Zn(t.prototype),r=t.apply(n,e);return rs(r)?r:n}}function Di(t){return function(e,n,i){var o=Tt(e);if(!Ga(e)){var a=lo(n,3);e=Ls(e),n=function(t){return a(o[t],t,o)}}var s=t(e,n,i);return s>-1?o[a?e[s]:s]:r}}function Fi(t){return io((function(e){var n=e.length,o=n,a=Hn.prototype.thru;for(t&&e.reverse();o--;){var s=e[o];if("function"!=typeof s)throw new Ot(i);if(a&&!u&&"wrapper"==uo(s))var u=new Hn([],!0)}for(o=u?o:n;++o<n;){var c=uo(s=e[o]),l="wrapper"==c?so(s):r;u=l&&So(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[uo(l[0])].apply(u,l[3]):1==s.length&&So(s)?u[c]():u.thru(s)}return function(){var t=arguments,r=t[0];if(u&&1==t.length&&Ka(r))return u.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}}))}function qi(t,e,n,i,o,a,s,u,c,f){var h=e&l,d=1&e,p=2&e,v=24&e,g=512&e,_=p?r:Ui(t);return function r(){for(var l=arguments.length,m=at(l),y=l;y--;)m[y]=arguments[y];if(v)var w=co(r),b=en(m,w);if(i&&(m=xi(m,i,o,v)),a&&(m=Oi(m,a,s,v)),l-=b,v&&l<f){var k=cn(m,w);return Gi(t,e,qi,r.placeholder,n,m,k,u,c,f-l)}var E=d?n:this,S=p?E[t]:t;return l=m.length,u?m=Io(m,u):g&&l>1&&m.reverse(),h&&c<l&&(m.length=c),this&&this!==he&&this instanceof r&&(S=_||Ui(S)),S.apply(E,m)}}function Zi(t,e){return function(n,r){return function(t,e,n,r){return kr(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}function Wi(t,e){return function(n,i){var o;if(n===r&&i===r)return e;if(n!==r&&(o=n),i!==r){if(o===r)return i;"string"==typeof n||"string"==typeof i?(n=fi(n),i=fi(i)):(n=li(n),i=li(i)),o=t(n,i)}return o}}function Hi(t){return io((function(e){return e=Ne(e,Je(lo())),Xr((function(n){var r=this;return t(e,(function(t){return Se(t,r,n)}))}))}))}function $i(t,e){var n=(e=e===r?" ":fi(e)).length;if(n<2)return n?Vr(e,t):e;var i=Vr(e,ge(t/hn(e)));return an(e)?Ei(dn(i),0,t).join(""):i.slice(0,t)}function Ki(t){return function(e,n,i){return i&&"number"!=typeof i&&ko(e,n,i)&&(n=i=r),e=gs(e),n===r?(n=e,e=0):n=gs(n),function(t,e,n,r){for(var i=-1,o=wn(ge((e-t)/(n||1)),0),a=at(o);o--;)a[r?o:++i]=t,t+=n;return a}(e,n,i=i===r?e<n?1:-1:gs(i),t)}}function Yi(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ys(e),n=ys(n)),t(e,n)}}function Gi(t,e,n,i,o,a,s,l,f,h){var d=8&e;e|=d?u:c,4&(e&=~(d?c:u))||(e&=-4);var p=[t,e,o,d?a:r,d?s:r,d?r:a,d?r:s,l,f,h],v=n.apply(r,p);return So(t)&&jo(v,p),v.placeholder=i,Po(v,t,e)}function Ji(t){var e=Ct[t];return function(t,n){if(t=ys(t),(n=null==n?0:bn(_s(n),292))&&_n(t)){var r=(bs(t)+"e").split("e");return+((r=(bs(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Vi=xn&&1/ln(new xn([,-0]))[1]==h?function(t){return new xn(t)}:fu;function Xi(t){return function(e){var n=_o(e);return n==S?sn(e):n==x?fn(e):function(t,e){return Ne(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Qi(t,e,n,o,h,d,p,v){var g=2&e;if(!g&&"function"!=typeof t)throw new Ot(i);var _=o?o.length:0;if(_||(e&=-97,o=h=r),p=p===r?p:wn(_s(p),0),v=v===r?v:_s(v),_-=h?h.length:0,e&c){var m=o,y=h;o=h=r}var w=g?r:so(t),b=[t,e,n,o,h,m,y,d,p,v];if(w&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,s=r==l&&8==n||r==l&&n==f&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!o&&!s)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var u=e[3];if(u){var c=t[3];t[3]=c?xi(c,u,e[4]):u,t[4]=c?cn(t[3],a):e[4]}(u=e[5])&&(c=t[5],t[5]=c?Oi(c,u,e[6]):u,t[6]=c?cn(t[5],a):e[6]);(u=e[7])&&(t[7]=u);r&l&&(t[8]=null==t[8]?e[8]:bn(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=i}(b,w),t=b[0],e=b[1],n=b[2],o=b[3],h=b[4],!(v=b[9]=b[9]===r?g?0:t.length:wn(b[9]-_,0))&&24&e&&(e&=-25),e&&1!=e)k=8==e||e==s?function(t,e,n){var i=Ui(t);return function o(){for(var a=arguments.length,s=at(a),u=a,c=co(o);u--;)s[u]=arguments[u];var l=a<3&&s[0]!==c&&s[a-1]!==c?[]:cn(s,c);return(a-=l.length)<n?Gi(t,e,qi,o.placeholder,r,s,l,r,r,n-a):Se(this&&this!==he&&this instanceof o?i:t,this,s)}}(t,e,v):e!=u&&33!=e||h.length?qi.apply(r,b):function(t,e,n,r){var i=1&e,o=Ui(t);return function e(){for(var a=-1,s=arguments.length,u=-1,c=r.length,l=at(c+s),f=this&&this!==he&&this instanceof e?o:t;++u<c;)l[u]=r[u];for(;s--;)l[u++]=arguments[++a];return Se(f,i?n:this,l)}}(t,e,n,o);else var k=function(t,e,n){var r=1&e,i=Ui(t);return function e(){return(this&&this!==he&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,n);return Po((w?ni:jo)(k,b),t,e)}function to(t,e,n,i){return t===r||Za(t,jt[n])&&!Pt.call(i,n)?e:t}function eo(t,e,n,i,o,a){return rs(t)&&rs(e)&&(a.set(e,t),Wr(t,e,r,eo,a),a.delete(e)),t}function no(t){return ss(t)?r:t}function ro(t,e,n,i,o,a){var s=1&n,u=t.length,c=e.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(t),f=a.get(e);if(l&&f)return l==e&&f==t;var h=-1,d=!0,p=2&n?new Jn:r;for(a.set(t,e),a.set(e,t);++h<u;){var v=t[h],g=e[h];if(i)var _=s?i(g,v,h,e,t,a):i(v,g,h,t,e,a);if(_!==r){if(_)continue;d=!1;break}if(p){if(!Pe(e,(function(t,e){if(!Xe(p,e)&&(v===t||o(v,t,n,i,a)))return p.push(e)}))){d=!1;break}}else if(v!==g&&!o(v,g,n,i,a)){d=!1;break}}return a.delete(t),a.delete(e),d}function io(t){return Bo(xo(t,r,Yo),t+"")}function oo(t){return Cr(t,Ls,vo)}function ao(t){return Cr(t,Bs,go)}var so=Nn?function(t){return Nn.get(t)}:fu;function uo(t){for(var e=t.name+"",n=jn[e],r=Pt.call(jn,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function co(t){return(Pt.call(qn,"placeholder")?qn:t).placeholder}function lo(){var t=qn.iteratee||su;return t=t===su?Mr:t,arguments.length?t(arguments[0],arguments[1]):t}function fo(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function ho(t){for(var e=Ls(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,To(i)]}return e}function po(t,e){var n=function(t,e){return null==t?r:t[e]}(t,e);return Pr(n)?n:r}var vo=Me?function(t){return null==t?[]:(t=Tt(t),xe(Me(t),(function(e){return Gt.call(t,e)})))}:mu,go=Me?function(t){for(var e=[];t;)je(e,vo(t)),t=Kt(t);return e}:mu,_o=Tr;function mo(t,e,n){for(var r=-1,i=(e=bi(e,t)).length,o=!1;++r<i;){var a=Do(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&ns(i)&&bo(a,i)&&(Ka(t)||$a(t))}function yo(t){return"function"!=typeof t.constructor||Co(t)?{}:Zn(Kt(t))}function wo(t){return Ka(t)||$a(t)||!!(Qt&&t&&t[Qt])}function bo(t,e){var n=typeof t;return!!(e=null==e?d:e)&&("number"==n||"symbol"!=n&&yt.test(t))&&t>-1&&t%1==0&&t<e}function ko(t,e,n){if(!rs(n))return!1;var r=typeof e;return!!("number"==r?Ga(n)&&bo(e,n.length):"string"==r&&e in n)&&Za(n[e],t)}function Eo(t,e){if(Ka(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!fs(t))||(et.test(t)||!tt.test(t)||null!=e&&t in Tt(e))}function So(t){var e=uo(t),n=qn[e];if("function"!=typeof n||!(e in $n.prototype))return!1;if(t===n)return!0;var r=so(n);return!!r&&t===r[0]}(Cn&&_o(new Cn(new ArrayBuffer(1)))!=L||Tn&&_o(new Tn)!=S||Rn&&_o(Rn.resolve())!=T||xn&&_o(new xn)!=x||On&&_o(new On)!=N)&&(_o=function(t){var e=Tr(t),n=e==C?t.constructor:r,i=n?Fo(n):"";if(i)switch(i){case Ln:return L;case Bn:return S;case Pn:return T;case Mn:return x;case zn:return N}return e});var Ao=Lt?ts:yu;function Co(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||jt)}function To(t){return t==t&&!rs(t)}function Ro(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==r||t in Tt(n)))}}function xo(t,e,n){return e=wn(e===r?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=wn(r.length-e,0),a=at(o);++i<o;)a[i]=r[e+i];i=-1;for(var s=at(e+1);++i<e;)s[i]=r[i];return s[e]=n(a),Se(t,this,s)}}function Oo(t,e){return e.length<2?t:Ar(t,oi(e,0,-1))}function Io(t,e){for(var n=t.length,i=bn(e.length,n),o=Ii(t);i--;){var a=e[i];t[i]=bo(a,n)?o[a]:r}return t}function No(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var jo=Mo(ni),Lo=pe||function(t,e){return he.setTimeout(t,e)},Bo=Mo(ri);function Po(t,e,n){var r=e+"";return Bo(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(st,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Ce(g,(function(n){var r="_."+n[0];e&n[1]&&!Oe(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(ut);return e?e[1].split(ct):[]}(r),n)))}function Mo(t){var e=0,n=0;return function(){var i=kn(),o=16-(i-n);if(n=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(r,arguments)}}function zo(t,e){var n=-1,i=t.length,o=i-1;for(e=e===r?i:e;++n<e;){var a=Jr(n,o),s=t[a];t[a]=t[n],t[n]=s}return t.length=e,t}var Uo=function(t){var e=Ma(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(nt,(function(t,n,r,i){e.push(r?i.replace(ht,"$1"):n||t)})),e}));function Do(t){if("string"==typeof t||fs(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Fo(t){if(null!=t){try{return Bt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function qo(t){if(t instanceof $n)return t.clone();var e=new Hn(t.__wrapped__,t.__chain__);return e.__actions__=Ii(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Zo=Xr((function(t,e){return Ja(t)?dr(t,yr(e,1,Ja,!0)):[]})),Wo=Xr((function(t,e){var n=Qo(e);return Ja(n)&&(n=r),Ja(t)?dr(t,yr(e,1,Ja,!0),lo(n,2)):[]})),Ho=Xr((function(t,e){var n=Qo(e);return Ja(n)&&(n=r),Ja(t)?dr(t,yr(e,1,Ja,!0),r,n):[]}));function $o(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:_s(n);return i<0&&(i=wn(r+i,0)),Ue(t,lo(e,3),i)}function Ko(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=i-1;return n!==r&&(o=_s(n),o=n<0?wn(i+o,0):bn(o,i-1)),Ue(t,lo(e,3),o,!0)}function Yo(t){return(null==t?0:t.length)?yr(t,1):[]}function Go(t){return t&&t.length?t[0]:r}var Jo=Xr((function(t){var e=Ne(t,yi);return e.length&&e[0]===t[0]?Ir(e):[]})),Vo=Xr((function(t){var e=Qo(t),n=Ne(t,yi);return e===Qo(n)?e=r:n.pop(),n.length&&n[0]===t[0]?Ir(n,lo(e,2)):[]})),Xo=Xr((function(t){var e=Qo(t),n=Ne(t,yi);return(e="function"==typeof e?e:r)&&n.pop(),n.length&&n[0]===t[0]?Ir(n,r,e):[]}));function Qo(t){var e=null==t?0:t.length;return e?t[e-1]:r}var ta=Xr(ea);function ea(t,e){return t&&t.length&&e&&e.length?Yr(t,e):t}var na=io((function(t,e){var n=null==t?0:t.length,r=ur(t,e);return Gr(t,Ne(e,(function(t){return bo(t,n)?+t:t})).sort(Ri)),r}));function ra(t){return null==t?t:An.call(t)}var ia=Xr((function(t){return hi(yr(t,1,Ja,!0))})),oa=Xr((function(t){var e=Qo(t);return Ja(e)&&(e=r),hi(yr(t,1,Ja,!0),lo(e,2))})),aa=Xr((function(t){var e=Qo(t);return e="function"==typeof e?e:r,hi(yr(t,1,Ja,!0),r,e)}));function sa(t){if(!t||!t.length)return[];var e=0;return t=xe(t,(function(t){if(Ja(t))return e=wn(t.length,e),!0})),Ye(e,(function(e){return Ne(t,We(e))}))}function ua(t,e){if(!t||!t.length)return[];var n=sa(t);return null==e?n:Ne(n,(function(t){return Se(e,r,t)}))}var ca=Xr((function(t,e){return Ja(t)?dr(t,e):[]})),la=Xr((function(t){return _i(xe(t,Ja))})),fa=Xr((function(t){var e=Qo(t);return Ja(e)&&(e=r),_i(xe(t,Ja),lo(e,2))})),ha=Xr((function(t){var e=Qo(t);return e="function"==typeof e?e:r,_i(xe(t,Ja),r,e)})),da=Xr(sa);var pa=Xr((function(t){var e=t.length,n=e>1?t[e-1]:r;return n="function"==typeof n?(t.pop(),n):r,ua(t,n)}));function va(t){var e=qn(t);return e.__chain__=!0,e}function ga(t,e){return e(t)}var _a=io((function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,o=function(e){return ur(e,t)};return!(e>1||this.__actions__.length)&&i instanceof $n&&bo(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:ga,args:[o],thisArg:r}),new Hn(i,this.__chain__).thru((function(t){return e&&!t.length&&t.push(r),t}))):this.thru(o)}));var ma=ji((function(t,e,n){Pt.call(t,n)?++t[n]:sr(t,n,1)}));var ya=Di($o),wa=Di(Ko);function ba(t,e){return(Ka(t)?Ce:pr)(t,lo(e,3))}function ka(t,e){return(Ka(t)?Te:vr)(t,lo(e,3))}var Ea=ji((function(t,e,n){Pt.call(t,n)?t[n].push(e):sr(t,n,[e])}));var Sa=Xr((function(t,e,n){var r=-1,i="function"==typeof e,o=Ga(t)?at(t.length):[];return pr(t,(function(t){o[++r]=i?Se(e,t,n):Nr(t,e,n)})),o})),Aa=ji((function(t,e,n){sr(t,n,e)}));function Ca(t,e){return(Ka(t)?Ne:Fr)(t,lo(e,3))}var Ta=ji((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var Ra=Xr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&ko(t,e[0],e[1])?e=[]:n>2&&ko(e[0],e[1],e[2])&&(e=[e[0]]),$r(t,yr(e,1),[])})),xa=de||function(){return he.Date.now()};function Oa(t,e,n){return e=n?r:e,e=t&&null==e?t.length:e,Qi(t,l,r,r,r,r,e)}function Ia(t,e){var n;if("function"!=typeof e)throw new Ot(i);return t=_s(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=r),n}}var Na=Xr((function(t,e,n){var r=1;if(n.length){var i=cn(n,co(Na));r|=u}return Qi(t,r,e,n,i)})),ja=Xr((function(t,e,n){var r=3;if(n.length){var i=cn(n,co(ja));r|=u}return Qi(e,r,t,n,i)}));function La(t,e,n){var o,a,s,u,c,l,f=0,h=!1,d=!1,p=!0;if("function"!=typeof t)throw new Ot(i);function v(e){var n=o,i=a;return o=a=r,f=e,u=t.apply(i,n)}function g(t){return f=t,c=Lo(m,e),h?v(t):u}function _(t){var n=t-l;return l===r||n>=e||n<0||d&&t-f>=s}function m(){var t=xa();if(_(t))return y(t);c=Lo(m,function(t){var n=e-(t-l);return d?bn(n,s-(t-f)):n}(t))}function y(t){return c=r,p&&o?v(t):(o=a=r,u)}function w(){var t=xa(),n=_(t);if(o=arguments,a=this,l=t,n){if(c===r)return g(l);if(d)return Si(c),c=Lo(m,e),v(l)}return c===r&&(c=Lo(m,e)),u}return e=ys(e)||0,rs(n)&&(h=!!n.leading,s=(d="maxWait"in n)?wn(ys(n.maxWait)||0,e):s,p="trailing"in n?!!n.trailing:p),w.cancel=function(){c!==r&&Si(c),f=0,o=l=a=c=r},w.flush=function(){return c===r?u:y(xa())},w}var Ba=Xr((function(t,e){return hr(t,1,e)})),Pa=Xr((function(t,e,n){return hr(t,ys(e)||0,n)}));function Ma(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Ot(i);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ma.Cache||Gn),n}function za(t){if("function"!=typeof t)throw new Ot(i);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ma.Cache=Gn;var Ua=ki((function(t,e){var n=(e=1==e.length&&Ka(e[0])?Ne(e[0],Je(lo())):Ne(yr(e,1),Je(lo()))).length;return Xr((function(r){for(var i=-1,o=bn(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return Se(t,this,r)}))})),Da=Xr((function(t,e){var n=cn(e,co(Da));return Qi(t,u,r,e,n)})),Fa=Xr((function(t,e){var n=cn(e,co(Fa));return Qi(t,c,r,e,n)})),qa=io((function(t,e){return Qi(t,f,r,r,r,e)}));function Za(t,e){return t===e||t!=t&&e!=e}var Wa=Yi(Rr),Ha=Yi((function(t,e){return t>=e})),$a=jr(function(){return arguments}())?jr:function(t){return is(t)&&Pt.call(t,"callee")&&!Gt.call(t,"callee")},Ka=at.isArray,Ya=me?Je(me):function(t){return is(t)&&Tr(t)==j};function Ga(t){return null!=t&&ns(t.length)&&!ts(t)}function Ja(t){return is(t)&&Ga(t)}var Va=He||yu,Xa=ye?Je(ye):function(t){return is(t)&&Tr(t)==w};function Qa(t){if(!is(t))return!1;var e=Tr(t);return e==b||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ss(t)}function ts(t){if(!rs(t))return!1;var e=Tr(t);return e==k||e==E||"[object AsyncFunction]"==e||"[object Proxy]"==e}function es(t){return"number"==typeof t&&t==_s(t)}function ns(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=d}function rs(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function is(t){return null!=t&&"object"==typeof t}var os=we?Je(we):function(t){return is(t)&&_o(t)==S};function as(t){return"number"==typeof t||is(t)&&Tr(t)==A}function ss(t){if(!is(t)||Tr(t)!=C)return!1;var e=Kt(t);if(null===e)return!0;var n=Pt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Bt.call(n)==Dt}var us=be?Je(be):function(t){return is(t)&&Tr(t)==R};var cs=ke?Je(ke):function(t){return is(t)&&_o(t)==x};function ls(t){return"string"==typeof t||!Ka(t)&&is(t)&&Tr(t)==O}function fs(t){return"symbol"==typeof t||is(t)&&Tr(t)==I}var hs=Ee?Je(Ee):function(t){return is(t)&&ns(t.length)&&!!oe[Tr(t)]};var ds=Yi(Dr),ps=Yi((function(t,e){return t<=e}));function vs(t){if(!t)return[];if(Ga(t))return ls(t)?dn(t):Ii(t);if(ee&&t[ee])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[ee]());var e=_o(t);return(e==S?sn:e==x?ln:Zs)(t)}function gs(t){return t?(t=ys(t))===h||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function _s(t){var e=gs(t),n=e%1;return e==e?n?e-n:e:0}function ms(t){return t?cr(_s(t),0,v):0}function ys(t){if("number"==typeof t)return t;if(fs(t))return p;if(rs(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=rs(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ge(t);var n=gt.test(t);return n||mt.test(t)?ce(t.slice(2),n?2:8):vt.test(t)?p:+t}function ws(t){return Ni(t,Bs(t))}function bs(t){return null==t?"":fi(t)}var ks=Li((function(t,e){if(Co(e)||Ga(e))Ni(e,Ls(e),t);else for(var n in e)Pt.call(e,n)&&rr(t,n,e[n])})),Es=Li((function(t,e){Ni(e,Bs(e),t)})),Ss=Li((function(t,e,n,r){Ni(e,Bs(e),t,r)})),As=Li((function(t,e,n,r){Ni(e,Ls(e),t,r)})),Cs=io(ur);var Ts=Xr((function(t,e){t=Tt(t);var n=-1,i=e.length,o=i>2?e[2]:r;for(o&&ko(e[0],e[1],o)&&(i=1);++n<i;)for(var a=e[n],s=Bs(a),u=-1,c=s.length;++u<c;){var l=s[u],f=t[l];(f===r||Za(f,jt[l])&&!Pt.call(t,l))&&(t[l]=a[l])}return t})),Rs=Xr((function(t){return t.push(r,eo),Se(Ms,r,t)}));function xs(t,e,n){var i=null==t?r:Ar(t,e);return i===r?n:i}function Os(t,e){return null!=t&&mo(t,e,Or)}var Is=Zi((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Ut.call(e)),t[e]=n}),ru(au)),Ns=Zi((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Ut.call(e)),Pt.call(t,e)?t[e].push(n):t[e]=[n]}),lo),js=Xr(Nr);function Ls(t){return Ga(t)?Xn(t):zr(t)}function Bs(t){return Ga(t)?Xn(t,!0):Ur(t)}var Ps=Li((function(t,e,n){Wr(t,e,n)})),Ms=Li((function(t,e,n,r){Wr(t,e,n,r)})),zs=io((function(t,e){var n={};if(null==t)return n;var r=!1;e=Ne(e,(function(e){return e=bi(e,t),r||(r=e.length>1),e})),Ni(t,ao(t),n),r&&(n=lr(n,7,no));for(var i=e.length;i--;)di(n,e[i]);return n}));var Us=io((function(t,e){return null==t?{}:function(t,e){return Kr(t,e,(function(e,n){return Os(t,n)}))}(t,e)}));function Ds(t,e){if(null==t)return{};var n=Ne(ao(t),(function(t){return[t]}));return e=lo(e),Kr(t,n,(function(t,n){return e(t,n[0])}))}var Fs=Xi(Ls),qs=Xi(Bs);function Zs(t){return null==t?[]:Ve(t,Ls(t))}var Ws=zi((function(t,e,n){return e=e.toLowerCase(),t+(n?Hs(e):e)}));function Hs(t){return Qs(bs(t).toLowerCase())}function $s(t){return(t=bs(t))&&t.replace(wt,nn).replace(Xt,"")}var Ks=zi((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Ys=zi((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Gs=Mi("toLowerCase");var Js=zi((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Vs=zi((function(t,e,n){return t+(n?" ":"")+Qs(e)}));var Xs=zi((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Qs=Mi("toUpperCase");function tu(t,e,n){return t=bs(t),(e=n?r:e)===r?function(t){return ne.test(t)}(t)?function(t){return t.match(te)||[]}(t):function(t){return t.match(lt)||[]}(t):t.match(e)||[]}var eu=Xr((function(t,e){try{return Se(t,r,e)}catch(t){return Qa(t)?t:new St(t)}})),nu=io((function(t,e){return Ce(e,(function(e){e=Do(e),sr(t,e,Na(t[e],t))})),t}));function ru(t){return function(){return t}}var iu=Fi(),ou=Fi(!0);function au(t){return t}function su(t){return Mr("function"==typeof t?t:lr(t,1))}var uu=Xr((function(t,e){return function(n){return Nr(n,t,e)}})),cu=Xr((function(t,e){return function(n){return Nr(t,n,e)}}));function lu(t,e,n){var r=Ls(e),i=Sr(e,r);null!=n||rs(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=Sr(e,Ls(e)));var o=!(rs(n)&&"chain"in n&&!n.chain),a=ts(t);return Ce(i,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=Ii(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,je([this.value()],arguments))})})),t}function fu(){}var hu=Hi(Ne),du=Hi(Re),pu=Hi(Pe);function vu(t){return Eo(t)?We(Do(t)):function(t){return function(e){return Ar(e,t)}}(t)}var gu=Ki(),_u=Ki(!0);function mu(){return[]}function yu(){return!1}var wu=Wi((function(t,e){return t+e}),0),bu=Ji("ceil"),ku=Wi((function(t,e){return t/e}),1),Eu=Ji("floor");var Su,Au=Wi((function(t,e){return t*e}),1),Cu=Ji("round"),Tu=Wi((function(t,e){return t-e}),0);return qn.after=function(t,e){if("function"!=typeof e)throw new Ot(i);return t=_s(t),function(){if(--t<1)return e.apply(this,arguments)}},qn.ary=Oa,qn.assign=ks,qn.assignIn=Es,qn.assignInWith=Ss,qn.assignWith=As,qn.at=Cs,qn.before=Ia,qn.bind=Na,qn.bindAll=nu,qn.bindKey=ja,qn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ka(t)?t:[t]},qn.chain=va,qn.chunk=function(t,e,n){e=(n?ko(t,e,n):e===r)?1:wn(_s(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,a=0,s=at(ge(i/e));o<i;)s[a++]=oi(t,o,o+=e);return s},qn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},qn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=at(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return je(Ka(n)?Ii(n):[n],yr(e,1))},qn.cond=function(t){var e=null==t?0:t.length,n=lo();return t=e?Ne(t,(function(t){if("function"!=typeof t[1])throw new Ot(i);return[n(t[0]),t[1]]})):[],Xr((function(n){for(var r=-1;++r<e;){var i=t[r];if(Se(i[0],this,n))return Se(i[1],this,n)}}))},qn.conforms=function(t){return function(t){var e=Ls(t);return function(n){return fr(n,t,e)}}(lr(t,1))},qn.constant=ru,qn.countBy=ma,qn.create=function(t,e){var n=Zn(t);return null==e?n:ar(n,e)},qn.curry=function t(e,n,i){var o=Qi(e,8,r,r,r,r,r,n=i?r:n);return o.placeholder=t.placeholder,o},qn.curryRight=function t(e,n,i){var o=Qi(e,s,r,r,r,r,r,n=i?r:n);return o.placeholder=t.placeholder,o},qn.debounce=La,qn.defaults=Ts,qn.defaultsDeep=Rs,qn.defer=Ba,qn.delay=Pa,qn.difference=Zo,qn.differenceBy=Wo,qn.differenceWith=Ho,qn.drop=function(t,e,n){var i=null==t?0:t.length;return i?oi(t,(e=n||e===r?1:_s(e))<0?0:e,i):[]},qn.dropRight=function(t,e,n){var i=null==t?0:t.length;return i?oi(t,0,(e=i-(e=n||e===r?1:_s(e)))<0?0:e):[]},qn.dropRightWhile=function(t,e){return t&&t.length?vi(t,lo(e,3),!0,!0):[]},qn.dropWhile=function(t,e){return t&&t.length?vi(t,lo(e,3),!0):[]},qn.fill=function(t,e,n,i){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&ko(t,e,n)&&(n=0,i=o),function(t,e,n,i){var o=t.length;for((n=_s(n))<0&&(n=-n>o?0:o+n),(i=i===r||i>o?o:_s(i))<0&&(i+=o),i=n>i?0:ms(i);n<i;)t[n++]=e;return t}(t,e,n,i)):[]},qn.filter=function(t,e){return(Ka(t)?xe:mr)(t,lo(e,3))},qn.flatMap=function(t,e){return yr(Ca(t,e),1)},qn.flatMapDeep=function(t,e){return yr(Ca(t,e),h)},qn.flatMapDepth=function(t,e,n){return n=n===r?1:_s(n),yr(Ca(t,e),n)},qn.flatten=Yo,qn.flattenDeep=function(t){return(null==t?0:t.length)?yr(t,h):[]},qn.flattenDepth=function(t,e){return(null==t?0:t.length)?yr(t,e=e===r?1:_s(e)):[]},qn.flip=function(t){return Qi(t,512)},qn.flow=iu,qn.flowRight=ou,qn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},qn.functions=function(t){return null==t?[]:Sr(t,Ls(t))},qn.functionsIn=function(t){return null==t?[]:Sr(t,Bs(t))},qn.groupBy=Ea,qn.initial=function(t){return(null==t?0:t.length)?oi(t,0,-1):[]},qn.intersection=Jo,qn.intersectionBy=Vo,qn.intersectionWith=Xo,qn.invert=Is,qn.invertBy=Ns,qn.invokeMap=Sa,qn.iteratee=su,qn.keyBy=Aa,qn.keys=Ls,qn.keysIn=Bs,qn.map=Ca,qn.mapKeys=function(t,e){var n={};return e=lo(e,3),kr(t,(function(t,r,i){sr(n,e(t,r,i),t)})),n},qn.mapValues=function(t,e){var n={};return e=lo(e,3),kr(t,(function(t,r,i){sr(n,r,e(t,r,i))})),n},qn.matches=function(t){return qr(lr(t,1))},qn.matchesProperty=function(t,e){return Zr(t,lr(e,1))},qn.memoize=Ma,qn.merge=Ps,qn.mergeWith=Ms,qn.method=uu,qn.methodOf=cu,qn.mixin=lu,qn.negate=za,qn.nthArg=function(t){return t=_s(t),Xr((function(e){return Hr(e,t)}))},qn.omit=zs,qn.omitBy=function(t,e){return Ds(t,za(lo(e)))},qn.once=function(t){return Ia(2,t)},qn.orderBy=function(t,e,n,i){return null==t?[]:(Ka(e)||(e=null==e?[]:[e]),Ka(n=i?r:n)||(n=null==n?[]:[n]),$r(t,e,n))},qn.over=hu,qn.overArgs=Ua,qn.overEvery=du,qn.overSome=pu,qn.partial=Da,qn.partialRight=Fa,qn.partition=Ta,qn.pick=Us,qn.pickBy=Ds,qn.property=vu,qn.propertyOf=function(t){return function(e){return null==t?r:Ar(t,e)}},qn.pull=ta,qn.pullAll=ea,qn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Yr(t,e,lo(n,2)):t},qn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Yr(t,e,r,n):t},qn.pullAt=na,qn.range=gu,qn.rangeRight=_u,qn.rearg=qa,qn.reject=function(t,e){return(Ka(t)?xe:mr)(t,za(lo(e,3)))},qn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=lo(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return Gr(t,i),n},qn.rest=function(t,e){if("function"!=typeof t)throw new Ot(i);return Xr(t,e=e===r?e:_s(e))},qn.reverse=ra,qn.sampleSize=function(t,e,n){return e=(n?ko(t,e,n):e===r)?1:_s(e),(Ka(t)?tr:ti)(t,e)},qn.set=function(t,e,n){return null==t?t:ei(t,e,n)},qn.setWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:ei(t,e,n,i)},qn.shuffle=function(t){return(Ka(t)?er:ii)(t)},qn.slice=function(t,e,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&ko(t,e,n)?(e=0,n=i):(e=null==e?0:_s(e),n=n===r?i:_s(n)),oi(t,e,n)):[]},qn.sortBy=Ra,qn.sortedUniq=function(t){return t&&t.length?ci(t):[]},qn.sortedUniqBy=function(t,e){return t&&t.length?ci(t,lo(e,2)):[]},qn.split=function(t,e,n){return n&&"number"!=typeof n&&ko(t,e,n)&&(e=n=r),(n=n===r?v:n>>>0)?(t=bs(t))&&("string"==typeof e||null!=e&&!us(e))&&!(e=fi(e))&&an(t)?Ei(dn(t),0,n):t.split(e,n):[]},qn.spread=function(t,e){if("function"!=typeof t)throw new Ot(i);return e=null==e?0:wn(_s(e),0),Xr((function(n){var r=n[e],i=Ei(n,0,e);return r&&je(i,r),Se(t,this,i)}))},qn.tail=function(t){var e=null==t?0:t.length;return e?oi(t,1,e):[]},qn.take=function(t,e,n){return t&&t.length?oi(t,0,(e=n||e===r?1:_s(e))<0?0:e):[]},qn.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?oi(t,(e=i-(e=n||e===r?1:_s(e)))<0?0:e,i):[]},qn.takeRightWhile=function(t,e){return t&&t.length?vi(t,lo(e,3),!1,!0):[]},qn.takeWhile=function(t,e){return t&&t.length?vi(t,lo(e,3)):[]},qn.tap=function(t,e){return e(t),t},qn.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new Ot(i);return rs(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),La(t,e,{leading:r,maxWait:e,trailing:o})},qn.thru=ga,qn.toArray=vs,qn.toPairs=Fs,qn.toPairsIn=qs,qn.toPath=function(t){return Ka(t)?Ne(t,Do):fs(t)?[t]:Ii(Uo(bs(t)))},qn.toPlainObject=ws,qn.transform=function(t,e,n){var r=Ka(t),i=r||Va(t)||hs(t);if(e=lo(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:rs(t)&&ts(o)?Zn(Kt(t)):{}}return(i?Ce:kr)(t,(function(t,r,i){return e(n,t,r,i)})),n},qn.unary=function(t){return Oa(t,1)},qn.union=ia,qn.unionBy=oa,qn.unionWith=aa,qn.uniq=function(t){return t&&t.length?hi(t):[]},qn.uniqBy=function(t,e){return t&&t.length?hi(t,lo(e,2)):[]},qn.uniqWith=function(t,e){return e="function"==typeof e?e:r,t&&t.length?hi(t,r,e):[]},qn.unset=function(t,e){return null==t||di(t,e)},qn.unzip=sa,qn.unzipWith=ua,qn.update=function(t,e,n){return null==t?t:pi(t,e,wi(n))},qn.updateWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:pi(t,e,wi(n),i)},qn.values=Zs,qn.valuesIn=function(t){return null==t?[]:Ve(t,Bs(t))},qn.without=ca,qn.words=tu,qn.wrap=function(t,e){return Da(wi(e),t)},qn.xor=la,qn.xorBy=fa,qn.xorWith=ha,qn.zip=da,qn.zipObject=function(t,e){return mi(t||[],e||[],rr)},qn.zipObjectDeep=function(t,e){return mi(t||[],e||[],ei)},qn.zipWith=pa,qn.entries=Fs,qn.entriesIn=qs,qn.extend=Es,qn.extendWith=Ss,lu(qn,qn),qn.add=wu,qn.attempt=eu,qn.camelCase=Ws,qn.capitalize=Hs,qn.ceil=bu,qn.clamp=function(t,e,n){return n===r&&(n=e,e=r),n!==r&&(n=(n=ys(n))==n?n:0),e!==r&&(e=(e=ys(e))==e?e:0),cr(ys(t),e,n)},qn.clone=function(t){return lr(t,4)},qn.cloneDeep=function(t){return lr(t,5)},qn.cloneDeepWith=function(t,e){return lr(t,5,e="function"==typeof e?e:r)},qn.cloneWith=function(t,e){return lr(t,4,e="function"==typeof e?e:r)},qn.conformsTo=function(t,e){return null==e||fr(t,e,Ls(e))},qn.deburr=$s,qn.defaultTo=function(t,e){return null==t||t!=t?e:t},qn.divide=ku,qn.endsWith=function(t,e,n){t=bs(t),e=fi(e);var i=t.length,o=n=n===r?i:cr(_s(n),0,i);return(n-=e.length)>=0&&t.slice(n,o)==e},qn.eq=Za,qn.escape=function(t){return(t=bs(t))&&J.test(t)?t.replace(Y,rn):t},qn.escapeRegExp=function(t){return(t=bs(t))&&it.test(t)?t.replace(rt,"\\$&"):t},qn.every=function(t,e,n){var i=Ka(t)?Re:gr;return n&&ko(t,e,n)&&(e=r),i(t,lo(e,3))},qn.find=ya,qn.findIndex=$o,qn.findKey=function(t,e){return ze(t,lo(e,3),kr)},qn.findLast=wa,qn.findLastIndex=Ko,qn.findLastKey=function(t,e){return ze(t,lo(e,3),Er)},qn.floor=Eu,qn.forEach=ba,qn.forEachRight=ka,qn.forIn=function(t,e){return null==t?t:wr(t,lo(e,3),Bs)},qn.forInRight=function(t,e){return null==t?t:br(t,lo(e,3),Bs)},qn.forOwn=function(t,e){return t&&kr(t,lo(e,3))},qn.forOwnRight=function(t,e){return t&&Er(t,lo(e,3))},qn.get=xs,qn.gt=Wa,qn.gte=Ha,qn.has=function(t,e){return null!=t&&mo(t,e,xr)},qn.hasIn=Os,qn.head=Go,qn.identity=au,qn.includes=function(t,e,n,r){t=Ga(t)?t:Zs(t),n=n&&!r?_s(n):0;var i=t.length;return n<0&&(n=wn(i+n,0)),ls(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&De(t,e,n)>-1},qn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:_s(n);return i<0&&(i=wn(r+i,0)),De(t,e,i)},qn.inRange=function(t,e,n){return e=gs(e),n===r?(n=e,e=0):n=gs(n),function(t,e,n){return t>=bn(e,n)&&t<wn(e,n)}(t=ys(t),e,n)},qn.invoke=js,qn.isArguments=$a,qn.isArray=Ka,qn.isArrayBuffer=Ya,qn.isArrayLike=Ga,qn.isArrayLikeObject=Ja,qn.isBoolean=function(t){return!0===t||!1===t||is(t)&&Tr(t)==y},qn.isBuffer=Va,qn.isDate=Xa,qn.isElement=function(t){return is(t)&&1===t.nodeType&&!ss(t)},qn.isEmpty=function(t){if(null==t)return!0;if(Ga(t)&&(Ka(t)||"string"==typeof t||"function"==typeof t.splice||Va(t)||hs(t)||$a(t)))return!t.length;var e=_o(t);if(e==S||e==x)return!t.size;if(Co(t))return!zr(t).length;for(var n in t)if(Pt.call(t,n))return!1;return!0},qn.isEqual=function(t,e){return Lr(t,e)},qn.isEqualWith=function(t,e,n){var i=(n="function"==typeof n?n:r)?n(t,e):r;return i===r?Lr(t,e,r,n):!!i},qn.isError=Qa,qn.isFinite=function(t){return"number"==typeof t&&_n(t)},qn.isFunction=ts,qn.isInteger=es,qn.isLength=ns,qn.isMap=os,qn.isMatch=function(t,e){return t===e||Br(t,e,ho(e))},qn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:r,Br(t,e,ho(e),n)},qn.isNaN=function(t){return as(t)&&t!=+t},qn.isNative=function(t){if(Ao(t))throw new St("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pr(t)},qn.isNil=function(t){return null==t},qn.isNull=function(t){return null===t},qn.isNumber=as,qn.isObject=rs,qn.isObjectLike=is,qn.isPlainObject=ss,qn.isRegExp=us,qn.isSafeInteger=function(t){return es(t)&&t>=-9007199254740991&&t<=d},qn.isSet=cs,qn.isString=ls,qn.isSymbol=fs,qn.isTypedArray=hs,qn.isUndefined=function(t){return t===r},qn.isWeakMap=function(t){return is(t)&&_o(t)==N},qn.isWeakSet=function(t){return is(t)&&"[object WeakSet]"==Tr(t)},qn.join=function(t,e){return null==t?"":mn.call(t,e)},qn.kebabCase=Ks,qn.last=Qo,qn.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=i;return n!==r&&(o=(o=_s(n))<0?wn(i+o,0):bn(o,i-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):Ue(t,qe,o,!0)},qn.lowerCase=Ys,qn.lowerFirst=Gs,qn.lt=ds,qn.lte=ps,qn.max=function(t){return t&&t.length?_r(t,au,Rr):r},qn.maxBy=function(t,e){return t&&t.length?_r(t,lo(e,2),Rr):r},qn.mean=function(t){return Ze(t,au)},qn.meanBy=function(t,e){return Ze(t,lo(e,2))},qn.min=function(t){return t&&t.length?_r(t,au,Dr):r},qn.minBy=function(t,e){return t&&t.length?_r(t,lo(e,2),Dr):r},qn.stubArray=mu,qn.stubFalse=yu,qn.stubObject=function(){return{}},qn.stubString=function(){return""},qn.stubTrue=function(){return!0},qn.multiply=Au,qn.nth=function(t,e){return t&&t.length?Hr(t,_s(e)):r},qn.noConflict=function(){return he._===this&&(he._=Ft),this},qn.noop=fu,qn.now=xa,qn.pad=function(t,e,n){t=bs(t);var r=(e=_s(e))?hn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return $i(_e(i),n)+t+$i(ge(i),n)},qn.padEnd=function(t,e,n){t=bs(t);var r=(e=_s(e))?hn(t):0;return e&&r<e?t+$i(e-r,n):t},qn.padStart=function(t,e,n){t=bs(t);var r=(e=_s(e))?hn(t):0;return e&&r<e?$i(e-r,n)+t:t},qn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),En(bs(t).replace(ot,""),e||0)},qn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&ko(t,e,n)&&(e=n=r),n===r&&("boolean"==typeof e?(n=e,e=r):"boolean"==typeof t&&(n=t,t=r)),t===r&&e===r?(t=0,e=1):(t=gs(t),e===r?(e=t,t=0):e=gs(e)),t>e){var i=t;t=e,e=i}if(n||t%1||e%1){var o=Sn();return bn(t+o*(e-t+ue("1e-"+((o+"").length-1))),e)}return Jr(t,e)},qn.reduce=function(t,e,n){var r=Ka(t)?Le:$e,i=arguments.length<3;return r(t,lo(e,4),n,i,pr)},qn.reduceRight=function(t,e,n){var r=Ka(t)?Be:$e,i=arguments.length<3;return r(t,lo(e,4),n,i,vr)},qn.repeat=function(t,e,n){return e=(n?ko(t,e,n):e===r)?1:_s(e),Vr(bs(t),e)},qn.replace=function(){var t=arguments,e=bs(t[0]);return t.length<3?e:e.replace(t[1],t[2])},qn.result=function(t,e,n){var i=-1,o=(e=bi(e,t)).length;for(o||(o=1,t=r);++i<o;){var a=null==t?r:t[Do(e[i])];a===r&&(i=o,a=n),t=ts(a)?a.call(t):a}return t},qn.round=Cu,qn.runInContext=t,qn.sample=function(t){return(Ka(t)?Qn:Qr)(t)},qn.size=function(t){if(null==t)return 0;if(Ga(t))return ls(t)?hn(t):t.length;var e=_o(t);return e==S||e==x?t.size:zr(t).length},qn.snakeCase=Js,qn.some=function(t,e,n){var i=Ka(t)?Pe:ai;return n&&ko(t,e,n)&&(e=r),i(t,lo(e,3))},qn.sortedIndex=function(t,e){return si(t,e)},qn.sortedIndexBy=function(t,e,n){return ui(t,e,lo(n,2))},qn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=si(t,e);if(r<n&&Za(t[r],e))return r}return-1},qn.sortedLastIndex=function(t,e){return si(t,e,!0)},qn.sortedLastIndexBy=function(t,e,n){return ui(t,e,lo(n,2),!0)},qn.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=si(t,e,!0)-1;if(Za(t[n],e))return n}return-1},qn.startCase=Vs,qn.startsWith=function(t,e,n){return t=bs(t),n=null==n?0:cr(_s(n),0,t.length),e=fi(e),t.slice(n,n+e.length)==e},qn.subtract=Tu,qn.sum=function(t){return t&&t.length?Ke(t,au):0},qn.sumBy=function(t,e){return t&&t.length?Ke(t,lo(e,2)):0},qn.template=function(t,e,n){var i=qn.templateSettings;n&&ko(t,e,n)&&(e=r),t=bs(t),e=Ss({},e,i,to);var o,a,s=Ss({},e.imports,i.imports,to),u=Ls(s),c=Ve(s,u),l=0,f=e.interpolate||bt,h="__p += '",d=Rt((e.escape||bt).source+"|"+f.source+"|"+(f===Q?dt:bt).source+"|"+(e.evaluate||bt).source+"|$","g"),p="//# sourceURL="+(Pt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ie+"]")+"\n";t.replace(d,(function(e,n,r,i,s,u){return r||(r=i),h+=t.slice(l,u).replace(kt,on),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),s&&(a=!0,h+="';\n"+s+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+e.length,e})),h+="';\n";var v=Pt.call(e,"variable")&&e.variable;if(v){if(ft.test(v))throw new St("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(a?h.replace(W,""):h).replace(H,"$1").replace($,"$1;"),h="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=eu((function(){return At(u,p+"return "+h).apply(r,c)}));if(g.source=h,Qa(g))throw g;return g},qn.times=function(t,e){if((t=_s(t))<1||t>d)return[];var n=v,r=bn(t,v);e=lo(e),t-=v;for(var i=Ye(r,e);++n<t;)e(n);return i},qn.toFinite=gs,qn.toInteger=_s,qn.toLength=ms,qn.toLower=function(t){return bs(t).toLowerCase()},qn.toNumber=ys,qn.toSafeInteger=function(t){return t?cr(_s(t),-9007199254740991,d):0===t?t:0},qn.toString=bs,qn.toUpper=function(t){return bs(t).toUpperCase()},qn.trim=function(t,e,n){if((t=bs(t))&&(n||e===r))return Ge(t);if(!t||!(e=fi(e)))return t;var i=dn(t),o=dn(e);return Ei(i,Qe(i,o),tn(i,o)+1).join("")},qn.trimEnd=function(t,e,n){if((t=bs(t))&&(n||e===r))return t.slice(0,pn(t)+1);if(!t||!(e=fi(e)))return t;var i=dn(t);return Ei(i,0,tn(i,dn(e))+1).join("")},qn.trimStart=function(t,e,n){if((t=bs(t))&&(n||e===r))return t.replace(ot,"");if(!t||!(e=fi(e)))return t;var i=dn(t);return Ei(i,Qe(i,dn(e))).join("")},qn.truncate=function(t,e){var n=30,i="...";if(rs(e)){var o="separator"in e?e.separator:o;n="length"in e?_s(e.length):n,i="omission"in e?fi(e.omission):i}var a=(t=bs(t)).length;if(an(t)){var s=dn(t);a=s.length}if(n>=a)return t;var u=n-hn(i);if(u<1)return i;var c=s?Ei(s,0,u).join(""):t.slice(0,u);if(o===r)return c+i;if(s&&(u+=c.length-u),us(o)){if(t.slice(u).search(o)){var l,f=c;for(o.global||(o=Rt(o.source,bs(pt.exec(o))+"g")),o.lastIndex=0;l=o.exec(f);)var h=l.index;c=c.slice(0,h===r?u:h)}}else if(t.indexOf(fi(o),u)!=u){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+i},qn.unescape=function(t){return(t=bs(t))&&G.test(t)?t.replace(K,vn):t},qn.uniqueId=function(t){var e=++Mt;return bs(t)+e},qn.upperCase=Xs,qn.upperFirst=Qs,qn.each=ba,qn.eachRight=ka,qn.first=Go,lu(qn,(Su={},kr(qn,(function(t,e){Pt.call(qn.prototype,e)||(Su[e]=t)})),Su),{chain:!1}),qn.VERSION="4.17.21",Ce(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){qn[t].placeholder=qn})),Ce(["drop","take"],(function(t,e){$n.prototype[t]=function(n){n=n===r?1:wn(_s(n),0);var i=this.__filtered__&&!e?new $n(this):this.clone();return i.__filtered__?i.__takeCount__=bn(n,i.__takeCount__):i.__views__.push({size:bn(n,v),type:t+(i.__dir__<0?"Right":"")}),i},$n.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Ce(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;$n.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:lo(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Ce(["head","last"],(function(t,e){var n="take"+(e?"Right":"");$n.prototype[t]=function(){return this[n](1).value()[0]}})),Ce(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");$n.prototype[t]=function(){return this.__filtered__?new $n(this):this[n](1)}})),$n.prototype.compact=function(){return this.filter(au)},$n.prototype.find=function(t){return this.filter(t).head()},$n.prototype.findLast=function(t){return this.reverse().find(t)},$n.prototype.invokeMap=Xr((function(t,e){return"function"==typeof t?new $n(this):this.map((function(n){return Nr(n,t,e)}))})),$n.prototype.reject=function(t){return this.filter(za(lo(t)))},$n.prototype.slice=function(t,e){t=_s(t);var n=this;return n.__filtered__&&(t>0||e<0)?new $n(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==r&&(n=(e=_s(e))<0?n.dropRight(-e):n.take(e-t)),n)},$n.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},$n.prototype.toArray=function(){return this.take(v)},kr($n.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),o=qn[i?"take"+("last"==e?"Right":""):e],a=i||/^find/.test(e);o&&(qn.prototype[e]=function(){var e=this.__wrapped__,s=i?[1]:arguments,u=e instanceof $n,c=s[0],l=u||Ka(e),f=function(t){var e=o.apply(qn,je([t],s));return i&&h?e[0]:e};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var h=this.__chain__,d=!!this.__actions__.length,p=a&&!h,v=u&&!d;if(!a&&l){e=v?e:new $n(this);var g=t.apply(e,s);return g.__actions__.push({func:ga,args:[f],thisArg:r}),new Hn(g,h)}return p&&v?t.apply(this,s):(g=this.thru(f),p?i?g.value()[0]:g.value():g)})})),Ce(["pop","push","shift","sort","splice","unshift"],(function(t){var e=It[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);qn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Ka(i)?i:[],t)}return this[n]((function(n){return e.apply(Ka(n)?n:[],t)}))}})),kr($n.prototype,(function(t,e){var n=qn[e];if(n){var r=n.name+"";Pt.call(jn,r)||(jn[r]=[]),jn[r].push({name:e,func:n})}})),jn[qi(r,2).name]=[{name:"wrapper",func:r}],$n.prototype.clone=function(){var t=new $n(this.__wrapped__);return t.__actions__=Ii(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ii(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ii(this.__views__),t},$n.prototype.reverse=function(){if(this.__filtered__){var t=new $n(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},$n.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ka(t),r=e<0,i=n?t.length:0,o=function(t,e,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=bn(e,t+a);break;case"takeRight":t=wn(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,f=l.length,h=0,d=bn(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return gi(t,this.__actions__);var p=[];t:for(;u--&&h<d;){for(var v=-1,g=t[c+=e];++v<f;){var _=l[v],m=_.iteratee,y=_.type,w=m(g);if(2==y)g=w;else if(!w){if(1==y)continue t;break t}}p[h++]=g}return p},qn.prototype.at=_a,qn.prototype.chain=function(){return va(this)},qn.prototype.commit=function(){return new Hn(this.value(),this.__chain__)},qn.prototype.next=function(){this.__values__===r&&(this.__values__=vs(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?r:this.__values__[this.__index__++]}},qn.prototype.plant=function(t){for(var e,n=this;n instanceof Wn;){var i=qo(n);i.__index__=0,i.__values__=r,e?o.__wrapped__=i:e=i;var o=i;n=n.__wrapped__}return o.__wrapped__=t,e},qn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof $n){var e=t;return this.__actions__.length&&(e=new $n(this)),(e=e.reverse()).__actions__.push({func:ga,args:[ra],thisArg:r}),new Hn(e,this.__chain__)}return this.thru(ra)},qn.prototype.toJSON=qn.prototype.valueOf=qn.prototype.value=function(){return gi(this.__wrapped__,this.__actions__)},qn.prototype.first=qn.prototype.head,ee&&(qn.prototype[ee]=function(){return this}),qn}();pe?((pe.exports=gn)._=gn,de._=gn):he._=gn}).call(e)}));t.NetworkType=void 0,(i=t.NetworkType||(t.NetworkType={})).none="none",i.wifi="wifi",i.cellular="cellular",i.unknown="unknown",t.PlatformType=void 0,(o=t.PlatformType||(t.PlatformType={})).wp="wp",o.android="android",o.iOS="iOS",o.unknown="unknown",t.ProfileType=void 0,(a=t.ProfileType||(t.ProfileType={}))[a.user=1]="user",a[a.oa=0]="oa",a[a.aliasOA=2]="aliasOA",t.ChatType=void 0,(s=t.ChatType||(t.ChatType={}))[s.user=1]="user",s[s.oa=0]="oa",t.PostFeedType=void 0,(u=t.PostFeedType||(t.PostFeedType={}))[u.image=1]="image",u[u.link=4]="link",u[u.profile=5]="profile",t.ShareSheetType=void 0,(c=t.ShareSheetType||(t.ShareSheetType={}))[c.image=1]="image",c[c.gif=11]="gif",c[c.video=12]="video",c[c.link=4]="link",c[c.oa=5]="oa",t.OrientationType=void 0,(l=t.OrientationType||(t.OrientationType={}))[l.auto=1]="auto",l[l.portrait=2]="portrait",l[l.landscape=3]="landscape",t.VibrateType=void 0,(f=t.VibrateType||(t.VibrateType={}))[f.oneShot=0]="oneShot",t.NativeCode=void 0,(h=t.NativeCode||(t.NativeCode={}))[h.token_invalid=-2]="token_invalid",h[h.not_permission=-1]="not_permission",h[h.client_not_support=-5]="client_not_support",h[h.decode_failed=-4]="decode_failed";const p=t=>{const e=document.cookie;if(e){const i=e.split("; ");if(i&&i.length>0)for(var n=t.length+1,r=i.length-1;r>=0;r--){let e=i[r];if(e&&0===e.indexOf(t)&&(e=e.substring(n,e.length),e))return e=e.replace(/["']/g,""),e}}return null},v=t=>p(`${window.location.host}_`+t),g=t=>p((()=>{const t=window.location.host;if(t){if(t.indexOf("zalo.me")>=0)return"zalo.me_";if(t.indexOf("baomoi.com")>=0)return"baomoi.com_";if(t.indexOf("mp3.zing.vn")>=0)return"mp3.zing.vn_";if(t.indexOf("zaloapp.com")>=0)return"zaloapp.com_"}return""})()+t),_="action.open.profile",m="action.open.inapp",y="action.open.chat",w="action.open.postfeed",b="action.follow.oa",k="action.unfollow.oa",E="action.open.sharesheet",S="action.request.permission.camera",A="action.change.title.header",C="action.webview.networktype",T="action.create.options.menu",R="action.create.shortcut",x="action.change.actionbar.leftbutton.type",O="action.window.close",I="action.prompt.authentication",N="action.prompt.authentication.check_state",j="action.get.location",L="action.query.location.hide",B="action.show.toast",P="action.hide.keyboard",M="action.open.phone",z="action.open.qr",U="action.open.sms",D="action.view.myqr",F="action.keep.screen",q="action.change.autorotate",Z="action.scan.ibeacon",W="action.save.image.gallery",H="action.open.mp",$="action.change.actionbar",K="action.interactive.vibration",Y="action.zbrowser.mpds",G="action.webview.set.result",J="action.mp.get.number",V=["action.get.downloaded.sticker","action.report.abuse",b,k,E,T,x,O,"action.zbrowser.jsbridge",j,L,B,D,F,"action.zalorun.getTrackingStatus","action.zalorun.setTrackingStatus","action.zalorun.getDayStep","action.zalorun.forceSubmitData","action.zalorun.setWeight","action.download.cate"],X=-1400,Q=-1401,tt=-1403,et={READ_MORE:"Read more at: https://miniapp.zalo.me/docs/api",LOGIN_REQUIRED:"Please login before to call this api. Read more at: https://miniapp.zalo.me/docs/api/login",LOGIN_FAILED:"Login failed.",NOT_PERMISSION:"You don't have permission to call this api",CLIENT_NOT_SUPPORT:"This API is not supported in this Zalo version",DECODE_FAILED:"Can not decode your data. Read more at: https://miniapp.zalo.me/docs/api/error"},nt="apps/get-info",rt={android:12100571,iOS:400,wp:0,unknown:0},it=new RegExp("[\\u0300-\\u036f]","g"),ot=new RegExp("[đ|Đ]","g"),at=new RegExp("\\s","g"),st=t=>{try{new URL(t)}catch(t){return!1}return!0},ut=()=>navigator.userAgent||navigator.vendor||window.opera,ct=()=>{const t=ut().toLowerCase();return{isWP:/iemobile/.test(t),isAndroid:/android/i.test(t)&&!/iemobile/.test(t),isIOS:/iphone|ios|ipad|ipod/.test(t)&&!/iemobile/.test(t),isMobile:/android|iphone|ios|ipad|ipod|iemobile/.test(t),isZalo:/zalo/.test(t)}},lt=t=>{const e=document.getElementsByTagName("meta");for(let n=0;n<e.length;n++)if(e[n].getAttribute("name")===t||e[n].getAttribute("property")===t)return e[n].getAttribute("content");return""},ft=()=>{const t=ut().toLowerCase().split("zalo")[1];if(t){return t.replace(" ","").split("/")[1]||""}return""},ht=()=>{let e=ct();return e.isWP?t.PlatformType.wp:e.isAndroid?t.PlatformType.android:e.isIOS?t.PlatformType.iOS:t.PlatformType.unknown},dt=(t,e)=>{const n=e.toLowerCase();return!(("array"!==n&&"array<number>"!==n&&"array<string>"!==n||!("array"===n&&Array.isArray(t)||"array<number>"===n&&(t=>Array.isArray(t)&&!t.some((t=>"number"!=typeof t)))(t)||"array<string>"===n&&(t=>Array.isArray(t)&&!t.some((t=>"string"!=typeof t)))(t)))&&(Array.isArray(t)||typeof t!==e))},pt=t=>null==t||t.hasOwnProperty("length")&&0===t.length||t.constructor===Object&&0===Object.keys(t).length,vt=t=>(t=>{let e=v(t);return e||(e=g(t),e)?e:p(t)})(t),gt=t=>{if(d.isObject(JSON)&&JSON.parse&&d.isString(t)){const e=t.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t");return JSON.parse(e,((t,e)=>e))}return d.isObject(t)?t:new Function("return "+t)()},_t=t=>{if(d.isObject(JSON)&&JSON.stringify)return JSON.stringify(t);if(void 0===t)return"undefined";if(null===t)return"null";try{if("string"==typeof t||null!==t.constructor.toString().match(/string/i))return'"'+t.replace(/"/g,'\\"')+'"'}catch(t){console.log(t)}var e;if(null!==Object.prototype.toString.call(t).match(/array/i)){e=new Array;for(var n=t.length,r=0;r<n;r++)e.push(_t(t[r]));return"["+e.join(",")+"]"}if("object"==typeof t){for(var i in e=new Array,t)e.push('"'+i+'":'+_t(t[i]));return"{"+e.join(",")+"}"}return t.toString()},mt=()=>{try{const t=Number(ft()),e=ht();return t>=rt[e]}catch(t){return!0}},yt=t=>JSON.stringify(t).replace(/"/g,'\\"').replace(/'/g,"'"),wt=t=>{try{if(t){console.log(t);const e=t.replace(/\\/g,"").replace(/'/g,"'");return console.log("formattedValue",e,JSON.parse(e),typeof JSON.parse(e)),JSON.parse(e)}return null}catch(e){return console.log(e),t}};
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
15
|
***************************************************************************** */
|
|
16
|
-
function wt(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function bt(t,e){return function(n,r){e(n,r,t)}}function kt(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function Et(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function St(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}var At=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}},Ct=Object.prototype.toString;function Tt(t){return"[object Array]"===Ct.call(t)}function Rt(t){return void 0===t}function xt(t){return null!==t&&"object"==typeof t}function Ot(t){if("[object Object]"!==Ct.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function It(t){return"[object Function]"===Ct.call(t)}function Nt(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),Tt(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}var jt={isArray:Tt,isArrayBuffer:function(t){return"[object ArrayBuffer]"===Ct.call(t)},isBuffer:function(t){return null!==t&&!Rt(t)&&null!==t.constructor&&!Rt(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:xt,isPlainObject:Ot,isUndefined:Rt,isDate:function(t){return"[object Date]"===Ct.call(t)},isFile:function(t){return"[object File]"===Ct.call(t)},isBlob:function(t){return"[object Blob]"===Ct.call(t)},isFunction:It,isStream:function(t){return xt(t)&&It(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:Nt,merge:function t(){var e={};function n(n,r){Ot(e[r])&&Ot(n)?e[r]=t(e[r],n):Ot(n)?e[r]=t({},n):Tt(n)?e[r]=n.slice():e[r]=n}for(var r=0,i=arguments.length;r<i;r++)Nt(arguments[r],n);return e},extend:function(t,e,n){return Nt(e,(function(e,r){t[r]=n&&"function"==typeof e?At(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}};function Lt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Bt=function(t,e,n){if(!e)return t;var r;if(n)r=n(e);else if(jt.isURLSearchParams(e))r=e.toString();else{var i=[];jt.forEach(e,(function(t,e){null!=t&&(jt.isArray(t)?e+="[]":t=[t],jt.forEach(t,(function(t){jt.isDate(t)?t=t.toISOString():jt.isObject(t)&&(t=JSON.stringify(t)),i.push(Lt(e)+"="+Lt(t))})))})),r=i.join("&")}if(r){var o=t.indexOf("#");-1!==o&&(t=t.slice(0,o)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t};function Pt(){this.handlers=[]}Pt.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},Pt.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},Pt.prototype.forEach=function(t){jt.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var Mt=Pt,zt=function(t,e,n){return jt.forEach(n,(function(n){t=n(t,e)})),t},Ut=function(t){return!(!t||!t.__CANCEL__)},Dt="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function Ft(){throw new Error("setTimeout has not been defined")}function qt(){throw new Error("clearTimeout has not been defined")}var Zt=Ft,Wt=qt;function Ht(t){if(Zt===setTimeout)return setTimeout(t,0);if((Zt===Ft||!Zt)&&setTimeout)return Zt=setTimeout,setTimeout(t,0);try{return Zt(t,0)}catch(e){try{return Zt.call(null,t,0)}catch(e){return Zt.call(this,t,0)}}}"function"==typeof Dt.setTimeout&&(Zt=setTimeout),"function"==typeof Dt.clearTimeout&&(Wt=clearTimeout);var $t,Kt=[],Yt=!1,Gt=-1;function Jt(){Yt&&$t&&(Yt=!1,$t.length?Kt=$t.concat(Kt):Gt=-1,Kt.length&&Vt())}function Vt(){if(!Yt){var t=Ht(Jt);Yt=!0;for(var e=Kt.length;e;){for($t=Kt,Kt=[];++Gt<e;)$t&&$t[Gt].run();Gt=-1,e=Kt.length}$t=null,Yt=!1,function(t){if(Wt===clearTimeout)return clearTimeout(t);if((Wt===qt||!Wt)&&clearTimeout)return Wt=clearTimeout,clearTimeout(t);try{Wt(t)}catch(e){try{return Wt.call(null,t)}catch(e){return Wt.call(this,t)}}}(t)}}function Xt(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];Kt.push(new Qt(t,e)),1!==Kt.length||Yt||Ht(Vt)}function Qt(t,e){this.fun=t,this.array=e}Qt.prototype.run=function(){this.fun.apply(null,this.array)};function te(){}var ee=te,ne=te,re=te,ie=te,oe=te,ae=te,se=te;var ue=Dt.performance||{},ce=ue.now||ue.mozNow||ue.msNow||ue.oNow||ue.webkitNow||function(){return(new Date).getTime()};var le=new Date;var fe={nextTick:Xt,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:ee,addListener:ne,once:re,off:ie,removeListener:oe,removeAllListeners:ae,emit:se,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*ce.call(ue),n=Math.floor(e),r=Math.floor(e%1*1e9);return t&&(n-=t[0],(r-=t[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-le)/1e3}},he=function(t,e){jt.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))},de=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t},pe=function(t,e,n,r,i){var o=new Error(t);return de(o,e,n,r,i)},ve=function(t,e,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(pe("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)},ge=jt.isStandardBrowserEnv()?{write:function(t,e,n,r,i,o){var a=[];a.push(t+"="+encodeURIComponent(e)),jt.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),jt.isString(r)&&a.push("path="+r),jt.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},_e=function(t,e){return t&&!function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e},ye=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],me=jt.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=r(window.location.href),function(e){var n=jt.isString(e)?r(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0},we=function(t){return new Promise((function(e,n){var r=t.data,i=t.headers;jt.isFormData(r)&&delete i["Content-Type"];var o=new XMLHttpRequest;if(t.auth){var a=t.auth.username||"",s=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.Authorization="Basic "+btoa(a+":"+s)}var u=_e(t.baseURL,t.url);if(o.open(t.method.toUpperCase(),Bt(u,t.params,t.paramsSerializer),!0),o.timeout=t.timeout,o.onreadystatechange=function(){if(o&&4===o.readyState&&(0!==o.status||o.responseURL&&0===o.responseURL.indexOf("file:"))){var r,i,a,s,u,c="getAllResponseHeaders"in o?(r=o.getAllResponseHeaders(),u={},r?(jt.forEach(r.split("\n"),(function(t){if(s=t.indexOf(":"),i=jt.trim(t.substr(0,s)).toLowerCase(),a=jt.trim(t.substr(s+1)),i){if(u[i]&&ye.indexOf(i)>=0)return;u[i]="set-cookie"===i?(u[i]?u[i]:[]).concat([a]):u[i]?u[i]+", "+a:a}})),u):u):null,l={data:t.responseType&&"text"!==t.responseType?o.response:o.responseText,status:o.status,statusText:o.statusText,headers:c,config:t,request:o};ve(e,n,l),o=null}},o.onabort=function(){o&&(n(pe("Request aborted",t,"ECONNABORTED",o)),o=null)},o.onerror=function(){n(pe("Network Error",t,null,o)),o=null},o.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(pe(e,t,"ECONNABORTED",o)),o=null},jt.isStandardBrowserEnv()){var c=(t.withCredentials||me(u))&&t.xsrfCookieName?ge.read(t.xsrfCookieName):void 0;c&&(i[t.xsrfHeaderName]=c)}if("setRequestHeader"in o&&jt.forEach(i,(function(t,e){void 0===r&&"content-type"===e.toLowerCase()?delete i[e]:o.setRequestHeader(e,t)})),jt.isUndefined(t.withCredentials)||(o.withCredentials=!!t.withCredentials),t.responseType)try{o.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&o.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&o.upload&&o.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){o&&(o.abort(),n(t),o=null)})),r||(r=null),o.send(r)}))},be=[],ke=[],Ee="undefined"!=typeof Uint8Array?Uint8Array:Array,Se=!1;function Ae(){Se=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,n=t.length;e<n;++e)be[e]=t[e],ke[t.charCodeAt(e)]=e;ke["-".charCodeAt(0)]=62,ke["_".charCodeAt(0)]=63}function Ce(t,e,n){for(var r,i,o=[],a=e;a<n;a+=3)r=(t[a]<<16)+(t[a+1]<<8)+t[a+2],o.push(be[(i=r)>>18&63]+be[i>>12&63]+be[i>>6&63]+be[63&i]);return o.join("")}function Te(t){var e;Se||Ae();for(var n=t.length,r=n%3,i="",o=[],a=16383,s=0,u=n-r;s<u;s+=a)o.push(Ce(t,s,s+a>u?u:s+a));return 1===r?(e=t[n-1],i+=be[e>>2],i+=be[e<<4&63],i+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],i+=be[e>>10],i+=be[e>>4&63],i+=be[e<<2&63],i+="="),o.push(i),o.join("")}function Re(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,c=u>>1,l=-7,f=n?i-1:0,h=n?-1:1,d=t[e+f];for(f+=h,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+t[e+f],f+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=c}return(d?-1:1)*a*Math.pow(2,o-r)}function xe(t,e,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(e*u-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;t[n+d]=255&a,d+=p,a/=256,c-=8);t[n+d-p]|=128*v}var Oe={}.toString,Ie=Array.isArray||function(t){return"[object Array]"==Oe.call(t)};function Ne(){return Le.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function je(t,e){if(Ne()<e)throw new RangeError("Invalid typed array length");return Le.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=Le.prototype:(null===t&&(t=new Le(e)),t.length=e),t}function Le(t,e,n){if(!(Le.TYPED_ARRAY_SUPPORT||this instanceof Le))return new Le(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return Me(this,t)}return Be(this,t,e,n)}function Be(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);Le.TYPED_ARRAY_SUPPORT?(t=e).__proto__=Le.prototype:t=ze(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!Le.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|Fe(e,n),i=(t=je(t,r)).write(e,n);i!==r&&(t=t.slice(0,i));return t}(t,e,n):function(t,e){if(De(e)){var n=0|Ue(e.length);return 0===(t=je(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?je(t,0):ze(t,e);if("Buffer"===e.type&&Ie(e.data))return ze(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function Pe(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function Me(t,e){if(Pe(e),t=je(t,e<0?0:0|Ue(e)),!Le.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function ze(t,e){var n=e.length<0?0:0|Ue(e.length);t=je(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function Ue(t){if(t>=Ne())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ne().toString(16)+" bytes");return 0|t}function De(t){return!(null==t||!t._isBuffer)}function Fe(t,e){if(De(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return vn(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return gn(t).length;default:if(r)return vn(t).length;e=(""+e).toLowerCase(),r=!0}}function qe(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return rn(this,e,n);case"utf8":case"utf-8":return Qe(this,e,n);case"ascii":return en(this,e,n);case"latin1":case"binary":return nn(this,e,n);case"base64":return Xe(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return on(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function Ze(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function We(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=Le.from(e,r)),De(e))return 0===e.length?-1:He(t,e,n,r,i);if("number"==typeof e)return e&=255,Le.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):He(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function He(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=n;o<s;o++)if(c(t,o)===c(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var f=!0,h=0;h<u;h++)if(c(t,o+h)!==c(e,h)){f=!1;break}if(f)return o}return-1}function $e(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function Ke(t,e,n,r){return _n(vn(e,t.length-n),t,n,r)}function Ye(t,e,n,r){return _n(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function Ge(t,e,n,r){return Ye(t,e,n,r)}function Je(t,e,n,r){return _n(gn(e),t,n,r)}function Ve(t,e,n,r){return _n(function(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=(n=t.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function Xe(t,e,n){return 0===e&&n===t.length?Te(t):Te(t.slice(e,n))}function Qe(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,a,s,u,c=t[i],l=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(t){var e=t.length;if(e<=tn)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=tn));return n}(r)}Le.TYPED_ARRAY_SUPPORT=void 0===Dt.TYPED_ARRAY_SUPPORT||Dt.TYPED_ARRAY_SUPPORT,Le.poolSize=8192,Le._augment=function(t){return t.__proto__=Le.prototype,t},Le.from=function(t,e,n){return Be(null,t,e,n)},Le.TYPED_ARRAY_SUPPORT&&(Le.prototype.__proto__=Uint8Array.prototype,Le.__proto__=Uint8Array),Le.alloc=function(t,e,n){return function(t,e,n,r){return Pe(e),e<=0?je(t,e):void 0!==n?"string"==typeof r?je(t,e).fill(n,r):je(t,e).fill(n):je(t,e)}(null,t,e,n)},Le.allocUnsafe=function(t){return Me(null,t)},Le.allocUnsafeSlow=function(t){return Me(null,t)},Le.isBuffer=yn,Le.compare=function(t,e){if(!De(t)||!De(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},Le.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}},Le.concat=function(t,e){if(!Ie(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return Le.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=Le.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var o=t[n];if(!De(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},Le.byteLength=Fe,Le.prototype._isBuffer=!0,Le.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)Ze(this,e,e+1);return this},Le.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)Ze(this,e,e+3),Ze(this,e+1,e+2);return this},Le.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)Ze(this,e,e+7),Ze(this,e+1,e+6),Ze(this,e+2,e+5),Ze(this,e+3,e+4);return this},Le.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?Qe(this,0,t):qe.apply(this,arguments)},Le.prototype.equals=function(t){if(!De(t))throw new TypeError("Argument must be a Buffer");return this===t||0===Le.compare(this,t)},Le.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},Le.prototype.compare=function(t,e,n,r,i){if(!De(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(r,i),c=t.slice(e,n),l=0;l<s;++l)if(u[l]!==c[l]){o=u[l],a=c[l];break}return o<a?-1:a<o?1:0},Le.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},Le.prototype.indexOf=function(t,e,n){return We(this,t,e,n,!0)},Le.prototype.lastIndexOf=function(t,e,n){return We(this,t,e,n,!1)},Le.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return $e(this,t,e,n);case"utf8":case"utf-8":return Ke(this,t,e,n);case"ascii":return Ye(this,t,e,n);case"latin1":case"binary":return Ge(this,t,e,n);case"base64":return Je(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ve(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},Le.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var tn=4096;function en(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function nn(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function rn(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=pn(t[o]);return i}function on(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function an(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function sn(t,e,n,r,i,o){if(!De(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(n+r>t.length)throw new RangeError("Index out of range")}function un(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function cn(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function ln(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function fn(t,e,n,r,i){return i||ln(t,0,n,4),xe(t,e,n,r,23,4),n+4}function hn(t,e,n,r,i){return i||ln(t,0,n,8),xe(t,e,n,r,52,8),n+8}Le.prototype.slice=function(t,e){var n,r=this.length;if((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),Le.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=Le.prototype;else{var i=e-t;n=new Le(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},Le.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||an(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},Le.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||an(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},Le.prototype.readUInt8=function(t,e){return e||an(t,1,this.length),this[t]},Le.prototype.readUInt16LE=function(t,e){return e||an(t,2,this.length),this[t]|this[t+1]<<8},Le.prototype.readUInt16BE=function(t,e){return e||an(t,2,this.length),this[t]<<8|this[t+1]},Le.prototype.readUInt32LE=function(t,e){return e||an(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Le.prototype.readUInt32BE=function(t,e){return e||an(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Le.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||an(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},Le.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||an(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},Le.prototype.readInt8=function(t,e){return e||an(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},Le.prototype.readInt16LE=function(t,e){e||an(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},Le.prototype.readInt16BE=function(t,e){e||an(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},Le.prototype.readInt32LE=function(t,e){return e||an(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Le.prototype.readInt32BE=function(t,e){return e||an(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Le.prototype.readFloatLE=function(t,e){return e||an(t,4,this.length),Re(this,t,!0,23,4)},Le.prototype.readFloatBE=function(t,e){return e||an(t,4,this.length),Re(this,t,!1,23,4)},Le.prototype.readDoubleLE=function(t,e){return e||an(t,8,this.length),Re(this,t,!0,52,8)},Le.prototype.readDoubleBE=function(t,e){return e||an(t,8,this.length),Re(this,t,!1,52,8)},Le.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||sn(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},Le.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||sn(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},Le.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||sn(this,t,e,1,255,0),Le.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},Le.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||sn(this,t,e,2,65535,0),Le.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):un(this,t,e,!0),e+2},Le.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||sn(this,t,e,2,65535,0),Le.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):un(this,t,e,!1),e+2},Le.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||sn(this,t,e,4,4294967295,0),Le.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):cn(this,t,e,!0),e+4},Le.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||sn(this,t,e,4,4294967295,0),Le.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):cn(this,t,e,!1),e+4},Le.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);sn(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},Le.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);sn(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},Le.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||sn(this,t,e,1,127,-128),Le.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},Le.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||sn(this,t,e,2,32767,-32768),Le.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):un(this,t,e,!0),e+2},Le.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||sn(this,t,e,2,32767,-32768),Le.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):un(this,t,e,!1),e+2},Le.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||sn(this,t,e,4,2147483647,-2147483648),Le.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):cn(this,t,e,!0),e+4},Le.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||sn(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Le.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):cn(this,t,e,!1),e+4},Le.prototype.writeFloatLE=function(t,e,n){return fn(this,t,e,!0,n)},Le.prototype.writeFloatBE=function(t,e,n){return fn(this,t,e,!1,n)},Le.prototype.writeDoubleLE=function(t,e,n){return hn(this,t,e,!0,n)},Le.prototype.writeDoubleBE=function(t,e,n){return hn(this,t,e,!1,n)},Le.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!Le.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},Le.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!Le.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=De(t)?t:vn(new Le(t,r).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var dn=/[^+\/0-9A-Za-z-_]/g;function pn(t){return t<16?"0"+t.toString(16):t.toString(16)}function vn(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function gn(t){return function(t){var e,n,r,i,o,a;Se||Ae();var s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===t[s-2]?2:"="===t[s-1]?1:0,a=new Ee(3*s/4-o),r=o>0?s-4:s;var u=0;for(e=0,n=0;e<r;e+=4,n+=3)i=ke[t.charCodeAt(e)]<<18|ke[t.charCodeAt(e+1)]<<12|ke[t.charCodeAt(e+2)]<<6|ke[t.charCodeAt(e+3)],a[u++]=i>>16&255,a[u++]=i>>8&255,a[u++]=255&i;return 2===o?(i=ke[t.charCodeAt(e)]<<2|ke[t.charCodeAt(e+1)]>>4,a[u++]=255&i):1===o&&(i=ke[t.charCodeAt(e)]<<10|ke[t.charCodeAt(e+1)]<<4|ke[t.charCodeAt(e+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(dn,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function _n(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function yn(t){return null!=t&&(!!t._isBuffer||mn(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&mn(t.slice(0,0))}(t))}function mn(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var wn,bn,kn=In(Dt.fetch)&&In(Dt.ReadableStream);function En(t){bn||(bn=new Dt.XMLHttpRequest).open("GET",Dt.location.host?"/":"https://example.com");try{return bn.responseType=t,bn.responseType===t}catch(t){return!1}}var Sn=void 0!==Dt.ArrayBuffer,An=Sn&&In(Dt.ArrayBuffer.prototype.slice),Cn=Sn&&En("arraybuffer"),Tn=!kn&&An&&En("ms-stream"),Rn=!kn&&Sn&&En("moz-chunked-arraybuffer"),xn=In(bn.overrideMimeType),On=In(Dt.VBArray);function In(t){return"function"==typeof t}bn=null;var Nn="function"==typeof Object.create?function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t},jn=/%[sdj%]/g;function Ln(t){if(!Jn(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(Un(arguments[n]));return e.join(" ")}n=1;for(var r=arguments,i=r.length,o=String(t).replace(jn,(function(t){if("%%"===t)return"%";if(n>=i)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}})),a=r[n];n<i;a=r[++n])Kn(a)||!Qn(a)?o+=" "+a:o+=" "+Un(a);return o}function Bn(t,e){if(Vn(Dt.process))return function(){return Bn(t,e).apply(this,arguments)};if(!0===fe.noDeprecation)return t;var n=!1;return function(){if(!n){if(fe.throwDeprecation)throw new Error(e);fe.traceDeprecation?console.trace(e):console.error(e),n=!0}return t.apply(this,arguments)}}var Pn,Mn={};function zn(t){if(Vn(Pn)&&(Pn=fe.env.NODE_DEBUG||""),t=t.toUpperCase(),!Mn[t])if(new RegExp("\\b"+t+"\\b","i").test(Pn)){Mn[t]=function(){var e=Ln.apply(null,arguments);console.error("%s %d: %s",t,0,e)}}else Mn[t]=function(){};return Mn[t]}function Un(t,e){var n={seen:[],stylize:Fn};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),$n(e)?n.showHidden=e:e&&ur(n,e),Vn(n.showHidden)&&(n.showHidden=!1),Vn(n.depth)&&(n.depth=2),Vn(n.colors)&&(n.colors=!1),Vn(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=Dn),qn(n,t,n.depth)}function Dn(t,e){var n=Un.styles[e];return n?"["+Un.colors[n][0]+"m"+t+"["+Un.colors[n][1]+"m":t}function Fn(t,e){return t}function qn(t,e,n){if(t.customInspect&&e&&nr(e.inspect)&&e.inspect!==Un&&(!e.constructor||e.constructor.prototype!==e)){var r=e.inspect(n,t);return Jn(r)||(r=qn(t,r,n)),r}var i=function(t,e){if(Vn(e))return t.stylize("undefined","undefined");if(Jn(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(Gn(e))return t.stylize(""+e,"number");if($n(e))return t.stylize(""+e,"boolean");if(Kn(e))return t.stylize("null","null")}(t,e);if(i)return i;var o=Object.keys(e),a=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(e)),er(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return Zn(e);if(0===o.length){if(nr(e)){var s=e.name?": "+e.name:"";return t.stylize("[Function"+s+"]","special")}if(Xn(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(tr(e))return t.stylize(Date.prototype.toString.call(e),"date");if(er(e))return Zn(e)}var u,c="",l=!1,f=["{","}"];(Hn(e)&&(l=!0,f=["[","]"]),nr(e))&&(c=" [Function"+(e.name?": "+e.name:"")+"]");return Xn(e)&&(c=" "+RegExp.prototype.toString.call(e)),tr(e)&&(c=" "+Date.prototype.toUTCString.call(e)),er(e)&&(c=" "+Zn(e)),0!==o.length||l&&0!=e.length?n<0?Xn(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),u=l?function(t,e,n,r,i){for(var o=[],a=0,s=e.length;a<s;++a)cr(e,String(a))?o.push(Wn(t,e,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(Wn(t,e,n,r,i,!0))})),o}(t,e,n,a,o):o.map((function(r){return Wn(t,e,n,a,r,l)})),t.seen.pop(),function(t,e,n){if(t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1];return n[0]+e+" "+t.join(", ")+" "+n[1]}(u,c,f)):f[0]+c+f[1]}function Zn(t){return"["+Error.prototype.toString.call(t)+"]"}function Wn(t,e,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),cr(r,i)||(a="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(s=Kn(n)?qn(t,u.value,null):qn(t,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),Vn(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function Hn(t){return Array.isArray(t)}function $n(t){return"boolean"==typeof t}function Kn(t){return null===t}function Yn(t){return null==t}function Gn(t){return"number"==typeof t}function Jn(t){return"string"==typeof t}function Vn(t){return void 0===t}function Xn(t){return Qn(t)&&"[object RegExp]"===ir(t)}function Qn(t){return"object"==typeof t&&null!==t}function tr(t){return Qn(t)&&"[object Date]"===ir(t)}function er(t){return Qn(t)&&("[object Error]"===ir(t)||t instanceof Error)}function nr(t){return"function"==typeof t}function rr(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t}function ir(t){return Object.prototype.toString.call(t)}function or(t){return t<10?"0"+t.toString(10):t.toString(10)}Un.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Un.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var ar=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function sr(){var t=new Date,e=[or(t.getHours()),or(t.getMinutes()),or(t.getSeconds())].join(":");return[t.getDate(),ar[t.getMonth()],e].join(" ")}function ur(t,e){if(!e||!Qn(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}function cr(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var lr={inherits:Nn,_extend:ur,log:function(){console.log("%s - %s",sr(),Ln.apply(null,arguments))},isBuffer:function(t){return Le.isBuffer(t)},isPrimitive:rr,isFunction:nr,isError:er,isDate:tr,isObject:Qn,isRegExp:Xn,isUndefined:Vn,isSymbol:function(t){return"symbol"==typeof t},isString:Jn,isNumber:Gn,isNullOrUndefined:Yn,isNull:Kn,isBoolean:$n,isArray:Hn,inspect:Un,deprecate:Bn,format:Ln,debuglog:zn};function fr(){}function hr(){hr.init.call(this)}function dr(t){return void 0===t._maxListeners?hr.defaultMaxListeners:t._maxListeners}function pr(t,e,n){if(e)t.call(n);else for(var r=t.length,i=kr(t,r),o=0;o<r;++o)i[o].call(n)}function vr(t,e,n,r){if(e)t.call(n,r);else for(var i=t.length,o=kr(t,i),a=0;a<i;++a)o[a].call(n,r)}function gr(t,e,n,r,i){if(e)t.call(n,r,i);else for(var o=t.length,a=kr(t,o),s=0;s<o;++s)a[s].call(n,r,i)}function _r(t,e,n,r,i,o){if(e)t.call(n,r,i,o);else for(var a=t.length,s=kr(t,a),u=0;u<a;++u)s[u].call(n,r,i,o)}function yr(t,e,n,r){if(e)t.apply(n,r);else for(var i=t.length,o=kr(t,i),a=0;a<i;++a)o[a].apply(n,r)}function mr(t,e,n,r){var i,o,a,s;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((o=t._events)?(o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),a=o[e]):(o=t._events=new fr,t._eventsCount=0),a){if("function"==typeof a?a=o[e]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),!a.warned&&(i=dr(t))&&i>0&&a.length>i){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+e+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=a.length,s=u,"function"==typeof console.warn?console.warn(s):console.log(s)}}else a=o[e]=n,++t._eventsCount;return t}function wr(t,e,n){var r=!1;function i(){t.removeListener(e,i),r||(r=!0,n.apply(t,arguments))}return i.listener=n,i}function br(t){var e=this._events;if(e){var n=e[t];if("function"==typeof n)return 1;if(n)return n.length}return 0}function kr(t,e){for(var n=new Array(e);e--;)n[e]=t[e];return n}function Er(){this.head=null,this.tail=null,this.length=0}fr.prototype=Object.create(null),hr.EventEmitter=hr,hr.usingDomains=!1,hr.prototype.domain=void 0,hr.prototype._events=void 0,hr.prototype._maxListeners=void 0,hr.defaultMaxListeners=10,hr.init=function(){this.domain=null,hr.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new fr,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},hr.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},hr.prototype.getMaxListeners=function(){return dr(this)},hr.prototype.emit=function(t){var e,n,r,i,o,a,s,u="error"===t;if(a=this._events)u=u&&null==a.error;else if(!u)return!1;if(s=this.domain,u){if(e=arguments[1],!s){if(e instanceof Error)throw e;var c=new Error('Uncaught, unspecified "error" event. ('+e+")");throw c.context=e,c}return e||(e=new Error('Uncaught, unspecified "error" event')),e.domainEmitter=this,e.domain=s,e.domainThrown=!1,s.emit("error",e),!1}if(!(n=a[t]))return!1;var l="function"==typeof n;switch(r=arguments.length){case 1:pr(n,l,this);break;case 2:vr(n,l,this,arguments[1]);break;case 3:gr(n,l,this,arguments[1],arguments[2]);break;case 4:_r(n,l,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];yr(n,l,this,i)}return!0},hr.prototype.addListener=function(t,e){return mr(this,t,e,!1)},hr.prototype.on=hr.prototype.addListener,hr.prototype.prependListener=function(t,e){return mr(this,t,e,!0)},hr.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.on(t,wr(this,t,e)),this},hr.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,wr(this,t,e)),this},hr.prototype.removeListener=function(t,e){var n,r,i,o,a;if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[t]))return this;if(n===e||n.listener&&n.listener===e)0==--this._eventsCount?this._events=new fr:(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(i=-1,o=n.length;o-- >0;)if(n[o]===e||n[o].listener&&n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new fr,this;delete r[t]}else!function(t,e){for(var n=e,r=n+1,i=t.length;r<i;n+=1,r+=1)t[n]=t[r];t.pop()}(n,i);r.removeListener&&this.emit("removeListener",t,a||e)}return this},hr.prototype.removeAllListeners=function(t){var e,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new fr,this._eventsCount=0):n[t]&&(0==--this._eventsCount?this._events=new fr:delete n[t]),this;if(0===arguments.length){for(var r,i=Object.keys(n),o=0;o<i.length;++o)"removeListener"!==(r=i[o])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new fr,this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(e)do{this.removeListener(t,e[e.length-1])}while(e[0]);return this},hr.prototype.listeners=function(t){var e,n=this._events;return n&&(e=n[t])?"function"==typeof e?[e.listener||e]:function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(e):[]},hr.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):br.call(t,e)},hr.prototype.listenerCount=br,hr.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]},Er.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},Er.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},Er.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},Er.prototype.clear=function(){this.head=this.tail=null,this.length=0},Er.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},Er.prototype.concat=function(t){if(0===this.length)return Le.alloc(0);if(1===this.length)return this.head.data;for(var e=Le.allocUnsafe(t>>>0),n=this.head,r=0;n;)n.data.copy(e,r),r+=n.data.length,n=n.next;return e};var Sr=Le.isEncoding||function(t){switch(t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Ar(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),function(t){if(t&&!Sr(t))throw new Error("Unknown encoding: "+t)}(t),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=Tr;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Rr;break;default:return void(this.write=Cr)}this.charBuffer=new Le(6),this.charReceived=0,this.charLength=0}function Cr(t){return t.toString(this.encoding)}function Tr(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function Rr(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}Ar.prototype.write=function(t){for(var e="";this.charLength;){var n=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(t=t.slice(n,t.length),!((i=(e=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(e.length-1))>=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var r=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,r),r-=this.charReceived);var i;r=(e+=t.toString(this.encoding,0,r)).length-1;if((i=e.charCodeAt(r))>=55296&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),t.copy(this.charBuffer,0,0,o),e.substring(0,r)}return e},Ar.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var n=t[t.length-e];if(1==e&&n>>5==6){this.charLength=2;break}if(e<=2&&n>>4==14){this.charLength=3;break}if(e<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=e},Ar.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;e+=r.slice(0,n).toString(i)}return e},Ir.ReadableState=Or;var xr=zn("stream");function Or(t,e){t=t||{},this.objectMode=!!t.objectMode,e instanceof oi&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var n=t.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new Er,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(this.decoder=new Ar(t.encoding),this.encoding=t.encoding)}function Ir(t){if(!(this instanceof Ir))return new Ir(t);this._readableState=new Or(t,this),this.readable=!0,t&&"function"==typeof t.read&&(this._read=t.read),hr.call(this)}function Nr(t,e,n,r,i){var o=function(t,e){var n=null;Le.isBuffer(e)||"string"==typeof e||null==e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));return n}(e,n);if(o)t.emit("error",o);else if(null===n)e.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,Br(t)}(t,e);else if(e.objectMode||n&&n.length>0)if(e.ended&&!i){var a=new Error("stream.push() after EOF");t.emit("error",a)}else if(e.endEmitted&&i){var s=new Error("stream.unshift() after end event");t.emit("error",s)}else{var u;!e.decoder||i||r||(n=e.decoder.write(n),u=!e.objectMode&&0===n.length),i||(e.reading=!1),u||(e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,i?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&Br(t))),function(t,e){e.readingMore||(e.readingMore=!0,Xt(Mr,t,e))}(t,e)}else i||(e.reading=!1);return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(e)}Nn(Ir,hr),Ir.prototype.push=function(t,e){var n=this._readableState;return n.objectMode||"string"!=typeof t||(e=e||n.defaultEncoding)!==n.encoding&&(t=Le.from(t,e),e=""),Nr(this,n,t,e,!1)},Ir.prototype.unshift=function(t){return Nr(this,this._readableState,t,"",!0)},Ir.prototype.isPaused=function(){return!1===this._readableState.flowing},Ir.prototype.setEncoding=function(t){return this._readableState.decoder=new Ar(t),this._readableState.encoding=t,this};var jr=8388608;function Lr(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=jr?t=jr:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function Br(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(xr("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Xt(Pr,t):Pr(t))}function Pr(t){xr("emit readable"),t.emit("readable"),Dr(t)}function Mr(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(xr("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function zr(t){xr("readable nexttick read 0"),t.read(0)}function Ur(t,e){e.reading||(xr("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),Dr(t),e.flowing&&!e.reading&&t.read(0)}function Dr(t){var e=t._readableState;for(xr("flow",e.flowing);e.flowing&&null!==t.read(););}function Fr(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():n?function(t,e){var n=e.head,r=1,i=n.data;t-=i.length;for(;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++r}return e.length-=r,i}(t,e):function(t,e){var n=Le.allocUnsafe(t),r=e.head,i=1;r.data.copy(n),t-=r.data.length;for(;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,a),0===(t-=a)){a===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++i}return e.length-=i,n}(t,e);return r}(t,e.buffer,e.decoder),n);var n}function qr(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Xt(Zr,e,t))}function Zr(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function Wr(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}function Hr(){}function $r(t,e,n){this.chunk=t,this.encoding=e,this.callback=n,this.next=null}function Kr(t,e){Object.defineProperty(this,"buffer",{get:Bn((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),t=t||{},this.objectMode=!!t.objectMode,e instanceof oi&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var n=t.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===t.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,r,i){--e.pendingcb,n?Xt(i,r):i(r);t._writableState.errorEmitted=!0,t.emit("error",r)}(t,n,r,e,i);else{var o=Xr(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||Vr(t,n),r?Xt(Jr,t,n,o,i):Jr(t,n,o,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new ei(this)}function Yr(t){if(!(this instanceof Yr||this instanceof oi))return new Yr(t);this._writableState=new Kr(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev)),hr.call(this)}function Gr(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function Jr(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),ti(t,e)}function Vr(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),o=e.corkedRequestsFree;o.entry=n;for(var a=0;n;)i[a]=n,n=n.next,a+=1;Gr(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new ei(e)}else{for(;n;){var s=n.chunk,u=n.encoding,c=n.callback;if(Gr(t,e,!1,e.objectMode?1:s.length,s,u,c),n=n.next,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequestCount=0,e.bufferedRequest=n,e.bufferProcessing=!1}function Xr(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function Qr(t,e){e.prefinished||(e.prefinished=!0,t.emit("prefinish"))}function ti(t,e){var n=Xr(e);return n&&(0===e.pendingcb?(Qr(t,e),e.finished=!0,t.emit("finish")):Qr(t,e)),n}function ei(t){var e=this;this.next=null,this.entry=null,this.finish=function(n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}}Ir.prototype.read=function(t){xr("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return xr("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?qr(this):Br(this),null;if(0===(t=Lr(t,e))&&e.ended)return 0===e.length&&qr(this),null;var r,i=e.needReadable;return xr("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&xr("length less than watermark",i=!0),e.ended||e.reading?xr("reading or ended",i=!1):i&&(xr("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Lr(n,e))),null===(r=t>0?Fr(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&qr(this)),null!==r&&this.emit("data",r),r},Ir.prototype._read=function(t){this.emit("error",new Error("not implemented"))},Ir.prototype.pipe=function(t,e){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t)}r.pipesCount+=1,xr("pipe count=%d opts=%j",r.pipesCount,e);var i=!e||!1!==e.end?a:c;function o(t){xr("onunpipe"),t===n&&c()}function a(){xr("onend"),t.end()}r.endEmitted?Xt(i):n.once("end",i),t.on("unpipe",o);var s=function(t){return function(){var e=t._readableState;xr("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&t.listeners("data").length&&(e.flowing=!0,Dr(t))}}(n);t.on("drain",s);var u=!1;function c(){xr("cleanup"),t.removeListener("close",d),t.removeListener("finish",p),t.removeListener("drain",s),t.removeListener("error",h),t.removeListener("unpipe",o),n.removeListener("end",a),n.removeListener("end",c),n.removeListener("data",f),u=!0,!r.awaitDrain||t._writableState&&!t._writableState.needDrain||s()}var l=!1;function f(e){xr("ondata"),l=!1,!1!==t.write(e)||l||((1===r.pipesCount&&r.pipes===t||r.pipesCount>1&&-1!==Wr(r.pipes,t))&&!u&&(xr("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,l=!0),n.pause())}function h(e){xr("onerror",e),v(),t.removeListener("error",h),0===function(t,e){return t.listeners(e).length}(t,"error")&&t.emit("error",e)}function d(){t.removeListener("finish",p),v()}function p(){xr("onfinish"),t.removeListener("close",d),v()}function v(){xr("unpipe"),n.unpipe(t)}return n.on("data",f),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",h),t.once("close",d),t.once("finish",p),t.emit("pipe",n),r.flowing||(xr("pipe resume"),n.resume()),t},Ir.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this)),this;if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}var o=Wr(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this)),this},Ir.prototype.on=function(t,e){var n=hr.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&Br(this):Xt(zr,this))}return n},Ir.prototype.addListener=Ir.prototype.on,Ir.prototype.resume=function(){var t=this._readableState;return t.flowing||(xr("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Xt(Ur,t,e))}(this,t)),this},Ir.prototype.pause=function(){return xr("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(xr("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Ir.prototype.wrap=function(t){var e=this._readableState,n=!1,r=this;for(var i in t.on("end",(function(){if(xr("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&r.push(t)}r.push(null)})),t.on("data",(function(i){(xr("wrapped data"),e.decoder&&(i=e.decoder.write(i)),e.objectMode&&null==i)||(e.objectMode||i&&i.length)&&(r.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));return function(t,e){for(var n=0,r=t.length;n<r;n++)e(t[n],n)}(["error","close","destroy","pause","resume"],(function(e){t.on(e,r.emit.bind(r,e))})),r._read=function(e){xr("wrapped _read",e),n&&(n=!1,t.resume())},r},Ir._fromList=Fr,Yr.WritableState=Kr,Nn(Yr,hr),Kr.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},Yr.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},Yr.prototype.write=function(t,e,n){var r=this._writableState,i=!1;return"function"==typeof e&&(n=e,e=null),Le.isBuffer(t)?e="buffer":e||(e=r.defaultEncoding),"function"!=typeof n&&(n=Hr),r.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),Xt(e,n)}(this,n):function(t,e,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):Le.isBuffer(n)||"string"==typeof n||void 0===n||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),Xt(r,o),i=!1),i}(this,r,t,n)&&(r.pendingcb++,i=function(t,e,n,r,i){n=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=Le.from(e,n));return e}(e,n,r),Le.isBuffer(n)&&(r="buffer");var o=e.objectMode?1:n.length;e.length+=o;var a=e.length<e.highWaterMark;a||(e.needDrain=!0);if(e.writing||e.corked){var s=e.lastBufferedRequest;e.lastBufferedRequest=new $r(n,r,i),s?s.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Gr(t,e,!1,o,n,r,i);return a}(this,r,t,e,n)),i},Yr.prototype.cork=function(){this._writableState.corked++},Yr.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||Vr(this,t))},Yr.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Yr.prototype._write=function(t,e,n){n(new Error("not implemented"))},Yr.prototype._writev=null,Yr.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(t,e,n){e.ending=!0,ti(t,e),n&&(e.finished?Xt(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,r,n)},Nn(oi,Ir);for(var ni=Object.keys(Yr.prototype),ri=0;ri<ni.length;ri++){var ii=ni[ri];oi.prototype[ii]||(oi.prototype[ii]=Yr.prototype[ii])}function oi(t){if(!(this instanceof oi))return new oi(t);Ir.call(this,t),Yr.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",ai)}function ai(){this.allowHalfOpen||this._writableState.ended||Xt(si,this)}function si(t){t.end()}function ui(t){this.afterTransform=function(e,n){return function(t,e,n){var r=t._transformState;r.transforming=!1;var i=r.writecb;if(!i)return t.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=n&&t.push(n);i(e);var o=t._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&t._read(o.highWaterMark)}(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function ci(t){if(!(this instanceof ci))return new ci(t);oi.call(this,t),this._transformState=new ui(this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(t){li(e,t)})):li(e)}))}function li(t,e){if(e)return t.emit("error",e);var n=t._writableState,r=t._transformState;if(n.length)throw new Error("Calling transform done when ws.length != 0");if(r.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}function fi(t){if(!(this instanceof fi))return new fi(t);ci.call(this,t)}function hi(){hr.call(this)}Nn(ci,oi),ci.prototype.push=function(t,e){return this._transformState.needTransform=!1,oi.prototype.push.call(this,t,e)},ci.prototype._transform=function(t,e,n){throw new Error("Not implemented")},ci.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},ci.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},Nn(fi,ci),fi.prototype._transform=function(t,e,n){n(null,t)},Nn(hi,hr),hi.Readable=Ir,hi.Writable=Yr,hi.Duplex=oi,hi.Transform=ci,hi.PassThrough=fi,hi.Stream=hi,hi.prototype.pipe=function(t,e){var n=this;function r(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",r),t.on("drain",i),t._isStdio||e&&!1===e.end||(n.on("end",a),n.on("close",s));var o=!1;function a(){o||(o=!0,t.end())}function s(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function u(t){if(c(),0===hr.listenerCount(this,"error"))throw t}function c(){n.removeListener("data",r),t.removeListener("drain",i),n.removeListener("end",a),n.removeListener("close",s),n.removeListener("error",u),t.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),t.removeListener("close",c)}return n.on("error",u),t.on("error",u),n.on("end",c),n.on("close",c),t.on("close",c),t.emit("pipe",n),t};var di=3,pi=4;function vi(t,e,n){var r,i=this;if(Ir.call(i),i._mode=n,i.headers={},i.rawHeaders=[],i.trailers={},i.rawTrailers=[],i.on("end",(function(){fe.nextTick((function(){i.emit("close")}))})),"fetch"===n){i._fetchResponse=e,i.url=e.url,i.statusCode=e.status,i.statusMessage=e.statusText;for(var o,a,s=e.headers[Symbol.iterator]();o=(a=s.next()).value,!a.done;)i.headers[o[0].toLowerCase()]=o[1],i.rawHeaders.push(o[0],o[1]);var u=e.body.getReader();(r=function(){u.read().then((function(t){i._destroyed||(t.done?i.push(null):(i.push(new Le(t.value)),r()))}))})()}else{if(i._xhr=t,i._pos=0,i.url=t.responseURL,i.statusCode=t.status,i.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach((function(t){var e=t.match(/^([^:]+):\s*(.*)/);if(e){var n=e[1].toLowerCase();"set-cookie"===n?(void 0===i.headers[n]&&(i.headers[n]=[]),i.headers[n].push(e[2])):void 0!==i.headers[n]?i.headers[n]+=", "+e[2]:i.headers[n]=e[2],i.rawHeaders.push(e[1],e[2])}})),i._charset="x-user-defined",!xn){var c=i.rawHeaders["mime-type"];if(c){var l=c.match(/;\s*charset=([^;])(;|$)/);l&&(i._charset=l[1].toLowerCase())}i._charset||(i._charset="utf-8")}}}function gi(t){var e,n=this;Yr.call(n),n._opts=t,n._body=[],n._headers={},t.auth&&n.setHeader("Authorization","Basic "+new Le(t.auth).toString("base64")),Object.keys(t.headers).forEach((function(e){n.setHeader(e,t.headers[e])}));var r=!0;if("disable-fetch"===t.mode)r=!1,e=!0;else if("prefer-streaming"===t.mode)e=!1;else if("allow-wrong-content-type"===t.mode)e=!xn;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw new Error("Invalid value for opts.mode");e=!0}n._mode=function(t,e){return kn&&e?"fetch":Rn?"moz-chunked-arraybuffer":Tn?"ms-stream":Cn&&t?"arraybuffer":On&&t?"text:vbarray":"text"}(e,r),n.on("finish",(function(){n._onFinish()}))}Nn(vi,Ir),vi.prototype._read=function(){},vi.prototype._onXHRProgress=function(){var t=this,e=t._xhr,n=null;switch(t._mode){case"text:vbarray":if(e.readyState!==pi)break;try{n=new Dt.VBArray(e.responseBody).toArray()}catch(t){}if(null!==n){t.push(new Le(n));break}case"text":try{n=e.responseText}catch(e){t._mode="text:vbarray";break}if(n.length>t._pos){var r=n.substr(t._pos);if("x-user-defined"===t._charset){for(var i=new Le(r.length),o=0;o<r.length;o++)i[o]=255&r.charCodeAt(o);t.push(i)}else t.push(r,t._charset);t._pos=n.length}break;case"arraybuffer":if(e.readyState!==pi||!e.response)break;n=e.response,t.push(new Le(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=e.response,e.readyState!==di||!n)break;t.push(new Le(new Uint8Array(n)));break;case"ms-stream":if(n=e.response,e.readyState!==di)break;var a=new Dt.MSStreamReader;a.onprogress=function(){a.result.byteLength>t._pos&&(t.push(new Le(new Uint8Array(a.result.slice(t._pos)))),t._pos=a.result.byteLength)},a.onload=function(){t.push(null)},a.readAsArrayBuffer(n)}t._xhr.readyState===pi&&"ms-stream"!==t._mode&&t.push(null)},Nn(gi,Yr);var _i=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"];gi.prototype.setHeader=function(t,e){var n=t.toLowerCase();-1===_i.indexOf(n)&&(this._headers[n]={name:t,value:e})},gi.prototype.getHeader=function(t){return this._headers[t.toLowerCase()].value},gi.prototype.removeHeader=function(t){delete this._headers[t.toLowerCase()]},gi.prototype._onFinish=function(){var t=this;if(!t._destroyed){var e,n=t._opts,r=t._headers;if("POST"!==n.method&&"PUT"!==n.method&&"PATCH"!==n.method||(e=function(){if(void 0!==wn)return wn;try{new Dt.Blob([new ArrayBuffer(1)]),wn=!0}catch(t){wn=!1}return wn}()?new Dt.Blob(t._body.map((function(t){return function(t){if(t instanceof Uint8Array){if(0===t.byteOffset&&t.byteLength===t.buffer.byteLength)return t.buffer;if("function"==typeof t.buffer.slice)return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(yn(t)){for(var e=new Uint8Array(t.length),n=t.length,r=0;r<n;r++)e[r]=t[r];return e.buffer}throw new Error("Argument must be a Buffer")}(t)})),{type:(r["content-type"]||{}).value||""}):Le.concat(t._body).toString()),"fetch"===t._mode){var i=Object.keys(r).map((function(t){return[r[t].name,r[t].value]}));Dt.fetch(t._opts.url,{method:t._opts.method,headers:i,body:e,mode:"cors",credentials:n.withCredentials?"include":"same-origin"}).then((function(e){t._fetchResponse=e,t._connect()}),(function(e){t.emit("error",e)}))}else{var o=t._xhr=new Dt.XMLHttpRequest;try{o.open(t._opts.method,t._opts.url,!0)}catch(e){return void fe.nextTick((function(){t.emit("error",e)}))}"responseType"in o&&(o.responseType=t._mode.split(":")[0]),"withCredentials"in o&&(o.withCredentials=!!n.withCredentials),"text"===t._mode&&"overrideMimeType"in o&&o.overrideMimeType("text/plain; charset=x-user-defined"),Object.keys(r).forEach((function(t){o.setRequestHeader(r[t].name,r[t].value)})),t._response=null,o.onreadystatechange=function(){switch(o.readyState){case di:case pi:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&(o.onprogress=function(){t._onXHRProgress()}),o.onerror=function(){t._destroyed||t.emit("error",new Error("XHR error"))};try{o.send(e)}catch(e){return void fe.nextTick((function(){t.emit("error",e)}))}}}},gi.prototype._onXHRProgress=function(){var t=this;(function(t){try{var e=t.status;return null!==e&&0!==e}catch(t){return!1}})(t._xhr)&&!t._destroyed&&(t._response||t._connect(),t._response._onXHRProgress())},gi.prototype._connect=function(){var t=this;t._destroyed||(t._response=new vi(t._xhr,t._fetchResponse,t._mode),t.emit("response",t._response))},gi.prototype._write=function(t,e,n){this._body.push(t),n()},gi.prototype.abort=gi.prototype.destroy=function(){var t=this;t._destroyed=!0,t._response&&(t._response._destroyed=!0),t._xhr&&t._xhr.abort()},gi.prototype.end=function(t,e,n){"function"==typeof t&&(n=t,t=void 0),Yr.prototype.end.call(this,t,e,n)},gi.prototype.flushHeaders=function(){},gi.prototype.setTimeout=function(){},gi.prototype.setNoDelay=function(){},gi.prototype.setSocketKeepAlive=function(){};
|
|
16
|
+
function bt(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function kt(t,e){return function(n,r){e(n,r,t)}}function Et(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function St(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function At(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}var Ct=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}},Tt=Object.prototype.toString;function Rt(t){return"[object Array]"===Tt.call(t)}function xt(t){return void 0===t}function Ot(t){return null!==t&&"object"==typeof t}function It(t){if("[object Object]"!==Tt.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function Nt(t){return"[object Function]"===Tt.call(t)}function jt(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),Rt(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}var Lt={isArray:Rt,isArrayBuffer:function(t){return"[object ArrayBuffer]"===Tt.call(t)},isBuffer:function(t){return null!==t&&!xt(t)&&null!==t.constructor&&!xt(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:Ot,isPlainObject:It,isUndefined:xt,isDate:function(t){return"[object Date]"===Tt.call(t)},isFile:function(t){return"[object File]"===Tt.call(t)},isBlob:function(t){return"[object Blob]"===Tt.call(t)},isFunction:Nt,isStream:function(t){return Ot(t)&&Nt(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:jt,merge:function t(){var e={};function n(n,r){It(e[r])&&It(n)?e[r]=t(e[r],n):It(n)?e[r]=t({},n):Rt(n)?e[r]=n.slice():e[r]=n}for(var r=0,i=arguments.length;r<i;r++)jt(arguments[r],n);return e},extend:function(t,e,n){return jt(e,(function(e,r){t[r]=n&&"function"==typeof e?Ct(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}};function Bt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Pt=function(t,e,n){if(!e)return t;var r;if(n)r=n(e);else if(Lt.isURLSearchParams(e))r=e.toString();else{var i=[];Lt.forEach(e,(function(t,e){null!=t&&(Lt.isArray(t)?e+="[]":t=[t],Lt.forEach(t,(function(t){Lt.isDate(t)?t=t.toISOString():Lt.isObject(t)&&(t=JSON.stringify(t)),i.push(Bt(e)+"="+Bt(t))})))})),r=i.join("&")}if(r){var o=t.indexOf("#");-1!==o&&(t=t.slice(0,o)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t};function Mt(){this.handlers=[]}Mt.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},Mt.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},Mt.prototype.forEach=function(t){Lt.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var zt=Mt,Ut=function(t,e,n){return Lt.forEach(n,(function(n){t=n(t,e)})),t},Dt=function(t){return!(!t||!t.__CANCEL__)},Ft="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function qt(){throw new Error("setTimeout has not been defined")}function Zt(){throw new Error("clearTimeout has not been defined")}var Wt=qt,Ht=Zt;function $t(t){if(Wt===setTimeout)return setTimeout(t,0);if((Wt===qt||!Wt)&&setTimeout)return Wt=setTimeout,setTimeout(t,0);try{return Wt(t,0)}catch(e){try{return Wt.call(null,t,0)}catch(e){return Wt.call(this,t,0)}}}"function"==typeof Ft.setTimeout&&(Wt=setTimeout),"function"==typeof Ft.clearTimeout&&(Ht=clearTimeout);var Kt,Yt=[],Gt=!1,Jt=-1;function Vt(){Gt&&Kt&&(Gt=!1,Kt.length?Yt=Kt.concat(Yt):Jt=-1,Yt.length&&Xt())}function Xt(){if(!Gt){var t=$t(Vt);Gt=!0;for(var e=Yt.length;e;){for(Kt=Yt,Yt=[];++Jt<e;)Kt&&Kt[Jt].run();Jt=-1,e=Yt.length}Kt=null,Gt=!1,function(t){if(Ht===clearTimeout)return clearTimeout(t);if((Ht===Zt||!Ht)&&clearTimeout)return Ht=clearTimeout,clearTimeout(t);try{Ht(t)}catch(e){try{return Ht.call(null,t)}catch(e){return Ht.call(this,t)}}}(t)}}function Qt(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];Yt.push(new te(t,e)),1!==Yt.length||Gt||$t(Xt)}function te(t,e){this.fun=t,this.array=e}te.prototype.run=function(){this.fun.apply(null,this.array)};function ee(){}var ne=ee,re=ee,ie=ee,oe=ee,ae=ee,se=ee,ue=ee;var ce=Ft.performance||{},le=ce.now||ce.mozNow||ce.msNow||ce.oNow||ce.webkitNow||function(){return(new Date).getTime()};var fe=new Date;var he={nextTick:Qt,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:ne,addListener:re,once:ie,off:oe,removeListener:ae,removeAllListeners:se,emit:ue,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*le.call(ce),n=Math.floor(e),r=Math.floor(e%1*1e9);return t&&(n-=t[0],(r-=t[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-fe)/1e3}},de=function(t,e){Lt.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))},pe=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t},ve=function(t,e,n,r,i){var o=new Error(t);return pe(o,e,n,r,i)},ge=function(t,e,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(ve("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)},_e=Lt.isStandardBrowserEnv()?{write:function(t,e,n,r,i,o){var a=[];a.push(t+"="+encodeURIComponent(e)),Lt.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Lt.isString(r)&&a.push("path="+r),Lt.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},me=function(t,e){return t&&!function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e},ye=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],we=Lt.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=r(window.location.href),function(e){var n=Lt.isString(e)?r(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0},be=function(t){return new Promise((function(e,n){var r=t.data,i=t.headers;Lt.isFormData(r)&&delete i["Content-Type"];var o=new XMLHttpRequest;if(t.auth){var a=t.auth.username||"",s=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.Authorization="Basic "+btoa(a+":"+s)}var u=me(t.baseURL,t.url);if(o.open(t.method.toUpperCase(),Pt(u,t.params,t.paramsSerializer),!0),o.timeout=t.timeout,o.onreadystatechange=function(){if(o&&4===o.readyState&&(0!==o.status||o.responseURL&&0===o.responseURL.indexOf("file:"))){var r,i,a,s,u,c="getAllResponseHeaders"in o?(r=o.getAllResponseHeaders(),u={},r?(Lt.forEach(r.split("\n"),(function(t){if(s=t.indexOf(":"),i=Lt.trim(t.substr(0,s)).toLowerCase(),a=Lt.trim(t.substr(s+1)),i){if(u[i]&&ye.indexOf(i)>=0)return;u[i]="set-cookie"===i?(u[i]?u[i]:[]).concat([a]):u[i]?u[i]+", "+a:a}})),u):u):null,l={data:t.responseType&&"text"!==t.responseType?o.response:o.responseText,status:o.status,statusText:o.statusText,headers:c,config:t,request:o};ge(e,n,l),o=null}},o.onabort=function(){o&&(n(ve("Request aborted",t,"ECONNABORTED",o)),o=null)},o.onerror=function(){n(ve("Network Error",t,null,o)),o=null},o.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(ve(e,t,"ECONNABORTED",o)),o=null},Lt.isStandardBrowserEnv()){var c=(t.withCredentials||we(u))&&t.xsrfCookieName?_e.read(t.xsrfCookieName):void 0;c&&(i[t.xsrfHeaderName]=c)}if("setRequestHeader"in o&&Lt.forEach(i,(function(t,e){void 0===r&&"content-type"===e.toLowerCase()?delete i[e]:o.setRequestHeader(e,t)})),Lt.isUndefined(t.withCredentials)||(o.withCredentials=!!t.withCredentials),t.responseType)try{o.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&o.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&o.upload&&o.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){o&&(o.abort(),n(t),o=null)})),r||(r=null),o.send(r)}))},ke=[],Ee=[],Se="undefined"!=typeof Uint8Array?Uint8Array:Array,Ae=!1;function Ce(){Ae=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,n=t.length;e<n;++e)ke[e]=t[e],Ee[t.charCodeAt(e)]=e;Ee["-".charCodeAt(0)]=62,Ee["_".charCodeAt(0)]=63}function Te(t,e,n){for(var r,i,o=[],a=e;a<n;a+=3)r=(t[a]<<16)+(t[a+1]<<8)+t[a+2],o.push(ke[(i=r)>>18&63]+ke[i>>12&63]+ke[i>>6&63]+ke[63&i]);return o.join("")}function Re(t){var e;Ae||Ce();for(var n=t.length,r=n%3,i="",o=[],a=16383,s=0,u=n-r;s<u;s+=a)o.push(Te(t,s,s+a>u?u:s+a));return 1===r?(e=t[n-1],i+=ke[e>>2],i+=ke[e<<4&63],i+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],i+=ke[e>>10],i+=ke[e>>4&63],i+=ke[e<<2&63],i+="="),o.push(i),o.join("")}function xe(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,c=u>>1,l=-7,f=n?i-1:0,h=n?-1:1,d=t[e+f];for(f+=h,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+t[e+f],f+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=c}return(d?-1:1)*a*Math.pow(2,o-r)}function Oe(t,e,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(e*u-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;t[n+d]=255&a,d+=p,a/=256,c-=8);t[n+d-p]|=128*v}var Ie={}.toString,Ne=Array.isArray||function(t){return"[object Array]"==Ie.call(t)};function je(){return Be.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Le(t,e){if(je()<e)throw new RangeError("Invalid typed array length");return Be.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=Be.prototype:(null===t&&(t=new Be(e)),t.length=e),t}function Be(t,e,n){if(!(Be.TYPED_ARRAY_SUPPORT||this instanceof Be))return new Be(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return ze(this,t)}return Pe(this,t,e,n)}function Pe(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);Be.TYPED_ARRAY_SUPPORT?(t=e).__proto__=Be.prototype:t=Ue(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!Be.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|qe(e,n),i=(t=Le(t,r)).write(e,n);i!==r&&(t=t.slice(0,i));return t}(t,e,n):function(t,e){if(Fe(e)){var n=0|De(e.length);return 0===(t=Le(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?Le(t,0):Ue(t,e);if("Buffer"===e.type&&Ne(e.data))return Ue(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function Me(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function ze(t,e){if(Me(e),t=Le(t,e<0?0:0|De(e)),!Be.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function Ue(t,e){var n=e.length<0?0:0|De(e.length);t=Le(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function De(t){if(t>=je())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+je().toString(16)+" bytes");return 0|t}function Fe(t){return!(null==t||!t._isBuffer)}function qe(t,e){if(Fe(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return gn(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return _n(t).length;default:if(r)return gn(t).length;e=(""+e).toLowerCase(),r=!0}}function Ze(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return on(this,e,n);case"utf8":case"utf-8":return tn(this,e,n);case"ascii":return nn(this,e,n);case"latin1":case"binary":return rn(this,e,n);case"base64":return Qe(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return an(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function We(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function He(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=Be.from(e,r)),Fe(e))return 0===e.length?-1:$e(t,e,n,r,i);if("number"==typeof e)return e&=255,Be.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):$e(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function $e(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=n;o<s;o++)if(c(t,o)===c(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var f=!0,h=0;h<u;h++)if(c(t,o+h)!==c(e,h)){f=!1;break}if(f)return o}return-1}function Ke(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function Ye(t,e,n,r){return mn(gn(e,t.length-n),t,n,r)}function Ge(t,e,n,r){return mn(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function Je(t,e,n,r){return Ge(t,e,n,r)}function Ve(t,e,n,r){return mn(_n(e),t,n,r)}function Xe(t,e,n,r){return mn(function(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=(n=t.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function Qe(t,e,n){return 0===e&&n===t.length?Re(t):Re(t.slice(e,n))}function tn(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,a,s,u,c=t[i],l=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(t){var e=t.length;if(e<=en)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=en));return n}(r)}Be.TYPED_ARRAY_SUPPORT=void 0===Ft.TYPED_ARRAY_SUPPORT||Ft.TYPED_ARRAY_SUPPORT,Be.poolSize=8192,Be._augment=function(t){return t.__proto__=Be.prototype,t},Be.from=function(t,e,n){return Pe(null,t,e,n)},Be.TYPED_ARRAY_SUPPORT&&(Be.prototype.__proto__=Uint8Array.prototype,Be.__proto__=Uint8Array),Be.alloc=function(t,e,n){return function(t,e,n,r){return Me(e),e<=0?Le(t,e):void 0!==n?"string"==typeof r?Le(t,e).fill(n,r):Le(t,e).fill(n):Le(t,e)}(null,t,e,n)},Be.allocUnsafe=function(t){return ze(null,t)},Be.allocUnsafeSlow=function(t){return ze(null,t)},Be.isBuffer=yn,Be.compare=function(t,e){if(!Fe(t)||!Fe(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},Be.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}},Be.concat=function(t,e){if(!Ne(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return Be.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=Be.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var o=t[n];if(!Fe(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},Be.byteLength=qe,Be.prototype._isBuffer=!0,Be.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)We(this,e,e+1);return this},Be.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)We(this,e,e+3),We(this,e+1,e+2);return this},Be.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)We(this,e,e+7),We(this,e+1,e+6),We(this,e+2,e+5),We(this,e+3,e+4);return this},Be.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?tn(this,0,t):Ze.apply(this,arguments)},Be.prototype.equals=function(t){if(!Fe(t))throw new TypeError("Argument must be a Buffer");return this===t||0===Be.compare(this,t)},Be.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},Be.prototype.compare=function(t,e,n,r,i){if(!Fe(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(r,i),c=t.slice(e,n),l=0;l<s;++l)if(u[l]!==c[l]){o=u[l],a=c[l];break}return o<a?-1:a<o?1:0},Be.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},Be.prototype.indexOf=function(t,e,n){return He(this,t,e,n,!0)},Be.prototype.lastIndexOf=function(t,e,n){return He(this,t,e,n,!1)},Be.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return Ke(this,t,e,n);case"utf8":case"utf-8":return Ye(this,t,e,n);case"ascii":return Ge(this,t,e,n);case"latin1":case"binary":return Je(this,t,e,n);case"base64":return Ve(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xe(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},Be.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var en=4096;function nn(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function rn(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function on(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=vn(t[o]);return i}function an(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function sn(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function un(t,e,n,r,i,o){if(!Fe(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(n+r>t.length)throw new RangeError("Index out of range")}function cn(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function ln(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function fn(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function hn(t,e,n,r,i){return i||fn(t,0,n,4),Oe(t,e,n,r,23,4),n+4}function dn(t,e,n,r,i){return i||fn(t,0,n,8),Oe(t,e,n,r,52,8),n+8}Be.prototype.slice=function(t,e){var n,r=this.length;if((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),Be.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=Be.prototype;else{var i=e-t;n=new Be(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},Be.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||sn(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},Be.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||sn(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},Be.prototype.readUInt8=function(t,e){return e||sn(t,1,this.length),this[t]},Be.prototype.readUInt16LE=function(t,e){return e||sn(t,2,this.length),this[t]|this[t+1]<<8},Be.prototype.readUInt16BE=function(t,e){return e||sn(t,2,this.length),this[t]<<8|this[t+1]},Be.prototype.readUInt32LE=function(t,e){return e||sn(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Be.prototype.readUInt32BE=function(t,e){return e||sn(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Be.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||sn(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},Be.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||sn(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},Be.prototype.readInt8=function(t,e){return e||sn(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},Be.prototype.readInt16LE=function(t,e){e||sn(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},Be.prototype.readInt16BE=function(t,e){e||sn(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},Be.prototype.readInt32LE=function(t,e){return e||sn(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Be.prototype.readInt32BE=function(t,e){return e||sn(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Be.prototype.readFloatLE=function(t,e){return e||sn(t,4,this.length),xe(this,t,!0,23,4)},Be.prototype.readFloatBE=function(t,e){return e||sn(t,4,this.length),xe(this,t,!1,23,4)},Be.prototype.readDoubleLE=function(t,e){return e||sn(t,8,this.length),xe(this,t,!0,52,8)},Be.prototype.readDoubleBE=function(t,e){return e||sn(t,8,this.length),xe(this,t,!1,52,8)},Be.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||un(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},Be.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||un(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},Be.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||un(this,t,e,1,255,0),Be.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},Be.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||un(this,t,e,2,65535,0),Be.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):cn(this,t,e,!0),e+2},Be.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||un(this,t,e,2,65535,0),Be.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):cn(this,t,e,!1),e+2},Be.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||un(this,t,e,4,4294967295,0),Be.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):ln(this,t,e,!0),e+4},Be.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||un(this,t,e,4,4294967295,0),Be.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):ln(this,t,e,!1),e+4},Be.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);un(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},Be.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);un(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},Be.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||un(this,t,e,1,127,-128),Be.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},Be.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||un(this,t,e,2,32767,-32768),Be.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):cn(this,t,e,!0),e+2},Be.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||un(this,t,e,2,32767,-32768),Be.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):cn(this,t,e,!1),e+2},Be.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||un(this,t,e,4,2147483647,-2147483648),Be.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):ln(this,t,e,!0),e+4},Be.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||un(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Be.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):ln(this,t,e,!1),e+4},Be.prototype.writeFloatLE=function(t,e,n){return hn(this,t,e,!0,n)},Be.prototype.writeFloatBE=function(t,e,n){return hn(this,t,e,!1,n)},Be.prototype.writeDoubleLE=function(t,e,n){return dn(this,t,e,!0,n)},Be.prototype.writeDoubleBE=function(t,e,n){return dn(this,t,e,!1,n)},Be.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!Be.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},Be.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!Be.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=Fe(t)?t:gn(new Be(t,r).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var pn=/[^+\/0-9A-Za-z-_]/g;function vn(t){return t<16?"0"+t.toString(16):t.toString(16)}function gn(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function _n(t){return function(t){var e,n,r,i,o,a;Ae||Ce();var s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===t[s-2]?2:"="===t[s-1]?1:0,a=new Se(3*s/4-o),r=o>0?s-4:s;var u=0;for(e=0,n=0;e<r;e+=4,n+=3)i=Ee[t.charCodeAt(e)]<<18|Ee[t.charCodeAt(e+1)]<<12|Ee[t.charCodeAt(e+2)]<<6|Ee[t.charCodeAt(e+3)],a[u++]=i>>16&255,a[u++]=i>>8&255,a[u++]=255&i;return 2===o?(i=Ee[t.charCodeAt(e)]<<2|Ee[t.charCodeAt(e+1)]>>4,a[u++]=255&i):1===o&&(i=Ee[t.charCodeAt(e)]<<10|Ee[t.charCodeAt(e+1)]<<4|Ee[t.charCodeAt(e+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(pn,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function mn(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function yn(t){return null!=t&&(!!t._isBuffer||wn(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&wn(t.slice(0,0))}(t))}function wn(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var bn,kn,En=Nn(Ft.fetch)&&Nn(Ft.ReadableStream);function Sn(t){kn||(kn=new Ft.XMLHttpRequest).open("GET",Ft.location.host?"/":"https://example.com");try{return kn.responseType=t,kn.responseType===t}catch(t){return!1}}var An=void 0!==Ft.ArrayBuffer,Cn=An&&Nn(Ft.ArrayBuffer.prototype.slice),Tn=An&&Sn("arraybuffer"),Rn=!En&&Cn&&Sn("ms-stream"),xn=!En&&An&&Sn("moz-chunked-arraybuffer"),On=Nn(kn.overrideMimeType),In=Nn(Ft.VBArray);function Nn(t){return"function"==typeof t}kn=null;var jn="function"==typeof Object.create?function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t},Ln=/%[sdj%]/g;function Bn(t){if(!Vn(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(Dn(arguments[n]));return e.join(" ")}n=1;for(var r=arguments,i=r.length,o=String(t).replace(Ln,(function(t){if("%%"===t)return"%";if(n>=i)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}})),a=r[n];n<i;a=r[++n])Yn(a)||!tr(a)?o+=" "+a:o+=" "+Dn(a);return o}function Pn(t,e){if(Xn(Ft.process))return function(){return Pn(t,e).apply(this,arguments)};if(!0===he.noDeprecation)return t;var n=!1;return function(){if(!n){if(he.throwDeprecation)throw new Error(e);he.traceDeprecation?console.trace(e):console.error(e),n=!0}return t.apply(this,arguments)}}var Mn,zn={};function Un(t){if(Xn(Mn)&&(Mn=he.env.NODE_DEBUG||""),t=t.toUpperCase(),!zn[t])if(new RegExp("\\b"+t+"\\b","i").test(Mn)){zn[t]=function(){var e=Bn.apply(null,arguments);console.error("%s %d: %s",t,0,e)}}else zn[t]=function(){};return zn[t]}function Dn(t,e){var n={seen:[],stylize:qn};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Kn(e)?n.showHidden=e:e&&cr(n,e),Xn(n.showHidden)&&(n.showHidden=!1),Xn(n.depth)&&(n.depth=2),Xn(n.colors)&&(n.colors=!1),Xn(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=Fn),Zn(n,t,n.depth)}function Fn(t,e){var n=Dn.styles[e];return n?"["+Dn.colors[n][0]+"m"+t+"["+Dn.colors[n][1]+"m":t}function qn(t,e){return t}function Zn(t,e,n){if(t.customInspect&&e&&rr(e.inspect)&&e.inspect!==Dn&&(!e.constructor||e.constructor.prototype!==e)){var r=e.inspect(n,t);return Vn(r)||(r=Zn(t,r,n)),r}var i=function(t,e){if(Xn(e))return t.stylize("undefined","undefined");if(Vn(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(Jn(e))return t.stylize(""+e,"number");if(Kn(e))return t.stylize(""+e,"boolean");if(Yn(e))return t.stylize("null","null")}(t,e);if(i)return i;var o=Object.keys(e),a=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(e)),nr(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return Wn(e);if(0===o.length){if(rr(e)){var s=e.name?": "+e.name:"";return t.stylize("[Function"+s+"]","special")}if(Qn(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(er(e))return t.stylize(Date.prototype.toString.call(e),"date");if(nr(e))return Wn(e)}var u,c="",l=!1,f=["{","}"];($n(e)&&(l=!0,f=["[","]"]),rr(e))&&(c=" [Function"+(e.name?": "+e.name:"")+"]");return Qn(e)&&(c=" "+RegExp.prototype.toString.call(e)),er(e)&&(c=" "+Date.prototype.toUTCString.call(e)),nr(e)&&(c=" "+Wn(e)),0!==o.length||l&&0!=e.length?n<0?Qn(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),u=l?function(t,e,n,r,i){for(var o=[],a=0,s=e.length;a<s;++a)lr(e,String(a))?o.push(Hn(t,e,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(Hn(t,e,n,r,i,!0))})),o}(t,e,n,a,o):o.map((function(r){return Hn(t,e,n,a,r,l)})),t.seen.pop(),function(t,e,n){if(t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1];return n[0]+e+" "+t.join(", ")+" "+n[1]}(u,c,f)):f[0]+c+f[1]}function Wn(t){return"["+Error.prototype.toString.call(t)+"]"}function Hn(t,e,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),lr(r,i)||(a="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(s=Yn(n)?Zn(t,u.value,null):Zn(t,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),Xn(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function $n(t){return Array.isArray(t)}function Kn(t){return"boolean"==typeof t}function Yn(t){return null===t}function Gn(t){return null==t}function Jn(t){return"number"==typeof t}function Vn(t){return"string"==typeof t}function Xn(t){return void 0===t}function Qn(t){return tr(t)&&"[object RegExp]"===or(t)}function tr(t){return"object"==typeof t&&null!==t}function er(t){return tr(t)&&"[object Date]"===or(t)}function nr(t){return tr(t)&&("[object Error]"===or(t)||t instanceof Error)}function rr(t){return"function"==typeof t}function ir(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t}function or(t){return Object.prototype.toString.call(t)}function ar(t){return t<10?"0"+t.toString(10):t.toString(10)}Dn.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Dn.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var sr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ur(){var t=new Date,e=[ar(t.getHours()),ar(t.getMinutes()),ar(t.getSeconds())].join(":");return[t.getDate(),sr[t.getMonth()],e].join(" ")}function cr(t,e){if(!e||!tr(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}function lr(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var fr={inherits:jn,_extend:cr,log:function(){console.log("%s - %s",ur(),Bn.apply(null,arguments))},isBuffer:function(t){return Be.isBuffer(t)},isPrimitive:ir,isFunction:rr,isError:nr,isDate:er,isObject:tr,isRegExp:Qn,isUndefined:Xn,isSymbol:function(t){return"symbol"==typeof t},isString:Vn,isNumber:Jn,isNullOrUndefined:Gn,isNull:Yn,isBoolean:Kn,isArray:$n,inspect:Dn,deprecate:Pn,format:Bn,debuglog:Un};function hr(){}function dr(){dr.init.call(this)}function pr(t){return void 0===t._maxListeners?dr.defaultMaxListeners:t._maxListeners}function vr(t,e,n){if(e)t.call(n);else for(var r=t.length,i=Er(t,r),o=0;o<r;++o)i[o].call(n)}function gr(t,e,n,r){if(e)t.call(n,r);else for(var i=t.length,o=Er(t,i),a=0;a<i;++a)o[a].call(n,r)}function _r(t,e,n,r,i){if(e)t.call(n,r,i);else for(var o=t.length,a=Er(t,o),s=0;s<o;++s)a[s].call(n,r,i)}function mr(t,e,n,r,i,o){if(e)t.call(n,r,i,o);else for(var a=t.length,s=Er(t,a),u=0;u<a;++u)s[u].call(n,r,i,o)}function yr(t,e,n,r){if(e)t.apply(n,r);else for(var i=t.length,o=Er(t,i),a=0;a<i;++a)o[a].apply(n,r)}function wr(t,e,n,r){var i,o,a,s;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((o=t._events)?(o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),a=o[e]):(o=t._events=new hr,t._eventsCount=0),a){if("function"==typeof a?a=o[e]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),!a.warned&&(i=pr(t))&&i>0&&a.length>i){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+e+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=a.length,s=u,"function"==typeof console.warn?console.warn(s):console.log(s)}}else a=o[e]=n,++t._eventsCount;return t}function br(t,e,n){var r=!1;function i(){t.removeListener(e,i),r||(r=!0,n.apply(t,arguments))}return i.listener=n,i}function kr(t){var e=this._events;if(e){var n=e[t];if("function"==typeof n)return 1;if(n)return n.length}return 0}function Er(t,e){for(var n=new Array(e);e--;)n[e]=t[e];return n}function Sr(){this.head=null,this.tail=null,this.length=0}hr.prototype=Object.create(null),dr.EventEmitter=dr,dr.usingDomains=!1,dr.prototype.domain=void 0,dr.prototype._events=void 0,dr.prototype._maxListeners=void 0,dr.defaultMaxListeners=10,dr.init=function(){this.domain=null,dr.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new hr,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},dr.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},dr.prototype.getMaxListeners=function(){return pr(this)},dr.prototype.emit=function(t){var e,n,r,i,o,a,s,u="error"===t;if(a=this._events)u=u&&null==a.error;else if(!u)return!1;if(s=this.domain,u){if(e=arguments[1],!s){if(e instanceof Error)throw e;var c=new Error('Uncaught, unspecified "error" event. ('+e+")");throw c.context=e,c}return e||(e=new Error('Uncaught, unspecified "error" event')),e.domainEmitter=this,e.domain=s,e.domainThrown=!1,s.emit("error",e),!1}if(!(n=a[t]))return!1;var l="function"==typeof n;switch(r=arguments.length){case 1:vr(n,l,this);break;case 2:gr(n,l,this,arguments[1]);break;case 3:_r(n,l,this,arguments[1],arguments[2]);break;case 4:mr(n,l,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];yr(n,l,this,i)}return!0},dr.prototype.addListener=function(t,e){return wr(this,t,e,!1)},dr.prototype.on=dr.prototype.addListener,dr.prototype.prependListener=function(t,e){return wr(this,t,e,!0)},dr.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.on(t,br(this,t,e)),this},dr.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,br(this,t,e)),this},dr.prototype.removeListener=function(t,e){var n,r,i,o,a;if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[t]))return this;if(n===e||n.listener&&n.listener===e)0==--this._eventsCount?this._events=new hr:(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(i=-1,o=n.length;o-- >0;)if(n[o]===e||n[o].listener&&n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new hr,this;delete r[t]}else!function(t,e){for(var n=e,r=n+1,i=t.length;r<i;n+=1,r+=1)t[n]=t[r];t.pop()}(n,i);r.removeListener&&this.emit("removeListener",t,a||e)}return this},dr.prototype.removeAllListeners=function(t){var e,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new hr,this._eventsCount=0):n[t]&&(0==--this._eventsCount?this._events=new hr:delete n[t]),this;if(0===arguments.length){for(var r,i=Object.keys(n),o=0;o<i.length;++o)"removeListener"!==(r=i[o])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new hr,this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(e)do{this.removeListener(t,e[e.length-1])}while(e[0]);return this},dr.prototype.listeners=function(t){var e,n=this._events;return n&&(e=n[t])?"function"==typeof e?[e.listener||e]:function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(e):[]},dr.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):kr.call(t,e)},dr.prototype.listenerCount=kr,dr.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]},Sr.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},Sr.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},Sr.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},Sr.prototype.clear=function(){this.head=this.tail=null,this.length=0},Sr.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},Sr.prototype.concat=function(t){if(0===this.length)return Be.alloc(0);if(1===this.length)return this.head.data;for(var e=Be.allocUnsafe(t>>>0),n=this.head,r=0;n;)n.data.copy(e,r),r+=n.data.length,n=n.next;return e};var Ar=Be.isEncoding||function(t){switch(t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Cr(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),function(t){if(t&&!Ar(t))throw new Error("Unknown encoding: "+t)}(t),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=Rr;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=xr;break;default:return void(this.write=Tr)}this.charBuffer=new Be(6),this.charReceived=0,this.charLength=0}function Tr(t){return t.toString(this.encoding)}function Rr(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function xr(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}Cr.prototype.write=function(t){for(var e="";this.charLength;){var n=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(t=t.slice(n,t.length),!((i=(e=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(e.length-1))>=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var r=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,r),r-=this.charReceived);var i;r=(e+=t.toString(this.encoding,0,r)).length-1;if((i=e.charCodeAt(r))>=55296&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),t.copy(this.charBuffer,0,0,o),e.substring(0,r)}return e},Cr.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var n=t[t.length-e];if(1==e&&n>>5==6){this.charLength=2;break}if(e<=2&&n>>4==14){this.charLength=3;break}if(e<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=e},Cr.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;e+=r.slice(0,n).toString(i)}return e},Nr.ReadableState=Ir;var Or=Un("stream");function Ir(t,e){t=t||{},this.objectMode=!!t.objectMode,e instanceof ai&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var n=t.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new Sr,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(this.decoder=new Cr(t.encoding),this.encoding=t.encoding)}function Nr(t){if(!(this instanceof Nr))return new Nr(t);this._readableState=new Ir(t,this),this.readable=!0,t&&"function"==typeof t.read&&(this._read=t.read),dr.call(this)}function jr(t,e,n,r,i){var o=function(t,e){var n=null;Be.isBuffer(e)||"string"==typeof e||null==e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));return n}(e,n);if(o)t.emit("error",o);else if(null===n)e.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,Pr(t)}(t,e);else if(e.objectMode||n&&n.length>0)if(e.ended&&!i){var a=new Error("stream.push() after EOF");t.emit("error",a)}else if(e.endEmitted&&i){var s=new Error("stream.unshift() after end event");t.emit("error",s)}else{var u;!e.decoder||i||r||(n=e.decoder.write(n),u=!e.objectMode&&0===n.length),i||(e.reading=!1),u||(e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,i?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&Pr(t))),function(t,e){e.readingMore||(e.readingMore=!0,Qt(zr,t,e))}(t,e)}else i||(e.reading=!1);return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(e)}jn(Nr,dr),Nr.prototype.push=function(t,e){var n=this._readableState;return n.objectMode||"string"!=typeof t||(e=e||n.defaultEncoding)!==n.encoding&&(t=Be.from(t,e),e=""),jr(this,n,t,e,!1)},Nr.prototype.unshift=function(t){return jr(this,this._readableState,t,"",!0)},Nr.prototype.isPaused=function(){return!1===this._readableState.flowing},Nr.prototype.setEncoding=function(t){return this._readableState.decoder=new Cr(t),this._readableState.encoding=t,this};var Lr=8388608;function Br(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=Lr?t=Lr:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function Pr(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(Or("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Qt(Mr,t):Mr(t))}function Mr(t){Or("emit readable"),t.emit("readable"),Fr(t)}function zr(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(Or("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function Ur(t){Or("readable nexttick read 0"),t.read(0)}function Dr(t,e){e.reading||(Or("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),Fr(t),e.flowing&&!e.reading&&t.read(0)}function Fr(t){var e=t._readableState;for(Or("flow",e.flowing);e.flowing&&null!==t.read(););}function qr(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():n?function(t,e){var n=e.head,r=1,i=n.data;t-=i.length;for(;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++r}return e.length-=r,i}(t,e):function(t,e){var n=Be.allocUnsafe(t),r=e.head,i=1;r.data.copy(n),t-=r.data.length;for(;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,a),0===(t-=a)){a===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++i}return e.length-=i,n}(t,e);return r}(t,e.buffer,e.decoder),n);var n}function Zr(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Qt(Wr,e,t))}function Wr(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function Hr(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}function $r(){}function Kr(t,e,n){this.chunk=t,this.encoding=e,this.callback=n,this.next=null}function Yr(t,e){Object.defineProperty(this,"buffer",{get:Pn((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),t=t||{},this.objectMode=!!t.objectMode,e instanceof ai&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var n=t.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===t.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,r,i){--e.pendingcb,n?Qt(i,r):i(r);t._writableState.errorEmitted=!0,t.emit("error",r)}(t,n,r,e,i);else{var o=Qr(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||Xr(t,n),r?Qt(Vr,t,n,o,i):Vr(t,n,o,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new ni(this)}function Gr(t){if(!(this instanceof Gr||this instanceof ai))return new Gr(t);this._writableState=new Yr(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev)),dr.call(this)}function Jr(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function Vr(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),ei(t,e)}function Xr(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),o=e.corkedRequestsFree;o.entry=n;for(var a=0;n;)i[a]=n,n=n.next,a+=1;Jr(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new ni(e)}else{for(;n;){var s=n.chunk,u=n.encoding,c=n.callback;if(Jr(t,e,!1,e.objectMode?1:s.length,s,u,c),n=n.next,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequestCount=0,e.bufferedRequest=n,e.bufferProcessing=!1}function Qr(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function ti(t,e){e.prefinished||(e.prefinished=!0,t.emit("prefinish"))}function ei(t,e){var n=Qr(e);return n&&(0===e.pendingcb?(ti(t,e),e.finished=!0,t.emit("finish")):ti(t,e)),n}function ni(t){var e=this;this.next=null,this.entry=null,this.finish=function(n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}}Nr.prototype.read=function(t){Or("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return Or("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?Zr(this):Pr(this),null;if(0===(t=Br(t,e))&&e.ended)return 0===e.length&&Zr(this),null;var r,i=e.needReadable;return Or("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&Or("length less than watermark",i=!0),e.ended||e.reading?Or("reading or ended",i=!1):i&&(Or("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Br(n,e))),null===(r=t>0?qr(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&Zr(this)),null!==r&&this.emit("data",r),r},Nr.prototype._read=function(t){this.emit("error",new Error("not implemented"))},Nr.prototype.pipe=function(t,e){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t)}r.pipesCount+=1,Or("pipe count=%d opts=%j",r.pipesCount,e);var i=!e||!1!==e.end?a:c;function o(t){Or("onunpipe"),t===n&&c()}function a(){Or("onend"),t.end()}r.endEmitted?Qt(i):n.once("end",i),t.on("unpipe",o);var s=function(t){return function(){var e=t._readableState;Or("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&t.listeners("data").length&&(e.flowing=!0,Fr(t))}}(n);t.on("drain",s);var u=!1;function c(){Or("cleanup"),t.removeListener("close",d),t.removeListener("finish",p),t.removeListener("drain",s),t.removeListener("error",h),t.removeListener("unpipe",o),n.removeListener("end",a),n.removeListener("end",c),n.removeListener("data",f),u=!0,!r.awaitDrain||t._writableState&&!t._writableState.needDrain||s()}var l=!1;function f(e){Or("ondata"),l=!1,!1!==t.write(e)||l||((1===r.pipesCount&&r.pipes===t||r.pipesCount>1&&-1!==Hr(r.pipes,t))&&!u&&(Or("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,l=!0),n.pause())}function h(e){Or("onerror",e),v(),t.removeListener("error",h),0===function(t,e){return t.listeners(e).length}(t,"error")&&t.emit("error",e)}function d(){t.removeListener("finish",p),v()}function p(){Or("onfinish"),t.removeListener("close",d),v()}function v(){Or("unpipe"),n.unpipe(t)}return n.on("data",f),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",h),t.once("close",d),t.once("finish",p),t.emit("pipe",n),r.flowing||(Or("pipe resume"),n.resume()),t},Nr.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this)),this;if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}var o=Hr(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this)),this},Nr.prototype.on=function(t,e){var n=dr.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&Pr(this):Qt(Ur,this))}return n},Nr.prototype.addListener=Nr.prototype.on,Nr.prototype.resume=function(){var t=this._readableState;return t.flowing||(Or("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Qt(Dr,t,e))}(this,t)),this},Nr.prototype.pause=function(){return Or("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(Or("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Nr.prototype.wrap=function(t){var e=this._readableState,n=!1,r=this;for(var i in t.on("end",(function(){if(Or("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&r.push(t)}r.push(null)})),t.on("data",(function(i){(Or("wrapped data"),e.decoder&&(i=e.decoder.write(i)),e.objectMode&&null==i)||(e.objectMode||i&&i.length)&&(r.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));return function(t,e){for(var n=0,r=t.length;n<r;n++)e(t[n],n)}(["error","close","destroy","pause","resume"],(function(e){t.on(e,r.emit.bind(r,e))})),r._read=function(e){Or("wrapped _read",e),n&&(n=!1,t.resume())},r},Nr._fromList=qr,Gr.WritableState=Yr,jn(Gr,dr),Yr.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},Gr.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},Gr.prototype.write=function(t,e,n){var r=this._writableState,i=!1;return"function"==typeof e&&(n=e,e=null),Be.isBuffer(t)?e="buffer":e||(e=r.defaultEncoding),"function"!=typeof n&&(n=$r),r.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),Qt(e,n)}(this,n):function(t,e,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):Be.isBuffer(n)||"string"==typeof n||void 0===n||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),Qt(r,o),i=!1),i}(this,r,t,n)&&(r.pendingcb++,i=function(t,e,n,r,i){n=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=Be.from(e,n));return e}(e,n,r),Be.isBuffer(n)&&(r="buffer");var o=e.objectMode?1:n.length;e.length+=o;var a=e.length<e.highWaterMark;a||(e.needDrain=!0);if(e.writing||e.corked){var s=e.lastBufferedRequest;e.lastBufferedRequest=new Kr(n,r,i),s?s.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Jr(t,e,!1,o,n,r,i);return a}(this,r,t,e,n)),i},Gr.prototype.cork=function(){this._writableState.corked++},Gr.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||Xr(this,t))},Gr.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Gr.prototype._write=function(t,e,n){n(new Error("not implemented"))},Gr.prototype._writev=null,Gr.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(t,e,n){e.ending=!0,ei(t,e),n&&(e.finished?Qt(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,r,n)},jn(ai,Nr);for(var ri=Object.keys(Gr.prototype),ii=0;ii<ri.length;ii++){var oi=ri[ii];ai.prototype[oi]||(ai.prototype[oi]=Gr.prototype[oi])}function ai(t){if(!(this instanceof ai))return new ai(t);Nr.call(this,t),Gr.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",si)}function si(){this.allowHalfOpen||this._writableState.ended||Qt(ui,this)}function ui(t){t.end()}function ci(t){this.afterTransform=function(e,n){return function(t,e,n){var r=t._transformState;r.transforming=!1;var i=r.writecb;if(!i)return t.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=n&&t.push(n);i(e);var o=t._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&t._read(o.highWaterMark)}(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function li(t){if(!(this instanceof li))return new li(t);ai.call(this,t),this._transformState=new ci(this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(t){fi(e,t)})):fi(e)}))}function fi(t,e){if(e)return t.emit("error",e);var n=t._writableState,r=t._transformState;if(n.length)throw new Error("Calling transform done when ws.length != 0");if(r.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}function hi(t){if(!(this instanceof hi))return new hi(t);li.call(this,t)}function di(){dr.call(this)}jn(li,ai),li.prototype.push=function(t,e){return this._transformState.needTransform=!1,ai.prototype.push.call(this,t,e)},li.prototype._transform=function(t,e,n){throw new Error("Not implemented")},li.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},li.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},jn(hi,li),hi.prototype._transform=function(t,e,n){n(null,t)},jn(di,dr),di.Readable=Nr,di.Writable=Gr,di.Duplex=ai,di.Transform=li,di.PassThrough=hi,di.Stream=di,di.prototype.pipe=function(t,e){var n=this;function r(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",r),t.on("drain",i),t._isStdio||e&&!1===e.end||(n.on("end",a),n.on("close",s));var o=!1;function a(){o||(o=!0,t.end())}function s(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function u(t){if(c(),0===dr.listenerCount(this,"error"))throw t}function c(){n.removeListener("data",r),t.removeListener("drain",i),n.removeListener("end",a),n.removeListener("close",s),n.removeListener("error",u),t.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),t.removeListener("close",c)}return n.on("error",u),t.on("error",u),n.on("end",c),n.on("close",c),t.on("close",c),t.emit("pipe",n),t};var pi=3,vi=4;function gi(t,e,n){var r,i=this;if(Nr.call(i),i._mode=n,i.headers={},i.rawHeaders=[],i.trailers={},i.rawTrailers=[],i.on("end",(function(){he.nextTick((function(){i.emit("close")}))})),"fetch"===n){i._fetchResponse=e,i.url=e.url,i.statusCode=e.status,i.statusMessage=e.statusText;for(var o,a,s=e.headers[Symbol.iterator]();o=(a=s.next()).value,!a.done;)i.headers[o[0].toLowerCase()]=o[1],i.rawHeaders.push(o[0],o[1]);var u=e.body.getReader();(r=function(){u.read().then((function(t){i._destroyed||(t.done?i.push(null):(i.push(new Be(t.value)),r()))}))})()}else{if(i._xhr=t,i._pos=0,i.url=t.responseURL,i.statusCode=t.status,i.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach((function(t){var e=t.match(/^([^:]+):\s*(.*)/);if(e){var n=e[1].toLowerCase();"set-cookie"===n?(void 0===i.headers[n]&&(i.headers[n]=[]),i.headers[n].push(e[2])):void 0!==i.headers[n]?i.headers[n]+=", "+e[2]:i.headers[n]=e[2],i.rawHeaders.push(e[1],e[2])}})),i._charset="x-user-defined",!On){var c=i.rawHeaders["mime-type"];if(c){var l=c.match(/;\s*charset=([^;])(;|$)/);l&&(i._charset=l[1].toLowerCase())}i._charset||(i._charset="utf-8")}}}function _i(t){var e,n=this;Gr.call(n),n._opts=t,n._body=[],n._headers={},t.auth&&n.setHeader("Authorization","Basic "+new Be(t.auth).toString("base64")),Object.keys(t.headers).forEach((function(e){n.setHeader(e,t.headers[e])}));var r=!0;if("disable-fetch"===t.mode)r=!1,e=!0;else if("prefer-streaming"===t.mode)e=!1;else if("allow-wrong-content-type"===t.mode)e=!On;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw new Error("Invalid value for opts.mode");e=!0}n._mode=function(t,e){return En&&e?"fetch":xn?"moz-chunked-arraybuffer":Rn?"ms-stream":Tn&&t?"arraybuffer":In&&t?"text:vbarray":"text"}(e,r),n.on("finish",(function(){n._onFinish()}))}jn(gi,Nr),gi.prototype._read=function(){},gi.prototype._onXHRProgress=function(){var t=this,e=t._xhr,n=null;switch(t._mode){case"text:vbarray":if(e.readyState!==vi)break;try{n=new Ft.VBArray(e.responseBody).toArray()}catch(t){}if(null!==n){t.push(new Be(n));break}case"text":try{n=e.responseText}catch(e){t._mode="text:vbarray";break}if(n.length>t._pos){var r=n.substr(t._pos);if("x-user-defined"===t._charset){for(var i=new Be(r.length),o=0;o<r.length;o++)i[o]=255&r.charCodeAt(o);t.push(i)}else t.push(r,t._charset);t._pos=n.length}break;case"arraybuffer":if(e.readyState!==vi||!e.response)break;n=e.response,t.push(new Be(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=e.response,e.readyState!==pi||!n)break;t.push(new Be(new Uint8Array(n)));break;case"ms-stream":if(n=e.response,e.readyState!==pi)break;var a=new Ft.MSStreamReader;a.onprogress=function(){a.result.byteLength>t._pos&&(t.push(new Be(new Uint8Array(a.result.slice(t._pos)))),t._pos=a.result.byteLength)},a.onload=function(){t.push(null)},a.readAsArrayBuffer(n)}t._xhr.readyState===vi&&"ms-stream"!==t._mode&&t.push(null)},jn(_i,Gr);var mi=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"];_i.prototype.setHeader=function(t,e){var n=t.toLowerCase();-1===mi.indexOf(n)&&(this._headers[n]={name:t,value:e})},_i.prototype.getHeader=function(t){return this._headers[t.toLowerCase()].value},_i.prototype.removeHeader=function(t){delete this._headers[t.toLowerCase()]},_i.prototype._onFinish=function(){var t=this;if(!t._destroyed){var e,n=t._opts,r=t._headers;if("POST"!==n.method&&"PUT"!==n.method&&"PATCH"!==n.method||(e=function(){if(void 0!==bn)return bn;try{new Ft.Blob([new ArrayBuffer(1)]),bn=!0}catch(t){bn=!1}return bn}()?new Ft.Blob(t._body.map((function(t){return function(t){if(t instanceof Uint8Array){if(0===t.byteOffset&&t.byteLength===t.buffer.byteLength)return t.buffer;if("function"==typeof t.buffer.slice)return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(yn(t)){for(var e=new Uint8Array(t.length),n=t.length,r=0;r<n;r++)e[r]=t[r];return e.buffer}throw new Error("Argument must be a Buffer")}(t)})),{type:(r["content-type"]||{}).value||""}):Be.concat(t._body).toString()),"fetch"===t._mode){var i=Object.keys(r).map((function(t){return[r[t].name,r[t].value]}));Ft.fetch(t._opts.url,{method:t._opts.method,headers:i,body:e,mode:"cors",credentials:n.withCredentials?"include":"same-origin"}).then((function(e){t._fetchResponse=e,t._connect()}),(function(e){t.emit("error",e)}))}else{var o=t._xhr=new Ft.XMLHttpRequest;try{o.open(t._opts.method,t._opts.url,!0)}catch(e){return void he.nextTick((function(){t.emit("error",e)}))}"responseType"in o&&(o.responseType=t._mode.split(":")[0]),"withCredentials"in o&&(o.withCredentials=!!n.withCredentials),"text"===t._mode&&"overrideMimeType"in o&&o.overrideMimeType("text/plain; charset=x-user-defined"),Object.keys(r).forEach((function(t){o.setRequestHeader(r[t].name,r[t].value)})),t._response=null,o.onreadystatechange=function(){switch(o.readyState){case pi:case vi:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&(o.onprogress=function(){t._onXHRProgress()}),o.onerror=function(){t._destroyed||t.emit("error",new Error("XHR error"))};try{o.send(e)}catch(e){return void he.nextTick((function(){t.emit("error",e)}))}}}},_i.prototype._onXHRProgress=function(){var t=this;(function(t){try{var e=t.status;return null!==e&&0!==e}catch(t){return!1}})(t._xhr)&&!t._destroyed&&(t._response||t._connect(),t._response._onXHRProgress())},_i.prototype._connect=function(){var t=this;t._destroyed||(t._response=new gi(t._xhr,t._fetchResponse,t._mode),t.emit("response",t._response))},_i.prototype._write=function(t,e,n){this._body.push(t),n()},_i.prototype.abort=_i.prototype.destroy=function(){var t=this;t._destroyed=!0,t._response&&(t._response._destroyed=!0),t._xhr&&t._xhr.abort()},_i.prototype.end=function(t,e,n){"function"==typeof t&&(n=t,t=void 0),Gr.prototype.end.call(this,t,e,n)},_i.prototype.flushHeaders=function(){},_i.prototype.setTimeout=function(){},_i.prototype.setNoDelay=function(){},_i.prototype.setSocketKeepAlive=function(){};
|
|
17
17
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
18
|
-
var yi=2147483647,mi=/[^\x20-\x7E]/,wi=/[\x2E\u3002\uFF0E\uFF61]/g,bi={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ki=Math.floor,Ei=String.fromCharCode;function Si(t){throw new RangeError(bi[t])}function Ai(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function Ci(t,e,n){var r=0;for(t=n?ki(t/700):t>>1,t+=ki(t/e);t>455;r+=36)t=ki(t/35);return ki(r+36*t/(t+38))}function Ti(t){return function(t,e){var n=t.split("@"),r="";n.length>1&&(r=n[0]+"@",t=n[1]);var i=function(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}((t=t.replace(wi,".")).split("."),e).join(".");return r+i}(t,(function(t){return mi.test(t)?"xn--"+function(t){var e,n,r,i,o,a,s,u,c,l,f,h,d,p,v,g=[];for(h=(t=function(t){for(var e,n,r=[],i=0,o=t.length;i<o;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<o?56320==(64512&(n=t.charCodeAt(i++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--):r.push(e);return r}(t)).length,e=128,n=0,o=72,a=0;a<h;++a)(f=t[a])<128&&g.push(Ei(f));for(r=i=g.length,i&&g.push("-");r<h;){for(s=yi,a=0;a<h;++a)(f=t[a])>=e&&f<s&&(s=f);for(s-e>ki((yi-n)/(d=r+1))&&Si("overflow"),n+=(s-e)*d,e=s,a=0;a<h;++a)if((f=t[a])<e&&++n>yi&&Si("overflow"),f==e){for(u=n,c=36;!(u<(l=c<=o?1:c>=o+26?26:c-o));c+=36)v=u-l,p=36-l,g.push(Ei(Ai(l+v%p,0))),u=ki(v/p);g.push(Ei(Ai(u,0))),o=Ci(n,d,r==i),n=0,++r}++n,++e}return g.join("")}(t):t}))}function Ri(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var xi=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function Oi(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}}function Ii(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r<t.length;r++)n.push(e(t[r],r));return n}var Ni=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e};function ji(t,e,n,r){e=e||"&",n=n||"=";var i={};if("string"!=typeof t||0===t.length)return i;var o=/\+/g;t=t.split(e);var a=1e3;r&&"number"==typeof r.maxKeys&&(a=r.maxKeys);var s=t.length;a>0&&s>a&&(s=a);for(var u=0;u<s;++u){var c,l,f,h,d=t[u].replace(o,"%20"),p=d.indexOf(n);p>=0?(c=d.substr(0,p),l=d.substr(p+1)):(c=d,l=""),f=decodeURIComponent(c),h=decodeURIComponent(l),Ri(i,f)?xi(i[f])?i[f].push(h):i[f]=[i[f],h]:i[f]=h}return i}var Li={parse:Yi,resolve:Xi,resolveObject:Qi,format:Ji,Url:Bi};function Bi(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var Pi=/^([a-z0-9.+-]+:)/i,Mi=/:[0-9]*$/,zi=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Ui=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Di=["'"].concat(Ui),Fi=["%","/","?",";","#"].concat(Di),qi=["/","?","#"],Zi=/^[+a-z0-9A-Z_-]{0,63}$/,Wi=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Hi={javascript:!0,"javascript:":!0},$i={javascript:!0,"javascript:":!0},Ki={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Yi(t,e,n){if(t&&Qn(t)&&t instanceof Bi)return t;var r=new Bi;return r.parse(t,e,n),r}function Gi(t,e,n,r){if(!Jn(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),o=-1!==i&&i<e.indexOf("#")?"?":"#",a=e.split(o);a[0]=a[0].replace(/\\/g,"/");var s=e=a.join(o);if(s=s.trim(),!r&&1===e.split("#").length){var u=zi.exec(s);if(u)return t.path=s,t.href=s,t.pathname=u[1],u[2]?(t.search=u[2],t.query=n?ji(t.search.substr(1)):t.search.substr(1)):n&&(t.search="",t.query={}),t}var c,l,f,h,d=Pi.exec(s);if(d){var p=(d=d[0]).toLowerCase();t.protocol=p,s=s.substr(d.length)}if(r||d||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var v="//"===s.substr(0,2);!v||d&&$i[d]||(s=s.substr(2),t.slashes=!0)}if(!$i[d]&&(v||d&&!Ki[d])){var g,_,y=-1;for(c=0;c<qi.length;c++)-1!==(l=s.indexOf(qi[c]))&&(-1===y||l<y)&&(y=l);for(-1!==(_=-1===y?s.lastIndexOf("@"):s.lastIndexOf("@",y))&&(g=s.slice(0,_),s=s.slice(_+1),t.auth=decodeURIComponent(g)),y=-1,c=0;c<Fi.length;c++)-1!==(l=s.indexOf(Fi[c]))&&(-1===y||l<y)&&(y=l);-1===y&&(y=s.length),t.host=s.slice(0,y),s=s.slice(y),to(t),t.hostname=t.hostname||"";var m="["===t.hostname[0]&&"]"===t.hostname[t.hostname.length-1];if(!m){var w=t.hostname.split(/\./);for(c=0,f=w.length;c<f;c++){var b=w[c];if(b&&!b.match(Zi)){for(var k="",E=0,S=b.length;E<S;E++)b.charCodeAt(E)>127?k+="x":k+=b[E];if(!k.match(Zi)){var A=w.slice(0,c),C=w.slice(c+1),T=b.match(Wi);T&&(A.push(T[1]),C.unshift(T[2])),C.length&&(s="/"+C.join(".")+s),t.hostname=A.join(".");break}}}}t.hostname.length>255?t.hostname="":t.hostname=t.hostname.toLowerCase(),m||(t.hostname=Ti(t.hostname)),h=t.port?":"+t.port:"";var R=t.hostname||"";t.host=R+h,t.href+=t.host,m&&(t.hostname=t.hostname.substr(1,t.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!Hi[p])for(c=0,f=Di.length;c<f;c++){var x=Di[c];if(-1!==s.indexOf(x)){var O=encodeURIComponent(x);O===x&&(O=escape(x)),s=s.split(x).join(O)}}var I=s.indexOf("#");-1!==I&&(t.hash=s.substr(I),s=s.slice(0,I));var N=s.indexOf("?");if(-1!==N?(t.search=s.substr(N),t.query=s.substr(N+1),n&&(t.query=ji(t.query)),s=s.slice(0,N)):n&&(t.search="",t.query={}),s&&(t.pathname=s),Ki[p]&&t.hostname&&!t.pathname&&(t.pathname="/"),t.pathname||t.search){h=t.pathname||"";var j=t.search||"";t.path=h+j}return t.href=Vi(t),t}function Ji(t){return Jn(t)&&(t=Gi({},t)),Vi(t)}function Vi(t){var e=t.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var n=t.protocol||"",r=t.pathname||"",i=t.hash||"",o=!1,a="";t.host?o=e+t.host:t.hostname&&(o=e+(-1===t.hostname.indexOf(":")?t.hostname:"["+this.hostname+"]"),t.port&&(o+=":"+t.port)),t.query&&Qn(t.query)&&Object.keys(t.query).length&&(a=function(t,e,n,r){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Ii(Ni(t),(function(r){var i=encodeURIComponent(Oi(r))+n;return xi(t[r])?Ii(t[r],(function(t){return i+encodeURIComponent(Oi(t))})).join(e):i+encodeURIComponent(Oi(t[r]))})).join(e):r?encodeURIComponent(Oi(r))+n+encodeURIComponent(Oi(t)):""}(t.query));var s=t.search||a&&"?"+a||"";return n&&":"!==n.substr(-1)&&(n+=":"),t.slashes||(!n||Ki[n])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),i&&"#"!==i.charAt(0)&&(i="#"+i),s&&"?"!==s.charAt(0)&&(s="?"+s),n+o+(r=r.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(s=s.replace("#","%23"))+i}function Xi(t,e){return Yi(t,!1,!0).resolve(e)}function Qi(t,e){return t?Yi(t,!1,!0).resolveObject(e):e}function to(t){var e=t.host,n=Mi.exec(e);n&&(":"!==(n=n[0])&&(t.port=n.substr(1)),e=e.substr(0,e.length-n.length)),e&&(t.hostname=e)}Bi.prototype.parse=function(t,e,n){return Gi(this,t,e,n)},Bi.prototype.format=function(){return Vi(this)},Bi.prototype.resolve=function(t){return this.resolveObject(Yi(t,!1,!0)).format()},Bi.prototype.resolveObject=function(t){if(Jn(t)){var e=new Bi;e.parse(t,!1,!0),t=e}for(var n,r=new Bi,i=Object.keys(this),o=0;o<i.length;o++){var a=i[o];r[a]=this[a]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var s=Object.keys(t),u=0;u<s.length;u++){var c=s[u];"protocol"!==c&&(r[c]=t[c])}return Ki[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!Ki[t.protocol]){for(var l=Object.keys(t),f=0;f<l.length;f++){var h=l[f];r[h]=t[h]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||$i[t.protocol])r.pathname=t.pathname;else{for(n=(t.pathname||"").split("/");n.length&&!(t.host=n.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==n[0]&&n.unshift(""),n.length<2&&n.unshift(""),r.pathname=n.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var d=r.pathname||"",p=r.search||"";r.path=d+p}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var v,g=r.pathname&&"/"===r.pathname.charAt(0),_=t.host||t.pathname&&"/"===t.pathname.charAt(0),y=_||g||r.host&&t.pathname,m=y,w=r.pathname&&r.pathname.split("/")||[],b=r.protocol&&!Ki[r.protocol];if(n=t.pathname&&t.pathname.split("/")||[],b&&(r.hostname="",r.port=null,r.host&&(""===w[0]?w[0]=r.host:w.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===n[0]?n[0]=t.host:n.unshift(t.host)),t.host=null),y=y&&(""===n[0]||""===w[0])),_)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,w=n;else if(n.length)w||(w=[]),w.pop(),w=w.concat(n),r.search=t.search,r.query=t.query;else if(!Yn(t.search))return b&&(r.hostname=r.host=w.shift(),(v=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=v.shift(),r.host=r.hostname=v.shift())),r.search=t.search,r.query=t.query,Kn(r.pathname)&&Kn(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!w.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=w.slice(-1)[0],E=(r.host||t.host||w.length>1)&&("."===k||".."===k)||""===k,S=0,A=w.length;A>=0;A--)"."===(k=w[A])?w.splice(A,1):".."===k?(w.splice(A,1),S++):S&&(w.splice(A,1),S--);if(!y&&!m)for(;S--;S)w.unshift("..");!y||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),E&&"/"!==w.join("/").substr(-1)&&w.push("");var C=""===w[0]||w[0]&&"/"===w[0].charAt(0);return b&&(r.hostname=r.host=C?"":w.length?w.shift():"",(v=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=v.shift(),r.host=r.hostname=v.shift())),(y=y||r.host&&w.length)&&!C&&w.unshift(""),w.length?r.pathname=w.join("/"):(r.pathname=null,r.path=null),Kn(r.pathname)&&Kn(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},Bi.prototype.parseHost=function(){return to(this)};var eo=Object.freeze({__proto__:null,parse:Yi,resolve:Xi,resolveObject:Qi,format:Ji,default:Li,Url:Bi});function no(t,e){"string"==typeof t&&(t=Yi(t));var n=-1===Dt.location.protocol.search(/^https?:$/)?"http:":"",r=t.protocol||n,i=t.hostname||t.host,o=t.port,a=t.path||"/";i&&-1!==i.indexOf(":")&&(i="["+i+"]"),t.url=(i?r+"//"+i:"")+(o?":"+o:"")+a,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var s=new gi(t);return e&&s.on("response",e),s}function ro(t,e){var n=no(t,e);return n.end(),n}function io(){}io.defaultMaxSockets=4;var oo=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"],ao={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Time-out",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Large",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Time-out",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},so={request:no,get:ro,Agent:io,METHODS:oo,STATUS_CODES:ao},uo=Object.freeze({__proto__:null,request:no,get:ro,Agent:io,METHODS:oo,STATUS_CODES:ao,default:so});function co(t,e){if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0}var lo,fo=Object.prototype.hasOwnProperty,ho=Object.keys||function(t){var e=[];for(var n in t)fo.call(t,n)&&e.push(n);return e},po=Array.prototype.slice;function vo(){return void 0!==lo?lo:lo="foo"===function(){}.name}function go(t){return Object.prototype.toString.call(t)}function _o(t){return!yn(t)&&("function"==typeof Dt.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}function yo(t,e){t||So(t,!0,e,"==",Ao)}var mo=/\s*function\s+([^\(\s]*)\s*/;function wo(t){if(nr(t)){if(vo())return t.name;var e=t.toString().match(mo);return e&&e[1]}}function bo(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return ko(Eo(t.actual),128)+" "+t.operator+" "+ko(Eo(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||So;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var n=new Error;if(n.stack){var r=n.stack,i=wo(e),o=r.indexOf("\n"+i);if(o>=0){var a=r.indexOf("\n",o+1);r=r.substring(a+1)}this.stack=r}}}function ko(t,e){return"string"==typeof t?t.length<e?t:t.slice(0,e):t}function Eo(t){if(vo()||!nr(t))return Un(t);var e=wo(t);return"[Function"+(e?": "+e:"")+"]"}function So(t,e,n,r,i){throw new bo({message:n,actual:t,expected:e,operator:r,stackStartFunction:i})}function Ao(t,e){t||So(t,!0,e,"==",Ao)}function Co(t,e,n){t!=e&&So(t,e,n,"==",Co)}function To(t,e,n){t==e&&So(t,e,n,"!=",To)}function Ro(t,e,n){Oo(t,e,!1)||So(t,e,n,"deepEqual",Ro)}function xo(t,e,n){Oo(t,e,!0)||So(t,e,n,"deepStrictEqual",xo)}function Oo(t,e,n,r){if(t===e)return!0;if(yn(t)&&yn(e))return 0===co(t,e);if(tr(t)&&tr(e))return t.getTime()===e.getTime();if(Xn(t)&&Xn(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"==typeof t||null!==e&&"object"==typeof e){if(_o(t)&&_o(e)&&go(t)===go(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===co(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(yn(t)!==yn(e))return!1;var i=(r=r||{actual:[],expected:[]}).actual.indexOf(t);return-1!==i&&i===r.expected.indexOf(e)||(r.actual.push(t),r.expected.push(e),function(t,e,n,r){if(null==t||null==e)return!1;if(rr(t)||rr(e))return t===e;if(n&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=Io(t),o=Io(e);if(i&&!o||!i&&o)return!1;if(i)return Oo(t=po.call(t),e=po.call(e),n);var a,s,u=ho(t),c=ho(e);if(u.length!==c.length)return!1;for(u.sort(),c.sort(),s=u.length-1;s>=0;s--)if(u[s]!==c[s])return!1;for(s=u.length-1;s>=0;s--)if(!Oo(t[a=u[s]],e[a],n,r))return!1;return!0}(t,e,n,r))}return n?t===e:t==e}function Io(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function No(t,e,n){Oo(t,e,!1)&&So(t,e,n,"notDeepEqual",No)}function jo(t,e,n){Oo(t,e,!0)&&So(t,e,n,"notDeepStrictEqual",jo)}function Lo(t,e,n){t!==e&&So(t,e,n,"===",Lo)}function Bo(t,e,n){t===e&&So(t,e,n,"!==",Bo)}function Po(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function Mo(t,e,n,r){var i;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),t&&!i&&So(i,n,"Missing expected exception"+r);var o="string"==typeof r,a=!t&&i&&!n;if((!t&&er(i)&&o&&Po(i,n)||a)&&So(i,n,"Got unwanted exception"+r),t&&i&&n&&!Po(i,n)||!t&&i)throw i}function zo(t,e,n){Mo(!0,t,e,n)}function Uo(t,e,n){Mo(!1,t,e,n)}function Do(t){if(t)throw t}yo.AssertionError=bo,Nn(bo,Error),yo.fail=So,yo.ok=Ao,yo.equal=Co,yo.notEqual=To,yo.deepEqual=Ro,yo.deepStrictEqual=xo,yo.notDeepEqual=No,yo.notDeepStrictEqual=jo,yo.strictEqual=Lo,yo.notStrictEqual=Bo,yo.throws=zo,yo.doesNotThrow=Uo,yo.ifError=Do;var Fo=Object.freeze({__proto__:null,default:yo,AssertionError:bo,fail:So,ok:Ao,assert:Ao,equal:Co,notEqual:To,deepEqual:Ro,deepStrictEqual:xo,notDeepEqual:No,notDeepStrictEqual:jo,strictEqual:Lo,notStrictEqual:Bo,throws:zo,doesNotThrow:Uo,ifError:Do}),qo=1e3,Zo=60*qo,Wo=60*Zo,Ho=24*Wo,$o=7*Ho,Ko=365.25*Ho,Yo=function(t,e){e=e||{};var n=typeof t;if("string"===n&&t.length>0)return function(t){if((t=String(t)).length>100)return;var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!e)return;var n=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*Ko;case"weeks":case"week":case"w":return n*$o;case"days":case"day":case"d":return n*Ho;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Wo;case"minutes":case"minute":case"mins":case"min":case"m":return n*Zo;case"seconds":case"second":case"secs":case"sec":case"s":return n*qo;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}(t);if("number"===n&&isFinite(t))return e.long?function(t){var e=Math.abs(t);if(e>=Ho)return Go(t,e,Ho,"day");if(e>=Wo)return Go(t,e,Wo,"hour");if(e>=Zo)return Go(t,e,Zo,"minute");if(e>=qo)return Go(t,e,qo,"second");return t+" ms"}(t):function(t){var e=Math.abs(t);if(e>=Ho)return Math.round(t/Ho)+"d";if(e>=Wo)return Math.round(t/Wo)+"h";if(e>=Zo)return Math.round(t/Zo)+"m";if(e>=qo)return Math.round(t/qo)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Go(t,e,n,r){var i=e>=1.5*n;return Math.round(t/n)+" "+r+(i?"s":"")}var Jo=function(t){function e(t){let r,i=null;function o(...t){if(!o.enabled)return;const n=o,i=Number(new Date),a=i-(r||i);n.diff=a,n.prev=r,n.curr=i,r=i,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let s=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";s++;const o=e.formatters[i];if("function"==typeof o){const e=t[s];r=o.call(n,e),t.splice(s,1),s--}return r})),e.formatArgs.call(n,t);(n.log||e.log).apply(n,t)}return o.namespace=t,o.useColors=e.useColors(),o.color=e.selectColor(t),o.extend=n,o.destroy=e.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null===i?e.enabled(t):i,set:t=>{i=t}}),"function"==typeof e.init&&e.init(o),o}function n(t,n){const r=e(this.namespace+(void 0===n?":":n)+t);return r.log=this.log,r}function r(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},e.disable=function(){const t=[...e.names.map(r),...e.skips.map(r).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let n;e.save(t),e.names=[],e.skips=[];const r=("string"==typeof t?t:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(t=r[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;let n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=Yo,e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((n=>{e[n]=t[n]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return e.colors[Math.abs(n)%e.colors.length]},e.enable(e.load()),e},Vo=n((function(t,e){e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(r++,"%c"===t&&(i=r))})),e.splice(i,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}!t&&void 0!==fe&&"env"in fe&&(t=fe.env.DEBUG);return t},e.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=Jo(e);const{formatters:n}=t.exports;n.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}));function Xo(){return!1}function Qo(){throw new Error("tty.ReadStream is not implemented")}function ta(){throw new Error("tty.ReadStream is not implemented")}Vo.formatArgs,Vo.save,Vo.load,Vo.useColors,Vo.storage,Vo.destroy,Vo.colors,Vo.log;var ea,na={isatty:Xo,ReadStream:Qo,WriteStream:ta},ra=Object.freeze({__proto__:null,isatty:Xo,ReadStream:Qo,WriteStream:ta,default:na});function ia(){if(void 0===ea){var t=new ArrayBuffer(2),e=new Uint8Array(t),n=new Uint16Array(t);if(e[0]=1,e[1]=2,258===n[0])ea="BE";else{if(513!==n[0])throw new Error("unable to figure out endianess");ea="LE"}}return ea}function oa(){return void 0!==Dt.location?Dt.location.hostname:""}function aa(){return[]}function sa(){return 0}function ua(){return Number.MAX_VALUE}function ca(){return Number.MAX_VALUE}function la(){return[]}function fa(){return"Browser"}function ha(){return void 0!==Dt.navigator?Dt.navigator.appVersion:""}function da(){}function pa(){}function va(){return"/tmp"}var ga=va,_a={EOL:"\n",tmpdir:ga,tmpDir:va,networkInterfaces:da,getNetworkInterfaces:pa,release:ha,type:fa,cpus:la,totalmem:ca,freemem:ua,uptime:sa,loadavg:aa,hostname:oa,endianness:ia},ya=(t,e=fe.argv)=>{const n=t.startsWith("-")?"":1===t.length?"-":"--",r=e.indexOf(n+t),i=e.indexOf("--");return-1!==r&&(-1===i||r<i)},ma=r(Object.freeze({__proto__:null,endianness:ia,hostname:oa,loadavg:aa,uptime:sa,freemem:ua,totalmem:ca,cpus:la,type:fa,release:ha,networkInterfaces:da,getNetworkInterfaces:pa,arch:function(){return"javascript"},platform:function(){return"browser"},tmpDir:va,tmpdir:ga,EOL:"\n",default:_a})),wa=r(ra);const{env:ba}=fe;let ka;function Ea(t){return 0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Sa(t,e){if(0===ka)return 0;if(ya("color=16m")||ya("color=full")||ya("color=truecolor"))return 3;if(ya("color=256"))return 2;if(t&&!e&&void 0===ka)return 0;const n=ka||0;if("dumb"===ba.TERM)return n;if("win32"===fe.platform){const t=ma.release().split(".");return Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in ba)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((t=>t in ba))||"codeship"===ba.CI_NAME?1:n;if("TEAMCITY_VERSION"in ba)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ba.TEAMCITY_VERSION)?1:0;if("truecolor"===ba.COLORTERM)return 3;if("TERM_PROGRAM"in ba){const t=parseInt((ba.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ba.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ba.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ba.TERM)||"COLORTERM"in ba?1:n}ya("no-color")||ya("no-colors")||ya("color=false")||ya("color=never")?ka=0:(ya("color")||ya("colors")||ya("color=true")||ya("color=always"))&&(ka=1),"FORCE_COLOR"in ba&&(ka="true"===ba.FORCE_COLOR?1:"false"===ba.FORCE_COLOR?0:0===ba.FORCE_COLOR.length?1:Math.min(parseInt(ba.FORCE_COLOR,10),3));var Aa={supportsColor:function(t){return Ea(Sa(t,t&&t.isTTY))},stdout:Ea(Sa(!0,wa.isatty(1))),stderr:Ea(Sa(!0,wa.isatty(2)))},Ca=n((function(t,e){e.init=function(t){t.inspectOpts={};const n=Object.keys(e.inspectOpts);for(let r=0;r<n.length;r++)t.inspectOpts[n[r]]=e.inspectOpts[n[r]]},e.log=function(...t){return fe.stderr.write(lr.format(...t)+"\n")},e.formatArgs=function(n){const{namespace:r,useColors:i}=this;if(i){const e=this.color,i="[3"+(e<8?e:"8;5;"+e),o=` ${i};1m${r} [0m`;n[0]=o+n[0].split("\n").join("\n"+o),n.push(i+"m+"+t.exports.humanize(this.diff)+"[0m")}else n[0]=function(){if(e.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+r+" "+n[0]},e.save=function(t){t?fe.env.DEBUG=t:delete fe.env.DEBUG},e.load=function(){return fe.env.DEBUG},e.useColors=function(){return"colors"in e.inspectOpts?Boolean(e.inspectOpts.colors):wa.isatty(fe.stderr.fd)},e.destroy=lr.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{const t=Aa;t&&(t.stderr||t).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(t){}e.inspectOpts=Object.keys(fe.env).filter((t=>/^debug_/i.test(t))).reduce(((t,e)=>{const n=e.substring(6).toLowerCase().replace(/_([a-z])/g,((t,e)=>e.toUpperCase()));let r=fe.env[e];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),t[n]=r,t}),{}),t.exports=Jo(e);const{formatters:n}=t.exports;n.o=function(t){return this.inspectOpts.colors=this.useColors,lr.inspect(t,this.inspectOpts).split("\n").map((t=>t.trim())).join(" ")},n.O=function(t){return this.inspectOpts.colors=this.useColors,lr.inspect(t,this.inspectOpts)}}));Ca.init,Ca.log,Ca.formatArgs,Ca.save,Ca.load,Ca.useColors,Ca.destroy,Ca.colors,Ca.inspectOpts;var Ta,Ra=n((function(t){void 0===fe||"renderer"===fe.type||!0===fe.browser||fe.__nwjs?t.exports=Vo:t.exports=Ca})),xa=function(){if(!Ta)try{Ta=Ra("follow-redirects")}catch(t){Ta=function(){}}Ta.apply(null,arguments)},Oa=r(eo),Ia=r(uo),Na=r(Fo),ja=Oa.URL,La=hi.Writable,Ba=["abort","aborted","connect","error","socket","timeout"],Pa=Object.create(null);Ba.forEach((function(t){Pa[t]=function(e,n,r){this._redirectable.emit(t,e,n,r)}}));var Ma=$a("ERR_FR_REDIRECTION_FAILURE",""),za=$a("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Ua=$a("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Da=$a("ERR_STREAM_WRITE_AFTER_END","write after end");function Fa(t,e){La.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var n=this;this._onNativeResponse=function(t){n._processResponse(t)},this._performRequest()}function qa(t){var e={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(t).forEach((function(r){var i=r+":",o=n[i]=t[r],a=e[r]=Object.create(o);Object.defineProperties(a,{request:{value:function(t,r,o){if("string"==typeof t){var a=t;try{t=Wa(new ja(a))}catch(e){t=Oa.parse(a)}}else ja&&t instanceof ja?t=Wa(t):(o=r,r=t,t={protocol:i});return"function"==typeof r&&(o=r,r=null),(r=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},t,r)).nativeProtocols=n,Na.equal(r.protocol,i,"protocol mismatch"),xa("options",r),new Fa(r,o)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(t,e,n){var r=a.request(t,e,n);return r.end(),r},configurable:!0,enumerable:!0,writable:!0}})})),e}function Za(){}function Wa(t){var e={protocol:t.protocol,hostname:t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,hash:t.hash,search:t.search,pathname:t.pathname,path:t.pathname+t.search,href:t.href};return""!==t.port&&(e.port=Number(t.port)),e}function Ha(t,e){var n;for(var r in e)t.test(r)&&(n=e[r],delete e[r]);return n}function $a(t,e){function n(t){Error.captureStackTrace(this,this.constructor),this.message=t||e}return n.prototype=new Error,n.prototype.constructor=n,n.prototype.name="Error ["+t+"]",n.prototype.code=t,n}function Ka(t){for(var e=0;e<Ba.length;e++)t.removeListener(Ba[e],Pa[Ba[e]]);t.on("error",Za),t.abort()}Fa.prototype=Object.create(La.prototype),Fa.prototype.abort=function(){Ka(this._currentRequest),this.emit("abort")},Fa.prototype.write=function(t,e,n){if(this._ending)throw new Da;if(!("string"==typeof t||"object"==typeof t&&"length"in t))throw new TypeError("data should be a string, Buffer or Uint8Array");"function"==typeof e&&(n=e,e=null),0!==t.length?this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,n)):(this.emit("error",new Ua),this.abort()):n&&n()},Fa.prototype.end=function(t,e,n){if("function"==typeof t?(n=t,t=e=null):"function"==typeof e&&(n=e,e=null),t){var r=this,i=this._currentRequest;this.write(t,e,(function(){r._ended=!0,i.end(null,null,n)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},Fa.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)},Fa.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)},Fa.prototype.setTimeout=function(t,e){var n=this;function r(e){e.setTimeout(t),e.removeListener("timeout",e.destroy),e.addListener("timeout",e.destroy)}function i(e){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout((function(){n.emit("timeout"),o()}),t),r(e)}function o(){clearTimeout(this._timeout),e&&n.removeListener("timeout",e),this.socket||n._currentRequest.removeListener("socket",i)}return e&&this.on("timeout",e),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",r),this.once("response",o),this.once("error",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(t){Fa.prototype[t]=function(e,n){return this._currentRequest[t](e,n)}})),["aborted","connection","socket"].forEach((function(t){Object.defineProperty(Fa.prototype,t,{get:function(){return this._currentRequest[t]}})})),Fa.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}},Fa.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(e){if(this._options.agents){var n=t.substr(0,t.length-1);this._options.agent=this._options.agents[n]}var r=this._currentRequest=e.request(this._options,this._onNativeResponse);this._currentUrl=Oa.format(this._options),r._redirectable=this;for(var i=0;i<Ba.length;i++)r.on(Ba[i],Pa[Ba[i]]);if(this._isRedirect){var o=0,a=this,s=this._requestBodyBuffers;!function t(e){if(r===a._currentRequest)if(e)a.emit("error",e);else if(o<s.length){var n=s[o++];r.finished||r.write(n.data,n.encoding,t)}else a._ended&&r.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+t))},Fa.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var n=t.headers.location;if(n&&!1!==this._options.followRedirects&&e>=300&&e<400){if(Ka(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new za);((301===e||302===e)&&"POST"===this._options.method||303===e&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Ha(/^content-/i,this._options.headers));var r=Ha(/^host$/i,this._options.headers)||Oa.parse(this._currentUrl).hostname,i=Oa.resolve(this._currentUrl,n);xa("redirecting to",i),this._isRedirect=!0;var o=Oa.parse(i);if(Object.assign(this._options,o),o.hostname!==r&&Ha(/^authorization$/i,this._options.headers),"function"==typeof this._options.beforeRedirect){var a={headers:t.headers};try{this._options.beforeRedirect.call(null,this._options,a)}catch(t){return void this.emit("error",t)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(t){var s=new Ma("Redirected request failed: "+t.message);s.cause=t,this.emit("error",s)}}else t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[]};var Ya=qa({http:Ia,https:Ia}),Ga=qa;Ya.wrap=Ga;var Ja={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function Va(){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}function Xa(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;o<r;o++)t[i+o]=e[n+o]}var Qa=Uint8Array,ts=Uint16Array,es=Int32Array;function ns(t){for(var e=t.length;--e>=0;)t[e]=0}var rs=256,is=286,os=30,as=15,ss=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],us=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],cs=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ls=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],fs=new Array(576);ns(fs);var hs=new Array(60);ns(hs);var ds=new Array(512);ns(ds);var ps=new Array(256);ns(ps);var vs=new Array(29);ns(vs);var gs,_s,ys,ms=new Array(os);function ws(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function bs(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function ks(t){return t<256?ds[t]:ds[256+(t>>>7)]}function Es(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function Ss(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,Es(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function As(t,e,n){Ss(t,n[2*e],n[2*e+1])}function Cs(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function Ts(t,e,n){var r,i,o=new Array(16),a=0;for(r=1;r<=as;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=Cs(o[s]++,s))}}function Rs(t){var e;for(e=0;e<is;e++)t.dyn_ltree[2*e]=0;for(e=0;e<os;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function xs(t){t.bi_valid>8?Es(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function Os(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]}function Is(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&Os(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!Os(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function Ns(t,e,n){var r,i,o,a,s=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===r?As(t,i,e):(As(t,(o=ps[i])+rs+1,e),0!==(a=ss[o])&&Ss(t,i-=vs[o],a),As(t,o=ks(--r),n),0!==(a=us[o])&&Ss(t,r-=ms[o],a))}while(s<t.last_lit);As(t,256,e)}function js(t,e){var n,r,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<u;n++)0!==o[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,n=t.heap_len>>1;n>=1;n--)Is(t,o,n);i=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Is(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,Is(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,u=e.dyn_tree,c=e.max_code,l=e.stat_desc.static_tree,f=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,v=0;for(o=0;o<=as;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)(o=u[2*u[2*(r=t.heap[n])+1]+1]+1)>p&&(o=p,v++),u[2*r+1]=o,r>c||(t.bl_count[o]++,a=0,r>=d&&(a=h[r-d]),s=u[2*r],t.opt_len+=s*(o+a),f&&(t.static_len+=s*(l[2*r+1]+a)));if(0!==v){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,v-=2}while(v>0);for(o=p;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}(t,e),Ts(o,c,t.bl_count)}function Ls(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function Bs(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<u&&i===a)){if(s<c)do{As(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(As(t,i,t.bl_tree),s--),As(t,16,t.bl_tree),Ss(t,s-3,2)):s<=10?(As(t,17,t.bl_tree),Ss(t,s-3,3)):(As(t,18,t.bl_tree),Ss(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}ns(ms);var Ps=!1;function Ms(t){Ps||(!function(){var t,e,n,r,i,o=new Array(16);for(n=0,r=0;r<28;r++)for(vs[r]=n,t=0;t<1<<ss[r];t++)ps[n++]=r;for(ps[n-1]=r,i=0,r=0;r<16;r++)for(ms[r]=i,t=0;t<1<<us[r];t++)ds[i++]=r;for(i>>=7;r<os;r++)for(ms[r]=i<<7,t=0;t<1<<us[r]-7;t++)ds[256+i++]=r;for(e=0;e<=as;e++)o[e]=0;for(t=0;t<=143;)fs[2*t+1]=8,t++,o[8]++;for(;t<=255;)fs[2*t+1]=9,t++,o[9]++;for(;t<=279;)fs[2*t+1]=7,t++,o[7]++;for(;t<=287;)fs[2*t+1]=8,t++,o[8]++;for(Ts(fs,287,o),t=0;t<os;t++)hs[2*t+1]=5,hs[2*t]=Cs(t,5);gs=new ws(fs,ss,257,is,as),_s=new ws(hs,us,0,os,as),ys=new ws(new Array(0),cs,0,19,7)}(),Ps=!0),t.l_desc=new bs(t.dyn_ltree,gs),t.d_desc=new bs(t.dyn_dtree,_s),t.bl_desc=new bs(t.bl_tree,ys),t.bi_buf=0,t.bi_valid=0,Rs(t)}function zs(t,e,n,r){Ss(t,0+(r?1:0),3),function(t,e,n,r){xs(t),r&&(Es(t,n),Es(t,~n)),Xa(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}function Us(t){Ss(t,2,3),As(t,256,fs),function(t){16===t.bi_valid?(Es(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}function Ds(t,e,n,r){var i,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<rs;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),js(t,t.l_desc),js(t,t.d_desc),a=function(t){var e;for(Ls(t,t.dyn_ltree,t.l_desc.max_code),Ls(t,t.dyn_dtree,t.d_desc.max_code),js(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*ls[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==e?zs(t,e,n,r):4===t.strategy||o===i?(Ss(t,2+(r?1:0),3),Ns(t,fs,hs)):(Ss(t,4+(r?1:0),3),function(t,e,n,r){var i;for(Ss(t,e-257,5),Ss(t,n-1,5),Ss(t,r-4,4),i=0;i<r;i++)Ss(t,t.bl_tree[2*ls[i]+1],3);Bs(t,t.dyn_ltree,e-1),Bs(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),Ns(t,t.dyn_ltree,t.dyn_dtree)),Rs(t),r&&xs(t)}function Fs(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(ps[n]+rs+1)]++,t.dyn_dtree[2*ks(e)]++),t.last_lit===t.lit_bufsize-1}function qs(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}var Zs=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();function Ws(t,e,n,r){var i=Zs,o=r+n;t^=-1;for(var a=r;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t}var Hs,$s=-2,Ks=258,Ys=262,Gs=103,Js=113,Vs=666;function Xs(t,e){return t.msg=Ja[e],e}function Qs(t){return(t<<1)-(t>4?9:0)}function tu(t){for(var e=t.length;--e>=0;)t[e]=0}function eu(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(Xa(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function nu(t,e){Ds(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,eu(t.strm)}function ru(t,e){t.pending_buf[t.pending++]=e}function iu(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function ou(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-Ys?t.strstart-(t.w_size-Ys):0,c=t.window,l=t.w_mask,f=t.prev,h=t.strstart+Ks,d=c[o+a-1],p=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(n=e)+a]===p&&c[n+a-1]===d&&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]&&o<h);if(r=Ks-(h-o),o=h-Ks,r>a){if(t.match_start=e,a=r,r>=s)break;d=c[o+a-1],p=c[o+a]}}}while((e=f[e&l])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead}function au(t){var e,n,r,i,o,a,s,u,c,l,f=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=f+(f-Ys)){Xa(t.window,t.window,f,f,0),t.match_start-=f,t.strstart-=f,t.block_start-=f,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=f?r-f:0}while(--n);e=n=f;do{r=t.prev[--e],t.prev[e]=r>=f?r-f:0}while(--n);i+=f}if(0===t.strm.avail_in)break;if(a=t.strm,s=t.window,u=t.strstart+t.lookahead,c=i,l=void 0,(l=a.avail_in)>c&&(l=c),n=0===l?0:(a.avail_in-=l,Xa(s,a.input,a.next_in,l,u),1===a.state.wrap?a.adler=qs(a.adler,s,l,u):2===a.state.wrap&&(a.adler=Ws(a.adler,s,l,u)),a.next_in+=l,a.total_in+=l,l),t.lookahead+=n,t.lookahead+t.insert>=3)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+3-1])&t.hash_mask,t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<Ys&&0!==t.strm.avail_in)}function su(t,e){for(var n,r;;){if(t.lookahead<Ys){if(au(t),t.lookahead<Ys&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-Ys&&(t.match_length=ou(t,n)),t.match_length>=3)if(r=Fs(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=Fs(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(nu(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(nu(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(nu(t,!1),0===t.strm.avail_out)?1:2}function uu(t,e){for(var n,r,i;;){if(t.lookahead<Ys){if(au(t),t.lookahead<Ys&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-Ys&&(t.match_length=ou(t,n),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,r=Fs(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,r&&(nu(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((r=Fs(t,0,t.window[t.strstart-1]))&&nu(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=Fs(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(nu(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(nu(t,!1),0===t.strm.avail_out)?1:2}function cu(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function lu(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new ts(1146),this.dyn_dtree=new ts(122),this.bl_tree=new ts(78),tu(this.dyn_ltree),tu(this.dyn_dtree),tu(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new ts(16),this.heap=new ts(573),tu(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new ts(573),tu(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function fu(t){var e=function(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:Js,t.adler=2===e.wrap?0:1,e.last_flush=0,Ms(e),0):Xs(t,$s)}(t);return 0===e&&function(t){t.window_size=2*t.w_size,tu(t.head),t.max_lazy_match=Hs[t.level].max_lazy,t.good_match=Hs[t.level].good_length,t.nice_match=Hs[t.level].nice_length,t.max_chain_length=Hs[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0}(t.state),e}function hu(t,e){var n,r,i,o;if(!t||!t.state||e>5||e<0)return t?Xs(t,$s):$s;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||r.status===Vs&&4!==e)return Xs(t,0===t.avail_out?-5:$s);if(r.strm=t,n=r.last_flush,r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,ru(r,31),ru(r,139),ru(r,8),r.gzhead?(ru(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),ru(r,255&r.gzhead.time),ru(r,r.gzhead.time>>8&255),ru(r,r.gzhead.time>>16&255),ru(r,r.gzhead.time>>24&255),ru(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),ru(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(ru(r,255&r.gzhead.extra.length),ru(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=Ws(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(ru(r,0),ru(r,0),ru(r,0),ru(r,0),ru(r,0),ru(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),ru(r,3),r.status=Js);else{var a=8+(r.w_bits-8<<4)<<8;a|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(a|=32),a+=31-a%31,r.status=Js,iu(r,a),0!==r.strstart&&(iu(r,t.adler>>>16),iu(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(i=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>i&&(t.adler=Ws(t.adler,r.pending_buf,r.pending-i,i)),eu(t),i=r.pending,r.pending!==r.pending_buf_size));)ru(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(t.adler=Ws(t.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(t.adler=Ws(t.adler,r.pending_buf,r.pending-i,i)),eu(t),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,ru(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(t.adler=Ws(t.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(t.adler=Ws(t.adler,r.pending_buf,r.pending-i,i)),eu(t),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,ru(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(t.adler=Ws(t.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.status=Gs)}else r.status=Gs;if(r.status===Gs&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&eu(t),r.pending+2<=r.pending_buf_size&&(ru(r,255&t.adler),ru(r,t.adler>>8&255),t.adler=0,r.status=Js)):r.status=Js),0!==r.pending){if(eu(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&Qs(e)<=Qs(n)&&4!==e)return Xs(t,-5);if(r.status===Vs&&0!==t.avail_in)return Xs(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&r.status!==Vs){var s=2===r.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(au(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,n=Fs(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(nu(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(nu(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(nu(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var n,r,i,o,a=t.window;;){if(t.lookahead<=Ks){if(au(t),t.lookahead<=Ks&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(r=a[i=t.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){o=t.strstart+Ks;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o);t.match_length=Ks-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=Fs(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=Fs(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(nu(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(nu(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(nu(t,!1),0===t.strm.avail_out)?1:2}(r,e):Hs[r.level].func(r,e);if(3!==s&&4!==s||(r.status=Vs),1===s||3===s)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===s&&(1===e?Us(r):5!==e&&(zs(r,0,0,!1),3===e&&(tu(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),eu(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(ru(r,255&t.adler),ru(r,t.adler>>8&255),ru(r,t.adler>>16&255),ru(r,t.adler>>24&255),ru(r,255&t.total_in),ru(r,t.total_in>>8&255),ru(r,t.total_in>>16&255),ru(r,t.total_in>>24&255)):(iu(r,t.adler>>>16),iu(r,65535&t.adler)),eu(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)}Hs=[new cu(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(au(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,nu(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-Ys&&(nu(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(nu(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(nu(t,!1),t.strm.avail_out),1)})),new cu(4,4,8,4,su),new cu(4,5,16,8,su),new cu(4,6,32,32,su),new cu(4,4,16,16,uu),new cu(8,16,32,32,uu),new cu(8,16,128,128,uu),new cu(8,32,128,256,uu),new cu(32,128,258,1024,uu),new cu(32,258,258,4096,uu)];function du(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,v,g,_,y,m,w,b,k,E,S,A,C;n=t.state,r=t.next_in,A=t.input,i=r+(t.avail_in-5),o=t.next_out,C=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),u=n.dmax,c=n.wsize,l=n.whave,f=n.wnext,h=n.window,d=n.hold,p=n.bits,v=n.lencode,g=n.distcode,_=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;t:do{p<15&&(d+=A[r++]<<p,p+=8,d+=A[r++]<<p,p+=8),m=v[d&_];e:for(;;){if(d>>>=w=m>>>24,p-=w,0===(w=m>>>16&255))C[o++]=65535&m;else{if(!(16&w)){if(0==(64&w)){m=v[(65535&m)+(d&(1<<w)-1)];continue e}if(32&w){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}b=65535&m,(w&=15)&&(p<w&&(d+=A[r++]<<p,p+=8),b+=d&(1<<w)-1,d>>>=w,p-=w),p<15&&(d+=A[r++]<<p,p+=8,d+=A[r++]<<p,p+=8),m=g[d&y];n:for(;;){if(d>>>=w=m>>>24,p-=w,!(16&(w=m>>>16&255))){if(0==(64&w)){m=g[(65535&m)+(d&(1<<w)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(k=65535&m,p<(w&=15)&&(d+=A[r++]<<p,(p+=8)<w&&(d+=A[r++]<<p,p+=8)),(k+=d&(1<<w)-1)>u){t.msg="invalid distance too far back",n.mode=30;break t}if(d>>>=w,p-=w,k>(w=o-a)){if((w=k-w)>l&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(E=0,S=h,0===f){if(E+=c-w,w<b){b-=w;do{C[o++]=h[E++]}while(--w);E=o-k,S=C}}else if(f<w){if(E+=c+f-w,(w-=f)<b){b-=w;do{C[o++]=h[E++]}while(--w);if(E=0,f<b){b-=w=f;do{C[o++]=h[E++]}while(--w);E=o-k,S=C}}}else if(E+=f-w,w<b){b-=w;do{C[o++]=h[E++]}while(--w);E=o-k,S=C}for(;b>2;)C[o++]=S[E++],C[o++]=S[E++],C[o++]=S[E++],b-=3;b&&(C[o++]=S[E++],b>1&&(C[o++]=S[E++]))}else{E=o-k;do{C[o++]=C[E++],C[o++]=C[E++],C[o++]=C[E++],b-=3}while(b>2);b&&(C[o++]=C[E++],b>1&&(C[o++]=C[E++]))}break}}break}}while(r<i&&o<s);r-=b=p>>3,d&=(1<<(p-=b<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=o<s?s-o+257:257-(o-s),n.hold=d,n.bits=p}var pu=15,vu=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],gu=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],_u=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],yu=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function mu(t,e,n,r,i,o,a,s){var u,c,l,f,h,d,p,v,g,_=s.bits,y=0,m=0,w=0,b=0,k=0,E=0,S=0,A=0,C=0,T=0,R=null,x=0,O=new ts(16),I=new ts(16),N=null,j=0;for(y=0;y<=pu;y++)O[y]=0;for(m=0;m<r;m++)O[e[n+m]]++;for(k=_,b=pu;b>=1&&0===O[b];b--);if(k>b&&(k=b),0===b)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(w=1;w<b&&0===O[w];w++);for(k<w&&(k=w),A=1,y=1;y<=pu;y++)if(A<<=1,(A-=O[y])<0)return-1;if(A>0&&(0===t||1!==b))return-1;for(I[1]=0,y=1;y<pu;y++)I[y+1]=I[y]+O[y];for(m=0;m<r;m++)0!==e[n+m]&&(a[I[e[n+m]]++]=m);if(0===t?(R=N=a,d=19):1===t?(R=vu,x-=257,N=gu,j-=257,d=256):(R=_u,N=yu,d=-1),T=0,m=0,y=w,h=o,E=k,S=0,l=-1,f=(C=1<<k)-1,1===t&&C>852||2===t&&C>592)return 1;for(;;){p=y-S,a[m]<d?(v=0,g=a[m]):a[m]>d?(v=N[j+a[m]],g=R[x+a[m]]):(v=96,g=0),u=1<<y-S,w=c=1<<E;do{i[h+(T>>S)+(c-=u)]=p<<24|v<<16|g|0}while(0!==c);for(u=1<<y-1;T&u;)u>>=1;if(0!==u?(T&=u-1,T+=u):T=0,m++,0==--O[y]){if(y===b)break;y=e[n+a[m]]}if(y>k&&(T&f)!==l){for(0===S&&(S=k),h+=w,A=1<<(E=y-S);E+S<b&&!((A-=O[E+S])<=0);)E++,A<<=1;if(C+=1<<E,1===t&&C>852||2===t&&C>592)return 1;i[l=T&f]=k<<24|E<<16|h-o|0}}return 0!==T&&(i[h+T]=y-S<<24|64<<16|0),s.bits=k,0}var wu=-2,bu=12,ku=30;function Eu(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function Su(){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 ts(320),this.work=new ts(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Au(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,function(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new es(852),e.distcode=e.distdyn=new es(592),e.sane=1,e.back=-1,0):wu}(t)):wu}function Cu(t,e){var n,r;return t?(r=new Su,t.state=r,r.window=null,0!==(n=function(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?wu:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,Au(t))):wu}(t,e))&&(t.state=null),n):wu}var Tu,Ru,xu=!0;function Ou(t){if(xu){var e;for(Tu=new es(512),Ru=new es(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(mu(1,t.lens,0,288,Tu,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;mu(2,t.lens,0,32,Ru,0,t.work,{bits:5}),xu=!1}t.lencode=Tu,t.lenbits=9,t.distcode=Ru,t.distbits=5}function Iu(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,v,g,_,y,m,w,b,k,E,S,A,C=0,T=new Qa(4),R=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return wu;(n=t.state).mode===bu&&(n.mode=13),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,r=t.input,s=t.avail_in,c=n.hold,l=n.bits,f=s,h=u,E=0;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(2&n.wrap&&35615===c){n.check=0,T[0]=255&c,T[1]=c>>>8&255,n.check=Ws(n.check,T,2,0),c=0,l=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31){t.msg="incorrect header check",n.mode=ku;break}if(8!=(15&c)){t.msg="unknown compression method",n.mode=ku;break}if(l-=4,k=8+(15&(c>>>=4)),0===n.wbits)n.wbits=k;else if(k>n.wbits){t.msg="invalid window size",n.mode=ku;break}n.dmax=1<<k,t.adler=n.check=1,n.mode=512&c?10:bu,c=0,l=0;break;case 2:for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(n.flags=c,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=ku;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=ku;break}n.head&&(n.head.text=c>>8&1),512&n.flags&&(T[0]=255&c,T[1]=c>>>8&255,n.check=Ws(n.check,T,2,0)),c=0,l=0,n.mode=3;case 3:for(;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.head&&(n.head.time=c),512&n.flags&&(T[0]=255&c,T[1]=c>>>8&255,T[2]=c>>>16&255,T[3]=c>>>24&255,n.check=Ws(n.check,T,4,0)),c=0,l=0,n.mode=4;case 4:for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.head&&(n.head.xflags=255&c,n.head.os=c>>8),512&n.flags&&(T[0]=255&c,T[1]=c>>>8&255,n.check=Ws(n.check,T,2,0)),c=0,l=0,n.mode=5;case 5:if(1024&n.flags){for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.length=c,n.head&&(n.head.extra_len=c),512&n.flags&&(T[0]=255&c,T[1]=c>>>8&255,n.check=Ws(n.check,T,2,0)),c=0,l=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((d=n.length)>s&&(d=s),d&&(n.head&&(k=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),Xa(n.head.extra,r,o,d,k)),512&n.flags&&(n.check=Ws(n.check,r,d,o)),s-=d,o+=d,n.length-=d),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===s)break t;d=0;do{k=r[o+d++],n.head&&k&&n.length<65536&&(n.head.name+=String.fromCharCode(k))}while(k&&d<s);if(512&n.flags&&(n.check=Ws(n.check,r,d,o)),s-=d,o+=d,k)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===s)break t;d=0;do{k=r[o+d++],n.head&&k&&n.length<65536&&(n.head.comment+=String.fromCharCode(k))}while(k&&d<s);if(512&n.flags&&(n.check=Ws(n.check,r,d,o)),s-=d,o+=d,k)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(c!==(65535&n.check)){t.msg="header crc mismatch",n.mode=ku;break}c=0,l=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=bu;break;case 10:for(;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}t.adler=n.check=Eu(c),c=0,l=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,n.hold=c,n.bits=l,2;t.adler=n.check=1,n.mode=bu;case bu:if(5===e||6===e)break t;case 13:if(n.last){c>>>=7&l,l-=7&l,n.mode=27;break}for(;l<3;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}switch(n.last=1&c,l-=1,3&(c>>>=1)){case 0:n.mode=14;break;case 1:if(Ou(n),n.mode=20,6===e){c>>>=2,l-=2;break t}break;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=ku}c>>>=2,l-=2;break;case 14:for(c>>>=7&l,l-=7&l;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if((65535&c)!=(c>>>16^65535)){t.msg="invalid stored block lengths",n.mode=ku;break}if(n.length=65535&c,c=0,l=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(d=n.length){if(d>s&&(d=s),d>u&&(d=u),0===d)break t;Xa(i,r,o,d,a),s-=d,o+=d,u-=d,a+=d,n.length-=d;break}n.mode=bu;break;case 17:for(;l<14;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(n.nlen=257+(31&c),c>>>=5,l-=5,n.ndist=1+(31&c),c>>>=5,l-=5,n.ncode=4+(15&c),c>>>=4,l-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=ku;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;l<3;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.lens[R[n.have++]]=7&c,c>>>=3,l-=3}for(;n.have<19;)n.lens[R[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,S={bits:n.lenbits},E=mu(0,n.lens,0,19,n.lencode,0,n.work,S),n.lenbits=S.bits,E){t.msg="invalid code lengths set",n.mode=ku;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;_=(C=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,y=65535&C,!((g=C>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(y<16)c>>>=g,l-=g,n.lens[n.have++]=y;else{if(16===y){for(A=g+2;l<A;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(c>>>=g,l-=g,0===n.have){t.msg="invalid bit length repeat",n.mode=ku;break}k=n.lens[n.have-1],d=3+(3&c),c>>>=2,l-=2}else if(17===y){for(A=g+3;l<A;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}l-=g,k=0,d=3+(7&(c>>>=g)),c>>>=3,l-=3}else{for(A=g+7;l<A;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}l-=g,k=0,d=11+(127&(c>>>=g)),c>>>=7,l-=7}if(n.have+d>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=ku;break}for(;d--;)n.lens[n.have++]=k}}if(n.mode===ku)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=ku;break}if(n.lenbits=9,S={bits:n.lenbits},E=mu(1,n.lens,0,n.nlen,n.lencode,0,n.work,S),n.lenbits=S.bits,E){t.msg="invalid literal/lengths set",n.mode=ku;break}if(n.distbits=6,n.distcode=n.distdyn,S={bits:n.distbits},E=mu(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,S),n.distbits=S.bits,E){t.msg="invalid distances set",n.mode=ku;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(s>=6&&u>=258){t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,n.hold=c,n.bits=l,du(t,h),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,r=t.input,s=t.avail_in,c=n.hold,l=n.bits,n.mode===bu&&(n.back=-1);break}for(n.back=0;_=(C=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,y=65535&C,!((g=C>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(_&&0==(240&_)){for(m=g,w=_,b=y;_=(C=n.lencode[b+((c&(1<<m+w)-1)>>m)])>>>16&255,y=65535&C,!(m+(g=C>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}c>>>=m,l-=m,n.back+=m}if(c>>>=g,l-=g,n.back+=g,n.length=y,0===_){n.mode=26;break}if(32&_){n.back=-1,n.mode=bu;break}if(64&_){t.msg="invalid literal/length code",n.mode=ku;break}n.extra=15&_,n.mode=22;case 22:if(n.extra){for(A=n.extra;l<A;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,l-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;_=(C=n.distcode[c&(1<<n.distbits)-1])>>>16&255,y=65535&C,!((g=C>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(0==(240&_)){for(m=g,w=_,b=y;_=(C=n.distcode[b+((c&(1<<m+w)-1)>>m)])>>>16&255,y=65535&C,!(m+(g=C>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}c>>>=m,l-=m,n.back+=m}if(c>>>=g,l-=g,n.back+=g,64&_){t.msg="invalid distance code",n.mode=ku;break}n.offset=y,n.extra=15&_,n.mode=24;case 24:if(n.extra){for(A=n.extra;l<A;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,l-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=ku;break}n.mode=25;case 25:if(0===u)break t;if(d=h-u,n.offset>d){if((d=n.offset-d)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=ku;break}d>n.wnext?(d-=n.wnext,p=n.wsize-d):p=n.wnext-d,d>n.length&&(d=n.length),v=n.window}else v=i,p=a-n.offset,d=n.length;d>u&&(d=u),u-=d,n.length-=d;do{i[a++]=v[p++]}while(--d);0===n.length&&(n.mode=21);break;case 26:if(0===u)break t;i[a++]=n.length,u--,n.mode=21;break;case 27:if(n.wrap){for(;l<32;){if(0===s)break t;s--,c|=r[o++]<<l,l+=8}if(h-=u,t.total_out+=h,n.total+=h,h&&(t.adler=n.check=n.flags?Ws(n.check,i,h,a-h):qs(n.check,i,h,a-h)),h=u,(n.flags?c:Eu(c))!==n.check){t.msg="incorrect data check",n.mode=ku;break}c=0,l=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(c!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=ku;break}c=0,l=0}n.mode=29;case 29:E=1;break t;case ku:E=-3;break t;case 31:return-4;case 32:default:return wu}return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,n.hold=c,n.bits=l,(n.wsize||h!==t.avail_out&&n.mode<ku&&(n.mode<27||4!==e))&&function(t,e,n,r){var i,o=t.state;null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Qa(o.wsize)),r>=o.wsize?(Xa(o.window,e,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>r&&(i=r),Xa(o.window,e,n-r,i,o.wnext),(r-=i)?(Xa(o.window,e,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i)))}(t,t.output,t.next_out,h-t.avail_out),f-=t.avail_in,h-=t.avail_out,t.total_in+=f,t.total_out+=h,n.total+=h,n.wrap&&h&&(t.adler=n.check=n.flags?Ws(n.check,i,h,t.next_out-h):qs(n.check,i,h,t.next_out-h)),t.data_type=n.bits+(n.last?64:0)+(n.mode===bu?128:0)+(20===n.mode||15===n.mode?256:0),(0===f&&0===h||4===e)&&0===E&&(E=-5),E}var Nu;function ju(t){if(t<1||t>7)throw new TypeError("Bad argument");this.mode=t,this.init_done=!1,this.write_in_progress=!1,this.pending_close=!1,this.windowBits=0,this.level=0,this.memLevel=0,this.strategy=0,this.dictionary=null}function Lu(t,e){for(var n=0;n<t.length;n++)this[e+n]=t[n]}ju.prototype.init=function(t,e,n,r,i){var o;switch(this.windowBits=t,this.level=e,this.memLevel=n,this.strategy=r,3!==this.mode&&4!==this.mode||(this.windowBits+=16),7===this.mode&&(this.windowBits+=32),5!==this.mode&&6!==this.mode||(this.windowBits=-this.windowBits),this.strm=new Va,this.mode){case 1:case 3:case 5:o=function(t,e,n,r,i,o){if(!t)return $s;var a=1;if(-1===e&&(e=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>9||8!==n||r<8||r>15||e<0||e>9||o<0||o>4)return Xs(t,$s);8===r&&(r=9);var s=new lu;return t.state=s,s.strm=t,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Qa(2*s.w_size),s.head=new ts(s.hash_size),s.prev=new ts(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Qa(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=o,s.method=n,fu(t)}(this.strm,this.level,8,this.windowBits,this.memLevel,this.strategy);break;case 2:case 4:case 6:case 7:o=Cu(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}0===o?(this.write_in_progress=!1,this.init_done=!0):this._error(o)},ju.prototype.params=function(){throw new Error("deflateParams Not supported")},ju.prototype._writeCheck=function(){if(!this.init_done)throw new Error("write before init");if(0===this.mode)throw new Error("already finalized");if(this.write_in_progress)throw new Error("write already in progress");if(this.pending_close)throw new Error("close is pending")},ju.prototype.write=function(t,e,n,r,i,o,a){this._writeCheck(),this.write_in_progress=!0;var s=this;return fe.nextTick((function(){s.write_in_progress=!1;var u=s._write(t,e,n,r,i,o,a);s.callback(u[0],u[1]),s.pending_close&&s.close()})),this},ju.prototype.writeSync=function(t,e,n,r,i,o,a){return this._writeCheck(),this._write(t,e,n,r,i,o,a)},ju.prototype._write=function(t,e,n,r,i,o,a){if(this.write_in_progress=!0,0!==t&&1!==t&&2!==t&&3!==t&&4!==t&&5!==t)throw new Error("Invalid flush value");null==e&&(e=new Le(0),r=0,n=0),i._set?i.set=i._set:i.set=Lu;var s,u=this.strm;switch(u.avail_in=r,u.input=e,u.next_in=n,u.avail_out=a,u.output=i,u.next_out=o,this.mode){case 1:case 3:case 5:s=hu(u,t);break;case 7:case 2:case 4:case 6:s=Iu(u,t);break;default:throw new Error("Unknown mode "+this.mode)}return 1!==s&&0!==s&&this._error(s),this.write_in_progress=!1,[u.avail_in,u.avail_out]},ju.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,1===this.mode||3===this.mode||5===this.mode?function(t){var e;t&&t.state&&(42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&e!==Gs&&e!==Js&&e!==Vs?Xs(t,$s):(t.state=null,e===Js&&Xs(t,-3)))}(this.strm):function(t){if(!t||!t.state)return wu;var e=t.state;e.window&&(e.window=null),t.state=null}(this.strm),this.mode=0)},ju.prototype.reset=function(){switch(this.mode){case 1:case 5:Nu=fu(this.strm);break;case 2:case 6:Nu=Au(this.strm)}0!==Nu&&this._error(Nu)},ju.prototype._error=function(t){this.onerror(Ja[t]+": "+this.strm.msg,t),this.write_in_progress=!1,this.pending_close&&this.close()};var Bu=Object.freeze({__proto__:null,NONE:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8,Zlib:ju});var Pu={};Object.keys(Bu).forEach((function(t){Pu[t]=Bu[t]})),Pu.Z_MIN_WINDOWBITS=8,Pu.Z_MAX_WINDOWBITS=15,Pu.Z_DEFAULT_WINDOWBITS=15,Pu.Z_MIN_CHUNK=64,Pu.Z_MAX_CHUNK=1/0,Pu.Z_DEFAULT_CHUNK=16384,Pu.Z_MIN_MEMLEVEL=1,Pu.Z_MAX_MEMLEVEL=9,Pu.Z_DEFAULT_MEMLEVEL=8,Pu.Z_MIN_LEVEL=-1,Pu.Z_MAX_LEVEL=9,Pu.Z_DEFAULT_LEVEL=Pu.Z_DEFAULT_COMPRESSION;var Mu={Z_OK:Pu.Z_OK,Z_STREAM_END:Pu.Z_STREAM_END,Z_NEED_DICT:Pu.Z_NEED_DICT,Z_ERRNO:Pu.Z_ERRNO,Z_STREAM_ERROR:Pu.Z_STREAM_ERROR,Z_DATA_ERROR:Pu.Z_DATA_ERROR,Z_MEM_ERROR:Pu.Z_MEM_ERROR,Z_BUF_ERROR:Pu.Z_BUF_ERROR,Z_VERSION_ERROR:Pu.Z_VERSION_ERROR};function zu(t){return new sc(t)}function Uu(t){return new uc(t)}function Du(t){return new fc(t)}function Fu(t){return new hc(t)}function qu(t){return new cc(t)}function Zu(t){return new lc(t)}function Wu(t){return new dc(t)}function Hu(t,e,n){return"function"==typeof e&&(n=e,e={}),oc(new sc(e),t,n)}function $u(t,e){return ac(new sc(e),t)}function Ku(t,e,n){return"function"==typeof e&&(n=e,e={}),oc(new cc(e),t,n)}function Yu(t,e){return ac(new cc(e),t)}function Gu(t,e,n){return"function"==typeof e&&(n=e,e={}),oc(new fc(e),t,n)}function Ju(t,e){return ac(new fc(e),t)}function Vu(t,e,n){return"function"==typeof e&&(n=e,e={}),oc(new dc(e),t,n)}function Xu(t,e){return ac(new dc(e),t)}function Qu(t,e,n){return"function"==typeof e&&(n=e,e={}),oc(new uc(e),t,n)}function tc(t,e){return ac(new uc(e),t)}function ec(t,e,n){return"function"==typeof e&&(n=e,e={}),oc(new lc(e),t,n)}function nc(t,e){return ac(new lc(e),t)}function rc(t,e,n){return"function"==typeof e&&(n=e,e={}),oc(new hc(e),t,n)}function ic(t,e){return ac(new hc(e),t)}function oc(t,e,n){var r=[],i=0;function o(){for(var e;null!==(e=t.read());)r.push(e),i+=e.length;t.once("readable",o)}function a(){var e=Le.concat(r,i);r=[],n(null,e),t.close()}t.on("error",(function(e){t.removeListener("end",a),t.removeListener("readable",o),n(e)})),t.on("end",a),t.end(e),o()}function ac(t,e){if("string"==typeof e&&(e=new Le(e)),!Le.isBuffer(e))throw new TypeError("Not a string or buffer");var n=Pu.Z_FINISH;return t._processChunk(e,n)}function sc(t){if(!(this instanceof sc))return new sc(t);pc.call(this,t,Pu.DEFLATE)}function uc(t){if(!(this instanceof uc))return new uc(t);pc.call(this,t,Pu.INFLATE)}function cc(t){if(!(this instanceof cc))return new cc(t);pc.call(this,t,Pu.GZIP)}function lc(t){if(!(this instanceof lc))return new lc(t);pc.call(this,t,Pu.GUNZIP)}function fc(t){if(!(this instanceof fc))return new fc(t);pc.call(this,t,Pu.DEFLATERAW)}function hc(t){if(!(this instanceof hc))return new hc(t);pc.call(this,t,Pu.INFLATERAW)}function dc(t){if(!(this instanceof dc))return new dc(t);pc.call(this,t,Pu.UNZIP)}function pc(t,e){if(this._opts=t=t||{},this._chunkSize=t.chunkSize||Pu.Z_DEFAULT_CHUNK,ci.call(this,t),t.flush&&t.flush!==Pu.Z_NO_FLUSH&&t.flush!==Pu.Z_PARTIAL_FLUSH&&t.flush!==Pu.Z_SYNC_FLUSH&&t.flush!==Pu.Z_FULL_FLUSH&&t.flush!==Pu.Z_FINISH&&t.flush!==Pu.Z_BLOCK)throw new Error("Invalid flush flag: "+t.flush);if(this._flushFlag=t.flush||Pu.Z_NO_FLUSH,t.chunkSize&&(t.chunkSize<Pu.Z_MIN_CHUNK||t.chunkSize>Pu.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+t.chunkSize);if(t.windowBits&&(t.windowBits<Pu.Z_MIN_WINDOWBITS||t.windowBits>Pu.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+t.windowBits);if(t.level&&(t.level<Pu.Z_MIN_LEVEL||t.level>Pu.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+t.level);if(t.memLevel&&(t.memLevel<Pu.Z_MIN_MEMLEVEL||t.memLevel>Pu.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+t.memLevel);if(t.strategy&&t.strategy!=Pu.Z_FILTERED&&t.strategy!=Pu.Z_HUFFMAN_ONLY&&t.strategy!=Pu.Z_RLE&&t.strategy!=Pu.Z_FIXED&&t.strategy!=Pu.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+t.strategy);if(t.dictionary&&!Le.isBuffer(t.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._binding=new Pu.Zlib(e);var n=this;this._hadError=!1,this._binding.onerror=function(t,e){n._binding=null,n._hadError=!0;var r=new Error(t);r.errno=e,r.code=Pu.codes[e],n.emit("error",r)};var r=Pu.Z_DEFAULT_COMPRESSION;"number"==typeof t.level&&(r=t.level);var i=Pu.Z_DEFAULT_STRATEGY;"number"==typeof t.strategy&&(i=t.strategy),this._binding.init(t.windowBits||Pu.Z_DEFAULT_WINDOWBITS,r,t.memLevel||Pu.Z_DEFAULT_MEMLEVEL,i,t.dictionary),this._buffer=new Le(this._chunkSize),this._offset=0,this._closed=!1,this._level=r,this._strategy=i,this.once("end",this.close)}Object.keys(Mu).forEach((function(t){Mu[Mu[t]]=t})),Nn(pc,ci),pc.prototype.params=function(t,e,n){if(t<Pu.Z_MIN_LEVEL||t>Pu.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+t);if(e!=Pu.Z_FILTERED&&e!=Pu.Z_HUFFMAN_ONLY&&e!=Pu.Z_RLE&&e!=Pu.Z_FIXED&&e!=Pu.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+e);if(this._level!==t||this._strategy!==e){var r=this;this.flush(Pu.Z_SYNC_FLUSH,(function(){r._binding.params(t,e),r._hadError||(r._level=t,r._strategy=e,n&&n())}))}else fe.nextTick(n)},pc.prototype.reset=function(){return this._binding.reset()},pc.prototype._flush=function(t){this._transform(new Le(0),"",t)},pc.prototype.flush=function(t,e){var n=this._writableState;if(("function"==typeof t||void 0===t&&!e)&&(e=t,t=Pu.Z_FULL_FLUSH),n.ended)e&&fe.nextTick(e);else if(n.ending)e&&this.once("end",e);else if(n.needDrain){var r=this;this.once("drain",(function(){r.flush(e)}))}else this._flushFlag=t,this.write(new Le(0),"",e)},pc.prototype.close=function(t){if(t&&fe.nextTick(t),!this._closed){this._closed=!0,this._binding.close();var e=this;fe.nextTick((function(){e.emit("close")}))}},pc.prototype._transform=function(t,e,n){var r,i=this._writableState,o=(i.ending||i.ended)&&(!t||i.length===t.length);if(null===!t&&!Le.isBuffer(t))return n(new Error("invalid input"));o?r=Pu.Z_FINISH:(r=this._flushFlag,t.length>=i.length&&(this._flushFlag=this._opts.flush||Pu.Z_NO_FLUSH)),this._processChunk(t,r,n)},pc.prototype._processChunk=function(t,e,n){var r=t&&t.length,i=this._chunkSize-this._offset,o=0,a=this,s="function"==typeof n;if(!s){var u,c=[],l=0;this.on("error",(function(t){u=t}));do{var f=this._binding.writeSync(e,t,o,r,this._buffer,this._offset,i)}while(!this._hadError&&p(f[0],f[1]));if(this._hadError)throw u;var h=Le.concat(c,l);return this.close(),h}var d=this._binding.write(e,t,o,r,this._buffer,this._offset,i);function p(u,f){if(!a._hadError){var h=i-f;if(function(t,e){if(!t)throw new Error(e)}(h>=0,"have should not go down"),h>0){var d=a._buffer.slice(a._offset,a._offset+h);a._offset+=h,s?a.push(d):(c.push(d),l+=d.length)}if((0===f||a._offset>=a._chunkSize)&&(i=a._chunkSize,a._offset=0,a._buffer=new Le(a._chunkSize)),0===f){if(o+=r-u,r=u,!s)return!0;var v=a._binding.write(e,t,o,r,a._buffer,a._offset,a._chunkSize);return v.callback=p,void(v.buffer=t)}if(!s)return!1;n()}}d.buffer=t,d.callback=p},Nn(sc,pc),Nn(uc,pc),Nn(cc,pc),Nn(lc,pc),Nn(fc,pc),Nn(hc,pc),Nn(dc,pc);var vc={codes:Mu,createDeflate:zu,createInflate:Uu,createDeflateRaw:Du,createInflateRaw:Fu,createGzip:qu,createGunzip:Zu,createUnzip:Wu,deflate:Hu,deflateSync:$u,gzip:Ku,gzipSync:Yu,deflateRaw:Gu,deflateRawSync:Ju,unzip:Vu,unzipSync:Xu,inflate:Qu,inflateSync:tc,gunzip:ec,gunzipSync:nc,inflateRaw:rc,inflateRawSync:ic,Deflate:sc,Inflate:uc,Gzip:cc,Gunzip:lc,DeflateRaw:fc,InflateRaw:hc,Unzip:dc,Zlib:pc},gc=Object.freeze({__proto__:null,codes:Mu,createDeflate:zu,createInflate:Uu,createDeflateRaw:Du,createInflateRaw:Fu,createGzip:qu,createGunzip:Zu,createUnzip:Wu,deflate:Hu,deflateSync:$u,gzip:Ku,gzipSync:Yu,deflateRaw:Gu,deflateRawSync:Ju,unzip:Vu,unzipSync:Xu,inflate:Qu,inflateSync:tc,gunzip:ec,gunzipSync:nc,inflateRaw:rc,inflateRawSync:ic,Deflate:sc,Inflate:uc,Gzip:cc,Gunzip:lc,DeflateRaw:fc,InflateRaw:hc,Unzip:dc,Zlib:pc,default:vc}),_c="axios",yc="0.21.1",mc="Promise based HTTP client for the browser and node.js",wc="index.js",bc={test:"grunt test && bundlesize",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},kc={type:"git",url:"https://github.com/axios/axios.git"},Ec=["xhr","http","ajax","promise","node"],Sc="Matt Zabriskie",Ac={url:"https://github.com/axios/axios/issues"},Cc="https://github.com/axios/axios",Tc={bundlesize:"^0.17.0",coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.0.2","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^20.1.0","grunt-karma":"^2.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^1.0.18","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^1.3.0","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.1","karma-firefox-launcher":"^1.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-opera-launcher":"^1.0.0","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^1.2.0","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^1.7.0","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^5.2.0",sinon:"^4.5.0",typescript:"^2.8.1","url-search-params":"^0.10.0",webpack:"^1.13.1","webpack-dev-server":"^1.14.1"},Rc={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},xc="dist/axios.min.js",Oc="dist/axios.min.js",Ic="./index.d.ts",Nc={"follow-redirects":"^1.10.0"},jc=[{path:"./dist/axios.min.js",threshold:"5kB"}],Lc={name:_c,version:yc,description:mc,main:wc,scripts:bc,repository:kc,keywords:Ec,author:Sc,license:"MIT",bugs:Ac,homepage:Cc,devDependencies:Tc,browser:Rc,jsdelivr:xc,unpkg:Oc,typings:Ic,dependencies:Nc,bundlesize:jc},Bc=Object.freeze({__proto__:null,name:_c,version:yc,description:mc,main:wc,scripts:bc,repository:kc,keywords:Ec,author:Sc,license:"MIT",bugs:Ac,homepage:Cc,devDependencies:Tc,browser:Rc,jsdelivr:xc,unpkg:Oc,typings:Ic,dependencies:Nc,bundlesize:jc,default:Lc}),Pc=r(gc),Mc=r(Bc),zc=Ya.http,Uc=Ya.https,Dc=/https:?/;function Fc(t,e,n){if(t.hostname=e.host,t.host=e.host,t.port=e.port,t.path=n,e.auth){var r=Le.from(e.auth.username+":"+e.auth.password,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+r}t.beforeRedirect=function(t){t.headers.host=t.host,Fc(t,e,t.href)}}var qc=function(t){return new Promise((function(e,n){var r=function(t){e(t)},i=function(t){n(t)},o=t.data,a=t.headers;if(a["User-Agent"]||a["user-agent"]||(a["User-Agent"]="axios/"+Mc.version),o&&!jt.isStream(o)){if(Le.isBuffer(o));else if(jt.isArrayBuffer(o))o=Le.from(new Uint8Array(o));else{if(!jt.isString(o))return i(pe("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",t));o=Le.from(o,"utf-8")}a["Content-Length"]=o.length}var s=void 0;t.auth&&(s=(t.auth.username||"")+":"+(t.auth.password||""));var u=_e(t.baseURL,t.url),c=Oa.parse(u),l=c.protocol||"http:";if(!s&&c.auth){var f=c.auth.split(":");s=(f[0]||"")+":"+(f[1]||"")}s&&delete a.Authorization;var h=Dc.test(l),d=h?t.httpsAgent:t.httpAgent,p={path:Bt(c.path,t.params,t.paramsSerializer).replace(/^\?/,""),method:t.method.toUpperCase(),headers:a,agent:d,agents:{http:t.httpAgent,https:t.httpsAgent},auth:s};t.socketPath?p.socketPath=t.socketPath:(p.hostname=c.hostname,p.port=c.port);var v,g=t.proxy;if(!g&&!1!==g){var _=l.slice(0,-1)+"_proxy",y=fe.env[_]||fe.env[_.toUpperCase()];if(y){var m=Oa.parse(y),w=fe.env.no_proxy||fe.env.NO_PROXY,b=!0;if(w)b=!w.split(",").map((function(t){return t.trim()})).some((function(t){return!!t&&("*"===t||("."===t[0]&&c.hostname.substr(c.hostname.length-t.length)===t||c.hostname===t))}));if(b&&(g={host:m.hostname,port:m.port,protocol:m.protocol},m.auth)){var k=m.auth.split(":");g.auth={username:k[0],password:k[1]}}}}g&&(p.headers.host=c.hostname+(c.port?":"+c.port:""),Fc(p,g,l+"//"+c.hostname+(c.port?":"+c.port:"")+p.path));var E=h&&(!g||Dc.test(g.protocol));t.transport?v=t.transport:0===t.maxRedirects?v=Ia:(t.maxRedirects&&(p.maxRedirects=t.maxRedirects),v=E?Uc:zc),t.maxBodyLength>-1&&(p.maxBodyLength=t.maxBodyLength);var S=v.request(p,(function(e){if(!S.aborted){var n=e,o=e.req||S;if(204!==e.statusCode&&"HEAD"!==o.method&&!1!==t.decompress)switch(e.headers["content-encoding"]){case"gzip":case"compress":case"deflate":n=n.pipe(Pc.createUnzip()),delete e.headers["content-encoding"]}var a={status:e.statusCode,statusText:e.statusMessage,headers:e.headers,config:t,request:o};if("stream"===t.responseType)a.data=n,ve(r,i,a);else{var s=[];n.on("data",(function(e){s.push(e),t.maxContentLength>-1&&Le.concat(s).length>t.maxContentLength&&(n.destroy(),i(pe("maxContentLength size of "+t.maxContentLength+" exceeded",t,null,o)))})),n.on("error",(function(e){S.aborted||i(de(e,t,null,o))})),n.on("end",(function(){var e=Le.concat(s);"arraybuffer"!==t.responseType&&(e=e.toString(t.responseEncoding),t.responseEncoding&&"utf8"!==t.responseEncoding||(e=jt.stripBOM(e))),a.data=e,ve(r,i,a)}))}}}));S.on("error",(function(e){S.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==e.code||i(de(e,t,null,S))})),t.timeout&&S.setTimeout(t.timeout,(function(){S.abort(),i(pe("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",S))})),t.cancelToken&&t.cancelToken.promise.then((function(t){S.aborted||(S.abort(),i(t))})),jt.isStream(o)?o.on("error",(function(e){i(de(e,t,null,S))})).pipe(S):S.end(o)}))},Zc={"Content-Type":"application/x-www-form-urlencoded"};function Wc(t,e){!jt.isUndefined(t)&&jt.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var Hc,$c={adapter:("undefined"!=typeof XMLHttpRequest?Hc=we:void 0!==fe&&"[object process]"===Object.prototype.toString.call(fe)&&(Hc=qc),Hc),transformRequest:[function(t,e){return he(e,"Accept"),he(e,"Content-Type"),jt.isFormData(t)||jt.isArrayBuffer(t)||jt.isBuffer(t)||jt.isStream(t)||jt.isFile(t)||jt.isBlob(t)?t:jt.isArrayBufferView(t)?t.buffer:jt.isURLSearchParams(t)?(Wc(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):jt.isObject(t)?(Wc(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};$c.headers={common:{Accept:"application/json, text/plain, */*"}},jt.forEach(["delete","get","head"],(function(t){$c.headers[t]={}})),jt.forEach(["post","put","patch"],(function(t){$c.headers[t]=jt.merge(Zc)}));var Kc=$c;function Yc(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var Gc=function(t){return Yc(t),t.headers=t.headers||{},t.data=zt(t.data,t.headers,t.transformRequest),t.headers=jt.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),jt.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||Kc.adapter)(t).then((function(e){return Yc(t),e.data=zt(e.data,e.headers,t.transformResponse),e}),(function(e){return Ut(e)||(Yc(t),e&&e.response&&(e.response.data=zt(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},Jc=function(t,e){e=e||{};var n={},r=["url","method","data"],i=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function s(t,e){return jt.isPlainObject(t)&&jt.isPlainObject(e)?jt.merge(t,e):jt.isPlainObject(e)?jt.merge({},e):jt.isArray(e)?e.slice():e}function u(r){jt.isUndefined(e[r])?jt.isUndefined(t[r])||(n[r]=s(void 0,t[r])):n[r]=s(t[r],e[r])}jt.forEach(r,(function(t){jt.isUndefined(e[t])||(n[t]=s(void 0,e[t]))})),jt.forEach(i,u),jt.forEach(o,(function(r){jt.isUndefined(e[r])?jt.isUndefined(t[r])||(n[r]=s(void 0,t[r])):n[r]=s(void 0,e[r])})),jt.forEach(a,(function(r){r in e?n[r]=s(t[r],e[r]):r in t&&(n[r]=s(void 0,t[r]))}));var c=r.concat(i).concat(o).concat(a),l=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===c.indexOf(t)}));return jt.forEach(l,u),n};function Vc(t){this.defaults=t,this.interceptors={request:new Mt,response:new Mt}}Vc.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=Jc(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[Gc,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},Vc.prototype.getUri=function(t){return t=Jc(this.defaults,t),Bt(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},jt.forEach(["delete","get","head","options"],(function(t){Vc.prototype[t]=function(e,n){return this.request(Jc(n||{},{method:t,url:e,data:(n||{}).data}))}})),jt.forEach(["post","put","patch"],(function(t){Vc.prototype[t]=function(e,n,r){return this.request(Jc(r||{},{method:t,url:e,data:n}))}}));var Xc=Vc;function Qc(t){this.message=t}Qc.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Qc.prototype.__CANCEL__=!0;var tl=Qc;function el(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new tl(t),e(n.reason))}))}el.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},el.source=function(){var t;return{token:new el((function(e){t=e})),cancel:t}};var nl=el;function rl(t){var e=new Xc(t),n=At(Xc.prototype.request,e);return jt.extend(n,Xc.prototype,e),jt.extend(n,e),n}var il=rl(Kc);il.Axios=Xc,il.create=function(t){return rl(Jc(il.defaults,t))},il.Cancel=tl,il.CancelToken=nl,il.isCancel=Ut,il.all=function(t){return Promise.all(t)},il.spread=function(t){return function(e){return t.apply(null,e)}},il.isAxiosError=function(t){return"object"==typeof t&&!0===t.isAxiosError};var ol=il,al=il;ol.default=al;var sl=ol,ul=(()=>{const t=ut();return{MINI_APP_LINK:"https://zalo.me/app/link/zapps",MINI_APP_INTERNAL_LINK:"https://h5.zdn.vn/zapps",COOKIE_NAME:{ZOAUTH:"h5.zdn.vn_zoauth",ZACC_SESSiON:"h5.zdn.vn_zacc_session",JS_TOKEN:"h5.zdn.vn_zlink3rd"},APIS:{GET_USER_INFO:"https://graph.zalo.me/v2.0/me"},STORAGE_DATA_LIMIT:102400,STORAGE_LIMIT:5242880,NETWORK_TYPE:{NONE:t.isAndroid?-2:0,WIFI:t.isAndroid?0:1,"2G":(t.isAndroid,2),"3G":t.isAndroid?15:2,"4G":t.isAndroid?13:2}}})();const cl={encode:function(t){var e=[];for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];if(void 0===r)return;if(null===r)return void e.push(n);e.push(encodeURIComponent(n)+"="+encodeURIComponent(r))}return e.join("&")},decode:function(t,e){var n={};if(""===t)return n;for(var r=t.split("&"),i=0;i<r.length;i++){var o=r[i].split("=",2),a=decodeURIComponent(o[0]);if(e&&Object.prototype.hasOwnProperty.call(n,a))throw new URIError("Duplicate key: "+a);n[a]=2===o.length?decodeURIComponent(o[1]):null}return n},appendToUrl:function(t,e){return t+(-1!==t.indexOf("?")?"&":"?")+("string"==typeof e?e:cl.encode(e))},getParameterByName:function(t,e){e||(e=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},getParamsAsObject:function(t){var e={};return t?(t.split("&").map((function(t){var n=t.split("=");n&&2==n.length&&(e[n[0]]=decodeURIComponent(n[1]))})),e):e},toQueryString:function(t){if(!t)return"";if("object"!=(void 0===t?"undefined":typeof t))return t;var e=Object.keys(t),n=[];return e.map((function(e){var r=t[e],i=[e,r="object"==(void 0===r?"undefined":typeof r)?JSON.stringify(r):encodeURIComponent(r)].join("=");n.push(i)})),n.join("&")}};var ll={},fl=function(t,e,n){var r=e||"default";return function(){var e=r in ll?ll[r](t,n):t;return e.apply(this,arguments)}};fl.setWrapper=function(t){var e=arguments.length<=1||void 0===arguments[1]?"default":arguments[1];ll[e]=t};var hl={error:{code:1,error_subcode:1357046,message:"Received Invalid JSON reply.",type:"http"}};function dl(t){try{return null===t?hl:JSON.parse(t)}catch(t){return hl}}var pl={execute:function(t,e,n,r){n.suppress_http_code=1;var i=cl.encode(n);"post"!=e&&(t=cl.appendToUrl(t,i),i="");var o=function(t,e){if(!self.XMLHttpRequest)return null;var n=new XMLHttpRequest,r=function(){};if(!("withCredentials"in n))return null;n.open(t,e,!0),n.setRequestHeader("Content-type","application/x-www-form-urlencoded");var i={send:function(t){n.send(t)}},o=fl((function(){o=r,"onload"in i&&i.onload(n)}),"entry","XMLHttpRequest:load"),a=fl((function(){a=r,"onerror"in i&&i.onerror(n)}),"entry","XMLHttpRequest:error");return n.onload=function(){o()},n.onerror=function(){a()},n.onreadystatechange=function(){4==n.readyState&&(200==n.status?o():a())},i}(e,t);return!!o&&(o.onload=function(t){r(dl(t.responseText))},o.onerror=function(t){t.responseText?r(dl(t.responseText)):r({error:{code:1,error_subcode:1357045,message:"unknown error (empty response)",status:t.status,type:"http"}})},o.send(i),!0)}};class vl{constructor(){this._accessTk=pt("zacc_session")||"DEFAULT_ACCESS_TOKEN",this._jsAccessTk=pt("zlink3rd")||"DEFAULT_JS_TOKEN",this.results=[],this._userAgent=st(),this._device=ut(),this._jsCallFuncCallbacks={},this._listenerEvent={},this.registerListenerEvent("h5.event.paused","",(()=>{if(this.results.length>0){let t=this.results;this.results=[];try{this.sendLogData(t)}catch(t){}}})),this.sendLogTimer?clearInterval(this.sendLogTimer):this.sendLogTimer=setInterval((()=>{if(this.results.length>0){let t=this.results;this.results=[];try{this.sendLogData(t)}catch(t){}}}),5e3)}static getInstance(){return vl.instance||(vl.instance=new vl),vl.instance}set accessTk(t){this._accessTk=t}set jsAccessTk(t){this._jsAccessTk=t}sendLogData(t){try{pl.execute("https://h5.zalo.me/log/async","post",{appId:window.APP_ID,data:JSON.stringify(t)},(t=>{}))}catch(t){}}onJSCall(t,e){try{const n=vt(e);if(this._jsCallFuncCallbacks[t]){const e=this._jsCallFuncCallbacks[t].callback,r=this._jsCallFuncCallbacks[t].timeout;if(e){try{e.call(this,n)}catch(t){console.error("Call callback error",t)}r&&clearTimeout(r),this._jsCallFuncCallbacks[t]=null,delete this._jsCallFuncCallbacks[t]}}this.results.push({action:n.action,error:n.error_code})}catch(t){console.log("onJSCall","error",t)}}onMultiJSCall(t,e){try{const n=vt(e);if(this._jsCallFuncCallbacks[t]){const e=this._jsCallFuncCallbacks[t].callback,r=this._jsCallFuncCallbacks[t].timeout;if(e){try{e.call(this,n)}catch(t){console.error("Call callback error",t)}r&&clearTimeout(r)}}this.results.push({action:n.action,error:n.error_code})}catch(t){console.log("onMultiJSCall","error",t)}}jsCallback(t,e,n){ZaloJavaScriptInterface.jsH5EventCallback(t,e,n)}registerListenerEvent(t,e,n){console.log("register "+t+" : "+e),this._listenerEvent[t]={handler:n,data:e}}nativeEventHandler(t,e,n){if(console.log("eventId:",t,"eventName",e,"eventData",n),this._listenerEvent[e]){const{handler:r,data:i}=this._listenerEvent[e];this.jsCallback(t,e,i);try{r(n)}catch(t){console.log("nativeEventHandler","H5 handle event fail",e,t)}}}defaultCallback(t){null!=t&&(t=vt(t))}jsCall(t,e,n,r=!1,i=3,o=!0){try{const a=((t="")=>`${t.normalize("NFD").replace(rt,"").replace(it,"d").replace(ot,"").toLowerCase()}_${Math.random().toString(36).substr(2,4)}`)(t);if(!this._device.isMobile||d.isEmpty(t))return this.onJSCall(a,{error_code:-13,error_message:"params invalid!",data:{device:this._device.isMobile,jsToken:this._jsAccessTk,access_token:this._accessTk},action:t}),!1;null==e&&(e={}),n||(n=this.defaultCallback);const s={error_code:-14,error_message:"Request Timeout!",data:{},action:t};this._jsCallFuncCallbacks[a]={timeout:o&&J.includes(t)&&setTimeout((()=>{this.onJSCall(a,s)}),8e3),callback:n};try{return e=gt(e),r?this._device.isIOS?ZaloJavaScriptInterface.jsCall(this._jsAccessTk,t,this._accessTk,e,window.onMultiJSCall(a)):ZaloJavaScriptInterface.jsCall(this._jsAccessTk,t,this._accessTk,e,`window.onMultiJSCall('${a}')`):this._device.isIOS?ZaloJavaScriptInterface.jsCall(this._jsAccessTk,t,this._accessTk,e,window.onJSCall(a)):ZaloJavaScriptInterface.jsCall(this._jsAccessTk,t,this._accessTk,e,`window.onJSCall('${a}')`)}catch(o){if(!(i-- >0)){const n={error_code:-5,error_message:"Not ready!",data:{userAgent:this._userAgent,options:e,jsToken:this._jsAccessTk,access_token:this._accessTk},action:t,js_error:o};return this.onJSCall(a,n),!1}setTimeout((()=>{this.jsCall(t,e,n,r,i)}),500)}}catch(t){console.log("jsCall","error",t)}return!1}}class gl{constructor(t,e,n){this.code=t,this.message=e,this.api=n}toString(){return`api: ${this.api}; code: ${this.code}; message: ${this.message}`}}class _l extends gl{constructor(t,e){super(t,e),this.message=`${e}. ${tt.READ_MORE}`,this.handler()}handler(){switch(this.code){case t.NativeCode.token_invalid:this.code=X,this.message=tt.LOGIN_REQUIRED;break;case t.NativeCode.not_permission:this.code=Q,this.message=tt.NOT_PERMISSION;break;case t.NativeCode.client_not_support:this.message=tt.CLIENT_NOT_SUPPORT;break;case t.NativeCode.decode_failed:this.message=tt.DECODE_FAILED}}}const yl={handler:null,setHandler(t){this.handler=t}};yl.setHandler(((t,e)=>e instanceof gl?(e.api=t,e):new gl(-2001,d.isNull(e.message)?"Unknown Error":e.message,t)));const ml=(t,e,n)=>{const r=n.value;return n.value=function(...t){return kt(this,void 0,void 0,(function*(){const{success:n,fail:i}=Array.isArray(t)&&t.length>0&&t[0];return new Promise(((o,a)=>kt(this,void 0,void 0,(function*(){try{const e=yield r.apply(this,t);!d.isNull(n)&&d.isFunction(n)?n.call(null,e,this):o(e)}catch(t){const{handler:n}=yl,r=n.call(null,e,t,this);window.zmpSentry&&window.zmpSentry.throwError(r.toString()),!d.isNull(i)&&d.isFunction(i)?i.call(null,r,this):console.error("Error:",r)}}))))}))},n},wl=(t,e,n)=>{const r=n.value;return n.value=function(...t){try{return r.apply(this,t)}catch(t){const{handler:n}=yl;!d.isNull(n)&&d.isFunction(n)?n.call(null,e,t,this):console.warn(t.message)}},n};var bl;class kl{constructor(){bl.set(this,void 0),St(this,bl,vl.getInstance())}setZAccSession(t){Et(this,bl).accessTk=t}setJSToken(t){Et(this,bl).jsAccessTk=t}callNative(t,e,n){return new Promise(((r,i)=>{Et(this,bl).jsCall(t,e,(o=>{if(o&&o.error_code>=0&&o.action==t)r(o.data||{}),(null==n?void 0:n.callback)&&n.callback(o,null);else if(o&&o.error_code<0){const r=new _l(o.error_code,`${o.action}: ${o.error_message}`);try{window.zmpSentry&&window.zmpSentry.captureMessage(`${t}: call native fail`,{extra:{data:e,rs:o}})}catch(t){}i(r),(null==n?void 0:n.callback)&&n.callback(o,r)}}),null==n?void 0:n.isMultiCallback,null==n?void 0:n.nRetry,null==n?void 0:n.haveTimeout)}))}listenerEventNative(t,e,n){Et(this,bl).registerListenerEvent(t,e,n)}}bl=new WeakMap;const El={loginFailed:()=>new gl(X,tt.LOGIN_FAILED),loginRequired:()=>new gl(V,tt.LOGIN_REQUIRED),missingParam:t=>new gl(V,`Missing required argument: ${t}`),wrongTypeParam:(t,e,n)=>new gl(V,`Wrong type of parameter '${t}'. Expected ${e}, but got ${n}`)};var Sl,Al,Cl,Tl,Rl,xl="2.12.0-5";class Ol{static getVersion(){return xl}static getSystemInfo(){return{version:ct("version-id")||"",apiVersion:xl,zaloVersion:lt(),platform:ft(),language:navigator.language}}static getAppInfo(){return kt(this,void 0,void 0,(function*(){let t={};const e=this.getAppId(),n=this.getSystemInfo(),r=cl.appendToUrl(`https://h5.zalo.me/${et}`,{appId:e,versionStatus:0,currentVersion:n.version}),i=yield fetch(r,{credentials:"include"});if(i.ok){const e=yield i.json();if(e.err<0||!e.data)throw new Error(e);t={name:e.data.name,version:e.data.version,description:e.data.description,appUrl:e.data.appUrl,qrCodeUrl:e.data.qrCodeUrl}}return t}))}}class Il{static setNavigationBarTitle(t){return kt(this,void 0,void 0,(function*(){yield this.callNative(A,{title:t.title},{haveTimeout:!1})}))}static setNavigationBarColor(t){return kt(this,void 0,void 0,(function*(){if(d.isString(t.color)&&t.color.length>0){const e={};d.isEmpty(t.color)||(e.backgroundColor=t.color),d.isEmpty(t.textColor)||(e.textColor=t.textColor),yield this.callNative($,{actionbarType:5,dataConfig:e,homeConfig:{enable:this.isShowHomeButton?1:0,url:`${ul.MINI_APP_INTERNAL_LINK}/${this.getAppId()}/`}},{haveTimeout:!1}),this.isShowNavBar=!0}else{const e={};d.isEmpty(t.statusBarColor)||(e.backgroundColor=t.statusBarColor),d.isEmpty(t.textColor)||(e.textColor=t.textColor),yield this.callNative($,{actionbarType:6,dataConfig:e},{haveTimeout:!1}),this.isShowNavBar=!1}}))}static setNavigationBarLeftButton(t){return kt(this,void 0,void 0,(function*(){let e={};switch(t.type){case"none":this.isShowHomeButton=!1,e={buttonType:3,dataConfig:{confirmToExit:1},homeConfig:{enable:0,url:`${ul.MINI_APP_INTERNAL_LINK}/${this.getAppId()}/`}};break;case"back":this.isShowHomeButton=!1,e={buttonType:0,dataConfig:{confirmToExit:1},homeConfig:{enable:0,url:`${ul.MINI_APP_INTERNAL_LINK}/${this.getAppId()}/`}};break;case"home":this.isShowHomeButton=!0,e={buttonType:3,dataConfig:{confirmToExit:1},homeConfig:{enable:1,url:`${ul.MINI_APP_INTERNAL_LINK}/${this.getAppId()}/`}};break;case"both":this.isShowHomeButton=!0,e={buttonType:0,dataConfig:{confirmToExit:1},homeConfig:{enable:1,url:`${ul.MINI_APP_INTERNAL_LINK}/${this.getAppId()}/`}}}yield this.callNative(x,Object.assign({},e),{haveTimeout:!1})}))}static onBackButtonClick(t){return kt(this,void 0,void 0,(function*(){yield this.listenerEventNative("h5.event.action.back",'{"handle_h5": 1}',(()=>{t.handler()}))}))}static setNavigationBarRightButton(t){return kt(this,void 0,void 0,(function*(){yield this.callNative(T,{supportToolBar:t.supportToolBar,reset:t.reset,menuListItems:t.menuListItems,zapp:this.getAppId()})}))}}class Nl{static setBackgroundColor(t){return kt(this,void 0,void 0,(function*(){d.isString(t.backgroundColor)&&t.backgroundColor.length>0&&(yield this.callNative($,{actionbarType:this.isShowNavBar?5:6,dataConfig:{backgroundColor:t.backgroundColor,textColor:t.textColor}}))}))}}class jl{constructor(t,e,n,r){this.title=r,this.severity=e;const i=new Date;if(this.time=i.toLocaleTimeString(),this.content=t,n>0){const t=(new Error).stack;this.stack=t?t.replace("Error\n",""):""}}toString(){return(this.content.stack?[this.title,this.severity.toUpperCase(),this.time,this.content,this.content.stack.replace("Error:","")]:[this.title,this.severity.toUpperCase(),this.time,JSON.stringify(this.content),this.stack]).join(" ")}}Sl=new WeakMap,Al=new WeakMap,Cl=new WeakMap,Tl=new WeakMap,Rl=new WeakMap;const Ll=new class{constructor(){Sl.set(this,3),Al.set(this,["none","error","warn","info"]),Cl.set(this,"[zmp] > "),Tl.set(this,{error:0,warn:0,info:0,firstError:null,lastError:null}),Rl.set(this,((t,e,n)=>{Et(this,Tl)[Et(this,Al)[t]]++;const r=Et(this,Al)[t];if(St(this,Cl,Et(this,Cl)+("string"!=typeof e?new jl(e,r,t,n).toString():e)),!(t>Et(this,Sl)))switch(t){case 1:console.error(Et(this,Cl));break;case 2:console.warn(Et(this,Cl));break;case 3:console.info(Et(this,Cl));break;default:throw new Error("internal")}}))}setLogLevel(t){St(this,Sl,t)}info(t){Et(this,Rl).call(this,3,t)}warn(t,e){Et(this,Rl).call(this,2,t,e)}error(t,e){Et(this,Rl).call(this,1,t,e)}getMetrics(){return Et(this,Tl)}};class Bl{static setDeviceOrientation(e){return kt(this,void 0,void 0,(function*(){yield this.callNative(q,{autoRotate:t.OrientationType[e.rotate]})}))}static getNetworkType(e){return kt(this,void 0,void 0,(function*(){return yield this.callNative(C,{url:window.location.href,featureId:""}).then((e=>{let n;switch(e.network){case ul.NETWORK_TYPE.NONE:n=t.NetworkType.none;break;case ul.NETWORK_TYPE.WIFI:n=t.NetworkType.wifi;break;case ul.NETWORK_TYPE["2G"]:case ul.NETWORK_TYPE["3G"]:case ul.NETWORK_TYPE["4G"]:n=t.NetworkType.cellular;break;default:n=t.NetworkType.unknown}return{networkType:n}}))}))}static onNetworkStatusChange(t){return kt(this,void 0,void 0,(function*(){yield this.listenerEventNative("h5.event.connection.changed","",(e=>{const n=JSON.parse(e),r=n&&n.state;this.getNetworkType().then((e=>{const n={isConnected:"CONNECTED"===r,networkType:e&&e.networkType};t(n)})).catch((t=>{Ll.error(t,"onNetworkStatusChange")}))}))}))}static startBeaconDiscovery(t){var e,n,r,i,o;return kt(this,void 0,void 0,(function*(){const a={subaction:0,scanning_type:d.isNumber(null==t?void 0:t.scanningType)?t.scanningType:0,data:{scan_from_source:d.isString(null==t?void 0:t.scanFromSource)?t.scanFromSource:"",expire:d.isNumber(null==t?void 0:t.expire)?t.expire:3e3,monitor_interval:d.isNumber(null==t?void 0:t.monitorInterval)?t.monitorInterval:60,domain:d.isString(null==t?void 0:t.domain)?t.domain:"",scan_config:{scan_time:d.isNumber(null===(e=null==t?void 0:t.scanConfig)||void 0===e?void 0:e.scanTime)?t.scanConfig.scanTime:15e3,time_between_scan:d.isNumber(null===(n=null==t?void 0:t.scanConfig)||void 0===n?void 0:n.timeBetweenScan)?t.scanConfig.timeBetweenScan:1e4,beacon_timeout:d.isNumber(null===(r=null==t?void 0:t.scanConfig)||void 0===r?void 0:r.beaconTimeout)?t.scanConfig.beaconTimeout:3e4,delayCheckConnectedTimeout:d.isNumber(null===(i=null==t?void 0:t.scanConfig)||void 0===i?void 0:i.delayCheckConnectedTimeout)?t.scanConfig.delayCheckConnectedTimeout:5e3,beaconConnectedTimeout:d.isNumber(null===(o=null==t?void 0:t.scanConfig)||void 0===o?void 0:o.beaconConnectedTimeout)?t.scanConfig.beaconConnectedTimeout:6e5},items:Array.isArray(null==t?void 0:t.items)?null==t?void 0:t.items:[]}};return yield this.callNative(Z,Object.assign({},a)),!0}))}static stopBeaconDiscovery(t){return kt(this,void 0,void 0,(function*(){return yield this.callNative(Z,Object.assign({},{subaction:2})),!0}))}static getBeacons(t){return kt(this,void 0,void 0,(function*(){return yield this.callNative(Z,Object.assign({},{subaction:1}),{isMultiCallback:!0}).then((t=>{const e={beacons:[]};return Array.isArray(t)&&t.forEach((t=>{const n={uuid:t.uuid,major:t.major,minor:t.minor,distance:t.distance,rssi:t.rssi};e.beacons.push(n)})),e}))}))}static stopBluetoothDevicesDiscovery(){return kt(this,void 0,void 0,(function*(){return this.callNative("",{})}))}static startBluetoothDevicesDiscovery(t){return kt(this,void 0,void 0,(function*(){return this.callNative("",Object.assign({},t))}))}static openBluetoothAdapter(){return kt(this,void 0,void 0,(function*(){return this.callNative("",{})}))}static onBluetoothDeviceFound(){return kt(this,void 0,void 0,(function*(){return this.callNative("",{})}))}static onBluetoothAdapterStateChange(){return kt(this,void 0,void 0,(function*(){return Promise.resolve()}))}static getConnectedBluetoothDevices(t){return kt(this,void 0,void 0,(function*(){const e={services:t.services||[]};return this.callNative("",e)}))}static getBluetoothDevices(){return kt(this,void 0,void 0,(function*(){return this.callNative("",{})}))}static getBluetoothAdapterState(){return kt(this,void 0,void 0,(function*(){return this.callNative("",{})}))}static closeBluetoothAdapter(){return kt(this,void 0,void 0,(function*(){return this.callNative("",{})}))}static scanQRCode(t){return kt(this,void 0,void 0,(function*(){return yield this.callNative(z,{skipOpenLink:!0})}))}static showToast(t){return kt(this,void 0,void 0,(function*(){yield this.callNative(B,{toast:t.message})}))}static hideKeyboard(t){return kt(this,void 0,void 0,(function*(){yield this.callNative(P,{})}))}static openPhone(t){return kt(this,void 0,void 0,(function*(){yield this.callNative(M,{phoneNum:t.phoneNumber,phoneCode:t.phoneNumber})}))}static openSMS(t){return kt(this,void 0,void 0,(function*(){yield this.callNative(U,{content:t.content,phoneCode:t.phoneNumber})}))}static keepScreen(t){return kt(this,void 0,void 0,(function*(){return yield this.callNative(F,{data:{keep_screen_on:t.keepScreenOn?1:0}})}))}static openBioAuthentication(t){return kt(this,void 0,void 0,(function*(){return yield this.callNative(I,{secret_data:t.secretData,app_id:this.getZAppId(),ui:{title:t.ui.title,sub_title:t.ui.subTitle,negative_text:t.ui.negativeButtonText},require_fingerprint:t.requireFingerprint?1:0}).then((t=>{var e,n,r,i;return{code:null==t?void 0:t.error_code,message:null==t?void 0:t.error_message,data:{domain:null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.domain,code:null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.error_code,message:null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.error_message,payToken:null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.pay_token}}}))}))}static checkStateBioAuthentication(t){return kt(this,void 0,void 0,(function*(){return yield this.callNative(N,{}).then((t=>({bioState:null==t?void 0:t.bio_state})))}))}static vibrate(e){return kt(this,void 0,void 0,(function*(){return yield this.callNative(K,{type:t.VibrateType[e.type],vibrate_time:e.milliseconds})}))}}var Pl,Ml,zl,Ul,Dl,Fl,ql,Zl,Wl,Hl,$l,Kl,Yl,Gl,Jl,Vl,Xl,Ql,tf,ef,nf,rf,of;class af{constructor(t){Pl.set(this,localStorage),Ml.set(this,void 0),zl.set(this,void 0),ut(),St(this,zl,{keys:new Set,currentSize:0,limitSize:ul.STORAGE_LIMIT}),St(this,Ml,t),this.findAllCurrentDataByApp(t)}findAllCurrentDataByApp(t){try{let e;for(e in Et(this,Pl)){if(t){if(e.split("_")[0]!==t)continue}Et(this,zl).keys.add(e)}}catch(t){Ll.error(t,"LocalResourceStorage > findAllCurrentDataByApp")}}get(t){let e=new Map;return t.forEach((t=>{e.set(t,this.getSync(t))})),Promise.resolve(e)}getSync(t){return Et(this,Ml)&&(t=`${Et(this,Ml)}_${t}`),Et(this,zl).keys.has(t)?Et(this,Pl).getItem(t):null}set(t){return kt(this,void 0,void 0,(function*(){return Object.entries(t).forEach((([t,e])=>{this.setSync(t,e.replace(/\\"/g,'"'))})),Promise.resolve({errorKeys:[]})}))}setSync(t,e){Et(this,Ml)&&(t=`${Et(this,Ml)}_${t}`),Et(this,Pl).setItem(t,e),Et(this,zl).keys.add(t)}getInfo(){return kt(this,void 0,void 0,(function*(){return Promise.resolve(this.getInfoSync())}))}getInfoSync(){const t=((t,e)=>{let n,r,i=0;for(r in t){const o=r.split("_")[0];t.hasOwnProperty(r)&&(e&&o!==e||(n=2*(t[r].length+r.length),i+=n))}return i})(Et(this,Pl),Et(this,Ml));return{currentSize:d.isNumber(t)?Number((t/1024).toFixed(2)):0,limitSize:Number((ul.STORAGE_LIMIT/1024).toFixed(2))}}remove(t){return kt(this,void 0,void 0,(function*(){return t.forEach((t=>{this.removeSync(t)})),Promise.resolve({errorKeys:[]})}))}removeSync(t){Et(this,Ml)&&(t=`${Et(this,Ml)}_${t}`),Et(this,zl).keys.has(t)&&(Et(this,Pl).removeItem(t),Et(this,zl).keys.delete(t))}clear(){return kt(this,void 0,void 0,(function*(){return Promise.resolve(this.clearSync())}))}clearSync(){Et(this,zl).keys.forEach((t=>{Et(this,Ml)&&t.indexOf(Et(this,Ml))<0||(Et(this,Pl).removeItem(t),Et(this,zl).keys.delete(t))}))}}Pl=new WeakMap,Ml=new WeakMap,zl=new WeakMap;class sf extends kl{constructor(t){super(),Ul.set(this,void 0),Dl.set(this,void 0),St(this,Dl,{keys:new Set,currentSize:0,limitSize:ul.STORAGE_LIMIT}),St(this,Ul,t)}get(t){return kt(this,void 0,void 0,(function*(){return yield this.callNative(Y,{mpds_action:"mpds.get",mpds_data:{keys:t},appId:Et(this,Ul)},{isMultiCallback:!1}).then((t=>{let e=new Map;return t&&t.mpds_data&&t.mpds_data.map&&(e=new Map(Object.entries(t.mpds_data.map))),e}))}))}set(t){return kt(this,void 0,void 0,(function*(){return{errorKeys:yield this.callNative(Y,{mpds_action:"mpds.set",mpds_data:{map:t},appId:Et(this,Ul)},{isMultiCallback:!1}).then((t=>{let e=[];return t&&t.mpds_data&&t.mpds_data.error_keys&&(e=t.mpds_data.error_keys),e}))}}))}getInfo(){return kt(this,void 0,void 0,(function*(){const t=yield this.callNative(Y,{mpds_action:"mpds.get.size",mpds_data:{},appId:Et(this,Ul)},{isMultiCallback:!1}).then((t=>{let e=0;return t&&t.mpds_data&&t.mpds_data.size&&(e=t.mpds_data.size),e}));return{currentSize:d.isNumber(t)?Number(t/1024):0,limitSize:Number(ul.STORAGE_LIMIT/1024)}}))}remove(t){return kt(this,void 0,void 0,(function*(){return{errorKeys:yield this.callNative(Y,{mpds_action:"mpds.remove.key",mpds_data:{keys:t},appId:Et(this,Ul)},{isMultiCallback:!1}).then((t=>{let e=[];return t&&t.mpds_data&&t.mpds_data.error_keys&&(e=t.mpds_data.error_keys),e}))}}))}clear(){return kt(this,void 0,void 0,(function*(){yield this.callNative(Y,{mpds_action:"mpds.clear.appData",mpds_data:{},appId:Et(this,Ul)})}))}}Ul=new WeakMap,Dl=new WeakMap;class uf{getDataFromStorage(t){return kt(this,void 0,void 0,(function*(){const e=this.getInstance(),n=yield e.get(t),r={};return n.forEach(((t,e)=>{r[e]=mt(t)})),r}))}putDataToStorage(t){return kt(this,void 0,void 0,(function*(){const e=this.getInstance(),n={};return Object.entries(t).forEach((([t,e])=>{d.isUndefined(e)||d.isNull(e)||(n[t]=yt(e))})),yield e.set(n)}))}removeDataFromStorage(t){return kt(this,void 0,void 0,(function*(){const e=this.getInstance();return yield e.remove(t)}))}clearStorage(){return kt(this,void 0,void 0,(function*(){const t=this.getInstance();yield t.clear()}))}getStorageInfo(){return kt(this,void 0,void 0,(function*(){const t=this.getInstance();return yield t.getInfo()}))}}class cf extends uf{constructor(t){super(),Fl.set(this,void 0),St(this,Fl,t)}getInstance(){return new af(Et(this,Fl))}}Fl=new WeakMap;class lf extends uf{constructor(t){super(),ql.set(this,void 0),St(this,ql,t)}getInstance(){return new sf(Et(this,ql))}}ql=new WeakMap;class ff{static setStorage(t){return kt(this,void 0,void 0,(function*(){let e=new cf(this.getAppId());return _t()&&(e=new lf(this.getAppId())),yield e.putDataToStorage(t.data)}))}static getStorage(t){return kt(this,void 0,void 0,(function*(){let e=new cf(this.getAppId());_t()&&(e=new lf(this.getAppId()));return yield e.getDataFromStorage(t.keys)}))}static getStorageInfo(t){return kt(this,void 0,void 0,(function*(){let t=new cf(this.getAppId());return _t()&&(t=new lf(this.getAppId())),yield t.getStorageInfo()}))}static removeStorage(t){return kt(this,void 0,void 0,(function*(){let e=new cf(this.getAppId());return _t()&&(e=new lf(this.getAppId())),yield e.removeDataFromStorage(t.keys)}))}static clearStorage(t={}){return kt(this,void 0,void 0,(function*(){let t=new cf(this.getAppId());_t()&&(t=new lf(this.getAppId())),yield t.clearStorage()}))}}class hf{static getUserInfo(t){return kt(this,void 0,void 0,(function*(){const t=yield this.getAccessToken();return{userInfo:yield sl.get(ul.APIS.GET_USER_INFO,{params:{fields:"id,birthday,name,gender,picture",access_token:t}}).then((t=>{const e=t.data;return{id:e.id,name:e.name,birthday:e.birthday,gender:e.gender,avatar:e.picture&&e.picture.data&&e.picture.data.url}}))}}))}}class df{static closeApp(t){return kt(this,void 0,void 0,(function*(){yield this.callNative(O,{})}))}static openMiniApp(t){return kt(this,void 0,void 0,(function*(){const e=null==t?void 0:t.appId,n=(null==t?void 0:t.params)||{},r=Object.entries(n).map((function([t,e]){return[t,e].join("=")})).join("&");yield this.callNative(H,{mpUrl:`${ul.MINI_APP_INTERNAL_LINK}/${e}/${r.length>0?"?"+r:""}`,mpInfo:{appId:e}})}))}static openWebview(t){return kt(this,void 0,void 0,(function*(){yield this.callNative(y,{url:t.url})}))}}class pf{static getLocation(t){return new Promise(((t,e)=>{this.callNative(j,{silent_request:!1,permission_description:""},{isMultiCallback:!0,callback:(n,r)=>{if(r&&e(r),0===n.error_code){const e=n.data,r={latitude:e.latitude,longitude:e.longitude,timestamp:e.timestamp,provider:e.provider};t(r)}}})}))}static sendLocation(t){return kt(this,void 0,void 0,(function*(){yield this.callNative(L,{title:t.title,touserid:t.toUserId,zapp:this.getZAppId()})}))}}class vf{static requestCameraPermission(t){return new Promise(((t,e)=>{this.callNative(S,{},{callback:(n,r)=>{-2===n.error_code||n.error_code>=0?t({userAllow:-2!==n.error_code,message:n.error_message}):e(r)}})}))}static saveImageToPhotosAlbum(t){return kt(this,void 0,void 0,(function*(){let e={};return e=d.isEmpty(t.imageBase64Data)?Object.assign(Object.assign({},e),{imageUrl:t.imageUrl}):Object.assign(Object.assign({},e),{imageBase64Data:t.imageBase64Data}),yield this.callNative(W,Object.assign({},e))}))}}class gf{static viewOAQr(t){return kt(this,void 0,void 0,(function*(){yield this.callNative(D,{dpn:t.displayName,uid:t.id,zapp:this.getZAppId()},{haveTimeout:!1})}))}static openProfile(e){return kt(this,void 0,void 0,(function*(){return yield this.callNative(_,{uId:e.id,type:t.ProfileType[e.type],zapp:this.getZAppId()})}))}static openChat(e){return kt(this,void 0,void 0,(function*(){return yield this.callNative(m,{uId:e.id,type:t.ChatType[e.type],zapp:this.getZAppId()})}))}static openPostFeed(e){return kt(this,void 0,void 0,(function*(){let n={};switch(e.type){case"image":n={photoUrl:e.data.imageUrl};break;case"link":n={link:e.data.link,title:e.data.title,thumb:e.data.thumb,description:e.data.description};break;case"profile":n={avt:e.data.avatar,uid:e.data.id,dpn:e.data.displayName}}return yield this.callNative(w,Object.assign(Object.assign({type:t.PostFeedType[e.type]},n),{zapp:this.getZAppId()})).then((t=>({status:t.status,shareType:t.share_type,numberOfUser:t.uid_to_size})))}))}static followOA(t){return kt(this,void 0,void 0,(function*(){yield this.callNative(b,{uid:t.id,showDialogConfirm:!0,zapp:this.getZAppId()},{haveTimeout:!1})}))}static unfollowOA(t){return kt(this,void 0,void 0,(function*(){yield this.callNative(k,{uid:t.id,zapp:this.getZAppId()},{haveTimeout:!1})}))}static openShareSheet(e){return kt(this,void 0,void 0,(function*(){let n={};switch(e.type){case"image":n={photoUrl:e.data.imageUrl};break;case"gif":n={photoUrl:e.data.imageUrl,gifUrl:e.data.gifUrl,width:e.data.width,height:e.data.height};break;case"video":n={videoThumb:e.data.videoThumb,videoUrl:e.data.videoUrl,width:e.data.width,height:e.data.height};break;case"link":n={link:e.data.link,chatOnly:e.data.chatOnly?1:0};break;case"oa":n={uid:e.data.id}}return yield this.callNative(E,Object.assign(Object.assign({type:t.ShareSheetType[e.type]},n),{zapp:this.getZAppId()}),{haveTimeout:!1}).then((t=>({status:t.status,shareType:t.share_type,numberOfUser:t.uid_to_size})))}))}static createShortcut(t){return kt(this,void 0,void 0,(function*(){yield this.callNative(R,{url:`${ul.MINI_APP_LINK}/${this.getAppId()}/`,title:document.title,iconUrl:`https:${ct("og:image:url")}`})}))}}class _f{static getRouteParams(){let t={};const e=window.location.href;try{let n=new URL(e).searchParams.toString();n&&(t=cl.getParamsAsObject(n))}catch(t){throw new Error("Url không hợp lệ")}return t}static redirectToPreviousMiniApp(t){return kt(this,void 0,void 0,(function*(){return yield this.callNative(G,{data:yt(t.data)})}))}static onCallbackData(t){return kt(this,void 0,void 0,(function*(){yield this.listenerEventNative("h5.event.webview.result","",(e=>{const n={data:mt(e)};t(n)}))}))}}class yf extends kl{constructor(){super(),Zl.set(this,window.zAppID),Wl.set(this,window.APP_ID),Hl.set(this,window.APP_CONFIG||{}),$l.set(this,void 0),Kl.set(this,void 0),Yl.set(this,{timer:{getToken:0}}),Gl.set(this,(()=>{const t=Et(this,Hl).app||null;if(t){const e=t.title,n=t.headerColor,r=t.textColor,i=t.statusBarColor,o=t.leftButton;if(d.isString(e)&&this.setNavigationBarTitle({title:e}),d.isString(n)){const t={color:n};!d.isString(r)||"black"!==r&&"white"!==r||(t.textColor=r),d.isString(i)&&(t.statusBarColor=i),this.setNavigationBarColor(t)}d.isString(o)&&this.setNavigationBarLeftButton({type:o})}})),Jl.set(this,(()=>{try{Et(this,Gl).call(this)}catch(t){console.error(t)}})),Vl.set(this,(()=>new Promise(((t,e)=>{this.callNative("action.jump.login",{}).then((e=>{const n=e&&e.cookiesOAuthLogins||[],r=n.find((t=>t.name===ul.COOKIE_NAME.JS_TOKEN));r&&(this.setJSToken(r.value),window.ZJSBridge.setJSToken&&window.ZJSBridge.setJSToken(r.value)),t(n)})).catch((t=>{e(t)}))})))),Xl.set(this,Il.setNavigationBarRightButton),this.getVersion=Ol.getVersion,this.getSystemInfo=Ol.getSystemInfo,this.setNavigationBarTitle=Il.setNavigationBarTitle,this.setNavigationBarColor=Il.setNavigationBarColor,this.setNavigationBarLeftButton=Il.setNavigationBarLeftButton,this.setBackgroundColor=Nl.setBackgroundColor,this.setDeviceOrientation=Bl.setDeviceOrientation,this.setStorage=ff.setStorage,this.getStorage=ff.getStorage,this.getStorageInfo=ff.getStorageInfo,this.removeStorage=ff.removeStorage,this.clearStorage=ff.clearStorage,this.getUserInfo=hf.getUserInfo,this.getNetworkType=Bl.getNetworkType,this.onNetworkStatusChange=Bl.onNetworkStatusChange,this.startBeaconDiscovery=Bl.startBeaconDiscovery,this.stopBeaconDiscovery=Bl.stopBeaconDiscovery,this.getBeacons=Bl.getBeacons,this.closeApp=df.closeApp,this.getLocation=pf.getLocation,this.onBackButtonClick=Il.onBackButtonClick,this.stopBluetoothDevicesDiscovery=Bl.stopBluetoothDevicesDiscovery,this.startBluetoothDevicesDiscovery=Bl.stopBluetoothDevicesDiscovery,this.openBluetoothAdapter=Bl.openBluetoothAdapter,this.onBluetoothDeviceFound=Bl.onBluetoothDeviceFound,this.onBluetoothAdapterStateChange=Bl.onBluetoothAdapterStateChange,this.getConnectedBluetoothDevices=Bl.getConnectedBluetoothDevices,this.getBluetoothDevices=Bl.getBluetoothDevices,this.getBluetoothAdapterState=Bl.getBluetoothAdapterState,this.closeBluetoothAdapter=Bl.closeBluetoothAdapter,this.scanQRCode=Bl.scanQRCode,this.openProfile=gf.openProfile,this.openChat=gf.openChat,this.openPostFeed=gf.openPostFeed,this.followOA=gf.followOA,this.unFollowOA=gf.unfollowOA,this.openShareSheet=gf.openShareSheet,this.requestCameraPermission=vf.requestCameraPermission,this.createShortcut=gf.createShortcut,this.openBioAuthentication=Bl.openBioAuthentication,this.checkStateBioAuthentication=Bl.checkStateBioAuthentication,this.sendLocation=pf.sendLocation,this.showToast=Bl.showToast,this.hideKeyboard=Bl.hideKeyboard,this.openPhone=Bl.openPhone,this.openSMS=Bl.openSMS,this.viewOAQr=gf.viewOAQr,this.keepScreen=Bl.keepScreen,this.saveImageToPhotosAlbum=vf.saveImageToPhotosAlbum,this.openMiniApp=df.openMiniApp,this.vibrate=Bl.vibrate,this.openWebview=df.openWebview,this.getRouteParams=_f.getRouteParams,this.getAppInfo=Ol.getAppInfo,this.redirectToPreviousMiniApp=_f.redirectToPreviousMiniApp,this.onCallbackData=_f.onCallbackData,St(this,$l,null),St(this,Kl,null),this.isShowNavBar=!0,this.isShowHomeButton=!0}static getInstance(){return yf.instance||(yf.instance=new yf),yf.instance}getAppId(){return Et(this,Wl)}getZAppId(){return Et(this,Zl)}login(t){return kt(this,void 0,void 0,(function*(){const t=(yield Et(this,Vl).call(this)).find((t=>t.name===ul.COOKIE_NAME.ZOAUTH));if(!d.isUndefined(t)&&!d.isNull(t)&&d.isString(t.value)){St(this,$l,t.value);const e=()=>kt(this,void 0,void 0,(function*(){return(d.isUndefined(Et(this,$l))||d.isNull(Et(this,$l)))&&clearInterval(Et(this,Yl).timer.getToken),yield sl.get("https://oauth.zaloapp.com/v3/access_token",{params:{app_id:Et(this,Zl),redirect_uri:`https://h5.zdn.vn/zapps/${Et(this,Wl)}/`,code:Et(this,$l),isSDK:!0}}).then((t=>{let n=t.data;if(n.access_token){St(this,Kl,n.access_token);const t=1e3*parseInt(n.expires_in);return Et(this,Yl).timer.getToken||(Et(this,Yl).timer.getToken=window.setInterval(e,t)),this.setZAccSession(Et(this,Kl)||""),window.ZJSBridge.setZAccSession&&window.ZJSBridge.setZAccSession(Et(this,Kl)||""),Et(this,Kl)}return null}))}));return clearInterval(Et(this,Yl).timer.getToken),yield e(),"Login Success!"}throw El.loginFailed()}))}getAccessToken(t){return kt(this,void 0,void 0,(function*(){if(Et(this,Kl))return Et(this,Kl);throw El.loginRequired()}))}}Zl=new WeakMap,Wl=new WeakMap,Hl=new WeakMap,$l=new WeakMap,Kl=new WeakMap,Yl=new WeakMap,Gl=new WeakMap,Jl=new WeakMap,Vl=new WeakMap,Xl=new WeakMap;class mf{constructor(){Ql.set(this,window.zAppID),tf.set(this,window.APP_CONFIG||{}),ef.set(this,"DEFAULT ZOAUTH"),nf.set(this,"DEFAULT ACCESS TOKEN"),rf.set(this,{timer:{getToken:0}}),this.getAppId=()=>Et(this,Ql),this.login=()=>Promise.resolve(Et(this,ef)),this.getAccessToken=()=>Promise.resolve(Et(this,nf)),this.getVersion=Ol.getVersion,this.getSystemInfo=Ol.getSystemInfo,this.setNavigationBarTitle=()=>Promise.resolve(),this.setNavigationBarColor=()=>Promise.resolve(),this.setBackgroundColor=()=>Promise.resolve(),this.setNavigationBarLeftButton=()=>Promise.resolve(),this.setDeviceOrientation=()=>Promise.resolve(),this.setStorage=t=>kt(this,void 0,void 0,(function*(){const e=new cf(this.getAppId());return yield e.putDataToStorage(t.data),{errorKeys:[]}})),this.getStorage=t=>kt(this,void 0,void 0,(function*(){const e=new cf(this.getAppId());return yield e.getDataFromStorage(t.keys)})),this.getStorageInfo=t=>kt(this,void 0,void 0,(function*(){const t=new cf(this.getAppId());return yield t.getStorageInfo()})),this.removeStorage=t=>kt(this,void 0,void 0,(function*(){const e=new cf(this.getAppId());return yield e.removeDataFromStorage(t.keys)})),this.clearStorage=t=>kt(this,void 0,void 0,(function*(){const t=new cf(this.getAppId());return yield t.clearStorage()})),this.getUserInfo=()=>Promise.resolve({userInfo:{id:"3368637342326461234",name:"User Name",birthday:"01/01/1990",gender:"male",avatar:"https://h5.zdn.vn/static/images/avatar.png"}}),this.getNetworkType=()=>{let e;switch((navigator.connection||navigator.mozConnection||navigator.webkitConnection).effectiveType){case"none":e=t.NetworkType.none;break;case"4g":e=t.NetworkType.wifi;break;case"3g":case"2g":e=t.NetworkType.cellular;break;default:e=t.NetworkType.unknown}const n={networkType:e};return Promise.resolve(n)},this.onNetworkStatusChange=e=>{const n=navigator.connection||navigator.mozConnection||navigator.webkitConnection,r=n.effectiveType;return n.addEventListener("change",(function(){let n;switch(r){case"none":n=t.NetworkType.none;break;case"4g":n=t.NetworkType.wifi;break;case"3g":case"2g":n=t.NetworkType.cellular;break;default:n=t.NetworkType.unknown}e({isConnected:!0,networkType:n})})),Promise.resolve()},this.startBeaconDiscovery=t=>Promise.resolve(!0),this.stopBeaconDiscovery=t=>Promise.resolve(!0),this.getBeacons=t=>Promise.resolve({beacons:[]}),this.closeApp=()=>Promise.resolve(),this.getLocation=()=>Promise.resolve({longitude:"105.788026",latitude:"21.0258773",timestamp:(new Date).getTime().toString(),provider:"fused"}),this.onBackButtonClick=()=>Promise.resolve(),this.stopBluetoothDevicesDiscovery=()=>Promise.resolve(),this.startBluetoothDevicesDiscovery=()=>Promise.resolve(),this.openBluetoothAdapter=()=>Promise.resolve(),this.onBluetoothDeviceFound=()=>Promise.resolve(),this.onBluetoothAdapterStateChange=()=>Promise.resolve(),this.getConnectedBluetoothDevices=()=>Promise.resolve(),this.getBluetoothDevices=()=>Promise.resolve(),this.getBluetoothAdapterState=()=>Promise.resolve(),this.closeBluetoothAdapter=()=>Promise.resolve(),this.scanQRCode=()=>Promise.resolve({content:"132"}),this.openProfile=()=>Promise.resolve(),this.openChat=()=>Promise.resolve(),this.openPostFeed=()=>Promise.resolve({status:1,shareType:0,numberOfUser:0}),this.followOA=()=>Promise.resolve(),this.unFollowOA=()=>Promise.resolve(),this.openShareSheet=()=>Promise.resolve({status:2,shareType:0,numberOfUser:0}),this.requestCameraPermission=()=>Promise.resolve({userAllow:!0,message:"Success"}),this.createShortcut=()=>Promise.resolve(),this.openBioAuthentication=()=>Promise.resolve({code:0,message:"OK",data:{domain:"",code:0,message:"",payToken:""}}),this.checkStateBioAuthentication=()=>Promise.resolve({bioState:""}),this.sendLocation=()=>Promise.resolve(),this.showToast=()=>Promise.resolve(),this.hideKeyboard=()=>Promise.resolve(),this.openPhone=()=>Promise.resolve(),this.openSMS=()=>Promise.resolve(),this.viewOAQr=()=>Promise.resolve(),this.keepScreen=()=>Promise.resolve(),this.saveImageToPhotosAlbum=()=>Promise.resolve(),this.openMiniApp=t=>Promise.resolve(),this.vibrate=()=>Promise.resolve(),this.openWebview=t=>(location.replace(t.url),Promise.resolve()),this.getRouteParams=_f.getRouteParams,this.getAppInfo=()=>Promise.resolve({description:"",name:"",version:"",appUrl:"",qrCodeUrl:""}),this.redirectToPreviousMiniApp=t=>Promise.resolve(),this.onCallbackData=t=>(t({data:""}),Promise.resolve())}}Ql=new WeakMap,tf=new WeakMap,ef=new WeakMap,nf=new WeakMap,rf=new WeakMap,function(t){!function(n){var r="object"==typeof e?e:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),i=o(t);function o(t,e){return function(n,r){"function"!=typeof t[n]&&Object.defineProperty(t,n,{configurable:!0,writable:!0,value:r}),e&&e(n,r)}}void 0===r.Reflect?r.Reflect=t:i=o(r.Reflect,i),function(t){var e=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,a={__proto__:[]}instanceof Array,s=!o&&!a,u={create:o?function(){return rt(Object.create(null))}:a?function(){return rt({__proto__:null})}:function(){return rt({})},has:s?function(t,n){return e.call(t,n)}:function(t,e){return e in t},get:s?function(t,n){return e.call(t,n)?t[n]:void 0}:function(t,e){return t[e]}},c=Object.getPrototypeOf(Function),l="object"==typeof fe&&fe.env&&"true"===fe.env.REFLECT_METADATA_USE_MAP_POLYFILL,f=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?tt():Map,h=l||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?et():Set,d=new(l||"function"!=typeof WeakMap?nt():WeakMap);function p(t,e,n,r){if(B(n)){if(!W(t))throw new TypeError;if(!$(e))throw new TypeError;return S(t,e)}if(!W(t))throw new TypeError;if(!z(e))throw new TypeError;if(!z(r)&&!B(r)&&!P(r))throw new TypeError;return P(r)&&(r=void 0),A(t,e,n=Z(n),r)}function v(t,e){function n(n,r){if(!z(n))throw new TypeError;if(!B(r)&&!K(r))throw new TypeError;I(t,e,n,r)}return n}function g(t,e,n,r){if(!z(n))throw new TypeError;return B(r)||(r=Z(r)),I(t,e,n,r)}function _(t,e,n){if(!z(e))throw new TypeError;return B(n)||(n=Z(n)),T(t,e,n)}function y(t,e,n){if(!z(e))throw new TypeError;return B(n)||(n=Z(n)),R(t,e,n)}function m(t,e,n){if(!z(e))throw new TypeError;return B(n)||(n=Z(n)),x(t,e,n)}function w(t,e,n){if(!z(e))throw new TypeError;return B(n)||(n=Z(n)),O(t,e,n)}function b(t,e){if(!z(t))throw new TypeError;return B(e)||(e=Z(e)),N(t,e)}function k(t,e){if(!z(t))throw new TypeError;return B(e)||(e=Z(e)),j(t,e)}function E(t,e,n){if(!z(e))throw new TypeError;B(n)||(n=Z(n));var r=C(e,n,!1);if(B(r))return!1;if(!r.delete(t))return!1;if(r.size>0)return!0;var i=d.get(e);return i.delete(n),i.size>0||d.delete(e),!0}function S(t,e){for(var n=t.length-1;n>=0;--n){var r=(0,t[n])(e);if(!B(r)&&!P(r)){if(!$(r))throw new TypeError;e=r}}return e}function A(t,e,n,r){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,n,r);if(!B(o)&&!P(o)){if(!z(o))throw new TypeError;r=o}}return r}function C(t,e,n){var r=d.get(t);if(B(r)){if(!n)return;r=new f,d.set(t,r)}var i=r.get(e);if(B(i)){if(!n)return;i=new f,r.set(e,i)}return i}function T(t,e,n){if(R(t,e,n))return!0;var r=Q(e);return!P(r)&&T(t,r,n)}function R(t,e,n){var r=C(e,n,!1);return!B(r)&&F(r.has(t))}function x(t,e,n){if(R(t,e,n))return O(t,e,n);var r=Q(e);return P(r)?void 0:x(t,r,n)}function O(t,e,n){var r=C(e,n,!1);if(!B(r))return r.get(t)}function I(t,e,n,r){C(n,r,!0).set(t,e)}function N(t,e){var n=j(t,e),r=Q(t);if(null===r)return n;var i=N(r,e);if(i.length<=0)return n;if(n.length<=0)return i;for(var o=new h,a=[],s=0,u=n;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var l=0,f=i;l<f.length;l++){c=f[l];o.has(c)||(o.add(c),a.push(c))}return a}function j(t,e){var n=[],r=C(t,e,!1);if(B(r))return n;for(var i=G(r.keys()),o=0;;){var a=V(i);if(!a)return n.length=o,n;var s=J(a);try{n[o]=s}catch(t){try{X(i)}finally{throw t}}o++}}function L(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function B(t){return void 0===t}function P(t){return null===t}function M(t){return"symbol"==typeof t}function z(t){return"object"==typeof t?null!==t:"function"==typeof t}function U(t,e){switch(L(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var n=3===e?"string":5===e?"number":"default",i=Y(t,r);if(void 0!==i){var o=i.call(t,n);if(z(o))throw new TypeError;return o}return D(t,"default"===n?"number":n)}function D(t,e){if("string"===e){var n=t.toString;if(H(n))if(!z(i=n.call(t)))return i;if(H(r=t.valueOf))if(!z(i=r.call(t)))return i}else{var r;if(H(r=t.valueOf))if(!z(i=r.call(t)))return i;var i,o=t.toString;if(H(o))if(!z(i=o.call(t)))return i}throw new TypeError}function F(t){return!!t}function q(t){return""+t}function Z(t){var e=U(t,3);return M(e)?e:q(e)}function W(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function H(t){return"function"==typeof t}function $(t){return"function"==typeof t}function K(t){switch(L(t)){case 3:case 4:return!0;default:return!1}}function Y(t,e){var n=t[e];if(null!=n){if(!H(n))throw new TypeError;return n}}function G(t){var e=Y(t,i);if(!H(e))throw new TypeError;var n=e.call(t);if(!z(n))throw new TypeError;return n}function J(t){return t.value}function V(t){var e=t.next();return!e.done&&e}function X(t){var e=t.return;e&&e.call(t)}function Q(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===c)return e;if(e!==c)return e;var n=t.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return e;var i=r.constructor;return"function"!=typeof i||i===t?e:i}function tt(){var t={},e=[],n=function(){function t(t,e,n){this._index=0,this._keys=t,this._values=e,this._selector=n}return t.prototype["@@iterator"]=function(){return this},t.prototype[i]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var n=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var n=this._find(t,!0);return this._values[n]=e,this},e.prototype.delete=function(e){var n=this._find(e,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,e===this._cacheKey&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new n(this._keys,this._values,r)},e.prototype.values=function(){return new n(this._keys,this._values,o)},e.prototype.entries=function(){return new n(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(t,e){return this._cacheKey!==t&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=t)),this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function r(t,e){return t}function o(t,e){return e}function a(t,e){return[t,e]}}function et(){return function(){function t(){this._map=new f}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.values()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[i]=function(){return this.keys()},t}()}function nt(){var t=16,n=u.create(),r=i();return function(){function t(){this._key=i()}return t.prototype.has=function(t){var e=o(t,!1);return void 0!==e&&u.has(e,this._key)},t.prototype.get=function(t){var e=o(t,!1);return void 0!==e?u.get(e,this._key):void 0},t.prototype.set=function(t,e){return o(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=o(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=i()},t}();function i(){var t;do{t="@@WeakMap@@"+c()}while(u.has(n,t));return n[t]=!0,t}function o(t,n){if(!e.call(t,r)){if(!n)return;Object.defineProperty(t,r,{value:u.create()})}return t[r]}function a(t,e){for(var n=0;n<e;++n)t[n]=255*Math.random()|0;return t}function s(t){return"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(t)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(t)):a(new Uint8Array(t),t):a(new Array(t),t)}function c(){var e=s(t);e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var n="",r=0;r<t;++r){var i=e[r];4!==r&&6!==r&&8!==r||(n+="-"),i<16&&(n+="0"),n+=i.toString(16).toLowerCase()}return n}}function rt(t){return t.__=void 0,delete t.__,t}t("decorate",p),t("metadata",v),t("defineMetadata",g),t("hasMetadata",_),t("hasOwnMetadata",y),t("getMetadata",m),t("getOwnMetadata",w),t("getMetadataKeys",b),t("getOwnMetadataKeys",k),t("deleteMetadata",E)}(i)}()}(of||(of={}));const wf=Symbol("required"),bf=Symbol("checkType"),kf=(...t)=>(e,n,r)=>{let i=Reflect.getOwnMetadata(wf,e,n)||[];i.push({parameterIndex:r,fields:t}),Reflect.defineMetadata(wf,i,e,n)},Ef=(t,e,n)=>(r,i,o)=>{let a=Reflect.getOwnMetadata(bf,r,i)||[];a.push({parameterIndex:o,type:t,properties:e,key:n}),Reflect.defineMetadata(bf,a,r,i)};const Sf=(t,e,n)=>{const r=n.value,i=r.toString().match(/\(.*?\)/)[0].replace(/[()]/gi,"").replace(/\s/gi,"").split(",");return n.value=function(){const n=Reflect.getOwnMetadata(wf,t,e),o=Reflect.getOwnMetadata(bf,t,e);return o&&o.forEach((t=>{const{parameterIndex:e,type:n,properties:r,key:o}=t;let a=arguments[e],s=i[e];if(!d.isEmpty(o)){const t=null==o?void 0:o.split(".");Array.isArray(t)&&t.length>0&&t.forEach((t=>{a=a[t],s=`${s}.${t}`}))}const u=typeof a;if(!d.isUndefined(a)){if(!ht(a,n))throw El.wrongTypeParam(s,n,Array.isArray(a)?"array":null===a?"null":u);"object"===n&&Object.entries(r).forEach((([t,e])=>{const n=a[t];if(!d.isUndefined(n)){if(Array.isArray(e)&&!e.includes(n))throw El.wrongTypeParam(`${s}.${t}`,`${e}`.replace(/,/g,"|"),`'${n}'`);if(!Array.isArray(e)&&!ht(n,e))throw El.wrongTypeParam(`${s}.${t}`,e,Array.isArray(n)?"array":null===n?"null":typeof n)}}))}})),n&&n.forEach((t=>{const{parameterIndex:e,fields:n}=t,r=arguments[e],o=i[e],a=typeof r;if(!Array.isArray(r)&&"object"===a&&n.some((t=>d.isUndefined(r[t]))))throw El.missingParam(`${n} in ${o}`);if("object"!==a&&(e>=arguments.length||d.isUndefined(r)))throw El.missingParam(o)})),r.apply(this,arguments)},n};var Af;class Cf{constructor(){Af.set(this,void 0),St(this,Af,this.getInstance())}login(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).login(t)}))}getAccessToken(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).getAccessToken(t)}))}getVersion(){return Et(this,Af).getVersion()}getSystemInfo(){return Et(this,Af).getSystemInfo()}setNavigationBarTitle(t){return kt(this,void 0,void 0,(function*(){return Et(this,Af).setNavigationBarTitle(t)}))}setNavigationBarColor(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).setNavigationBarColor(t)}))}setBackgroundColor(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).setBackgroundColor(t)}))}setNavigationBarLeftButton(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).setNavigationBarLeftButton(t)}))}setDeviceOrientation(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).setDeviceOrientation(t)}))}setStorage(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).setStorage(t)}))}getStorage(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).getStorage(t)}))}getStorageInfo(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).getStorageInfo(t)}))}removeStorage(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).removeStorage(t)}))}clearStorage(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).clearStorage(t)}))}getUserInfo(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).getUserInfo(t)}))}getNetworkType(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).getNetworkType(t)}))}onNetworkStatusChange(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).onNetworkStatusChange(t)}))}startBeaconDiscovery(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).startBeaconDiscovery(t)}))}stopBeaconDiscovery(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).stopBeaconDiscovery(t)}))}getBeacons(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).getBeacons(t)}))}closeApp(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).closeApp(t)}))}getLocation(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).getLocation(t)}))}onBackButtonClick(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).onBackButtonClick(t)}))}stopBluetoothDevicesDiscovery(){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).stopBluetoothDevicesDiscovery()}))}startBluetoothDevicesDiscovery(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).startBluetoothDevicesDiscovery(t)}))}openBluetoothAdapter(){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).openBluetoothAdapter()}))}onBluetoothDeviceFound(){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).onBluetoothDeviceFound()}))}onBluetoothAdapterStateChange(){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).onBluetoothAdapterStateChange()}))}getConnectedBluetoothDevices(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).getConnectedBluetoothDevices(t)}))}getBluetoothDevices(){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).getBluetoothDevices()}))}getBluetoothAdapterState(){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).getBluetoothAdapterState()}))}closeBluetoothAdapter(){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).closeBluetoothAdapter()}))}scanQRCode(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).scanQRCode(t)}))}openProfile(t){return kt(this,void 0,void 0,(function*(){yield Et(this,Af).openProfile(t)}))}openChat(t){return kt(this,void 0,void 0,(function*(){yield Et(this,Af).openChat(t)}))}openPostFeed(t){return kt(this,void 0,void 0,(function*(){const e=t.type;if("image"===e&&dt(t.data.imageUrl))throw El.wrongTypeParam("object.data.imageUrl","valid url","invalid");if("link"===e&&(dt(t.data.link)||!at(t.data.link)))throw El.wrongTypeParam("object.data.link","valid url","invalid");if("profile"===e){if(dt(t.data.id))throw El.wrongTypeParam("object.data.id","valid id","empty");if(dt(t.data.avatar)||!at(t.data.avatar))throw El.wrongTypeParam("object.data.avatar","valid url","invalid");if(dt(t.data.displayName))throw El.wrongTypeParam("object.data.displayName","valid displayName","empty")}return yield Et(this,Af).openPostFeed(t)}))}followOA(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).followOA(t)}))}unfollowOA(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).unFollowOA(t)}))}openShareSheet(t){return kt(this,void 0,void 0,(function*(){const e=t.type;if("image"===e&&dt(t.data.imageUrl))throw El.wrongTypeParam("object.data.imageUrl","valid url","invalid");if("gif"===e&&(dt(t.data.gifUrl)||!at(t.data.gifUrl)))throw El.wrongTypeParam("object.data.gifUrl","valid url","invalid");if("video"===e){if(dt(t.data.videoThumb)||!at(t.data.videoThumb))throw El.wrongTypeParam("object.data.videoThumb","valid url","invalid");if(dt(t.data.videoUrl)||!at(t.data.videoUrl))throw El.wrongTypeParam("object.data.videoUrl","valid url","invalid")}else{if("link"===e&&(dt(t.data.link)||!at(t.data.link)))throw El.wrongTypeParam("object.data.link","valid url","invalid");if("oa"===e&&dt(t.data.id))throw El.wrongTypeParam("object.data.id","valid id","empty")}return yield Et(this,Af).openShareSheet(t)}))}requestCameraPermission(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).requestCameraPermission(t)}))}createShortcut(t){return kt(this,void 0,void 0,(function*(){yield Et(this,Af).createShortcut(t)}))}openBioAuthentication(t){var e;return kt(this,void 0,void 0,(function*(){return d.isUndefined(t.requireFingerprint)&&(t.requireFingerprint=!0),dt(null===(e=t.ui)||void 0===e?void 0:e.title)&&(t.ui=Object.assign(Object.assign({},t.ui),{title:"Xác thực"})),dt(t.ui.subTitle)&&(t.ui=Object.assign(Object.assign({},t.ui),{subTitle:"Sử dụng sinh trắc học của bạn để xác thực"})),dt(t.ui.negativeButtonText)&&(t.ui=Object.assign(Object.assign({},t.ui),{negativeButtonText:"Đóng"})),yield Et(this,Af).openBioAuthentication(t)}))}checkStateBioAuthentication(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).checkStateBioAuthentication(t)}))}sendLocation(t){return kt(this,void 0,void 0,(function*(){yield Et(this,Af).sendLocation(t)}))}showToast(t){return kt(this,void 0,void 0,(function*(){yield Et(this,Af).showToast(t)}))}hideKeyboard(t){return kt(this,void 0,void 0,(function*(){yield Et(this,Af).hideKeyboard(t)}))}openPhone(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).openPhone(t)}))}openSMS(t){return kt(this,void 0,void 0,(function*(){if(!/^\+?\d+$/.test(t.phoneNumber))throw El.wrongTypeParam("object.phoneNumber","valid phone","invalid");yield Et(this,Af).openSMS(t)}))}viewOAQr(t){return kt(this,void 0,void 0,(function*(){(d.isUndefined(t.displayName)||d.isNull(t.displayName))&&(t.displayName=""),yield Et(this,Af).viewOAQr(t)}))}keepScreen(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).keepScreen(t)}))}saveImageToPhotosAlbum(t){return kt(this,void 0,void 0,(function*(){if(dt(t.imageBase64Data)&&dt(t.imageUrl))throw El.wrongTypeParam("object.imageBase64Data | object.imageUrl","valid data","invalid");if(!dt(t.imageUrl)&&!at(t.imageUrl))throw El.wrongTypeParam("object.imageUrl","valid url","invalid");return yield Et(this,Af).saveImageToPhotosAlbum(t)}))}openMiniApp(t){return kt(this,void 0,void 0,(function*(){if(!d.isEmpty(t.params)){const e=t.params||{};Object.keys(e).forEach((t=>{"object"==typeof e[t]&&(e[t]=JSON.stringify(e[t])),e[t]=""+encodeURIComponent(e[t])})),t.params=e}yield Et(this,Af).openMiniApp(t)}))}vibrate(t){return kt(this,void 0,void 0,(function*(){dt(t.type)&&(t.type="oneShot"),dt(t.milliseconds)&&(t.milliseconds=500),yield Et(this,Af).vibrate(t)}))}openWebview(t){return kt(this,void 0,void 0,(function*(){yield Et(this,Af).openWebview(t)}))}getRouteParams(){return Et(this,Af).getRouteParams()}getAppInfo(t){return Et(this,Af).getAppInfo()}redirectToPreviousMiniApp(t){return Et(this,Af).redirectToPreviousMiniApp(t)}onCallbackData(t){return kt(this,void 0,void 0,(function*(){return yield Et(this,Af).onCallbackData(t)}))}}Af=new WeakMap,wt([ml],Cf.prototype,"login",null),wt([ml],Cf.prototype,"getAccessToken",null),wt([wl],Cf.prototype,"getVersion",null),wt([wl],Cf.prototype,"getSystemInfo",null),wt([ml,Sf,bt(0,Ef("object",{title:"string"})),bt(0,kf("title"))],Cf.prototype,"setNavigationBarTitle",null),wt([ml,Sf,bt(0,Ef("object",{color:"string",textColor:["white","black"],statusBarColor:"string"})),bt(0,kf("color"))],Cf.prototype,"setNavigationBarColor",null),wt([ml,Sf,bt(0,Ef("object",{backgroundColor:"string",textColor:["white","black"]})),bt(0,kf("backgroundColor"))],Cf.prototype,"setBackgroundColor",null),wt([ml,Sf,bt(0,Ef("object",{type:["none","back","home","both"]})),bt(0,kf("type"))],Cf.prototype,"setNavigationBarLeftButton",null),wt([ml,Sf,bt(0,Ef("object",{rotate:["auto","portrait","landscape"]})),bt(0,kf("rotate"))],Cf.prototype,"setDeviceOrientation",null),wt([ml,Sf,bt(0,Ef("object",{data:"object"})),bt(0,kf("data"))],Cf.prototype,"setStorage",null),wt([ml,Sf,bt(0,Ef("object",{keys:"array<string>"})),bt(0,kf("keys"))],Cf.prototype,"getStorage",null),wt([ml],Cf.prototype,"getStorageInfo",null),wt([ml,Sf,bt(0,Ef("object",{keys:"array<string>"})),bt(0,kf("keys"))],Cf.prototype,"removeStorage",null),wt([ml],Cf.prototype,"clearStorage",null),wt([ml],Cf.prototype,"getUserInfo",null),wt([ml],Cf.prototype,"getNetworkType",null),wt([ml],Cf.prototype,"onNetworkStatusChange",null),wt([ml],Cf.prototype,"startBeaconDiscovery",null),wt([ml],Cf.prototype,"stopBeaconDiscovery",null),wt([ml],Cf.prototype,"getBeacons",null),wt([ml],Cf.prototype,"closeApp",null),wt([ml],Cf.prototype,"getLocation",null),wt([ml],Cf.prototype,"onBackButtonClick",null),wt([ml],Cf.prototype,"stopBluetoothDevicesDiscovery",null),wt([ml],Cf.prototype,"startBluetoothDevicesDiscovery",null),wt([ml],Cf.prototype,"openBluetoothAdapter",null),wt([ml],Cf.prototype,"onBluetoothDeviceFound",null),wt([ml],Cf.prototype,"onBluetoothAdapterStateChange",null),wt([ml],Cf.prototype,"getConnectedBluetoothDevices",null),wt([ml],Cf.prototype,"getBluetoothDevices",null),wt([ml],Cf.prototype,"getBluetoothAdapterState",null),wt([ml],Cf.prototype,"closeBluetoothAdapter",null),wt([ml],Cf.prototype,"scanQRCode",null),wt([ml,Sf,bt(0,Ef("object",{type:["user","oa","aliasOA"],id:"string"})),bt(0,kf("type","id"))],Cf.prototype,"openProfile",null),wt([ml,Sf,bt(0,Ef("object",{type:["user","oa"],id:"string"})),bt(0,kf("type","id"))],Cf.prototype,"openChat",null),wt([ml,Sf,bt(0,Ef("object",{type:["image","link","profile"],data:"object"})),bt(0,Ef("object",{imageUrl:"string",link:"string",title:"string",thumb:"string",description:"string",avatar:"string",id:"string",displayName:"string"},"data")),bt(0,kf("type","data"))],Cf.prototype,"openPostFeed",null),wt([ml,Sf,bt(0,Ef("object",{id:"string",showDialogConfirm:"boolean"})),bt(0,kf("id"))],Cf.prototype,"followOA",null),wt([ml,Sf,bt(0,Ef("object",{id:"string"})),bt(0,kf("id"))],Cf.prototype,"unfollowOA",null),wt([ml,Sf,bt(0,Ef("object",{type:["image","gif","video","link","oa"],data:"object"})),bt(0,Ef("object",{imageUrl:"string",gifUrl:"string",width:"number",height:"number",videoThumb:"string",videoUrl:"string",link:"string",chatOnly:"boolean",id:"string"},"data")),bt(0,kf("type","data"))],Cf.prototype,"openShareSheet",null),wt([ml],Cf.prototype,"requestCameraPermission",null),wt([ml],Cf.prototype,"createShortcut",null),wt([ml,Sf,bt(0,kf("secretData")),bt(0,Ef("object",{secretData:"string",ui:"object",requireFingerprint:"boolean"})),bt(0,Ef("object",{title:"string",subTitle:"string",negativeButtonText:"string"},"ui"))],Cf.prototype,"openBioAuthentication",null),wt([ml],Cf.prototype,"checkStateBioAuthentication",null),wt([ml,Sf,bt(0,kf("toUserId"))],Cf.prototype,"sendLocation",null),wt([ml,Sf,bt(0,kf("message"))],Cf.prototype,"showToast",null),wt([ml],Cf.prototype,"hideKeyboard",null),wt([ml,Sf,bt(0,kf("phoneNumber")),bt(0,Ef("object",{phoneNumber:"string"}))],Cf.prototype,"openPhone",null),wt([ml,Sf,bt(0,kf("content","phoneNumber")),bt(0,Ef("object",{content:"string",phoneNumber:"string"}))],Cf.prototype,"openSMS",null),wt([ml,Sf,bt(0,kf("id")),bt(0,Ef("object",{id:"string",displayName:"string"}))],Cf.prototype,"viewOAQr",null),wt([ml],Cf.prototype,"keepScreen",null),wt([ml,Sf,bt(0,Ef("object",{imageBase64Data:"string",imageUrl:"string",type:"string"}))],Cf.prototype,"saveImageToPhotosAlbum",null),wt([ml,Sf,bt(0,kf("appId")),bt(0,Ef("object",{appId:"string",params:"object"}))],Cf.prototype,"openMiniApp",null),wt([ml,Sf,bt(0,Ef("object",{type:["oneShot"],milliseconds:"number"}))],Cf.prototype,"vibrate",null),wt([ml,Sf,bt(0,kf("url")),bt(0,Ef("object",{url:"string"}))],Cf.prototype,"openWebview",null),wt([wl],Cf.prototype,"getRouteParams",null),wt([ml],Cf.prototype,"getAppInfo",null),wt([ml],Cf.prototype,"redirectToPreviousMiniApp",null),wt([ml],Cf.prototype,"onCallbackData",null);class Tf extends Cf{getInstance(){return yf.getInstance()}}class Rf extends Cf{getInstance(){return new mf}}const xf=ut();t.default=void 0,window.onJSCall=t=>function(e){vl.getInstance().onJSCall(t,e)},window.onMultiJSCall=t=>function(e){vl.getInstance().onMultiJSCall(t,e)},window.zaloJSV2={zalo_h5_event_handler:function(t,e,n){vl.getInstance().nativeEventHandler(t,e,n)}},xf.isZalo?t.default=new Tf:t.default=new Rf,window.ZaloMiniAppSDK=t.default,t.SDKCreator=Cf,t.default=t.default,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
18
|
+
var yi=2147483647,wi=/[^\x20-\x7E]/,bi=/[\x2E\u3002\uFF0E\uFF61]/g,ki={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ei=Math.floor,Si=String.fromCharCode;function Ai(t){throw new RangeError(ki[t])}function Ci(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function Ti(t,e,n){var r=0;for(t=n?Ei(t/700):t>>1,t+=Ei(t/e);t>455;r+=36)t=Ei(t/35);return Ei(r+36*t/(t+38))}function Ri(t){return function(t,e){var n=t.split("@"),r="";n.length>1&&(r=n[0]+"@",t=n[1]);var i=function(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}((t=t.replace(bi,".")).split("."),e).join(".");return r+i}(t,(function(t){return wi.test(t)?"xn--"+function(t){var e,n,r,i,o,a,s,u,c,l,f,h,d,p,v,g=[];for(h=(t=function(t){for(var e,n,r=[],i=0,o=t.length;i<o;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<o?56320==(64512&(n=t.charCodeAt(i++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--):r.push(e);return r}(t)).length,e=128,n=0,o=72,a=0;a<h;++a)(f=t[a])<128&&g.push(Si(f));for(r=i=g.length,i&&g.push("-");r<h;){for(s=yi,a=0;a<h;++a)(f=t[a])>=e&&f<s&&(s=f);for(s-e>Ei((yi-n)/(d=r+1))&&Ai("overflow"),n+=(s-e)*d,e=s,a=0;a<h;++a)if((f=t[a])<e&&++n>yi&&Ai("overflow"),f==e){for(u=n,c=36;!(u<(l=c<=o?1:c>=o+26?26:c-o));c+=36)v=u-l,p=36-l,g.push(Si(Ci(l+v%p,0))),u=Ei(v/p);g.push(Si(Ci(u,0))),o=Ti(n,d,r==i),n=0,++r}++n,++e}return g.join("")}(t):t}))}function xi(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Oi=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function Ii(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}}function Ni(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r<t.length;r++)n.push(e(t[r],r));return n}var ji=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e};function Li(t,e,n,r){e=e||"&",n=n||"=";var i={};if("string"!=typeof t||0===t.length)return i;var o=/\+/g;t=t.split(e);var a=1e3;r&&"number"==typeof r.maxKeys&&(a=r.maxKeys);var s=t.length;a>0&&s>a&&(s=a);for(var u=0;u<s;++u){var c,l,f,h,d=t[u].replace(o,"%20"),p=d.indexOf(n);p>=0?(c=d.substr(0,p),l=d.substr(p+1)):(c=d,l=""),f=decodeURIComponent(c),h=decodeURIComponent(l),xi(i,f)?Oi(i[f])?i[f].push(h):i[f]=[i[f],h]:i[f]=h}return i}var Bi={parse:Gi,resolve:Qi,resolveObject:to,format:Vi,Url:Pi};function Pi(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var Mi=/^([a-z0-9.+-]+:)/i,zi=/:[0-9]*$/,Ui=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Di=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Fi=["'"].concat(Di),qi=["%","/","?",";","#"].concat(Fi),Zi=["/","?","#"],Wi=/^[+a-z0-9A-Z_-]{0,63}$/,Hi=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,$i={javascript:!0,"javascript:":!0},Ki={javascript:!0,"javascript:":!0},Yi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Gi(t,e,n){if(t&&tr(t)&&t instanceof Pi)return t;var r=new Pi;return r.parse(t,e,n),r}function Ji(t,e,n,r){if(!Vn(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),o=-1!==i&&i<e.indexOf("#")?"?":"#",a=e.split(o);a[0]=a[0].replace(/\\/g,"/");var s=e=a.join(o);if(s=s.trim(),!r&&1===e.split("#").length){var u=Ui.exec(s);if(u)return t.path=s,t.href=s,t.pathname=u[1],u[2]?(t.search=u[2],t.query=n?Li(t.search.substr(1)):t.search.substr(1)):n&&(t.search="",t.query={}),t}var c,l,f,h,d=Mi.exec(s);if(d){var p=(d=d[0]).toLowerCase();t.protocol=p,s=s.substr(d.length)}if(r||d||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var v="//"===s.substr(0,2);!v||d&&Ki[d]||(s=s.substr(2),t.slashes=!0)}if(!Ki[d]&&(v||d&&!Yi[d])){var g,_,m=-1;for(c=0;c<Zi.length;c++)-1!==(l=s.indexOf(Zi[c]))&&(-1===m||l<m)&&(m=l);for(-1!==(_=-1===m?s.lastIndexOf("@"):s.lastIndexOf("@",m))&&(g=s.slice(0,_),s=s.slice(_+1),t.auth=decodeURIComponent(g)),m=-1,c=0;c<qi.length;c++)-1!==(l=s.indexOf(qi[c]))&&(-1===m||l<m)&&(m=l);-1===m&&(m=s.length),t.host=s.slice(0,m),s=s.slice(m),eo(t),t.hostname=t.hostname||"";var y="["===t.hostname[0]&&"]"===t.hostname[t.hostname.length-1];if(!y){var w=t.hostname.split(/\./);for(c=0,f=w.length;c<f;c++){var b=w[c];if(b&&!b.match(Wi)){for(var k="",E=0,S=b.length;E<S;E++)b.charCodeAt(E)>127?k+="x":k+=b[E];if(!k.match(Wi)){var A=w.slice(0,c),C=w.slice(c+1),T=b.match(Hi);T&&(A.push(T[1]),C.unshift(T[2])),C.length&&(s="/"+C.join(".")+s),t.hostname=A.join(".");break}}}}t.hostname.length>255?t.hostname="":t.hostname=t.hostname.toLowerCase(),y||(t.hostname=Ri(t.hostname)),h=t.port?":"+t.port:"";var R=t.hostname||"";t.host=R+h,t.href+=t.host,y&&(t.hostname=t.hostname.substr(1,t.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!$i[p])for(c=0,f=Fi.length;c<f;c++){var x=Fi[c];if(-1!==s.indexOf(x)){var O=encodeURIComponent(x);O===x&&(O=escape(x)),s=s.split(x).join(O)}}var I=s.indexOf("#");-1!==I&&(t.hash=s.substr(I),s=s.slice(0,I));var N=s.indexOf("?");if(-1!==N?(t.search=s.substr(N),t.query=s.substr(N+1),n&&(t.query=Li(t.query)),s=s.slice(0,N)):n&&(t.search="",t.query={}),s&&(t.pathname=s),Yi[p]&&t.hostname&&!t.pathname&&(t.pathname="/"),t.pathname||t.search){h=t.pathname||"";var j=t.search||"";t.path=h+j}return t.href=Xi(t),t}function Vi(t){return Vn(t)&&(t=Ji({},t)),Xi(t)}function Xi(t){var e=t.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var n=t.protocol||"",r=t.pathname||"",i=t.hash||"",o=!1,a="";t.host?o=e+t.host:t.hostname&&(o=e+(-1===t.hostname.indexOf(":")?t.hostname:"["+this.hostname+"]"),t.port&&(o+=":"+t.port)),t.query&&tr(t.query)&&Object.keys(t.query).length&&(a=function(t,e,n,r){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Ni(ji(t),(function(r){var i=encodeURIComponent(Ii(r))+n;return Oi(t[r])?Ni(t[r],(function(t){return i+encodeURIComponent(Ii(t))})).join(e):i+encodeURIComponent(Ii(t[r]))})).join(e):r?encodeURIComponent(Ii(r))+n+encodeURIComponent(Ii(t)):""}(t.query));var s=t.search||a&&"?"+a||"";return n&&":"!==n.substr(-1)&&(n+=":"),t.slashes||(!n||Yi[n])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),i&&"#"!==i.charAt(0)&&(i="#"+i),s&&"?"!==s.charAt(0)&&(s="?"+s),n+o+(r=r.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(s=s.replace("#","%23"))+i}function Qi(t,e){return Gi(t,!1,!0).resolve(e)}function to(t,e){return t?Gi(t,!1,!0).resolveObject(e):e}function eo(t){var e=t.host,n=zi.exec(e);n&&(":"!==(n=n[0])&&(t.port=n.substr(1)),e=e.substr(0,e.length-n.length)),e&&(t.hostname=e)}Pi.prototype.parse=function(t,e,n){return Ji(this,t,e,n)},Pi.prototype.format=function(){return Xi(this)},Pi.prototype.resolve=function(t){return this.resolveObject(Gi(t,!1,!0)).format()},Pi.prototype.resolveObject=function(t){if(Vn(t)){var e=new Pi;e.parse(t,!1,!0),t=e}for(var n,r=new Pi,i=Object.keys(this),o=0;o<i.length;o++){var a=i[o];r[a]=this[a]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var s=Object.keys(t),u=0;u<s.length;u++){var c=s[u];"protocol"!==c&&(r[c]=t[c])}return Yi[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!Yi[t.protocol]){for(var l=Object.keys(t),f=0;f<l.length;f++){var h=l[f];r[h]=t[h]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||Ki[t.protocol])r.pathname=t.pathname;else{for(n=(t.pathname||"").split("/");n.length&&!(t.host=n.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==n[0]&&n.unshift(""),n.length<2&&n.unshift(""),r.pathname=n.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var d=r.pathname||"",p=r.search||"";r.path=d+p}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var v,g=r.pathname&&"/"===r.pathname.charAt(0),_=t.host||t.pathname&&"/"===t.pathname.charAt(0),m=_||g||r.host&&t.pathname,y=m,w=r.pathname&&r.pathname.split("/")||[],b=r.protocol&&!Yi[r.protocol];if(n=t.pathname&&t.pathname.split("/")||[],b&&(r.hostname="",r.port=null,r.host&&(""===w[0]?w[0]=r.host:w.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===n[0]?n[0]=t.host:n.unshift(t.host)),t.host=null),m=m&&(""===n[0]||""===w[0])),_)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,w=n;else if(n.length)w||(w=[]),w.pop(),w=w.concat(n),r.search=t.search,r.query=t.query;else if(!Gn(t.search))return b&&(r.hostname=r.host=w.shift(),(v=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=v.shift(),r.host=r.hostname=v.shift())),r.search=t.search,r.query=t.query,Yn(r.pathname)&&Yn(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!w.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=w.slice(-1)[0],E=(r.host||t.host||w.length>1)&&("."===k||".."===k)||""===k,S=0,A=w.length;A>=0;A--)"."===(k=w[A])?w.splice(A,1):".."===k?(w.splice(A,1),S++):S&&(w.splice(A,1),S--);if(!m&&!y)for(;S--;S)w.unshift("..");!m||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),E&&"/"!==w.join("/").substr(-1)&&w.push("");var C=""===w[0]||w[0]&&"/"===w[0].charAt(0);return b&&(r.hostname=r.host=C?"":w.length?w.shift():"",(v=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=v.shift(),r.host=r.hostname=v.shift())),(m=m||r.host&&w.length)&&!C&&w.unshift(""),w.length?r.pathname=w.join("/"):(r.pathname=null,r.path=null),Yn(r.pathname)&&Yn(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},Pi.prototype.parseHost=function(){return eo(this)};var no=Object.freeze({__proto__:null,parse:Gi,resolve:Qi,resolveObject:to,format:Vi,default:Bi,Url:Pi});function ro(t,e){"string"==typeof t&&(t=Gi(t));var n=-1===Ft.location.protocol.search(/^https?:$/)?"http:":"",r=t.protocol||n,i=t.hostname||t.host,o=t.port,a=t.path||"/";i&&-1!==i.indexOf(":")&&(i="["+i+"]"),t.url=(i?r+"//"+i:"")+(o?":"+o:"")+a,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var s=new _i(t);return e&&s.on("response",e),s}function io(t,e){var n=ro(t,e);return n.end(),n}function oo(){}oo.defaultMaxSockets=4;var ao=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"],so={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Time-out",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Large",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Time-out",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},uo={request:ro,get:io,Agent:oo,METHODS:ao,STATUS_CODES:so},co=Object.freeze({__proto__:null,request:ro,get:io,Agent:oo,METHODS:ao,STATUS_CODES:so,default:uo});function lo(t,e){if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0}var fo,ho=Object.prototype.hasOwnProperty,po=Object.keys||function(t){var e=[];for(var n in t)ho.call(t,n)&&e.push(n);return e},vo=Array.prototype.slice;function go(){return void 0!==fo?fo:fo="foo"===function(){}.name}function _o(t){return Object.prototype.toString.call(t)}function mo(t){return!yn(t)&&("function"==typeof Ft.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}function yo(t,e){t||Ao(t,!0,e,"==",Co)}var wo=/\s*function\s+([^\(\s]*)\s*/;function bo(t){if(rr(t)){if(go())return t.name;var e=t.toString().match(wo);return e&&e[1]}}function ko(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return Eo(So(t.actual),128)+" "+t.operator+" "+Eo(So(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||Ao;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var n=new Error;if(n.stack){var r=n.stack,i=bo(e),o=r.indexOf("\n"+i);if(o>=0){var a=r.indexOf("\n",o+1);r=r.substring(a+1)}this.stack=r}}}function Eo(t,e){return"string"==typeof t?t.length<e?t:t.slice(0,e):t}function So(t){if(go()||!rr(t))return Dn(t);var e=bo(t);return"[Function"+(e?": "+e:"")+"]"}function Ao(t,e,n,r,i){throw new ko({message:n,actual:t,expected:e,operator:r,stackStartFunction:i})}function Co(t,e){t||Ao(t,!0,e,"==",Co)}function To(t,e,n){t!=e&&Ao(t,e,n,"==",To)}function Ro(t,e,n){t==e&&Ao(t,e,n,"!=",Ro)}function xo(t,e,n){Io(t,e,!1)||Ao(t,e,n,"deepEqual",xo)}function Oo(t,e,n){Io(t,e,!0)||Ao(t,e,n,"deepStrictEqual",Oo)}function Io(t,e,n,r){if(t===e)return!0;if(yn(t)&&yn(e))return 0===lo(t,e);if(er(t)&&er(e))return t.getTime()===e.getTime();if(Qn(t)&&Qn(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"==typeof t||null!==e&&"object"==typeof e){if(mo(t)&&mo(e)&&_o(t)===_o(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===lo(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(yn(t)!==yn(e))return!1;var i=(r=r||{actual:[],expected:[]}).actual.indexOf(t);return-1!==i&&i===r.expected.indexOf(e)||(r.actual.push(t),r.expected.push(e),function(t,e,n,r){if(null==t||null==e)return!1;if(ir(t)||ir(e))return t===e;if(n&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=No(t),o=No(e);if(i&&!o||!i&&o)return!1;if(i)return Io(t=vo.call(t),e=vo.call(e),n);var a,s,u=po(t),c=po(e);if(u.length!==c.length)return!1;for(u.sort(),c.sort(),s=u.length-1;s>=0;s--)if(u[s]!==c[s])return!1;for(s=u.length-1;s>=0;s--)if(!Io(t[a=u[s]],e[a],n,r))return!1;return!0}(t,e,n,r))}return n?t===e:t==e}function No(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function jo(t,e,n){Io(t,e,!1)&&Ao(t,e,n,"notDeepEqual",jo)}function Lo(t,e,n){Io(t,e,!0)&&Ao(t,e,n,"notDeepStrictEqual",Lo)}function Bo(t,e,n){t!==e&&Ao(t,e,n,"===",Bo)}function Po(t,e,n){t===e&&Ao(t,e,n,"!==",Po)}function Mo(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function zo(t,e,n,r){var i;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),t&&!i&&Ao(i,n,"Missing expected exception"+r);var o="string"==typeof r,a=!t&&i&&!n;if((!t&&nr(i)&&o&&Mo(i,n)||a)&&Ao(i,n,"Got unwanted exception"+r),t&&i&&n&&!Mo(i,n)||!t&&i)throw i}function Uo(t,e,n){zo(!0,t,e,n)}function Do(t,e,n){zo(!1,t,e,n)}function Fo(t){if(t)throw t}yo.AssertionError=ko,jn(ko,Error),yo.fail=Ao,yo.ok=Co,yo.equal=To,yo.notEqual=Ro,yo.deepEqual=xo,yo.deepStrictEqual=Oo,yo.notDeepEqual=jo,yo.notDeepStrictEqual=Lo,yo.strictEqual=Bo,yo.notStrictEqual=Po,yo.throws=Uo,yo.doesNotThrow=Do,yo.ifError=Fo;var qo=Object.freeze({__proto__:null,default:yo,AssertionError:ko,fail:Ao,ok:Co,assert:Co,equal:To,notEqual:Ro,deepEqual:xo,deepStrictEqual:Oo,notDeepEqual:jo,notDeepStrictEqual:Lo,strictEqual:Bo,notStrictEqual:Po,throws:Uo,doesNotThrow:Do,ifError:Fo}),Zo=1e3,Wo=60*Zo,Ho=60*Wo,$o=24*Ho,Ko=7*$o,Yo=365.25*$o,Go=function(t,e){e=e||{};var n=typeof t;if("string"===n&&t.length>0)return function(t){if((t=String(t)).length>100)return;var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!e)return;var n=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*Yo;case"weeks":case"week":case"w":return n*Ko;case"days":case"day":case"d":return n*$o;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Ho;case"minutes":case"minute":case"mins":case"min":case"m":return n*Wo;case"seconds":case"second":case"secs":case"sec":case"s":return n*Zo;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}(t);if("number"===n&&isFinite(t))return e.long?function(t){var e=Math.abs(t);if(e>=$o)return Jo(t,e,$o,"day");if(e>=Ho)return Jo(t,e,Ho,"hour");if(e>=Wo)return Jo(t,e,Wo,"minute");if(e>=Zo)return Jo(t,e,Zo,"second");return t+" ms"}(t):function(t){var e=Math.abs(t);if(e>=$o)return Math.round(t/$o)+"d";if(e>=Ho)return Math.round(t/Ho)+"h";if(e>=Wo)return Math.round(t/Wo)+"m";if(e>=Zo)return Math.round(t/Zo)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Jo(t,e,n,r){var i=e>=1.5*n;return Math.round(t/n)+" "+r+(i?"s":"")}var Vo=function(t){function e(t){let r,i=null;function o(...t){if(!o.enabled)return;const n=o,i=Number(new Date),a=i-(r||i);n.diff=a,n.prev=r,n.curr=i,r=i,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let s=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";s++;const o=e.formatters[i];if("function"==typeof o){const e=t[s];r=o.call(n,e),t.splice(s,1),s--}return r})),e.formatArgs.call(n,t);(n.log||e.log).apply(n,t)}return o.namespace=t,o.useColors=e.useColors(),o.color=e.selectColor(t),o.extend=n,o.destroy=e.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null===i?e.enabled(t):i,set:t=>{i=t}}),"function"==typeof e.init&&e.init(o),o}function n(t,n){const r=e(this.namespace+(void 0===n?":":n)+t);return r.log=this.log,r}function r(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},e.disable=function(){const t=[...e.names.map(r),...e.skips.map(r).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let n;e.save(t),e.names=[],e.skips=[];const r=("string"==typeof t?t:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(t=r[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;let n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=Go,e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((n=>{e[n]=t[n]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return e.colors[Math.abs(n)%e.colors.length]},e.enable(e.load()),e},Xo=n((function(t,e){e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(r++,"%c"===t&&(i=r))})),e.splice(i,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}!t&&void 0!==he&&"env"in he&&(t=he.env.DEBUG);return t},e.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=Vo(e);const{formatters:n}=t.exports;n.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}));function Qo(){return!1}function ta(){throw new Error("tty.ReadStream is not implemented")}function ea(){throw new Error("tty.ReadStream is not implemented")}Xo.formatArgs,Xo.save,Xo.load,Xo.useColors,Xo.storage,Xo.destroy,Xo.colors,Xo.log;var na,ra={isatty:Qo,ReadStream:ta,WriteStream:ea},ia=Object.freeze({__proto__:null,isatty:Qo,ReadStream:ta,WriteStream:ea,default:ra});function oa(){if(void 0===na){var t=new ArrayBuffer(2),e=new Uint8Array(t),n=new Uint16Array(t);if(e[0]=1,e[1]=2,258===n[0])na="BE";else{if(513!==n[0])throw new Error("unable to figure out endianess");na="LE"}}return na}function aa(){return void 0!==Ft.location?Ft.location.hostname:""}function sa(){return[]}function ua(){return 0}function ca(){return Number.MAX_VALUE}function la(){return Number.MAX_VALUE}function fa(){return[]}function ha(){return"Browser"}function da(){return void 0!==Ft.navigator?Ft.navigator.appVersion:""}function pa(){}function va(){}function ga(){return"/tmp"}var _a=ga,ma={EOL:"\n",tmpdir:_a,tmpDir:ga,networkInterfaces:pa,getNetworkInterfaces:va,release:da,type:ha,cpus:fa,totalmem:la,freemem:ca,uptime:ua,loadavg:sa,hostname:aa,endianness:oa},ya=(t,e=he.argv)=>{const n=t.startsWith("-")?"":1===t.length?"-":"--",r=e.indexOf(n+t),i=e.indexOf("--");return-1!==r&&(-1===i||r<i)},wa=r(Object.freeze({__proto__:null,endianness:oa,hostname:aa,loadavg:sa,uptime:ua,freemem:ca,totalmem:la,cpus:fa,type:ha,release:da,networkInterfaces:pa,getNetworkInterfaces:va,arch:function(){return"javascript"},platform:function(){return"browser"},tmpDir:ga,tmpdir:_a,EOL:"\n",default:ma})),ba=r(ia);const{env:ka}=he;let Ea;function Sa(t){return 0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Aa(t,e){if(0===Ea)return 0;if(ya("color=16m")||ya("color=full")||ya("color=truecolor"))return 3;if(ya("color=256"))return 2;if(t&&!e&&void 0===Ea)return 0;const n=Ea||0;if("dumb"===ka.TERM)return n;if("win32"===he.platform){const t=wa.release().split(".");return Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in ka)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((t=>t in ka))||"codeship"===ka.CI_NAME?1:n;if("TEAMCITY_VERSION"in ka)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ka.TEAMCITY_VERSION)?1:0;if("truecolor"===ka.COLORTERM)return 3;if("TERM_PROGRAM"in ka){const t=parseInt((ka.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ka.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ka.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ka.TERM)||"COLORTERM"in ka?1:n}ya("no-color")||ya("no-colors")||ya("color=false")||ya("color=never")?Ea=0:(ya("color")||ya("colors")||ya("color=true")||ya("color=always"))&&(Ea=1),"FORCE_COLOR"in ka&&(Ea="true"===ka.FORCE_COLOR?1:"false"===ka.FORCE_COLOR?0:0===ka.FORCE_COLOR.length?1:Math.min(parseInt(ka.FORCE_COLOR,10),3));var Ca={supportsColor:function(t){return Sa(Aa(t,t&&t.isTTY))},stdout:Sa(Aa(!0,ba.isatty(1))),stderr:Sa(Aa(!0,ba.isatty(2)))},Ta=n((function(t,e){e.init=function(t){t.inspectOpts={};const n=Object.keys(e.inspectOpts);for(let r=0;r<n.length;r++)t.inspectOpts[n[r]]=e.inspectOpts[n[r]]},e.log=function(...t){return he.stderr.write(fr.format(...t)+"\n")},e.formatArgs=function(n){const{namespace:r,useColors:i}=this;if(i){const e=this.color,i="[3"+(e<8?e:"8;5;"+e),o=` ${i};1m${r} [0m`;n[0]=o+n[0].split("\n").join("\n"+o),n.push(i+"m+"+t.exports.humanize(this.diff)+"[0m")}else n[0]=function(){if(e.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+r+" "+n[0]},e.save=function(t){t?he.env.DEBUG=t:delete he.env.DEBUG},e.load=function(){return he.env.DEBUG},e.useColors=function(){return"colors"in e.inspectOpts?Boolean(e.inspectOpts.colors):ba.isatty(he.stderr.fd)},e.destroy=fr.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{const t=Ca;t&&(t.stderr||t).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(t){}e.inspectOpts=Object.keys(he.env).filter((t=>/^debug_/i.test(t))).reduce(((t,e)=>{const n=e.substring(6).toLowerCase().replace(/_([a-z])/g,((t,e)=>e.toUpperCase()));let r=he.env[e];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),t[n]=r,t}),{}),t.exports=Vo(e);const{formatters:n}=t.exports;n.o=function(t){return this.inspectOpts.colors=this.useColors,fr.inspect(t,this.inspectOpts).split("\n").map((t=>t.trim())).join(" ")},n.O=function(t){return this.inspectOpts.colors=this.useColors,fr.inspect(t,this.inspectOpts)}}));Ta.init,Ta.log,Ta.formatArgs,Ta.save,Ta.load,Ta.useColors,Ta.destroy,Ta.colors,Ta.inspectOpts;var Ra,xa=n((function(t){void 0===he||"renderer"===he.type||!0===he.browser||he.__nwjs?t.exports=Xo:t.exports=Ta})),Oa=function(){if(!Ra)try{Ra=xa("follow-redirects")}catch(t){Ra=function(){}}Ra.apply(null,arguments)},Ia=r(no),Na=r(co),ja=r(qo),La=Ia.URL,Ba=di.Writable,Pa=["abort","aborted","connect","error","socket","timeout"],Ma=Object.create(null);Pa.forEach((function(t){Ma[t]=function(e,n,r){this._redirectable.emit(t,e,n,r)}}));var za=Ka("ERR_FR_REDIRECTION_FAILURE",""),Ua=Ka("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Da=Ka("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Fa=Ka("ERR_STREAM_WRITE_AFTER_END","write after end");function qa(t,e){Ba.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var n=this;this._onNativeResponse=function(t){n._processResponse(t)},this._performRequest()}function Za(t){var e={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(t).forEach((function(r){var i=r+":",o=n[i]=t[r],a=e[r]=Object.create(o);Object.defineProperties(a,{request:{value:function(t,r,o){if("string"==typeof t){var a=t;try{t=Ha(new La(a))}catch(e){t=Ia.parse(a)}}else La&&t instanceof La?t=Ha(t):(o=r,r=t,t={protocol:i});return"function"==typeof r&&(o=r,r=null),(r=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},t,r)).nativeProtocols=n,ja.equal(r.protocol,i,"protocol mismatch"),Oa("options",r),new qa(r,o)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(t,e,n){var r=a.request(t,e,n);return r.end(),r},configurable:!0,enumerable:!0,writable:!0}})})),e}function Wa(){}function Ha(t){var e={protocol:t.protocol,hostname:t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,hash:t.hash,search:t.search,pathname:t.pathname,path:t.pathname+t.search,href:t.href};return""!==t.port&&(e.port=Number(t.port)),e}function $a(t,e){var n;for(var r in e)t.test(r)&&(n=e[r],delete e[r]);return n}function Ka(t,e){function n(t){Error.captureStackTrace(this,this.constructor),this.message=t||e}return n.prototype=new Error,n.prototype.constructor=n,n.prototype.name="Error ["+t+"]",n.prototype.code=t,n}function Ya(t){for(var e=0;e<Pa.length;e++)t.removeListener(Pa[e],Ma[Pa[e]]);t.on("error",Wa),t.abort()}qa.prototype=Object.create(Ba.prototype),qa.prototype.abort=function(){Ya(this._currentRequest),this.emit("abort")},qa.prototype.write=function(t,e,n){if(this._ending)throw new Fa;if(!("string"==typeof t||"object"==typeof t&&"length"in t))throw new TypeError("data should be a string, Buffer or Uint8Array");"function"==typeof e&&(n=e,e=null),0!==t.length?this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,n)):(this.emit("error",new Da),this.abort()):n&&n()},qa.prototype.end=function(t,e,n){if("function"==typeof t?(n=t,t=e=null):"function"==typeof e&&(n=e,e=null),t){var r=this,i=this._currentRequest;this.write(t,e,(function(){r._ended=!0,i.end(null,null,n)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},qa.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)},qa.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)},qa.prototype.setTimeout=function(t,e){var n=this;function r(e){e.setTimeout(t),e.removeListener("timeout",e.destroy),e.addListener("timeout",e.destroy)}function i(e){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout((function(){n.emit("timeout"),o()}),t),r(e)}function o(){clearTimeout(this._timeout),e&&n.removeListener("timeout",e),this.socket||n._currentRequest.removeListener("socket",i)}return e&&this.on("timeout",e),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",r),this.once("response",o),this.once("error",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(t){qa.prototype[t]=function(e,n){return this._currentRequest[t](e,n)}})),["aborted","connection","socket"].forEach((function(t){Object.defineProperty(qa.prototype,t,{get:function(){return this._currentRequest[t]}})})),qa.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}},qa.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(e){if(this._options.agents){var n=t.substr(0,t.length-1);this._options.agent=this._options.agents[n]}var r=this._currentRequest=e.request(this._options,this._onNativeResponse);this._currentUrl=Ia.format(this._options),r._redirectable=this;for(var i=0;i<Pa.length;i++)r.on(Pa[i],Ma[Pa[i]]);if(this._isRedirect){var o=0,a=this,s=this._requestBodyBuffers;!function t(e){if(r===a._currentRequest)if(e)a.emit("error",e);else if(o<s.length){var n=s[o++];r.finished||r.write(n.data,n.encoding,t)}else a._ended&&r.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+t))},qa.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var n=t.headers.location;if(n&&!1!==this._options.followRedirects&&e>=300&&e<400){if(Ya(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new Ua);((301===e||302===e)&&"POST"===this._options.method||303===e&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],$a(/^content-/i,this._options.headers));var r=$a(/^host$/i,this._options.headers)||Ia.parse(this._currentUrl).hostname,i=Ia.resolve(this._currentUrl,n);Oa("redirecting to",i),this._isRedirect=!0;var o=Ia.parse(i);if(Object.assign(this._options,o),o.hostname!==r&&$a(/^authorization$/i,this._options.headers),"function"==typeof this._options.beforeRedirect){var a={headers:t.headers};try{this._options.beforeRedirect.call(null,this._options,a)}catch(t){return void this.emit("error",t)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(t){var s=new za("Redirected request failed: "+t.message);s.cause=t,this.emit("error",s)}}else t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[]};var Ga=Za({http:Na,https:Na}),Ja=Za;Ga.wrap=Ja;var Va={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function Xa(){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}function Qa(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;o<r;o++)t[i+o]=e[n+o]}var ts=Uint8Array,es=Uint16Array,ns=Int32Array;function rs(t){for(var e=t.length;--e>=0;)t[e]=0}var is=256,os=286,as=30,ss=15,us=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],cs=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],ls=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],fs=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],hs=new Array(576);rs(hs);var ds=new Array(60);rs(ds);var ps=new Array(512);rs(ps);var vs=new Array(256);rs(vs);var gs=new Array(29);rs(gs);var _s,ms,ys,ws=new Array(as);function bs(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function ks(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function Es(t){return t<256?ps[t]:ps[256+(t>>>7)]}function Ss(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function As(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,Ss(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function Cs(t,e,n){As(t,n[2*e],n[2*e+1])}function Ts(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function Rs(t,e,n){var r,i,o=new Array(16),a=0;for(r=1;r<=ss;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=Ts(o[s]++,s))}}function xs(t){var e;for(e=0;e<os;e++)t.dyn_ltree[2*e]=0;for(e=0;e<as;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function Os(t){t.bi_valid>8?Ss(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function Is(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]}function Ns(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&Is(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!Is(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function js(t,e,n){var r,i,o,a,s=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===r?Cs(t,i,e):(Cs(t,(o=vs[i])+is+1,e),0!==(a=us[o])&&As(t,i-=gs[o],a),Cs(t,o=Es(--r),n),0!==(a=cs[o])&&As(t,r-=ws[o],a))}while(s<t.last_lit);Cs(t,256,e)}function Ls(t,e){var n,r,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<u;n++)0!==o[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,n=t.heap_len>>1;n>=1;n--)Ns(t,o,n);i=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Ns(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,Ns(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,u=e.dyn_tree,c=e.max_code,l=e.stat_desc.static_tree,f=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,v=0;for(o=0;o<=ss;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)(o=u[2*u[2*(r=t.heap[n])+1]+1]+1)>p&&(o=p,v++),u[2*r+1]=o,r>c||(t.bl_count[o]++,a=0,r>=d&&(a=h[r-d]),s=u[2*r],t.opt_len+=s*(o+a),f&&(t.static_len+=s*(l[2*r+1]+a)));if(0!==v){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,v-=2}while(v>0);for(o=p;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}(t,e),Rs(o,c,t.bl_count)}function Bs(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function Ps(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<u&&i===a)){if(s<c)do{Cs(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(Cs(t,i,t.bl_tree),s--),Cs(t,16,t.bl_tree),As(t,s-3,2)):s<=10?(Cs(t,17,t.bl_tree),As(t,s-3,3)):(Cs(t,18,t.bl_tree),As(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}rs(ws);var Ms=!1;function zs(t){Ms||(!function(){var t,e,n,r,i,o=new Array(16);for(n=0,r=0;r<28;r++)for(gs[r]=n,t=0;t<1<<us[r];t++)vs[n++]=r;for(vs[n-1]=r,i=0,r=0;r<16;r++)for(ws[r]=i,t=0;t<1<<cs[r];t++)ps[i++]=r;for(i>>=7;r<as;r++)for(ws[r]=i<<7,t=0;t<1<<cs[r]-7;t++)ps[256+i++]=r;for(e=0;e<=ss;e++)o[e]=0;for(t=0;t<=143;)hs[2*t+1]=8,t++,o[8]++;for(;t<=255;)hs[2*t+1]=9,t++,o[9]++;for(;t<=279;)hs[2*t+1]=7,t++,o[7]++;for(;t<=287;)hs[2*t+1]=8,t++,o[8]++;for(Rs(hs,287,o),t=0;t<as;t++)ds[2*t+1]=5,ds[2*t]=Ts(t,5);_s=new bs(hs,us,257,os,ss),ms=new bs(ds,cs,0,as,ss),ys=new bs(new Array(0),ls,0,19,7)}(),Ms=!0),t.l_desc=new ks(t.dyn_ltree,_s),t.d_desc=new ks(t.dyn_dtree,ms),t.bl_desc=new ks(t.bl_tree,ys),t.bi_buf=0,t.bi_valid=0,xs(t)}function Us(t,e,n,r){As(t,0+(r?1:0),3),function(t,e,n,r){Os(t),r&&(Ss(t,n),Ss(t,~n)),Qa(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}function Ds(t){As(t,2,3),Cs(t,256,hs),function(t){16===t.bi_valid?(Ss(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}function Fs(t,e,n,r){var i,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<is;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),Ls(t,t.l_desc),Ls(t,t.d_desc),a=function(t){var e;for(Bs(t,t.dyn_ltree,t.l_desc.max_code),Bs(t,t.dyn_dtree,t.d_desc.max_code),Ls(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*fs[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==e?Us(t,e,n,r):4===t.strategy||o===i?(As(t,2+(r?1:0),3),js(t,hs,ds)):(As(t,4+(r?1:0),3),function(t,e,n,r){var i;for(As(t,e-257,5),As(t,n-1,5),As(t,r-4,4),i=0;i<r;i++)As(t,t.bl_tree[2*fs[i]+1],3);Ps(t,t.dyn_ltree,e-1),Ps(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),js(t,t.dyn_ltree,t.dyn_dtree)),xs(t),r&&Os(t)}function qs(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(vs[n]+is+1)]++,t.dyn_dtree[2*Es(e)]++),t.last_lit===t.lit_bufsize-1}function Zs(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}var Ws=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();function Hs(t,e,n,r){var i=Ws,o=r+n;t^=-1;for(var a=r;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t}var $s,Ks=-2,Ys=258,Gs=262,Js=103,Vs=113,Xs=666;function Qs(t,e){return t.msg=Va[e],e}function tu(t){return(t<<1)-(t>4?9:0)}function eu(t){for(var e=t.length;--e>=0;)t[e]=0}function nu(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(Qa(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function ru(t,e){Fs(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,nu(t.strm)}function iu(t,e){t.pending_buf[t.pending++]=e}function ou(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function au(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-Gs?t.strstart-(t.w_size-Gs):0,c=t.window,l=t.w_mask,f=t.prev,h=t.strstart+Ys,d=c[o+a-1],p=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(n=e)+a]===p&&c[n+a-1]===d&&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]&&o<h);if(r=Ys-(h-o),o=h-Ys,r>a){if(t.match_start=e,a=r,r>=s)break;d=c[o+a-1],p=c[o+a]}}}while((e=f[e&l])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead}function su(t){var e,n,r,i,o,a,s,u,c,l,f=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=f+(f-Gs)){Qa(t.window,t.window,f,f,0),t.match_start-=f,t.strstart-=f,t.block_start-=f,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=f?r-f:0}while(--n);e=n=f;do{r=t.prev[--e],t.prev[e]=r>=f?r-f:0}while(--n);i+=f}if(0===t.strm.avail_in)break;if(a=t.strm,s=t.window,u=t.strstart+t.lookahead,c=i,l=void 0,(l=a.avail_in)>c&&(l=c),n=0===l?0:(a.avail_in-=l,Qa(s,a.input,a.next_in,l,u),1===a.state.wrap?a.adler=Zs(a.adler,s,l,u):2===a.state.wrap&&(a.adler=Hs(a.adler,s,l,u)),a.next_in+=l,a.total_in+=l,l),t.lookahead+=n,t.lookahead+t.insert>=3)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+3-1])&t.hash_mask,t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<Gs&&0!==t.strm.avail_in)}function uu(t,e){for(var n,r;;){if(t.lookahead<Gs){if(su(t),t.lookahead<Gs&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-Gs&&(t.match_length=au(t,n)),t.match_length>=3)if(r=qs(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=qs(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(ru(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(ru(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(ru(t,!1),0===t.strm.avail_out)?1:2}function cu(t,e){for(var n,r,i;;){if(t.lookahead<Gs){if(su(t),t.lookahead<Gs&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-Gs&&(t.match_length=au(t,n),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,r=qs(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,r&&(ru(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((r=qs(t,0,t.window[t.strstart-1]))&&ru(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=qs(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(ru(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(ru(t,!1),0===t.strm.avail_out)?1:2}function lu(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function fu(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new es(1146),this.dyn_dtree=new es(122),this.bl_tree=new es(78),eu(this.dyn_ltree),eu(this.dyn_dtree),eu(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new es(16),this.heap=new es(573),eu(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new es(573),eu(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function hu(t){var e=function(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:Vs,t.adler=2===e.wrap?0:1,e.last_flush=0,zs(e),0):Qs(t,Ks)}(t);return 0===e&&function(t){t.window_size=2*t.w_size,eu(t.head),t.max_lazy_match=$s[t.level].max_lazy,t.good_match=$s[t.level].good_length,t.nice_match=$s[t.level].nice_length,t.max_chain_length=$s[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0}(t.state),e}function du(t,e){var n,r,i,o;if(!t||!t.state||e>5||e<0)return t?Qs(t,Ks):Ks;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||r.status===Xs&&4!==e)return Qs(t,0===t.avail_out?-5:Ks);if(r.strm=t,n=r.last_flush,r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,iu(r,31),iu(r,139),iu(r,8),r.gzhead?(iu(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),iu(r,255&r.gzhead.time),iu(r,r.gzhead.time>>8&255),iu(r,r.gzhead.time>>16&255),iu(r,r.gzhead.time>>24&255),iu(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),iu(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(iu(r,255&r.gzhead.extra.length),iu(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=Hs(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(iu(r,0),iu(r,0),iu(r,0),iu(r,0),iu(r,0),iu(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),iu(r,3),r.status=Vs);else{var a=8+(r.w_bits-8<<4)<<8;a|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(a|=32),a+=31-a%31,r.status=Vs,ou(r,a),0!==r.strstart&&(ou(r,t.adler>>>16),ou(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(i=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>i&&(t.adler=Hs(t.adler,r.pending_buf,r.pending-i,i)),nu(t),i=r.pending,r.pending!==r.pending_buf_size));)iu(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(t.adler=Hs(t.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(t.adler=Hs(t.adler,r.pending_buf,r.pending-i,i)),nu(t),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,iu(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(t.adler=Hs(t.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(t.adler=Hs(t.adler,r.pending_buf,r.pending-i,i)),nu(t),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,iu(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(t.adler=Hs(t.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.status=Js)}else r.status=Js;if(r.status===Js&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&nu(t),r.pending+2<=r.pending_buf_size&&(iu(r,255&t.adler),iu(r,t.adler>>8&255),t.adler=0,r.status=Vs)):r.status=Vs),0!==r.pending){if(nu(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&tu(e)<=tu(n)&&4!==e)return Qs(t,-5);if(r.status===Xs&&0!==t.avail_in)return Qs(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&r.status!==Xs){var s=2===r.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(su(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,n=qs(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(ru(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(ru(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(ru(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var n,r,i,o,a=t.window;;){if(t.lookahead<=Ys){if(su(t),t.lookahead<=Ys&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(r=a[i=t.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){o=t.strstart+Ys;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o);t.match_length=Ys-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=qs(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=qs(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(ru(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(ru(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(ru(t,!1),0===t.strm.avail_out)?1:2}(r,e):$s[r.level].func(r,e);if(3!==s&&4!==s||(r.status=Xs),1===s||3===s)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===s&&(1===e?Ds(r):5!==e&&(Us(r,0,0,!1),3===e&&(eu(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),nu(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(iu(r,255&t.adler),iu(r,t.adler>>8&255),iu(r,t.adler>>16&255),iu(r,t.adler>>24&255),iu(r,255&t.total_in),iu(r,t.total_in>>8&255),iu(r,t.total_in>>16&255),iu(r,t.total_in>>24&255)):(ou(r,t.adler>>>16),ou(r,65535&t.adler)),nu(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)}$s=[new lu(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(su(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,ru(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-Gs&&(ru(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(ru(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(ru(t,!1),t.strm.avail_out),1)})),new lu(4,4,8,4,uu),new lu(4,5,16,8,uu),new lu(4,6,32,32,uu),new lu(4,4,16,16,cu),new lu(8,16,32,32,cu),new lu(8,16,128,128,cu),new lu(8,32,128,256,cu),new lu(32,128,258,1024,cu),new lu(32,258,258,4096,cu)];function pu(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,v,g,_,m,y,w,b,k,E,S,A,C;n=t.state,r=t.next_in,A=t.input,i=r+(t.avail_in-5),o=t.next_out,C=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),u=n.dmax,c=n.wsize,l=n.whave,f=n.wnext,h=n.window,d=n.hold,p=n.bits,v=n.lencode,g=n.distcode,_=(1<<n.lenbits)-1,m=(1<<n.distbits)-1;t:do{p<15&&(d+=A[r++]<<p,p+=8,d+=A[r++]<<p,p+=8),y=v[d&_];e:for(;;){if(d>>>=w=y>>>24,p-=w,0===(w=y>>>16&255))C[o++]=65535&y;else{if(!(16&w)){if(0==(64&w)){y=v[(65535&y)+(d&(1<<w)-1)];continue e}if(32&w){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}b=65535&y,(w&=15)&&(p<w&&(d+=A[r++]<<p,p+=8),b+=d&(1<<w)-1,d>>>=w,p-=w),p<15&&(d+=A[r++]<<p,p+=8,d+=A[r++]<<p,p+=8),y=g[d&m];n:for(;;){if(d>>>=w=y>>>24,p-=w,!(16&(w=y>>>16&255))){if(0==(64&w)){y=g[(65535&y)+(d&(1<<w)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(k=65535&y,p<(w&=15)&&(d+=A[r++]<<p,(p+=8)<w&&(d+=A[r++]<<p,p+=8)),(k+=d&(1<<w)-1)>u){t.msg="invalid distance too far back",n.mode=30;break t}if(d>>>=w,p-=w,k>(w=o-a)){if((w=k-w)>l&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(E=0,S=h,0===f){if(E+=c-w,w<b){b-=w;do{C[o++]=h[E++]}while(--w);E=o-k,S=C}}else if(f<w){if(E+=c+f-w,(w-=f)<b){b-=w;do{C[o++]=h[E++]}while(--w);if(E=0,f<b){b-=w=f;do{C[o++]=h[E++]}while(--w);E=o-k,S=C}}}else if(E+=f-w,w<b){b-=w;do{C[o++]=h[E++]}while(--w);E=o-k,S=C}for(;b>2;)C[o++]=S[E++],C[o++]=S[E++],C[o++]=S[E++],b-=3;b&&(C[o++]=S[E++],b>1&&(C[o++]=S[E++]))}else{E=o-k;do{C[o++]=C[E++],C[o++]=C[E++],C[o++]=C[E++],b-=3}while(b>2);b&&(C[o++]=C[E++],b>1&&(C[o++]=C[E++]))}break}}break}}while(r<i&&o<s);r-=b=p>>3,d&=(1<<(p-=b<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=o<s?s-o+257:257-(o-s),n.hold=d,n.bits=p}var vu=15,gu=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],_u=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],mu=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],yu=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function wu(t,e,n,r,i,o,a,s){var u,c,l,f,h,d,p,v,g,_=s.bits,m=0,y=0,w=0,b=0,k=0,E=0,S=0,A=0,C=0,T=0,R=null,x=0,O=new es(16),I=new es(16),N=null,j=0;for(m=0;m<=vu;m++)O[m]=0;for(y=0;y<r;y++)O[e[n+y]]++;for(k=_,b=vu;b>=1&&0===O[b];b--);if(k>b&&(k=b),0===b)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(w=1;w<b&&0===O[w];w++);for(k<w&&(k=w),A=1,m=1;m<=vu;m++)if(A<<=1,(A-=O[m])<0)return-1;if(A>0&&(0===t||1!==b))return-1;for(I[1]=0,m=1;m<vu;m++)I[m+1]=I[m]+O[m];for(y=0;y<r;y++)0!==e[n+y]&&(a[I[e[n+y]]++]=y);if(0===t?(R=N=a,d=19):1===t?(R=gu,x-=257,N=_u,j-=257,d=256):(R=mu,N=yu,d=-1),T=0,y=0,m=w,h=o,E=k,S=0,l=-1,f=(C=1<<k)-1,1===t&&C>852||2===t&&C>592)return 1;for(;;){p=m-S,a[y]<d?(v=0,g=a[y]):a[y]>d?(v=N[j+a[y]],g=R[x+a[y]]):(v=96,g=0),u=1<<m-S,w=c=1<<E;do{i[h+(T>>S)+(c-=u)]=p<<24|v<<16|g|0}while(0!==c);for(u=1<<m-1;T&u;)u>>=1;if(0!==u?(T&=u-1,T+=u):T=0,y++,0==--O[m]){if(m===b)break;m=e[n+a[y]]}if(m>k&&(T&f)!==l){for(0===S&&(S=k),h+=w,A=1<<(E=m-S);E+S<b&&!((A-=O[E+S])<=0);)E++,A<<=1;if(C+=1<<E,1===t&&C>852||2===t&&C>592)return 1;i[l=T&f]=k<<24|E<<16|h-o|0}}return 0!==T&&(i[h+T]=m-S<<24|64<<16|0),s.bits=k,0}var bu=-2,ku=12,Eu=30;function Su(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function Au(){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 es(320),this.work=new es(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Cu(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,function(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new ns(852),e.distcode=e.distdyn=new ns(592),e.sane=1,e.back=-1,0):bu}(t)):bu}function Tu(t,e){var n,r;return t?(r=new Au,t.state=r,r.window=null,0!==(n=function(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?bu:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,Cu(t))):bu}(t,e))&&(t.state=null),n):bu}var Ru,xu,Ou=!0;function Iu(t){if(Ou){var e;for(Ru=new ns(512),xu=new ns(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(wu(1,t.lens,0,288,Ru,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;wu(2,t.lens,0,32,xu,0,t.work,{bits:5}),Ou=!1}t.lencode=Ru,t.lenbits=9,t.distcode=xu,t.distbits=5}function Nu(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,v,g,_,m,y,w,b,k,E,S,A,C=0,T=new ts(4),R=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return bu;(n=t.state).mode===ku&&(n.mode=13),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,r=t.input,s=t.avail_in,c=n.hold,l=n.bits,f=s,h=u,E=0;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(2&n.wrap&&35615===c){n.check=0,T[0]=255&c,T[1]=c>>>8&255,n.check=Hs(n.check,T,2,0),c=0,l=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31){t.msg="incorrect header check",n.mode=Eu;break}if(8!=(15&c)){t.msg="unknown compression method",n.mode=Eu;break}if(l-=4,k=8+(15&(c>>>=4)),0===n.wbits)n.wbits=k;else if(k>n.wbits){t.msg="invalid window size",n.mode=Eu;break}n.dmax=1<<k,t.adler=n.check=1,n.mode=512&c?10:ku,c=0,l=0;break;case 2:for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(n.flags=c,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=Eu;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=Eu;break}n.head&&(n.head.text=c>>8&1),512&n.flags&&(T[0]=255&c,T[1]=c>>>8&255,n.check=Hs(n.check,T,2,0)),c=0,l=0,n.mode=3;case 3:for(;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.head&&(n.head.time=c),512&n.flags&&(T[0]=255&c,T[1]=c>>>8&255,T[2]=c>>>16&255,T[3]=c>>>24&255,n.check=Hs(n.check,T,4,0)),c=0,l=0,n.mode=4;case 4:for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.head&&(n.head.xflags=255&c,n.head.os=c>>8),512&n.flags&&(T[0]=255&c,T[1]=c>>>8&255,n.check=Hs(n.check,T,2,0)),c=0,l=0,n.mode=5;case 5:if(1024&n.flags){for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.length=c,n.head&&(n.head.extra_len=c),512&n.flags&&(T[0]=255&c,T[1]=c>>>8&255,n.check=Hs(n.check,T,2,0)),c=0,l=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((d=n.length)>s&&(d=s),d&&(n.head&&(k=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),Qa(n.head.extra,r,o,d,k)),512&n.flags&&(n.check=Hs(n.check,r,d,o)),s-=d,o+=d,n.length-=d),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===s)break t;d=0;do{k=r[o+d++],n.head&&k&&n.length<65536&&(n.head.name+=String.fromCharCode(k))}while(k&&d<s);if(512&n.flags&&(n.check=Hs(n.check,r,d,o)),s-=d,o+=d,k)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===s)break t;d=0;do{k=r[o+d++],n.head&&k&&n.length<65536&&(n.head.comment+=String.fromCharCode(k))}while(k&&d<s);if(512&n.flags&&(n.check=Hs(n.check,r,d,o)),s-=d,o+=d,k)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(c!==(65535&n.check)){t.msg="header crc mismatch",n.mode=Eu;break}c=0,l=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=ku;break;case 10:for(;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}t.adler=n.check=Su(c),c=0,l=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,n.hold=c,n.bits=l,2;t.adler=n.check=1,n.mode=ku;case ku:if(5===e||6===e)break t;case 13:if(n.last){c>>>=7&l,l-=7&l,n.mode=27;break}for(;l<3;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}switch(n.last=1&c,l-=1,3&(c>>>=1)){case 0:n.mode=14;break;case 1:if(Iu(n),n.mode=20,6===e){c>>>=2,l-=2;break t}break;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=Eu}c>>>=2,l-=2;break;case 14:for(c>>>=7&l,l-=7&l;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if((65535&c)!=(c>>>16^65535)){t.msg="invalid stored block lengths",n.mode=Eu;break}if(n.length=65535&c,c=0,l=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(d=n.length){if(d>s&&(d=s),d>u&&(d=u),0===d)break t;Qa(i,r,o,d,a),s-=d,o+=d,u-=d,a+=d,n.length-=d;break}n.mode=ku;break;case 17:for(;l<14;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(n.nlen=257+(31&c),c>>>=5,l-=5,n.ndist=1+(31&c),c>>>=5,l-=5,n.ncode=4+(15&c),c>>>=4,l-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=Eu;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;l<3;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.lens[R[n.have++]]=7&c,c>>>=3,l-=3}for(;n.have<19;)n.lens[R[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,S={bits:n.lenbits},E=wu(0,n.lens,0,19,n.lencode,0,n.work,S),n.lenbits=S.bits,E){t.msg="invalid code lengths set",n.mode=Eu;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;_=(C=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,m=65535&C,!((g=C>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(m<16)c>>>=g,l-=g,n.lens[n.have++]=m;else{if(16===m){for(A=g+2;l<A;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(c>>>=g,l-=g,0===n.have){t.msg="invalid bit length repeat",n.mode=Eu;break}k=n.lens[n.have-1],d=3+(3&c),c>>>=2,l-=2}else if(17===m){for(A=g+3;l<A;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}l-=g,k=0,d=3+(7&(c>>>=g)),c>>>=3,l-=3}else{for(A=g+7;l<A;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}l-=g,k=0,d=11+(127&(c>>>=g)),c>>>=7,l-=7}if(n.have+d>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=Eu;break}for(;d--;)n.lens[n.have++]=k}}if(n.mode===Eu)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=Eu;break}if(n.lenbits=9,S={bits:n.lenbits},E=wu(1,n.lens,0,n.nlen,n.lencode,0,n.work,S),n.lenbits=S.bits,E){t.msg="invalid literal/lengths set",n.mode=Eu;break}if(n.distbits=6,n.distcode=n.distdyn,S={bits:n.distbits},E=wu(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,S),n.distbits=S.bits,E){t.msg="invalid distances set",n.mode=Eu;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(s>=6&&u>=258){t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,n.hold=c,n.bits=l,pu(t,h),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,r=t.input,s=t.avail_in,c=n.hold,l=n.bits,n.mode===ku&&(n.back=-1);break}for(n.back=0;_=(C=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,m=65535&C,!((g=C>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(_&&0==(240&_)){for(y=g,w=_,b=m;_=(C=n.lencode[b+((c&(1<<y+w)-1)>>y)])>>>16&255,m=65535&C,!(y+(g=C>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}c>>>=y,l-=y,n.back+=y}if(c>>>=g,l-=g,n.back+=g,n.length=m,0===_){n.mode=26;break}if(32&_){n.back=-1,n.mode=ku;break}if(64&_){t.msg="invalid literal/length code",n.mode=Eu;break}n.extra=15&_,n.mode=22;case 22:if(n.extra){for(A=n.extra;l<A;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,l-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;_=(C=n.distcode[c&(1<<n.distbits)-1])>>>16&255,m=65535&C,!((g=C>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(0==(240&_)){for(y=g,w=_,b=m;_=(C=n.distcode[b+((c&(1<<y+w)-1)>>y)])>>>16&255,m=65535&C,!(y+(g=C>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}c>>>=y,l-=y,n.back+=y}if(c>>>=g,l-=g,n.back+=g,64&_){t.msg="invalid distance code",n.mode=Eu;break}n.offset=m,n.extra=15&_,n.mode=24;case 24:if(n.extra){for(A=n.extra;l<A;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,l-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=Eu;break}n.mode=25;case 25:if(0===u)break t;if(d=h-u,n.offset>d){if((d=n.offset-d)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=Eu;break}d>n.wnext?(d-=n.wnext,p=n.wsize-d):p=n.wnext-d,d>n.length&&(d=n.length),v=n.window}else v=i,p=a-n.offset,d=n.length;d>u&&(d=u),u-=d,n.length-=d;do{i[a++]=v[p++]}while(--d);0===n.length&&(n.mode=21);break;case 26:if(0===u)break t;i[a++]=n.length,u--,n.mode=21;break;case 27:if(n.wrap){for(;l<32;){if(0===s)break t;s--,c|=r[o++]<<l,l+=8}if(h-=u,t.total_out+=h,n.total+=h,h&&(t.adler=n.check=n.flags?Hs(n.check,i,h,a-h):Zs(n.check,i,h,a-h)),h=u,(n.flags?c:Su(c))!==n.check){t.msg="incorrect data check",n.mode=Eu;break}c=0,l=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(c!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=Eu;break}c=0,l=0}n.mode=29;case 29:E=1;break t;case Eu:E=-3;break t;case 31:return-4;case 32:default:return bu}return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,n.hold=c,n.bits=l,(n.wsize||h!==t.avail_out&&n.mode<Eu&&(n.mode<27||4!==e))&&function(t,e,n,r){var i,o=t.state;null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new ts(o.wsize)),r>=o.wsize?(Qa(o.window,e,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>r&&(i=r),Qa(o.window,e,n-r,i,o.wnext),(r-=i)?(Qa(o.window,e,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i)))}(t,t.output,t.next_out,h-t.avail_out),f-=t.avail_in,h-=t.avail_out,t.total_in+=f,t.total_out+=h,n.total+=h,n.wrap&&h&&(t.adler=n.check=n.flags?Hs(n.check,i,h,t.next_out-h):Zs(n.check,i,h,t.next_out-h)),t.data_type=n.bits+(n.last?64:0)+(n.mode===ku?128:0)+(20===n.mode||15===n.mode?256:0),(0===f&&0===h||4===e)&&0===E&&(E=-5),E}var ju;function Lu(t){if(t<1||t>7)throw new TypeError("Bad argument");this.mode=t,this.init_done=!1,this.write_in_progress=!1,this.pending_close=!1,this.windowBits=0,this.level=0,this.memLevel=0,this.strategy=0,this.dictionary=null}function Bu(t,e){for(var n=0;n<t.length;n++)this[e+n]=t[n]}Lu.prototype.init=function(t,e,n,r,i){var o;switch(this.windowBits=t,this.level=e,this.memLevel=n,this.strategy=r,3!==this.mode&&4!==this.mode||(this.windowBits+=16),7===this.mode&&(this.windowBits+=32),5!==this.mode&&6!==this.mode||(this.windowBits=-this.windowBits),this.strm=new Xa,this.mode){case 1:case 3:case 5:o=function(t,e,n,r,i,o){if(!t)return Ks;var a=1;if(-1===e&&(e=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>9||8!==n||r<8||r>15||e<0||e>9||o<0||o>4)return Qs(t,Ks);8===r&&(r=9);var s=new fu;return t.state=s,s.strm=t,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new ts(2*s.w_size),s.head=new es(s.hash_size),s.prev=new es(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new ts(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=o,s.method=n,hu(t)}(this.strm,this.level,8,this.windowBits,this.memLevel,this.strategy);break;case 2:case 4:case 6:case 7:o=Tu(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}0===o?(this.write_in_progress=!1,this.init_done=!0):this._error(o)},Lu.prototype.params=function(){throw new Error("deflateParams Not supported")},Lu.prototype._writeCheck=function(){if(!this.init_done)throw new Error("write before init");if(0===this.mode)throw new Error("already finalized");if(this.write_in_progress)throw new Error("write already in progress");if(this.pending_close)throw new Error("close is pending")},Lu.prototype.write=function(t,e,n,r,i,o,a){this._writeCheck(),this.write_in_progress=!0;var s=this;return he.nextTick((function(){s.write_in_progress=!1;var u=s._write(t,e,n,r,i,o,a);s.callback(u[0],u[1]),s.pending_close&&s.close()})),this},Lu.prototype.writeSync=function(t,e,n,r,i,o,a){return this._writeCheck(),this._write(t,e,n,r,i,o,a)},Lu.prototype._write=function(t,e,n,r,i,o,a){if(this.write_in_progress=!0,0!==t&&1!==t&&2!==t&&3!==t&&4!==t&&5!==t)throw new Error("Invalid flush value");null==e&&(e=new Be(0),r=0,n=0),i._set?i.set=i._set:i.set=Bu;var s,u=this.strm;switch(u.avail_in=r,u.input=e,u.next_in=n,u.avail_out=a,u.output=i,u.next_out=o,this.mode){case 1:case 3:case 5:s=du(u,t);break;case 7:case 2:case 4:case 6:s=Nu(u,t);break;default:throw new Error("Unknown mode "+this.mode)}return 1!==s&&0!==s&&this._error(s),this.write_in_progress=!1,[u.avail_in,u.avail_out]},Lu.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,1===this.mode||3===this.mode||5===this.mode?function(t){var e;t&&t.state&&(42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&e!==Js&&e!==Vs&&e!==Xs?Qs(t,Ks):(t.state=null,e===Vs&&Qs(t,-3)))}(this.strm):function(t){if(!t||!t.state)return bu;var e=t.state;e.window&&(e.window=null),t.state=null}(this.strm),this.mode=0)},Lu.prototype.reset=function(){switch(this.mode){case 1:case 5:ju=hu(this.strm);break;case 2:case 6:ju=Cu(this.strm)}0!==ju&&this._error(ju)},Lu.prototype._error=function(t){this.onerror(Va[t]+": "+this.strm.msg,t),this.write_in_progress=!1,this.pending_close&&this.close()};var Pu=Object.freeze({__proto__:null,NONE:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8,Zlib:Lu});var Mu={};Object.keys(Pu).forEach((function(t){Mu[t]=Pu[t]})),Mu.Z_MIN_WINDOWBITS=8,Mu.Z_MAX_WINDOWBITS=15,Mu.Z_DEFAULT_WINDOWBITS=15,Mu.Z_MIN_CHUNK=64,Mu.Z_MAX_CHUNK=1/0,Mu.Z_DEFAULT_CHUNK=16384,Mu.Z_MIN_MEMLEVEL=1,Mu.Z_MAX_MEMLEVEL=9,Mu.Z_DEFAULT_MEMLEVEL=8,Mu.Z_MIN_LEVEL=-1,Mu.Z_MAX_LEVEL=9,Mu.Z_DEFAULT_LEVEL=Mu.Z_DEFAULT_COMPRESSION;var zu={Z_OK:Mu.Z_OK,Z_STREAM_END:Mu.Z_STREAM_END,Z_NEED_DICT:Mu.Z_NEED_DICT,Z_ERRNO:Mu.Z_ERRNO,Z_STREAM_ERROR:Mu.Z_STREAM_ERROR,Z_DATA_ERROR:Mu.Z_DATA_ERROR,Z_MEM_ERROR:Mu.Z_MEM_ERROR,Z_BUF_ERROR:Mu.Z_BUF_ERROR,Z_VERSION_ERROR:Mu.Z_VERSION_ERROR};function Uu(t){return new uc(t)}function Du(t){return new cc(t)}function Fu(t){return new hc(t)}function qu(t){return new dc(t)}function Zu(t){return new lc(t)}function Wu(t){return new fc(t)}function Hu(t){return new pc(t)}function $u(t,e,n){return"function"==typeof e&&(n=e,e={}),ac(new uc(e),t,n)}function Ku(t,e){return sc(new uc(e),t)}function Yu(t,e,n){return"function"==typeof e&&(n=e,e={}),ac(new lc(e),t,n)}function Gu(t,e){return sc(new lc(e),t)}function Ju(t,e,n){return"function"==typeof e&&(n=e,e={}),ac(new hc(e),t,n)}function Vu(t,e){return sc(new hc(e),t)}function Xu(t,e,n){return"function"==typeof e&&(n=e,e={}),ac(new pc(e),t,n)}function Qu(t,e){return sc(new pc(e),t)}function tc(t,e,n){return"function"==typeof e&&(n=e,e={}),ac(new cc(e),t,n)}function ec(t,e){return sc(new cc(e),t)}function nc(t,e,n){return"function"==typeof e&&(n=e,e={}),ac(new fc(e),t,n)}function rc(t,e){return sc(new fc(e),t)}function ic(t,e,n){return"function"==typeof e&&(n=e,e={}),ac(new dc(e),t,n)}function oc(t,e){return sc(new dc(e),t)}function ac(t,e,n){var r=[],i=0;function o(){for(var e;null!==(e=t.read());)r.push(e),i+=e.length;t.once("readable",o)}function a(){var e=Be.concat(r,i);r=[],n(null,e),t.close()}t.on("error",(function(e){t.removeListener("end",a),t.removeListener("readable",o),n(e)})),t.on("end",a),t.end(e),o()}function sc(t,e){if("string"==typeof e&&(e=new Be(e)),!Be.isBuffer(e))throw new TypeError("Not a string or buffer");var n=Mu.Z_FINISH;return t._processChunk(e,n)}function uc(t){if(!(this instanceof uc))return new uc(t);vc.call(this,t,Mu.DEFLATE)}function cc(t){if(!(this instanceof cc))return new cc(t);vc.call(this,t,Mu.INFLATE)}function lc(t){if(!(this instanceof lc))return new lc(t);vc.call(this,t,Mu.GZIP)}function fc(t){if(!(this instanceof fc))return new fc(t);vc.call(this,t,Mu.GUNZIP)}function hc(t){if(!(this instanceof hc))return new hc(t);vc.call(this,t,Mu.DEFLATERAW)}function dc(t){if(!(this instanceof dc))return new dc(t);vc.call(this,t,Mu.INFLATERAW)}function pc(t){if(!(this instanceof pc))return new pc(t);vc.call(this,t,Mu.UNZIP)}function vc(t,e){if(this._opts=t=t||{},this._chunkSize=t.chunkSize||Mu.Z_DEFAULT_CHUNK,li.call(this,t),t.flush&&t.flush!==Mu.Z_NO_FLUSH&&t.flush!==Mu.Z_PARTIAL_FLUSH&&t.flush!==Mu.Z_SYNC_FLUSH&&t.flush!==Mu.Z_FULL_FLUSH&&t.flush!==Mu.Z_FINISH&&t.flush!==Mu.Z_BLOCK)throw new Error("Invalid flush flag: "+t.flush);if(this._flushFlag=t.flush||Mu.Z_NO_FLUSH,t.chunkSize&&(t.chunkSize<Mu.Z_MIN_CHUNK||t.chunkSize>Mu.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+t.chunkSize);if(t.windowBits&&(t.windowBits<Mu.Z_MIN_WINDOWBITS||t.windowBits>Mu.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+t.windowBits);if(t.level&&(t.level<Mu.Z_MIN_LEVEL||t.level>Mu.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+t.level);if(t.memLevel&&(t.memLevel<Mu.Z_MIN_MEMLEVEL||t.memLevel>Mu.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+t.memLevel);if(t.strategy&&t.strategy!=Mu.Z_FILTERED&&t.strategy!=Mu.Z_HUFFMAN_ONLY&&t.strategy!=Mu.Z_RLE&&t.strategy!=Mu.Z_FIXED&&t.strategy!=Mu.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+t.strategy);if(t.dictionary&&!Be.isBuffer(t.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._binding=new Mu.Zlib(e);var n=this;this._hadError=!1,this._binding.onerror=function(t,e){n._binding=null,n._hadError=!0;var r=new Error(t);r.errno=e,r.code=Mu.codes[e],n.emit("error",r)};var r=Mu.Z_DEFAULT_COMPRESSION;"number"==typeof t.level&&(r=t.level);var i=Mu.Z_DEFAULT_STRATEGY;"number"==typeof t.strategy&&(i=t.strategy),this._binding.init(t.windowBits||Mu.Z_DEFAULT_WINDOWBITS,r,t.memLevel||Mu.Z_DEFAULT_MEMLEVEL,i,t.dictionary),this._buffer=new Be(this._chunkSize),this._offset=0,this._closed=!1,this._level=r,this._strategy=i,this.once("end",this.close)}Object.keys(zu).forEach((function(t){zu[zu[t]]=t})),jn(vc,li),vc.prototype.params=function(t,e,n){if(t<Mu.Z_MIN_LEVEL||t>Mu.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+t);if(e!=Mu.Z_FILTERED&&e!=Mu.Z_HUFFMAN_ONLY&&e!=Mu.Z_RLE&&e!=Mu.Z_FIXED&&e!=Mu.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+e);if(this._level!==t||this._strategy!==e){var r=this;this.flush(Mu.Z_SYNC_FLUSH,(function(){r._binding.params(t,e),r._hadError||(r._level=t,r._strategy=e,n&&n())}))}else he.nextTick(n)},vc.prototype.reset=function(){return this._binding.reset()},vc.prototype._flush=function(t){this._transform(new Be(0),"",t)},vc.prototype.flush=function(t,e){var n=this._writableState;if(("function"==typeof t||void 0===t&&!e)&&(e=t,t=Mu.Z_FULL_FLUSH),n.ended)e&&he.nextTick(e);else if(n.ending)e&&this.once("end",e);else if(n.needDrain){var r=this;this.once("drain",(function(){r.flush(e)}))}else this._flushFlag=t,this.write(new Be(0),"",e)},vc.prototype.close=function(t){if(t&&he.nextTick(t),!this._closed){this._closed=!0,this._binding.close();var e=this;he.nextTick((function(){e.emit("close")}))}},vc.prototype._transform=function(t,e,n){var r,i=this._writableState,o=(i.ending||i.ended)&&(!t||i.length===t.length);if(null===!t&&!Be.isBuffer(t))return n(new Error("invalid input"));o?r=Mu.Z_FINISH:(r=this._flushFlag,t.length>=i.length&&(this._flushFlag=this._opts.flush||Mu.Z_NO_FLUSH)),this._processChunk(t,r,n)},vc.prototype._processChunk=function(t,e,n){var r=t&&t.length,i=this._chunkSize-this._offset,o=0,a=this,s="function"==typeof n;if(!s){var u,c=[],l=0;this.on("error",(function(t){u=t}));do{var f=this._binding.writeSync(e,t,o,r,this._buffer,this._offset,i)}while(!this._hadError&&p(f[0],f[1]));if(this._hadError)throw u;var h=Be.concat(c,l);return this.close(),h}var d=this._binding.write(e,t,o,r,this._buffer,this._offset,i);function p(u,f){if(!a._hadError){var h=i-f;if(function(t,e){if(!t)throw new Error(e)}(h>=0,"have should not go down"),h>0){var d=a._buffer.slice(a._offset,a._offset+h);a._offset+=h,s?a.push(d):(c.push(d),l+=d.length)}if((0===f||a._offset>=a._chunkSize)&&(i=a._chunkSize,a._offset=0,a._buffer=new Be(a._chunkSize)),0===f){if(o+=r-u,r=u,!s)return!0;var v=a._binding.write(e,t,o,r,a._buffer,a._offset,a._chunkSize);return v.callback=p,void(v.buffer=t)}if(!s)return!1;n()}}d.buffer=t,d.callback=p},jn(uc,vc),jn(cc,vc),jn(lc,vc),jn(fc,vc),jn(hc,vc),jn(dc,vc),jn(pc,vc);var gc={codes:zu,createDeflate:Uu,createInflate:Du,createDeflateRaw:Fu,createInflateRaw:qu,createGzip:Zu,createGunzip:Wu,createUnzip:Hu,deflate:$u,deflateSync:Ku,gzip:Yu,gzipSync:Gu,deflateRaw:Ju,deflateRawSync:Vu,unzip:Xu,unzipSync:Qu,inflate:tc,inflateSync:ec,gunzip:nc,gunzipSync:rc,inflateRaw:ic,inflateRawSync:oc,Deflate:uc,Inflate:cc,Gzip:lc,Gunzip:fc,DeflateRaw:hc,InflateRaw:dc,Unzip:pc,Zlib:vc},_c=Object.freeze({__proto__:null,codes:zu,createDeflate:Uu,createInflate:Du,createDeflateRaw:Fu,createInflateRaw:qu,createGzip:Zu,createGunzip:Wu,createUnzip:Hu,deflate:$u,deflateSync:Ku,gzip:Yu,gzipSync:Gu,deflateRaw:Ju,deflateRawSync:Vu,unzip:Xu,unzipSync:Qu,inflate:tc,inflateSync:ec,gunzip:nc,gunzipSync:rc,inflateRaw:ic,inflateRawSync:oc,Deflate:uc,Inflate:cc,Gzip:lc,Gunzip:fc,DeflateRaw:hc,InflateRaw:dc,Unzip:pc,Zlib:vc,default:gc}),mc="axios",yc="0.21.1",wc="Promise based HTTP client for the browser and node.js",bc="index.js",kc={test:"grunt test && bundlesize",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},Ec={type:"git",url:"https://github.com/axios/axios.git"},Sc=["xhr","http","ajax","promise","node"],Ac="Matt Zabriskie",Cc={url:"https://github.com/axios/axios/issues"},Tc="https://github.com/axios/axios",Rc={bundlesize:"^0.17.0",coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.0.2","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^20.1.0","grunt-karma":"^2.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^1.0.18","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^1.3.0","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.1","karma-firefox-launcher":"^1.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-opera-launcher":"^1.0.0","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^1.2.0","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^1.7.0","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^5.2.0",sinon:"^4.5.0",typescript:"^2.8.1","url-search-params":"^0.10.0",webpack:"^1.13.1","webpack-dev-server":"^1.14.1"},xc={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},Oc="dist/axios.min.js",Ic="dist/axios.min.js",Nc="./index.d.ts",jc={"follow-redirects":"^1.10.0"},Lc=[{path:"./dist/axios.min.js",threshold:"5kB"}],Bc={name:mc,version:yc,description:wc,main:bc,scripts:kc,repository:Ec,keywords:Sc,author:Ac,license:"MIT",bugs:Cc,homepage:Tc,devDependencies:Rc,browser:xc,jsdelivr:Oc,unpkg:Ic,typings:Nc,dependencies:jc,bundlesize:Lc},Pc=Object.freeze({__proto__:null,name:mc,version:yc,description:wc,main:bc,scripts:kc,repository:Ec,keywords:Sc,author:Ac,license:"MIT",bugs:Cc,homepage:Tc,devDependencies:Rc,browser:xc,jsdelivr:Oc,unpkg:Ic,typings:Nc,dependencies:jc,bundlesize:Lc,default:Bc}),Mc=r(_c),zc=r(Pc),Uc=Ga.http,Dc=Ga.https,Fc=/https:?/;function qc(t,e,n){if(t.hostname=e.host,t.host=e.host,t.port=e.port,t.path=n,e.auth){var r=Be.from(e.auth.username+":"+e.auth.password,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+r}t.beforeRedirect=function(t){t.headers.host=t.host,qc(t,e,t.href)}}var Zc=function(t){return new Promise((function(e,n){var r=function(t){e(t)},i=function(t){n(t)},o=t.data,a=t.headers;if(a["User-Agent"]||a["user-agent"]||(a["User-Agent"]="axios/"+zc.version),o&&!Lt.isStream(o)){if(Be.isBuffer(o));else if(Lt.isArrayBuffer(o))o=Be.from(new Uint8Array(o));else{if(!Lt.isString(o))return i(ve("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",t));o=Be.from(o,"utf-8")}a["Content-Length"]=o.length}var s=void 0;t.auth&&(s=(t.auth.username||"")+":"+(t.auth.password||""));var u=me(t.baseURL,t.url),c=Ia.parse(u),l=c.protocol||"http:";if(!s&&c.auth){var f=c.auth.split(":");s=(f[0]||"")+":"+(f[1]||"")}s&&delete a.Authorization;var h=Fc.test(l),d=h?t.httpsAgent:t.httpAgent,p={path:Pt(c.path,t.params,t.paramsSerializer).replace(/^\?/,""),method:t.method.toUpperCase(),headers:a,agent:d,agents:{http:t.httpAgent,https:t.httpsAgent},auth:s};t.socketPath?p.socketPath=t.socketPath:(p.hostname=c.hostname,p.port=c.port);var v,g=t.proxy;if(!g&&!1!==g){var _=l.slice(0,-1)+"_proxy",m=he.env[_]||he.env[_.toUpperCase()];if(m){var y=Ia.parse(m),w=he.env.no_proxy||he.env.NO_PROXY,b=!0;if(w)b=!w.split(",").map((function(t){return t.trim()})).some((function(t){return!!t&&("*"===t||("."===t[0]&&c.hostname.substr(c.hostname.length-t.length)===t||c.hostname===t))}));if(b&&(g={host:y.hostname,port:y.port,protocol:y.protocol},y.auth)){var k=y.auth.split(":");g.auth={username:k[0],password:k[1]}}}}g&&(p.headers.host=c.hostname+(c.port?":"+c.port:""),qc(p,g,l+"//"+c.hostname+(c.port?":"+c.port:"")+p.path));var E=h&&(!g||Fc.test(g.protocol));t.transport?v=t.transport:0===t.maxRedirects?v=Na:(t.maxRedirects&&(p.maxRedirects=t.maxRedirects),v=E?Dc:Uc),t.maxBodyLength>-1&&(p.maxBodyLength=t.maxBodyLength);var S=v.request(p,(function(e){if(!S.aborted){var n=e,o=e.req||S;if(204!==e.statusCode&&"HEAD"!==o.method&&!1!==t.decompress)switch(e.headers["content-encoding"]){case"gzip":case"compress":case"deflate":n=n.pipe(Mc.createUnzip()),delete e.headers["content-encoding"]}var a={status:e.statusCode,statusText:e.statusMessage,headers:e.headers,config:t,request:o};if("stream"===t.responseType)a.data=n,ge(r,i,a);else{var s=[];n.on("data",(function(e){s.push(e),t.maxContentLength>-1&&Be.concat(s).length>t.maxContentLength&&(n.destroy(),i(ve("maxContentLength size of "+t.maxContentLength+" exceeded",t,null,o)))})),n.on("error",(function(e){S.aborted||i(pe(e,t,null,o))})),n.on("end",(function(){var e=Be.concat(s);"arraybuffer"!==t.responseType&&(e=e.toString(t.responseEncoding),t.responseEncoding&&"utf8"!==t.responseEncoding||(e=Lt.stripBOM(e))),a.data=e,ge(r,i,a)}))}}}));S.on("error",(function(e){S.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==e.code||i(pe(e,t,null,S))})),t.timeout&&S.setTimeout(t.timeout,(function(){S.abort(),i(ve("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",S))})),t.cancelToken&&t.cancelToken.promise.then((function(t){S.aborted||(S.abort(),i(t))})),Lt.isStream(o)?o.on("error",(function(e){i(pe(e,t,null,S))})).pipe(S):S.end(o)}))},Wc={"Content-Type":"application/x-www-form-urlencoded"};function Hc(t,e){!Lt.isUndefined(t)&&Lt.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var $c,Kc={adapter:("undefined"!=typeof XMLHttpRequest?$c=be:void 0!==he&&"[object process]"===Object.prototype.toString.call(he)&&($c=Zc),$c),transformRequest:[function(t,e){return de(e,"Accept"),de(e,"Content-Type"),Lt.isFormData(t)||Lt.isArrayBuffer(t)||Lt.isBuffer(t)||Lt.isStream(t)||Lt.isFile(t)||Lt.isBlob(t)?t:Lt.isArrayBufferView(t)?t.buffer:Lt.isURLSearchParams(t)?(Hc(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Lt.isObject(t)?(Hc(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};Kc.headers={common:{Accept:"application/json, text/plain, */*"}},Lt.forEach(["delete","get","head"],(function(t){Kc.headers[t]={}})),Lt.forEach(["post","put","patch"],(function(t){Kc.headers[t]=Lt.merge(Wc)}));var Yc=Kc;function Gc(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var Jc=function(t){return Gc(t),t.headers=t.headers||{},t.data=Ut(t.data,t.headers,t.transformRequest),t.headers=Lt.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Lt.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||Yc.adapter)(t).then((function(e){return Gc(t),e.data=Ut(e.data,e.headers,t.transformResponse),e}),(function(e){return Dt(e)||(Gc(t),e&&e.response&&(e.response.data=Ut(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},Vc=function(t,e){e=e||{};var n={},r=["url","method","data"],i=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function s(t,e){return Lt.isPlainObject(t)&&Lt.isPlainObject(e)?Lt.merge(t,e):Lt.isPlainObject(e)?Lt.merge({},e):Lt.isArray(e)?e.slice():e}function u(r){Lt.isUndefined(e[r])?Lt.isUndefined(t[r])||(n[r]=s(void 0,t[r])):n[r]=s(t[r],e[r])}Lt.forEach(r,(function(t){Lt.isUndefined(e[t])||(n[t]=s(void 0,e[t]))})),Lt.forEach(i,u),Lt.forEach(o,(function(r){Lt.isUndefined(e[r])?Lt.isUndefined(t[r])||(n[r]=s(void 0,t[r])):n[r]=s(void 0,e[r])})),Lt.forEach(a,(function(r){r in e?n[r]=s(t[r],e[r]):r in t&&(n[r]=s(void 0,t[r]))}));var c=r.concat(i).concat(o).concat(a),l=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===c.indexOf(t)}));return Lt.forEach(l,u),n};function Xc(t){this.defaults=t,this.interceptors={request:new zt,response:new zt}}Xc.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=Vc(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[Jc,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},Xc.prototype.getUri=function(t){return t=Vc(this.defaults,t),Pt(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},Lt.forEach(["delete","get","head","options"],(function(t){Xc.prototype[t]=function(e,n){return this.request(Vc(n||{},{method:t,url:e,data:(n||{}).data}))}})),Lt.forEach(["post","put","patch"],(function(t){Xc.prototype[t]=function(e,n,r){return this.request(Vc(r||{},{method:t,url:e,data:n}))}}));var Qc=Xc;function tl(t){this.message=t}tl.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},tl.prototype.__CANCEL__=!0;var el=tl;function nl(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new el(t),e(n.reason))}))}nl.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},nl.source=function(){var t;return{token:new nl((function(e){t=e})),cancel:t}};var rl=nl;function il(t){var e=new Qc(t),n=Ct(Qc.prototype.request,e);return Lt.extend(n,Qc.prototype,e),Lt.extend(n,e),n}var ol=il(Yc);ol.Axios=Qc,ol.create=function(t){return il(Vc(ol.defaults,t))},ol.Cancel=el,ol.CancelToken=rl,ol.isCancel=Dt,ol.all=function(t){return Promise.all(t)},ol.spread=function(t){return function(e){return t.apply(null,e)}},ol.isAxiosError=function(t){return"object"==typeof t&&!0===t.isAxiosError};var al=ol,sl=ol;al.default=sl;var ul=al,cl=(()=>{const t=ct();return{MINI_APP_LINK:"https://zalo.me/app/link/zapps",MINI_APP_INTERNAL_LINK:"https://h5.zdn.vn/zapps",COOKIE_NAME:{ZOAUTH:"h5.zdn.vn_zoauth",ZACC_SESSiON:"h5.zdn.vn_zacc_session",JS_TOKEN:"h5.zdn.vn_zlink3rd"},APIS:{GET_USER_INFO:"https://graph.zalo.me/v2.0/me"},STORAGE_DATA_LIMIT:102400,STORAGE_LIMIT:5242880,NETWORK_TYPE:{NONE:t.isAndroid?-2:0,WIFI:t.isAndroid?0:1,"2G":(t.isAndroid,2),"3G":t.isAndroid?15:2,"4G":t.isAndroid?13:2}}})();const ll={encode:function(t){var e=[];for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];if(void 0===r)return;if(null===r)return void e.push(n);e.push(encodeURIComponent(n)+"="+encodeURIComponent(r))}return e.join("&")},decode:function(t,e){var n={};if(""===t)return n;for(var r=t.split("&"),i=0;i<r.length;i++){var o=r[i].split("=",2),a=decodeURIComponent(o[0]);if(e&&Object.prototype.hasOwnProperty.call(n,a))throw new URIError("Duplicate key: "+a);n[a]=2===o.length?decodeURIComponent(o[1]):null}return n},appendToUrl:function(t,e){return t+(-1!==t.indexOf("?")?"&":"?")+("string"==typeof e?e:ll.encode(e))},getParameterByName:function(t,e){e||(e=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},getParamsAsObject:function(t){var e={};return t?(t.split("&").map((function(t){var n=t.split("=");n&&2==n.length&&(e[n[0]]=decodeURIComponent(n[1].replace(/\+/g," ")))})),e):e},toQueryString:function(t){if(!t)return"";if("object"!=(void 0===t?"undefined":typeof t))return t;var e=Object.keys(t),n=[];return e.map((function(e){var r=t[e],i=[e,r="object"==(void 0===r?"undefined":typeof r)?JSON.stringify(r):encodeURIComponent(r)].join("=");n.push(i)})),n.join("&")}};var fl={},hl=function(t,e,n){var r=e||"default";return function(){var e=r in fl?fl[r](t,n):t;return e.apply(this,arguments)}};hl.setWrapper=function(t){var e=arguments.length<=1||void 0===arguments[1]?"default":arguments[1];fl[e]=t};var dl={error:{code:1,error_subcode:1357046,message:"Received Invalid JSON reply.",type:"http"}};function pl(t){try{return null===t?dl:JSON.parse(t)}catch(t){return dl}}var vl={execute:function(t,e,n,r){n.suppress_http_code=1;var i=ll.encode(n);"post"!=e&&(t=ll.appendToUrl(t,i),i="");var o=function(t,e){if(!self.XMLHttpRequest)return null;var n=new XMLHttpRequest,r=function(){};if(!("withCredentials"in n))return null;n.open(t,e,!0),n.setRequestHeader("Content-type","application/x-www-form-urlencoded");var i={send:function(t){n.send(t)}},o=hl((function(){o=r,"onload"in i&&i.onload(n)}),"entry","XMLHttpRequest:load"),a=hl((function(){a=r,"onerror"in i&&i.onerror(n)}),"entry","XMLHttpRequest:error");return n.onload=function(){o()},n.onerror=function(){a()},n.onreadystatechange=function(){4==n.readyState&&(200==n.status?o():a())},i}(e,t);return!!o&&(o.onload=function(t){r(pl(t.responseText))},o.onerror=function(t){t.responseText?r(pl(t.responseText)):r({error:{code:1,error_subcode:1357045,message:"unknown error (empty response)",status:t.status,type:"http"}})},o.send(i),!0)}};class gl{constructor(){this._accessTk=vt("zacc_session")||"DEFAULT_ACCESS_TOKEN",this._jsAccessTk=vt("zlink3rd")||"DEFAULT_JS_TOKEN",this.results=[],this._userAgent=ut(),this._device=ct(),this._jsCallFuncCallbacks={},this._listenerEvent={},this.registerListenerEvent("h5.event.paused","",(()=>{if(this.results.length>0){let t=this.results;this.results=[];try{this.sendLogData(t)}catch(t){}}})),this.sendLogTimer?clearInterval(this.sendLogTimer):this.sendLogTimer=setInterval((()=>{if(this.results.length>0){let t=this.results;this.results=[];try{this.sendLogData(t)}catch(t){}}}),5e3)}static getInstance(){return gl.instance||(gl.instance=new gl),gl.instance}set accessTk(t){this._accessTk=t}set jsAccessTk(t){this._jsAccessTk=t}sendLogData(t){try{vl.execute("https://h5.zalo.me/log/async","post",{appId:window.APP_ID,data:JSON.stringify(t)},(t=>{}))}catch(t){}}onJSCall(t,e){try{const n=gt(e);if(this._jsCallFuncCallbacks[t]){const e=this._jsCallFuncCallbacks[t].callback,r=this._jsCallFuncCallbacks[t].timeout;if(e){try{e.call(this,n)}catch(t){console.error("Call callback error",t)}r&&clearTimeout(r),this._jsCallFuncCallbacks[t]=null,delete this._jsCallFuncCallbacks[t]}}this.results.push({action:n.action,error:n.error_code})}catch(t){console.log("onJSCall","error",t)}}onMultiJSCall(t,e){try{const n=gt(e);if(this._jsCallFuncCallbacks[t]){const e=this._jsCallFuncCallbacks[t].callback,r=this._jsCallFuncCallbacks[t].timeout;if(e){try{e.call(this,n)}catch(t){console.error("Call callback error",t)}r&&clearTimeout(r)}}this.results.push({action:n.action,error:n.error_code})}catch(t){console.log("onMultiJSCall","error",t)}}jsCallback(t,e,n){ZaloJavaScriptInterface.jsH5EventCallback(t,e,n)}registerListenerEvent(t,e,n){console.log("register "+t+" : "+e),this._listenerEvent[t]={handler:n,data:e}}nativeEventHandler(t,e,n){if(console.log("eventId:",t,"eventName",e,"eventData",n),this._listenerEvent[e]){const{handler:r,data:i}=this._listenerEvent[e];this.jsCallback(t,e,i);try{r(n)}catch(t){console.log("nativeEventHandler","H5 handle event fail",e,t)}}}defaultCallback(t){null!=t&&(t=gt(t))}jsCall(t,e,n,r=!1,i=3,o=!0){try{const a=((t="")=>`${t.normalize("NFD").replace(it,"").replace(ot,"d").replace(at,"").toLowerCase()}_${Math.random().toString(36).substr(2,4)}`)(t);if(!this._device.isMobile||d.isEmpty(t))return this.onJSCall(a,{error_code:-13,error_message:"params invalid!",data:{device:this._device.isMobile,jsToken:this._jsAccessTk,access_token:this._accessTk},action:t}),!1;null==e&&(e={}),n||(n=this.defaultCallback);const s={error_code:-14,error_message:"Request Timeout!",data:{},action:t};this._jsCallFuncCallbacks[a]={timeout:o&&V.includes(t)&&setTimeout((()=>{this.onJSCall(a,s)}),8e3),callback:n};try{return e=_t(e),r?this._device.isIOS?ZaloJavaScriptInterface.jsCall(this._jsAccessTk,t,this._accessTk,e,window.onMultiJSCall(a)):ZaloJavaScriptInterface.jsCall(this._jsAccessTk,t,this._accessTk,e,`window.onMultiJSCall('${a}')`):this._device.isIOS?ZaloJavaScriptInterface.jsCall(this._jsAccessTk,t,this._accessTk,e,window.onJSCall(a)):ZaloJavaScriptInterface.jsCall(this._jsAccessTk,t,this._accessTk,e,`window.onJSCall('${a}')`)}catch(o){if(!(i-- >0)){const n={error_code:-5,error_message:"Not ready!",data:{userAgent:this._userAgent,options:e,jsToken:this._jsAccessTk,access_token:this._accessTk},action:t,js_error:o};return this.onJSCall(a,n),!1}setTimeout((()=>{this.jsCall(t,e,n,r,i)}),500)}}catch(t){console.log("jsCall","error",t)}return!1}}class _l{constructor(t,e,n){this.code=t,this.message=e,this.api=n}toString(){return`api: ${this.api}; code: ${this.code}; message: ${this.message}`}}class ml extends _l{constructor(t,e){super(t,e),this.message=`${e}. ${et.READ_MORE}`,this.handler()}handler(){switch(this.code){case t.NativeCode.token_invalid:this.code=Q,this.message=et.LOGIN_REQUIRED;break;case t.NativeCode.not_permission:this.code=tt,this.message=et.NOT_PERMISSION;break;case t.NativeCode.client_not_support:this.message=et.CLIENT_NOT_SUPPORT;break;case t.NativeCode.decode_failed:this.message=et.DECODE_FAILED}}}const yl={handler:null,setHandler(t){this.handler=t}};yl.setHandler(((t,e)=>e instanceof _l?(e.api=t,e):new _l(-2001,d.isNull(e.message)?"Unknown Error":e.message,t)));const wl=(t,e,n)=>{const r=n.value;return n.value=function(...t){return Et(this,void 0,void 0,(function*(){const{success:n,fail:i}=Array.isArray(t)&&t.length>0&&t[0];return new Promise(((o,a)=>Et(this,void 0,void 0,(function*(){try{const e=yield r.apply(this,t);!d.isNull(n)&&d.isFunction(n)?n.call(null,e,this):o(e)}catch(t){const{handler:n}=yl,r=n.call(null,e,t,this);window.zmpSentry&&window.zmpSentry.throwError(r.toString()),!d.isNull(i)&&d.isFunction(i)?i.call(null,r,this):console.error("Error:",r)}}))))}))},n},bl=(t,e,n)=>{const r=n.value;return n.value=function(...t){try{return r.apply(this,t)}catch(t){const{handler:n}=yl;!d.isNull(n)&&d.isFunction(n)?n.call(null,e,t,this):console.warn(t.message)}},n};var kl;class El{constructor(){kl.set(this,void 0),At(this,kl,gl.getInstance())}setZAccSession(t){St(this,kl).accessTk=t}setJSToken(t){St(this,kl).jsAccessTk=t}callNative(t,e,n){return new Promise(((r,i)=>{St(this,kl).jsCall(t,e,(o=>{if(o&&o.error_code>=0&&o.action==t)r(o.data||{}),(null==n?void 0:n.callback)&&n.callback(o,null);else if(o&&o.error_code<0){const r=new ml(o.error_code,`${o.action}: ${o.error_message}`);try{window.zmpSentry&&window.zmpSentry.captureMessage(`${t}: call native fail`,{extra:{data:e,rs:o}})}catch(t){}i(r),(null==n?void 0:n.callback)&&n.callback(o,r)}}),null==n?void 0:n.isMultiCallback,null==n?void 0:n.nRetry,null==n?void 0:n.haveTimeout)}))}listenerEventNative(t,e,n){St(this,kl).registerListenerEvent(t,e,n)}}kl=new WeakMap;const Sl={loginFailed:()=>new _l(Q,et.LOGIN_FAILED),loginRequired:()=>new _l(X,et.LOGIN_REQUIRED),missingParam:t=>new _l(X,`Missing required argument: ${t}`),wrongTypeParam:(t,e,n)=>new _l(X,`Wrong type of parameter '${t}'. Expected ${e}, but got ${n}`)};var Al,Cl,Tl,Rl,xl,Ol="2.12.2";class Il{static getVersion(){return Ol}static getSystemInfo(){return{version:lt("version-id")||"",apiVersion:Ol,zaloVersion:ft(),platform:ht(),language:navigator.language}}static getAppInfo(){return Et(this,void 0,void 0,(function*(){let t={};const e=this.getAppId(),n=this.getSystemInfo(),r=ll.appendToUrl(`https://h5.zalo.me/${nt}`,{appId:e,versionStatus:0,currentVersion:n.version}),i=yield fetch(r,{credentials:"include"});if(i.ok){const e=yield i.json();if(e.err<0||!e.data)throw new Error(e);t={name:e.data.name,version:e.data.version,description:e.data.description,appUrl:e.data.appUrl,qrCodeUrl:e.data.qrCodeUrl}}return t}))}}class Nl{static setNavigationBarTitle(t){return Et(this,void 0,void 0,(function*(){yield this.callNative(A,{title:t.title},{haveTimeout:!1})}))}static setNavigationBarColor(t){return Et(this,void 0,void 0,(function*(){if(d.isString(t.color)&&t.color.length>0){const e={};d.isEmpty(t.color)||(e.backgroundColor=t.color),d.isEmpty(t.textColor)||(e.textColor=t.textColor),yield this.callNative($,{actionbarType:5,dataConfig:e,homeConfig:{enable:this.isShowHomeButton?1:0,url:`${cl.MINI_APP_INTERNAL_LINK}/${this.getAppId()}/`}},{haveTimeout:!1}),this.isShowNavBar=!0}else{const e={};d.isEmpty(t.statusBarColor)||(e.backgroundColor=t.statusBarColor),d.isEmpty(t.textColor)||(e.textColor=t.textColor),yield this.callNative($,{actionbarType:6,dataConfig:e},{haveTimeout:!1}),this.isShowNavBar=!1}}))}static setNavigationBarLeftButton(t){return Et(this,void 0,void 0,(function*(){let e={};switch(t.type){case"none":this.isShowHomeButton=!1,e={buttonType:3,dataConfig:{confirmToExit:1},homeConfig:{enable:0,url:`${cl.MINI_APP_INTERNAL_LINK}/${this.getAppId()}/`}};break;case"back":this.isShowHomeButton=!1,e={buttonType:0,dataConfig:{confirmToExit:1},homeConfig:{enable:0,url:`${cl.MINI_APP_INTERNAL_LINK}/${this.getAppId()}/`}};break;case"home":this.isShowHomeButton=!0,e={buttonType:3,dataConfig:{confirmToExit:1},homeConfig:{enable:1,url:`${cl.MINI_APP_INTERNAL_LINK}/${this.getAppId()}/`}};break;case"both":this.isShowHomeButton=!0,e={buttonType:0,dataConfig:{confirmToExit:1},homeConfig:{enable:1,url:`${cl.MINI_APP_INTERNAL_LINK}/${this.getAppId()}/`}}}yield this.callNative(x,Object.assign({},e),{haveTimeout:!1})}))}static onBackButtonClick(t){return Et(this,void 0,void 0,(function*(){yield this.listenerEventNative("h5.event.action.back",'{"handle_h5": 1}',(()=>{t.handler()}))}))}static setNavigationBarRightButton(t){return Et(this,void 0,void 0,(function*(){yield this.callNative(T,{supportToolBar:t.supportToolBar,reset:t.reset,menuListItems:t.menuListItems,zapp:this.getAppId()})}))}}class jl{static setBackgroundColor(t){return Et(this,void 0,void 0,(function*(){d.isString(t.backgroundColor)&&t.backgroundColor.length>0&&(yield this.callNative($,{actionbarType:this.isShowNavBar?5:6,dataConfig:{backgroundColor:t.backgroundColor,textColor:t.textColor}}))}))}}class Ll{constructor(t,e,n,r){this.title=r,this.severity=e;const i=new Date;if(this.time=i.toLocaleTimeString(),this.content=t,n>0){const t=(new Error).stack;this.stack=t?t.replace("Error\n",""):""}}toString(){return(this.content.stack?[this.title,this.severity.toUpperCase(),this.time,this.content,this.content.stack.replace("Error:","")]:[this.title,this.severity.toUpperCase(),this.time,JSON.stringify(this.content),this.stack]).join(" ")}}Al=new WeakMap,Cl=new WeakMap,Tl=new WeakMap,Rl=new WeakMap,xl=new WeakMap;const Bl=new class{constructor(){Al.set(this,3),Cl.set(this,["none","error","warn","info"]),Tl.set(this,"[zmp] > "),Rl.set(this,{error:0,warn:0,info:0,firstError:null,lastError:null}),xl.set(this,((t,e,n)=>{St(this,Rl)[St(this,Cl)[t]]++;const r=St(this,Cl)[t];if(At(this,Tl,St(this,Tl)+("string"!=typeof e?new Ll(e,r,t,n).toString():e)),!(t>St(this,Al)))switch(t){case 1:console.error(St(this,Tl));break;case 2:console.warn(St(this,Tl));break;case 3:console.info(St(this,Tl));break;default:throw new Error("internal")}}))}setLogLevel(t){At(this,Al,t)}info(t){St(this,xl).call(this,3,t)}warn(t,e){St(this,xl).call(this,2,t,e)}error(t,e){St(this,xl).call(this,1,t,e)}getMetrics(){return St(this,Rl)}};class Pl{static setDeviceOrientation(e){return Et(this,void 0,void 0,(function*(){yield this.callNative(q,{autoRotate:t.OrientationType[e.rotate]})}))}static getNetworkType(e){return Et(this,void 0,void 0,(function*(){return yield this.callNative(C,{url:window.location.href,featureId:""}).then((e=>{let n;switch(e.network){case cl.NETWORK_TYPE.NONE:n=t.NetworkType.none;break;case cl.NETWORK_TYPE.WIFI:n=t.NetworkType.wifi;break;case cl.NETWORK_TYPE["2G"]:case cl.NETWORK_TYPE["3G"]:case cl.NETWORK_TYPE["4G"]:n=t.NetworkType.cellular;break;default:n=t.NetworkType.unknown}return{networkType:n}}))}))}static onNetworkStatusChange(t){return Et(this,void 0,void 0,(function*(){yield this.listenerEventNative("h5.event.connection.changed","",(e=>{const n=JSON.parse(e),r=n&&n.state;this.getNetworkType().then((e=>{const n={isConnected:"CONNECTED"===r,networkType:e&&e.networkType};t(n)})).catch((t=>{Bl.error(t,"onNetworkStatusChange")}))}))}))}static startBeaconDiscovery(t){var e,n,r,i,o;return Et(this,void 0,void 0,(function*(){const a={subaction:0,scanning_type:d.isNumber(null==t?void 0:t.scanningType)?t.scanningType:0,data:{scan_from_source:d.isString(null==t?void 0:t.scanFromSource)?t.scanFromSource:"",expire:d.isNumber(null==t?void 0:t.expire)?t.expire:3e3,monitor_interval:d.isNumber(null==t?void 0:t.monitorInterval)?t.monitorInterval:60,domain:d.isString(null==t?void 0:t.domain)?t.domain:"",scan_config:{scan_time:d.isNumber(null===(e=null==t?void 0:t.scanConfig)||void 0===e?void 0:e.scanTime)?t.scanConfig.scanTime:15e3,time_between_scan:d.isNumber(null===(n=null==t?void 0:t.scanConfig)||void 0===n?void 0:n.timeBetweenScan)?t.scanConfig.timeBetweenScan:1e4,beacon_timeout:d.isNumber(null===(r=null==t?void 0:t.scanConfig)||void 0===r?void 0:r.beaconTimeout)?t.scanConfig.beaconTimeout:3e4,delayCheckConnectedTimeout:d.isNumber(null===(i=null==t?void 0:t.scanConfig)||void 0===i?void 0:i.delayCheckConnectedTimeout)?t.scanConfig.delayCheckConnectedTimeout:5e3,beaconConnectedTimeout:d.isNumber(null===(o=null==t?void 0:t.scanConfig)||void 0===o?void 0:o.beaconConnectedTimeout)?t.scanConfig.beaconConnectedTimeout:6e5},items:Array.isArray(null==t?void 0:t.items)?null==t?void 0:t.items:[]}};return yield this.callNative(Z,Object.assign({},a)),!0}))}static stopBeaconDiscovery(t){return Et(this,void 0,void 0,(function*(){return yield this.callNative(Z,Object.assign({},{subaction:2})),!0}))}static getBeacons(t){return Et(this,void 0,void 0,(function*(){return yield this.callNative(Z,Object.assign({},{subaction:1}),{isMultiCallback:!0}).then((t=>{const e={beacons:[]};return Array.isArray(t)&&t.forEach((t=>{const n={uuid:t.uuid,major:t.major,minor:t.minor,distance:t.distance,rssi:t.rssi};e.beacons.push(n)})),e}))}))}static stopBluetoothDevicesDiscovery(){return Et(this,void 0,void 0,(function*(){return this.callNative("",{})}))}static startBluetoothDevicesDiscovery(t){return Et(this,void 0,void 0,(function*(){return this.callNative("",Object.assign({},t))}))}static openBluetoothAdapter(){return Et(this,void 0,void 0,(function*(){return this.callNative("",{})}))}static onBluetoothDeviceFound(){return Et(this,void 0,void 0,(function*(){return this.callNative("",{})}))}static onBluetoothAdapterStateChange(){return Et(this,void 0,void 0,(function*(){return Promise.resolve()}))}static getConnectedBluetoothDevices(t){return Et(this,void 0,void 0,(function*(){const e={services:t.services||[]};return this.callNative("",e)}))}static getBluetoothDevices(){return Et(this,void 0,void 0,(function*(){return this.callNative("",{})}))}static getBluetoothAdapterState(){return Et(this,void 0,void 0,(function*(){return this.callNative("",{})}))}static closeBluetoothAdapter(){return Et(this,void 0,void 0,(function*(){return this.callNative("",{})}))}static scanQRCode(t){return Et(this,void 0,void 0,(function*(){return yield this.callNative(z,{skipOpenLink:!0})}))}static showToast(t){return Et(this,void 0,void 0,(function*(){yield this.callNative(B,{toast:t.message})}))}static hideKeyboard(t){return Et(this,void 0,void 0,(function*(){yield this.callNative(P,{})}))}static openPhone(t){return Et(this,void 0,void 0,(function*(){yield this.callNative(M,{phoneNum:t.phoneNumber,phoneCode:t.phoneNumber})}))}static openSMS(t){return Et(this,void 0,void 0,(function*(){yield this.callNative(U,{content:t.content,phoneCode:t.phoneNumber})}))}static keepScreen(t){return Et(this,void 0,void 0,(function*(){return yield this.callNative(F,{data:{keep_screen_on:t.keepScreenOn?1:0}})}))}static openBioAuthentication(t){return Et(this,void 0,void 0,(function*(){return yield this.callNative(I,{secret_data:t.secretData,app_id:this.getZAppId(),ui:{title:t.ui.title,sub_title:t.ui.subTitle,negative_text:t.ui.negativeButtonText},require_fingerprint:t.requireFingerprint?1:0}).then((t=>{var e,n,r,i;return{code:null==t?void 0:t.error_code,message:null==t?void 0:t.error_message,data:{domain:null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.domain,code:null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.error_code,message:null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.error_message,payToken:null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.pay_token}}}))}))}static checkStateBioAuthentication(t){return Et(this,void 0,void 0,(function*(){return yield this.callNative(N,{}).then((t=>({bioState:null==t?void 0:t.bio_state})))}))}static vibrate(e){return Et(this,void 0,void 0,(function*(){return yield this.callNative(K,{type:t.VibrateType[e.type],vibrate_time:e.milliseconds})}))}}var Ml,zl,Ul,Dl,Fl,ql,Zl,Wl,Hl,$l,Kl,Yl,Gl,Jl,Vl,Xl,Ql,tf,ef,nf,rf,of,af;class sf{constructor(t){Ml.set(this,localStorage),zl.set(this,void 0),Ul.set(this,void 0),ct(),At(this,Ul,{keys:new Set,currentSize:0,limitSize:cl.STORAGE_LIMIT}),At(this,zl,t),this.findAllCurrentDataByApp(t)}findAllCurrentDataByApp(t){try{let e;for(e in St(this,Ml)){if(t){if(e.split("_")[0]!==t)continue}St(this,Ul).keys.add(e)}}catch(t){Bl.error(t,"LocalResourceStorage > findAllCurrentDataByApp")}}get(t){let e=new Map;return t.forEach((t=>{e.set(t,this.getSync(t))})),Promise.resolve(e)}getSync(t){return St(this,zl)&&(t=`${St(this,zl)}_${t}`),St(this,Ul).keys.has(t)?St(this,Ml).getItem(t):null}set(t){return Et(this,void 0,void 0,(function*(){return Object.entries(t).forEach((([t,e])=>{this.setSync(t,e.replace(/\\"/g,'"'))})),Promise.resolve({errorKeys:[]})}))}setSync(t,e){St(this,zl)&&(t=`${St(this,zl)}_${t}`),St(this,Ml).setItem(t,e),St(this,Ul).keys.add(t)}getInfo(){return Et(this,void 0,void 0,(function*(){return Promise.resolve(this.getInfoSync())}))}getInfoSync(){const t=((t,e)=>{let n,r,i=0;for(r in t){const o=r.split("_")[0];t.hasOwnProperty(r)&&(e&&o!==e||(n=2*(t[r].length+r.length),i+=n))}return i})(St(this,Ml),St(this,zl));return{currentSize:d.isNumber(t)?Number((t/1024).toFixed(2)):0,limitSize:Number((cl.STORAGE_LIMIT/1024).toFixed(2))}}remove(t){return Et(this,void 0,void 0,(function*(){return t.forEach((t=>{this.removeSync(t)})),Promise.resolve({errorKeys:[]})}))}removeSync(t){St(this,zl)&&(t=`${St(this,zl)}_${t}`),St(this,Ul).keys.has(t)&&(St(this,Ml).removeItem(t),St(this,Ul).keys.delete(t))}clear(){return Et(this,void 0,void 0,(function*(){return Promise.resolve(this.clearSync())}))}clearSync(){St(this,Ul).keys.forEach((t=>{St(this,zl)&&t.indexOf(St(this,zl))<0||(St(this,Ml).removeItem(t),St(this,Ul).keys.delete(t))}))}}Ml=new WeakMap,zl=new WeakMap,Ul=new WeakMap;class uf extends El{constructor(t){super(),Dl.set(this,void 0),Fl.set(this,void 0),At(this,Fl,{keys:new Set,currentSize:0,limitSize:cl.STORAGE_LIMIT}),At(this,Dl,t)}get(t){return Et(this,void 0,void 0,(function*(){return yield this.callNative(Y,{mpds_action:"mpds.get",mpds_data:{keys:t},appId:St(this,Dl)},{isMultiCallback:!1}).then((t=>{let e=new Map;return t&&t.mpds_data&&t.mpds_data.map&&(e=new Map(Object.entries(t.mpds_data.map))),e}))}))}set(t){return Et(this,void 0,void 0,(function*(){return{errorKeys:yield this.callNative(Y,{mpds_action:"mpds.set",mpds_data:{map:t},appId:St(this,Dl)},{isMultiCallback:!1}).then((t=>{let e=[];return t&&t.mpds_data&&t.mpds_data.error_keys&&(e=t.mpds_data.error_keys),e}))}}))}getInfo(){return Et(this,void 0,void 0,(function*(){const t=yield this.callNative(Y,{mpds_action:"mpds.get.size",mpds_data:{},appId:St(this,Dl)},{isMultiCallback:!1}).then((t=>{let e=0;return t&&t.mpds_data&&t.mpds_data.size&&(e=t.mpds_data.size),e}));return{currentSize:d.isNumber(t)?Number(t/1024):0,limitSize:Number(cl.STORAGE_LIMIT/1024)}}))}remove(t){return Et(this,void 0,void 0,(function*(){return{errorKeys:yield this.callNative(Y,{mpds_action:"mpds.remove.key",mpds_data:{keys:t},appId:St(this,Dl)},{isMultiCallback:!1}).then((t=>{let e=[];return t&&t.mpds_data&&t.mpds_data.error_keys&&(e=t.mpds_data.error_keys),e}))}}))}clear(){return Et(this,void 0,void 0,(function*(){yield this.callNative(Y,{mpds_action:"mpds.clear.appData",mpds_data:{},appId:St(this,Dl)})}))}}Dl=new WeakMap,Fl=new WeakMap;class cf{getDataFromStorage(t){return Et(this,void 0,void 0,(function*(){const e=this.getInstance(),n=yield e.get(t),r={};return n.forEach(((t,e)=>{r[e]=wt(t)})),r}))}putDataToStorage(t){return Et(this,void 0,void 0,(function*(){const e=this.getInstance(),n={};return Object.entries(t).forEach((([t,e])=>{d.isUndefined(e)||d.isNull(e)||(n[t]=yt(e))})),yield e.set(n)}))}removeDataFromStorage(t){return Et(this,void 0,void 0,(function*(){const e=this.getInstance();return yield e.remove(t)}))}clearStorage(){return Et(this,void 0,void 0,(function*(){const t=this.getInstance();yield t.clear()}))}getStorageInfo(){return Et(this,void 0,void 0,(function*(){const t=this.getInstance();return yield t.getInfo()}))}}class lf extends cf{constructor(t){super(),ql.set(this,void 0),At(this,ql,t)}getInstance(){return new sf(St(this,ql))}}ql=new WeakMap;class ff extends cf{constructor(t){super(),Zl.set(this,void 0),At(this,Zl,t)}getInstance(){return new uf(St(this,Zl))}}Zl=new WeakMap;class hf{static setStorage(t){return Et(this,void 0,void 0,(function*(){let e=new lf(this.getAppId());return mt()&&(e=new ff(this.getAppId())),yield e.putDataToStorage(t.data)}))}static getStorage(t){return Et(this,void 0,void 0,(function*(){let e=new lf(this.getAppId());mt()&&(e=new ff(this.getAppId()));return yield e.getDataFromStorage(t.keys)}))}static getStorageInfo(t){return Et(this,void 0,void 0,(function*(){let t=new lf(this.getAppId());return mt()&&(t=new ff(this.getAppId())),yield t.getStorageInfo()}))}static removeStorage(t){return Et(this,void 0,void 0,(function*(){let e=new lf(this.getAppId());return mt()&&(e=new ff(this.getAppId())),yield e.removeDataFromStorage(t.keys)}))}static clearStorage(t={}){return Et(this,void 0,void 0,(function*(){let t=new lf(this.getAppId());mt()&&(t=new ff(this.getAppId())),yield t.clearStorage()}))}}class df{static getUserInfo(t){return Et(this,void 0,void 0,(function*(){const t=yield this.getAccessToken();return{userInfo:yield ul.get(cl.APIS.GET_USER_INFO,{params:{fields:"id,birthday,name,gender,picture",access_token:t}}).then((t=>{const e=t.data;return{id:e.id,name:e.name,birthday:e.birthday,gender:e.gender,avatar:e.picture&&e.picture.data&&e.picture.data.url}}))}}))}static getPhoneNumer(t){return new Promise(((t,e)=>{this.callNative(J,{},{isMultiCallback:!0,callback:(n,r)=>{if(r&&e(r),0===n.error_code){const e={number:n.data};t(e)}}})}))}}class pf{static closeApp(t){return Et(this,void 0,void 0,(function*(){yield this.callNative(O,{})}))}static openMiniApp(t){return Et(this,void 0,void 0,(function*(){const e=null==t?void 0:t.appId,n=(null==t?void 0:t.params)||{},r=Object.entries(n).map((function([t,e]){return[t,e].join("=")})).join("&");yield this.callNative(H,{mpUrl:`${cl.MINI_APP_INTERNAL_LINK}/${e}/${r.length>0?"?"+r:""}`,mpInfo:{appId:e}})}))}static openWebview(t){return Et(this,void 0,void 0,(function*(){yield this.callNative(m,{url:t.url})}))}}class vf{static getLocation(t){return new Promise(((t,e)=>{this.callNative(j,{silent_request:!1,permission_description:"Cho phép Zalo truy cập vào vị trí của thiết bị này?"},{isMultiCallback:!0,haveTimeout:!1,callback:(n,r)=>{if(r&&e(r),0===n.error_code){const e=n.data,r={latitude:e.latitude,longitude:e.longitude,timestamp:e.timestamp,provider:e.provider};t(r)}}})}))}static sendLocation(t){return Et(this,void 0,void 0,(function*(){yield this.callNative(L,{title:t.title,touserid:t.toUserId,zapp:this.getZAppId()})}))}}class gf{static requestCameraPermission(t){return new Promise(((t,e)=>{this.callNative(S,{},{callback:(n,r)=>{-2===n.error_code||n.error_code>=0?t({userAllow:-2!==n.error_code,message:n.error_message}):e(r)}})}))}static saveImageToPhotosAlbum(t){return Et(this,void 0,void 0,(function*(){let e={};return e=d.isEmpty(t.imageBase64Data)?Object.assign(Object.assign({},e),{imageUrl:t.imageUrl}):Object.assign(Object.assign({},e),{imageBase64Data:t.imageBase64Data}),yield this.callNative(W,Object.assign({},e))}))}}class _f{static viewOAQr(t){return Et(this,void 0,void 0,(function*(){yield this.callNative(D,{dpn:t.displayName,uid:t.id,zapp:this.getZAppId()},{haveTimeout:!1})}))}static openProfile(e){return Et(this,void 0,void 0,(function*(){return yield this.callNative(_,{uId:e.id,type:t.ProfileType[e.type],zapp:this.getZAppId(),sourceId:e.sourceId,sourceIndex:e.sourceIndex})}))}static openChat(e){return Et(this,void 0,void 0,(function*(){return yield this.callNative(y,{uId:e.id,type:t.ChatType[e.type],zapp:this.getZAppId(),sourceId:e.sourceId,sourceIndex:e.sourceIndex})}))}static openPostFeed(e){return Et(this,void 0,void 0,(function*(){let n={};switch(e.type){case"image":n={photoUrl:e.data.imageUrl};break;case"link":n={link:e.data.link,title:e.data.title,thumb:e.data.thumb,description:e.data.description};break;case"profile":n={avt:e.data.avatar,uid:e.data.id,dpn:e.data.displayName}}return yield this.callNative(w,Object.assign(Object.assign({type:t.PostFeedType[e.type]},n),{zapp:this.getZAppId()})).then((t=>({status:t.status,shareType:t.share_type,numberOfUser:t.uid_to_size})))}))}static followOA(t){return Et(this,void 0,void 0,(function*(){yield this.callNative(b,{uid:t.id,showDialogConfirm:!0,zapp:this.getZAppId()},{haveTimeout:!1})}))}static unfollowOA(t){return Et(this,void 0,void 0,(function*(){yield this.callNative(k,{uid:t.id,zapp:this.getZAppId()},{haveTimeout:!1})}))}static openShareSheet(e){return Et(this,void 0,void 0,(function*(){let n={};switch(e.type){case"image":n={photoUrl:e.data.imageUrl};break;case"gif":n={photoUrl:e.data.imageUrl,gifUrl:e.data.gifUrl,width:e.data.width,height:e.data.height};break;case"video":n={videoThumb:e.data.videoThumb,videoUrl:e.data.videoUrl,width:e.data.width,height:e.data.height};break;case"link":n={link:e.data.link,chatOnly:e.data.chatOnly?1:0};break;case"oa":n={uid:e.data.id}}return yield this.callNative(E,Object.assign(Object.assign({type:t.ShareSheetType[e.type]},n),{zapp:this.getZAppId()}),{haveTimeout:!1}).then((t=>({status:t.status,shareType:t.share_type,numberOfUser:t.uid_to_size})))}))}static createShortcut(t){return Et(this,void 0,void 0,(function*(){yield this.callNative(R,{url:`${cl.MINI_APP_LINK}/${this.getAppId()}/`,title:document.title,iconUrl:`https:${lt("og:image:url")}`})}))}}class mf{static getRouteParams(){let t={};const e=window.location.href;try{let n=new URL(e).searchParams.toString();n&&(t=ll.getParamsAsObject(n))}catch(t){throw new Error("Url không hợp lệ")}return t}static redirectToPreviousMiniApp(t){return Et(this,void 0,void 0,(function*(){return yield this.callNative(G,{result:yt(t.data)})}))}static onCallbackData(t){return Et(this,void 0,void 0,(function*(){yield this.listenerEventNative("h5.event.webview.result","",(e=>{console.log(e);const n={data:wt(e)};console.log(typeof n.data),t(n)}))}))}}class yf extends El{constructor(){super(),Wl.set(this,window.zAppID),Hl.set(this,window.APP_ID),$l.set(this,window.APP_CONFIG||{}),Kl.set(this,void 0),Yl.set(this,void 0),Gl.set(this,{timer:{getToken:0}}),Jl.set(this,(()=>{const t=St(this,$l).app||null;if(t){const e=t.title,n=t.headerColor,r=t.textColor,i=t.statusBarColor,o=t.leftButton;if(d.isString(e)&&this.setNavigationBarTitle({title:e}),d.isString(n)){const t={color:n};!d.isString(r)||"black"!==r&&"white"!==r||(t.textColor=r),d.isString(i)&&(t.statusBarColor=i),this.setNavigationBarColor(t)}d.isString(o)&&this.setNavigationBarLeftButton({type:o})}})),Vl.set(this,(()=>{try{St(this,Jl).call(this)}catch(t){console.error(t)}})),Xl.set(this,(()=>new Promise(((t,e)=>{this.callNative("action.jump.login",{}).then((e=>{const n=e&&e.cookiesOAuthLogins||[],r=n.find((t=>t.name===cl.COOKIE_NAME.JS_TOKEN));r&&(this.setJSToken(r.value),window.ZJSBridge.setJSToken&&window.ZJSBridge.setJSToken(r.value)),t(n)})).catch((t=>{e(t)}))})))),Ql.set(this,Nl.setNavigationBarRightButton),this.getVersion=Il.getVersion,this.getSystemInfo=Il.getSystemInfo,this.setNavigationBarTitle=Nl.setNavigationBarTitle,this.setNavigationBarColor=Nl.setNavigationBarColor,this.setNavigationBarLeftButton=Nl.setNavigationBarLeftButton,this.setBackgroundColor=jl.setBackgroundColor,this.setDeviceOrientation=Pl.setDeviceOrientation,this.setStorage=hf.setStorage,this.getStorage=hf.getStorage,this.getStorageInfo=hf.getStorageInfo,this.removeStorage=hf.removeStorage,this.clearStorage=hf.clearStorage,this.getUserInfo=df.getUserInfo,this.getNetworkType=Pl.getNetworkType,this.onNetworkStatusChange=Pl.onNetworkStatusChange,this.startBeaconDiscovery=Pl.startBeaconDiscovery,this.stopBeaconDiscovery=Pl.stopBeaconDiscovery,this.getBeacons=Pl.getBeacons,this.closeApp=pf.closeApp,this.getLocation=vf.getLocation,this.onBackButtonClick=Nl.onBackButtonClick,this.stopBluetoothDevicesDiscovery=Pl.stopBluetoothDevicesDiscovery,this.startBluetoothDevicesDiscovery=Pl.stopBluetoothDevicesDiscovery,this.openBluetoothAdapter=Pl.openBluetoothAdapter,this.onBluetoothDeviceFound=Pl.onBluetoothDeviceFound,this.onBluetoothAdapterStateChange=Pl.onBluetoothAdapterStateChange,this.getConnectedBluetoothDevices=Pl.getConnectedBluetoothDevices,this.getBluetoothDevices=Pl.getBluetoothDevices,this.getBluetoothAdapterState=Pl.getBluetoothAdapterState,this.closeBluetoothAdapter=Pl.closeBluetoothAdapter,this.scanQRCode=Pl.scanQRCode,this.openProfile=_f.openProfile,this.openChat=_f.openChat,this.openPostFeed=_f.openPostFeed,this.followOA=_f.followOA,this.unFollowOA=_f.unfollowOA,this.openShareSheet=_f.openShareSheet,this.requestCameraPermission=gf.requestCameraPermission,this.createShortcut=_f.createShortcut,this.openBioAuthentication=Pl.openBioAuthentication,this.checkStateBioAuthentication=Pl.checkStateBioAuthentication,this.sendLocation=vf.sendLocation,this.showToast=Pl.showToast,this.hideKeyboard=Pl.hideKeyboard,this.openPhone=Pl.openPhone,this.openSMS=Pl.openSMS,this.viewOAQr=_f.viewOAQr,this.keepScreen=Pl.keepScreen,this.saveImageToPhotosAlbum=gf.saveImageToPhotosAlbum,this.openMiniApp=pf.openMiniApp,this.vibrate=Pl.vibrate,this.openWebview=pf.openWebview,this.getRouteParams=mf.getRouteParams,this.getAppInfo=Il.getAppInfo,this.redirectToPreviousMiniApp=mf.redirectToPreviousMiniApp,this.onCallbackData=mf.onCallbackData,this.getPhoneNumber=df.getPhoneNumer,At(this,Kl,null),At(this,Yl,null),this.isShowNavBar=!0,this.isShowHomeButton=!0}static getInstance(){return yf.instance||(yf.instance=new yf),yf.instance}getAppId(){return St(this,Hl)}getZAppId(){return St(this,Wl)}login(t){return Et(this,void 0,void 0,(function*(){const t=(yield St(this,Xl).call(this)).find((t=>t.name===cl.COOKIE_NAME.ZOAUTH));if(!d.isUndefined(t)&&!d.isNull(t)&&d.isString(t.value)){At(this,Kl,t.value);const e=()=>Et(this,void 0,void 0,(function*(){return(d.isUndefined(St(this,Kl))||d.isNull(St(this,Kl)))&&clearInterval(St(this,Gl).timer.getToken),yield ul.get("https://oauth.zaloapp.com/v3/access_token",{params:{app_id:St(this,Wl),redirect_uri:`https://h5.zdn.vn/zapps/${St(this,Hl)}/`,code:St(this,Kl),isSDK:!0}}).then((t=>{let n=t.data;if(n.access_token){At(this,Yl,n.access_token);const t=1e3*parseInt(n.expires_in);return St(this,Gl).timer.getToken||(St(this,Gl).timer.getToken=window.setInterval(e,t)),this.setZAccSession(St(this,Yl)||""),window.ZJSBridge.setZAccSession&&window.ZJSBridge.setZAccSession(St(this,Yl)||""),St(this,Yl)}return null}))}));return clearInterval(St(this,Gl).timer.getToken),yield e(),"Login Success!"}throw Sl.loginFailed()}))}getAccessToken(t){return Et(this,void 0,void 0,(function*(){if(St(this,Yl))return St(this,Yl);throw Sl.loginRequired()}))}}Wl=new WeakMap,Hl=new WeakMap,$l=new WeakMap,Kl=new WeakMap,Yl=new WeakMap,Gl=new WeakMap,Jl=new WeakMap,Vl=new WeakMap,Xl=new WeakMap,Ql=new WeakMap;class wf{constructor(){tf.set(this,window.zAppID),ef.set(this,window.APP_CONFIG||{}),nf.set(this,"DEFAULT ZOAUTH"),rf.set(this,"DEFAULT ACCESS TOKEN"),of.set(this,{timer:{getToken:0}}),this.getAppId=()=>St(this,tf),this.login=()=>Promise.resolve(St(this,nf)),this.getAccessToken=()=>Promise.resolve(St(this,rf)),this.getVersion=Il.getVersion,this.getSystemInfo=Il.getSystemInfo,this.setNavigationBarTitle=()=>Promise.resolve(),this.setNavigationBarColor=()=>Promise.resolve(),this.setBackgroundColor=()=>Promise.resolve(),this.setNavigationBarLeftButton=()=>Promise.resolve(),this.setDeviceOrientation=()=>Promise.resolve(),this.setStorage=t=>Et(this,void 0,void 0,(function*(){const e=new lf(this.getAppId());return yield e.putDataToStorage(t.data),{errorKeys:[]}})),this.getStorage=t=>Et(this,void 0,void 0,(function*(){const e=new lf(this.getAppId());return yield e.getDataFromStorage(t.keys)})),this.getStorageInfo=t=>Et(this,void 0,void 0,(function*(){const t=new lf(this.getAppId());return yield t.getStorageInfo()})),this.removeStorage=t=>Et(this,void 0,void 0,(function*(){const e=new lf(this.getAppId());return yield e.removeDataFromStorage(t.keys)})),this.clearStorage=t=>Et(this,void 0,void 0,(function*(){const t=new lf(this.getAppId());return yield t.clearStorage()})),this.getUserInfo=()=>Promise.resolve({userInfo:{id:"3368637342326461234",name:"User Name",birthday:"01/01/1990",gender:"male",avatar:"https://h5.zdn.vn/static/images/avatar.png"}}),this.getNetworkType=()=>{let e;switch((navigator.connection||navigator.mozConnection||navigator.webkitConnection).effectiveType){case"none":e=t.NetworkType.none;break;case"4g":e=t.NetworkType.wifi;break;case"3g":case"2g":e=t.NetworkType.cellular;break;default:e=t.NetworkType.unknown}const n={networkType:e};return Promise.resolve(n)},this.onNetworkStatusChange=e=>{const n=navigator.connection||navigator.mozConnection||navigator.webkitConnection,r=n.effectiveType;return n.addEventListener("change",(function(){let n;switch(r){case"none":n=t.NetworkType.none;break;case"4g":n=t.NetworkType.wifi;break;case"3g":case"2g":n=t.NetworkType.cellular;break;default:n=t.NetworkType.unknown}e({isConnected:!0,networkType:n})})),Promise.resolve()},this.startBeaconDiscovery=t=>Promise.resolve(!0),this.stopBeaconDiscovery=t=>Promise.resolve(!0),this.getBeacons=t=>Promise.resolve({beacons:[]}),this.closeApp=()=>Promise.resolve(),this.getLocation=()=>Promise.resolve({longitude:"105.788026",latitude:"21.0258773",timestamp:(new Date).getTime().toString(),provider:"fused"}),this.onBackButtonClick=()=>Promise.resolve(),this.stopBluetoothDevicesDiscovery=()=>Promise.resolve(),this.startBluetoothDevicesDiscovery=()=>Promise.resolve(),this.openBluetoothAdapter=()=>Promise.resolve(),this.onBluetoothDeviceFound=()=>Promise.resolve(),this.onBluetoothAdapterStateChange=()=>Promise.resolve(),this.getConnectedBluetoothDevices=()=>Promise.resolve(),this.getBluetoothDevices=()=>Promise.resolve(),this.getBluetoothAdapterState=()=>Promise.resolve(),this.closeBluetoothAdapter=()=>Promise.resolve(),this.scanQRCode=()=>Promise.resolve({content:"132"}),this.openProfile=()=>Promise.resolve(),this.openChat=()=>Promise.resolve(),this.openPostFeed=()=>Promise.resolve({status:1,shareType:0,numberOfUser:0}),this.followOA=()=>Promise.resolve(),this.unFollowOA=()=>Promise.resolve(),this.openShareSheet=()=>Promise.resolve({status:2,shareType:0,numberOfUser:0}),this.requestCameraPermission=()=>Promise.resolve({userAllow:!0,message:"Success"}),this.createShortcut=()=>Promise.resolve(),this.openBioAuthentication=()=>Promise.resolve({code:0,message:"OK",data:{domain:"",code:0,message:"",payToken:""}}),this.checkStateBioAuthentication=()=>Promise.resolve({bioState:""}),this.sendLocation=()=>Promise.resolve(),this.showToast=()=>Promise.resolve(),this.hideKeyboard=()=>Promise.resolve(),this.openPhone=()=>Promise.resolve(),this.openSMS=()=>Promise.resolve(),this.viewOAQr=()=>Promise.resolve(),this.keepScreen=()=>Promise.resolve(),this.saveImageToPhotosAlbum=()=>Promise.resolve(),this.openMiniApp=t=>Promise.resolve(),this.vibrate=()=>Promise.resolve(),this.openWebview=t=>(location.replace(t.url),Promise.resolve()),this.getRouteParams=mf.getRouteParams,this.getAppInfo=()=>Promise.resolve({description:"",name:"",version:"",appUrl:"",qrCodeUrl:""}),this.redirectToPreviousMiniApp=t=>Promise.resolve(),this.onCallbackData=t=>(t({data:""}),Promise.resolve()),this.getPhoneNumber=()=>(console.warn("This api only works on zalo app"),Promise.resolve({number:""}))}}tf=new WeakMap,ef=new WeakMap,nf=new WeakMap,rf=new WeakMap,of=new WeakMap,function(t){!function(n){var r="object"==typeof e?e:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),i=o(t);function o(t,e){return function(n,r){"function"!=typeof t[n]&&Object.defineProperty(t,n,{configurable:!0,writable:!0,value:r}),e&&e(n,r)}}void 0===r.Reflect?r.Reflect=t:i=o(r.Reflect,i),function(t){var e=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,a={__proto__:[]}instanceof Array,s=!o&&!a,u={create:o?function(){return rt(Object.create(null))}:a?function(){return rt({__proto__:null})}:function(){return rt({})},has:s?function(t,n){return e.call(t,n)}:function(t,e){return e in t},get:s?function(t,n){return e.call(t,n)?t[n]:void 0}:function(t,e){return t[e]}},c=Object.getPrototypeOf(Function),l="object"==typeof he&&he.env&&"true"===he.env.REFLECT_METADATA_USE_MAP_POLYFILL,f=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?tt():Map,h=l||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?et():Set,d=new(l||"function"!=typeof WeakMap?nt():WeakMap);function p(t,e,n,r){if(B(n)){if(!W(t))throw new TypeError;if(!$(e))throw new TypeError;return S(t,e)}if(!W(t))throw new TypeError;if(!z(e))throw new TypeError;if(!z(r)&&!B(r)&&!P(r))throw new TypeError;return P(r)&&(r=void 0),A(t,e,n=Z(n),r)}function v(t,e){function n(n,r){if(!z(n))throw new TypeError;if(!B(r)&&!K(r))throw new TypeError;I(t,e,n,r)}return n}function g(t,e,n,r){if(!z(n))throw new TypeError;return B(r)||(r=Z(r)),I(t,e,n,r)}function _(t,e,n){if(!z(e))throw new TypeError;return B(n)||(n=Z(n)),T(t,e,n)}function m(t,e,n){if(!z(e))throw new TypeError;return B(n)||(n=Z(n)),R(t,e,n)}function y(t,e,n){if(!z(e))throw new TypeError;return B(n)||(n=Z(n)),x(t,e,n)}function w(t,e,n){if(!z(e))throw new TypeError;return B(n)||(n=Z(n)),O(t,e,n)}function b(t,e){if(!z(t))throw new TypeError;return B(e)||(e=Z(e)),N(t,e)}function k(t,e){if(!z(t))throw new TypeError;return B(e)||(e=Z(e)),j(t,e)}function E(t,e,n){if(!z(e))throw new TypeError;B(n)||(n=Z(n));var r=C(e,n,!1);if(B(r))return!1;if(!r.delete(t))return!1;if(r.size>0)return!0;var i=d.get(e);return i.delete(n),i.size>0||d.delete(e),!0}function S(t,e){for(var n=t.length-1;n>=0;--n){var r=(0,t[n])(e);if(!B(r)&&!P(r)){if(!$(r))throw new TypeError;e=r}}return e}function A(t,e,n,r){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,n,r);if(!B(o)&&!P(o)){if(!z(o))throw new TypeError;r=o}}return r}function C(t,e,n){var r=d.get(t);if(B(r)){if(!n)return;r=new f,d.set(t,r)}var i=r.get(e);if(B(i)){if(!n)return;i=new f,r.set(e,i)}return i}function T(t,e,n){if(R(t,e,n))return!0;var r=Q(e);return!P(r)&&T(t,r,n)}function R(t,e,n){var r=C(e,n,!1);return!B(r)&&F(r.has(t))}function x(t,e,n){if(R(t,e,n))return O(t,e,n);var r=Q(e);return P(r)?void 0:x(t,r,n)}function O(t,e,n){var r=C(e,n,!1);if(!B(r))return r.get(t)}function I(t,e,n,r){C(n,r,!0).set(t,e)}function N(t,e){var n=j(t,e),r=Q(t);if(null===r)return n;var i=N(r,e);if(i.length<=0)return n;if(n.length<=0)return i;for(var o=new h,a=[],s=0,u=n;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var l=0,f=i;l<f.length;l++){c=f[l];o.has(c)||(o.add(c),a.push(c))}return a}function j(t,e){var n=[],r=C(t,e,!1);if(B(r))return n;for(var i=G(r.keys()),o=0;;){var a=V(i);if(!a)return n.length=o,n;var s=J(a);try{n[o]=s}catch(t){try{X(i)}finally{throw t}}o++}}function L(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function B(t){return void 0===t}function P(t){return null===t}function M(t){return"symbol"==typeof t}function z(t){return"object"==typeof t?null!==t:"function"==typeof t}function U(t,e){switch(L(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var n=3===e?"string":5===e?"number":"default",i=Y(t,r);if(void 0!==i){var o=i.call(t,n);if(z(o))throw new TypeError;return o}return D(t,"default"===n?"number":n)}function D(t,e){if("string"===e){var n=t.toString;if(H(n))if(!z(i=n.call(t)))return i;if(H(r=t.valueOf))if(!z(i=r.call(t)))return i}else{var r;if(H(r=t.valueOf))if(!z(i=r.call(t)))return i;var i,o=t.toString;if(H(o))if(!z(i=o.call(t)))return i}throw new TypeError}function F(t){return!!t}function q(t){return""+t}function Z(t){var e=U(t,3);return M(e)?e:q(e)}function W(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function H(t){return"function"==typeof t}function $(t){return"function"==typeof t}function K(t){switch(L(t)){case 3:case 4:return!0;default:return!1}}function Y(t,e){var n=t[e];if(null!=n){if(!H(n))throw new TypeError;return n}}function G(t){var e=Y(t,i);if(!H(e))throw new TypeError;var n=e.call(t);if(!z(n))throw new TypeError;return n}function J(t){return t.value}function V(t){var e=t.next();return!e.done&&e}function X(t){var e=t.return;e&&e.call(t)}function Q(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===c)return e;if(e!==c)return e;var n=t.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return e;var i=r.constructor;return"function"!=typeof i||i===t?e:i}function tt(){var t={},e=[],n=function(){function t(t,e,n){this._index=0,this._keys=t,this._values=e,this._selector=n}return t.prototype["@@iterator"]=function(){return this},t.prototype[i]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var n=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var n=this._find(t,!0);return this._values[n]=e,this},e.prototype.delete=function(e){var n=this._find(e,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,e===this._cacheKey&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new n(this._keys,this._values,r)},e.prototype.values=function(){return new n(this._keys,this._values,o)},e.prototype.entries=function(){return new n(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(t,e){return this._cacheKey!==t&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=t)),this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function r(t,e){return t}function o(t,e){return e}function a(t,e){return[t,e]}}function et(){return function(){function t(){this._map=new f}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.values()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[i]=function(){return this.keys()},t}()}function nt(){var t=16,n=u.create(),r=i();return function(){function t(){this._key=i()}return t.prototype.has=function(t){var e=o(t,!1);return void 0!==e&&u.has(e,this._key)},t.prototype.get=function(t){var e=o(t,!1);return void 0!==e?u.get(e,this._key):void 0},t.prototype.set=function(t,e){return o(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=o(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=i()},t}();function i(){var t;do{t="@@WeakMap@@"+c()}while(u.has(n,t));return n[t]=!0,t}function o(t,n){if(!e.call(t,r)){if(!n)return;Object.defineProperty(t,r,{value:u.create()})}return t[r]}function a(t,e){for(var n=0;n<e;++n)t[n]=255*Math.random()|0;return t}function s(t){return"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(t)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(t)):a(new Uint8Array(t),t):a(new Array(t),t)}function c(){var e=s(t);e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var n="",r=0;r<t;++r){var i=e[r];4!==r&&6!==r&&8!==r||(n+="-"),i<16&&(n+="0"),n+=i.toString(16).toLowerCase()}return n}}function rt(t){return t.__=void 0,delete t.__,t}t("decorate",p),t("metadata",v),t("defineMetadata",g),t("hasMetadata",_),t("hasOwnMetadata",m),t("getMetadata",y),t("getOwnMetadata",w),t("getMetadataKeys",b),t("getOwnMetadataKeys",k),t("deleteMetadata",E)}(i)}()}(af||(af={}));const bf=Symbol("required"),kf=Symbol("checkType"),Ef=(...t)=>(e,n,r)=>{let i=Reflect.getOwnMetadata(bf,e,n)||[];i.push({parameterIndex:r,fields:t}),Reflect.defineMetadata(bf,i,e,n)},Sf=(t,e,n)=>(r,i,o)=>{let a=Reflect.getOwnMetadata(kf,r,i)||[];a.push({parameterIndex:o,type:t,properties:e,key:n}),Reflect.defineMetadata(kf,a,r,i)};const Af=(t,e,n)=>{const r=n.value,i=r.toString().match(/\(.*?\)/)[0].replace(/[()]/gi,"").replace(/\s/gi,"").split(",");return n.value=function(){const n=Reflect.getOwnMetadata(bf,t,e),o=Reflect.getOwnMetadata(kf,t,e);return o&&o.forEach((t=>{const{parameterIndex:e,type:n,properties:r,key:o}=t;let a=arguments[e],s=i[e];if(!d.isEmpty(o)){const t=null==o?void 0:o.split(".");Array.isArray(t)&&t.length>0&&t.forEach((t=>{a=a[t],s=`${s}.${t}`}))}const u=typeof a;if(!d.isUndefined(a)){if(!dt(a,n))throw Sl.wrongTypeParam(s,n,Array.isArray(a)?"array":null===a?"null":u);"object"===n&&Object.entries(r).forEach((([t,e])=>{const n=a[t];if(!d.isUndefined(n)){if(Array.isArray(e)&&!e.includes(n))throw Sl.wrongTypeParam(`${s}.${t}`,`${e}`.replace(/,/g,"|"),`'${n}'`);if(!Array.isArray(e)&&!dt(n,e))throw Sl.wrongTypeParam(`${s}.${t}`,e,Array.isArray(n)?"array":null===n?"null":typeof n)}}))}})),n&&n.forEach((t=>{const{parameterIndex:e,fields:n}=t,r=arguments[e],o=i[e],a=typeof r;if(!Array.isArray(r)&&"object"===a&&n.some((t=>d.isUndefined(r[t]))))throw Sl.missingParam(`${n} in ${o}`);if("object"!==a&&(e>=arguments.length||d.isUndefined(r)))throw Sl.missingParam(o)})),r.apply(this,arguments)},n};var Cf;class Tf{constructor(){Cf.set(this,void 0),At(this,Cf,this.getInstance())}login(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).login(t)}))}getAccessToken(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).getAccessToken(t)}))}getVersion(){return St(this,Cf).getVersion()}getSystemInfo(){return St(this,Cf).getSystemInfo()}setNavigationBarTitle(t){return Et(this,void 0,void 0,(function*(){return St(this,Cf).setNavigationBarTitle(t)}))}setNavigationBarColor(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).setNavigationBarColor(t)}))}setBackgroundColor(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).setBackgroundColor(t)}))}setNavigationBarLeftButton(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).setNavigationBarLeftButton(t)}))}setDeviceOrientation(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).setDeviceOrientation(t)}))}setStorage(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).setStorage(t)}))}getStorage(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).getStorage(t)}))}getStorageInfo(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).getStorageInfo(t)}))}removeStorage(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).removeStorage(t)}))}clearStorage(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).clearStorage(t)}))}getUserInfo(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).getUserInfo(t)}))}getNetworkType(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).getNetworkType(t)}))}onNetworkStatusChange(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).onNetworkStatusChange(t)}))}startBeaconDiscovery(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).startBeaconDiscovery(t)}))}stopBeaconDiscovery(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).stopBeaconDiscovery(t)}))}getBeacons(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).getBeacons(t)}))}closeApp(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).closeApp(t)}))}getLocation(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).getLocation(t)}))}onBackButtonClick(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).onBackButtonClick(t)}))}stopBluetoothDevicesDiscovery(){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).stopBluetoothDevicesDiscovery()}))}startBluetoothDevicesDiscovery(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).startBluetoothDevicesDiscovery(t)}))}openBluetoothAdapter(){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).openBluetoothAdapter()}))}onBluetoothDeviceFound(){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).onBluetoothDeviceFound()}))}onBluetoothAdapterStateChange(){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).onBluetoothAdapterStateChange()}))}getConnectedBluetoothDevices(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).getConnectedBluetoothDevices(t)}))}getBluetoothDevices(){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).getBluetoothDevices()}))}getBluetoothAdapterState(){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).getBluetoothAdapterState()}))}closeBluetoothAdapter(){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).closeBluetoothAdapter()}))}scanQRCode(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).scanQRCode(t)}))}openProfile(t){return Et(this,void 0,void 0,(function*(){yield St(this,Cf).openProfile(t)}))}openChat(t){return Et(this,void 0,void 0,(function*(){yield St(this,Cf).openChat(t)}))}openPostFeed(t){return Et(this,void 0,void 0,(function*(){const e=t.type;if("image"===e&&pt(t.data.imageUrl))throw Sl.wrongTypeParam("object.data.imageUrl","valid url","invalid");if("link"===e&&(pt(t.data.link)||!st(t.data.link)))throw Sl.wrongTypeParam("object.data.link","valid url","invalid");if("profile"===e){if(pt(t.data.id))throw Sl.wrongTypeParam("object.data.id","valid id","empty");if(pt(t.data.avatar)||!st(t.data.avatar))throw Sl.wrongTypeParam("object.data.avatar","valid url","invalid");if(pt(t.data.displayName))throw Sl.wrongTypeParam("object.data.displayName","valid displayName","empty")}return yield St(this,Cf).openPostFeed(t)}))}followOA(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).followOA(t)}))}unfollowOA(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).unFollowOA(t)}))}openShareSheet(t){return Et(this,void 0,void 0,(function*(){const e=t.type;if("image"===e&&pt(t.data.imageUrl))throw Sl.wrongTypeParam("object.data.imageUrl","valid url","invalid");if("gif"===e&&(pt(t.data.gifUrl)||!st(t.data.gifUrl)))throw Sl.wrongTypeParam("object.data.gifUrl","valid url","invalid");if("video"===e){if(pt(t.data.videoThumb)||!st(t.data.videoThumb))throw Sl.wrongTypeParam("object.data.videoThumb","valid url","invalid");if(pt(t.data.videoUrl)||!st(t.data.videoUrl))throw Sl.wrongTypeParam("object.data.videoUrl","valid url","invalid")}else{if("link"===e&&(pt(t.data.link)||!st(t.data.link)))throw Sl.wrongTypeParam("object.data.link","valid url","invalid");if("oa"===e&&pt(t.data.id))throw Sl.wrongTypeParam("object.data.id","valid id","empty")}return yield St(this,Cf).openShareSheet(t)}))}requestCameraPermission(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).requestCameraPermission(t)}))}createShortcut(t){return Et(this,void 0,void 0,(function*(){yield St(this,Cf).createShortcut(t)}))}openBioAuthentication(t){var e;return Et(this,void 0,void 0,(function*(){return d.isUndefined(t.requireFingerprint)&&(t.requireFingerprint=!0),pt(null===(e=t.ui)||void 0===e?void 0:e.title)&&(t.ui=Object.assign(Object.assign({},t.ui),{title:"Xác thực"})),pt(t.ui.subTitle)&&(t.ui=Object.assign(Object.assign({},t.ui),{subTitle:"Sử dụng sinh trắc học của bạn để xác thực"})),pt(t.ui.negativeButtonText)&&(t.ui=Object.assign(Object.assign({},t.ui),{negativeButtonText:"Đóng"})),yield St(this,Cf).openBioAuthentication(t)}))}checkStateBioAuthentication(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).checkStateBioAuthentication(t)}))}sendLocation(t){return Et(this,void 0,void 0,(function*(){yield St(this,Cf).sendLocation(t)}))}showToast(t){return Et(this,void 0,void 0,(function*(){yield St(this,Cf).showToast(t)}))}hideKeyboard(t){return Et(this,void 0,void 0,(function*(){yield St(this,Cf).hideKeyboard(t)}))}openPhone(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).openPhone(t)}))}openSMS(t){return Et(this,void 0,void 0,(function*(){if(!/^\+?\d+$/.test(t.phoneNumber))throw Sl.wrongTypeParam("object.phoneNumber","valid phone","invalid");yield St(this,Cf).openSMS(t)}))}viewOAQr(t){return Et(this,void 0,void 0,(function*(){(d.isUndefined(t.displayName)||d.isNull(t.displayName))&&(t.displayName=""),yield St(this,Cf).viewOAQr(t)}))}keepScreen(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).keepScreen(t)}))}saveImageToPhotosAlbum(t){return Et(this,void 0,void 0,(function*(){if(pt(t.imageBase64Data)&&pt(t.imageUrl))throw Sl.wrongTypeParam("object.imageBase64Data | object.imageUrl","valid data","invalid");if(!pt(t.imageUrl)&&!st(t.imageUrl))throw Sl.wrongTypeParam("object.imageUrl","valid url","invalid");return yield St(this,Cf).saveImageToPhotosAlbum(t)}))}openMiniApp(t){return Et(this,void 0,void 0,(function*(){if(!d.isEmpty(t.params)){const e=t.params||{};Object.keys(e).forEach((t=>{"object"==typeof e[t]&&(e[t]=JSON.stringify(e[t])),e[t]=""+encodeURIComponent(e[t])})),t.params=e}yield St(this,Cf).openMiniApp(t)}))}vibrate(t){return Et(this,void 0,void 0,(function*(){pt(t.type)&&(t.type="oneShot"),pt(t.milliseconds)&&(t.milliseconds=500),yield St(this,Cf).vibrate(t)}))}openWebview(t){return Et(this,void 0,void 0,(function*(){yield St(this,Cf).openWebview(t)}))}getRouteParams(){return St(this,Cf).getRouteParams()}getAppInfo(t){return St(this,Cf).getAppInfo()}redirectToPreviousMiniApp(t){return St(this,Cf).redirectToPreviousMiniApp(t)}onCallbackData(t){return Et(this,void 0,void 0,(function*(){return yield St(this,Cf).onCallbackData(t)}))}getPhoneNumber(t){return St(this,Cf).getPhoneNumber()}}Cf=new WeakMap,bt([wl],Tf.prototype,"login",null),bt([wl],Tf.prototype,"getAccessToken",null),bt([bl],Tf.prototype,"getVersion",null),bt([bl],Tf.prototype,"getSystemInfo",null),bt([wl,Af,kt(0,Sf("object",{title:"string"})),kt(0,Ef("title"))],Tf.prototype,"setNavigationBarTitle",null),bt([wl,Af,kt(0,Sf("object",{color:"string",textColor:["white","black"],statusBarColor:"string"})),kt(0,Ef("color"))],Tf.prototype,"setNavigationBarColor",null),bt([wl,Af,kt(0,Sf("object",{backgroundColor:"string",textColor:["white","black"]})),kt(0,Ef("backgroundColor"))],Tf.prototype,"setBackgroundColor",null),bt([wl,Af,kt(0,Sf("object",{type:["none","back","home","both"]})),kt(0,Ef("type"))],Tf.prototype,"setNavigationBarLeftButton",null),bt([wl,Af,kt(0,Sf("object",{rotate:["auto","portrait","landscape"]})),kt(0,Ef("rotate"))],Tf.prototype,"setDeviceOrientation",null),bt([wl,Af,kt(0,Sf("object",{data:"object"})),kt(0,Ef("data"))],Tf.prototype,"setStorage",null),bt([wl,Af,kt(0,Sf("object",{keys:"array<string>"})),kt(0,Ef("keys"))],Tf.prototype,"getStorage",null),bt([wl],Tf.prototype,"getStorageInfo",null),bt([wl,Af,kt(0,Sf("object",{keys:"array<string>"})),kt(0,Ef("keys"))],Tf.prototype,"removeStorage",null),bt([wl],Tf.prototype,"clearStorage",null),bt([wl],Tf.prototype,"getUserInfo",null),bt([wl],Tf.prototype,"getNetworkType",null),bt([wl],Tf.prototype,"onNetworkStatusChange",null),bt([wl],Tf.prototype,"startBeaconDiscovery",null),bt([wl],Tf.prototype,"stopBeaconDiscovery",null),bt([wl],Tf.prototype,"getBeacons",null),bt([wl],Tf.prototype,"closeApp",null),bt([wl],Tf.prototype,"getLocation",null),bt([wl],Tf.prototype,"onBackButtonClick",null),bt([wl],Tf.prototype,"stopBluetoothDevicesDiscovery",null),bt([wl],Tf.prototype,"startBluetoothDevicesDiscovery",null),bt([wl],Tf.prototype,"openBluetoothAdapter",null),bt([wl],Tf.prototype,"onBluetoothDeviceFound",null),bt([wl],Tf.prototype,"onBluetoothAdapterStateChange",null),bt([wl],Tf.prototype,"getConnectedBluetoothDevices",null),bt([wl],Tf.prototype,"getBluetoothDevices",null),bt([wl],Tf.prototype,"getBluetoothAdapterState",null),bt([wl],Tf.prototype,"closeBluetoothAdapter",null),bt([wl],Tf.prototype,"scanQRCode",null),bt([wl,Af,kt(0,Sf("object",{type:["user","oa","aliasOA"],id:"string"})),kt(0,Ef("type","id"))],Tf.prototype,"openProfile",null),bt([wl,Af,kt(0,Sf("object",{type:["user","oa"],id:"string"})),kt(0,Ef("type","id"))],Tf.prototype,"openChat",null),bt([wl,Af,kt(0,Sf("object",{type:["image","link","profile"],data:"object"})),kt(0,Sf("object",{imageUrl:"string",link:"string",title:"string",thumb:"string",description:"string",avatar:"string",id:"string",displayName:"string"},"data")),kt(0,Ef("type","data"))],Tf.prototype,"openPostFeed",null),bt([wl,Af,kt(0,Sf("object",{id:"string",showDialogConfirm:"boolean"})),kt(0,Ef("id"))],Tf.prototype,"followOA",null),bt([wl,Af,kt(0,Sf("object",{id:"string"})),kt(0,Ef("id"))],Tf.prototype,"unfollowOA",null),bt([wl,Af,kt(0,Sf("object",{type:["image","gif","video","link","oa"],data:"object"})),kt(0,Sf("object",{imageUrl:"string",gifUrl:"string",width:"number",height:"number",videoThumb:"string",videoUrl:"string",link:"string",chatOnly:"boolean",id:"string"},"data")),kt(0,Ef("type","data"))],Tf.prototype,"openShareSheet",null),bt([wl],Tf.prototype,"requestCameraPermission",null),bt([wl],Tf.prototype,"createShortcut",null),bt([wl,Af,kt(0,Ef("secretData")),kt(0,Sf("object",{secretData:"string",ui:"object",requireFingerprint:"boolean"})),kt(0,Sf("object",{title:"string",subTitle:"string",negativeButtonText:"string"},"ui"))],Tf.prototype,"openBioAuthentication",null),bt([wl],Tf.prototype,"checkStateBioAuthentication",null),bt([wl,Af,kt(0,Ef("toUserId"))],Tf.prototype,"sendLocation",null),bt([wl,Af,kt(0,Ef("message"))],Tf.prototype,"showToast",null),bt([wl],Tf.prototype,"hideKeyboard",null),bt([wl,Af,kt(0,Ef("phoneNumber")),kt(0,Sf("object",{phoneNumber:"string"}))],Tf.prototype,"openPhone",null),bt([wl,Af,kt(0,Ef("content","phoneNumber")),kt(0,Sf("object",{content:"string",phoneNumber:"string"}))],Tf.prototype,"openSMS",null),bt([wl,Af,kt(0,Ef("id")),kt(0,Sf("object",{id:"string",displayName:"string"}))],Tf.prototype,"viewOAQr",null),bt([wl],Tf.prototype,"keepScreen",null),bt([wl,Af,kt(0,Sf("object",{imageBase64Data:"string",imageUrl:"string",type:"string"}))],Tf.prototype,"saveImageToPhotosAlbum",null),bt([wl,Af,kt(0,Ef("appId")),kt(0,Sf("object",{appId:"string",params:"object"}))],Tf.prototype,"openMiniApp",null),bt([wl,Af,kt(0,Sf("object",{type:["oneShot"],milliseconds:"number"}))],Tf.prototype,"vibrate",null),bt([wl,Af,kt(0,Ef("url")),kt(0,Sf("object",{url:"string"}))],Tf.prototype,"openWebview",null),bt([bl],Tf.prototype,"getRouteParams",null),bt([wl],Tf.prototype,"getAppInfo",null),bt([wl],Tf.prototype,"redirectToPreviousMiniApp",null),bt([wl],Tf.prototype,"onCallbackData",null),bt([wl],Tf.prototype,"getPhoneNumber",null);class Rf extends Tf{getInstance(){return yf.getInstance()}}class xf extends Tf{getInstance(){return new wf}}const Of=ct();t.default=void 0,window.onJSCall=t=>function(e){gl.getInstance().onJSCall(t,e)},window.onMultiJSCall=t=>function(e){gl.getInstance().onMultiJSCall(t,e)},window.zaloJSV2={zalo_h5_event_handler:function(t,e,n){gl.getInstance().nativeEventHandler(t,e,n)}},Of.isZalo?t.default=new Rf:t.default=new xf,window.ZaloMiniAppSDK=t.default,t.SDKCreator=Tf,t.default=t.default,Object.defineProperty(t,"__esModule",{value:!0})}));
|