udxcms 2.0.7 → 2.0.8

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/index.js CHANGED
@@ -29,7 +29,7 @@ and limitations under the License.
29
29
  * Released under MIT license <https://lodash.com/license>
30
30
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
31
31
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
32
- */lodash.exports,module2=lodash,exports$12=lodash.exports,function(){var e,t="Expected a function",i="__lodash_hash_undefined__",n="__lodash_placeholder__",r=32,a=128,o=256,s=1/0,l=9007199254740991,c=NaN,u=4294967295,d=[["ary",a],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",r],["partialRight",64],["rearg",o]],h="[object Arguments]",p="[object Array]",m="[object Boolean]",f="[object Date]",g="[object Error]",_="[object Function]",v="[object GeneratorFunction]",y="[object Map]",b="[object Number]",S="[object Object]",E="[object Promise]",w="[object RegExp]",C="[object Set]",T="[object String]",A="[object Symbol]",x="[object WeakMap]",M="[object ArrayBuffer]",R="[object DataView]",I="[object Float32Array]",k="[object Float64Array]",N="[object Int8Array]",O="[object Int16Array]",D="[object Int32Array]",L="[object Uint8Array]",P="[object Uint8ClampedArray]",B="[object Uint16Array]",F="[object Uint32Array]",$=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,z=/[&<>"']/g,H=RegExp(Y.source),q=RegExp(z.source),V=/<%-([\s\S]+?)%>/g,j=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K=/^\w*$/,Q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z=/[\\^$.*+?()[\]{}|]/g,X=RegExp(Z.source),ee=/^\s+/,te=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ne=/\{\n\/\* \[wrapped with (.+)\] \*/,re=/,? & /,ae=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,oe=/[()=,{}\[\]\/\s]/,se=/\\(\\)?/g,le=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ce=/\w*$/,ue=/^[-+]0x[0-9a-f]+$/i,de=/^0b[01]+$/i,he=/^\[object .+?Constructor\]$/,pe=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,fe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ge=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,ve="\\ud800-\\udfff",ye="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",be="\\u2700-\\u27bf",Se="a-z\\xdf-\\xf6\\xf8-\\xff",Ee="A-Z\\xc0-\\xd6\\xd8-\\xde",we="\\ufe0e\\ufe0f",Ce="\\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",Te="['’]",Ae="["+ve+"]",xe="["+Ce+"]",Me="["+ye+"]",Re="\\d+",Ie="["+be+"]",ke="["+Se+"]",Ne="[^"+ve+Ce+Re+be+Se+Ee+"]",Oe="\\ud83c[\\udffb-\\udfff]",De="[^"+ve+"]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",Pe="[\\ud800-\\udbff][\\udc00-\\udfff]",Be="["+Ee+"]",Fe="\\u200d",$e="(?:"+ke+"|"+Ne+")",Ue="(?:"+Be+"|"+Ne+")",Ge="(?:['’](?:d|ll|m|re|s|t|ve))?",Ye="(?:['’](?:D|LL|M|RE|S|T|VE))?",ze="(?:"+Me+"|"+Oe+")?",He="["+we+"]?",qe=He+ze+"(?:"+Fe+"(?:"+[De,Le,Pe].join("|")+")"+He+ze+")*",Ve="(?:"+[Ie,Le,Pe].join("|")+")"+qe,je="(?:"+[De+Me+"?",Me,Le,Pe,Ae].join("|")+")",Je=RegExp(Te,"g"),We=RegExp(Me,"g"),Ke=RegExp(Oe+"(?="+Oe+")|"+je+qe,"g"),Qe=RegExp([Be+"?"+ke+"+"+Ge+"(?="+[xe,Be,"$"].join("|")+")",Ue+"+"+Ye+"(?="+[xe,Be+$e,"$"].join("|")+")",Be+"?"+$e+"+"+Ge,Be+"+"+Ye,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Re,Ve].join("|"),"g"),Ze=RegExp("["+Fe+ve+ye+we+"]"),Xe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,et=["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"],tt=-1,it={};it[I]=it[k]=it[N]=it[O]=it[D]=it[L]=it[P]=it[B]=it[F]=!0,it[h]=it[p]=it[M]=it[m]=it[R]=it[f]=it[g]=it[_]=it[y]=it[b]=it[S]=it[w]=it[C]=it[T]=it[x]=!1;var nt={};nt[h]=nt[p]=nt[M]=nt[R]=nt[m]=nt[f]=nt[I]=nt[k]=nt[N]=nt[O]=nt[D]=nt[y]=nt[b]=nt[S]=nt[w]=nt[C]=nt[T]=nt[A]=nt[L]=nt[P]=nt[B]=nt[F]=!0,nt[g]=nt[_]=nt[x]=!1;var rt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},at=parseFloat,ot=parseInt,st="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,lt="object"==typeof self&&self&&self.Object===Object&&self,ct=st||lt||Function("return this")(),ut=exports$12&&!exports$12.nodeType&&exports$12,dt=ut&&module2&&!module2.nodeType&&module2,ht=dt&&dt.exports===ut,pt=ht&&st.process,mt=function(){try{var e=dt&&dt.require&&dt.require("util").types;return e||pt&&pt.binding&&pt.binding("util")}catch(t){}}(),ft=mt&&mt.isArrayBuffer,gt=mt&&mt.isDate,_t=mt&&mt.isMap,vt=mt&&mt.isRegExp,yt=mt&&mt.isSet,bt=mt&&mt.isTypedArray;function St(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}function Et(e,t,i,n){for(var r=-1,a=null==e?0:e.length;++r<a;){var o=e[r];t(n,o,i(o),e)}return n}function wt(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i,e););return e}function Ct(e,t){for(var i=null==e?0:e.length;i--&&!1!==t(e[i],i,e););return e}function Tt(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(!t(e[i],i,e))return!1;return!0}function At(e,t){for(var i=-1,n=null==e?0:e.length,r=0,a=[];++i<n;){var o=e[i];t(o,i,e)&&(a[r++]=o)}return a}function xt(e,t){return!(null==e||!e.length)&&Bt(e,t,0)>-1}function Mt(e,t,i){for(var n=-1,r=null==e?0:e.length;++n<r;)if(i(t,e[n]))return!0;return!1}function Rt(e,t){for(var i=-1,n=null==e?0:e.length,r=Array(n);++i<n;)r[i]=t(e[i],i,e);return r}function It(e,t){for(var i=-1,n=t.length,r=e.length;++i<n;)e[r+i]=t[i];return e}function kt(e,t,i,n){var r=-1,a=null==e?0:e.length;for(n&&a&&(i=e[++r]);++r<a;)i=t(i,e[r],r,e);return i}function Nt(e,t,i,n){var r=null==e?0:e.length;for(n&&r&&(i=e[--r]);r--;)i=t(i,e[r],r,e);return i}function Ot(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1}var Dt=Gt("length");function Lt(e,t,i){var n;return i(e,function(e,i,r){if(t(e,i,r))return n=i,!1}),n}function Pt(e,t,i,n){for(var r=e.length,a=i+(n?1:-1);n?a--:++a<r;)if(t(e[a],a,e))return a;return-1}function Bt(e,t,i){return t==t?function(e,t,i){for(var n=i-1,r=e.length;++n<r;)if(e[n]===t)return n;return-1}(e,t,i):Pt(e,$t,i)}function Ft(e,t,i,n){for(var r=i-1,a=e.length;++r<a;)if(n(e[r],t))return r;return-1}function $t(e){return e!=e}function Ut(e,t){var i=null==e?0:e.length;return i?Ht(e,t)/i:c}function Gt(t){return function(i){return null==i?e:i[t]}}function Yt(t){return function(i){return null==t?e:t[i]}}function zt(e,t,i,n,r){return r(e,function(e,r,a){i=n?(n=!1,e):t(i,e,r,a)}),i}function Ht(t,i){for(var n,r=-1,a=t.length;++r<a;){var o=i(t[r]);o!==e&&(n=n===e?o:n+o)}return n}function qt(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}function Vt(e){return e?e.slice(0,li(e)+1).replace(ee,""):e}function jt(e){return function(t){return e(t)}}function Jt(e,t){return Rt(t,function(t){return e[t]})}function Wt(e,t){return e.has(t)}function Kt(e,t){for(var i=-1,n=e.length;++i<n&&Bt(t,e[i],0)>-1;);return i}function Qt(e,t){for(var i=e.length;i--&&Bt(t,e[i],0)>-1;);return i}var Zt=Yt({"À":"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"}),Xt=Yt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function ei(e){return"\\"+rt[e]}function ti(e){return Ze.test(e)}function ii(e){var t=-1,i=Array(e.size);return e.forEach(function(e,n){i[++t]=[n,e]}),i}function ni(e,t){return function(i){return e(t(i))}}function ri(e,t){for(var i=-1,r=e.length,a=0,o=[];++i<r;){var s=e[i];s!==t&&s!==n||(e[i]=n,o[a++]=i)}return o}function ai(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=e}),i}function oi(e){return ti(e)?function(e){for(var t=Ke.lastIndex=0;Ke.test(e);)++t;return t}(e):Dt(e)}function si(e){return ti(e)?function(e){return e.match(Ke)||[]}(e):function(e){return e.split("")}(e)}function li(e){for(var t=e.length;t--&&te.test(e.charAt(t)););return t}var ci=Yt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),ui=function te(ve){var ye,be=(ve=null==ve?ct:ui.defaults(ct.Object(),ve,ui.pick(ct,et))).Array,Se=ve.Date,Ee=ve.Error,we=ve.Function,Ce=ve.Math,Te=ve.Object,Ae=ve.RegExp,xe=ve.String,Me=ve.TypeError,Re=be.prototype,Ie=we.prototype,ke=Te.prototype,Ne=ve["__core-js_shared__"],Oe=Ie.toString,De=ke.hasOwnProperty,Le=0,Pe=(ye=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||""))?"Symbol(src)_1."+ye:"",Be=ke.toString,Fe=Oe.call(Te),$e=ct._,Ue=Ae("^"+Oe.call(De).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ge=ht?ve.Buffer:e,Ye=ve.Symbol,ze=ve.Uint8Array,He=Ge?Ge.allocUnsafe:e,qe=ni(Te.getPrototypeOf,Te),Ve=Te.create,je=ke.propertyIsEnumerable,Ke=Re.splice,Ze=Ye?Ye.isConcatSpreadable:e,rt=Ye?Ye.iterator:e,st=Ye?Ye.toStringTag:e,lt=function(){try{var e=ca(Te,"defineProperty");return e({},"",{}),e}catch(t){}}(),ut=ve.clearTimeout!==ct.clearTimeout&&ve.clearTimeout,dt=Se&&Se.now!==ct.Date.now&&Se.now,pt=ve.setTimeout!==ct.setTimeout&&ve.setTimeout,mt=Ce.ceil,Dt=Ce.floor,Yt=Te.getOwnPropertySymbols,di=Ge?Ge.isBuffer:e,hi=ve.isFinite,pi=Re.join,mi=ni(Te.keys,Te),fi=Ce.max,gi=Ce.min,_i=Se.now,vi=ve.parseInt,yi=Ce.random,bi=Re.reverse,Si=ca(ve,"DataView"),Ei=ca(ve,"Map"),wi=ca(ve,"Promise"),Ci=ca(ve,"Set"),Ti=ca(ve,"WeakMap"),Ai=ca(Te,"create"),xi=Ti&&new Ti,Mi={},Ri=Fa(Si),Ii=Fa(Ei),ki=Fa(wi),Ni=Fa(Ci),Oi=Fa(Ti),Di=Ye?Ye.prototype:e,Li=Di?Di.valueOf:e,Pi=Di?Di.toString:e;function Bi(e){if(is(e)&&!qo(e)&&!(e instanceof Gi)){if(e instanceof Ui)return e;if(De.call(e,"__wrapped__"))return $a(e)}return new Ui(e)}var Fi=function(){function t(){}return function(i){if(!ts(i))return{};if(Ve)return Ve(i);t.prototype=i;var n=new t;return t.prototype=e,n}}();function $i(){}function Ui(t,i){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=e}function Gi(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=u,this.__views__=[]}function Yi(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function zi(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function Hi(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function qi(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new Hi;++t<i;)this.add(e[t])}function Vi(e){var t=this.__data__=new zi(e);this.size=t.size}function ji(e,t){var i=qo(e),n=!i&&Ho(e),r=!i&&!n&&Wo(e),a=!i&&!n&&!r&&us(e),o=i||n||r||a,s=o?qt(e.length,xe):[],l=s.length;for(var c in e)!t&&!De.call(e,c)||o&&("length"==c||r&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ga(c,l))||s.push(c);return s}function Ji(t){var i=t.length;return i?t[Vn(0,i-1)]:e}function Wi(e,t){return Na(xr(e),an(t,0,e.length))}function Ki(e){return Na(xr(e))}function Qi(t,i,n){(n!==e&&!Go(t[i],n)||n===e&&!(i in t))&&nn(t,i,n)}function Zi(t,i,n){var r=t[i];De.call(t,i)&&Go(r,n)&&(n!==e||i in t)||nn(t,i,n)}function Xi(e,t){for(var i=e.length;i--;)if(Go(e[i][0],t))return i;return-1}function en(e,t,i,n){return un(e,function(e,r,a){t(n,e,i(e),a)}),n}function tn(e,t){return e&&Mr(t,Ns(t),e)}function nn(e,t,i){"__proto__"==t&&lt?lt(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}function rn(t,i){for(var n=-1,r=i.length,a=be(r),o=null==t;++n<r;)a[n]=o?e:xs(t,i[n]);return a}function an(t,i,n){return t==t&&(n!==e&&(t=t<=n?t:n),i!==e&&(t=t>=i?t:i)),t}function on(t,i,n,r,a,o){var s,l=1&i,c=2&i,u=4&i;if(n&&(s=a?n(t,r,a,o):n(t)),s!==e)return s;if(!ts(t))return t;var d=qo(t);if(d){if(s=function(e){var t=e.length,i=new e.constructor(t);return t&&"string"==typeof e[0]&&De.call(e,"index")&&(i.index=e.index,i.input=e.input),i}(t),!l)return xr(t,s)}else{var p=ha(t),g=p==_||p==v;if(Wo(t))return Sr(t,l);if(p==S||p==h||g&&!a){if(s=c||g?{}:ma(t),!l)return c?function(e,t){return Mr(e,da(e),t)}(t,function(e,t){return e&&Mr(t,Os(t),e)}(s,t)):function(e,t){return Mr(e,ua(e),t)}(t,tn(s,t))}else{if(!nt[p])return a?t:{};s=function(e,t,i){var n,r=e.constructor;switch(t){case M:return Er(e);case m:case f:return new r(+e);case R:return function(e,t){var i=t?Er(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}(e,i);case I:case k:case N:case O:case D:case L:case P:case B:case F:return wr(e,i);case y:return new r;case b:case T:return new r(e);case w:return function(e){var t=new e.constructor(e.source,ce.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new r;case A:return n=e,Li?Te(Li.call(n)):{}}}(t,p,l)}}o||(o=new Vi);var E=o.get(t);if(E)return E;o.set(t,s),ss(t)?t.forEach(function(e){s.add(on(e,i,n,e,t,o))}):ns(t)&&t.forEach(function(e,r){s.set(r,on(e,i,n,r,t,o))});var x=d?e:(u?c?ia:ta:c?Os:Ns)(t);return wt(x||t,function(e,r){x&&(e=t[r=e]),Zi(s,r,on(e,i,n,r,t,o))}),s}function sn(t,i,n){var r=n.length;if(null==t)return!r;for(t=Te(t);r--;){var a=n[r],o=i[a],s=t[a];if(s===e&&!(a in t)||!o(s))return!1}return!0}function ln(i,n,r){if("function"!=typeof i)throw new Me(t);return Ma(function(){i.apply(e,r)},n)}function cn(e,t,i,n){var r=-1,a=xt,o=!0,s=e.length,l=[],c=t.length;if(!s)return l;i&&(t=Rt(t,jt(i))),n?(a=Mt,o=!1):t.length>=200&&(a=Wt,o=!1,t=new qi(t));e:for(;++r<s;){var u=e[r],d=null==i?u:i(u);if(u=n||0!==u?u:0,o&&d==d){for(var h=c;h--;)if(t[h]===d)continue e;l.push(u)}else a(t,d,n)||l.push(u)}return l}Bi.templateSettings={escape:V,evaluate:j,interpolate:J,variable:"",imports:{_:Bi}},Bi.prototype=$i.prototype,Bi.prototype.constructor=Bi,Ui.prototype=Fi($i.prototype),Ui.prototype.constructor=Ui,Gi.prototype=Fi($i.prototype),Gi.prototype.constructor=Gi,Yi.prototype.clear=function(){this.__data__=Ai?Ai(null):{},this.size=0},Yi.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Yi.prototype.get=function(t){var n=this.__data__;if(Ai){var r=n[t];return r===i?e:r}return De.call(n,t)?n[t]:e},Yi.prototype.has=function(t){var i=this.__data__;return Ai?i[t]!==e:De.call(i,t)},Yi.prototype.set=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Ai&&n===e?i:n,this},zi.prototype.clear=function(){this.__data__=[],this.size=0},zi.prototype.delete=function(e){var t=this.__data__,i=Xi(t,e);return!(i<0||(i==t.length-1?t.pop():Ke.call(t,i,1),--this.size,0))},zi.prototype.get=function(t){var i=this.__data__,n=Xi(i,t);return n<0?e:i[n][1]},zi.prototype.has=function(e){return Xi(this.__data__,e)>-1},zi.prototype.set=function(e,t){var i=this.__data__,n=Xi(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this},Hi.prototype.clear=function(){this.size=0,this.__data__={hash:new Yi,map:new(Ei||zi),string:new Yi}},Hi.prototype.delete=function(e){var t=sa(this,e).delete(e);return this.size-=t?1:0,t},Hi.prototype.get=function(e){return sa(this,e).get(e)},Hi.prototype.has=function(e){return sa(this,e).has(e)},Hi.prototype.set=function(e,t){var i=sa(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this},qi.prototype.add=qi.prototype.push=function(e){return this.__data__.set(e,i),this},qi.prototype.has=function(e){return this.__data__.has(e)},Vi.prototype.clear=function(){this.__data__=new zi,this.size=0},Vi.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},Vi.prototype.get=function(e){return this.__data__.get(e)},Vi.prototype.has=function(e){return this.__data__.has(e)},Vi.prototype.set=function(e,t){var i=this.__data__;if(i instanceof zi){var n=i.__data__;if(!Ei||n.length<199)return n.push([e,t]),this.size=++i.size,this;i=this.__data__=new Hi(n)}return i.set(e,t),this.size=i.size,this};var un=kr(vn),dn=kr(yn,!0);function hn(e,t){var i=!0;return un(e,function(e,n,r){return i=!!t(e,n,r)}),i}function pn(t,i,n){for(var r=-1,a=t.length;++r<a;){var o=t[r],s=i(o);if(null!=s&&(l===e?s==s&&!cs(s):n(s,l)))var l=s,c=o}return c}function mn(e,t){var i=[];return un(e,function(e,n,r){t(e,n,r)&&i.push(e)}),i}function fn(e,t,i,n,r){var a=-1,o=e.length;for(i||(i=fa),r||(r=[]);++a<o;){var s=e[a];t>0&&i(s)?t>1?fn(s,t-1,i,n,r):It(r,s):n||(r[r.length]=s)}return r}var gn=Nr(),_n=Nr(!0);function vn(e,t){return e&&gn(e,t,Ns)}function yn(e,t){return e&&_n(e,t,Ns)}function bn(e,t){return At(t,function(t){return Zo(e[t])})}function Sn(t,i){for(var n=0,r=(i=_r(i,t)).length;null!=t&&n<r;)t=t[Ba(i[n++])];return n&&n==r?t:e}function En(e,t,i){var n=t(e);return qo(e)?n:It(n,i(e))}function wn(t){return null==t?t===e?"[object Undefined]":"[object Null]":st&&st in Te(t)?function(t){var i=De.call(t,st),n=t[st];try{t[st]=e;var r=!0}catch(o){}var a=Be.call(t);return r&&(i?t[st]=n:delete t[st]),a}(t):function(e){return Be.call(e)}(t)}function Cn(e,t){return e>t}function Tn(e,t){return null!=e&&De.call(e,t)}function An(e,t){return null!=e&&t in Te(e)}function xn(t,i,n){for(var r=n?Mt:xt,a=t[0].length,o=t.length,s=o,l=be(o),c=1/0,u=[];s--;){var d=t[s];s&&i&&(d=Rt(d,jt(i))),c=gi(d.length,c),l[s]=!n&&(i||a>=120&&d.length>=120)?new qi(s&&d):e}d=t[0];var h=-1,p=l[0];e:for(;++h<a&&u.length<c;){var m=d[h],f=i?i(m):m;if(m=n||0!==m?m:0,!(p?Wt(p,f):r(u,f,n))){for(s=o;--s;){var g=l[s];if(!(g?Wt(g,f):r(t[s],f,n)))continue e}p&&p.push(f),u.push(m)}}return u}function Mn(t,i,n){var r=null==(t=Ta(t,i=_r(i,t)))?t:t[Ba(Ka(i))];return null==r?e:St(r,t,n)}function Rn(e){return is(e)&&wn(e)==h}function In(t,i,n,r,a){return t===i||(null==t||null==i||!is(t)&&!is(i)?t!=t&&i!=i:function(t,i,n,r,a,o){var s=qo(t),l=qo(i),c=s?p:ha(t),u=l?p:ha(i),d=(c=c==h?S:c)==S,_=(u=u==h?S:u)==S,v=c==u;if(v&&Wo(t)){if(!Wo(i))return!1;s=!0,d=!1}if(v&&!d)return o||(o=new Vi),s||us(t)?Xr(t,i,n,r,a,o):function(e,t,i,n,r,a,o){switch(i){case R:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case M:return!(e.byteLength!=t.byteLength||!a(new ze(e),new ze(t)));case m:case f:case b:return Go(+e,+t);case g:return e.name==t.name&&e.message==t.message;case w:case T:return e==t+"";case y:var s=ii;case C:var l=1&n;if(s||(s=ai),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;n|=2,o.set(e,t);var u=Xr(s(e),s(t),n,r,a,o);return o.delete(e),u;case A:if(Li)return Li.call(e)==Li.call(t)}return!1}(t,i,c,n,r,a,o);if(!(1&n)){var E=d&&De.call(t,"__wrapped__"),x=_&&De.call(i,"__wrapped__");if(E||x){var I=E?t.value():t,k=x?i.value():i;return o||(o=new Vi),a(I,k,n,r,o)}}return!!v&&(o||(o=new Vi),function(t,i,n,r,a,o){var s=1&n,l=ta(t),c=l.length,u=ta(i),d=u.length;if(c!=d&&!s)return!1;for(var h=c;h--;){var p=l[h];if(!(s?p in i:De.call(i,p)))return!1}var m=o.get(t),f=o.get(i);if(m&&f)return m==i&&f==t;var g=!0;o.set(t,i),o.set(i,t);for(var _=s;++h<c;){var v=t[p=l[h]],y=i[p];if(r)var b=s?r(y,v,p,i,t,o):r(v,y,p,t,i,o);if(!(b===e?v===y||a(v,y,n,r,o):b)){g=!1;break}_||(_="constructor"==p)}if(g&&!_){var S=t.constructor,E=i.constructor;S==E||!("constructor"in t)||!("constructor"in i)||"function"==typeof S&&S instanceof S&&"function"==typeof E&&E instanceof E||(g=!1)}return o.delete(t),o.delete(i),g}(t,i,n,r,a,o))}(t,i,n,r,In,a))}function kn(t,i,n,r){var a=n.length,o=a,s=!r;if(null==t)return!o;for(t=Te(t);a--;){var l=n[a];if(s&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<o;){var c=(l=n[a])[0],u=t[c],d=l[1];if(s&&l[2]){if(u===e&&!(c in t))return!1}else{var h=new Vi;if(r)var p=r(u,d,c,t,i,h);if(!(p===e?In(d,u,3,r,h):p))return!1}}return!0}function Nn(e){return!(!ts(e)||(t=e,Pe&&Pe in t))&&(Zo(e)?Ue:he).test(Fa(e));var t}function On(e){return"function"==typeof e?e:null==e?rl:"object"==typeof e?qo(e)?$n(e[0],e[1]):Fn(e):pl(e)}function Dn(e){if(!Sa(e))return mi(e);var t=[];for(var i in Te(e))De.call(e,i)&&"constructor"!=i&&t.push(i);return t}function Ln(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var i in Te(e))t.push(i);return t}(e);var t=Sa(e),i=[];for(var n in e)("constructor"!=n||!t&&De.call(e,n))&&i.push(n);return i}function Pn(e,t){return e<t}function Bn(e,t){var i=-1,n=jo(e)?be(e.length):[];return un(e,function(e,r,a){n[++i]=t(e,r,a)}),n}function Fn(e){var t=la(e);return 1==t.length&&t[0][2]?wa(t[0][0],t[0][1]):function(i){return i===e||kn(i,e,t)}}function $n(t,i){return va(t)&&Ea(i)?wa(Ba(t),i):function(n){var r=xs(n,t);return r===e&&r===i?Ms(n,t):In(i,r,3)}}function Un(t,i,n,r,a){t!==i&&gn(i,function(o,s){if(a||(a=new Vi),ts(o))!function(t,i,n,r,a,o,s){var l=Aa(t,n),c=Aa(i,n),u=s.get(c);if(u)Qi(t,n,u);else{var d=o?o(l,c,n+"",t,i,s):e,h=d===e;if(h){var p=qo(c),m=!p&&Wo(c),f=!p&&!m&&us(c);d=c,p||m||f?qo(l)?d=l:Jo(l)?d=xr(l):m?(h=!1,d=Sr(c,!0)):f?(h=!1,d=wr(c,!0)):d=[]:as(c)||Ho(c)?(d=l,Ho(l)?d=vs(l):ts(l)&&!Zo(l)||(d=ma(c))):h=!1}h&&(s.set(c,d),a(d,c,r,o,s),s.delete(c)),Qi(t,n,d)}}(t,i,s,n,Un,r,a);else{var l=r?r(Aa(t,s),o,s+"",t,i,a):e;l===e&&(l=o),Qi(t,s,l)}},Os)}function Gn(t,i){var n=t.length;if(n)return ga(i+=i<0?n:0,n)?t[i]:e}function Yn(e,t,i){t=t.length?Rt(t,function(e){return qo(e)?function(t){return Sn(t,1===e.length?e[0]:e)}:e}):[rl];var n=-1;return t=Rt(t,jt(oa())),function(e,t){var i=e.length;for(e.sort(t);i--;)e[i]=e[i].value;return e}(Bn(e,function(e,i,r){return{criteria:Rt(t,function(t){return t(e)}),index:++n,value:e}}),function(e,t){return function(e,t,i){for(var n=-1,r=e.criteria,a=t.criteria,o=r.length,s=i.length;++n<o;){var l=Cr(r[n],a[n]);if(l)return n>=s?l:l*("desc"==i[n]?-1:1)}return e.index-t.index}(e,t,i)})}function zn(e,t,i){for(var n=-1,r=t.length,a={};++n<r;){var o=t[n],s=Sn(e,o);i(s,o)&&Qn(a,_r(o,e),s)}return a}function Hn(e,t,i,n){var r=n?Ft:Bt,a=-1,o=t.length,s=e;for(e===t&&(t=xr(t)),i&&(s=Rt(e,jt(i)));++a<o;)for(var l=0,c=t[a],u=i?i(c):c;(l=r(s,u,l,n))>-1;)s!==e&&Ke.call(s,l,1),Ke.call(e,l,1);return e}function qn(e,t){for(var i=e?t.length:0,n=i-1;i--;){var r=t[i];if(i==n||r!==a){var a=r;ga(r)?Ke.call(e,r,1):cr(e,r)}}return e}function Vn(e,t){return e+Dt(yi()*(t-e+1))}function jn(e,t){var i="";if(!e||t<1||t>l)return i;do{t%2&&(i+=e),(t=Dt(t/2))&&(e+=e)}while(t);return i}function Jn(e,t){return Ra(Ca(e,t,rl),e+"")}function Wn(e){return Ji(Gs(e))}function Kn(e,t){var i=Gs(e);return Na(i,an(t,0,i.length))}function Qn(t,i,n,r){if(!ts(t))return t;for(var a=-1,o=(i=_r(i,t)).length,s=o-1,l=t;null!=l&&++a<o;){var c=Ba(i[a]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(a!=s){var d=l[c];(u=r?r(d,c,l):e)===e&&(u=ts(d)?d:ga(i[a+1])?[]:{})}Zi(l,c,u),l=l[c]}return t}var Zn=xi?function(e,t){return xi.set(e,t),e}:rl,Xn=lt?function(e,t){return lt(e,"toString",{configurable:!0,enumerable:!1,value:tl(t),writable:!0})}:rl;function er(e){return Na(Gs(e))}function tr(e,t,i){var n=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(i=i>r?r:i)<0&&(i+=r),r=t>i?0:i-t>>>0,t>>>=0;for(var a=be(r);++n<r;)a[n]=e[n+t];return a}function ir(e,t){var i;return un(e,function(e,n,r){return!(i=t(e,n,r))}),!!i}function nr(e,t,i){var n=0,r=null==e?n:e.length;if("number"==typeof t&&t==t&&r<=2147483647){for(;n<r;){var a=n+r>>>1,o=e[a];null!==o&&!cs(o)&&(i?o<=t:o<t)?n=a+1:r=a}return r}return rr(e,t,rl,i)}function rr(t,i,n,r){var a=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(i=n(i))!=i,l=null===i,c=cs(i),u=i===e;a<o;){var d=Dt((a+o)/2),h=n(t[d]),p=h!==e,m=null===h,f=h==h,g=cs(h);if(s)var _=r||f;else _=u?f&&(r||p):l?f&&p&&(r||!m):c?f&&p&&!m&&(r||!g):!m&&!g&&(r?h<=i:h<i);_?a=d+1:o=d}return gi(o,4294967294)}function ar(e,t){for(var i=-1,n=e.length,r=0,a=[];++i<n;){var o=e[i],s=t?t(o):o;if(!i||!Go(s,l)){var l=s;a[r++]=0===o?0:o}}return a}function or(e){return"number"==typeof e?e:cs(e)?c:+e}function sr(e){if("string"==typeof e)return e;if(qo(e))return Rt(e,sr)+"";if(cs(e))return Pi?Pi.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function lr(e,t,i){var n=-1,r=xt,a=e.length,o=!0,s=[],l=s;if(i)o=!1,r=Mt;else if(a>=200){var c=t?null:jr(e);if(c)return ai(c);o=!1,r=Wt,l=new qi}else l=t?[]:s;e:for(;++n<a;){var u=e[n],d=t?t(u):u;if(u=i||0!==u?u:0,o&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),s.push(u)}else r(l,d,i)||(l!==s&&l.push(d),s.push(u))}return s}function cr(e,t){var i=-1,n=(t=_r(t,e)).length;if(!n)return!0;for(var r=null==e||"object"!=typeof e&&"function"!=typeof e;++i<n;){var a=t[i];if("string"==typeof a){if("__proto__"===a&&!De.call(e,"__proto__"))return!1;if("constructor"===a&&i+1<n&&"string"==typeof t[i+1]&&"prototype"===t[i+1]){if(r&&0===i)continue;return!1}}}var o=Ta(e,t);return null==o||delete o[Ba(Ka(t))]}function ur(e,t,i,n){return Qn(e,t,i(Sn(e,t)),n)}function dr(e,t,i,n){for(var r=e.length,a=n?r:-1;(n?a--:++a<r)&&t(e[a],a,e););return i?tr(e,n?0:a,n?a+1:r):tr(e,n?a+1:0,n?r:a)}function hr(e,t){var i=e;return i instanceof Gi&&(i=i.value()),kt(t,function(e,t){return t.func.apply(t.thisArg,It([e],t.args))},i)}function pr(e,t,i){var n=e.length;if(n<2)return n?lr(e[0]):[];for(var r=-1,a=be(n);++r<n;)for(var o=e[r],s=-1;++s<n;)s!=r&&(a[r]=cn(a[r]||o,e[s],t,i));return lr(fn(a,1),t,i)}function mr(t,i,n){for(var r=-1,a=t.length,o=i.length,s={};++r<a;){var l=r<o?i[r]:e;n(s,t[r],l)}return s}function fr(e){return Jo(e)?e:[]}function gr(e){return"function"==typeof e?e:rl}function _r(e,t){return qo(e)?e:va(e,t)?[e]:Pa(ys(e))}var vr=Jn;function yr(t,i,n){var r=t.length;return n=n===e?r:n,!i&&n>=r?t:tr(t,i,n)}var br=ut||function(e){return ct.clearTimeout(e)};function Sr(e,t){if(t)return e.slice();var i=e.length,n=He?He(i):new e.constructor(i);return e.copy(n),n}function Er(e){var t=new e.constructor(e.byteLength);return new ze(t).set(new ze(e)),t}function wr(e,t){var i=t?Er(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function Cr(t,i){if(t!==i){var n=t!==e,r=null===t,a=t==t,o=cs(t),s=i!==e,l=null===i,c=i==i,u=cs(i);if(!l&&!u&&!o&&t>i||o&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!a)return 1;if(!r&&!o&&!u&&t<i||u&&n&&a&&!r&&!o||l&&n&&a||!s&&a||!c)return-1}return 0}function Tr(e,t,i,n){for(var r=-1,a=e.length,o=i.length,s=-1,l=t.length,c=fi(a-o,0),u=be(l+c),d=!n;++s<l;)u[s]=t[s];for(;++r<o;)(d||r<a)&&(u[i[r]]=e[r]);for(;c--;)u[s++]=e[r++];return u}function Ar(e,t,i,n){for(var r=-1,a=e.length,o=-1,s=i.length,l=-1,c=t.length,u=fi(a-s,0),d=be(u+c),h=!n;++r<u;)d[r]=e[r];for(var p=r;++l<c;)d[p+l]=t[l];for(;++o<s;)(h||r<a)&&(d[p+i[o]]=e[r++]);return d}function xr(e,t){var i=-1,n=e.length;for(t||(t=be(n));++i<n;)t[i]=e[i];return t}function Mr(t,i,n,r){var a=!n;n||(n={});for(var o=-1,s=i.length;++o<s;){var l=i[o],c=r?r(n[l],t[l],l,n,t):e;c===e&&(c=t[l]),a?nn(n,l,c):Zi(n,l,c)}return n}function Rr(e,t){return function(i,n){var r=qo(i)?Et:en,a=t?t():{};return r(i,e,oa(n,2),a)}}function Ir(t){return Jn(function(i,n){var r=-1,a=n.length,o=a>1?n[a-1]:e,s=a>2?n[2]:e;for(o=t.length>3&&"function"==typeof o?(a--,o):e,s&&_a(n[0],n[1],s)&&(o=a<3?e:o,a=1),i=Te(i);++r<a;){var l=n[r];l&&t(i,l,r,o)}return i})}function kr(e,t){return function(i,n){if(null==i)return i;if(!jo(i))return e(i,n);for(var r=i.length,a=t?r:-1,o=Te(i);(t?a--:++a<r)&&!1!==n(o[a],a,o););return i}}function Nr(e){return function(t,i,n){for(var r=-1,a=Te(t),o=n(t),s=o.length;s--;){var l=o[e?s:++r];if(!1===i(a[l],l,a))break}return t}}function Or(t){return function(i){var n=ti(i=ys(i))?si(i):e,r=n?n[0]:i.charAt(0),a=n?yr(n,1).join(""):i.slice(1);return r[t]()+a}}function Dr(e){return function(t){return kt(Zs(Hs(t).replace(Je,"")),e,"")}}function Lr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var i=Fi(e.prototype),n=e.apply(i,t);return ts(n)?n:i}}function Pr(t){return function(i,n,r){var a=Te(i);if(!jo(i)){var o=oa(n,3);i=Ns(i),n=function(e){return o(a[e],e,a)}}var s=t(i,n,r);return s>-1?a[o?i[s]:s]:e}}function Br(i){return ea(function(n){var r=n.length,a=r,o=Ui.prototype.thru;for(i&&n.reverse();a--;){var s=n[a];if("function"!=typeof s)throw new Me(t);if(o&&!l&&"wrapper"==ra(s))var l=new Ui([],!0)}for(a=l?a:r;++a<r;){var c=ra(s=n[a]),u="wrapper"==c?na(s):e;l=u&&ya(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[ra(u[0])].apply(l,u[3]):1==s.length&&ya(s)?l[c]():l.thru(s)}return function(){var e=arguments,t=e[0];if(l&&1==e.length&&qo(t))return l.plant(t).value();for(var i=0,a=r?n[i].apply(this,e):t;++i<r;)a=n[i].call(this,a);return a}})}function Fr(t,i,n,r,o,s,l,c,u,d){var h=i&a,p=1&i,m=2&i,f=24&i,g=512&i,_=m?e:Lr(t);return function a(){for(var v=arguments.length,y=be(v),b=v;b--;)y[b]=arguments[b];if(f)var S=aa(a),E=function(e,t){for(var i=e.length,n=0;i--;)e[i]===t&&++n;return n}(y,S);if(r&&(y=Tr(y,r,o,f)),s&&(y=Ar(y,s,l,f)),v-=E,f&&v<d){var w=ri(y,S);return qr(t,i,Fr,a.placeholder,n,y,w,c,u,d-v)}var C=p?n:this,T=m?C[t]:t;return v=y.length,c?y=function(t,i){for(var n=t.length,r=gi(i.length,n),a=xr(t);r--;){var o=i[r];t[r]=ga(o,n)?a[o]:e}return t}(y,c):g&&v>1&&y.reverse(),h&&u<v&&(y.length=u),this&&this!==ct&&this instanceof a&&(T=_||Lr(T)),T.apply(C,y)}}function $r(e,t){return function(i,n){return function(e,t,i,n){return vn(e,function(e,r,a){t(n,i(e),r,a)}),n}(i,e,t(n),{})}}function Ur(t,i){return function(n,r){var a;if(n===e&&r===e)return i;if(n!==e&&(a=n),r!==e){if(a===e)return r;"string"==typeof n||"string"==typeof r?(n=sr(n),r=sr(r)):(n=or(n),r=or(r)),a=t(n,r)}return a}}function Gr(e){return ea(function(t){return t=Rt(t,jt(oa())),Jn(function(i){var n=this;return e(t,function(e){return St(e,n,i)})})})}function Yr(t,i){var n=(i=i===e?" ":sr(i)).length;if(n<2)return n?jn(i,t):i;var r=jn(i,mt(t/oi(i)));return ti(i)?yr(si(r),0,t).join(""):r.slice(0,t)}function zr(t){return function(i,n,r){return r&&"number"!=typeof r&&_a(i,n,r)&&(n=r=e),i=ms(i),n===e?(n=i,i=0):n=ms(n),function(e,t,i,n){for(var r=-1,a=fi(mt((t-e)/(i||1)),0),o=be(a);a--;)o[n?a:++r]=e,e+=i;return o}(i,n,r=r===e?i<n?1:-1:ms(r),t)}}function Hr(e){return function(t,i){return"string"==typeof t&&"string"==typeof i||(t=_s(t),i=_s(i)),e(t,i)}}function qr(t,i,n,a,o,s,l,c,u,d){var h=8&i;i|=h?r:64,4&(i&=~(h?64:r))||(i&=-4);var p=[t,i,o,h?s:e,h?l:e,h?e:s,h?e:l,c,u,d],m=n.apply(e,p);return ya(t)&&xa(m,p),m.placeholder=a,Ia(m,t,i)}function Vr(e){var t=Ce[e];return function(e,i){if(e=_s(e),(i=null==i?0:gi(fs(i),292))&&hi(e)){var n=(ys(e)+"e").split("e");return+((n=(ys(t(n[0]+"e"+(+n[1]+i)))+"e").split("e"))[0]+"e"+(+n[1]-i))}return t(e)}}var jr=Ci&&1/ai(new Ci([,-0]))[1]==s?function(e){return new Ci(e)}:cl;function Jr(e){return function(t){var i=ha(t);return i==y?ii(t):i==C?function(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=[e,e]}),i}(t):function(e,t){return Rt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Wr(i,s,l,c,u,d,h,p){var m=2&s;if(!m&&"function"!=typeof i)throw new Me(t);var f=c?c.length:0;if(f||(s&=-97,c=u=e),h=h===e?h:fi(fs(h),0),p=p===e?p:fs(p),f-=u?u.length:0,64&s){var g=c,_=u;c=u=e}var v=m?e:na(i),y=[i,s,l,c,u,g,_,d,h,p];if(v&&function(e,t){var i=e[1],r=t[1],s=i|r,l=s<131,c=r==a&&8==i||r==a&&i==o&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==i;if(!l&&!c)return e;1&r&&(e[2]=t[2],s|=1&i?0:4);var u=t[3];if(u){var d=e[3];e[3]=d?Tr(d,u,t[4]):u,e[4]=d?ri(e[3],n):t[4]}(u=t[5])&&(d=e[5],e[5]=d?Ar(d,u,t[6]):u,e[6]=d?ri(e[5],n):t[6]),(u=t[7])&&(e[7]=u),r&a&&(e[8]=null==e[8]?t[8]:gi(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=s}(y,v),i=y[0],s=y[1],l=y[2],c=y[3],u=y[4],!(p=y[9]=y[9]===e?m?0:i.length:fi(y[9]-f,0))&&24&s&&(s&=-25),s&&1!=s)b=8==s||16==s?function(t,i,n){var r=Lr(t);return function a(){for(var o=arguments.length,s=be(o),l=o,c=aa(a);l--;)s[l]=arguments[l];var u=o<3&&s[0]!==c&&s[o-1]!==c?[]:ri(s,c);return(o-=u.length)<n?qr(t,i,Fr,a.placeholder,e,s,u,e,e,n-o):St(this&&this!==ct&&this instanceof a?r:t,this,s)}}(i,s,p):s!=r&&33!=s||u.length?Fr.apply(e,y):function(e,t,i,n){var r=1&t,a=Lr(e);return function t(){for(var o=-1,s=arguments.length,l=-1,c=n.length,u=be(c+s),d=this&&this!==ct&&this instanceof t?a:e;++l<c;)u[l]=n[l];for(;s--;)u[l++]=arguments[++o];return St(d,r?i:this,u)}}(i,s,l,c);else var b=function(e,t,i){var n=1&t,r=Lr(e);return function t(){return(this&&this!==ct&&this instanceof t?r:e).apply(n?i:this,arguments)}}(i,s,l);return Ia((v?Zn:xa)(b,y),i,s)}function Kr(t,i,n,r){return t===e||Go(t,ke[n])&&!De.call(r,n)?i:t}function Qr(t,i,n,r,a,o){return ts(t)&&ts(i)&&(o.set(i,t),Un(t,i,e,Qr,o),o.delete(i)),t}function Zr(t){return as(t)?e:t}function Xr(t,i,n,r,a,o){var s=1&n,l=t.length,c=i.length;if(l!=c&&!(s&&c>l))return!1;var u=o.get(t),d=o.get(i);if(u&&d)return u==i&&d==t;var h=-1,p=!0,m=2&n?new qi:e;for(o.set(t,i),o.set(i,t);++h<l;){var f=t[h],g=i[h];if(r)var _=s?r(g,f,h,i,t,o):r(f,g,h,t,i,o);if(_!==e){if(_)continue;p=!1;break}if(m){if(!Ot(i,function(e,t){if(!Wt(m,t)&&(f===e||a(f,e,n,r,o)))return m.push(t)})){p=!1;break}}else if(f!==g&&!a(f,g,n,r,o)){p=!1;break}}return o.delete(t),o.delete(i),p}function ea(t){return Ra(Ca(t,e,qa),t+"")}function ta(e){return En(e,Ns,ua)}function ia(e){return En(e,Os,da)}var na=xi?function(e){return xi.get(e)}:cl;function ra(e){for(var t=e.name+"",i=Mi[t],n=De.call(Mi,t)?i.length:0;n--;){var r=i[n],a=r.func;if(null==a||a==e)return r.name}return t}function aa(e){return(De.call(Bi,"placeholder")?Bi:e).placeholder}function oa(){var e=Bi.iteratee||al;return e=e===al?On:e,arguments.length?e(arguments[0],arguments[1]):e}function sa(e,t){var i,n,r=e.__data__;return("string"==(n=typeof(i=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==i:null===i)?r["string"==typeof t?"string":"hash"]:r.map}function la(e){for(var t=Ns(e),i=t.length;i--;){var n=t[i],r=e[n];t[i]=[n,r,Ea(r)]}return t}function ca(t,i){var n=function(t,i){return null==t?e:t[i]}(t,i);return Nn(n)?n:e}var ua=Yt?function(e){return null==e?[]:(e=Te(e),At(Yt(e),function(t){return je.call(e,t)}))}:gl,da=Yt?function(e){for(var t=[];e;)It(t,ua(e)),e=qe(e);return t}:gl,ha=wn;function pa(e,t,i){for(var n=-1,r=(t=_r(t,e)).length,a=!1;++n<r;){var o=Ba(t[n]);if(!(a=null!=e&&i(e,o)))break;e=e[o]}return a||++n!=r?a:!!(r=null==e?0:e.length)&&es(r)&&ga(o,r)&&(qo(e)||Ho(e))}function ma(e){return"function"!=typeof e.constructor||Sa(e)?{}:Fi(qe(e))}function fa(e){return qo(e)||Ho(e)||!!(Ze&&e&&e[Ze])}function ga(e,t){var i=typeof e;return!!(t=null==t?l:t)&&("number"==i||"symbol"!=i&&me.test(e))&&e>-1&&e%1==0&&e<t}function _a(e,t,i){if(!ts(i))return!1;var n=typeof t;return!!("number"==n?jo(i)&&ga(t,i.length):"string"==n&&t in i)&&Go(i[t],e)}function va(e,t){if(qo(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!cs(e))||K.test(e)||!W.test(e)||null!=t&&e in Te(t)}function ya(e){var t=ra(e),i=Bi[t];if("function"!=typeof i||!(t in Gi.prototype))return!1;if(e===i)return!0;var n=na(i);return!!n&&e===n[0]}(Si&&ha(new Si(new ArrayBuffer(1)))!=R||Ei&&ha(new Ei)!=y||wi&&ha(wi.resolve())!=E||Ci&&ha(new Ci)!=C||Ti&&ha(new Ti)!=x)&&(ha=function(t){var i=wn(t),n=i==S?t.constructor:e,r=n?Fa(n):"";if(r)switch(r){case Ri:return R;case Ii:return y;case ki:return E;case Ni:return C;case Oi:return x}return i});var ba=Ne?Zo:_l;function Sa(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ke)}function Ea(e){return e==e&&!ts(e)}function wa(t,i){return function(n){return null!=n&&n[t]===i&&(i!==e||t in Te(n))}}function Ca(t,i,n){return i=fi(i===e?t.length-1:i,0),function(){for(var e=arguments,r=-1,a=fi(e.length-i,0),o=be(a);++r<a;)o[r]=e[i+r];r=-1;for(var s=be(i+1);++r<i;)s[r]=e[r];return s[i]=n(o),St(t,this,s)}}function Ta(e,t){return t.length<2?e:Sn(e,tr(t,0,-1))}function Aa(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var xa=ka(Zn),Ma=pt||function(e,t){return ct.setTimeout(e,t)},Ra=ka(Xn);function Ia(e,t,i){var n=t+"";return Ra(e,function(e,t){var i=t.length;if(!i)return e;var n=i-1;return t[n]=(i>1?"& ":"")+t[n],t=t.join(i>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return wt(d,function(i){var n="_."+i[0];t&i[1]&&!xt(e,n)&&e.push(n)}),e.sort()}(function(e){var t=e.match(ne);return t?t[1].split(re):[]}(n),i)))}function ka(t){var i=0,n=0;return function(){var r=_i(),a=16-(r-n);if(n=r,a>0){if(++i>=800)return arguments[0]}else i=0;return t.apply(e,arguments)}}function Na(t,i){var n=-1,r=t.length,a=r-1;for(i=i===e?r:i;++n<i;){var o=Vn(n,a),s=t[o];t[o]=t[n],t[n]=s}return t.length=i,t}var Oa,Da,La,Pa=(Oa=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Q,function(e,i,n,r){t.push(n?r.replace(se,"$1"):i||e)}),t},Da=Lo(Oa,function(e){return 500===La.size&&La.clear(),e}),La=Da.cache,Da);function Ba(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fa(e){if(null!=e){try{return Oe.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function $a(e){if(e instanceof Gi)return e.clone();var t=new Ui(e.__wrapped__,e.__chain__);return t.__actions__=xr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ua=Jn(function(e,t){return Jo(e)?cn(e,fn(t,1,Jo,!0)):[]}),Ga=Jn(function(t,i){var n=Ka(i);return Jo(n)&&(n=e),Jo(t)?cn(t,fn(i,1,Jo,!0),oa(n,2)):[]}),Ya=Jn(function(t,i){var n=Ka(i);return Jo(n)&&(n=e),Jo(t)?cn(t,fn(i,1,Jo,!0),e,n):[]});function za(e,t,i){var n=null==e?0:e.length;if(!n)return-1;var r=null==i?0:fs(i);return r<0&&(r=fi(n+r,0)),Pt(e,oa(t,3),r)}function Ha(t,i,n){var r=null==t?0:t.length;if(!r)return-1;var a=r-1;return n!==e&&(a=fs(n),a=n<0?fi(r+a,0):gi(a,r-1)),Pt(t,oa(i,3),a,!0)}function qa(e){return null!=e&&e.length?fn(e,1):[]}function Va(t){return t&&t.length?t[0]:e}var ja=Jn(function(e){var t=Rt(e,fr);return t.length&&t[0]===e[0]?xn(t):[]}),Ja=Jn(function(t){var i=Ka(t),n=Rt(t,fr);return i===Ka(n)?i=e:n.pop(),n.length&&n[0]===t[0]?xn(n,oa(i,2)):[]}),Wa=Jn(function(t){var i=Ka(t),n=Rt(t,fr);return(i="function"==typeof i?i:e)&&n.pop(),n.length&&n[0]===t[0]?xn(n,e,i):[]});function Ka(t){var i=null==t?0:t.length;return i?t[i-1]:e}var Qa=Jn(Za);function Za(e,t){return e&&e.length&&t&&t.length?Hn(e,t):e}var Xa=ea(function(e,t){var i=null==e?0:e.length,n=rn(e,t);return qn(e,Rt(t,function(e){return ga(e,i)?+e:e}).sort(Cr)),n});function eo(e){return null==e?e:bi.call(e)}var to=Jn(function(e){return lr(fn(e,1,Jo,!0))}),io=Jn(function(t){var i=Ka(t);return Jo(i)&&(i=e),lr(fn(t,1,Jo,!0),oa(i,2))}),no=Jn(function(t){var i=Ka(t);return i="function"==typeof i?i:e,lr(fn(t,1,Jo,!0),e,i)});function ro(e){if(!e||!e.length)return[];var t=0;return e=At(e,function(e){if(Jo(e))return t=fi(e.length,t),!0}),qt(t,function(t){return Rt(e,Gt(t))})}function ao(t,i){if(!t||!t.length)return[];var n=ro(t);return null==i?n:Rt(n,function(t){return St(i,e,t)})}var oo=Jn(function(e,t){return Jo(e)?cn(e,t):[]}),so=Jn(function(e){return pr(At(e,Jo))}),lo=Jn(function(t){var i=Ka(t);return Jo(i)&&(i=e),pr(At(t,Jo),oa(i,2))}),co=Jn(function(t){var i=Ka(t);return i="function"==typeof i?i:e,pr(At(t,Jo),e,i)}),uo=Jn(ro),ho=Jn(function(t){var i=t.length,n=i>1?t[i-1]:e;return n="function"==typeof n?(t.pop(),n):e,ao(t,n)});function po(e){var t=Bi(e);return t.__chain__=!0,t}function mo(e,t){return t(e)}var fo=ea(function(t){var i=t.length,n=i?t[0]:0,r=this.__wrapped__,a=function(e){return rn(e,t)};return!(i>1||this.__actions__.length)&&r instanceof Gi&&ga(n)?((r=r.slice(n,+n+(i?1:0))).__actions__.push({func:mo,args:[a],thisArg:e}),new Ui(r,this.__chain__).thru(function(t){return i&&!t.length&&t.push(e),t})):this.thru(a)}),go=Rr(function(e,t,i){De.call(e,i)?++e[i]:nn(e,i,1)}),_o=Pr(za),vo=Pr(Ha);function yo(e,t){return(qo(e)?wt:un)(e,oa(t,3))}function bo(e,t){return(qo(e)?Ct:dn)(e,oa(t,3))}var So=Rr(function(e,t,i){De.call(e,i)?e[i].push(t):nn(e,i,[t])}),Eo=Jn(function(e,t,i){var n=-1,r="function"==typeof t,a=jo(e)?be(e.length):[];return un(e,function(e){a[++n]=r?St(t,e,i):Mn(e,t,i)}),a}),wo=Rr(function(e,t,i){nn(e,i,t)});function Co(e,t){return(qo(e)?Rt:Bn)(e,oa(t,3))}var To=Rr(function(e,t,i){e[i?0:1].push(t)},function(){return[[],[]]}),Ao=Jn(function(e,t){if(null==e)return[];var i=t.length;return i>1&&_a(e,t[0],t[1])?t=[]:i>2&&_a(t[0],t[1],t[2])&&(t=[t[0]]),Yn(e,fn(t,1),[])}),xo=dt||function(){return ct.Date.now()};function Mo(t,i,n){return i=n?e:i,i=t&&null==i?t.length:i,Wr(t,a,e,e,e,e,i)}function Ro(i,n){var r;if("function"!=typeof n)throw new Me(t);return i=fs(i),function(){return--i>0&&(r=n.apply(this,arguments)),i<=1&&(n=e),r}}var Io=Jn(function(e,t,i){var n=1;if(i.length){var a=ri(i,aa(Io));n|=r}return Wr(e,n,t,i,a)}),ko=Jn(function(e,t,i){var n=3;if(i.length){var a=ri(i,aa(ko));n|=r}return Wr(t,n,e,i,a)});function No(i,n,r){var a,o,s,l,c,u,d=0,h=!1,p=!1,m=!0;if("function"!=typeof i)throw new Me(t);function f(t){var n=a,r=o;return a=o=e,d=t,l=i.apply(r,n)}function g(t){var i=t-u;return u===e||i>=n||i<0||p&&t-d>=s}function _(){var e=xo();if(g(e))return v(e);c=Ma(_,function(e){var t=n-(e-u);return p?gi(t,s-(e-d)):t}(e))}function v(t){return c=e,m&&a?f(t):(a=o=e,l)}function y(){var t=xo(),i=g(t);if(a=arguments,o=this,u=t,i){if(c===e)return function(e){return d=e,c=Ma(_,n),h?f(e):l}(u);if(p)return br(c),c=Ma(_,n),f(u)}return c===e&&(c=Ma(_,n)),l}return n=_s(n)||0,ts(r)&&(h=!!r.leading,s=(p="maxWait"in r)?fi(_s(r.maxWait)||0,n):s,m="trailing"in r?!!r.trailing:m),y.cancel=function(){c!==e&&br(c),d=0,a=u=o=c=e},y.flush=function(){return c===e?l:v(xo())},y}var Oo=Jn(function(e,t){return ln(e,1,t)}),Do=Jn(function(e,t,i){return ln(e,_s(t)||0,i)});function Lo(e,i){if("function"!=typeof e||null!=i&&"function"!=typeof i)throw new Me(t);var n=function(){var t=arguments,r=i?i.apply(this,t):t[0],a=n.cache;if(a.has(r))return a.get(r);var o=e.apply(this,t);return n.cache=a.set(r,o)||a,o};return n.cache=new(Lo.Cache||Hi),n}function Po(e){if("function"!=typeof e)throw new Me(t);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Lo.Cache=Hi;var Bo=vr(function(e,t){var i=(t=1==t.length&&qo(t[0])?Rt(t[0],jt(oa())):Rt(fn(t,1),jt(oa()))).length;return Jn(function(n){for(var r=-1,a=gi(n.length,i);++r<a;)n[r]=t[r].call(this,n[r]);return St(e,this,n)})}),Fo=Jn(function(t,i){var n=ri(i,aa(Fo));return Wr(t,r,e,i,n)}),$o=Jn(function(t,i){var n=ri(i,aa($o));return Wr(t,64,e,i,n)}),Uo=ea(function(t,i){return Wr(t,o,e,e,e,i)});function Go(e,t){return e===t||e!=e&&t!=t}var Yo=Hr(Cn),zo=Hr(function(e,t){return e>=t}),Ho=Rn(function(){return arguments}())?Rn:function(e){return is(e)&&De.call(e,"callee")&&!je.call(e,"callee")},qo=be.isArray,Vo=ft?jt(ft):function(e){return is(e)&&wn(e)==M};function jo(e){return null!=e&&es(e.length)&&!Zo(e)}function Jo(e){return is(e)&&jo(e)}var Wo=di||_l,Ko=gt?jt(gt):function(e){return is(e)&&wn(e)==f};function Qo(e){if(!is(e))return!1;var t=wn(e);return t==g||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!as(e)}function Zo(e){if(!ts(e))return!1;var t=wn(e);return t==_||t==v||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xo(e){return"number"==typeof e&&e==fs(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=l}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function is(e){return null!=e&&"object"==typeof e}var ns=_t?jt(_t):function(e){return is(e)&&ha(e)==y};function rs(e){return"number"==typeof e||is(e)&&wn(e)==b}function as(e){if(!is(e)||wn(e)!=S)return!1;var t=qe(e);if(null===t)return!0;var i=De.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&Oe.call(i)==Fe}var os=vt?jt(vt):function(e){return is(e)&&wn(e)==w},ss=yt?jt(yt):function(e){return is(e)&&ha(e)==C};function ls(e){return"string"==typeof e||!qo(e)&&is(e)&&wn(e)==T}function cs(e){return"symbol"==typeof e||is(e)&&wn(e)==A}var us=bt?jt(bt):function(e){return is(e)&&es(e.length)&&!!it[wn(e)]},ds=Hr(Pn),hs=Hr(function(e,t){return e<=t});function ps(e){if(!e)return[];if(jo(e))return ls(e)?si(e):xr(e);if(rt&&e[rt])return function(e){for(var t,i=[];!(t=e.next()).done;)i.push(t.value);return i}(e[rt]());var t=ha(e);return(t==y?ii:t==C?ai:Gs)(e)}function ms(e){return e?(e=_s(e))===s||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fs(e){var t=ms(e),i=t%1;return t==t?i?t-i:t:0}function gs(e){return e?an(fs(e),0,u):0}function _s(e){if("number"==typeof e)return e;if(cs(e))return c;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Vt(e);var i=de.test(e);return i||pe.test(e)?ot(e.slice(2),i?2:8):ue.test(e)?c:+e}function vs(e){return Mr(e,Os(e))}function ys(e){return null==e?"":sr(e)}var bs=Ir(function(e,t){if(Sa(t)||jo(t))Mr(t,Ns(t),e);else for(var i in t)De.call(t,i)&&Zi(e,i,t[i])}),Ss=Ir(function(e,t){Mr(t,Os(t),e)}),Es=Ir(function(e,t,i,n){Mr(t,Os(t),e,n)}),ws=Ir(function(e,t,i,n){Mr(t,Ns(t),e,n)}),Cs=ea(rn),Ts=Jn(function(t,i){t=Te(t);var n=-1,r=i.length,a=r>2?i[2]:e;for(a&&_a(i[0],i[1],a)&&(r=1);++n<r;)for(var o=i[n],s=Os(o),l=-1,c=s.length;++l<c;){var u=s[l],d=t[u];(d===e||Go(d,ke[u])&&!De.call(t,u))&&(t[u]=o[u])}return t}),As=Jn(function(t){return t.push(e,Qr),St(Ls,e,t)});function xs(t,i,n){var r=null==t?e:Sn(t,i);return r===e?n:r}function Ms(e,t){return null!=e&&pa(e,t,An)}var Rs=$r(function(e,t,i){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),e[t]=i},tl(rl)),Is=$r(function(e,t,i){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),De.call(e,t)?e[t].push(i):e[t]=[i]},oa),ks=Jn(Mn);function Ns(e){return jo(e)?ji(e):Dn(e)}function Os(e){return jo(e)?ji(e,!0):Ln(e)}var Ds=Ir(function(e,t,i){Un(e,t,i)}),Ls=Ir(function(e,t,i,n){Un(e,t,i,n)}),Ps=ea(function(e,t){var i={};if(null==e)return i;var n=!1;t=Rt(t,function(t){return t=_r(t,e),n||(n=t.length>1),t}),Mr(e,ia(e),i),n&&(i=on(i,7,Zr));for(var r=t.length;r--;)cr(i,t[r]);return i}),Bs=ea(function(e,t){return null==e?{}:function(e,t){return zn(e,t,function(t,i){return Ms(e,i)})}(e,t)});function Fs(e,t){if(null==e)return{};var i=Rt(ia(e),function(e){return[e]});return t=oa(t),zn(e,i,function(e,i){return t(e,i[0])})}var $s=Jr(Ns),Us=Jr(Os);function Gs(e){return null==e?[]:Jt(e,Ns(e))}var Ys=Dr(function(e,t,i){return t=t.toLowerCase(),e+(i?zs(t):t)});function zs(e){return Qs(ys(e).toLowerCase())}function Hs(e){return(e=ys(e))&&e.replace(fe,Zt).replace(We,"")}var qs=Dr(function(e,t,i){return e+(i?"-":"")+t.toLowerCase()}),Vs=Dr(function(e,t,i){return e+(i?" ":"")+t.toLowerCase()}),js=Or("toLowerCase"),Js=Dr(function(e,t,i){return e+(i?"_":"")+t.toLowerCase()}),Ws=Dr(function(e,t,i){return e+(i?" ":"")+Qs(t)}),Ks=Dr(function(e,t,i){return e+(i?" ":"")+t.toUpperCase()}),Qs=Or("toUpperCase");function Zs(t,i,n){return t=ys(t),(i=n?e:i)===e?function(e){return Xe.test(e)}(t)?function(e){return e.match(Qe)||[]}(t):function(e){return e.match(ae)||[]}(t):t.match(i)||[]}var Xs=Jn(function(t,i){try{return St(t,e,i)}catch(n){return Qo(n)?n:new Ee(n)}}),el=ea(function(e,t){return wt(t,function(t){t=Ba(t),nn(e,t,Io(e[t],e))}),e});function tl(e){return function(){return e}}var il=Br(),nl=Br(!0);function rl(e){return e}function al(e){return On("function"==typeof e?e:on(e,1))}var ol=Jn(function(e,t){return function(i){return Mn(i,e,t)}}),sl=Jn(function(e,t){return function(i){return Mn(e,i,t)}});function ll(e,t,i){var n=Ns(t),r=bn(t,n);null!=i||ts(t)&&(r.length||!n.length)||(i=t,t=e,e=this,r=bn(t,Ns(t)));var a=!(ts(i)&&"chain"in i&&!i.chain),o=Zo(e);return wt(r,function(i){var n=t[i];e[i]=n,o&&(e.prototype[i]=function(){var t=this.__chain__;if(a||t){var i=e(this.__wrapped__);return(i.__actions__=xr(this.__actions__)).push({func:n,args:arguments,thisArg:e}),i.__chain__=t,i}return n.apply(e,It([this.value()],arguments))})}),e}function cl(){}var ul=Gr(Rt),dl=Gr(Tt),hl=Gr(Ot);function pl(e){return va(e)?Gt(Ba(e)):function(e){return function(t){return Sn(t,e)}}(e)}var ml=zr(),fl=zr(!0);function gl(){return[]}function _l(){return!1}var vl,yl=Ur(function(e,t){return e+t},0),bl=Vr("ceil"),Sl=Ur(function(e,t){return e/t},1),El=Vr("floor"),wl=Ur(function(e,t){return e*t},1),Cl=Vr("round"),Tl=Ur(function(e,t){return e-t},0);return Bi.after=function(e,i){if("function"!=typeof i)throw new Me(t);return e=fs(e),function(){if(--e<1)return i.apply(this,arguments)}},Bi.ary=Mo,Bi.assign=bs,Bi.assignIn=Ss,Bi.assignInWith=Es,Bi.assignWith=ws,Bi.at=Cs,Bi.before=Ro,Bi.bind=Io,Bi.bindAll=el,Bi.bindKey=ko,Bi.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qo(e)?e:[e]},Bi.chain=po,Bi.chunk=function(t,i,n){i=(n?_a(t,i,n):i===e)?1:fi(fs(i),0);var r=null==t?0:t.length;if(!r||i<1)return[];for(var a=0,o=0,s=be(mt(r/i));a<r;)s[o++]=tr(t,a,a+=i);return s},Bi.compact=function(e){for(var t=-1,i=null==e?0:e.length,n=0,r=[];++t<i;){var a=e[t];a&&(r[n++]=a)}return r},Bi.concat=function(){var e=arguments.length;if(!e)return[];for(var t=be(e-1),i=arguments[0],n=e;n--;)t[n-1]=arguments[n];return It(qo(i)?xr(i):[i],fn(t,1))},Bi.cond=function(e){var i=null==e?0:e.length,n=oa();return e=i?Rt(e,function(e){if("function"!=typeof e[1])throw new Me(t);return[n(e[0]),e[1]]}):[],Jn(function(t){for(var n=-1;++n<i;){var r=e[n];if(St(r[0],this,t))return St(r[1],this,t)}})},Bi.conforms=function(e){return function(e){var t=Ns(e);return function(i){return sn(i,e,t)}}(on(e,1))},Bi.constant=tl,Bi.countBy=go,Bi.create=function(e,t){var i=Fi(e);return null==t?i:tn(i,t)},Bi.curry=function t(i,n,r){var a=Wr(i,8,e,e,e,e,e,n=r?e:n);return a.placeholder=t.placeholder,a},Bi.curryRight=function t(i,n,r){var a=Wr(i,16,e,e,e,e,e,n=r?e:n);return a.placeholder=t.placeholder,a},Bi.debounce=No,Bi.defaults=Ts,Bi.defaultsDeep=As,Bi.defer=Oo,Bi.delay=Do,Bi.difference=Ua,Bi.differenceBy=Ga,Bi.differenceWith=Ya,Bi.drop=function(t,i,n){var r=null==t?0:t.length;return r?tr(t,(i=n||i===e?1:fs(i))<0?0:i,r):[]},Bi.dropRight=function(t,i,n){var r=null==t?0:t.length;return r?tr(t,0,(i=r-(i=n||i===e?1:fs(i)))<0?0:i):[]},Bi.dropRightWhile=function(e,t){return e&&e.length?dr(e,oa(t,3),!0,!0):[]},Bi.dropWhile=function(e,t){return e&&e.length?dr(e,oa(t,3),!0):[]},Bi.fill=function(t,i,n,r){var a=null==t?0:t.length;return a?(n&&"number"!=typeof n&&_a(t,i,n)&&(n=0,r=a),function(t,i,n,r){var a=t.length;for((n=fs(n))<0&&(n=-n>a?0:a+n),(r=r===e||r>a?a:fs(r))<0&&(r+=a),r=n>r?0:gs(r);n<r;)t[n++]=i;return t}(t,i,n,r)):[]},Bi.filter=function(e,t){return(qo(e)?At:mn)(e,oa(t,3))},Bi.flatMap=function(e,t){return fn(Co(e,t),1)},Bi.flatMapDeep=function(e,t){return fn(Co(e,t),s)},Bi.flatMapDepth=function(t,i,n){return n=n===e?1:fs(n),fn(Co(t,i),n)},Bi.flatten=qa,Bi.flattenDeep=function(e){return null!=e&&e.length?fn(e,s):[]},Bi.flattenDepth=function(t,i){return null!=t&&t.length?fn(t,i=i===e?1:fs(i)):[]},Bi.flip=function(e){return Wr(e,512)},Bi.flow=il,Bi.flowRight=nl,Bi.fromPairs=function(e){for(var t=-1,i=null==e?0:e.length,n={};++t<i;){var r=e[t];n[r[0]]=r[1]}return n},Bi.functions=function(e){return null==e?[]:bn(e,Ns(e))},Bi.functionsIn=function(e){return null==e?[]:bn(e,Os(e))},Bi.groupBy=So,Bi.initial=function(e){return null!=e&&e.length?tr(e,0,-1):[]},Bi.intersection=ja,Bi.intersectionBy=Ja,Bi.intersectionWith=Wa,Bi.invert=Rs,Bi.invertBy=Is,Bi.invokeMap=Eo,Bi.iteratee=al,Bi.keyBy=wo,Bi.keys=Ns,Bi.keysIn=Os,Bi.map=Co,Bi.mapKeys=function(e,t){var i={};return t=oa(t,3),vn(e,function(e,n,r){nn(i,t(e,n,r),e)}),i},Bi.mapValues=function(e,t){var i={};return t=oa(t,3),vn(e,function(e,n,r){nn(i,n,t(e,n,r))}),i},Bi.matches=function(e){return Fn(on(e,1))},Bi.matchesProperty=function(e,t){return $n(e,on(t,1))},Bi.memoize=Lo,Bi.merge=Ds,Bi.mergeWith=Ls,Bi.method=ol,Bi.methodOf=sl,Bi.mixin=ll,Bi.negate=Po,Bi.nthArg=function(e){return e=fs(e),Jn(function(t){return Gn(t,e)})},Bi.omit=Ps,Bi.omitBy=function(e,t){return Fs(e,Po(oa(t)))},Bi.once=function(e){return Ro(2,e)},Bi.orderBy=function(t,i,n,r){return null==t?[]:(qo(i)||(i=null==i?[]:[i]),qo(n=r?e:n)||(n=null==n?[]:[n]),Yn(t,i,n))},Bi.over=ul,Bi.overArgs=Bo,Bi.overEvery=dl,Bi.overSome=hl,Bi.partial=Fo,Bi.partialRight=$o,Bi.partition=To,Bi.pick=Bs,Bi.pickBy=Fs,Bi.property=pl,Bi.propertyOf=function(t){return function(i){return null==t?e:Sn(t,i)}},Bi.pull=Qa,Bi.pullAll=Za,Bi.pullAllBy=function(e,t,i){return e&&e.length&&t&&t.length?Hn(e,t,oa(i,2)):e},Bi.pullAllWith=function(t,i,n){return t&&t.length&&i&&i.length?Hn(t,i,e,n):t},Bi.pullAt=Xa,Bi.range=ml,Bi.rangeRight=fl,Bi.rearg=Uo,Bi.reject=function(e,t){return(qo(e)?At:mn)(e,Po(oa(t,3)))},Bi.remove=function(e,t){var i=[];if(!e||!e.length)return i;var n=-1,r=[],a=e.length;for(t=oa(t,3);++n<a;){var o=e[n];t(o,n,e)&&(i.push(o),r.push(n))}return qn(e,r),i},Bi.rest=function(i,n){if("function"!=typeof i)throw new Me(t);return Jn(i,n=n===e?n:fs(n))},Bi.reverse=eo,Bi.sampleSize=function(t,i,n){return i=(n?_a(t,i,n):i===e)?1:fs(i),(qo(t)?Wi:Kn)(t,i)},Bi.set=function(e,t,i){return null==e?e:Qn(e,t,i)},Bi.setWith=function(t,i,n,r){return r="function"==typeof r?r:e,null==t?t:Qn(t,i,n,r)},Bi.shuffle=function(e){return(qo(e)?Ki:er)(e)},Bi.slice=function(t,i,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&_a(t,i,n)?(i=0,n=r):(i=null==i?0:fs(i),n=n===e?r:fs(n)),tr(t,i,n)):[]},Bi.sortBy=Ao,Bi.sortedUniq=function(e){return e&&e.length?ar(e):[]},Bi.sortedUniqBy=function(e,t){return e&&e.length?ar(e,oa(t,2)):[]},Bi.split=function(t,i,n){return n&&"number"!=typeof n&&_a(t,i,n)&&(i=n=e),(n=n===e?u:n>>>0)?(t=ys(t))&&("string"==typeof i||null!=i&&!os(i))&&!(i=sr(i))&&ti(t)?yr(si(t),0,n):t.split(i,n):[]},Bi.spread=function(e,i){if("function"!=typeof e)throw new Me(t);return i=null==i?0:fi(fs(i),0),Jn(function(t){var n=t[i],r=yr(t,0,i);return n&&It(r,n),St(e,this,r)})},Bi.tail=function(e){var t=null==e?0:e.length;return t?tr(e,1,t):[]},Bi.take=function(t,i,n){return t&&t.length?tr(t,0,(i=n||i===e?1:fs(i))<0?0:i):[]},Bi.takeRight=function(t,i,n){var r=null==t?0:t.length;return r?tr(t,(i=r-(i=n||i===e?1:fs(i)))<0?0:i,r):[]},Bi.takeRightWhile=function(e,t){return e&&e.length?dr(e,oa(t,3),!1,!0):[]},Bi.takeWhile=function(e,t){return e&&e.length?dr(e,oa(t,3)):[]},Bi.tap=function(e,t){return t(e),e},Bi.throttle=function(e,i,n){var r=!0,a=!0;if("function"!=typeof e)throw new Me(t);return ts(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),No(e,i,{leading:r,maxWait:i,trailing:a})},Bi.thru=mo,Bi.toArray=ps,Bi.toPairs=$s,Bi.toPairsIn=Us,Bi.toPath=function(e){return qo(e)?Rt(e,Ba):cs(e)?[e]:xr(Pa(ys(e)))},Bi.toPlainObject=vs,Bi.transform=function(e,t,i){var n=qo(e),r=n||Wo(e)||us(e);if(t=oa(t,4),null==i){var a=e&&e.constructor;i=r?n?new a:[]:ts(e)&&Zo(a)?Fi(qe(e)):{}}return(r?wt:vn)(e,function(e,n,r){return t(i,e,n,r)}),i},Bi.unary=function(e){return Mo(e,1)},Bi.union=to,Bi.unionBy=io,Bi.unionWith=no,Bi.uniq=function(e){return e&&e.length?lr(e):[]},Bi.uniqBy=function(e,t){return e&&e.length?lr(e,oa(t,2)):[]},Bi.uniqWith=function(t,i){return i="function"==typeof i?i:e,t&&t.length?lr(t,e,i):[]},Bi.unset=function(e,t){return null==e||cr(e,t)},Bi.unzip=ro,Bi.unzipWith=ao,Bi.update=function(e,t,i){return null==e?e:ur(e,t,gr(i))},Bi.updateWith=function(t,i,n,r){return r="function"==typeof r?r:e,null==t?t:ur(t,i,gr(n),r)},Bi.values=Gs,Bi.valuesIn=function(e){return null==e?[]:Jt(e,Os(e))},Bi.without=oo,Bi.words=Zs,Bi.wrap=function(e,t){return Fo(gr(t),e)},Bi.xor=so,Bi.xorBy=lo,Bi.xorWith=co,Bi.zip=uo,Bi.zipObject=function(e,t){return mr(e||[],t||[],Zi)},Bi.zipObjectDeep=function(e,t){return mr(e||[],t||[],Qn)},Bi.zipWith=ho,Bi.entries=$s,Bi.entriesIn=Us,Bi.extend=Ss,Bi.extendWith=Es,ll(Bi,Bi),Bi.add=yl,Bi.attempt=Xs,Bi.camelCase=Ys,Bi.capitalize=zs,Bi.ceil=bl,Bi.clamp=function(t,i,n){return n===e&&(n=i,i=e),n!==e&&(n=(n=_s(n))==n?n:0),i!==e&&(i=(i=_s(i))==i?i:0),an(_s(t),i,n)},Bi.clone=function(e){return on(e,4)},Bi.cloneDeep=function(e){return on(e,5)},Bi.cloneDeepWith=function(t,i){return on(t,5,i="function"==typeof i?i:e)},Bi.cloneWith=function(t,i){return on(t,4,i="function"==typeof i?i:e)},Bi.conformsTo=function(e,t){return null==t||sn(e,t,Ns(t))},Bi.deburr=Hs,Bi.defaultTo=function(e,t){return null==e||e!=e?t:e},Bi.divide=Sl,Bi.endsWith=function(t,i,n){t=ys(t),i=sr(i);var r=t.length,a=n=n===e?r:an(fs(n),0,r);return(n-=i.length)>=0&&t.slice(n,a)==i},Bi.eq=Go,Bi.escape=function(e){return(e=ys(e))&&q.test(e)?e.replace(z,Xt):e},Bi.escapeRegExp=function(e){return(e=ys(e))&&X.test(e)?e.replace(Z,"\\$&"):e},Bi.every=function(t,i,n){var r=qo(t)?Tt:hn;return n&&_a(t,i,n)&&(i=e),r(t,oa(i,3))},Bi.find=_o,Bi.findIndex=za,Bi.findKey=function(e,t){return Lt(e,oa(t,3),vn)},Bi.findLast=vo,Bi.findLastIndex=Ha,Bi.findLastKey=function(e,t){return Lt(e,oa(t,3),yn)},Bi.floor=El,Bi.forEach=yo,Bi.forEachRight=bo,Bi.forIn=function(e,t){return null==e?e:gn(e,oa(t,3),Os)},Bi.forInRight=function(e,t){return null==e?e:_n(e,oa(t,3),Os)},Bi.forOwn=function(e,t){return e&&vn(e,oa(t,3))},Bi.forOwnRight=function(e,t){return e&&yn(e,oa(t,3))},Bi.get=xs,Bi.gt=Yo,Bi.gte=zo,Bi.has=function(e,t){return null!=e&&pa(e,t,Tn)},Bi.hasIn=Ms,Bi.head=Va,Bi.identity=rl,Bi.includes=function(e,t,i,n){e=jo(e)?e:Gs(e),i=i&&!n?fs(i):0;var r=e.length;return i<0&&(i=fi(r+i,0)),ls(e)?i<=r&&e.indexOf(t,i)>-1:!!r&&Bt(e,t,i)>-1},Bi.indexOf=function(e,t,i){var n=null==e?0:e.length;if(!n)return-1;var r=null==i?0:fs(i);return r<0&&(r=fi(n+r,0)),Bt(e,t,r)},Bi.inRange=function(t,i,n){return i=ms(i),n===e?(n=i,i=0):n=ms(n),function(e,t,i){return e>=gi(t,i)&&e<fi(t,i)}(t=_s(t),i,n)},Bi.invoke=ks,Bi.isArguments=Ho,Bi.isArray=qo,Bi.isArrayBuffer=Vo,Bi.isArrayLike=jo,Bi.isArrayLikeObject=Jo,Bi.isBoolean=function(e){return!0===e||!1===e||is(e)&&wn(e)==m},Bi.isBuffer=Wo,Bi.isDate=Ko,Bi.isElement=function(e){return is(e)&&1===e.nodeType&&!as(e)},Bi.isEmpty=function(e){if(null==e)return!0;if(jo(e)&&(qo(e)||"string"==typeof e||"function"==typeof e.splice||Wo(e)||us(e)||Ho(e)))return!e.length;var t=ha(e);if(t==y||t==C)return!e.size;if(Sa(e))return!Dn(e).length;for(var i in e)if(De.call(e,i))return!1;return!0},Bi.isEqual=function(e,t){return In(e,t)},Bi.isEqualWith=function(t,i,n){var r=(n="function"==typeof n?n:e)?n(t,i):e;return r===e?In(t,i,e,n):!!r},Bi.isError=Qo,Bi.isFinite=function(e){return"number"==typeof e&&hi(e)},Bi.isFunction=Zo,Bi.isInteger=Xo,Bi.isLength=es,Bi.isMap=ns,Bi.isMatch=function(e,t){return e===t||kn(e,t,la(t))},Bi.isMatchWith=function(t,i,n){return n="function"==typeof n?n:e,kn(t,i,la(i),n)},Bi.isNaN=function(e){return rs(e)&&e!=+e},Bi.isNative=function(e){if(ba(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Nn(e)},Bi.isNil=function(e){return null==e},Bi.isNull=function(e){return null===e},Bi.isNumber=rs,Bi.isObject=ts,Bi.isObjectLike=is,Bi.isPlainObject=as,Bi.isRegExp=os,Bi.isSafeInteger=function(e){return Xo(e)&&e>=-9007199254740991&&e<=l},Bi.isSet=ss,Bi.isString=ls,Bi.isSymbol=cs,Bi.isTypedArray=us,Bi.isUndefined=function(t){return t===e},Bi.isWeakMap=function(e){return is(e)&&ha(e)==x},Bi.isWeakSet=function(e){return is(e)&&"[object WeakSet]"==wn(e)},Bi.join=function(e,t){return null==e?"":pi.call(e,t)},Bi.kebabCase=qs,Bi.last=Ka,Bi.lastIndexOf=function(t,i,n){var r=null==t?0:t.length;if(!r)return-1;var a=r;return n!==e&&(a=(a=fs(n))<0?fi(r+a,0):gi(a,r-1)),i==i?function(e,t,i){for(var n=i+1;n--;)if(e[n]===t)return n;return n}(t,i,a):Pt(t,$t,a,!0)},Bi.lowerCase=Vs,Bi.lowerFirst=js,Bi.lt=ds,Bi.lte=hs,Bi.max=function(t){return t&&t.length?pn(t,rl,Cn):e},Bi.maxBy=function(t,i){return t&&t.length?pn(t,oa(i,2),Cn):e},Bi.mean=function(e){return Ut(e,rl)},Bi.meanBy=function(e,t){return Ut(e,oa(t,2))},Bi.min=function(t){return t&&t.length?pn(t,rl,Pn):e},Bi.minBy=function(t,i){return t&&t.length?pn(t,oa(i,2),Pn):e},Bi.stubArray=gl,Bi.stubFalse=_l,Bi.stubObject=function(){return{}},Bi.stubString=function(){return""},Bi.stubTrue=function(){return!0},Bi.multiply=wl,Bi.nth=function(t,i){return t&&t.length?Gn(t,fs(i)):e},Bi.noConflict=function(){return ct._===this&&(ct._=$e),this},Bi.noop=cl,Bi.now=xo,Bi.pad=function(e,t,i){e=ys(e);var n=(t=fs(t))?oi(e):0;if(!t||n>=t)return e;var r=(t-n)/2;return Yr(Dt(r),i)+e+Yr(mt(r),i)},Bi.padEnd=function(e,t,i){e=ys(e);var n=(t=fs(t))?oi(e):0;return t&&n<t?e+Yr(t-n,i):e},Bi.padStart=function(e,t,i){e=ys(e);var n=(t=fs(t))?oi(e):0;return t&&n<t?Yr(t-n,i)+e:e},Bi.parseInt=function(e,t,i){return i||null==t?t=0:t&&(t=+t),vi(ys(e).replace(ee,""),t||0)},Bi.random=function(t,i,n){if(n&&"boolean"!=typeof n&&_a(t,i,n)&&(i=n=e),n===e&&("boolean"==typeof i?(n=i,i=e):"boolean"==typeof t&&(n=t,t=e)),t===e&&i===e?(t=0,i=1):(t=ms(t),i===e?(i=t,t=0):i=ms(i)),t>i){var r=t;t=i,i=r}if(n||t%1||i%1){var a=yi();return gi(t+a*(i-t+at("1e-"+((a+"").length-1))),i)}return Vn(t,i)},Bi.reduce=function(e,t,i){var n=qo(e)?kt:zt,r=arguments.length<3;return n(e,oa(t,4),i,r,un)},Bi.reduceRight=function(e,t,i){var n=qo(e)?Nt:zt,r=arguments.length<3;return n(e,oa(t,4),i,r,dn)},Bi.repeat=function(t,i,n){return i=(n?_a(t,i,n):i===e)?1:fs(i),jn(ys(t),i)},Bi.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bi.result=function(t,i,n){var r=-1,a=(i=_r(i,t)).length;for(a||(a=1,t=e);++r<a;){var o=null==t?e:t[Ba(i[r])];o===e&&(r=a,o=n),t=Zo(o)?o.call(t):o}return t},Bi.round=Cl,Bi.runInContext=te,Bi.sample=function(e){return(qo(e)?Ji:Wn)(e)},Bi.size=function(e){if(null==e)return 0;if(jo(e))return ls(e)?oi(e):e.length;var t=ha(e);return t==y||t==C?e.size:Dn(e).length},Bi.snakeCase=Js,Bi.some=function(t,i,n){var r=qo(t)?Ot:ir;return n&&_a(t,i,n)&&(i=e),r(t,oa(i,3))},Bi.sortedIndex=function(e,t){return nr(e,t)},Bi.sortedIndexBy=function(e,t,i){return rr(e,t,oa(i,2))},Bi.sortedIndexOf=function(e,t){var i=null==e?0:e.length;if(i){var n=nr(e,t);if(n<i&&Go(e[n],t))return n}return-1},Bi.sortedLastIndex=function(e,t){return nr(e,t,!0)},Bi.sortedLastIndexBy=function(e,t,i){return rr(e,t,oa(i,2),!0)},Bi.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var i=nr(e,t,!0)-1;if(Go(e[i],t))return i}return-1},Bi.startCase=Ws,Bi.startsWith=function(e,t,i){return e=ys(e),i=null==i?0:an(fs(i),0,e.length),t=sr(t),e.slice(i,i+t.length)==t},Bi.subtract=Tl,Bi.sum=function(e){return e&&e.length?Ht(e,rl):0},Bi.sumBy=function(e,t){return e&&e.length?Ht(e,oa(t,2)):0},Bi.template=function(t,i,n){var r=Bi.templateSettings;n&&_a(t,i,n)&&(i=e),t=ys(t),i=Es({},i,r,Kr);var a,o,s=Es({},i.imports,r.imports,Kr),l=Ns(s),c=Jt(s,l),u=0,d=i.interpolate||ge,h="__p += '",p=Ae((i.escape||ge).source+"|"+d.source+"|"+(d===J?le:ge).source+"|"+(i.evaluate||ge).source+"|$","g"),m="//# sourceURL="+(De.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tt+"]")+"\n";t.replace(p,function(e,i,n,r,s,l){return n||(n=r),h+=t.slice(u,l).replace(_e,ei),i&&(a=!0,h+="' +\n__e("+i+") +\n'"),s&&(o=!0,h+="';\n"+s+";\n__p += '"),n&&(h+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),u=l+e.length,e}),h+="';\n";var f=De.call(i,"variable")&&i.variable;if(f){if(oe.test(f))throw new Ee("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace($,""):h).replace(U,"$1").replace(G,"$1;"),h="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Xs(function(){return we(l,m+"return "+h).apply(e,c)});if(g.source=h,Qo(g))throw g;return g},Bi.times=function(e,t){if((e=fs(e))<1||e>l)return[];var i=u,n=gi(e,u);t=oa(t),e-=u;for(var r=qt(n,t);++i<e;)t(i);return r},Bi.toFinite=ms,Bi.toInteger=fs,Bi.toLength=gs,Bi.toLower=function(e){return ys(e).toLowerCase()},Bi.toNumber=_s,Bi.toSafeInteger=function(e){return e?an(fs(e),-9007199254740991,l):0===e?e:0},Bi.toString=ys,Bi.toUpper=function(e){return ys(e).toUpperCase()},Bi.trim=function(t,i,n){if((t=ys(t))&&(n||i===e))return Vt(t);if(!t||!(i=sr(i)))return t;var r=si(t),a=si(i);return yr(r,Kt(r,a),Qt(r,a)+1).join("")},Bi.trimEnd=function(t,i,n){if((t=ys(t))&&(n||i===e))return t.slice(0,li(t)+1);if(!t||!(i=sr(i)))return t;var r=si(t);return yr(r,0,Qt(r,si(i))+1).join("")},Bi.trimStart=function(t,i,n){if((t=ys(t))&&(n||i===e))return t.replace(ee,"");if(!t||!(i=sr(i)))return t;var r=si(t);return yr(r,Kt(r,si(i))).join("")},Bi.truncate=function(t,i){var n=30,r="...";if(ts(i)){var a="separator"in i?i.separator:a;n="length"in i?fs(i.length):n,r="omission"in i?sr(i.omission):r}var o=(t=ys(t)).length;if(ti(t)){var s=si(t);o=s.length}if(n>=o)return t;var l=n-oi(r);if(l<1)return r;var c=s?yr(s,0,l).join(""):t.slice(0,l);if(a===e)return c+r;if(s&&(l+=c.length-l),os(a)){if(t.slice(l).search(a)){var u,d=c;for(a.global||(a=Ae(a.source,ys(ce.exec(a))+"g")),a.lastIndex=0;u=a.exec(d);)var h=u.index;c=c.slice(0,h===e?l:h)}}else if(t.indexOf(sr(a),l)!=l){var p=c.lastIndexOf(a);p>-1&&(c=c.slice(0,p))}return c+r},Bi.unescape=function(e){return(e=ys(e))&&H.test(e)?e.replace(Y,ci):e},Bi.uniqueId=function(e){var t=++Le;return ys(e)+t},Bi.upperCase=Ks,Bi.upperFirst=Qs,Bi.each=yo,Bi.eachRight=bo,Bi.first=Va,ll(Bi,(vl={},vn(Bi,function(e,t){De.call(Bi.prototype,t)||(vl[t]=e)}),vl),{chain:!1}),Bi.VERSION="4.17.23",wt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Bi[e].placeholder=Bi}),wt(["drop","take"],function(t,i){Gi.prototype[t]=function(n){n=n===e?1:fi(fs(n),0);var r=this.__filtered__&&!i?new Gi(this):this.clone();return r.__filtered__?r.__takeCount__=gi(n,r.__takeCount__):r.__views__.push({size:gi(n,u),type:t+(r.__dir__<0?"Right":"")}),r},Gi.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),wt(["filter","map","takeWhile"],function(e,t){var i=t+1,n=1==i||3==i;Gi.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oa(e,3),type:i}),t.__filtered__=t.__filtered__||n,t}}),wt(["head","last"],function(e,t){var i="take"+(t?"Right":"");Gi.prototype[e]=function(){return this[i](1).value()[0]}}),wt(["initial","tail"],function(e,t){var i="drop"+(t?"":"Right");Gi.prototype[e]=function(){return this.__filtered__?new Gi(this):this[i](1)}}),Gi.prototype.compact=function(){return this.filter(rl)},Gi.prototype.find=function(e){return this.filter(e).head()},Gi.prototype.findLast=function(e){return this.reverse().find(e)},Gi.prototype.invokeMap=Jn(function(e,t){return"function"==typeof e?new Gi(this):this.map(function(i){return Mn(i,e,t)})}),Gi.prototype.reject=function(e){return this.filter(Po(oa(e)))},Gi.prototype.slice=function(t,i){t=fs(t);var n=this;return n.__filtered__&&(t>0||i<0)?new Gi(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),i!==e&&(n=(i=fs(i))<0?n.dropRight(-i):n.take(i-t)),n)},Gi.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Gi.prototype.toArray=function(){return this.take(u)},vn(Gi.prototype,function(t,i){var n=/^(?:filter|find|map|reject)|While$/.test(i),r=/^(?:head|last)$/.test(i),a=Bi[r?"take"+("last"==i?"Right":""):i],o=r||/^find/.test(i);a&&(Bi.prototype[i]=function(){var i=this.__wrapped__,s=r?[1]:arguments,l=i instanceof Gi,c=s[0],u=l||qo(i),d=function(e){var t=a.apply(Bi,It([e],s));return r&&h?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,p=!!this.__actions__.length,m=o&&!h,f=l&&!p;if(!o&&u){i=f?i:new Gi(this);var g=t.apply(i,s);return g.__actions__.push({func:mo,args:[d],thisArg:e}),new Ui(g,h)}return m&&f?t.apply(this,s):(g=this.thru(d),m?r?g.value()[0]:g.value():g)})}),wt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Re[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Bi.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var r=this.value();return t.apply(qo(r)?r:[],e)}return this[i](function(i){return t.apply(qo(i)?i:[],e)})}}),vn(Gi.prototype,function(e,t){var i=Bi[t];if(i){var n=i.name+"";De.call(Mi,n)||(Mi[n]=[]),Mi[n].push({name:t,func:i})}}),Mi[Fr(e,2).name]=[{name:"wrapper",func:e}],Gi.prototype.clone=function(){var e=new Gi(this.__wrapped__);return e.__actions__=xr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=xr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=xr(this.__views__),e},Gi.prototype.reverse=function(){if(this.__filtered__){var e=new Gi(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Gi.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,i=qo(e),n=t<0,r=i?e.length:0,a=function(e,t,i){for(var n=-1,r=i.length;++n<r;){var a=i[n],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=gi(t,e+o);break;case"takeRight":e=fi(e,t-o)}}return{start:e,end:t}}(0,r,this.__views__),o=a.start,s=a.end,l=s-o,c=n?s:o-1,u=this.__iteratees__,d=u.length,h=0,p=gi(l,this.__takeCount__);if(!i||!n&&r==l&&p==l)return hr(e,this.__actions__);var m=[];e:for(;l--&&h<p;){for(var f=-1,g=e[c+=t];++f<d;){var _=u[f],v=_.iteratee,y=_.type,b=v(g);if(2==y)g=b;else if(!b){if(1==y)continue e;break e}}m[h++]=g}return m},Bi.prototype.at=fo,Bi.prototype.chain=function(){return po(this)},Bi.prototype.commit=function(){return new Ui(this.value(),this.__chain__)},Bi.prototype.next=function(){this.__values__===e&&(this.__values__=ps(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},Bi.prototype.plant=function(t){for(var i,n=this;n instanceof $i;){var r=$a(n);r.__index__=0,r.__values__=e,i?a.__wrapped__=r:i=r;var a=r;n=n.__wrapped__}return a.__wrapped__=t,i},Bi.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Gi){var i=t;return this.__actions__.length&&(i=new Gi(this)),(i=i.reverse()).__actions__.push({func:mo,args:[eo],thisArg:e}),new Ui(i,this.__chain__)}return this.thru(eo)},Bi.prototype.toJSON=Bi.prototype.valueOf=Bi.prototype.value=function(){return hr(this.__wrapped__,this.__actions__)},Bi.prototype.first=Bi.prototype.head,rt&&(Bi.prototype[rt]=function(){return this}),Bi}();dt?((dt.exports=ui)._=ui,ut._=ui):ct._=ui}.call(commonjsGlobal);var lodashExports=lodash.exports;const _$1=getDefaultExportFromCjs$1(lodashExports),_sfc_main$2g={name:"AreaSelect",props:{},computed:{},data:()=>({active:!1,show:!0}),created(){},methods:{}};var _sfc_render$2g=function(){var e=this._self._c;return e("div",[e("div",{class:{"header-nav":!0,active:this.active}})])},_sfc_staticRenderFns$2g=[],__component__$2g=normalizeComponent(_sfc_main$2g,_sfc_render$2g,_sfc_staticRenderFns$2g,!1,null,"f4b21a81");const AreaSelect=__component__$2g.exports;var axios$4={exports:{}},bind$7=function(e,t){return function(){for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];return e.apply(t,i)}},bind$6=bind$7,toString$6=Object.prototype.toString,kindOf=function(e){return function(t){var i=toString$6.call(t);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())}}(Object.create(null));function kindOfTest(e){return e=e.toLowerCase(),function(t){return kindOf(t)===e}}function isArray$6(e){return Array.isArray(e)}function isUndefined$1(e){return void 0===e}function isBuffer(e){return null!==e&&!isUndefined$1(e)&&null!==e.constructor&&!isUndefined$1(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&isArrayBuffer(e.buffer)}function isString$3(e){return"string"==typeof e}function isNumber$2(e){return"number"==typeof e}function isObject$5(e){return null!==e&&"object"==typeof e}function isPlainObject(e){if("object"!==kindOf(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var isDate$2=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList");function isFunction$4(e){return"[object Function]"===toString$6.call(e)}function isStream(e){return isObject$5(e)&&isFunction$4(e.pipe)}function isFormData(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||toString$6.call(e)===t||isFunction$4(e.toString)&&e.toString()===t)}var isURLSearchParams=kindOfTest("URLSearchParams");function trim$1(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function forEach$1(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),isArray$6(e))for(var i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}function merge$1(){var e={};function t(t,i){isPlainObject(e[i])&&isPlainObject(t)?e[i]=merge$1(e[i],t):isPlainObject(t)?e[i]=merge$1({},t):isArray$6(t)?e[i]=t.slice():e[i]=t}for(var i=0,n=arguments.length;i<n;i++)forEach$1(arguments[i],t);return e}function extend$2(e,t,i){return forEach$1(t,function(t,n){e[n]=i&&"function"==typeof t?bind$6(t,i):t}),e}function stripBOM(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}function inherits$W(e,t,i,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,i&&Object.assign(e.prototype,i)}function toFlatObject(e,t,i){var n,r,a,o={};t=t||{};do{for(r=(n=Object.getOwnPropertyNames(e)).length;r-- >0;)o[a=n[r]]||(t[a]=e[a],o[a]=!0);e=Object.getPrototypeOf(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t}function endsWith(e,t,i){e=String(e),(void 0===i||i>e.length)&&(i=e.length),i-=t.length;var n=e.indexOf(t,i);return-1!==n&&n===i}function toArray$3(e){if(!e)return null;var t=e.length;if(isUndefined$1(t))return null;for(var i=new Array(t);t-- >0;)i[t]=e[t];return i}var isTypedArray$3=function(e){return function(t){return e&&t instanceof e}}("undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array)),utils$B={isArray:isArray$6,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString$3,isNumber:isNumber$2,isObject:isObject$5,isPlainObject:isPlainObject,isUndefined:isUndefined$1,isDate:isDate$2,isFile:isFile,isBlob:isBlob,isFunction:isFunction$4,isStream:isStream,isURLSearchParams:isURLSearchParams,isStandardBrowserEnv:isStandardBrowserEnv,forEach:forEach$1,merge:merge$1,extend:extend$2,trim:trim$1,stripBOM:stripBOM,inherits:inherits$W,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray$3,isTypedArray:isTypedArray$3,isFileList:isFileList},utils$A=utils$B;function encode$2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildURL$1=function(e,t,i){if(!t)return e;var n;if(i)n=i(t);else if(utils$A.isURLSearchParams(t))n=t.toString();else{var r=[];utils$A.forEach(t,function(e,t){null!=e&&(utils$A.isArray(e)?t+="[]":e=[e],utils$A.forEach(e,function(e){utils$A.isDate(e)?e=e.toISOString():utils$A.isObject(e)&&(e=JSON.stringify(e)),r.push(encode$2(t)+"="+encode$2(e))}))}),n=r.join("&")}if(n){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},utils$z=utils$B;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1},InterceptorManager$1.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},InterceptorManager$1.prototype.forEach=function(e){utils$z.forEach(this.handlers,function(t){null!==t&&e(t)})};var InterceptorManager_1=InterceptorManager$1;function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var browser$i={exports:{}},process=browser$i.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(e){if(cachedSetTimeout===setTimeout)return setTimeout(e,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(e,0);try{return cachedSetTimeout(e,0)}catch(t){try{return cachedSetTimeout.call(null,e,0)}catch(i){return cachedSetTimeout.call(this,e,0)}}}function runClearTimeout(e){if(cachedClearTimeout===clearTimeout)return clearTimeout(e);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(e);try{return cachedClearTimeout(e)}catch(t){try{return cachedClearTimeout.call(null,e)}catch(i){return cachedClearTimeout.call(this,e)}}}!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var queue$1=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){draining&&currentQueue&&(draining=!1,currentQueue.length?queue$1=currentQueue.concat(queue$1):queueIndex=-1,queue$1.length&&drainQueue())}function drainQueue(){if(!draining){var e=runTimeout(cleanUpNextTick);draining=!0;for(var t=queue$1.length;t;){for(currentQueue=queue$1,queue$1=[];++queueIndex<t;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,t=queue$1.length}currentQueue=null,draining=!1,runClearTimeout(e)}}function Item(e,t){this.fun=e,this.array=t}function noop$3(){}process.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];queue$1.push(new Item(e,t)),1!==queue$1.length||draining||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={},process.on=noop$3,process.addListener=noop$3,process.once=noop$3,process.off=noop$3,process.removeListener=noop$3,process.removeAllListeners=noop$3,process.emit=noop$3,process.prependListener=noop$3,process.prependOnceListener=noop$3,process.listeners=function(e){return[]},process.binding=function(e){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(e){throw new Error("process.chdir is not supported")},process.umask=function(){return 0};var browserExports$1=browser$i.exports;const process$1=getDefaultExportFromCjs(browserExports$1);var utils$y=utils$B,normalizeHeaderName$1=function(e,t){utils$y.forEach(e,function(i,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=i,delete e[n])})},AxiosError_1,hasRequiredAxiosError;function requireAxiosError(){if(hasRequiredAxiosError)return AxiosError_1;hasRequiredAxiosError=1;var e=utils$B;function t(e,t,i,n,r){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),i&&(this.config=i),n&&(this.request=n),r&&(this.response=r)}e.inherits(t,Error,{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,status:this.response&&this.response.status?this.response.status:null}}});var i=t.prototype,n={};return["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){n[e]={value:e}}),Object.defineProperties(t,n),Object.defineProperty(i,"isAxiosError",{value:!0}),t.from=function(n,r,a,o,s,l){var c=Object.create(i);return e.toFlatObject(n,c,function(e){return e!==Error.prototype}),t.call(c,n.message,r,a,o,s),c.name=n.name,l&&Object.assign(c,l),c},AxiosError_1=t}var transitional={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},buffer$1={},base64Js={};base64Js.byteLength=byteLength,base64Js.toByteArray=toByteArray,base64Js.fromByteArray=fromByteArray;for(var lookup=[],revLookup=[],Arr="undefined"!=typeof Uint8Array?Uint8Array:Array,code$1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i$1=0,len$1=code$1.length;i$1<len$1;++i$1)lookup[i$1]=code$1[i$1],revLookup[code$1.charCodeAt(i$1)]=i$1;function getLens(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function byteLength(e){var t=getLens(e),i=t[0],n=t[1];return 3*(i+n)/4-n}function _byteLength(e,t,i){return 3*(t+i)/4-i}function toByteArray(e){var t,i,n=getLens(e),r=n[0],a=n[1],o=new Arr(_byteLength(e,r,a)),s=0,l=a>0?r-4:r;for(i=0;i<l;i+=4)t=revLookup[e.charCodeAt(i)]<<18|revLookup[e.charCodeAt(i+1)]<<12|revLookup[e.charCodeAt(i+2)]<<6|revLookup[e.charCodeAt(i+3)],o[s++]=t>>16&255,o[s++]=t>>8&255,o[s++]=255&t;return 2===a&&(t=revLookup[e.charCodeAt(i)]<<2|revLookup[e.charCodeAt(i+1)]>>4,o[s++]=255&t),1===a&&(t=revLookup[e.charCodeAt(i)]<<10|revLookup[e.charCodeAt(i+1)]<<4|revLookup[e.charCodeAt(i+2)]>>2,o[s++]=t>>8&255,o[s++]=255&t),o}function tripletToBase64(e){return lookup[e>>18&63]+lookup[e>>12&63]+lookup[e>>6&63]+lookup[63&e]}function encodeChunk(e,t,i){for(var n,r=[],a=t;a<i;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),r.push(tripletToBase64(n));return r.join("")}function fromByteArray(e){for(var t,i=e.length,n=i%3,r=[],a=16383,o=0,s=i-n;o<s;o+=a)r.push(encodeChunk(e,o,o+a>s?s:o+a));return 1===n?(t=e[i-1],r.push(lookup[t>>2]+lookup[t<<4&63]+"==")):2===n&&(t=(e[i-2]<<8)+e[i-1],r.push(lookup[t>>10]+lookup[t>>4&63]+lookup[t<<2&63]+"=")),r.join("")}revLookup["-".charCodeAt(0)]=62,revLookup["_".charCodeAt(0)]=63;var ieee754={
32
+ */lodash.exports,module2=lodash,exports$12=lodash.exports,function(){var e,t="Expected a function",i="__lodash_hash_undefined__",n="__lodash_placeholder__",r=32,a=128,o=256,s=1/0,l=9007199254740991,c=NaN,u=4294967295,d=[["ary",a],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",r],["partialRight",64],["rearg",o]],h="[object Arguments]",p="[object Array]",m="[object Boolean]",f="[object Date]",g="[object Error]",_="[object Function]",v="[object GeneratorFunction]",y="[object Map]",b="[object Number]",S="[object Object]",E="[object Promise]",w="[object RegExp]",C="[object Set]",T="[object String]",A="[object Symbol]",x="[object WeakMap]",M="[object ArrayBuffer]",R="[object DataView]",I="[object Float32Array]",k="[object Float64Array]",N="[object Int8Array]",O="[object Int16Array]",D="[object Int32Array]",L="[object Uint8Array]",P="[object Uint8ClampedArray]",B="[object Uint16Array]",F="[object Uint32Array]",$=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,z=/[&<>"']/g,H=RegExp(Y.source),q=RegExp(z.source),V=/<%-([\s\S]+?)%>/g,j=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K=/^\w*$/,Q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z=/[\\^$.*+?()[\]{}|]/g,X=RegExp(Z.source),ee=/^\s+/,te=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ne=/\{\n\/\* \[wrapped with (.+)\] \*/,re=/,? & /,ae=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,oe=/[()=,{}\[\]\/\s]/,se=/\\(\\)?/g,le=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ce=/\w*$/,ue=/^[-+]0x[0-9a-f]+$/i,de=/^0b[01]+$/i,he=/^\[object .+?Constructor\]$/,pe=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,fe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ge=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,ve="\\ud800-\\udfff",ye="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",be="\\u2700-\\u27bf",Se="a-z\\xdf-\\xf6\\xf8-\\xff",Ee="A-Z\\xc0-\\xd6\\xd8-\\xde",we="\\ufe0e\\ufe0f",Ce="\\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",Te="['’]",Ae="["+ve+"]",xe="["+Ce+"]",Me="["+ye+"]",Re="\\d+",Ie="["+be+"]",ke="["+Se+"]",Ne="[^"+ve+Ce+Re+be+Se+Ee+"]",Oe="\\ud83c[\\udffb-\\udfff]",De="[^"+ve+"]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",Pe="[\\ud800-\\udbff][\\udc00-\\udfff]",Be="["+Ee+"]",Fe="\\u200d",$e="(?:"+ke+"|"+Ne+")",Ue="(?:"+Be+"|"+Ne+")",Ge="(?:['’](?:d|ll|m|re|s|t|ve))?",Ye="(?:['’](?:D|LL|M|RE|S|T|VE))?",ze="(?:"+Me+"|"+Oe+")?",He="["+we+"]?",qe=He+ze+"(?:"+Fe+"(?:"+[De,Le,Pe].join("|")+")"+He+ze+")*",Ve="(?:"+[Ie,Le,Pe].join("|")+")"+qe,je="(?:"+[De+Me+"?",Me,Le,Pe,Ae].join("|")+")",Je=RegExp(Te,"g"),We=RegExp(Me,"g"),Ke=RegExp(Oe+"(?="+Oe+")|"+je+qe,"g"),Qe=RegExp([Be+"?"+ke+"+"+Ge+"(?="+[xe,Be,"$"].join("|")+")",Ue+"+"+Ye+"(?="+[xe,Be+$e,"$"].join("|")+")",Be+"?"+$e+"+"+Ge,Be+"+"+Ye,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Re,Ve].join("|"),"g"),Ze=RegExp("["+Fe+ve+ye+we+"]"),Xe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,et=["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"],tt=-1,it={};it[I]=it[k]=it[N]=it[O]=it[D]=it[L]=it[P]=it[B]=it[F]=!0,it[h]=it[p]=it[M]=it[m]=it[R]=it[f]=it[g]=it[_]=it[y]=it[b]=it[S]=it[w]=it[C]=it[T]=it[x]=!1;var nt={};nt[h]=nt[p]=nt[M]=nt[R]=nt[m]=nt[f]=nt[I]=nt[k]=nt[N]=nt[O]=nt[D]=nt[y]=nt[b]=nt[S]=nt[w]=nt[C]=nt[T]=nt[A]=nt[L]=nt[P]=nt[B]=nt[F]=!0,nt[g]=nt[_]=nt[x]=!1;var rt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},at=parseFloat,ot=parseInt,st="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,lt="object"==typeof self&&self&&self.Object===Object&&self,ct=st||lt||Function("return this")(),ut=exports$12&&!exports$12.nodeType&&exports$12,dt=ut&&module2&&!module2.nodeType&&module2,ht=dt&&dt.exports===ut,pt=ht&&st.process,mt=function(){try{var e=dt&&dt.require&&dt.require("util").types;return e||pt&&pt.binding&&pt.binding("util")}catch(t){}}(),ft=mt&&mt.isArrayBuffer,gt=mt&&mt.isDate,_t=mt&&mt.isMap,vt=mt&&mt.isRegExp,yt=mt&&mt.isSet,bt=mt&&mt.isTypedArray;function St(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}function Et(e,t,i,n){for(var r=-1,a=null==e?0:e.length;++r<a;){var o=e[r];t(n,o,i(o),e)}return n}function wt(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i,e););return e}function Ct(e,t){for(var i=null==e?0:e.length;i--&&!1!==t(e[i],i,e););return e}function Tt(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(!t(e[i],i,e))return!1;return!0}function At(e,t){for(var i=-1,n=null==e?0:e.length,r=0,a=[];++i<n;){var o=e[i];t(o,i,e)&&(a[r++]=o)}return a}function xt(e,t){return!(null==e||!e.length)&&Bt(e,t,0)>-1}function Mt(e,t,i){for(var n=-1,r=null==e?0:e.length;++n<r;)if(i(t,e[n]))return!0;return!1}function Rt(e,t){for(var i=-1,n=null==e?0:e.length,r=Array(n);++i<n;)r[i]=t(e[i],i,e);return r}function It(e,t){for(var i=-1,n=t.length,r=e.length;++i<n;)e[r+i]=t[i];return e}function kt(e,t,i,n){var r=-1,a=null==e?0:e.length;for(n&&a&&(i=e[++r]);++r<a;)i=t(i,e[r],r,e);return i}function Nt(e,t,i,n){var r=null==e?0:e.length;for(n&&r&&(i=e[--r]);r--;)i=t(i,e[r],r,e);return i}function Ot(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1}var Dt=Gt("length");function Lt(e,t,i){var n;return i(e,function(e,i,r){if(t(e,i,r))return n=i,!1}),n}function Pt(e,t,i,n){for(var r=e.length,a=i+(n?1:-1);n?a--:++a<r;)if(t(e[a],a,e))return a;return-1}function Bt(e,t,i){return t==t?function(e,t,i){for(var n=i-1,r=e.length;++n<r;)if(e[n]===t)return n;return-1}(e,t,i):Pt(e,$t,i)}function Ft(e,t,i,n){for(var r=i-1,a=e.length;++r<a;)if(n(e[r],t))return r;return-1}function $t(e){return e!=e}function Ut(e,t){var i=null==e?0:e.length;return i?Ht(e,t)/i:c}function Gt(t){return function(i){return null==i?e:i[t]}}function Yt(t){return function(i){return null==t?e:t[i]}}function zt(e,t,i,n,r){return r(e,function(e,r,a){i=n?(n=!1,e):t(i,e,r,a)}),i}function Ht(t,i){for(var n,r=-1,a=t.length;++r<a;){var o=i(t[r]);o!==e&&(n=n===e?o:n+o)}return n}function qt(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}function Vt(e){return e?e.slice(0,li(e)+1).replace(ee,""):e}function jt(e){return function(t){return e(t)}}function Jt(e,t){return Rt(t,function(t){return e[t]})}function Wt(e,t){return e.has(t)}function Kt(e,t){for(var i=-1,n=e.length;++i<n&&Bt(t,e[i],0)>-1;);return i}function Qt(e,t){for(var i=e.length;i--&&Bt(t,e[i],0)>-1;);return i}var Zt=Yt({"À":"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"}),Xt=Yt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function ei(e){return"\\"+rt[e]}function ti(e){return Ze.test(e)}function ii(e){var t=-1,i=Array(e.size);return e.forEach(function(e,n){i[++t]=[n,e]}),i}function ni(e,t){return function(i){return e(t(i))}}function ri(e,t){for(var i=-1,r=e.length,a=0,o=[];++i<r;){var s=e[i];s!==t&&s!==n||(e[i]=n,o[a++]=i)}return o}function ai(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=e}),i}function oi(e){return ti(e)?function(e){for(var t=Ke.lastIndex=0;Ke.test(e);)++t;return t}(e):Dt(e)}function si(e){return ti(e)?function(e){return e.match(Ke)||[]}(e):function(e){return e.split("")}(e)}function li(e){for(var t=e.length;t--&&te.test(e.charAt(t)););return t}var ci=Yt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),ui=function te(ve){var ye,be=(ve=null==ve?ct:ui.defaults(ct.Object(),ve,ui.pick(ct,et))).Array,Se=ve.Date,Ee=ve.Error,we=ve.Function,Ce=ve.Math,Te=ve.Object,Ae=ve.RegExp,xe=ve.String,Me=ve.TypeError,Re=be.prototype,Ie=we.prototype,ke=Te.prototype,Ne=ve["__core-js_shared__"],Oe=Ie.toString,De=ke.hasOwnProperty,Le=0,Pe=(ye=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||""))?"Symbol(src)_1."+ye:"",Be=ke.toString,Fe=Oe.call(Te),$e=ct._,Ue=Ae("^"+Oe.call(De).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ge=ht?ve.Buffer:e,Ye=ve.Symbol,ze=ve.Uint8Array,He=Ge?Ge.allocUnsafe:e,qe=ni(Te.getPrototypeOf,Te),Ve=Te.create,je=ke.propertyIsEnumerable,Ke=Re.splice,Ze=Ye?Ye.isConcatSpreadable:e,rt=Ye?Ye.iterator:e,st=Ye?Ye.toStringTag:e,lt=function(){try{var e=ca(Te,"defineProperty");return e({},"",{}),e}catch(t){}}(),ut=ve.clearTimeout!==ct.clearTimeout&&ve.clearTimeout,dt=Se&&Se.now!==ct.Date.now&&Se.now,pt=ve.setTimeout!==ct.setTimeout&&ve.setTimeout,mt=Ce.ceil,Dt=Ce.floor,Yt=Te.getOwnPropertySymbols,di=Ge?Ge.isBuffer:e,hi=ve.isFinite,pi=Re.join,mi=ni(Te.keys,Te),fi=Ce.max,gi=Ce.min,_i=Se.now,vi=ve.parseInt,yi=Ce.random,bi=Re.reverse,Si=ca(ve,"DataView"),Ei=ca(ve,"Map"),wi=ca(ve,"Promise"),Ci=ca(ve,"Set"),Ti=ca(ve,"WeakMap"),Ai=ca(Te,"create"),xi=Ti&&new Ti,Mi={},Ri=Fa(Si),Ii=Fa(Ei),ki=Fa(wi),Ni=Fa(Ci),Oi=Fa(Ti),Di=Ye?Ye.prototype:e,Li=Di?Di.valueOf:e,Pi=Di?Di.toString:e;function Bi(e){if(is(e)&&!qo(e)&&!(e instanceof Gi)){if(e instanceof Ui)return e;if(De.call(e,"__wrapped__"))return $a(e)}return new Ui(e)}var Fi=function(){function t(){}return function(i){if(!ts(i))return{};if(Ve)return Ve(i);t.prototype=i;var n=new t;return t.prototype=e,n}}();function $i(){}function Ui(t,i){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=e}function Gi(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=u,this.__views__=[]}function Yi(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function zi(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function Hi(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function qi(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new Hi;++t<i;)this.add(e[t])}function Vi(e){var t=this.__data__=new zi(e);this.size=t.size}function ji(e,t){var i=qo(e),n=!i&&Ho(e),r=!i&&!n&&Wo(e),a=!i&&!n&&!r&&us(e),o=i||n||r||a,s=o?qt(e.length,xe):[],l=s.length;for(var c in e)!t&&!De.call(e,c)||o&&("length"==c||r&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ga(c,l))||s.push(c);return s}function Ji(t){var i=t.length;return i?t[Vn(0,i-1)]:e}function Wi(e,t){return Na(xr(e),an(t,0,e.length))}function Ki(e){return Na(xr(e))}function Qi(t,i,n){(n!==e&&!Go(t[i],n)||n===e&&!(i in t))&&nn(t,i,n)}function Zi(t,i,n){var r=t[i];De.call(t,i)&&Go(r,n)&&(n!==e||i in t)||nn(t,i,n)}function Xi(e,t){for(var i=e.length;i--;)if(Go(e[i][0],t))return i;return-1}function en(e,t,i,n){return un(e,function(e,r,a){t(n,e,i(e),a)}),n}function tn(e,t){return e&&Mr(t,Ns(t),e)}function nn(e,t,i){"__proto__"==t&&lt?lt(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}function rn(t,i){for(var n=-1,r=i.length,a=be(r),o=null==t;++n<r;)a[n]=o?e:xs(t,i[n]);return a}function an(t,i,n){return t==t&&(n!==e&&(t=t<=n?t:n),i!==e&&(t=t>=i?t:i)),t}function on(t,i,n,r,a,o){var s,l=1&i,c=2&i,u=4&i;if(n&&(s=a?n(t,r,a,o):n(t)),s!==e)return s;if(!ts(t))return t;var d=qo(t);if(d){if(s=function(e){var t=e.length,i=new e.constructor(t);return t&&"string"==typeof e[0]&&De.call(e,"index")&&(i.index=e.index,i.input=e.input),i}(t),!l)return xr(t,s)}else{var p=ha(t),g=p==_||p==v;if(Wo(t))return Sr(t,l);if(p==S||p==h||g&&!a){if(s=c||g?{}:ma(t),!l)return c?function(e,t){return Mr(e,da(e),t)}(t,function(e,t){return e&&Mr(t,Os(t),e)}(s,t)):function(e,t){return Mr(e,ua(e),t)}(t,tn(s,t))}else{if(!nt[p])return a?t:{};s=function(e,t,i){var n,r=e.constructor;switch(t){case M:return Er(e);case m:case f:return new r(+e);case R:return function(e,t){var i=t?Er(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}(e,i);case I:case k:case N:case O:case D:case L:case P:case B:case F:return wr(e,i);case y:return new r;case b:case T:return new r(e);case w:return function(e){var t=new e.constructor(e.source,ce.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new r;case A:return n=e,Li?Te(Li.call(n)):{}}}(t,p,l)}}o||(o=new Vi);var E=o.get(t);if(E)return E;o.set(t,s),ss(t)?t.forEach(function(e){s.add(on(e,i,n,e,t,o))}):ns(t)&&t.forEach(function(e,r){s.set(r,on(e,i,n,r,t,o))});var x=d?e:(u?c?ia:ta:c?Os:Ns)(t);return wt(x||t,function(e,r){x&&(e=t[r=e]),Zi(s,r,on(e,i,n,r,t,o))}),s}function sn(t,i,n){var r=n.length;if(null==t)return!r;for(t=Te(t);r--;){var a=n[r],o=i[a],s=t[a];if(s===e&&!(a in t)||!o(s))return!1}return!0}function ln(i,n,r){if("function"!=typeof i)throw new Me(t);return Ma(function(){i.apply(e,r)},n)}function cn(e,t,i,n){var r=-1,a=xt,o=!0,s=e.length,l=[],c=t.length;if(!s)return l;i&&(t=Rt(t,jt(i))),n?(a=Mt,o=!1):t.length>=200&&(a=Wt,o=!1,t=new qi(t));e:for(;++r<s;){var u=e[r],d=null==i?u:i(u);if(u=n||0!==u?u:0,o&&d==d){for(var h=c;h--;)if(t[h]===d)continue e;l.push(u)}else a(t,d,n)||l.push(u)}return l}Bi.templateSettings={escape:V,evaluate:j,interpolate:J,variable:"",imports:{_:Bi}},Bi.prototype=$i.prototype,Bi.prototype.constructor=Bi,Ui.prototype=Fi($i.prototype),Ui.prototype.constructor=Ui,Gi.prototype=Fi($i.prototype),Gi.prototype.constructor=Gi,Yi.prototype.clear=function(){this.__data__=Ai?Ai(null):{},this.size=0},Yi.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Yi.prototype.get=function(t){var n=this.__data__;if(Ai){var r=n[t];return r===i?e:r}return De.call(n,t)?n[t]:e},Yi.prototype.has=function(t){var i=this.__data__;return Ai?i[t]!==e:De.call(i,t)},Yi.prototype.set=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Ai&&n===e?i:n,this},zi.prototype.clear=function(){this.__data__=[],this.size=0},zi.prototype.delete=function(e){var t=this.__data__,i=Xi(t,e);return!(i<0||(i==t.length-1?t.pop():Ke.call(t,i,1),--this.size,0))},zi.prototype.get=function(t){var i=this.__data__,n=Xi(i,t);return n<0?e:i[n][1]},zi.prototype.has=function(e){return Xi(this.__data__,e)>-1},zi.prototype.set=function(e,t){var i=this.__data__,n=Xi(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this},Hi.prototype.clear=function(){this.size=0,this.__data__={hash:new Yi,map:new(Ei||zi),string:new Yi}},Hi.prototype.delete=function(e){var t=sa(this,e).delete(e);return this.size-=t?1:0,t},Hi.prototype.get=function(e){return sa(this,e).get(e)},Hi.prototype.has=function(e){return sa(this,e).has(e)},Hi.prototype.set=function(e,t){var i=sa(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this},qi.prototype.add=qi.prototype.push=function(e){return this.__data__.set(e,i),this},qi.prototype.has=function(e){return this.__data__.has(e)},Vi.prototype.clear=function(){this.__data__=new zi,this.size=0},Vi.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},Vi.prototype.get=function(e){return this.__data__.get(e)},Vi.prototype.has=function(e){return this.__data__.has(e)},Vi.prototype.set=function(e,t){var i=this.__data__;if(i instanceof zi){var n=i.__data__;if(!Ei||n.length<199)return n.push([e,t]),this.size=++i.size,this;i=this.__data__=new Hi(n)}return i.set(e,t),this.size=i.size,this};var un=kr(vn),dn=kr(yn,!0);function hn(e,t){var i=!0;return un(e,function(e,n,r){return i=!!t(e,n,r)}),i}function pn(t,i,n){for(var r=-1,a=t.length;++r<a;){var o=t[r],s=i(o);if(null!=s&&(l===e?s==s&&!cs(s):n(s,l)))var l=s,c=o}return c}function mn(e,t){var i=[];return un(e,function(e,n,r){t(e,n,r)&&i.push(e)}),i}function fn(e,t,i,n,r){var a=-1,o=e.length;for(i||(i=fa),r||(r=[]);++a<o;){var s=e[a];t>0&&i(s)?t>1?fn(s,t-1,i,n,r):It(r,s):n||(r[r.length]=s)}return r}var gn=Nr(),_n=Nr(!0);function vn(e,t){return e&&gn(e,t,Ns)}function yn(e,t){return e&&_n(e,t,Ns)}function bn(e,t){return At(t,function(t){return Zo(e[t])})}function Sn(t,i){for(var n=0,r=(i=_r(i,t)).length;null!=t&&n<r;)t=t[Ba(i[n++])];return n&&n==r?t:e}function En(e,t,i){var n=t(e);return qo(e)?n:It(n,i(e))}function wn(t){return null==t?t===e?"[object Undefined]":"[object Null]":st&&st in Te(t)?function(t){var i=De.call(t,st),n=t[st];try{t[st]=e;var r=!0}catch(o){}var a=Be.call(t);return r&&(i?t[st]=n:delete t[st]),a}(t):function(e){return Be.call(e)}(t)}function Cn(e,t){return e>t}function Tn(e,t){return null!=e&&De.call(e,t)}function An(e,t){return null!=e&&t in Te(e)}function xn(t,i,n){for(var r=n?Mt:xt,a=t[0].length,o=t.length,s=o,l=be(o),c=1/0,u=[];s--;){var d=t[s];s&&i&&(d=Rt(d,jt(i))),c=gi(d.length,c),l[s]=!n&&(i||a>=120&&d.length>=120)?new qi(s&&d):e}d=t[0];var h=-1,p=l[0];e:for(;++h<a&&u.length<c;){var m=d[h],f=i?i(m):m;if(m=n||0!==m?m:0,!(p?Wt(p,f):r(u,f,n))){for(s=o;--s;){var g=l[s];if(!(g?Wt(g,f):r(t[s],f,n)))continue e}p&&p.push(f),u.push(m)}}return u}function Mn(t,i,n){var r=null==(t=Ta(t,i=_r(i,t)))?t:t[Ba(Ka(i))];return null==r?e:St(r,t,n)}function Rn(e){return is(e)&&wn(e)==h}function In(t,i,n,r,a){return t===i||(null==t||null==i||!is(t)&&!is(i)?t!=t&&i!=i:function(t,i,n,r,a,o){var s=qo(t),l=qo(i),c=s?p:ha(t),u=l?p:ha(i),d=(c=c==h?S:c)==S,_=(u=u==h?S:u)==S,v=c==u;if(v&&Wo(t)){if(!Wo(i))return!1;s=!0,d=!1}if(v&&!d)return o||(o=new Vi),s||us(t)?Xr(t,i,n,r,a,o):function(e,t,i,n,r,a,o){switch(i){case R:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case M:return!(e.byteLength!=t.byteLength||!a(new ze(e),new ze(t)));case m:case f:case b:return Go(+e,+t);case g:return e.name==t.name&&e.message==t.message;case w:case T:return e==t+"";case y:var s=ii;case C:var l=1&n;if(s||(s=ai),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;n|=2,o.set(e,t);var u=Xr(s(e),s(t),n,r,a,o);return o.delete(e),u;case A:if(Li)return Li.call(e)==Li.call(t)}return!1}(t,i,c,n,r,a,o);if(!(1&n)){var E=d&&De.call(t,"__wrapped__"),x=_&&De.call(i,"__wrapped__");if(E||x){var I=E?t.value():t,k=x?i.value():i;return o||(o=new Vi),a(I,k,n,r,o)}}return!!v&&(o||(o=new Vi),function(t,i,n,r,a,o){var s=1&n,l=ta(t),c=l.length,u=ta(i),d=u.length;if(c!=d&&!s)return!1;for(var h=c;h--;){var p=l[h];if(!(s?p in i:De.call(i,p)))return!1}var m=o.get(t),f=o.get(i);if(m&&f)return m==i&&f==t;var g=!0;o.set(t,i),o.set(i,t);for(var _=s;++h<c;){var v=t[p=l[h]],y=i[p];if(r)var b=s?r(y,v,p,i,t,o):r(v,y,p,t,i,o);if(!(b===e?v===y||a(v,y,n,r,o):b)){g=!1;break}_||(_="constructor"==p)}if(g&&!_){var S=t.constructor,E=i.constructor;S==E||!("constructor"in t)||!("constructor"in i)||"function"==typeof S&&S instanceof S&&"function"==typeof E&&E instanceof E||(g=!1)}return o.delete(t),o.delete(i),g}(t,i,n,r,a,o))}(t,i,n,r,In,a))}function kn(t,i,n,r){var a=n.length,o=a,s=!r;if(null==t)return!o;for(t=Te(t);a--;){var l=n[a];if(s&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<o;){var c=(l=n[a])[0],u=t[c],d=l[1];if(s&&l[2]){if(u===e&&!(c in t))return!1}else{var h=new Vi;if(r)var p=r(u,d,c,t,i,h);if(!(p===e?In(d,u,3,r,h):p))return!1}}return!0}function Nn(e){return!(!ts(e)||(t=e,Pe&&Pe in t))&&(Zo(e)?Ue:he).test(Fa(e));var t}function On(e){return"function"==typeof e?e:null==e?rl:"object"==typeof e?qo(e)?$n(e[0],e[1]):Fn(e):pl(e)}function Dn(e){if(!Sa(e))return mi(e);var t=[];for(var i in Te(e))De.call(e,i)&&"constructor"!=i&&t.push(i);return t}function Ln(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var i in Te(e))t.push(i);return t}(e);var t=Sa(e),i=[];for(var n in e)("constructor"!=n||!t&&De.call(e,n))&&i.push(n);return i}function Pn(e,t){return e<t}function Bn(e,t){var i=-1,n=jo(e)?be(e.length):[];return un(e,function(e,r,a){n[++i]=t(e,r,a)}),n}function Fn(e){var t=la(e);return 1==t.length&&t[0][2]?wa(t[0][0],t[0][1]):function(i){return i===e||kn(i,e,t)}}function $n(t,i){return va(t)&&Ea(i)?wa(Ba(t),i):function(n){var r=xs(n,t);return r===e&&r===i?Ms(n,t):In(i,r,3)}}function Un(t,i,n,r,a){t!==i&&gn(i,function(o,s){if(a||(a=new Vi),ts(o))!function(t,i,n,r,a,o,s){var l=Aa(t,n),c=Aa(i,n),u=s.get(c);if(u)Qi(t,n,u);else{var d=o?o(l,c,n+"",t,i,s):e,h=d===e;if(h){var p=qo(c),m=!p&&Wo(c),f=!p&&!m&&us(c);d=c,p||m||f?qo(l)?d=l:Jo(l)?d=xr(l):m?(h=!1,d=Sr(c,!0)):f?(h=!1,d=wr(c,!0)):d=[]:as(c)||Ho(c)?(d=l,Ho(l)?d=vs(l):ts(l)&&!Zo(l)||(d=ma(c))):h=!1}h&&(s.set(c,d),a(d,c,r,o,s),s.delete(c)),Qi(t,n,d)}}(t,i,s,n,Un,r,a);else{var l=r?r(Aa(t,s),o,s+"",t,i,a):e;l===e&&(l=o),Qi(t,s,l)}},Os)}function Gn(t,i){var n=t.length;if(n)return ga(i+=i<0?n:0,n)?t[i]:e}function Yn(e,t,i){t=t.length?Rt(t,function(e){return qo(e)?function(t){return Sn(t,1===e.length?e[0]:e)}:e}):[rl];var n=-1;return t=Rt(t,jt(oa())),function(e,t){var i=e.length;for(e.sort(t);i--;)e[i]=e[i].value;return e}(Bn(e,function(e,i,r){return{criteria:Rt(t,function(t){return t(e)}),index:++n,value:e}}),function(e,t){return function(e,t,i){for(var n=-1,r=e.criteria,a=t.criteria,o=r.length,s=i.length;++n<o;){var l=Cr(r[n],a[n]);if(l)return n>=s?l:l*("desc"==i[n]?-1:1)}return e.index-t.index}(e,t,i)})}function zn(e,t,i){for(var n=-1,r=t.length,a={};++n<r;){var o=t[n],s=Sn(e,o);i(s,o)&&Qn(a,_r(o,e),s)}return a}function Hn(e,t,i,n){var r=n?Ft:Bt,a=-1,o=t.length,s=e;for(e===t&&(t=xr(t)),i&&(s=Rt(e,jt(i)));++a<o;)for(var l=0,c=t[a],u=i?i(c):c;(l=r(s,u,l,n))>-1;)s!==e&&Ke.call(s,l,1),Ke.call(e,l,1);return e}function qn(e,t){for(var i=e?t.length:0,n=i-1;i--;){var r=t[i];if(i==n||r!==a){var a=r;ga(r)?Ke.call(e,r,1):cr(e,r)}}return e}function Vn(e,t){return e+Dt(yi()*(t-e+1))}function jn(e,t){var i="";if(!e||t<1||t>l)return i;do{t%2&&(i+=e),(t=Dt(t/2))&&(e+=e)}while(t);return i}function Jn(e,t){return Ra(Ca(e,t,rl),e+"")}function Wn(e){return Ji(Gs(e))}function Kn(e,t){var i=Gs(e);return Na(i,an(t,0,i.length))}function Qn(t,i,n,r){if(!ts(t))return t;for(var a=-1,o=(i=_r(i,t)).length,s=o-1,l=t;null!=l&&++a<o;){var c=Ba(i[a]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(a!=s){var d=l[c];(u=r?r(d,c,l):e)===e&&(u=ts(d)?d:ga(i[a+1])?[]:{})}Zi(l,c,u),l=l[c]}return t}var Zn=xi?function(e,t){return xi.set(e,t),e}:rl,Xn=lt?function(e,t){return lt(e,"toString",{configurable:!0,enumerable:!1,value:tl(t),writable:!0})}:rl;function er(e){return Na(Gs(e))}function tr(e,t,i){var n=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(i=i>r?r:i)<0&&(i+=r),r=t>i?0:i-t>>>0,t>>>=0;for(var a=be(r);++n<r;)a[n]=e[n+t];return a}function ir(e,t){var i;return un(e,function(e,n,r){return!(i=t(e,n,r))}),!!i}function nr(e,t,i){var n=0,r=null==e?n:e.length;if("number"==typeof t&&t==t&&r<=2147483647){for(;n<r;){var a=n+r>>>1,o=e[a];null!==o&&!cs(o)&&(i?o<=t:o<t)?n=a+1:r=a}return r}return rr(e,t,rl,i)}function rr(t,i,n,r){var a=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(i=n(i))!=i,l=null===i,c=cs(i),u=i===e;a<o;){var d=Dt((a+o)/2),h=n(t[d]),p=h!==e,m=null===h,f=h==h,g=cs(h);if(s)var _=r||f;else _=u?f&&(r||p):l?f&&p&&(r||!m):c?f&&p&&!m&&(r||!g):!m&&!g&&(r?h<=i:h<i);_?a=d+1:o=d}return gi(o,4294967294)}function ar(e,t){for(var i=-1,n=e.length,r=0,a=[];++i<n;){var o=e[i],s=t?t(o):o;if(!i||!Go(s,l)){var l=s;a[r++]=0===o?0:o}}return a}function or(e){return"number"==typeof e?e:cs(e)?c:+e}function sr(e){if("string"==typeof e)return e;if(qo(e))return Rt(e,sr)+"";if(cs(e))return Pi?Pi.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function lr(e,t,i){var n=-1,r=xt,a=e.length,o=!0,s=[],l=s;if(i)o=!1,r=Mt;else if(a>=200){var c=t?null:jr(e);if(c)return ai(c);o=!1,r=Wt,l=new qi}else l=t?[]:s;e:for(;++n<a;){var u=e[n],d=t?t(u):u;if(u=i||0!==u?u:0,o&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),s.push(u)}else r(l,d,i)||(l!==s&&l.push(d),s.push(u))}return s}function cr(e,t){var i=-1,n=(t=_r(t,e)).length;if(!n)return!0;for(var r=null==e||"object"!=typeof e&&"function"!=typeof e;++i<n;){var a=t[i];if("string"==typeof a){if("__proto__"===a&&!De.call(e,"__proto__"))return!1;if("constructor"===a&&i+1<n&&"string"==typeof t[i+1]&&"prototype"===t[i+1]){if(r&&0===i)continue;return!1}}}var o=Ta(e,t);return null==o||delete o[Ba(Ka(t))]}function ur(e,t,i,n){return Qn(e,t,i(Sn(e,t)),n)}function dr(e,t,i,n){for(var r=e.length,a=n?r:-1;(n?a--:++a<r)&&t(e[a],a,e););return i?tr(e,n?0:a,n?a+1:r):tr(e,n?a+1:0,n?r:a)}function hr(e,t){var i=e;return i instanceof Gi&&(i=i.value()),kt(t,function(e,t){return t.func.apply(t.thisArg,It([e],t.args))},i)}function pr(e,t,i){var n=e.length;if(n<2)return n?lr(e[0]):[];for(var r=-1,a=be(n);++r<n;)for(var o=e[r],s=-1;++s<n;)s!=r&&(a[r]=cn(a[r]||o,e[s],t,i));return lr(fn(a,1),t,i)}function mr(t,i,n){for(var r=-1,a=t.length,o=i.length,s={};++r<a;){var l=r<o?i[r]:e;n(s,t[r],l)}return s}function fr(e){return Jo(e)?e:[]}function gr(e){return"function"==typeof e?e:rl}function _r(e,t){return qo(e)?e:va(e,t)?[e]:Pa(ys(e))}var vr=Jn;function yr(t,i,n){var r=t.length;return n=n===e?r:n,!i&&n>=r?t:tr(t,i,n)}var br=ut||function(e){return ct.clearTimeout(e)};function Sr(e,t){if(t)return e.slice();var i=e.length,n=He?He(i):new e.constructor(i);return e.copy(n),n}function Er(e){var t=new e.constructor(e.byteLength);return new ze(t).set(new ze(e)),t}function wr(e,t){var i=t?Er(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function Cr(t,i){if(t!==i){var n=t!==e,r=null===t,a=t==t,o=cs(t),s=i!==e,l=null===i,c=i==i,u=cs(i);if(!l&&!u&&!o&&t>i||o&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!a)return 1;if(!r&&!o&&!u&&t<i||u&&n&&a&&!r&&!o||l&&n&&a||!s&&a||!c)return-1}return 0}function Tr(e,t,i,n){for(var r=-1,a=e.length,o=i.length,s=-1,l=t.length,c=fi(a-o,0),u=be(l+c),d=!n;++s<l;)u[s]=t[s];for(;++r<o;)(d||r<a)&&(u[i[r]]=e[r]);for(;c--;)u[s++]=e[r++];return u}function Ar(e,t,i,n){for(var r=-1,a=e.length,o=-1,s=i.length,l=-1,c=t.length,u=fi(a-s,0),d=be(u+c),h=!n;++r<u;)d[r]=e[r];for(var p=r;++l<c;)d[p+l]=t[l];for(;++o<s;)(h||r<a)&&(d[p+i[o]]=e[r++]);return d}function xr(e,t){var i=-1,n=e.length;for(t||(t=be(n));++i<n;)t[i]=e[i];return t}function Mr(t,i,n,r){var a=!n;n||(n={});for(var o=-1,s=i.length;++o<s;){var l=i[o],c=r?r(n[l],t[l],l,n,t):e;c===e&&(c=t[l]),a?nn(n,l,c):Zi(n,l,c)}return n}function Rr(e,t){return function(i,n){var r=qo(i)?Et:en,a=t?t():{};return r(i,e,oa(n,2),a)}}function Ir(t){return Jn(function(i,n){var r=-1,a=n.length,o=a>1?n[a-1]:e,s=a>2?n[2]:e;for(o=t.length>3&&"function"==typeof o?(a--,o):e,s&&_a(n[0],n[1],s)&&(o=a<3?e:o,a=1),i=Te(i);++r<a;){var l=n[r];l&&t(i,l,r,o)}return i})}function kr(e,t){return function(i,n){if(null==i)return i;if(!jo(i))return e(i,n);for(var r=i.length,a=t?r:-1,o=Te(i);(t?a--:++a<r)&&!1!==n(o[a],a,o););return i}}function Nr(e){return function(t,i,n){for(var r=-1,a=Te(t),o=n(t),s=o.length;s--;){var l=o[e?s:++r];if(!1===i(a[l],l,a))break}return t}}function Or(t){return function(i){var n=ti(i=ys(i))?si(i):e,r=n?n[0]:i.charAt(0),a=n?yr(n,1).join(""):i.slice(1);return r[t]()+a}}function Dr(e){return function(t){return kt(Zs(Hs(t).replace(Je,"")),e,"")}}function Lr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var i=Fi(e.prototype),n=e.apply(i,t);return ts(n)?n:i}}function Pr(t){return function(i,n,r){var a=Te(i);if(!jo(i)){var o=oa(n,3);i=Ns(i),n=function(e){return o(a[e],e,a)}}var s=t(i,n,r);return s>-1?a[o?i[s]:s]:e}}function Br(i){return ea(function(n){var r=n.length,a=r,o=Ui.prototype.thru;for(i&&n.reverse();a--;){var s=n[a];if("function"!=typeof s)throw new Me(t);if(o&&!l&&"wrapper"==ra(s))var l=new Ui([],!0)}for(a=l?a:r;++a<r;){var c=ra(s=n[a]),u="wrapper"==c?na(s):e;l=u&&ya(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[ra(u[0])].apply(l,u[3]):1==s.length&&ya(s)?l[c]():l.thru(s)}return function(){var e=arguments,t=e[0];if(l&&1==e.length&&qo(t))return l.plant(t).value();for(var i=0,a=r?n[i].apply(this,e):t;++i<r;)a=n[i].call(this,a);return a}})}function Fr(t,i,n,r,o,s,l,c,u,d){var h=i&a,p=1&i,m=2&i,f=24&i,g=512&i,_=m?e:Lr(t);return function a(){for(var v=arguments.length,y=be(v),b=v;b--;)y[b]=arguments[b];if(f)var S=aa(a),E=function(e,t){for(var i=e.length,n=0;i--;)e[i]===t&&++n;return n}(y,S);if(r&&(y=Tr(y,r,o,f)),s&&(y=Ar(y,s,l,f)),v-=E,f&&v<d){var w=ri(y,S);return qr(t,i,Fr,a.placeholder,n,y,w,c,u,d-v)}var C=p?n:this,T=m?C[t]:t;return v=y.length,c?y=function(t,i){for(var n=t.length,r=gi(i.length,n),a=xr(t);r--;){var o=i[r];t[r]=ga(o,n)?a[o]:e}return t}(y,c):g&&v>1&&y.reverse(),h&&u<v&&(y.length=u),this&&this!==ct&&this instanceof a&&(T=_||Lr(T)),T.apply(C,y)}}function $r(e,t){return function(i,n){return function(e,t,i,n){return vn(e,function(e,r,a){t(n,i(e),r,a)}),n}(i,e,t(n),{})}}function Ur(t,i){return function(n,r){var a;if(n===e&&r===e)return i;if(n!==e&&(a=n),r!==e){if(a===e)return r;"string"==typeof n||"string"==typeof r?(n=sr(n),r=sr(r)):(n=or(n),r=or(r)),a=t(n,r)}return a}}function Gr(e){return ea(function(t){return t=Rt(t,jt(oa())),Jn(function(i){var n=this;return e(t,function(e){return St(e,n,i)})})})}function Yr(t,i){var n=(i=i===e?" ":sr(i)).length;if(n<2)return n?jn(i,t):i;var r=jn(i,mt(t/oi(i)));return ti(i)?yr(si(r),0,t).join(""):r.slice(0,t)}function zr(t){return function(i,n,r){return r&&"number"!=typeof r&&_a(i,n,r)&&(n=r=e),i=ms(i),n===e?(n=i,i=0):n=ms(n),function(e,t,i,n){for(var r=-1,a=fi(mt((t-e)/(i||1)),0),o=be(a);a--;)o[n?a:++r]=e,e+=i;return o}(i,n,r=r===e?i<n?1:-1:ms(r),t)}}function Hr(e){return function(t,i){return"string"==typeof t&&"string"==typeof i||(t=_s(t),i=_s(i)),e(t,i)}}function qr(t,i,n,a,o,s,l,c,u,d){var h=8&i;i|=h?r:64,4&(i&=~(h?64:r))||(i&=-4);var p=[t,i,o,h?s:e,h?l:e,h?e:s,h?e:l,c,u,d],m=n.apply(e,p);return ya(t)&&xa(m,p),m.placeholder=a,Ia(m,t,i)}function Vr(e){var t=Ce[e];return function(e,i){if(e=_s(e),(i=null==i?0:gi(fs(i),292))&&hi(e)){var n=(ys(e)+"e").split("e");return+((n=(ys(t(n[0]+"e"+(+n[1]+i)))+"e").split("e"))[0]+"e"+(+n[1]-i))}return t(e)}}var jr=Ci&&1/ai(new Ci([,-0]))[1]==s?function(e){return new Ci(e)}:cl;function Jr(e){return function(t){var i=ha(t);return i==y?ii(t):i==C?function(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=[e,e]}),i}(t):function(e,t){return Rt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Wr(i,s,l,c,u,d,h,p){var m=2&s;if(!m&&"function"!=typeof i)throw new Me(t);var f=c?c.length:0;if(f||(s&=-97,c=u=e),h=h===e?h:fi(fs(h),0),p=p===e?p:fs(p),f-=u?u.length:0,64&s){var g=c,_=u;c=u=e}var v=m?e:na(i),y=[i,s,l,c,u,g,_,d,h,p];if(v&&function(e,t){var i=e[1],r=t[1],s=i|r,l=s<131,c=r==a&&8==i||r==a&&i==o&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==i;if(!l&&!c)return e;1&r&&(e[2]=t[2],s|=1&i?0:4);var u=t[3];if(u){var d=e[3];e[3]=d?Tr(d,u,t[4]):u,e[4]=d?ri(e[3],n):t[4]}(u=t[5])&&(d=e[5],e[5]=d?Ar(d,u,t[6]):u,e[6]=d?ri(e[5],n):t[6]),(u=t[7])&&(e[7]=u),r&a&&(e[8]=null==e[8]?t[8]:gi(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=s}(y,v),i=y[0],s=y[1],l=y[2],c=y[3],u=y[4],!(p=y[9]=y[9]===e?m?0:i.length:fi(y[9]-f,0))&&24&s&&(s&=-25),s&&1!=s)b=8==s||16==s?function(t,i,n){var r=Lr(t);return function a(){for(var o=arguments.length,s=be(o),l=o,c=aa(a);l--;)s[l]=arguments[l];var u=o<3&&s[0]!==c&&s[o-1]!==c?[]:ri(s,c);return(o-=u.length)<n?qr(t,i,Fr,a.placeholder,e,s,u,e,e,n-o):St(this&&this!==ct&&this instanceof a?r:t,this,s)}}(i,s,p):s!=r&&33!=s||u.length?Fr.apply(e,y):function(e,t,i,n){var r=1&t,a=Lr(e);return function t(){for(var o=-1,s=arguments.length,l=-1,c=n.length,u=be(c+s),d=this&&this!==ct&&this instanceof t?a:e;++l<c;)u[l]=n[l];for(;s--;)u[l++]=arguments[++o];return St(d,r?i:this,u)}}(i,s,l,c);else var b=function(e,t,i){var n=1&t,r=Lr(e);return function t(){return(this&&this!==ct&&this instanceof t?r:e).apply(n?i:this,arguments)}}(i,s,l);return Ia((v?Zn:xa)(b,y),i,s)}function Kr(t,i,n,r){return t===e||Go(t,ke[n])&&!De.call(r,n)?i:t}function Qr(t,i,n,r,a,o){return ts(t)&&ts(i)&&(o.set(i,t),Un(t,i,e,Qr,o),o.delete(i)),t}function Zr(t){return as(t)?e:t}function Xr(t,i,n,r,a,o){var s=1&n,l=t.length,c=i.length;if(l!=c&&!(s&&c>l))return!1;var u=o.get(t),d=o.get(i);if(u&&d)return u==i&&d==t;var h=-1,p=!0,m=2&n?new qi:e;for(o.set(t,i),o.set(i,t);++h<l;){var f=t[h],g=i[h];if(r)var _=s?r(g,f,h,i,t,o):r(f,g,h,t,i,o);if(_!==e){if(_)continue;p=!1;break}if(m){if(!Ot(i,function(e,t){if(!Wt(m,t)&&(f===e||a(f,e,n,r,o)))return m.push(t)})){p=!1;break}}else if(f!==g&&!a(f,g,n,r,o)){p=!1;break}}return o.delete(t),o.delete(i),p}function ea(t){return Ra(Ca(t,e,qa),t+"")}function ta(e){return En(e,Ns,ua)}function ia(e){return En(e,Os,da)}var na=xi?function(e){return xi.get(e)}:cl;function ra(e){for(var t=e.name+"",i=Mi[t],n=De.call(Mi,t)?i.length:0;n--;){var r=i[n],a=r.func;if(null==a||a==e)return r.name}return t}function aa(e){return(De.call(Bi,"placeholder")?Bi:e).placeholder}function oa(){var e=Bi.iteratee||al;return e=e===al?On:e,arguments.length?e(arguments[0],arguments[1]):e}function sa(e,t){var i,n,r=e.__data__;return("string"==(n=typeof(i=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==i:null===i)?r["string"==typeof t?"string":"hash"]:r.map}function la(e){for(var t=Ns(e),i=t.length;i--;){var n=t[i],r=e[n];t[i]=[n,r,Ea(r)]}return t}function ca(t,i){var n=function(t,i){return null==t?e:t[i]}(t,i);return Nn(n)?n:e}var ua=Yt?function(e){return null==e?[]:(e=Te(e),At(Yt(e),function(t){return je.call(e,t)}))}:gl,da=Yt?function(e){for(var t=[];e;)It(t,ua(e)),e=qe(e);return t}:gl,ha=wn;function pa(e,t,i){for(var n=-1,r=(t=_r(t,e)).length,a=!1;++n<r;){var o=Ba(t[n]);if(!(a=null!=e&&i(e,o)))break;e=e[o]}return a||++n!=r?a:!!(r=null==e?0:e.length)&&es(r)&&ga(o,r)&&(qo(e)||Ho(e))}function ma(e){return"function"!=typeof e.constructor||Sa(e)?{}:Fi(qe(e))}function fa(e){return qo(e)||Ho(e)||!!(Ze&&e&&e[Ze])}function ga(e,t){var i=typeof e;return!!(t=null==t?l:t)&&("number"==i||"symbol"!=i&&me.test(e))&&e>-1&&e%1==0&&e<t}function _a(e,t,i){if(!ts(i))return!1;var n=typeof t;return!!("number"==n?jo(i)&&ga(t,i.length):"string"==n&&t in i)&&Go(i[t],e)}function va(e,t){if(qo(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!cs(e))||K.test(e)||!W.test(e)||null!=t&&e in Te(t)}function ya(e){var t=ra(e),i=Bi[t];if("function"!=typeof i||!(t in Gi.prototype))return!1;if(e===i)return!0;var n=na(i);return!!n&&e===n[0]}(Si&&ha(new Si(new ArrayBuffer(1)))!=R||Ei&&ha(new Ei)!=y||wi&&ha(wi.resolve())!=E||Ci&&ha(new Ci)!=C||Ti&&ha(new Ti)!=x)&&(ha=function(t){var i=wn(t),n=i==S?t.constructor:e,r=n?Fa(n):"";if(r)switch(r){case Ri:return R;case Ii:return y;case ki:return E;case Ni:return C;case Oi:return x}return i});var ba=Ne?Zo:_l;function Sa(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ke)}function Ea(e){return e==e&&!ts(e)}function wa(t,i){return function(n){return null!=n&&n[t]===i&&(i!==e||t in Te(n))}}function Ca(t,i,n){return i=fi(i===e?t.length-1:i,0),function(){for(var e=arguments,r=-1,a=fi(e.length-i,0),o=be(a);++r<a;)o[r]=e[i+r];r=-1;for(var s=be(i+1);++r<i;)s[r]=e[r];return s[i]=n(o),St(t,this,s)}}function Ta(e,t){return t.length<2?e:Sn(e,tr(t,0,-1))}function Aa(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var xa=ka(Zn),Ma=pt||function(e,t){return ct.setTimeout(e,t)},Ra=ka(Xn);function Ia(e,t,i){var n=t+"";return Ra(e,function(e,t){var i=t.length;if(!i)return e;var n=i-1;return t[n]=(i>1?"& ":"")+t[n],t=t.join(i>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return wt(d,function(i){var n="_."+i[0];t&i[1]&&!xt(e,n)&&e.push(n)}),e.sort()}(function(e){var t=e.match(ne);return t?t[1].split(re):[]}(n),i)))}function ka(t){var i=0,n=0;return function(){var r=_i(),a=16-(r-n);if(n=r,a>0){if(++i>=800)return arguments[0]}else i=0;return t.apply(e,arguments)}}function Na(t,i){var n=-1,r=t.length,a=r-1;for(i=i===e?r:i;++n<i;){var o=Vn(n,a),s=t[o];t[o]=t[n],t[n]=s}return t.length=i,t}var Oa,Da,La,Pa=(Oa=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Q,function(e,i,n,r){t.push(n?r.replace(se,"$1"):i||e)}),t},Da=Lo(Oa,function(e){return 500===La.size&&La.clear(),e}),La=Da.cache,Da);function Ba(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fa(e){if(null!=e){try{return Oe.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function $a(e){if(e instanceof Gi)return e.clone();var t=new Ui(e.__wrapped__,e.__chain__);return t.__actions__=xr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ua=Jn(function(e,t){return Jo(e)?cn(e,fn(t,1,Jo,!0)):[]}),Ga=Jn(function(t,i){var n=Ka(i);return Jo(n)&&(n=e),Jo(t)?cn(t,fn(i,1,Jo,!0),oa(n,2)):[]}),Ya=Jn(function(t,i){var n=Ka(i);return Jo(n)&&(n=e),Jo(t)?cn(t,fn(i,1,Jo,!0),e,n):[]});function za(e,t,i){var n=null==e?0:e.length;if(!n)return-1;var r=null==i?0:fs(i);return r<0&&(r=fi(n+r,0)),Pt(e,oa(t,3),r)}function Ha(t,i,n){var r=null==t?0:t.length;if(!r)return-1;var a=r-1;return n!==e&&(a=fs(n),a=n<0?fi(r+a,0):gi(a,r-1)),Pt(t,oa(i,3),a,!0)}function qa(e){return null!=e&&e.length?fn(e,1):[]}function Va(t){return t&&t.length?t[0]:e}var ja=Jn(function(e){var t=Rt(e,fr);return t.length&&t[0]===e[0]?xn(t):[]}),Ja=Jn(function(t){var i=Ka(t),n=Rt(t,fr);return i===Ka(n)?i=e:n.pop(),n.length&&n[0]===t[0]?xn(n,oa(i,2)):[]}),Wa=Jn(function(t){var i=Ka(t),n=Rt(t,fr);return(i="function"==typeof i?i:e)&&n.pop(),n.length&&n[0]===t[0]?xn(n,e,i):[]});function Ka(t){var i=null==t?0:t.length;return i?t[i-1]:e}var Qa=Jn(Za);function Za(e,t){return e&&e.length&&t&&t.length?Hn(e,t):e}var Xa=ea(function(e,t){var i=null==e?0:e.length,n=rn(e,t);return qn(e,Rt(t,function(e){return ga(e,i)?+e:e}).sort(Cr)),n});function eo(e){return null==e?e:bi.call(e)}var to=Jn(function(e){return lr(fn(e,1,Jo,!0))}),io=Jn(function(t){var i=Ka(t);return Jo(i)&&(i=e),lr(fn(t,1,Jo,!0),oa(i,2))}),no=Jn(function(t){var i=Ka(t);return i="function"==typeof i?i:e,lr(fn(t,1,Jo,!0),e,i)});function ro(e){if(!e||!e.length)return[];var t=0;return e=At(e,function(e){if(Jo(e))return t=fi(e.length,t),!0}),qt(t,function(t){return Rt(e,Gt(t))})}function ao(t,i){if(!t||!t.length)return[];var n=ro(t);return null==i?n:Rt(n,function(t){return St(i,e,t)})}var oo=Jn(function(e,t){return Jo(e)?cn(e,t):[]}),so=Jn(function(e){return pr(At(e,Jo))}),lo=Jn(function(t){var i=Ka(t);return Jo(i)&&(i=e),pr(At(t,Jo),oa(i,2))}),co=Jn(function(t){var i=Ka(t);return i="function"==typeof i?i:e,pr(At(t,Jo),e,i)}),uo=Jn(ro),ho=Jn(function(t){var i=t.length,n=i>1?t[i-1]:e;return n="function"==typeof n?(t.pop(),n):e,ao(t,n)});function po(e){var t=Bi(e);return t.__chain__=!0,t}function mo(e,t){return t(e)}var fo=ea(function(t){var i=t.length,n=i?t[0]:0,r=this.__wrapped__,a=function(e){return rn(e,t)};return!(i>1||this.__actions__.length)&&r instanceof Gi&&ga(n)?((r=r.slice(n,+n+(i?1:0))).__actions__.push({func:mo,args:[a],thisArg:e}),new Ui(r,this.__chain__).thru(function(t){return i&&!t.length&&t.push(e),t})):this.thru(a)}),go=Rr(function(e,t,i){De.call(e,i)?++e[i]:nn(e,i,1)}),_o=Pr(za),vo=Pr(Ha);function yo(e,t){return(qo(e)?wt:un)(e,oa(t,3))}function bo(e,t){return(qo(e)?Ct:dn)(e,oa(t,3))}var So=Rr(function(e,t,i){De.call(e,i)?e[i].push(t):nn(e,i,[t])}),Eo=Jn(function(e,t,i){var n=-1,r="function"==typeof t,a=jo(e)?be(e.length):[];return un(e,function(e){a[++n]=r?St(t,e,i):Mn(e,t,i)}),a}),wo=Rr(function(e,t,i){nn(e,i,t)});function Co(e,t){return(qo(e)?Rt:Bn)(e,oa(t,3))}var To=Rr(function(e,t,i){e[i?0:1].push(t)},function(){return[[],[]]}),Ao=Jn(function(e,t){if(null==e)return[];var i=t.length;return i>1&&_a(e,t[0],t[1])?t=[]:i>2&&_a(t[0],t[1],t[2])&&(t=[t[0]]),Yn(e,fn(t,1),[])}),xo=dt||function(){return ct.Date.now()};function Mo(t,i,n){return i=n?e:i,i=t&&null==i?t.length:i,Wr(t,a,e,e,e,e,i)}function Ro(i,n){var r;if("function"!=typeof n)throw new Me(t);return i=fs(i),function(){return--i>0&&(r=n.apply(this,arguments)),i<=1&&(n=e),r}}var Io=Jn(function(e,t,i){var n=1;if(i.length){var a=ri(i,aa(Io));n|=r}return Wr(e,n,t,i,a)}),ko=Jn(function(e,t,i){var n=3;if(i.length){var a=ri(i,aa(ko));n|=r}return Wr(t,n,e,i,a)});function No(i,n,r){var a,o,s,l,c,u,d=0,h=!1,p=!1,m=!0;if("function"!=typeof i)throw new Me(t);function f(t){var n=a,r=o;return a=o=e,d=t,l=i.apply(r,n)}function g(t){var i=t-u;return u===e||i>=n||i<0||p&&t-d>=s}function _(){var e=xo();if(g(e))return v(e);c=Ma(_,function(e){var t=n-(e-u);return p?gi(t,s-(e-d)):t}(e))}function v(t){return c=e,m&&a?f(t):(a=o=e,l)}function y(){var t=xo(),i=g(t);if(a=arguments,o=this,u=t,i){if(c===e)return function(e){return d=e,c=Ma(_,n),h?f(e):l}(u);if(p)return br(c),c=Ma(_,n),f(u)}return c===e&&(c=Ma(_,n)),l}return n=_s(n)||0,ts(r)&&(h=!!r.leading,s=(p="maxWait"in r)?fi(_s(r.maxWait)||0,n):s,m="trailing"in r?!!r.trailing:m),y.cancel=function(){c!==e&&br(c),d=0,a=u=o=c=e},y.flush=function(){return c===e?l:v(xo())},y}var Oo=Jn(function(e,t){return ln(e,1,t)}),Do=Jn(function(e,t,i){return ln(e,_s(t)||0,i)});function Lo(e,i){if("function"!=typeof e||null!=i&&"function"!=typeof i)throw new Me(t);var n=function(){var t=arguments,r=i?i.apply(this,t):t[0],a=n.cache;if(a.has(r))return a.get(r);var o=e.apply(this,t);return n.cache=a.set(r,o)||a,o};return n.cache=new(Lo.Cache||Hi),n}function Po(e){if("function"!=typeof e)throw new Me(t);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Lo.Cache=Hi;var Bo=vr(function(e,t){var i=(t=1==t.length&&qo(t[0])?Rt(t[0],jt(oa())):Rt(fn(t,1),jt(oa()))).length;return Jn(function(n){for(var r=-1,a=gi(n.length,i);++r<a;)n[r]=t[r].call(this,n[r]);return St(e,this,n)})}),Fo=Jn(function(t,i){var n=ri(i,aa(Fo));return Wr(t,r,e,i,n)}),$o=Jn(function(t,i){var n=ri(i,aa($o));return Wr(t,64,e,i,n)}),Uo=ea(function(t,i){return Wr(t,o,e,e,e,i)});function Go(e,t){return e===t||e!=e&&t!=t}var Yo=Hr(Cn),zo=Hr(function(e,t){return e>=t}),Ho=Rn(function(){return arguments}())?Rn:function(e){return is(e)&&De.call(e,"callee")&&!je.call(e,"callee")},qo=be.isArray,Vo=ft?jt(ft):function(e){return is(e)&&wn(e)==M};function jo(e){return null!=e&&es(e.length)&&!Zo(e)}function Jo(e){return is(e)&&jo(e)}var Wo=di||_l,Ko=gt?jt(gt):function(e){return is(e)&&wn(e)==f};function Qo(e){if(!is(e))return!1;var t=wn(e);return t==g||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!as(e)}function Zo(e){if(!ts(e))return!1;var t=wn(e);return t==_||t==v||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xo(e){return"number"==typeof e&&e==fs(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=l}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function is(e){return null!=e&&"object"==typeof e}var ns=_t?jt(_t):function(e){return is(e)&&ha(e)==y};function rs(e){return"number"==typeof e||is(e)&&wn(e)==b}function as(e){if(!is(e)||wn(e)!=S)return!1;var t=qe(e);if(null===t)return!0;var i=De.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&Oe.call(i)==Fe}var os=vt?jt(vt):function(e){return is(e)&&wn(e)==w},ss=yt?jt(yt):function(e){return is(e)&&ha(e)==C};function ls(e){return"string"==typeof e||!qo(e)&&is(e)&&wn(e)==T}function cs(e){return"symbol"==typeof e||is(e)&&wn(e)==A}var us=bt?jt(bt):function(e){return is(e)&&es(e.length)&&!!it[wn(e)]},ds=Hr(Pn),hs=Hr(function(e,t){return e<=t});function ps(e){if(!e)return[];if(jo(e))return ls(e)?si(e):xr(e);if(rt&&e[rt])return function(e){for(var t,i=[];!(t=e.next()).done;)i.push(t.value);return i}(e[rt]());var t=ha(e);return(t==y?ii:t==C?ai:Gs)(e)}function ms(e){return e?(e=_s(e))===s||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fs(e){var t=ms(e),i=t%1;return t==t?i?t-i:t:0}function gs(e){return e?an(fs(e),0,u):0}function _s(e){if("number"==typeof e)return e;if(cs(e))return c;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Vt(e);var i=de.test(e);return i||pe.test(e)?ot(e.slice(2),i?2:8):ue.test(e)?c:+e}function vs(e){return Mr(e,Os(e))}function ys(e){return null==e?"":sr(e)}var bs=Ir(function(e,t){if(Sa(t)||jo(t))Mr(t,Ns(t),e);else for(var i in t)De.call(t,i)&&Zi(e,i,t[i])}),Ss=Ir(function(e,t){Mr(t,Os(t),e)}),Es=Ir(function(e,t,i,n){Mr(t,Os(t),e,n)}),ws=Ir(function(e,t,i,n){Mr(t,Ns(t),e,n)}),Cs=ea(rn),Ts=Jn(function(t,i){t=Te(t);var n=-1,r=i.length,a=r>2?i[2]:e;for(a&&_a(i[0],i[1],a)&&(r=1);++n<r;)for(var o=i[n],s=Os(o),l=-1,c=s.length;++l<c;){var u=s[l],d=t[u];(d===e||Go(d,ke[u])&&!De.call(t,u))&&(t[u]=o[u])}return t}),As=Jn(function(t){return t.push(e,Qr),St(Ls,e,t)});function xs(t,i,n){var r=null==t?e:Sn(t,i);return r===e?n:r}function Ms(e,t){return null!=e&&pa(e,t,An)}var Rs=$r(function(e,t,i){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),e[t]=i},tl(rl)),Is=$r(function(e,t,i){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),De.call(e,t)?e[t].push(i):e[t]=[i]},oa),ks=Jn(Mn);function Ns(e){return jo(e)?ji(e):Dn(e)}function Os(e){return jo(e)?ji(e,!0):Ln(e)}var Ds=Ir(function(e,t,i){Un(e,t,i)}),Ls=Ir(function(e,t,i,n){Un(e,t,i,n)}),Ps=ea(function(e,t){var i={};if(null==e)return i;var n=!1;t=Rt(t,function(t){return t=_r(t,e),n||(n=t.length>1),t}),Mr(e,ia(e),i),n&&(i=on(i,7,Zr));for(var r=t.length;r--;)cr(i,t[r]);return i}),Bs=ea(function(e,t){return null==e?{}:function(e,t){return zn(e,t,function(t,i){return Ms(e,i)})}(e,t)});function Fs(e,t){if(null==e)return{};var i=Rt(ia(e),function(e){return[e]});return t=oa(t),zn(e,i,function(e,i){return t(e,i[0])})}var $s=Jr(Ns),Us=Jr(Os);function Gs(e){return null==e?[]:Jt(e,Ns(e))}var Ys=Dr(function(e,t,i){return t=t.toLowerCase(),e+(i?zs(t):t)});function zs(e){return Qs(ys(e).toLowerCase())}function Hs(e){return(e=ys(e))&&e.replace(fe,Zt).replace(We,"")}var qs=Dr(function(e,t,i){return e+(i?"-":"")+t.toLowerCase()}),Vs=Dr(function(e,t,i){return e+(i?" ":"")+t.toLowerCase()}),js=Or("toLowerCase"),Js=Dr(function(e,t,i){return e+(i?"_":"")+t.toLowerCase()}),Ws=Dr(function(e,t,i){return e+(i?" ":"")+Qs(t)}),Ks=Dr(function(e,t,i){return e+(i?" ":"")+t.toUpperCase()}),Qs=Or("toUpperCase");function Zs(t,i,n){return t=ys(t),(i=n?e:i)===e?function(e){return Xe.test(e)}(t)?function(e){return e.match(Qe)||[]}(t):function(e){return e.match(ae)||[]}(t):t.match(i)||[]}var Xs=Jn(function(t,i){try{return St(t,e,i)}catch(n){return Qo(n)?n:new Ee(n)}}),el=ea(function(e,t){return wt(t,function(t){t=Ba(t),nn(e,t,Io(e[t],e))}),e});function tl(e){return function(){return e}}var il=Br(),nl=Br(!0);function rl(e){return e}function al(e){return On("function"==typeof e?e:on(e,1))}var ol=Jn(function(e,t){return function(i){return Mn(i,e,t)}}),sl=Jn(function(e,t){return function(i){return Mn(e,i,t)}});function ll(e,t,i){var n=Ns(t),r=bn(t,n);null!=i||ts(t)&&(r.length||!n.length)||(i=t,t=e,e=this,r=bn(t,Ns(t)));var a=!(ts(i)&&"chain"in i&&!i.chain),o=Zo(e);return wt(r,function(i){var n=t[i];e[i]=n,o&&(e.prototype[i]=function(){var t=this.__chain__;if(a||t){var i=e(this.__wrapped__);return(i.__actions__=xr(this.__actions__)).push({func:n,args:arguments,thisArg:e}),i.__chain__=t,i}return n.apply(e,It([this.value()],arguments))})}),e}function cl(){}var ul=Gr(Rt),dl=Gr(Tt),hl=Gr(Ot);function pl(e){return va(e)?Gt(Ba(e)):function(e){return function(t){return Sn(t,e)}}(e)}var ml=zr(),fl=zr(!0);function gl(){return[]}function _l(){return!1}var vl,yl=Ur(function(e,t){return e+t},0),bl=Vr("ceil"),Sl=Ur(function(e,t){return e/t},1),El=Vr("floor"),wl=Ur(function(e,t){return e*t},1),Cl=Vr("round"),Tl=Ur(function(e,t){return e-t},0);return Bi.after=function(e,i){if("function"!=typeof i)throw new Me(t);return e=fs(e),function(){if(--e<1)return i.apply(this,arguments)}},Bi.ary=Mo,Bi.assign=bs,Bi.assignIn=Ss,Bi.assignInWith=Es,Bi.assignWith=ws,Bi.at=Cs,Bi.before=Ro,Bi.bind=Io,Bi.bindAll=el,Bi.bindKey=ko,Bi.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qo(e)?e:[e]},Bi.chain=po,Bi.chunk=function(t,i,n){i=(n?_a(t,i,n):i===e)?1:fi(fs(i),0);var r=null==t?0:t.length;if(!r||i<1)return[];for(var a=0,o=0,s=be(mt(r/i));a<r;)s[o++]=tr(t,a,a+=i);return s},Bi.compact=function(e){for(var t=-1,i=null==e?0:e.length,n=0,r=[];++t<i;){var a=e[t];a&&(r[n++]=a)}return r},Bi.concat=function(){var e=arguments.length;if(!e)return[];for(var t=be(e-1),i=arguments[0],n=e;n--;)t[n-1]=arguments[n];return It(qo(i)?xr(i):[i],fn(t,1))},Bi.cond=function(e){var i=null==e?0:e.length,n=oa();return e=i?Rt(e,function(e){if("function"!=typeof e[1])throw new Me(t);return[n(e[0]),e[1]]}):[],Jn(function(t){for(var n=-1;++n<i;){var r=e[n];if(St(r[0],this,t))return St(r[1],this,t)}})},Bi.conforms=function(e){return function(e){var t=Ns(e);return function(i){return sn(i,e,t)}}(on(e,1))},Bi.constant=tl,Bi.countBy=go,Bi.create=function(e,t){var i=Fi(e);return null==t?i:tn(i,t)},Bi.curry=function t(i,n,r){var a=Wr(i,8,e,e,e,e,e,n=r?e:n);return a.placeholder=t.placeholder,a},Bi.curryRight=function t(i,n,r){var a=Wr(i,16,e,e,e,e,e,n=r?e:n);return a.placeholder=t.placeholder,a},Bi.debounce=No,Bi.defaults=Ts,Bi.defaultsDeep=As,Bi.defer=Oo,Bi.delay=Do,Bi.difference=Ua,Bi.differenceBy=Ga,Bi.differenceWith=Ya,Bi.drop=function(t,i,n){var r=null==t?0:t.length;return r?tr(t,(i=n||i===e?1:fs(i))<0?0:i,r):[]},Bi.dropRight=function(t,i,n){var r=null==t?0:t.length;return r?tr(t,0,(i=r-(i=n||i===e?1:fs(i)))<0?0:i):[]},Bi.dropRightWhile=function(e,t){return e&&e.length?dr(e,oa(t,3),!0,!0):[]},Bi.dropWhile=function(e,t){return e&&e.length?dr(e,oa(t,3),!0):[]},Bi.fill=function(t,i,n,r){var a=null==t?0:t.length;return a?(n&&"number"!=typeof n&&_a(t,i,n)&&(n=0,r=a),function(t,i,n,r){var a=t.length;for((n=fs(n))<0&&(n=-n>a?0:a+n),(r=r===e||r>a?a:fs(r))<0&&(r+=a),r=n>r?0:gs(r);n<r;)t[n++]=i;return t}(t,i,n,r)):[]},Bi.filter=function(e,t){return(qo(e)?At:mn)(e,oa(t,3))},Bi.flatMap=function(e,t){return fn(Co(e,t),1)},Bi.flatMapDeep=function(e,t){return fn(Co(e,t),s)},Bi.flatMapDepth=function(t,i,n){return n=n===e?1:fs(n),fn(Co(t,i),n)},Bi.flatten=qa,Bi.flattenDeep=function(e){return null!=e&&e.length?fn(e,s):[]},Bi.flattenDepth=function(t,i){return null!=t&&t.length?fn(t,i=i===e?1:fs(i)):[]},Bi.flip=function(e){return Wr(e,512)},Bi.flow=il,Bi.flowRight=nl,Bi.fromPairs=function(e){for(var t=-1,i=null==e?0:e.length,n={};++t<i;){var r=e[t];n[r[0]]=r[1]}return n},Bi.functions=function(e){return null==e?[]:bn(e,Ns(e))},Bi.functionsIn=function(e){return null==e?[]:bn(e,Os(e))},Bi.groupBy=So,Bi.initial=function(e){return null!=e&&e.length?tr(e,0,-1):[]},Bi.intersection=ja,Bi.intersectionBy=Ja,Bi.intersectionWith=Wa,Bi.invert=Rs,Bi.invertBy=Is,Bi.invokeMap=Eo,Bi.iteratee=al,Bi.keyBy=wo,Bi.keys=Ns,Bi.keysIn=Os,Bi.map=Co,Bi.mapKeys=function(e,t){var i={};return t=oa(t,3),vn(e,function(e,n,r){nn(i,t(e,n,r),e)}),i},Bi.mapValues=function(e,t){var i={};return t=oa(t,3),vn(e,function(e,n,r){nn(i,n,t(e,n,r))}),i},Bi.matches=function(e){return Fn(on(e,1))},Bi.matchesProperty=function(e,t){return $n(e,on(t,1))},Bi.memoize=Lo,Bi.merge=Ds,Bi.mergeWith=Ls,Bi.method=ol,Bi.methodOf=sl,Bi.mixin=ll,Bi.negate=Po,Bi.nthArg=function(e){return e=fs(e),Jn(function(t){return Gn(t,e)})},Bi.omit=Ps,Bi.omitBy=function(e,t){return Fs(e,Po(oa(t)))},Bi.once=function(e){return Ro(2,e)},Bi.orderBy=function(t,i,n,r){return null==t?[]:(qo(i)||(i=null==i?[]:[i]),qo(n=r?e:n)||(n=null==n?[]:[n]),Yn(t,i,n))},Bi.over=ul,Bi.overArgs=Bo,Bi.overEvery=dl,Bi.overSome=hl,Bi.partial=Fo,Bi.partialRight=$o,Bi.partition=To,Bi.pick=Bs,Bi.pickBy=Fs,Bi.property=pl,Bi.propertyOf=function(t){return function(i){return null==t?e:Sn(t,i)}},Bi.pull=Qa,Bi.pullAll=Za,Bi.pullAllBy=function(e,t,i){return e&&e.length&&t&&t.length?Hn(e,t,oa(i,2)):e},Bi.pullAllWith=function(t,i,n){return t&&t.length&&i&&i.length?Hn(t,i,e,n):t},Bi.pullAt=Xa,Bi.range=ml,Bi.rangeRight=fl,Bi.rearg=Uo,Bi.reject=function(e,t){return(qo(e)?At:mn)(e,Po(oa(t,3)))},Bi.remove=function(e,t){var i=[];if(!e||!e.length)return i;var n=-1,r=[],a=e.length;for(t=oa(t,3);++n<a;){var o=e[n];t(o,n,e)&&(i.push(o),r.push(n))}return qn(e,r),i},Bi.rest=function(i,n){if("function"!=typeof i)throw new Me(t);return Jn(i,n=n===e?n:fs(n))},Bi.reverse=eo,Bi.sampleSize=function(t,i,n){return i=(n?_a(t,i,n):i===e)?1:fs(i),(qo(t)?Wi:Kn)(t,i)},Bi.set=function(e,t,i){return null==e?e:Qn(e,t,i)},Bi.setWith=function(t,i,n,r){return r="function"==typeof r?r:e,null==t?t:Qn(t,i,n,r)},Bi.shuffle=function(e){return(qo(e)?Ki:er)(e)},Bi.slice=function(t,i,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&_a(t,i,n)?(i=0,n=r):(i=null==i?0:fs(i),n=n===e?r:fs(n)),tr(t,i,n)):[]},Bi.sortBy=Ao,Bi.sortedUniq=function(e){return e&&e.length?ar(e):[]},Bi.sortedUniqBy=function(e,t){return e&&e.length?ar(e,oa(t,2)):[]},Bi.split=function(t,i,n){return n&&"number"!=typeof n&&_a(t,i,n)&&(i=n=e),(n=n===e?u:n>>>0)?(t=ys(t))&&("string"==typeof i||null!=i&&!os(i))&&!(i=sr(i))&&ti(t)?yr(si(t),0,n):t.split(i,n):[]},Bi.spread=function(e,i){if("function"!=typeof e)throw new Me(t);return i=null==i?0:fi(fs(i),0),Jn(function(t){var n=t[i],r=yr(t,0,i);return n&&It(r,n),St(e,this,r)})},Bi.tail=function(e){var t=null==e?0:e.length;return t?tr(e,1,t):[]},Bi.take=function(t,i,n){return t&&t.length?tr(t,0,(i=n||i===e?1:fs(i))<0?0:i):[]},Bi.takeRight=function(t,i,n){var r=null==t?0:t.length;return r?tr(t,(i=r-(i=n||i===e?1:fs(i)))<0?0:i,r):[]},Bi.takeRightWhile=function(e,t){return e&&e.length?dr(e,oa(t,3),!1,!0):[]},Bi.takeWhile=function(e,t){return e&&e.length?dr(e,oa(t,3)):[]},Bi.tap=function(e,t){return t(e),e},Bi.throttle=function(e,i,n){var r=!0,a=!0;if("function"!=typeof e)throw new Me(t);return ts(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),No(e,i,{leading:r,maxWait:i,trailing:a})},Bi.thru=mo,Bi.toArray=ps,Bi.toPairs=$s,Bi.toPairsIn=Us,Bi.toPath=function(e){return qo(e)?Rt(e,Ba):cs(e)?[e]:xr(Pa(ys(e)))},Bi.toPlainObject=vs,Bi.transform=function(e,t,i){var n=qo(e),r=n||Wo(e)||us(e);if(t=oa(t,4),null==i){var a=e&&e.constructor;i=r?n?new a:[]:ts(e)&&Zo(a)?Fi(qe(e)):{}}return(r?wt:vn)(e,function(e,n,r){return t(i,e,n,r)}),i},Bi.unary=function(e){return Mo(e,1)},Bi.union=to,Bi.unionBy=io,Bi.unionWith=no,Bi.uniq=function(e){return e&&e.length?lr(e):[]},Bi.uniqBy=function(e,t){return e&&e.length?lr(e,oa(t,2)):[]},Bi.uniqWith=function(t,i){return i="function"==typeof i?i:e,t&&t.length?lr(t,e,i):[]},Bi.unset=function(e,t){return null==e||cr(e,t)},Bi.unzip=ro,Bi.unzipWith=ao,Bi.update=function(e,t,i){return null==e?e:ur(e,t,gr(i))},Bi.updateWith=function(t,i,n,r){return r="function"==typeof r?r:e,null==t?t:ur(t,i,gr(n),r)},Bi.values=Gs,Bi.valuesIn=function(e){return null==e?[]:Jt(e,Os(e))},Bi.without=oo,Bi.words=Zs,Bi.wrap=function(e,t){return Fo(gr(t),e)},Bi.xor=so,Bi.xorBy=lo,Bi.xorWith=co,Bi.zip=uo,Bi.zipObject=function(e,t){return mr(e||[],t||[],Zi)},Bi.zipObjectDeep=function(e,t){return mr(e||[],t||[],Qn)},Bi.zipWith=ho,Bi.entries=$s,Bi.entriesIn=Us,Bi.extend=Ss,Bi.extendWith=Es,ll(Bi,Bi),Bi.add=yl,Bi.attempt=Xs,Bi.camelCase=Ys,Bi.capitalize=zs,Bi.ceil=bl,Bi.clamp=function(t,i,n){return n===e&&(n=i,i=e),n!==e&&(n=(n=_s(n))==n?n:0),i!==e&&(i=(i=_s(i))==i?i:0),an(_s(t),i,n)},Bi.clone=function(e){return on(e,4)},Bi.cloneDeep=function(e){return on(e,5)},Bi.cloneDeepWith=function(t,i){return on(t,5,i="function"==typeof i?i:e)},Bi.cloneWith=function(t,i){return on(t,4,i="function"==typeof i?i:e)},Bi.conformsTo=function(e,t){return null==t||sn(e,t,Ns(t))},Bi.deburr=Hs,Bi.defaultTo=function(e,t){return null==e||e!=e?t:e},Bi.divide=Sl,Bi.endsWith=function(t,i,n){t=ys(t),i=sr(i);var r=t.length,a=n=n===e?r:an(fs(n),0,r);return(n-=i.length)>=0&&t.slice(n,a)==i},Bi.eq=Go,Bi.escape=function(e){return(e=ys(e))&&q.test(e)?e.replace(z,Xt):e},Bi.escapeRegExp=function(e){return(e=ys(e))&&X.test(e)?e.replace(Z,"\\$&"):e},Bi.every=function(t,i,n){var r=qo(t)?Tt:hn;return n&&_a(t,i,n)&&(i=e),r(t,oa(i,3))},Bi.find=_o,Bi.findIndex=za,Bi.findKey=function(e,t){return Lt(e,oa(t,3),vn)},Bi.findLast=vo,Bi.findLastIndex=Ha,Bi.findLastKey=function(e,t){return Lt(e,oa(t,3),yn)},Bi.floor=El,Bi.forEach=yo,Bi.forEachRight=bo,Bi.forIn=function(e,t){return null==e?e:gn(e,oa(t,3),Os)},Bi.forInRight=function(e,t){return null==e?e:_n(e,oa(t,3),Os)},Bi.forOwn=function(e,t){return e&&vn(e,oa(t,3))},Bi.forOwnRight=function(e,t){return e&&yn(e,oa(t,3))},Bi.get=xs,Bi.gt=Yo,Bi.gte=zo,Bi.has=function(e,t){return null!=e&&pa(e,t,Tn)},Bi.hasIn=Ms,Bi.head=Va,Bi.identity=rl,Bi.includes=function(e,t,i,n){e=jo(e)?e:Gs(e),i=i&&!n?fs(i):0;var r=e.length;return i<0&&(i=fi(r+i,0)),ls(e)?i<=r&&e.indexOf(t,i)>-1:!!r&&Bt(e,t,i)>-1},Bi.indexOf=function(e,t,i){var n=null==e?0:e.length;if(!n)return-1;var r=null==i?0:fs(i);return r<0&&(r=fi(n+r,0)),Bt(e,t,r)},Bi.inRange=function(t,i,n){return i=ms(i),n===e?(n=i,i=0):n=ms(n),function(e,t,i){return e>=gi(t,i)&&e<fi(t,i)}(t=_s(t),i,n)},Bi.invoke=ks,Bi.isArguments=Ho,Bi.isArray=qo,Bi.isArrayBuffer=Vo,Bi.isArrayLike=jo,Bi.isArrayLikeObject=Jo,Bi.isBoolean=function(e){return!0===e||!1===e||is(e)&&wn(e)==m},Bi.isBuffer=Wo,Bi.isDate=Ko,Bi.isElement=function(e){return is(e)&&1===e.nodeType&&!as(e)},Bi.isEmpty=function(e){if(null==e)return!0;if(jo(e)&&(qo(e)||"string"==typeof e||"function"==typeof e.splice||Wo(e)||us(e)||Ho(e)))return!e.length;var t=ha(e);if(t==y||t==C)return!e.size;if(Sa(e))return!Dn(e).length;for(var i in e)if(De.call(e,i))return!1;return!0},Bi.isEqual=function(e,t){return In(e,t)},Bi.isEqualWith=function(t,i,n){var r=(n="function"==typeof n?n:e)?n(t,i):e;return r===e?In(t,i,e,n):!!r},Bi.isError=Qo,Bi.isFinite=function(e){return"number"==typeof e&&hi(e)},Bi.isFunction=Zo,Bi.isInteger=Xo,Bi.isLength=es,Bi.isMap=ns,Bi.isMatch=function(e,t){return e===t||kn(e,t,la(t))},Bi.isMatchWith=function(t,i,n){return n="function"==typeof n?n:e,kn(t,i,la(i),n)},Bi.isNaN=function(e){return rs(e)&&e!=+e},Bi.isNative=function(e){if(ba(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Nn(e)},Bi.isNil=function(e){return null==e},Bi.isNull=function(e){return null===e},Bi.isNumber=rs,Bi.isObject=ts,Bi.isObjectLike=is,Bi.isPlainObject=as,Bi.isRegExp=os,Bi.isSafeInteger=function(e){return Xo(e)&&e>=-9007199254740991&&e<=l},Bi.isSet=ss,Bi.isString=ls,Bi.isSymbol=cs,Bi.isTypedArray=us,Bi.isUndefined=function(t){return t===e},Bi.isWeakMap=function(e){return is(e)&&ha(e)==x},Bi.isWeakSet=function(e){return is(e)&&"[object WeakSet]"==wn(e)},Bi.join=function(e,t){return null==e?"":pi.call(e,t)},Bi.kebabCase=qs,Bi.last=Ka,Bi.lastIndexOf=function(t,i,n){var r=null==t?0:t.length;if(!r)return-1;var a=r;return n!==e&&(a=(a=fs(n))<0?fi(r+a,0):gi(a,r-1)),i==i?function(e,t,i){for(var n=i+1;n--;)if(e[n]===t)return n;return n}(t,i,a):Pt(t,$t,a,!0)},Bi.lowerCase=Vs,Bi.lowerFirst=js,Bi.lt=ds,Bi.lte=hs,Bi.max=function(t){return t&&t.length?pn(t,rl,Cn):e},Bi.maxBy=function(t,i){return t&&t.length?pn(t,oa(i,2),Cn):e},Bi.mean=function(e){return Ut(e,rl)},Bi.meanBy=function(e,t){return Ut(e,oa(t,2))},Bi.min=function(t){return t&&t.length?pn(t,rl,Pn):e},Bi.minBy=function(t,i){return t&&t.length?pn(t,oa(i,2),Pn):e},Bi.stubArray=gl,Bi.stubFalse=_l,Bi.stubObject=function(){return{}},Bi.stubString=function(){return""},Bi.stubTrue=function(){return!0},Bi.multiply=wl,Bi.nth=function(t,i){return t&&t.length?Gn(t,fs(i)):e},Bi.noConflict=function(){return ct._===this&&(ct._=$e),this},Bi.noop=cl,Bi.now=xo,Bi.pad=function(e,t,i){e=ys(e);var n=(t=fs(t))?oi(e):0;if(!t||n>=t)return e;var r=(t-n)/2;return Yr(Dt(r),i)+e+Yr(mt(r),i)},Bi.padEnd=function(e,t,i){e=ys(e);var n=(t=fs(t))?oi(e):0;return t&&n<t?e+Yr(t-n,i):e},Bi.padStart=function(e,t,i){e=ys(e);var n=(t=fs(t))?oi(e):0;return t&&n<t?Yr(t-n,i)+e:e},Bi.parseInt=function(e,t,i){return i||null==t?t=0:t&&(t=+t),vi(ys(e).replace(ee,""),t||0)},Bi.random=function(t,i,n){if(n&&"boolean"!=typeof n&&_a(t,i,n)&&(i=n=e),n===e&&("boolean"==typeof i?(n=i,i=e):"boolean"==typeof t&&(n=t,t=e)),t===e&&i===e?(t=0,i=1):(t=ms(t),i===e?(i=t,t=0):i=ms(i)),t>i){var r=t;t=i,i=r}if(n||t%1||i%1){var a=yi();return gi(t+a*(i-t+at("1e-"+((a+"").length-1))),i)}return Vn(t,i)},Bi.reduce=function(e,t,i){var n=qo(e)?kt:zt,r=arguments.length<3;return n(e,oa(t,4),i,r,un)},Bi.reduceRight=function(e,t,i){var n=qo(e)?Nt:zt,r=arguments.length<3;return n(e,oa(t,4),i,r,dn)},Bi.repeat=function(t,i,n){return i=(n?_a(t,i,n):i===e)?1:fs(i),jn(ys(t),i)},Bi.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bi.result=function(t,i,n){var r=-1,a=(i=_r(i,t)).length;for(a||(a=1,t=e);++r<a;){var o=null==t?e:t[Ba(i[r])];o===e&&(r=a,o=n),t=Zo(o)?o.call(t):o}return t},Bi.round=Cl,Bi.runInContext=te,Bi.sample=function(e){return(qo(e)?Ji:Wn)(e)},Bi.size=function(e){if(null==e)return 0;if(jo(e))return ls(e)?oi(e):e.length;var t=ha(e);return t==y||t==C?e.size:Dn(e).length},Bi.snakeCase=Js,Bi.some=function(t,i,n){var r=qo(t)?Ot:ir;return n&&_a(t,i,n)&&(i=e),r(t,oa(i,3))},Bi.sortedIndex=function(e,t){return nr(e,t)},Bi.sortedIndexBy=function(e,t,i){return rr(e,t,oa(i,2))},Bi.sortedIndexOf=function(e,t){var i=null==e?0:e.length;if(i){var n=nr(e,t);if(n<i&&Go(e[n],t))return n}return-1},Bi.sortedLastIndex=function(e,t){return nr(e,t,!0)},Bi.sortedLastIndexBy=function(e,t,i){return rr(e,t,oa(i,2),!0)},Bi.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var i=nr(e,t,!0)-1;if(Go(e[i],t))return i}return-1},Bi.startCase=Ws,Bi.startsWith=function(e,t,i){return e=ys(e),i=null==i?0:an(fs(i),0,e.length),t=sr(t),e.slice(i,i+t.length)==t},Bi.subtract=Tl,Bi.sum=function(e){return e&&e.length?Ht(e,rl):0},Bi.sumBy=function(e,t){return e&&e.length?Ht(e,oa(t,2)):0},Bi.template=function(t,i,n){var r=Bi.templateSettings;n&&_a(t,i,n)&&(i=e),t=ys(t),i=Es({},i,r,Kr);var a,o,s=Es({},i.imports,r.imports,Kr),l=Ns(s),c=Jt(s,l),u=0,d=i.interpolate||ge,h="__p += '",p=Ae((i.escape||ge).source+"|"+d.source+"|"+(d===J?le:ge).source+"|"+(i.evaluate||ge).source+"|$","g"),m="//# sourceURL="+(De.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tt+"]")+"\n";t.replace(p,function(e,i,n,r,s,l){return n||(n=r),h+=t.slice(u,l).replace(_e,ei),i&&(a=!0,h+="' +\n__e("+i+") +\n'"),s&&(o=!0,h+="';\n"+s+";\n__p += '"),n&&(h+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),u=l+e.length,e}),h+="';\n";var f=De.call(i,"variable")&&i.variable;if(f){if(oe.test(f))throw new Ee("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace($,""):h).replace(U,"$1").replace(G,"$1;"),h="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Xs(function(){return we(l,m+"return "+h).apply(e,c)});if(g.source=h,Qo(g))throw g;return g},Bi.times=function(e,t){if((e=fs(e))<1||e>l)return[];var i=u,n=gi(e,u);t=oa(t),e-=u;for(var r=qt(n,t);++i<e;)t(i);return r},Bi.toFinite=ms,Bi.toInteger=fs,Bi.toLength=gs,Bi.toLower=function(e){return ys(e).toLowerCase()},Bi.toNumber=_s,Bi.toSafeInteger=function(e){return e?an(fs(e),-9007199254740991,l):0===e?e:0},Bi.toString=ys,Bi.toUpper=function(e){return ys(e).toUpperCase()},Bi.trim=function(t,i,n){if((t=ys(t))&&(n||i===e))return Vt(t);if(!t||!(i=sr(i)))return t;var r=si(t),a=si(i);return yr(r,Kt(r,a),Qt(r,a)+1).join("")},Bi.trimEnd=function(t,i,n){if((t=ys(t))&&(n||i===e))return t.slice(0,li(t)+1);if(!t||!(i=sr(i)))return t;var r=si(t);return yr(r,0,Qt(r,si(i))+1).join("")},Bi.trimStart=function(t,i,n){if((t=ys(t))&&(n||i===e))return t.replace(ee,"");if(!t||!(i=sr(i)))return t;var r=si(t);return yr(r,Kt(r,si(i))).join("")},Bi.truncate=function(t,i){var n=30,r="...";if(ts(i)){var a="separator"in i?i.separator:a;n="length"in i?fs(i.length):n,r="omission"in i?sr(i.omission):r}var o=(t=ys(t)).length;if(ti(t)){var s=si(t);o=s.length}if(n>=o)return t;var l=n-oi(r);if(l<1)return r;var c=s?yr(s,0,l).join(""):t.slice(0,l);if(a===e)return c+r;if(s&&(l+=c.length-l),os(a)){if(t.slice(l).search(a)){var u,d=c;for(a.global||(a=Ae(a.source,ys(ce.exec(a))+"g")),a.lastIndex=0;u=a.exec(d);)var h=u.index;c=c.slice(0,h===e?l:h)}}else if(t.indexOf(sr(a),l)!=l){var p=c.lastIndexOf(a);p>-1&&(c=c.slice(0,p))}return c+r},Bi.unescape=function(e){return(e=ys(e))&&H.test(e)?e.replace(Y,ci):e},Bi.uniqueId=function(e){var t=++Le;return ys(e)+t},Bi.upperCase=Ks,Bi.upperFirst=Qs,Bi.each=yo,Bi.eachRight=bo,Bi.first=Va,ll(Bi,(vl={},vn(Bi,function(e,t){De.call(Bi.prototype,t)||(vl[t]=e)}),vl),{chain:!1}),Bi.VERSION="4.17.23",wt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Bi[e].placeholder=Bi}),wt(["drop","take"],function(t,i){Gi.prototype[t]=function(n){n=n===e?1:fi(fs(n),0);var r=this.__filtered__&&!i?new Gi(this):this.clone();return r.__filtered__?r.__takeCount__=gi(n,r.__takeCount__):r.__views__.push({size:gi(n,u),type:t+(r.__dir__<0?"Right":"")}),r},Gi.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),wt(["filter","map","takeWhile"],function(e,t){var i=t+1,n=1==i||3==i;Gi.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oa(e,3),type:i}),t.__filtered__=t.__filtered__||n,t}}),wt(["head","last"],function(e,t){var i="take"+(t?"Right":"");Gi.prototype[e]=function(){return this[i](1).value()[0]}}),wt(["initial","tail"],function(e,t){var i="drop"+(t?"":"Right");Gi.prototype[e]=function(){return this.__filtered__?new Gi(this):this[i](1)}}),Gi.prototype.compact=function(){return this.filter(rl)},Gi.prototype.find=function(e){return this.filter(e).head()},Gi.prototype.findLast=function(e){return this.reverse().find(e)},Gi.prototype.invokeMap=Jn(function(e,t){return"function"==typeof e?new Gi(this):this.map(function(i){return Mn(i,e,t)})}),Gi.prototype.reject=function(e){return this.filter(Po(oa(e)))},Gi.prototype.slice=function(t,i){t=fs(t);var n=this;return n.__filtered__&&(t>0||i<0)?new Gi(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),i!==e&&(n=(i=fs(i))<0?n.dropRight(-i):n.take(i-t)),n)},Gi.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Gi.prototype.toArray=function(){return this.take(u)},vn(Gi.prototype,function(t,i){var n=/^(?:filter|find|map|reject)|While$/.test(i),r=/^(?:head|last)$/.test(i),a=Bi[r?"take"+("last"==i?"Right":""):i],o=r||/^find/.test(i);a&&(Bi.prototype[i]=function(){var i=this.__wrapped__,s=r?[1]:arguments,l=i instanceof Gi,c=s[0],u=l||qo(i),d=function(e){var t=a.apply(Bi,It([e],s));return r&&h?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,p=!!this.__actions__.length,m=o&&!h,f=l&&!p;if(!o&&u){i=f?i:new Gi(this);var g=t.apply(i,s);return g.__actions__.push({func:mo,args:[d],thisArg:e}),new Ui(g,h)}return m&&f?t.apply(this,s):(g=this.thru(d),m?r?g.value()[0]:g.value():g)})}),wt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Re[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Bi.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var r=this.value();return t.apply(qo(r)?r:[],e)}return this[i](function(i){return t.apply(qo(i)?i:[],e)})}}),vn(Gi.prototype,function(e,t){var i=Bi[t];if(i){var n=i.name+"";De.call(Mi,n)||(Mi[n]=[]),Mi[n].push({name:t,func:i})}}),Mi[Fr(e,2).name]=[{name:"wrapper",func:e}],Gi.prototype.clone=function(){var e=new Gi(this.__wrapped__);return e.__actions__=xr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=xr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=xr(this.__views__),e},Gi.prototype.reverse=function(){if(this.__filtered__){var e=new Gi(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Gi.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,i=qo(e),n=t<0,r=i?e.length:0,a=function(e,t,i){for(var n=-1,r=i.length;++n<r;){var a=i[n],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=gi(t,e+o);break;case"takeRight":e=fi(e,t-o)}}return{start:e,end:t}}(0,r,this.__views__),o=a.start,s=a.end,l=s-o,c=n?s:o-1,u=this.__iteratees__,d=u.length,h=0,p=gi(l,this.__takeCount__);if(!i||!n&&r==l&&p==l)return hr(e,this.__actions__);var m=[];e:for(;l--&&h<p;){for(var f=-1,g=e[c+=t];++f<d;){var _=u[f],v=_.iteratee,y=_.type,b=v(g);if(2==y)g=b;else if(!b){if(1==y)continue e;break e}}m[h++]=g}return m},Bi.prototype.at=fo,Bi.prototype.chain=function(){return po(this)},Bi.prototype.commit=function(){return new Ui(this.value(),this.__chain__)},Bi.prototype.next=function(){this.__values__===e&&(this.__values__=ps(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},Bi.prototype.plant=function(t){for(var i,n=this;n instanceof $i;){var r=$a(n);r.__index__=0,r.__values__=e,i?a.__wrapped__=r:i=r;var a=r;n=n.__wrapped__}return a.__wrapped__=t,i},Bi.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Gi){var i=t;return this.__actions__.length&&(i=new Gi(this)),(i=i.reverse()).__actions__.push({func:mo,args:[eo],thisArg:e}),new Ui(i,this.__chain__)}return this.thru(eo)},Bi.prototype.toJSON=Bi.prototype.valueOf=Bi.prototype.value=function(){return hr(this.__wrapped__,this.__actions__)},Bi.prototype.first=Bi.prototype.head,rt&&(Bi.prototype[rt]=function(){return this}),Bi}();dt?((dt.exports=ui)._=ui,ut._=ui):ct._=ui}.call(commonjsGlobal);var lodashExports=lodash.exports;const _$1=getDefaultExportFromCjs$1(lodashExports),_sfc_main$2g={name:"AreaSelect",props:{},computed:{},data:()=>({active:!1,show:!0}),created(){},methods:{}};var _sfc_render$2g=function(){var e=this._self._c;return e("div",[e("div",{class:{"header-nav":!0,active:this.active}})])},_sfc_staticRenderFns$2g=[],__component__$2g=normalizeComponent(_sfc_main$2g,_sfc_render$2g,_sfc_staticRenderFns$2g,!1,null,"f4b21a81");const AreaSelect=__component__$2g.exports;var axios$4={exports:{}},bind$7=function(e,t){return function(){for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];return e.apply(t,i)}},bind$6=bind$7,toString$6=Object.prototype.toString,kindOf=function(e){return function(t){var i=toString$6.call(t);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())}}(Object.create(null));function kindOfTest(e){return e=e.toLowerCase(),function(t){return kindOf(t)===e}}function isArray$6(e){return Array.isArray(e)}function isUndefined$1(e){return void 0===e}function isBuffer(e){return null!==e&&!isUndefined$1(e)&&null!==e.constructor&&!isUndefined$1(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&isArrayBuffer(e.buffer)}function isString$3(e){return"string"==typeof e}function isNumber$2(e){return"number"==typeof e}function isObject$5(e){return null!==e&&"object"==typeof e}function isPlainObject(e){if("object"!==kindOf(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var isDate$2=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList");function isFunction$4(e){return"[object Function]"===toString$6.call(e)}function isStream(e){return isObject$5(e)&&isFunction$4(e.pipe)}function isFormData(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||toString$6.call(e)===t||isFunction$4(e.toString)&&e.toString()===t)}var isURLSearchParams=kindOfTest("URLSearchParams");function trim$1(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function forEach$1(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),isArray$6(e))for(var i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}function merge$1(){var e={};function t(t,i){isPlainObject(e[i])&&isPlainObject(t)?e[i]=merge$1(e[i],t):isPlainObject(t)?e[i]=merge$1({},t):isArray$6(t)?e[i]=t.slice():e[i]=t}for(var i=0,n=arguments.length;i<n;i++)forEach$1(arguments[i],t);return e}function extend$2(e,t,i){return forEach$1(t,function(t,n){e[n]=i&&"function"==typeof t?bind$6(t,i):t}),e}function stripBOM(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}function inherits$W(e,t,i,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,i&&Object.assign(e.prototype,i)}function toFlatObject(e,t,i){var n,r,a,o={};t=t||{};do{for(r=(n=Object.getOwnPropertyNames(e)).length;r-- >0;)o[a=n[r]]||(t[a]=e[a],o[a]=!0);e=Object.getPrototypeOf(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t}function endsWith(e,t,i){e=String(e),(void 0===i||i>e.length)&&(i=e.length),i-=t.length;var n=e.indexOf(t,i);return-1!==n&&n===i}function toArray$3(e){if(!e)return null;var t=e.length;if(isUndefined$1(t))return null;for(var i=new Array(t);t-- >0;)i[t]=e[t];return i}var isTypedArray$3=function(e){return function(t){return e&&t instanceof e}}("undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array)),utils$D={isArray:isArray$6,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString$3,isNumber:isNumber$2,isObject:isObject$5,isPlainObject:isPlainObject,isUndefined:isUndefined$1,isDate:isDate$2,isFile:isFile,isBlob:isBlob,isFunction:isFunction$4,isStream:isStream,isURLSearchParams:isURLSearchParams,isStandardBrowserEnv:isStandardBrowserEnv,forEach:forEach$1,merge:merge$1,extend:extend$2,trim:trim$1,stripBOM:stripBOM,inherits:inherits$W,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray$3,isTypedArray:isTypedArray$3,isFileList:isFileList},utils$C=utils$D;function encode$2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildURL$1=function(e,t,i){if(!t)return e;var n;if(i)n=i(t);else if(utils$C.isURLSearchParams(t))n=t.toString();else{var r=[];utils$C.forEach(t,function(e,t){null!=e&&(utils$C.isArray(e)?t+="[]":e=[e],utils$C.forEach(e,function(e){utils$C.isDate(e)?e=e.toISOString():utils$C.isObject(e)&&(e=JSON.stringify(e)),r.push(encode$2(t)+"="+encode$2(e))}))}),n=r.join("&")}if(n){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},utils$B=utils$D;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1},InterceptorManager$1.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},InterceptorManager$1.prototype.forEach=function(e){utils$B.forEach(this.handlers,function(t){null!==t&&e(t)})};var InterceptorManager_1=InterceptorManager$1;function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var browser$i={exports:{}},process=browser$i.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(e){if(cachedSetTimeout===setTimeout)return setTimeout(e,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(e,0);try{return cachedSetTimeout(e,0)}catch(t){try{return cachedSetTimeout.call(null,e,0)}catch(i){return cachedSetTimeout.call(this,e,0)}}}function runClearTimeout(e){if(cachedClearTimeout===clearTimeout)return clearTimeout(e);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(e);try{return cachedClearTimeout(e)}catch(t){try{return cachedClearTimeout.call(null,e)}catch(i){return cachedClearTimeout.call(this,e)}}}!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var queue$1=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){draining&&currentQueue&&(draining=!1,currentQueue.length?queue$1=currentQueue.concat(queue$1):queueIndex=-1,queue$1.length&&drainQueue())}function drainQueue(){if(!draining){var e=runTimeout(cleanUpNextTick);draining=!0;for(var t=queue$1.length;t;){for(currentQueue=queue$1,queue$1=[];++queueIndex<t;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,t=queue$1.length}currentQueue=null,draining=!1,runClearTimeout(e)}}function Item(e,t){this.fun=e,this.array=t}function noop$3(){}process.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];queue$1.push(new Item(e,t)),1!==queue$1.length||draining||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={},process.on=noop$3,process.addListener=noop$3,process.once=noop$3,process.off=noop$3,process.removeListener=noop$3,process.removeAllListeners=noop$3,process.emit=noop$3,process.prependListener=noop$3,process.prependOnceListener=noop$3,process.listeners=function(e){return[]},process.binding=function(e){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(e){throw new Error("process.chdir is not supported")},process.umask=function(){return 0};var browserExports$1=browser$i.exports;const process$1=getDefaultExportFromCjs(browserExports$1);var utils$A=utils$D,normalizeHeaderName$1=function(e,t){utils$A.forEach(e,function(i,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=i,delete e[n])})},utils$z=utils$D;function AxiosError$2(e,t,i,n,r){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),i&&(this.config=i),n&&(this.request=n),r&&(this.response=r)}utils$z.inherits(AxiosError$2,Error,{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,status:this.response&&this.response.status?this.response.status:null}}});var prototype=AxiosError$2.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){descriptors[e]={value:e}}),Object.defineProperties(AxiosError$2,descriptors),Object.defineProperty(prototype,"isAxiosError",{value:!0}),AxiosError$2.from=function(e,t,i,n,r,a){var o=Object.create(prototype);return utils$z.toFlatObject(e,o,function(e){return e!==Error.prototype}),AxiosError$2.call(o,e.message,t,i,n,r),o.name=e.name,a&&Object.assign(o,a),o};var AxiosError_1=AxiosError$2,transitional={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},buffer$1={},base64Js={};base64Js.byteLength=byteLength,base64Js.toByteArray=toByteArray,base64Js.fromByteArray=fromByteArray;for(var lookup=[],revLookup=[],Arr="undefined"!=typeof Uint8Array?Uint8Array:Array,code$1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i$1=0,len$1=code$1.length;i$1<len$1;++i$1)lookup[i$1]=code$1[i$1],revLookup[code$1.charCodeAt(i$1)]=i$1;function getLens(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function byteLength(e){var t=getLens(e),i=t[0],n=t[1];return 3*(i+n)/4-n}function _byteLength(e,t,i){return 3*(t+i)/4-i}function toByteArray(e){var t,i,n=getLens(e),r=n[0],a=n[1],o=new Arr(_byteLength(e,r,a)),s=0,l=a>0?r-4:r;for(i=0;i<l;i+=4)t=revLookup[e.charCodeAt(i)]<<18|revLookup[e.charCodeAt(i+1)]<<12|revLookup[e.charCodeAt(i+2)]<<6|revLookup[e.charCodeAt(i+3)],o[s++]=t>>16&255,o[s++]=t>>8&255,o[s++]=255&t;return 2===a&&(t=revLookup[e.charCodeAt(i)]<<2|revLookup[e.charCodeAt(i+1)]>>4,o[s++]=255&t),1===a&&(t=revLookup[e.charCodeAt(i)]<<10|revLookup[e.charCodeAt(i+1)]<<4|revLookup[e.charCodeAt(i+2)]>>2,o[s++]=t>>8&255,o[s++]=255&t),o}function tripletToBase64(e){return lookup[e>>18&63]+lookup[e>>12&63]+lookup[e>>6&63]+lookup[63&e]}function encodeChunk(e,t,i){for(var n,r=[],a=t;a<i;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),r.push(tripletToBase64(n));return r.join("")}function fromByteArray(e){for(var t,i=e.length,n=i%3,r=[],a=16383,o=0,s=i-n;o<s;o+=a)r.push(encodeChunk(e,o,o+a>s?s:o+a));return 1===n?(t=e[i-1],r.push(lookup[t>>2]+lookup[t<<4&63]+"==")):2===n&&(t=(e[i-2]<<8)+e[i-1],r.push(lookup[t>>10]+lookup[t>>4&63]+lookup[t<<2&63]+"=")),r.join("")}revLookup["-".charCodeAt(0)]=62,revLookup["_".charCodeAt(0)]=63;var ieee754={
33
33
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
34
34
  read:function(e,t,i,n,r){var a,o,s=8*r-n-1,l=(1<<s)-1,c=l>>1,u=-7,d=i?r-1:0,h=i?-1:1,p=e[t+d];for(d+=h,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=256*a+e[t+d],d+=h,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=n;u>0;o=256*o+e[t+d],d+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},write:function(e,t,i,n,r,a){var o,s,l,c=8*a-r-1,u=(1<<c)-1,d=u>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,m=n?1:-1,f=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*l-1)*Math.pow(2,r),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),o=0));r>=8;e[i+p]=255&s,p+=m,s/=256,r-=8);for(o=o<<r|s,c+=r;c>0;e[i+p]=255&o,p+=m,o/=256,c-=8);e[i+p-m]|=128*f}};
35
35
  /*!
@@ -38,7 +38,7 @@ read:function(e,t,i,n,r){var a,o,s=8*r-n-1,l=(1<<s)-1,c=l>>1,u=-7,d=i?r-1:0,h=i?
38
38
  * @author Feross Aboukhadijeh <https://feross.org>
39
39
  * @license MIT
40
40
  */
41
- !function(e){const t=base64Js,i=ieee754,n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},e.INSPECT_MAX_BYTES=50;const r=2147483647;e.kMaxLength=r;const{Uint8Array:a,ArrayBuffer:o,SharedArrayBuffer:s}=globalThis;function l(e){if(e>r)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new a(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,i){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return h(e)}return u(e,t,i)}function u(e,t,i){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const i=0|g(e,t);let n=l(i);const r=n.write(e,t);r!==i&&(n=n.slice(0,r));return n}(e,t);if(o.isView(e))return function(e){if(K(e,a)){const t=new a(e);return m(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,o)||e&&K(e.buffer,o))return m(e,t,i);if(void 0!==s&&(K(e,s)||e&&K(e.buffer,s)))return m(e,t,i);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,i);const r=function(e){if(c.isBuffer(e)){const t=0|f(e.length),i=l(t);return 0===i.length||e.copy(i,0,0,t),i}if(void 0!==e.length)return"number"!=typeof e.length||Q(e.length)?l(0):p(e);if("Buffer"===e.type&&Array.isArray(e.data))return p(e.data)}(e);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function h(e){return d(e),l(e<0?0:0|f(e))}function p(e){const t=e.length<0?0:0|f(e.length),i=l(t);for(let n=0;n<t;n+=1)i[n]=255&e[n];return i}function m(e,t,i){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(i||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===i?new a(e):void 0===i?new a(e,t):new a(e,t,i),Object.setPrototypeOf(n,c.prototype),n}function f(e){if(e>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function g(e,t){if(c.isBuffer(e))return e.length;if(o.isView(e)||K(e,o))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const i=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===i)return 0;let r=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return J(e).length;default:if(r)return n?-1:j(e).length;t=(""+t).toLowerCase(),r=!0}}function _(e,t,i){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return k(this,t,i);case"utf8":case"utf-8":return x(this,t,i);case"ascii":return R(this,t,i);case"latin1":case"binary":return I(this,t,i);case"base64":return A(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,i);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,i){const n=e[t];e[t]=e[i],e[i]=n}function y(e,t,i,n,r){if(0===e.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),Q(i=+i)&&(i=r?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(r)return-1;i=e.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:b(e,t,i,n,r);if("number"==typeof t)return t&=255,"function"==typeof a.prototype.indexOf?r?a.prototype.indexOf.call(e,t,i):a.prototype.lastIndexOf.call(e,t,i):b(e,[t],i,n,r);throw new TypeError("val must be string, number or Buffer")}function b(e,t,i,n,r){let a,o=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,i/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(r){let n=-1;for(a=i;a<s;a++)if(c(e,a)===c(t,-1===n?0:a-n)){if(-1===n&&(n=a),a-n+1===l)return n*o}else-1!==n&&(a-=a-n),n=-1}else for(i+l>s&&(i=s-l),a=i;a>=0;a--){let i=!0;for(let n=0;n<l;n++)if(c(e,a+n)!==c(t,n)){i=!1;break}if(i)return a}return-1}function S(e,t,i,n){i=Number(i)||0;const r=e.length-i;n?(n=Number(n))>r&&(n=r):n=r;const a=t.length;let o;for(n>a/2&&(n=a/2),o=0;o<n;++o){const n=parseInt(t.substr(2*o,2),16);if(Q(n))return o;e[i+o]=n}return o}function E(e,t,i,n){return W(j(t,e.length-i),e,i,n)}function w(e,t,i,n){return W(function(e){const t=[];for(let i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,i,n)}function C(e,t,i,n){return W(J(t),e,i,n)}function T(e,t,i,n){return W(function(e,t){let i,n,r;const a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)i=e.charCodeAt(o),n=i>>8,r=i%256,a.push(r),a.push(n);return a}(t,e.length-i),e,i,n)}function A(e,i,n){return 0===i&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(i,n))}function x(e,t,i){i=Math.min(e.length,i);const n=[];let r=t;for(;r<i;){const t=e[r];let a=null,o=t>239?4:t>223?3:t>191?2:1;if(r+o<=i){let i,n,s,l;switch(o){case 1:t<128&&(a=t);break;case 2:i=e[r+1],128==(192&i)&&(l=(31&t)<<6|63&i,l>127&&(a=l));break;case 3:i=e[r+1],n=e[r+2],128==(192&i)&&128==(192&n)&&(l=(15&t)<<12|(63&i)<<6|63&n,l>2047&&(l<55296||l>57343)&&(a=l));break;case 4:i=e[r+1],n=e[r+2],s=e[r+3],128==(192&i)&&128==(192&n)&&128==(192&s)&&(l=(15&t)<<18|(63&i)<<12|(63&n)<<6|63&s,l>65535&&l<1114112&&(a=l))}}null===a?(a=65533,o=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),r+=o}return function(e){const t=e.length;if(t<=M)return String.fromCharCode.apply(String,e);let i="",n=0;for(;n<t;)i+=String.fromCharCode.apply(String,e.slice(n,n+=M));return i}(n)}c.TYPED_ARRAY_SUPPORT=function(){try{const e=new a(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,a.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,i){return u(e,t,i)},Object.setPrototypeOf(c.prototype,a.prototype),Object.setPrototypeOf(c,a),c.alloc=function(e,t,i){return function(e,t,i){return d(e),e<=0?l(e):void 0!==t?"string"==typeof i?l(e).fill(t,i):l(e).fill(t):l(e)}(e,t,i)},c.allocUnsafe=function(e){return h(e)},c.allocUnsafeSlow=function(e){return h(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(K(e,a)&&(e=c.from(e,e.offset,e.byteLength)),K(t,a)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let i=e.length,n=t.length;for(let r=0,a=Math.min(i,n);r<a;++r)if(e[r]!==t[r]){i=e[r],n=t[r];break}return i<n?-1:n<i?1:0},c.isEncoding=function(e){switch(String(e).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}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;const n=c.allocUnsafe(t);let r=0;for(i=0;i<e.length;++i){let t=e[i];if(K(t,a))r+t.length>n.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(n,r)):a.prototype.set.call(n,t,r);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,r)}r+=t.length}return n},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)v(this,t,t+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?x(this,0,e):_.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let t="";const i=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(t+=" ... "),"<Buffer "+t+">"},n&&(c.prototype[n]=c.prototype.inspect),c.prototype.compare=function(e,t,i,n,r){if(K(e,a)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),t<0||i>e.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&t>=i)return 0;if(n>=r)return-1;if(t>=i)return 1;if(this===e)return 0;let o=(r>>>=0)-(n>>>=0),s=(i>>>=0)-(t>>>=0);const l=Math.min(o,s),u=this.slice(n,r),d=e.slice(t,i);for(let a=0;a<l;++a)if(u[a]!==d[a]){o=u[a],s=d[a];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},c.prototype.indexOf=function(e,t,i){return y(this,e,t,i,!0)},c.prototype.lastIndexOf=function(e,t,i){return y(this,e,t,i,!1)},c.prototype.write=function(e,t,i,n){if(void 0===t)n="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)n=t,i=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(i)?(i>>>=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}const r=this.length-t;if((void 0===i||i>r)&&(i=r),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let a=!1;for(;;)switch(n){case"hex":return S(this,e,t,i);case"utf8":case"utf-8":return E(this,e,t,i);case"ascii":case"latin1":case"binary":return w(this,e,t,i);case"base64":return C(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,i);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const M=4096;function R(e,t,i){let n="";i=Math.min(e.length,i);for(let r=t;r<i;++r)n+=String.fromCharCode(127&e[r]);return n}function I(e,t,i){let n="";i=Math.min(e.length,i);for(let r=t;r<i;++r)n+=String.fromCharCode(e[r]);return n}function k(e,t,i){const n=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>n)&&(i=n);let r="";for(let a=t;a<i;++a)r+=Z[e[a]];return r}function N(e,t,i){const n=e.slice(t,i);let r="";for(let a=0;a<n.length-1;a+=2)r+=String.fromCharCode(n[a]+256*n[a+1]);return r}function O(e,t,i){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>i)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,i,n,r,a){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<a)throw new RangeError('"value" argument is out of bounds');if(i+n>e.length)throw new RangeError("Index out of range")}function L(e,t,i,n,r){z(t,n,r,e,i,7);let a=Number(t&BigInt(4294967295));e[i++]=a,a>>=8,e[i++]=a,a>>=8,e[i++]=a,a>>=8,e[i++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[i++]=o,o>>=8,e[i++]=o,o>>=8,e[i++]=o,o>>=8,e[i++]=o,i}function P(e,t,i,n,r){z(t,n,r,e,i,7);let a=Number(t&BigInt(4294967295));e[i+7]=a,a>>=8,e[i+6]=a,a>>=8,e[i+5]=a,a>>=8,e[i+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[i+3]=o,o>>=8,e[i+2]=o,o>>=8,e[i+1]=o,o>>=8,e[i]=o,i+8}function B(e,t,i,n,r,a){if(i+n>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function F(e,t,n,r,a){return t=+t,n>>>=0,a||B(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function $(e,t,n,r,a){return t=+t,n>>>=0,a||B(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){const i=this.length;(e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,c.prototype),n},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,i){e>>>=0,t>>>=0,i||O(e,t,this.length);let n=this[e],r=1,a=0;for(;++a<t&&(r*=256);)n+=this[e+a]*r;return n},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,i){e>>>=0,t>>>=0,i||O(e,t,this.length);let n=this[e+--t],r=1;for(;t>0&&(r*=256);)n+=this[e+--t]*r;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=X(function(e){H(e>>>=0,"offset");const t=this[e],i=this[e+7];void 0!==t&&void 0!==i||q(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,r=this[++e]+256*this[++e]+65536*this[++e]+i*2**24;return BigInt(n)+(BigInt(r)<<BigInt(32))}),c.prototype.readBigUInt64BE=X(function(e){H(e>>>=0,"offset");const t=this[e],i=this[e+7];void 0!==t&&void 0!==i||q(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],r=this[++e]*2**24+65536*this[++e]+256*this[++e]+i;return(BigInt(n)<<BigInt(32))+BigInt(r)}),c.prototype.readIntLE=function(e,t,i){e>>>=0,t>>>=0,i||O(e,t,this.length);let n=this[e],r=1,a=0;for(;++a<t&&(r*=256);)n+=this[e+a]*r;return r*=128,n>=r&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,i){e>>>=0,t>>>=0,i||O(e,t,this.length);let n=t,r=1,a=this[e+--n];for(;n>0&&(r*=256);)a+=this[e+--n]*r;return r*=128,a>=r&&(a-=Math.pow(2,8*t)),a},c.prototype.readInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||O(e,2,this.length);const i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt16BE=function(e,t){e>>>=0,t||O(e,2,this.length);const i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=X(function(e){H(e>>>=0,"offset");const t=this[e],i=this[e+7];void 0!==t&&void 0!==i||q(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(i<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),c.prototype.readBigInt64BE=X(function(e){H(e>>>=0,"offset");const t=this[e],i=this[e+7];void 0!==t&&void 0!==i||q(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+i)}),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||O(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||O(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||O(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||O(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,i,n){if(e=+e,t>>>=0,i>>>=0,!n){D(this,e,t,i,Math.pow(2,8*i)-1,0)}let r=1,a=0;for(this[t]=255&e;++a<i&&(r*=256);)this[t+a]=e/r&255;return t+i},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,i,n){if(e=+e,t>>>=0,i>>>=0,!n){D(this,e,t,i,Math.pow(2,8*i)-1,0)}let r=i-1,a=1;for(this[t+r]=255&e;--r>=0&&(a*=256);)this[t+r]=e/a&255;return t+i},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=X(function(e,t=0){return L(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=X(function(e,t=0){return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(e,t,i,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*i-1);D(this,e,t,i,n-1,-n)}let r=0,a=1,o=0;for(this[t]=255&e;++r<i&&(a*=256);)e<0&&0===o&&0!==this[t+r-1]&&(o=1),this[t+r]=(e/a|0)-o&255;return t+i},c.prototype.writeIntBE=function(e,t,i,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*i-1);D(this,e,t,i,n-1,-n)}let r=i-1,a=1,o=0;for(this[t+r]=255&e;--r>=0&&(a*=256);)e<0&&0===o&&0!==this[t+r+1]&&(o=1),this[t+r]=(e/a|0)-o&255;return t+i},c.prototype.writeInt8=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=X(function(e,t=0){return L(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=X(function(e,t=0){return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(e,t,i){return F(this,e,t,!0,i)},c.prototype.writeFloatBE=function(e,t,i){return F(this,e,t,!1,i)},c.prototype.writeDoubleLE=function(e,t,i){return $(this,e,t,!0,i)},c.prototype.writeDoubleBE=function(e,t,i){return $(this,e,t,!1,i)},c.prototype.copy=function(e,t,i,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(i||(i=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<i&&(n=i),n===i)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-i&&(n=e.length-t+i);const r=n-i;return this===e&&"function"==typeof a.prototype.copyWithin?this.copyWithin(t,i,n):a.prototype.set.call(e,this.subarray(i,n),t),r},c.prototype.fill=function(e,t,i,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,i=this.length):"string"==typeof i&&(n=i,i=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;let r;if(t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(r=t;r<i;++r)this[r]=e;else{const a=c.isBuffer(e)?e:c.from(e,n),o=a.length;if(0===o)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(r=0;r<i-t;++r)this[r+t]=a[r%o]}return this};const U={};function G(e,t,i){U[e]=class extends i{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function Y(e){let t="",i=e.length;const n="-"===e[0]?1:0;for(;i>=n+4;i-=3)t=`_${e.slice(i-3,i)}${t}`;return`${e.slice(0,i)}${t}`}function z(e,t,i,n,r,a){if(e>i||e<t){const i="bigint"==typeof t?"n":"";let n;throw n=0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${8*(a+1)}${i}`:`>= -(2${i} ** ${8*(a+1)-1}${i}) and < 2 ** ${8*(a+1)-1}${i}`,new U.ERR_OUT_OF_RANGE("value",n,e)}!function(e,t,i){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+i]||q(t,e.length-(i+1))}(n,r,a)}function H(e,t){if("number"!=typeof e)throw new U.ERR_INVALID_ARG_TYPE(t,"number",e)}function q(e,t,i){if(Math.floor(e)!==e)throw H(e,i),new U.ERR_OUT_OF_RANGE("offset","an integer",e);if(t<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}G("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),G("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),G("ERR_OUT_OF_RANGE",function(e,t,i){let n=`The value of "${e}" is out of range.`,r=i;return Number.isInteger(i)&&Math.abs(i)>2**32?r=Y(String(i)):"bigint"==typeof i&&(r=String(i),(i>BigInt(2)**BigInt(32)||i<-(BigInt(2)**BigInt(32)))&&(r=Y(r)),r+="n"),n+=` It must be ${t}. Received ${r}`,n},RangeError);const V=/[^+/0-9A-Za-z-_]/g;function j(e,t){let i;t=t||1/0;const n=e.length;let r=null;const a=[];for(let o=0;o<n;++o){if(i=e.charCodeAt(o),i>55295&&i<57344){if(!r){if(i>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}r=i;continue}if(i<56320){(t-=3)>-1&&a.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(t-=3)>-1&&a.push(239,191,189);if(r=null,i<128){if((t-=1)<0)break;a.push(i)}else if(i<2048){if((t-=2)<0)break;a.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;a.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return a}function J(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function W(e,t,i,n){let r;for(r=0;r<n&&!(r+i>=t.length||r>=e.length);++r)t[r+i]=e[r];return r}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Q(e){return e!=e}const Z=function(){const e="0123456789abcdef",t=new Array(256);for(let i=0;i<16;++i){const n=16*i;for(let r=0;r<16;++r)t[n+r]=e[i]+e[r]}return t}();function X(e){return"undefined"==typeof BigInt?ee:e}function ee(){throw new Error("BigInt not supported")}}(buffer$1);const Buffer$F=buffer$1.Buffer,Blob$1=buffer$1.Blob,BlobOptions=buffer$1.BlobOptions,Buffer$1$1=buffer$1.Buffer,File=buffer$1.File,FileOptions=buffer$1.FileOptions,INSPECT_MAX_BYTES=buffer$1.INSPECT_MAX_BYTES,SlowBuffer=buffer$1.SlowBuffer,TranscodeEncoding=buffer$1.TranscodeEncoding,atob$1=buffer$1.atob,btoa$1=buffer$1.btoa,constants$3=buffer$1.constants,isAscii=buffer$1.isAscii,isUtf8=buffer$1.isUtf8,kMaxLength=buffer$1.kMaxLength,kStringMaxLength=buffer$1.kStringMaxLength,resolveObjectURL=buffer$1.resolveObjectURL,transcode=buffer$1.transcode,dist$2=Object.freeze(Object.defineProperty({__proto__:null,Blob:Blob$1,BlobOptions:BlobOptions,Buffer:Buffer$1$1,File:File,FileOptions:FileOptions,INSPECT_MAX_BYTES:INSPECT_MAX_BYTES,SlowBuffer:SlowBuffer,TranscodeEncoding:TranscodeEncoding,atob:atob$1,btoa:btoa$1,constants:constants$3,default:Buffer$F,isAscii:isAscii,isUtf8:isUtf8,kMaxLength:kMaxLength,kStringMaxLength:kStringMaxLength,resolveObjectURL:resolveObjectURL,transcode:transcode},Symbol.toStringTag,{value:"Module"}));var toFormData_1,hasRequiredToFormData,settle,hasRequiredSettle,cookies,hasRequiredCookies;function requireToFormData(){if(hasRequiredToFormData)return toFormData_1;hasRequiredToFormData=1;var e=utils$B;return toFormData_1=function(t,i){i=i||new FormData;var n=[];function r(t){return null===t?"":e.isDate(t)?t.toISOString():e.isArrayBuffer(t)||e.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):Buffer$F.from(t):t}return function t(a,o){if(e.isPlainObject(a)||e.isArray(a)){if(-1!==n.indexOf(a))throw Error("Circular reference detected in "+o);n.push(a),e.forEach(a,function(n,a){if(!e.isUndefined(n)){var s,l=o?o+"."+a:a;if(n&&!o&&"object"==typeof n)if(e.endsWith(a,"{}"))n=JSON.stringify(n);else if(e.endsWith(a,"[]")&&(s=e.toArray(n)))return void s.forEach(function(t){!e.isUndefined(t)&&i.append(l,r(t))});t(n,l)}}),n.pop()}else i.append(o,r(a))}(t),i}}function requireSettle(){if(hasRequiredSettle)return settle;hasRequiredSettle=1;var e=requireAxiosError();return settle=function(t,i,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?i(new e("Request failed with status code "+n.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}}function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;var e=utils$B;return cookies=e.isStandardBrowserEnv()?function(){return{write:function(t,i,n,r,a,o){var s=[];s.push(t+"="+encodeURIComponent(i)),e.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),e.isString(r)&&s.push("path="+r),e.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()}var isAbsoluteURL$1=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},combineURLs$1=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},isAbsoluteURL=isAbsoluteURL$1,combineURLs=combineURLs$1,buildFullPath$1=function(e,t){return e&&!isAbsoluteURL(t)?combineURLs(e,t):t},parseHeaders,hasRequiredParseHeaders,isURLSameOrigin,hasRequiredIsURLSameOrigin,CanceledError_1,hasRequiredCanceledError,parseProtocol,hasRequiredParseProtocol,xhr$1,hasRequiredXhr,_null,hasRequired_null;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders;hasRequiredParseHeaders=1;var e=utils$B,t=["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"];return parseHeaders=function(i){var n,r,a,o={};return i?(e.forEach(i.split("\n"),function(i){if(a=i.indexOf(":"),n=e.trim(i.substr(0,a)).toLowerCase(),r=e.trim(i.substr(a+1)),n){if(o[n]&&t.indexOf(n)>=0)return;o[n]="set-cookie"===n?(o[n]?o[n]:[]).concat([r]):o[n]?o[n]+", "+r:r}}),o):o}}function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin;hasRequiredIsURLSameOrigin=1;var e=utils$B;return isURLSameOrigin=e.isStandardBrowserEnv()?function(){var t,i=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var t=e;return i&&(n.setAttribute("href",t),t=n.href),n.setAttribute("href",t),{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(i){var n=e.isString(i)?r(i):i;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()}function requireCanceledError(){if(hasRequiredCanceledError)return CanceledError_1;hasRequiredCanceledError=1;var e=requireAxiosError();function t(t){e.call(this,null==t?"canceled":t,e.ERR_CANCELED),this.name="CanceledError"}return utils$B.inherits(t,e,{__CANCEL__:!0}),CanceledError_1=t}function requireParseProtocol(){return hasRequiredParseProtocol?parseProtocol:(hasRequiredParseProtocol=1,parseProtocol=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""})}function requireXhr(){if(hasRequiredXhr)return xhr$1;hasRequiredXhr=1;var e=utils$B,t=requireSettle(),i=requireCookies(),n=buildURL$1,r=buildFullPath$1,a=requireParseHeaders(),o=requireIsURLSameOrigin(),s=transitional,l=requireAxiosError(),c=requireCanceledError(),u=requireParseProtocol();return xhr$1=function(d){return new Promise(function(h,p){var m,f=d.data,g=d.headers,_=d.responseType;function v(){d.cancelToken&&d.cancelToken.unsubscribe(m),d.signal&&d.signal.removeEventListener("abort",m)}e.isFormData(f)&&e.isStandardBrowserEnv()&&delete g["Content-Type"];var y=new XMLHttpRequest;if(d.auth){var b=d.auth.username||"",S=d.auth.password?unescape(encodeURIComponent(d.auth.password)):"";g.Authorization="Basic "+btoa(b+":"+S)}var E=r(d.baseURL,d.url);function w(){if(y){var e="getAllResponseHeaders"in y?a(y.getAllResponseHeaders()):null,i={data:_&&"text"!==_&&"json"!==_?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:e,config:d,request:y};t(function(e){h(e),v()},function(e){p(e),v()},i),y=null}}if(y.open(d.method.toUpperCase(),n(E,d.params,d.paramsSerializer),!0),y.timeout=d.timeout,"onloadend"in y?y.onloadend=w:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(w)},y.onabort=function(){y&&(p(new l("Request aborted",l.ECONNABORTED,d,y)),y=null)},y.onerror=function(){p(new l("Network Error",l.ERR_NETWORK,d,y,y)),y=null},y.ontimeout=function(){var e=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",t=d.transitional||s;d.timeoutErrorMessage&&(e=d.timeoutErrorMessage),p(new l(e,t.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,d,y)),y=null},e.isStandardBrowserEnv()){var C=(d.withCredentials||o(E))&&d.xsrfCookieName?i.read(d.xsrfCookieName):void 0;C&&(g[d.xsrfHeaderName]=C)}"setRequestHeader"in y&&e.forEach(g,function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete g[t]:y.setRequestHeader(t,e)}),e.isUndefined(d.withCredentials)||(y.withCredentials=!!d.withCredentials),_&&"json"!==_&&(y.responseType=d.responseType),"function"==typeof d.onDownloadProgress&&y.addEventListener("progress",d.onDownloadProgress),"function"==typeof d.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",d.onUploadProgress),(d.cancelToken||d.signal)&&(m=function(e){y&&(p(!e||e&&e.type?new c:e),y.abort(),y=null)},d.cancelToken&&d.cancelToken.subscribe(m),d.signal&&(d.signal.aborted?m():d.signal.addEventListener("abort",m))),f||(f=null);var T=u(E);T&&-1===["http","https","file"].indexOf(T)?p(new l("Unsupported protocol "+T+":",l.ERR_BAD_REQUEST,d)):y.send(f)})}}function require_null(){return hasRequired_null?_null:(hasRequired_null=1,_null=null)}var utils$x=utils$B,normalizeHeaderName=normalizeHeaderName$1,AxiosError$1=requireAxiosError(),transitionalDefaults=transitional,toFormData=requireToFormData(),DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){!utils$x.isUndefined(e)&&utils$x.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function getDefaultAdapter(){var e;return("undefined"!=typeof XMLHttpRequest||void 0!==process$1&&"[object process]"===Object.prototype.toString.call(process$1))&&(e=requireXhr()),e}function stringifySafely(e,t,i){if(utils$x.isString(e))try{return(t||JSON.parse)(e),utils$x.trim(e)}catch(n){if("SyntaxError"!==n.name)throw n}return(i||JSON.stringify)(e)}var defaults$4={transitional:transitionalDefaults,adapter:getDefaultAdapter(),transformRequest:[function(e,t){if(normalizeHeaderName(t,"Accept"),normalizeHeaderName(t,"Content-Type"),utils$x.isFormData(e)||utils$x.isArrayBuffer(e)||utils$x.isBuffer(e)||utils$x.isStream(e)||utils$x.isFile(e)||utils$x.isBlob(e))return e;if(utils$x.isArrayBufferView(e))return e.buffer;if(utils$x.isURLSearchParams(e))return setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var i,n=utils$x.isObject(e),r=t&&t["Content-Type"];if((i=utils$x.isFileList(e))||n&&"multipart/form-data"===r){var a=this.env&&this.env.FormData;return toFormData(i?{"files[]":e}:e,a&&new a)}return n||"application/json"===r?(setContentTypeIfUnset(t,"application/json"),stringifySafely(e)):e}],transformResponse:[function(e){var t=this.transitional||defaults$4.transitional,i=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,r=!i&&"json"===this.responseType;if(r||n&&utils$x.isString(e)&&e.length)try{return JSON.parse(e)}catch(a){if(r){if("SyntaxError"===a.name)throw AxiosError$1.from(a,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response);throw a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:require_null()},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils$x.forEach(["delete","get","head"],function(e){defaults$4.headers[e]={}}),utils$x.forEach(["post","put","patch"],function(e){defaults$4.headers[e]=utils$x.merge(DEFAULT_CONTENT_TYPE)});var defaults_1=defaults$4,utils$w=utils$B,defaults$3=defaults_1,transformData$1=function(e,t,i){var n=this||defaults$3;return utils$w.forEach(i,function(i){e=i.call(n,e,t)}),e},isCancel$1,hasRequiredIsCancel;function requireIsCancel(){return hasRequiredIsCancel?isCancel$1:(hasRequiredIsCancel=1,isCancel$1=function(e){return!(!e||!e.__CANCEL__)})}var utils$v=utils$B,transformData=transformData$1,isCancel=requireIsCancel(),defaults$2=defaults_1,CanceledError=requireCanceledError();function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError}var dispatchRequest$1=function(e){return throwIfCancellationRequested(e),e.headers=e.headers||{},e.data=transformData.call(e,e.data,e.headers,e.transformRequest),e.headers=utils$v.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),utils$v.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||defaults$2.adapter)(e).then(function(t){return throwIfCancellationRequested(e),t.data=transformData.call(e,t.data,t.headers,e.transformResponse),t},function(t){return isCancel(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=transformData.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})},utils$u=utils$B,mergeConfig$3=function(e,t){t=t||{};var i={};function n(e,t){return utils$u.isPlainObject(e)&&utils$u.isPlainObject(t)?utils$u.merge(e,t):utils$u.isPlainObject(t)?utils$u.merge({},t):utils$u.isArray(t)?t.slice():t}function r(i){return utils$u.isUndefined(t[i])?utils$u.isUndefined(e[i])?void 0:n(void 0,e[i]):n(e[i],t[i])}function a(e){if(!utils$u.isUndefined(t[e]))return n(void 0,t[e])}function o(i){return utils$u.isUndefined(t[i])?utils$u.isUndefined(e[i])?void 0:n(void 0,e[i]):n(void 0,t[i])}function s(i){return i in t?n(e[i],t[i]):i in e?n(void 0,e[i]):void 0}var l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s};return utils$u.forEach(Object.keys(e).concat(Object.keys(t)),function(e){var t=l[e]||r,n=t(e);utils$u.isUndefined(n)&&t!==s||(i[e]=n)}),i};const mergeConfig$2=getDefaultExportFromCjs$1(mergeConfig$3);var data,hasRequiredData;function requireData(){return hasRequiredData?data:(hasRequiredData=1,data={version:"0.27.2"})}var VERSION=requireData().version,AxiosError=requireAxiosError(),validators$1={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){validators$1[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});var deprecatedWarnings={};function assertOptions(e,t,i){if("object"!=typeof e)throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),r=n.length;r-- >0;){var a=n[r],o=t[a];if(o){var s=e[a],l=void 0===s||o(s,a,e);if(!0!==l)throw new AxiosError("option "+a+" must be "+l,AxiosError.ERR_BAD_OPTION_VALUE)}else if(!0!==i)throw new AxiosError("Unknown option "+a,AxiosError.ERR_BAD_OPTION)}}validators$1.transitional=function(e,t,i){function n(e,t){return"[Axios v"+VERSION+"] Transitional option '"+e+"'"+t+(i?". "+i:"")}return function(i,r,a){if(!1===e)throw new AxiosError(n(r," has been removed"+(t?" in "+t:"")),AxiosError.ERR_DEPRECATED);return t&&!deprecatedWarnings[r]&&(deprecatedWarnings[r]=!0,console.warn(n(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(i,r,a)}};var validator$1={assertOptions:assertOptions,validators:validators$1},utils$t=utils$B,buildURL=buildURL$1,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$1=mergeConfig$3,buildFullPath=buildFullPath$1,validator=validator$1,validators=validator.validators;function Axios$1(e){this.defaults=e,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=mergeConfig$1(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var i=t.transitional;void 0!==i&&validator.assertOptions(i,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,n.unshift(e.fulfilled,e.rejected))});var a,o=[];if(this.interceptors.response.forEach(function(e){o.push(e.fulfilled,e.rejected)}),!r){var s=[dispatchRequest,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(o),a=Promise.resolve(t);s.length;)a=a.then(s.shift(),s.shift());return a}for(var l=t;n.length;){var c=n.shift(),u=n.shift();try{l=c(l)}catch(d){u(d);break}}try{a=dispatchRequest(l)}catch(d){return Promise.reject(d)}for(;o.length;)a=a.then(o.shift(),o.shift());return a},Axios$1.prototype.getUri=function(e){e=mergeConfig$1(this.defaults,e);var t=buildFullPath(e.baseURL,e.url);return buildURL(t,e.params,e.paramsSerializer)},utils$t.forEach(["delete","get","head","options"],function(e){Axios$1.prototype[e]=function(t,i){return this.request(mergeConfig$1(i||{},{method:e,url:t,data:(i||{}).data}))}}),utils$t.forEach(["post","put","patch"],function(e){function t(t){return function(i,n,r){return this.request(mergeConfig$1(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}Axios$1.prototype[e]=t(),Axios$1.prototype[e+"Form"]=t(!0)});var Axios_1=Axios$1,CancelToken_1,hasRequiredCancelToken,spread,hasRequiredSpread,isAxiosError,hasRequiredIsAxiosError;function requireCancelToken(){if(hasRequiredCancelToken)return CancelToken_1;hasRequiredCancelToken=1;var e=requireCanceledError();function t(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var i;this.promise=new Promise(function(e){i=e});var n=this;this.promise.then(function(e){if(n._listeners){var t,i=n._listeners.length;for(t=0;t<i;t++)n._listeners[t](e);n._listeners=null}}),this.promise.then=function(e){var t,i=new Promise(function(e){n.subscribe(e),t=e}).then(e);return i.cancel=function(){n.unsubscribe(t)},i},t(function(t){n.reason||(n.reason=new e(t),i(n.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},t.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},t.source=function(){var e;return{token:new t(function(t){e=t}),cancel:e}},CancelToken_1=t}function requireSpread(){return hasRequiredSpread?spread:(hasRequiredSpread=1,spread=function(e){return function(t){return e.apply(null,t)}})}function requireIsAxiosError(){if(hasRequiredIsAxiosError)return isAxiosError;hasRequiredIsAxiosError=1;var e=utils$B;return isAxiosError=function(t){return e.isObject(t)&&!0===t.isAxiosError}}var utils$s=utils$B,bind$5=bind$7,Axios=Axios_1,mergeConfig=mergeConfig$3,defaults$1=defaults_1;function createInstance$1(e){var t=new Axios(e),i=bind$5(Axios.prototype.request,t);return utils$s.extend(i,Axios.prototype,t),utils$s.extend(i,t),i.create=function(t){return createInstance$1(mergeConfig(e,t))},i}var axios$3=createInstance$1(defaults$1);axios$3.Axios=Axios,axios$3.CanceledError=requireCanceledError(),axios$3.CancelToken=requireCancelToken(),axios$3.isCancel=requireIsCancel(),axios$3.VERSION=requireData().version,axios$3.toFormData=requireToFormData(),axios$3.AxiosError=requireAxiosError(),axios$3.Cancel=axios$3.CanceledError,axios$3.all=function(e){return Promise.all(e)},axios$3.spread=requireSpread(),axios$3.isAxiosError=requireIsAxiosError(),axios$4.exports=axios$3,axios$4.exports.default=axios$3;var axiosExports=axios$4.exports,axios$2=axiosExports;const axios$1=getDefaultExportFromCjs$1(axios$2),axiosManuel=Object.freeze(Object.defineProperty({__proto__:null,default:axios$1},Symbol.toStringTag,{value:"Module"})),DEFAULT_CDNURL="";let globalConfig={cdnurl:DEFAULT_CDNURL};const trimTrailingSlash=e=>String(e||"").replace(/\/+$/,""),getCDNURL=(e=DEFAULT_CDNURL)=>{const t=trimTrailingSlash(globalConfig.cdnurl);return t&&t!==DEFAULT_CDNURL?t:trimTrailingSlash(e)};function setConfig(e){e&&e.cdnurl&&(globalConfig.cdnurl=trimTrailingSlash(e.cdnurl))}function getConfig(){return{...globalConfig}}function getDefaultConfig(e={}){const t=trimTrailingSlash(e.cdnurl||globalConfig.cdnurl);return{get sitePath(){return`${getCDNURL(t)}/`},get themePath(){return`${getCDNURL(t)}/config/`},siteLogo:"site/logo",timeOut:3e4,getFeeType:"",noticeRefresh:15e3,baseLanguage:"en_US",cmsAcademyMediaShow:!0,notNeedLoginRoute:["home","trade","market-home","trade-home"],...e}}const conf$1=getDefaultConfig();
41
+ !function(e){const t=base64Js,i=ieee754,n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},e.INSPECT_MAX_BYTES=50;const r=2147483647;e.kMaxLength=r;const{Uint8Array:a,ArrayBuffer:o,SharedArrayBuffer:s}=globalThis;function l(e){if(e>r)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new a(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,i){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return h(e)}return u(e,t,i)}function u(e,t,i){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const i=0|g(e,t);let n=l(i);const r=n.write(e,t);r!==i&&(n=n.slice(0,r));return n}(e,t);if(o.isView(e))return function(e){if(K(e,a)){const t=new a(e);return m(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,o)||e&&K(e.buffer,o))return m(e,t,i);if(void 0!==s&&(K(e,s)||e&&K(e.buffer,s)))return m(e,t,i);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,i);const r=function(e){if(c.isBuffer(e)){const t=0|f(e.length),i=l(t);return 0===i.length||e.copy(i,0,0,t),i}if(void 0!==e.length)return"number"!=typeof e.length||Q(e.length)?l(0):p(e);if("Buffer"===e.type&&Array.isArray(e.data))return p(e.data)}(e);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function h(e){return d(e),l(e<0?0:0|f(e))}function p(e){const t=e.length<0?0:0|f(e.length),i=l(t);for(let n=0;n<t;n+=1)i[n]=255&e[n];return i}function m(e,t,i){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(i||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===i?new a(e):void 0===i?new a(e,t):new a(e,t,i),Object.setPrototypeOf(n,c.prototype),n}function f(e){if(e>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function g(e,t){if(c.isBuffer(e))return e.length;if(o.isView(e)||K(e,o))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const i=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===i)return 0;let r=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return J(e).length;default:if(r)return n?-1:j(e).length;t=(""+t).toLowerCase(),r=!0}}function _(e,t,i){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return k(this,t,i);case"utf8":case"utf-8":return x(this,t,i);case"ascii":return R(this,t,i);case"latin1":case"binary":return I(this,t,i);case"base64":return A(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,i);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,i){const n=e[t];e[t]=e[i],e[i]=n}function y(e,t,i,n,r){if(0===e.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),Q(i=+i)&&(i=r?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(r)return-1;i=e.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:b(e,t,i,n,r);if("number"==typeof t)return t&=255,"function"==typeof a.prototype.indexOf?r?a.prototype.indexOf.call(e,t,i):a.prototype.lastIndexOf.call(e,t,i):b(e,[t],i,n,r);throw new TypeError("val must be string, number or Buffer")}function b(e,t,i,n,r){let a,o=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,i/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(r){let n=-1;for(a=i;a<s;a++)if(c(e,a)===c(t,-1===n?0:a-n)){if(-1===n&&(n=a),a-n+1===l)return n*o}else-1!==n&&(a-=a-n),n=-1}else for(i+l>s&&(i=s-l),a=i;a>=0;a--){let i=!0;for(let n=0;n<l;n++)if(c(e,a+n)!==c(t,n)){i=!1;break}if(i)return a}return-1}function S(e,t,i,n){i=Number(i)||0;const r=e.length-i;n?(n=Number(n))>r&&(n=r):n=r;const a=t.length;let o;for(n>a/2&&(n=a/2),o=0;o<n;++o){const n=parseInt(t.substr(2*o,2),16);if(Q(n))return o;e[i+o]=n}return o}function E(e,t,i,n){return W(j(t,e.length-i),e,i,n)}function w(e,t,i,n){return W(function(e){const t=[];for(let i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,i,n)}function C(e,t,i,n){return W(J(t),e,i,n)}function T(e,t,i,n){return W(function(e,t){let i,n,r;const a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)i=e.charCodeAt(o),n=i>>8,r=i%256,a.push(r),a.push(n);return a}(t,e.length-i),e,i,n)}function A(e,i,n){return 0===i&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(i,n))}function x(e,t,i){i=Math.min(e.length,i);const n=[];let r=t;for(;r<i;){const t=e[r];let a=null,o=t>239?4:t>223?3:t>191?2:1;if(r+o<=i){let i,n,s,l;switch(o){case 1:t<128&&(a=t);break;case 2:i=e[r+1],128==(192&i)&&(l=(31&t)<<6|63&i,l>127&&(a=l));break;case 3:i=e[r+1],n=e[r+2],128==(192&i)&&128==(192&n)&&(l=(15&t)<<12|(63&i)<<6|63&n,l>2047&&(l<55296||l>57343)&&(a=l));break;case 4:i=e[r+1],n=e[r+2],s=e[r+3],128==(192&i)&&128==(192&n)&&128==(192&s)&&(l=(15&t)<<18|(63&i)<<12|(63&n)<<6|63&s,l>65535&&l<1114112&&(a=l))}}null===a?(a=65533,o=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),r+=o}return function(e){const t=e.length;if(t<=M)return String.fromCharCode.apply(String,e);let i="",n=0;for(;n<t;)i+=String.fromCharCode.apply(String,e.slice(n,n+=M));return i}(n)}c.TYPED_ARRAY_SUPPORT=function(){try{const e=new a(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,a.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,i){return u(e,t,i)},Object.setPrototypeOf(c.prototype,a.prototype),Object.setPrototypeOf(c,a),c.alloc=function(e,t,i){return function(e,t,i){return d(e),e<=0?l(e):void 0!==t?"string"==typeof i?l(e).fill(t,i):l(e).fill(t):l(e)}(e,t,i)},c.allocUnsafe=function(e){return h(e)},c.allocUnsafeSlow=function(e){return h(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(K(e,a)&&(e=c.from(e,e.offset,e.byteLength)),K(t,a)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let i=e.length,n=t.length;for(let r=0,a=Math.min(i,n);r<a;++r)if(e[r]!==t[r]){i=e[r],n=t[r];break}return i<n?-1:n<i?1:0},c.isEncoding=function(e){switch(String(e).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}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;const n=c.allocUnsafe(t);let r=0;for(i=0;i<e.length;++i){let t=e[i];if(K(t,a))r+t.length>n.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(n,r)):a.prototype.set.call(n,t,r);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,r)}r+=t.length}return n},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)v(this,t,t+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?x(this,0,e):_.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let t="";const i=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(t+=" ... "),"<Buffer "+t+">"},n&&(c.prototype[n]=c.prototype.inspect),c.prototype.compare=function(e,t,i,n,r){if(K(e,a)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),t<0||i>e.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&t>=i)return 0;if(n>=r)return-1;if(t>=i)return 1;if(this===e)return 0;let o=(r>>>=0)-(n>>>=0),s=(i>>>=0)-(t>>>=0);const l=Math.min(o,s),u=this.slice(n,r),d=e.slice(t,i);for(let a=0;a<l;++a)if(u[a]!==d[a]){o=u[a],s=d[a];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},c.prototype.indexOf=function(e,t,i){return y(this,e,t,i,!0)},c.prototype.lastIndexOf=function(e,t,i){return y(this,e,t,i,!1)},c.prototype.write=function(e,t,i,n){if(void 0===t)n="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)n=t,i=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(i)?(i>>>=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}const r=this.length-t;if((void 0===i||i>r)&&(i=r),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let a=!1;for(;;)switch(n){case"hex":return S(this,e,t,i);case"utf8":case"utf-8":return E(this,e,t,i);case"ascii":case"latin1":case"binary":return w(this,e,t,i);case"base64":return C(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,i);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const M=4096;function R(e,t,i){let n="";i=Math.min(e.length,i);for(let r=t;r<i;++r)n+=String.fromCharCode(127&e[r]);return n}function I(e,t,i){let n="";i=Math.min(e.length,i);for(let r=t;r<i;++r)n+=String.fromCharCode(e[r]);return n}function k(e,t,i){const n=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>n)&&(i=n);let r="";for(let a=t;a<i;++a)r+=Z[e[a]];return r}function N(e,t,i){const n=e.slice(t,i);let r="";for(let a=0;a<n.length-1;a+=2)r+=String.fromCharCode(n[a]+256*n[a+1]);return r}function O(e,t,i){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>i)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,i,n,r,a){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<a)throw new RangeError('"value" argument is out of bounds');if(i+n>e.length)throw new RangeError("Index out of range")}function L(e,t,i,n,r){z(t,n,r,e,i,7);let a=Number(t&BigInt(4294967295));e[i++]=a,a>>=8,e[i++]=a,a>>=8,e[i++]=a,a>>=8,e[i++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[i++]=o,o>>=8,e[i++]=o,o>>=8,e[i++]=o,o>>=8,e[i++]=o,i}function P(e,t,i,n,r){z(t,n,r,e,i,7);let a=Number(t&BigInt(4294967295));e[i+7]=a,a>>=8,e[i+6]=a,a>>=8,e[i+5]=a,a>>=8,e[i+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[i+3]=o,o>>=8,e[i+2]=o,o>>=8,e[i+1]=o,o>>=8,e[i]=o,i+8}function B(e,t,i,n,r,a){if(i+n>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function F(e,t,n,r,a){return t=+t,n>>>=0,a||B(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function $(e,t,n,r,a){return t=+t,n>>>=0,a||B(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){const i=this.length;(e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,c.prototype),n},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,i){e>>>=0,t>>>=0,i||O(e,t,this.length);let n=this[e],r=1,a=0;for(;++a<t&&(r*=256);)n+=this[e+a]*r;return n},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,i){e>>>=0,t>>>=0,i||O(e,t,this.length);let n=this[e+--t],r=1;for(;t>0&&(r*=256);)n+=this[e+--t]*r;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=X(function(e){H(e>>>=0,"offset");const t=this[e],i=this[e+7];void 0!==t&&void 0!==i||q(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,r=this[++e]+256*this[++e]+65536*this[++e]+i*2**24;return BigInt(n)+(BigInt(r)<<BigInt(32))}),c.prototype.readBigUInt64BE=X(function(e){H(e>>>=0,"offset");const t=this[e],i=this[e+7];void 0!==t&&void 0!==i||q(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],r=this[++e]*2**24+65536*this[++e]+256*this[++e]+i;return(BigInt(n)<<BigInt(32))+BigInt(r)}),c.prototype.readIntLE=function(e,t,i){e>>>=0,t>>>=0,i||O(e,t,this.length);let n=this[e],r=1,a=0;for(;++a<t&&(r*=256);)n+=this[e+a]*r;return r*=128,n>=r&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,i){e>>>=0,t>>>=0,i||O(e,t,this.length);let n=t,r=1,a=this[e+--n];for(;n>0&&(r*=256);)a+=this[e+--n]*r;return r*=128,a>=r&&(a-=Math.pow(2,8*t)),a},c.prototype.readInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||O(e,2,this.length);const i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt16BE=function(e,t){e>>>=0,t||O(e,2,this.length);const i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=X(function(e){H(e>>>=0,"offset");const t=this[e],i=this[e+7];void 0!==t&&void 0!==i||q(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(i<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),c.prototype.readBigInt64BE=X(function(e){H(e>>>=0,"offset");const t=this[e],i=this[e+7];void 0!==t&&void 0!==i||q(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+i)}),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||O(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||O(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||O(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||O(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,i,n){if(e=+e,t>>>=0,i>>>=0,!n){D(this,e,t,i,Math.pow(2,8*i)-1,0)}let r=1,a=0;for(this[t]=255&e;++a<i&&(r*=256);)this[t+a]=e/r&255;return t+i},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,i,n){if(e=+e,t>>>=0,i>>>=0,!n){D(this,e,t,i,Math.pow(2,8*i)-1,0)}let r=i-1,a=1;for(this[t+r]=255&e;--r>=0&&(a*=256);)this[t+r]=e/a&255;return t+i},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=X(function(e,t=0){return L(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=X(function(e,t=0){return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(e,t,i,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*i-1);D(this,e,t,i,n-1,-n)}let r=0,a=1,o=0;for(this[t]=255&e;++r<i&&(a*=256);)e<0&&0===o&&0!==this[t+r-1]&&(o=1),this[t+r]=(e/a|0)-o&255;return t+i},c.prototype.writeIntBE=function(e,t,i,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*i-1);D(this,e,t,i,n-1,-n)}let r=i-1,a=1,o=0;for(this[t+r]=255&e;--r>=0&&(a*=256);)e<0&&0===o&&0!==this[t+r+1]&&(o=1),this[t+r]=(e/a|0)-o&255;return t+i},c.prototype.writeInt8=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=X(function(e,t=0){return L(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=X(function(e,t=0){return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(e,t,i){return F(this,e,t,!0,i)},c.prototype.writeFloatBE=function(e,t,i){return F(this,e,t,!1,i)},c.prototype.writeDoubleLE=function(e,t,i){return $(this,e,t,!0,i)},c.prototype.writeDoubleBE=function(e,t,i){return $(this,e,t,!1,i)},c.prototype.copy=function(e,t,i,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(i||(i=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<i&&(n=i),n===i)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-i&&(n=e.length-t+i);const r=n-i;return this===e&&"function"==typeof a.prototype.copyWithin?this.copyWithin(t,i,n):a.prototype.set.call(e,this.subarray(i,n),t),r},c.prototype.fill=function(e,t,i,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,i=this.length):"string"==typeof i&&(n=i,i=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;let r;if(t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(r=t;r<i;++r)this[r]=e;else{const a=c.isBuffer(e)?e:c.from(e,n),o=a.length;if(0===o)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(r=0;r<i-t;++r)this[r+t]=a[r%o]}return this};const U={};function G(e,t,i){U[e]=class extends i{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function Y(e){let t="",i=e.length;const n="-"===e[0]?1:0;for(;i>=n+4;i-=3)t=`_${e.slice(i-3,i)}${t}`;return`${e.slice(0,i)}${t}`}function z(e,t,i,n,r,a){if(e>i||e<t){const i="bigint"==typeof t?"n":"";let n;throw n=0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${8*(a+1)}${i}`:`>= -(2${i} ** ${8*(a+1)-1}${i}) and < 2 ** ${8*(a+1)-1}${i}`,new U.ERR_OUT_OF_RANGE("value",n,e)}!function(e,t,i){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+i]||q(t,e.length-(i+1))}(n,r,a)}function H(e,t){if("number"!=typeof e)throw new U.ERR_INVALID_ARG_TYPE(t,"number",e)}function q(e,t,i){if(Math.floor(e)!==e)throw H(e,i),new U.ERR_OUT_OF_RANGE("offset","an integer",e);if(t<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}G("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),G("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),G("ERR_OUT_OF_RANGE",function(e,t,i){let n=`The value of "${e}" is out of range.`,r=i;return Number.isInteger(i)&&Math.abs(i)>2**32?r=Y(String(i)):"bigint"==typeof i&&(r=String(i),(i>BigInt(2)**BigInt(32)||i<-(BigInt(2)**BigInt(32)))&&(r=Y(r)),r+="n"),n+=` It must be ${t}. Received ${r}`,n},RangeError);const V=/[^+/0-9A-Za-z-_]/g;function j(e,t){let i;t=t||1/0;const n=e.length;let r=null;const a=[];for(let o=0;o<n;++o){if(i=e.charCodeAt(o),i>55295&&i<57344){if(!r){if(i>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}r=i;continue}if(i<56320){(t-=3)>-1&&a.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(t-=3)>-1&&a.push(239,191,189);if(r=null,i<128){if((t-=1)<0)break;a.push(i)}else if(i<2048){if((t-=2)<0)break;a.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;a.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return a}function J(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function W(e,t,i,n){let r;for(r=0;r<n&&!(r+i>=t.length||r>=e.length);++r)t[r+i]=e[r];return r}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Q(e){return e!=e}const Z=function(){const e="0123456789abcdef",t=new Array(256);for(let i=0;i<16;++i){const n=16*i;for(let r=0;r<16;++r)t[n+r]=e[i]+e[r]}return t}();function X(e){return"undefined"==typeof BigInt?ee:e}function ee(){throw new Error("BigInt not supported")}}(buffer$1);const Buffer$F=buffer$1.Buffer,Blob$1=buffer$1.Blob,BlobOptions=buffer$1.BlobOptions,Buffer$1$1=buffer$1.Buffer,File=buffer$1.File,FileOptions=buffer$1.FileOptions,INSPECT_MAX_BYTES=buffer$1.INSPECT_MAX_BYTES,SlowBuffer=buffer$1.SlowBuffer,TranscodeEncoding=buffer$1.TranscodeEncoding,atob$1=buffer$1.atob,btoa$1=buffer$1.btoa,constants$3=buffer$1.constants,isAscii=buffer$1.isAscii,isUtf8=buffer$1.isUtf8,kMaxLength=buffer$1.kMaxLength,kStringMaxLength=buffer$1.kStringMaxLength,resolveObjectURL=buffer$1.resolveObjectURL,transcode=buffer$1.transcode,dist$2=Object.freeze(Object.defineProperty({__proto__:null,Blob:Blob$1,BlobOptions:BlobOptions,Buffer:Buffer$1$1,File:File,FileOptions:FileOptions,INSPECT_MAX_BYTES:INSPECT_MAX_BYTES,SlowBuffer:SlowBuffer,TranscodeEncoding:TranscodeEncoding,atob:atob$1,btoa:btoa$1,constants:constants$3,default:Buffer$F,isAscii:isAscii,isUtf8:isUtf8,kMaxLength:kMaxLength,kStringMaxLength:kStringMaxLength,resolveObjectURL:resolveObjectURL,transcode:transcode},Symbol.toStringTag,{value:"Module"}));var utils$y=utils$D;function toFormData$1(e,t){t=t||new FormData;var i=[];function n(e){return null===e?"":utils$y.isDate(e)?e.toISOString():utils$y.isArrayBuffer(e)||utils$y.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer$F.from(e):e}return function e(r,a){if(utils$y.isPlainObject(r)||utils$y.isArray(r)){if(-1!==i.indexOf(r))throw Error("Circular reference detected in "+a);i.push(r),utils$y.forEach(r,function(i,r){if(!utils$y.isUndefined(i)){var o,s=a?a+"."+r:r;if(i&&!a&&"object"==typeof i)if(utils$y.endsWith(r,"{}"))i=JSON.stringify(i);else if(utils$y.endsWith(r,"[]")&&(o=utils$y.toArray(i)))return void o.forEach(function(e){!utils$y.isUndefined(e)&&t.append(s,n(e))});e(i,s)}}),i.pop()}else t.append(a,n(r))}(e),t}var toFormData_1=toFormData$1,settle,hasRequiredSettle,cookies,hasRequiredCookies;function requireSettle(){if(hasRequiredSettle)return settle;hasRequiredSettle=1;var e=AxiosError_1;return settle=function(t,i,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?i(new e("Request failed with status code "+n.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}}function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;var e=utils$D;return cookies=e.isStandardBrowserEnv()?function(){return{write:function(t,i,n,r,a,o){var s=[];s.push(t+"="+encodeURIComponent(i)),e.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),e.isString(r)&&s.push("path="+r),e.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()}var isAbsoluteURL$1=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},combineURLs$1=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},isAbsoluteURL=isAbsoluteURL$1,combineURLs=combineURLs$1,buildFullPath$1=function(e,t){return e&&!isAbsoluteURL(t)?combineURLs(e,t):t},parseHeaders,hasRequiredParseHeaders,isURLSameOrigin,hasRequiredIsURLSameOrigin,CanceledError_1,hasRequiredCanceledError,parseProtocol,hasRequiredParseProtocol,xhr$1,hasRequiredXhr,_null,hasRequired_null;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders;hasRequiredParseHeaders=1;var e=utils$D,t=["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"];return parseHeaders=function(i){var n,r,a,o={};return i?(e.forEach(i.split("\n"),function(i){if(a=i.indexOf(":"),n=e.trim(i.substr(0,a)).toLowerCase(),r=e.trim(i.substr(a+1)),n){if(o[n]&&t.indexOf(n)>=0)return;o[n]="set-cookie"===n?(o[n]?o[n]:[]).concat([r]):o[n]?o[n]+", "+r:r}}),o):o}}function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin;hasRequiredIsURLSameOrigin=1;var e=utils$D;return isURLSameOrigin=e.isStandardBrowserEnv()?function(){var t,i=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var t=e;return i&&(n.setAttribute("href",t),t=n.href),n.setAttribute("href",t),{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(i){var n=e.isString(i)?r(i):i;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()}function requireCanceledError(){if(hasRequiredCanceledError)return CanceledError_1;hasRequiredCanceledError=1;var e=AxiosError_1;function t(t){e.call(this,null==t?"canceled":t,e.ERR_CANCELED),this.name="CanceledError"}return utils$D.inherits(t,e,{__CANCEL__:!0}),CanceledError_1=t}function requireParseProtocol(){return hasRequiredParseProtocol?parseProtocol:(hasRequiredParseProtocol=1,parseProtocol=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""})}function requireXhr(){if(hasRequiredXhr)return xhr$1;hasRequiredXhr=1;var e=utils$D,t=requireSettle(),i=requireCookies(),n=buildURL$1,r=buildFullPath$1,a=requireParseHeaders(),o=requireIsURLSameOrigin(),s=transitional,l=AxiosError_1,c=requireCanceledError(),u=requireParseProtocol();return xhr$1=function(d){return new Promise(function(h,p){var m,f=d.data,g=d.headers,_=d.responseType;function v(){d.cancelToken&&d.cancelToken.unsubscribe(m),d.signal&&d.signal.removeEventListener("abort",m)}e.isFormData(f)&&e.isStandardBrowserEnv()&&delete g["Content-Type"];var y=new XMLHttpRequest;if(d.auth){var b=d.auth.username||"",S=d.auth.password?unescape(encodeURIComponent(d.auth.password)):"";g.Authorization="Basic "+btoa(b+":"+S)}var E=r(d.baseURL,d.url);function w(){if(y){var e="getAllResponseHeaders"in y?a(y.getAllResponseHeaders()):null,i={data:_&&"text"!==_&&"json"!==_?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:e,config:d,request:y};t(function(e){h(e),v()},function(e){p(e),v()},i),y=null}}if(y.open(d.method.toUpperCase(),n(E,d.params,d.paramsSerializer),!0),y.timeout=d.timeout,"onloadend"in y?y.onloadend=w:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(w)},y.onabort=function(){y&&(p(new l("Request aborted",l.ECONNABORTED,d,y)),y=null)},y.onerror=function(){p(new l("Network Error",l.ERR_NETWORK,d,y,y)),y=null},y.ontimeout=function(){var e=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",t=d.transitional||s;d.timeoutErrorMessage&&(e=d.timeoutErrorMessage),p(new l(e,t.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,d,y)),y=null},e.isStandardBrowserEnv()){var C=(d.withCredentials||o(E))&&d.xsrfCookieName?i.read(d.xsrfCookieName):void 0;C&&(g[d.xsrfHeaderName]=C)}"setRequestHeader"in y&&e.forEach(g,function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete g[t]:y.setRequestHeader(t,e)}),e.isUndefined(d.withCredentials)||(y.withCredentials=!!d.withCredentials),_&&"json"!==_&&(y.responseType=d.responseType),"function"==typeof d.onDownloadProgress&&y.addEventListener("progress",d.onDownloadProgress),"function"==typeof d.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",d.onUploadProgress),(d.cancelToken||d.signal)&&(m=function(e){y&&(p(!e||e&&e.type?new c:e),y.abort(),y=null)},d.cancelToken&&d.cancelToken.subscribe(m),d.signal&&(d.signal.aborted?m():d.signal.addEventListener("abort",m))),f||(f=null);var T=u(E);T&&-1===["http","https","file"].indexOf(T)?p(new l("Unsupported protocol "+T+":",l.ERR_BAD_REQUEST,d)):y.send(f)})}}function require_null(){return hasRequired_null?_null:(hasRequired_null=1,_null=null)}var utils$x=utils$D,normalizeHeaderName=normalizeHeaderName$1,AxiosError$1=AxiosError_1,transitionalDefaults=transitional,toFormData=toFormData_1,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){!utils$x.isUndefined(e)&&utils$x.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function getDefaultAdapter(){var e;return("undefined"!=typeof XMLHttpRequest||void 0!==process$1&&"[object process]"===Object.prototype.toString.call(process$1))&&(e=requireXhr()),e}function stringifySafely(e,t,i){if(utils$x.isString(e))try{return(t||JSON.parse)(e),utils$x.trim(e)}catch(n){if("SyntaxError"!==n.name)throw n}return(i||JSON.stringify)(e)}var defaults$4={transitional:transitionalDefaults,adapter:getDefaultAdapter(),transformRequest:[function(e,t){if(normalizeHeaderName(t,"Accept"),normalizeHeaderName(t,"Content-Type"),utils$x.isFormData(e)||utils$x.isArrayBuffer(e)||utils$x.isBuffer(e)||utils$x.isStream(e)||utils$x.isFile(e)||utils$x.isBlob(e))return e;if(utils$x.isArrayBufferView(e))return e.buffer;if(utils$x.isURLSearchParams(e))return setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var i,n=utils$x.isObject(e),r=t&&t["Content-Type"];if((i=utils$x.isFileList(e))||n&&"multipart/form-data"===r){var a=this.env&&this.env.FormData;return toFormData(i?{"files[]":e}:e,a&&new a)}return n||"application/json"===r?(setContentTypeIfUnset(t,"application/json"),stringifySafely(e)):e}],transformResponse:[function(e){var t=this.transitional||defaults$4.transitional,i=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,r=!i&&"json"===this.responseType;if(r||n&&utils$x.isString(e)&&e.length)try{return JSON.parse(e)}catch(a){if(r){if("SyntaxError"===a.name)throw AxiosError$1.from(a,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response);throw a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:require_null()},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils$x.forEach(["delete","get","head"],function(e){defaults$4.headers[e]={}}),utils$x.forEach(["post","put","patch"],function(e){defaults$4.headers[e]=utils$x.merge(DEFAULT_CONTENT_TYPE)});var defaults_1=defaults$4,utils$w=utils$D,defaults$3=defaults_1,transformData$1=function(e,t,i){var n=this||defaults$3;return utils$w.forEach(i,function(i){e=i.call(n,e,t)}),e},isCancel$1,hasRequiredIsCancel;function requireIsCancel(){return hasRequiredIsCancel?isCancel$1:(hasRequiredIsCancel=1,isCancel$1=function(e){return!(!e||!e.__CANCEL__)})}var utils$v=utils$D,transformData=transformData$1,isCancel=requireIsCancel(),defaults$2=defaults_1,CanceledError=requireCanceledError();function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError}var dispatchRequest$1=function(e){return throwIfCancellationRequested(e),e.headers=e.headers||{},e.data=transformData.call(e,e.data,e.headers,e.transformRequest),e.headers=utils$v.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),utils$v.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||defaults$2.adapter)(e).then(function(t){return throwIfCancellationRequested(e),t.data=transformData.call(e,t.data,t.headers,e.transformResponse),t},function(t){return isCancel(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=transformData.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})},utils$u=utils$D,mergeConfig$3=function(e,t){t=t||{};var i={};function n(e,t){return utils$u.isPlainObject(e)&&utils$u.isPlainObject(t)?utils$u.merge(e,t):utils$u.isPlainObject(t)?utils$u.merge({},t):utils$u.isArray(t)?t.slice():t}function r(i){return utils$u.isUndefined(t[i])?utils$u.isUndefined(e[i])?void 0:n(void 0,e[i]):n(e[i],t[i])}function a(e){if(!utils$u.isUndefined(t[e]))return n(void 0,t[e])}function o(i){return utils$u.isUndefined(t[i])?utils$u.isUndefined(e[i])?void 0:n(void 0,e[i]):n(void 0,t[i])}function s(i){return i in t?n(e[i],t[i]):i in e?n(void 0,e[i]):void 0}var l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s};return utils$u.forEach(Object.keys(e).concat(Object.keys(t)),function(e){var t=l[e]||r,n=t(e);utils$u.isUndefined(n)&&t!==s||(i[e]=n)}),i};const mergeConfig$2=getDefaultExportFromCjs$1(mergeConfig$3);var data,hasRequiredData;function requireData(){return hasRequiredData?data:(hasRequiredData=1,data={version:"0.27.2"})}var VERSION=requireData().version,AxiosError=AxiosError_1,validators$1={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){validators$1[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});var deprecatedWarnings={};function assertOptions(e,t,i){if("object"!=typeof e)throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),r=n.length;r-- >0;){var a=n[r],o=t[a];if(o){var s=e[a],l=void 0===s||o(s,a,e);if(!0!==l)throw new AxiosError("option "+a+" must be "+l,AxiosError.ERR_BAD_OPTION_VALUE)}else if(!0!==i)throw new AxiosError("Unknown option "+a,AxiosError.ERR_BAD_OPTION)}}validators$1.transitional=function(e,t,i){function n(e,t){return"[Axios v"+VERSION+"] Transitional option '"+e+"'"+t+(i?". "+i:"")}return function(i,r,a){if(!1===e)throw new AxiosError(n(r," has been removed"+(t?" in "+t:"")),AxiosError.ERR_DEPRECATED);return t&&!deprecatedWarnings[r]&&(deprecatedWarnings[r]=!0,console.warn(n(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(i,r,a)}};var validator$1={assertOptions:assertOptions,validators:validators$1},utils$t=utils$D,buildURL=buildURL$1,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$1=mergeConfig$3,buildFullPath=buildFullPath$1,validator=validator$1,validators=validator.validators;function Axios$1(e){this.defaults=e,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=mergeConfig$1(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var i=t.transitional;void 0!==i&&validator.assertOptions(i,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,n.unshift(e.fulfilled,e.rejected))});var a,o=[];if(this.interceptors.response.forEach(function(e){o.push(e.fulfilled,e.rejected)}),!r){var s=[dispatchRequest,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(o),a=Promise.resolve(t);s.length;)a=a.then(s.shift(),s.shift());return a}for(var l=t;n.length;){var c=n.shift(),u=n.shift();try{l=c(l)}catch(d){u(d);break}}try{a=dispatchRequest(l)}catch(d){return Promise.reject(d)}for(;o.length;)a=a.then(o.shift(),o.shift());return a},Axios$1.prototype.getUri=function(e){e=mergeConfig$1(this.defaults,e);var t=buildFullPath(e.baseURL,e.url);return buildURL(t,e.params,e.paramsSerializer)},utils$t.forEach(["delete","get","head","options"],function(e){Axios$1.prototype[e]=function(t,i){return this.request(mergeConfig$1(i||{},{method:e,url:t,data:(i||{}).data}))}}),utils$t.forEach(["post","put","patch"],function(e){function t(t){return function(i,n,r){return this.request(mergeConfig$1(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}Axios$1.prototype[e]=t(),Axios$1.prototype[e+"Form"]=t(!0)});var Axios_1=Axios$1,CancelToken_1,hasRequiredCancelToken,spread,hasRequiredSpread,isAxiosError,hasRequiredIsAxiosError;function requireCancelToken(){if(hasRequiredCancelToken)return CancelToken_1;hasRequiredCancelToken=1;var e=requireCanceledError();function t(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var i;this.promise=new Promise(function(e){i=e});var n=this;this.promise.then(function(e){if(n._listeners){var t,i=n._listeners.length;for(t=0;t<i;t++)n._listeners[t](e);n._listeners=null}}),this.promise.then=function(e){var t,i=new Promise(function(e){n.subscribe(e),t=e}).then(e);return i.cancel=function(){n.unsubscribe(t)},i},t(function(t){n.reason||(n.reason=new e(t),i(n.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},t.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},t.source=function(){var e;return{token:new t(function(t){e=t}),cancel:e}},CancelToken_1=t}function requireSpread(){return hasRequiredSpread?spread:(hasRequiredSpread=1,spread=function(e){return function(t){return e.apply(null,t)}})}function requireIsAxiosError(){if(hasRequiredIsAxiosError)return isAxiosError;hasRequiredIsAxiosError=1;var e=utils$D;return isAxiosError=function(t){return e.isObject(t)&&!0===t.isAxiosError}}var utils$s=utils$D,bind$5=bind$7,Axios=Axios_1,mergeConfig=mergeConfig$3,defaults$1=defaults_1;function createInstance$1(e){var t=new Axios(e),i=bind$5(Axios.prototype.request,t);return utils$s.extend(i,Axios.prototype,t),utils$s.extend(i,t),i.create=function(t){return createInstance$1(mergeConfig(e,t))},i}var axios$3=createInstance$1(defaults$1);axios$3.Axios=Axios,axios$3.CanceledError=requireCanceledError(),axios$3.CancelToken=requireCancelToken(),axios$3.isCancel=requireIsCancel(),axios$3.VERSION=requireData().version,axios$3.toFormData=toFormData_1,axios$3.AxiosError=AxiosError_1,axios$3.Cancel=axios$3.CanceledError,axios$3.all=function(e){return Promise.all(e)},axios$3.spread=requireSpread(),axios$3.isAxiosError=requireIsAxiosError(),axios$4.exports=axios$3,axios$4.exports.default=axios$3;var axiosExports=axios$4.exports,axios$2=axiosExports;const axios$1=getDefaultExportFromCjs$1(axios$2),axiosManuel=Object.freeze(Object.defineProperty({__proto__:null,default:axios$1},Symbol.toStringTag,{value:"Module"})),DEFAULT_CDNURL="";let globalConfig={cdnurl:DEFAULT_CDNURL};const trimTrailingSlash=e=>String(e||"").replace(/\/+$/,""),getCDNURL=(e=DEFAULT_CDNURL)=>{const t=trimTrailingSlash(globalConfig.cdnurl);return t&&t!==DEFAULT_CDNURL?t:trimTrailingSlash(e)};function setConfig(e){e&&e.cdnurl&&(globalConfig.cdnurl=trimTrailingSlash(e.cdnurl))}function getConfig(){return{...globalConfig}}function getDefaultConfig(e={}){const t=trimTrailingSlash(e.cdnurl||globalConfig.cdnurl);return{get sitePath(){return`${getCDNURL(t)}/`},get themePath(){return`${getCDNURL(t)}/config/`},siteLogo:"site/logo",timeOut:3e4,getFeeType:"",noticeRefresh:15e3,baseLanguage:"en_US",cmsAcademyMediaShow:!0,notNeedLoginRoute:["home","trade","market-home","trade-home"],...e}}const conf$1=getDefaultConfig();
42
42
  /*! clipboard-copy. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var clipboardCopy_1=clipboardCopy;function makeError(){return new DOMException("The request is not allowed","NotAllowedError")}async function copyClipboardApi(e){if(!navigator.clipboard)throw makeError();return navigator.clipboard.writeText(e)}async function copyExecCommand(e){const t=document.createElement("span");t.textContent=e,t.style.whiteSpace="pre",t.style.webkitUserSelect="auto",t.style.userSelect="all",document.body.appendChild(t);const i=window.getSelection(),n=window.document.createRange();i.removeAllRanges(),n.selectNode(t),i.addRange(n);let r=!1;try{r=window.document.execCommand("copy")}finally{i.removeAllRanges(),window.document.body.removeChild(t)}if(!r)throw makeError()}async function clipboardCopy(e){try{await copyClipboardApi(e)}catch(t){try{await copyExecCommand(e)}catch(i){throw i||t||makeError()}}}const copy$2=getDefaultExportFromCjs$1(clipboardCopy_1);var bn$6={exports:{}};const require$$0$1=getAugmentedNamespace(dist$2);bn$6.exports,function(e,t){function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function r(e,t,i){if(r.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var a;"object"==typeof e?e.exports=r:t.BN=r,r.BN=r,r.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:require$$0$1.Buffer}catch(A){}function o(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void i(!1,"Invalid character in "+e)}function s(e,t,i){var n=o(e,i);return i-1>=t&&(n|=o(e,i-1)<<4),n}function l(e,t,n,r){for(var a=0,o=0,s=Math.min(e.length,n),l=t;l<s;l++){var c=e.charCodeAt(l)-48;a*=r,o=c>=49?c-49+10:c>=17?c-17+10:c,i(c>=0&&o<r,"Invalid character"),a+=o}return a}function c(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(r.isBN=function(e){return e instanceof r||null!==e&&"object"==typeof e&&e.constructor.wordSize===r.wordSize&&Array.isArray(e.words)},r.max=function(e,t){return e.cmp(t)>0?e:t},r.min=function(e,t){return e.cmp(t)<0?e:t},r.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r<e.length&&(16===t?this._parseHex(e,r,n):(this._parseBase(e,t,r),"le"===n&&this._initArray(this.toArray(),t,n)))},r.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},r.prototype._initArray=function(e,t,n){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var a,o,s=0;if("be"===n)for(r=e.length-1,a=0;r>=0;r-=3)o=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===n)for(r=0,a=0;r<e.length;r+=3)o=e[r]|e[r+1]<<8|e[r+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this._strip()},r.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,a=0,o=0;if("be"===i)for(n=e.length-1;n>=t;n-=2)r=s(e,t,n)<<a,this.words[o]|=67108863&r,a>=18?(a-=18,o+=1,this.words[o]|=r>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)r=s(e,t,n)<<a,this.words[o]|=67108863&r,a>=18?(a-=18,o+=1,this.words[o]|=r>>>26):a+=8;this._strip()},r.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=t)n++;n--,r=r/t|0;for(var a=e.length-i,o=a%n,s=Math.min(a,a-o)+i,c=0,u=i;u<s;u+=n)c=l(e,u,u+n,t),this.imuln(r),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){var d=1;for(c=l(e,u,e.length,t),u=0;u<o;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},r.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},r.prototype._move=function(e){c(e,this)},r.prototype.clone=function(){var e=new r(null);return this.copy(e),e},r.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},r.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{r.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(A){r.prototype.inspect=u}else r.prototype.inspect=u;function u(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function m(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var r=0|e.words[0],a=0|t.words[0],o=r*a,s=67108863&o,l=o/67108864|0;i.words[0]=s;for(var c=1;c<n;c++){for(var u=l>>>26,d=67108863&l,h=Math.min(c,t.length-1),p=Math.max(0,c-e.length+1);p<=h;p++){var m=c-p|0;u+=(o=(r=0|e.words[m])*(a=0|t.words[p])+d)/67108864|0,d=67108863&o}i.words[c]=0|d,l=0|u}return 0!==l?i.words[c]=0|l:i.length--,i._strip()}r.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var r=0,a=0,o=0;o<this.length;o++){var s=this.words[o],l=(16777215&(s<<r|a)).toString(16);a=s>>>24-r&16777215,(r+=2)>=26&&(r-=26,o--),n=0!==a||o!==this.length-1?d[6-l.length]+l+n:l+n}for(0!==a&&(n=a.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var c=h[e],u=p[e];n="";var m=this.clone();for(m.negative=0;!m.isZero();){var f=m.modrn(u).toString(e);n=(m=m.idivn(u)).isZero()?f+n:d[c-f.length]+f+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},r.prototype.toJSON=function(){return this.toString(16,2)},a&&(r.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),r.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},r.prototype.toArrayLike=function(e,t,n){this._strip();var r=this.byteLength(),a=n||Math.max(1,r);i(r<=a,"byte array longer than desired length"),i(a>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,a);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,r),o},r.prototype._toArrayLikeLE=function(e,t){for(var i=0,n=0,r=0,a=0;r<this.length;r++){var o=this.words[r]<<a|n;e[i++]=255&o,i<e.length&&(e[i++]=o>>8&255),i<e.length&&(e[i++]=o>>16&255),6===a?(i<e.length&&(e[i++]=o>>24&255),n=0,a=0):(n=o>>>24,a+=2)}if(i<e.length)for(e[i++]=n;i<e.length;)e[i++]=0},r.prototype._toArrayLikeBE=function(e,t){for(var i=e.length-1,n=0,r=0,a=0;r<this.length;r++){var o=this.words[r]<<a|n;e[i--]=255&o,i>=0&&(e[i--]=o>>8&255),i>=0&&(e[i--]=o>>16&255),6===a?(i>=0&&(e[i--]=o>>24&255),n=0,a=0):(n=o>>>24,a+=2)}if(i>=0)for(e[i--]=n;i>=0;)e[i--]=0},Math.clz32?r.prototype._countBits=function(e){return 32-Math.clz32(e)}:r.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},r.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 8191&t||(i+=13,t>>>=13),127&t||(i+=7,t>>>=7),15&t||(i+=4,t>>>=4),3&t||(i+=2,t>>>=2),1&t||i++,i},r.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,26!==i)break}return e},r.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},r.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},r.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},r.prototype.isNeg=function(){return 0!==this.negative},r.prototype.neg=function(){return this.clone().ineg()},r.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},r.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},r.prototype.ior=function(e){return i(0===(this.negative|e.negative)),this.iuor(e)},r.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},r.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},r.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this._strip()},r.prototype.iand=function(e){return i(0===(this.negative|e.negative)),this.iuand(e)},r.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},r.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},r.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=t.words[n]^i.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},r.prototype.ixor=function(e){return i(0===(this.negative|e.negative)),this.iuxor(e)},r.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},r.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},r.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return n>0&&(this.words[r]=~this.words[r]&67108863>>26-n),this._strip()},r.prototype.notn=function(e){return this.clone().inotn(e)},r.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var n=e/26|0,r=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<r:this.words[n]&~(1<<r),this._strip()},r.prototype.iadd=function(e){var t,i,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var r=0,a=0;a<n.length;a++)t=(0|i.words[a])+(0|n.words[a])+r,this.words[a]=67108863&t,r=t>>>26;for(;0!==r&&a<i.length;a++)t=(0|i.words[a])+r,this.words[a]=67108863&t,r=t>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this},r.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},r.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=e):(i=e,n=this);for(var a=0,o=0;o<n.length;o++)a=(t=(0|i.words[o])-(0|n.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<i.length;o++)a=(t=(0|i.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<i.length&&i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this.length=Math.max(this.length,o),i!==this&&(this.negative=1),this._strip()},r.prototype.sub=function(e){return this.clone().isub(e)};var f=function(e,t,i){var n,r,a,o=e.words,s=t.words,l=i.words,c=0,u=0|o[0],d=8191&u,h=u>>>13,p=0|o[1],m=8191&p,f=p>>>13,g=0|o[2],_=8191&g,v=g>>>13,y=0|o[3],b=8191&y,S=y>>>13,E=0|o[4],w=8191&E,C=E>>>13,T=0|o[5],A=8191&T,x=T>>>13,M=0|o[6],R=8191&M,I=M>>>13,k=0|o[7],N=8191&k,O=k>>>13,D=0|o[8],L=8191&D,P=D>>>13,B=0|o[9],F=8191&B,$=B>>>13,U=0|s[0],G=8191&U,Y=U>>>13,z=0|s[1],H=8191&z,q=z>>>13,V=0|s[2],j=8191&V,J=V>>>13,W=0|s[3],K=8191&W,Q=W>>>13,Z=0|s[4],X=8191&Z,ee=Z>>>13,te=0|s[5],ie=8191&te,ne=te>>>13,re=0|s[6],ae=8191&re,oe=re>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],de=8191&ue,he=ue>>>13,pe=0|s[9],me=8191&pe,fe=pe>>>13;i.negative=e.negative^t.negative,i.length=19;var ge=(c+(n=Math.imul(d,G))|0)+((8191&(r=(r=Math.imul(d,Y))+Math.imul(h,G)|0))<<13)|0;c=((a=Math.imul(h,Y))+(r>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(m,G),r=(r=Math.imul(m,Y))+Math.imul(f,G)|0,a=Math.imul(f,Y);var _e=(c+(n=n+Math.imul(d,H)|0)|0)+((8191&(r=(r=r+Math.imul(d,q)|0)+Math.imul(h,H)|0))<<13)|0;c=((a=a+Math.imul(h,q)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(_,G),r=(r=Math.imul(_,Y))+Math.imul(v,G)|0,a=Math.imul(v,Y),n=n+Math.imul(m,H)|0,r=(r=r+Math.imul(m,q)|0)+Math.imul(f,H)|0,a=a+Math.imul(f,q)|0;var ve=(c+(n=n+Math.imul(d,j)|0)|0)+((8191&(r=(r=r+Math.imul(d,J)|0)+Math.imul(h,j)|0))<<13)|0;c=((a=a+Math.imul(h,J)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(b,G),r=(r=Math.imul(b,Y))+Math.imul(S,G)|0,a=Math.imul(S,Y),n=n+Math.imul(_,H)|0,r=(r=r+Math.imul(_,q)|0)+Math.imul(v,H)|0,a=a+Math.imul(v,q)|0,n=n+Math.imul(m,j)|0,r=(r=r+Math.imul(m,J)|0)+Math.imul(f,j)|0,a=a+Math.imul(f,J)|0;var ye=(c+(n=n+Math.imul(d,K)|0)|0)+((8191&(r=(r=r+Math.imul(d,Q)|0)+Math.imul(h,K)|0))<<13)|0;c=((a=a+Math.imul(h,Q)|0)+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(w,G),r=(r=Math.imul(w,Y))+Math.imul(C,G)|0,a=Math.imul(C,Y),n=n+Math.imul(b,H)|0,r=(r=r+Math.imul(b,q)|0)+Math.imul(S,H)|0,a=a+Math.imul(S,q)|0,n=n+Math.imul(_,j)|0,r=(r=r+Math.imul(_,J)|0)+Math.imul(v,j)|0,a=a+Math.imul(v,J)|0,n=n+Math.imul(m,K)|0,r=(r=r+Math.imul(m,Q)|0)+Math.imul(f,K)|0,a=a+Math.imul(f,Q)|0;var be=(c+(n=n+Math.imul(d,X)|0)|0)+((8191&(r=(r=r+Math.imul(d,ee)|0)+Math.imul(h,X)|0))<<13)|0;c=((a=a+Math.imul(h,ee)|0)+(r>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(A,G),r=(r=Math.imul(A,Y))+Math.imul(x,G)|0,a=Math.imul(x,Y),n=n+Math.imul(w,H)|0,r=(r=r+Math.imul(w,q)|0)+Math.imul(C,H)|0,a=a+Math.imul(C,q)|0,n=n+Math.imul(b,j)|0,r=(r=r+Math.imul(b,J)|0)+Math.imul(S,j)|0,a=a+Math.imul(S,J)|0,n=n+Math.imul(_,K)|0,r=(r=r+Math.imul(_,Q)|0)+Math.imul(v,K)|0,a=a+Math.imul(v,Q)|0,n=n+Math.imul(m,X)|0,r=(r=r+Math.imul(m,ee)|0)+Math.imul(f,X)|0,a=a+Math.imul(f,ee)|0;var Se=(c+(n=n+Math.imul(d,ie)|0)|0)+((8191&(r=(r=r+Math.imul(d,ne)|0)+Math.imul(h,ie)|0))<<13)|0;c=((a=a+Math.imul(h,ne)|0)+(r>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(R,G),r=(r=Math.imul(R,Y))+Math.imul(I,G)|0,a=Math.imul(I,Y),n=n+Math.imul(A,H)|0,r=(r=r+Math.imul(A,q)|0)+Math.imul(x,H)|0,a=a+Math.imul(x,q)|0,n=n+Math.imul(w,j)|0,r=(r=r+Math.imul(w,J)|0)+Math.imul(C,j)|0,a=a+Math.imul(C,J)|0,n=n+Math.imul(b,K)|0,r=(r=r+Math.imul(b,Q)|0)+Math.imul(S,K)|0,a=a+Math.imul(S,Q)|0,n=n+Math.imul(_,X)|0,r=(r=r+Math.imul(_,ee)|0)+Math.imul(v,X)|0,a=a+Math.imul(v,ee)|0,n=n+Math.imul(m,ie)|0,r=(r=r+Math.imul(m,ne)|0)+Math.imul(f,ie)|0,a=a+Math.imul(f,ne)|0;var Ee=(c+(n=n+Math.imul(d,ae)|0)|0)+((8191&(r=(r=r+Math.imul(d,oe)|0)+Math.imul(h,ae)|0))<<13)|0;c=((a=a+Math.imul(h,oe)|0)+(r>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(N,G),r=(r=Math.imul(N,Y))+Math.imul(O,G)|0,a=Math.imul(O,Y),n=n+Math.imul(R,H)|0,r=(r=r+Math.imul(R,q)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,q)|0,n=n+Math.imul(A,j)|0,r=(r=r+Math.imul(A,J)|0)+Math.imul(x,j)|0,a=a+Math.imul(x,J)|0,n=n+Math.imul(w,K)|0,r=(r=r+Math.imul(w,Q)|0)+Math.imul(C,K)|0,a=a+Math.imul(C,Q)|0,n=n+Math.imul(b,X)|0,r=(r=r+Math.imul(b,ee)|0)+Math.imul(S,X)|0,a=a+Math.imul(S,ee)|0,n=n+Math.imul(_,ie)|0,r=(r=r+Math.imul(_,ne)|0)+Math.imul(v,ie)|0,a=a+Math.imul(v,ne)|0,n=n+Math.imul(m,ae)|0,r=(r=r+Math.imul(m,oe)|0)+Math.imul(f,ae)|0,a=a+Math.imul(f,oe)|0;var we=(c+(n=n+Math.imul(d,le)|0)|0)+((8191&(r=(r=r+Math.imul(d,ce)|0)+Math.imul(h,le)|0))<<13)|0;c=((a=a+Math.imul(h,ce)|0)+(r>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(L,G),r=(r=Math.imul(L,Y))+Math.imul(P,G)|0,a=Math.imul(P,Y),n=n+Math.imul(N,H)|0,r=(r=r+Math.imul(N,q)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,q)|0,n=n+Math.imul(R,j)|0,r=(r=r+Math.imul(R,J)|0)+Math.imul(I,j)|0,a=a+Math.imul(I,J)|0,n=n+Math.imul(A,K)|0,r=(r=r+Math.imul(A,Q)|0)+Math.imul(x,K)|0,a=a+Math.imul(x,Q)|0,n=n+Math.imul(w,X)|0,r=(r=r+Math.imul(w,ee)|0)+Math.imul(C,X)|0,a=a+Math.imul(C,ee)|0,n=n+Math.imul(b,ie)|0,r=(r=r+Math.imul(b,ne)|0)+Math.imul(S,ie)|0,a=a+Math.imul(S,ne)|0,n=n+Math.imul(_,ae)|0,r=(r=r+Math.imul(_,oe)|0)+Math.imul(v,ae)|0,a=a+Math.imul(v,oe)|0,n=n+Math.imul(m,le)|0,r=(r=r+Math.imul(m,ce)|0)+Math.imul(f,le)|0,a=a+Math.imul(f,ce)|0;var Ce=(c+(n=n+Math.imul(d,de)|0)|0)+((8191&(r=(r=r+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;c=((a=a+Math.imul(h,he)|0)+(r>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(F,G),r=(r=Math.imul(F,Y))+Math.imul($,G)|0,a=Math.imul($,Y),n=n+Math.imul(L,H)|0,r=(r=r+Math.imul(L,q)|0)+Math.imul(P,H)|0,a=a+Math.imul(P,q)|0,n=n+Math.imul(N,j)|0,r=(r=r+Math.imul(N,J)|0)+Math.imul(O,j)|0,a=a+Math.imul(O,J)|0,n=n+Math.imul(R,K)|0,r=(r=r+Math.imul(R,Q)|0)+Math.imul(I,K)|0,a=a+Math.imul(I,Q)|0,n=n+Math.imul(A,X)|0,r=(r=r+Math.imul(A,ee)|0)+Math.imul(x,X)|0,a=a+Math.imul(x,ee)|0,n=n+Math.imul(w,ie)|0,r=(r=r+Math.imul(w,ne)|0)+Math.imul(C,ie)|0,a=a+Math.imul(C,ne)|0,n=n+Math.imul(b,ae)|0,r=(r=r+Math.imul(b,oe)|0)+Math.imul(S,ae)|0,a=a+Math.imul(S,oe)|0,n=n+Math.imul(_,le)|0,r=(r=r+Math.imul(_,ce)|0)+Math.imul(v,le)|0,a=a+Math.imul(v,ce)|0,n=n+Math.imul(m,de)|0,r=(r=r+Math.imul(m,he)|0)+Math.imul(f,de)|0,a=a+Math.imul(f,he)|0;var Te=(c+(n=n+Math.imul(d,me)|0)|0)+((8191&(r=(r=r+Math.imul(d,fe)|0)+Math.imul(h,me)|0))<<13)|0;c=((a=a+Math.imul(h,fe)|0)+(r>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(F,H),r=(r=Math.imul(F,q))+Math.imul($,H)|0,a=Math.imul($,q),n=n+Math.imul(L,j)|0,r=(r=r+Math.imul(L,J)|0)+Math.imul(P,j)|0,a=a+Math.imul(P,J)|0,n=n+Math.imul(N,K)|0,r=(r=r+Math.imul(N,Q)|0)+Math.imul(O,K)|0,a=a+Math.imul(O,Q)|0,n=n+Math.imul(R,X)|0,r=(r=r+Math.imul(R,ee)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,ee)|0,n=n+Math.imul(A,ie)|0,r=(r=r+Math.imul(A,ne)|0)+Math.imul(x,ie)|0,a=a+Math.imul(x,ne)|0,n=n+Math.imul(w,ae)|0,r=(r=r+Math.imul(w,oe)|0)+Math.imul(C,ae)|0,a=a+Math.imul(C,oe)|0,n=n+Math.imul(b,le)|0,r=(r=r+Math.imul(b,ce)|0)+Math.imul(S,le)|0,a=a+Math.imul(S,ce)|0,n=n+Math.imul(_,de)|0,r=(r=r+Math.imul(_,he)|0)+Math.imul(v,de)|0,a=a+Math.imul(v,he)|0;var Ae=(c+(n=n+Math.imul(m,me)|0)|0)+((8191&(r=(r=r+Math.imul(m,fe)|0)+Math.imul(f,me)|0))<<13)|0;c=((a=a+Math.imul(f,fe)|0)+(r>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(F,j),r=(r=Math.imul(F,J))+Math.imul($,j)|0,a=Math.imul($,J),n=n+Math.imul(L,K)|0,r=(r=r+Math.imul(L,Q)|0)+Math.imul(P,K)|0,a=a+Math.imul(P,Q)|0,n=n+Math.imul(N,X)|0,r=(r=r+Math.imul(N,ee)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,ee)|0,n=n+Math.imul(R,ie)|0,r=(r=r+Math.imul(R,ne)|0)+Math.imul(I,ie)|0,a=a+Math.imul(I,ne)|0,n=n+Math.imul(A,ae)|0,r=(r=r+Math.imul(A,oe)|0)+Math.imul(x,ae)|0,a=a+Math.imul(x,oe)|0,n=n+Math.imul(w,le)|0,r=(r=r+Math.imul(w,ce)|0)+Math.imul(C,le)|0,a=a+Math.imul(C,ce)|0,n=n+Math.imul(b,de)|0,r=(r=r+Math.imul(b,he)|0)+Math.imul(S,de)|0,a=a+Math.imul(S,he)|0;var xe=(c+(n=n+Math.imul(_,me)|0)|0)+((8191&(r=(r=r+Math.imul(_,fe)|0)+Math.imul(v,me)|0))<<13)|0;c=((a=a+Math.imul(v,fe)|0)+(r>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(F,K),r=(r=Math.imul(F,Q))+Math.imul($,K)|0,a=Math.imul($,Q),n=n+Math.imul(L,X)|0,r=(r=r+Math.imul(L,ee)|0)+Math.imul(P,X)|0,a=a+Math.imul(P,ee)|0,n=n+Math.imul(N,ie)|0,r=(r=r+Math.imul(N,ne)|0)+Math.imul(O,ie)|0,a=a+Math.imul(O,ne)|0,n=n+Math.imul(R,ae)|0,r=(r=r+Math.imul(R,oe)|0)+Math.imul(I,ae)|0,a=a+Math.imul(I,oe)|0,n=n+Math.imul(A,le)|0,r=(r=r+Math.imul(A,ce)|0)+Math.imul(x,le)|0,a=a+Math.imul(x,ce)|0,n=n+Math.imul(w,de)|0,r=(r=r+Math.imul(w,he)|0)+Math.imul(C,de)|0,a=a+Math.imul(C,he)|0;var Me=(c+(n=n+Math.imul(b,me)|0)|0)+((8191&(r=(r=r+Math.imul(b,fe)|0)+Math.imul(S,me)|0))<<13)|0;c=((a=a+Math.imul(S,fe)|0)+(r>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(F,X),r=(r=Math.imul(F,ee))+Math.imul($,X)|0,a=Math.imul($,ee),n=n+Math.imul(L,ie)|0,r=(r=r+Math.imul(L,ne)|0)+Math.imul(P,ie)|0,a=a+Math.imul(P,ne)|0,n=n+Math.imul(N,ae)|0,r=(r=r+Math.imul(N,oe)|0)+Math.imul(O,ae)|0,a=a+Math.imul(O,oe)|0,n=n+Math.imul(R,le)|0,r=(r=r+Math.imul(R,ce)|0)+Math.imul(I,le)|0,a=a+Math.imul(I,ce)|0,n=n+Math.imul(A,de)|0,r=(r=r+Math.imul(A,he)|0)+Math.imul(x,de)|0,a=a+Math.imul(x,he)|0;var Re=(c+(n=n+Math.imul(w,me)|0)|0)+((8191&(r=(r=r+Math.imul(w,fe)|0)+Math.imul(C,me)|0))<<13)|0;c=((a=a+Math.imul(C,fe)|0)+(r>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(F,ie),r=(r=Math.imul(F,ne))+Math.imul($,ie)|0,a=Math.imul($,ne),n=n+Math.imul(L,ae)|0,r=(r=r+Math.imul(L,oe)|0)+Math.imul(P,ae)|0,a=a+Math.imul(P,oe)|0,n=n+Math.imul(N,le)|0,r=(r=r+Math.imul(N,ce)|0)+Math.imul(O,le)|0,a=a+Math.imul(O,ce)|0,n=n+Math.imul(R,de)|0,r=(r=r+Math.imul(R,he)|0)+Math.imul(I,de)|0,a=a+Math.imul(I,he)|0;var Ie=(c+(n=n+Math.imul(A,me)|0)|0)+((8191&(r=(r=r+Math.imul(A,fe)|0)+Math.imul(x,me)|0))<<13)|0;c=((a=a+Math.imul(x,fe)|0)+(r>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(F,ae),r=(r=Math.imul(F,oe))+Math.imul($,ae)|0,a=Math.imul($,oe),n=n+Math.imul(L,le)|0,r=(r=r+Math.imul(L,ce)|0)+Math.imul(P,le)|0,a=a+Math.imul(P,ce)|0,n=n+Math.imul(N,de)|0,r=(r=r+Math.imul(N,he)|0)+Math.imul(O,de)|0,a=a+Math.imul(O,he)|0;var ke=(c+(n=n+Math.imul(R,me)|0)|0)+((8191&(r=(r=r+Math.imul(R,fe)|0)+Math.imul(I,me)|0))<<13)|0;c=((a=a+Math.imul(I,fe)|0)+(r>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(F,le),r=(r=Math.imul(F,ce))+Math.imul($,le)|0,a=Math.imul($,ce),n=n+Math.imul(L,de)|0,r=(r=r+Math.imul(L,he)|0)+Math.imul(P,de)|0,a=a+Math.imul(P,he)|0;var Ne=(c+(n=n+Math.imul(N,me)|0)|0)+((8191&(r=(r=r+Math.imul(N,fe)|0)+Math.imul(O,me)|0))<<13)|0;c=((a=a+Math.imul(O,fe)|0)+(r>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(F,de),r=(r=Math.imul(F,he))+Math.imul($,de)|0,a=Math.imul($,he);var Oe=(c+(n=n+Math.imul(L,me)|0)|0)+((8191&(r=(r=r+Math.imul(L,fe)|0)+Math.imul(P,me)|0))<<13)|0;c=((a=a+Math.imul(P,fe)|0)+(r>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var De=(c+(n=Math.imul(F,me))|0)+((8191&(r=(r=Math.imul(F,fe))+Math.imul($,me)|0))<<13)|0;return c=((a=Math.imul($,fe))+(r>>>13)|0)+(De>>>26)|0,De&=67108863,l[0]=ge,l[1]=_e,l[2]=ve,l[3]=ye,l[4]=be,l[5]=Se,l[6]=Ee,l[7]=we,l[8]=Ce,l[9]=Te,l[10]=Ae,l[11]=xe,l[12]=Me,l[13]=Re,l[14]=Ie,l[15]=ke,l[16]=Ne,l[17]=Oe,l[18]=De,0!==c&&(l[19]=c,i.length++),i};function g(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,r=0,a=0;a<i.length-1;a++){var o=r;r=0;for(var s=67108863&n,l=Math.min(a,t.length-1),c=Math.max(0,a-e.length+1);c<=l;c++){var u=a-c,d=(0|e.words[u])*(0|t.words[c]),h=67108863&d;s=67108863&(h=h+s|0),r+=(o=(o=o+(d/67108864|0)|0)+(h>>>26)|0)>>>26,o&=67108863}i.words[a]=s,n=o,o=r}return 0!==n?i.words[a]=n:i.length--,i._strip()}function _(e,t,i){return g(e,t,i)}Math.imul||(f=m),r.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?f(this,e,t):i<63?m(this,e,t):i<1024?g(this,e,t):_(this,e,t)},r.prototype.mul=function(e){var t=new r(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},r.prototype.mulf=function(e){var t=new r(null);return t.words=new Array(this.length+e.length),_(this,e,t)},r.prototype.imul=function(e){return this.clone().mulTo(e,this)},r.prototype.imuln=function(e){var t=e<0;t&&(e=-e),i("number"==typeof e),i(e<67108864);for(var n=0,r=0;r<this.length;r++){var a=(0|this.words[r])*e,o=(67108863&a)+(67108863&n);n>>=26,n+=a/67108864|0,n+=o>>>26,this.words[r]=67108863&o}return 0!==n&&(this.words[r]=n,this.length++),this.length=0===e?1:this.length,t?this.ineg():this},r.prototype.muln=function(e){return this.clone().imuln(e)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i<t.length;i++){var n=i/26|0,r=i%26;t[i]=e.words[n]>>>r&1}return t}(e);if(0===t.length)return new r(1);for(var i=this,n=0;n<t.length&&0===t[n];n++,i=i.sqr());if(++n<t.length)for(var a=i.sqr();n<t.length;n++,a=a.sqr())0!==t[n]&&(i=i.mul(a));return i},r.prototype.iushln=function(e){i("number"==typeof e&&e>=0);var t,n=e%26,r=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,l=(0|this.words[t])-s<<n;this.words[t]=l|o,o=s>>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t<r;t++)this.words[t]=0;this.length+=r}return this._strip()},r.prototype.ishln=function(e){return i(0===this.negative),this.iushln(e)},r.prototype.iushrn=function(e,t,n){var r;i("number"==typeof e&&e>=0),r=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,l=n;if(r-=o,r=Math.max(0,r),l){for(var c=0;c<o;c++)l.words[c]=this.words[c];l.length=o}if(0===o);else if(this.length>o)for(this.length-=o,c=0;c<this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=r);c--){var d=0|this.words[c];this.words[c]=u<<26-a|d>>>a,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},r.prototype.ishrn=function(e,t,n){return i(0===this.negative),this.iushrn(e,t,n)},r.prototype.shln=function(e){return this.clone().ishln(e)},r.prototype.ushln=function(e){return this.clone().iushln(e)},r.prototype.shrn=function(e){return this.clone().ishrn(e)},r.prototype.ushrn=function(e){return this.clone().iushrn(e)},r.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,r=1<<t;return!(this.length<=n||!(this.words[n]&r))},r.prototype.imaskn=function(e){i("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var r=67108863^67108863>>>t<<t;this.words[this.length-1]&=r}return this._strip()},r.prototype.maskn=function(e){return this.clone().imaskn(e)},r.prototype.iaddn=function(e){return i("number"==typeof e),i(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},r.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},r.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},r.prototype.addn=function(e){return this.clone().iaddn(e)},r.prototype.subn=function(e){return this.clone().isubn(e)},r.prototype.iabs=function(){return this.negative=0,this},r.prototype.abs=function(){return this.clone().iabs()},r.prototype._ishlnsubmul=function(e,t,n){var r,a,o=e.length+n;this._expand(o);var s=0;for(r=0;r<e.length;r++){a=(0|this.words[r+n])+s;var l=(0|e.words[r])*t;s=((a-=67108863&l)>>26)-(l/67108864|0),this.words[r+n]=67108863&a}for(;r<this.length-n;r++)s=(a=(0|this.words[r+n])+s)>>26,this.words[r+n]=67108863&a;if(0===s)return this._strip();for(i(-1===s),s=0,r=0;r<this.length;r++)s=(a=-(0|this.words[r])+s)>>26,this.words[r]=67108863&a;return this.negative=1,this._strip()},r.prototype._wordDiv=function(e,t){var i=(this.length,e.length),n=this.clone(),a=e,o=0|a.words[a.length-1];0!=(i=26-this._countBits(o))&&(a=a.ushln(i),n.iushln(i),o=0|a.words[a.length-1]);var s,l=n.length-a.length;if("mod"!==t){(s=new r(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(a,1,l);0===u.negative&&(n=u,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var h=67108864*(0|n.words[a.length+d])+(0|n.words[a.length+d-1]);for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(a,h,d);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(a,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=h)}return s&&s._strip(),n._strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:s||null,mod:n}},r.prototype.divmod=function(e,t,n){return i(!e.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new r(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new r(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new r(this.modrn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},r.prototype.div=function(e){return this.divmod(e,"div",!1).div},r.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},r.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},r.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),r=e.andln(1),a=i.cmp(n);return a<0||1===r&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},r.prototype.modrn=function(e){var t=e<0;t&&(e=-e),i(e<=67108863);for(var n=(1<<26)%e,r=0,a=this.length-1;a>=0;a--)r=(n*r+(0|this.words[a]))%e;return t?-r:r},r.prototype.modn=function(e){return this.modrn(e)},r.prototype.idivn=function(e){var t=e<0;t&&(e=-e),i(e<=67108863);for(var n=0,r=this.length-1;r>=0;r--){var a=(0|this.words[r])+67108864*n;this.words[r]=a/e|0,n=a%e}return this._strip(),t?this.ineg():this},r.prototype.divn=function(e){return this.clone().idivn(e)},r.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new r(1),o=new r(0),s=new r(0),l=new r(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var h=0,p=1;0===(t.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(u),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var m=0,f=1;0===(n.words[0]&f)&&m<26;++m,f<<=1);if(m>0)for(n.iushrn(m);m-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(l)):(n.isub(t),s.isub(a),l.isub(o))}return{a:s,b:l,gcd:n.iushln(c)}},r.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new r(1),s=new r(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0===(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var d=0,h=1;0===(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},r.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=t.cmp(i);if(r<0){var a=t;t=i,i=a}else if(0===r||0===i.cmpn(1))break;t.isub(i)}return i.iushln(n)},r.prototype.invm=function(e){return this.egcd(e).a.umod(e)},r.prototype.isEven=function(){return!(1&this.words[0])},r.prototype.isOdd=function(){return!(1&~this.words[0])},r.prototype.andln=function(e){return this.words[0]&e},r.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,n=(e-t)/26,r=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=r,this;for(var a=r,o=n;0!==a&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),i(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:r<e?-1:1}return 0!==this.negative?0|-t:t},r.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},r.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|e.words[i];if(n!==r){n<r?t=-1:n>r&&(t=1);break}}return t},r.prototype.gtn=function(e){return 1===this.cmpn(e)},r.prototype.gt=function(e){return 1===this.cmp(e)},r.prototype.gten=function(e){return this.cmpn(e)>=0},r.prototype.gte=function(e){return this.cmp(e)>=0},r.prototype.ltn=function(e){return-1===this.cmpn(e)},r.prototype.lt=function(e){return-1===this.cmp(e)},r.prototype.lten=function(e){return this.cmpn(e)<=0},r.prototype.lte=function(e){return this.cmp(e)<=0},r.prototype.eqn=function(e){return 0===this.cmpn(e)},r.prototype.eq=function(e){return 0===this.cmp(e)},r.red=function(e){return new C(e)},r.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},r.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(e){return this.red=e,this},r.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},r.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},r.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},r.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},r.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},r.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},r.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},r.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},r.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new r(t,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function S(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(e){if("string"==typeof e){var t=r._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function T(e){C.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new r(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},n(b,y),b.prototype.split=function(e,t){for(var i=4194303,n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var a=e.words[9];for(t.words[t.length++]=a&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(o&i)<<4|a>>>22,a=o}a>>>=22,e.words[r-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=0|e.words[i];t+=977*n,e.words[i]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(S,y),n(E,y),n(w,y),w.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+t,r=67108863&n;n>>>=26,e.words[i]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},r._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new b;else if("p224"===e)t=new S;else if("p192"===e)t=new E;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return v[e]=t,t},C.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},C.prototype._verify2=function(e,t){i(0===(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},C.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},C.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},C.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},C.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},C.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},C.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},C.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},C.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},C.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},C.prototype.isqr=function(e){return this.imul(e,e.clone())},C.prototype.sqr=function(e){return this.mul(e,e)},C.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var n=this.m.add(new r(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);i(!a.isZero());var s=new r(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new r(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,a),h=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),m=o;0!==p.cmp(s);){for(var f=p,g=0;0!==f.cmp(s);g++)f=f.redSqr();i(g<m);var _=this.pow(d,new r(1).iushln(m-g-1));h=h.redMul(_),d=_.redSqr(),p=p.redMul(d),m=g}return h},C.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},C.prototype.pow=function(e,t){if(t.isZero())return new r(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=new Array(16);i[0]=new r(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var a=i[0],o=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],u=l-1;u>=0;u--){var d=c>>u&1;a!==i[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4===++s||0===n&&0===u)&&(a=this.mul(a,i[o]),s=0,o=0)):s=0}l=26}return a},C.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},C.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},r.mont=function(e){return new T(e)},n(T,C),T.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},T.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},T.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a._forceRed(this)},T.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new r(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=i.isub(n).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},T.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(bn$6,commonjsGlobal);var bnExports$6=bn$6.exports;const BN$c=getDefaultExportFromCjs$1(bnExports$6),version$8="logger/5.8.0";let _permanentCensorErrors=!1,_censorErrors=!1;const LogLevels={debug:1,default:2,info:2,warning:3,error:4,off:5};let _logLevel=LogLevels.default,_globalLogger=null;function _checkNormalize(){try{const e=[];if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(i){e.push(t)}}),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}const _normalizeError=_checkNormalize();var LogLevel,LogLevel2,ErrorCode,ErrorCode2;LogLevel2=LogLevel||(LogLevel={}),LogLevel2.DEBUG="DEBUG",LogLevel2.INFO="INFO",LogLevel2.WARNING="WARNING",LogLevel2.ERROR="ERROR",LogLevel2.OFF="OFF",ErrorCode2=ErrorCode||(ErrorCode={}),ErrorCode2.UNKNOWN_ERROR="UNKNOWN_ERROR",ErrorCode2.NOT_IMPLEMENTED="NOT_IMPLEMENTED",ErrorCode2.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",ErrorCode2.NETWORK_ERROR="NETWORK_ERROR",ErrorCode2.SERVER_ERROR="SERVER_ERROR",ErrorCode2.TIMEOUT="TIMEOUT",ErrorCode2.BUFFER_OVERRUN="BUFFER_OVERRUN",ErrorCode2.NUMERIC_FAULT="NUMERIC_FAULT",ErrorCode2.MISSING_NEW="MISSING_NEW",ErrorCode2.INVALID_ARGUMENT="INVALID_ARGUMENT",ErrorCode2.MISSING_ARGUMENT="MISSING_ARGUMENT",ErrorCode2.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",ErrorCode2.CALL_EXCEPTION="CALL_EXCEPTION",ErrorCode2.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",ErrorCode2.NONCE_EXPIRED="NONCE_EXPIRED",ErrorCode2.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",ErrorCode2.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",ErrorCode2.TRANSACTION_REPLACED="TRANSACTION_REPLACED",ErrorCode2.ACTION_REJECTED="ACTION_REJECTED";const HEX="0123456789abcdef";class Logger{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const i=e.toLowerCase();null==LogLevels[i]&&this.throwArgumentError("invalid log level name","logLevel",e),_logLevel>LogLevels[i]||console.log.apply(console,t)}debug(...e){this._log(Logger.levels.DEBUG,e)}info(...e){this._log(Logger.levels.INFO,e)}warn(...e){this._log(Logger.levels.WARNING,e)}makeError(e,t,i){if(_censorErrors)return this.makeError("censored error",t,{});t||(t=Logger.errors.UNKNOWN_ERROR),i||(i={});const n=[];Object.keys(i).forEach(e=>{const t=i[e];try{if(t instanceof Uint8Array){let i="";for(let e=0;e<t.length;e++)i+=HEX[t[e]>>4],i+=HEX[15&t[e]];n.push(e+"=Uint8Array(0x"+i+")")}else n.push(e+"="+JSON.stringify(t))}catch(r){n.push(e+"="+JSON.stringify(i[e].toString()))}}),n.push(`code=${t}`),n.push(`version=${this.version}`);const r=e;let a="";switch(t){case ErrorCode.NUMERIC_FAULT:{a="NUMERIC_FAULT";const t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":a+="-"+t;break;case"negative-power":case"negative-width":a+="-unsupported";break;case"unbound-bitwise-result":a+="-unbound-result"}break}case ErrorCode.CALL_EXCEPTION:case ErrorCode.INSUFFICIENT_FUNDS:case ErrorCode.MISSING_NEW:case ErrorCode.NONCE_EXPIRED:case ErrorCode.REPLACEMENT_UNDERPRICED:case ErrorCode.TRANSACTION_REPLACED:case ErrorCode.UNPREDICTABLE_GAS_LIMIT:a=t}a&&(e+=" [ See: https://links.ethers.org/v5-errors-"+a+" ]"),n.length&&(e+=" ("+n.join(", ")+")");const o=new Error(e);return o.reason=r,o.code=t,Object.keys(i).forEach(function(e){o[e]=i[e]}),o}throwError(e,t,i){throw this.makeError(e,t,i)}throwArgumentError(e,t,i){return this.throwError(e,Logger.errors.INVALID_ARGUMENT,{argument:t,value:i})}assert(e,t,i,n){e||this.throwError(t,i,n)}assertArgument(e,t,i,n){e||this.throwArgumentError(t,i,n)}checkNormalize(e){_normalizeError&&this.throwError("platform missing String.prototype.normalize",Logger.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:_normalizeError})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,Logger.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,Logger.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,i){i=i?": "+i:"",e<t&&this.throwError("missing argument"+i,Logger.errors.MISSING_ARGUMENT,{count:e,expectedCount:t}),e>t&&this.throwError("too many arguments"+i,Logger.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){e!==Object&&null!=e||this.throwError("missing new",Logger.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",Logger.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",Logger.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return _globalLogger||(_globalLogger=new Logger(version$8)),_globalLogger}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",Logger.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),_permanentCensorErrors){if(!e)return;this.globalLogger().throwError("error censorship permanent",Logger.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}_censorErrors=!!e,_permanentCensorErrors=!!t}static setLogLevel(e){const t=LogLevels[e.toLowerCase()];null!=t?_logLevel=t:Logger.globalLogger().warn("invalid log level - "+e)}static from(e){return new Logger(e)}}Logger.errors=ErrorCode,Logger.levels=LogLevel;const version$7="bytes/5.8.0",logger$3=new Logger(version$7);function isHexable(e){return!!e.toHexString}function addSlice(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return addSlice(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function isInteger(e){return"number"==typeof e&&e==e&&e%1==0}function isBytes(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(!isInteger(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){const i=e[t];if(!isInteger(i)||i<0||i>=256)return!1}return!0}function arrayify(e,t){if(t||(t={}),"number"==typeof e){logger$3.checkSafeUint53(e,"invalid arrayify value");const t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),addSlice(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),isHexable(e)&&(e=e.toHexString()),isHexString(e)){let i=e.substring(2);i.length%2&&("left"===t.hexPad?i="0"+i:"right"===t.hexPad?i+="0":logger$3.throwArgumentError("hex data is odd-length","value",e));const n=[];for(let e=0;e<i.length;e+=2)n.push(parseInt(i.substring(e,e+2),16));return addSlice(new Uint8Array(n))}return isBytes(e)?addSlice(new Uint8Array(e)):logger$3.throwArgumentError("invalid arrayify value","value",e)}function isHexString(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))}const HexCharacters="0123456789abcdef";function hexlify(e,t){if(t||(t={}),"number"==typeof e){logger$3.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=HexCharacters[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),isHexable(e))return e.toHexString();if(isHexString(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":logger$3.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(isBytes(e)){let t="0x";for(let i=0;i<e.length;i++){let n=e[i];t+=HexCharacters[(240&n)>>4]+HexCharacters[15&n]}return t}return logger$3.throwArgumentError("invalid hexlify value","value",e)}function hexZeroPad(e,t){for("string"!=typeof e?e=hexlify(e):isHexString(e)||logger$3.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&logger$3.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}const version$6="bignumber/5.8.0";var BN$b=BN$c.BN;const logger$2=new Logger(version$6),_constructorGuard$1={},MAX_SAFE=9007199254740991;function isBigNumberish(e){return null!=e&&(BigNumber$1.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||isHexString(e)||"bigint"==typeof e||isBytes(e))}let _warnedToStringRadix=!1,BigNumber$1=class e{constructor(e,t){e!==_constructorGuard$1&&logger$2.throwError("cannot call constructor directly; use BigNumber.from",Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return toBigNumber(toBN(this).fromTwos(e))}toTwos(e){return toBigNumber(toBN(this).toTwos(e))}abs(){return"-"===this._hex[0]?e.from(this._hex.substring(1)):this}add(e){return toBigNumber(toBN(this).add(toBN(e)))}sub(e){return toBigNumber(toBN(this).sub(toBN(e)))}div(t){return e.from(t).isZero()&&throwFault$1("division-by-zero","div"),toBigNumber(toBN(this).div(toBN(t)))}mul(e){return toBigNumber(toBN(this).mul(toBN(e)))}mod(e){const t=toBN(e);return t.isNeg()&&throwFault$1("division-by-zero","mod"),toBigNumber(toBN(this).umod(t))}pow(e){const t=toBN(e);return t.isNeg()&&throwFault$1("negative-power","pow"),toBigNumber(toBN(this).pow(t))}and(e){const t=toBN(e);return(this.isNegative()||t.isNeg())&&throwFault$1("unbound-bitwise-result","and"),toBigNumber(toBN(this).and(t))}or(e){const t=toBN(e);return(this.isNegative()||t.isNeg())&&throwFault$1("unbound-bitwise-result","or"),toBigNumber(toBN(this).or(t))}xor(e){const t=toBN(e);return(this.isNegative()||t.isNeg())&&throwFault$1("unbound-bitwise-result","xor"),toBigNumber(toBN(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&throwFault$1("negative-width","mask"),toBigNumber(toBN(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&throwFault$1("negative-width","shl"),toBigNumber(toBN(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&throwFault$1("negative-width","shr"),toBigNumber(toBN(this).shrn(e))}eq(e){return toBN(this).eq(toBN(e))}lt(e){return toBN(this).lt(toBN(e))}lte(e){return toBN(this).lte(toBN(e))}gt(e){return toBN(this).gt(toBN(e))}gte(e){return toBN(this).gte(toBN(e))}isNegative(){return"-"===this._hex[0]}isZero(){return toBN(this).isZero()}toNumber(){try{return toBN(this).toNumber()}catch(e){throwFault$1("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return logger$2.throwError("this platform does not support BigInt",Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?_warnedToStringRadix||(_warnedToStringRadix=!0,logger$2.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?logger$2.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",Logger.errors.UNEXPECTED_ARGUMENT,{}):logger$2.throwError("BigNumber.toString does not accept parameters",Logger.errors.UNEXPECTED_ARGUMENT,{})),toBN(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof e)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new e(_constructorGuard$1,toHex$1(t)):t.match(/^-?[0-9]+$/)?new e(_constructorGuard$1,toHex$1(new BN$b(t))):logger$2.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&throwFault$1("underflow","BigNumber.from",t),(t>=MAX_SAFE||t<=-MAX_SAFE)&&throwFault$1("overflow","BigNumber.from",t),e.from(String(t));const i=t;if("bigint"==typeof i)return e.from(i.toString());if(isBytes(i))return e.from(hexlify(i));if(i)if(i.toHexString){const t=i.toHexString();if("string"==typeof t)return e.from(t)}else{let t=i._hex;if(null==t&&"BigNumber"===i.type&&(t=i.hex),"string"==typeof t&&(isHexString(t)||"-"===t[0]&&isHexString(t.substring(1))))return e.from(t)}return logger$2.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(e){return!(!e||!e._isBigNumber)}};function toHex$1(e){if("string"!=typeof e)return toHex$1(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&logger$2.throwArgumentError("invalid hex","value",e),"0x00"===(e=toHex$1(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function toBigNumber(e){return BigNumber$1.from(toHex$1(e))}function toBN(e){const t=BigNumber$1.from(e).toHexString();return"-"===t[0]?new BN$b("-"+t.substring(3),16):new BN$b(t.substring(2),16)}function throwFault$1(e,t,i){const n={fault:e,operation:t};return null!=i&&(n.value=i),logger$2.throwError(e,Logger.errors.NUMERIC_FAULT,n)}const logger$1=new Logger(version$6),_constructorGuard={},Zero=BigNumber$1.from(0),NegativeOne=BigNumber$1.from(-1);function throwFault(e,t,i,n){const r={fault:t,operation:i};return void 0!==n&&(r.value=n),logger$1.throwError(e,Logger.errors.NUMERIC_FAULT,r)}let zeros="0";for(;zeros.length<256;)zeros+=zeros;function getMultiplier(e){if("number"!=typeof e)try{e=BigNumber$1.from(e).toNumber()}catch(t){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+zeros.substring(0,e):logger$1.throwArgumentError("invalid decimal size","decimals",e)}function formatFixed(e,t){null==t&&(t=0);const i=getMultiplier(t),n=(e=BigNumber$1.from(e)).lt(Zero);n&&(e=e.mul(NegativeOne));let r=e.mod(i).toString();for(;r.length<i.length-1;)r="0"+r;r=r.match(/^([0-9]*[1-9]|0)(0*)/)[1];const a=e.div(i).toString();return e=1===i.length?a:a+"."+r,n&&(e="-"+e),e}function parseFixed(e,t){null==t&&(t=0);const i=getMultiplier(t);"string"==typeof e&&e.match(/^-?[0-9.]+$/)||logger$1.throwArgumentError("invalid decimal value","value",e);const n="-"===e.substring(0,1);n&&(e=e.substring(1)),"."===e&&logger$1.throwArgumentError("missing value","value",e);const r=e.split(".");r.length>2&&logger$1.throwArgumentError("too many decimal points","value",e);let a=r[0],o=r[1];for(a||(a="0"),o||(o="0");"0"===o[o.length-1];)o=o.substring(0,o.length-1);for(o.length>i.length-1&&throwFault("fractional component exceeds decimals","underflow","parseFixed"),""===o&&(o="0");o.length<i.length-1;)o+="0";const s=BigNumber$1.from(a),l=BigNumber$1.from(o);let c=s.mul(i).add(l);return n&&(c=c.mul(NegativeOne)),c}class FixedFormat{constructor(e,t,i,n){e!==_constructorGuard&&logger$1.throwError("cannot use FixedFormat constructor; use FixedFormat.from",Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=t,this.width=i,this.decimals=n,this.name=(t?"":"u")+"fixed"+String(i)+"x"+String(n),this._multiplier=getMultiplier(n),Object.freeze(this)}static from(e){if(e instanceof FixedFormat)return e;"number"==typeof e&&(e=`fixed128x${e}`);let t=!0,i=128,n=18;if("string"==typeof e)if("fixed"===e);else if("ufixed"===e)t=!1;else{const r=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);r||logger$1.throwArgumentError("invalid fixed format","format",e),t="u"!==r[1],i=parseInt(r[2]),n=parseInt(r[3])}else if(e){const r=(t,i,n)=>null==e[t]?n:(typeof e[t]!==i&&logger$1.throwArgumentError("invalid fixed format ("+t+" not "+i+")","format."+t,e[t]),e[t]);t=r("signed","boolean",t),i=r("width","number",i),n=r("decimals","number",n)}return i%8&&logger$1.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",i),n>80&&logger$1.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new FixedFormat(_constructorGuard,t,i,n)}}class FixedNumber{constructor(e,t,i,n){e!==_constructorGuard&&logger$1.throwError("cannot use FixedNumber constructor; use FixedNumber.from",Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=n,this._hex=t,this._value=i,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&logger$1.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const t=parseFixed(this._value,this.format.decimals),i=parseFixed(e._value,e.format.decimals);return FixedNumber.fromValue(t.add(i),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const t=parseFixed(this._value,this.format.decimals),i=parseFixed(e._value,e.format.decimals);return FixedNumber.fromValue(t.sub(i),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const t=parseFixed(this._value,this.format.decimals),i=parseFixed(e._value,e.format.decimals);return FixedNumber.fromValue(t.mul(i).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const t=parseFixed(this._value,this.format.decimals),i=parseFixed(e._value,e.format.decimals);return FixedNumber.fromValue(t.mul(this.format._multiplier).div(i),this.format.decimals,this.format)}floor(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=FixedNumber.from(e[0],this.format);const i=!e[1].match(/^(0*)$/);return this.isNegative()&&i&&(t=t.subUnsafe(ONE.toFormat(t.format))),t}ceiling(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=FixedNumber.from(e[0],this.format);const i=!e[1].match(/^(0*)$/);return!this.isNegative()&&i&&(t=t.addUnsafe(ONE.toFormat(t.format))),t}round(e){null==e&&(e=0);const t=this.toString().split(".");if(1===t.length&&t.push("0"),(e<0||e>80||e%1)&&logger$1.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;const i=FixedNumber.from("1"+zeros.substring(0,e),this.format),n=BUMP.toFormat(this.format);return this.mulUnsafe(i).addUnsafe(n).floor().divUnsafe(i)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(e){if(null==e)return this._hex;e%8&&logger$1.throwArgumentError("invalid byte width","width",e);return hexZeroPad(BigNumber$1.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString(),e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return FixedNumber.fromString(this._value,e)}static fromValue(e,t,i){return null!=i||null==t||isBigNumberish(t)||(i=t,t=null),null==t&&(t=0),null==i&&(i="fixed"),FixedNumber.fromString(formatFixed(e,t),FixedFormat.from(i))}static fromString(e,t){null==t&&(t="fixed");const i=FixedFormat.from(t),n=parseFixed(e,i.decimals);!i.signed&&n.lt(Zero)&&throwFault("unsigned value cannot be negative","overflow","value",e);let r=null;i.signed?r=n.toTwos(i.width).toHexString():(r=n.toHexString(),r=hexZeroPad(r,i.width/8));const a=formatFixed(n,i.decimals);return new FixedNumber(_constructorGuard,r,a,i)}static fromBytes(e,t){null==t&&(t="fixed");const i=FixedFormat.from(t);if(arrayify(e).length>i.width/8)throw new Error("overflow");let n=BigNumber$1.from(e);i.signed&&(n=n.fromTwos(i.width));const r=n.toTwos((i.signed?0:1)+i.width).toHexString(),a=formatFixed(n,i.decimals);return new FixedNumber(_constructorGuard,r,a,i)}static from(e,t){if("string"==typeof e)return FixedNumber.fromString(e,t);if(isBytes(e))return FixedNumber.fromBytes(e,t);try{return FixedNumber.fromValue(e,0,t)}catch(i){if(i.code!==Logger.errors.INVALID_ARGUMENT)throw i}return logger$1.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!(!e||!e._isFixedNumber)}}const ONE=FixedNumber.from(1),BUMP=FixedNumber.from("0.5");var hash$3={},utils$r={},minimalisticAssert=assert$j;function assert$j(e,t){if(!e)throw new Error(t||"Assertion failed")}assert$j.equal=function(e,t,i){if(e!=t)throw new Error(i||"Assertion failed: "+e+" != "+t)};var inherits_browser={exports:{}};"function"==typeof Object.create?inherits_browser.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(e,t){if(t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}};var inherits_browserExports=inherits_browser.exports,assert$i=minimalisticAssert,inherits$V=inherits_browserExports;function isSurrogatePair(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function toArray$2(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var i=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)i.push(parseInt(e[r]+e[r+1],16))}else for(var n=0,r=0;r<e.length;r++){var a=e.charCodeAt(r);a<128?i[n++]=a:a<2048?(i[n++]=a>>6|192,i[n++]=63&a|128):isSurrogatePair(e,r)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++r)),i[n++]=a>>18|240,i[n++]=a>>12&63|128,i[n++]=a>>6&63|128,i[n++]=63&a|128):(i[n++]=a>>12|224,i[n++]=a>>6&63|128,i[n++]=63&a|128)}else for(r=0;r<e.length;r++)i[r]=0|e[r];return i}function toHex(e){for(var t="",i=0;i<e.length;i++)t+=zero2(e[i].toString(16));return t}function htonl(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function toHex32(e,t){for(var i="",n=0;n<e.length;n++){var r=e[n];"little"===t&&(r=htonl(r)),i+=zero8(r.toString(16))}return i}function zero2(e){return 1===e.length?"0"+e:e}function zero8(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}function join32(e,t,i,n){var r=i-t;assert$i(r%4==0);for(var a=new Array(r/4),o=0,s=t;o<a.length;o++,s+=4){var l;l="big"===n?e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s],a[o]=l>>>0}return a}function split32(e,t){for(var i=new Array(4*e.length),n=0,r=0;n<e.length;n++,r+=4){var a=e[n];"big"===t?(i[r]=a>>>24,i[r+1]=a>>>16&255,i[r+2]=a>>>8&255,i[r+3]=255&a):(i[r+3]=a>>>24,i[r+2]=a>>>16&255,i[r+1]=a>>>8&255,i[r]=255&a)}return i}function rotr32$1(e,t){return e>>>t|e<<32-t}function rotl32$2(e,t){return e<<t|e>>>32-t}function sum32$3(e,t){return e+t>>>0}function sum32_3$1(e,t,i){return e+t+i>>>0}function sum32_4$2(e,t,i,n){return e+t+i+n>>>0}function sum32_5$2(e,t,i,n,r){return e+t+i+n+r>>>0}function sum64$1(e,t,i,n){var r=e[t],a=n+e[t+1]>>>0,o=(a<n?1:0)+i+r;e[t]=o>>>0,e[t+1]=a}function sum64_hi$1(e,t,i,n){return(t+n>>>0<t?1:0)+e+i>>>0}function sum64_lo$1(e,t,i,n){return t+n>>>0}function sum64_4_hi$1(e,t,i,n,r,a,o,s){var l=0,c=t;return l+=(c=c+n>>>0)<t?1:0,l+=(c=c+a>>>0)<a?1:0,e+i+r+o+(l+=(c=c+s>>>0)<s?1:0)>>>0}function sum64_4_lo$1(e,t,i,n,r,a,o,s){return t+n+a+s>>>0}function sum64_5_hi$1(e,t,i,n,r,a,o,s,l,c){var u=0,d=t;return u+=(d=d+n>>>0)<t?1:0,u+=(d=d+a>>>0)<a?1:0,u+=(d=d+s>>>0)<s?1:0,e+i+r+o+l+(u+=(d=d+c>>>0)<c?1:0)>>>0}function sum64_5_lo$1(e,t,i,n,r,a,o,s,l,c){return t+n+a+s+c>>>0}function rotr64_hi$1(e,t,i){return(t<<32-i|e>>>i)>>>0}function rotr64_lo$1(e,t,i){return(e<<32-i|t>>>i)>>>0}function shr64_hi$1(e,t,i){return e>>>i}function shr64_lo$1(e,t,i){return(e<<32-i|t>>>i)>>>0}utils$r.inherits=inherits$V,utils$r.toArray=toArray$2,utils$r.toHex=toHex,utils$r.htonl=htonl,utils$r.toHex32=toHex32,utils$r.zero2=zero2,utils$r.zero8=zero8,utils$r.join32=join32,utils$r.split32=split32,utils$r.rotr32=rotr32$1,utils$r.rotl32=rotl32$2,utils$r.sum32=sum32$3,utils$r.sum32_3=sum32_3$1,utils$r.sum32_4=sum32_4$2,utils$r.sum32_5=sum32_5$2,utils$r.sum64=sum64$1,utils$r.sum64_hi=sum64_hi$1,utils$r.sum64_lo=sum64_lo$1,utils$r.sum64_4_hi=sum64_4_hi$1,utils$r.sum64_4_lo=sum64_4_lo$1,utils$r.sum64_5_hi=sum64_5_hi$1,utils$r.sum64_5_lo=sum64_5_lo$1,utils$r.rotr64_hi=rotr64_hi$1,utils$r.rotr64_lo=rotr64_lo$1,utils$r.shr64_hi=shr64_hi$1,utils$r.shr64_lo=shr64_lo$1;var common$7={},utils$q=utils$r,assert$h=minimalisticAssert;function BlockHash$4(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}common$7.BlockHash=BlockHash$4,BlockHash$4.prototype.update=function(e,t){if(e=utils$q.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var i=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-i,e.length),0===this.pending.length&&(this.pending=null),e=utils$q.join32(e,0,e.length-i,this.endian);for(var n=0;n<e.length;n+=this._delta32)this._update(e,n,n+this._delta32)}return this},BlockHash$4.prototype.digest=function(e){return this.update(this._pad()),assert$h(null===this.pending),this._digest(e)},BlockHash$4.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,i=t-(e+this.padLength)%t,n=new Array(i+this.padLength);n[0]=128;for(var r=1;r<i;r++)n[r]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)n[r++]=0;n[r++]=0,n[r++]=0,n[r++]=0,n[r++]=0,n[r++]=e>>>24&255,n[r++]=e>>>16&255,n[r++]=e>>>8&255,n[r++]=255&e}else for(n[r++]=255&e,n[r++]=e>>>8&255,n[r++]=e>>>16&255,n[r++]=e>>>24&255,n[r++]=0,n[r++]=0,n[r++]=0,n[r++]=0,a=8;a<this.padLength;a++)n[r++]=0;return n};var sha$4={},common$6={},utils$p=utils$r,rotr32=utils$p.rotr32;function ft_1$1(e,t,i,n){return 0===e?ch32$1(t,i,n):1===e||3===e?p32(t,i,n):2===e?maj32$1(t,i,n):void 0}function ch32$1(e,t,i){return e&t^~e&i}function maj32$1(e,t,i){return e&t^e&i^t&i}function p32(e,t,i){return e^t^i}function s0_256$1(e){return rotr32(e,2)^rotr32(e,13)^rotr32(e,22)}function s1_256$1(e){return rotr32(e,6)^rotr32(e,11)^rotr32(e,25)}function g0_256$1(e){return rotr32(e,7)^rotr32(e,18)^e>>>3}function g1_256$1(e){return rotr32(e,17)^rotr32(e,19)^e>>>10}common$6.ft_1=ft_1$1,common$6.ch32=ch32$1,common$6.maj32=maj32$1,common$6.p32=p32,common$6.s0_256=s0_256$1,common$6.s1_256=s1_256$1,common$6.g0_256=g0_256$1,common$6.g1_256=g1_256$1;var utils$o=utils$r,common$5=common$7,shaCommon$1=common$6,rotl32$1=utils$o.rotl32,sum32$2=utils$o.sum32,sum32_5$1=utils$o.sum32_5,ft_1=shaCommon$1.ft_1,BlockHash$3=common$5.BlockHash,sha1_K=[1518500249,1859775393,2400959708,3395469782];function SHA1(){if(!(this instanceof SHA1))return new SHA1;BlockHash$3.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}utils$o.inherits(SHA1,BlockHash$3);var _1=SHA1;SHA1.blockSize=512,SHA1.outSize=160,SHA1.hmacStrength=80,SHA1.padLength=64,SHA1.prototype._update=function(e,t){for(var i=this.W,n=0;n<16;n++)i[n]=e[t+n];for(;n<i.length;n++)i[n]=rotl32$1(i[n-3]^i[n-8]^i[n-14]^i[n-16],1);var r=this.h[0],a=this.h[1],o=this.h[2],s=this.h[3],l=this.h[4];for(n=0;n<i.length;n++){var c=~~(n/20),u=sum32_5$1(rotl32$1(r,5),ft_1(c,a,o,s),l,i[n],sha1_K[c]);l=s,s=o,o=rotl32$1(a,30),a=r,r=u}this.h[0]=sum32$2(this.h[0],r),this.h[1]=sum32$2(this.h[1],a),this.h[2]=sum32$2(this.h[2],o),this.h[3]=sum32$2(this.h[3],s),this.h[4]=sum32$2(this.h[4],l)},SHA1.prototype._digest=function(e){return"hex"===e?utils$o.toHex32(this.h,"big"):utils$o.split32(this.h,"big")};var utils$n=utils$r,common$4=common$7,shaCommon=common$6,assert$g=minimalisticAssert,sum32$1=utils$n.sum32,sum32_4$1=utils$n.sum32_4,sum32_5=utils$n.sum32_5,ch32=shaCommon.ch32,maj32=shaCommon.maj32,s0_256=shaCommon.s0_256,s1_256=shaCommon.s1_256,g0_256=shaCommon.g0_256,g1_256=shaCommon.g1_256,BlockHash$2=common$4.BlockHash,sha256_K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function SHA256$1(){if(!(this instanceof SHA256$1))return new SHA256$1;BlockHash$2.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=sha256_K,this.W=new Array(64)}utils$n.inherits(SHA256$1,BlockHash$2);var _256=SHA256$1;SHA256$1.blockSize=512,SHA256$1.outSize=256,SHA256$1.hmacStrength=192,SHA256$1.padLength=64,SHA256$1.prototype._update=function(e,t){for(var i=this.W,n=0;n<16;n++)i[n]=e[t+n];for(;n<i.length;n++)i[n]=sum32_4$1(g1_256(i[n-2]),i[n-7],g0_256(i[n-15]),i[n-16]);var r=this.h[0],a=this.h[1],o=this.h[2],s=this.h[3],l=this.h[4],c=this.h[5],u=this.h[6],d=this.h[7];for(assert$g(this.k.length===i.length),n=0;n<i.length;n++){var h=sum32_5(d,s1_256(l),ch32(l,c,u),this.k[n],i[n]),p=sum32$1(s0_256(r),maj32(r,a,o));d=u,u=c,c=l,l=sum32$1(s,h),s=o,o=a,a=r,r=sum32$1(h,p)}this.h[0]=sum32$1(this.h[0],r),this.h[1]=sum32$1(this.h[1],a),this.h[2]=sum32$1(this.h[2],o),this.h[3]=sum32$1(this.h[3],s),this.h[4]=sum32$1(this.h[4],l),this.h[5]=sum32$1(this.h[5],c),this.h[6]=sum32$1(this.h[6],u),this.h[7]=sum32$1(this.h[7],d)},SHA256$1.prototype._digest=function(e){return"hex"===e?utils$n.toHex32(this.h,"big"):utils$n.split32(this.h,"big")};var utils$m=utils$r,SHA256=_256;function SHA224(){if(!(this instanceof SHA224))return new SHA224;SHA256.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}utils$m.inherits(SHA224,SHA256);var _224=SHA224;SHA224.blockSize=512,SHA224.outSize=224,SHA224.hmacStrength=192,SHA224.padLength=64,SHA224.prototype._digest=function(e){return"hex"===e?utils$m.toHex32(this.h.slice(0,7),"big"):utils$m.split32(this.h.slice(0,7),"big")};var utils$l=utils$r,common$3=common$7,assert$f=minimalisticAssert,rotr64_hi=utils$l.rotr64_hi,rotr64_lo=utils$l.rotr64_lo,shr64_hi=utils$l.shr64_hi,shr64_lo=utils$l.shr64_lo,sum64=utils$l.sum64,sum64_hi=utils$l.sum64_hi,sum64_lo=utils$l.sum64_lo,sum64_4_hi=utils$l.sum64_4_hi,sum64_4_lo=utils$l.sum64_4_lo,sum64_5_hi=utils$l.sum64_5_hi,sum64_5_lo=utils$l.sum64_5_lo,BlockHash$1=common$3.BlockHash,sha512_K=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function SHA512$2(){if(!(this instanceof SHA512$2))return new SHA512$2;BlockHash$1.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=sha512_K,this.W=new Array(160)}utils$l.inherits(SHA512$2,BlockHash$1);var _512=SHA512$2;function ch64_hi(e,t,i,n,r){var a=e&i^~e&r;return a<0&&(a+=4294967296),a}function ch64_lo(e,t,i,n,r,a){var o=t&n^~t&a;return o<0&&(o+=4294967296),o}function maj64_hi(e,t,i,n,r){var a=e&i^e&r^i&r;return a<0&&(a+=4294967296),a}function maj64_lo(e,t,i,n,r,a){var o=t&n^t&a^n&a;return o<0&&(o+=4294967296),o}function s0_512_hi(e,t){var i=rotr64_hi(e,t,28)^rotr64_hi(t,e,2)^rotr64_hi(t,e,7);return i<0&&(i+=4294967296),i}function s0_512_lo(e,t){var i=rotr64_lo(e,t,28)^rotr64_lo(t,e,2)^rotr64_lo(t,e,7);return i<0&&(i+=4294967296),i}function s1_512_hi(e,t){var i=rotr64_hi(e,t,14)^rotr64_hi(e,t,18)^rotr64_hi(t,e,9);return i<0&&(i+=4294967296),i}function s1_512_lo(e,t){var i=rotr64_lo(e,t,14)^rotr64_lo(e,t,18)^rotr64_lo(t,e,9);return i<0&&(i+=4294967296),i}function g0_512_hi(e,t){var i=rotr64_hi(e,t,1)^rotr64_hi(e,t,8)^shr64_hi(e,t,7);return i<0&&(i+=4294967296),i}function g0_512_lo(e,t){var i=rotr64_lo(e,t,1)^rotr64_lo(e,t,8)^shr64_lo(e,t,7);return i<0&&(i+=4294967296),i}function g1_512_hi(e,t){var i=rotr64_hi(e,t,19)^rotr64_hi(t,e,29)^shr64_hi(e,t,6);return i<0&&(i+=4294967296),i}function g1_512_lo(e,t){var i=rotr64_lo(e,t,19)^rotr64_lo(t,e,29)^shr64_lo(e,t,6);return i<0&&(i+=4294967296),i}SHA512$2.blockSize=1024,SHA512$2.outSize=512,SHA512$2.hmacStrength=192,SHA512$2.padLength=128,SHA512$2.prototype._prepareBlock=function(e,t){for(var i=this.W,n=0;n<32;n++)i[n]=e[t+n];for(;n<i.length;n+=2){var r=g1_512_hi(i[n-4],i[n-3]),a=g1_512_lo(i[n-4],i[n-3]),o=i[n-14],s=i[n-13],l=g0_512_hi(i[n-30],i[n-29]),c=g0_512_lo(i[n-30],i[n-29]),u=i[n-32],d=i[n-31];i[n]=sum64_4_hi(r,a,o,s,l,c,u,d),i[n+1]=sum64_4_lo(r,a,o,s,l,c,u,d)}},SHA512$2.prototype._update=function(e,t){this._prepareBlock(e,t);var i=this.W,n=this.h[0],r=this.h[1],a=this.h[2],o=this.h[3],s=this.h[4],l=this.h[5],c=this.h[6],u=this.h[7],d=this.h[8],h=this.h[9],p=this.h[10],m=this.h[11],f=this.h[12],g=this.h[13],_=this.h[14],v=this.h[15];assert$f(this.k.length===i.length);for(var y=0;y<i.length;y+=2){var b=_,S=v,E=s1_512_hi(d,h),w=s1_512_lo(d,h),C=ch64_hi(d,h,p,m,f),T=ch64_lo(d,h,p,m,f,g),A=this.k[y],x=this.k[y+1],M=i[y],R=i[y+1],I=sum64_5_hi(b,S,E,w,C,T,A,x,M,R),k=sum64_5_lo(b,S,E,w,C,T,A,x,M,R);b=s0_512_hi(n,r),S=s0_512_lo(n,r),E=maj64_hi(n,r,a,o,s),w=maj64_lo(n,r,a,o,s,l);var N=sum64_hi(b,S,E,w),O=sum64_lo(b,S,E,w);_=f,v=g,f=p,g=m,p=d,m=h,d=sum64_hi(c,u,I,k),h=sum64_lo(u,u,I,k),c=s,u=l,s=a,l=o,a=n,o=r,n=sum64_hi(I,k,N,O),r=sum64_lo(I,k,N,O)}sum64(this.h,0,n,r),sum64(this.h,2,a,o),sum64(this.h,4,s,l),sum64(this.h,6,c,u),sum64(this.h,8,d,h),sum64(this.h,10,p,m),sum64(this.h,12,f,g),sum64(this.h,14,_,v)},SHA512$2.prototype._digest=function(e){return"hex"===e?utils$l.toHex32(this.h,"big"):utils$l.split32(this.h,"big")};var utils$k=utils$r,SHA512$1=_512;function SHA384(){if(!(this instanceof SHA384))return new SHA384;SHA512$1.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}utils$k.inherits(SHA384,SHA512$1);var _384=SHA384;SHA384.blockSize=1024,SHA384.outSize=384,SHA384.hmacStrength=192,SHA384.padLength=128,SHA384.prototype._digest=function(e){return"hex"===e?utils$k.toHex32(this.h.slice(0,12),"big"):utils$k.split32(this.h.slice(0,12),"big")},sha$4.sha1=_1,sha$4.sha224=_224,sha$4.sha256=_256,sha$4.sha384=_384,sha$4.sha512=_512;var ripemd={},utils$j=utils$r,common$2=common$7,rotl32=utils$j.rotl32,sum32=utils$j.sum32,sum32_3=utils$j.sum32_3,sum32_4=utils$j.sum32_4,BlockHash=common$2.BlockHash;function RIPEMD160$4(){if(!(this instanceof RIPEMD160$4))return new RIPEMD160$4;BlockHash.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(e,t,i,n){return e<=15?t^i^n:e<=31?t&i|~t&n:e<=47?(t|~i)^n:e<=63?t&n|i&~n:t^(i|~n)}function K$5(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function Kh(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}utils$j.inherits(RIPEMD160$4,BlockHash),ripemd.ripemd160=RIPEMD160$4,RIPEMD160$4.blockSize=512,RIPEMD160$4.outSize=160,RIPEMD160$4.hmacStrength=192,RIPEMD160$4.padLength=64,RIPEMD160$4.prototype._update=function(e,t){for(var i=this.h[0],n=this.h[1],a=this.h[2],o=this.h[3],l=this.h[4],c=i,u=n,d=a,h=o,p=l,m=0;m<80;m++){var g=sum32(rotl32(sum32_4(i,f(m,n,a,o),e[r[m]+t],K$5(m)),s[m]),l);i=l,l=o,o=rotl32(a,10),a=n,n=g,g=sum32(rotl32(sum32_4(c,f(79-m,u,d,h),e[rh[m]+t],Kh(m)),sh[m]),p),c=p,p=h,h=rotl32(d,10),d=u,u=g}g=sum32_3(this.h[1],a,h),this.h[1]=sum32_3(this.h[2],o,p),this.h[2]=sum32_3(this.h[3],l,c),this.h[3]=sum32_3(this.h[4],i,u),this.h[4]=sum32_3(this.h[0],n,d),this.h[0]=g},RIPEMD160$4.prototype._digest=function(e){return"hex"===e?utils$j.toHex32(this.h,"little"):utils$j.split32(this.h,"little")};var r=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],rh=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],s=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],sh=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],utils$i=utils$r,assert$e=minimalisticAssert;function Hmac$3(e,t,i){if(!(this instanceof Hmac$3))return new Hmac$3(e,t,i);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(utils$i.toArray(t,i))}var hmac=Hmac$3,hash3;Hmac$3.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),assert$e(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},Hmac$3.prototype.update=function(e,t){return this.inner.update(e,t),this},Hmac$3.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)},hash3=hash$3,hash3.utils=utils$r,hash3.common=common$7,hash3.sha=sha$4,hash3.ripemd=ripemd,hash3.hmac=hmac,hash3.sha1=hash3.sha.sha1,hash3.sha256=hash3.sha.sha256,hash3.sha224=hash3.sha.sha224,hash3.sha384=hash3.sha.sha384,hash3.sha512=hash3.sha.sha512,hash3.ripemd160=hash3.ripemd.ripemd160;const version$5="units/5.8.0",logger=new Logger(version$5),names=["wei","kwei","mwei","gwei","szabo","finney","ether"];function commify$1(e){const t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&logger.throwArgumentError("invalid value","value",e);let i=t[0],n="";for("-"===i.substring(0,1)&&(n="-",i=i.substring(1));"0"===i.substring(0,1);)i=i.substring(1);""===i&&(i="0");let r="";for(2===t.length&&(r="."+(t[1]||"0"));r.length>2&&"0"===r[r.length-1];)r=r.substring(0,r.length-1);const a=[];for(;i.length;){if(i.length<=3){a.unshift(i);break}{const e=i.length-3;a.unshift(i.substring(e)),i=i.substring(0,e)}}return n+a.join(",")+r}function formatUnits(e,t){if("string"==typeof t){const e=names.indexOf(t);-1!==e&&(t=3*e)}return formatFixed(e,null!=t?t:18)}var dayjs_min={exports:{}};dayjs_min.exports=function(){var e=1e3,t=6e4,i=36e5,n="millisecond",r="second",a="minute",o="hour",s="day",l="week",c="month",u="quarter",d="year",h="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],i=e%100;return"["+e+(t[(i-20)%10]||t[i]||t[0])+"]"}},_=function(e,t,i){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(i)+e},v={s:_,z:function(e){var t=-e.utcOffset(),i=Math.abs(t),n=Math.floor(i/60),r=i%60;return(t<=0?"+":"-")+_(n,2,"0")+":"+_(r,2,"0")},m:function e(t,i){if(t.date()<i.date())return-e(i,t);var n=12*(i.year()-t.year())+(i.month()-t.month()),r=t.clone().add(n,c),a=i-r<0,o=t.clone().add(n+(a?-1:1),c);return+(-(n+(i-r)/(a?r-o:o-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:s,D:h,h:o,m:a,s:r,ms:n,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",b={};b[y]=g;var S="$isDayjsObject",E=function(e){return e instanceof A||!(!e||!e[S])},w=function e(t,i,n){var r;if(!t)return y;if("string"==typeof t){var a=t.toLowerCase();b[a]&&(r=a),i&&(b[a]=i,r=a);var o=t.split("-");if(!r&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,r=s}return!n&&r&&(y=r),r||!n&&y},C=function(e,t){if(E(e))return e.clone();var i="object"==typeof t?t:{};return i.date=e,i.args=arguments,new A(i)},T=v;T.l=w,T.i=E,T.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var A=function(){function g(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[S]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,i=e.utc;if(null===t)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(m);if(n){var r=n[2]-1||0,a=(n[7]||"0").substring(0,3);return i?new Date(Date.UTC(n[1],r,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],r,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return!(this.$d.toString()===p)},_.isSame=function(e,t){var i=C(e);return this.startOf(t)<=i&&i<=this.endOf(t)},_.isAfter=function(e,t){return C(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<C(e)},_.$g=function(e,t,i){return T.u(e)?this[t]:this.set(i,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var i=this,n=!!T.u(t)||t,u=T.p(e),p=function(e,t){var r=T.w(i.$u?Date.UTC(i.$y,t,e):new Date(i.$y,t,e),i);return n?r:r.endOf(s)},m=function(e,t){return T.w(i.toDate()[e].apply(i.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),i)},f=this.$W,g=this.$M,_=this.$D,v="set"+(this.$u?"UTC":"");switch(u){case d:return n?p(1,0):p(31,11);case c:return n?p(1,g):p(0,g+1);case l:var y=this.$locale().weekStart||0,b=(f<y?f+7:f)-y;return p(n?_-b:_+(6-b),g);case s:case h:return m(v+"Hours",0);case o:return m(v+"Minutes",1);case a:return m(v+"Seconds",2);case r:return m(v+"Milliseconds",3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var i,l=T.p(e),u="set"+(this.$u?"UTC":""),p=(i={},i[s]=u+"Date",i[h]=u+"Date",i[c]=u+"Month",i[d]=u+"FullYear",i[o]=u+"Hours",i[a]=u+"Minutes",i[r]=u+"Seconds",i[n]=u+"Milliseconds",i)[l],m=l===s?this.$D+(t-this.$W):t;if(l===c||l===d){var f=this.clone().set(h,1);f.$d[p](m),f.init(),this.$d=f.set(h,Math.min(this.$D,f.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(n,u){var h,p=this;n=Number(n);var m=T.p(u),f=function(e){var t=C(p);return T.w(t.date(t.date()+Math.round(e*n)),p)};if(m===c)return this.set(c,this.$M+n);if(m===d)return this.set(d,this.$y+n);if(m===s)return f(1);if(m===l)return f(7);var g=(h={},h[a]=t,h[o]=i,h[r]=e,h)[m]||1,_=this.$d.getTime()+n*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,i=this.$locale();if(!this.isValid())return i.invalidDate||p;var n=e||"YYYY-MM-DDTHH:mm:ssZ",r=T.z(this),a=this.$H,o=this.$m,s=this.$M,l=i.weekdays,c=i.months,u=i.meridiem,d=function(e,i,r,a){return e&&(e[i]||e(t,n))||r[i].slice(0,a)},h=function(e){return T.s(a%12||12,e,"0")},m=u||function(e,t,i){var n=e<12?"AM":"PM";return i?n.toLowerCase():n};return n.replace(f,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return T.s(t.$y,4,"0");case"M":return s+1;case"MM":return T.s(s+1,2,"0");case"MMM":return d(i.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return T.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(i.weekdaysMin,t.$W,l,2);case"ddd":return d(i.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(a);case"HH":return T.s(a,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return m(a,o,!0);case"A":return m(a,o,!1);case"m":return String(o);case"mm":return T.s(o,2,"0");case"s":return String(t.$s);case"ss":return T.s(t.$s,2,"0");case"SSS":return T.s(t.$ms,3,"0");case"Z":return r}return null}(e)||r.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(n,h,p){var m,f=this,g=T.p(h),_=C(n),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(f,_)};switch(g){case d:m=b()/12;break;case c:m=b();break;case u:m=b()/3;break;case l:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/i;break;case a:m=y/t;break;case r:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(c).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var i=this.clone(),n=w(e,t,!0);return n&&(i.$L=n),i},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),x=A.prototype;return C.prototype=x,[["$ms",n],["$s",r],["$m",a],["$H",o],["$W",s],["$M",c],["$y",d],["$D",h]].forEach(function(e){x[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),C.extend=function(e,t){return e.$i||(e(t,A,C),e.$i=!0),C},C.locale=w,C.isDayjs=E,C.unix=function(e){return C(1e3*e)},C.en=b[y],C.Ls=b,C.p={},C}();var dayjs_minExports=dayjs_min.exports;const dayjs=getDefaultExportFromCjs$1(dayjs_minExports);var isNumeric$2=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,mathceil=Math.ceil,mathfloor=Math.floor,bignumberError="[BigNumber Error] ",tooManyDigits=bignumberError+"Number primitive has more than 15 significant digits: ",BASE=1e14,LOG_BASE=14,MAX_SAFE_INTEGER=9007199254740991,POWS_TEN=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],SQRT_BASE=1e7,MAX=1e9;function clone$3(e){var t,i,n,r,a,o=b.prototype={constructor:b,toString:null,valueOf:null},s=new b(1),l=20,c=4,u=-7,d=21,h=-1e7,p=1e7,m=!1,f=1,g=0,_={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},v="0123456789abcdefghijklmnopqrstuvwxyz",y=!0;function b(e,t){var r,a,o,s,u,d,m,f,g=this;if(!(g instanceof b))return new b(e,t);if(null==t){if(e&&!0===e._isBigNumber)return g.s=e.s,void(!e.c||e.e>p?g.c=g.e=null:e.e<h?g.c=[g.e=0]:(g.e=e.e,g.c=e.c.slice()));if((d="number"==typeof e)&&0*e==0){if(g.s=1/e<0?(e=-e,-1):1,e===~~e){for(s=0,u=e;u>=10;u/=10,s++);return void(s>p?g.c=g.e=null:(g.e=s,g.c=[e]))}f=String(e)}else{if(!isNumeric$2.test(f=String(e)))return n(g,f,d);g.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(s=f.indexOf("."))>-1&&(f=f.replace(".","")),(u=f.search(/e/i))>0?(s<0&&(s=u),s+=+f.slice(u+1),f=f.substring(0,u)):s<0&&(s=f.length)}else{if(intCheck(t,2,v.length,"Base"),10==t&&y)return C(g=new b(e),l+g.e+1,c);if(f=String(e),d="number"==typeof e){if(0*e!=0)return n(g,f,d,t);if(g.s=1/e<0?(f=f.slice(1),-1):1,b.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(tooManyDigits+e)}else g.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(r=v.slice(0,t),s=u=0,m=f.length;u<m;u++)if(r.indexOf(a=f.charAt(u))<0){if("."==a){if(u>s){s=m;continue}}else if(!o&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){o=!0,u=-1,s=0;continue}return n(g,String(e),d,t)}d=!1,(s=(f=i(f,t,10,g.s)).indexOf("."))>-1?f=f.replace(".",""):s=f.length}for(u=0;48===f.charCodeAt(u);u++);for(m=f.length;48===f.charCodeAt(--m););if(f=f.slice(u,++m)){if(m-=u,d&&b.DEBUG&&m>15&&(e>MAX_SAFE_INTEGER||e!==mathfloor(e)))throw Error(tooManyDigits+g.s*e);if((s=s-u-1)>p)g.c=g.e=null;else if(s<h)g.c=[g.e=0];else{if(g.e=s,g.c=[],u=(s+1)%LOG_BASE,s<0&&(u+=LOG_BASE),u<m){for(u&&g.c.push(+f.slice(0,u)),m-=LOG_BASE;u<m;)g.c.push(+f.slice(u,u+=LOG_BASE));u=LOG_BASE-(f=f.slice(u)).length}else u-=m;for(;u--;f+="0");g.c.push(+f)}}else g.c=[g.e=0]}function S(e,t,i,n){var r,a,o,s,l;if(null==i?i=c:intCheck(i,0,8),!e.c)return e.toString();if(r=e.c[0],o=e.e,null==t)l=coeffToString(e.c),l=1==n||2==n&&(o<=u||o>=d)?toExponential(l,o):toFixedPoint(l,o,"0");else if(a=(e=C(new b(e),t,i)).e,s=(l=coeffToString(e.c)).length,1==n||2==n&&(t<=a||a<=u)){for(;s<t;l+="0",s++);l=toExponential(l,a)}else if(t-=o+(2===n&&a>o),l=toFixedPoint(l,a,"0"),a+1>s){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=a-s)>0)for(a+1==s&&(l+=".");t--;l+="0");return e.s<0&&r?"-"+l:l}function E(e,t){for(var i,n,r=1,a=new b(e[0]);r<e.length;r++)(!(n=new b(e[r])).s||(i=compare$2(a,n))===t||0===i&&a.s===t)&&(a=n);return a}function w(e,t,i){for(var n=1,r=t.length;!t[--r];t.pop());for(r=t[0];r>=10;r/=10,n++);return(i=n+i*LOG_BASE-1)>p?e.c=e.e=null:i<h?e.c=[e.e=0]:(e.e=i,e.c=t),e}function C(e,t,i,n){var r,a,o,s,l,c,u,d=e.c,m=POWS_TEN;if(d){e:{for(r=1,s=d[0];s>=10;s/=10,r++);if((a=t-r)<0)a+=LOG_BASE,o=t,l=d[c=0],u=mathfloor(l/m[r-o-1]%10);else if((c=mathceil((a+1)/LOG_BASE))>=d.length){if(!n)break e;for(;d.length<=c;d.push(0));l=u=0,r=1,o=(a%=LOG_BASE)-LOG_BASE+1}else{for(l=s=d[c],r=1;s>=10;s/=10,r++);u=(o=(a%=LOG_BASE)-LOG_BASE+r)<0?0:mathfloor(l/m[r-o-1]%10)}if(n=n||t<0||null!=d[c+1]||(o<0?l:l%m[r-o-1]),n=i<4?(u||n)&&(0==i||i==(e.s<0?3:2)):u>5||5==u&&(4==i||n||6==i&&(a>0?o>0?l/m[r-o]:0:d[c-1])%10&1||i==(e.s<0?8:7)),t<1||!d[0])return d.length=0,n?(t-=e.e+1,d[0]=m[(LOG_BASE-t%LOG_BASE)%LOG_BASE],e.e=-t||0):d[0]=e.e=0,e;if(0==a?(d.length=c,s=1,c--):(d.length=c+1,s=m[LOG_BASE-a],d[c]=o>0?mathfloor(l/m[r-o]%m[o])*s:0),n)for(;;){if(0==c){for(a=1,o=d[0];o>=10;o/=10,a++);for(o=d[0]+=s,s=1;o>=10;o/=10,s++);a!=s&&(e.e++,d[0]==BASE&&(d[0]=1));break}if(d[c]+=s,d[c]!=BASE)break;d[c--]=0,s=1}for(a=d.length;0===d[--a];d.pop());}e.e>p?e.c=e.e=null:e.e<h&&(e.c=[e.e=0])}return e}function T(e){var t,i=e.e;return null===i?e.toString():(t=coeffToString(e.c),t=i<=u||i>=d?toExponential(t,i):toFixedPoint(t,i,"0"),e.s<0?"-"+t:t)}return b.clone=clone$3,b.ROUND_UP=0,b.ROUND_DOWN=1,b.ROUND_CEIL=2,b.ROUND_FLOOR=3,b.ROUND_HALF_UP=4,b.ROUND_HALF_DOWN=5,b.ROUND_HALF_EVEN=6,b.ROUND_HALF_CEIL=7,b.ROUND_HALF_FLOOR=8,b.EUCLID=9,b.config=b.set=function(e){var t,i;if(null!=e){if("object"!=typeof e)throw Error(bignumberError+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(intCheck(i=e[t],0,MAX,t),l=i),e.hasOwnProperty(t="ROUNDING_MODE")&&(intCheck(i=e[t],0,8,t),c=i),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((i=e[t])&&i.pop?(intCheck(i[0],-MAX,0,t),intCheck(i[1],0,MAX,t),u=i[0],d=i[1]):(intCheck(i,-MAX,MAX,t),u=-(d=i<0?-i:i))),e.hasOwnProperty(t="RANGE"))if((i=e[t])&&i.pop)intCheck(i[0],-MAX,-1,t),intCheck(i[1],1,MAX,t),h=i[0],p=i[1];else{if(intCheck(i,-MAX,MAX,t),!i)throw Error(bignumberError+t+" cannot be zero: "+i);h=-(p=i<0?-i:i)}if(e.hasOwnProperty(t="CRYPTO")){if((i=e[t])!==!!i)throw Error(bignumberError+t+" not true or false: "+i);if(i){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw m=!i,Error(bignumberError+"crypto unavailable");m=i}else m=i}if(e.hasOwnProperty(t="MODULO_MODE")&&(intCheck(i=e[t],0,9,t),f=i),e.hasOwnProperty(t="POW_PRECISION")&&(intCheck(i=e[t],0,MAX,t),g=i),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(i=e[t]))throw Error(bignumberError+t+" not an object: "+i);_=i}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(i=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(i))throw Error(bignumberError+t+" invalid: "+i);y="0123456789"==i.slice(0,10),v=i}}return{DECIMAL_PLACES:l,ROUNDING_MODE:c,EXPONENTIAL_AT:[u,d],RANGE:[h,p],CRYPTO:m,MODULO_MODE:f,POW_PRECISION:g,FORMAT:_,ALPHABET:v}},b.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!b.DEBUG)return!0;var t,i,n=e.c,r=e.e,a=e.s;e:if("[object Array]"=={}.toString.call(n)){if((1===a||-1===a)&&r>=-MAX&&r<=MAX&&r===mathfloor(r)){if(0===n[0]){if(0===r&&1===n.length)return!0;break e}if((t=(r+1)%LOG_BASE)<1&&(t+=LOG_BASE),String(n[0]).length==t){for(t=0;t<n.length;t++)if((i=n[t])<0||i>=BASE||i!==mathfloor(i))break e;if(0!==i)return!0}}}else if(null===n&&null===r&&(null===a||1===a||-1===a))return!0;throw Error(bignumberError+"Invalid BigNumber: "+e)},b.maximum=b.max=function(){return E(arguments,-1)},b.minimum=b.min=function(){return E(arguments,1)},b.random=(r=9007199254740992,a=Math.random()*r&2097151?function(){return mathfloor(Math.random()*r)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,i,n,r,o,c=0,u=[],d=new b(s);if(null==e?e=l:intCheck(e,0,MAX),r=mathceil(e/LOG_BASE),m)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(r*=2));c<r;)(o=131072*t[c]+(t[c+1]>>>11))>=9e15?(i=crypto.getRandomValues(new Uint32Array(2)),t[c]=i[0],t[c+1]=i[1]):(u.push(o%1e14),c+=2);c=r/2}else{if(!crypto.randomBytes)throw m=!1,Error(bignumberError+"crypto unavailable");for(t=crypto.randomBytes(r*=7);c<r;)(o=281474976710656*(31&t[c])+1099511627776*t[c+1]+4294967296*t[c+2]+16777216*t[c+3]+(t[c+4]<<16)+(t[c+5]<<8)+t[c+6])>=9e15?crypto.randomBytes(7).copy(t,c):(u.push(o%1e14),c+=7);c=r/7}if(!m)for(;c<r;)(o=a())<9e15&&(u[c++]=o%1e14);for(r=u[--c],e%=LOG_BASE,r&&e&&(o=POWS_TEN[LOG_BASE-e],u[c]=mathfloor(r/o)*o);0===u[c];u.pop(),c--);if(c<0)u=[n=0];else{for(n=-1;0===u[0];u.splice(0,1),n-=LOG_BASE);for(c=1,o=u[0];o>=10;o/=10,c++);c<LOG_BASE&&(n-=LOG_BASE-c)}return d.e=n,d.c=u,d}),b.sum=function(){for(var e=1,t=arguments,i=new b(t[0]);e<t.length;)i=i.plus(t[e++]);return i},i=function(){var e="0123456789";function i(e,t,i,n){for(var r,a,o=[0],s=0,l=e.length;s<l;){for(a=o.length;a--;o[a]*=t);for(o[0]+=n.indexOf(e.charAt(s++)),r=0;r<o.length;r++)o[r]>i-1&&(null==o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/i|0,o[r]%=i)}return o.reverse()}return function(n,r,a,o,s){var u,d,h,p,m,f,_,y,S=n.indexOf("."),E=l,w=c;for(S>=0&&(p=g,g=0,n=n.replace(".",""),f=(y=new b(r)).pow(n.length-S),g=p,y.c=i(toFixedPoint(coeffToString(f.c),f.e,"0"),10,a,e),y.e=y.c.length),h=p=(_=i(n,r,a,s?(u=v,e):(u=e,v))).length;0==_[--p];_.pop());if(!_[0])return u.charAt(0);if(S<0?--h:(f.c=_,f.e=h,f.s=o,_=(f=t(f,y,E,w,a)).c,m=f.r,h=f.e),S=_[d=h+E+1],p=a/2,m=m||d<0||null!=_[d+1],m=w<4?(null!=S||m)&&(0==w||w==(f.s<0?3:2)):S>p||S==p&&(4==w||m||6==w&&1&_[d-1]||w==(f.s<0?8:7)),d<1||!_[0])n=m?toFixedPoint(u.charAt(1),-E,u.charAt(0)):u.charAt(0);else{if(_.length=d,m)for(--a;++_[--d]>a;)_[d]=0,d||(++h,_=[1].concat(_));for(p=_.length;!_[--p];);for(S=0,n="";S<=p;n+=u.charAt(_[S++]));n=toFixedPoint(n,h,u.charAt(0))}return n}}(),t=function(){function e(e,t,i){var n,r,a,o,s=0,l=e.length,c=t%SQRT_BASE,u=t/SQRT_BASE|0;for(e=e.slice();l--;)s=((r=c*(a=e[l]%SQRT_BASE)+(n=u*a+(o=e[l]/SQRT_BASE|0)*c)%SQRT_BASE*SQRT_BASE+s)/i|0)+(n/SQRT_BASE|0)+u*o,e[l]=r%i;return s&&(e=[s].concat(e)),e}function t(e,t,i,n){var r,a;if(i!=n)a=i>n?1:-1;else for(r=a=0;r<i;r++)if(e[r]!=t[r]){a=e[r]>t[r]?1:-1;break}return a}function i(e,t,i,n){for(var r=0;i--;)e[i]-=r,r=e[i]<t[i]?1:0,e[i]=r*n+e[i]-t[i];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,r,a,o,s){var l,c,u,d,h,p,m,f,g,_,v,y,S,E,w,T,A,x=n.s==r.s?1:-1,M=n.c,R=r.c;if(!(M&&M[0]&&R&&R[0]))return new b(n.s&&r.s&&(M?!R||M[0]!=R[0]:R)?M&&0==M[0]||!R?0*x:x/0:NaN);for(g=(f=new b(x)).c=[],x=a+(c=n.e-r.e)+1,s||(s=BASE,c=bitFloor(n.e/LOG_BASE)-bitFloor(r.e/LOG_BASE),x=x/LOG_BASE|0),u=0;R[u]==(M[u]||0);u++);if(R[u]>(M[u]||0)&&c--,x<0)g.push(1),d=!0;else{for(E=M.length,T=R.length,u=0,x+=2,(h=mathfloor(s/(R[0]+1)))>1&&(R=e(R,h,s),M=e(M,h,s),T=R.length,E=M.length),S=T,v=(_=M.slice(0,T)).length;v<T;_[v++]=0);A=R.slice(),A=[0].concat(A),w=R[0],R[1]>=s/2&&w++;do{if(h=0,(l=t(R,_,T,v))<0){if(y=_[0],T!=v&&(y=y*s+(_[1]||0)),(h=mathfloor(y/w))>1)for(h>=s&&(h=s-1),m=(p=e(R,h,s)).length,v=_.length;1==t(p,_,m,v);)h--,i(p,T<m?A:R,m,s),m=p.length,l=1;else 0==h&&(l=h=1),m=(p=R.slice()).length;if(m<v&&(p=[0].concat(p)),i(_,p,v,s),v=_.length,-1==l)for(;t(R,_,T,v)<1;)h++,i(_,T<v?A:R,v,s),v=_.length}else 0===l&&(h++,_=[0]);g[u++]=h,_[0]?_[v++]=M[S]||0:(_=[M[S]],v=1)}while((S++<E||null!=_[0])&&x--);d=null!=_[0],g[0]||g.splice(0,1)}if(s==BASE){for(u=1,x=g[0];x>=10;x/=10,u++);C(f,a+(f.e=u+c*LOG_BASE-1)+1,o,d)}else f.e=c,f.r=+d;return f}}(),n=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,i=/^\.([^.]+)$/,n=/^-?(Infinity|NaN)$/,r=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(a,o,s,l){var c,u=s?o:o.replace(r,"");if(n.test(u))a.s=isNaN(u)?null:u<0?-1:1;else{if(!s&&(u=u.replace(e,function(e,t,i){return c="x"==(i=i.toLowerCase())?16:"b"==i?2:8,l&&l!=c?e:t}),l&&(c=l,u=u.replace(t,"$1").replace(i,"0.$1")),o!=u))return new b(u,c);if(b.DEBUG)throw Error(bignumberError+"Not a"+(l?" base "+l:"")+" number: "+o);a.s=null}a.c=a.e=null}}(),o.absoluteValue=o.abs=function(){var e=new b(this);return e.s<0&&(e.s=1),e},o.comparedTo=function(e,t){return compare$2(this,new b(e,t))},o.decimalPlaces=o.dp=function(e,t){var i,n,r,a=this;if(null!=e)return intCheck(e,0,MAX),null==t?t=c:intCheck(t,0,8),C(new b(a),e+a.e+1,t);if(!(i=a.c))return null;if(n=((r=i.length-1)-bitFloor(this.e/LOG_BASE))*LOG_BASE,r=i[r])for(;r%10==0;r/=10,n--);return n<0&&(n=0),n},o.dividedBy=o.div=function(e,i){return t(this,new b(e,i),l,c)},o.dividedToIntegerBy=o.idiv=function(e,i){return t(this,new b(e,i),0,1)},o.exponentiatedBy=o.pow=function(e,t){var i,n,r,a,o,l,u,d,h=this;if((e=new b(e)).c&&!e.isInteger())throw Error(bignumberError+"Exponent not an integer: "+T(e));if(null!=t&&(t=new b(t)),o=e.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!e.c||!e.c[0])return d=new b(Math.pow(+T(h),o?e.s*(2-isOdd(e)):+T(e))),t?d.mod(t):d;if(l=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new b(NaN);(n=!l&&h.isInteger()&&t.isInteger())&&(h=h.mod(t))}else{if(e.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||o&&h.c[1]>=24e7:h.c[0]<8e13||o&&h.c[0]<=9999975e7)))return a=h.s<0&&isOdd(e)?-0:0,h.e>-1&&(a=1/a),new b(l?1/a:a);g&&(a=mathceil(g/LOG_BASE+2))}for(o?(i=new b(.5),l&&(e.s=1),u=isOdd(e)):u=(r=Math.abs(+T(e)))%2,d=new b(s);;){if(u){if(!(d=d.times(h)).c)break;a?d.c.length>a&&(d.c.length=a):n&&(d=d.mod(t))}if(r){if(0===(r=mathfloor(r/2)))break;u=r%2}else if(C(e=e.times(i),e.e+1,1),e.e>14)u=isOdd(e);else{if(0===(r=+T(e)))break;u=r%2}h=h.times(h),a?h.c&&h.c.length>a&&(h.c.length=a):n&&(h=h.mod(t))}return n?d:(l&&(d=s.div(d)),t?d.mod(t):a?C(d,g,c,void 0):d)},o.integerValue=function(e){var t=new b(this);return null==e?e=c:intCheck(e,0,8),C(t,t.e+1,e)},o.isEqualTo=o.eq=function(e,t){return 0===compare$2(this,new b(e,t))},o.isFinite=function(){return!!this.c},o.isGreaterThan=o.gt=function(e,t){return compare$2(this,new b(e,t))>0},o.isGreaterThanOrEqualTo=o.gte=function(e,t){return 1===(t=compare$2(this,new b(e,t)))||0===t},o.isInteger=function(){return!!this.c&&bitFloor(this.e/LOG_BASE)>this.c.length-2},o.isLessThan=o.lt=function(e,t){return compare$2(this,new b(e,t))<0},o.isLessThanOrEqualTo=o.lte=function(e,t){return-1===(t=compare$2(this,new b(e,t)))||0===t},o.isNaN=function(){return!this.s},o.isNegative=function(){return this.s<0},o.isPositive=function(){return this.s>0},o.isZero=function(){return!!this.c&&0==this.c[0]},o.minus=function(e,t){var i,n,r,a,o=this,s=o.s;if(t=(e=new b(e,t)).s,!s||!t)return new b(NaN);if(s!=t)return e.s=-t,o.plus(e);var l=o.e/LOG_BASE,u=e.e/LOG_BASE,d=o.c,h=e.c;if(!l||!u){if(!d||!h)return d?(e.s=-t,e):new b(h?o:NaN);if(!d[0]||!h[0])return h[0]?(e.s=-t,e):new b(d[0]?o:3==c?-0:0)}if(l=bitFloor(l),u=bitFloor(u),d=d.slice(),s=l-u){for((a=s<0)?(s=-s,r=d):(u=l,r=h),r.reverse(),t=s;t--;r.push(0));r.reverse()}else for(n=(a=(s=d.length)<(t=h.length))?s:t,s=t=0;t<n;t++)if(d[t]!=h[t]){a=d[t]<h[t];break}if(a&&(r=d,d=h,h=r,e.s=-e.s),(t=(n=h.length)-(i=d.length))>0)for(;t--;d[i++]=0);for(t=BASE-1;n>s;){if(d[--n]<h[n]){for(i=n;i&&!d[--i];d[i]=t);--d[i],d[n]+=BASE}d[n]-=h[n]}for(;0==d[0];d.splice(0,1),--u);return d[0]?w(e,d,u):(e.s=3==c?-1:1,e.c=[e.e=0],e)},o.modulo=o.mod=function(e,i){var n,r,a=this;return e=new b(e,i),!a.c||!e.s||e.c&&!e.c[0]?new b(NaN):!e.c||a.c&&!a.c[0]?new b(a):(9==f?(r=e.s,e.s=1,n=t(a,e,0,3),e.s=r,n.s*=r):n=t(a,e,0,f),(e=a.minus(n.times(e))).c[0]||1!=f||(e.s=a.s),e)},o.multipliedBy=o.times=function(e,t){var i,n,r,a,o,s,l,c,u,d,h,p,m,f,g,_=this,v=_.c,y=(e=new b(e,t)).c;if(!(v&&y&&v[0]&&y[0]))return!_.s||!e.s||v&&!v[0]&&!y||y&&!y[0]&&!v?e.c=e.e=e.s=null:(e.s*=_.s,v&&y?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=bitFloor(_.e/LOG_BASE)+bitFloor(e.e/LOG_BASE),e.s*=_.s,(l=v.length)<(d=y.length)&&(m=v,v=y,y=m,r=l,l=d,d=r),r=l+d,m=[];r--;m.push(0));for(f=BASE,g=SQRT_BASE,r=d;--r>=0;){for(i=0,h=y[r]%g,p=y[r]/g|0,a=r+(o=l);a>r;)i=((c=h*(c=v[--o]%g)+(s=p*c+(u=v[o]/g|0)*h)%g*g+m[a]+i)/f|0)+(s/g|0)+p*u,m[a--]=c%f;m[a]=i}return i?++n:m.splice(0,1),w(e,m,n)},o.negated=function(){var e=new b(this);return e.s=-e.s||null,e},o.plus=function(e,t){var i,n=this,r=n.s;if(t=(e=new b(e,t)).s,!r||!t)return new b(NaN);if(r!=t)return e.s=-t,n.minus(e);var a=n.e/LOG_BASE,o=e.e/LOG_BASE,s=n.c,l=e.c;if(!a||!o){if(!s||!l)return new b(r/0);if(!s[0]||!l[0])return l[0]?e:new b(s[0]?n:0*r)}if(a=bitFloor(a),o=bitFloor(o),s=s.slice(),r=a-o){for(r>0?(o=a,i=l):(r=-r,i=s),i.reverse();r--;i.push(0));i.reverse()}for((r=s.length)-(t=l.length)<0&&(i=l,l=s,s=i,t=r),r=0;t;)r=(s[--t]=s[t]+l[t]+r)/BASE|0,s[t]=BASE===s[t]?0:s[t]%BASE;return r&&(s=[r].concat(s),++o),w(e,s,o)},o.precision=o.sd=function(e,t){var i,n,r,a=this;if(null!=e&&e!==!!e)return intCheck(e,1,MAX),null==t?t=c:intCheck(t,0,8),C(new b(a),e,t);if(!(i=a.c))return null;if(n=(r=i.length-1)*LOG_BASE+1,r=i[r]){for(;r%10==0;r/=10,n--);for(r=i[0];r>=10;r/=10,n++);}return e&&a.e+1>n&&(n=a.e+1),n},o.shiftedBy=function(e){return intCheck(e,-MAX_SAFE_INTEGER,MAX_SAFE_INTEGER),this.times("1e"+e)},o.squareRoot=o.sqrt=function(){var e,i,n,r,a,o=this,s=o.c,u=o.s,d=o.e,h=l+4,p=new b("0.5");if(1!==u||!s||!s[0])return new b(!u||u<0&&(!s||s[0])?NaN:s?o:1/0);if(0==(u=Math.sqrt(+T(o)))||u==1/0?(((i=coeffToString(s)).length+d)%2==0&&(i+="0"),u=Math.sqrt(+i),d=bitFloor((d+1)/2)-(d<0||d%2),n=new b(i=u==1/0?"5e"+d:(i=u.toExponential()).slice(0,i.indexOf("e")+1)+d)):n=new b(u+""),n.c[0])for((u=(d=n.e)+h)<3&&(u=0);;)if(a=n,n=p.times(a.plus(t(o,a,h,1))),coeffToString(a.c).slice(0,u)===(i=coeffToString(n.c)).slice(0,u)){if(n.e<d&&--u,"9999"!=(i=i.slice(u-3,u+1))&&(r||"4999"!=i)){+i&&(+i.slice(1)||"5"!=i.charAt(0))||(C(n,n.e+l+2,1),e=!n.times(n).eq(o));break}if(!r&&(C(a,a.e+l+2,0),a.times(a).eq(o))){n=a;break}h+=4,u+=4,r=1}return C(n,n.e+l+1,c,e)},o.toExponential=function(e,t){return null!=e&&(intCheck(e,0,MAX),e++),S(this,e,t,1)},o.toFixed=function(e,t){return null!=e&&(intCheck(e,0,MAX),e=e+this.e+1),S(this,e,t)},o.toFormat=function(e,t,i){var n,r=this;if(null==i)null!=e&&t&&"object"==typeof t?(i=t,t=null):e&&"object"==typeof e?(i=e,e=t=null):i=_;else if("object"!=typeof i)throw Error(bignumberError+"Argument not an object: "+i);if(n=r.toFixed(e,t),r.c){var a,o=n.split("."),s=+i.groupSize,l=+i.secondaryGroupSize,c=i.groupSeparator||"",u=o[0],d=o[1],h=r.s<0,p=h?u.slice(1):u,m=p.length;if(l&&(a=s,s=l,l=a,m-=a),s>0&&m>0){for(a=m%s||s,u=p.substr(0,a);a<m;a+=s)u+=c+p.substr(a,s);l>0&&(u+=c+p.slice(a)),h&&(u="-"+u)}n=d?u+(i.decimalSeparator||"")+((l=+i.fractionGroupSize)?d.replace(new RegExp("\\d{"+l+"}\\B","g"),"$&"+(i.fractionGroupSeparator||"")):d):u}return(i.prefix||"")+n+(i.suffix||"")},o.toFraction=function(e){var i,n,r,a,o,l,u,d,h,m,f,g,_=this,v=_.c;if(null!=e&&(!(u=new b(e)).isInteger()&&(u.c||1!==u.s)||u.lt(s)))throw Error(bignumberError+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+T(u));if(!v)return new b(_);for(i=new b(s),h=n=new b(s),r=d=new b(s),g=coeffToString(v),o=i.e=g.length-_.e-1,i.c[0]=POWS_TEN[(l=o%LOG_BASE)<0?LOG_BASE+l:l],e=!e||u.comparedTo(i)>0?o>0?i:h:u,l=p,p=1/0,u=new b(g),d.c[0]=0;m=t(u,i,0,1),1!=(a=n.plus(m.times(r))).comparedTo(e);)n=r,r=a,h=d.plus(m.times(a=h)),d=a,i=u.minus(m.times(a=i)),u=a;return a=t(e.minus(n),r,0,1),d=d.plus(a.times(h)),n=n.plus(a.times(r)),d.s=h.s=_.s,f=t(h,r,o*=2,c).minus(_).abs().comparedTo(t(d,n,o,c).minus(_).abs())<1?[h,r]:[d,n],p=l,f},o.toNumber=function(){return+T(this)},o.toPrecision=function(e,t){return null!=e&&intCheck(e,1,MAX),S(this,e,t,2)},o.toString=function(e){var t,n=this,r=n.s,a=n.e;return null===a?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(null==e?t=a<=u||a>=d?toExponential(coeffToString(n.c),a):toFixedPoint(coeffToString(n.c),a,"0"):10===e&&y?t=toFixedPoint(coeffToString((n=C(new b(n),l+a+1,c)).c),n.e,"0"):(intCheck(e,2,v.length,"Base"),t=i(toFixedPoint(coeffToString(n.c),a,"0"),10,e,r,!0)),r<0&&n.c[0]&&(t="-"+t)),t},o.valueOf=o.toJSON=function(){return T(this)},o._isBigNumber=!0,o[Symbol.toStringTag]="BigNumber",o[Symbol.for("nodejs.util.inspect.custom")]=o.valueOf,null!=e&&b.set(e),b}function bitFloor(e){var t=0|e;return e>0||e===t?t:t-1}function coeffToString(e){for(var t,i,n=1,r=e.length,a=e[0]+"";n<r;){for(t=e[n++]+"",i=LOG_BASE-t.length;i--;t="0"+t);a+=t}for(r=a.length;48===a.charCodeAt(--r););return a.slice(0,r+1||1)}function compare$2(e,t){var i,n,r=e.c,a=t.c,o=e.s,s=t.s,l=e.e,c=t.e;if(!o||!s)return null;if(i=r&&!r[0],n=a&&!a[0],i||n)return i?n?0:-s:o;if(o!=s)return o;if(i=o<0,n=l==c,!r||!a)return n?0:!r^i?1:-1;if(!n)return l>c^i?1:-1;for(s=(l=r.length)<(c=a.length)?l:c,o=0;o<s;o++)if(r[o]!=a[o])return r[o]>a[o]^i?1:-1;return l==c?0:l>c^i?1:-1}function intCheck(e,t,i,n){if(e<t||e>i||e!==mathfloor(e))throw Error(bignumberError+(n||"Argument")+("number"==typeof e?e<t||e>i?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function isOdd(e){var t=e.c.length-1;return bitFloor(e.e/LOG_BASE)==t&&e.c[t]%2!=0}function toExponential(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function toFixedPoint(e,t,i){var n,r;if(t<0){for(r=i+".";++t;r+=i);e=r+e}else if(++t>(n=e.length)){for(r=i,t-=n;--t;r+=i);e+=r}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}var BigNumber=clone$3();function isJSON(e){try{const t=JSON.parse(e);return!("object"!=typeof t||!t)}catch(t){return console.log(t),!1}}function unwrapJSONStr(e){return"string"==typeof e?unwrapJSONStr(JSON.parse(e)):e}const parse$1={isJSON:isJSON,unwrapJSONStr:unwrapJSONStr};class Blockies{}function toDataUrl(e){const t=Blockies.cache;if(e&&t[e])return t[e];const i=16,n=document.createElement("canvas");n.width=128,n.height=128;const r=n.getContext("2d"),a=e.toLowerCase().split("").reduce((e,t)=>e+t.charCodeAt(0),0),o=`hsl(${a%360}, 70%, 50%)`,s=`hsl(${(a+180)%360}, 70%, 50%)`;r.fillStyle=o,r.fillRect(0,0,128,128),r.fillStyle=s;for(let c=0;c<8;c++)for(let e=0;e<8;e++)(a+8*c+e)%3==0&&r.fillRect(c*i,e*i,i,i);const l=n.toDataURL("image/png");return e&&(t[e]=l),l}__publicField(Blockies,"cache",{});const blockies={toDataUrl:toDataUrl,Blockies:Blockies},_hasBuffer="function"==typeof Buffer$F,_TD="function"==typeof TextDecoder?new TextDecoder:void 0,_TE="function"==typeof TextEncoder?new TextEncoder:void 0,b64ch="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",b64chs=Array.prototype.slice.call(b64ch),b64tab=(e=>{let t={};return b64chs.forEach((e,i)=>t[e]=i),t})(),b64re=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,_fromCC=String.fromCharCode.bind(String),_U8Afrom="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),_mkUriSafe=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),_tidyB64=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),btoaPolyfill=e=>{let t,i,n,r,a="";const o=e.length%3;for(let s=0;s<e.length;){if((i=e.charCodeAt(s++))>255||(n=e.charCodeAt(s++))>255||(r=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");t=i<<16|n<<8|r,a+=b64chs[t>>18&63]+b64chs[t>>12&63]+b64chs[t>>6&63]+b64chs[63&t]}return o?a.slice(0,o-3)+"===".substring(o):a},_btoa="function"==typeof btoa?e=>btoa(e):_hasBuffer?e=>Buffer$F.from(e,"binary").toString("base64"):btoaPolyfill,_fromUint8Array=_hasBuffer?e=>Buffer$F.from(e).toString("base64"):e=>{let t=[];for(let i=0,n=e.length;i<n;i+=4096)t.push(_fromCC.apply(null,e.subarray(i,i+4096)));return _btoa(t.join(""))},cb_utob=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?_fromCC(192|t>>>6)+_fromCC(128|63&t):_fromCC(224|t>>>12&15)+_fromCC(128|t>>>6&63)+_fromCC(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return _fromCC(240|t>>>18&7)+_fromCC(128|t>>>12&63)+_fromCC(128|t>>>6&63)+_fromCC(128|63&t)},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=e=>e.replace(re_utob,cb_utob),_encode=_hasBuffer?e=>Buffer$F.from(e,"utf8").toString("base64"):_TE?e=>_fromUint8Array(_TE.encode(e)):e=>_btoa(utob(e)),encode$1=(e,t=!1)=>t?_mkUriSafe(_encode(e)):_encode(e),re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return _fromCC((t>>>10)+55296)+_fromCC(56320+(1023&t));case 3:return _fromCC((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return _fromCC((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},btou=e=>e.replace(re_btou,cb_btou),atobPolyfill=e=>{if(e=e.replace(/\s+/g,""),!b64re.test(e))throw new TypeError("malformed base64.");let t,i,n;e+="==".slice(2-(3&e.length));let r=[];for(let a=0;a<e.length;)t=b64tab[e.charAt(a++)]<<18|b64tab[e.charAt(a++)]<<12|(i=b64tab[e.charAt(a++)])<<6|(n=b64tab[e.charAt(a++)]),64===i?r.push(_fromCC(t>>16&255)):64===n?r.push(_fromCC(t>>16&255,t>>8&255)):r.push(_fromCC(t>>16&255,t>>8&255,255&t));return r.join("")},_atob="function"==typeof atob?e=>atob(_tidyB64(e)):_hasBuffer?e=>Buffer$F.from(e,"base64").toString("binary"):atobPolyfill,_toUint8Array=_hasBuffer?e=>_U8Afrom(Buffer$F.from(e,"base64")):e=>_U8Afrom(_atob(e).split("").map(e=>e.charCodeAt(0))),_decode=_hasBuffer?e=>Buffer$F.from(e,"base64").toString("utf8"):_TD?e=>_TD.decode(_toUint8Array(e)):e=>btou(_atob(e)),_unURI=e=>_tidyB64(e.replace(/[-_]/g,e=>"-"==e?"+":"/")),decode$1=e=>_decode(_unURI(e));class EventBus{constructor(){this.callbacks={},this.cacheNames=[]}$on(e,t){if(e&&t){let i=e+encode$1(e+t.toString()).replace(/\s/g,"").slice(-40);this.cacheNames.includes(i)?(this.callbacks[e]=this.callbacks[e]||[],this.callbacks[e].map(e=>{e.cacheName==i&&(e.fn=t)})):(this.cacheNames.push(i),this.callbacks[e]=this.callbacks[e]||[],this.callbacks[e].push({fn:t,cacheName:i}))}}$emit(e,t){let i=null;return this.callbacks[e]&&this.callbacks[e].forEach(e=>e.fn&&(i=e.fn(t))),i}}let Storage$3=class{static set(e,t){sessionStorage.setItem(e,encode$1(JSON.stringify(t)))}static get(e){try{const t=JSON.parse(decode$1(sessionStorage.getItem(e)));return null==t||""===t?null:t}catch(t){return sessionStorage.getItem(e)||null}}static remove(e){sessionStorage.removeItem(e)}static clear(){sessionStorage.clear()}};const loginType="loginType",REGISTERINFO="registerInfo",RESETINFO="resetInfo",AREACODE="area",COUNTRYCODE="country",USERINFO="userInfo",CURRENCY="currency",LOCATION="location",IDENTIFIERS="identifiers",LOGINTIME="loginTime",CURADDRESS="curAddress",SUBMITINFO="submitInfo",REFERINFO="referinfo",STAKING="staking",COINS="coins",INVITATION="invitation",WITHDRAWADDRESS="withdrawAddress",TOKEN="TOKEN",localStorageConstant=Object.freeze(Object.defineProperty({__proto__:null,AREACODE:AREACODE,COINS:COINS,COUNTRYCODE:COUNTRYCODE,CURADDRESS:CURADDRESS,CURRENCY:CURRENCY,IDENTIFIERS:IDENTIFIERS,INVITATION:INVITATION,LOCATION:LOCATION,LOGINTIME:LOGINTIME,REFERINFO:REFERINFO,REGISTERINFO:REGISTERINFO,RESETINFO:RESETINFO,STAKING:STAKING,SUBMITINFO:SUBMITINFO,TOKEN:TOKEN,USERINFO:USERINFO,WITHDRAWADDRESS:WITHDRAWADDRESS,loginType:loginType},Symbol.toStringTag,{value:"Module"}));let Storage$2=class{static set(e,t){let i=this.getKey(e);localStorage.setItem(i,encode$1(JSON.stringify(t)))}static get(e){try{let t=this.getKey(e);const i=JSON.parse(decode$1(localStorage.getItem(t)));return null==i||""===i?null:i}catch(t){return null}}static remove(e){let t=this.getKey(e);localStorage.removeItem(t)}static getKey(e){return Reflect.has(localStorageConstant,e)||console.error("Please set constant"),localStorageConstant[e]}};const apiEvent=new EventBus,retryCount=1,retryDelay=100;let site_common_api_url="";const getBaseUrl=e=>{site_common_api_url=site_common_api_url||(site_config&&site_config.site_common_api_url||"");const t=site_common_api_url.split(",");return t[e>=t.length?t.length-1:e]},retryFun=async(e,t)=>{var i;if("ECONNABORTED"===(null==t?void 0:t.code)||(null==(i=null==t?void 0:t.message)?void 0:i.includes("timeout"))){var n=t.config;if(!n||!n.retry)return Promise.reject(t);if(site_common_api_url){const e=site_common_api_url.split(",");e.push(e.shift()),site_common_api_url=e.join(",")}return n.__retryCount=n.__retryCount||0,n.__retryCount>=n.retry?Promise.reject(t):(n.__retryCount+=1,new Promise(function(e){setTimeout(function(){e()},n.retryDelay||1)}).then(function(){return e(n)}))}return Promise.reject(t)},axiosRetry={retryCount:retryCount,retryDelay:retryDelay,getBaseUrl:getBaseUrl,retryFun:retryFun};var event$1={exports:{}},cryptoBrowserify={},browser$h={exports:{}},safeBuffer$3={exports:{}};
43
43
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
44
44
  !function(e,t){var i=require$$0$1,n=i.Buffer;function r(e,t){for(var i in e)t[i]=e[i]}function a(e,t,i){return n(e,t,i)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=i:(r(i,t),t.Buffer=a),a.prototype=Object.create(n.prototype),r(n,a),a.from=function(e,t,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,i)},a.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=n(e);return void 0!==t?"string"==typeof i?r.fill(t,i):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}}(safeBuffer$3,safeBuffer$3.exports);var safeBufferExports$2=safeBuffer$3.exports,MAX_BYTES=65536,MAX_UINT32=4294967295;function oldBrowser$1(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}var Buffer$E=safeBufferExports$2.Buffer,crypto$3=globalThis.crypto||globalThis.msCrypto;function randomBytes$2(e,t){if(e>MAX_UINT32)throw new RangeError("requested too many random bytes");var i=Buffer$E.allocUnsafe(e);if(e>0)if(e>MAX_BYTES)for(var n=0;n<e;n+=MAX_BYTES)crypto$3.getRandomValues(i.slice(n,n+MAX_BYTES));else crypto$3.getRandomValues(i);return"function"==typeof t?process$1.nextTick(function(){t(null,i)}):i}crypto$3&&crypto$3.getRandomValues?browser$h.exports=randomBytes$2:browser$h.exports=oldBrowser$1;var browserExports=browser$h.exports,events={exports:{}},R="object"==typeof Reflect?Reflect:null,ReflectApply=R&&"function"==typeof R.apply?R.apply:function(e,t,i){return Function.prototype.apply.call(e,t,i)},ReflectOwnKeys;function ProcessEmitWarning(e){console&&console.warn&&console.warn(e)}ReflectOwnKeys=R&&"function"==typeof R.ownKeys?R.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var NumberIsNaN=Number.isNaN||function(e){return e!=e};function EventEmitter$e(){EventEmitter$e.init.call(this)}events.exports=EventEmitter$e,events.exports.once=once,EventEmitter$e.EventEmitter=EventEmitter$e,EventEmitter$e.prototype._events=void 0,EventEmitter$e.prototype._eventsCount=0,EventEmitter$e.prototype._maxListeners=void 0;var defaultMaxListeners=10;function checkListener(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function _getMaxListeners(e){return void 0===e._maxListeners?EventEmitter$e.defaultMaxListeners:e._maxListeners}function _addListener(e,t,i,n){var r,a,o;if(checkListener(i),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,i.listener?i.listener:i),a=e._events),o=a[t]),void 0===o)o=a[t]=i,++e._eventsCount;else if("function"==typeof o?o=a[t]=n?[i,o]:[o,i]:n?o.unshift(i):o.push(i),(r=_getMaxListeners(e))>0&&o.length>r&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,ProcessEmitWarning(s)}return e}function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(e,t,i){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:i},r=onceWrapper.bind(n);return r.listener=i,n.wrapFn=r,r}function _listeners(e,t,i){var n=e._events;if(void 0===n)return[];var r=n[t];return void 0===r?[]:"function"==typeof r?i?[r.listener||r]:[r]:i?unwrapListeners(r):arrayClone(r,r.length)}function listenerCount(e){var t=this._events;if(void 0!==t){var i=t[e];if("function"==typeof i)return 1;if(void 0!==i)return i.length}return 0}function arrayClone(e,t){for(var i=new Array(t),n=0;n<t;++n)i[n]=e[n];return i}function spliceOne(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function unwrapListeners(e){for(var t=new Array(e.length),i=0;i<t.length;++i)t[i]=e[i].listener||e[i];return t}function once(e,t){return new Promise(function(i,n){function r(i){e.removeListener(t,a),n(i)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",r),i([].slice.call(arguments))}eventTargetAgnosticAddListener(e,t,a,{once:!0}),"error"!==t&&addErrorHandlerIfEventEmitter(e,r,{once:!0})})}function addErrorHandlerIfEventEmitter(e,t,i){"function"==typeof e.on&&eventTargetAgnosticAddListener(e,"error",t,i)}function eventTargetAgnosticAddListener(e,t,i,n){if("function"==typeof e.on)n.once?e.once(t,i):e.on(t,i);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function r(a){n.once&&e.removeEventListener(t,r),i(a)})}}Object.defineProperty(EventEmitter$e,"defaultMaxListeners",{enumerable:!0,get:function(){return defaultMaxListeners},set:function(e){if("number"!=typeof e||e<0||NumberIsNaN(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");defaultMaxListeners=e}}),EventEmitter$e.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},EventEmitter$e.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||NumberIsNaN(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},EventEmitter$e.prototype.getMaxListeners=function(){return _getMaxListeners(this)},EventEmitter$e.prototype.emit=function(e){for(var t=[],i=1;i<arguments.length;i++)t.push(arguments[i]);var n="error"===e,r=this._events;if(void 0!==r)n=n&&void 0===r.error;else if(!n)return!1;if(n){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var o=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw o.context=a,o}var s=r[e];if(void 0===s)return!1;if("function"==typeof s)ReflectApply(s,this,t);else{var l=s.length,c=arrayClone(s,l);for(i=0;i<l;++i)ReflectApply(c[i],this,t)}return!0},EventEmitter$e.prototype.addListener=function(e,t){return _addListener(this,e,t,!1)},EventEmitter$e.prototype.on=EventEmitter$e.prototype.addListener,EventEmitter$e.prototype.prependListener=function(e,t){return _addListener(this,e,t,!0)},EventEmitter$e.prototype.once=function(e,t){return checkListener(t),this.on(e,_onceWrap(this,e,t)),this},EventEmitter$e.prototype.prependOnceListener=function(e,t){return checkListener(t),this.prependListener(e,_onceWrap(this,e,t)),this},EventEmitter$e.prototype.removeListener=function(e,t){var i,n,r,a,o;if(checkListener(t),void 0===(n=this._events))return this;if(void 0===(i=n[e]))return this;if(i===t||i.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,i.listener||t));else if("function"!=typeof i){for(r=-1,a=i.length-1;a>=0;a--)if(i[a]===t||i[a].listener===t){o=i[a].listener,r=a;break}if(r<0)return this;0===r?i.shift():spliceOne(i,r),1===i.length&&(n[e]=i[0]),void 0!==n.removeListener&&this.emit("removeListener",e,o||t)}return this},EventEmitter$e.prototype.off=EventEmitter$e.prototype.removeListener,EventEmitter$e.prototype.removeAllListeners=function(e){var t,i,n;if(void 0===(i=this._events))return this;if(void 0===i.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete i[e]),this;if(0===arguments.length){var r,a=Object.keys(i);for(n=0;n<a.length;++n)"removeListener"!==(r=a[n])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=i[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},EventEmitter$e.prototype.listeners=function(e){return _listeners(this,e,!0)},EventEmitter$e.prototype.rawListeners=function(e){return _listeners(this,e,!1)},EventEmitter$e.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):listenerCount.call(e,t)},EventEmitter$e.prototype.listenerCount=listenerCount,EventEmitter$e.prototype.eventNames=function(){return this._eventsCount>0?ReflectOwnKeys(this._events):[]};var eventsExports=events.exports,streamBrowser$2,hasRequiredStreamBrowser;function requireStreamBrowser(){return hasRequiredStreamBrowser?streamBrowser$2:(hasRequiredStreamBrowser=1,streamBrowser$2=eventsExports.EventEmitter)}var util$5={},types={},shams$1,hasRequiredShams$1,shams,hasRequiredShams;function requireShams$1(){return hasRequiredShams$1?shams$1:(hasRequiredShams$1=1,shams$1=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),i=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(i))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0})}function requireShams(){if(hasRequiredShams)return shams;hasRequiredShams=1;var e=requireShams$1();return shams=function(){return e()&&!!Symbol.toStringTag}}var esObjectAtoms=Object,esErrors=Error,_eval=EvalError,range$1=RangeError,ref=ReferenceError,syntax=SyntaxError,type=TypeError,uri=URIError,abs$3=Math.abs,floor$1=Math.floor,max$5=Math.max,min$4=Math.min,pow$1=Math.pow,round$4=Math.round,_isNaN=Number.isNaN||function(e){return e!=e},$isNaN=_isNaN,sign$2=function(e){return $isNaN(e)||0===e?e:e<0?-1:1},gOPD$1=Object.getOwnPropertyDescriptor,$gOPD$1=gOPD$1;if($gOPD$1)try{$gOPD$1([],"length")}catch(e3){$gOPD$1=null}var gopd=$gOPD$1,$defineProperty$1=Object.defineProperty||!1;if($defineProperty$1)try{$defineProperty$1({},"a",{value:1})}catch(e3){$defineProperty$1=!1}var esDefineProperty=$defineProperty$1,hasSymbols$1,hasRequiredHasSymbols,Reflect_getPrototypeOf,hasRequiredReflect_getPrototypeOf,Object_getPrototypeOf,hasRequiredObject_getPrototypeOf;function requireHasSymbols(){if(hasRequiredHasSymbols)return hasSymbols$1;hasRequiredHasSymbols=1;var e="undefined"!=typeof Symbol&&Symbol,t=requireShams$1();return hasSymbols$1=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}function requireReflect_getPrototypeOf(){return hasRequiredReflect_getPrototypeOf?Reflect_getPrototypeOf:(hasRequiredReflect_getPrototypeOf=1,Reflect_getPrototypeOf="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function requireObject_getPrototypeOf(){return hasRequiredObject_getPrototypeOf?Object_getPrototypeOf:(hasRequiredObject_getPrototypeOf=1,Object_getPrototypeOf=esObjectAtoms.getPrototypeOf||null)}var ERROR_MESSAGE="Function.prototype.bind called on incompatible ",toStr$1=Object.prototype.toString,max$4=Math.max,funcType="[object Function]",concatty=function(e,t){for(var i=[],n=0;n<e.length;n+=1)i[n]=e[n];for(var r=0;r<t.length;r+=1)i[r+e.length]=t[r];return i},slicy=function(e,t){for(var i=[],n=t,r=0;n<e.length;n+=1,r+=1)i[r]=e[n];return i},joiny=function(e,t){for(var i="",n=0;n<e.length;n+=1)i+=e[n],n+1<e.length&&(i+=t);return i},implementation$1=function(e){var t=this;if("function"!=typeof t||toStr$1.apply(t)!==funcType)throw new TypeError(ERROR_MESSAGE+t);for(var i,n=slicy(arguments,1),r=max$4(0,t.length-n.length),a=[],o=0;o<r;o++)a[o]="$"+o;if(i=Function("binder","return function ("+joiny(a,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var r=t.apply(this,concatty(n,arguments));return Object(r)===r?r:this}return t.apply(e,concatty(n,arguments))}),t.prototype){var s=function(){};s.prototype=t.prototype,i.prototype=new s,s.prototype=null}return i},implementation=implementation$1,functionBind=Function.prototype.bind||implementation,functionCall=Function.prototype.call,functionApply=Function.prototype.apply,reflectApply="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,bind$4=functionBind,$apply$1=functionApply,$call$2=functionCall,$reflectApply=reflectApply,actualApply=$reflectApply||bind$4.call($call$2,$apply$1),bind$3=functionBind,$TypeError$3=type,$call$1=functionCall,$actualApply=actualApply,callBindApplyHelpers=function(e){if(e.length<1||"function"!=typeof e[0])throw new $TypeError$3("a function is required");return $actualApply(bind$3,$call$1,e)},get$4,hasRequiredGet,getProto$2,hasRequiredGetProto,hasown,hasRequiredHasown,undefined$1;function requireGet(){if(hasRequiredGet)return get$4;hasRequiredGet=1;var e,t=callBindApplyHelpers,i=gopd;try{e=[].__proto__===Array.prototype}catch(e3){if(!e3||"object"!=typeof e3||!("code"in e3)||"ERR_PROTO_ACCESS"!==e3.code)throw e3}var n=!!e&&i&&i(Object.prototype,"__proto__"),r=Object,a=r.getPrototypeOf;return get$4=n&&"function"==typeof n.get?t([n.get]):"function"==typeof a&&function(e){return a(null==e?e:r(e))}}function requireGetProto(){if(hasRequiredGetProto)return getProto$2;hasRequiredGetProto=1;var e=requireReflect_getPrototypeOf(),t=requireObject_getPrototypeOf(),i=requireGet();return getProto$2=e?function(t){return e(t)}:t?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:i?function(e){return i(e)}:null}function requireHasown(){if(hasRequiredHasown)return hasown;hasRequiredHasown=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty;return hasown=functionBind.call(e,t)}var $Object=esObjectAtoms,$Error=esErrors,$EvalError=_eval,$RangeError=range$1,$ReferenceError=ref,$SyntaxError=syntax,$TypeError$2=type,$URIError=uri,abs$2=abs$3,floor=floor$1,max$3=max$5,min$3=min$4,pow=pow$1,round$3=round$4,sign$1=sign$2,$Function=Function,getEvalledConstructor=function(e){try{return $Function('"use strict"; return ('+e+").constructor;")()}catch(e3){}},$gOPD=gopd,$defineProperty=esDefineProperty,throwTypeError=function(){throw new $TypeError$2},ThrowTypeError=$gOPD?function(){try{return throwTypeError}catch(e){try{return $gOPD(arguments,"callee").get}catch(t){return throwTypeError}}}():throwTypeError,hasSymbols=requireHasSymbols()(),getProto$1=requireGetProto(),$ObjectGPO=requireObject_getPrototypeOf(),$ReflectGPO=requireReflect_getPrototypeOf(),$apply=functionApply,$call=functionCall,needsEval={},TypedArray="undefined"!=typeof Uint8Array&&getProto$1?getProto$1(Uint8Array):undefined$1,INTRINSICS={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto$1?getProto$1([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":"undefined"==typeof Atomics?undefined$1:Atomics,"%BigInt%":"undefined"==typeof BigInt?undefined$1:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?undefined$1:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Error,"%eval%":eval,"%EvalError%":$EvalError,"%Float16Array%":"undefined"==typeof Float16Array?undefined$1:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?undefined$1:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?undefined$1:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":"undefined"==typeof Int8Array?undefined$1:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?undefined$1:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto$1?getProto$1(getProto$1([][Symbol.iterator]())):undefined$1,"%JSON%":"object"==typeof JSON?JSON:undefined$1,"%Map%":"undefined"==typeof Map?undefined$1:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&hasSymbols&&getProto$1?getProto$1((new Map)[Symbol.iterator]()):undefined$1,"%Math%":Math,"%Number%":Number,"%Object%":$Object,"%Object.getOwnPropertyDescriptor%":$gOPD,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?undefined$1:Promise,"%Proxy%":"undefined"==typeof Proxy?undefined$1:Proxy,"%RangeError%":$RangeError,"%ReferenceError%":$ReferenceError,"%Reflect%":"undefined"==typeof Reflect?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?undefined$1:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&hasSymbols&&getProto$1?getProto$1((new Set)[Symbol.iterator]()):undefined$1,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto$1?getProto$1(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$2,"%Uint8Array%":"undefined"==typeof Uint8Array?undefined$1:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?undefined$1:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?undefined$1:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?undefined$1:Uint32Array,"%URIError%":$URIError,"%WeakMap%":"undefined"==typeof WeakMap?undefined$1:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?undefined$1:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?undefined$1:WeakSet,"%Function.prototype.call%":$call,"%Function.prototype.apply%":$apply,"%Object.defineProperty%":$defineProperty,"%Object.getPrototypeOf%":$ObjectGPO,"%Math.abs%":abs$2,"%Math.floor%":floor,"%Math.max%":max$3,"%Math.min%":min$3,"%Math.pow%":pow,"%Math.round%":round$3,"%Math.sign%":sign$1,"%Reflect.getPrototypeOf%":$ReflectGPO};if(getProto$1)try{null.error}catch(e3){var errorProto=getProto$1(getProto$1(e3));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function e(t){var i;if("%AsyncFunction%"===t)i=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===t)i=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===t)i=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(i=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&getProto$1&&(i=getProto$1(r.prototype))}return INTRINSICS[t]=i,i},LEGACY_ALIASES={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind$2=functionBind,hasOwn$2=requireHasown(),$concat=bind$2.call($call,Array.prototype.concat),$spliceApply=bind$2.call($apply,Array.prototype.splice),$replace=bind$2.call($call,String.prototype.replace),$strSlice=bind$2.call($call,String.prototype.slice),$exec$2=bind$2.call($call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function(e){var t=$strSlice(e,0,1),i=$strSlice(e,-1);if("%"===t&&"%"!==i)throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if("%"===i&&"%"!==t)throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var n=[];return $replace(e,rePropName,function(e,t,i,r){n[n.length]=i?$replace(r,reEscapeChar,"$1"):t||e}),n},getBaseIntrinsic=function(e,t){var i,n=e;if(hasOwn$2(LEGACY_ALIASES,n)&&(n="%"+(i=LEGACY_ALIASES[n])[0]+"%"),hasOwn$2(INTRINSICS,n)){var r=INTRINSICS[n];if(r===needsEval&&(r=doEval(n)),void 0===r&&!t)throw new $TypeError$2("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:r}}throw new $SyntaxError("intrinsic "+e+" does not exist!")},getIntrinsic=function(e,t){if("string"!=typeof e||0===e.length)throw new $TypeError$2("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new $TypeError$2('"allowMissing" argument must be a boolean');if(null===$exec$2(/^%?[^%]*%?$/,e))throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=stringToPath(e),n=i.length>0?i[0]:"",r=getBaseIntrinsic("%"+n+"%",t),a=r.name,o=r.value,s=!1,l=r.alias;l&&(n=l[0],$spliceApply(i,$concat([0,1],l)));for(var c=1,u=!0;c<i.length;c+=1){var d=i[c],h=$strSlice(d,0,1),p=$strSlice(d,-1);if(('"'===h||"'"===h||"`"===h||'"'===p||"'"===p||"`"===p)&&h!==p)throw new $SyntaxError("property names with quotes must have matching quotes");if("constructor"!==d&&u||(s=!0),hasOwn$2(INTRINSICS,a="%"+(n+="."+d)+"%"))o=INTRINSICS[a];else if(null!=o){if(!(d in o)){if(!t)throw new $TypeError$2("base intrinsic for "+e+" exists, but the property is not available.");return}if($gOPD&&c+1>=i.length){var m=$gOPD(o,d);o=(u=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:o[d]}else u=hasOwn$2(o,d),o=o[d];u&&!s&&(INTRINSICS[a]=o)}}return o},GetIntrinsic=getIntrinsic,callBindBasic=callBindApplyHelpers,$indexOf=callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]),callBound$5=function(e,t){var i=GetIntrinsic(e,!!t);return"function"==typeof i&&$indexOf(e,".prototype.")>-1?callBindBasic([i]):i},hasToStringTag$2=requireShams()(),callBound$4=callBound$5,$toString$1=callBound$4("Object.prototype.toString"),isStandardArguments=function(e){return!(hasToStringTag$2&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===$toString$1(e)},isLegacyArguments=function(e){return!!isStandardArguments(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==$toString$1(e)&&"callee"in e&&"[object Function]"===$toString$1(e.callee)},supportsStandardArguments=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments;var isArguments=supportsStandardArguments?isStandardArguments:isLegacyArguments,callBound$3=callBound$5,hasToStringTag$1=requireShams()(),hasOwn$1=requireHasown(),gOPD=gopd,fn;if(hasToStringTag$1){var $exec$1=callBound$3("RegExp.prototype.exec"),isRegexMarker={},throwRegexMarker=function(){throw isRegexMarker},badStringifier={toString:throwRegexMarker,valueOf:throwRegexMarker};"symbol"==typeof Symbol.toPrimitive&&(badStringifier[Symbol.toPrimitive]=throwRegexMarker),fn=function(e){if(!e||"object"!=typeof e)return!1;var t=gOPD(e,"lastIndex");if(!(t&&hasOwn$1(t,"value")))return!1;try{$exec$1(e,badStringifier)}catch(e3){return e3===isRegexMarker}}}else{var $toString=callBound$3("Object.prototype.toString"),regexClass="[object RegExp]";fn=function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&$toString(e)===regexClass}}var isRegex$1=fn,callBound$2=callBound$5,isRegex=isRegex$1,$exec=callBound$2("RegExp.prototype.exec"),$TypeError$1=type,safeRegexTest$1=function(e){if(!isRegex(e))throw new $TypeError$1("`regex` must be a RegExp");return function(t){return null!==$exec(e,t)}},generatorFunction,hasRequiredGeneratorFunction;function requireGeneratorFunction(){if(hasRequiredGeneratorFunction)return generatorFunction;hasRequiredGeneratorFunction=1;const e=function*(){}.constructor;return generatorFunction=()=>e}var callBound$1=callBound$5,safeRegexTest=safeRegexTest$1,isFnRegex=safeRegexTest(/^\s*(?:function)?\*/),hasToStringTag=requireShams()(),getProto=requireGetProto(),toStr=callBound$1("Object.prototype.toString"),fnToStr=callBound$1("Function.prototype.toString"),getGeneratorFunction=requireGeneratorFunction(),isGeneratorFunction=function(e){if("function"!=typeof e)return!1;if(isFnRegex(fnToStr(e)))return!0;if(!hasToStringTag)return"[object GeneratorFunction]"===toStr(e);if(!getProto)return!1;var t=getGeneratorFunction();return t&&getProto(e)===t.prototype},isCallable,hasRequiredIsCallable,forEach,hasRequiredForEach,possibleTypedArrayNames,hasRequiredPossibleTypedArrayNames,availableTypedArrays,hasRequiredAvailableTypedArrays;function requireIsCallable(){if(hasRequiredIsCallable)return isCallable;hasRequiredIsCallable=1;var e,t,i=Function.prototype.toString,n="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof n&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw t}}),t={},n(function(){throw 42},null,e)}catch(h){h!==t&&(n=null)}else n=null;var r=/^\s*class\b/,a=function(e){try{var t=i.call(e);return r.test(t)}catch(e3){return!1}},o=function(e){try{return!a(e)&&(i.call(e),!0)}catch(e3){return!1}},s=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),u=function(){return!1};if("object"==typeof document){var d=document.all;s.call(d)===s.call(document.all)&&(u=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=s.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e3){}return!1})}return isCallable=n?function(i){if(u(i))return!0;if(!i)return!1;if("function"!=typeof i&&"object"!=typeof i)return!1;try{n(i,null,e)}catch(e3){if(e3!==t)return!1}return!a(i)&&o(i)}:function(e){if(u(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(l)return o(e);if(a(e))return!1;var t=s.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&o(e)}}function requireForEach(){if(hasRequiredForEach)return forEach;hasRequiredForEach=1;var e=requireIsCallable(),t=Object.prototype.toString,i=Object.prototype.hasOwnProperty;return forEach=function(n,r,a){if(!e(r))throw new TypeError("iterator must be a function");var o,s;arguments.length>=3&&(o=a),s=n,"[object Array]"===t.call(s)?function(e,t,n){for(var r=0,a=e.length;r<a;r++)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(n,r,o):"string"==typeof n?function(e,t,i){for(var n=0,r=e.length;n<r;n++)null==i?t(e.charAt(n),n,e):t.call(i,e.charAt(n),n,e)}(n,r,o):function(e,t,n){for(var r in e)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(n,r,o)},forEach}function requirePossibleTypedArrayNames(){return hasRequiredPossibleTypedArrayNames?possibleTypedArrayNames:(hasRequiredPossibleTypedArrayNames=1,possibleTypedArrayNames=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"])}function requireAvailableTypedArrays(){if(hasRequiredAvailableTypedArrays)return availableTypedArrays;hasRequiredAvailableTypedArrays=1;var e=requirePossibleTypedArrayNames(),t=globalThis;return availableTypedArrays=function(){for(var i=[],n=0;n<e.length;n++)"function"==typeof t[e[n]]&&(i[i.length]=e[n]);return i}}var callBind={exports:{}},defineDataProperty,hasRequiredDefineDataProperty,hasPropertyDescriptors_1,hasRequiredHasPropertyDescriptors,setFunctionLength,hasRequiredSetFunctionLength,applyBind,hasRequiredApplyBind,hasRequiredCallBind,whichTypedArray,hasRequiredWhichTypedArray,isTypedArray$2,hasRequiredIsTypedArray;function requireDefineDataProperty(){if(hasRequiredDefineDataProperty)return defineDataProperty;hasRequiredDefineDataProperty=1;var e=esDefineProperty,t=syntax,i=type,n=gopd;return defineDataProperty=function(r,a,o){if(!r||"object"!=typeof r&&"function"!=typeof r)throw new i("`obj` must be an object or a function`");if("string"!=typeof a&&"symbol"!=typeof a)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!n&&n(r,a);if(e)e(r,a,{configurable:null===c&&d?d.configurable:!c,enumerable:null===s&&d?d.enumerable:!s,value:o,writable:null===l&&d?d.writable:!l});else{if(!u&&(s||l||c))throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");r[a]=o}},defineDataProperty}function requireHasPropertyDescriptors(){if(hasRequiredHasPropertyDescriptors)return hasPropertyDescriptors_1;hasRequiredHasPropertyDescriptors=1;var e=esDefineProperty,t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return 1!==e([],"length",{value:1}).length}catch(e3){return!0}},hasPropertyDescriptors_1=t}function requireSetFunctionLength(){if(hasRequiredSetFunctionLength)return setFunctionLength;hasRequiredSetFunctionLength=1;var e=getIntrinsic,t=requireDefineDataProperty(),i=requireHasPropertyDescriptors()(),n=gopd,r=type,a=e("%Math.floor%");return setFunctionLength=function(e,o){if("function"!=typeof e)throw new r("`fn` is not a function");if("number"!=typeof o||o<0||o>4294967295||a(o)!==o)throw new r("`length` must be a positive 32-bit integer");var s=arguments.length>2&&!!arguments[2],l=!0,c=!0;if("length"in e&&n){var u=n(e,"length");u&&!u.configurable&&(l=!1),u&&!u.writable&&(c=!1)}return(l||c||!s)&&(i?t(e,"length",o,!0,!0):t(e,"length",o)),e},setFunctionLength}function requireApplyBind(){if(hasRequiredApplyBind)return applyBind;hasRequiredApplyBind=1;var e=functionBind,t=functionApply,i=actualApply;return applyBind=function(){return i(e,t,arguments)},applyBind}function requireCallBind(){return hasRequiredCallBind||(hasRequiredCallBind=1,function(e){var t=requireSetFunctionLength(),i=esDefineProperty,n=callBindApplyHelpers,r=requireApplyBind();e.exports=function(e){var i=n(arguments),r=1+e.length-(arguments.length-1);return t(i,r>0?r:0,!0)},i?i(e.exports,"apply",{value:r}):e.exports.apply=r}(callBind)),callBind.exports}function requireWhichTypedArray(){if(hasRequiredWhichTypedArray)return whichTypedArray;hasRequiredWhichTypedArray=1;var e=requireForEach(),t=requireAvailableTypedArrays(),i=requireCallBind(),n=callBound$5,r=gopd,a=requireGetProto(),o=n("Object.prototype.toString"),s=requireShams()(),l=globalThis,c=t(),u=n("String.prototype.slice"),d=n("Array.prototype.indexOf",!0)||function(e,t){for(var i=0;i<e.length;i+=1)if(e[i]===t)return i;return-1},h={__proto__:null};e(c,s&&r&&a?function(e){var t=new l[e];if(Symbol.toStringTag in t&&a){var n=a(t),o=r(n,Symbol.toStringTag);if(!o&&n){var s=a(n);o=r(s,Symbol.toStringTag)}if(o&&o.get){var c=i(o.get);h["$"+e]=c}}}:function(e){var t=new l[e],n=t.slice||t.set;if(n){var r=i(n);h["$"+e]=r}});return whichTypedArray=function(t){if(!t||"object"!=typeof t)return!1;if(!s){var i=u(o(t),8,-1);return d(c,i)>-1?i:"Object"===i&&function(t){var i=!1;return e(h,function(e,n){if(!i)try{e(t),i=u(n,1)}catch(e3){}}),i}(t)}return r?function(t){var i=!1;return e(h,function(e,n){if(!i)try{"$"+e(t)===n&&(i=u(n,1))}catch(e3){}}),i}(t):null}}function requireIsTypedArray(){if(hasRequiredIsTypedArray)return isTypedArray$2;hasRequiredIsTypedArray=1;var e=requireWhichTypedArray();return isTypedArray$2=function(t){return!!e(t)}}!function(e){var t=isArguments,i=isGeneratorFunction,n=requireWhichTypedArray(),r=requireIsTypedArray();function a(e){return e.call.bind(e)}var o="undefined"!=typeof BigInt,s="undefined"!=typeof Symbol,l=a(Object.prototype.toString),c=a(Number.prototype.valueOf),u=a(String.prototype.valueOf),d=a(Boolean.prototype.valueOf);if(o)var h=a(BigInt.prototype.valueOf);if(s)var p=a(Symbol.prototype.valueOf);function m(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e3){return!1}}function f(e){return"[object Map]"===l(e)}function g(e){return"[object Set]"===l(e)}function _(e){return"[object WeakMap]"===l(e)}function v(e){return"[object WeakSet]"===l(e)}function y(e){return"[object ArrayBuffer]"===l(e)}function b(e){return"undefined"!=typeof ArrayBuffer&&(y.working?y(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===l(e)}function E(e){return"undefined"!=typeof DataView&&(S.working?S(e):e instanceof DataView)}e.isArgumentsObject=t,e.isGeneratorFunction=i,e.isTypedArray=r,e.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},e.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):r(e)||E(e)},e.isUint8Array=function(e){return"Uint8Array"===n(e)},e.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===n(e)},e.isUint16Array=function(e){return"Uint16Array"===n(e)},e.isUint32Array=function(e){return"Uint32Array"===n(e)},e.isInt8Array=function(e){return"Int8Array"===n(e)},e.isInt16Array=function(e){return"Int16Array"===n(e)},e.isInt32Array=function(e){return"Int32Array"===n(e)},e.isFloat32Array=function(e){return"Float32Array"===n(e)},e.isFloat64Array=function(e){return"Float64Array"===n(e)},e.isBigInt64Array=function(e){return"BigInt64Array"===n(e)},e.isBigUint64Array=function(e){return"BigUint64Array"===n(e)},f.working="undefined"!=typeof Map&&f(new Map),e.isMap=function(e){return"undefined"!=typeof Map&&(f.working?f(e):e instanceof Map)},g.working="undefined"!=typeof Set&&g(new Set),e.isSet=function(e){return"undefined"!=typeof Set&&(g.working?g(e):e instanceof Set)},_.working="undefined"!=typeof WeakMap&&_(new WeakMap),e.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(_.working?_(e):e instanceof WeakMap)},v.working="undefined"!=typeof WeakSet&&v(new WeakSet),e.isWeakSet=function(e){return v(e)},y.working="undefined"!=typeof ArrayBuffer&&y(new ArrayBuffer),e.isArrayBuffer=b,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=E;var w="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function C(e){return"[object SharedArrayBuffer]"===l(e)}function T(e){return void 0!==w&&(void 0===C.working&&(C.working=C(new w)),C.working?C(e):e instanceof w)}function A(e){return m(e,c)}function x(e){return m(e,u)}function M(e){return m(e,d)}function R(e){return o&&m(e,h)}function I(e){return s&&m(e,p)}e.isSharedArrayBuffer=T,e.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},e.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},e.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},e.isGeneratorObject=function(e){return"[object Generator]"===l(e)},e.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},e.isNumberObject=A,e.isStringObject=x,e.isBooleanObject=M,e.isBigIntObject=R,e.isSymbolObject=I,e.isBoxedPrimitive=function(e){return A(e)||x(e)||M(e)||R(e)||I(e)},e.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(b(e)||T(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})})}(types);var isBufferBrowser=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8},buffer_list,hasRequiredBuffer_list,destroy_1$2,hasRequiredDestroy;function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;function e(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach(function(e){i(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function i(e,t,i){return(t=r(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function n(e,t,i){return t&&function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,r(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:String(t)}hasRequiredBuffer_list=1;var a=require$$0$1.Buffer,o=util$5.inspect,s=o&&o.custom||"inspect";function l(e,t,i){a.prototype.copy.call(e,t,i)}return buffer_list=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return n(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,i=""+t.data;t=t.next;)i+=e+t.data;return i}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0);for(var t=a.allocUnsafe(e>>>0),i=this.head,n=0;i;)l(i.data,t,n),n+=i.data.length,i=i.next;return t}},{key:"consume",value:function(e,t){var i;return e<this.head.data.length?(i=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):i=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,i=1,n=t.data;for(e-=n.length;t=t.next;){var r=t.data,a=e>r.length?r.length:e;if(a===r.length?n+=r:n+=r.slice(0,e),0===(e-=a)){a===r.length?(++i,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=r.slice(a));break}++i}return this.length-=i,n}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),i=this.head,n=1;for(i.data.copy(t),e-=i.data.length;i=i.next;){var r=i.data,o=e>r.length?r.length:e;if(r.copy(t,t.length-e,0,o),0===(e-=o)){o===r.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=r.slice(o));break}++n}return this.length-=n,t}},{key:s,value:function(e,i){return o(this,t(t({},i),{},{depth:0,customInspect:!1}))}}]),e}()}function requireDestroy(){if(hasRequiredDestroy)return destroy_1$2;function e(e,n){i(e,n),t(e)}function t(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}return hasRequiredDestroy=1,destroy_1$2={destroy:function(n,r){var a=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?(r?r(n):n&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process$1.nextTick(i,this,n)):process$1.nextTick(i,this,n)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(n||null,function(i){!r&&i?a._writableState?a._writableState.errorEmitted?process$1.nextTick(t,a):(a._writableState.errorEmitted=!0,process$1.nextTick(e,a,i)):process$1.nextTick(e,a,i):r?(process$1.nextTick(t,a),r(i)):process$1.nextTick(t,a)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var i=e._readableState,n=e._writableState;i&&i.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}!function(e){var t={},i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),i={},n=0;n<t.length;n++)i[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return i},n=/%[sdj%]/g;e.format=function(e){if(!_(e)){for(var t=[],i=0;i<arguments.length;i++)t.push(s(arguments[i]));return t.join(" ")}i=1;for(var r=arguments,a=r.length,o=String(e).replace(n,function(e){if("%%"===e)return"%";if(i>=a)return e;switch(e){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch(t){return"[Circular]"}default:return e}}),l=r[i];i<a;l=r[++i])f(l)||!b(l)?o+=" "+l:o+=" "+s(l);return o},e.deprecate=function(t,i){if(void 0!==process$1&&!0===process$1.noDeprecation)return t;if(void 0===process$1)return function(){return e.deprecate(t,i).apply(this,arguments)};var n=!1;return function(){if(!n){if(process$1.throwDeprecation)throw new Error(i);process$1.traceDeprecation?console.trace(i):console.error(i),n=!0}return t.apply(this,arguments)}};var r={},a=/^$/;if(t.NODE_DEBUG){var o=t.NODE_DEBUG;o=o.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+o+"$","i")}function s(t,i){var n={seen:[],stylize:c};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(i)?n.showHidden=i:i&&e._extend(n,i),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),u(n,t,n.depth)}function l(e,t){var i=s.styles[t];return i?"["+s.colors[i][0]+"m"+e+"["+s.colors[i][1]+"m":e}function c(e,t){return e}function u(t,i,n){if(t.customInspect&&i&&w(i.inspect)&&i.inspect!==e.inspect&&(!i.constructor||i.constructor.prototype!==i)){var r=i.inspect(n,t);return _(r)||(r=u(t,r,n)),r}var a=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(_(t)){var i="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(i,"string")}if(g(t))return e.stylize(""+t,"number");if(m(t))return e.stylize(""+t,"boolean");if(f(t))return e.stylize("null","null")}(t,i);if(a)return a;var o=Object.keys(i),s=function(e){var t={};return e.forEach(function(e,i){t[e]=!0}),t}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(i)),E(i)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return d(i);if(0===o.length){if(w(i)){var l=i.name?": "+i.name:"";return t.stylize("[Function"+l+"]","special")}if(y(i))return t.stylize(RegExp.prototype.toString.call(i),"regexp");if(S(i))return t.stylize(Date.prototype.toString.call(i),"date");if(E(i))return d(i)}var c,b="",C=!1,T=["{","}"];(p(i)&&(C=!0,T=["[","]"]),w(i))&&(b=" [Function"+(i.name?": "+i.name:"")+"]");return y(i)&&(b=" "+RegExp.prototype.toString.call(i)),S(i)&&(b=" "+Date.prototype.toUTCString.call(i)),E(i)&&(b=" "+d(i)),0!==o.length||C&&0!=i.length?n<0?y(i)?t.stylize(RegExp.prototype.toString.call(i),"regexp"):t.stylize("[Object]","special"):(t.seen.push(i),c=C?function(e,t,i,n,r){for(var a=[],o=0,s=t.length;o<s;++o)x(t,String(o))?a.push(h(e,t,i,n,String(o),!0)):a.push("");return r.forEach(function(r){r.match(/^\d+$/)||a.push(h(e,t,i,n,r,!0))}),a}(t,i,n,s,o):o.map(function(e){return h(t,i,n,s,e,C)}),t.seen.pop(),function(e,t,i){var n=e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(n>60)return i[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+i[1];return i[0]+t+" "+e.join(", ")+" "+i[1]}(c,b,T)):T[0]+b+T[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,i,n,r,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(t,r)||{value:t[r]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),x(n,r)||(o="["+r+"]"),s||(e.seen.indexOf(l.value)<0?(s=f(i)?u(e,l.value,null):u(e,l.value,i-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),v(o)){if(a&&r.match(/^\d+$/))return s;(o=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function p(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function f(e){return null===e}function g(e){return"number"==typeof e}function _(e){return"string"==typeof e}function v(e){return void 0===e}function y(e){return b(e)&&"[object RegExp]"===C(e)}function b(e){return"object"==typeof e&&null!==e}function S(e){return b(e)&&"[object Date]"===C(e)}function E(e){return b(e)&&("[object Error]"===C(e)||e instanceof Error)}function w(e){return"function"==typeof e}function C(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!r[t])if(a.test(t)){var i=process$1.pid;r[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,i,n)}}else r[t]=function(){};return r[t]},e.inspect=s,s.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]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=types,e.isArray=p,e.isBoolean=m,e.isNull=f,e.isNullOrUndefined=function(e){return null==e},e.isNumber=g,e.isString=_,e.isSymbol=function(e){return"symbol"==typeof e},e.isUndefined=v,e.isRegExp=y,e.types.isRegExp=y,e.isObject=b,e.isDate=S,e.types.isDate=S,e.isError=E,e.types.isNativeError=E,e.isFunction=w,e.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},e.isBuffer=isBufferBrowser;var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function x(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.log=function(){var t,i;console.log("%s - %s",(i=[T((t=new Date).getHours()),T(t.getMinutes()),T(t.getSeconds())].join(":"),[t.getDate(),A[t.getMonth()],i].join(" ")),e.format.apply(e,arguments))},e.inherits=inherits_browserExports,e._extend=function(e,t){if(!t||!b(t))return e;for(var i=Object.keys(t),n=i.length;n--;)e[i[n]]=t[i[n]];return e};var M="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function R(e,t){if(!e){var i=new Error("Promise was rejected with a falsy value");i.reason=e,e=i}return t(e)}e.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(M&&e[M]){var t;if("function"!=typeof(t=e[M]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,i,n=new Promise(function(e,n){t=e,i=n}),r=[],a=0;a<arguments.length;a++)r.push(arguments[a]);r.push(function(e,n){e?i(e):t(n)});try{e.apply(this,r)}catch(o){i(o)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),M&&Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},e.promisify.custom=M,e.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],i=0;i<arguments.length;i++)t.push(arguments[i]);var n=t.pop();if("function"!=typeof n)throw new TypeError("The last argument must be of type Function");var r=this,a=function(){return n.apply(r,arguments)};e.apply(this,t).then(function(e){process$1.nextTick(a.bind(null,null,e))},function(e){process$1.nextTick(R.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}}(util$5);var errorsBrowser={},hasRequiredErrorsBrowser,state,hasRequiredState;function requireErrorsBrowser(){if(hasRequiredErrorsBrowser)return errorsBrowser;hasRequiredErrorsBrowser=1;var e={};function t(t,i,n){n||(n=Error);var r=function(e){var t,n;function r(t,n,r){return e.call(this,function(e,t,n){return"string"==typeof i?i:i(e,t,n)}(t,n,r))||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(n);r.prototype.name=n.name,r.prototype.code=t,e[t]=r}function i(e,t){if(Array.isArray(e)){var i=e.length;return e=e.map(function(e){return String(e)}),i>2?"one of ".concat(t," ").concat(e.slice(0,i-1).join(", "),", or ")+e[i-1]:2===i?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}return t("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(e,t,n){var r,a,o;if("string"==typeof t&&(a="not ",t.substr(0,a.length)===a)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,i){return(void 0===i||i>e.length)&&(i=e.length),e.substring(i-t.length,i)===t}(e," argument"))o="The ".concat(e," ").concat(r," ").concat(i(t,"type"));else{var s=function(e,t,i){return"number"!=typeof i&&(i=0),!(i+t.length>e.length)&&-1!==e.indexOf(t,i)}(e,".")?"property":"argument";o='The "'.concat(e,'" ').concat(s," ").concat(r," ").concat(i(t,"type"))}return o+=". Received type ".concat(typeof n)},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),errorsBrowser.codes=e,errorsBrowser}function requireState(){if(hasRequiredState)return state;hasRequiredState=1;var e=requireErrorsBrowser().codes.ERR_INVALID_OPT_VALUE;return state={getHighWaterMark:function(t,i,n,r){var a=function(e,t,i){return null!=e.highWaterMark?e.highWaterMark:t?e[i]:null}(i,r,n);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new e(r?n:"highWaterMark",a);return Math.floor(a)}return t.objectMode?16:16384}}}var browser$g=deprecate,_stream_writable$2,hasRequired_stream_writable$2,_stream_duplex$2,hasRequired_stream_duplex$2;function deprecate(e,t){if(config("noDeprecation"))return e;var i=!1;return function(){if(!i){if(config("throwDeprecation"))throw new Error(t);config("traceDeprecation")?console.trace(t):console.warn(t),i=!0}return e.apply(this,arguments)}}function config(e){try{if(!globalThis.localStorage)return!1}catch(i){return!1}var t=globalThis.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}function require_stream_writable$2(){if(hasRequired_stream_writable$2)return _stream_writable$2;function e(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,i){var n=e.entry;e.entry=null;for(;n;){var r=n.callback;t.pendingcb--,r(i),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var t;hasRequired_stream_writable$2=1,_stream_writable$2=S,S.WritableState=b;var i={deprecate:browser$g},n=requireStreamBrowser(),r=require$$0$1.Buffer,a=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var o,s=requireDestroy(),l=requireState().getHighWaterMark,c=requireErrorsBrowser().codes,u=c.ERR_INVALID_ARG_TYPE,d=c.ERR_METHOD_NOT_IMPLEMENTED,h=c.ERR_MULTIPLE_CALLBACK,p=c.ERR_STREAM_CANNOT_PIPE,m=c.ERR_STREAM_DESTROYED,f=c.ERR_STREAM_NULL_VALUES,g=c.ERR_STREAM_WRITE_AFTER_END,_=c.ERR_UNKNOWN_ENCODING,v=s.errorOrDestroy;function y(){}function b(i,n,r){t=t||require_stream_duplex$2(),i=i||{},"boolean"!=typeof r&&(r=n instanceof t),this.objectMode=!!i.objectMode,r&&(this.objectMode=this.objectMode||!!i.writableObjectMode),this.highWaterMark=l(this,i,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===i.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=i.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var i=e._writableState,n=i.sync,r=i.writecb;if("function"!=typeof r)throw new h;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(i),t)!function(e,t,i,n,r){--t.pendingcb,i?(process$1.nextTick(r,n),process$1.nextTick(x,e,t),e._writableState.errorEmitted=!0,v(e,n)):(r(n),e._writableState.errorEmitted=!0,v(e,n),x(e,t))}(e,i,n,t,r);else{var a=T(i)||e.destroyed;a||i.corked||i.bufferProcessing||!i.bufferedRequest||C(e,i),n?process$1.nextTick(w,e,i,a,r):w(e,i,a,r)}}(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==i.emitClose,this.autoDestroy=!!i.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function S(e){var i=this instanceof(t=t||require_stream_duplex$2());if(!i&&!o.call(S,this))return new S(e);this._writableState=new b(e,this,i),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),n.call(this)}function E(e,t,i,n,r,a,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new m("write")):i?e._writev(r,t.onwrite):e._write(r,a,t.onwrite),t.sync=!1}function w(e,t,i,n){i||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),x(e,t)}function C(t,i){i.bufferProcessing=!0;var n=i.bufferedRequest;if(t._writev&&n&&n.next){var r=i.bufferedRequestCount,a=new Array(r),o=i.corkedRequestsFree;o.entry=n;for(var s=0,l=!0;n;)a[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;a.allBuffers=l,E(t,i,!0,i.length,a,"",o.finish),i.pendingcb++,i.lastBufferedRequest=null,o.next?(i.corkedRequestsFree=o.next,o.next=null):i.corkedRequestsFree=new e(i),i.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,u=n.encoding,d=n.callback;if(E(t,i,!1,i.objectMode?1:c.length,c,u,d),n=n.next,i.bufferedRequestCount--,i.writing)break}null===n&&(i.lastBufferedRequest=null)}i.bufferedRequest=n,i.bufferProcessing=!1}function T(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function A(e,t){e._final(function(i){t.pendingcb--,i&&v(e,i),t.prefinished=!0,e.emit("prefinish"),x(e,t)})}function x(e,t){var i=T(t);if(i&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process$1.nextTick(A,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return i}return inherits_browserExports(S,n),b.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(b.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===S&&(e&&e._writableState instanceof b)}})):o=function(e){return e instanceof this},S.prototype.pipe=function(){v(this,new p)},S.prototype.write=function(e,t,i){var n,o=this._writableState,s=!1,l=!o.objectMode&&(n=e,r.isBuffer(n)||n instanceof a);return l&&!r.isBuffer(e)&&(e=function(e){return r.from(e)}(e)),"function"==typeof t&&(i=t,t=null),l?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof i&&(i=y),o.ending?function(e,t){var i=new g;v(e,i),process$1.nextTick(t,i)}(this,i):(l||function(e,t,i,n){var r;return null===i?r=new f:"string"==typeof i||t.objectMode||(r=new u("chunk",["string","Buffer"],i)),!r||(v(e,r),process$1.nextTick(n,r),!1)}(this,o,e,i))&&(o.pendingcb++,s=function(e,t,i,n,a,o){if(!i){var s=function(e,t,i){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=r.from(t,i));return t}(t,n,a);n!==s&&(i=!0,a="buffer",n=s)}var l=t.objectMode?1:n.length;t.length+=l;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:a,isBuf:i,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else E(e,t,!1,l,n,a,o);return c}(this,o,l,e,t,i)),s},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||C(this,e))},S.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,i){i(new d("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,i){var n=this._writableState;return"function"==typeof e?(i=e,e=null,t=null):"function"==typeof t&&(i=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,i){t.ending=!0,x(e,t),i&&(t.finished?process$1.nextTick(i):e.once("finish",i));t.ended=!0,e.writable=!1}(this,n,i),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=s.destroy,S.prototype._undestroy=s.undestroy,S.prototype._destroy=function(e,t){t(e)},_stream_writable$2}function require_stream_duplex$2(){if(hasRequired_stream_duplex$2)return _stream_duplex$2;hasRequired_stream_duplex$2=1;var e=Object.keys||function(e){var t=[];for(var i in e)t.push(i);return t};_stream_duplex$2=o;var t=require_stream_readable$2(),i=require_stream_writable$2();inherits_browserExports(o,t);for(var n=e(i.prototype),r=0;r<n.length;r++){var a=n[r];o.prototype[a]||(o.prototype[a]=i.prototype[a])}function o(e){if(!(this instanceof o))return new o(e);t.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",s)))}function s(){this._writableState.ended||process$1.nextTick(l,this)}function l(e){e.end()}return Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),_stream_duplex$2}var string_decoder={},Buffer$D=safeBufferExports$2.Buffer,isEncoding=Buffer$D.isEncoding||function(e){switch((e=""+e)&&e.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}},endOfStream,hasRequiredEndOfStream,async_iterator,hasRequiredAsync_iterator,fromBrowser,hasRequiredFromBrowser,_stream_readable$2,hasRequired_stream_readable$2,_stream_transform$2,hasRequired_stream_transform,_stream_passthrough$2,hasRequired_stream_passthrough,pipeline_1,hasRequiredPipeline;function _normalizeEncoding(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if("string"!=typeof t&&(Buffer$D.isEncoding===isEncoding||!isEncoding(e)))throw new Error("Unknown encoding: "+e);return t||e}function StringDecoder$1(e){var t;switch(this.encoding=normalizeEncoding(e),this.encoding){case"utf16le":this.text=utf16Text,this.end=utf16End,t=4;break;case"utf8":this.fillLast=utf8FillLast,t=4;break;case"base64":this.text=base64Text,this.end=base64End,t=3;break;default:return this.write=simpleWrite,void(this.end=simpleEnd)}this.lastNeed=0,this.lastTotal=0,this.lastChar=Buffer$D.allocUnsafe(t)}function utf8CheckByte(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function utf8CheckIncomplete(e,t,i){var n=t.length-1;if(n<i)return 0;var r=utf8CheckByte(t[n]);return r>=0?(r>0&&(e.lastNeed=r-1),r):--n<i||-2===r?0:(r=utf8CheckByte(t[n]))>=0?(r>0&&(e.lastNeed=r-2),r):--n<i||-2===r?0:(r=utf8CheckByte(t[n]))>=0?(r>0&&(2===r?r=0:e.lastNeed=r-3),r):0}function utf8CheckExtraBytes(e,t,i){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed,i=utf8CheckExtraBytes(this,e);return void 0!==i?i:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function utf8Text(e,t){var i=utf8CheckIncomplete(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=i;var n=e.length-(i-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function utf8End(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function utf16Text(e,t){if((e.length-t)%2==0){var i=e.toString("utf16le",t);if(i){var n=i.charCodeAt(i.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function utf16End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,i)}return t}function base64Text(e,t){var i=(e.length-t)%3;return 0===i?e.toString("base64",t):(this.lastNeed=3-i,this.lastTotal=3,1===i?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-i))}function base64End(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}function requireEndOfStream(){if(hasRequiredEndOfStream)return endOfStream;hasRequiredEndOfStream=1;var e=requireErrorsBrowser().codes.ERR_STREAM_PREMATURE_CLOSE;function t(){}return endOfStream=function i(n,r,a){if("function"==typeof r)return i(n,null,r);r||(r={}),a=function(e){var t=!1;return function(){if(!t){t=!0;for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];e.apply(this,n)}}}(a||t);var o=r.readable||!1!==r.readable&&n.readable,s=r.writable||!1!==r.writable&&n.writable,l=function(){n.writable||u()},c=n._writableState&&n._writableState.finished,u=function(){s=!1,c=!0,o||a.call(n)},d=n._readableState&&n._readableState.endEmitted,h=function(){o=!1,d=!0,s||a.call(n)},p=function(e){a.call(n,e)},m=function(){var t;return o&&!d?(n._readableState&&n._readableState.ended||(t=new e),a.call(n,t)):s&&!c?(n._writableState&&n._writableState.ended||(t=new e),a.call(n,t)):void 0},f=function(){n.req.on("finish",u)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(n)?s&&!n._writableState&&(n.on("end",l),n.on("close",l)):(n.on("complete",u),n.on("abort",m),n.req?f():n.on("request",f)),n.on("end",h),n.on("finish",u),!1!==r.error&&n.on("error",p),n.on("close",m),function(){n.removeListener("complete",u),n.removeListener("abort",m),n.removeListener("request",f),n.req&&n.req.removeListener("finish",u),n.removeListener("end",l),n.removeListener("close",l),n.removeListener("finish",u),n.removeListener("end",h),n.removeListener("error",p),n.removeListener("close",m)}},endOfStream}function requireAsync_iterator(){if(hasRequiredAsync_iterator)return async_iterator;var e;function t(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}hasRequiredAsync_iterator=1;var i=requireEndOfStream(),n=Symbol("lastResolve"),r=Symbol("lastReject"),a=Symbol("error"),o=Symbol("ended"),s=Symbol("lastPromise"),l=Symbol("handlePromise"),c=Symbol("stream");function u(e,t){return{value:e,done:t}}function d(e){var t=e[n];if(null!==t){var i=e[c].read();null!==i&&(e[s]=null,e[n]=null,e[r]=null,t(u(i,!1)))}}function h(e){process$1.nextTick(d,e)}var p=Object.getPrototypeOf(function(){}),m=Object.setPrototypeOf((t(e={get stream(){return this[c]},next:function(){var e=this,t=this[a];if(null!==t)return Promise.reject(t);if(this[o])return Promise.resolve(u(void 0,!0));if(this[c].destroyed)return new Promise(function(t,i){process$1.nextTick(function(){e[a]?i(e[a]):t(u(void 0,!0))})});var i,n=this[s];if(n)i=new Promise(function(e,t){return function(i,n){e.then(function(){t[o]?i(u(void 0,!0)):t[l](i,n)},n)}}(n,this));else{var r=this[c].read();if(null!==r)return Promise.resolve(u(r,!1));i=new Promise(this[l])}return this[s]=i,i}},Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var e=this;return new Promise(function(t,i){e[c].destroy(null,function(e){e?i(e):t(u(void 0,!0))})})}),e),p);return async_iterator=function(e){var d,p=Object.create(m,(t(d={},c,{value:e,writable:!0}),t(d,n,{value:null,writable:!0}),t(d,r,{value:null,writable:!0}),t(d,a,{value:null,writable:!0}),t(d,o,{value:e._readableState.endEmitted,writable:!0}),t(d,l,{value:function(e,t){var i=p[c].read();i?(p[s]=null,p[n]=null,p[r]=null,e(u(i,!1))):(p[n]=e,p[r]=t)},writable:!0}),d));return p[s]=null,i(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=p[r];return null!==t&&(p[s]=null,p[n]=null,p[r]=null,t(e)),void(p[a]=e)}var i=p[n];null!==i&&(p[s]=null,p[n]=null,p[r]=null,i(u(void 0,!0))),p[o]=!0}),e.on("readable",h.bind(null,p)),p}}function requireFromBrowser(){return hasRequiredFromBrowser?fromBrowser:(hasRequiredFromBrowser=1,fromBrowser=function(){throw new Error("Readable.from is not available in the browser")})}function require_stream_readable$2(){if(hasRequired_stream_readable$2)return _stream_readable$2;var e;hasRequired_stream_readable$2=1,_stream_readable$2=S,S.ReadableState=b,eventsExports.EventEmitter;var t=function(e,t){return e.listeners(t).length},i=requireStreamBrowser(),n=require$$0$1.Buffer,r=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var a,o=util$5;a=o&&o.debuglog?o.debuglog("stream"):function(){};var s,l,c,u=requireBuffer_list(),d=requireDestroy(),h=requireState().getHighWaterMark,p=requireErrorsBrowser().codes,m=p.ERR_INVALID_ARG_TYPE,f=p.ERR_STREAM_PUSH_AFTER_EOF,g=p.ERR_METHOD_NOT_IMPLEMENTED,_=p.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;inherits_browserExports(S,i);var v=d.errorOrDestroy,y=["error","close","destroy","pause","resume"];function b(t,i,n){e=e||require_stream_duplex$2(),t=t||{},"boolean"!=typeof n&&(n=i instanceof e),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=h(this,t,"readableHighWaterMark",n),this.buffer=new u,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.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(s||(s=string_decoder.StringDecoder),this.decoder=new s(t.encoding),this.encoding=t.encoding)}function S(t){if(e=e||require_stream_duplex$2(),!(this instanceof S))return new S(t);var n=this instanceof e;this._readableState=new b(t,this,n),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),i.call(this)}function E(e,t,i,o,s){a("readableAddChunk",t);var l,c=e._readableState;if(null===t)c.reading=!1,function(e,t){if(a("onEofChunk"),t.ended)return;if(t.decoder){var i=t.decoder.end();i&&i.length&&(t.buffer.push(i),t.length+=t.objectMode?1:i.length)}t.ended=!0,t.sync?A(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,x(e)))}(e,c);else if(s||(l=function(e,t){var i;a=t,n.isBuffer(a)||a instanceof r||"string"==typeof t||void 0===t||e.objectMode||(i=new m("chunk",["string","Buffer","Uint8Array"],t));var a;return i}(c,t)),l)v(e,l);else if(c.objectMode||t&&t.length>0)if("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===n.prototype||(t=function(e){return n.from(e)}(t)),o)c.endEmitted?v(e,new _):w(e,c,t,!0);else if(c.ended)v(e,new f);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!i?(t=c.decoder.write(t),c.objectMode||0!==t.length?w(e,c,t,!1):M(e,c)):w(e,c,t,!1)}else o||(c.reading=!1,M(e,c));return!c.ended&&(c.length<c.highWaterMark||0===c.length)}function w(e,t,i,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",i)):(t.length+=t.objectMode?1:i.length,n?t.buffer.unshift(i):t.buffer.push(i),t.needReadable&&A(e)),M(e,t)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=d.destroy,S.prototype._undestroy=d.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var i,r=this._readableState;return r.objectMode?i=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=n.from(e,t),t=""),i=!0),E(this,e,t,!1,i)},S.prototype.unshift=function(e){return E(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(e){s||(s=string_decoder.StringDecoder);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var i=this._readableState.buffer.head,n="";null!==i;)n+=t.write(i.data),i=i.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var C=1073741824;function T(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=C?e=C:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function A(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,process$1.nextTick(x,e))}function x(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,O(e)}function M(e,t){t.readingMore||(t.readingMore=!0,process$1.nextTick(R,e,t))}function R(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var i=t.length;if(a("maybeReadMore read 0"),e.read(0),i===t.length)break}t.readingMore=!1}function I(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function k(e){a("readable nexttick read 0"),e.read(0)}function N(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),O(e),t.flowing&&!t.reading&&e.read(0)}function O(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?i=t.buffer.shift():!e||e>=t.length?(i=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):i=t.buffer.consume(e,t.decoder),i);var i}function L(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process$1.nextTick(P,t,e))}function P(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var i=t._writableState;(!i||i.autoDestroy&&i.finished)&&t.destroy()}}function B(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1}return S.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t=this._readableState,i=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return a("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?L(this):A(this),null;if(0===(e=T(e,t))&&t.ended)return 0===t.length&&L(this),null;var n,r=t.needReadable;return a("need readable",r),(0===t.length||t.length-e<t.highWaterMark)&&a("length less than watermark",r=!0),t.ended||t.reading?a("reading or ended",r=!1):r&&(a("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=T(i,t))),null===(n=e>0?D(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),i!==e&&t.ended&&L(this)),null!==n&&this.emit("data",n),n},S.prototype._read=function(e){v(this,new g("_read()"))},S.prototype.pipe=function(e,i){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,a("pipe count=%d opts=%j",r.pipesCount,i);var o=(!i||!1!==i.end)&&e!==process$1.stdout&&e!==process$1.stderr?l:f;function s(t,i){a("onunpipe"),t===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,a("cleanup"),e.removeListener("close",p),e.removeListener("finish",m),e.removeListener("drain",c),e.removeListener("error",h),e.removeListener("unpipe",s),n.removeListener("end",l),n.removeListener("end",f),n.removeListener("data",d),u=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}function l(){a("onend"),e.end()}r.endEmitted?process$1.nextTick(o):n.once("end",o),e.on("unpipe",s);var c=function(e){return function(){var i=e._readableState;a("pipeOnDrain",i.awaitDrain),i.awaitDrain&&i.awaitDrain--,0===i.awaitDrain&&t(e,"data")&&(i.flowing=!0,O(e))}}(n);e.on("drain",c);var u=!1;function d(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==B(r.pipes,e))&&!u&&(a("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function h(i){a("onerror",i),f(),e.removeListener("error",h),0===t(e,"error")&&v(e,i)}function p(){e.removeListener("finish",m),f()}function m(){a("onfinish"),e.removeListener("close",p),f()}function f(){a("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,i){if("function"==typeof e.prependListener)return e.prependListener(t,i);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(i):e._events[t]=[i,e._events[t]]:e.on(t,i)}(e,"error",h),e.once("close",p),e.once("finish",m),e.emit("pipe",n),r.flowing||(a("pipe resume"),n.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,i={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,i)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<r;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=B(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,i)),this},S.prototype.on=function(e,t){var n=i.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,a("on readable",r.length,r.reading),r.length?A(this):r.reading||process$1.nextTick(k,this))),n},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var n=i.prototype.removeListener.call(this,e,t);return"readable"===e&&process$1.nextTick(I,this),n},S.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process$1.nextTick(I,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process$1.nextTick(N,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,i=this._readableState,n=!1;for(var r in e.on("end",function(){if(a("wrapped end"),i.decoder&&!i.ended){var e=i.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(r){(a("wrapped data"),i.decoder&&(r=i.decoder.write(r)),i.objectMode&&null==r)||(i.objectMode||r&&r.length)&&(t.push(r)||(n=!0,e.pause()))}),e)void 0===this[r]&&"function"==typeof e[r]&&(this[r]=function(t){return function(){return e[t].apply(e,arguments)}}(r));for(var o=0;o<y.length;o++)e.on(y[o],this.emit.bind(this,y[o]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===l&&(l=requireAsync_iterator()),l(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=D,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(e,t){return void 0===c&&(c=requireFromBrowser()),c(S,e,t)}),_stream_readable$2}function require_stream_transform(){if(hasRequired_stream_transform)return _stream_transform$2;hasRequired_stream_transform=1,_stream_transform$2=s;var e=requireErrorsBrowser().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,i=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,r=e.ERR_TRANSFORM_WITH_LENGTH_0,a=require_stream_duplex$2();function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new i);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);a.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",l)}function l(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?c(this,null,null):this._flush(function(t,i){c(e,t,i)})}function c(e,t,i){if(t)return e.emit("error",t);if(null!=i&&e.push(i),e._writableState.length)throw new r;if(e._transformState.transforming)throw new n;return e.push(null)}return inherits_browserExports(s,a),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,a.prototype.push.call(this,e,t)},s.prototype._transform=function(e,i,n){n(new t("_transform()"))},s.prototype._write=function(e,t,i){var n=this._transformState;if(n.writecb=i,n.writechunk=e,n.writeencoding=t,!n.transforming){var r=this._readableState;(n.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},s.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},s.prototype._destroy=function(e,t){a.prototype._destroy.call(this,e,function(e){t(e)})},_stream_transform$2}function require_stream_passthrough(){if(hasRequired_stream_passthrough)return _stream_passthrough$2;hasRequired_stream_passthrough=1,_stream_passthrough$2=t;var e=require_stream_transform();function t(i){if(!(this instanceof t))return new t(i);e.call(this,i)}return inherits_browserExports(t,e),t.prototype._transform=function(e,t,i){i(null,e)},_stream_passthrough$2}function requirePipeline(){if(hasRequiredPipeline)return pipeline_1;var e;hasRequiredPipeline=1;var t=requireErrorsBrowser().codes,i=t.ERR_MISSING_ARGS,n=t.ERR_STREAM_DESTROYED;function r(e){if(e)throw e}function a(e){e()}function o(e,t){return e.pipe(t)}return pipeline_1=function(){for(var t=arguments.length,s=new Array(t),l=0;l<t;l++)s[l]=arguments[l];var c,u=function(e){return e.length?"function"!=typeof e[e.length-1]?r:e.pop():r}(s);if(Array.isArray(s[0])&&(s=s[0]),s.length<2)throw new i("streams");var d=s.map(function(t,i){var r=i<s.length-1;return function(t,i,r,a){a=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(a);var o=!1;t.on("close",function(){o=!0}),void 0===e&&(e=requireEndOfStream()),e(t,{readable:i,writable:r},function(e){if(e)return a(e);o=!0,a()});var s=!1;return function(e){if(!o&&!s)return s=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void a(e||new n("pipe"))}}(t,r,i>0,function(e){c||(c=e),e&&d.forEach(a),r||(d.forEach(a),u(c))})});return s.reduce(o)},pipeline_1}string_decoder.StringDecoder=StringDecoder$1,StringDecoder$1.prototype.write=function(e){if(0===e.length)return"";var t,i;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i<e.length?t?t+this.text(e,i):this.text(e,i):t||""},StringDecoder$1.prototype.end=utf8End,StringDecoder$1.prototype.text=utf8Text,StringDecoder$1.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};var streamBrowserify=Stream,EE=eventsExports.EventEmitter,inherits$U=inherits_browserExports;function Stream(){EE.call(this)}inherits$U(Stream,EE),Stream.Readable=require_stream_readable$2(),Stream.Writable=require_stream_writable$2(),Stream.Duplex=require_stream_duplex$2(),Stream.Transform=require_stream_transform(),Stream.PassThrough=require_stream_passthrough(),Stream.finished=requireEndOfStream(),Stream.pipeline=requirePipeline(),Stream.Stream=Stream,Stream.prototype.pipe=function(e,t){var i=this;function n(t){e.writable&&!1===e.write(t)&&i.pause&&i.pause()}function r(){i.readable&&i.resume&&i.resume()}i.on("data",n),e.on("drain",r),e._isStdio||t&&!1===t.end||(i.on("end",o),i.on("close",s));var a=!1;function o(){a||(a=!0,e.end())}function s(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(c(),0===EE.listenerCount(this,"error"))throw e}function c(){i.removeListener("data",n),e.removeListener("drain",r),i.removeListener("end",o),i.removeListener("close",s),i.removeListener("error",l),e.removeListener("error",l),i.removeListener("end",c),i.removeListener("close",c),e.removeListener("close",c)}return i.on("error",l),e.on("error",l),i.on("end",c),i.on("close",c),e.on("close",c),e.emit("pipe",i),e};var Buffer$C=safeBufferExports$2.Buffer,Transform$b=streamBrowserify.Transform,inherits$T=inherits_browserExports;function HashBase$3(e){Transform$b.call(this),this._block=Buffer$C.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}inherits$T(HashBase$3,Transform$b),HashBase$3.prototype._transform=function(e,t,i){var n=null;try{this.update(e,t)}catch(r){n=r}i(n)},HashBase$3.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(i){t=i}e(t)};var useUint8Array$3="undefined"!=typeof Uint8Array,useArrayBuffer$3="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&ArrayBuffer.isView&&(Buffer$C.prototype instanceof Uint8Array||Buffer$C.TYPED_ARRAY_SUPPORT);function toBuffer$8(e,t){if(e instanceof Buffer$C)return e;if("string"==typeof e)return Buffer$C.from(e,t);if(useArrayBuffer$3&&ArrayBuffer.isView(e)){if(0===e.byteLength)return Buffer$C.alloc(0);var i=Buffer$C.from(e.buffer,e.byteOffset,e.byteLength);if(i.byteLength===e.byteLength)return i}if(useUint8Array$3&&e instanceof Uint8Array)return Buffer$C.from(e);if(Buffer$C.isBuffer(e)&&e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))return Buffer$C.from(e);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}HashBase$3.prototype.update=function(e,t){if(this._finalized)throw new Error("Digest already called");e=toBuffer$8(e,t);for(var i=this._block,n=0;this._blockOffset+e.length-n>=this._blockSize;){for(var r=this._blockOffset;r<this._blockSize;)i[r++]=e[n++];this._update(),this._blockOffset=0}for(;n<e.length;)i[this._blockOffset++]=e[n++];for(var a=0,o=8*e.length;o>0;++a)this._length[a]+=o,(o=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*o);return this},HashBase$3.prototype._update=function(){throw new Error("_update is not implemented")},HashBase$3.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var i=0;i<4;++i)this._length[i]=0;return t},HashBase$3.prototype._digest=function(){throw new Error("_digest is not implemented")};var hashBase$1=HashBase$3,inherits$S=inherits_browserExports,HashBase$2=hashBase$1,Buffer$B=safeBufferExports$2.Buffer,ARRAY16$1=new Array(16);function MD5$3(){HashBase$2.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function rotl$1(e,t){return e<<t|e>>>32-t}function fnF(e,t,i,n,r,a,o){return rotl$1(e+(t&i|~t&n)+r+a|0,o)+t|0}function fnG(e,t,i,n,r,a,o){return rotl$1(e+(t&n|i&~n)+r+a|0,o)+t|0}function fnH(e,t,i,n,r,a,o){return rotl$1(e+(t^i^n)+r+a|0,o)+t|0}function fnI(e,t,i,n,r,a,o){return rotl$1(e+(i^(t|~n))+r+a|0,o)+t|0}inherits$S(MD5$3,HashBase$2),MD5$3.prototype._update=function(){for(var e=ARRAY16$1,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var i=this._a,n=this._b,r=this._c,a=this._d;i=fnF(i,n,r,a,e[0],3614090360,7),a=fnF(a,i,n,r,e[1],3905402710,12),r=fnF(r,a,i,n,e[2],606105819,17),n=fnF(n,r,a,i,e[3],3250441966,22),i=fnF(i,n,r,a,e[4],4118548399,7),a=fnF(a,i,n,r,e[5],1200080426,12),r=fnF(r,a,i,n,e[6],2821735955,17),n=fnF(n,r,a,i,e[7],4249261313,22),i=fnF(i,n,r,a,e[8],1770035416,7),a=fnF(a,i,n,r,e[9],2336552879,12),r=fnF(r,a,i,n,e[10],4294925233,17),n=fnF(n,r,a,i,e[11],2304563134,22),i=fnF(i,n,r,a,e[12],1804603682,7),a=fnF(a,i,n,r,e[13],4254626195,12),r=fnF(r,a,i,n,e[14],2792965006,17),i=fnG(i,n=fnF(n,r,a,i,e[15],1236535329,22),r,a,e[1],4129170786,5),a=fnG(a,i,n,r,e[6],3225465664,9),r=fnG(r,a,i,n,e[11],643717713,14),n=fnG(n,r,a,i,e[0],3921069994,20),i=fnG(i,n,r,a,e[5],3593408605,5),a=fnG(a,i,n,r,e[10],38016083,9),r=fnG(r,a,i,n,e[15],3634488961,14),n=fnG(n,r,a,i,e[4],3889429448,20),i=fnG(i,n,r,a,e[9],568446438,5),a=fnG(a,i,n,r,e[14],3275163606,9),r=fnG(r,a,i,n,e[3],4107603335,14),n=fnG(n,r,a,i,e[8],1163531501,20),i=fnG(i,n,r,a,e[13],2850285829,5),a=fnG(a,i,n,r,e[2],4243563512,9),r=fnG(r,a,i,n,e[7],1735328473,14),i=fnH(i,n=fnG(n,r,a,i,e[12],2368359562,20),r,a,e[5],4294588738,4),a=fnH(a,i,n,r,e[8],2272392833,11),r=fnH(r,a,i,n,e[11],1839030562,16),n=fnH(n,r,a,i,e[14],4259657740,23),i=fnH(i,n,r,a,e[1],2763975236,4),a=fnH(a,i,n,r,e[4],1272893353,11),r=fnH(r,a,i,n,e[7],4139469664,16),n=fnH(n,r,a,i,e[10],3200236656,23),i=fnH(i,n,r,a,e[13],681279174,4),a=fnH(a,i,n,r,e[0],3936430074,11),r=fnH(r,a,i,n,e[3],3572445317,16),n=fnH(n,r,a,i,e[6],76029189,23),i=fnH(i,n,r,a,e[9],3654602809,4),a=fnH(a,i,n,r,e[12],3873151461,11),r=fnH(r,a,i,n,e[15],530742520,16),i=fnI(i,n=fnH(n,r,a,i,e[2],3299628645,23),r,a,e[0],4096336452,6),a=fnI(a,i,n,r,e[7],1126891415,10),r=fnI(r,a,i,n,e[14],2878612391,15),n=fnI(n,r,a,i,e[5],4237533241,21),i=fnI(i,n,r,a,e[12],1700485571,6),a=fnI(a,i,n,r,e[3],2399980690,10),r=fnI(r,a,i,n,e[10],4293915773,15),n=fnI(n,r,a,i,e[1],2240044497,21),i=fnI(i,n,r,a,e[8],1873313359,6),a=fnI(a,i,n,r,e[15],4264355552,10),r=fnI(r,a,i,n,e[6],2734768916,15),n=fnI(n,r,a,i,e[13],1309151649,21),i=fnI(i,n,r,a,e[4],4149444226,6),a=fnI(a,i,n,r,e[11],3174756917,10),r=fnI(r,a,i,n,e[2],718787259,15),n=fnI(n,r,a,i,e[9],3951481745,21),this._a=this._a+i|0,this._b=this._b+n|0,this._c=this._c+r|0,this._d=this._d+a|0},MD5$3.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=Buffer$B.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e};var md5_js=MD5$3,toString$5={}.toString,isarray$2=Array.isArray||function(e){return"[object Array]"==toString$5.call(e)},$TypeError=type,callBound=callBound$5,$typedArrayBuffer=callBound("TypedArray.prototype.buffer",!0),isTypedArray$1=requireIsTypedArray(),typedArrayBuffer$1=$typedArrayBuffer||function(e){if(!isTypedArray$1(e))throw new $TypeError("Not a Typed Array");return e.buffer},Buffer$A=safeBufferExports$2.Buffer,isArray$5=isarray$2,typedArrayBuffer=typedArrayBuffer$1,isView$2=ArrayBuffer.isView||function(e){try{return typedArrayBuffer(e),!0}catch(e3){return!1}},useUint8Array$2="undefined"!=typeof Uint8Array,useArrayBuffer$2="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,useFromArrayBuffer=useArrayBuffer$2&&(Buffer$A.prototype instanceof Uint8Array||Buffer$A.TYPED_ARRAY_SUPPORT),toBuffer$7=function(e,t){if(Buffer$A.isBuffer(e))return e.constructor&&!("isBuffer"in e)?Buffer$A.from(e):e;if("string"==typeof e)return Buffer$A.from(e,t);if(useArrayBuffer$2&&isView$2(e)){if(0===e.byteLength)return Buffer$A.alloc(0);if(useFromArrayBuffer){var i=Buffer$A.from(e.buffer,e.byteOffset,e.byteLength);if(i.byteLength===e.byteLength)return i}var n=e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),r=Buffer$A.from(n);if(r.length===e.byteLength)return r}if(useUint8Array$2&&e instanceof Uint8Array)return Buffer$A.from(e);var a=isArray$5(e);if(a)for(var o=0;o<e.length;o+=1){var s=e[o];if("number"!=typeof s||s<0||s>255||~~s!==s)throw new RangeError("Array items must be numbers in the range 0-255.")}if(a||Buffer$A.isBuffer(e)&&e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))return Buffer$A.from(e);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},Buffer$z=safeBufferExports$2.Buffer,toBuffer$6=toBuffer$7,useUint8Array$1="undefined"!=typeof Uint8Array,useArrayBuffer$1=useUint8Array$1&&"undefined"!=typeof ArrayBuffer,isView$1=useArrayBuffer$1&&ArrayBuffer.isView,toBuffer_1$1=function(e,t){if("string"==typeof e||Buffer$z.isBuffer(e)||useUint8Array$1&&e instanceof Uint8Array||isView$1&&isView$1(e))return toBuffer$6(e,t);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')},readableBrowser$1={exports:{}},processNextickArgs={exports:{}};function nextTick$1(e,t,i,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var r,a,o=arguments.length;switch(o){case 0:case 1:return process$1.nextTick(e);case 2:return process$1.nextTick(function(){e.call(null,t)});case 3:return process$1.nextTick(function(){e.call(null,t,i)});case 4:return process$1.nextTick(function(){e.call(null,t,i,n)});default:for(r=new Array(o-1),a=0;a<r.length;)r[a++]=arguments[a];return process$1.nextTick(function(){e.apply(null,r)})}}void 0===process$1||!process$1.version||0===process$1.version.indexOf("v0.")||0===process$1.version.indexOf("v1.")&&0!==process$1.version.indexOf("v1.8.")?processNextickArgs.exports={nextTick:nextTick$1}:processNextickArgs.exports=process$1;var processNextickArgsExports=processNextickArgs.exports,toString$4={}.toString,isarray$1=Array.isArray||function(e){return"[object Array]"==toString$4.call(e)},streamBrowser$1=eventsExports.EventEmitter,safeBuffer$2={exports:{}};!function(e,t){var i=require$$0$1,n=i.Buffer;function r(e,t){for(var i in e)t[i]=e[i]}function a(e,t,i){return n(e,t,i)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=i:(r(i,t),t.Buffer=a),r(n,a),a.from=function(e,t,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,i)},a.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=n(e);return void 0!==t?"string"==typeof i?r.fill(t,i):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}}(safeBuffer$2,safeBuffer$2.exports);var safeBufferExports$1=safeBuffer$2.exports,util$4={};function isArray$4(e){return Array.isArray?Array.isArray(e):"[object Array]"===objectToString$2(e)}function isBoolean(e){return"boolean"==typeof e}function isNull(e){return null===e}function isNullOrUndefined(e){return null==e}function isNumber$1(e){return"number"==typeof e}function isString$2(e){return"string"==typeof e}function isSymbol$2(e){return"symbol"==typeof e}function isUndefined(e){return void 0===e}function isRegExp$1(e){return"[object RegExp]"===objectToString$2(e)}function isObject$4(e){return"object"==typeof e&&null!==e}function isDate$1(e){return"[object Date]"===objectToString$2(e)}function isError(e){return"[object Error]"===objectToString$2(e)||e instanceof Error}function isFunction$3(e){return"function"==typeof e}function isPrimitive$1(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function objectToString$2(e){return Object.prototype.toString.call(e)}util$4.isArray=isArray$4,util$4.isBoolean=isBoolean,util$4.isNull=isNull,util$4.isNullOrUndefined=isNullOrUndefined,util$4.isNumber=isNumber$1,util$4.isString=isString$2,util$4.isSymbol=isSymbol$2,util$4.isUndefined=isUndefined,util$4.isRegExp=isRegExp$1,util$4.isObject=isObject$4,util$4.isDate=isDate$1,util$4.isError=isError,util$4.isFunction=isFunction$3,util$4.isPrimitive=isPrimitive$1,util$4.isBuffer=require$$0$1.Buffer.isBuffer;var BufferList$1={exports:{}},hasRequiredBufferList$1;function requireBufferList$1(){return hasRequiredBufferList$1||(hasRequiredBufferList$1=1,function(e){var t=safeBufferExports$1.Buffer,i=util$5;function n(e,t,i){e.copy(t,i)}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,i=""+t.data;t=t.next;)i+=e+t.data;return i},e.prototype.concat=function(e){if(0===this.length)return t.alloc(0);for(var i=t.allocUnsafe(e>>>0),r=this.head,a=0;r;)n(r.data,i,a),a+=r.data.length,r=r.next;return i},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})}(BufferList$1)),BufferList$1.exports}var pna$1=processNextickArgsExports;function destroy$1(e,t){var i=this,n=this._readableState&&this._readableState.destroyed,r=this._writableState&&this._writableState.destroyed;return n||r?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,pna$1.nextTick(emitErrorNT$1,this,e)):pna$1.nextTick(emitErrorNT$1,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?i._writableState?i._writableState.errorEmitted||(i._writableState.errorEmitted=!0,pna$1.nextTick(emitErrorNT$1,i,e)):pna$1.nextTick(emitErrorNT$1,i,e):t&&t(e)}),this)}function undestroy$1(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT$1(e,t){e.emit("error",t)}var destroy_1$1={destroy:destroy$1,undestroy:undestroy$1},_stream_writable$1,hasRequired_stream_writable$1,_stream_duplex$1,hasRequired_stream_duplex$1,_stream_readable$1,hasRequired_stream_readable$1;function require_stream_writable$1(){if(hasRequired_stream_writable$1)return _stream_writable$1;hasRequired_stream_writable$1=1;var e=processNextickArgsExports;function t(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,i){var n=e.entry;e.entry=null;for(;n;){var r=n.callback;t.pendingcb--,r(i),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}_stream_writable$1=p;var i,n=!process$1.browser&&["v0.10","v0.9."].indexOf(process$1.version.slice(0,5))>-1?setImmediate:e.nextTick;p.WritableState=h;var r=Object.create(util$4);r.inherits=inherits_browserExports;var a={deprecate:browser$g},o=streamBrowser$1,s=safeBufferExports$1.Buffer,l=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var c,u=destroy_1$1;function d(){}function h(r,a){i=i||require_stream_duplex$1(),r=r||{};var o=a instanceof i;this.objectMode=!!r.objectMode,o&&(this.objectMode=this.objectMode||!!r.writableObjectMode);var s=r.highWaterMark,l=r.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=s||0===s?s:o&&(l||0===l)?l:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===r.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,i){var r=t._writableState,a=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),i)!function(t,i,n,r,a){--i.pendingcb,n?(e.nextTick(a,r),e.nextTick(y,t,i),t._writableState.errorEmitted=!0,t.emit("error",r)):(a(r),t._writableState.errorEmitted=!0,t.emit("error",r),y(t,i))}(t,r,a,i,o);else{var s=_(r);s||r.corked||r.bufferProcessing||!r.bufferedRequest||g(t,r),a?n(f,t,r,s,o):f(t,r,s,o)}}(a,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 t(this)}function p(e){if(i=i||require_stream_duplex$1(),!(c.call(p,this)||this instanceof i))return new p(e);this._writableState=new h(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),o.call(this)}function m(e,t,i,n,r,a,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,i?e._writev(r,t.onwrite):e._write(r,a,t.onwrite),t.sync=!1}function f(e,t,i,n){i||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),y(e,t)}function g(e,i){i.bufferProcessing=!0;var n=i.bufferedRequest;if(e._writev&&n&&n.next){var r=i.bufferedRequestCount,a=new Array(r),o=i.corkedRequestsFree;o.entry=n;for(var s=0,l=!0;n;)a[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;a.allBuffers=l,m(e,i,!0,i.length,a,"",o.finish),i.pendingcb++,i.lastBufferedRequest=null,o.next?(i.corkedRequestsFree=o.next,o.next=null):i.corkedRequestsFree=new t(i),i.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,u=n.encoding,d=n.callback;if(m(e,i,!1,i.objectMode?1:c.length,c,u,d),n=n.next,i.bufferedRequestCount--,i.writing)break}null===n&&(i.lastBufferedRequest=null)}i.bufferedRequest=n,i.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function v(e,t){e._final(function(i){t.pendingcb--,i&&e.emit("error",i),t.prefinished=!0,e.emit("prefinish"),y(e,t)})}function y(t,i){var n=_(i);return n&&(!function(t,i){i.prefinished||i.finalCalled||("function"==typeof t._final?(i.pendingcb++,i.finalCalled=!0,e.nextTick(v,t,i)):(i.prefinished=!0,t.emit("prefinish")))}(t,i),0===i.pendingcb&&(i.finished=!0,t.emit("finish"))),n}return r.inherits(p,o),h.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(h.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(p,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===p&&(e&&e._writableState instanceof h)}})):c=function(e){return e instanceof this},p.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},p.prototype.write=function(t,i,n){var r,a=this._writableState,o=!1,c=!a.objectMode&&(r=t,s.isBuffer(r)||r instanceof l);return c&&!s.isBuffer(t)&&(t=function(e){return s.from(e)}(t)),"function"==typeof i&&(n=i,i=null),c?i="buffer":i||(i=a.defaultEncoding),"function"!=typeof n&&(n=d),a.ended?function(t,i){var n=new Error("write after end");t.emit("error",n),e.nextTick(i,n)}(this,n):(c||function(t,i,n,r){var a=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||i.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),e.nextTick(r,o),a=!1),a}(this,a,t,n))&&(a.pendingcb++,o=function(e,t,i,n,r,a){if(!i){var o=function(e,t,i){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=s.from(t,i));return t}(t,n,r);n!==o&&(i=!0,r="buffer",n=o)}var l=t.objectMode?1:n.length;t.length+=l;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:r,isBuf:i,callback:a,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else m(e,t,!1,l,n,r,a);return c}(this,a,c,t,i,n)),o},p.prototype.cork=function(){this._writableState.corked++},p.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||g(this,e))},p.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),p.prototype._write=function(e,t,i){i(new Error("_write() is not implemented"))},p.prototype._writev=null,p.prototype.end=function(t,i,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,i=null):"function"==typeof i&&(n=i,i=null),null!=t&&this.write(t,i),r.corked&&(r.corked=1,this.uncork()),r.ending||function(t,i,n){i.ending=!0,y(t,i),n&&(i.finished?e.nextTick(n):t.once("finish",n));i.ended=!0,t.writable=!1}(this,r,n)},Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),p.prototype.destroy=u.destroy,p.prototype._undestroy=u.undestroy,p.prototype._destroy=function(e,t){this.end(),t(e)},_stream_writable$1}function require_stream_duplex$1(){if(hasRequired_stream_duplex$1)return _stream_duplex$1;hasRequired_stream_duplex$1=1;var e=processNextickArgsExports,t=Object.keys||function(e){var t=[];for(var i in e)t.push(i);return t};_stream_duplex$1=l;var i=Object.create(util$4);i.inherits=inherits_browserExports;var n=require_stream_readable$1(),r=require_stream_writable$1();i.inherits(l,n);for(var a=t(r.prototype),o=0;o<a.length;o++){var s=a[o];l.prototype[s]||(l.prototype[s]=r.prototype[s])}function l(e){if(!(this instanceof l))return new l(e);n.call(this,e),r.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||e.nextTick(u,this)}function u(e){e.end()}return Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),l.prototype._destroy=function(t,i){this.push(null),this.end(),e.nextTick(i,t)},_stream_duplex$1}function require_stream_readable$1(){if(hasRequired_stream_readable$1)return _stream_readable$1;hasRequired_stream_readable$1=1;var e=processNextickArgsExports;_stream_readable$1=f;var t,i=isarray$1;f.ReadableState=m,eventsExports.EventEmitter;var n=function(e,t){return e.listeners(t).length},r=streamBrowser$1,a=safeBufferExports$1.Buffer,o=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var s=Object.create(util$4);s.inherits=inherits_browserExports;var l=util$5,c=void 0;c=l&&l.debuglog?l.debuglog("stream"):function(){};var u,d=requireBufferList$1(),h=destroy_1$1;s.inherits(f,r);var p=["error","close","destroy","pause","resume"];function m(e,i){e=e||{};var n=i instanceof(t=t||require_stream_duplex$1());this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,a=e.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n&&(a||0===a)?a:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new d,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.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(u||(u=string_decoder.StringDecoder),this.decoder=new u(e.encoding),this.encoding=e.encoding)}function f(e){if(t=t||require_stream_duplex$1(),!(this instanceof f))return new f(e);this._readableState=new m(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),r.call(this)}function g(e,t,i,n,r){var s,l=e._readableState;null===t?(l.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var i=t.decoder.end();i&&i.length&&(t.buffer.push(i),t.length+=t.objectMode?1:i.length)}t.ended=!0,b(e)}(e,l)):(r||(s=function(e,t){var i;n=t,a.isBuffer(n)||n instanceof o||"string"==typeof t||void 0===t||e.objectMode||(i=new TypeError("Invalid non-string/buffer chunk"));var n;return i}(l,t)),s?e.emit("error",s):l.objectMode||t&&t.length>0?("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=function(e){return a.from(e)}(t)),n?l.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,l,t,!0):l.ended?e.emit("error",new Error("stream.push() after EOF")):(l.reading=!1,l.decoder&&!i?(t=l.decoder.write(t),l.objectMode||0!==t.length?_(e,l,t,!1):E(e,l)):_(e,l,t,!1))):n||(l.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(l)}function _(e,t,i,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",i),e.read(0)):(t.length+=t.objectMode?1:i.length,n?t.buffer.unshift(i):t.buffer.push(i),t.needReadable&&b(e)),E(e,t)}Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),f.prototype.destroy=h.destroy,f.prototype._undestroy=h.undestroy,f.prototype._destroy=function(e,t){this.push(null),t(e)},f.prototype.push=function(e,t){var i,n=this._readableState;return n.objectMode?i=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=a.from(e,t),t=""),i=!0),g(this,e,t,!1,i)},f.prototype.unshift=function(e){return g(this,e,null,!0,!1)},f.prototype.isPaused=function(){return!1===this._readableState.flowing},f.prototype.setEncoding=function(e){return u||(u=string_decoder.StringDecoder),this._readableState.decoder=new u(e),this._readableState.encoding=e,this};var v=8388608;function y(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=v?e=v:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function b(t){var i=t._readableState;i.needReadable=!1,i.emittedReadable||(c("emitReadable",i.flowing),i.emittedReadable=!0,i.sync?e.nextTick(S,t):S(t))}function S(e){c("emit readable"),e.emit("readable"),A(e)}function E(t,i){i.readingMore||(i.readingMore=!0,e.nextTick(w,t,i))}function w(e,t){for(var i=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(c("maybeReadMore read 0"),e.read(0),i!==t.length);)i=t.length;t.readingMore=!1}function C(e){c("readable nexttick read 0"),e.read(0)}function T(e,t){t.reading||(c("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),A(e),t.flowing&&!t.reading&&e.read(0)}function A(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function x(e,t){return 0===t.length?null:(t.objectMode?i=t.buffer.shift():!e||e>=t.length?(i=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):i=function(e,t,i){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():i?function(e,t){var i=t.head,n=1,r=i.data;e-=r.length;for(;i=i.next;){var a=i.data,o=e>a.length?a.length:e;if(o===a.length?r+=a:r+=a.slice(0,e),0===(e-=o)){o===a.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=a.slice(o));break}++n}return t.length-=n,r}(e,t):function(e,t){var i=a.allocUnsafe(e),n=t.head,r=1;n.data.copy(i),e-=n.data.length;for(;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(o.copy(i,i.length-e,0,s),0===(e-=s)){s===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++r}return t.length-=r,i}(e,t);return n}(e,t.buffer,t.decoder),i);var i}function M(t){var i=t._readableState;if(i.length>0)throw new Error('"endReadable()" called on non-empty stream');i.endEmitted||(i.ended=!0,e.nextTick(R,i,t))}function R(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function I(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1}return f.prototype.read=function(e){c("read",e),e=parseInt(e,10);var t=this._readableState,i=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):b(this),null;if(0===(e=y(e,t))&&t.ended)return 0===t.length&&M(this),null;var n,r=t.needReadable;return c("need readable",r),(0===t.length||t.length-e<t.highWaterMark)&&c("length less than watermark",r=!0),t.ended||t.reading?c("reading or ended",r=!1):r&&(c("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=y(i,t))),null===(n=e>0?x(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),i!==e&&t.ended&&M(this)),null!==n&&this.emit("data",n),n},f.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},f.prototype.pipe=function(t,r){var a=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,c("pipe count=%d opts=%j",o.pipesCount,r);var s=(!r||!1!==r.end)&&t!==process$1.stdout&&t!==process$1.stderr?u:v;function l(e,i){c("onunpipe"),e===a&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,c("cleanup"),t.removeListener("close",g),t.removeListener("finish",_),t.removeListener("drain",d),t.removeListener("error",f),t.removeListener("unpipe",l),a.removeListener("end",u),a.removeListener("end",v),a.removeListener("data",m),h=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||d())}function u(){c("onend"),t.end()}o.endEmitted?e.nextTick(s):a.once("end",s),t.on("unpipe",l);var d=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&n(e,"data")&&(t.flowing=!0,A(e))}}(a);t.on("drain",d);var h=!1;var p=!1;function m(e){c("ondata"),p=!1,!1!==t.write(e)||p||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==I(o.pipes,t))&&!h&&(c("false write response, pause",o.awaitDrain),o.awaitDrain++,p=!0),a.pause())}function f(e){c("onerror",e),v(),t.removeListener("error",f),0===n(t,"error")&&t.emit("error",e)}function g(){t.removeListener("finish",_),v()}function _(){c("onfinish"),t.removeListener("close",g),v()}function v(){c("unpipe"),a.unpipe(t)}return a.on("data",m),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?i(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(t,"error",f),t.once("close",g),t.once("finish",_),t.emit("pipe",a),o.flowing||(c("pipe resume"),a.resume()),t},f.prototype.unpipe=function(e){var t=this._readableState,i={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,i)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<r;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=I(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,i)),this},f.prototype.on=function(t,i){var n=r.prototype.on.call(this,t,i);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var a=this._readableState;a.endEmitted||a.readableListening||(a.readableListening=a.needReadable=!0,a.emittedReadable=!1,a.reading?a.length&&b(this):e.nextTick(C,this))}return n},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){var t=this._readableState;return t.flowing||(c("resume"),t.flowing=!0,function(t,i){i.resumeScheduled||(i.resumeScheduled=!0,e.nextTick(T,t,i))}(this,t)),this},f.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this},f.prototype.wrap=function(e){var t=this,i=this._readableState,n=!1;for(var r in e.on("end",function(){if(c("wrapped end"),i.decoder&&!i.ended){var e=i.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(r){(c("wrapped data"),i.decoder&&(r=i.decoder.write(r)),i.objectMode&&null==r)||(i.objectMode||r&&r.length)&&(t.push(r)||(n=!0,e.pause()))}),e)void 0===this[r]&&"function"==typeof e[r]&&(this[r]=function(t){return function(){return e[t].apply(e,arguments)}}(r));for(var a=0;a<p.length;a++)e.on(p[a],this.emit.bind(this,p[a]));return this._read=function(t){c("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(f.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),f._fromList=x,_stream_readable$1}var _stream_transform$1=Transform$a,Duplex$1=require_stream_duplex$1(),util$3=Object.create(util$4);function afterTransform$1(e,t){var i=this._transformState;i.transforming=!1;var n=i.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));i.writechunk=null,i.writecb=null,null!=t&&this.push(t),n(e);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function Transform$a(e){if(!(this instanceof Transform$a))return new Transform$a(e);Duplex$1.call(this,e),this._transformState={afterTransform:afterTransform$1.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",prefinish$1)}function prefinish$1(){var e=this;"function"==typeof this._flush?this._flush(function(t,i){done$1(e,t,i)}):done$1(this,null,null)}function done$1(e,t,i){if(t)return e.emit("error",t);if(null!=i&&e.push(i),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}util$3.inherits=inherits_browserExports,util$3.inherits(Transform$a,Duplex$1),Transform$a.prototype.push=function(e,t){return this._transformState.needTransform=!1,Duplex$1.prototype.push.call(this,e,t)},Transform$a.prototype._transform=function(e,t,i){throw new Error("_transform() is not implemented")},Transform$a.prototype._write=function(e,t,i){var n=this._transformState;if(n.writecb=i,n.writechunk=e,n.writeencoding=t,!n.transforming){var r=this._readableState;(n.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},Transform$a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},Transform$a.prototype._destroy=function(e,t){var i=this;Duplex$1.prototype._destroy.call(this,e,function(e){t(e),i.emit("close")})};var _stream_passthrough$1=PassThrough$1,Transform$9=_stream_transform$1,util$2=Object.create(util$4);function PassThrough$1(e){if(!(this instanceof PassThrough$1))return new PassThrough$1(e);Transform$9.call(this,e)}util$2.inherits=inherits_browserExports,util$2.inherits(PassThrough$1,Transform$9),PassThrough$1.prototype._transform=function(e,t,i){i(null,e)},function(e,t){(t=e.exports=require_stream_readable$1()).Stream=t,t.Readable=t,t.Writable=require_stream_writable$1(),t.Duplex=require_stream_duplex$1(),t.Transform=_stream_transform$1,t.PassThrough=_stream_passthrough$1}(readableBrowser$1,readableBrowser$1.exports);var readableBrowserExports$1=readableBrowser$1.exports,Buffer$y=safeBufferExports$2.Buffer,toBuffer$5=toBuffer_1$1,Transform$8=readableBrowserExports$1.Transform,inherits$R=inherits_browserExports;function HashBase$1(e){Transform$8.call(this),this._block=Buffer$y.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}inherits$R(HashBase$1,Transform$8),HashBase$1.prototype._transform=function(e,t,i){var n=null;try{this.update(e,t)}catch(r){n=r}i(n)},HashBase$1.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(i){t=i}e(t)},HashBase$1.prototype.update=function(e,t){if(this._finalized)throw new Error("Digest already called");for(var i=toBuffer$5(e,t),n=this._block,r=0;this._blockOffset+i.length-r>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)n[a]=i[r],a+=1,r+=1;this._update(),this._blockOffset=0}for(;r<i.length;)n[this._blockOffset]=i[r],this._blockOffset+=1,r+=1;for(var o=0,s=8*i.length;s>0;++o)this._length[o]+=s,(s=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*s);return this},HashBase$1.prototype._update=function(){throw new Error("_update is not implemented")},HashBase$1.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var i=0;i<4;++i)this._length[i]=0;return t},HashBase$1.prototype._digest=function(){throw new Error("_digest is not implemented")};var hashBase=HashBase$1,Buffer$x=require$$0$1.Buffer,inherits$Q=inherits_browserExports,HashBase=hashBase,ARRAY16=new Array(16),zl=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],zr=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],sl=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],sr=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],hl=[0,1518500249,1859775393,2400959708,2840853838],hr=[1352829926,1548603684,1836072691,2053994217,0];function rotl(e,t){return e<<t|e>>>32-t}function fn1(e,t,i,n,r,a,o,s){return rotl(e+(t^i^n)+a+o|0,s)+r|0}function fn2(e,t,i,n,r,a,o,s){return rotl(e+(t&i|~t&n)+a+o|0,s)+r|0}function fn3(e,t,i,n,r,a,o,s){return rotl(e+((t|~i)^n)+a+o|0,s)+r|0}function fn4(e,t,i,n,r,a,o,s){return rotl(e+(t&n|i&~n)+a+o|0,s)+r|0}function fn5(e,t,i,n,r,a,o,s){return rotl(e+(t^(i|~n))+a+o|0,s)+r|0}function RIPEMD160$3(){HashBase.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}inherits$Q(RIPEMD160$3,HashBase),RIPEMD160$3.prototype._update=function(){for(var e=ARRAY16,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var i=0|this._a,n=0|this._b,r=0|this._c,a=0|this._d,o=0|this._e,s=0|this._a,l=0|this._b,c=0|this._c,u=0|this._d,d=0|this._e,h=0;h<80;h+=1){var p,m;h<16?(p=fn1(i,n,r,a,o,e[zl[h]],hl[0],sl[h]),m=fn5(s,l,c,u,d,e[zr[h]],hr[0],sr[h])):h<32?(p=fn2(i,n,r,a,o,e[zl[h]],hl[1],sl[h]),m=fn4(s,l,c,u,d,e[zr[h]],hr[1],sr[h])):h<48?(p=fn3(i,n,r,a,o,e[zl[h]],hl[2],sl[h]),m=fn3(s,l,c,u,d,e[zr[h]],hr[2],sr[h])):h<64?(p=fn4(i,n,r,a,o,e[zl[h]],hl[3],sl[h]),m=fn2(s,l,c,u,d,e[zr[h]],hr[3],sr[h])):(p=fn5(i,n,r,a,o,e[zl[h]],hl[4],sl[h]),m=fn1(s,l,c,u,d,e[zr[h]],hr[4],sr[h])),i=o,o=a,a=rotl(r,10),r=n,n=p,s=d,d=u,u=rotl(c,10),c=l,l=m}var f=this._b+r+u|0;this._b=this._c+a+d|0,this._c=this._d+o+s|0,this._d=this._e+i+l|0,this._e=this._a+n+c|0,this._a=f},RIPEMD160$3.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=Buffer$x.alloc?Buffer$x.alloc(20):new Buffer$x(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e};var ripemd160=RIPEMD160$3,sha_js={exports:{}},Buffer$w=safeBufferExports$2.Buffer,toBuffer$4=toBuffer$7;function Hash$7(e,t){this._block=Buffer$w.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}Hash$7.prototype.update=function(e,t){e=toBuffer$4(e,t||"utf8");for(var i=this._block,n=this._blockSize,r=e.length,a=this._len,o=0;o<r;){for(var s=a%n,l=Math.min(r-o,n-s),c=0;c<l;c++)i[s+c]=e[o+c];o+=l,(a+=l)%n===0&&this._update(i)}return this._len+=r,this},Hash$7.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var i=8*this._len;if(i<=4294967295)this._block.writeUInt32BE(i,this._blockSize-4);else{var n=(4294967295&i)>>>0,r=(i-n)/4294967296;this._block.writeUInt32BE(r,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},Hash$7.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var hash$2=Hash$7,inherits$P=inherits_browserExports,Hash$6=hash$2,Buffer$v=safeBufferExports$2.Buffer,K$4=[1518500249,1859775393,-1894007588,-899497514],W$6=new Array(80);function Sha(){this.init(),this._w=W$6,Hash$6.call(this,64,56)}function rotl5$1(e){return e<<5|e>>>27}function rotl30$1(e){return e<<30|e>>>2}function ft$1(e,t,i,n){return 0===e?t&i|~t&n:2===e?t&i|t&n|i&n:t^i^n}inherits$P(Sha,Hash$6),Sha.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},Sha.prototype._update=function(e){for(var t=this._w,i=0|this._a,n=0|this._b,r=0|this._c,a=0|this._d,o=0|this._e,s=0;s<16;++s)t[s]=e.readInt32BE(4*s);for(;s<80;++s)t[s]=t[s-3]^t[s-8]^t[s-14]^t[s-16];for(var l=0;l<80;++l){var c=~~(l/20),u=rotl5$1(i)+ft$1(c,n,r,a)+o+t[l]+K$4[c]|0;o=a,a=r,r=rotl30$1(n),n=i,i=u}this._a=i+this._a|0,this._b=n+this._b|0,this._c=r+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0},Sha.prototype._hash=function(){var e=Buffer$v.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e};var sha$3=Sha,inherits$O=inherits_browserExports,Hash$5=hash$2,Buffer$u=safeBufferExports$2.Buffer,K$3=[1518500249,1859775393,-1894007588,-899497514],W$5=new Array(80);function Sha1(){this.init(),this._w=W$5,Hash$5.call(this,64,56)}function rotl1(e){return e<<1|e>>>31}function rotl5(e){return e<<5|e>>>27}function rotl30(e){return e<<30|e>>>2}function ft(e,t,i,n){return 0===e?t&i|~t&n:2===e?t&i|t&n|i&n:t^i^n}inherits$O(Sha1,Hash$5),Sha1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},Sha1.prototype._update=function(e){for(var t=this._w,i=0|this._a,n=0|this._b,r=0|this._c,a=0|this._d,o=0|this._e,s=0;s<16;++s)t[s]=e.readInt32BE(4*s);for(;s<80;++s)t[s]=rotl1(t[s-3]^t[s-8]^t[s-14]^t[s-16]);for(var l=0;l<80;++l){var c=~~(l/20),u=rotl5(i)+ft(c,n,r,a)+o+t[l]+K$3[c]|0;o=a,a=r,r=rotl30(n),n=i,i=u}this._a=i+this._a|0,this._b=n+this._b|0,this._c=r+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0},Sha1.prototype._hash=function(){var e=Buffer$u.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e};var sha1=Sha1,inherits$N=inherits_browserExports,Hash$4=hash$2,Buffer$t=safeBufferExports$2.Buffer,K$2=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],W$4=new Array(64);function Sha256$1(){this.init(),this._w=W$4,Hash$4.call(this,64,56)}function ch$1(e,t,i){return i^e&(t^i)}function maj$1(e,t,i){return e&t|i&(e|t)}function sigma0$1(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function sigma1$1(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function gamma0(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function gamma1(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}inherits$N(Sha256$1,Hash$4),Sha256$1.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},Sha256$1.prototype._update=function(e){for(var t=this._w,i=0|this._a,n=0|this._b,r=0|this._c,a=0|this._d,o=0|this._e,s=0|this._f,l=0|this._g,c=0|this._h,u=0;u<16;++u)t[u]=e.readInt32BE(4*u);for(;u<64;++u)t[u]=gamma1(t[u-2])+t[u-7]+gamma0(t[u-15])+t[u-16]|0;for(var d=0;d<64;++d){var h=c+sigma1$1(o)+ch$1(o,s,l)+K$2[d]+t[d]|0,p=sigma0$1(i)+maj$1(i,n,r)|0;c=l,l=s,s=o,o=a+h|0,a=r,r=n,n=i,i=h+p|0}this._a=i+this._a|0,this._b=n+this._b|0,this._c=r+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0,this._f=s+this._f|0,this._g=l+this._g|0,this._h=c+this._h|0},Sha256$1.prototype._hash=function(){var e=Buffer$t.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};var sha256$1=Sha256$1,inherits$M=inherits_browserExports,Sha256=sha256$1,Hash$3=hash$2,Buffer$s=safeBufferExports$2.Buffer,W$3=new Array(64);function Sha224(){this.init(),this._w=W$3,Hash$3.call(this,64,56)}inherits$M(Sha224,Sha256),Sha224.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},Sha224.prototype._hash=function(){var e=Buffer$s.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};var sha224$1=Sha224,inherits$L=inherits_browserExports,Hash$2=hash$2,Buffer$r=safeBufferExports$2.Buffer,K$1=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],W$2=new Array(160);function Sha512(){this.init(),this._w=W$2,Hash$2.call(this,128,112)}function Ch(e,t,i){return i^e&(t^i)}function maj(e,t,i){return e&t|i&(e|t)}function sigma0(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function sigma1(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function Gamma0(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function Gamma0l(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function Gamma1(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function Gamma1l(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function getCarry(e,t){return e>>>0<t>>>0?1:0}inherits$L(Sha512,Hash$2),Sha512.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},Sha512.prototype._update=function(e){for(var t=this._w,i=0|this._ah,n=0|this._bh,r=0|this._ch,a=0|this._dh,o=0|this._eh,s=0|this._fh,l=0|this._gh,c=0|this._hh,u=0|this._al,d=0|this._bl,h=0|this._cl,p=0|this._dl,m=0|this._el,f=0|this._fl,g=0|this._gl,_=0|this._hl,v=0;v<32;v+=2)t[v]=e.readInt32BE(4*v),t[v+1]=e.readInt32BE(4*v+4);for(;v<160;v+=2){var y=t[v-30],b=t[v-30+1],S=Gamma0(y,b),E=Gamma0l(b,y),w=Gamma1(y=t[v-4],b=t[v-4+1]),C=Gamma1l(b,y),T=t[v-14],A=t[v-14+1],x=t[v-32],M=t[v-32+1],R=E+A|0,I=S+T+getCarry(R,E)|0;I=(I=I+w+getCarry(R=R+C|0,C)|0)+x+getCarry(R=R+M|0,M)|0,t[v]=I,t[v+1]=R}for(var k=0;k<160;k+=2){I=t[k],R=t[k+1];var N=maj(i,n,r),O=maj(u,d,h),D=sigma0(i,u),L=sigma0(u,i),P=sigma1(o,m),B=sigma1(m,o),F=K$1[k],$=K$1[k+1],U=Ch(o,s,l),G=Ch(m,f,g),Y=_+B|0,z=c+P+getCarry(Y,_)|0;z=(z=(z=z+U+getCarry(Y=Y+G|0,G)|0)+F+getCarry(Y=Y+$|0,$)|0)+I+getCarry(Y=Y+R|0,R)|0;var H=L+O|0,q=D+N+getCarry(H,L)|0;c=l,_=g,l=s,g=f,s=o,f=m,o=a+z+getCarry(m=p+Y|0,p)|0,a=r,p=h,r=n,h=d,n=i,d=u,i=z+q+getCarry(u=Y+H|0,Y)|0}this._al=this._al+u|0,this._bl=this._bl+d|0,this._cl=this._cl+h|0,this._dl=this._dl+p|0,this._el=this._el+m|0,this._fl=this._fl+f|0,this._gl=this._gl+g|0,this._hl=this._hl+_|0,this._ah=this._ah+i+getCarry(this._al,u)|0,this._bh=this._bh+n+getCarry(this._bl,d)|0,this._ch=this._ch+r+getCarry(this._cl,h)|0,this._dh=this._dh+a+getCarry(this._dl,p)|0,this._eh=this._eh+o+getCarry(this._el,m)|0,this._fh=this._fh+s+getCarry(this._fl,f)|0,this._gh=this._gh+l+getCarry(this._gl,g)|0,this._hh=this._hh+c+getCarry(this._hl,_)|0},Sha512.prototype._hash=function(){var e=Buffer$r.allocUnsafe(64);function t(t,i,n){e.writeInt32BE(t,n),e.writeInt32BE(i,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};var sha512$1=Sha512,inherits$K=inherits_browserExports,SHA512=sha512$1,Hash$1=hash$2,Buffer$q=safeBufferExports$2.Buffer,W$1=new Array(160);function Sha384(){this.init(),this._w=W$1,Hash$1.call(this,128,112)}inherits$K(Sha384,SHA512),Sha384.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},Sha384.prototype._hash=function(){var e=Buffer$q.allocUnsafe(48);function t(t,i,n){e.writeInt32BE(t,n),e.writeInt32BE(i,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};var sha384$1=Sha384;!function(e){e.exports=function(t){var i=t.toLowerCase(),n=e.exports[i];if(!n)throw new Error(i+" is not supported (we accept pull requests)");return new n},e.exports.sha=sha$3,e.exports.sha1=sha1,e.exports.sha224=sha224$1,e.exports.sha256=sha256$1,e.exports.sha384=sha384$1,e.exports.sha512=sha512$1}(sha_js);var sha_jsExports=sha_js.exports,Buffer$p=safeBufferExports$2.Buffer,Transform$7=streamBrowserify.Transform,StringDecoder=string_decoder.StringDecoder,inherits$J=inherits_browserExports,toBuffer$3=toBuffer$7;function CipherBase$1(e){Transform$7.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}inherits$J(CipherBase$1,Transform$7),CipherBase$1.prototype.update=function(e,t,i){var n=toBuffer$3(e,t),r=this._update(n);return this.hashMode?this:(i&&(r=this._toString(r,i)),r)},CipherBase$1.prototype.setAutoPadding=function(){},CipherBase$1.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},CipherBase$1.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},CipherBase$1.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},CipherBase$1.prototype._transform=function(e,t,i){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e3){n=e3}finally{i(n)}},CipherBase$1.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e3){t=e3}e(t)},CipherBase$1.prototype._finalOrDigest=function(e){var t=this.__final()||Buffer$p.alloc(0);return e&&(t=this._toString(t,e,!0)),t},CipherBase$1.prototype._toString=function(e,t,i){if(this._decoder||(this._decoder=new StringDecoder(t),this._encoding=t),this._encoding!==t)throw new Error("can’t switch encodings");var n=this._decoder.write(e);return i&&(n+=this._decoder.end()),n};var cipherBase=CipherBase$1,inherits$I=inherits_browserExports,MD5$2=md5_js,RIPEMD160$2=ripemd160,sha$2=sha_jsExports,Base$5=cipherBase;function Hash(e){Base$5.call(this,"digest"),this._hash=e}inherits$I(Hash,Base$5),Hash.prototype._update=function(e){this._hash.update(e)},Hash.prototype._final=function(){return this._hash.digest()};var browser$f=function(e){return"md5"===(e=e.toLowerCase())?new MD5$2:"rmd160"===e||"ripemd160"===e?new RIPEMD160$2:new Hash(sha$2(e))},inherits$H=inherits_browserExports,Buffer$o=safeBufferExports$2.Buffer,Base$4=cipherBase,ZEROS$2=Buffer$o.alloc(128),blocksize=64;function Hmac$2(e,t){Base$4.call(this,"digest"),"string"==typeof t&&(t=Buffer$o.from(t)),this._alg=e,this._key=t,t.length>blocksize?t=e(t):t.length<blocksize&&(t=Buffer$o.concat([t,ZEROS$2],blocksize));for(var i=this._ipad=Buffer$o.allocUnsafe(blocksize),n=this._opad=Buffer$o.allocUnsafe(blocksize),r=0;r<blocksize;r++)i[r]=54^t[r],n[r]=92^t[r];this._hash=[i]}inherits$H(Hmac$2,Base$4),Hmac$2.prototype._update=function(e){this._hash.push(e)},Hmac$2.prototype._final=function(){var e=this._alg(Buffer$o.concat(this._hash));return this._alg(Buffer$o.concat([this._opad,e]))};var legacy=Hmac$2,MD5$1=md5_js,md5$2=function(e){return(new MD5$1).update(e).digest()},inherits$G=inherits_browserExports,Legacy=legacy,Base$3=cipherBase,Buffer$n=safeBufferExports$2.Buffer,md5$1=md5$2,RIPEMD160$1=ripemd160,sha$1=sha_jsExports,ZEROS$1=Buffer$n.alloc(128);function Hmac$1(e,t){Base$3.call(this,"digest"),"string"==typeof t&&(t=Buffer$n.from(t));var i="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>i)?t=("rmd160"===e?new RIPEMD160$1:sha$1(e)).update(t).digest():t.length<i&&(t=Buffer$n.concat([t,ZEROS$1],i));for(var n=this._ipad=Buffer$n.allocUnsafe(i),r=this._opad=Buffer$n.allocUnsafe(i),a=0;a<i;a++)n[a]=54^t[a],r[a]=92^t[a];this._hash="rmd160"===e?new RIPEMD160$1:sha$1(e),this._hash.update(n)}inherits$G(Hmac$1,Base$3),Hmac$1.prototype._update=function(e){this._hash.update(e)},Hmac$1.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new RIPEMD160$1:sha$1(this._alg)).update(this._opad).update(e).digest()};var browser$e=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new Hmac$1("rmd160",t):"md5"===e?new Legacy(md5$1,t):new Hmac$1(e,t)};const sha224WithRSAEncryption={sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption={sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption={sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption={sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},sha256={sign:"ecdsa",hash:"sha256",id:""},sha224={sign:"ecdsa",hash:"sha224",id:""},sha384={sign:"ecdsa",hash:"sha384",id:""},sha512={sign:"ecdsa",hash:"sha512",id:""},DSA={sign:"dsa",hash:"sha1",id:""},ripemd160WithRSA={sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption={sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},require$$6={sha224WithRSAEncryption:sha224WithRSAEncryption,"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:sha256WithRSAEncryption,"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:sha384WithRSAEncryption,"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:sha512WithRSAEncryption,"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:sha256,sha224:sha224,sha384:sha384,sha512:sha512,"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:DSA,"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:ripemd160WithRSA,"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:md5WithRSAEncryption,"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}};var algos=require$$6,browser$d={},$isFinite=isFinite,MAX_ALLOC=Math.pow(2,30)-1,precondition=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0||!$isFinite(e))throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>MAX_ALLOC||t!=t)throw new TypeError("Bad key length")},defaultEncoding$2;if(globalThis.process&&globalThis.process.browser)defaultEncoding$2="utf-8";else if(globalThis.process&&globalThis.process.version){var pVersionMajor=parseInt(process$1.version.split(".")[0].slice(1),10);defaultEncoding$2=pVersionMajor>=6?"utf-8":"binary"}else defaultEncoding$2="utf-8";var defaultEncoding_1=defaultEncoding$2,Buffer$m=safeBufferExports$2.Buffer,toBuffer$2=toBuffer$7,useUint8Array="undefined"!=typeof Uint8Array,useArrayBuffer=useUint8Array&&"undefined"!=typeof ArrayBuffer,isView=useArrayBuffer&&ArrayBuffer.isView,toBuffer_1=function(e,t,i){if("string"==typeof e||Buffer$m.isBuffer(e)||useUint8Array&&e instanceof Uint8Array||isView&&isView(e))return toBuffer$2(e,t);throw new TypeError(i+" must be a string, a Buffer, a Uint8Array, or a DataView")},md5=md5$2,RIPEMD160=ripemd160,sha=sha_jsExports,Buffer$l=safeBufferExports$2.Buffer,checkParameters$1=precondition,defaultEncoding$1=defaultEncoding_1,toBuffer$1=toBuffer_1,ZEROS=Buffer$l.alloc(128),sizes={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},mapping={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function rmd160Func(e){return(new RIPEMD160).update(e).digest()}function getDigest(e){return"rmd160"===e||"ripemd160"===e?rmd160Func:"md5"===e?md5:function(t){return sha(e).update(t).digest()}}function Hmac(e,t,i){var n=getDigest(e),r="sha512"===e||"sha384"===e?128:64;t.length>r?t=n(t):t.length<r&&(t=Buffer$l.concat([t,ZEROS],r));for(var a=Buffer$l.allocUnsafe(r+sizes[e]),o=Buffer$l.allocUnsafe(r+sizes[e]),s=0;s<r;s++)a[s]=54^t[s],o[s]=92^t[s];var l=Buffer$l.allocUnsafe(r+i+4);a.copy(l,0,0,r),this.ipad1=l,this.ipad2=a,this.opad=o,this.alg=e,this.blocksize=r,this.hash=n,this.size=sizes[e]}function pbkdf2(e,t,i,n,r){checkParameters$1(i,n),e=toBuffer$1(e,defaultEncoding$1,"Password"),t=toBuffer$1(t,defaultEncoding$1,"Salt");var a=(r||"sha1").toLowerCase(),o=mapping[a]||a,s=sizes[o];if("number"!=typeof s||!s)throw new TypeError("Digest algorithm not supported: "+r);var l=new Hmac(o,e,t.length),c=Buffer$l.allocUnsafe(n),u=Buffer$l.allocUnsafe(t.length+4);t.copy(u,0,0,t.length);for(var d=0,h=s,p=Math.ceil(n/h),m=1;m<=p;m++){u.writeUInt32BE(m,t.length);for(var f=l.run(u,l.ipad1),g=f,_=1;_<i;_++){g=l.run(g,l.ipad2);for(var v=0;v<h;v++)f[v]^=g[v]}f.copy(c,d),d+=h}return c}Hmac.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)};var syncBrowser=pbkdf2,Buffer$k=safeBufferExports$2.Buffer,checkParameters=precondition,defaultEncoding=defaultEncoding_1,sync=syncBrowser,toBuffer=toBuffer_1,ZERO_BUF,subtle=globalThis.crypto&&globalThis.crypto.subtle,toBrowser={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},checks=[],nextTick;function getNextTick(){return nextTick||(nextTick=globalThis.process&&globalThis.process.nextTick?globalThis.process.nextTick:globalThis.queueMicrotask?globalThis.queueMicrotask:globalThis.setImmediate?globalThis.setImmediate:globalThis.setTimeout)}function browserPbkdf2(e,t,i,n,r){return subtle.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return subtle.deriveBits({name:"PBKDF2",salt:t,iterations:i,hash:{name:r}},e,n<<3)}).then(function(e){return Buffer$k.from(e)})}function checkNative(e){if(globalThis.process&&!globalThis.process.browser)return Promise.resolve(!1);if(!subtle||!subtle.importKey||!subtle.deriveBits)return Promise.resolve(!1);if(void 0!==checks[e])return checks[e];var t=browserPbkdf2(ZERO_BUF=ZERO_BUF||Buffer$k.alloc(8),ZERO_BUF,10,128,e).then(function(){return!0},function(){return!1});return checks[e]=t,t}function resolvePromise(e,t){e.then(function(e){getNextTick()(function(){t(null,e)})},function(e){getNextTick()(function(){t(e)})})}var async=function(e,t,i,n,r,a){if("function"==typeof r&&(a=r,r=void 0),checkParameters(i,n),e=toBuffer(e,defaultEncoding,"Password"),t=toBuffer(t,defaultEncoding,"Salt"),"function"!=typeof a)throw new Error("No callback provided to pbkdf2");var o=toBrowser[(r=r||"sha1").toLowerCase()];o&&"function"==typeof globalThis.Promise?resolvePromise(checkNative(o).then(function(a){return a?browserPbkdf2(e,t,i,n,o):sync(e,t,i,n,r)}),a):getNextTick()(function(){var o;try{o=sync(e,t,i,n,r)}catch(e3){return void a(e3)}a(null,o)})};browser$d.pbkdf2=async,browser$d.pbkdf2Sync=syncBrowser;var browser$c={},des$2={},utils$h={readUInt32BE:function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},writeUInt32BE:function(e,t,i){e[0+i]=t>>>24,e[1+i]=t>>>16&255,e[2+i]=t>>>8&255,e[3+i]=255&t},ip:function(e,t,i,n){for(var r=0,a=0,o=6;o>=0;o-=2){for(var s=0;s<=24;s+=8)r<<=1,r|=t>>>s+o&1;for(s=0;s<=24;s+=8)r<<=1,r|=e>>>s+o&1}for(o=6;o>=0;o-=2){for(s=1;s<=25;s+=8)a<<=1,a|=t>>>s+o&1;for(s=1;s<=25;s+=8)a<<=1,a|=e>>>s+o&1}i[n+0]=r>>>0,i[n+1]=a>>>0},rip:function(e,t,i,n){for(var r=0,a=0,o=0;o<4;o++)for(var s=24;s>=0;s-=8)r<<=1,r|=t>>>s+o&1,r<<=1,r|=e>>>s+o&1;for(o=4;o<8;o++)for(s=24;s>=0;s-=8)a<<=1,a|=t>>>s+o&1,a<<=1,a|=e>>>s+o&1;i[n+0]=r>>>0,i[n+1]=a>>>0},pc1:function(e,t,i,n){for(var r=0,a=0,o=7;o>=5;o--){for(var s=0;s<=24;s+=8)r<<=1,r|=t>>s+o&1;for(s=0;s<=24;s+=8)r<<=1,r|=e>>s+o&1}for(s=0;s<=24;s+=8)r<<=1,r|=t>>s+o&1;for(o=1;o<=3;o++){for(s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1}for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1;i[n+0]=r>>>0,i[n+1]=a>>>0},r28shl:function(e,t){return e<<t&268435455|e>>>28-t}},pc2table=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];utils$h.pc2=function(e,t,i,n){for(var r=0,a=0,o=pc2table.length>>>1,s=0;s<o;s++)r<<=1,r|=e>>>pc2table[s]&1;for(s=o;s<pc2table.length;s++)a<<=1,a|=t>>>pc2table[s]&1;i[n+0]=r>>>0,i[n+1]=a>>>0},utils$h.expand=function(e,t,i){var n=0,r=0;n=(1&e)<<5|e>>>27;for(var a=23;a>=15;a-=4)n<<=6,n|=e>>>a&63;for(a=11;a>=3;a-=4)r|=e>>>a&63,r<<=6;r|=(31&e)<<1|e>>>31,t[i+0]=n>>>0,t[i+1]=r>>>0};var sTable=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];utils$h.substitute=function(e,t){for(var i=0,n=0;n<4;n++){i<<=4,i|=sTable[64*n+(e>>>18-6*n&63)]}for(n=0;n<4;n++){i<<=4,i|=sTable[256+64*n+(t>>>18-6*n&63)]}return i>>>0};var permuteTable=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];utils$h.permute=function(e){for(var t=0,i=0;i<permuteTable.length;i++)t<<=1,t|=e>>>permuteTable[i]&1;return t>>>0},utils$h.padSplit=function(e,t,i){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var r=[],a=0;a<t;a+=i)r.push(n.slice(a,a+i));return r.join(" ")};var assert$d=minimalisticAssert;function Cipher$3(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==e.padding}var cipher=Cipher$3;Cipher$3.prototype._init=function(){},Cipher$3.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},Cipher$3.prototype._buffer=function(e,t){for(var i=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<i;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=i,i},Cipher$3.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},Cipher$3.prototype._updateEncrypt=function(e){var t=0,i=0,n=(this.bufferOff+e.length)/this.blockSize|0,r=new Array(n*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(r,i)));for(var a=e.length-(e.length-t)%this.blockSize;t<a;t+=this.blockSize)this._update(e,t,r,i),i+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return r},Cipher$3.prototype._updateDecrypt=function(e){for(var t=0,i=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,r=new Array(n*this.blockSize);n>0;n--)t+=this._buffer(e,t),i+=this._flushBuffer(r,i);return t+=this._buffer(e,t),r},Cipher$3.prototype.final=function(e){var t,i;return e&&(t=this.update(e)),i="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(i):i},Cipher$3.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},Cipher$3.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},Cipher$3.prototype._unpad=function(e){return e},Cipher$3.prototype._finalDecrypt=function(){assert$d.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)};var assert$c=minimalisticAssert,inherits$F=inherits_browserExports,utils$g=utils$h,Cipher$2=cipher;function DESState(){this.tmp=new Array(2),this.keys=null}function DES$3(e){Cipher$2.call(this,e);var t=new DESState;this._desState=t,this.deriveKeys(t,e.key)}inherits$F(DES$3,Cipher$2);var des$1=DES$3;DES$3.create=function(e){return new DES$3(e)};var shiftTable=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];DES$3.prototype.deriveKeys=function(e,t){e.keys=new Array(32),assert$c.equal(t.length,this.blockSize,"Invalid key length");var i=utils$g.readUInt32BE(t,0),n=utils$g.readUInt32BE(t,4);utils$g.pc1(i,n,e.tmp,0),i=e.tmp[0],n=e.tmp[1];for(var r=0;r<e.keys.length;r+=2){var a=shiftTable[r>>>1];i=utils$g.r28shl(i,a),n=utils$g.r28shl(n,a),utils$g.pc2(i,n,e.keys,r)}},DES$3.prototype._update=function(e,t,i,n){var r=this._desState,a=utils$g.readUInt32BE(e,t),o=utils$g.readUInt32BE(e,t+4);utils$g.ip(a,o,r.tmp,0),a=r.tmp[0],o=r.tmp[1],"encrypt"===this.type?this._encrypt(r,a,o,r.tmp,0):this._decrypt(r,a,o,r.tmp,0),a=r.tmp[0],o=r.tmp[1],utils$g.writeUInt32BE(i,a,n),utils$g.writeUInt32BE(i,o,n+4)},DES$3.prototype._pad=function(e,t){if(!1===this.padding)return!1;for(var i=e.length-t,n=t;n<e.length;n++)e[n]=i;return!0},DES$3.prototype._unpad=function(e){if(!1===this.padding)return e;for(var t=e[e.length-1],i=e.length-t;i<e.length;i++)assert$c.equal(e[i],t);return e.slice(0,e.length-t)},DES$3.prototype._encrypt=function(e,t,i,n,r){for(var a=t,o=i,s=0;s<e.keys.length;s+=2){var l=e.keys[s],c=e.keys[s+1];utils$g.expand(o,e.tmp,0),l^=e.tmp[0],c^=e.tmp[1];var u=utils$g.substitute(l,c),d=o;o=(a^utils$g.permute(u))>>>0,a=d}utils$g.rip(o,a,n,r)},DES$3.prototype._decrypt=function(e,t,i,n,r){for(var a=i,o=t,s=e.keys.length-2;s>=0;s-=2){var l=e.keys[s],c=e.keys[s+1];utils$g.expand(a,e.tmp,0),l^=e.tmp[0],c^=e.tmp[1];var u=utils$g.substitute(l,c),d=a;a=(o^utils$g.permute(u))>>>0,o=d}utils$g.rip(a,o,n,r)};var cbc$1={},assert$b=minimalisticAssert,inherits$E=inherits_browserExports,proto$2={};function CBCState(e){assert$b.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}function instantiate(e){function t(t){e.call(this,t),this._cbcInit()}inherits$E(t,e);for(var i=Object.keys(proto$2),n=0;n<i.length;n++){var r=i[n];t.prototype[r]=proto$2[r]}return t.create=function(e){return new t(e)},t}cbc$1.instantiate=instantiate,proto$2._cbcInit=function(){var e=new CBCState(this.options.iv);this._cbcState=e},proto$2._update=function(e,t,i,n){var r=this._cbcState,a=this.constructor.super_.prototype,o=r.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)o[s]^=e[t+s];a._update.call(this,o,0,i,n);for(s=0;s<this.blockSize;s++)o[s]=i[n+s]}else{a._update.call(this,e,t,i,n);for(s=0;s<this.blockSize;s++)i[n+s]^=o[s];for(s=0;s<this.blockSize;s++)o[s]=e[t+s]}};var assert$a=minimalisticAssert,inherits$D=inherits_browserExports,Cipher$1=cipher,DES$2=des$1;function EDEState(e,t){assert$a.equal(t.length,24,"Invalid key length");var i=t.slice(0,8),n=t.slice(8,16),r=t.slice(16,24);this.ciphers="encrypt"===e?[DES$2.create({type:"encrypt",key:i}),DES$2.create({type:"decrypt",key:n}),DES$2.create({type:"encrypt",key:r})]:[DES$2.create({type:"decrypt",key:r}),DES$2.create({type:"encrypt",key:n}),DES$2.create({type:"decrypt",key:i})]}function EDE(e){Cipher$1.call(this,e);var t=new EDEState(this.type,this.options.key);this._edeState=t}inherits$D(EDE,Cipher$1);var ede=EDE;EDE.create=function(e){return new EDE(e)},EDE.prototype._update=function(e,t,i,n){var r=this._edeState;r.ciphers[0]._update(e,t,i,n),r.ciphers[1]._update(i,n,i,n),r.ciphers[2]._update(i,n,i,n)},EDE.prototype._pad=DES$2.prototype._pad,EDE.prototype._unpad=DES$2.prototype._unpad,des$2.utils=utils$h,des$2.Cipher=cipher,des$2.DES=des$1,des$2.CBC=cbc$1,des$2.EDE=ede;var CipherBase=cipherBase,des=des$2,inherits$C=inherits_browserExports,Buffer$j=safeBufferExports$2.Buffer,modes$3={"des-ede3-cbc":des.CBC.instantiate(des.EDE),"des-ede3":des.EDE,"des-ede-cbc":des.CBC.instantiate(des.EDE),"des-ede":des.EDE,"des-cbc":des.CBC.instantiate(des.DES),"des-ecb":des.DES};modes$3.des=modes$3["des-cbc"],modes$3.des3=modes$3["des-ede3-cbc"];var browserifyDes=DES$1;function DES$1(e){CipherBase.call(this);var t,i=e.mode.toLowerCase(),n=modes$3[i];t=e.decrypt?"decrypt":"encrypt";var r=e.key;Buffer$j.isBuffer(r)||(r=Buffer$j.from(r)),"des-ede"!==i&&"des-ede-cbc"!==i||(r=Buffer$j.concat([r,r.slice(0,8)]));var a=e.iv;Buffer$j.isBuffer(a)||(a=Buffer$j.from(a)),this._des=n.create({key:r,iv:a,type:t})}inherits$C(DES$1,CipherBase),DES$1.prototype._update=function(e){return Buffer$j.from(this._des.update(e))},DES$1.prototype._final=function(){return Buffer$j.from(this._des.final())};var browser$b={},encrypter={},ecb={encrypt:function(e,t){return e._cipher.encryptBlock(t)},decrypt:function(e,t){return e._cipher.decryptBlock(t)}},cbc={},bufferXor=function(e,t){for(var i=Math.min(e.length,t.length),n=new Buffer$F(i),r=0;r<i;++r)n[r]=e[r]^t[r];return n},xor$7=bufferXor;cbc.encrypt=function(e,t){var i=xor$7(t,e._prev);return e._prev=e._cipher.encryptBlock(i),e._prev},cbc.decrypt=function(e,t){var i=e._prev;e._prev=t;var n=e._cipher.decryptBlock(t);return xor$7(n,i)};var cfb={},Buffer$i=safeBufferExports$2.Buffer,xor$6=bufferXor;function encryptStart(e,t,i){var n=t.length,r=xor$6(t,e._cache);return e._cache=e._cache.slice(n),e._prev=Buffer$i.concat([e._prev,i?t:r]),r}cfb.encrypt=function(e,t,i){for(var n,r=Buffer$i.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=Buffer$i.allocUnsafe(0)),!(e._cache.length<=t.length)){r=Buffer$i.concat([r,encryptStart(e,t,i)]);break}n=e._cache.length,r=Buffer$i.concat([r,encryptStart(e,t.slice(0,n),i)]),t=t.slice(n)}return r};var cfb8={},Buffer$h=safeBufferExports$2.Buffer;function encryptByte$1(e,t,i){var n=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=Buffer$h.concat([e._prev.slice(1),Buffer$h.from([i?t:n])]),n}cfb8.encrypt=function(e,t,i){for(var n=t.length,r=Buffer$h.allocUnsafe(n),a=-1;++a<n;)r[a]=encryptByte$1(e,t[a],i);return r};var cfb1={},Buffer$g=safeBufferExports$2.Buffer;function encryptByte(e,t,i){for(var n,r,a=-1,o=0;++a<8;)n=t&1<<7-a?128:0,o+=(128&(r=e._cipher.encryptBlock(e._prev)[0]^n))>>a%8,e._prev=shiftIn(e._prev,i?n:r);return o}function shiftIn(e,t){var i=e.length,n=-1,r=Buffer$g.allocUnsafe(e.length);for(e=Buffer$g.concat([e,Buffer$g.from([t])]);++n<i;)r[n]=e[n]<<1|e[n+1]>>7;return r}cfb1.encrypt=function(e,t,i){for(var n=t.length,r=Buffer$g.allocUnsafe(n),a=-1;++a<n;)r[a]=encryptByte(e,t[a],i);return r};var ofb={},xor$5=bufferXor;function getBlock$1(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}ofb.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=Buffer$F.concat([e._cache,getBlock$1(e)]);var i=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),xor$5(t,i)};var ctr={};function incr32$2(e){for(var t,i=e.length;i--;){if(255!==(t=e.readUInt8(i))){t++,e.writeUInt8(t,i);break}e.writeUInt8(0,i)}}var incr32_1=incr32$2,xor$4=bufferXor,Buffer$f=safeBufferExports$2.Buffer,incr32$1=incr32_1;function getBlock(e){var t=e._cipher.encryptBlockRaw(e._prev);return incr32$1(e._prev),t}var blockSize=16;ctr.encrypt=function(e,t){var i=Math.ceil(t.length/blockSize),n=e._cache.length;e._cache=Buffer$f.concat([e._cache,Buffer$f.allocUnsafe(i*blockSize)]);for(var r=0;r<i;r++){var a=getBlock(e),o=n+r*blockSize;e._cache.writeUInt32BE(a[0],o+0),e._cache.writeUInt32BE(a[1],o+4),e._cache.writeUInt32BE(a[2],o+8),e._cache.writeUInt32BE(a[3],o+12)}var s=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),xor$4(t,s)};const aes128={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},require$$2={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:aes128,aes192:aes192,aes256:aes256,"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}};var modeModules={ECB:ecb,CBC:cbc,CFB:cfb,CFB8:cfb8,CFB1:cfb1,OFB:ofb,CTR:ctr,GCM:ctr},modes$2=require$$2;for(var key$2 in modes$2)modes$2[key$2].module=modeModules[modes$2[key$2].mode];var modes_1=modes$2,aes$5={},Buffer$e=safeBufferExports$2.Buffer;function asUInt32Array(e){Buffer$e.isBuffer(e)||(e=Buffer$e.from(e));for(var t=e.length/4|0,i=new Array(t),n=0;n<t;n++)i[n]=e.readUInt32BE(4*n);return i}function scrubVec(e){for(;0<e.length;e++)e[0]=0}function cryptBlock(e,t,i,n,r){for(var a,o,s,l,c=i[0],u=i[1],d=i[2],h=i[3],p=e[0]^t[0],m=e[1]^t[1],f=e[2]^t[2],g=e[3]^t[3],_=4,v=1;v<r;v++)a=c[p>>>24]^u[m>>>16&255]^d[f>>>8&255]^h[255&g]^t[_++],o=c[m>>>24]^u[f>>>16&255]^d[g>>>8&255]^h[255&p]^t[_++],s=c[f>>>24]^u[g>>>16&255]^d[p>>>8&255]^h[255&m]^t[_++],l=c[g>>>24]^u[p>>>16&255]^d[m>>>8&255]^h[255&f]^t[_++],p=a,m=o,f=s,g=l;return a=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[f>>>8&255]<<8|n[255&g])^t[_++],o=(n[m>>>24]<<24|n[f>>>16&255]<<16|n[g>>>8&255]<<8|n[255&p])^t[_++],s=(n[f>>>24]<<24|n[g>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^t[_++],l=(n[g>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&f])^t[_++],[a>>>=0,o>>>=0,s>>>=0,l>>>=0]}var RCON=[0,1,2,4,8,16,32,64,128,27,54],G$1=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var i=[],n=[],r=[[],[],[],[]],a=[[],[],[],[]],o=0,s=0,l=0;l<256;++l){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,i[o]=c,n[c]=o;var u=e[o],d=e[u],h=e[d],p=257*e[c]^16843008*c;r[0][o]=p<<24|p>>>8,r[1][o]=p<<16|p>>>16,r[2][o]=p<<8|p>>>24,r[3][o]=p,p=16843009*h^65537*d^257*u^16843008*o,a[0][c]=p<<24|p>>>8,a[1][c]=p<<16|p>>>16,a[2][c]=p<<8|p>>>24,a[3][c]=p,0===o?o=s=1:(o=u^e[e[e[h^u]]],s^=e[e[s]])}return{SBOX:i,INV_SBOX:n,SUB_MIX:r,INV_SUB_MIX:a}}();function AES(e){this._key=asUInt32Array(e),this._reset()}AES.blockSize=16,AES.keySize=32,AES.prototype.blockSize=AES.blockSize,AES.prototype.keySize=AES.keySize,AES.prototype._reset=function(){for(var e=this._key,t=e.length,i=t+6,n=4*(i+1),r=[],a=0;a<t;a++)r[a]=e[a];for(a=t;a<n;a++){var o=r[a-1];a%t===0?(o=o<<8|o>>>24,o=G$1.SBOX[o>>>24]<<24|G$1.SBOX[o>>>16&255]<<16|G$1.SBOX[o>>>8&255]<<8|G$1.SBOX[255&o],o^=RCON[a/t|0]<<24):t>6&&a%t===4&&(o=G$1.SBOX[o>>>24]<<24|G$1.SBOX[o>>>16&255]<<16|G$1.SBOX[o>>>8&255]<<8|G$1.SBOX[255&o]),r[a]=r[a-t]^o}for(var s=[],l=0;l<n;l++){var c=n-l,u=r[c-(l%4?0:4)];s[l]=l<4||c<=4?u:G$1.INV_SUB_MIX[0][G$1.SBOX[u>>>24]]^G$1.INV_SUB_MIX[1][G$1.SBOX[u>>>16&255]]^G$1.INV_SUB_MIX[2][G$1.SBOX[u>>>8&255]]^G$1.INV_SUB_MIX[3][G$1.SBOX[255&u]]}this._nRounds=i,this._keySchedule=r,this._invKeySchedule=s},AES.prototype.encryptBlockRaw=function(e){return cryptBlock(e=asUInt32Array(e),this._keySchedule,G$1.SUB_MIX,G$1.SBOX,this._nRounds)},AES.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),i=Buffer$e.allocUnsafe(16);return i.writeUInt32BE(t[0],0),i.writeUInt32BE(t[1],4),i.writeUInt32BE(t[2],8),i.writeUInt32BE(t[3],12),i},AES.prototype.decryptBlock=function(e){var t=(e=asUInt32Array(e))[1];e[1]=e[3],e[3]=t;var i=cryptBlock(e,this._invKeySchedule,G$1.INV_SUB_MIX,G$1.INV_SBOX,this._nRounds),n=Buffer$e.allocUnsafe(16);return n.writeUInt32BE(i[0],0),n.writeUInt32BE(i[3],4),n.writeUInt32BE(i[2],8),n.writeUInt32BE(i[1],12),n},AES.prototype.scrub=function(){scrubVec(this._keySchedule),scrubVec(this._invKeySchedule),scrubVec(this._key)},aes$5.AES=AES;var Buffer$d=safeBufferExports$2.Buffer,ZEROES=Buffer$d.alloc(16,0);function toArray$1(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function fromArray(e){var t=Buffer$d.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function GHASH$1(e){this.h=e,this.state=Buffer$d.alloc(16,0),this.cache=Buffer$d.allocUnsafe(0)}GHASH$1.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},GHASH$1.prototype._multiply=function(){for(var e,t,i=toArray$1(this.h),n=[0,0,0,0],r=-1;++r<128;){for(!!(this.state[~~(r/8)]&1<<7-r%8)&&(n[0]^=i[0],n[1]^=i[1],n[2]^=i[2],n[3]^=i[3]),t=!!(1&i[3]),e=3;e>0;e--)i[e]=i[e]>>>1|(1&i[e-1])<<31;i[0]=i[0]>>>1,t&&(i[0]=i[0]^225<<24)}this.state=fromArray(n)},GHASH$1.prototype.update=function(e){var t;for(this.cache=Buffer$d.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},GHASH$1.prototype.final=function(e,t){return this.cache.length&&this.ghash(Buffer$d.concat([this.cache,ZEROES],16)),this.ghash(fromArray([0,e,0,t])),this.state};var ghash=GHASH$1,aes$4=aes$5,Buffer$c=safeBufferExports$2.Buffer,Transform$6=cipherBase,inherits$B=inherits_browserExports,GHASH=ghash,xor$3=bufferXor,incr32=incr32_1;function xorTest(e,t){var i=0;e.length!==t.length&&i++;for(var n=Math.min(e.length,t.length),r=0;r<n;++r)i+=e[r]^t[r];return i}function calcIv(e,t,i){if(12===t.length)return e._finID=Buffer$c.concat([t,Buffer$c.from([0,0,0,1])]),Buffer$c.concat([t,Buffer$c.from([0,0,0,2])]);var n=new GHASH(i),r=t.length,a=r%16;n.update(t),a&&(a=16-a,n.update(Buffer$c.alloc(a,0))),n.update(Buffer$c.alloc(8,0));var o=8*r,s=Buffer$c.alloc(8);s.writeUIntBE(o,0,8),n.update(s),e._finID=n.state;var l=Buffer$c.from(e._finID);return incr32(l),l}function StreamCipher$3(e,t,i,n){Transform$6.call(this);var r=Buffer$c.alloc(4,0);this._cipher=new aes$4.AES(t);var a=this._cipher.encryptBlock(r);this._ghash=new GHASH(a),i=calcIv(this,i,a),this._prev=Buffer$c.from(i),this._cache=Buffer$c.allocUnsafe(0),this._secCache=Buffer$c.allocUnsafe(0),this._decrypt=n,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}inherits$B(StreamCipher$3,Transform$6),StreamCipher$3.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=Buffer$c.alloc(t,0),this._ghash.update(t))}this._called=!0;var i=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(i),this._len+=e.length,i},StreamCipher$3.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=xor$3(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&xorTest(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},StreamCipher$3.prototype.getAuthTag=function(){if(this._decrypt||!Buffer$c.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},StreamCipher$3.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},StreamCipher$3.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length};var authCipher=StreamCipher$3,aes$3=aes$5,Buffer$b=safeBufferExports$2.Buffer,Transform$5=cipherBase,inherits$A=inherits_browserExports;function StreamCipher$2(e,t,i,n){Transform$5.call(this),this._cipher=new aes$3.AES(t),this._prev=Buffer$b.from(i),this._cache=Buffer$b.allocUnsafe(0),this._secCache=Buffer$b.allocUnsafe(0),this._decrypt=n,this._mode=e}inherits$A(StreamCipher$2,Transform$5),StreamCipher$2.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},StreamCipher$2.prototype._final=function(){this._cipher.scrub()};var streamCipher=StreamCipher$2,Buffer$a=safeBufferExports$2.Buffer,MD5=md5_js;function EVP_BytesToKey(e,t,i,n){if(Buffer$a.isBuffer(e)||(e=Buffer$a.from(e,"binary")),t&&(Buffer$a.isBuffer(t)||(t=Buffer$a.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var r=i/8,a=Buffer$a.alloc(r),o=Buffer$a.alloc(n||0),s=Buffer$a.alloc(0);r>0||n>0;){var l=new MD5;l.update(s),l.update(e),t&&l.update(t),s=l.digest();var c=0;if(r>0){var u=a.length-r;c=Math.min(r,s.length),s.copy(a,u,0,c),r-=c}if(c<s.length&&n>0){var d=o.length-n,h=Math.min(n,s.length-c);s.copy(o,d,c,c+h),n-=h}}return s.fill(0),{key:a,iv:o}}var evp_bytestokey=EVP_BytesToKey,MODES$2=modes_1,AuthCipher$1=authCipher,Buffer$9=safeBufferExports$2.Buffer,StreamCipher$1=streamCipher,Transform$4=cipherBase,aes$2=aes$5,ebtk$2=evp_bytestokey,inherits$z=inherits_browserExports;function Cipher(e,t,i){Transform$4.call(this),this._cache=new Splitter$1,this._cipher=new aes$2.AES(t),this._prev=Buffer$9.from(i),this._mode=e,this._autopadding=!0}inherits$z(Cipher,Transform$4),Cipher.prototype._update=function(e){var t,i;this._cache.add(e);for(var n=[];t=this._cache.get();)i=this._mode.encrypt(this,t),n.push(i);return Buffer$9.concat(n)};var PADDING=Buffer$9.alloc(16,16);function Splitter$1(){this.cache=Buffer$9.allocUnsafe(0)}function createCipheriv$1(e,t,i){var n=MODES$2[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=Buffer$9.from(t)),t.length!==n.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof i&&(i=Buffer$9.from(i)),"GCM"!==n.mode&&i.length!==n.iv)throw new TypeError("invalid iv length "+i.length);return"stream"===n.type?new StreamCipher$1(n.module,t,i):"auth"===n.type?new AuthCipher$1(n.module,t,i):new Cipher(n.module,t,i)}function createCipher$1(e,t){var i=MODES$2[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var n=ebtk$2(t,!1,i.key,i.iv);return createCipheriv$1(e,n.key,n.iv)}Cipher.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(PADDING))throw this._cipher.scrub(),new Error("data not multiple of block length")},Cipher.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},Splitter$1.prototype.add=function(e){this.cache=Buffer$9.concat([this.cache,e])},Splitter$1.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},Splitter$1.prototype.flush=function(){for(var e=16-this.cache.length,t=Buffer$9.allocUnsafe(e),i=-1;++i<e;)t.writeUInt8(e,i);return Buffer$9.concat([this.cache,t])},encrypter.createCipheriv=createCipheriv$1,encrypter.createCipher=createCipher$1;var decrypter={},AuthCipher=authCipher,Buffer$8=safeBufferExports$2.Buffer,MODES$1=modes_1,StreamCipher=streamCipher,Transform$3=cipherBase,aes$1=aes$5,ebtk$1=evp_bytestokey,inherits$y=inherits_browserExports;function Decipher(e,t,i){Transform$3.call(this),this._cache=new Splitter,this._last=void 0,this._cipher=new aes$1.AES(t),this._prev=Buffer$8.from(i),this._mode=e,this._autopadding=!0}function Splitter(){this.cache=Buffer$8.allocUnsafe(0)}function unpad(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var i=-1;++i<t;)if(e[i+(16-t)]!==t)throw new Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}function createDecipheriv$1(e,t,i){var n=MODES$1[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");if("string"==typeof i&&(i=Buffer$8.from(i)),"GCM"!==n.mode&&i.length!==n.iv)throw new TypeError("invalid iv length "+i.length);if("string"==typeof t&&(t=Buffer$8.from(t)),t.length!==n.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===n.type?new StreamCipher(n.module,t,i,!0):"auth"===n.type?new AuthCipher(n.module,t,i,!0):new Decipher(n.module,t,i)}function createDecipher$1(e,t){var i=MODES$1[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var n=ebtk$1(t,!1,i.key,i.iv);return createDecipheriv$1(e,n.key,n.iv)}inherits$y(Decipher,Transform$3),Decipher.prototype._update=function(e){var t,i;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)i=this._mode.decrypt(this,t),n.push(i);return Buffer$8.concat(n)},Decipher.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return unpad(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},Decipher.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},Splitter.prototype.add=function(e){this.cache=Buffer$8.concat([this.cache,e])},Splitter.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},Splitter.prototype.flush=function(){if(this.cache.length)return this.cache},decrypter.createDecipher=createDecipher$1,decrypter.createDecipheriv=createDecipheriv$1;var ciphers$2=encrypter,deciphers=decrypter,modes$1=require$$2;function getCiphers$1(){return Object.keys(modes$1)}browser$b.createCipher=browser$b.Cipher=ciphers$2.createCipher,browser$b.createCipheriv=browser$b.Cipheriv=ciphers$2.createCipheriv,browser$b.createDecipher=browser$b.Decipher=deciphers.createDecipher,browser$b.createDecipheriv=browser$b.Decipheriv=deciphers.createDecipheriv,browser$b.listCiphers=browser$b.getCiphers=getCiphers$1;var modes={};!function(e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}}(modes);var DES=browserifyDes,aes=browser$b,aesModes=modes_1,desModes=modes,ebtk=evp_bytestokey;function createCipher(e,t){var i,n;if(e=e.toLowerCase(),aesModes[e])i=aesModes[e].key,n=aesModes[e].iv;else{if(!desModes[e])throw new TypeError("invalid suite type");i=8*desModes[e].key,n=desModes[e].iv}var r=ebtk(t,!1,i,n);return createCipheriv(e,r.key,r.iv)}function createDecipher(e,t){var i,n;if(e=e.toLowerCase(),aesModes[e])i=aesModes[e].key,n=aesModes[e].iv;else{if(!desModes[e])throw new TypeError("invalid suite type");i=8*desModes[e].key,n=desModes[e].iv}var r=ebtk(t,!1,i,n);return createDecipheriv(e,r.key,r.iv)}function createCipheriv(e,t,i){if(e=e.toLowerCase(),aesModes[e])return aes.createCipheriv(e,t,i);if(desModes[e])return new DES({key:t,iv:i,mode:e});throw new TypeError("invalid suite type")}function createDecipheriv(e,t,i){if(e=e.toLowerCase(),aesModes[e])return aes.createDecipheriv(e,t,i);if(desModes[e])return new DES({key:t,iv:i,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}function getCiphers(){return Object.keys(desModes).concat(aes.getCiphers())}browser$c.createCipher=browser$c.Cipher=createCipher,browser$c.createCipheriv=browser$c.Cipheriv=createCipheriv,browser$c.createDecipher=browser$c.Decipher=createDecipher,browser$c.createDecipheriv=browser$c.Decipheriv=createDecipheriv,browser$c.listCiphers=browser$c.getCiphers=getCiphers;var browser$a={},bn$5={exports:{}};bn$5.exports,function(e,t){function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function r(e,t,i){if(r.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var a;"object"==typeof e?e.exports=r:t.BN=r,r.BN=r,r.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:require$$0$1.Buffer}catch(e3){}function o(e,t){var i=e.charCodeAt(t);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function s(e,t,i){var n=o(e,i);return i-1>=t&&(n|=o(e,i-1)<<4),n}function l(e,t,i,n){for(var r=0,a=Math.min(e.length,i),o=t;o<a;o++){var s=e.charCodeAt(o)-48;r*=n,r+=s>=49?s-49+10:s>=17?s-17+10:s}return r}r.isBN=function(e){return e instanceof r||null!==e&&"object"==typeof e&&e.constructor.wordSize===r.wordSize&&Array.isArray(e.words)},r.max=function(e,t){return e.cmp(t)>0?e:t},r.min=function(e,t){return e.cmp(t)<0?e:t},r.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r<e.length&&(16===t?this._parseHex(e,r,n):(this._parseBase(e,t,r),"le"===n&&this._initArray(this.toArray(),t,n)))},r.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},r.prototype._initArray=function(e,t,n){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var a,o,s=0;if("be"===n)for(r=e.length-1,a=0;r>=0;r-=3)o=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===n)for(r=0,a=0;r<e.length;r+=3)o=e[r]|e[r+1]<<8|e[r+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},r.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,a=0,o=0;if("be"===i)for(n=e.length-1;n>=t;n-=2)r=s(e,t,n)<<a,this.words[o]|=67108863&r,a>=18?(a-=18,o+=1,this.words[o]|=r>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)r=s(e,t,n)<<a,this.words[o]|=67108863&r,a>=18?(a-=18,o+=1,this.words[o]|=r>>>26):a+=8;this.strip()},r.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=t)n++;n--,r=r/t|0;for(var a=e.length-i,o=a%n,s=Math.min(a,a-o)+i,c=0,u=i;u<s;u+=n)c=l(e,u,u+n,t),this.imuln(r),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){var d=1;for(c=l(e,u,e.length,t),u=0;u<o;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this.strip()},r.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},r.prototype.clone=function(){var e=new r(null);return this.copy(e),e},r.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},r.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},r.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var r=0|e.words[0],a=0|t.words[0],o=r*a,s=67108863&o,l=o/67108864|0;i.words[0]=s;for(var c=1;c<n;c++){for(var u=l>>>26,d=67108863&l,h=Math.min(c,t.length-1),p=Math.max(0,c-e.length+1);p<=h;p++){var m=c-p|0;u+=(o=(r=0|e.words[m])*(a=0|t.words[p])+d)/67108864|0,d=67108863&o}i.words[c]=0|d,l=0|u}return 0!==l?i.words[c]=0|l:i.length--,i.strip()}r.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var r=0,a=0,o=0;o<this.length;o++){var s=this.words[o],l=(16777215&(s<<r|a)).toString(16);a=s>>>24-r&16777215,(r+=2)>=26&&(r-=26,o--),n=0!==a||o!==this.length-1?c[6-l.length]+l+n:l+n}for(0!==a&&(n=a.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var h=u[e],p=d[e];n="";var m=this.clone();for(m.negative=0;!m.isZero();){var f=m.modn(p).toString(e);n=(m=m.idivn(p)).isZero()?f+n:c[h-f.length]+f+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},r.prototype.toJSON=function(){return this.toString(16)},r.prototype.toBuffer=function(e,t){return i(void 0!==a),this.toArrayLike(a,e,t)},r.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},r.prototype.toArrayLike=function(e,t,n){var r=this.byteLength(),a=n||Math.max(1,r);i(r<=a,"byte array longer than desired length"),i(a>0,"Requested array length <= 0"),this.strip();var o,s,l="le"===t,c=new e(a),u=this.clone();if(l){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[s]=o;for(;s<a;s++)c[s]=0}else{for(s=0;s<a-r;s++)c[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[a-s-1]=o}return c},Math.clz32?r.prototype._countBits=function(e){return 32-Math.clz32(e)}:r.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},r.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 8191&t||(i+=13,t>>>=13),127&t||(i+=7,t>>>=7),15&t||(i+=4,t>>>=4),3&t||(i+=2,t>>>=2),1&t||i++,i},r.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,26!==i)break}return e},r.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},r.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},r.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},r.prototype.isNeg=function(){return 0!==this.negative},r.prototype.neg=function(){return this.clone().ineg()},r.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},r.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},r.prototype.ior=function(e){return i(0===(this.negative|e.negative)),this.iuor(e)},r.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},r.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},r.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this.strip()},r.prototype.iand=function(e){return i(0===(this.negative|e.negative)),this.iuand(e)},r.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},r.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},r.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=t.words[n]^i.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},r.prototype.ixor=function(e){return i(0===(this.negative|e.negative)),this.iuxor(e)},r.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},r.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},r.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return n>0&&(this.words[r]=~this.words[r]&67108863>>26-n),this.strip()},r.prototype.notn=function(e){return this.clone().inotn(e)},r.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var n=e/26|0,r=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<r:this.words[n]&~(1<<r),this.strip()},r.prototype.iadd=function(e){var t,i,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var r=0,a=0;a<n.length;a++)t=(0|i.words[a])+(0|n.words[a])+r,this.words[a]=67108863&t,r=t>>>26;for(;0!==r&&a<i.length;a++)t=(0|i.words[a])+r,this.words[a]=67108863&t,r=t>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this},r.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},r.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=e):(i=e,n=this);for(var a=0,o=0;o<n.length;o++)a=(t=(0|i.words[o])-(0|n.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<i.length;o++)a=(t=(0|i.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<i.length&&i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this.length=Math.max(this.length,o),i!==this&&(this.negative=1),this.strip()},r.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,i){var n,r,a,o=e.words,s=t.words,l=i.words,c=0,u=0|o[0],d=8191&u,h=u>>>13,p=0|o[1],m=8191&p,f=p>>>13,g=0|o[2],_=8191&g,v=g>>>13,y=0|o[3],b=8191&y,S=y>>>13,E=0|o[4],w=8191&E,C=E>>>13,T=0|o[5],A=8191&T,x=T>>>13,M=0|o[6],R=8191&M,I=M>>>13,k=0|o[7],N=8191&k,O=k>>>13,D=0|o[8],L=8191&D,P=D>>>13,B=0|o[9],F=8191&B,$=B>>>13,U=0|s[0],G=8191&U,Y=U>>>13,z=0|s[1],H=8191&z,q=z>>>13,V=0|s[2],j=8191&V,J=V>>>13,W=0|s[3],K=8191&W,Q=W>>>13,Z=0|s[4],X=8191&Z,ee=Z>>>13,te=0|s[5],ie=8191&te,ne=te>>>13,re=0|s[6],ae=8191&re,oe=re>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],de=8191&ue,he=ue>>>13,pe=0|s[9],me=8191&pe,fe=pe>>>13;i.negative=e.negative^t.negative,i.length=19;var ge=(c+(n=Math.imul(d,G))|0)+((8191&(r=(r=Math.imul(d,Y))+Math.imul(h,G)|0))<<13)|0;c=((a=Math.imul(h,Y))+(r>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(m,G),r=(r=Math.imul(m,Y))+Math.imul(f,G)|0,a=Math.imul(f,Y);var _e=(c+(n=n+Math.imul(d,H)|0)|0)+((8191&(r=(r=r+Math.imul(d,q)|0)+Math.imul(h,H)|0))<<13)|0;c=((a=a+Math.imul(h,q)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(_,G),r=(r=Math.imul(_,Y))+Math.imul(v,G)|0,a=Math.imul(v,Y),n=n+Math.imul(m,H)|0,r=(r=r+Math.imul(m,q)|0)+Math.imul(f,H)|0,a=a+Math.imul(f,q)|0;var ve=(c+(n=n+Math.imul(d,j)|0)|0)+((8191&(r=(r=r+Math.imul(d,J)|0)+Math.imul(h,j)|0))<<13)|0;c=((a=a+Math.imul(h,J)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(b,G),r=(r=Math.imul(b,Y))+Math.imul(S,G)|0,a=Math.imul(S,Y),n=n+Math.imul(_,H)|0,r=(r=r+Math.imul(_,q)|0)+Math.imul(v,H)|0,a=a+Math.imul(v,q)|0,n=n+Math.imul(m,j)|0,r=(r=r+Math.imul(m,J)|0)+Math.imul(f,j)|0,a=a+Math.imul(f,J)|0;var ye=(c+(n=n+Math.imul(d,K)|0)|0)+((8191&(r=(r=r+Math.imul(d,Q)|0)+Math.imul(h,K)|0))<<13)|0;c=((a=a+Math.imul(h,Q)|0)+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(w,G),r=(r=Math.imul(w,Y))+Math.imul(C,G)|0,a=Math.imul(C,Y),n=n+Math.imul(b,H)|0,r=(r=r+Math.imul(b,q)|0)+Math.imul(S,H)|0,a=a+Math.imul(S,q)|0,n=n+Math.imul(_,j)|0,r=(r=r+Math.imul(_,J)|0)+Math.imul(v,j)|0,a=a+Math.imul(v,J)|0,n=n+Math.imul(m,K)|0,r=(r=r+Math.imul(m,Q)|0)+Math.imul(f,K)|0,a=a+Math.imul(f,Q)|0;var be=(c+(n=n+Math.imul(d,X)|0)|0)+((8191&(r=(r=r+Math.imul(d,ee)|0)+Math.imul(h,X)|0))<<13)|0;c=((a=a+Math.imul(h,ee)|0)+(r>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(A,G),r=(r=Math.imul(A,Y))+Math.imul(x,G)|0,a=Math.imul(x,Y),n=n+Math.imul(w,H)|0,r=(r=r+Math.imul(w,q)|0)+Math.imul(C,H)|0,a=a+Math.imul(C,q)|0,n=n+Math.imul(b,j)|0,r=(r=r+Math.imul(b,J)|0)+Math.imul(S,j)|0,a=a+Math.imul(S,J)|0,n=n+Math.imul(_,K)|0,r=(r=r+Math.imul(_,Q)|0)+Math.imul(v,K)|0,a=a+Math.imul(v,Q)|0,n=n+Math.imul(m,X)|0,r=(r=r+Math.imul(m,ee)|0)+Math.imul(f,X)|0,a=a+Math.imul(f,ee)|0;var Se=(c+(n=n+Math.imul(d,ie)|0)|0)+((8191&(r=(r=r+Math.imul(d,ne)|0)+Math.imul(h,ie)|0))<<13)|0;c=((a=a+Math.imul(h,ne)|0)+(r>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(R,G),r=(r=Math.imul(R,Y))+Math.imul(I,G)|0,a=Math.imul(I,Y),n=n+Math.imul(A,H)|0,r=(r=r+Math.imul(A,q)|0)+Math.imul(x,H)|0,a=a+Math.imul(x,q)|0,n=n+Math.imul(w,j)|0,r=(r=r+Math.imul(w,J)|0)+Math.imul(C,j)|0,a=a+Math.imul(C,J)|0,n=n+Math.imul(b,K)|0,r=(r=r+Math.imul(b,Q)|0)+Math.imul(S,K)|0,a=a+Math.imul(S,Q)|0,n=n+Math.imul(_,X)|0,r=(r=r+Math.imul(_,ee)|0)+Math.imul(v,X)|0,a=a+Math.imul(v,ee)|0,n=n+Math.imul(m,ie)|0,r=(r=r+Math.imul(m,ne)|0)+Math.imul(f,ie)|0,a=a+Math.imul(f,ne)|0;var Ee=(c+(n=n+Math.imul(d,ae)|0)|0)+((8191&(r=(r=r+Math.imul(d,oe)|0)+Math.imul(h,ae)|0))<<13)|0;c=((a=a+Math.imul(h,oe)|0)+(r>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(N,G),r=(r=Math.imul(N,Y))+Math.imul(O,G)|0,a=Math.imul(O,Y),n=n+Math.imul(R,H)|0,r=(r=r+Math.imul(R,q)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,q)|0,n=n+Math.imul(A,j)|0,r=(r=r+Math.imul(A,J)|0)+Math.imul(x,j)|0,a=a+Math.imul(x,J)|0,n=n+Math.imul(w,K)|0,r=(r=r+Math.imul(w,Q)|0)+Math.imul(C,K)|0,a=a+Math.imul(C,Q)|0,n=n+Math.imul(b,X)|0,r=(r=r+Math.imul(b,ee)|0)+Math.imul(S,X)|0,a=a+Math.imul(S,ee)|0,n=n+Math.imul(_,ie)|0,r=(r=r+Math.imul(_,ne)|0)+Math.imul(v,ie)|0,a=a+Math.imul(v,ne)|0,n=n+Math.imul(m,ae)|0,r=(r=r+Math.imul(m,oe)|0)+Math.imul(f,ae)|0,a=a+Math.imul(f,oe)|0;var we=(c+(n=n+Math.imul(d,le)|0)|0)+((8191&(r=(r=r+Math.imul(d,ce)|0)+Math.imul(h,le)|0))<<13)|0;c=((a=a+Math.imul(h,ce)|0)+(r>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(L,G),r=(r=Math.imul(L,Y))+Math.imul(P,G)|0,a=Math.imul(P,Y),n=n+Math.imul(N,H)|0,r=(r=r+Math.imul(N,q)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,q)|0,n=n+Math.imul(R,j)|0,r=(r=r+Math.imul(R,J)|0)+Math.imul(I,j)|0,a=a+Math.imul(I,J)|0,n=n+Math.imul(A,K)|0,r=(r=r+Math.imul(A,Q)|0)+Math.imul(x,K)|0,a=a+Math.imul(x,Q)|0,n=n+Math.imul(w,X)|0,r=(r=r+Math.imul(w,ee)|0)+Math.imul(C,X)|0,a=a+Math.imul(C,ee)|0,n=n+Math.imul(b,ie)|0,r=(r=r+Math.imul(b,ne)|0)+Math.imul(S,ie)|0,a=a+Math.imul(S,ne)|0,n=n+Math.imul(_,ae)|0,r=(r=r+Math.imul(_,oe)|0)+Math.imul(v,ae)|0,a=a+Math.imul(v,oe)|0,n=n+Math.imul(m,le)|0,r=(r=r+Math.imul(m,ce)|0)+Math.imul(f,le)|0,a=a+Math.imul(f,ce)|0;var Ce=(c+(n=n+Math.imul(d,de)|0)|0)+((8191&(r=(r=r+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;c=((a=a+Math.imul(h,he)|0)+(r>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(F,G),r=(r=Math.imul(F,Y))+Math.imul($,G)|0,a=Math.imul($,Y),n=n+Math.imul(L,H)|0,r=(r=r+Math.imul(L,q)|0)+Math.imul(P,H)|0,a=a+Math.imul(P,q)|0,n=n+Math.imul(N,j)|0,r=(r=r+Math.imul(N,J)|0)+Math.imul(O,j)|0,a=a+Math.imul(O,J)|0,n=n+Math.imul(R,K)|0,r=(r=r+Math.imul(R,Q)|0)+Math.imul(I,K)|0,a=a+Math.imul(I,Q)|0,n=n+Math.imul(A,X)|0,r=(r=r+Math.imul(A,ee)|0)+Math.imul(x,X)|0,a=a+Math.imul(x,ee)|0,n=n+Math.imul(w,ie)|0,r=(r=r+Math.imul(w,ne)|0)+Math.imul(C,ie)|0,a=a+Math.imul(C,ne)|0,n=n+Math.imul(b,ae)|0,r=(r=r+Math.imul(b,oe)|0)+Math.imul(S,ae)|0,a=a+Math.imul(S,oe)|0,n=n+Math.imul(_,le)|0,r=(r=r+Math.imul(_,ce)|0)+Math.imul(v,le)|0,a=a+Math.imul(v,ce)|0,n=n+Math.imul(m,de)|0,r=(r=r+Math.imul(m,he)|0)+Math.imul(f,de)|0,a=a+Math.imul(f,he)|0;var Te=(c+(n=n+Math.imul(d,me)|0)|0)+((8191&(r=(r=r+Math.imul(d,fe)|0)+Math.imul(h,me)|0))<<13)|0;c=((a=a+Math.imul(h,fe)|0)+(r>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(F,H),r=(r=Math.imul(F,q))+Math.imul($,H)|0,a=Math.imul($,q),n=n+Math.imul(L,j)|0,r=(r=r+Math.imul(L,J)|0)+Math.imul(P,j)|0,a=a+Math.imul(P,J)|0,n=n+Math.imul(N,K)|0,r=(r=r+Math.imul(N,Q)|0)+Math.imul(O,K)|0,a=a+Math.imul(O,Q)|0,n=n+Math.imul(R,X)|0,r=(r=r+Math.imul(R,ee)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,ee)|0,n=n+Math.imul(A,ie)|0,r=(r=r+Math.imul(A,ne)|0)+Math.imul(x,ie)|0,a=a+Math.imul(x,ne)|0,n=n+Math.imul(w,ae)|0,r=(r=r+Math.imul(w,oe)|0)+Math.imul(C,ae)|0,a=a+Math.imul(C,oe)|0,n=n+Math.imul(b,le)|0,r=(r=r+Math.imul(b,ce)|0)+Math.imul(S,le)|0,a=a+Math.imul(S,ce)|0,n=n+Math.imul(_,de)|0,r=(r=r+Math.imul(_,he)|0)+Math.imul(v,de)|0,a=a+Math.imul(v,he)|0;var Ae=(c+(n=n+Math.imul(m,me)|0)|0)+((8191&(r=(r=r+Math.imul(m,fe)|0)+Math.imul(f,me)|0))<<13)|0;c=((a=a+Math.imul(f,fe)|0)+(r>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(F,j),r=(r=Math.imul(F,J))+Math.imul($,j)|0,a=Math.imul($,J),n=n+Math.imul(L,K)|0,r=(r=r+Math.imul(L,Q)|0)+Math.imul(P,K)|0,a=a+Math.imul(P,Q)|0,n=n+Math.imul(N,X)|0,r=(r=r+Math.imul(N,ee)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,ee)|0,n=n+Math.imul(R,ie)|0,r=(r=r+Math.imul(R,ne)|0)+Math.imul(I,ie)|0,a=a+Math.imul(I,ne)|0,n=n+Math.imul(A,ae)|0,r=(r=r+Math.imul(A,oe)|0)+Math.imul(x,ae)|0,a=a+Math.imul(x,oe)|0,n=n+Math.imul(w,le)|0,r=(r=r+Math.imul(w,ce)|0)+Math.imul(C,le)|0,a=a+Math.imul(C,ce)|0,n=n+Math.imul(b,de)|0,r=(r=r+Math.imul(b,he)|0)+Math.imul(S,de)|0,a=a+Math.imul(S,he)|0;var xe=(c+(n=n+Math.imul(_,me)|0)|0)+((8191&(r=(r=r+Math.imul(_,fe)|0)+Math.imul(v,me)|0))<<13)|0;c=((a=a+Math.imul(v,fe)|0)+(r>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(F,K),r=(r=Math.imul(F,Q))+Math.imul($,K)|0,a=Math.imul($,Q),n=n+Math.imul(L,X)|0,r=(r=r+Math.imul(L,ee)|0)+Math.imul(P,X)|0,a=a+Math.imul(P,ee)|0,n=n+Math.imul(N,ie)|0,r=(r=r+Math.imul(N,ne)|0)+Math.imul(O,ie)|0,a=a+Math.imul(O,ne)|0,n=n+Math.imul(R,ae)|0,r=(r=r+Math.imul(R,oe)|0)+Math.imul(I,ae)|0,a=a+Math.imul(I,oe)|0,n=n+Math.imul(A,le)|0,r=(r=r+Math.imul(A,ce)|0)+Math.imul(x,le)|0,a=a+Math.imul(x,ce)|0,n=n+Math.imul(w,de)|0,r=(r=r+Math.imul(w,he)|0)+Math.imul(C,de)|0,a=a+Math.imul(C,he)|0;var Me=(c+(n=n+Math.imul(b,me)|0)|0)+((8191&(r=(r=r+Math.imul(b,fe)|0)+Math.imul(S,me)|0))<<13)|0;c=((a=a+Math.imul(S,fe)|0)+(r>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(F,X),r=(r=Math.imul(F,ee))+Math.imul($,X)|0,a=Math.imul($,ee),n=n+Math.imul(L,ie)|0,r=(r=r+Math.imul(L,ne)|0)+Math.imul(P,ie)|0,a=a+Math.imul(P,ne)|0,n=n+Math.imul(N,ae)|0,r=(r=r+Math.imul(N,oe)|0)+Math.imul(O,ae)|0,a=a+Math.imul(O,oe)|0,n=n+Math.imul(R,le)|0,r=(r=r+Math.imul(R,ce)|0)+Math.imul(I,le)|0,a=a+Math.imul(I,ce)|0,n=n+Math.imul(A,de)|0,r=(r=r+Math.imul(A,he)|0)+Math.imul(x,de)|0,a=a+Math.imul(x,he)|0;var Re=(c+(n=n+Math.imul(w,me)|0)|0)+((8191&(r=(r=r+Math.imul(w,fe)|0)+Math.imul(C,me)|0))<<13)|0;c=((a=a+Math.imul(C,fe)|0)+(r>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(F,ie),r=(r=Math.imul(F,ne))+Math.imul($,ie)|0,a=Math.imul($,ne),n=n+Math.imul(L,ae)|0,r=(r=r+Math.imul(L,oe)|0)+Math.imul(P,ae)|0,a=a+Math.imul(P,oe)|0,n=n+Math.imul(N,le)|0,r=(r=r+Math.imul(N,ce)|0)+Math.imul(O,le)|0,a=a+Math.imul(O,ce)|0,n=n+Math.imul(R,de)|0,r=(r=r+Math.imul(R,he)|0)+Math.imul(I,de)|0,a=a+Math.imul(I,he)|0;var Ie=(c+(n=n+Math.imul(A,me)|0)|0)+((8191&(r=(r=r+Math.imul(A,fe)|0)+Math.imul(x,me)|0))<<13)|0;c=((a=a+Math.imul(x,fe)|0)+(r>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(F,ae),r=(r=Math.imul(F,oe))+Math.imul($,ae)|0,a=Math.imul($,oe),n=n+Math.imul(L,le)|0,r=(r=r+Math.imul(L,ce)|0)+Math.imul(P,le)|0,a=a+Math.imul(P,ce)|0,n=n+Math.imul(N,de)|0,r=(r=r+Math.imul(N,he)|0)+Math.imul(O,de)|0,a=a+Math.imul(O,he)|0;var ke=(c+(n=n+Math.imul(R,me)|0)|0)+((8191&(r=(r=r+Math.imul(R,fe)|0)+Math.imul(I,me)|0))<<13)|0;c=((a=a+Math.imul(I,fe)|0)+(r>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(F,le),r=(r=Math.imul(F,ce))+Math.imul($,le)|0,a=Math.imul($,ce),n=n+Math.imul(L,de)|0,r=(r=r+Math.imul(L,he)|0)+Math.imul(P,de)|0,a=a+Math.imul(P,he)|0;var Ne=(c+(n=n+Math.imul(N,me)|0)|0)+((8191&(r=(r=r+Math.imul(N,fe)|0)+Math.imul(O,me)|0))<<13)|0;c=((a=a+Math.imul(O,fe)|0)+(r>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(F,de),r=(r=Math.imul(F,he))+Math.imul($,de)|0,a=Math.imul($,he);var Oe=(c+(n=n+Math.imul(L,me)|0)|0)+((8191&(r=(r=r+Math.imul(L,fe)|0)+Math.imul(P,me)|0))<<13)|0;c=((a=a+Math.imul(P,fe)|0)+(r>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var De=(c+(n=Math.imul(F,me))|0)+((8191&(r=(r=Math.imul(F,fe))+Math.imul($,me)|0))<<13)|0;return c=((a=Math.imul($,fe))+(r>>>13)|0)+(De>>>26)|0,De&=67108863,l[0]=ge,l[1]=_e,l[2]=ve,l[3]=ye,l[4]=be,l[5]=Se,l[6]=Ee,l[7]=we,l[8]=Ce,l[9]=Te,l[10]=Ae,l[11]=xe,l[12]=Me,l[13]=Re,l[14]=Ie,l[15]=ke,l[16]=Ne,l[17]=Oe,l[18]=De,0!==c&&(l[19]=c,i.length++),i};function m(e,t,i){return(new f).mulp(e,t,i)}function f(e,t){this.x=e,this.y=t}Math.imul||(p=h),r.prototype.mulTo=function(e,t){var i,n=this.length+e.length;return i=10===this.length&&10===e.length?p(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,r=0,a=0;a<i.length-1;a++){var o=r;r=0;for(var s=67108863&n,l=Math.min(a,t.length-1),c=Math.max(0,a-e.length+1);c<=l;c++){var u=a-c,d=(0|e.words[u])*(0|t.words[c]),h=67108863&d;s=67108863&(h=h+s|0),r+=(o=(o=o+(d/67108864|0)|0)+(h>>>26)|0)>>>26,o&=67108863}i.words[a]=s,n=o,o=r}return 0!==n?i.words[a]=n:i.length--,i.strip()}(this,e,t):m(this,e,t),i},f.prototype.makeRBT=function(e){for(var t=new Array(e),i=r.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,i,e);return t},f.prototype.revBin=function(e,t,i){if(0===e||e===i-1)return e;for(var n=0,r=0;r<t;r++)n|=(1&e)<<t-r-1,e>>=1;return n},f.prototype.permute=function(e,t,i,n,r,a){for(var o=0;o<a;o++)n[o]=t[e[o]],r[o]=i[e[o]]},f.prototype.transform=function(e,t,i,n,r,a){this.permute(a,e,t,i,n,r);for(var o=1;o<r;o<<=1)for(var s=o<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<r;u+=s)for(var d=l,h=c,p=0;p<o;p++){var m=i[u+p],f=n[u+p],g=i[u+p+o],_=n[u+p+o],v=d*g-h*_;_=d*_+h*g,g=v,i[u+p]=m+g,n[u+p]=f+_,i[u+p+o]=m-g,n[u+p+o]=f-_,p!==s&&(v=l*d-c*h,h=l*h+c*d,d=v)}},f.prototype.guessLen13b=function(e,t){var i=1|Math.max(t,e),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},f.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=e[n];e[n]=e[i-n-1],e[i-n-1]=r,r=t[n],t[n]=-t[i-n-1],t[i-n-1]=-r}},f.prototype.normalize13b=function(e,t){for(var i=0,n=0;n<t/2;n++){var r=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+i;e[n]=67108863&r,i=r<67108864?0:r/67108864|0}return e},f.prototype.convert13b=function(e,t,n,r){for(var a=0,o=0;o<t;o++)a+=0|e[o],n[2*o]=8191&a,a>>>=13,n[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<r;++o)n[o]=0;i(0===a),i(!(-8192&a))},f.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},f.prototype.mulp=function(e,t,i){var n=2*this.guessLen13b(e.length,t.length),r=this.makeRBT(n),a=this.stub(n),o=new Array(n),s=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),d=new Array(n),h=i.words;h.length=n,this.convert13b(e.words,e.length,o,n),this.convert13b(t.words,t.length,c,n),this.transform(o,a,s,l,n,r),this.transform(c,a,u,d,n,r);for(var p=0;p<n;p++){var m=s[p]*u[p]-l[p]*d[p];l[p]=s[p]*d[p]+l[p]*u[p],s[p]=m}return this.conjugate(s,l,n),this.transform(s,l,h,a,n,r),this.conjugate(h,a,n),this.normalize13b(h,n),i.negative=e.negative^t.negative,i.length=e.length+t.length,i.strip()},r.prototype.mul=function(e){var t=new r(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},r.prototype.mulf=function(e){var t=new r(null);return t.words=new Array(this.length+e.length),m(this,e,t)},r.prototype.imul=function(e){return this.clone().mulTo(e,this)},r.prototype.imuln=function(e){i("number"==typeof e),i(e<67108864);for(var t=0,n=0;n<this.length;n++){var r=(0|this.words[n])*e,a=(67108863&r)+(67108863&t);t>>=26,t+=r/67108864|0,t+=a>>>26,this.words[n]=67108863&a}return 0!==t&&(this.words[n]=t,this.length++),this.length=0===e?1:this.length,this},r.prototype.muln=function(e){return this.clone().imuln(e)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i<t.length;i++){var n=i/26|0,r=i%26;t[i]=(e.words[n]&1<<r)>>>r}return t}(e);if(0===t.length)return new r(1);for(var i=this,n=0;n<t.length&&0===t[n];n++,i=i.sqr());if(++n<t.length)for(var a=i.sqr();n<t.length;n++,a=a.sqr())0!==t[n]&&(i=i.mul(a));return i},r.prototype.iushln=function(e){i("number"==typeof e&&e>=0);var t,n=e%26,r=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,l=(0|this.words[t])-s<<n;this.words[t]=l|o,o=s>>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t<r;t++)this.words[t]=0;this.length+=r}return this.strip()},r.prototype.ishln=function(e){return i(0===this.negative),this.iushln(e)},r.prototype.iushrn=function(e,t,n){var r;i("number"==typeof e&&e>=0),r=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,l=n;if(r-=o,r=Math.max(0,r),l){for(var c=0;c<o;c++)l.words[c]=this.words[c];l.length=o}if(0===o);else if(this.length>o)for(this.length-=o,c=0;c<this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=r);c--){var d=0|this.words[c];this.words[c]=u<<26-a|d>>>a,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.ishrn=function(e,t,n){return i(0===this.negative),this.iushrn(e,t,n)},r.prototype.shln=function(e){return this.clone().ishln(e)},r.prototype.ushln=function(e){return this.clone().iushln(e)},r.prototype.shrn=function(e){return this.clone().ishrn(e)},r.prototype.ushrn=function(e){return this.clone().iushrn(e)},r.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,r=1<<t;return!(this.length<=n||!(this.words[n]&r))},r.prototype.imaskn=function(e){i("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var r=67108863^67108863>>>t<<t;this.words[this.length-1]&=r}return 0===this.length&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.maskn=function(e){return this.clone().imaskn(e)},r.prototype.iaddn=function(e){return i("number"==typeof e),i(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},r.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},r.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},r.prototype.addn=function(e){return this.clone().iaddn(e)},r.prototype.subn=function(e){return this.clone().isubn(e)},r.prototype.iabs=function(){return this.negative=0,this},r.prototype.abs=function(){return this.clone().iabs()},r.prototype._ishlnsubmul=function(e,t,n){var r,a,o=e.length+n;this._expand(o);var s=0;for(r=0;r<e.length;r++){a=(0|this.words[r+n])+s;var l=(0|e.words[r])*t;s=((a-=67108863&l)>>26)-(l/67108864|0),this.words[r+n]=67108863&a}for(;r<this.length-n;r++)s=(a=(0|this.words[r+n])+s)>>26,this.words[r+n]=67108863&a;if(0===s)return this.strip();for(i(-1===s),s=0,r=0;r<this.length;r++)s=(a=-(0|this.words[r])+s)>>26,this.words[r]=67108863&a;return this.negative=1,this.strip()},r.prototype._wordDiv=function(e,t){var i=(this.length,e.length),n=this.clone(),a=e,o=0|a.words[a.length-1];0!=(i=26-this._countBits(o))&&(a=a.ushln(i),n.iushln(i),o=0|a.words[a.length-1]);var s,l=n.length-a.length;if("mod"!==t){(s=new r(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(a,1,l);0===u.negative&&(n=u,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var h=67108864*(0|n.words[a.length+d])+(0|n.words[a.length+d-1]);for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(a,h,d);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(a,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=h)}return s&&s.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:s||null,mod:n}},r.prototype.divmod=function(e,t,n){return i(!e.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new r(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new r(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new r(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},r.prototype.div=function(e){return this.divmod(e,"div",!1).div},r.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},r.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},r.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),r=e.andln(1),a=i.cmp(n);return a<0||1===r&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},r.prototype.modn=function(e){i(e<=67108863);for(var t=(1<<26)%e,n=0,r=this.length-1;r>=0;r--)n=(t*n+(0|this.words[r]))%e;return n},r.prototype.idivn=function(e){i(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var r=(0|this.words[n])+67108864*t;this.words[n]=r/e|0,t=r%e}return this.strip()},r.prototype.divn=function(e){return this.clone().idivn(e)},r.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new r(1),o=new r(0),s=new r(0),l=new r(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var h=0,p=1;0===(t.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(u),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var m=0,f=1;0===(n.words[0]&f)&&m<26;++m,f<<=1);if(m>0)for(n.iushrn(m);m-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(l)):(n.isub(t),s.isub(a),l.isub(o))}return{a:s,b:l,gcd:n.iushln(c)}},r.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new r(1),s=new r(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0===(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var d=0,h=1;0===(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},r.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=t.cmp(i);if(r<0){var a=t;t=i,i=a}else if(0===r||0===i.cmpn(1))break;t.isub(i)}return i.iushln(n)},r.prototype.invm=function(e){return this.egcd(e).a.umod(e)},r.prototype.isEven=function(){return!(1&this.words[0])},r.prototype.isOdd=function(){return!(1&~this.words[0])},r.prototype.andln=function(e){return this.words[0]&e},r.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,n=(e-t)/26,r=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=r,this;for(var a=r,o=n;0!==a&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),i(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:r<e?-1:1}return 0!==this.negative?0|-t:t},r.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},r.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|e.words[i];if(n!==r){n<r?t=-1:n>r&&(t=1);break}}return t},r.prototype.gtn=function(e){return 1===this.cmpn(e)},r.prototype.gt=function(e){return 1===this.cmp(e)},r.prototype.gten=function(e){return this.cmpn(e)>=0},r.prototype.gte=function(e){return this.cmp(e)>=0},r.prototype.ltn=function(e){return-1===this.cmpn(e)},r.prototype.lt=function(e){return-1===this.cmp(e)},r.prototype.lten=function(e){return this.cmpn(e)<=0},r.prototype.lte=function(e){return this.cmp(e)<=0},r.prototype.eqn=function(e){return 0===this.cmpn(e)},r.prototype.eq=function(e){return 0===this.cmp(e)},r.red=function(e){return new E(e)},r.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},r.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(e){return this.red=e,this},r.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},r.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},r.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},r.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},r.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},r.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},r.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},r.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},r.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new r(t,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=r._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function w(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var e=new r(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},n(v,_),v.prototype.split=function(e,t){for(var i=4194303,n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var a=e.words[9];for(t.words[t.length++]=a&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(o&i)<<4|a>>>22,a=o}a>>>=22,e.words[r-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=0|e.words[i];t+=977*n,e.words[i]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(y,_),n(b,_),n(S,_),S.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+t,r=67108863&n;n>>>=26,e.words[i]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},r._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new b;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return g[e]=t,t},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){i(0===(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},E.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var n=this.m.add(new r(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);i(!a.isZero());var s=new r(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new r(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,a),h=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),m=o;0!==p.cmp(s);){for(var f=p,g=0;0!==f.cmp(s);g++)f=f.redSqr();i(g<m);var _=this.pow(d,new r(1).iushln(m-g-1));h=h.redMul(_),d=_.redSqr(),p=p.redMul(d),m=g}return h},E.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},E.prototype.pow=function(e,t){if(t.isZero())return new r(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=new Array(16);i[0]=new r(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var a=i[0],o=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],u=l-1;u>=0;u--){var d=c>>u&1;a!==i[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4===++s||0===n&&0===u)&&(a=this.mul(a,i[o]),s=0,o=0)):s=0}l=26}return a},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},r.mont=function(e){return new w(e)},n(w,E),w.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},w.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},w.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a._forceRed(this)},w.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new r(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=i.isub(n).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},w.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(bn$5,commonjsGlobal);var bnExports$5=bn$5.exports,bn$4={exports:{}};bn$4.exports,function(e,t){function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function r(e,t,i){if(r.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var a;"object"==typeof e?e.exports=r:t.BN=r,r.BN=r,r.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:require$$0$1.Buffer}catch(e3){}function o(e,t){var i=e.charCodeAt(t);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function s(e,t,i){var n=o(e,i);return i-1>=t&&(n|=o(e,i-1)<<4),n}function l(e,t,i,n){for(var r=0,a=Math.min(e.length,i),o=t;o<a;o++){var s=e.charCodeAt(o)-48;r*=n,r+=s>=49?s-49+10:s>=17?s-17+10:s}return r}r.isBN=function(e){return e instanceof r||null!==e&&"object"==typeof e&&e.constructor.wordSize===r.wordSize&&Array.isArray(e.words)},r.max=function(e,t){return e.cmp(t)>0?e:t},r.min=function(e,t){return e.cmp(t)<0?e:t},r.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r<e.length&&(16===t?this._parseHex(e,r,n):(this._parseBase(e,t,r),"le"===n&&this._initArray(this.toArray(),t,n)))},r.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},r.prototype._initArray=function(e,t,n){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var a,o,s=0;if("be"===n)for(r=e.length-1,a=0;r>=0;r-=3)o=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===n)for(r=0,a=0;r<e.length;r+=3)o=e[r]|e[r+1]<<8|e[r+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},r.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,a=0,o=0;if("be"===i)for(n=e.length-1;n>=t;n-=2)r=s(e,t,n)<<a,this.words[o]|=67108863&r,a>=18?(a-=18,o+=1,this.words[o]|=r>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)r=s(e,t,n)<<a,this.words[o]|=67108863&r,a>=18?(a-=18,o+=1,this.words[o]|=r>>>26):a+=8;this.strip()},r.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=t)n++;n--,r=r/t|0;for(var a=e.length-i,o=a%n,s=Math.min(a,a-o)+i,c=0,u=i;u<s;u+=n)c=l(e,u,u+n,t),this.imuln(r),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){var d=1;for(c=l(e,u,e.length,t),u=0;u<o;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this.strip()},r.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},r.prototype.clone=function(){var e=new r(null);return this.copy(e),e},r.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},r.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},r.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var r=0|e.words[0],a=0|t.words[0],o=r*a,s=67108863&o,l=o/67108864|0;i.words[0]=s;for(var c=1;c<n;c++){for(var u=l>>>26,d=67108863&l,h=Math.min(c,t.length-1),p=Math.max(0,c-e.length+1);p<=h;p++){var m=c-p|0;u+=(o=(r=0|e.words[m])*(a=0|t.words[p])+d)/67108864|0,d=67108863&o}i.words[c]=0|d,l=0|u}return 0!==l?i.words[c]=0|l:i.length--,i.strip()}r.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var r=0,a=0,o=0;o<this.length;o++){var s=this.words[o],l=(16777215&(s<<r|a)).toString(16);a=s>>>24-r&16777215,(r+=2)>=26&&(r-=26,o--),n=0!==a||o!==this.length-1?c[6-l.length]+l+n:l+n}for(0!==a&&(n=a.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var h=u[e],p=d[e];n="";var m=this.clone();for(m.negative=0;!m.isZero();){var f=m.modn(p).toString(e);n=(m=m.idivn(p)).isZero()?f+n:c[h-f.length]+f+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},r.prototype.toJSON=function(){return this.toString(16)},r.prototype.toBuffer=function(e,t){return i(void 0!==a),this.toArrayLike(a,e,t)},r.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},r.prototype.toArrayLike=function(e,t,n){var r=this.byteLength(),a=n||Math.max(1,r);i(r<=a,"byte array longer than desired length"),i(a>0,"Requested array length <= 0"),this.strip();var o,s,l="le"===t,c=new e(a),u=this.clone();if(l){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[s]=o;for(;s<a;s++)c[s]=0}else{for(s=0;s<a-r;s++)c[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[a-s-1]=o}return c},Math.clz32?r.prototype._countBits=function(e){return 32-Math.clz32(e)}:r.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},r.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 8191&t||(i+=13,t>>>=13),127&t||(i+=7,t>>>=7),15&t||(i+=4,t>>>=4),3&t||(i+=2,t>>>=2),1&t||i++,i},r.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,26!==i)break}return e},r.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},r.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},r.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},r.prototype.isNeg=function(){return 0!==this.negative},r.prototype.neg=function(){return this.clone().ineg()},r.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},r.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},r.prototype.ior=function(e){return i(0===(this.negative|e.negative)),this.iuor(e)},r.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},r.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},r.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this.strip()},r.prototype.iand=function(e){return i(0===(this.negative|e.negative)),this.iuand(e)},r.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},r.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},r.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=t.words[n]^i.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},r.prototype.ixor=function(e){return i(0===(this.negative|e.negative)),this.iuxor(e)},r.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},r.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},r.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return n>0&&(this.words[r]=~this.words[r]&67108863>>26-n),this.strip()},r.prototype.notn=function(e){return this.clone().inotn(e)},r.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var n=e/26|0,r=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<r:this.words[n]&~(1<<r),this.strip()},r.prototype.iadd=function(e){var t,i,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var r=0,a=0;a<n.length;a++)t=(0|i.words[a])+(0|n.words[a])+r,this.words[a]=67108863&t,r=t>>>26;for(;0!==r&&a<i.length;a++)t=(0|i.words[a])+r,this.words[a]=67108863&t,r=t>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this},r.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},r.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=e):(i=e,n=this);for(var a=0,o=0;o<n.length;o++)a=(t=(0|i.words[o])-(0|n.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<i.length;o++)a=(t=(0|i.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<i.length&&i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this.length=Math.max(this.length,o),i!==this&&(this.negative=1),this.strip()},r.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,i){var n,r,a,o=e.words,s=t.words,l=i.words,c=0,u=0|o[0],d=8191&u,h=u>>>13,p=0|o[1],m=8191&p,f=p>>>13,g=0|o[2],_=8191&g,v=g>>>13,y=0|o[3],b=8191&y,S=y>>>13,E=0|o[4],w=8191&E,C=E>>>13,T=0|o[5],A=8191&T,x=T>>>13,M=0|o[6],R=8191&M,I=M>>>13,k=0|o[7],N=8191&k,O=k>>>13,D=0|o[8],L=8191&D,P=D>>>13,B=0|o[9],F=8191&B,$=B>>>13,U=0|s[0],G=8191&U,Y=U>>>13,z=0|s[1],H=8191&z,q=z>>>13,V=0|s[2],j=8191&V,J=V>>>13,W=0|s[3],K=8191&W,Q=W>>>13,Z=0|s[4],X=8191&Z,ee=Z>>>13,te=0|s[5],ie=8191&te,ne=te>>>13,re=0|s[6],ae=8191&re,oe=re>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],de=8191&ue,he=ue>>>13,pe=0|s[9],me=8191&pe,fe=pe>>>13;i.negative=e.negative^t.negative,i.length=19;var ge=(c+(n=Math.imul(d,G))|0)+((8191&(r=(r=Math.imul(d,Y))+Math.imul(h,G)|0))<<13)|0;c=((a=Math.imul(h,Y))+(r>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(m,G),r=(r=Math.imul(m,Y))+Math.imul(f,G)|0,a=Math.imul(f,Y);var _e=(c+(n=n+Math.imul(d,H)|0)|0)+((8191&(r=(r=r+Math.imul(d,q)|0)+Math.imul(h,H)|0))<<13)|0;c=((a=a+Math.imul(h,q)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(_,G),r=(r=Math.imul(_,Y))+Math.imul(v,G)|0,a=Math.imul(v,Y),n=n+Math.imul(m,H)|0,r=(r=r+Math.imul(m,q)|0)+Math.imul(f,H)|0,a=a+Math.imul(f,q)|0;var ve=(c+(n=n+Math.imul(d,j)|0)|0)+((8191&(r=(r=r+Math.imul(d,J)|0)+Math.imul(h,j)|0))<<13)|0;c=((a=a+Math.imul(h,J)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(b,G),r=(r=Math.imul(b,Y))+Math.imul(S,G)|0,a=Math.imul(S,Y),n=n+Math.imul(_,H)|0,r=(r=r+Math.imul(_,q)|0)+Math.imul(v,H)|0,a=a+Math.imul(v,q)|0,n=n+Math.imul(m,j)|0,r=(r=r+Math.imul(m,J)|0)+Math.imul(f,j)|0,a=a+Math.imul(f,J)|0;var ye=(c+(n=n+Math.imul(d,K)|0)|0)+((8191&(r=(r=r+Math.imul(d,Q)|0)+Math.imul(h,K)|0))<<13)|0;c=((a=a+Math.imul(h,Q)|0)+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(w,G),r=(r=Math.imul(w,Y))+Math.imul(C,G)|0,a=Math.imul(C,Y),n=n+Math.imul(b,H)|0,r=(r=r+Math.imul(b,q)|0)+Math.imul(S,H)|0,a=a+Math.imul(S,q)|0,n=n+Math.imul(_,j)|0,r=(r=r+Math.imul(_,J)|0)+Math.imul(v,j)|0,a=a+Math.imul(v,J)|0,n=n+Math.imul(m,K)|0,r=(r=r+Math.imul(m,Q)|0)+Math.imul(f,K)|0,a=a+Math.imul(f,Q)|0;var be=(c+(n=n+Math.imul(d,X)|0)|0)+((8191&(r=(r=r+Math.imul(d,ee)|0)+Math.imul(h,X)|0))<<13)|0;c=((a=a+Math.imul(h,ee)|0)+(r>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(A,G),r=(r=Math.imul(A,Y))+Math.imul(x,G)|0,a=Math.imul(x,Y),n=n+Math.imul(w,H)|0,r=(r=r+Math.imul(w,q)|0)+Math.imul(C,H)|0,a=a+Math.imul(C,q)|0,n=n+Math.imul(b,j)|0,r=(r=r+Math.imul(b,J)|0)+Math.imul(S,j)|0,a=a+Math.imul(S,J)|0,n=n+Math.imul(_,K)|0,r=(r=r+Math.imul(_,Q)|0)+Math.imul(v,K)|0,a=a+Math.imul(v,Q)|0,n=n+Math.imul(m,X)|0,r=(r=r+Math.imul(m,ee)|0)+Math.imul(f,X)|0,a=a+Math.imul(f,ee)|0;var Se=(c+(n=n+Math.imul(d,ie)|0)|0)+((8191&(r=(r=r+Math.imul(d,ne)|0)+Math.imul(h,ie)|0))<<13)|0;c=((a=a+Math.imul(h,ne)|0)+(r>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(R,G),r=(r=Math.imul(R,Y))+Math.imul(I,G)|0,a=Math.imul(I,Y),n=n+Math.imul(A,H)|0,r=(r=r+Math.imul(A,q)|0)+Math.imul(x,H)|0,a=a+Math.imul(x,q)|0,n=n+Math.imul(w,j)|0,r=(r=r+Math.imul(w,J)|0)+Math.imul(C,j)|0,a=a+Math.imul(C,J)|0,n=n+Math.imul(b,K)|0,r=(r=r+Math.imul(b,Q)|0)+Math.imul(S,K)|0,a=a+Math.imul(S,Q)|0,n=n+Math.imul(_,X)|0,r=(r=r+Math.imul(_,ee)|0)+Math.imul(v,X)|0,a=a+Math.imul(v,ee)|0,n=n+Math.imul(m,ie)|0,r=(r=r+Math.imul(m,ne)|0)+Math.imul(f,ie)|0,a=a+Math.imul(f,ne)|0;var Ee=(c+(n=n+Math.imul(d,ae)|0)|0)+((8191&(r=(r=r+Math.imul(d,oe)|0)+Math.imul(h,ae)|0))<<13)|0;c=((a=a+Math.imul(h,oe)|0)+(r>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(N,G),r=(r=Math.imul(N,Y))+Math.imul(O,G)|0,a=Math.imul(O,Y),n=n+Math.imul(R,H)|0,r=(r=r+Math.imul(R,q)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,q)|0,n=n+Math.imul(A,j)|0,r=(r=r+Math.imul(A,J)|0)+Math.imul(x,j)|0,a=a+Math.imul(x,J)|0,n=n+Math.imul(w,K)|0,r=(r=r+Math.imul(w,Q)|0)+Math.imul(C,K)|0,a=a+Math.imul(C,Q)|0,n=n+Math.imul(b,X)|0,r=(r=r+Math.imul(b,ee)|0)+Math.imul(S,X)|0,a=a+Math.imul(S,ee)|0,n=n+Math.imul(_,ie)|0,r=(r=r+Math.imul(_,ne)|0)+Math.imul(v,ie)|0,a=a+Math.imul(v,ne)|0,n=n+Math.imul(m,ae)|0,r=(r=r+Math.imul(m,oe)|0)+Math.imul(f,ae)|0,a=a+Math.imul(f,oe)|0;var we=(c+(n=n+Math.imul(d,le)|0)|0)+((8191&(r=(r=r+Math.imul(d,ce)|0)+Math.imul(h,le)|0))<<13)|0;c=((a=a+Math.imul(h,ce)|0)+(r>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(L,G),r=(r=Math.imul(L,Y))+Math.imul(P,G)|0,a=Math.imul(P,Y),n=n+Math.imul(N,H)|0,r=(r=r+Math.imul(N,q)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,q)|0,n=n+Math.imul(R,j)|0,r=(r=r+Math.imul(R,J)|0)+Math.imul(I,j)|0,a=a+Math.imul(I,J)|0,n=n+Math.imul(A,K)|0,r=(r=r+Math.imul(A,Q)|0)+Math.imul(x,K)|0,a=a+Math.imul(x,Q)|0,n=n+Math.imul(w,X)|0,r=(r=r+Math.imul(w,ee)|0)+Math.imul(C,X)|0,a=a+Math.imul(C,ee)|0,n=n+Math.imul(b,ie)|0,r=(r=r+Math.imul(b,ne)|0)+Math.imul(S,ie)|0,a=a+Math.imul(S,ne)|0,n=n+Math.imul(_,ae)|0,r=(r=r+Math.imul(_,oe)|0)+Math.imul(v,ae)|0,a=a+Math.imul(v,oe)|0,n=n+Math.imul(m,le)|0,r=(r=r+Math.imul(m,ce)|0)+Math.imul(f,le)|0,a=a+Math.imul(f,ce)|0;var Ce=(c+(n=n+Math.imul(d,de)|0)|0)+((8191&(r=(r=r+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;c=((a=a+Math.imul(h,he)|0)+(r>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(F,G),r=(r=Math.imul(F,Y))+Math.imul($,G)|0,a=Math.imul($,Y),n=n+Math.imul(L,H)|0,r=(r=r+Math.imul(L,q)|0)+Math.imul(P,H)|0,a=a+Math.imul(P,q)|0,n=n+Math.imul(N,j)|0,r=(r=r+Math.imul(N,J)|0)+Math.imul(O,j)|0,a=a+Math.imul(O,J)|0,n=n+Math.imul(R,K)|0,r=(r=r+Math.imul(R,Q)|0)+Math.imul(I,K)|0,a=a+Math.imul(I,Q)|0,n=n+Math.imul(A,X)|0,r=(r=r+Math.imul(A,ee)|0)+Math.imul(x,X)|0,a=a+Math.imul(x,ee)|0,n=n+Math.imul(w,ie)|0,r=(r=r+Math.imul(w,ne)|0)+Math.imul(C,ie)|0,a=a+Math.imul(C,ne)|0,n=n+Math.imul(b,ae)|0,r=(r=r+Math.imul(b,oe)|0)+Math.imul(S,ae)|0,a=a+Math.imul(S,oe)|0,n=n+Math.imul(_,le)|0,r=(r=r+Math.imul(_,ce)|0)+Math.imul(v,le)|0,a=a+Math.imul(v,ce)|0,n=n+Math.imul(m,de)|0,r=(r=r+Math.imul(m,he)|0)+Math.imul(f,de)|0,a=a+Math.imul(f,he)|0;var Te=(c+(n=n+Math.imul(d,me)|0)|0)+((8191&(r=(r=r+Math.imul(d,fe)|0)+Math.imul(h,me)|0))<<13)|0;c=((a=a+Math.imul(h,fe)|0)+(r>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(F,H),r=(r=Math.imul(F,q))+Math.imul($,H)|0,a=Math.imul($,q),n=n+Math.imul(L,j)|0,r=(r=r+Math.imul(L,J)|0)+Math.imul(P,j)|0,a=a+Math.imul(P,J)|0,n=n+Math.imul(N,K)|0,r=(r=r+Math.imul(N,Q)|0)+Math.imul(O,K)|0,a=a+Math.imul(O,Q)|0,n=n+Math.imul(R,X)|0,r=(r=r+Math.imul(R,ee)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,ee)|0,n=n+Math.imul(A,ie)|0,r=(r=r+Math.imul(A,ne)|0)+Math.imul(x,ie)|0,a=a+Math.imul(x,ne)|0,n=n+Math.imul(w,ae)|0,r=(r=r+Math.imul(w,oe)|0)+Math.imul(C,ae)|0,a=a+Math.imul(C,oe)|0,n=n+Math.imul(b,le)|0,r=(r=r+Math.imul(b,ce)|0)+Math.imul(S,le)|0,a=a+Math.imul(S,ce)|0,n=n+Math.imul(_,de)|0,r=(r=r+Math.imul(_,he)|0)+Math.imul(v,de)|0,a=a+Math.imul(v,he)|0;var Ae=(c+(n=n+Math.imul(m,me)|0)|0)+((8191&(r=(r=r+Math.imul(m,fe)|0)+Math.imul(f,me)|0))<<13)|0;c=((a=a+Math.imul(f,fe)|0)+(r>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(F,j),r=(r=Math.imul(F,J))+Math.imul($,j)|0,a=Math.imul($,J),n=n+Math.imul(L,K)|0,r=(r=r+Math.imul(L,Q)|0)+Math.imul(P,K)|0,a=a+Math.imul(P,Q)|0,n=n+Math.imul(N,X)|0,r=(r=r+Math.imul(N,ee)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,ee)|0,n=n+Math.imul(R,ie)|0,r=(r=r+Math.imul(R,ne)|0)+Math.imul(I,ie)|0,a=a+Math.imul(I,ne)|0,n=n+Math.imul(A,ae)|0,r=(r=r+Math.imul(A,oe)|0)+Math.imul(x,ae)|0,a=a+Math.imul(x,oe)|0,n=n+Math.imul(w,le)|0,r=(r=r+Math.imul(w,ce)|0)+Math.imul(C,le)|0,a=a+Math.imul(C,ce)|0,n=n+Math.imul(b,de)|0,r=(r=r+Math.imul(b,he)|0)+Math.imul(S,de)|0,a=a+Math.imul(S,he)|0;var xe=(c+(n=n+Math.imul(_,me)|0)|0)+((8191&(r=(r=r+Math.imul(_,fe)|0)+Math.imul(v,me)|0))<<13)|0;c=((a=a+Math.imul(v,fe)|0)+(r>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(F,K),r=(r=Math.imul(F,Q))+Math.imul($,K)|0,a=Math.imul($,Q),n=n+Math.imul(L,X)|0,r=(r=r+Math.imul(L,ee)|0)+Math.imul(P,X)|0,a=a+Math.imul(P,ee)|0,n=n+Math.imul(N,ie)|0,r=(r=r+Math.imul(N,ne)|0)+Math.imul(O,ie)|0,a=a+Math.imul(O,ne)|0,n=n+Math.imul(R,ae)|0,r=(r=r+Math.imul(R,oe)|0)+Math.imul(I,ae)|0,a=a+Math.imul(I,oe)|0,n=n+Math.imul(A,le)|0,r=(r=r+Math.imul(A,ce)|0)+Math.imul(x,le)|0,a=a+Math.imul(x,ce)|0,n=n+Math.imul(w,de)|0,r=(r=r+Math.imul(w,he)|0)+Math.imul(C,de)|0,a=a+Math.imul(C,he)|0;var Me=(c+(n=n+Math.imul(b,me)|0)|0)+((8191&(r=(r=r+Math.imul(b,fe)|0)+Math.imul(S,me)|0))<<13)|0;c=((a=a+Math.imul(S,fe)|0)+(r>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(F,X),r=(r=Math.imul(F,ee))+Math.imul($,X)|0,a=Math.imul($,ee),n=n+Math.imul(L,ie)|0,r=(r=r+Math.imul(L,ne)|0)+Math.imul(P,ie)|0,a=a+Math.imul(P,ne)|0,n=n+Math.imul(N,ae)|0,r=(r=r+Math.imul(N,oe)|0)+Math.imul(O,ae)|0,a=a+Math.imul(O,oe)|0,n=n+Math.imul(R,le)|0,r=(r=r+Math.imul(R,ce)|0)+Math.imul(I,le)|0,a=a+Math.imul(I,ce)|0,n=n+Math.imul(A,de)|0,r=(r=r+Math.imul(A,he)|0)+Math.imul(x,de)|0,a=a+Math.imul(x,he)|0;var Re=(c+(n=n+Math.imul(w,me)|0)|0)+((8191&(r=(r=r+Math.imul(w,fe)|0)+Math.imul(C,me)|0))<<13)|0;c=((a=a+Math.imul(C,fe)|0)+(r>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(F,ie),r=(r=Math.imul(F,ne))+Math.imul($,ie)|0,a=Math.imul($,ne),n=n+Math.imul(L,ae)|0,r=(r=r+Math.imul(L,oe)|0)+Math.imul(P,ae)|0,a=a+Math.imul(P,oe)|0,n=n+Math.imul(N,le)|0,r=(r=r+Math.imul(N,ce)|0)+Math.imul(O,le)|0,a=a+Math.imul(O,ce)|0,n=n+Math.imul(R,de)|0,r=(r=r+Math.imul(R,he)|0)+Math.imul(I,de)|0,a=a+Math.imul(I,he)|0;var Ie=(c+(n=n+Math.imul(A,me)|0)|0)+((8191&(r=(r=r+Math.imul(A,fe)|0)+Math.imul(x,me)|0))<<13)|0;c=((a=a+Math.imul(x,fe)|0)+(r>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(F,ae),r=(r=Math.imul(F,oe))+Math.imul($,ae)|0,a=Math.imul($,oe),n=n+Math.imul(L,le)|0,r=(r=r+Math.imul(L,ce)|0)+Math.imul(P,le)|0,a=a+Math.imul(P,ce)|0,n=n+Math.imul(N,de)|0,r=(r=r+Math.imul(N,he)|0)+Math.imul(O,de)|0,a=a+Math.imul(O,he)|0;var ke=(c+(n=n+Math.imul(R,me)|0)|0)+((8191&(r=(r=r+Math.imul(R,fe)|0)+Math.imul(I,me)|0))<<13)|0;c=((a=a+Math.imul(I,fe)|0)+(r>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(F,le),r=(r=Math.imul(F,ce))+Math.imul($,le)|0,a=Math.imul($,ce),n=n+Math.imul(L,de)|0,r=(r=r+Math.imul(L,he)|0)+Math.imul(P,de)|0,a=a+Math.imul(P,he)|0;var Ne=(c+(n=n+Math.imul(N,me)|0)|0)+((8191&(r=(r=r+Math.imul(N,fe)|0)+Math.imul(O,me)|0))<<13)|0;c=((a=a+Math.imul(O,fe)|0)+(r>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(F,de),r=(r=Math.imul(F,he))+Math.imul($,de)|0,a=Math.imul($,he);var Oe=(c+(n=n+Math.imul(L,me)|0)|0)+((8191&(r=(r=r+Math.imul(L,fe)|0)+Math.imul(P,me)|0))<<13)|0;c=((a=a+Math.imul(P,fe)|0)+(r>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var De=(c+(n=Math.imul(F,me))|0)+((8191&(r=(r=Math.imul(F,fe))+Math.imul($,me)|0))<<13)|0;return c=((a=Math.imul($,fe))+(r>>>13)|0)+(De>>>26)|0,De&=67108863,l[0]=ge,l[1]=_e,l[2]=ve,l[3]=ye,l[4]=be,l[5]=Se,l[6]=Ee,l[7]=we,l[8]=Ce,l[9]=Te,l[10]=Ae,l[11]=xe,l[12]=Me,l[13]=Re,l[14]=Ie,l[15]=ke,l[16]=Ne,l[17]=Oe,l[18]=De,0!==c&&(l[19]=c,i.length++),i};function m(e,t,i){return(new f).mulp(e,t,i)}function f(e,t){this.x=e,this.y=t}Math.imul||(p=h),r.prototype.mulTo=function(e,t){var i,n=this.length+e.length;return i=10===this.length&&10===e.length?p(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,r=0,a=0;a<i.length-1;a++){var o=r;r=0;for(var s=67108863&n,l=Math.min(a,t.length-1),c=Math.max(0,a-e.length+1);c<=l;c++){var u=a-c,d=(0|e.words[u])*(0|t.words[c]),h=67108863&d;s=67108863&(h=h+s|0),r+=(o=(o=o+(d/67108864|0)|0)+(h>>>26)|0)>>>26,o&=67108863}i.words[a]=s,n=o,o=r}return 0!==n?i.words[a]=n:i.length--,i.strip()}(this,e,t):m(this,e,t),i},f.prototype.makeRBT=function(e){for(var t=new Array(e),i=r.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,i,e);return t},f.prototype.revBin=function(e,t,i){if(0===e||e===i-1)return e;for(var n=0,r=0;r<t;r++)n|=(1&e)<<t-r-1,e>>=1;return n},f.prototype.permute=function(e,t,i,n,r,a){for(var o=0;o<a;o++)n[o]=t[e[o]],r[o]=i[e[o]]},f.prototype.transform=function(e,t,i,n,r,a){this.permute(a,e,t,i,n,r);for(var o=1;o<r;o<<=1)for(var s=o<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<r;u+=s)for(var d=l,h=c,p=0;p<o;p++){var m=i[u+p],f=n[u+p],g=i[u+p+o],_=n[u+p+o],v=d*g-h*_;_=d*_+h*g,g=v,i[u+p]=m+g,n[u+p]=f+_,i[u+p+o]=m-g,n[u+p+o]=f-_,p!==s&&(v=l*d-c*h,h=l*h+c*d,d=v)}},f.prototype.guessLen13b=function(e,t){var i=1|Math.max(t,e),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},f.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=e[n];e[n]=e[i-n-1],e[i-n-1]=r,r=t[n],t[n]=-t[i-n-1],t[i-n-1]=-r}},f.prototype.normalize13b=function(e,t){for(var i=0,n=0;n<t/2;n++){var r=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+i;e[n]=67108863&r,i=r<67108864?0:r/67108864|0}return e},f.prototype.convert13b=function(e,t,n,r){for(var a=0,o=0;o<t;o++)a+=0|e[o],n[2*o]=8191&a,a>>>=13,n[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<r;++o)n[o]=0;i(0===a),i(!(-8192&a))},f.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},f.prototype.mulp=function(e,t,i){var n=2*this.guessLen13b(e.length,t.length),r=this.makeRBT(n),a=this.stub(n),o=new Array(n),s=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),d=new Array(n),h=i.words;h.length=n,this.convert13b(e.words,e.length,o,n),this.convert13b(t.words,t.length,c,n),this.transform(o,a,s,l,n,r),this.transform(c,a,u,d,n,r);for(var p=0;p<n;p++){var m=s[p]*u[p]-l[p]*d[p];l[p]=s[p]*d[p]+l[p]*u[p],s[p]=m}return this.conjugate(s,l,n),this.transform(s,l,h,a,n,r),this.conjugate(h,a,n),this.normalize13b(h,n),i.negative=e.negative^t.negative,i.length=e.length+t.length,i.strip()},r.prototype.mul=function(e){var t=new r(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},r.prototype.mulf=function(e){var t=new r(null);return t.words=new Array(this.length+e.length),m(this,e,t)},r.prototype.imul=function(e){return this.clone().mulTo(e,this)},r.prototype.imuln=function(e){i("number"==typeof e),i(e<67108864);for(var t=0,n=0;n<this.length;n++){var r=(0|this.words[n])*e,a=(67108863&r)+(67108863&t);t>>=26,t+=r/67108864|0,t+=a>>>26,this.words[n]=67108863&a}return 0!==t&&(this.words[n]=t,this.length++),this.length=0===e?1:this.length,this},r.prototype.muln=function(e){return this.clone().imuln(e)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i<t.length;i++){var n=i/26|0,r=i%26;t[i]=(e.words[n]&1<<r)>>>r}return t}(e);if(0===t.length)return new r(1);for(var i=this,n=0;n<t.length&&0===t[n];n++,i=i.sqr());if(++n<t.length)for(var a=i.sqr();n<t.length;n++,a=a.sqr())0!==t[n]&&(i=i.mul(a));return i},r.prototype.iushln=function(e){i("number"==typeof e&&e>=0);var t,n=e%26,r=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,l=(0|this.words[t])-s<<n;this.words[t]=l|o,o=s>>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t<r;t++)this.words[t]=0;this.length+=r}return this.strip()},r.prototype.ishln=function(e){return i(0===this.negative),this.iushln(e)},r.prototype.iushrn=function(e,t,n){var r;i("number"==typeof e&&e>=0),r=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,l=n;if(r-=o,r=Math.max(0,r),l){for(var c=0;c<o;c++)l.words[c]=this.words[c];l.length=o}if(0===o);else if(this.length>o)for(this.length-=o,c=0;c<this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=r);c--){var d=0|this.words[c];this.words[c]=u<<26-a|d>>>a,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.ishrn=function(e,t,n){return i(0===this.negative),this.iushrn(e,t,n)},r.prototype.shln=function(e){return this.clone().ishln(e)},r.prototype.ushln=function(e){return this.clone().iushln(e)},r.prototype.shrn=function(e){return this.clone().ishrn(e)},r.prototype.ushrn=function(e){return this.clone().iushrn(e)},r.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,r=1<<t;return!(this.length<=n||!(this.words[n]&r))},r.prototype.imaskn=function(e){i("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var r=67108863^67108863>>>t<<t;this.words[this.length-1]&=r}return 0===this.length&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.maskn=function(e){return this.clone().imaskn(e)},r.prototype.iaddn=function(e){return i("number"==typeof e),i(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},r.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},r.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},r.prototype.addn=function(e){return this.clone().iaddn(e)},r.prototype.subn=function(e){return this.clone().isubn(e)},r.prototype.iabs=function(){return this.negative=0,this},r.prototype.abs=function(){return this.clone().iabs()},r.prototype._ishlnsubmul=function(e,t,n){var r,a,o=e.length+n;this._expand(o);var s=0;for(r=0;r<e.length;r++){a=(0|this.words[r+n])+s;var l=(0|e.words[r])*t;s=((a-=67108863&l)>>26)-(l/67108864|0),this.words[r+n]=67108863&a}for(;r<this.length-n;r++)s=(a=(0|this.words[r+n])+s)>>26,this.words[r+n]=67108863&a;if(0===s)return this.strip();for(i(-1===s),s=0,r=0;r<this.length;r++)s=(a=-(0|this.words[r])+s)>>26,this.words[r]=67108863&a;return this.negative=1,this.strip()},r.prototype._wordDiv=function(e,t){var i=(this.length,e.length),n=this.clone(),a=e,o=0|a.words[a.length-1];0!=(i=26-this._countBits(o))&&(a=a.ushln(i),n.iushln(i),o=0|a.words[a.length-1]);var s,l=n.length-a.length;if("mod"!==t){(s=new r(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(a,1,l);0===u.negative&&(n=u,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var h=67108864*(0|n.words[a.length+d])+(0|n.words[a.length+d-1]);for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(a,h,d);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(a,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=h)}return s&&s.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:s||null,mod:n}},r.prototype.divmod=function(e,t,n){return i(!e.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new r(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new r(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new r(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},r.prototype.div=function(e){return this.divmod(e,"div",!1).div},r.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},r.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},r.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),r=e.andln(1),a=i.cmp(n);return a<0||1===r&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},r.prototype.modn=function(e){i(e<=67108863);for(var t=(1<<26)%e,n=0,r=this.length-1;r>=0;r--)n=(t*n+(0|this.words[r]))%e;return n},r.prototype.idivn=function(e){i(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var r=(0|this.words[n])+67108864*t;this.words[n]=r/e|0,t=r%e}return this.strip()},r.prototype.divn=function(e){return this.clone().idivn(e)},r.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new r(1),o=new r(0),s=new r(0),l=new r(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var h=0,p=1;0===(t.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(u),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var m=0,f=1;0===(n.words[0]&f)&&m<26;++m,f<<=1);if(m>0)for(n.iushrn(m);m-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(l)):(n.isub(t),s.isub(a),l.isub(o))}return{a:s,b:l,gcd:n.iushln(c)}},r.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new r(1),s=new r(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0===(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var d=0,h=1;0===(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},r.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=t.cmp(i);if(r<0){var a=t;t=i,i=a}else if(0===r||0===i.cmpn(1))break;t.isub(i)}return i.iushln(n)},r.prototype.invm=function(e){return this.egcd(e).a.umod(e)},r.prototype.isEven=function(){return!(1&this.words[0])},r.prototype.isOdd=function(){return!(1&~this.words[0])},r.prototype.andln=function(e){return this.words[0]&e},r.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,n=(e-t)/26,r=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=r,this;for(var a=r,o=n;0!==a&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),i(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:r<e?-1:1}return 0!==this.negative?0|-t:t},r.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},r.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|e.words[i];if(n!==r){n<r?t=-1:n>r&&(t=1);break}}return t},r.prototype.gtn=function(e){return 1===this.cmpn(e)},r.prototype.gt=function(e){return 1===this.cmp(e)},r.prototype.gten=function(e){return this.cmpn(e)>=0},r.prototype.gte=function(e){return this.cmp(e)>=0},r.prototype.ltn=function(e){return-1===this.cmpn(e)},r.prototype.lt=function(e){return-1===this.cmp(e)},r.prototype.lten=function(e){return this.cmpn(e)<=0},r.prototype.lte=function(e){return this.cmp(e)<=0},r.prototype.eqn=function(e){return 0===this.cmpn(e)},r.prototype.eq=function(e){return 0===this.cmp(e)},r.red=function(e){return new E(e)},r.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},r.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(e){return this.red=e,this},r.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},r.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},r.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},r.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},r.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},r.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},r.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},r.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},r.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new r(t,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=r._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function w(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var e=new r(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},n(v,_),v.prototype.split=function(e,t){for(var i=4194303,n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var a=e.words[9];for(t.words[t.length++]=a&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(o&i)<<4|a>>>22,a=o}a>>>=22,e.words[r-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=0|e.words[i];t+=977*n,e.words[i]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(y,_),n(b,_),n(S,_),S.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+t,r=67108863&n;n>>>=26,e.words[i]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},r._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new b;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return g[e]=t,t},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){i(0===(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},E.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var n=this.m.add(new r(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);i(!a.isZero());var s=new r(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new r(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,a),h=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),m=o;0!==p.cmp(s);){for(var f=p,g=0;0!==f.cmp(s);g++)f=f.redSqr();i(g<m);var _=this.pow(d,new r(1).iushln(m-g-1));h=h.redMul(_),d=_.redSqr(),p=p.redMul(d),m=g}return h},E.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},E.prototype.pow=function(e,t){if(t.isZero())return new r(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=new Array(16);i[0]=new r(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var a=i[0],o=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],u=l-1;u>=0;u--){var d=c>>u&1;a!==i[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4===++s||0===n&&0===u)&&(a=this.mul(a,i[o]),s=0,o=0)):s=0}l=26}return a},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},r.mont=function(e){return new w(e)},n(w,E),w.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},w.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},w.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a._forceRed(this)},w.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new r(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=i.isub(n).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},w.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(bn$4,commonjsGlobal);var bnExports$4=bn$4.exports,brorand={exports:{}},hasRequiredBrorand,mr,hasRequiredMr,generatePrime,hasRequiredGeneratePrime;function requireBrorand(){if(hasRequiredBrorand)return brorand.exports;var e;function t(e){this.rand=e}if(hasRequiredBrorand=1,brorand.exports=function(i){return e||(e=new t(null)),e.generate(i)},brorand.exports.Rand=t,t.prototype.generate=function(e){return this._rand(e)},t.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),i=0;i<t.length;i++)t[i]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?t.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?t.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(t.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var i=requireCryptoBrowserify();if("function"!=typeof i.randomBytes)throw new Error("Not supported");t.prototype._rand=function(e){return i.randomBytes(e)}}catch(e3){}return brorand.exports}function requireMr(){if(hasRequiredMr)return mr;hasRequiredMr=1;var e=bnExports$4,t=requireBrorand();function i(e){this.rand=e||new t.Rand}return mr=i,i.create=function(e){return new i(e)},i.prototype._randbelow=function(t){var i=t.bitLength(),n=Math.ceil(i/8);do{var r=new e(this.rand.generate(n))}while(r.cmp(t)>=0);return r},i.prototype._randrange=function(e,t){var i=t.sub(e);return e.add(this._randbelow(i))},i.prototype.test=function(t,i,n){var r=t.bitLength(),a=e.mont(t),o=new e(1).toRed(a);i||(i=Math.max(1,r/48|0));for(var s=t.subn(1),l=0;!s.testn(l);l++);for(var c=t.shrn(l),u=s.toRed(a);i>0;i--){var d=this._randrange(new e(2),s);n&&n(d);var h=d.toRed(a).redPow(c);if(0!==h.cmp(o)&&0!==h.cmp(u)){for(var p=1;p<l;p++){if(0===(h=h.redSqr()).cmp(o))return!1;if(0===h.cmp(u))break}if(p===l)return!1}}return!0},i.prototype.getDivisor=function(t,i){var n=t.bitLength(),r=e.mont(t),a=new e(1).toRed(r);i||(i=Math.max(1,n/48|0));for(var o=t.subn(1),s=0;!o.testn(s);s++);for(var l=t.shrn(s),c=o.toRed(r);i>0;i--){var u=this._randrange(new e(2),o),d=t.gcd(u);if(0!==d.cmpn(1))return d;var h=u.toRed(r).redPow(l);if(0!==h.cmp(a)&&0!==h.cmp(c)){for(var p=1;p<s;p++){if(0===(h=h.redSqr()).cmp(a))return h.fromRed().subn(1).gcd(t);if(0===h.cmp(c))break}if(p===s)return(h=h.redSqr()).fromRed().subn(1).gcd(t)}}return!1},mr}function requireGeneratePrime(){if(hasRequiredGeneratePrime)return generatePrime;hasRequiredGeneratePrime=1;var e=browserExports;generatePrime=m,m.simpleSieve=h,m.fermatTest=p;var t=bnExports$5,i=new t(24),n=new(requireMr()),r=new t(1),a=new t(2),o=new t(5);new t(16),new t(8);var s=new t(10),l=new t(3);new t(7);var c=new t(11),u=new t(4);new t(12);var d=null;function h(e){for(var t=function(){if(null!==d)return d;var e=[];e[0]=2;for(var t=1,i=3;i<1048576;i+=2){for(var n=Math.ceil(Math.sqrt(i)),r=0;r<t&&e[r]<=n&&i%e[r]!==0;r++);t!==r&&e[r]<=n||(e[t++]=i)}return d=e,e}(),i=0;i<t.length;i++)if(0===e.modn(t[i]))return 0===e.cmpn(t[i]);return!0}function p(e){var i=t.mont(e);return 0===a.toRed(i).redPow(e.subn(1)).fromRed().cmpn(1)}function m(d,m){if(d<16)return new t(2===m||5===m?[140,123]:[140,39]);var f,g;for(m=new t(m);;){for(f=new t(e(Math.ceil(d/8)));f.bitLength()>d;)f.ishrn(1);if(f.isEven()&&f.iadd(r),f.testn(1)||f.iadd(a),m.cmp(a)){if(!m.cmp(o))for(;f.mod(s).cmp(l);)f.iadd(u)}else for(;f.mod(i).cmp(c);)f.iadd(u);if(h(g=f.shrn(1))&&h(f)&&p(g)&&p(f)&&n.test(g)&&n.test(f))return f}}return generatePrime}const modp1={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},require$$1$1={modp1:modp1,modp2:modp2,modp5:modp5,modp14:modp14,modp15:modp15,modp16:modp16,modp17:modp17,modp18:modp18};var dh,hasRequiredDh,hasRequiredBrowser$3;function requireDh(){if(hasRequiredDh)return dh;hasRequiredDh=1;var e=bnExports$5,t=new(requireMr()),i=new e(24),n=new e(11),r=new e(10),a=new e(3),o=new e(7),s=requireGeneratePrime(),l=browserExports;function c(t,i){return i=i||"utf8",Buffer$F.isBuffer(t)||(t=new Buffer$F(t,i)),this._pub=new e(t),this}function u(t,i){return i=i||"utf8",Buffer$F.isBuffer(t)||(t=new Buffer$F(t,i)),this._priv=new e(t),this}dh=h;var d={};function h(t,i,n){this.setGenerator(i),this.__prime=new e(t),this._prime=e.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=c,this.setPrivateKey=u):this._primeCode=8}function p(e,t){var i=new Buffer$F(e.toArray());return t?i.toString(t):i}return Object.defineProperty(h.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,l){var c=l.toString("hex"),u=[c,e.toString(16)].join("_");if(u in d)return d[u];var h,p=0;if(e.isEven()||!s.simpleSieve||!s.fermatTest(e)||!t.test(e))return p+=1,p+="02"===c||"05"===c?8:4,d[u]=p,p;switch(t.test(e.shrn(1))||(p+=2),c){case"02":e.mod(i).cmp(n)&&(p+=8);break;case"05":(h=e.mod(r)).cmp(a)&&h.cmp(o)&&(p+=8);break;default:p+=4}return d[u]=p,p}(this.__prime,this.__gen)),this._primeCode}}),h.prototype.generateKeys=function(){return this._priv||(this._priv=new e(l(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},h.prototype.computeSecret=function(t){var i=(t=(t=new e(t)).toRed(this._prime)).redPow(this._priv).fromRed(),n=new Buffer$F(i.toArray()),r=this.getPrime();if(n.length<r.length){var a=new Buffer$F(r.length-n.length);a.fill(0),n=Buffer$F.concat([a,n])}return n},h.prototype.getPublicKey=function(e){return p(this._pub,e)},h.prototype.getPrivateKey=function(e){return p(this._priv,e)},h.prototype.getPrime=function(e){return p(this.__prime,e)},h.prototype.getGenerator=function(e){return p(this._gen,e)},h.prototype.setGenerator=function(t,i){return i=i||"utf8",Buffer$F.isBuffer(t)||(t=new Buffer$F(t,i)),this.__gen=t,this._gen=new e(t),this},dh}function requireBrowser$3(){if(hasRequiredBrowser$3)return browser$a;hasRequiredBrowser$3=1;var e=requireGeneratePrime(),t=require$$1$1,i=requireDh();var n={binary:!0,hex:!0,base64:!0};return browser$a.DiffieHellmanGroup=browser$a.createDiffieHellmanGroup=browser$a.getDiffieHellman=function(e){var n=new Buffer$F(t[e].prime,"hex"),r=new Buffer$F(t[e].gen,"hex");return new i(n,r)},browser$a.createDiffieHellman=browser$a.DiffieHellman=function t(r,a,o,s){return Buffer$F.isBuffer(a)||void 0===n[a]?t(r,"binary",a,o):(a=a||"binary",s=s||"binary",o=o||new Buffer$F([2]),Buffer$F.isBuffer(o)||(o=new Buffer$F(o,s)),"number"==typeof r?new i(e(r,o),o,!0):(Buffer$F.isBuffer(r)||(r=new Buffer$F(r,a)),new i(r,o,!0)))},browser$a}var readableBrowser={exports:{}},toString$3={}.toString,isarray=Array.isArray||function(e){return"[object Array]"==toString$3.call(e)},streamBrowser=eventsExports.EventEmitter,safeBuffer$1={exports:{}};!function(e,t){var i=require$$0$1,n=i.Buffer;function r(e,t){for(var i in e)t[i]=e[i]}function a(e,t,i){return n(e,t,i)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=i:(r(i,t),t.Buffer=a),r(n,a),a.from=function(e,t,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,i)},a.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=n(e);return void 0!==t?"string"==typeof i?r.fill(t,i):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}}(safeBuffer$1,safeBuffer$1.exports);var safeBufferExports=safeBuffer$1.exports,BufferList={exports:{}},hasRequiredBufferList;function requireBufferList(){return hasRequiredBufferList||(hasRequiredBufferList=1,function(e){var t=safeBufferExports.Buffer,i=util$5;function n(e,t,i){e.copy(t,i)}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,i=""+t.data;t=t.next;)i+=e+t.data;return i},e.prototype.concat=function(e){if(0===this.length)return t.alloc(0);for(var i=t.allocUnsafe(e>>>0),r=this.head,a=0;r;)n(r.data,i,a),a+=r.data.length,r=r.next;return i},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})}(BufferList)),BufferList.exports}var pna=processNextickArgsExports;function destroy(e,t){var i=this,n=this._readableState&&this._readableState.destroyed,r=this._writableState&&this._writableState.destroyed;return n||r?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,pna.nextTick(emitErrorNT,this,e)):pna.nextTick(emitErrorNT,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?i._writableState?i._writableState.errorEmitted||(i._writableState.errorEmitted=!0,pna.nextTick(emitErrorNT,i,e)):pna.nextTick(emitErrorNT,i,e):t&&t(e)}),this)}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(e,t){e.emit("error",t)}var destroy_1={destroy:destroy,undestroy:undestroy},_stream_writable,hasRequired_stream_writable,_stream_duplex,hasRequired_stream_duplex,_stream_readable,hasRequired_stream_readable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1;var e=processNextickArgsExports;function t(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,i){var n=e.entry;e.entry=null;for(;n;){var r=n.callback;t.pendingcb--,r(i),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}_stream_writable=p;var i,n=!process$1.browser&&["v0.10","v0.9."].indexOf(process$1.version.slice(0,5))>-1?setImmediate:e.nextTick;p.WritableState=h;var r=Object.create(util$4);r.inherits=inherits_browserExports;var a={deprecate:browser$g},o=streamBrowser,s=safeBufferExports.Buffer,l=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var c,u=destroy_1;function d(){}function h(r,a){i=i||require_stream_duplex(),r=r||{};var o=a instanceof i;this.objectMode=!!r.objectMode,o&&(this.objectMode=this.objectMode||!!r.writableObjectMode);var s=r.highWaterMark,l=r.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=s||0===s?s:o&&(l||0===l)?l:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===r.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,i){var r=t._writableState,a=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),i)!function(t,i,n,r,a){--i.pendingcb,n?(e.nextTick(a,r),e.nextTick(y,t,i),t._writableState.errorEmitted=!0,t.emit("error",r)):(a(r),t._writableState.errorEmitted=!0,t.emit("error",r),y(t,i))}(t,r,a,i,o);else{var s=_(r);s||r.corked||r.bufferProcessing||!r.bufferedRequest||g(t,r),a?n(f,t,r,s,o):f(t,r,s,o)}}(a,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 t(this)}function p(e){if(i=i||require_stream_duplex(),!(c.call(p,this)||this instanceof i))return new p(e);this._writableState=new h(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),o.call(this)}function m(e,t,i,n,r,a,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,i?e._writev(r,t.onwrite):e._write(r,a,t.onwrite),t.sync=!1}function f(e,t,i,n){i||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),y(e,t)}function g(e,i){i.bufferProcessing=!0;var n=i.bufferedRequest;if(e._writev&&n&&n.next){var r=i.bufferedRequestCount,a=new Array(r),o=i.corkedRequestsFree;o.entry=n;for(var s=0,l=!0;n;)a[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;a.allBuffers=l,m(e,i,!0,i.length,a,"",o.finish),i.pendingcb++,i.lastBufferedRequest=null,o.next?(i.corkedRequestsFree=o.next,o.next=null):i.corkedRequestsFree=new t(i),i.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,u=n.encoding,d=n.callback;if(m(e,i,!1,i.objectMode?1:c.length,c,u,d),n=n.next,i.bufferedRequestCount--,i.writing)break}null===n&&(i.lastBufferedRequest=null)}i.bufferedRequest=n,i.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function v(e,t){e._final(function(i){t.pendingcb--,i&&e.emit("error",i),t.prefinished=!0,e.emit("prefinish"),y(e,t)})}function y(t,i){var n=_(i);return n&&(!function(t,i){i.prefinished||i.finalCalled||("function"==typeof t._final?(i.pendingcb++,i.finalCalled=!0,e.nextTick(v,t,i)):(i.prefinished=!0,t.emit("prefinish")))}(t,i),0===i.pendingcb&&(i.finished=!0,t.emit("finish"))),n}return r.inherits(p,o),h.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(h.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(p,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===p&&(e&&e._writableState instanceof h)}})):c=function(e){return e instanceof this},p.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},p.prototype.write=function(t,i,n){var r,a=this._writableState,o=!1,c=!a.objectMode&&(r=t,s.isBuffer(r)||r instanceof l);return c&&!s.isBuffer(t)&&(t=function(e){return s.from(e)}(t)),"function"==typeof i&&(n=i,i=null),c?i="buffer":i||(i=a.defaultEncoding),"function"!=typeof n&&(n=d),a.ended?function(t,i){var n=new Error("write after end");t.emit("error",n),e.nextTick(i,n)}(this,n):(c||function(t,i,n,r){var a=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||i.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),e.nextTick(r,o),a=!1),a}(this,a,t,n))&&(a.pendingcb++,o=function(e,t,i,n,r,a){if(!i){var o=function(e,t,i){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=s.from(t,i));return t}(t,n,r);n!==o&&(i=!0,r="buffer",n=o)}var l=t.objectMode?1:n.length;t.length+=l;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:r,isBuf:i,callback:a,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else m(e,t,!1,l,n,r,a);return c}(this,a,c,t,i,n)),o},p.prototype.cork=function(){this._writableState.corked++},p.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||g(this,e))},p.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),p.prototype._write=function(e,t,i){i(new Error("_write() is not implemented"))},p.prototype._writev=null,p.prototype.end=function(t,i,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,i=null):"function"==typeof i&&(n=i,i=null),null!=t&&this.write(t,i),r.corked&&(r.corked=1,this.uncork()),r.ending||function(t,i,n){i.ending=!0,y(t,i),n&&(i.finished?e.nextTick(n):t.once("finish",n));i.ended=!0,t.writable=!1}(this,r,n)},Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),p.prototype.destroy=u.destroy,p.prototype._undestroy=u.undestroy,p.prototype._destroy=function(e,t){this.end(),t(e)},_stream_writable}function require_stream_duplex(){if(hasRequired_stream_duplex)return _stream_duplex;hasRequired_stream_duplex=1;var e=processNextickArgsExports,t=Object.keys||function(e){var t=[];for(var i in e)t.push(i);return t};_stream_duplex=l;var i=Object.create(util$4);i.inherits=inherits_browserExports;var n=require_stream_readable(),r=require_stream_writable();i.inherits(l,n);for(var a=t(r.prototype),o=0;o<a.length;o++){var s=a[o];l.prototype[s]||(l.prototype[s]=r.prototype[s])}function l(e){if(!(this instanceof l))return new l(e);n.call(this,e),r.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||e.nextTick(u,this)}function u(e){e.end()}return Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),l.prototype._destroy=function(t,i){this.push(null),this.end(),e.nextTick(i,t)},_stream_duplex}function require_stream_readable(){if(hasRequired_stream_readable)return _stream_readable;hasRequired_stream_readable=1;var e=processNextickArgsExports;_stream_readable=f;var t,i=isarray;f.ReadableState=m,eventsExports.EventEmitter;var n=function(e,t){return e.listeners(t).length},r=streamBrowser,a=safeBufferExports.Buffer,o=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var s=Object.create(util$4);s.inherits=inherits_browserExports;var l=util$5,c=void 0;c=l&&l.debuglog?l.debuglog("stream"):function(){};var u,d=requireBufferList(),h=destroy_1;s.inherits(f,r);var p=["error","close","destroy","pause","resume"];function m(e,i){e=e||{};var n=i instanceof(t=t||require_stream_duplex());this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,a=e.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n&&(a||0===a)?a:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new d,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.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(u||(u=string_decoder.StringDecoder),this.decoder=new u(e.encoding),this.encoding=e.encoding)}function f(e){if(t=t||require_stream_duplex(),!(this instanceof f))return new f(e);this._readableState=new m(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),r.call(this)}function g(e,t,i,n,r){var s,l=e._readableState;null===t?(l.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var i=t.decoder.end();i&&i.length&&(t.buffer.push(i),t.length+=t.objectMode?1:i.length)}t.ended=!0,b(e)}(e,l)):(r||(s=function(e,t){var i;n=t,a.isBuffer(n)||n instanceof o||"string"==typeof t||void 0===t||e.objectMode||(i=new TypeError("Invalid non-string/buffer chunk"));var n;return i}(l,t)),s?e.emit("error",s):l.objectMode||t&&t.length>0?("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=function(e){return a.from(e)}(t)),n?l.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,l,t,!0):l.ended?e.emit("error",new Error("stream.push() after EOF")):(l.reading=!1,l.decoder&&!i?(t=l.decoder.write(t),l.objectMode||0!==t.length?_(e,l,t,!1):E(e,l)):_(e,l,t,!1))):n||(l.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(l)}function _(e,t,i,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",i),e.read(0)):(t.length+=t.objectMode?1:i.length,n?t.buffer.unshift(i):t.buffer.push(i),t.needReadable&&b(e)),E(e,t)}Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),f.prototype.destroy=h.destroy,f.prototype._undestroy=h.undestroy,f.prototype._destroy=function(e,t){this.push(null),t(e)},f.prototype.push=function(e,t){var i,n=this._readableState;return n.objectMode?i=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=a.from(e,t),t=""),i=!0),g(this,e,t,!1,i)},f.prototype.unshift=function(e){return g(this,e,null,!0,!1)},f.prototype.isPaused=function(){return!1===this._readableState.flowing},f.prototype.setEncoding=function(e){return u||(u=string_decoder.StringDecoder),this._readableState.decoder=new u(e),this._readableState.encoding=e,this};var v=8388608;function y(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=v?e=v:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function b(t){var i=t._readableState;i.needReadable=!1,i.emittedReadable||(c("emitReadable",i.flowing),i.emittedReadable=!0,i.sync?e.nextTick(S,t):S(t))}function S(e){c("emit readable"),e.emit("readable"),A(e)}function E(t,i){i.readingMore||(i.readingMore=!0,e.nextTick(w,t,i))}function w(e,t){for(var i=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(c("maybeReadMore read 0"),e.read(0),i!==t.length);)i=t.length;t.readingMore=!1}function C(e){c("readable nexttick read 0"),e.read(0)}function T(e,t){t.reading||(c("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),A(e),t.flowing&&!t.reading&&e.read(0)}function A(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function x(e,t){return 0===t.length?null:(t.objectMode?i=t.buffer.shift():!e||e>=t.length?(i=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):i=function(e,t,i){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():i?function(e,t){var i=t.head,n=1,r=i.data;e-=r.length;for(;i=i.next;){var a=i.data,o=e>a.length?a.length:e;if(o===a.length?r+=a:r+=a.slice(0,e),0===(e-=o)){o===a.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=a.slice(o));break}++n}return t.length-=n,r}(e,t):function(e,t){var i=a.allocUnsafe(e),n=t.head,r=1;n.data.copy(i),e-=n.data.length;for(;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(o.copy(i,i.length-e,0,s),0===(e-=s)){s===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++r}return t.length-=r,i}(e,t);return n}(e,t.buffer,t.decoder),i);var i}function M(t){var i=t._readableState;if(i.length>0)throw new Error('"endReadable()" called on non-empty stream');i.endEmitted||(i.ended=!0,e.nextTick(R,i,t))}function R(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function I(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1}return f.prototype.read=function(e){c("read",e),e=parseInt(e,10);var t=this._readableState,i=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):b(this),null;if(0===(e=y(e,t))&&t.ended)return 0===t.length&&M(this),null;var n,r=t.needReadable;return c("need readable",r),(0===t.length||t.length-e<t.highWaterMark)&&c("length less than watermark",r=!0),t.ended||t.reading?c("reading or ended",r=!1):r&&(c("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=y(i,t))),null===(n=e>0?x(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),i!==e&&t.ended&&M(this)),null!==n&&this.emit("data",n),n},f.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},f.prototype.pipe=function(t,r){var a=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,c("pipe count=%d opts=%j",o.pipesCount,r);var s=(!r||!1!==r.end)&&t!==process$1.stdout&&t!==process$1.stderr?u:v;function l(e,i){c("onunpipe"),e===a&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,c("cleanup"),t.removeListener("close",g),t.removeListener("finish",_),t.removeListener("drain",d),t.removeListener("error",f),t.removeListener("unpipe",l),a.removeListener("end",u),a.removeListener("end",v),a.removeListener("data",m),h=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||d())}function u(){c("onend"),t.end()}o.endEmitted?e.nextTick(s):a.once("end",s),t.on("unpipe",l);var d=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&n(e,"data")&&(t.flowing=!0,A(e))}}(a);t.on("drain",d);var h=!1;var p=!1;function m(e){c("ondata"),p=!1,!1!==t.write(e)||p||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==I(o.pipes,t))&&!h&&(c("false write response, pause",o.awaitDrain),o.awaitDrain++,p=!0),a.pause())}function f(e){c("onerror",e),v(),t.removeListener("error",f),0===n(t,"error")&&t.emit("error",e)}function g(){t.removeListener("finish",_),v()}function _(){c("onfinish"),t.removeListener("close",g),v()}function v(){c("unpipe"),a.unpipe(t)}return a.on("data",m),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?i(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(t,"error",f),t.once("close",g),t.once("finish",_),t.emit("pipe",a),o.flowing||(c("pipe resume"),a.resume()),t},f.prototype.unpipe=function(e){var t=this._readableState,i={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,i)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<r;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=I(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,i)),this},f.prototype.on=function(t,i){var n=r.prototype.on.call(this,t,i);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var a=this._readableState;a.endEmitted||a.readableListening||(a.readableListening=a.needReadable=!0,a.emittedReadable=!1,a.reading?a.length&&b(this):e.nextTick(C,this))}return n},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){var t=this._readableState;return t.flowing||(c("resume"),t.flowing=!0,function(t,i){i.resumeScheduled||(i.resumeScheduled=!0,e.nextTick(T,t,i))}(this,t)),this},f.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this},f.prototype.wrap=function(e){var t=this,i=this._readableState,n=!1;for(var r in e.on("end",function(){if(c("wrapped end"),i.decoder&&!i.ended){var e=i.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(r){(c("wrapped data"),i.decoder&&(r=i.decoder.write(r)),i.objectMode&&null==r)||(i.objectMode||r&&r.length)&&(t.push(r)||(n=!0,e.pause()))}),e)void 0===this[r]&&"function"==typeof e[r]&&(this[r]=function(t){return function(){return e[t].apply(e,arguments)}}(r));for(var a=0;a<p.length;a++)e.on(p[a],this.emit.bind(this,p[a]));return this._read=function(t){c("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(f.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),f._fromList=x,_stream_readable}var _stream_transform=Transform$2,Duplex=require_stream_duplex(),util$1=Object.create(util$4);function afterTransform(e,t){var i=this._transformState;i.transforming=!1;var n=i.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));i.writechunk=null,i.writecb=null,null!=t&&this.push(t),n(e);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function Transform$2(e){if(!(this instanceof Transform$2))return new Transform$2(e);Duplex.call(this,e),this._transformState={afterTransform:afterTransform.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",prefinish)}function prefinish(){var e=this;"function"==typeof this._flush?this._flush(function(t,i){done(e,t,i)}):done(this,null,null)}function done(e,t,i){if(t)return e.emit("error",t);if(null!=i&&e.push(i),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}util$1.inherits=inherits_browserExports,util$1.inherits(Transform$2,Duplex),Transform$2.prototype.push=function(e,t){return this._transformState.needTransform=!1,Duplex.prototype.push.call(this,e,t)},Transform$2.prototype._transform=function(e,t,i){throw new Error("_transform() is not implemented")},Transform$2.prototype._write=function(e,t,i){var n=this._transformState;if(n.writecb=i,n.writechunk=e,n.writeencoding=t,!n.transforming){var r=this._readableState;(n.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},Transform$2.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},Transform$2.prototype._destroy=function(e,t){var i=this;Duplex.prototype._destroy.call(this,e,function(e){t(e),i.emit("close")})};var _stream_passthrough=PassThrough,Transform$1=_stream_transform,util=Object.create(util$4);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);Transform$1.call(this,e)}util.inherits=inherits_browserExports,util.inherits(PassThrough,Transform$1),PassThrough.prototype._transform=function(e,t,i){i(null,e)},function(e,t){(t=e.exports=require_stream_readable()).Stream=t,t.Readable=t,t.Writable=require_stream_writable(),t.Duplex=require_stream_duplex(),t.Transform=_stream_transform,t.PassThrough=_stream_passthrough}(readableBrowser,readableBrowser.exports);var readableBrowserExports=readableBrowser.exports,sign={exports:{}},BN$a=bnExports$6,randomBytes$1=browserExports,Buffer$7=safeBufferExports$2.Buffer;function getr(e){var t,i=e.modulus.byteLength();do{t=new BN$a(randomBytes$1(i))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function blind(e){var t=getr(e);return{blinder:t.toRed(BN$a.mont(e.modulus)).redPow(new BN$a(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}function crt$2(e,t){var i=blind(t),n=t.modulus.byteLength(),r=new BN$a(e).mul(i.blinder).umod(t.modulus),a=r.toRed(BN$a.mont(t.prime1)),o=r.toRed(BN$a.mont(t.prime2)),s=t.coefficient,l=t.prime1,c=t.prime2,u=a.redPow(t.exponent1).fromRed(),d=o.redPow(t.exponent2).fromRed(),h=u.isub(d).imul(s).umod(l).imul(c);return d.iadd(h).imul(i.unblinder).umod(t.modulus).toArrayLike(Buffer$7,"be",n)}crt$2.getr=getr;var browserifyRsa=crt$2,elliptic={};const version$4="6.6.1",require$$0={version:version$4};var utils$f={},bn$3={exports:{}};bn$3.exports,function(e,t){function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function r(e,t,i){if(r.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var a;"object"==typeof e?e.exports=r:t.BN=r,r.BN=r,r.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:require$$0$1.Buffer}catch(e3){}function o(e,t){var i=e.charCodeAt(t);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function s(e,t,i){var n=o(e,i);return i-1>=t&&(n|=o(e,i-1)<<4),n}function l(e,t,i,n){for(var r=0,a=Math.min(e.length,i),o=t;o<a;o++){var s=e.charCodeAt(o)-48;r*=n,r+=s>=49?s-49+10:s>=17?s-17+10:s}return r}r.isBN=function(e){return e instanceof r||null!==e&&"object"==typeof e&&e.constructor.wordSize===r.wordSize&&Array.isArray(e.words)},r.max=function(e,t){return e.cmp(t)>0?e:t},r.min=function(e,t){return e.cmp(t)<0?e:t},r.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r<e.length&&(16===t?this._parseHex(e,r,n):(this._parseBase(e,t,r),"le"===n&&this._initArray(this.toArray(),t,n)))},r.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},r.prototype._initArray=function(e,t,n){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var a,o,s=0;if("be"===n)for(r=e.length-1,a=0;r>=0;r-=3)o=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===n)for(r=0,a=0;r<e.length;r+=3)o=e[r]|e[r+1]<<8|e[r+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},r.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,a=0,o=0;if("be"===i)for(n=e.length-1;n>=t;n-=2)r=s(e,t,n)<<a,this.words[o]|=67108863&r,a>=18?(a-=18,o+=1,this.words[o]|=r>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)r=s(e,t,n)<<a,this.words[o]|=67108863&r,a>=18?(a-=18,o+=1,this.words[o]|=r>>>26):a+=8;this.strip()},r.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=t)n++;n--,r=r/t|0;for(var a=e.length-i,o=a%n,s=Math.min(a,a-o)+i,c=0,u=i;u<s;u+=n)c=l(e,u,u+n,t),this.imuln(r),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){var d=1;for(c=l(e,u,e.length,t),u=0;u<o;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this.strip()},r.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},r.prototype.clone=function(){var e=new r(null);return this.copy(e),e},r.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},r.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},r.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var r=0|e.words[0],a=0|t.words[0],o=r*a,s=67108863&o,l=o/67108864|0;i.words[0]=s;for(var c=1;c<n;c++){for(var u=l>>>26,d=67108863&l,h=Math.min(c,t.length-1),p=Math.max(0,c-e.length+1);p<=h;p++){var m=c-p|0;u+=(o=(r=0|e.words[m])*(a=0|t.words[p])+d)/67108864|0,d=67108863&o}i.words[c]=0|d,l=0|u}return 0!==l?i.words[c]=0|l:i.length--,i.strip()}r.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var r=0,a=0,o=0;o<this.length;o++){var s=this.words[o],l=(16777215&(s<<r|a)).toString(16);a=s>>>24-r&16777215,(r+=2)>=26&&(r-=26,o--),n=0!==a||o!==this.length-1?c[6-l.length]+l+n:l+n}for(0!==a&&(n=a.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var h=u[e],p=d[e];n="";var m=this.clone();for(m.negative=0;!m.isZero();){var f=m.modn(p).toString(e);n=(m=m.idivn(p)).isZero()?f+n:c[h-f.length]+f+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},r.prototype.toJSON=function(){return this.toString(16)},r.prototype.toBuffer=function(e,t){return i(void 0!==a),this.toArrayLike(a,e,t)},r.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},r.prototype.toArrayLike=function(e,t,n){var r=this.byteLength(),a=n||Math.max(1,r);i(r<=a,"byte array longer than desired length"),i(a>0,"Requested array length <= 0"),this.strip();var o,s,l="le"===t,c=new e(a),u=this.clone();if(l){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[s]=o;for(;s<a;s++)c[s]=0}else{for(s=0;s<a-r;s++)c[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[a-s-1]=o}return c},Math.clz32?r.prototype._countBits=function(e){return 32-Math.clz32(e)}:r.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},r.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 8191&t||(i+=13,t>>>=13),127&t||(i+=7,t>>>=7),15&t||(i+=4,t>>>=4),3&t||(i+=2,t>>>=2),1&t||i++,i},r.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,26!==i)break}return e},r.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},r.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},r.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},r.prototype.isNeg=function(){return 0!==this.negative},r.prototype.neg=function(){return this.clone().ineg()},r.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},r.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},r.prototype.ior=function(e){return i(0===(this.negative|e.negative)),this.iuor(e)},r.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},r.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},r.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this.strip()},r.prototype.iand=function(e){return i(0===(this.negative|e.negative)),this.iuand(e)},r.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},r.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},r.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=t.words[n]^i.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},r.prototype.ixor=function(e){return i(0===(this.negative|e.negative)),this.iuxor(e)},r.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},r.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},r.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return n>0&&(this.words[r]=~this.words[r]&67108863>>26-n),this.strip()},r.prototype.notn=function(e){return this.clone().inotn(e)},r.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var n=e/26|0,r=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<r:this.words[n]&~(1<<r),this.strip()},r.prototype.iadd=function(e){var t,i,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var r=0,a=0;a<n.length;a++)t=(0|i.words[a])+(0|n.words[a])+r,this.words[a]=67108863&t,r=t>>>26;for(;0!==r&&a<i.length;a++)t=(0|i.words[a])+r,this.words[a]=67108863&t,r=t>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this},r.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},r.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=e):(i=e,n=this);for(var a=0,o=0;o<n.length;o++)a=(t=(0|i.words[o])-(0|n.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<i.length;o++)a=(t=(0|i.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<i.length&&i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this.length=Math.max(this.length,o),i!==this&&(this.negative=1),this.strip()},r.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,i){var n,r,a,o=e.words,s=t.words,l=i.words,c=0,u=0|o[0],d=8191&u,h=u>>>13,p=0|o[1],m=8191&p,f=p>>>13,g=0|o[2],_=8191&g,v=g>>>13,y=0|o[3],b=8191&y,S=y>>>13,E=0|o[4],w=8191&E,C=E>>>13,T=0|o[5],A=8191&T,x=T>>>13,M=0|o[6],R=8191&M,I=M>>>13,k=0|o[7],N=8191&k,O=k>>>13,D=0|o[8],L=8191&D,P=D>>>13,B=0|o[9],F=8191&B,$=B>>>13,U=0|s[0],G=8191&U,Y=U>>>13,z=0|s[1],H=8191&z,q=z>>>13,V=0|s[2],j=8191&V,J=V>>>13,W=0|s[3],K=8191&W,Q=W>>>13,Z=0|s[4],X=8191&Z,ee=Z>>>13,te=0|s[5],ie=8191&te,ne=te>>>13,re=0|s[6],ae=8191&re,oe=re>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],de=8191&ue,he=ue>>>13,pe=0|s[9],me=8191&pe,fe=pe>>>13;i.negative=e.negative^t.negative,i.length=19;var ge=(c+(n=Math.imul(d,G))|0)+((8191&(r=(r=Math.imul(d,Y))+Math.imul(h,G)|0))<<13)|0;c=((a=Math.imul(h,Y))+(r>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(m,G),r=(r=Math.imul(m,Y))+Math.imul(f,G)|0,a=Math.imul(f,Y);var _e=(c+(n=n+Math.imul(d,H)|0)|0)+((8191&(r=(r=r+Math.imul(d,q)|0)+Math.imul(h,H)|0))<<13)|0;c=((a=a+Math.imul(h,q)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(_,G),r=(r=Math.imul(_,Y))+Math.imul(v,G)|0,a=Math.imul(v,Y),n=n+Math.imul(m,H)|0,r=(r=r+Math.imul(m,q)|0)+Math.imul(f,H)|0,a=a+Math.imul(f,q)|0;var ve=(c+(n=n+Math.imul(d,j)|0)|0)+((8191&(r=(r=r+Math.imul(d,J)|0)+Math.imul(h,j)|0))<<13)|0;c=((a=a+Math.imul(h,J)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(b,G),r=(r=Math.imul(b,Y))+Math.imul(S,G)|0,a=Math.imul(S,Y),n=n+Math.imul(_,H)|0,r=(r=r+Math.imul(_,q)|0)+Math.imul(v,H)|0,a=a+Math.imul(v,q)|0,n=n+Math.imul(m,j)|0,r=(r=r+Math.imul(m,J)|0)+Math.imul(f,j)|0,a=a+Math.imul(f,J)|0;var ye=(c+(n=n+Math.imul(d,K)|0)|0)+((8191&(r=(r=r+Math.imul(d,Q)|0)+Math.imul(h,K)|0))<<13)|0;c=((a=a+Math.imul(h,Q)|0)+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(w,G),r=(r=Math.imul(w,Y))+Math.imul(C,G)|0,a=Math.imul(C,Y),n=n+Math.imul(b,H)|0,r=(r=r+Math.imul(b,q)|0)+Math.imul(S,H)|0,a=a+Math.imul(S,q)|0,n=n+Math.imul(_,j)|0,r=(r=r+Math.imul(_,J)|0)+Math.imul(v,j)|0,a=a+Math.imul(v,J)|0,n=n+Math.imul(m,K)|0,r=(r=r+Math.imul(m,Q)|0)+Math.imul(f,K)|0,a=a+Math.imul(f,Q)|0;var be=(c+(n=n+Math.imul(d,X)|0)|0)+((8191&(r=(r=r+Math.imul(d,ee)|0)+Math.imul(h,X)|0))<<13)|0;c=((a=a+Math.imul(h,ee)|0)+(r>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(A,G),r=(r=Math.imul(A,Y))+Math.imul(x,G)|0,a=Math.imul(x,Y),n=n+Math.imul(w,H)|0,r=(r=r+Math.imul(w,q)|0)+Math.imul(C,H)|0,a=a+Math.imul(C,q)|0,n=n+Math.imul(b,j)|0,r=(r=r+Math.imul(b,J)|0)+Math.imul(S,j)|0,a=a+Math.imul(S,J)|0,n=n+Math.imul(_,K)|0,r=(r=r+Math.imul(_,Q)|0)+Math.imul(v,K)|0,a=a+Math.imul(v,Q)|0,n=n+Math.imul(m,X)|0,r=(r=r+Math.imul(m,ee)|0)+Math.imul(f,X)|0,a=a+Math.imul(f,ee)|0;var Se=(c+(n=n+Math.imul(d,ie)|0)|0)+((8191&(r=(r=r+Math.imul(d,ne)|0)+Math.imul(h,ie)|0))<<13)|0;c=((a=a+Math.imul(h,ne)|0)+(r>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(R,G),r=(r=Math.imul(R,Y))+Math.imul(I,G)|0,a=Math.imul(I,Y),n=n+Math.imul(A,H)|0,r=(r=r+Math.imul(A,q)|0)+Math.imul(x,H)|0,a=a+Math.imul(x,q)|0,n=n+Math.imul(w,j)|0,r=(r=r+Math.imul(w,J)|0)+Math.imul(C,j)|0,a=a+Math.imul(C,J)|0,n=n+Math.imul(b,K)|0,r=(r=r+Math.imul(b,Q)|0)+Math.imul(S,K)|0,a=a+Math.imul(S,Q)|0,n=n+Math.imul(_,X)|0,r=(r=r+Math.imul(_,ee)|0)+Math.imul(v,X)|0,a=a+Math.imul(v,ee)|0,n=n+Math.imul(m,ie)|0,r=(r=r+Math.imul(m,ne)|0)+Math.imul(f,ie)|0,a=a+Math.imul(f,ne)|0;var Ee=(c+(n=n+Math.imul(d,ae)|0)|0)+((8191&(r=(r=r+Math.imul(d,oe)|0)+Math.imul(h,ae)|0))<<13)|0;c=((a=a+Math.imul(h,oe)|0)+(r>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(N,G),r=(r=Math.imul(N,Y))+Math.imul(O,G)|0,a=Math.imul(O,Y),n=n+Math.imul(R,H)|0,r=(r=r+Math.imul(R,q)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,q)|0,n=n+Math.imul(A,j)|0,r=(r=r+Math.imul(A,J)|0)+Math.imul(x,j)|0,a=a+Math.imul(x,J)|0,n=n+Math.imul(w,K)|0,r=(r=r+Math.imul(w,Q)|0)+Math.imul(C,K)|0,a=a+Math.imul(C,Q)|0,n=n+Math.imul(b,X)|0,r=(r=r+Math.imul(b,ee)|0)+Math.imul(S,X)|0,a=a+Math.imul(S,ee)|0,n=n+Math.imul(_,ie)|0,r=(r=r+Math.imul(_,ne)|0)+Math.imul(v,ie)|0,a=a+Math.imul(v,ne)|0,n=n+Math.imul(m,ae)|0,r=(r=r+Math.imul(m,oe)|0)+Math.imul(f,ae)|0,a=a+Math.imul(f,oe)|0;var we=(c+(n=n+Math.imul(d,le)|0)|0)+((8191&(r=(r=r+Math.imul(d,ce)|0)+Math.imul(h,le)|0))<<13)|0;c=((a=a+Math.imul(h,ce)|0)+(r>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(L,G),r=(r=Math.imul(L,Y))+Math.imul(P,G)|0,a=Math.imul(P,Y),n=n+Math.imul(N,H)|0,r=(r=r+Math.imul(N,q)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,q)|0,n=n+Math.imul(R,j)|0,r=(r=r+Math.imul(R,J)|0)+Math.imul(I,j)|0,a=a+Math.imul(I,J)|0,n=n+Math.imul(A,K)|0,r=(r=r+Math.imul(A,Q)|0)+Math.imul(x,K)|0,a=a+Math.imul(x,Q)|0,n=n+Math.imul(w,X)|0,r=(r=r+Math.imul(w,ee)|0)+Math.imul(C,X)|0,a=a+Math.imul(C,ee)|0,n=n+Math.imul(b,ie)|0,r=(r=r+Math.imul(b,ne)|0)+Math.imul(S,ie)|0,a=a+Math.imul(S,ne)|0,n=n+Math.imul(_,ae)|0,r=(r=r+Math.imul(_,oe)|0)+Math.imul(v,ae)|0,a=a+Math.imul(v,oe)|0,n=n+Math.imul(m,le)|0,r=(r=r+Math.imul(m,ce)|0)+Math.imul(f,le)|0,a=a+Math.imul(f,ce)|0;var Ce=(c+(n=n+Math.imul(d,de)|0)|0)+((8191&(r=(r=r+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;c=((a=a+Math.imul(h,he)|0)+(r>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(F,G),r=(r=Math.imul(F,Y))+Math.imul($,G)|0,a=Math.imul($,Y),n=n+Math.imul(L,H)|0,r=(r=r+Math.imul(L,q)|0)+Math.imul(P,H)|0,a=a+Math.imul(P,q)|0,n=n+Math.imul(N,j)|0,r=(r=r+Math.imul(N,J)|0)+Math.imul(O,j)|0,a=a+Math.imul(O,J)|0,n=n+Math.imul(R,K)|0,r=(r=r+Math.imul(R,Q)|0)+Math.imul(I,K)|0,a=a+Math.imul(I,Q)|0,n=n+Math.imul(A,X)|0,r=(r=r+Math.imul(A,ee)|0)+Math.imul(x,X)|0,a=a+Math.imul(x,ee)|0,n=n+Math.imul(w,ie)|0,r=(r=r+Math.imul(w,ne)|0)+Math.imul(C,ie)|0,a=a+Math.imul(C,ne)|0,n=n+Math.imul(b,ae)|0,r=(r=r+Math.imul(b,oe)|0)+Math.imul(S,ae)|0,a=a+Math.imul(S,oe)|0,n=n+Math.imul(_,le)|0,r=(r=r+Math.imul(_,ce)|0)+Math.imul(v,le)|0,a=a+Math.imul(v,ce)|0,n=n+Math.imul(m,de)|0,r=(r=r+Math.imul(m,he)|0)+Math.imul(f,de)|0,a=a+Math.imul(f,he)|0;var Te=(c+(n=n+Math.imul(d,me)|0)|0)+((8191&(r=(r=r+Math.imul(d,fe)|0)+Math.imul(h,me)|0))<<13)|0;c=((a=a+Math.imul(h,fe)|0)+(r>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(F,H),r=(r=Math.imul(F,q))+Math.imul($,H)|0,a=Math.imul($,q),n=n+Math.imul(L,j)|0,r=(r=r+Math.imul(L,J)|0)+Math.imul(P,j)|0,a=a+Math.imul(P,J)|0,n=n+Math.imul(N,K)|0,r=(r=r+Math.imul(N,Q)|0)+Math.imul(O,K)|0,a=a+Math.imul(O,Q)|0,n=n+Math.imul(R,X)|0,r=(r=r+Math.imul(R,ee)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,ee)|0,n=n+Math.imul(A,ie)|0,r=(r=r+Math.imul(A,ne)|0)+Math.imul(x,ie)|0,a=a+Math.imul(x,ne)|0,n=n+Math.imul(w,ae)|0,r=(r=r+Math.imul(w,oe)|0)+Math.imul(C,ae)|0,a=a+Math.imul(C,oe)|0,n=n+Math.imul(b,le)|0,r=(r=r+Math.imul(b,ce)|0)+Math.imul(S,le)|0,a=a+Math.imul(S,ce)|0,n=n+Math.imul(_,de)|0,r=(r=r+Math.imul(_,he)|0)+Math.imul(v,de)|0,a=a+Math.imul(v,he)|0;var Ae=(c+(n=n+Math.imul(m,me)|0)|0)+((8191&(r=(r=r+Math.imul(m,fe)|0)+Math.imul(f,me)|0))<<13)|0;c=((a=a+Math.imul(f,fe)|0)+(r>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(F,j),r=(r=Math.imul(F,J))+Math.imul($,j)|0,a=Math.imul($,J),n=n+Math.imul(L,K)|0,r=(r=r+Math.imul(L,Q)|0)+Math.imul(P,K)|0,a=a+Math.imul(P,Q)|0,n=n+Math.imul(N,X)|0,r=(r=r+Math.imul(N,ee)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,ee)|0,n=n+Math.imul(R,ie)|0,r=(r=r+Math.imul(R,ne)|0)+Math.imul(I,ie)|0,a=a+Math.imul(I,ne)|0,n=n+Math.imul(A,ae)|0,r=(r=r+Math.imul(A,oe)|0)+Math.imul(x,ae)|0,a=a+Math.imul(x,oe)|0,n=n+Math.imul(w,le)|0,r=(r=r+Math.imul(w,ce)|0)+Math.imul(C,le)|0,a=a+Math.imul(C,ce)|0,n=n+Math.imul(b,de)|0,r=(r=r+Math.imul(b,he)|0)+Math.imul(S,de)|0,a=a+Math.imul(S,he)|0;var xe=(c+(n=n+Math.imul(_,me)|0)|0)+((8191&(r=(r=r+Math.imul(_,fe)|0)+Math.imul(v,me)|0))<<13)|0;c=((a=a+Math.imul(v,fe)|0)+(r>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(F,K),r=(r=Math.imul(F,Q))+Math.imul($,K)|0,a=Math.imul($,Q),n=n+Math.imul(L,X)|0,r=(r=r+Math.imul(L,ee)|0)+Math.imul(P,X)|0,a=a+Math.imul(P,ee)|0,n=n+Math.imul(N,ie)|0,r=(r=r+Math.imul(N,ne)|0)+Math.imul(O,ie)|0,a=a+Math.imul(O,ne)|0,n=n+Math.imul(R,ae)|0,r=(r=r+Math.imul(R,oe)|0)+Math.imul(I,ae)|0,a=a+Math.imul(I,oe)|0,n=n+Math.imul(A,le)|0,r=(r=r+Math.imul(A,ce)|0)+Math.imul(x,le)|0,a=a+Math.imul(x,ce)|0,n=n+Math.imul(w,de)|0,r=(r=r+Math.imul(w,he)|0)+Math.imul(C,de)|0,a=a+Math.imul(C,he)|0;var Me=(c+(n=n+Math.imul(b,me)|0)|0)+((8191&(r=(r=r+Math.imul(b,fe)|0)+Math.imul(S,me)|0))<<13)|0;c=((a=a+Math.imul(S,fe)|0)+(r>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(F,X),r=(r=Math.imul(F,ee))+Math.imul($,X)|0,a=Math.imul($,ee),n=n+Math.imul(L,ie)|0,r=(r=r+Math.imul(L,ne)|0)+Math.imul(P,ie)|0,a=a+Math.imul(P,ne)|0,n=n+Math.imul(N,ae)|0,r=(r=r+Math.imul(N,oe)|0)+Math.imul(O,ae)|0,a=a+Math.imul(O,oe)|0,n=n+Math.imul(R,le)|0,r=(r=r+Math.imul(R,ce)|0)+Math.imul(I,le)|0,a=a+Math.imul(I,ce)|0,n=n+Math.imul(A,de)|0,r=(r=r+Math.imul(A,he)|0)+Math.imul(x,de)|0,a=a+Math.imul(x,he)|0;var Re=(c+(n=n+Math.imul(w,me)|0)|0)+((8191&(r=(r=r+Math.imul(w,fe)|0)+Math.imul(C,me)|0))<<13)|0;c=((a=a+Math.imul(C,fe)|0)+(r>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(F,ie),r=(r=Math.imul(F,ne))+Math.imul($,ie)|0,a=Math.imul($,ne),n=n+Math.imul(L,ae)|0,r=(r=r+Math.imul(L,oe)|0)+Math.imul(P,ae)|0,a=a+Math.imul(P,oe)|0,n=n+Math.imul(N,le)|0,r=(r=r+Math.imul(N,ce)|0)+Math.imul(O,le)|0,a=a+Math.imul(O,ce)|0,n=n+Math.imul(R,de)|0,r=(r=r+Math.imul(R,he)|0)+Math.imul(I,de)|0,a=a+Math.imul(I,he)|0;var Ie=(c+(n=n+Math.imul(A,me)|0)|0)+((8191&(r=(r=r+Math.imul(A,fe)|0)+Math.imul(x,me)|0))<<13)|0;c=((a=a+Math.imul(x,fe)|0)+(r>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(F,ae),r=(r=Math.imul(F,oe))+Math.imul($,ae)|0,a=Math.imul($,oe),n=n+Math.imul(L,le)|0,r=(r=r+Math.imul(L,ce)|0)+Math.imul(P,le)|0,a=a+Math.imul(P,ce)|0,n=n+Math.imul(N,de)|0,r=(r=r+Math.imul(N,he)|0)+Math.imul(O,de)|0,a=a+Math.imul(O,he)|0;var ke=(c+(n=n+Math.imul(R,me)|0)|0)+((8191&(r=(r=r+Math.imul(R,fe)|0)+Math.imul(I,me)|0))<<13)|0;c=((a=a+Math.imul(I,fe)|0)+(r>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(F,le),r=(r=Math.imul(F,ce))+Math.imul($,le)|0,a=Math.imul($,ce),n=n+Math.imul(L,de)|0,r=(r=r+Math.imul(L,he)|0)+Math.imul(P,de)|0,a=a+Math.imul(P,he)|0;var Ne=(c+(n=n+Math.imul(N,me)|0)|0)+((8191&(r=(r=r+Math.imul(N,fe)|0)+Math.imul(O,me)|0))<<13)|0;c=((a=a+Math.imul(O,fe)|0)+(r>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(F,de),r=(r=Math.imul(F,he))+Math.imul($,de)|0,a=Math.imul($,he);var Oe=(c+(n=n+Math.imul(L,me)|0)|0)+((8191&(r=(r=r+Math.imul(L,fe)|0)+Math.imul(P,me)|0))<<13)|0;c=((a=a+Math.imul(P,fe)|0)+(r>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var De=(c+(n=Math.imul(F,me))|0)+((8191&(r=(r=Math.imul(F,fe))+Math.imul($,me)|0))<<13)|0;return c=((a=Math.imul($,fe))+(r>>>13)|0)+(De>>>26)|0,De&=67108863,l[0]=ge,l[1]=_e,l[2]=ve,l[3]=ye,l[4]=be,l[5]=Se,l[6]=Ee,l[7]=we,l[8]=Ce,l[9]=Te,l[10]=Ae,l[11]=xe,l[12]=Me,l[13]=Re,l[14]=Ie,l[15]=ke,l[16]=Ne,l[17]=Oe,l[18]=De,0!==c&&(l[19]=c,i.length++),i};function m(e,t,i){return(new f).mulp(e,t,i)}function f(e,t){this.x=e,this.y=t}Math.imul||(p=h),r.prototype.mulTo=function(e,t){var i,n=this.length+e.length;return i=10===this.length&&10===e.length?p(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,r=0,a=0;a<i.length-1;a++){var o=r;r=0;for(var s=67108863&n,l=Math.min(a,t.length-1),c=Math.max(0,a-e.length+1);c<=l;c++){var u=a-c,d=(0|e.words[u])*(0|t.words[c]),h=67108863&d;s=67108863&(h=h+s|0),r+=(o=(o=o+(d/67108864|0)|0)+(h>>>26)|0)>>>26,o&=67108863}i.words[a]=s,n=o,o=r}return 0!==n?i.words[a]=n:i.length--,i.strip()}(this,e,t):m(this,e,t),i},f.prototype.makeRBT=function(e){for(var t=new Array(e),i=r.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,i,e);return t},f.prototype.revBin=function(e,t,i){if(0===e||e===i-1)return e;for(var n=0,r=0;r<t;r++)n|=(1&e)<<t-r-1,e>>=1;return n},f.prototype.permute=function(e,t,i,n,r,a){for(var o=0;o<a;o++)n[o]=t[e[o]],r[o]=i[e[o]]},f.prototype.transform=function(e,t,i,n,r,a){this.permute(a,e,t,i,n,r);for(var o=1;o<r;o<<=1)for(var s=o<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<r;u+=s)for(var d=l,h=c,p=0;p<o;p++){var m=i[u+p],f=n[u+p],g=i[u+p+o],_=n[u+p+o],v=d*g-h*_;_=d*_+h*g,g=v,i[u+p]=m+g,n[u+p]=f+_,i[u+p+o]=m-g,n[u+p+o]=f-_,p!==s&&(v=l*d-c*h,h=l*h+c*d,d=v)}},f.prototype.guessLen13b=function(e,t){var i=1|Math.max(t,e),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},f.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=e[n];e[n]=e[i-n-1],e[i-n-1]=r,r=t[n],t[n]=-t[i-n-1],t[i-n-1]=-r}},f.prototype.normalize13b=function(e,t){for(var i=0,n=0;n<t/2;n++){var r=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+i;e[n]=67108863&r,i=r<67108864?0:r/67108864|0}return e},f.prototype.convert13b=function(e,t,n,r){for(var a=0,o=0;o<t;o++)a+=0|e[o],n[2*o]=8191&a,a>>>=13,n[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<r;++o)n[o]=0;i(0===a),i(!(-8192&a))},f.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},f.prototype.mulp=function(e,t,i){var n=2*this.guessLen13b(e.length,t.length),r=this.makeRBT(n),a=this.stub(n),o=new Array(n),s=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),d=new Array(n),h=i.words;h.length=n,this.convert13b(e.words,e.length,o,n),this.convert13b(t.words,t.length,c,n),this.transform(o,a,s,l,n,r),this.transform(c,a,u,d,n,r);for(var p=0;p<n;p++){var m=s[p]*u[p]-l[p]*d[p];l[p]=s[p]*d[p]+l[p]*u[p],s[p]=m}return this.conjugate(s,l,n),this.transform(s,l,h,a,n,r),this.conjugate(h,a,n),this.normalize13b(h,n),i.negative=e.negative^t.negative,i.length=e.length+t.length,i.strip()},r.prototype.mul=function(e){var t=new r(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},r.prototype.mulf=function(e){var t=new r(null);return t.words=new Array(this.length+e.length),m(this,e,t)},r.prototype.imul=function(e){return this.clone().mulTo(e,this)},r.prototype.imuln=function(e){i("number"==typeof e),i(e<67108864);for(var t=0,n=0;n<this.length;n++){var r=(0|this.words[n])*e,a=(67108863&r)+(67108863&t);t>>=26,t+=r/67108864|0,t+=a>>>26,this.words[n]=67108863&a}return 0!==t&&(this.words[n]=t,this.length++),this.length=0===e?1:this.length,this},r.prototype.muln=function(e){return this.clone().imuln(e)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i<t.length;i++){var n=i/26|0,r=i%26;t[i]=(e.words[n]&1<<r)>>>r}return t}(e);if(0===t.length)return new r(1);for(var i=this,n=0;n<t.length&&0===t[n];n++,i=i.sqr());if(++n<t.length)for(var a=i.sqr();n<t.length;n++,a=a.sqr())0!==t[n]&&(i=i.mul(a));return i},r.prototype.iushln=function(e){i("number"==typeof e&&e>=0);var t,n=e%26,r=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,l=(0|this.words[t])-s<<n;this.words[t]=l|o,o=s>>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t<r;t++)this.words[t]=0;this.length+=r}return this.strip()},r.prototype.ishln=function(e){return i(0===this.negative),this.iushln(e)},r.prototype.iushrn=function(e,t,n){var r;i("number"==typeof e&&e>=0),r=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,l=n;if(r-=o,r=Math.max(0,r),l){for(var c=0;c<o;c++)l.words[c]=this.words[c];l.length=o}if(0===o);else if(this.length>o)for(this.length-=o,c=0;c<this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=r);c--){var d=0|this.words[c];this.words[c]=u<<26-a|d>>>a,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.ishrn=function(e,t,n){return i(0===this.negative),this.iushrn(e,t,n)},r.prototype.shln=function(e){return this.clone().ishln(e)},r.prototype.ushln=function(e){return this.clone().iushln(e)},r.prototype.shrn=function(e){return this.clone().ishrn(e)},r.prototype.ushrn=function(e){return this.clone().iushrn(e)},r.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,r=1<<t;return!(this.length<=n||!(this.words[n]&r))},r.prototype.imaskn=function(e){i("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var r=67108863^67108863>>>t<<t;this.words[this.length-1]&=r}return this.strip()},r.prototype.maskn=function(e){return this.clone().imaskn(e)},r.prototype.iaddn=function(e){return i("number"==typeof e),i(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},r.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},r.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},r.prototype.addn=function(e){return this.clone().iaddn(e)},r.prototype.subn=function(e){return this.clone().isubn(e)},r.prototype.iabs=function(){return this.negative=0,this},r.prototype.abs=function(){return this.clone().iabs()},r.prototype._ishlnsubmul=function(e,t,n){var r,a,o=e.length+n;this._expand(o);var s=0;for(r=0;r<e.length;r++){a=(0|this.words[r+n])+s;var l=(0|e.words[r])*t;s=((a-=67108863&l)>>26)-(l/67108864|0),this.words[r+n]=67108863&a}for(;r<this.length-n;r++)s=(a=(0|this.words[r+n])+s)>>26,this.words[r+n]=67108863&a;if(0===s)return this.strip();for(i(-1===s),s=0,r=0;r<this.length;r++)s=(a=-(0|this.words[r])+s)>>26,this.words[r]=67108863&a;return this.negative=1,this.strip()},r.prototype._wordDiv=function(e,t){var i=(this.length,e.length),n=this.clone(),a=e,o=0|a.words[a.length-1];0!=(i=26-this._countBits(o))&&(a=a.ushln(i),n.iushln(i),o=0|a.words[a.length-1]);var s,l=n.length-a.length;if("mod"!==t){(s=new r(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(a,1,l);0===u.negative&&(n=u,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var h=67108864*(0|n.words[a.length+d])+(0|n.words[a.length+d-1]);for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(a,h,d);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(a,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=h)}return s&&s.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:s||null,mod:n}},r.prototype.divmod=function(e,t,n){return i(!e.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new r(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new r(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new r(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},r.prototype.div=function(e){return this.divmod(e,"div",!1).div},r.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},r.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},r.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),r=e.andln(1),a=i.cmp(n);return a<0||1===r&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},r.prototype.modn=function(e){i(e<=67108863);for(var t=(1<<26)%e,n=0,r=this.length-1;r>=0;r--)n=(t*n+(0|this.words[r]))%e;return n},r.prototype.idivn=function(e){i(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var r=(0|this.words[n])+67108864*t;this.words[n]=r/e|0,t=r%e}return this.strip()},r.prototype.divn=function(e){return this.clone().idivn(e)},r.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new r(1),o=new r(0),s=new r(0),l=new r(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var h=0,p=1;0===(t.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(u),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var m=0,f=1;0===(n.words[0]&f)&&m<26;++m,f<<=1);if(m>0)for(n.iushrn(m);m-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(l)):(n.isub(t),s.isub(a),l.isub(o))}return{a:s,b:l,gcd:n.iushln(c)}},r.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new r(1),s=new r(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0===(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var d=0,h=1;0===(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},r.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=t.cmp(i);if(r<0){var a=t;t=i,i=a}else if(0===r||0===i.cmpn(1))break;t.isub(i)}return i.iushln(n)},r.prototype.invm=function(e){return this.egcd(e).a.umod(e)},r.prototype.isEven=function(){return!(1&this.words[0])},r.prototype.isOdd=function(){return!(1&~this.words[0])},r.prototype.andln=function(e){return this.words[0]&e},r.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,n=(e-t)/26,r=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=r,this;for(var a=r,o=n;0!==a&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),i(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:r<e?-1:1}return 0!==this.negative?0|-t:t},r.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},r.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|e.words[i];if(n!==r){n<r?t=-1:n>r&&(t=1);break}}return t},r.prototype.gtn=function(e){return 1===this.cmpn(e)},r.prototype.gt=function(e){return 1===this.cmp(e)},r.prototype.gten=function(e){return this.cmpn(e)>=0},r.prototype.gte=function(e){return this.cmp(e)>=0},r.prototype.ltn=function(e){return-1===this.cmpn(e)},r.prototype.lt=function(e){return-1===this.cmp(e)},r.prototype.lten=function(e){return this.cmpn(e)<=0},r.prototype.lte=function(e){return this.cmp(e)<=0},r.prototype.eqn=function(e){return 0===this.cmpn(e)},r.prototype.eq=function(e){return 0===this.cmp(e)},r.red=function(e){return new E(e)},r.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},r.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(e){return this.red=e,this},r.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},r.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},r.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},r.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},r.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},r.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},r.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},r.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},r.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new r(t,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=r._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function w(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var e=new r(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},n(v,_),v.prototype.split=function(e,t){for(var i=4194303,n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var a=e.words[9];for(t.words[t.length++]=a&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(o&i)<<4|a>>>22,a=o}a>>>=22,e.words[r-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=0|e.words[i];t+=977*n,e.words[i]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(y,_),n(b,_),n(S,_),S.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+t,r=67108863&n;n>>>=26,e.words[i]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},r._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new b;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return g[e]=t,t},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){i(0===(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},E.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var n=this.m.add(new r(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);i(!a.isZero());var s=new r(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new r(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,a),h=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),m=o;0!==p.cmp(s);){for(var f=p,g=0;0!==f.cmp(s);g++)f=f.redSqr();i(g<m);var _=this.pow(d,new r(1).iushln(m-g-1));h=h.redMul(_),d=_.redSqr(),p=p.redMul(d),m=g}return h},E.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},E.prototype.pow=function(e,t){if(t.isZero())return new r(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=new Array(16);i[0]=new r(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var a=i[0],o=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],u=l-1;u>=0;u--){var d=c>>u&1;a!==i[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4===++s||0===n&&0===u)&&(a=this.mul(a,i[o]),s=0,o=0)):s=0}l=26}return a},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},r.mont=function(e){return new w(e)},n(w,E),w.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},w.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},w.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a._forceRed(this)},w.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new r(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=i.isub(n).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},w.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(bn$3,commonjsGlobal);var bnExports$3=bn$3.exports,utils$e={},utils2,BN2,minAssert,minUtils;!function(e){var t=utils$e;function i(e){return 1===e.length?"0"+e:e}function n(e){for(var t="",n=0;n<e.length;n++)t+=i(e[n].toString(16));return t}t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var i=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)i[n]=0|e[n];return i}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(n=0;n<e.length;n+=2)i.push(parseInt(e[n]+e[n+1],16))}else for(n=0;n<e.length;n++){var r=e.charCodeAt(n),a=r>>8,o=255&r;a?i.push(a,o):i.push(o)}return i},t.zero2=i,t.toHex=n,t.encode=function(e,t){return"hex"===t?n(e):e}}(),utils2=utils$f,BN2=bnExports$3,minAssert=minimalisticAssert,minUtils=utils$e,utils2.assert=minAssert,utils2.toArray=minUtils.toArray,utils2.zero2=minUtils.zero2,utils2.toHex=minUtils.toHex,utils2.encode=minUtils.encode,utils2.getNAF=function(e,t,i){var n,r=new Array(Math.max(e.bitLength(),i)+1);for(n=0;n<r.length;n+=1)r[n]=0;var a=1<<t+1,o=e.clone();for(n=0;n<r.length;n++){var s,l=o.andln(a-1);o.isOdd()?(s=l>(a>>1)-1?(a>>1)-l:l,o.isubn(s)):s=0,r[n]=s,o.iushrn(1)}return r},utils2.getJSF=function(e,t){var i=[[],[]];e=e.clone(),t=t.clone();for(var n,r=0,a=0;e.cmpn(-r)>0||t.cmpn(-a)>0;){var o,s,l=e.andln(3)+r&3,c=t.andln(3)+a&3;3===l&&(l=-1),3===c&&(c=-1),o=1&l?3!=(n=e.andln(7)+r&7)&&5!==n||2!==c?l:-l:0,i[0].push(o),s=1&c?3!=(n=t.andln(7)+a&7)&&5!==n||2!==l?c:-c:0,i[1].push(s),2*r===o+1&&(r=1-r),2*a===s+1&&(a=1-a),e.iushrn(1),t.iushrn(1)}return i},utils2.cachedProperty=function(e,t,i){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=i.call(this)}},utils2.parseBytes=function(e){return"string"==typeof e?utils2.toArray(e,"hex"):e},utils2.intFromLE=function(e){return new BN2(e,"hex","le")};var curve={},BN$9=bnExports$3,utils$d=utils$f,getNAF=utils$d.getNAF,getJSF=utils$d.getJSF,assert$9=utils$d.assert;function BaseCurve(e,t){this.type=e,this.p=new BN$9(t.p,16),this.red=t.prime?BN$9.red(t.prime):BN$9.mont(this.p),this.zero=new BN$9(0).toRed(this.red),this.one=new BN$9(1).toRed(this.red),this.two=new BN$9(2).toRed(this.red),this.n=t.n&&new BN$9(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var i=this.n&&this.p.div(this.n);!i||i.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var base$2=BaseCurve;function BasePoint(e,t){this.curve=e,this.type=t,this.precomputed=null}BaseCurve.prototype.point=function(){throw new Error("Not implemented")},BaseCurve.prototype.validate=function(){throw new Error("Not implemented")},BaseCurve.prototype._fixedNafMul=function(e,t){assert$9(e.precomputed);var i=e._getDoubles(),n=getNAF(t,1,this._bitLength),r=(1<<i.step+1)-(i.step%2==0?2:1);r/=3;var a,o,s=[];for(a=0;a<n.length;a+=i.step){o=0;for(var l=a+i.step-1;l>=a;l--)o=(o<<1)+n[l];s.push(o)}for(var c=this.jpoint(null,null,null),u=this.jpoint(null,null,null),d=r;d>0;d--){for(a=0;a<s.length;a++)(o=s[a])===d?u=u.mixedAdd(i.points[a]):o===-d&&(u=u.mixedAdd(i.points[a].neg()));c=c.add(u)}return c.toP()},BaseCurve.prototype._wnafMul=function(e,t){var i=4,n=e._getNAFPoints(i);i=n.wnd;for(var r=n.points,a=getNAF(t,i,this._bitLength),o=this.jpoint(null,null,null),s=a.length-1;s>=0;s--){for(var l=0;s>=0&&0===a[s];s--)l++;if(s>=0&&l++,o=o.dblp(l),s<0)break;var c=a[s];assert$9(0!==c),o="affine"===e.type?c>0?o.mixedAdd(r[c-1>>1]):o.mixedAdd(r[-c-1>>1].neg()):c>0?o.add(r[c-1>>1]):o.add(r[-c-1>>1].neg())}return"affine"===e.type?o.toP():o},BaseCurve.prototype._wnafMulAdd=function(e,t,i,n,r){var a,o,s,l=this._wnafT1,c=this._wnafT2,u=this._wnafT3,d=0;for(a=0;a<n;a++){var h=(s=t[a])._getNAFPoints(e);l[a]=h.wnd,c[a]=h.points}for(a=n-1;a>=1;a-=2){var p=a-1,m=a;if(1===l[p]&&1===l[m]){var f=[t[p],null,null,t[m]];0===t[p].y.cmp(t[m].y)?(f[1]=t[p].add(t[m]),f[2]=t[p].toJ().mixedAdd(t[m].neg())):0===t[p].y.cmp(t[m].y.redNeg())?(f[1]=t[p].toJ().mixedAdd(t[m]),f[2]=t[p].add(t[m].neg())):(f[1]=t[p].toJ().mixedAdd(t[m]),f[2]=t[p].toJ().mixedAdd(t[m].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],_=getJSF(i[p],i[m]);for(d=Math.max(_[0].length,d),u[p]=new Array(d),u[m]=new Array(d),o=0;o<d;o++){var v=0|_[0][o],y=0|_[1][o];u[p][o]=g[3*(v+1)+(y+1)],u[m][o]=0,c[p]=f}}else u[p]=getNAF(i[p],l[p],this._bitLength),u[m]=getNAF(i[m],l[m],this._bitLength),d=Math.max(u[p].length,d),d=Math.max(u[m].length,d)}var b=this.jpoint(null,null,null),S=this._wnafT4;for(a=d;a>=0;a--){for(var E=0;a>=0;){var w=!0;for(o=0;o<n;o++)S[o]=0|u[o][a],0!==S[o]&&(w=!1);if(!w)break;E++,a--}if(a>=0&&E++,b=b.dblp(E),a<0)break;for(o=0;o<n;o++){var C=S[o];0!==C&&(C>0?s=c[o][C-1>>1]:C<0&&(s=c[o][-C-1>>1].neg()),b="affine"===s.type?b.mixedAdd(s):b.add(s))}}for(a=0;a<n;a++)c[a]=null;return r?b:b.toP()},BaseCurve.BasePoint=BasePoint,BasePoint.prototype.eq=function(){throw new Error("Not implemented")},BasePoint.prototype.validate=function(){return this.curve.validate(this)},BaseCurve.prototype.decodePoint=function(e,t){e=utils$d.toArray(e,t);var i=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*i)return 6===e[0]?assert$9(e[e.length-1]%2==0):7===e[0]&&assert$9(e[e.length-1]%2==1),this.point(e.slice(1,1+i),e.slice(1+i,1+2*i));if((2===e[0]||3===e[0])&&e.length-1===i)return this.pointFromX(e.slice(1,1+i),3===e[0]);throw new Error("Unknown point format")},BasePoint.prototype.encodeCompressed=function(e){return this.encode(e,!0)},BasePoint.prototype._encode=function(e){var t=this.curve.p.byteLength(),i=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(i):[4].concat(i,this.getY().toArray("be",t))},BasePoint.prototype.encode=function(e,t){return utils$d.encode(this._encode(t),e)},BasePoint.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},BasePoint.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},BasePoint.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],n=this,r=0;r<t;r+=e){for(var a=0;a<e;a++)n=n.dbl();i.push(n)}return{step:e,points:i}},BasePoint.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],i=(1<<e)-1,n=1===i?null:this.dbl(),r=1;r<i;r++)t[r]=t[r-1].add(n);return{wnd:e,points:t}},BasePoint.prototype._getBeta=function(){return null},BasePoint.prototype.dblp=function(e){for(var t=this,i=0;i<e;i++)t=t.dbl();return t};var utils$c=utils$f,BN$8=bnExports$3,inherits$x=inherits_browserExports,Base$2=base$2,assert$8=utils$c.assert;function ShortCurve(e){Base$2.call(this,"short",e),this.a=new BN$8(e.a,16).toRed(this.red),this.b=new BN$8(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}inherits$x(ShortCurve,Base$2);var short=ShortCurve;function Point$3(e,t,i,n){Base$2.BasePoint.call(this,e,"affine"),null===t&&null===i?(this.x=null,this.y=null,this.inf=!0):(this.x=new BN$8(t,16),this.y=new BN$8(i,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function JPoint(e,t,i,n){Base$2.BasePoint.call(this,e,"jacobian"),null===t&&null===i&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new BN$8(0)):(this.x=new BN$8(t,16),this.y=new BN$8(i,16),this.z=new BN$8(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}ShortCurve.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,i;if(e.beta)t=new BN$8(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)i=new BN$8(e.lambda,16);else{var r=this._getEndoRoots(this.n);0===this.g.mul(r[0]).x.cmp(this.g.x.redMul(t))?i=r[0]:(i=r[1],assert$8(0===this.g.mul(i).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:i,basis:e.basis?e.basis.map(function(e){return{a:new BN$8(e.a,16),b:new BN$8(e.b,16)}}):this._getEndoBasis(i)}}},ShortCurve.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:BN$8.mont(e),i=new BN$8(2).toRed(t).redInvm(),n=i.redNeg(),r=new BN$8(3).toRed(t).redNeg().redSqrt().redMul(i);return[n.redAdd(r).fromRed(),n.redSub(r).fromRed()]},ShortCurve.prototype._getEndoBasis=function(e){for(var t,i,n,r,a,o,s,l,c,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),p=new BN$8(1),m=new BN$8(0),f=new BN$8(0),g=new BN$8(1),_=0;0!==d.cmpn(0);){var v=h.div(d);l=h.sub(v.mul(d)),c=f.sub(v.mul(p));var y=g.sub(v.mul(m));if(!n&&l.cmp(u)<0)t=s.neg(),i=p,n=l.neg(),r=c;else if(n&&2===++_)break;s=l,h=d,d=l,f=p,p=c,g=m,m=y}a=l.neg(),o=c;var b=n.sqr().add(r.sqr());return a.sqr().add(o.sqr()).cmp(b)>=0&&(a=t,o=i),n.negative&&(n=n.neg(),r=r.neg()),a.negative&&(a=a.neg(),o=o.neg()),[{a:n,b:r},{a:a,b:o}]},ShortCurve.prototype._endoSplit=function(e){var t=this.endo.basis,i=t[0],n=t[1],r=n.b.mul(e).divRound(this.n),a=i.b.neg().mul(e).divRound(this.n),o=r.mul(i.a),s=a.mul(n.a),l=r.mul(i.b),c=a.mul(n.b);return{k1:e.sub(o).sub(s),k2:l.add(c).neg()}},ShortCurve.prototype.pointFromX=function(e,t){(e=new BN$8(e,16)).red||(e=e.toRed(this.red));var i=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=i.redSqrt();if(0!==n.redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");var r=n.fromRed().isOdd();return(t&&!r||!t&&r)&&(n=n.redNeg()),this.point(e,n)},ShortCurve.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,i=e.y,n=this.a.redMul(t),r=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===i.redSqr().redISub(r).cmpn(0)},ShortCurve.prototype._endoWnafMulAdd=function(e,t,i){for(var n=this._endoWnafT1,r=this._endoWnafT2,a=0;a<e.length;a++){var o=this._endoSplit(t[a]),s=e[a],l=s._getBeta();o.k1.negative&&(o.k1.ineg(),s=s.neg(!0)),o.k2.negative&&(o.k2.ineg(),l=l.neg(!0)),n[2*a]=s,n[2*a+1]=l,r[2*a]=o.k1,r[2*a+1]=o.k2}for(var c=this._wnafMulAdd(1,n,r,2*a,i),u=0;u<2*a;u++)n[u]=null,r[u]=null;return c},inherits$x(Point$3,Base$2.BasePoint),ShortCurve.prototype.point=function(e,t,i){return new Point$3(this,e,t,i)},ShortCurve.prototype.pointFromJSON=function(e,t){return Point$3.fromJSON(this,e,t)},Point$3.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var i=this.curve,n=function(e){return i.point(e.x.redMul(i.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},Point$3.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},Point$3.fromJSON=function(e,t,i){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],i);if(!t[2])return n;function r(t){return e.point(t[0],t[1],i)}var a=t[2];return n.precomputed={beta:null,doubles:a.doubles&&{step:a.doubles.step,points:[n].concat(a.doubles.points.map(r))},naf:a.naf&&{wnd:a.naf.wnd,points:[n].concat(a.naf.points.map(r))}},n},Point$3.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},Point$3.prototype.isInfinity=function(){return this.inf},Point$3.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var i=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,n)},Point$3.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,i=this.x.redSqr(),n=e.redInvm(),r=i.redAdd(i).redIAdd(i).redIAdd(t).redMul(n),a=r.redSqr().redISub(this.x.redAdd(this.x)),o=r.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)},Point$3.prototype.getX=function(){return this.x.fromRed()},Point$3.prototype.getY=function(){return this.y.fromRed()},Point$3.prototype.mul=function(e){return e=new BN$8(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},Point$3.prototype.mulAdd=function(e,t,i){var n=[this,t],r=[e,i];return this.curve.endo?this.curve._endoWnafMulAdd(n,r):this.curve._wnafMulAdd(1,n,r,2)},Point$3.prototype.jmulAdd=function(e,t,i){var n=[this,t],r=[e,i];return this.curve.endo?this.curve._endoWnafMulAdd(n,r,!0):this.curve._wnafMulAdd(1,n,r,2,!0)},Point$3.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},Point$3.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var i=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:i.naf&&{wnd:i.naf.wnd,points:i.naf.points.map(n)},doubles:i.doubles&&{step:i.doubles.step,points:i.doubles.points.map(n)}}}return t},Point$3.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},inherits$x(JPoint,Base$2.BasePoint),ShortCurve.prototype.jpoint=function(e,t,i){return new JPoint(this,e,t,i)},JPoint.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),i=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(i,n)},JPoint.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},JPoint.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),i=this.z.redSqr(),n=this.x.redMul(t),r=e.x.redMul(i),a=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(i.redMul(this.z)),s=n.redSub(r),l=a.redSub(o);if(0===s.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),d=n.redMul(c),h=l.redSqr().redIAdd(u).redISub(d).redISub(d),p=l.redMul(d.redISub(h)).redISub(a.redMul(u)),m=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,p,m)},JPoint.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),i=this.x,n=e.x.redMul(t),r=this.y,a=e.y.redMul(t).redMul(this.z),o=i.redSub(n),s=r.redSub(a);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=o.redSqr(),c=l.redMul(o),u=i.redMul(l),d=s.redSqr().redIAdd(c).redISub(u).redISub(u),h=s.redMul(u.redISub(d)).redISub(r.redMul(c)),p=this.z.redMul(o);return this.curve.jpoint(d,h,p)},JPoint.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var i=this;for(t=0;t<e;t++)i=i.dbl();return i}var n=this.curve.a,r=this.curve.tinv,a=this.x,o=this.y,s=this.z,l=s.redSqr().redSqr(),c=o.redAdd(o);for(t=0;t<e;t++){var u=a.redSqr(),d=c.redSqr(),h=d.redSqr(),p=u.redAdd(u).redIAdd(u).redIAdd(n.redMul(l)),m=a.redMul(d),f=p.redSqr().redISub(m.redAdd(m)),g=m.redISub(f),_=p.redMul(g);_=_.redIAdd(_).redISub(h);var v=c.redMul(s);t+1<e&&(l=l.redMul(h)),a=f,s=v,c=_}return this.curve.jpoint(a,c.redMul(r),s)},JPoint.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},JPoint.prototype._zeroDbl=function(){var e,t,i;if(this.zOne){var n=this.x.redSqr(),r=this.y.redSqr(),a=r.redSqr(),o=this.x.redAdd(r).redSqr().redISub(n).redISub(a);o=o.redIAdd(o);var s=n.redAdd(n).redIAdd(n),l=s.redSqr().redISub(o).redISub(o),c=a.redIAdd(a);c=(c=c.redIAdd(c)).redIAdd(c),e=l,t=s.redMul(o.redISub(l)).redISub(c),i=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),d=this.y.redSqr(),h=d.redSqr(),p=this.x.redAdd(d).redSqr().redISub(u).redISub(h);p=p.redIAdd(p);var m=u.redAdd(u).redIAdd(u),f=m.redSqr(),g=h.redIAdd(h);g=(g=g.redIAdd(g)).redIAdd(g),e=f.redISub(p).redISub(p),t=m.redMul(p.redISub(e)).redISub(g),i=(i=this.y.redMul(this.z)).redIAdd(i)}return this.curve.jpoint(e,t,i)},JPoint.prototype._threeDbl=function(){var e,t,i;if(this.zOne){var n=this.x.redSqr(),r=this.y.redSqr(),a=r.redSqr(),o=this.x.redAdd(r).redSqr().redISub(n).redISub(a);o=o.redIAdd(o);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),l=s.redSqr().redISub(o).redISub(o);e=l;var c=a.redIAdd(a);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(o.redISub(l)).redISub(c),i=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),d=this.y.redSqr(),h=this.x.redMul(d),p=this.x.redSub(u).redMul(this.x.redAdd(u));p=p.redAdd(p).redIAdd(p);var m=h.redIAdd(h),f=(m=m.redIAdd(m)).redAdd(m);e=p.redSqr().redISub(f),i=this.y.redAdd(this.z).redSqr().redISub(d).redISub(u);var g=d.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=p.redMul(m.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,i)},JPoint.prototype._dbl=function(){var e=this.curve.a,t=this.x,i=this.y,n=this.z,r=n.redSqr().redSqr(),a=t.redSqr(),o=i.redSqr(),s=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(r)),l=t.redAdd(t),c=(l=l.redIAdd(l)).redMul(o),u=s.redSqr().redISub(c.redAdd(c)),d=c.redISub(u),h=o.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var p=s.redMul(d).redISub(h),m=i.redAdd(i).redMul(n);return this.curve.jpoint(u,p,m)},JPoint.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),i=this.z.redSqr(),n=t.redSqr(),r=e.redAdd(e).redIAdd(e),a=r.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(a)).redSqr(),l=n.redIAdd(n);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var c=r.redIAdd(o).redSqr().redISub(a).redISub(s).redISub(l),u=t.redMul(c);u=(u=u.redIAdd(u)).redIAdd(u);var d=this.x.redMul(s).redISub(u);d=(d=d.redIAdd(d)).redIAdd(d);var h=this.y.redMul(c.redMul(l.redISub(c)).redISub(o.redMul(s)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var p=this.z.redAdd(o).redSqr().redISub(i).redISub(s);return this.curve.jpoint(d,h,p)},JPoint.prototype.mul=function(e,t){return e=new BN$8(e,t),this.curve._wnafMul(this,e)},JPoint.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),i=e.z.redSqr();if(0!==this.x.redMul(i).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),r=i.redMul(e.z);return 0===this.y.redMul(r).redISub(e.y.redMul(n)).cmpn(0)},JPoint.prototype.eqXToP=function(e){var t=this.z.redSqr(),i=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(i))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(i.redIAdd(r),0===this.x.cmp(i))return!0}},JPoint.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},JPoint.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var BN$7=bnExports$3,inherits$w=inherits_browserExports,Base$1=base$2,utils$b=utils$f;function MontCurve(e){Base$1.call(this,"mont",e),this.a=new BN$7(e.a,16).toRed(this.red),this.b=new BN$7(e.b,16).toRed(this.red),this.i4=new BN$7(4).toRed(this.red).redInvm(),this.two=new BN$7(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}inherits$w(MontCurve,Base$1);var mont=MontCurve;function Point$2(e,t,i){Base$1.BasePoint.call(this,e,"projective"),null===t&&null===i?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new BN$7(t,16),this.z=new BN$7(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}MontCurve.prototype.validate=function(e){var t=e.normalize().x,i=t.redSqr(),n=i.redMul(t).redAdd(i.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},inherits$w(Point$2,Base$1.BasePoint),MontCurve.prototype.decodePoint=function(e,t){return this.point(utils$b.toArray(e,t),1)},MontCurve.prototype.point=function(e,t){return new Point$2(this,e,t)},MontCurve.prototype.pointFromJSON=function(e){return Point$2.fromJSON(this,e)},Point$2.prototype.precompute=function(){},Point$2.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},Point$2.fromJSON=function(e,t){return new Point$2(e,t[0],t[1]||e.one)},Point$2.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},Point$2.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},Point$2.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),i=e.redSub(t),n=e.redMul(t),r=i.redMul(t.redAdd(this.curve.a24.redMul(i)));return this.curve.point(n,r)},Point$2.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},Point$2.prototype.diffAdd=function(e,t){var i=this.x.redAdd(this.z),n=this.x.redSub(this.z),r=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(i),o=r.redMul(n),s=t.z.redMul(a.redAdd(o).redSqr()),l=t.x.redMul(a.redISub(o).redSqr());return this.curve.point(s,l)},Point$2.prototype.mul=function(e){for(var t=e.clone(),i=this,n=this.curve.point(null,null),r=[];0!==t.cmpn(0);t.iushrn(1))r.push(t.andln(1));for(var a=r.length-1;a>=0;a--)0===r[a]?(i=i.diffAdd(n,this),n=n.dbl()):(n=i.diffAdd(n,this),i=i.dbl());return n},Point$2.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},Point$2.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},Point$2.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},Point$2.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},Point$2.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var utils$a=utils$f,BN$6=bnExports$3,inherits$v=inherits_browserExports,Base=base$2,assert$7=utils$a.assert;function EdwardsCurve(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,Base.call(this,"edwards",e),this.a=new BN$6(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new BN$6(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new BN$6(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),assert$7(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}inherits$v(EdwardsCurve,Base);var edwards=EdwardsCurve,curve2;function Point$1(e,t,i,n,r){Base.BasePoint.call(this,e,"projective"),null===t&&null===i&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new BN$6(t,16),this.y=new BN$6(i,16),this.z=n?new BN$6(n,16):this.curve.one,this.t=r&&new BN$6(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}EdwardsCurve.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},EdwardsCurve.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},EdwardsCurve.prototype.jpoint=function(e,t,i,n){return this.point(e,t,i,n)},EdwardsCurve.prototype.pointFromX=function(e,t){(e=new BN$6(e,16)).red||(e=e.toRed(this.red));var i=e.redSqr(),n=this.c2.redSub(this.a.redMul(i)),r=this.one.redSub(this.c2.redMul(this.d).redMul(i)),a=n.redMul(r.redInvm()),o=a.redSqrt();if(0!==o.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var s=o.fromRed().isOdd();return(t&&!s||!t&&s)&&(o=o.redNeg()),this.point(e,o)},EdwardsCurve.prototype.pointFromY=function(e,t){(e=new BN$6(e,16)).red||(e=e.toRed(this.red));var i=e.redSqr(),n=i.redSub(this.c2),r=i.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(r.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var o=a.redSqrt();if(0!==o.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return o.fromRed().isOdd()!==t&&(o=o.redNeg()),this.point(o,e)},EdwardsCurve.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),i=e.y.redSqr(),n=t.redMul(this.a).redAdd(i),r=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(i)));return 0===n.cmp(r)},inherits$v(Point$1,Base.BasePoint),EdwardsCurve.prototype.pointFromJSON=function(e){return Point$1.fromJSON(this,e)},EdwardsCurve.prototype.point=function(e,t,i,n){return new Point$1(this,e,t,i,n)},Point$1.fromJSON=function(e,t){return new Point$1(e,t[0],t[1],t[2])},Point$1.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},Point$1.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},Point$1.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),i=this.z.redSqr();i=i.redIAdd(i);var n=this.curve._mulA(e),r=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=n.redAdd(t),o=a.redSub(i),s=n.redSub(t),l=r.redMul(o),c=a.redMul(s),u=r.redMul(s),d=o.redMul(a);return this.curve.point(l,c,d,u)},Point$1.prototype._projDbl=function(){var e,t,i,n,r,a,o=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),l=this.y.redSqr();if(this.curve.twisted){var c=(n=this.curve._mulA(s)).redAdd(l);this.zOne?(e=o.redSub(s).redSub(l).redMul(c.redSub(this.curve.two)),t=c.redMul(n.redSub(l)),i=c.redSqr().redSub(c).redSub(c)):(r=this.z.redSqr(),a=c.redSub(r).redISub(r),e=o.redSub(s).redISub(l).redMul(a),t=c.redMul(n.redSub(l)),i=c.redMul(a))}else n=s.redAdd(l),r=this.curve._mulC(this.z).redSqr(),a=n.redSub(r).redSub(r),e=this.curve._mulC(o.redISub(n)).redMul(a),t=this.curve._mulC(n).redMul(s.redISub(l)),i=n.redMul(a);return this.curve.point(e,t,i)},Point$1.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},Point$1.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),i=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),r=this.z.redMul(e.z.redAdd(e.z)),a=i.redSub(t),o=r.redSub(n),s=r.redAdd(n),l=i.redAdd(t),c=a.redMul(o),u=s.redMul(l),d=a.redMul(l),h=o.redMul(s);return this.curve.point(c,u,h,d)},Point$1.prototype._projAdd=function(e){var t,i,n=this.z.redMul(e.z),r=n.redSqr(),a=this.x.redMul(e.x),o=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(o),l=r.redSub(s),c=r.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(o),d=n.redMul(l).redMul(u);return this.curve.twisted?(t=n.redMul(c).redMul(o.redSub(this.curve._mulA(a))),i=l.redMul(c)):(t=n.redMul(c).redMul(o.redSub(a)),i=this.curve._mulC(l).redMul(c)),this.curve.point(d,t,i)},Point$1.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},Point$1.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},Point$1.prototype.mulAdd=function(e,t,i){return this.curve._wnafMulAdd(1,[this,t],[e,i],2,!1)},Point$1.prototype.jmulAdd=function(e,t,i){return this.curve._wnafMulAdd(1,[this,t],[e,i],2,!0)},Point$1.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},Point$1.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},Point$1.prototype.getX=function(){return this.normalize(),this.x.fromRed()},Point$1.prototype.getY=function(){return this.normalize(),this.y.fromRed()},Point$1.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},Point$1.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var i=e.clone(),n=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},Point$1.prototype.toP=Point$1.prototype.normalize,Point$1.prototype.mixedAdd=Point$1.prototype.add,curve2=curve,curve2.base=base$2,curve2.short=short,curve2.mont=mont,curve2.edwards=edwards;var curves$1={},secp256k1,hasRequiredSecp256k1;function requireSecp256k1(){return hasRequiredSecp256k1?secp256k1:(hasRequiredSecp256k1=1,secp256k1={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}})}!function(e){var t,i=curves$1,n=hash$3,r=curve,a=utils$f.assert;function o(e){"short"===e.type?this.curve=new r.short(e):"edwards"===e.type?this.curve=new r.edwards(e):this.curve=new r.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function s(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var n=new o(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=o,s("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:n.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:n.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:n.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:n.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),s("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:n.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["9"]}),s("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{t=requireSecp256k1()}catch(e3){t=void 0}s("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:n.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",t]})}();var hash$1=hash$3,utils$9=utils$e,assert$6=minimalisticAssert;function HmacDRBG(e){if(!(this instanceof HmacDRBG))return new HmacDRBG(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=utils$9.toArray(e.entropy,e.entropyEnc||"hex"),i=utils$9.toArray(e.nonce,e.nonceEnc||"hex"),n=utils$9.toArray(e.pers,e.persEnc||"hex");assert$6(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,i,n)}var hmacDrbg=HmacDRBG;HmacDRBG.prototype._init=function(e,t,i){var n=e.concat(t).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var r=0;r<this.V.length;r++)this.K[r]=0,this.V[r]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},HmacDRBG.prototype._hmac=function(){return new hash$1.hmac(this.hash,this.K)},HmacDRBG.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},HmacDRBG.prototype.reseed=function(e,t,i,n){"string"!=typeof t&&(n=i,i=t,t=null),e=utils$9.toArray(e,t),i=utils$9.toArray(i,n),assert$6(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(i||[])),this._reseed=1},HmacDRBG.prototype.generate=function(e,t,i,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=i,i=t,t=null),i&&(i=utils$9.toArray(i,n||"hex"),this._update(i));for(var r=[];r.length<e;)this.V=this._hmac().update(this.V).digest(),r=r.concat(this.V);var a=r.slice(0,e);return this._update(i),this._reseed++,utils$9.encode(a,t)};var BN$5=bnExports$3,utils$8=utils$f,assert$5=utils$8.assert;function KeyPair$2(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}var key$1=KeyPair$2;KeyPair$2.fromPublic=function(e,t,i){return t instanceof KeyPair$2?t:new KeyPair$2(e,{pub:t,pubEnc:i})},KeyPair$2.fromPrivate=function(e,t,i){return t instanceof KeyPair$2?t:new KeyPair$2(e,{priv:t,privEnc:i})},KeyPair$2.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},KeyPair$2.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},KeyPair$2.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},KeyPair$2.prototype._importPrivate=function(e,t){this.priv=new BN$5(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},KeyPair$2.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?assert$5(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||assert$5(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},KeyPair$2.prototype.derive=function(e){return e.validate()||assert$5(e.validate(),"public point not validated"),e.mul(this.priv).getX()},KeyPair$2.prototype.sign=function(e,t,i){return this.ec.sign(e,this,t,i)},KeyPair$2.prototype.verify=function(e,t,i){return this.ec.verify(e,t,this,void 0,i)},KeyPair$2.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var BN$4=bnExports$3,utils$7=utils$f,assert$4=utils$7.assert;function Signature$2(e,t){if(e instanceof Signature$2)return e;this._importDER(e,t)||(assert$4(e.r&&e.s,"Signature without r or s"),this.r=new BN$4(e.r,16),this.s=new BN$4(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var signature$1=Signature$2,ec,hasRequiredEc;function Position(){this.place=0}function getLength(e,t){var i=e[t.place++];if(!(128&i))return i;var n=15&i;if(0===n||n>4)return!1;if(0===e[t.place])return!1;for(var r=0,a=0,o=t.place;a<n;a++,o++)r<<=8,r|=e[o],r>>>=0;return!(r<=127)&&(t.place=o,r)}function rmPadding(e){for(var t=0,i=e.length-1;!e[t]&&!(128&e[t+1])&&t<i;)t++;return 0===t?e:e.slice(t)}function constructLength(e,t){if(t<128)e.push(t);else{var i=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|i);--i;)e.push(t>>>(i<<3)&255);e.push(t)}}function requireEc(){if(hasRequiredEc)return ec;hasRequiredEc=1;var e=bnExports$3,t=hmacDrbg,i=utils$f,n=curves$1,r=requireBrorand(),a=i.assert,o=key$1,s=signature$1;function l(e){if(!(this instanceof l))return new l(e);"string"==typeof e&&(a(Object.prototype.hasOwnProperty.call(n,e),"Unknown curve "+e),e=n[e]),e instanceof n.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}return ec=l,l.prototype.keyPair=function(e){return new o(this,e)},l.prototype.keyFromPrivate=function(e,t){return o.fromPrivate(this,e,t)},l.prototype.keyFromPublic=function(e,t){return o.fromPublic(this,e,t)},l.prototype.genKeyPair=function(i){i||(i={});for(var n=new t({hash:this.hash,pers:i.pers,persEnc:i.persEnc||"utf8",entropy:i.entropy||r(this.hash.hmacStrength),entropyEnc:i.entropy&&i.entropyEnc||"utf8",nonce:this.n.toArray()}),a=this.n.byteLength(),o=this.n.sub(new e(2));;){var s=new e(n.generate(a));if(!(s.cmp(o)>0))return s.iaddn(1),this.keyFromPrivate(s)}},l.prototype._truncateToN=function(t,i,n){var r;if(e.isBN(t)||"number"==typeof t)r=(t=new e(t,16)).byteLength();else if("object"==typeof t)r=t.length,t=new e(t,16);else{var a=t.toString();r=a.length+1>>>1,t=new e(a,16)}"number"!=typeof n&&(n=8*r);var o=n-this.n.bitLength();return o>0&&(t=t.ushrn(o)),!i&&t.cmp(this.n)>=0?t.sub(this.n):t},l.prototype.sign=function(i,n,r,o){if("object"==typeof r&&(o=r,r=null),o||(o={}),"string"!=typeof i&&"number"!=typeof i&&!e.isBN(i)){a("object"==typeof i&&i&&"number"==typeof i.length,"Expected message to be an array-like, a hex string, or a BN instance"),a(i.length>>>0===i.length);for(var l=0;l<i.length;l++)a((255&i[l])===i[l])}n=this.keyFromPrivate(n,r),i=this._truncateToN(i,!1,o.msgBitLength),a(!i.isNeg(),"Can not sign a negative message");var c=this.n.byteLength(),u=n.getPrivate().toArray("be",c),d=i.toArray("be",c);a(new e(d).eq(i),"Can not sign message");for(var h=new t({hash:this.hash,entropy:u,nonce:d,pers:o.pers,persEnc:o.persEnc||"utf8"}),p=this.n.sub(new e(1)),m=0;;m++){var f=o.k?o.k(m):new e(h.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(p)>=0)){var g=this.g.mul(f);if(!g.isInfinity()){var _=g.getX(),v=_.umod(this.n);if(0!==v.cmpn(0)){var y=f.invm(this.n).mul(v.mul(n.getPrivate()).iadd(i));if(0!==(y=y.umod(this.n)).cmpn(0)){var b=(g.getY().isOdd()?1:0)|(0!==_.cmp(v)?2:0);return o.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),b^=1),new s({r:v,s:y,recoveryParam:b})}}}}}},l.prototype.verify=function(e,t,i,n,r){r||(r={}),e=this._truncateToN(e,!1,r.msgBitLength),i=this.keyFromPublic(i,n);var a=(t=new s(t,"hex")).r,o=t.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var l,c=o.invm(this.n),u=c.mul(e).umod(this.n),d=c.mul(a).umod(this.n);return this.curve._maxwellTrick?!(l=this.g.jmulAdd(u,i.getPublic(),d)).isInfinity()&&l.eqXToP(a):!(l=this.g.mulAdd(u,i.getPublic(),d)).isInfinity()&&0===l.getX().umod(this.n).cmp(a)},l.prototype.recoverPubKey=function(t,i,n,r){a((3&n)===n,"The recovery param is more than two bits"),i=new s(i,r);var o=this.n,l=new e(t),c=i.r,u=i.s,d=1&n,h=n>>1;if(c.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");c=h?this.curve.pointFromX(c.add(this.curve.n),d):this.curve.pointFromX(c,d);var p=i.r.invm(o),m=o.sub(l).mul(p).umod(o),f=u.mul(p).umod(o);return this.g.mulAdd(m,c,f)},l.prototype.getKeyRecoveryParam=function(e,t,i,n){if(null!==(t=new s(t,n)).recoveryParam)return t.recoveryParam;for(var r=0;r<4;r++){var a;try{a=this.recoverPubKey(e,t,r)}catch(o){continue}if(a.eq(i))return r}throw new Error("Unable to find valid recovery factor")},ec}Signature$2.prototype._importDER=function(e,t){e=utils$7.toArray(e,t);var i=new Position;if(48!==e[i.place++])return!1;var n=getLength(e,i);if(!1===n)return!1;if(n+i.place!==e.length)return!1;if(2!==e[i.place++])return!1;var r=getLength(e,i);if(!1===r)return!1;if(128&e[i.place])return!1;var a=e.slice(i.place,r+i.place);if(i.place+=r,2!==e[i.place++])return!1;var o=getLength(e,i);if(!1===o)return!1;if(e.length!==o+i.place)return!1;if(128&e[i.place])return!1;var s=e.slice(i.place,o+i.place);if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new BN$4(a),this.s=new BN$4(s),this.recoveryParam=null,!0},Signature$2.prototype.toDER=function(e){var t=this.r.toArray(),i=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&i[0]&&(i=[0].concat(i)),t=rmPadding(t),i=rmPadding(i);!(i[0]||128&i[1]);)i=i.slice(1);var n=[2];constructLength(n,t.length),(n=n.concat(t)).push(2),constructLength(n,i.length);var r=n.concat(i),a=[48];return constructLength(a,r.length),a=a.concat(r),utils$7.encode(a,e)};var utils$6=utils$f,assert$3=utils$6.assert,parseBytes$2=utils$6.parseBytes,cachedProperty$1=utils$6.cachedProperty;function KeyPair$1(e,t){this.eddsa=e,this._secret=parseBytes$2(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=parseBytes$2(t.pub)}KeyPair$1.fromPublic=function(e,t){return t instanceof KeyPair$1?t:new KeyPair$1(e,{pub:t})},KeyPair$1.fromSecret=function(e,t){return t instanceof KeyPair$1?t:new KeyPair$1(e,{secret:t})},KeyPair$1.prototype.secret=function(){return this._secret},cachedProperty$1(KeyPair$1,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),cachedProperty$1(KeyPair$1,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),cachedProperty$1(KeyPair$1,"privBytes",function(){var e=this.eddsa,t=this.hash(),i=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[i]&=127,n[i]|=64,n}),cachedProperty$1(KeyPair$1,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),cachedProperty$1(KeyPair$1,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),cachedProperty$1(KeyPair$1,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),KeyPair$1.prototype.sign=function(e){return assert$3(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},KeyPair$1.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},KeyPair$1.prototype.getSecret=function(e){return assert$3(this._secret,"KeyPair is public only"),utils$6.encode(this.secret(),e)},KeyPair$1.prototype.getPublic=function(e){return utils$6.encode(this.pubBytes(),e)};var key=KeyPair$1,BN$3=bnExports$3,utils$5=utils$f,assert$2=utils$5.assert,cachedProperty=utils$5.cachedProperty,parseBytes$1=utils$5.parseBytes;function Signature$1(e,t){this.eddsa=e,"object"!=typeof t&&(t=parseBytes$1(t)),Array.isArray(t)&&(assert$2(t.length===2*e.encodingLength,"Signature has invalid size"),t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),assert$2(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof BN$3&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}cachedProperty(Signature$1,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),cachedProperty(Signature$1,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),cachedProperty(Signature$1,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),cachedProperty(Signature$1,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),Signature$1.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},Signature$1.prototype.toHex=function(){return utils$5.encode(this.toBytes(),"hex").toUpperCase()};var signature=Signature$1,hash=hash$3,curves=curves$1,utils$4=utils$f,assert$1=utils$4.assert,parseBytes=utils$4.parseBytes,KeyPair=key,Signature=signature;function EDDSA(e){if(assert$1("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof EDDSA))return new EDDSA(e);e=curves[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=hash.sha512}var eddsa=EDDSA,hasRequiredElliptic;function requireElliptic(){return hasRequiredElliptic||(hasRequiredElliptic=1,(e=elliptic).version=require$$0.version,e.utils=utils$f,e.rand=requireBrorand(),e.curve=curve,e.curves=curves$1,e.ec=requireEc(),e.eddsa=eddsa),elliptic;var e}EDDSA.prototype.sign=function(e,t){e=parseBytes(e);var i=this.keyFromSecret(t),n=this.hashInt(i.messagePrefix(),e),r=this.g.mul(n),a=this.encodePoint(r),o=this.hashInt(a,i.pubBytes(),e).mul(i.priv()),s=n.add(o).umod(this.curve.n);return this.makeSignature({R:r,S:s,Rencoded:a})},EDDSA.prototype.verify=function(e,t,i){if(e=parseBytes(e),(t=this.makeSignature(t)).S().gte(t.eddsa.curve.n)||t.S().isNeg())return!1;var n=this.keyFromPublic(i),r=this.hashInt(t.Rencoded(),n.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(n.pub().mul(r)).eq(a)},EDDSA.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return utils$4.intFromLE(e.digest()).umod(this.curve.n)},EDDSA.prototype.keyFromPublic=function(e){return KeyPair.fromPublic(this,e)},EDDSA.prototype.keyFromSecret=function(e){return KeyPair.fromSecret(this,e)},EDDSA.prototype.makeSignature=function(e){return e instanceof Signature?e:new Signature(this,e)},EDDSA.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},EDDSA.prototype.decodePoint=function(e){var t=(e=utils$4.parseBytes(e)).length-1,i=e.slice(0,t).concat(-129&e[t]),n=!!(128&e[t]),r=utils$4.intFromLE(i);return this.curve.pointFromY(r,n)},EDDSA.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},EDDSA.prototype.decodeInt=function(e){return utils$4.intFromLE(e)},EDDSA.prototype.isPoint=function(e){return e instanceof this.pointClass};var asn1$3={},asn1$2={},bn$2={exports:{}};bn$2.exports,function(e,t){function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function r(e,t,i){if(r.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var a;"object"==typeof e?e.exports=r:t.BN=r,r.BN=r,r.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:require$$0$1.Buffer}catch(e3){}function o(e,t){var i=e.charCodeAt(t);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function s(e,t,i){var n=o(e,i);return i-1>=t&&(n|=o(e,i-1)<<4),n}function l(e,t,i,n){for(var r=0,a=Math.min(e.length,i),o=t;o<a;o++){var s=e.charCodeAt(o)-48;r*=n,r+=s>=49?s-49+10:s>=17?s-17+10:s}return r}r.isBN=function(e){return e instanceof r||null!==e&&"object"==typeof e&&e.constructor.wordSize===r.wordSize&&Array.isArray(e.words)},r.max=function(e,t){return e.cmp(t)>0?e:t},r.min=function(e,t){return e.cmp(t)<0?e:t},r.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r<e.length&&(16===t?this._parseHex(e,r,n):(this._parseBase(e,t,r),"le"===n&&this._initArray(this.toArray(),t,n)))},r.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},r.prototype._initArray=function(e,t,n){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var a,o,s=0;if("be"===n)for(r=e.length-1,a=0;r>=0;r-=3)o=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===n)for(r=0,a=0;r<e.length;r+=3)o=e[r]|e[r+1]<<8|e[r+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},r.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,a=0,o=0;if("be"===i)for(n=e.length-1;n>=t;n-=2)r=s(e,t,n)<<a,this.words[o]|=67108863&r,a>=18?(a-=18,o+=1,this.words[o]|=r>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)r=s(e,t,n)<<a,this.words[o]|=67108863&r,a>=18?(a-=18,o+=1,this.words[o]|=r>>>26):a+=8;this.strip()},r.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=t)n++;n--,r=r/t|0;for(var a=e.length-i,o=a%n,s=Math.min(a,a-o)+i,c=0,u=i;u<s;u+=n)c=l(e,u,u+n,t),this.imuln(r),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){var d=1;for(c=l(e,u,e.length,t),u=0;u<o;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this.strip()},r.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},r.prototype.clone=function(){var e=new r(null);return this.copy(e),e},r.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},r.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},r.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var r=0|e.words[0],a=0|t.words[0],o=r*a,s=67108863&o,l=o/67108864|0;i.words[0]=s;for(var c=1;c<n;c++){for(var u=l>>>26,d=67108863&l,h=Math.min(c,t.length-1),p=Math.max(0,c-e.length+1);p<=h;p++){var m=c-p|0;u+=(o=(r=0|e.words[m])*(a=0|t.words[p])+d)/67108864|0,d=67108863&o}i.words[c]=0|d,l=0|u}return 0!==l?i.words[c]=0|l:i.length--,i.strip()}r.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var r=0,a=0,o=0;o<this.length;o++){var s=this.words[o],l=(16777215&(s<<r|a)).toString(16);a=s>>>24-r&16777215,(r+=2)>=26&&(r-=26,o--),n=0!==a||o!==this.length-1?c[6-l.length]+l+n:l+n}for(0!==a&&(n=a.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var h=u[e],p=d[e];n="";var m=this.clone();for(m.negative=0;!m.isZero();){var f=m.modn(p).toString(e);n=(m=m.idivn(p)).isZero()?f+n:c[h-f.length]+f+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},r.prototype.toJSON=function(){return this.toString(16)},r.prototype.toBuffer=function(e,t){return i(void 0!==a),this.toArrayLike(a,e,t)},r.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},r.prototype.toArrayLike=function(e,t,n){var r=this.byteLength(),a=n||Math.max(1,r);i(r<=a,"byte array longer than desired length"),i(a>0,"Requested array length <= 0"),this.strip();var o,s,l="le"===t,c=new e(a),u=this.clone();if(l){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[s]=o;for(;s<a;s++)c[s]=0}else{for(s=0;s<a-r;s++)c[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[a-s-1]=o}return c},Math.clz32?r.prototype._countBits=function(e){return 32-Math.clz32(e)}:r.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},r.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 8191&t||(i+=13,t>>>=13),127&t||(i+=7,t>>>=7),15&t||(i+=4,t>>>=4),3&t||(i+=2,t>>>=2),1&t||i++,i},r.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,26!==i)break}return e},r.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},r.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},r.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},r.prototype.isNeg=function(){return 0!==this.negative},r.prototype.neg=function(){return this.clone().ineg()},r.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},r.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},r.prototype.ior=function(e){return i(0===(this.negative|e.negative)),this.iuor(e)},r.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},r.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},r.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this.strip()},r.prototype.iand=function(e){return i(0===(this.negative|e.negative)),this.iuand(e)},r.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},r.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},r.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=t.words[n]^i.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},r.prototype.ixor=function(e){return i(0===(this.negative|e.negative)),this.iuxor(e)},r.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},r.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},r.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return n>0&&(this.words[r]=~this.words[r]&67108863>>26-n),this.strip()},r.prototype.notn=function(e){return this.clone().inotn(e)},r.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var n=e/26|0,r=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<r:this.words[n]&~(1<<r),this.strip()},r.prototype.iadd=function(e){var t,i,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var r=0,a=0;a<n.length;a++)t=(0|i.words[a])+(0|n.words[a])+r,this.words[a]=67108863&t,r=t>>>26;for(;0!==r&&a<i.length;a++)t=(0|i.words[a])+r,this.words[a]=67108863&t,r=t>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this},r.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},r.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=e):(i=e,n=this);for(var a=0,o=0;o<n.length;o++)a=(t=(0|i.words[o])-(0|n.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<i.length;o++)a=(t=(0|i.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<i.length&&i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this.length=Math.max(this.length,o),i!==this&&(this.negative=1),this.strip()},r.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,i){var n,r,a,o=e.words,s=t.words,l=i.words,c=0,u=0|o[0],d=8191&u,h=u>>>13,p=0|o[1],m=8191&p,f=p>>>13,g=0|o[2],_=8191&g,v=g>>>13,y=0|o[3],b=8191&y,S=y>>>13,E=0|o[4],w=8191&E,C=E>>>13,T=0|o[5],A=8191&T,x=T>>>13,M=0|o[6],R=8191&M,I=M>>>13,k=0|o[7],N=8191&k,O=k>>>13,D=0|o[8],L=8191&D,P=D>>>13,B=0|o[9],F=8191&B,$=B>>>13,U=0|s[0],G=8191&U,Y=U>>>13,z=0|s[1],H=8191&z,q=z>>>13,V=0|s[2],j=8191&V,J=V>>>13,W=0|s[3],K=8191&W,Q=W>>>13,Z=0|s[4],X=8191&Z,ee=Z>>>13,te=0|s[5],ie=8191&te,ne=te>>>13,re=0|s[6],ae=8191&re,oe=re>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],de=8191&ue,he=ue>>>13,pe=0|s[9],me=8191&pe,fe=pe>>>13;i.negative=e.negative^t.negative,i.length=19;var ge=(c+(n=Math.imul(d,G))|0)+((8191&(r=(r=Math.imul(d,Y))+Math.imul(h,G)|0))<<13)|0;c=((a=Math.imul(h,Y))+(r>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(m,G),r=(r=Math.imul(m,Y))+Math.imul(f,G)|0,a=Math.imul(f,Y);var _e=(c+(n=n+Math.imul(d,H)|0)|0)+((8191&(r=(r=r+Math.imul(d,q)|0)+Math.imul(h,H)|0))<<13)|0;c=((a=a+Math.imul(h,q)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(_,G),r=(r=Math.imul(_,Y))+Math.imul(v,G)|0,a=Math.imul(v,Y),n=n+Math.imul(m,H)|0,r=(r=r+Math.imul(m,q)|0)+Math.imul(f,H)|0,a=a+Math.imul(f,q)|0;var ve=(c+(n=n+Math.imul(d,j)|0)|0)+((8191&(r=(r=r+Math.imul(d,J)|0)+Math.imul(h,j)|0))<<13)|0;c=((a=a+Math.imul(h,J)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(b,G),r=(r=Math.imul(b,Y))+Math.imul(S,G)|0,a=Math.imul(S,Y),n=n+Math.imul(_,H)|0,r=(r=r+Math.imul(_,q)|0)+Math.imul(v,H)|0,a=a+Math.imul(v,q)|0,n=n+Math.imul(m,j)|0,r=(r=r+Math.imul(m,J)|0)+Math.imul(f,j)|0,a=a+Math.imul(f,J)|0;var ye=(c+(n=n+Math.imul(d,K)|0)|0)+((8191&(r=(r=r+Math.imul(d,Q)|0)+Math.imul(h,K)|0))<<13)|0;c=((a=a+Math.imul(h,Q)|0)+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(w,G),r=(r=Math.imul(w,Y))+Math.imul(C,G)|0,a=Math.imul(C,Y),n=n+Math.imul(b,H)|0,r=(r=r+Math.imul(b,q)|0)+Math.imul(S,H)|0,a=a+Math.imul(S,q)|0,n=n+Math.imul(_,j)|0,r=(r=r+Math.imul(_,J)|0)+Math.imul(v,j)|0,a=a+Math.imul(v,J)|0,n=n+Math.imul(m,K)|0,r=(r=r+Math.imul(m,Q)|0)+Math.imul(f,K)|0,a=a+Math.imul(f,Q)|0;var be=(c+(n=n+Math.imul(d,X)|0)|0)+((8191&(r=(r=r+Math.imul(d,ee)|0)+Math.imul(h,X)|0))<<13)|0;c=((a=a+Math.imul(h,ee)|0)+(r>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(A,G),r=(r=Math.imul(A,Y))+Math.imul(x,G)|0,a=Math.imul(x,Y),n=n+Math.imul(w,H)|0,r=(r=r+Math.imul(w,q)|0)+Math.imul(C,H)|0,a=a+Math.imul(C,q)|0,n=n+Math.imul(b,j)|0,r=(r=r+Math.imul(b,J)|0)+Math.imul(S,j)|0,a=a+Math.imul(S,J)|0,n=n+Math.imul(_,K)|0,r=(r=r+Math.imul(_,Q)|0)+Math.imul(v,K)|0,a=a+Math.imul(v,Q)|0,n=n+Math.imul(m,X)|0,r=(r=r+Math.imul(m,ee)|0)+Math.imul(f,X)|0,a=a+Math.imul(f,ee)|0;var Se=(c+(n=n+Math.imul(d,ie)|0)|0)+((8191&(r=(r=r+Math.imul(d,ne)|0)+Math.imul(h,ie)|0))<<13)|0;c=((a=a+Math.imul(h,ne)|0)+(r>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(R,G),r=(r=Math.imul(R,Y))+Math.imul(I,G)|0,a=Math.imul(I,Y),n=n+Math.imul(A,H)|0,r=(r=r+Math.imul(A,q)|0)+Math.imul(x,H)|0,a=a+Math.imul(x,q)|0,n=n+Math.imul(w,j)|0,r=(r=r+Math.imul(w,J)|0)+Math.imul(C,j)|0,a=a+Math.imul(C,J)|0,n=n+Math.imul(b,K)|0,r=(r=r+Math.imul(b,Q)|0)+Math.imul(S,K)|0,a=a+Math.imul(S,Q)|0,n=n+Math.imul(_,X)|0,r=(r=r+Math.imul(_,ee)|0)+Math.imul(v,X)|0,a=a+Math.imul(v,ee)|0,n=n+Math.imul(m,ie)|0,r=(r=r+Math.imul(m,ne)|0)+Math.imul(f,ie)|0,a=a+Math.imul(f,ne)|0;var Ee=(c+(n=n+Math.imul(d,ae)|0)|0)+((8191&(r=(r=r+Math.imul(d,oe)|0)+Math.imul(h,ae)|0))<<13)|0;c=((a=a+Math.imul(h,oe)|0)+(r>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(N,G),r=(r=Math.imul(N,Y))+Math.imul(O,G)|0,a=Math.imul(O,Y),n=n+Math.imul(R,H)|0,r=(r=r+Math.imul(R,q)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,q)|0,n=n+Math.imul(A,j)|0,r=(r=r+Math.imul(A,J)|0)+Math.imul(x,j)|0,a=a+Math.imul(x,J)|0,n=n+Math.imul(w,K)|0,r=(r=r+Math.imul(w,Q)|0)+Math.imul(C,K)|0,a=a+Math.imul(C,Q)|0,n=n+Math.imul(b,X)|0,r=(r=r+Math.imul(b,ee)|0)+Math.imul(S,X)|0,a=a+Math.imul(S,ee)|0,n=n+Math.imul(_,ie)|0,r=(r=r+Math.imul(_,ne)|0)+Math.imul(v,ie)|0,a=a+Math.imul(v,ne)|0,n=n+Math.imul(m,ae)|0,r=(r=r+Math.imul(m,oe)|0)+Math.imul(f,ae)|0,a=a+Math.imul(f,oe)|0;var we=(c+(n=n+Math.imul(d,le)|0)|0)+((8191&(r=(r=r+Math.imul(d,ce)|0)+Math.imul(h,le)|0))<<13)|0;c=((a=a+Math.imul(h,ce)|0)+(r>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(L,G),r=(r=Math.imul(L,Y))+Math.imul(P,G)|0,a=Math.imul(P,Y),n=n+Math.imul(N,H)|0,r=(r=r+Math.imul(N,q)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,q)|0,n=n+Math.imul(R,j)|0,r=(r=r+Math.imul(R,J)|0)+Math.imul(I,j)|0,a=a+Math.imul(I,J)|0,n=n+Math.imul(A,K)|0,r=(r=r+Math.imul(A,Q)|0)+Math.imul(x,K)|0,a=a+Math.imul(x,Q)|0,n=n+Math.imul(w,X)|0,r=(r=r+Math.imul(w,ee)|0)+Math.imul(C,X)|0,a=a+Math.imul(C,ee)|0,n=n+Math.imul(b,ie)|0,r=(r=r+Math.imul(b,ne)|0)+Math.imul(S,ie)|0,a=a+Math.imul(S,ne)|0,n=n+Math.imul(_,ae)|0,r=(r=r+Math.imul(_,oe)|0)+Math.imul(v,ae)|0,a=a+Math.imul(v,oe)|0,n=n+Math.imul(m,le)|0,r=(r=r+Math.imul(m,ce)|0)+Math.imul(f,le)|0,a=a+Math.imul(f,ce)|0;var Ce=(c+(n=n+Math.imul(d,de)|0)|0)+((8191&(r=(r=r+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;c=((a=a+Math.imul(h,he)|0)+(r>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(F,G),r=(r=Math.imul(F,Y))+Math.imul($,G)|0,a=Math.imul($,Y),n=n+Math.imul(L,H)|0,r=(r=r+Math.imul(L,q)|0)+Math.imul(P,H)|0,a=a+Math.imul(P,q)|0,n=n+Math.imul(N,j)|0,r=(r=r+Math.imul(N,J)|0)+Math.imul(O,j)|0,a=a+Math.imul(O,J)|0,n=n+Math.imul(R,K)|0,r=(r=r+Math.imul(R,Q)|0)+Math.imul(I,K)|0,a=a+Math.imul(I,Q)|0,n=n+Math.imul(A,X)|0,r=(r=r+Math.imul(A,ee)|0)+Math.imul(x,X)|0,a=a+Math.imul(x,ee)|0,n=n+Math.imul(w,ie)|0,r=(r=r+Math.imul(w,ne)|0)+Math.imul(C,ie)|0,a=a+Math.imul(C,ne)|0,n=n+Math.imul(b,ae)|0,r=(r=r+Math.imul(b,oe)|0)+Math.imul(S,ae)|0,a=a+Math.imul(S,oe)|0,n=n+Math.imul(_,le)|0,r=(r=r+Math.imul(_,ce)|0)+Math.imul(v,le)|0,a=a+Math.imul(v,ce)|0,n=n+Math.imul(m,de)|0,r=(r=r+Math.imul(m,he)|0)+Math.imul(f,de)|0,a=a+Math.imul(f,he)|0;var Te=(c+(n=n+Math.imul(d,me)|0)|0)+((8191&(r=(r=r+Math.imul(d,fe)|0)+Math.imul(h,me)|0))<<13)|0;c=((a=a+Math.imul(h,fe)|0)+(r>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(F,H),r=(r=Math.imul(F,q))+Math.imul($,H)|0,a=Math.imul($,q),n=n+Math.imul(L,j)|0,r=(r=r+Math.imul(L,J)|0)+Math.imul(P,j)|0,a=a+Math.imul(P,J)|0,n=n+Math.imul(N,K)|0,r=(r=r+Math.imul(N,Q)|0)+Math.imul(O,K)|0,a=a+Math.imul(O,Q)|0,n=n+Math.imul(R,X)|0,r=(r=r+Math.imul(R,ee)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,ee)|0,n=n+Math.imul(A,ie)|0,r=(r=r+Math.imul(A,ne)|0)+Math.imul(x,ie)|0,a=a+Math.imul(x,ne)|0,n=n+Math.imul(w,ae)|0,r=(r=r+Math.imul(w,oe)|0)+Math.imul(C,ae)|0,a=a+Math.imul(C,oe)|0,n=n+Math.imul(b,le)|0,r=(r=r+Math.imul(b,ce)|0)+Math.imul(S,le)|0,a=a+Math.imul(S,ce)|0,n=n+Math.imul(_,de)|0,r=(r=r+Math.imul(_,he)|0)+Math.imul(v,de)|0,a=a+Math.imul(v,he)|0;var Ae=(c+(n=n+Math.imul(m,me)|0)|0)+((8191&(r=(r=r+Math.imul(m,fe)|0)+Math.imul(f,me)|0))<<13)|0;c=((a=a+Math.imul(f,fe)|0)+(r>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(F,j),r=(r=Math.imul(F,J))+Math.imul($,j)|0,a=Math.imul($,J),n=n+Math.imul(L,K)|0,r=(r=r+Math.imul(L,Q)|0)+Math.imul(P,K)|0,a=a+Math.imul(P,Q)|0,n=n+Math.imul(N,X)|0,r=(r=r+Math.imul(N,ee)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,ee)|0,n=n+Math.imul(R,ie)|0,r=(r=r+Math.imul(R,ne)|0)+Math.imul(I,ie)|0,a=a+Math.imul(I,ne)|0,n=n+Math.imul(A,ae)|0,r=(r=r+Math.imul(A,oe)|0)+Math.imul(x,ae)|0,a=a+Math.imul(x,oe)|0,n=n+Math.imul(w,le)|0,r=(r=r+Math.imul(w,ce)|0)+Math.imul(C,le)|0,a=a+Math.imul(C,ce)|0,n=n+Math.imul(b,de)|0,r=(r=r+Math.imul(b,he)|0)+Math.imul(S,de)|0,a=a+Math.imul(S,he)|0;var xe=(c+(n=n+Math.imul(_,me)|0)|0)+((8191&(r=(r=r+Math.imul(_,fe)|0)+Math.imul(v,me)|0))<<13)|0;c=((a=a+Math.imul(v,fe)|0)+(r>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(F,K),r=(r=Math.imul(F,Q))+Math.imul($,K)|0,a=Math.imul($,Q),n=n+Math.imul(L,X)|0,r=(r=r+Math.imul(L,ee)|0)+Math.imul(P,X)|0,a=a+Math.imul(P,ee)|0,n=n+Math.imul(N,ie)|0,r=(r=r+Math.imul(N,ne)|0)+Math.imul(O,ie)|0,a=a+Math.imul(O,ne)|0,n=n+Math.imul(R,ae)|0,r=(r=r+Math.imul(R,oe)|0)+Math.imul(I,ae)|0,a=a+Math.imul(I,oe)|0,n=n+Math.imul(A,le)|0,r=(r=r+Math.imul(A,ce)|0)+Math.imul(x,le)|0,a=a+Math.imul(x,ce)|0,n=n+Math.imul(w,de)|0,r=(r=r+Math.imul(w,he)|0)+Math.imul(C,de)|0,a=a+Math.imul(C,he)|0;var Me=(c+(n=n+Math.imul(b,me)|0)|0)+((8191&(r=(r=r+Math.imul(b,fe)|0)+Math.imul(S,me)|0))<<13)|0;c=((a=a+Math.imul(S,fe)|0)+(r>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(F,X),r=(r=Math.imul(F,ee))+Math.imul($,X)|0,a=Math.imul($,ee),n=n+Math.imul(L,ie)|0,r=(r=r+Math.imul(L,ne)|0)+Math.imul(P,ie)|0,a=a+Math.imul(P,ne)|0,n=n+Math.imul(N,ae)|0,r=(r=r+Math.imul(N,oe)|0)+Math.imul(O,ae)|0,a=a+Math.imul(O,oe)|0,n=n+Math.imul(R,le)|0,r=(r=r+Math.imul(R,ce)|0)+Math.imul(I,le)|0,a=a+Math.imul(I,ce)|0,n=n+Math.imul(A,de)|0,r=(r=r+Math.imul(A,he)|0)+Math.imul(x,de)|0,a=a+Math.imul(x,he)|0;var Re=(c+(n=n+Math.imul(w,me)|0)|0)+((8191&(r=(r=r+Math.imul(w,fe)|0)+Math.imul(C,me)|0))<<13)|0;c=((a=a+Math.imul(C,fe)|0)+(r>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(F,ie),r=(r=Math.imul(F,ne))+Math.imul($,ie)|0,a=Math.imul($,ne),n=n+Math.imul(L,ae)|0,r=(r=r+Math.imul(L,oe)|0)+Math.imul(P,ae)|0,a=a+Math.imul(P,oe)|0,n=n+Math.imul(N,le)|0,r=(r=r+Math.imul(N,ce)|0)+Math.imul(O,le)|0,a=a+Math.imul(O,ce)|0,n=n+Math.imul(R,de)|0,r=(r=r+Math.imul(R,he)|0)+Math.imul(I,de)|0,a=a+Math.imul(I,he)|0;var Ie=(c+(n=n+Math.imul(A,me)|0)|0)+((8191&(r=(r=r+Math.imul(A,fe)|0)+Math.imul(x,me)|0))<<13)|0;c=((a=a+Math.imul(x,fe)|0)+(r>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(F,ae),r=(r=Math.imul(F,oe))+Math.imul($,ae)|0,a=Math.imul($,oe),n=n+Math.imul(L,le)|0,r=(r=r+Math.imul(L,ce)|0)+Math.imul(P,le)|0,a=a+Math.imul(P,ce)|0,n=n+Math.imul(N,de)|0,r=(r=r+Math.imul(N,he)|0)+Math.imul(O,de)|0,a=a+Math.imul(O,he)|0;var ke=(c+(n=n+Math.imul(R,me)|0)|0)+((8191&(r=(r=r+Math.imul(R,fe)|0)+Math.imul(I,me)|0))<<13)|0;c=((a=a+Math.imul(I,fe)|0)+(r>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(F,le),r=(r=Math.imul(F,ce))+Math.imul($,le)|0,a=Math.imul($,ce),n=n+Math.imul(L,de)|0,r=(r=r+Math.imul(L,he)|0)+Math.imul(P,de)|0,a=a+Math.imul(P,he)|0;var Ne=(c+(n=n+Math.imul(N,me)|0)|0)+((8191&(r=(r=r+Math.imul(N,fe)|0)+Math.imul(O,me)|0))<<13)|0;c=((a=a+Math.imul(O,fe)|0)+(r>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(F,de),r=(r=Math.imul(F,he))+Math.imul($,de)|0,a=Math.imul($,he);var Oe=(c+(n=n+Math.imul(L,me)|0)|0)+((8191&(r=(r=r+Math.imul(L,fe)|0)+Math.imul(P,me)|0))<<13)|0;c=((a=a+Math.imul(P,fe)|0)+(r>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var De=(c+(n=Math.imul(F,me))|0)+((8191&(r=(r=Math.imul(F,fe))+Math.imul($,me)|0))<<13)|0;return c=((a=Math.imul($,fe))+(r>>>13)|0)+(De>>>26)|0,De&=67108863,l[0]=ge,l[1]=_e,l[2]=ve,l[3]=ye,l[4]=be,l[5]=Se,l[6]=Ee,l[7]=we,l[8]=Ce,l[9]=Te,l[10]=Ae,l[11]=xe,l[12]=Me,l[13]=Re,l[14]=Ie,l[15]=ke,l[16]=Ne,l[17]=Oe,l[18]=De,0!==c&&(l[19]=c,i.length++),i};function m(e,t,i){return(new f).mulp(e,t,i)}function f(e,t){this.x=e,this.y=t}Math.imul||(p=h),r.prototype.mulTo=function(e,t){var i,n=this.length+e.length;return i=10===this.length&&10===e.length?p(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,r=0,a=0;a<i.length-1;a++){var o=r;r=0;for(var s=67108863&n,l=Math.min(a,t.length-1),c=Math.max(0,a-e.length+1);c<=l;c++){var u=a-c,d=(0|e.words[u])*(0|t.words[c]),h=67108863&d;s=67108863&(h=h+s|0),r+=(o=(o=o+(d/67108864|0)|0)+(h>>>26)|0)>>>26,o&=67108863}i.words[a]=s,n=o,o=r}return 0!==n?i.words[a]=n:i.length--,i.strip()}(this,e,t):m(this,e,t),i},f.prototype.makeRBT=function(e){for(var t=new Array(e),i=r.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,i,e);return t},f.prototype.revBin=function(e,t,i){if(0===e||e===i-1)return e;for(var n=0,r=0;r<t;r++)n|=(1&e)<<t-r-1,e>>=1;return n},f.prototype.permute=function(e,t,i,n,r,a){for(var o=0;o<a;o++)n[o]=t[e[o]],r[o]=i[e[o]]},f.prototype.transform=function(e,t,i,n,r,a){this.permute(a,e,t,i,n,r);for(var o=1;o<r;o<<=1)for(var s=o<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<r;u+=s)for(var d=l,h=c,p=0;p<o;p++){var m=i[u+p],f=n[u+p],g=i[u+p+o],_=n[u+p+o],v=d*g-h*_;_=d*_+h*g,g=v,i[u+p]=m+g,n[u+p]=f+_,i[u+p+o]=m-g,n[u+p+o]=f-_,p!==s&&(v=l*d-c*h,h=l*h+c*d,d=v)}},f.prototype.guessLen13b=function(e,t){var i=1|Math.max(t,e),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},f.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=e[n];e[n]=e[i-n-1],e[i-n-1]=r,r=t[n],t[n]=-t[i-n-1],t[i-n-1]=-r}},f.prototype.normalize13b=function(e,t){for(var i=0,n=0;n<t/2;n++){var r=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+i;e[n]=67108863&r,i=r<67108864?0:r/67108864|0}return e},f.prototype.convert13b=function(e,t,n,r){for(var a=0,o=0;o<t;o++)a+=0|e[o],n[2*o]=8191&a,a>>>=13,n[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<r;++o)n[o]=0;i(0===a),i(!(-8192&a))},f.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},f.prototype.mulp=function(e,t,i){var n=2*this.guessLen13b(e.length,t.length),r=this.makeRBT(n),a=this.stub(n),o=new Array(n),s=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),d=new Array(n),h=i.words;h.length=n,this.convert13b(e.words,e.length,o,n),this.convert13b(t.words,t.length,c,n),this.transform(o,a,s,l,n,r),this.transform(c,a,u,d,n,r);for(var p=0;p<n;p++){var m=s[p]*u[p]-l[p]*d[p];l[p]=s[p]*d[p]+l[p]*u[p],s[p]=m}return this.conjugate(s,l,n),this.transform(s,l,h,a,n,r),this.conjugate(h,a,n),this.normalize13b(h,n),i.negative=e.negative^t.negative,i.length=e.length+t.length,i.strip()},r.prototype.mul=function(e){var t=new r(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},r.prototype.mulf=function(e){var t=new r(null);return t.words=new Array(this.length+e.length),m(this,e,t)},r.prototype.imul=function(e){return this.clone().mulTo(e,this)},r.prototype.imuln=function(e){i("number"==typeof e),i(e<67108864);for(var t=0,n=0;n<this.length;n++){var r=(0|this.words[n])*e,a=(67108863&r)+(67108863&t);t>>=26,t+=r/67108864|0,t+=a>>>26,this.words[n]=67108863&a}return 0!==t&&(this.words[n]=t,this.length++),this.length=0===e?1:this.length,this},r.prototype.muln=function(e){return this.clone().imuln(e)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i<t.length;i++){var n=i/26|0,r=i%26;t[i]=(e.words[n]&1<<r)>>>r}return t}(e);if(0===t.length)return new r(1);for(var i=this,n=0;n<t.length&&0===t[n];n++,i=i.sqr());if(++n<t.length)for(var a=i.sqr();n<t.length;n++,a=a.sqr())0!==t[n]&&(i=i.mul(a));return i},r.prototype.iushln=function(e){i("number"==typeof e&&e>=0);var t,n=e%26,r=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,l=(0|this.words[t])-s<<n;this.words[t]=l|o,o=s>>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t<r;t++)this.words[t]=0;this.length+=r}return this.strip()},r.prototype.ishln=function(e){return i(0===this.negative),this.iushln(e)},r.prototype.iushrn=function(e,t,n){var r;i("number"==typeof e&&e>=0),r=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,l=n;if(r-=o,r=Math.max(0,r),l){for(var c=0;c<o;c++)l.words[c]=this.words[c];l.length=o}if(0===o);else if(this.length>o)for(this.length-=o,c=0;c<this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=r);c--){var d=0|this.words[c];this.words[c]=u<<26-a|d>>>a,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.ishrn=function(e,t,n){return i(0===this.negative),this.iushrn(e,t,n)},r.prototype.shln=function(e){return this.clone().ishln(e)},r.prototype.ushln=function(e){return this.clone().iushln(e)},r.prototype.shrn=function(e){return this.clone().ishrn(e)},r.prototype.ushrn=function(e){return this.clone().iushrn(e)},r.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,r=1<<t;return!(this.length<=n||!(this.words[n]&r))},r.prototype.imaskn=function(e){i("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var r=67108863^67108863>>>t<<t;this.words[this.length-1]&=r}return 0===this.length&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.maskn=function(e){return this.clone().imaskn(e)},r.prototype.iaddn=function(e){return i("number"==typeof e),i(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},r.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},r.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},r.prototype.addn=function(e){return this.clone().iaddn(e)},r.prototype.subn=function(e){return this.clone().isubn(e)},r.prototype.iabs=function(){return this.negative=0,this},r.prototype.abs=function(){return this.clone().iabs()},r.prototype._ishlnsubmul=function(e,t,n){var r,a,o=e.length+n;this._expand(o);var s=0;for(r=0;r<e.length;r++){a=(0|this.words[r+n])+s;var l=(0|e.words[r])*t;s=((a-=67108863&l)>>26)-(l/67108864|0),this.words[r+n]=67108863&a}for(;r<this.length-n;r++)s=(a=(0|this.words[r+n])+s)>>26,this.words[r+n]=67108863&a;if(0===s)return this.strip();for(i(-1===s),s=0,r=0;r<this.length;r++)s=(a=-(0|this.words[r])+s)>>26,this.words[r]=67108863&a;return this.negative=1,this.strip()},r.prototype._wordDiv=function(e,t){var i=(this.length,e.length),n=this.clone(),a=e,o=0|a.words[a.length-1];0!=(i=26-this._countBits(o))&&(a=a.ushln(i),n.iushln(i),o=0|a.words[a.length-1]);var s,l=n.length-a.length;if("mod"!==t){(s=new r(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(a,1,l);0===u.negative&&(n=u,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var h=67108864*(0|n.words[a.length+d])+(0|n.words[a.length+d-1]);for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(a,h,d);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(a,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=h)}return s&&s.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:s||null,mod:n}},r.prototype.divmod=function(e,t,n){return i(!e.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new r(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new r(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new r(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},r.prototype.div=function(e){return this.divmod(e,"div",!1).div},r.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},r.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},r.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),r=e.andln(1),a=i.cmp(n);return a<0||1===r&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},r.prototype.modn=function(e){i(e<=67108863);for(var t=(1<<26)%e,n=0,r=this.length-1;r>=0;r--)n=(t*n+(0|this.words[r]))%e;return n},r.prototype.idivn=function(e){i(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var r=(0|this.words[n])+67108864*t;this.words[n]=r/e|0,t=r%e}return this.strip()},r.prototype.divn=function(e){return this.clone().idivn(e)},r.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new r(1),o=new r(0),s=new r(0),l=new r(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var h=0,p=1;0===(t.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(u),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var m=0,f=1;0===(n.words[0]&f)&&m<26;++m,f<<=1);if(m>0)for(n.iushrn(m);m-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(l)):(n.isub(t),s.isub(a),l.isub(o))}return{a:s,b:l,gcd:n.iushln(c)}},r.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new r(1),s=new r(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0===(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var d=0,h=1;0===(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},r.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=t.cmp(i);if(r<0){var a=t;t=i,i=a}else if(0===r||0===i.cmpn(1))break;t.isub(i)}return i.iushln(n)},r.prototype.invm=function(e){return this.egcd(e).a.umod(e)},r.prototype.isEven=function(){return!(1&this.words[0])},r.prototype.isOdd=function(){return!(1&~this.words[0])},r.prototype.andln=function(e){return this.words[0]&e},r.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,n=(e-t)/26,r=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=r,this;for(var a=r,o=n;0!==a&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),i(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:r<e?-1:1}return 0!==this.negative?0|-t:t},r.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},r.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|e.words[i];if(n!==r){n<r?t=-1:n>r&&(t=1);break}}return t},r.prototype.gtn=function(e){return 1===this.cmpn(e)},r.prototype.gt=function(e){return 1===this.cmp(e)},r.prototype.gten=function(e){return this.cmpn(e)>=0},r.prototype.gte=function(e){return this.cmp(e)>=0},r.prototype.ltn=function(e){return-1===this.cmpn(e)},r.prototype.lt=function(e){return-1===this.cmp(e)},r.prototype.lten=function(e){return this.cmpn(e)<=0},r.prototype.lte=function(e){return this.cmp(e)<=0},r.prototype.eqn=function(e){return 0===this.cmpn(e)},r.prototype.eq=function(e){return 0===this.cmp(e)},r.red=function(e){return new E(e)},r.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},r.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(e){return this.red=e,this},r.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},r.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},r.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},r.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},r.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},r.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},r.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},r.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},r.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new r(t,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=r._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function w(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var e=new r(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},n(v,_),v.prototype.split=function(e,t){for(var i=4194303,n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var a=e.words[9];for(t.words[t.length++]=a&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(o&i)<<4|a>>>22,a=o}a>>>=22,e.words[r-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=0|e.words[i];t+=977*n,e.words[i]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(y,_),n(b,_),n(S,_),S.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+t,r=67108863&n;n>>>=26,e.words[i]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},r._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new b;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return g[e]=t,t},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){i(0===(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},E.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var n=this.m.add(new r(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);i(!a.isZero());var s=new r(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new r(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,a),h=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),m=o;0!==p.cmp(s);){for(var f=p,g=0;0!==f.cmp(s);g++)f=f.redSqr();i(g<m);var _=this.pow(d,new r(1).iushln(m-g-1));h=h.redMul(_),d=_.redSqr(),p=p.redMul(d),m=g}return h},E.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},E.prototype.pow=function(e,t){if(t.isZero())return new r(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=new Array(16);i[0]=new r(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var a=i[0],o=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],u=l-1;u>=0;u--){var d=c>>u&1;a!==i[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4===++s||0===n&&0===u)&&(a=this.mul(a,i[o]),s=0,o=0)):s=0}l=26}return a},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},r.mont=function(e){return new w(e)},n(w,E),w.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},w.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},w.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a._forceRed(this)},w.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new r(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=i.isub(n).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},w.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(bn$2,commonjsGlobal);var bnExports$2=bn$2.exports,api$2={},vmBrowserify={},hasRequiredVmBrowserify,hasRequiredApi;function requireVmBrowserify(){return hasRequiredVmBrowserify||(hasRequiredVmBrowserify=1,function(exports$1){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var i=0;i<e.length;i++)if(e[i]===t)return i;return-1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var i in e)t.push(i);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var i=0;i<e.length;i++)t(e[i],i,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,i){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:i})}}catch(e3){return function(e,t,i){e[t]=i}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports$1.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var i=t.contentWindow,n=i.eval,r=i.execScript;!n&&r&&(r.call(i,"null"),n=i.eval),forEach(Object_keys(e),function(t){i[t]=e[t]}),forEach(globals,function(t){e[t]&&(i[t]=e[t])});var a=Object_keys(i),o=n.call(i,this.code);return forEach(Object_keys(i),function(t){(t in e||-1===indexOf(a,t))&&(e[t]=i[t])}),forEach(globals,function(t){t in e||defineProp(e,t,i[t])}),document.body.removeChild(t),o},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),i=this.runInContext(t);return e&&forEach(Object_keys(t),function(i){e[i]=t[i]}),i},forEach(Object_keys(Script.prototype),function(e){exports$1[e]=Script[e]=function(t){var i=Script(t);return i[e].apply(i,[].slice.call(arguments,1))}}),exports$1.isContext=function(e){return e instanceof Context},exports$1.createScript=function(e){return exports$1.Script(e)},exports$1.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(i){t[i]=e[i]}),t}}(vmBrowserify)),vmBrowserify}function requireApi(){return hasRequiredApi||(hasRequiredApi=1,function(e){var t=requireAsn1(),i=inherits_browserExports;function n(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}e.define=function(e,t){return new n(e,t)},n.prototype._createNamed=function(e){var t;try{t=requireVmBrowserify().runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e3){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},n.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(t.decoders[e])),this.decoders[e]},n.prototype.decode=function(e,t,i){return this._getDecoder(t).decode(e,i)},n.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(t.encoders[e])),this.encoders[e]},n.prototype.encode=function(e,t,i){return this._getEncoder(t).encode(e,i)}}(api$2)),api$2}var base$1={},reporter={},inherits$u=inherits_browserExports;function Reporter(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function ReporterError(e,t){this.path=e,this.rethrow(t)}reporter.Reporter=Reporter,Reporter.prototype.isError=function(e){return e instanceof ReporterError},Reporter.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},Reporter.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},Reporter.prototype.enterKey=function(e){return this._reporterState.path.push(e)},Reporter.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},Reporter.prototype.leaveKey=function(e,t,i){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=i)},Reporter.prototype.path=function(){return this._reporterState.path.join("/")},Reporter.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},Reporter.prototype.leaveObject=function(e){var t=this._reporterState,i=t.obj;return t.obj=e,i},Reporter.prototype.error=function(e){var t,i=this._reporterState,n=e instanceof ReporterError;if(t=n?e:new ReporterError(i.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!i.options.partial)throw t;return n||i.errors.push(t),t},Reporter.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},inherits$u(ReporterError,Error),ReporterError.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,ReporterError),!this.stack)try{throw new Error(this.message)}catch(e3){this.stack=e3.stack}return this};var buffer={},hasRequiredBuffer,node,hasRequiredNode,hasRequiredBase;function requireBuffer(){if(hasRequiredBuffer)return buffer;hasRequiredBuffer=1;var e=inherits_browserExports,t=requireBase().Reporter,i=require$$0$1.Buffer;function n(e,n){t.call(this,n),i.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function r(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof r||(e=new r(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=i.byteLength(e);else{if(!i.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}return e(n,t),buffer.DecoderBuffer=n,n.prototype.save=function(){return{offset:this.offset,reporter:t.prototype.save.call(this)}},n.prototype.restore=function(e){var i=new n(this.base);return i.offset=e.offset,i.length=this.offset,this.offset=e.offset,t.prototype.restore.call(this,e.reporter),i},n.prototype.isEmpty=function(){return this.offset===this.length},n.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},n.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var i=new n(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+e,this.offset+=e,i},n.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},buffer.EncoderBuffer=r,r.prototype.join=function(e,t){return e||(e=new i(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(i){i.join(e,t),t+=i.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):i.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e},buffer}function requireNode(){if(hasRequiredNode)return node;hasRequiredNode=1;var e=requireBase().Reporter,t=requireBase().EncoderBuffer,i=requireBase().DecoderBuffer,n=minimalisticAssert,r=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],a=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(r);function o(e,t){var i={};this._baseState=i,i.enc=e,i.parent=t||null,i.children=null,i.tag=null,i.args=null,i.reverseArgs=null,i.choice=null,i.optional=!1,i.any=!1,i.obj=!1,i.use=null,i.useDecoder=null,i.key=null,i.default=null,i.explicit=null,i.implicit=null,i.contains=null,i.parent||(i.children=[],this._wrap())}node=o;var s=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];return o.prototype.clone=function(){var e=this._baseState,t={};s.forEach(function(i){t[i]=e[i]});var i=new this.constructor(t.parent);return i._baseState=t,i},o.prototype._wrap=function(){var e=this._baseState;a.forEach(function(t){this[t]=function(){var i=new this.constructor(this);return e.children.push(i),i[t].apply(i,arguments)}},this)},o.prototype._init=function(e){var t=this._baseState;n(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),n.equal(t.children.length,1,"Root node can have only one child")},o.prototype._useArgs=function(e){var t=this._baseState,i=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==i.length&&(n(null===t.children),t.children=i,i.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(n(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(i){i==(0|i)&&(i|=0);var n=e[i];t[n]=i}),t}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){o.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),r.forEach(function(e){o.prototype[e]=function(){var t=this._baseState,i=Array.prototype.slice.call(arguments);return n(null===t.tag),t.tag=e,this._useArgs(i),this}}),o.prototype.use=function(e){n(e);var t=this._baseState;return n(null===t.use),t.use=e,this},o.prototype.optional=function(){return this._baseState.optional=!0,this},o.prototype.def=function(e){var t=this._baseState;return n(null===t.default),t.default=e,t.optional=!0,this},o.prototype.explicit=function(e){var t=this._baseState;return n(null===t.explicit&&null===t.implicit),t.explicit=e,this},o.prototype.implicit=function(e){var t=this._baseState;return n(null===t.explicit&&null===t.implicit),t.implicit=e,this},o.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},o.prototype.key=function(e){var t=this._baseState;return n(null===t.key),t.key=e,this},o.prototype.any=function(){return this._baseState.any=!0,this},o.prototype.choice=function(e){var t=this._baseState;return n(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},o.prototype.contains=function(e){var t=this._baseState;return n(null===t.use),t.contains=e,this},o.prototype._decode=function(e,t){var n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var r,a=n.default,o=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){var l=null;if(null!==n.explicit?l=n.explicit:null!==n.implicit?l=n.implicit:null!==n.tag&&(l=n.tag),null!==l||n.any){if(o=this._peekTag(e,l,n.any),e.isError(o))return o}else{var c=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),o=!0}catch(e3){o=!1}e.restore(c)}}if(n.obj&&o&&(r=e.enterObject()),o){if(null!==n.explicit){var u=this._decodeTag(e,n.explicit);if(e.isError(u))return u;e=u}var d=e.offset;if(null===n.use&&null===n.choice){if(n.any)c=e.save();var h=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(h))return h;n.any?a=e.raw(c):e=h}if(t&&t.track&&null!==n.tag&&t.track(e.path(),d,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(a=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(a))return a;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(i){i._decode(e,t)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var p=new i(a);a=this._getUse(n.contains,e._reporterState.obj)._decode(p,t)}}return n.obj&&o&&(a=e.leaveObject(r)),null===n.key||null===a&&!0!==o?null!==s&&e.exitKey(s):e.leaveKey(s,n.key,a),a},o.prototype._decodeGeneric=function(e,t,i){var n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],i):/str$/.test(e)?this._decodeStr(t,e,i):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],i):"objid"===e?this._decodeObjid(t,null,null,i):"gentime"===e||"utctime"===e?this._decodeTime(t,e,i):"null_"===e?this._decodeNull(t,i):"bool"===e?this._decodeBool(t,i):"objDesc"===e?this._decodeStr(t,e,i):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],i):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,i):t.error("unknown tag: "+e)},o.prototype._getUse=function(e,t){var i=this._baseState;return i.useDecoder=this._use(e,t),n(null===i.useDecoder._baseState.parent),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder},o.prototype._decodeChoice=function(e,t){var i=this._baseState,n=null,r=!1;return Object.keys(i.choice).some(function(a){var o=e.save(),s=i.choice[a];try{var l=s._decode(e,t);if(e.isError(l))return!1;n={type:a,value:l},r=!0}catch(e3){return e.restore(o),!1}return!0},this),r?n:e.error("Choice not matched")},o.prototype._createEncoderBuffer=function(e){return new t(e,this.reporter)},o.prototype._encode=function(e,t,i){var n=this._baseState;if(null===n.default||n.default!==e){var r=this._encodeValue(e,t,i);if(void 0!==r&&!this._skipDefault(r,t,i))return r}},o.prototype._encodeValue=function(t,i,n){var r=this._baseState;if(null===r.parent)return r.children[0]._encode(t,i||new e);var a=null;if(this.reporter=i,r.optional&&void 0===t){if(null===r.default)return;t=r.default}var o=null,s=!1;if(r.any)a=this._createEncoderBuffer(t);else if(r.choice)a=this._encodeChoice(t,i);else if(r.contains)o=this._getUse(r.contains,n)._encode(t,i),s=!0;else if(r.children)o=r.children.map(function(e){if("null_"===e._baseState.tag)return e._encode(null,i,t);if(null===e._baseState.key)return i.error("Child should have a key");var n=i.enterKey(e._baseState.key);if("object"!=typeof t)return i.error("Child expected, but input is not object");var r=e._encode(t[e._baseState.key],i,t);return i.leaveKey(n),r},this).filter(function(e){return e}),o=this._createEncoderBuffer(o);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return i.error("Too many args for : "+r.tag);if(!Array.isArray(t))return i.error("seqof/setof, but data is not Array");var l=this.clone();l._baseState.implicit=null,o=this._createEncoderBuffer(t.map(function(e){var n=this._baseState;return this._getUse(n.args[0],t)._encode(e,i)},l))}else null!==r.use?a=this._getUse(r.use,n)._encode(t,i):(o=this._encodePrimitive(r.tag,t),s=!0);if(!r.any&&null===r.choice){var c=null!==r.implicit?r.implicit:r.tag,u=null===r.implicit?"universal":"context";null===c?null===r.use&&i.error("Tag could be omitted only for .use()"):null===r.use&&(a=this._encodeComposite(c,s,u,o))}return null!==r.explicit&&(a=this._encodeComposite(r.explicit,!1,"context",a)),a},o.prototype._encodeChoice=function(e,t){var i=this._baseState,r=i.choice[e.type];return r||n(!1,e.type+" not found in "+JSON.stringify(Object.keys(i.choice))),r._encode(e.value,t)},o.prototype._encodePrimitive=function(e,t){var i=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&i.args)return this._encodeObjid(t,i.reverseArgs[0],i.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,i.args&&i.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},o.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},o.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)},node}function requireBase(){return hasRequiredBase||(hasRequiredBase=1,(e=base$1).Reporter=reporter.Reporter,e.DecoderBuffer=requireBuffer().DecoderBuffer,e.EncoderBuffer=requireBuffer().EncoderBuffer,e.Node=requireNode()),base$1;var e}var constants$2={},der={},hasRequiredDer$2,hasRequiredConstants;function requireDer$2(){return hasRequiredDer$2||(hasRequiredDer$2=1,function(e){var t=requireConstants();e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=t._reverse(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=t._reverse(e.tag)}(der)),der}function requireConstants(){return hasRequiredConstants||(hasRequiredConstants=1,(e=constants$2)._reverse=function(e){var t={};return Object.keys(e).forEach(function(i){(0|i)==i&&(i|=0);var n=e[i];t[n]=i}),t},e.der=requireDer$2()),constants$2;var e}var decoders={},der_1$1,hasRequiredDer$1,pem$1,hasRequiredPem$1,hasRequiredDecoders;function requireDer$1(){if(hasRequiredDer$1)return der_1$1;hasRequiredDer$1=1;var e=inherits_browserExports,t=requireAsn1(),i=t.base,n=t.bignum,r=t.constants.der;function a(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new o,this.tree._init(e.body)}function o(e){i.Node.call(this,"der",e)}function s(e,t){var i=e.readUInt8(t);if(e.isError(i))return i;var n=r.tagClass[i>>6],a=!(32&i);if(31&~i)i&=31;else{var o=i;for(i=0;!(128&~o);){if(o=e.readUInt8(t),e.isError(o))return o;i<<=7,i|=127&o}}return{cls:n,primitive:a,tag:i,tagStr:r.tag[i]}}function l(e,t,i){var n=e.readUInt8(i);if(e.isError(n))return n;if(!t&&128===n)return null;if(!(128&n))return n;var r=127&n;if(r>4)return e.error("length octect is too long");n=0;for(var a=0;a<r;a++){n<<=8;var o=e.readUInt8(i);if(e.isError(o))return o;n|=o}return n}return der_1$1=a,a.prototype.decode=function(e,t){return e instanceof i.DecoderBuffer||(e=new i.DecoderBuffer(e,t)),this.tree._decode(e,t)},e(o,i.Node),o.prototype._peekTag=function(e,t,i){if(e.isEmpty())return!1;var n=e.save(),r=s(e,'Failed to peek tag: "'+t+'"');return e.isError(r)?r:(e.restore(n),r.tag===t||r.tagStr===t||r.tagStr+"of"===t||i)},o.prototype._decodeTag=function(e,t,i){var n=s(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;var r=l(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(r))return r;if(!i&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==r)return e.skip(r,'Failed to match body of: "'+t+'"');var a=e.save(),o=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(o)?o:(r=e.offset-a.offset,e.restore(a),e.skip(r,'Failed to match body of: "'+t+'"'))},o.prototype._skipUntilEnd=function(e,t){for(;;){var i=s(e,t);if(e.isError(i))return i;var n,r=l(e,i.primitive,t);if(e.isError(r))return r;if(n=i.primitive||null!==r?e.skip(r):this._skipUntilEnd(e,t),e.isError(n))return n;if("end"===i.tagStr)break}},o.prototype._decodeList=function(e,t,i,n){for(var r=[];!e.isEmpty();){var a=this._peekTag(e,"end");if(e.isError(a))return a;var o=i.decode(e,"der",n);if(e.isError(o)&&a)break;r.push(o)}return r},o.prototype._decodeStr=function(e,t){if("bitstr"===t){var i=e.readUInt8();return e.isError(i)?i:{unused:i,data:e.raw()}}if("bmpstr"===t){var n=e.raw();if(n.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var r="",a=0;a<n.length/2;a++)r+=String.fromCharCode(n.readUInt16BE(2*a));return r}if("numstr"===t){var o=e.raw().toString("ascii");return this._isNumstr(o)?o:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},o.prototype._decodeObjid=function(e,t,i){for(var n,r=[],a=0;!e.isEmpty();){var o=e.readUInt8();a<<=7,a|=127&o,128&o||(r.push(a),a=0)}128&o&&r.push(a);var s=r[0]/40|0,l=r[0]%40;if(n=i?r:[s,l].concat(r.slice(1)),t){var c=t[n.join(" ")];void 0===c&&(c=t[n.join(".")]),void 0!==c&&(n=c)}return n},o.prototype._decodeTime=function(e,t){var i=e.raw().toString();if("gentime"===t)var n=0|i.slice(0,4),r=0|i.slice(4,6),a=0|i.slice(6,8),o=0|i.slice(8,10),s=0|i.slice(10,12),l=0|i.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");n=0|i.slice(0,2),r=0|i.slice(2,4),a=0|i.slice(4,6),o=0|i.slice(6,8),s=0|i.slice(8,10),l=0|i.slice(10,12);n=n<70?2e3+n:1900+n}return Date.UTC(n,r-1,a,o,s,l,0)},o.prototype._decodeNull=function(e){return null},o.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},o.prototype._decodeInt=function(e,t){var i=e.raw(),r=new n(i);return t&&(r=t[r.toString(10)]||r),r},o.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree},der_1$1}function requirePem$1(){if(hasRequiredPem$1)return pem$1;hasRequiredPem$1=1;var e=inherits_browserExports,t=require$$0$1.Buffer,i=requireDer$1();function n(e){i.call(this,e),this.enc="pem"}return e(n,i),pem$1=n,n.prototype.decode=function(e,n){for(var r=e.toString().split(/[\r\n]+/g),a=n.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,l=-1,c=0;c<r.length;c++){var u=r[c].match(o);if(null!==u&&u[2]===a){if(-1!==s){if("END"!==u[1])break;l=c;break}if("BEGIN"!==u[1])break;s=c}}if(-1===s||-1===l)throw new Error("PEM section not found for: "+a);var d=r.slice(s+1,l).join("");d.replace(/[^a-z0-9\+\/=]+/gi,"");var h=new t(d,"base64");return i.prototype.decode.call(this,h,n)},pem$1}function requireDecoders(){return hasRequiredDecoders||(hasRequiredDecoders=1,(e=decoders).der=requireDer$1(),e.pem=requirePem$1()),decoders;var e}var encoders={},der_1,hasRequiredDer,pem,hasRequiredPem,hasRequiredEncoders,hasRequiredAsn1;function requireDer(){if(hasRequiredDer)return der_1;hasRequiredDer=1;var e=inherits_browserExports,t=require$$0$1.Buffer,i=requireAsn1(),n=i.base,r=i.constants.der;function a(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new o,this.tree._init(e.body)}function o(e){n.Node.call(this,"der",e)}function s(e){return e<10?"0"+e:e}return der_1=a,a.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},e(o,n.Node),o.prototype._encodeComposite=function(e,i,n,a){var o,s=function(e,t,i,n){var a;"seqof"===e?e="seq":"setof"===e&&(e="set");if(r.tagByName.hasOwnProperty(e))a=r.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);a=e}if(a>=31)return n.error("Multi-octet tag encoding unsupported");t||(a|=32);return a|=r.tagClassByName[i||"universal"]<<6,a}(e,i,n,this.reporter);if(a.length<128)return(o=new t(2))[0]=s,o[1]=a.length,this._createEncoderBuffer([o,a]);for(var l=1,c=a.length;c>=256;c>>=8)l++;(o=new t(2+l))[0]=s,o[1]=128|l;c=1+l;for(var u=a.length;u>0;c--,u>>=8)o[c]=255&u;return this._createEncoderBuffer([o,a])},o.prototype._encodeStr=function(e,i){if("bitstr"===i)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===i){for(var n=new t(2*e.length),r=0;r<e.length;r++)n.writeUInt16BE(e.charCodeAt(r),2*r);return this._createEncoderBuffer(n)}return"numstr"===i?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===i?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(i)||"objDesc"===i?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+i+" unsupported")},o.prototype._encodeObjid=function(e,i,n){if("string"==typeof e){if(!i)return this.reporter.error("string objid given, but no values map found");if(!i.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=i[e].split(/[\s\.]+/g);for(var r=0;r<e.length;r++)e[r]|=0}else if(Array.isArray(e)){e=e.slice();for(r=0;r<e.length;r++)e[r]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var a=0;for(r=0;r<e.length;r++){var o=e[r];for(a++;o>=128;o>>=7)a++}var s=new t(a),l=s.length-1;for(r=e.length-1;r>=0;r--){o=e[r];for(s[l--]=127&o;(o>>=7)>0;)s[l--]=128|127&o}return this._createEncoderBuffer(s)},o.prototype._encodeTime=function(e,t){var i,n=new Date(e);return"gentime"===t?i=[s(n.getFullYear()),s(n.getUTCMonth()+1),s(n.getUTCDate()),s(n.getUTCHours()),s(n.getUTCMinutes()),s(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?i=[s(n.getFullYear()%100),s(n.getUTCMonth()+1),s(n.getUTCDate()),s(n.getUTCHours()),s(n.getUTCMinutes()),s(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(i,"octstr")},o.prototype._encodeNull=function(){return this._createEncoderBuffer("")},o.prototype._encodeInt=function(e,i){if("string"==typeof e){if(!i)return this.reporter.error("String int or enum given, but no values map");if(!i.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=i[e]}if("number"!=typeof e&&!t.isBuffer(e)){var n=e.toArray();!e.sign&&128&n[0]&&n.unshift(0),e=new t(n)}if(t.isBuffer(e)){var r=e.length;0===e.length&&r++;var a=new t(r);return e.copy(a),0===e.length&&(a[0]=0),this._createEncoderBuffer(a)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);r=1;for(var o=e;o>=256;o>>=8)r++;for(o=(a=new Array(r)).length-1;o>=0;o--)a[o]=255&e,e>>=8;return 128&a[0]&&a.unshift(0),this._createEncoderBuffer(new t(a))},o.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},o.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},o.prototype._skipDefault=function(e,t,i){var n,r=this._baseState;if(null===r.default)return!1;var a=e.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,t,i).join()),a.length!==r.defaultBuffer.length)return!1;for(n=0;n<a.length;n++)if(a[n]!==r.defaultBuffer[n])return!1;return!0},der_1}function requirePem(){if(hasRequiredPem)return pem;hasRequiredPem=1;var e=inherits_browserExports,t=requireDer();function i(e){t.call(this,e),this.enc="pem"}return e(i,t),pem=i,i.prototype.encode=function(e,i){for(var n=t.prototype.encode.call(this,e).toString("base64"),r=["-----BEGIN "+i.label+"-----"],a=0;a<n.length;a+=64)r.push(n.slice(a,a+64));return r.push("-----END "+i.label+"-----"),r.join("\n")},pem}function requireEncoders(){return hasRequiredEncoders||(hasRequiredEncoders=1,(e=encoders).der=requireDer(),e.pem=requirePem()),encoders;var e}function requireAsn1(){return hasRequiredAsn1||(hasRequiredAsn1=1,(e=asn1$2).bignum=bnExports$2,e.define=requireApi().define,e.base=requireBase(),e.constants=requireConstants(),e.decoders=requireDecoders(),e.encoders=requireEncoders()),asn1$2;var e}var asn=requireAsn1(),Time=asn.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),AttributeTypeValue=asn.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),AlgorithmIdentifier$1=asn.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),SubjectPublicKeyInfo=asn.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(AlgorithmIdentifier$1),this.key("subjectPublicKey").bitstr())}),RelativeDistinguishedName=asn.define("RelativeDistinguishedName",function(){this.setof(AttributeTypeValue)}),RDNSequence=asn.define("RDNSequence",function(){this.seqof(RelativeDistinguishedName)}),Name=asn.define("Name",function(){this.choice({rdnSequence:this.use(RDNSequence)})}),Validity=asn.define("Validity",function(){this.seq().obj(this.key("notBefore").use(Time),this.key("notAfter").use(Time))}),Extension=asn.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),TBSCertificate=asn.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(AlgorithmIdentifier$1),this.key("issuer").use(Name),this.key("validity").use(Validity),this.key("subject").use(Name),this.key("subjectPublicKeyInfo").use(SubjectPublicKeyInfo),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(Extension).optional())}),X509Certificate=asn.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(TBSCertificate),this.key("signatureAlgorithm").use(AlgorithmIdentifier$1),this.key("signatureValue").bitstr())}),certificate=X509Certificate,asn1$1=requireAsn1();asn1$3.certificate=certificate;var RSAPrivateKey=asn1$1.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});asn1$3.RSAPrivateKey=RSAPrivateKey;var RSAPublicKey=asn1$1.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});asn1$3.RSAPublicKey=RSAPublicKey;var AlgorithmIdentifier=asn1$1.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),PublicKey=asn1$1.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(AlgorithmIdentifier),this.key("subjectPublicKey").bitstr())});asn1$3.PublicKey=PublicKey;var PrivateKeyInfo=asn1$1.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(AlgorithmIdentifier),this.key("subjectPrivateKey").octstr())});asn1$3.PrivateKey=PrivateKeyInfo;var EncryptedPrivateKeyInfo=asn1$1.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});asn1$3.EncryptedPrivateKey=EncryptedPrivateKeyInfo;var DSAPrivateKey=asn1$1.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});asn1$3.DSAPrivateKey=DSAPrivateKey,asn1$3.DSAparam=asn1$1.define("DSAparam",function(){this.int()});var ECParameters=asn1$1.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),ECPrivateKey=asn1$1.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(ECParameters),this.key("publicKey").optional().explicit(1).bitstr())});asn1$3.ECPrivateKey=ECPrivateKey,asn1$3.signature=asn1$1.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())});const require$$1={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"};var findProc=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,startRegex=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,fullRegex=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,evp=evp_bytestokey,ciphers$1=browser$b,Buffer$6=safeBufferExports$2.Buffer,fixProc$1=function(e,t){var i,n=e.toString(),r=n.match(findProc);if(r){var a="aes"+r[1],o=Buffer$6.from(r[2],"hex"),s=Buffer$6.from(r[3].replace(/[\r\n]/g,""),"base64"),l=evp(t,o.slice(0,8),parseInt(r[1],10)).key,c=[],u=ciphers$1.createDecipheriv(a,l,o);c.push(u.update(s)),c.push(u.final()),i=Buffer$6.concat(c)}else{var d=n.match(fullRegex);i=Buffer$6.from(d[2].replace(/[\r\n]/g,""),"base64")}return{tag:n.match(startRegex)[1],data:i}},asn1=asn1$3,aesid=require$$1,fixProc=fixProc$1,ciphers=browser$b,pbkdf2Sync=browser$d.pbkdf2Sync,Buffer$5=safeBufferExports$2.Buffer;function decrypt(e,t){var i=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),r=aesid[e.algorithm.decrypt.cipher.algo.join(".")],a=e.algorithm.decrypt.cipher.iv,o=e.subjectPrivateKey,s=parseInt(r.split("-")[1],10)/8,l=pbkdf2Sync(t,i,n,s,"sha1"),c=ciphers.createDecipheriv(r,l,a),u=[];return u.push(c.update(o)),u.push(c.final()),Buffer$5.concat(u)}function parseKeys$2(e){var t;"object"!=typeof e||Buffer$5.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=Buffer$5.from(e));var i,n,r=fixProc(e,t),a=r.tag,o=r.data;switch(a){case"CERTIFICATE":n=asn1.certificate.decode(o,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(n||(n=asn1.PublicKey.decode(o,"der")),i=n.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return asn1.RSAPublicKey.decode(n.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return n.subjectPrivateKey=n.subjectPublicKey,{type:"ec",data:n};case"1.2.840.10040.4.1":return n.algorithm.params.pub_key=asn1.DSAparam.decode(n.subjectPublicKey.data,"der"),{type:"dsa",data:n.algorithm.params};default:throw new Error("unknown key id "+i)}case"ENCRYPTED PRIVATE KEY":o=decrypt(o=asn1.EncryptedPrivateKey.decode(o,"der"),t);case"PRIVATE KEY":switch(i=(n=asn1.PrivateKey.decode(o,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return asn1.RSAPrivateKey.decode(n.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:n.algorithm.curve,privateKey:asn1.ECPrivateKey.decode(n.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return n.algorithm.params.priv_key=asn1.DSAparam.decode(n.subjectPrivateKey,"der"),{type:"dsa",params:n.algorithm.params};default:throw new Error("unknown key id "+i)}case"RSA PUBLIC KEY":return asn1.RSAPublicKey.decode(o,"der");case"RSA PRIVATE KEY":return asn1.RSAPrivateKey.decode(o,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:asn1.DSAPrivateKey.decode(o,"der")};case"EC PRIVATE KEY":return{curve:(o=asn1.ECPrivateKey.decode(o,"der")).parameters.value,privateKey:o.privateKey};default:throw new Error("unknown key type "+a)}}parseKeys$2.signature=asn1.signature;var parseAsn1=parseKeys$2;const require$$4={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"};var hasRequiredSign,verify_1,hasRequiredVerify,browser$9,hasRequiredBrowser$2;function requireSign(){if(hasRequiredSign)return sign.exports;hasRequiredSign=1;var e=safeBufferExports$2.Buffer,t=browser$e,i=browserifyRsa,n=requireElliptic().ec,r=bnExports$6,a=parseAsn1,o=require$$4;function s(i,n,r,a){if((i=e.from(i.toArray())).length<n.byteLength()){var o=e.alloc(n.byteLength()-i.length);i=e.concat([o,i])}var s=r.length,c=function(t,i){t=l(t,i),t=t.mod(i);var n=e.from(t.toArray());if(n.length<i.byteLength()){var r=e.alloc(i.byteLength()-n.length);n=e.concat([r,n])}return n}(r,n),u=e.alloc(s);u.fill(1);var d=e.alloc(s);return d=t(a,d).update(u).update(e.from([0])).update(i).update(c).digest(),u=t(a,d).update(u).digest(),{k:d=t(a,d).update(u).update(e.from([1])).update(i).update(c).digest(),v:u=t(a,d).update(u).digest()}}function l(e,t){var i=new r(e),n=(e.length<<3)-t.bitLength();return n>0&&i.ishrn(n),i}function c(i,n,r){var a,o;do{for(a=e.alloc(0);8*a.length<i.bitLength();)n.v=t(r,n.k).update(n.v).digest(),a=e.concat([a,n.v]);o=l(a,i),n.k=t(r,n.k).update(n.v).update(e.from([0])).digest(),n.v=t(r,n.k).update(n.v).digest()}while(-1!==o.cmp(i));return o}function u(e,t,i,n){return e.toRed(r.mont(i)).redPow(t).fromRed().mod(n)}return sign.exports=function(t,d,h,p,m){var f=a(d);if(f.curve){if("ecdsa"!==p&&"ecdsa/rsa"!==p)throw new Error("wrong private key type");return function(t,i){var r=o[i.curve.join(".")];if(!r)throw new Error("unknown curve "+i.curve.join("."));var a=new n(r),s=a.keyFromPrivate(i.privateKey),l=s.sign(t);return e.from(l.toDER())}(t,f)}if("dsa"===f.type){if("dsa"!==p)throw new Error("wrong private key type");return function(t,i,n){var a,o=i.params.priv_key,d=i.params.p,h=i.params.q,p=i.params.g,m=new r(0),f=l(t,h).mod(h),g=!1,_=s(o,h,t,n);for(;!1===g;)m=u(p,a=c(h,_,n),d,h),0===(g=a.invm(h).imul(f.add(o.mul(m))).mod(h)).cmpn(0)&&(g=!1,m=new r(0));return function(t,i){t=t.toArray(),i=i.toArray(),128&t[0]&&(t=[0].concat(t));128&i[0]&&(i=[0].concat(i));var n=t.length+i.length+4,r=[48,n,2,t.length];return r=r.concat(t,[2,i.length],i),e.from(r)}(m,g)}(t,f,h)}if("rsa"!==p&&"ecdsa/rsa"!==p)throw new Error("wrong private key type");if(void 0!==d.padding&&1!==d.padding)throw new Error("illegal or unsupported padding mode");t=e.concat([m,t]);for(var g=f.modulus.byteLength(),_=[0,1];t.length+_.length+1<g;)_.push(255);_.push(0);for(var v=-1;++v<t.length;)_.push(t[v]);return i(_,f)},sign.exports.getKey=s,sign.exports.makeKey=c,sign.exports}function requireVerify(){if(hasRequiredVerify)return verify_1;hasRequiredVerify=1;var e=safeBufferExports$2.Buffer,t=bnExports$6,i=requireElliptic().ec,n=parseAsn1,r=require$$4;function a(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=0)throw new Error("invalid sig")}return verify_1=function(o,s,l,c,u){var d=n(l);if("ec"===d.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(e,t,n){var a=r[n.data.algorithm.curve.join(".")];if(!a)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var o=new i(a),s=n.data.subjectPrivateKey.data;return o.verify(t,e,s)}(o,s,d)}if("dsa"===d.type){if("dsa"!==c)throw new Error("wrong public key type");return function(e,i,r){var o=r.data.p,s=r.data.q,l=r.data.g,c=r.data.pub_key,u=n.signature.decode(e,"der"),d=u.s,h=u.r;a(d,s),a(h,s);var p=t.mont(o),m=d.invm(s),f=l.toRed(p).redPow(new t(i).mul(m).mod(s)).fromRed().mul(c.toRed(p).redPow(h.mul(m).mod(s)).fromRed()).mod(o).mod(s);return 0===f.cmp(h)}(o,s,d)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");s=e.concat([u,s]);for(var h=d.modulus.byteLength(),p=[1],m=0;s.length+p.length+2<h;)p.push(255),m+=1;p.push(0);for(var f=-1;++f<s.length;)p.push(s[f]);p=e.from(p);var g=t.mont(d.modulus);o=(o=new t(o).toRed(g)).redPow(new t(d.publicExponent)),o=e.from(o.fromRed().toArray());var _=m<8?1:0;for(h=Math.min(o.length,p.length),o.length!==p.length&&(_=1),f=-1;++f<h;)_|=o[f]^p[f];return 0===_},verify_1}function requireBrowser$2(){if(hasRequiredBrowser$2)return browser$9;hasRequiredBrowser$2=1;var e=safeBufferExports$2.Buffer,t=browser$f,i=readableBrowserExports,n=inherits_browserExports,r=requireSign(),a=requireVerify(),o=require$$6;function s(e){i.Writable.call(this);var n=o[e];if(!n)throw new Error("Unknown message digest");this._hashType=n.hash,this._hash=t(n.hash),this._tag=n.id,this._signType=n.sign}function l(e){i.Writable.call(this);var n=o[e];if(!n)throw new Error("Unknown message digest");this._hash=t(n.hash),this._tag=n.id,this._signType=n.sign}function c(e){return new s(e)}function u(e){return new l(e)}return Object.keys(o).forEach(function(t){o[t].id=e.from(o[t].id,"hex"),o[t.toLowerCase()]=o[t]}),n(s,i.Writable),s.prototype._write=function(e,t,i){this._hash.update(e),i()},s.prototype.update=function(t,i){return this._hash.update("string"==typeof t?e.from(t,i):t),this},s.prototype.sign=function(e,t){this.end();var i=this._hash.digest(),n=r(i,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},n(l,i.Writable),l.prototype._write=function(e,t,i){this._hash.update(e),i()},l.prototype.update=function(t,i){return this._hash.update("string"==typeof t?e.from(t,i):t),this},l.prototype.verify=function(t,i,n){var r="string"==typeof i?e.from(i,n):i;this.end();var o=this._hash.digest();return a(r,o,t,this._signType,this._tag)},browser$9={Sign:c,Verify:u,createSign:c,createVerify:u}}var bn$1={exports:{}};bn$1.exports,function(e,t){function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function r(e,t,i){if(r.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var a;"object"==typeof e?e.exports=r:t.BN=r,r.BN=r,r.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:require$$0$1.Buffer}catch(e3){}function o(e,t){var i=e.charCodeAt(t);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function s(e,t,i){var n=o(e,i);return i-1>=t&&(n|=o(e,i-1)<<4),n}function l(e,t,i,n){for(var r=0,a=Math.min(e.length,i),o=t;o<a;o++){var s=e.charCodeAt(o)-48;r*=n,r+=s>=49?s-49+10:s>=17?s-17+10:s}return r}r.isBN=function(e){return e instanceof r||null!==e&&"object"==typeof e&&e.constructor.wordSize===r.wordSize&&Array.isArray(e.words)},r.max=function(e,t){return e.cmp(t)>0?e:t},r.min=function(e,t){return e.cmp(t)<0?e:t},r.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r<e.length&&(16===t?this._parseHex(e,r,n):(this._parseBase(e,t,r),"le"===n&&this._initArray(this.toArray(),t,n)))},r.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},r.prototype._initArray=function(e,t,n){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var a,o,s=0;if("be"===n)for(r=e.length-1,a=0;r>=0;r-=3)o=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===n)for(r=0,a=0;r<e.length;r+=3)o=e[r]|e[r+1]<<8|e[r+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},r.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,a=0,o=0;if("be"===i)for(n=e.length-1;n>=t;n-=2)r=s(e,t,n)<<a,this.words[o]|=67108863&r,a>=18?(a-=18,o+=1,this.words[o]|=r>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)r=s(e,t,n)<<a,this.words[o]|=67108863&r,a>=18?(a-=18,o+=1,this.words[o]|=r>>>26):a+=8;this.strip()},r.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=t)n++;n--,r=r/t|0;for(var a=e.length-i,o=a%n,s=Math.min(a,a-o)+i,c=0,u=i;u<s;u+=n)c=l(e,u,u+n,t),this.imuln(r),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){var d=1;for(c=l(e,u,e.length,t),u=0;u<o;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this.strip()},r.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},r.prototype.clone=function(){var e=new r(null);return this.copy(e),e},r.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},r.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},r.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var r=0|e.words[0],a=0|t.words[0],o=r*a,s=67108863&o,l=o/67108864|0;i.words[0]=s;for(var c=1;c<n;c++){for(var u=l>>>26,d=67108863&l,h=Math.min(c,t.length-1),p=Math.max(0,c-e.length+1);p<=h;p++){var m=c-p|0;u+=(o=(r=0|e.words[m])*(a=0|t.words[p])+d)/67108864|0,d=67108863&o}i.words[c]=0|d,l=0|u}return 0!==l?i.words[c]=0|l:i.length--,i.strip()}r.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var r=0,a=0,o=0;o<this.length;o++){var s=this.words[o],l=(16777215&(s<<r|a)).toString(16);a=s>>>24-r&16777215,(r+=2)>=26&&(r-=26,o--),n=0!==a||o!==this.length-1?c[6-l.length]+l+n:l+n}for(0!==a&&(n=a.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var h=u[e],p=d[e];n="";var m=this.clone();for(m.negative=0;!m.isZero();){var f=m.modn(p).toString(e);n=(m=m.idivn(p)).isZero()?f+n:c[h-f.length]+f+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},r.prototype.toJSON=function(){return this.toString(16)},r.prototype.toBuffer=function(e,t){return i(void 0!==a),this.toArrayLike(a,e,t)},r.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},r.prototype.toArrayLike=function(e,t,n){var r=this.byteLength(),a=n||Math.max(1,r);i(r<=a,"byte array longer than desired length"),i(a>0,"Requested array length <= 0"),this.strip();var o,s,l="le"===t,c=new e(a),u=this.clone();if(l){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[s]=o;for(;s<a;s++)c[s]=0}else{for(s=0;s<a-r;s++)c[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[a-s-1]=o}return c},Math.clz32?r.prototype._countBits=function(e){return 32-Math.clz32(e)}:r.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},r.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 8191&t||(i+=13,t>>>=13),127&t||(i+=7,t>>>=7),15&t||(i+=4,t>>>=4),3&t||(i+=2,t>>>=2),1&t||i++,i},r.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,26!==i)break}return e},r.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},r.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},r.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},r.prototype.isNeg=function(){return 0!==this.negative},r.prototype.neg=function(){return this.clone().ineg()},r.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},r.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},r.prototype.ior=function(e){return i(0===(this.negative|e.negative)),this.iuor(e)},r.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},r.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},r.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this.strip()},r.prototype.iand=function(e){return i(0===(this.negative|e.negative)),this.iuand(e)},r.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},r.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},r.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=t.words[n]^i.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},r.prototype.ixor=function(e){return i(0===(this.negative|e.negative)),this.iuxor(e)},r.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},r.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},r.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return n>0&&(this.words[r]=~this.words[r]&67108863>>26-n),this.strip()},r.prototype.notn=function(e){return this.clone().inotn(e)},r.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var n=e/26|0,r=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<r:this.words[n]&~(1<<r),this.strip()},r.prototype.iadd=function(e){var t,i,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var r=0,a=0;a<n.length;a++)t=(0|i.words[a])+(0|n.words[a])+r,this.words[a]=67108863&t,r=t>>>26;for(;0!==r&&a<i.length;a++)t=(0|i.words[a])+r,this.words[a]=67108863&t,r=t>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this},r.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},r.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=e):(i=e,n=this);for(var a=0,o=0;o<n.length;o++)a=(t=(0|i.words[o])-(0|n.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<i.length;o++)a=(t=(0|i.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<i.length&&i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this.length=Math.max(this.length,o),i!==this&&(this.negative=1),this.strip()},r.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,i){var n,r,a,o=e.words,s=t.words,l=i.words,c=0,u=0|o[0],d=8191&u,h=u>>>13,p=0|o[1],m=8191&p,f=p>>>13,g=0|o[2],_=8191&g,v=g>>>13,y=0|o[3],b=8191&y,S=y>>>13,E=0|o[4],w=8191&E,C=E>>>13,T=0|o[5],A=8191&T,x=T>>>13,M=0|o[6],R=8191&M,I=M>>>13,k=0|o[7],N=8191&k,O=k>>>13,D=0|o[8],L=8191&D,P=D>>>13,B=0|o[9],F=8191&B,$=B>>>13,U=0|s[0],G=8191&U,Y=U>>>13,z=0|s[1],H=8191&z,q=z>>>13,V=0|s[2],j=8191&V,J=V>>>13,W=0|s[3],K=8191&W,Q=W>>>13,Z=0|s[4],X=8191&Z,ee=Z>>>13,te=0|s[5],ie=8191&te,ne=te>>>13,re=0|s[6],ae=8191&re,oe=re>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],de=8191&ue,he=ue>>>13,pe=0|s[9],me=8191&pe,fe=pe>>>13;i.negative=e.negative^t.negative,i.length=19;var ge=(c+(n=Math.imul(d,G))|0)+((8191&(r=(r=Math.imul(d,Y))+Math.imul(h,G)|0))<<13)|0;c=((a=Math.imul(h,Y))+(r>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(m,G),r=(r=Math.imul(m,Y))+Math.imul(f,G)|0,a=Math.imul(f,Y);var _e=(c+(n=n+Math.imul(d,H)|0)|0)+((8191&(r=(r=r+Math.imul(d,q)|0)+Math.imul(h,H)|0))<<13)|0;c=((a=a+Math.imul(h,q)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(_,G),r=(r=Math.imul(_,Y))+Math.imul(v,G)|0,a=Math.imul(v,Y),n=n+Math.imul(m,H)|0,r=(r=r+Math.imul(m,q)|0)+Math.imul(f,H)|0,a=a+Math.imul(f,q)|0;var ve=(c+(n=n+Math.imul(d,j)|0)|0)+((8191&(r=(r=r+Math.imul(d,J)|0)+Math.imul(h,j)|0))<<13)|0;c=((a=a+Math.imul(h,J)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(b,G),r=(r=Math.imul(b,Y))+Math.imul(S,G)|0,a=Math.imul(S,Y),n=n+Math.imul(_,H)|0,r=(r=r+Math.imul(_,q)|0)+Math.imul(v,H)|0,a=a+Math.imul(v,q)|0,n=n+Math.imul(m,j)|0,r=(r=r+Math.imul(m,J)|0)+Math.imul(f,j)|0,a=a+Math.imul(f,J)|0;var ye=(c+(n=n+Math.imul(d,K)|0)|0)+((8191&(r=(r=r+Math.imul(d,Q)|0)+Math.imul(h,K)|0))<<13)|0;c=((a=a+Math.imul(h,Q)|0)+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(w,G),r=(r=Math.imul(w,Y))+Math.imul(C,G)|0,a=Math.imul(C,Y),n=n+Math.imul(b,H)|0,r=(r=r+Math.imul(b,q)|0)+Math.imul(S,H)|0,a=a+Math.imul(S,q)|0,n=n+Math.imul(_,j)|0,r=(r=r+Math.imul(_,J)|0)+Math.imul(v,j)|0,a=a+Math.imul(v,J)|0,n=n+Math.imul(m,K)|0,r=(r=r+Math.imul(m,Q)|0)+Math.imul(f,K)|0,a=a+Math.imul(f,Q)|0;var be=(c+(n=n+Math.imul(d,X)|0)|0)+((8191&(r=(r=r+Math.imul(d,ee)|0)+Math.imul(h,X)|0))<<13)|0;c=((a=a+Math.imul(h,ee)|0)+(r>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(A,G),r=(r=Math.imul(A,Y))+Math.imul(x,G)|0,a=Math.imul(x,Y),n=n+Math.imul(w,H)|0,r=(r=r+Math.imul(w,q)|0)+Math.imul(C,H)|0,a=a+Math.imul(C,q)|0,n=n+Math.imul(b,j)|0,r=(r=r+Math.imul(b,J)|0)+Math.imul(S,j)|0,a=a+Math.imul(S,J)|0,n=n+Math.imul(_,K)|0,r=(r=r+Math.imul(_,Q)|0)+Math.imul(v,K)|0,a=a+Math.imul(v,Q)|0,n=n+Math.imul(m,X)|0,r=(r=r+Math.imul(m,ee)|0)+Math.imul(f,X)|0,a=a+Math.imul(f,ee)|0;var Se=(c+(n=n+Math.imul(d,ie)|0)|0)+((8191&(r=(r=r+Math.imul(d,ne)|0)+Math.imul(h,ie)|0))<<13)|0;c=((a=a+Math.imul(h,ne)|0)+(r>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(R,G),r=(r=Math.imul(R,Y))+Math.imul(I,G)|0,a=Math.imul(I,Y),n=n+Math.imul(A,H)|0,r=(r=r+Math.imul(A,q)|0)+Math.imul(x,H)|0,a=a+Math.imul(x,q)|0,n=n+Math.imul(w,j)|0,r=(r=r+Math.imul(w,J)|0)+Math.imul(C,j)|0,a=a+Math.imul(C,J)|0,n=n+Math.imul(b,K)|0,r=(r=r+Math.imul(b,Q)|0)+Math.imul(S,K)|0,a=a+Math.imul(S,Q)|0,n=n+Math.imul(_,X)|0,r=(r=r+Math.imul(_,ee)|0)+Math.imul(v,X)|0,a=a+Math.imul(v,ee)|0,n=n+Math.imul(m,ie)|0,r=(r=r+Math.imul(m,ne)|0)+Math.imul(f,ie)|0,a=a+Math.imul(f,ne)|0;var Ee=(c+(n=n+Math.imul(d,ae)|0)|0)+((8191&(r=(r=r+Math.imul(d,oe)|0)+Math.imul(h,ae)|0))<<13)|0;c=((a=a+Math.imul(h,oe)|0)+(r>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(N,G),r=(r=Math.imul(N,Y))+Math.imul(O,G)|0,a=Math.imul(O,Y),n=n+Math.imul(R,H)|0,r=(r=r+Math.imul(R,q)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,q)|0,n=n+Math.imul(A,j)|0,r=(r=r+Math.imul(A,J)|0)+Math.imul(x,j)|0,a=a+Math.imul(x,J)|0,n=n+Math.imul(w,K)|0,r=(r=r+Math.imul(w,Q)|0)+Math.imul(C,K)|0,a=a+Math.imul(C,Q)|0,n=n+Math.imul(b,X)|0,r=(r=r+Math.imul(b,ee)|0)+Math.imul(S,X)|0,a=a+Math.imul(S,ee)|0,n=n+Math.imul(_,ie)|0,r=(r=r+Math.imul(_,ne)|0)+Math.imul(v,ie)|0,a=a+Math.imul(v,ne)|0,n=n+Math.imul(m,ae)|0,r=(r=r+Math.imul(m,oe)|0)+Math.imul(f,ae)|0,a=a+Math.imul(f,oe)|0;var we=(c+(n=n+Math.imul(d,le)|0)|0)+((8191&(r=(r=r+Math.imul(d,ce)|0)+Math.imul(h,le)|0))<<13)|0;c=((a=a+Math.imul(h,ce)|0)+(r>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(L,G),r=(r=Math.imul(L,Y))+Math.imul(P,G)|0,a=Math.imul(P,Y),n=n+Math.imul(N,H)|0,r=(r=r+Math.imul(N,q)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,q)|0,n=n+Math.imul(R,j)|0,r=(r=r+Math.imul(R,J)|0)+Math.imul(I,j)|0,a=a+Math.imul(I,J)|0,n=n+Math.imul(A,K)|0,r=(r=r+Math.imul(A,Q)|0)+Math.imul(x,K)|0,a=a+Math.imul(x,Q)|0,n=n+Math.imul(w,X)|0,r=(r=r+Math.imul(w,ee)|0)+Math.imul(C,X)|0,a=a+Math.imul(C,ee)|0,n=n+Math.imul(b,ie)|0,r=(r=r+Math.imul(b,ne)|0)+Math.imul(S,ie)|0,a=a+Math.imul(S,ne)|0,n=n+Math.imul(_,ae)|0,r=(r=r+Math.imul(_,oe)|0)+Math.imul(v,ae)|0,a=a+Math.imul(v,oe)|0,n=n+Math.imul(m,le)|0,r=(r=r+Math.imul(m,ce)|0)+Math.imul(f,le)|0,a=a+Math.imul(f,ce)|0;var Ce=(c+(n=n+Math.imul(d,de)|0)|0)+((8191&(r=(r=r+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;c=((a=a+Math.imul(h,he)|0)+(r>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(F,G),r=(r=Math.imul(F,Y))+Math.imul($,G)|0,a=Math.imul($,Y),n=n+Math.imul(L,H)|0,r=(r=r+Math.imul(L,q)|0)+Math.imul(P,H)|0,a=a+Math.imul(P,q)|0,n=n+Math.imul(N,j)|0,r=(r=r+Math.imul(N,J)|0)+Math.imul(O,j)|0,a=a+Math.imul(O,J)|0,n=n+Math.imul(R,K)|0,r=(r=r+Math.imul(R,Q)|0)+Math.imul(I,K)|0,a=a+Math.imul(I,Q)|0,n=n+Math.imul(A,X)|0,r=(r=r+Math.imul(A,ee)|0)+Math.imul(x,X)|0,a=a+Math.imul(x,ee)|0,n=n+Math.imul(w,ie)|0,r=(r=r+Math.imul(w,ne)|0)+Math.imul(C,ie)|0,a=a+Math.imul(C,ne)|0,n=n+Math.imul(b,ae)|0,r=(r=r+Math.imul(b,oe)|0)+Math.imul(S,ae)|0,a=a+Math.imul(S,oe)|0,n=n+Math.imul(_,le)|0,r=(r=r+Math.imul(_,ce)|0)+Math.imul(v,le)|0,a=a+Math.imul(v,ce)|0,n=n+Math.imul(m,de)|0,r=(r=r+Math.imul(m,he)|0)+Math.imul(f,de)|0,a=a+Math.imul(f,he)|0;var Te=(c+(n=n+Math.imul(d,me)|0)|0)+((8191&(r=(r=r+Math.imul(d,fe)|0)+Math.imul(h,me)|0))<<13)|0;c=((a=a+Math.imul(h,fe)|0)+(r>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(F,H),r=(r=Math.imul(F,q))+Math.imul($,H)|0,a=Math.imul($,q),n=n+Math.imul(L,j)|0,r=(r=r+Math.imul(L,J)|0)+Math.imul(P,j)|0,a=a+Math.imul(P,J)|0,n=n+Math.imul(N,K)|0,r=(r=r+Math.imul(N,Q)|0)+Math.imul(O,K)|0,a=a+Math.imul(O,Q)|0,n=n+Math.imul(R,X)|0,r=(r=r+Math.imul(R,ee)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,ee)|0,n=n+Math.imul(A,ie)|0,r=(r=r+Math.imul(A,ne)|0)+Math.imul(x,ie)|0,a=a+Math.imul(x,ne)|0,n=n+Math.imul(w,ae)|0,r=(r=r+Math.imul(w,oe)|0)+Math.imul(C,ae)|0,a=a+Math.imul(C,oe)|0,n=n+Math.imul(b,le)|0,r=(r=r+Math.imul(b,ce)|0)+Math.imul(S,le)|0,a=a+Math.imul(S,ce)|0,n=n+Math.imul(_,de)|0,r=(r=r+Math.imul(_,he)|0)+Math.imul(v,de)|0,a=a+Math.imul(v,he)|0;var Ae=(c+(n=n+Math.imul(m,me)|0)|0)+((8191&(r=(r=r+Math.imul(m,fe)|0)+Math.imul(f,me)|0))<<13)|0;c=((a=a+Math.imul(f,fe)|0)+(r>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(F,j),r=(r=Math.imul(F,J))+Math.imul($,j)|0,a=Math.imul($,J),n=n+Math.imul(L,K)|0,r=(r=r+Math.imul(L,Q)|0)+Math.imul(P,K)|0,a=a+Math.imul(P,Q)|0,n=n+Math.imul(N,X)|0,r=(r=r+Math.imul(N,ee)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,ee)|0,n=n+Math.imul(R,ie)|0,r=(r=r+Math.imul(R,ne)|0)+Math.imul(I,ie)|0,a=a+Math.imul(I,ne)|0,n=n+Math.imul(A,ae)|0,r=(r=r+Math.imul(A,oe)|0)+Math.imul(x,ae)|0,a=a+Math.imul(x,oe)|0,n=n+Math.imul(w,le)|0,r=(r=r+Math.imul(w,ce)|0)+Math.imul(C,le)|0,a=a+Math.imul(C,ce)|0,n=n+Math.imul(b,de)|0,r=(r=r+Math.imul(b,he)|0)+Math.imul(S,de)|0,a=a+Math.imul(S,he)|0;var xe=(c+(n=n+Math.imul(_,me)|0)|0)+((8191&(r=(r=r+Math.imul(_,fe)|0)+Math.imul(v,me)|0))<<13)|0;c=((a=a+Math.imul(v,fe)|0)+(r>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(F,K),r=(r=Math.imul(F,Q))+Math.imul($,K)|0,a=Math.imul($,Q),n=n+Math.imul(L,X)|0,r=(r=r+Math.imul(L,ee)|0)+Math.imul(P,X)|0,a=a+Math.imul(P,ee)|0,n=n+Math.imul(N,ie)|0,r=(r=r+Math.imul(N,ne)|0)+Math.imul(O,ie)|0,a=a+Math.imul(O,ne)|0,n=n+Math.imul(R,ae)|0,r=(r=r+Math.imul(R,oe)|0)+Math.imul(I,ae)|0,a=a+Math.imul(I,oe)|0,n=n+Math.imul(A,le)|0,r=(r=r+Math.imul(A,ce)|0)+Math.imul(x,le)|0,a=a+Math.imul(x,ce)|0,n=n+Math.imul(w,de)|0,r=(r=r+Math.imul(w,he)|0)+Math.imul(C,de)|0,a=a+Math.imul(C,he)|0;var Me=(c+(n=n+Math.imul(b,me)|0)|0)+((8191&(r=(r=r+Math.imul(b,fe)|0)+Math.imul(S,me)|0))<<13)|0;c=((a=a+Math.imul(S,fe)|0)+(r>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(F,X),r=(r=Math.imul(F,ee))+Math.imul($,X)|0,a=Math.imul($,ee),n=n+Math.imul(L,ie)|0,r=(r=r+Math.imul(L,ne)|0)+Math.imul(P,ie)|0,a=a+Math.imul(P,ne)|0,n=n+Math.imul(N,ae)|0,r=(r=r+Math.imul(N,oe)|0)+Math.imul(O,ae)|0,a=a+Math.imul(O,oe)|0,n=n+Math.imul(R,le)|0,r=(r=r+Math.imul(R,ce)|0)+Math.imul(I,le)|0,a=a+Math.imul(I,ce)|0,n=n+Math.imul(A,de)|0,r=(r=r+Math.imul(A,he)|0)+Math.imul(x,de)|0,a=a+Math.imul(x,he)|0;var Re=(c+(n=n+Math.imul(w,me)|0)|0)+((8191&(r=(r=r+Math.imul(w,fe)|0)+Math.imul(C,me)|0))<<13)|0;c=((a=a+Math.imul(C,fe)|0)+(r>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(F,ie),r=(r=Math.imul(F,ne))+Math.imul($,ie)|0,a=Math.imul($,ne),n=n+Math.imul(L,ae)|0,r=(r=r+Math.imul(L,oe)|0)+Math.imul(P,ae)|0,a=a+Math.imul(P,oe)|0,n=n+Math.imul(N,le)|0,r=(r=r+Math.imul(N,ce)|0)+Math.imul(O,le)|0,a=a+Math.imul(O,ce)|0,n=n+Math.imul(R,de)|0,r=(r=r+Math.imul(R,he)|0)+Math.imul(I,de)|0,a=a+Math.imul(I,he)|0;var Ie=(c+(n=n+Math.imul(A,me)|0)|0)+((8191&(r=(r=r+Math.imul(A,fe)|0)+Math.imul(x,me)|0))<<13)|0;c=((a=a+Math.imul(x,fe)|0)+(r>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(F,ae),r=(r=Math.imul(F,oe))+Math.imul($,ae)|0,a=Math.imul($,oe),n=n+Math.imul(L,le)|0,r=(r=r+Math.imul(L,ce)|0)+Math.imul(P,le)|0,a=a+Math.imul(P,ce)|0,n=n+Math.imul(N,de)|0,r=(r=r+Math.imul(N,he)|0)+Math.imul(O,de)|0,a=a+Math.imul(O,he)|0;var ke=(c+(n=n+Math.imul(R,me)|0)|0)+((8191&(r=(r=r+Math.imul(R,fe)|0)+Math.imul(I,me)|0))<<13)|0;c=((a=a+Math.imul(I,fe)|0)+(r>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(F,le),r=(r=Math.imul(F,ce))+Math.imul($,le)|0,a=Math.imul($,ce),n=n+Math.imul(L,de)|0,r=(r=r+Math.imul(L,he)|0)+Math.imul(P,de)|0,a=a+Math.imul(P,he)|0;var Ne=(c+(n=n+Math.imul(N,me)|0)|0)+((8191&(r=(r=r+Math.imul(N,fe)|0)+Math.imul(O,me)|0))<<13)|0;c=((a=a+Math.imul(O,fe)|0)+(r>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(F,de),r=(r=Math.imul(F,he))+Math.imul($,de)|0,a=Math.imul($,he);var Oe=(c+(n=n+Math.imul(L,me)|0)|0)+((8191&(r=(r=r+Math.imul(L,fe)|0)+Math.imul(P,me)|0))<<13)|0;c=((a=a+Math.imul(P,fe)|0)+(r>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var De=(c+(n=Math.imul(F,me))|0)+((8191&(r=(r=Math.imul(F,fe))+Math.imul($,me)|0))<<13)|0;return c=((a=Math.imul($,fe))+(r>>>13)|0)+(De>>>26)|0,De&=67108863,l[0]=ge,l[1]=_e,l[2]=ve,l[3]=ye,l[4]=be,l[5]=Se,l[6]=Ee,l[7]=we,l[8]=Ce,l[9]=Te,l[10]=Ae,l[11]=xe,l[12]=Me,l[13]=Re,l[14]=Ie,l[15]=ke,l[16]=Ne,l[17]=Oe,l[18]=De,0!==c&&(l[19]=c,i.length++),i};function m(e,t,i){return(new f).mulp(e,t,i)}function f(e,t){this.x=e,this.y=t}Math.imul||(p=h),r.prototype.mulTo=function(e,t){var i,n=this.length+e.length;return i=10===this.length&&10===e.length?p(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,r=0,a=0;a<i.length-1;a++){var o=r;r=0;for(var s=67108863&n,l=Math.min(a,t.length-1),c=Math.max(0,a-e.length+1);c<=l;c++){var u=a-c,d=(0|e.words[u])*(0|t.words[c]),h=67108863&d;s=67108863&(h=h+s|0),r+=(o=(o=o+(d/67108864|0)|0)+(h>>>26)|0)>>>26,o&=67108863}i.words[a]=s,n=o,o=r}return 0!==n?i.words[a]=n:i.length--,i.strip()}(this,e,t):m(this,e,t),i},f.prototype.makeRBT=function(e){for(var t=new Array(e),i=r.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,i,e);return t},f.prototype.revBin=function(e,t,i){if(0===e||e===i-1)return e;for(var n=0,r=0;r<t;r++)n|=(1&e)<<t-r-1,e>>=1;return n},f.prototype.permute=function(e,t,i,n,r,a){for(var o=0;o<a;o++)n[o]=t[e[o]],r[o]=i[e[o]]},f.prototype.transform=function(e,t,i,n,r,a){this.permute(a,e,t,i,n,r);for(var o=1;o<r;o<<=1)for(var s=o<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<r;u+=s)for(var d=l,h=c,p=0;p<o;p++){var m=i[u+p],f=n[u+p],g=i[u+p+o],_=n[u+p+o],v=d*g-h*_;_=d*_+h*g,g=v,i[u+p]=m+g,n[u+p]=f+_,i[u+p+o]=m-g,n[u+p+o]=f-_,p!==s&&(v=l*d-c*h,h=l*h+c*d,d=v)}},f.prototype.guessLen13b=function(e,t){var i=1|Math.max(t,e),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},f.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=e[n];e[n]=e[i-n-1],e[i-n-1]=r,r=t[n],t[n]=-t[i-n-1],t[i-n-1]=-r}},f.prototype.normalize13b=function(e,t){for(var i=0,n=0;n<t/2;n++){var r=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+i;e[n]=67108863&r,i=r<67108864?0:r/67108864|0}return e},f.prototype.convert13b=function(e,t,n,r){for(var a=0,o=0;o<t;o++)a+=0|e[o],n[2*o]=8191&a,a>>>=13,n[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<r;++o)n[o]=0;i(0===a),i(!(-8192&a))},f.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},f.prototype.mulp=function(e,t,i){var n=2*this.guessLen13b(e.length,t.length),r=this.makeRBT(n),a=this.stub(n),o=new Array(n),s=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),d=new Array(n),h=i.words;h.length=n,this.convert13b(e.words,e.length,o,n),this.convert13b(t.words,t.length,c,n),this.transform(o,a,s,l,n,r),this.transform(c,a,u,d,n,r);for(var p=0;p<n;p++){var m=s[p]*u[p]-l[p]*d[p];l[p]=s[p]*d[p]+l[p]*u[p],s[p]=m}return this.conjugate(s,l,n),this.transform(s,l,h,a,n,r),this.conjugate(h,a,n),this.normalize13b(h,n),i.negative=e.negative^t.negative,i.length=e.length+t.length,i.strip()},r.prototype.mul=function(e){var t=new r(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},r.prototype.mulf=function(e){var t=new r(null);return t.words=new Array(this.length+e.length),m(this,e,t)},r.prototype.imul=function(e){return this.clone().mulTo(e,this)},r.prototype.imuln=function(e){i("number"==typeof e),i(e<67108864);for(var t=0,n=0;n<this.length;n++){var r=(0|this.words[n])*e,a=(67108863&r)+(67108863&t);t>>=26,t+=r/67108864|0,t+=a>>>26,this.words[n]=67108863&a}return 0!==t&&(this.words[n]=t,this.length++),this.length=0===e?1:this.length,this},r.prototype.muln=function(e){return this.clone().imuln(e)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i<t.length;i++){var n=i/26|0,r=i%26;t[i]=(e.words[n]&1<<r)>>>r}return t}(e);if(0===t.length)return new r(1);for(var i=this,n=0;n<t.length&&0===t[n];n++,i=i.sqr());if(++n<t.length)for(var a=i.sqr();n<t.length;n++,a=a.sqr())0!==t[n]&&(i=i.mul(a));return i},r.prototype.iushln=function(e){i("number"==typeof e&&e>=0);var t,n=e%26,r=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,l=(0|this.words[t])-s<<n;this.words[t]=l|o,o=s>>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t<r;t++)this.words[t]=0;this.length+=r}return this.strip()},r.prototype.ishln=function(e){return i(0===this.negative),this.iushln(e)},r.prototype.iushrn=function(e,t,n){var r;i("number"==typeof e&&e>=0),r=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,l=n;if(r-=o,r=Math.max(0,r),l){for(var c=0;c<o;c++)l.words[c]=this.words[c];l.length=o}if(0===o);else if(this.length>o)for(this.length-=o,c=0;c<this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=r);c--){var d=0|this.words[c];this.words[c]=u<<26-a|d>>>a,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.ishrn=function(e,t,n){return i(0===this.negative),this.iushrn(e,t,n)},r.prototype.shln=function(e){return this.clone().ishln(e)},r.prototype.ushln=function(e){return this.clone().iushln(e)},r.prototype.shrn=function(e){return this.clone().ishrn(e)},r.prototype.ushrn=function(e){return this.clone().iushrn(e)},r.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,r=1<<t;return!(this.length<=n||!(this.words[n]&r))},r.prototype.imaskn=function(e){i("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var r=67108863^67108863>>>t<<t;this.words[this.length-1]&=r}return 0===this.length&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.maskn=function(e){return this.clone().imaskn(e)},r.prototype.iaddn=function(e){return i("number"==typeof e),i(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},r.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},r.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},r.prototype.addn=function(e){return this.clone().iaddn(e)},r.prototype.subn=function(e){return this.clone().isubn(e)},r.prototype.iabs=function(){return this.negative=0,this},r.prototype.abs=function(){return this.clone().iabs()},r.prototype._ishlnsubmul=function(e,t,n){var r,a,o=e.length+n;this._expand(o);var s=0;for(r=0;r<e.length;r++){a=(0|this.words[r+n])+s;var l=(0|e.words[r])*t;s=((a-=67108863&l)>>26)-(l/67108864|0),this.words[r+n]=67108863&a}for(;r<this.length-n;r++)s=(a=(0|this.words[r+n])+s)>>26,this.words[r+n]=67108863&a;if(0===s)return this.strip();for(i(-1===s),s=0,r=0;r<this.length;r++)s=(a=-(0|this.words[r])+s)>>26,this.words[r]=67108863&a;return this.negative=1,this.strip()},r.prototype._wordDiv=function(e,t){var i=(this.length,e.length),n=this.clone(),a=e,o=0|a.words[a.length-1];0!=(i=26-this._countBits(o))&&(a=a.ushln(i),n.iushln(i),o=0|a.words[a.length-1]);var s,l=n.length-a.length;if("mod"!==t){(s=new r(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(a,1,l);0===u.negative&&(n=u,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var h=67108864*(0|n.words[a.length+d])+(0|n.words[a.length+d-1]);for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(a,h,d);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(a,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=h)}return s&&s.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:s||null,mod:n}},r.prototype.divmod=function(e,t,n){return i(!e.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new r(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new r(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new r(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},r.prototype.div=function(e){return this.divmod(e,"div",!1).div},r.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},r.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},r.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),r=e.andln(1),a=i.cmp(n);return a<0||1===r&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},r.prototype.modn=function(e){i(e<=67108863);for(var t=(1<<26)%e,n=0,r=this.length-1;r>=0;r--)n=(t*n+(0|this.words[r]))%e;return n},r.prototype.idivn=function(e){i(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var r=(0|this.words[n])+67108864*t;this.words[n]=r/e|0,t=r%e}return this.strip()},r.prototype.divn=function(e){return this.clone().idivn(e)},r.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new r(1),o=new r(0),s=new r(0),l=new r(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var h=0,p=1;0===(t.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(u),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var m=0,f=1;0===(n.words[0]&f)&&m<26;++m,f<<=1);if(m>0)for(n.iushrn(m);m-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(l)):(n.isub(t),s.isub(a),l.isub(o))}return{a:s,b:l,gcd:n.iushln(c)}},r.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new r(1),s=new r(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0===(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var d=0,h=1;0===(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},r.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=t.cmp(i);if(r<0){var a=t;t=i,i=a}else if(0===r||0===i.cmpn(1))break;t.isub(i)}return i.iushln(n)},r.prototype.invm=function(e){return this.egcd(e).a.umod(e)},r.prototype.isEven=function(){return!(1&this.words[0])},r.prototype.isOdd=function(){return!(1&~this.words[0])},r.prototype.andln=function(e){return this.words[0]&e},r.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,n=(e-t)/26,r=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=r,this;for(var a=r,o=n;0!==a&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),i(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:r<e?-1:1}return 0!==this.negative?0|-t:t},r.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},r.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|e.words[i];if(n!==r){n<r?t=-1:n>r&&(t=1);break}}return t},r.prototype.gtn=function(e){return 1===this.cmpn(e)},r.prototype.gt=function(e){return 1===this.cmp(e)},r.prototype.gten=function(e){return this.cmpn(e)>=0},r.prototype.gte=function(e){return this.cmp(e)>=0},r.prototype.ltn=function(e){return-1===this.cmpn(e)},r.prototype.lt=function(e){return-1===this.cmp(e)},r.prototype.lten=function(e){return this.cmpn(e)<=0},r.prototype.lte=function(e){return this.cmp(e)<=0},r.prototype.eqn=function(e){return 0===this.cmpn(e)},r.prototype.eq=function(e){return 0===this.cmp(e)},r.red=function(e){return new E(e)},r.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},r.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(e){return this.red=e,this},r.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},r.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},r.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},r.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},r.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},r.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},r.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},r.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},r.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new r(t,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=r._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function w(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var e=new r(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},n(v,_),v.prototype.split=function(e,t){for(var i=4194303,n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var a=e.words[9];for(t.words[t.length++]=a&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(o&i)<<4|a>>>22,a=o}a>>>=22,e.words[r-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=0|e.words[i];t+=977*n,e.words[i]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(y,_),n(b,_),n(S,_),S.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+t,r=67108863&n;n>>>=26,e.words[i]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},r._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new b;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return g[e]=t,t},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){i(0===(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},E.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var n=this.m.add(new r(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);i(!a.isZero());var s=new r(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new r(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,a),h=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),m=o;0!==p.cmp(s);){for(var f=p,g=0;0!==f.cmp(s);g++)f=f.redSqr();i(g<m);var _=this.pow(d,new r(1).iushln(m-g-1));h=h.redMul(_),d=_.redSqr(),p=p.redMul(d),m=g}return h},E.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},E.prototype.pow=function(e,t){if(t.isZero())return new r(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=new Array(16);i[0]=new r(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var a=i[0],o=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],u=l-1;u>=0;u--){var d=c>>u&1;a!==i[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4===++s||0===n&&0===u)&&(a=this.mul(a,i[o]),s=0,o=0)):s=0}l=26}return a},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},r.mont=function(e){return new w(e)},n(w,E),w.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},w.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},w.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a._forceRed(this)},w.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new r(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=i.isub(n).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},w.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(bn$1,commonjsGlobal);var bnExports$1=bn$1.exports,browser$8,hasRequiredBrowser$1;function requireBrowser$1(){if(hasRequiredBrowser$1)return browser$8;hasRequiredBrowser$1=1;var e=requireElliptic(),t=bnExports$1;browser$8=function(e){return new n(e)};var i={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function n(t){this.curveType=i[t],this.curveType||(this.curveType={name:t}),this.curve=new e.ec(this.curveType.name),this.keys=void 0}function r(e,t,i){Array.isArray(e)||(e=e.toArray());var n=new Buffer$F(e);if(i&&n.length<i){var r=new Buffer$F(i-n.length);r.fill(0),n=Buffer$F.concat([r,n])}return t?n.toString(t):n}return i.p224=i.secp224r1,i.p256=i.secp256r1=i.prime256v1,i.p192=i.secp192r1=i.prime192v1,i.p384=i.secp384r1,i.p521=i.secp521r1,n.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},n.prototype.computeSecret=function(e,t,i){return t=t||"utf8",Buffer$F.isBuffer(e)||(e=new Buffer$F(e,t)),r(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),i,this.curveType.byteLength)},n.prototype.getPublicKey=function(e,t){var i=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(i[i.length-1]%2?i[0]=7:i[0]=6),r(i,e)},n.prototype.getPrivateKey=function(e){return r(this.keys.getPrivate(),e)},n.prototype.setPublicKey=function(e,t){return t=t||"utf8",Buffer$F.isBuffer(e)||(e=new Buffer$F(e,t)),this.keys._importPublic(e),this},n.prototype.setPrivateKey=function(e,i){i=i||"utf8",Buffer$F.isBuffer(e)||(e=new Buffer$F(e,i));var n=new t(e);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this},browser$8}var browser$7={},createHash$2=browser$f,Buffer$4=safeBufferExports$2.Buffer,mgf$2=function(e,t){for(var i,n=Buffer$4.alloc(0),r=0;n.length<t;)i=i2ops(r++),n=Buffer$4.concat([n,createHash$2("sha1").update(e).update(i).digest()]);return n.slice(0,t)};function i2ops(e){var t=Buffer$4.allocUnsafe(4);return t.writeUInt32BE(e,0),t}var xor$2=function(e,t){for(var i=e.length,n=-1;++n<i;)e[n]^=t[n];return e},bn={exports:{}};bn.exports,function(e,t){function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function r(e,t,i){if(r.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var a;"object"==typeof e?e.exports=r:t.BN=r,r.BN=r,r.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:require$$0$1.Buffer}catch(e3){}function o(e,t){var i=e.charCodeAt(t);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function s(e,t,i){var n=o(e,i);return i-1>=t&&(n|=o(e,i-1)<<4),n}function l(e,t,i,n){for(var r=0,a=Math.min(e.length,i),o=t;o<a;o++){var s=e.charCodeAt(o)-48;r*=n,r+=s>=49?s-49+10:s>=17?s-17+10:s}return r}r.isBN=function(e){return e instanceof r||null!==e&&"object"==typeof e&&e.constructor.wordSize===r.wordSize&&Array.isArray(e.words)},r.max=function(e,t){return e.cmp(t)>0?e:t},r.min=function(e,t){return e.cmp(t)<0?e:t},r.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r<e.length&&(16===t?this._parseHex(e,r,n):(this._parseBase(e,t,r),"le"===n&&this._initArray(this.toArray(),t,n)))},r.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},r.prototype._initArray=function(e,t,n){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var a,o,s=0;if("be"===n)for(r=e.length-1,a=0;r>=0;r-=3)o=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===n)for(r=0,a=0;r<e.length;r+=3)o=e[r]|e[r+1]<<8|e[r+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},r.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,a=0,o=0;if("be"===i)for(n=e.length-1;n>=t;n-=2)r=s(e,t,n)<<a,this.words[o]|=67108863&r,a>=18?(a-=18,o+=1,this.words[o]|=r>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)r=s(e,t,n)<<a,this.words[o]|=67108863&r,a>=18?(a-=18,o+=1,this.words[o]|=r>>>26):a+=8;this.strip()},r.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=t)n++;n--,r=r/t|0;for(var a=e.length-i,o=a%n,s=Math.min(a,a-o)+i,c=0,u=i;u<s;u+=n)c=l(e,u,u+n,t),this.imuln(r),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){var d=1;for(c=l(e,u,e.length,t),u=0;u<o;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this.strip()},r.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},r.prototype.clone=function(){var e=new r(null);return this.copy(e),e},r.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},r.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},r.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var r=0|e.words[0],a=0|t.words[0],o=r*a,s=67108863&o,l=o/67108864|0;i.words[0]=s;for(var c=1;c<n;c++){for(var u=l>>>26,d=67108863&l,h=Math.min(c,t.length-1),p=Math.max(0,c-e.length+1);p<=h;p++){var m=c-p|0;u+=(o=(r=0|e.words[m])*(a=0|t.words[p])+d)/67108864|0,d=67108863&o}i.words[c]=0|d,l=0|u}return 0!==l?i.words[c]=0|l:i.length--,i.strip()}r.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var r=0,a=0,o=0;o<this.length;o++){var s=this.words[o],l=(16777215&(s<<r|a)).toString(16);a=s>>>24-r&16777215,(r+=2)>=26&&(r-=26,o--),n=0!==a||o!==this.length-1?c[6-l.length]+l+n:l+n}for(0!==a&&(n=a.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var h=u[e],p=d[e];n="";var m=this.clone();for(m.negative=0;!m.isZero();){var f=m.modn(p).toString(e);n=(m=m.idivn(p)).isZero()?f+n:c[h-f.length]+f+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},r.prototype.toJSON=function(){return this.toString(16)},r.prototype.toBuffer=function(e,t){return i(void 0!==a),this.toArrayLike(a,e,t)},r.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},r.prototype.toArrayLike=function(e,t,n){var r=this.byteLength(),a=n||Math.max(1,r);i(r<=a,"byte array longer than desired length"),i(a>0,"Requested array length <= 0"),this.strip();var o,s,l="le"===t,c=new e(a),u=this.clone();if(l){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[s]=o;for(;s<a;s++)c[s]=0}else{for(s=0;s<a-r;s++)c[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[a-s-1]=o}return c},Math.clz32?r.prototype._countBits=function(e){return 32-Math.clz32(e)}:r.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},r.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 8191&t||(i+=13,t>>>=13),127&t||(i+=7,t>>>=7),15&t||(i+=4,t>>>=4),3&t||(i+=2,t>>>=2),1&t||i++,i},r.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,26!==i)break}return e},r.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},r.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},r.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},r.prototype.isNeg=function(){return 0!==this.negative},r.prototype.neg=function(){return this.clone().ineg()},r.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},r.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},r.prototype.ior=function(e){return i(0===(this.negative|e.negative)),this.iuor(e)},r.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},r.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},r.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this.strip()},r.prototype.iand=function(e){return i(0===(this.negative|e.negative)),this.iuand(e)},r.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},r.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},r.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=t.words[n]^i.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},r.prototype.ixor=function(e){return i(0===(this.negative|e.negative)),this.iuxor(e)},r.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},r.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},r.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return n>0&&(this.words[r]=~this.words[r]&67108863>>26-n),this.strip()},r.prototype.notn=function(e){return this.clone().inotn(e)},r.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var n=e/26|0,r=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<r:this.words[n]&~(1<<r),this.strip()},r.prototype.iadd=function(e){var t,i,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var r=0,a=0;a<n.length;a++)t=(0|i.words[a])+(0|n.words[a])+r,this.words[a]=67108863&t,r=t>>>26;for(;0!==r&&a<i.length;a++)t=(0|i.words[a])+r,this.words[a]=67108863&t,r=t>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this},r.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},r.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=e):(i=e,n=this);for(var a=0,o=0;o<n.length;o++)a=(t=(0|i.words[o])-(0|n.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<i.length;o++)a=(t=(0|i.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<i.length&&i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this.length=Math.max(this.length,o),i!==this&&(this.negative=1),this.strip()},r.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,i){var n,r,a,o=e.words,s=t.words,l=i.words,c=0,u=0|o[0],d=8191&u,h=u>>>13,p=0|o[1],m=8191&p,f=p>>>13,g=0|o[2],_=8191&g,v=g>>>13,y=0|o[3],b=8191&y,S=y>>>13,E=0|o[4],w=8191&E,C=E>>>13,T=0|o[5],A=8191&T,x=T>>>13,M=0|o[6],R=8191&M,I=M>>>13,k=0|o[7],N=8191&k,O=k>>>13,D=0|o[8],L=8191&D,P=D>>>13,B=0|o[9],F=8191&B,$=B>>>13,U=0|s[0],G=8191&U,Y=U>>>13,z=0|s[1],H=8191&z,q=z>>>13,V=0|s[2],j=8191&V,J=V>>>13,W=0|s[3],K=8191&W,Q=W>>>13,Z=0|s[4],X=8191&Z,ee=Z>>>13,te=0|s[5],ie=8191&te,ne=te>>>13,re=0|s[6],ae=8191&re,oe=re>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],de=8191&ue,he=ue>>>13,pe=0|s[9],me=8191&pe,fe=pe>>>13;i.negative=e.negative^t.negative,i.length=19;var ge=(c+(n=Math.imul(d,G))|0)+((8191&(r=(r=Math.imul(d,Y))+Math.imul(h,G)|0))<<13)|0;c=((a=Math.imul(h,Y))+(r>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(m,G),r=(r=Math.imul(m,Y))+Math.imul(f,G)|0,a=Math.imul(f,Y);var _e=(c+(n=n+Math.imul(d,H)|0)|0)+((8191&(r=(r=r+Math.imul(d,q)|0)+Math.imul(h,H)|0))<<13)|0;c=((a=a+Math.imul(h,q)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(_,G),r=(r=Math.imul(_,Y))+Math.imul(v,G)|0,a=Math.imul(v,Y),n=n+Math.imul(m,H)|0,r=(r=r+Math.imul(m,q)|0)+Math.imul(f,H)|0,a=a+Math.imul(f,q)|0;var ve=(c+(n=n+Math.imul(d,j)|0)|0)+((8191&(r=(r=r+Math.imul(d,J)|0)+Math.imul(h,j)|0))<<13)|0;c=((a=a+Math.imul(h,J)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(b,G),r=(r=Math.imul(b,Y))+Math.imul(S,G)|0,a=Math.imul(S,Y),n=n+Math.imul(_,H)|0,r=(r=r+Math.imul(_,q)|0)+Math.imul(v,H)|0,a=a+Math.imul(v,q)|0,n=n+Math.imul(m,j)|0,r=(r=r+Math.imul(m,J)|0)+Math.imul(f,j)|0,a=a+Math.imul(f,J)|0;var ye=(c+(n=n+Math.imul(d,K)|0)|0)+((8191&(r=(r=r+Math.imul(d,Q)|0)+Math.imul(h,K)|0))<<13)|0;c=((a=a+Math.imul(h,Q)|0)+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(w,G),r=(r=Math.imul(w,Y))+Math.imul(C,G)|0,a=Math.imul(C,Y),n=n+Math.imul(b,H)|0,r=(r=r+Math.imul(b,q)|0)+Math.imul(S,H)|0,a=a+Math.imul(S,q)|0,n=n+Math.imul(_,j)|0,r=(r=r+Math.imul(_,J)|0)+Math.imul(v,j)|0,a=a+Math.imul(v,J)|0,n=n+Math.imul(m,K)|0,r=(r=r+Math.imul(m,Q)|0)+Math.imul(f,K)|0,a=a+Math.imul(f,Q)|0;var be=(c+(n=n+Math.imul(d,X)|0)|0)+((8191&(r=(r=r+Math.imul(d,ee)|0)+Math.imul(h,X)|0))<<13)|0;c=((a=a+Math.imul(h,ee)|0)+(r>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(A,G),r=(r=Math.imul(A,Y))+Math.imul(x,G)|0,a=Math.imul(x,Y),n=n+Math.imul(w,H)|0,r=(r=r+Math.imul(w,q)|0)+Math.imul(C,H)|0,a=a+Math.imul(C,q)|0,n=n+Math.imul(b,j)|0,r=(r=r+Math.imul(b,J)|0)+Math.imul(S,j)|0,a=a+Math.imul(S,J)|0,n=n+Math.imul(_,K)|0,r=(r=r+Math.imul(_,Q)|0)+Math.imul(v,K)|0,a=a+Math.imul(v,Q)|0,n=n+Math.imul(m,X)|0,r=(r=r+Math.imul(m,ee)|0)+Math.imul(f,X)|0,a=a+Math.imul(f,ee)|0;var Se=(c+(n=n+Math.imul(d,ie)|0)|0)+((8191&(r=(r=r+Math.imul(d,ne)|0)+Math.imul(h,ie)|0))<<13)|0;c=((a=a+Math.imul(h,ne)|0)+(r>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(R,G),r=(r=Math.imul(R,Y))+Math.imul(I,G)|0,a=Math.imul(I,Y),n=n+Math.imul(A,H)|0,r=(r=r+Math.imul(A,q)|0)+Math.imul(x,H)|0,a=a+Math.imul(x,q)|0,n=n+Math.imul(w,j)|0,r=(r=r+Math.imul(w,J)|0)+Math.imul(C,j)|0,a=a+Math.imul(C,J)|0,n=n+Math.imul(b,K)|0,r=(r=r+Math.imul(b,Q)|0)+Math.imul(S,K)|0,a=a+Math.imul(S,Q)|0,n=n+Math.imul(_,X)|0,r=(r=r+Math.imul(_,ee)|0)+Math.imul(v,X)|0,a=a+Math.imul(v,ee)|0,n=n+Math.imul(m,ie)|0,r=(r=r+Math.imul(m,ne)|0)+Math.imul(f,ie)|0,a=a+Math.imul(f,ne)|0;var Ee=(c+(n=n+Math.imul(d,ae)|0)|0)+((8191&(r=(r=r+Math.imul(d,oe)|0)+Math.imul(h,ae)|0))<<13)|0;c=((a=a+Math.imul(h,oe)|0)+(r>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(N,G),r=(r=Math.imul(N,Y))+Math.imul(O,G)|0,a=Math.imul(O,Y),n=n+Math.imul(R,H)|0,r=(r=r+Math.imul(R,q)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,q)|0,n=n+Math.imul(A,j)|0,r=(r=r+Math.imul(A,J)|0)+Math.imul(x,j)|0,a=a+Math.imul(x,J)|0,n=n+Math.imul(w,K)|0,r=(r=r+Math.imul(w,Q)|0)+Math.imul(C,K)|0,a=a+Math.imul(C,Q)|0,n=n+Math.imul(b,X)|0,r=(r=r+Math.imul(b,ee)|0)+Math.imul(S,X)|0,a=a+Math.imul(S,ee)|0,n=n+Math.imul(_,ie)|0,r=(r=r+Math.imul(_,ne)|0)+Math.imul(v,ie)|0,a=a+Math.imul(v,ne)|0,n=n+Math.imul(m,ae)|0,r=(r=r+Math.imul(m,oe)|0)+Math.imul(f,ae)|0,a=a+Math.imul(f,oe)|0;var we=(c+(n=n+Math.imul(d,le)|0)|0)+((8191&(r=(r=r+Math.imul(d,ce)|0)+Math.imul(h,le)|0))<<13)|0;c=((a=a+Math.imul(h,ce)|0)+(r>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(L,G),r=(r=Math.imul(L,Y))+Math.imul(P,G)|0,a=Math.imul(P,Y),n=n+Math.imul(N,H)|0,r=(r=r+Math.imul(N,q)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,q)|0,n=n+Math.imul(R,j)|0,r=(r=r+Math.imul(R,J)|0)+Math.imul(I,j)|0,a=a+Math.imul(I,J)|0,n=n+Math.imul(A,K)|0,r=(r=r+Math.imul(A,Q)|0)+Math.imul(x,K)|0,a=a+Math.imul(x,Q)|0,n=n+Math.imul(w,X)|0,r=(r=r+Math.imul(w,ee)|0)+Math.imul(C,X)|0,a=a+Math.imul(C,ee)|0,n=n+Math.imul(b,ie)|0,r=(r=r+Math.imul(b,ne)|0)+Math.imul(S,ie)|0,a=a+Math.imul(S,ne)|0,n=n+Math.imul(_,ae)|0,r=(r=r+Math.imul(_,oe)|0)+Math.imul(v,ae)|0,a=a+Math.imul(v,oe)|0,n=n+Math.imul(m,le)|0,r=(r=r+Math.imul(m,ce)|0)+Math.imul(f,le)|0,a=a+Math.imul(f,ce)|0;var Ce=(c+(n=n+Math.imul(d,de)|0)|0)+((8191&(r=(r=r+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;c=((a=a+Math.imul(h,he)|0)+(r>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(F,G),r=(r=Math.imul(F,Y))+Math.imul($,G)|0,a=Math.imul($,Y),n=n+Math.imul(L,H)|0,r=(r=r+Math.imul(L,q)|0)+Math.imul(P,H)|0,a=a+Math.imul(P,q)|0,n=n+Math.imul(N,j)|0,r=(r=r+Math.imul(N,J)|0)+Math.imul(O,j)|0,a=a+Math.imul(O,J)|0,n=n+Math.imul(R,K)|0,r=(r=r+Math.imul(R,Q)|0)+Math.imul(I,K)|0,a=a+Math.imul(I,Q)|0,n=n+Math.imul(A,X)|0,r=(r=r+Math.imul(A,ee)|0)+Math.imul(x,X)|0,a=a+Math.imul(x,ee)|0,n=n+Math.imul(w,ie)|0,r=(r=r+Math.imul(w,ne)|0)+Math.imul(C,ie)|0,a=a+Math.imul(C,ne)|0,n=n+Math.imul(b,ae)|0,r=(r=r+Math.imul(b,oe)|0)+Math.imul(S,ae)|0,a=a+Math.imul(S,oe)|0,n=n+Math.imul(_,le)|0,r=(r=r+Math.imul(_,ce)|0)+Math.imul(v,le)|0,a=a+Math.imul(v,ce)|0,n=n+Math.imul(m,de)|0,r=(r=r+Math.imul(m,he)|0)+Math.imul(f,de)|0,a=a+Math.imul(f,he)|0;var Te=(c+(n=n+Math.imul(d,me)|0)|0)+((8191&(r=(r=r+Math.imul(d,fe)|0)+Math.imul(h,me)|0))<<13)|0;c=((a=a+Math.imul(h,fe)|0)+(r>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(F,H),r=(r=Math.imul(F,q))+Math.imul($,H)|0,a=Math.imul($,q),n=n+Math.imul(L,j)|0,r=(r=r+Math.imul(L,J)|0)+Math.imul(P,j)|0,a=a+Math.imul(P,J)|0,n=n+Math.imul(N,K)|0,r=(r=r+Math.imul(N,Q)|0)+Math.imul(O,K)|0,a=a+Math.imul(O,Q)|0,n=n+Math.imul(R,X)|0,r=(r=r+Math.imul(R,ee)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,ee)|0,n=n+Math.imul(A,ie)|0,r=(r=r+Math.imul(A,ne)|0)+Math.imul(x,ie)|0,a=a+Math.imul(x,ne)|0,n=n+Math.imul(w,ae)|0,r=(r=r+Math.imul(w,oe)|0)+Math.imul(C,ae)|0,a=a+Math.imul(C,oe)|0,n=n+Math.imul(b,le)|0,r=(r=r+Math.imul(b,ce)|0)+Math.imul(S,le)|0,a=a+Math.imul(S,ce)|0,n=n+Math.imul(_,de)|0,r=(r=r+Math.imul(_,he)|0)+Math.imul(v,de)|0,a=a+Math.imul(v,he)|0;var Ae=(c+(n=n+Math.imul(m,me)|0)|0)+((8191&(r=(r=r+Math.imul(m,fe)|0)+Math.imul(f,me)|0))<<13)|0;c=((a=a+Math.imul(f,fe)|0)+(r>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(F,j),r=(r=Math.imul(F,J))+Math.imul($,j)|0,a=Math.imul($,J),n=n+Math.imul(L,K)|0,r=(r=r+Math.imul(L,Q)|0)+Math.imul(P,K)|0,a=a+Math.imul(P,Q)|0,n=n+Math.imul(N,X)|0,r=(r=r+Math.imul(N,ee)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,ee)|0,n=n+Math.imul(R,ie)|0,r=(r=r+Math.imul(R,ne)|0)+Math.imul(I,ie)|0,a=a+Math.imul(I,ne)|0,n=n+Math.imul(A,ae)|0,r=(r=r+Math.imul(A,oe)|0)+Math.imul(x,ae)|0,a=a+Math.imul(x,oe)|0,n=n+Math.imul(w,le)|0,r=(r=r+Math.imul(w,ce)|0)+Math.imul(C,le)|0,a=a+Math.imul(C,ce)|0,n=n+Math.imul(b,de)|0,r=(r=r+Math.imul(b,he)|0)+Math.imul(S,de)|0,a=a+Math.imul(S,he)|0;var xe=(c+(n=n+Math.imul(_,me)|0)|0)+((8191&(r=(r=r+Math.imul(_,fe)|0)+Math.imul(v,me)|0))<<13)|0;c=((a=a+Math.imul(v,fe)|0)+(r>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(F,K),r=(r=Math.imul(F,Q))+Math.imul($,K)|0,a=Math.imul($,Q),n=n+Math.imul(L,X)|0,r=(r=r+Math.imul(L,ee)|0)+Math.imul(P,X)|0,a=a+Math.imul(P,ee)|0,n=n+Math.imul(N,ie)|0,r=(r=r+Math.imul(N,ne)|0)+Math.imul(O,ie)|0,a=a+Math.imul(O,ne)|0,n=n+Math.imul(R,ae)|0,r=(r=r+Math.imul(R,oe)|0)+Math.imul(I,ae)|0,a=a+Math.imul(I,oe)|0,n=n+Math.imul(A,le)|0,r=(r=r+Math.imul(A,ce)|0)+Math.imul(x,le)|0,a=a+Math.imul(x,ce)|0,n=n+Math.imul(w,de)|0,r=(r=r+Math.imul(w,he)|0)+Math.imul(C,de)|0,a=a+Math.imul(C,he)|0;var Me=(c+(n=n+Math.imul(b,me)|0)|0)+((8191&(r=(r=r+Math.imul(b,fe)|0)+Math.imul(S,me)|0))<<13)|0;c=((a=a+Math.imul(S,fe)|0)+(r>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(F,X),r=(r=Math.imul(F,ee))+Math.imul($,X)|0,a=Math.imul($,ee),n=n+Math.imul(L,ie)|0,r=(r=r+Math.imul(L,ne)|0)+Math.imul(P,ie)|0,a=a+Math.imul(P,ne)|0,n=n+Math.imul(N,ae)|0,r=(r=r+Math.imul(N,oe)|0)+Math.imul(O,ae)|0,a=a+Math.imul(O,oe)|0,n=n+Math.imul(R,le)|0,r=(r=r+Math.imul(R,ce)|0)+Math.imul(I,le)|0,a=a+Math.imul(I,ce)|0,n=n+Math.imul(A,de)|0,r=(r=r+Math.imul(A,he)|0)+Math.imul(x,de)|0,a=a+Math.imul(x,he)|0;var Re=(c+(n=n+Math.imul(w,me)|0)|0)+((8191&(r=(r=r+Math.imul(w,fe)|0)+Math.imul(C,me)|0))<<13)|0;c=((a=a+Math.imul(C,fe)|0)+(r>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(F,ie),r=(r=Math.imul(F,ne))+Math.imul($,ie)|0,a=Math.imul($,ne),n=n+Math.imul(L,ae)|0,r=(r=r+Math.imul(L,oe)|0)+Math.imul(P,ae)|0,a=a+Math.imul(P,oe)|0,n=n+Math.imul(N,le)|0,r=(r=r+Math.imul(N,ce)|0)+Math.imul(O,le)|0,a=a+Math.imul(O,ce)|0,n=n+Math.imul(R,de)|0,r=(r=r+Math.imul(R,he)|0)+Math.imul(I,de)|0,a=a+Math.imul(I,he)|0;var Ie=(c+(n=n+Math.imul(A,me)|0)|0)+((8191&(r=(r=r+Math.imul(A,fe)|0)+Math.imul(x,me)|0))<<13)|0;c=((a=a+Math.imul(x,fe)|0)+(r>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(F,ae),r=(r=Math.imul(F,oe))+Math.imul($,ae)|0,a=Math.imul($,oe),n=n+Math.imul(L,le)|0,r=(r=r+Math.imul(L,ce)|0)+Math.imul(P,le)|0,a=a+Math.imul(P,ce)|0,n=n+Math.imul(N,de)|0,r=(r=r+Math.imul(N,he)|0)+Math.imul(O,de)|0,a=a+Math.imul(O,he)|0;var ke=(c+(n=n+Math.imul(R,me)|0)|0)+((8191&(r=(r=r+Math.imul(R,fe)|0)+Math.imul(I,me)|0))<<13)|0;c=((a=a+Math.imul(I,fe)|0)+(r>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(F,le),r=(r=Math.imul(F,ce))+Math.imul($,le)|0,a=Math.imul($,ce),n=n+Math.imul(L,de)|0,r=(r=r+Math.imul(L,he)|0)+Math.imul(P,de)|0,a=a+Math.imul(P,he)|0;var Ne=(c+(n=n+Math.imul(N,me)|0)|0)+((8191&(r=(r=r+Math.imul(N,fe)|0)+Math.imul(O,me)|0))<<13)|0;c=((a=a+Math.imul(O,fe)|0)+(r>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(F,de),r=(r=Math.imul(F,he))+Math.imul($,de)|0,a=Math.imul($,he);var Oe=(c+(n=n+Math.imul(L,me)|0)|0)+((8191&(r=(r=r+Math.imul(L,fe)|0)+Math.imul(P,me)|0))<<13)|0;c=((a=a+Math.imul(P,fe)|0)+(r>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var De=(c+(n=Math.imul(F,me))|0)+((8191&(r=(r=Math.imul(F,fe))+Math.imul($,me)|0))<<13)|0;return c=((a=Math.imul($,fe))+(r>>>13)|0)+(De>>>26)|0,De&=67108863,l[0]=ge,l[1]=_e,l[2]=ve,l[3]=ye,l[4]=be,l[5]=Se,l[6]=Ee,l[7]=we,l[8]=Ce,l[9]=Te,l[10]=Ae,l[11]=xe,l[12]=Me,l[13]=Re,l[14]=Ie,l[15]=ke,l[16]=Ne,l[17]=Oe,l[18]=De,0!==c&&(l[19]=c,i.length++),i};function m(e,t,i){return(new f).mulp(e,t,i)}function f(e,t){this.x=e,this.y=t}Math.imul||(p=h),r.prototype.mulTo=function(e,t){var i,n=this.length+e.length;return i=10===this.length&&10===e.length?p(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,r=0,a=0;a<i.length-1;a++){var o=r;r=0;for(var s=67108863&n,l=Math.min(a,t.length-1),c=Math.max(0,a-e.length+1);c<=l;c++){var u=a-c,d=(0|e.words[u])*(0|t.words[c]),h=67108863&d;s=67108863&(h=h+s|0),r+=(o=(o=o+(d/67108864|0)|0)+(h>>>26)|0)>>>26,o&=67108863}i.words[a]=s,n=o,o=r}return 0!==n?i.words[a]=n:i.length--,i.strip()}(this,e,t):m(this,e,t),i},f.prototype.makeRBT=function(e){for(var t=new Array(e),i=r.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,i,e);return t},f.prototype.revBin=function(e,t,i){if(0===e||e===i-1)return e;for(var n=0,r=0;r<t;r++)n|=(1&e)<<t-r-1,e>>=1;return n},f.prototype.permute=function(e,t,i,n,r,a){for(var o=0;o<a;o++)n[o]=t[e[o]],r[o]=i[e[o]]},f.prototype.transform=function(e,t,i,n,r,a){this.permute(a,e,t,i,n,r);for(var o=1;o<r;o<<=1)for(var s=o<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<r;u+=s)for(var d=l,h=c,p=0;p<o;p++){var m=i[u+p],f=n[u+p],g=i[u+p+o],_=n[u+p+o],v=d*g-h*_;_=d*_+h*g,g=v,i[u+p]=m+g,n[u+p]=f+_,i[u+p+o]=m-g,n[u+p+o]=f-_,p!==s&&(v=l*d-c*h,h=l*h+c*d,d=v)}},f.prototype.guessLen13b=function(e,t){var i=1|Math.max(t,e),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},f.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=e[n];e[n]=e[i-n-1],e[i-n-1]=r,r=t[n],t[n]=-t[i-n-1],t[i-n-1]=-r}},f.prototype.normalize13b=function(e,t){for(var i=0,n=0;n<t/2;n++){var r=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+i;e[n]=67108863&r,i=r<67108864?0:r/67108864|0}return e},f.prototype.convert13b=function(e,t,n,r){for(var a=0,o=0;o<t;o++)a+=0|e[o],n[2*o]=8191&a,a>>>=13,n[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<r;++o)n[o]=0;i(0===a),i(!(-8192&a))},f.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},f.prototype.mulp=function(e,t,i){var n=2*this.guessLen13b(e.length,t.length),r=this.makeRBT(n),a=this.stub(n),o=new Array(n),s=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),d=new Array(n),h=i.words;h.length=n,this.convert13b(e.words,e.length,o,n),this.convert13b(t.words,t.length,c,n),this.transform(o,a,s,l,n,r),this.transform(c,a,u,d,n,r);for(var p=0;p<n;p++){var m=s[p]*u[p]-l[p]*d[p];l[p]=s[p]*d[p]+l[p]*u[p],s[p]=m}return this.conjugate(s,l,n),this.transform(s,l,h,a,n,r),this.conjugate(h,a,n),this.normalize13b(h,n),i.negative=e.negative^t.negative,i.length=e.length+t.length,i.strip()},r.prototype.mul=function(e){var t=new r(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},r.prototype.mulf=function(e){var t=new r(null);return t.words=new Array(this.length+e.length),m(this,e,t)},r.prototype.imul=function(e){return this.clone().mulTo(e,this)},r.prototype.imuln=function(e){i("number"==typeof e),i(e<67108864);for(var t=0,n=0;n<this.length;n++){var r=(0|this.words[n])*e,a=(67108863&r)+(67108863&t);t>>=26,t+=r/67108864|0,t+=a>>>26,this.words[n]=67108863&a}return 0!==t&&(this.words[n]=t,this.length++),this.length=0===e?1:this.length,this},r.prototype.muln=function(e){return this.clone().imuln(e)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i<t.length;i++){var n=i/26|0,r=i%26;t[i]=(e.words[n]&1<<r)>>>r}return t}(e);if(0===t.length)return new r(1);for(var i=this,n=0;n<t.length&&0===t[n];n++,i=i.sqr());if(++n<t.length)for(var a=i.sqr();n<t.length;n++,a=a.sqr())0!==t[n]&&(i=i.mul(a));return i},r.prototype.iushln=function(e){i("number"==typeof e&&e>=0);var t,n=e%26,r=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,l=(0|this.words[t])-s<<n;this.words[t]=l|o,o=s>>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t<r;t++)this.words[t]=0;this.length+=r}return this.strip()},r.prototype.ishln=function(e){return i(0===this.negative),this.iushln(e)},r.prototype.iushrn=function(e,t,n){var r;i("number"==typeof e&&e>=0),r=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,l=n;if(r-=o,r=Math.max(0,r),l){for(var c=0;c<o;c++)l.words[c]=this.words[c];l.length=o}if(0===o);else if(this.length>o)for(this.length-=o,c=0;c<this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=r);c--){var d=0|this.words[c];this.words[c]=u<<26-a|d>>>a,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.ishrn=function(e,t,n){return i(0===this.negative),this.iushrn(e,t,n)},r.prototype.shln=function(e){return this.clone().ishln(e)},r.prototype.ushln=function(e){return this.clone().iushln(e)},r.prototype.shrn=function(e){return this.clone().ishrn(e)},r.prototype.ushrn=function(e){return this.clone().iushrn(e)},r.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,r=1<<t;return!(this.length<=n||!(this.words[n]&r))},r.prototype.imaskn=function(e){i("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var r=67108863^67108863>>>t<<t;this.words[this.length-1]&=r}return 0===this.length&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.maskn=function(e){return this.clone().imaskn(e)},r.prototype.iaddn=function(e){return i("number"==typeof e),i(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},r.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},r.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},r.prototype.addn=function(e){return this.clone().iaddn(e)},r.prototype.subn=function(e){return this.clone().isubn(e)},r.prototype.iabs=function(){return this.negative=0,this},r.prototype.abs=function(){return this.clone().iabs()},r.prototype._ishlnsubmul=function(e,t,n){var r,a,o=e.length+n;this._expand(o);var s=0;for(r=0;r<e.length;r++){a=(0|this.words[r+n])+s;var l=(0|e.words[r])*t;s=((a-=67108863&l)>>26)-(l/67108864|0),this.words[r+n]=67108863&a}for(;r<this.length-n;r++)s=(a=(0|this.words[r+n])+s)>>26,this.words[r+n]=67108863&a;if(0===s)return this.strip();for(i(-1===s),s=0,r=0;r<this.length;r++)s=(a=-(0|this.words[r])+s)>>26,this.words[r]=67108863&a;return this.negative=1,this.strip()},r.prototype._wordDiv=function(e,t){var i=(this.length,e.length),n=this.clone(),a=e,o=0|a.words[a.length-1];0!=(i=26-this._countBits(o))&&(a=a.ushln(i),n.iushln(i),o=0|a.words[a.length-1]);var s,l=n.length-a.length;if("mod"!==t){(s=new r(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(a,1,l);0===u.negative&&(n=u,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var h=67108864*(0|n.words[a.length+d])+(0|n.words[a.length+d-1]);for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(a,h,d);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(a,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=h)}return s&&s.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:s||null,mod:n}},r.prototype.divmod=function(e,t,n){return i(!e.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new r(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new r(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new r(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},r.prototype.div=function(e){return this.divmod(e,"div",!1).div},r.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},r.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},r.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),r=e.andln(1),a=i.cmp(n);return a<0||1===r&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},r.prototype.modn=function(e){i(e<=67108863);for(var t=(1<<26)%e,n=0,r=this.length-1;r>=0;r--)n=(t*n+(0|this.words[r]))%e;return n},r.prototype.idivn=function(e){i(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var r=(0|this.words[n])+67108864*t;this.words[n]=r/e|0,t=r%e}return this.strip()},r.prototype.divn=function(e){return this.clone().idivn(e)},r.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new r(1),o=new r(0),s=new r(0),l=new r(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var h=0,p=1;0===(t.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(u),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var m=0,f=1;0===(n.words[0]&f)&&m<26;++m,f<<=1);if(m>0)for(n.iushrn(m);m-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(l)):(n.isub(t),s.isub(a),l.isub(o))}return{a:s,b:l,gcd:n.iushln(c)}},r.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new r(1),s=new r(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0===(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var d=0,h=1;0===(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},r.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=t.cmp(i);if(r<0){var a=t;t=i,i=a}else if(0===r||0===i.cmpn(1))break;t.isub(i)}return i.iushln(n)},r.prototype.invm=function(e){return this.egcd(e).a.umod(e)},r.prototype.isEven=function(){return!(1&this.words[0])},r.prototype.isOdd=function(){return!(1&~this.words[0])},r.prototype.andln=function(e){return this.words[0]&e},r.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,n=(e-t)/26,r=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=r,this;for(var a=r,o=n;0!==a&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),i(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:r<e?-1:1}return 0!==this.negative?0|-t:t},r.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},r.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|e.words[i];if(n!==r){n<r?t=-1:n>r&&(t=1);break}}return t},r.prototype.gtn=function(e){return 1===this.cmpn(e)},r.prototype.gt=function(e){return 1===this.cmp(e)},r.prototype.gten=function(e){return this.cmpn(e)>=0},r.prototype.gte=function(e){return this.cmp(e)>=0},r.prototype.ltn=function(e){return-1===this.cmpn(e)},r.prototype.lt=function(e){return-1===this.cmp(e)},r.prototype.lten=function(e){return this.cmpn(e)<=0},r.prototype.lte=function(e){return this.cmp(e)<=0},r.prototype.eqn=function(e){return 0===this.cmpn(e)},r.prototype.eq=function(e){return 0===this.cmp(e)},r.red=function(e){return new E(e)},r.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},r.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(e){return this.red=e,this},r.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},r.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},r.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},r.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},r.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},r.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},r.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},r.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},r.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new r(t,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=r._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function w(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var e=new r(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},n(v,_),v.prototype.split=function(e,t){for(var i=4194303,n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var a=e.words[9];for(t.words[t.length++]=a&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(o&i)<<4|a>>>22,a=o}a>>>=22,e.words[r-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=0|e.words[i];t+=977*n,e.words[i]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(y,_),n(b,_),n(S,_),S.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+t,r=67108863&n;n>>>=26,e.words[i]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},r._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new b;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return g[e]=t,t},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){i(0===(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},E.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var n=this.m.add(new r(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);i(!a.isZero());var s=new r(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new r(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,a),h=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),m=o;0!==p.cmp(s);){for(var f=p,g=0;0!==f.cmp(s);g++)f=f.redSqr();i(g<m);var _=this.pow(d,new r(1).iushln(m-g-1));h=h.redMul(_),d=_.redSqr(),p=p.redMul(d),m=g}return h},E.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},E.prototype.pow=function(e,t){if(t.isZero())return new r(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=new Array(16);i[0]=new r(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var a=i[0],o=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],u=l-1;u>=0;u--){var d=c>>u&1;a!==i[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4===++s||0===n&&0===u)&&(a=this.mul(a,i[o]),s=0,o=0)):s=0}l=26}return a},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},r.mont=function(e){return new w(e)},n(w,E),w.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},w.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},w.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a._forceRed(this)},w.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new r(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=i.isub(n).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},w.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(bn,commonjsGlobal);var bnExports=bn.exports,BN$2=bnExports,Buffer$3=safeBufferExports$2.Buffer;function withPublic$2(e,t){return Buffer$3.from(e.toRed(BN$2.mont(t.modulus)).redPow(new BN$2(t.publicExponent)).fromRed().toArray())}var withPublic_1=withPublic$2,parseKeys$1=parseAsn1,randomBytes=browserExports,createHash$1=browser$f,mgf$1=mgf$2,xor$1=xor$2,BN$1=bnExports,withPublic$1=withPublic_1,crt$1=browserifyRsa,Buffer$2=safeBufferExports$2.Buffer,publicEncrypt=function(e,t,i){var n;n=e.padding?e.padding:i?1:4;var r,a=parseKeys$1(e);if(4===n)r=oaep$1(a,t);else if(1===n)r=pkcs1$1(a,t,i);else{if(3!==n)throw new Error("unknown padding");if((r=new BN$1(t)).cmp(a.modulus)>=0)throw new Error("data too long for modulus")}return i?crt$1(r,a):withPublic$1(r,a)};function oaep$1(e,t){var i=e.modulus.byteLength(),n=t.length,r=createHash$1("sha1").update(Buffer$2.alloc(0)).digest(),a=r.length,o=2*a;if(n>i-o-2)throw new Error("message too long");var s=Buffer$2.alloc(i-n-o-2),l=i-a-1,c=randomBytes(a),u=xor$1(Buffer$2.concat([r,s,Buffer$2.alloc(1,1),t],l),mgf$1(c,l)),d=xor$1(c,mgf$1(u,a));return new BN$1(Buffer$2.concat([Buffer$2.alloc(1),d,u],i))}function pkcs1$1(e,t,i){var n,r=t.length,a=e.modulus.byteLength();if(r>a-11)throw new Error("message too long");return n=i?Buffer$2.alloc(a-r-3,255):nonZero(a-r-3),new BN$1(Buffer$2.concat([Buffer$2.from([0,i?1:2]),n,Buffer$2.alloc(1),t],a))}function nonZero(e){for(var t,i=Buffer$2.allocUnsafe(e),n=0,r=randomBytes(2*e),a=0;n<e;)a===r.length&&(r=randomBytes(2*e),a=0),(t=r[a++])&&(i[n++]=t);return i}var parseKeys=parseAsn1,mgf=mgf$2,xor=xor$2,BN=bnExports,crt=browserifyRsa,createHash=browser$f,withPublic=withPublic_1,Buffer$1=safeBufferExports$2.Buffer,privateDecrypt=function(e,t,i){var n;n=e.padding?e.padding:i?1:4;var r,a=parseKeys(e),o=a.modulus.byteLength();if(t.length>o||new BN(t).cmp(a.modulus)>=0)throw new Error("decryption error");r=i?withPublic(new BN(t),a):crt(t,a);var s=Buffer$1.alloc(o-r.length);if(r=Buffer$1.concat([s,r],o),4===n)return oaep(a,r);if(1===n)return pkcs1(a,r,i);if(3===n)return r;throw new Error("unknown padding")};function oaep(e,t){var i=e.modulus.byteLength(),n=createHash("sha1").update(Buffer$1.alloc(0)).digest(),r=n.length;if(0!==t[0])throw new Error("decryption error");var a=t.slice(1,r+1),o=t.slice(r+1),s=xor(a,mgf(o,r)),l=xor(o,mgf(s,i-r-1));if(compare$1(n,l.slice(0,r)))throw new Error("decryption error");for(var c=r;0===l[c];)c++;if(1!==l[c++])throw new Error("decryption error");return l.slice(c)}function pkcs1(e,t,i){for(var n=t.slice(0,2),r=2,a=0;0!==t[r++];)if(r>=t.length){a++;break}var o=t.slice(2,r-1);if(("0002"!==n.toString("hex")&&!i||"0001"!==n.toString("hex")&&i)&&a++,o.length<8&&a++,a)throw new Error("decryption error");return t.slice(r)}function compare$1(e,t){e=Buffer$1.from(e),t=Buffer$1.from(t);var i=0,n=e.length;e.length!==t.length&&(i++,n=Math.min(e.length,t.length));for(var r=-1;++r<n;)i+=e[r]^t[r];return i}!function(e){e.publicEncrypt=publicEncrypt,e.privateDecrypt=privateDecrypt,e.privateEncrypt=function(t,i){return e.publicEncrypt(t,i,!0)},e.publicDecrypt=function(t,i){return e.privateDecrypt(t,i,!0)}}(browser$7);var browser$6={};function oldBrowser(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var safeBuffer=safeBufferExports$2,randombytes=browserExports,Buffer=safeBuffer.Buffer,kBufferMaxLength=safeBuffer.kMaxLength,crypto$2=globalThis.crypto||globalThis.msCrypto,kMaxUint32=Math.pow(2,32)-1,hasRequiredCryptoBrowserify;function assertOffset(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>kMaxUint32||e<0)throw new TypeError("offset must be a uint32");if(e>kBufferMaxLength||e>t)throw new RangeError("offset out of range")}function assertSize(e,t,i){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>kMaxUint32||e<0)throw new TypeError("size must be a uint32");if(e+t>i||e>kBufferMaxLength)throw new RangeError("buffer too small")}function randomFill(e,t,i,n){if(!(Buffer.isBuffer(e)||e instanceof globalThis.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)n=t,t=0,i=e.length;else if("function"==typeof i)n=i,i=e.length-t;else if("function"!=typeof n)throw new TypeError('"cb" argument must be a function');return assertOffset(t,e.length),assertSize(i,t,e.length),actualFill(e,t,i,n)}function actualFill(e,t,i,n){if(process$1.browser){var r=e.buffer,a=new Uint8Array(r,t,i);return crypto$2.getRandomValues(a),n?void process$1.nextTick(function(){n(null,e)}):e}if(!n)return randombytes(i).copy(e,t),e;randombytes(i,function(i,r){if(i)return n(i);r.copy(e,t),n(null,e)})}function randomFillSync(e,t,i){if(void 0===t&&(t=0),!(Buffer.isBuffer(e)||e instanceof globalThis.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return assertOffset(t,e.length),void 0===i&&(i=e.length-t),assertSize(i,t,e.length),actualFill(e,t,i)}function requireCryptoBrowserify(){if(hasRequiredCryptoBrowserify)return cryptoBrowserify;hasRequiredCryptoBrowserify=1,cryptoBrowserify.randomBytes=cryptoBrowserify.rng=cryptoBrowserify.pseudoRandomBytes=cryptoBrowserify.prng=browserExports,cryptoBrowserify.createHash=cryptoBrowserify.Hash=browser$f,cryptoBrowserify.createHmac=cryptoBrowserify.Hmac=browser$e;var e=algos,t=Object.keys(e),i=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(t);cryptoBrowserify.getHashes=function(){return i};var n=browser$d;cryptoBrowserify.pbkdf2=n.pbkdf2,cryptoBrowserify.pbkdf2Sync=n.pbkdf2Sync;var r=browser$c;cryptoBrowserify.Cipher=r.Cipher,cryptoBrowserify.createCipher=r.createCipher,cryptoBrowserify.Cipheriv=r.Cipheriv,cryptoBrowserify.createCipheriv=r.createCipheriv,cryptoBrowserify.Decipher=r.Decipher,cryptoBrowserify.createDecipher=r.createDecipher,cryptoBrowserify.Decipheriv=r.Decipheriv,cryptoBrowserify.createDecipheriv=r.createDecipheriv,cryptoBrowserify.getCiphers=r.getCiphers,cryptoBrowserify.listCiphers=r.listCiphers;var a=requireBrowser$3();cryptoBrowserify.DiffieHellmanGroup=a.DiffieHellmanGroup,cryptoBrowserify.createDiffieHellmanGroup=a.createDiffieHellmanGroup,cryptoBrowserify.getDiffieHellman=a.getDiffieHellman,cryptoBrowserify.createDiffieHellman=a.createDiffieHellman,cryptoBrowserify.DiffieHellman=a.DiffieHellman;var o=requireBrowser$2();cryptoBrowserify.createSign=o.createSign,cryptoBrowserify.Sign=o.Sign,cryptoBrowserify.createVerify=o.createVerify,cryptoBrowserify.Verify=o.Verify,cryptoBrowserify.createECDH=requireBrowser$1();var s=browser$7;cryptoBrowserify.publicEncrypt=s.publicEncrypt,cryptoBrowserify.privateEncrypt=s.privateEncrypt,cryptoBrowserify.publicDecrypt=s.publicDecrypt,cryptoBrowserify.privateDecrypt=s.privateDecrypt;var l=browser$6;return cryptoBrowserify.randomFill=l.randomFill,cryptoBrowserify.randomFillSync=l.randomFillSync,cryptoBrowserify.createCredentials=function(){throw new Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/browserify/crypto-browserify")},cryptoBrowserify.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},cryptoBrowserify}crypto$2&&crypto$2.getRandomValues||!process$1.browser?(browser$6.randomFill=randomFill,browser$6.randomFillSync=randomFillSync):(browser$6.randomFill=oldBrowser,browser$6.randomFillSync=oldBrowser);var crypto$1=requireCryptoBrowserify(),_randomStringChars="abcdefghijklmnopqrstuvwxyz012345",random$5={string:function(e){for(var t=_randomStringChars.length,i=crypto$1.randomBytes(e),n=[],r=0;r<e;r++)n.push(_randomStringChars.substr(i[r]%t,1));return n.join("")},number:function(e){return Math.floor(Math.random()*e)},numberString:function(e){var t=(""+(e-1)).length;return(new Array(t+1).join("0")+this.number(e)).slice(-t)}};!function(e){var t=random$5,i={},n=!1,r=globalThis.chrome&&globalThis.chrome.app&&globalThis.chrome.app.runtime;e.exports={attachEvent:function(e,t){void 0!==globalThis.addEventListener?globalThis.addEventListener(e,t,!1):globalThis.document&&globalThis.attachEvent&&(globalThis.document.attachEvent("on"+e,t),globalThis.attachEvent("on"+e,t))},detachEvent:function(e,t){void 0!==globalThis.addEventListener?globalThis.removeEventListener(e,t,!1):globalThis.document&&globalThis.detachEvent&&(globalThis.document.detachEvent("on"+e,t),globalThis.detachEvent("on"+e,t))},unloadAdd:function(e){if(r)return null;var a=t.string(8);return i[a]=e,n&&setTimeout(this.triggerUnloadCallbacks,0),a},unloadDel:function(e){e in i&&delete i[e]},triggerUnloadCallbacks:function(){for(var e in i)i[e](),delete i[e]}};r||e.exports.attachEvent("unload",function(){n||(n=!0,e.exports.triggerUnloadCallbacks())})}(event$1);var eventExports=event$1.exports,requiresPort=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e},querystringify$1={},has=Object.prototype.hasOwnProperty,undef;function decode(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e3){return null}}function encode(e){try{return encodeURIComponent(e)}catch(e3){return null}}function querystring(e){for(var t,i=/([^=?#&]+)=?([^&]*)/g,n={};t=i.exec(e);){var r=decode(t[1]),a=decode(t[2]);null===r||null===a||r in n||(n[r]=a)}return n}function querystringify(e,t){t=t||"";var i,n,r=[];for(n in"string"!=typeof t&&(t="?"),e)if(has.call(e,n)){if((i=e[n])||null!==i&&i!==undef&&!isNaN(i)||(i=""),n=encode(n),i=encode(i),null===n||null===i)continue;r.push(n+"="+i)}return r.length?t+r.join("&"):""}querystringify$1.stringify=querystringify,querystringify$1.parse=querystring;var required=requiresPort,qs=querystringify$1,controlOrWhitespace=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,CRHTLF=/[\n\r\t]/g,slashes=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,port=/:\d+$/,protocolre=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,windowsDriveLetter=/^[a-zA-Z]:/;function trimLeft(e){return(e||"").toString().replace(controlOrWhitespace,"")}var rules=[["#","hash"],["?","query"],function(e,t){return isSpecial(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],ignore={hash:1,query:1};function lolcation(e){var t,i=("undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).location||{},n={},r=typeof(e=e||i);if("blob:"===e.protocol)n=new Url(unescape(e.pathname),{});else if("string"===r)for(t in n=new Url(e,{}),ignore)delete n[t];else if("object"===r){for(t in e)t in ignore||(n[t]=e[t]);void 0===n.slashes&&(n.slashes=slashes.test(e.href))}return n}function isSpecial(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function extractProtocol(e,t){e=(e=trimLeft(e)).replace(CRHTLF,""),t=t||{};var i,n=protocolre.exec(e),r=n[1]?n[1].toLowerCase():"",a=!!n[2],o=!!n[3],s=0;return a?o?(i=n[2]+n[3]+n[4],s=n[2].length+n[3].length):(i=n[2]+n[4],s=n[2].length):o?(i=n[3]+n[4],s=n[3].length):i=n[4],"file:"===r?s>=2&&(i=i.slice(2)):isSpecial(r)?i=n[4]:r?a&&(i=i.slice(2)):s>=2&&isSpecial(t.protocol)&&(i=n[4]),{protocol:r,slashes:a||isSpecial(r),slashesCount:s,rest:i}}function resolve(e,t){if(""===e)return t;for(var i=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=i.length,r=i[n-1],a=!1,o=0;n--;)"."===i[n]?i.splice(n,1):".."===i[n]?(i.splice(n,1),o++):o&&(0===n&&(a=!0),i.splice(n,1),o--);return a&&i.unshift(""),"."!==r&&".."!==r||i.push(""),i.join("/")}function Url(e,t,i){if(e=(e=trimLeft(e)).replace(CRHTLF,""),!(this instanceof Url))return new Url(e,t,i);var n,r,a,o,s,l,c=rules.slice(),u=typeof t,d=this,h=0;for("object"!==u&&"string"!==u&&(i=t,t=null),i&&"function"!=typeof i&&(i=qs.parse),n=!(r=extractProtocol(e||"",t=lolcation(t))).protocol&&!r.slashes,d.slashes=r.slashes||n&&t.slashes,d.protocol=r.protocol||t.protocol||"",e=r.rest,("file:"===r.protocol&&(2!==r.slashesCount||windowsDriveLetter.test(e))||!r.slashes&&(r.protocol||r.slashesCount<2||!isSpecial(d.protocol)))&&(c[3]=[/(.*)/,"pathname"]);h<c.length;h++)"function"!=typeof(o=c[h])?(a=o[0],l=o[1],a!=a?d[l]=e:"string"==typeof a?~(s="@"===a?e.lastIndexOf(a):e.indexOf(a))&&("number"==typeof o[2]?(d[l]=e.slice(0,s),e=e.slice(s+o[2])):(d[l]=e.slice(s),e=e.slice(0,s))):(s=a.exec(e))&&(d[l]=s[1],e=e.slice(0,s.index)),d[l]=d[l]||n&&o[3]&&t[l]||"",o[4]&&(d[l]=d[l].toLowerCase())):e=o(e,d);i&&(d.query=i(d.query)),n&&t.slashes&&"/"!==d.pathname.charAt(0)&&(""!==d.pathname||""!==t.pathname)&&(d.pathname=resolve(d.pathname,t.pathname)),"/"!==d.pathname.charAt(0)&&isSpecial(d.protocol)&&(d.pathname="/"+d.pathname),required(d.port,d.protocol)||(d.host=d.hostname,d.port=""),d.username=d.password="",d.auth&&(~(s=d.auth.indexOf(":"))?(d.username=d.auth.slice(0,s),d.username=encodeURIComponent(decodeURIComponent(d.username)),d.password=d.auth.slice(s+1),d.password=encodeURIComponent(decodeURIComponent(d.password))):d.username=encodeURIComponent(decodeURIComponent(d.auth)),d.auth=d.password?d.username+":"+d.password:d.username),d.origin="file:"!==d.protocol&&isSpecial(d.protocol)&&d.host?d.protocol+"//"+d.host:"null",d.href=d.toString()}function set$3(e,t,i){var n=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(i||qs.parse)(t)),n[e]=t;break;case"port":n[e]=t,required(t,n.protocol)?t&&(n.host=n.hostname+":"+t):(n.host=n.hostname,n[e]="");break;case"hostname":n[e]=t,n.port&&(t+=":"+n.port),n.host=t;break;case"host":n[e]=t,port.test(t)?(t=t.split(":"),n.port=t.pop(),n.hostname=t.join(":")):(n.hostname=t,n.port="");break;case"protocol":n.protocol=t.toLowerCase(),n.slashes=!i;break;case"pathname":case"hash":if(t){var r="pathname"===e?"/":"#";n[e]=t.charAt(0)!==r?r+t:t}else n[e]=t;break;case"username":case"password":n[e]=encodeURIComponent(t);break;case"auth":var a=t.indexOf(":");~a?(n.username=t.slice(0,a),n.username=encodeURIComponent(decodeURIComponent(n.username)),n.password=t.slice(a+1),n.password=encodeURIComponent(decodeURIComponent(n.password))):n.username=encodeURIComponent(decodeURIComponent(t))}for(var o=0;o<rules.length;o++){var s=rules[o];s[4]&&(n[s[1]]=n[s[1]].toLowerCase())}return n.auth=n.password?n.username+":"+n.password:n.username,n.origin="file:"!==n.protocol&&isSpecial(n.protocol)&&n.host?n.protocol+"//"+n.host:"null",n.href=n.toString(),n}function toString$2(e){e&&"function"==typeof e||(e=qs.stringify);var t,i=this,n=i.host,r=i.protocol;r&&":"!==r.charAt(r.length-1)&&(r+=":");var a=r+(i.protocol&&i.slashes||isSpecial(i.protocol)?"//":"");return i.username?(a+=i.username,i.password&&(a+=":"+i.password),a+="@"):i.password?(a+=":"+i.password,a+="@"):"file:"!==i.protocol&&isSpecial(i.protocol)&&!n&&"/"!==i.pathname&&(a+="@"),(":"===n[n.length-1]||port.test(i.hostname)&&!i.port)&&(n+=":"),a+=n+i.pathname,(t="object"==typeof i.query?e(i.query):i.query)&&(a+="?"!==t.charAt(0)?"?"+t:t),i.hash&&(a+=i.hash),a}Url.prototype={set:set$3,toString:toString$2},Url.extractProtocol=extractProtocol,Url.location=lolcation,Url.trimLeft=trimLeft,Url.qs=qs;var urlParse=Url,browser$5={exports:{}},ms,hasRequiredMs,common$1,hasRequiredCommon,hasRequiredBrowser;function requireMs(){if(hasRequiredMs)return ms;hasRequiredMs=1;var e=1e3,t=6e4,i=60*t,n=24*i,r=7*n,a=365.25*n;function o(e,t,i,n){var r=t>=1.5*i;return Math.round(e/i)+" "+n+(r?"s":"")}return ms=function(s,l){l=l||{};var c=typeof s;if("string"===c&&s.length>0)return function(o){if((o=String(o)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(o);if(!s)return;var l=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*a;case"weeks":case"week":case"w":return l*r;case"days":case"day":case"d":return l*n;case"hours":case"hour":case"hrs":case"hr":case"h":return l*i;case"minutes":case"minute":case"mins":case"min":case"m":return l*t;case"seconds":case"second":case"secs":case"sec":case"s":return l*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}(s);if("number"===c&&isFinite(s))return l.long?function(r){var a=Math.abs(r);if(a>=n)return o(r,a,n,"day");if(a>=i)return o(r,a,i,"hour");if(a>=t)return o(r,a,t,"minute");if(a>=e)return o(r,a,e,"second");return r+" ms"}(s):function(r){var a=Math.abs(r);if(a>=n)return Math.round(r/n)+"d";if(a>=i)return Math.round(r/i)+"h";if(a>=t)return Math.round(r/t)+"m";if(a>=e)return Math.round(r/e)+"s";return r+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))}}function requireCommon(){if(hasRequiredCommon)return common$1;return hasRequiredCommon=1,common$1=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return i.colors[Math.abs(t)%i.colors.length]}function i(e){var a;function o(){if(o.enabled){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=o,s=Number(new Date),l=s-(a||s);r.diff=l,r.prev=a,r.curr=s,a=s,t[0]=i.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var c=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,function(e,n){if("%%"===e)return e;c++;var a=i.formatters[n];if("function"==typeof a){var o=t[c];e=a.call(r,o),t.splice(c,1),c--}return e}),i.formatArgs.call(r,t),(r.log||i.log).apply(r,t)}}return o.namespace=e,o.enabled=i.enabled(e),o.useColors=i.useColors(),o.color=t(e),o.destroy=n,o.extend=r,"function"==typeof i.init&&i.init(o),i.instances.push(o),o}function n(){var e=i.instances.indexOf(this);return-1!==e&&(i.instances.splice(e,1),!0)}function r(e,t){return i(this.namespace+(void 0===t?":":t)+e)}return i.debug=i,i.default=i,i.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},i.disable=function(){i.enable("")},i.enable=function(e){var t;i.save(e),i.names=[],i.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length;for(t=0;t<r;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?i.skips.push(new RegExp("^"+e.substr(1)+"$")):i.names.push(new RegExp("^"+e+"$")));for(t=0;t<i.instances.length;t++){var a=i.instances[t];a.enabled=i.enabled(a.namespace)}},i.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=i.skips.length;t<n;t++)if(i.skips[t].test(e))return!1;for(t=0,n=i.names.length;t<n;t++)if(i.names[t].test(e))return!0;return!1},i.humanize=requireMs(),Object.keys(e).forEach(function(t){i[t]=e[t]}),i.instances=[],i.names=[],i.skips=[],i.formatters={},i.selectColor=t,i.enable(i.load()),i},common$1}function requireBrowser(){return hasRequiredBrowser||(hasRequiredBrowser=1,function(e,t){var i={};function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.log=function(){var e;return"object"===("undefined"==typeof console?"undefined":n(console))&&console.log&&(e=console).log.apply(e,arguments)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var i="color: "+this.color;t.splice(1,0,i,"color: inherit");var n=0,r=0;t[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(n++,"%c"===e&&(r=n))}),t.splice(r,0,i)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(i){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&void 0!==process$1&&"env"in process$1&&(e=i.DEBUG);return e},t.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+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.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.exports=requireCommon()(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}(browser$5,browser$5.exports)),browser$5.exports}var define_process_env_default$17={},URL$2=urlParse,debug$i=function(){};"production"!==define_process_env_default$17.NODE_ENV&&(debug$i=requireBrowser()("sockjs-client:utils:url"));var url={getOrigin:function(e){if(!e)return null;var t=new URL$2(e);if("file:"===t.protocol)return null;var i=t.port;return i||(i="https:"===t.protocol?"443":"80"),t.protocol+"//"+t.hostname+":"+i},isOriginEqual:function(e,t){var i=this.getOrigin(e)===this.getOrigin(t);return debug$i("same",e,t,i),i},isSchemeEqual:function(e,t){return e.split(":")[0]===t.split(":")[0]},addPath:function(e,t){var i=e.split("?");return i[0]+t+(i[1]?"?"+i[1]:"")},addQuery:function(e,t){return e+(-1===e.indexOf("?")?"?"+t:"&"+t)},isLoopbackAddr:function(e){return/^127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^\[::1\]$/.test(e)}},websocket$1={exports:{}},Driver=globalThis.WebSocket||globalThis.MozWebSocket;websocket$1.exports=Driver?function(e){return new Driver(e)}:void 0;var websocketExports=websocket$1.exports,define_process_env_default$16={},utils$3=eventExports,urlUtils$a=url,inherits$t=inherits_browserExports,EventEmitter$d=eventsExports.EventEmitter,WebsocketDriver=websocketExports,debug$h=function(){};function WebSocketTransport(e,t,i){if(!WebSocketTransport.enabled())throw new Error("Transport created when disabled");EventEmitter$d.call(this),debug$h("constructor",e);var n=this,r=urlUtils$a.addPath(e,"/websocket");r="https"===r.slice(0,5)?"wss"+r.slice(5):"ws"+r.slice(4),this.url=r,this.ws=new WebsocketDriver(this.url,[],i),this.ws.onmessage=function(e){debug$h("message event",e.data),n.emit("message",e.data)},this.unloadRef=utils$3.unloadAdd(function(){debug$h("unload"),n.ws.close()}),this.ws.onclose=function(e){debug$h("close event",e.code,e.reason),n.emit("close",e.code,e.reason),n._cleanup()},this.ws.onerror=function(e){debug$h("error event",e),n.emit("close",1006,"WebSocket connection broken"),n._cleanup()}}"production"!==define_process_env_default$16.NODE_ENV&&(debug$h=requireBrowser()("sockjs-client:websocket")),inherits$t(WebSocketTransport,EventEmitter$d),WebSocketTransport.prototype.send=function(e){var t="["+e+"]";debug$h("send",t),this.ws.send(t)},WebSocketTransport.prototype.close=function(){debug$h("close");var e=this.ws;this._cleanup(),e&&e.close()},WebSocketTransport.prototype._cleanup=function(){debug$h("_cleanup");var e=this.ws;e&&(e.onmessage=e.onclose=e.onerror=null),utils$3.unloadDel(this.unloadRef),this.unloadRef=this.ws=null,this.removeAllListeners()},WebSocketTransport.enabled=function(){return debug$h("enabled"),!!WebsocketDriver},WebSocketTransport.transportName="websocket",WebSocketTransport.roundTrips=2;var websocket=WebSocketTransport,define_process_env_default$15={},inherits$s=inherits_browserExports,EventEmitter$c=eventsExports.EventEmitter,debug$g=function(){};function BufferedSender$1(e,t){debug$g(e),EventEmitter$c.call(this),this.sendBuffer=[],this.sender=t,this.url=e}"production"!==define_process_env_default$15.NODE_ENV&&(debug$g=requireBrowser()("sockjs-client:buffered-sender")),inherits$s(BufferedSender$1,EventEmitter$c),BufferedSender$1.prototype.send=function(e){debug$g("send",e),this.sendBuffer.push(e),this.sendStop||this.sendSchedule()},BufferedSender$1.prototype.sendScheduleWait=function(){debug$g("sendScheduleWait");var e,t=this;this.sendStop=function(){debug$g("sendStop"),t.sendStop=null,clearTimeout(e)},e=setTimeout(function(){debug$g("timeout"),t.sendStop=null,t.sendSchedule()},25)},BufferedSender$1.prototype.sendSchedule=function(){debug$g("sendSchedule",this.sendBuffer.length);var e=this;if(this.sendBuffer.length>0){var t="["+this.sendBuffer.join(",")+"]";this.sendStop=this.sender(this.url,t,function(t){e.sendStop=null,t?(debug$g("error",t),e.emit("close",t.code||1006,"Sending error: "+t),e.close()):e.sendScheduleWait()}),this.sendBuffer=[]}},BufferedSender$1.prototype._cleanup=function(){debug$g("_cleanup"),this.removeAllListeners()},BufferedSender$1.prototype.close=function(){debug$g("close"),this._cleanup(),this.sendStop&&(this.sendStop(),this.sendStop=null)};var bufferedSender=BufferedSender$1,define_process_env_default$14={},inherits$r=inherits_browserExports,EventEmitter$b=eventsExports.EventEmitter,debug$f=function(){};function Polling$1(e,t,i){debug$f(t),EventEmitter$b.call(this),this.Receiver=e,this.receiveUrl=t,this.AjaxObject=i,this._scheduleReceiver()}"production"!==define_process_env_default$14.NODE_ENV&&(debug$f=requireBrowser()("sockjs-client:polling")),inherits$r(Polling$1,EventEmitter$b),Polling$1.prototype._scheduleReceiver=function(){debug$f("_scheduleReceiver");var e=this,t=this.poll=new this.Receiver(this.receiveUrl,this.AjaxObject);t.on("message",function(t){debug$f("message",t),e.emit("message",t)}),t.once("close",function(i,n){debug$f("close",i,n,e.pollIsClosing),e.poll=t=null,e.pollIsClosing||("network"===n?e._scheduleReceiver():(e.emit("close",i||1006,n),e.removeAllListeners()))})},Polling$1.prototype.abort=function(){debug$f("abort"),this.removeAllListeners(),this.pollIsClosing=!0,this.poll&&this.poll.abort()};var polling=Polling$1,define_process_env_default$13={},inherits$q=inherits_browserExports,urlUtils$9=url,BufferedSender=bufferedSender,Polling=polling,debug$e=function(){};function SenderReceiver$2(e,t,i,n,r){var a=urlUtils$9.addPath(e,t);debug$e(a);var o=this;BufferedSender.call(this,e,i),this.poll=new Polling(n,a,r),this.poll.on("message",function(e){debug$e("poll message",e),o.emit("message",e)}),this.poll.once("close",function(e,t){debug$e("poll close",e,t),o.poll=null,o.emit("close",e,t),o.close()})}"production"!==define_process_env_default$13.NODE_ENV&&(debug$e=requireBrowser()("sockjs-client:sender-receiver")),inherits$q(SenderReceiver$2,BufferedSender),SenderReceiver$2.prototype.close=function(){BufferedSender.prototype.close.call(this),debug$e("close"),this.removeAllListeners(),this.poll&&(this.poll.abort(),this.poll=null)};var senderReceiver=SenderReceiver$2,define_process_env_default$12={},inherits$p=inherits_browserExports,urlUtils$8=url,SenderReceiver$1=senderReceiver,debug$d=function(){};function createAjaxSender(e){return function(t,i,n){debug$d("create ajax sender",t,i);var r={};"string"==typeof i&&(r.headers={"Content-type":"text/plain"});var a=urlUtils$8.addPath(t,"/xhr_send"),o=new e("POST",a,i,r);return o.once("finish",function(e){if(debug$d("finish",e),o=null,200!==e&&204!==e)return n(new Error("http status "+e));n()}),function(){debug$d("abort"),o.close(),o=null;var e=new Error("Aborted");e.code=1e3,n(e)}}}function AjaxBasedTransport$6(e,t,i,n){SenderReceiver$1.call(this,e,t,createAjaxSender(n),i,n)}"production"!==define_process_env_default$12.NODE_ENV&&(debug$d=requireBrowser()("sockjs-client:ajax-based")),inherits$p(AjaxBasedTransport$6,SenderReceiver$1);var ajaxBased=AjaxBasedTransport$6,define_process_env_default$11={},inherits$o=inherits_browserExports,EventEmitter$a=eventsExports.EventEmitter,debug$c=function(){};function XhrReceiver$4(e,t){debug$c(e),EventEmitter$a.call(this);var i=this;this.bufferPosition=0,this.xo=new t("POST",e,null),this.xo.on("chunk",this._chunkHandler.bind(this)),this.xo.once("finish",function(e,t){debug$c("finish",e,t),i._chunkHandler(e,t),i.xo=null;var n=200===e?"network":"permanent";debug$c("close",n),i.emit("close",null,n),i._cleanup()})}"production"!==define_process_env_default$11.NODE_ENV&&(debug$c=requireBrowser()("sockjs-client:receiver:xhr")),inherits$o(XhrReceiver$4,EventEmitter$a),XhrReceiver$4.prototype._chunkHandler=function(e,t){if(debug$c("_chunkHandler",e),200===e&&t)for(var i=-1;;this.bufferPosition+=i+1){var n=t.slice(this.bufferPosition);if(-1===(i=n.indexOf("\n")))break;var r=n.slice(0,i);r&&(debug$c("message",r),this.emit("message",r))}},XhrReceiver$4.prototype._cleanup=function(){debug$c("_cleanup"),this.removeAllListeners()},XhrReceiver$4.prototype.abort=function(){debug$c("abort"),this.xo&&(this.xo.close(),debug$c("close"),this.emit("close",null,"user"),this.xo=null),this._cleanup()};var xhr=XhrReceiver$4,define_process_env_default$10={},EventEmitter$9=eventsExports.EventEmitter,inherits$n=inherits_browserExports,utils$2=eventExports,urlUtils$7=url,XHR=globalThis.XMLHttpRequest,debug$b=function(){};function AbstractXHRObject(e,t,i,n){debug$b(e,t);var r=this;EventEmitter$9.call(this),setTimeout(function(){r._start(e,t,i,n)},0)}"production"!==define_process_env_default$10.NODE_ENV&&(debug$b=requireBrowser()("sockjs-client:browser:xhr")),inherits$n(AbstractXHRObject,EventEmitter$9),AbstractXHRObject.prototype._start=function(e,t,i,n){var r=this;try{this.xhr=new XHR}catch(o){}if(!this.xhr)return debug$b("no xhr"),this.emit("finish",0,"no xhr support"),void this._cleanup();t=urlUtils$7.addQuery(t,"t="+ +new Date),this.unloadRef=utils$2.unloadAdd(function(){debug$b("unload cleanup"),r._cleanup(!0)});try{this.xhr.open(e,t,!0),this.timeout&&"timeout"in this.xhr&&(this.xhr.timeout=this.timeout,this.xhr.ontimeout=function(){debug$b("xhr timeout"),r.emit("finish",0,""),r._cleanup(!1)})}catch(e3){return debug$b("exception",e3),this.emit("finish",0,""),void this._cleanup(!1)}if(n&&n.noCredentials||!AbstractXHRObject.supportsCORS||(debug$b("withCredentials"),this.xhr.withCredentials=!0),n&&n.headers)for(var a in n.headers)this.xhr.setRequestHeader(a,n.headers[a]);this.xhr.onreadystatechange=function(){if(r.xhr){var e,t,i=r.xhr;switch(debug$b("readyState",i.readyState),i.readyState){case 3:try{t=i.status,e=i.responseText}catch(e3){}debug$b("status",t),1223===t&&(t=204),200===t&&e&&e.length>0&&(debug$b("chunk"),r.emit("chunk",t,e));break;case 4:t=i.status,debug$b("status",t),1223===t&&(t=204),12005!==t&&12029!==t||(t=0),debug$b("finish",t,i.responseText),r.emit("finish",t,i.responseText),r._cleanup(!1)}}};try{r.xhr.send(i)}catch(e3){r.emit("finish",0,""),r._cleanup(!1)}},AbstractXHRObject.prototype._cleanup=function(e){if(debug$b("cleanup"),this.xhr){if(this.removeAllListeners(),utils$2.unloadDel(this.unloadRef),this.xhr.onreadystatechange=function(){},this.xhr.ontimeout&&(this.xhr.ontimeout=null),e)try{this.xhr.abort()}catch(t){}this.unloadRef=this.xhr=null}},AbstractXHRObject.prototype.close=function(){debug$b("close"),this._cleanup(!0)},AbstractXHRObject.enabled=!!XHR;var axo$1=["Active"].concat("Object").join("X");!AbstractXHRObject.enabled&&axo$1 in globalThis&&(debug$b("overriding xmlhttprequest"),XHR=function(){try{return new globalThis[axo$1]("Microsoft.XMLHTTP")}catch(e3){return null}},AbstractXHRObject.enabled=!!new XHR);var cors=!1;try{cors="withCredentials"in new XHR}catch(ignored){}AbstractXHRObject.supportsCORS=cors;var abstractXhr=AbstractXHRObject,inherits$m=inherits_browserExports,XhrDriver$1=abstractXhr;function XHRCorsObject$3(e,t,i,n){XhrDriver$1.call(this,e,t,i,n)}inherits$m(XHRCorsObject$3,XhrDriver$1),XHRCorsObject$3.enabled=XhrDriver$1.enabled&&XhrDriver$1.supportsCORS;var xhrCors=XHRCorsObject$3,inherits$l=inherits_browserExports,XhrDriver=abstractXhr;function XHRLocalObject$3(e,t,i){XhrDriver.call(this,e,t,i,{noCredentials:!0})}inherits$l(XHRLocalObject$3,XhrDriver),XHRLocalObject$3.enabled=XhrDriver.enabled;var xhrLocal=XHRLocalObject$3,browser$4={isOpera:function(){return globalThis.navigator&&/opera/i.test(globalThis.navigator.userAgent)},isKonqueror:function(){return globalThis.navigator&&/konqueror/i.test(globalThis.navigator.userAgent)},hasDomain:function(){if(!globalThis.document)return!0;try{return!!globalThis.document.domain}catch(e3){return!1}}},inherits$k=inherits_browserExports,AjaxBasedTransport$5=ajaxBased,XhrReceiver$3=xhr,XHRCorsObject$2=xhrCors,XHRLocalObject$2=xhrLocal,browser$3=browser$4;function XhrStreamingTransport(e){if(!XHRLocalObject$2.enabled&&!XHRCorsObject$2.enabled)throw new Error("Transport created when disabled");AjaxBasedTransport$5.call(this,e,"/xhr_streaming",XhrReceiver$3,XHRCorsObject$2)}inherits$k(XhrStreamingTransport,AjaxBasedTransport$5),XhrStreamingTransport.enabled=function(e){return!e.nullOrigin&&(!browser$3.isOpera()&&XHRCorsObject$2.enabled)},XhrStreamingTransport.transportName="xhr-streaming",XhrStreamingTransport.roundTrips=2,XhrStreamingTransport.needBody=!!globalThis.document;var xhrStreaming=XhrStreamingTransport,define_process_env_default$$={},EventEmitter$8=eventsExports.EventEmitter,inherits$j=inherits_browserExports,eventUtils$2=eventExports,browser$2=browser$4,urlUtils$6=url,debug$a=function(){};function XDRObject$2(e,t,i){debug$a(e,t);var n=this;EventEmitter$8.call(this),setTimeout(function(){n._start(e,t,i)},0)}"production"!==define_process_env_default$$.NODE_ENV&&(debug$a=requireBrowser()("sockjs-client:sender:xdr")),inherits$j(XDRObject$2,EventEmitter$8),XDRObject$2.prototype._start=function(e,t,i){debug$a("_start");var n=this,r=new globalThis.XDomainRequest;t=urlUtils$6.addQuery(t,"t="+ +new Date),r.onerror=function(){debug$a("onerror"),n._error()},r.ontimeout=function(){debug$a("ontimeout"),n._error()},r.onprogress=function(){debug$a("progress",r.responseText),n.emit("chunk",200,r.responseText)},r.onload=function(){debug$a("load"),n.emit("finish",200,r.responseText),n._cleanup(!1)},this.xdr=r,this.unloadRef=eventUtils$2.unloadAdd(function(){n._cleanup(!0)});try{this.xdr.open(e,t),this.timeout&&(this.xdr.timeout=this.timeout),this.xdr.send(i)}catch(a){this._error()}},XDRObject$2.prototype._error=function(){this.emit("finish",0,""),this._cleanup(!1)},XDRObject$2.prototype._cleanup=function(e){if(debug$a("cleanup",e),this.xdr){if(this.removeAllListeners(),eventUtils$2.unloadDel(this.unloadRef),this.xdr.ontimeout=this.xdr.onerror=this.xdr.onprogress=this.xdr.onload=null,e)try{this.xdr.abort()}catch(t){}this.unloadRef=this.xdr=null}},XDRObject$2.prototype.close=function(){debug$a("close"),this._cleanup(!0)},XDRObject$2.enabled=!(!globalThis.XDomainRequest||!browser$2.hasDomain());var xdr=XDRObject$2,inherits$i=inherits_browserExports,AjaxBasedTransport$4=ajaxBased,XhrReceiver$2=xhr,XDRObject$1=xdr;function XdrStreamingTransport$1(e){if(!XDRObject$1.enabled)throw new Error("Transport created when disabled");AjaxBasedTransport$4.call(this,e,"/xhr_streaming",XhrReceiver$2,XDRObject$1)}inherits$i(XdrStreamingTransport$1,AjaxBasedTransport$4),XdrStreamingTransport$1.enabled=function(e){return!e.cookie_needed&&!e.nullOrigin&&(XDRObject$1.enabled&&e.sameScheme)},XdrStreamingTransport$1.transportName="xdr-streaming",XdrStreamingTransport$1.roundTrips=2;var xdrStreaming=XdrStreamingTransport$1,eventsource$2=globalThis.EventSource,define_process_env_default$_={},inherits$h=inherits_browserExports,EventEmitter$7=eventsExports.EventEmitter,EventSourceDriver$1=eventsource$2,debug$9=function(){};function EventSourceReceiver$1(e){debug$9(e),EventEmitter$7.call(this);var t=this,i=this.es=new EventSourceDriver$1(e);i.onmessage=function(e){debug$9("message",e.data),t.emit("message",decodeURI(e.data))},i.onerror=function(e){debug$9("error",i.readyState,e);var n=2!==i.readyState?"network":"permanent";t._cleanup(),t._close(n)}}"production"!==define_process_env_default$_.NODE_ENV&&(debug$9=requireBrowser()("sockjs-client:receiver:eventsource")),inherits$h(EventSourceReceiver$1,EventEmitter$7),EventSourceReceiver$1.prototype.abort=function(){debug$9("abort"),this._cleanup(),this._close("user")},EventSourceReceiver$1.prototype._cleanup=function(){debug$9("cleanup");var e=this.es;e&&(e.onmessage=e.onerror=null,e.close(),this.es=null)},EventSourceReceiver$1.prototype._close=function(e){debug$9("close",e);var t=this;setTimeout(function(){t.emit("close",null,e),t.removeAllListeners()},200)};var eventsource$1=EventSourceReceiver$1,inherits$g=inherits_browserExports,AjaxBasedTransport$3=ajaxBased,EventSourceReceiver=eventsource$1,XHRCorsObject$1=xhrCors,EventSourceDriver=eventsource$2;function EventSourceTransport(e){if(!EventSourceTransport.enabled())throw new Error("Transport created when disabled");AjaxBasedTransport$3.call(this,e,"/eventsource",EventSourceReceiver,XHRCorsObject$1)}inherits$g(EventSourceTransport,AjaxBasedTransport$3),EventSourceTransport.enabled=function(){return!!EventSourceDriver},EventSourceTransport.transportName="eventsource",EventSourceTransport.roundTrips=2;var eventsource=EventSourceTransport,version$3,hasRequiredVersion;function requireVersion(){return hasRequiredVersion?version$3:(hasRequiredVersion=1,version$3="1.6.1")}var iframe$1={exports:{}};!function(e){var t=eventExports,i=browser$4,n=function(){};"production"!=={}.NODE_ENV&&(n=requireBrowser()("sockjs-client:utils:iframe")),e.exports={WPrefix:"_jp",currentWindowId:null,polluteGlobalNamespace:function(){e.exports.WPrefix in globalThis||(globalThis[e.exports.WPrefix]={})},postMessage:function(t,i){globalThis.parent!==globalThis?globalThis.parent.postMessage(JSON.stringify({windowId:e.exports.currentWindowId,type:t,data:i||""}),"*"):n("Cannot postMessage, no parent window.",t,i)},createIframe:function(e,i){var r,a,o=globalThis.document.createElement("iframe"),s=function(){n("unattach"),clearTimeout(r);try{o.onload=null}catch(e){}o.onerror=null},l=function(){n("cleanup"),o&&(s(),setTimeout(function(){o&&o.parentNode.removeChild(o),o=null},0),t.unloadDel(a))},c=function(e){n("onerror",e),o&&(l(),i(e))};return o.src=e,o.style.display="none",o.style.position="absolute",o.onerror=function(){c("onerror")},o.onload=function(){n("onload"),clearTimeout(r),r=setTimeout(function(){c("onload timeout")},2e3)},globalThis.document.body.appendChild(o),r=setTimeout(function(){c("timeout")},15e3),a=t.unloadAdd(l),{post:function(e,t){n("post",e,t),setTimeout(function(){try{o&&o.contentWindow&&o.contentWindow.postMessage(e,t)}catch(i){}},0)},cleanup:l,loaded:s}},createHtmlfile:function(i,r){var a,o,s,l=["Active"].concat("Object").join("X"),c=new globalThis[l]("htmlfile"),u=function(){clearTimeout(a),s.onerror=null},d=function(){c&&(u(),t.unloadDel(o),s.parentNode.removeChild(s),s=c=null,CollectGarbage())},h=function(e){n("onerror",e),c&&(d(),r(e))};c.open(),c.write('<html><script>document.domain="'+globalThis.document.domain+'";<\/script></html>'),c.close(),c.parentWindow[e.exports.WPrefix]=globalThis[e.exports.WPrefix];var p=c.createElement("div");return c.body.appendChild(p),s=c.createElement("iframe"),p.appendChild(s),s.src=i,s.onerror=function(){h("onerror")},a=setTimeout(function(){h("timeout")},15e3),o=t.unloadAdd(d),{post:function(e,t){try{setTimeout(function(){s&&s.contentWindow&&s.contentWindow.postMessage(e,t)},0)}catch(i){}},cleanup:d,loaded:u}}},e.exports.iframeEnabled=!1,globalThis.document&&(e.exports.iframeEnabled=("function"==typeof globalThis.postMessage||"object"==typeof globalThis.postMessage)&&!i.isKonqueror())}(iframe$1);var iframeExports=iframe$1.exports,define_process_env_default$Z={},inherits$f=inherits_browserExports,EventEmitter$6=eventsExports.EventEmitter,version$2=requireVersion(),urlUtils$5=url,iframeUtils$1=iframeExports,eventUtils$1=eventExports,random$4=random$5,debug$8=function(){};function IframeTransport$2(e,t,i){if(!IframeTransport$2.enabled())throw new Error("Transport created when disabled");EventEmitter$6.call(this);var n=this;this.origin=urlUtils$5.getOrigin(i),this.baseUrl=i,this.transUrl=t,this.transport=e,this.windowId=random$4.string(8);var r=urlUtils$5.addPath(i,"/iframe.html")+"#"+this.windowId;debug$8(e,t,r),this.iframeObj=iframeUtils$1.createIframe(r,function(e){debug$8("err callback"),n.emit("close",1006,"Unable to load an iframe ("+e+")"),n.close()}),this.onmessageCallback=this._message.bind(this),eventUtils$1.attachEvent("message",this.onmessageCallback)}"production"!==define_process_env_default$Z.NODE_ENV&&(debug$8=requireBrowser()("sockjs-client:transport:iframe")),inherits$f(IframeTransport$2,EventEmitter$6),IframeTransport$2.prototype.close=function(){if(debug$8("close"),this.removeAllListeners(),this.iframeObj){eventUtils$1.detachEvent("message",this.onmessageCallback);try{this.postMessage("c")}catch(e){}this.iframeObj.cleanup(),this.iframeObj=null,this.onmessageCallback=this.iframeObj=null}},IframeTransport$2.prototype._message=function(e){if(debug$8("message",e.data),urlUtils$5.isOriginEqual(e.origin,this.origin)){var t;try{t=JSON.parse(e.data)}catch(ignored){return void debug$8("bad json",e.data)}if(t.windowId===this.windowId)switch(t.type){case"s":this.iframeObj.loaded(),this.postMessage("s",JSON.stringify([version$2,this.transport,this.transUrl,this.baseUrl]));break;case"t":this.emit("message",t.data);break;case"c":var i;try{i=JSON.parse(t.data)}catch(ignored){return void debug$8("bad json",t.data)}this.emit("close",i[0],i[1]),this.close()}else debug$8("mismatched window id",t.windowId,this.windowId)}else debug$8("not same origin",e.origin,this.origin)},IframeTransport$2.prototype.postMessage=function(e,t){debug$8("postMessage",e,t),this.iframeObj.post(JSON.stringify({windowId:this.windowId,type:e,data:t||""}),this.origin)},IframeTransport$2.prototype.send=function(e){debug$8("send",e),this.postMessage("m",e)},IframeTransport$2.enabled=function(){return iframeUtils$1.iframeEnabled},IframeTransport$2.transportName="iframe",IframeTransport$2.roundTrips=2;var iframe=IframeTransport$2,object$1={isObject:function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},extend:function(e){if(!this.isObject(e))return e;for(var t,i,n=1,r=arguments.length;n<r;n++)for(i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}},inherits$e=inherits_browserExports,IframeTransport$1=iframe,objectUtils$2=object$1,iframeWrap=function(e){function t(t,i){IframeTransport$1.call(this,e.transportName,t,i)}return inherits$e(t,IframeTransport$1),t.enabled=function(t,i){if(!globalThis.document)return!1;var n=objectUtils$2.extend({},i);return n.sameOrigin=!0,e.enabled(n)&&IframeTransport$1.enabled()},t.transportName="iframe-"+e.transportName,t.needBody=!0,t.roundTrips=IframeTransport$1.roundTrips+e.roundTrips-1,t.facadeTransport=e,t},define_process_env_default$Y={},inherits$d=inherits_browserExports,iframeUtils=iframeExports,urlUtils$4=url,EventEmitter$5=eventsExports.EventEmitter,random$3=random$5,debug$7=function(){};function HtmlfileReceiver$1(e){debug$7(e),EventEmitter$5.call(this);var t=this;iframeUtils.polluteGlobalNamespace(),this.id="a"+random$3.string(6),e=urlUtils$4.addQuery(e,"c="+decodeURIComponent(iframeUtils.WPrefix+"."+this.id)),debug$7("using htmlfile",HtmlfileReceiver$1.htmlfileEnabled);var i=HtmlfileReceiver$1.htmlfileEnabled?iframeUtils.createHtmlfile:iframeUtils.createIframe;globalThis[iframeUtils.WPrefix][this.id]={start:function(){debug$7("start"),t.iframeObj.loaded()},message:function(e){debug$7("message",e),t.emit("message",e)},stop:function(){debug$7("stop"),t._cleanup(),t._close("network")}},this.iframeObj=i(e,function(){debug$7("callback"),t._cleanup(),t._close("permanent")})}"production"!==define_process_env_default$Y.NODE_ENV&&(debug$7=requireBrowser()("sockjs-client:receiver:htmlfile")),inherits$d(HtmlfileReceiver$1,EventEmitter$5),HtmlfileReceiver$1.prototype.abort=function(){debug$7("abort"),this._cleanup(),this._close("user")},HtmlfileReceiver$1.prototype._cleanup=function(){debug$7("_cleanup"),this.iframeObj&&(this.iframeObj.cleanup(),this.iframeObj=null),delete globalThis[iframeUtils.WPrefix][this.id]},HtmlfileReceiver$1.prototype._close=function(e){debug$7("_close",e),this.emit("close",null,e),this.removeAllListeners()},HtmlfileReceiver$1.htmlfileEnabled=!1;var axo=["Active"].concat("Object").join("X");if(axo in globalThis)try{HtmlfileReceiver$1.htmlfileEnabled=!!new globalThis[axo]("htmlfile")}catch(x2){}HtmlfileReceiver$1.enabled=HtmlfileReceiver$1.htmlfileEnabled||iframeUtils.iframeEnabled;var htmlfile$1=HtmlfileReceiver$1,inherits$c=inherits_browserExports,HtmlfileReceiver=htmlfile$1,XHRLocalObject$1=xhrLocal,AjaxBasedTransport$2=ajaxBased;function HtmlFileTransport(e){if(!HtmlfileReceiver.enabled)throw new Error("Transport created when disabled");AjaxBasedTransport$2.call(this,e,"/htmlfile",HtmlfileReceiver,XHRLocalObject$1)}inherits$c(HtmlFileTransport,AjaxBasedTransport$2),HtmlFileTransport.enabled=function(e){return HtmlfileReceiver.enabled&&e.sameOrigin},HtmlFileTransport.transportName="htmlfile",HtmlFileTransport.roundTrips=2;var htmlfile=HtmlFileTransport,inherits$b=inherits_browserExports,AjaxBasedTransport$1=ajaxBased,XhrReceiver$1=xhr,XHRCorsObject=xhrCors,XHRLocalObject=xhrLocal;function XhrPollingTransport(e){if(!XHRLocalObject.enabled&&!XHRCorsObject.enabled)throw new Error("Transport created when disabled");AjaxBasedTransport$1.call(this,e,"/xhr",XhrReceiver$1,XHRCorsObject)}inherits$b(XhrPollingTransport,AjaxBasedTransport$1),XhrPollingTransport.enabled=function(e){return!e.nullOrigin&&(!(!XHRLocalObject.enabled||!e.sameOrigin)||XHRCorsObject.enabled)},XhrPollingTransport.transportName="xhr-polling",XhrPollingTransport.roundTrips=2;var xhrPolling=XhrPollingTransport,inherits$a=inherits_browserExports,AjaxBasedTransport=ajaxBased,XdrStreamingTransport=xdrStreaming,XhrReceiver=xhr,XDRObject=xdr;function XdrPollingTransport(e){if(!XDRObject.enabled)throw new Error("Transport created when disabled");AjaxBasedTransport.call(this,e,"/xhr",XhrReceiver,XDRObject)}inherits$a(XdrPollingTransport,AjaxBasedTransport),XdrPollingTransport.enabled=XdrStreamingTransport.enabled,XdrPollingTransport.transportName="xdr-polling",XdrPollingTransport.roundTrips=2;var xdrPolling=XdrPollingTransport,define_process_env_default$X={},utils$1=iframeExports,random$2=random$5,browser$1=browser$4,urlUtils$3=url,inherits$9=inherits_browserExports,EventEmitter$4=eventsExports.EventEmitter,debug$6=function(){};function JsonpReceiver$1(e){debug$6(e);var t=this;EventEmitter$4.call(this),utils$1.polluteGlobalNamespace(),this.id="a"+random$2.string(6);var i=urlUtils$3.addQuery(e,"c="+encodeURIComponent(utils$1.WPrefix+"."+this.id));globalThis[utils$1.WPrefix][this.id]=this._callback.bind(this),this._createScript(i),this.timeoutId=setTimeout(function(){debug$6("timeout"),t._abort(new Error("JSONP script loaded abnormally (timeout)"))},JsonpReceiver$1.timeout)}"production"!==define_process_env_default$X.NODE_ENV&&(debug$6=requireBrowser()("sockjs-client:receiver:jsonp")),inherits$9(JsonpReceiver$1,EventEmitter$4),JsonpReceiver$1.prototype.abort=function(){if(debug$6("abort"),globalThis[utils$1.WPrefix][this.id]){var e=new Error("JSONP user aborted read");e.code=1e3,this._abort(e)}},JsonpReceiver$1.timeout=35e3,JsonpReceiver$1.scriptErrorTimeout=1e3,JsonpReceiver$1.prototype._callback=function(e){debug$6("_callback",e),this._cleanup(),this.aborting||(e&&(debug$6("message",e),this.emit("message",e)),this.emit("close",null,"network"),this.removeAllListeners())},JsonpReceiver$1.prototype._abort=function(e){debug$6("_abort",e),this._cleanup(),this.aborting=!0,this.emit("close",e.code,e.message),this.removeAllListeners()},JsonpReceiver$1.prototype._cleanup=function(){if(debug$6("_cleanup"),clearTimeout(this.timeoutId),this.script2&&(this.script2.parentNode.removeChild(this.script2),this.script2=null),this.script){var e=this.script;e.parentNode.removeChild(e),e.onreadystatechange=e.onerror=e.onload=e.onclick=null,this.script=null}delete globalThis[utils$1.WPrefix][this.id]},JsonpReceiver$1.prototype._scriptError=function(){debug$6("_scriptError");var e=this;this.errorTimer||(this.errorTimer=setTimeout(function(){e.loadedOkay||e._abort(new Error("JSONP script loaded abnormally (onerror)"))},JsonpReceiver$1.scriptErrorTimeout))},JsonpReceiver$1.prototype._createScript=function(e){debug$6("_createScript",e);var t,i=this,n=this.script=globalThis.document.createElement("script");if(n.id="a"+random$2.string(8),n.src=e,n.type="text/javascript",n.charset="UTF-8",n.onerror=this._scriptError.bind(this),n.onload=function(){debug$6("onload"),i._abort(new Error("JSONP script loaded abnormally (onload)"))},n.onreadystatechange=function(){if(debug$6("onreadystatechange",n.readyState),/loaded|closed/.test(n.readyState)){if(n&&n.htmlFor&&n.onclick){i.loadedOkay=!0;try{n.onclick()}catch(x2){}}n&&i._abort(new Error("JSONP script loaded abnormally (onreadystatechange)"))}},void 0===n.async&&globalThis.document.attachEvent)if(browser$1.isOpera())(t=this.script2=globalThis.document.createElement("script")).text="try{var a = document.getElementById('"+n.id+"'); if(a)a.onerror();}catch(x){};",n.async=t.async=!1;else{try{n.htmlFor=n.id,n.event="onclick"}catch(x2){}n.async=!0}void 0!==n.async&&(n.async=!0);var r=globalThis.document.getElementsByTagName("head")[0];r.insertBefore(n,r.firstChild),t&&r.insertBefore(t,r.firstChild)};var jsonp$1=JsonpReceiver$1,define_process_env_default$W={},random$1=random$5,urlUtils$2=url,debug$5=function(){},form,area;function createIframe(e){debug$5("createIframe",e);try{return globalThis.document.createElement('<iframe name="'+e+'">')}catch(x2){var t=globalThis.document.createElement("iframe");return t.name=e,t}}function createForm(){debug$5("createForm"),(form=globalThis.document.createElement("form")).style.display="none",form.style.position="absolute",form.method="POST",form.enctype="application/x-www-form-urlencoded",form.acceptCharset="UTF-8",(area=globalThis.document.createElement("textarea")).name="d",form.appendChild(area),globalThis.document.body.appendChild(form)}"production"!==define_process_env_default$W.NODE_ENV&&(debug$5=requireBrowser()("sockjs-client:sender:jsonp"));var jsonp=function(e,t,i){debug$5(e,t),form||createForm();var n="a"+random$1.string(8);form.target=n,form.action=urlUtils$2.addQuery(urlUtils$2.addPath(e,"/jsonp_send"),"i="+n);var r=createIframe(n);r.id=n,r.style.display="none",form.appendChild(r);try{area.value=t}catch(e3){}form.submit();var a=function(e){debug$5("completed",n,e),r.onerror&&(r.onreadystatechange=r.onerror=r.onload=null,setTimeout(function(){debug$5("cleaning up",n),r.parentNode.removeChild(r),r=null},500),area.value="",i(e))};return r.onerror=function(){debug$5("onerror",n),a()},r.onload=function(){debug$5("onload",n),a()},r.onreadystatechange=function(e){debug$5("onreadystatechange",n,r.readyState,e),"complete"===r.readyState&&a()},function(){debug$5("aborted",n),a(new Error("Aborted"))}},inherits$8=inherits_browserExports,SenderReceiver=senderReceiver,JsonpReceiver=jsonp$1,jsonpSender=jsonp;function JsonPTransport(e){if(!JsonPTransport.enabled())throw new Error("Transport created when disabled");SenderReceiver.call(this,e,"/jsonp",jsonpSender,JsonpReceiver)}inherits$8(JsonPTransport,SenderReceiver),JsonPTransport.enabled=function(){return!!globalThis.document},JsonPTransport.transportName="jsonp-polling",JsonPTransport.roundTrips=1,JsonPTransport.needBody=!0;var jsonpPolling=JsonPTransport,transportList$1=[websocket,xhrStreaming,xdrStreaming,eventsource,iframeWrap(eventsource),htmlfile,iframeWrap(htmlfile),xhrPolling,xdrPolling,iframeWrap(xhrPolling),jsonpPolling],ArrayPrototype=Array.prototype,ObjectPrototype=Object.prototype,FunctionPrototype=Function.prototype,StringPrototype=String.prototype,array_slice=ArrayPrototype.slice,_toString=ObjectPrototype.toString,isFunction$2=function(e){return"[object Function]"===ObjectPrototype.toString.call(e)},isArray$3=function(e){return"[object Array]"===_toString.call(e)},isString$1=function(e){return"[object String]"===_toString.call(e)},supportsDescriptors=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e3){return!1}}(),defineProperty;defineProperty=supportsDescriptors?function(e,t,i,n){!n&&t in e||Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:i})}:function(e,t,i,n){!n&&t in e||(e[t]=i)};var defineProperties=function(e,t,i){for(var n in t)ObjectPrototype.hasOwnProperty.call(t,n)&&defineProperty(e,n,t[n],i)},toObject=function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return Object(e)};function toInteger(e){var t=+e;return t!=t?t=0:0!==t&&t!==1/0&&t!==-1/0&&(t=(t>0||-1)*Math.floor(Math.abs(t))),t}function ToUint32(e){return e>>>0}function Empty$1(){}defineProperties(FunctionPrototype,{bind:function(e){var t=this;if(!isFunction$2(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var i=array_slice.call(arguments,1),n=Math.max(0,t.length-i.length),r=[],a=0;a<n;a++)r.push("$"+a);var o=Function("binder","return function ("+r.join(",")+"){ return binder.apply(this, arguments); }")(function(){if(this instanceof o){var n=t.apply(this,i.concat(array_slice.call(arguments)));return Object(n)===n?n:this}return t.apply(e,i.concat(array_slice.call(arguments)))});return t.prototype&&(Empty$1.prototype=t.prototype,o.prototype=new Empty$1,Empty$1.prototype=null),o}}),defineProperties(Array,{isArray:isArray$3});var boxedString=Object("a"),splitString="a"!==boxedString[0]||!(0 in boxedString),properlyBoxesContext=function(e){var t=!0,i=!0;return e&&(e.call("foo",function(e,i,n){"object"!=typeof n&&(t=!1)}),e.call([1],function(){i="string"==typeof this},"x")),!!e&&t&&i};defineProperties(ArrayPrototype,{forEach:function(e){var t=toObject(this),i=splitString&&isString$1(this)?this.split(""):t,n=arguments[1],r=-1,a=i.length>>>0;if(!isFunction$2(e))throw new TypeError;for(;++r<a;)r in i&&e.call(n,i[r],r,t)}},!properlyBoxesContext(ArrayPrototype.forEach));var hasFirefox2IndexOfBug=Array.prototype.indexOf&&-1!==[0,1].indexOf(1,2);defineProperties(ArrayPrototype,{indexOf:function(e){var t=splitString&&isString$1(this)?this.split(""):toObject(this),i=t.length>>>0;if(!i)return-1;var n=0;for(arguments.length>1&&(n=toInteger(arguments[1])),n=n>=0?n:Math.max(0,i+n);n<i;n++)if(n in t&&t[n]===e)return n;return-1}},hasFirefox2IndexOfBug);var string_split=StringPrototype.split,compliantExecNpcg;2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||".".split(/()()/).length>1?(compliantExecNpcg=void 0===/()??/.exec("")[1],StringPrototype.split=function(e,t){var i=this;if(void 0===e&&0===t)return[];if("[object RegExp]"!==_toString.call(e))return string_split.call(this,e,t);var n,r,a,o,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.extended?"x":"")+(e.sticky?"y":""),c=0;for(e=new RegExp(e.source,l+"g"),i+="",compliantExecNpcg||(n=new RegExp("^"+e.source+"$(?!\\s)",l)),t=void 0===t?-1>>>0:ToUint32(t);(r=e.exec(i))&&!((a=r.index+r[0].length)>c&&(s.push(i.slice(c,r.index)),!compliantExecNpcg&&r.length>1&&r[0].replace(n,function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(r[e]=void 0)}),r.length>1&&r.index<i.length&&ArrayPrototype.push.apply(s,r.slice(1)),o=r[0].length,c=a,s.length>=t));)e.lastIndex===r.index&&e.lastIndex++;return c===i.length?!o&&e.test("")||s.push(""):s.push(i.slice(c)),s.length>t?s.slice(0,t):s}):"0".split(void 0,0).length&&(StringPrototype.split=function(e,t){return void 0===e&&0===t?[]:string_split.call(this,e,t)});var string_substr=StringPrototype.substr,hasNegativeSubstrBug="".substr&&"b"!=="0b".substr(-1);defineProperties(StringPrototype,{substr:function(e,t){return string_substr.call(this,e<0&&(e=this.length+e)<0?0:e,t)}},hasNegativeSubstrBug);var extraEscapable=/[\x00-\x1f\ud800-\udfff\ufffe\uffff\u0300-\u0333\u033d-\u0346\u034a-\u034c\u0350-\u0352\u0357-\u0358\u035c-\u0362\u0374\u037e\u0387\u0591-\u05af\u05c4\u0610-\u0617\u0653-\u0654\u0657-\u065b\u065d-\u065e\u06df-\u06e2\u06eb-\u06ec\u0730\u0732-\u0733\u0735-\u0736\u073a\u073d\u073f-\u0741\u0743\u0745\u0747\u07eb-\u07f1\u0951\u0958-\u095f\u09dc-\u09dd\u09df\u0a33\u0a36\u0a59-\u0a5b\u0a5e\u0b5c-\u0b5d\u0e38-\u0e39\u0f43\u0f4d\u0f52\u0f57\u0f5c\u0f69\u0f72-\u0f76\u0f78\u0f80-\u0f83\u0f93\u0f9d\u0fa2\u0fa7\u0fac\u0fb9\u1939-\u193a\u1a17\u1b6b\u1cda-\u1cdb\u1dc0-\u1dcf\u1dfc\u1dfe\u1f71\u1f73\u1f75\u1f77\u1f79\u1f7b\u1f7d\u1fbb\u1fbe\u1fc9\u1fcb\u1fd3\u1fdb\u1fe3\u1feb\u1fee-\u1fef\u1ff9\u1ffb\u1ffd\u2000-\u2001\u20d0-\u20d1\u20d4-\u20d7\u20e7-\u20e9\u2126\u212a-\u212b\u2329-\u232a\u2adc\u302b-\u302c\uaab2-\uaab3\uf900-\ufa0d\ufa10\ufa12\ufa15-\ufa1e\ufa20\ufa22\ufa25-\ufa26\ufa2a-\ufa2d\ufa30-\ufa6d\ufa70-\ufad9\ufb1d\ufb1f\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufb4e\ufff0-\uffff]/g,extraLookup,unrollLookup=function(e){var t,i={},n=[];for(t=0;t<65536;t++)n.push(String.fromCharCode(t));return e.lastIndex=0,n.join("").replace(e,function(e){return i[e]="\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4),""}),e.lastIndex=0,i},_escape={quote:function(e){var t=JSON.stringify(e);return extraEscapable.lastIndex=0,extraEscapable.test(t)?(extraLookup||(extraLookup=unrollLookup(extraEscapable)),t.replace(extraEscapable,function(e){return extraLookup[e]})):t}},define_process_env_default$V={},debug$4=function(){};"production"!==define_process_env_default$V.NODE_ENV&&(debug$4=requireBrowser()("sockjs-client:utils:transport"));var transport$1=function(e){return{filterToEnabled:function(t,i){var n={main:[],facade:[]};return t?"string"==typeof t&&(t=[t]):t=[],e.forEach(function(e){e&&("websocket"!==e.transportName||!1!==i.websocket?t.length&&-1===t.indexOf(e.transportName)?debug$4("not in whitelist",e.transportName):e.enabled(i)?(debug$4("enabled",e.transportName),n.main.push(e),e.facadeTransport&&n.facade.push(e.facadeTransport)):debug$4("disabled",e.transportName):debug$4("disabled from server","websocket"))}),n}}},logObject={};["log","debug","warn"].forEach(function(e){var t;try{t=globalThis.console&&globalThis.console[e]&&globalThis.console[e].apply}catch(e3){}logObject[e]=t?function(){return globalThis.console[e].apply(globalThis.console,arguments)}:"log"===e?function(){}:logObject.log});var log$2=logObject;function Event$3(e){this.type=e}Event$3.prototype.initEvent=function(e,t,i){return this.type=e,this.bubbles=t,this.cancelable=i,this.timeStamp=+new Date,this},Event$3.prototype.stopPropagation=function(){},Event$3.prototype.preventDefault=function(){},Event$3.CAPTURING_PHASE=1,Event$3.AT_TARGET=2,Event$3.BUBBLING_PHASE=3;var event=Event$3;function EventTarget$1(){this._listeners={}}EventTarget$1.prototype.addEventListener=function(e,t){e in this._listeners||(this._listeners[e]=[]);var i=this._listeners[e];-1===i.indexOf(t)&&(i=i.concat([t])),this._listeners[e]=i},EventTarget$1.prototype.removeEventListener=function(e,t){var i=this._listeners[e];if(i){var n=i.indexOf(t);-1===n||(i.length>1?this._listeners[e]=i.slice(0,n).concat(i.slice(n+1)):delete this._listeners[e])}},EventTarget$1.prototype.dispatchEvent=function(){var e=arguments[0],t=e.type,i=1===arguments.length?[e]:Array.apply(null,arguments);if(this["on"+t]&&this["on"+t].apply(this,i),t in this._listeners)for(var n=this._listeners[t],r=0;r<n.length;r++)n[r].apply(this,i)};var eventtarget=EventTarget$1,location$1=globalThis.location||{protocol:"http:",href:"http://localhost/",hash:""},inherits$7=inherits_browserExports,Event$2=event;function CloseEvent$1(){Event$2.call(this),this.initEvent("close",!1,!1),this.wasClean=!1,this.code=0,this.reason=""}inherits$7(CloseEvent$1,Event$2);var close$1=CloseEvent$1,inherits$6=inherits_browserExports,Event$1=event;function TransportMessageEvent$1(e){Event$1.call(this),this.initEvent("message",!1,!1),this.data=e}inherits$6(TransportMessageEvent$1,Event$1);var transMessage=TransportMessageEvent$1,EventEmitter$3=eventsExports.EventEmitter,inherits$5=inherits_browserExports;function XHRFake$1(){var e=this;EventEmitter$3.call(this),this.to=setTimeout(function(){e.emit("finish",200,"{}")},XHRFake$1.timeout)}inherits$5(XHRFake$1,EventEmitter$3),XHRFake$1.prototype.close=function(){clearTimeout(this.to)},XHRFake$1.timeout=2e3;var xhrFake=XHRFake$1,define_process_env_default$U={},EventEmitter$2=eventsExports.EventEmitter,inherits$4=inherits_browserExports,objectUtils$1=object$1,debug$3=function(){};function InfoAjax$1(e,t){EventEmitter$2.call(this);var i=this,n=+new Date;this.xo=new t("GET",e),this.xo.once("finish",function(e,t){var r,a;if(200===e){if(a=+new Date-n,t)try{r=JSON.parse(t)}catch(e3){debug$3("bad json",t)}objectUtils$1.isObject(r)||(r={})}i.emit("finish",r,a),i.removeAllListeners()})}"production"!==define_process_env_default$U.NODE_ENV&&(debug$3=requireBrowser()("sockjs-client:info-ajax")),inherits$4(InfoAjax$1,EventEmitter$2),InfoAjax$1.prototype.close=function(){this.removeAllListeners(),this.xo.close()};var infoAjax=InfoAjax$1,infoIframeReceiver,hasRequiredInfoIframeReceiver;function requireInfoIframeReceiver(){if(hasRequiredInfoIframeReceiver)return infoIframeReceiver;hasRequiredInfoIframeReceiver=1;var e=inherits_browserExports,t=eventsExports.EventEmitter,i=xhrLocal,n=infoAjax;function r(e){var r=this;t.call(this),this.ir=new n(e,i),this.ir.once("finish",function(e,t){r.ir=null,r.emit("message",JSON.stringify([e,t]))})}return e(r,t),r.transportName="iframe-info-receiver",r.prototype.close=function(){this.ir&&(this.ir.close(),this.ir=null),this.removeAllListeners()},infoIframeReceiver=r}var define_process_env_default$T={},EventEmitter$1=eventsExports.EventEmitter,inherits$3=inherits_browserExports,utils=eventExports,IframeTransport=iframe,InfoReceiverIframe=requireInfoIframeReceiver(),debug$2=function(){};function InfoIframe$1(e,t){var i=this;EventEmitter$1.call(this);var n=function(){var n=i.ifr=new IframeTransport(InfoReceiverIframe.transportName,t,e);n.once("message",function(e){if(e){var t;try{t=JSON.parse(e)}catch(e3){return debug$2("bad json",e),i.emit("finish"),void i.close()}var n=t[0],r=t[1];i.emit("finish",n,r)}i.close()}),n.once("close",function(){i.emit("finish"),i.close()})};globalThis.document.body?n():utils.attachEvent("load",n)}"production"!==define_process_env_default$T.NODE_ENV&&(debug$2=requireBrowser()("sockjs-client:info-iframe")),inherits$3(InfoIframe$1,EventEmitter$1),InfoIframe$1.enabled=function(){return IframeTransport.enabled()},InfoIframe$1.prototype.close=function(){this.ifr&&this.ifr.close(),this.removeAllListeners(),this.ifr=null};var infoIframe=InfoIframe$1,define_process_env_default$S={},EventEmitter=eventsExports.EventEmitter,inherits$2=inherits_browserExports,urlUtils$1=url,XDR=xdr,XHRCors=xhrCors,XHRLocal=xhrLocal,XHRFake=xhrFake,InfoIframe=infoIframe,InfoAjax=infoAjax,debug$1=function(){};function InfoReceiver$1(e,t){debug$1(e);var i=this;EventEmitter.call(this),setTimeout(function(){i.doXhr(e,t)},0)}"production"!==define_process_env_default$S.NODE_ENV&&(debug$1=requireBrowser()("sockjs-client:info-receiver")),inherits$2(InfoReceiver$1,EventEmitter),InfoReceiver$1._getReceiver=function(e,t,i){return i.sameOrigin?new InfoAjax(t,XHRLocal):XHRCors.enabled?new InfoAjax(t,XHRCors):XDR.enabled&&i.sameScheme?new InfoAjax(t,XDR):InfoIframe.enabled()?new InfoIframe(e,t):new InfoAjax(t,XHRFake)},InfoReceiver$1.prototype.doXhr=function(e,t){var i=this,n=urlUtils$1.addPath(e,"/info");debug$1("doXhr",n),this.xo=InfoReceiver$1._getReceiver(e,n,t),this.timeoutRef=setTimeout(function(){debug$1("timeout"),i._cleanup(!1),i.emit("finish")},InfoReceiver$1.timeout),this.xo.once("finish",function(e,t){debug$1("finish",e,t),i._cleanup(!0),i.emit("finish",e,t)})},InfoReceiver$1.prototype._cleanup=function(e){debug$1("_cleanup"),clearTimeout(this.timeoutRef),this.timeoutRef=null,!e&&this.xo&&this.xo.close(),this.xo=null},InfoReceiver$1.prototype.close=function(){debug$1("close"),this.removeAllListeners(),this._cleanup(!1)},InfoReceiver$1.timeout=8e3;var infoReceiver=InfoReceiver$1,facade,hasRequiredFacade,iframeBootstrap,hasRequiredIframeBootstrap;function requireFacade(){if(hasRequiredFacade)return facade;hasRequiredFacade=1;var e=iframeExports;function t(e){this._transport=e,e.on("message",this._transportMessage.bind(this)),e.on("close",this._transportClose.bind(this))}return t.prototype._transportClose=function(t,i){e.postMessage("c",JSON.stringify([t,i]))},t.prototype._transportMessage=function(t){e.postMessage("t",t)},t.prototype._send=function(e){this._transport.send(e)},t.prototype._close=function(){this._transport.close(),this._transport.removeAllListeners()},facade=t}function requireIframeBootstrap(){if(hasRequiredIframeBootstrap)return iframeBootstrap;hasRequiredIframeBootstrap=1;var e=url,t=eventExports,i=requireFacade(),n=requireInfoIframeReceiver(),r=iframeExports,a=location$1,o=function(){};return"production"!=={}.NODE_ENV&&(o=requireBrowser()("sockjs-client:iframe-bootstrap")),iframeBootstrap=function(s,l){var c,u={};l.forEach(function(e){e.facadeTransport&&(u[e.facadeTransport.transportName]=e.facadeTransport)}),u[n.transportName]=n,s.bootstrap_iframe=function(){var n;r.currentWindowId=a.hash.slice(1);t.attachEvent("message",function(t){if(t.source===parent&&(void 0===c&&(c=t.origin),t.origin===c)){var l;try{l=JSON.parse(t.data)}catch(ignored){return void o("bad json",t.data)}if(l.windowId===r.currentWindowId)switch(l.type){case"s":var d;try{d=JSON.parse(l.data)}catch(ignored){o("bad json",l.data);break}var h=d[0],p=d[1],m=d[2],f=d[3];if(o(h,p,m,f),h!==s.version)throw new Error('Incompatible SockJS! Main site uses: "'+h+'", the iframe: "'+s.version+'".');if(!e.isOriginEqual(m,a.href)||!e.isOriginEqual(f,a.href))throw new Error("Can't connect to different domain from within an iframe. ("+a.href+", "+m+", "+f+")");n=new i(new u[p](m,f));break;case"m":n._send(l.data);break;case"c":n&&n._close(),n=null}}}),r.postMessage("s")}}}var define_process_env_default$R={},URL$1=urlParse,inherits$1=inherits_browserExports,random=random$5,escape$2=_escape,urlUtils=url,eventUtils=eventExports,transport=transport$1,objectUtils=object$1,browser=browser$4,log$1=log$2,Event=event,EventTarget=eventtarget,loc=location$1,CloseEvent=close$1,TransportMessageEvent=transMessage,InfoReceiver=infoReceiver,debug=function(){},transports;function SockJS(e,t,i){if(!(this instanceof SockJS))return new SockJS(e,t,i);if(arguments.length<1)throw new TypeError("Failed to construct 'SockJS: 1 argument required, but only 0 present");EventTarget.call(this),this.readyState=SockJS.CONNECTING,this.extensions="",this.protocol="",(i=i||{}).protocols_whitelist&&log$1.warn("'protocols_whitelist' is DEPRECATED. Use 'transports' instead."),this._transportsWhitelist=i.transports,this._transportOptions=i.transportOptions||{},this._timeout=i.timeout||0;var n=i.sessionId||8;if("function"==typeof n)this._generateSessionId=n;else{if("number"!=typeof n)throw new TypeError("If sessionId is used in the options, it needs to be a number or a function.");this._generateSessionId=function(){return random.string(n)}}this._server=i.server||random.numberString(1e3);var r=new URL$1(e);if(!r.host||!r.protocol)throw new SyntaxError("The URL '"+e+"' is invalid");if(r.hash)throw new SyntaxError("The URL must not contain a fragment");if("http:"!==r.protocol&&"https:"!==r.protocol)throw new SyntaxError("The URL's scheme must be either 'http:' or 'https:'. '"+r.protocol+"' is not allowed.");var a="https:"===r.protocol;if("https:"===loc.protocol&&!a&&!urlUtils.isLoopbackAddr(r.hostname))throw new Error("SecurityError: An insecure SockJS connection may not be initiated from a page loaded over HTTPS");t?Array.isArray(t)||(t=[t]):t=[];var o=t.sort();o.forEach(function(e,t){if(!e)throw new SyntaxError("The protocols entry '"+e+"' is invalid.");if(t<o.length-1&&e===o[t+1])throw new SyntaxError("The protocols entry '"+e+"' is duplicated.")});var s=urlUtils.getOrigin(loc.href);this._origin=s?s.toLowerCase():null,r.set("pathname",r.pathname.replace(/\/+$/,"")),this.url=r.href,debug("using url",this.url),this._urlInfo={nullOrigin:!browser.hasDomain(),sameOrigin:urlUtils.isOriginEqual(this.url,loc.href),sameScheme:urlUtils.isSchemeEqual(this.url,loc.href)},this._ir=new InfoReceiver(this.url,this._urlInfo),this._ir.once("finish",this._receiveInfo.bind(this))}function userSetCode(e){return 1e3===e||e>=3e3&&e<=4999}"production"!==define_process_env_default$R.NODE_ENV&&(debug=requireBrowser()("sockjs-client:main")),inherits$1(SockJS,EventTarget),SockJS.prototype.close=function(e,t){if(e&&!userSetCode(e))throw new Error("InvalidAccessError: Invalid code");if(t&&t.length>123)throw new SyntaxError("reason argument has an invalid length");if(this.readyState!==SockJS.CLOSING&&this.readyState!==SockJS.CLOSED){this._close(e||1e3,t||"Normal closure",!0)}},SockJS.prototype.send=function(e){if("string"!=typeof e&&(e=""+e),this.readyState===SockJS.CONNECTING)throw new Error("InvalidStateError: The connection has not been established yet");this.readyState===SockJS.OPEN&&this._transport.send(escape$2.quote(e))},SockJS.version=requireVersion(),SockJS.CONNECTING=0,SockJS.OPEN=1,SockJS.CLOSING=2,SockJS.CLOSED=3,SockJS.prototype._receiveInfo=function(e,t){if(debug("_receiveInfo",t),this._ir=null,e){this._rto=this.countRTO(t),this._transUrl=e.base_url?e.base_url:this.url,e=objectUtils.extend(e,this._urlInfo),debug("info",e);var i=transports.filterToEnabled(this._transportsWhitelist,e);this._transports=i.main,debug(this._transports.length+" enabled transports"),this._connect()}else this._close(1002,"Cannot connect to server")},SockJS.prototype._connect=function(){for(var e=this._transports.shift();e;e=this._transports.shift()){if(debug("attempt",e.transportName),e.needBody&&(!globalThis.document.body||void 0!==globalThis.document.readyState&&"complete"!==globalThis.document.readyState&&"interactive"!==globalThis.document.readyState))return debug("waiting for body"),this._transports.unshift(e),void eventUtils.attachEvent("load",this._connect.bind(this));var t=Math.max(this._timeout,this._rto*e.roundTrips||5e3);this._transportTimeoutId=setTimeout(this._transportTimeout.bind(this),t),debug("using timeout",t);var i=urlUtils.addPath(this._transUrl,"/"+this._server+"/"+this._generateSessionId()),n=this._transportOptions[e.transportName];debug("transport url",i);var r=new e(i,this._transUrl,n);return r.on("message",this._transportMessage.bind(this)),r.once("close",this._transportClose.bind(this)),r.transportName=e.transportName,void(this._transport=r)}this._close(2e3,"All transports failed",!1)},SockJS.prototype._transportTimeout=function(){debug("_transportTimeout"),this.readyState===SockJS.CONNECTING&&(this._transport&&this._transport.close(),this._transportClose(2007,"Transport timed out"))},SockJS.prototype._transportMessage=function(e){debug("_transportMessage",e);var t,i=this,n=e.slice(0,1),r=e.slice(1);switch(n){case"o":return void this._open();case"h":return this.dispatchEvent(new Event("heartbeat")),void debug("heartbeat",this.transport)}if(r)try{t=JSON.parse(r)}catch(e3){debug("bad json",r)}if(void 0!==t)switch(n){case"a":Array.isArray(t)&&t.forEach(function(e){debug("message",i.transport,e),i.dispatchEvent(new TransportMessageEvent(e))});break;case"m":debug("message",this.transport,t),this.dispatchEvent(new TransportMessageEvent(t));break;case"c":Array.isArray(t)&&2===t.length&&this._close(t[0],t[1],!0)}else debug("empty payload",r)},SockJS.prototype._transportClose=function(e,t){debug("_transportClose",this.transport,e,t),this._transport&&(this._transport.removeAllListeners(),this._transport=null,this.transport=null),userSetCode(e)||2e3===e||this.readyState!==SockJS.CONNECTING?this._close(e,t):this._connect()},SockJS.prototype._open=function(){debug("_open",this._transport&&this._transport.transportName,this.readyState),this.readyState===SockJS.CONNECTING?(this._transportTimeoutId&&(clearTimeout(this._transportTimeoutId),this._transportTimeoutId=null),this.readyState=SockJS.OPEN,this.transport=this._transport.transportName,this.dispatchEvent(new Event("open")),debug("connected",this.transport)):this._close(1006,"Server lost session")},SockJS.prototype._close=function(e,t,i){debug("_close",this.transport,e,t,i,this.readyState);var n=!1;if(this._ir&&(n=!0,this._ir.close(),this._ir=null),this._transport&&(this._transport.close(),this._transport=null,this.transport=null),this.readyState===SockJS.CLOSED)throw new Error("InvalidStateError: SockJS has already been closed");this.readyState=SockJS.CLOSING,setTimeout(function(){this.readyState=SockJS.CLOSED,n&&this.dispatchEvent(new Event("error"));var r=new CloseEvent;r.wasClean=i||!1,r.code=e||1e3,r.reason=t,this.dispatchEvent(r),this.onmessage=this.onclose=this.onerror=null,debug("disconnected")}.bind(this),0)},SockJS.prototype.countRTO=function(e){return e>100?4*e:300+e};var main$2=function(e){return transports=transport(e),requireIframeBootstrap()(SockJS,e),SockJS},transportList=transportList$1,entry$2=main$2(transportList);"_sockjs_onload"in globalThis&&setTimeout(globalThis._sockjs_onload,1);const SockJs=getDefaultExportFromCjs$1(entry$2);var webstomp={exports:{}};webstomp.exports=function(){var e=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},t=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),i=function(){function e(e,t){var i=[],n=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(i.push(o.value),!t||i.length!==t);n=!0);}catch(l){r=!0,a=l}finally{try{!n&&s.return&&s.return()}finally{if(r)throw a}}return i}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n=function(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)},r={V1_0:"1.0",V1_1:"1.1",V1_2:"1.2",supportedVersions:function(){return"1.2,1.1,1.0"},supportedProtocols:function(){return["v10.stomp","v11.stomp","v12.stomp"]}},a={"v10.stomp":r.V1_0,"v11.stomp":r.V1_1,"v12.stomp":r.V1_2};function o(e,t){var i=a[e];return!i&&t&&t("DEPRECATED: "+e+" is not a recognized STOMP version. In next major client version, this will close the connection."),i||r.V1_2}var s={LF:"\n",NULL:"\0"},l=function(e){return e.replace(/^\s+|\s+$/g,"")};function c(e){var t=encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode("0x"+t)}),i=Array.prototype.map.call(t,function(e){return e.charCodeAt(0)});return new Uint8Array(i)}function u(e){var t=String.fromCharCode.apply(String,n(e)).replace(/(.)/g,function(e,t){var i=t.charCodeAt(0).toString(16).toUpperCase();return i.length<2&&(i="0"+i),"%"+i});return decodeURIComponent(t)}function d(e){return e?encodeURIComponent(e).match(/%..|./g).length:0}function h(){return(new Date).getTime()+"-"+Math.floor(1e3*Math.random())}var p=function(){function i(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e(this,i),this.command=t,this.headers=n,this.body=r}return t(i,[{key:"toString",value:function(){var e=this,t=[this.command],i=!1===this.headers["content-length"];return i&&delete this.headers["content-length"],Object.keys(this.headers).forEach(function(i){var n=e.headers[i];t.push(i+":"+n)}),this.body&&!i&&t.push("content-length:"+d(this.body)),t.push(s.LF+this.body),t.join(s.LF)}}],[{key:"unmarshallSingle",value:function(e){var t=e.search(new RegExp(s.LF+s.LF)),n=e.substring(0,t).split(s.LF),r=n.shift(),a={},o="",c=t+2,u=!0,d=!1,h=void 0;try{for(var p,m=n.reverse()[Symbol.iterator]();!(u=(p=m.next()).done);u=!0){var f=p.value,g=f.indexOf(":");a[l(f.substring(0,g))]=l(f.substring(g+1))}}catch(b){d=!0,h=b}finally{try{!u&&m.return&&m.return()}finally{if(d)throw h}}if(a["content-length"]){var _=parseInt(a["content-length"],10);o=(""+e).substring(c,c+_)}else for(var v=null,y=c;y<e.length&&(v=e.charAt(y))!==s.NULL;y++)o+=v;return new i(r,a,o)}},{key:"unmarshall",value:function(e){var t=e.split(new RegExp(s.NULL+s.LF+"*")),n=t.slice(0,-1),r=t.slice(-1)[0],a={frames:n.map(function(e){return i.unmarshallSingle(e)}),partial:""};return r===s.LF||-1!==r.search(RegExp(s.NULL+s.LF+"*$"))?a.frames.push(i.unmarshallSingle(r)):a.partial=r,a}},{key:"marshall",value:function(e,t,n){return new i(e,t,n).toString()+s.NULL}}]),i}(),m=function(){function n(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e(this,n);var r=i.binary,a=void 0!==r&&r,o=i.heartbeat,s=void 0===o?{outgoing:1e4,incoming:1e4}:o,l=i.debug,c=void 0===l||l,u=i.protocols,d=void 0===u?[]:u;this.ws=t,this.ws.binaryType="arraybuffer",this.isBinary=!!a,this.hasDebug=!!c,this.connected=!1,this.heartbeat=s||{outgoing:0,incoming:0},this.maxWebSocketFrameSize=16384,this.subscriptions={},this.partialData="",this.protocols=d}return t(n,[{key:"debug",value:function(){var e;this.hasDebug&&(e=console).log.apply(e,arguments)}},{key:"connect",value:function(){var e=this,t=this._parseConnect.apply(this,arguments),n=i(t,3),a=n[0],l=n[1],c=n[2];this.connectCallback=l,this.debug("Opening Web Socket..."),this.ws.onmessage=function(t){var i=t.data;if(t.data instanceof ArrayBuffer&&(i=u(new Uint8Array(t.data))),e.serverActivity=Date.now(),i!==s.LF){e.debug("<<< "+i);var n=p.unmarshall(e.partialData+i);e.partialData=n.partial,n.frames.forEach(function(t){switch(t.command){case"CONNECTED":e.debug("connected to server "+t.headers.server),e.connected=!0,e.version=t.headers.version,e._setupHeartbeat(t.headers),l&&l(t);break;case"MESSAGE":var i=t.headers.subscription,n=e.subscriptions[i]||e.onreceive;if(n){var a=e.version===r.V1_2&&t.headers.ack||t.headers["message-id"];t.ack=e.ack.bind(e,a,i),t.nack=e.nack.bind(e,a,i),n(t)}else e.debug("Unhandled received MESSAGE: "+t);break;case"RECEIPT":e.onreceipt&&e.onreceipt(t);break;case"ERROR":c&&c(t);break;default:e.debug("Unhandled frame: "+t)}})}else e.debug("<<< PONG")},this.ws.onclose=function(t){e.debug("Whoops! Lost connection to "+e.ws.url+":",{event:t}),e._cleanUp(),c&&c(t)},this.ws.onopen=function(){e.debug("Web Socket Opened..."),a["accept-version"]=o(e.ws.protocol||e.protocols[0],e.debug.bind(e)),a["heart-beat"]||(a["heart-beat"]=[e.heartbeat.outgoing,e.heartbeat.incoming].join(",")),e._transmit("CONNECT",a)},this.ws.readyState===this.ws.OPEN&&this.ws.onopen()}},{key:"disconnect",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._transmit("DISCONNECT",t),this.ws.onclose=null,this.ws.close(),this._cleanUp(),e&&e()}},{key:"send",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Object.assign({},i);n.destination=e,this._transmit("SEND",n,t)}},{key:"begin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"tx-"+h();return this._transmit("BEGIN",{transaction:e}),{id:e,commit:this.commit.bind(this,e),abort:this.abort.bind(this,e)}}},{key:"commit",value:function(e){this._transmit("COMMIT",{transaction:e})}},{key:"abort",value:function(e){this._transmit("ABORT",{transaction:e})}},{key:"ack",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Object.assign({},i);n[this.version===r.V1_2?"id":"message-id"]=e,n.subscription=t,this._transmit("ACK",n)}},{key:"nack",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Object.assign({},i);n[this.version===r.V1_2?"id":"message-id"]=e,n.subscription=t,this._transmit("NACK",n)}},{key:"subscribe",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Object.assign({},i);return n.id||(n.id="sub-"+h()),n.destination=e,this.subscriptions[n.id]=t,this._transmit("SUBSCRIBE",n),{id:n.id,unsubscribe:this.unsubscribe.bind(this,n.id)}}},{key:"unsubscribe",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Object.assign({},t);delete this.subscriptions[e],i.id=e,this._transmit("UNSUBSCRIBE",i)}},{key:"_cleanUp",value:function(){this.connected=!1,clearInterval(this.pinger),clearInterval(this.ponger)}},{key:"_transmit",value:function(e,t,i){var n=p.marshall(e,t,i);this.debug(">>> "+n,{frame:{command:e,headers:t,body:i}}),this._wsSend(n)}},{key:"_wsSend",value:function(e){for(this.isBinary&&(e=c(e)),this.debug(">>> length "+e.length);;){if(!(e.length>this.maxWebSocketFrameSize))return this.ws.send(e);this.ws.send(e.slice(0,this.maxWebSocketFrameSize)),e=e.slice(this.maxWebSocketFrameSize),this.debug("remaining = "+e.length)}}},{key:"_setupHeartbeat",value:function(e){var t=this;if(this.version===r.V1_1||this.version===r.V1_2){var n=(e["heart-beat"]||"0,0").split(",").map(function(e){return parseInt(e,10)}),a=i(n,2),o=a[0],l=a[1];if(0!==this.heartbeat.outgoing&&0!==l){var c=Math.max(this.heartbeat.outgoing,l);this.debug("send PING every "+c+"ms"),this.pinger=setInterval(function(){t._wsSend(s.LF),t.debug(">>> PING")},c)}if(0!==this.heartbeat.incoming&&0!==o){var u=Math.max(this.heartbeat.incoming,o);this.debug("check PONG every "+u+"ms"),this.ponger=setInterval(function(){var e=Date.now()-t.serverActivity;e>2*u&&(t.debug("did not receive server activity for the last "+e+"ms"),t.ws.close())},u)}}}},{key:"_parseConnect",value:function(){for(var e={},t=void 0,i=void 0,n=arguments.length,r=Array(n),a=0;a<n;a++)r[a]=arguments[a];switch(r.length){case 2:e=r[0],t=r[1];break;case 3:r[1]instanceof Function?(e=r[0],t=r[1],i=r[2]):(e.login=r[0],e.passcode=r[1],t=r[2]);break;case 4:e.login=r[0],e.passcode=r[1],t=r[2],i=r[3];break;default:e.login=r[0],e.passcode=r[1],t=r[2],i=r[3],e.host=r[4]}return[e,t,i]}}]),n}(),f={Frame:p,VERSIONS:r,client:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=new WebSocket(e,t.protocols||r.supportedProtocols());return new m(i,t)},over:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return new(Function.prototype.bind.apply(m,[null].concat(t)))}};return f}();var webstompExports=webstomp.exports;const Stomp=getDefaultExportFromCjs$1(webstompExports);var dealMarktUrl$2=function(e){return e+"/market-ws/"};let connectTemp={stompClient:null,connected:!1,conncetedStr:"",chainId:"",referConnectedCount:0,subscribePath:{}},connectType="market_ws",dealSubscribId={set(e,t){let i=JSON.parse(localStorage.getItem("subIds"))||{};i[e]=t,localStorage.setItem("subIds",JSON.stringify(i))},get:e=>(JSON.parse(localStorage.getItem("subIds"))||{})[e]||""};const connectCloseReason=["All transports failed","Cannot connect to server","Sending error: Error: http status 404","Server lost session"];class ConnectSocketTool{constructor(e,t){__publicField(this,"getStompClient",(e,t)=>{const i=new SockJs(e);return Stomp.over(i,t)}),this.connectWsType=t,connectTemp.chainId&&connectTemp.chainId!=e||t?(this.chainId=e||getTradeDefaultChainId(),this.close()):(connectTemp.stompClient||connectTemp.conncetedStr,this.chainId=e||getTradeDefaultChainId())}connect(e){return new Promise((t,i)=>{var n,r,a;console.log("connect...",new Date),console.log("connectType:",connectType),console.log("connectTemp:",connectTemp);const{store:o}=getEventCenter();if(connectTemp.stompClient&&this.chainId&&this.chainId==connectTemp.chainId)return void t(connectTemp.stompClient);if("connecting"==connectTemp.conncetedStr)return void i(-1);connectTemp.conncetedStr="connecting";let s="market_ws"===connectType?"ws":"api",l=site_config&&getMarketApi(this.chainId,connectType,s)||"";"perpetual"!=(null==(r=null==(n=null==o?void 0:o.state)?void 0:n.trade)?void 0:r.tradeMode)&&"perpetual"!=this.connectWsType||(l=getMarketApi(this.chainId,"perpetual",s),console.log("perpetual base_url:",l),l||(l=getMarketApi(null==(a=null==o?void 0:o.state)?void 0:a.chainId,"perpetual",s)));let c=dealMarktUrl$2(l);console.log("cms_ws_url:",c);var u={debug:!1,protocols:Stomp.VERSIONS.supportedProtocols(),heartbeat:{outgoing:2e4,incoming:1e4}};let d=this.getStompClient(c,u);console.log("stompClient:",d);try{d.connect({},e=>{"CONNECTED"==e.command&&(console.log("CONNECTED"),connectTemp.connected=!0,connectTemp.conncetedStr="connected",connectTemp.stompClient=d,connectTemp.chainId=this.chainId,connectTemp.referConnectedCount=0,t(d))},t=>{console.log("disconnected",new Date,t),"close"==t.type&&(console.log("connectTemp",connectTemp),connectTemp.referConnectedCount<6?(connectTemp.stompClient=null,connectTemp.conncetedStr="","Cannot connect to server"===t.reason?(connectType="market_ws"===connectType?"market_api":"market_ws",connectTemp.referConnectedCount+=1,e&&e(t.reason)):connectType="market_ws"):this.close()),"ERROR"==t.command&&e&&e()})}catch(h){console.log("catch..."),i(0),connectTemp.connected=!1,connectTemp.conncetedStr=""}})}subscribe(e,t){let{stompClient:i}=connectTemp,n=(e,t,i)=>{let n=connectTemp.subscribePath[t],r=n&&n.id||dealSubscribId.get(t);r&&(n&&n.unsubscribe(n.id),this.unSubscribe(r)),n=e.subscribe(t,e=>{i&&i(e)}),console.log("subscribe",n),connectTemp.subscribePath[t]=n,dealSubscribId.set(t,n.id)};i?n(i,e,t):this.connect().catch(e=>(console.log(e),connectTemp.stompClient)).then(i=>{i&&n(i,e,t)}).catch(e=>e)}unSubscribe(e){connectTemp.stompClient&&connectTemp.stompClient.unsubscribe(e)}unSublink(e){let t=connectTemp.subscribePath[e],i=t&&t.id||dealSubscribId.get(e);i&&(t&&t.unsubscribe(t.id),this.unSubscribe(i))}isConnected(){return connectTemp.connected}getStompClinet(){return connectTemp.stompClient}close(){connectTemp.stompClient?(console.log("stompClient-close",connectTemp.stompClient),connectTemp.stompClient.disconnect(),connectTemp={stompClient:null,connected:!1,conncetedStr:"",chainId:"",referConnectedCount:0,subscribePath:{}}):connectTemp={stompClient:null,connected:!1,conncetedStr:"",chainId:"",referConnectedCount:0,subscribePath:{}}}}const connnectSingle=function(e){let t=new SockJs(e,"",{});console.log("connnectSingle",t),t.onopen=function(){console.log("open-connnectSingle"),t.send("test")},t.onmessage=function(e){console.log("message",e.data),t.close()},t.onclose=function(){console.log("close")}},connect={connnectSingle:connnectSingle,ConnectSocketTool:ConnectSocketTool,connectCloseReason:connectCloseReason},instance$4=axios$1.create({timeout:6e4,retry:retryCount,retryDelay:retryDelay});instance$4.interceptors.request.use(e=>{var t,i;const{store:n}=getEventCenter();e.baseURL=getBaseUrl(0),e.headers["x-auth-token"]=Storage$2.get("TOKEN"),e.headers.client_id="WEB",e.headers.language=localStorage.getItem("language");const r=(null==(i=null==(t=null==n?void 0:n.state)?void 0:t.user)?void 0:i.userInfo)||{};return e.headers.timezone=r.timezone||getTimeZone()||"",e.headers.country=r.country||"",e},e=>Promise.reject(e)),instance$4.interceptors.response.use(e=>{const{status:t,data:i}=e,{router:n,store:r}=getEventCenter();let a=e.data&&e.data.code;if(e.data&&e.data.message&&(e.data.codeMessage=e.data.message),"blob"===e.config.responseType&&200===e.status)return e;if("200"==a||200===e.status&&!a||3===a)return e.data;{if(console.log(i),e.config.skipErrorHandle)return i;let t=(i.code+"").split("-");if("2-023"===t[2]+"-"+t[3]){let t=e.config.isNotGoToLogin;console.log("isNotGoToLogin2:",t),t?(null==r?void 0:r.commit)&&r.commit("user/logoutWallet"):(console.log("if"),(null==r?void 0:r.commit)&&r.commit("wallet/logoutWallet"),e.data.showError=!0,n.push({name:"login_wallet",params:{showLoginExpiredMessage:!0}}))}return Promise.reject(i)}},async e=>await retryFun(instance$4,e));